@digabi/exam-engine-core 16.1.2 → 16.1.3-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (335) hide show
  1. package/dist/components/AttachmentContext.d.ts +14 -0
  2. package/dist/components/AttachmentContext.d.ts.map +1 -0
  3. package/dist/components/AttachmentContext.js +12 -0
  4. package/dist/components/AttachmentContext.js.map +1 -0
  5. package/dist/components/AttachmentLink.d.ts +5 -0
  6. package/dist/components/AttachmentLink.d.ts.map +1 -0
  7. package/dist/components/AttachmentLink.js +28 -0
  8. package/dist/components/AttachmentLink.js.map +1 -0
  9. package/dist/components/AttachmentLinkAnchor.d.ts +7 -0
  10. package/dist/components/AttachmentLinkAnchor.d.ts.map +1 -0
  11. package/dist/components/AttachmentLinkAnchor.js +4 -0
  12. package/dist/components/AttachmentLinkAnchor.js.map +1 -0
  13. package/dist/components/AttachmentLinks.d.ts +5 -0
  14. package/dist/components/AttachmentLinks.d.ts.map +1 -0
  15. package/dist/components/AttachmentLinks.js +62 -0
  16. package/dist/components/AttachmentLinks.js.map +1 -0
  17. package/dist/components/Attachments.d.ts +6 -0
  18. package/dist/components/Attachments.d.ts.map +1 -0
  19. package/dist/components/Attachments.js +55 -0
  20. package/dist/components/Attachments.js.map +1 -0
  21. package/dist/components/AttachmentsAttachment.d.ts +5 -0
  22. package/dist/components/AttachmentsAttachment.d.ts.map +1 -0
  23. package/dist/components/AttachmentsAttachment.js +8 -0
  24. package/dist/components/AttachmentsAttachment.js.map +1 -0
  25. package/dist/components/AttachmentsAttachmentTitle.d.ts +6 -0
  26. package/dist/components/AttachmentsAttachmentTitle.d.ts.map +1 -0
  27. package/dist/components/AttachmentsAttachmentTitle.js +12 -0
  28. package/dist/components/AttachmentsAttachmentTitle.js.map +1 -0
  29. package/dist/components/AttachmentsExternalMaterial.d.ts +9 -0
  30. package/dist/components/AttachmentsExternalMaterial.d.ts.map +1 -0
  31. package/dist/components/AttachmentsExternalMaterial.js +40 -0
  32. package/dist/components/AttachmentsExternalMaterial.js.map +1 -0
  33. package/dist/components/AttachmentsQuestion.d.ts +5 -0
  34. package/dist/components/AttachmentsQuestion.d.ts.map +1 -0
  35. package/dist/components/AttachmentsQuestion.js +17 -0
  36. package/dist/components/AttachmentsQuestion.js.map +1 -0
  37. package/dist/components/AttachmentsQuestionTitle.d.ts +6 -0
  38. package/dist/components/AttachmentsQuestionTitle.d.ts.map +1 -0
  39. package/dist/components/AttachmentsQuestionTitle.js +13 -0
  40. package/dist/components/AttachmentsQuestionTitle.js.map +1 -0
  41. package/dist/components/Audio.d.ts +6 -0
  42. package/dist/components/Audio.d.ts.map +1 -0
  43. package/dist/components/Audio.js +31 -0
  44. package/dist/components/Audio.js.map +1 -0
  45. package/dist/components/AudioGroup.d.ts +6 -0
  46. package/dist/components/AudioGroup.d.ts.map +1 -0
  47. package/dist/components/AudioGroup.js +9 -0
  48. package/dist/components/AudioGroup.js.map +1 -0
  49. package/dist/components/AudioPlaybackError.d.ts +7 -0
  50. package/dist/components/AudioPlaybackError.d.ts.map +1 -0
  51. package/dist/components/AudioPlaybackError.js +13 -0
  52. package/dist/components/AudioPlaybackError.js.map +1 -0
  53. package/dist/components/AudioTest.d.ts +6 -0
  54. package/dist/components/AudioTest.d.ts.map +1 -0
  55. package/dist/components/AudioTest.js +29 -0
  56. package/dist/components/AudioTest.js.map +1 -0
  57. package/dist/components/ChoiceAnswer.d.ts +12 -0
  58. package/dist/components/ChoiceAnswer.d.ts.map +1 -0
  59. package/dist/components/ChoiceAnswer.js +62 -0
  60. package/dist/components/ChoiceAnswer.js.map +1 -0
  61. package/dist/components/CommonExamContext.d.ts +19 -0
  62. package/dist/components/CommonExamContext.d.ts.map +1 -0
  63. package/dist/components/CommonExamContext.js +25 -0
  64. package/dist/components/CommonExamContext.js.map +1 -0
  65. package/dist/components/DropdownAnswer.d.ts +12 -0
  66. package/dist/components/DropdownAnswer.d.ts.map +1 -0
  67. package/dist/components/DropdownAnswer.js +100 -0
  68. package/dist/components/DropdownAnswer.js.map +1 -0
  69. package/dist/components/ErrorIndicator.d.ts +4 -0
  70. package/dist/components/ErrorIndicator.d.ts.map +1 -0
  71. package/dist/components/ErrorIndicator.js +43 -0
  72. package/dist/components/ErrorIndicator.js.map +1 -0
  73. package/dist/components/Exam.d.ts +32 -0
  74. package/dist/components/Exam.d.ts.map +1 -0
  75. package/dist/components/Exam.js +103 -0
  76. package/dist/components/Exam.js.map +1 -0
  77. package/dist/components/ExamAttachment.d.ts +5 -0
  78. package/dist/components/ExamAttachment.d.ts.map +1 -0
  79. package/dist/components/ExamAttachment.js +8 -0
  80. package/dist/components/ExamAttachment.js.map +1 -0
  81. package/dist/components/ExamContext.d.ts +10 -0
  82. package/dist/components/ExamContext.d.ts.map +1 -0
  83. package/dist/components/ExamContext.js +11 -0
  84. package/dist/components/ExamContext.js.map +1 -0
  85. package/dist/components/ExamFooter.d.ts +6 -0
  86. package/dist/components/ExamFooter.d.ts.map +1 -0
  87. package/dist/components/ExamFooter.js +7 -0
  88. package/dist/components/ExamFooter.js.map +1 -0
  89. package/dist/components/ExamInstruction.d.ts +6 -0
  90. package/dist/components/ExamInstruction.d.ts.map +1 -0
  91. package/dist/components/ExamInstruction.js +6 -0
  92. package/dist/components/ExamInstruction.js.map +1 -0
  93. package/dist/components/ExamQuestion.d.ts +5 -0
  94. package/dist/components/ExamQuestion.d.ts.map +1 -0
  95. package/dist/components/ExamQuestion.js +16 -0
  96. package/dist/components/ExamQuestion.js.map +1 -0
  97. package/dist/components/ExamQuestionInstruction.d.ts +6 -0
  98. package/dist/components/ExamQuestionInstruction.d.ts.map +1 -0
  99. package/dist/components/ExamQuestionInstruction.js +6 -0
  100. package/dist/components/ExamQuestionInstruction.js.map +1 -0
  101. package/dist/components/ExamQuestionTitle.d.ts +5 -0
  102. package/dist/components/ExamQuestionTitle.d.ts.map +1 -0
  103. package/dist/components/ExamQuestionTitle.js +24 -0
  104. package/dist/components/ExamQuestionTitle.js.map +1 -0
  105. package/dist/components/ExamSection.d.ts +5 -0
  106. package/dist/components/ExamSection.d.ts.map +1 -0
  107. package/dist/components/ExamSection.js +31 -0
  108. package/dist/components/ExamSection.js.map +1 -0
  109. package/dist/components/ExamSectionTitle.d.ts +6 -0
  110. package/dist/components/ExamSectionTitle.d.ts.map +1 -0
  111. package/dist/components/ExamSectionTitle.js +22 -0
  112. package/dist/components/ExamSectionTitle.js.map +1 -0
  113. package/dist/components/ExternalMaterialList.d.ts +10 -0
  114. package/dist/components/ExternalMaterialList.d.ts.map +1 -0
  115. package/dist/components/ExternalMaterialList.js +33 -0
  116. package/dist/components/ExternalMaterialList.js.map +1 -0
  117. package/dist/components/File.d.ts +6 -0
  118. package/dist/components/File.d.ts.map +1 -0
  119. package/dist/components/File.js +15 -0
  120. package/dist/components/File.js.map +1 -0
  121. package/dist/components/Formula.d.ts +6 -0
  122. package/dist/components/Formula.d.ts.map +1 -0
  123. package/dist/components/Formula.js +13 -0
  124. package/dist/components/Formula.js.map +1 -0
  125. package/dist/components/Hints.d.ts +5 -0
  126. package/dist/components/Hints.d.ts.map +1 -0
  127. package/dist/components/Hints.js +30 -0
  128. package/dist/components/Hints.js.map +1 -0
  129. package/dist/components/Image.d.ts +6 -0
  130. package/dist/components/Image.d.ts.map +1 -0
  131. package/dist/components/Image.js +28 -0
  132. package/dist/components/Image.js.map +1 -0
  133. package/dist/components/ImageOverlay.d.ts +6 -0
  134. package/dist/components/ImageOverlay.d.ts.map +1 -0
  135. package/dist/components/ImageOverlay.js +44 -0
  136. package/dist/components/ImageOverlay.js.map +1 -0
  137. package/dist/components/ProgressBar.d.ts +7 -0
  138. package/dist/components/ProgressBar.d.ts.map +1 -0
  139. package/dist/components/ProgressBar.js +19 -0
  140. package/dist/components/ProgressBar.js.map +1 -0
  141. package/dist/components/QuestionContext.d.ts +14 -0
  142. package/dist/components/QuestionContext.d.ts.map +1 -0
  143. package/dist/components/QuestionContext.js +20 -0
  144. package/dist/components/QuestionContext.js.map +1 -0
  145. package/dist/components/Reference.d.ts +6 -0
  146. package/dist/components/Reference.d.ts.map +1 -0
  147. package/dist/components/Reference.js +71 -0
  148. package/dist/components/Reference.js.map +1 -0
  149. package/dist/components/References.d.ts +6 -0
  150. package/dist/components/References.d.ts.map +1 -0
  151. package/dist/components/References.js +25 -0
  152. package/dist/components/References.js.map +1 -0
  153. package/dist/components/ResponsiveMediaContainer.d.ts +18 -0
  154. package/dist/components/ResponsiveMediaContainer.d.ts.map +1 -0
  155. package/dist/components/ResponsiveMediaContainer.js +21 -0
  156. package/dist/components/ResponsiveMediaContainer.js.map +1 -0
  157. package/dist/components/RestrictedAudioPlayer.d.ts +12 -0
  158. package/dist/components/RestrictedAudioPlayer.d.ts.map +1 -0
  159. package/dist/components/RestrictedAudioPlayer.js +32 -0
  160. package/dist/components/RestrictedAudioPlayer.js.map +1 -0
  161. package/dist/components/RichTextAnswer.d.ts +33 -0
  162. package/dist/components/RichTextAnswer.d.ts.map +1 -0
  163. package/dist/components/RichTextAnswer.js +61 -0
  164. package/dist/components/RichTextAnswer.js.map +1 -0
  165. package/dist/components/SaveIndicator.d.ts +5 -0
  166. package/dist/components/SaveIndicator.d.ts.map +1 -0
  167. package/dist/components/SaveIndicator.js +16 -0
  168. package/dist/components/SaveIndicator.js.map +1 -0
  169. package/dist/components/Score.d.ts +8 -0
  170. package/dist/components/Score.d.ts.map +1 -0
  171. package/dist/components/Score.js +13 -0
  172. package/dist/components/Score.js.map +1 -0
  173. package/dist/components/Section.d.ts +4 -0
  174. package/dist/components/Section.d.ts.map +1 -0
  175. package/dist/components/Section.js +8 -0
  176. package/dist/components/Section.js.map +1 -0
  177. package/dist/components/SectionContext.d.ts +13 -0
  178. package/dist/components/SectionContext.d.ts.map +1 -0
  179. package/dist/components/SectionContext.js +21 -0
  180. package/dist/components/SectionContext.js.map +1 -0
  181. package/dist/components/SectionInstruction.d.ts +6 -0
  182. package/dist/components/SectionInstruction.d.ts.map +1 -0
  183. package/dist/components/SectionInstruction.js +6 -0
  184. package/dist/components/SectionInstruction.js.map +1 -0
  185. package/dist/components/TableOfContents.d.ts +13 -0
  186. package/dist/components/TableOfContents.d.ts.map +1 -0
  187. package/dist/components/TableOfContents.js +66 -0
  188. package/dist/components/TableOfContents.js.map +1 -0
  189. package/dist/components/TextAnswer.d.ts +6 -0
  190. package/dist/components/TextAnswer.d.ts.map +1 -0
  191. package/dist/components/TextAnswer.js +17 -0
  192. package/dist/components/TextAnswer.js.map +1 -0
  193. package/dist/components/TextAnswerInput.d.ts +36 -0
  194. package/dist/components/TextAnswerInput.d.ts.map +1 -0
  195. package/dist/components/TextAnswerInput.js +145 -0
  196. package/dist/components/TextAnswerInput.js.map +1 -0
  197. package/dist/components/Video.d.ts +6 -0
  198. package/dist/components/Video.d.ts.map +1 -0
  199. package/dist/components/Video.js +15 -0
  200. package/dist/components/Video.js.map +1 -0
  201. package/dist/components/exam/TableOfContents.d.ts +13 -0
  202. package/dist/components/exam/TableOfContents.d.ts.map +1 -0
  203. package/dist/components/exam/TableOfContents.js +66 -0
  204. package/dist/components/exam/TableOfContents.js.map +1 -0
  205. package/dist/components/grading-instruction/AnswerGradingInstruction.d.ts +5 -0
  206. package/dist/components/grading-instruction/AnswerGradingInstruction.d.ts.map +1 -0
  207. package/dist/components/grading-instruction/AnswerGradingInstruction.js +6 -0
  208. package/dist/components/grading-instruction/AnswerGradingInstruction.js.map +1 -0
  209. package/dist/components/grading-instruction/Audio.d.ts +5 -0
  210. package/dist/components/grading-instruction/Audio.d.ts.map +1 -0
  211. package/dist/components/grading-instruction/Audio.js +6 -0
  212. package/dist/components/grading-instruction/Audio.js.map +1 -0
  213. package/dist/components/grading-instruction/AudioTitle.d.ts +5 -0
  214. package/dist/components/grading-instruction/AudioTitle.d.ts.map +1 -0
  215. package/dist/components/grading-instruction/AudioTitle.js +10 -0
  216. package/dist/components/grading-instruction/AudioTitle.js.map +1 -0
  217. package/dist/components/grading-instruction/AutogradedAnswer.d.ts +5 -0
  218. package/dist/components/grading-instruction/AutogradedAnswer.d.ts.map +1 -0
  219. package/dist/components/grading-instruction/AutogradedAnswer.js +31 -0
  220. package/dist/components/grading-instruction/AutogradedAnswer.js.map +1 -0
  221. package/dist/components/grading-instruction/AutogradedAnswerOption.d.ts +5 -0
  222. package/dist/components/grading-instruction/AutogradedAnswerOption.d.ts.map +1 -0
  223. package/dist/components/grading-instruction/AutogradedAnswerOption.js +14 -0
  224. package/dist/components/grading-instruction/AutogradedAnswerOption.js.map +1 -0
  225. package/dist/components/grading-instruction/ExamGradingInstruction.d.ts +5 -0
  226. package/dist/components/grading-instruction/ExamGradingInstruction.d.ts.map +1 -0
  227. package/dist/components/grading-instruction/ExamGradingInstruction.js +6 -0
  228. package/dist/components/grading-instruction/ExamGradingInstruction.js.map +1 -0
  229. package/dist/components/grading-instruction/GradingInstruction.d.ts +5 -0
  230. package/dist/components/grading-instruction/GradingInstruction.d.ts.map +1 -0
  231. package/dist/components/grading-instruction/GradingInstruction.js +85 -0
  232. package/dist/components/grading-instruction/GradingInstruction.js.map +1 -0
  233. package/dist/components/grading-instruction/Question.d.ts +5 -0
  234. package/dist/components/grading-instruction/Question.d.ts.map +1 -0
  235. package/dist/components/grading-instruction/Question.js +12 -0
  236. package/dist/components/grading-instruction/Question.js.map +1 -0
  237. package/dist/components/grading-instruction/QuestionTitle.d.ts +5 -0
  238. package/dist/components/grading-instruction/QuestionTitle.d.ts.map +1 -0
  239. package/dist/components/grading-instruction/QuestionTitle.js +19 -0
  240. package/dist/components/grading-instruction/QuestionTitle.js.map +1 -0
  241. package/dist/components/grading-instruction/Section.d.ts +5 -0
  242. package/dist/components/grading-instruction/Section.d.ts.map +1 -0
  243. package/dist/components/grading-instruction/Section.js +10 -0
  244. package/dist/components/grading-instruction/Section.js.map +1 -0
  245. package/dist/components/grading-instruction/SectionTitle.d.ts +5 -0
  246. package/dist/components/grading-instruction/SectionTitle.d.ts.map +1 -0
  247. package/dist/components/grading-instruction/SectionTitle.js +16 -0
  248. package/dist/components/grading-instruction/SectionTitle.js.map +1 -0
  249. package/dist/components/results/AnnotationList.d.ts +5 -0
  250. package/dist/components/results/AnnotationList.d.ts.map +1 -0
  251. package/dist/components/results/AnnotationList.js +43 -0
  252. package/dist/components/results/AnnotationList.js.map +1 -0
  253. package/dist/components/results/GradingStructure.d.ts +5 -0
  254. package/dist/components/results/GradingStructure.d.ts.map +1 -0
  255. package/dist/components/results/GradingStructure.js +21 -0
  256. package/dist/components/results/GradingStructure.js.map +1 -0
  257. package/dist/components/results/Hvp.d.ts +15 -0
  258. package/dist/components/results/Hvp.d.ts.map +1 -0
  259. package/dist/components/results/Hvp.js +73 -0
  260. package/dist/components/results/Hvp.js.map +1 -0
  261. package/dist/components/results/HvpTextAnswer.d.ts +6 -0
  262. package/dist/components/results/HvpTextAnswer.d.ts.map +1 -0
  263. package/dist/components/results/HvpTextAnswer.js +51 -0
  264. package/dist/components/results/HvpTextAnswer.js.map +1 -0
  265. package/dist/components/results/ResultsChoiceAnswer.d.ts +6 -0
  266. package/dist/components/results/ResultsChoiceAnswer.d.ts.map +1 -0
  267. package/dist/components/results/ResultsChoiceAnswer.js +57 -0
  268. package/dist/components/results/ResultsChoiceAnswer.js.map +1 -0
  269. package/dist/components/results/ResultsContext.d.ts +18 -0
  270. package/dist/components/results/ResultsContext.d.ts.map +1 -0
  271. package/dist/components/results/ResultsContext.js +68 -0
  272. package/dist/components/results/ResultsContext.js.map +1 -0
  273. package/dist/components/results/ResultsDropdownAnswer.d.ts +6 -0
  274. package/dist/components/results/ResultsDropdownAnswer.d.ts.map +1 -0
  275. package/dist/components/results/ResultsDropdownAnswer.js +43 -0
  276. package/dist/components/results/ResultsDropdownAnswer.js.map +1 -0
  277. package/dist/components/results/ResultsExamQuestion.d.ts +5 -0
  278. package/dist/components/results/ResultsExamQuestion.d.ts.map +1 -0
  279. package/dist/components/results/ResultsExamQuestion.js +23 -0
  280. package/dist/components/results/ResultsExamQuestion.js.map +1 -0
  281. package/dist/components/results/ResultsExamQuestionAutoScore.d.ts +10 -0
  282. package/dist/components/results/ResultsExamQuestionAutoScore.d.ts.map +1 -0
  283. package/dist/components/results/ResultsExamQuestionAutoScore.js +17 -0
  284. package/dist/components/results/ResultsExamQuestionAutoScore.js.map +1 -0
  285. package/dist/components/results/ResultsExamQuestionManualScore.d.ts +12 -0
  286. package/dist/components/results/ResultsExamQuestionManualScore.d.ts.map +1 -0
  287. package/dist/components/results/ResultsExamQuestionManualScore.js +61 -0
  288. package/dist/components/results/ResultsExamQuestionManualScore.js.map +1 -0
  289. package/dist/components/results/ResultsExamQuestionScoresContainer.d.ts +10 -0
  290. package/dist/components/results/ResultsExamQuestionScoresContainer.d.ts.map +1 -0
  291. package/dist/components/results/ResultsExamQuestionScoresContainer.js +12 -0
  292. package/dist/components/results/ResultsExamQuestionScoresContainer.js.map +1 -0
  293. package/dist/components/results/ResultsExamQuestionTitle.d.ts +6 -0
  294. package/dist/components/results/ResultsExamQuestionTitle.d.ts.map +1 -0
  295. package/dist/components/results/ResultsExamQuestionTitle.js +21 -0
  296. package/dist/components/results/ResultsExamQuestionTitle.js.map +1 -0
  297. package/dist/components/results/ResultsExamSection.d.ts +5 -0
  298. package/dist/components/results/ResultsExamSection.d.ts.map +1 -0
  299. package/dist/components/results/ResultsExamSection.js +18 -0
  300. package/dist/components/results/ResultsExamSection.js.map +1 -0
  301. package/dist/components/results/ResultsMultiLineAnswer.d.ts +8 -0
  302. package/dist/components/results/ResultsMultiLineAnswer.d.ts.map +1 -0
  303. package/dist/components/results/ResultsMultiLineAnswer.js +19 -0
  304. package/dist/components/results/ResultsMultiLineAnswer.js.map +1 -0
  305. package/dist/components/results/ResultsScoredTextAnswer.d.ts +6 -0
  306. package/dist/components/results/ResultsScoredTextAnswer.d.ts.map +1 -0
  307. package/dist/components/results/ResultsScoredTextAnswer.js +22 -0
  308. package/dist/components/results/ResultsScoredTextAnswer.js.map +1 -0
  309. package/dist/components/results/ResultsSingleLineAnswer.d.ts +12 -0
  310. package/dist/components/results/ResultsSingleLineAnswer.d.ts.map +1 -0
  311. package/dist/components/results/ResultsSingleLineAnswer.js +23 -0
  312. package/dist/components/results/ResultsSingleLineAnswer.js.map +1 -0
  313. package/dist/components/results/ResultsTextAnswer.d.ts +6 -0
  314. package/dist/components/results/ResultsTextAnswer.d.ts.map +1 -0
  315. package/dist/components/results/ResultsTextAnswer.js +50 -0
  316. package/dist/components/results/ResultsTextAnswer.js.map +1 -0
  317. package/dist/components/results/helpers.d.ts +9 -0
  318. package/dist/components/results/helpers.d.ts.map +1 -0
  319. package/dist/components/results/helpers.js +11 -0
  320. package/dist/components/results/helpers.js.map +1 -0
  321. package/dist/components/withContext.d.ts +3 -0
  322. package/dist/components/withContext.d.ts.map +1 -0
  323. package/dist/components/withContext.js +12 -0
  324. package/dist/components/withContext.js.map +1 -0
  325. package/dist/main-bundle.js +4 -4
  326. package/dist/main.css +1 -1
  327. package/package.json +3 -3
  328. package/dist/components/grading-instructions/RecordingTitle.d.ts +0 -5
  329. package/dist/components/grading-instructions/RecordingTitle.d.ts.map +0 -1
  330. package/dist/components/grading-instructions/RecordingTitle.js +0 -11
  331. package/dist/components/grading-instructions/RecordingTitle.js.map +0 -1
  332. package/dist/components/shared/ImageTitle.d.ts +0 -5
  333. package/dist/components/shared/ImageTitle.d.ts.map +0 -1
  334. package/dist/components/shared/ImageTitle.js +0 -7
  335. package/dist/components/shared/ImageTitle.js.map +0 -1
@@ -27,7 +27,7 @@
27
27
  *
28
28
  * Date: 2021-02-16
29
29
  */
30
- function(e){var t,n,r,i,a,o,s,l,c,u,f,d,p,h,g,m,y,v,b,I="sizzle"+1*new Date,x=e.document,w=0,T=0,M=le(),A=le(),C=le(),E=le(),N=function(e,t){return e===t&&(f=!0),0},S={}.hasOwnProperty,k=[],j=k.pop,D=k.push,O=k.push,L=k.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",z="[\\x20\\t\\r\\n\\f]",_="(?:\\\\[\\da-fA-F]{1,6}"+z+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",U="\\["+z+"*("+_+")(?:"+z+"*([*^$|!~]?=)"+z+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+_+"))|)"+z+"*\\]",Z=":("+_+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+U+")*)|.*)\\)|)",F=new RegExp(z+"+","g"),G=new RegExp("^"+z+"+|((?:^|[^\\\\])(?:\\\\.)*)"+z+"+$","g"),B=new RegExp("^"+z+"*,"+z+"*"),Y=new RegExp("^"+z+"*([>+~]|"+z+")"+z+"*"),W=new RegExp(z+"|>"),H=new RegExp(Z),V=new RegExp("^"+_+"$"),q={ID:new RegExp("^#("+_+")"),CLASS:new RegExp("^\\.("+_+")"),TAG:new RegExp("^("+_+"|[*])"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+Z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+z+"*(even|odd|(([+-]|)(\\d*)n|)"+z+"*(?:([+-]|)"+z+"*(\\d+)|))"+z+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+z+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+z+"*((?:-\\d)?\\d*)"+z+"*\\)|)(?=[^-]|$)","i")},Q=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+z+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=function(){d()},oe=Ie((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{O.apply(k=L.call(x.childNodes),x.childNodes),k[x.childNodes.length].nodeType}catch(e){O={apply:k.length?function(e,t){D.apply(e,L.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var a,s,c,u,f,h,y,v=t&&t.ownerDocument,x=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==x&&9!==x&&11!==x)return r;if(!i&&(d(t),t=t||p,g)){if(11!==x&&(f=$.exec(e)))if(a=f[1]){if(9===x){if(!(c=t.getElementById(a)))return r;if(c.id===a)return r.push(c),r}else if(v&&(c=v.getElementById(a))&&b(t,c)&&c.id===a)return r.push(c),r}else{if(f[2])return O.apply(r,t.getElementsByTagName(e)),r;if((a=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return O.apply(r,t.getElementsByClassName(a)),r}if(n.qsa&&!E[e+" "]&&(!m||!m.test(e))&&(1!==x||"object"!==t.nodeName.toLowerCase())){if(y=e,v=t,1===x&&(W.test(e)||Y.test(e))){for((v=ee.test(e)&&ye(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(re,ie):t.setAttribute("id",u=I)),s=(h=o(e)).length;s--;)h[s]=(u?"#"+u:":scope")+" "+be(h[s]);y=h.join(",")}try{return O.apply(r,v.querySelectorAll(y)),r}catch(t){E(e,!0)}finally{u===I&&t.removeAttribute("id")}}}return l(e.replace(G,"$1"),t,r,i)}function le(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function ce(e){return e[I]=!0,e}function ue(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function de(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&oe(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return ce((function(t){return t=+t,ce((function(n,r){for(var i,a=e([],n.length,t),o=a.length;o--;)n[i=a[o]]&&(n[i]=!(r[i]=n[i]))}))}))}function ye(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},a=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Q.test(t||n&&n.nodeName||"HTML")},d=se.setDocument=function(e){var t,i,o=e?e.ownerDocument||e:x;return o!=p&&9===o.nodeType&&o.documentElement?(h=(p=o).documentElement,g=!a(p),x!=p&&(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ae,!1):i.attachEvent&&i.attachEvent("onunload",ae)),n.scope=ue((function(e){return h.appendChild(e).appendChild(p.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=K.test(p.getElementsByClassName),n.getById=ue((function(e){return h.appendChild(e).id=I,!p.getElementsByName||!p.getElementsByName(I).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,i,a=t.getElementById(e);if(a){if((n=a.getAttributeNode("id"))&&n.value===e)return[a];for(i=t.getElementsByName(e),r=0;a=i[r++];)if((n=a.getAttributeNode("id"))&&n.value===e)return[a]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,a=t.getElementsByTagName(e);if("*"===e){for(;n=a[i++];)1===n.nodeType&&r.push(n);return r}return a},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},y=[],m=[],(n.qsa=K.test(p.querySelectorAll))&&(ue((function(e){var t;h.appendChild(e).innerHTML="<a id='"+I+"'></a><select id='"+I+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+z+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+z+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+I+"-]").length||m.push("~="),(t=p.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||m.push("\\["+z+"*name"+z+"*="+z+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+I+"+*").length||m.push(".#.+[+~]"),e.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+z+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=K.test(v=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),y.push("!=",Z)})),m=m.length&&new RegExp(m.join("|")),y=y.length&&new RegExp(y.join("|")),t=K.test(h.compareDocumentPosition),b=t||K.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},N=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==p||e.ownerDocument==x&&b(x,e)?-1:t==p||t.ownerDocument==x&&b(x,t)?1:u?P(u,e)-P(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,i=e.parentNode,a=t.parentNode,o=[e],s=[t];if(!i||!a)return e==p?-1:t==p?1:i?-1:a?1:u?P(u,e)-P(u,t):0;if(i===a)return de(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;o[r]===s[r];)r++;return r?de(o[r],s[r]):o[r]==x?-1:s[r]==x?1:0},p):p},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(d(e),n.matchesSelector&&g&&!E[t+" "]&&(!y||!y.test(t))&&(!m||!m.test(t)))try{var r=v.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){E(t,!0)}return se(t,p,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=p&&d(e),b(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=p&&d(e);var i=r.attrHandle[t.toLowerCase()],a=i&&S.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==a?a:n.attributes||!g?e.getAttribute(t):(a=e.getAttributeNode(t))&&a.specified?a.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],i=0,a=0;if(f=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(N),f){for(;t=e[a++];)t===e[a]&&(i=r.push(a));for(;i--;)e.splice(r[i],1)}return u=null,e},i=se.getText=function(e){var t,n="",r=0,a=e.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===a||4===a)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=se.selectors={cacheLength:50,createPseudo:ce,match:q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&H.test(n)&&(t=o(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=M[e+" "];return t||(t=new RegExp("(^|"+z+")"+e+"("+z+"|$)"))&&M(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(F," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var a="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var c,u,f,d,p,h,g=a!==o?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!l&&!s,b=!1;if(m){if(a){for(;g;){for(d=t;d=d[g];)if(s?d.nodeName.toLowerCase()===y:1===d.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[o?m.firstChild:m.lastChild],o&&v){for(b=(p=(c=(u=(f=(d=m)[I]||(d[I]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===w&&c[1])&&c[2],d=p&&m.childNodes[p];d=++p&&d&&d[g]||(b=p=0)||h.pop();)if(1===d.nodeType&&++b&&d===t){u[e]=[w,p,b];break}}else if(v&&(b=p=(c=(u=(f=(d=t)[I]||(d[I]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===w&&c[1]),!1===b)for(;(d=++p&&d&&d[g]||(b=p=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==y:1!==d.nodeType)||!++b||(v&&((u=(f=d[I]||(d[I]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]=[w,b]),d!==t)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return i[I]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,n){for(var r,a=i(e,t),o=a.length;o--;)e[r=P(e,a[o])]=!(n[r]=a[o])})):function(e){return i(e,0,n)}):i}},pseudos:{not:ce((function(e){var t=[],n=[],r=s(e.replace(G,"$1"));return r[I]?ce((function(e,t,n,i){for(var a,o=r(e,null,i,[]),s=e.length;s--;)(a=o[s])&&(e[s]=!(t[s]=a))})):function(e,i,a){return t[0]=e,r(t,null,a,n),t[0]=null,!n.pop()}})),has:ce((function(e){return function(t){return se(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}})),lang:ce((function(e){return V.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return J.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:me((function(){return[0]})),last:me((function(e,t){return[t-1]})),eq:me((function(e,t,n){return[n<0?n+t:n]})),even:me((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:me((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:me((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:me((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=pe(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=he(t);function ve(){}function be(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function Ie(e,t,n){var r=t.dir,i=t.next,a=i||r,o=n&&"parentNode"===a,s=T++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,i);return!1}:function(t,n,l){var c,u,f,d=[w,s];if(l){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||o)if(u=(f=t[I]||(t[I]={}))[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=u[a])&&c[0]===w&&c[1]===s)return d[2]=c[2];if(u[a]=d,d[2]=e(t,n,l))return!0}return!1}}function xe(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function we(e,t,n,r,i){for(var a,o=[],s=0,l=e.length,c=null!=t;s<l;s++)(a=e[s])&&(n&&!n(a,r,i)||(o.push(a),c&&t.push(s)));return o}function Te(e,t,n,r,i,a){return r&&!r[I]&&(r=Te(r)),i&&!i[I]&&(i=Te(i,a)),ce((function(a,o,s,l){var c,u,f,d=[],p=[],h=o.length,g=a||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),m=!e||!a&&t?g:we(g,d,e,s,l),y=n?i||(a?e:h||r)?[]:o:m;if(n&&n(m,y,s,l),r)for(c=we(y,p),r(c,[],s,l),u=c.length;u--;)(f=c[u])&&(y[p[u]]=!(m[p[u]]=f));if(a){if(i||e){if(i){for(c=[],u=y.length;u--;)(f=y[u])&&c.push(m[u]=f);i(null,y=[],c,l)}for(u=y.length;u--;)(f=y[u])&&(c=i?P(a,f):d[u])>-1&&(a[c]=!(o[c]=f))}}else y=we(y===o?y.splice(h,y.length):y),i?i(null,o,y,l):O.apply(o,y)}))}function Me(e){for(var t,n,i,a=e.length,o=r.relative[e[0].type],s=o||r.relative[" "],l=o?1:0,u=Ie((function(e){return e===t}),s,!0),f=Ie((function(e){return P(t,e)>-1}),s,!0),d=[function(e,n,r){var i=!o&&(r||n!==c)||((t=n).nodeType?u(e,n,r):f(e,n,r));return t=null,i}];l<a;l++)if(n=r.relative[e[l].type])d=[Ie(xe(d),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[I]){for(i=++l;i<a&&!r.relative[e[i].type];i++);return Te(l>1&&xe(d),l>1&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(G,"$1"),n,l<i&&Me(e.slice(l,i)),i<a&&Me(e=e.slice(i)),i<a&&be(e))}d.push(n)}return xe(d)}return ve.prototype=r.filters=r.pseudos,r.setFilters=new ve,o=se.tokenize=function(e,t){var n,i,a,o,s,l,c,u=A[e+" "];if(u)return t?0:u.slice(0);for(s=e,l=[],c=r.preFilter;s;){for(o in n&&!(i=B.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(a=[])),n=!1,(i=Y.exec(s))&&(n=i.shift(),a.push({value:n,type:i[0].replace(G," ")}),s=s.slice(n.length)),r.filter)!(i=q[o].exec(s))||c[o]&&!(i=c[o](i))||(n=i.shift(),a.push({value:n,type:o,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):A(e,l).slice(0)},s=se.compile=function(e,t){var n,i=[],a=[],s=C[e+" "];if(!s){for(t||(t=o(e)),n=t.length;n--;)(s=Me(t[n]))[I]?i.push(s):a.push(s);(s=C(e,function(e,t){var n=t.length>0,i=e.length>0,a=function(a,o,s,l,u){var f,h,m,y=0,v="0",b=a&&[],I=[],x=c,T=a||i&&r.find.TAG("*",u),M=w+=null==x?1:Math.random()||.1,A=T.length;for(u&&(c=o==p||o||u);v!==A&&null!=(f=T[v]);v++){if(i&&f){for(h=0,o||f.ownerDocument==p||(d(f),s=!g);m=e[h++];)if(m(f,o||p,s)){l.push(f);break}u&&(w=M)}n&&((f=!m&&f)&&y--,a&&b.push(f))}if(y+=v,n&&v!==y){for(h=0;m=t[h++];)m(b,I,o,s);if(a){if(y>0)for(;v--;)b[v]||I[v]||(I[v]=j.call(l));I=we(I)}O.apply(l,I),u&&!a&&I.length>0&&y+t.length>1&&se.uniqueSort(l)}return u&&(w=M,c=x),b};return n?ce(a):a}(a,i))).selector=e}return s},l=se.select=function(e,t,n,i){var a,l,c,u,f,d="function"==typeof e&&e,p=!i&&o(e=d.selector||e);if(n=n||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&g&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(a=q.needsContext.test(e)?0:l.length;a--&&(c=l[a],!r.relative[u=c.type]);)if((f=r.find[u])&&(i=f(c.matches[0].replace(te,ne),ee.test(l[0].type)&&ye(t.parentNode)||t))){if(l.splice(a,1),!(e=i.length&&be(l)))return O.apply(n,i),n;break}}return(d||s(e,p))(i,t,!g,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},n.sortStable=I.split("").sort(N).join("")===I,n.detectDuplicates=!!f,d(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||fe("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||fe("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||fe(R,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(n);T.find=A,T.expr=A.selectors,T.expr[":"]=T.expr.pseudos,T.uniqueSort=T.unique=A.uniqueSort,T.text=A.getText,T.isXMLDoc=A.isXML,T.contains=A.contains,T.escapeSelector=A.escape;var C=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&T(e).is(n))break;r.push(e)}return r},E=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},N=T.expr.match.needsContext;function S(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var k=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,t,n){return y(t)?T.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?T.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?T.grep(e,(function(e){return u.call(t,e)>-1!==n})):T.filter(t,e,n)}T.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?T.find.matchesSelector(r,e)?[r]:[]:T.find.matches(e,T.grep(t,(function(e){return 1===e.nodeType})))},T.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(T(e).filter((function(){for(t=0;t<r;t++)if(T.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)T.find(e,i[t],n);return r>1?T.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&N.test(e)?T(e):e||[],!1).length}});var D,O=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:O.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof T?t[0]:t,T.merge(this,T.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),k.test(r[1])&&T.isPlainObject(t))for(r in t)y(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=b.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(T):T.makeArray(e,this)}).prototype=T.fn,D=T(b);var L=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function R(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var t=T(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(T.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,a=[],o="string"!=typeof e&&T(e);if(!N.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&T.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?T.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?u.call(T(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),T.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return C(e,"parentNode")},parentsUntil:function(e,t,n){return C(e,"parentNode",n)},next:function(e){return R(e,"nextSibling")},prev:function(e){return R(e,"previousSibling")},nextAll:function(e){return C(e,"nextSibling")},prevAll:function(e){return C(e,"previousSibling")},nextUntil:function(e,t,n){return C(e,"nextSibling",n)},prevUntil:function(e,t,n){return C(e,"previousSibling",n)},siblings:function(e){return E((e.parentNode||{}).firstChild,e)},children:function(e){return E(e.firstChild)},contents:function(e){return null!=e.contentDocument&&o(e.contentDocument)?e.contentDocument:(S(e,"template")&&(e=e.content||e),T.merge([],e.childNodes))}},(function(e,t){T.fn[e]=function(n,r){var i=T.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=T.filter(r,i)),this.length>1&&(P[e]||T.uniqueSort(i),L.test(e)&&i.reverse()),this.pushStack(i)}}));var z=/[^\x20\t\r\n\f]+/g;function _(e){return e}function U(e){throw e}function Z(e,t,n,r){var i;try{e&&y(i=e.promise)?i.call(e).done(t).fail(n):e&&y(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}T.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return T.each(e.match(z)||[],(function(e,n){t[n]=!0})),t}(e):T.extend({},e);var t,n,r,i,a=[],o=[],s=-1,l=function(){for(i=i||e.once,r=t=!0;o.length;s=-1)for(n=o.shift();++s<a.length;)!1===a[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=a.length,n=!1);e.memory||(n=!1),t=!1,i&&(a=n?[]:"")},c={add:function(){return a&&(n&&!t&&(s=a.length-1,o.push(n)),function t(n){T.each(n,(function(n,r){y(r)?e.unique&&c.has(r)||a.push(r):r&&r.length&&"string"!==w(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return T.each(arguments,(function(e,t){for(var n;(n=T.inArray(t,a,n))>-1;)a.splice(n,1),n<=s&&s--})),this},has:function(e){return e?T.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return i=o=[],a=n="",this},disabled:function(){return!a},lock:function(){return i=o=[],n||t||(a=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],o.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},T.extend({Deferred:function(e){var t=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return T.Deferred((function(n){T.each(t,(function(t,r){var i=y(e[r[4]])&&e[r[4]];a[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,r,i){var a=0;function o(e,t,r,i){return function(){var s=this,l=arguments,c=function(){var n,c;if(!(e<a)){if((n=r.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"==typeof n||"function"==typeof n)&&n.then,y(c)?i?c.call(n,o(a,t,_,i),o(a,t,U,i)):(a++,c.call(n,o(a,t,_,i),o(a,t,U,i),o(a,t,_,t.notifyWith))):(r!==_&&(s=void 0,l=[n]),(i||t.resolveWith)(s,l))}},u=i?c:function(){try{c()}catch(n){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(n,u.stackTrace),e+1>=a&&(r!==U&&(s=void 0,l=[n]),t.rejectWith(s,l))}};e?u():(T.Deferred.getStackHook&&(u.stackTrace=T.Deferred.getStackHook()),n.setTimeout(u))}}return T.Deferred((function(n){t[0][3].add(o(0,n,y(i)?i:_,n.notifyWith)),t[1][3].add(o(0,n,y(e)?e:_)),t[2][3].add(o(0,n,y(r)?r:U))})).promise()},promise:function(e){return null!=e?T.extend(e,i):i}},a={};return T.each(t,(function(e,n){var o=n[2],s=n[5];i[n[1]]=o.add,s&&o.add((function(){r=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),o.add(n[3].fire),a[n[0]]=function(){return a[n[0]+"With"](this===a?void 0:this,arguments),this},a[n[0]+"With"]=o.fireWith})),i.promise(a),e&&e.call(a,a),a},when:function(e){var t=arguments.length,n=t,r=Array(n),i=s.call(arguments),a=T.Deferred(),o=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?s.call(arguments):n,--t||a.resolveWith(r,i)}};if(t<=1&&(Z(e,a.done(o(n)).resolve,a.reject,!t),"pending"===a.state()||y(i[n]&&i[n].then)))return a.then();for(;n--;)Z(i[n],o(n),a.reject);return a.promise()}});var F=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&F.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},T.readyException=function(e){n.setTimeout((function(){throw e}))};var G=T.Deferred();function B(){b.removeEventListener("DOMContentLoaded",B),n.removeEventListener("load",B),T.ready()}T.fn.ready=function(e){return G.then(e).catch((function(e){T.readyException(e)})),this},T.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==e&&--T.readyWait>0||G.resolveWith(b,[T]))}}),T.ready.then=G.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?n.setTimeout(T.ready):(b.addEventListener("DOMContentLoaded",B),n.addEventListener("load",B));var Y=function(e,t,n,r,i,a,o){var s=0,l=e.length,c=null==n;if("object"===w(n))for(s in i=!0,n)Y(e,t,s,n[s],!0,a,o);else if(void 0!==r&&(i=!0,y(r)||(o=!0),c&&(o?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(T(e),n)})),t))for(;s<l;s++)t(e[s],n,o?r:r.call(e[s],s,t(e[s],n)));return i?e:c?t.call(e):l?t(e[0],n):a},W=/^-ms-/,H=/-([a-z])/g;function V(e,t){return t.toUpperCase()}function q(e){return e.replace(W,"ms-").replace(H,V)}var Q=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function J(){this.expando=T.expando+J.uid++}J.uid=1,J.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Q(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[q(t)]=n;else for(r in t)i[q(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][q(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(q):(t=q(t))in r?[t]:t.match(z)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||T.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!T.isEmptyObject(t)}};var X=new J,K=new J,$=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ee=/[A-Z]/g;function te(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ee,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:$.test(e)?JSON.parse(e):e)}(n)}catch(e){}K.set(e,t,n)}else n=void 0;return n}T.extend({hasData:function(e){return K.hasData(e)||X.hasData(e)},data:function(e,t,n){return K.access(e,t,n)},removeData:function(e,t){K.remove(e,t)},_data:function(e,t,n){return X.access(e,t,n)},_removeData:function(e,t){X.remove(e,t)}}),T.fn.extend({data:function(e,t){var n,r,i,a=this[0],o=a&&a.attributes;if(void 0===e){if(this.length&&(i=K.get(a),1===a.nodeType&&!X.get(a,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(r=o[n].name).indexOf("data-")&&(r=q(r.slice(5)),te(a,r,i[r]));X.set(a,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){K.set(this,e)})):Y(this,(function(t){var n;if(a&&void 0===t)return void 0!==(n=K.get(a,e))||void 0!==(n=te(a,e))?n:void 0;this.each((function(){K.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){K.remove(this,e)}))}}),T.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=X.get(e,t),n&&(!r||Array.isArray(n)?r=X.access(e,t,T.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=T.queue(e,t),r=n.length,i=n.shift(),a=T._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete a.stop,i.call(e,(function(){T.dequeue(e,t)}),a)),!r&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return X.get(e,n)||X.access(e,n,{empty:T.Callbacks("once memory").add((function(){X.remove(e,[t+"queue",n])}))})}}),T.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?T.queue(this[0],e):void 0===t?this:this.each((function(){var n=T.queue(this,e,t);T._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&T.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){T.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=T.Deferred(),a=this,o=this.length,s=function(){--r||i.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(n=X.get(a[o],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ne=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,re=new RegExp("^(?:([+-])=|)("+ne+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"],ae=b.documentElement,oe=function(e){return T.contains(e.ownerDocument,e)},se={composed:!0};ae.getRootNode&&(oe=function(e){return T.contains(e.ownerDocument,e)||e.getRootNode(se)===e.ownerDocument});var le=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&oe(e)&&"none"===T.css(e,"display")};function ce(e,t,n,r){var i,a,o=20,s=r?function(){return r.cur()}:function(){return T.css(e,t,"")},l=s(),c=n&&n[3]||(T.cssNumber[t]?"":"px"),u=e.nodeType&&(T.cssNumber[t]||"px"!==c&&+l)&&re.exec(T.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;o--;)T.style(e,t,u+c),(1-a)*(1-(a=s()/l||.5))<=0&&(o=0),u/=a;u*=2,T.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=i)),i}var ue={};function fe(e){var t,n=e.ownerDocument,r=e.nodeName,i=ue[r];return i||(t=n.body.appendChild(n.createElement(r)),i=T.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),ue[r]=i,i)}function de(e,t){for(var n,r,i=[],a=0,o=e.length;a<o;a++)(r=e[a]).style&&(n=r.style.display,t?("none"===n&&(i[a]=X.get(r,"display")||null,i[a]||(r.style.display="")),""===r.style.display&&le(r)&&(i[a]=fe(r))):"none"!==n&&(i[a]="none",X.set(r,"display",n)));for(a=0;a<o;a++)null!=i[a]&&(e[a].style.display=i[a]);return e}T.fn.extend({show:function(){return de(this,!0)},hide:function(){return de(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){le(this)?T(this).show():T(this).hide()}))}});var pe,he,ge=/^(?:checkbox|radio)$/i,me=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ye=/^$|^module$|\/(?:java|ecma)script/i;pe=b.createDocumentFragment().appendChild(b.createElement("div")),(he=b.createElement("input")).setAttribute("type","radio"),he.setAttribute("checked","checked"),he.setAttribute("name","t"),pe.appendChild(he),m.checkClone=pe.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue,pe.innerHTML="<option></option>",m.option=!!pe.lastChild;var ve={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function be(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&S(e,t)?T.merge([e],n):n}function Ie(e,t){for(var n=0,r=e.length;n<r;n++)X.set(e[n],"globalEval",!t||X.get(t[n],"globalEval"))}ve.tbody=ve.tfoot=ve.colgroup=ve.caption=ve.thead,ve.th=ve.td,m.option||(ve.optgroup=ve.option=[1,"<select multiple='multiple'>","</select>"]);var xe=/<|&#?\w+;/;function we(e,t,n,r,i){for(var a,o,s,l,c,u,f=t.createDocumentFragment(),d=[],p=0,h=e.length;p<h;p++)if((a=e[p])||0===a)if("object"===w(a))T.merge(d,a.nodeType?[a]:a);else if(xe.test(a)){for(o=o||f.appendChild(t.createElement("div")),s=(me.exec(a)||["",""])[1].toLowerCase(),l=ve[s]||ve._default,o.innerHTML=l[1]+T.htmlPrefilter(a)+l[2],u=l[0];u--;)o=o.lastChild;T.merge(d,o.childNodes),(o=f.firstChild).textContent=""}else d.push(t.createTextNode(a));for(f.textContent="",p=0;a=d[p++];)if(r&&T.inArray(a,r)>-1)i&&i.push(a);else if(c=oe(a),o=be(f.appendChild(a),"script"),c&&Ie(o),n)for(u=0;a=o[u++];)ye.test(a.type||"")&&n.push(a);return f}var Te=/^([^.]*)(?:\.(.+)|)/;function Me(){return!0}function Ae(){return!1}function Ce(e,t){return e===function(){try{return b.activeElement}catch(e){}}()==("focus"===t)}function Ee(e,t,n,r,i,a){var o,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ee(e,s,n,r,t[s],a);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Ae;else if(!i)return e;return 1===a&&(o=i,(i=function(e){return T().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=T.guid++)),e.each((function(){T.event.add(this,t,i,r,n)}))}function Ne(e,t,n){n?(X.set(e,t,!1),T.event.add(e,t,{namespace:!1,handler:function(e){var r,i,a=X.get(this,t);if(1&e.isTrigger&&this[t]){if(a.length)(T.event.special[t]||{}).delegateType&&e.stopPropagation();else if(a=s.call(arguments),X.set(this,t,a),r=n(this,t),this[t](),a!==(i=X.get(this,t))||r?X.set(this,t,!1):i={},a!==i)return e.stopImmediatePropagation(),e.preventDefault(),i&&i.value}else a.length&&(X.set(this,t,{value:T.event.trigger(T.extend(a[0],T.Event.prototype),a.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===X.get(e,t)&&T.event.add(e,t,Me)}T.event={global:{},add:function(e,t,n,r,i){var a,o,s,l,c,u,f,d,p,h,g,m=X.get(e);if(Q(e))for(n.handler&&(n=(a=n).handler,i=a.selector),i&&T.find.matchesSelector(ae,i),n.guid||(n.guid=T.guid++),(l=m.events)||(l=m.events=Object.create(null)),(o=m.handle)||(o=m.handle=function(t){return void 0!==T&&T.event.triggered!==t.type?T.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(z)||[""]).length;c--;)p=g=(s=Te.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p&&(f=T.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=T.event.special[p]||{},u=T.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&T.expr.match.needsContext.test(i),namespace:h.join(".")},a),(d=l[p])||((d=l[p]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,o)||e.addEventListener&&e.addEventListener(p,o)),f.add&&(f.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,u):d.push(u),T.event.global[p]=!0)},remove:function(e,t,n,r,i){var a,o,s,l,c,u,f,d,p,h,g,m=X.hasData(e)&&X.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(z)||[""]).length;c--;)if(p=g=(s=Te.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p){for(f=T.event.special[p]||{},d=l[p=(r?f.delegateType:f.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=a=d.length;a--;)u=d[a],!i&&g!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(d.splice(a,1),u.selector&&d.delegateCount--,f.remove&&f.remove.call(e,u));o&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,h,m.handle)||T.removeEvent(e,p,m.handle),delete l[p])}else for(p in l)T.event.remove(e,p+t[c],n,r,!0);T.isEmptyObject(l)&&X.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,a,o,s=new Array(arguments.length),l=T.event.fix(e),c=(X.get(this,"events")||Object.create(null))[l.type]||[],u=T.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(o=T.event.handlers.call(this,l,c),t=0;(i=o[t++])&&!l.isPropagationStopped();)for(l.currentTarget=i.elem,n=0;(a=i.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==a.namespace&&!l.rnamespace.test(a.namespace)||(l.handleObj=a,l.data=a.data,void 0!==(r=((T.event.special[a.origType]||{}).handle||a.handler).apply(i.elem,s))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,i,a,o,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(a=[],o={},n=0;n<l;n++)void 0===o[i=(r=t[n]).selector+" "]&&(o[i]=r.needsContext?T(i,this).index(c)>-1:T.find(i,this,null,[c]).length),o[i]&&a.push(r);a.length&&s.push({elem:c,handlers:a})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(T.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[T.expando]?e:new T.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ge.test(t.type)&&t.click&&S(t,"input")&&Ne(t,"click",Me),!1},trigger:function(e){var t=this||e;return ge.test(t.type)&&t.click&&S(t,"input")&&Ne(t,"click"),!0},_default:function(e){var t=e.target;return ge.test(t.type)&&t.click&&S(t,"input")&&X.get(t,"click")||S(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},T.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},T.Event=function(e,t){if(!(this instanceof T.Event))return new T.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Me:Ae,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&T.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:Ae,isPropagationStopped:Ae,isImmediatePropagationStopped:Ae,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Me,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Me,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Me,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},(function(e,t){T.event.special[e]={setup:function(){return Ne(this,e,Ce),!1},trigger:function(){return Ne(this,e),!0},_default:function(){return!0},delegateType:t}})),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){T.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,a=e.handleObj;return i&&(i===r||T.contains(r,i))||(e.type=a.origType,n=a.handler.apply(this,arguments),e.type=t),n}}})),T.fn.extend({on:function(e,t,n,r){return Ee(this,e,t,n,r)},one:function(e,t,n,r){return Ee(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,T(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ae),this.each((function(){T.event.remove(this,e,n,t)}))}});var Se=/<script|<style|<link/i,ke=/checked\s*(?:[^=]|=\s*.checked.)/i,je=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function De(e,t){return S(e,"table")&&S(11!==t.nodeType?t:t.firstChild,"tr")&&T(e).children("tbody")[0]||e}function Oe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Le(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Pe(e,t){var n,r,i,a,o,s;if(1===t.nodeType){if(X.hasData(e)&&(s=X.get(e).events))for(i in X.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)T.event.add(t,i,s[i][n]);K.hasData(e)&&(a=K.access(e),o=T.extend({},a),K.set(t,o))}}function Re(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ge.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function ze(e,t,n,r){t=l(t);var i,a,o,s,c,u,f=0,d=e.length,p=d-1,h=t[0],g=y(h);if(g||d>1&&"string"==typeof h&&!m.checkClone&&ke.test(h))return e.each((function(i){var a=e.eq(i);g&&(t[0]=h.call(this,i,a.html())),ze(a,t,n,r)}));if(d&&(a=(i=we(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=a),a||r)){for(s=(o=T.map(be(i,"script"),Oe)).length;f<d;f++)c=i,f!==p&&(c=T.clone(c,!0,!0),s&&T.merge(o,be(c,"script"))),n.call(e[f],c,f);if(s)for(u=o[o.length-1].ownerDocument,T.map(o,Le),f=0;f<s;f++)c=o[f],ye.test(c.type||"")&&!X.access(c,"globalEval")&&T.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?T._evalUrl&&!c.noModule&&T._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):x(c.textContent.replace(je,""),c,u))}return e}function _e(e,t,n){for(var r,i=t?T.filter(t,e):e,a=0;null!=(r=i[a]);a++)n||1!==r.nodeType||T.cleanData(be(r)),r.parentNode&&(n&&oe(r)&&Ie(be(r,"script")),r.parentNode.removeChild(r));return e}T.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,a,o,s=e.cloneNode(!0),l=oe(e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||T.isXMLDoc(e)))for(o=be(s),r=0,i=(a=be(e)).length;r<i;r++)Re(a[r],o[r]);if(t)if(n)for(a=a||be(e),o=o||be(s),r=0,i=a.length;r<i;r++)Pe(a[r],o[r]);else Pe(e,s);return(o=be(s,"script")).length>0&&Ie(o,!l&&be(e,"script")),s},cleanData:function(e){for(var t,n,r,i=T.event.special,a=0;void 0!==(n=e[a]);a++)if(Q(n)){if(t=n[X.expando]){if(t.events)for(r in t.events)i[r]?T.event.remove(n,r):T.removeEvent(n,r,t.handle);n[X.expando]=void 0}n[K.expando]&&(n[K.expando]=void 0)}}}),T.fn.extend({detach:function(e){return _e(this,e,!0)},remove:function(e){return _e(this,e)},text:function(e){return Y(this,(function(e){return void 0===e?T.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return ze(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||De(this,e).appendChild(e)}))},prepend:function(){return ze(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=De(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return ze(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return ze(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(T.cleanData(be(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return T.clone(this,e,t)}))},html:function(e){return Y(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Se.test(e)&&!ve[(me.exec(e)||["",""])[1].toLowerCase()]){e=T.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(T.cleanData(be(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return ze(this,arguments,(function(t){var n=this.parentNode;T.inArray(this,e)<0&&(T.cleanData(be(this)),n&&n.replaceChild(t,this))}),e)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){T.fn[e]=function(e){for(var n,r=[],i=T(e),a=i.length-1,o=0;o<=a;o++)n=o===a?this:this.clone(!0),T(i[o])[t](n),c.apply(r,n.get());return this.pushStack(r)}}));var Ue=new RegExp("^("+ne+")(?!px)[a-z%]+$","i"),Ze=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Fe=function(e,t,n){var r,i,a={};for(i in t)a[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=a[i];return r},Ge=new RegExp(ie.join("|"),"i");function Be(e,t,n){var r,i,a,o,s=e.style;return(n=n||Ze(e))&&(""!==(o=n.getPropertyValue(t)||n[t])||oe(e)||(o=T.style(e,t)),!m.pixelBoxStyles()&&Ue.test(o)&&Ge.test(t)&&(r=s.width,i=s.minWidth,a=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=n.width,s.width=r,s.minWidth=i,s.maxWidth=a)),void 0!==o?o+"":o}function Ye(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ae.appendChild(c).appendChild(u);var e=n.getComputedStyle(u);r="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",o=36===t(e.right),i=36===t(e.width),u.style.position="absolute",a=12===t(u.offsetWidth/3),ae.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var r,i,a,o,s,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===u.style.backgroundClip,T.extend(m,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),a},reliableTrDimensions:function(){var e,t,r,i;return null==s&&(e=b.createElement("table"),t=b.createElement("tr"),r=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",r.style.height="9px",r.style.display="block",ae.appendChild(e).appendChild(t).appendChild(r),i=n.getComputedStyle(t),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,ae.removeChild(e)),s}}))}();var We=["Webkit","Moz","ms"],He=b.createElement("div").style,Ve={};function qe(e){var t=T.cssProps[e]||Ve[e];return t||(e in He?e:Ve[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=We.length;n--;)if((e=We[n]+t)in He)return e}(e)||e)}var Qe=/^(none|table(?!-c[ea]).+)/,Je=/^--/,Xe={position:"absolute",visibility:"hidden",display:"block"},Ke={letterSpacing:"0",fontWeight:"400"};function $e(e,t,n){var r=re.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function et(e,t,n,r,i,a){var o="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(l+=T.css(e,n+ie[o],!0,i)),r?("content"===n&&(l-=T.css(e,"padding"+ie[o],!0,i)),"margin"!==n&&(l-=T.css(e,"border"+ie[o]+"Width",!0,i))):(l+=T.css(e,"padding"+ie[o],!0,i),"padding"!==n?l+=T.css(e,"border"+ie[o]+"Width",!0,i):s+=T.css(e,"border"+ie[o]+"Width",!0,i));return!r&&a>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-l-s-.5))||0),l}function tt(e,t,n){var r=Ze(e),i=(!m.boxSizingReliable()||n)&&"border-box"===T.css(e,"boxSizing",!1,r),a=i,o=Be(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Ue.test(o)){if(!n)return o;o="auto"}return(!m.boxSizingReliable()&&i||!m.reliableTrDimensions()&&S(e,"tr")||"auto"===o||!parseFloat(o)&&"inline"===T.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===T.css(e,"boxSizing",!1,r),(a=s in e)&&(o=e[s])),(o=parseFloat(o)||0)+et(e,t,n||(i?"border":"content"),a,r,o)+"px"}function nt(e,t,n,r,i){return new nt.prototype.init(e,t,n,r,i)}T.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Be(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,a,o,s=q(t),l=Je.test(t),c=e.style;if(l||(t=qe(s)),o=T.cssHooks[t]||T.cssHooks[s],void 0===n)return o&&"get"in o&&void 0!==(i=o.get(e,!1,r))?i:c[t];"string"===(a=typeof n)&&(i=re.exec(n))&&i[1]&&(n=ce(e,t,i),a="number"),null!=n&&n==n&&("number"!==a||l||(n+=i&&i[3]||(T.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var i,a,o,s=q(t);return Je.test(t)||(t=qe(s)),(o=T.cssHooks[t]||T.cssHooks[s])&&"get"in o&&(i=o.get(e,!0,n)),void 0===i&&(i=Be(e,t,r)),"normal"===i&&t in Ke&&(i=Ke[t]),""===n||n?(a=parseFloat(i),!0===n||isFinite(a)?a||0:i):i}}),T.each(["height","width"],(function(e,t){T.cssHooks[t]={get:function(e,n,r){if(n)return!Qe.test(T.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?tt(e,t,r):Fe(e,Xe,(function(){return tt(e,t,r)}))},set:function(e,n,r){var i,a=Ze(e),o=!m.scrollboxSize()&&"absolute"===a.position,s=(o||r)&&"border-box"===T.css(e,"boxSizing",!1,a),l=r?et(e,t,r,s,a):0;return s&&o&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-et(e,t,"border",!1,a)-.5)),l&&(i=re.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=T.css(e,t)),$e(0,n,l)}}})),T.cssHooks.marginLeft=Ye(m.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Be(e,"marginLeft"))||e.getBoundingClientRect().left-Fe(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),T.each({margin:"",padding:"",border:"Width"},(function(e,t){T.cssHooks[e+t]={expand:function(n){for(var r=0,i={},a="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+ie[r]+t]=a[r]||a[r-2]||a[0];return i}},"margin"!==e&&(T.cssHooks[e+t].set=$e)})),T.fn.extend({css:function(e,t){return Y(this,(function(e,t,n){var r,i,a={},o=0;if(Array.isArray(t)){for(r=Ze(e),i=t.length;o<i;o++)a[t[o]]=T.css(e,t[o],!1,r);return a}return void 0!==n?T.style(e,t,n):T.css(e,t)}),e,t,arguments.length>1)}}),T.Tween=nt,nt.prototype={constructor:nt,init:function(e,t,n,r,i,a){this.elem=e,this.prop=n,this.easing=i||T.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=a||(T.cssNumber[n]?"":"px")},cur:function(){var e=nt.propHooks[this.prop];return e&&e.get?e.get(this):nt.propHooks._default.get(this)},run:function(e){var t,n=nt.propHooks[this.prop];return this.options.duration?this.pos=t=T.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):nt.propHooks._default.set(this),this}},nt.prototype.init.prototype=nt.prototype,nt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=T.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){T.fx.step[e.prop]?T.fx.step[e.prop](e):1!==e.elem.nodeType||!T.cssHooks[e.prop]&&null==e.elem.style[qe(e.prop)]?e.elem[e.prop]=e.now:T.style(e.elem,e.prop,e.now+e.unit)}}},nt.propHooks.scrollTop=nt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},T.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},T.fx=nt.prototype.init,T.fx.step={};var rt,it,at=/^(?:toggle|show|hide)$/,ot=/queueHooks$/;function st(){it&&(!1===b.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(st):n.setTimeout(st,T.fx.interval),T.fx.tick())}function lt(){return n.setTimeout((function(){rt=void 0})),rt=Date.now()}function ct(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ie[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ut(e,t,n){for(var r,i=(ft.tweeners[t]||[]).concat(ft.tweeners["*"]),a=0,o=i.length;a<o;a++)if(r=i[a].call(n,t,e))return r}function ft(e,t,n){var r,i,a=0,o=ft.prefilters.length,s=T.Deferred().always((function(){delete l.elem})),l=function(){if(i)return!1;for(var t=rt||lt(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),a=0,o=c.tweens.length;a<o;a++)c.tweens[a].run(r);return s.notifyWith(e,[c,r,n]),r<1&&o?n:(o||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:T.extend({},t),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},n),originalProperties:t,originalOptions:n,startTime:rt||lt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=T.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,r,i,a,o;for(n in e)if(i=t[r=q(n)],a=e[n],Array.isArray(a)&&(i=a[1],a=e[n]=a[0]),n!==r&&(e[r]=a,delete e[n]),(o=T.cssHooks[r])&&"expand"in o)for(n in a=o.expand(a),delete e[r],a)n in e||(e[n]=a[n],t[n]=i);else t[r]=i}(u,c.opts.specialEasing);a<o;a++)if(r=ft.prefilters[a].call(c,e,u,c.opts))return y(r.stop)&&(T._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return T.map(u,ut,c),y(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),T.fx.timer(T.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}T.Animation=T.extend(ft,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ce(n.elem,e,re.exec(t),n),n}]},tweener:function(e,t){y(e)?(t=e,e=["*"]):e=e.match(z);for(var n,r=0,i=e.length;r<i;r++)n=e[r],ft.tweeners[n]=ft.tweeners[n]||[],ft.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,a,o,s,l,c,u,f="width"in t||"height"in t,d=this,p={},h=e.style,g=e.nodeType&&le(e),m=X.get(e,"fxshow");for(r in n.queue||(null==(o=T._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,d.always((function(){d.always((function(){o.unqueued--,T.queue(e,"fx").length||o.empty.fire()}))}))),t)if(i=t[r],at.test(i)){if(delete t[r],a=a||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;g=!0}p[r]=m&&m[r]||T.style(e,r)}if((l=!T.isEmptyObject(t))||!T.isEmptyObject(p))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(c=m&&m.display)&&(c=X.get(e,"display")),"none"===(u=T.css(e,"display"))&&(c?u=c:(de([e],!0),c=e.style.display||c,u=T.css(e,"display"),de([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===T.css(e,"float")&&(l||(d.done((function(){h.display=c})),null==c&&(u=h.display,c="none"===u?"":u)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",d.always((function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}))),l=!1,p)l||(m?"hidden"in m&&(g=m.hidden):m=X.access(e,"fxshow",{display:c}),a&&(m.hidden=!g),g&&de([e],!0),d.done((function(){for(r in g||de([e]),X.remove(e,"fxshow"),p)T.style(e,r,p[r])}))),l=ut(g?m[r]:0,r,d),r in m||(m[r]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ft.prefilters.unshift(e):ft.prefilters.push(e)}}),T.speed=function(e,t,n){var r=e&&"object"==typeof e?T.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return T.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in T.fx.speeds?r.duration=T.fx.speeds[r.duration]:r.duration=T.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){y(r.old)&&r.old.call(this),r.queue&&T.dequeue(this,r.queue)},r},T.fn.extend({fadeTo:function(e,t,n,r){return this.filter(le).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=T.isEmptyObject(e),a=T.speed(t,n,r),o=function(){var t=ft(this,T.extend({},e),a);(i||X.get(this,"finish"))&&t.stop(!0)};return o.finish=o,i||!1===a.queue?this.each(o):this.queue(a.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",a=T.timers,o=X.get(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&ot.test(i)&&r(o[i]);for(i=a.length;i--;)a[i].elem!==this||null!=e&&a[i].queue!==e||(a[i].anim.stop(n),t=!1,a.splice(i,1));!t&&n||T.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=X.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],a=T.timers,o=r?r.length:0;for(n.finish=!0,T.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),T.each(["toggle","show","hide"],(function(e,t){var n=T.fn[t];T.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ct(t,!0),e,r,i)}})),T.each({slideDown:ct("show"),slideUp:ct("hide"),slideToggle:ct("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){T.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),T.timers=[],T.fx.tick=function(){var e,t=0,n=T.timers;for(rt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||T.fx.stop(),rt=void 0},T.fx.timer=function(e){T.timers.push(e),T.fx.start()},T.fx.interval=13,T.fx.start=function(){it||(it=!0,st())},T.fx.stop=function(){it=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(e,t){return e=T.fx&&T.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,r){var i=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(i)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",m.checkOn=""!==e.value,m.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",m.radioValue="t"===e.value}();var dt,pt=T.expr.attrHandle;T.fn.extend({attr:function(e,t){return Y(this,T.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){T.removeAttr(this,e)}))}}),T.extend({attr:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?T.prop(e,t,n):(1===a&&T.isXMLDoc(e)||(i=T.attrHooks[t.toLowerCase()]||(T.expr.match.bool.test(t)?dt:void 0)),void 0!==n?null===n?void T.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=T.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&S(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(z);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),dt={set:function(e,t,n){return!1===t?T.removeAttr(e,n):e.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=pt[t]||T.find.attr;pt[t]=function(e,t,r){var i,a,o=t.toLowerCase();return r||(a=pt[o],pt[o]=i,i=null!=n(e,t,r)?o:null,pt[o]=a),i}}));var ht=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function mt(e){return(e.match(z)||[]).join(" ")}function yt(e){return e.getAttribute&&e.getAttribute("class")||""}function vt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(z)||[]}T.fn.extend({prop:function(e,t){return Y(this,T.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[T.propFix[e]||e]}))}}),T.extend({prop:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&T.isXMLDoc(e)||(t=T.propFix[t]||t,i=T.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=T.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(T.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){T.propFix[this.toLowerCase()]=this})),T.fn.extend({addClass:function(e){var t,n,r,i,a,o,s,l=0;if(y(e))return this.each((function(t){T(this).addClass(e.call(this,t,yt(this)))}));if((t=vt(e)).length)for(;n=this[l++];)if(i=yt(n),r=1===n.nodeType&&" "+mt(i)+" "){for(o=0;a=t[o++];)r.indexOf(" "+a+" ")<0&&(r+=a+" ");i!==(s=mt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,a,o,s,l=0;if(y(e))return this.each((function(t){T(this).removeClass(e.call(this,t,yt(this)))}));if(!arguments.length)return this.attr("class","");if((t=vt(e)).length)for(;n=this[l++];)if(i=yt(n),r=1===n.nodeType&&" "+mt(i)+" "){for(o=0;a=t[o++];)for(;r.indexOf(" "+a+" ")>-1;)r=r.replace(" "+a+" "," ");i!==(s=mt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):y(e)?this.each((function(n){T(this).toggleClass(e.call(this,n,yt(this),t),t)})):this.each((function(){var t,i,a,o;if(r)for(i=0,a=T(this),o=vt(e);t=o[i++];)a.hasClass(t)?a.removeClass(t):a.addClass(t);else void 0!==e&&"boolean"!==n||((t=yt(this))&&X.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":X.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+mt(yt(n))+" ").indexOf(t)>-1)return!0;return!1}});var bt=/\r/g;T.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=y(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,T(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=T.map(i,(function(e){return null==e?"":e+""}))),(t=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=T.valHooks[i.type]||T.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(bt,""):null==n?"":n:void 0}}),T.extend({valHooks:{option:{get:function(e){var t=T.find.attr(e,"value");return null!=t?t:mt(T.text(e))}},select:{get:function(e){var t,n,r,i=e.options,a=e.selectedIndex,o="select-one"===e.type,s=o?null:[],l=o?a+1:i.length;for(r=a<0?l:o?a:0;r<l;r++)if(((n=i[r]).selected||r===a)&&!n.disabled&&(!n.parentNode.disabled||!S(n.parentNode,"optgroup"))){if(t=T(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,a=T.makeArray(t),o=i.length;o--;)((r=i[o]).selected=T.inArray(T.valHooks.option.get(r),a)>-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),T.each(["radio","checkbox"],(function(){T.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=T.inArray(T(e).val(),t)>-1}},m.checkOn||(T.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),m.focusin="onfocusin"in n;var It=/^(?:focusinfocus|focusoutblur)$/,xt=function(e){e.stopPropagation()};T.extend(T.event,{trigger:function(e,t,r,i){var a,o,s,l,c,u,f,d,h=[r||b],g=p.call(e,"type")?e.type:e,m=p.call(e,"namespace")?e.namespace.split("."):[];if(o=d=s=r=r||b,3!==r.nodeType&&8!==r.nodeType&&!It.test(g+T.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(e=e[T.expando]?e:new T.Event(g,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:T.makeArray(t,[e]),f=T.event.special[g]||{},i||!f.trigger||!1!==f.trigger.apply(r,t))){if(!i&&!f.noBubble&&!v(r)){for(l=f.delegateType||g,It.test(l+g)||(o=o.parentNode);o;o=o.parentNode)h.push(o),s=o;s===(r.ownerDocument||b)&&h.push(s.defaultView||s.parentWindow||n)}for(a=0;(o=h[a++])&&!e.isPropagationStopped();)d=o,e.type=a>1?l:f.bindType||g,(u=(X.get(o,"events")||Object.create(null))[e.type]&&X.get(o,"handle"))&&u.apply(o,t),(u=c&&o[c])&&u.apply&&Q(o)&&(e.result=u.apply(o,t),!1===e.result&&e.preventDefault());return e.type=g,i||e.isDefaultPrevented()||f._default&&!1!==f._default.apply(h.pop(),t)||!Q(r)||c&&y(r[g])&&!v(r)&&((s=r[c])&&(r[c]=null),T.event.triggered=g,e.isPropagationStopped()&&d.addEventListener(g,xt),r[g](),e.isPropagationStopped()&&d.removeEventListener(g,xt),T.event.triggered=void 0,s&&(r[c]=s)),e.result}},simulate:function(e,t,n){var r=T.extend(new T.Event,n,{type:e,isSimulated:!0});T.event.trigger(r,null,t)}}),T.fn.extend({trigger:function(e,t){return this.each((function(){T.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return T.event.trigger(e,t,n,!0)}}),m.focusin||T.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){T.event.simulate(t,e.target,T.event.fix(e))};T.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=X.access(r,t);i||r.addEventListener(e,n,!0),X.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=X.access(r,t)-1;i?X.access(r,t,i):(r.removeEventListener(e,n,!0),X.remove(r,t))}}}));var wt=n.location,Tt={guid:Date.now()},Mt=/\?/;T.parseXML=function(e){var t,r;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){}return r=t&&t.getElementsByTagName("parsererror")[0],t&&!r||T.error("Invalid XML: "+(r?T.map(r.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var At=/\[\]$/,Ct=/\r?\n/g,Et=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;function St(e,t,n,r){var i;if(Array.isArray(t))T.each(t,(function(t,i){n||At.test(e)?r(e,i):St(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==w(t))r(e,t);else for(i in t)St(e+"["+i+"]",t[i],n,r)}T.param=function(e,t){var n,r=[],i=function(e,t){var n=y(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!T.isPlainObject(e))T.each(e,(function(){i(this.name,this.value)}));else for(n in e)St(n,e[n],t,i);return r.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=T.prop(this,"elements");return e?T.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!T(this).is(":disabled")&&Nt.test(this.nodeName)&&!Et.test(e)&&(this.checked||!ge.test(e))})).map((function(e,t){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,(function(e){return{name:t.name,value:e.replace(Ct,"\r\n")}})):{name:t.name,value:n.replace(Ct,"\r\n")}})).get()}});var kt=/%20/g,jt=/#.*$/,Dt=/([?&])_=[^&]*/,Ot=/^(.*?):[ \t]*([^\r\n]*)$/gm,Lt=/^(?:GET|HEAD)$/,Pt=/^\/\//,Rt={},zt={},_t="*/".concat("*"),Ut=b.createElement("a");function Zt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,a=t.toLowerCase().match(z)||[];if(y(n))for(;r=a[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Ft(e,t,n,r){var i={},a=e===zt;function o(s){var l;return i[s]=!0,T.each(e[s]||[],(function(e,s){var c=s(t,n,r);return"string"!=typeof c||a||i[c]?a?!(l=c):void 0:(t.dataTypes.unshift(c),o(c),!1)})),l}return o(t.dataTypes[0])||!i["*"]&&o("*")}function Gt(e,t){var n,r,i=T.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&T.extend(!0,e,r),e}Ut.href=wt.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:wt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(wt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":_t,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,T.ajaxSettings),t):Gt(T.ajaxSettings,e)},ajaxPrefilter:Zt(Rt),ajaxTransport:Zt(zt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,a,o,s,l,c,u,f,d,p=T.ajaxSetup({},t),h=p.context||p,g=p.context&&(h.nodeType||h.jquery)?T(h):T.event,m=T.Deferred(),y=T.Callbacks("once memory"),v=p.statusCode||{},I={},x={},w="canceled",M={readyState:0,getResponseHeader:function(e){var t;if(c){if(!o)for(o={};t=Ot.exec(a);)o[t[1].toLowerCase()+" "]=(o[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=o[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,I[e]=t),this},overrideMimeType:function(e){return null==c&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)M.always(e[M.status]);else for(t in e)v[t]=[v[t],e[t]];return this},abort:function(e){var t=e||w;return r&&r.abort(t),A(0,t),this}};if(m.promise(M),p.url=((e||p.url||wt.href)+"").replace(Pt,wt.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(z)||[""],null==p.crossDomain){l=b.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Ut.protocol+"//"+Ut.host!=l.protocol+"//"+l.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=T.param(p.data,p.traditional)),Ft(Rt,p,t,M),c)return M;for(f in(u=T.event&&p.global)&&0==T.active++&&T.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Lt.test(p.type),i=p.url.replace(jt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(kt,"+")):(d=p.url.slice(i.length),p.data&&(p.processData||"string"==typeof p.data)&&(i+=(Mt.test(i)?"&":"?")+p.data,delete p.data),!1===p.cache&&(i=i.replace(Dt,"$1"),d=(Mt.test(i)?"&":"?")+"_="+Tt.guid+++d),p.url=i+d),p.ifModified&&(T.lastModified[i]&&M.setRequestHeader("If-Modified-Since",T.lastModified[i]),T.etag[i]&&M.setRequestHeader("If-None-Match",T.etag[i])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&M.setRequestHeader("Content-Type",p.contentType),M.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+_t+"; q=0.01":""):p.accepts["*"]),p.headers)M.setRequestHeader(f,p.headers[f]);if(p.beforeSend&&(!1===p.beforeSend.call(h,M,p)||c))return M.abort();if(w="abort",y.add(p.complete),M.done(p.success),M.fail(p.error),r=Ft(zt,p,t,M)){if(M.readyState=1,u&&g.trigger("ajaxSend",[M,p]),c)return M;p.async&&p.timeout>0&&(s=n.setTimeout((function(){M.abort("timeout")}),p.timeout));try{c=!1,r.send(I,A)}catch(e){if(c)throw e;A(-1,e)}}else A(-1,"No Transport");function A(e,t,o,l){var f,d,b,I,x,w=t;c||(c=!0,s&&n.clearTimeout(s),r=void 0,a=l||"",M.readyState=e>0?4:0,f=e>=200&&e<300||304===e,o&&(I=function(e,t,n){for(var r,i,a,o,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)a=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){a=i;break}o||(o=i)}a=a||o}if(a)return a!==l[0]&&l.unshift(a),n[a]}(p,M,o)),!f&&T.inArray("script",p.dataTypes)>-1&&T.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),I=function(e,t,n,r){var i,a,o,s,l,c={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)c[o.toLowerCase()]=e.converters[o];for(a=u.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=a,a=u.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(!(o=c[l+" "+a]||c["* "+a]))for(i in c)if((s=i.split(" "))[1]===a&&(o=c[l+" "+s[0]]||c["* "+s[0]])){!0===o?o=c[i]:!0!==c[i]&&(a=s[0],u.unshift(s[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+a}}}return{state:"success",data:t}}(p,I,M,f),f?(p.ifModified&&((x=M.getResponseHeader("Last-Modified"))&&(T.lastModified[i]=x),(x=M.getResponseHeader("etag"))&&(T.etag[i]=x)),204===e||"HEAD"===p.type?w="nocontent":304===e?w="notmodified":(w=I.state,d=I.data,f=!(b=I.error))):(b=w,!e&&w||(w="error",e<0&&(e=0))),M.status=e,M.statusText=(t||w)+"",f?m.resolveWith(h,[d,w,M]):m.rejectWith(h,[M,w,b]),M.statusCode(v),v=void 0,u&&g.trigger(f?"ajaxSuccess":"ajaxError",[M,p,f?d:b]),y.fireWith(h,[M,w]),u&&(g.trigger("ajaxComplete",[M,p]),--T.active||T.event.trigger("ajaxStop")))}return M},getJSON:function(e,t,n){return T.get(e,t,n,"json")},getScript:function(e,t){return T.get(e,void 0,t,"script")}}),T.each(["get","post"],(function(e,t){T[t]=function(e,n,r,i){return y(n)&&(i=i||r,r=n,n=void 0),T.ajax(T.extend({url:e,type:t,dataType:i,data:n,success:r},T.isPlainObject(e)&&e))}})),T.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),T._evalUrl=function(e,t,n){return T.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){T.globalEval(e,t,n)}})},T.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=T(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return y(e)?this.each((function(t){T(this).wrapInner(e.call(this,t))})):this.each((function(){var t=T(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=y(e);return this.each((function(n){T(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){T(this).replaceWith(this.childNodes)})),this}}),T.expr.pseudos.hidden=function(e){return!T.expr.pseudos.visible(e)},T.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Bt={0:200,1223:204},Yt=T.ajaxSettings.xhr();m.cors=!!Yt&&"withCredentials"in Yt,m.ajax=Yt=!!Yt,T.ajaxTransport((function(e){var t,r;if(m.cors||Yt&&!e.crossDomain)return{send:function(i,a){var o,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];for(o in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(o,i[o]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?a(0,"error"):a(s.status,s.statusText):a(Bt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){t&&r()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),T.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return T.globalEval(e),e}}}),T.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),T.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=T("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Wt,Ht=[],Vt=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ht.pop()||T.expando+"_"+Tt.guid++;return this[e]=!0,e}}),T.ajaxPrefilter("json jsonp",(function(e,t,r){var i,a,o,s=!1!==e.jsonp&&(Vt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Vt,"$1"+i):!1!==e.jsonp&&(e.url+=(Mt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||T.error(i+" was not called"),o[0]},e.dataTypes[0]="json",a=n[i],n[i]=function(){o=arguments},r.always((function(){void 0===a?T(n).removeProp(i):n[i]=a,e[i]&&(e.jsonpCallback=t.jsonpCallback,Ht.push(i)),o&&y(a)&&a(o[0]),o=a=void 0})),"script"})),m.createHTMLDocument=((Wt=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Wt.childNodes.length),T.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((r=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(r)):t=b),a=!n&&[],(i=k.exec(e))?[t.createElement(i[1])]:(i=we([e],t,a),a&&a.length&&T(a).remove(),T.merge([],i.childNodes)));var r,i,a},T.fn.load=function(e,t,n){var r,i,a,o=this,s=e.indexOf(" ");return s>-1&&(r=mt(e.slice(s)),e=e.slice(0,s)),y(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),o.length>0&&T.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){a=arguments,o.html(r?T("<div>").append(T.parseHTML(e)).find(r):e)})).always(n&&function(e,t){o.each((function(){n.apply(this,a||[e.responseText,t,e])}))}),this},T.expr.pseudos.animated=function(e){return T.grep(T.timers,(function(t){return e===t.elem})).length},T.offset={setOffset:function(e,t,n){var r,i,a,o,s,l,c=T.css(e,"position"),u=T(e),f={};"static"===c&&(e.style.position="relative"),s=u.offset(),a=T.css(e,"top"),l=T.css(e,"left"),("absolute"===c||"fixed"===c)&&(a+l).indexOf("auto")>-1?(o=(r=u.position()).top,i=r.left):(o=parseFloat(a)||0,i=parseFloat(l)||0),y(t)&&(t=t.call(e,n,T.extend({},s))),null!=t.top&&(f.top=t.top-s.top+o),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):u.css(f)}},T.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){T.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===T.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===T.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=T(e).offset()).top+=T.css(e,"borderTopWidth",!0),i.left+=T.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-T.css(r,"marginTop",!0),left:t.left-i.left-T.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===T.css(e,"position");)e=e.offsetParent;return e||ae}))}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;T.fn[e]=function(r){return Y(this,(function(e,r,i){var a;if(v(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===i)return a?a[t]:e[r];a?a.scrollTo(n?a.pageXOffset:i,n?i:a.pageYOffset):e[r]=i}),e,r,arguments.length)}})),T.each(["top","left"],(function(e,t){T.cssHooks[t]=Ye(m.pixelPosition,(function(e,n){if(n)return n=Be(e,t),Ue.test(n)?T(e).position()[t]+"px":n}))})),T.each({Height:"height",Width:"width"},(function(e,t){T.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){T.fn[r]=function(i,a){var o=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===a?"margin":"border");return Y(this,(function(t,n,i){var a;return v(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===i?T.css(t,n,s):T.style(t,n,i,s)}),t,o?i:void 0,o)}}))})),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){T.fn[t]=function(e){return this.on(t,e)}})),T.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){T.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var qt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;T.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),y(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||T.guid++,i},T.holdReady=function(e){e?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=S,T.isFunction=y,T.isWindow=v,T.camelCase=q,T.type=w,T.now=Date.now,T.isNumeric=function(e){var t=T.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},T.trim=function(e){return null==e?"":(e+"").replace(qt,"")},void 0===(r=function(){return T}.apply(t,[]))||(e.exports=r);var Qt=n.jQuery,Jt=n.$;return T.noConflict=function(e){return n.$===T&&(n.$=Jt),e&&n.jQuery===T&&(n.jQuery=Qt),T},void 0===i&&(n.jQuery=n.$=T),T}))},function(e,t,n){"use strict";var r=n(21),i="object"==typeof self&&self&&self.Object===Object&&self,a=r.a||i||Function("return this")();t.a=a},function(e,t,n){!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 a(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 o(e){return"string"==typeof e||"symbol"==typeof e}function s(e){return!o(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,a,o){return t(e)&&n(1),s(e)&&i(1),{type:e,payload:r,meta:a,error:o}}function f(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 d(e,r,i){return t(e)&&n(1),s(e)&&l(1),function(){return f(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=d,e.createAsyncAction=function(e,t,n,r){return function(){var i=[e,t,n,r].map((function(e,t){return Array.isArray(e)?d(e[0],e[1],e[2])():"string"==typeof e||"symbol"==typeof e?d(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=f,e.createReducer=function e(t,n){void 0===n&&(n={});var i=Object.assign({},n),a=function(n,a){var s=Array.isArray(n)?n:[n],l={};return s.map((function(e,t){return r(e)?p(e):o(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]=a})),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:a,handleType:a})},e.deprecated=g,e.getType=p,e.isActionOf=function(e,r){t(e)&&n(1);var i=Array.isArray(e)?e:[e];i.forEach(a);var o=function(e){return i.some((function(t){return e.type===t.getType()}))};return void 0===r?o:o(r)},e.isOfType=function(e,r){t(e)&&n(1);var i=Array.isArray(e)?e:[e];i.forEach(c);var a=function(e){return i.includes(e.type)};return void 0===r?a:a(r)}}(t)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return h})),n.d(t,"f",(function(){return m})),n.d(t,"b",(function(){return y})),n.d(t,"e",(function(){return v})),n.d(t,"d",(function(){return b})),n.d(t,"g",(function(){return w})),n.d(t,"i",(function(){return M})),n.d(t,"h",(function(){return A}));var r={};n.r(r),n.d(r,"allowedTags",(function(){return l})),n.d(r,"allowedAttributes",(function(){return c})),n.d(r,"allowedSchemes",(function(){return u})),n.d(r,"exclusiveFilter",(function(){return f}));var i=n(3),a=n.n(i),o=n(39),s=n.n(o);const l=["img","br"],c={img:["src","alt"]},u=["data"],f=e=>"mathEditor"===e.attribs["data-js"],d='img[src^="/math.svg?latex="]:not(img[src="/math.svg?latex="]), img[src^="data:image/svg+xml"]',p='img[src^="/screenshot/"], img[src^="data:image/png"], img[src^="data:image/gif"], img[src^="data:image/jpeg"]',h='img:not(img[src^="data"], img[src^="/math.svg?latex="], img[src^="/screenshot/"])';function g(e){return"DIV"===e.nodeName||"P"===e.nodeName}function m(e){return s()(function(e){const t=document.createElement("div");t.innerHTML=e;do{let e;for(let n=0;n<t.childNodes.length;n++){const r=t.childNodes[n];if(g(r)){for(e&&e.nodeType===Node.TEXT_NODE&&/\S/.test(e.textContent)&&t.insertBefore(document.createElement("br"),r),r.lastChild&&"BR"!==r.lastChild.nodeName&&r.insertBefore(document.createElement("br"),null);r.childNodes.length;)t.insertBefore(r.firstChild,r);t.removeChild(r)}e=r}}while(Array.prototype.some.call(t.childNodes,e=>g(e)));return t.innerHTML}(s()(function(e){return e.replace(new RegExp(document.location.origin,"g"),"")}(e),Object.assign(Object.assign({},r),{allowedTags:["div","p","img","br"]}))),r)}function y(e,t){const n=e.selectionStart,r=e.selectionEnd;let i=e.value;e.value=i.substring(0,n)+t+i.substring(r,i.length),e.selectionStart=e.selectionEnd=n+t.length}function v(e,t){return x(e,!e.altKey&&!e.shiftKey&&!e.ctrlKey&&I(e,t))}function b(e,t){return x(e,!e.altKey&&!e.shiftKey&&e.ctrlKey&&I(e,t))}function I(e,t){return"string"==typeof t?e.key===t:e.keyCode===t}function x(e,t){return t&&e.preventDefault(),t}function w(e){const t=a()(e),n=t.find('[data-js="mathEditor"]'),r=a()(window).scrollTop();n.hide();const i=t.get(0).innerText;n.show(),a()(window).scrollTop(r);const o=m(t.html());return{answerHTML:i.trim().length+t.find(d).length+t.find(p).length===0?"":(l=o,l.replace(/^(\n|<br ?\/?>)*/g,"").replace(/(\s|<br ?\/?>)*$/g,"")),answerText:T(i),imageCount:(s=a()(`<div>${o}</div>`),s.find(p).length)};var s,l}function T(e){return e.replace(/^(\n)*/g,"").replace(/(\s)*$/g,"")}function M(e){const t=document.createRange(),n=e.get(0);t.setStartAfter(n);const r=window.getSelection();r.removeAllRanges(),r.addRange(t)}function A(e){const t=a()(window),n=t.height()-40,r=n+t.scrollTop(),i=e.offset().top+e.height();r<i&&t.scrollTop(i-n)}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(85)},function(e,t,n){"use strict";(function(e){var r=n(21),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,o=a&&a.exports===i&&r.a.process,s=function(){try{var e=a&&a.require&&a.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();t.a=s}).call(this,n(17)(e))},function(e,t,n){"use strict";let r,i,a,{isClean:o,my:s}=n(27),l=n(18),c=n(20),u=n(19);class f extends u{push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}each(e){if(!this.proxyOf.nodes)return;let t,n,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],n=e(this.proxyOf.nodes[t],t),!1!==n);)this.indexes[r]+=1;return delete this.indexes[r],n}walk(e){return this.each((t,n)=>{let r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if("decl"===n.type&&e.test(n.prop))return t(n,r)}):this.walk((n,r)=>{if("decl"===n.type&&n.prop===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if("decl"===e.type)return t(e,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if("rule"===n.type&&e.test(n.selector))return t(n,r)}):this.walk((n,r)=>{if("rule"===n.type&&n.selector===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if("rule"===e.type)return t(e,n)}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if("atrule"===n.type&&e.test(n.name))return t(n,r)}):this.walk((n,r)=>{if("atrule"===n.type&&n.name===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if("atrule"===e.type)return t(e,n)}))}walkComments(e){return this.walk((t,n)=>{if("comment"===t.type)return e(t,n)})}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}insertBefore(e,t){let n,r=0===(e=this.index(e))&&"prepend",i=this.normalize(t,this.proxyOf.nodes[e],r).reverse();for(let t of i)this.proxyOf.nodes.splice(e,0,t);for(let t in this.indexes)n=this.indexes[t],e<=n&&(this.indexes[t]=n+i.length);return this.markDirty(),this}insertAfter(e,t){e=this.index(e);let n,r=this.normalize(t,this.proxyOf.nodes[e]).reverse();for(let t of r)this.proxyOf.nodes.splice(e+1,0,t);for(let t in this.indexes)n=this.indexes[t],e<n&&(this.indexes[t]=n+r.length);return this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))}),this.markDirty(),this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(e,t){if("string"==typeof e)e=function e(t){return t.map(t=>(t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t))}(r(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new l(e)]}else if(e.selector)e=[new i(e)];else if(e.name)e=[new a(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new c(e)]}return e.map(e=>(e[s]||f.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[o]&&function e(t){if(t[o]=!1,t.proxyOf.nodes)for(let n of t.proxyOf.nodes)e(n)}(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this,e))}getProxyProcessor(){return{set:(e,t,n)=>(e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0),get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...n)=>e[t](...n.map(e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e)):"every"===t||"some"===t?n=>e[t]((e,...t)=>n(e.toProxy(),...t)):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map(e=>e.toProxy()):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}}f.registerParse=e=>{r=e},f.registerRule=e=>{i=e},f.registerAtRule=e=>{a=e},e.exports=f,f.default=f,f.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,a.prototype):"rule"===e.type?Object.setPrototypeOf(e,i.prototype):"decl"===e.type?Object.setPrototypeOf(e,l.prototype):"comment"===e.type&&Object.setPrototypeOf(e,c.prototype),e[s]=!0,e.nodes&&e.nodes.forEach(e=>{f.rebuild(e)})}},function(e,t,n){"use strict";(function(e){var r=n(4),i=n(65),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=a&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===a?r.a.Buffer:void 0,l=(s?s.isBuffer:void 0)||i.a;t.a=l}).call(this,n(17)(e))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isComment=t.isText=t.isCDATA=t.isTag=void 0;var r=n(52);t.isTag=function(e){return r.isTag(e)},t.isCDATA=function(e){return"cdata"===e.type},t.isText=function(e){return"text"===e.type},t.isComment=function(e){return"comment"===e.type},t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")}},function(e,t,n){"use strict";let r,i,a=n(10);class o extends a{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}normalize(e,t,n){let r=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before;return r}toResult(e={}){return new r(new i,this,e).stringify()}}o.registerLazyResult=e=>{r=e},o.registerProcessor=e=>{i=e},e.exports=o,o.default=o},function(e,t,n){"use strict";(function(e,r){
30
+ function(e){var t,n,r,i,a,o,s,l,c,u,f,d,p,h,g,m,y,v,b,I="sizzle"+1*new Date,x=e.document,w=0,T=0,M=le(),A=le(),C=le(),E=le(),N=function(e,t){return e===t&&(f=!0),0},S={}.hasOwnProperty,k=[],j=k.pop,D=k.push,O=k.push,L=k.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",z="[\\x20\\t\\r\\n\\f]",_="(?:\\\\[\\da-fA-F]{1,6}"+z+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",U="\\["+z+"*("+_+")(?:"+z+"*([*^$|!~]?=)"+z+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+_+"))|)"+z+"*\\]",Z=":("+_+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+U+")*)|.*)\\)|)",F=new RegExp(z+"+","g"),G=new RegExp("^"+z+"+|((?:^|[^\\\\])(?:\\\\.)*)"+z+"+$","g"),B=new RegExp("^"+z+"*,"+z+"*"),Y=new RegExp("^"+z+"*([>+~]|"+z+")"+z+"*"),W=new RegExp(z+"|>"),H=new RegExp(Z),V=new RegExp("^"+_+"$"),q={ID:new RegExp("^#("+_+")"),CLASS:new RegExp("^\\.("+_+")"),TAG:new RegExp("^("+_+"|[*])"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+Z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+z+"*(even|odd|(([+-]|)(\\d*)n|)"+z+"*(?:([+-]|)"+z+"*(\\d+)|))"+z+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+z+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+z+"*((?:-\\d)?\\d*)"+z+"*\\)|)(?=[^-]|$)","i")},Q=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+z+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=function(){d()},oe=Ie((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{O.apply(k=L.call(x.childNodes),x.childNodes),k[x.childNodes.length].nodeType}catch(e){O={apply:k.length?function(e,t){D.apply(e,L.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var a,s,c,u,f,h,y,v=t&&t.ownerDocument,x=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==x&&9!==x&&11!==x)return r;if(!i&&(d(t),t=t||p,g)){if(11!==x&&(f=$.exec(e)))if(a=f[1]){if(9===x){if(!(c=t.getElementById(a)))return r;if(c.id===a)return r.push(c),r}else if(v&&(c=v.getElementById(a))&&b(t,c)&&c.id===a)return r.push(c),r}else{if(f[2])return O.apply(r,t.getElementsByTagName(e)),r;if((a=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return O.apply(r,t.getElementsByClassName(a)),r}if(n.qsa&&!E[e+" "]&&(!m||!m.test(e))&&(1!==x||"object"!==t.nodeName.toLowerCase())){if(y=e,v=t,1===x&&(W.test(e)||Y.test(e))){for((v=ee.test(e)&&ye(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(re,ie):t.setAttribute("id",u=I)),s=(h=o(e)).length;s--;)h[s]=(u?"#"+u:":scope")+" "+be(h[s]);y=h.join(",")}try{return O.apply(r,v.querySelectorAll(y)),r}catch(t){E(e,!0)}finally{u===I&&t.removeAttribute("id")}}}return l(e.replace(G,"$1"),t,r,i)}function le(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function ce(e){return e[I]=!0,e}function ue(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function de(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&oe(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return ce((function(t){return t=+t,ce((function(n,r){for(var i,a=e([],n.length,t),o=a.length;o--;)n[i=a[o]]&&(n[i]=!(r[i]=n[i]))}))}))}function ye(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},a=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Q.test(t||n&&n.nodeName||"HTML")},d=se.setDocument=function(e){var t,i,o=e?e.ownerDocument||e:x;return o!=p&&9===o.nodeType&&o.documentElement?(h=(p=o).documentElement,g=!a(p),x!=p&&(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ae,!1):i.attachEvent&&i.attachEvent("onunload",ae)),n.scope=ue((function(e){return h.appendChild(e).appendChild(p.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=K.test(p.getElementsByClassName),n.getById=ue((function(e){return h.appendChild(e).id=I,!p.getElementsByName||!p.getElementsByName(I).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,i,a=t.getElementById(e);if(a){if((n=a.getAttributeNode("id"))&&n.value===e)return[a];for(i=t.getElementsByName(e),r=0;a=i[r++];)if((n=a.getAttributeNode("id"))&&n.value===e)return[a]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,a=t.getElementsByTagName(e);if("*"===e){for(;n=a[i++];)1===n.nodeType&&r.push(n);return r}return a},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},y=[],m=[],(n.qsa=K.test(p.querySelectorAll))&&(ue((function(e){var t;h.appendChild(e).innerHTML="<a id='"+I+"'></a><select id='"+I+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+z+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+z+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+I+"-]").length||m.push("~="),(t=p.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||m.push("\\["+z+"*name"+z+"*="+z+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+I+"+*").length||m.push(".#.+[+~]"),e.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+z+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=K.test(v=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),y.push("!=",Z)})),m=m.length&&new RegExp(m.join("|")),y=y.length&&new RegExp(y.join("|")),t=K.test(h.compareDocumentPosition),b=t||K.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},N=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==p||e.ownerDocument==x&&b(x,e)?-1:t==p||t.ownerDocument==x&&b(x,t)?1:u?P(u,e)-P(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,i=e.parentNode,a=t.parentNode,o=[e],s=[t];if(!i||!a)return e==p?-1:t==p?1:i?-1:a?1:u?P(u,e)-P(u,t):0;if(i===a)return de(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;o[r]===s[r];)r++;return r?de(o[r],s[r]):o[r]==x?-1:s[r]==x?1:0},p):p},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(d(e),n.matchesSelector&&g&&!E[t+" "]&&(!y||!y.test(t))&&(!m||!m.test(t)))try{var r=v.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){E(t,!0)}return se(t,p,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=p&&d(e),b(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=p&&d(e);var i=r.attrHandle[t.toLowerCase()],a=i&&S.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==a?a:n.attributes||!g?e.getAttribute(t):(a=e.getAttributeNode(t))&&a.specified?a.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],i=0,a=0;if(f=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(N),f){for(;t=e[a++];)t===e[a]&&(i=r.push(a));for(;i--;)e.splice(r[i],1)}return u=null,e},i=se.getText=function(e){var t,n="",r=0,a=e.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===a||4===a)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=se.selectors={cacheLength:50,createPseudo:ce,match:q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&H.test(n)&&(t=o(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=M[e+" "];return t||(t=new RegExp("(^|"+z+")"+e+"("+z+"|$)"))&&M(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(F," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var a="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var c,u,f,d,p,h,g=a!==o?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!l&&!s,b=!1;if(m){if(a){for(;g;){for(d=t;d=d[g];)if(s?d.nodeName.toLowerCase()===y:1===d.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[o?m.firstChild:m.lastChild],o&&v){for(b=(p=(c=(u=(f=(d=m)[I]||(d[I]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===w&&c[1])&&c[2],d=p&&m.childNodes[p];d=++p&&d&&d[g]||(b=p=0)||h.pop();)if(1===d.nodeType&&++b&&d===t){u[e]=[w,p,b];break}}else if(v&&(b=p=(c=(u=(f=(d=t)[I]||(d[I]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===w&&c[1]),!1===b)for(;(d=++p&&d&&d[g]||(b=p=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==y:1!==d.nodeType)||!++b||(v&&((u=(f=d[I]||(d[I]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]=[w,b]),d!==t)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return i[I]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,n){for(var r,a=i(e,t),o=a.length;o--;)e[r=P(e,a[o])]=!(n[r]=a[o])})):function(e){return i(e,0,n)}):i}},pseudos:{not:ce((function(e){var t=[],n=[],r=s(e.replace(G,"$1"));return r[I]?ce((function(e,t,n,i){for(var a,o=r(e,null,i,[]),s=e.length;s--;)(a=o[s])&&(e[s]=!(t[s]=a))})):function(e,i,a){return t[0]=e,r(t,null,a,n),t[0]=null,!n.pop()}})),has:ce((function(e){return function(t){return se(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}})),lang:ce((function(e){return V.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return J.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:me((function(){return[0]})),last:me((function(e,t){return[t-1]})),eq:me((function(e,t,n){return[n<0?n+t:n]})),even:me((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:me((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:me((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:me((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=pe(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=he(t);function ve(){}function be(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function Ie(e,t,n){var r=t.dir,i=t.next,a=i||r,o=n&&"parentNode"===a,s=T++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,i);return!1}:function(t,n,l){var c,u,f,d=[w,s];if(l){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||o)if(u=(f=t[I]||(t[I]={}))[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=u[a])&&c[0]===w&&c[1]===s)return d[2]=c[2];if(u[a]=d,d[2]=e(t,n,l))return!0}return!1}}function xe(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function we(e,t,n,r,i){for(var a,o=[],s=0,l=e.length,c=null!=t;s<l;s++)(a=e[s])&&(n&&!n(a,r,i)||(o.push(a),c&&t.push(s)));return o}function Te(e,t,n,r,i,a){return r&&!r[I]&&(r=Te(r)),i&&!i[I]&&(i=Te(i,a)),ce((function(a,o,s,l){var c,u,f,d=[],p=[],h=o.length,g=a||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),m=!e||!a&&t?g:we(g,d,e,s,l),y=n?i||(a?e:h||r)?[]:o:m;if(n&&n(m,y,s,l),r)for(c=we(y,p),r(c,[],s,l),u=c.length;u--;)(f=c[u])&&(y[p[u]]=!(m[p[u]]=f));if(a){if(i||e){if(i){for(c=[],u=y.length;u--;)(f=y[u])&&c.push(m[u]=f);i(null,y=[],c,l)}for(u=y.length;u--;)(f=y[u])&&(c=i?P(a,f):d[u])>-1&&(a[c]=!(o[c]=f))}}else y=we(y===o?y.splice(h,y.length):y),i?i(null,o,y,l):O.apply(o,y)}))}function Me(e){for(var t,n,i,a=e.length,o=r.relative[e[0].type],s=o||r.relative[" "],l=o?1:0,u=Ie((function(e){return e===t}),s,!0),f=Ie((function(e){return P(t,e)>-1}),s,!0),d=[function(e,n,r){var i=!o&&(r||n!==c)||((t=n).nodeType?u(e,n,r):f(e,n,r));return t=null,i}];l<a;l++)if(n=r.relative[e[l].type])d=[Ie(xe(d),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[I]){for(i=++l;i<a&&!r.relative[e[i].type];i++);return Te(l>1&&xe(d),l>1&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(G,"$1"),n,l<i&&Me(e.slice(l,i)),i<a&&Me(e=e.slice(i)),i<a&&be(e))}d.push(n)}return xe(d)}return ve.prototype=r.filters=r.pseudos,r.setFilters=new ve,o=se.tokenize=function(e,t){var n,i,a,o,s,l,c,u=A[e+" "];if(u)return t?0:u.slice(0);for(s=e,l=[],c=r.preFilter;s;){for(o in n&&!(i=B.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(a=[])),n=!1,(i=Y.exec(s))&&(n=i.shift(),a.push({value:n,type:i[0].replace(G," ")}),s=s.slice(n.length)),r.filter)!(i=q[o].exec(s))||c[o]&&!(i=c[o](i))||(n=i.shift(),a.push({value:n,type:o,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):A(e,l).slice(0)},s=se.compile=function(e,t){var n,i=[],a=[],s=C[e+" "];if(!s){for(t||(t=o(e)),n=t.length;n--;)(s=Me(t[n]))[I]?i.push(s):a.push(s);(s=C(e,function(e,t){var n=t.length>0,i=e.length>0,a=function(a,o,s,l,u){var f,h,m,y=0,v="0",b=a&&[],I=[],x=c,T=a||i&&r.find.TAG("*",u),M=w+=null==x?1:Math.random()||.1,A=T.length;for(u&&(c=o==p||o||u);v!==A&&null!=(f=T[v]);v++){if(i&&f){for(h=0,o||f.ownerDocument==p||(d(f),s=!g);m=e[h++];)if(m(f,o||p,s)){l.push(f);break}u&&(w=M)}n&&((f=!m&&f)&&y--,a&&b.push(f))}if(y+=v,n&&v!==y){for(h=0;m=t[h++];)m(b,I,o,s);if(a){if(y>0)for(;v--;)b[v]||I[v]||(I[v]=j.call(l));I=we(I)}O.apply(l,I),u&&!a&&I.length>0&&y+t.length>1&&se.uniqueSort(l)}return u&&(w=M,c=x),b};return n?ce(a):a}(a,i))).selector=e}return s},l=se.select=function(e,t,n,i){var a,l,c,u,f,d="function"==typeof e&&e,p=!i&&o(e=d.selector||e);if(n=n||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&g&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(a=q.needsContext.test(e)?0:l.length;a--&&(c=l[a],!r.relative[u=c.type]);)if((f=r.find[u])&&(i=f(c.matches[0].replace(te,ne),ee.test(l[0].type)&&ye(t.parentNode)||t))){if(l.splice(a,1),!(e=i.length&&be(l)))return O.apply(n,i),n;break}}return(d||s(e,p))(i,t,!g,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},n.sortStable=I.split("").sort(N).join("")===I,n.detectDuplicates=!!f,d(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||fe("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||fe("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||fe(R,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(n);T.find=A,T.expr=A.selectors,T.expr[":"]=T.expr.pseudos,T.uniqueSort=T.unique=A.uniqueSort,T.text=A.getText,T.isXMLDoc=A.isXML,T.contains=A.contains,T.escapeSelector=A.escape;var C=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&T(e).is(n))break;r.push(e)}return r},E=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},N=T.expr.match.needsContext;function S(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var k=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,t,n){return y(t)?T.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?T.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?T.grep(e,(function(e){return u.call(t,e)>-1!==n})):T.filter(t,e,n)}T.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?T.find.matchesSelector(r,e)?[r]:[]:T.find.matches(e,T.grep(t,(function(e){return 1===e.nodeType})))},T.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(T(e).filter((function(){for(t=0;t<r;t++)if(T.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)T.find(e,i[t],n);return r>1?T.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&N.test(e)?T(e):e||[],!1).length}});var D,O=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:O.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof T?t[0]:t,T.merge(this,T.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),k.test(r[1])&&T.isPlainObject(t))for(r in t)y(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=b.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(T):T.makeArray(e,this)}).prototype=T.fn,D=T(b);var L=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function R(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var t=T(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(T.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,a=[],o="string"!=typeof e&&T(e);if(!N.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&T.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?T.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?u.call(T(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),T.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return C(e,"parentNode")},parentsUntil:function(e,t,n){return C(e,"parentNode",n)},next:function(e){return R(e,"nextSibling")},prev:function(e){return R(e,"previousSibling")},nextAll:function(e){return C(e,"nextSibling")},prevAll:function(e){return C(e,"previousSibling")},nextUntil:function(e,t,n){return C(e,"nextSibling",n)},prevUntil:function(e,t,n){return C(e,"previousSibling",n)},siblings:function(e){return E((e.parentNode||{}).firstChild,e)},children:function(e){return E(e.firstChild)},contents:function(e){return null!=e.contentDocument&&o(e.contentDocument)?e.contentDocument:(S(e,"template")&&(e=e.content||e),T.merge([],e.childNodes))}},(function(e,t){T.fn[e]=function(n,r){var i=T.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=T.filter(r,i)),this.length>1&&(P[e]||T.uniqueSort(i),L.test(e)&&i.reverse()),this.pushStack(i)}}));var z=/[^\x20\t\r\n\f]+/g;function _(e){return e}function U(e){throw e}function Z(e,t,n,r){var i;try{e&&y(i=e.promise)?i.call(e).done(t).fail(n):e&&y(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}T.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return T.each(e.match(z)||[],(function(e,n){t[n]=!0})),t}(e):T.extend({},e);var t,n,r,i,a=[],o=[],s=-1,l=function(){for(i=i||e.once,r=t=!0;o.length;s=-1)for(n=o.shift();++s<a.length;)!1===a[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=a.length,n=!1);e.memory||(n=!1),t=!1,i&&(a=n?[]:"")},c={add:function(){return a&&(n&&!t&&(s=a.length-1,o.push(n)),function t(n){T.each(n,(function(n,r){y(r)?e.unique&&c.has(r)||a.push(r):r&&r.length&&"string"!==w(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return T.each(arguments,(function(e,t){for(var n;(n=T.inArray(t,a,n))>-1;)a.splice(n,1),n<=s&&s--})),this},has:function(e){return e?T.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return i=o=[],a=n="",this},disabled:function(){return!a},lock:function(){return i=o=[],n||t||(a=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],o.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},T.extend({Deferred:function(e){var t=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return T.Deferred((function(n){T.each(t,(function(t,r){var i=y(e[r[4]])&&e[r[4]];a[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,r,i){var a=0;function o(e,t,r,i){return function(){var s=this,l=arguments,c=function(){var n,c;if(!(e<a)){if((n=r.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"==typeof n||"function"==typeof n)&&n.then,y(c)?i?c.call(n,o(a,t,_,i),o(a,t,U,i)):(a++,c.call(n,o(a,t,_,i),o(a,t,U,i),o(a,t,_,t.notifyWith))):(r!==_&&(s=void 0,l=[n]),(i||t.resolveWith)(s,l))}},u=i?c:function(){try{c()}catch(n){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(n,u.stackTrace),e+1>=a&&(r!==U&&(s=void 0,l=[n]),t.rejectWith(s,l))}};e?u():(T.Deferred.getStackHook&&(u.stackTrace=T.Deferred.getStackHook()),n.setTimeout(u))}}return T.Deferred((function(n){t[0][3].add(o(0,n,y(i)?i:_,n.notifyWith)),t[1][3].add(o(0,n,y(e)?e:_)),t[2][3].add(o(0,n,y(r)?r:U))})).promise()},promise:function(e){return null!=e?T.extend(e,i):i}},a={};return T.each(t,(function(e,n){var o=n[2],s=n[5];i[n[1]]=o.add,s&&o.add((function(){r=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),o.add(n[3].fire),a[n[0]]=function(){return a[n[0]+"With"](this===a?void 0:this,arguments),this},a[n[0]+"With"]=o.fireWith})),i.promise(a),e&&e.call(a,a),a},when:function(e){var t=arguments.length,n=t,r=Array(n),i=s.call(arguments),a=T.Deferred(),o=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?s.call(arguments):n,--t||a.resolveWith(r,i)}};if(t<=1&&(Z(e,a.done(o(n)).resolve,a.reject,!t),"pending"===a.state()||y(i[n]&&i[n].then)))return a.then();for(;n--;)Z(i[n],o(n),a.reject);return a.promise()}});var F=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&F.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},T.readyException=function(e){n.setTimeout((function(){throw e}))};var G=T.Deferred();function B(){b.removeEventListener("DOMContentLoaded",B),n.removeEventListener("load",B),T.ready()}T.fn.ready=function(e){return G.then(e).catch((function(e){T.readyException(e)})),this},T.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==e&&--T.readyWait>0||G.resolveWith(b,[T]))}}),T.ready.then=G.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?n.setTimeout(T.ready):(b.addEventListener("DOMContentLoaded",B),n.addEventListener("load",B));var Y=function(e,t,n,r,i,a,o){var s=0,l=e.length,c=null==n;if("object"===w(n))for(s in i=!0,n)Y(e,t,s,n[s],!0,a,o);else if(void 0!==r&&(i=!0,y(r)||(o=!0),c&&(o?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(T(e),n)})),t))for(;s<l;s++)t(e[s],n,o?r:r.call(e[s],s,t(e[s],n)));return i?e:c?t.call(e):l?t(e[0],n):a},W=/^-ms-/,H=/-([a-z])/g;function V(e,t){return t.toUpperCase()}function q(e){return e.replace(W,"ms-").replace(H,V)}var Q=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function J(){this.expando=T.expando+J.uid++}J.uid=1,J.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Q(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[q(t)]=n;else for(r in t)i[q(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][q(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(q):(t=q(t))in r?[t]:t.match(z)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||T.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!T.isEmptyObject(t)}};var X=new J,K=new J,$=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ee=/[A-Z]/g;function te(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ee,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:$.test(e)?JSON.parse(e):e)}(n)}catch(e){}K.set(e,t,n)}else n=void 0;return n}T.extend({hasData:function(e){return K.hasData(e)||X.hasData(e)},data:function(e,t,n){return K.access(e,t,n)},removeData:function(e,t){K.remove(e,t)},_data:function(e,t,n){return X.access(e,t,n)},_removeData:function(e,t){X.remove(e,t)}}),T.fn.extend({data:function(e,t){var n,r,i,a=this[0],o=a&&a.attributes;if(void 0===e){if(this.length&&(i=K.get(a),1===a.nodeType&&!X.get(a,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(r=o[n].name).indexOf("data-")&&(r=q(r.slice(5)),te(a,r,i[r]));X.set(a,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){K.set(this,e)})):Y(this,(function(t){var n;if(a&&void 0===t)return void 0!==(n=K.get(a,e))||void 0!==(n=te(a,e))?n:void 0;this.each((function(){K.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){K.remove(this,e)}))}}),T.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=X.get(e,t),n&&(!r||Array.isArray(n)?r=X.access(e,t,T.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=T.queue(e,t),r=n.length,i=n.shift(),a=T._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete a.stop,i.call(e,(function(){T.dequeue(e,t)}),a)),!r&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return X.get(e,n)||X.access(e,n,{empty:T.Callbacks("once memory").add((function(){X.remove(e,[t+"queue",n])}))})}}),T.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?T.queue(this[0],e):void 0===t?this:this.each((function(){var n=T.queue(this,e,t);T._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&T.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){T.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=T.Deferred(),a=this,o=this.length,s=function(){--r||i.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(n=X.get(a[o],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ne=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,re=new RegExp("^(?:([+-])=|)("+ne+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"],ae=b.documentElement,oe=function(e){return T.contains(e.ownerDocument,e)},se={composed:!0};ae.getRootNode&&(oe=function(e){return T.contains(e.ownerDocument,e)||e.getRootNode(se)===e.ownerDocument});var le=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&oe(e)&&"none"===T.css(e,"display")};function ce(e,t,n,r){var i,a,o=20,s=r?function(){return r.cur()}:function(){return T.css(e,t,"")},l=s(),c=n&&n[3]||(T.cssNumber[t]?"":"px"),u=e.nodeType&&(T.cssNumber[t]||"px"!==c&&+l)&&re.exec(T.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;o--;)T.style(e,t,u+c),(1-a)*(1-(a=s()/l||.5))<=0&&(o=0),u/=a;u*=2,T.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=i)),i}var ue={};function fe(e){var t,n=e.ownerDocument,r=e.nodeName,i=ue[r];return i||(t=n.body.appendChild(n.createElement(r)),i=T.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),ue[r]=i,i)}function de(e,t){for(var n,r,i=[],a=0,o=e.length;a<o;a++)(r=e[a]).style&&(n=r.style.display,t?("none"===n&&(i[a]=X.get(r,"display")||null,i[a]||(r.style.display="")),""===r.style.display&&le(r)&&(i[a]=fe(r))):"none"!==n&&(i[a]="none",X.set(r,"display",n)));for(a=0;a<o;a++)null!=i[a]&&(e[a].style.display=i[a]);return e}T.fn.extend({show:function(){return de(this,!0)},hide:function(){return de(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){le(this)?T(this).show():T(this).hide()}))}});var pe,he,ge=/^(?:checkbox|radio)$/i,me=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ye=/^$|^module$|\/(?:java|ecma)script/i;pe=b.createDocumentFragment().appendChild(b.createElement("div")),(he=b.createElement("input")).setAttribute("type","radio"),he.setAttribute("checked","checked"),he.setAttribute("name","t"),pe.appendChild(he),m.checkClone=pe.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue,pe.innerHTML="<option></option>",m.option=!!pe.lastChild;var ve={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function be(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&S(e,t)?T.merge([e],n):n}function Ie(e,t){for(var n=0,r=e.length;n<r;n++)X.set(e[n],"globalEval",!t||X.get(t[n],"globalEval"))}ve.tbody=ve.tfoot=ve.colgroup=ve.caption=ve.thead,ve.th=ve.td,m.option||(ve.optgroup=ve.option=[1,"<select multiple='multiple'>","</select>"]);var xe=/<|&#?\w+;/;function we(e,t,n,r,i){for(var a,o,s,l,c,u,f=t.createDocumentFragment(),d=[],p=0,h=e.length;p<h;p++)if((a=e[p])||0===a)if("object"===w(a))T.merge(d,a.nodeType?[a]:a);else if(xe.test(a)){for(o=o||f.appendChild(t.createElement("div")),s=(me.exec(a)||["",""])[1].toLowerCase(),l=ve[s]||ve._default,o.innerHTML=l[1]+T.htmlPrefilter(a)+l[2],u=l[0];u--;)o=o.lastChild;T.merge(d,o.childNodes),(o=f.firstChild).textContent=""}else d.push(t.createTextNode(a));for(f.textContent="",p=0;a=d[p++];)if(r&&T.inArray(a,r)>-1)i&&i.push(a);else if(c=oe(a),o=be(f.appendChild(a),"script"),c&&Ie(o),n)for(u=0;a=o[u++];)ye.test(a.type||"")&&n.push(a);return f}var Te=/^([^.]*)(?:\.(.+)|)/;function Me(){return!0}function Ae(){return!1}function Ce(e,t){return e===function(){try{return b.activeElement}catch(e){}}()==("focus"===t)}function Ee(e,t,n,r,i,a){var o,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ee(e,s,n,r,t[s],a);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Ae;else if(!i)return e;return 1===a&&(o=i,(i=function(e){return T().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=T.guid++)),e.each((function(){T.event.add(this,t,i,r,n)}))}function Ne(e,t,n){n?(X.set(e,t,!1),T.event.add(e,t,{namespace:!1,handler:function(e){var r,i,a=X.get(this,t);if(1&e.isTrigger&&this[t]){if(a.length)(T.event.special[t]||{}).delegateType&&e.stopPropagation();else if(a=s.call(arguments),X.set(this,t,a),r=n(this,t),this[t](),a!==(i=X.get(this,t))||r?X.set(this,t,!1):i={},a!==i)return e.stopImmediatePropagation(),e.preventDefault(),i&&i.value}else a.length&&(X.set(this,t,{value:T.event.trigger(T.extend(a[0],T.Event.prototype),a.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===X.get(e,t)&&T.event.add(e,t,Me)}T.event={global:{},add:function(e,t,n,r,i){var a,o,s,l,c,u,f,d,p,h,g,m=X.get(e);if(Q(e))for(n.handler&&(n=(a=n).handler,i=a.selector),i&&T.find.matchesSelector(ae,i),n.guid||(n.guid=T.guid++),(l=m.events)||(l=m.events=Object.create(null)),(o=m.handle)||(o=m.handle=function(t){return void 0!==T&&T.event.triggered!==t.type?T.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(z)||[""]).length;c--;)p=g=(s=Te.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p&&(f=T.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=T.event.special[p]||{},u=T.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&T.expr.match.needsContext.test(i),namespace:h.join(".")},a),(d=l[p])||((d=l[p]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,o)||e.addEventListener&&e.addEventListener(p,o)),f.add&&(f.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,u):d.push(u),T.event.global[p]=!0)},remove:function(e,t,n,r,i){var a,o,s,l,c,u,f,d,p,h,g,m=X.hasData(e)&&X.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(z)||[""]).length;c--;)if(p=g=(s=Te.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p){for(f=T.event.special[p]||{},d=l[p=(r?f.delegateType:f.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=a=d.length;a--;)u=d[a],!i&&g!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(d.splice(a,1),u.selector&&d.delegateCount--,f.remove&&f.remove.call(e,u));o&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,h,m.handle)||T.removeEvent(e,p,m.handle),delete l[p])}else for(p in l)T.event.remove(e,p+t[c],n,r,!0);T.isEmptyObject(l)&&X.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,a,o,s=new Array(arguments.length),l=T.event.fix(e),c=(X.get(this,"events")||Object.create(null))[l.type]||[],u=T.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(o=T.event.handlers.call(this,l,c),t=0;(i=o[t++])&&!l.isPropagationStopped();)for(l.currentTarget=i.elem,n=0;(a=i.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==a.namespace&&!l.rnamespace.test(a.namespace)||(l.handleObj=a,l.data=a.data,void 0!==(r=((T.event.special[a.origType]||{}).handle||a.handler).apply(i.elem,s))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,i,a,o,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(a=[],o={},n=0;n<l;n++)void 0===o[i=(r=t[n]).selector+" "]&&(o[i]=r.needsContext?T(i,this).index(c)>-1:T.find(i,this,null,[c]).length),o[i]&&a.push(r);a.length&&s.push({elem:c,handlers:a})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(T.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[T.expando]?e:new T.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ge.test(t.type)&&t.click&&S(t,"input")&&Ne(t,"click",Me),!1},trigger:function(e){var t=this||e;return ge.test(t.type)&&t.click&&S(t,"input")&&Ne(t,"click"),!0},_default:function(e){var t=e.target;return ge.test(t.type)&&t.click&&S(t,"input")&&X.get(t,"click")||S(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},T.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},T.Event=function(e,t){if(!(this instanceof T.Event))return new T.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Me:Ae,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&T.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:Ae,isPropagationStopped:Ae,isImmediatePropagationStopped:Ae,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Me,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Me,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Me,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},(function(e,t){T.event.special[e]={setup:function(){return Ne(this,e,Ce),!1},trigger:function(){return Ne(this,e),!0},_default:function(){return!0},delegateType:t}})),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){T.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,a=e.handleObj;return i&&(i===r||T.contains(r,i))||(e.type=a.origType,n=a.handler.apply(this,arguments),e.type=t),n}}})),T.fn.extend({on:function(e,t,n,r){return Ee(this,e,t,n,r)},one:function(e,t,n,r){return Ee(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,T(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ae),this.each((function(){T.event.remove(this,e,n,t)}))}});var Se=/<script|<style|<link/i,ke=/checked\s*(?:[^=]|=\s*.checked.)/i,je=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function De(e,t){return S(e,"table")&&S(11!==t.nodeType?t:t.firstChild,"tr")&&T(e).children("tbody")[0]||e}function Oe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Le(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Pe(e,t){var n,r,i,a,o,s;if(1===t.nodeType){if(X.hasData(e)&&(s=X.get(e).events))for(i in X.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)T.event.add(t,i,s[i][n]);K.hasData(e)&&(a=K.access(e),o=T.extend({},a),K.set(t,o))}}function Re(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ge.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function ze(e,t,n,r){t=l(t);var i,a,o,s,c,u,f=0,d=e.length,p=d-1,h=t[0],g=y(h);if(g||d>1&&"string"==typeof h&&!m.checkClone&&ke.test(h))return e.each((function(i){var a=e.eq(i);g&&(t[0]=h.call(this,i,a.html())),ze(a,t,n,r)}));if(d&&(a=(i=we(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=a),a||r)){for(s=(o=T.map(be(i,"script"),Oe)).length;f<d;f++)c=i,f!==p&&(c=T.clone(c,!0,!0),s&&T.merge(o,be(c,"script"))),n.call(e[f],c,f);if(s)for(u=o[o.length-1].ownerDocument,T.map(o,Le),f=0;f<s;f++)c=o[f],ye.test(c.type||"")&&!X.access(c,"globalEval")&&T.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?T._evalUrl&&!c.noModule&&T._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):x(c.textContent.replace(je,""),c,u))}return e}function _e(e,t,n){for(var r,i=t?T.filter(t,e):e,a=0;null!=(r=i[a]);a++)n||1!==r.nodeType||T.cleanData(be(r)),r.parentNode&&(n&&oe(r)&&Ie(be(r,"script")),r.parentNode.removeChild(r));return e}T.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,a,o,s=e.cloneNode(!0),l=oe(e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||T.isXMLDoc(e)))for(o=be(s),r=0,i=(a=be(e)).length;r<i;r++)Re(a[r],o[r]);if(t)if(n)for(a=a||be(e),o=o||be(s),r=0,i=a.length;r<i;r++)Pe(a[r],o[r]);else Pe(e,s);return(o=be(s,"script")).length>0&&Ie(o,!l&&be(e,"script")),s},cleanData:function(e){for(var t,n,r,i=T.event.special,a=0;void 0!==(n=e[a]);a++)if(Q(n)){if(t=n[X.expando]){if(t.events)for(r in t.events)i[r]?T.event.remove(n,r):T.removeEvent(n,r,t.handle);n[X.expando]=void 0}n[K.expando]&&(n[K.expando]=void 0)}}}),T.fn.extend({detach:function(e){return _e(this,e,!0)},remove:function(e){return _e(this,e)},text:function(e){return Y(this,(function(e){return void 0===e?T.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return ze(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||De(this,e).appendChild(e)}))},prepend:function(){return ze(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=De(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return ze(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return ze(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(T.cleanData(be(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return T.clone(this,e,t)}))},html:function(e){return Y(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Se.test(e)&&!ve[(me.exec(e)||["",""])[1].toLowerCase()]){e=T.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(T.cleanData(be(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return ze(this,arguments,(function(t){var n=this.parentNode;T.inArray(this,e)<0&&(T.cleanData(be(this)),n&&n.replaceChild(t,this))}),e)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){T.fn[e]=function(e){for(var n,r=[],i=T(e),a=i.length-1,o=0;o<=a;o++)n=o===a?this:this.clone(!0),T(i[o])[t](n),c.apply(r,n.get());return this.pushStack(r)}}));var Ue=new RegExp("^("+ne+")(?!px)[a-z%]+$","i"),Ze=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Fe=function(e,t,n){var r,i,a={};for(i in t)a[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=a[i];return r},Ge=new RegExp(ie.join("|"),"i");function Be(e,t,n){var r,i,a,o,s=e.style;return(n=n||Ze(e))&&(""!==(o=n.getPropertyValue(t)||n[t])||oe(e)||(o=T.style(e,t)),!m.pixelBoxStyles()&&Ue.test(o)&&Ge.test(t)&&(r=s.width,i=s.minWidth,a=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=n.width,s.width=r,s.minWidth=i,s.maxWidth=a)),void 0!==o?o+"":o}function Ye(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ae.appendChild(c).appendChild(u);var e=n.getComputedStyle(u);r="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",o=36===t(e.right),i=36===t(e.width),u.style.position="absolute",a=12===t(u.offsetWidth/3),ae.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var r,i,a,o,s,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===u.style.backgroundClip,T.extend(m,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),a},reliableTrDimensions:function(){var e,t,r,i;return null==s&&(e=b.createElement("table"),t=b.createElement("tr"),r=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",r.style.height="9px",r.style.display="block",ae.appendChild(e).appendChild(t).appendChild(r),i=n.getComputedStyle(t),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,ae.removeChild(e)),s}}))}();var We=["Webkit","Moz","ms"],He=b.createElement("div").style,Ve={};function qe(e){var t=T.cssProps[e]||Ve[e];return t||(e in He?e:Ve[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=We.length;n--;)if((e=We[n]+t)in He)return e}(e)||e)}var Qe=/^(none|table(?!-c[ea]).+)/,Je=/^--/,Xe={position:"absolute",visibility:"hidden",display:"block"},Ke={letterSpacing:"0",fontWeight:"400"};function $e(e,t,n){var r=re.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function et(e,t,n,r,i,a){var o="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(l+=T.css(e,n+ie[o],!0,i)),r?("content"===n&&(l-=T.css(e,"padding"+ie[o],!0,i)),"margin"!==n&&(l-=T.css(e,"border"+ie[o]+"Width",!0,i))):(l+=T.css(e,"padding"+ie[o],!0,i),"padding"!==n?l+=T.css(e,"border"+ie[o]+"Width",!0,i):s+=T.css(e,"border"+ie[o]+"Width",!0,i));return!r&&a>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-l-s-.5))||0),l}function tt(e,t,n){var r=Ze(e),i=(!m.boxSizingReliable()||n)&&"border-box"===T.css(e,"boxSizing",!1,r),a=i,o=Be(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Ue.test(o)){if(!n)return o;o="auto"}return(!m.boxSizingReliable()&&i||!m.reliableTrDimensions()&&S(e,"tr")||"auto"===o||!parseFloat(o)&&"inline"===T.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===T.css(e,"boxSizing",!1,r),(a=s in e)&&(o=e[s])),(o=parseFloat(o)||0)+et(e,t,n||(i?"border":"content"),a,r,o)+"px"}function nt(e,t,n,r,i){return new nt.prototype.init(e,t,n,r,i)}T.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Be(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,a,o,s=q(t),l=Je.test(t),c=e.style;if(l||(t=qe(s)),o=T.cssHooks[t]||T.cssHooks[s],void 0===n)return o&&"get"in o&&void 0!==(i=o.get(e,!1,r))?i:c[t];"string"===(a=typeof n)&&(i=re.exec(n))&&i[1]&&(n=ce(e,t,i),a="number"),null!=n&&n==n&&("number"!==a||l||(n+=i&&i[3]||(T.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var i,a,o,s=q(t);return Je.test(t)||(t=qe(s)),(o=T.cssHooks[t]||T.cssHooks[s])&&"get"in o&&(i=o.get(e,!0,n)),void 0===i&&(i=Be(e,t,r)),"normal"===i&&t in Ke&&(i=Ke[t]),""===n||n?(a=parseFloat(i),!0===n||isFinite(a)?a||0:i):i}}),T.each(["height","width"],(function(e,t){T.cssHooks[t]={get:function(e,n,r){if(n)return!Qe.test(T.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?tt(e,t,r):Fe(e,Xe,(function(){return tt(e,t,r)}))},set:function(e,n,r){var i,a=Ze(e),o=!m.scrollboxSize()&&"absolute"===a.position,s=(o||r)&&"border-box"===T.css(e,"boxSizing",!1,a),l=r?et(e,t,r,s,a):0;return s&&o&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-et(e,t,"border",!1,a)-.5)),l&&(i=re.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=T.css(e,t)),$e(0,n,l)}}})),T.cssHooks.marginLeft=Ye(m.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Be(e,"marginLeft"))||e.getBoundingClientRect().left-Fe(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),T.each({margin:"",padding:"",border:"Width"},(function(e,t){T.cssHooks[e+t]={expand:function(n){for(var r=0,i={},a="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+ie[r]+t]=a[r]||a[r-2]||a[0];return i}},"margin"!==e&&(T.cssHooks[e+t].set=$e)})),T.fn.extend({css:function(e,t){return Y(this,(function(e,t,n){var r,i,a={},o=0;if(Array.isArray(t)){for(r=Ze(e),i=t.length;o<i;o++)a[t[o]]=T.css(e,t[o],!1,r);return a}return void 0!==n?T.style(e,t,n):T.css(e,t)}),e,t,arguments.length>1)}}),T.Tween=nt,nt.prototype={constructor:nt,init:function(e,t,n,r,i,a){this.elem=e,this.prop=n,this.easing=i||T.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=a||(T.cssNumber[n]?"":"px")},cur:function(){var e=nt.propHooks[this.prop];return e&&e.get?e.get(this):nt.propHooks._default.get(this)},run:function(e){var t,n=nt.propHooks[this.prop];return this.options.duration?this.pos=t=T.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):nt.propHooks._default.set(this),this}},nt.prototype.init.prototype=nt.prototype,nt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=T.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){T.fx.step[e.prop]?T.fx.step[e.prop](e):1!==e.elem.nodeType||!T.cssHooks[e.prop]&&null==e.elem.style[qe(e.prop)]?e.elem[e.prop]=e.now:T.style(e.elem,e.prop,e.now+e.unit)}}},nt.propHooks.scrollTop=nt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},T.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},T.fx=nt.prototype.init,T.fx.step={};var rt,it,at=/^(?:toggle|show|hide)$/,ot=/queueHooks$/;function st(){it&&(!1===b.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(st):n.setTimeout(st,T.fx.interval),T.fx.tick())}function lt(){return n.setTimeout((function(){rt=void 0})),rt=Date.now()}function ct(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ie[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ut(e,t,n){for(var r,i=(ft.tweeners[t]||[]).concat(ft.tweeners["*"]),a=0,o=i.length;a<o;a++)if(r=i[a].call(n,t,e))return r}function ft(e,t,n){var r,i,a=0,o=ft.prefilters.length,s=T.Deferred().always((function(){delete l.elem})),l=function(){if(i)return!1;for(var t=rt||lt(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),a=0,o=c.tweens.length;a<o;a++)c.tweens[a].run(r);return s.notifyWith(e,[c,r,n]),r<1&&o?n:(o||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:T.extend({},t),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},n),originalProperties:t,originalOptions:n,startTime:rt||lt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=T.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,r,i,a,o;for(n in e)if(i=t[r=q(n)],a=e[n],Array.isArray(a)&&(i=a[1],a=e[n]=a[0]),n!==r&&(e[r]=a,delete e[n]),(o=T.cssHooks[r])&&"expand"in o)for(n in a=o.expand(a),delete e[r],a)n in e||(e[n]=a[n],t[n]=i);else t[r]=i}(u,c.opts.specialEasing);a<o;a++)if(r=ft.prefilters[a].call(c,e,u,c.opts))return y(r.stop)&&(T._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return T.map(u,ut,c),y(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),T.fx.timer(T.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}T.Animation=T.extend(ft,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ce(n.elem,e,re.exec(t),n),n}]},tweener:function(e,t){y(e)?(t=e,e=["*"]):e=e.match(z);for(var n,r=0,i=e.length;r<i;r++)n=e[r],ft.tweeners[n]=ft.tweeners[n]||[],ft.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,a,o,s,l,c,u,f="width"in t||"height"in t,d=this,p={},h=e.style,g=e.nodeType&&le(e),m=X.get(e,"fxshow");for(r in n.queue||(null==(o=T._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,d.always((function(){d.always((function(){o.unqueued--,T.queue(e,"fx").length||o.empty.fire()}))}))),t)if(i=t[r],at.test(i)){if(delete t[r],a=a||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;g=!0}p[r]=m&&m[r]||T.style(e,r)}if((l=!T.isEmptyObject(t))||!T.isEmptyObject(p))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(c=m&&m.display)&&(c=X.get(e,"display")),"none"===(u=T.css(e,"display"))&&(c?u=c:(de([e],!0),c=e.style.display||c,u=T.css(e,"display"),de([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===T.css(e,"float")&&(l||(d.done((function(){h.display=c})),null==c&&(u=h.display,c="none"===u?"":u)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",d.always((function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}))),l=!1,p)l||(m?"hidden"in m&&(g=m.hidden):m=X.access(e,"fxshow",{display:c}),a&&(m.hidden=!g),g&&de([e],!0),d.done((function(){for(r in g||de([e]),X.remove(e,"fxshow"),p)T.style(e,r,p[r])}))),l=ut(g?m[r]:0,r,d),r in m||(m[r]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ft.prefilters.unshift(e):ft.prefilters.push(e)}}),T.speed=function(e,t,n){var r=e&&"object"==typeof e?T.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return T.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in T.fx.speeds?r.duration=T.fx.speeds[r.duration]:r.duration=T.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){y(r.old)&&r.old.call(this),r.queue&&T.dequeue(this,r.queue)},r},T.fn.extend({fadeTo:function(e,t,n,r){return this.filter(le).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=T.isEmptyObject(e),a=T.speed(t,n,r),o=function(){var t=ft(this,T.extend({},e),a);(i||X.get(this,"finish"))&&t.stop(!0)};return o.finish=o,i||!1===a.queue?this.each(o):this.queue(a.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",a=T.timers,o=X.get(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&ot.test(i)&&r(o[i]);for(i=a.length;i--;)a[i].elem!==this||null!=e&&a[i].queue!==e||(a[i].anim.stop(n),t=!1,a.splice(i,1));!t&&n||T.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=X.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],a=T.timers,o=r?r.length:0;for(n.finish=!0,T.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),T.each(["toggle","show","hide"],(function(e,t){var n=T.fn[t];T.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ct(t,!0),e,r,i)}})),T.each({slideDown:ct("show"),slideUp:ct("hide"),slideToggle:ct("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){T.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),T.timers=[],T.fx.tick=function(){var e,t=0,n=T.timers;for(rt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||T.fx.stop(),rt=void 0},T.fx.timer=function(e){T.timers.push(e),T.fx.start()},T.fx.interval=13,T.fx.start=function(){it||(it=!0,st())},T.fx.stop=function(){it=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(e,t){return e=T.fx&&T.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,r){var i=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(i)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",m.checkOn=""!==e.value,m.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",m.radioValue="t"===e.value}();var dt,pt=T.expr.attrHandle;T.fn.extend({attr:function(e,t){return Y(this,T.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){T.removeAttr(this,e)}))}}),T.extend({attr:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?T.prop(e,t,n):(1===a&&T.isXMLDoc(e)||(i=T.attrHooks[t.toLowerCase()]||(T.expr.match.bool.test(t)?dt:void 0)),void 0!==n?null===n?void T.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=T.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&S(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(z);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),dt={set:function(e,t,n){return!1===t?T.removeAttr(e,n):e.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=pt[t]||T.find.attr;pt[t]=function(e,t,r){var i,a,o=t.toLowerCase();return r||(a=pt[o],pt[o]=i,i=null!=n(e,t,r)?o:null,pt[o]=a),i}}));var ht=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function mt(e){return(e.match(z)||[]).join(" ")}function yt(e){return e.getAttribute&&e.getAttribute("class")||""}function vt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(z)||[]}T.fn.extend({prop:function(e,t){return Y(this,T.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[T.propFix[e]||e]}))}}),T.extend({prop:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&T.isXMLDoc(e)||(t=T.propFix[t]||t,i=T.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=T.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(T.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){T.propFix[this.toLowerCase()]=this})),T.fn.extend({addClass:function(e){var t,n,r,i,a,o,s,l=0;if(y(e))return this.each((function(t){T(this).addClass(e.call(this,t,yt(this)))}));if((t=vt(e)).length)for(;n=this[l++];)if(i=yt(n),r=1===n.nodeType&&" "+mt(i)+" "){for(o=0;a=t[o++];)r.indexOf(" "+a+" ")<0&&(r+=a+" ");i!==(s=mt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,a,o,s,l=0;if(y(e))return this.each((function(t){T(this).removeClass(e.call(this,t,yt(this)))}));if(!arguments.length)return this.attr("class","");if((t=vt(e)).length)for(;n=this[l++];)if(i=yt(n),r=1===n.nodeType&&" "+mt(i)+" "){for(o=0;a=t[o++];)for(;r.indexOf(" "+a+" ")>-1;)r=r.replace(" "+a+" "," ");i!==(s=mt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):y(e)?this.each((function(n){T(this).toggleClass(e.call(this,n,yt(this),t),t)})):this.each((function(){var t,i,a,o;if(r)for(i=0,a=T(this),o=vt(e);t=o[i++];)a.hasClass(t)?a.removeClass(t):a.addClass(t);else void 0!==e&&"boolean"!==n||((t=yt(this))&&X.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":X.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+mt(yt(n))+" ").indexOf(t)>-1)return!0;return!1}});var bt=/\r/g;T.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=y(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,T(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=T.map(i,(function(e){return null==e?"":e+""}))),(t=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=T.valHooks[i.type]||T.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(bt,""):null==n?"":n:void 0}}),T.extend({valHooks:{option:{get:function(e){var t=T.find.attr(e,"value");return null!=t?t:mt(T.text(e))}},select:{get:function(e){var t,n,r,i=e.options,a=e.selectedIndex,o="select-one"===e.type,s=o?null:[],l=o?a+1:i.length;for(r=a<0?l:o?a:0;r<l;r++)if(((n=i[r]).selected||r===a)&&!n.disabled&&(!n.parentNode.disabled||!S(n.parentNode,"optgroup"))){if(t=T(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,a=T.makeArray(t),o=i.length;o--;)((r=i[o]).selected=T.inArray(T.valHooks.option.get(r),a)>-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),T.each(["radio","checkbox"],(function(){T.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=T.inArray(T(e).val(),t)>-1}},m.checkOn||(T.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),m.focusin="onfocusin"in n;var It=/^(?:focusinfocus|focusoutblur)$/,xt=function(e){e.stopPropagation()};T.extend(T.event,{trigger:function(e,t,r,i){var a,o,s,l,c,u,f,d,h=[r||b],g=p.call(e,"type")?e.type:e,m=p.call(e,"namespace")?e.namespace.split("."):[];if(o=d=s=r=r||b,3!==r.nodeType&&8!==r.nodeType&&!It.test(g+T.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(e=e[T.expando]?e:new T.Event(g,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:T.makeArray(t,[e]),f=T.event.special[g]||{},i||!f.trigger||!1!==f.trigger.apply(r,t))){if(!i&&!f.noBubble&&!v(r)){for(l=f.delegateType||g,It.test(l+g)||(o=o.parentNode);o;o=o.parentNode)h.push(o),s=o;s===(r.ownerDocument||b)&&h.push(s.defaultView||s.parentWindow||n)}for(a=0;(o=h[a++])&&!e.isPropagationStopped();)d=o,e.type=a>1?l:f.bindType||g,(u=(X.get(o,"events")||Object.create(null))[e.type]&&X.get(o,"handle"))&&u.apply(o,t),(u=c&&o[c])&&u.apply&&Q(o)&&(e.result=u.apply(o,t),!1===e.result&&e.preventDefault());return e.type=g,i||e.isDefaultPrevented()||f._default&&!1!==f._default.apply(h.pop(),t)||!Q(r)||c&&y(r[g])&&!v(r)&&((s=r[c])&&(r[c]=null),T.event.triggered=g,e.isPropagationStopped()&&d.addEventListener(g,xt),r[g](),e.isPropagationStopped()&&d.removeEventListener(g,xt),T.event.triggered=void 0,s&&(r[c]=s)),e.result}},simulate:function(e,t,n){var r=T.extend(new T.Event,n,{type:e,isSimulated:!0});T.event.trigger(r,null,t)}}),T.fn.extend({trigger:function(e,t){return this.each((function(){T.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return T.event.trigger(e,t,n,!0)}}),m.focusin||T.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){T.event.simulate(t,e.target,T.event.fix(e))};T.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=X.access(r,t);i||r.addEventListener(e,n,!0),X.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=X.access(r,t)-1;i?X.access(r,t,i):(r.removeEventListener(e,n,!0),X.remove(r,t))}}}));var wt=n.location,Tt={guid:Date.now()},Mt=/\?/;T.parseXML=function(e){var t,r;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){}return r=t&&t.getElementsByTagName("parsererror")[0],t&&!r||T.error("Invalid XML: "+(r?T.map(r.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var At=/\[\]$/,Ct=/\r?\n/g,Et=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;function St(e,t,n,r){var i;if(Array.isArray(t))T.each(t,(function(t,i){n||At.test(e)?r(e,i):St(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==w(t))r(e,t);else for(i in t)St(e+"["+i+"]",t[i],n,r)}T.param=function(e,t){var n,r=[],i=function(e,t){var n=y(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!T.isPlainObject(e))T.each(e,(function(){i(this.name,this.value)}));else for(n in e)St(n,e[n],t,i);return r.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=T.prop(this,"elements");return e?T.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!T(this).is(":disabled")&&Nt.test(this.nodeName)&&!Et.test(e)&&(this.checked||!ge.test(e))})).map((function(e,t){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,(function(e){return{name:t.name,value:e.replace(Ct,"\r\n")}})):{name:t.name,value:n.replace(Ct,"\r\n")}})).get()}});var kt=/%20/g,jt=/#.*$/,Dt=/([?&])_=[^&]*/,Ot=/^(.*?):[ \t]*([^\r\n]*)$/gm,Lt=/^(?:GET|HEAD)$/,Pt=/^\/\//,Rt={},zt={},_t="*/".concat("*"),Ut=b.createElement("a");function Zt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,a=t.toLowerCase().match(z)||[];if(y(n))for(;r=a[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Ft(e,t,n,r){var i={},a=e===zt;function o(s){var l;return i[s]=!0,T.each(e[s]||[],(function(e,s){var c=s(t,n,r);return"string"!=typeof c||a||i[c]?a?!(l=c):void 0:(t.dataTypes.unshift(c),o(c),!1)})),l}return o(t.dataTypes[0])||!i["*"]&&o("*")}function Gt(e,t){var n,r,i=T.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&T.extend(!0,e,r),e}Ut.href=wt.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:wt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(wt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":_t,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,T.ajaxSettings),t):Gt(T.ajaxSettings,e)},ajaxPrefilter:Zt(Rt),ajaxTransport:Zt(zt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,a,o,s,l,c,u,f,d,p=T.ajaxSetup({},t),h=p.context||p,g=p.context&&(h.nodeType||h.jquery)?T(h):T.event,m=T.Deferred(),y=T.Callbacks("once memory"),v=p.statusCode||{},I={},x={},w="canceled",M={readyState:0,getResponseHeader:function(e){var t;if(c){if(!o)for(o={};t=Ot.exec(a);)o[t[1].toLowerCase()+" "]=(o[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=o[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,I[e]=t),this},overrideMimeType:function(e){return null==c&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)M.always(e[M.status]);else for(t in e)v[t]=[v[t],e[t]];return this},abort:function(e){var t=e||w;return r&&r.abort(t),A(0,t),this}};if(m.promise(M),p.url=((e||p.url||wt.href)+"").replace(Pt,wt.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(z)||[""],null==p.crossDomain){l=b.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Ut.protocol+"//"+Ut.host!=l.protocol+"//"+l.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=T.param(p.data,p.traditional)),Ft(Rt,p,t,M),c)return M;for(f in(u=T.event&&p.global)&&0==T.active++&&T.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Lt.test(p.type),i=p.url.replace(jt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(kt,"+")):(d=p.url.slice(i.length),p.data&&(p.processData||"string"==typeof p.data)&&(i+=(Mt.test(i)?"&":"?")+p.data,delete p.data),!1===p.cache&&(i=i.replace(Dt,"$1"),d=(Mt.test(i)?"&":"?")+"_="+Tt.guid+++d),p.url=i+d),p.ifModified&&(T.lastModified[i]&&M.setRequestHeader("If-Modified-Since",T.lastModified[i]),T.etag[i]&&M.setRequestHeader("If-None-Match",T.etag[i])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&M.setRequestHeader("Content-Type",p.contentType),M.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+_t+"; q=0.01":""):p.accepts["*"]),p.headers)M.setRequestHeader(f,p.headers[f]);if(p.beforeSend&&(!1===p.beforeSend.call(h,M,p)||c))return M.abort();if(w="abort",y.add(p.complete),M.done(p.success),M.fail(p.error),r=Ft(zt,p,t,M)){if(M.readyState=1,u&&g.trigger("ajaxSend",[M,p]),c)return M;p.async&&p.timeout>0&&(s=n.setTimeout((function(){M.abort("timeout")}),p.timeout));try{c=!1,r.send(I,A)}catch(e){if(c)throw e;A(-1,e)}}else A(-1,"No Transport");function A(e,t,o,l){var f,d,b,I,x,w=t;c||(c=!0,s&&n.clearTimeout(s),r=void 0,a=l||"",M.readyState=e>0?4:0,f=e>=200&&e<300||304===e,o&&(I=function(e,t,n){for(var r,i,a,o,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)a=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){a=i;break}o||(o=i)}a=a||o}if(a)return a!==l[0]&&l.unshift(a),n[a]}(p,M,o)),!f&&T.inArray("script",p.dataTypes)>-1&&T.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),I=function(e,t,n,r){var i,a,o,s,l,c={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)c[o.toLowerCase()]=e.converters[o];for(a=u.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=a,a=u.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(!(o=c[l+" "+a]||c["* "+a]))for(i in c)if((s=i.split(" "))[1]===a&&(o=c[l+" "+s[0]]||c["* "+s[0]])){!0===o?o=c[i]:!0!==c[i]&&(a=s[0],u.unshift(s[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+a}}}return{state:"success",data:t}}(p,I,M,f),f?(p.ifModified&&((x=M.getResponseHeader("Last-Modified"))&&(T.lastModified[i]=x),(x=M.getResponseHeader("etag"))&&(T.etag[i]=x)),204===e||"HEAD"===p.type?w="nocontent":304===e?w="notmodified":(w=I.state,d=I.data,f=!(b=I.error))):(b=w,!e&&w||(w="error",e<0&&(e=0))),M.status=e,M.statusText=(t||w)+"",f?m.resolveWith(h,[d,w,M]):m.rejectWith(h,[M,w,b]),M.statusCode(v),v=void 0,u&&g.trigger(f?"ajaxSuccess":"ajaxError",[M,p,f?d:b]),y.fireWith(h,[M,w]),u&&(g.trigger("ajaxComplete",[M,p]),--T.active||T.event.trigger("ajaxStop")))}return M},getJSON:function(e,t,n){return T.get(e,t,n,"json")},getScript:function(e,t){return T.get(e,void 0,t,"script")}}),T.each(["get","post"],(function(e,t){T[t]=function(e,n,r,i){return y(n)&&(i=i||r,r=n,n=void 0),T.ajax(T.extend({url:e,type:t,dataType:i,data:n,success:r},T.isPlainObject(e)&&e))}})),T.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),T._evalUrl=function(e,t,n){return T.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){T.globalEval(e,t,n)}})},T.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=T(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return y(e)?this.each((function(t){T(this).wrapInner(e.call(this,t))})):this.each((function(){var t=T(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=y(e);return this.each((function(n){T(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){T(this).replaceWith(this.childNodes)})),this}}),T.expr.pseudos.hidden=function(e){return!T.expr.pseudos.visible(e)},T.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Bt={0:200,1223:204},Yt=T.ajaxSettings.xhr();m.cors=!!Yt&&"withCredentials"in Yt,m.ajax=Yt=!!Yt,T.ajaxTransport((function(e){var t,r;if(m.cors||Yt&&!e.crossDomain)return{send:function(i,a){var o,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];for(o in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(o,i[o]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?a(0,"error"):a(s.status,s.statusText):a(Bt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){t&&r()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),T.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return T.globalEval(e),e}}}),T.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),T.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=T("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Wt,Ht=[],Vt=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ht.pop()||T.expando+"_"+Tt.guid++;return this[e]=!0,e}}),T.ajaxPrefilter("json jsonp",(function(e,t,r){var i,a,o,s=!1!==e.jsonp&&(Vt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Vt,"$1"+i):!1!==e.jsonp&&(e.url+=(Mt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||T.error(i+" was not called"),o[0]},e.dataTypes[0]="json",a=n[i],n[i]=function(){o=arguments},r.always((function(){void 0===a?T(n).removeProp(i):n[i]=a,e[i]&&(e.jsonpCallback=t.jsonpCallback,Ht.push(i)),o&&y(a)&&a(o[0]),o=a=void 0})),"script"})),m.createHTMLDocument=((Wt=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Wt.childNodes.length),T.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((r=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(r)):t=b),a=!n&&[],(i=k.exec(e))?[t.createElement(i[1])]:(i=we([e],t,a),a&&a.length&&T(a).remove(),T.merge([],i.childNodes)));var r,i,a},T.fn.load=function(e,t,n){var r,i,a,o=this,s=e.indexOf(" ");return s>-1&&(r=mt(e.slice(s)),e=e.slice(0,s)),y(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),o.length>0&&T.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){a=arguments,o.html(r?T("<div>").append(T.parseHTML(e)).find(r):e)})).always(n&&function(e,t){o.each((function(){n.apply(this,a||[e.responseText,t,e])}))}),this},T.expr.pseudos.animated=function(e){return T.grep(T.timers,(function(t){return e===t.elem})).length},T.offset={setOffset:function(e,t,n){var r,i,a,o,s,l,c=T.css(e,"position"),u=T(e),f={};"static"===c&&(e.style.position="relative"),s=u.offset(),a=T.css(e,"top"),l=T.css(e,"left"),("absolute"===c||"fixed"===c)&&(a+l).indexOf("auto")>-1?(o=(r=u.position()).top,i=r.left):(o=parseFloat(a)||0,i=parseFloat(l)||0),y(t)&&(t=t.call(e,n,T.extend({},s))),null!=t.top&&(f.top=t.top-s.top+o),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):u.css(f)}},T.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){T.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===T.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===T.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=T(e).offset()).top+=T.css(e,"borderTopWidth",!0),i.left+=T.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-T.css(r,"marginTop",!0),left:t.left-i.left-T.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===T.css(e,"position");)e=e.offsetParent;return e||ae}))}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;T.fn[e]=function(r){return Y(this,(function(e,r,i){var a;if(v(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===i)return a?a[t]:e[r];a?a.scrollTo(n?a.pageXOffset:i,n?i:a.pageYOffset):e[r]=i}),e,r,arguments.length)}})),T.each(["top","left"],(function(e,t){T.cssHooks[t]=Ye(m.pixelPosition,(function(e,n){if(n)return n=Be(e,t),Ue.test(n)?T(e).position()[t]+"px":n}))})),T.each({Height:"height",Width:"width"},(function(e,t){T.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){T.fn[r]=function(i,a){var o=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===a?"margin":"border");return Y(this,(function(t,n,i){var a;return v(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===i?T.css(t,n,s):T.style(t,n,i,s)}),t,o?i:void 0,o)}}))})),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){T.fn[t]=function(e){return this.on(t,e)}})),T.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){T.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var qt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;T.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),y(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||T.guid++,i},T.holdReady=function(e){e?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=S,T.isFunction=y,T.isWindow=v,T.camelCase=q,T.type=w,T.now=Date.now,T.isNumeric=function(e){var t=T.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},T.trim=function(e){return null==e?"":(e+"").replace(qt,"")},void 0===(r=function(){return T}.apply(t,[]))||(e.exports=r);var Qt=n.jQuery,Jt=n.$;return T.noConflict=function(e){return n.$===T&&(n.$=Jt),e&&n.jQuery===T&&(n.jQuery=Qt),T},void 0===i&&(n.jQuery=n.$=T),T}))},function(e,t,n){"use strict";var r=n(21),i="object"==typeof self&&self&&self.Object===Object&&self,a=r.a||i||Function("return this")();t.a=a},function(e,t,n){!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 a(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 o(e){return"string"==typeof e||"symbol"==typeof e}function s(e){return!o(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,a,o){return t(e)&&n(1),s(e)&&i(1),{type:e,payload:r,meta:a,error:o}}function f(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 d(e,r,i){return t(e)&&n(1),s(e)&&l(1),function(){return f(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=d,e.createAsyncAction=function(e,t,n,r){return function(){var i=[e,t,n,r].map((function(e,t){return Array.isArray(e)?d(e[0],e[1],e[2])():"string"==typeof e||"symbol"==typeof e?d(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=f,e.createReducer=function e(t,n){void 0===n&&(n={});var i=Object.assign({},n),a=function(n,a){var s=Array.isArray(n)?n:[n],l={};return s.map((function(e,t){return r(e)?p(e):o(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]=a})),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:a,handleType:a})},e.deprecated=g,e.getType=p,e.isActionOf=function(e,r){t(e)&&n(1);var i=Array.isArray(e)?e:[e];i.forEach(a);var o=function(e){return i.some((function(t){return e.type===t.getType()}))};return void 0===r?o:o(r)},e.isOfType=function(e,r){t(e)&&n(1);var i=Array.isArray(e)?e:[e];i.forEach(c);var a=function(e){return i.includes(e.type)};return void 0===r?a:a(r)}}(t)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"f",(function(){return d})),n.d(t,"b",(function(){return p})),n.d(t,"e",(function(){return h})),n.d(t,"d",(function(){return g})),n.d(t,"g",(function(){return v})),n.d(t,"i",(function(){return I})),n.d(t,"h",(function(){return x}));var r=n(3),i=n.n(r),a=n(39),o=n.n(a);const s={allowedTags:["img","br"],allowedAttributes:{img:["src","alt"]},allowedSchemes:["data"],exclusiveFilter:e=>"mathEditor"===e.attribs["data-js"]},l='img[src^="/math.svg?latex="]:not(img[src="/math.svg?latex="]), img[src^="data:image/svg+xml"]',c='img[src^="/screenshot/"], img[src^="data:image/png"], img[src^="data:image/gif"], img[src^="data:image/jpeg"]',u='img:not(img[src^="data"], img[src^="/math.svg?latex="], img[src^="/screenshot/"])';function f(e){return"DIV"===e.nodeName||"P"===e.nodeName}function d(e){return o()(function(e){const t=document.createElement("div");t.innerHTML=e;do{let e;for(let n=0;n<t.childNodes.length;n++){const r=t.childNodes[n];if(f(r)){for(e&&e.nodeType===Node.TEXT_NODE&&/\S/.test(e.textContent)&&t.insertBefore(document.createElement("br"),r),r.lastChild&&"BR"!==r.lastChild.nodeName&&r.insertBefore(document.createElement("br"),null);r.childNodes.length;)t.insertBefore(r.firstChild,r);t.removeChild(r)}e=r}}while(Array.prototype.some.call(t.childNodes,e=>f(e)));return t.innerHTML}(o()(function(e){return e.replace(new RegExp(document.location.origin,"g"),"")}(e),Object.assign(Object.assign({},s),{allowedTags:["div","p","img","br"]}))),s)}function p(e,t){const n=e.selectionStart,r=e.selectionEnd;let i=e.value;e.value=i.substring(0,n)+t+i.substring(r,i.length),e.selectionStart=e.selectionEnd=n+t.length}function h(e,t){return y(e,!e.altKey&&!e.shiftKey&&!e.ctrlKey&&m(e,t))}function g(e,t){return y(e,!e.altKey&&!e.shiftKey&&e.ctrlKey&&m(e,t))}function m(e,t){return"string"==typeof t?e.key===t:e.keyCode===t}function y(e,t){return t&&e.preventDefault(),t}function v(e){const t=i()(e),n=t.find('[data-js="mathEditor"]'),r=i()(window).scrollTop();n.hide();const a=t.get(0).innerText;n.show(),i()(window).scrollTop(r);const o=d(t.html());return{answerHTML:a.trim().length+t.find(l).length+t.find(c).length===0?"":(u=o,u.replace(/^(\n|<br ?\/?>)*/g,"").replace(/(\s|<br ?\/?>)*$/g,"")),answerText:b(a),imageCount:(s=i()(`<div>${o}</div>`),s.find(c).length)};var s,u}function b(e){return e.replace(/^(\n)*/g,"").replace(/(\s)*$/g,"")}function I(e){const t=document.createRange(),n=e.get(0);t.setStartAfter(n);const r=window.getSelection();r.removeAllRanges(),r.addRange(t)}function x(e){const t=i()(window),n=t.height()-40,r=n+t.scrollTop(),a=e.offset().top+e.height();r<a&&t.scrollTop(a-n)}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(85)},function(e,t,n){"use strict";(function(e){var r=n(21),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,o=a&&a.exports===i&&r.a.process,s=function(){try{var e=a&&a.require&&a.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();t.a=s}).call(this,n(17)(e))},function(e,t,n){"use strict";let r,i,a,{isClean:o,my:s}=n(27),l=n(18),c=n(20),u=n(19);class f extends u{push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}each(e){if(!this.proxyOf.nodes)return;let t,n,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],n=e(this.proxyOf.nodes[t],t),!1!==n);)this.indexes[r]+=1;return delete this.indexes[r],n}walk(e){return this.each((t,n)=>{let r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if("decl"===n.type&&e.test(n.prop))return t(n,r)}):this.walk((n,r)=>{if("decl"===n.type&&n.prop===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if("decl"===e.type)return t(e,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if("rule"===n.type&&e.test(n.selector))return t(n,r)}):this.walk((n,r)=>{if("rule"===n.type&&n.selector===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if("rule"===e.type)return t(e,n)}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if("atrule"===n.type&&e.test(n.name))return t(n,r)}):this.walk((n,r)=>{if("atrule"===n.type&&n.name===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if("atrule"===e.type)return t(e,n)}))}walkComments(e){return this.walk((t,n)=>{if("comment"===t.type)return e(t,n)})}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}insertBefore(e,t){let n,r=0===(e=this.index(e))&&"prepend",i=this.normalize(t,this.proxyOf.nodes[e],r).reverse();for(let t of i)this.proxyOf.nodes.splice(e,0,t);for(let t in this.indexes)n=this.indexes[t],e<=n&&(this.indexes[t]=n+i.length);return this.markDirty(),this}insertAfter(e,t){e=this.index(e);let n,r=this.normalize(t,this.proxyOf.nodes[e]).reverse();for(let t of r)this.proxyOf.nodes.splice(e+1,0,t);for(let t in this.indexes)n=this.indexes[t],e<n&&(this.indexes[t]=n+r.length);return this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))}),this.markDirty(),this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(e,t){if("string"==typeof e)e=function e(t){return t.map(t=>(t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t))}(r(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new l(e)]}else if(e.selector)e=[new i(e)];else if(e.name)e=[new a(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new c(e)]}return e.map(e=>(e[s]||f.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[o]&&function e(t){if(t[o]=!1,t.proxyOf.nodes)for(let n of t.proxyOf.nodes)e(n)}(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this,e))}getProxyProcessor(){return{set:(e,t,n)=>(e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0),get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...n)=>e[t](...n.map(e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e)):"every"===t||"some"===t?n=>e[t]((e,...t)=>n(e.toProxy(),...t)):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map(e=>e.toProxy()):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}}f.registerParse=e=>{r=e},f.registerRule=e=>{i=e},f.registerAtRule=e=>{a=e},e.exports=f,f.default=f,f.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,a.prototype):"rule"===e.type?Object.setPrototypeOf(e,i.prototype):"decl"===e.type?Object.setPrototypeOf(e,l.prototype):"comment"===e.type&&Object.setPrototypeOf(e,c.prototype),e[s]=!0,e.nodes&&e.nodes.forEach(e=>{f.rebuild(e)})}},function(e,t,n){"use strict";(function(e){var r=n(4),i=n(65),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=a&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===a?r.a.Buffer:void 0,l=(s?s.isBuffer:void 0)||i.a;t.a=l}).call(this,n(17)(e))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isComment=t.isText=t.isCDATA=t.isTag=void 0;var r=n(52);t.isTag=function(e){return r.isTag(e)},t.isCDATA=function(e){return"cdata"===e.type},t.isText=function(e){return"text"===e.type},t.isComment=function(e){return"comment"===e.type},t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")}},function(e,t,n){"use strict";let r,i,a=n(10);class o extends a{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}normalize(e,t,n){let r=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before;return r}toResult(e={}){return new r(new i,this,e).stringify()}}o.registerLazyResult=e=>{r=e},o.registerProcessor=e=>{i=e},e.exports=o,o.default=o},function(e,t,n){"use strict";(function(e,r){
31
31
  /*!
32
32
  * Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
33
33
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
@@ -39,7 +39,7 @@ function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterat
39
39
  * @author Feross Aboukhadijeh <http://feross.org>
40
40
  * @license MIT
41
41
  */
42
- var r=n(111),i=n(112),a=n(113);function o(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=d(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|p(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):d(e,t);if("Buffer"===t.type&&a(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(u(t),e=s(e,t<0?0:0|p(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|p(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function h(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(e).length;default:if(r)return Z(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return S(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return E(this,t,n);case"latin1":case"binary":return N(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,i){var a,o=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var u=-1;for(a=n;a<s;a++)if(c(e,a)===c(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===l)return u*o}else-1!==u&&(a-=a-u),u=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){for(var f=!0,d=0;d<l;d++)if(c(e,a+d)!==c(t,d)){f=!1;break}if(f)return a}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function I(e,t,n,r){return G(Z(t,e.length-n),e,n,r)}function x(e,t,n,r){return G(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return x(e,t,n,r)}function T(e,t,n,r){return G(F(t),e,n,r)}function M(e,t,n,r){return G(function(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function A(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,l,c=e[i],u=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(u=c);break;case 2:128==(192&(a=e[i+1]))&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(l=(15&c)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(l=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,f=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=o(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return f(null,e)},l.allocUnsafeSlow=function(e){return f(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!l.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},l.byteLength=h,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?C(this,0,e):g.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),c=this.slice(r,i),u=e.slice(t,n),f=0;f<s;++f)if(c[f]!==u[f]){a=c[f],o=u[f];break}return a<o?-1:o<a?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return I(this,e,t,n);case"ascii":return x(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function E(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function N(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function S(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=U(e[a]);return i}function k(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function j(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,r,i,a){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function O(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i<a;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i<a;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function P(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(e,t,n,r,a){return a||P(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function z(e,t,n,r,a){return a||P(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;n=new l(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUInt8=function(e,t){return t||j(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||j(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||j(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readInt8=function(e,t){return t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||j(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||j(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||j(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||j(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||j(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||j(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,a=r-n;if(this===e&&n<t&&t<r)for(i=a-1;i>=0;--i)e[i+t]=this[i+n];else if(a<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=l.isBuffer(e)?e:Z(new l(e,r).toString()),s=o.length;for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var _=/[^+\/0-9A-Za-z-_]/g;function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function Z(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function F(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(_,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(12))},function(e,t){},function(e,t){},function(e,t,n){"use strict";let r,i,a=n(10);class o extends a{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new r(new i,this,e).stringify()}}o.registerLazyResult=e=>{r=e},o.registerProcessor=e=>{i=e},e.exports=o,o.default=o},function(e,t,n){"use strict";let r=n(10);class i extends r{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}e.exports=i,i.default=i,r.registerAtRule(i)},function(e,t,n){"use strict";let r=n(10),i=n(63);class a extends r{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return i.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}e.exports=a,a.default=a,r.registerRule(a)},function(e,t,n){"use strict";let{SourceMapConsumer:r,SourceMapGenerator:i}=n(30),{fileURLToPath:a,pathToFileURL:o}=n(59),{resolve:s,isAbsolute:l}=n(31),{nanoid:c}=n(117),u=n(56),f=n(26),d=n(64),p=Symbol("fromOffsetCache"),h=Boolean(r&&i),g=Boolean(s&&l);class m{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!g||/^\w+:\/\//.test(t.from)||l(t.from)?this.file=t.from:this.file=s(t.from)),g&&h){let e=new d(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+c(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(e){let t,n;if(this[p])n=this[p];else{let e=this.css.split("\n");n=new Array(e.length);let t=0;for(let r=0,i=e.length;r<i;r++)n[r]=t,t+=e[r].length+1;this[p]=n}t=n[n.length-1];let r=0;if(e>=t)r=n.length-1;else{let t,i=n.length-2;for(;r<i;)if(t=r+(i-r>>1),e<n[t])i=t-1;else{if(!(e>=n[t+1])){r=t;break}r=t+1}}return{line:r+1,col:e-n[r]+1}}error(e,t,n,r={}){let i;if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let a=this.origin(t,n);return i=a?new f(e,a.line,a.column,a.source,a.file,r.plugin):new f(e,t,n,this.css,this.file,r.plugin),i.input={line:t,column:n,source:this.css},this.file&&(o&&(i.input.url=o(this.file).toString()),i.input.file=this.file),i}origin(e,t){if(!this.map)return!1;let n,r=this.map.consumer(),i=r.originalPositionFor({line:e,column:t});if(!i.source)return!1;n=l(i.source)?o(i.source):new URL(i.source,this.map.consumer().sourceRoot||o(this.map.mapFile));let s={url:n.toString(),line:i.line,column:i.column};if("file:"===n.protocol){if(!a)throw new Error("file: protocol is not available in this PostCSS build");s.file=a(n)}let c=r.sourceContentFor(i.source);return c&&(s.source=c),s}mapResolve(e){return/^\w+:\/\//.test(e)?e:s(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}e.exports=m,m.default=m,u&&u.registerInput&&u.registerInput(m)},function(e,t,n){"use strict";e.exports=n(84)},function(e,t,n){"use strict";var r=n(36),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?o:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=o;var c=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var o=u(n);f&&(o=o.concat(f(n)));for(var s=l(t),g=l(n),m=0;m<o.length;++m){var y=o[m];if(!(a[y]||r&&r[y]||g&&g[y]||s&&s[y])){var v=d(n,y);try{c(t,y,v)}catch(e){}}}}return t}},function(e,t,n){"use strict";e.exports=n(91)},function(e,t,n){const r=n(92),i=n(103),{klona:a}=n(104),{isPlainObject:o}=n(105),s=n(106),l=n(107),{parse:c}=n(108),u=["img","audio","video","picture","svg","object","map","iframe","embed"],f=["script","style"];function d(e,t){e&&Object.keys(e).forEach((function(n){t(e[n],n)}))}function p(e,t){return{}.hasOwnProperty.call(e,t)}function h(e,t){const n=[];return d(e,(function(e){t(e)&&n.push(e)})),n}e.exports=m;const g=/^[^\0\t\n\f\r /<=>]+$/;function m(e,t,n){let v="",b="";function I(e,t){const n=this;this.tag=e,this.attribs=t||{},this.tagPosition=v.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(S.length){S[S.length-1].text+=n.text}},this.updateParentNodeMediaChildren=function(){if(S.length&&u.includes(this.tag)){S[S.length-1].mediaChildren.push(this.tag)}}}(t=Object.assign({},m.defaults,t)).parser=Object.assign({},y,t.parser),f.forEach((function(e){t.allowedTags&&t.allowedTags.indexOf(e)>-1&&!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={};d(t.allowedClasses,(function(e,t){w&&(p(w,t)||(w[t]=[]),w[t].push("class")),M[t]=[];const n=[];e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?n.push(i(e).replace(/\\\*/g,".*")):M[t].push(e)})),n.length&&(A[t]=new RegExp("^("+n.join("|")+")$"))}));const C={};let E,N,S,k,j,D,O;d(t.transformTags,(function(e,t){let n;"function"==typeof e?n=e:"string"==typeof e&&(n=m.simpleTransform(e)),"*"===t?E=n:C[t]=n}));let L=!1;R();const P=new r.Parser({onopentag:function(e,n){if(t.enforceHtmlBoundary&&"html"===e&&R(),D)return void O++;const r=new I(e,n);S.push(r);let i=!1;const u=!!r.text;let f;if(p(C,e)&&(f=C[e](e,n),r.attribs=n=f.attribs,void 0!==f.text&&(r.innerText=f.text),e!==f.tagName&&(r.name=e=f.tagName,j[N]=f.tagName)),E&&(f=E(e,n),r.attribs=n=f.attribs,e!==f.tagName&&(r.name=e=f.tagName,j[N]=f.tagName)),(t.allowedTags&&-1===t.allowedTags.indexOf(e)||"recursiveEscape"===t.disallowedTagsMode&&!function(e){for(const t in e)if(p(e,t))return!1;return!0}(k)||null!=t.nestingLimit&&N>=t.nestingLimit)&&(i=!0,k[N]=!0,"discard"===t.disallowedTagsMode&&-1!==x.indexOf(e)&&(D=!0,O=1),k[N]=!0),N++,i){if("discard"===t.disallowedTagsMode)return;b=v,v=""}v+="<"+e,"script"===e&&(t.allowedScriptHostnames||t.allowedScriptDomains)&&(r.innerText=""),(!w||p(w,e)||w["*"])&&d(n,(function(n,i){if(!g.test(i))return void delete r.attribs[i];let u,f=!1;if(!w||p(w,e)&&-1!==w[e].indexOf(i)||w["*"]&&-1!==w["*"].indexOf(i)||p(T,e)&&T[e].test(i)||T["*"]&&T["*"].test(i))f=!0;else if(w&&w[e])for(const t of w[e])if(o(t)&&t.name&&t.name===i){f=!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(f){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=new URL(n);if(t.allowedScriptHostnames||t.allowedScriptDomains){const n=(t.allowedScriptHostnames||[]).find((function(e){return e===r.hostname})),i=(t.allowedScriptDomains||[]).find((function(e){return r.hostname===e||r.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{if((n=n.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//")).startsWith("relative:"))throw new Error("relative: exploit attempt");let r="relative://relative-site";for(let e=0;e<100;e++)r+="/"+e;const i=new URL(n,r);if(i&&"relative-site"===i.hostname&&"relative:"===i.protocol)e=p(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){const n=(t.allowedIframeHostnames||[]).find((function(e){return e===i.hostname})),r=(t.allowedIframeDomains||[]).find((function(e){return i.hostname===e||i.hostname.endsWith("."+e)}));e=n||r}}catch(t){e=!1}if(!e)return void delete r.attribs[i]}if("srcset"===i)try{if(u=l(n),u.forEach((function(e){_("srcset",e.url)&&(e.evil=!0)})),u=h(u,(function(e){return!e.evil})),!u.length)return void delete r.attribs[i];n=h(u,(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],a=M["*"],o=[A[e],A["*"]].filter((function(e){return e}));if(!(n=U(n,t&&a?s(t,a):t||a,o)).length)return void delete r.attribs[i]}if("style"===i)try{if(0===(n=function(e){return e.nodes[0].nodes.reduce((function(e,t){return e.push(t.prop+":"+t.value),e}),[]).join(";")}(function(e,t){if(!t)return e;const n=a(e),r=e.nodes[0];let i;i=t[r.selector]&&t["*"]?s(t[r.selector],t["*"]):t[r.selector]||t["*"];i&&(n.nodes[0].nodes=r.nodes.reduce(function(e){return function(t,n){if(p(e,n.prop)){e[n.prop].some((function(e){return e.test(n.value)}))&&t.push(n)}return t}}(i),[]));return n}(c(e+" {"+n+"}"),t.allowedStyles))).length)return void delete r.attribs[i]}catch(e){return void delete r.attribs[i]}v+=" "+i,n&&n.length&&(v+='="'+z(n,!0)+'"')}else delete r.attribs[i]})),-1!==t.selfClosing.indexOf(e)?v+=" />":(v+=">",!r.innerText||u||t.textFilter||(v+=z(r.innerText),L=!0)),i&&(v=b+z(v),b="")},ontext:function(e){if(D)return;const n=S[S.length-1];let r;if(n&&(r=n.tag,e=void 0!==n.innerText?n.innerText:e),"discard"!==t.disallowedTagsMode||"script"!==r&&"style"!==r){const n=z(e,!1);t.textFilter&&!L?v+=t.textFilter(n,r):L||(v+=n)}else v+=e;if(S.length){S[S.length-1].text+=e}},onclosetag:function(e){if(D){if(O--,O)return;D=!1}const n=S.pop();if(!n)return;D=!!t.enforceHtmlBoundary&&"html"===e,N--;const r=k[N];if(r){if(delete k[N],"discard"===t.disallowedTagsMode)return void n.updateParentNodeText();b=v,v=""}j[N]&&(e=j[N],delete j[N]),t.exclusiveFilter&&t.exclusiveFilter(n)?v=v.substr(0,n.tagPosition):(n.updateParentNodeMediaChildren(),n.updateParentNodeText(),-1===t.selfClosing.indexOf(e)?(v+="</"+e+">",r&&(v=b+z(v),b="")):r&&(v=b,b=""))}},t.parser);return P.write(e),P.end(),v;function R(){v="",N=0,S=[],k={},j={},D=!1,O=0}function z(e,n){return"string"!=typeof e&&(e+=""),t.parser.decodeEntities&&(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),n&&(e=e.replace(/"/g,"&quot;"))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),n&&(e=e.replace(/"/g,"&quot;")),e}function _(e,n){const r=(n=(n=n.replace(/[\x00-\x20]+/g,"")).replace(/<!--.*?-->/g,"")).match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!r)return!!n.match(/^[/\\]{2}/)&&!t.allowProtocolRelative;const i=r[1].toLowerCase();return p(t.allowedSchemesByTag,e)?-1===t.allowedSchemesByTag[e].indexOf(i):!t.allowedSchemes||-1===t.allowedSchemes.indexOf(i)}function U(e,t,n){return t?(e=e.split(/\s+/)).filter((function(e){return-1!==t.indexOf(e)||n.some((function(t){return t.test(e)}))})).join(" "):e}}const y={decodeEntities:!0};m.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"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src"]},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},m.simpleTransform=function(e,t,n){return n=void 0===n||n,t=t||{},function(r,i){let a;if(n)for(a in t)i[a]=t[a];else i=t;return{tagName:e,attribs:i}}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return c}));var r=n(3),i=n.n(r),a=n(70),o=n(7);const s=["image/png","image/jpeg"];function l(e,t){const n=e.originalEvent.clipboardData,r=n.items&&n.items.length>0&&n.items[n.items.length-1].getAsFile();if(r)!function(e,t,n){e.preventDefault(),s.indexOf(t.type)>=0&&n({data:t,type:t.type,id:String((new Date).getTime())}).then(e=>{const t=`<img src="${e}"/>`;window.document.execCommand("insertHTML",!1,t)})}(e,r,t);else{const r=n.getData("text/html");r?function(e,t,n,r){e.preventDefault(),window.document.execCommand("insertHTML",!1,o.f(n)),c(t,r)}(e,i()(e.currentTarget),r,t):function(e,t){c(e,t)}(i()(e.currentTarget),t)}}function c(t,n){setTimeout(()=>Promise.all(function(t){t.find(o.c).remove();const n=t.find('img[src^="data:image/"]').toArray().map(t=>Object.assign(function(t){if(!t)return null;const n=t.match(/^data:([A-Za-z-+/]+);base64,(.+)$/);if(3!==n.length)return null;return{type:n[1],data:new e(n[2],"base64")}}(t.getAttribute("src")),{$el:i()(t)}));n.filter(({type:e})=>-1===s.indexOf(e)&&"image/svg+xml"!==e).forEach(({$el:e})=>e.remove());const r=n.filter(({type:e})=>s.indexOf(e)>=0);return r.forEach(({$el:e})=>e.attr("src",a.a)),r}(t).map(e=>n(e).then(t=>e.$el.attr("src",t)).catch(t=>{throw e.$el.remove(),t}))).then(()=>t.trigger("input")),0)}}).call(this,n(29).Buffer)},function(e,t,n){!function(){var t=n(3),r="mathquill-block-id",i=Math.min,a=Math.max;if(!t)throw"MathQuill requires jQuery 1.5.2+ to be loaded first";function o(){}var s=[].slice;function l(e){var t=e.length-1;return function(){var n=s.call(arguments,0,t),r=s.call(arguments,t);return e.apply(this,n.concat([r]))}}var c=l((function(e,t){return l((function(n,r){if(e in n)return n[e].apply(n,t.concat(r))}))}));function u(e){return l((function(t,n){"function"!=typeof t&&(t=c(t));return e.call(this,(function(e){return t.apply(e,[e].concat(n))}))}))}function f(e){var t=s.call(arguments,1);return function(){return e.apply(this,t)}}function d(e,t){if(!t)throw new Error("prayer failed: "+e)}var p=function(e,t,n){function r(e){return"object"==typeof e}function i(e){return"function"==typeof e}function a(){}return function e(n,o){function s(){var e=new l;return i(e.init)&&e.init.apply(e,arguments),e}function l(){}void 0===o&&(o=n,n=Object),s.Bare=l;var c,u=a.prototype=n.prototype,f=l.prototype=s.prototype=s.p=new a;return f.constructor=s,s.extend=function(t){return e(s,t)},(s.open=function(e){if(c={},i(e)?c=e.call(s,f,u,s,n):r(e)&&(c=e),r(c))for(var a in c)t.call(c,a)&&(f[a]=c[a]);return i(f.init)||(f.init=n),s})(o)}}(0,{}.hasOwnProperty),h=-1;function g(e){d("a direction was passed",e===h||1===e)}var m=p(t,(function(e){e.insDirOf=function(e,t){return e===h?this.insertBefore(t.first()):this.insertAfter(t.last())},e.insAtDirEnd=function(e,t){return e===h?this.prependTo(t):this.appendTo(t)}})),y=p((function(e){e.parent=0,e[h]=0,e[1]=0,e.init=function(e,t,n){this.parent=e,this[h]=t,this[1]=n},this.copy=function(e){return y(e.parent,e[h],e[1])}})),v=p((function(e){e[h]=0,e[1]=0,e.parent=0;var t=0;this.byId={},e.init=function(){this.id=t+=1,v.byId[this.id]=this,this.ends={},this.ends[h]=0,this.ends[1]=0},e.dispose=function(){delete v.byId[this.id]},e.toString=function(){return"{{ MathQuill Node #"+this.id+" }}"},e.jQ=m(),e.jQadd=function(e){return this.jQ=this.jQ.add(e)},e.jQize=function(e){e=m(e||this.html());function t(e){if(e.getAttribute){var n=e.getAttribute("mathquill-command-id"),r=e.getAttribute("mathquill-block-id");n&&v.byId[n].jQadd(e),r&&v.byId[r].jQadd(e)}for(e=e.firstChild;e;e=e.nextSibling)t(e)}for(var n=0;n<e.length;n+=1)t(e[n]);return e},e.createDir=function(e,t){g(e);return this.jQize(),this.jQ.insDirOf(e,t.jQ),t[e]=this.adopt(t.parent,t[h],t[1]),this},e.createLeftOf=function(e){return this.createDir(h,e)},e.selectChildren=function(e,t){return M(e,t)},e.bubble=u((function(e){for(var t=this;t;t=t.parent){if(!1===e(t))break}return this})),e.postOrder=u((function(e){return function t(n){n.eachChild(t),e(n)}(this),this})),e.isEmpty=function(){return 0===this.ends[h]&&0===this.ends[1]},e.isStyleBlock=function(){return!1},e.children=function(){return I(this.ends[h],this.ends[1])},e.eachChild=function(){var e=this.children();return e.each.apply(e,arguments),this},e.foldChildren=function(e,t){return this.children().fold(e,t)},e.withDirAdopt=function(e,t,n,r){return I(this,this).withDirAdopt(e,t,n,r),this},e.adopt=function(e,t,n){return I(this,this).adopt(e,t,n),this},e.disown=function(){return I(this,this).disown(),this},e.remove=function(){return this.jQ.remove(),this.postOrder("dispose"),this.disown()}}));function b(e,t,n){d("a parent is always present",e),d("leftward is properly set up",t?t[1]===n&&t.parent===e:e.ends[h]===n),d("rightward is properly set up",n?n[h]===t&&n.parent===e:e.ends[1]===t)}var I=p((function(e){e.init=function(e,t,n){if(void 0===n&&(n=h),g(n),d("no half-empty fragments",!e==!t),this.ends={},e){d("withDir is passed to Fragment",e instanceof v),d("oppDir is passed to Fragment",t instanceof v),d("withDir and oppDir have the same parent",e.parent===t.parent),this.ends[n]=e,this.ends[-n]=t;var r=this.fold([],(function(e,t){return e.push.apply(e,t.jQ.get()),e}));this.jQ=this.jQ.add(r)}},e.jQ=m(),e.withDirAdopt=function(e,t,n,r){return e===h?this.adopt(t,n,r):this.adopt(t,r,n)},e.adopt=function(e,t,n){b(e,t,n);this.disowned=!1;var r=this.ends[h];if(!r)return this;var i=this.ends[1];return t||(e.ends[h]=r),n?n[h]=i:e.ends[1]=i,this.ends[1][1]=n,this.each((function(n){n[h]=t,n.parent=e,t&&(t[1]=n),t=n})),this},e.disown=function(){var e=this.ends[h];if(!e||this.disowned)return this;this.disowned=!0;var t=this.ends[1],n=e.parent;return b(n,e[h],e),b(n,t,t[1]),e[h]?e[h][1]=t[1]:n.ends[h]=t[1],t[1]?t[1][h]=e[h]:n.ends[1]=e[h],this},e.remove=function(){return this.jQ.remove(),this.each("postOrder","dispose"),this.disown()},e.each=u((function(e){var t=this.ends[h];if(!t)return this;for(;t!==this.ends[1][1];t=t[1]){if(!1===e(t))break}return this})),e.fold=function(e,t){return this.each((function(n){e=t.call(this,e,n)})),e}})),x={},w={},T=p(y,(function(e){e.init=function(e,t){this.parent=e,this.options=t;var n=this.jQ=this._jQ=m('<span class="mq-cursor">&#8203;</span>');this.blink=function(){n.toggleClass("mq-blink")},this.upDownCache={}},e.show=function(){return this.jQ=this._jQ.removeClass("mq-blink"),"intervalId"in this?clearInterval(this.intervalId):(this[1]?this.selection&&this.selection.ends[h][h]===this[h]?this.jQ.insertBefore(this.selection.jQ):this.jQ.insertBefore(this[1].jQ.first()):this.jQ.appendTo(this.parent.jQ),this.parent.focus()),this.intervalId=setInterval(this.blink,500),this},e.hide=function(){return"intervalId"in this&&clearInterval(this.intervalId),delete this.intervalId,this.jQ.detach(),this.jQ=m(),this},e.withDirInsertAt=function(e,t,n,r){var i=this.parent;this.parent=t,this[e]=n,this[-e]=r,i!==t&&i.blur&&i.blur(this)},e.insDirOf=function(e,t){return g(e),this.jQ.insDirOf(e,t.jQ),this.withDirInsertAt(e,t.parent,t[e],t),this.parent.jQ.addClass("mq-hasCursor"),this},e.insLeftOf=function(e){return this.insDirOf(h,e)},e.insRightOf=function(e){return this.insDirOf(1,e)},e.insAtDirEnd=function(e,t){return g(e),this.jQ.insAtDirEnd(e,t.jQ),this.withDirInsertAt(e,t,0,t.ends[e]),t.focus(),this},e.insAtLeftEnd=function(e){return this.insAtDirEnd(h,e)},e.insAtRightEnd=function(e){return this.insAtDirEnd(1,e)},e.jumpUpDown=function(e,t){this.upDownCache[e.id]=y.copy(this);var n=this.upDownCache[t.id];if(n)n[1]?this.insLeftOf(n[1]):this.insAtRightEnd(n.parent);else{var r=this.offset().left;t.seek(r,this)}},e.offset=function(){var e=this.jQ.removeClass("mq-cursor").offset();return this.jQ.addClass("mq-cursor"),e},e.unwrapGramp=function(){var e=this.parent.parent,t=e.parent,n=e[1],r=e[h];if(e.disown().eachChild((function(i){i.isEmpty()||(i.children().adopt(t,r,n).each((function(t){t.jQ.insertBefore(e.jQ.first())})),r=i.ends[1])})),!this[1])if(this[h])this[1]=this[h][1];else for(;!this[1];){if(this.parent=this.parent[1],!this.parent){this[1]=e[1],this.parent=t;break}this[1]=this.parent.ends[h]}this[1]?this.insLeftOf(this[1]):this.insAtRightEnd(t),e.jQ.remove(),e[h].siblingDeleted&&e[h].siblingDeleted(this.options,1),e[1].siblingDeleted&&e[1].siblingDeleted(this.options,h)},e.startSelection=function(){for(var e=this.anticursor=y.copy(this),t=e.ancestors={},n=e;n.parent;n=n.parent)t[n.parent.id]=n},e.endSelection=function(){delete this.anticursor},e.select=function(){var e=this.anticursor;if(this[h]===e[h]&&this.parent===e.parent)return!1;for(var t=this;t.parent;t=t.parent)if(t.parent.id in e.ancestors){var n=t.parent;break}d("cursor and anticursor in the same tree",n);var r,i,a=e.ancestors[n.id],o=1;if(t[h]!==a)for(var s=t;s;s=s[1])if(s[1]===a[1]){o=h,r=t,i=a;break}return 1===o&&(r=a,i=t),r instanceof y&&(r=r[1]),i instanceof y&&(i=i[h]),this.hide().selection=n.selectChildren(r,i),this.insDirOf(o,this.selection.ends[o]),this.selectionChanged(),!0},e.clearSelection=function(){return this.selection&&(this.selection.clear(),delete this.selection,this.selectionChanged()),this},e.deleteSelection=function(){this.selection&&(this[h]=this.selection.ends[h][h],this[1]=this.selection.ends[1][1],this.selection.remove(),this.selectionChanged(),delete this.selection)},e.replaceSelection=function(){var e=this.selection;return e&&(this[h]=e.ends[h][h],this[1]=e.ends[1][1],delete this.selection),e}})),M=p(I,(function(e,t){e.init=function(){t.init.apply(this,arguments),this.jQ=this.jQ.wrapAll('<span class="mq-selection"></span>').parent()},e.adopt=function(){return this.jQ.replaceWith(this.jQ=this.jQ.children()),t.adopt.apply(this,arguments)},e.clear=function(){return this.jQ.replaceWith(this.jQ[0].childNodes),this},e.join=function(e){return this.fold("",(function(t,n){return t+n[e]()}))}})),A=p((function(e){e.init=function(e,t,n){this.id=e.id,this.data={},this.root=e,this.container=t,this.options=n,e.controller=this,this.cursor=e.cursor=T(e,n)},e.handle=function(e,t){var n=this.options.handlers;if(n&&n.fns[e]){var r=n.APIClasses[this.KIND_OF_MQ](this);t===h||1===t?n.fns[e](t,r):n.fns[e](r)}};var t=[];this.onNotify=function(e){t.push(e)},e.notify=function(){for(var e=0;e<t.length;e+=1)t[e].apply(this.cursor,arguments);return this}})),C={},E=p(),N={},S=p(),k={};function j(){window.console&&console.warn('You are using the MathQuill API without specifying an interface version, which will fail in v1.0.0. Easiest fix is to do the following before doing anything else:\n\n MathQuill = MathQuill.getInterface(1);\n // now MathQuill.MathField() works like it used to\n\nSee also the "`dev` branch (2014–2015) → v0.10.0 Migration Guide" at\n https://github.com/mathquill/mathquill/wiki/%60dev%60-branch-(2014%E2%80%932015)-%E2%86%92-v0.10.0-Migration-Guide')}function D(e){return j(),Be(e)}D.prototype=S.p,D.VERSION="v0.10.5",D.interfaceVersion=function(e){if(1!==e)throw"Only interface version 1 supported. You specified: "+e;return(j=function(){window.console&&console.warn('You called MathQuill.interfaceVersion(1); to specify the interface version, which will fail in v1.0.0. You can fix this easily by doing this before doing anything else:\n\n MathQuill = MathQuill.getInterface(1);\n // now MathQuill.MathField() works like it used to\n\nSee also the "`dev` branch (2014–2015) → v0.10.0 Migration Guide" at\n https://github.com/mathquill/mathquill/wiki/%60dev%60-branch-(2014%E2%80%932015)-%E2%86%92-v0.10.0-Migration-Guide')})(),D},D.getInterface=P;var O=P.MIN=1,L=P.MAX=2;function P(e){if(!(O<=e&&e<=L))throw"Only interface versions between "+O+" and "+L+" supported. You specified: "+e;function n(e){if(!e||!e.nodeType)return null;var t=m(e).children(".mq-root-block").attr(r),n=t&&v.byId[t].controller;return n?i[n.KIND_OF_MQ](n):null}var i={};function a(e,t){for(var n in t&&t.handlers&&(t.handlers={fns:t.handlers,APIClasses:i}),t)if(t.hasOwnProperty(n)){var r=t[n],a=N[n];e[n]=a?a(r):r}}n.L=h,n.R=1,n.saneKeyboardEvents=Z,n.config=function(e){return a(E.p,e),this},n.registerEmbed=function(e,t){if(!/^[a-z][a-z0-9]*$/i.test(e))throw"Embed name must start with letter and be only letters and digits";k[e]=t};var s=i.AbstractMathQuill=p(S,(function(e){e.init=function(e){this.__controller=e,this.__options=e.options,this.id=e.id,this.data=e.data},e.__mathquillify=function(e){var t=this.__controller,n=t.root,i=t.container;t.createTextarea();var a=i.addClass(e).contents().detach();n.jQ=m('<span class="mq-root-block"/>').attr(r,n.id).appendTo(i),this.latex(a.text()),this.revert=function(){return i.empty().unbind(".mathquill").removeClass("mq-editable-field mq-math-mode mq-text-mode").append(a)}},e.config=function(e){return a(this.__options,e),this},e.el=function(){return this.__controller.container[0]},e.text=function(){return this.__controller.exportText()},e.latex=function(e){return arguments.length>0?(this.__controller.renderLatexMath(e),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this):this.__controller.exportLatex()},e.html=function(){return this.__controller.root.jQ.html().replace(/ mathquill-(?:command|block)-id="?\d+"?/g,"").replace(/<span class="?mq-cursor( mq-blink)?"?>.?<\/span>/i,"").replace(/ mq-hasCursor|mq-hasCursor ?/,"").replace(/ class=(""|(?= |>))/g,"")},e.reflow=function(){return this.__controller.root.postOrder("reflow"),this}}));for(var l in n.prototype=s.prototype,i.EditableField=p(s,(function(e,n){e.__mathquillify=function(){return n.__mathquillify.apply(this,arguments),this.__controller.editable=!0,this.__controller.delegateMouseEvents(),this.__controller.editablesTextareaEvents(),this},e.focus=function(){return this.__controller.textarea.focus(),this},e.blur=function(){return this.__controller.textarea.blur(),this},e.write=function(e){return this.__controller.writeLatex(e),this.__controller.scrollHoriz(),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this},e.empty=function(){var e=this.__controller.root,t=this.__controller.cursor;return e.eachChild("postOrder","dispose"),e.ends[h]=e.ends[1]=0,e.jQ.empty(),delete t.selection,t.insAtRightEnd(e),this},e.cmd=function(e){var t=this.__controller.notify(),n=t.cursor;if(/^\\[a-z]+$/i.test(e)){e=e.slice(1);var r=x[e]||Ue[e];r&&(e=r(e),n.selection&&e.replaces(n.replaceSelection()),e.createLeftOf(n.show()),this.__controller.scrollHoriz())}else n.parent.write(n,e);return t.blurred&&n.hide().parent.blur(),this},e.select=function(){var e=this.__controller;for(e.notify("move").cursor.insAtRightEnd(e.root);e.cursor[h];)e.selectLeft();return this},e.clearSelection=function(){return this.__controller.cursor.clearSelection(),this},e.moveToDirEnd=function(e){return this.__controller.notify("move").cursor.insAtDirEnd(e,this.__controller.root),this},e.moveToLeftEnd=function(){return this.moveToDirEnd(h)},e.moveToRightEnd=function(){return this.moveToDirEnd(1)},e.keystroke=function(e){e=e.replace(/^\s+|\s+$/g,"").split(/\s+/);for(var t=0;t<e.length;t+=1)this.__controller.keystroke(e[t],{preventDefault:o});return this},e.typedText=function(e){for(var t=0;t<e.length;t+=1)this.__controller.typedText(e.charAt(t));return this},e.dropEmbedded=function(e,t,n){var r=e-m(window).scrollLeft(),i=t-m(window).scrollTop(),a=document.elementFromPoint(r,i);this.__controller.seek(m(a),e,t),_e().setOptions(n).createLeftOf(this.__controller.cursor)},e.clickAt=function(e,n,r){r=r||document.elementFromPoint(e,n);var i=this.__controller,a=i.root;return t.contains(a.jQ[0],r)||(r=a.jQ[0]),i.seek(m(r),e+pageXOffset,n+pageYOffset),i.blurred&&this.focus(),this},e.ignoreNextMousedown=function(e){return this.__controller.cursor.options.ignoreNextMousedown=e,this}})),n.EditableField=function(){throw"wtf don't call me, I'm 'abstract'"},n.EditableField.prototype=i.EditableField.prototype,C)!function(t,r){var a=i[t]=r(i);n[t]=function(r,i){var o=n(r);if(o instanceof a||!r||!r.nodeType)return o;var s=A(a.RootBlock(),m(r),E());return s.KIND_OF_MQ=t,a(s).__mathquillify(i,e)},n[t].prototype=a.prototype}(l,C[l]);return n}D.noConflict=function(){return window.MathQuill=R,D};var R=window.MathQuill;function z(e){for(var t="moveOutOf deleteOutOf selectOutOf upOutOf downOutOf".split(" "),n=0;n<t.length;n+=1)!function(t){e[t]=function(e){this.controller.handle(t,e)}}(t[n]);e.reflow=function(){this.controller.handle("reflow"),this.controller.handle("edited"),this.controller.handle("edit")}}window.MathQuill=D;var _,U=p((function(e,t,n){function r(e,t){throw"Parse Error: "+t+" at "+(e=e?"'"+e+"'":"EOF")}e.init=function(e){this._=e},e.parse=function(e){return this.skip(o)._(""+e,(function(e,t){return t}),r)},e.or=function(e){d("or is passed a parser",e instanceof n);var t=this;return n((function(n,r,i){return t._(n,r,(function(t){return e._(n,r,i)}))}))},e.then=function(e){var t=this;return n((function(r,i,a){return t._(r,(function(t,r){var o=e instanceof n?e:e(r);return d("a parser is returned",o instanceof n),o._(t,i,a)}),a)}))},e.many=function(){var e=this;return n((function(t,n,r){for(var i=[];e._(t,a,o););return n(t,i);function a(e,n){return t=e,i.push(n),!0}function o(){return!1}}))},e.times=function(e,t){arguments.length<2&&(t=e);var r=this;return n((function(n,i,a){for(var o,s=[],l=!0,c=0;c<e;c+=1)if(!(l=r._(n,u,f)))return a(n,o);for(;c<t&&l;c+=1)l=r._(n,u,d);return i(n,s);function u(e,t){return s.push(t),n=e,!0}function f(e,t){return o=t,n=e,!1}function d(e,t){return!1}}))},e.result=function(e){return this.then(a(e))},e.atMost=function(e){return this.times(0,e)},e.atLeast=function(e){var t=this;return t.times(e).then((function(e){return t.many().map((function(t){return e.concat(t)}))}))},e.map=function(e){return this.then((function(t){return a(e(t))}))},e.skip=function(e){return this.then((function(t){return e.result(t)}))};this.string=function(e){var t=e.length,r="expected '"+e+"'";return n((function(n,i,a){var o=n.slice(0,t);return o===e?i(n.slice(t),o):a(n,r)}))};var i=this.regex=function(e){d("regexp parser is anchored","^"===e.toString().charAt(1));var t="expected "+e;return n((function(n,r,i){var a=e.exec(n);if(a){var o=a[0];return r(n.slice(o.length),o)}return i(n,t)}))},a=n.succeed=function(e){return n((function(t,n){return n(t,e)}))},o=(n.fail=function(e){return n((function(t,n,r){return r(t,e)}))},n.letter=i(/^[a-z]/i),n.letters=i(/^[a-z]*/i),n.digit=i(/^[0-9]/),n.digits=i(/^[0-9]*/),n.whitespace=i(/^\s+/),n.optWhitespace=i(/^\s*/),n.any=n((function(e,t,n){return e?t(e.slice(1),e.charAt(0)):n(e,"expected any character")})),n.all=n((function(e,t,n){return t("",e)})),n.eof=n((function(e,t,n){return e?n(e,"expected EOF"):t(e,e)})))})),Z=(_={8:"Backspace",9:"Tab",10:"Enter",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Esc",32:"Spacebar",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",45:"Insert",46:"Del",144:"NumLock"},function(e,n){var r,i=null,a=null,s=t(e),l=t(n.container||s),c=o;function u(e){c=e,clearTimeout(r),r=setTimeout(e)}function f(e){u((function(t){c=o,clearTimeout(r),e(t)}))}l.bind("keydown keypress input keyup focusout paste",(function(e){c(e)}));var d=!1;function p(){n.keystroke(function(e){var t,n=e.which||e.keyCode,r=_[n],i=[];return e.ctrlKey&&i.push("Ctrl"),e.originalEvent&&e.originalEvent.metaKey&&i.push("Meta"),e.altKey&&i.push("Alt"),e.shiftKey&&i.push("Shift"),t=r||String.fromCharCode(n),i.length||r?(i.push(t),i.join("-")):t}(i),i)}function h(){if(!("selectionStart"in(e=s[0]))||e.selectionStart===e.selectionEnd){var e,t=s.val();1===t.length?(s.val(""),n.typedText(t)):t&&s[0].select&&s[0].select()}}function g(){var e=s.val();s.val(""),e&&n.paste(e)}return l.bind({keydown:function(e){i=e,a=null,d&&f((function(e){e&&"focusout"===e.type||!s[0].select||s[0].select()})),p()},keypress:function(e){i&&a&&p(),a=e,u(h)},keyup:function(e){i&&!a&&u(h)},focusout:function(){i=a=null},cut:function(){f((function(){n.cut()}))},copy:function(){f((function(){n.copy()}))},paste:function(e){s.focus(),u(g)}}),{select:function(e){c(),c=o,clearTimeout(r),s.val(e),e&&s[0].select&&s[0].select(),d=!!e}}});A.open((function(e,t){e.exportText=function(){return this.root.foldChildren("",(function(e,t){return e+t.text()}))}})),A.open((function(e){e.focusBlurEvents=function(){var e,t=this,n=t.root,r=t.cursor;function i(){clearTimeout(e),r.selection&&r.selection.jQ.addClass("mq-blur"),a()}function a(){r.hide().parent.blur(),t.container.removeClass("mq-focused"),m(window).unbind("blur",i)}t.textarea.focus((function(){t.blurred=!1,clearTimeout(e),t.container.addClass("mq-focused"),r.parent||r.insAtRightEnd(n),r.selection?(r.selection.jQ.removeClass("mq-blur"),t.selectionChanged()):r.show()})).blur((function(){t.blurred=!0,e=setTimeout((function(){n.postOrder("intentionalBlur"),r.clearSelection().endSelection(),a()})),m(window).bind("blur",i)})),t.blurred=!0,r.hide().parent.blur()}})),A.open((function(e){e.keystroke=function(e,t){this.cursor.parent.keystroke(e,t,this)}})),v.open((function(e){e.keystroke=function(e,t,n){var r=n.cursor;switch(e){case"Ctrl-Shift-Backspace":case"Ctrl-Backspace":n.ctrlDeleteDir(h);break;case"Shift-Backspace":case"Backspace":n.backspace();break;case"Esc":case"Tab":return void n.escapeDir(1,e,t);case"Shift-Tab":case"Shift-Esc":return void n.escapeDir(h,e,t);case"End":n.notify("move").cursor.insAtRightEnd(r.parent);break;case"Ctrl-End":n.notify("move").cursor.insAtRightEnd(n.root);break;case"Shift-End":for(;r[1];)n.selectRight();break;case"Ctrl-Shift-End":for(;r[1]||r.parent!==n.root;)n.selectRight();break;case"Home":n.notify("move").cursor.insAtLeftEnd(r.parent);break;case"Ctrl-Home":n.notify("move").cursor.insAtLeftEnd(n.root);break;case"Shift-Home":for(;r[h];)n.selectLeft();break;case"Ctrl-Shift-Home":for(;r[h]||r.parent!==n.root;)n.selectLeft();break;case"Left":n.moveLeft();break;case"Shift-Left":n.selectLeft();break;case"Ctrl-Left":break;case"Right":n.moveRight();break;case"Shift-Right":n.selectRight();break;case"Ctrl-Right":break;case"Up":n.moveUp();break;case"Down":n.moveDown();break;case"Shift-Up":if(r[h])for(;r[h];)n.selectLeft();else n.selectLeft();case"Shift-Down":if(r[1])for(;r[1];)n.selectRight();else n.selectRight();case"Ctrl-Up":case"Ctrl-Down":break;case"Ctrl-Shift-Del":case"Ctrl-Del":n.ctrlDeleteDir(1);break;case"Shift-Del":case"Del":n.deleteForward();break;case"Meta-A":case"Ctrl-A":for(n.notify("move").cursor.insAtRightEnd(n.root);r[h];)n.selectLeft();break;default:return}t.preventDefault(),n.scrollHoriz()},e.moveOutOf=e.moveTowards=e.deleteOutOf=e.deleteTowards=e.unselectInto=e.selectOutOf=e.selectTowards=function(){d("overridden or never called on this node")}})),A.open((function(e){function t(e,t){var n=e.notify("upDown").cursor,r=t+"Into",i=t+"OutOf";return n[1][r]?n.insAtLeftEnd(n[1][r]):n[h][r]?n.insAtRightEnd(n[h][r]):n.parent.bubble((function(e){var t=e[i];if(t&&("function"==typeof t&&(t=e[i](n)),t instanceof v&&n.jumpUpDown(e,t),!0!==t))return!1})),e}this.onNotify((function(e){"move"!==e&&"upDown"!==e||this.show().clearSelection()})),e.escapeDir=function(e,t,n){g(e);var r=this.cursor;if(r.parent!==this.root&&n.preventDefault(),r.parent!==this.root)return r.parent.moveOutOf(e,r),this.notify("move")},N.leftRightIntoCmdGoes=function(e){if(e&&"up"!==e&&"down"!==e)throw'"up" or "down" required for leftRightIntoCmdGoes option, got "'+e+'"';return e},e.moveDir=function(e){g(e);var t=this.cursor,n=t.options.leftRightIntoCmdGoes;return t.selection?t.insDirOf(e,t.selection.ends[e]):t[e]?t[e].moveTowards(e,t,n):t.parent.moveOutOf(e,t,n),this.notify("move")},e.moveLeft=function(){return this.moveDir(h)},e.moveRight=function(){return this.moveDir(1)},e.moveUp=function(){return t(this,"up")},e.moveDown=function(){return t(this,"down")},this.onNotify((function(e){"upDown"!==e&&(this.upDownCache={})})),this.onNotify((function(e){"edit"===e&&this.show().deleteSelection()})),e.deleteDir=function(e){g(e);var t=this.cursor,n=t.selection;return this.notify("edit"),n||(t[e]?t[e].deleteTowards(e,t):t.parent.deleteOutOf(e,t)),t[h].siblingDeleted&&t[h].siblingDeleted(t.options,1),t[1].siblingDeleted&&t[1].siblingDeleted(t.options,h),t.parent.bubble("reflow"),this},e.ctrlDeleteDir=function(e){g(e);var t=this.cursor;return!t[e]||t.selection?this.deleteDir(e):(this.notify("edit"),e===h?I(t.parent.ends[h],t[h]).remove():I(t[1],t.parent.ends[1]).remove(),t.insAtDirEnd(e,t.parent),t[h].siblingDeleted&&t[h].siblingDeleted(t.options,1),t[1].siblingDeleted&&t[1].siblingDeleted(t.options,h),t.parent.bubble("reflow"),this)},e.backspace=function(){return this.deleteDir(h)},e.deleteForward=function(){return this.deleteDir(1)},this.onNotify((function(e){"select"!==e&&this.endSelection()})),e.selectDir=function(e){var t=this.notify("select").cursor,n=t.selection;g(e),t.anticursor||t.startSelection();var r=t[e];r?n&&n.ends[e]===r&&t.anticursor[-e]!==r?r.unselectInto(e,t):r.selectTowards(e,t):t.parent.selectOutOf(e,t),t.clearSelection(),t.select()||t.show()},e.selectLeft=function(){return this.selectDir(h)},e.selectRight=function(){return this.selectDir(1)}}));var F=function(){function e(e){for(var t=e[0]||V(),n=1;n<e.length;n+=1)e[n].children().adopt(t,t.ends[1],0);return t}var t=U.string,n=U.regex,r=U.letter,i=U.any,a=U.optWhitespace,o=U.succeed,s=U.fail,l=r.map((function(e){return ne(e)})),c=n(/^[^${}\\_^]/).map((function(e){return W(e)})),u=n(/^[^\\a-eg-zA-Z]/).or(t("\\").then(n(/^[a-z]+/i).or(n(/^\s+/).result(" ")).or(i))).then((function(e){var t=x[e];return t?t(e).parser():s("unknown command: \\"+e)})).or(l).or(c),f=t("{").then((function(){return p})).skip(t("}")),d=a.then(f.or(u.map((function(e){var t=V();return e.adopt(t,0,0),t})))),p=d.many().map(e).skip(a),h=t("[").then(d.then((function(e){return"]"!==e.join("latex")?o(e):s()})).many().map(e).skip(a)).skip(t("]")),g=p;return g.block=d,g.optBlock=h,g}();A.open((function(e,t){e.exportLatex=function(){return this.root.latex().replace(/(\\[a-z]+) (?![a-z])/gi,"$1")},e.writeLatex=function(e){var t=this.notify("edit").cursor,n=U.all,r=U.eof,i=F.skip(r).or(n.result(!1)).parse(e);i&&!i.isEmpty()&&(i.children().adopt(t.parent,t[h],t[1]),i.jQize().insertBefore(t.jQ),t[h]=i.ends[1],i.finalizeInsert(t.options,t),i.ends[1][1].siblingCreated&&i.ends[1][1].siblingCreated(t.options,h),i.ends[h][h].siblingCreated&&i.ends[h][h].siblingCreated(t.options,1),t.parent.bubble("reflow"));return this},e.renderLatexMath=function(e){var t=this.root,n=this.cursor,r=U.all,i=U.eof,a=F.skip(i).or(r.result(!1)).parse(e);t.eachChild("postOrder","dispose"),t.ends[h]=t.ends[1]=0,a&&a.children().adopt(t,0,0);var o=t.jQ;if(a){var s=a.join("html");o.html(s),t.jQize(o.children()),t.finalizeInsert(n.options)}else o.empty();delete n.selection,n.insAtRightEnd(t)},e.renderLatexText=function(e){var t=this.root,n=this.cursor;t.jQ.children().slice(1).remove(),t.eachChild("postOrder","dispose"),t.ends[h]=t.ends[1]=0,delete n.selection,n.show().insAtRightEnd(t);var r=U.regex,i=U.string,a=U.eof,o=U.all,s=i("$").then(F).skip(i("$").or(a)).map((function(e){var t=K(n);t.createBlocks();var r=t.ends[h];return e.children().adopt(r,0,0),t})),l=i("\\$").result("$").or(r(/^[^$]/)).map(W),c=s.or(l).many().skip(a).or(o.result(!1)).parse(e);if(c){for(var u=0;u<c.length;u+=1)c[u].adopt(t,t.ends[1],0);t.jQize().appendTo(t.jQ),t.finalizeInsert(n.options)}}})),A.open((function(e){E.p.ignoreNextMousedown=o,e.delegateMouseEvents=function(){var e=this.root.jQ;this.container.bind("mousedown.mathquill",(function(t){var n,i=m(t.target).closest(".mq-root-block"),a=v.byId[i.attr(r)||e.attr(r)].controller,s=a.cursor,l=s.blink,c=a.textareaSpan,u=a.textarea;(t.preventDefault(),t.target.unselectable=!0,s.options.ignoreNextMousedown(t))||(s.options.ignoreNextMousedown=o,a.blurred&&(a.editable||i.prepend(c),u.focus()),s.blink=o,a.seek(m(t.target),t.pageX,t.pageY).cursor.startSelection(),i.mousemove(f),m(t.target.ownerDocument).mousemove(d).mouseup((function e(t){s.blink=l,s.selection||(a.editable?s.show():c.detach()),i.unbind("mousemove",f),m(t.target.ownerDocument).unbind("mousemove",d).unbind("mouseup",e)})));function f(e){n=m(e.target)}function d(e){s.anticursor||s.startSelection(),a.seek(n,e.pageX,e.pageY).cursor.select(),n=void 0}}))}})),A.open((function(e){e.seek=function(e,t,n){var i=this.notify("select").cursor;if(e){var a=e.attr(r)||e.attr("mathquill-command-id");if(!a){var o=e.parent();a=o.attr(r)||o.attr("mathquill-command-id")}}var s=a?v.byId[a]:this.root;return d("nodeId is the id of some Node that exists",s),i.clearSelection().show(),s.seek(t,i),this.scrollHoriz(),this}})),A.open((function(e){e.scrollHoriz=function(){var e=this.cursor,t=e.selection,n=e.offset();if(n){var r=e.jQ.closest(".mq-editable-field"),i=Number(n.top-r.offset().top+2*e.jQ.height());r.find(".mq-textarea textarea").css("top",i+"px")}var a=this.root.jQ[0].getBoundingClientRect();if(t){var o=t.jQ[0].getBoundingClientRect(),s=o.left-(a.left+20),l=o.right-(a.right-20);if(t.ends[h]===e[1])if(s<0)u=s;else{if(!(l>0))return;if(o.left-l<a.left+20)u=s;else u=l}else if(l>0)u=l;else{if(!(s<0))return;if(o.right-s>a.right-20)u=l;else u=s}}else{var c=e.jQ[0].getBoundingClientRect().left;if(c>a.right-20)var u=c-(a.right-20);else{if(!(c<a.left+20))return;var u=c-(a.left+20)}}this.root.jQ.stop().animate({scrollLeft:"+="+u},100)}})),A.open((function(e){E.p.substituteTextarea=function(){return m("<textarea autocapitalize=off autocomplete=off autocorrect=off spellcheck=false x-palm-disable-ste-all=true />")[0]},e.createTextarea=function(){var e=this.textareaSpan=m('<span class="mq-textarea"></span>'),t=this.options.substituteTextarea();if(!t.nodeType)throw"substituteTextarea() must return a DOM element, got "+t;t=this.textarea=m(t).appendTo(e);var n=this;n.cursor.selectionChanged=function(){n.selectionChanged()}},e.selectionChanged=function(){var e=this;ye(e.container[0]),void 0===e.textareaSelectionTimeout&&(e.textareaSelectionTimeout=setTimeout((function(){e.setTextareaSelection()})))},e.setTextareaSelection=function(){this.textareaSelectionTimeout=void 0;var e="";this.cursor.selection&&(e=this.cursor.selection.join("latex"),this.options.statelessClipboard&&(e="$"+e+"$")),this.selectFn(e)},e.staticMathTextareaEvents=function(){var e=this,n=(e.root,e.cursor),r=e.textarea,i=e.textareaSpan;function a(){i.detach(),e.blurred=!0}this.container.prepend(t('<span class="mq-selectable">').text("$"+e.exportLatex()+"$")),e.blurred=!0,r.bind("cut paste",!1).bind("copy",(function(){e.setTextareaSelection()})).focus((function(){e.blurred=!1})).blur((function(){n.selection&&n.selection.clear(),setTimeout(a)})),e.selectFn=function(e){r.val(e),e&&r.select()}},E.p.substituteKeyboardEvents=Z,e.editablesTextareaEvents=function(){var e=this.textarea,t=this.textareaSpan,n=this.options.substituteKeyboardEvents(e,this);this.selectFn=function(e){n.select(e)},this.container.prepend(t),this.focusBlurEvents()},e.typedText=function(e){if("\n"===e)return this.handle("enter");var t=this.notify().cursor;t.parent.write(t,e),this.scrollHoriz()},e.cut=function(){var e=this,t=e.cursor;t.selection&&setTimeout((function(){e.notify("edit"),t.parent.bubble("reflow")}))},e.copy=function(){this.setTextareaSelection()},e.paste=function(e){this.options.statelessClipboard&&(e="$"===e.slice(0,1)&&"$"===e.slice(-1)?e.slice(1,-1):"\\text{"+e+"}"),this.writeLatex(e).cursor.show()}}));var G=p(v,(function(e,t){e.finalizeInsert=function(e,t){this.postOrder("finalizeTree",e),this.postOrder("contactWeld",t),this.postOrder("blur"),this.postOrder("reflow"),this[1].siblingCreated&&this[1].siblingCreated(e,h),this[h].siblingCreated&&this[h].siblingCreated(e,1),this.bubble("reflow")}})),B=p(G,(function(e,t){e.init=function(e,n,r){t.init.call(this),this.ctrlSeq||(this.ctrlSeq=e),n&&(this.htmlTemplate=n),r&&(this.textTemplate=r)},e.replaces=function(e){e.disown(),this.replacedFragment=e},e.isEmpty=function(){return this.foldChildren(!0,(function(e,t){return e&&t.isEmpty()}))},e.parser=function(){var e=F.block,t=this;return e.times(t.numBlocks()).map((function(e){t.blocks=e;for(var n=0;n<e.length;n+=1)e[n].adopt(t,t.ends[1],0);return t}))},e.createLeftOf=function(e){var n=this.replacedFragment;this.createBlocks(),t.createLeftOf.call(this,e),n&&(n.adopt(this.ends[h],0,0),n.jQ.appendTo(this.ends[h].jQ)),this.finalizeInsert(e.options),this.placeCursor(e)},e.createBlocks=function(){for(var e=this.numBlocks(),t=this.blocks=Array(e),n=0;n<e;n+=1){(t[n]=V()).adopt(this,this.ends[1],0)}},e.placeCursor=function(e){e.insAtRightEnd(this.foldChildren(this.ends[h],(function(e,t){return e.isEmpty()?e:t})))},e.moveTowards=function(e,t,n){var r=n&&this[n+"Into"];t.insAtDirEnd(-e,r||this.ends[-e])},e.deleteTowards=function(e,t){this.isEmpty()?t[e]=this.remove()[e]:this.moveTowards(e,t,null)},e.selectTowards=function(e,t){t[-e]=this,t[e]=this[e]},e.selectChildren=function(){return M(this,this)},e.unselectInto=function(e,t){t.insAtDirEnd(-e,t.anticursor.ancestors[this.id])},e.seek=function(e,t){function n(e){var t={};return t[h]=e.jQ.offset().left,t[1]=t[h]+e.jQ.outerWidth(),t}var r=this,i=n(r);if(e<i[h])return t.insLeftOf(r);if(e>i[1])return t.insRightOf(r);var a=i[h];r.eachChild((function(o){var s=n(o);return e<s[h]?(e-a<s[h]-e?o[h]?t.insAtRightEnd(o[h]):t.insLeftOf(r):t.insAtLeftEnd(o),!1):e>s[1]?void(o[1]?a=s[1]:i[1]-e<e-s[1]?t.insRightOf(r):t.insAtRightEnd(o)):(o.seek(e,t),!1)}))},e.numBlocks=function(){var e=this.htmlTemplate.match(/&\d+/g);return e?e.length:0},e.html=function(){var e=this.blocks,t=" mathquill-command-id="+this.id,n=this.htmlTemplate.match(/<[^<>]+>|[^<>]+/g);d("no unmatched angle brackets",n.join("")===this.htmlTemplate);for(var r=0,i=n[0];i;i=n[r+=1])if("/>"===i.slice(-2))n[r]=i.slice(0,-2)+t+"/>";else if("<"===i.charAt(0)){d("not an unmatched top-level close tag","/"!==i.charAt(1)),n[r]=i.slice(0,-1)+t+">";var a=1;do{d("no missing close tags",i=n[r+=1]),"</"===i.slice(0,2)?a-=1:"<"===i.charAt(0)&&"/>"!==i.slice(-2)&&(a+=1)}while(a>0)}return n.join("").replace(/>&(\d+)/g,(function(t,n){return" mathquill-block-id="+e[n].id+">"+e[n].join("html")}))},e.latex=function(){return this.foldChildren(this.ctrlSeq,(function(e,t){return e+"{"+(t.latex()||" ")+"}"}))},e.textTemplate=[""],e.text=function(){var e=this,t=0;return e.foldChildren(e.textTemplate[t],(function(n,r){t+=1;var i=r.text();return n&&"("===e.textTemplate[t]&&"("===i[0]&&")"===i.slice(-1)?n+i.slice(1,-1)+e.textTemplate[t]:n+r.text()+(e.textTemplate[t]||"")}))}})),Y=p(B,(function(e,t){e.init=function(e,n,r){r||(r=e&&e.length>1?e.slice(1):e),t.init.call(this,e,n,[r])},e.parser=function(){return U.succeed(this)},e.numBlocks=function(){return 0},e.replaces=function(e){e.remove()},e.createBlocks=o,e.moveTowards=function(e,t){t.jQ.insDirOf(e,this.jQ),t[-e]=this,t[e]=this[e]},e.deleteTowards=function(e,t){t[e]=this.remove()[e]},e.seek=function(e,t){e-this.jQ.offset().left<this.jQ.outerWidth()/2?t.insLeftOf(this):t.insRightOf(this)},e.latex=function(){return this.ctrlSeq},e.text=function(){return this.textTemplate},e.placeCursor=o,e.isEmpty=function(){return!0}})),W=p(Y,(function(e,t){e.init=function(e,n){t.init.call(this,e,"<span>"+(n||e)+"</span>")}})),H=p(Y,(function(e,t){e.init=function(e,n,r){t.init.call(this,e,'<span class="mq-binary-operator">'+n+"</span>",r)}})),V=p(G,(function(e,t){e.join=function(e){return this.foldChildren("",(function(t,n){return t+n[e]()}))},e.html=function(){return this.join("html")},e.latex=function(){return this.join("latex")},e.text=function(){return this.ends[h]===this.ends[1]&&0!==this.ends[h]?this.ends[h].text():this.join("text")},e.keystroke=function(e,n,r){return!r.options.spaceBehavesLikeTab||"Spacebar"!==e&&"Shift-Spacebar"!==e?t.keystroke.apply(this,arguments):(n.preventDefault(),void r.escapeDir("Shift-Spacebar"===e?h:1,e,n))},e.moveOutOf=function(e,t,n){!(n&&this.parent[n+"Into"])&&this[e]?t.insAtDirEnd(-e,this[e]):t.insDirOf(e,this.parent)},e.selectOutOf=function(e,t){t.insDirOf(e,this.parent)},e.deleteOutOf=function(e,t){t.unwrapGramp()},e.seek=function(e,t){var n=this.ends[1];if(!n||n.jQ.offset().left+n.jQ.outerWidth()<e)return t.insAtRightEnd(this);if(e<this.ends[h].jQ.offset().left)return t.insAtLeftEnd(this);for(;e<n.jQ.offset().left;)n=n[h];return n.seek(e,t)},e.chToCmd=function(e,t){var n;return e.match(/^[a-eg-zA-Z]$/)?ne(e):/^\d$/.test(e)?ee(e):t&&t.typingSlashWritesDivisionSymbol&&"/"===e?x["÷"](e):t&&t.typingAsteriskWritesTimesSymbol&&"*"===e?x["×"](e):(n=w[e]||x[e])?n(e):W(e)},e.write=function(e,t){var n=this.chToCmd(t,e.options);e.selection&&n.replaces(e.replaceSelection()),n.createLeftOf(e.show())},e.focus=function(){return this.jQ.addClass("mq-hasCursor"),this.jQ.removeClass("mq-empty"),this},e.blur=function(){return this.jQ.removeClass("mq-hasCursor"),this.isEmpty()&&this.jQ.addClass("mq-empty"),this}}));C.StaticMath=function(e){return p(e.AbstractMathQuill,(function(t,n){this.RootBlock=V,t.__mathquillify=function(e,t){return this.config(e),n.__mathquillify.call(this,"mq-math-mode"),this.__controller.delegateMouseEvents(),this.__controller.staticMathTextareaEvents(),this},t.init=function(){n.init.apply(this,arguments),this.__controller.root.postOrder("registerInnerField",this.innerFields=[],e.MathField)},t.latex=function(){var t=n.latex.apply(this,arguments);return arguments.length>0&&this.__controller.root.postOrder("registerInnerField",this.innerFields=[],e.MathField),t}}))};var q=p(V,z);C.MathField=function(e){return p(e.EditableField,(function(e,t){this.RootBlock=q,e.__mathquillify=function(e,n){return this.config(e),n>1&&(this.__controller.root.reflow=o),t.__mathquillify.call(this,"mq-editable-field mq-math-mode"),delete this.__controller.root.reflow,this}}))};var Q=p(v,(function(e,t){function n(e){e.jQ[0].normalize();var t=e.jQ[0].firstChild;if(t){d("only node in TextBlock span is Text node",3===t.nodeType);var n=J(t.data);return n.jQadd(t),e.children().disown(),n.adopt(e,0,0)}}e.ctrlSeq="\\text",e.replaces=function(e){e instanceof I?this.replacedText=e.remove().jQ.text():"string"==typeof e&&(this.replacedText=e)},e.jQadd=function(e){t.jQadd.call(this,e),this.ends[h]&&this.ends[h].jQadd(this.jQ[0].firstChild)},e.createLeftOf=function(e){if(t.createLeftOf.call(this,e),this[1].siblingCreated&&this[1].siblingCreated(e.options,h),this[h].siblingCreated&&this[h].siblingCreated(e.options,1),this.bubble("reflow"),e.insAtRightEnd(this),this.replacedText)for(var n=0;n<this.replacedText.length;n+=1)this.write(e,this.replacedText.charAt(n))},e.parser=function(){var e=this,t=U.string,n=U.regex;return U.optWhitespace.then(t("{")).then(n(/^[^}]*/)).skip(t("}")).map((function(t){return 0===t.length?I():(J(t).adopt(e,0,0),e)}))},e.textContents=function(){return this.foldChildren("",(function(e,t){return e+t.text}))},e.text=function(){return'"'+this.textContents()+'"'},e.latex=function(){var e=this.textContents();return 0===e.length?"":"\\text{"+e.replace(/\\/g,"\\backslash ").replace(/[{}]/g,"\\$&")+"}"},e.html=function(){return'<span class="mq-text-mode" mathquill-command-id='+this.id+">"+this.textContents()+"</span>"},e.moveTowards=function(e,t){t.insAtDirEnd(-e,this)},e.moveOutOf=function(e,t){t.insDirOf(e,this)},e.unselectInto=e.moveTowards,e.selectTowards=B.prototype.selectTowards,e.deleteTowards=B.prototype.deleteTowards,e.selectOutOf=function(e,t){t.insDirOf(e,this)},e.deleteOutOf=function(e,t){this.isEmpty()&&t.insRightOf(this)},e.write=function(e,n){if(e.show().deleteSelection(),"$"!==n)e[h]?e[h].appendText(n):J(n).createLeftOf(e);else if(this.isEmpty())e.insRightOf(this),W("\\$","$").createLeftOf(e);else if(e[1])if(e[h]){var r=Q(),i=this.ends[h];i.disown().jQ.detach(),i.adopt(r,0,0),e.insLeftOf(this),t.createLeftOf.call(r,e)}else e.insLeftOf(this);else e.insRightOf(this)},e.seek=function(e,t){t.hide();var r=n(this),i=this.jQ.width()/this.text.length,a=Math.round((e-this.jQ.offset().left)/i);a<=0?t.insAtLeftEnd(this):a>=r.text.length?t.insAtRightEnd(this):t.insLeftOf(r.splitRight(a));for(var o=e-t.show().offset().left,s=o&&o<0?h:1,l=s;t[s]&&o*l>0;)t[s].moveTowards(s,t),l=o,o=e-t.offset().left;if(s*o<-s*l&&t[-s].moveTowards(-s,t),t.anticursor){if(t.anticursor.parent===this){var c=t[h]&&t[h].text.length;if(this.anticursorPosition===c)t.anticursor=y.copy(t);else{if(this.anticursorPosition<c){var u=t[h].splitRight(this.anticursorPosition);t[h]=u}else u=t[1].splitRight(this.anticursorPosition-c);t.anticursor=y(this,u[h],u)}}}else this.anticursorPosition=t[h]&&t[h].text.length},e.blur=function(e){V.prototype.blur.call(this),e&&(""===this.textContents()?(this.remove(),e[h]===this?e[h]=this[h]:e[1]===this&&(e[1]=this[1])):n(this))},e.focus=V.prototype.focus})),J=p(v,(function(e,t){function n(e,t){return t.charAt(e===h?0:-1+t.length)}e.init=function(e){t.init.call(this),this.text=e},e.jQadd=function(e){this.dom=e,this.jQ=m(e)},e.jQize=function(){return this.jQadd(document.createTextNode(this.text))},e.appendText=function(e){this.text+=e,this.dom.appendData(e)},e.prependText=function(e){this.text=e+this.text,this.dom.insertData(0,e)},e.insTextAtDirEnd=function(e,t){g(t),1===t?this.appendText(e):this.prependText(e)},e.splitRight=function(e){var t=J(this.text.slice(e)).adopt(this.parent,this,this[1]);return t.jQadd(this.dom.splitText(e)),this.text=this.text.slice(0,e),t},e.moveTowards=function(e,t){g(e);var r=n(-e,this.text),i=this[-e];return i?i.insTextAtDirEnd(r,e):J(r).createDir(-e,t),this.deleteTowards(e,t)},e.latex=function(){return this.text},e.deleteTowards=function(e,t){this.text.length>1?1===e?(this.dom.deleteData(0,1),this.text=this.text.slice(1)):(this.dom.deleteData(-1+this.text.length,1),this.text=this.text.slice(0,-1)):(this.remove(),this.jQ.remove(),t[e]=this[e])},e.selectTowards=function(e,t){g(e);var r=t.anticursor,i=n(-e,this.text);if(r[e]===this){var a=J(i).createDir(e,t);r[e]=a,t.insDirOf(e,a)}else{var o=this[-e];if(o)o.insTextAtDirEnd(i,e);else(a=J(i).createDir(-e,t)).jQ.insDirOf(-e,t.selection.jQ);1===this.text.length&&r[-e]===this&&(r[-e]=this[-e])}return this.deleteTowards(e,t)}}));function X(e,t,n){return p(Q,{ctrlSeq:e,htmlTemplate:"<"+t+" "+n+">&0</"+t+">"})}x.text=x.textnormal=x.textrm=x.textup=x.textmd=Q,x.em=x.italic=x.italics=x.emph=x.textit=x.textsl=X("\\textit","i",'class="mq-text-mode"'),x.strong=x.bold=x.textbf=X("\\textbf","b",'class="mq-text-mode"'),x.sf=x.textsf=X("\\textsf","span",'class="mq-sans-serif mq-text-mode"'),x.tt=x.texttt=X("\\texttt","span",'class="mq-monospace mq-text-mode"'),x.textsc=X("\\textsc","span",'style="font-variant:small-caps" class="mq-text-mode"'),x.uppercase=X("\\uppercase","span",'style="text-transform:uppercase" class="mq-text-mode"'),x.lowercase=X("\\lowercase","span",'style="text-transform:lowercase" class="mq-text-mode"');var K=p(B,(function(e,t){e.init=function(e){t.init.call(this,"$"),this.cursor=e},e.htmlTemplate='<span class="mq-math-mode">&0</span>',e.createBlocks=function(){t.createBlocks.call(this),this.ends[h].cursor=this.cursor,this.ends[h].write=function(e,t){"$"!==t?V.prototype.write.call(this,e,t):this.isEmpty()?(e.insRightOf(this.parent),this.parent.deleteTowards(dir,e),W("\\$","$").createLeftOf(e.show())):e[1]?e[h]?V.prototype.write.call(this,e,t):e.insLeftOf(this.parent):e.insRightOf(this.parent)}},e.latex=function(){return"$"+this.ends[h].latex()+"$"}})),$=p(q,(function(e,t){e.keystroke=function(e){if("Spacebar"!==e&&"Shift-Spacebar"!==e)return t.keystroke.apply(this,arguments)},e.write=function(e,t){var n;(e.show().deleteSelection(),"$"===t)?K(e).createLeftOf(e):("<"===t?n="&lt;":">"===t&&(n="&gt;"),W(t,n).createLeftOf(e))}}));C.TextField=function(e){return p(e.EditableField,(function(e,t){this.RootBlock=$,e.__mathquillify=function(){return t.__mathquillify.call(this,"mq-editable-field mq-text-mode")},e.latex=function(e){return arguments.length>0?(this.__controller.renderLatexText(e),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this):this.__controller.exportLatex()}}))};var ee=p(W,(function(e,t){e.createLeftOf=function(e){e.options.autoSubscriptNumerals&&e.parent!==e.parent.parent.sub&&(e[h]instanceof te&&!1!==e[h].isItalic||e[h]instanceof Ae&&e[h][h]instanceof te&&!1!==e[h][h].isItalic)?(x._().createLeftOf(e),t.createLeftOf.call(this,e),e.insRightOf(e.parent.parent)):t.createLeftOf.call(this,e)}})),te=p(Y,(function(e,t){e.init=function(e,n){t.init.call(this,e,"<var>"+(n||e)+"</var>")},e.text=function(){var e=this.ctrlSeq;return this.isPartOfOperator?"\\"==e[0]?e=e.slice(1,e.length):" "==e[e.length-1]&&(e=e.slice(0,-1)):(!this[h]||this[h]instanceof te||this[h]instanceof H||"\\ "===this[h].ctrlSeq||(e="*"+e),!this[1]||this[1]instanceof H||this[1]instanceof Ae||(e+="*")),e}}));E.p.autoCommands={_maxLength:0},N.autoCommands=function(e){if(!/^[a-z]+(?: [a-z]+)*$/i.test(e))throw'"'+e+'" not a space-delimited list of only letters';for(var t=e.split(" "),n={},r=0,i=0;i<t.length;i+=1){var o=t[i];if(o.length<2)throw'autocommand "'+o+'" not minimum length of 2';if(x[o]===oe)throw'"'+o+'" is a built-in operator name';n[o]=1,r=a(r,o.length)}return n._maxLength=r,n};var ne=p(te,(function(e,t){function n(e){return!e||e instanceof H||e instanceof Ee}e.init=function(e){return t.init.call(this,this.letter=e)},e.createLeftOf=function(e){t.createLeftOf.apply(this,arguments);var n=e.options.autoCommands,r=n._maxLength;if(r>0){for(var i="",a=this,o=0;a instanceof ne&&a.ctrlSeq===a.letter&&o<r;)i=a.letter+i,a=a[h],o+=1;for(;i.length;){if(n.hasOwnProperty(i)){for(o=1,a=this;o<i.length;o+=1,a=a[h]);return I(a,this).remove(),e[h]=a[h],x[i](i).createLeftOf(e)}i=i.slice(1)}}},e.italicize=function(e){return this.isItalic=e,this.isPartOfOperator=!e,this.jQ.toggleClass("mq-operator-name",!e),this},e.finalizeTree=e.siblingDeleted=e.siblingCreated=function(e,t){t!==h&&this[1]instanceof ne||this.autoUnItalicize(e)},e.autoUnItalicize=function(e){var t=e.autoOperatorNames;if(0!==t._maxLength){for(var r=this.letter,a=this[h];a instanceof ne;a=a[h])r=a.letter+r;for(var o=this[1];o instanceof ne;o=o[1])r+=o.letter;I(a[1]||this.parent.ends[h],o[h]||this.parent.ends[1]).each((function(e){e.italicize(!0).jQ.removeClass("mq-first mq-last mq-followed-by-supsub"),e.ctrlSeq=e.letter}));e:for(var s=0,l=a[1]||this.parent.ends[h];s<r.length;s+=1,l=l[1])for(var c=i(t._maxLength,r.length-s);c>0;c-=1){var u=r.slice(s,s+c);if(t.hasOwnProperty(u)){for(var f=0,d=l;f<c;f+=1,d=d[1]){d.italicize(!1);var p=d}var g=re.hasOwnProperty(u);if(l.ctrlSeq=(g?"\\":"\\operatorname{")+l.ctrlSeq,p.ctrlSeq+=g?" ":"}",ae.hasOwnProperty(u)&&p[h][h][h].jQ.addClass("mq-last"),n(l[h])||l.jQ.addClass("mq-first"),!n(p[1]))if(p[1]instanceof Ae){var m=p[1];(m.siblingCreated=m.siblingDeleted=function(){m.jQ.toggleClass("mq-after-operator-name",!(m[1]instanceof Le))})()}else p.jQ.toggleClass("mq-last",!(p[1]instanceof Le));s+=c-1,l=p;continue e}}}}})),re={},ie=E.p.autoOperatorNames={_maxLength:9},ae={limsup:1,liminf:1,projlim:1,injlim:1};!function(){for(var e="arg deg det dim exp gcd hom inf ker lg lim ln log max min sup limsup liminf injlim projlim Pr".split(" "),t=0;t<e.length;t+=1)re[e[t]]=ie[e[t]]=1;var n="sin cos tan arcsin arccos arctan sinh cosh tanh sec csc cot coth".split(" ");for(t=0;t<n.length;t+=1)re[n[t]]=1;var r="sin cos tan sec cosec csc cotan cot ctg".split(" ");for(t=0;t<r.length;t+=1)ie[r[t]]=ie["arc"+r[t]]=ie[r[t]+"h"]=ie["ar"+r[t]+"h"]=ie["arc"+r[t]+"h"]=1;var i="gcf hcf lcm proj span".split(" ");for(t=0;t<i.length;t+=1)ie[i[t]]=1}(),N.autoOperatorNames=function(e){if(!/^[a-z]+(?: [a-z]+)*$/i.test(e))throw'"'+e+'" not a space-delimited list of only letters';for(var t=e.split(" "),n={},r=0,i=0;i<t.length;i+=1){var o=t[i];if(o.length<2)throw'"'+o+'" not minimum length of 2';n[o]=1,r=a(r,o.length)}return n._maxLength=r,n};var oe=p(Y,(function(e,t){e.init=function(e){this.ctrlSeq=e},e.createLeftOf=function(e){for(var t=this.ctrlSeq,n=0;n<t.length;n+=1)ne(t.charAt(n)).createLeftOf(e)},e.parser=function(){for(var e=this.ctrlSeq,t=V(),n=0;n<e.length;n+=1)ne(e.charAt(n)).adopt(t,t.ends[1],0);return U.succeed(t.children())}}));for(var se in ie)ie.hasOwnProperty(se)&&(x[se]=oe);x.operatorname=p(B,(function(e){e.createLeftOf=o,e.numBlocks=function(){return 1},e.parser=function(){return F.block.map((function(e){return e.children()}))}})),x.f=p(ne,(function(e,t){e.init=function(){Y.p.init.call(this,this.letter="f",'<var class="mq-f">f</var>')},e.italicize=function(e){return this.jQ.html("f").toggleClass("mq-f",e),t.italicize.apply(this,arguments)}})),x[" "]=x.space=f(W,"\\ ","&nbsp;"),x[","]=f(W,"{,}",","),x["'"]=x.prime=f(W,"'","&prime;"),x["″"]=x.dprime=f(W,"″","&Prime;"),x.backslash=f(W,"\\backslash ","\\"),w["\\"]||(w["\\"]=x.backslash),x.$=f(W,"\\$","$");var le=p(Y,(function(e,t){e.init=function(e,n){t.init.call(this,e,'<span class="mq-nonSymbola">'+(n||e)+"</span>")}}));x["@"]=le,x["#"]=f(le,"\\#","#"),x["&"]=f(le,"\\&","&amp;"),x["%"]=f(le,"\\%","%"),x.alpha=x.beta=x.gamma=x.delta=x.zeta=x.eta=x.theta=x.iota=x.kappa=x.mu=x.nu=x.xi=x.rho=x.sigma=x.tau=x.chi=x.psi=x.omega=p(te,(function(e,t){e.init=function(e){t.init.call(this,"\\"+e+" ","&"+e+";")}})),x.phi=f(te,"\\phi ","&#981;"),x.phiv=x.varphi=f(te,"\\varphi ","&phi;"),x.epsilon=f(te,"\\epsilon ","&#1013;"),x.epsiv=x.varepsilon=f(te,"\\varepsilon ","&epsilon;"),x.piv=x.varpi=f(te,"\\varpi ","&piv;"),x.sigmaf=x.sigmav=x.varsigma=f(te,"\\varsigma ","&sigmaf;"),x.thetav=x.vartheta=x.thetasym=f(te,"\\vartheta ","&thetasym;"),x.upsilon=x.upsi=f(te,"\\upsilon ","&upsilon;"),x.gammad=x.Gammad=x.digamma=f(te,"\\digamma ","&#989;"),x.kappav=x.varkappa=f(te,"\\varkappa ","&#1008;"),x.rhov=x.varrho=f(te,"\\varrho ","&#1009;"),x.pi=x["π"]=f(le,"\\pi ","&pi;"),x.lambda=f(le,"\\lambda ","&lambda;"),x.Upsilon=x.Upsi=x.upsih=x.Upsih=f(Y,"\\Upsilon ",'<var style="font-family: serif">&upsih;</var>'),x.Gamma=x.Delta=x.Theta=x.Lambda=x.Xi=x.Pi=x.Sigma=x.Phi=x.Psi=x.Omega=x.forall=p(W,(function(e,t){e.init=function(e){t.init.call(this,"\\"+e+" ","&"+e+";")}}));var ce=p(B,(function(e){e.init=function(e){this.latex=e},e.createLeftOf=function(e){var t=F.parse(this.latex);t.children().adopt(e.parent,e[h],e[1]),e[h]=t.ends[1],t.jQize().insertBefore(e.jQ),t.finalizeInsert(e.options,e),t.ends[1][1].siblingCreated&&t.ends[1][1].siblingCreated(e.options,h),t.ends[h][h].siblingCreated&&t.ends[h][h].siblingCreated(e.options,1),e.parent.bubble("reflow")},e.parser=function(){var e=F.parse(this.latex).children();return U.succeed(e)}}));x["⁰"]=f(ce,"^0"),x["¹"]=f(ce,"^1"),x["²"]=f(ce,"^2"),x["³"]=f(ce,"^3"),x["⁴"]=f(ce,"^4"),x["⁵"]=f(ce,"^5"),x["⁶"]=f(ce,"^6"),x["⁷"]=f(ce,"^7"),x["⁸"]=f(ce,"^8"),x["⁹"]=f(ce,"^9"),x["₀"]=f(ce,"_0"),x["₁"]=f(ce,"_1"),x["₂"]=f(ce,"_2"),x["₃"]=f(ce,"_3"),x["₄"]=f(ce,"_4"),x["₅"]=f(ce,"_5"),x["₆"]=f(ce,"_6"),x["₇"]=f(ce,"_7"),x["₈"]=f(ce,"_8"),x["₉"]=f(ce,"_9"),x["¼"]=f(ce,"\\frac14"),x["½"]=f(ce,"\\frac12"),x["¾"]=f(ce,"\\frac34");var ue=p(H,(function(e){e.init=W.prototype.init,e.contactWeld=e.siblingCreated=e.siblingDeleted=function(e,t){if(1!==t)return this.jQ[0].className=function e(t){return t[h]?t[h]instanceof H||/^[,;:\(\[]$/.test(t[h].ctrlSeq)?"":"mq-binary-operator":t.parent&&t.parent.parent&&t.parent.parent.isStyleBlock()?e(t.parent.parent):""}(this),this}}));x["+"]=f(ue,"+","+"),x["–"]=x["-"]=f(ue,"-","&minus;"),x["±"]=x.pm=x.plusmn=x.plusminus=f(ue,"\\pm ","&plusmn;"),x.mp=x.mnplus=x.minusplus=f(ue,"\\mp ","&#8723;"),w["*"]=x.sdot=x.cdot=f(H,"\\cdot ","&middot;","*");var fe=p(H,(function(e,t){e.init=function(e,n){this.data=e,this.strict=n;var r=n?"Strict":"";t.init.call(this,e["ctrlSeq"+r],e["html"+r],e["text"+r])},e.swap=function(e){this.strict=e;var t=e?"Strict":"";this.ctrlSeq=this.data["ctrlSeq"+t],this.jQ.html(this.data["html"+t]),this.textTemplate=[this.data["text"+t]]},e.deleteTowards=function(e,n){if(e===h&&!this.strict)return this.swap(!0),void this.bubble("reflow");t.deleteTowards.apply(this,arguments)}})),de={ctrlSeq:"\\le ",html:"&le;",text:"≤",ctrlSeqStrict:"<",htmlStrict:"&lt;",textStrict:"<"},pe={ctrlSeq:"\\ge ",html:"&ge;",text:"≥",ctrlSeqStrict:">",htmlStrict:"&gt;",textStrict:">"};x["<"]=x.lt=f(fe,de,!0),x[">"]=x.gt=f(fe,pe,!0),x["≤"]=x.le=x.leq=f(fe,de,!1),x["≥"]=x.ge=x.geq=f(fe,pe,!1);var he=p(H,(function(e,t){e.init=function(){t.init.call(this,"=","=")},e.createLeftOf=function(e){if(e[h]instanceof fe&&e[h].strict)return e[h].swap(!1),void e[h].bubble("reflow");t.createLeftOf.apply(this,arguments)}}));x["="]=he,x["×"]=x.times=f(H,"\\times ","&times;","[x]"),x["÷"]=x.div=x.divide=x.divides=f(H,"\\div ","&divide;","[/]"),w["~"]=x.sim=f(H,"\\sim ","~","~"),x.notin=x.cong=x.equiv=x.oplus=x.otimes=p(H,(function(e,t){e.init=function(e){t.init.call(this,"\\"+e+" ","&"+e+";")}})),x["≠"]=x.ne=x.neq=f(H,"\\ne ","&ne;"),x["∗"]=x.ast=x.star=x.loast=x.lowast=f(H,"\\ast ","&lowast;"),x.therefor=x.therefore=f(H,"\\therefore ","&there4;"),x.cuz=x.because=f(H,"\\because ","&#8757;"),x.prop=x.propto=f(H,"\\propto ","&prop;"),x["≈"]=x.asymp=x.approx=f(H,"\\approx ","&asymp;"),x["≢"]=x.notequiv=x.nequiv=f(H,"\\not\\equiv ","&#8802;"),x.isin=x.in=f(H,"\\in ","&isin;"),x.ni=x.contains=f(H,"\\ni ","&ni;"),x.notni=x.niton=x.notcontains=x.doesnotcontain=f(H,"\\not\\ni ","&#8716;"),x.sub=x.subset=f(H,"\\subset ","&sub;"),x.sup=x.supset=x.superset=f(H,"\\supset ","&sup;"),x.nsub=x.notsub=x.nsubset=x.notsubset=f(H,"\\not\\subset ","&#8836;"),x.nsup=x.notsup=x.nsupset=x.notsupset=x.nsuperset=x.notsuperset=f(H,"\\not\\supset ","&#8837;"),x.sube=x.subeq=x.subsete=x.subseteq=f(H,"\\subseteq ","&sube;"),x.supe=x.supeq=x.supsete=x.supseteq=x.supersete=x.superseteq=f(H,"\\supseteq ","&supe;"),x.nsube=x.nsubeq=x.notsube=x.notsubeq=x.nsubsete=x.nsubseteq=x.notsubsete=x.notsubseteq=f(H,"\\not\\subseteq ","&#8840;"),x.nsupe=x.nsupeq=x.notsupe=x.notsupeq=x.nsupsete=x.nsupseteq=x.notsupsete=x.notsupseteq=x.nsupersete=x.nsuperseteq=x.notsupersete=x.notsuperseteq=f(H,"\\not\\supseteq ","&#8841;"),x.N=x.naturals=x.Naturals=f(W,"\\mathbb{N}","&#8469;"),x.P=x.primes=x.Primes=x.projective=x.Projective=x.probability=x.Probability=f(W,"\\mathbb{P}","&#8473;"),x.Z=x.integers=x.Integers=f(W,"\\mathbb{Z}","&#8484;"),x.Q=x.rationals=x.Rationals=f(W,"\\mathbb{Q}","&#8474;"),x.R=x.reals=x.Reals=f(W,"\\mathbb{R}","&#8477;"),x.C=x.complex=x.Complex=x.complexes=x.Complexes=x.complexplane=x.Complexplane=x.ComplexPlane=f(W,"\\mathbb{C}","&#8450;"),x.H=x.Hamiltonian=x.quaternions=x.Quaternions=f(W,"\\mathbb{H}","&#8461;"),x.quad=x.emsp=f(W,"\\quad "," "),x.qquad=f(W,"\\qquad "," "),x.diamond=f(W,"\\diamond ","&#9671;"),x.bigtriangleup=f(W,"\\bigtriangleup ","&#9651;"),x.ominus=f(W,"\\ominus ","&#8854;"),x.uplus=f(W,"\\uplus ","&#8846;"),x.bigtriangledown=f(W,"\\bigtriangledown ","&#9661;"),x.sqcap=f(W,"\\sqcap ","&#8851;"),x.triangleleft=f(W,"\\triangleleft ","&#8882;"),x.sqcup=f(W,"\\sqcup ","&#8852;"),x.triangleright=f(W,"\\triangleright ","&#8883;"),x.odot=x.circledot=f(W,"\\odot ","&#8857;"),x.bigcirc=f(W,"\\bigcirc ","&#9711;"),x.dagger=f(W,"\\dagger ","&#0134;"),x.ddagger=f(W,"\\ddagger ","&#135;"),x.wr=f(W,"\\wr ","&#8768;"),x.amalg=f(W,"\\amalg ","&#8720;"),x.models=f(W,"\\models ","&#8872;"),x.prec=f(W,"\\prec ","&#8826;"),x.succ=f(W,"\\succ ","&#8827;"),x.preceq=f(W,"\\preceq ","&#8828;"),x.succeq=f(W,"\\succeq ","&#8829;"),x.simeq=f(W,"\\simeq ","&#8771;"),x.mid=f(W,"\\mid ","&#8739;"),x.nmid=f(W,"\\nmid","&#8740;"),x.ll=f(W,"\\ll ","&#8810;"),x.gg=f(W,"\\gg ","&#8811;"),x.parallel=f(W,"\\parallel ","&#8741;"),x.nparallel=f(W,"\\nparallel ","&#8742;"),x.bowtie=f(W,"\\bowtie ","&#8904;"),x.sqsubset=f(W,"\\sqsubset ","&#8847;"),x.sqsupset=f(W,"\\sqsupset ","&#8848;"),x.smile=f(W,"\\smile ","&#8995;"),x.sqsubseteq=f(W,"\\sqsubseteq ","&#8849;"),x.sqsupseteq=f(W,"\\sqsupseteq ","&#8850;"),x.doteq=f(W,"\\doteq ","&#8784;"),x.frown=f(W,"\\frown ","&#8994;"),x.vdash=f(W,"\\vdash ","&#8870;"),x.dashv=f(W,"\\dashv ","&#8867;"),x.nless=f(W,"\\nless ","&#8814;"),x.ngtr=f(W,"\\ngtr ","&#8815;"),x.longleftarrow=f(W,"\\longleftarrow ","&#8592;"),x.longrightarrow=f(W,"\\longrightarrow ","&#8594;"),x.Longleftarrow=f(W,"\\Longleftarrow ","&#8656;"),x.Longrightarrow=f(W,"\\Longrightarrow ","&#8658;"),x.longleftrightarrow=f(W,"\\longleftrightarrow ","&#8596;"),x.updownarrow=f(W,"\\updownarrow ","&#8597;"),x.Longleftrightarrow=f(W,"\\Longleftrightarrow ","&#8660;"),x.Updownarrow=f(W,"\\Updownarrow ","&#8661;"),x.mapsto=f(W,"\\mapsto ","&#8614;"),x.nearrow=f(W,"\\nearrow ","&#8599;"),x.hookleftarrow=f(W,"\\hookleftarrow ","&#8617;"),x.hookrightarrow=f(W,"\\hookrightarrow ","&#8618;"),x.searrow=f(W,"\\searrow ","&#8600;"),x.leftharpoonup=f(W,"\\leftharpoonup ","&#8636;"),x.rightharpoonup=f(W,"\\rightharpoonup ","&#8640;"),x.swarrow=f(W,"\\swarrow ","&#8601;"),x.leftharpoondown=f(W,"\\leftharpoondown ","&#8637;"),x.rightharpoondown=f(W,"\\rightharpoondown ","&#8641;"),x.nwarrow=f(W,"\\nwarrow ","&#8598;"),x.ldots=f(W,"\\ldots ","&#8230;"),x.cdots=f(W,"\\cdots ","&#8943;"),x.vdots=f(W,"\\vdots ","&#8942;"),x.ddots=f(W,"\\ddots ","&#8945;"),x.surd=f(W,"\\surd ","&#8730;"),x.triangle=f(W,"\\triangle ","&#9651;"),x.ell=f(W,"\\ell ","&#8467;"),x.top=f(W,"\\top ","&#8868;"),x.flat=f(W,"\\flat ","&#9837;"),x.natural=f(W,"\\natural ","&#9838;"),x.sharp=f(W,"\\sharp ","&#9839;"),x.wp=f(W,"\\wp ","&#8472;"),x.bot=f(W,"\\bot ","&#8869;"),x.clubsuit=f(W,"\\clubsuit ","&#9827;"),x.diamondsuit=f(W,"\\diamondsuit ","&#9826;"),x.heartsuit=f(W,"\\heartsuit ","&#9825;"),x.spadesuit=f(W,"\\spadesuit ","&#9824;"),x.parallelogram=f(W,"\\parallelogram ","&#9649;"),x.square=f(W,"\\square ","&#11036;"),x.oint=f(W,"\\oint ","&#8750;"),x.bigcap=f(W,"\\bigcap ","&#8745;"),x.bigcup=f(W,"\\bigcup ","&#8746;"),x.bigsqcup=f(W,"\\bigsqcup ","&#8852;"),x.bigvee=f(W,"\\bigvee ","&#8744;"),x.bigwedge=f(W,"\\bigwedge ","&#8743;"),x.bigodot=f(W,"\\bigodot ","&#8857;"),x.bigotimes=f(W,"\\bigotimes ","&#8855;"),x.bigoplus=f(W,"\\bigoplus ","&#8853;"),x.biguplus=f(W,"\\biguplus ","&#8846;"),x.lfloor=f(W,"\\lfloor ","&#8970;"),x.rfloor=f(W,"\\rfloor ","&#8971;"),x.lceil=f(W,"\\lceil ","&#8968;"),x.rceil=f(W,"\\rceil ","&#8969;"),x.opencurlybrace=x.lbrace=f(W,"\\lbrace ","{"),x.closecurlybrace=x.rbrace=f(W,"\\rbrace ","}"),x.lbrack=f(W,"["),x.rbrack=f(W,"]"),x.slash=f(W,"/"),x.vert=f(W,"|"),x.perp=x.perpendicular=f(W,"\\perp ","&perp;"),x.nabla=x.del=f(W,"\\nabla ","&nabla;"),x.hbar=f(W,"\\hbar ","&#8463;"),x.AA=x.Angstrom=x.angstrom=f(W,"\\text\\AA ","&#8491;"),x.ring=x.circ=x.circle=f(W,"\\circ ","&#8728;"),x.bull=x.bullet=f(W,"\\bullet ","&bull;"),x.setminus=x.smallsetminus=f(W,"\\setminus ","&#8726;"),x["¬"]=x.neg=f(W,"\\neg ","&not;"),x.not=p(W,(function(e,t){e.suffixes={"\\equiv":"notequiv","\\ni":"notni","\\subset":"notsubset","\\subseteq":"notsubseteq","\\supset":"notsupset","\\supseteq":"notsupseteq"},e.init=function(){return t.init.call(this,"\\neg ","&not;")},e.parser=function(){var t=U.succeed,n=U.optWhitespace;return function e(t){var n=U.string(t.shift());return t.length?n.or(e(t)):n}(Object.keys(e.suffixes).sort((function(e,t){return t.length-e.length}))).then((function(r){return n.then(t(x[e.suffixes[r]]()))})).or(n.then(t(this)))}})),x["…"]=x.dots=x.ellip=x.hellip=x.ellipsis=x.hellipsis=f(W,"\\dots ","&hellip;"),x.converges=x.darr=x.dnarr=x.dnarrow=x.downarrow=f(W,"\\downarrow ","&darr;"),x.dArr=x.dnArr=x.dnArrow=x.Downarrow=f(W,"\\Downarrow ","&dArr;"),x.diverges=x.uarr=x.uparrow=f(W,"\\uparrow ","&uarr;"),x.uArr=x.Uparrow=f(W,"\\Uparrow ","&uArr;"),x.to=f(H,"\\to ","&rarr;"),x.rarr=x.rightarrow=f(W,"\\rightarrow ","&rarr;"),x.implies=f(H,"\\Rightarrow ","&rArr;"),x.rArr=x.Rightarrow=f(W,"\\Rightarrow ","&rArr;"),x.gets=f(H,"\\gets ","&larr;"),x.larr=x.leftarrow=f(W,"\\leftarrow ","&larr;"),x.impliedby=f(H,"\\Leftarrow ","&lArr;"),x.lArr=x.Leftarrow=f(W,"\\Leftarrow ","&lArr;"),x.harr=x.lrarr=x.leftrightarrow=f(W,"\\leftrightarrow ","&harr;"),x.iff=f(H,"\\Leftrightarrow ","&hArr;"),x.hArr=x.lrArr=x.Leftrightarrow=f(W,"\\Leftrightarrow ","&hArr;"),x.Re=x.Real=x.real=f(W,"\\Re ","&real;"),x.Im=x.imag=x.image=x.imagin=x.imaginary=x.Imaginary=f(W,"\\Im ","&image;"),x.part=x.partial=f(W,"\\partial ","&part;"),x.infty=x.infin=x.infinity=f(W,"\\infty ","&infin;"),x.alef=x.alefsym=x.aleph=x.alephsym=f(W,"\\aleph ","&alefsym;"),x.xist=x.xists=x.exist=x.exists=f(W,"\\exists ","&exist;"),x.nexists=x.nexist=f(W,"\\nexists ","&#8708;"),x.and=x.land=x.wedge=f(H,"\\wedge ","&and;"),x.or=x.lor=x.vee=f(H,"\\vee ","&or;"),x.o=x.O=x.empty=x.emptyset=x.oslash=x.Oslash=x.nothing=x.varnothing=f(H,"\\varnothing ","&empty;"),x.cup=x.union=f(H,"\\cup ","&cup;"),x.cap=x.intersect=x.intersection=f(H,"\\cap ","&cap;"),x.deg=x.degree=f(W,"\\degree ","&deg;"),x.ang=x.angle=f(W,"\\angle ","&ang;"),x.measuredangle=f(W,"\\measuredangle ","&#8737;"),x.sphericalangle=f(W,"\\sphericalangle ","&#8738;");var ge,me,ye=o,ve=document.createElement("div").style;for(var be in{transform:1,WebkitTransform:1,MozTransform:1,OTransform:1,msTransform:1})if(be in ve){me=be;break}me?ge=function(e,t,n){e.css(me,"scale("+t+","+n+")")}:"filter"in ve?(ye=function(e){e.className=e.className},ge=function(e,t,n){t/=1+(n-1)/2,e.css("fontSize",n+"em"),e.hasClass("mq-matrixed-container")||e.addClass("mq-matrixed-container").wrapInner('<span class="mq-matrixed"></span>');var r=e.children().css("filter","progid:DXImageTransform.Microsoft.Matrix(M11="+t+",SizingMethod='auto expand')");function i(){e.css("marginRight",(r.width()-1)*(t-1)/t+"px")}i();var a=setInterval(i);m(window).load((function(){clearTimeout(a),i()}))}):ge=function(e,t,n){e.css("fontSize",n+"em")};var Ie=p(B,(function(e,t){e.init=function(e,n,r){t.init.call(this,e,"<"+n+" "+r+">&0</"+n+">")}})),xe=p(te,(function(e,t){e.symbols={C:"&#8450;",H:"&#8461;",N:"&#8469;",P:"&#8473;",Q:"&#8474;",R:"&#8477;",Z:"&#8484;"},e.init=function(e){var n=e;this.symbols[e]&&(n='<span class="mq-original">'+e+"</span>"+this.symbols[e]),t.init.call(this,e,n)}}));x.mathrm=f(Ie,"\\mathrm","span",'class="mq-roman mq-font"'),x.mathit=f(Ie,"\\mathit","i",'class="mq-font"'),x.mathbf=f(Ie,"\\mathbf","b",'class="mq-font"'),x.mathsf=f(Ie,"\\mathsf","span",'class="mq-sans-serif mq-font"'),x.mathtt=f(Ie,"\\mathtt","span",'class="mq-monospace mq-font"'),x.mathbb=p(B,(function(e,t){e.init=function(){t.init.call(this,"\\mathbb",'<span class="mq-mathbb mq-font">&0</span>')},e.adopt=function(){return this.eachChild((function(e){if(!e.writeOverride){var t=e.write,n=e.deleteOutOf;e.write=e.writeOverride=function(n,r,i){var a;if(!xe.prototype.symbols[r])return t.apply(e,arguments);a=xe(r),i&&a.replaces(i),a.createLeftOf(n)},e.deleteOutOf=function(t,r){var i=[];return e.eachChild((function(t){var n=t.ctrlSeq;i.push(te(n).adopt(e,e.ends[1],0)),t.remove()})),i.length&&(r[1]=i[0]),e.jQize().appendTo(e.jQ),n.apply(e,arguments)}}})),t.adopt.apply(this,arguments)},e.finalizeTree=function(){this.eachChild((function(e){e.eachChild((function(t){var n=t.ctrlSeq,r=te;xe.prototype.symbols[n]&&(r=xe),r(n).adopt(e,e.ends[1],0),t.remove()})),e.jQize().appendTo(e.jQ)}))}})),x.underline=f(Ie,"\\underline","span",'class="mq-non-leaf mq-underline"'),x.overline=x.bar=f(Ie,"\\overline","span",'class="mq-non-leaf mq-overline"');var we=p(B,(function(e,t){e.init=function(e,n){t.init.call(this,e,"<span "+n+'><span class="mq-arrow-inner">&0</span></span>')}}));x.overrightarrow=f(we,"\\overrightarrow",'class="mq-non-leaf mq-overarrow mq-arrow-right"'),x.overleftarrow=f(we,"\\overleftarrow",'class="mq-non-leaf mq-overarrow mq-arrow-left"'),x.overleftrightarrow=f(we,"\\overleftrightarrow",'class="mq-non-leaf mq-overarrow mq-arrow-leftright"'),x.underrightarrow=f(we,"\\underrightarrow",'class="mq-non-leaf mq-underarrow mq-arrow-right"'),x.underleftarrow=f(we,"\\underleftarrow",'class="mq-non-leaf mq-underarrow mq-arrow-left"'),x.underleftrightarrow=f(we,"\\underleftrightarrow",'class="mq-non-leaf mq-underarrow mq-arrow-leftright"');var Te=p(B,(function(e,t){e.ctrlSeq="\\xrightleftharpoons",e.htmlTemplate='<span class="mq-harpoons mq-harpoons-rightleft mq-non-leaf"><span class="mq-harpoons-numerator">&0</span><span class="mq-harpoons-harpoons">&#x21cc;</span></span>'})),Me=x.xrightleftharpoons=p(Te,(function(e,t){e.ctrlSeq="\\xrightleftharpoons",e.htmlTemplate='<span class="mq-harpoons mq-harpoons-rightleft mq-non-leaf"><span class="mq-harpoons-numerator">&1</span><span class="mq-harpoons-harpoons">&#x21cc;</span><span class="mq-harpoons-denominator">&0</span></span>',e.parser=function(){return F.optBlock.then((function(e){return F.block.map((function(t){var n=Me();return n.blocks=[e,t],e.adopt(n,0,0),t.adopt(n,e,0),n}))})).or(F.block.map((function(e){var t=Te();return t.blocks=[e],e.adopt(t,0,0),t})))},e.latex=function(){return this.ctrlSeq+"["+this.ends[h].latex()+"]{"+this.ends[1].latex()+"}"}}));x.overarc=f(Ie,"\\overarc","span",'class="mq-non-leaf mq-overarc"'),x.dot=p(B,(function(e,t){e.init=function(){t.init.call(this,"\\dot",'<span class="mq-non-leaf"><span class="mq-dot-recurring-inner"><span class="mq-dot-recurring">&#x2d9;</span><span class="mq-empty-box">&0</span></span></span>')}}));x.textcolor=p(B,(function(e,t){e.setColor=function(e){this.color=e,this.htmlTemplate='<span class="mq-textcolor" style="color:'+e+'">&0</span>'},e.latex=function(){return"\\textcolor{"+this.color+"}{"+this.blocks[0].latex()+"}"},e.parser=function(){var e=this,n=U.optWhitespace,r=U.string,i=U.regex;return n.then(r("{")).then(i(/^[#\w\s.,()%-]*/)).skip(r("}")).then((function(n){return e.setColor(n),t.parser.call(e)}))},e.isStyleBlock=function(){return!0}})),x.class=p(B,(function(e,t){e.parser=function(){var e=this,n=U.string,r=U.regex;return U.optWhitespace.then(n("{")).then(r(/^[-\w\s\\\xA0-\xFF]*/)).skip(n("}")).then((function(n){return e.cls=n||"",e.htmlTemplate='<span class="mq-class '+n+'">&0</span>',t.parser.call(e)}))},e.latex=function(){return"\\class{"+this.cls+"}{"+this.blocks[0].latex()+"}"},e.isStyleBlock=function(){return!0}}));var Ae=p(B,(function(e,t){e.ctrlSeq="_{...}^{...}",e.createLeftOf=function(e){if(this.replacedFragment||e[h]||!e.options.supSubsRequireOperand)return t.createLeftOf.apply(this,arguments)},e.contactWeld=function(e){for(var t=h;t;t=t===h&&1)if(this[t]instanceof Ae){for(var n="sub";n;n="sub"===n&&"sup"){var r=this[n],i=this[t][n];if(r){if(i)if(r.isEmpty())o=y(i,0,i.ends[h]);else{r.jQ.children().insAtDirEnd(-t,i.jQ);var a=r.children().disown(),o=y(i,a.ends[1],i.ends[h]);t===h?a.adopt(i,i.ends[1],0):a.adopt(i,0,i.ends[h])}else this[t].addBlock(r.disown());this.placeCursor=function(e,n){return function(r){r.insAtDirEnd(-t,e||n)}}(i,r)}}this.remove(),e&&e[h]===this&&(1===t&&o?o[h]?e.insRightOf(o[h]):e.insAtLeftEnd(o.parent):e.insRightOf(this[t]));break}},E.p.charsThatBreakOutOfSupSub="",e.finalizeTree=function(){this.ends[h].write=function(e,t){if(e.options.autoSubscriptNumerals&&this===this.parent.sub){if("_"===t)return;var n=this.chToCmd(t,e.options);return n instanceof Y?e.deleteSelection():e.clearSelection().insRightOf(this.parent),n.createLeftOf(e.show())}e[h]&&!e[1]&&!e.selection&&e.options.charsThatBreakOutOfSupSub.indexOf(t)>-1&&e.insRightOf(this.parent),V.p.write.apply(this,arguments)}},e.moveTowards=function(e,n,r){n.options.autoSubscriptNumerals&&!this.sup?n.insDirOf(e,this):t.moveTowards.apply(this,arguments)},e.deleteTowards=function(e,n){if(n.options.autoSubscriptNumerals&&this.sub){var r=this.sub.ends[-e];r instanceof Y?r.remove():r&&r.deleteTowards(e,n.insAtDirEnd(-e,this.sub)),this.sub.isEmpty()&&(this.sub.deleteOutOf(h,n.insAtLeftEnd(this.sub)),this.sup&&n.insDirOf(-e,this))}else t.deleteTowards.apply(this,arguments)},e.latex=function(){function e(e,t){var n=t&&t.latex();return t?e+(1===n.length?n:"{"+(n||" ")+"}"):""}return e("_",this.sub)+e("^",this.sup)},e.addBlock=function(e){"sub"===this.supsub?(this.sup=this.upInto=this.sub.upOutOf=e,e.adopt(this,this.sub,0).downOutOf=this.sub,e.jQ=m('<span class="mq-sup"/>').append(e.jQ.children()).attr(r,e.id).prependTo(this.jQ)):(this.sub=this.downInto=this.sup.downOutOf=e,e.adopt(this,0,this.sup).upOutOf=this.sup,e.jQ=m('<span class="mq-sub"></span>').append(e.jQ.children()).attr(r,e.id).appendTo(this.jQ.removeClass("mq-sup-only")),this.jQ.append('<span style="display:inline-block;width:0">&#8203;</span>'));for(var t=0;t<2;t+=1)!function(e,t,n,r){e[t].deleteOutOf=function(i,a){if(a.insDirOf(this[i]?-i:i,this.parent),!this.isEmpty()){var o=this.ends[i];this.children().disown().withDirAdopt(i,a.parent,a[i],a[-i]).jQ.insDirOf(-i,a.jQ),a[-i]=o}e.supsub=n,delete e[t],delete e[r+"Into"],e[n][r+"OutOf"]=Ce,delete e[n].deleteOutOf,"sub"===t&&m(e.jQ.addClass("mq-sup-only")[0].lastChild).remove(),this.remove()}}(this,"sub sup".split(" ")[t],"sup sub".split(" ")[t],"down up".split(" ")[t])}}));function Ce(e){var t=this.parent,n=e;do{if(n[1])return e.insLeftOf(t);n=n.parent.parent}while(n!==t);e.insRightOf(t)}x.subscript=x._=p(Ae,(function(e,t){e.supsub="sub",e.htmlTemplate='<span class="mq-supsub mq-non-leaf"><span class="mq-sub">&0</span><span style="display:inline-block;width:0">&#8203;</span></span>',e.textTemplate=["_"],e.finalizeTree=function(){this.downInto=this.sub=this.ends[h],this.sub.upOutOf=Ce,t.finalizeTree.call(this)}})),x.superscript=x.supscript=x["^"]=p(Ae,(function(e,t){e.supsub="sup",e.htmlTemplate='<span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup">&0</span></span>',e.textTemplate=["^"],e.finalizeTree=function(){this.upInto=this.sup=this.ends[1],this.sup.downOutOf=Ce,t.finalizeTree.call(this)}}));var Ee=p(B,(function(e,t){e.init=function(e,t){var n='<span class="mq-large-operator mq-non-leaf"><span class="mq-to"><span>&1</span></span><big>'+t+'</big><span class="mq-from"><span>&0</span></span></span>';Y.prototype.init.call(this,e,n)},e.createLeftOf=function(e){t.createLeftOf.apply(this,arguments),e.options.sumStartsWithNEquals&&(ne("n").createLeftOf(e),he().createLeftOf(e))},e.latex=function(){function e(e){return 1===e.length?e:"{"+(e||" ")+"}"}return this.ctrlSeq+"_"+e(this.ends[h].latex())+"^"+e(this.ends[1].latex())},e.parser=function(){for(var e=U.string,t=U.optWhitespace,n=U.succeed,r=F.block,i=this,a=i.blocks=[V(),V()],o=0;o<a.length;o+=1)a[o].adopt(i,i.ends[1],0);return t.then(e("_").or(e("^"))).then((function(e){var t=a["_"===e?0:1];return r.then((function(e){return e.children().adopt(t,t.ends[1],0),n(i)}))})).many().result(i)},e.finalizeTree=function(){this.downInto=this.ends[h],this.upInto=this.ends[1],this.ends[h].upOutOf=this.ends[1],this.ends[1].downOutOf=this.ends[h]}}));x["∑"]=x.sum=x.summation=f(Ee,"\\sum ","&sum;"),x["∏"]=x.prod=x.product=f(Ee,"\\prod ","&prod;"),x.coprod=x.coproduct=f(Ee,"\\coprod ","&#8720;"),x["∫"]=x.int=x.integral=p(Ee,(function(e,t){e.init=function(){Y.prototype.init.call(this,"\\int ",'<span class="mq-int mq-non-leaf"><big>&int;</big><span class="mq-supsub mq-non-leaf"><span class="mq-sup"><span class="mq-sup-inner">&1</span></span><span class="mq-sub">&0</span><span style="display:inline-block;width:0">&#8203</span></span></span>')},e.createLeftOf=B.p.createLeftOf})),x.bigg=x.intsub=x.integralsubstitution=p(Ee,(function(e,t){e.init=function(){Y.prototype.init.call(this,"\\bigg",'<span class="mq-intsub mq-non-leaf"><big>/</big><span class="mq-supsub mq-non-leaf"><span class="mq-sup"><span class="mq-sup-inner">&1</span></span><span class="mq-sub">&0</span><span style="display:inline-block;width:0">&#8203</span></span></span>')},e.createLeftOf=B.p.createLeftOf,e.parser=function(){var e=this,t=U.string,n=U.optWhitespace,r=U.succeed;e.blocks=[V(),V()];for(var i=0;i<e.blocks.length;i+=1)e.blocks[i].adopt(e,e.ends[1],0);return t("/_{").then(t("\\!").many()).then(F).then((function(t){return t.children().adopt(e.blocks[0],e.blocks[0].ends[1],0),r(e)})).then(n).then(t("}")).then(n).then(t("^")).then(F.block).then((function(t){return t.children().adopt(e.blocks[1],e.blocks[1].ends[1],0),r(e)}))},e.latex=function(){function e(e){return 1===e.length?e:"{"+(e||" ")+"}"}return"\\bigg/_{\\!\\!\\!\\!\\!"+e(this.blocks[0].latex())+"}^"+e(this.blocks[1].latex())}}));var Ne=x.frac=x.dfrac=x.cfrac=x.fraction=p(B,(function(e,t){e.ctrlSeq="\\frac",e.htmlTemplate='<span class="mq-fraction mq-non-leaf"><span class="mq-numerator">&0</span><span class="mq-denominator">&1</span><span style="display:inline-block;width:0">&#8203;</span></span>',e.textTemplate=["(",")/(",")"],e.finalizeTree=function(){this.upInto=this.ends[1].upOutOf=this.ends[h],this.downInto=this.ends[h].downOutOf=this.ends[1]}})),Se=x.over=w["/"]=p(Ne,(function(e,t){e.createLeftOf=function(e){if(!this.replacedFragment){for(var n=e[h];n&&!(n instanceof H||n instanceof(x.text||o)||n instanceof Ee||"\\ "===n.ctrlSeq||/^[,;:]$/.test(n.ctrlSeq));)n=n[h];n instanceof Ee&&n[1]instanceof Ae&&(n=n[1])[1]instanceof Ae&&n[1].ctrlSeq!=n.ctrlSeq&&(n=n[1]),n!==e[h]&&(this.replaces(I(n[1]||e.parent.ends[h],e[h])),e[h]=n)}t.createLeftOf.call(this,e)}})),ke=x.sqrt=x["√"]=p(B,(function(e,t){e.ctrlSeq="\\sqrt",e.htmlTemplate='<span class="mq-non-leaf"><span class="mq-scaled mq-sqrt-prefix">&radic;</span><span class="mq-non-leaf mq-sqrt-stem">&0</span></span>',e.textTemplate=["sqrt(",")"],e.parser=function(){return F.optBlock.then((function(e){return F.block.map((function(t){var n=je();return n.blocks=[e,t],e.adopt(n,0,0),t.adopt(n,e,0),n}))})).or(t.parser.call(this))},e.reflow=function(){var e=this.ends[1].jQ;ge(e.prev(),1,e.innerHeight()/+e.css("fontSize").slice(0,-2)-.1)}})),je=(x.hat=p(B,(function(e,t){e.ctrlSeq="\\hat",e.htmlTemplate='<span class="mq-non-leaf"><span class="mq-hat-prefix">^</span><span class="mq-hat-stem">&0</span></span>',e.textTemplate=["hat(",")"]})),x.nthroot=p(ke,(function(e,t){e.htmlTemplate='<span class="mq-nthroot mq-non-leaf">&0</span><span class="mq-scaled"><span class="mq-sqrt-prefix mq-scaled">&radic;</span><span class="mq-sqrt-stem mq-non-leaf">&1</span></span>',e.textTemplate=["sqrt[","](",")"],e.latex=function(){return"\\sqrt["+this.ends[h].latex()+"]{"+this.ends[1].latex()+"}"}}))),De=p(B,(function(e,t){e.init=function(e,n,r){var i='<span class="mq-non-leaf"><span class="mq-diacritic-above">'+n+'</span><span class="mq-diacritic-stem">&0</span></span>';t.init.call(this,e,i,r)}}));function Oe(e,t){e.jQadd=function(){t.jQadd.apply(this,arguments),this.delimjQs=this.jQ.children(":first").add(this.jQ.children(":last")),this.contentjQ=this.jQ.children(":eq(1)")},e.reflow=function(){var e=this.contentjQ.outerHeight()/parseFloat(this.contentjQ.css("fontSize"));ge(this.delimjQs,i(1+.2*(e-1),1.2),1.2*e)}}x.vec=f(De,"\\vec","&rarr;",["vec(",")"]),x.tilde=f(De,"\\tilde","~",["tilde(",")"]);var Le=p(p(B,Oe),(function(e,t){e.init=function(e,n,r,i,a){t.init.call(this,"\\left"+i,void 0,[n,r]),this.side=e,this.sides={},this.sides[h]={ch:n,ctrlSeq:i},this.sides[1]={ch:r,ctrlSeq:a}},e.numBlocks=function(){return 1},e.html=function(){return this.htmlTemplate='<span class="mq-non-leaf"><span class="mq-scaled mq-paren'+(1===this.side?" mq-ghost":"")+'">'+this.sides[h].ch+'</span><span class="mq-non-leaf">&0</span><span class="mq-scaled mq-paren'+(this.side===h?" mq-ghost":"")+'">'+this.sides[1].ch+"</span></span>",t.html.call(this)},e.latex=function(){return"\\left"+this.sides[h].ctrlSeq+this.ends[h].latex()+"\\right"+this.sides[1].ctrlSeq},e.matchBrack=function(e,t,n){return n instanceof Le&&n.side&&n.side!==-t&&(!e.restrictMismatchedBrackets||Pe[this.sides[this.side].ch]===n.sides[n.side].ch||{"(":"]","[":")"}[this.sides[h].ch]===n.sides[1].ch)&&n},e.closeOpposing=function(e){e.side=0,e.sides[this.side]=this.sides[this.side],e.delimjQs.eq(this.side===h?0:1).removeClass("mq-ghost").html(this.sides[this.side].ch)},e.createLeftOf=function(e){if(!this.replacedFragment){var n=e.options;if("|"===this.sides[h].ch)var r=this.matchBrack(n,1,e[1])||this.matchBrack(n,h,e[h])||this.matchBrack(n,0,e.parent.parent);else r=this.matchBrack(n,-this.side,e[-this.side])||this.matchBrack(n,-this.side,e.parent.parent)}if(r){var i=this.side=-r.side;this.closeOpposing(r),r===e.parent.parent&&e[i]&&I(e[i],e.parent.ends[i],-i).disown().withDirAdopt(-i,r.parent,r,r[i]).jQ.insDirOf(i,r.jQ),r.bubble("reflow")}else i=(r=this).side,r.replacedFragment?r.side=0:e[-i]&&(r.replaces(I(e[-i],e.parent.ends[-i],i)),e[-i]=0),t.createLeftOf.call(r,e);i===h?e.insAtLeftEnd(r.ends[h]):e.insRightOf(r)},e.placeCursor=o,e.unwrap=function(){this.ends[h].children().disown().adopt(this.parent,this,this[1]).jQ.insertAfter(this.jQ),this.remove()},e.deleteSide=function(e,t,n){var r=this.parent,i=this[e],a=r.ends[e];if(e===this.side)return this.unwrap(),void(i?n.insDirOf(-e,i):n.insAtDirEnd(e,r));var o=n.options,s=!this.side;if(this.side=-e,this.matchBrack(o,e,this.ends[h].ends[this.side])){this.closeOpposing(this.ends[h].ends[this.side]);var l=this.ends[h].ends[e];this.unwrap(),l.siblingCreated&&l.siblingCreated(n.options,e),i?n.insDirOf(-e,i):n.insAtDirEnd(e,r)}else{if(this.matchBrack(o,e,this.parent.parent))this.parent.parent.closeOpposing(this),this.parent.parent.unwrap();else{if(t&&s)return this.unwrap(),void(i?n.insDirOf(-e,i):n.insAtDirEnd(e,r));this.sides[e]={ch:Pe[this.sides[this.side].ch],ctrlSeq:Pe[this.sides[this.side].ctrlSeq]},this.delimjQs.removeClass("mq-ghost").eq(e===h?0:1).addClass("mq-ghost").html(this.sides[e].ch)}if(i){l=this.ends[h].ends[e];I(i,a,-e).disown().withDirAdopt(-e,this.ends[h],l,0).jQ.insAtDirEnd(e,this.ends[h].jQ.removeClass("mq-empty")),l.siblingCreated&&l.siblingCreated(n.options,e),n.insDirOf(-e,i)}else t?n.insDirOf(e,this):n.insAtDirEnd(e,this.ends[h])}},e.deleteTowards=function(e,t){this.deleteSide(-e,!1,t)},e.finalizeTree=function(){this.ends[h].deleteOutOf=function(e,t){this.parent.deleteSide(e,!0,t)},this.finalizeTree=this.intentionalBlur=function(){this.delimjQs.eq(this.side===h?1:0).removeClass("mq-ghost"),this.side=0}},e.siblingCreated=function(e,t){t===-this.side&&this.finalizeTree()}})),Pe={"(":")",")":"(","[":"]","]":"[","{":"}","}":"{","\\{":"\\}","\\}":"\\{","&lang;":"&rang;","&rang;":"&lang;","\\langle ":"\\rangle ","\\rangle ":"\\langle ","|":"|","\\lVert ":"\\rVert ","\\rVert ":"\\lVert "};function Re(e,t){t=t||e;var n=Pe[e],r=Pe[t];w[e]=f(Le,h,e,n,t,r),w[n]=f(Le,1,e,n,t,r)}Re("("),Re("["),Re("{","\\{"),x.langle=f(Le,h,"&lang;","&rang;","\\langle ","\\rangle "),x.rangle=f(Le,1,"&lang;","&rang;","\\langle ","\\rangle "),w["|"]=f(Le,h,"|","|","|","|"),x.lVert=f(Le,h,"&#8741;","&#8741;","\\lVert ","\\rVert "),x.rVert=f(Le,1,"&#8741;","&#8741;","\\lVert ","\\rVert "),x.left=p(B,(function(e){e.parser=function(){var e=U.regex,t=U.string,n=(U.succeed,U.optWhitespace);return n.then(e(/^(?:[([|]|\\\{|\\langle\b|\\lVert\b)/)).then((function(r){var i="\\"===r.charAt(0)?r.slice(1):r;return"\\langle"==r&&(i="&lang;",r+=" "),"\\lVert"==r&&(i="&#8741;",r+=" "),F.then((function(a){return t("\\right").skip(n).then(e(/^(?:[\])|]|\\\}|\\rangle\b|\\rVert\b)/)).map((function(e){var t="\\"===e.charAt(0)?e.slice(1):e;"\\rangle"==e&&(t="&rang;",e+=" "),"\\rVert"==e&&(t="&#8741;",e+=" ");var n=Le(0,i,t,r,e);return n.blocks=[a],a.adopt(n,0,0),n}))}))}))}})),x.right=p(B,(function(e){e.parser=function(){return U.fail("unmatched \\right")}}));var ze=x.binom=x.binomial=p(p(B,Oe),(function(e,t){e.ctrlSeq="\\binom",e.htmlTemplate='<span class="mq-non-leaf"><span class="mq-paren mq-scaled">(</span><span class="mq-non-leaf"><span class="mq-array mq-non-leaf"><span>&0</span><span>&1</span></span></span><span class="mq-paren mq-scaled">)</span></span>',e.textTemplate=["choose(",",",")"]}));x.choose=p(ze,(function(e){e.createLeftOf=Se.prototype.createLeftOf}));x.editable=x.MathQuillMathField=p(B,(function(e,t){e.ctrlSeq="\\MathQuillMathField",e.htmlTemplate='<span class="mq-editable-field"><span class="mq-root-block">&0</span></span>',e.parser=function(){var e=this,n=U.string,r=U.regex,i=U.succeed;return n("[").then(r(/^[a-z][a-z0-9]*/i)).skip(n("]")).map((function(t){e.name=t})).or(i()).then(t.parser.call(e))},e.finalizeTree=function(e){var t=A(this.ends[h],this.jQ,e);t.KIND_OF_MQ="MathField",t.editable=!0,t.createTextarea(),t.editablesTextareaEvents(),t.cursor.insAtRightEnd(t.root),z(t.root)},e.registerInnerField=function(e,t){e.push(e[this.name]=t(this.ends[h].controller))},e.latex=function(){return this.ends[h].latex()},e.text=function(){return this.ends[h].text()}}));var _e=x.embed=p(Y,(function(e,t){e.setOptions=function(e){function t(){return""}return this.text=e.text||t,this.htmlTemplate=e.htmlString||"",this.latex=e.latex||t,this},e.parser=function(){var e=this,t=U.string,n=U.regex,r=U.succeed;return t("{").then(n(/^[a-z][a-z0-9]*/i)).skip(t("}")).then((function(i){return t("[").then(n(/^[-\w\s]*/)).skip(t("]")).or(r()).map((function(t){return e.setOptions(k[i](t))}))}))}})),Ue={};x.begin=p(B,(function(e,t){e.parser=function(){var e=U.string,t=U.regex;return e("{").then(t(/^[a-z]+/i)).skip(e("}")).then((function(t){return(Ue[t]?Ue[t]().parser():U.fail("unknown environment type: "+t)).skip(e("\\end{"+t+"}"))}))}}));var Ze=p(B,(function(e,t){e.template=[["\\begin{","}"],["\\end{","}"]],e.wrappers=function(){return[e.template[0].join(this.environment),e.template[1].join(this.environment)]}})),Fe=Ue.matrix=p(Ze,(function(e,t){var n="&",a="\\\\";e.parentheses={left:null,right:null},e.environment="matrix",e.reflow=function(){var e=this.jQ.children("table"),t=e.outerHeight()/+e.css("fontSize").slice(0,-2),n=this.jQ.children(".mq-paren");n.length&&ge(n,i(1+.2*(t-1),1.2),1.05*t)},e.latex=function(){var e,t=this.hline,r="";this.eachChild((function(i){void 0!==e&&(e!==i.row?(r+=a+"\n",t&&(r+="\\hline\n",t=!1)):r+=n),e=i.row,r+=i.latex()}));var i=this.options?"{"+this.options+"}":"";return this.wrappers().join(i+"\n"+r+"\n")},e.html=function(){var e,n=[],r="",i=0;function a(e){return e?'<span class="mq-scaled mq-paren">'+e+"</span>":""}return this.eachChild((function(t){e!==t.row&&(e=t.row,r+="<tr>$tds</tr>",n[e]=[]),n[e].push("<td>&"+i+++"</td>")})),this.htmlTemplate='<span class="mq-matrix mq-matrix-'+this.environment+' mq-non-leaf">'+a(this.parentheses.left)+'<table class="mq-non-leaf">'+r.replace(/\$tds/g,(function(){return n.shift().join("")}))+"</table>"+a(this.parentheses.right)+"</span>",t.html.call(this)},e.createBlocks=function(){this.blocks=[Ge(0,this),Ge(0,this),Ge(1,this),Ge(1,this)]},e.parser=function(){var e=this,t=U.optWhitespace,r=U.string;return(0,U.regex)(/^({[clr](\|?[clr])*})?/).then((function(t){return t&&!e.options&&(e.options=t.slice(1,-1)),U.succeed(e)})).then(t.then(r(n).or(r(a)).or(r("\\hline")).or(F.block)).many()).skip(t).then((function(t){var n=[],r=0;function i(){e.blocks.push(Ge(r,e,n)),n=[]}e.blocks=[];for(var o=0;o<t.length;o+=1)t[o]instanceof V?n.push(t[o]):"\\hline"===t[o]?e.hline=!0:(i(),t[o]===a&&(r+=1));return i(),e.autocorrect(),U.succeed(e)}))},e.finalizeTree=function(){var e=this.jQ.find("table");e.toggleClass("mq-rows-1",1===e.find("tr").length),this.relink()},e.relink=function(){for(var e,t,n,r=this.blocks,i=[],a=0;a<r.length;a+=1)e!==(n=r[a]).row&&(i[e=n.row]=[],t=0),i[e][t]=n,n[1]=r[a+1],n[h]=r[a-1],i[e-1]&&i[e-1][t]&&(n.upOutOf=i[e-1][t],i[e-1][t].downOutOf=n),t+=1;this.ends[h]=r[0],this.ends[1]=r[r.length-1]},e.autocorrect=function(e){var t,n,r,i,a,o=[],s=(e=[],this.blocks);for(a=0;a<s.length;a+=1)e[i=s[a].row]=e[i]||[],e[i].push(s[a]),o[i]=e[i].length;if((t=Math.max.apply(null,o))!==Math.min.apply(null,o)){for(a=0;a<e.length;a+=1)for(n=t-e[a].length;n;)r=t*a+e[a].length,s.splice(r,0,Ge(a,this)),n-=1;this.relink()}},e.deleteCell=function(e){var t,n,r=[],i=[],a=[],o=[],s=this.blocks;function l(e){for(var t=[],n=0;n<e.length;n+=1)e[n].isEmpty()&&t.push(e[n]);return t.length===e.length}function c(e){for(var t=0;t<e.length;t+=1)s.indexOf(e[t])>-1&&(e[t].remove(),s.splice(s.indexOf(e[t]),1))}this.eachChild((function(s){t!==s.row&&(t=s.row,r[t]=[],n=0),i[n]=i[n]||[],i[n].push(s),r[t].push(s),s===e&&(a=r[t],o=i[n]),n+=1})),l(a)&&o.length>1&&(t=r.indexOf(a),this.eachChild((function(e){e.row>t&&(e.row-=1)})),c(a),this.jQ.find("tr").eq(t).remove()),l(o)&&a.length>1&&c(o),this.finalizeTree()},e.addRow=function(e){var t,n=[],i=[],a=[],o=m("<tr></tr>"),s=e.row,l=0;this.eachChild((function(e){e.row<=s&&n.push(e),e.row===s&&(l+=1),e.row>s&&(e.row+=1,a.push(e))}));for(var c=0;c<l;c+=1)(t=Ge(s+1)).parent=this,i.push(t),t.jQ=m('<td class="mq-empty">').attr(r,t.id).appendTo(o);return this.jQ.find("tr").eq(s).after(o),this.blocks=n.concat(i,a),i[0]},e.addColumn=function(e){var t,n,i=[],a=[];this.eachChild((function(n){i[n.row]=i[n.row]||[],i[n.row].push(n),n===e&&(t=i[n.row].length)}));for(var o=0;o<i.length;o+=1)(n=Ge(o)).parent=this,a.push(n),i[o].splice(t,0,n),n.jQ=m('<td class="mq-empty">').attr(r,n.id);return this.jQ.find("tr").each((function(e){m(this).find("td").eq(t-1).after(i[e][t].jQ)})),this.blocks=[].concat.apply([],i),a[e.row]},e.insert=function(e,t){var n=this[e](t);this.cursor=this.cursor||this.parent.cursor,this.finalizeTree(),this.bubble("reflow").cursor.insAtRightEnd(n)},e.backspace=function(e,t,n,r){var i=e[t];if(e.isEmpty()){for(this.deleteCell(e);i&&i[t]&&-1===this.blocks.indexOf(i);)i=i[t];i&&n.insAtDirEnd(-t,i),1===this.blocks.length&&this.blocks[0].isEmpty()&&(r(),this.finalizeTree()),this.bubble("edited")}}}));Ue.pmatrix=p(Fe,(function(e,t){e.environment="pmatrix",e.parentheses={left:"(",right:")"}})),Ue.bmatrix=p(Fe,(function(e,t){e.environment="bmatrix",e.parentheses={left:"[",right:"]"}})),Ue.Bmatrix=p(Fe,(function(e,t){e.environment="Bmatrix",e.parentheses={left:"{",right:"}"}})),Ue.vmatrix=p(Fe,(function(e,t){e.environment="vmatrix",e.parentheses={left:"|",right:"|"}})),Ue.Vmatrix=p(Fe,(function(e,t){e.environment="Vmatrix",e.parentheses={left:"&#8214;",right:"&#8214;"}})),Ue.cases=p(Fe,(function(e,t){e.environment="cases",e.parentheses={left:"{",right:null}})),Ue.array=p(Fe,(function(e,t){e.environment="array",e.parentheses={left:null,right:null},e.hline=!0,e.options="l|l"}));var Ge=p(V,(function(e,t){e.init=function(e,n,r){if(t.init.call(this),this.row=e,n&&this.adopt(n,n.ends[1],0),r)for(var i=0;i<r.length;i++)r[i].children().adopt(this,this.ends[1],0)},e.keystroke=function(e,n,r){switch(e){case"Tab":var i,a=this,o=0;if(this.parent.eachChild((function(e){e.row===a.row&&(e===a&&(i=o),o+=1)})),i===o-1)return n.preventDefault(),this.parent.insert("addColumn",this);break;case"Enter":var s,l=this.row+1,c=!0;if(this.parent.eachChild((function(e){e.row===l&&(s||(s=e),e.isEmpty()||(c=!1))})),n.preventDefault(),s&&c){r.cursor.insAtDirEnd(h,s);break}return this.parent.insert("addRow",this)}return t.keystroke.apply(this,arguments)},e.deleteOutOf=function(e,n){var r=this,i=arguments;this.parent.backspace(this,e,n,(function(){return t.deleteOutOf.apply(r,i)}))}})),Be=(w["\\"]=p(B,(function(e,t){e.ctrlSeq="\\",e.replaces=function(e){this._replacedFragment=e.disown(),this.isEmpty=function(){return!1}},e.htmlTemplate='<span class="mq-latex-command-input mq-non-leaf">\\<span>&0</span></span>',e.textTemplate=["\\"],e.createBlocks=function(){t.createBlocks.call(this),this.ends[h].focus=function(){return this.parent.jQ.addClass("mq-hasCursor"),this.isEmpty()&&this.parent.jQ.removeClass("mq-empty"),this},this.ends[h].blur=function(){return this.parent.jQ.removeClass("mq-hasCursor"),this.isEmpty()&&this.parent.jQ.addClass("mq-empty"),this},this.ends[h].write=function(e,t){e.show().deleteSelection(),t.match(/[a-z]/i)?W(t).createLeftOf(e):(this.parent.renderCommand(e),"\\"===t&&this.isEmpty()||e.parent.write(e,t))},this.ends[h].keystroke=function(e,n,r){return"Tab"===e||"Enter"===e||"Spacebar"===e?(this.parent.renderCommand(r.cursor),void n.preventDefault()):t.keystroke.apply(this,arguments)}},e.createLeftOf=function(e){if(t.createLeftOf.call(this,e),this._replacedFragment){var n=this.jQ[0];this.jQ=this._replacedFragment.jQ.addClass("mq-blur").bind("mousedown mousemove",(function(e){return m(e.target=n).trigger(e),!1})).insertBefore(this.jQ).add(this.jQ)}},e.latex=function(){return"\\"+this.ends[h].latex()+" "},e.renderCommand=function(e){this.jQ=this.jQ.last(),this.remove(),this[1]?e.insLeftOf(this[1]):e.insAtRightEnd(this.parent);var t=this.ends[h].latex();t||(t=" ");var n=x[t]||Ue[t];n?(n=n(t),this._replacedFragment&&n.replaces(this._replacedFragment),n.createLeftOf(e)):((n=Q()).replaces(t),n.createLeftOf(e),e.insRightOf(n),this._replacedFragment&&this._replacedFragment.remove())}})),P(1));for(var Ye in Be)!function(e,t){"function"==typeof t?(D[e]=function(){return j(),t.apply(this,arguments)},D[e].prototype=t.prototype):D[e]=t}(Ye,Be[Ye]);"object"==typeof e.exports&&(e.exports=D)}()},function(e,t,n){"use strict";(function(e,r){var i,a=n(71);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var o=Object(a.a)(i);t.a=o}).call(this,n(12),n(17)(e))},function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var l,c=[],u=!1,f=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):f=-1,c.length&&p())}function p(){if(!u){var e=s(d);u=!0;for(var t=c.length;t;){for(l=c,c=[];++f<t;)l&&l[f].run();f=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||u||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},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.Parser=void 0;var i=r(n(45)),a=new Set(["input","option","optgroup","select","button","datalist","textarea"]),o=new Set(["p"]),s={tr:new Set(["tr","th","td"]),th:new Set(["th"]),td:new Set(["thead","th","td"]),body:new Set(["head","link","script"]),li:new Set(["li"]),p:o,h1:o,h2:o,h3:o,h4:o,h5:o,h6:o,select:a,input:a,output:a,button:a,datalist:a,textarea:a,option:new Set(["option"]),optgroup:new Set(["optgroup","option"]),dd:new Set(["dt","dd"]),dt:new Set(["dt","dd"]),address:o,article:o,aside:o,blockquote:o,details:o,div:o,dl:o,fieldset:o,figcaption:o,figure:o,footer:o,form:o,header:o,hr:o,main:o,nav:o,ol:o,pre:o,section:o,table:o,ul:o,rt:new Set(["rt","rp"]),rp:new Set(["rt","rp"]),tbody:new Set(["thead","tbody"]),tfoot:new Set(["thead","tbody"])},l=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),c=new Set(["math","svg"]),u=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),f=/\s|\//,d=function(){function e(e,t){var n,r,a,o,s;void 0===t&&(t={}),this.startIndex=0,this.endIndex=null,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.options=t,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!==(n=t.lowerCaseTags)&&void 0!==n?n:!t.xmlMode,this.lowerCaseAttributeNames=null!==(r=t.lowerCaseAttributeNames)&&void 0!==r?r:!t.xmlMode,this.tokenizer=new(null!==(a=t.Tokenizer)&&void 0!==a?a:i.default)(this.options,this),null===(s=(o=this.cbs).onparserinit)||void 0===s||s.call(o,this)}return e.prototype.updatePosition=function(e){null===this.endIndex?this.tokenizer.sectionStart<=e?this.startIndex=0:this.startIndex=this.tokenizer.sectionStart-e:this.startIndex=this.endIndex+1,this.endIndex=this.tokenizer.getAbsoluteIndex()},e.prototype.ontext=function(e){var t,n;this.updatePosition(1),this.endIndex--,null===(n=(t=this.cbs).ontext)||void 0===n||n.call(t,e)},e.prototype.onopentagname=function(e){var t,n;if(this.lowerCaseTagNames&&(e=e.toLowerCase()),this.tagname=e,!this.options.xmlMode&&Object.prototype.hasOwnProperty.call(s,e))for(var r=void 0;this.stack.length>0&&s[e].has(r=this.stack[this.stack.length-1]);)this.onclosetag(r);!this.options.xmlMode&&l.has(e)||(this.stack.push(e),c.has(e)?this.foreignContext.push(!0):u.has(e)&&this.foreignContext.push(!1)),null===(n=(t=this.cbs).onopentagname)||void 0===n||n.call(t,e),this.cbs.onopentag&&(this.attribs={})},e.prototype.onopentagend=function(){var e,t;this.updatePosition(1),this.attribs&&(null===(t=(e=this.cbs).onopentag)||void 0===t||t.call(e,this.tagname,this.attribs),this.attribs=null),!this.options.xmlMode&&this.cbs.onclosetag&&l.has(this.tagname)&&this.cbs.onclosetag(this.tagname),this.tagname=""},e.prototype.onclosetag=function(e){if(this.updatePosition(1),this.lowerCaseTagNames&&(e=e.toLowerCase()),(c.has(e)||u.has(e))&&this.foreignContext.pop(),!this.stack.length||!this.options.xmlMode&&l.has(e))this.options.xmlMode||"br"!==e&&"p"!==e||(this.onopentagname(e),this.closeCurrentTag());else{var t=this.stack.lastIndexOf(e);if(-1!==t)if(this.cbs.onclosetag)for(t=this.stack.length-t;t--;)this.cbs.onclosetag(this.stack.pop());else this.stack.length=t;else"p"!==e||this.options.xmlMode||(this.onopentagname(e),this.closeCurrentTag())}},e.prototype.onselfclosingtag=function(){this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?this.closeCurrentTag():this.onopentagend()},e.prototype.closeCurrentTag=function(){var e,t,n=this.tagname;this.onopentagend(),this.stack[this.stack.length-1]===n&&(null===(t=(e=this.cbs).onclosetag)||void 0===t||t.call(e,n),this.stack.pop())},e.prototype.onattribname=function(e){this.lowerCaseAttributeNames&&(e=e.toLowerCase()),this.attribname=e},e.prototype.onattribdata=function(e){this.attribvalue+=e},e.prototype.onattribend=function(e){var t,n;null===(n=(t=this.cbs).onattribute)||void 0===n||n.call(t,this.attribname,this.attribvalue,e),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribname="",this.attribvalue=""},e.prototype.getInstructionName=function(e){var t=e.search(f),n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},e.prototype.ondeclaration=function(e){if(this.cbs.onprocessinginstruction){var t=this.getInstructionName(e);this.cbs.onprocessinginstruction("!"+t,"!"+e)}},e.prototype.onprocessinginstruction=function(e){if(this.cbs.onprocessinginstruction){var t=this.getInstructionName(e);this.cbs.onprocessinginstruction("?"+t,"?"+e)}},e.prototype.oncomment=function(e){var t,n,r,i;this.updatePosition(4),null===(n=(t=this.cbs).oncomment)||void 0===n||n.call(t,e),null===(i=(r=this.cbs).oncommentend)||void 0===i||i.call(r)},e.prototype.oncdata=function(e){var t,n,r,i,a,o;this.updatePosition(1),this.options.xmlMode||this.options.recognizeCDATA?(null===(n=(t=this.cbs).oncdatastart)||void 0===n||n.call(t),null===(i=(r=this.cbs).ontext)||void 0===i||i.call(r,e),null===(o=(a=this.cbs).oncdataend)||void 0===o||o.call(a)):this.oncomment("[CDATA["+e+"]]")},e.prototype.onerror=function(e){var t,n;null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,e)},e.prototype.onend=function(){var e,t;if(this.cbs.onclosetag)for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n]));null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)},e.prototype.reset=function(){var e,t,n,r;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack=[],null===(r=(n=this.cbs).onparserinit)||void 0===r||r.call(n,this)},e.prototype.parseComplete=function(e){this.reset(),this.end(e)},e.prototype.write=function(e){this.tokenizer.write(e)},e.prototype.end=function(e){this.tokenizer.end(e)},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){this.tokenizer.resume()},e.prototype.parseChunk=function(e){this.write(e)},e.prototype.done=function(e){this.end(e)},e}();t.Parser=d},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});var i=r(n(46)),a=r(n(24)),o=r(n(47)),s=r(n(25));function l(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function c(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"}function u(e,t,n){var r=e.toLowerCase();return e===r?function(e,i){i===r?e._state=t:(e._state=n,e._index--)}:function(i,a){a===r||a===e?i._state=t:(i._state=n,i._index--)}}function f(e,t){var n=e.toLowerCase();return function(r,i){i===n||i===e?r._state=t:(r._state=3,r._index--)}}var d=u("C",24,16),p=u("D",25,16),h=u("A",26,16),g=u("T",27,16),m=u("A",28,16),y=f("R",35),v=f("I",36),b=f("P",37),I=f("T",38),x=u("R",40,1),w=u("I",41,1),T=u("P",42,1),M=u("T",43,1),A=f("Y",45),C=f("L",46),E=f("E",47),N=u("Y",49,1),S=u("L",50,1),k=u("E",51,1),j=f("I",54),D=f("T",55),O=f("L",56),L=f("E",57),P=u("I",58,1),R=u("T",59,1),z=u("L",60,1),_=u("E",61,1),U=u("#",63,64),Z=u("X",66,65),F=function(){function e(e,t){var n;this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1,this.cbs=t,this.xmlMode=!!(null==e?void 0:e.xmlMode),this.decodeEntities=null===(n=null==e?void 0:e.decodeEntities)||void 0===n||n}return e.prototype.reset=function(){this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1},e.prototype.write=function(e){this.ended&&this.cbs.onerror(Error(".write() after done!")),this.buffer+=e,this.parse()},e.prototype.end=function(e){this.ended&&this.cbs.onerror(Error(".end() after done!")),e&&this.write(e),this.ended=!0,this.running&&this.finish()},e.prototype.pause=function(){this.running=!1},e.prototype.resume=function(){this.running=!0,this._index<this.buffer.length&&this.parse(),this.ended&&this.finish()},e.prototype.getAbsoluteIndex=function(){return this.bufferOffset+this._index},e.prototype.stateText=function(e){"<"===e?(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):!this.decodeEntities||"&"!==e||1!==this.special&&4!==this.special||(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this.baseState=1,this._state=62,this.sectionStart=this._index)},e.prototype.stateBeforeTagName=function(e){"/"===e?this._state=5:"<"===e?(this.cbs.ontext(this.getSection()),this.sectionStart=this._index):">"===e||1!==this.special||l(e)?this._state=1:"!"===e?(this._state=15,this.sectionStart=this._index+1):"?"===e?(this._state=17,this.sectionStart=this._index+1):c(e)?(this._state=this.xmlMode||"s"!==e&&"S"!==e?this.xmlMode||"t"!==e&&"T"!==e?3:52:32,this.sectionStart=this._index):this._state=1},e.prototype.stateInTagName=function(e){("/"===e||">"===e||l(e))&&(this.emitToken("onopentagname"),this._state=8,this._index--)},e.prototype.stateBeforeClosingTagName=function(e){l(e)||(">"===e?this._state=1:1!==this.special?"s"===e||"S"===e?this._state=33:"t"===e||"T"===e?this._state=53:(this._state=1,this._index--):c(e)?(this._state=6,this.sectionStart=this._index):(this._state=20,this.sectionStart=this._index))},e.prototype.stateInClosingTagName=function(e){(">"===e||l(e))&&(this.emitToken("onclosetag"),this._state=7,this._index--)},e.prototype.stateAfterClosingTagName=function(e){">"===e&&(this._state=1,this.sectionStart=this._index+1)},e.prototype.stateBeforeAttributeName=function(e){">"===e?(this.cbs.onopentagend(),this._state=1,this.sectionStart=this._index+1):"/"===e?this._state=4:l(e)||(this._state=9,this.sectionStart=this._index)},e.prototype.stateInSelfClosingTag=function(e){">"===e?(this.cbs.onselfclosingtag(),this._state=1,this.sectionStart=this._index+1,this.special=1):l(e)||(this._state=8,this._index--)},e.prototype.stateInAttributeName=function(e){("="===e||"/"===e||">"===e||l(e))&&(this.cbs.onattribname(this.getSection()),this.sectionStart=-1,this._state=10,this._index--)},e.prototype.stateAfterAttributeName=function(e){"="===e?this._state=11:"/"===e||">"===e?(this.cbs.onattribend(void 0),this._state=8,this._index--):l(e)||(this.cbs.onattribend(void 0),this._state=9,this.sectionStart=this._index)},e.prototype.stateBeforeAttributeValue=function(e){'"'===e?(this._state=12,this.sectionStart=this._index+1):"'"===e?(this._state=13,this.sectionStart=this._index+1):l(e)||(this._state=14,this.sectionStart=this._index,this._index--)},e.prototype.handleInAttributeValue=function(e,t){e===t?(this.emitToken("onattribdata"),this.cbs.onattribend(t),this._state=8):this.decodeEntities&&"&"===e&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},e.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,'"')},e.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,"'")},e.prototype.stateInAttributeValueNoQuotes=function(e){l(e)||">"===e?(this.emitToken("onattribdata"),this.cbs.onattribend(null),this._state=8,this._index--):this.decodeEntities&&"&"===e&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},e.prototype.stateBeforeDeclaration=function(e){this._state="["===e?23:"-"===e?18:16},e.prototype.stateInDeclaration=function(e){">"===e&&(this.cbs.ondeclaration(this.getSection()),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateInProcessingInstruction=function(e){">"===e&&(this.cbs.onprocessinginstruction(this.getSection()),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateBeforeComment=function(e){"-"===e?(this._state=19,this.sectionStart=this._index+1):this._state=16},e.prototype.stateInComment=function(e){"-"===e&&(this._state=21)},e.prototype.stateInSpecialComment=function(e){">"===e&&(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index)),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateAfterComment1=function(e){this._state="-"===e?22:19},e.prototype.stateAfterComment2=function(e){">"===e?(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"-"!==e&&(this._state=19)},e.prototype.stateBeforeCdata6=function(e){"["===e?(this._state=29,this.sectionStart=this._index+1):(this._state=16,this._index--)},e.prototype.stateInCdata=function(e){"]"===e&&(this._state=30)},e.prototype.stateAfterCdata1=function(e){this._state="]"===e?31:29},e.prototype.stateAfterCdata2=function(e){">"===e?(this.cbs.oncdata(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"]"!==e&&(this._state=29)},e.prototype.stateBeforeSpecialS=function(e){"c"===e||"C"===e?this._state=34:"t"===e||"T"===e?this._state=44:(this._state=3,this._index--)},e.prototype.stateBeforeSpecialSEnd=function(e){2!==this.special||"c"!==e&&"C"!==e?3!==this.special||"t"!==e&&"T"!==e?this._state=1:this._state=48:this._state=39},e.prototype.stateBeforeSpecialLast=function(e,t){("/"===e||">"===e||l(e))&&(this.special=t),this._state=3,this._index--},e.prototype.stateAfterSpecialLast=function(e,t){">"===e||l(e)?(this.special=1,this._state=6,this.sectionStart=this._index-t,this._index--):this._state=1},e.prototype.parseFixedEntity=function(e){if(void 0===e&&(e=this.xmlMode?s.default:a.default),this.sectionStart+1<this._index){var t=this.buffer.substring(this.sectionStart+1,this._index);Object.prototype.hasOwnProperty.call(e,t)&&(this.emitPartial(e[t]),this.sectionStart=this._index+1)}},e.prototype.parseLegacyEntity=function(){for(var e=this.sectionStart+1,t=Math.min(this._index-e,6);t>=2;){var n=this.buffer.substr(e,t);if(Object.prototype.hasOwnProperty.call(o.default,n))return this.emitPartial(o.default[n]),void(this.sectionStart+=t+1);t--}},e.prototype.stateInNamedEntity=function(e){";"===e?(this.parseFixedEntity(),1===this.baseState&&this.sectionStart+1<this._index&&!this.xmlMode&&this.parseLegacyEntity(),this._state=this.baseState):(e<"0"||e>"9")&&!c(e)&&(this.xmlMode||this.sectionStart+1===this._index||(1!==this.baseState?"="!==e&&this.parseFixedEntity(o.default):this.parseLegacyEntity()),this._state=this.baseState,this._index--)},e.prototype.decodeNumericEntity=function(e,t,n){var r=this.sectionStart+e;if(r!==this._index){var a=this.buffer.substring(r,this._index),o=parseInt(a,t);this.emitPartial(i.default(o)),this.sectionStart=n?this._index+1:this._index}this._state=this.baseState},e.prototype.stateInNumericEntity=function(e){";"===e?this.decodeNumericEntity(2,10,!0):(e<"0"||e>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(2,10,!1),this._index--)},e.prototype.stateInHexEntity=function(e){";"===e?this.decodeNumericEntity(3,16,!0):(e<"a"||e>"f")&&(e<"A"||e>"F")&&(e<"0"||e>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(3,16,!1),this._index--)},e.prototype.cleanup=function(){this.sectionStart<0?(this.buffer="",this.bufferOffset+=this._index,this._index=0):this.running&&(1===this._state?(this.sectionStart!==this._index&&this.cbs.ontext(this.buffer.substr(this.sectionStart)),this.buffer="",this.bufferOffset+=this._index,this._index=0):this.sectionStart===this._index?(this.buffer="",this.bufferOffset+=this._index,this._index=0):(this.buffer=this.buffer.substr(this.sectionStart),this._index-=this.sectionStart,this.bufferOffset+=this.sectionStart),this.sectionStart=0)},e.prototype.parse=function(){for(;this._index<this.buffer.length&&this.running;){var e=this.buffer.charAt(this._index);1===this._state?this.stateText(e):12===this._state?this.stateInAttributeValueDoubleQuotes(e):9===this._state?this.stateInAttributeName(e):19===this._state?this.stateInComment(e):20===this._state?this.stateInSpecialComment(e):8===this._state?this.stateBeforeAttributeName(e):3===this._state?this.stateInTagName(e):6===this._state?this.stateInClosingTagName(e):2===this._state?this.stateBeforeTagName(e):10===this._state?this.stateAfterAttributeName(e):13===this._state?this.stateInAttributeValueSingleQuotes(e):11===this._state?this.stateBeforeAttributeValue(e):5===this._state?this.stateBeforeClosingTagName(e):7===this._state?this.stateAfterClosingTagName(e):32===this._state?this.stateBeforeSpecialS(e):21===this._state?this.stateAfterComment1(e):14===this._state?this.stateInAttributeValueNoQuotes(e):4===this._state?this.stateInSelfClosingTag(e):16===this._state?this.stateInDeclaration(e):15===this._state?this.stateBeforeDeclaration(e):22===this._state?this.stateAfterComment2(e):18===this._state?this.stateBeforeComment(e):33===this._state?this.stateBeforeSpecialSEnd(e):53===this._state?P(this,e):39===this._state?x(this,e):40===this._state?w(this,e):41===this._state?T(this,e):34===this._state?y(this,e):35===this._state?v(this,e):36===this._state?b(this,e):37===this._state?I(this,e):38===this._state?this.stateBeforeSpecialLast(e,2):42===this._state?M(this,e):43===this._state?this.stateAfterSpecialLast(e,6):44===this._state?A(this,e):29===this._state?this.stateInCdata(e):45===this._state?C(this,e):46===this._state?E(this,e):47===this._state?this.stateBeforeSpecialLast(e,3):48===this._state?N(this,e):49===this._state?S(this,e):50===this._state?k(this,e):51===this._state?this.stateAfterSpecialLast(e,5):52===this._state?j(this,e):54===this._state?D(this,e):55===this._state?O(this,e):56===this._state?L(this,e):57===this._state?this.stateBeforeSpecialLast(e,4):58===this._state?R(this,e):59===this._state?z(this,e):60===this._state?_(this,e):61===this._state?this.stateAfterSpecialLast(e,5):17===this._state?this.stateInProcessingInstruction(e):64===this._state?this.stateInNamedEntity(e):23===this._state?d(this,e):62===this._state?U(this,e):24===this._state?p(this,e):25===this._state?h(this,e):30===this._state?this.stateAfterCdata1(e):31===this._state?this.stateAfterCdata2(e):26===this._state?g(this,e):27===this._state?m(this,e):28===this._state?this.stateBeforeCdata6(e):66===this._state?this.stateInHexEntity(e):65===this._state?this.stateInNumericEntity(e):63===this._state?Z(this,e):this.cbs.onerror(Error("unknown _state"),this._state),this._index++}this.cleanup()},e.prototype.finish=function(){this.sectionStart<this._index&&this.handleTrailingData(),this.cbs.onend()},e.prototype.handleTrailingData=function(){var e=this.buffer.substr(this.sectionStart);29===this._state||30===this._state||31===this._state?this.cbs.oncdata(e):19===this._state||21===this._state||22===this._state?this.cbs.oncomment(e):64!==this._state||this.xmlMode?65!==this._state||this.xmlMode?66!==this._state||this.xmlMode?3!==this._state&&8!==this._state&&11!==this._state&&10!==this._state&&9!==this._state&&13!==this._state&&12!==this._state&&14!==this._state&&6!==this._state&&this.cbs.ontext(e):(this.decodeNumericEntity(3,16,!1),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData())):(this.decodeNumericEntity(2,10,!1),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData())):(this.parseLegacyEntity(),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData()))},e.prototype.getSection=function(){return this.buffer.substring(this.sectionStart,this._index)},e.prototype.emitToken=function(e){this.cbs[e](this.getSection()),this.sectionStart=-1},e.prototype.emitPartial=function(e){1!==this.baseState?this.cbs.onattribdata(e):this.cbs.ontext(e)},e}();t.default=F},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});var i=r(n(93));t.default=function(e){if(e>=55296&&e<=57343||e>1114111)return"�";e in i.default&&(e=i.default[e]);var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)}},function(e){e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}')},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var a=n(49);i(n(49),t);var o=/\s+/g,s={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){var e;this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null!==(e=this.parser)&&void 0!==e?e:null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=new a.Element(e,t);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,n=this.lastNode;if(n&&"text"===n.type)t?n.data=(n.data+e).replace(o," "):n.data+=e;else{t&&(e=e.replace(o," "));var r=new a.Text(e);this.addNode(r),this.lastNode=r}},e.prototype.oncomment=function(e){if(this.lastNode&&"comment"===this.lastNode.type)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.NodeWithChildren("cdata",[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e.prototype.addDataNode=function(e){this.addNode(e),this.lastNode=e},e}();t.DomHandler=l,t.default=l},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=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}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.Element=t.Document=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var o=new Map([["tag",1],["script",1],["style",1],["directive",1],["text",3],["cdata",4],["comment",8],["root",9]]),s=function(){function e(e){this.type=e,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){var e;return null!==(e=o.get(this.type))&&void 0!==e?e:1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),g(this,e)},e}();t.Node=s;var l=function(e){function t(t,n){var r=e.call(this,t)||this;return r.data=n,r}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(s);t.DataNode=l;var c=function(e){function t(t){return e.call(this,"text",t)||this}return i(t,e),t}(l);t.Text=c;var u=function(e){function t(t){return e.call(this,"comment",t)||this}return i(t,e),t}(l);t.Comment=u;var f=function(e){function t(t,n){var r=e.call(this,"directive",n)||this;return r.name=t,r}return i(t,e),t}(l);t.ProcessingInstruction=f;var d=function(e){function t(t,n){var r=e.call(this,t)||this;return r.children=n,r}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=d;var p=function(e){function t(t){return e.call(this,"root",t)||this}return i(t,e),t}(d);t.Document=p;var h=function(e){function t(t,n,r){void 0===r&&(r=[]);var i=e.call(this,"script"===t?"script":"style"===t?"style":"tag",r)||this;return i.name=t,i.attribs=n,i.attribs=n,i}return i(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(d);function g(e,t){var n;switch(void 0===t&&(t=!1),e.type){case"text":n=new c(e.data);break;case"directive":var r=e;n=new f(r.name,r.data),null!=r["x-name"]&&(n["x-name"]=r["x-name"],n["x-publicId"]=r["x-publicId"],n["x-systemId"]=r["x-systemId"]);break;case"comment":n=new u(e.data);break;case"tag":case"script":case"style":var i=e,o=t?m(i.children):[],s=new h(i.name,a({},i.attribs),o);o.forEach((function(e){return e.parent=s})),i["x-attribsNamespace"]&&(s["x-attribsNamespace"]=a({},i["x-attribsNamespace"])),i["x-attribsPrefix"]&&(s["x-attribsPrefix"]=a({},i["x-attribsPrefix"])),n=s;break;case"cdata":o=t?m(e.children):[];var l=new d(e.type,o);o.forEach((function(e){return e.parent=l})),n=l;break;case"root":var g=e,y=(o=t?m(g.children):[],new p(o));o.forEach((function(e){return e.parent=y})),g["x-mode"]&&(y["x-mode"]=g["x-mode"]),n=y;break;case"doctype":throw new Error("Not implemented yet: ElementType.Doctype case")}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,n}function m(e){for(var t=e.map((function(e){return g(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=h,t.cloneNode=g},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=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)&&a(t,e,n);return o(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.parseFeed=t.FeedHandler=void 0;var c,u,f=l(n(48)),d=s(n(51)),p=n(44);!function(e){e[e.image=0]="image",e[e.audio=1]="audio",e[e.video=2]="video",e[e.document=3]="document",e[e.executable=4]="executable"}(c||(c={})),function(e){e[e.sample=0]="sample",e[e.full=1]="full",e[e.nonstop=2]="nonstop"}(u||(u={}));var h=function(e){function t(t,n){return"object"==typeof t&&(n=t=void 0),e.call(this,t,n)||this}return i(t,e),t.prototype.onend=function(){var e,t,n=y(x,this.dom);if(n){var r={};if("feed"===n.name){var i=n.children;r.type="atom",I(r,"id","id",i),I(r,"title","title",i);var a=b("href",y("link",i));a&&(r.link=a),I(r,"description","subtitle",i),(o=v("updated",i))&&(r.updated=new Date(o)),I(r,"author","email",i,!0),r.items=m("entry",i).map((function(e){var t={},n=e.children;I(t,"id","id",n),I(t,"title","title",n);var r=b("href",y("link",n));r&&(t.link=r);var i=v("summary",n)||v("content",n);i&&(t.description=i);var a=v("updated",n);return a&&(t.pubDate=new Date(a)),t.media=g(n),t}))}else{var o;i=null!==(t=null===(e=y("channel",n.children))||void 0===e?void 0:e.children)&&void 0!==t?t:[];r.type=n.name.substr(0,3),r.id="",I(r,"title","title",i),I(r,"link","link",i),I(r,"description","description",i),(o=v("lastBuildDate",i))&&(r.updated=new Date(o)),I(r,"author","managingEditor",i,!0),r.items=m("item",n.children).map((function(e){var t={},n=e.children;I(t,"id","guid",n),I(t,"title","title",n),I(t,"link","link",n),I(t,"description","description",n);var r=v("pubDate",n);return r&&(t.pubDate=new Date(r)),t.media=g(n),t}))}this.feed=r,this.handleCallback(null)}else this.handleCallback(new Error("couldn't find root of feed"))},t}(f.default);function g(e){return m("media:content",e).map((function(e){var t={medium:e.attribs.medium,isDefault:!!e.attribs.isDefault};return e.attribs.url&&(t.url=e.attribs.url),e.attribs.fileSize&&(t.fileSize=parseInt(e.attribs.fileSize,10)),e.attribs.type&&(t.type=e.attribs.type),e.attribs.expression&&(t.expression=e.attribs.expression),e.attribs.bitrate&&(t.bitrate=parseInt(e.attribs.bitrate,10)),e.attribs.framerate&&(t.framerate=parseInt(e.attribs.framerate,10)),e.attribs.samplingrate&&(t.samplingrate=parseInt(e.attribs.samplingrate,10)),e.attribs.channels&&(t.channels=parseInt(e.attribs.channels,10)),e.attribs.duration&&(t.duration=parseInt(e.attribs.duration,10)),e.attribs.height&&(t.height=parseInt(e.attribs.height,10)),e.attribs.width&&(t.width=parseInt(e.attribs.width,10)),e.attribs.lang&&(t.lang=e.attribs.lang),t}))}function m(e,t){return d.getElementsByTagName(e,t,!0)}function y(e,t){return d.getElementsByTagName(e,t,!0,1)[0]}function v(e,t,n){return void 0===n&&(n=!1),d.getText(d.getElementsByTagName(e,t,n,1)).trim()}function b(e,t){return t?t.attribs[e]:null}function I(e,t,n,r,i){void 0===i&&(i=!1);var a=v(n,r,i);a&&(e[t]=a)}function x(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}t.FeedHandler=h,t.parseFeed=function(e,t){void 0===t&&(t={xmlMode:!0});var n=new h(t);return new p.Parser(n,t).end(e),n.feed}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(95),t),i(n(99),t),i(n(100),t),i(n(55),t),i(n(101),t),i(n(102),t),i(n(13),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTag=function(e){return"tag"===e.type||"script"===e.type||"style"===e.type},t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"},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});var i=r(n(24)),a=r(n(47)),o=r(n(25)),s=r(n(46));function l(e){var t=Object.keys(e).join("|"),n=u(e),r=new RegExp("&(?:"+(t+="|#[xX][\\da-fA-F]+|#\\d+")+");","g");return function(e){return String(e).replace(r,n)}}t.decodeXML=l(o.default),t.decodeHTMLStrict=l(i.default);var c=function(e,t){return e<t?1:-1};function u(e){return function(t){return"#"===t.charAt(1)?"X"===t.charAt(2)||"x"===t.charAt(2)?s.default(parseInt(t.substr(3),16)):s.default(parseInt(t.substr(2),10)):e[t.slice(1,-1)]}}t.decodeHTML=function(){for(var e=Object.keys(a.default).sort(c),t=Object.keys(i.default).sort(c),n=0,r=0;n<t.length;n++)e[r]===t[n]?(t[n]+=";?",r++):t[n]+=";";var o=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),s=u(i.default);function l(e){return";"!==e.substr(-1)&&(e+=";"),s(e)}return function(e){return String(e).replace(o,l)}}()},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});var i=l(r(n(25)).default),a=c(i);t.encodeXML=h(i,a);var o=l(r(n(24)).default),s=c(o);function l(e){return Object.keys(e).sort().reduce((function(t,n){return t[e[n]]="&"+n+";",t}),{})}function c(e){var t=[],n=[];return Object.keys(e).forEach((function(e){return 1===e.length?t.push("\\"+e):n.push(e)})),n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}t.encodeHTML=h(o,s);var u=/[^\0-\x7F]/g,f=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function d(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function p(e,t){return"&#x"+(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536).toString(16).toUpperCase()+";"}function h(e,t){return function(n){return n.replace(t,(function(t){return e[t]})).replace(f,p).replace(u,d)}}var g=c(i);t.escape=function(e){return e.replace(g,d).replace(f,p).replace(u,d)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=t.existsOne=t.findOne=t.findOneChild=t.find=t.filter=void 0;var r=n(13);function i(e,t,n,a){for(var o=[],s=0,l=t;s<l.length;s++){var c=l[s];if(e(c)&&(o.push(c),--a<=0))break;if(n&&r.hasChildren(c)&&c.children.length>0){var u=i(e,c.children,n,a);if(o.push.apply(o,u),(a-=u.length)<=0)break}}return o}t.filter=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),Array.isArray(t)||(t=[t]),i(e,t,n,r)},t.find=i,t.findOneChild=function(e,t){return t.find(e)},t.findOne=function e(t,n,i){void 0===i&&(i=!0);for(var a=null,o=0;o<n.length&&!a;o++){var s=n[o];r.isTag(s)&&(t(s)?a=s:i&&s.children.length>0&&(a=e(t,s.children)))}return a},t.existsOne=function e(t,n){return n.some((function(n){return r.isTag(n)&&(t(n)||n.children.length>0&&e(t,n.children))}))},t.findAll=function(e,t){for(var n,i,a=[],o=t.filter(r.isTag);i=o.shift();){var s=null===(n=i.children)||void 0===n?void 0:n.filter(r.isTag);s&&s.length>0&&o.unshift.apply(o,s),e(i)&&a.push(i)}return a}},function(e,t){},function(e,t,n){"use strict";const r={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};e.exports=class{constructor(e){this.builder=e}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}document(e){this.body(e)}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}decl(e,t){let n=this.raw(e,"between","colon"),r=e.prop+n+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}atrule(e,t){let n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{let i=(e.raws.between||"")+(t?";":"");this.builder(n+r+i,e)}}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let n=this.raw(e,"semicolon");for(let r=0;r<e.nodes.length;r++){let i=e.nodes[r],a=this.raw(i,"before");a&&this.builder(a),this.stringify(i,t!==r||n)}}block(e,t){let n,r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}raw(e,t,n){let i;if(n||(n=t),t&&(i=e.raws[t],void 0!==i))return i;let a=e.parent;if("before"===n){if(!a||"root"===a.type&&a.first===e)return"";if(a&&"document"===a.type)return""}if(!a)return r[n];let o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[n])return o.rawCache[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);{let r="raw"+((s=n)[0].toUpperCase()+s.slice(1));this[r]?i=this[r](o,e):o.walk(e=>{if(i=e.raws[t],void 0!==i)return!1})}var s;return void 0===i&&(i=r[n]),o.rawCache[n]=i,i}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){let e=n.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}}),t}rawBeforeComment(e,t){let n;return e.walkComments(e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls(e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1}),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}beforeAfter(e,t){let n;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let r=e.parent,i=0;for(;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<i;e++)n+=t}return n}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}}},function(e,t,n){"use strict";let{isClean:r,my:i}=n(27),a=n(110),o=n(28),s=n(10),l=n(32),c=(n(114),n(60)),u=n(62),f=n(14);const d={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},p={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},h={postcssPlugin:!0,prepare:!0,Once:!0};function g(e){return"object"==typeof e&&"function"==typeof e.then}function m(e){let t=!1,n=d[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function y(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:m(e),{node:e,events:t,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function v(e){return e[r]=!1,e.nodes&&e.nodes.forEach(e=>v(e)),e}let b={};class I{constructor(e,t,n){let r;if(this.stringified=!1,this.processed=!1,"object"!=typeof t||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof I||t instanceof c)r=v(t.root),t.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let e=u;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{r=e(t,n)}catch(e){this.processed=!0,this.error=e}r&&!r[i]&&s.rebuild(r)}else r=v(t);this.result=new c(e,r,n),this.helpers={...b,result:this.result,postcss:b},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}get[Symbol.toStringTag](){return"LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(e,t){return this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(g(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[r];)e[r]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=o;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new a(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}walkSync(e){e[r]=!0;let t=m(e);for(let n of t)if(0===n)e.nodes&&e.each(e=>{e[r]||this.walkSync(e)});else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}visitSync(e,t){for(let[n,r]of e){let e;this.result.lastPlugin=n;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(g(e))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return g(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?n.postcssVersion:(e.plugin=n.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(g(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[r];){e[r]=!0;let t=[y(e)];for(;t.length>0;){let e=this.visitTick(t);if(g(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if("object"==typeof t)for(let n in t){if(!p[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!h[n])if("object"==typeof t[n])for(let r in t[n])e(t,"*"===r?n:n+"-"+r.toLowerCase(),t[n][r]);else"function"==typeof t[n]&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let t=e[e.length-1],{node:n,visitors:i}=t;if("root"!==n.type&&"document"!==n.type&&!n.parent)return void e.pop();if(i.length>0&&t.visitorIndex<i.length){let[e,r]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return r(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(0!==t.iterator){let i,a=t.iterator;for(;i=n.nodes[n.indexes[a]];)if(n.indexes[a]+=1,!i[r])return i[r]=!0,void e.push(y(i));t.iterator=0,delete n.indexes[a]}let a=t.events;for(;t.eventIndex<a.length;){let e=a[t.eventIndex];if(t.eventIndex+=1,0===e)return void(n.nodes&&n.nodes.length&&(n[r]=!0,t.iterator=n.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}}I.registerPostcss=e=>{b=e},e.exports=I,I.default=I,f.registerLazyResult(I),l.registerLazyResult(I)},function(e,t){},function(e,t,n){"use strict";let r=n(61);class i{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new r(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}}e.exports=i,i.default=i},function(e,t,n){"use strict";class r{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.positionBy(t);this.line=e.line,this.column=e.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}e.exports=r,r.default=r},function(e,t,n){"use strict";let r=n(10),i=n(115),a=n(35);function o(e,t){let n=new a(e,t),r=new i(n);try{r.parse()}catch(e){throw e}return r.root}e.exports=o,o.default=o,r.registerParse(o)},function(e,t,n){"use strict";let r={split(e,t,n){let r=[],i="",a=!1,o=0,s=!1,l=!1;for(let n of e)l?l=!1:"\\"===n?l=!0:s?n===s&&(s=!1):'"'===n||"'"===n?s=n:"("===n?o+=1:")"===n?o>0&&(o-=1):0===o&&t.includes(n)&&(a=!0),a?(""!==i&&r.push(i.trim()),i="",a=!1):i+=n;return(n||""!==i)&&r.push(i.trim()),r},space:e=>r.split(e,[" ","\n","\t"]),comma:e=>r.split(e,[","],!0)};e.exports=r,r.default=r},function(e,t,n){"use strict";(function(t){let{SourceMapConsumer:r,SourceMapGenerator:i}=n(30),{existsSync:a,readFileSync:o}=n(118),{dirname:s,join:l}=n(31);class c{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=s(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new r(this.text)),this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(e,t){return!!e&&e.substr(0,t.length)===t}getAnnotationURL(e){return e.match(/\/\*\s*# sourceMappingURL=((?:(?!sourceMappingURL=).)*)\*\//)[1].trim()}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=(?:(?!sourceMappingURL=).)*\*\//gm);if(t&&t.length>0){let e=t[t.length-1];e&&(this.annotation=this.getAnnotationURL(e))}}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return n=e.substr(RegExp.lastMatch.length),t?t.from(n,"base64").toString():window.atob(n);var n;let r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}loadFile(e){if(this.root=s(e),a(e))return this.mapFile=e,o(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof r)return i.fromSourceMap(t).toString();if(t instanceof i)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let n=t(e);if(n){let e=this.loadFile(n);if(!e)throw new Error("Unable to load previous source map: "+n.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=l(s(e),t)),this.loadFile(t)}}}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}}e.exports=c,c.default=c}).call(this,n(29).Buffer)},function(e,t,n){"use strict";t.a=function(){return!1}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(77),i=n(78),a=n(79),o=n(81);e.exports=function(e,t){return r(e)||i(e,t)||a(e,t)||o()},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(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)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";t.a="data:image/gif;base64,R0lGODlhEAAQAPQAAP///wAAAPDw8IqKiuDg4EZGRnp6egAAAFhYWCQkJKysrL6+vhQUFJycnAQEBDY2NmhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH+GkNyZWF0ZWQgd2l0aCBhamF4bG9hZC5pbmZvACH5BAAKAAAAIf8LTkVUU0NBUEUyLjADAQAAACwAAAAAEAAQAAAFdyAgAgIJIeWoAkRCCMdBkKtIHIngyMKsErPBYbADpkSCwhDmQCBethRB6Vj4kFCkQPG4IlWDgrNRIwnO4UKBXDufzQvDMaoSDBgFb886MiQadgNABAokfCwzBA8LCg0Egl8jAggGAA1kBIA1BAYzlyILczULC2UhACH5BAAKAAEALAAAAAAQABAAAAV2ICACAmlAZTmOREEIyUEQjLKKxPHADhEvqxlgcGgkGI1DYSVAIAWMx+lwSKkICJ0QsHi9RgKBwnVTiRQQgwF4I4UFDQQE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IDxiPjY4PC9iPjxiciAvPgo8YnIgLz4KPGI+V2FybmluZzwvYj46ICBteXNxbF9xdWVyeSgpIFs8YSBocmVmPSdmdW5jdGlvbi5teXNxbC1xdWVyeSc+ZnVuY3Rpb24ubXlzcWwtcXVlcnk8L2E+XTogQ2FuJ3QgY29ubmVjdCB0byBsb2NhbCBNeVNRTCBzZXJ2ZXIgdGhyb3VnaCBzb2NrZXQgJy92YXIvcnVuL215c3FsZC9teXNxbGQuc29jaycgKDIpIGluIDxiPi9ob21lL2FqYXhsb2FkL3d3dy9saWJyYWlyaWVzL2NsYXNzLm15c3FsLnBocDwvYj4gb24gbGluZSA8Yj42ODwvYj48YnIgLz4KPGJyIC8+CjxiPldhcm5pbmc8L2I+OiAgbXlzcWxfcXVlcnkoKSBbPGEgaHJlZj0nZnVuY3Rpb24ubXlzcWwtcXVlcnknPmZ1bmN0aW9uLm15c3FsLXF1ZXJ5PC9hPl06IEEgbGluayB0byB0aGUgc2VydmVyIGNvdWxkIG5vdCBiZSBlc3RhYmxpc2hlZCBpbiA8Yj4vaG9tZS9hamF4bG9hZC93d3cvbGlicmFpcmllcy9jbGFzcy5teXNxbC5waHA8L2I+IG9uIGxpbmUgPGI+Njg8L2I+PGJyIC8+Cg=="},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){var r=n(4),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,o=a&&a.exports===i?r.a.Buffer:void 0,s=o?o.allocUnsafe:void 0;t.a=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(17)(e))},,,,,function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(80);e.exports=function(e,t){if(e){if("string"==typeof e)return r(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)?r(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(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},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(83);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";
42
+ var r=n(111),i=n(112),a=n(113);function o(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=d(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|p(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):d(e,t);if("Buffer"===t.type&&a(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(u(t),e=s(e,t<0?0:0|p(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|p(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function h(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(e).length;default:if(r)return Z(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return S(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return E(this,t,n);case"latin1":case"binary":return N(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,i){var a,o=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var u=-1;for(a=n;a<s;a++)if(c(e,a)===c(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===l)return u*o}else-1!==u&&(a-=a-u),u=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){for(var f=!0,d=0;d<l;d++)if(c(e,a+d)!==c(t,d)){f=!1;break}if(f)return a}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function I(e,t,n,r){return G(Z(t,e.length-n),e,n,r)}function x(e,t,n,r){return G(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return x(e,t,n,r)}function T(e,t,n,r){return G(F(t),e,n,r)}function M(e,t,n,r){return G(function(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function A(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,l,c=e[i],u=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(u=c);break;case 2:128==(192&(a=e[i+1]))&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(l=(15&c)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(l=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,f=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=o(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return f(null,e)},l.allocUnsafeSlow=function(e){return f(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!l.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},l.byteLength=h,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?C(this,0,e):g.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),c=this.slice(r,i),u=e.slice(t,n),f=0;f<s;++f)if(c[f]!==u[f]){a=c[f],o=u[f];break}return a<o?-1:o<a?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return I(this,e,t,n);case"ascii":return x(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function E(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function N(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function S(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=U(e[a]);return i}function k(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function j(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,r,i,a){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function O(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i<a;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i<a;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function P(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(e,t,n,r,a){return a||P(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function z(e,t,n,r,a){return a||P(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;n=new l(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUInt8=function(e,t){return t||j(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||j(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||j(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readInt8=function(e,t){return t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||j(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||j(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||j(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||j(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||j(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||j(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,a=r-n;if(this===e&&n<t&&t<r)for(i=a-1;i>=0;--i)e[i+t]=this[i+n];else if(a<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=l.isBuffer(e)?e:Z(new l(e,r).toString()),s=o.length;for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var _=/[^+\/0-9A-Za-z-_]/g;function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function Z(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function F(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(_,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(12))},function(e,t){},function(e,t){},function(e,t,n){"use strict";let r,i,a=n(10);class o extends a{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new r(new i,this,e).stringify()}}o.registerLazyResult=e=>{r=e},o.registerProcessor=e=>{i=e},e.exports=o,o.default=o},function(e,t,n){"use strict";let r=n(10);class i extends r{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}e.exports=i,i.default=i,r.registerAtRule(i)},function(e,t,n){"use strict";let r=n(10),i=n(63);class a extends r{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return i.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}e.exports=a,a.default=a,r.registerRule(a)},function(e,t,n){"use strict";let{SourceMapConsumer:r,SourceMapGenerator:i}=n(30),{fileURLToPath:a,pathToFileURL:o}=n(59),{resolve:s,isAbsolute:l}=n(31),{nanoid:c}=n(117),u=n(56),f=n(26),d=n(64),p=Symbol("fromOffsetCache"),h=Boolean(r&&i),g=Boolean(s&&l);class m{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!g||/^\w+:\/\//.test(t.from)||l(t.from)?this.file=t.from:this.file=s(t.from)),g&&h){let e=new d(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+c(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(e){let t,n;if(this[p])n=this[p];else{let e=this.css.split("\n");n=new Array(e.length);let t=0;for(let r=0,i=e.length;r<i;r++)n[r]=t,t+=e[r].length+1;this[p]=n}t=n[n.length-1];let r=0;if(e>=t)r=n.length-1;else{let t,i=n.length-2;for(;r<i;)if(t=r+(i-r>>1),e<n[t])i=t-1;else{if(!(e>=n[t+1])){r=t;break}r=t+1}}return{line:r+1,col:e-n[r]+1}}error(e,t,n,r={}){let i;if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let a=this.origin(t,n);return i=a?new f(e,a.line,a.column,a.source,a.file,r.plugin):new f(e,t,n,this.css,this.file,r.plugin),i.input={line:t,column:n,source:this.css},this.file&&(o&&(i.input.url=o(this.file).toString()),i.input.file=this.file),i}origin(e,t){if(!this.map)return!1;let n,r=this.map.consumer(),i=r.originalPositionFor({line:e,column:t});if(!i.source)return!1;n=l(i.source)?o(i.source):new URL(i.source,this.map.consumer().sourceRoot||o(this.map.mapFile));let s={url:n.toString(),line:i.line,column:i.column};if("file:"===n.protocol){if(!a)throw new Error("file: protocol is not available in this PostCSS build");s.file=a(n)}let c=r.sourceContentFor(i.source);return c&&(s.source=c),s}mapResolve(e){return/^\w+:\/\//.test(e)?e:s(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}e.exports=m,m.default=m,u&&u.registerInput&&u.registerInput(m)},function(e,t,n){"use strict";e.exports=n(84)},function(e,t,n){"use strict";var r=n(36),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?o:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=o;var c=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var o=u(n);f&&(o=o.concat(f(n)));for(var s=l(t),g=l(n),m=0;m<o.length;++m){var y=o[m];if(!(a[y]||r&&r[y]||g&&g[y]||s&&s[y])){var v=d(n,y);try{c(t,y,v)}catch(e){}}}}return t}},function(e,t,n){"use strict";e.exports=n(91)},function(e,t,n){const r=n(92),i=n(103),{klona:a}=n(104),{isPlainObject:o}=n(105),s=n(106),l=n(107),{parse:c}=n(108),u=["img","audio","video","picture","svg","object","map","iframe","embed"],f=["script","style"];function d(e,t){e&&Object.keys(e).forEach((function(n){t(e[n],n)}))}function p(e,t){return{}.hasOwnProperty.call(e,t)}function h(e,t){const n=[];return d(e,(function(e){t(e)&&n.push(e)})),n}e.exports=m;const g=/^[^\0\t\n\f\r /<=>]+$/;function m(e,t,n){let v="",b="";function I(e,t){const n=this;this.tag=e,this.attribs=t||{},this.tagPosition=v.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(S.length){S[S.length-1].text+=n.text}},this.updateParentNodeMediaChildren=function(){if(S.length&&u.includes(this.tag)){S[S.length-1].mediaChildren.push(this.tag)}}}(t=Object.assign({},m.defaults,t)).parser=Object.assign({},y,t.parser),f.forEach((function(e){t.allowedTags&&t.allowedTags.indexOf(e)>-1&&!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={};d(t.allowedClasses,(function(e,t){w&&(p(w,t)||(w[t]=[]),w[t].push("class")),M[t]=[];const n=[];e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?n.push(i(e).replace(/\\\*/g,".*")):M[t].push(e)})),n.length&&(A[t]=new RegExp("^("+n.join("|")+")$"))}));const C={};let E,N,S,k,j,D,O;d(t.transformTags,(function(e,t){let n;"function"==typeof e?n=e:"string"==typeof e&&(n=m.simpleTransform(e)),"*"===t?E=n:C[t]=n}));let L=!1;R();const P=new r.Parser({onopentag:function(e,n){if(t.enforceHtmlBoundary&&"html"===e&&R(),D)return void O++;const r=new I(e,n);S.push(r);let i=!1;const u=!!r.text;let f;if(p(C,e)&&(f=C[e](e,n),r.attribs=n=f.attribs,void 0!==f.text&&(r.innerText=f.text),e!==f.tagName&&(r.name=e=f.tagName,j[N]=f.tagName)),E&&(f=E(e,n),r.attribs=n=f.attribs,e!==f.tagName&&(r.name=e=f.tagName,j[N]=f.tagName)),(t.allowedTags&&-1===t.allowedTags.indexOf(e)||"recursiveEscape"===t.disallowedTagsMode&&!function(e){for(const t in e)if(p(e,t))return!1;return!0}(k)||null!=t.nestingLimit&&N>=t.nestingLimit)&&(i=!0,k[N]=!0,"discard"===t.disallowedTagsMode&&-1!==x.indexOf(e)&&(D=!0,O=1),k[N]=!0),N++,i){if("discard"===t.disallowedTagsMode)return;b=v,v=""}v+="<"+e,"script"===e&&(t.allowedScriptHostnames||t.allowedScriptDomains)&&(r.innerText=""),(!w||p(w,e)||w["*"])&&d(n,(function(n,i){if(!g.test(i))return void delete r.attribs[i];let u,f=!1;if(!w||p(w,e)&&-1!==w[e].indexOf(i)||w["*"]&&-1!==w["*"].indexOf(i)||p(T,e)&&T[e].test(i)||T["*"]&&T["*"].test(i))f=!0;else if(w&&w[e])for(const t of w[e])if(o(t)&&t.name&&t.name===i){f=!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(f){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=new URL(n);if(t.allowedScriptHostnames||t.allowedScriptDomains){const n=(t.allowedScriptHostnames||[]).find((function(e){return e===r.hostname})),i=(t.allowedScriptDomains||[]).find((function(e){return r.hostname===e||r.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{if((n=n.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//")).startsWith("relative:"))throw new Error("relative: exploit attempt");let r="relative://relative-site";for(let e=0;e<100;e++)r+="/"+e;const i=new URL(n,r);if(i&&"relative-site"===i.hostname&&"relative:"===i.protocol)e=p(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){const n=(t.allowedIframeHostnames||[]).find((function(e){return e===i.hostname})),r=(t.allowedIframeDomains||[]).find((function(e){return i.hostname===e||i.hostname.endsWith("."+e)}));e=n||r}}catch(t){e=!1}if(!e)return void delete r.attribs[i]}if("srcset"===i)try{if(u=l(n),u.forEach((function(e){_("srcset",e.url)&&(e.evil=!0)})),u=h(u,(function(e){return!e.evil})),!u.length)return void delete r.attribs[i];n=h(u,(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],a=M["*"],o=[A[e],A["*"]].filter((function(e){return e}));if(!(n=U(n,t&&a?s(t,a):t||a,o)).length)return void delete r.attribs[i]}if("style"===i)try{if(0===(n=function(e){return e.nodes[0].nodes.reduce((function(e,t){return e.push(t.prop+":"+t.value),e}),[]).join(";")}(function(e,t){if(!t)return e;const n=a(e),r=e.nodes[0];let i;i=t[r.selector]&&t["*"]?s(t[r.selector],t["*"]):t[r.selector]||t["*"];i&&(n.nodes[0].nodes=r.nodes.reduce(function(e){return function(t,n){if(p(e,n.prop)){e[n.prop].some((function(e){return e.test(n.value)}))&&t.push(n)}return t}}(i),[]));return n}(c(e+" {"+n+"}"),t.allowedStyles))).length)return void delete r.attribs[i]}catch(e){return void delete r.attribs[i]}v+=" "+i,n&&n.length&&(v+='="'+z(n,!0)+'"')}else delete r.attribs[i]})),-1!==t.selfClosing.indexOf(e)?v+=" />":(v+=">",!r.innerText||u||t.textFilter||(v+=z(r.innerText),L=!0)),i&&(v=b+z(v),b="")},ontext:function(e){if(D)return;const n=S[S.length-1];let r;if(n&&(r=n.tag,e=void 0!==n.innerText?n.innerText:e),"discard"!==t.disallowedTagsMode||"script"!==r&&"style"!==r){const n=z(e,!1);t.textFilter&&!L?v+=t.textFilter(n,r):L||(v+=n)}else v+=e;if(S.length){S[S.length-1].text+=e}},onclosetag:function(e){if(D){if(O--,O)return;D=!1}const n=S.pop();if(!n)return;D=!!t.enforceHtmlBoundary&&"html"===e,N--;const r=k[N];if(r){if(delete k[N],"discard"===t.disallowedTagsMode)return void n.updateParentNodeText();b=v,v=""}j[N]&&(e=j[N],delete j[N]),t.exclusiveFilter&&t.exclusiveFilter(n)?v=v.substr(0,n.tagPosition):(n.updateParentNodeMediaChildren(),n.updateParentNodeText(),-1===t.selfClosing.indexOf(e)?(v+="</"+e+">",r&&(v=b+z(v),b="")):r&&(v=b,b=""))}},t.parser);return P.write(e),P.end(),v;function R(){v="",N=0,S=[],k={},j={},D=!1,O=0}function z(e,n){return"string"!=typeof e&&(e+=""),t.parser.decodeEntities&&(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),n&&(e=e.replace(/"/g,"&quot;"))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),n&&(e=e.replace(/"/g,"&quot;")),e}function _(e,n){const r=(n=(n=n.replace(/[\x00-\x20]+/g,"")).replace(/<!--.*?-->/g,"")).match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!r)return!!n.match(/^[/\\]{2}/)&&!t.allowProtocolRelative;const i=r[1].toLowerCase();return p(t.allowedSchemesByTag,e)?-1===t.allowedSchemesByTag[e].indexOf(i):!t.allowedSchemes||-1===t.allowedSchemes.indexOf(i)}function U(e,t,n){return t?(e=e.split(/\s+/)).filter((function(e){return-1!==t.indexOf(e)||n.some((function(t){return t.test(e)}))})).join(" "):e}}const y={decodeEntities:!0};m.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"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src"]},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},m.simpleTransform=function(e,t,n){return n=void 0===n||n,t=t||{},function(r,i){let a;if(n)for(a in t)i[a]=t[a];else i=t;return{tagName:e,attribs:i}}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return c}));var r=n(3),i=n.n(r),a=n(70),o=n(7);const s=["image/png","image/jpeg"];function l(e,t){const n=e.originalEvent.clipboardData,r=n.items&&n.items.length>0&&n.items[n.items.length-1].getAsFile();if(r)!function(e,t,n){e.preventDefault(),s.indexOf(t.type)>=0&&n({data:t,type:t.type,id:String((new Date).getTime())}).then(e=>{const t=`<img src="${e}"/>`;window.document.execCommand("insertHTML",!1,t)})}(e,r,t);else{const r=n.getData("text/html");r?function(e,t,n,r){e.preventDefault(),window.document.execCommand("insertHTML",!1,o.f(n)),c(t,r)}(e,i()(e.currentTarget),r,t):function(e,t){c(e,t)}(i()(e.currentTarget),t)}}function c(t,n){setTimeout(()=>Promise.all(function(t){t.find(o.c).remove();const n=t.find('img[src^="data:image/"]').toArray().map(t=>Object.assign(function(t){if(!t)return null;const n=t.match(/^data:([A-Za-z-+/]+);base64,(.+)$/);if(3!==n.length)return null;return{type:n[1],data:e.from(n[2],"base64")}}(t.getAttribute("src")),{$el:i()(t)}));n.filter(({type:e})=>-1===s.indexOf(e)&&"image/svg+xml"!==e).forEach(({$el:e})=>e.remove());const r=n.filter(({type:e})=>s.indexOf(e)>=0);return r.forEach(({$el:e})=>e.attr("src",a.a)),r}(t).map(e=>n(e).then(t=>e.$el.attr("src",t)).catch(t=>{throw e.$el.remove(),t}))).then(()=>t.trigger("input")),0)}}).call(this,n(29).Buffer)},function(e,t,n){!function(){var t=n(3),r="mathquill-block-id",i=Math.min,a=Math.max;if(!t)throw"MathQuill requires jQuery 1.5.2+ to be loaded first";function o(){}var s=[].slice;function l(e){var t=e.length-1;return function(){var n=s.call(arguments,0,t),r=s.call(arguments,t);return e.apply(this,n.concat([r]))}}var c=l((function(e,t){return l((function(n,r){if(e in n)return n[e].apply(n,t.concat(r))}))}));function u(e){return l((function(t,n){"function"!=typeof t&&(t=c(t));return e.call(this,(function(e){return t.apply(e,[e].concat(n))}))}))}function f(e){var t=s.call(arguments,1);return function(){return e.apply(this,t)}}function d(e,t){if(!t)throw new Error("prayer failed: "+e)}var p=function(e,t,n){function r(e){return"object"==typeof e}function i(e){return"function"==typeof e}function a(){}return function e(n,o){function s(){var e=new l;return i(e.init)&&e.init.apply(e,arguments),e}function l(){}void 0===o&&(o=n,n=Object),s.Bare=l;var c,u=a.prototype=n.prototype,f=l.prototype=s.prototype=s.p=new a;return f.constructor=s,s.extend=function(t){return e(s,t)},(s.open=function(e){if(c={},i(e)?c=e.call(s,f,u,s,n):r(e)&&(c=e),r(c))for(var a in c)t.call(c,a)&&(f[a]=c[a]);return i(f.init)||(f.init=n),s})(o)}}(0,{}.hasOwnProperty),h=-1;function g(e){d("a direction was passed",e===h||1===e)}var m=p(t,(function(e){e.insDirOf=function(e,t){return e===h?this.insertBefore(t.first()):this.insertAfter(t.last())},e.insAtDirEnd=function(e,t){return e===h?this.prependTo(t):this.appendTo(t)}})),y=p((function(e){e.parent=0,e[h]=0,e[1]=0,e.init=function(e,t,n){this.parent=e,this[h]=t,this[1]=n},this.copy=function(e){return y(e.parent,e[h],e[1])}})),v=p((function(e){e[h]=0,e[1]=0,e.parent=0;var t=0;this.byId={},e.init=function(){this.id=t+=1,v.byId[this.id]=this,this.ends={},this.ends[h]=0,this.ends[1]=0},e.dispose=function(){delete v.byId[this.id]},e.toString=function(){return"{{ MathQuill Node #"+this.id+" }}"},e.jQ=m(),e.jQadd=function(e){return this.jQ=this.jQ.add(e)},e.jQize=function(e){e=m(e||this.html());function t(e){if(e.getAttribute){var n=e.getAttribute("mathquill-command-id"),r=e.getAttribute("mathquill-block-id");n&&v.byId[n].jQadd(e),r&&v.byId[r].jQadd(e)}for(e=e.firstChild;e;e=e.nextSibling)t(e)}for(var n=0;n<e.length;n+=1)t(e[n]);return e},e.createDir=function(e,t){g(e);return this.jQize(),this.jQ.insDirOf(e,t.jQ),t[e]=this.adopt(t.parent,t[h],t[1]),this},e.createLeftOf=function(e){return this.createDir(h,e)},e.selectChildren=function(e,t){return M(e,t)},e.bubble=u((function(e){for(var t=this;t;t=t.parent){if(!1===e(t))break}return this})),e.postOrder=u((function(e){return function t(n){n.eachChild(t),e(n)}(this),this})),e.isEmpty=function(){return 0===this.ends[h]&&0===this.ends[1]},e.isStyleBlock=function(){return!1},e.children=function(){return I(this.ends[h],this.ends[1])},e.eachChild=function(){var e=this.children();return e.each.apply(e,arguments),this},e.foldChildren=function(e,t){return this.children().fold(e,t)},e.withDirAdopt=function(e,t,n,r){return I(this,this).withDirAdopt(e,t,n,r),this},e.adopt=function(e,t,n){return I(this,this).adopt(e,t,n),this},e.disown=function(){return I(this,this).disown(),this},e.remove=function(){return this.jQ.remove(),this.postOrder("dispose"),this.disown()}}));function b(e,t,n){d("a parent is always present",e),d("leftward is properly set up",t?t[1]===n&&t.parent===e:e.ends[h]===n),d("rightward is properly set up",n?n[h]===t&&n.parent===e:e.ends[1]===t)}var I=p((function(e){e.init=function(e,t,n){if(void 0===n&&(n=h),g(n),d("no half-empty fragments",!e==!t),this.ends={},e){d("withDir is passed to Fragment",e instanceof v),d("oppDir is passed to Fragment",t instanceof v),d("withDir and oppDir have the same parent",e.parent===t.parent),this.ends[n]=e,this.ends[-n]=t;var r=this.fold([],(function(e,t){return e.push.apply(e,t.jQ.get()),e}));this.jQ=this.jQ.add(r)}},e.jQ=m(),e.withDirAdopt=function(e,t,n,r){return e===h?this.adopt(t,n,r):this.adopt(t,r,n)},e.adopt=function(e,t,n){b(e,t,n);this.disowned=!1;var r=this.ends[h];if(!r)return this;var i=this.ends[1];return t||(e.ends[h]=r),n?n[h]=i:e.ends[1]=i,this.ends[1][1]=n,this.each((function(n){n[h]=t,n.parent=e,t&&(t[1]=n),t=n})),this},e.disown=function(){var e=this.ends[h];if(!e||this.disowned)return this;this.disowned=!0;var t=this.ends[1],n=e.parent;return b(n,e[h],e),b(n,t,t[1]),e[h]?e[h][1]=t[1]:n.ends[h]=t[1],t[1]?t[1][h]=e[h]:n.ends[1]=e[h],this},e.remove=function(){return this.jQ.remove(),this.each("postOrder","dispose"),this.disown()},e.each=u((function(e){var t=this.ends[h];if(!t)return this;for(;t!==this.ends[1][1];t=t[1]){if(!1===e(t))break}return this})),e.fold=function(e,t){return this.each((function(n){e=t.call(this,e,n)})),e}})),x={},w={},T=p(y,(function(e){e.init=function(e,t){this.parent=e,this.options=t;var n=this.jQ=this._jQ=m('<span class="mq-cursor">&#8203;</span>');this.blink=function(){n.toggleClass("mq-blink")},this.upDownCache={}},e.show=function(){return this.jQ=this._jQ.removeClass("mq-blink"),"intervalId"in this?clearInterval(this.intervalId):(this[1]?this.selection&&this.selection.ends[h][h]===this[h]?this.jQ.insertBefore(this.selection.jQ):this.jQ.insertBefore(this[1].jQ.first()):this.jQ.appendTo(this.parent.jQ),this.parent.focus()),this.intervalId=setInterval(this.blink,500),this},e.hide=function(){return"intervalId"in this&&clearInterval(this.intervalId),delete this.intervalId,this.jQ.detach(),this.jQ=m(),this},e.withDirInsertAt=function(e,t,n,r){var i=this.parent;this.parent=t,this[e]=n,this[-e]=r,i!==t&&i.blur&&i.blur(this)},e.insDirOf=function(e,t){return g(e),this.jQ.insDirOf(e,t.jQ),this.withDirInsertAt(e,t.parent,t[e],t),this.parent.jQ.addClass("mq-hasCursor"),this},e.insLeftOf=function(e){return this.insDirOf(h,e)},e.insRightOf=function(e){return this.insDirOf(1,e)},e.insAtDirEnd=function(e,t){return g(e),this.jQ.insAtDirEnd(e,t.jQ),this.withDirInsertAt(e,t,0,t.ends[e]),t.focus(),this},e.insAtLeftEnd=function(e){return this.insAtDirEnd(h,e)},e.insAtRightEnd=function(e){return this.insAtDirEnd(1,e)},e.jumpUpDown=function(e,t){this.upDownCache[e.id]=y.copy(this);var n=this.upDownCache[t.id];if(n)n[1]?this.insLeftOf(n[1]):this.insAtRightEnd(n.parent);else{var r=this.offset().left;t.seek(r,this)}},e.offset=function(){var e=this.jQ.removeClass("mq-cursor").offset();return this.jQ.addClass("mq-cursor"),e},e.unwrapGramp=function(){var e=this.parent.parent,t=e.parent,n=e[1],r=e[h];if(e.disown().eachChild((function(i){i.isEmpty()||(i.children().adopt(t,r,n).each((function(t){t.jQ.insertBefore(e.jQ.first())})),r=i.ends[1])})),!this[1])if(this[h])this[1]=this[h][1];else for(;!this[1];){if(this.parent=this.parent[1],!this.parent){this[1]=e[1],this.parent=t;break}this[1]=this.parent.ends[h]}this[1]?this.insLeftOf(this[1]):this.insAtRightEnd(t),e.jQ.remove(),e[h].siblingDeleted&&e[h].siblingDeleted(this.options,1),e[1].siblingDeleted&&e[1].siblingDeleted(this.options,h)},e.startSelection=function(){for(var e=this.anticursor=y.copy(this),t=e.ancestors={},n=e;n.parent;n=n.parent)t[n.parent.id]=n},e.endSelection=function(){delete this.anticursor},e.select=function(){var e=this.anticursor;if(this[h]===e[h]&&this.parent===e.parent)return!1;for(var t=this;t.parent;t=t.parent)if(t.parent.id in e.ancestors){var n=t.parent;break}d("cursor and anticursor in the same tree",n);var r,i,a=e.ancestors[n.id],o=1;if(t[h]!==a)for(var s=t;s;s=s[1])if(s[1]===a[1]){o=h,r=t,i=a;break}return 1===o&&(r=a,i=t),r instanceof y&&(r=r[1]),i instanceof y&&(i=i[h]),this.hide().selection=n.selectChildren(r,i),this.insDirOf(o,this.selection.ends[o]),this.selectionChanged(),!0},e.clearSelection=function(){return this.selection&&(this.selection.clear(),delete this.selection,this.selectionChanged()),this},e.deleteSelection=function(){this.selection&&(this[h]=this.selection.ends[h][h],this[1]=this.selection.ends[1][1],this.selection.remove(),this.selectionChanged(),delete this.selection)},e.replaceSelection=function(){var e=this.selection;return e&&(this[h]=e.ends[h][h],this[1]=e.ends[1][1],delete this.selection),e}})),M=p(I,(function(e,t){e.init=function(){t.init.apply(this,arguments),this.jQ=this.jQ.wrapAll('<span class="mq-selection"></span>').parent()},e.adopt=function(){return this.jQ.replaceWith(this.jQ=this.jQ.children()),t.adopt.apply(this,arguments)},e.clear=function(){return this.jQ.replaceWith(this.jQ[0].childNodes),this},e.join=function(e){return this.fold("",(function(t,n){return t+n[e]()}))}})),A=p((function(e){e.init=function(e,t,n){this.id=e.id,this.data={},this.root=e,this.container=t,this.options=n,e.controller=this,this.cursor=e.cursor=T(e,n)},e.handle=function(e,t){var n=this.options.handlers;if(n&&n.fns[e]){var r=n.APIClasses[this.KIND_OF_MQ](this);t===h||1===t?n.fns[e](t,r):n.fns[e](r)}};var t=[];this.onNotify=function(e){t.push(e)},e.notify=function(){for(var e=0;e<t.length;e+=1)t[e].apply(this.cursor,arguments);return this}})),C={},E=p(),N={},S=p(),k={};function j(){window.console&&console.warn('You are using the MathQuill API without specifying an interface version, which will fail in v1.0.0. Easiest fix is to do the following before doing anything else:\n\n MathQuill = MathQuill.getInterface(1);\n // now MathQuill.MathField() works like it used to\n\nSee also the "`dev` branch (2014–2015) → v0.10.0 Migration Guide" at\n https://github.com/mathquill/mathquill/wiki/%60dev%60-branch-(2014%E2%80%932015)-%E2%86%92-v0.10.0-Migration-Guide')}function D(e){return j(),Be(e)}D.prototype=S.p,D.VERSION="v0.10.5",D.interfaceVersion=function(e){if(1!==e)throw"Only interface version 1 supported. You specified: "+e;return(j=function(){window.console&&console.warn('You called MathQuill.interfaceVersion(1); to specify the interface version, which will fail in v1.0.0. You can fix this easily by doing this before doing anything else:\n\n MathQuill = MathQuill.getInterface(1);\n // now MathQuill.MathField() works like it used to\n\nSee also the "`dev` branch (2014–2015) → v0.10.0 Migration Guide" at\n https://github.com/mathquill/mathquill/wiki/%60dev%60-branch-(2014%E2%80%932015)-%E2%86%92-v0.10.0-Migration-Guide')})(),D},D.getInterface=P;var O=P.MIN=1,L=P.MAX=2;function P(e){if(!(O<=e&&e<=L))throw"Only interface versions between "+O+" and "+L+" supported. You specified: "+e;function n(e){if(!e||!e.nodeType)return null;var t=m(e).children(".mq-root-block").attr(r),n=t&&v.byId[t].controller;return n?i[n.KIND_OF_MQ](n):null}var i={};function a(e,t){for(var n in t&&t.handlers&&(t.handlers={fns:t.handlers,APIClasses:i}),t)if(t.hasOwnProperty(n)){var r=t[n],a=N[n];e[n]=a?a(r):r}}n.L=h,n.R=1,n.saneKeyboardEvents=Z,n.config=function(e){return a(E.p,e),this},n.registerEmbed=function(e,t){if(!/^[a-z][a-z0-9]*$/i.test(e))throw"Embed name must start with letter and be only letters and digits";k[e]=t};var s=i.AbstractMathQuill=p(S,(function(e){e.init=function(e){this.__controller=e,this.__options=e.options,this.id=e.id,this.data=e.data},e.__mathquillify=function(e){var t=this.__controller,n=t.root,i=t.container;t.createTextarea();var a=i.addClass(e).contents().detach();n.jQ=m('<span class="mq-root-block"/>').attr(r,n.id).appendTo(i),this.latex(a.text()),this.revert=function(){return i.empty().unbind(".mathquill").removeClass("mq-editable-field mq-math-mode mq-text-mode").append(a)}},e.config=function(e){return a(this.__options,e),this},e.el=function(){return this.__controller.container[0]},e.text=function(){return this.__controller.exportText()},e.latex=function(e){return arguments.length>0?(this.__controller.renderLatexMath(e),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this):this.__controller.exportLatex()},e.html=function(){return this.__controller.root.jQ.html().replace(/ mathquill-(?:command|block)-id="?\d+"?/g,"").replace(/<span class="?mq-cursor( mq-blink)?"?>.?<\/span>/i,"").replace(/ mq-hasCursor|mq-hasCursor ?/,"").replace(/ class=(""|(?= |>))/g,"")},e.reflow=function(){return this.__controller.root.postOrder("reflow"),this}}));for(var l in n.prototype=s.prototype,i.EditableField=p(s,(function(e,n){e.__mathquillify=function(){return n.__mathquillify.apply(this,arguments),this.__controller.editable=!0,this.__controller.delegateMouseEvents(),this.__controller.editablesTextareaEvents(),this},e.focus=function(){return this.__controller.textarea.focus(),this},e.blur=function(){return this.__controller.textarea.blur(),this},e.write=function(e){return this.__controller.writeLatex(e),this.__controller.scrollHoriz(),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this},e.empty=function(){var e=this.__controller.root,t=this.__controller.cursor;return e.eachChild("postOrder","dispose"),e.ends[h]=e.ends[1]=0,e.jQ.empty(),delete t.selection,t.insAtRightEnd(e),this},e.cmd=function(e){var t=this.__controller.notify(),n=t.cursor;if(/^\\[a-z]+$/i.test(e)){e=e.slice(1);var r=x[e]||Ue[e];r&&(e=r(e),n.selection&&e.replaces(n.replaceSelection()),e.createLeftOf(n.show()),this.__controller.scrollHoriz())}else n.parent.write(n,e);return t.blurred&&n.hide().parent.blur(),this},e.select=function(){var e=this.__controller;for(e.notify("move").cursor.insAtRightEnd(e.root);e.cursor[h];)e.selectLeft();return this},e.clearSelection=function(){return this.__controller.cursor.clearSelection(),this},e.moveToDirEnd=function(e){return this.__controller.notify("move").cursor.insAtDirEnd(e,this.__controller.root),this},e.moveToLeftEnd=function(){return this.moveToDirEnd(h)},e.moveToRightEnd=function(){return this.moveToDirEnd(1)},e.keystroke=function(e){e=e.replace(/^\s+|\s+$/g,"").split(/\s+/);for(var t=0;t<e.length;t+=1)this.__controller.keystroke(e[t],{preventDefault:o});return this},e.typedText=function(e){for(var t=0;t<e.length;t+=1)this.__controller.typedText(e.charAt(t));return this},e.dropEmbedded=function(e,t,n){var r=e-m(window).scrollLeft(),i=t-m(window).scrollTop(),a=document.elementFromPoint(r,i);this.__controller.seek(m(a),e,t),_e().setOptions(n).createLeftOf(this.__controller.cursor)},e.clickAt=function(e,n,r){r=r||document.elementFromPoint(e,n);var i=this.__controller,a=i.root;return t.contains(a.jQ[0],r)||(r=a.jQ[0]),i.seek(m(r),e+pageXOffset,n+pageYOffset),i.blurred&&this.focus(),this},e.ignoreNextMousedown=function(e){return this.__controller.cursor.options.ignoreNextMousedown=e,this}})),n.EditableField=function(){throw"wtf don't call me, I'm 'abstract'"},n.EditableField.prototype=i.EditableField.prototype,C)!function(t,r){var a=i[t]=r(i);n[t]=function(r,i){var o=n(r);if(o instanceof a||!r||!r.nodeType)return o;var s=A(a.RootBlock(),m(r),E());return s.KIND_OF_MQ=t,a(s).__mathquillify(i,e)},n[t].prototype=a.prototype}(l,C[l]);return n}D.noConflict=function(){return window.MathQuill=R,D};var R=window.MathQuill;function z(e){for(var t="moveOutOf deleteOutOf selectOutOf upOutOf downOutOf".split(" "),n=0;n<t.length;n+=1)!function(t){e[t]=function(e){this.controller.handle(t,e)}}(t[n]);e.reflow=function(){this.controller.handle("reflow"),this.controller.handle("edited"),this.controller.handle("edit")}}window.MathQuill=D;var _,U=p((function(e,t,n){function r(e,t){throw"Parse Error: "+t+" at "+(e=e?"'"+e+"'":"EOF")}e.init=function(e){this._=e},e.parse=function(e){return this.skip(o)._(""+e,(function(e,t){return t}),r)},e.or=function(e){d("or is passed a parser",e instanceof n);var t=this;return n((function(n,r,i){return t._(n,r,(function(t){return e._(n,r,i)}))}))},e.then=function(e){var t=this;return n((function(r,i,a){return t._(r,(function(t,r){var o=e instanceof n?e:e(r);return d("a parser is returned",o instanceof n),o._(t,i,a)}),a)}))},e.many=function(){var e=this;return n((function(t,n,r){for(var i=[];e._(t,a,o););return n(t,i);function a(e,n){return t=e,i.push(n),!0}function o(){return!1}}))},e.times=function(e,t){arguments.length<2&&(t=e);var r=this;return n((function(n,i,a){for(var o,s=[],l=!0,c=0;c<e;c+=1)if(!(l=r._(n,u,f)))return a(n,o);for(;c<t&&l;c+=1)l=r._(n,u,d);return i(n,s);function u(e,t){return s.push(t),n=e,!0}function f(e,t){return o=t,n=e,!1}function d(e,t){return!1}}))},e.result=function(e){return this.then(a(e))},e.atMost=function(e){return this.times(0,e)},e.atLeast=function(e){var t=this;return t.times(e).then((function(e){return t.many().map((function(t){return e.concat(t)}))}))},e.map=function(e){return this.then((function(t){return a(e(t))}))},e.skip=function(e){return this.then((function(t){return e.result(t)}))};this.string=function(e){var t=e.length,r="expected '"+e+"'";return n((function(n,i,a){var o=n.slice(0,t);return o===e?i(n.slice(t),o):a(n,r)}))};var i=this.regex=function(e){d("regexp parser is anchored","^"===e.toString().charAt(1));var t="expected "+e;return n((function(n,r,i){var a=e.exec(n);if(a){var o=a[0];return r(n.slice(o.length),o)}return i(n,t)}))},a=n.succeed=function(e){return n((function(t,n){return n(t,e)}))},o=(n.fail=function(e){return n((function(t,n,r){return r(t,e)}))},n.letter=i(/^[a-z]/i),n.letters=i(/^[a-z]*/i),n.digit=i(/^[0-9]/),n.digits=i(/^[0-9]*/),n.whitespace=i(/^\s+/),n.optWhitespace=i(/^\s*/),n.any=n((function(e,t,n){return e?t(e.slice(1),e.charAt(0)):n(e,"expected any character")})),n.all=n((function(e,t,n){return t("",e)})),n.eof=n((function(e,t,n){return e?n(e,"expected EOF"):t(e,e)})))})),Z=(_={8:"Backspace",9:"Tab",10:"Enter",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Esc",32:"Spacebar",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",45:"Insert",46:"Del",144:"NumLock"},function(e,n){var r,i=null,a=null,s=t(e),l=t(n.container||s),c=o;function u(e){c=e,clearTimeout(r),r=setTimeout(e)}function f(e){u((function(t){c=o,clearTimeout(r),e(t)}))}l.bind("keydown keypress input keyup focusout paste",(function(e){c(e)}));var d=!1;function p(){n.keystroke(function(e){var t,n=e.which||e.keyCode,r=_[n],i=[];return e.ctrlKey&&i.push("Ctrl"),e.originalEvent&&e.originalEvent.metaKey&&i.push("Meta"),e.altKey&&i.push("Alt"),e.shiftKey&&i.push("Shift"),t=r||String.fromCharCode(n),i.length||r?(i.push(t),i.join("-")):t}(i),i)}function h(){if(!("selectionStart"in(e=s[0]))||e.selectionStart===e.selectionEnd){var e,t=s.val();1===t.length?(s.val(""),n.typedText(t)):t&&s[0].select&&s[0].select()}}function g(){var e=s.val();s.val(""),e&&n.paste(e)}return l.bind({keydown:function(e){i=e,a=null,d&&f((function(e){e&&"focusout"===e.type||!s[0].select||s[0].select()})),p()},keypress:function(e){i&&a&&p(),a=e,u(h)},keyup:function(e){i&&!a&&u(h)},focusout:function(){i=a=null},cut:function(){f((function(){n.cut()}))},copy:function(){f((function(){n.copy()}))},paste:function(e){s.focus(),u(g)}}),{select:function(e){c(),c=o,clearTimeout(r),s.val(e),e&&s[0].select&&s[0].select(),d=!!e}}});A.open((function(e,t){e.exportText=function(){return this.root.foldChildren("",(function(e,t){return e+t.text()}))}})),A.open((function(e){e.focusBlurEvents=function(){var e,t=this,n=t.root,r=t.cursor;function i(){clearTimeout(e),r.selection&&r.selection.jQ.addClass("mq-blur"),a()}function a(){r.hide().parent.blur(),t.container.removeClass("mq-focused"),m(window).unbind("blur",i)}t.textarea.focus((function(){t.blurred=!1,clearTimeout(e),t.container.addClass("mq-focused"),r.parent||r.insAtRightEnd(n),r.selection?(r.selection.jQ.removeClass("mq-blur"),t.selectionChanged()):r.show()})).blur((function(){t.blurred=!0,e=setTimeout((function(){n.postOrder("intentionalBlur"),r.clearSelection().endSelection(),a()})),m(window).bind("blur",i)})),t.blurred=!0,r.hide().parent.blur()}})),A.open((function(e){e.keystroke=function(e,t){this.cursor.parent.keystroke(e,t,this)}})),v.open((function(e){e.keystroke=function(e,t,n){var r=n.cursor;switch(e){case"Ctrl-Shift-Backspace":case"Ctrl-Backspace":n.ctrlDeleteDir(h);break;case"Shift-Backspace":case"Backspace":n.backspace();break;case"Esc":case"Tab":return void n.escapeDir(1,e,t);case"Shift-Tab":case"Shift-Esc":return void n.escapeDir(h,e,t);case"End":n.notify("move").cursor.insAtRightEnd(r.parent);break;case"Ctrl-End":n.notify("move").cursor.insAtRightEnd(n.root);break;case"Shift-End":for(;r[1];)n.selectRight();break;case"Ctrl-Shift-End":for(;r[1]||r.parent!==n.root;)n.selectRight();break;case"Home":n.notify("move").cursor.insAtLeftEnd(r.parent);break;case"Ctrl-Home":n.notify("move").cursor.insAtLeftEnd(n.root);break;case"Shift-Home":for(;r[h];)n.selectLeft();break;case"Ctrl-Shift-Home":for(;r[h]||r.parent!==n.root;)n.selectLeft();break;case"Left":n.moveLeft();break;case"Shift-Left":n.selectLeft();break;case"Ctrl-Left":break;case"Right":n.moveRight();break;case"Shift-Right":n.selectRight();break;case"Ctrl-Right":break;case"Up":n.moveUp();break;case"Down":n.moveDown();break;case"Shift-Up":if(r[h])for(;r[h];)n.selectLeft();else n.selectLeft();case"Shift-Down":if(r[1])for(;r[1];)n.selectRight();else n.selectRight();case"Ctrl-Up":case"Ctrl-Down":break;case"Ctrl-Shift-Del":case"Ctrl-Del":n.ctrlDeleteDir(1);break;case"Shift-Del":case"Del":n.deleteForward();break;case"Meta-A":case"Ctrl-A":for(n.notify("move").cursor.insAtRightEnd(n.root);r[h];)n.selectLeft();break;default:return}t.preventDefault(),n.scrollHoriz()},e.moveOutOf=e.moveTowards=e.deleteOutOf=e.deleteTowards=e.unselectInto=e.selectOutOf=e.selectTowards=function(){d("overridden or never called on this node")}})),A.open((function(e){function t(e,t){var n=e.notify("upDown").cursor,r=t+"Into",i=t+"OutOf";return n[1][r]?n.insAtLeftEnd(n[1][r]):n[h][r]?n.insAtRightEnd(n[h][r]):n.parent.bubble((function(e){var t=e[i];if(t&&("function"==typeof t&&(t=e[i](n)),t instanceof v&&n.jumpUpDown(e,t),!0!==t))return!1})),e}this.onNotify((function(e){"move"!==e&&"upDown"!==e||this.show().clearSelection()})),e.escapeDir=function(e,t,n){g(e);var r=this.cursor;if(r.parent!==this.root&&n.preventDefault(),r.parent!==this.root)return r.parent.moveOutOf(e,r),this.notify("move")},N.leftRightIntoCmdGoes=function(e){if(e&&"up"!==e&&"down"!==e)throw'"up" or "down" required for leftRightIntoCmdGoes option, got "'+e+'"';return e},e.moveDir=function(e){g(e);var t=this.cursor,n=t.options.leftRightIntoCmdGoes;return t.selection?t.insDirOf(e,t.selection.ends[e]):t[e]?t[e].moveTowards(e,t,n):t.parent.moveOutOf(e,t,n),this.notify("move")},e.moveLeft=function(){return this.moveDir(h)},e.moveRight=function(){return this.moveDir(1)},e.moveUp=function(){return t(this,"up")},e.moveDown=function(){return t(this,"down")},this.onNotify((function(e){"upDown"!==e&&(this.upDownCache={})})),this.onNotify((function(e){"edit"===e&&this.show().deleteSelection()})),e.deleteDir=function(e){g(e);var t=this.cursor,n=t.selection;return this.notify("edit"),n||(t[e]?t[e].deleteTowards(e,t):t.parent.deleteOutOf(e,t)),t[h].siblingDeleted&&t[h].siblingDeleted(t.options,1),t[1].siblingDeleted&&t[1].siblingDeleted(t.options,h),t.parent.bubble("reflow"),this},e.ctrlDeleteDir=function(e){g(e);var t=this.cursor;return!t[e]||t.selection?this.deleteDir(e):(this.notify("edit"),e===h?I(t.parent.ends[h],t[h]).remove():I(t[1],t.parent.ends[1]).remove(),t.insAtDirEnd(e,t.parent),t[h].siblingDeleted&&t[h].siblingDeleted(t.options,1),t[1].siblingDeleted&&t[1].siblingDeleted(t.options,h),t.parent.bubble("reflow"),this)},e.backspace=function(){return this.deleteDir(h)},e.deleteForward=function(){return this.deleteDir(1)},this.onNotify((function(e){"select"!==e&&this.endSelection()})),e.selectDir=function(e){var t=this.notify("select").cursor,n=t.selection;g(e),t.anticursor||t.startSelection();var r=t[e];r?n&&n.ends[e]===r&&t.anticursor[-e]!==r?r.unselectInto(e,t):r.selectTowards(e,t):t.parent.selectOutOf(e,t),t.clearSelection(),t.select()||t.show()},e.selectLeft=function(){return this.selectDir(h)},e.selectRight=function(){return this.selectDir(1)}}));var F=function(){function e(e){for(var t=e[0]||V(),n=1;n<e.length;n+=1)e[n].children().adopt(t,t.ends[1],0);return t}var t=U.string,n=U.regex,r=U.letter,i=U.any,a=U.optWhitespace,o=U.succeed,s=U.fail,l=r.map((function(e){return ne(e)})),c=n(/^[^${}\\_^]/).map((function(e){return W(e)})),u=n(/^[^\\a-eg-zA-Z]/).or(t("\\").then(n(/^[a-z]+/i).or(n(/^\s+/).result(" ")).or(i))).then((function(e){var t=x[e];return t?t(e).parser():s("unknown command: \\"+e)})).or(l).or(c),f=t("{").then((function(){return p})).skip(t("}")),d=a.then(f.or(u.map((function(e){var t=V();return e.adopt(t,0,0),t})))),p=d.many().map(e).skip(a),h=t("[").then(d.then((function(e){return"]"!==e.join("latex")?o(e):s()})).many().map(e).skip(a)).skip(t("]")),g=p;return g.block=d,g.optBlock=h,g}();A.open((function(e,t){e.exportLatex=function(){return this.root.latex().replace(/(\\[a-z]+) (?![a-z])/gi,"$1")},e.writeLatex=function(e){var t=this.notify("edit").cursor,n=U.all,r=U.eof,i=F.skip(r).or(n.result(!1)).parse(e);i&&!i.isEmpty()&&(i.children().adopt(t.parent,t[h],t[1]),i.jQize().insertBefore(t.jQ),t[h]=i.ends[1],i.finalizeInsert(t.options,t),i.ends[1][1].siblingCreated&&i.ends[1][1].siblingCreated(t.options,h),i.ends[h][h].siblingCreated&&i.ends[h][h].siblingCreated(t.options,1),t.parent.bubble("reflow"));return this},e.renderLatexMath=function(e){var t=this.root,n=this.cursor,r=U.all,i=U.eof,a=F.skip(i).or(r.result(!1)).parse(e);t.eachChild("postOrder","dispose"),t.ends[h]=t.ends[1]=0,a&&a.children().adopt(t,0,0);var o=t.jQ;if(a){var s=a.join("html");o.html(s),t.jQize(o.children()),t.finalizeInsert(n.options)}else o.empty();delete n.selection,n.insAtRightEnd(t)},e.renderLatexText=function(e){var t=this.root,n=this.cursor;t.jQ.children().slice(1).remove(),t.eachChild("postOrder","dispose"),t.ends[h]=t.ends[1]=0,delete n.selection,n.show().insAtRightEnd(t);var r=U.regex,i=U.string,a=U.eof,o=U.all,s=i("$").then(F).skip(i("$").or(a)).map((function(e){var t=K(n);t.createBlocks();var r=t.ends[h];return e.children().adopt(r,0,0),t})),l=i("\\$").result("$").or(r(/^[^$]/)).map(W),c=s.or(l).many().skip(a).or(o.result(!1)).parse(e);if(c){for(var u=0;u<c.length;u+=1)c[u].adopt(t,t.ends[1],0);t.jQize().appendTo(t.jQ),t.finalizeInsert(n.options)}}})),A.open((function(e){E.p.ignoreNextMousedown=o,e.delegateMouseEvents=function(){var e=this.root.jQ;this.container.bind("mousedown.mathquill",(function(t){var n,i=m(t.target).closest(".mq-root-block"),a=v.byId[i.attr(r)||e.attr(r)].controller,s=a.cursor,l=s.blink,c=a.textareaSpan,u=a.textarea;(t.preventDefault(),t.target.unselectable=!0,s.options.ignoreNextMousedown(t))||(s.options.ignoreNextMousedown=o,a.blurred&&(a.editable||i.prepend(c),u.focus()),s.blink=o,a.seek(m(t.target),t.pageX,t.pageY).cursor.startSelection(),i.mousemove(f),m(t.target.ownerDocument).mousemove(d).mouseup((function e(t){s.blink=l,s.selection||(a.editable?s.show():c.detach()),i.unbind("mousemove",f),m(t.target.ownerDocument).unbind("mousemove",d).unbind("mouseup",e)})));function f(e){n=m(e.target)}function d(e){s.anticursor||s.startSelection(),a.seek(n,e.pageX,e.pageY).cursor.select(),n=void 0}}))}})),A.open((function(e){e.seek=function(e,t,n){var i=this.notify("select").cursor;if(e){var a=e.attr(r)||e.attr("mathquill-command-id");if(!a){var o=e.parent();a=o.attr(r)||o.attr("mathquill-command-id")}}var s=a?v.byId[a]:this.root;return d("nodeId is the id of some Node that exists",s),i.clearSelection().show(),s.seek(t,i),this.scrollHoriz(),this}})),A.open((function(e){e.scrollHoriz=function(){var e=this.cursor,t=e.selection,n=e.offset();if(n){var r=e.jQ.closest(".mq-editable-field"),i=Number(n.top-r.offset().top+2*e.jQ.height());r.find(".mq-textarea textarea").css("top",i+"px")}var a=this.root.jQ[0].getBoundingClientRect();if(t){var o=t.jQ[0].getBoundingClientRect(),s=o.left-(a.left+20),l=o.right-(a.right-20);if(t.ends[h]===e[1])if(s<0)u=s;else{if(!(l>0))return;if(o.left-l<a.left+20)u=s;else u=l}else if(l>0)u=l;else{if(!(s<0))return;if(o.right-s>a.right-20)u=l;else u=s}}else{var c=e.jQ[0].getBoundingClientRect().left;if(c>a.right-20)var u=c-(a.right-20);else{if(!(c<a.left+20))return;var u=c-(a.left+20)}}this.root.jQ.stop().animate({scrollLeft:"+="+u},100)}})),A.open((function(e){E.p.substituteTextarea=function(){return m("<textarea autocapitalize=off autocomplete=off autocorrect=off spellcheck=false x-palm-disable-ste-all=true />")[0]},e.createTextarea=function(){var e=this.textareaSpan=m('<span class="mq-textarea"></span>'),t=this.options.substituteTextarea();if(!t.nodeType)throw"substituteTextarea() must return a DOM element, got "+t;t=this.textarea=m(t).appendTo(e);var n=this;n.cursor.selectionChanged=function(){n.selectionChanged()}},e.selectionChanged=function(){var e=this;ye(e.container[0]),void 0===e.textareaSelectionTimeout&&(e.textareaSelectionTimeout=setTimeout((function(){e.setTextareaSelection()})))},e.setTextareaSelection=function(){this.textareaSelectionTimeout=void 0;var e="";this.cursor.selection&&(e=this.cursor.selection.join("latex"),this.options.statelessClipboard&&(e="$"+e+"$")),this.selectFn(e)},e.staticMathTextareaEvents=function(){var e=this,n=(e.root,e.cursor),r=e.textarea,i=e.textareaSpan;function a(){i.detach(),e.blurred=!0}this.container.prepend(t('<span class="mq-selectable">').text("$"+e.exportLatex()+"$")),e.blurred=!0,r.bind("cut paste",!1).bind("copy",(function(){e.setTextareaSelection()})).focus((function(){e.blurred=!1})).blur((function(){n.selection&&n.selection.clear(),setTimeout(a)})),e.selectFn=function(e){r.val(e),e&&r.select()}},E.p.substituteKeyboardEvents=Z,e.editablesTextareaEvents=function(){var e=this.textarea,t=this.textareaSpan,n=this.options.substituteKeyboardEvents(e,this);this.selectFn=function(e){n.select(e)},this.container.prepend(t),this.focusBlurEvents()},e.typedText=function(e){if("\n"===e)return this.handle("enter");var t=this.notify().cursor;t.parent.write(t,e),this.scrollHoriz()},e.cut=function(){var e=this,t=e.cursor;t.selection&&setTimeout((function(){e.notify("edit"),t.parent.bubble("reflow")}))},e.copy=function(){this.setTextareaSelection()},e.paste=function(e){this.options.statelessClipboard&&(e="$"===e.slice(0,1)&&"$"===e.slice(-1)?e.slice(1,-1):"\\text{"+e+"}"),this.writeLatex(e).cursor.show()}}));var G=p(v,(function(e,t){e.finalizeInsert=function(e,t){this.postOrder("finalizeTree",e),this.postOrder("contactWeld",t),this.postOrder("blur"),this.postOrder("reflow"),this[1].siblingCreated&&this[1].siblingCreated(e,h),this[h].siblingCreated&&this[h].siblingCreated(e,1),this.bubble("reflow")}})),B=p(G,(function(e,t){e.init=function(e,n,r){t.init.call(this),this.ctrlSeq||(this.ctrlSeq=e),n&&(this.htmlTemplate=n),r&&(this.textTemplate=r)},e.replaces=function(e){e.disown(),this.replacedFragment=e},e.isEmpty=function(){return this.foldChildren(!0,(function(e,t){return e&&t.isEmpty()}))},e.parser=function(){var e=F.block,t=this;return e.times(t.numBlocks()).map((function(e){t.blocks=e;for(var n=0;n<e.length;n+=1)e[n].adopt(t,t.ends[1],0);return t}))},e.createLeftOf=function(e){var n=this.replacedFragment;this.createBlocks(),t.createLeftOf.call(this,e),n&&(n.adopt(this.ends[h],0,0),n.jQ.appendTo(this.ends[h].jQ)),this.finalizeInsert(e.options),this.placeCursor(e)},e.createBlocks=function(){for(var e=this.numBlocks(),t=this.blocks=Array(e),n=0;n<e;n+=1){(t[n]=V()).adopt(this,this.ends[1],0)}},e.placeCursor=function(e){e.insAtRightEnd(this.foldChildren(this.ends[h],(function(e,t){return e.isEmpty()?e:t})))},e.moveTowards=function(e,t,n){var r=n&&this[n+"Into"];t.insAtDirEnd(-e,r||this.ends[-e])},e.deleteTowards=function(e,t){this.isEmpty()?t[e]=this.remove()[e]:this.moveTowards(e,t,null)},e.selectTowards=function(e,t){t[-e]=this,t[e]=this[e]},e.selectChildren=function(){return M(this,this)},e.unselectInto=function(e,t){t.insAtDirEnd(-e,t.anticursor.ancestors[this.id])},e.seek=function(e,t){function n(e){var t={};return t[h]=e.jQ.offset().left,t[1]=t[h]+e.jQ.outerWidth(),t}var r=this,i=n(r);if(e<i[h])return t.insLeftOf(r);if(e>i[1])return t.insRightOf(r);var a=i[h];r.eachChild((function(o){var s=n(o);return e<s[h]?(e-a<s[h]-e?o[h]?t.insAtRightEnd(o[h]):t.insLeftOf(r):t.insAtLeftEnd(o),!1):e>s[1]?void(o[1]?a=s[1]:i[1]-e<e-s[1]?t.insRightOf(r):t.insAtRightEnd(o)):(o.seek(e,t),!1)}))},e.numBlocks=function(){var e=this.htmlTemplate.match(/&\d+/g);return e?e.length:0},e.html=function(){var e=this.blocks,t=" mathquill-command-id="+this.id,n=this.htmlTemplate.match(/<[^<>]+>|[^<>]+/g);d("no unmatched angle brackets",n.join("")===this.htmlTemplate);for(var r=0,i=n[0];i;i=n[r+=1])if("/>"===i.slice(-2))n[r]=i.slice(0,-2)+t+"/>";else if("<"===i.charAt(0)){d("not an unmatched top-level close tag","/"!==i.charAt(1)),n[r]=i.slice(0,-1)+t+">";var a=1;do{d("no missing close tags",i=n[r+=1]),"</"===i.slice(0,2)?a-=1:"<"===i.charAt(0)&&"/>"!==i.slice(-2)&&(a+=1)}while(a>0)}return n.join("").replace(/>&(\d+)/g,(function(t,n){return" mathquill-block-id="+e[n].id+">"+e[n].join("html")}))},e.latex=function(){return this.foldChildren(this.ctrlSeq,(function(e,t){return e+"{"+(t.latex()||" ")+"}"}))},e.textTemplate=[""],e.text=function(){var e=this,t=0;return e.foldChildren(e.textTemplate[t],(function(n,r){t+=1;var i=r.text();return n&&"("===e.textTemplate[t]&&"("===i[0]&&")"===i.slice(-1)?n+i.slice(1,-1)+e.textTemplate[t]:n+r.text()+(e.textTemplate[t]||"")}))}})),Y=p(B,(function(e,t){e.init=function(e,n,r){r||(r=e&&e.length>1?e.slice(1):e),t.init.call(this,e,n,[r])},e.parser=function(){return U.succeed(this)},e.numBlocks=function(){return 0},e.replaces=function(e){e.remove()},e.createBlocks=o,e.moveTowards=function(e,t){t.jQ.insDirOf(e,this.jQ),t[-e]=this,t[e]=this[e]},e.deleteTowards=function(e,t){t[e]=this.remove()[e]},e.seek=function(e,t){e-this.jQ.offset().left<this.jQ.outerWidth()/2?t.insLeftOf(this):t.insRightOf(this)},e.latex=function(){return this.ctrlSeq},e.text=function(){return this.textTemplate},e.placeCursor=o,e.isEmpty=function(){return!0}})),W=p(Y,(function(e,t){e.init=function(e,n){t.init.call(this,e,"<span>"+(n||e)+"</span>")}})),H=p(Y,(function(e,t){e.init=function(e,n,r){t.init.call(this,e,'<span class="mq-binary-operator">'+n+"</span>",r)}})),V=p(G,(function(e,t){e.join=function(e){return this.foldChildren("",(function(t,n){return t+n[e]()}))},e.html=function(){return this.join("html")},e.latex=function(){return this.join("latex")},e.text=function(){return this.ends[h]===this.ends[1]&&0!==this.ends[h]?this.ends[h].text():this.join("text")},e.keystroke=function(e,n,r){return!r.options.spaceBehavesLikeTab||"Spacebar"!==e&&"Shift-Spacebar"!==e?t.keystroke.apply(this,arguments):(n.preventDefault(),void r.escapeDir("Shift-Spacebar"===e?h:1,e,n))},e.moveOutOf=function(e,t,n){!(n&&this.parent[n+"Into"])&&this[e]?t.insAtDirEnd(-e,this[e]):t.insDirOf(e,this.parent)},e.selectOutOf=function(e,t){t.insDirOf(e,this.parent)},e.deleteOutOf=function(e,t){t.unwrapGramp()},e.seek=function(e,t){var n=this.ends[1];if(!n||n.jQ.offset().left+n.jQ.outerWidth()<e)return t.insAtRightEnd(this);if(e<this.ends[h].jQ.offset().left)return t.insAtLeftEnd(this);for(;e<n.jQ.offset().left;)n=n[h];return n.seek(e,t)},e.chToCmd=function(e,t){var n;return e.match(/^[a-eg-zA-Z]$/)?ne(e):/^\d$/.test(e)?ee(e):t&&t.typingSlashWritesDivisionSymbol&&"/"===e?x["÷"](e):t&&t.typingAsteriskWritesTimesSymbol&&"*"===e?x["×"](e):(n=w[e]||x[e])?n(e):W(e)},e.write=function(e,t){var n=this.chToCmd(t,e.options);e.selection&&n.replaces(e.replaceSelection()),n.createLeftOf(e.show())},e.focus=function(){return this.jQ.addClass("mq-hasCursor"),this.jQ.removeClass("mq-empty"),this},e.blur=function(){return this.jQ.removeClass("mq-hasCursor"),this.isEmpty()&&this.jQ.addClass("mq-empty"),this}}));C.StaticMath=function(e){return p(e.AbstractMathQuill,(function(t,n){this.RootBlock=V,t.__mathquillify=function(e,t){return this.config(e),n.__mathquillify.call(this,"mq-math-mode"),this.__controller.delegateMouseEvents(),this.__controller.staticMathTextareaEvents(),this},t.init=function(){n.init.apply(this,arguments),this.__controller.root.postOrder("registerInnerField",this.innerFields=[],e.MathField)},t.latex=function(){var t=n.latex.apply(this,arguments);return arguments.length>0&&this.__controller.root.postOrder("registerInnerField",this.innerFields=[],e.MathField),t}}))};var q=p(V,z);C.MathField=function(e){return p(e.EditableField,(function(e,t){this.RootBlock=q,e.__mathquillify=function(e,n){return this.config(e),n>1&&(this.__controller.root.reflow=o),t.__mathquillify.call(this,"mq-editable-field mq-math-mode"),delete this.__controller.root.reflow,this}}))};var Q=p(v,(function(e,t){function n(e){e.jQ[0].normalize();var t=e.jQ[0].firstChild;if(t){d("only node in TextBlock span is Text node",3===t.nodeType);var n=J(t.data);return n.jQadd(t),e.children().disown(),n.adopt(e,0,0)}}e.ctrlSeq="\\text",e.replaces=function(e){e instanceof I?this.replacedText=e.remove().jQ.text():"string"==typeof e&&(this.replacedText=e)},e.jQadd=function(e){t.jQadd.call(this,e),this.ends[h]&&this.ends[h].jQadd(this.jQ[0].firstChild)},e.createLeftOf=function(e){if(t.createLeftOf.call(this,e),this[1].siblingCreated&&this[1].siblingCreated(e.options,h),this[h].siblingCreated&&this[h].siblingCreated(e.options,1),this.bubble("reflow"),e.insAtRightEnd(this),this.replacedText)for(var n=0;n<this.replacedText.length;n+=1)this.write(e,this.replacedText.charAt(n))},e.parser=function(){var e=this,t=U.string,n=U.regex;return U.optWhitespace.then(t("{")).then(n(/^[^}]*/)).skip(t("}")).map((function(t){return 0===t.length?I():(J(t).adopt(e,0,0),e)}))},e.textContents=function(){return this.foldChildren("",(function(e,t){return e+t.text}))},e.text=function(){return'"'+this.textContents()+'"'},e.latex=function(){var e=this.textContents();return 0===e.length?"":"\\text{"+e.replace(/\\/g,"\\backslash ").replace(/[{}]/g,"\\$&")+"}"},e.html=function(){return'<span class="mq-text-mode" mathquill-command-id='+this.id+">"+this.textContents()+"</span>"},e.moveTowards=function(e,t){t.insAtDirEnd(-e,this)},e.moveOutOf=function(e,t){t.insDirOf(e,this)},e.unselectInto=e.moveTowards,e.selectTowards=B.prototype.selectTowards,e.deleteTowards=B.prototype.deleteTowards,e.selectOutOf=function(e,t){t.insDirOf(e,this)},e.deleteOutOf=function(e,t){this.isEmpty()&&t.insRightOf(this)},e.write=function(e,n){if(e.show().deleteSelection(),"$"!==n)e[h]?e[h].appendText(n):J(n).createLeftOf(e);else if(this.isEmpty())e.insRightOf(this),W("\\$","$").createLeftOf(e);else if(e[1])if(e[h]){var r=Q(),i=this.ends[h];i.disown().jQ.detach(),i.adopt(r,0,0),e.insLeftOf(this),t.createLeftOf.call(r,e)}else e.insLeftOf(this);else e.insRightOf(this)},e.seek=function(e,t){t.hide();var r=n(this),i=this.jQ.width()/this.text.length,a=Math.round((e-this.jQ.offset().left)/i);a<=0?t.insAtLeftEnd(this):a>=r.text.length?t.insAtRightEnd(this):t.insLeftOf(r.splitRight(a));for(var o=e-t.show().offset().left,s=o&&o<0?h:1,l=s;t[s]&&o*l>0;)t[s].moveTowards(s,t),l=o,o=e-t.offset().left;if(s*o<-s*l&&t[-s].moveTowards(-s,t),t.anticursor){if(t.anticursor.parent===this){var c=t[h]&&t[h].text.length;if(this.anticursorPosition===c)t.anticursor=y.copy(t);else{if(this.anticursorPosition<c){var u=t[h].splitRight(this.anticursorPosition);t[h]=u}else u=t[1].splitRight(this.anticursorPosition-c);t.anticursor=y(this,u[h],u)}}}else this.anticursorPosition=t[h]&&t[h].text.length},e.blur=function(e){V.prototype.blur.call(this),e&&(""===this.textContents()?(this.remove(),e[h]===this?e[h]=this[h]:e[1]===this&&(e[1]=this[1])):n(this))},e.focus=V.prototype.focus})),J=p(v,(function(e,t){function n(e,t){return t.charAt(e===h?0:-1+t.length)}e.init=function(e){t.init.call(this),this.text=e},e.jQadd=function(e){this.dom=e,this.jQ=m(e)},e.jQize=function(){return this.jQadd(document.createTextNode(this.text))},e.appendText=function(e){this.text+=e,this.dom.appendData(e)},e.prependText=function(e){this.text=e+this.text,this.dom.insertData(0,e)},e.insTextAtDirEnd=function(e,t){g(t),1===t?this.appendText(e):this.prependText(e)},e.splitRight=function(e){var t=J(this.text.slice(e)).adopt(this.parent,this,this[1]);return t.jQadd(this.dom.splitText(e)),this.text=this.text.slice(0,e),t},e.moveTowards=function(e,t){g(e);var r=n(-e,this.text),i=this[-e];return i?i.insTextAtDirEnd(r,e):J(r).createDir(-e,t),this.deleteTowards(e,t)},e.latex=function(){return this.text},e.deleteTowards=function(e,t){this.text.length>1?1===e?(this.dom.deleteData(0,1),this.text=this.text.slice(1)):(this.dom.deleteData(-1+this.text.length,1),this.text=this.text.slice(0,-1)):(this.remove(),this.jQ.remove(),t[e]=this[e])},e.selectTowards=function(e,t){g(e);var r=t.anticursor,i=n(-e,this.text);if(r[e]===this){var a=J(i).createDir(e,t);r[e]=a,t.insDirOf(e,a)}else{var o=this[-e];if(o)o.insTextAtDirEnd(i,e);else(a=J(i).createDir(-e,t)).jQ.insDirOf(-e,t.selection.jQ);1===this.text.length&&r[-e]===this&&(r[-e]=this[-e])}return this.deleteTowards(e,t)}}));function X(e,t,n){return p(Q,{ctrlSeq:e,htmlTemplate:"<"+t+" "+n+">&0</"+t+">"})}x.text=x.textnormal=x.textrm=x.textup=x.textmd=Q,x.em=x.italic=x.italics=x.emph=x.textit=x.textsl=X("\\textit","i",'class="mq-text-mode"'),x.strong=x.bold=x.textbf=X("\\textbf","b",'class="mq-text-mode"'),x.sf=x.textsf=X("\\textsf","span",'class="mq-sans-serif mq-text-mode"'),x.tt=x.texttt=X("\\texttt","span",'class="mq-monospace mq-text-mode"'),x.textsc=X("\\textsc","span",'style="font-variant:small-caps" class="mq-text-mode"'),x.uppercase=X("\\uppercase","span",'style="text-transform:uppercase" class="mq-text-mode"'),x.lowercase=X("\\lowercase","span",'style="text-transform:lowercase" class="mq-text-mode"');var K=p(B,(function(e,t){e.init=function(e){t.init.call(this,"$"),this.cursor=e},e.htmlTemplate='<span class="mq-math-mode">&0</span>',e.createBlocks=function(){t.createBlocks.call(this),this.ends[h].cursor=this.cursor,this.ends[h].write=function(e,t){"$"!==t?V.prototype.write.call(this,e,t):this.isEmpty()?(e.insRightOf(this.parent),this.parent.deleteTowards(dir,e),W("\\$","$").createLeftOf(e.show())):e[1]?e[h]?V.prototype.write.call(this,e,t):e.insLeftOf(this.parent):e.insRightOf(this.parent)}},e.latex=function(){return"$"+this.ends[h].latex()+"$"}})),$=p(q,(function(e,t){e.keystroke=function(e){if("Spacebar"!==e&&"Shift-Spacebar"!==e)return t.keystroke.apply(this,arguments)},e.write=function(e,t){var n;(e.show().deleteSelection(),"$"===t)?K(e).createLeftOf(e):("<"===t?n="&lt;":">"===t&&(n="&gt;"),W(t,n).createLeftOf(e))}}));C.TextField=function(e){return p(e.EditableField,(function(e,t){this.RootBlock=$,e.__mathquillify=function(){return t.__mathquillify.call(this,"mq-editable-field mq-text-mode")},e.latex=function(e){return arguments.length>0?(this.__controller.renderLatexText(e),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this):this.__controller.exportLatex()}}))};var ee=p(W,(function(e,t){e.createLeftOf=function(e){e.options.autoSubscriptNumerals&&e.parent!==e.parent.parent.sub&&(e[h]instanceof te&&!1!==e[h].isItalic||e[h]instanceof Ae&&e[h][h]instanceof te&&!1!==e[h][h].isItalic)?(x._().createLeftOf(e),t.createLeftOf.call(this,e),e.insRightOf(e.parent.parent)):t.createLeftOf.call(this,e)}})),te=p(Y,(function(e,t){e.init=function(e,n){t.init.call(this,e,"<var>"+(n||e)+"</var>")},e.text=function(){var e=this.ctrlSeq;return this.isPartOfOperator?"\\"==e[0]?e=e.slice(1,e.length):" "==e[e.length-1]&&(e=e.slice(0,-1)):(!this[h]||this[h]instanceof te||this[h]instanceof H||"\\ "===this[h].ctrlSeq||(e="*"+e),!this[1]||this[1]instanceof H||this[1]instanceof Ae||(e+="*")),e}}));E.p.autoCommands={_maxLength:0},N.autoCommands=function(e){if(!/^[a-z]+(?: [a-z]+)*$/i.test(e))throw'"'+e+'" not a space-delimited list of only letters';for(var t=e.split(" "),n={},r=0,i=0;i<t.length;i+=1){var o=t[i];if(o.length<2)throw'autocommand "'+o+'" not minimum length of 2';if(x[o]===oe)throw'"'+o+'" is a built-in operator name';n[o]=1,r=a(r,o.length)}return n._maxLength=r,n};var ne=p(te,(function(e,t){function n(e){return!e||e instanceof H||e instanceof Ee}e.init=function(e){return t.init.call(this,this.letter=e)},e.createLeftOf=function(e){t.createLeftOf.apply(this,arguments);var n=e.options.autoCommands,r=n._maxLength;if(r>0){for(var i="",a=this,o=0;a instanceof ne&&a.ctrlSeq===a.letter&&o<r;)i=a.letter+i,a=a[h],o+=1;for(;i.length;){if(n.hasOwnProperty(i)){for(o=1,a=this;o<i.length;o+=1,a=a[h]);return I(a,this).remove(),e[h]=a[h],x[i](i).createLeftOf(e)}i=i.slice(1)}}},e.italicize=function(e){return this.isItalic=e,this.isPartOfOperator=!e,this.jQ.toggleClass("mq-operator-name",!e),this},e.finalizeTree=e.siblingDeleted=e.siblingCreated=function(e,t){t!==h&&this[1]instanceof ne||this.autoUnItalicize(e)},e.autoUnItalicize=function(e){var t=e.autoOperatorNames;if(0!==t._maxLength){for(var r=this.letter,a=this[h];a instanceof ne;a=a[h])r=a.letter+r;for(var o=this[1];o instanceof ne;o=o[1])r+=o.letter;I(a[1]||this.parent.ends[h],o[h]||this.parent.ends[1]).each((function(e){e.italicize(!0).jQ.removeClass("mq-first mq-last mq-followed-by-supsub"),e.ctrlSeq=e.letter}));e:for(var s=0,l=a[1]||this.parent.ends[h];s<r.length;s+=1,l=l[1])for(var c=i(t._maxLength,r.length-s);c>0;c-=1){var u=r.slice(s,s+c);if(t.hasOwnProperty(u)){for(var f=0,d=l;f<c;f+=1,d=d[1]){d.italicize(!1);var p=d}var g=re.hasOwnProperty(u);if(l.ctrlSeq=(g?"\\":"\\operatorname{")+l.ctrlSeq,p.ctrlSeq+=g?" ":"}",ae.hasOwnProperty(u)&&p[h][h][h].jQ.addClass("mq-last"),n(l[h])||l.jQ.addClass("mq-first"),!n(p[1]))if(p[1]instanceof Ae){var m=p[1];(m.siblingCreated=m.siblingDeleted=function(){m.jQ.toggleClass("mq-after-operator-name",!(m[1]instanceof Le))})()}else p.jQ.toggleClass("mq-last",!(p[1]instanceof Le));s+=c-1,l=p;continue e}}}}})),re={},ie=E.p.autoOperatorNames={_maxLength:9},ae={limsup:1,liminf:1,projlim:1,injlim:1};!function(){for(var e="arg deg det dim exp gcd hom inf ker lg lim ln log max min sup limsup liminf injlim projlim Pr".split(" "),t=0;t<e.length;t+=1)re[e[t]]=ie[e[t]]=1;var n="sin cos tan arcsin arccos arctan sinh cosh tanh sec csc cot coth".split(" ");for(t=0;t<n.length;t+=1)re[n[t]]=1;var r="sin cos tan sec cosec csc cotan cot ctg".split(" ");for(t=0;t<r.length;t+=1)ie[r[t]]=ie["arc"+r[t]]=ie[r[t]+"h"]=ie["ar"+r[t]+"h"]=ie["arc"+r[t]+"h"]=1;var i="gcf hcf lcm proj span".split(" ");for(t=0;t<i.length;t+=1)ie[i[t]]=1}(),N.autoOperatorNames=function(e){if(!/^[a-z]+(?: [a-z]+)*$/i.test(e))throw'"'+e+'" not a space-delimited list of only letters';for(var t=e.split(" "),n={},r=0,i=0;i<t.length;i+=1){var o=t[i];if(o.length<2)throw'"'+o+'" not minimum length of 2';n[o]=1,r=a(r,o.length)}return n._maxLength=r,n};var oe=p(Y,(function(e,t){e.init=function(e){this.ctrlSeq=e},e.createLeftOf=function(e){for(var t=this.ctrlSeq,n=0;n<t.length;n+=1)ne(t.charAt(n)).createLeftOf(e)},e.parser=function(){for(var e=this.ctrlSeq,t=V(),n=0;n<e.length;n+=1)ne(e.charAt(n)).adopt(t,t.ends[1],0);return U.succeed(t.children())}}));for(var se in ie)ie.hasOwnProperty(se)&&(x[se]=oe);x.operatorname=p(B,(function(e){e.createLeftOf=o,e.numBlocks=function(){return 1},e.parser=function(){return F.block.map((function(e){return e.children()}))}})),x.f=p(ne,(function(e,t){e.init=function(){Y.p.init.call(this,this.letter="f",'<var class="mq-f">f</var>')},e.italicize=function(e){return this.jQ.html("f").toggleClass("mq-f",e),t.italicize.apply(this,arguments)}})),x[" "]=x.space=f(W,"\\ ","&nbsp;"),x[","]=f(W,"{,}",","),x["'"]=x.prime=f(W,"'","&prime;"),x["″"]=x.dprime=f(W,"″","&Prime;"),x.backslash=f(W,"\\backslash ","\\"),w["\\"]||(w["\\"]=x.backslash),x.$=f(W,"\\$","$");var le=p(Y,(function(e,t){e.init=function(e,n){t.init.call(this,e,'<span class="mq-nonSymbola">'+(n||e)+"</span>")}}));x["@"]=le,x["#"]=f(le,"\\#","#"),x["&"]=f(le,"\\&","&amp;"),x["%"]=f(le,"\\%","%"),x.alpha=x.beta=x.gamma=x.delta=x.zeta=x.eta=x.theta=x.iota=x.kappa=x.mu=x.nu=x.xi=x.rho=x.sigma=x.tau=x.chi=x.psi=x.omega=p(te,(function(e,t){e.init=function(e){t.init.call(this,"\\"+e+" ","&"+e+";")}})),x.phi=f(te,"\\phi ","&#981;"),x.phiv=x.varphi=f(te,"\\varphi ","&phi;"),x.epsilon=f(te,"\\epsilon ","&#1013;"),x.epsiv=x.varepsilon=f(te,"\\varepsilon ","&epsilon;"),x.piv=x.varpi=f(te,"\\varpi ","&piv;"),x.sigmaf=x.sigmav=x.varsigma=f(te,"\\varsigma ","&sigmaf;"),x.thetav=x.vartheta=x.thetasym=f(te,"\\vartheta ","&thetasym;"),x.upsilon=x.upsi=f(te,"\\upsilon ","&upsilon;"),x.gammad=x.Gammad=x.digamma=f(te,"\\digamma ","&#989;"),x.kappav=x.varkappa=f(te,"\\varkappa ","&#1008;"),x.rhov=x.varrho=f(te,"\\varrho ","&#1009;"),x.pi=x["π"]=f(le,"\\pi ","&pi;"),x.lambda=f(le,"\\lambda ","&lambda;"),x.Upsilon=x.Upsi=x.upsih=x.Upsih=f(Y,"\\Upsilon ",'<var style="font-family: serif">&upsih;</var>'),x.Gamma=x.Delta=x.Theta=x.Lambda=x.Xi=x.Pi=x.Sigma=x.Phi=x.Psi=x.Omega=x.forall=p(W,(function(e,t){e.init=function(e){t.init.call(this,"\\"+e+" ","&"+e+";")}}));var ce=p(B,(function(e){e.init=function(e){this.latex=e},e.createLeftOf=function(e){var t=F.parse(this.latex);t.children().adopt(e.parent,e[h],e[1]),e[h]=t.ends[1],t.jQize().insertBefore(e.jQ),t.finalizeInsert(e.options,e),t.ends[1][1].siblingCreated&&t.ends[1][1].siblingCreated(e.options,h),t.ends[h][h].siblingCreated&&t.ends[h][h].siblingCreated(e.options,1),e.parent.bubble("reflow")},e.parser=function(){var e=F.parse(this.latex).children();return U.succeed(e)}}));x["⁰"]=f(ce,"^0"),x["¹"]=f(ce,"^1"),x["²"]=f(ce,"^2"),x["³"]=f(ce,"^3"),x["⁴"]=f(ce,"^4"),x["⁵"]=f(ce,"^5"),x["⁶"]=f(ce,"^6"),x["⁷"]=f(ce,"^7"),x["⁸"]=f(ce,"^8"),x["⁹"]=f(ce,"^9"),x["₀"]=f(ce,"_0"),x["₁"]=f(ce,"_1"),x["₂"]=f(ce,"_2"),x["₃"]=f(ce,"_3"),x["₄"]=f(ce,"_4"),x["₅"]=f(ce,"_5"),x["₆"]=f(ce,"_6"),x["₇"]=f(ce,"_7"),x["₈"]=f(ce,"_8"),x["₉"]=f(ce,"_9"),x["¼"]=f(ce,"\\frac14"),x["½"]=f(ce,"\\frac12"),x["¾"]=f(ce,"\\frac34");var ue=p(H,(function(e){e.init=W.prototype.init,e.contactWeld=e.siblingCreated=e.siblingDeleted=function(e,t){if(1!==t)return this.jQ[0].className=function e(t){return t[h]?t[h]instanceof H||/^[,;:\(\[]$/.test(t[h].ctrlSeq)?"":"mq-binary-operator":t.parent&&t.parent.parent&&t.parent.parent.isStyleBlock()?e(t.parent.parent):""}(this),this}}));x["+"]=f(ue,"+","+"),x["–"]=x["-"]=f(ue,"-","&minus;"),x["±"]=x.pm=x.plusmn=x.plusminus=f(ue,"\\pm ","&plusmn;"),x.mp=x.mnplus=x.minusplus=f(ue,"\\mp ","&#8723;"),w["*"]=x.sdot=x.cdot=f(H,"\\cdot ","&middot;","*");var fe=p(H,(function(e,t){e.init=function(e,n){this.data=e,this.strict=n;var r=n?"Strict":"";t.init.call(this,e["ctrlSeq"+r],e["html"+r],e["text"+r])},e.swap=function(e){this.strict=e;var t=e?"Strict":"";this.ctrlSeq=this.data["ctrlSeq"+t],this.jQ.html(this.data["html"+t]),this.textTemplate=[this.data["text"+t]]},e.deleteTowards=function(e,n){if(e===h&&!this.strict)return this.swap(!0),void this.bubble("reflow");t.deleteTowards.apply(this,arguments)}})),de={ctrlSeq:"\\le ",html:"&le;",text:"≤",ctrlSeqStrict:"<",htmlStrict:"&lt;",textStrict:"<"},pe={ctrlSeq:"\\ge ",html:"&ge;",text:"≥",ctrlSeqStrict:">",htmlStrict:"&gt;",textStrict:">"};x["<"]=x.lt=f(fe,de,!0),x[">"]=x.gt=f(fe,pe,!0),x["≤"]=x.le=x.leq=f(fe,de,!1),x["≥"]=x.ge=x.geq=f(fe,pe,!1);var he=p(H,(function(e,t){e.init=function(){t.init.call(this,"=","=")},e.createLeftOf=function(e){if(e[h]instanceof fe&&e[h].strict)return e[h].swap(!1),void e[h].bubble("reflow");t.createLeftOf.apply(this,arguments)}}));x["="]=he,x["×"]=x.times=f(H,"\\times ","&times;","[x]"),x["÷"]=x.div=x.divide=x.divides=f(H,"\\div ","&divide;","[/]"),w["~"]=x.sim=f(H,"\\sim ","~","~"),x.notin=x.cong=x.equiv=x.oplus=x.otimes=p(H,(function(e,t){e.init=function(e){t.init.call(this,"\\"+e+" ","&"+e+";")}})),x["≠"]=x.ne=x.neq=f(H,"\\ne ","&ne;"),x["∗"]=x.ast=x.star=x.loast=x.lowast=f(H,"\\ast ","&lowast;"),x.therefor=x.therefore=f(H,"\\therefore ","&there4;"),x.cuz=x.because=f(H,"\\because ","&#8757;"),x.prop=x.propto=f(H,"\\propto ","&prop;"),x["≈"]=x.asymp=x.approx=f(H,"\\approx ","&asymp;"),x["≢"]=x.notequiv=x.nequiv=f(H,"\\not\\equiv ","&#8802;"),x.isin=x.in=f(H,"\\in ","&isin;"),x.ni=x.contains=f(H,"\\ni ","&ni;"),x.notni=x.niton=x.notcontains=x.doesnotcontain=f(H,"\\not\\ni ","&#8716;"),x.sub=x.subset=f(H,"\\subset ","&sub;"),x.sup=x.supset=x.superset=f(H,"\\supset ","&sup;"),x.nsub=x.notsub=x.nsubset=x.notsubset=f(H,"\\not\\subset ","&#8836;"),x.nsup=x.notsup=x.nsupset=x.notsupset=x.nsuperset=x.notsuperset=f(H,"\\not\\supset ","&#8837;"),x.sube=x.subeq=x.subsete=x.subseteq=f(H,"\\subseteq ","&sube;"),x.supe=x.supeq=x.supsete=x.supseteq=x.supersete=x.superseteq=f(H,"\\supseteq ","&supe;"),x.nsube=x.nsubeq=x.notsube=x.notsubeq=x.nsubsete=x.nsubseteq=x.notsubsete=x.notsubseteq=f(H,"\\not\\subseteq ","&#8840;"),x.nsupe=x.nsupeq=x.notsupe=x.notsupeq=x.nsupsete=x.nsupseteq=x.notsupsete=x.notsupseteq=x.nsupersete=x.nsuperseteq=x.notsupersete=x.notsuperseteq=f(H,"\\not\\supseteq ","&#8841;"),x.N=x.naturals=x.Naturals=f(W,"\\mathbb{N}","&#8469;"),x.P=x.primes=x.Primes=x.projective=x.Projective=x.probability=x.Probability=f(W,"\\mathbb{P}","&#8473;"),x.Z=x.integers=x.Integers=f(W,"\\mathbb{Z}","&#8484;"),x.Q=x.rationals=x.Rationals=f(W,"\\mathbb{Q}","&#8474;"),x.R=x.reals=x.Reals=f(W,"\\mathbb{R}","&#8477;"),x.C=x.complex=x.Complex=x.complexes=x.Complexes=x.complexplane=x.Complexplane=x.ComplexPlane=f(W,"\\mathbb{C}","&#8450;"),x.H=x.Hamiltonian=x.quaternions=x.Quaternions=f(W,"\\mathbb{H}","&#8461;"),x.quad=x.emsp=f(W,"\\quad "," "),x.qquad=f(W,"\\qquad "," "),x.diamond=f(W,"\\diamond ","&#9671;"),x.bigtriangleup=f(W,"\\bigtriangleup ","&#9651;"),x.ominus=f(W,"\\ominus ","&#8854;"),x.uplus=f(W,"\\uplus ","&#8846;"),x.bigtriangledown=f(W,"\\bigtriangledown ","&#9661;"),x.sqcap=f(W,"\\sqcap ","&#8851;"),x.triangleleft=f(W,"\\triangleleft ","&#8882;"),x.sqcup=f(W,"\\sqcup ","&#8852;"),x.triangleright=f(W,"\\triangleright ","&#8883;"),x.odot=x.circledot=f(W,"\\odot ","&#8857;"),x.bigcirc=f(W,"\\bigcirc ","&#9711;"),x.dagger=f(W,"\\dagger ","&#0134;"),x.ddagger=f(W,"\\ddagger ","&#135;"),x.wr=f(W,"\\wr ","&#8768;"),x.amalg=f(W,"\\amalg ","&#8720;"),x.models=f(W,"\\models ","&#8872;"),x.prec=f(W,"\\prec ","&#8826;"),x.succ=f(W,"\\succ ","&#8827;"),x.preceq=f(W,"\\preceq ","&#8828;"),x.succeq=f(W,"\\succeq ","&#8829;"),x.simeq=f(W,"\\simeq ","&#8771;"),x.mid=f(W,"\\mid ","&#8739;"),x.nmid=f(W,"\\nmid","&#8740;"),x.ll=f(W,"\\ll ","&#8810;"),x.gg=f(W,"\\gg ","&#8811;"),x.parallel=f(W,"\\parallel ","&#8741;"),x.nparallel=f(W,"\\nparallel ","&#8742;"),x.bowtie=f(W,"\\bowtie ","&#8904;"),x.sqsubset=f(W,"\\sqsubset ","&#8847;"),x.sqsupset=f(W,"\\sqsupset ","&#8848;"),x.smile=f(W,"\\smile ","&#8995;"),x.sqsubseteq=f(W,"\\sqsubseteq ","&#8849;"),x.sqsupseteq=f(W,"\\sqsupseteq ","&#8850;"),x.doteq=f(W,"\\doteq ","&#8784;"),x.frown=f(W,"\\frown ","&#8994;"),x.vdash=f(W,"\\vdash ","&#8870;"),x.dashv=f(W,"\\dashv ","&#8867;"),x.nless=f(W,"\\nless ","&#8814;"),x.ngtr=f(W,"\\ngtr ","&#8815;"),x.longleftarrow=f(W,"\\longleftarrow ","&#8592;"),x.longrightarrow=f(W,"\\longrightarrow ","&#8594;"),x.Longleftarrow=f(W,"\\Longleftarrow ","&#8656;"),x.Longrightarrow=f(W,"\\Longrightarrow ","&#8658;"),x.longleftrightarrow=f(W,"\\longleftrightarrow ","&#8596;"),x.updownarrow=f(W,"\\updownarrow ","&#8597;"),x.Longleftrightarrow=f(W,"\\Longleftrightarrow ","&#8660;"),x.Updownarrow=f(W,"\\Updownarrow ","&#8661;"),x.mapsto=f(W,"\\mapsto ","&#8614;"),x.nearrow=f(W,"\\nearrow ","&#8599;"),x.hookleftarrow=f(W,"\\hookleftarrow ","&#8617;"),x.hookrightarrow=f(W,"\\hookrightarrow ","&#8618;"),x.searrow=f(W,"\\searrow ","&#8600;"),x.leftharpoonup=f(W,"\\leftharpoonup ","&#8636;"),x.rightharpoonup=f(W,"\\rightharpoonup ","&#8640;"),x.swarrow=f(W,"\\swarrow ","&#8601;"),x.leftharpoondown=f(W,"\\leftharpoondown ","&#8637;"),x.rightharpoondown=f(W,"\\rightharpoondown ","&#8641;"),x.nwarrow=f(W,"\\nwarrow ","&#8598;"),x.ldots=f(W,"\\ldots ","&#8230;"),x.cdots=f(W,"\\cdots ","&#8943;"),x.vdots=f(W,"\\vdots ","&#8942;"),x.ddots=f(W,"\\ddots ","&#8945;"),x.surd=f(W,"\\surd ","&#8730;"),x.triangle=f(W,"\\triangle ","&#9651;"),x.ell=f(W,"\\ell ","&#8467;"),x.top=f(W,"\\top ","&#8868;"),x.flat=f(W,"\\flat ","&#9837;"),x.natural=f(W,"\\natural ","&#9838;"),x.sharp=f(W,"\\sharp ","&#9839;"),x.wp=f(W,"\\wp ","&#8472;"),x.bot=f(W,"\\bot ","&#8869;"),x.clubsuit=f(W,"\\clubsuit ","&#9827;"),x.diamondsuit=f(W,"\\diamondsuit ","&#9826;"),x.heartsuit=f(W,"\\heartsuit ","&#9825;"),x.spadesuit=f(W,"\\spadesuit ","&#9824;"),x.parallelogram=f(W,"\\parallelogram ","&#9649;"),x.square=f(W,"\\square ","&#11036;"),x.oint=f(W,"\\oint ","&#8750;"),x.bigcap=f(W,"\\bigcap ","&#8745;"),x.bigcup=f(W,"\\bigcup ","&#8746;"),x.bigsqcup=f(W,"\\bigsqcup ","&#8852;"),x.bigvee=f(W,"\\bigvee ","&#8744;"),x.bigwedge=f(W,"\\bigwedge ","&#8743;"),x.bigodot=f(W,"\\bigodot ","&#8857;"),x.bigotimes=f(W,"\\bigotimes ","&#8855;"),x.bigoplus=f(W,"\\bigoplus ","&#8853;"),x.biguplus=f(W,"\\biguplus ","&#8846;"),x.lfloor=f(W,"\\lfloor ","&#8970;"),x.rfloor=f(W,"\\rfloor ","&#8971;"),x.lceil=f(W,"\\lceil ","&#8968;"),x.rceil=f(W,"\\rceil ","&#8969;"),x.opencurlybrace=x.lbrace=f(W,"\\lbrace ","{"),x.closecurlybrace=x.rbrace=f(W,"\\rbrace ","}"),x.lbrack=f(W,"["),x.rbrack=f(W,"]"),x.slash=f(W,"/"),x.vert=f(W,"|"),x.perp=x.perpendicular=f(W,"\\perp ","&perp;"),x.nabla=x.del=f(W,"\\nabla ","&nabla;"),x.hbar=f(W,"\\hbar ","&#8463;"),x.AA=x.Angstrom=x.angstrom=f(W,"\\text\\AA ","&#8491;"),x.ring=x.circ=x.circle=f(W,"\\circ ","&#8728;"),x.bull=x.bullet=f(W,"\\bullet ","&bull;"),x.setminus=x.smallsetminus=f(W,"\\setminus ","&#8726;"),x["¬"]=x.neg=f(W,"\\neg ","&not;"),x.not=p(W,(function(e,t){e.suffixes={"\\equiv":"notequiv","\\ni":"notni","\\subset":"notsubset","\\subseteq":"notsubseteq","\\supset":"notsupset","\\supseteq":"notsupseteq"},e.init=function(){return t.init.call(this,"\\neg ","&not;")},e.parser=function(){var t=U.succeed,n=U.optWhitespace;return function e(t){var n=U.string(t.shift());return t.length?n.or(e(t)):n}(Object.keys(e.suffixes).sort((function(e,t){return t.length-e.length}))).then((function(r){return n.then(t(x[e.suffixes[r]]()))})).or(n.then(t(this)))}})),x["…"]=x.dots=x.ellip=x.hellip=x.ellipsis=x.hellipsis=f(W,"\\dots ","&hellip;"),x.converges=x.darr=x.dnarr=x.dnarrow=x.downarrow=f(W,"\\downarrow ","&darr;"),x.dArr=x.dnArr=x.dnArrow=x.Downarrow=f(W,"\\Downarrow ","&dArr;"),x.diverges=x.uarr=x.uparrow=f(W,"\\uparrow ","&uarr;"),x.uArr=x.Uparrow=f(W,"\\Uparrow ","&uArr;"),x.to=f(H,"\\to ","&rarr;"),x.rarr=x.rightarrow=f(W,"\\rightarrow ","&rarr;"),x.implies=f(H,"\\Rightarrow ","&rArr;"),x.rArr=x.Rightarrow=f(W,"\\Rightarrow ","&rArr;"),x.gets=f(H,"\\gets ","&larr;"),x.larr=x.leftarrow=f(W,"\\leftarrow ","&larr;"),x.impliedby=f(H,"\\Leftarrow ","&lArr;"),x.lArr=x.Leftarrow=f(W,"\\Leftarrow ","&lArr;"),x.harr=x.lrarr=x.leftrightarrow=f(W,"\\leftrightarrow ","&harr;"),x.iff=f(H,"\\Leftrightarrow ","&hArr;"),x.hArr=x.lrArr=x.Leftrightarrow=f(W,"\\Leftrightarrow ","&hArr;"),x.Re=x.Real=x.real=f(W,"\\Re ","&real;"),x.Im=x.imag=x.image=x.imagin=x.imaginary=x.Imaginary=f(W,"\\Im ","&image;"),x.part=x.partial=f(W,"\\partial ","&part;"),x.infty=x.infin=x.infinity=f(W,"\\infty ","&infin;"),x.alef=x.alefsym=x.aleph=x.alephsym=f(W,"\\aleph ","&alefsym;"),x.xist=x.xists=x.exist=x.exists=f(W,"\\exists ","&exist;"),x.nexists=x.nexist=f(W,"\\nexists ","&#8708;"),x.and=x.land=x.wedge=f(H,"\\wedge ","&and;"),x.or=x.lor=x.vee=f(H,"\\vee ","&or;"),x.o=x.O=x.empty=x.emptyset=x.oslash=x.Oslash=x.nothing=x.varnothing=f(H,"\\varnothing ","&empty;"),x.cup=x.union=f(H,"\\cup ","&cup;"),x.cap=x.intersect=x.intersection=f(H,"\\cap ","&cap;"),x.deg=x.degree=f(W,"\\degree ","&deg;"),x.ang=x.angle=f(W,"\\angle ","&ang;"),x.measuredangle=f(W,"\\measuredangle ","&#8737;"),x.sphericalangle=f(W,"\\sphericalangle ","&#8738;");var ge,me,ye=o,ve=document.createElement("div").style;for(var be in{transform:1,WebkitTransform:1,MozTransform:1,OTransform:1,msTransform:1})if(be in ve){me=be;break}me?ge=function(e,t,n){e.css(me,"scale("+t+","+n+")")}:"filter"in ve?(ye=function(e){e.className=e.className},ge=function(e,t,n){t/=1+(n-1)/2,e.css("fontSize",n+"em"),e.hasClass("mq-matrixed-container")||e.addClass("mq-matrixed-container").wrapInner('<span class="mq-matrixed"></span>');var r=e.children().css("filter","progid:DXImageTransform.Microsoft.Matrix(M11="+t+",SizingMethod='auto expand')");function i(){e.css("marginRight",(r.width()-1)*(t-1)/t+"px")}i();var a=setInterval(i);m(window).load((function(){clearTimeout(a),i()}))}):ge=function(e,t,n){e.css("fontSize",n+"em")};var Ie=p(B,(function(e,t){e.init=function(e,n,r){t.init.call(this,e,"<"+n+" "+r+">&0</"+n+">")}})),xe=p(te,(function(e,t){e.symbols={C:"&#8450;",H:"&#8461;",N:"&#8469;",P:"&#8473;",Q:"&#8474;",R:"&#8477;",Z:"&#8484;"},e.init=function(e){var n=e;this.symbols[e]&&(n='<span class="mq-original">'+e+"</span>"+this.symbols[e]),t.init.call(this,e,n)}}));x.mathrm=f(Ie,"\\mathrm","span",'class="mq-roman mq-font"'),x.mathit=f(Ie,"\\mathit","i",'class="mq-font"'),x.mathbf=f(Ie,"\\mathbf","b",'class="mq-font"'),x.mathsf=f(Ie,"\\mathsf","span",'class="mq-sans-serif mq-font"'),x.mathtt=f(Ie,"\\mathtt","span",'class="mq-monospace mq-font"'),x.mathbb=p(B,(function(e,t){e.init=function(){t.init.call(this,"\\mathbb",'<span class="mq-mathbb mq-font">&0</span>')},e.adopt=function(){return this.eachChild((function(e){if(!e.writeOverride){var t=e.write,n=e.deleteOutOf;e.write=e.writeOverride=function(n,r,i){var a;if(!xe.prototype.symbols[r])return t.apply(e,arguments);a=xe(r),i&&a.replaces(i),a.createLeftOf(n)},e.deleteOutOf=function(t,r){var i=[];return e.eachChild((function(t){var n=t.ctrlSeq;i.push(te(n).adopt(e,e.ends[1],0)),t.remove()})),i.length&&(r[1]=i[0]),e.jQize().appendTo(e.jQ),n.apply(e,arguments)}}})),t.adopt.apply(this,arguments)},e.finalizeTree=function(){this.eachChild((function(e){e.eachChild((function(t){var n=t.ctrlSeq,r=te;xe.prototype.symbols[n]&&(r=xe),r(n).adopt(e,e.ends[1],0),t.remove()})),e.jQize().appendTo(e.jQ)}))}})),x.underline=f(Ie,"\\underline","span",'class="mq-non-leaf mq-underline"'),x.overline=x.bar=f(Ie,"\\overline","span",'class="mq-non-leaf mq-overline"');var we=p(B,(function(e,t){e.init=function(e,n){t.init.call(this,e,"<span "+n+'><span class="mq-arrow-inner">&0</span></span>')}}));x.overrightarrow=f(we,"\\overrightarrow",'class="mq-non-leaf mq-overarrow mq-arrow-right"'),x.overleftarrow=f(we,"\\overleftarrow",'class="mq-non-leaf mq-overarrow mq-arrow-left"'),x.overleftrightarrow=f(we,"\\overleftrightarrow",'class="mq-non-leaf mq-overarrow mq-arrow-leftright"'),x.underrightarrow=f(we,"\\underrightarrow",'class="mq-non-leaf mq-underarrow mq-arrow-right"'),x.underleftarrow=f(we,"\\underleftarrow",'class="mq-non-leaf mq-underarrow mq-arrow-left"'),x.underleftrightarrow=f(we,"\\underleftrightarrow",'class="mq-non-leaf mq-underarrow mq-arrow-leftright"');var Te=p(B,(function(e,t){e.ctrlSeq="\\xrightleftharpoons",e.htmlTemplate='<span class="mq-harpoons mq-harpoons-rightleft mq-non-leaf"><span class="mq-harpoons-numerator">&0</span><span class="mq-harpoons-harpoons">&#x21cc;</span></span>'})),Me=x.xrightleftharpoons=p(Te,(function(e,t){e.ctrlSeq="\\xrightleftharpoons",e.htmlTemplate='<span class="mq-harpoons mq-harpoons-rightleft mq-non-leaf"><span class="mq-harpoons-numerator">&1</span><span class="mq-harpoons-harpoons">&#x21cc;</span><span class="mq-harpoons-denominator">&0</span></span>',e.parser=function(){return F.optBlock.then((function(e){return F.block.map((function(t){var n=Me();return n.blocks=[e,t],e.adopt(n,0,0),t.adopt(n,e,0),n}))})).or(F.block.map((function(e){var t=Te();return t.blocks=[e],e.adopt(t,0,0),t})))},e.latex=function(){return this.ctrlSeq+"["+this.ends[h].latex()+"]{"+this.ends[1].latex()+"}"}}));x.overarc=f(Ie,"\\overarc","span",'class="mq-non-leaf mq-overarc"'),x.dot=p(B,(function(e,t){e.init=function(){t.init.call(this,"\\dot",'<span class="mq-non-leaf"><span class="mq-dot-recurring-inner"><span class="mq-dot-recurring">&#x2d9;</span><span class="mq-empty-box">&0</span></span></span>')}}));x.textcolor=p(B,(function(e,t){e.setColor=function(e){this.color=e,this.htmlTemplate='<span class="mq-textcolor" style="color:'+e+'">&0</span>'},e.latex=function(){return"\\textcolor{"+this.color+"}{"+this.blocks[0].latex()+"}"},e.parser=function(){var e=this,n=U.optWhitespace,r=U.string,i=U.regex;return n.then(r("{")).then(i(/^[#\w\s.,()%-]*/)).skip(r("}")).then((function(n){return e.setColor(n),t.parser.call(e)}))},e.isStyleBlock=function(){return!0}})),x.class=p(B,(function(e,t){e.parser=function(){var e=this,n=U.string,r=U.regex;return U.optWhitespace.then(n("{")).then(r(/^[-\w\s\\\xA0-\xFF]*/)).skip(n("}")).then((function(n){return e.cls=n||"",e.htmlTemplate='<span class="mq-class '+n+'">&0</span>',t.parser.call(e)}))},e.latex=function(){return"\\class{"+this.cls+"}{"+this.blocks[0].latex()+"}"},e.isStyleBlock=function(){return!0}}));var Ae=p(B,(function(e,t){e.ctrlSeq="_{...}^{...}",e.createLeftOf=function(e){if(this.replacedFragment||e[h]||!e.options.supSubsRequireOperand)return t.createLeftOf.apply(this,arguments)},e.contactWeld=function(e){for(var t=h;t;t=t===h&&1)if(this[t]instanceof Ae){for(var n="sub";n;n="sub"===n&&"sup"){var r=this[n],i=this[t][n];if(r){if(i)if(r.isEmpty())o=y(i,0,i.ends[h]);else{r.jQ.children().insAtDirEnd(-t,i.jQ);var a=r.children().disown(),o=y(i,a.ends[1],i.ends[h]);t===h?a.adopt(i,i.ends[1],0):a.adopt(i,0,i.ends[h])}else this[t].addBlock(r.disown());this.placeCursor=function(e,n){return function(r){r.insAtDirEnd(-t,e||n)}}(i,r)}}this.remove(),e&&e[h]===this&&(1===t&&o?o[h]?e.insRightOf(o[h]):e.insAtLeftEnd(o.parent):e.insRightOf(this[t]));break}},E.p.charsThatBreakOutOfSupSub="",e.finalizeTree=function(){this.ends[h].write=function(e,t){if(e.options.autoSubscriptNumerals&&this===this.parent.sub){if("_"===t)return;var n=this.chToCmd(t,e.options);return n instanceof Y?e.deleteSelection():e.clearSelection().insRightOf(this.parent),n.createLeftOf(e.show())}e[h]&&!e[1]&&!e.selection&&e.options.charsThatBreakOutOfSupSub.indexOf(t)>-1&&e.insRightOf(this.parent),V.p.write.apply(this,arguments)}},e.moveTowards=function(e,n,r){n.options.autoSubscriptNumerals&&!this.sup?n.insDirOf(e,this):t.moveTowards.apply(this,arguments)},e.deleteTowards=function(e,n){if(n.options.autoSubscriptNumerals&&this.sub){var r=this.sub.ends[-e];r instanceof Y?r.remove():r&&r.deleteTowards(e,n.insAtDirEnd(-e,this.sub)),this.sub.isEmpty()&&(this.sub.deleteOutOf(h,n.insAtLeftEnd(this.sub)),this.sup&&n.insDirOf(-e,this))}else t.deleteTowards.apply(this,arguments)},e.latex=function(){function e(e,t){var n=t&&t.latex();return t?e+(1===n.length?n:"{"+(n||" ")+"}"):""}return e("_",this.sub)+e("^",this.sup)},e.addBlock=function(e){"sub"===this.supsub?(this.sup=this.upInto=this.sub.upOutOf=e,e.adopt(this,this.sub,0).downOutOf=this.sub,e.jQ=m('<span class="mq-sup"/>').append(e.jQ.children()).attr(r,e.id).prependTo(this.jQ)):(this.sub=this.downInto=this.sup.downOutOf=e,e.adopt(this,0,this.sup).upOutOf=this.sup,e.jQ=m('<span class="mq-sub"></span>').append(e.jQ.children()).attr(r,e.id).appendTo(this.jQ.removeClass("mq-sup-only")),this.jQ.append('<span style="display:inline-block;width:0">&#8203;</span>'));for(var t=0;t<2;t+=1)!function(e,t,n,r){e[t].deleteOutOf=function(i,a){if(a.insDirOf(this[i]?-i:i,this.parent),!this.isEmpty()){var o=this.ends[i];this.children().disown().withDirAdopt(i,a.parent,a[i],a[-i]).jQ.insDirOf(-i,a.jQ),a[-i]=o}e.supsub=n,delete e[t],delete e[r+"Into"],e[n][r+"OutOf"]=Ce,delete e[n].deleteOutOf,"sub"===t&&m(e.jQ.addClass("mq-sup-only")[0].lastChild).remove(),this.remove()}}(this,"sub sup".split(" ")[t],"sup sub".split(" ")[t],"down up".split(" ")[t])}}));function Ce(e){var t=this.parent,n=e;do{if(n[1])return e.insLeftOf(t);n=n.parent.parent}while(n!==t);e.insRightOf(t)}x.subscript=x._=p(Ae,(function(e,t){e.supsub="sub",e.htmlTemplate='<span class="mq-supsub mq-non-leaf"><span class="mq-sub">&0</span><span style="display:inline-block;width:0">&#8203;</span></span>',e.textTemplate=["_"],e.finalizeTree=function(){this.downInto=this.sub=this.ends[h],this.sub.upOutOf=Ce,t.finalizeTree.call(this)}})),x.superscript=x.supscript=x["^"]=p(Ae,(function(e,t){e.supsub="sup",e.htmlTemplate='<span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup">&0</span></span>',e.textTemplate=["^"],e.finalizeTree=function(){this.upInto=this.sup=this.ends[1],this.sup.downOutOf=Ce,t.finalizeTree.call(this)}}));var Ee=p(B,(function(e,t){e.init=function(e,t){var n='<span class="mq-large-operator mq-non-leaf"><span class="mq-to"><span>&1</span></span><big>'+t+'</big><span class="mq-from"><span>&0</span></span></span>';Y.prototype.init.call(this,e,n)},e.createLeftOf=function(e){t.createLeftOf.apply(this,arguments),e.options.sumStartsWithNEquals&&(ne("n").createLeftOf(e),he().createLeftOf(e))},e.latex=function(){function e(e){return 1===e.length?e:"{"+(e||" ")+"}"}return this.ctrlSeq+"_"+e(this.ends[h].latex())+"^"+e(this.ends[1].latex())},e.parser=function(){for(var e=U.string,t=U.optWhitespace,n=U.succeed,r=F.block,i=this,a=i.blocks=[V(),V()],o=0;o<a.length;o+=1)a[o].adopt(i,i.ends[1],0);return t.then(e("_").or(e("^"))).then((function(e){var t=a["_"===e?0:1];return r.then((function(e){return e.children().adopt(t,t.ends[1],0),n(i)}))})).many().result(i)},e.finalizeTree=function(){this.downInto=this.ends[h],this.upInto=this.ends[1],this.ends[h].upOutOf=this.ends[1],this.ends[1].downOutOf=this.ends[h]}}));x["∑"]=x.sum=x.summation=f(Ee,"\\sum ","&sum;"),x["∏"]=x.prod=x.product=f(Ee,"\\prod ","&prod;"),x.coprod=x.coproduct=f(Ee,"\\coprod ","&#8720;"),x["∫"]=x.int=x.integral=p(Ee,(function(e,t){e.init=function(){Y.prototype.init.call(this,"\\int ",'<span class="mq-int mq-non-leaf"><big>&int;</big><span class="mq-supsub mq-non-leaf"><span class="mq-sup"><span class="mq-sup-inner">&1</span></span><span class="mq-sub">&0</span><span style="display:inline-block;width:0">&#8203</span></span></span>')},e.createLeftOf=B.p.createLeftOf})),x.bigg=x.intsub=x.integralsubstitution=p(Ee,(function(e,t){e.init=function(){Y.prototype.init.call(this,"\\bigg",'<span class="mq-intsub mq-non-leaf"><big>/</big><span class="mq-supsub mq-non-leaf"><span class="mq-sup"><span class="mq-sup-inner">&1</span></span><span class="mq-sub">&0</span><span style="display:inline-block;width:0">&#8203</span></span></span>')},e.createLeftOf=B.p.createLeftOf,e.parser=function(){var e=this,t=U.string,n=U.optWhitespace,r=U.succeed;e.blocks=[V(),V()];for(var i=0;i<e.blocks.length;i+=1)e.blocks[i].adopt(e,e.ends[1],0);return t("/_{").then(t("\\!").many()).then(F).then((function(t){return t.children().adopt(e.blocks[0],e.blocks[0].ends[1],0),r(e)})).then(n).then(t("}")).then(n).then(t("^")).then(F.block).then((function(t){return t.children().adopt(e.blocks[1],e.blocks[1].ends[1],0),r(e)}))},e.latex=function(){function e(e){return 1===e.length?e:"{"+(e||" ")+"}"}return"\\bigg/_{\\!\\!\\!\\!\\!"+e(this.blocks[0].latex())+"}^"+e(this.blocks[1].latex())}}));var Ne=x.frac=x.dfrac=x.cfrac=x.fraction=p(B,(function(e,t){e.ctrlSeq="\\frac",e.htmlTemplate='<span class="mq-fraction mq-non-leaf"><span class="mq-numerator">&0</span><span class="mq-denominator">&1</span><span style="display:inline-block;width:0">&#8203;</span></span>',e.textTemplate=["(",")/(",")"],e.finalizeTree=function(){this.upInto=this.ends[1].upOutOf=this.ends[h],this.downInto=this.ends[h].downOutOf=this.ends[1]}})),Se=x.over=w["/"]=p(Ne,(function(e,t){e.createLeftOf=function(e){if(!this.replacedFragment){for(var n=e[h];n&&!(n instanceof H||n instanceof(x.text||o)||n instanceof Ee||"\\ "===n.ctrlSeq||/^[,;:]$/.test(n.ctrlSeq));)n=n[h];n instanceof Ee&&n[1]instanceof Ae&&(n=n[1])[1]instanceof Ae&&n[1].ctrlSeq!=n.ctrlSeq&&(n=n[1]),n!==e[h]&&(this.replaces(I(n[1]||e.parent.ends[h],e[h])),e[h]=n)}t.createLeftOf.call(this,e)}})),ke=x.sqrt=x["√"]=p(B,(function(e,t){e.ctrlSeq="\\sqrt",e.htmlTemplate='<span class="mq-non-leaf"><span class="mq-scaled mq-sqrt-prefix">&radic;</span><span class="mq-non-leaf mq-sqrt-stem">&0</span></span>',e.textTemplate=["sqrt(",")"],e.parser=function(){return F.optBlock.then((function(e){return F.block.map((function(t){var n=je();return n.blocks=[e,t],e.adopt(n,0,0),t.adopt(n,e,0),n}))})).or(t.parser.call(this))},e.reflow=function(){var e=this.ends[1].jQ;ge(e.prev(),1,e.innerHeight()/+e.css("fontSize").slice(0,-2)-.1)}})),je=(x.hat=p(B,(function(e,t){e.ctrlSeq="\\hat",e.htmlTemplate='<span class="mq-non-leaf"><span class="mq-hat-prefix">^</span><span class="mq-hat-stem">&0</span></span>',e.textTemplate=["hat(",")"]})),x.nthroot=p(ke,(function(e,t){e.htmlTemplate='<span class="mq-nthroot mq-non-leaf">&0</span><span class="mq-scaled"><span class="mq-sqrt-prefix mq-scaled">&radic;</span><span class="mq-sqrt-stem mq-non-leaf">&1</span></span>',e.textTemplate=["sqrt[","](",")"],e.latex=function(){return"\\sqrt["+this.ends[h].latex()+"]{"+this.ends[1].latex()+"}"}}))),De=p(B,(function(e,t){e.init=function(e,n,r){var i='<span class="mq-non-leaf"><span class="mq-diacritic-above">'+n+'</span><span class="mq-diacritic-stem">&0</span></span>';t.init.call(this,e,i,r)}}));function Oe(e,t){e.jQadd=function(){t.jQadd.apply(this,arguments),this.delimjQs=this.jQ.children(":first").add(this.jQ.children(":last")),this.contentjQ=this.jQ.children(":eq(1)")},e.reflow=function(){var e=this.contentjQ.outerHeight()/parseFloat(this.contentjQ.css("fontSize"));ge(this.delimjQs,i(1+.2*(e-1),1.2),1.2*e)}}x.vec=f(De,"\\vec","&rarr;",["vec(",")"]),x.tilde=f(De,"\\tilde","~",["tilde(",")"]);var Le=p(p(B,Oe),(function(e,t){e.init=function(e,n,r,i,a){t.init.call(this,"\\left"+i,void 0,[n,r]),this.side=e,this.sides={},this.sides[h]={ch:n,ctrlSeq:i},this.sides[1]={ch:r,ctrlSeq:a}},e.numBlocks=function(){return 1},e.html=function(){return this.htmlTemplate='<span class="mq-non-leaf"><span class="mq-scaled mq-paren'+(1===this.side?" mq-ghost":"")+'">'+this.sides[h].ch+'</span><span class="mq-non-leaf">&0</span><span class="mq-scaled mq-paren'+(this.side===h?" mq-ghost":"")+'">'+this.sides[1].ch+"</span></span>",t.html.call(this)},e.latex=function(){return"\\left"+this.sides[h].ctrlSeq+this.ends[h].latex()+"\\right"+this.sides[1].ctrlSeq},e.matchBrack=function(e,t,n){return n instanceof Le&&n.side&&n.side!==-t&&(!e.restrictMismatchedBrackets||Pe[this.sides[this.side].ch]===n.sides[n.side].ch||{"(":"]","[":")"}[this.sides[h].ch]===n.sides[1].ch)&&n},e.closeOpposing=function(e){e.side=0,e.sides[this.side]=this.sides[this.side],e.delimjQs.eq(this.side===h?0:1).removeClass("mq-ghost").html(this.sides[this.side].ch)},e.createLeftOf=function(e){if(!this.replacedFragment){var n=e.options;if("|"===this.sides[h].ch)var r=this.matchBrack(n,1,e[1])||this.matchBrack(n,h,e[h])||this.matchBrack(n,0,e.parent.parent);else r=this.matchBrack(n,-this.side,e[-this.side])||this.matchBrack(n,-this.side,e.parent.parent)}if(r){var i=this.side=-r.side;this.closeOpposing(r),r===e.parent.parent&&e[i]&&I(e[i],e.parent.ends[i],-i).disown().withDirAdopt(-i,r.parent,r,r[i]).jQ.insDirOf(i,r.jQ),r.bubble("reflow")}else i=(r=this).side,r.replacedFragment?r.side=0:e[-i]&&(r.replaces(I(e[-i],e.parent.ends[-i],i)),e[-i]=0),t.createLeftOf.call(r,e);i===h?e.insAtLeftEnd(r.ends[h]):e.insRightOf(r)},e.placeCursor=o,e.unwrap=function(){this.ends[h].children().disown().adopt(this.parent,this,this[1]).jQ.insertAfter(this.jQ),this.remove()},e.deleteSide=function(e,t,n){var r=this.parent,i=this[e],a=r.ends[e];if(e===this.side)return this.unwrap(),void(i?n.insDirOf(-e,i):n.insAtDirEnd(e,r));var o=n.options,s=!this.side;if(this.side=-e,this.matchBrack(o,e,this.ends[h].ends[this.side])){this.closeOpposing(this.ends[h].ends[this.side]);var l=this.ends[h].ends[e];this.unwrap(),l.siblingCreated&&l.siblingCreated(n.options,e),i?n.insDirOf(-e,i):n.insAtDirEnd(e,r)}else{if(this.matchBrack(o,e,this.parent.parent))this.parent.parent.closeOpposing(this),this.parent.parent.unwrap();else{if(t&&s)return this.unwrap(),void(i?n.insDirOf(-e,i):n.insAtDirEnd(e,r));this.sides[e]={ch:Pe[this.sides[this.side].ch],ctrlSeq:Pe[this.sides[this.side].ctrlSeq]},this.delimjQs.removeClass("mq-ghost").eq(e===h?0:1).addClass("mq-ghost").html(this.sides[e].ch)}if(i){l=this.ends[h].ends[e];I(i,a,-e).disown().withDirAdopt(-e,this.ends[h],l,0).jQ.insAtDirEnd(e,this.ends[h].jQ.removeClass("mq-empty")),l.siblingCreated&&l.siblingCreated(n.options,e),n.insDirOf(-e,i)}else t?n.insDirOf(e,this):n.insAtDirEnd(e,this.ends[h])}},e.deleteTowards=function(e,t){this.deleteSide(-e,!1,t)},e.finalizeTree=function(){this.ends[h].deleteOutOf=function(e,t){this.parent.deleteSide(e,!0,t)},this.finalizeTree=this.intentionalBlur=function(){this.delimjQs.eq(this.side===h?1:0).removeClass("mq-ghost"),this.side=0}},e.siblingCreated=function(e,t){t===-this.side&&this.finalizeTree()}})),Pe={"(":")",")":"(","[":"]","]":"[","{":"}","}":"{","\\{":"\\}","\\}":"\\{","&lang;":"&rang;","&rang;":"&lang;","\\langle ":"\\rangle ","\\rangle ":"\\langle ","|":"|","\\lVert ":"\\rVert ","\\rVert ":"\\lVert "};function Re(e,t){t=t||e;var n=Pe[e],r=Pe[t];w[e]=f(Le,h,e,n,t,r),w[n]=f(Le,1,e,n,t,r)}Re("("),Re("["),Re("{","\\{"),x.langle=f(Le,h,"&lang;","&rang;","\\langle ","\\rangle "),x.rangle=f(Le,1,"&lang;","&rang;","\\langle ","\\rangle "),w["|"]=f(Le,h,"|","|","|","|"),x.lVert=f(Le,h,"&#8741;","&#8741;","\\lVert ","\\rVert "),x.rVert=f(Le,1,"&#8741;","&#8741;","\\lVert ","\\rVert "),x.left=p(B,(function(e){e.parser=function(){var e=U.regex,t=U.string,n=(U.succeed,U.optWhitespace);return n.then(e(/^(?:[([|]|\\\{|\\langle\b|\\lVert\b)/)).then((function(r){var i="\\"===r.charAt(0)?r.slice(1):r;return"\\langle"==r&&(i="&lang;",r+=" "),"\\lVert"==r&&(i="&#8741;",r+=" "),F.then((function(a){return t("\\right").skip(n).then(e(/^(?:[\])|]|\\\}|\\rangle\b|\\rVert\b)/)).map((function(e){var t="\\"===e.charAt(0)?e.slice(1):e;"\\rangle"==e&&(t="&rang;",e+=" "),"\\rVert"==e&&(t="&#8741;",e+=" ");var n=Le(0,i,t,r,e);return n.blocks=[a],a.adopt(n,0,0),n}))}))}))}})),x.right=p(B,(function(e){e.parser=function(){return U.fail("unmatched \\right")}}));var ze=x.binom=x.binomial=p(p(B,Oe),(function(e,t){e.ctrlSeq="\\binom",e.htmlTemplate='<span class="mq-non-leaf"><span class="mq-paren mq-scaled">(</span><span class="mq-non-leaf"><span class="mq-array mq-non-leaf"><span>&0</span><span>&1</span></span></span><span class="mq-paren mq-scaled">)</span></span>',e.textTemplate=["choose(",",",")"]}));x.choose=p(ze,(function(e){e.createLeftOf=Se.prototype.createLeftOf}));x.editable=x.MathQuillMathField=p(B,(function(e,t){e.ctrlSeq="\\MathQuillMathField",e.htmlTemplate='<span class="mq-editable-field"><span class="mq-root-block">&0</span></span>',e.parser=function(){var e=this,n=U.string,r=U.regex,i=U.succeed;return n("[").then(r(/^[a-z][a-z0-9]*/i)).skip(n("]")).map((function(t){e.name=t})).or(i()).then(t.parser.call(e))},e.finalizeTree=function(e){var t=A(this.ends[h],this.jQ,e);t.KIND_OF_MQ="MathField",t.editable=!0,t.createTextarea(),t.editablesTextareaEvents(),t.cursor.insAtRightEnd(t.root),z(t.root)},e.registerInnerField=function(e,t){e.push(e[this.name]=t(this.ends[h].controller))},e.latex=function(){return this.ends[h].latex()},e.text=function(){return this.ends[h].text()}}));var _e=x.embed=p(Y,(function(e,t){e.setOptions=function(e){function t(){return""}return this.text=e.text||t,this.htmlTemplate=e.htmlString||"",this.latex=e.latex||t,this},e.parser=function(){var e=this,t=U.string,n=U.regex,r=U.succeed;return t("{").then(n(/^[a-z][a-z0-9]*/i)).skip(t("}")).then((function(i){return t("[").then(n(/^[-\w\s]*/)).skip(t("]")).or(r()).map((function(t){return e.setOptions(k[i](t))}))}))}})),Ue={};x.begin=p(B,(function(e,t){e.parser=function(){var e=U.string,t=U.regex;return e("{").then(t(/^[a-z]+/i)).skip(e("}")).then((function(t){return(Ue[t]?Ue[t]().parser():U.fail("unknown environment type: "+t)).skip(e("\\end{"+t+"}"))}))}}));var Ze=p(B,(function(e,t){e.template=[["\\begin{","}"],["\\end{","}"]],e.wrappers=function(){return[e.template[0].join(this.environment),e.template[1].join(this.environment)]}})),Fe=Ue.matrix=p(Ze,(function(e,t){var n="&",a="\\\\";e.parentheses={left:null,right:null},e.environment="matrix",e.reflow=function(){var e=this.jQ.children("table"),t=e.outerHeight()/+e.css("fontSize").slice(0,-2),n=this.jQ.children(".mq-paren");n.length&&ge(n,i(1+.2*(t-1),1.2),1.05*t)},e.latex=function(){var e,t=this.hline,r="";this.eachChild((function(i){void 0!==e&&(e!==i.row?(r+=a+"\n",t&&(r+="\\hline\n",t=!1)):r+=n),e=i.row,r+=i.latex()}));var i=this.options?"{"+this.options+"}":"";return this.wrappers().join(i+"\n"+r+"\n")},e.html=function(){var e,n=[],r="",i=0;function a(e){return e?'<span class="mq-scaled mq-paren">'+e+"</span>":""}return this.eachChild((function(t){e!==t.row&&(e=t.row,r+="<tr>$tds</tr>",n[e]=[]),n[e].push("<td>&"+i+++"</td>")})),this.htmlTemplate='<span class="mq-matrix mq-matrix-'+this.environment+' mq-non-leaf">'+a(this.parentheses.left)+'<table class="mq-non-leaf">'+r.replace(/\$tds/g,(function(){return n.shift().join("")}))+"</table>"+a(this.parentheses.right)+"</span>",t.html.call(this)},e.createBlocks=function(){this.blocks=[Ge(0,this),Ge(0,this),Ge(1,this),Ge(1,this)]},e.parser=function(){var e=this,t=U.optWhitespace,r=U.string;return(0,U.regex)(/^({[clr](\|?[clr])*})?/).then((function(t){return t&&!e.options&&(e.options=t.slice(1,-1)),U.succeed(e)})).then(t.then(r(n).or(r(a)).or(r("\\hline")).or(F.block)).many()).skip(t).then((function(t){var n=[],r=0;function i(){e.blocks.push(Ge(r,e,n)),n=[]}e.blocks=[];for(var o=0;o<t.length;o+=1)t[o]instanceof V?n.push(t[o]):"\\hline"===t[o]?e.hline=!0:(i(),t[o]===a&&(r+=1));return i(),e.autocorrect(),U.succeed(e)}))},e.finalizeTree=function(){var e=this.jQ.find("table");e.toggleClass("mq-rows-1",1===e.find("tr").length),this.relink()},e.relink=function(){for(var e,t,n,r=this.blocks,i=[],a=0;a<r.length;a+=1)e!==(n=r[a]).row&&(i[e=n.row]=[],t=0),i[e][t]=n,n[1]=r[a+1],n[h]=r[a-1],i[e-1]&&i[e-1][t]&&(n.upOutOf=i[e-1][t],i[e-1][t].downOutOf=n),t+=1;this.ends[h]=r[0],this.ends[1]=r[r.length-1]},e.autocorrect=function(e){var t,n,r,i,a,o=[],s=(e=[],this.blocks);for(a=0;a<s.length;a+=1)e[i=s[a].row]=e[i]||[],e[i].push(s[a]),o[i]=e[i].length;if((t=Math.max.apply(null,o))!==Math.min.apply(null,o)){for(a=0;a<e.length;a+=1)for(n=t-e[a].length;n;)r=t*a+e[a].length,s.splice(r,0,Ge(a,this)),n-=1;this.relink()}},e.deleteCell=function(e){var t,n,r=[],i=[],a=[],o=[],s=this.blocks;function l(e){for(var t=[],n=0;n<e.length;n+=1)e[n].isEmpty()&&t.push(e[n]);return t.length===e.length}function c(e){for(var t=0;t<e.length;t+=1)s.indexOf(e[t])>-1&&(e[t].remove(),s.splice(s.indexOf(e[t]),1))}this.eachChild((function(s){t!==s.row&&(t=s.row,r[t]=[],n=0),i[n]=i[n]||[],i[n].push(s),r[t].push(s),s===e&&(a=r[t],o=i[n]),n+=1})),l(a)&&o.length>1&&(t=r.indexOf(a),this.eachChild((function(e){e.row>t&&(e.row-=1)})),c(a),this.jQ.find("tr").eq(t).remove()),l(o)&&a.length>1&&c(o),this.finalizeTree()},e.addRow=function(e){var t,n=[],i=[],a=[],o=m("<tr></tr>"),s=e.row,l=0;this.eachChild((function(e){e.row<=s&&n.push(e),e.row===s&&(l+=1),e.row>s&&(e.row+=1,a.push(e))}));for(var c=0;c<l;c+=1)(t=Ge(s+1)).parent=this,i.push(t),t.jQ=m('<td class="mq-empty">').attr(r,t.id).appendTo(o);return this.jQ.find("tr").eq(s).after(o),this.blocks=n.concat(i,a),i[0]},e.addColumn=function(e){var t,n,i=[],a=[];this.eachChild((function(n){i[n.row]=i[n.row]||[],i[n.row].push(n),n===e&&(t=i[n.row].length)}));for(var o=0;o<i.length;o+=1)(n=Ge(o)).parent=this,a.push(n),i[o].splice(t,0,n),n.jQ=m('<td class="mq-empty">').attr(r,n.id);return this.jQ.find("tr").each((function(e){m(this).find("td").eq(t-1).after(i[e][t].jQ)})),this.blocks=[].concat.apply([],i),a[e.row]},e.insert=function(e,t){var n=this[e](t);this.cursor=this.cursor||this.parent.cursor,this.finalizeTree(),this.bubble("reflow").cursor.insAtRightEnd(n)},e.backspace=function(e,t,n,r){var i=e[t];if(e.isEmpty()){for(this.deleteCell(e);i&&i[t]&&-1===this.blocks.indexOf(i);)i=i[t];i&&n.insAtDirEnd(-t,i),1===this.blocks.length&&this.blocks[0].isEmpty()&&(r(),this.finalizeTree()),this.bubble("edited")}}}));Ue.pmatrix=p(Fe,(function(e,t){e.environment="pmatrix",e.parentheses={left:"(",right:")"}})),Ue.bmatrix=p(Fe,(function(e,t){e.environment="bmatrix",e.parentheses={left:"[",right:"]"}})),Ue.Bmatrix=p(Fe,(function(e,t){e.environment="Bmatrix",e.parentheses={left:"{",right:"}"}})),Ue.vmatrix=p(Fe,(function(e,t){e.environment="vmatrix",e.parentheses={left:"|",right:"|"}})),Ue.Vmatrix=p(Fe,(function(e,t){e.environment="Vmatrix",e.parentheses={left:"&#8214;",right:"&#8214;"}})),Ue.cases=p(Fe,(function(e,t){e.environment="cases",e.parentheses={left:"{",right:null}})),Ue.array=p(Fe,(function(e,t){e.environment="array",e.parentheses={left:null,right:null},e.hline=!0,e.options="l|l"}));var Ge=p(V,(function(e,t){e.init=function(e,n,r){if(t.init.call(this),this.row=e,n&&this.adopt(n,n.ends[1],0),r)for(var i=0;i<r.length;i++)r[i].children().adopt(this,this.ends[1],0)},e.keystroke=function(e,n,r){switch(e){case"Tab":var i,a=this,o=0;if(this.parent.eachChild((function(e){e.row===a.row&&(e===a&&(i=o),o+=1)})),i===o-1)return n.preventDefault(),this.parent.insert("addColumn",this);break;case"Enter":var s,l=this.row+1,c=!0;if(this.parent.eachChild((function(e){e.row===l&&(s||(s=e),e.isEmpty()||(c=!1))})),n.preventDefault(),s&&c){r.cursor.insAtDirEnd(h,s);break}return this.parent.insert("addRow",this)}return t.keystroke.apply(this,arguments)},e.deleteOutOf=function(e,n){var r=this,i=arguments;this.parent.backspace(this,e,n,(function(){return t.deleteOutOf.apply(r,i)}))}})),Be=(w["\\"]=p(B,(function(e,t){e.ctrlSeq="\\",e.replaces=function(e){this._replacedFragment=e.disown(),this.isEmpty=function(){return!1}},e.htmlTemplate='<span class="mq-latex-command-input mq-non-leaf">\\<span>&0</span></span>',e.textTemplate=["\\"],e.createBlocks=function(){t.createBlocks.call(this),this.ends[h].focus=function(){return this.parent.jQ.addClass("mq-hasCursor"),this.isEmpty()&&this.parent.jQ.removeClass("mq-empty"),this},this.ends[h].blur=function(){return this.parent.jQ.removeClass("mq-hasCursor"),this.isEmpty()&&this.parent.jQ.addClass("mq-empty"),this},this.ends[h].write=function(e,t){e.show().deleteSelection(),t.match(/[a-z]/i)?W(t).createLeftOf(e):(this.parent.renderCommand(e),"\\"===t&&this.isEmpty()||e.parent.write(e,t))},this.ends[h].keystroke=function(e,n,r){return"Tab"===e||"Enter"===e||"Spacebar"===e?(this.parent.renderCommand(r.cursor),void n.preventDefault()):t.keystroke.apply(this,arguments)}},e.createLeftOf=function(e){if(t.createLeftOf.call(this,e),this._replacedFragment){var n=this.jQ[0];this.jQ=this._replacedFragment.jQ.addClass("mq-blur").bind("mousedown mousemove",(function(e){return m(e.target=n).trigger(e),!1})).insertBefore(this.jQ).add(this.jQ)}},e.latex=function(){return"\\"+this.ends[h].latex()+" "},e.renderCommand=function(e){this.jQ=this.jQ.last(),this.remove(),this[1]?e.insLeftOf(this[1]):e.insAtRightEnd(this.parent);var t=this.ends[h].latex();t||(t=" ");var n=x[t]||Ue[t];n?(n=n(t),this._replacedFragment&&n.replaces(this._replacedFragment),n.createLeftOf(e)):((n=Q()).replaces(t),n.createLeftOf(e),e.insRightOf(n),this._replacedFragment&&this._replacedFragment.remove())}})),P(1));for(var Ye in Be)!function(e,t){"function"==typeof t?(D[e]=function(){return j(),t.apply(this,arguments)},D[e].prototype=t.prototype):D[e]=t}(Ye,Be[Ye]);"object"==typeof e.exports&&(e.exports=D)}()},function(e,t,n){"use strict";(function(e,r){var i,a=n(71);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var o=Object(a.a)(i);t.a=o}).call(this,n(12),n(17)(e))},function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var l,c=[],u=!1,f=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):f=-1,c.length&&p())}function p(){if(!u){var e=s(d);u=!0;for(var t=c.length;t;){for(l=c,c=[];++f<t;)l&&l[f].run();f=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||u||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},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.Parser=void 0;var i=r(n(45)),a=new Set(["input","option","optgroup","select","button","datalist","textarea"]),o=new Set(["p"]),s={tr:new Set(["tr","th","td"]),th:new Set(["th"]),td:new Set(["thead","th","td"]),body:new Set(["head","link","script"]),li:new Set(["li"]),p:o,h1:o,h2:o,h3:o,h4:o,h5:o,h6:o,select:a,input:a,output:a,button:a,datalist:a,textarea:a,option:new Set(["option"]),optgroup:new Set(["optgroup","option"]),dd:new Set(["dt","dd"]),dt:new Set(["dt","dd"]),address:o,article:o,aside:o,blockquote:o,details:o,div:o,dl:o,fieldset:o,figcaption:o,figure:o,footer:o,form:o,header:o,hr:o,main:o,nav:o,ol:o,pre:o,section:o,table:o,ul:o,rt:new Set(["rt","rp"]),rp:new Set(["rt","rp"]),tbody:new Set(["thead","tbody"]),tfoot:new Set(["thead","tbody"])},l=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),c=new Set(["math","svg"]),u=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),f=/\s|\//,d=function(){function e(e,t){var n,r,a,o,s;void 0===t&&(t={}),this.startIndex=0,this.endIndex=null,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.options=t,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!==(n=t.lowerCaseTags)&&void 0!==n?n:!t.xmlMode,this.lowerCaseAttributeNames=null!==(r=t.lowerCaseAttributeNames)&&void 0!==r?r:!t.xmlMode,this.tokenizer=new(null!==(a=t.Tokenizer)&&void 0!==a?a:i.default)(this.options,this),null===(s=(o=this.cbs).onparserinit)||void 0===s||s.call(o,this)}return e.prototype.updatePosition=function(e){null===this.endIndex?this.tokenizer.sectionStart<=e?this.startIndex=0:this.startIndex=this.tokenizer.sectionStart-e:this.startIndex=this.endIndex+1,this.endIndex=this.tokenizer.getAbsoluteIndex()},e.prototype.ontext=function(e){var t,n;this.updatePosition(1),this.endIndex--,null===(n=(t=this.cbs).ontext)||void 0===n||n.call(t,e)},e.prototype.onopentagname=function(e){var t,n;if(this.lowerCaseTagNames&&(e=e.toLowerCase()),this.tagname=e,!this.options.xmlMode&&Object.prototype.hasOwnProperty.call(s,e))for(var r=void 0;this.stack.length>0&&s[e].has(r=this.stack[this.stack.length-1]);)this.onclosetag(r);!this.options.xmlMode&&l.has(e)||(this.stack.push(e),c.has(e)?this.foreignContext.push(!0):u.has(e)&&this.foreignContext.push(!1)),null===(n=(t=this.cbs).onopentagname)||void 0===n||n.call(t,e),this.cbs.onopentag&&(this.attribs={})},e.prototype.onopentagend=function(){var e,t;this.updatePosition(1),this.attribs&&(null===(t=(e=this.cbs).onopentag)||void 0===t||t.call(e,this.tagname,this.attribs),this.attribs=null),!this.options.xmlMode&&this.cbs.onclosetag&&l.has(this.tagname)&&this.cbs.onclosetag(this.tagname),this.tagname=""},e.prototype.onclosetag=function(e){if(this.updatePosition(1),this.lowerCaseTagNames&&(e=e.toLowerCase()),(c.has(e)||u.has(e))&&this.foreignContext.pop(),!this.stack.length||!this.options.xmlMode&&l.has(e))this.options.xmlMode||"br"!==e&&"p"!==e||(this.onopentagname(e),this.closeCurrentTag());else{var t=this.stack.lastIndexOf(e);if(-1!==t)if(this.cbs.onclosetag)for(t=this.stack.length-t;t--;)this.cbs.onclosetag(this.stack.pop());else this.stack.length=t;else"p"!==e||this.options.xmlMode||(this.onopentagname(e),this.closeCurrentTag())}},e.prototype.onselfclosingtag=function(){this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?this.closeCurrentTag():this.onopentagend()},e.prototype.closeCurrentTag=function(){var e,t,n=this.tagname;this.onopentagend(),this.stack[this.stack.length-1]===n&&(null===(t=(e=this.cbs).onclosetag)||void 0===t||t.call(e,n),this.stack.pop())},e.prototype.onattribname=function(e){this.lowerCaseAttributeNames&&(e=e.toLowerCase()),this.attribname=e},e.prototype.onattribdata=function(e){this.attribvalue+=e},e.prototype.onattribend=function(e){var t,n;null===(n=(t=this.cbs).onattribute)||void 0===n||n.call(t,this.attribname,this.attribvalue,e),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribname="",this.attribvalue=""},e.prototype.getInstructionName=function(e){var t=e.search(f),n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},e.prototype.ondeclaration=function(e){if(this.cbs.onprocessinginstruction){var t=this.getInstructionName(e);this.cbs.onprocessinginstruction("!"+t,"!"+e)}},e.prototype.onprocessinginstruction=function(e){if(this.cbs.onprocessinginstruction){var t=this.getInstructionName(e);this.cbs.onprocessinginstruction("?"+t,"?"+e)}},e.prototype.oncomment=function(e){var t,n,r,i;this.updatePosition(4),null===(n=(t=this.cbs).oncomment)||void 0===n||n.call(t,e),null===(i=(r=this.cbs).oncommentend)||void 0===i||i.call(r)},e.prototype.oncdata=function(e){var t,n,r,i,a,o;this.updatePosition(1),this.options.xmlMode||this.options.recognizeCDATA?(null===(n=(t=this.cbs).oncdatastart)||void 0===n||n.call(t),null===(i=(r=this.cbs).ontext)||void 0===i||i.call(r,e),null===(o=(a=this.cbs).oncdataend)||void 0===o||o.call(a)):this.oncomment("[CDATA["+e+"]]")},e.prototype.onerror=function(e){var t,n;null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,e)},e.prototype.onend=function(){var e,t;if(this.cbs.onclosetag)for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n]));null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)},e.prototype.reset=function(){var e,t,n,r;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack=[],null===(r=(n=this.cbs).onparserinit)||void 0===r||r.call(n,this)},e.prototype.parseComplete=function(e){this.reset(),this.end(e)},e.prototype.write=function(e){this.tokenizer.write(e)},e.prototype.end=function(e){this.tokenizer.end(e)},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){this.tokenizer.resume()},e.prototype.parseChunk=function(e){this.write(e)},e.prototype.done=function(e){this.end(e)},e}();t.Parser=d},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});var i=r(n(46)),a=r(n(24)),o=r(n(47)),s=r(n(25));function l(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function c(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"}function u(e,t,n){var r=e.toLowerCase();return e===r?function(e,i){i===r?e._state=t:(e._state=n,e._index--)}:function(i,a){a===r||a===e?i._state=t:(i._state=n,i._index--)}}function f(e,t){var n=e.toLowerCase();return function(r,i){i===n||i===e?r._state=t:(r._state=3,r._index--)}}var d=u("C",24,16),p=u("D",25,16),h=u("A",26,16),g=u("T",27,16),m=u("A",28,16),y=f("R",35),v=f("I",36),b=f("P",37),I=f("T",38),x=u("R",40,1),w=u("I",41,1),T=u("P",42,1),M=u("T",43,1),A=f("Y",45),C=f("L",46),E=f("E",47),N=u("Y",49,1),S=u("L",50,1),k=u("E",51,1),j=f("I",54),D=f("T",55),O=f("L",56),L=f("E",57),P=u("I",58,1),R=u("T",59,1),z=u("L",60,1),_=u("E",61,1),U=u("#",63,64),Z=u("X",66,65),F=function(){function e(e,t){var n;this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1,this.cbs=t,this.xmlMode=!!(null==e?void 0:e.xmlMode),this.decodeEntities=null===(n=null==e?void 0:e.decodeEntities)||void 0===n||n}return e.prototype.reset=function(){this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1},e.prototype.write=function(e){this.ended&&this.cbs.onerror(Error(".write() after done!")),this.buffer+=e,this.parse()},e.prototype.end=function(e){this.ended&&this.cbs.onerror(Error(".end() after done!")),e&&this.write(e),this.ended=!0,this.running&&this.finish()},e.prototype.pause=function(){this.running=!1},e.prototype.resume=function(){this.running=!0,this._index<this.buffer.length&&this.parse(),this.ended&&this.finish()},e.prototype.getAbsoluteIndex=function(){return this.bufferOffset+this._index},e.prototype.stateText=function(e){"<"===e?(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):!this.decodeEntities||"&"!==e||1!==this.special&&4!==this.special||(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this.baseState=1,this._state=62,this.sectionStart=this._index)},e.prototype.stateBeforeTagName=function(e){"/"===e?this._state=5:"<"===e?(this.cbs.ontext(this.getSection()),this.sectionStart=this._index):">"===e||1!==this.special||l(e)?this._state=1:"!"===e?(this._state=15,this.sectionStart=this._index+1):"?"===e?(this._state=17,this.sectionStart=this._index+1):c(e)?(this._state=this.xmlMode||"s"!==e&&"S"!==e?this.xmlMode||"t"!==e&&"T"!==e?3:52:32,this.sectionStart=this._index):this._state=1},e.prototype.stateInTagName=function(e){("/"===e||">"===e||l(e))&&(this.emitToken("onopentagname"),this._state=8,this._index--)},e.prototype.stateBeforeClosingTagName=function(e){l(e)||(">"===e?this._state=1:1!==this.special?"s"===e||"S"===e?this._state=33:"t"===e||"T"===e?this._state=53:(this._state=1,this._index--):c(e)?(this._state=6,this.sectionStart=this._index):(this._state=20,this.sectionStart=this._index))},e.prototype.stateInClosingTagName=function(e){(">"===e||l(e))&&(this.emitToken("onclosetag"),this._state=7,this._index--)},e.prototype.stateAfterClosingTagName=function(e){">"===e&&(this._state=1,this.sectionStart=this._index+1)},e.prototype.stateBeforeAttributeName=function(e){">"===e?(this.cbs.onopentagend(),this._state=1,this.sectionStart=this._index+1):"/"===e?this._state=4:l(e)||(this._state=9,this.sectionStart=this._index)},e.prototype.stateInSelfClosingTag=function(e){">"===e?(this.cbs.onselfclosingtag(),this._state=1,this.sectionStart=this._index+1,this.special=1):l(e)||(this._state=8,this._index--)},e.prototype.stateInAttributeName=function(e){("="===e||"/"===e||">"===e||l(e))&&(this.cbs.onattribname(this.getSection()),this.sectionStart=-1,this._state=10,this._index--)},e.prototype.stateAfterAttributeName=function(e){"="===e?this._state=11:"/"===e||">"===e?(this.cbs.onattribend(void 0),this._state=8,this._index--):l(e)||(this.cbs.onattribend(void 0),this._state=9,this.sectionStart=this._index)},e.prototype.stateBeforeAttributeValue=function(e){'"'===e?(this._state=12,this.sectionStart=this._index+1):"'"===e?(this._state=13,this.sectionStart=this._index+1):l(e)||(this._state=14,this.sectionStart=this._index,this._index--)},e.prototype.handleInAttributeValue=function(e,t){e===t?(this.emitToken("onattribdata"),this.cbs.onattribend(t),this._state=8):this.decodeEntities&&"&"===e&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},e.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,'"')},e.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,"'")},e.prototype.stateInAttributeValueNoQuotes=function(e){l(e)||">"===e?(this.emitToken("onattribdata"),this.cbs.onattribend(null),this._state=8,this._index--):this.decodeEntities&&"&"===e&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},e.prototype.stateBeforeDeclaration=function(e){this._state="["===e?23:"-"===e?18:16},e.prototype.stateInDeclaration=function(e){">"===e&&(this.cbs.ondeclaration(this.getSection()),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateInProcessingInstruction=function(e){">"===e&&(this.cbs.onprocessinginstruction(this.getSection()),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateBeforeComment=function(e){"-"===e?(this._state=19,this.sectionStart=this._index+1):this._state=16},e.prototype.stateInComment=function(e){"-"===e&&(this._state=21)},e.prototype.stateInSpecialComment=function(e){">"===e&&(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index)),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateAfterComment1=function(e){this._state="-"===e?22:19},e.prototype.stateAfterComment2=function(e){">"===e?(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"-"!==e&&(this._state=19)},e.prototype.stateBeforeCdata6=function(e){"["===e?(this._state=29,this.sectionStart=this._index+1):(this._state=16,this._index--)},e.prototype.stateInCdata=function(e){"]"===e&&(this._state=30)},e.prototype.stateAfterCdata1=function(e){this._state="]"===e?31:29},e.prototype.stateAfterCdata2=function(e){">"===e?(this.cbs.oncdata(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"]"!==e&&(this._state=29)},e.prototype.stateBeforeSpecialS=function(e){"c"===e||"C"===e?this._state=34:"t"===e||"T"===e?this._state=44:(this._state=3,this._index--)},e.prototype.stateBeforeSpecialSEnd=function(e){2!==this.special||"c"!==e&&"C"!==e?3!==this.special||"t"!==e&&"T"!==e?this._state=1:this._state=48:this._state=39},e.prototype.stateBeforeSpecialLast=function(e,t){("/"===e||">"===e||l(e))&&(this.special=t),this._state=3,this._index--},e.prototype.stateAfterSpecialLast=function(e,t){">"===e||l(e)?(this.special=1,this._state=6,this.sectionStart=this._index-t,this._index--):this._state=1},e.prototype.parseFixedEntity=function(e){if(void 0===e&&(e=this.xmlMode?s.default:a.default),this.sectionStart+1<this._index){var t=this.buffer.substring(this.sectionStart+1,this._index);Object.prototype.hasOwnProperty.call(e,t)&&(this.emitPartial(e[t]),this.sectionStart=this._index+1)}},e.prototype.parseLegacyEntity=function(){for(var e=this.sectionStart+1,t=Math.min(this._index-e,6);t>=2;){var n=this.buffer.substr(e,t);if(Object.prototype.hasOwnProperty.call(o.default,n))return this.emitPartial(o.default[n]),void(this.sectionStart+=t+1);t--}},e.prototype.stateInNamedEntity=function(e){";"===e?(this.parseFixedEntity(),1===this.baseState&&this.sectionStart+1<this._index&&!this.xmlMode&&this.parseLegacyEntity(),this._state=this.baseState):(e<"0"||e>"9")&&!c(e)&&(this.xmlMode||this.sectionStart+1===this._index||(1!==this.baseState?"="!==e&&this.parseFixedEntity(o.default):this.parseLegacyEntity()),this._state=this.baseState,this._index--)},e.prototype.decodeNumericEntity=function(e,t,n){var r=this.sectionStart+e;if(r!==this._index){var a=this.buffer.substring(r,this._index),o=parseInt(a,t);this.emitPartial(i.default(o)),this.sectionStart=n?this._index+1:this._index}this._state=this.baseState},e.prototype.stateInNumericEntity=function(e){";"===e?this.decodeNumericEntity(2,10,!0):(e<"0"||e>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(2,10,!1),this._index--)},e.prototype.stateInHexEntity=function(e){";"===e?this.decodeNumericEntity(3,16,!0):(e<"a"||e>"f")&&(e<"A"||e>"F")&&(e<"0"||e>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(3,16,!1),this._index--)},e.prototype.cleanup=function(){this.sectionStart<0?(this.buffer="",this.bufferOffset+=this._index,this._index=0):this.running&&(1===this._state?(this.sectionStart!==this._index&&this.cbs.ontext(this.buffer.substr(this.sectionStart)),this.buffer="",this.bufferOffset+=this._index,this._index=0):this.sectionStart===this._index?(this.buffer="",this.bufferOffset+=this._index,this._index=0):(this.buffer=this.buffer.substr(this.sectionStart),this._index-=this.sectionStart,this.bufferOffset+=this.sectionStart),this.sectionStart=0)},e.prototype.parse=function(){for(;this._index<this.buffer.length&&this.running;){var e=this.buffer.charAt(this._index);1===this._state?this.stateText(e):12===this._state?this.stateInAttributeValueDoubleQuotes(e):9===this._state?this.stateInAttributeName(e):19===this._state?this.stateInComment(e):20===this._state?this.stateInSpecialComment(e):8===this._state?this.stateBeforeAttributeName(e):3===this._state?this.stateInTagName(e):6===this._state?this.stateInClosingTagName(e):2===this._state?this.stateBeforeTagName(e):10===this._state?this.stateAfterAttributeName(e):13===this._state?this.stateInAttributeValueSingleQuotes(e):11===this._state?this.stateBeforeAttributeValue(e):5===this._state?this.stateBeforeClosingTagName(e):7===this._state?this.stateAfterClosingTagName(e):32===this._state?this.stateBeforeSpecialS(e):21===this._state?this.stateAfterComment1(e):14===this._state?this.stateInAttributeValueNoQuotes(e):4===this._state?this.stateInSelfClosingTag(e):16===this._state?this.stateInDeclaration(e):15===this._state?this.stateBeforeDeclaration(e):22===this._state?this.stateAfterComment2(e):18===this._state?this.stateBeforeComment(e):33===this._state?this.stateBeforeSpecialSEnd(e):53===this._state?P(this,e):39===this._state?x(this,e):40===this._state?w(this,e):41===this._state?T(this,e):34===this._state?y(this,e):35===this._state?v(this,e):36===this._state?b(this,e):37===this._state?I(this,e):38===this._state?this.stateBeforeSpecialLast(e,2):42===this._state?M(this,e):43===this._state?this.stateAfterSpecialLast(e,6):44===this._state?A(this,e):29===this._state?this.stateInCdata(e):45===this._state?C(this,e):46===this._state?E(this,e):47===this._state?this.stateBeforeSpecialLast(e,3):48===this._state?N(this,e):49===this._state?S(this,e):50===this._state?k(this,e):51===this._state?this.stateAfterSpecialLast(e,5):52===this._state?j(this,e):54===this._state?D(this,e):55===this._state?O(this,e):56===this._state?L(this,e):57===this._state?this.stateBeforeSpecialLast(e,4):58===this._state?R(this,e):59===this._state?z(this,e):60===this._state?_(this,e):61===this._state?this.stateAfterSpecialLast(e,5):17===this._state?this.stateInProcessingInstruction(e):64===this._state?this.stateInNamedEntity(e):23===this._state?d(this,e):62===this._state?U(this,e):24===this._state?p(this,e):25===this._state?h(this,e):30===this._state?this.stateAfterCdata1(e):31===this._state?this.stateAfterCdata2(e):26===this._state?g(this,e):27===this._state?m(this,e):28===this._state?this.stateBeforeCdata6(e):66===this._state?this.stateInHexEntity(e):65===this._state?this.stateInNumericEntity(e):63===this._state?Z(this,e):this.cbs.onerror(Error("unknown _state"),this._state),this._index++}this.cleanup()},e.prototype.finish=function(){this.sectionStart<this._index&&this.handleTrailingData(),this.cbs.onend()},e.prototype.handleTrailingData=function(){var e=this.buffer.substr(this.sectionStart);29===this._state||30===this._state||31===this._state?this.cbs.oncdata(e):19===this._state||21===this._state||22===this._state?this.cbs.oncomment(e):64!==this._state||this.xmlMode?65!==this._state||this.xmlMode?66!==this._state||this.xmlMode?3!==this._state&&8!==this._state&&11!==this._state&&10!==this._state&&9!==this._state&&13!==this._state&&12!==this._state&&14!==this._state&&6!==this._state&&this.cbs.ontext(e):(this.decodeNumericEntity(3,16,!1),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData())):(this.decodeNumericEntity(2,10,!1),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData())):(this.parseLegacyEntity(),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData()))},e.prototype.getSection=function(){return this.buffer.substring(this.sectionStart,this._index)},e.prototype.emitToken=function(e){this.cbs[e](this.getSection()),this.sectionStart=-1},e.prototype.emitPartial=function(e){1!==this.baseState?this.cbs.onattribdata(e):this.cbs.ontext(e)},e}();t.default=F},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});var i=r(n(93));t.default=function(e){if(e>=55296&&e<=57343||e>1114111)return"�";e in i.default&&(e=i.default[e]);var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)}},function(e){e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}')},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var a=n(49);i(n(49),t);var o=/\s+/g,s={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){var e;this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null!==(e=this.parser)&&void 0!==e?e:null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=new a.Element(e,t);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,n=this.lastNode;if(n&&"text"===n.type)t?n.data=(n.data+e).replace(o," "):n.data+=e;else{t&&(e=e.replace(o," "));var r=new a.Text(e);this.addNode(r),this.lastNode=r}},e.prototype.oncomment=function(e){if(this.lastNode&&"comment"===this.lastNode.type)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.NodeWithChildren("cdata",[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e.prototype.addDataNode=function(e){this.addNode(e),this.lastNode=e},e}();t.DomHandler=l,t.default=l},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=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}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.Element=t.Document=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var o=new Map([["tag",1],["script",1],["style",1],["directive",1],["text",3],["cdata",4],["comment",8],["root",9]]),s=function(){function e(e){this.type=e,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){var e;return null!==(e=o.get(this.type))&&void 0!==e?e:1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),g(this,e)},e}();t.Node=s;var l=function(e){function t(t,n){var r=e.call(this,t)||this;return r.data=n,r}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(s);t.DataNode=l;var c=function(e){function t(t){return e.call(this,"text",t)||this}return i(t,e),t}(l);t.Text=c;var u=function(e){function t(t){return e.call(this,"comment",t)||this}return i(t,e),t}(l);t.Comment=u;var f=function(e){function t(t,n){var r=e.call(this,"directive",n)||this;return r.name=t,r}return i(t,e),t}(l);t.ProcessingInstruction=f;var d=function(e){function t(t,n){var r=e.call(this,t)||this;return r.children=n,r}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=d;var p=function(e){function t(t){return e.call(this,"root",t)||this}return i(t,e),t}(d);t.Document=p;var h=function(e){function t(t,n,r){void 0===r&&(r=[]);var i=e.call(this,"script"===t?"script":"style"===t?"style":"tag",r)||this;return i.name=t,i.attribs=n,i.attribs=n,i}return i(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(d);function g(e,t){var n;switch(void 0===t&&(t=!1),e.type){case"text":n=new c(e.data);break;case"directive":var r=e;n=new f(r.name,r.data),null!=r["x-name"]&&(n["x-name"]=r["x-name"],n["x-publicId"]=r["x-publicId"],n["x-systemId"]=r["x-systemId"]);break;case"comment":n=new u(e.data);break;case"tag":case"script":case"style":var i=e,o=t?m(i.children):[],s=new h(i.name,a({},i.attribs),o);o.forEach((function(e){return e.parent=s})),i["x-attribsNamespace"]&&(s["x-attribsNamespace"]=a({},i["x-attribsNamespace"])),i["x-attribsPrefix"]&&(s["x-attribsPrefix"]=a({},i["x-attribsPrefix"])),n=s;break;case"cdata":o=t?m(e.children):[];var l=new d(e.type,o);o.forEach((function(e){return e.parent=l})),n=l;break;case"root":var g=e,y=(o=t?m(g.children):[],new p(o));o.forEach((function(e){return e.parent=y})),g["x-mode"]&&(y["x-mode"]=g["x-mode"]),n=y;break;case"doctype":throw new Error("Not implemented yet: ElementType.Doctype case")}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,n}function m(e){for(var t=e.map((function(e){return g(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=h,t.cloneNode=g},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=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)&&a(t,e,n);return o(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.parseFeed=t.FeedHandler=void 0;var c,u,f=l(n(48)),d=s(n(51)),p=n(44);!function(e){e[e.image=0]="image",e[e.audio=1]="audio",e[e.video=2]="video",e[e.document=3]="document",e[e.executable=4]="executable"}(c||(c={})),function(e){e[e.sample=0]="sample",e[e.full=1]="full",e[e.nonstop=2]="nonstop"}(u||(u={}));var h=function(e){function t(t,n){return"object"==typeof t&&(n=t=void 0),e.call(this,t,n)||this}return i(t,e),t.prototype.onend=function(){var e,t,n=y(x,this.dom);if(n){var r={};if("feed"===n.name){var i=n.children;r.type="atom",I(r,"id","id",i),I(r,"title","title",i);var a=b("href",y("link",i));a&&(r.link=a),I(r,"description","subtitle",i),(o=v("updated",i))&&(r.updated=new Date(o)),I(r,"author","email",i,!0),r.items=m("entry",i).map((function(e){var t={},n=e.children;I(t,"id","id",n),I(t,"title","title",n);var r=b("href",y("link",n));r&&(t.link=r);var i=v("summary",n)||v("content",n);i&&(t.description=i);var a=v("updated",n);return a&&(t.pubDate=new Date(a)),t.media=g(n),t}))}else{var o;i=null!==(t=null===(e=y("channel",n.children))||void 0===e?void 0:e.children)&&void 0!==t?t:[];r.type=n.name.substr(0,3),r.id="",I(r,"title","title",i),I(r,"link","link",i),I(r,"description","description",i),(o=v("lastBuildDate",i))&&(r.updated=new Date(o)),I(r,"author","managingEditor",i,!0),r.items=m("item",n.children).map((function(e){var t={},n=e.children;I(t,"id","guid",n),I(t,"title","title",n),I(t,"link","link",n),I(t,"description","description",n);var r=v("pubDate",n);return r&&(t.pubDate=new Date(r)),t.media=g(n),t}))}this.feed=r,this.handleCallback(null)}else this.handleCallback(new Error("couldn't find root of feed"))},t}(f.default);function g(e){return m("media:content",e).map((function(e){var t={medium:e.attribs.medium,isDefault:!!e.attribs.isDefault};return e.attribs.url&&(t.url=e.attribs.url),e.attribs.fileSize&&(t.fileSize=parseInt(e.attribs.fileSize,10)),e.attribs.type&&(t.type=e.attribs.type),e.attribs.expression&&(t.expression=e.attribs.expression),e.attribs.bitrate&&(t.bitrate=parseInt(e.attribs.bitrate,10)),e.attribs.framerate&&(t.framerate=parseInt(e.attribs.framerate,10)),e.attribs.samplingrate&&(t.samplingrate=parseInt(e.attribs.samplingrate,10)),e.attribs.channels&&(t.channels=parseInt(e.attribs.channels,10)),e.attribs.duration&&(t.duration=parseInt(e.attribs.duration,10)),e.attribs.height&&(t.height=parseInt(e.attribs.height,10)),e.attribs.width&&(t.width=parseInt(e.attribs.width,10)),e.attribs.lang&&(t.lang=e.attribs.lang),t}))}function m(e,t){return d.getElementsByTagName(e,t,!0)}function y(e,t){return d.getElementsByTagName(e,t,!0,1)[0]}function v(e,t,n){return void 0===n&&(n=!1),d.getText(d.getElementsByTagName(e,t,n,1)).trim()}function b(e,t){return t?t.attribs[e]:null}function I(e,t,n,r,i){void 0===i&&(i=!1);var a=v(n,r,i);a&&(e[t]=a)}function x(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}t.FeedHandler=h,t.parseFeed=function(e,t){void 0===t&&(t={xmlMode:!0});var n=new h(t);return new p.Parser(n,t).end(e),n.feed}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(95),t),i(n(99),t),i(n(100),t),i(n(55),t),i(n(101),t),i(n(102),t),i(n(13),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTag=function(e){return"tag"===e.type||"script"===e.type||"style"===e.type},t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"},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});var i=r(n(24)),a=r(n(47)),o=r(n(25)),s=r(n(46));function l(e){var t=Object.keys(e).join("|"),n=u(e),r=new RegExp("&(?:"+(t+="|#[xX][\\da-fA-F]+|#\\d+")+");","g");return function(e){return String(e).replace(r,n)}}t.decodeXML=l(o.default),t.decodeHTMLStrict=l(i.default);var c=function(e,t){return e<t?1:-1};function u(e){return function(t){return"#"===t.charAt(1)?"X"===t.charAt(2)||"x"===t.charAt(2)?s.default(parseInt(t.substr(3),16)):s.default(parseInt(t.substr(2),10)):e[t.slice(1,-1)]}}t.decodeHTML=function(){for(var e=Object.keys(a.default).sort(c),t=Object.keys(i.default).sort(c),n=0,r=0;n<t.length;n++)e[r]===t[n]?(t[n]+=";?",r++):t[n]+=";";var o=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),s=u(i.default);function l(e){return";"!==e.substr(-1)&&(e+=";"),s(e)}return function(e){return String(e).replace(o,l)}}()},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});var i=l(r(n(25)).default),a=c(i);t.encodeXML=h(i,a);var o=l(r(n(24)).default),s=c(o);function l(e){return Object.keys(e).sort().reduce((function(t,n){return t[e[n]]="&"+n+";",t}),{})}function c(e){var t=[],n=[];return Object.keys(e).forEach((function(e){return 1===e.length?t.push("\\"+e):n.push(e)})),n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}t.encodeHTML=h(o,s);var u=/[^\0-\x7F]/g,f=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function d(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function p(e,t){return"&#x"+(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536).toString(16).toUpperCase()+";"}function h(e,t){return function(n){return n.replace(t,(function(t){return e[t]})).replace(f,p).replace(u,d)}}var g=c(i);t.escape=function(e){return e.replace(g,d).replace(f,p).replace(u,d)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=t.existsOne=t.findOne=t.findOneChild=t.find=t.filter=void 0;var r=n(13);function i(e,t,n,a){for(var o=[],s=0,l=t;s<l.length;s++){var c=l[s];if(e(c)&&(o.push(c),--a<=0))break;if(n&&r.hasChildren(c)&&c.children.length>0){var u=i(e,c.children,n,a);if(o.push.apply(o,u),(a-=u.length)<=0)break}}return o}t.filter=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),Array.isArray(t)||(t=[t]),i(e,t,n,r)},t.find=i,t.findOneChild=function(e,t){return t.find(e)},t.findOne=function e(t,n,i){void 0===i&&(i=!0);for(var a=null,o=0;o<n.length&&!a;o++){var s=n[o];r.isTag(s)&&(t(s)?a=s:i&&s.children.length>0&&(a=e(t,s.children)))}return a},t.existsOne=function e(t,n){return n.some((function(n){return r.isTag(n)&&(t(n)||n.children.length>0&&e(t,n.children))}))},t.findAll=function(e,t){for(var n,i,a=[],o=t.filter(r.isTag);i=o.shift();){var s=null===(n=i.children)||void 0===n?void 0:n.filter(r.isTag);s&&s.length>0&&o.unshift.apply(o,s),e(i)&&a.push(i)}return a}},function(e,t){},function(e,t,n){"use strict";const r={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};e.exports=class{constructor(e){this.builder=e}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}document(e){this.body(e)}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}decl(e,t){let n=this.raw(e,"between","colon"),r=e.prop+n+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}atrule(e,t){let n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{let i=(e.raws.between||"")+(t?";":"");this.builder(n+r+i,e)}}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let n=this.raw(e,"semicolon");for(let r=0;r<e.nodes.length;r++){let i=e.nodes[r],a=this.raw(i,"before");a&&this.builder(a),this.stringify(i,t!==r||n)}}block(e,t){let n,r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}raw(e,t,n){let i;if(n||(n=t),t&&(i=e.raws[t],void 0!==i))return i;let a=e.parent;if("before"===n){if(!a||"root"===a.type&&a.first===e)return"";if(a&&"document"===a.type)return""}if(!a)return r[n];let o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[n])return o.rawCache[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);{let r="raw"+((s=n)[0].toUpperCase()+s.slice(1));this[r]?i=this[r](o,e):o.walk(e=>{if(i=e.raws[t],void 0!==i)return!1})}var s;return void 0===i&&(i=r[n]),o.rawCache[n]=i,i}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){let e=n.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}}),t}rawBeforeComment(e,t){let n;return e.walkComments(e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls(e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1}),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}beforeAfter(e,t){let n;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let r=e.parent,i=0;for(;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<i;e++)n+=t}return n}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}}},function(e,t,n){"use strict";let{isClean:r,my:i}=n(27),a=n(110),o=n(28),s=n(10),l=n(32),c=(n(114),n(60)),u=n(62),f=n(14);const d={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},p={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},h={postcssPlugin:!0,prepare:!0,Once:!0};function g(e){return"object"==typeof e&&"function"==typeof e.then}function m(e){let t=!1,n=d[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function y(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:m(e),{node:e,events:t,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function v(e){return e[r]=!1,e.nodes&&e.nodes.forEach(e=>v(e)),e}let b={};class I{constructor(e,t,n){let r;if(this.stringified=!1,this.processed=!1,"object"!=typeof t||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof I||t instanceof c)r=v(t.root),t.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let e=u;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{r=e(t,n)}catch(e){this.processed=!0,this.error=e}r&&!r[i]&&s.rebuild(r)}else r=v(t);this.result=new c(e,r,n),this.helpers={...b,result:this.result,postcss:b},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}get[Symbol.toStringTag](){return"LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(e,t){return this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(g(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[r];)e[r]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=o;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new a(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}walkSync(e){e[r]=!0;let t=m(e);for(let n of t)if(0===n)e.nodes&&e.each(e=>{e[r]||this.walkSync(e)});else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}visitSync(e,t){for(let[n,r]of e){let e;this.result.lastPlugin=n;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(g(e))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return g(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?n.postcssVersion:(e.plugin=n.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(g(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[r];){e[r]=!0;let t=[y(e)];for(;t.length>0;){let e=this.visitTick(t);if(g(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if("object"==typeof t)for(let n in t){if(!p[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!h[n])if("object"==typeof t[n])for(let r in t[n])e(t,"*"===r?n:n+"-"+r.toLowerCase(),t[n][r]);else"function"==typeof t[n]&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let t=e[e.length-1],{node:n,visitors:i}=t;if("root"!==n.type&&"document"!==n.type&&!n.parent)return void e.pop();if(i.length>0&&t.visitorIndex<i.length){let[e,r]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return r(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(0!==t.iterator){let i,a=t.iterator;for(;i=n.nodes[n.indexes[a]];)if(n.indexes[a]+=1,!i[r])return i[r]=!0,void e.push(y(i));t.iterator=0,delete n.indexes[a]}let a=t.events;for(;t.eventIndex<a.length;){let e=a[t.eventIndex];if(t.eventIndex+=1,0===e)return void(n.nodes&&n.nodes.length&&(n[r]=!0,t.iterator=n.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}}I.registerPostcss=e=>{b=e},e.exports=I,I.default=I,f.registerLazyResult(I),l.registerLazyResult(I)},function(e,t){},function(e,t,n){"use strict";let r=n(61);class i{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new r(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}}e.exports=i,i.default=i},function(e,t,n){"use strict";class r{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.positionBy(t);this.line=e.line,this.column=e.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}e.exports=r,r.default=r},function(e,t,n){"use strict";let r=n(10),i=n(115),a=n(35);function o(e,t){let n=new a(e,t),r=new i(n);try{r.parse()}catch(e){throw e}return r.root}e.exports=o,o.default=o,r.registerParse(o)},function(e,t,n){"use strict";let r={split(e,t,n){let r=[],i="",a=!1,o=0,s=!1,l=!1;for(let n of e)l?l=!1:"\\"===n?l=!0:s?n===s&&(s=!1):'"'===n||"'"===n?s=n:"("===n?o+=1:")"===n?o>0&&(o-=1):0===o&&t.includes(n)&&(a=!0),a?(""!==i&&r.push(i.trim()),i="",a=!1):i+=n;return(n||""!==i)&&r.push(i.trim()),r},space:e=>r.split(e,[" ","\n","\t"]),comma:e=>r.split(e,[","],!0)};e.exports=r,r.default=r},function(e,t,n){"use strict";(function(t){let{SourceMapConsumer:r,SourceMapGenerator:i}=n(30),{existsSync:a,readFileSync:o}=n(118),{dirname:s,join:l}=n(31);class c{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=s(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new r(this.text)),this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(e,t){return!!e&&e.substr(0,t.length)===t}getAnnotationURL(e){return e.match(/\/\*\s*# sourceMappingURL=((?:(?!sourceMappingURL=).)*)\*\//)[1].trim()}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=(?:(?!sourceMappingURL=).)*\*\//gm);if(t&&t.length>0){let e=t[t.length-1];e&&(this.annotation=this.getAnnotationURL(e))}}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return n=e.substr(RegExp.lastMatch.length),t?t.from(n,"base64").toString():window.atob(n);var n;let r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}loadFile(e){if(this.root=s(e),a(e))return this.mapFile=e,o(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof r)return i.fromSourceMap(t).toString();if(t instanceof i)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let n=t(e);if(n){let e=this.loadFile(n);if(!e)throw new Error("Unable to load previous source map: "+n.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=l(s(e),t)),this.loadFile(t)}}}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}}e.exports=c,c.default=c}).call(this,n(29).Buffer)},function(e,t,n){"use strict";t.a=function(){return!1}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(77),i=n(78),a=n(79),o=n(81);e.exports=function(e,t){return r(e)||i(e,t)||a(e,t)||o()},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(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)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";t.a="data:image/gif;base64,R0lGODlhEAAQAPQAAP///wAAAPDw8IqKiuDg4EZGRnp6egAAAFhYWCQkJKysrL6+vhQUFJycnAQEBDY2NmhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH+GkNyZWF0ZWQgd2l0aCBhamF4bG9hZC5pbmZvACH5BAAKAAAAIf8LTkVUU0NBUEUyLjADAQAAACwAAAAAEAAQAAAFdyAgAgIJIeWoAkRCCMdBkKtIHIngyMKsErPBYbADpkSCwhDmQCBethRB6Vj4kFCkQPG4IlWDgrNRIwnO4UKBXDufzQvDMaoSDBgFb886MiQadgNABAokfCwzBA8LCg0Egl8jAggGAA1kBIA1BAYzlyILczULC2UhACH5BAAKAAEALAAAAAAQABAAAAV2ICACAmlAZTmOREEIyUEQjLKKxPHADhEvqxlgcGgkGI1DYSVAIAWMx+lwSKkICJ0QsHi9RgKBwnVTiRQQgwF4I4UFDQQEwi6/3YSGWRRmjhEETAJfIgMFCnAKM0KDV4EEEAQLiF18TAYNXDaSe3x6mjidN1s3IQAh+QQACgACACwAAAAAEAAQAAAFeCAgAgLZDGU5jgRECEUiCI+yioSDwDJyLKsXoHFQxBSHAoAAFBhqtMJg8DgQBgfrEsJAEAg4YhZIEiwgKtHiMBgtpg3wbUZXGO7kOb1MUKRFMysCChAoggJCIg0GC2aNe4gqQldfL4l/Ag1AXySJgn5LcoE3QXI3IQAh+QQACgADACwA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IGluIDxiPi9ob21lL2FqYXhsb2FkL3d3dy9saWJyYWlyaWVzL2NsYXNzLm15c3FsLnBocDwvYj4gb24gbGluZSA8Yj42ODwvYj48YnIgLz4KPGJyIC8+CjxiPldhcm5pbmc8L2I+OiAgbXlzcWxfcXVlcnkoKSBbPGEgaHJlZj0nZnVuY3Rpb24ubXlzcWwtcXVlcnknPmZ1bmN0aW9uLm15c3FsLXF1ZXJ5PC9hPl06IEEgbGluayB0byB0aGUgc2VydmVyIGNvdWxkIG5vdCBiZSBlc3RhYmxpc2hlZCBpbiA8Yj4vaG9tZS9hamF4bG9hZC93d3cvbGlicmFpcmllcy9jbGFzcy5teXNxbC5waHA8L2I+IG9uIGxpbmUgPGI+Njg8L2I+PGJyIC8+Cg=="},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){var r=n(4),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,o=a&&a.exports===i?r.a.Buffer:void 0,s=o?o.allocUnsafe:void 0;t.a=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(17)(e))},,,,,function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(80);e.exports=function(e,t){if(e){if("string"==typeof e)return r(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)?r(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(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},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(83);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";
43
43
  /** @license React v16.13.1
44
44
  * react-is.production.min.js
45
45
  *
@@ -83,8 +83,8 @@ object-assign
83
83
  * Copyright (c) 2014-2017, Jon Schlinkert.
84
84
  * Released under the MIT License.
85
85
  */
86
- function r(e){return"[object Object]"===Object.prototype.toString.call(e)}function i(e){var t,n;return!1!==r(e)&&(void 0===(t=e.constructor)||!1!==r(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}n.r(t),n.d(t,"isPlainObject",(function(){return i}))},function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===i}(e)}(e)};var i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function a(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map((function(e){return a(e,n)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function l(e,t){try{return t in e}catch(e){return!1}}function c(e,t,n){var r={};return n.isMergeableObject(e)&&s(e).forEach((function(t){r[t]=a(e[t],n)})),s(t).forEach((function(i){(function(e,t){return l(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(l(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return u;var n=t.customMerge(e);return"function"==typeof n?n:u}(i,n)(e[i],t[i],n):r[i]=a(t[i],n))})),r}function u(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||o,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=a;var i=Array.isArray(t);return i===Array.isArray(e)?i?n.arrayMerge(e,t,n):c(e,t,n):a(t,n)}u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return u(e,n,t)}),{})};var f=u;e.exports=f},function(e,t,n){var r,i,a;i=[],void 0===(a="function"==typeof(r=function(){return function(e){function t(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function n(t){var n,r=t.exec(e.substring(g));if(r)return n=r[0],g+=n.length,n}for(var r,i,a,o,s,l=e.length,c=/^[ \t\n\r\u000c]+/,u=/^[, \t\n\r\u000c]+/,f=/^[^ \t\n\r\u000c]+/,d=/[,]+$/,p=/^\d+$/,h=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,g=0,m=[];;){if(n(u),g>=l)return m;r=n(f),i=[],","===r.slice(-1)?(r=r.replace(d,""),v()):y()}function y(){for(n(c),a="",o="in descriptor";;){if(s=e.charAt(g),"in descriptor"===o)if(t(s))a&&(i.push(a),a="",o="after descriptor");else{if(","===s)return g+=1,a&&i.push(a),void v();if("("===s)a+=s,o="in parens";else{if(""===s)return a&&i.push(a),void v();a+=s}}else if("in parens"===o)if(")"===s)a+=s,o="in descriptor";else{if(""===s)return i.push(a),void v();a+=s}else if("after descriptor"===o)if(t(s));else{if(""===s)return void v();o="in descriptor",g-=1}g+=1}}function v(){var t,n,a,o,s,l,c,u,f,d=!1,g={};for(o=0;o<i.length;o++)l=(s=i[o])[s.length-1],c=s.substring(0,s.length-1),u=parseInt(c,10),f=parseFloat(c),p.test(c)&&"w"===l?((t||n)&&(d=!0),0===u?d=!0:t=u):h.test(c)&&"x"===l?((t||n||a)&&(d=!0),f<0?d=!0:n=f):p.test(c)&&"h"===l?((a||n)&&(d=!0),0===u?d=!0:a=u):d=!0;d?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+s+"'."):(g.url=r,t&&(g.w=t),n&&(g.d=n),a&&(g.h=a),m.push(g))}}})?r.apply(t,i):r)||(e.exports=a)},function(e,t,n){"use strict";(function(t){let r=n(26),i=n(18),a=n(58),o=n(10),s=n(119),l=n(28),c=n(120),u=n(32),f=n(61),d=n(20),p=n(33),h=n(60),g=n(35),m=n(62),y=n(63),v=n(34),b=n(14),I=n(19);function x(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new s(e)}x.plugin=function(e,n){function r(...t){let r=n(...t);return r.postcssPlugin=e,r.postcssVersion=(new s).version,r}let i;return console&&console.warn&&(console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),t.env.LANG&&t.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226")),Object.defineProperty(r,"postcss",{get:()=>(i||(i=r()),i)}),r.process=function(e,t,n){return x([r(n)]).process(e,t)},r},x.stringify=l,x.parse=m,x.fromJSON=c,x.list=y,x.comment=e=>new d(e),x.atRule=e=>new p(e),x.decl=e=>new i(e),x.rule=e=>new v(e),x.root=e=>new b(e),x.document=e=>new u(e),x.CssSyntaxError=r,x.Declaration=i,x.Container=o,x.Document=u,x.Comment=d,x.Warning=f,x.AtRule=p,x.Result=h,x.Input=g,x.Rule=v,x.Root=b,x.Node=I,a.registerPostcss(x),e.exports=x,x.default=x}).call(this,n(43))},function(e,t){},function(e,t,n){"use strict";(function(t){let{SourceMapConsumer:r,SourceMapGenerator:i}=n(30),{dirname:a,resolve:o,relative:s,sep:l}=n(31),{pathToFileURL:c}=n(59),u=Boolean(r&&i),f=Boolean(a&&o&&s&&l);e.exports=class{constructor(e,t,n){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}previous(){return this.previousMaps||(this.previousMaps=[],this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}})),this.previousMaps}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}clearAnnotation(){if(!1===this.mapOpts.annotation)return;let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}setSourcesContent(){let e={};this.root.walk(t=>{if(t.source){let n=t.source.input.from;n&&!e[n]&&(e[n]=!0,this.map.setSourceContent(this.toUrl(this.path(n)),t.source.input.css))}})}applyPrevMaps(){for(let e of this.previous()){let t,n=this.toUrl(this.path(e.file)),i=e.root||a(e.file);!1===this.mapOpts.sourcesContent?(t=new r(e.text),t.sourcesContent&&(t.sourcesContent=t.sourcesContent.map(()=>null))):t=e.consumer(),this.map.applySourceMap(t,n,this.toUrl(this.path(i)))}}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}toBase64(e){return t?t.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}generateMap(){return this.generateString(),this.isSourcesContent()&&this.setSourcesContent(),this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}path(e){if(0===e.indexOf("<"))return e;if(/^\w+:\/\//.test(e))return e;if(this.mapOpts.absolute)return e;let t=this.opts.to?a(this.opts.to):".";return"string"==typeof this.mapOpts.annotation&&(t=a(o(t,this.mapOpts.annotation))),e=s(t,e)}toUrl(e){return"\\"===l&&(e=e.replace(/\\/g,"/")),encodeURI(e).replace(/[#?]/g,encodeURIComponent)}sourcePath(e){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);if(this.mapOpts.absolute){if(c)return c(e.source.input.from).toString();throw new Error("`map.absolute` option is not available in this PostCSS build")}return this.toUrl(this.path(e.source.input.from))}generateString(){this.css="",this.map=new i({file:this.outputFile()});let e,t,n=1,r=1,a={source:"",generated:{line:0,column:0},original:{line:0,column:0}};this.stringify(this.root,(i,o,s)=>{if(this.css+=i,o&&"end"!==s&&(a.generated.line=n,a.generated.column=r-1,o.source&&o.source.start?(a.source=this.sourcePath(o),a.original.line=o.source.start.line,a.original.column=o.source.start.column-1,this.map.addMapping(a)):(a.source="<no source>",a.original.line=1,a.original.column=0,this.map.addMapping(a))),e=i.match(/\n/g),e?(n+=e.length,t=i.lastIndexOf("\n"),r=i.length-t):r+=i.length,o&&"start"!==s){let e=o.parent||{raws:{}};("decl"!==o.type||o!==e.last||e.raws.semicolon)&&(o.source&&o.source.end?(a.source=this.sourcePath(o),a.original.line=o.source.end.line,a.original.column=o.source.end.column-1,a.generated.line=n,a.generated.column=r-2,this.map.addMapping(a)):(a.source="<no source>",a.original.line=1,a.original.column=0,a.generated.line=n,a.generated.column=r-1,this.map.addMapping(a)))}})}generate(){if(this.clearAnnotation(),f&&u&&this.isMap())return this.generateMap();let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}}).call(this,n(29).Buffer)},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),o=r[0],s=r[1],l=new a(function(e,t,n){return 3*(t+n)/4-n}(0,o,s)),u=0,f=s>0?o-4:o;for(n=0;n<f;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],o=0,s=n-i;o<s;o+=16383)a.push(u(e,o,o+16383>s?s:o+16383));1===i?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return a.join("")};for(var r=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s<l;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var i,a,o=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(r[(a=i)>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,f=n?i-1:0,d=n?-1:1,p=e[t+f];for(f+=d,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=256*a+e[t+f],f+=d,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=256*o+e[t+f],f+=d,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),a-=c}return(p?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,l,c=8*a-i-1,u=(1<<c)-1,f=u>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:a-1,h=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(o++,l/=2),o+f>=u?(s=0,o=u):o+f>=1?(s=(t*l-1)*Math.pow(2,i),o+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(o=o<<i|s,c+=i;c>0;e[n+p]=255&o,p+=h,o/=256,c-=8);e[n+p-h]|=128*g}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";let r={};e.exports=function(e){r[e]||(r[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}},function(e,t,n){"use strict";let r=n(18),i=n(116),a=n(20),o=n(33),s=n(14),l=n(34);e.exports=class{constructor(e){this.input=e,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=i(this.input)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}comment(e){let t=new a;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]);let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}emptyRule(e){let t=new l;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}other(e){let t=!1,n=null,r=!1,i=null,a=[],o=e[1].startsWith("--"),s=[],l=e;for(;l;){if(n=l[0],s.push(l),"("===n||"["===n)i||(i=l),a.push("("===n?")":"]");else if(o&&r&&"{"===n)i||(i=l),a.push("}");else if(0===a.length){if(";"===n){if(r)return void this.decl(s,o);break}if("{"===n)return void this.rule(s);if("}"===n){this.tokenizer.back(s.pop()),t=!0;break}":"===n&&(r=!0)}else n===a[a.length-1]&&(a.pop(),0===a.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(i),t&&r){for(;s.length&&(l=s[s.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(s.pop());this.decl(s,o)}else this.unknownWord(s)}rule(e){e.pop();let t=new l;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}decl(e,t){let n=new r;this.init(n,e[0][2]);let i,a=e[e.length-1];for(";"===a[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(a[3]||a[2]);"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(i=e.shift(),":"===i[0]){n.raws.between+=i[1];break}"word"===i[0]&&/\w/.test(i[1])&&this.unknownWord([i]),n.raws.between+=i[1]}"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o=this.spacesAndCommentsFromStart(e);this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(i=e[t],"!important"===i[1].toLowerCase()){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r," !important"!==r&&(n.raws.important=r);break}if("important"===i[1].toLowerCase()){let r=e.slice(0),i="";for(let e=t;e>0;e--){let t=r[e][0];if(0===i.trim().indexOf("!")&&"space"!==t)break;i=r.pop()[1]+i}0===i.trim().indexOf("!")&&(n.important=!0,n.raws.important=i,e=r)}if("space"!==i[0]&&"comment"!==i[0])break}let s=e.some(e=>"space"!==e[0]&&"comment"!==e[0]);this.raw(n,"value",e),s?n.raws.between+=o:n.value=o+n.value,n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}atrule(e){let t,n,r,i=new o;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);let a=!1,s=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(l.length>0){for(r=l.length-1,n=l[r];n&&"space"===n[0];)n=l[--r];n&&(i.source.end=this.getPosition(n[3]||n[2]))}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(i.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(i,"params",l),a&&(e=l[l.length-1],i.source.end=this.getPosition(e[3]||e[2]),this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{offset:e,line:t.line,column:t.col}}init(e,t){this.current.push(e),e.source={start:this.getPosition(t),input:this.input},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}raw(e,t,n){let r,i,a,o,s=n.length,l="",c=!0,u=/^([#.|])?(\w)+/i;for(let t=0;t<s;t+=1)r=n[t],i=r[0],"comment"!==i||"rule"!==e.type?"comment"===i||"space"===i&&t===s-1?c=!1:l+=r[1]:(o=n[t-1],a=n[t+1],"space"!==o[0]&&"space"!==a[0]&&u.test(o[1])&&u.test(a[1])?l+=r[1]:c=!1);if(!c){let r=n.reduce((e,t)=>e+t[1],"");e.raws[t]={value:l,raw:r}}e[t]=l}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}colon(e){let t,n,r,i=0;for(let[a,o]of e.entries()){if(t=o,n=t[0],"("===n&&(i+=1),")"===n&&(i-=1),0===i&&":"===n){if(r){if("word"===r[0]&&"progid"===r[1])continue;return a}this.doubleColon(t)}r=t}return!1}unclosedBracket(e){throw this.input.error("Unclosed bracket",e[2])}unknownWord(e){throw this.input.error("Unknown word",e[0][2])}unexpectedClose(e){throw this.input.error("Unexpected }",e[2])}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}doubleColon(e){throw this.input.error("Double colon",e[2])}unnamedAtrule(e,t){throw this.input.error("At-rule without name",t[2])}precheckMissedSemicolon(){}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let n,r=0;for(let i=t-1;i>=0&&(n=e[i],"space"===n[0]||(r+=1,2!==r));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}}},function(e,t,n){"use strict";const r="'".charCodeAt(0),i='"'.charCodeAt(0),a="\\".charCodeAt(0),o="/".charCodeAt(0),s="\n".charCodeAt(0),l=" ".charCodeAt(0),c="\f".charCodeAt(0),u="\t".charCodeAt(0),f="\r".charCodeAt(0),d="[".charCodeAt(0),p="]".charCodeAt(0),h="(".charCodeAt(0),g=")".charCodeAt(0),m="{".charCodeAt(0),y="}".charCodeAt(0),v=";".charCodeAt(0),b="*".charCodeAt(0),I=":".charCodeAt(0),x="@".charCodeAt(0),w=/[\t\n\f\r "#'()/;[\\\]{}]/g,T=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,M=/.[\n"'(/\\]/,A=/[\da-f]/i;e.exports=function(e,t={}){let n,C,E,N,S,k,j,D,O,L,P=e.css.valueOf(),R=t.ignoreErrors,z=P.length,_=0,U=[],Z=[];function F(t){throw e.error("Unclosed "+t,_)}return{back:function(e){Z.push(e)},nextToken:function(e){if(Z.length)return Z.pop();if(_>=z)return;let t=!!e&&e.ignoreUnclosed;switch(n=P.charCodeAt(_),n){case s:case l:case u:case f:case c:C=_;do{C+=1,n=P.charCodeAt(C)}while(n===l||n===s||n===u||n===f||n===c);L=["space",P.slice(_,C)],_=C-1;break;case d:case p:case m:case y:case I:case v:case g:{let e=String.fromCharCode(n);L=[e,e,_];break}case h:if(D=U.length?U.pop()[1]:"",O=P.charCodeAt(_+1),"url"===D&&O!==r&&O!==i&&O!==l&&O!==s&&O!==u&&O!==c&&O!==f){C=_;do{if(k=!1,C=P.indexOf(")",C+1),-1===C){if(R||t){C=_;break}F("bracket")}for(j=C;P.charCodeAt(j-1)===a;)j-=1,k=!k}while(k);L=["brackets",P.slice(_,C+1),_,C],_=C}else C=P.indexOf(")",_+1),N=P.slice(_,C+1),-1===C||M.test(N)?L=["(","(",_]:(L=["brackets",N,_,C],_=C);break;case r:case i:E=n===r?"'":'"',C=_;do{if(k=!1,C=P.indexOf(E,C+1),-1===C){if(R||t){C=_+1;break}F("string")}for(j=C;P.charCodeAt(j-1)===a;)j-=1,k=!k}while(k);L=["string",P.slice(_,C+1),_,C],_=C;break;case x:w.lastIndex=_+1,w.test(P),C=0===w.lastIndex?P.length-1:w.lastIndex-2,L=["at-word",P.slice(_,C+1),_,C],_=C;break;case a:for(C=_,S=!0;P.charCodeAt(C+1)===a;)C+=1,S=!S;if(n=P.charCodeAt(C+1),S&&n!==o&&n!==l&&n!==s&&n!==u&&n!==f&&n!==c&&(C+=1,A.test(P.charAt(C)))){for(;A.test(P.charAt(C+1));)C+=1;P.charCodeAt(C+1)===l&&(C+=1)}L=["word",P.slice(_,C+1),_,C],_=C;break;default:n===o&&P.charCodeAt(_+1)===b?(C=P.indexOf("*/",_+2)+1,0===C&&(R||t?C=P.length:F("comment")),L=["comment",P.slice(_,C+1),_,C],_=C):(T.lastIndex=_+1,T.test(P),C=0===T.lastIndex?P.length-1:T.lastIndex-2,L=["word",P.slice(_,C+1),_,C],U.push(L),_=C)}return _++,L},endOfFile:function(){return 0===Z.length&&_>=z},position:function(){return _}}}},function(e,t,n){"use strict";n.r(t),n.d(t,"nanoid",(function(){return i})),n.d(t,"customAlphabet",(function(){return r}));let r=(e,t)=>()=>{let n="",r=t;for(;r--;)n+=e[Math.random()*e.length|0];return n},i=(e=21)=>{let t="",n=e;for(;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t}},function(e,t){},function(e,t,n){"use strict";let r=n(58),i=n(32),a=n(14);class o{constructor(e=[]){this.version="8.3.6",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,t={}){return 0!==this.plugins.length||void 0!==t.parser||void 0!==t.stringifier||void 0!==t.syntax||t.hideNothingWarning,new r(this,e,t)}normalize(e){let t=[];for(let n of e)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)t.push(n);else if("function"==typeof n)t.push(n);else{if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin")}return t}}e.exports=o,o.default=o,a.registerProcessor(o),i.registerProcessor(o)},function(e,t,n){"use strict";let r=n(18),i=n(64),a=n(20),o=n(33),s=n(35),l=n(14),c=n(34);function u(e,t){if(Array.isArray(e))return e.map(e=>u(e));let{inputs:n,...f}=e;if(n){t=[];for(let e of n){let n={...e,__proto__:s.prototype};n.map&&(n.map={...n.map,__proto__:i.prototype}),t.push(n)}}if(f.nodes&&(f.nodes=e.nodes.map(e=>u(e,t))),f.source){let{inputId:e,...n}=f.source;f.source=n,null!=e&&(f.source.input=t[e])}if("root"===f.type)return new l(f);if("decl"===f.type)return new r(f);if("rule"===f.type)return new c(f);if("comment"===f.type)return new a(f);if("atrule"===f.type)return new o(f);throw new Error("Unknown node type: "+e.type)}e.exports=u,u.default=u},function(e,t,n){"use strict";n.r(t),n.d(t,"Attachments",(function(){return vs})),n.d(t,"Exam",(function(){return ph})),n.d(t,"GradingInstructions",(function(){return Eh})),n.d(t,"Results",(function(){return im})),n.d(t,"parseExam",(function(){return jm}));var r=n(0),i=n.n(r),a=n(68),o=n.n(a),s=n(69),l=n.n(s),c=n(22),u=n.n(c);var f,d={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0},p=i.a.createContext();function h(){return d}var g=function(){function e(){o()(this,e),this.usedNamespaces={}}return l()(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function m(){return f}function y(e){var t=e.i18n,n=e.defaultNS,i=e.children,a=Object(r.useMemo)((function(){return{i18n:t,defaultNS:n}}),[t,n]);return Object(r.createElement)(p.Provider,{value:a},i)}var v=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e};var b=function(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(!1===n(a[l],l,a))break}return t}}();var I=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},x=n(4),w=x.a.Symbol,T=Object.prototype,M=T.hasOwnProperty,A=T.toString,C=w?w.toStringTag:void 0;var E=function(e){var t=M.call(e,C),n=e[C];try{e[C]=void 0;var r=!0}catch(e){}var i=A.call(e);return r&&(t?e[C]=n:delete e[C]),i},N=Object.prototype.toString;var S=function(e){return N.call(e)},k=w?w.toStringTag:void 0;var j=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":k&&k in Object(e)?E(e):S(e)};var D=function(e){return null!=e&&"object"==typeof e};var O=function(e){return D(e)&&"[object Arguments]"==j(e)},L=Object.prototype,P=L.hasOwnProperty,R=L.propertyIsEnumerable,z=O(function(){return arguments}())?O:function(e){return D(e)&&P.call(e,"callee")&&!R.call(e,"callee")},_=Array.isArray,U=n(11),Z=/^(?:0|[1-9]\d*)$/;var F=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Z.test(e))&&e>-1&&e%1==0&&e<t};var G=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},B={};B["[object Float32Array]"]=B["[object Float64Array]"]=B["[object Int8Array]"]=B["[object Int16Array]"]=B["[object Int32Array]"]=B["[object Uint8Array]"]=B["[object Uint8ClampedArray]"]=B["[object Uint16Array]"]=B["[object Uint32Array]"]=!0,B["[object Arguments]"]=B["[object Array]"]=B["[object ArrayBuffer]"]=B["[object Boolean]"]=B["[object DataView]"]=B["[object Date]"]=B["[object Error]"]=B["[object Function]"]=B["[object Map]"]=B["[object Number]"]=B["[object Object]"]=B["[object RegExp]"]=B["[object Set]"]=B["[object String]"]=B["[object WeakMap]"]=!1;var Y=function(e){return D(e)&&G(e.length)&&!!B[j(e)]};var W=function(e){return function(t){return e(t)}},H=n(9),V=H.a&&H.a.isTypedArray,q=V?W(V):Y,Q=Object.prototype.hasOwnProperty;var J=function(e,t){var n=_(e),r=!n&&z(e),i=!n&&!r&&Object(U.a)(e),a=!n&&!r&&!i&&q(e),o=n||r||i||a,s=o?I(e.length,String):[],l=s.length;for(var c in e)!t&&!Q.call(e,c)||o&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||F(c,l))||s.push(c);return s},X=Object.prototype;var K=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||X)};var $=function(e,t){return function(n){return e(t(n))}},ee=$(Object.keys,Object),te=Object.prototype.hasOwnProperty;var ne=function(e){if(!K(e))return ee(e);var t=[];for(var n in Object(e))te.call(e,n)&&"constructor"!=n&&t.push(n);return t};var re=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var ie=function(e){if(!re(e))return!1;var t=j(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};var ae=function(e){return null!=e&&G(e.length)&&!ie(e)};var oe=function(e){return ae(e)?J(e):ne(e)};var se=function(e,t){return e&&b(e,t,oe)};var le=function(e,t){return function(n,r){if(null==n)return n;if(!ae(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&!1!==r(o[a],a,o););return n}}(se);var ce=function(e){return e};var ue=function(e){return"function"==typeof e?e:ce};var fe=function(e,t){return(_(e)?v:le)(e,ue(t))};function de(e,t){const n=null!=t?pe(t):void 0,r=[];for(;null!=e.parentElement;)e=e.parentElement,(null==n||n(e))&&r.push(e);return r}function pe(e){return"function"==typeof e?t=>t.namespaceURI===Me&&e(t):Array.isArray(e)?t=>t.namespaceURI===Me&&e.includes(t.localName):t=>t.namespaceURI===Me&&t.localName===e}function he(e,t){const n=pe(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 a=e(i);if(null!=a)return a}}(e)}function ge(e,t,n=!0){const r=pe(t),i=[];return function e(t){for(let a=0,o=t.children.length;a<o;a++){const o=t.children[a];r(o)?(i.push(o),n&&e(o)):e(o)}}(e),i}function me(e,t){const n=pe(t);for(;null!=e.parentElement;)if(n(e=e.parentElement))return e}function ye(e,t){const n=pe(t);for(let t=0,r=e.children.length;t<r;t++){const r=e.children[t];if(n(r))return r}}function ve(e,t){var n;return null!==(n=e.getAttribute(t))&&void 0!==n?n:void 0}function be(e,t){const n=e.getAttribute(t);return null!=n?Number(n):void 0}function Ie(e,t){return"true"===ve(e,t)}function xe(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 we(e){return ge(e,["choice-answer","dropdown-answer","text-answer","scored-text-answer"],!0)}function Te(e,t,...n){const r=document.createElement(e);return function(e,t){fe(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}const Me="http://ylioppilastutkinto.fi/exam.xsd";function Ae(e){function t(t,r,a){switch(t.nodeType){case Node.TEXT_NODE:case Node.CDATA_SECTION_NODE:return 0===a?function(e){return e.textContent}(t):null;case Node.ELEMENT_NODE:return function(t,r,a){switch(t.namespaceURI){case"http://www.w3.org/1999/xhtml":return function(e,t,r){const a=e.hasChildNodes()?n(e,r):null;if(0===r){const n=e.localName,r=function(e,t){const n={key:Ce(e,t)};for(const t of e.attributes){const e="class"===t.localName?"className":t.localName;n[e]=t.value}return n}(e,t);return i.a.createElement(n,{...r},a)}return a}(t,r,a);case Me:return function(t,r){const a=e[t.localName],o=t.getAttribute("class")||void 0;return a?i.a.createElement(a,{element:t,className:o,renderChildNodes:n,key:Ce(t,r)}):null}(t,r);default:throw new Error("Unrecognized element: "+t.localName)}}(t,r,a);default:return null}}function n(e,n=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}(e,(e,r)=>t(e,r,n))}return n}function Ce(e,t){return`${e.localName}-${t}`}function Ee(e){return(Ee="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})(e)}function Ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Ne(e,t,n[t])}))}return e}function ke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function je(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 De(e,t,n){return t&&je(e.prototype,t),n&&je(e,n),e}var Oe=n(66),Le=n.n(Oe);function Pe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Re(e,t){if(t&&("object"===Le()(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Pe(e)}function ze(e){return(ze=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _e(e,t){return(_e=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ue(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&&_e(e,t)}var Ze={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},Fe=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ke(this,e),this.init(t,n)}return De(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Ze,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){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)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,Se({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),Ge=function(){function e(){ke(this,e),this.observers={}}return De(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value: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];if(this.observers[e]){var i=[].concat(this.observers[e]);i.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function Be(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function Ye(e){return null==e?"":""+e}function We(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function He(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var a="string"!=typeof t?[].concat(t):t.split(".");a.length>1;){if(i())return{};var o=r(a.shift());!e[o]&&n&&(e[o]=new n),e=Object.prototype.hasOwnProperty.call(e,o)?e[o]:{}}return i()?{}:{obj:e,k:r(a.shift())}}function Ve(e,t,n){var r=He(e,t,Object);r.obj[r.k]=n}function qe(e,t){var n=He(e,t),r=n.obj,i=n.k;if(r)return r[i]}function Qe(e,t,n){var r=qe(e,n);return void 0!==r?r:qe(t,n)}function Je(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):Je(e[r],t[r],n):e[r]=t[r]);return e}function Xe(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Ke={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function $e(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return Ke[e]})):e}var et="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function tt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,a=0;a<r.length;++a){if(!i)return;if("string"==typeof i[r[a]]&&a+1<r.length)return;if(void 0===i[r[a]]){for(var o=2,s=r.slice(a,a+o).join(n),l=i[s];void 0===l&&r.length>a+o;)o++,l=i[s=r.slice(a,a+o).join(n)];if(void 0===l)return;if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s];var c=r.slice(a+o).join(n);return c?tt(l,c,n):void 0}i=i[r[a]]}return i}}var nt=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ke(this,t),n=Re(this,ze(t).call(this)),et&&Ge.call(Pe(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return Ue(t,e),De(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,a=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,o=[e,t];n&&"string"!=typeof n&&(o=o.concat(n)),n&&"string"==typeof n&&(o=o.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(o=e.split("."));var s=qe(this.data,o);return s||!a||"string"!=typeof n?s:tt(this.data&&this.data[e]&&this.data[e][t],n,i)}},{key:"addResource",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=".");var o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(".")>-1&&(r=t,t=(o=e.split("."))[1]),this.addNamespaces(t),Ve(this.data,o,r),i.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in n)"string"!=typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},o=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(o=e.split("."))[1]),this.addNamespaces(t);var s=qe(this.data,o)||{};r?Je(s,n,i):s=Se({},s,n),Ve(this.data,o,s),a.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?Se({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(Ge),rt={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var a=this;return e.forEach((function(e){a.processors[e]&&(t=a.processors[e].process(t,n,r,i))})),t}},it={},at=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ke(this,t),n=Re(this,ze(t).call(this)),et&&Ge.call(Pe(n)),We(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,Pe(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=Fe.create("translator"),n}return Ue(t,e),De(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var a=e.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:e,namespaces:i};var o=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(e,n,r){var i=this;if("object"!==Ee(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var a=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,o=this.extractFromKey(e[e.length-1],n),s=o.key,l=o.namespaces,c=l[l.length-1],u=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(f){var d=n.nsSeparator||this.options.nsSeparator;return c+d+s}return s}var p=this.resolve(e,n),h=p&&p.res,g=p&&p.usedKey||s,m=p&&p.exactUsedKey||s,y=Object.prototype.toString.apply(h),v=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,I=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(I&&h&&x&&v.indexOf(y)<0&&("string"!=typeof b||"[object Array]"!==y)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,Se({},n,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var w="[object Array]"===y,T=w?[]:{},M=w?m:g;for(var A in h)if(Object.prototype.hasOwnProperty.call(h,A)){var C="".concat(M).concat(a).concat(A);T[A]=this.translate(C,Se({},n,{joinArrays:!1,ns:l})),T[A]===C&&(T[A]=h[A])}h=T}}else if(I&&"string"==typeof b&&"[object Array]"===y)(h=h.join(b))&&(h=this.extendTranslation(h,e,n,r));else{var E=!1,N=!1,S=void 0!==n.count&&"string"!=typeof n.count,k=t.hasDefaultValue(n),j=S?this.pluralResolver.getSuffix(u,n.count):"",D=n["defaultValue".concat(j)]||n.defaultValue;!this.isValidLookup(h)&&k&&(E=!0,h=D),this.isValidLookup(h)||(N=!0,h=s);var O=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,L=O&&N?void 0:h,P=k&&D!==h&&this.options.updateMissing;if(N||E||P){if(this.logger.log(P?"updateKey":"missingKey",u,c,s,P?D:h),a){var R=this.resolve(s,Se({},n,{keySeparator:!1}));R&&R.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.")}var z=[],_=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&_&&_[0])for(var U=0;U<_.length;U++)z.push(_[U]);else"all"===this.options.saveMissingTo?z=this.languageUtils.toResolveHierarchy(n.lng||this.language):z.push(n.lng||this.language);var Z=function(e,t,r){i.options.missingKeyHandler?i.options.missingKeyHandler(e,c,t,P?r:L,P,n):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,c,t,P?r:L,P,n),i.emit("missingKey",e,c,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&S?z.forEach((function(e){i.pluralResolver.getSuffixes(e).forEach((function(t){Z([e],s+t,n["defaultValue".concat(t)]||D)}))})):Z(z,s,D))}h=this.extendTranslation(h,e,n,p,r),N&&h===s&&this.options.appendNamespaceToMissingKey&&(h="".concat(c,":").concat(s)),(N||E)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,i){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(Se({},n,{interpolation:Se({},this.options.interpolation,n.interpolation)}));var o,s=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(s){var l=e.match(this.interpolator.nestingRegexp);o=l&&l.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=Se({},this.options.interpolation.defaultVariables,c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),s){var u=e.match(this.interpolator.nestingRegexp);o<(u&&u.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return i&&i[0]===r[0]&&!n.context?(a.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):a.translate.apply(a,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=rt.handle(d,e,t,this.options&&this.options.postProcessPassResolved?Se({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,i,a,o=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!o.isValidLookup(t)){var l=o.extractFromKey(e,s),c=l.key;n=c;var u=l.namespaces;o.options.fallbackNS&&(u=u.concat(o.options.fallbackNS));var f=void 0!==s.count&&"string"!=typeof s.count,d=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,p=s.lngs?s.lngs:o.languageUtils.toResolveHierarchy(s.lng||o.language,s.fallbackLng);u.forEach((function(e){o.isValidLookup(t)||(a=e,!it["".concat(p[0],"-").concat(e)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(a)&&(it["".concat(p[0],"-").concat(e)]=!0,o.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(a,'" 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((function(n){if(!o.isValidLookup(t)){i=n;var a,l,u=c,p=[u];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(p,c,n,e,s);else f&&(a=o.pluralResolver.getSuffix(n,s.count)),f&&d&&p.push(u+a),d&&p.push(u+="".concat(o.options.contextSeparator).concat(s.context)),f&&p.push(u+=a);for(;l=p.pop();)o.isValidLookup(t)||(r=l,t=o.getResource(n,e,l,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:a}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var 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)}}],[{key:"hasDefaultValue",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,"defaultValue".length)&&void 0!==e[t])return!0;return!1}}]),t}(Ge);function ot(e){return e.charAt(0).toUpperCase()+e.slice(1)}var st=function(){function e(t){ke(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Fe.create("languageUtils")}return De(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=ot(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]=ot(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=ot(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var 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||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],a=function(e){e&&(n.isSupportedCode(e)?i.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&a(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&a(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&a(this.getLanguagePartFromCode(e))):"string"==typeof e&&a(this.formatLanguageCode(e)),r.forEach((function(e){i.indexOf(e)<0&&a(n.formatLanguageCode(e))})),i}}]),e}(),lt=[{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}],ct={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function ut(){var e={};return lt.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:ct[t.fc]}}))})),e}var ft=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ke(this,e),this.languageUtils=t,this.options=n,this.logger=Fe.create("pluralResolver"),this.rules=ut()}return De(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var i=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),a=r.numbers[i];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===a?a="plural":1===a&&(a=""));var o=function(){return n.options.prepend&&a.toString()?n.options.prepend+a.toString():a.toString()};return"v1"===this.options.compatibilityJSON?1===a?"":"number"==typeof a?"_plural_".concat(a.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?o():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),dt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ke(this,e),this.logger=Fe.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return De(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:$e,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?Xe(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?Xe(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?Xe(t.nestingPrefix):t.nestingPrefixEscaped||Xe("$t("),this.nestingSuffix=t.nestingSuffix?Xe(t.nestingSuffix):t.nestingSuffixEscaped||Xe(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var i,a,o,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var u=function(e){if(e.indexOf(s.formatSeparator)<0){var i=Qe(t,l,e);return s.alwaysFormat?s.format(i,void 0,n,Se({},r,t,{interpolationkey:e})):i}var a=e.split(s.formatSeparator),o=a.shift().trim(),c=a.join(s.formatSeparator).trim();return s.format(Qe(t,l,o),c,n,Se({},r,t,{interpolationkey:o}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?c(s.escape(e)):c(e)}}].forEach((function(t){for(o=0;i=t.regex.exec(e);){if(void 0===(a=u(i[1].trim())))if("function"==typeof f){var n=f(e,i,r);a="string"==typeof n?n:""}else{if(d){a=i[0];continue}s.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(e)),a=""}else"string"==typeof a||s.useRawValueToEscape||(a=Ye(a));var l=t.safeValue(a);if(e=e.replace(i[0],l),d?(t.regex.lastIndex+=l.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++o>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Se({},a);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),i="{".concat(r[1]);e=r[0],i=(i=this.interpolate(i,o)).replace(/'/g,'"');try{o=JSON.parse(i),t&&(o=Se({},t,o))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(i)}return delete o.defaultValue,e}for(o.applyPostProcessor=!1,delete o.defaultValue;n=this.nestingRegexp.exec(e);){var l=[],c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var u=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=u.shift(),l=u,c=!0}if((r=t(s.call(this,n[1].trim(),o),o))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=Ye(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=l.reduce((function(e,t){return i.format(e,t,a.lng,Se({},a,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();var pt=function(e){function t(e,n,r){var i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return ke(this,t),i=Re(this,ze(t).call(this)),et&&Ge.call(Pe(i)),i.backend=e,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=a,i.logger=Fe.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,a.backend,a),i}return Ue(t,e),De(t,[{key:"queueLoad",value:function(e,t,n,r){var i=this,a=[],o=[],s=[],l=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&i.store.hasResourceBundle(e,t)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?o.indexOf(s)<0&&o.push(s):(i.state[s]=1,r=!1,o.indexOf(s)<0&&o.push(s),a.indexOf(s)<0&&a.push(s),l.indexOf(t)<0&&l.push(t)))})),r||s.push(e)})),(a.length||o.length)&&this.queue.push({pending:o,loaded:{},errors:[],callback:r}),{toLoad:a,pending:o,toLoadLanguages:s,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),i=r[0],a=r[1];t&&this.emit("failedLoading",i,a,t),n&&this.store.addResourceBundle(i,a,n),this.state[e]=t?-1:2;var o={};this.queue.forEach((function(n){var r,s,l,c,u,f;r=n.loaded,s=a,c=He(r,[i],Object),u=c.obj,f=c.k,u[f]=u[f]||[],l&&(u[f]=u[f].concat(s)),l||u[f].push(s),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){o[e]||(o[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){o[e].indexOf(t)<0&&o[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",o),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,o=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,l){s&&l&&i<5?setTimeout((function(){r.read.call(r,e,t,n,i+1,2*a,o)}),a):o(s,l)})):o(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=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."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var a=this.queueLoad(e,t,r,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),i=r[0],a=r[1];this.read(i,a,"read",void 0,void 0,(function(r,o){r&&t.logger.warn("".concat(n,"loading namespace ").concat(a," for language ").concat(i," failed"),r),!r&&o&&t.logger.log("".concat(n,"loaded namespace ").concat(a," for language ").concat(i),o),t.loaded(e,r,o)}))}},{key:"saveMissing",value:function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(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!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,Se({},a,{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(Ge);function ht(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!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:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===Ee(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===Ee(e[2])||"object"===Ee(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function gt(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function mt(){}var yt=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(ke(this,t),e=Re(this,ze(t).call(this)),et&&Ge.call(Pe(e)),e.options=gt(n),e.services={},e.logger=Fe,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),Re(e,Pe(e));setTimeout((function(){e.init(n,r)}),0)}return e}return Ue(t,e),De(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=Se({},ht(),this.options,gt(t)),this.format=this.options.interpolation.format,n||(n=mt),!this.options.isClone){this.modules.logger?Fe.init(r(this.modules.logger),this.options):Fe.init(null,this.options);var i=new st(this.options);this.store=new nt(this.options.resources,this.options);var a=this.services;a.logger=Fe,a.resourceStore=this.store,a.languageUtils=i,a.pluralResolver=new ft(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new dt(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new pt(r(this.modules.backend),a.resourceStore,a,this.options),a.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.apply(e,[t].concat(r))})),this.modules.languageDetector&&(a.languageDetector=r(this.modules.languageDetector),a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=r(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new at(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.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var o=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);o.length>0&&"dev"!==o[0]&&(this.options.lng=o[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var s=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];s.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var l=["addResource","addResources","addResourceBundle","removeResourceBundle"];l.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var c=Be(),u=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mt,r=n,i="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return r();var a=[],o=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){a.indexOf(e)<0&&a.push(e)}))};if(i)o(i);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return o(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return o(e)})),this.services.backendConnector.load(a,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=Be();return e||(e=this.languages),t||(t=this.options.ns),n||(n=mt),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(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&&rt.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=Be();this.emit("languageChanging",e);var i=function(i){e||i||!n.services.languageDetector||(i=[]);var a="string"==typeof i?i:n.services.languageUtils.getBestMatchFromCodes(i);a&&(n.language||(n.language=a,n.languages=n.services.languageUtils.toResolveHierarchy(a)),n.translator.language||n.translator.changeLanguage(a),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(a)),n.loadResources(a,(function(e){!function(e,i){i?(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i),n.translator.changeLanguage(i),n.isLanguageChangingTo=void 0,n.emit("languageChanged",i),n.logger.log("languageChanged",i)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,a)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,i=function e(t,i){var a;if("object"!==Ee(i)){for(var o=arguments.length,s=new Array(o>2?o-2:0),l=2;l<o;l++)s[l-2]=arguments[l];a=r.options.overloadTranslationOptionHandler([t,i].concat(s))}else a=Se({},i);a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns;var c=r.options.keySeparator||".",u=n?"".concat(n).concat(c).concat(t):t;return r.t(u,a)};return"string"==typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=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;var r=this.languages[0],i=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var o=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,o);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||(!this.services.backendConnector.backend||!(!o(r,e)||i&&!o(a,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=Be();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=Be();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],i=e.filter((function(e){return r.indexOf(e)<0}));return i.length?(this.options.preload=r.concat(i),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return"rtl";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"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mt,i=Se({},this.options,n,{isClone:!0}),a=new t(i),o=["store","services","language"];return o.forEach((function(t){a[t]=e[t]})),a.services=Se({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new at(a.services,a.options),a.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];a.emit.apply(a,[e].concat(n))})),a.init(i,r),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(Ge));var vt=function(e){return e&&e.length?e[0]:void 0};var bt=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};var It=function(){},xt=n(67),wt=n.n(xt);function Tt(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var Mt={};function At(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&Mt[t[0]]||("string"==typeof t[0]&&(Mt[t[0]]=new Date),Tt.apply(void 0,t))}function Ct(e,t,n){e.loadNamespaces(t,(function(){if(e.isInitialized)n();else{e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),n()}))}}))}function Et(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return At("i18n.languages were undefined or empty",t.languages),!0;var r=t.languages[0],i=!!t.options&&t.options.fallbackLng,a=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var o=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(r,e)||(!t.services.backendConnector.backend||!(!o(r,e)||i&&!o(a,e))))}function Nt(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 St(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nt(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kt=function(e){return"symbol"==typeof e||D(e)&&"[object Symbol]"==j(e)},jt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dt=/^\w*$/;var Ot,Lt=function(e,t){if(_(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!kt(e))||(Dt.test(e)||!jt.test(e)||null!=t&&e in Object(t))},Pt=x.a["__core-js_shared__"],Rt=(Ot=/[^.]+$/.exec(Pt&&Pt.keys&&Pt.keys.IE_PROTO||""))?"Symbol(src)_1."+Ot:"";var zt=function(e){return!!Rt&&Rt in e},_t=Function.prototype.toString;var Ut=function(e){if(null!=e){try{return _t.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Zt=/^\[object .+?Constructor\]$/,Ft=Function.prototype,Gt=Object.prototype,Bt=Ft.toString,Yt=Gt.hasOwnProperty,Wt=RegExp("^"+Bt.call(Yt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Ht=function(e){return!(!re(e)||zt(e))&&(ie(e)?Wt:Zt).test(Ut(e))};var Vt=function(e,t){return null==e?void 0:e[t]};var qt=function(e,t){var n=Vt(e,t);return Ht(n)?n:void 0},Qt=qt(Object,"create");var Jt=function(){this.__data__=Qt?Qt(null):{},this.size=0};var Xt=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Kt=Object.prototype.hasOwnProperty;var $t=function(e){var t=this.__data__;if(Qt){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Kt.call(t,e)?t[e]:void 0},en=Object.prototype.hasOwnProperty;var tn=function(e){var t=this.__data__;return Qt?void 0!==t[e]:en.call(t,e)};var nn=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Qt&&void 0===t?"__lodash_hash_undefined__":t,this};function rn(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])}}rn.prototype.clear=Jt,rn.prototype.delete=Xt,rn.prototype.get=$t,rn.prototype.has=tn,rn.prototype.set=nn;var an=rn;var on=function(){this.__data__=[],this.size=0};var sn=function(e,t){return e===t||e!=e&&t!=t};var ln=function(e,t){for(var n=e.length;n--;)if(sn(e[n][0],t))return n;return-1},cn=Array.prototype.splice;var un=function(e){var t=this.__data__,n=ln(t,e);return!(n<0)&&(n==t.length-1?t.pop():cn.call(t,n,1),--this.size,!0)};var fn=function(e){var t=this.__data__,n=ln(t,e);return n<0?void 0:t[n][1]};var dn=function(e){return ln(this.__data__,e)>-1};var pn=function(e,t){var n=this.__data__,r=ln(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function hn(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])}}hn.prototype.clear=on,hn.prototype.delete=un,hn.prototype.get=fn,hn.prototype.has=dn,hn.prototype.set=pn;var gn=hn,mn=qt(x.a,"Map");var yn=function(){this.size=0,this.__data__={hash:new an,map:new(mn||gn),string:new an}};var vn=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var bn=function(e,t){var n=e.__data__;return vn(t)?n["string"==typeof t?"string":"hash"]:n.map};var In=function(e){var t=bn(this,e).delete(e);return this.size-=t?1:0,t};var xn=function(e){return bn(this,e).get(e)};var wn=function(e){return bn(this,e).has(e)};var Tn=function(e,t){var n=bn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Mn(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])}}Mn.prototype.clear=yn,Mn.prototype.delete=In,Mn.prototype.get=xn,Mn.prototype.has=wn,Mn.prototype.set=Tn;var An=Mn;function Cn(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],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Cn.Cache||An),n}Cn.Cache=An;var En=Cn;var Nn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Sn=/\\(\\)?/g,kn=function(e){var t=En(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Nn,(function(e,n,r,i){t.push(r?i.replace(Sn,"$1"):n||e)})),t}));var jn=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},Dn=w?w.prototype:void 0,On=Dn?Dn.toString:void 0;var Ln=function e(t){if("string"==typeof t)return t;if(_(t))return jn(t,e)+"";if(kt(t))return On?On.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};var Pn=function(e){return null==e?"":Ln(e)};var Rn=function(e,t){return _(e)?e:Lt(e,t)?[e]:kn(Pn(e))};var zn=function(e){if("string"==typeof e||kt(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};var _n=function(e,t){for(var n=0,r=(t=Rn(t,e)).length;null!=e&&n<r;)e=e[zn(t[n++])];return n&&n==r?e:void 0},Un=function(){try{var e=qt(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var Zn=function(e,t,n){"__proto__"==t&&Un?Un(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Fn=Object.prototype.hasOwnProperty;var Gn=function(e,t,n){var r=e[t];Fn.call(e,t)&&sn(r,n)&&(void 0!==n||t in e)||Zn(e,t,n)};var Bn=function(e,t,n,r){if(!re(e))return e;for(var i=-1,a=(t=Rn(t,e)).length,o=a-1,s=e;null!=s&&++i<a;){var l=zn(t[i]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=o){var u=s[l];void 0===(c=r?r(u,l,s):void 0)&&(c=re(u)?u:F(t[i+1])?[]:{})}Gn(s,l,c),s=s[l]}return e};var Yn=function(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=_n(e,o);n(s,o)&&Bn(a,Rn(o,e),s)}return a};var Wn=function(e,t){return null!=e&&t in Object(e)};var Hn=function(e,t,n){for(var r=-1,i=(t=Rn(t,e)).length,a=!1;++r<i;){var o=zn(t[r]);if(!(a=null!=e&&n(e,o)))break;e=e[o]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&G(i)&&F(o,i)&&(_(e)||z(e))};var Vn=function(e,t){return null!=e&&Hn(e,t,Wn)};var qn=function(e,t){return Yn(e,t,(function(t,n){return Vn(e,n)}))};var Qn=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},Jn=w?w.isConcatSpreadable:void 0;var Xn=function(e){return _(e)||z(e)||!!(Jn&&e&&e[Jn])};var Kn=function e(t,n,r,i,a){var o=-1,s=t.length;for(r||(r=Xn),a||(a=[]);++o<s;){var l=t[o];n>0&&r(l)?n>1?e(l,n-1,r,i,a):Qn(a,l):i||(a[a.length]=l)}return a};var $n=function(e){return(null==e?0:e.length)?Kn(e,1):[]};var er=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)},tr=Math.max;var nr=function(e,t,n){return t=tr(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=tr(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),er(e,this,s)}};var rr=function(e){return function(){return e}},ir=Un?function(e,t){return Un(e,"toString",{configurable:!0,enumerable:!1,value:rr(t),writable:!0})}:ce,ar=Date.now;var or=function(e){var t=0,n=0;return function(){var r=ar(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},sr=or(ir);var lr=function(e){return sr(nr(e,void 0,$n),e+"")},cr=lr((function(e,t){return null==e?{}:qn(e,t)}));const ur={"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:{play:"Lyssna på 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","censor-annotations":"Censorns anteckningar"},references:{heading:"Källor",source:"Källa:",date:"Publicerad:","reference-date":"Hämtad:",translator:"Översättning:","modified-by":"Bearbetning:"},cas:{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"}},"toc-heading":"Innehåll","answer-saved":"Sparad","too-many-answers":"TODO","listen-times-remaining":"{{count}} lyssningsgång kvar.","listen-times-remaining_plural":"{{count}} lyssningsgånger kvar.","answer-length":"Svarets längd: {{count}} tecken.","previous-answer-versions":"Tidigare utkast till svar","zoom-in":"Förstora bilden","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."},"screen-reader":{"answer-begin":"[Svaret börjar]","answer-end":"[Svaret avslutar]","correct-answer":"[Accepterat svar]"}},fr=cr(ur,["exam-total","material","external-material-title","section","references","toc-heading"]),dr={"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:{play:"Kuuntele äänite."},"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":"Valmistavan arvostelun merkinnät","censor-annotations":"Sensorin merkinnät"},references:{heading:"Lähteet",source:"Lähde:",date:"Julkaistu:","reference-date":"Viitattu:",translator:"Käännös:","modified-by":"Muokkaus:"},cas:{forbidden:{infoText:"Saat estetyt laskinohjelmat käyttöön 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"}},"toc-heading":"Sisällys","answer-saved":"Tallennettu","too-many-answers":"Vastattu liiaan moneen tehtävään:","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ä.","previous-answer-versions":"Aiemmat vastausluonnokset","zoom-in":"Suurenna kuva","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."},"screen-reader":{"answer-begin":"[Vastaus alkaa]","answer-end":"[Vastaus päättyy]","correct-answer":"[Hyväksytty vastaus]"}},pr=cr(dr,["exam-total","material","external-material-title","section","references","toc-heading"]),hr={"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"},gr={"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"},mr={section:""},yr={"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"},vr={"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"},br={"exam-total":"Весь экзамен",material:"Материал","external-material-title":"Материал",section:"Часть {{displayNumber}}:",references:{heading:"Источники",source:"Источник",date:"Опубликовано","reference-date":"Дата обращения",translator:"Перевод","modified-by":"Адаптировано"},"toc-heading":"Содержание"},Ir={A_E:{"external-material-title":"Aineistot","answering-instructions":{"toc-section_*_1_1":"Aiheet","section_*_1_1":"Valitse yksi aihe."}},BA:fr,BB:fr,CA:pr,CB:pr,EA:hr,EC:hr,FA:gr,FC:gr,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:mr,N:mr,O_E:{"answering-instructions":{"toc-section_*_1_1":"Ämnen","section_*_1_1":"Välj ett ämne."}},SA:vr,SC:vr,PA:yr,PC:yr,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:br,VC:br,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"}},xr={"fi-FI":{translation:dr,...Ir},"sv-FI":{translation:ur,...Ir}};function wr(e,t,n){const r=t?t+(n?"_"+n:""):"translation";return yt.use({type:"postProcessor",name:"lowercase",process:(e,t,n)=>e.toLocaleLowerCase(n.lng)}).createInstance({resources:xr,lng:e,fallbackLng:"fi-FI",debug:!1,defaultNS:r,fallbackNS:"translation",interpolation:{escapeValue:!1,format:(e,t)=>{switch(t){case"range":{const[t,n]=e;return null==t?n:null==n||t===n?t:`${t}–${n}`}case"first":return vt(e);case"last":return bt(e);default:return e}}}},It)}function Tr(){const{i18n:e,t:t}=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,i=Object(r.useContext)(p)||{},a=i.i18n,o=i.defaultNS,s=n||a||m();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new g),!s){At("You will need to pass in an i18next instance by using initReactI18next");var l=function(e){return Array.isArray(e)?e[e.length-1]:e},c=[l,{},!1];return c.t=l,c.i18n={},c.ready=!1,c}s.options.react&&void 0!==s.options.react.wait&&At("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var u=St(St(St({},h()),s.options.react),t),f=u.useSuspense,d=u.keyPrefix,y=e||o||s.options&&s.options.defaultNS;y="string"==typeof y?[y]:y||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(y);var v=(s.isInitialized||s.initializedStoreOnce)&&y.every((function(e){return Et(e,s,u)}));function b(){return s.getFixedT(null,"fallback"===u.nsMode?y:y[0],d)}var I=Object(r.useState)(b),x=wt()(I,2),w=x[0],T=x[1],M=Object(r.useRef)(!0);Object(r.useEffect)((function(){var e=u.bindI18n,t=u.bindI18nStore;function n(){M.current&&T(b)}return M.current=!0,v||f||Ct(s,y,(function(){M.current&&T(b)})),e&&s&&s.on(e,n),t&&s&&s.store.on(t,n),function(){M.current=!1,e&&s&&e.split(" ").forEach((function(e){return s.off(e,n)})),t&&s&&t.split(" ").forEach((function(e){return s.store.off(e,n)}))}}),[s,y.join()]);var A=Object(r.useRef)(!0);Object(r.useEffect)((function(){M.current&&!A.current&&T(b),A.current=!1}),[s]);var C=[w,s,v];if(C.t=w,C.i18n=s,C.ready=v,v)return C;if(!v&&!f)return C;throw new Promise((function(e){Ct(s,y,(function(){e()}))}))}(),n=(t,n)=>function(e,t,n){const r=e.t(t,n),a=e.options.defaultNS,o="translation"!==a&&a in Ir;return o&&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,a,t)||!o?r:i.a.createElement("span",{lang:e.language},r)}(e,t,n);return n.raw=t,{i18n:e,t:n}}const Mr=(e,t)=>()=>{e.language!==t&&e.changeLanguage(t).then(It).catch(It)};const Ar=new WeakMap;let Cr=0;const Er=e=>t=>`${e}-${(e=>{const t=Ar.get(e);if(null!=t)return t;const n=++Cr;return Ar.set(e,n),n})(t)}`,Nr=e=>t=>`${e}-${t}`,Sr=Nr("section-title"),kr=Nr("question-title"),jr=Er("external-material-list-title"),Dr=Nr("toc-section-title"),Or=Er("answer-score"),Lr=Er("image-caption"),Pr=Er("video-caption"),Rr=Er("audio-label");function zr(){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",zr),()=>window.removeEventListener("hashchange",zr)}function _r(e){return Object(r.useState)(e)[0]}function Ur(e,t){const n=new URL(e,"http://example.com");fe(t,(e,t)=>n[t]=e);const r=n.pathname+n.search+n.hash;return e.startsWith("/")?r:r.substr(1)}var Zr=({children:e,href:t,type:n})=>"link"===n?i.a.createElement("a",{href:t,className:"attachment-link e-nowrap",target:"attachments"},e):i.a.createElement("span",{className:"attachment-link e-nowrap"},e);function Fr(e){return e.displayName||e.name||"Component"}const Gr=(e,t)=>n=>{const r=r=>{const a=t(r);return i.a.createElement(e.Provider,{value:a},i.a.createElement(n,{...r}))};return r.displayName="WithContext("+Fr(n)+")",r},Br=i.a.createContext({});function Yr(e){return Gr(Br,({attachmentsURL:e,resolveAttachment:t,doc:n})=>{const r=n.documentElement,i=ve(r,"date"),a=ve(r,"exam-lang"),o=ve(r,"lang")||a;return{attachmentsURL:e,date:i?new Date(i):void 0,dateTimeFormatter:new Intl.DateTimeFormat("fi-FI",{timeZone:"UTC"}),dayCode:ve(r,"day-code"),examCode:ve(r,"exam-code"),language:a,subjectLanguage:o,maxAnswers:be(r,"max-answers"),maxScore:be(r,"max-score"),numberOfSections:ge(r,"section").length,resolveAttachment:t,root:r}})(e)}var Wr=e=>i.a.memo(({element:t})=>{const n=t.getAttribute("ref"),{root:a}=Object(r.useContext)(Br),{attachmentsURL:o}=Object(r.useContext)(Br),{t:s}=Tr(),l=he(a,e=>"attachment"===e.localName&&e.getAttribute("name")===n).getAttribute("display-number"),c="short"===t.getAttribute("type"),u=Ur(o,{hash:l});return c?i.a.createElement(Zr,{href:u,type:e},l):i.a.createElement(i.a.Fragment,null,"(",i.a.createElement(Zr,{href:u,type:e},s("material",{postProcess:"lowercase"})," ",l),")")});var Hr=e=>i.a.memo(({element:t})=>{const{root:n,attachmentsURL:a}=Object(r.useContext)(Br),{t:o}=Tr(),s=xe(t,e=>{const t=e.getAttribute("ref");return he(n,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 a=e[i];if(r&&t(a,i,e)){const e=[a];n.push(e)}else{n[n.length-1].push(a)}r=a}return n}(s,(e,t)=>t>0&&!function(e,t){const n=e.length;if(n!==t.length)return!1;return e.startsWith(t.slice(0,n-1))&&t.charCodeAt(n-1)-e.charCodeAt(n-1)==1}(s[t-1],e)),c="short"===t.getAttribute("type"),u=Ur(a,{hash:s[0]}),f=l.map(e=>e.length>1?`${e[0]}–${e[e.length-1]}`:e[0]).join(", "),d=l[0].length;return c?i.a.createElement(Zr,{href:u,type:e},f):i.a.createElement(i.a.Fragment,null,"(",i.a.createElement(Zr,{href:u,type:e},o("material",{count:d,postProcess:"lowercase"})," ",f),")")});const Vr=i.a.createContext({}),qr=Gr(Vr,({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}});var Qr=i.a.memo(qr((function({element:e,renderChildNodes:t}){const{displayNumber:n,isExternal:a}=Object(r.useContext)(Vr);return a?i.a.createElement("div",{id:n,className:"attachments-attachment e-mrg-0 e-mrg-t-8"},t(e)):null})));var Jr=i.a.memo((function({element:e,renderChildNodes:t}){const{displayNumber:n}=Object(r.useContext)(Vr);return i.a.createElement("h3",null,n," ",t(e))})),Xr=n(2),Kr=n.n(Xr),$r=n(1),ei=n.n($r),ti=i.a.createContext(null);var ni=function(e){e()};function ri(){var e=ni,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}var ii={notify:function(){},get:function(){return[]}};function ai(e,t){var n,r=ii;function i(){o.onStateChange&&o.onStateChange()}function a(){n||(n=t?t.addNestedSub(i):e.subscribe(i),r=ri())}var o={addNestedSub:function(e){return a(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(n)},trySubscribe:a,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=ii)},getListeners:function(){return r}};return o}var oi="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;var si=function(e){var t=e.store,n=e.context,a=e.children,o=Object(r.useMemo)((function(){var e=ai(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),s=Object(r.useMemo)((function(){return t.getState()}),[t]);oi((function(){var e=o.subscription;return e.trySubscribe(),s!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[o,s]);var l=n||ti;return i.a.createElement(l.Provider,{value:o},a)};function li(){return(li=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ci(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var ui=n(37),fi=n.n(ui),di=n(36),pi=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],hi=["reactReduxForwardedRef"],gi=[],mi=[null,null];function yi(e,t){var n=e[1];return[t.payload,n+1]}function vi(e,t,n){oi((function(){return e.apply(void 0,t)}),n)}function bi(e,t,n,r,i,a,o){e.current=r,t.current=i,n.current=!1,a.current&&(a.current=null,o())}function Ii(e,t,n,r,i,a,o,s,l,c){if(e){var u=!1,f=null,d=function(){if(!u){var e,n,d=t.getState();try{e=r(d,i.current)}catch(e){n=e,f=e}n||(f=null),e===a.current?o.current||l():(a.current=e,s.current=e,o.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=d,n.trySubscribe(),d();return function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}}var xi=function(){return[null,0]};function wi(e,t){void 0===t&&(t={});var n=t,a=n.getDisplayName,o=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,s=n.methodName,l=void 0===s?"connectAdvanced":s,c=n.renderCountProp,u=void 0===c?void 0:c,f=n.shouldHandleStateChanges,d=void 0===f||f,p=n.storeKey,h=void 0===p?"store":p,g=(n.withRef,n.forwardRef),m=void 0!==g&&g,y=n.context,v=void 0===y?ti:y,b=ci(n,pi),I=v;return function(t){var n=t.displayName||t.name||"Component",a=o(n),s=li({},b,{getDisplayName:o,methodName:l,renderCountProp:u,shouldHandleStateChanges:d,storeKey:h,displayName:a,wrappedComponentName:n,WrappedComponent:t}),c=b.pure;var f=c?r.useMemo:function(e){return e()};function p(n){var a=Object(r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=ci(n,hi);return[n.context,e,t]}),[n]),o=a[0],l=a[1],c=a[2],u=Object(r.useMemo)((function(){return o&&o.Consumer&&Object(di.isContextConsumer)(i.a.createElement(o.Consumer,null))?o:I}),[o,I]),p=Object(r.useContext)(u),h=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(p)&&Boolean(p.store);var g=h?n.store:p.store,m=Object(r.useMemo)((function(){return function(t){return e(t.dispatch,s)}(g)}),[g]),y=Object(r.useMemo)((function(){if(!d)return mi;var e=ai(g,h?null:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[g,h,p]),v=y[0],b=y[1],x=Object(r.useMemo)((function(){return h?p:li({},p,{subscription:v})}),[h,p,v]),w=Object(r.useReducer)(yi,gi,xi),T=w[0][0],M=w[1];if(T&&T.error)throw T.error;var A=Object(r.useRef)(),C=Object(r.useRef)(c),E=Object(r.useRef)(),N=Object(r.useRef)(!1),S=f((function(){return E.current&&c===C.current?E.current:m(g.getState(),c)}),[g,T,c]);vi(bi,[C,A,N,c,S,E,b]),vi(Ii,[d,g,v,m,C,A,N,E,b,M],[g,v,m]);var k=Object(r.useMemo)((function(){return i.a.createElement(t,li({},S,{ref:l}))}),[l,t,S]);return Object(r.useMemo)((function(){return d?i.a.createElement(u.Provider,{value:x},k):k}),[u,k,x])}var g=c?i.a.memo(p):p;if(g.WrappedComponent=t,g.displayName=p.displayName=a,m){var y=i.a.forwardRef((function(e,t){return i.a.createElement(g,li({},e,{reactReduxForwardedRef:t}))}));return y.displayName=a,y.WrappedComponent=t,fi()(y,t)}return fi()(g,t)}}function Ti(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Mi(e,t){if(Ti(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!Ti(e[n[i]],t[n[i]]))return!1;return!0}function Ai(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function Ci(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function Ei(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=Ci(e);var i=r(t,n);return"function"==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=Ci(i),i=r(t,n)),i},r}}var Ni=[function(e){return"function"==typeof e?Ei(e):void 0},function(e){return e?void 0:Ai((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?Ai((function(t){return function(e,t){var n={},r=function(r){var i=e[r];"function"==typeof i&&(n[r]=function(){return t(i.apply(void 0,arguments))})};for(var i in e)r(i);return n}(e,t)})):void 0}];var Si=[function(e){return"function"==typeof e?Ei(e):void 0},function(e){return e?void 0:Ai((function(){return{}}))}];function ki(e,t,n){return li({},n,e,t)}var ji=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,a=n.areMergedPropsEqual,o=!1;return function(t,n,s){var l=e(t,n,s);return o?i&&a(l,r)||(r=l):(o=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return ki}}];var Di=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function Oi(e,t,n,r){return function(i,a){return n(e(i,a),t(r,a),a)}}function Li(e,t,n,r,i){var a,o,s,l,c,u=i.areStatesEqual,f=i.areOwnPropsEqual,d=i.areStatePropsEqual,p=!1;function h(i,p){var h,g,m=!f(p,o),y=!u(i,a);return a=i,o=p,m&&y?(s=e(a,o),t.dependsOnOwnProps&&(l=t(r,o)),c=n(s,l,o)):m?(e.dependsOnOwnProps&&(s=e(a,o)),t.dependsOnOwnProps&&(l=t(r,o)),c=n(s,l,o)):y?(h=e(a,o),g=!d(h,s),s=h,g&&(c=n(s,l,o)),c):c}return function(i,u){return p?h(i,u):(s=e(a=i,o=u),l=t(r,o),c=n(s,l,o),p=!0,c)}}function Pi(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,a=ci(t,Di),o=n(e,a),s=r(e,a),l=i(e,a);return(a.pure?Li:Oi)(o,s,l,e,a)}var Ri=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function zi(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function _i(e,t){return e===t}function Ui(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?wi:n,i=t.mapStateToPropsFactories,a=void 0===i?Si:i,o=t.mapDispatchToPropsFactories,s=void 0===o?Ni:o,l=t.mergePropsFactories,c=void 0===l?ji:l,u=t.selectorFactory,f=void 0===u?Pi:u;return function(e,t,n,i){void 0===i&&(i={});var o=i,l=o.pure,u=void 0===l||l,d=o.areStatesEqual,p=void 0===d?_i:d,h=o.areOwnPropsEqual,g=void 0===h?Mi:h,m=o.areStatePropsEqual,y=void 0===m?Mi:m,v=o.areMergedPropsEqual,b=void 0===v?Mi:v,I=ci(o,Ri),x=zi(e,a,"mapStateToProps"),w=zi(t,s,"mapDispatchToProps"),T=zi(n,c,"mergeProps");return r(f,li({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:x,initMapDispatchToProps:w,initMergeProps:T,pure:u,areStatesEqual:p,areOwnPropsEqual:g,areStatePropsEqual:y,areMergedPropsEqual:b},I))}}var Zi=Ui();function Fi(){return Object(r.useContext)(ti)}function Gi(e){void 0===e&&(e=ti);var t=e===ti?Fi:function(){return Object(r.useContext)(e)};return function(){return t().store}}var Bi=Gi();function Yi(e){void 0===e&&(e=ti);var t=e===ti?Bi:Gi(e);return function(){return t().dispatch}}var Wi=Yi(),Hi=function(e,t){return e===t};function Vi(e){void 0===e&&(e=ti);var t=e===ti?Fi:function(){return Object(r.useContext)(e)};return function(e,n){void 0===n&&(n=Hi);var i=t(),a=function(e,t,n,i){var a,o=Object(r.useReducer)((function(e){return e+1}),0)[1],s=Object(r.useMemo)((function(){return ai(n,i)}),[n,i]),l=Object(r.useRef)(),c=Object(r.useRef)(),u=Object(r.useRef)(),f=Object(r.useRef)(),d=n.getState();try{if(e!==c.current||d!==u.current||l.current){var p=e(d);a=void 0!==f.current&&t(p,f.current)?f.current:p}else a=f.current}catch(e){throw l.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+l.current.stack+"\n\n"),e}return oi((function(){c.current=e,u.current=d,f.current=a,l.current=void 0})),oi((function(){function e(){try{var e=n.getState();if(e===u.current)return;var r=c.current(e);if(t(r,f.current))return;f.current=r,u.current=e}catch(e){l.current=e}o()}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}}),[n,s]),a}(e,n,i.store,i.subscription);return Object(r.useDebugValue)(a),a}}var qi,Qi=Vi(),Ji=n(8);qi=Ji.unstable_batchedUpdates,ni=qi;var Xi=function(e,t,n){var r=null==e?void 0:_n(e,t);return void 0===r?n:r};const Ki=(e,t)=>n=>{const{nowPlaying:r}=n.audio;return null==r?"stopped":r.audio.restrictedAudioId===t&&r.audio.src===e?"playing":"other-playing"},$i=(e,t)=>n=>n.audio.errors[null!=t?t:e],ea=e=>t=>Xi(t.audio.playbackTimes,e,0),ta=(e,t)=>n=>t-ea(e)(n),na=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}
86
+ function r(e){return"[object Object]"===Object.prototype.toString.call(e)}function i(e){var t,n;return!1!==r(e)&&(void 0===(t=e.constructor)||!1!==r(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}n.r(t),n.d(t,"isPlainObject",(function(){return i}))},function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===i}(e)}(e)};var i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function a(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map((function(e){return a(e,n)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function l(e,t){try{return t in e}catch(e){return!1}}function c(e,t,n){var r={};return n.isMergeableObject(e)&&s(e).forEach((function(t){r[t]=a(e[t],n)})),s(t).forEach((function(i){(function(e,t){return l(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(l(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return u;var n=t.customMerge(e);return"function"==typeof n?n:u}(i,n)(e[i],t[i],n):r[i]=a(t[i],n))})),r}function u(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||o,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=a;var i=Array.isArray(t);return i===Array.isArray(e)?i?n.arrayMerge(e,t,n):c(e,t,n):a(t,n)}u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return u(e,n,t)}),{})};var f=u;e.exports=f},function(e,t,n){var r,i,a;i=[],void 0===(a="function"==typeof(r=function(){return function(e){function t(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function n(t){var n,r=t.exec(e.substring(g));if(r)return n=r[0],g+=n.length,n}for(var r,i,a,o,s,l=e.length,c=/^[ \t\n\r\u000c]+/,u=/^[, \t\n\r\u000c]+/,f=/^[^ \t\n\r\u000c]+/,d=/[,]+$/,p=/^\d+$/,h=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,g=0,m=[];;){if(n(u),g>=l)return m;r=n(f),i=[],","===r.slice(-1)?(r=r.replace(d,""),v()):y()}function y(){for(n(c),a="",o="in descriptor";;){if(s=e.charAt(g),"in descriptor"===o)if(t(s))a&&(i.push(a),a="",o="after descriptor");else{if(","===s)return g+=1,a&&i.push(a),void v();if("("===s)a+=s,o="in parens";else{if(""===s)return a&&i.push(a),void v();a+=s}}else if("in parens"===o)if(")"===s)a+=s,o="in descriptor";else{if(""===s)return i.push(a),void v();a+=s}else if("after descriptor"===o)if(t(s));else{if(""===s)return void v();o="in descriptor",g-=1}g+=1}}function v(){var t,n,a,o,s,l,c,u,f,d=!1,g={};for(o=0;o<i.length;o++)l=(s=i[o])[s.length-1],c=s.substring(0,s.length-1),u=parseInt(c,10),f=parseFloat(c),p.test(c)&&"w"===l?((t||n)&&(d=!0),0===u?d=!0:t=u):h.test(c)&&"x"===l?((t||n||a)&&(d=!0),f<0?d=!0:n=f):p.test(c)&&"h"===l?((a||n)&&(d=!0),0===u?d=!0:a=u):d=!0;d?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+s+"'."):(g.url=r,t&&(g.w=t),n&&(g.d=n),a&&(g.h=a),m.push(g))}}})?r.apply(t,i):r)||(e.exports=a)},function(e,t,n){"use strict";(function(t){let r=n(26),i=n(18),a=n(58),o=n(10),s=n(119),l=n(28),c=n(120),u=n(32),f=n(61),d=n(20),p=n(33),h=n(60),g=n(35),m=n(62),y=n(63),v=n(34),b=n(14),I=n(19);function x(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new s(e)}x.plugin=function(e,n){function r(...t){let r=n(...t);return r.postcssPlugin=e,r.postcssVersion=(new s).version,r}let i;return console&&console.warn&&(console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),t.env.LANG&&t.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226")),Object.defineProperty(r,"postcss",{get:()=>(i||(i=r()),i)}),r.process=function(e,t,n){return x([r(n)]).process(e,t)},r},x.stringify=l,x.parse=m,x.fromJSON=c,x.list=y,x.comment=e=>new d(e),x.atRule=e=>new p(e),x.decl=e=>new i(e),x.rule=e=>new v(e),x.root=e=>new b(e),x.document=e=>new u(e),x.CssSyntaxError=r,x.Declaration=i,x.Container=o,x.Document=u,x.Comment=d,x.Warning=f,x.AtRule=p,x.Result=h,x.Input=g,x.Rule=v,x.Root=b,x.Node=I,a.registerPostcss(x),e.exports=x,x.default=x}).call(this,n(43))},function(e,t){},function(e,t,n){"use strict";(function(t){let{SourceMapConsumer:r,SourceMapGenerator:i}=n(30),{dirname:a,resolve:o,relative:s,sep:l}=n(31),{pathToFileURL:c}=n(59),u=Boolean(r&&i),f=Boolean(a&&o&&s&&l);e.exports=class{constructor(e,t,n){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}previous(){return this.previousMaps||(this.previousMaps=[],this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}})),this.previousMaps}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}clearAnnotation(){if(!1===this.mapOpts.annotation)return;let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}setSourcesContent(){let e={};this.root.walk(t=>{if(t.source){let n=t.source.input.from;n&&!e[n]&&(e[n]=!0,this.map.setSourceContent(this.toUrl(this.path(n)),t.source.input.css))}})}applyPrevMaps(){for(let e of this.previous()){let t,n=this.toUrl(this.path(e.file)),i=e.root||a(e.file);!1===this.mapOpts.sourcesContent?(t=new r(e.text),t.sourcesContent&&(t.sourcesContent=t.sourcesContent.map(()=>null))):t=e.consumer(),this.map.applySourceMap(t,n,this.toUrl(this.path(i)))}}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}toBase64(e){return t?t.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}generateMap(){return this.generateString(),this.isSourcesContent()&&this.setSourcesContent(),this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}path(e){if(0===e.indexOf("<"))return e;if(/^\w+:\/\//.test(e))return e;if(this.mapOpts.absolute)return e;let t=this.opts.to?a(this.opts.to):".";return"string"==typeof this.mapOpts.annotation&&(t=a(o(t,this.mapOpts.annotation))),e=s(t,e)}toUrl(e){return"\\"===l&&(e=e.replace(/\\/g,"/")),encodeURI(e).replace(/[#?]/g,encodeURIComponent)}sourcePath(e){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);if(this.mapOpts.absolute){if(c)return c(e.source.input.from).toString();throw new Error("`map.absolute` option is not available in this PostCSS build")}return this.toUrl(this.path(e.source.input.from))}generateString(){this.css="",this.map=new i({file:this.outputFile()});let e,t,n=1,r=1,a={source:"",generated:{line:0,column:0},original:{line:0,column:0}};this.stringify(this.root,(i,o,s)=>{if(this.css+=i,o&&"end"!==s&&(a.generated.line=n,a.generated.column=r-1,o.source&&o.source.start?(a.source=this.sourcePath(o),a.original.line=o.source.start.line,a.original.column=o.source.start.column-1,this.map.addMapping(a)):(a.source="<no source>",a.original.line=1,a.original.column=0,this.map.addMapping(a))),e=i.match(/\n/g),e?(n+=e.length,t=i.lastIndexOf("\n"),r=i.length-t):r+=i.length,o&&"start"!==s){let e=o.parent||{raws:{}};("decl"!==o.type||o!==e.last||e.raws.semicolon)&&(o.source&&o.source.end?(a.source=this.sourcePath(o),a.original.line=o.source.end.line,a.original.column=o.source.end.column-1,a.generated.line=n,a.generated.column=r-2,this.map.addMapping(a)):(a.source="<no source>",a.original.line=1,a.original.column=0,a.generated.line=n,a.generated.column=r-1,this.map.addMapping(a)))}})}generate(){if(this.clearAnnotation(),f&&u&&this.isMap())return this.generateMap();let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}}).call(this,n(29).Buffer)},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),o=r[0],s=r[1],l=new a(function(e,t,n){return 3*(t+n)/4-n}(0,o,s)),u=0,f=s>0?o-4:o;for(n=0;n<f;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],o=0,s=n-i;o<s;o+=16383)a.push(u(e,o,o+16383>s?s:o+16383));1===i?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return a.join("")};for(var r=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s<l;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var i,a,o=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(r[(a=i)>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,f=n?i-1:0,d=n?-1:1,p=e[t+f];for(f+=d,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=256*a+e[t+f],f+=d,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=256*o+e[t+f],f+=d,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),a-=c}return(p?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,l,c=8*a-i-1,u=(1<<c)-1,f=u>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:a-1,h=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(o++,l/=2),o+f>=u?(s=0,o=u):o+f>=1?(s=(t*l-1)*Math.pow(2,i),o+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(o=o<<i|s,c+=i;c>0;e[n+p]=255&o,p+=h,o/=256,c-=8);e[n+p-h]|=128*g}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";let r={};e.exports=function(e){r[e]||(r[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}},function(e,t,n){"use strict";let r=n(18),i=n(116),a=n(20),o=n(33),s=n(14),l=n(34);e.exports=class{constructor(e){this.input=e,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=i(this.input)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}comment(e){let t=new a;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]);let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}emptyRule(e){let t=new l;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}other(e){let t=!1,n=null,r=!1,i=null,a=[],o=e[1].startsWith("--"),s=[],l=e;for(;l;){if(n=l[0],s.push(l),"("===n||"["===n)i||(i=l),a.push("("===n?")":"]");else if(o&&r&&"{"===n)i||(i=l),a.push("}");else if(0===a.length){if(";"===n){if(r)return void this.decl(s,o);break}if("{"===n)return void this.rule(s);if("}"===n){this.tokenizer.back(s.pop()),t=!0;break}":"===n&&(r=!0)}else n===a[a.length-1]&&(a.pop(),0===a.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(i),t&&r){for(;s.length&&(l=s[s.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(s.pop());this.decl(s,o)}else this.unknownWord(s)}rule(e){e.pop();let t=new l;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}decl(e,t){let n=new r;this.init(n,e[0][2]);let i,a=e[e.length-1];for(";"===a[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(a[3]||a[2]);"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(i=e.shift(),":"===i[0]){n.raws.between+=i[1];break}"word"===i[0]&&/\w/.test(i[1])&&this.unknownWord([i]),n.raws.between+=i[1]}"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o=this.spacesAndCommentsFromStart(e);this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(i=e[t],"!important"===i[1].toLowerCase()){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r," !important"!==r&&(n.raws.important=r);break}if("important"===i[1].toLowerCase()){let r=e.slice(0),i="";for(let e=t;e>0;e--){let t=r[e][0];if(0===i.trim().indexOf("!")&&"space"!==t)break;i=r.pop()[1]+i}0===i.trim().indexOf("!")&&(n.important=!0,n.raws.important=i,e=r)}if("space"!==i[0]&&"comment"!==i[0])break}let s=e.some(e=>"space"!==e[0]&&"comment"!==e[0]);this.raw(n,"value",e),s?n.raws.between+=o:n.value=o+n.value,n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}atrule(e){let t,n,r,i=new o;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);let a=!1,s=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(l.length>0){for(r=l.length-1,n=l[r];n&&"space"===n[0];)n=l[--r];n&&(i.source.end=this.getPosition(n[3]||n[2]))}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(i.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(i,"params",l),a&&(e=l[l.length-1],i.source.end=this.getPosition(e[3]||e[2]),this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{offset:e,line:t.line,column:t.col}}init(e,t){this.current.push(e),e.source={start:this.getPosition(t),input:this.input},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}raw(e,t,n){let r,i,a,o,s=n.length,l="",c=!0,u=/^([#.|])?(\w)+/i;for(let t=0;t<s;t+=1)r=n[t],i=r[0],"comment"!==i||"rule"!==e.type?"comment"===i||"space"===i&&t===s-1?c=!1:l+=r[1]:(o=n[t-1],a=n[t+1],"space"!==o[0]&&"space"!==a[0]&&u.test(o[1])&&u.test(a[1])?l+=r[1]:c=!1);if(!c){let r=n.reduce((e,t)=>e+t[1],"");e.raws[t]={value:l,raw:r}}e[t]=l}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}colon(e){let t,n,r,i=0;for(let[a,o]of e.entries()){if(t=o,n=t[0],"("===n&&(i+=1),")"===n&&(i-=1),0===i&&":"===n){if(r){if("word"===r[0]&&"progid"===r[1])continue;return a}this.doubleColon(t)}r=t}return!1}unclosedBracket(e){throw this.input.error("Unclosed bracket",e[2])}unknownWord(e){throw this.input.error("Unknown word",e[0][2])}unexpectedClose(e){throw this.input.error("Unexpected }",e[2])}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}doubleColon(e){throw this.input.error("Double colon",e[2])}unnamedAtrule(e,t){throw this.input.error("At-rule without name",t[2])}precheckMissedSemicolon(){}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let n,r=0;for(let i=t-1;i>=0&&(n=e[i],"space"===n[0]||(r+=1,2!==r));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}}},function(e,t,n){"use strict";const r="'".charCodeAt(0),i='"'.charCodeAt(0),a="\\".charCodeAt(0),o="/".charCodeAt(0),s="\n".charCodeAt(0),l=" ".charCodeAt(0),c="\f".charCodeAt(0),u="\t".charCodeAt(0),f="\r".charCodeAt(0),d="[".charCodeAt(0),p="]".charCodeAt(0),h="(".charCodeAt(0),g=")".charCodeAt(0),m="{".charCodeAt(0),y="}".charCodeAt(0),v=";".charCodeAt(0),b="*".charCodeAt(0),I=":".charCodeAt(0),x="@".charCodeAt(0),w=/[\t\n\f\r "#'()/;[\\\]{}]/g,T=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,M=/.[\n"'(/\\]/,A=/[\da-f]/i;e.exports=function(e,t={}){let n,C,E,N,S,k,j,D,O,L,P=e.css.valueOf(),R=t.ignoreErrors,z=P.length,_=0,U=[],Z=[];function F(t){throw e.error("Unclosed "+t,_)}return{back:function(e){Z.push(e)},nextToken:function(e){if(Z.length)return Z.pop();if(_>=z)return;let t=!!e&&e.ignoreUnclosed;switch(n=P.charCodeAt(_),n){case s:case l:case u:case f:case c:C=_;do{C+=1,n=P.charCodeAt(C)}while(n===l||n===s||n===u||n===f||n===c);L=["space",P.slice(_,C)],_=C-1;break;case d:case p:case m:case y:case I:case v:case g:{let e=String.fromCharCode(n);L=[e,e,_];break}case h:if(D=U.length?U.pop()[1]:"",O=P.charCodeAt(_+1),"url"===D&&O!==r&&O!==i&&O!==l&&O!==s&&O!==u&&O!==c&&O!==f){C=_;do{if(k=!1,C=P.indexOf(")",C+1),-1===C){if(R||t){C=_;break}F("bracket")}for(j=C;P.charCodeAt(j-1)===a;)j-=1,k=!k}while(k);L=["brackets",P.slice(_,C+1),_,C],_=C}else C=P.indexOf(")",_+1),N=P.slice(_,C+1),-1===C||M.test(N)?L=["(","(",_]:(L=["brackets",N,_,C],_=C);break;case r:case i:E=n===r?"'":'"',C=_;do{if(k=!1,C=P.indexOf(E,C+1),-1===C){if(R||t){C=_+1;break}F("string")}for(j=C;P.charCodeAt(j-1)===a;)j-=1,k=!k}while(k);L=["string",P.slice(_,C+1),_,C],_=C;break;case x:w.lastIndex=_+1,w.test(P),C=0===w.lastIndex?P.length-1:w.lastIndex-2,L=["at-word",P.slice(_,C+1),_,C],_=C;break;case a:for(C=_,S=!0;P.charCodeAt(C+1)===a;)C+=1,S=!S;if(n=P.charCodeAt(C+1),S&&n!==o&&n!==l&&n!==s&&n!==u&&n!==f&&n!==c&&(C+=1,A.test(P.charAt(C)))){for(;A.test(P.charAt(C+1));)C+=1;P.charCodeAt(C+1)===l&&(C+=1)}L=["word",P.slice(_,C+1),_,C],_=C;break;default:n===o&&P.charCodeAt(_+1)===b?(C=P.indexOf("*/",_+2)+1,0===C&&(R||t?C=P.length:F("comment")),L=["comment",P.slice(_,C+1),_,C],_=C):(T.lastIndex=_+1,T.test(P),C=0===T.lastIndex?P.length-1:T.lastIndex-2,L=["word",P.slice(_,C+1),_,C],U.push(L),_=C)}return _++,L},endOfFile:function(){return 0===Z.length&&_>=z},position:function(){return _}}}},function(e,t,n){"use strict";n.r(t),n.d(t,"nanoid",(function(){return i})),n.d(t,"customAlphabet",(function(){return r}));let r=(e,t)=>()=>{let n="",r=t;for(;r--;)n+=e[Math.random()*e.length|0];return n},i=(e=21)=>{let t="",n=e;for(;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t}},function(e,t){},function(e,t,n){"use strict";let r=n(58),i=n(32),a=n(14);class o{constructor(e=[]){this.version="8.3.6",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,t={}){return 0!==this.plugins.length||void 0!==t.parser||void 0!==t.stringifier||void 0!==t.syntax||t.hideNothingWarning,new r(this,e,t)}normalize(e){let t=[];for(let n of e)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)t.push(n);else if("function"==typeof n)t.push(n);else{if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin")}return t}}e.exports=o,o.default=o,a.registerProcessor(o),i.registerProcessor(o)},function(e,t,n){"use strict";let r=n(18),i=n(64),a=n(20),o=n(33),s=n(35),l=n(14),c=n(34);function u(e,t){if(Array.isArray(e))return e.map(e=>u(e));let{inputs:n,...f}=e;if(n){t=[];for(let e of n){let n={...e,__proto__:s.prototype};n.map&&(n.map={...n.map,__proto__:i.prototype}),t.push(n)}}if(f.nodes&&(f.nodes=e.nodes.map(e=>u(e,t))),f.source){let{inputId:e,...n}=f.source;f.source=n,null!=e&&(f.source.input=t[e])}if("root"===f.type)return new l(f);if("decl"===f.type)return new r(f);if("rule"===f.type)return new c(f);if("comment"===f.type)return new a(f);if("atrule"===f.type)return new o(f);throw new Error("Unknown node type: "+e.type)}e.exports=u,u.default=u},function(e,t,n){"use strict";n.r(t),n.d(t,"Attachments",(function(){return vs})),n.d(t,"Exam",(function(){return uh})),n.d(t,"GradingInstructions",(function(){return Mh})),n.d(t,"Results",(function(){return tm})),n.d(t,"parseExam",(function(){return Nm}));var r=n(0),i=n.n(r),a=n(68),o=n.n(a),s=n(69),l=n.n(s),c=n(22),u=n.n(c);var f,d={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0},p=i.a.createContext();function h(){return d}var g=function(){function e(){o()(this,e),this.usedNamespaces={}}return l()(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function m(){return f}function y(e){var t=e.i18n,n=e.defaultNS,i=e.children,a=Object(r.useMemo)((function(){return{i18n:t,defaultNS:n}}),[t,n]);return Object(r.createElement)(p.Provider,{value:a},i)}var v=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e};var b=function(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(!1===n(a[l],l,a))break}return t}}();var I=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},x=n(4),w=x.a.Symbol,T=Object.prototype,M=T.hasOwnProperty,A=T.toString,C=w?w.toStringTag:void 0;var E=function(e){var t=M.call(e,C),n=e[C];try{e[C]=void 0;var r=!0}catch(e){}var i=A.call(e);return r&&(t?e[C]=n:delete e[C]),i},N=Object.prototype.toString;var S=function(e){return N.call(e)},k=w?w.toStringTag:void 0;var j=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":k&&k in Object(e)?E(e):S(e)};var D=function(e){return null!=e&&"object"==typeof e};var O=function(e){return D(e)&&"[object Arguments]"==j(e)},L=Object.prototype,P=L.hasOwnProperty,R=L.propertyIsEnumerable,z=O(function(){return arguments}())?O:function(e){return D(e)&&P.call(e,"callee")&&!R.call(e,"callee")},_=Array.isArray,U=n(11),Z=/^(?:0|[1-9]\d*)$/;var F=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Z.test(e))&&e>-1&&e%1==0&&e<t};var G=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},B={};B["[object Float32Array]"]=B["[object Float64Array]"]=B["[object Int8Array]"]=B["[object Int16Array]"]=B["[object Int32Array]"]=B["[object Uint8Array]"]=B["[object Uint8ClampedArray]"]=B["[object Uint16Array]"]=B["[object Uint32Array]"]=!0,B["[object Arguments]"]=B["[object Array]"]=B["[object ArrayBuffer]"]=B["[object Boolean]"]=B["[object DataView]"]=B["[object Date]"]=B["[object Error]"]=B["[object Function]"]=B["[object Map]"]=B["[object Number]"]=B["[object Object]"]=B["[object RegExp]"]=B["[object Set]"]=B["[object String]"]=B["[object WeakMap]"]=!1;var Y=function(e){return D(e)&&G(e.length)&&!!B[j(e)]};var W=function(e){return function(t){return e(t)}},H=n(9),V=H.a&&H.a.isTypedArray,q=V?W(V):Y,Q=Object.prototype.hasOwnProperty;var J=function(e,t){var n=_(e),r=!n&&z(e),i=!n&&!r&&Object(U.a)(e),a=!n&&!r&&!i&&q(e),o=n||r||i||a,s=o?I(e.length,String):[],l=s.length;for(var c in e)!t&&!Q.call(e,c)||o&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||F(c,l))||s.push(c);return s},X=Object.prototype;var K=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||X)};var $=function(e,t){return function(n){return e(t(n))}},ee=$(Object.keys,Object),te=Object.prototype.hasOwnProperty;var ne=function(e){if(!K(e))return ee(e);var t=[];for(var n in Object(e))te.call(e,n)&&"constructor"!=n&&t.push(n);return t};var re=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var ie=function(e){if(!re(e))return!1;var t=j(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};var ae=function(e){return null!=e&&G(e.length)&&!ie(e)};var oe=function(e){return ae(e)?J(e):ne(e)};var se=function(e,t){return e&&b(e,t,oe)};var le=function(e,t){return function(n,r){if(null==n)return n;if(!ae(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&!1!==r(o[a],a,o););return n}}(se);var ce=function(e){return e};var ue=function(e){return"function"==typeof e?e:ce};var fe=function(e,t){return(_(e)?v:le)(e,ue(t))};function de(e,t){const n=null!=t?pe(t):void 0,r=[];for(;null!=e.parentElement;)e=e.parentElement,(null==n||n(e))&&r.push(e);return r}function pe(e){return"function"==typeof e?t=>t.namespaceURI===Me&&e(t):Array.isArray(e)?t=>t.namespaceURI===Me&&e.includes(t.localName):t=>t.namespaceURI===Me&&t.localName===e}function he(e,t){const n=pe(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 a=e(i);if(null!=a)return a}}(e)}function ge(e,t,n=!0){const r=pe(t),i=[];return function e(t){for(let a=0,o=t.children.length;a<o;a++){const o=t.children[a];r(o)?(i.push(o),n&&e(o)):e(o)}}(e),i}function me(e,t){const n=pe(t);for(;null!=e.parentElement;)if(n(e=e.parentElement))return e}function ye(e,t){const n=pe(t);for(let t=0,r=e.children.length;t<r;t++){const r=e.children[t];if(n(r))return r}}function ve(e,t){var n;return null!==(n=e.getAttribute(t))&&void 0!==n?n:void 0}function be(e,t){const n=e.getAttribute(t);return null!=n?Number(n):void 0}function Ie(e,t){return"true"===ve(e,t)}function xe(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 we(e){return ge(e,["choice-answer","dropdown-answer","text-answer","scored-text-answer"],!0)}function Te(e,t,...n){const r=document.createElement(e);return function(e,t){fe(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}const Me="http://ylioppilastutkinto.fi/exam.xsd";function Ae(e){function t(t,r,a){switch(t.nodeType){case Node.TEXT_NODE:case Node.CDATA_SECTION_NODE:return 0===a?function(e){return e.textContent}(t):null;case Node.ELEMENT_NODE:return function(t,r,a){switch(t.namespaceURI){case"http://www.w3.org/1999/xhtml":return function(e,t,r){const a=e.hasChildNodes()?n(e,r):null;if(0===r){const n=e.localName,r=function(e,t){const n={key:Ce(e,t)};for(const t of e.attributes){const e="class"===t.localName?"className":t.localName;n[e]=t.value}return n}(e,t);return i.a.createElement(n,{...r},a)}return a}(t,r,a);case Me:return function(t,r){const a=e[t.localName],o=t.getAttribute("class")||void 0;return a?i.a.createElement(a,{element:t,className:o,renderChildNodes:n,key:Ce(t,r)}):null}(t,r);default:throw new Error("Unrecognized element: "+t.localName)}}(t,r,a);default:return null}}function n(e,n=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}(e,(e,r)=>t(e,r,n))}return n}function Ce(e,t){return`${e.localName}-${t}`}function Ee(e){return(Ee="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})(e)}function Ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){Ne(e,t,n[t])}))}return e}function ke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function je(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 De(e,t,n){return t&&je(e.prototype,t),n&&je(e,n),e}var Oe=n(66),Le=n.n(Oe);function Pe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Re(e,t){if(t&&("object"===Le()(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Pe(e)}function ze(e){return(ze=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _e(e,t){return(_e=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ue(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&&_e(e,t)}var Ze={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},Fe=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ke(this,e),this.init(t,n)}return De(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Ze,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){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)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,Se({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),Ge=function(){function e(){ke(this,e),this.observers={}}return De(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value: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];if(this.observers[e]){var i=[].concat(this.observers[e]);i.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function Be(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function Ye(e){return null==e?"":""+e}function We(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function He(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var a="string"!=typeof t?[].concat(t):t.split(".");a.length>1;){if(i())return{};var o=r(a.shift());!e[o]&&n&&(e[o]=new n),e=Object.prototype.hasOwnProperty.call(e,o)?e[o]:{}}return i()?{}:{obj:e,k:r(a.shift())}}function Ve(e,t,n){var r=He(e,t,Object);r.obj[r.k]=n}function qe(e,t){var n=He(e,t),r=n.obj,i=n.k;if(r)return r[i]}function Qe(e,t,n){var r=qe(e,n);return void 0!==r?r:qe(t,n)}function Je(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):Je(e[r],t[r],n):e[r]=t[r]);return e}function Xe(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Ke={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function $e(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return Ke[e]})):e}var et="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function tt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,a=0;a<r.length;++a){if(!i)return;if("string"==typeof i[r[a]]&&a+1<r.length)return;if(void 0===i[r[a]]){for(var o=2,s=r.slice(a,a+o).join(n),l=i[s];void 0===l&&r.length>a+o;)o++,l=i[s=r.slice(a,a+o).join(n)];if(void 0===l)return;if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s];var c=r.slice(a+o).join(n);return c?tt(l,c,n):void 0}i=i[r[a]]}return i}}var nt=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ke(this,t),n=Re(this,ze(t).call(this)),et&&Ge.call(Pe(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return Ue(t,e),De(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,a=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,o=[e,t];n&&"string"!=typeof n&&(o=o.concat(n)),n&&"string"==typeof n&&(o=o.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(o=e.split("."));var s=qe(this.data,o);return s||!a||"string"!=typeof n?s:tt(this.data&&this.data[e]&&this.data[e][t],n,i)}},{key:"addResource",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=".");var o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(".")>-1&&(r=t,t=(o=e.split("."))[1]),this.addNamespaces(t),Ve(this.data,o,r),i.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in n)"string"!=typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},o=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(o=e.split("."))[1]),this.addNamespaces(t);var s=qe(this.data,o)||{};r?Je(s,n,i):s=Se({},s,n),Ve(this.data,o,s),a.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?Se({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(Ge),rt={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var a=this;return e.forEach((function(e){a.processors[e]&&(t=a.processors[e].process(t,n,r,i))})),t}},it={},at=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ke(this,t),n=Re(this,ze(t).call(this)),et&&Ge.call(Pe(n)),We(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,Pe(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=Fe.create("translator"),n}return Ue(t,e),De(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var a=e.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:e,namespaces:i};var o=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(e,n,r){var i=this;if("object"!==Ee(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var a=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,o=this.extractFromKey(e[e.length-1],n),s=o.key,l=o.namespaces,c=l[l.length-1],u=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(f){var d=n.nsSeparator||this.options.nsSeparator;return c+d+s}return s}var p=this.resolve(e,n),h=p&&p.res,g=p&&p.usedKey||s,m=p&&p.exactUsedKey||s,y=Object.prototype.toString.apply(h),v=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,I=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(I&&h&&x&&v.indexOf(y)<0&&("string"!=typeof b||"[object Array]"!==y)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,Se({},n,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var w="[object Array]"===y,T=w?[]:{},M=w?m:g;for(var A in h)if(Object.prototype.hasOwnProperty.call(h,A)){var C="".concat(M).concat(a).concat(A);T[A]=this.translate(C,Se({},n,{joinArrays:!1,ns:l})),T[A]===C&&(T[A]=h[A])}h=T}}else if(I&&"string"==typeof b&&"[object Array]"===y)(h=h.join(b))&&(h=this.extendTranslation(h,e,n,r));else{var E=!1,N=!1,S=void 0!==n.count&&"string"!=typeof n.count,k=t.hasDefaultValue(n),j=S?this.pluralResolver.getSuffix(u,n.count):"",D=n["defaultValue".concat(j)]||n.defaultValue;!this.isValidLookup(h)&&k&&(E=!0,h=D),this.isValidLookup(h)||(N=!0,h=s);var O=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,L=O&&N?void 0:h,P=k&&D!==h&&this.options.updateMissing;if(N||E||P){if(this.logger.log(P?"updateKey":"missingKey",u,c,s,P?D:h),a){var R=this.resolve(s,Se({},n,{keySeparator:!1}));R&&R.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.")}var z=[],_=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&_&&_[0])for(var U=0;U<_.length;U++)z.push(_[U]);else"all"===this.options.saveMissingTo?z=this.languageUtils.toResolveHierarchy(n.lng||this.language):z.push(n.lng||this.language);var Z=function(e,t,r){i.options.missingKeyHandler?i.options.missingKeyHandler(e,c,t,P?r:L,P,n):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,c,t,P?r:L,P,n),i.emit("missingKey",e,c,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&S?z.forEach((function(e){i.pluralResolver.getSuffixes(e).forEach((function(t){Z([e],s+t,n["defaultValue".concat(t)]||D)}))})):Z(z,s,D))}h=this.extendTranslation(h,e,n,p,r),N&&h===s&&this.options.appendNamespaceToMissingKey&&(h="".concat(c,":").concat(s)),(N||E)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,i){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(Se({},n,{interpolation:Se({},this.options.interpolation,n.interpolation)}));var o,s=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(s){var l=e.match(this.interpolator.nestingRegexp);o=l&&l.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=Se({},this.options.interpolation.defaultVariables,c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),s){var u=e.match(this.interpolator.nestingRegexp);o<(u&&u.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return i&&i[0]===r[0]&&!n.context?(a.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):a.translate.apply(a,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=rt.handle(d,e,t,this.options&&this.options.postProcessPassResolved?Se({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,i,a,o=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!o.isValidLookup(t)){var l=o.extractFromKey(e,s),c=l.key;n=c;var u=l.namespaces;o.options.fallbackNS&&(u=u.concat(o.options.fallbackNS));var f=void 0!==s.count&&"string"!=typeof s.count,d=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,p=s.lngs?s.lngs:o.languageUtils.toResolveHierarchy(s.lng||o.language,s.fallbackLng);u.forEach((function(e){o.isValidLookup(t)||(a=e,!it["".concat(p[0],"-").concat(e)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(a)&&(it["".concat(p[0],"-").concat(e)]=!0,o.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(a,'" 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((function(n){if(!o.isValidLookup(t)){i=n;var a,l,u=c,p=[u];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(p,c,n,e,s);else f&&(a=o.pluralResolver.getSuffix(n,s.count)),f&&d&&p.push(u+a),d&&p.push(u+="".concat(o.options.contextSeparator).concat(s.context)),f&&p.push(u+=a);for(;l=p.pop();)o.isValidLookup(t)||(r=l,t=o.getResource(n,e,l,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:a}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var 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)}}],[{key:"hasDefaultValue",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,"defaultValue".length)&&void 0!==e[t])return!0;return!1}}]),t}(Ge);function ot(e){return e.charAt(0).toUpperCase()+e.slice(1)}var st=function(){function e(t){ke(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Fe.create("languageUtils")}return De(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=ot(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]=ot(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=ot(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var 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||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],a=function(e){e&&(n.isSupportedCode(e)?i.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&a(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&a(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&a(this.getLanguagePartFromCode(e))):"string"==typeof e&&a(this.formatLanguageCode(e)),r.forEach((function(e){i.indexOf(e)<0&&a(n.formatLanguageCode(e))})),i}}]),e}(),lt=[{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}],ct={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function ut(){var e={};return lt.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:ct[t.fc]}}))})),e}var ft=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ke(this,e),this.languageUtils=t,this.options=n,this.logger=Fe.create("pluralResolver"),this.rules=ut()}return De(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var i=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),a=r.numbers[i];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===a?a="plural":1===a&&(a=""));var o=function(){return n.options.prepend&&a.toString()?n.options.prepend+a.toString():a.toString()};return"v1"===this.options.compatibilityJSON?1===a?"":"number"==typeof a?"_plural_".concat(a.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?o():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),dt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ke(this,e),this.logger=Fe.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return De(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:$e,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?Xe(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?Xe(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?Xe(t.nestingPrefix):t.nestingPrefixEscaped||Xe("$t("),this.nestingSuffix=t.nestingSuffix?Xe(t.nestingSuffix):t.nestingSuffixEscaped||Xe(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var i,a,o,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var u=function(e){if(e.indexOf(s.formatSeparator)<0){var i=Qe(t,l,e);return s.alwaysFormat?s.format(i,void 0,n,Se({},r,t,{interpolationkey:e})):i}var a=e.split(s.formatSeparator),o=a.shift().trim(),c=a.join(s.formatSeparator).trim();return s.format(Qe(t,l,o),c,n,Se({},r,t,{interpolationkey:o}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?c(s.escape(e)):c(e)}}].forEach((function(t){for(o=0;i=t.regex.exec(e);){if(void 0===(a=u(i[1].trim())))if("function"==typeof f){var n=f(e,i,r);a="string"==typeof n?n:""}else{if(d){a=i[0];continue}s.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(e)),a=""}else"string"==typeof a||s.useRawValueToEscape||(a=Ye(a));var l=t.safeValue(a);if(e=e.replace(i[0],l),d?(t.regex.lastIndex+=l.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++o>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Se({},a);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),i="{".concat(r[1]);e=r[0],i=(i=this.interpolate(i,o)).replace(/'/g,'"');try{o=JSON.parse(i),t&&(o=Se({},t,o))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(i)}return delete o.defaultValue,e}for(o.applyPostProcessor=!1,delete o.defaultValue;n=this.nestingRegexp.exec(e);){var l=[],c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var u=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=u.shift(),l=u,c=!0}if((r=t(s.call(this,n[1].trim(),o),o))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=Ye(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=l.reduce((function(e,t){return i.format(e,t,a.lng,Se({},a,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();var pt=function(e){function t(e,n,r){var i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return ke(this,t),i=Re(this,ze(t).call(this)),et&&Ge.call(Pe(i)),i.backend=e,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=a,i.logger=Fe.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,a.backend,a),i}return Ue(t,e),De(t,[{key:"queueLoad",value:function(e,t,n,r){var i=this,a=[],o=[],s=[],l=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&i.store.hasResourceBundle(e,t)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?o.indexOf(s)<0&&o.push(s):(i.state[s]=1,r=!1,o.indexOf(s)<0&&o.push(s),a.indexOf(s)<0&&a.push(s),l.indexOf(t)<0&&l.push(t)))})),r||s.push(e)})),(a.length||o.length)&&this.queue.push({pending:o,loaded:{},errors:[],callback:r}),{toLoad:a,pending:o,toLoadLanguages:s,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),i=r[0],a=r[1];t&&this.emit("failedLoading",i,a,t),n&&this.store.addResourceBundle(i,a,n),this.state[e]=t?-1:2;var o={};this.queue.forEach((function(n){var r,s,l,c,u,f;r=n.loaded,s=a,c=He(r,[i],Object),u=c.obj,f=c.k,u[f]=u[f]||[],l&&(u[f]=u[f].concat(s)),l||u[f].push(s),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){o[e]||(o[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){o[e].indexOf(t)<0&&o[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",o),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,o=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,l){s&&l&&i<5?setTimeout((function(){r.read.call(r,e,t,n,i+1,2*a,o)}),a):o(s,l)})):o(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=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."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var a=this.queueLoad(e,t,r,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),i=r[0],a=r[1];this.read(i,a,"read",void 0,void 0,(function(r,o){r&&t.logger.warn("".concat(n,"loading namespace ").concat(a," for language ").concat(i," failed"),r),!r&&o&&t.logger.log("".concat(n,"loaded namespace ").concat(a," for language ").concat(i),o),t.loaded(e,r,o)}))}},{key:"saveMissing",value:function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(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!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,Se({},a,{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(Ge);function ht(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!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:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===Ee(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===Ee(e[2])||"object"===Ee(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function gt(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function mt(){}var yt=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(ke(this,t),e=Re(this,ze(t).call(this)),et&&Ge.call(Pe(e)),e.options=gt(n),e.services={},e.logger=Fe,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),Re(e,Pe(e));setTimeout((function(){e.init(n,r)}),0)}return e}return Ue(t,e),De(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=Se({},ht(),this.options,gt(t)),this.format=this.options.interpolation.format,n||(n=mt),!this.options.isClone){this.modules.logger?Fe.init(r(this.modules.logger),this.options):Fe.init(null,this.options);var i=new st(this.options);this.store=new nt(this.options.resources,this.options);var a=this.services;a.logger=Fe,a.resourceStore=this.store,a.languageUtils=i,a.pluralResolver=new ft(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new dt(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new pt(r(this.modules.backend),a.resourceStore,a,this.options),a.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.apply(e,[t].concat(r))})),this.modules.languageDetector&&(a.languageDetector=r(this.modules.languageDetector),a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=r(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new at(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.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var o=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);o.length>0&&"dev"!==o[0]&&(this.options.lng=o[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var s=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];s.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var l=["addResource","addResources","addResourceBundle","removeResourceBundle"];l.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var c=Be(),u=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mt,r=n,i="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return r();var a=[],o=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){a.indexOf(e)<0&&a.push(e)}))};if(i)o(i);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return o(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return o(e)})),this.services.backendConnector.load(a,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=Be();return e||(e=this.languages),t||(t=this.options.ns),n||(n=mt),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(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&&rt.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=Be();this.emit("languageChanging",e);var i=function(i){e||i||!n.services.languageDetector||(i=[]);var a="string"==typeof i?i:n.services.languageUtils.getBestMatchFromCodes(i);a&&(n.language||(n.language=a,n.languages=n.services.languageUtils.toResolveHierarchy(a)),n.translator.language||n.translator.changeLanguage(a),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(a)),n.loadResources(a,(function(e){!function(e,i){i?(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i),n.translator.changeLanguage(i),n.isLanguageChangingTo=void 0,n.emit("languageChanged",i),n.logger.log("languageChanged",i)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,a)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,i=function e(t,i){var a;if("object"!==Ee(i)){for(var o=arguments.length,s=new Array(o>2?o-2:0),l=2;l<o;l++)s[l-2]=arguments[l];a=r.options.overloadTranslationOptionHandler([t,i].concat(s))}else a=Se({},i);a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns;var c=r.options.keySeparator||".",u=n?"".concat(n).concat(c).concat(t):t;return r.t(u,a)};return"string"==typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=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;var r=this.languages[0],i=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var o=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,o);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||(!this.services.backendConnector.backend||!(!o(r,e)||i&&!o(a,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=Be();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=Be();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],i=e.filter((function(e){return r.indexOf(e)<0}));return i.length?(this.options.preload=r.concat(i),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return"rtl";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"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mt,i=Se({},this.options,n,{isClone:!0}),a=new t(i),o=["store","services","language"];return o.forEach((function(t){a[t]=e[t]})),a.services=Se({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new at(a.services,a.options),a.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];a.emit.apply(a,[e].concat(n))})),a.init(i,r),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(Ge));var vt=function(e){return e&&e.length?e[0]:void 0};var bt=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};var It=function(){},xt=n(67),wt=n.n(xt);function Tt(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var Mt={};function At(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&Mt[t[0]]||("string"==typeof t[0]&&(Mt[t[0]]=new Date),Tt.apply(void 0,t))}function Ct(e,t,n){e.loadNamespaces(t,(function(){if(e.isInitialized)n();else{e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),n()}))}}))}function Et(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return At("i18n.languages were undefined or empty",t.languages),!0;var r=t.languages[0],i=!!t.options&&t.options.fallbackLng,a=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var o=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(r,e)||(!t.services.backendConnector.backend||!(!o(r,e)||i&&!o(a,e))))}function Nt(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 St(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nt(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kt=function(e){return"symbol"==typeof e||D(e)&&"[object Symbol]"==j(e)},jt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dt=/^\w*$/;var Ot,Lt=function(e,t){if(_(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!kt(e))||(Dt.test(e)||!jt.test(e)||null!=t&&e in Object(t))},Pt=x.a["__core-js_shared__"],Rt=(Ot=/[^.]+$/.exec(Pt&&Pt.keys&&Pt.keys.IE_PROTO||""))?"Symbol(src)_1."+Ot:"";var zt=function(e){return!!Rt&&Rt in e},_t=Function.prototype.toString;var Ut=function(e){if(null!=e){try{return _t.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Zt=/^\[object .+?Constructor\]$/,Ft=Function.prototype,Gt=Object.prototype,Bt=Ft.toString,Yt=Gt.hasOwnProperty,Wt=RegExp("^"+Bt.call(Yt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Ht=function(e){return!(!re(e)||zt(e))&&(ie(e)?Wt:Zt).test(Ut(e))};var Vt=function(e,t){return null==e?void 0:e[t]};var qt=function(e,t){var n=Vt(e,t);return Ht(n)?n:void 0},Qt=qt(Object,"create");var Jt=function(){this.__data__=Qt?Qt(null):{},this.size=0};var Xt=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Kt=Object.prototype.hasOwnProperty;var $t=function(e){var t=this.__data__;if(Qt){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Kt.call(t,e)?t[e]:void 0},en=Object.prototype.hasOwnProperty;var tn=function(e){var t=this.__data__;return Qt?void 0!==t[e]:en.call(t,e)};var nn=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Qt&&void 0===t?"__lodash_hash_undefined__":t,this};function rn(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])}}rn.prototype.clear=Jt,rn.prototype.delete=Xt,rn.prototype.get=$t,rn.prototype.has=tn,rn.prototype.set=nn;var an=rn;var on=function(){this.__data__=[],this.size=0};var sn=function(e,t){return e===t||e!=e&&t!=t};var ln=function(e,t){for(var n=e.length;n--;)if(sn(e[n][0],t))return n;return-1},cn=Array.prototype.splice;var un=function(e){var t=this.__data__,n=ln(t,e);return!(n<0)&&(n==t.length-1?t.pop():cn.call(t,n,1),--this.size,!0)};var fn=function(e){var t=this.__data__,n=ln(t,e);return n<0?void 0:t[n][1]};var dn=function(e){return ln(this.__data__,e)>-1};var pn=function(e,t){var n=this.__data__,r=ln(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function hn(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])}}hn.prototype.clear=on,hn.prototype.delete=un,hn.prototype.get=fn,hn.prototype.has=dn,hn.prototype.set=pn;var gn=hn,mn=qt(x.a,"Map");var yn=function(){this.size=0,this.__data__={hash:new an,map:new(mn||gn),string:new an}};var vn=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var bn=function(e,t){var n=e.__data__;return vn(t)?n["string"==typeof t?"string":"hash"]:n.map};var In=function(e){var t=bn(this,e).delete(e);return this.size-=t?1:0,t};var xn=function(e){return bn(this,e).get(e)};var wn=function(e){return bn(this,e).has(e)};var Tn=function(e,t){var n=bn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Mn(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])}}Mn.prototype.clear=yn,Mn.prototype.delete=In,Mn.prototype.get=xn,Mn.prototype.has=wn,Mn.prototype.set=Tn;var An=Mn;function Cn(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],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Cn.Cache||An),n}Cn.Cache=An;var En=Cn;var Nn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Sn=/\\(\\)?/g,kn=function(e){var t=En(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Nn,(function(e,n,r,i){t.push(r?i.replace(Sn,"$1"):n||e)})),t}));var jn=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},Dn=w?w.prototype:void 0,On=Dn?Dn.toString:void 0;var Ln=function e(t){if("string"==typeof t)return t;if(_(t))return jn(t,e)+"";if(kt(t))return On?On.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};var Pn=function(e){return null==e?"":Ln(e)};var Rn=function(e,t){return _(e)?e:Lt(e,t)?[e]:kn(Pn(e))};var zn=function(e){if("string"==typeof e||kt(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};var _n=function(e,t){for(var n=0,r=(t=Rn(t,e)).length;null!=e&&n<r;)e=e[zn(t[n++])];return n&&n==r?e:void 0},Un=function(){try{var e=qt(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var Zn=function(e,t,n){"__proto__"==t&&Un?Un(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Fn=Object.prototype.hasOwnProperty;var Gn=function(e,t,n){var r=e[t];Fn.call(e,t)&&sn(r,n)&&(void 0!==n||t in e)||Zn(e,t,n)};var Bn=function(e,t,n,r){if(!re(e))return e;for(var i=-1,a=(t=Rn(t,e)).length,o=a-1,s=e;null!=s&&++i<a;){var l=zn(t[i]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=o){var u=s[l];void 0===(c=r?r(u,l,s):void 0)&&(c=re(u)?u:F(t[i+1])?[]:{})}Gn(s,l,c),s=s[l]}return e};var Yn=function(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=_n(e,o);n(s,o)&&Bn(a,Rn(o,e),s)}return a};var Wn=function(e,t){return null!=e&&t in Object(e)};var Hn=function(e,t,n){for(var r=-1,i=(t=Rn(t,e)).length,a=!1;++r<i;){var o=zn(t[r]);if(!(a=null!=e&&n(e,o)))break;e=e[o]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&G(i)&&F(o,i)&&(_(e)||z(e))};var Vn=function(e,t){return null!=e&&Hn(e,t,Wn)};var qn=function(e,t){return Yn(e,t,(function(t,n){return Vn(e,n)}))};var Qn=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},Jn=w?w.isConcatSpreadable:void 0;var Xn=function(e){return _(e)||z(e)||!!(Jn&&e&&e[Jn])};var Kn=function e(t,n,r,i,a){var o=-1,s=t.length;for(r||(r=Xn),a||(a=[]);++o<s;){var l=t[o];n>0&&r(l)?n>1?e(l,n-1,r,i,a):Qn(a,l):i||(a[a.length]=l)}return a};var $n=function(e){return(null==e?0:e.length)?Kn(e,1):[]};var er=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)},tr=Math.max;var nr=function(e,t,n){return t=tr(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=tr(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),er(e,this,s)}};var rr=function(e){return function(){return e}},ir=Un?function(e,t){return Un(e,"toString",{configurable:!0,enumerable:!1,value:rr(t),writable:!0})}:ce,ar=Date.now;var or=function(e){var t=0,n=0;return function(){var r=ar(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},sr=or(ir);var lr=function(e){return sr(nr(e,void 0,$n),e+"")},cr=lr((function(e,t){return null==e?{}:qn(e,t)}));const ur={"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:{play:"Lyssna på 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","censor-annotations":"Censorns anteckningar"},references:{heading:"Källor",source:"Källa:",date:"Publicerad:","reference-date":"Hämtad:",translator:"Översättning:","modified-by":"Bearbetning:"},cas:{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"}},"toc-heading":"Innehåll","answer-saved":"Sparad","too-many-answers":"TODO","listen-times-remaining":"{{count}} lyssningsgång kvar.","listen-times-remaining_plural":"{{count}} lyssningsgånger kvar.","answer-length":"Svarets längd: {{count}} tecken.","previous-answer-versions":"Tidigare utkast till svar","zoom-in":"Förstora bilden","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."},"screen-reader":{"answer-begin":"[Svaret börjar]","answer-end":"[Svaret avslutar]","correct-answer":"[Accepterat svar]"}},fr=cr(ur,["exam-total","material","external-material-title","section","references","toc-heading"]),dr={"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:{play:"Kuuntele äänite."},"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":"Valmistavan arvostelun merkinnät","censor-annotations":"Sensorin merkinnät"},references:{heading:"Lähteet",source:"Lähde:",date:"Julkaistu:","reference-date":"Viitattu:",translator:"Käännös:","modified-by":"Muokkaus:"},cas:{forbidden:{infoText:"Saat estetyt laskinohjelmat käyttöön 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"}},"toc-heading":"Sisällys","answer-saved":"Tallennettu","too-many-answers":"Vastattu liiaan moneen tehtävään:","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ä.","previous-answer-versions":"Aiemmat vastausluonnokset","zoom-in":"Suurenna kuva","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."},"screen-reader":{"answer-begin":"[Vastaus alkaa]","answer-end":"[Vastaus päättyy]","correct-answer":"[Hyväksytty vastaus]"}},pr=cr(dr,["exam-total","material","external-material-title","section","references","toc-heading"]),hr={"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"},gr={"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"},mr={section:""},yr={"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"},vr={"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"},br={"exam-total":"Весь экзамен",material:"Материал","external-material-title":"Материал",section:"Часть {{displayNumber}}:",references:{heading:"Источники",source:"Источник",date:"Опубликовано","reference-date":"Дата обращения",translator:"Перевод","modified-by":"Адаптировано"},"toc-heading":"Содержание"},Ir={A_E:{"external-material-title":"Aineistot","answering-instructions":{"toc-section_*_1_1":"Aiheet","section_*_1_1":"Valitse yksi aihe."}},BA:fr,BB:fr,CA:pr,CB:pr,EA:hr,EC:hr,FA:gr,FC:gr,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:mr,N:mr,O_E:{"answering-instructions":{"toc-section_*_1_1":"Ämnen","section_*_1_1":"Välj ett ämne."}},SA:vr,SC:vr,PA:yr,PC:yr,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:br,VC:br,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"}},xr={"fi-FI":{translation:dr,...Ir},"sv-FI":{translation:ur,...Ir}};function wr(e,t,n){const r=t?t+(n?"_"+n:""):"translation";return yt.use({type:"postProcessor",name:"lowercase",process:(e,t,n)=>e.toLocaleLowerCase(n.lng)}).createInstance({resources:xr,lng:e,fallbackLng:"fi-FI",debug:!1,defaultNS:r,fallbackNS:"translation",interpolation:{escapeValue:!1,format:(e,t)=>{switch(t){case"range":{const[t,n]=e;return null==t?n:null==n||t===n?t:`${t}–${n}`}case"first":return vt(e);case"last":return bt(e);default:return e}}}},It)}function Tr(){const{i18n:e,t:t}=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,i=Object(r.useContext)(p)||{},a=i.i18n,o=i.defaultNS,s=n||a||m();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new g),!s){At("You will need to pass in an i18next instance by using initReactI18next");var l=function(e){return Array.isArray(e)?e[e.length-1]:e},c=[l,{},!1];return c.t=l,c.i18n={},c.ready=!1,c}s.options.react&&void 0!==s.options.react.wait&&At("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var u=St(St(St({},h()),s.options.react),t),f=u.useSuspense,d=u.keyPrefix,y=e||o||s.options&&s.options.defaultNS;y="string"==typeof y?[y]:y||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(y);var v=(s.isInitialized||s.initializedStoreOnce)&&y.every((function(e){return Et(e,s,u)}));function b(){return s.getFixedT(null,"fallback"===u.nsMode?y:y[0],d)}var I=Object(r.useState)(b),x=wt()(I,2),w=x[0],T=x[1],M=Object(r.useRef)(!0);Object(r.useEffect)((function(){var e=u.bindI18n,t=u.bindI18nStore;function n(){M.current&&T(b)}return M.current=!0,v||f||Ct(s,y,(function(){M.current&&T(b)})),e&&s&&s.on(e,n),t&&s&&s.store.on(t,n),function(){M.current=!1,e&&s&&e.split(" ").forEach((function(e){return s.off(e,n)})),t&&s&&t.split(" ").forEach((function(e){return s.store.off(e,n)}))}}),[s,y.join()]);var A=Object(r.useRef)(!0);Object(r.useEffect)((function(){M.current&&!A.current&&T(b),A.current=!1}),[s]);var C=[w,s,v];if(C.t=w,C.i18n=s,C.ready=v,v)return C;if(!v&&!f)return C;throw new Promise((function(e){Ct(s,y,(function(){e()}))}))}(),n=(t,n)=>function(e,t,n){const r=e.t(t,n),a=e.options.defaultNS,o="translation"!==a&&a in Ir;return o&&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,a,t)||!o?r:i.a.createElement("span",{lang:e.language},r)}(e,t,n);return n.raw=t,{i18n:e,t:n}}const Mr=(e,t)=>()=>{e.language!==t&&e.changeLanguage(t).then(It).catch(It)};const Ar=new WeakMap;let Cr=0;const Er=e=>t=>`${e}-${(e=>{const t=Ar.get(e);if(null!=t)return t;const n=++Cr;return Ar.set(e,n),n})(t)}`,Nr=e=>t=>`${e}-${t}`,Sr=Nr("section-title"),kr=Nr("question-title"),jr=Er("external-material-list-title"),Dr=Nr("toc-section-title"),Or=Er("answer-score"),Lr=Er("image-caption"),Pr=Er("video-caption"),Rr=Er("audio-label");function zr(){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",zr),()=>window.removeEventListener("hashchange",zr)}function _r(e){return Object(r.useState)(e)[0]}function Ur(e,t){const n=new URL(e,"http://example.com");fe(t,(e,t)=>n[t]=e);const r=n.pathname+n.search+n.hash;return e.startsWith("/")?r:r.substr(1)}var Zr=({children:e,href:t,type:n})=>"link"===n?i.a.createElement("a",{href:t,className:"attachment-link e-nowrap",target:"attachments"},e):i.a.createElement("span",{className:"attachment-link e-nowrap"},e);function Fr(e){return e.displayName||e.name||"Component"}const Gr=(e,t)=>n=>{const r=r=>{const a=t(r);return i.a.createElement(e.Provider,{value:a},i.a.createElement(n,{...r}))};return r.displayName="WithContext("+Fr(n)+")",r},Br=i.a.createContext({});function Yr(e){return Gr(Br,({attachmentsURL:e,resolveAttachment:t,doc:n})=>{const r=n.documentElement,i=ve(r,"date"),a=ve(r,"exam-lang"),o=ve(r,"lang")||a;return{attachmentsURL:e,date:i?new Date(i):void 0,dateTimeFormatter:new Intl.DateTimeFormat("fi-FI",{timeZone:"UTC"}),dayCode:ve(r,"day-code"),examCode:ve(r,"exam-code"),language:a,subjectLanguage:o,maxAnswers:be(r,"max-answers"),maxScore:be(r,"max-score"),numberOfSections:ge(r,"section").length,resolveAttachment:t,root:r}})(e)}var Wr=e=>i.a.memo(({element:t})=>{const n=t.getAttribute("ref"),{root:a}=Object(r.useContext)(Br),{attachmentsURL:o}=Object(r.useContext)(Br),{t:s}=Tr(),l=he(a,e=>"attachment"===e.localName&&e.getAttribute("name")===n).getAttribute("display-number"),c="short"===t.getAttribute("type"),u=Ur(o,{hash:l});return c?i.a.createElement(Zr,{href:u,type:e},l):i.a.createElement(i.a.Fragment,null,"(",i.a.createElement(Zr,{href:u,type:e},s("material",{postProcess:"lowercase"})," ",l),")")});var Hr=e=>i.a.memo(({element:t})=>{const{root:n,attachmentsURL:a}=Object(r.useContext)(Br),{t:o}=Tr(),s=xe(t,e=>{const t=e.getAttribute("ref");return he(n,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 a=e[i];if(r&&t(a,i,e)){const e=[a];n.push(e)}else{n[n.length-1].push(a)}r=a}return n}(s,(e,t)=>t>0&&!function(e,t){const n=e.length;if(n!==t.length)return!1;return e.startsWith(t.slice(0,n-1))&&t.charCodeAt(n-1)-e.charCodeAt(n-1)==1}(s[t-1],e)),c="short"===t.getAttribute("type"),u=Ur(a,{hash:s[0]}),f=l.map(e=>e.length>1?`${e[0]}–${e[e.length-1]}`:e[0]).join(", "),d=l[0].length;return c?i.a.createElement(Zr,{href:u,type:e},f):i.a.createElement(i.a.Fragment,null,"(",i.a.createElement(Zr,{href:u,type:e},o("material",{count:d,postProcess:"lowercase"})," ",f),")")});const Vr=i.a.createContext({}),qr=Gr(Vr,({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}});var Qr=i.a.memo(qr((function({element:e,renderChildNodes:t}){const{displayNumber:n,isExternal:a}=Object(r.useContext)(Vr);return a?i.a.createElement("div",{id:n,className:"attachments-attachment e-mrg-0 e-mrg-t-8"},t(e)):null})));var Jr=i.a.memo((function({element:e,renderChildNodes:t}){const{displayNumber:n}=Object(r.useContext)(Vr);return i.a.createElement("h3",null,n," ",t(e))})),Xr=n(2),Kr=n.n(Xr),$r=n(1),ei=n.n($r),ti=i.a.createContext(null);var ni=function(e){e()};function ri(){var e=ni,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}var ii={notify:function(){},get:function(){return[]}};function ai(e,t){var n,r=ii;function i(){o.onStateChange&&o.onStateChange()}function a(){n||(n=t?t.addNestedSub(i):e.subscribe(i),r=ri())}var o={addNestedSub:function(e){return a(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(n)},trySubscribe:a,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=ii)},getListeners:function(){return r}};return o}var oi="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;var si=function(e){var t=e.store,n=e.context,a=e.children,o=Object(r.useMemo)((function(){var e=ai(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),s=Object(r.useMemo)((function(){return t.getState()}),[t]);oi((function(){var e=o.subscription;return e.trySubscribe(),s!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[o,s]);var l=n||ti;return i.a.createElement(l.Provider,{value:o},a)};function li(){return(li=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ci(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var ui=n(37),fi=n.n(ui),di=n(36),pi=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],hi=["reactReduxForwardedRef"],gi=[],mi=[null,null];function yi(e,t){var n=e[1];return[t.payload,n+1]}function vi(e,t,n){oi((function(){return e.apply(void 0,t)}),n)}function bi(e,t,n,r,i,a,o){e.current=r,t.current=i,n.current=!1,a.current&&(a.current=null,o())}function Ii(e,t,n,r,i,a,o,s,l,c){if(e){var u=!1,f=null,d=function(){if(!u){var e,n,d=t.getState();try{e=r(d,i.current)}catch(e){n=e,f=e}n||(f=null),e===a.current?o.current||l():(a.current=e,s.current=e,o.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=d,n.trySubscribe(),d();return function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}}var xi=function(){return[null,0]};function wi(e,t){void 0===t&&(t={});var n=t,a=n.getDisplayName,o=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,s=n.methodName,l=void 0===s?"connectAdvanced":s,c=n.renderCountProp,u=void 0===c?void 0:c,f=n.shouldHandleStateChanges,d=void 0===f||f,p=n.storeKey,h=void 0===p?"store":p,g=(n.withRef,n.forwardRef),m=void 0!==g&&g,y=n.context,v=void 0===y?ti:y,b=ci(n,pi),I=v;return function(t){var n=t.displayName||t.name||"Component",a=o(n),s=li({},b,{getDisplayName:o,methodName:l,renderCountProp:u,shouldHandleStateChanges:d,storeKey:h,displayName:a,wrappedComponentName:n,WrappedComponent:t}),c=b.pure;var f=c?r.useMemo:function(e){return e()};function p(n){var a=Object(r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=ci(n,hi);return[n.context,e,t]}),[n]),o=a[0],l=a[1],c=a[2],u=Object(r.useMemo)((function(){return o&&o.Consumer&&Object(di.isContextConsumer)(i.a.createElement(o.Consumer,null))?o:I}),[o,I]),p=Object(r.useContext)(u),h=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(p)&&Boolean(p.store);var g=h?n.store:p.store,m=Object(r.useMemo)((function(){return function(t){return e(t.dispatch,s)}(g)}),[g]),y=Object(r.useMemo)((function(){if(!d)return mi;var e=ai(g,h?null:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[g,h,p]),v=y[0],b=y[1],x=Object(r.useMemo)((function(){return h?p:li({},p,{subscription:v})}),[h,p,v]),w=Object(r.useReducer)(yi,gi,xi),T=w[0][0],M=w[1];if(T&&T.error)throw T.error;var A=Object(r.useRef)(),C=Object(r.useRef)(c),E=Object(r.useRef)(),N=Object(r.useRef)(!1),S=f((function(){return E.current&&c===C.current?E.current:m(g.getState(),c)}),[g,T,c]);vi(bi,[C,A,N,c,S,E,b]),vi(Ii,[d,g,v,m,C,A,N,E,b,M],[g,v,m]);var k=Object(r.useMemo)((function(){return i.a.createElement(t,li({},S,{ref:l}))}),[l,t,S]);return Object(r.useMemo)((function(){return d?i.a.createElement(u.Provider,{value:x},k):k}),[u,k,x])}var g=c?i.a.memo(p):p;if(g.WrappedComponent=t,g.displayName=p.displayName=a,m){var y=i.a.forwardRef((function(e,t){return i.a.createElement(g,li({},e,{reactReduxForwardedRef:t}))}));return y.displayName=a,y.WrappedComponent=t,fi()(y,t)}return fi()(g,t)}}function Ti(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Mi(e,t){if(Ti(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!Ti(e[n[i]],t[n[i]]))return!1;return!0}function Ai(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function Ci(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function Ei(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=Ci(e);var i=r(t,n);return"function"==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=Ci(i),i=r(t,n)),i},r}}var Ni=[function(e){return"function"==typeof e?Ei(e):void 0},function(e){return e?void 0:Ai((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?Ai((function(t){return function(e,t){var n={},r=function(r){var i=e[r];"function"==typeof i&&(n[r]=function(){return t(i.apply(void 0,arguments))})};for(var i in e)r(i);return n}(e,t)})):void 0}];var Si=[function(e){return"function"==typeof e?Ei(e):void 0},function(e){return e?void 0:Ai((function(){return{}}))}];function ki(e,t,n){return li({},n,e,t)}var ji=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,a=n.areMergedPropsEqual,o=!1;return function(t,n,s){var l=e(t,n,s);return o?i&&a(l,r)||(r=l):(o=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return ki}}];var Di=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function Oi(e,t,n,r){return function(i,a){return n(e(i,a),t(r,a),a)}}function Li(e,t,n,r,i){var a,o,s,l,c,u=i.areStatesEqual,f=i.areOwnPropsEqual,d=i.areStatePropsEqual,p=!1;function h(i,p){var h,g,m=!f(p,o),y=!u(i,a);return a=i,o=p,m&&y?(s=e(a,o),t.dependsOnOwnProps&&(l=t(r,o)),c=n(s,l,o)):m?(e.dependsOnOwnProps&&(s=e(a,o)),t.dependsOnOwnProps&&(l=t(r,o)),c=n(s,l,o)):y?(h=e(a,o),g=!d(h,s),s=h,g&&(c=n(s,l,o)),c):c}return function(i,u){return p?h(i,u):(s=e(a=i,o=u),l=t(r,o),c=n(s,l,o),p=!0,c)}}function Pi(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,a=ci(t,Di),o=n(e,a),s=r(e,a),l=i(e,a);return(a.pure?Li:Oi)(o,s,l,e,a)}var Ri=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function zi(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function _i(e,t){return e===t}function Ui(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?wi:n,i=t.mapStateToPropsFactories,a=void 0===i?Si:i,o=t.mapDispatchToPropsFactories,s=void 0===o?Ni:o,l=t.mergePropsFactories,c=void 0===l?ji:l,u=t.selectorFactory,f=void 0===u?Pi:u;return function(e,t,n,i){void 0===i&&(i={});var o=i,l=o.pure,u=void 0===l||l,d=o.areStatesEqual,p=void 0===d?_i:d,h=o.areOwnPropsEqual,g=void 0===h?Mi:h,m=o.areStatePropsEqual,y=void 0===m?Mi:m,v=o.areMergedPropsEqual,b=void 0===v?Mi:v,I=ci(o,Ri),x=zi(e,a,"mapStateToProps"),w=zi(t,s,"mapDispatchToProps"),T=zi(n,c,"mergeProps");return r(f,li({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:x,initMapDispatchToProps:w,initMergeProps:T,pure:u,areStatesEqual:p,areOwnPropsEqual:g,areStatePropsEqual:y,areMergedPropsEqual:b},I))}}var Zi=Ui();function Fi(){return Object(r.useContext)(ti)}function Gi(e){void 0===e&&(e=ti);var t=e===ti?Fi:function(){return Object(r.useContext)(e)};return function(){return t().store}}var Bi=Gi();function Yi(e){void 0===e&&(e=ti);var t=e===ti?Bi:Gi(e);return function(){return t().dispatch}}var Wi=Yi(),Hi=function(e,t){return e===t};function Vi(e){void 0===e&&(e=ti);var t=e===ti?Fi:function(){return Object(r.useContext)(e)};return function(e,n){void 0===n&&(n=Hi);var i=t(),a=function(e,t,n,i){var a,o=Object(r.useReducer)((function(e){return e+1}),0)[1],s=Object(r.useMemo)((function(){return ai(n,i)}),[n,i]),l=Object(r.useRef)(),c=Object(r.useRef)(),u=Object(r.useRef)(),f=Object(r.useRef)(),d=n.getState();try{if(e!==c.current||d!==u.current||l.current){var p=e(d);a=void 0!==f.current&&t(p,f.current)?f.current:p}else a=f.current}catch(e){throw l.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+l.current.stack+"\n\n"),e}return oi((function(){c.current=e,u.current=d,f.current=a,l.current=void 0})),oi((function(){function e(){try{var e=n.getState();if(e===u.current)return;var r=c.current(e);if(t(r,f.current))return;f.current=r,u.current=e}catch(e){l.current=e}o()}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}}),[n,s]),a}(e,n,i.store,i.subscription);return Object(r.useDebugValue)(a),a}}var qi,Qi=Vi(),Ji=n(8);qi=Ji.unstable_batchedUpdates,ni=qi;var Xi=function(e,t,n){var r=null==e?void 0:_n(e,t);return void 0===r?n:r};const Ki=(e,t)=>n=>{const{nowPlaying:r}=n.audio;return null==r?"stopped":r.audio.restrictedAudioId===t&&r.audio.src===e?"playing":"other-playing"},$i=(e,t)=>n=>n.audio.errors[null!=t?t:e],ea=e=>t=>Xi(t.audio.playbackTimes,e,0),ta=(e,t)=>n=>t-ea(e)(n),na=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}
87
87
  /*!
88
88
  * Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
89
89
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
90
- */(t,r)?"saving":"saved"};var ra={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"]},ia={prefix:"fas",iconName:"chevron-up",icon:[448,512,[],"f077","M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"]},aa={prefix:"fas",iconName:"exclamation-triangle",icon:[576,512,[],"f071","M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"]},oa={prefix:"fas",iconName:"eye",icon:[576,512,[],"f06e","M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"]},sa={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"]},la={prefix:"fas",iconName:"info-circle",icon:[512,512,[],"f05a","M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"]},ca={prefix:"fas",iconName:"play",icon:[448,512,[],"f04b","M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"]},ua=n(15);function fa(e){return(fa="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})(e)}function da(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pa(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 ha(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pa(Object(n),!0).forEach((function(t){da(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ga(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ma(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function ya(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}function va(e){return e.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),i=ya(t.slice(0,r)),a=t.slice(r+1).trim();return i.startsWith("webkit")?e[(n=i,n.charAt(0).toUpperCase()+n.slice(1))]=a:e[i]=a,e}),{})}var ba=!1;try{ba=!0}catch(e){}function Ia(e){return e&&"object"===fa(e)&&e.prefix&&e.iconName&&e.icon?e:ua.b.icon?ua.b.icon(e):null===e?null:e&&"object"===fa(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 xa(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?da({},e,t):{}}function wa(e){var t=e.forwardedRef,n=ga(e,["forwardedRef"]),r=n.icon,i=n.mask,a=n.symbol,o=n.className,s=n.title,l=n.titleId,c=Ia(r),u=xa("classes",[].concat(ma(function(e){var t,n=e.spin,r=e.pulse,i=e.fixedWidth,a=e.inverse,o=e.border,s=e.listItem,l=e.flip,c=e.size,u=e.rotation,f=e.pull,d=(da(t={"fa-spin":n,"fa-pulse":r,"fa-fw":i,"fa-inverse":a,"fa-border":o,"fa-li":s,"fa-flip-horizontal":"horizontal"===l||"both"===l,"fa-flip-vertical":"vertical"===l||"both"===l},"fa-".concat(c),null!=c),da(t,"fa-rotate-".concat(u),null!=u&&0!==u),da(t,"fa-pull-".concat(f),null!=f),da(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(d).map((function(e){return d[e]?e:null})).filter((function(e){return e}))}(n)),ma(o.split(" ")))),f=xa("transform","string"==typeof n.transform?ua.b.transform(n.transform):n.transform),d=xa("mask",Ia(i)),p=Object(ua.a)(c,ha({},u,{},f,{},d,{symbol:a,title:s,titleId:l}));if(!p)return function(){var e;!ba&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",c),null;var h=p.abstract,g={ref:t};return Object.keys(n).forEach((function(e){wa.defaultProps.hasOwnProperty(e)||(g[e]=n[e])})),Ta(h[0],g)}wa.displayName="FontAwesomeIcon",wa.propTypes={border:ei.a.bool,className:ei.a.string,mask:ei.a.oneOfType([ei.a.object,ei.a.array,ei.a.string]),fixedWidth:ei.a.bool,inverse:ei.a.bool,flip:ei.a.oneOf(["horizontal","vertical","both"]),icon:ei.a.oneOfType([ei.a.object,ei.a.array,ei.a.string]),listItem:ei.a.bool,pull:ei.a.oneOf(["right","left"]),pulse:ei.a.bool,rotation:ei.a.oneOf([0,90,180,270]),size:ei.a.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:ei.a.bool,symbol:ei.a.oneOfType([ei.a.bool,ei.a.string]),title:ei.a.string,transform:ei.a.oneOfType([ei.a.string,ei.a.object]),swapOpacity:ei.a.bool},wa.defaultProps={border:!1,className:"",mask:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,symbol:!1,title:"",transform:null,swapOpacity:!1};var Ta=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)})),a=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=va(r);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[ya(t)]=r}return e}),{attrs:{}}),o=r.style,s=void 0===o?{}:o,l=ga(r,["style"]);return a.attrs.style=ha({},a.attrs.style,{},s),t.apply(void 0,[n.tag,ha({},a.attrs,{},l)].concat(ma(i)))}.bind(null,i.a.createElement),Ma=!("undefined"==typeof window||!window.document||!window.document.createElement),Aa=(new Date).getTime();var Ca=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-Aa)),r=setTimeout(e,n);return Aa=t,r},Ea=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};Ma&&["","webkit","moz","o","ms"].some((function(e){var t=Ea(e,"request");return t in window&&(Ea(e,"cancel"),Ca=function(e){return window[t](e)}),!!Ca}));var Na=Ca;function Sa(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 ka(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function ja(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=ka(e.className,t):e.setAttribute("class",ka(e.className&&e.className.baseVal||"",t))}function Da(e){var t=function(e){return e&&e.ownerDocument||document}(e);return t&&t.defaultView||window}var Oa=/([A-Z])/g;var La=/^ms-/;function Pa(e){return function(e){return e.replace(Oa,"-$1").toLowerCase()}(e).replace(La,"-ms-")}var Ra=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;var za=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(Pa(t))||function(e,t){return Da(e).getComputedStyle(e,t)}(e).getPropertyValue(Pa(t));Object.keys(t).forEach((function(i){var a=t[i];a||0===a?!function(e){return!(!e||!Ra.test(e))}(i)?n+=Pa(i)+": "+a+";":r+=i+"("+a+") ":e.style.removeProperty(Pa(i))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n},_a=!1,Ua=!1;try{var Za={get passive(){return _a=!0},get once(){return Ua=_a=!0}};Ma&&(window.addEventListener("test",Za,Za),window.removeEventListener("test",Za,!0))}catch(e){}var Fa=function(e,t,n,r){if(r&&"boolean"!=typeof r&&!Ua){var i=r.once,a=r.capture,o=n;!Ua&&i&&(o=n.__once||function e(r){this.removeEventListener(t,e,a),n.call(this,r)},n.__once=o),e.addEventListener(t,o,_a?r:a)}e.addEventListener(t,n,r)};var Ga=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)};var Ba=function(e,t,n,r){return Fa(e,t,n,r),function(){Ga(e,t,n,r)}};function Ya(e,t,n){void 0===n&&(n=5);var r=!1,i=setTimeout((function(){r||function(e){var t=document.createEvent("HTMLEvents");t.initEvent("transitionend",!0,!0),e.dispatchEvent(t)}(e)}),t+n),a=Ba(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(i),a()}}function Wa(e,t,n,r){var i,a;null==n&&(i=za(e,"transitionDuration")||"",a=-1===i.indexOf("ms")?1e3:1,n=parseFloat(i)*a||0);var o=Ya(e,n,r),s=Ba(e,"transitionend",t);return function(){o(),s()}}function Ha(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 Va=ei.a.oneOfType([ei.a.string,ei.a.shape({enter:ei.a.string,leave:ei.a.string,active:ei.a.string,height:ei.a.string}),ei.a.shape({enter:ei.a.string,enterActive:ei.a.string,leave:ei.a.string,leaveActive:ei.a.string,appear:ei.a.string,appearActive:ei.a.string,height:ei.a.string,heightActive:ei.a.string})]);function qa(e){return(qa="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})(e)}function Qa(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 Ja(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 Xa(e,t){return(Xa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ka(e){var t=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}}();return function(){var n,r=to(e);if(t){var i=to(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return $a(this,n)}}function $a(e,t){return!t||"object"!==qa(t)&&"function"!=typeof t?eo(e):t}function eo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function to(e){return(to=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function no(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ro=[];Wa&&ro.push(Wa);var io={children:ei.a.node,name:Va.isRequired,appear:ei.a.bool,enter:ei.a.bool,leave:ei.a.bool,appearTimeout:ei.a.number,enterTimeout:ei.a.number,leaveTimeout:ei.a.number},ao=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&&Xa(e,t)}(o,e);var t,n,r,a=Ka(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),no(eo(t=a.call(this,e)),"componentWillAppear",(function(e){t.props.appear?t.transition("appear",e,t.props.appearTimeout):e()})),no(eo(t),"componentWillEnter",(function(e){t.props.enter?t.transition("enter",e,t.props.enterTimeout):e()})),no(eo(t),"componentWillLeave",(function(e){t.props.leave?t.transition("leave",e,t.props.leaveTimeout):e()})),t.classNameAndNodeQueue=[],t.transitionTimeouts=[],t}return t=o,(n=[{key:"componentWillUnmount",value:function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach((function(e){clearTimeout(e)})),this.classNameAndNodeQueue.length=0}},{key:"transition",value:function(e,t,n){var r=Object(Ji.findDOMNode)(this);if(r){var i,a=this.props.name[e]||this.props.name+"-"+e,o=this.props.name[e+"Active"]||a+"-active",s=null;Sa(r,a),this.queueClassAndNode(o,r);var l=function(e){e&&e.target!==r||(clearTimeout(s),i&&i(),ja(r,a),ja(r,o),i&&i(),t&&t())};n?(s=setTimeout(l,n),this.transitionTimeouts.push(s)):Wa&&(i=function(e,t){return ro.length?ro.forEach((function(n){return e.addEventListener(n,t,!1)})):setTimeout(t,0),function(){ro.length&&ro.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=Na((function(){return n.flushClassNameAndNodeQueueOnNextFrame()})))}},{key:"flushClassNameAndNodeQueueOnNextFrame",value:function(){var e=this;this.rafHandle=Na((function(){return e.flushClassNameAndNodeQueue()}))}},{key:"flushClassNameAndNodeQueue",value:function(){this.unmounted||this.classNameAndNodeQueue.forEach((function(e){e.node.scrollTop,Sa(e.node,e.className)})),this.classNameAndNodeQueue.length=0,this.rafHandle=null}},{key:"render",value:function(){var e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qa(Object(n),!0).forEach((function(t){no(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},this.props);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,i.a.cloneElement(i.a.Children.only(this.props.children),e)}}])&&Ja(t.prototype,n),r&&Ja(t,r),o}(i.a.Component);no(ao,"displayName","CSSTransitionGroupChild"),ao.propTypes=io;var oo=ao;function so(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function lo(e){return(lo="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})(e)}function co(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 uo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?co(Object(n),!0).forEach((function(t){vo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):co(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fo(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 po(e,t){return(po=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ho(e){var t=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}}();return function(){var n,r=yo(e);if(t){var i=yo(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return go(this,n)}}function go(e,t){return!t||"object"!==lo(t)&&"function"!=typeof t?mo(e):t}function mo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yo(e){return(yo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bo=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&&po(e,t)}(o,e);var t,n,r,a=ho(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),vo(mo(t=a.call(this,e)),"handleDoneAppearing",(function(e){delete t.transitioningKeys[e],e!==t.state.currentKey&&t.performLeave(e)})),vo(mo(t),"performLeave",(function(e){t.transitioningKeys[e]=!0,t.childRefs[e].componentWillLeave(t.handleDoneLeaving.bind(mo(t),e)),t.state.currentChild&&Object(Ji.findDOMNode)(t.childRefs[t.state.currentKey])||t.enqueueHeightTransition()})),vo(mo(t),"performHeightTransition",(function(){if(!t.unmounted){var e=mo(t).state,n=e.currentChild?Object(Ji.findDOMNode)(t.childRefs[e.currentKey]):null;t.setState({height:n?n.offsetHeight:0,width:t.props.changeWidth?n?n.offsetWidth:0:null})}t.rafHandle=null})),t.childRefs=Object.create(null),t.state={currentKey:"1",currentChild:t.props.children?i.a.Children.only(t.props.children):void 0,prevChildren:{},height:null,width:null},t.shouldEnterCurrent=!1,t.keysToLeave=[],t.transitioningKeys={},t}return t=o,(n=[{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 t=e.children?i.a.Children.only(e.children):void 0,n=this.state.currentChild;if(n&&t&&t.key===n.key&&!this.state.nextChild)return this.setState({currentChild:t});var r=this.state,a=r.currentKey,o=r.prevChildren,s={currentKey:String(Number(a)+1),currentChild:t,height:0,width:this.props.changeWidth?0:null};if(t&&(this.shouldEnterCurrent=!0),n){var l=Object(Ji.findDOMNode)(this.childRefs[a]);s.height=l?l.offsetHeight:0,s.width=this.props.changeWidth?l?l.offsetWidth:0:null,s.prevChildren=uo(uo({},o),{},vo({},a,n)),this.transitioningKeys[a]||this.keysToLeave.push(a)}this.setState(s)}},{key:"componentDidUpdate",value:function(){this.shouldEnterCurrent&&(this.shouldEnterCurrent=!1,Object(Ji.findDOMNode)(this.childRefs[this.state.currentKey])&&this.performEnter(this.state.currentKey));var e=this.keysToLeave;this.keysToLeave=[],e.forEach(this.performLeave)}},{key:"performAppear",value:function(e){this.transitioningKeys[e]=!0,this.childRefs[e].componentWillAppear(this.handleDoneAppearing.bind(this,e))}},{key:"performEnter",value:function(e){this.transitioningKeys[e]=!0,this.childRefs[e].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){delete this.transitioningKeys[e];var t={prevChildren:uo({},this.state.prevChildren)};delete t.prevChildren[e],delete this.childRefs[e],this.state.currentChild&&Object(Ji.findDOMNode)(this.childRefs[this.state.currentKey])||(t.height=null),this.setState(t)}},{key:"enqueueHeightTransition",value:function(){this.rafHandle||(this.rafHandle=Na(this.performHeightTransition))}},{key:"wrapChild",value:function(e,t){var n=this.props.transitionName;return"object"===lo(n)&&null!==n&&delete(n=uo({},n)).height,i.a.createElement(oo,uo({name:n,appear:this.props.transitionAppear,enter:this.props.transitionEnter,leave:this.props.transitionLeave,appearTimeout:this.props.transitionAppearTimeout,enterTimeout:this.props.transitionEnterTimeout,leaveTimeout:this.props.transitionLeaveTimeout},t),e)}},{key:"render",value:function(){var e=this,t=this.state,n=t.currentKey,r=t.currentChild,a=t.prevChildren,o=t.height,s=t.width,l=[],c=this.props,u=c.overflowHidden,f=c.transitionName,d=c.component,p=c.childComponent,h=c.notifyLeaving,g=(c.transitionAppear,c.transitionEnter,c.transitionLeave,c.changeWidth,c.transitionAppearTimeout,c.transitionEnterTimeout,c.transitionLeaveTimeout,so(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=uo({},g.style),m&&(g.style.position="relative",u&&(g.style.overflow="hidden")),null!==o){var y="string"==typeof f?"".concat(f,"-height"):f&&f.height||"";g.className="".concat(g.className||""," ").concat(y),g.style.height=o}null!==s&&(g.style.width=s);var v={position:"absolute",top:0,left:0,right:0,bottom:0,userSelect:"none"};return Object.keys(a).forEach((function(t){var n=a[t];l.push(i.a.createElement(p,{key:t,style:v},e.wrapChild(h&&"string"!=typeof n.type?i.a.cloneElement(n,{isLeaving:!0}):n,{ref:function(n){return e.childRefs[t]=n}})))})),r&&l.push(i.a.createElement(p,{key:n,style:this.transitioningKeys[n]?v:m?{position:"relative"}:null},this.wrapChild(r,{ref:function(t){return e.childRefs[n]=t}}))),i.a.createElement(d,g,l)}}])&&fo(t.prototype,n),r&&fo(t,r),o}(i.a.Component);vo(bo,"displayName","ReactCSSTransitionReplace"),vo(bo,"propTypes",{transitionName:Va.isRequired,transitionAppear:ei.a.bool,transitionEnter:ei.a.bool,transitionLeave:ei.a.bool,transitionAppearTimeout:Ha("Appear"),transitionEnterTimeout:Ha("Enter"),transitionLeaveTimeout:Ha("Leave"),overflowHidden:ei.a.bool,changeWidth:ei.a.bool,notifyLeaving:ei.a.bool}),vo(bo,"defaultProps",{transitionAppear:!1,transitionEnter:!0,transitionLeave:!0,overflowHidden:!0,changeWidth:!1,notifyLeaving:!1,component:"div",childComponent:"span"});var Io=({error:e,children:t})=>{const{t:n}=Tr();return i.a.createElement(bo,{transitionName:"e-crossfade",transitionEnterTimeout:500,transitionLeaveTimeout:500},null!=e?i.a.createElement("div",{className:"e-color-error",role:"alert"},i.a.createElement(wa,{icon:aa,className:"e-mrg-r-1"}),n("audio-errors."+e)):i.a.createElement("div",{key:"no-error"},t))},xo=n(5);const wo=e=>Object(xo.action)("PLAY_AUDIO",e),To=e=>Object(xo.action)("UPDATE_REMAINING",e);var Mo=i.a.memo((function({src:e,restrictedAudioId:t,duration:n,times:r,labelId:a}){const o=Qi(Ki(e,t)),s=Qi(((e,t)=>n=>"playing"===Ki(e,t)(n)?n.audio.nowPlaying.durationRemaining:void 0)(e,t)),l=Qi(ta(t,r)),{i18n:c,t:u}=Tr(),f=Wi(),d="stopped"!==o||0===l,p="audio-remaining-"+t;return i.a.createElement("div",{className:Kr()("restricted-audio-player e-column e-column--narrow e-columns e-columns--inline e-columns--center-v e-pad-1",{"restricted-audio-player--disabled":d}),lang:c.language},i.a.createElement("button",{className:Kr()("restricted-audio-player__play e-column e-column--narrow",{"restricted-audio-player__play--playing":"playing"===o}),disabled:d,onClick:()=>"stopped"===o&&f(wo({src:e,restrictedAudioId:t,duration:n})),"aria-describedby":[p,a].join(" "),"aria-label":u.raw("audio.play")},"playing"!==o&&i.a.createElement(wa,{icon:ca,fixedWidth:!0})),i.a.createElement("span",{className:"restricted-audio-player__duration e-column e-text-right",id:p},function(e){const t=Math.floor(e/60),n=e%60;return Ao(t)+":"+Ao(n)}(null!=s?s:n)))}));function Ao(e){return e.toString().padStart(2,"0")}var Co=i.a.memo((function({element:e,className:t,renderChildNodes:n}){const a=e.getAttribute("src"),o=be(e,"restricted-audio-id"),s=be(e,"times"),l=be(e,"duration"),{t:c}=Tr(),u=null!=s&&null!=o?Qi($i(a,o)):void 0,f=null!=s&&null!=o?Qi(ta(o,s)):void 0,{resolveAttachment:d}=Object(r.useContext)(Br),p=Rr(e);return i.a.createElement("div",{className:Kr()("audio e-columns e-columns--center-v e-mrg-b-2",t)},null!=o&&null!=s?i.a.createElement(Mo,{src:a,restrictedAudioId:o,duration:l,times:s,labelId:p}):i.a.createElement("audio",{className:"e-column e-column--narrow","aria-describedby":p,preload:"metadata",controls:!0,controlsList:"nodownload"},i.a.createElement("source",{src:d(a)})),i.a.createElement("div",{className:"e-column",id:p},i.a.createElement(Io,{error:u},n(e)),null!=f&&i.a.createElement("em",null,c("listen-times-remaining",{count:f}))))}));const Eo=Ae({attachment:qr((function({element:e}){const{displayNumber:t}=Object(r.useContext)(Vr);return i.a.createElement("li",{"data-list-number":t,"aria-label":t},Eo(e,1))})),"attachment-title":function({element:e}){const{attachmentsURL:t}=Object(r.useContext)(Br),{displayNumber:n}=Object(r.useContext)(Vr);return i.a.createElement("a",{href:Ur(t,{hash:n}),className:"exam-attachment-title",target:"attachments"},Eo(e))}});var No=i.a.memo((function({element:e,showTitle:t=!0,forceRender:n=!1}){if(null==me(e,"question")&&!n)return null;const{t:r}=Tr(),a=jr(e);return i.a.createElement("div",{className:"external-material-list e-mrg-b-4"},t&&i.a.createElement("div",{className:"e-font-size-l e-semibold",id:a},r("external-material-title")),i.a.createElement("ol",{className:"e-list-data e-pad-l-0 e-mrg-0","aria-labelledby":a},Eo(e)))}));var So=i.a.memo((function({element:e,className:t,renderChildNodes:n}){const a=e.getAttribute("src"),o=e.hasChildNodes(),{resolveAttachment:s}=Object(r.useContext)(Br);return i.a.createElement("a",{className:Kr()("file e-nowrap",t),href:s(a),download:!0},o?i.a.createElement(i.a.Fragment,null,n(e)," (",a,")"):a)}));var ko=i.a.memo((function({element:e,className:t}){const n=ve(e,"svg"),r=ve(e,"assistive-title"),a="display"===ve(e,"mode");return i.a.createElement(i.a.Fragment,null,i.a.createElement("span",{className:Kr()("e-formula",{"e-block e-text-center":a},t),dangerouslySetInnerHTML:{__html:n},"aria-hidden":"true"}),i.a.createElement("span",{className:"e-screen-reader-only"},r||e.textContent))}));var jo=({bordered:e=!1,className:t,children:n,height:r,width:a,caption:o,captionId:s})=>{const l=r/a*100+"%",c=a+(e?18:0);return i.a.createElement("span",{className:Kr()("responsive-media-container",{"responsive-media-container--bordered":e},t),style:{maxWidth:c}},i.a.createElement("span",{className:"responsive-media-container__inner",style:{paddingBottom:l}},n),o&&i.a.createElement("span",{className:"e-color-darkgrey e-block e-mrg-t-1 e-font-size-s e-light",id:s},o))};function Do(e){return"string"==typeof e&&0===e.trim().length}var Oo=i.a.memo((function({element:e,className:t,renderChildNodes:n}){const{resolveAttachment:a}=Object(r.useContext)(Br),{t:o}=Tr(),s=ve(e,"src"),l=be(e,"width"),c=be(e,"height"),u=ye(e,"image-title"),f=u&&n(u),d=null!=f&&!f.every(Do),p=d?f:void 0,h=d?Lr(e):void 0,g=a(s),m=i.a.createElement("img",{className:"e-image",src:g,alt:"","aria-labelledby":h});return i.a.createElement(i.a.Fragment,null,i.a.createElement(jo,{className:t,width:l,height:c,caption:p,captionId:h,bordered:d||null!=me(e,"choice-answer")},null!=me(e,["choice-answer","hint"])?m:i.a.createElement("a",{title:o.raw("zoom-in"),href:g,target:"original-picture",className:"e-zoomable","aria-hidden":!d,tabIndex:-1},m)))}));var Lo=function({element:e,renderChildNodes:t}){const n=t(e);return 0===n.length?null:i.a.createElement(i.a.Fragment,null,n)};function Po({element:e,renderChildNodes:t}){return i.a.createElement("em",null,t(e))}function Ro({element:e,renderChildNodes:t}){return i.a.createElement("a",{href:e.textContent,target:"_blank",rel:"noreferrer"},t(e))}function zo({element:e}){const t=e.textContent;if(/^[0-9]{4}$/.test(t))return i.a.createElement(i.a.Fragment,null,t);{const e=new Date(t),{dateTimeFormatter:n}=Object(r.useContext)(Br);return i.a.createElement(i.a.Fragment,null,n.format(e))}}var _o=i.a.memo((function({element:e,renderChildNodes:t}){const{t:n}=Tr();function r(n,r){const a=ye(e,n);if(a){const e=a.localName,n=i.a.createElement(r,{element:a,renderChildNodes:t,key:e});if(n){return Ie(a,"hidden")?i.a.createElement("del",{key:e},n):n}}}function a(r,a,o){const s=ye(e,r);return s&&i.a.createElement(i.a.Fragment,{key:s.localName},n(a)," ",i.a.createElement(o,{element:s,renderChildNodes:t,key:s.localName}))}return i.a.createElement("span",{className:Kr()("e-break-word",{"e-line-through":Ie(e,"hidden")})},n("references.source")," ",(o=". ",(s=[r("author",Lo),r("title",Po),r("publisher",Lo),r("publication",Lo),r("howpublished",Lo),r("url",Ro),a("publication-date","references.date",zo),a("reference-date","references.reference-date",zo),a("translator","references.translator",Lo),a("modified-by","references.modified-by",Lo),r("note",Lo)]).filter(Boolean).reduce((e,t,n)=>(e.push(t),n!==s.length-1&&e.push(o),e),[])));var o,s}));var Uo=i.a.memo((function({element:e,renderChildNodes:t,className:n}){const{resolveAttachment:a}=Object(r.useContext)(Br),o=ve(e,"src"),s=be(e,"width"),l=be(e,"height"),c=ye(e,"video-title"),u=c&&t(c),f=null!=u&&!u.every(Do),d=f?u:void 0,p=f?Pr(e):void 0;return i.a.createElement(jo,{caption:d,captionId:p,className:n,width:s,height:l},i.a.createElement("video",{className:"video",preload:"metadata",controls:!0,controlsList:"nodownload",disablePictureInPicture:!0,"aria-describedby":p},i.a.createElement("source",{src:a(o)})))})),Zo=/\s/;var Fo=function(e){for(var t=e.length;t--&&Zo.test(e.charAt(t)););return t},Go=/^\s+/;var Bo=function(e){return e?e.slice(0,Fo(e)+1).replace(Go,""):e},Yo=/^[-+]0x[0-9a-f]+$/i,Wo=/^0b[01]+$/i,Ho=/^0o[0-7]+$/i,Vo=parseInt;var qo=function(e){if("number"==typeof e)return e;if(kt(e))return NaN;if(re(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=re(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Bo(e);var n=Wo.test(e);return n||Ho.test(e)?Vo(e.slice(2),n?2:8):Yo.test(e)?NaN:+e};var Qo=function(e){return e?(e=qo(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var Jo=function(e){var t=Qo(e),n=t%1;return t==t?n?t-n:t:0},Xo=Math.min;var Ko=function(e,t){if((e=Jo(e))<1||e>9007199254740991)return[];var n=4294967295,r=Xo(e,4294967295);t=ue(t),e-=4294967295;for(var i=I(r,t);++n<e;)t(n);return i};function $o({opacity:e,setOpacity:t,element:n,renderChildNodes:r}){const a=ye(n,"image-title");return i.a.createElement("div",{className:"e-columns e-columns--center-v e-mrg-b-1"},i.a.createElement("div",{className:"e-column e-text-right e-mrg-r-1"},a&&r(a)),i.a.createElement(wa,{icon:sa,className:"e-mrg-r-1 e-pointer",onClick:()=>t(0)}),i.a.createElement("input",{type:"range",min:0,max:1,step:.01,value:e,onChange:e=>t(Number(e.target.value))}),i.a.createElement(wa,{icon:oa,className:"e-mrg-l-1 e-pointer",onClick:()=>t(1)}))}function es({element:e,absolute:t,opacity:n}){const a=e.getAttribute("src"),o=be(e,"width"),s=be(e,"height"),l=Object(r.useContext)(Br).resolveAttachment(a);return i.a.createElement("div",{className:Kr()("e-columns e-columns--center-h",{"e-image-overlay__image-absolute":t}),style:{opacity:n}},i.a.createElement(jo,{width:o,height:s},i.a.createElement("img",{className:"e-image",src:l})))}var ts=i.a.memo((function({element:e,renderChildNodes:t}){const[n,a]=Object(r.useState)(()=>Ko(e.children.length,e=>0===e?1:0)),o=e=>t=>{const r=[...n];r[e]=t,a(r)};return i.a.createElement("div",{className:"e-image-overlay e-mrg-b-1"},i.a.createElement("div",{className:"e-columns e-columns--center-h"},i.a.createElement("div",null,xe(e,(e,r)=>i.a.createElement($o,{key:r,opacity:n[r],element:e,setOpacity:o(r),renderChildNodes:t})))),i.a.createElement("div",null,i.a.createElement("div",{className:"e-image-overlay__images-wrapper"},xe(e,(e,r)=>i.a.createElement(es,{key:r,element:e,renderChildNodes:t,opacity:n[r],absolute:r>0})))))}));const ns=Ae({"attachment-link":Wr("link"),"attachment-links":Hr("link"),"attachment-title":Jr,attachment:Qr,audio:Co,"audio-title":Lo,file:So,image:Oo,video:Uo,formula:ko,reference:function(e,t,n){const r=r=>{const a=t;return i.a.createElement(a,{...n},i.a.createElement(e,{...r}))};return r.displayName="Surround("+Fr(e)+")",r}(_o,"div",{className:"e-color-darkgrey e-mrg-y-2 e-font-size-s e-light"}),"image-overlay":ts});var rs=i.a.memo((function({element:e,forceRender:t=!1}){if(null==me(e,"question")&&!t)return null;const n=e.children.length;return i.a.createElement(i.a.Fragment,null,n>1&&i.a.createElement(No,{element:e,renderChildNodes:ns,showTitle:!1,forceRender:t}),ns(e))}));const is=i.a.createContext({}),as=Gr(is,({element:e})=>{const t=ge(e,"question",!1);return{answers:t.length?[]:ge(e,["text-answer","scored-text-answer","dropdown-answer","choice-answer"],!1),displayNumber:e.getAttribute("display-number"),hasExternalMaterial:null!=ye(e,"external-material"),maxAnswers:be(e,"max-answers"),maxScore:be(e,"max-score"),level:de(e,"question").length,childQuestions:t}});var os=e=>{const t=Kr()("e-section e-bg-color-off-white e-pad-6",e.className);return i.a.createElement("section",{...e,className:t},e.children)};var ss=i.a.memo(as((function({element:e,renderChildNodes:t}){const{displayNumber:n,hasExternalMaterial:a,level:o}=Object(r.useContext)(is);return function(e,t,n){return t&&(0===n||de(e).every(e=>"question"!==e.localName||!ye(e,"external-material")))}(e,a,o)?i.a.createElement(os,{id:n,"aria-labelledby":kr(n)},t(e,1)):i.a.createElement(i.a.Fragment,null,t(e,1))})));function ls(e){return e.includes(".")?e:e+"."}var cs=i.a.memo((function({element:e,renderChildNodes:t}){const{displayNumber:n,hasExternalMaterial:a}=Object(r.useContext)(is);return a?i.a.createElement("h2",{id:kr(n)},ls(n)," ",t(e)):null}));var us=i.a.memo(e=>{const t=Object(r.useRef)(null);return Object(r.useLayoutEffect)(()=>{t.current&&(document.title=t.current.textContent)}),i.a.createElement("h1",{...e,ref:t})});const fs=i.a.createContext({}),ds=Gr(fs,e=>{const{casCountdownDuration:t,examServerApi:n}=e;return{casCountdownDuration:t||60,examServerApi:n}});var ps=i.a.memo((function({element:e,renderChildNodes:t}){return i.a.createElement(i.a.Fragment,null,t(e,1))}));const hs=i.a.createContext({}),gs=Gr(hs,({element:e})=>({casForbidden:Ie(e,"cas-forbidden"),displayNumber:e.getAttribute("display-number"),maxAnswers:be(e,"max-answers"),minAnswers:be(e,"min-answers"),maxScore:be(e,"max-score"),childQuestions:xe(e,e=>e).filter(e=>"question"===e.localName)})),ms=Ae({"audio-group":ps,"external-material":rs,"question-title":cs,question:ss,section:gs(Lo)}),ys=()=>{const{t:e}=Tr();return i.a.createElement(i.a.Fragment,null,e("attachments-page-title"))};var vs=i.a.memo(ds(Yr(()=>{const{root:e,language:t,date:n,dateTimeFormatter:a,dayCode:o,examCode:s,resolveAttachment:l,subjectLanguage:c}=Object(r.useContext)(Br),u=ye(e,"exam-title"),f=e.getAttribute("exam-stylesheet"),d=ye(e,"external-material"),p=_r(()=>wr(t,s,o));return Object(r.useEffect)(Mr(p,t)),Object(r.useEffect)(zr,[]),i.a.createElement(y,{i18n:p},i.a.createElement("main",{className:"e-exam attachments",lang:c,"aria-labelledby":"title"},i.a.createElement(i.a.StrictMode,null),f&&i.a.createElement("link",{rel:"stylesheet",href:l(f)}),i.a.createElement(os,{"aria-labelledby":"title"},u&&i.a.createElement(us,{id:"title"},i.a.createElement(ys,null)," ",ms(u)),i.a.createElement("div",{className:"e-semibold e-mrg-b-6"},a.format(n)),d&&i.a.createElement(rs,{element:d,renderChildNodes:ms,forceRender:!0})),ms(e)))})));function bs(e){return ws(e,ge(e,"question",!1).map(Is),{displayNumber:ve(e,"display-number"),minAnswers:be(e,"min-answers"),maxAnswers:be(e,"max-answers")})}function Is(e){const t=ge(e,"question",!1);return ws(e,t.length?t.map(Is):ge(e,["text-answer","scored-text-answer","choice-answer","dropdown-answer"],!1).map(xs),{displayNumber:ve(e,"display-number"),maxAnswers:be(e,"max-answers")})}function xs(e){return ws(e,[],{displayNumber:ve(e,"display-number"),questionId:be(e,"question-id")})}function ws(e,t,n){return{name:e.localName,attributes:n,childNodes:t}}var Ts=function(){this.__data__=new gn,this.size=0};var Ms=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var As=function(e){return this.__data__.get(e)};var Cs=function(e){return this.__data__.has(e)};var Es=function(e,t){var n=this.__data__;if(n instanceof gn){var r=n.__data__;if(!mn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new An(r)}return n.set(e,t),this.size=n.size,this};function Ns(e){var t=this.__data__=new gn(e);this.size=t.size}Ns.prototype.clear=Ts,Ns.prototype.delete=Ms,Ns.prototype.get=As,Ns.prototype.has=Cs,Ns.prototype.set=Es;var Ss=Ns;var ks=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var js=function(e){return this.__data__.has(e)};function Ds(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new An;++t<n;)this.add(e[t])}Ds.prototype.add=Ds.prototype.push=ks,Ds.prototype.has=js;var Os=Ds;var Ls=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};var Ps=function(e,t){return e.has(t)};var Rs=function(e,t,n,r,i,a){var o=1&n,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var f=-1,d=!0,p=2&n?new Os:void 0;for(a.set(e,t),a.set(t,e);++f<s;){var h=e[f],g=t[f];if(r)var m=o?r(g,h,f,t,e,a):r(h,g,f,e,t,a);if(void 0!==m){if(m)continue;d=!1;break}if(p){if(!Ls(t,(function(e,t){if(!Ps(p,t)&&(h===e||i(h,e,n,r,a)))return p.push(t)}))){d=!1;break}}else if(h!==g&&!i(h,g,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d},zs=x.a.Uint8Array;var _s=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};var Us=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Zs=w?w.prototype:void 0,Fs=Zs?Zs.valueOf:void 0;var Gs=function(e,t,n,r,i,a,o){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||!a(new zs(e),new zs(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return sn(+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=_s;case"[object Set]":var l=1&r;if(s||(s=Us),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;r|=2,o.set(e,t);var u=Rs(s(e),s(t),r,i,a,o);return o.delete(e),u;case"[object Symbol]":if(Fs)return Fs.call(e)==Fs.call(t)}return!1};var Bs=function(e,t,n){var r=t(e);return _(e)?r:Qn(r,n(e))};var Ys=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a};var Ws=function(){return[]},Hs=Object.prototype.propertyIsEnumerable,Vs=Object.getOwnPropertySymbols,qs=Vs?function(e){return null==e?[]:(e=Object(e),Ys(Vs(e),(function(t){return Hs.call(e,t)})))}:Ws;var Qs=function(e){return Bs(e,oe,qs)},Js=Object.prototype.hasOwnProperty;var Xs=function(e,t,n,r,i,a){var o=1&n,s=Qs(e),l=s.length;if(l!=Qs(t).length&&!o)return!1;for(var c=l;c--;){var u=s[c];if(!(o?u in t:Js.call(t,u)))return!1}var f=a.get(e),d=a.get(t);if(f&&d)return f==t&&d==e;var p=!0;a.set(e,t),a.set(t,e);for(var h=o;++c<l;){var g=e[u=s[c]],m=t[u];if(r)var y=o?r(m,g,u,t,e,a):r(g,m,u,e,t,a);if(!(void 0===y?g===m||i(g,m,n,r,a):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 a.delete(e),a.delete(t),p},Ks=qt(x.a,"DataView"),$s=qt(x.a,"Promise"),el=qt(x.a,"Set"),tl=qt(x.a,"WeakMap"),nl=Ut(Ks),rl=Ut(mn),il=Ut($s),al=Ut(el),ol=Ut(tl),sl=j;(Ks&&"[object DataView]"!=sl(new Ks(new ArrayBuffer(1)))||mn&&"[object Map]"!=sl(new mn)||$s&&"[object Promise]"!=sl($s.resolve())||el&&"[object Set]"!=sl(new el)||tl&&"[object WeakMap]"!=sl(new tl))&&(sl=function(e){var t=j(e),n="[object Object]"==t?e.constructor:void 0,r=n?Ut(n):"";if(r)switch(r){case nl:return"[object DataView]";case rl:return"[object Map]";case il:return"[object Promise]";case al:return"[object Set]";case ol:return"[object WeakMap]"}return t});var ll=sl,cl=Object.prototype.hasOwnProperty;var ul=function(e,t,n,r,i,a){var o=_(e),s=_(t),l=o?"[object Array]":ll(e),c=s?"[object Array]":ll(t),u="[object Object]"==(l="[object Arguments]"==l?"[object Object]":l),f="[object Object]"==(c="[object Arguments]"==c?"[object Object]":c),d=l==c;if(d&&Object(U.a)(e)){if(!Object(U.a)(t))return!1;o=!0,u=!1}if(d&&!u)return a||(a=new Ss),o||q(e)?Rs(e,t,n,r,i,a):Gs(e,t,l,n,r,i,a);if(!(1&n)){var p=u&&cl.call(e,"__wrapped__"),h=f&&cl.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,m=h?t.value():t;return a||(a=new Ss),i(g,m,n,r,a)}}return!!d&&(a||(a=new Ss),Xs(e,t,n,r,i,a))};var fl=function e(t,n,r,i,a){return t===n||(null==t||null==n||!D(t)&&!D(n)?t!=t&&n!=n:ul(t,n,r,i,e,a))};var dl=function(e,t,n,r){var i=n.length,a=i,o=!r;if(null==e)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){var l=(s=n[i])[0],c=e[l],u=s[1];if(o&&s[2]){if(void 0===c&&!(l in e))return!1}else{var f=new Ss;if(r)var d=r(c,u,l,e,t,f);if(!(void 0===d?fl(u,c,3,r,f):d))return!1}}return!0};var pl=function(e){return e==e&&!re(e)};var hl=function(e){for(var t=oe(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,pl(i)]}return t};var gl=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}};var ml=function(e){var t=hl(e);return 1==t.length&&t[0][2]?gl(t[0][0],t[0][1]):function(n){return n===e||dl(n,e,t)}};var yl=function(e,t){return Lt(e)&&pl(t)?gl(zn(e),t):function(n){var r=Xi(n,e);return void 0===r&&r===t?Vn(n,e):fl(t,r,3)}};var vl=function(e){return function(t){return null==t?void 0:t[e]}};var bl=function(e){return function(t){return _n(t,e)}};var Il=function(e){return Lt(e)?vl(zn(e)):bl(e)};var xl=function(e){return"function"==typeof e?e:null==e?ce:"object"==typeof e?_(e)?yl(e[0],e[1]):ml(e):Il(e)};var wl=function(e,t){var n=-1,r=ae(e)?Array(e.length):[];return le(e,(function(e,i,a){r[++n]=t(e,i,a)})),r};var Tl=function(e,t){return(_(e)?jn:wl)(e,xl(t,3))};var Ml=function(e,t){var n={};return t=xl(t,3),se(e,(function(e,r,i){Zn(n,r,t(e,r,i))})),n};var Al=function(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r};var Cl=function(e,t,n,r){return le(e,(function(e,i,a){t(r,e,n(e),a)})),r};var El=function(e,t){return function(n,r){var i=_(n)?Al:Cl,a=t?t():{};return i(n,e,xl(r,2),a)}}((function(e,t,n){Zn(e,n,t)})),Nl=n(42),Sl=function(){return Math.random().toString(36).substring(7).split("").join(".")},kl={INIT:"@@redux/INIT"+Sl(),REPLACE:"@@redux/REPLACE"+Sl(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Sl()}};function jl(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Dl(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(Dl)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var i=e,a=t,o=[],s=o,l=!1;function c(){s===o&&(s=o.slice())}function u(){if(l)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function f(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(l)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,c();var n=s.indexOf(e);s.splice(n,1),o=null}}}function d(e){if(!jl(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(l)throw new Error("Reducers may not dispatch actions.");try{l=!0,a=i(a,e)}finally{l=!1}for(var t=o=s,n=0;n<t.length;n++){(0,t[n])()}return e}function p(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");i=e,d({type:kl.REPLACE})}function h(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[Nl.a]=function(){return this},e}return d({type:kl.INIT}),(r={dispatch:d,subscribe:f,getState:u,replaceReducer:p})[Nl.a]=h,r}function Ol(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function Ll(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pl(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function Rl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pl(n,!0).forEach((function(t){Ll(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pl(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zl(){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 _l=function(e){return"@@redux-saga/"+e},Ul=_l("CANCEL_PROMISE"),Zl=_l("CHANNEL_END"),Fl=_l("IO"),Gl=_l("MATCH"),Bl=_l("MULTICAST"),Yl=_l("SAGA_ACTION"),Wl=_l("SELF_CANCELLATION"),Hl=_l("TASK"),Vl=_l("TASK_CANCEL"),ql=_l("TERMINATE"),Ql=_l("LOCATION"),Jl=function(e){return null==e},Xl=function(e){return null!=e},Kl=function(e){return"function"==typeof e},$l=function(e){return"string"==typeof e},ec=Array.isArray,tc=function(e){return e&&Kl(e.then)},nc=function(e){return e&&Kl(e.next)&&Kl(e.throw)},rc=function e(t){return t&&($l(t)||oc(t)||Kl(t)||ec(t)&&t.every(e))},ic=function(e){return e&&Kl(e.take)&&Kl(e.close)},ac=function(e){return Kl(e)&&e.hasOwnProperty("toString")},oc=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype};var sc=function(e,t){var n;void 0===t&&(t=!0);var r=new Promise((function(r){n=setTimeout(r,e,t)}));return r[Ul]=function(){clearTimeout(n)},r},lc=function(e){return function(){return e}}(!0),cc=function(){};var uc=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var fc=function(e,t){li(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function dc(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function pc(e){var t=!1;return function(){t||(t=!0,e())}}var hc=function(e){throw e},gc=function(e){return{value:e,done:!0}};function mc(e,t,n){void 0===t&&(t=hc),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:gc,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function yc(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var vc=function(e){return Array.apply(null,new Array(e))},bc=function(e){return function(t){return e(Object.defineProperty(t,Yl,{value:!0}))}},Ic=function(e){return e===ql},xc=function(e){return e===Vl},wc=function(e){return Ic(e)||xc(e)};function Tc(e,t){var n=Object.keys(e),r=n.length;var i,a=0,o=ec(e)?vc(r):{},s={};return n.forEach((function(e){var n=function(n,s){i||(s||wc(n)?(t.cancel(),t(n,s)):(o[e]=n,++a===r&&(i=!0,t(o))))};n.cancel=cc,s[e]=n})),t.cancel=function(){i||(i=!0,n.forEach((function(e){return s[e].cancel()})))},s}function Mc(e){return{name:e.name||"anonymous",location:Ac(e)}}function Ac(e){return e[Ql]}var Cc={isEmpty:lc,put:cc,take:cc};function Ec(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,i=0,a=0,o=function(t){n[i]=t,i=(i+1)%e,r++},s=function(){if(0!=r){var t=n[a];return n[a]=null,r--,a=(a+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)o(s);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[i]=s,a=i=(i+1)%e;break;case 4:c=2*e,n=l(),r=n.length,i=n.length,a=0,n.length=c,e=c,o(s)}},take:s,flush:l}}var Nc=function(){return Cc},Sc=function(e){return Ec(e,4)},kc=function(e,t){var n;return(n={})[Fl]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function jc(e,t){return void 0===e&&(e="*"),rc(e)?kc("TAKE",{pattern:e}):ic(n=e)&&n[Bl]&&Xl(t)&&rc(t)?kc("TAKE",{channel:e,pattern:t}):ic(e)?kc("TAKE",{channel:e}):void 0;var n}function Dc(e,t){return Jl(t)&&(t=e,e=void 0),kc("PUT",{channel:e,action:t})}function Oc(e){var t=kc("RACE",e);return t.combinator=!0,t}function Lc(e,t){var n,r=null;return Kl(e)?n=e:(ec(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&$l(n)&&Kl(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function Pc(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 kc("CALL",Lc(e,n))}function Rc(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 kc("FORK",Lc(e,n))}function zc(e){return void 0===e&&(e=Wl),kc("CANCEL",e)}var _c=Pc.bind(null,sc);function Uc(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}var Zc=Uc,Fc=[],Gc=0;function Bc(e){try{Hc(),e()}finally{Vc()}}function Yc(e){Fc.push(e),Gc||(Hc(),qc())}function Wc(e){try{return Hc(),e()}finally{qc()}}function Hc(){Gc++}function Vc(){Gc--}function qc(){var e;for(Vc();!Gc&&void 0!==(e=Fc.shift());)Bc(e)}var Qc=function(e){return function(t){return e.some((function(e){return eu(e)(t)}))}},Jc=function(e){return function(t){return e(t)}},Xc=function(e){return function(t){return t.type===String(e)}},Kc=function(e){return function(t){return t.type===e}},$c=function(){return lc};function eu(e){var t="*"===e?$c:$l(e)?Xc:ec(e)?Qc:ac(e)?Xc:Kl(e)?Jc:oc(e)?Kc:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var tu={type:Zl},nu=function(e){return e&&e.type===Zl};function ru(e){void 0===e&&(e=Sc());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(tu):e.isEmpty()?(n.push(r),r.cancel=function(){dc(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(tu):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])(tu)}}}}}function iu(){var e,t,n,r,i,a,o=(t=!1,r=n=[],i=function(){r===n&&(r=n.slice())},a=function(){t=!0;var e=n=r;r=[],e.forEach((function(e){e(tu)}))},(e={})[Bl]=!0,e.put=function(e){if(!t)if(nu(e))a();else for(var i=n=r,o=0,s=i.length;o<s;o++){var l=i[o];l[Gl](e)&&(l.cancel(),l(e))}},e.take=function(e,n){void 0===n&&(n=$c),t?e(tu):(e[Gl]=n,i(),r.push(e),e.cancel=pc((function(){i(),dc(r,e)})))},e.close=a,e),s=o.put;return o.put=function(e){e[Yl]?s(e):Yc((function(){s(e)}))},o}function au(e,t){var n=e[Ul];Kl(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var ou,su=0,lu=function(){return++su};function cu(e){e.isRunning()&&e.cancel()}var uu=((ou={}).TAKE=function(e,t,n){var r=t.channel,i=void 0===r?e.channel:r,a=t.pattern,o=t.maybe,s=function(e){e instanceof Error?n(e,!0):!nu(e)||o?n(e):n(ql)};try{i.take(s,Xl(a)?eu(a):null)}catch(e){return void n(e,!0)}n.cancel=s.cancel},ou.PUT=function(e,t,n){var r=t.channel,i=t.action,a=t.resolve;Yc((function(){var t;try{t=(r?r.put:e.dispatch)(i)}catch(e){return void n(e,!0)}a&&tc(t)?au(t,n):n(t)}))},ou.ALL=function(e,t,n,r){var i=r.digestEffect,a=su,o=Object.keys(t);if(0!==o.length){var s=Tc(t,n);o.forEach((function(e){i(t[e],a,s[e],e)}))}else n(ec(t)?[]:{})},ou.RACE=function(e,t,n,r){var i=r.digestEffect,a=su,o=Object.keys(t),s=ec(t)?vc(o.length):{},l={},c=!1;o.forEach((function(e){var t=function(t,r){c||(r||wc(t)?(n.cancel(),n(t,r)):(n.cancel(),c=!0,s[e]=t,n(s)))};t.cancel=cc,l[e]=t})),n.cancel=function(){c||(c=!0,o.forEach((function(e){return l[e].cancel()})))},o.forEach((function(e){c||i(t[e],a,l[e],e)}))},ou.CALL=function(e,t,n,r){var i=t.context,a=t.fn,o=t.args,s=r.task;try{var l=a.apply(i,o);if(tc(l))return void au(l,n);if(nc(l))return void vu(e,l,s.context,su,Mc(a),!1,n);n(l)}catch(e){n(e,!0)}},ou.CPS=function(e,t,n){var r=t.context,i=t.fn,a=t.args;try{var o=function(e,t){Jl(e)?n(t):n(e,!0)};i.apply(r,a.concat(o)),o.cancel&&(n.cancel=o.cancel)}catch(e){n(e,!0)}},ou.FORK=function(e,t,n,r){var i=t.context,a=t.fn,o=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(nc(i))return i;var a=!1;return mc((function(e){return a?{value:e,done:!0}:(a=!0,{value:i,done:!tc(i)})}))}catch(e){return mc((function(){throw e}))}}({context:i,fn:a,args:o}),u=function(e,t){return e.isSagaIterator?{name:e.meta.name}:Mc(t)}(c,a);Wc((function(){var t=vu(e,c,l.context,su,u,s,void 0);s?n(t):t.isRunning()?(l.queue.addTask(t),n(t)):t.isAborted()?l.queue.abort(t.error()):n(t)}))},ou.JOIN=function(e,t,n,r){var i=r.task,a=function(e,t){if(e.isRunning()){var n={task:i,cb:t};t.cancel=function(){e.isRunning()&&dc(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(ec(t)){if(0===t.length)return void n([]);var o=Tc(t,n);t.forEach((function(e,t){a(e,o[t])}))}else a(t,n)},ou.CANCEL=function(e,t,n,r){var i=r.task;t===Wl?cu(i):ec(t)?t.forEach(cu):cu(t),n()},ou.SELECT=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)}},ou.ACTION_CHANNEL=function(e,t,n){var r=t.pattern,i=ru(t.buffer),a=eu(r),o=function t(n){nu(n)||e.channel.take(t,a),i.put(n)},s=i.close;i.close=function(){o.cancel(),s()},e.channel.take(o,a),n(i)},ou.CANCELLED=function(e,t,n,r){n(r.task.isCancelled())},ou.FLUSH=function(e,t,n){t.flush(n)},ou.GET_CONTEXT=function(e,t,n,r){n(r.task.context[t])},ou.SET_CONTEXT=function(e,t,n,r){var i=r.task;fc(i.context,t),n()},ou);function fu(e,t){return e+"?"+t}function du(e){var t=e.name,n=e.location;return n?t+" "+fu(n.fileName,n.lineNumber):t}var pu=null,hu=[],gu=function(){pu=null,hu.length=0},mu=function(){var e,t,n,r,i,a,o,s=hu[0],l=hu.slice(1),c=s.crashedEffect?(e=s.crashedEffect,(t=Ac(e))?t.code+" "+fu(t.fileName,t.lineNumber):""):null;return["The above error occurred in task "+du(s.meta)+(c?" \n when executing effect "+c:"")].concat(l.map((function(e){return" created by "+du(e.meta)})),[(n=hu,r=function(e){return e.cancelledTasks},i=n,o=(a=[]).concat.apply(a,i.map(r)),o.length?["Tasks cancelled due to error:"].concat(o).join("\n"):"")]).join("\n")};function yu(e,t,n,r,i,a,o){var s;void 0===o&&(o=cc);var l,c,u=0,f=null,d=[],p=Object.create(n),h=function(e,t,n){var r,i=[],a=!1;function o(e){t(),l(),n(e,!0)}function s(t){i.push(t),t.cont=function(s,l){a||(dc(i,t),t.cont=cc,l?o(s):(t===e&&(r=s),i.length||(a=!0,n(r))))}}function l(){a||(a=!0,i.forEach((function(e){e.cont=cc,e.cancel()})),i=[])}return s(e),{addTask:s,cancelAll:l,abort:o,getTasks:function(){return i}}}(t,(function(){d.push.apply(d,h.getTasks().map((function(e){return e.meta.name})))}),g);function g(t,n){if(n){if(u=2,(a={meta:i,cancelledTasks:d}).crashedEffect=pu,hu.push(a),m.isRoot){var r=mu();gu(),e.onError(t,{sagaStack:r})}c=t,f&&f.reject(t)}else t===Vl?u=1:1!==u&&(u=3),l=t,f&&f.resolve(t);var a;m.cont(t,n),m.joiners.forEach((function(e){e.cb(t,n)})),m.joiners=null}var m=((s={})[Hl]=!0,s.id=r,s.meta=i,s.isRoot=a,s.context=p,s.joiners=[],s.queue=h,s.cancel=function(){0===u&&(u=1,h.cancelAll(),g(Vl,!1))},s.cont=o,s.end=g,s.setContext=function(e){fc(p,e)},s.toPromise=function(){return f||(f=Zc(),2===u?f.reject(c):0!==u&&f.resolve(l)),f.promise},s.isRunning=function(){return 0===u},s.isCancelled=function(){return 1===u||0===u&&1===t.status},s.isAborted=function(){return 2===u},s.result=function(){return l},s.error=function(){return c},s);return m}function vu(e,t,n,r,i,a,o){var s=e.finalizeRunEffect((function(t,n,r){if(tc(t))au(t,r);else if(nc(t))vu(e,t,c.context,n,i,!1,r);else if(t&&t[Fl]){(0,uu[t.type])(e,t.payload,r,u)}else r(t)}));f.cancel=cc;var l={meta:i,cancel:function(){0===l.status&&(l.status=1,f(Vl))},status:0},c=yu(e,l,n,r,i,a,o),u={task:c,digestEffect:d};return o&&(o.cancel=c.cancel),f(),c;function f(e,n){try{var i;n?(i=t.throw(e),gu()):xc(e)?(l.status=1,f.cancel(),i=Kl(t.return)?t.return(Vl):{done:!0,value:Vl}):i=Ic(e)?Kl(t.return)?t.return():{done:!0}:t.next(e),i.done?(1!==l.status&&(l.status=3),l.cont(i.value)):d(i.value,r,f)}catch(e){if(1===l.status)throw e;l.status=2,l.cont(e,!0)}}function d(t,n,r,i){void 0===i&&(i="");var a,o=lu();function l(n,i){a||(a=!0,r.cancel=cc,e.sagaMonitor&&(i?e.sagaMonitor.effectRejected(o,n):e.sagaMonitor.effectResolved(o,n)),i&&function(e){pu=e}(t),r(n,i))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:o,parentEffectId:n,label:i,effect:t}),l.cancel=cc,r.cancel=function(){a||(a=!0,l.cancel(),l.cancel=cc,e.sagaMonitor&&e.sagaMonitor.effectCancelled(o))},s(t,o,l)}}function bu(e,t){var n=e.channel,r=void 0===n?iu():n,i=e.dispatch,a=e.getState,o=e.context,s=void 0===o?{}:o,l=e.sagaMonitor,c=e.effectMiddlewares,u=e.onError,f=void 0===u?yc:u;for(var d=arguments.length,p=new Array(d>2?d-2:0),h=2;h<d;h++)p[h-2]=arguments[h];var g=t.apply(void 0,p);var m,y=lu();if(l&&(l.rootSagaStarted=l.rootSagaStarted||cc,l.effectTriggered=l.effectTriggered||cc,l.effectResolved=l.effectResolved||cc,l.effectRejected=l.effectRejected||cc,l.effectCancelled=l.effectCancelled||cc,l.actionDispatched=l.actionDispatched||cc,l.rootSagaStarted({effectId:y,saga:t,args:p})),c){var v=zl.apply(void 0,c);m=function(e){return function(t,n,r){return v((function(t){return e(t,n,r)}))(t)}}}else m=uc;var b={channel:r,dispatch:bc(i),getState:a,sagaMonitor:l,onError:f,finalizeRunEffect:m};return Wc((function(){var e=vu(b,g,s,y,Mc(t),!0,void 0);return l&&l.effectResolved(y,e),e}))}var Iu=function(e){var t,n=void 0===e?{}:e,r=n.context,i=void 0===r?{}:r,a=n.channel,o=void 0===a?iu():a,s=n.sagaMonitor,l=ci(n,["context","channel","sagaMonitor"]);function c(e){var n=e.getState,r=e.dispatch;return t=bu.bind(null,li({},l,{context:i,channel:o,dispatch:r,getState:n,sagaMonitor:s})),function(e){return function(t){s&&s.actionDispatched&&s.actionDispatched(t);var n=e(t);return o.put(t),n}}}return c.run=function(){return t.apply(void 0,arguments)},c.setContext=function(e){fc(i,e)},c},xu=function(e){return{done:!0,value:e}},wu={};function Tu(e){return ic(e)?"channel":ac(e)?String(e):Kl(e)?e.name:String(e)}function Mu(e,t,n){var r,i,a,o=t;function s(t,n){if(o===wu)return xu(t);if(n&&!i)throw o=wu,n;r&&r(t);var s=n?e[i](n):e[o]();return o=s.nextState,a=s.effect,r=s.stateUpdater,i=s.errorState,o===wu?xu(t):a}return mc(s,(function(e){return s(null,e)}),n)}function Au(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 a,o={done:!1,value:jc(e)},s=function(e){return{done:!1,value:Rc.apply(void 0,[t].concat(r,[e]))}},l=function(e){return a=e};return Mu({q1:function(){return{nextState:"q2",effect:o,stateUpdater:l}},q2:function(){return{nextState:"q1",effect:s(a)}}},"q1","takeEvery("+Tu(e)+", "+t.name+")")}function Cu(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 a,o,s={done:!1,value:jc(e)},l=function(e){return{done:!1,value:Rc.apply(void 0,[t].concat(r,[e]))}},c=function(e){return{done:!1,value:zc(e)}},u=function(e){return a=e},f=function(e){return o=e};return Mu({q1:function(){return{nextState:"q2",effect:s,stateUpdater:f}},q2:function(){return a?{nextState:"q3",effect:c(a)}:{nextState:"q1",effect:l(o),stateUpdater:u}},q3:function(){return{nextState:"q1",effect:l(o),stateUpdater:u}}},"q1","takeLatest("+Tu(e)+", "+t.name+")")}var Eu=function(e,t){return Kn(Tl(e,t),1)};function Nu(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),a=t.filter(e=>e.answerCount>0),o=null!==(r=n.attributes.maxAnswers)&&void 0!==r?r:1/0,s="section"===n.name?n.attributes.minAnswers:void 0,l="exam"===n.name?a.reduce((e,t)=>e+t.answerCount,0):a.length,c=Eu(t,e=>e.extraAnswers);return{answerCount:l,displayNumber:i,extraAnswers:l>o?[{type:n.name,displayNumber:i,childQuestions:t.map(e=>e.displayNumber),maxAnswers:o,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}const Su={answersById:{},examStructure:{name:"exam",attributes:{},childNodes:[]},focusedQuestionId:null,supportsAnswerHistory:!1,serverQuestionIds:new Set,savedQuestionIds:new Set,extraAnswers:[]};function ku(e,t){const n=new Set(e);return n.add(t),n}const ju=e=>Object(xo.action)("SAVE_ANSWER",e),Du=new Map;function*Ou(e,t){const n=e.payload;try{yield _c(1e3),yield Pc(t.saveAnswer,n),yield Dc((e=>Object(xo.action)("SAVE_ANSWER_SUCCEEDED",e))(n))}catch(e){yield Dc(((e,t)=>Object(xo.action)("SAVE_ANSWER_FAILED",{answer:e,error:t},void 0,!0))(n,e))}Du.delete(n.questionId)}function*Lu(e){for(;;){const t=yield jc("SAVE_ANSWER"),n=Du.get(t.payload.questionId);n&&(yield zc(n));const r=yield Rc(Ou,t,e);Du.set(t.payload.questionId,r)}}function*Pu(e){for(;e.selectAnswerVersion;){const t=yield jc("SELECT_ANSWER_VERSION"),{questionId:n,questionText:r}=t.payload;try{const t=yield Pc(e.selectAnswerVersion,n,r);t&&(yield Dc(ju(t)))}catch(e){console.error(e)}}}function*Ru(e){yield Rc(Lu,e),yield Rc(Pu,e)}var zu=function(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a<o;){var s=t[a],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?Zn(n,s,l):Gn(n,s,l)}return n};var _u=function(e,t){return e&&zu(t,oe(t),e)};var Uu=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},Zu=Object.prototype.hasOwnProperty;var Fu=function(e){if(!re(e))return Uu(e);var t=K(e),n=[];for(var r in e)("constructor"!=r||!t&&Zu.call(e,r))&&n.push(r);return n};var Gu=function(e){return ae(e)?J(e,!0):Fu(e)};var Bu=function(e,t){return e&&zu(t,Gu(t),e)},Yu=n(72);var Wu=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var Hu=function(e,t){return zu(e,qs(e),t)},Vu=$(Object.getPrototypeOf,Object),qu=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Qn(t,qs(e)),e=Vu(e);return t}:Ws;var Qu=function(e,t){return zu(e,qu(e),t)};var Ju=function(e){return Bs(e,Gu,qu)},Xu=Object.prototype.hasOwnProperty;var Ku=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Xu.call(e,"index")&&(n.index=e.index,n.input=e.input),n};var $u=function(e){var t=new e.constructor(e.byteLength);return new zs(t).set(new zs(e)),t};var ef=function(e,t){var n=t?$u(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},tf=/\w*$/;var nf=function(e){var t=new e.constructor(e.source,tf.exec(e));return t.lastIndex=e.lastIndex,t},rf=w?w.prototype:void 0,af=rf?rf.valueOf:void 0;var of=function(e){return af?Object(af.call(e)):{}};var sf=function(e,t){var n=t?$u(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var lf=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return $u(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return ef(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 sf(e,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return nf(e);case"[object Set]":return new r;case"[object Symbol]":return of(e)}},cf=Object.create,uf=function(){function e(){}return function(t){if(!re(t))return{};if(cf)return cf(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var ff=function(e){return"function"!=typeof e.constructor||K(e)?{}:uf(Vu(e))};var df=function(e){return D(e)&&"[object Map]"==ll(e)},pf=H.a&&H.a.isMap,hf=pf?W(pf):df;var gf=function(e){return D(e)&&"[object Set]"==ll(e)},mf=H.a&&H.a.isSet,yf=mf?W(mf):gf,vf={};vf["[object Arguments]"]=vf["[object Array]"]=vf["[object ArrayBuffer]"]=vf["[object DataView]"]=vf["[object Boolean]"]=vf["[object Date]"]=vf["[object Float32Array]"]=vf["[object Float64Array]"]=vf["[object Int8Array]"]=vf["[object Int16Array]"]=vf["[object Int32Array]"]=vf["[object Map]"]=vf["[object Number]"]=vf["[object Object]"]=vf["[object RegExp]"]=vf["[object Set]"]=vf["[object String]"]=vf["[object Symbol]"]=vf["[object Uint8Array]"]=vf["[object Uint8ClampedArray]"]=vf["[object Uint16Array]"]=vf["[object Uint32Array]"]=!0,vf["[object Error]"]=vf["[object Function]"]=vf["[object WeakMap]"]=!1;var bf=function e(t,n,r,i,a,o){var s,l=1&n,c=2&n,u=4&n;if(r&&(s=a?r(t,i,a,o):r(t)),void 0!==s)return s;if(!re(t))return t;var f=_(t);if(f){if(s=Ku(t),!l)return Wu(t,s)}else{var d=ll(t),p="[object Function]"==d||"[object GeneratorFunction]"==d;if(Object(U.a)(t))return Object(Yu.a)(t,l);if("[object Object]"==d||"[object Arguments]"==d||p&&!a){if(s=c||p?{}:ff(t),!l)return c?Qu(t,Bu(s,t)):Hu(t,_u(s,t))}else{if(!vf[d])return a?t:{};s=lf(t,d,l)}}o||(o=new Ss);var h=o.get(t);if(h)return h;o.set(t,s),yf(t)?t.forEach((function(i){s.add(e(i,n,r,i,t,o))})):hf(t)&&t.forEach((function(i,a){s.set(a,e(i,n,r,a,t,o))}));var g=f?void 0:(u?c?Ju:Qs:c?Gu:oe)(t);return v(g||t,(function(i,a){g&&(i=t[a=i]),Gn(s,a,e(i,n,r,a,t,o))})),s};var If=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 a=Array(i);++r<i;)a[r]=e[r+t];return a};var xf=function(e,t){return t.length<2?e:_n(e,If(t,0,-1))};var wf=function(e,t){return t=Rn(t,e),null==(e=xf(e,t))||delete e[zn(bt(t))]},Tf=Function.prototype,Mf=Object.prototype,Af=Tf.toString,Cf=Mf.hasOwnProperty,Ef=Af.call(Object);var Nf=function(e){if(!D(e)||"[object Object]"!=j(e))return!1;var t=Vu(e);if(null===t)return!0;var n=Cf.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Af.call(n)==Ef};var Sf=function(e){return Nf(e)?void 0:e},kf=lr((function(e,t){var n={};if(null==e)return n;var r=!1;t=jn(t,(function(t){return t=Rn(t,e),r||(r=t.length>1),t})),zu(e,Ju(e),n),r&&(n=bf(n,7,Sf));for(var i=t.length;i--;)wf(n,t[i]);return n}));const jf={errors:{},nowPlaying:null,playbackTimes:{}};const Df=e=>function(e,t){void 0===t&&(t=Nc());var n,r=!1,i=ru(t),a=function(){r||(r=!0,Kl(n)&&n(),i.close())};return n=pc(n=e((function(e){nu(e)?a():i.put(e)}))),r&&n(),{take:i.take,flush:i.flush,close:a}}(t=>{const n=setInterval(()=>{--e>0?t(e):(t(tu),clearInterval(n))},1e3);return()=>clearInterval(n)});function*Of(e,t){const n=yield Pc(Df,e);try{for(;;){const e=yield jc(n);yield Dc(t(e))}}finally{(yield kc("CANCELLED",{}))&&n.close()}}function*Lf(e,t){const n=t.payload;try{const t=null!=n.restrictedAudioId?yield function(e){void 0===e&&(e=uc);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return kc("SELECT",{selector:e,args:n})}(ea(n.restrictedAudioId)):void 0,r=null!=t&&null!=n.restrictedAudioId?yield Pc(e.playRestrictedAudio,n.src,n.restrictedAudioId,t):yield Pc(e.playAudio,n.src);"ok"===r?(yield Dc((e=>Object(xo.action)("PLAY_AUDIO_STARTED",e))(n)),yield Pc(Of,n.duration,To),yield Dc(Object(xo.action)("PLAY_AUDIO_FINISHED"))):(yield Dc(((e,t)=>Object(xo.action)("SHOW_AUDIO_ERROR",{audio:e,error:t}))(n,r)),yield _c(5e3),yield Dc((e=>Object(xo.action)("HIDE_AUDIO_ERROR",e))(n)))}catch(e){console.error(e)}}function*Pf(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 Rc.apply(void 0,[Au,e,t].concat(r))}("PLAY_AUDIO",Lf,e)}const Rf={casStatus:"forbidden"};const{createAction:zf}=xo.deprecated,_f=zf("ALLOW_CAS_SUCCEEDED"),Uf=zf("ALLOW_CAS_CANCELLED"),Zf=e=>Object(xo.action)("UPDATE_CAS_REMAINING",e);function*Ff(e,{payload:t}){try{if("allowed"===(yield Pc(e.setCasStatus,"allowing")))return void(yield Dc(_f()));yield Dc((n=t,Object(xo.action)("ALLOW_CAS_COUNTDOWN",n)));const{cancelled:r}=yield Oc({finished:Pc(Of,t,Zf),cancelled:jc("ALLOW_CAS_CANCELLED")});"allowed"===(yield Pc(e.setCasStatus,r?"forbidden":"allowed"))?yield Dc(_f()):r||(yield Dc(Uf()))}catch(e){console.error(e)}var n}function*Gf(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 Rc.apply(void 0,[Cu,e,t].concat(r))}("ALLOW_CAS",Ff,e)}const Bf=function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"==typeof e[i]&&(n[i]=e[i])}var a,o=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:kl.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:kl.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+kl.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){a=e}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var r=!1,i={},s=0;s<o.length;s++){var l=o[s],c=n[l],u=e[l],f=c(u,t);if(void 0===f){var d=Ol(l,t);throw new Error(d)}i[l]=f,r=r||f!==u}return(r=r||o.length!==Object.keys(e).length)?i:e}}({answers:function(e=Su,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":return e;case"SAVE_ANSWER_SUCCEEDED":{const{questionId:n}=t.payload,r=ku(e.savedQuestionIds,n),i=ku(e.serverQuestionIds,n),a=Nu(e.examStructure,e.answersById);return{...e,serverQuestionIds:i,savedQuestionIds:r,extraAnswers:a}}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}}default:return e}},audio:function(e=jf,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=kf(e.errors,[n.src]);return{...e,playbackTimes:r,errors:i}}return e}case"SHOW_AUDIO_ERROR":{const{audio:n,error:r}=t.payload,i=Xi(n,"restrictedAudioId",n.src),a={...e.errors,[i]:r};return{...e,errors:a,nowPlaying:null}}case"HIDE_AUDIO_ERROR":{const n=t.payload,r=Xi(n,"restrictedAudioId",n.src),i=kf(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=Rf,t){switch(t.type){case"ALLOW_CAS":return e;case"ALLOW_CAS_COUNTDOWN":return{casStatus:"allowing",durationRemaining:t.payload};case"ALLOW_CAS_SUCCEEDED":return{casStatus:"allowed"};case"ALLOW_CAS_CANCELLED":return{casStatus:"forbidden"};case"UPDATE_CAS_REMAINING":return{casStatus:"allowing",durationRemaining:t.payload};default:return e}}});function*Yf(e){yield Rc(Ru,e),yield Rc(Pf,e),yield Rc(Gf,e)}function Wf(e,t,n,r,i){const a=new Set(Tl(n,"questionId")),o=Ml(El(r,"restrictedAudioId"),"times"),s=El(n,"questionId"),l={answers:{answersById:s,focusedQuestionId:null,serverQuestionIds:a,supportsAnswerHistory:"function"==typeof i.selectAnswerVersion,savedQuestionIds:a,examStructure:e,extraAnswers:Nu(e,s)},audio:{errors:{},nowPlaying:null,playbackTimes:o},cas:{casStatus:t}},c=Iu(),u=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||zl,f=Dl(Bf,l,u(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=t.map((function(e){return e(i)}));return Rl({},n,{dispatch:r=zl.apply(void 0,a)(n.dispatch)})}}}(c)));return c.run(Yf,i),f}var Hf=i.a.memo((function({element:e,className:t,renderChildNodes:n}){return i.a.createElement("div",{className:Kr()("e-audio-group",t)},i.a.createElement("div",{className:"e-audio-group--separator e-font-size-xl e-mrg-y-4 e-color-link",role:"separator"},"✲✲✲"),n(e))}));var Vf=i.a.memo((function({element:e}){const t=e.getAttribute("src"),n=be(e,"duration"),{t:r}=Tr(),a=Qi(Ki(t)),o=Qi($i(t)),s=Wi();return i.a.createElement("div",{className:"e-audio-test notification e-pad-2 e-mrg-b-4"},i.a.createElement("p",null,r("audio-test.instructions")),i.a.createElement("div",{className:"e-columns e-columns--center-v e-mrg-b-2"},i.a.createElement("div",{className:"e-column e-column--narrow"},i.a.createElement("button",{className:"e-button",disabled:"stopped"!==a,onClick:()=>"stopped"===a&&s(wo({src:t,duration:n}))},i.a.createElement(wa,{className:"e-mrg-r-1",icon:ca,fixedWidth:!0}),r("audio-test.play"))),i.a.createElement("div",{className:"e-column"},i.a.createElement(Io,{error:o}," "))),i.a.createElement("div",null,r("audio-test.volume")))}));var qf=i.a.memo((function({answer:e,element:t,error:n,selectAnswerVersion:r,showAnswerHistory:a=!1,supportsAnswerHistory:o=!1}){const{t:s}=Tr();return i.a.createElement("div",{className:"answer-toolbar e-font-size-xs e-color-darkgrey e-columns e-mrg-b-2"},i.a.createElement("div",{className:"answer-toolbar__answer-length e-column e-column--narrow"},!e||"text"!==e.type&&"richText"!==e.type?" ":s("answer-length",{count:e.characterCount})),i.a.createElement("div",{className:"answer-toolbar__errors e-column e-column--auto e-text-center"},n&&i.a.createElement("span",{role:"alert"},s("answer-errors."+n.key,n.options))),i.a.createElement("div",{className:"answer-toolbar__history e-column e-column--narrow e-text-right"},o&&i.a.createElement("div",{className:"answer-toolbar__select-previous-version"},a&&null!=e?i.a.createElement("button",{className:"answer-toolbar__previous-versions e-link-button e-font-size-xs",onClick:()=>{if(r){const n=ye(me(t,"question"),"question-title");r(e.questionId,n.textContent)}}},s("previous-answer-versions")):" ")))}));function Qf({selected:e,element:t,renderChildNodes:n,questionId:r,onSelect:a,direction:o,value:s}){const l=t.getAttribute("class"),c=i.a.createElement("div",{className:Kr()("e-choice-answer-option e-column",l,{"e-choice-answer-option--selected":e})},n(t));return"vertical"===o?i.a.createElement("div",{className:"e-mrg-b-1"},i.a.createElement("label",{className:Kr()("e-columns",{"e-columns--inline":null==he(t,["image","video"])})},i.a.createElement("input",{type:"radio",className:"e-radio-button e-column e-column--narrow",name:String(r),onChange:a,value:s,checked:e}),c)):i.a.createElement("div",{className:"e-column e-mrg-b-1"},i.a.createElement("label",{className:"e-block e-text-center"},i.a.createElement("input",{type:"radio",className:"e-radio-button",name:String(r),onChange:a,value:s,checked:e}),c))}var Jf=Zi((function(e,{element:t}){const n=be(t,"question-id");return{answer:e.answers.answersById[n]}}),{saveAnswer:ju})((function({answer:e,saveAnswer:t,element:n,renderChildNodes:r}){const a=be(n,"question-id"),o=n.getAttribute("direction")||"vertical",s=n.getAttribute("class"),l=n.getAttribute("display-number"),c=e=>{t({type:"choice",questionId:a,value:e.currentTarget.value,displayNumber:l})};return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:Kr()("e-choice-answer",s,{"e-columns":"horizontal"===o}),"data-question-id":a},xe(n,t=>{const n=t.getAttribute("option-id"),s="no-answer"===t.getAttribute("type")?"":n,l=null!=e&&e.value===s;return i.a.createElement(Qf,{element:t,onSelect:c,renderChildNodes:r,questionId:a,key:n,direction:o,selected:l,value:s})})),i.a.createElement(qf,{answer:e,element:n}))}));n(38);function Xf(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function Kf(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function $f(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return Kf(n.overflowY,t)||Kf(n.overflowX,t)||function(e){var t=function(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}function ed(e,t,n,r,i,a,o,s){return a<e&&o>t||a>e&&o<t?0:a<=e&&s<=n||o>=t&&s>=n?a-e-r:o>t&&s<n||a<e&&s>n?o-t+i:0}var td=function(){return(td=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}).apply(this,arguments)};Object.create;Object.create;var nd=0;function rd(){}function id(e,t){e&&function(e,t){var n=window,r=t.scrollMode,i=t.block,a=t.inline,o=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof o?o:function(e){return e!==o};if(!Xf(e))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,u=[],f=e;Xf(f)&&l(f);){if((f=f.parentElement)===c){u.push(f);break}null!=f&&f===document.body&&$f(f)&&!$f(document.documentElement)||null!=f&&$f(f,s)&&u.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,m=e.getBoundingClientRect(),y=m.height,v=m.width,b=m.top,I=m.right,x=m.bottom,w=m.left,T="start"===i||"nearest"===i?b:"end"===i?x:b+y/2,M="center"===a?w+v/2:"end"===a?I:w,A=[],C=0;C<u.length;C++){var E=u[C],N=E.getBoundingClientRect(),S=N.height,k=N.width,j=N.top,D=N.right,O=N.bottom,L=N.left;if("if-needed"===r&&b>=0&&w>=0&&x<=p&&I<=d&&b>=j&&x<=O&&w>=L&&I<=D)return A;var P=getComputedStyle(E),R=parseInt(P.borderLeftWidth,10),z=parseInt(P.borderTopWidth,10),_=parseInt(P.borderRightWidth,10),U=parseInt(P.borderBottomWidth,10),Z=0,F=0,G="offsetWidth"in E?E.offsetWidth-E.clientWidth-R-_:0,B="offsetHeight"in E?E.offsetHeight-E.clientHeight-z-U:0;if(c===E)Z="start"===i?T:"end"===i?T-p:"nearest"===i?ed(g,g+p,p,z,U,g+T,g+T+y,y):T-p/2,F="start"===a?M:"center"===a?M-d/2:"end"===a?M-d:ed(h,h+d,d,R,_,h+M,h+M+v,v),Z=Math.max(0,Z+g),F=Math.max(0,F+h);else{Z="start"===i?T-j-z:"end"===i?T-O+U+B:"nearest"===i?ed(j,O,S,z,U+B,T,T+y,y):T-(j+S/2)+B/2,F="start"===a?M-L-R:"center"===a?M-(L+k/2)+G/2:"end"===a?M-D+_+G:ed(L,D,k,R,_+G,M,M+v,v);var Y=E.scrollLeft,W=E.scrollTop;T+=W-(Z=Math.max(0,Math.min(W+Z,E.scrollHeight-S+B))),M+=Y-(F=Math.max(0,Math.min(Y+F,E.scrollWidth-k+G)))}A.push({el:E,top:Z,left:F})}return A}(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}))}function ad(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function od(e,t){var n;function r(){n&&clearTimeout(n)}function i(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];r(),n=setTimeout((function(){n=null,e.apply(void 0,a)}),t)}return i.cancel=r,i}function sd(){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 ld(){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 cd(){return String(nd++)}function ud(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function fd(e,t){return Object.keys(e).reduce((function(n,r){return n[r]=dd(t,r)?t[r]:e[r],n}),{})}function dd(e,t){return void 0!==e[t]}function pd(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function hd(e,t,n,r,i){if(void 0===i&&(i=!0),0===n)return-1;var a=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:a+1);var o=t+e;o<0?o=i?a:0:o>a&&(o=i?0:a);var s=gd(e,o,n,r,i);return-1===s?t>=n?-1:t:s}function gd(e,t,n,r,i){var a=r(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(var o=t+1;o<n;o++)if(!r(o).hasAttribute("disabled"))return o}else for(var s=t-1;s>=0;s--)if(!r(s).hasAttribute("disabled"))return s;return i?e>0?gd(1,0,n,r,!1):gd(-1,n-1,n,r,!1):-1}function md(e,t,n,r){return void 0===r&&(r=!0),t.some((function(t){return t&&(ad(t,e,n)||r&&ad(t,n.document.activeElement,n))}))}var yd=od((function(e){bd(e).textContent=""}),500);function vd(e,t){var n=bd(t);e&&(n.textContent=e,yd(t))}function bd(e){void 0===e&&(e=document);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 Id=["isInitialMount","highlightedIndex","items","environment"],xd={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function wd(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach((function(r){!function(e,t,n,r){var i=t.props,a=t.type,o="on"+Nd(e)+"Change";i[o]&&void 0!==r[e]&&r[e]!==n[e]&&i[o](li({type:a},r))}(r,e,t,n),n[r]!==t[r]&&(a[r]=n[r])})),r.onStateChange&&Object.keys(a).length&&r.onStateChange(li({type:i},a))}var Td=od((function(e,t){vd(e(),t)}),200),Md="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;function Ad(e){var t=e.id,n=void 0===t?"downshift-"+cd():t,i=e.labelId,a=e.menuId,o=e.getItemId,s=e.toggleButtonId,l=e.inputId;return Object(r.useRef)({labelId:i||n+"-label",menuId:a||n+"-menu",getItemId:o||function(e){return n+"-item-"+e},toggleButtonId:s||n+"-toggle-button",inputId:l||n+"-input"}).current}function Cd(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function Ed(e){return/^\S{1}$/.test(e)}function Nd(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Sd(e){var t=Object(r.useRef)(e);return t.current=e,t}function kd(e,t,n){var i=Object(r.useRef)(),a=Object(r.useRef)(),o=Object(r.useCallback)((function(t,n){a.current=n,t=fd(t,n.props);var r=e(t,n);return n.props.stateReducer(t,li({},n,{changes:r}))}),[e]),s=Object(r.useReducer)(o,t),l=s[0],c=s[1],u=Sd(n),f=Object(r.useCallback)((function(e){return c(li({props:u.current},e))}),[u]),d=a.current;return Object(r.useEffect)((function(){d&&i.current&&i.current!==l&&wd(d,fd(i.current,d.props),l),i.current=l}),[l,n,d]),[l,f]}function jd(e,t,n){var r=kd(e,t,n),i=r[0],a=r[1];return[fd(i,n),a]}var Dd={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""},scrollIntoView:id,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function Od(e,t,n){void 0===n&&(n=xd);var r="default"+Nd(t);return r in e?e[r]:n[t]}function Ld(e,t,n){if(void 0===n&&(n=xd),t in e)return e[t];var r="initial"+Nd(t);return r in e?e[r]:Od(e,t,n)}function Pd(e){var t=Ld(e,"selectedItem"),n=Ld(e,"isOpen"),r=Ld(e,"highlightedIndex"),i=Ld(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}function Rd(e,t,n,r){var i=e.items,a=e.initialHighlightedIndex,o=e.defaultHighlightedIndex,s=t.selectedItem,l=t.highlightedIndex;return 0===i.length?-1:void 0!==a&&l===a?a:void 0!==o?o:s?0===n?i.indexOf(s):hd(n,i.indexOf(s),i.length,r,!1):0===n?-1:n<0?i.length-1:0}function zd(e,t,n,i){var a=Object(r.useRef)({isMouseDown:!1,isTouchMove:!1});return Object(r.useEffect)((function(){var r=function(){a.current.isMouseDown=!0},o=function(r){a.current.isMouseDown=!1,e&&!md(r.target,t.map((function(e){return e.current})),n)&&i()},s=function(){a.current.isTouchMove=!1},l=function(){a.current.isTouchMove=!0},c=function(r){!e||a.current.isTouchMove||md(r.target,t.map((function(e){return e.current})),n,!1)||i()};return n.addEventListener("mousedown",r),n.addEventListener("mouseup",o),n.addEventListener("touchstart",s),n.addEventListener("touchmove",l),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",r),n.removeEventListener("mouseup",o),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",l),n.removeEventListener("touchend",c)}}),[e,n]),a}var _d=function(){return rd};function Ud(e,t,n){var i=n.isInitialMount,a=n.highlightedIndex,o=n.items,s=n.environment,l=ci(n,Id);Object(r.useEffect)((function(){i||Td((function(){return e(li({highlightedIndex:a,highlightedItem:o[a],resultCount:o.length},l))}),s.document)}),t)}function Zd(e){var t=e.highlightedIndex,n=e.isOpen,i=e.itemRefs,a=e.getItemNodeFromIndex,o=e.menuElement,s=e.scrollIntoView,l=Object(r.useRef)(!0);return Md((function(){t<0||!n||!Object.keys(i.current).length||(!1===l.current?l.current=!0:s(a(t),o))}),[t]),l}var Fd=rd;function Gd(e,t,n){var r,i=t.type,a=t.props;switch(i){case n.ItemMouseMove:r={highlightedIndex:t.index};break;case n.MenuMouseLeave:r={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Rd(a,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:Rd(a,e,0)};break;case n.FunctionCloseMenu:r={isOpen:!1};break;case n.FunctionSetHighlightedIndex:r={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:r={inputValue:t.inputValue};break;case n.FunctionReset:r={highlightedIndex:Od(a,"highlightedIndex"),isOpen:Od(a,"isOpen"),selectedItem:Od(a,"selectedItem"),inputValue:Od(a,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return li({},e,r)}function Bd(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,i=e.itemToString,a=e.getItemNodeFromIndex,o=t.toLowerCase(),s=0;s<r.length;s++){var l=(s+n+1)%r.length,c=r[l];if(void 0!==c&&i(c).toLowerCase().startsWith(o)){var u=a(l);if(!(null==u?void 0:u.hasAttribute("disabled")))return l}}return n}ei.a.array.isRequired,ei.a.func,ei.a.func,ei.a.func,ei.a.bool,ei.a.number,ei.a.number,ei.a.number,ei.a.bool,ei.a.bool,ei.a.bool,ei.a.any,ei.a.any,ei.a.any,ei.a.string,ei.a.string,ei.a.string,ei.a.func,ei.a.string,ei.a.func,ei.a.func,ei.a.func,ei.a.func,ei.a.func,ei.a.shape({addEventListener:ei.a.func,removeEventListener:ei.a.func,document:ei.a.shape({getElementById:ei.a.func,activeElement:ei.a.any,body:ei.a.any})});var Yd=td(td({},Dd),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.":"":"No results are available.":""}}),Wd=rd;var Hd=Object.freeze({__proto__:null,MenuKeyDownArrowDown:0,MenuKeyDownArrowUp:1,MenuKeyDownEscape:2,MenuKeyDownHome:3,MenuKeyDownEnd:4,MenuKeyDownEnter:5,MenuKeyDownSpaceButton:6,MenuKeyDownCharacter:7,MenuBlur:8,MenuMouseLeave:9,ItemMouseMove:10,ItemClick:11,ToggleButtonClick:12,ToggleButtonKeyDownArrowDown:13,ToggleButtonKeyDownArrowUp:14,ToggleButtonKeyDownCharacter:15,FunctionToggleMenu:16,FunctionOpenMenu:17,FunctionCloseMenu:18,FunctionSetHighlightedIndex:19,FunctionSelectItem:20,FunctionSetInputValue:21,FunctionReset:22});function Vd(e,t){var n,r=t.type,i=t.props,a=t.shiftKey;switch(r){case 11:n={isOpen:Od(i,"isOpen"),highlightedIndex:Od(i,"highlightedIndex"),selectedItem:i.items[t.index]};break;case 15:var o=t.key,s=""+e.inputValue+o,l=Bd({keysSoFar:s,highlightedIndex:e.selectedItem?i.items.indexOf(e.selectedItem):-1,items:i.items,itemToString:i.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});n=li({inputValue:s},l>=0&&{selectedItem:i.items[l]});break;case 13:n={highlightedIndex:Rd(i,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case 14:n={highlightedIndex:Rd(i,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case 5:case 6:n=li({isOpen:Od(i,"isOpen"),highlightedIndex:Od(i,"highlightedIndex")},e.highlightedIndex>=0&&{selectedItem:i.items[e.highlightedIndex]});break;case 3:n={highlightedIndex:gd(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:gd(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case 2:case 8:n={isOpen:!1,highlightedIndex:-1};break;case 7:var c=t.key,u=""+e.inputValue+c,f=Bd({keysSoFar:u,highlightedIndex:e.highlightedIndex,items:i.items,itemToString:i.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});n=li({inputValue:u},f>=0&&{highlightedIndex:f});break;case 0:n={highlightedIndex:hd(a?5:1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case 1:n={highlightedIndex:hd(a?-5:-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case 20:n={selectedItem:t.selectedItem};break;default:return Gd(e,t,Hd)}return li({},e,n)}var qd=["onMouseLeave","refKey","onKeyDown","onBlur","ref"],Qd=["onClick","onKeyDown","refKey","ref"],Jd=["item","index","onMouseMove","onClick","refKey","ref"];function Xd(e){void 0===e&&(e={}),Wd(e,Xd);var t=li({},Yd,e),n=t.items,i=t.scrollIntoView,a=t.environment,o=t.initialIsOpen,s=t.defaultIsOpen,l=t.itemToString,c=t.getA11ySelectionMessage,u=t.getA11yStatusMessage,f=jd(Vd,Pd(t),t),d=f[0],p=f[1],h=d.isOpen,g=d.highlightedIndex,m=d.selectedItem,y=d.inputValue,v=Object(r.useRef)(null),b=Object(r.useRef)(null),I=Object(r.useRef)({}),x=Object(r.useRef)(!0),w=Object(r.useRef)(null),T=Ad(t),M=Object(r.useRef)(),A=Object(r.useRef)(!0),C=Sd({state:d,props:t}),E=Object(r.useCallback)((function(e){return I.current[T.getItemId(e)]}),[T]);Ud(u,[h,g,y,n],li({isInitialMount:A.current,previousResultCount:M.current,items:n,environment:a,itemToString:l},d)),Ud(c,[m],li({isInitialMount:A.current,previousResultCount:M.current,items:n,environment:a,itemToString:l},d));var N=Zd({menuElement:b.current,highlightedIndex:g,isOpen:h,itemRefs:I,scrollIntoView:i,getItemNodeFromIndex:E});Object(r.useEffect)((function(){return w.current=od((function(e){e({type:21,inputValue:""})}),500),function(){w.current.cancel()}}),[]),Object(r.useEffect)((function(){y&&w.current(p)}),[p,y]),Fd({isInitialMount:A.current,props:t,state:d}),Object(r.useEffect)((function(){A.current?(o||s||h)&&b.current&&b.current.focus():h?b.current&&b.current.focus():a.document.activeElement===b.current&&v.current&&(x.current=!1,v.current.focus())}),[h]),Object(r.useEffect)((function(){A.current||(M.current=n.length)}));var S=zd(h,[b,v],a,(function(){p({type:8})})),k=_d();Object(r.useEffect)((function(){A.current=!1}),[]),Object(r.useEffect)((function(){h||(I.current={})}),[h]);var j=Object(r.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),p({type:13,getItemNodeFromIndex:E,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),p({type:14,getItemNodeFromIndex:E,shiftKey:e.shiftKey})}}}),[p,E]),D=Object(r.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),p({type:0,getItemNodeFromIndex:E,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),p({type:1,getItemNodeFromIndex:E,shiftKey:e.shiftKey})},Home:function(e){e.preventDefault(),p({type:3,getItemNodeFromIndex:E})},End:function(e){e.preventDefault(),p({type:4,getItemNodeFromIndex:E})},Escape:function(){p({type:2})},Enter:function(e){e.preventDefault(),p({type:5})}," ":function(e){e.preventDefault(),p({type:6})}}}),[p,E]),O=Object(r.useCallback)((function(){p({type:16})}),[p]),L=Object(r.useCallback)((function(){p({type:18})}),[p]),P=Object(r.useCallback)((function(){p({type:17})}),[p]),R=Object(r.useCallback)((function(e){p({type:19,highlightedIndex:e})}),[p]),z=Object(r.useCallback)((function(e){p({type:20,selectedItem:e})}),[p]),_=Object(r.useCallback)((function(){p({type:22})}),[p]),U=Object(r.useCallback)((function(e){p({type:21,inputValue:e})}),[p]),Z=Object(r.useCallback)((function(e){return li({id:T.labelId,htmlFor:T.toggleButtonId},e)}),[T]),F=Object(r.useCallback)((function(e,t){var n,r=void 0===e?{}:e,i=r.onMouseLeave,a=r.refKey,o=void 0===a?"ref":a,s=r.onKeyDown,l=r.onBlur,c=r.ref,u=ci(r,qd),f=(void 0===t?{}:t).suppressRefError,d=void 0!==f&&f,h=C.current.state;return k("getMenuProps",d,o,b),li(((n={})[o]=ld(c,(function(e){b.current=e})),n.id=T.menuId,n.role="listbox",n["aria-labelledby"]=T.labelId,n.tabIndex=-1,n),h.isOpen&&h.highlightedIndex>-1&&{"aria-activedescendant":T.getItemId(h.highlightedIndex)},{onMouseLeave:sd(i,(function(){p({type:9})})),onKeyDown:sd(s,(function(e){var t=pd(e);t&&D[t]?D[t](e):Ed(t)&&p({type:7,key:t,getItemNodeFromIndex:E})})),onBlur:sd(l,(function(){!1!==x.current?!S.current.isMouseDown&&p({type:8}):x.current=!0}))},u)}),[p,C,D,S,k,T,E]);return{getToggleButtonProps:Object(r.useCallback)((function(e,t){var n,r=void 0===e?{}:e,i=r.onClick,a=r.onKeyDown,o=r.refKey,s=void 0===o?"ref":o,l=r.ref,c=ci(r,Qd),u=(void 0===t?{}:t).suppressRefError,f=void 0!==u&&u,d=li(((n={})[s]=ld(l,(function(e){v.current=e})),n.id=T.toggleButtonId,n["aria-haspopup"]="listbox",n["aria-expanded"]=C.current.state.isOpen,n["aria-labelledby"]=T.labelId+" "+T.toggleButtonId,n),c);return c.disabled||(d.onClick=sd(i,(function(){p({type:12})})),d.onKeyDown=sd(a,(function(e){var t=pd(e);t&&j[t]?j[t](e):Ed(t)&&p({type:15,key:t,getItemNodeFromIndex:E})}))),k("getToggleButtonProps",f,s,v),d}),[p,C,j,k,T,E]),getLabelProps:Z,getMenuProps:F,getItemProps:Object(r.useCallback)((function(e){var t,n=void 0===e?{}:e,r=n.item,i=n.index,a=n.onMouseMove,o=n.onClick,s=n.refKey,l=void 0===s?"ref":s,c=n.ref,u=ci(n,Jd),f=C.current,d=f.state,h=f.props,g=Cd(i,r,h.items);if(g<0)throw new Error("Pass either item or item index in getItemProps!");var m=li(((t={role:"option","aria-selected":""+(g===d.highlightedIndex),id:T.getItemId(g)})[l]=ld(c,(function(e){e&&(I.current[T.getItemId(g)]=e)})),t),u);return u.disabled||(m.onMouseMove=sd(a,(function(){i!==d.highlightedIndex&&(N.current=!1,p({type:10,index:i}))})),m.onClick=sd(o,(function(){p({type:11,index:i})}))),m}),[p,C,N,T]),toggleMenu:O,openMenu:P,closeMenu:L,setHighlightedIndex:R,selectItem:z,reset:_,setInputValue:U,highlightedIndex:g,isOpen:h,selectedItem:m,inputValue:y}}Xd.stateChangeTypes=Hd;ei.a.array.isRequired,ei.a.func,ei.a.func,ei.a.func,ei.a.bool,ei.a.number,ei.a.number,ei.a.number,ei.a.bool,ei.a.bool,ei.a.bool,ei.a.any,ei.a.any,ei.a.any,ei.a.string,ei.a.string,ei.a.string,ei.a.string,ei.a.string,ei.a.string,ei.a.func,ei.a.string,ei.a.string,ei.a.func,ei.a.func,ei.a.func,ei.a.func,ei.a.func,ei.a.func,ei.a.shape({addEventListener:ei.a.func,removeEventListener:ei.a.func,document:ei.a.shape({getElementById:ei.a.func,activeElement:ei.a.any,body:ei.a.any})});li({},Dd,{getA11yStatusMessage:ud,circularNavigation:!0});ei.a.array,ei.a.array,ei.a.array,ei.a.func,ei.a.func,ei.a.func,ei.a.number,ei.a.number,ei.a.number,ei.a.func,ei.a.func,ei.a.string,ei.a.string,ei.a.shape({addEventListener:ei.a.func,removeEventListener:ei.a.func,document:ei.a.shape({getElementById:ei.a.func,activeElement:ei.a.any,body:ei.a.any})});var Kd=function(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],o=t(a);if(null!=o&&(void 0===s?o==o&&!kt(o):n(o,s)))var s=o,l=a}return l};var $d=function(e,t){return e>t};var ep=function(e){return e&&e.length?Kd(e,ce,$d):void 0},tp=n(23),np=n.n(tp);const rp=Promise.all([new np.a("Noto Sans",{weight:300}).load(),new np.a("Noto Sans",{weight:400}).load(),new np.a("Noto Sans",{weight:600}).load()]).then(()=>{ip=!0}).catch(It);let ip=!1;const ap=({id:e,size:t="small",score:n})=>{const{t:r}=Tr(),a="inline"===t?"sup":"span";return i.a.createElement(a,{className:Kr()("e-score e-nowrap",{"e-score--small e-font-size-m e-semibold":"small"===t,"e-score--large e-font-size-l e-semibold":"large"===t,"e-score--inline e-font-size-xs":"inline"===t}),id:e},r("points",{count:n}))},op=!navigator.userAgent.includes("jsdom/");var sp=Zi((function(e,{element:t}){const n=be(t,"question-id");return{answer:e.answers.answersById[n]}}),{saveAnswer:ju})((function({element:e,renderChildNodes:t,saveAnswer:n,answer:a}){const o=be(e,"question-id"),s=be(e,"max-score"),l=e.getAttribute("display-number"),c=a&&a.value&&ye(e,e=>a.value===e.getAttribute("option-id")),u=Object(r.useRef)(null),f=i.a.useRef(null),[d,p]=Object(r.useState)(!0);if(op){const[,t]=Object(r.useState)(ip);rp.then(()=>t(!0)).catch(e=>console.error(e)),Object(r.useEffect)(()=>p(!0),[e]),Object(r.useEffect)(()=>{if(d&&f.current&&u.current){const e=f.current,t=u.current,n=ep(xe(e,e=>e.firstElementChild.scrollWidth)),r=requestAnimationFrame(()=>{t.style.width=n+2+1+"px",p(!1)});return()=>cancelAnimationFrame(r)}})}const h=["",...e.children],{answers:g}=Object(r.useContext)(is),{getItemProps:m,getMenuProps:y,getToggleButtonProps:v,highlightedIndex:b,isOpen:I,selectedItem:x}=Xd({items:h,itemToString:e=>e?e.textContent:"",onSelectedItemChange:({selectedItem:e})=>{const t=e?e.getAttribute("option-id"):"";n({type:"choice",questionId:o,value:t,displayNumber:l})},initialSelectedItem:c}),{t:w}=Tr(),T=Or(e);return i.a.createElement("span",{className:"e-nowrap"},i.a.createElement("span",{className:Kr()("e-dropdown-answer e-normal"),"data-question-id":o},i.a.createElement("button",{className:Kr()("e-dropdown-answer__toggle-button e-button-plain e-columns",{"e-dropdown-answer__toggle-button--open":I}),...v({"aria-describedby":T,"aria-labelledby":void 0},{suppressRefError:!op})},i.a.createElement("span",{className:"e-dropdown-answer__label e-column e-pad-l-1 e-pad-r-4"},i.a.createElement("span",{className:"e-ellipsis e-block",ref:u},x?t(x):i.a.createElement("span",{"aria-label":w.raw("dropdown-answer.label")}," "))),i.a.createElement("span",{className:Kr()("e-dropdown-answer__toggle-icon e-text-center e-column e-column--narrow e-column--gapless e-color-link")},i.a.createElement(wa,{icon:I?ia:ra}))),i.a.createElement("span",{...y({className:Kr()("e-dropdown-answer__menu",{"e-dropdown-answer__menu--open":I}),"aria-labelledby":void 0,ref:f},{suppressRefError:!op})},h.map((e,n)=>i.a.createElement("span",{className:Kr()("e-dropdown-answer__menu-item e-block e-pad-l-1 e-pad-r-4",{"e-dropdown-answer__menu-item--selected":e===x,"e-bg-color-off-white":b!==n,"e-bg-color-link e-color-off-white":b===n}),key:n,...m({item:e,index:n})},i.a.createElement("span",{className:Kr()("e-dropdown-answer__menu-item-inner e-block",{"e-nowrap":d})},e?t(e):i.a.createElement("span",{"aria-label":w.raw("dropdown-answer.clear")}," ")))))),g.length>1&&i.a.createElement(ap,{score:s,size:"inline",id:T}))}));var lp=function(e){return"string"==typeof e||!_(e)&&D(e)&&"[object String]"==j(e)};var cp=i.a.memo((function({maxAnswers:e,minAnswers:t,type:n,childQuestions:r}){const a=r.map(e=>lp(e)?e:e.getAttribute("display-number")),{t:o}=Tr(),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}([a.length,"*"],[e,"*"],[null!=t?t:e,"*"]).map(([e,t,r])=>`answering-instructions.${n}_${e}_${r}_${t}`),l=[t,e],c=[vt(a),bt(a)];return i.a.createElement(i.a.Fragment,null,o(s,{answerCount:l,questions:c}))}));const up=({type:e,displayNumber:t})=>{if("section"===e){const{root:e}=Object(r.useContext)(Br),n=ye(e,e=>"section"===e.localName&&e.getAttribute("display-number")===t);if(n){const e=ye(n,"section-title");if(e)return i.a.createElement(i.a.Fragment,null,e.textContent.trim()+":")}}return null};var fp=i.a.memo(()=>{const e=Qi(e=>e.answers.extraAnswers),{t:t}=Tr();return e.length>0?i.a.createElement("div",{className:"error-indicator e-columns e-columns--inline e-bg-color-error e-color-off-white e-font-size-xs e-pad-1 e-mrg-r-1",role:"alert"},i.a.createElement("div",{className:"e-column e-column--narrow"},i.a.createElement(wa,{size:"lg",icon:aa,fixedWidth:!0,className:"e-mrg-r-1"})),i.a.createElement("div",{className:"e-column e-column--gapless"},e.map(e=>{const{displayNumber:n,type:r}=e;return i.a.createElement("div",{key:r+n},"exam"!==r&&"toc-section"!==r?t(r,{displayNumber:n})||i.a.createElement(up,{...e}):""," ",i.a.createElement(cp,{...e}))}))):null});var dp=i.a.memo(qr((function({element:e,renderChildNodes:t}){const{isExternal:n}=Object(r.useContext)(Vr);return n?null:i.a.createElement("span",{className:"exam-attachment e-mrg-b-2"},t(e))})));var pp=i.a.memo((function({element:e,renderChildNodes:t}){return i.a.createElement(os,null,t(e))}));var hp=i.a.memo((function({element:e,renderChildNodes:t}){return i.a.createElement("div",{className:"exam-instruction notification e-pad-4"},t(e))}));var gp=i.a.memo(as((function({element:e,renderChildNodes:t}){const n=Qi(e=>e.cas.casStatus),{casForbidden:a}=Object(r.useContext)(hs),{displayNumber:o,level:s}=Object(r.useContext)(is);return a&&"forbidden"!==n?null:i.a.createElement("div",{className:Kr()("exam-question",{"e-mrg-b-8 e-clearfix":0===s,"e-mrg-l-8 e-mrg-y-4":s>0}),id:o},t(e))})));var mp=i.a.memo((function({element:e,renderChildNodes:t}){return i.a.createElement("div",{className:"exam-question-instruction e-mrg-b-2"},t(e))}));var yp=()=>i.a.createElement(wa,{size:"lg",icon:la,fixedWidth:!0,className:"e-color-link e-mrg-r-1"});var vp=i.a.memo(({element:e,renderChildNodes:t})=>{const{displayNumber:n,maxScore:a,level:o,maxAnswers:s,childQuestions:l}=Object(r.useContext)(is),c="h"+Math.min(3+o,6);return i.a.createElement(i.a.Fragment,null,i.a.createElement(c,{className:Kr()("exam-question-title",{"e-normal e-font-size-m":o>0})},i.a.createElement("strong",{className:Kr()("exam-question-title__display-number",{"exam-question-title__display-number--indented":o>0})},ls(n)+" "),t(e)," ",i.a.createElement(ap,{score:a,size:0===o?"large":"small"})),null!=s&&l.length>0&&i.a.createElement("p",{className:"e-italic"},i.a.createElement(yp,null),i.a.createElement(cp,{maxAnswers:s,childQuestions:l,type:"question"})))});var bp=({duration:e,durationRemaining:t,className:n})=>{const a=Object(r.useRef)(null),[o,s]=Object(r.useState)(!1);return Object(r.useEffect)(()=>{a.current.clientTop,s(!0)},[]),i.a.createElement("div",{className:Kr()("e-progress-bar",n),ref:a},i.a.createElement("div",{className:Kr()("e-progress-bar__fill",{"e-progress-bar__fill--animating":o}),style:{transitionDuration:e+"s"},role:"progressbar","aria-valuemax":e,"aria-valuemin":0,"aria-valuenow":e-t}))};function Ip(e){const t=Wi(),{t:n}=Tr(),{casCountdownDuration:a}=Object(r.useContext)(fs);return i.a.createElement("div",{className:"e-cas-controls"},"forbidden"===e.casStatus?i.a.createElement("div",{className:"e-text-center"},i.a.createElement("hr",{className:"e-exam-separator"}),i.a.createElement("p",{id:"e-cas-controls-forbidden-description"},n("cas.forbidden.infoText")),i.a.createElement("button",{className:"e-button",id:"allow-cas",onClick:()=>{return t((e=a,Object(xo.action)("ALLOW_CAS",e)));var e},"aria-describedby":"e-cas-controls-forbidden-description"},n("cas.forbidden.buttonText"))):"allowing"===e.casStatus?i.a.createElement("div",{className:"e-text-center",ref:t=>null!=t&&a===e.durationRemaining&&t.scrollIntoView()},i.a.createElement("hr",{className:"e-exam-separator"}),i.a.createElement("p",{id:"e-cas-controls-allowing-description"},n("cas.allowing.infoText")),i.a.createElement(bp,{className:"e-mrg-b-2",duration:a,durationRemaining:e.durationRemaining}),i.a.createElement("button",{className:"e-button",id:"allow-cas-cancelled",onClick:()=>t(Uf()),ref:t=>null!=t&&a===e.durationRemaining&&t.focus(),"aria-describedby":"e-cas-controls-allowing-description"},n("cas.allowing.cancel",{count:e.durationRemaining}))):i.a.createElement("div",{className:"notification e-text-left e-mrg-b-0"},n("cas.allowed.infoText")))}var xp=i.a.memo(gs((function({element:e,renderChildNodes:t}){const n=Qi(e=>e.cas,Mi),{casForbidden:a,displayNumber:o}=Object(r.useContext)(hs);return i.a.createElement(os,{className:"exam-section","aria-labelledby":Sr(o)},t(e),a&&i.a.createElement(Ip,{...n}))})));var wp=i.a.memo((function({element:e,renderChildNodes:t}){const{numberOfSections:n}=Object(r.useContext)(Br),{displayNumber:a,minAnswers:o,maxAnswers:s,childQuestions:l}=Object(r.useContext)(hs),{t:c}=Tr();return i.a.createElement(i.a.Fragment,null,e.hasChildNodes()&&i.a.createElement("h2",{className:"exam-section-title",id:Sr(a)},n>1&&c("section",{displayNumber:a})," ",t(e)),null!=s&&i.a.createElement("span",{className:"notification notification--inline"},i.a.createElement(yp,null),i.a.createElement(cp,{maxAnswers:s,minAnswers:o,childQuestions:l,type:"section"})))}));function Tp(e){return bt(e.split("."))+"."}function Mp({answer:e,focusedQuestionId:t,renderChildNodes:n}){const r=be(e,"question-id"),a=e.getAttribute("display-number"),o=ye(e,"hint");return i.a.createElement("p",{className:Kr()("e-hints__hint",{"e-hints__hint--focused":t===r}),onClick:()=>{const e=document.querySelector(`.text-answer[data-question-id="${r}"]`);e&&e.focus()},"data-question-id":r},Tp(a)," ",n(o))}var Ap=({element:e,renderChildNodes:t})=>{const n=Qi(e=>e.answers.focusedQuestionId),r=ge(e,["text-answer","scored-text-answer"]).filter(e=>null!=ye(e,"hint"));return i.a.createElement("div",{className:"e-columns"},i.a.createElement("div",{className:"e-column e-column--8"},t(e)),i.a.createElement("div",{className:"e-hints e-column e-column--4","aria-hidden":"true"},r.map((e,r)=>i.a.createElement(Mp,{answer:e,focusedQuestionId:n,renderChildNodes:t,key:r}))))};const Cp=Ae({});var Ep=i.a.memo((function(e){const{root:t}=Object(r.useContext)(Br),{t:n}=Tr(),a=ge(t,"reference").filter(e=>null==me(e,"external-material"));return a.length>0?i.a.createElement(os,{"aria-labelledby":"references-title"},i.a.createElement("h2",{id:"references-title"},n("references.heading")),i.a.createElement("ol",{className:"e-list-data e-color-darkgrey e-light"},a.map((e,t)=>{const n=me(e,"question").getAttribute("display-number");return i.a.createElement("li",{"data-list-number":ls(n),key:`${n}${t}`},i.a.createElement(_o,{element:e,renderChildNodes:Cp}))}))):null}));var Np=i.a.memo((function(){const e=Qi(na),{t:t}=Tr();return"initial"===e?null:i.a.createElement("div",{className:"save-indicator e-pad-1 e-font-size-xs"},i.a.createElement("span",{className:Kr()("save-indicator-text","save-indicator-text--"+e)},t("answer-saved")))}));var Sp=i.a.memo((function({element:e,renderChildNodes:t}){return i.a.createElement("div",{className:"e-mrg-b-2"},t(e))}));const kp=e=>{const{showAttachmentLinks:t,showAnsweringInstructions:n}=e,a=({element:e})=>{const{numberOfSections:t}=Object(r.useContext)(Br),{childQuestions:a,displayNumber:s,minAnswers:l,maxAnswers:c}=Object(r.useContext)(hs),{t:u}=Tr();return i.a.createElement(i.a.Fragment,null,e.hasChildNodes()&&i.a.createElement("header",{className:"e-semibold",id:Dr(s)},t>1&&u("section",{displayNumber:s})," ",o(e)),n&&null!=c&&i.a.createElement("div",null,i.a.createElement(cp,{maxAnswers:c,minAnswers:l,childQuestions:a,type:"toc-section"})))},o=Ae({section:gs(({element:e,renderChildNodes:t})=>{const{displayNumber:n}=Object(r.useContext)(hs),o=ye(e,"section-title");return i.a.createElement("li",null,o&&i.a.createElement(a,{element:o,renderChildNodes:t}),i.a.createElement("ol",{className:"e-list-data e-pad-l-0","aria-labelledby":o&&Dr(n)},t(e,1)))}),question:as(({element:e})=>{const{attachmentsURL:n}=Object(r.useContext)(Br),{displayNumber:a,maxScore:s}=Object(r.useContext)(is),{t:l}=Tr(),c=ye(e,"question-title"),u=t&&null!=a&&he(e,"external-material");return i.a.createElement("li",{"data-list-number":a+"."},i.a.createElement("div",{className:"e-columns"},i.a.createElement("span",{className:"e-column"},i.a.createElement("a",{href:Ur("",{hash:a})},o(c))),u&&i.a.createElement("span",{className:"e-column e-column--narrow"},i.a.createElement("a",{href:Ur(n,{hash:ve(me(u,"question"),"display-number")}),target:"attachments"},l("material"))),i.a.createElement("span",{className:"e-column e-column--narrow table-of-contents--score-column"},l("points",{count:s}))))})});return i.a.memo(()=>{const{root:e,maxScore:t}=Object(r.useContext)(Br),{t:n}=Tr();return i.a.createElement("nav",{className:"table-of-contents e-mrg-b-6","aria-labelledby":"toc-title"},i.a.createElement("h2",{id:"toc-title"},n("toc-heading")),i.a.createElement("ol",{className:"e-list-plain e-pad-l-0"},o(e)),i.a.createElement("div",{className:"e-columns"},i.a.createElement("strong",{className:"e-column"},n("exam-total")),i.a.createElement("strong",{className:"e-column e-column--narrow table-of-contents--score-column"},n("points",{count:t}))))})};var jp=function(e,t){if("function"!=typeof t)throw new TypeError("Expected a function");return e=Jo(e),function(){if(--e<1)return t.apply(this,arguments)}},Dp=n(3),Op=n.n(Dp),Lp=n(7),Pp=[{label:"Perusmerit ja kreikkalaiset aakkoset",characters:[{character:"°",popular:!0},{character:"·",latexCommand:"\\cdot",popular:!0},{character:"±",latexCommand:"\\pm",popular:!0},{character:"∞",latexCommand:"\\infty",popular:!0},{character:"²",latexCommand:"^2",popular:!0},{character:"³",latexCommand:"^3",popular:!0},{character:"½",latexCommand:"\\frac{1}{2}",popular:!0},{character:"⅓",latexCommand:"\\frac{1}{3}",popular:!0},{character:"π",latexCommand:"\\pi",popular:!0},{character:"α",latexCommand:"\\alpha",popular:!0},{character:"β",latexCommand:"\\beta",popular:!0},{character:"Γ",latexCommand:"\\Gamma"},{character:"γ",latexCommand:"\\gamma"},{character:"Δ",latexCommand:"\\Delta"},{character:"δ",latexCommand:"\\delta"},{character:"ε",latexCommand:"\\varepsilon"},{character:"ζ",latexCommand:"\\zeta"},{character:"η",latexCommand:"\\eta"},{character:"θ",latexCommand:"\\theta"},{character:"ϑ",latexCommand:"\\vartheta"},{character:"&iota;",latexCommand:"\\iota"},{character:"κ",latexCommand:"\\kappa"},{character:"Λ",latexCommand:"\\Lambda"},{character:"λ",latexCommand:"\\lambda"},{character:"µ",latexCommand:"\\mu"},{character:"ν",latexCommand:"\\nu"},{character:"Ξ",latexCommand:"\\Xi"},{character:"ξ",latexCommand:"\\xi"},{character:"∏",latexCommand:"\\Pi"},{character:"ρ",latexCommand:"\\rho"},{character:"∑",latexCommand:"\\Sigma"},{character:"σ",latexCommand:"\\sigma"},{character:"τ",latexCommand:"\\tau"},{character:"Υ",latexCommand:"\\Upsilon"},{character:"υ",latexCommand:"\\upsilon"},{character:"Φ",latexCommand:"\\Phi"},{character:"Ф",latexCommand:"\\phi"},{character:"χ",latexCommand:"\\chi"},{character:"Ψ",latexCommand:"\\Psi"},{character:"ψ",latexCommand:"\\psi"},{character:"Ω",latexCommand:"\\Omega"},{character:"ω",latexCommand:"\\omega"},{character:"∂",latexCommand:"\\partial"},{character:"φ",latexCommand:"\\varphi"}]},{label:"Algebra",characters:[{character:"≠",latexCommand:"\\neq",popular:!0},{character:"≈",latexCommand:"\\approx",popular:!0},{character:"≤",latexCommand:"\\leq",popular:!0},{character:"≥",latexCommand:"\\geq"},{character:"<"},{character:">"},{character:"∼",latexCommand:"\\sim"},{character:"≡",latexCommand:"\\equiv"},{character:"≢",latexCommand:"\\not\\equiv"},{character:"∘",latexCommand:"\\circ"},{character:"…",latexCommand:"\\ldots"},{character:"∝",latexCommand:"\\propto"}]},{label:"Geometria ja vektorioppi",characters:[{character:"∢",latexCommand:"\\sphericalangle",popular:!0},{character:"|",latexCommand:"\\mid",popular:!0},{character:"‖",latexCommand:"\\parallel",popular:!0},{character:"⇌",latexCommand:"\\xrightleftharpoons",noWrite:!0},{character:"⇅"},{character:"∠",latexCommand:"\\angle"},{character:"↑",latexCommand:"\\uparrow"},{character:"↗",latexCommand:"\\nearrow"},{character:"↘",latexCommand:"\\searrow"},{character:"↓",latexCommand:"\\downarrow"},{character:"↔",latexCommand:"\\leftrightarrow"},{character:"⊥",latexCommand:"\\perp"}]},{label:"Logiikka ja joukko-oppi",characters:[{character:"→",latexCommand:"\\rightarrow",popular:!0},{character:"⇒",latexCommand:"\\Rightarrow",popular:!0},{character:"⇔",latexCommand:"\\Leftrightarrow",popular:!0},{character:"∈",latexCommand:"\\in",popular:!0},{character:"ℤ",latexCommand:"\\mathbb{Z}",popular:!0},{character:"ℝ",latexCommand:"\\mathbb{R}",popular:!0},{character:"∃",latexCommand:"\\exists"},{character:"∀",latexCommand:"\\forall"},{character:"ℕ",latexCommand:"\\mathbb{N}"},{character:"ℚ",latexCommand:"\\mathbb{Q}"},{character:"∩",latexCommand:"\\cap"},{character:"∪",latexCommand:"\\cup"},{character:"∖",latexCommand:"\\setminus"},{character:"⊂",latexCommand:"\\subset"},{character:"⊄",latexCommand:"\\notsubset"},{character:"∉",latexCommand:"\\notin"},{character:"∅",latexCommand:"\\empty"},{character:"∧",latexCommand:"\\and"},{character:"∨",latexCommand:"\\or"},{character:"¬"},{character:"∇",latexCommand:"\\nabla"}]}],Rp=[{action:"\\sqrt",label:"\\sqrt{X}",svg:"data:image/svg+xml;base64,PHN2ZyB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgd2lkdGg9IjMuNzQ0ZXgiIGhlaWdodD0iMi44NDNleCIgc3R5bGU9InZlcnRpY2FsLWFsaWduOiAtMC44MzhleDsiIHZpZXdCb3g9IjAgLTg2My4xIDE2MTIgMTIyMy45IiByb2xlPSJpbWciIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgYXJpYS1sYWJlbGxlZGJ5PSJNYXRoSmF4LVNWRy0xLVRpdGxlIj4KPHRpdGxlIGlkPSJNYXRoSmF4LVNWRy0xLVRpdGxlIj5cc3FydHtcc3F1YXJlfTwvdGl0bGU+CjxkZWZzIGFyaWEtaGlkZGVuPSJ0cnVlIj4KPHBhdGggc3Ryb2tlLXdpZHRoPSIxIiBpZD0iRTEtTEFUSU5NT0RFUk5NQUlOLTI1QTEiIGQ9Ik03MjIgLTYzYzAgLTExIC05IC0yMCAtMjAgLTIwaC02MjZjLTExIDAgLTIwIDkgLTIwIDIwdjYyNmMwIDExIDkgMjAgMjAgMjBoNjI2YzExIDAgMjAgLTkgMjAgLTIwdi02MjZ6TTY4MiA1NDNoLTU4NnYtNTg2aDU4NnY1ODZaIj48L3BhdGg+CjxwYXRoIHN0cm9rZS13aWR0aD0iMSIgaWQ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QwYzEwNSAwIDEwNSAxNCAxMDUgNDh2NTI3YzAgMjMgMCAzNCAtMjEgMzhjLTEwIDIgLTM2IDIgLTU0IDJjLTE1MSAwIC0xNjYgLTMzIC0xODAgLTE5NGgtMjVsMTkgMjI1IGg2MTFaIj48L3BhdGg+CjwvZGVmcz4KPGcgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIGZpbGw9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIwIiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAwIDApIiBhcmlhLWhpZGRlbj0idHJ1ZSI+CiA8dXNlIHhsaW5rOmhyZWY9IiNFMS1MQVRJTk1PREVSTk1BSU4tNTQiIHg9IjAiIHk9IjAiPjwvdXNlPgo8L2c+Cjwvc3ZnPg=="}];function zp(e,t,n,r){let i;const a=Op()(`<div class="rich-text-editor-overlay rich-text-editor-hidden">\n <div class="rich-text-editor-overlay-modal" aria-modal="true" tabindex="0" data-js="overlayModal" >\n <div class="rich-text-editor-modal-columns">\n <div class="rich-text-editor-modal-column rich-text-editor-modal-column-2" data-i18n="[html]rich_text_editor.help_overlay.screenshot">\n ${n.help_overlay.screenshot}\n </div>\n <div class="rich-text-editor-modal-column rich-text-editor-modal-column-1" data-i18n="[html]rich_text_editor.help_overlay.equation">\n ${n.help_overlay.equation}\n </div>\n </div>\n <button data-js="closeOverlayButton" class="rich-text-editor-close-overlay-button"></button>\n </div>\n</div>`).on("mousedown",'[data-js="closeOverlayButton"]',e=>{e.preventDefault(),Op()("body").removeClass("rich-text-editor-overlay-open"),a.addClass("rich-text-editor-hidden"),i.focus()}).on("mousedown",e=>{e.target.classList.contains("rich-text-editor-overlay")&&(e.preventDefault(),e.stopPropagation(),Op()("body").removeClass("rich-text-editor-overlay-open"),a.addClass("rich-text-editor-hidden"),i.focus())}),o=Op()(`\n <div class="rich-text-editor-tools" data-js="tools">\n\n <div class="rich-text-editor-tools-button-wrapper">\n <div class="rich-text-editor-toolbar-wrapper">\n <button class="rich-text-editor-characters-expand-collapse" data-js="expandCollapseCharacters" style="z-index: 100"></button>\n </div>\n <div class="rich-text-editor-toolbar-wrapper">\n <button class="rich-text-editor-help-button" data-js="richTextEditorHelp" style="z-index: 100"></button>\n </div>\n </div>\n <div class="rich-text-editor-tools-row">\n <div class="rich-text-editor-toolbar-wrapper">\n <div class="rich-text-editor-toolbar-characters rich-text-editor-toolbar rich-text-editor-toolbar-button-list" data-js="charactersList"></div>\n </div>\n </div>\n <div class="rich-text-editor-tools-row">\n <div class="rich-text-editor-toolbar-wrapper rich-text-editor-equation-wrapper">\n <div class="rich-text-editor-toolbar-equation rich-text-editor-toolbar rich-text-editor-toolbar-button-list" data-js="mathToolbar"></div>\n </div>\n </div>\n <div class="rich-text-editor-tools-button-wrapper">\n <div class="rich-text-editor-toolbar-wrapper">\n <button class="rich-text-editor-new-equation rich-text-editor-button rich-text-editor-button-action" data-js="newEquation" data-command="Ctrl-E" data-i18n="rich_text_editor.insert_equation">Σ ${n.insertEquation}</button>\n </div>\n </div>\n </div>\n `).on("mousedown",e=>{e.preventDefault()}).on("mousedown",'[data-js="expandCollapseCharacters"]',e=>{e.preventDefault(),o.toggleClass("rich-text-editor-show-all-characters")}).on("mousedown",'[data-js="richTextEditorHelp"]',e=>{e.preventDefault(),i=document.activeElement,Op()("body").addClass("rich-text-editor-overlay-open"),a.removeClass("rich-text-editor-hidden"),a.find('[data-js="overlayModal"]').focus(),Op()(window).on("keydown.help",e=>{27===e.keyCode&&(e.stopPropagation(),e.preventDefault(),Op()("body").removeClass("rich-text-editor-overlay-open"),a.addClass("rich-text-editor-hidden"),Op()(window).off("keydown.help"))})}),s=o.find('[data-js="newEquation"]'),l=o.find('[data-js="mathToolbar"]');return function(e,t,n){e.find('[data-js="charactersList"]').append(Pp.map(e=>`<div class="rich-text-editor-toolbar-characters-group"\n style="width: ${35*(e=>e.characters.filter(e=>e.popular).length)(e)}px">\n ${e.characters.map(_p).join("")}\n </div>`)).on("mousedown","button",e=>{e.preventDefault();const r=e.currentTarget.innerText,i=e.currentTarget.dataset.command,a="true"===e.currentTarget.dataset.usewrite;n()?window.document.execCommand("insertText",!1,r):t.insertMath(i||r,void 0,a)})}(o,e,t),function(e,t){e.append(Rp.map(e=>"string"==typeof e?e:`<button class="rich-text-editor-button rich-text-editor-button-grid" data-command="${e.action}" data-latexcommand="${e.label||""}" data-usewrite="${e.useWrite||!1}">\n<img src="${e.svg}"/>\n</button>`).join("")).on("mousedown","button",e=>{e.preventDefault();const n=e.currentTarget.dataset;t.insertMath(n.command,n.latexcommand,"true"===n.usewrite)})}(l,e),function(e,t,n){e.mousedown((e=>{e.preventDefault(),n()&&t.insertNewEquation()}).bind(this))}(s,e,t),Op.a.fn.i18n?o.i18n():Op.a.fn.localize&&o.localize(),{toolbar:o,helpOverlay:a}}const _p=e=>`<button class="rich-text-editor-button rich-text-editor-button-grid${e.popular?" rich-text-editor-characters-popular":""}" ${e.latexCommand?`data-command="${e.latexCommand}"`:""} data-usewrite="${!e.noWrite}">${e.character}</button>`;var Up=n(40),Zp=n(41);if(!Zp)throw new Error("MathQuill is required but has not been loaded");const Fp=13,Gp=27;let Bp;const Yp=function(e){return""===e.replace(/(\\|\s)*/g,"")?"":e};const Wp={FI:{editor:{mathEditor:"Matikkaeditori",title:"Kaavaeditorin kehitysversio",description:"\n<ul>\n<li>“Lisää kaava” -napin alta löydät yleisimpiä matematiikassa, fysiikassa ja\nkemiassa käytettäviä merkintöjä. Lisäksi erikoismerkkejä voi käyttää kaavan kirjoittamiseen.</li>\n <li>Kaavoja voi rakentaa\nnapsauttamalla valikon merkintöjä ja/tai kirjoittamalla LaTeXia.</li>\n <li>Editorin vastauskenttään voi kirjoittaa tekstiä ja kaavoja sekä\nlisätä kuvia.</li></ul>",shortcutTitle:"Pikanäppäinvinkkejä",shortcuts:'<table><tbody>\n<tr><th>Liitä kuva leikepöydältä</th><td>Ctrl-V</td></tr>\n<tr><th>Kirjoita kaava</th><td>Ctrl-E</td></tr>\n<tr><th colspan="2">Kaavassa</th></tr>\n<tr><th>Jakoviiva</th><td>/</td></tr>\n<tr><th>Kertomerkki</th><td>*</td></tr>\n<tr><th>Eksponentti</th><td>^</td></tr>\n<tr><th>Sulje kaava</th><td>Esc</td></tr>\n<tr><th>Lisää kaava seuraavalle riville</th><td>Enter</td></tr>\n</tbody>\n</table>',formatting:"Muotoilu",specialCharacters:"Erikoismerkit",insertEquation:"Lisää kaava",close:"sulje",save:"Tallenna",updated:"Päivitetty",sendFeedback:"Lähetä palautetta",langLink:"/sv",langLabel:"På svenska",answerTitle:"Vastaus",toggleInstructions:"Näytä ohjeet",help_overlay:{screenshot:'<h3>Kuvakaappaukset</h3><p>Tee kuva haluamallasi ohjelmalla. Napsauta yläpalkista kuvakaappauskuvaketta <span class="screen-shot-image"></span> ja rajaa haluamasi kuva-alue näytöltä. <span class="rich-text-editor-help-key">CTRL</span>-<span class="rich-text-editor-help-key">V</span> liittää kuvan vastauskenttään kursorin kohdalle. Voit vaihtaa kuvan paikkaa raahaamalla tai leikkaamalla kuvan komennolla <span class="rich-text-editor-help-key">CTRL</span>-<span class="rich-text-editor-help-key">X</span> ja liittämällä sen komennolla <span class="rich-text-editor-help-key">CTRL</span>-<span class="rich-text-editor-help-key">V</span> haluamaasi paikkaan.</p>',equation:'<h3>Kaavat</h3><p>Kaava lisätään komennolla <span class="rich-text-editor-help-key">CTRL</span>-<span class="rich-text-editor-help-key">E</span><br>Pikakomennot kaavassa:</p><table class="rich-text-editor-help-shortcuts"><tbody><tr><th>Jakoviiva</th><td><span class="rich-text-editor-help-key">/</span></td></tr><tr><th>Kertomerkki</th><td><span class="rich-text-editor-help-key">*</span></td></tr><tr><th>Yläindeksi</th><td><span class="rich-text-editor-help-key">^</span></td></tr><tr><th>Alaindeksi</th><td><span class="rich-text-editor-help-key">_</span></td></tr><tr><th>Lisää kaava seuraavalle riville</th><td><span class="rich-text-editor-help-key">↵</span></td></tr><tr><th>Sulje kaava</th><td><span class="rich-text-editor-help-key">esc</span></td></tr></tbody></table>'}},annotating:{sendFeedback:"Lähetä palautetta",updated:"Päivitetty",mathEditor:"Matikkaeditori",title:"Arvostelu",backLink:"/",backLinkLabel:"Palaa kaavaeditoriin",save:"Tallenna merkinnät",langLink:"/sv/bedomning",langLabel:"På svenska"}},SV:{editor:{mathEditor:"Matematikeditor",title:"Formeleditorns utvecklingsversion",description:"\n<ul>\n <li>Under knappen “Lägg till formel” hittar du de vanligaste beteckningarna som används i matematik, fysik och kemi. Dessutom kan du använda specialtecken för att skriva formler.</li>\n<li>Det går att konstruera formler genom att klicka på beteckningarna i menyerna och/eller genom att skriva LaTeX.</li>\n<li>Det går förutom att skriva text och formler, att också att lägga till bilder i svarsfältet.</li></ul>",shortcutTitle:"Tips på tangentkombinationer",shortcuts:'<table><tbody>\n<tr><th>Lägg till en bild från urklippet</th><td>Ctrl-V</td></tr>\n<tr><th>Skriv en formel</th><td>Ctrl-E</td></tr>\n<tr><th colspan="2">I formeln </th></tr>\n<tr><th>Bråkstreck</th><td>/</td></tr>\n<tr><th>Multiplikationstecken</th><td>*</td></tr>\n<tr><th>Exponent</th><td>^</td></tr>\n<tr><th>Stäng formeln</th><td>Esc</td></tr>\n<tr><th>Lägg till en formel på följande rad</th><td>Enter</td></tr>\n</tbody>\n</table>',formatting:"Formatering",specialCharacters:"Specialtecken",insertEquation:"Lägg till formel",close:"stäng",save:"Spara",updated:"Uppdaterad",sendFeedback:"Skicka feedback",langLink:"/",langLabel:"Suomeksi",answerTitle:"Svar",toggleInstructions:"Visa intruktioner",help_overlay:{screenshot:'<h3>Skärmdumpar</h3><p>Skapa bilden med valbart program. Klicka på skärmdumpsikonen i övre balken<span class="screen-shot-image"></span> och avgränsa den delen av skärmen du vill använda.<span class="rich-text-editor-help-key">CTRL</span>-<span class="rich-text-editor-help-key">V</span>bifogar bilden i svarsfältet där kursorn ligger. Du kan ändra på bildens position genom att släpa bilden eller genom att klippa den med kommandot<span class="rich-text-editor-help-key">CTRL</span>-<span class="rich-text-editor-help-key">X</span>och klistra in den med kommandot<span class="rich-text-editor-help-key">CTRL</span>-<span class="rich-text-editor-help-key">V</span>på valbart ställe.</p>',equation:'<h3>Formler</h3><p>Formeln läggs till med kommandot<span class="rich-text-editor-help-key">CTRL</span>-<spanclass="rich-text-editor-help-key">E</span><br />Snabbkommandon med formler:</p><table class="rich-text-editor-help-shortcuts"><tbody><tr><th>Divisionsstreck</th><td><span class="rich-text-editor-help-key">/</span></td></tr><tr><th>Multiplikationstecken</th><td><span class="rich-text-editor-help-key">*</span></td></tr><tr><th>Upphöjt index</th><td><span class="rich-text-editor-help-key">^</span></td></tr><tr><th>Nedsänkt index</th><td><span class="rich-text-editor-help-key">_</span></td></tr><tr><th>Lägg till formel på nästa rad</th><td><span class="rich-text-editor-help-key">↵</span></td></tr><tr><th>Stäng formeln</th><td><span class="rich-text-editor-help-key">esc</span></td></tr></tbody></table>'}},annotating:{sendFeedback:"Skicka respons",updated:"Uppdaterad",mathEditor:"Matematikeditor",title:"Bedömning",backLink:"/sv",backLinkLabel:"Matematikeditor",save:"Spara anteckningar",langLink:"/tarkistus",langLabel:"Suomeksi"}}},Hp=69,Vp=Op()('<div class="rich-text-editor-hidden" style="display: none;" data-js="outerPlaceholder">'),qp={richText:!1,latexField:!1,equationField:!1};let Qp,Jp,Xp,Kp=!0;const $p=(e,t,n=(()=>{}))=>{const r=Wp[t.locale||"FI"].editor,i=t.screenshot.saver,a=t.baseUrl||"";if(Kp){Jp=function(e,t,n,r=((e,t)=>{const r=Yp(t);e.prop({src:n+"/math.svg?latex="+encodeURIComponent(r),alt:r}),e.closest('[data-js="answer"]').trigger("input")})){let i;Bp=Zp.getInterface(2);const a=Op()('\n <div class="math-editor" data-js="mathEditor">\n <div class="math-editor-equation-field" data-js="equationField"></div>\n <textarea rows="1" class="math-editor-latex-field" data-js="latexField" placeholder="LaTeΧ"></textarea>\n </div>');e.append(a);const o=a.find('[data-js="latexField"]'),s=a.find('[data-js="equationField"]');let l,c=!1,u=null;const f=Bp.MathField(s.get(0),{handlers:{edit:p,enter:()=>{I(!0),setTimeout(()=>y("<br>"),2)}}});function d(e){Op()(".rich-text-editor-overlay").is(":visible")||(Lp.d(e,Fp)||Lp.e(e,Gp))&&I(!0)}return s.on("input",".mq-textarea textarea",p).on("focus blur",".mq-textarea textarea",e=>{t.equationField="blur"!==e.type&&"focusout"!==e.type,m()}).on("keydown",d).on("paste",e=>e.stopPropagation()),o.on("keypress",(function(e){","===e.originalEvent.key&&(e.preventDefault(),Lp.b(o.get(0),"{,}"));h(e)})).on("input paste",h).on("focus blur",e=>{t.latexField="blur"!==e.type,m()}).on("keydown",d).on("paste",e=>e.stopPropagation()),{insertNewEquation:y,insertMath:function(e,n,r){t.latexField?(Lp.b(o.get(0),n||e),h()):t.equationField&&(r?f.write(e):f.typedText(e),~e.indexOf("\\")&&f.keystroke("Spacebar"),setTimeout(()=>f.focus(),0))},openMathEditor:function(e){c&&I();Lp.i(e),v(e)},closeMathEditor:I};function p(e){e&&e.originalEvent&&e.originalEvent.stopPropagation(),clearTimeout(l),l=setTimeout(()=>{if(t.latexField)return;const e=f.latex();o.val(e),b(a.prev(),e),g()},0)}function h(e){e&&e.originalEvent&&e.originalEvent.stopPropagation(),b(a.prev(),o.val()),setTimeout(()=>f.latex(o.val()),1),g()}function g(){o.get(0).style.height="auto",o.get(0).style.height=o.get(0).scrollHeight+"px"}function m(){clearTimeout(u),u=setTimeout(()=>{a.trigger({type:"mathfocus",hasFocus:t.latexField||t.equationField}),t.latexField||t.equationField||I()},0)}function y(e=""){window.document.execCommand("insertHTML",!1,e+'<img data-js="new" alt="" src="" style="display: none"/>'),v(Op()('[data-js="new"]').removeAttr("data-js"))}function v(e){e.hide(),e.after(a),c=!0,t.equationField=!0,x(!0),setTimeout(()=>f.focus(),0),o.val(e.prop("alt")),h(),Lp.h(a)}function b(e,t){clearTimeout(i),i=setTimeout(()=>{r(e,t)},500)}function I(n=!1){const i=a.closest('[data-js="answer"]'),s=a.prev();""===Yp(o.val())?s.remove():(s.show(),r(s,o.val())),x(!1),c=!1,t.latexField=!1,t.equationField=!1,a.trigger({type:"mathfocus",hasFocus:t.latexField||t.equationField}),e.append(a),n&&i.focus()}function x(e){Op()("body").toggleClass("math-editor-focus",e)}}(Vp,qp,a,t.updateMathImg);const e=zp(Jp,()=>qp.richText,r);Xp=e.toolbar;const n=e.helpOverlay;Op()("body").append(Vp,Xp,n),Kp=!1}n(Lp.g(e));let o=!1;Op()(e).attr({contenteditable:!0,spellcheck:!1,"data-js":"answer"}).addClass("rich-text-editor").on("click",Lp.a,e=>{1===e.which&&(th(Op()(e.target).closest('[data-js="answer"]')),Jp.openMathEditor(Op()(e.target)))}).on("keydown",e=>{!Lp.d(e,Hp)||qp.equationField||qp.latexField||(e.preventDefault(),Jp.insertNewEquation())}).on("mathfocus",e=>{Op()(e.currentTarget).toggleClass("rich-text-focused",e.hasFocus),ah()&&nh(Qp)}).on("focus blur",e=>{"focus"===e.type&&Jp.closeMathEditor(),function(e){qp.richText="focus"===e.type,Op()(e.currentTarget).toggleClass("rich-text-focused",qp.richText),clearTimeout(ih),ih=setTimeout(()=>{!Op()("body").hasClass("rich-text-editor-overlay-open")&&ah()?nh(Op()(e.target)):th(Op()(e.target))},0)}(e)}).on("input",e=>{o||n(Lp.g(e.currentTarget))}).on("drop",e=>{o=!0,setTimeout(()=>{Op()(e.target).html(Lp.f(e.target.innerHTML)),Up.b(Op()(e.currentTarget),i),o=!1},100)}).on("paste",e=>{o=!0,setTimeout(()=>o=!1,0),Up.a(e,i)}),setTimeout(()=>document.execCommand("enableObjectResizing",!1,!1),0)};function eh(e,t){Op()("body").toggleClass("rich-text-editor-focus",e),t.toggleClass("rich-text-focused",e)}function th(e){Qp=e,rh(),eh(!0,Qp)}function nh(e){eh(!1,e),rh(),qp.richText=!1}function rh(){Xp.addClass("rich-text-editor-tools--animating").one("transitionend transitioncancel",()=>Xp.removeClass("rich-text-editor-tools--animating"))}let ih;function ah(){return!qp.richText&&!qp.latexField&&!qp.equationField}class oh extends i.a.PureComponent{constructor(e){super(e),this.handleSaveError=e=>{const t=(()=>{switch(Xi(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.ref=i.a.createRef(),this.lastHTML=this.props.answer?this.props.answer.value:""}componentDidMount(){const{current:e}=this.ref,{answer:t,saveScreenshot:n}=this.props;e&&(t&&(e.innerHTML=t.value),$p(e,{locale:this.context.language.slice(0,2).toUpperCase(),screenshot:{saver:({data:e,type:t})=>n(e instanceof Blob?e:new Blob([e],{type:t})).catch(e=>{throw this.handleSaveError(e),e})}},jp(2,this.handleChange)))}componentDidUpdate(){const{current:e}=this.ref;e&&this.props.answer&&this.props.answer.value!==this.lastHTML&&(e.innerHTML=this.lastHTML=this.props.answer.value)}render(){const{className:e,questionId:t}=this.props;return i.a.createElement("div",{ref:this.ref,className:Kr()("text-answer text-answer--multi-line",e),"data-question-id":t,role:"textbox","aria-multiline":"true",tabIndex:0})}}oh.contextType=Br;class sh extends i.a.PureComponent{constructor(e){super(e),this.onChange=e=>{const{element:t,saveAnswer:n}=this.props,r=be(t,"question-id"),i=t.getAttribute("display-number"),a=e.currentTarget.value.trim();n({type:"text",questionId:r,value:a,characterCount:lh(a),displayNumber:i}),this.clearErrors()},this.onRichTextChange=(e,t)=>{const{element:n,saveAnswer:r}=this.props,i=be(n,"question-id"),a=n.getAttribute("display-number");r({type:"richText",questionId:i,value:e,characterCount:lh(t),displayNumber:a}),this.clearErrors()},this.onFocus=()=>{this.props.answerFocused(be(this.props.element,"question-id"))},this.onBlur=()=>{this.props.answerBlurred(be(this.props.element,"question-id"))},this.onError=e=>{this.setState({error:e})},this.clearErrors=()=>{this.setState({error:null})},this.ref=i.a.createRef(),this.state={error:null}}componentDidMount(){this.resize()}componentDidUpdate(){this.resize()}resize(){const{current:e}=this.ref;if(e)if("multi-line"===this.props.type){const{scrollX:t,scrollY:n}=window;e.style.height="auto",e.style.height=e.scrollHeight+1+"px",window.scrollTo(t,n)}else"single-line"===this.props.type&&(e.style.width="0",e.style.width=e.scrollWidth+2+"px")}render(){const{answer:e,className:t,element:n,selectAnswerVersion:r,showAnswerHistory:a,supportsAnswerHistory:o,type:s}=this.props,{error:l}=this.state,c=be(n,"question-id"),u=be(n,"max-score"),f=e&&e.value,d=Or(n);switch(s){case"rich-text":return i.a.createElement(i.a.Fragment,null,i.a.createElement(fs.Consumer,null,({examServerApi:n})=>i.a.createElement(oh,{answer:e,className:Kr()("text-answer text-answer--rich-text",t),saveScreenshot:e=>n.saveScreenshot(c,e),onChange:this.onRichTextChange,onError:this.onError,questionId:c})),i.a.createElement(qf,{answer:e,element:n,selectAnswerVersion:r,showAnswerHistory:a,supportsAnswerHistory:o,error:l}));case"multi-line":return i.a.createElement(i.a.Fragment,null,i.a.createElement("textarea",{className:Kr()("text-answer text-answer--multi-line",t),defaultValue:f,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,ref:this.ref,"data-question-id":c}),i.a.createElement(qf,{answer:e,element:n,selectAnswerVersion:r,showAnswerHistory:a,supportsAnswerHistory:o}));case"single-line":default:return i.a.createElement("span",{className:"e-nowrap"},i.a.createElement("input",{type:"text",className:Kr()("text-answer text-answer--single-line",t),defaultValue:f,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,ref:this.ref,"data-question-id":c,"aria-describedby":d}),i.a.createElement(is.Consumer,null,({answers:e})=>e.length>1&&i.a.createElement(ap,{score:u,size:"inline",id:d})))}}}function lh(e){return e.replace(/\s/g,"").length}var ch=Zi((function(e,{element:t}){const n=t.getAttribute("type")||"single-line",r=be(t,"question-id"),i=e.answers.answersById[r],a=e.answers.supportsAnswerHistory;return{answer:i,showAnswerHistory:e.answers.supportsAnswerHistory&&e.answers.serverQuestionIds.has(r),supportsAnswerHistory:a,type:n}}),{saveAnswer:ju,selectAnswerVersion:(e,t)=>Object(xo.action)("SELECT_ANSWER_VERSION",{questionId:e,questionText:t}),answerFocused:e=>Object(xo.action)("ANSWER_FOCUSED",e),answerBlurred:e=>Object(xo.action)("ANSWER_BLURRED",e)})(sh);const uh=({children:e})=>i.a.createElement("span",{className:"e-screen-reader-only"},e);var fh=i.a.memo((function(e){const{element:t,renderChildNodes:n}=e,r=t.getAttribute("display-number"),a=ye(t,"hint"),o=i.a.createElement(ch,{...e});return a?i.a.createElement("label",{className:"e-nowrap"},i.a.createElement("sup",{className:"e-text-answer-display-number e-color-darkgrey"},Tp(r)),i.a.createElement(uh,null,n(a)),o):o}));const dh=Ae({attachment:dp,"attachment-link":Wr("link"),"attachment-links":Hr("link"),audio:Co,"audio-title":Lo,"audio-group":Hf,"audio-test":Vf,"choice-answer":Jf,"dropdown-answer":sp,"exam-footer":pp,"external-material":No,file:So,formula:ko,image:Oo,question:gp,"question-instruction":mp,"question-title":vp,hints:Ap,references:Ep,"scored-text-answer":fh,"scored-text-answers":Ap,"section-instruction":Sp,section:xp,"section-title":wp,"text-answer":fh,video:Uo,"image-overlay":ts});var ph=i.a.memo(ds(Yr(({doc:e,casStatus:t,answers:n,restrictedAudioPlaybackStats:a,examServerApi:o})=>{const{date:s,dateTimeFormatter:l,dayCode:c,examCode:u,language:f,resolveAttachment:d,root:p,subjectLanguage:h}=Object(r.useContext)(Br),g=ye(p,"exam-title"),m=ye(p,"exam-instruction"),v=ye(p,"table-of-contents"),b=ye(p,"external-material"),I=p.getAttribute("exam-stylesheet"),x=_r(()=>Wf(function(e){const t=e.documentElement;return ws(t,ge(t,"section",!1).map(bs),{maxAnswers:be(t,"max-answers")})}(e),t,n,a,o)),w=_r(()=>kp({showAttachmentLinks:!0,showAnsweringInstructions:!0})),T=_r(()=>wr(f,u,c));return Object(r.useEffect)(Mr(T,f)),Object(r.useEffect)(zr,[]),i.a.createElement(si,{store:x},i.a.createElement(y,{i18n:T},i.a.createElement("main",{className:"e-exam",lang:h,"aria-labelledby":"title"},i.a.createElement(i.a.StrictMode,null),I&&i.a.createElement("link",{rel:"stylesheet",href:d(I)}),i.a.createElement(os,{"aria-labelledby":"title"},g&&i.a.createElement(us,{id:"title"},dh(g)),s&&i.a.createElement("p",null,i.a.createElement("strong",null,l.format(s))),m&&i.a.createElement(hp,{element:m,renderChildNodes:dh}),v&&i.a.createElement(w,{element:v,renderChildNodes:dh}),b&&i.a.createElement(No,{element:b,renderChildNodes:dh,forceRender:!0})),dh(p),i.a.createElement("div",{className:"e-footer"},i.a.createElement(fp,null),i.a.createElement(Np,null)))))})));var hh=gs(({element:e,renderChildNodes:t})=>{const{displayNumber:n}=Object(r.useContext)(hs);return i.a.createElement(os,{className:"e-grading-instruction-section","aria-labelledby":Sr(n)},t(e))});var gh=({element:e,renderChildNodes:t})=>{const{numberOfSections:n}=Object(r.useContext)(Br),{displayNumber:a}=Object(r.useContext)(hs),{t:o}=Tr();return i.a.createElement(i.a.Fragment,null,e.hasChildNodes()&&i.a.createElement("h2",{className:"e-grading-instructions-section-title",id:Sr(a)},n>1&&o("section",{displayNumber:a})," ",t(e)))};var mh=as((function({element:e,renderChildNodes:t}){const{displayNumber:n,level:a}=Object(r.useContext)(is);return i.a.createElement("div",{className:Kr()("e-grading-instructions-question",{"e-mrg-b-8 e-clearfix":0===a,"e-mrg-l-8 e-mrg-y-4":a>0}),id:n},t(e,1))}));var yh=({element:e,renderChildNodes:t})=>i.a.createElement("div",{className:"e-exam-grading-instruction notification e-pad-4"},t(e));var vh=({element:e,renderChildNodes:t})=>i.a.createElement("div",{className:"e-answer-grading-instruction e-multiline-results-text-answer e-mrg-b-2 e-pad-l-2"},t(e));var bh=({element:e,renderChildNodes:t})=>{const{answers:n}=Object(r.useContext)(is),a=ye(e,"answer-grading-instruction"),o=i.a.createElement(i.a.Fragment,null,a&&i.a.createElement(vh,{element:a,renderChildNodes:t}),i.a.createElement("ul",null,t(e)));if(1===n.length)return o;{const n=ve(e,"display-number"),r=be(e,"max-score"),a=ye(e,"hint");return i.a.createElement("div",{className:"e-mrg-l-8"},i.a.createElement("p",{className:"exam-question-title"},i.a.createElement("span",{className:"exam-question-title__display-number--indented e-semibold"},n," "),a&&t(a)," ",i.a.createElement(ap,{score:r})),o)}};var Ih=({element:e,renderChildNodes:t})=>{const n=be(e,"score");if(!n)return null;const{t:r}=Tr();return i.a.createElement("li",null,t(e)," ","(",r("points",{count:n}),")")};var xh=({element:e,renderChildNodes:t})=>{const{displayNumber:n,maxScore:a,level:o}=Object(r.useContext)(is),s="h"+Math.min(3+o,6);return i.a.createElement(i.a.Fragment,null,i.a.createElement(s,{className:Kr()("exam-question-title",{"e-normal e-font-size-m":o>0})},i.a.createElement("strong",{className:Kr()("exam-question-title__display-number",{"exam-question-title__display-number--indented":o>0})},ls(n)+" "),t(e)," ",i.a.createElement(ap,{score:a,size:0===o?"large":"small"})))};const wh=e=>t=>{const n=n=>e(n)?i.a.createElement(t,{...n}):null;return n.displayName="RenderIf("+Fr(t)+")",n};var Th=({element:e,renderChildNodes:t})=>{const n=ye(e,["audio-transcription","video-transcription"]);if(n){const{t:r}=Tr(),a=ye(e,["audio-title","video-title"]);return i.a.createElement("details",{className:"e-grading-instruction-recording e-pad-1 e-mrg-b-2"},i.a.createElement("summary",null,i.a.createElement("strong",null,r("recording"))," ",a&&i.a.createElement("em",null,t(a))),t(n))}return null};const Mh=wh(({element:e})=>null!=me(e,["answer-grading-instruction","choice-answer-option","dropdown-answer-option","exam-grading-instruction","question-grading-instruction","hint","question-title"])),Ah=Ae({"accepted-answer":Ih,attachment:ps,"attachment-link":Wr("plain"),"attachment-links":Hr("plain"),audio:Th,"audio-group":ps,"choice-answer":bh,"choice-answer-option":Ih,"dropdown-answer":bh,"dropdown-answer-option":Ih,"external-material":ps,file:Mh(So),formula:Mh(ko),hints:ps,image:Mh(Oo),question:mh,"question-title":xh,"question-grading-instruction":vh,"scored-text-answer":bh,"text-answer":bh,section:hh,"section-title":gh,video:Th}),Ch=()=>{const{t:e}=Tr();return i.a.createElement(i.a.Fragment,null,e("grading-instructions-page-title"))};var Eh=i.a.memo(Yr(({doc:e})=>{const t=e.documentElement,{date:n,dateTimeFormatter:a,dayCode:o,examCode:s,language:l,subjectLanguage:c}=Object(r.useContext)(Br),u=ye(t,"exam-title"),f=ye(t,"exam-grading-instruction"),d=ye(t,"table-of-contents"),p=kp({showAnsweringInstructions:!1,showAttachmentLinks:!1}),h=_r(()=>wr(l,s,o));return Object(r.useEffect)(Mr(h,l)),Object(r.useEffect)(zr,[]),i.a.createElement(y,{i18n:h},i.a.createElement("main",{className:"e-exam e-grading-instructions",lang:c},i.a.createElement(i.a.StrictMode,null),i.a.createElement(os,{"aria-labelledby":"title"},i.a.createElement(us,{id:"title"},i.a.createElement(Ch,null)," ",u&&Ah(u)),n&&i.a.createElement("p",null,i.a.createElement("strong",null,a.format(n))),f&&i.a.createElement(yh,{element:f,renderChildNodes:Ah}),d&&i.a.createElement(p,{element:d,renderChildNodes:Ah})),Ah(t)))}));var Nh=function(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);void 0!==a&&(n=void 0===n?a:n+a)}return n};var Sh=function(e){return e&&e.length?Nh(e,ce):0};const kh=i.a.createContext({}),jh=Gr(kh,({scores:e,doc:t,gradingStructure:n,gradingText:r,answers:i,singleGrading:a})=>{const o=El(i,"questionId");return{answersByQuestionId:o,gradingStructure:n,scores:e,totalScore:function(e,t,n,r){return Sh(e.map(e=>function(e,t,n,r){const i=Sh(we(e).map(e=>{const i=be(e,"question-id"),a=r[i];return a?"choice"===a.type?((e,n)=>{const r=Dh(t,e);return r?r.options.find(e=>e.id===Number(n.value)).score:0})(i,a):(e=>{var t,r;const i=Oh(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}));if(0===de(e,"question").length&&i<0)return 0;return i}(e,t,n,r)))}(ge(t.documentElement,"question",!1),n,e,o),gradingText:r,singleGrading:a}});function Dh(e,t){const n=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 Oh(e,t){return e.find(e=>e.questionId===t)}var Lh=i.a.memo((function({answers:e,displayNumber:t,children:n,multilineAnswer:r}){return i.a.createElement("div",{className:Kr()("e-result-scorecount","e-float-right",{"e-result-scorecount-multiline-answer":r})},i.a.createElement("div",{className:"e-result-scorecount-border-wrap"},e.length>1&&t&&i.a.createElement("sup",{className:"e-result-scorecount-sup e-mrg-r-1","aria-hidden":"true"},t),n))}));var Ph=i.a.memo((function({score:e,maxScore:t,displayNumber:n}){const{answers:a}=Object(r.useContext)(is),{t:o}=Tr(),s={answers:a,displayNumber:n};return i.a.createElement(Lh,{...s},"number"==typeof e?i.a.createElement("b",null,e):i.a.createElement("div",{className:"e-result-scorecount-empty"})," ",t?`/ ${t} `:null," ",o("points"))}));function Rh({renderChildNodes:e,selected:t,element:n,questionId:r,direction:a,isCorrect:o}){const{t:s}=Tr(),l=n.getAttribute("class"),c=n.getAttribute("option-id"),u=i.a.createElement("div",{className:Kr()("e-choice-answer-option e-column",l,{"e-choice-answer-option--selected":t})},e(n)),f=({narrow:e=!1})=>i.a.createElement(i.a.Fragment,null,i.a.createElement("input",{type:"radio",className:Kr()("e-radio-button",{"e-column e-column--narrow":e}),name:String(r),value:c,checked:t,readOnly:!0}),u,o&&i.a.createElement(uh,null,s("screen-reader.correct-answer")));return"vertical"===a?i.a.createElement("div",{className:"e-mrg-b-1"},i.a.createElement("label",{className:Kr()("e-columns",{"e-correct-answer-left":o,"e-columns--inline":null==he(n,["image","video"])})},i.a.createElement(f,{narrow:!0}))):i.a.createElement("div",{className:"e-column e-mrg-b-1"},i.a.createElement("label",{className:Kr()("e-block e-text-center",{"e-correct-answer-bottom":o})},i.a.createElement(f,null)))}var zh=i.a.memo((function({element:e,renderChildNodes:t}){const{answersByQuestionId:n,gradingStructure:a}=Object(r.useContext)(kh),o=be(e,"question-id"),s=n[o],l=e.getAttribute("direction")||"vertical",c=e.getAttribute("class"),u=Dh(a,o),f=s&&u.options.find(e=>e.id===Number(s.value)).score,d=be(e,"max-score");return i.a.createElement(i.a.Fragment,null,void 0!==f&&i.a.createElement(Ph,{score:f,maxScore:d}),i.a.createElement("div",{className:Kr()("e-choice-answer",c,{"e-columns":"horizontal"===l})},xe(e,e=>{const n=be(e,"option-id"),r=null!=s&&Number(s.value)===n,a=u.options.find(e=>e.id===n);return i.a.createElement(Rh,{element:e,renderChildNodes:t,questionId:o,key:n,direction:l,selected:r,isCorrect:a.correct})})))})),_h=tl&&new tl,Uh=_h?function(e,t){return _h.set(e,t),e}:ce;var Zh=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=uf(e.prototype),r=e.apply(n,t);return re(r)?r:n}};var Fh=function(e,t,n){var r=1&t,i=Zh(e);return function t(){var a=this&&this!==x.a&&this instanceof t?i:e;return a.apply(r?n:this,arguments)}},Gh=Math.max;var Bh=function(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,l=t.length,c=Gh(a-o,0),u=Array(l+c),f=!r;++s<l;)u[s]=t[s];for(;++i<o;)(f||i<a)&&(u[n[i]]=e[i]);for(;c--;)u[s++]=e[i++];return u},Yh=Math.max;var Wh=function(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,l=-1,c=t.length,u=Yh(a-s,0),f=Array(u+c),d=!r;++i<u;)f[i]=e[i];for(var p=i;++l<c;)f[p+l]=t[l];for(;++o<s;)(d||i<a)&&(f[p+n[o]]=e[i++]);return f};var Hh=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r};var Vh=function(){};function qh(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}qh.prototype=uf(Vh.prototype),qh.prototype.constructor=qh;var Qh=qh,Jh=_h?function(e){return _h.get(e)}:It,Xh={},Kh=Object.prototype.hasOwnProperty;var $h=function(e){for(var t=e.name+"",n=Xh[t],r=Kh.call(Xh,t)?n.length:0;r--;){var i=n[r],a=i.func;if(null==a||a==e)return i.name}return t};function eg(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}eg.prototype=uf(Vh.prototype),eg.prototype.constructor=eg;var tg=eg;var ng=function(e){if(e instanceof Qh)return e.clone();var t=new tg(e.__wrapped__,e.__chain__);return t.__actions__=Wu(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t},rg=Object.prototype.hasOwnProperty;function ig(e){if(D(e)&&!_(e)&&!(e instanceof Qh)){if(e instanceof tg)return e;if(rg.call(e,"__wrapped__"))return ng(e)}return new tg(e)}ig.prototype=Vh.prototype,ig.prototype.constructor=ig;var ag=ig;var og=function(e){var t=$h(e),n=ag[t];if("function"!=typeof n||!(t in Qh.prototype))return!1;if(e===n)return!0;var r=Jh(n);return!!r&&e===r[0]},sg=or(Uh),lg=/\{\n\/\* \[wrapped with (.+)\] \*/,cg=/,? & /;var ug=function(e){var t=e.match(lg);return t?t[1].split(cg):[]},fg=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;var dg=function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(fg,"{\n/* [wrapped with "+t+"] */\n")};var pg=function(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1};var hg=function(e){return e!=e};var gg=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1};var mg=function(e,t,n){return t==t?gg(e,t,n):pg(e,hg,n)};var yg=function(e,t){return!!(null==e?0:e.length)&&mg(e,t,0)>-1},vg=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];var bg=function(e,t){return v(vg,(function(n){var r="_."+n[0];t&n[1]&&!yg(e,r)&&e.push(r)})),e.sort()};var Ig=function(e,t,n){var r=t+"";return sr(e,dg(r,bg(ug(r),n)))};var xg=function(e,t,n,r,i,a,o,s,l,c){var u=8&t;t|=u?32:64,4&(t&=~(u?64:32))||(t&=-4);var f=[e,t,i,u?a:void 0,u?o:void 0,u?void 0:a,u?void 0:o,s,l,c],d=n.apply(void 0,f);return og(e)&&sg(d,f),d.placeholder=r,Ig(d,e,t)};var wg=function(e){return e.placeholder},Tg=Math.min;var Mg=function(e,t){for(var n=e.length,r=Tg(t.length,n),i=Wu(e);r--;){var a=t[r];e[r]=F(a,n)?i[a]:void 0}return e};var Ag=function(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n];o!==t&&"__lodash_placeholder__"!==o||(e[n]="__lodash_placeholder__",a[i++]=n)}return a};var Cg=function e(t,n,r,i,a,o,s,l,c,u){var f=128&n,d=1&n,p=2&n,h=24&n,g=512&n,m=p?void 0:Zh(t);return function y(){for(var v=arguments.length,b=Array(v),I=v;I--;)b[I]=arguments[I];if(h)var w=wg(y),T=Hh(b,w);if(i&&(b=Bh(b,i,a,h)),o&&(b=Wh(b,o,s,h)),v-=T,h&&v<u){var M=Ag(b,w);return xg(t,n,e,y.placeholder,r,b,M,l,c,u-v)}var A=d?r:this,C=p?A[t]:t;return v=b.length,l?b=Mg(b,l):g&&v>1&&b.reverse(),f&&c<v&&(b.length=c),this&&this!==x.a&&this instanceof y&&(C=m||Zh(C)),C.apply(A,b)}};var Eg=function(e,t,n){var r=Zh(e);return function i(){for(var a=arguments.length,o=Array(a),s=a,l=wg(i);s--;)o[s]=arguments[s];var c=a<3&&o[0]!==l&&o[a-1]!==l?[]:Ag(o,l);if((a-=c.length)<n)return xg(e,t,Cg,i.placeholder,void 0,o,c,void 0,void 0,n-a);var u=this&&this!==x.a&&this instanceof i?r:e;return er(u,this,o)}};var Ng=function(e,t,n,r){var i=1&t,a=Zh(e);return function t(){for(var o=-1,s=arguments.length,l=-1,c=r.length,u=Array(c+s),f=this&&this!==x.a&&this instanceof t?a:e;++l<c;)u[l]=r[l];for(;s--;)u[l++]=arguments[++o];return er(f,i?n:this,u)}},Sg=Math.min;var kg=function(e,t){var n=e[1],r=t[1],i=n|r,a=i<131,o=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!o)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var s=t[3];if(s){var l=e[3];e[3]=l?Bh(l,s,t[4]):s,e[4]=l?Ag(e[3],"__lodash_placeholder__"):t[4]}return(s=t[5])&&(l=e[5],e[5]=l?Wh(l,s,t[6]):s,e[6]=l?Ag(e[5],"__lodash_placeholder__"):t[6]),(s=t[7])&&(e[7]=s),128&r&&(e[8]=null==e[8]?t[8]:Sg(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e},jg=Math.max;var Dg=function(e,t,n,r,i,a,o,s){var l=2&t;if(!l&&"function"!=typeof e)throw new TypeError("Expected a function");var c=r?r.length:0;if(c||(t&=-97,r=i=void 0),o=void 0===o?o:jg(Jo(o),0),s=void 0===s?s:Jo(s),c-=i?i.length:0,64&t){var u=r,f=i;r=i=void 0}var d=l?void 0:Jh(e),p=[e,t,n,r,i,u,f,a,o,s];if(d&&kg(p,d),e=p[0],t=p[1],n=p[2],r=p[3],i=p[4],!(s=p[9]=void 0===p[9]?l?0:e.length:jg(p[9]-c,0))&&24&t&&(t&=-25),t&&1!=t)h=8==t||16==t?Eg(e,t,s):32!=t&&33!=t||i.length?Cg.apply(void 0,p):Ng(e,t,n,r);else var h=Fh(e,t,n);return Ig((d?Uh:sg)(h,p),e,t)};var Og=function(e,t,n){return t=n?void 0:t,t=e&&null==t?e.length:t,Dg(e,128,void 0,void 0,void 0,void 0,t)};var Lg=function(e){return Og(e,1)};var Pg=i.a.memo((function({element:e,renderChildNodes:t}){const{t:n}=Tr(),{answersByQuestionId:a,gradingStructure:o}=Object(r.useContext)(kh),{answers:s}=Object(r.useContext)(is),l=be(e,"question-id"),c=a[l],u=ye(e,e=>(null==c?void 0:c.value)===e.getAttribute("option-id")),f=Dh(o,l);if(u){const r=f.options.filter(e=>e.correct).map(e=>e.id),a=Array.from(e.children).filter(e=>r.includes(be(e,"option-id"))),o=r.includes(be(u,"option-id")),l=Tp(e.getAttribute("display-number")),d=c&&f.options.find(e=>e.id===Number(c.value)).score,p=be(e,"max-score");return i.a.createElement(i.a.Fragment,null,s.length>1&&i.a.createElement("sup",null,l),i.a.createElement("span",{className:Kr()("e-dropdown-answer__answered",{"e-dropdown-answer__answered--correct":o,"e-dropdown-answer__answered--wrong":!o})},i.a.createElement(uh,null,n("screen-reader.answer-begin")),t(u),i.a.createElement(uh,null,n("screen-reader.answer-end")),o&&i.a.createElement(uh,null,n("screen-reader.correct-answer"))),!o&&i.a.createElement("span",{className:"e-dropdown-answer__correct","aria-hidden":!0},function(e,t){if(0===t.length)return[];const n=new Array(2*t.length-1);for(let r=0;r<t.length-1;r++)n[2*r]=t[r],n[2*r+1]=e;return n[n.length-1]=t[t.length-1],n}(", ",Eu(a,Lg(t)))),null!=d&&i.a.createElement(Ph,{score:d,maxScore:p,displayNumber:l}))}return null}));const Rg=({i18nTitleKey:e,annotations:t})=>{const{t:n}=Tr();return t?i.a.createElement(i.a.Fragment,null,e&&i.a.createElement("h5",null,n(e)),i.a.createElement("ol",{className:"e-list-data e-pad-l-0 e-font-size-s"},t.map(({numbering:e,message:t})=>i.a.createElement("li",{"data-list-number":e,key:e},t)))):null};var zg=i.a.memo((function(){const{answers:e}=Object(r.useContext)(is),{scores:t,singleGrading:n}=Object(r.useContext)(kh),a=function(e,t){const n=[];for(let r=0;r<e.length;r++){const i=t(e[r],r);void 0!==i&&n.push(i)}return n}(e,e=>{const n=be(e,"question-id"),r=Oh(t,n);return r&&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))})(r)?[e,r]:void 0}),o=(t,n,r=0)=>Eu(t,([t,i])=>{var a,o,s;return null!==(s=null===(o=null===(a=i[n])||void 0===a?void 0:a.annotations)||void 0===o?void 0:o.filter(e=>e.message.length).map((n,i)=>({numbering:((e,t)=>e.length>1?Tp(t.getAttribute("display-number")):"")(e,t)+String(r+i+1)+")",message:n.message})))&&void 0!==s?s:[]}),s=o(a,"pregrading"),l=o(a,"censoring",s.length);return s.length||l.length?i.a.createElement("div",{className:"e-annotation-list e-columns e-mrg-t-2"},n?i.a.createElement("div",{className:"e-column e-column--10"},i.a.createElement(Rg,{annotations:s})):i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"e-column e-column--6"},i.a.createElement(Rg,{i18nTitleKey:"grading.pregrading-annotations",annotations:s})),i.a.createElement("div",{className:"e-column e-column--6"},i.a.createElement(Rg,{i18nTitleKey:"grading.censor-annotations",annotations:l})))):null}));var _g=i.a.memo(as((function({element:e,renderChildNodes:t}){const{answersByQuestionId:n}=Object(r.useContext)(kh),{displayNumber:a,level:o}=Object(r.useContext)(is);return function(e,t){return we(e).some(e=>t[be(e,"question-id")])}(e,n)?i.a.createElement("div",{className:Kr()("exam-question",{"e-mrg-b-8 e-clearfix":0===o,"e-mrg-l-8 e-mrg-y-4":o>0}),id:a},t(e),i.a.createElement(zg,null)):null})));var Ug=i.a.memo((function({element:e,renderChildNodes:t}){const{displayNumber:n,level:a,maxAnswers:o,childQuestions:s}=Object(r.useContext)(is),l="h"+Math.min(3+a,6);return i.a.createElement(i.a.Fragment,null,i.a.createElement(l,{className:Kr()("exam-question-title",{"e-normal e-font-size-m":a>0})},i.a.createElement("strong",{className:Kr()("exam-question-title__display-number",{"exam-question-title__display-number--indented":a>0})},ls(n)+" "),t(e)),null!=o&&s.length>0&&i.a.createElement("p",{className:"e-italic"},i.a.createElement(yp,null),i.a.createElement(cp,{maxAnswers:o,childQuestions:s,type:"question"})))}));var Zg=i.a.memo(gs((function({element:e,renderChildNodes:t}){const{displayNumber:n}=Object(r.useContext)(hs),{answersByQuestionId:a}=Object(r.useContext)(kh);return he(e,e=>{const t=e.getAttribute("question-id");return null!=t&&Object.prototype.hasOwnProperty.call(a,t)})?i.a.createElement(os,{"aria-labelledby":Sr(n)},i.a.createElement("div",{className:"e-results-section-wrapper"},t(e))):null})));function Fg(e,t,n){const r=[...t,...n],i=r.filter(e=>e.message);for(const n of r){const r=t.includes(n)?"pregrading":"censoring",a=i.indexOf(n)+1||void 0;switch(n.type){case"line":case"rect":Gg(e,n,r,a);break;default:Bg(e,n,r,a)}}}function Gg(e,t,n,r){const{attachmentIndex:i}=t,a=e.querySelectorAll("img")[i],o=function(){const e=a.parentElement;if(e instanceof HTMLSpanElement)return e;const t=Te("span",{className:"e-annotation-wrapper"});return e.insertBefore(t,a),t.appendChild(a),t}(),s=function(){const e=Te("mark",{className:Kr()("e-annotation e-annotation--shape",{"e-annotation--pregrading":"pregrading"===n,"e-annotation--censoring":"censoring"===n}),title:t.message}),i=e.style,a=e=>100*e+"%";"rect"===t.type?(i.left=a(t.x),i.top=a(t.y),i.right=a(1-(t.x+t.width)),i.bottom=a(1-(t.y+t.height))):(i.left=a(t.x1),i.top=a(t.y1),i.right=a(1-t.x2),i.bottom=a(1-t.y2));r&&e.appendChild(Yg(r,"shape"));return e}();o.appendChild(s)}function Bg(e,t,n,r){const{startIndex:i,length:a}=t;return function e(c,u,f){var d;if(!o(c)&&!function(e){return"SUP"===e.nodeName}(c)&&!function(e){return"BR"===e.nodeName}(c)&&u>=i){const i=Te("mark",{className:Kr()("e-annotation",{"e-annotation--pregrading":"pregrading"===n,"e-annotation--censoring":"censoring"===n}),title:t.message});null===(d=c.parentElement)||void 0===d||d.insertBefore(i,c);const p=function e(t,n,r){if(!n||o(n)||0===r)return r;n instanceof Text&&l(n)>0&&l(n)>r&&n.splitText(r);const i=n.nextSibling;return t.appendChild(n),e(t,i,r-l(n))}(i,c,f);p>0?e(s(i),u+a-p,p):r&&i.appendChild(Yg(r,"text"))}else c instanceof Text&&u+l(c)>i&&c.splitText(i-u),e(function(e){return o(e)?e.childNodes[0]:s(e)}(c),u+l(c),f)}(e.childNodes[0],0,a);function o(e){return"MARK"===e.nodeName}function s(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 s(r)}function l(e){return e instanceof Text?e.length:function(e){return"IMG"===e.nodeName||"SPAN"===e.nodeName}(e)?1:0}}function Yg(e,t){const n=e+")";return Te("sup",{className:"e-annotation__index e-annotation__index--"+t,"data-content":n},..."text"===t?[]:n)}var Wg=i.a.memo((function({displayNumber:e,score:t,value:n,children:a}){const{t:o}=Tr(),s=Object(r.useRef)(null);return Object(r.useLayoutEffect)(()=>{var e,n,r,i;s.current&&Fg(s.current,null!==(n=null===(e=null==t?void 0:t.pregrading)||void 0===e?void 0:e.annotations)&&void 0!==n?n:[],null!==(i=null===(r=null==t?void 0:t.censoring)||void 0===r?void 0:r.annotations)&&void 0!==i?i:[])}),i.a.createElement(i.a.Fragment,null,e&&i.a.createElement("sup",null,e),i.a.createElement("span",{className:"text-answer text-answer--single-line"},i.a.createElement(uh,null,o("screen-reader.answer-begin")),i.a.createElement("span",{className:"e-inline-block",ref:s},n),i.a.createElement(uh,null,o("screen-reader.answer-end"))),a)}));var Hg=i.a.memo((function({element:e}){var t;const{answers:n}=Object(r.useContext)(is),{answersByQuestionId:a,scores:o}=Object(r.useContext)(kh),s=be(e,"question-id"),l=be(e,"max-score"),c=a[s],u=c&&c.value,f=Tp(e.getAttribute("display-number")),d=null===(t=Oh(o,s))||void 0===t?void 0:t.autograding;return i.a.createElement(Wg,{answers:n,displayNumber:f,value:u},i.a.createElement(Ph,{score:null==d?void 0:d.score,maxScore:l,displayNumber:n.length>1?f:void 0}))}));function Vg({maxScore:e}){const{t:t}=Tr();return i.a.createElement(i.a.Fragment,null,i.a.createElement("span",{className:"e-result-scorecount-empty"}),e&&` / ${e} `,t("points"))}function qg({shortCode:e}){return i.a.createElement("div",{className:"e-color-darkgrey e-columns e-columns--center-v"},i.a.createElement("span",{className:"e-font-size-xxxl e-light e-mrg-r-1"},"×"),i.a.createElement("span",null,e))}function Qg({score:e,shortCode:t,type:n,maxScore:r,latest:a}){return i.a.createElement("div",{className:a?"e-color-black":"e-color-darkgrey e-font-size-xs"},i.a.createElement(Jg,{className:Kr()("e-nowrap",{"e-font-size-m":a})},a?i.a.createElement("b",null,e):e,a&&r?" / "+r:""," p."),i.a.createElement(Jg,{className:"e-result-scorecount-shortcode"},t),i.a.createElement(Jg,{className:"e-mrg-r-0"},n))}function Jg({className:e,children:t}){return i.a.createElement("span",{className:Kr()("e-mrg-r-1 e-nowrap",e)},t)}function Xg({score:e}){return void 0!==e?{score:e,shortCode:"",type:"va"}:null}function Kg(e){return e.scores.map((t,n)=>({score:t.score,shortCode:t.shortCode||"",type:e.scores.length-n+".s"}))}var $g=i.a.memo((function({scores:e,maxScore:t,displayNumber:n,multilineAnswer:a}){var o,s,l,c,u;const{answers:f}=Object(r.useContext)(is),d={answers:f,displayNumber:n,multilineAnswer:a},p=null===(s=null===(o=null==e?void 0:e.censoring)||void 0===o?void 0:o.nonAnswerDetails)||void 0===s?void 0:s.shortCode;return i.a.createElement(Lh,{...d},null!=(null===(l=null==e?void 0:e.pregrading)||void 0===l?void 0:l.score)||(null===(u=null===(c=null==e?void 0:e.censoring)||void 0===c?void 0:c.scores)||void 0===u?void 0:u.length)?i.a.createElement(i.a.Fragment,null,function(e,t){return[e.inspection&&(n=e.inspection,{score:n.score,shortCode:n.shortCodes?n.shortCodes.join(", "):"",type:"ta"}),...e.censoring?Kg(e.censoring):[],e.pregrading&&Xg(e.pregrading)].filter(Boolean).map((e,n)=>i.a.createElement(Qg,{key:n,...e,latest:0===n,maxScore:t}));var n}(e,t),p&&i.a.createElement(qg,{shortCode:p})):i.a.createElement(Vg,{maxScore:t}))}));const em=({type:e,score:t,value:n})=>{const{t:a}=Tr(),o=Object(r.useRef)(null);return Object(r.useLayoutEffect)(()=>{var e,n,r,i;o.current&&Fg(o.current,null!==(n=null===(e=null==t?void 0:t.pregrading)||void 0===e?void 0:e.annotations)&&void 0!==n?n:[],null!==(i=null===(r=null==t?void 0:t.censoring)||void 0===r?void 0:r.annotations)&&void 0!==i?i:[])}),i.a.createElement("div",{className:"e-multiline-results-text-answer e-line-height-l e-pad-l-2 e-mrg-b-1"},i.a.createElement(uh,null,a("screen-reader.answer-begin")),"rich-text"===e?i.a.createElement("div",{dangerouslySetInnerHTML:{__html:n||""},ref:o}):i.a.createElement("div",{className:"e-pre-wrap",ref:o},n),i.a.createElement(uh,null,a("screen-reader.answer-end")))};var tm=i.a.memo((function({element:e}){var t;const{answers:n}=Object(r.useContext)(is),{answersByQuestionId:a,scores:o}=Object(r.useContext)(kh),{t:s}=Tr(),l=be(e,"question-id"),c=be(e,"max-score"),u=a[l],f=u&&u.value,d=n.length>1?Tp(e.getAttribute("display-number")):void 0,p=Oh(o,l),h=null===(t=null==p?void 0:p.pregrading)||void 0===t?void 0:t.comment,g=e.getAttribute("type")||"single-line";switch(g){case"rich-text":case"multi-line":return i.a.createElement(i.a.Fragment,null,i.a.createElement($g,{multilineAnswer:!0,scores:p,maxScore:c}),i.a.createElement(em,{type:g,value:f,score:p}),i.a.createElement(qf,{answer:u,element:e}),h&&i.a.createElement(i.a.Fragment,null,i.a.createElement("h5",null,s("comment")),i.a.createElement("p",{className:"e-italic"},h)));case"single-line":default:return i.a.createElement(Wg,{answers:n,score:p,displayNumber:d,value:f},i.a.createElement($g,{scores:p,maxScore:c,displayNumber:d}))}}));const nm=Ae({attachment:Lo,"attachment-link":Wr("plain"),"attachment-links":Hr("plain"),"audio-group":Lo,"choice-answer":zh,"dropdown-answer":Pg,formula:ko,question:_g,hints:Lo,image:wh(({element:e})=>null!=me(e,"choice-answer"))(Oo),"question-instruction":mp,"question-title":Ug,section:Zg,"section-title":wp,"text-answer":tm,"scored-text-answer":Hg,"scored-text-answers":Lo});function rm(){const{gradingText:e,totalScore:t}=Object(r.useContext)(kh),{t:n}=Tr();return i.a.createElement("div",{className:"e-column--narrow"},i.a.createElement("table",{className:"e-table e-table--borderless e-mrg-b-0"},i.a.createElement("tbody",null,i.a.createElement("tr",null,i.a.createElement("th",{className:"e-pad-y-0 e-normal"},n("grading-total")),i.a.createElement("td",{className:"e-pad-y-0 e-semibold e-text-right"},n("points",{count:t}))),e&&i.a.createElement("tr",null,i.a.createElement("th",{className:"e-pad-y-0 e-normal"},n("grade")),i.a.createElement("td",{className:"e-pad-y-0 e-semibold e-text-right"},e)))))}var im=i.a.memo(jh(Yr(()=>{const{date:e,dateTimeFormatter:t,dayCode:n,examCode:a,language:o,resolveAttachment:s,root:l,subjectLanguage:c}=Object(r.useContext)(Br),u=ye(l,"exam-title"),f=l.getAttribute("exam-stylesheet"),d=_r(()=>wr(o,a,n));return Object(r.useEffect)(Mr(d,o)),Object(r.useEffect)(zr,[]),i.a.createElement(y,{i18n:d},i.a.createElement("main",{className:"e-exam",lang:c},i.a.createElement(i.a.StrictMode,null),f&&i.a.createElement("link",{rel:"stylesheet",href:s(f)}),i.a.createElement("div",{className:"e-columns e-columns--bottom-v e-mrg-b-4"},u&&i.a.createElement(us,{id:"title",className:"e-column e-mrg-b-0"},nm(u),e&&", "+t.format(e)),i.a.createElement(rm,null)),nm(l)))}))),am=Math.max;var om=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Jo(n);return i<0&&(i=am(r+i,0)),pg(e,xl(t,3),i)},sm=Math.max,lm=Math.min;var cm=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=Jo(n),i=n<0?sm(r+i,0):lm(i,r-1)),pg(e,xl(t,3),i,!0)};var um=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:If(e,t,n)};var fm=function(e,t){for(var n=-1,r=e.length;++n<r&&mg(t,e[n],0)>-1;);return n};var dm=function(e){return e.split("")},pm=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var hm=function(e){return pm.test(e)},gm="[\\ud800-\\udfff]",mm="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",ym="\\ud83c[\\udffb-\\udfff]",vm="[^\\ud800-\\udfff]",bm="(?:\\ud83c[\\udde6-\\uddff]){2}",Im="[\\ud800-\\udbff][\\udc00-\\udfff]",xm="(?:"+mm+"|"+ym+")"+"?",wm="[\\ufe0e\\ufe0f]?"+xm+("(?:\\u200d(?:"+[vm,bm,Im].join("|")+")[\\ufe0e\\ufe0f]?"+xm+")*"),Tm="(?:"+[vm+mm+"?",mm,bm,Im,gm].join("|")+")",Mm=RegExp(ym+"(?="+ym+")|"+Tm+wm,"g");var Am=function(e){return e.match(Mm)||[]};var Cm=function(e){return hm(e)?Am(e):dm(e)},Em=/^\s+/;var Nm=function(e,t,n){if((e=Pn(e))&&(n||void 0===t))return e.replace(Em,"");if(!e||!(t=Ln(t)))return e;var r=Cm(e),i=fm(r,Cm(t));return um(r,i).join("")};var Sm=function(e,t){for(var n=e.length;n--&&mg(t,e[n],0)>-1;);return n};var km=function(e,t,n){if((e=Pn(e))&&(n||void 0===t))return e.slice(0,Fo(e)+1);if(!e||!(t=Ln(t)))return e;var r=Cm(e),i=Sm(r,Cm(t))+1;return um(r,0,i).join("")};function jm(e,t=!1){const n=(new DOMParser).parseFromString(e,"application/xml");return t||ge(n.documentElement,["choice-answer","dropdown-answer"]).filter(e=>"fixed"!==ve(e,"ordering")).forEach(Dm),ge(n.documentElement,"reference").forEach(e=>{ge(e,()=>!0,!1).forEach(Om)}),n}function Dm(e){for(let t=e.children.length;t>0;t--){const n=Math.floor(Math.random()*t);e.appendChild(e.children[n])}const t=ye(e,e=>"no-answer"===ve(e,"type"));t&&e.appendChild(t)}function Om(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=om(n,t),i=cm(n,t);-1!==r&&(n.slice(0,r).forEach(e=>e.remove()),n[r].textContent=Nm(n[r].textContent)),-1!==i&&(n.slice(i+1).forEach(e=>e.remove()),n[i].textContent=km(n[i].textContent))}}])}));
90
+ */(t,r)?"saving":"saved"};var ra={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"]},ia={prefix:"fas",iconName:"chevron-up",icon:[448,512,[],"f077","M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"]},aa={prefix:"fas",iconName:"exclamation-triangle",icon:[576,512,[],"f071","M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"]},oa={prefix:"fas",iconName:"eye",icon:[576,512,[],"f06e","M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"]},sa={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"]},la={prefix:"fas",iconName:"info-circle",icon:[512,512,[],"f05a","M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"]},ca={prefix:"fas",iconName:"play",icon:[448,512,[],"f04b","M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"]},ua=n(15);function fa(e){return(fa="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})(e)}function da(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pa(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 ha(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pa(Object(n),!0).forEach((function(t){da(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ga(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ma(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function ya(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}function va(e){return e.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),i=ya(t.slice(0,r)),a=t.slice(r+1).trim();return i.startsWith("webkit")?e[(n=i,n.charAt(0).toUpperCase()+n.slice(1))]=a:e[i]=a,e}),{})}var ba=!1;try{ba=!0}catch(e){}function Ia(e){return e&&"object"===fa(e)&&e.prefix&&e.iconName&&e.icon?e:ua.b.icon?ua.b.icon(e):null===e?null:e&&"object"===fa(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 xa(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?da({},e,t):{}}function wa(e){var t=e.forwardedRef,n=ga(e,["forwardedRef"]),r=n.icon,i=n.mask,a=n.symbol,o=n.className,s=n.title,l=n.titleId,c=Ia(r),u=xa("classes",[].concat(ma(function(e){var t,n=e.spin,r=e.pulse,i=e.fixedWidth,a=e.inverse,o=e.border,s=e.listItem,l=e.flip,c=e.size,u=e.rotation,f=e.pull,d=(da(t={"fa-spin":n,"fa-pulse":r,"fa-fw":i,"fa-inverse":a,"fa-border":o,"fa-li":s,"fa-flip-horizontal":"horizontal"===l||"both"===l,"fa-flip-vertical":"vertical"===l||"both"===l},"fa-".concat(c),null!=c),da(t,"fa-rotate-".concat(u),null!=u&&0!==u),da(t,"fa-pull-".concat(f),null!=f),da(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(d).map((function(e){return d[e]?e:null})).filter((function(e){return e}))}(n)),ma(o.split(" ")))),f=xa("transform","string"==typeof n.transform?ua.b.transform(n.transform):n.transform),d=xa("mask",Ia(i)),p=Object(ua.a)(c,ha({},u,{},f,{},d,{symbol:a,title:s,titleId:l}));if(!p)return function(){var e;!ba&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",c),null;var h=p.abstract,g={ref:t};return Object.keys(n).forEach((function(e){wa.defaultProps.hasOwnProperty(e)||(g[e]=n[e])})),Ta(h[0],g)}wa.displayName="FontAwesomeIcon",wa.propTypes={border:ei.a.bool,className:ei.a.string,mask:ei.a.oneOfType([ei.a.object,ei.a.array,ei.a.string]),fixedWidth:ei.a.bool,inverse:ei.a.bool,flip:ei.a.oneOf(["horizontal","vertical","both"]),icon:ei.a.oneOfType([ei.a.object,ei.a.array,ei.a.string]),listItem:ei.a.bool,pull:ei.a.oneOf(["right","left"]),pulse:ei.a.bool,rotation:ei.a.oneOf([0,90,180,270]),size:ei.a.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:ei.a.bool,symbol:ei.a.oneOfType([ei.a.bool,ei.a.string]),title:ei.a.string,transform:ei.a.oneOfType([ei.a.string,ei.a.object]),swapOpacity:ei.a.bool},wa.defaultProps={border:!1,className:"",mask:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,symbol:!1,title:"",transform:null,swapOpacity:!1};var Ta=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)})),a=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=va(r);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[ya(t)]=r}return e}),{attrs:{}}),o=r.style,s=void 0===o?{}:o,l=ga(r,["style"]);return a.attrs.style=ha({},a.attrs.style,{},s),t.apply(void 0,[n.tag,ha({},a.attrs,{},l)].concat(ma(i)))}.bind(null,i.a.createElement),Ma=!("undefined"==typeof window||!window.document||!window.document.createElement),Aa=(new Date).getTime();var Ca=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-Aa)),r=setTimeout(e,n);return Aa=t,r},Ea=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};Ma&&["","webkit","moz","o","ms"].some((function(e){var t=Ea(e,"request");return t in window&&(Ea(e,"cancel"),Ca=function(e){return window[t](e)}),!!Ca}));var Na=Ca;function Sa(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 ka(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function ja(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=ka(e.className,t):e.setAttribute("class",ka(e.className&&e.className.baseVal||"",t))}function Da(e){var t=function(e){return e&&e.ownerDocument||document}(e);return t&&t.defaultView||window}var Oa=/([A-Z])/g;var La=/^ms-/;function Pa(e){return function(e){return e.replace(Oa,"-$1").toLowerCase()}(e).replace(La,"-ms-")}var Ra=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;var za=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(Pa(t))||function(e,t){return Da(e).getComputedStyle(e,t)}(e).getPropertyValue(Pa(t));Object.keys(t).forEach((function(i){var a=t[i];a||0===a?!function(e){return!(!e||!Ra.test(e))}(i)?n+=Pa(i)+": "+a+";":r+=i+"("+a+") ":e.style.removeProperty(Pa(i))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n},_a=!1,Ua=!1;try{var Za={get passive(){return _a=!0},get once(){return Ua=_a=!0}};Ma&&(window.addEventListener("test",Za,Za),window.removeEventListener("test",Za,!0))}catch(e){}var Fa=function(e,t,n,r){if(r&&"boolean"!=typeof r&&!Ua){var i=r.once,a=r.capture,o=n;!Ua&&i&&(o=n.__once||function e(r){this.removeEventListener(t,e,a),n.call(this,r)},n.__once=o),e.addEventListener(t,o,_a?r:a)}e.addEventListener(t,n,r)};var Ga=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)};var Ba=function(e,t,n,r){return Fa(e,t,n,r),function(){Ga(e,t,n,r)}};function Ya(e,t,n){void 0===n&&(n=5);var r=!1,i=setTimeout((function(){r||function(e){var t=document.createEvent("HTMLEvents");t.initEvent("transitionend",!0,!0),e.dispatchEvent(t)}(e)}),t+n),a=Ba(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(i),a()}}function Wa(e,t,n,r){var i,a;null==n&&(i=za(e,"transitionDuration")||"",a=-1===i.indexOf("ms")?1e3:1,n=parseFloat(i)*a||0);var o=Ya(e,n,r),s=Ba(e,"transitionend",t);return function(){o(),s()}}function Ha(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 Va=ei.a.oneOfType([ei.a.string,ei.a.shape({enter:ei.a.string,leave:ei.a.string,active:ei.a.string,height:ei.a.string}),ei.a.shape({enter:ei.a.string,enterActive:ei.a.string,leave:ei.a.string,leaveActive:ei.a.string,appear:ei.a.string,appearActive:ei.a.string,height:ei.a.string,heightActive:ei.a.string})]);function qa(e){return(qa="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})(e)}function Qa(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 Ja(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 Xa(e,t){return(Xa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ka(e){var t=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}}();return function(){var n,r=to(e);if(t){var i=to(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return $a(this,n)}}function $a(e,t){return!t||"object"!==qa(t)&&"function"!=typeof t?eo(e):t}function eo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function to(e){return(to=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function no(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ro=[];Wa&&ro.push(Wa);var io={children:ei.a.node,name:Va.isRequired,appear:ei.a.bool,enter:ei.a.bool,leave:ei.a.bool,appearTimeout:ei.a.number,enterTimeout:ei.a.number,leaveTimeout:ei.a.number},ao=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&&Xa(e,t)}(o,e);var t,n,r,a=Ka(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),no(eo(t=a.call(this,e)),"componentWillAppear",(function(e){t.props.appear?t.transition("appear",e,t.props.appearTimeout):e()})),no(eo(t),"componentWillEnter",(function(e){t.props.enter?t.transition("enter",e,t.props.enterTimeout):e()})),no(eo(t),"componentWillLeave",(function(e){t.props.leave?t.transition("leave",e,t.props.leaveTimeout):e()})),t.classNameAndNodeQueue=[],t.transitionTimeouts=[],t}return t=o,(n=[{key:"componentWillUnmount",value:function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach((function(e){clearTimeout(e)})),this.classNameAndNodeQueue.length=0}},{key:"transition",value:function(e,t,n){var r=Object(Ji.findDOMNode)(this);if(r){var i,a=this.props.name[e]||this.props.name+"-"+e,o=this.props.name[e+"Active"]||a+"-active",s=null;Sa(r,a),this.queueClassAndNode(o,r);var l=function(e){e&&e.target!==r||(clearTimeout(s),i&&i(),ja(r,a),ja(r,o),i&&i(),t&&t())};n?(s=setTimeout(l,n),this.transitionTimeouts.push(s)):Wa&&(i=function(e,t){return ro.length?ro.forEach((function(n){return e.addEventListener(n,t,!1)})):setTimeout(t,0),function(){ro.length&&ro.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=Na((function(){return n.flushClassNameAndNodeQueueOnNextFrame()})))}},{key:"flushClassNameAndNodeQueueOnNextFrame",value:function(){var e=this;this.rafHandle=Na((function(){return e.flushClassNameAndNodeQueue()}))}},{key:"flushClassNameAndNodeQueue",value:function(){this.unmounted||this.classNameAndNodeQueue.forEach((function(e){e.node.scrollTop,Sa(e.node,e.className)})),this.classNameAndNodeQueue.length=0,this.rafHandle=null}},{key:"render",value:function(){var e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qa(Object(n),!0).forEach((function(t){no(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},this.props);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,i.a.cloneElement(i.a.Children.only(this.props.children),e)}}])&&Ja(t.prototype,n),r&&Ja(t,r),o}(i.a.Component);no(ao,"displayName","CSSTransitionGroupChild"),ao.propTypes=io;var oo=ao;function so(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function lo(e){return(lo="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})(e)}function co(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 uo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?co(Object(n),!0).forEach((function(t){vo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):co(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fo(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 po(e,t){return(po=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ho(e){var t=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}}();return function(){var n,r=yo(e);if(t){var i=yo(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return go(this,n)}}function go(e,t){return!t||"object"!==lo(t)&&"function"!=typeof t?mo(e):t}function mo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yo(e){return(yo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bo=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&&po(e,t)}(o,e);var t,n,r,a=ho(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),vo(mo(t=a.call(this,e)),"handleDoneAppearing",(function(e){delete t.transitioningKeys[e],e!==t.state.currentKey&&t.performLeave(e)})),vo(mo(t),"performLeave",(function(e){t.transitioningKeys[e]=!0,t.childRefs[e].componentWillLeave(t.handleDoneLeaving.bind(mo(t),e)),t.state.currentChild&&Object(Ji.findDOMNode)(t.childRefs[t.state.currentKey])||t.enqueueHeightTransition()})),vo(mo(t),"performHeightTransition",(function(){if(!t.unmounted){var e=mo(t).state,n=e.currentChild?Object(Ji.findDOMNode)(t.childRefs[e.currentKey]):null;t.setState({height:n?n.offsetHeight:0,width:t.props.changeWidth?n?n.offsetWidth:0:null})}t.rafHandle=null})),t.childRefs=Object.create(null),t.state={currentKey:"1",currentChild:t.props.children?i.a.Children.only(t.props.children):void 0,prevChildren:{},height:null,width:null},t.shouldEnterCurrent=!1,t.keysToLeave=[],t.transitioningKeys={},t}return t=o,(n=[{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 t=e.children?i.a.Children.only(e.children):void 0,n=this.state.currentChild;if(n&&t&&t.key===n.key&&!this.state.nextChild)return this.setState({currentChild:t});var r=this.state,a=r.currentKey,o=r.prevChildren,s={currentKey:String(Number(a)+1),currentChild:t,height:0,width:this.props.changeWidth?0:null};if(t&&(this.shouldEnterCurrent=!0),n){var l=Object(Ji.findDOMNode)(this.childRefs[a]);s.height=l?l.offsetHeight:0,s.width=this.props.changeWidth?l?l.offsetWidth:0:null,s.prevChildren=uo(uo({},o),{},vo({},a,n)),this.transitioningKeys[a]||this.keysToLeave.push(a)}this.setState(s)}},{key:"componentDidUpdate",value:function(){this.shouldEnterCurrent&&(this.shouldEnterCurrent=!1,Object(Ji.findDOMNode)(this.childRefs[this.state.currentKey])&&this.performEnter(this.state.currentKey));var e=this.keysToLeave;this.keysToLeave=[],e.forEach(this.performLeave)}},{key:"performAppear",value:function(e){this.transitioningKeys[e]=!0,this.childRefs[e].componentWillAppear(this.handleDoneAppearing.bind(this,e))}},{key:"performEnter",value:function(e){this.transitioningKeys[e]=!0,this.childRefs[e].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){delete this.transitioningKeys[e];var t={prevChildren:uo({},this.state.prevChildren)};delete t.prevChildren[e],delete this.childRefs[e],this.state.currentChild&&Object(Ji.findDOMNode)(this.childRefs[this.state.currentKey])||(t.height=null),this.setState(t)}},{key:"enqueueHeightTransition",value:function(){this.rafHandle||(this.rafHandle=Na(this.performHeightTransition))}},{key:"wrapChild",value:function(e,t){var n=this.props.transitionName;return"object"===lo(n)&&null!==n&&delete(n=uo({},n)).height,i.a.createElement(oo,uo({name:n,appear:this.props.transitionAppear,enter:this.props.transitionEnter,leave:this.props.transitionLeave,appearTimeout:this.props.transitionAppearTimeout,enterTimeout:this.props.transitionEnterTimeout,leaveTimeout:this.props.transitionLeaveTimeout},t),e)}},{key:"render",value:function(){var e=this,t=this.state,n=t.currentKey,r=t.currentChild,a=t.prevChildren,o=t.height,s=t.width,l=[],c=this.props,u=c.overflowHidden,f=c.transitionName,d=c.component,p=c.childComponent,h=c.notifyLeaving,g=(c.transitionAppear,c.transitionEnter,c.transitionLeave,c.changeWidth,c.transitionAppearTimeout,c.transitionEnterTimeout,c.transitionLeaveTimeout,so(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=uo({},g.style),m&&(g.style.position="relative",u&&(g.style.overflow="hidden")),null!==o){var y="string"==typeof f?"".concat(f,"-height"):f&&f.height||"";g.className="".concat(g.className||""," ").concat(y),g.style.height=o}null!==s&&(g.style.width=s);var v={position:"absolute",top:0,left:0,right:0,bottom:0,userSelect:"none"};return Object.keys(a).forEach((function(t){var n=a[t];l.push(i.a.createElement(p,{key:t,style:v},e.wrapChild(h&&"string"!=typeof n.type?i.a.cloneElement(n,{isLeaving:!0}):n,{ref:function(n){return e.childRefs[t]=n}})))})),r&&l.push(i.a.createElement(p,{key:n,style:this.transitioningKeys[n]?v:m?{position:"relative"}:null},this.wrapChild(r,{ref:function(t){return e.childRefs[n]=t}}))),i.a.createElement(d,g,l)}}])&&fo(t.prototype,n),r&&fo(t,r),o}(i.a.Component);vo(bo,"displayName","ReactCSSTransitionReplace"),vo(bo,"propTypes",{transitionName:Va.isRequired,transitionAppear:ei.a.bool,transitionEnter:ei.a.bool,transitionLeave:ei.a.bool,transitionAppearTimeout:Ha("Appear"),transitionEnterTimeout:Ha("Enter"),transitionLeaveTimeout:Ha("Leave"),overflowHidden:ei.a.bool,changeWidth:ei.a.bool,notifyLeaving:ei.a.bool}),vo(bo,"defaultProps",{transitionAppear:!1,transitionEnter:!0,transitionLeave:!0,overflowHidden:!0,changeWidth:!1,notifyLeaving:!1,component:"div",childComponent:"span"});var Io=({error:e,children:t})=>{const{t:n}=Tr();return i.a.createElement(bo,{transitionName:"e-crossfade",transitionEnterTimeout:500,transitionLeaveTimeout:500},null!=e?i.a.createElement("div",{className:"e-color-error",role:"alert"},i.a.createElement(wa,{icon:aa,className:"e-mrg-r-1"}),n("audio-errors."+e)):i.a.createElement("div",{key:"no-error"},t))},xo=n(5);const wo=e=>Object(xo.action)("PLAY_AUDIO",e),To=e=>Object(xo.action)("UPDATE_REMAINING",e);var Mo=i.a.memo((function({src:e,restrictedAudioId:t,duration:n,times:r,labelId:a}){const o=Qi(Ki(e,t)),s=Qi(((e,t)=>n=>"playing"===Ki(e,t)(n)?n.audio.nowPlaying.durationRemaining:void 0)(e,t)),l=Qi(ta(t,r)),{i18n:c,t:u}=Tr(),f=Wi(),d="stopped"!==o||0===l,p="audio-remaining-"+t;return i.a.createElement("div",{className:Kr()("restricted-audio-player e-column e-column--narrow e-columns e-columns--inline e-columns--center-v e-pad-1",{"restricted-audio-player--disabled":d}),lang:c.language},i.a.createElement("button",{className:Kr()("restricted-audio-player__play e-column e-column--narrow",{"restricted-audio-player__play--playing":"playing"===o}),disabled:d,onClick:()=>"stopped"===o&&f(wo({src:e,restrictedAudioId:t,duration:n})),"aria-describedby":[p,a].join(" "),"aria-label":u.raw("audio.play")},"playing"!==o&&i.a.createElement(wa,{icon:ca,fixedWidth:!0})),i.a.createElement("span",{className:"restricted-audio-player__duration e-column e-text-right",id:p},function(e){const t=Math.floor(e/60),n=e%60;return Ao(t)+":"+Ao(n)}(null!=s?s:n)))}));function Ao(e){return e.toString().padStart(2,"0")}var Co=i.a.memo((function({element:e,className:t,renderChildNodes:n}){const a=e.getAttribute("src"),o=be(e,"restricted-audio-id"),s=be(e,"times"),l=be(e,"duration"),{t:c}=Tr(),u=null!=s&&null!=o?Qi($i(a,o)):void 0,f=null!=s&&null!=o?Qi(ta(o,s)):void 0,{resolveAttachment:d}=Object(r.useContext)(Br),p=Rr(e);return i.a.createElement("div",{className:Kr()("audio e-columns e-columns--center-v e-mrg-b-2",t)},null!=o&&null!=s?i.a.createElement(Mo,{src:a,restrictedAudioId:o,duration:l,times:s,labelId:p}):i.a.createElement("audio",{className:"e-column e-column--narrow","aria-describedby":p,preload:"metadata",controls:!0,controlsList:"nodownload"},i.a.createElement("source",{src:d(a)})),i.a.createElement("div",{className:"e-column",id:p},i.a.createElement(Io,{error:u},n(e)),null!=f&&i.a.createElement("em",null,c("listen-times-remaining",{count:f}))))}));const Eo=Ae({attachment:qr((function({element:e}){const{displayNumber:t}=Object(r.useContext)(Vr);return i.a.createElement("li",{"data-list-number":t,"aria-label":t},Eo(e,1))})),"attachment-title":function({element:e}){const{attachmentsURL:t}=Object(r.useContext)(Br),{displayNumber:n}=Object(r.useContext)(Vr);return i.a.createElement("a",{href:Ur(t,{hash:n}),className:"exam-attachment-title",target:"attachments"},Eo(e))}});var No=i.a.memo((function({element:e,showTitle:t=!0,forceRender:n=!1}){if(null==me(e,"question")&&!n)return null;const{t:r}=Tr(),a=jr(e);return i.a.createElement("div",{className:"external-material-list e-mrg-b-4"},t&&i.a.createElement("div",{className:"e-font-size-l e-semibold",id:a},r("external-material-title")),i.a.createElement("ol",{className:"e-list-data e-pad-l-0 e-mrg-0","aria-labelledby":a},Eo(e)))}));var So=i.a.memo((function({element:e,className:t,renderChildNodes:n}){const a=e.getAttribute("src"),o=e.hasChildNodes(),{resolveAttachment:s}=Object(r.useContext)(Br);return i.a.createElement("a",{className:Kr()("file e-nowrap",t),href:s(a),download:!0},o?i.a.createElement(i.a.Fragment,null,n(e)," (",a,")"):a)}));var ko=i.a.memo((function({element:e,className:t}){const n=ve(e,"svg"),r=ve(e,"assistive-title"),a="display"===ve(e,"mode");return i.a.createElement(i.a.Fragment,null,i.a.createElement("span",{className:Kr()("e-formula",{"e-block e-text-center":a},t),dangerouslySetInnerHTML:{__html:n},"aria-hidden":"true"}),i.a.createElement("span",{className:"e-screen-reader-only"},r||e.textContent))}));var jo=({bordered:e=!1,className:t,children:n,height:r,width:a,caption:o,captionId:s})=>{const l=r/a*100+"%",c=a+(e?18:0);return i.a.createElement("span",{className:Kr()("responsive-media-container",{"responsive-media-container--bordered":e},t),style:{maxWidth:c}},i.a.createElement("span",{className:"responsive-media-container__inner",style:{paddingBottom:l}},n),o&&i.a.createElement("span",{className:"e-color-darkgrey e-block e-mrg-t-1 e-font-size-s e-light",id:s},o))};function Do(e){return"string"==typeof e&&0===e.trim().length}var Oo=i.a.memo((function({element:e,className:t,renderChildNodes:n}){const{resolveAttachment:a}=Object(r.useContext)(Br),{t:o}=Tr(),s=ve(e,"src"),l=be(e,"width"),c=be(e,"height"),u=ye(e,"image-title"),f=u&&n(u),d=null!=f&&!f.every(Do),p=d?f:void 0,h=d?Lr(e):void 0,g=a(s),m=i.a.createElement("img",{className:"e-image",src:g,alt:"","aria-labelledby":h});return i.a.createElement(i.a.Fragment,null,i.a.createElement(jo,{className:t,width:l,height:c,caption:p,captionId:h,bordered:d||null!=me(e,"choice-answer")},null!=me(e,["choice-answer","hint"])?m:i.a.createElement("a",{title:o.raw("zoom-in"),href:g,target:"original-picture",className:"e-zoomable","aria-hidden":!d,tabIndex:-1},m)))}));var Lo=function({element:e,renderChildNodes:t}){const n=t(e);return 0===n.length?null:i.a.createElement(i.a.Fragment,null,n)};function Po({element:e,renderChildNodes:t}){return i.a.createElement("em",null,t(e))}function Ro({element:e,renderChildNodes:t}){return i.a.createElement("a",{href:e.textContent,target:"_blank",rel:"noreferrer"},t(e))}function zo({element:e}){const t=e.textContent;if(/^[0-9]{4}$/.test(t))return i.a.createElement(i.a.Fragment,null,t);{const e=new Date(t),{dateTimeFormatter:n}=Object(r.useContext)(Br);return i.a.createElement(i.a.Fragment,null,n.format(e))}}var _o=i.a.memo((function({element:e,renderChildNodes:t}){const{t:n}=Tr();function r(n,r){const a=ye(e,n);if(a){const e=a.localName,n=i.a.createElement(r,{element:a,renderChildNodes:t,key:e});if(n){return Ie(a,"hidden")?i.a.createElement("del",{key:e},n):n}}}function a(r,a,o){const s=ye(e,r);return s&&i.a.createElement(i.a.Fragment,{key:s.localName},n(a)," ",i.a.createElement(o,{element:s,renderChildNodes:t,key:s.localName}))}return i.a.createElement("span",{className:Kr()("e-break-word",{"e-line-through":Ie(e,"hidden")})},n("references.source")," ",(o=". ",(s=[r("author",Lo),r("title",Po),r("publisher",Lo),r("publication",Lo),r("howpublished",Lo),r("url",Ro),a("publication-date","references.date",zo),a("reference-date","references.reference-date",zo),a("translator","references.translator",Lo),a("modified-by","references.modified-by",Lo),r("note",Lo)]).filter(Boolean).reduce((e,t,n)=>(e.push(t),n!==s.length-1&&e.push(o),e),[])));var o,s}));var Uo=i.a.memo((function({element:e,renderChildNodes:t,className:n}){const{resolveAttachment:a}=Object(r.useContext)(Br),o=ve(e,"src"),s=be(e,"width"),l=be(e,"height"),c=ye(e,"video-title"),u=c&&t(c),f=null!=u&&!u.every(Do),d=f?u:void 0,p=f?Pr(e):void 0;return i.a.createElement(jo,{caption:d,captionId:p,className:n,width:s,height:l},i.a.createElement("video",{className:"video",preload:"metadata",controls:!0,controlsList:"nodownload",disablePictureInPicture:!0,"aria-describedby":p},i.a.createElement("source",{src:a(o)})))})),Zo=/\s/;var Fo=function(e){for(var t=e.length;t--&&Zo.test(e.charAt(t)););return t},Go=/^\s+/;var Bo=function(e){return e?e.slice(0,Fo(e)+1).replace(Go,""):e},Yo=/^[-+]0x[0-9a-f]+$/i,Wo=/^0b[01]+$/i,Ho=/^0o[0-7]+$/i,Vo=parseInt;var qo=function(e){if("number"==typeof e)return e;if(kt(e))return NaN;if(re(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=re(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Bo(e);var n=Wo.test(e);return n||Ho.test(e)?Vo(e.slice(2),n?2:8):Yo.test(e)?NaN:+e};var Qo=function(e){return e?(e=qo(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var Jo=function(e){var t=Qo(e),n=t%1;return t==t?n?t-n:t:0},Xo=Math.min;var Ko=function(e,t){if((e=Jo(e))<1||e>9007199254740991)return[];var n=4294967295,r=Xo(e,4294967295);t=ue(t),e-=4294967295;for(var i=I(r,t);++n<e;)t(n);return i};function $o({opacity:e,setOpacity:t,element:n,renderChildNodes:r}){const a=ye(n,"image-title");return i.a.createElement("div",{className:"e-columns e-columns--center-v e-mrg-b-1"},i.a.createElement("div",{className:"e-column e-text-right e-mrg-r-1"},a&&r(a)),i.a.createElement(wa,{icon:sa,className:"e-mrg-r-1 e-pointer",onClick:()=>t(0)}),i.a.createElement("input",{type:"range",min:0,max:1,step:.01,value:e,onChange:e=>t(Number(e.target.value))}),i.a.createElement(wa,{icon:oa,className:"e-mrg-l-1 e-pointer",onClick:()=>t(1)}))}function es({element:e,absolute:t,opacity:n}){const a=e.getAttribute("src"),o=be(e,"width"),s=be(e,"height"),l=Object(r.useContext)(Br).resolveAttachment(a);return i.a.createElement("div",{className:Kr()("e-columns e-columns--center-h",{"e-image-overlay__image-absolute":t}),style:{opacity:n}},i.a.createElement(jo,{width:o,height:s},i.a.createElement("img",{className:"e-image",src:l})))}var ts=i.a.memo((function({element:e,renderChildNodes:t}){const[n,a]=Object(r.useState)(()=>Ko(e.children.length,e=>0===e?1:0)),o=e=>t=>{const r=[...n];r[e]=t,a(r)};return i.a.createElement("div",{className:"e-image-overlay e-mrg-b-1"},i.a.createElement("div",{className:"e-columns e-columns--center-h"},i.a.createElement("div",null,xe(e,(e,r)=>i.a.createElement($o,{key:r,opacity:n[r],element:e,setOpacity:o(r),renderChildNodes:t})))),i.a.createElement("div",null,i.a.createElement("div",{className:"e-image-overlay__images-wrapper"},xe(e,(e,r)=>i.a.createElement(es,{key:r,element:e,renderChildNodes:t,opacity:n[r],absolute:r>0})))))}));const ns=Ae({"attachment-link":Wr("link"),"attachment-links":Hr("link"),"attachment-title":Jr,attachment:Qr,audio:Co,"audio-title":Lo,file:So,image:Oo,video:Uo,formula:ko,reference:function(e,t,n){const r=r=>{const a=t;return i.a.createElement(a,{...n},i.a.createElement(e,{...r}))};return r.displayName="Surround("+Fr(e)+")",r}(_o,"div",{className:"e-color-darkgrey e-mrg-y-2 e-font-size-s e-light"}),"image-overlay":ts});var rs=i.a.memo((function({element:e,forceRender:t=!1}){if(null==me(e,"question")&&!t)return null;const n=e.children.length;return i.a.createElement(i.a.Fragment,null,n>1&&i.a.createElement(No,{element:e,renderChildNodes:ns,showTitle:!1,forceRender:t}),ns(e))}));const is=i.a.createContext({}),as=Gr(is,({element:e})=>{const t=ge(e,"question",!1);return{answers:t.length?[]:ge(e,["text-answer","scored-text-answer","dropdown-answer","choice-answer"],!1),displayNumber:e.getAttribute("display-number"),hasExternalMaterial:null!=ye(e,"external-material"),maxAnswers:be(e,"max-answers"),maxScore:be(e,"max-score"),level:de(e,"question").length,childQuestions:t}});var os=e=>{const t=Kr()("e-section e-bg-color-off-white e-pad-6",e.className);return i.a.createElement("section",{...e,className:t},e.children)};var ss=i.a.memo(as((function({element:e,renderChildNodes:t}){const{displayNumber:n,hasExternalMaterial:a,level:o}=Object(r.useContext)(is);return function(e,t,n){return t&&(0===n||de(e).every(e=>"question"!==e.localName||!ye(e,"external-material")))}(e,a,o)?i.a.createElement(os,{id:n,"aria-labelledby":kr(n)},t(e,1)):i.a.createElement(i.a.Fragment,null,t(e,1))})));function ls(e){return e.includes(".")?e:e+"."}var cs=i.a.memo((function({element:e,renderChildNodes:t}){const{displayNumber:n,hasExternalMaterial:a}=Object(r.useContext)(is);return a?i.a.createElement("h2",{id:kr(n)},ls(n)," ",t(e)):null}));var us=i.a.memo(e=>{const t=Object(r.useRef)(null);return Object(r.useLayoutEffect)(()=>{t.current&&(document.title=t.current.textContent)}),i.a.createElement("h1",{...e,ref:t})});const fs=i.a.createContext({}),ds=Gr(fs,e=>{const{casCountdownDuration:t,examServerApi:n}=e;return{casCountdownDuration:t||60,examServerApi:n}});var ps=i.a.memo((function({element:e,renderChildNodes:t}){return i.a.createElement(i.a.Fragment,null,t(e,1))}));const hs=i.a.createContext({}),gs=Gr(hs,({element:e})=>({casForbidden:Ie(e,"cas-forbidden"),displayNumber:e.getAttribute("display-number"),maxAnswers:be(e,"max-answers"),minAnswers:be(e,"min-answers"),maxScore:be(e,"max-score"),childQuestions:xe(e,e=>e).filter(e=>"question"===e.localName)})),ms=Ae({"audio-group":ps,"external-material":rs,"question-title":cs,question:ss,section:gs(Lo)}),ys=()=>{const{t:e}=Tr();return i.a.createElement(i.a.Fragment,null,e("attachments-page-title"))};var vs=i.a.memo(ds(Yr(()=>{const{root:e,language:t,date:n,dateTimeFormatter:a,dayCode:o,examCode:s,resolveAttachment:l,subjectLanguage:c}=Object(r.useContext)(Br),u=ye(e,"exam-title"),f=e.getAttribute("exam-stylesheet"),d=ye(e,"external-material"),p=_r(()=>wr(t,s,o));return Object(r.useEffect)(Mr(p,t)),Object(r.useEffect)(zr,[]),i.a.createElement(y,{i18n:p},i.a.createElement("main",{className:"e-exam attachments",lang:c,"aria-labelledby":"title"},i.a.createElement(i.a.StrictMode,null),f&&i.a.createElement("link",{rel:"stylesheet",href:l(f)}),i.a.createElement(os,{"aria-labelledby":"title"},u&&i.a.createElement(us,{id:"title"},i.a.createElement(ys,null)," ",ms(u)),i.a.createElement("div",{className:"e-semibold e-mrg-b-6"},a.format(n)),d&&i.a.createElement(rs,{element:d,renderChildNodes:ms,forceRender:!0})),ms(e)))})));function bs(e){return ws(e,ge(e,"question",!1).map(Is),{displayNumber:ve(e,"display-number"),minAnswers:be(e,"min-answers"),maxAnswers:be(e,"max-answers")})}function Is(e){const t=ge(e,"question",!1);return ws(e,t.length?t.map(Is):ge(e,["text-answer","scored-text-answer","choice-answer","dropdown-answer"],!1).map(xs),{displayNumber:ve(e,"display-number"),maxAnswers:be(e,"max-answers")})}function xs(e){return ws(e,[],{displayNumber:ve(e,"display-number"),questionId:be(e,"question-id")})}function ws(e,t,n){return{name:e.localName,attributes:n,childNodes:t}}var Ts=function(){this.__data__=new gn,this.size=0};var Ms=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var As=function(e){return this.__data__.get(e)};var Cs=function(e){return this.__data__.has(e)};var Es=function(e,t){var n=this.__data__;if(n instanceof gn){var r=n.__data__;if(!mn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new An(r)}return n.set(e,t),this.size=n.size,this};function Ns(e){var t=this.__data__=new gn(e);this.size=t.size}Ns.prototype.clear=Ts,Ns.prototype.delete=Ms,Ns.prototype.get=As,Ns.prototype.has=Cs,Ns.prototype.set=Es;var Ss=Ns;var ks=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var js=function(e){return this.__data__.has(e)};function Ds(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new An;++t<n;)this.add(e[t])}Ds.prototype.add=Ds.prototype.push=ks,Ds.prototype.has=js;var Os=Ds;var Ls=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};var Ps=function(e,t){return e.has(t)};var Rs=function(e,t,n,r,i,a){var o=1&n,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var f=-1,d=!0,p=2&n?new Os:void 0;for(a.set(e,t),a.set(t,e);++f<s;){var h=e[f],g=t[f];if(r)var m=o?r(g,h,f,t,e,a):r(h,g,f,e,t,a);if(void 0!==m){if(m)continue;d=!1;break}if(p){if(!Ls(t,(function(e,t){if(!Ps(p,t)&&(h===e||i(h,e,n,r,a)))return p.push(t)}))){d=!1;break}}else if(h!==g&&!i(h,g,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d},zs=x.a.Uint8Array;var _s=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};var Us=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Zs=w?w.prototype:void 0,Fs=Zs?Zs.valueOf:void 0;var Gs=function(e,t,n,r,i,a,o){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||!a(new zs(e),new zs(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return sn(+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=_s;case"[object Set]":var l=1&r;if(s||(s=Us),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;r|=2,o.set(e,t);var u=Rs(s(e),s(t),r,i,a,o);return o.delete(e),u;case"[object Symbol]":if(Fs)return Fs.call(e)==Fs.call(t)}return!1};var Bs=function(e,t,n){var r=t(e);return _(e)?r:Qn(r,n(e))};var Ys=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a};var Ws=function(){return[]},Hs=Object.prototype.propertyIsEnumerable,Vs=Object.getOwnPropertySymbols,qs=Vs?function(e){return null==e?[]:(e=Object(e),Ys(Vs(e),(function(t){return Hs.call(e,t)})))}:Ws;var Qs=function(e){return Bs(e,oe,qs)},Js=Object.prototype.hasOwnProperty;var Xs=function(e,t,n,r,i,a){var o=1&n,s=Qs(e),l=s.length;if(l!=Qs(t).length&&!o)return!1;for(var c=l;c--;){var u=s[c];if(!(o?u in t:Js.call(t,u)))return!1}var f=a.get(e),d=a.get(t);if(f&&d)return f==t&&d==e;var p=!0;a.set(e,t),a.set(t,e);for(var h=o;++c<l;){var g=e[u=s[c]],m=t[u];if(r)var y=o?r(m,g,u,t,e,a):r(g,m,u,e,t,a);if(!(void 0===y?g===m||i(g,m,n,r,a):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 a.delete(e),a.delete(t),p},Ks=qt(x.a,"DataView"),$s=qt(x.a,"Promise"),el=qt(x.a,"Set"),tl=qt(x.a,"WeakMap"),nl=Ut(Ks),rl=Ut(mn),il=Ut($s),al=Ut(el),ol=Ut(tl),sl=j;(Ks&&"[object DataView]"!=sl(new Ks(new ArrayBuffer(1)))||mn&&"[object Map]"!=sl(new mn)||$s&&"[object Promise]"!=sl($s.resolve())||el&&"[object Set]"!=sl(new el)||tl&&"[object WeakMap]"!=sl(new tl))&&(sl=function(e){var t=j(e),n="[object Object]"==t?e.constructor:void 0,r=n?Ut(n):"";if(r)switch(r){case nl:return"[object DataView]";case rl:return"[object Map]";case il:return"[object Promise]";case al:return"[object Set]";case ol:return"[object WeakMap]"}return t});var ll=sl,cl=Object.prototype.hasOwnProperty;var ul=function(e,t,n,r,i,a){var o=_(e),s=_(t),l=o?"[object Array]":ll(e),c=s?"[object Array]":ll(t),u="[object Object]"==(l="[object Arguments]"==l?"[object Object]":l),f="[object Object]"==(c="[object Arguments]"==c?"[object Object]":c),d=l==c;if(d&&Object(U.a)(e)){if(!Object(U.a)(t))return!1;o=!0,u=!1}if(d&&!u)return a||(a=new Ss),o||q(e)?Rs(e,t,n,r,i,a):Gs(e,t,l,n,r,i,a);if(!(1&n)){var p=u&&cl.call(e,"__wrapped__"),h=f&&cl.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,m=h?t.value():t;return a||(a=new Ss),i(g,m,n,r,a)}}return!!d&&(a||(a=new Ss),Xs(e,t,n,r,i,a))};var fl=function e(t,n,r,i,a){return t===n||(null==t||null==n||!D(t)&&!D(n)?t!=t&&n!=n:ul(t,n,r,i,e,a))};var dl=function(e,t,n,r){var i=n.length,a=i,o=!r;if(null==e)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){var l=(s=n[i])[0],c=e[l],u=s[1];if(o&&s[2]){if(void 0===c&&!(l in e))return!1}else{var f=new Ss;if(r)var d=r(c,u,l,e,t,f);if(!(void 0===d?fl(u,c,3,r,f):d))return!1}}return!0};var pl=function(e){return e==e&&!re(e)};var hl=function(e){for(var t=oe(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,pl(i)]}return t};var gl=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}};var ml=function(e){var t=hl(e);return 1==t.length&&t[0][2]?gl(t[0][0],t[0][1]):function(n){return n===e||dl(n,e,t)}};var yl=function(e,t){return Lt(e)&&pl(t)?gl(zn(e),t):function(n){var r=Xi(n,e);return void 0===r&&r===t?Vn(n,e):fl(t,r,3)}};var vl=function(e){return function(t){return null==t?void 0:t[e]}};var bl=function(e){return function(t){return _n(t,e)}};var Il=function(e){return Lt(e)?vl(zn(e)):bl(e)};var xl=function(e){return"function"==typeof e?e:null==e?ce:"object"==typeof e?_(e)?yl(e[0],e[1]):ml(e):Il(e)};var wl=function(e,t){var n=-1,r=ae(e)?Array(e.length):[];return le(e,(function(e,i,a){r[++n]=t(e,i,a)})),r};var Tl=function(e,t){return(_(e)?jn:wl)(e,xl(t,3))};var Ml=function(e,t){var n={};return t=xl(t,3),se(e,(function(e,r,i){Zn(n,r,t(e,r,i))})),n};var Al=function(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r};var Cl=function(e,t,n,r){return le(e,(function(e,i,a){t(r,e,n(e),a)})),r};var El=function(e,t){return function(n,r){var i=_(n)?Al:Cl,a=t?t():{};return i(n,e,xl(r,2),a)}}((function(e,t,n){Zn(e,n,t)})),Nl=n(42),Sl=function(){return Math.random().toString(36).substring(7).split("").join(".")},kl={INIT:"@@redux/INIT"+Sl(),REPLACE:"@@redux/REPLACE"+Sl(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Sl()}};function jl(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Dl(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(Dl)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var i=e,a=t,o=[],s=o,l=!1;function c(){s===o&&(s=o.slice())}function u(){if(l)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function f(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(l)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,c();var n=s.indexOf(e);s.splice(n,1),o=null}}}function d(e){if(!jl(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(l)throw new Error("Reducers may not dispatch actions.");try{l=!0,a=i(a,e)}finally{l=!1}for(var t=o=s,n=0;n<t.length;n++){(0,t[n])()}return e}function p(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");i=e,d({type:kl.REPLACE})}function h(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[Nl.a]=function(){return this},e}return d({type:kl.INIT}),(r={dispatch:d,subscribe:f,getState:u,replaceReducer:p})[Nl.a]=h,r}function Ol(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function Ll(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pl(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function Rl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pl(n,!0).forEach((function(t){Ll(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pl(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zl(){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 _l=function(e){return"@@redux-saga/"+e},Ul=_l("CANCEL_PROMISE"),Zl=_l("CHANNEL_END"),Fl=_l("IO"),Gl=_l("MATCH"),Bl=_l("MULTICAST"),Yl=_l("SAGA_ACTION"),Wl=_l("SELF_CANCELLATION"),Hl=_l("TASK"),Vl=_l("TASK_CANCEL"),ql=_l("TERMINATE"),Ql=_l("LOCATION"),Jl=function(e){return null==e},Xl=function(e){return null!=e},Kl=function(e){return"function"==typeof e},$l=function(e){return"string"==typeof e},ec=Array.isArray,tc=function(e){return e&&Kl(e.then)},nc=function(e){return e&&Kl(e.next)&&Kl(e.throw)},rc=function e(t){return t&&($l(t)||oc(t)||Kl(t)||ec(t)&&t.every(e))},ic=function(e){return e&&Kl(e.take)&&Kl(e.close)},ac=function(e){return Kl(e)&&e.hasOwnProperty("toString")},oc=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype};var sc=function(e,t){var n;void 0===t&&(t=!0);var r=new Promise((function(r){n=setTimeout(r,e,t)}));return r[Ul]=function(){clearTimeout(n)},r},lc=function(e){return function(){return e}}(!0),cc=function(){};var uc=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var fc=function(e,t){li(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function dc(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function pc(e){var t=!1;return function(){t||(t=!0,e())}}var hc=function(e){throw e},gc=function(e){return{value:e,done:!0}};function mc(e,t,n){void 0===t&&(t=hc),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:gc,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function yc(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var vc=function(e){return Array.apply(null,new Array(e))},bc=function(e){return function(t){return e(Object.defineProperty(t,Yl,{value:!0}))}},Ic=function(e){return e===ql},xc=function(e){return e===Vl},wc=function(e){return Ic(e)||xc(e)};function Tc(e,t){var n=Object.keys(e),r=n.length;var i,a=0,o=ec(e)?vc(r):{},s={};return n.forEach((function(e){var n=function(n,s){i||(s||wc(n)?(t.cancel(),t(n,s)):(o[e]=n,++a===r&&(i=!0,t(o))))};n.cancel=cc,s[e]=n})),t.cancel=function(){i||(i=!0,n.forEach((function(e){return s[e].cancel()})))},s}function Mc(e){return{name:e.name||"anonymous",location:Ac(e)}}function Ac(e){return e[Ql]}var Cc={isEmpty:lc,put:cc,take:cc};function Ec(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,i=0,a=0,o=function(t){n[i]=t,i=(i+1)%e,r++},s=function(){if(0!=r){var t=n[a];return n[a]=null,r--,a=(a+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)o(s);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[i]=s,a=i=(i+1)%e;break;case 4:c=2*e,n=l(),r=n.length,i=n.length,a=0,n.length=c,e=c,o(s)}},take:s,flush:l}}var Nc=function(){return Cc},Sc=function(e){return Ec(e,4)},kc=function(e,t){var n;return(n={})[Fl]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function jc(e,t){return void 0===e&&(e="*"),rc(e)?kc("TAKE",{pattern:e}):ic(n=e)&&n[Bl]&&Xl(t)&&rc(t)?kc("TAKE",{channel:e,pattern:t}):ic(e)?kc("TAKE",{channel:e}):void 0;var n}function Dc(e,t){return Jl(t)&&(t=e,e=void 0),kc("PUT",{channel:e,action:t})}function Oc(e){var t=kc("RACE",e);return t.combinator=!0,t}function Lc(e,t){var n,r=null;return Kl(e)?n=e:(ec(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&$l(n)&&Kl(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function Pc(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 kc("CALL",Lc(e,n))}function Rc(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 kc("FORK",Lc(e,n))}function zc(e){return void 0===e&&(e=Wl),kc("CANCEL",e)}var _c=Pc.bind(null,sc);function Uc(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}var Zc=Uc,Fc=[],Gc=0;function Bc(e){try{Hc(),e()}finally{Vc()}}function Yc(e){Fc.push(e),Gc||(Hc(),qc())}function Wc(e){try{return Hc(),e()}finally{qc()}}function Hc(){Gc++}function Vc(){Gc--}function qc(){var e;for(Vc();!Gc&&void 0!==(e=Fc.shift());)Bc(e)}var Qc=function(e){return function(t){return e.some((function(e){return eu(e)(t)}))}},Jc=function(e){return function(t){return e(t)}},Xc=function(e){return function(t){return t.type===String(e)}},Kc=function(e){return function(t){return t.type===e}},$c=function(){return lc};function eu(e){var t="*"===e?$c:$l(e)?Xc:ec(e)?Qc:ac(e)?Xc:Kl(e)?Jc:oc(e)?Kc:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var tu={type:Zl},nu=function(e){return e&&e.type===Zl};function ru(e){void 0===e&&(e=Sc());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(tu):e.isEmpty()?(n.push(r),r.cancel=function(){dc(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(tu):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])(tu)}}}}}function iu(){var e,t,n,r,i,a,o=(t=!1,r=n=[],i=function(){r===n&&(r=n.slice())},a=function(){t=!0;var e=n=r;r=[],e.forEach((function(e){e(tu)}))},(e={})[Bl]=!0,e.put=function(e){if(!t)if(nu(e))a();else for(var i=n=r,o=0,s=i.length;o<s;o++){var l=i[o];l[Gl](e)&&(l.cancel(),l(e))}},e.take=function(e,n){void 0===n&&(n=$c),t?e(tu):(e[Gl]=n,i(),r.push(e),e.cancel=pc((function(){i(),dc(r,e)})))},e.close=a,e),s=o.put;return o.put=function(e){e[Yl]?s(e):Yc((function(){s(e)}))},o}function au(e,t){var n=e[Ul];Kl(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var ou,su=0,lu=function(){return++su};function cu(e){e.isRunning()&&e.cancel()}var uu=((ou={}).TAKE=function(e,t,n){var r=t.channel,i=void 0===r?e.channel:r,a=t.pattern,o=t.maybe,s=function(e){e instanceof Error?n(e,!0):!nu(e)||o?n(e):n(ql)};try{i.take(s,Xl(a)?eu(a):null)}catch(e){return void n(e,!0)}n.cancel=s.cancel},ou.PUT=function(e,t,n){var r=t.channel,i=t.action,a=t.resolve;Yc((function(){var t;try{t=(r?r.put:e.dispatch)(i)}catch(e){return void n(e,!0)}a&&tc(t)?au(t,n):n(t)}))},ou.ALL=function(e,t,n,r){var i=r.digestEffect,a=su,o=Object.keys(t);if(0!==o.length){var s=Tc(t,n);o.forEach((function(e){i(t[e],a,s[e],e)}))}else n(ec(t)?[]:{})},ou.RACE=function(e,t,n,r){var i=r.digestEffect,a=su,o=Object.keys(t),s=ec(t)?vc(o.length):{},l={},c=!1;o.forEach((function(e){var t=function(t,r){c||(r||wc(t)?(n.cancel(),n(t,r)):(n.cancel(),c=!0,s[e]=t,n(s)))};t.cancel=cc,l[e]=t})),n.cancel=function(){c||(c=!0,o.forEach((function(e){return l[e].cancel()})))},o.forEach((function(e){c||i(t[e],a,l[e],e)}))},ou.CALL=function(e,t,n,r){var i=t.context,a=t.fn,o=t.args,s=r.task;try{var l=a.apply(i,o);if(tc(l))return void au(l,n);if(nc(l))return void vu(e,l,s.context,su,Mc(a),!1,n);n(l)}catch(e){n(e,!0)}},ou.CPS=function(e,t,n){var r=t.context,i=t.fn,a=t.args;try{var o=function(e,t){Jl(e)?n(t):n(e,!0)};i.apply(r,a.concat(o)),o.cancel&&(n.cancel=o.cancel)}catch(e){n(e,!0)}},ou.FORK=function(e,t,n,r){var i=t.context,a=t.fn,o=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(nc(i))return i;var a=!1;return mc((function(e){return a?{value:e,done:!0}:(a=!0,{value:i,done:!tc(i)})}))}catch(e){return mc((function(){throw e}))}}({context:i,fn:a,args:o}),u=function(e,t){return e.isSagaIterator?{name:e.meta.name}:Mc(t)}(c,a);Wc((function(){var t=vu(e,c,l.context,su,u,s,void 0);s?n(t):t.isRunning()?(l.queue.addTask(t),n(t)):t.isAborted()?l.queue.abort(t.error()):n(t)}))},ou.JOIN=function(e,t,n,r){var i=r.task,a=function(e,t){if(e.isRunning()){var n={task:i,cb:t};t.cancel=function(){e.isRunning()&&dc(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(ec(t)){if(0===t.length)return void n([]);var o=Tc(t,n);t.forEach((function(e,t){a(e,o[t])}))}else a(t,n)},ou.CANCEL=function(e,t,n,r){var i=r.task;t===Wl?cu(i):ec(t)?t.forEach(cu):cu(t),n()},ou.SELECT=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)}},ou.ACTION_CHANNEL=function(e,t,n){var r=t.pattern,i=ru(t.buffer),a=eu(r),o=function t(n){nu(n)||e.channel.take(t,a),i.put(n)},s=i.close;i.close=function(){o.cancel(),s()},e.channel.take(o,a),n(i)},ou.CANCELLED=function(e,t,n,r){n(r.task.isCancelled())},ou.FLUSH=function(e,t,n){t.flush(n)},ou.GET_CONTEXT=function(e,t,n,r){n(r.task.context[t])},ou.SET_CONTEXT=function(e,t,n,r){var i=r.task;fc(i.context,t),n()},ou);function fu(e,t){return e+"?"+t}function du(e){var t=e.name,n=e.location;return n?t+" "+fu(n.fileName,n.lineNumber):t}var pu=null,hu=[],gu=function(){pu=null,hu.length=0},mu=function(){var e,t,n,r,i,a,o,s=hu[0],l=hu.slice(1),c=s.crashedEffect?(e=s.crashedEffect,(t=Ac(e))?t.code+" "+fu(t.fileName,t.lineNumber):""):null;return["The above error occurred in task "+du(s.meta)+(c?" \n when executing effect "+c:"")].concat(l.map((function(e){return" created by "+du(e.meta)})),[(n=hu,r=function(e){return e.cancelledTasks},i=n,o=(a=[]).concat.apply(a,i.map(r)),o.length?["Tasks cancelled due to error:"].concat(o).join("\n"):"")]).join("\n")};function yu(e,t,n,r,i,a,o){var s;void 0===o&&(o=cc);var l,c,u=0,f=null,d=[],p=Object.create(n),h=function(e,t,n){var r,i=[],a=!1;function o(e){t(),l(),n(e,!0)}function s(t){i.push(t),t.cont=function(s,l){a||(dc(i,t),t.cont=cc,l?o(s):(t===e&&(r=s),i.length||(a=!0,n(r))))}}function l(){a||(a=!0,i.forEach((function(e){e.cont=cc,e.cancel()})),i=[])}return s(e),{addTask:s,cancelAll:l,abort:o,getTasks:function(){return i}}}(t,(function(){d.push.apply(d,h.getTasks().map((function(e){return e.meta.name})))}),g);function g(t,n){if(n){if(u=2,(a={meta:i,cancelledTasks:d}).crashedEffect=pu,hu.push(a),m.isRoot){var r=mu();gu(),e.onError(t,{sagaStack:r})}c=t,f&&f.reject(t)}else t===Vl?u=1:1!==u&&(u=3),l=t,f&&f.resolve(t);var a;m.cont(t,n),m.joiners.forEach((function(e){e.cb(t,n)})),m.joiners=null}var m=((s={})[Hl]=!0,s.id=r,s.meta=i,s.isRoot=a,s.context=p,s.joiners=[],s.queue=h,s.cancel=function(){0===u&&(u=1,h.cancelAll(),g(Vl,!1))},s.cont=o,s.end=g,s.setContext=function(e){fc(p,e)},s.toPromise=function(){return f||(f=Zc(),2===u?f.reject(c):0!==u&&f.resolve(l)),f.promise},s.isRunning=function(){return 0===u},s.isCancelled=function(){return 1===u||0===u&&1===t.status},s.isAborted=function(){return 2===u},s.result=function(){return l},s.error=function(){return c},s);return m}function vu(e,t,n,r,i,a,o){var s=e.finalizeRunEffect((function(t,n,r){if(tc(t))au(t,r);else if(nc(t))vu(e,t,c.context,n,i,!1,r);else if(t&&t[Fl]){(0,uu[t.type])(e,t.payload,r,u)}else r(t)}));f.cancel=cc;var l={meta:i,cancel:function(){0===l.status&&(l.status=1,f(Vl))},status:0},c=yu(e,l,n,r,i,a,o),u={task:c,digestEffect:d};return o&&(o.cancel=c.cancel),f(),c;function f(e,n){try{var i;n?(i=t.throw(e),gu()):xc(e)?(l.status=1,f.cancel(),i=Kl(t.return)?t.return(Vl):{done:!0,value:Vl}):i=Ic(e)?Kl(t.return)?t.return():{done:!0}:t.next(e),i.done?(1!==l.status&&(l.status=3),l.cont(i.value)):d(i.value,r,f)}catch(e){if(1===l.status)throw e;l.status=2,l.cont(e,!0)}}function d(t,n,r,i){void 0===i&&(i="");var a,o=lu();function l(n,i){a||(a=!0,r.cancel=cc,e.sagaMonitor&&(i?e.sagaMonitor.effectRejected(o,n):e.sagaMonitor.effectResolved(o,n)),i&&function(e){pu=e}(t),r(n,i))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:o,parentEffectId:n,label:i,effect:t}),l.cancel=cc,r.cancel=function(){a||(a=!0,l.cancel(),l.cancel=cc,e.sagaMonitor&&e.sagaMonitor.effectCancelled(o))},s(t,o,l)}}function bu(e,t){var n=e.channel,r=void 0===n?iu():n,i=e.dispatch,a=e.getState,o=e.context,s=void 0===o?{}:o,l=e.sagaMonitor,c=e.effectMiddlewares,u=e.onError,f=void 0===u?yc:u;for(var d=arguments.length,p=new Array(d>2?d-2:0),h=2;h<d;h++)p[h-2]=arguments[h];var g=t.apply(void 0,p);var m,y=lu();if(l&&(l.rootSagaStarted=l.rootSagaStarted||cc,l.effectTriggered=l.effectTriggered||cc,l.effectResolved=l.effectResolved||cc,l.effectRejected=l.effectRejected||cc,l.effectCancelled=l.effectCancelled||cc,l.actionDispatched=l.actionDispatched||cc,l.rootSagaStarted({effectId:y,saga:t,args:p})),c){var v=zl.apply(void 0,c);m=function(e){return function(t,n,r){return v((function(t){return e(t,n,r)}))(t)}}}else m=uc;var b={channel:r,dispatch:bc(i),getState:a,sagaMonitor:l,onError:f,finalizeRunEffect:m};return Wc((function(){var e=vu(b,g,s,y,Mc(t),!0,void 0);return l&&l.effectResolved(y,e),e}))}var Iu=function(e){var t,n=void 0===e?{}:e,r=n.context,i=void 0===r?{}:r,a=n.channel,o=void 0===a?iu():a,s=n.sagaMonitor,l=ci(n,["context","channel","sagaMonitor"]);function c(e){var n=e.getState,r=e.dispatch;return t=bu.bind(null,li({},l,{context:i,channel:o,dispatch:r,getState:n,sagaMonitor:s})),function(e){return function(t){s&&s.actionDispatched&&s.actionDispatched(t);var n=e(t);return o.put(t),n}}}return c.run=function(){return t.apply(void 0,arguments)},c.setContext=function(e){fc(i,e)},c},xu=function(e){return{done:!0,value:e}},wu={};function Tu(e){return ic(e)?"channel":ac(e)?String(e):Kl(e)?e.name:String(e)}function Mu(e,t,n){var r,i,a,o=t;function s(t,n){if(o===wu)return xu(t);if(n&&!i)throw o=wu,n;r&&r(t);var s=n?e[i](n):e[o]();return o=s.nextState,a=s.effect,r=s.stateUpdater,i=s.errorState,o===wu?xu(t):a}return mc(s,(function(e){return s(null,e)}),n)}function Au(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 a,o={done:!1,value:jc(e)},s=function(e){return{done:!1,value:Rc.apply(void 0,[t].concat(r,[e]))}},l=function(e){return a=e};return Mu({q1:function(){return{nextState:"q2",effect:o,stateUpdater:l}},q2:function(){return{nextState:"q1",effect:s(a)}}},"q1","takeEvery("+Tu(e)+", "+t.name+")")}function Cu(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 a,o,s={done:!1,value:jc(e)},l=function(e){return{done:!1,value:Rc.apply(void 0,[t].concat(r,[e]))}},c=function(e){return{done:!1,value:zc(e)}},u=function(e){return a=e},f=function(e){return o=e};return Mu({q1:function(){return{nextState:"q2",effect:s,stateUpdater:f}},q2:function(){return a?{nextState:"q3",effect:c(a)}:{nextState:"q1",effect:l(o),stateUpdater:u}},q3:function(){return{nextState:"q1",effect:l(o),stateUpdater:u}}},"q1","takeLatest("+Tu(e)+", "+t.name+")")}var Eu=function(e,t){return Kn(Tl(e,t),1)};function Nu(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),a=t.filter(e=>e.answerCount>0),o=null!==(r=n.attributes.maxAnswers)&&void 0!==r?r:1/0,s="section"===n.name?n.attributes.minAnswers:void 0,l="exam"===n.name?a.reduce((e,t)=>e+t.answerCount,0):a.length,c=Eu(t,e=>e.extraAnswers);return{answerCount:l,displayNumber:i,extraAnswers:l>o?[{type:n.name,displayNumber:i,childQuestions:t.map(e=>e.displayNumber),maxAnswers:o,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}const Su={answersById:{},examStructure:{name:"exam",attributes:{},childNodes:[]},focusedQuestionId:null,supportsAnswerHistory:!1,serverQuestionIds:new Set,savedQuestionIds:new Set,extraAnswers:[]};function ku(e,t){const n=new Set(e);return n.add(t),n}const ju=e=>Object(xo.action)("SAVE_ANSWER",e),Du=new Map;function*Ou(e,t){const n=e.payload;try{yield _c(1e3),yield Pc(t.saveAnswer,n),yield Dc((e=>Object(xo.action)("SAVE_ANSWER_SUCCEEDED",e))(n))}catch(e){yield Dc(((e,t)=>Object(xo.action)("SAVE_ANSWER_FAILED",{answer:e,error:t},void 0,!0))(n,e))}Du.delete(n.questionId)}function*Lu(e){for(;;){const t=yield jc("SAVE_ANSWER"),n=Du.get(t.payload.questionId);n&&(yield zc(n));const r=yield Rc(Ou,t,e);Du.set(t.payload.questionId,r)}}function*Pu(e){for(;e.selectAnswerVersion;){const t=yield jc("SELECT_ANSWER_VERSION"),{questionId:n,questionText:r}=t.payload;try{const t=yield Pc(e.selectAnswerVersion,n,r);t&&(yield Dc(ju(t)))}catch(e){console.error(e)}}}function*Ru(e){yield Rc(Lu,e),yield Rc(Pu,e)}var zu=function(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a<o;){var s=t[a],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?Zn(n,s,l):Gn(n,s,l)}return n};var _u=function(e,t){return e&&zu(t,oe(t),e)};var Uu=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},Zu=Object.prototype.hasOwnProperty;var Fu=function(e){if(!re(e))return Uu(e);var t=K(e),n=[];for(var r in e)("constructor"!=r||!t&&Zu.call(e,r))&&n.push(r);return n};var Gu=function(e){return ae(e)?J(e,!0):Fu(e)};var Bu=function(e,t){return e&&zu(t,Gu(t),e)},Yu=n(72);var Wu=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var Hu=function(e,t){return zu(e,qs(e),t)},Vu=$(Object.getPrototypeOf,Object),qu=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Qn(t,qs(e)),e=Vu(e);return t}:Ws;var Qu=function(e,t){return zu(e,qu(e),t)};var Ju=function(e){return Bs(e,Gu,qu)},Xu=Object.prototype.hasOwnProperty;var Ku=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Xu.call(e,"index")&&(n.index=e.index,n.input=e.input),n};var $u=function(e){var t=new e.constructor(e.byteLength);return new zs(t).set(new zs(e)),t};var ef=function(e,t){var n=t?$u(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},tf=/\w*$/;var nf=function(e){var t=new e.constructor(e.source,tf.exec(e));return t.lastIndex=e.lastIndex,t},rf=w?w.prototype:void 0,af=rf?rf.valueOf:void 0;var of=function(e){return af?Object(af.call(e)):{}};var sf=function(e,t){var n=t?$u(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var lf=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return $u(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return ef(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 sf(e,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return nf(e);case"[object Set]":return new r;case"[object Symbol]":return of(e)}},cf=Object.create,uf=function(){function e(){}return function(t){if(!re(t))return{};if(cf)return cf(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var ff=function(e){return"function"!=typeof e.constructor||K(e)?{}:uf(Vu(e))};var df=function(e){return D(e)&&"[object Map]"==ll(e)},pf=H.a&&H.a.isMap,hf=pf?W(pf):df;var gf=function(e){return D(e)&&"[object Set]"==ll(e)},mf=H.a&&H.a.isSet,yf=mf?W(mf):gf,vf={};vf["[object Arguments]"]=vf["[object Array]"]=vf["[object ArrayBuffer]"]=vf["[object DataView]"]=vf["[object Boolean]"]=vf["[object Date]"]=vf["[object Float32Array]"]=vf["[object Float64Array]"]=vf["[object Int8Array]"]=vf["[object Int16Array]"]=vf["[object Int32Array]"]=vf["[object Map]"]=vf["[object Number]"]=vf["[object Object]"]=vf["[object RegExp]"]=vf["[object Set]"]=vf["[object String]"]=vf["[object Symbol]"]=vf["[object Uint8Array]"]=vf["[object Uint8ClampedArray]"]=vf["[object Uint16Array]"]=vf["[object Uint32Array]"]=!0,vf["[object Error]"]=vf["[object Function]"]=vf["[object WeakMap]"]=!1;var bf=function e(t,n,r,i,a,o){var s,l=1&n,c=2&n,u=4&n;if(r&&(s=a?r(t,i,a,o):r(t)),void 0!==s)return s;if(!re(t))return t;var f=_(t);if(f){if(s=Ku(t),!l)return Wu(t,s)}else{var d=ll(t),p="[object Function]"==d||"[object GeneratorFunction]"==d;if(Object(U.a)(t))return Object(Yu.a)(t,l);if("[object Object]"==d||"[object Arguments]"==d||p&&!a){if(s=c||p?{}:ff(t),!l)return c?Qu(t,Bu(s,t)):Hu(t,_u(s,t))}else{if(!vf[d])return a?t:{};s=lf(t,d,l)}}o||(o=new Ss);var h=o.get(t);if(h)return h;o.set(t,s),yf(t)?t.forEach((function(i){s.add(e(i,n,r,i,t,o))})):hf(t)&&t.forEach((function(i,a){s.set(a,e(i,n,r,a,t,o))}));var g=f?void 0:(u?c?Ju:Qs:c?Gu:oe)(t);return v(g||t,(function(i,a){g&&(i=t[a=i]),Gn(s,a,e(i,n,r,a,t,o))})),s};var If=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 a=Array(i);++r<i;)a[r]=e[r+t];return a};var xf=function(e,t){return t.length<2?e:_n(e,If(t,0,-1))};var wf=function(e,t){return t=Rn(t,e),null==(e=xf(e,t))||delete e[zn(bt(t))]},Tf=Function.prototype,Mf=Object.prototype,Af=Tf.toString,Cf=Mf.hasOwnProperty,Ef=Af.call(Object);var Nf=function(e){if(!D(e)||"[object Object]"!=j(e))return!1;var t=Vu(e);if(null===t)return!0;var n=Cf.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Af.call(n)==Ef};var Sf=function(e){return Nf(e)?void 0:e},kf=lr((function(e,t){var n={};if(null==e)return n;var r=!1;t=jn(t,(function(t){return t=Rn(t,e),r||(r=t.length>1),t})),zu(e,Ju(e),n),r&&(n=bf(n,7,Sf));for(var i=t.length;i--;)wf(n,t[i]);return n}));const jf={errors:{},nowPlaying:null,playbackTimes:{}};const Df=e=>function(e,t){void 0===t&&(t=Nc());var n,r=!1,i=ru(t),a=function(){r||(r=!0,Kl(n)&&n(),i.close())};return n=pc(n=e((function(e){nu(e)?a():i.put(e)}))),r&&n(),{take:i.take,flush:i.flush,close:a}}(t=>{const n=setInterval(()=>{--e>0?t(e):(t(tu),clearInterval(n))},1e3);return()=>clearInterval(n)});function*Of(e,t){const n=yield Pc(Df,e);try{for(;;){const e=yield jc(n);yield Dc(t(e))}}finally{(yield kc("CANCELLED",{}))&&n.close()}}function*Lf(e,t){const n=t.payload;try{const t=null!=n.restrictedAudioId?yield function(e){void 0===e&&(e=uc);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return kc("SELECT",{selector:e,args:n})}(ea(n.restrictedAudioId)):void 0,r=null!=t&&null!=n.restrictedAudioId?yield Pc(e.playRestrictedAudio,n.src,n.restrictedAudioId,t):yield Pc(e.playAudio,n.src);"ok"===r?(yield Dc((e=>Object(xo.action)("PLAY_AUDIO_STARTED",e))(n)),yield Pc(Of,n.duration,To),yield Dc(Object(xo.action)("PLAY_AUDIO_FINISHED"))):(yield Dc(((e,t)=>Object(xo.action)("SHOW_AUDIO_ERROR",{audio:e,error:t}))(n,r)),yield _c(5e3),yield Dc((e=>Object(xo.action)("HIDE_AUDIO_ERROR",e))(n)))}catch(e){console.error(e)}}function*Pf(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 Rc.apply(void 0,[Au,e,t].concat(r))}("PLAY_AUDIO",Lf,e)}const Rf={casStatus:"forbidden"};const{createAction:zf}=xo.deprecated,_f=zf("ALLOW_CAS_SUCCEEDED"),Uf=zf("ALLOW_CAS_CANCELLED"),Zf=e=>Object(xo.action)("UPDATE_CAS_REMAINING",e);function*Ff(e,{payload:t}){try{if("allowed"===(yield Pc(e.setCasStatus,"allowing")))return void(yield Dc(_f()));yield Dc((n=t,Object(xo.action)("ALLOW_CAS_COUNTDOWN",n)));const{cancelled:r}=yield Oc({finished:Pc(Of,t,Zf),cancelled:jc("ALLOW_CAS_CANCELLED")});"allowed"===(yield Pc(e.setCasStatus,r?"forbidden":"allowed"))?yield Dc(_f()):r||(yield Dc(Uf()))}catch(e){console.error(e)}var n}function*Gf(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 Rc.apply(void 0,[Cu,e,t].concat(r))}("ALLOW_CAS",Ff,e)}const Bf=function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"==typeof e[i]&&(n[i]=e[i])}var a,o=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:kl.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:kl.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+kl.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){a=e}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var r=!1,i={},s=0;s<o.length;s++){var l=o[s],c=n[l],u=e[l],f=c(u,t);if(void 0===f){var d=Ol(l,t);throw new Error(d)}i[l]=f,r=r||f!==u}return(r=r||o.length!==Object.keys(e).length)?i:e}}({answers:function(e=Su,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":return e;case"SAVE_ANSWER_SUCCEEDED":{const{questionId:n}=t.payload,r=ku(e.savedQuestionIds,n),i=ku(e.serverQuestionIds,n),a=Nu(e.examStructure,e.answersById);return{...e,serverQuestionIds:i,savedQuestionIds:r,extraAnswers:a}}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}}default:return e}},audio:function(e=jf,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=kf(e.errors,[n.src]);return{...e,playbackTimes:r,errors:i}}return e}case"SHOW_AUDIO_ERROR":{const{audio:n,error:r}=t.payload,i=Xi(n,"restrictedAudioId",n.src),a={...e.errors,[i]:r};return{...e,errors:a,nowPlaying:null}}case"HIDE_AUDIO_ERROR":{const n=t.payload,r=Xi(n,"restrictedAudioId",n.src),i=kf(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=Rf,t){switch(t.type){case"ALLOW_CAS":return e;case"ALLOW_CAS_COUNTDOWN":return{casStatus:"allowing",durationRemaining:t.payload};case"ALLOW_CAS_SUCCEEDED":return{casStatus:"allowed"};case"ALLOW_CAS_CANCELLED":return{casStatus:"forbidden"};case"UPDATE_CAS_REMAINING":return{casStatus:"allowing",durationRemaining:t.payload};default:return e}}});function*Yf(e){yield Rc(Ru,e),yield Rc(Pf,e),yield Rc(Gf,e)}function Wf(e,t,n,r,i){const a=new Set(Tl(n,"questionId")),o=Ml(El(r,"restrictedAudioId"),"times"),s=El(n,"questionId"),l={answers:{answersById:s,focusedQuestionId:null,serverQuestionIds:a,supportsAnswerHistory:"function"==typeof i.selectAnswerVersion,savedQuestionIds:a,examStructure:e,extraAnswers:Nu(e,s)},audio:{errors:{},nowPlaying:null,playbackTimes:o},cas:{casStatus:t}},c=Iu(),u=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||zl,f=Dl(Bf,l,u(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=t.map((function(e){return e(i)}));return Rl({},n,{dispatch:r=zl.apply(void 0,a)(n.dispatch)})}}}(c)));return c.run(Yf,i),f}var Hf=i.a.memo((function({element:e,className:t,renderChildNodes:n}){return i.a.createElement("div",{className:Kr()("e-audio-group",t)},i.a.createElement("div",{className:"e-audio-group--separator e-font-size-xl e-mrg-y-4 e-color-link",role:"separator"},"✲✲✲"),n(e))}));var Vf=i.a.memo((function({element:e}){const t=e.getAttribute("src"),n=be(e,"duration"),{t:r}=Tr(),a=Qi(Ki(t)),o=Qi($i(t)),s=Wi();return i.a.createElement("div",{className:"e-audio-test notification e-pad-2 e-mrg-b-4"},i.a.createElement("p",null,r("audio-test.instructions")),i.a.createElement("div",{className:"e-columns e-columns--center-v e-mrg-b-2"},i.a.createElement("div",{className:"e-column e-column--narrow"},i.a.createElement("button",{className:"e-button",disabled:"stopped"!==a,onClick:()=>"stopped"===a&&s(wo({src:t,duration:n}))},i.a.createElement(wa,{className:"e-mrg-r-1",icon:ca,fixedWidth:!0}),r("audio-test.play"))),i.a.createElement("div",{className:"e-column"},i.a.createElement(Io,{error:o}," "))),i.a.createElement("div",null,r("audio-test.volume")))}));var qf=i.a.memo((function({answer:e,element:t,error:n,selectAnswerVersion:r,showAnswerHistory:a=!1,supportsAnswerHistory:o=!1}){const{t:s}=Tr();return i.a.createElement("div",{className:"answer-toolbar e-font-size-xs e-color-darkgrey e-columns e-mrg-b-2"},i.a.createElement("div",{className:"answer-toolbar__answer-length e-column e-column--narrow"},!e||"text"!==e.type&&"richText"!==e.type?" ":s("answer-length",{count:e.characterCount})),i.a.createElement("div",{className:"answer-toolbar__errors e-column e-column--auto e-text-center"},n&&i.a.createElement("span",{role:"alert"},s("answer-errors."+n.key,n.options))),i.a.createElement("div",{className:"answer-toolbar__history e-column e-column--narrow e-text-right"},o&&i.a.createElement("div",{className:"answer-toolbar__select-previous-version"},a&&null!=e?i.a.createElement("button",{className:"answer-toolbar__previous-versions e-link-button e-font-size-xs",onClick:()=>{if(r){const n=ye(me(t,"question"),"question-title");r(e.questionId,n.textContent)}}},s("previous-answer-versions")):" ")))}));function Qf({selected:e,element:t,renderChildNodes:n,questionId:r,onSelect:a,direction:o,value:s}){const l=t.getAttribute("class"),c=i.a.createElement("div",{className:Kr()("e-choice-answer-option e-column",l,{"e-choice-answer-option--selected":e})},n(t));return"vertical"===o?i.a.createElement("div",{className:"e-mrg-b-1"},i.a.createElement("label",{className:Kr()("e-columns",{"e-columns--inline":null==he(t,["image","video"])})},i.a.createElement("input",{type:"radio",className:"e-radio-button e-column e-column--narrow",name:String(r),onChange:a,value:s,checked:e}),c)):i.a.createElement("div",{className:"e-column e-mrg-b-1"},i.a.createElement("label",{className:"e-block e-text-center"},i.a.createElement("input",{type:"radio",className:"e-radio-button",name:String(r),onChange:a,value:s,checked:e}),c))}var Jf=Zi((function(e,{element:t}){const n=be(t,"question-id");return{answer:e.answers.answersById[n]}}),{saveAnswer:ju})((function({answer:e,saveAnswer:t,element:n,renderChildNodes:r}){const a=be(n,"question-id"),o=n.getAttribute("direction")||"vertical",s=n.getAttribute("class"),l=n.getAttribute("display-number"),c=e=>{t({type:"choice",questionId:a,value:e.currentTarget.value,displayNumber:l})};return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:Kr()("e-choice-answer",s,{"e-columns":"horizontal"===o}),"data-question-id":a},xe(n,t=>{const n=t.getAttribute("option-id"),s="no-answer"===t.getAttribute("type")?"":n,l=null!=e&&e.value===s;return i.a.createElement(Qf,{element:t,onSelect:c,renderChildNodes:r,questionId:a,key:n,direction:o,selected:l,value:s})})),i.a.createElement(qf,{answer:e,element:n}))}));n(38);function Xf(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function Kf(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function $f(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return Kf(n.overflowY,t)||Kf(n.overflowX,t)||function(e){var t=function(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}function ed(e,t,n,r,i,a,o,s){return a<e&&o>t||a>e&&o<t?0:a<=e&&s<=n||o>=t&&s>=n?a-e-r:o>t&&s<n||a<e&&s>n?o-t+i:0}var td=function(){return(td=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}).apply(this,arguments)};Object.create;Object.create;var nd=0;function rd(){}function id(e,t){e&&function(e,t){var n=window,r=t.scrollMode,i=t.block,a=t.inline,o=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof o?o:function(e){return e!==o};if(!Xf(e))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,u=[],f=e;Xf(f)&&l(f);){if((f=f.parentElement)===c){u.push(f);break}null!=f&&f===document.body&&$f(f)&&!$f(document.documentElement)||null!=f&&$f(f,s)&&u.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,m=e.getBoundingClientRect(),y=m.height,v=m.width,b=m.top,I=m.right,x=m.bottom,w=m.left,T="start"===i||"nearest"===i?b:"end"===i?x:b+y/2,M="center"===a?w+v/2:"end"===a?I:w,A=[],C=0;C<u.length;C++){var E=u[C],N=E.getBoundingClientRect(),S=N.height,k=N.width,j=N.top,D=N.right,O=N.bottom,L=N.left;if("if-needed"===r&&b>=0&&w>=0&&x<=p&&I<=d&&b>=j&&x<=O&&w>=L&&I<=D)return A;var P=getComputedStyle(E),R=parseInt(P.borderLeftWidth,10),z=parseInt(P.borderTopWidth,10),_=parseInt(P.borderRightWidth,10),U=parseInt(P.borderBottomWidth,10),Z=0,F=0,G="offsetWidth"in E?E.offsetWidth-E.clientWidth-R-_:0,B="offsetHeight"in E?E.offsetHeight-E.clientHeight-z-U:0;if(c===E)Z="start"===i?T:"end"===i?T-p:"nearest"===i?ed(g,g+p,p,z,U,g+T,g+T+y,y):T-p/2,F="start"===a?M:"center"===a?M-d/2:"end"===a?M-d:ed(h,h+d,d,R,_,h+M,h+M+v,v),Z=Math.max(0,Z+g),F=Math.max(0,F+h);else{Z="start"===i?T-j-z:"end"===i?T-O+U+B:"nearest"===i?ed(j,O,S,z,U+B,T,T+y,y):T-(j+S/2)+B/2,F="start"===a?M-L-R:"center"===a?M-(L+k/2)+G/2:"end"===a?M-D+_+G:ed(L,D,k,R,_+G,M,M+v,v);var Y=E.scrollLeft,W=E.scrollTop;T+=W-(Z=Math.max(0,Math.min(W+Z,E.scrollHeight-S+B))),M+=Y-(F=Math.max(0,Math.min(Y+F,E.scrollWidth-k+G)))}A.push({el:E,top:Z,left:F})}return A}(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}))}function ad(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function od(e,t){var n;function r(){n&&clearTimeout(n)}function i(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];r(),n=setTimeout((function(){n=null,e.apply(void 0,a)}),t)}return i.cancel=r,i}function sd(){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 ld(){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 cd(){return String(nd++)}function ud(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function fd(e,t){return Object.keys(e).reduce((function(n,r){return n[r]=dd(t,r)?t[r]:e[r],n}),{})}function dd(e,t){return void 0!==e[t]}function pd(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function hd(e,t,n,r,i){if(void 0===i&&(i=!0),0===n)return-1;var a=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:a+1);var o=t+e;o<0?o=i?a:0:o>a&&(o=i?0:a);var s=gd(e,o,n,r,i);return-1===s?t>=n?-1:t:s}function gd(e,t,n,r,i){var a=r(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(var o=t+1;o<n;o++)if(!r(o).hasAttribute("disabled"))return o}else for(var s=t-1;s>=0;s--)if(!r(s).hasAttribute("disabled"))return s;return i?e>0?gd(1,0,n,r,!1):gd(-1,n-1,n,r,!1):-1}function md(e,t,n,r){return void 0===r&&(r=!0),t.some((function(t){return t&&(ad(t,e,n)||r&&ad(t,n.document.activeElement,n))}))}var yd=od((function(e){bd(e).textContent=""}),500);function vd(e,t){var n=bd(t);e&&(n.textContent=e,yd(t))}function bd(e){void 0===e&&(e=document);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 Id=["isInitialMount","highlightedIndex","items","environment"],xd={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function wd(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach((function(r){!function(e,t,n,r){var i=t.props,a=t.type,o="on"+Nd(e)+"Change";i[o]&&void 0!==r[e]&&r[e]!==n[e]&&i[o](li({type:a},r))}(r,e,t,n),n[r]!==t[r]&&(a[r]=n[r])})),r.onStateChange&&Object.keys(a).length&&r.onStateChange(li({type:i},a))}var Td=od((function(e,t){vd(e(),t)}),200),Md="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;function Ad(e){var t=e.id,n=void 0===t?"downshift-"+cd():t,i=e.labelId,a=e.menuId,o=e.getItemId,s=e.toggleButtonId,l=e.inputId;return Object(r.useRef)({labelId:i||n+"-label",menuId:a||n+"-menu",getItemId:o||function(e){return n+"-item-"+e},toggleButtonId:s||n+"-toggle-button",inputId:l||n+"-input"}).current}function Cd(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function Ed(e){return/^\S{1}$/.test(e)}function Nd(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Sd(e){var t=Object(r.useRef)(e);return t.current=e,t}function kd(e,t,n){var i=Object(r.useRef)(),a=Object(r.useRef)(),o=Object(r.useCallback)((function(t,n){a.current=n,t=fd(t,n.props);var r=e(t,n);return n.props.stateReducer(t,li({},n,{changes:r}))}),[e]),s=Object(r.useReducer)(o,t),l=s[0],c=s[1],u=Sd(n),f=Object(r.useCallback)((function(e){return c(li({props:u.current},e))}),[u]),d=a.current;return Object(r.useEffect)((function(){d&&i.current&&i.current!==l&&wd(d,fd(i.current,d.props),l),i.current=l}),[l,n,d]),[l,f]}function jd(e,t,n){var r=kd(e,t,n),i=r[0],a=r[1];return[fd(i,n),a]}var Dd={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""},scrollIntoView:id,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function Od(e,t,n){void 0===n&&(n=xd);var r="default"+Nd(t);return r in e?e[r]:n[t]}function Ld(e,t,n){if(void 0===n&&(n=xd),t in e)return e[t];var r="initial"+Nd(t);return r in e?e[r]:Od(e,t,n)}function Pd(e){var t=Ld(e,"selectedItem"),n=Ld(e,"isOpen"),r=Ld(e,"highlightedIndex"),i=Ld(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}function Rd(e,t,n,r){var i=e.items,a=e.initialHighlightedIndex,o=e.defaultHighlightedIndex,s=t.selectedItem,l=t.highlightedIndex;return 0===i.length?-1:void 0!==a&&l===a?a:void 0!==o?o:s?0===n?i.indexOf(s):hd(n,i.indexOf(s),i.length,r,!1):0===n?-1:n<0?i.length-1:0}function zd(e,t,n,i){var a=Object(r.useRef)({isMouseDown:!1,isTouchMove:!1});return Object(r.useEffect)((function(){var r=function(){a.current.isMouseDown=!0},o=function(r){a.current.isMouseDown=!1,e&&!md(r.target,t.map((function(e){return e.current})),n)&&i()},s=function(){a.current.isTouchMove=!1},l=function(){a.current.isTouchMove=!0},c=function(r){!e||a.current.isTouchMove||md(r.target,t.map((function(e){return e.current})),n,!1)||i()};return n.addEventListener("mousedown",r),n.addEventListener("mouseup",o),n.addEventListener("touchstart",s),n.addEventListener("touchmove",l),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",r),n.removeEventListener("mouseup",o),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",l),n.removeEventListener("touchend",c)}}),[e,n]),a}var _d=function(){return rd};function Ud(e,t,n){var i=n.isInitialMount,a=n.highlightedIndex,o=n.items,s=n.environment,l=ci(n,Id);Object(r.useEffect)((function(){i||Td((function(){return e(li({highlightedIndex:a,highlightedItem:o[a],resultCount:o.length},l))}),s.document)}),t)}function Zd(e){var t=e.highlightedIndex,n=e.isOpen,i=e.itemRefs,a=e.getItemNodeFromIndex,o=e.menuElement,s=e.scrollIntoView,l=Object(r.useRef)(!0);return Md((function(){t<0||!n||!Object.keys(i.current).length||(!1===l.current?l.current=!0:s(a(t),o))}),[t]),l}var Fd=rd;function Gd(e,t,n){var r,i=t.type,a=t.props;switch(i){case n.ItemMouseMove:r={highlightedIndex:t.index};break;case n.MenuMouseLeave:r={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Rd(a,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:Rd(a,e,0)};break;case n.FunctionCloseMenu:r={isOpen:!1};break;case n.FunctionSetHighlightedIndex:r={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:r={inputValue:t.inputValue};break;case n.FunctionReset:r={highlightedIndex:Od(a,"highlightedIndex"),isOpen:Od(a,"isOpen"),selectedItem:Od(a,"selectedItem"),inputValue:Od(a,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return li({},e,r)}function Bd(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,i=e.itemToString,a=e.getItemNodeFromIndex,o=t.toLowerCase(),s=0;s<r.length;s++){var l=(s+n+1)%r.length,c=r[l];if(void 0!==c&&i(c).toLowerCase().startsWith(o)){var u=a(l);if(!(null==u?void 0:u.hasAttribute("disabled")))return l}}return n}ei.a.array.isRequired,ei.a.func,ei.a.func,ei.a.func,ei.a.bool,ei.a.number,ei.a.number,ei.a.number,ei.a.bool,ei.a.bool,ei.a.bool,ei.a.any,ei.a.any,ei.a.any,ei.a.string,ei.a.string,ei.a.string,ei.a.func,ei.a.string,ei.a.func,ei.a.func,ei.a.func,ei.a.func,ei.a.func,ei.a.shape({addEventListener:ei.a.func,removeEventListener:ei.a.func,document:ei.a.shape({getElementById:ei.a.func,activeElement:ei.a.any,body:ei.a.any})});var Yd=td(td({},Dd),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.":"":"No results are available.":""}}),Wd=rd;var Hd=Object.freeze({__proto__:null,MenuKeyDownArrowDown:0,MenuKeyDownArrowUp:1,MenuKeyDownEscape:2,MenuKeyDownHome:3,MenuKeyDownEnd:4,MenuKeyDownEnter:5,MenuKeyDownSpaceButton:6,MenuKeyDownCharacter:7,MenuBlur:8,MenuMouseLeave:9,ItemMouseMove:10,ItemClick:11,ToggleButtonClick:12,ToggleButtonKeyDownArrowDown:13,ToggleButtonKeyDownArrowUp:14,ToggleButtonKeyDownCharacter:15,FunctionToggleMenu:16,FunctionOpenMenu:17,FunctionCloseMenu:18,FunctionSetHighlightedIndex:19,FunctionSelectItem:20,FunctionSetInputValue:21,FunctionReset:22});function Vd(e,t){var n,r=t.type,i=t.props,a=t.shiftKey;switch(r){case 11:n={isOpen:Od(i,"isOpen"),highlightedIndex:Od(i,"highlightedIndex"),selectedItem:i.items[t.index]};break;case 15:var o=t.key,s=""+e.inputValue+o,l=Bd({keysSoFar:s,highlightedIndex:e.selectedItem?i.items.indexOf(e.selectedItem):-1,items:i.items,itemToString:i.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});n=li({inputValue:s},l>=0&&{selectedItem:i.items[l]});break;case 13:n={highlightedIndex:Rd(i,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case 14:n={highlightedIndex:Rd(i,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case 5:case 6:n=li({isOpen:Od(i,"isOpen"),highlightedIndex:Od(i,"highlightedIndex")},e.highlightedIndex>=0&&{selectedItem:i.items[e.highlightedIndex]});break;case 3:n={highlightedIndex:gd(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:gd(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case 2:case 8:n={isOpen:!1,highlightedIndex:-1};break;case 7:var c=t.key,u=""+e.inputValue+c,f=Bd({keysSoFar:u,highlightedIndex:e.highlightedIndex,items:i.items,itemToString:i.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});n=li({inputValue:u},f>=0&&{highlightedIndex:f});break;case 0:n={highlightedIndex:hd(a?5:1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case 1:n={highlightedIndex:hd(a?-5:-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case 20:n={selectedItem:t.selectedItem};break;default:return Gd(e,t,Hd)}return li({},e,n)}var qd=["onMouseLeave","refKey","onKeyDown","onBlur","ref"],Qd=["onClick","onKeyDown","refKey","ref"],Jd=["item","index","onMouseMove","onClick","refKey","ref"];function Xd(e){void 0===e&&(e={}),Wd(e,Xd);var t=li({},Yd,e),n=t.items,i=t.scrollIntoView,a=t.environment,o=t.initialIsOpen,s=t.defaultIsOpen,l=t.itemToString,c=t.getA11ySelectionMessage,u=t.getA11yStatusMessage,f=jd(Vd,Pd(t),t),d=f[0],p=f[1],h=d.isOpen,g=d.highlightedIndex,m=d.selectedItem,y=d.inputValue,v=Object(r.useRef)(null),b=Object(r.useRef)(null),I=Object(r.useRef)({}),x=Object(r.useRef)(!0),w=Object(r.useRef)(null),T=Ad(t),M=Object(r.useRef)(),A=Object(r.useRef)(!0),C=Sd({state:d,props:t}),E=Object(r.useCallback)((function(e){return I.current[T.getItemId(e)]}),[T]);Ud(u,[h,g,y,n],li({isInitialMount:A.current,previousResultCount:M.current,items:n,environment:a,itemToString:l},d)),Ud(c,[m],li({isInitialMount:A.current,previousResultCount:M.current,items:n,environment:a,itemToString:l},d));var N=Zd({menuElement:b.current,highlightedIndex:g,isOpen:h,itemRefs:I,scrollIntoView:i,getItemNodeFromIndex:E});Object(r.useEffect)((function(){return w.current=od((function(e){e({type:21,inputValue:""})}),500),function(){w.current.cancel()}}),[]),Object(r.useEffect)((function(){y&&w.current(p)}),[p,y]),Fd({isInitialMount:A.current,props:t,state:d}),Object(r.useEffect)((function(){A.current?(o||s||h)&&b.current&&b.current.focus():h?b.current&&b.current.focus():a.document.activeElement===b.current&&v.current&&(x.current=!1,v.current.focus())}),[h]),Object(r.useEffect)((function(){A.current||(M.current=n.length)}));var S=zd(h,[b,v],a,(function(){p({type:8})})),k=_d();Object(r.useEffect)((function(){A.current=!1}),[]),Object(r.useEffect)((function(){h||(I.current={})}),[h]);var j=Object(r.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),p({type:13,getItemNodeFromIndex:E,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),p({type:14,getItemNodeFromIndex:E,shiftKey:e.shiftKey})}}}),[p,E]),D=Object(r.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),p({type:0,getItemNodeFromIndex:E,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),p({type:1,getItemNodeFromIndex:E,shiftKey:e.shiftKey})},Home:function(e){e.preventDefault(),p({type:3,getItemNodeFromIndex:E})},End:function(e){e.preventDefault(),p({type:4,getItemNodeFromIndex:E})},Escape:function(){p({type:2})},Enter:function(e){e.preventDefault(),p({type:5})}," ":function(e){e.preventDefault(),p({type:6})}}}),[p,E]),O=Object(r.useCallback)((function(){p({type:16})}),[p]),L=Object(r.useCallback)((function(){p({type:18})}),[p]),P=Object(r.useCallback)((function(){p({type:17})}),[p]),R=Object(r.useCallback)((function(e){p({type:19,highlightedIndex:e})}),[p]),z=Object(r.useCallback)((function(e){p({type:20,selectedItem:e})}),[p]),_=Object(r.useCallback)((function(){p({type:22})}),[p]),U=Object(r.useCallback)((function(e){p({type:21,inputValue:e})}),[p]),Z=Object(r.useCallback)((function(e){return li({id:T.labelId,htmlFor:T.toggleButtonId},e)}),[T]),F=Object(r.useCallback)((function(e,t){var n,r=void 0===e?{}:e,i=r.onMouseLeave,a=r.refKey,o=void 0===a?"ref":a,s=r.onKeyDown,l=r.onBlur,c=r.ref,u=ci(r,qd),f=(void 0===t?{}:t).suppressRefError,d=void 0!==f&&f,h=C.current.state;return k("getMenuProps",d,o,b),li(((n={})[o]=ld(c,(function(e){b.current=e})),n.id=T.menuId,n.role="listbox",n["aria-labelledby"]=T.labelId,n.tabIndex=-1,n),h.isOpen&&h.highlightedIndex>-1&&{"aria-activedescendant":T.getItemId(h.highlightedIndex)},{onMouseLeave:sd(i,(function(){p({type:9})})),onKeyDown:sd(s,(function(e){var t=pd(e);t&&D[t]?D[t](e):Ed(t)&&p({type:7,key:t,getItemNodeFromIndex:E})})),onBlur:sd(l,(function(){!1!==x.current?!S.current.isMouseDown&&p({type:8}):x.current=!0}))},u)}),[p,C,D,S,k,T,E]);return{getToggleButtonProps:Object(r.useCallback)((function(e,t){var n,r=void 0===e?{}:e,i=r.onClick,a=r.onKeyDown,o=r.refKey,s=void 0===o?"ref":o,l=r.ref,c=ci(r,Qd),u=(void 0===t?{}:t).suppressRefError,f=void 0!==u&&u,d=li(((n={})[s]=ld(l,(function(e){v.current=e})),n.id=T.toggleButtonId,n["aria-haspopup"]="listbox",n["aria-expanded"]=C.current.state.isOpen,n["aria-labelledby"]=T.labelId+" "+T.toggleButtonId,n),c);return c.disabled||(d.onClick=sd(i,(function(){p({type:12})})),d.onKeyDown=sd(a,(function(e){var t=pd(e);t&&j[t]?j[t](e):Ed(t)&&p({type:15,key:t,getItemNodeFromIndex:E})}))),k("getToggleButtonProps",f,s,v),d}),[p,C,j,k,T,E]),getLabelProps:Z,getMenuProps:F,getItemProps:Object(r.useCallback)((function(e){var t,n=void 0===e?{}:e,r=n.item,i=n.index,a=n.onMouseMove,o=n.onClick,s=n.refKey,l=void 0===s?"ref":s,c=n.ref,u=ci(n,Jd),f=C.current,d=f.state,h=f.props,g=Cd(i,r,h.items);if(g<0)throw new Error("Pass either item or item index in getItemProps!");var m=li(((t={role:"option","aria-selected":""+(g===d.highlightedIndex),id:T.getItemId(g)})[l]=ld(c,(function(e){e&&(I.current[T.getItemId(g)]=e)})),t),u);return u.disabled||(m.onMouseMove=sd(a,(function(){i!==d.highlightedIndex&&(N.current=!1,p({type:10,index:i}))})),m.onClick=sd(o,(function(){p({type:11,index:i})}))),m}),[p,C,N,T]),toggleMenu:O,openMenu:P,closeMenu:L,setHighlightedIndex:R,selectItem:z,reset:_,setInputValue:U,highlightedIndex:g,isOpen:h,selectedItem:m,inputValue:y}}Xd.stateChangeTypes=Hd;ei.a.array.isRequired,ei.a.func,ei.a.func,ei.a.func,ei.a.bool,ei.a.number,ei.a.number,ei.a.number,ei.a.bool,ei.a.bool,ei.a.bool,ei.a.any,ei.a.any,ei.a.any,ei.a.string,ei.a.string,ei.a.string,ei.a.string,ei.a.string,ei.a.string,ei.a.func,ei.a.string,ei.a.string,ei.a.func,ei.a.func,ei.a.func,ei.a.func,ei.a.func,ei.a.func,ei.a.shape({addEventListener:ei.a.func,removeEventListener:ei.a.func,document:ei.a.shape({getElementById:ei.a.func,activeElement:ei.a.any,body:ei.a.any})});li({},Dd,{getA11yStatusMessage:ud,circularNavigation:!0});ei.a.array,ei.a.array,ei.a.array,ei.a.func,ei.a.func,ei.a.func,ei.a.number,ei.a.number,ei.a.number,ei.a.func,ei.a.func,ei.a.string,ei.a.string,ei.a.shape({addEventListener:ei.a.func,removeEventListener:ei.a.func,document:ei.a.shape({getElementById:ei.a.func,activeElement:ei.a.any,body:ei.a.any})});var Kd=function(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],o=t(a);if(null!=o&&(void 0===s?o==o&&!kt(o):n(o,s)))var s=o,l=a}return l};var $d=function(e,t){return e>t};var ep=function(e){return e&&e.length?Kd(e,ce,$d):void 0},tp=n(23),np=n.n(tp);const rp=Promise.all([new np.a("Noto Sans",{weight:300}).load(),new np.a("Noto Sans",{weight:400}).load(),new np.a("Noto Sans",{weight:600}).load()]).then(()=>{ip=!0}).catch(It);let ip=!1;const ap=({id:e,size:t="small",score:n})=>{const{t:r}=Tr(),a="inline"===t?"sup":"span";return i.a.createElement(a,{className:Kr()("e-score e-nowrap",{"e-score--small e-font-size-m e-semibold":"small"===t,"e-score--large e-font-size-l e-semibold":"large"===t,"e-score--inline e-font-size-xs":"inline"===t}),id:e},r("points",{count:n}))},op=!navigator.userAgent.includes("jsdom/");var sp=Zi((function(e,{element:t}){const n=be(t,"question-id");return{answer:e.answers.answersById[n]}}),{saveAnswer:ju})((function({element:e,renderChildNodes:t,saveAnswer:n,answer:a}){const o=be(e,"question-id"),s=be(e,"max-score"),l=e.getAttribute("display-number"),c=a&&a.value&&ye(e,e=>a.value===e.getAttribute("option-id")),u=Object(r.useRef)(null),f=i.a.useRef(null),[d,p]=Object(r.useState)(!0);if(op){const[,t]=Object(r.useState)(ip);rp.then(()=>t(!0)).catch(e=>console.error(e)),Object(r.useEffect)(()=>p(!0),[e]),Object(r.useEffect)(()=>{if(d&&f.current&&u.current){const e=f.current,t=u.current,n=ep(xe(e,e=>e.firstElementChild.scrollWidth)),r=requestAnimationFrame(()=>{t.style.width=n+2+1+"px",p(!1)});return()=>cancelAnimationFrame(r)}})}const h=["",...e.children],{answers:g}=Object(r.useContext)(is),{getItemProps:m,getMenuProps:y,getToggleButtonProps:v,highlightedIndex:b,isOpen:I,selectedItem:x}=Xd({items:h,itemToString:e=>e?e.textContent:"",onSelectedItemChange:({selectedItem:e})=>{const t=e?e.getAttribute("option-id"):"";n({type:"choice",questionId:o,value:t,displayNumber:l})},initialSelectedItem:c}),{t:w}=Tr(),T=Or(e);return i.a.createElement("span",{className:"e-nowrap"},i.a.createElement("span",{className:Kr()("e-dropdown-answer e-normal"),"data-question-id":o},i.a.createElement("button",{className:Kr()("e-dropdown-answer__toggle-button e-button-plain e-columns",{"e-dropdown-answer__toggle-button--open":I}),...v({"aria-describedby":T,"aria-labelledby":void 0},{suppressRefError:!op})},i.a.createElement("span",{className:"e-dropdown-answer__label e-column e-pad-l-1 e-pad-r-4"},i.a.createElement("span",{className:"e-ellipsis e-block",ref:u},x?t(x):i.a.createElement("span",{"aria-label":w.raw("dropdown-answer.label")}," "))),i.a.createElement("span",{className:Kr()("e-dropdown-answer__toggle-icon e-text-center e-column e-column--narrow e-column--gapless e-color-link")},i.a.createElement(wa,{icon:I?ia:ra}))),i.a.createElement("span",{...y({className:Kr()("e-dropdown-answer__menu",{"e-dropdown-answer__menu--open":I}),"aria-labelledby":void 0,ref:f},{suppressRefError:!op})},h.map((e,n)=>i.a.createElement("span",{className:Kr()("e-dropdown-answer__menu-item e-block e-pad-l-1 e-pad-r-4",{"e-dropdown-answer__menu-item--selected":e===x,"e-bg-color-off-white":b!==n,"e-bg-color-link e-color-off-white":b===n}),key:n,...m({item:e,index:n})},i.a.createElement("span",{className:Kr()("e-dropdown-answer__menu-item-inner e-block",{"e-nowrap":d})},e?t(e):i.a.createElement("span",{"aria-label":w.raw("dropdown-answer.clear")}," ")))))),g.length>1&&i.a.createElement(ap,{score:s,size:"inline",id:T}))}));var lp=function(e){return"string"==typeof e||!_(e)&&D(e)&&"[object String]"==j(e)};var cp=i.a.memo((function({maxAnswers:e,minAnswers:t,type:n,childQuestions:r}){const a=r.map(e=>lp(e)?e:e.getAttribute("display-number")),{t:o}=Tr(),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}([a.length,"*"],[e,"*"],[null!=t?t:e,"*"]).map(([e,t,r])=>`answering-instructions.${n}_${e}_${r}_${t}`),l=[t,e],c=[vt(a),bt(a)];return i.a.createElement(i.a.Fragment,null,o(s,{answerCount:l,questions:c}))}));const up=({type:e,displayNumber:t})=>{if("section"===e){const{root:e}=Object(r.useContext)(Br),n=ye(e,e=>"section"===e.localName&&e.getAttribute("display-number")===t);if(n){const e=ye(n,"section-title");if(e)return i.a.createElement(i.a.Fragment,null,e.textContent.trim()+":")}}return null};var fp=i.a.memo(()=>{const e=Qi(e=>e.answers.extraAnswers),{t:t}=Tr();return e.length>0?i.a.createElement("div",{className:"error-indicator e-columns e-columns--inline e-bg-color-error e-color-off-white e-font-size-xs e-pad-1 e-mrg-r-1",role:"alert"},i.a.createElement("div",{className:"e-column e-column--narrow"},i.a.createElement(wa,{size:"lg",icon:aa,fixedWidth:!0,className:"e-mrg-r-1"})),i.a.createElement("div",{className:"e-column e-column--gapless"},e.map(e=>{const{displayNumber:n,type:r}=e;return i.a.createElement("div",{key:r+n},"exam"!==r&&"toc-section"!==r?t(r,{displayNumber:n})||i.a.createElement(up,{...e}):""," ",i.a.createElement(cp,{...e}))}))):null});var dp=i.a.memo(qr((function({element:e,renderChildNodes:t}){const{isExternal:n}=Object(r.useContext)(Vr);return n?null:i.a.createElement("span",{className:"exam-attachment e-mrg-b-2"},t(e))})));var pp=i.a.memo((function({element:e,renderChildNodes:t}){return i.a.createElement(os,null,t(e))}));var hp=i.a.memo((function({element:e,renderChildNodes:t}){return i.a.createElement("div",{className:"exam-instruction notification e-pad-4"},t(e))}));var gp=i.a.memo(as((function({element:e,renderChildNodes:t}){const n=Qi(e=>e.cas.casStatus),{casForbidden:a}=Object(r.useContext)(hs),{displayNumber:o,level:s}=Object(r.useContext)(is);return a&&"forbidden"!==n?null:i.a.createElement("div",{className:Kr()("exam-question",{"e-mrg-b-8 e-clearfix":0===s,"e-mrg-l-8 e-mrg-y-4":s>0}),id:o},t(e))})));var mp=i.a.memo((function({element:e,renderChildNodes:t}){return i.a.createElement("div",{className:"exam-question-instruction e-mrg-b-2"},t(e))}));var yp=()=>i.a.createElement(wa,{size:"lg",icon:la,fixedWidth:!0,className:"e-color-link e-mrg-r-1"});var vp=i.a.memo(({element:e,renderChildNodes:t})=>{const{displayNumber:n,maxScore:a,level:o,maxAnswers:s,childQuestions:l}=Object(r.useContext)(is),c="h"+Math.min(3+o,6);return i.a.createElement(i.a.Fragment,null,i.a.createElement(c,{className:Kr()("exam-question-title",{"e-normal e-font-size-m":o>0})},i.a.createElement("strong",{className:Kr()("exam-question-title__display-number",{"exam-question-title__display-number--indented":o>0})},ls(n)+" "),t(e)," ",i.a.createElement(ap,{score:a,size:0===o?"large":"small"})),null!=s&&l.length>0&&i.a.createElement("p",{className:"e-italic"},i.a.createElement(yp,null),i.a.createElement(cp,{maxAnswers:s,childQuestions:l,type:"question"})))});var bp=({duration:e,durationRemaining:t,className:n})=>{const a=Object(r.useRef)(null),[o,s]=Object(r.useState)(!1);return Object(r.useEffect)(()=>{a.current.clientTop,s(!0)},[]),i.a.createElement("div",{className:Kr()("e-progress-bar",n),ref:a},i.a.createElement("div",{className:Kr()("e-progress-bar__fill",{"e-progress-bar__fill--animating":o}),style:{transitionDuration:e+"s"},role:"progressbar","aria-valuemax":e,"aria-valuemin":0,"aria-valuenow":e-t}))};function Ip(e){const t=Wi(),{t:n}=Tr(),{casCountdownDuration:a}=Object(r.useContext)(fs);return i.a.createElement("div",{className:"e-cas-controls"},"forbidden"===e.casStatus?i.a.createElement("div",{className:"e-text-center"},i.a.createElement("hr",{className:"e-exam-separator"}),i.a.createElement("p",{id:"e-cas-controls-forbidden-description"},n("cas.forbidden.infoText")),i.a.createElement("button",{className:"e-button",id:"allow-cas",onClick:()=>{return t((e=a,Object(xo.action)("ALLOW_CAS",e)));var e},"aria-describedby":"e-cas-controls-forbidden-description"},n("cas.forbidden.buttonText"))):"allowing"===e.casStatus?i.a.createElement("div",{className:"e-text-center",ref:t=>null!=t&&a===e.durationRemaining&&t.scrollIntoView()},i.a.createElement("hr",{className:"e-exam-separator"}),i.a.createElement("p",{id:"e-cas-controls-allowing-description"},n("cas.allowing.infoText")),i.a.createElement(bp,{className:"e-mrg-b-2",duration:a,durationRemaining:e.durationRemaining}),i.a.createElement("button",{className:"e-button",id:"allow-cas-cancelled",onClick:()=>t(Uf()),ref:t=>null!=t&&a===e.durationRemaining&&t.focus(),"aria-describedby":"e-cas-controls-allowing-description"},n("cas.allowing.cancel",{count:e.durationRemaining}))):i.a.createElement("div",{className:"notification e-text-left e-mrg-b-0"},n("cas.allowed.infoText")))}var xp=i.a.memo(gs((function({element:e,renderChildNodes:t}){const n=Qi(e=>e.cas,Mi),{casForbidden:a,displayNumber:o}=Object(r.useContext)(hs);return i.a.createElement(os,{className:"exam-section","aria-labelledby":Sr(o)},t(e),a&&i.a.createElement(Ip,{...n}))})));var wp=i.a.memo((function({element:e,renderChildNodes:t}){const{numberOfSections:n}=Object(r.useContext)(Br),{displayNumber:a,minAnswers:o,maxAnswers:s,childQuestions:l}=Object(r.useContext)(hs),{t:c}=Tr();return i.a.createElement(i.a.Fragment,null,e.hasChildNodes()&&i.a.createElement("h2",{className:"exam-section-title",id:Sr(a)},n>1&&c("section",{displayNumber:a})," ",t(e)),null!=s&&i.a.createElement("span",{className:"notification notification--inline"},i.a.createElement(yp,null),i.a.createElement(cp,{maxAnswers:s,minAnswers:o,childQuestions:l,type:"section"})))}));function Tp(e){return bt(e.split("."))+"."}function Mp({answer:e,focusedQuestionId:t,renderChildNodes:n}){const r=be(e,"question-id"),a=e.getAttribute("display-number"),o=ye(e,"hint");return i.a.createElement("p",{className:Kr()("e-hints__hint",{"e-hints__hint--focused":t===r}),onClick:()=>{const e=document.querySelector(`.text-answer[data-question-id="${r}"]`);e&&e.focus()},"data-question-id":r},Tp(a)," ",n(o))}var Ap=({element:e,renderChildNodes:t})=>{const n=Qi(e=>e.answers.focusedQuestionId),r=ge(e,["text-answer","scored-text-answer"]).filter(e=>null!=ye(e,"hint"));return i.a.createElement("div",{className:"e-columns"},i.a.createElement("div",{className:"e-column e-column--8"},t(e)),i.a.createElement("div",{className:"e-hints e-column e-column--4","aria-hidden":"true"},r.map((e,r)=>i.a.createElement(Mp,{answer:e,focusedQuestionId:n,renderChildNodes:t,key:r}))))};const Cp=Ae({});var Ep=i.a.memo((function(e){const{root:t}=Object(r.useContext)(Br),{t:n}=Tr(),a=ge(t,"reference").filter(e=>null==me(e,"external-material"));return a.length>0?i.a.createElement(os,{"aria-labelledby":"references-title"},i.a.createElement("h2",{id:"references-title"},n("references.heading")),i.a.createElement("ol",{className:"e-list-data e-color-darkgrey e-light"},a.map((e,t)=>{const n=me(e,"question").getAttribute("display-number");return i.a.createElement("li",{"data-list-number":ls(n),key:`${n}${t}`},i.a.createElement(_o,{element:e,renderChildNodes:Cp}))}))):null}));var Np=i.a.memo((function(){const e=Qi(na),{t:t}=Tr();return"initial"===e?null:i.a.createElement("div",{className:"save-indicator e-pad-1 e-font-size-xs"},i.a.createElement("span",{className:Kr()("save-indicator-text","save-indicator-text--"+e)},t("answer-saved")))}));var Sp=i.a.memo((function({element:e,renderChildNodes:t}){return i.a.createElement("div",{className:"e-mrg-b-2"},t(e))}));const kp=e=>{const{showAttachmentLinks:t,showAnsweringInstructions:n}=e,a=({element:e})=>{const{numberOfSections:t}=Object(r.useContext)(Br),{childQuestions:a,displayNumber:s,minAnswers:l,maxAnswers:c}=Object(r.useContext)(hs),{t:u}=Tr();return i.a.createElement(i.a.Fragment,null,e.hasChildNodes()&&i.a.createElement("header",{className:"e-semibold",id:Dr(s)},t>1&&u("section",{displayNumber:s})," ",o(e)),n&&null!=c&&i.a.createElement("div",null,i.a.createElement(cp,{maxAnswers:c,minAnswers:l,childQuestions:a,type:"toc-section"})))},o=Ae({section:gs(({element:e,renderChildNodes:t})=>{const{displayNumber:n}=Object(r.useContext)(hs),o=ye(e,"section-title");return i.a.createElement("li",null,o&&i.a.createElement(a,{element:o,renderChildNodes:t}),i.a.createElement("ol",{className:"e-list-data e-pad-l-0","aria-labelledby":o&&Dr(n)},t(e,1)))}),question:as(({element:e})=>{const{attachmentsURL:n}=Object(r.useContext)(Br),{displayNumber:a,maxScore:s}=Object(r.useContext)(is),{t:l}=Tr(),c=ye(e,"question-title"),u=t&&null!=a&&he(e,"external-material");return i.a.createElement("li",{"data-list-number":a+"."},i.a.createElement("div",{className:"e-columns"},i.a.createElement("span",{className:"e-column"},i.a.createElement("a",{href:Ur("",{hash:a})},o(c))),u&&i.a.createElement("span",{className:"e-column e-column--narrow"},i.a.createElement("a",{href:Ur(n,{hash:ve(me(u,"question"),"display-number")}),target:"attachments"},l("material"))),i.a.createElement("span",{className:"e-column e-column--narrow table-of-contents--score-column"},l("points",{count:s}))))})});return i.a.memo(()=>{const{root:e,maxScore:t}=Object(r.useContext)(Br),{t:n}=Tr();return i.a.createElement("nav",{className:"table-of-contents e-mrg-b-6","aria-labelledby":"toc-title"},i.a.createElement("h2",{id:"toc-title"},n("toc-heading")),i.a.createElement("ol",{className:"e-list-plain e-pad-l-0"},o(e)),i.a.createElement("div",{className:"e-columns"},i.a.createElement("strong",{className:"e-column"},n("exam-total")),i.a.createElement("strong",{className:"e-column e-column--narrow table-of-contents--score-column"},n("points",{count:t}))))})};var jp=function(e,t){if("function"!=typeof t)throw new TypeError("Expected a function");return e=Jo(e),function(){if(--e<1)return t.apply(this,arguments)}},Dp=n(3),Op=n.n(Dp),Lp=n(7),Pp=[{label:"Perusmerit ja kreikkalaiset aakkoset",characters:[{character:"°",popular:!0},{character:"·",latexCommand:"\\cdot",popular:!0},{character:"±",latexCommand:"\\pm",popular:!0},{character:"∞",latexCommand:"\\infty",popular:!0},{character:"²",latexCommand:"^2",popular:!0},{character:"³",latexCommand:"^3",popular:!0},{character:"½",latexCommand:"\\frac{1}{2}",popular:!0},{character:"⅓",latexCommand:"\\frac{1}{3}",popular:!0},{character:"π",latexCommand:"\\pi",popular:!0},{character:"α",latexCommand:"\\alpha",popular:!0},{character:"β",latexCommand:"\\beta",popular:!0},{character:"Γ",latexCommand:"\\Gamma"},{character:"γ",latexCommand:"\\gamma"},{character:"Δ",latexCommand:"\\Delta"},{character:"δ",latexCommand:"\\delta"},{character:"ε",latexCommand:"\\varepsilon"},{character:"ζ",latexCommand:"\\zeta"},{character:"η",latexCommand:"\\eta"},{character:"θ",latexCommand:"\\theta"},{character:"ϑ",latexCommand:"\\vartheta"},{character:"&iota;",latexCommand:"\\iota"},{character:"κ",latexCommand:"\\kappa"},{character:"Λ",latexCommand:"\\Lambda"},{character:"λ",latexCommand:"\\lambda"},{character:"µ",latexCommand:"\\mu"},{character:"ν",latexCommand:"\\nu"},{character:"Ξ",latexCommand:"\\Xi"},{character:"ξ",latexCommand:"\\xi"},{character:"∏",latexCommand:"\\Pi"},{character:"ρ",latexCommand:"\\rho"},{character:"∑",latexCommand:"\\Sigma"},{character:"σ",latexCommand:"\\sigma"},{character:"τ",latexCommand:"\\tau"},{character:"Υ",latexCommand:"\\Upsilon"},{character:"υ",latexCommand:"\\upsilon"},{character:"Φ",latexCommand:"\\Phi"},{character:"Ф",latexCommand:"\\phi"},{character:"χ",latexCommand:"\\chi"},{character:"Ψ",latexCommand:"\\Psi"},{character:"ψ",latexCommand:"\\psi"},{character:"Ω",latexCommand:"\\Omega"},{character:"ω",latexCommand:"\\omega"},{character:"∂",latexCommand:"\\partial"},{character:"φ",latexCommand:"\\varphi"}]},{label:"Algebra",characters:[{character:"≠",latexCommand:"\\neq",popular:!0},{character:"≈",latexCommand:"\\approx",popular:!0},{character:"≤",latexCommand:"\\leq",popular:!0},{character:"≥",latexCommand:"\\geq"},{character:"<"},{character:">"},{character:"∼",latexCommand:"\\sim"},{character:"≡",latexCommand:"\\equiv"},{character:"≢",latexCommand:"\\not\\equiv"},{character:"∘",latexCommand:"\\circ"},{character:"…",latexCommand:"\\ldots"},{character:"∝",latexCommand:"\\propto"}]},{label:"Geometria ja vektorioppi",characters:[{character:"∢",latexCommand:"\\sphericalangle",popular:!0},{character:"|",latexCommand:"\\mid",popular:!0},{character:"‖",latexCommand:"\\parallel",popular:!0},{character:"⇌",latexCommand:"\\xrightleftharpoons",noWrite:!0},{character:"⇅"},{character:"∠",latexCommand:"\\angle"},{character:"↑",latexCommand:"\\uparrow"},{character:"↗",latexCommand:"\\nearrow"},{character:"↘",latexCommand:"\\searrow"},{character:"↓",latexCommand:"\\downarrow"},{character:"↔",latexCommand:"\\leftrightarrow"},{character:"⊥",latexCommand:"\\perp"}]},{label:"Logiikka ja joukko-oppi",characters:[{character:"→",latexCommand:"\\rightarrow",popular:!0},{character:"⇒",latexCommand:"\\Rightarrow",popular:!0},{character:"⇔",latexCommand:"\\Leftrightarrow",popular:!0},{character:"∈",latexCommand:"\\in",popular:!0},{character:"ℤ",latexCommand:"\\mathbb{Z}",popular:!0},{character:"ℝ",latexCommand:"\\mathbb{R}",popular:!0},{character:"∃",latexCommand:"\\exists"},{character:"∀",latexCommand:"\\forall"},{character:"ℕ",latexCommand:"\\mathbb{N}"},{character:"ℚ",latexCommand:"\\mathbb{Q}"},{character:"∩",latexCommand:"\\cap"},{character:"∪",latexCommand:"\\cup"},{character:"∖",latexCommand:"\\setminus"},{character:"⊂",latexCommand:"\\subset"},{character:"⊄",latexCommand:"\\notsubset"},{character:"∉",latexCommand:"\\notin"},{character:"∅",latexCommand:"\\empty"},{character:"∧",latexCommand:"\\and"},{character:"∨",latexCommand:"\\or"},{character:"¬"},{character:"∇",latexCommand:"\\nabla"}]}],Rp=[{action:"\\sqrt",label:"\\sqrt{X}",svg:"data:image/svg+xml;base64,PHN2ZyB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgd2lkdGg9IjMuNzQ0ZXgiIGhlaWdodD0iMi44NDNleCIgc3R5bGU9InZlcnRpY2FsLWFsaWduOiAtMC44MzhleDsiIHZpZXdCb3g9IjAgLTg2My4xIDE2MTIgMTIyMy45IiByb2xlPSJpbWciIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgYXJpYS1sYWJlbGxlZGJ5PSJNYXRoSmF4LVNWRy0xLVRpdGxlIj4KPHRpdGxlIGlkPSJNYXRoSmF4LVNWRy0xLVRpdGxlIj5cc3FydHtcc3F1YXJlfTwvdGl0bGU+CjxkZWZzIGFyaWEtaGlkZGVuPSJ0cnVlIj4KPHBhdGggc3Ryb2tlLXdpZHRoPSIxIiBpZD0iRTEtTEFUSU5NT0RFUk5NQUlOLTI1QTEiIGQ9Ik03MjIgLTYzYzAgLTExIC05IC0yMCAtMjAgLTIwaC02MjZjLTExIDAgLTIwIDkgLTIwIDIwdjYyNmMwIDExIDkgMjAgMjAgMjBoNjI2YzExIDAgMjAgLTkgMjAgLTIwdi02MjZ6TTY4MiA1NDNoLTU4NnYtNTg2aDU4NnY1ODZaIj48L3BhdGg+CjxwYXRoIHN0cm9rZS13aWR0aD0iMSIgaWQ9IkUxLUxBVElOTU9ERVJOTUFJTi0yMjFBIiBkPSJNODUzIDIwYzAgLTUgLTEgLTYgLTYgLTE3bC00NTYgLTk0NGMtNyAtMTUgLTkgLTE5IC0yNSAtMTljLTExIDAgLTEzIDEgLTE5IDE1bC0xOTggNDM1bC01MiAtMzljLTkgLTggLTExIC04IC0xNCAtOGMtNiAwIC0xMCA0IC0xMCAxMWMwIDQgMSA1IDEyI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3Ryb2tlLXdpZHRoPSIwIiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAwIDApIiBhcmlhLWhpZGRlbj0idHJ1ZSI+CiA8dXNlIHhsaW5rOmhyZWY9IiNFMS1MQVRJTk1PREVSTk1BSU4tNTQiIHg9IjAiIHk9IjAiPjwvdXNlPgo8L2c+Cjwvc3ZnPg=="}];function zp(e,t,n,r){let i;const a=Op()(`<div class="rich-text-editor-overlay rich-text-editor-hidden">\n <div class="rich-text-editor-overlay-modal" aria-modal="true" tabindex="0" data-js="overlayModal" >\n <div class="rich-text-editor-modal-columns">\n <div class="rich-text-editor-modal-column rich-text-editor-modal-column-2" data-i18n="[html]rich_text_editor.help_overlay.screenshot">\n ${n.help_overlay.screenshot}\n </div>\n <div class="rich-text-editor-modal-column rich-text-editor-modal-column-1" data-i18n="[html]rich_text_editor.help_overlay.equation">\n ${n.help_overlay.equation}\n </div>\n </div>\n <button data-js="closeOverlayButton" class="rich-text-editor-close-overlay-button"></button>\n </div>\n</div>`).on("mousedown",'[data-js="closeOverlayButton"]',e=>{e.preventDefault(),Op()("body").removeClass("rich-text-editor-overlay-open"),a.addClass("rich-text-editor-hidden"),i.focus()}).on("mousedown",e=>{e.target.classList.contains("rich-text-editor-overlay")&&(e.preventDefault(),e.stopPropagation(),Op()("body").removeClass("rich-text-editor-overlay-open"),a.addClass("rich-text-editor-hidden"),i.focus())}),o=Op()(`\n <div class="rich-text-editor-tools" data-js="tools">\n\n <div class="rich-text-editor-tools-button-wrapper">\n <div class="rich-text-editor-toolbar-wrapper">\n <button class="rich-text-editor-characters-expand-collapse" data-js="expandCollapseCharacters" style="z-index: 100"></button>\n </div>\n <div class="rich-text-editor-toolbar-wrapper">\n <button class="rich-text-editor-help-button" data-js="richTextEditorHelp" style="z-index: 100"></button>\n </div>\n </div>\n <div class="rich-text-editor-tools-row">\n <div class="rich-text-editor-toolbar-wrapper">\n <div class="rich-text-editor-toolbar-characters rich-text-editor-toolbar rich-text-editor-toolbar-button-list" data-js="charactersList"></div>\n </div>\n </div>\n <div class="rich-text-editor-tools-row">\n <div class="rich-text-editor-toolbar-wrapper rich-text-editor-equation-wrapper">\n <div class="rich-text-editor-toolbar-equation rich-text-editor-toolbar rich-text-editor-toolbar-button-list" data-js="mathToolbar"></div>\n </div>\n </div>\n <div class="rich-text-editor-tools-button-wrapper">\n <div class="rich-text-editor-toolbar-wrapper">\n <button class="rich-text-editor-new-equation rich-text-editor-button rich-text-editor-button-action" data-js="newEquation" data-command="Ctrl-E" data-i18n="rich_text_editor.insert_equation">Σ ${n.insertEquation}</button>\n </div>\n </div>\n </div>\n `).on("mousedown",e=>{e.preventDefault()}).on("mousedown",'[data-js="expandCollapseCharacters"]',e=>{e.preventDefault(),o.toggleClass("rich-text-editor-show-all-characters")}).on("mousedown",'[data-js="richTextEditorHelp"]',e=>{e.preventDefault(),i=document.activeElement,Op()("body").addClass("rich-text-editor-overlay-open"),a.removeClass("rich-text-editor-hidden"),a.find('[data-js="overlayModal"]').focus(),Op()(window).on("keydown.help",e=>{27===e.keyCode&&(e.stopPropagation(),e.preventDefault(),Op()("body").removeClass("rich-text-editor-overlay-open"),a.addClass("rich-text-editor-hidden"),Op()(window).off("keydown.help"))})}),s=o.find('[data-js="newEquation"]'),l=o.find('[data-js="mathToolbar"]');return function(e,t,n){e.find('[data-js="charactersList"]').append(Pp.map(e=>`<div class="rich-text-editor-toolbar-characters-group"\n style="width: ${35*(e=>e.characters.filter(e=>e.popular).length)(e)}px">\n ${e.characters.map(_p).join("")}\n </div>`)).on("mousedown","button",e=>{e.preventDefault();const r=e.currentTarget.innerText,i=e.currentTarget.dataset.command,a="true"===e.currentTarget.dataset.usewrite;n()?window.document.execCommand("insertText",!1,r):t.insertMath(i||r,void 0,a)})}(o,e,t),function(e,t){e.append(Rp.map(e=>"string"==typeof e?e:`<button class="rich-text-editor-button rich-text-editor-button-grid" data-command="${e.action}" data-latexcommand="${e.label||""}" data-usewrite="${e.useWrite||!1}">\n<img src="${e.svg}"/>\n</button>`).join("")).on("mousedown","button",e=>{e.preventDefault();const n=e.currentTarget.dataset;t.insertMath(n.command,n.latexcommand,"true"===n.usewrite)})}(l,e),function(e,t,n){e.mousedown((e=>{e.preventDefault(),n()&&t.insertNewEquation()}).bind(this))}(s,e,t),Op.a.fn.i18n?o.i18n():Op.a.fn.localize&&o.localize(),{toolbar:o,helpOverlay:a}}const _p=e=>`<button class="rich-text-editor-button rich-text-editor-button-grid${e.popular?" rich-text-editor-characters-popular":""}" ${e.latexCommand?`data-command="${e.latexCommand}"`:""} data-usewrite="${!e.noWrite}">${e.character}</button>`;var Up=n(40),Zp=n(41);if(!Zp)throw new Error("MathQuill is required but has not been loaded");const Fp=13,Gp=27;window.mathEditorState=window.mathEditorState||{firstTime:!0,MQ:void 0};const Bp=window.mathEditorState,Yp=function(e){return""===e.replace(/(\\|\s)*/g,"")?"":e};const Wp={FI:{editor:{mathEditor:"Matikkaeditori",title:"Kaavaeditorin kehitysversio",description:"\n<ul>\n<li>“Lisää kaava” -napin alta löydät yleisimpiä matematiikassa, fysiikassa ja\nkemiassa käytettäviä merkintöjä. Lisäksi erikoismerkkejä voi käyttää kaavan kirjoittamiseen.</li>\n <li>Kaavoja voi rakentaa\nnapsauttamalla valikon merkintöjä ja/tai kirjoittamalla LaTeXia.</li>\n <li>Editorin vastauskenttään voi kirjoittaa tekstiä ja kaavoja sekä\nlisätä kuvia.</li></ul>",shortcutTitle:"Pikanäppäinvinkkejä",shortcuts:'<table><tbody>\n<tr><th>Liitä kuva leikepöydältä</th><td>Ctrl-V</td></tr>\n<tr><th>Kirjoita kaava</th><td>Ctrl-E</td></tr>\n<tr><th colspan="2">Kaavassa</th></tr>\n<tr><th>Jakoviiva</th><td>/</td></tr>\n<tr><th>Kertomerkki</th><td>*</td></tr>\n<tr><th>Eksponentti</th><td>^</td></tr>\n<tr><th>Sulje kaava</th><td>Esc</td></tr>\n<tr><th>Lisää kaava seuraavalle riville</th><td>Enter</td></tr>\n</tbody>\n</table>',formatting:"Muotoilu",specialCharacters:"Erikoismerkit",insertEquation:"Lisää kaava",close:"sulje",save:"Tallenna",updated:"Päivitetty",sendFeedback:"Lähetä palautetta",langLink:"/sv",langLabel:"På svenska",answerTitle:"Vastaus",toggleInstructions:"Näytä ohjeet",help_overlay:{screenshot:'<h3>Kuvakaappaukset</h3><p>Tee kuva haluamallasi ohjelmalla. Napsauta yläpalkista kuvakaappauskuvaketta <span class="screen-shot-image"></span> ja rajaa haluamasi kuva-alue näytöltä. <span class="rich-text-editor-help-key">CTRL</span>-<span class="rich-text-editor-help-key">V</span> liittää kuvan vastauskenttään kursorin kohdalle. Voit vaihtaa kuvan paikkaa raahaamalla tai leikkaamalla kuvan komennolla <span class="rich-text-editor-help-key">CTRL</span>-<span class="rich-text-editor-help-key">X</span> ja liittämällä sen komennolla <span class="rich-text-editor-help-key">CTRL</span>-<span class="rich-text-editor-help-key">V</span> haluamaasi paikkaan.</p>',equation:'<h3>Kaavat</h3><p>Kaava lisätään komennolla <span class="rich-text-editor-help-key">CTRL</span>-<span class="rich-text-editor-help-key">E</span><br>Pikakomennot kaavassa:</p><table class="rich-text-editor-help-shortcuts"><tbody><tr><th>Jakoviiva</th><td><span class="rich-text-editor-help-key">/</span></td></tr><tr><th>Kertomerkki</th><td><span class="rich-text-editor-help-key">*</span></td></tr><tr><th>Yläindeksi</th><td><span class="rich-text-editor-help-key">^</span></td></tr><tr><th>Alaindeksi</th><td><span class="rich-text-editor-help-key">_</span></td></tr><tr><th>Lisää kaava seuraavalle riville</th><td><span class="rich-text-editor-help-key">↵</span></td></tr><tr><th>Sulje kaava</th><td><span class="rich-text-editor-help-key">esc</span></td></tr></tbody></table>'}},annotating:{sendFeedback:"Lähetä palautetta",updated:"Päivitetty",mathEditor:"Matikkaeditori",title:"Arvostelu",backLink:"/",backLinkLabel:"Palaa kaavaeditoriin",save:"Tallenna merkinnät",langLink:"/sv/bedomning",langLabel:"På svenska"}},SV:{editor:{mathEditor:"Matematikeditor",title:"Formeleditorns utvecklingsversion",description:"\n<ul>\n <li>Under knappen “Lägg till formel” hittar du de vanligaste beteckningarna som används i matematik, fysik och kemi. Dessutom kan du använda specialtecken för att skriva formler.</li>\n<li>Det går att konstruera formler genom att klicka på beteckningarna i menyerna och/eller genom att skriva LaTeX.</li>\n<li>Det går förutom att skriva text och formler, att också att lägga till bilder i svarsfältet.</li></ul>",shortcutTitle:"Tips på tangentkombinationer",shortcuts:'<table><tbody>\n<tr><th>Lägg till en bild från urklippet</th><td>Ctrl-V</td></tr>\n<tr><th>Skriv en formel</th><td>Ctrl-E</td></tr>\n<tr><th colspan="2">I formeln </th></tr>\n<tr><th>Bråkstreck</th><td>/</td></tr>\n<tr><th>Multiplikationstecken</th><td>*</td></tr>\n<tr><th>Exponent</th><td>^</td></tr>\n<tr><th>Stäng formeln</th><td>Esc</td></tr>\n<tr><th>Lägg till en formel på följande rad</th><td>Enter</td></tr>\n</tbody>\n</table>',formatting:"Formatering",specialCharacters:"Specialtecken",insertEquation:"Lägg till formel",close:"stäng",save:"Spara",updated:"Uppdaterad",sendFeedback:"Skicka feedback",langLink:"/",langLabel:"Suomeksi",answerTitle:"Svar",toggleInstructions:"Visa intruktioner",help_overlay:{screenshot:'<h3>Skärmdumpar</h3><p>Skapa bilden med valbart program. Klicka på skärmdumpsikonen i övre balken<span class="screen-shot-image"></span> och avgränsa den delen av skärmen du vill använda.<span class="rich-text-editor-help-key">CTRL</span>-<span class="rich-text-editor-help-key">V</span>bifogar bilden i svarsfältet där kursorn ligger. Du kan ändra på bildens position genom att släpa bilden eller genom att klippa den med kommandot<span class="rich-text-editor-help-key">CTRL</span>-<span class="rich-text-editor-help-key">X</span>och klistra in den med kommandot<span class="rich-text-editor-help-key">CTRL</span>-<span class="rich-text-editor-help-key">V</span>på valbart ställe.</p>',equation:'<h3>Formler</h3><p>Formeln läggs till med kommandot<span class="rich-text-editor-help-key">CTRL</span>-<spanclass="rich-text-editor-help-key">E</span><br />Snabbkommandon med formler:</p><table class="rich-text-editor-help-shortcuts"><tbody><tr><th>Divisionsstreck</th><td><span class="rich-text-editor-help-key">/</span></td></tr><tr><th>Multiplikationstecken</th><td><span class="rich-text-editor-help-key">*</span></td></tr><tr><th>Upphöjt index</th><td><span class="rich-text-editor-help-key">^</span></td></tr><tr><th>Nedsänkt index</th><td><span class="rich-text-editor-help-key">_</span></td></tr><tr><th>Lägg till formel på nästa rad</th><td><span class="rich-text-editor-help-key">↵</span></td></tr><tr><th>Stäng formeln</th><td><span class="rich-text-editor-help-key">esc</span></td></tr></tbody></table>'}},annotating:{sendFeedback:"Skicka respons",updated:"Uppdaterad",mathEditor:"Matematikeditor",title:"Bedömning",backLink:"/sv",backLinkLabel:"Matematikeditor",save:"Spara anteckningar",langLink:"/tarkistus",langLabel:"Suomeksi"}}},Hp=69,Vp=Op()('<div class="rich-text-editor-hidden" style="display: none;" data-js="outerPlaceholder">');window.richTextEditorState=window.richTextEditorState||{focus:{richText:!1,latexField:!1,equationField:!1},$currentEditor:void 0,firstCall:!0,math:void 0,$toolbar:void 0};const qp=window.richTextEditorState,Qp=qp.focus,Jp=(e,t,n=(()=>{}))=>{const r=Wp[t.locale||"FI"].editor,i=t.screenshot.saver,a=t.baseUrl||"";if(qp.firstCall){qp.firstCall=!1,qp.math=function(e,t,n,r=((e,t)=>{const r=Yp(t);e.prop({src:n+"/math.svg?latex="+encodeURIComponent(r),alt:r}),e.closest('[data-js="answer"]').trigger("input")})){let i;Bp.firstTime&&(Bp.MQ=Zp.getInterface(2),Bp.firstTime=!1);const a=Op()('\n <div class="math-editor" data-js="mathEditor">\n <div class="math-editor-equation-field" data-js="equationField"></div>\n <textarea rows="1" class="math-editor-latex-field" data-js="latexField" placeholder="LaTeΧ"></textarea>\n </div>');e.append(a);const o=a.find('[data-js="latexField"]'),s=a.find('[data-js="equationField"]');let l,c=!1,u=null;const f=Bp.MQ.MathField(s.get(0),{handlers:{edit:p,enter:()=>{I(!0),setTimeout(()=>y("<br>"),2)}}});function d(e){Op()(".rich-text-editor-overlay").is(":visible")||(Lp.d(e,Fp)||Lp.e(e,Gp))&&I(!0)}return s.on("input",".mq-textarea textarea",p).on("focus blur",".mq-textarea textarea",e=>{t.equationField="blur"!==e.type&&"focusout"!==e.type,m()}).on("keydown",d).on("paste",e=>e.stopPropagation()),o.on("keypress",(function(e){","===e.originalEvent.key&&(e.preventDefault(),Lp.b(o.get(0),"{,}"));h(e)})).on("input paste",h).on("focus blur",e=>{t.latexField="blur"!==e.type,m()}).on("keydown",d).on("paste",e=>e.stopPropagation()),{insertNewEquation:y,insertMath:function(e,n,r){t.latexField?(Lp.b(o.get(0),n||e),h()):t.equationField&&(r?f.write(e):f.typedText(e),~e.indexOf("\\")&&f.keystroke("Spacebar"),setTimeout(()=>f.focus(),0))},openMathEditor:function(e){c&&I();Lp.i(e),v(e)},closeMathEditor:I};function p(e){e&&e.originalEvent&&e.originalEvent.stopPropagation(),clearTimeout(l),l=setTimeout(()=>{if(t.latexField)return;const e=f.latex();o.val(e),b(a.prev(),e),g()},0)}function h(e){e&&e.originalEvent&&e.originalEvent.stopPropagation(),b(a.prev(),o.val()),setTimeout(()=>f.latex(o.val()),1),g()}function g(){o.get(0).style.height="auto",o.get(0).style.height=o.get(0).scrollHeight+"px"}function m(){clearTimeout(u),u=setTimeout(()=>{a.trigger({type:"mathfocus",hasFocus:t.latexField||t.equationField}),t.latexField||t.equationField||I()},0)}function y(e=""){window.document.execCommand("insertHTML",!1,e+'<img data-js="new" alt="" src="" style="display: none"/>'),v(Op()('[data-js="new"]').removeAttr("data-js"))}function v(e){e.hide(),e.after(a),c=!0,t.equationField=!0,x(!0),setTimeout(()=>f.focus(),0),o.val(e.prop("alt")),h(),Lp.h(a)}function b(e,t){clearTimeout(i),i=setTimeout(()=>{r(e,t)},500)}function I(n=!1){const i=a.closest('[data-js="answer"]'),s=a.prev();""===Yp(o.val())?s.remove():(s.show(),r(s,o.val())),x(!1),c=!1,t.latexField=!1,t.equationField=!1,a.trigger({type:"mathfocus",hasFocus:t.latexField||t.equationField}),e.append(a),n&&i.focus()}function x(e){Op()("body").toggleClass("math-editor-focus",e)}}(Vp,Qp,a,t.updateMathImg);const e=zp(qp.math,()=>Qp.richText,r);qp.$toolbar=e.toolbar;const n=e.helpOverlay;Op()("body").append(Vp,qp.$toolbar,n)}n(Lp.g(e));let o=!1;Op()(e).attr({contenteditable:!0,spellcheck:!1,"data-js":"answer"}).addClass("rich-text-editor").on("click",Lp.a,e=>{1===e.which&&(Kp(Op()(e.target).closest('[data-js="answer"]')),qp.math.openMathEditor(Op()(e.target)))}).on("keydown",e=>{!Lp.d(e,Hp)||Qp.equationField||Qp.latexField||(e.preventDefault(),qp.math.insertNewEquation())}).on("mathfocus",e=>{Op()(e.currentTarget).toggleClass("rich-text-focused",e.hasFocus),nh()&&$p(qp.$currentEditor)}).on("focus blur",e=>{"focus"===e.type&&qp.math.closeMathEditor(),function(e){Qp.richText="focus"===e.type,Op()(e.currentTarget).toggleClass("rich-text-focused",Qp.richText),clearTimeout(th),th=setTimeout(()=>{!Op()("body").hasClass("rich-text-editor-overlay-open")&&nh()?$p(Op()(e.target)):Kp(Op()(e.target))},0)}(e)}).on("input",e=>{o||n(Lp.g(e.currentTarget))}).on("drop",e=>{o=!0,setTimeout(()=>{Op()(e.target).html(Lp.f(e.target.innerHTML)),Up.b(Op()(e.currentTarget),i),o=!1},100)}).on("paste",e=>{o=!0,setTimeout(()=>o=!1,0),Up.a(e,i)}),setTimeout(()=>document.execCommand("enableObjectResizing",!1,!1),0)};function Xp(e,t){Op()("body").toggleClass("rich-text-editor-focus",e),t.toggleClass("rich-text-focused",e)}function Kp(e){qp.$currentEditor=e,eh(),Xp(!0,qp.$currentEditor)}function $p(e){Xp(!1,e),eh(),Qp.richText=!1}function eh(){qp.$toolbar.addClass("rich-text-editor-tools--animating").one("transitionend transitioncancel",()=>qp.$toolbar.removeClass("rich-text-editor-tools--animating"))}let th;function nh(){return!Qp.richText&&!Qp.latexField&&!Qp.equationField}class rh extends i.a.PureComponent{constructor(e){super(e),this.handleSaveError=e=>{const t=(()=>{switch(Xi(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.ref=i.a.createRef(),this.lastHTML=this.props.answer?this.props.answer.value:""}componentDidMount(){const{current:e}=this.ref,{answer:t,saveScreenshot:n}=this.props;e&&(t&&(e.innerHTML=t.value),Jp(e,{locale:this.context.language.slice(0,2).toUpperCase(),screenshot:{saver:({data:e,type:t})=>n(e instanceof Blob?e:new Blob([e],{type:t})).catch(e=>{throw this.handleSaveError(e),e})}},jp(2,this.handleChange)))}componentDidUpdate(){const{current:e}=this.ref;e&&this.props.answer&&this.props.answer.value!==this.lastHTML&&(e.innerHTML=this.lastHTML=this.props.answer.value)}render(){const{className:e,questionId:t}=this.props;return i.a.createElement("div",{ref:this.ref,className:Kr()("text-answer text-answer--multi-line",e),"data-question-id":t,role:"textbox","aria-multiline":"true",tabIndex:0})}}rh.contextType=Br;class ih extends i.a.PureComponent{constructor(e){super(e),this.onChange=e=>{const{element:t,saveAnswer:n}=this.props,r=be(t,"question-id"),i=t.getAttribute("display-number"),a=e.currentTarget.value.trim();n({type:"text",questionId:r,value:a,characterCount:ah(a),displayNumber:i}),this.clearErrors()},this.onRichTextChange=(e,t)=>{const{element:n,saveAnswer:r}=this.props,i=be(n,"question-id"),a=n.getAttribute("display-number");r({type:"richText",questionId:i,value:e,characterCount:ah(t),displayNumber:a}),this.clearErrors()},this.onFocus=()=>{this.props.answerFocused(be(this.props.element,"question-id"))},this.onBlur=()=>{this.props.answerBlurred(be(this.props.element,"question-id"))},this.onError=e=>{this.setState({error:e})},this.clearErrors=()=>{this.setState({error:null})},this.ref=i.a.createRef(),this.state={error:null}}componentDidMount(){this.resize()}componentDidUpdate(){this.resize()}resize(){const{current:e}=this.ref;if(e)if("multi-line"===this.props.type){const{scrollX:t,scrollY:n}=window;e.style.height="auto",e.style.height=e.scrollHeight+1+"px",window.scrollTo(t,n)}else"single-line"===this.props.type&&(e.style.width="0",e.style.width=e.scrollWidth+2+"px")}render(){const{answer:e,className:t,element:n,selectAnswerVersion:r,showAnswerHistory:a,supportsAnswerHistory:o,type:s}=this.props,{error:l}=this.state,c=be(n,"question-id"),u=be(n,"max-score"),f=e&&e.value,d=Or(n);switch(s){case"rich-text":return i.a.createElement(i.a.Fragment,null,i.a.createElement(fs.Consumer,null,({examServerApi:n})=>i.a.createElement(rh,{answer:e,className:Kr()("text-answer text-answer--rich-text",t),saveScreenshot:e=>n.saveScreenshot(c,e),onChange:this.onRichTextChange,onError:this.onError,questionId:c})),i.a.createElement(qf,{answer:e,element:n,selectAnswerVersion:r,showAnswerHistory:a,supportsAnswerHistory:o,error:l}));case"multi-line":return i.a.createElement(i.a.Fragment,null,i.a.createElement("textarea",{className:Kr()("text-answer text-answer--multi-line",t),defaultValue:f,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,ref:this.ref,"data-question-id":c}),i.a.createElement(qf,{answer:e,element:n,selectAnswerVersion:r,showAnswerHistory:a,supportsAnswerHistory:o}));case"single-line":default:return i.a.createElement("span",{className:"e-nowrap"},i.a.createElement("input",{type:"text",className:Kr()("text-answer text-answer--single-line",t),defaultValue:f,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,ref:this.ref,"data-question-id":c,"aria-describedby":d}),i.a.createElement(is.Consumer,null,({answers:e})=>e.length>1&&i.a.createElement(ap,{score:u,size:"inline",id:d})))}}}function ah(e){return e.replace(/\s/g,"").length}var oh=Zi((function(e,{element:t}){const n=t.getAttribute("type")||"single-line",r=be(t,"question-id"),i=e.answers.answersById[r],a=e.answers.supportsAnswerHistory;return{answer:i,showAnswerHistory:e.answers.supportsAnswerHistory&&e.answers.serverQuestionIds.has(r),supportsAnswerHistory:a,type:n}}),{saveAnswer:ju,selectAnswerVersion:(e,t)=>Object(xo.action)("SELECT_ANSWER_VERSION",{questionId:e,questionText:t}),answerFocused:e=>Object(xo.action)("ANSWER_FOCUSED",e),answerBlurred:e=>Object(xo.action)("ANSWER_BLURRED",e)})(ih);const sh=({children:e})=>i.a.createElement("span",{className:"e-screen-reader-only"},e);var lh=i.a.memo((function(e){const{element:t,renderChildNodes:n}=e,r=t.getAttribute("display-number"),a=ye(t,"hint"),o=i.a.createElement(oh,{...e});return a?i.a.createElement("label",{className:"e-nowrap"},i.a.createElement("sup",{className:"e-text-answer-display-number e-color-darkgrey"},Tp(r)),i.a.createElement(sh,null,n(a)),o):o}));const ch=Ae({attachment:dp,"attachment-link":Wr("link"),"attachment-links":Hr("link"),audio:Co,"audio-title":Lo,"audio-group":Hf,"audio-test":Vf,"choice-answer":Jf,"dropdown-answer":sp,"exam-footer":pp,"external-material":No,file:So,formula:ko,image:Oo,question:gp,"question-instruction":mp,"question-title":vp,hints:Ap,references:Ep,"scored-text-answer":lh,"scored-text-answers":Ap,"section-instruction":Sp,section:xp,"section-title":wp,"text-answer":lh,video:Uo,"image-overlay":ts});var uh=i.a.memo(ds(Yr(({doc:e,casStatus:t,answers:n,restrictedAudioPlaybackStats:a,examServerApi:o})=>{const{date:s,dateTimeFormatter:l,dayCode:c,examCode:u,language:f,resolveAttachment:d,root:p,subjectLanguage:h}=Object(r.useContext)(Br),g=ye(p,"exam-title"),m=ye(p,"exam-instruction"),v=ye(p,"table-of-contents"),b=ye(p,"external-material"),I=p.getAttribute("exam-stylesheet"),x=_r(()=>Wf(function(e){const t=e.documentElement;return ws(t,ge(t,"section",!1).map(bs),{maxAnswers:be(t,"max-answers")})}(e),t,n,a,o)),w=_r(()=>kp({showAttachmentLinks:!0,showAnsweringInstructions:!0})),T=_r(()=>wr(f,u,c));return Object(r.useEffect)(Mr(T,f)),Object(r.useEffect)(zr,[]),i.a.createElement(si,{store:x},i.a.createElement(y,{i18n:T},i.a.createElement("main",{className:"e-exam",lang:h,"aria-labelledby":"title"},i.a.createElement(i.a.StrictMode,null),I&&i.a.createElement("link",{rel:"stylesheet",href:d(I)}),i.a.createElement(os,{"aria-labelledby":"title"},g&&i.a.createElement(us,{id:"title"},ch(g)),s&&i.a.createElement("p",null,i.a.createElement("strong",null,l.format(s))),m&&i.a.createElement(hp,{element:m,renderChildNodes:ch}),v&&i.a.createElement(w,{element:v,renderChildNodes:ch}),b&&i.a.createElement(No,{element:b,renderChildNodes:ch,forceRender:!0})),ch(p),i.a.createElement("div",{className:"e-footer"},i.a.createElement(fp,null),i.a.createElement(Np,null)))))})));var fh=gs(({element:e,renderChildNodes:t})=>{const{displayNumber:n}=Object(r.useContext)(hs);return i.a.createElement(os,{className:"e-grading-instruction-section","aria-labelledby":Sr(n)},t(e))});var dh=({element:e,renderChildNodes:t})=>{const{numberOfSections:n}=Object(r.useContext)(Br),{displayNumber:a}=Object(r.useContext)(hs),{t:o}=Tr();return i.a.createElement(i.a.Fragment,null,e.hasChildNodes()&&i.a.createElement("h2",{className:"e-grading-instructions-section-title",id:Sr(a)},n>1&&o("section",{displayNumber:a})," ",t(e)))};var ph=as((function({element:e,renderChildNodes:t}){const{displayNumber:n,level:a}=Object(r.useContext)(is);return i.a.createElement("div",{className:Kr()("e-grading-instructions-question",{"e-mrg-b-8 e-clearfix":0===a,"e-mrg-l-8 e-mrg-y-4":a>0}),id:n},t(e,1))}));var hh=({element:e,renderChildNodes:t})=>i.a.createElement("div",{className:"e-exam-grading-instruction notification e-pad-4"},t(e));var gh=({element:e,renderChildNodes:t})=>i.a.createElement("div",{className:"e-answer-grading-instruction e-multiline-results-text-answer e-mrg-b-2 e-pad-l-2"},t(e));var mh=({element:e,renderChildNodes:t})=>{const{answers:n}=Object(r.useContext)(is),a=ye(e,"answer-grading-instruction"),o=i.a.createElement(i.a.Fragment,null,a&&i.a.createElement(gh,{element:a,renderChildNodes:t}),i.a.createElement("ul",null,t(e)));if(1===n.length)return o;{const n=ve(e,"display-number"),r=be(e,"max-score"),a=ye(e,"hint");return i.a.createElement("div",{className:"e-mrg-l-8"},i.a.createElement("p",{className:"exam-question-title"},i.a.createElement("span",{className:"exam-question-title__display-number--indented e-semibold"},n," "),a&&t(a)," ",i.a.createElement(ap,{score:r})),o)}};var yh=({element:e,renderChildNodes:t})=>{const n=be(e,"score");if(!n)return null;const{t:r}=Tr();return i.a.createElement("li",null,t(e)," ","(",r("points",{count:n}),")")};var vh=({element:e,renderChildNodes:t})=>{const{displayNumber:n,maxScore:a,level:o}=Object(r.useContext)(is),s="h"+Math.min(3+o,6);return i.a.createElement(i.a.Fragment,null,i.a.createElement(s,{className:Kr()("exam-question-title",{"e-normal e-font-size-m":o>0})},i.a.createElement("strong",{className:Kr()("exam-question-title__display-number",{"exam-question-title__display-number--indented":o>0})},ls(n)+" "),t(e)," ",i.a.createElement(ap,{score:a,size:0===o?"large":"small"})))};const bh=e=>t=>{const n=n=>e(n)?i.a.createElement(t,{...n}):null;return n.displayName="RenderIf("+Fr(t)+")",n};var Ih=({element:e,renderChildNodes:t})=>{const n=ye(e,["audio-transcription","video-transcription"]);if(n){const{t:r}=Tr(),a=ye(e,["audio-title","video-title"]);return i.a.createElement("details",{className:"e-grading-instruction-recording e-pad-1 e-mrg-b-2"},i.a.createElement("summary",null,i.a.createElement("strong",null,r("recording"))," ",a&&i.a.createElement("em",null,t(a))),t(n))}return null};const xh=bh(({element:e})=>null!=me(e,["answer-grading-instruction","choice-answer-option","dropdown-answer-option","exam-grading-instruction","question-grading-instruction","hint","question-title"])),wh=Ae({"accepted-answer":yh,attachment:ps,"attachment-link":Wr("plain"),"attachment-links":Hr("plain"),audio:Ih,"audio-group":ps,"choice-answer":mh,"choice-answer-option":yh,"dropdown-answer":mh,"dropdown-answer-option":yh,"external-material":ps,file:xh(So),formula:xh(ko),hints:ps,image:xh(Oo),question:ph,"question-title":vh,"question-grading-instruction":gh,"scored-text-answer":mh,"text-answer":mh,section:fh,"section-title":dh,video:Ih}),Th=()=>{const{t:e}=Tr();return i.a.createElement(i.a.Fragment,null,e("grading-instructions-page-title"))};var Mh=i.a.memo(Yr(({doc:e})=>{const t=e.documentElement,{date:n,dateTimeFormatter:a,dayCode:o,examCode:s,language:l,subjectLanguage:c}=Object(r.useContext)(Br),u=ye(t,"exam-title"),f=ye(t,"exam-grading-instruction"),d=ye(t,"table-of-contents"),p=kp({showAnsweringInstructions:!1,showAttachmentLinks:!1}),h=_r(()=>wr(l,s,o));return Object(r.useEffect)(Mr(h,l)),Object(r.useEffect)(zr,[]),i.a.createElement(y,{i18n:h},i.a.createElement("main",{className:"e-exam e-grading-instructions",lang:c},i.a.createElement(i.a.StrictMode,null),i.a.createElement(os,{"aria-labelledby":"title"},i.a.createElement(us,{id:"title"},i.a.createElement(Th,null)," ",u&&wh(u)),n&&i.a.createElement("p",null,i.a.createElement("strong",null,a.format(n))),f&&i.a.createElement(hh,{element:f,renderChildNodes:wh}),d&&i.a.createElement(p,{element:d,renderChildNodes:wh})),wh(t)))}));var Ah=function(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);void 0!==a&&(n=void 0===n?a:n+a)}return n};var Ch=function(e){return e&&e.length?Ah(e,ce):0};const Eh=i.a.createContext({}),Nh=Gr(Eh,({scores:e,doc:t,gradingStructure:n,gradingText:r,answers:i,singleGrading:a})=>{const o=El(i,"questionId");return{answersByQuestionId:o,gradingStructure:n,scores:e,totalScore:function(e,t,n,r){return Ch(e.map(e=>function(e,t,n,r){const i=Ch(we(e).map(e=>{const i=be(e,"question-id"),a=r[i];return a?"choice"===a.type?((e,n)=>{const r=Sh(t,e);return r?r.options.find(e=>e.id===Number(n.value)).score:0})(i,a):(e=>{var t,r;const i=kh(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}));if(0===de(e,"question").length&&i<0)return 0;return i}(e,t,n,r)))}(ge(t.documentElement,"question",!1),n,e,o),gradingText:r,singleGrading:a}});function Sh(e,t){const n=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 kh(e,t){return e.find(e=>e.questionId===t)}var jh=i.a.memo((function({answers:e,displayNumber:t,children:n,multilineAnswer:r}){return i.a.createElement("div",{className:Kr()("e-result-scorecount","e-float-right",{"e-result-scorecount-multiline-answer":r})},i.a.createElement("div",{className:"e-result-scorecount-border-wrap"},e.length>1&&t&&i.a.createElement("sup",{className:"e-result-scorecount-sup e-mrg-r-1","aria-hidden":"true"},t),n))}));var Dh=i.a.memo((function({score:e,maxScore:t,displayNumber:n}){const{answers:a}=Object(r.useContext)(is),{t:o}=Tr(),s={answers:a,displayNumber:n};return i.a.createElement(jh,{...s},"number"==typeof e?i.a.createElement("b",null,e):i.a.createElement("div",{className:"e-result-scorecount-empty"})," ",t?`/ ${t} `:null," ",o("points"))}));function Oh({renderChildNodes:e,selected:t,element:n,questionId:r,direction:a,isCorrect:o}){const{t:s}=Tr(),l=n.getAttribute("class"),c=n.getAttribute("option-id"),u=i.a.createElement("div",{className:Kr()("e-choice-answer-option e-column",l,{"e-choice-answer-option--selected":t})},e(n)),f=({narrow:e=!1})=>i.a.createElement(i.a.Fragment,null,i.a.createElement("input",{type:"radio",className:Kr()("e-radio-button",{"e-column e-column--narrow":e}),name:String(r),value:c,checked:t,readOnly:!0}),u,o&&i.a.createElement(sh,null,s("screen-reader.correct-answer")));return"vertical"===a?i.a.createElement("div",{className:"e-mrg-b-1"},i.a.createElement("label",{className:Kr()("e-columns",{"e-correct-answer-left":o,"e-columns--inline":null==he(n,["image","video"])})},i.a.createElement(f,{narrow:!0}))):i.a.createElement("div",{className:"e-column e-mrg-b-1"},i.a.createElement("label",{className:Kr()("e-block e-text-center",{"e-correct-answer-bottom":o})},i.a.createElement(f,null)))}var Lh=i.a.memo((function({element:e,renderChildNodes:t}){const{answersByQuestionId:n,gradingStructure:a}=Object(r.useContext)(Eh),o=be(e,"question-id"),s=n[o],l=e.getAttribute("direction")||"vertical",c=e.getAttribute("class"),u=Sh(a,o),f=s&&u.options.find(e=>e.id===Number(s.value)).score,d=be(e,"max-score");return i.a.createElement(i.a.Fragment,null,void 0!==f&&i.a.createElement(Dh,{score:f,maxScore:d}),i.a.createElement("div",{className:Kr()("e-choice-answer",c,{"e-columns":"horizontal"===l})},xe(e,e=>{const n=be(e,"option-id"),r=null!=s&&Number(s.value)===n,a=u.options.find(e=>e.id===n);return i.a.createElement(Oh,{element:e,renderChildNodes:t,questionId:o,key:n,direction:l,selected:r,isCorrect:a.correct})})))})),Ph=tl&&new tl,Rh=Ph?function(e,t){return Ph.set(e,t),e}:ce;var zh=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=uf(e.prototype),r=e.apply(n,t);return re(r)?r:n}};var _h=function(e,t,n){var r=1&t,i=zh(e);return function t(){var a=this&&this!==x.a&&this instanceof t?i:e;return a.apply(r?n:this,arguments)}},Uh=Math.max;var Zh=function(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,l=t.length,c=Uh(a-o,0),u=Array(l+c),f=!r;++s<l;)u[s]=t[s];for(;++i<o;)(f||i<a)&&(u[n[i]]=e[i]);for(;c--;)u[s++]=e[i++];return u},Fh=Math.max;var Gh=function(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,l=-1,c=t.length,u=Fh(a-s,0),f=Array(u+c),d=!r;++i<u;)f[i]=e[i];for(var p=i;++l<c;)f[p+l]=t[l];for(;++o<s;)(d||i<a)&&(f[p+n[o]]=e[i++]);return f};var Bh=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r};var Yh=function(){};function Wh(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}Wh.prototype=uf(Yh.prototype),Wh.prototype.constructor=Wh;var Hh=Wh,Vh=Ph?function(e){return Ph.get(e)}:It,qh={},Qh=Object.prototype.hasOwnProperty;var Jh=function(e){for(var t=e.name+"",n=qh[t],r=Qh.call(qh,t)?n.length:0;r--;){var i=n[r],a=i.func;if(null==a||a==e)return i.name}return t};function Xh(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Xh.prototype=uf(Yh.prototype),Xh.prototype.constructor=Xh;var Kh=Xh;var $h=function(e){if(e instanceof Hh)return e.clone();var t=new Kh(e.__wrapped__,e.__chain__);return t.__actions__=Wu(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t},eg=Object.prototype.hasOwnProperty;function tg(e){if(D(e)&&!_(e)&&!(e instanceof Hh)){if(e instanceof Kh)return e;if(eg.call(e,"__wrapped__"))return $h(e)}return new Kh(e)}tg.prototype=Yh.prototype,tg.prototype.constructor=tg;var ng=tg;var rg=function(e){var t=Jh(e),n=ng[t];if("function"!=typeof n||!(t in Hh.prototype))return!1;if(e===n)return!0;var r=Vh(n);return!!r&&e===r[0]},ig=or(Rh),ag=/\{\n\/\* \[wrapped with (.+)\] \*/,og=/,? & /;var sg=function(e){var t=e.match(ag);return t?t[1].split(og):[]},lg=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;var cg=function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(lg,"{\n/* [wrapped with "+t+"] */\n")};var ug=function(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1};var fg=function(e){return e!=e};var dg=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1};var pg=function(e,t,n){return t==t?dg(e,t,n):ug(e,fg,n)};var hg=function(e,t){return!!(null==e?0:e.length)&&pg(e,t,0)>-1},gg=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];var mg=function(e,t){return v(gg,(function(n){var r="_."+n[0];t&n[1]&&!hg(e,r)&&e.push(r)})),e.sort()};var yg=function(e,t,n){var r=t+"";return sr(e,cg(r,mg(sg(r),n)))};var vg=function(e,t,n,r,i,a,o,s,l,c){var u=8&t;t|=u?32:64,4&(t&=~(u?64:32))||(t&=-4);var f=[e,t,i,u?a:void 0,u?o:void 0,u?void 0:a,u?void 0:o,s,l,c],d=n.apply(void 0,f);return rg(e)&&ig(d,f),d.placeholder=r,yg(d,e,t)};var bg=function(e){return e.placeholder},Ig=Math.min;var xg=function(e,t){for(var n=e.length,r=Ig(t.length,n),i=Wu(e);r--;){var a=t[r];e[r]=F(a,n)?i[a]:void 0}return e};var wg=function(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n];o!==t&&"__lodash_placeholder__"!==o||(e[n]="__lodash_placeholder__",a[i++]=n)}return a};var Tg=function e(t,n,r,i,a,o,s,l,c,u){var f=128&n,d=1&n,p=2&n,h=24&n,g=512&n,m=p?void 0:zh(t);return function y(){for(var v=arguments.length,b=Array(v),I=v;I--;)b[I]=arguments[I];if(h)var w=bg(y),T=Bh(b,w);if(i&&(b=Zh(b,i,a,h)),o&&(b=Gh(b,o,s,h)),v-=T,h&&v<u){var M=wg(b,w);return vg(t,n,e,y.placeholder,r,b,M,l,c,u-v)}var A=d?r:this,C=p?A[t]:t;return v=b.length,l?b=xg(b,l):g&&v>1&&b.reverse(),f&&c<v&&(b.length=c),this&&this!==x.a&&this instanceof y&&(C=m||zh(C)),C.apply(A,b)}};var Mg=function(e,t,n){var r=zh(e);return function i(){for(var a=arguments.length,o=Array(a),s=a,l=bg(i);s--;)o[s]=arguments[s];var c=a<3&&o[0]!==l&&o[a-1]!==l?[]:wg(o,l);if((a-=c.length)<n)return vg(e,t,Tg,i.placeholder,void 0,o,c,void 0,void 0,n-a);var u=this&&this!==x.a&&this instanceof i?r:e;return er(u,this,o)}};var Ag=function(e,t,n,r){var i=1&t,a=zh(e);return function t(){for(var o=-1,s=arguments.length,l=-1,c=r.length,u=Array(c+s),f=this&&this!==x.a&&this instanceof t?a:e;++l<c;)u[l]=r[l];for(;s--;)u[l++]=arguments[++o];return er(f,i?n:this,u)}},Cg=Math.min;var Eg=function(e,t){var n=e[1],r=t[1],i=n|r,a=i<131,o=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!o)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var s=t[3];if(s){var l=e[3];e[3]=l?Zh(l,s,t[4]):s,e[4]=l?wg(e[3],"__lodash_placeholder__"):t[4]}return(s=t[5])&&(l=e[5],e[5]=l?Gh(l,s,t[6]):s,e[6]=l?wg(e[5],"__lodash_placeholder__"):t[6]),(s=t[7])&&(e[7]=s),128&r&&(e[8]=null==e[8]?t[8]:Cg(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e},Ng=Math.max;var Sg=function(e,t,n,r,i,a,o,s){var l=2&t;if(!l&&"function"!=typeof e)throw new TypeError("Expected a function");var c=r?r.length:0;if(c||(t&=-97,r=i=void 0),o=void 0===o?o:Ng(Jo(o),0),s=void 0===s?s:Jo(s),c-=i?i.length:0,64&t){var u=r,f=i;r=i=void 0}var d=l?void 0:Vh(e),p=[e,t,n,r,i,u,f,a,o,s];if(d&&Eg(p,d),e=p[0],t=p[1],n=p[2],r=p[3],i=p[4],!(s=p[9]=void 0===p[9]?l?0:e.length:Ng(p[9]-c,0))&&24&t&&(t&=-25),t&&1!=t)h=8==t||16==t?Mg(e,t,s):32!=t&&33!=t||i.length?Tg.apply(void 0,p):Ag(e,t,n,r);else var h=_h(e,t,n);return yg((d?Rh:ig)(h,p),e,t)};var kg=function(e,t,n){return t=n?void 0:t,t=e&&null==t?e.length:t,Sg(e,128,void 0,void 0,void 0,void 0,t)};var jg=function(e){return kg(e,1)};var Dg=i.a.memo((function({element:e,renderChildNodes:t}){const{t:n}=Tr(),{answersByQuestionId:a,gradingStructure:o}=Object(r.useContext)(Eh),{answers:s}=Object(r.useContext)(is),l=be(e,"question-id"),c=a[l],u=ye(e,e=>(null==c?void 0:c.value)===e.getAttribute("option-id")),f=Sh(o,l);if(u){const r=f.options.filter(e=>e.correct).map(e=>e.id),a=Array.from(e.children).filter(e=>r.includes(be(e,"option-id"))),o=r.includes(be(u,"option-id")),l=Tp(e.getAttribute("display-number")),d=c&&f.options.find(e=>e.id===Number(c.value)).score,p=be(e,"max-score");return i.a.createElement(i.a.Fragment,null,s.length>1&&i.a.createElement("sup",null,l),i.a.createElement("span",{className:Kr()("e-dropdown-answer__answered",{"e-dropdown-answer__answered--correct":o,"e-dropdown-answer__answered--wrong":!o})},i.a.createElement(sh,null,n("screen-reader.answer-begin")),t(u),i.a.createElement(sh,null,n("screen-reader.answer-end")),o&&i.a.createElement(sh,null,n("screen-reader.correct-answer"))),!o&&i.a.createElement("span",{className:"e-dropdown-answer__correct","aria-hidden":!0},function(e,t){if(0===t.length)return[];const n=new Array(2*t.length-1);for(let r=0;r<t.length-1;r++)n[2*r]=t[r],n[2*r+1]=e;return n[n.length-1]=t[t.length-1],n}(", ",Eu(a,jg(t)))),null!=d&&i.a.createElement(Dh,{score:d,maxScore:p,displayNumber:l}))}return null}));const Og=({i18nTitleKey:e,annotations:t})=>{const{t:n}=Tr();return t?i.a.createElement(i.a.Fragment,null,e&&i.a.createElement("h5",null,n(e)),i.a.createElement("ol",{className:"e-list-data e-pad-l-0 e-font-size-s"},t.map(({numbering:e,message:t})=>i.a.createElement("li",{"data-list-number":e,key:e},t)))):null};var Lg=i.a.memo((function(){const{answers:e}=Object(r.useContext)(is),{scores:t,singleGrading:n}=Object(r.useContext)(Eh),a=function(e,t){const n=[];for(let r=0;r<e.length;r++){const i=t(e[r],r);void 0!==i&&n.push(i)}return n}(e,e=>{const n=be(e,"question-id"),r=kh(t,n);return r&&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))})(r)?[e,r]:void 0}),o=(t,n,r=0)=>Eu(t,([t,i])=>{var a,o,s;return null!==(s=null===(o=null===(a=i[n])||void 0===a?void 0:a.annotations)||void 0===o?void 0:o.filter(e=>e.message.length).map((n,i)=>({numbering:((e,t)=>e.length>1?Tp(t.getAttribute("display-number")):"")(e,t)+String(r+i+1)+")",message:n.message})))&&void 0!==s?s:[]}),s=o(a,"pregrading"),l=o(a,"censoring",s.length);return s.length||l.length?i.a.createElement("div",{className:"e-annotation-list e-columns e-mrg-t-2"},n?i.a.createElement("div",{className:"e-column e-column--10"},i.a.createElement(Og,{annotations:s})):i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"e-column e-column--6"},i.a.createElement(Og,{i18nTitleKey:"grading.pregrading-annotations",annotations:s})),i.a.createElement("div",{className:"e-column e-column--6"},i.a.createElement(Og,{i18nTitleKey:"grading.censor-annotations",annotations:l})))):null}));var Pg=i.a.memo(as((function({element:e,renderChildNodes:t}){const{answersByQuestionId:n}=Object(r.useContext)(Eh),{displayNumber:a,level:o}=Object(r.useContext)(is);return function(e,t){return we(e).some(e=>t[be(e,"question-id")])}(e,n)?i.a.createElement("div",{className:Kr()("exam-question",{"e-mrg-b-8 e-clearfix":0===o,"e-mrg-l-8 e-mrg-y-4":o>0}),id:a},t(e),i.a.createElement(Lg,null)):null})));var Rg=i.a.memo((function({element:e,renderChildNodes:t}){const{displayNumber:n,level:a,maxAnswers:o,childQuestions:s}=Object(r.useContext)(is),l="h"+Math.min(3+a,6);return i.a.createElement(i.a.Fragment,null,i.a.createElement(l,{className:Kr()("exam-question-title",{"e-normal e-font-size-m":a>0})},i.a.createElement("strong",{className:Kr()("exam-question-title__display-number",{"exam-question-title__display-number--indented":a>0})},ls(n)+" "),t(e)),null!=o&&s.length>0&&i.a.createElement("p",{className:"e-italic"},i.a.createElement(yp,null),i.a.createElement(cp,{maxAnswers:o,childQuestions:s,type:"question"})))}));var zg=i.a.memo(gs((function({element:e,renderChildNodes:t}){const{displayNumber:n}=Object(r.useContext)(hs),{answersByQuestionId:a}=Object(r.useContext)(Eh);return he(e,e=>{const t=e.getAttribute("question-id");return null!=t&&Object.prototype.hasOwnProperty.call(a,t)})?i.a.createElement(os,{"aria-labelledby":Sr(n)},i.a.createElement("div",{className:"e-results-section-wrapper"},t(e))):null})));function _g(e,t,n){const r=[...t,...n],i=r.filter(e=>e.message);for(const n of r){const r=t.includes(n)?"pregrading":"censoring",a=i.indexOf(n)+1||void 0;switch(n.type){case"line":case"rect":Ug(e,n,r,a);break;default:Zg(e,n,r,a)}}}function Ug(e,t,n,r){const{attachmentIndex:i}=t,a=e.querySelectorAll("img")[i],o=function(){const e=a.parentElement;if(e instanceof HTMLSpanElement)return e;const t=Te("span",{className:"e-annotation-wrapper"});return e.insertBefore(t,a),t.appendChild(a),t}(),s=function(){const e=Te("mark",{className:Kr()("e-annotation e-annotation--shape",{"e-annotation--pregrading":"pregrading"===n,"e-annotation--censoring":"censoring"===n}),title:t.message}),i=e.style,a=e=>100*e+"%";"rect"===t.type?(i.left=a(t.x),i.top=a(t.y),i.right=a(1-(t.x+t.width)),i.bottom=a(1-(t.y+t.height))):(i.left=a(t.x1),i.top=a(t.y1),i.right=a(1-t.x2),i.bottom=a(1-t.y2));r&&e.appendChild(Fg(r,"shape"));return e}();o.appendChild(s)}function Zg(e,t,n,r){const{startIndex:i,length:a}=t;return function e(c,u,f){var d;if(!o(c)&&!function(e){return"SUP"===e.nodeName}(c)&&!function(e){return"BR"===e.nodeName}(c)&&u>=i){const i=Te("mark",{className:Kr()("e-annotation",{"e-annotation--pregrading":"pregrading"===n,"e-annotation--censoring":"censoring"===n}),title:t.message});null===(d=c.parentElement)||void 0===d||d.insertBefore(i,c);const p=function e(t,n,r){if(!n||o(n)||0===r)return r;n instanceof Text&&l(n)>0&&l(n)>r&&n.splitText(r);const i=n.nextSibling;return t.appendChild(n),e(t,i,r-l(n))}(i,c,f);p>0?e(s(i),u+a-p,p):r&&i.appendChild(Fg(r,"text"))}else c instanceof Text&&u+l(c)>i&&c.splitText(i-u),e(function(e){return o(e)?e.childNodes[0]:s(e)}(c),u+l(c),f)}(e.childNodes[0],0,a);function o(e){return"MARK"===e.nodeName}function s(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 s(r)}function l(e){return e instanceof Text?e.length:function(e){return"IMG"===e.nodeName||"SPAN"===e.nodeName}(e)?1:0}}function Fg(e,t){const n=e+")";return Te("sup",{className:"e-annotation__index e-annotation__index--"+t,"data-content":n},..."text"===t?[]:n)}var Gg=i.a.memo((function({displayNumber:e,score:t,value:n,children:a}){const{t:o}=Tr(),s=Object(r.useRef)(null);return Object(r.useLayoutEffect)(()=>{var e,n,r,i;s.current&&_g(s.current,null!==(n=null===(e=null==t?void 0:t.pregrading)||void 0===e?void 0:e.annotations)&&void 0!==n?n:[],null!==(i=null===(r=null==t?void 0:t.censoring)||void 0===r?void 0:r.annotations)&&void 0!==i?i:[])}),i.a.createElement(i.a.Fragment,null,e&&i.a.createElement("sup",null,e),i.a.createElement("span",{className:"text-answer text-answer--single-line"},i.a.createElement(sh,null,o("screen-reader.answer-begin")),i.a.createElement("span",{className:"e-inline-block",ref:s},n),i.a.createElement(sh,null,o("screen-reader.answer-end"))),a)}));var Bg=i.a.memo((function({element:e}){var t;const{answers:n}=Object(r.useContext)(is),{answersByQuestionId:a,scores:o}=Object(r.useContext)(Eh),s=be(e,"question-id"),l=be(e,"max-score"),c=a[s],u=c&&c.value,f=Tp(e.getAttribute("display-number")),d=null===(t=kh(o,s))||void 0===t?void 0:t.autograding;return i.a.createElement(Gg,{answers:n,displayNumber:f,value:u},i.a.createElement(Dh,{score:null==d?void 0:d.score,maxScore:l,displayNumber:n.length>1?f:void 0}))}));function Yg({maxScore:e}){const{t:t}=Tr();return i.a.createElement(i.a.Fragment,null,i.a.createElement("span",{className:"e-result-scorecount-empty"}),e&&` / ${e} `,t("points"))}function Wg({shortCode:e}){return i.a.createElement("div",{className:"e-color-darkgrey e-columns e-columns--center-v"},i.a.createElement("span",{className:"e-font-size-xxxl e-light e-mrg-r-1"},"×"),i.a.createElement("span",null,e))}function Hg({score:e,shortCode:t,type:n,maxScore:r,latest:a}){return i.a.createElement("div",{className:a?"e-color-black":"e-color-darkgrey e-font-size-xs"},i.a.createElement(Vg,{className:Kr()("e-nowrap",{"e-font-size-m":a})},a?i.a.createElement("b",null,e):e,a&&r?" / "+r:""," p."),i.a.createElement(Vg,{className:"e-result-scorecount-shortcode"},t),i.a.createElement(Vg,{className:"e-mrg-r-0"},n))}function Vg({className:e,children:t}){return i.a.createElement("span",{className:Kr()("e-mrg-r-1 e-nowrap",e)},t)}function qg({score:e}){return void 0!==e?{score:e,shortCode:"",type:"va"}:null}function Qg(e){return e.scores.map((t,n)=>({score:t.score,shortCode:t.shortCode||"",type:e.scores.length-n+".s"}))}var Jg=i.a.memo((function({scores:e,maxScore:t,displayNumber:n,multilineAnswer:a}){var o,s,l,c,u;const{answers:f}=Object(r.useContext)(is),d={answers:f,displayNumber:n,multilineAnswer:a},p=null===(s=null===(o=null==e?void 0:e.censoring)||void 0===o?void 0:o.nonAnswerDetails)||void 0===s?void 0:s.shortCode;return i.a.createElement(jh,{...d},null!=(null===(l=null==e?void 0:e.pregrading)||void 0===l?void 0:l.score)||(null===(u=null===(c=null==e?void 0:e.censoring)||void 0===c?void 0:c.scores)||void 0===u?void 0:u.length)?i.a.createElement(i.a.Fragment,null,function(e,t){return[e.inspection&&(n=e.inspection,{score:n.score,shortCode:n.shortCodes?n.shortCodes.join(", "):"",type:"ta"}),...e.censoring?Qg(e.censoring):[],e.pregrading&&qg(e.pregrading)].filter(Boolean).map((e,n)=>i.a.createElement(Hg,{key:n,...e,latest:0===n,maxScore:t}));var n}(e,t),p&&i.a.createElement(Wg,{shortCode:p})):i.a.createElement(Yg,{maxScore:t}))}));const Xg=({type:e,score:t,value:n})=>{const{t:a}=Tr(),o=Object(r.useRef)(null);return Object(r.useLayoutEffect)(()=>{var e,n,r,i;o.current&&_g(o.current,null!==(n=null===(e=null==t?void 0:t.pregrading)||void 0===e?void 0:e.annotations)&&void 0!==n?n:[],null!==(i=null===(r=null==t?void 0:t.censoring)||void 0===r?void 0:r.annotations)&&void 0!==i?i:[])}),i.a.createElement("div",{className:"e-multiline-results-text-answer e-line-height-l e-pad-l-2 e-mrg-b-1"},i.a.createElement(sh,null,a("screen-reader.answer-begin")),"rich-text"===e?i.a.createElement("div",{dangerouslySetInnerHTML:{__html:n||""},ref:o}):i.a.createElement("div",{className:"e-pre-wrap",ref:o},n),i.a.createElement(sh,null,a("screen-reader.answer-end")))};var Kg=i.a.memo((function({element:e}){var t;const{answers:n}=Object(r.useContext)(is),{answersByQuestionId:a,scores:o}=Object(r.useContext)(Eh),{t:s}=Tr(),l=be(e,"question-id"),c=be(e,"max-score"),u=a[l],f=u&&u.value,d=n.length>1?Tp(e.getAttribute("display-number")):void 0,p=kh(o,l),h=null===(t=null==p?void 0:p.pregrading)||void 0===t?void 0:t.comment,g=e.getAttribute("type")||"single-line";switch(g){case"rich-text":case"multi-line":return i.a.createElement(i.a.Fragment,null,i.a.createElement(Jg,{multilineAnswer:!0,scores:p,maxScore:c}),i.a.createElement(Xg,{type:g,value:f,score:p}),i.a.createElement(qf,{answer:u,element:e}),h&&i.a.createElement(i.a.Fragment,null,i.a.createElement("h5",null,s("comment")),i.a.createElement("p",{className:"e-italic"},h)));case"single-line":default:return i.a.createElement(Gg,{answers:n,score:p,displayNumber:d,value:f},i.a.createElement(Jg,{scores:p,maxScore:c,displayNumber:d}))}}));const $g=Ae({attachment:Lo,"attachment-link":Wr("plain"),"attachment-links":Hr("plain"),"audio-group":Lo,"choice-answer":Lh,"dropdown-answer":Dg,formula:ko,question:Pg,hints:Lo,image:bh(({element:e})=>null!=me(e,"choice-answer"))(Oo),"question-instruction":mp,"question-title":Rg,section:zg,"section-title":wp,"text-answer":Kg,"scored-text-answer":Bg,"scored-text-answers":Lo});function em(){const{gradingText:e,totalScore:t}=Object(r.useContext)(Eh),{t:n}=Tr();return i.a.createElement("div",{className:"e-column--narrow"},i.a.createElement("table",{className:"e-table e-table--borderless e-mrg-b-0"},i.a.createElement("tbody",null,i.a.createElement("tr",null,i.a.createElement("th",{className:"e-pad-y-0 e-normal"},n("grading-total")),i.a.createElement("td",{className:"e-pad-y-0 e-semibold e-text-right"},n("points",{count:t}))),e&&i.a.createElement("tr",null,i.a.createElement("th",{className:"e-pad-y-0 e-normal"},n("grade")),i.a.createElement("td",{className:"e-pad-y-0 e-semibold e-text-right"},e)))))}var tm=i.a.memo(Nh(Yr(()=>{const{date:e,dateTimeFormatter:t,dayCode:n,examCode:a,language:o,resolveAttachment:s,root:l,subjectLanguage:c}=Object(r.useContext)(Br),u=ye(l,"exam-title"),f=l.getAttribute("exam-stylesheet"),d=_r(()=>wr(o,a,n));return Object(r.useEffect)(Mr(d,o)),Object(r.useEffect)(zr,[]),i.a.createElement(y,{i18n:d},i.a.createElement("main",{className:"e-exam",lang:c},i.a.createElement(i.a.StrictMode,null),f&&i.a.createElement("link",{rel:"stylesheet",href:s(f)}),i.a.createElement("div",{className:"e-columns e-columns--bottom-v e-mrg-b-4"},u&&i.a.createElement(us,{id:"title",className:"e-column e-mrg-b-0"},$g(u),e&&", "+t.format(e)),i.a.createElement(em,null)),$g(l)))}))),nm=Math.max;var rm=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Jo(n);return i<0&&(i=nm(r+i,0)),ug(e,xl(t,3),i)},im=Math.max,am=Math.min;var om=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=Jo(n),i=n<0?im(r+i,0):am(i,r-1)),ug(e,xl(t,3),i,!0)};var sm=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:If(e,t,n)};var lm=function(e,t){for(var n=-1,r=e.length;++n<r&&pg(t,e[n],0)>-1;);return n};var cm=function(e){return e.split("")},um=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var fm=function(e){return um.test(e)},dm="[\\ud800-\\udfff]",pm="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",hm="\\ud83c[\\udffb-\\udfff]",gm="[^\\ud800-\\udfff]",mm="(?:\\ud83c[\\udde6-\\uddff]){2}",ym="[\\ud800-\\udbff][\\udc00-\\udfff]",vm="(?:"+pm+"|"+hm+")"+"?",bm="[\\ufe0e\\ufe0f]?"+vm+("(?:\\u200d(?:"+[gm,mm,ym].join("|")+")[\\ufe0e\\ufe0f]?"+vm+")*"),Im="(?:"+[gm+pm+"?",pm,mm,ym,dm].join("|")+")",xm=RegExp(hm+"(?="+hm+")|"+Im+bm,"g");var wm=function(e){return e.match(xm)||[]};var Tm=function(e){return fm(e)?wm(e):cm(e)},Mm=/^\s+/;var Am=function(e,t,n){if((e=Pn(e))&&(n||void 0===t))return e.replace(Mm,"");if(!e||!(t=Ln(t)))return e;var r=Tm(e),i=lm(r,Tm(t));return sm(r,i).join("")};var Cm=function(e,t){for(var n=e.length;n--&&pg(t,e[n],0)>-1;);return n};var Em=function(e,t,n){if((e=Pn(e))&&(n||void 0===t))return e.slice(0,Fo(e)+1);if(!e||!(t=Ln(t)))return e;var r=Tm(e),i=Cm(r,Tm(t))+1;return sm(r,0,i).join("")};function Nm(e,t=!1){const n=(new DOMParser).parseFromString(e,"application/xml");return t||ge(n.documentElement,["choice-answer","dropdown-answer"]).filter(e=>"fixed"!==ve(e,"ordering")).forEach(Sm),ge(n.documentElement,"reference").forEach(e=>{ge(e,()=>!0,!1).forEach(km)}),n}function Sm(e){for(let t=e.children.length;t>0;t--){const n=Math.floor(Math.random()*t);e.appendChild(e.children[n])}const t=ye(e,e=>"no-answer"===ve(e,"type"));t&&e.appendChild(t)}function km(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=rm(n,t),i=om(n,t);-1!==r&&(n.slice(0,r).forEach(e=>e.remove()),n[r].textContent=Am(n[r].textContent)),-1!==i&&(n.slice(i+1).forEach(e=>e.remove()),n[i].textContent=Em(n[i].textContent))}}])}));