@clickview/lite 0.35.2 → 0.35.3-dev.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 (283) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/css/{1980-lite-3c1d9a0bd8.chunk.css → 1201-lite-c31c094e0b.chunk.css} +1 -1
  3. package/dist/css/1426-lite-840995aa62.chunk.css +26 -0
  4. package/dist/css/{6702-lite-7caa0be777.chunk.css → 1461-lite-8a6d9f8005.chunk.css} +1 -1
  5. package/dist/css/{6822-lite-2c4dbd6721.chunk.css → 1514-lite-b377d8aad7.chunk.css} +1 -1
  6. package/dist/css/{5611-lite-0ad79a4f81.chunk.css → 1519-lite-8818fa8d4c.chunk.css} +1 -1
  7. package/dist/css/{9622-lite-23f29cce3d.chunk.css → 1688-lite-cbde295a12.chunk.css} +1 -1
  8. package/dist/css/1805-lite-971ea2bd5a.chunk.css +5 -0
  9. package/dist/css/{1820-lite-e06465f5de.chunk.css → 1820-lite-983fc2b64e.chunk.css} +1 -1
  10. package/dist/css/{6154-lite-9de6d937cb.chunk.css → 2408-lite-d788a06bf3.chunk.css} +1 -1
  11. package/dist/css/{7564-lite-d60de6c7e1.chunk.css → 2469-lite-7a8e220d2f.chunk.css} +1 -1
  12. package/dist/css/{9522-lite-3c1d9a0bd8.chunk.css → 2651-lite-c31c094e0b.chunk.css} +1 -1
  13. package/dist/css/{9869-lite-baa5f27c85.chunk.css → 2703-lite-c11aaae4be.chunk.css} +6 -3
  14. package/dist/css/2819-lite-1ebce7bdcf.chunk.css +6 -0
  15. package/dist/css/{4373-lite-70e0bc4a9c.chunk.css → 3311-lite-8f53694323.chunk.css} +1 -1
  16. package/dist/css/{7286-lite-871baa523e.chunk.css → 3401-lite-705c2c5fe4.chunk.css} +1 -1
  17. package/dist/css/{817-lite-d4b875a3bb.chunk.css → 4210-lite-5f2e12e28a.chunk.css} +1 -1
  18. package/dist/css/{3755-lite-0da0cc9d62.chunk.css → 4463-lite-b9b1686d14.chunk.css} +1 -1
  19. package/dist/css/{6957-lite-d486456f1e.chunk.css → 4546-lite-3d08e5e8c2.chunk.css} +1 -1
  20. package/dist/css/{5151-lite-d4ae59eb2d.chunk.css → 4728-lite-be5b495f2e.chunk.css} +1 -1
  21. package/dist/css/487-lite-96ad0f943f.chunk.css +5 -0
  22. package/dist/css/{8095-lite-814daf86d6.chunk.css → 4956-lite-12f53a63d0.chunk.css} +1 -1
  23. package/dist/css/{3446-lite-1b1ec87a28.chunk.css → 4973-lite-f724003877.chunk.css} +11 -11
  24. package/dist/css/{4405-lite-d4ae59eb2d.chunk.css → 5127-lite-be5b495f2e.chunk.css} +1 -1
  25. package/dist/css/{275-lite-4f19640eb7.chunk.css → 5306-lite-40a1dcaba5.chunk.css} +1 -1
  26. package/dist/css/536-lite-b8b24bff42.chunk.css +29 -0
  27. package/dist/css/5379-lite-b9ce6d4999.chunk.css +29 -0
  28. package/dist/css/5442-lite-5b422a19e4.chunk.css +4 -0
  29. package/dist/css/{5659-lite-0ad79a4f81.chunk.css → 5965-lite-8818fa8d4c.chunk.css} +1 -1
  30. package/dist/css/{1366-lite-69969922c3.chunk.css → 6683-lite-bfbd8a654d.chunk.css} +1 -1
  31. package/dist/css/6746-lite-cbacfd109f.chunk.css +1 -0
  32. package/dist/css/7167-lite-e7bc934b47.chunk.css +5 -0
  33. package/dist/css/7178-lite-d470e2a870.chunk.css +3 -0
  34. package/dist/css/{9714-lite-ac0b76a84c.chunk.css → 757-lite-649ce0643d.chunk.css} +1 -1
  35. package/dist/css/{5555-lite-0ad79a4f81.chunk.css → 763-lite-8818fa8d4c.chunk.css} +1 -1
  36. package/dist/css/7791-lite-afbd54454d.chunk.css +7 -0
  37. package/dist/css/7864-lite-eaa787cfb2.chunk.css +3 -0
  38. package/dist/css/7877-lite-753ceb57d9.chunk.css +7 -0
  39. package/dist/css/8296-lite-1e63b6b5d8.chunk.css +6 -0
  40. package/dist/css/{5171-lite-67352d5f48.chunk.css → 8364-lite-8c45fd1bcc.chunk.css} +1 -1
  41. package/dist/css/{6076-lite-26ebfc882b.chunk.css → 8469-lite-bc1a27e4da.chunk.css} +1 -1
  42. package/dist/css/{1781-lite-62db879d64.chunk.css → 8541-lite-0f6c636afb.chunk.css} +1 -1
  43. package/dist/css/{3987-lite-26ebfc882b.chunk.css → 9133-lite-bc1a27e4da.chunk.css} +1 -1
  44. package/dist/css/9230-lite-5010e72da6.chunk.css +4 -0
  45. package/dist/css/{7164-lite-4424261809.chunk.css → 9516-lite-4751b1e0aa.chunk.css} +5 -5
  46. package/dist/css/{4145-lite-10dcae6491.chunk.css → 9704-lite-60ead9f8df.chunk.css} +1 -1
  47. package/dist/css/{519-lite-e5eb6a5c45.chunk.css → 9719-lite-f28f11cc5a.chunk.css} +2 -1
  48. package/dist/css/{7484-lite-bef9094c58.chunk.css → 9871-lite-71a39d9bb3.chunk.css} +1 -1
  49. package/dist/css/{lite-app-df99273901.css → lite-app-ddb4f64bbb.css} +7 -7
  50. package/dist/languages/en.json +1 -1
  51. package/dist/scripts/{1980-535747e896-lite.chunk.js → 1201-c93ac8a29a-lite.chunk.js} +1 -1
  52. package/dist/scripts/1426-94857a953c-lite.chunk.js +2 -0
  53. package/dist/scripts/{6702-d96686b5d6-lite.chunk.js → 1461-f7e964ae21-lite.chunk.js} +1 -1
  54. package/dist/scripts/151-5268c8b0b2-lite.chunk.js +1 -0
  55. package/dist/scripts/{6822-35fc1ff6f9-lite.chunk.js → 1514-c423b48155-lite.chunk.js} +1 -1
  56. package/dist/scripts/{1517-b1cad166ec-lite.chunk.js → 1517-dcfff93ae3-lite.chunk.js} +1 -1
  57. package/dist/scripts/{5611-d521edcea1-lite.chunk.js → 1519-bae52ef1b1-lite.chunk.js} +1 -1
  58. package/dist/scripts/1672-9ae25f79a6-lite.chunk.js +2 -0
  59. package/dist/scripts/{9622-365c5b0e22-lite.chunk.js → 1688-ca1a2a9f04-lite.chunk.js} +1 -1
  60. package/dist/scripts/1805-05413695af-lite.chunk.js +2 -0
  61. package/dist/scripts/1820-204b28ad32-lite.chunk.js +1 -0
  62. package/dist/scripts/1913-fef63b944b-lite.chunk.js +1 -0
  63. package/dist/scripts/1919-7889c92284-lite.chunk.js +1 -0
  64. package/dist/scripts/{1944-23f4b400c6-lite.chunk.js → 1944-b156ae061e-lite.chunk.js} +1 -1
  65. package/dist/scripts/209-f1187b4df2-lite.chunk.js +1 -0
  66. package/dist/scripts/{2118-4e769f5020-lite.chunk.js → 2118-7741e69919-lite.chunk.js} +1 -1
  67. package/dist/scripts/2188-0278da007c-lite.chunk.js +1 -0
  68. package/dist/scripts/2208-1799924a6a-lite.chunk.js +1 -0
  69. package/dist/scripts/2251-519ee9915e-lite.chunk.js +1 -0
  70. package/dist/scripts/2279-d09cf05062-lite.chunk.js +1 -0
  71. package/dist/scripts/{2318-a0fc0fe177-lite.chunk.js → 2318-0eb533e9f6-lite.chunk.js} +1 -1
  72. package/dist/scripts/{6154-05e9ba5525-lite.chunk.js → 2408-04112a0ed3-lite.chunk.js} +1 -1
  73. package/dist/scripts/{7564-b42d4f59a6-lite.chunk.js → 2469-1c69c69857-lite.chunk.js} +1 -1
  74. package/dist/scripts/{9522-f6a3bf5aa5-lite.chunk.js → 2651-1323807150-lite.chunk.js} +1 -1
  75. package/dist/scripts/2703-d8a1c8e6f5-lite.chunk.js +2 -0
  76. package/dist/scripts/2819-a949173a2e-lite.chunk.js +2 -0
  77. package/dist/scripts/3311-808538c9c6-lite.chunk.js +1 -0
  78. package/dist/scripts/{7286-96e1818fd0-lite.chunk.js → 3401-c7a150f32d-lite.chunk.js} +1 -1
  79. package/dist/scripts/{3645-30ba602f0c-lite.chunk.js → 3645-d1313ec6dc-lite.chunk.js} +1 -1
  80. package/dist/scripts/{3667-c9a9052d61-lite.chunk.js → 3667-6ce2b5b14a-lite.chunk.js} +1 -1
  81. package/dist/scripts/3962-3738b0a52e-lite.chunk.js +1 -0
  82. package/dist/scripts/407-1e3ffc6e32-lite.chunk.js +2 -0
  83. package/dist/scripts/4210-66c5d14532-lite.chunk.js +1 -0
  84. package/dist/scripts/{3755-6ed23bfa7a-lite.chunk.js → 4463-49b8d27dbb-lite.chunk.js} +1 -1
  85. package/dist/scripts/4546-050a6f180a-lite.chunk.js +1 -0
  86. package/dist/scripts/4632-74c440dce4-lite.chunk.js +1 -0
  87. package/dist/scripts/{5151-28b95c9098-lite.chunk.js → 4728-8837108457-lite.chunk.js} +1 -1
  88. package/dist/scripts/4754-fe1cbf4ea4-lite.chunk.js +1 -0
  89. package/dist/scripts/487-55f69c7d70-lite.chunk.js +2 -0
  90. package/dist/scripts/{8095-c6901b0fa6-lite.chunk.js → 4956-b0840f1cfa-lite.chunk.js} +1 -1
  91. package/dist/scripts/4972-4eb7102934-lite.chunk.js +1 -0
  92. package/dist/scripts/4973-5df11dd4e8-lite.chunk.js +1 -0
  93. package/dist/scripts/5134-8e129a0a0b-lite.chunk.js +1 -0
  94. package/dist/scripts/5177-ea01e21af3-lite.chunk.js +2 -0
  95. package/dist/scripts/528-8cfebb9254-lite.chunk.js +1 -0
  96. package/dist/scripts/5306-b25542939f-lite.chunk.js +1 -0
  97. package/dist/scripts/536-7c7970277a-lite.chunk.js +2 -0
  98. package/dist/scripts/5379-95b5e191fe-lite.chunk.js +1 -0
  99. package/dist/scripts/5442-82e8147edc-lite.chunk.js +2 -0
  100. package/dist/scripts/5940-54217d5e0d-lite.chunk.js +1 -0
  101. package/dist/scripts/{5555-e227390cc4-lite.chunk.js → 5965-55b2273c41-lite.chunk.js} +1 -1
  102. package/dist/scripts/6086-642813efbe-lite.chunk.js +2 -0
  103. package/dist/scripts/{6158-eaf4e9c1e8-lite.chunk.js → 6158-fc2ae93c2c-lite.chunk.js} +1 -1
  104. package/dist/scripts/6290-b8e7be07c0-lite.chunk.js +1 -0
  105. package/dist/scripts/6347-5fa92cd82e-lite.chunk.js +1 -0
  106. package/dist/scripts/6368-6e322edf00-lite.chunk.js +1 -0
  107. package/dist/scripts/{6433-7b2bd48f40-lite.chunk.js → 6433-8a473c7c44-lite.chunk.js} +2 -2
  108. package/dist/scripts/6683-6a53507e03-lite.chunk.js +2 -0
  109. package/dist/scripts/6746-a32d22602e-lite.chunk.js +1 -0
  110. package/dist/scripts/689-165a5a700c-lite.chunk.js +1 -0
  111. package/dist/scripts/6891-b2c5f27bce-lite.chunk.js +1 -0
  112. package/dist/scripts/{6998-309a16b24e-lite.chunk.js → 6998-43af06b2d9-lite.chunk.js} +1 -1
  113. package/dist/scripts/7052-7ba7299ff2-lite.chunk.js +2 -0
  114. package/dist/scripts/7052-7ba7299ff2-lite.chunk.js.LICENSE.txt +1 -0
  115. package/dist/scripts/{7056-6d3a7715c8-lite.chunk.js → 7056-b2c401e297-lite.chunk.js} +1 -1
  116. package/dist/scripts/7112-02e4fa8fd1-lite.chunk.js +2 -0
  117. package/dist/scripts/7112-02e4fa8fd1-lite.chunk.js.LICENSE.txt +1 -0
  118. package/dist/scripts/7167-9668cb85d2-lite.chunk.js +1 -0
  119. package/dist/scripts/7178-d9ec32d7d3-lite.chunk.js +1 -0
  120. package/dist/scripts/{7293-9edf8dab3b-lite.chunk.js → 7293-aa9c9eeb72-lite.chunk.js} +1 -1
  121. package/dist/scripts/{1830-6aba57235d-lite.chunk.js → 7351-dce910a8f8-lite.chunk.js} +1 -1
  122. package/dist/scripts/7432-d41b2e0039-lite.chunk.js +1 -0
  123. package/dist/scripts/757-67c0765021-lite.chunk.js +1 -0
  124. package/dist/scripts/763-a6b6d996a9-lite.chunk.js +1 -0
  125. package/dist/scripts/{7701-d1233778f2-lite.chunk.js → 7701-791908e1c3-lite.chunk.js} +1 -1
  126. package/dist/scripts/{7703-5b15c739bd-lite.chunk.js → 7703-87cabd69cf-lite.chunk.js} +1 -1
  127. package/dist/scripts/{7708-966b540945-lite.chunk.js → 7708-4dc3fe8aec-lite.chunk.js} +1 -1
  128. package/dist/scripts/7791-45cbec4cb9-lite.chunk.js +2 -0
  129. package/dist/scripts/7791-45cbec4cb9-lite.chunk.js.LICENSE.txt +1 -0
  130. package/dist/scripts/7864-eb01ccb48c-lite.chunk.js +2 -0
  131. package/dist/scripts/7864-eb01ccb48c-lite.chunk.js.LICENSE.txt +1 -0
  132. package/dist/scripts/7877-b7427a8fc3-lite.chunk.js +2 -0
  133. package/dist/scripts/7877-b7427a8fc3-lite.chunk.js.LICENSE.txt +1 -0
  134. package/dist/scripts/8296-61fbedf389-lite.chunk.js +2 -0
  135. package/dist/scripts/8296-61fbedf389-lite.chunk.js.LICENSE.txt +1 -0
  136. package/dist/scripts/{8323-ca8e0d6371-lite.chunk.js → 8323-e2892d3bed-lite.chunk.js} +2 -2
  137. package/dist/scripts/8323-e2892d3bed-lite.chunk.js.LICENSE.txt +1 -0
  138. package/dist/scripts/{5171-8572a352e6-lite.chunk.js → 8364-3f8f3ebbfd-lite.chunk.js} +1 -1
  139. package/dist/scripts/8466-627dcf6218-lite.chunk.js +1 -0
  140. package/dist/scripts/{3987-8a8da439f0-lite.chunk.js → 8469-c872f52295-lite.chunk.js} +1 -1
  141. package/dist/scripts/{1781-a04e438477-lite.chunk.js → 8541-e93ccc1e65-lite.chunk.js} +1 -1
  142. package/dist/scripts/{8771-4530cc4e58-lite.chunk.js → 8771-fdb379457c-lite.chunk.js} +1 -1
  143. package/dist/scripts/8834-bb079c32a4-lite.chunk.js +1 -0
  144. package/dist/scripts/{8873-e305e24d04-lite.chunk.js → 8873-514feb8faa-lite.chunk.js} +1 -1
  145. package/dist/scripts/8905-7e47ba1360-lite.chunk.js +1 -0
  146. package/dist/scripts/8982-267320e287-lite.chunk.js +1 -0
  147. package/dist/scripts/{9016-236a5997d4-lite.chunk.js → 9016-68a0088483-lite.chunk.js} +1 -1
  148. package/dist/scripts/9118-43d2bf9226-lite.chunk.js +1 -0
  149. package/dist/scripts/{6076-d0ab857b36-lite.chunk.js → 9133-d324adda28-lite.chunk.js} +1 -1
  150. package/dist/scripts/{9151-a4b1b99c42-lite.chunk.js → 9151-97d4bda2a9-lite.chunk.js} +1 -1
  151. package/dist/scripts/{9226-8d25ca41f8-lite.chunk.js → 9226-81363cd855-lite.chunk.js} +1 -1
  152. package/dist/scripts/9230-b5f75f4b25-lite.chunk.js +2 -0
  153. package/dist/scripts/9230-b5f75f4b25-lite.chunk.js.LICENSE.txt +1 -0
  154. package/dist/scripts/{9478-6f19948322-lite.chunk.js → 9478-7210139ef4-lite.chunk.js} +2 -2
  155. package/dist/scripts/9478-7210139ef4-lite.chunk.js.LICENSE.txt +1 -0
  156. package/dist/scripts/9516-7437a5a60e-lite.chunk.js +1 -0
  157. package/dist/scripts/9657-3bd86a7f20-lite.chunk.js +1 -0
  158. package/dist/scripts/{4145-8a549f2fd1-lite.chunk.js → 9704-ee574224f3-lite.chunk.js} +1 -1
  159. package/dist/scripts/9719-c890a68331-lite.chunk.js +2 -0
  160. package/dist/scripts/9719-c890a68331-lite.chunk.js.LICENSE.txt +1 -0
  161. package/dist/scripts/{7484-f15261951b-lite.chunk.js → 9871-2573a8bff1-lite.chunk.js} +1 -1
  162. package/dist/scripts/{9894-1e493082b6-lite.chunk.js → 9894-0e66baa841-lite.chunk.js} +1 -1
  163. package/dist/scripts/9894-0e66baa841-lite.chunk.js.LICENSE.txt +1 -0
  164. package/dist/scripts/993-51d56e4686-lite.chunk.js +2 -0
  165. package/dist/scripts/993-51d56e4686-lite.chunk.js.LICENSE.txt +1 -0
  166. package/dist/scripts/bundle-1db2700368.min.js +2 -0
  167. package/package.json +3 -2
  168. package/dist/css/109-lite-e638e5617a.chunk.css +0 -3
  169. package/dist/css/7178-lite-b4e4346f43.chunk.css +0 -3
  170. package/dist/css/8329-lite-1f86f27b10.chunk.css +0 -3
  171. package/dist/css/8978-lite-aa21368531.chunk.css +0 -3
  172. package/dist/scripts/109-c94f9ee532-lite.chunk.js +0 -1
  173. package/dist/scripts/1366-9085be8f1d-lite.chunk.js +0 -2
  174. package/dist/scripts/1672-18d6a86a04-lite.chunk.js +0 -2
  175. package/dist/scripts/1820-d34eefdad4-lite.chunk.js +0 -1
  176. package/dist/scripts/1913-00de345658-lite.chunk.js +0 -1
  177. package/dist/scripts/209-d5def5db16-lite.chunk.js +0 -1
  178. package/dist/scripts/2208-c345263710-lite.chunk.js +0 -1
  179. package/dist/scripts/2269-48415bbc64-lite.chunk.js +0 -1
  180. package/dist/scripts/2279-02a72d36ec-lite.chunk.js +0 -1
  181. package/dist/scripts/2608-5af270eedf-lite.chunk.js +0 -1
  182. package/dist/scripts/2743-deafaa1681-lite.chunk.js +0 -1
  183. package/dist/scripts/275-ba99531836-lite.chunk.js +0 -1
  184. package/dist/scripts/3371-bb9a674c07-lite.chunk.js +0 -1
  185. package/dist/scripts/3446-f8a4d517dd-lite.chunk.js +0 -1
  186. package/dist/scripts/3488-dd8581e604-lite.chunk.js +0 -2
  187. package/dist/scripts/3706-482b7bb8d2-lite.chunk.js +0 -2
  188. package/dist/scripts/3865-f7e73fec9c-lite.chunk.js +0 -1
  189. package/dist/scripts/3962-3dcedae047-lite.chunk.js +0 -1
  190. package/dist/scripts/4373-388f025686-lite.chunk.js +0 -1
  191. package/dist/scripts/4417-1ef8363302-lite.chunk.js +0 -1
  192. package/dist/scripts/4632-ac71090d0d-lite.chunk.js +0 -1
  193. package/dist/scripts/5134-5a2efd579d-lite.chunk.js +0 -1
  194. package/dist/scripts/519-4140367219-lite.chunk.js +0 -1
  195. package/dist/scripts/528-9a6deb93d3-lite.chunk.js +0 -1
  196. package/dist/scripts/5659-176b355d0b-lite.chunk.js +0 -1
  197. package/dist/scripts/6290-337e7cf0ba-lite.chunk.js +0 -1
  198. package/dist/scripts/6368-632bb31d55-lite.chunk.js +0 -1
  199. package/dist/scripts/6609-433a3003e6-lite.chunk.js +0 -1
  200. package/dist/scripts/689-30388920c3-lite.chunk.js +0 -1
  201. package/dist/scripts/6957-691d6fbdc7-lite.chunk.js +0 -1
  202. package/dist/scripts/7052-ff6e30ba46-lite.chunk.js +0 -2
  203. package/dist/scripts/7112-25e9780c3f-lite.chunk.js +0 -2
  204. package/dist/scripts/7164-6489adf352-lite.chunk.js +0 -1
  205. package/dist/scripts/7178-3c36d6ca9f-lite.chunk.js +0 -1
  206. package/dist/scripts/7432-ed0fdcb18c-lite.chunk.js +0 -1
  207. package/dist/scripts/817-fc0acd6208-lite.chunk.js +0 -1
  208. package/dist/scripts/8236-10fe50cf1f-lite.chunk.js +0 -1
  209. package/dist/scripts/8329-db3ca45cb6-lite.chunk.js +0 -2
  210. package/dist/scripts/8367-6946446a01-lite.chunk.js +0 -1
  211. package/dist/scripts/8466-2c58de04c4-lite.chunk.js +0 -1
  212. package/dist/scripts/8564-3183d8595c-lite.chunk.js +0 -1
  213. package/dist/scripts/8905-039126dc2f-lite.chunk.js +0 -1
  214. package/dist/scripts/8978-2cb6319c36-lite.chunk.js +0 -2
  215. package/dist/scripts/9118-53bed185a5-lite.chunk.js +0 -1
  216. package/dist/scripts/9581-41cb8eba5b-lite.chunk.js +0 -1
  217. package/dist/scripts/9714-f8d16adc4e-lite.chunk.js +0 -1
  218. package/dist/scripts/9869-87a902e2d1-lite.chunk.js +0 -2
  219. package/dist/scripts/bundle-d66378a758.min.js +0 -2
  220. /package/dist/css/{2743-lite-ab01f5dc3b.chunk.css → 1919-lite-ab01f5dc3b.chunk.css} +0 -0
  221. /package/dist/css/{3706-lite-8601f9a468.chunk.css → 5177-lite-8601f9a468.chunk.css} +0 -0
  222. /package/dist/css/{8367-lite-a3507f7491.chunk.css → 5940-lite-a3507f7491.chunk.css} +0 -0
  223. /package/dist/css/{3865-lite-a288188c68.chunk.css → 6891-lite-a288188c68.chunk.css} +0 -0
  224. /package/dist/css/{6609-lite-08c053955f.chunk.css → 9657-lite-08c053955f.chunk.css} +0 -0
  225. /package/dist/scripts/{1285-2d3299c556-lite.chunk.js → 1285-7e8f858b90-lite.chunk.js} +0 -0
  226. /package/dist/scripts/{1366-9085be8f1d-lite.chunk.js.LICENSE.txt → 1426-94857a953c-lite.chunk.js.LICENSE.txt} +0 -0
  227. /package/dist/scripts/{1518-eaabe78385-lite.chunk.js → 1518-0ea2791c37-lite.chunk.js} +0 -0
  228. /package/dist/scripts/{1672-18d6a86a04-lite.chunk.js.LICENSE.txt → 1672-9ae25f79a6-lite.chunk.js.LICENSE.txt} +0 -0
  229. /package/dist/scripts/{1725-2eb898f9e6-lite.chunk.js → 1725-0e284a32f3-lite.chunk.js} +0 -0
  230. /package/dist/scripts/{1750-dd4c1bf3fc-lite.chunk.js → 1750-82cf9361fb-lite.chunk.js} +0 -0
  231. /package/dist/scripts/{2118-4e769f5020-lite.chunk.js.LICENSE.txt → 1805-05413695af-lite.chunk.js.LICENSE.txt} +0 -0
  232. /package/dist/scripts/{1863-e2e84114ee-lite.chunk.js → 1863-8f826ffb83-lite.chunk.js} +0 -0
  233. /package/dist/scripts/{1891-c0e59b8132-lite.chunk.js → 1891-dd253c3378-lite.chunk.js} +0 -0
  234. /package/dist/scripts/{3488-dd8581e604-lite.chunk.js.LICENSE.txt → 2118-7741e69919-lite.chunk.js.LICENSE.txt} +0 -0
  235. /package/dist/scripts/{3645-30ba602f0c-lite.chunk.js.LICENSE.txt → 2703-d8a1c8e6f5-lite.chunk.js.LICENSE.txt} +0 -0
  236. /package/dist/scripts/{2767-5df93b7c43-lite.chunk.js → 2767-299f58bb17-lite.chunk.js} +0 -0
  237. /package/dist/scripts/{3667-c9a9052d61-lite.chunk.js.LICENSE.txt → 2819-a949173a2e-lite.chunk.js.LICENSE.txt} +0 -0
  238. /package/dist/scripts/{3020-923bf44c9b-lite.chunk.js → 3020-6f39be646f-lite.chunk.js} +0 -0
  239. /package/dist/scripts/{3108-ae911e3d71-lite.chunk.js → 3108-86d4c73e29-lite.chunk.js} +0 -0
  240. /package/dist/scripts/{3171-663aa64cae-lite.chunk.js → 3171-9eda288c67-lite.chunk.js} +0 -0
  241. /package/dist/scripts/{3468-4d7076a979-lite.chunk.js → 3468-8926a9db70-lite.chunk.js} +0 -0
  242. /package/dist/scripts/{3706-482b7bb8d2-lite.chunk.js.LICENSE.txt → 3645-d1313ec6dc-lite.chunk.js.LICENSE.txt} +0 -0
  243. /package/dist/scripts/{6433-7b2bd48f40-lite.chunk.js.LICENSE.txt → 3667-6ce2b5b14a-lite.chunk.js.LICENSE.txt} +0 -0
  244. /package/dist/scripts/{389-e7037a0807-lite.chunk.js → 389-2ab260e7d2-lite.chunk.js} +0 -0
  245. /package/dist/scripts/{7052-ff6e30ba46-lite.chunk.js.LICENSE.txt → 407-1e3ffc6e32-lite.chunk.js.LICENSE.txt} +0 -0
  246. /package/dist/scripts/{4182-2de6622588-lite.chunk.js → 4182-6869dfda31-lite.chunk.js} +0 -0
  247. /package/dist/scripts/{4541-c08f765eab-lite.chunk.js → 4541-9ad274071e-lite.chunk.js} +0 -0
  248. /package/dist/scripts/{4617-3f998d9b1e-lite.chunk.js → 4617-940157b232-lite.chunk.js} +0 -0
  249. /package/dist/scripts/{4690-57efd6540e-lite.chunk.js → 4690-40f41af539-lite.chunk.js} +0 -0
  250. /package/dist/scripts/{482-8139ae4723-lite.chunk.js → 482-c9fd7b68d3-lite.chunk.js} +0 -0
  251. /package/dist/scripts/{7112-25e9780c3f-lite.chunk.js.LICENSE.txt → 487-55f69c7d70-lite.chunk.js.LICENSE.txt} +0 -0
  252. /package/dist/scripts/{8323-ca8e0d6371-lite.chunk.js.LICENSE.txt → 5177-ea01e21af3-lite.chunk.js.LICENSE.txt} +0 -0
  253. /package/dist/scripts/{5229-7329bd81e6-lite.chunk.js → 5229-fed729d13a-lite.chunk.js} +0 -0
  254. /package/dist/scripts/{8329-db3ca45cb6-lite.chunk.js.LICENSE.txt → 536-7c7970277a-lite.chunk.js.LICENSE.txt} +0 -0
  255. /package/dist/scripts/{5385-f53e603625-lite.chunk.js → 5385-2719aaaf84-lite.chunk.js} +0 -0
  256. /package/dist/scripts/{8978-2cb6319c36-lite.chunk.js.LICENSE.txt → 5442-82e8147edc-lite.chunk.js.LICENSE.txt} +0 -0
  257. /package/dist/scripts/{5595-5ee4c1c5ed-lite.chunk.js → 5595-ed6e8d9ca0-lite.chunk.js} +0 -0
  258. /package/dist/scripts/{5606-2596d38d1b-lite.chunk.js → 5606-68f1afd060-lite.chunk.js} +0 -0
  259. /package/dist/scripts/{5877-0acd7d3124-lite.chunk.js → 5877-1dc9ca4f2d-lite.chunk.js} +0 -0
  260. /package/dist/scripts/{6057-a8b9812431-lite.chunk.js → 6057-3c43af21b1-lite.chunk.js} +0 -0
  261. /package/dist/scripts/{9478-6f19948322-lite.chunk.js.LICENSE.txt → 6086-642813efbe-lite.chunk.js.LICENSE.txt} +0 -0
  262. /package/dist/scripts/{6274-f3769a7518-lite.chunk.js → 6274-bd0f8f77cb-lite.chunk.js} +0 -0
  263. /package/dist/scripts/{9869-87a902e2d1-lite.chunk.js.LICENSE.txt → 6433-8a473c7c44-lite.chunk.js.LICENSE.txt} +0 -0
  264. /package/dist/scripts/{6450-1b69ecb4d2-lite.chunk.js → 6450-0bde4cef33-lite.chunk.js} +0 -0
  265. /package/dist/scripts/{6465-7a63bc80b6-lite.chunk.js → 6465-5b42f81416-lite.chunk.js} +0 -0
  266. /package/dist/scripts/{6480-3e17c41241-lite.chunk.js → 6480-93ab348bf1-lite.chunk.js} +0 -0
  267. /package/dist/scripts/{9894-1e493082b6-lite.chunk.js.LICENSE.txt → 6683-6a53507e03-lite.chunk.js.LICENSE.txt} +0 -0
  268. /package/dist/scripts/{6689-ec5171ba5f-lite.chunk.js → 6689-65a1b86bb2-lite.chunk.js} +0 -0
  269. /package/dist/scripts/{6863-5dbc85c4b9-lite.chunk.js → 6863-d4f402b72e-lite.chunk.js} +0 -0
  270. /package/dist/scripts/{7128-87b101d7b7-lite.chunk.js → 7128-bb219eed51-lite.chunk.js} +0 -0
  271. /package/dist/scripts/{7172-7dadcbf10c-lite.chunk.js → 7172-7710a90e85-lite.chunk.js} +0 -0
  272. /package/dist/scripts/{7338-e0306c666f-lite.chunk.js → 7338-a5d6a68d8e-lite.chunk.js} +0 -0
  273. /package/dist/scripts/{7715-b21edc60f0-lite.chunk.js → 7715-4f575c978b-lite.chunk.js} +0 -0
  274. /package/dist/scripts/{7855-4598a122c5-lite.chunk.js → 7855-80d224d718-lite.chunk.js} +0 -0
  275. /package/dist/scripts/{7925-c8cd8aace8-lite.chunk.js → 7925-29ca2fc37a-lite.chunk.js} +0 -0
  276. /package/dist/scripts/{8025-1982900b56-lite.chunk.js → 8025-0ef8f041ea-lite.chunk.js} +0 -0
  277. /package/dist/scripts/{8830-16c2fd1319-lite.chunk.js → 8830-122c8ae807-lite.chunk.js} +0 -0
  278. /package/dist/scripts/{9016-236a5997d4-lite.chunk.js.LICENSE.txt → 9016-68a0088483-lite.chunk.js.LICENSE.txt} +0 -0
  279. /package/dist/scripts/{9060-aea36d49b0-lite.chunk.js → 9060-c035711b40-lite.chunk.js} +0 -0
  280. /package/dist/scripts/{9455-283f477332-lite.chunk.js → 9455-c80c14ea98-lite.chunk.js} +0 -0
  281. /package/dist/scripts/{9674-25ccc9ee52-lite.chunk.js → 9674-f5e66f8c06-lite.chunk.js} +0 -0
  282. /package/dist/scripts/{9843-d084ed32bf-lite.chunk.js → 9843-07f0304cc4-lite.chunk.js} +0 -0
  283. /package/dist/scripts/{bundle-d66378a758.min.js.LICENSE.txt → bundle-1db2700368.min.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[6347],{96347:(t,e,i)=>{i.d(e,{p:()=>is});const s="generated",o="pointerleave",n="pointermove",a="touchend",r="tsParticles - Error";class l{constructor(t,e,i){if(this._updateFromAngle=(t,e)=>{this.x=Math.cos(t)*e,this.y=Math.sin(t)*e},!V(t)&&t){this.x=t.x,this.y=t.y;const e=t;this.z=e.z?e.z:0}else{if(void 0===t||void 0===e)throw new Error(`${r} Vector3d not initialized correctly`);this.x=t,this.y=e,this.z=i??0}}static get origin(){return l.create(0,0,0)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this._updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this._updateFromAngle(this.angle,t)}static clone(t){return l.create(t.x,t.y,t.z)}static create(t,e,i){return new l(t,e,i)}add(t){return l.create(this.x+t.x,this.y+t.y,this.z+t.z)}addTo(t){this.x+=t.x,this.y+=t.y,this.z+=t.z}copy(){return l.clone(this)}distanceTo(t){return this.sub(t).length}distanceToSq(t){return this.sub(t).getLengthSq()}div(t){return l.create(this.x/t,this.y/t,this.z/t)}divTo(t){this.x/=t,this.y/=t,this.z/=t}getLengthSq(){return this.x**2+this.y**2}mult(t){return l.create(this.x*t,this.y*t,this.z*t)}multTo(t){this.x*=t,this.y*=t,this.z*=t}normalize(){const t=this.length;0!=t&&this.multTo(1/t)}rotate(t){return l.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),0)}setTo(t){this.x=t.x,this.y=t.y;const e=t;this.z=e.z?e.z:0}sub(t){return l.create(this.x-t.x,this.y-t.y,this.z-t.z)}subFrom(t){this.x-=t.x,this.y-=t.y,this.z-=t.z}}class c extends l{constructor(t,e){super(t,e,0)}static get origin(){return c.create(0,0)}static clone(t){return c.create(t.x,t.y)}static create(t,e){return new c(t,e)}}let h=Math.random;function d(){return u(h(),0,1-1e-16)}function u(t,e,i){return Math.min(Math.max(t,e),i)}function p(t){const e=g(t);let i=m(t);return e===i&&(i=0),d()*(e-i)+i}function f(t){return V(t)?t:p(t)}function m(t){return V(t)?t:t.min}function g(t){return V(t)?t:t.max}function v(t,e){if(t===e||void 0===e&&V(t))return t;const i=m(t),s=g(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(s,e)}:v(i,s)}function y(t){const e=t.random,{enable:i,minimumValue:s}=A(e)?{enable:e,minimumValue:0}:e;return f(i?v(t.value,s):t.value)}function w(t,e){const i=t.x-e.x,s=t.y-e.y;return{dx:i,dy:s,distance:Math.sqrt(i**2+s**2)}}function b(t,e){return w(t,e).distance}function _(t){return t?t.endsWith("%")?parseFloat(t)/100:parseFloat(t):1}new Map;const x={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function z(){return x}function M(){return"undefined"==typeof window||!window||void 0===window.document||!window.document}function C(t){if(!M()&&"undefined"!=typeof matchMedia)return matchMedia(t)}function P(t,e){return t===e||q(e)&&e.indexOf(t)>-1}function k(t){return Math.floor(d()*t.length)}function S(t,e,i=!0){return t[void 0!==e&&i?e%t.length:k(t)]}function T(t,e,i,s,o){return function(t,e,i,s){let o=!0;return s&&"bottom"!==s||(o=t.top<e.height+i.x),!o||s&&"left"!==s||(o=t.right>i.x),!o||s&&"right"!==s||(o=t.left<e.width+i.y),!o||s&&"top"!==s||(o=t.bottom>i.y),o}(I(t,s??0),e,i,o)}function I(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function D(t,...e){for(const i of e){if(null==i)continue;if(!$(i)){t=i;continue}const e=Array.isArray(i);!e||!$(t)&&t&&Array.isArray(t)?e||!$(t)&&t&&!Array.isArray(t)||(t={}):t=[];for(const e in i){if("__proto__"===e)continue;const s=i[e],o=t;o[e]=$(s)&&Array.isArray(s)?s.map((t=>D(o[e],t))):D(o[e],s)}}return t}function O(t,e){return q(t)?t.map(((t,i)=>e(t,i))):e(t,0)}function E(t,e,i){return q(t)?S(t,e,i):t}function R(t,e){const i=t.value,s=t.animation,o={delayTime:1e3*f(s.delay),enable:s.enable,value:f(t.value)*e,max:g(i)*e,min:m(i)*e,loops:0,maxLoops:f(s.count),time:0};if(s.enable){switch(o.decay=1-f(s.decay),s.mode){case"increase":o.status="increasing";break;case"decrease":o.status="decreasing";break;case"random":o.status=d()>=.5?"increasing":"decreasing"}const t="auto"===s.mode;switch(s.startValue){case"min":o.value=o.min,t&&(o.status="increasing");break;case"max":o.value=o.max,t&&(o.status="decreasing");break;default:o.value=p(o),t&&(o.status=d()>=.5?"increasing":"decreasing")}}return o.initialValue=o.value,o}function L(t,e){if("percent"!==t.mode){const{mode:e,...i}=t;return i}return"x"in t?{x:t.x/100*e.width,y:t.y/100*e.height}:{width:t.width/100*e.width,height:t.height/100*e.height}}function F(t,e){return L(t,e)}function A(t){return"boolean"==typeof t}function B(t){return"string"==typeof t}function V(t){return"number"==typeof t}function U(t){return"function"==typeof t}function $(t){return"object"==typeof t&&null!==t}function q(t){return Array.isArray(t)}const W="random",G=new Map;function H(t){G.set(t.key,t)}function X(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function Y(t,e,i=!0){if(!t)return;const s=B(t)?{value:t}:t;if(B(s.value))return N(s.value,e,i);if(q(s.value))return Y({value:S(s.value,e,i)});for(const[,t]of G){const e=t.handleRangeColor(s);if(e)return e}}function N(t,e,i=!0){if(!t)return;const s=B(t)?{value:t}:t;if(B(s.value))return s.value===W?function(t){const e=t??0;return{b:Math.floor(p(v(e,256))),g:Math.floor(p(v(e,256))),r:Math.floor(p(v(e,256)))}}():function(t){return function(t){for(const[,e]of G)if(t.startsWith(e.stringPrefix))return e.parseString(t);const e=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,((t,e,i,s,o)=>e+e+i+i+s+s+(void 0!==o?o+o:""))),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(e);return i?{a:void 0!==i[4]?parseInt(i[4],16)/255:1,b:parseInt(i[3],16),g:parseInt(i[2],16),r:parseInt(i[1],16)}:void 0}(t)}(s.value);if(q(s.value))return N({value:S(s.value,e,i)});for(const[,t]of G){const e=t.handleColor(s);if(e)return e}}function j(t,e,i=!0){const s=Y(t,e,i);return s?function(t){const e=t.r/255,i=t.g/255,s=t.b/255,o=Math.max(e,i,s),n=Math.min(e,i,s),a={h:0,l:(o+n)/2,s:0};return o!==n&&(a.s=a.l<.5?(o-n)/(o+n):(o-n)/(2-o-n),a.h=e===o?(i-s)/(o-n):a.h=i===o?2+(s-e)/(o-n):4+(e-i)/(o-n)),a.l*=100,a.s*=100,a.h*=60,a.h<0&&(a.h+=360),a.h>=360&&(a.h-=360),a}(s):void 0}function Z(t){const e={b:0,g:0,r:0},i={h:t.h/360,l:t.l/100,s:t.s/100};if(i.s){const t=i.l<.5?i.l*(1+i.s):i.l+i.s-i.l*i.s,s=2*i.l-t;e.r=X(s,t,i.h+1/3),e.g=X(s,t,i.h),e.b=X(s,t,i.h-1/3)}else e.r=e.g=e.b=i.l;return e.r=Math.floor(255*e.r),e.g=Math.floor(255*e.g),e.b=Math.floor(255*e.b),e}function Q(t,e){return`rgba(${t.r}, ${t.g}, ${t.b}, ${e??1})`}function J(t,e){return`hsla(${t.h}, ${t.s}%, ${t.l}%, ${e??1})`}function K(t){return void 0!==t?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}function tt(t,e,i){t.enable=e.enable,t.enable?(t.velocity=f(e.speed)/100*i,t.decay=1-f(e.decay),t.status="increasing",t.loops=0,t.maxLoops=f(e.count),t.time=0,t.delayTime=1e3*f(e.delay),e.sync||(t.velocity*=d(),t.value*=d()),t.initialValue=t.value):t.velocity=0}function et(t,e){t.clearRect(0,0,e.width,e.height)}function it(t,e,i){const s=e[i];void 0!==s&&(t[i]=(t[i]??1)*s)}class st{constructor(t){this.container=t,this._applyPostDrawUpdaters=t=>{for(const e of this._postDrawUpdaters)e.afterDraw&&e.afterDraw(t)},this._applyPreDrawUpdaters=(t,e,i,s,o,n)=>{for(const a of this._preDrawUpdaters){if(a.getColorStyles){const{fill:n,stroke:r}=a.getColorStyles(e,t,i,s);n&&(o.fill=n),r&&(o.stroke=r)}if(a.getTransformValues){const t=a.getTransformValues(e);for(const e in t)it(n,t,e)}a.beforeDraw&&a.beforeDraw(e)}},this._applyResizePlugins=()=>{for(const t of this._resizePlugins)t.resize&&t.resize()},this._getPluginParticleColors=t=>{let e,i;for(const s of this._colorPlugins)if(!e&&s.particleFillColor&&(e=j(s.particleFillColor(t))),!i&&s.particleStrokeColor&&(i=j(s.particleStrokeColor(t))),e&&i)break;return[e,i]},this._initCover=()=>{const t=this.container.actualOptions.backgroundMask.cover,e=Y(t.color);if(e){const i={...e,a:t.opacity};this._coverColorStyle=Q(i,i.a)}},this._initStyle=()=>{const t=this.element,e=this.container.actualOptions;if(t){this._fullScreen?(this._originalStyle=D({},t.style),this._setFullScreenStyle()):this._resetOriginalStyle();for(const i in e.style){if(!i||!e.style)continue;const s=e.style[i];s&&t.style.setProperty(i,s,"important")}}},this._initTrail=async()=>{const t=this.container.actualOptions,e=t.particles.move.trail,i=e.fill;if(e.enable)if(i.color){const e=Y(i.color);if(!e)return;const s=t.particles.move.trail;this._trailFill={color:{...e},opacity:1/s.length}}else await new Promise(((t,s)=>{if(!i.image)return;const o=document.createElement("img");o.addEventListener("load",(()=>{this._trailFill={image:o,opacity:1/e.length},t()})),o.addEventListener("error",(t=>{s(t.error)})),o.src=i.image}))},this._paintBase=t=>{this.draw((e=>function(t,e,i){t.fillStyle=i??"rgba(0,0,0,0)",t.fillRect(0,0,e.width,e.height)}(e,this.size,t)))},this._paintImage=(t,e)=>{this.draw((i=>function(t,e,i,s){i&&(t.globalAlpha=s,t.drawImage(i,0,0,e.width,e.height),t.globalAlpha=1)}(i,this.size,t,e)))},this._repairStyle=()=>{const t=this.element;t&&(this._safeMutationObserver((t=>t.disconnect())),this._initStyle(),this.initBackground(),this._safeMutationObserver((e=>e.observe(t,{attributes:!0}))))},this._resetOriginalStyle=()=>{const t=this.element,e=this._originalStyle;if(!t||!e)return;const i=t.style;i.position=e.position,i.zIndex=e.zIndex,i.top=e.top,i.left=e.left,i.width=e.width,i.height=e.height},this._safeMutationObserver=t=>{this._mutationObserver&&t(this._mutationObserver)},this._setFullScreenStyle=()=>{const t=this.element;if(!t)return;const e="important",i=t.style;i.setProperty("position","fixed",e),i.setProperty("z-index",this.container.actualOptions.fullScreen.zIndex.toString(10),e),i.setProperty("top","0",e),i.setProperty("left","0",e),i.setProperty("width","100%",e),i.setProperty("height","100%",e)},this.size={height:0,width:0},this._context=null,this._generated=!1,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}get _fullScreen(){return this.container.actualOptions.fullScreen.enable}clear(){const t=this.container.actualOptions,e=t.particles.move.trail,i=this._trailFill;t.backgroundMask.enable?this.paint():e.enable&&e.length>0&&i?i.color?this._paintBase(Q(i.color,i.opacity)):i.image&&this._paintImage(i.image,i.opacity):this.draw((t=>{et(t,this.size)}))}destroy(){if(this.stop(),this._generated){const t=this.element;t&&t.remove()}else this._resetOriginalStyle();this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(t){const e=this._context;if(e)return t(e)}drawParticle(t,e){if(t.spawning||t.destroyed)return;const i=t.getRadius();if(i<=0)return;const s=t.getFillColor(),o=t.getStrokeColor()??s;let[n,a]=this._getPluginParticleColors(t);n||(n=s),a||(a=o),(n||a)&&this.draw((s=>{const o=this.container,r=o.actualOptions,l=t.options.zIndex,c=(1-t.zIndexFactor)**l.opacityRate,h=t.bubble.opacity??t.opacity?.value??1,d=h*c,u=(t.strokeOpacity??h)*c,p={},f={fill:n?J(n,d):void 0};f.stroke=a?J(a,u):f.fill,this._applyPreDrawUpdaters(s,t,i,d,f,p),function(t){const{container:e,context:i,particle:s,delta:o,colorStyles:n,backgroundMask:a,composite:r,radius:l,opacity:c,shadow:h,transform:d}=t,u=s.getPosition(),p=s.rotation+(s.pathRotation?s.velocity.angle:0),f=Math.sin(p),m=Math.cos(p),g={a:m*(d.a??1),b:f*(d.b??1),c:-f*(d.c??1),d:m*(d.d??1)};i.setTransform(g.a,g.b,g.c,g.d,u.x,u.y),i.beginPath(),a&&(i.globalCompositeOperation=r);const v=s.shadowColor;h.enable&&v&&(i.shadowBlur=h.blur,i.shadowColor=Q(v),i.shadowOffsetX=h.offset.x,i.shadowOffsetY=h.offset.y),n.fill&&(i.fillStyle=n.fill);const y=s.strokeWidth??0;i.lineWidth=y,n.stroke&&(i.strokeStyle=n.stroke),function(t,e,i,s,o,n){if(!i.shape)return;const a=t.drawers.get(i.shape);a&&a.draw(e,i,s,o,n,t.retina.pixelRatio)}(e,i,s,l,c,o),y>0&&i.stroke(),s.close&&i.closePath(),s.fill&&i.fill(),function(t,e,i,s,o,n){if(!i.shape)return;const a=t.drawers.get(i.shape);a&&a.afterEffect&&a.afterEffect(e,i,s,o,n,t.retina.pixelRatio)}(e,i,s,l,c,o),i.globalCompositeOperation="source-over",i.setTransform(1,0,0,1,0,0)}({container:o,context:s,particle:t,delta:e,colorStyles:f,backgroundMask:r.backgroundMask.enable,composite:r.backgroundMask.composite,radius:i*(1-t.zIndexFactor)**l.sizeRate,opacity:d,shadow:t.options.shadow,transform:p}),this._applyPostDrawUpdaters(t)}))}drawParticlePlugin(t,e,i){this.draw((s=>function(t,e,i,s){e.drawParticle&&e.drawParticle(t,i,s)}(s,t,e,i)))}drawPlugin(t,e){this.draw((i=>function(t,e,i){e.draw&&e.draw(t,i)}(i,t,e)))}async init(){this._safeMutationObserver((t=>t.disconnect())),this._mutationObserver=function(t){if(!M()&&"undefined"!=typeof MutationObserver)return new MutationObserver(t)}((t=>{for(const e of t)"attributes"===e.type&&"style"===e.attributeName&&this._repairStyle()})),this.resize(),this._initStyle(),this._initCover();try{await this._initTrail()}catch(t){z().error(t)}this.initBackground(),this._safeMutationObserver((t=>{this.element&&t.observe(this.element,{attributes:!0})})),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){const t=this.container.actualOptions.background,e=this.element;if(!e)return;const i=e.style;if(i){if(t.color){const e=Y(t.color);i.backgroundColor=e?Q(e,t.opacity):""}else i.backgroundColor="";i.backgroundImage=t.image||"",i.backgroundPosition=t.position||"",i.backgroundRepeat=t.repeat||"",i.backgroundSize=t.size||""}}initPlugins(){this._resizePlugins=[];for(const[,t]of this.container.plugins)t.resize&&this._resizePlugins.push(t),(t.particleFillColor||t.particleStrokeColor)&&this._colorPlugins.push(t)}initUpdaters(){this._preDrawUpdaters=[],this._postDrawUpdaters=[];for(const t of this.container.particles.updaters)t.afterDraw&&this._postDrawUpdaters.push(t),(t.getColorStyles||t.getTransformValues||t.beforeDraw)&&this._preDrawUpdaters.push(t)}loadCanvas(t){this._generated&&this.element&&this.element.remove(),this._generated=t.dataset&&s in t.dataset?"true"===t.dataset[s]:this._generated,this.element=t,this.element.ariaHidden="true",this._originalStyle=D({},this.element.style),this.size.height=t.offsetHeight,this.size.width=t.offsetWidth,this._context=this.element.getContext("2d"),this._safeMutationObserver((t=>{this.element&&t.observe(this.element,{attributes:!0})})),this.container.retina.init(),this.initBackground()}paint(){const t=this.container.actualOptions;this.draw((e=>{t.backgroundMask.enable&&t.backgroundMask.cover?(et(e,this.size),this._paintBase(this._coverColorStyle)):this._paintBase()}))}resize(){if(!this.element)return!1;const t=this.container,e=t.retina.pixelRatio,i=t.canvas.size,s=this.element.offsetWidth*e,o=this.element.offsetHeight*e;if(o===i.height&&s===i.width&&o===this.element.height&&s===this.element.width)return!1;const n={...i};return this.element.width=i.width=this.element.offsetWidth*e,this.element.height=i.height=this.element.offsetHeight*e,this.container.started&&(this.resizeFactor={width:i.width/n.width,height:i.height/n.height}),!0}stop(){this._safeMutationObserver((t=>t.disconnect())),this._mutationObserver=void 0,this.draw((t=>et(t,this.size)))}async windowResize(){if(!this.element||!this.resize())return;const t=this.container,e=t.updateActualOptions();t.particles.setDensity(),this._applyResizePlugins(),e&&await t.refresh()}}function ot(t,e,i,s,o){if(s){let s={passive:!0};A(o)?s.capture=o:void 0!==o&&(s=o),t.addEventListener(e,i,s)}else{const s=o;t.removeEventListener(e,i,s)}}class nt{constructor(t){this.container=t,this._doMouseTouchClick=t=>{const e=this.container,i=e.actualOptions;if(this._canPush){const t=e.interactivity.mouse,s=t.position;if(!s)return;t.clickPosition={...s},t.clickTime=(new Date).getTime(),O(i.interactivity.events.onClick.mode,(t=>this.container.handleClickMode(t)))}"touchend"===t.type&&setTimeout((()=>this._mouseTouchFinish()),500)},this._handleThemeChange=t=>{const e=t,i=this.container,s=i.options,o=s.defaultThemes,n=e.matches?o.dark:o.light,a=s.themes.find((t=>t.name===n));a&&a.default.auto&&i.loadTheme(n)},this._handleVisibilityChange=()=>{const t=this.container,e=t.actualOptions;this._mouseTouchFinish(),e.pauseOnBlur&&(document&&document.hidden?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.getAnimationStatus()?t.play(!0):t.draw(!0)))},this._handleWindowResize=async()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout),this._resizeTimeout=setTimeout((async()=>{const t=this.container.canvas;t&&await t.windowResize()}),1e3*this.container.actualOptions.interactivity.events.resize.delay)},this._manageInteractivityListeners=(t,e)=>{const i=this._handlers,s=this.container,o=s.actualOptions,r=s.interactivity.element;if(!r)return;const l=r,c=s.canvas.element;c&&(c.style.pointerEvents=l===c?"initial":"none"),(o.interactivity.events.onHover.enable||o.interactivity.events.onClick.enable)&&(ot(r,n,i.mouseMove,e),ot(r,"touchstart",i.touchStart,e),ot(r,"touchmove",i.touchMove,e),o.interactivity.events.onClick.enable?(ot(r,a,i.touchEndClick,e),ot(r,"pointerup",i.mouseUp,e),ot(r,"pointerdown",i.mouseDown,e)):ot(r,a,i.touchEnd,e),ot(r,t,i.mouseLeave,e),ot(r,"touchcancel",i.touchCancel,e))},this._manageListeners=t=>{const e=this._handlers,i=this.container,s=i.actualOptions.interactivity.detectsOn,n=i.canvas.element;let a=o;"window"===s?(i.interactivity.element=window,a="pointerout"):i.interactivity.element="parent"===s&&n?n.parentElement??n.parentNode:n,this._manageMediaMatch(t),this._manageResize(t),this._manageInteractivityListeners(a,t),document&&ot(document,"visibilitychange",e.visibilityChange,t,!1)},this._manageMediaMatch=t=>{const e=this._handlers,i=C("(prefers-color-scheme: dark)");i&&(void 0===i.addEventListener?void 0!==i.addListener&&(t?i.addListener(e.oldThemeChange):i.removeListener(e.oldThemeChange)):ot(i,"change",e.themeChange,t))},this._manageResize=t=>{const e=this._handlers,i=this.container;if(!i.actualOptions.interactivity.events.resize)return;if("undefined"==typeof ResizeObserver)return void ot(window,"resize",e.resize,t);const s=i.canvas.element;this._resizeObserver&&!t?(s&&this._resizeObserver.unobserve(s),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&t&&s&&(this._resizeObserver=new ResizeObserver((async t=>{t.find((t=>t.target===s))&&await this._handleWindowResize()})),this._resizeObserver.observe(s))},this._mouseDown=()=>{const{interactivity:t}=this.container;if(!t)return;const{mouse:e}=t;e.clicking=!0,e.downPosition=e.position},this._mouseTouchClick=t=>{const e=this.container,i=e.actualOptions,{mouse:s}=e.interactivity;s.inside=!0;let o=!1;const n=s.position;if(n&&i.interactivity.events.onClick.enable){for(const[,t]of e.plugins)if(t.clickPositionValid&&(o=t.clickPositionValid(n),o))break;o||this._doMouseTouchClick(t),s.clicking=!1}},this._mouseTouchFinish=()=>{const t=this.container.interactivity;if(!t)return;const e=t.mouse;delete e.position,delete e.clickPosition,delete e.downPosition,t.status=o,e.inside=!1,e.clicking=!1},this._mouseTouchMove=t=>{const e=this.container,i=e.actualOptions,s=e.interactivity,o=e.canvas.element;if(!s||!s.element)return;let a;if(s.mouse.inside=!0,t.type.startsWith("pointer")){this._canPush=!0;const e=t;if(s.element===window){if(o){const t=o.getBoundingClientRect();a={x:e.clientX-t.left,y:e.clientY-t.top}}}else if("parent"===i.interactivity.detectsOn){const t=e.target,i=e.currentTarget;if(t&&i&&o){const s=t.getBoundingClientRect(),n=i.getBoundingClientRect(),r=o.getBoundingClientRect();a={x:e.offsetX+2*s.left-(n.left+r.left),y:e.offsetY+2*s.top-(n.top+r.top)}}else a={x:e.offsetX??e.clientX,y:e.offsetY??e.clientY}}else e.target===o&&(a={x:e.offsetX??e.clientX,y:e.offsetY??e.clientY})}else if(this._canPush="touchmove"!==t.type,o){const e=t,i=e.touches[e.touches.length-1],s=o.getBoundingClientRect();a={x:i.clientX-(s.left??0),y:i.clientY-(s.top??0)}}const r=e.retina.pixelRatio;a&&(a.x*=r,a.y*=r),s.mouse.position=a,s.status=n},this._touchEnd=t=>{const e=t,i=Array.from(e.changedTouches);for(const t of i)this._touches.delete(t.identifier);this._mouseTouchFinish()},this._touchEndClick=t=>{const e=t,i=Array.from(e.changedTouches);for(const t of i)this._touches.delete(t.identifier);this._mouseTouchClick(t)},this._touchStart=t=>{const e=t,i=Array.from(e.changedTouches);for(const t of i)this._touches.set(t.identifier,performance.now());this._mouseTouchMove(t)},this._canPush=!0,this._touches=new Map,this._handlers={mouseDown:()=>this._mouseDown(),mouseLeave:()=>this._mouseTouchFinish(),mouseMove:t=>this._mouseTouchMove(t),mouseUp:t=>this._mouseTouchClick(t),touchStart:t=>this._touchStart(t),touchMove:t=>this._mouseTouchMove(t),touchEnd:t=>this._touchEnd(t),touchCancel:t=>this._touchEnd(t),touchEndClick:t=>this._touchEndClick(t),visibilityChange:()=>this._handleVisibilityChange(),themeChange:t=>this._handleThemeChange(t),oldThemeChange:t=>this._handleThemeChange(t),resize:()=>{this._handleWindowResize()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}}class at{constructor(){this.value=""}static create(t,e){const i=new at;return i.load(t),void 0!==e&&(B(e)||q(e)?i.load({value:e}):i.load(e)),i}load(t){void 0!==t?.value&&(this.value=t.value)}}class rt{constructor(){this.color=new at,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(t){t&&(void 0!==t.color&&(this.color=at.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image),void 0!==t.position&&(this.position=t.position),void 0!==t.repeat&&(this.repeat=t.repeat),void 0!==t.size&&(this.size=t.size),void 0!==t.opacity&&(this.opacity=t.opacity))}}class lt{constructor(){this.color=new at,this.color.value="#fff",this.opacity=1}load(t){t&&(void 0!==t.color&&(this.color=at.create(this.color,t.color)),void 0!==t.opacity&&(this.opacity=t.opacity))}}class ct{constructor(){this.composite="destination-out",this.cover=new lt,this.enable=!1}load(t){if(t){if(void 0!==t.composite&&(this.composite=t.composite),void 0!==t.cover){const e=t.cover,i=B(t.cover)?{color:t.cover}:t.cover;this.cover.load(void 0!==e.color?e:{color:i})}void 0!==t.enable&&(this.enable=t.enable)}}}class ht{constructor(){this.enable=!0,this.zIndex=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.zIndex&&(this.zIndex=t.zIndex))}}class dt{constructor(){this.enable=!1,this.mode=[]}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode))}}class ut{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type="circle"}get el(){return this.elementId}set el(t){this.elementId=t}get elementId(){return this.ids}set elementId(t){this.ids=t}get ids(){return O(this.selectors,(t=>t.replace("#","")))}set ids(t){this.selectors=O(t,(t=>`#${t}`))}load(t){if(!t)return;const e=t.ids??t.elementId??t.el;void 0!==e&&(this.ids=e),void 0!==t.selectors&&(this.selectors=t.selectors),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.type&&(this.type=t.type)}}class pt{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.force&&(this.force=t.force),void 0!==t.smooth&&(this.smooth=t.smooth))}}class ft{constructor(){this.enable=!1,this.mode=[],this.parallax=new pt}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),this.parallax.load(t.parallax))}}class mt{constructor(){this.delay=.5,this.enable=!0}load(t){void 0!==t&&(void 0!==t.delay&&(this.delay=t.delay),void 0!==t.enable&&(this.enable=t.enable))}}class gt{constructor(){this.onClick=new dt,this.onDiv=new ut,this.onHover=new ft,this.resize=new mt}get onclick(){return this.onClick}set onclick(t){this.onClick=t}get ondiv(){return this.onDiv}set ondiv(t){this.onDiv=t}get onhover(){return this.onHover}set onhover(t){this.onHover=t}load(t){if(!t)return;this.onClick.load(t.onClick??t.onclick);const e=t.onDiv??t.ondiv;void 0!==e&&(this.onDiv=O(e,(t=>{const e=new ut;return e.load(t),e}))),this.onHover.load(t.onHover??t.onhover),A(t.resize)?this.resize.enable=t.resize:this.resize.load(t.resize)}}class vt{constructor(t,e){this._engine=t,this._container=e}load(t){if(!t)return;if(!this._container)return;const e=this._engine.plugins.interactors.get(this._container);if(e)for(const i of e)i.loadModeOptions&&i.loadModeOptions(this,t)}}class yt{constructor(t,e){this.detectsOn="window",this.events=new gt,this.modes=new vt(t,e)}get detect_on(){return this.detectsOn}set detect_on(t){this.detectsOn=t}load(t){if(!t)return;const e=t.detectsOn??t.detect_on;void 0!==e&&(this.detectsOn=e),this.events.load(t.events),this.modes.load(t.modes)}}class wt{load(t){t&&(t.position&&(this.position={x:t.position.x??50,y:t.position.y??50,mode:t.position.mode??"percent"}),t.options&&(this.options=D({},t.options)))}}class bt{constructor(){this.maxWidth=1/0,this.options={},this.mode="canvas"}load(t){t&&(void 0!==t.maxWidth&&(this.maxWidth=t.maxWidth),void 0!==t.mode&&("screen"===t.mode?this.mode="screen":this.mode="canvas"),void 0!==t.options&&(this.options=D({},t.options)))}}class _t{constructor(){this.auto=!1,this.mode="any",this.value=!1}load(t){t&&(void 0!==t.auto&&(this.auto=t.auto),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}}class xt{constructor(){this.name="",this.default=new _t}load(t){t&&(void 0!==t.name&&(this.name=t.name),this.default.load(t.default),void 0!==t.options&&(this.options=D({},t.options)))}}class zt{constructor(){this.count=0,this.enable=!1,this.offset=0,this.speed=1,this.delay=0,this.decay=0,this.sync=!0}load(t){t&&(void 0!==t.count&&(this.count=v(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.offset&&(this.offset=v(t.offset)),void 0!==t.speed&&(this.speed=v(t.speed)),void 0!==t.decay&&(this.decay=v(t.decay)),void 0!==t.delay&&(this.delay=v(t.delay)),void 0!==t.sync&&(this.sync=t.sync))}}class Mt{constructor(){this.h=new zt,this.s=new zt,this.l=new zt}load(t){t&&(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}class Ct extends at{constructor(){super(),this.animation=new Mt}static create(t,e){const i=new Ct;return i.load(t),void 0!==e&&(B(e)||q(e)?i.load({value:e}):i.load(e)),i}load(t){if(super.load(t),!t)return;const e=t.animation;void 0!==e&&(void 0!==e.enable?this.animation.h.load(e):this.animation.load(t.animation))}}class Pt{constructor(){this.speed=2}load(t){t&&void 0!==t.speed&&(this.speed=t.speed)}}class kt{constructor(){this.enable=!0,this.retries=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.retries&&(this.retries=t.retries))}}class St{constructor(){this.enable=!1,this.minimumValue=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.minimumValue&&(this.minimumValue=t.minimumValue))}}class Tt{constructor(){this.random=new St,this.value=0}load(t){t&&(A(t.random)?this.random.enable=t.random:this.random.load(t.random),void 0!==t.value&&(this.value=v(t.value,this.random.enable?this.random.minimumValue:void 0)))}}class It extends Tt{constructor(){super(),this.random.minimumValue=.1,this.value=1}}class Dt{constructor(){this.horizontal=new It,this.vertical=new It}load(t){t&&(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}class Ot{constructor(){this.absorb=new Pt,this.bounce=new Dt,this.enable=!1,this.maxSpeed=50,this.mode="bounce",this.overlap=new kt}load(t){t&&(this.absorb.load(t.absorb),this.bounce.load(t.bounce),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.maxSpeed&&(this.maxSpeed=v(t.maxSpeed)),void 0!==t.mode&&(this.mode=t.mode),this.overlap.load(t.overlap))}}class Et{constructor(){this.offset=0,this.value=90}load(t){t&&(void 0!==t.offset&&(this.offset=v(t.offset)),void 0!==t.value&&(this.value=v(t.value)))}}class Rt{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}get rotateX(){return this.rotate.x}set rotateX(t){this.rotate.x=t}get rotateY(){return this.rotate.y}set rotateY(t){this.rotate.y=t}load(t){if(!t)return;void 0!==t.distance&&(this.distance=v(t.distance)),void 0!==t.enable&&(this.enable=t.enable);const e=t.rotate?.x??t.rotateX;void 0!==e&&(this.rotate.x=e);const i=t.rotate?.y??t.rotateY;void 0!==i&&(this.rotate.y=i)}}class Lt{constructor(){this.x=50,this.y=50,this.mode="percent",this.radius=0}load(t){t&&(void 0!==t.x&&(this.x=t.x),void 0!==t.y&&(this.y=t.y),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.radius&&(this.radius=t.radius))}}class Ft{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=v(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.inverse&&(this.inverse=t.inverse),void 0!==t.maxSpeed&&(this.maxSpeed=v(t.maxSpeed)))}}class At{constructor(){this.clamp=!0,this.delay=new Tt,this.enable=!1,this.options={}}load(t){t&&(void 0!==t.clamp&&(this.clamp=t.clamp),this.delay.load(t.delay),void 0!==t.enable&&(this.enable=t.enable),this.generator=t.generator,t.options&&(this.options=D(this.options,t.options)))}}class Bt{load(t){t&&(void 0!==t.color&&(this.color=at.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image))}}class Vt{constructor(){this.enable=!1,this.length=10,this.fill=new Bt}get fillColor(){return this.fill.color}set fillColor(t){this.fill.load({color:t})}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0===t.fill&&void 0===t.fillColor||this.fill.load(t.fill||{color:t.fillColor}),void 0!==t.length&&(this.length=t.length))}}class Ut{constructor(){this.default="out"}load(t){t&&(void 0!==t.default&&(this.default=t.default),this.bottom=t.bottom??t.default,this.left=t.left??t.default,this.right=t.right??t.default,this.top=t.top??t.default)}}class $t{constructor(){this.acceleration=0,this.enable=!1}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=v(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),t.position&&(this.position=D({},t.position)))}}class qt{constructor(){this.angle=new Et,this.attract=new Rt,this.center=new Lt,this.decay=0,this.distance={},this.direction="none",this.drift=0,this.enable=!1,this.gravity=new Ft,this.path=new At,this.outModes=new Ut,this.random=!1,this.size=!1,this.speed=2,this.spin=new $t,this.straight=!1,this.trail=new Vt,this.vibrate=!1,this.warp=!1}get bounce(){return this.collisions}set bounce(t){this.collisions=t}get collisions(){return!1}set collisions(t){}get noise(){return this.path}set noise(t){this.path=t}get outMode(){return this.outModes.default}set outMode(t){this.outModes.default=t}get out_mode(){return this.outMode}set out_mode(t){this.outMode=t}load(t){if(!t)return;this.angle.load(V(t.angle)?{value:t.angle}:t.angle),this.attract.load(t.attract),this.center.load(t.center),void 0!==t.decay&&(this.decay=v(t.decay)),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.distance&&(this.distance=V(t.distance)?{horizontal:t.distance,vertical:t.distance}:{...t.distance}),void 0!==t.drift&&(this.drift=v(t.drift)),void 0!==t.enable&&(this.enable=t.enable),this.gravity.load(t.gravity);const e=t.outModes??t.outMode??t.out_mode;void 0!==e&&($(e)?this.outModes.load(e):this.outModes.load({default:e})),this.path.load(t.path??t.noise),void 0!==t.random&&(this.random=t.random),void 0!==t.size&&(this.size=t.size),void 0!==t.speed&&(this.speed=v(t.speed)),this.spin.load(t.spin),void 0!==t.straight&&(this.straight=t.straight),this.trail.load(t.trail),void 0!==t.vibrate&&(this.vibrate=t.vibrate),void 0!==t.warp&&(this.warp=t.warp)}}class Wt{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(t){t&&(void 0!==t.count&&(this.count=v(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=v(t.speed)),void 0!==t.decay&&(this.decay=v(t.decay)),void 0!==t.delay&&(this.delay=v(t.delay)),void 0!==t.sync&&(this.sync=t.sync))}}class Gt extends Wt{constructor(){super(),this.mode="auto",this.startValue="random"}load(t){super.load(t),t&&(void 0!==t.minimumValue&&(this.minimumValue=t.minimumValue),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.startValue&&(this.startValue=t.startValue))}}class Ht extends Gt{constructor(){super(),this.destroy="none",this.speed=2}get opacity_min(){return this.minimumValue}set opacity_min(t){this.minimumValue=t}load(t){void 0!==t?.opacity_min&&void 0===t.minimumValue&&(t.minimumValue=t.opacity_min),super.load(t),t&&void 0!==t.destroy&&(this.destroy=t.destroy)}}class Xt extends Tt{constructor(){super(),this.animation=new Ht,this.random.minimumValue=.1,this.value=1}get anim(){return this.animation}set anim(t){this.animation=t}load(t){if(!t)return;super.load(t);const e=t.animation??t.anim;void 0!==e&&(this.animation.load(e),this.value=v(this.value,this.animation.enable?this.animation.minimumValue:void 0))}}class Yt{constructor(){this.enable=!1,this.width=1920,this.height=1080}get area(){return this.width}set area(t){this.width=t}get factor(){return this.height}set factor(t){this.height=t}get value_area(){return this.area}set value_area(t){this.area=t}load(t){if(!t)return;void 0!==t.enable&&(this.enable=t.enable);const e=t.width??t.area??t.value_area;void 0!==e&&(this.width=e);const i=t.height??t.factor;void 0!==i&&(this.height=i)}}class Nt{constructor(){this.density=new Yt,this.limit=0,this.value=0}get max(){return this.limit}set max(t){this.limit=t}load(t){if(!t)return;this.density.load(t.density);const e=t.limit??t.max;void 0!==e&&(this.limit=e),void 0!==t.value&&(this.value=t.value)}}class jt{constructor(){this.blur=0,this.color=new at,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(t){t&&(void 0!==t.blur&&(this.blur=t.blur),this.color=at.create(this.color,t.color),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.offset&&(void 0!==t.offset.x&&(this.offset.x=t.offset.x),void 0!==t.offset.y&&(this.offset.y=t.offset.y)))}}const Zt="character",Qt="char",Jt="image",Kt="images",te="polygon",ee="star";class ie{constructor(){this.loadShape=(t,e,i,s)=>{if(!t)return;const o=q(t),n=o?[]:{},a=o!==q(this.options[e]),r=o!==q(this.options[i]);a&&(this.options[e]=n),r&&s&&(this.options[i]=n),this.options[e]=D(this.options[e]??n,t),this.options[i]&&!s||(this.options[i]=D(this.options[i]??n,t))},this.close=!0,this.fill=!0,this.options={},this.type="circle"}get character(){return this.options[Zt]??this.options[Qt]}set character(t){this.options[Qt]=this.options[Zt]=t}get custom(){return this.options}set custom(t){this.options=t}get image(){return this.options[Jt]??this.options[Kt]}set image(t){this.options[Kt]=this.options[Jt]=t}get images(){return this.image}set images(t){this.image=t}get polygon(){return this.options[te]??this.options[ee]}set polygon(t){this.options[ee]=this.options[te]=t}get stroke(){return[]}set stroke(t){}load(t){if(!t)return;const e=t.options??t.custom;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=D(this.options[t]??{},i))}this.loadShape(t.character,Zt,Qt,!0),this.loadShape(t.polygon,te,ee,!1),this.loadShape(t.image??t.images,Jt,Kt,!0),void 0!==t.close&&(this.close=t.close),void 0!==t.fill&&(this.fill=t.fill),void 0!==t.type&&(this.type=t.type)}}class se extends Gt{constructor(){super(),this.destroy="none",this.speed=5}get size_min(){return this.minimumValue}set size_min(t){this.minimumValue=t}load(t){void 0!==t?.size_min&&void 0===t.minimumValue&&(t.minimumValue=t.size_min),super.load(t),t&&void 0!==t.destroy&&(this.destroy=t.destroy)}}class oe extends Tt{constructor(){super(),this.animation=new se,this.random.minimumValue=1,this.value=3}get anim(){return this.animation}set anim(t){this.animation=t}load(t){if(super.load(t),!t)return;const e=t.animation??t.anim;void 0!==e&&(this.animation.load(e),this.value=v(this.value,this.animation.enable?this.animation.minimumValue:void 0))}}class ne{constructor(){this.width=0}load(t){t&&(void 0!==t.color&&(this.color=Ct.create(this.color,t.color)),void 0!==t.width&&(this.width=v(t.width)),void 0!==t.opacity&&(this.opacity=v(t.opacity)))}}class ae extends Tt{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(t){super.load(t),t&&(void 0!==t.opacityRate&&(this.opacityRate=t.opacityRate),void 0!==t.sizeRate&&(this.sizeRate=t.sizeRate),void 0!==t.velocityRate&&(this.velocityRate=t.velocityRate))}}class re{constructor(t,e){this._engine=t,this._container=e,this.bounce=new Dt,this.collisions=new Ot,this.color=new Ct,this.color.value="#fff",this.groups={},this.move=new qt,this.number=new Nt,this.opacity=new Xt,this.reduceDuplicates=!1,this.shadow=new jt,this.shape=new ie,this.size=new oe,this.stroke=new ne,this.zIndex=new ae}load(t){if(!t)return;if(this.bounce.load(t.bounce),this.color.load(Ct.create(this.color,t.color)),void 0!==t.groups)for(const e in t.groups){const i=t.groups[e];void 0!==i&&(this.groups[e]=D(this.groups[e]??{},i))}this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity),void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.shape.load(t.shape),this.size.load(t.size),this.shadow.load(t.shadow),this.zIndex.load(t.zIndex);const e=t.move?.collisions??t.move?.bounce;void 0!==e&&(this.collisions.enable=e),this.collisions.load(t.collisions),void 0!==t.interactivity&&(this.interactivity=D({},t.interactivity));const i=t.stroke??t.shape?.stroke;if(i&&(this.stroke=O(i,(t=>{const e=new ne;return e.load(t),e}))),this._container){const e=this._engine.plugins.updaters.get(this._container);if(e)for(const i of e)i.loadOptions&&i.loadOptions(this,t);const i=this._engine.plugins.interactors.get(this._container);if(i)for(const e of i)e.loadParticlesOptions&&e.loadParticlesOptions(this,t)}}}function le(t,...e){for(const i of e)t.load(i)}function ce(t,e,...i){const s=new re(t,e);return le(s,...i),s}class he{constructor(t,e){this._findDefaultTheme=t=>this.themes.find((e=>e.default.value&&e.default.mode===t))??this.themes.find((t=>t.default.value&&"any"===t.default.mode)),this._importPreset=t=>{this.load(this._engine.plugins.getPreset(t))},this._engine=t,this._container=e,this.autoPlay=!0,this.background=new rt,this.backgroundMask=new ct,this.defaultThemes={},this.delay=0,this.fullScreen=new ht,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new yt(t,e),this.manualParticles=[],this.particles=ce(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}get backgroundMode(){return this.fullScreen}set backgroundMode(t){this.fullScreen.load(t)}get fps_limit(){return this.fpsLimit}set fps_limit(t){this.fpsLimit=t}get retina_detect(){return this.detectRetina}set retina_detect(t){this.detectRetina=t}load(t){if(!t)return;void 0!==t.preset&&O(t.preset,(t=>this._importPreset(t))),void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.delay&&(this.delay=v(t.delay));const e=t.detectRetina??t.retina_detect;void 0!==e&&(this.detectRetina=e),void 0!==t.duration&&(this.duration=v(t.duration));const i=t.fpsLimit??t.fps_limit;void 0!==i&&(this.fpsLimit=i),void 0!==t.pauseOnBlur&&(this.pauseOnBlur=t.pauseOnBlur),void 0!==t.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=t.pauseOnOutsideViewport),void 0!==t.zLayers&&(this.zLayers=t.zLayers),this.background.load(t.background);const s=t.fullScreen??t.backgroundMode;A(s)?this.fullScreen.enable=s:this.fullScreen.load(s),this.backgroundMask.load(t.backgroundMask),this.interactivity.load(t.interactivity),t.manualParticles&&(this.manualParticles=t.manualParticles.map((t=>{const e=new wt;return e.load(t),e}))),this.particles.load(t.particles),this.style=D(this.style,t.style),this._engine.plugins.loadOptions(this,t),void 0!==t.smooth&&(this.smooth=t.smooth);const o=this._engine.plugins.interactors.get(this._container);if(o)for(const e of o)e.loadOptions&&e.loadOptions(this,t);if(void 0!==t.responsive)for(const e of t.responsive){const t=new bt;t.load(e),this.responsive.push(t)}if(this.responsive.sort(((t,e)=>t.maxWidth-e.maxWidth)),void 0!==t.themes)for(const e of t.themes){const t=this.themes.find((t=>t.name===e.name));if(t)t.load(e);else{const t=new xt;t.load(e),this.themes.push(t)}}this.defaultThemes.dark=this._findDefaultTheme("dark")?.name,this.defaultThemes.light=this._findDefaultTheme("light")?.name}setResponsive(t,e,i){this.load(i);const s=this.responsive.find((i=>"screen"===i.mode&&screen?i.maxWidth>screen.availWidth:i.maxWidth*e>t));return this.load(s?.options),s?.maxWidth}setTheme(t){if(t){const e=this.themes.find((e=>e.name===t));e&&this.load(e.options)}else{const t=C("(prefers-color-scheme: dark)"),e=t&&t.matches,i=this._findDefaultTheme(e?"dark":"light");i&&this.load(i.options)}}}class de{constructor(t,e){this.container=e,this._engine=t,this._interactors=t.plugins.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[]}async externalInteract(t){for(const e of this._externalInteractors)e.isEnabled()&&await e.interact(t)}handleClickMode(t){for(const e of this._externalInteractors)e.handleClickMode&&e.handleClickMode(t)}init(){this._externalInteractors=[],this._particleInteractors=[];for(const t of this._interactors){switch(t.type){case"external":this._externalInteractors.push(t);break;case"particles":this._particleInteractors.push(t)}t.init()}}async particlesInteract(t,e){for(const i of this._externalInteractors)i.clear(t,e);for(const i of this._particleInteractors)i.isEnabled(t)&&await i.interact(t,e)}async reset(t){for(const e of this._externalInteractors)e.isEnabled()&&e.reset(t);for(const e of this._particleInteractors)e.isEnabled(t)&&e.reset(t)}}const ue=t=>{if(!P(t.outMode,t.checkModes))return;const e=2*t.radius;t.coord>t.maxCoord-e?t.setCb(-t.radius):t.coord<e&&t.setCb(t.radius)};class pe{constructor(t,e,i,s,o,n){this.container=i,this._calcPosition=(t,e,i,s=0)=>{for(const[,s]of t.plugins){const t=void 0!==s.particlePosition?s.particlePosition(e,this):void 0;if(t)return l.create(t.x,t.y,i)}const o=(u={size:t.canvas.size,position:e},{x:u.position?.x??d()*u.size.width,y:u.position?.y??d()*u.size.height}),n=l.create(o.x,o.y,i),a=this.getRadius(),r=this.options.move.outModes,c=e=>{ue({outMode:e,checkModes:["bounce","bounce-horizontal"],coord:n.x,maxCoord:t.canvas.size.width,setCb:t=>n.x+=t,radius:a})},h=e=>{ue({outMode:e,checkModes:["bounce","bounce-vertical"],coord:n.y,maxCoord:t.canvas.size.height,setCb:t=>n.y+=t,radius:a})};var u;return c(r.left??r.default),c(r.right??r.default),h(r.top??r.default),h(r.bottom??r.default),this._checkOverlap(n,s)?this._calcPosition(t,void 0,i,s+1):n},this._calculateVelocity=()=>{const t=function(t){const e=c.origin;return e.length=1,e.angle=t,e}(this.direction).copy(),e=this.options.move;if("inside"===e.direction||"outside"===e.direction)return t;const i=Math.PI/180*f(e.angle.value),s=Math.PI/180*f(e.angle.offset),o={left:s-i/2,right:s+i/2};return e.straight||(t.angle+=p(v(o.left,o.right))),e.random&&"number"==typeof e.speed&&(t.length*=d()),t},this._checkOverlap=(t,e=0)=>{const i=this.options.collisions,s=this.getRadius();if(!i.enable)return!1;const o=i.overlap;if(o.enable)return!1;const n=o.retries;if(n>=0&&e>n)throw new Error(`${r} particle is overlapping and can't be placed`);return!!this.container.particles.find((e=>b(t,e.position)<s+e.getRadius()))},this._getRollColor=t=>{if(!t||!this.roll||!this.backColor&&!this.roll.alter)return t;const e=this.roll.horizontal&&this.roll.vertical?2:1,i=this.roll.horizontal?Math.PI/2:0;return Math.floor(((this.roll.angle??0)+i)/(Math.PI/e))%2?this.backColor?this.backColor:this.roll.alter?function(t,e,i){return{h:t.h,s:t.s,l:t.l+("darken"===e?-1:1)*i}}(t,this.roll.alter.type,this.roll.alter.value):t:t},this._initPosition=t=>{const e=this.container,i=f(this.options.zIndex.value);this.position=this._calcPosition(e,t,u(i,0,e.zLayers)),this.initialPosition=this.position.copy();const s=e.canvas.size;switch(this.moveCenter={...F(this.options.move.center,s),radius:this.options.move.center.radius??0,mode:this.options.move.center.mode??"percent"},this.direction=function(t,e,i){if(V(t))return t*Math.PI/180;switch(t){case"top":return-Math.PI/2;case"top-right":return-Math.PI/4;case"right":return 0;case"bottom-right":return Math.PI/4;case"bottom":return Math.PI/2;case"bottom-left":return 3*Math.PI/4;case"left":return Math.PI;case"top-left":return-3*Math.PI/4;case"inside":return Math.atan2(i.y-e.y,i.x-e.x);case"outside":return Math.atan2(e.y-i.y,e.x-i.x);default:return d()*Math.PI*2}}(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case"inside":this.outType="inside";break;case"outside":this.outType="outside"}this.offset=c.origin},this._loadShapeData=(t,e)=>{const i=t.options[this.shape];if(i)return D({close:t.close,fill:t.fill},E(i,this.id,e))},this._engine=t,this.init(e,s,o,n)}destroy(t){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;const e=this.container,i=this.pathGenerator;for(const[,i]of e.plugins)i.particleDestroyed&&i.particleDestroyed(this,t);for(const i of e.particles.updaters)i.particleDestroyed&&i.particleDestroyed(this,t);i&&i.reset(this)}draw(t){const e=this.container;for(const[,i]of e.plugins)e.canvas.drawParticlePlugin(i,this,t);e.canvas.drawParticle(this,t)}getFillColor(){return this._getRollColor(this.bubble.color??K(this.color))}getMass(){return this.getRadius()**2*Math.PI/2}getPosition(){return{x:this.position.x+this.offset.x,y:this.position.y+this.offset.y,z:this.position.z}}getRadius(){return this.bubble.radius??this.size.value}getStrokeColor(){return this._getRollColor(this.bubble.color??K(this.strokeColor))}init(t,e,i,s){const o=this.container,n=this._engine;this.id=t,this.group=s,this.fill=!0,this.pathRotation=!1,this.close=!0,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.rotation=0,this.misplaced=!1,this.retina={maxDistance:{}},this.outType="normal",this.ignoresResizeRatio=!0;const a=o.retina.pixelRatio,r=o.actualOptions,l=ce(this._engine,o,r.particles),c=l.shape.type,{reduceDuplicates:h}=l;this.shape=E(c,this.id,h);const d=l.shape;if(i&&i.shape&&i.shape.type){const t=E(i.shape.type,this.id,h);t&&(this.shape=t,d.load(i.shape))}this.shapeData=this._loadShapeData(d,h),l.load(i);const u=this.shapeData;u&&l.load(u.particles);const p=new yt(n,o);p.load(o.actualOptions.interactivity),p.load(l.interactivity),this.interactivity=p,this.fill=u?.fill??l.shape.fill,this.close=u?.close??l.shape.close,this.options=l;const m=this.options.move.path;this.pathDelay=1e3*y(m.delay),m.generator&&(this.pathGenerator=this._engine.plugins.getPathGenerator(m.generator),this.pathGenerator&&o.addPath(m.generator,this.pathGenerator)&&this.pathGenerator.init(o)),o.retina.initParticle(this),this.size=R(this.options.size,a),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(e),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy(),this.moveDecay=1-f(this.options.move.decay);const g=o.particles;g.needsSort=g.needsSort||g.lastZIndex<this.position.z,g.lastZIndex=this.position.z,this.zIndexFactor=this.position.z/o.zLayers,this.sides=24;let v=o.drawers.get(this.shape);v||(v=this._engine.plugins.getShapeDrawer(this.shape),v&&o.drawers.set(this.shape,v)),v&&v.loadShape&&v.loadShape(this);const w=v?.getSidesCount;w&&(this.sides=w(this)),this.spawning=!1,this.shadowColor=Y(this.options.shadow.color);for(const t of o.particles.updaters)t.init(this);for(const t of o.particles.movers)t.init&&t.init(this);v&&v.particleInit&&v.particleInit(o,this);for(const[,t]of o.plugins)t.particleCreated&&t.particleCreated(this)}isInsideCanvas(){const t=this.getRadius(),e=this.container.canvas.size,i=this.position;return i.x>=-t&&i.y>=-t&&i.y<=e.height+t&&i.x<=e.width+t}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){for(const t of this.container.particles.updaters)t.reset&&t.reset(this)}}class fe{constructor(t,e){this.position=t,this.particle=e}}class me{constructor(t,e){this.position={x:t,y:e}}}class ge extends me{constructor(t,e,i,s){super(t,e),this.size={height:s,width:i}}contains(t){const e=this.size.width,i=this.size.height,s=this.position;return t.x>=s.x&&t.x<=s.x+e&&t.y>=s.y&&t.y<=s.y+i}intersects(t){t instanceof ve&&t.intersects(this);const e=this.size.width,i=this.size.height,s=this.position,o=t.position,n=t instanceof ge?t.size:{width:0,height:0},a=n.width,r=n.height;return o.x<s.x+e&&o.x+a>s.x&&o.y<s.y+i&&o.y+r>s.y}}class ve extends me{constructor(t,e,i){super(t,e),this.radius=i}contains(t){return b(t,this.position)<=this.radius}intersects(t){const e=this.position,i=t.position,s=Math.abs(i.x-e.x),o=Math.abs(i.y-e.y),n=this.radius;if(t instanceof ve)return n+t.radius>Math.sqrt(s**2+o**2);if(t instanceof ge){const{width:e,height:i}=t.size;return Math.pow(s-e,2)+Math.pow(o-i,2)<=n**2||s<=n+e&&o<=n+i||s<=e||o<=i}return!1}}class ye{constructor(t,e){this.rectangle=t,this.capacity=e,this._subdivide=()=>{const{x:t,y:e}=this.rectangle.position,{width:i,height:s}=this.rectangle.size,{capacity:o}=this;for(let n=0;n<4;n++)this._subs.push(new ye(new ge(t+i/2*(n%2),e+s/2*(Math.round(n/2)-n%2),i/2,s/2),o));this._divided=!0},this._points=[],this._divided=!1,this._subs=[]}insert(t){return!!this.rectangle.contains(t.position)&&(this._points.length<this.capacity?(this._points.push(t),!0):(this._divided||this._subdivide(),this._subs.some((e=>e.insert(t)))))}query(t,e,i){const s=i||[];if(!t.intersects(this.rectangle))return[];for(const i of this._points)!t.contains(i.position)&&b(t.position,i.position)>i.particle.getRadius()&&(!e||e(i.particle))||s.push(i.particle);if(this._divided)for(const i of this._subs)i.query(t,e,s);return s}queryCircle(t,e,i){return this.query(new ve(t.x,t.y,e),i)}queryRectangle(t,e,i){return this.query(new ge(t.x,t.y,e.width,e.height),i)}}const we=t=>new ge(-t.width/4,-t.height/4,3*t.width/2,3*t.height/2);class be{constructor(t,e){this._applyDensity=(t,e,i)=>{if(!t.number.density?.enable)return;const s=t.number,o=this._initDensityFactor(s.density),n=s.value,a=s.limit>0?s.limit:n,r=Math.min(n,a)*o+e,l=Math.min(this.count,this.filter((t=>t.group===i)).length);this.limit=s.limit*o,l<r?this.push(Math.abs(r-l),void 0,t,i):l>r&&this.removeQuantity(l-r,i)},this._initDensityFactor=t=>{const e=this._container;if(!e.canvas.element||!t.enable)return 1;const i=e.canvas.element,s=e.retina.pixelRatio;return i.width*i.height/(t.factor*s**2*t.area)},this._pushParticle=(t,e,i,s)=>{try{let o=this.pool.pop();o?o.init(this._nextId,t,e,i):o=new pe(this._engine,this._nextId,this._container,t,e,i);let n=!0;if(s&&(n=s(o)),!n)return;return this._array.push(o),this._zArray.push(o),this._nextId++,this._engine.dispatchEvent("particleAdded",{container:this._container,data:{particle:o}}),o}catch(t){return void z().warning(`${r} adding particle: ${t}`)}},this._removeParticle=(t,e,i)=>{const s=this._array[t];if(!s||s.group!==e)return!1;s.destroy(i);const o=this._zArray.indexOf(s);return this._array.splice(t,1),this._zArray.splice(o,1),this.pool.push(s),this._engine.dispatchEvent("particleRemoved",{container:this._container,data:{particle:s}}),!0},this._engine=t,this._container=e,this._nextId=0,this._array=[],this._zArray=[],this.pool=[],this.limit=0,this.needsSort=!1,this.lastZIndex=0,this._interactionManager=new de(t,e);const i=e.canvas.size;this.quadTree=new ye(we(i),4),this.movers=this._engine.plugins.getMovers(e,!0),this.updaters=this._engine.plugins.getUpdaters(e,!0)}get count(){return this._array.length}addManualParticles(){const t=this._container,e=t.actualOptions;for(const i of e.manualParticles)this.addParticle(i.position?F(i.position,t.canvas.size):void 0,i.options)}addParticle(t,e,i,s){const o=this._container.actualOptions.particles.number.limit;if(o>0){const t=this.count+1-o;t>0&&this.removeQuantity(t)}return this._pushParticle(t,e,i,s)}clear(){this._array=[],this._zArray=[]}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}async draw(t){const e=this._container;e.canvas.clear(),await this.update(t);for(const[,i]of e.plugins)e.canvas.drawPlugin(i,t);for(const e of this._zArray)e.draw(t)}filter(t){return this._array.filter(t)}find(t){return this._array.find(t)}handleClickMode(t){this._interactionManager.handleClickMode(t)}init(){const t=this._container,e=t.actualOptions;this.lastZIndex=0,this.needsSort=!1;let i=!1;this.updaters=this._engine.plugins.getUpdaters(t,!0),this._interactionManager.init();for(const[,e]of t.plugins)if(void 0!==e.particlesInitialization&&(i=e.particlesInitialization()),i)break;this._interactionManager.init();for(const[,e]of t.pathGenerators)e.init(t);if(this.addManualParticles(),!i){for(const t in e.particles.groups){const i=e.particles.groups[t];for(let s=this.count,o=0;o<i.number?.value&&s<e.particles.number.value;s++,o++)this.addParticle(void 0,i,t)}for(let t=this.count;t<e.particles.number.value;t++)this.addParticle()}}push(t,e,i,s){this.pushing=!0;for(let o=0;o<t;o++)this.addParticle(e?.position,i,s);this.pushing=!1}async redraw(){this.clear(),this.init(),await this.draw({value:0,factor:0})}remove(t,e,i){this.removeAt(this._array.indexOf(t),void 0,e,i)}removeAt(t,e=1,i,s){if(t<0||t>this.count)return;let o=0;for(let n=t;o<e&&n<this.count;n++)this._removeParticle(n--,i,s)&&o++}removeQuantity(t,e){this.removeAt(0,t,e)}setDensity(){const t=this._container.actualOptions,e=t.particles.groups;for(const t in e)this._applyDensity(e[t],0,t);this._applyDensity(t.particles,t.manualParticles.length)}async update(t){const e=this._container,i=new Set;this.quadTree=new ye(we(e.canvas.size),4);for(const[,t]of e.pathGenerators)t.update();for(const[,i]of e.plugins)i.update&&i.update(t);for(const s of this._array){const o=e.canvas.resizeFactor;o&&!s.ignoresResizeRatio&&(s.position.x*=o.width,s.position.y*=o.height,s.initialPosition.x*=o.width,s.initialPosition.y*=o.height),s.ignoresResizeRatio=!1,await this._interactionManager.reset(s);for(const[,e]of this._container.plugins){if(s.destroyed)break;e.particleUpdate&&e.particleUpdate(s,t)}for(const e of this.movers)e.isEnabled(s)&&e.move(s,t);s.destroyed?i.add(s):this.quadTree.insert(new fe(s.getPosition(),s))}if(i.size){const t=t=>!i.has(t);this._array=this.filter(t),this._zArray=this._zArray.filter(t),this.pool.push(...i)}await this._interactionManager.externalInteract(t);for(const e of this._array){for(const i of this.updaters)i.update(e,t);e.destroyed||e.spawning||await this._interactionManager.particlesInteract(e,t)}if(delete e.canvas.resizeFactor,this.needsSort){const t=this._zArray;t.sort(((t,e)=>e.position.z-t.position.z||t.id-e.id)),this.lastZIndex=t[t.length-1].position.z,this.needsSort=!1}}}class _e{constructor(t){this.container=t,this.pixelRatio=1,this.reduceFactor=1}init(){const t=this.container,e=t.actualOptions;this.pixelRatio=!e.detectRetina||M()?1:window.devicePixelRatio,this.reduceFactor=1;const i=this.pixelRatio;if(t.canvas.element){const e=t.canvas.element;t.canvas.size.width=e.offsetWidth*i,t.canvas.size.height=e.offsetHeight*i}const s=e.particles,o=s.move;this.attractDistance=f(o.attract.distance)*i,this.maxSpeed=f(o.gravity.maxSpeed)*i,this.sizeAnimationSpeed=f(s.size.animation.speed)*i}initParticle(t){const e=t.options,i=this.pixelRatio,s=e.move,o=s.distance,n=t.retina;n.attractDistance=f(s.attract.distance)*i,n.moveDrift=f(s.drift)*i,n.moveSpeed=f(s.speed)*i,n.sizeAnimationSpeed=f(e.size.animation.speed)*i;const a=n.maxDistance;a.horizontal=void 0!==o.horizontal?o.horizontal*i:void 0,a.vertical=void 0!==o.vertical?o.vertical*i:void 0,n.maxSpeed=f(s.gravity.maxSpeed)*i}}function xe(t){return t&&!t.destroyed}function ze(t,e,...i){const s=new he(t,e);return le(s,...i),s}const Me={generate:t=>t.velocity,init:()=>{},update:()=>{},reset:()=>{}};class Ce{constructor(t,e,i){this.id=e,this._intersectionManager=t=>{if(xe(this)&&this.actualOptions.pauseOnOutsideViewport)for(const e of t)e.target===this.interactivity.element&&(e.isIntersecting?this.play:this.pause)()},this._nextFrame=async t=>{try{if(!this.smooth&&void 0!==this.lastFrameTime&&t<this.lastFrameTime+1e3/this.fpsLimit)return void this.draw(!1);this.lastFrameTime??=t;const e=function(t,e=60,i=!1){return{value:t,factor:i?60/e:60*t/1e3}}(t-this.lastFrameTime,this.fpsLimit,this.smooth);if(this.addLifeTime(e.value),this.lastFrameTime=t,e.value>1e3)return void this.draw(!1);if(await this.particles.draw(e),!this.alive())return void this.destroy();this.getAnimationStatus()&&this.draw(!1)}catch(t){z().error(`${r} in animation loop`,t)}},this._engine=t,this.fpsLimit=120,this.smooth=!1,this._delay=0,this._duration=0,this._lifeTime=0,this._firstStart=!0,this.started=!1,this.destroyed=!1,this._paused=!0,this.lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._sourceOptions=i,this._initialSourceOptions=i,this.retina=new _e(this),this.canvas=new st(this),this.particles=new be(this._engine,this),this.pathGenerators=new Map,this.interactivity={mouse:{clicking:!1,inside:!1}},this.plugins=new Map,this.drawers=new Map,this._options=ze(this._engine,this),this.actualOptions=ze(this._engine,this),this._eventListeners=new nt(this),"undefined"!=typeof IntersectionObserver&&IntersectionObserver&&(this._intersectionObserver=new IntersectionObserver((t=>this._intersectionManager(t)))),this._engine.dispatchEvent("containerBuilt",{container:this})}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(t){if(!xe(this))return;const e=this.interactivity.element;if(!e)return;const i=(e,i,s)=>{if(!xe(this))return;const o=this.retina.pixelRatio,n={x:i.x*o,y:i.y*o},a=this.particles.quadTree.queryCircle(n,s*o);t(e,a)};let s=!1,o=!1;e.addEventListener("click",(t=>{if(!xe(this))return;const e=t,s={x:e.offsetX||e.clientX,y:e.offsetY||e.clientY};i(t,s,1)})),e.addEventListener("touchstart",(()=>{xe(this)&&(s=!0,o=!1)})),e.addEventListener("touchmove",(()=>{xe(this)&&(o=!0)})),e.addEventListener("touchend",(t=>{if(xe(this)){if(s&&!o){const e=t;let s=e.touches[e.touches.length-1];if(!s&&(s=e.changedTouches[e.changedTouches.length-1],!s))return;const o=this.canvas.element,n=o?o.getBoundingClientRect():void 0,a={x:s.clientX-(n?n.left:0),y:s.clientY-(n?n.top:0)};i(t,a,Math.max(s.radiusX,s.radiusY))}s=!1,o=!1}})),e.addEventListener("touchcancel",(()=>{xe(this)&&(s=!1,o=!1)}))}addLifeTime(t){this._lifeTime+=t}addPath(t,e,i=!1){return!(!xe(this)||!i&&this.pathGenerators.has(t)||(this.pathGenerators.set(t,e??Me),0))}alive(){return!this._duration||this._lifeTime<=this._duration}destroy(){if(!xe(this))return;this.stop(),this.particles.destroy(),this.canvas.destroy();for(const[,t]of this.drawers)t.destroy&&t.destroy(this);for(const t of this.drawers.keys())this.drawers.delete(t);this._engine.plugins.destroy(this),this.destroyed=!0;const t=this._engine.dom(),e=t.findIndex((t=>t===this));e>=0&&t.splice(e,1),this._engine.dispatchEvent("containerDestroyed",{container:this})}draw(t){if(!xe(this))return;let e=t;this._drawAnimationFrame=requestAnimationFrame((async t=>{e&&(this.lastFrameTime=void 0,e=!1),await this._nextFrame(t)}))}async export(t,e={}){for(const[,i]of this.plugins){if(!i.export)continue;const s=await i.export(t,e);if(s.supported)return s.blob}z().error(`${r} - Export plugin with type ${t} not found`)}getAnimationStatus(){return!this._paused&&!this.pageHidden&&xe(this)}handleClickMode(t){if(xe(this)){this.particles.handleClickMode(t);for(const[,e]of this.plugins)e.handleClickMode&&e.handleClickMode(t)}}async init(){if(!xe(this))return;const t=this._engine.plugins.getSupportedShapes();for(const e of t){const t=this._engine.plugins.getShapeDrawer(e);t&&this.drawers.set(e,t)}this._options=ze(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=ze(this._engine,this,this._options);const e=this._engine.plugins.getAvailablePlugins(this);for(const[t,i]of e)this.plugins.set(t,i);this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize(),this.zLayers=this.actualOptions.zLayers,this._duration=1e3*f(this.actualOptions.duration),this._delay=1e3*f(this.actualOptions.delay),this._lifeTime=0,this.fpsLimit=this.actualOptions.fpsLimit>0?this.actualOptions.fpsLimit:120,this.smooth=this.actualOptions.smooth;for(const[,t]of this.drawers)t.init&&await t.init(this);for(const[,t]of this.plugins)t.init&&await t.init();this._engine.dispatchEvent("containerInit",{container:this}),this.particles.init(),this.particles.setDensity();for(const[,t]of this.plugins)t.particlesSetup&&t.particlesSetup();this._engine.dispatchEvent("particlesSetup",{container:this})}async loadTheme(t){xe(this)&&(this._currentTheme=t,await this.refresh())}pause(){if(xe(this)&&(void 0!==this._drawAnimationFrame&&(cancelAnimationFrame(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(const[,t]of this.plugins)t.pause&&t.pause();this.pageHidden||(this._paused=!0),this._engine.dispatchEvent("containerPaused",{container:this})}}play(t){if(!xe(this))return;const e=this._paused||t;if(!this._firstStart||this.actualOptions.autoPlay){if(this._paused&&(this._paused=!1),e)for(const[,t]of this.plugins)t.play&&t.play();this._engine.dispatchEvent("containerPlay",{container:this}),this.draw(e||!1)}else this._firstStart=!1}async refresh(){if(xe(this))return this.stop(),this.start()}async reset(){if(xe(this))return this._initialSourceOptions=void 0,this._options=ze(this._engine,this),this.actualOptions=ze(this._engine,this,this._options),this.refresh()}setNoise(t,e,i){xe(this)&&this.setPath(t,e,i)}setPath(t,e,i){if(!t||!xe(this))return;const s={...Me};if(U(t))s.generate=t,e&&(s.init=e),i&&(s.update=i);else{const e=s;s.generate=t.generate||e.generate,s.init=t.init||e.init,s.update=t.update||e.update}this.addPath("default",s,!0)}async start(){xe(this)&&!this.started&&(await this.init(),this.started=!0,await new Promise((t=>{this._delayTimeout=setTimeout((async()=>{this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element);for(const[,t]of this.plugins)t.start&&await t.start();this._engine.dispatchEvent("containerStarted",{container:this}),this.play(),t()}),this._delay)})))}stop(){if(xe(this)&&this.started){this._delayTimeout&&(clearTimeout(this._delayTimeout),delete this._delayTimeout),this._firstStart=!0,this.started=!1,this._eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.unobserve(this.interactivity.element);for(const[,t]of this.plugins)t.stop&&t.stop();for(const t of this.plugins.keys())this.plugins.delete(t);this._sourceOptions=this._options,this._engine.dispatchEvent("containerStopped",{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];const t=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this.responsiveMaxWidth!==t&&(this.responsiveMaxWidth=t,!0)}}class Pe{constructor(){this._listeners=new Map}addEventListener(t,e){this.removeEventListener(t,e);let i=this._listeners.get(t);i||(i=[],this._listeners.set(t,i)),i.push(e)}dispatchEvent(t,e){const i=this._listeners.get(t);i&&i.forEach((t=>t(e)))}hasEventListener(t){return!!this._listeners.get(t)}removeAllEventListeners(t){t?this._listeners.delete(t):this._listeners=new Map}removeEventListener(t,e){const i=this._listeners.get(t);if(!i)return;const s=i.length,o=i.indexOf(e);o<0||(1===s?this._listeners.delete(t):i.splice(o,1))}}function ke(t,e,i,s=!1){let o=e.get(t);return o&&!s||(o=[...i.values()].map((e=>e(t))),e.set(t,o)),o}class Se{constructor(t){this._engine=t,this.plugins=[],this._initializers={interactors:new Map,movers:new Map,updaters:new Map},this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.drawers=new Map,this.pathGenerators=new Map}addInteractor(t,e){this._initializers.interactors.set(t,e)}addParticleMover(t,e){this._initializers.movers.set(t,e)}addParticleUpdater(t,e){this._initializers.updaters.set(t,e)}addPathGenerator(t,e){!this.getPathGenerator(t)&&this.pathGenerators.set(t,e)}addPlugin(t){!this.getPlugin(t.id)&&this.plugins.push(t)}addPreset(t,e,i=!1){(i||!this.getPreset(t))&&this.presets.set(t,e)}addShapeDrawer(t,e){O(t,(t=>{!this.getShapeDrawer(t)&&this.drawers.set(t,e)}))}destroy(t){this.updaters.delete(t),this.movers.delete(t),this.interactors.delete(t)}getAvailablePlugins(t){const e=new Map;for(const i of this.plugins)i.needsPlugin(t.actualOptions)&&e.set(i.id,i.getPlugin(t));return e}getInteractors(t,e=!1){return ke(t,this.interactors,this._initializers.interactors,e)}getMovers(t,e=!1){return ke(t,this.movers,this._initializers.movers,e)}getPathGenerator(t){return this.pathGenerators.get(t)}getPlugin(t){return this.plugins.find((e=>e.id===t))}getPreset(t){return this.presets.get(t)}getShapeDrawer(t){return this.drawers.get(t)}getSupportedShapes(){return this.drawers.keys()}getUpdaters(t,e=!1){return ke(t,this.updaters,this._initializers.updaters,e)}loadOptions(t,e){for(const i of this.plugins)i.loadOptions(t,e)}loadParticlesOptions(t,e,...i){const s=this.updaters.get(t);if(s)for(const t of s)t.loadOptions&&t.loadOptions(e,...i)}}class Te{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new Pe,this._initialized=!1,this.plugins=new Se(this)}get configs(){const t={};for(const[e,i]of this._configs)t[e]=i;return t}get version(){return"2.12.0"}addConfig(t,e){B(t)?e&&(e.name=t,this._configs.set(t,e)):this._configs.set(t.name??"default",t)}addEventListener(t,e){this._eventDispatcher.addEventListener(t,e)}async addInteractor(t,e,i=!0){this.plugins.addInteractor(t,e),await this.refresh(i)}async addMover(t,e,i=!0){this.plugins.addParticleMover(t,e),await this.refresh(i)}async addParticleUpdater(t,e,i=!0){this.plugins.addParticleUpdater(t,e),await this.refresh(i)}async addPathGenerator(t,e,i=!0){this.plugins.addPathGenerator(t,e),await this.refresh(i)}async addPlugin(t,e=!0){this.plugins.addPlugin(t),await this.refresh(e)}async addPreset(t,e,i=!1,s=!0){this.plugins.addPreset(t,e,i),await this.refresh(s)}async addShape(t,e,i,s,o,n=!0){let a,r,l,c,h=n;A(i)?(h=i,r=void 0):r=i,A(s)?(h=s,l=void 0):l=s,A(o)?(h=o,c=void 0):c=o,a=U(e)?{afterEffect:l,destroy:c,draw:e,init:r}:e,this.plugins.addShapeDrawer(t,a),await this.refresh(h)}dispatchEvent(t,e){this._eventDispatcher.dispatchEvent(t,e)}dom(){return this._domArray}domItem(t){const e=this.dom(),i=e[t];if(i&&!i.destroyed)return i;e.splice(t,1)}init(){this._initialized||(this._initialized=!0)}async load(t,e){return this.loadFromArray(t,e)}async loadFromArray(t,e,i){let s;return function(t){return!!((e=t).id||e.element||e.url||e.options);var e}(t)?s=t:(s={},B(t)?s.id=t:s.options=t,V(e)?s.index=e:s.options=e??s.options,s.index=i??s.index),this._loadParams(s)}async loadJSON(t,e,i){let s,o;return V(e)||void 0===e?s=t:(o=t,s=e),this._loadParams({id:o,url:s,index:i})}async refresh(t=!0){t&&this.dom().forEach((t=>t.refresh()))}removeEventListener(t,e){this._eventDispatcher.removeEventListener(t,e)}async set(t,e,i,s){const o={index:s};return B(t)?o.id=t:o.element=t,e instanceof HTMLElement?o.element=e:o.options=e,V(i)?o.index=i:o.options=i??o.options,this._loadParams(o)}async setJSON(t,e,i,s){const o={};return t instanceof HTMLElement?(o.element=t,o.url=e,o.index=i):(o.id=t,o.element=e,o.url=i,o.index=s),this._loadParams(o)}setOnClickHandler(t){const e=this.dom();if(!e.length)throw new Error(`${r} can only set click handlers after calling tsParticles.load()`);for(const i of e)i.addClickHandler(t)}async _loadParams(t){const e=t.id??`tsparticles${Math.floor(1e4*d())}`,{index:i,url:o}=t,n=o?await async function(t){const e=E(t.url,t.index);if(!e)return t.fallback;const i=await fetch(e);return i.ok?i.json():(z().error(`${r} ${i.status} while retrieving config file`),t.fallback)}({fallback:t.options,url:o,index:i}):t.options;let a=t.element??document.getElementById(e);a||(a=document.createElement("div"),a.id=e,document.body.append(a));const l=E(n,i),c=this.dom(),h=c.findIndex((t=>t.id===e));if(h>=0){const t=this.domItem(h);t&&!t.destroyed&&(t.destroy(),c.splice(h,1))}let u;if("canvas"===a.tagName.toLowerCase())u=a,u.dataset[s]="false";else{const t=a.getElementsByTagName("canvas");t.length?(u=t[0],u.dataset[s]="false"):(u=document.createElement("canvas"),u.dataset[s]="true",a.appendChild(u))}u.style.width||(u.style.width="100%"),u.style.height||(u.style.height="100%");const p=new Ce(this,e,l);return h>=0?c.splice(h,0,p):c.push(p),p.canvas.loadCanvas(u),await p.start(),p}}class Ie{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(t){const e=t.value.hsl??t.value;if(void 0!==e.h&&void 0!==e.s&&void 0!==e.l)return Z(e)}handleRangeColor(t){const e=t.value.hsl??t.value;if(void 0!==e.h&&void 0!==e.l)return Z({h:f(e.h),l:f(e.l),s:f(e.s)})}parseString(t){if(!t.startsWith("hsl"))return;const e=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.%]+)\s*)?\)/i.exec(t);return e?function(t){const e=Z(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}({a:e.length>4?_(e[5]):1,h:parseInt(e[1],10),l:parseInt(e[3],10),s:parseInt(e[2],10)}):void 0}}class De{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(t){const e=t.value.rgb??t.value;if(void 0!==e.r)return e}handleRangeColor(t){const e=t.value.rgb??t.value;if(void 0!==e.r)return{r:f(e.r),g:f(e.g),b:f(e.b)}}parseString(t){if(!t.startsWith(this.stringPrefix))return;const e=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.%]+)\s*)?\)/i.exec(t);return e?{a:e.length>4?_(e[5]):1,b:parseInt(e[3],10),g:parseInt(e[2],10),r:parseInt(e[1],10)}:void 0}}const Oe=function(){const t=new De,e=new Ie;H(t),H(e);const i=new Te;return i.init(),i}();M()||(window.tsParticles=Oe);class Ee{constructor(){this.angle=90,this.count=50,this.spread=45,this.startVelocity=45,this.decay=.9,this.gravity=1,this.drift=0,this.ticks=200,this.position={x:50,y:50},this.colors=["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],this.shapes=["square","circle"],this.scalar=1,this.zIndex=100,this.disableForReducedMotion=!0,this.shapeOptions={}}get origin(){return{x:this.position.x/100,y:this.position.y/100}}set origin(t){this.position.x=100*t.x,this.position.y=100*t.y}get particleCount(){return this.count}set particleCount(t){this.count=t}load(t){if(!t)return;void 0!==t.angle&&(this.angle=t.angle);const e=t.count??t.particleCount;void 0!==e&&(this.count=e),void 0!==t.spread&&(this.spread=t.spread),void 0!==t.startVelocity&&(this.startVelocity=t.startVelocity),void 0!==t.decay&&(this.decay=t.decay),void 0!==t.gravity&&(this.gravity=t.gravity),void 0!==t.drift&&(this.drift=t.drift),void 0!==t.ticks&&(this.ticks=t.ticks);const i=t.origin;i&&!t.position&&(t.position={x:void 0!==i.x?100*i.x:void 0,y:void 0!==i.y?100*i.y:void 0});const s=t.position;s&&(void 0!==s.x&&(this.position.x=s.x),void 0!==s.y&&(this.position.y=s.y)),void 0!==t.colors&&(q(t.colors)?this.colors=[...t.colors]:this.colors=t.colors);const o=t.shapeOptions;if(void 0!==o)for(const t in o){const e=o[t];e&&(this.shapeOptions[t]=D(this.shapeOptions[t]??{},e))}void 0!==t.shapes&&(q(t.shapes)?this.shapes=[...t.shapes]:this.shapes=t.shapes),void 0!==t.scalar&&(this.scalar=t.scalar),void 0!==t.zIndex&&(this.zIndex=t.zIndex),void 0!==t.disableForReducedMotion&&(this.disableForReducedMotion=t.disableForReducedMotion)}}class Re{constructor(){this._initSpin=t=>{const e=t.container,i=t.options.move.spin;if(!i.enable)return;const s=i.position??{x:50,y:50},o={x:s.x/100*e.canvas.size.width,y:s.y/100*e.canvas.size.height},n=b(t.getPosition(),o),a=f(i.acceleration);t.retina.spinAcceleration=a*e.retina.pixelRatio,t.spin={center:o,direction:t.velocity.x>=0?"clockwise":"counter-clockwise",angle:t.velocity.angle,radius:n,acceleration:t.retina.spinAcceleration}}}init(t){const e=t.options.move.gravity;t.gravity={enable:e.enable,acceleration:f(e.acceleration),inverse:e.inverse},this._initSpin(t)}isEnabled(t){return!t.destroyed&&t.options.move.enable}move(t,e){const i=t.options,s=i.move;if(!s.enable)return;const o=t.container,n=o.retina.pixelRatio,a=function(t){return t.slow.inRange?t.slow.factor:1}(t),r=(t.retina.moveSpeed??=f(s.speed)*n)*o.retina.reduceFactor,l=t.retina.moveDrift??=f(t.options.move.drift)*n,c=g(i.size.value)*n,h=r*(s.size?t.getRadius()/c:1)*a*(e.factor||1)/2,p=t.retina.maxSpeed??o.retina.maxSpeed;s.spin.enable?function(t,e){const i=t.container;if(!t.spin)return;const s={x:"clockwise"===t.spin.direction?Math.cos:Math.sin,y:"clockwise"===t.spin.direction?Math.sin:Math.cos};t.position.x=t.spin.center.x+t.spin.radius*s.x(t.spin.angle),t.position.y=t.spin.center.y+t.spin.radius*s.y(t.spin.angle),t.spin.radius+=t.spin.acceleration;const o=Math.max(i.canvas.size.width,i.canvas.size.height);t.spin.radius>o/2?(t.spin.radius=o/2,t.spin.acceleration*=-1):t.spin.radius<0&&(t.spin.radius=0,t.spin.acceleration*=-1),t.spin.angle+=e/100*(1-t.spin.radius/o)}(t,h):function(t,e,i,s,o,n){!function(t,e){const i=t.options.move.path;if(!i.enable)return;if(t.lastPathTime<=t.pathDelay)return void(t.lastPathTime+=e.value);const s=t.pathGenerator?.generate(t,e);s&&t.velocity.addTo(s),i.clamp&&(t.velocity.x=u(t.velocity.x,-1,1),t.velocity.y=u(t.velocity.y,-1,1)),t.lastPathTime-=t.pathDelay}(t,n);const a=t.gravity,r=a?.enable&&a.inverse?-1:1;o&&i&&(t.velocity.x+=o*n.factor/(60*i)),a?.enable&&i&&(t.velocity.y+=r*(a.acceleration*n.factor)/(60*i));const l=t.moveDecay;t.velocity.multTo(l);const c=t.velocity.mult(i);a?.enable&&s>0&&(!a.inverse&&c.y>=0&&c.y>=s||a.inverse&&c.y<=0&&c.y<=-s)&&(c.y=r*s,i&&(t.velocity.y=c.y/i));const h=t.options.zIndex,d=(1-t.zIndexFactor)**h.velocityRate;c.multTo(d);const{position:p}=t;p.addTo(c),e.vibrate&&(p.x+=Math.sin(p.x*Math.cos(p.y)),p.y+=Math.cos(p.y*Math.sin(p.x)))}(t,s,h,p,l,e),function(t){const e=t.initialPosition,{dx:i,dy:s}=w(e,t.position),o=Math.abs(i),n=Math.abs(s),{maxDistance:a}=t.retina,r=a.horizontal,l=a.vertical;if(r||l)if((r&&o>=r||l&&n>=l)&&!t.misplaced)t.misplaced=!!r&&o>r||!!l&&n>l,r&&(t.velocity.x=t.velocity.y/2-t.velocity.x),l&&(t.velocity.y=t.velocity.x/2-t.velocity.y);else if((!r||o<r)&&(!l||n<l)&&t.misplaced)t.misplaced=!1;else if(t.misplaced){const i=t.position,s=t.velocity;r&&(i.x<e.x&&s.x<0||i.x>e.x&&s.x>0)&&(s.x*=-d()),l&&(i.y<e.y&&s.y<0||i.y>e.y&&s.y>0)&&(s.y*=-d())}}(t)}}class Le{draw(t,e,i){e.circleRange||(e.circleRange={min:0,max:2*Math.PI});const s=e.circleRange;t.arc(0,0,i,s.min,s.max,!1)}getSidesCount(){return 12}particleInit(t,e){const i=e.shapeData,s=i?.angle??{max:360,min:0};e.circleRange=$(s)?{min:s.min*Math.PI/180,max:s.max*Math.PI/180}:{min:0,max:s*Math.PI/180}}}function Fe(t,e,i,s,o){if(!e||!i.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;if(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=t.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0))return;const n=p(i.offset),a=(e.velocity??0)*t.factor+3.6*n,r=e.decay??1;o&&"increasing"!==e.status?(e.value-=a,e.value<0&&(e.loops||(e.loops=0),e.loops++,e.status="increasing",e.value+=e.value)):(e.value+=a,e.value>s&&(e.loops||(e.loops=0),e.loops++,o&&(e.status="decreasing",e.value-=e.value%s))),e.velocity&&1!==r&&(e.velocity*=r),e.value>s&&(e.value%=s)}class Ae{constructor(t){this.container=t}init(t){const e=j(t.options.color,t.id,t.options.reduceDuplicates);e&&(t.color=function(t,e,i){const s={h:{enable:!1,value:t.h},s:{enable:!1,value:t.s},l:{enable:!1,value:t.l}};return e&&(tt(s.h,e.h,i),tt(s.s,e.s,i),tt(s.l,e.l,i)),s}(e,t.options.color.animation,this.container.retina.reduceFactor))}isEnabled(t){const{h:e,s:i,l:s}=t.options.color.animation,{color:o}=t;return!t.destroyed&&!t.spawning&&(void 0!==o?.h.value&&e.enable||void 0!==o?.s.value&&i.enable||void 0!==o?.l.value&&s.enable)}update(t,e){!function(t,e){const{h:i,s,l:o}=t.options.color.animation,{color:n}=t;if(!n)return;const{h:a,s:r,l}=n;a&&Fe(e,a,i,360,!1),r&&Fe(e,r,s,100,!0),l&&Fe(e,l,o,100,!0)}(t,e)}}class Be{constructor(t){this.container=t}init(t){const e=t.options.opacity;t.opacity=R(e,1);const i=e.animation;i.enable&&(t.opacity.velocity=f(i.speed)/100*this.container.retina.reduceFactor,i.sync||(t.opacity.velocity*=d()))}isEnabled(t){return!t.destroyed&&!t.spawning&&!!t.opacity&&t.opacity.enable&&((t.opacity.maxLoops??0)<=0||(t.opacity.maxLoops??0)>0&&(t.opacity.loops??0)<(t.opacity.maxLoops??0))}reset(t){t.opacity&&(t.opacity.time=0,t.opacity.loops=0)}update(t,e){this.isEnabled(t)&&function(t,e){const i=t.opacity;if(t.destroyed||!i?.enable||(i.maxLoops??0)>0&&(i.loops??0)>(i.maxLoops??0))return;const s=i.min,o=i.max,n=i.decay??1;if(i.time||(i.time=0),(i.delayTime??0)>0&&i.time<(i.delayTime??0)&&(i.time+=e.value),!((i.delayTime??0)>0&&i.time<(i.delayTime??0))){switch(i.status){case"increasing":i.value>=o?(i.status="decreasing",i.loops||(i.loops=0),i.loops++):i.value+=(i.velocity??0)*e.factor;break;case"decreasing":i.value<=s?(i.status="increasing",i.loops||(i.loops=0),i.loops++):i.value-=(i.velocity??0)*e.factor}i.velocity&&1!==i.decay&&(i.velocity*=n),function(t,e,i,s){switch(t.options.opacity.animation.destroy){case"max":e>=s&&t.destroy();break;case"min":e<=i&&t.destroy()}}(t,i.value,s,o),t.destroyed||(i.value=u(i.value,s,o))}}(t,e)}}class Ve{constructor(t){this.container=t,this.modes=["bounce","bounce-vertical","bounce-horizontal","bounceVertical","bounceHorizontal","split"]}update(t,e,i,s){if(!this.modes.includes(s))return;const o=this.container;let n=!1;for(const[,s]of o.plugins)if(void 0!==s.particleBounce&&(n=s.particleBounce(t,i,e)),n)break;if(n)return;const a=t.getPosition(),r=t.offset,l=t.getRadius(),c=I(a,l),h=o.canvas.size;!function(t){if("bounce"!==t.outMode&&"bounce-horizontal"!==t.outMode&&"bounceHorizontal"!==t.outMode&&"split"!==t.outMode||"left"!==t.direction&&"right"!==t.direction)return;t.bounds.right<0&&"left"===t.direction?t.particle.position.x=t.size+t.offset.x:t.bounds.left>t.canvasSize.width&&"right"===t.direction&&(t.particle.position.x=t.canvasSize.width-t.size-t.offset.x);const e=t.particle.velocity.x;let i=!1;if("right"===t.direction&&t.bounds.right>=t.canvasSize.width&&e>0||"left"===t.direction&&t.bounds.left<=0&&e<0){const e=y(t.particle.options.bounce.horizontal);t.particle.velocity.x*=-e,i=!0}if(!i)return;const s=t.offset.x+t.size;t.bounds.right>=t.canvasSize.width&&"right"===t.direction?t.particle.position.x=t.canvasSize.width-s:t.bounds.left<=0&&"left"===t.direction&&(t.particle.position.x=s),"split"===t.outMode&&t.particle.destroy()}({particle:t,outMode:s,direction:e,bounds:c,canvasSize:h,offset:r,size:l}),function(t){if("bounce"!==t.outMode&&"bounce-vertical"!==t.outMode&&"bounceVertical"!==t.outMode&&"split"!==t.outMode||"bottom"!==t.direction&&"top"!==t.direction)return;t.bounds.bottom<0&&"top"===t.direction?t.particle.position.y=t.size+t.offset.y:t.bounds.top>t.canvasSize.height&&"bottom"===t.direction&&(t.particle.position.y=t.canvasSize.height-t.size-t.offset.y);const e=t.particle.velocity.y;let i=!1;if("bottom"===t.direction&&t.bounds.bottom>=t.canvasSize.height&&e>0||"top"===t.direction&&t.bounds.top<=0&&e<0){const e=y(t.particle.options.bounce.vertical);t.particle.velocity.y*=-e,i=!0}if(!i)return;const s=t.offset.y+t.size;t.bounds.bottom>=t.canvasSize.height&&"bottom"===t.direction?t.particle.position.y=t.canvasSize.height-s:t.bounds.top<=0&&"top"===t.direction&&(t.particle.position.y=s),"split"===t.outMode&&t.particle.destroy()}({particle:t,outMode:s,direction:e,bounds:c,canvasSize:h,offset:r,size:l})}}class Ue{constructor(t){this.container=t,this.modes=["destroy"]}update(t,e,i,s){if(!this.modes.includes(s))return;const o=this.container;switch(t.outType){case"normal":case"outside":if(T(t.position,o.canvas.size,c.origin,t.getRadius(),e))return;break;case"inside":{const{dx:e,dy:i}=w(t.position,t.moveCenter),{x:s,y:o}=t.velocity;if(s<0&&e>t.moveCenter.radius||o<0&&i>t.moveCenter.radius||s>=0&&e<-t.moveCenter.radius||o>=0&&i<-t.moveCenter.radius)return;break}}o.particles.remove(t,void 0,!0)}}class $e{constructor(t){this.container=t,this.modes=["none"]}update(t,e,i,s){if(!this.modes.includes(s))return;if(t.options.move.distance.horizontal&&("left"===e||"right"===e)||t.options.move.distance.vertical&&("top"===e||"bottom"===e))return;const o=t.options.move.gravity,n=this.container,a=n.canvas.size,r=t.getRadius();if(o.enable){const i=t.position;(!o.inverse&&i.y>a.height+r&&"bottom"===e||o.inverse&&i.y<-r&&"top"===e)&&n.particles.remove(t)}else{if(t.velocity.y>0&&t.position.y<=a.height+r||t.velocity.y<0&&t.position.y>=-r||t.velocity.x>0&&t.position.x<=a.width+r||t.velocity.x<0&&t.position.x>=-r)return;T(t.position,n.canvas.size,c.origin,r,e)||n.particles.remove(t)}}}class qe{constructor(t){this.container=t,this.modes=["out"]}update(t,e,i,s){if(!this.modes.includes(s))return;const o=this.container;switch(t.outType){case"inside":{const{x:e,y:i}=t.velocity,s=c.origin;s.length=t.moveCenter.radius,s.angle=t.velocity.angle+Math.PI,s.addTo(c.create(t.moveCenter));const{dx:n,dy:a}=w(t.position,s);if(e<=0&&n>=0||i<=0&&a>=0||e>=0&&n<=0||i>=0&&a<=0)return;t.position.x=Math.floor(p({min:0,max:o.canvas.size.width})),t.position.y=Math.floor(p({min:0,max:o.canvas.size.height}));const{dx:r,dy:l}=w(t.position,t.moveCenter);t.direction=Math.atan2(-l,-r),t.velocity.angle=t.direction;break}default:if(T(t.position,o.canvas.size,c.origin,t.getRadius(),e))return;switch(t.outType){case"outside":{t.position.x=Math.floor(p({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.x,t.position.y=Math.floor(p({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.y;const{dx:e,dy:i}=w(t.position,t.moveCenter);t.moveCenter.radius&&(t.direction=Math.atan2(i,e),t.velocity.angle=t.direction);break}case"normal":{const i=t.options.move.warp,s=o.canvas.size,n={bottom:s.height+t.getRadius()+t.offset.y,left:-t.getRadius()-t.offset.x,right:s.width+t.getRadius()+t.offset.x,top:-t.getRadius()-t.offset.y},a=t.getRadius(),r=I(t.position,a);"right"===e&&r.left>s.width+t.offset.x?(t.position.x=n.left,t.initialPosition.x=t.position.x,i||(t.position.y=d()*s.height,t.initialPosition.y=t.position.y)):"left"===e&&r.right<-t.offset.x&&(t.position.x=n.right,t.initialPosition.x=t.position.x,i||(t.position.y=d()*s.height,t.initialPosition.y=t.position.y)),"bottom"===e&&r.top>s.height+t.offset.y?(i||(t.position.x=d()*s.width,t.initialPosition.x=t.position.x),t.position.y=n.top,t.initialPosition.y=t.position.y):"top"===e&&r.bottom<-t.offset.y&&(i||(t.position.x=d()*s.width,t.initialPosition.x=t.position.x),t.position.y=n.bottom,t.initialPosition.y=t.position.y);break}}}}}class We{constructor(t){this.container=t,this._updateOutMode=(t,e,i,s)=>{for(const o of this.updaters)o.update(t,s,e,i)},this.updaters=[new Ve(t),new Ue(t),new qe(t),new $e(t)]}init(){}isEnabled(t){return!t.destroyed&&!t.spawning}update(t,e){const i=t.options.move.outModes;this._updateOutMode(t,e,i.bottom??i.default,"bottom"),this._updateOutMode(t,e,i.left??i.default,"left"),this._updateOutMode(t,e,i.right??i.default,"right"),this._updateOutMode(t,e,i.top??i.default,"top")}}class Ge{init(t){const e=t.container,i=t.options.size.animation;i.enable&&(t.size.velocity=(t.retina.sizeAnimationSpeed??e.retina.sizeAnimationSpeed)/100*e.retina.reduceFactor,i.sync||(t.size.velocity*=d()))}isEnabled(t){return!t.destroyed&&!t.spawning&&t.size.enable&&((t.size.maxLoops??0)<=0||(t.size.maxLoops??0)>0&&(t.size.loops??0)<(t.size.maxLoops??0))}reset(t){t.size.loops=0}update(t,e){this.isEnabled(t)&&function(t,e){const i=t.size;if(t.destroyed||!i||!i.enable||(i.maxLoops??0)>0&&(i.loops??0)>(i.maxLoops??0))return;const s=(i.velocity??0)*e.factor,o=i.min,n=i.max,a=i.decay??1;if(i.time||(i.time=0),(i.delayTime??0)>0&&i.time<(i.delayTime??0)&&(i.time+=e.value),!((i.delayTime??0)>0&&i.time<(i.delayTime??0))){switch(i.status){case"increasing":i.value>=n?(i.status="decreasing",i.loops||(i.loops=0),i.loops++):i.value+=s;break;case"decreasing":i.value<=o?(i.status="increasing",i.loops||(i.loops=0),i.loops++):i.value-=s}i.velocity&&1!==a&&(i.velocity*=a),function(t,e,i,s){switch(t.options.size.animation.destroy){case"max":e>=s&&t.destroy();break;case"min":e<=i&&t.destroy()}}(t,i.value,o,n),t.destroyed||(i.value=u(i.value,o,n))}}(t,e)}}function He(t,e,i){if(i.segments.length&&i.segments[0].values.length){t.moveTo(i.segments[0].values[0].x*e,i.segments[0].values[0].y*e);for(let s=0;s<i.segments.length;s++){const o=i.segments[s];t.bezierCurveTo(o.values[1].x*e,o.values[1].y*e,o.values[2].x*e,o.values[2].y*e,o.values[3].x*e,o.values[3].y*e)}for(let s=i.segments.length-1;s>=0;s--){const o=i.segments[s];t.bezierCurveTo(-o.values[2].x*e,o.values[2].y*e,-o.values[1].x*e,o.values[1].y*e,-o.values[0].x*e,o.values[0].y*e)}}}const Xe=.5,Ye={heart:{segments:[{values:[{x:0,y:Xe},{x:0,y:Xe},{x:Xe,y:0},{x:Xe,y:-Xe/2}]},{values:[{x:Xe,y:-Xe/2},{x:Xe,y:-Xe/2},{x:Xe,y:-Xe},{x:Xe/2,y:-Xe}]},{values:[{x:Xe/2,y:-Xe},{x:Xe/2,y:-Xe},{x:0,y:-Xe},{x:0,y:-Xe/2}]}]},diamond:{segments:[{values:[{x:0,y:Xe},{x:0,y:Xe},{x:.375,y:0},{x:.375,y:0}]},{values:[{x:.375,y:0},{x:.375,y:0},{x:0,y:-Xe},{x:0,y:-Xe}]}]},club:{segments:[{values:[{x:0,y:-Xe},{x:0,y:-Xe},{x:Xe/2,y:-Xe},{x:Xe/2,y:-Xe/2}]},{values:[{x:Xe/2,y:-Xe/2},{x:Xe/2,y:-Xe/2},{x:Xe,y:-Xe/2},{x:Xe,y:0}]},{values:[{x:Xe,y:0},{x:Xe,y:0},{x:Xe,y:Xe/2},{x:Xe/2,y:Xe/2}]},{values:[{x:Xe/2,y:Xe/2},{x:Xe/2,y:Xe/2},{x:Xe/8,y:Xe/2},{x:Xe/8,y:Xe/8}]},{values:[{x:Xe/8,y:Xe/8},{x:Xe/8,y:Xe/2},{x:Xe/2,y:Xe},{x:Xe/2,y:Xe}]},{values:[{x:Xe/2,y:Xe},{x:Xe/2,y:Xe},{x:0,y:Xe},{x:0,y:Xe}]}]},spade:{segments:[{values:[{x:0,y:-Xe},{x:0,y:-Xe},{x:Xe,y:-Xe/2},{x:Xe,y:0}]},{values:[{x:Xe,y:0},{x:Xe,y:0},{x:Xe,y:Xe/2},{x:Xe/2,y:Xe/2}]},{values:[{x:Xe/2,y:Xe/2},{x:Xe/2,y:Xe/2},{x:Xe/8,y:Xe/2},{x:Xe/8,y:Xe/8}]},{values:[{x:Xe/8,y:Xe/8},{x:Xe/8,y:Xe/2},{x:Xe/2,y:Xe},{x:Xe/2,y:Xe}]},{values:[{x:Xe/2,y:Xe},{x:Xe/2,y:Xe},{x:0,y:Xe},{x:0,y:Xe}]}]}};class Ne{draw(t,e,i){He(t,i,Ye.spade)}}class je{draw(t,e,i){He(t,i,Ye.heart)}}class Ze{draw(t,e,i){He(t,i,Ye.diamond)}}class Qe{draw(t,e,i){He(t,i,Ye.club)}}class Je{randomPosition(t,e,i){const[s,o]=[e.width/2,e.height/2],n=((t,e)=>{const i=d()/4,s=Math.atan(e/t*Math.tan(2*Math.PI*i)),o=d();return o<.25?s:o<.5?Math.PI-s:o<.75?Math.PI+s:-s})(s,o),a=(h=n,(l=s)*(c=o)/Math.sqrt((c*Math.cos(h))**2+(l*Math.sin(h))**2)),r=i?a*Math.sqrt(d()):a;var l,c,h;return{x:t.x+r*Math.cos(n),y:t.y+r*Math.sin(n)}}}class Ke{constructor(){this.wait=!1}load(t){t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.delay&&(this.delay=v(t.delay)),void 0!==t.duration&&(this.duration=v(t.duration)),void 0!==t.wait&&(this.wait=t.wait))}}class ti{constructor(){this.quantity=1,this.delay=.1}load(t){void 0!==t&&(void 0!==t.quantity&&(this.quantity=v(t.quantity)),void 0!==t.delay&&(this.delay=v(t.delay)))}}class ei{constructor(){this.mode="percent",this.height=0,this.width=0}load(t){void 0!==t&&(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.height&&(this.height=t.height),void 0!==t.width&&(this.width=t.width))}}class ii{constructor(){this.autoPlay=!0,this.fill=!0,this.life=new Ke,this.rate=new ti,this.shape="square",this.startCount=0}load(t){t&&(void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.size&&(this.size||(this.size=new ei),this.size.load(t.size)),void 0!==t.direction&&(this.direction=t.direction),this.domId=t.domId,void 0!==t.fill&&(this.fill=t.fill),this.life.load(t.life),this.name=t.name,this.particles=O(t.particles,(t=>D({},t))),this.rate.load(t.rate),void 0!==t.shape&&(this.shape=t.shape),void 0!==t.position&&(this.position={},void 0!==t.position.x&&(this.position.x=v(t.position.x)),void 0!==t.position.y&&(this.position.y=v(t.position.y))),void 0!==t.spawnColor&&(void 0===this.spawnColor&&(this.spawnColor=new Ct),this.spawnColor.load(t.spawnColor)),void 0!==t.startCount&&(this.startCount=t.startCount))}}class si{constructor(t,e,i,s,o){this.emitters=e,this.container=i,this._calcPosition=()=>function(t){const e={x:void 0!==t.position?.x?f(t.position.x):void 0,y:void 0!==t.position?.y?f(t.position.y):void 0};return function(t){return{x:(t.position?.x??100*d())*t.size.width/100,y:(t.position?.y??100*d())*t.size.height/100}}({size:t.size,position:e})}({size:this.container.canvas.size,position:this.options.position}),this._destroy=()=>{this.emitters.removeEmitter(this),this._engine.dispatchEvent("emitterDestroyed",{container:this.container,data:{emitter:this}})},this._emit=()=>{if(this._paused)return;const t=f(this.options.rate.quantity);this._emitParticles(t)},this._emitParticles=t=>{const e=this.getPosition(),i=this.getSize(),s=E(this._particlesOptions);for(let o=0;o<t;o++){const t=D({},s);if(this.spawnColor){const e=this.options.spawnColor?.animation;e&&(this.spawnColor.h=this._setColorAnimation(e.h,this.spawnColor.h,360),this.spawnColor.s=this._setColorAnimation(e.s,this.spawnColor.s,100),this.spawnColor.l=this._setColorAnimation(e.l,this.spawnColor.l,100)),t.color?t.color.value=this.spawnColor:t.color={value:this.spawnColor}}if(!e)return;const o=this._shape?.randomPosition(e,i,this.fill)??e;this.container.particles.addParticle(o,t)}},this._prepareToDie=()=>{if(this._paused)return;const t=void 0!==this.options.life?.duration?f(this.options.life.duration):void 0;this.container.retina.reduceFactor&&(this._lifeCount>0||this._immortal)&&void 0!==t&&t>0&&(this._duration=1e3*t)},this._setColorAnimation=(t,e,i)=>{const s=this.container;if(!t.enable)return e;const o=p(t.offset),n=1e3*f(this.options.rate.delay)/s.retina.reduceFactor;return(e+f(t.speed??0)*s.fpsLimit/n+3.6*o)%i},this._engine=t,this._currentDuration=0,this._currentEmitDelay=0,this._currentSpawnDelay=0,this._initialPosition=o,s instanceof ii?this.options=s:(this.options=new ii,this.options.load(s)),this._spawnDelay=1e3*f(this.options.life.delay??0)/this.container.retina.reduceFactor,this.position=this._initialPosition??this._calcPosition(),this.name=this.options.name,this._shape=this._engine.emitterShapeManager?.getShape(this.options.shape),this.fill=this.options.fill,this._firstSpawn=!this.options.life.wait,this._startParticlesAdded=!1;let n=D({},this.options.particles);n??={},n.move??={},n.move.direction??=this.options.direction,this.options.spawnColor&&(this.spawnColor=j(this.options.spawnColor)),this._paused=!this.options.autoPlay,this._particlesOptions=n,this.size=this.options.size??(()=>{const t=new ei;return t.load({height:0,mode:"percent",width:0}),t})(),this._lifeCount=this.options.life.count??-1,this._immortal=this._lifeCount<=0,this._engine.dispatchEvent("emitterCreated",{container:i,data:{emitter:this}}),this.play()}externalPause(){this._paused=!0,this.pause()}externalPlay(){this._paused=!1,this.play()}getPosition(){if(this.options.domId){const t=this.container,e=document.getElementById(this.options.domId);if(e){const i=e.getBoundingClientRect();return{x:(i.x+i.width/2)*t.retina.pixelRatio,y:(i.y+i.height/2)*t.retina.pixelRatio}}}return this.position}getSize(){const t=this.container;if(this.options.domId){const e=document.getElementById(this.options.domId);if(e){const i=e.getBoundingClientRect();return{width:i.width*t.retina.pixelRatio,height:i.height*t.retina.pixelRatio}}}return L(this.size,t.canvas.size)}pause(){this._paused||delete this._emitDelay}play(){if(!this._paused&&this.container.retina.reduceFactor&&(this._lifeCount>0||this._immortal||!this.options.life.count)&&(this._firstSpawn||this._currentSpawnDelay>=(this._spawnDelay??0))){if(void 0===this._emitDelay){const t=f(this.options.rate.delay);this._emitDelay=1e3*t/this.container.retina.reduceFactor}(this._lifeCount>0||this._immortal)&&this._prepareToDie()}}resize(){const t=this._initialPosition;this.position=t&&T(t,this.container.canvas.size,c.origin)?t:this._calcPosition()}update(t){this._paused||(this._firstSpawn&&(this._firstSpawn=!1,this._currentSpawnDelay=this._spawnDelay??0,this._currentEmitDelay=this._emitDelay??0),this._startParticlesAdded||(this._startParticlesAdded=!0,this._emitParticles(this.options.startCount)),void 0!==this._duration&&(this._currentDuration+=t.value,this._currentDuration>=this._duration&&(this.pause(),void 0!==this._spawnDelay&&delete this._spawnDelay,this._immortal||this._lifeCount--,this._lifeCount>0||this._immortal?(this.position=this._calcPosition(),this._spawnDelay=1e3*f(this.options.life.delay??0)/this.container.retina.reduceFactor):this._destroy(),this._currentDuration-=this._duration,delete this._duration)),void 0!==this._spawnDelay&&(this._currentSpawnDelay+=t.value,this._currentSpawnDelay>=this._spawnDelay&&(this._engine.dispatchEvent("emitterPlay",{container:this.container}),this.play(),this._currentSpawnDelay-=this._currentSpawnDelay,delete this._spawnDelay)),void 0!==this._emitDelay&&(this._currentEmitDelay+=t.value,this._currentEmitDelay>=this._emitDelay&&(this._emit(),this._currentEmitDelay-=this._emitDelay)))}}class oi{constructor(t,e){this.container=e,this._engine=t,this.array=[],this.emitters=[],this.interactivityEmitters={random:{count:1,enable:!1},value:[]},e.getEmitter=t=>void 0===t||V(t)?this.array[t||0]:this.array.find((e=>e.name===t)),e.addEmitter=(t,e)=>this.addEmitter(t,e),e.removeEmitter=t=>{const i=e.getEmitter(t);i&&this.removeEmitter(i)},e.playEmitter=t=>{const i=e.getEmitter(t);i&&i.externalPlay()},e.pauseEmitter=t=>{const i=e.getEmitter(t);i&&i.externalPause()}}addEmitter(t,e){const i=new ii;i.load(t);const s=new si(this._engine,this,this.container,i,e);return this.array.push(s),s}handleClickMode(t){const e=this.emitters,i=this.interactivityEmitters;if("emitter"!==t)return;let s;if(i&&q(i.value))if(i.value.length>0&&i.random.enable){s=[];const t=[];for(let e=0;e<i.random.count;e++){const o=k(i.value);t.includes(o)&&t.length<i.value.length?e--:(t.push(o),s.push(S(i.value,o)))}}else s=i.value;else s=i?.value;const o=s??e,n=this.container.interactivity.mouse.clickPosition;O(o,(t=>{this.addEmitter(t,n)}))}async init(){if(this.emitters=this.container.actualOptions.emitters,this.interactivityEmitters=this.container.actualOptions.interactivity.modes.emitters,this.emitters)if(q(this.emitters))for(const t of this.emitters)this.addEmitter(t);else this.addEmitter(this.emitters)}pause(){for(const t of this.array)t.pause()}play(){for(const t of this.array)t.play()}removeEmitter(t){const e=this.array.indexOf(t);e>=0&&this.array.splice(e,1)}resize(){for(const t of this.array)t.resize()}stop(){this.array=[]}update(t){for(const e of this.array)e.update(t)}}const ni=new Map;class ai{constructor(t){this._engine=t}addShape(t,e){this.getShape(t)||ni.set(t,e)}getShape(t){return ni.get(t)}getSupportedShapes(){return ni.keys()}}function ri(t,e){return t+e*(d()-.5)}class li{randomPosition(t,e,i){if(i)return{x:ri(t.x,e.width),y:ri(t.y,e.height)};{const i=e.width/2,s=e.height/2,o=Math.floor(4*d()),n=2*(d()-.5);switch(o){case 0:return{x:t.x+n*i,y:t.y-s};case 1:return{x:t.x-i,y:t.y+n*s};case 2:return{x:t.x+n*i,y:t.y+s};default:return{x:t.x+i,y:t.y+n*s}}}}}class ci{constructor(t){this._engine=t,this.id="emitters"}getPlugin(t){return new oi(this._engine,t)}loadOptions(t,e){if(!this.needsPlugin(t)&&!this.needsPlugin(e))return;e?.emitters&&(t.emitters=O(e.emitters,(t=>{const e=new ii;return e.load(t),e})));const i=e?.interactivity?.modes?.emitters;if(i)if(q(i))t.interactivity.modes.emitters={random:{count:1,enable:!0},value:i.map((t=>{const e=new ii;return e.load(t),e}))};else{const e=i;if(void 0!==e.value)if(q(e.value))t.interactivity.modes.emitters={random:{count:e.random.count??1,enable:e.random.enable??!1},value:e.value.map((t=>{const e=new ii;return e.load(t),e}))};else{const i=new ii;i.load(e.value),t.interactivity.modes.emitters={random:{count:e.random.count??1,enable:e.random.enable??!1},value:i}}else(t.interactivity.modes.emitters={random:{count:1,enable:!1},value:new ii}).value.load(i)}}needsPlugin(t){if(!t)return!1;const e=t.emitters;return q(e)&&!!e.length||void 0!==e||!!t.interactivity?.events?.onClick?.mode&&P("emitter",t.interactivity.events.onClick.mode)}}class hi{draw(t,e,i){const s=-i,o=-i;t.moveTo(s,o+i/2),t.quadraticCurveTo(s,o,s+i/2,o),t.quadraticCurveTo(s+i,o,s+i,o+i/2),t.quadraticCurveTo(s+i,o,s+3*i/2,o),t.quadraticCurveTo(s+2*i,o,s+2*i,o+i/2),t.quadraticCurveTo(s+2*i,o+i,s+3*i/2,o+3*i/2),t.lineTo(s+i,o+2*i),t.lineTo(s+i/2,o+3*i/2),t.quadraticCurveTo(s,o+i,s,o+i/2)}}const di=[0,4,2,1],ui=[8,8,4,2];class pi{constructor(t){this.pos=0,this.data=new Uint8ClampedArray(t)}getString(t){const e=this.data.slice(this.pos,this.pos+t);return this.pos+=e.length,e.reduce(((t,e)=>t+String.fromCharCode(e)),"")}nextByte(){return this.data[this.pos++]}nextTwoBytes(){return this.pos+=2,this.data[this.pos-2]+(this.data[this.pos-1]<<8)}readSubBlocks(){let t="",e=0;do{e=this.data[this.pos++];for(let i=e;--i>=0;t+=String.fromCharCode(this.data[this.pos++]));}while(0!==e);return t}readSubBlocksBin(){let t=0,e=0;for(let i=0;0!==(t=this.data[this.pos+i]);i+=t+1)e+=t;const i=new Uint8Array(e);for(let e=0;0!==(t=this.data[this.pos++]);)for(let s=t;--s>=0;i[e++]=this.data[this.pos++]);return i}skipSubBlocks(){for(;0!==this.data[this.pos];this.pos+=this.data[this.pos]+1);this.pos++}}function fi(t,e){const i=[];for(let s=0;s<e;s++)i.push({r:t.data[t.pos],g:t.data[t.pos+1],b:t.data[t.pos+2]}),t.pos+=3;return i}async function mi(t,e,i,s,o,n){switch(t.nextByte()){case 59:return!0;case 44:await async function(t,e,i,s,o,n){const a=e.frames[s(!0)];a.left=t.nextTwoBytes(),a.top=t.nextTwoBytes(),a.width=t.nextTwoBytes(),a.height=t.nextTwoBytes();const r=t.nextByte(),l=128==(128&r),c=64==(64&r);a.sortFlag=32==(32&r),a.reserved=(24&r)>>>3;const h=1<<1+(7&r);l&&(a.localColorTable=fi(t,h));const d=t=>{const{r:s,g:n,b:r}=(l?a.localColorTable:e.globalColorTable)[t];return{r:s,g:n,b:r,a:t===o(null)?i?~~((s+n+r)/3):0:255}},u=(()=>{try{return new ImageData(a.width,a.height,{colorSpace:"srgb"})}catch(t){if(t instanceof DOMException&&"IndexSizeError"===t.name)return null;throw t}})();if(null==u)throw new EvalError("GIF frame size is to large");const p=t.nextByte(),f=t.readSubBlocksBin(),m=1<<p,g=(t,e)=>{const i=t>>>3,s=7&t;return(f[i]+(f[i+1]<<8)+(f[i+2]<<16)&(1<<e)-1<<s)>>>s};if(c){for(let i=0,o=p+1,r=0,l=[[0]],c=0;c<4;c++){if(di[c]<a.height)for(let t=0,e=0;;){const s=i;if(i=g(r,o),r+=o+1,i===m){o=p+1,l.length=m+2;for(let t=0;t<l.length;t++)l[t]=t<m?[t]:[]}else{i>=l.length?l.push(l[s].concat(l[s][0])):s!==m&&l.push(l[s].concat(l[i][0]));for(let s=0;s<l[i].length;s++){const{r:o,g:n,b:r,a:h}=d(l[i][s]);u.data.set([o,n,r,h],di[c]*a.width+ui[c]*e+t%(4*a.width)),t+=4}l.length===1<<o&&o<12&&o++}if(t===4*a.width*(e+1)&&(e++,di[c]+ui[c]*e>=a.height))break}n?.(t.pos/(t.data.length-1),s(!1)+1,u,{x:a.left,y:a.top},{width:e.width,height:e.height})}a.image=u,a.bitmap=await createImageBitmap(u)}else{for(let t=0,e=p+1,i=0,s=[[0]],o=-4;;){const n=t;if(t=g(i,e),i+=e,t===m){e=p+1,s.length=m+2;for(let t=0;t<s.length;t++)s[t]=t<m?[t]:[]}else{if(t===m+1)break;t>=s.length?s.push(s[n].concat(s[n][0])):n!==m&&s.push(s[n].concat(s[t][0]));for(let e=0;e<s[t].length;e++){const{r:i,g:n,b:a,a:r}=d(s[t][e]);u.data.set([i,n,a,r],o+=4)}s.length>=1<<e&&e<12&&e++}}a.image=u,a.bitmap=await createImageBitmap(u),n?.((t.pos+1)/t.data.length,s(!1)+1,a.image,{x:a.left,y:a.top},{width:e.width,height:e.height})}}(t,e,i,s,o,n);break;case 33:await async function(t,e,i,s){switch(t.nextByte()){case 249:{const o=e.frames[i(!1)];t.pos++;const n=t.nextByte();o.GCreserved=(224&n)>>>5,o.disposalMethod=(28&n)>>>2,o.userInputDelayFlag=2==(2&n);const a=1==(1&n);o.delayTime=10*t.nextTwoBytes();const r=t.nextByte();a&&s(r),t.pos++;break}case 255:{t.pos++;const i={identifier:t.getString(8),authenticationCode:t.getString(3),data:t.readSubBlocksBin()};e.applicationExtensions.push(i);break}case 254:e.comments.push([i(!1),t.readSubBlocks()]);break;case 1:if(0===e.globalColorTable.length)throw new EvalError("plain text extension without global color table");t.pos++,e.frames[i(!1)].plainTextData={left:t.nextTwoBytes(),top:t.nextTwoBytes(),width:t.nextTwoBytes(),height:t.nextTwoBytes(),charSize:{width:t.nextTwoBytes(),height:t.nextTwoBytes()},foregroundColor:t.nextByte(),backgroundColor:t.nextByte(),text:t.readSubBlocks()};break;default:t.skipSubBlocks()}}(t,e,s,o);break;default:throw new EvalError("undefined block found")}return!1}const gi=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;async function vi(t){return new Promise((e=>{t.loading=!0;const i=new Image;t.element=i,i.addEventListener("load",(()=>{t.loading=!1,e()})),i.addEventListener("error",(()=>{t.element=void 0,t.error=!0,t.loading=!1,z().error(`${r} loading image: ${t.source}`),e()})),i.src=t.source}))}async function yi(t){if("gif"===t.type){t.loading=!0;try{t.gifData=await async function(t,e,i){i||(i=!1);const s=await fetch(t);if(!s.ok&&404===s.status)throw new EvalError("file not found");const o=await s.arrayBuffer(),n={width:0,height:0,totalTime:0,colorRes:0,pixelAspectRatio:0,frames:[],sortFlag:!1,globalColorTable:[],backgroundImage:new ImageData(1,1,{colorSpace:"srgb"}),comments:[],applicationExtensions:[]},a=new pi(new Uint8ClampedArray(o));if("GIF89a"!==a.getString(6))throw new Error("not a supported GIF file");n.width=a.nextTwoBytes(),n.height=a.nextTwoBytes();const r=a.nextByte(),l=128==(128&r);n.colorRes=(112&r)>>>4,n.sortFlag=8==(8&r);const c=1<<1+(7&r),h=a.nextByte();n.pixelAspectRatio=a.nextByte(),0!==n.pixelAspectRatio&&(n.pixelAspectRatio=(n.pixelAspectRatio+15)/64),l&&(n.globalColorTable=fi(a,c));const d=(()=>{try{return new ImageData(n.width,n.height,{colorSpace:"srgb"})}catch(t){if(t instanceof DOMException&&"IndexSizeError"===t.name)return null;throw t}})();if(null==d)throw new Error("GIF frame size is to large");const{r:u,g:p,b:f}=n.globalColorTable[h];d.data.set(l?[u,p,f,255]:[0,0,0,0]);for(let t=4;t<d.data.length;t*=2)d.data.copyWithin(t,0,t);n.backgroundImage=d;let m=-1,g=!0,v=-1;const y=t=>(t&&(g=!0),m),w=t=>(null!=t&&(v=t),v);try{do{g&&(n.frames.push({left:0,top:0,width:0,height:0,disposalMethod:0,image:new ImageData(1,1,{colorSpace:"srgb"}),plainTextData:null,userInputDelayFlag:!1,delayTime:0,sortFlag:!1,localColorTable:[],reserved:0,GCreserved:0}),m++,v=-1,g=!1)}while(!await mi(a,n,i,y,w,undefined));n.frames.length--;for(const t of n.frames){if(t.userInputDelayFlag&&0===t.delayTime){n.totalTime=1/0;break}n.totalTime+=t.delayTime}return n}catch(t){if(t instanceof EvalError)throw new Error(`error while parsing frame ${m} "${t.message}"`);throw t}}(t.source),t.gifLoopCount=function(t){for(const e of t.applicationExtensions)if(e.identifier+e.authenticationCode==="NETSCAPE2.0")return e.data[1]+(e.data[2]<<8);return NaN}(t.gifData)??0,0===t.gifLoopCount&&(t.gifLoopCount=1/0)}catch{t.error=!0}t.loading=!1}else await vi(t)}async function wi(t){if("svg"!==t.type)return void await vi(t);t.loading=!0;const e=await fetch(t.source);e.ok?t.svgData=await e.text():(z().error(`${r} Image not found`),t.error=!0),t.loading=!1}class bi{constructor(t){this.loadImageShape=async t=>{if(!this._engine.loadImage)throw new Error(`${r} image shape not initialized`);await this._engine.loadImage({gif:t.gif,name:t.name,replaceColor:t.replaceColor??t.replace_color??!1,src:t.src})},this._engine=t}addImage(t){this._engine.images||(this._engine.images=[]),this._engine.images.push(t)}draw(t,e,i,s,o){const n=e.image,a=n?.element;if(n){if(t.globalAlpha=s,n.gif&&n.gifData){const s=new OffscreenCanvas(n.gifData.width,n.gifData.height),a=s.getContext("2d");if(!a)throw new Error("could not create offscreen canvas context");a.imageSmoothingQuality="low",a.imageSmoothingEnabled=!1,a.clearRect(0,0,s.width,s.height),void 0===e.gifLoopCount&&(e.gifLoopCount=n.gifLoopCount??0);let r=e.gifFrame??0;const l={x:.5*-n.gifData.width,y:.5*-n.gifData.height},c=n.gifData.frames[r];if(void 0===e.gifTime&&(e.gifTime=0),!c.bitmap)return;switch(t.scale(i/n.gifData.width,i/n.gifData.height),c.disposalMethod){case 4:case 5:case 6:case 7:case 0:a.drawImage(c.bitmap,c.left,c.top),t.drawImage(s,l.x,l.y),a.clearRect(0,0,s.width,s.height);break;case 1:a.drawImage(c.bitmap,c.left,c.top),t.drawImage(s,l.x,l.y);break;case 2:a.drawImage(c.bitmap,c.left,c.top),t.drawImage(s,l.x,l.y),a.clearRect(0,0,s.width,s.height),0===n.gifData.globalColorTable.length?a.putImageData(n.gifData.frames[0].image,l.x+c.left,l.y+c.top):a.putImageData(n.gifData.backgroundImage,l.x,l.y);break;case 3:{const e=a.getImageData(0,0,s.width,s.height);a.drawImage(c.bitmap,c.left,c.top),t.drawImage(s,l.x,l.y),a.clearRect(0,0,s.width,s.height),a.putImageData(e,0,0)}}if(e.gifTime+=o.value,e.gifTime>c.delayTime){if(e.gifTime-=c.delayTime,++r>=n.gifData.frames.length){if(--e.gifLoopCount<=0)return;r=0,a.clearRect(0,0,s.width,s.height)}e.gifFrame=r}t.scale(n.gifData.width/i,n.gifData.height/i)}else if(a){const e=n.ratio,s={x:-i,y:-i};t.drawImage(a,s.x,s.y,2*i,2*i/e)}t.globalAlpha=1}}getSidesCount(){return 12}async init(t){const e=t.actualOptions;if(e.preload&&this._engine.loadImage)for(const t of e.preload)await this._engine.loadImage(t)}loadShape(t){if("image"!==t.shape&&"images"!==t.shape)return;this._engine.images||(this._engine.images=[]);const e=t.shapeData;this._engine.images.find((t=>t.name===e.name||t.source===e.src))||this.loadImageShape(e).then((()=>{this.loadShape(t)}))}particleInit(t,e){if("image"!==e.shape&&"images"!==e.shape)return;this._engine.images||(this._engine.images=[]);const i=this._engine.images,s=e.shapeData,o=e.getFillColor(),n=i.find((t=>t.name===s.name||t.source===s.src));if(!n)return;const a=s.replaceColor??s.replace_color??n.replaceColor;n.loading?setTimeout((()=>{this.particleInit(t,e)})):(async()=>{let t;t=n.svgData&&o?await function(t,e,i,s){const o=function(t,e,i){const{svgData:s}=t;if(!s)return"";const o=J(e,i);if(s.includes("fill"))return s.replace(gi,(()=>o));const n=s.indexOf(">");return`${s.substring(0,n)} fill="${o}"${s.substring(n)}`}(t,i,s.opacity?.value??1),n={color:i,gif:e.gif,data:{...t,svgData:o},loaded:!1,ratio:e.width/e.height,replaceColor:e.replaceColor??e.replace_color,source:e.src};return new Promise((e=>{const i=new Blob([o],{type:"image/svg+xml"}),s=URL||window.URL||window.webkitURL||window,a=s.createObjectURL(i),r=new Image;r.addEventListener("load",(()=>{n.loaded=!0,n.element=r,e(n),s.revokeObjectURL(a)})),r.addEventListener("error",(async()=>{s.revokeObjectURL(a);const i={...t,error:!1,loading:!0};await vi(i),n.loaded=!0,n.element=i.element,e(n)})),r.src=a}))}(n,s,o,e):{color:o,data:n,element:n.element,gif:n.gif,gifData:n.gifData,gifLoopCount:n.gifLoopCount,loaded:!0,ratio:s.width&&s.height?s.width/s.height:n.ratio??1,replaceColor:a,source:s.src},t.ratio||(t.ratio=1);const i={image:t,fill:s.fill??e.fill,close:s.close??e.close};e.image=i.image,e.fill=i.fill,e.close=i.close})()}}class _i{constructor(){this.src="",this.gif=!1}load(t){t&&(void 0!==t.gif&&(this.gif=t.gif),void 0!==t.height&&(this.height=t.height),void 0!==t.name&&(this.name=t.name),void 0!==t.replaceColor&&(this.replaceColor=t.replaceColor),void 0!==t.src&&(this.src=t.src),void 0!==t.width&&(this.width=t.width))}}class xi{constructor(t){this.id="imagePreloader",this._engine=t}getPlugin(){return{}}loadOptions(t,e){if(!e||!e.preload)return;t.preload||(t.preload=[]);const i=t.preload;for(const t of e.preload){const e=i.find((e=>e.name===t.name||e.src===t.src));if(e)e.load(t);else{const e=new _i;e.load(t),i.push(e)}}}needsPlugin(){return!0}}class zi extends Tt{constructor(){super(),this.sync=!1}load(t){t&&(super.load(t),void 0!==t.sync&&(this.sync=t.sync))}}class Mi extends Tt{constructor(){super(),this.random.minimumValue=1e-4,this.sync=!1}load(t){t&&(super.load(t),void 0!==t.sync&&(this.sync=t.sync))}}class Ci{constructor(){this.count=0,this.delay=new zi,this.duration=new Mi}load(t){t&&(void 0!==t.count&&(this.count=t.count),this.delay.load(t.delay),this.duration.load(t.duration))}}class Pi{constructor(t){this.container=t}init(t){const e=this.container,i=t.options.life;i&&(t.life={delay:e.retina.reduceFactor?f(i.delay.value)*(i.delay.sync?1:d())/e.retina.reduceFactor*1e3:0,delayTime:0,duration:e.retina.reduceFactor?f(i.duration.value)*(i.duration.sync?1:d())/e.retina.reduceFactor*1e3:0,time:0,count:i.count},t.life.duration<=0&&(t.life.duration=-1),t.life.count<=0&&(t.life.count=-1),t.life&&(t.spawning=t.life.delay>0))}isEnabled(t){return!t.destroyed}loadOptions(t,...e){t.life||(t.life=new Ci);for(const i of e)t.life.load(i?.life)}update(t,e){if(!this.isEnabled(t)||!t.life)return;const i=t.life;let s=!1;if(t.spawning){if(i.delayTime+=e.value,!(i.delayTime>=t.life.delay))return;s=!0,t.spawning=!1,i.delayTime=0,i.time=0}if(-1===i.duration)return;if(t.spawning)return;if(s?i.time=0:i.time+=e.value,i.time<i.duration)return;if(i.time=0,t.life.count>0&&t.life.count--,0===t.life.count)return void t.destroy();const o=this.container.canvas.size,n=v(0,o.width),a=v(0,o.width);t.position.x=p(n),t.position.y=p(a),t.spawning=!0,i.delayTime=0,i.time=0,t.reset();const r=t.options.life;r&&(i.delay=1e3*f(r.delay.value),i.duration=1e3*f(r.duration.value))}}class ki{constructor(){this.factor=4,this.value=!0}load(t){t&&(void 0!==t.factor&&(this.factor=t.factor),void 0!==t.value&&(this.value=t.value))}}class Si{constructor(){this.disable=!1,this.reduce=new ki}load(t){t&&(void 0!==t.disable&&(this.disable=t.disable),this.reduce.load(t.reduce))}}class Ti{constructor(t,e){this._handleMotionChange=t=>{const e=this._container,i=e.actualOptions.motion;i&&(e.retina.reduceFactor=t.matches?i.disable?0:i.reduce.value?1/i.reduce.factor:1:1)},this._container=t,this._engine=e}async init(){const t=this._container,e=t.actualOptions.motion;if(!e||!e.disable&&!e.reduce.value)return void(t.retina.reduceFactor=1);const i=C("(prefers-reduced-motion: reduce)");if(!i)return void(t.retina.reduceFactor=1);this._handleMotionChange(i);const s=async()=>{this._handleMotionChange(i);try{await t.refresh()}catch{}};void 0!==i.addEventListener?i.addEventListener("change",s):void 0!==i.addListener&&i.addListener(s)}}class Ii{constructor(t){this.id="motion",this._engine=t}getPlugin(t){return new Ti(t,this._engine)}loadOptions(t,e){if(!this.needsPlugin())return;let i=t.motion;i?.load||(t.motion=i=new Si),i.load(e?.motion)}needsPlugin(){return!0}}class Di{draw(t,e,i){const s=this.getCenter(e,i),o=this.getSidesData(e,i),n=o.count.numerator*o.count.denominator,a=o.count.numerator/o.count.denominator,r=180*(a-2)/a,l=Math.PI-Math.PI*r/180;if(t){t.beginPath(),t.translate(s.x,s.y),t.moveTo(0,0);for(let e=0;e<n;e++)t.lineTo(o.length,0),t.translate(o.length,0),t.rotate(l)}}getSidesCount(t){const e=t.shapeData;return Math.round(f(e?.sides??e?.nb_sides??5))}}class Oi extends Di{getCenter(t,e){return{x:-e/(t.sides/3.5),y:-e/.76}}getSidesData(t,e){const i=t.sides;return{count:{denominator:1,numerator:i},length:2.66*e/(i/3)}}}class Ei extends Di{getCenter(t,e){return{x:-e,y:e/1.66}}getSidesCount(){return 3}getSidesData(t,e){return{count:{denominator:2,numerator:3},length:2*e}}}class Ri{constructor(){this.enable=!1,this.value=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.value&&(this.value=v(t.value)))}}class Li{constructor(){this.darken=new Ri,this.enable=!1,this.enlighten=new Ri,this.mode="vertical",this.speed=25}load(t){t&&(void 0!==t.backColor&&(this.backColor=at.create(this.backColor,t.backColor)),this.darken.load(t.darken),void 0!==t.enable&&(this.enable=t.enable),this.enlighten.load(t.enlighten),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.speed&&(this.speed=v(t.speed)))}}class Fi{getTransformValues(t){const e=t.roll?.enable&&t.roll,i=e&&e.horizontal,s=e&&e.vertical;return{a:i?Math.cos(e.angle):void 0,d:s?Math.sin(e.angle):void 0}}init(t){!function(t){const e=t.options.roll;if(e?.enable)if(t.roll={enable:e.enable,horizontal:"horizontal"===e.mode||"both"===e.mode,vertical:"vertical"===e.mode||"both"===e.mode,angle:d()*Math.PI*2,speed:f(e.speed)/360},e.backColor)t.backColor=j(e.backColor);else if(e.darken.enable&&e.enlighten.enable){const i=d()>=.5?"darken":"enlighten";t.roll.alter={type:i,value:f("darken"===i?e.darken.value:e.enlighten.value)}}else e.darken.enable?t.roll.alter={type:"darken",value:f(e.darken.value)}:e.enlighten.enable&&(t.roll.alter={type:"enlighten",value:f(e.enlighten.value)});else t.roll={enable:!1,horizontal:!1,vertical:!1,angle:0,speed:0}}(t)}isEnabled(t){const e=t.options.roll;return!t.destroyed&&!t.spawning&&!!e?.enable}loadOptions(t,...e){t.roll||(t.roll=new Li);for(const i of e)t.roll.load(i?.roll)}update(t,e){this.isEnabled(t)&&function(t,e){const i=t.options.roll,s=t.roll;if(!s||!i?.enable)return;const o=s.speed*e.factor,n=2*Math.PI;s.angle+=o,s.angle>n&&(s.angle-=n)}(t,e)}}class Ai{constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=v(t.speed)),void 0!==t.decay&&(this.decay=v(t.decay)),void 0!==t.sync&&(this.sync=t.sync))}}class Bi extends Tt{constructor(){super(),this.animation=new Ai,this.direction="clockwise",this.path=!1,this.value=0}load(t){t&&(super.load(t),void 0!==t.direction&&(this.direction=t.direction),this.animation.load(t.animation),void 0!==t.path&&(this.path=t.path))}}class Vi{constructor(t){this.container=t}init(t){const e=t.options.rotate;if(!e)return;t.rotate={enable:e.animation.enable,value:f(e.value)*Math.PI/180},t.pathRotation=e.path;let i=e.direction;switch("random"===i&&(i=Math.floor(2*d())>0?"counter-clockwise":"clockwise"),i){case"counter-clockwise":case"counterClockwise":t.rotate.status="decreasing";break;case"clockwise":t.rotate.status="increasing"}const s=e.animation;s.enable&&(t.rotate.decay=1-f(s.decay),t.rotate.velocity=f(s.speed)/360*this.container.retina.reduceFactor,s.sync||(t.rotate.velocity*=d())),t.rotation=t.rotate.value}isEnabled(t){const e=t.options.rotate;return!!e&&!t.destroyed&&!t.spawning&&e.animation.enable&&!e.path}loadOptions(t,...e){t.rotate||(t.rotate=new Bi);for(const i of e)t.rotate.load(i?.rotate)}update(t,e){this.isEnabled(t)&&(function(t,e){const i=t.rotate,s=t.options.rotate;if(!i||!s)return;const o=s.animation,n=(i.velocity??0)*e.factor,a=2*Math.PI,r=i.decay??1;o.enable&&("increasing"===i.status?(i.value+=n,i.value>a&&(i.value-=a)):(i.value-=n,i.value<0&&(i.value+=a)),i.velocity&&1!==r&&(i.velocity*=r))}(t,e),t.rotation=t.rotate?.value??0)}}const Ui=Math.sqrt(2);class $i{draw(t,e,i){const s=i/Ui,o=2*s;t.rect(-s,-s,o,o)}getSidesCount(){return 4}}class qi{draw(t,e,i){const s=e.sides,o=e.starInset??2;t.moveTo(0,0-i);for(let e=0;e<s;e++)t.rotate(Math.PI/s),t.lineTo(0,0-i*o),t.rotate(Math.PI/s),t.lineTo(0,0-i)}getSidesCount(t){const e=t.shapeData;return Math.round(f(e?.sides??e?.nb_sides??5))}particleInit(t,e){const i=e.shapeData,s=f(i?.inset??2);e.starInset=s}}const Wi=["text","character","char"];class Gi{draw(t,e,i,s){const o=e.shapeData;if(void 0===o)return;const n=o.value;if(void 0===n)return;void 0===e.text&&(e.text=E(n,e.randomIndexData));const a=e.text,r=o.style??"",l=o.weight??"400",c=2*Math.round(i),h=o.font??"Verdana",d=e.fill,u=a.length*i/2;t.font=`${r} ${l} ${c}px "${h}"`;const p={x:-u,y:i/2};t.globalAlpha=s,d?t.fillText(a,p.x,p.y):t.strokeText(a,p.x,p.y),t.globalAlpha=1}getSidesCount(){return 12}async init(t){const e=t.actualOptions;if(Wi.find((t=>P(t,e.particles.shape.type)))){const t=Wi.map((t=>e.particles.shape.options[t])).find((t=>!!t)),i=[];O(t,(t=>{i.push(async function(t,e){try{await document.fonts.load(`${e??"400"} 36px '${t??"Verdana"}'`)}catch{}}(t.font,t.weight))})),await Promise.all(i)}}particleInit(t,e){if(!e.shape||!Wi.includes(e.shape))return;const i=e.shapeData;if(void 0===i)return;const s=i.value;void 0!==s&&(e.text=E(s,e.randomIndexData))}}class Hi{constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=v(t.speed)),void 0!==t.decay&&(this.decay=v(t.decay)),void 0!==t.sync&&(this.sync=t.sync))}}class Xi extends Tt{constructor(){super(),this.animation=new Hi,this.direction="clockwise",this.enable=!1,this.value=0}load(t){super.load(t),t&&(this.animation.load(t.animation),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.enable&&(this.enable=t.enable))}}class Yi{constructor(t){this.container=t}getTransformValues(t){const e=t.tilt?.enable&&t.tilt;return{b:e?Math.cos(e.value)*e.cosDirection:void 0,c:e?Math.sin(e.value)*e.sinDirection:void 0}}init(t){const e=t.options.tilt;if(!e)return;t.tilt={enable:e.enable,value:f(e.value)*Math.PI/180,sinDirection:d()>=.5?1:-1,cosDirection:d()>=.5?1:-1};let i=e.direction;switch("random"===i&&(i=Math.floor(2*d())>0?"counter-clockwise":"clockwise"),i){case"counter-clockwise":case"counterClockwise":t.tilt.status="decreasing";break;case"clockwise":t.tilt.status="increasing"}const s=t.options.tilt?.animation;s?.enable&&(t.tilt.decay=1-f(s.decay),t.tilt.velocity=f(s.speed)/360*this.container.retina.reduceFactor,s.sync||(t.tilt.velocity*=d()))}isEnabled(t){const e=t.options.tilt?.animation;return!t.destroyed&&!t.spawning&&!!e?.enable}loadOptions(t,...e){t.tilt||(t.tilt=new Xi);for(const i of e)t.tilt.load(i?.tilt)}update(t,e){this.isEnabled(t)&&function(t,e){if(!t.tilt||!t.options.tilt)return;const i=t.options.tilt.animation,s=(t.tilt.velocity??0)*e.factor,o=2*Math.PI,n=t.tilt.decay??1;i.enable&&("increasing"===t.tilt.status?(t.tilt.value+=s,t.tilt.value>o&&(t.tilt.value-=o)):(t.tilt.value-=s,t.tilt.value<0&&(t.tilt.value+=o)),t.tilt.velocity&&1!==n&&(t.tilt.velocity*=n))}(t,e)}}class Ni{constructor(){this.angle=50,this.move=10}load(t){t&&(void 0!==t.angle&&(this.angle=v(t.angle)),void 0!==t.move&&(this.move=v(t.move)))}}class ji{constructor(){this.distance=5,this.enable=!1,this.speed=new Ni}load(t){if(t&&(void 0!==t.distance&&(this.distance=v(t.distance)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed))if(V(t.speed))this.speed.load({angle:t.speed});else{const e=t.speed;void 0!==e.min?this.speed.load({angle:e}):this.speed.load(t.speed)}}}class Zi{constructor(t){this.container=t}init(t){const e=t.options.wobble;t.wobble=e?.enable?{angle:d()*Math.PI*2,angleSpeed:f(e.speed.angle)/360,moveSpeed:f(e.speed.move)/10}:{angle:0,angleSpeed:0,moveSpeed:0},t.retina.wobbleDistance=f(e?.distance??0)*this.container.retina.pixelRatio}isEnabled(t){return!t.destroyed&&!t.spawning&&!!t.options.wobble?.enable}loadOptions(t,...e){t.wobble||(t.wobble=new ji);for(const i of e)t.wobble.load(i?.wobble)}update(t,e){this.isEnabled(t)&&function(t,e){const{wobble:i}=t.options,{wobble:s}=t;if(!i?.enable||!s)return;const o=s.angleSpeed*e.factor,n=s.moveSpeed*e.factor*((t.retina.wobbleDistance??0)*e.factor)/(1e3/60),a=2*Math.PI,{position:r}=t;s.angle+=o,s.angle>a&&(s.angle-=a),r.x+=n*Math.cos(s.angle),r.y+=n*Math.abs(Math.sin(s.angle))}(t,e)}}let Qi=!1,Ji=!1;const Ki=new Map;async function ts(t){if(!Qi){if(Ji)return new Promise((t=>{const e=setInterval((()=>{Qi&&(clearInterval(e),t())}),100)}));Ji=!0,await async function(t,e=!0){await async function(t,e=!0){await t.addMover("base",(()=>new Re),e)}(t,!1),await async function(t,e=!0){await t.addShape("circle",new Le,e)}(t,!1),await async function(t,e=!0){await t.addParticleUpdater("color",(t=>new Ae(t)),e)}(t,!1),await async function(t,e=!0){await t.addParticleUpdater("opacity",(t=>new Be(t)),e)}(t,!1),await async function(t,e=!0){await t.addParticleUpdater("outModes",(t=>new We(t)),e)}(t,!1),await async function(t,e=!0){await t.addParticleUpdater("size",(()=>new Ge),e)}(t,!1),await t.refresh(e)}(t),await async function(t,e=!0){t.emitterShapeManager||(t.emitterShapeManager=new ai(t)),t.addEmitterShape||(t.addEmitterShape=(e,i)=>{t.emitterShapeManager?.addShape(e,i)});const i=new ci(t);await t.addPlugin(i,e),t.addEmitterShape("circle",new Je),t.addEmitterShape("square",new li)}(t),await async function(t,e=!0){await t.addPlugin(new Ii(t),e)}(t),await async function(t,e=!0){await t.addShape(["spade","spades"],new Ne,e),await t.addShape(["heart","hearts"],new je,e),await t.addShape(["diamond","diamonds"],new Ze,e),await t.addShape(["club","clubs"],new Qe,e)}(t),await async function(t,e=!0){await t.addShape("heart",new hi,e)}(t),await async function(t,e=!0){!function(t){t.loadImage||(t.loadImage=async e=>{if(!e.name&&!e.src)throw new Error(`${r} no image source provided`);if(t.images||(t.images=[]),!t.images.find((t=>t.name===e.name||t.source===e.src)))try{const i={gif:e.gif??!1,name:e.name??e.src,source:e.src,type:e.src.substring(e.src.length-3),error:!1,loading:!0,replaceColor:e.replaceColor,ratio:e.width&&e.height?e.width/e.height:void 0};t.images.push(i);const s=e.gif?yi:e.replaceColor?wi:vi;await s(i)}catch{throw new Error(`${r} ${e.name??e.src} not found`)}})}(t);const i=new xi(t);await t.addPlugin(i,e),await t.addShape(["image","images"],new bi(t),e)}(t),await async function(t,e=!0){await async function(t,e=!0){await t.addShape("polygon",new Oi,e)}(t,e),await async function(t,e=!0){await t.addShape("triangle",new Ei,e)}(t,e)}(t),await async function(t,e=!0){await t.addShape(["edge","square"],new $i,e)}(t),await async function(t,e=!0){await t.addShape("star",new qi,e)}(t),await async function(t,e=!0){await t.addShape(Wi,new Gi,e)}(t),await async function(t,e=!0){await t.addParticleUpdater("rotate",(t=>new Vi(t)),e)}(t),await async function(t,e=!0){await t.addParticleUpdater("life",(t=>new Pi(t)),e)}(t),await async function(t,e=!0){await t.addParticleUpdater("roll",(()=>new Fi),e)}(t),await async function(t,e=!0){await t.addParticleUpdater("tilt",(t=>new Yi(t)),e)}(t),await async function(t,e=!0){await t.addParticleUpdater("wobble",(t=>new Zi(t)),e)}(t),Ji=!1,Qi=!0}}async function es(t){const e=new Ee;let i;e.load(t.options);const s=1e3*e.ticks/432e3;if(Ki.has(t.id)&&(i=Ki.get(t.id),i&&!i.destroyed)){const t=i;if(t.addEmitter)return void t.addEmitter({startCount:e.count,position:e.position,size:{width:0,height:0},rate:{delay:0,quantity:0},life:{duration:.1,count:1},particles:{color:{value:e.colors},shape:{type:e.shapes,options:e.shapeOptions},life:{count:1},opacity:{value:{min:0,max:1},animation:{enable:!0,sync:!0,speed:s,startValue:"max",destroy:"min"}},size:{value:5*e.scalar},move:{angle:{value:e.spread,offset:0},drift:{min:-e.drift,max:e.drift},gravity:{acceleration:9.81*e.gravity},speed:3*e.startVelocity,decay:1-e.decay,direction:-e.angle}}})}const o={fullScreen:{enable:!t.canvas,zIndex:e.zIndex},fpsLimit:120,particles:{number:{value:0},color:{value:e.colors},shape:{type:e.shapes,options:e.shapeOptions},opacity:{value:{min:0,max:1},animation:{enable:!0,sync:!0,speed:s,startValue:"max",destroy:"min"}},size:{value:5*e.scalar},links:{enable:!1},life:{count:1},move:{angle:{value:e.spread,offset:0},drift:{min:-e.drift,max:e.drift},enable:!0,gravity:{enable:!0,acceleration:9.81*e.gravity},speed:3*e.startVelocity,decay:1-e.decay,direction:-e.angle,random:!0,straight:!1,outModes:{default:"none",bottom:"destroy"}},rotate:{value:{min:0,max:360},direction:"random",animation:{enable:!0,speed:60}},tilt:{direction:"random",enable:!0,value:{min:0,max:360},animation:{enable:!0,speed:60}},roll:{darken:{enable:!0,value:25},enable:!0,speed:{min:15,max:25}},wobble:{distance:30,enable:!0,speed:{min:-15,max:15}}},detectRetina:!0,motion:{disable:e.disableForReducedMotion},emitters:{name:"confetti",startCount:e.count,position:e.position,size:{width:0,height:0},rate:{delay:0,quantity:0},life:{duration:.1,count:1}}};return i=await Oe.load({id:t.id,element:t.canvas,options:o}),Ki.set(t.id,i),i}async function is(t,e){let i,s;return await ts(Oe),B(t)?(s=t,i=e??{}):(s="confetti",i=t),es({id:s,options:i})}is.create=async(t,e)=>{if(!t)return is;await ts(Oe);const i=t.getAttribute("id")||"confetti";return t.setAttribute("id",i),async(s,o)=>{let n,a;return B(s)?(a=s,n=o??e):(a=i,n=s),es({id:a,canvas:t,options:n})}},is.version=Oe.version,M()||(window.confetti=is)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[6368],{32562:(e,t,r)=>{r.d(t,{H:()=>m});var n=r(23481),o=r(110),a=r(47663),i=r(12778);function s(e){return s="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},s(e)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function u(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:String(t)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var g="userManager.cannotYearGroupRolloverError",m=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(f,e);var t,r,a,u,m=(a=f,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(a);if(u){var r=p(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=m.call(this,"CannotYearGroupRolloverError")).previousRolloverDate=e,t}return t=f,(r=[{key:"name",get:function(){return"CannotYearGroupRolloverError"}},{key:"getDate",value:function(){var e=o.O.convertUTCToLocal(this.previousRolloverDate);return o.O.format(e,"MMMM Do YYYY")}},{key:"getSupportUrl",value:function(){return i.o.getSupportRequestUrl()}},{key:"dialogOptions",get:function(){return{title:n.T.getPhrase(g,"heading"),text:n.T.getPhrase(g,"text",{previousRolloverDate:this.getDate(),supportUrl:this.getSupportUrl(),linkClass:"info-link"}),buttons:[{text:n.T.getPhrase(g,"okay"),className:"btn btn-dark",success:!0}]}}}])&&c(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),f}(a.S)},12458:(e,t,r)=>{r.d(t,{I:()=>c});var n=r(1048),o=r(49985),a=r(65858),i=r(58739),s=["userIdMap","params","action","subAction","allUsersSelected","allUsersCount","scrollContainer"],c={getAnalyticsActionName:function(e){if(!(null==e?void 0:e.action))return null;switch(e.action){case"activation":return(null==e?void 0:e.subAction)?"deactivate"===e.subAction?"Deactivate":"Reactivate":"Deactivate / reactivate";case"addToClassroom":return"Add to classroom";case"changeYearGroup":return"Change year group";case"delete":return"Delete user";case"resetEmail":return"Send password reset email";case"activationEmail":return"Send account activation email";case"resetPassword":return"Reset password";case"yearGroupRollover":return"Annual year group rollover";case"removeFromSchool":return"Remove user";default:return null}},onClickNext:function(e,t){if(e){var r={userCount:e.userIdMap.size,step:t},i=c.getAnalyticsActionName(e);i&&(r.action=i);var u=n.t.omit(e,s);Object.keys(u).length&&(r.actionData=u),o.k.logUserAction(r,{location:a.LZ.BulkUserActionsWizard,workflowPhase:a.eu.Next,actionType:a.Vw.BulkAction,entity:a.py.User})}},logYearGroupRolloverEntry:function(e){o.k.logUserAction({action:c.getAnalyticsActionName({action:"yearGroupRollover"})},{entity:a.py.User,actionType:a.Vw.BulkAction,workflowPhase:a.eu.Start,location:e})},getJobStatus:function(e){switch(e){case i.K.Completed:return"Success";case i.K.CompletedWithError:return"Completed with some errors";case i.K.Failed:return"Failed";default:return null}}}},58739:(e,t,r)=>{var n;r.d(t,{K:()=>n}),function(e){e[e.Submitted=0]="Submitted",e[e.Queued=1]="Queued",e[e.Pending=2]="Pending",e[e.InProgress=3]="InProgress",e[e.Completed=4]="Completed",e[e.CompletedWithError=5]="CompletedWithError",e[e.Failed=6]="Failed"}(n||(n={}))},42384:(e,t,r)=>{r.d(t,{P:()=>s});var n=r(32735),o=r(65858),a=r(37802);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var s=function(){var e,t,r=(e=n.useState(void 0),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e,t)||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.")}()),s=r[0],c=r[1],u=(0,a.r)(o.LZ.Settings).hasLti;return n.useEffect((function(){u&&!0!==s?c(!0):u||!1===s||c(!1)}),[u]),{canAccess:s}}},96368:(e,t,r)=>{r.d(t,{e:()=>R});var n=r(23481),o=r(81886),a=r(20354),i=r(2948),s=r(65858),c=r(32562),u=r(12458),l=r(38143),p=r(16714),g=r(12754),m=r(76881),f=r(31949),d=r(22902),S=r(15311),y=r(37802),v=r(99742),b=r(14070),T=r(97291),h=r(29613),E=r(41063),O=r(42384);function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var A=n.T.encloseNamespace("settings.hooks");function R(){var e,t,r=(0,d.T)().hasPermissions,n=(0,O.P)().canAccess,R=(0,S.r)().hasProduct,I=(e=(0,i.D)(l.g.BULK_USER_ACTIONS),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(e,t)||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.")}())[1],k=a.a.useBasicFetch(f.N.currentUser()),N=a.a.useBasicFetch(!!k.data&&h.q.getYearGroupRolloverStatus(k.data.customerId)),M=(0,E.b)(),P=(0,y.r)(s.LZ.Settings),L=P.domainSettings,j=P.hasAccessToRostering;return[{id:"my-account",imageUrl:v.W.Settings.MY_ACCOUNT,name:A("myAccount"),modules:[{id:"profile-details",name:A("profileDetails"),appLink:{application:T.O.SETTINGS,action:b.e.Settings.PROFILE_DETAILS},permissions:[p.C.EditProfileDetails]},{id:"email-settings",name:A("emailPassword"),appLink:{application:T.O.SETTINGS,action:b.e.Settings.ACCOUNT}},{id:"topic-preferences",name:A("preferences"),appLink:{application:T.O.SETTINGS,action:b.e.Settings.TOPIC_PREFERENCES},permissions:[p.C.ManageSubjectPreferences]},{id:"audience-preferences",appLink:{application:T.O.SETTINGS,action:b.e.Settings.AUDIENCE_PREFERENCES},permissions:[p.C.ManageSubjectPreferences],hide:!0},{id:"curriculum-preferences",appLink:{application:T.O.SETTINGS,action:b.e.Settings.CURRICULUM},permissions:[p.C.ManageSubjectPreferences],hide:!0},{id:"school-level-preferences",appLink:{application:T.O.SETTINGS,action:b.e.Settings.SCHOOL_LEVEL},permissions:[p.C.ManageSubjectPreferences],hide:!0},{id:"search-settings",name:A("searchSettings"),appLink:{application:T.O.SETTINGS,action:b.e.Settings.SEARCH_SETTINGS},permissions:[p.C.Exchange],hide:!R(g.x.Exchange)}]},{id:"user-management",imageUrl:v.W.Settings.USER_MANAGEMENT,name:A("userManagement"),modules:[{id:"student-manager",name:A("studentManager"),appLink:{application:T.O.USER_MANAGER,action:b.e.UserManager.STUDENTS},permissions:[p.C.ManageUsers]},{id:"staff-manager",name:A("staffManager"),appLink:{application:T.O.USER_MANAGER,action:b.e.UserManager.STAFF},permissions:[p.C.ManageUsers]},{id:"year-group-rollover",name:A("yearGroupRollover"),permissions:[p.C.ManageUsers],onClick:function(){if(N.data.canRollover)return I({action:"yearGroupRollover",subAction:"yearGroupRollover"}),u.I.logYearGroupRolloverEntry(s.LZ.Settings),void o.Q.C$.trigger({application:T.O.USER_MANAGER,action:b.e.UserManager.WIZARD_YEAR_GROUP_ROLLOVER_ACTION_DETAILS,params:{userType:m.Y.Learner}});o.Q.Ry.throw(new c.H(N.data.previousRolloverDate))}},{id:"security",name:A("security"),appLink:{application:T.O.SETTINGS,action:b.e.Settings.SECURITY},permissions:[p.C.ManageUsers]},{id:"sso-year-group-mappings",name:A("ssoYearGroupMappings"),permissions:[p.C.ManageUsers],appLink:{application:T.O.SETTINGS,action:b.e.Settings.SSO_YEAR_GROUP_MAPPINGS}},{id:"join-requests",name:A("domainSettings"),permissions:[p.C.ManageUsers],appLink:{application:T.O.SETTINGS,action:b.e.Settings.REQUESTING_ACCESS},hide:!L}]},{id:"integrations",imageUrl:v.W.Settings.INTEGRATIONS,name:A("integrations"),modules:[{id:"integrations",name:A("integrations"),appLink:{application:T.O.SETTINGS,action:b.e.Settings.INTEGRATIONS},permissions:[p.C.ManageIntegrations]},{id:"lti",name:A("ltiPlatforms"),appLink:{application:T.O.SETTINGS,action:b.e.Settings.LTI_PLATFORMS},permissions:[p.C.ManageIntegrations]},{id:"export-libraries",name:A("exportLibraries"),appLink:{application:T.O.SETTINGS,action:b.e.Settings.EXPORT_LIBRARIES},permissions:[p.C.ManageIntegrations]},{id:"rostering",name:A("rostering"),appLink:{application:T.O.SETTINGS,action:b.e.Settings.ROSTERING},permissions:[p.C.ManageIntegrations],hide:!j}]},{id:"school-management",imageUrl:v.W.Settings.SCHOOL_MANAGEMENT,name:A("schoolManagement"),modules:[{id:"video-playback",name:A("videoPlayback"),appLink:{application:T.O.SETTINGS,action:b.e.Settings.VIDEO_PLAYBACK},permissions:[p.C.ManageCustomerSettings]},{id:"archived-classrooms",name:A("archivedClassrooms"),appLink:{application:T.O.SETTINGS,action:b.e.Settings.ARCHIVED_CLASSROOMS},permissions:[p.C.ManageCustomerSettings]},{id:"local-cache",name:A("localCache"),appLink:{application:T.O.SETTINGS,action:b.e.Settings.LOCAL_CACHES},permissions:[p.C.ManageLocalCache]},{id:"library permissions",name:A("librariesPermissions"),appLink:{application:T.O.SETTINGS,action:b.e.Settings.LIBRARIES_PERMISSIONS},permissions:[p.C.ManageCustomerSettings]}]},{id:"video-security",imageUrl:v.W.Settings.VIDEO_SECURITY,name:A("videoSecurity"),modules:[{id:"content-permissions",name:A("contentPermissions"),appLink:{application:T.O.SETTINGS,action:b.e.Settings.CONTENT_PERMISSIONS},permissions:[p.C.ManageCustomerSettings]},{id:"video-restrictions",name:A("videoRestrictions"),appLink:{application:T.O.SETTINGS,action:b.e.Settings.VIDEO_RESTRICTIONS},permissions:[p.C.ManageVideoAccess],hide:!M}]}].map((function(e){return Object.assign(Object.assign({},e),{modules:e.modules.filter((function(e){var t;return!((null===(t=e.permissions)||void 0===t?void 0:t.length)&&!r(e.permissions)||"lti"===e.id&&!0!==n)}))})})).filter((function(e){return!!e.modules.length}))}},29613:(e,t,r)=>{r.d(t,{q:()=>i});var n=r(99940),o=r(97395),a=r(149),i={createJob:function(e,t,r){return{url:"{gateway}/v1/batch/jobs",key:"create:job",type:n.k.POST,data:e,success:t,error:r}},getJobs:function(e){var t={},r=[],n=[];return e.cursor&&(t.cursor=e.cursor),e.sort&&("oldest"===e.sort?t.order="ASC":t.order="DESC"),e.bulkActionType?(r=Array.isArray(e.bulkActionType)?e.bulkActionType:[e.bulkActionType],t.type=r):t.type=a.O,e.userType&&(n=Array.isArray(e.userType)?e.userType:[e.userType],t.dataType=n),{url:o._.urlBuilder("{gateway}/v1/batch/jobs",t),key:"batch:jobs:".concat(e.cursor,":").concat(e.sort,":").concat(r.sort().join(":"),":").concat(n.sort().join(":"))}},getJob:function(e){return{url:"{gateway}/v1/batch/jobs/".concat(e),key:"job:".concat(e)}},getJobProgress:function(e,t,r){return{url:"{gateway}/v1/batch/jobs/".concat(e,"/progress"),key:"job:".concat(e,":progress"),invalidationKeys:"job:".concat(e,":progress"),success:t,error:r}},getJobResults:function(e,t,r,n,a){var i={status:t};return r&&(i.cursor=r),{url:o._.urlBuilder("{gateway}/v1/batch/jobs/".concat(e,"/results"),i),key:"job:".concat(e,":results:").concat(t,":").concat(r),success:n,error:a}},getYearGroupRolloverStatus:function(e){return{url:"{gateway}/v1/batch/validations/customers/".concat(e,"/year-group-roll-over"),key:"year:group:rollover:status"}},sendJobReports:function(e){return{url:"{gateway}/v1/batch/results/export",key:"send:job:reports:".concat(e.sort().join(":")),type:n.k.POST,data:{jobIds:e}}},getJobSummary:function(e){return{url:"{gateway}/v1/batch/jobs/".concat(e,"/summary"),key:"job:summary:".concat(e)}}}},41063:(e,t,r)=>{r.d(t,{b:()=>i});var n=r(16714),o=r(22902),a=r(37802);function i(){var e=(0,o.T)().hasPermissions;return(0,a.r)(null).manageVideoAccess&&e(n.C.ManageVideoAccess)}}}]);
@@ -1,2 +1,2 @@
1
- /*! For license information please see 6433-7b2bd48f40-lite.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[6433],{86433:(t,e,r)=>{r.r(e),r.d(e,{SmartEmbedView:()=>f});var n=r(32735),o=r(20354),i=r(39151);const a={embeddedPlayer:"wONli",placeholder:"r6wty"};function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(){u=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",f=i.toStringTag||"@@toStringTag";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(t){h=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof w?e:w,a=Object.create(i.prototype),c=new G(n||[]);return o(a,"_invoke",{value:S(t,r,c)}),a}function y(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",v="suspendedYield",d="executing",m="completed",g={};function w(){}function b(){}function L(){}var E={};h(E,a,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(F([])));k&&k!==r&&n.call(k,a)&&(E=k);var _=L.prototype=w.prototype=Object.create(E);function O(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function r(o,i,a,u){var l=y(t[o],t,i);if("throw"!==l.type){var f=l.arg,h=f.value;return h&&"object"==c(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(h).then((function(t){f.value=t,a(f)}),(function(t){return r("throw",t,a,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=j(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=y(e,r,n);if("normal"===l.type){if(o=n.done?m:v,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=m,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=y(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function G(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function F(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(c(e)+" is not iterable")}return b.prototype=L,o(_,"constructor",{value:L,configurable:!0}),o(L,"constructor",{value:b,configurable:!0}),b.displayName=h(L,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,L):(t.__proto__=L,h(t,f,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},O(P.prototype),h(P.prototype,l,(function(){return this})),e.AsyncIterator=P,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new P(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(_),h(_,f,"Generator"),h(_,a,(function(){return this})),h(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=F,G.prototype={constructor:G,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:F(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var l=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}u((n=n.apply(t,e||[])).next())}))};function f(t){var e=this,c=o.a.useBasicFetch(i.L.config()),f=c.hasCompleted,h=n.useMemo((function(){return n.lazy((function(){return l(e,void 0,void 0,u().mark((function t(){var e;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(691),r.e(3937),r.e(4441),r.e(3848),r.e(3706)]).then(r.bind(r,6274));case 2:return e=t.sent,t.abrupt("return",{default:"ClickViewInteractivePlayer"in e?e.ClickViewInteractivePlayer:e.ClickViewPlayer});case 4:case"end":return t.stop()}}),t)})))}))}),[]);if(!f)return n.createElement(n.Fragment,null);var s=h;return n.createElement(n.Suspense,{fallback:n.createElement("div",{className:a.placeholder})},n.createElement(s,{viewKey:t.viewKey,playerApi:new URL(c.data.playerApiUrl),imageCdnUrl:c.data.imageCdnUrl,autoplay:!0,embed:!0,hotkeyElQuerySelector:"body",className:a.embeddedPlayer}))}}}]);
1
+ /*! For license information please see 6433-8a473c7c44-lite.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[6433],{86433:(t,e,r)=>{r.r(e),r.d(e,{SmartEmbedView:()=>f});var n=r(32735),o=r(20354),i=r(39151);const a={embeddedPlayer:"wONli",placeholder:"r6wty"};function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(){u=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",f=i.toStringTag||"@@toStringTag";function h(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(t){h=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof w?e:w,a=Object.create(i.prototype),c=new G(n||[]);return o(a,"_invoke",{value:S(t,r,c)}),a}function y(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",v="suspendedYield",d="executing",m="completed",g={};function w(){}function b(){}function L(){}var E={};h(E,a,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(F([])));k&&k!==r&&n.call(k,a)&&(E=k);var _=L.prototype=w.prototype=Object.create(E);function O(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function r(o,i,a,u){var l=y(t[o],t,i);if("throw"!==l.type){var f=l.arg,h=f.value;return h&&"object"==c(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(h).then((function(t){f.value=t,a(f)}),(function(t){return r("throw",t,a,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,r,n){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=j(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=y(e,r,n);if("normal"===l.type){if(o=n.done?m:v,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=m,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=y(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function G(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function F(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(c(e)+" is not iterable")}return b.prototype=L,o(_,"constructor",{value:L,configurable:!0}),o(L,"constructor",{value:b,configurable:!0}),b.displayName=h(L,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,L):(t.__proto__=L,h(t,f,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},O(P.prototype),h(P.prototype,l,(function(){return this})),e.AsyncIterator=P,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new P(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(_),h(_,f,"Generator"),h(_,a,(function(){return this})),h(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=F,G.prototype={constructor:G,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:F(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var l=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}u((n=n.apply(t,e||[])).next())}))};function f(t){var e=this,c=o.a.useBasicFetch(i.L.config()),f=c.hasCompleted,h=n.useMemo((function(){return n.lazy((function(){return l(e,void 0,void 0,u().mark((function t(){var e;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([r.e(691),r.e(3937),r.e(4441),r.e(3848),r.e(6086),r.e(5177)]).then(r.bind(r,65100));case 2:return e=t.sent,t.abrupt("return",{default:"ClickViewInteractivePlayer"in e?e.ClickViewInteractivePlayer:e.ClickViewPlayer});case 4:case"end":return t.stop()}}),t)})))}))}),[]);if(!f)return n.createElement(n.Fragment,null);var s=h;return n.createElement(n.Suspense,{fallback:n.createElement("div",{className:a.placeholder})},n.createElement(s,{viewKey:t.viewKey,playerApi:new URL(c.data.playerApiUrl),imageCdnUrl:c.data.imageCdnUrl,autoplay:!0,embed:!0,hotkeyElQuerySelector:"body",className:a.embeddedPlayer}))}}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 6683-6a53507e03-lite.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[6683],{69624:(e,t,n)=>{n.d(t,{F:()=>c});var r=n(97395),o=n(86664),a=n(93824),i={Marketing:{au:"https://www.clickview.com.au",uk:"https://www.clickview.co.uk",nz:"https://www.clickview.co.nz",us:"https://www.clickvieweducation.com"},Support:{au:"https://www.clickviewsupport.com/hc/en-au",uk:"https://www.clickviewsupport.com/hc/en-au#gb",nz:"https://www.clickviewsupport.com/hc/en-au#nz",us:"https://www.clickviewsupport.com/hc/en-au#us"}},c={getMarketingUrlForGeoLocation:function(e){var t=o.I.getCountryCode(null==e?void 0:e.countryCode);return i.Marketing[t]||i.Marketing.us},getMarketingSalesContactForGeoLocation:function(e){var t=o.I.getCountryCode(null==e?void 0:e.countryCode),n=this.getMarketingUrlForGeoLocation(e);return e&&t===a.C.NZ?n+"/contact-us/":n+"/contact-us/trial/"},getFreeResourcesForGeoLocation:function(e){var t=o.I.getCountryCode(null==e?void 0:e.countryCode);return t===a.C.NZ&&(t=a.C.AU),this.getMarketingUrlForGeoLocation({countryCode:t})+"/free-student-resources//"},getTermsAndConditionsLink:function(){return this.getMarketingUrlForGeoLocation(a.C.US)+"/terms-and-conditions/"},getPrivacyPolicyLink:function(){return this.getMarketingUrlForGeoLocation(a.C.US)+"/privacy-policy/"},getSupportUrlForGeoLocation:function(e){var t=o.I.getCountryCode(null==e?void 0:e.countryCode);return i.Support[t]||i.Support.us},getLoginLink:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.email,n=e.customerId,o={redirectUrl:window.location.pathname+window.location.search};return t&&(o.email=t),n&&(o.customerId=n),r._.urlBuilder("/login",o)}}},86664:(e,t,n)=>{n.d(t,{I:()=>l});var r=n(83765),o=n(93824),a=["uk","gb","gg","im","je","ie"],i={au:o.C.AU,nz:o.C.NZ,us:o.C.US,uk:o.C.UK,gb:o.C.UK,gg:o.C.UK,im:o.C.UK,je:o.C.UK,ie:o.C.UK},c={au:r.M.CvApSoutheast1,uk:r.M.CvEuWest1,us:r.M.CvNaWest1,nz:r.M.CvApSoutheast2},l={getInstanceRegion:function(e){var t=l.getCountryCode(e);return c[t]},getCountryCode:function(e){return i[null==e?void 0:e.toLowerCase()]||o.C.US},isCountryCodeUK:function(e){return a.includes(e.toLowerCase())},isCountryCodeAU:function(e){return(null==e?void 0:e.toLowerCase())===o.C.AU},isCountryCodeUS:function(e){return(null==e?void 0:e.toLowerCase())===o.C.US},isCountryCodeNZ:function(e){return(null==e?void 0:e.toLowerCase())===o.C.NZ},isSupportedCountryCode:function(e){return Object.keys(i).includes(null==e?void 0:e.toLowerCase())},getLocalizedLocalityPlaceholderPhrase:function(e){if(e)return l.isCountryCodeUK(e)?"E.g. CR0 3RL or 36 Factory Lane":l.isCountryCodeAU(e)||l.isCountryCodeNZ(e)?"E.g. 2212 or Revesby":l.isCountryCodeUS(e)?"E.g. 95826 or Sacramento":void 0},getLocalizedLocalityPlaceholderText:function(e){if(e){var t=l.getLocalizedLocalityPlaceholderPhrase(e);if(t)return t}}}},97481:(e,t,n)=>{n.d(t,{d:()=>l});var r=n(32735),o=n(11607),a=n(83345);const i={emptyState:"k5mEG"};var c="shared.typeaheadErrorState";function l(e){return r.createElement("div",{className:"d-flex flex-column align-items-center text-center",onClick:function(e){e.stopPropagation()}},r.createElement("img",{alt:"",role:"presentation",src:e.imageUrl,className:"pb-2 ".concat(i.emptyState)}),r.createElement("h2",{className:"h6"},r.createElement(a.x,{namespace:c,phrase:"error"})),r.createElement(o.L,{onClick:function(t){t.stopPropagation(),e.onClickTryAgain()},className:"btn btn-link info-link p-0"},r.createElement(a.x,{namespace:c,phrase:"tryAgain"})))}},93824:(e,t,n)=>{var r;n.d(t,{C:()=>r}),function(e){e.AU="au",e.NZ="nz",e.UK="uk",e.US="us"}(r||(r={}))},99705:(e,t,n)=>{var r,o;n.d(t,{b:()=>o}),function(e){e.AddToPlaylist="115005679748",e.EditSsoAccounts="8202508040345",e.LibraryEditor="360001974533",e.VideoAccess="360000153947",e.AddFromOnline="360011718234",e.UploadToLibraryEditor="360012069334",e.PBTErrorCodes="360012421153",e.ManuelReview="360020004534",e.LibraryReview="360000163788"}(r||(r={})),function(e){e.Integrations="4407268725529",e.Classrooms="4405362551833",e.MakeInteractive="4405370510873",e.EditSsoAccounts="8202605666073",e.UploadToLibraryEditor="10672936659865",e.AddFromLite="10671345281561",e.ManageSsoYearGroups="12522160412313",e.ContentReview="18525199576601",e.ContentPermissions="14692125209497",e.AccessSettings="22110291468057",e.ContentGuidelines="24133696186009",e.FoxtelFaq="24133519542169",e.ViviIntegration="23826297956377",e.AppleTvIntegration="25832373739929"}(o||(o={}))},12617:(e,t,n)=>{n.d(t,{E:()=>u});var r=n(99940),o=n(97395),a=n(62803),i=n(5960),c=n(4594),l=n(78417),u={videos:function(e,t){var n=a.v.VIDEO_COLLECTION,r=a.v.CLIP_COLLECTION,u=a.v.INTERACTIVE,s="videos[".concat(n,"]{libraries.typeid:").concat(c.E.WorkspaceCollection,"}"),d="clips[".concat(r,"]{status:").concat(i.X.Published,"}"),m="interactives[".concat(u,"]{status:[").concat(i.X.Published,",").concat(i.X.Draft,"]}"),p={query:"(".concat(s,"|").concat(d,"|").concat(m,"){orderbydesc:timestamp}"),permissionFilterOption:l.r.FilterOut};return t&&(p.cursor=t),{url:o._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),p),key:"my:videos:".concat(e,":").concat(t)}},workspaceWithCategories:function(){return{url:o._.urlBuilder("/api/domain/v2/me/libraries",{type:["workspace"],maxCategoryDepth:5}),key:"workspace:folders",normalize:!1}},exchangeWithCategories:function(){return{url:o._.urlBuilder("/api/domain/v2/me/libraries",{type:["exchange"],maxCategoryDepth:5}),key:"exchange:folders",normalize:!1}},addFolder:function(e){var t="/api/domain/v2/collections/".concat(e.collectionId,"/categories");return e.parentCategoryId&&(t=o._.urlBuilder(t,{parentCategoryId:e.parentCategoryId})),{url:t,key:"add:folder",type:r.k.POST,data:{name:e.name},invalidationKeys:["workspace","folder"]}},deleteFolder:function(e){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:folder",type:r.k.DELETE,invalidationKeys:["workspace","folder"]}},moveFolder:function(e){return{url:"/api/domain/v2/objects/move",key:"move:folder",type:r.k.POST,data:{assocType:"has",newCollectionId:e.newFolderId,oldCollectionId:e.oldFolderId,objectIds:[e.moveFolderId]},invalidationKeys:["workspace","folder"]}},updateFolder:function(e,t){return{url:"{gateway}/v1/objects/".concat(e),key:"rename:folder",type:r.k.PUT,data:{name:t},invalidationKeys:["workspace","folder"]}},videoFolders:function(e,t){return{url:"/api/domain/v2/objects/".concat(e,"/categories?query=libraries{id:").concat(t,"}"),key:"video:folders:".concat(e)}},moveVideo:function(e){var t={newCollectionId:e.newFolderId,oldCollectionId:e.oldFolderId,objectIds:[e.videoId]};return e.typeId===c.E.Interactive?t.memberType="interactives":e.typeId===c.E.Clip?t.memberType="clips":t.assocType="has",{url:"/api/domain/v2/objects/move",key:"move:folder",type:r.k.POST,data:t,invalidationKeys:["video"]}},addToExchange:function(e){return{url:"{gateway}/v1/users/me/videos/exchange",key:"add:to:exchange",type:r.k.POST,data:e}}}},54485:(e,t,n)=>{n.d(t,{b:()=>c});var r=n(32735),o=n(23481),a=n(11462),i=o.T.encloseNamespace("myVideos.hooks");function c(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return r.useMemo((function(){return(null==e?void 0:e.length)?{children:e.map((function(e){return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{name:t?i("myVideos"):e.data.name})})})).map(a.d.convertNestedObjectToTree)}:null}),[e])}},81720:(e,t,n)=>{n.r(t),n.d(t,{AddToExchangeView:()=>ie});var r=n(32735),o=n(81886),a=n(23481),i=n(20354),c=n(49985),l=n(65858),u=n(82644),s=n(9111),d=n(1575),m=n(69883),p=n(31908),v=n(14070),h=n(97291),f=n(24965),g=n(12617),y=n(54485),w=n(92802),E=n(5173),b=n(110),C=n(69624),k=n(38365),N=n(13876),S=n(83345),L=n(98495),x=n(55367);const T={selectButton:"HWv2E",suggestionsContainer:"m1Nm0"};var I="myVideos.addToExchange",F=a.T.encloseNamespace(I);function O(e){var t=(0,w.u6)();return r.createElement(k.W,{label:F("category"),name:"category",showRequiredStar:!0},(function(){var n,o,a;return r.createElement("div",{className:"dropdown mb-2"},r.createElement("button",{className:"dropdown-toggle form-control text-start position-relative ".concat(T.selectButton),type:"button",id:"select-folder","data-bs-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},r.createElement("div",{className:"text-truncate"},null!==(o=null===(n=t.values.category)||void 0===n?void 0:n.name)&&void 0!==o?o:r.createElement(S.x,{namespace:I,phrase:"categoryPlaceholder"}))),r.createElement("div",{className:"dropdown-menu w-100","aria-labelledby":"select-folder"},r.createElement(L.ZP,{autoHeight:!0,autoHeightMax:300,hideTracksWhenNotNeeded:!0},r.createElement(x.m,{tree:e.categories,onSelect:function(e){return t.setFieldValue("category",e,!0)},selectedIds:(null===(a=t.values.category)||void 0===a?void 0:a.id)?[t.values.category.id]:void 0,selectedLinkClassName:"bg-light fw-semibold",isDropdown:!0}))))}))}var A=n(97395),P=n(2136),U=n(97481),R=n(99742),_=a.T.encloseNamespace("myVideos.addToExchange");function j(){var e=(0,w.u6)();return r.createElement(k.W,{label:_("channel"),name:"channel",id:"channel",showRequiredStar:!0},(function(){var t,n;return r.createElement(r.Fragment,null,r.createElement(P.E,{theme:function(){return{suggestionsContainer:T.suggestionsContainer,suggestionsContainerOpen:"pb-0 pt-1 overflow-hidden bg-white border rounded position-absolute w-100"}},activationLength:2,placeholder:_("channelPlaceholder"),clearQueryOnSelect:!1,searchIconPlacement:!1,debounceTime:300,allowableSuggestionFetchRequestedReasons:["input-changed","input-focused"],getRemoteUrl:function(e){return A._.urlBuilder("/api/domain/v1/search/channel/instant/raw",{q:e})},onSuggestionSelected:function(t){return e.setFieldValue("channel",t,!0)},showClearInputIcon:!0,renderAsForm:!1,onClickClearInput:function(){return e.setFieldValue("channel",null,!0)},initialQuery:null!==(n=null===(t=e.values.channel)||void 0===t?void 0:t.name)&&void 0!==n?n:"",getErrorStateComponent:function(e){return r.createElement(U.d,{imageUrl:R.W.TYPEAHEAD_ERROR,onClickTryAgain:e})},getEmptyStateComponent:function(e){return r.createElement("div",null,_("emptySearch",{query:e}))}}))}))}var V=n(36848),M=n(72188),B=n(54610),G=n(99705),q=n(68626),D=n(12778),W="myVideos.addToExchange";function Y(e){return r.createElement(r.Fragment,null,r.createElement("p",null,r.createElement(S.x,{namespace:W,phrase:"message",options:{contentGuidelines:D.o.getLiteArticle(G.b.ContentGuidelines)}})),r.createElement("div",{className:"row form-group"},r.createElement("div",{className:"col-5"},r.createElement(M.u,{video:e.video,type:"cosmetic",imageOptions:{size:B.h2.Small},textPosition:q.z.Independent,preload:!0})),r.createElement("div",{className:"col-7"},r.createElement("h2",{className:"h6"},e.video.name),r.createElement(V.F,{appLink:{application:h.O.VIDEOS,action:v.e.Videos.EDIT_VIDEO,args:[e.video.id]},className:"info-link",onClick:e.onClickCancel},r.createElement(S.x,{namespace:W,phrase:"edit"})))),r.createElement("p",null,r.createElement(S.x,{namespace:W,phrase:"prompt"})))}var z=a.T.encloseNamespace("myVideos.addToExchange"),K=128;function Z(e){var t,n=(0,w.u6)();return r.createElement(k.W,{as:"select",label:z("rating"),name:"rating",showRequiredStar:!0,value:null===(t=n.values.rating)||void 0===t?void 0:t.id,onChange:function(t){var r=t.target.value;if(r){var o=e.ratings.find((function(e){return e.id.toString()===r.toString()}));n.setFieldValue("rating",o)}else n.setFieldValue("rating",null)}},r.createElement("option",{value:""},z("ratingPlaceholder")),e.ratings.map((function(e,t){return e.value>=K?r.createElement(r.Fragment,{key:t}):r.createElement("option",{key:t,value:e.id},e.code||e.name)})))}var H=a.T.encloseNamespace("myVideos.addToExchange");function Q(){var e=(0,w.u6)();return r.createElement(k.W,{label:H("series"),name:"series",id:"series"},(function(){var t,n;return r.createElement(r.Fragment,null,r.createElement(P.E,{theme:function(){return{suggestionsContainer:T.suggestionsContainer,suggestionsContainerOpen:"pb-0 pt-1 overflow-hidden bg-white border rounded position-absolute w-100"}},activationLength:2,placeholder:H("seriesPlaceholder"),clearQueryOnSelect:!1,searchIconPlacement:!1,debounceTime:300,allowableSuggestionFetchRequestedReasons:["input-changed","input-focused"],getRemoteUrl:function(e){return A._.urlBuilder("/api/domain/v1/search/series/instant/raw",{q:e,filterEmptySeries:!1})},onSuggestionSelected:function(t){return e.setFieldValue("series",t,!0)},showClearInputIcon:!0,renderAsForm:!1,onClickClearInput:function(){return e.setFieldValue("series",null,!0)},initialQuery:null!==(n=null===(t=e.values.series)||void 0===t?void 0:t.name)&&void 0!==n?n:"",getErrorStateComponent:function(e){return r.createElement(U.d,{imageUrl:R.W.TYPEAHEAD_ERROR,onClickTryAgain:e})},getEmptyStateComponent:function(e){return r.createElement("div",null,H("emptySearch",{query:e}))}}))}))}var X="myVideos.addToExchange",$=a.T.encloseNamespace(X),J=E.Ry().shape({category:E.Ry().required($("categoryRequired")),rating:E.Ry().nullable().required($("ratingRequired")),channel:E.Ry().required($("channelRequired")),dateBroadcast:E.Z_().required($("dateBroadcastRequired")),series:E.Ry(),seasonNumber:E.Rx().integer().min(1,(function(){return $("seasonNumberRange")})).max(3e3,(function(){return $("seasonNumberRange")})),episodeNumber:E.Rx().integer().min(1,(function(){return $("episodeNumberRange")})).max(2147483647,(function(){return $("episodeNumberRange")}))});function ee(e){var t=(0,w.u6)();return r.createElement(w.l0,null,r.createElement(Y,{video:e.video,onClickCancel:e.onClickCancel}),r.createElement("div",{className:"container"},r.createElement("div",{className:"row"},r.createElement("div",{className:"col-lg-6 col-12"},r.createElement(O,{categories:e.categories})),r.createElement("div",{className:"col-lg-6 col-12"},r.createElement(Z,{ratings:e.ratings}))),r.createElement("div",{className:"row"},r.createElement("div",{className:"col-lg-6 col-12"},r.createElement(j,null)),r.createElement("div",{className:"col-lg-6 col-12"},r.createElement(k.W,{type:"date",name:"dateBroadcast",label:$("dateBroadcast"),value:t.values.dateBroadcast?b.O.format(t.values.dateBroadcast,"YYYY-MM-DD"):"",min:"1927-09-07",max:b.O.format(new Date,"YYYY-MM-DD"),showRequiredStar:!0}))),r.createElement("div",{className:"row"},r.createElement("div",{className:"col-lg-6 col-12"},r.createElement(Q,null)),r.createElement("div",{className:"col-lg-6 col-12"},r.createElement("div",{className:"row"},r.createElement("div",{className:"col-6"},r.createElement(k.W,{label:$("seasonNumber"),type:"number",name:"seasonNumber",id:"seasonNumber",placeholder:$("seasonNumber"),autoFocus:!0,value:t.values.seasonNumber,required:!0,disabled:!t.values.series})),r.createElement("div",{className:"col-6"},r.createElement(k.W,{label:$("episodeNumber"),type:"number",name:"episodeNumber",id:"episodeNumber",placeholder:$("episodeNumber"),autoFocus:!0,value:t.values.episodeNumber,required:!0,disabled:!t.values.series})))))),r.createElement("p",null,r.createElement(S.x,{namespace:X,phrase:"disclaimer",options:{termsAndCondiditons:C.F.getTermsAndConditionsLink()}})),r.createElement(N.u,null,r.createElement(N.u.Cancel,{onClick:e.onClickCancel}),r.createElement(N.u.Submit,{variant:"dark",showSpinner:e.showSpinner,text:$("contribute")})))}function te(e){return te="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},te(e)}function ne(){ne=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var a=t&&t.prototype instanceof g?t:g,i=Object.create(a.prototype),c=new F(r||[]);return o(i,"_invoke",{value:L(e,n,c)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var m="suspendedStart",p="suspendedYield",v="executing",h="completed",f={};function g(){}function y(){}function w(){}var E={};u(E,i,(function(){return this}));var b=Object.getPrototypeOf,C=b&&b(b(O([])));C&&C!==n&&r.call(C,i)&&(E=C);var k=w.prototype=g.prototype=Object.create(E);function N(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,a,i,c){var l=d(e[o],e,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==te(s)&&r.call(s,"__await")?t.resolve(s.__await).then((function(e){n("next",e,i,c)}),(function(e){n("throw",e,i,c)})):t.resolve(s).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function L(t,n,r){var o=m;return function(a,i){if(o===v)throw new Error("Generator is already running");if(o===h){if("throw"===a)throw i;return{value:e,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=x(c,r);if(l){if(l===f)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===m)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var u=d(t,n,r);if("normal"===u.type){if(o=r.done?h:p,u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=h,r.method="throw",r.arg=u.arg)}}}function x(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var a=d(o,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,f;var i=a.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,f):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(te(t)+" is not iterable")}return y.prototype=w,o(k,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:y,configurable:!0}),y.displayName=u(w,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,u(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},N(S.prototype),u(S.prototype,c,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new S(s(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},N(k),u(k,l,"Generator"),u(k,i,(function(){return this})),u(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=O,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:O(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),f}},t}function re(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}var oe=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(e){a(e)}}function c(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,c)}l((r=r.apply(e,t||[])).next())}))},ae=a.T.encloseNamespace("myVideos.addToExchange");function ie(e){var t,n,a,w,E,b=(w=r.useState(!1),E=2,function(e){if(Array.isArray(e))return e}(w)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,c=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(w,E)||function(e,t){if(e){if("string"==typeof e)return re(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)?re(e,t):void 0}}(w,E)||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.")}()),C=b[0],k=b[1],N=i.a.useGetFetchAsync(),S=(0,m.Z)(),L=i.a.useBasicFetch(d.R.video(e.id)),x=i.a.useBasicFetch(g.E.exchangeWithCategories()),T=(0,y.b)(null===(n=null===(t=x.data)||void 0===t?void 0:t[0])||void 0===n?void 0:n.children,!1),I=i.a.useBasicFetch(f.Z.ratings()),F=L.hasCompleted&&x.hasCompleted&&I.hasCompleted;return r.createElement(s.G,{title:ae("title"),closePopup:e.closePopup,showLoadingSpinner:!F,size:"lg"},F&&r.createElement(u.n,{initialValues:{rating:L.data.rating,channel:L.data.channel,dateBroadcast:L.data.dateBroadcast,series:L.data.series,seasonNumber:null===(a=L.data.season)||void 0===a?void 0:a.number,episodeNumber:L.data.episodeNumber},validationSchema:J,onSubmit:function(t){var n;return oe(this,void 0,void 0,ne().mark((function r(){var a;return ne().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return k(!0),a={videoId:L.data.id,categoryId:t.category.id,videoAttribute:{name:L.data.name,description:L.data.description,rating:t.rating.id,dateBroadcast:t.dateBroadcast,productionYear:L.data.productionYear,channel:t.channel.id,series:null===(n=t.series)||void 0===n?void 0:n.id,seasonNumber:t.seasonNumber,episodeNumber:t.episodeNumber}},r.prev=2,r.next=5,N(g.E.addToExchange(a));case 5:c.k.logUserAction({id:L.data.id,name:L.data.name,isBroadcast:p.M.isBroadcast(L.data)},{actionType:l.Vw.Create,entity:l.py.Video,location:l.LZ.Popup,workflowPhase:l.eu.Complete,descriptor:l.ne.AddToExchange}),S.success(ae("success")),o.Q.C$.trigger({application:h.O.MY_VIDEOS,action:v.e.MyVideos.ADD_TO_EXCHANGE_SUCCESS}),r.next=14;break;case 10:r.prev=10,r.t0=r.catch(2),S.error(ae("error")),e.closePopup();case 14:case"end":return r.stop()}}),r,null,[[2,10]])})))},validateOnMount:!0},r.createElement(ee,{categories:T,ratings:I.data,onClickCancel:e.closePopup,showSpinner:C,video:L.data})))}},24965:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(97395),o={ratings:function(e){return{url:"/api/domain/v2/me/ratings",publicUrl:r._.urlBuilder("/api/domain/v2/me/ratings",{countryCode:e}),key:"ratings",formatData:function(e){return e.sort((function(e,t){return e.value-t.value}))}}}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[6746],{49935:(e,t,r)=>{r.d(t,{Oo:()=>u,b2:()=>d});var a=r(32735),n=r(36848),i=r(86764),c=r(3747),l=r(5859),o=r(35223),s=r(83914),m=function(e){var t=e.breadcrumb,r=t.name,i=t.appLink,c=t.active,l=e.withBackIcon;return a.createElement("li",{className:"breadcrumb-item".concat(c?" active":"")},c?a.createElement("strong",null,r):a.createElement(n.F,{appLink:i},l&&a.createElement(s.x,{svgName:o.vn.ChevronLeft,size:s.S.Small}),a.createElement("span",{className:l?"ms-2":""},r)))},u=function(e){var t=e.breadcrumbs,r=(0,c.a)(i.r.XS),n=null==t?void 0:t.length;return!n||r&&n<2?a.createElement(a.Fragment,null):r?a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},a.createElement(m,{breadcrumb:t[n-2],withBackIcon:!0}))):a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return a.createElement(m,{key:t,breadcrumb:e})}))))},d=a.memo((function(e){var t=e.numItems,r=void 0===t?3:t;return(0,c.a)(i.r.XS)?a.createElement("div",{className:"partial-loading-background",style:{height:"1.3125rem",width:"6rem"}}):a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},l.u.getPartialLoadingItems({numItems:r}).map((function(e,t){var r=e.width;return a.createElement("li",{key:t,className:"breadcrumb-item"},a.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:r},dangerouslySetInnerHTML:{__html:"&nbsp"}}))}))))}))},5859:(e,t,r)=>{function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}r.d(t,{u:()=>i});var n={numItems:5,minWidth:50,maxWidth:100},i={getPartialLoadingItems:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=Object.assign(Object.assign({},n),t);return(e=Array(r.numItems),function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(){return{width:"".concat(Math.max(Math.floor(Math.random()*r.maxWidth),r.minWidth),"px")}}))}}},81803:(e,t,r)=>{r.d(t,{d:()=>p});var a=r(32735),n=r(81886),i=r(23481),c=r(49935),l=r(22902),o=r(14070),s=r(97291),m=r(96368);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}var d="settings.settingsLayout",b=function(e){var t=(0,l.T)().hasPermissions,r=(0,m.e)();if(e)return t(e);var a=n.Q.C$.getCurrentAppLink();return a.application!==s.O.SETTINGS||r.some((function(e){return e.modules.some((function(e){return"appLink"in e&&e.appLink.action===a.action}))}))};function p(e){var t,r=b(e.requiredPermissions);if(a.useEffect((function(){r||n.Q.C$.trigger({application:s.O.SETTINGS,action:o.e.Settings.HOME},{replace:!0})}),[r]),!r)return a.createElement(a.Fragment,null);var l,m=e.breadcrumbs.map((function(t,r){return{name:t,appLink:{application:s.O.SETTINGS,action:o.e.Settings.HOME},active:r===e.breadcrumbs.length-1}}));return a.createElement("div",{className:"px-3"},a.createElement("div",{className:"d-flex align-items-center justify-content-between"},a.createElement("h1",{className:"h2"},e.heading),null===(t=e.headingButton)||void 0===t?void 0:t.call(e)),a.createElement("div",{className:"pb-3"},a.createElement(c.Oo,{breadcrumbs:[{name:i.T.getPhrase(d,"settingsBreadcrumb"),appLink:{application:s.O.SETTINGS,action:o.e.Settings.HOME}}].concat((l=m,function(e){if(Array.isArray(e))return u(e)}(l)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(l)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(l)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))})),e.description&&a.createElement(a.Fragment,null,a.createElement("p",null,e.description),a.createElement("hr",null)),e.children)}},56746:(e,t,r)=>{r.r(t),r.d(t,{LibrariesPermissionsView:()=>L});var a=r(32735),n=r(23481),i=r(20354),c=r(65858),l=r(60376),o=r(83914),s=r(83345),m=r(83523),u=r(54610),d=r(77963),b=r(65728),p=r(39151),v=r(98064),f=r(31949),g=r(69883),h=r(37802),E=r(67453),y=r(35223),S=r(81803);const N={library:"OpkQB",svgWrapper:"M3KDT"};var k="settings.librariesPermissions",w=n.T.encloseNamespace(k);function L(){var e=i.a.useBasicFetch(p.L.config()),t=i.a.useBasicFetch(f.N.currentUser()),r=(0,h.r)(c.LZ.Settings),n=r.liteStudentCustomLibraries,L=r.isLoadingSettings,I=r.updateSetting,A=i.a.useBasicFetch(v.D.domainLibraries(["customLibrary","sharedLibrary"])),O=(0,g.Z)();return t.data&&e.data&&A.data&&!L?a.createElement(S.d,{heading:w("heading"),breadcrumbs:[w("breadcrumb")]},a.createElement("div",{className:"w-50"},a.createElement("div",{className:"d-flex justify-content-between"},a.createElement("p",{className:"fw-semibold mb-1"},a.createElement(s.x,{namespace:k,phrase:"label"})),a.createElement(m.Z,{onClick:function(){var e={name:b.E.LiteStudentCustomLibraries,value:!n,kind:d.g.Temporary};I(t.data.customerId,e,(function(){O.success(w("success"))}),(function(){O.error(w("error"))}))},on:n})),a.createElement("p",{className:"mb-2"},a.createElement(s.x,{namespace:k,phrase:"description"})),a.createElement("div",{className:"border rounded-3 p-2"},A.data.map((function(e){var t,r,n,i;return a.createElement("div",{key:e.id,className:"d-flex py-1"},a.createElement("div",{className:"".concat(N.library," border rounded-circle")},a.createElement(l.f,{imageUrl:E.j.createUrl(null===(r=null===(t=e.owner)||void 0===t?void 0:t.logo)||void 0===r?void 0:r.url,{size:u.h2.Small}),svgSize:o.S.Small,svgWrapperClassName:"bg-teal ".concat(N.svgWrapper),svgName:!(null===(i=null===(n=e.owner)||void 0===n?void 0:n.logo)||void 0===i?void 0:i.url)&&y.vn.School})),a.createElement("div",{className:"ms-2"},e.name))}))))):a.createElement(a.Fragment,null)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[689],{83657:(e,n,t)=>{t.d(n,{e:()=>s});var a=t(32735),r=t(79014),o=t(10874),i=t(76177),c=t(42735),l=t(86509);function s(e){var n=a.useMemo((function(){return e.actions.sort((function(e,n){return e.order-n.order}))}),[e.actions]),t=[],s=[];n.forEach((function(e){e.button?t.push(e):s.push(e)}));var u="d-flex";return e.className&&(u+=" ".concat(e.className)),t.length||s.length?a.createElement("div",{className:u},a.createElement(a.Fragment,null,a.createElement("span",{className:"d-flex align-items-center"},t.length?t.map((function(e,n){return a.createElement(a.Fragment,{key:n},function(){if(e.label){var n=r.q.isFunction(e.label)?e.label:function(){return a.createElement(a.Fragment,null,e.label)};return a.createElement(c.K,{appLink:e.appLink,href:e.href,onClick:e.onClick,svgName:e.svgName,className:e.className,tooltip:e.tooltip,showSpinner:e.showSpinner,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled},n())}var t=a.createElement(o.h,{appLink:e.appLink,href:e.href,onClick:e.onClick,svgName:e.svgName,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled});return e.tooltip?a.createElement(i.u,{title:e.tooltip,spanHack:!0},t):t}())})):a.createElement(a.Fragment,null),e.sortComponent&&e.sortComponent,s.length?a.createElement(l.m,{actions:s,dropdownToggleClassName:e.actionsDropdownClassName,dropdownToggleSvgSize:e.dropdownToggleSvgSize}):a.createElement(a.Fragment,null)))):a.createElement(a.Fragment,null)}},86509:(e,n,t)=>{t.d(n,{m:()=>v});var a=t(32735),r=t(79014),o=t(81886),i=t(45157),c=t(49985),l=t(36848),s=t(83914),u=t(76177),d=t(35223);const m={dropdownToggle:"UCAnJ"};function f(e){var n="dropdown-item";return e&&(n+=" ".concat(e)),n}function p(e){var n=r.q.isFunction(e.action.label)?e.action.label:function(){return a.createElement(a.Fragment,null,e.action.label)};if(e.action.appLink)return a.createElement(l.F,{appLink:e.action.appLink,onClick:e.action.onClick,className:f(e.action.className),analyticsData:e.action.analyticsData,analyticsOptions:e.action.analyticsOptions,openInNewTab:e.action.openInNewTab,disabled:e.action.disabled},n());function t(n){n.preventDefault(),e.action.analyticsData&&e.action.analyticsOptions&&c.k.logUserAction(e.action.analyticsData,e.action.analyticsOptions),r.q.isFunction(e.action.onClick)&&e.action.onClick(),e.action.href&&o.Q.Ab.PageLoad(e.action.href,e.action.openInNewTab)}return e.action.href?a.createElement("a",{className:f(e.action.className),onClick:t,href:e.action.href},n()):a.createElement("span",{className:"cursor-pointer ".concat(f(e.action.className)),onClick:t,role:"button",tabIndex:0,onKeyDown:function(e){return"Enter"===e.key&&t(e)}},n())}function v(e){if(!e.actions||!e.actions.length)return a.createElement(a.Fragment,null);var n="dropdown";e.className&&(n+=" ".concat(e.className));var t="actions-dropdown-".concat(i.Y.getRandomInt()),r="dropdown-toggle px-0 ".concat(m.dropdownToggle);return e.dropdownToggleClassName&&(r+=" ".concat(e.dropdownToggleClassName)),a.createElement("div",{className:n},a.createElement("button",{className:r,type:"button",id:t,"data-bs-toggle":"dropdown","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},a.createElement(s.x,{svgName:d.vn.More,size:e.dropdownToggleSvgSize})),a.createElement("div",{className:"dropdown-menu dropdown-menu-end dropdown-menu-right","aria-labelledby":t},e.actions.map((function(e,n){return e.tooltip?a.createElement(u.u,{key:n,title:e.tooltip,spanHack:!0},a.createElement(p,{action:e})):a.createElement(p,{key:n,action:e})}))))}v.defaultProps={dropdownToggleClassName:"btn btn-light",dropdownToggleSvgSize:s.S.Small}},17808:(e,n,t)=>{t.d(n,{Q:()=>l});var a=t(32735),r=t(20455),o=t(95339),i=t(67445);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function l(e){var n,t,l=(n=a.useState(null),t=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,r,o,i,c=[],l=!0,s=!1;try{if(o=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;l=!1}else for(;!(l=(a=o.call(t)).done)&&(c.push(a.value),c.length!==n);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(s)throw r}}return c}}(n,t)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,n):void 0}}(n,t)||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.")}()),s=l[0],u=l[1],d=(0,r.Dy)((0,r.VT)(r.we,{activationConstraint:{distance:10}}),(0,r.VT)(r.Lg,{coordinateGetter:i.is}));return e.disabled?a.createElement(a.Fragment,null,e.children):a.createElement(r.LB,{sensors:d,collisionDetection:r.pE,onDragStart:function(n){var t;u(n.active.id),null===(t=e.onSortStart)||void 0===t||t.call(e,n)},onDragEnd:function(n){u(null),e.onSortEnd(n)},modifiers:e.vertical?[o.DL]:[]},a.createElement(i.Fo,{items:e.ids,strategy:e.vertical?i.qw:i.U2},e.children),a.createElement(r.y9,{dropAnimation:e.dropAnimation},s?e.getDragOverlay(s):null))}l.defaultProps={dropAnimation:{duration:250,easing:"ease"},vertical:!0}},1287:(e,n,t)=>{t.d(n,{W:()=>i});var a=t(32735),r=t(67445),o=t(17592);function i(e){var n=(0,r.nB)({id:e.id}),t=n.setNodeRef,i=n.transform,c=n.transition,l=n.isSorting,s=n.listeners,u=n.attributes,d=n.activeIndex,m=n.overIndex,f=n.index,p={transform:o.ux.Transform.toString(i),transition:c,touchAction:"none",position:"relative"};l&&f===d&&(p.visibility="hidden");var v=e.childComponent,g=function(e,n,t){return n!==e?null:t>n?"down":t<n?"up":null}(f,d,m);return a.createElement(v,Object.assign({},e.childProps,{ref:t,style:p,dragListeners:s,dragAttributes:u,dragDirection:g}))}},85784:(e,n,t)=>{t.d(n,{Q:()=>c});var a=t(32735),r=t(79014),o=t(83657),i=t(51365);function c(e){var n=a.useContext(i.M);if(!r.q.isFunction(n))return a.createElement(a.Fragment,null);var t=n(e.video,{analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions});return a.createElement(o.e,{actions:t,className:"float-end mt-n1",actionsDropdownClassName:"btn btn-link ms-1"})}},70872:(e,n,t)=>{t.d(n,{u:()=>l});var a=t(32735),r=t(65858),o=t(36848),i=t(38647),c=t(31908);function l(e){var n,t,l,s=c.M.getCanBeConsumed(e.video).canNavigate,u=c.M.getTitle(e.video),d=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.video)||void 0===n?void 0:n.id,name:null===(t=e.video)||void 0===t?void 0:t.name}),m=Object.assign(Object.assign({},e.analyticsOptions),{actionType:r.Vw.Click,descriptor:r._S.Title}),f=e.textClassName||"m-0 text-truncate mb-n1 pb-1 align-middle ".concat("md"===e.size?"h4":"h6");return a.createElement(o.F,{className:e.linkClassName,appLink:s?e.appLink:null,analyticsOptions:m,analyticsData:d},a.createElement("h5",{className:f,title:null!==(l=e.video.name)&&void 0!==l?l:""},u,a.createElement(i.m,{size:e.size,video:e.video,yearGroups:e.yearGroups})))}},51365:(e,n,t)=>{t.d(n,{M:()=>a});var a=t(32735).createContext(null)},81514:(e,n,t)=>{t.d(n,{V:()=>o});var a=t(86764),r=t(3747);function o(){var e=(0,r.a)(a.r.XS),n=(0,r.a)(a.r.SM),t=(0,r.a)(a.r.MD),o=(0,r.a)(a.r.LG),i=(0,r.a)(a.r.XL),c=(0,r.a)(a.r.XXL),l=a.r.LG;return e&&(l=a.r.XS),n&&(l=a.r.SM),t&&(l=a.r.MD),o&&(l=a.r.LG),i&&(l=a.r.XL),c&&(l=a.r.XXL),l}},80143:(e,n,t)=>{t.d(n,{n:()=>o});var a=t(32735),r=t(69454);function o(e,n){var t=a.useMemo((function(){return(null==e?void 0:e.length)&&n&&r.T.shouldShowAudiences(n)?r.T.getSortedPresentationAudiences(e,n):null}),[e]);return a.useMemo((function(){return(null==t?void 0:t.length)?r.T.getMergedPresentationAudienceString(t):null}),[t])}},69454:(e,n,t)=>{t.d(n,{T:()=>d});var a=t(75896),r=t(1048),o=t(55171);function i(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}var c=/\d/,l=function(e){var n,t,r=a.m.first(e),o=a.m.last(e);return r.name===o.name?r.name:"Advanced"===o.name?"lower"===(n=r.name.split(" "),t=1,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,r,o,i,c=[],l=!0,s=!1;try{if(o=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;l=!1}else for(;!(l=(a=o.call(t)).done)&&(c.push(a.value),c.length!==n);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(s)throw r}}return c}}(n,t)||function(e,n){if(e){if("string"==typeof e)return i(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(e,n):void 0}}(n,t)||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.")}())[0].toLowerCase()?"Lower Sec - Adv":"Upper Sec - Adv":"Lower - Upper Sec"},s=/([0-9]+)/gi,u=/\s|\+/gi,d={getSortedPresentationAudiences:function(e,n){var t=e.filter((function(e){return!!e})).map((function(e){return e.id.toString()}));return n.filter((function(e){return t.includes(e.masterId.toString())}))},getMergedPresentationAudienceString:function(e){var n,t,r,i="";switch(+a.m.first(e).presentationId){case o.e.PresentationIds.DEFAULT:case o.e.PresentationIds.AU_SECONDARY:case o.e.PresentationIds.US_ELEMENTARY:case o.e.PresentationIds.AU_PRIMARY:if(1===e.length)return e[0];i=function(e){var n=e.map((function(e){return e.name})).join(" "),t=n.split(" ").filter((function(e){return!isNaN(+e)})).map((function(e){return+e}))||[],a=n.split(" ").filter((function(e){return isNaN(+e)}))||[],r=e.find((function(e){return!c.test(e.name)})),o=a.find((function(e){return e!==(null==r?void 0:r.name)}));if(e.length>1&&(o+="s"),r&&t.length)return"".concat(o," ").concat(r.name.charAt(0)," - ").concat(t.pop());var i=function(e){var n,t,a,r,o=!1,i=[];for(e=e.sort((function(e,n){return e-n})),a=0;a<e.length;a++)r=a+1,o||(n=e[a]),t=e[r],e[a]+1===t?o=!0:o?(i.push("".concat(n," - ").concat(e[a])),o=!1):(i.push("".concat(e[a])),o=!1);return i}(t);return"".concat(o," ").concat(i.join(", "))}(e);break;case o.e.PresentationIds.SCOTLAND_PRIMARY:case o.e.PresentationIds.INTERNATIONAL_PRIMARY:case o.e.PresentationIds.INTERNATIONAL_SECONDARY:if(1===e.length)return e[0];i=function(e){var n=e.map((function(e){return e.name})),t={};n.forEach((function(e,n){if(0!==n){var a=e.split(" ");Object.keys(t).forEach((function(e){a.includes(e)||delete t[e]}))}else e.split(" ").forEach((function(e,n){t[e]=0===n?"start":"end"}))}));var a=Object.keys(t)[0],r=t[a];if(!a)return e[0].name;var o=e[0].name,i=e[e.length-1].name,c=function(e){return e.split(a)[0]},l="".concat(c(o)," - ").concat(c(i));return"start"===r?"".concat(a," ").concat(l):"".concat(l," ").concat(a)}(e);break;case o.e.PresentationIds.ENGLISH_SECONDARY:i=l(e);break;case o.e.PresentationIds.SCOTLAND_SECONDARY:n=e,t=a.m.first(n),r=a.m.last(n),i=t.name===r.name?t.name:"Senior Phase"===r.name?"".concat(t.name," - Senior"):"Third - Fourth Level";break;case o.e.PresentationIds.ENGLAND_PRIMARY:i=function(e){var n=a.m.first(e),t=a.m.last(e),r=a.m.first(n.name.split(" ")),o=a.m.first(t.name.split(" ")),i=n.name.split(" ").find((function(e){return!isNaN(+e)})),c=t.name.split(" ").find((function(e){return!isNaN(+e)}));if(n===t)return"Key"===r||"Reception"===r?n.name:"".concat(r," KS").concat(i);var l="",s="";return l="Reception"===r?"R":"KS".concat(i),s="KS".concat(c),"Lower"===r&&"Upper"===o?"L ".concat(l," - U ").concat(s):("Lower"===r&&(l="Lower ".concat(l)),"Upper"===o&&(s="Upper ".concat(s)),"Key"===o&&(s=t.name),"".concat(l," - ").concat(s))}(e);case o.e.PresentationIds.US_MIDDLE:case o.e.PresentationIds.US_HIGH:}return i?{name:i}:null},sortMembersWithDuplicateNamesByAudience:function(e){var n=function(e){return e.length?(e.forEach((function(e){var r=+a.m.first(e.name.match(s));if(!n)return n=e,void(t=r);r<t&&(n=e)})),n):null;var n,t},t={},r=[];return e.forEach((function(e){if(!t[e.name])return t[e.name]=1,void r.push(e);r.push(e),t[e.name]++;var a=r.splice(r.length-t[e.name]).sort((function(e,t){var a=n(e.subjectPresentationAudiences.data),r=n(t.subjectPresentationAudiences.data);if(!a&&r)return 1;if(!r)return-1;var o=a.name.localeCompare(r.name);return 0===o?o:o>0?-1:1}));r=r.concat(a)})),r},getActiveAudiencesFromParams:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r.t.isObject(n)&&!r.t.isEmpty(n)&&e&&e.length&&d.shouldShowAudiences(e)){var t=n.a;if(t){"string"==typeof t&&(t=[t]);var a=function(e){return e.replace(u,"").toLowerCase()},o=t.reduce((function(e,n){return e[a(n)]=n,e}),{});return e.filter((function(e){return o[a(e.name)]}))}}},getAudienceParams:function(e){return(null==e?void 0:e.length)?{a:e.map((function(e){return e.name}))}:null},shouldShowAudiences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return!!e&&e.length>1}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[6891],{73514:(e,a,t)=>{t.r(a),t.d(a,{MoviesAndTvView:()=>K});var n=t(32735),i=t(23481),r=t(81886),s=t(20354),l=t(75896),o=t(28400),d=t(65858),c=t(98364),u=t(83345),m=t(52382),p=t(16714),g=t(12754),v=t(78479),h=t(42308),T=t(22902),f=t(15311),A=t(98758),b=t(21366),E=t(23232),L=t(76177),C=t(35223),k="moviesAndTv.dashboardEmptyState",y=i.T.encloseNamespace(k);function I(e){var a,t,r=(null===(a=e.dashboard)||void 0===a?void 0:a.status)===A.GL.Archived;return n.createElement(E.u,null,n.createElement(E.u.Image,{src:e.imageUrl,altText:y("info")}),n.createElement(E.u.Heading,null,n.createElement(u.x,{namespace:k,phrase:"heading"})),n.createElement(E.u.Info,null,n.createElement(u.x,{namespace:k,phrase:"info"})),n.createElement(L.u,{title:r?i.T.getPhrase(k,"archivedCtaTooltip"):"",spanHack:!0},n.createElement(E.u.Cta,{text:i.T.getPhrase(k,"add"),appLink:null===(t=e.addWidgetApplink)||void 0===t?void 0:t.call(e),className:"btn btn-dark",icon:C.vn.Plus,disabled:r})))}const P={icon:"Kmx7z",title:"Hw1qq"};var w="moviesAndTv.dashboard";function S(e){var a,t=l.m.sortBy(null===(a=e.dashboard)||void 0===a?void 0:a.widgets,"index"),r=(0,T.T)().hasPermissions,s=(0,f.r)().hasProduct,o=r(p.C.StudentExperience),d=r(p.C.Exchange)&&s(g.x.Exchange),E=e.isReadonly?t:t.filter((function(e){return e.templateId!==v.f.HeroBannerSmall&&e.widgetId!==h.z.Blurb||d}));function L(a,t,n){var i=b.S.getWidgetParams(t,n,b.S.getDashboardTargetType(e.dashboard));return e.getWidgetContentRequest(a,i)}var C=e.isReadonly&&!(null==E?void 0:E.length);return n.createElement("div",{className:"px-4"},e.showPreviewingBanner&&n.createElement("div",{className:"rounded p-2 bg-light-blue mt-3 text-center fw-semibold text-blue"},n.createElement(c.V,{emoji:"🔎"},n.createElement(u.x,{namespace:w,phrase:"banner"}))),n.createElement("div",{className:"d-flex align-items-center"},n.createElement("div",{style:{backgroundImage:"url(".concat(e.moviesAndTvIconUrl,")")},className:"".concat(P.icon)}),n.createElement("h1",{className:"h2 ".concat(P.title)},i.T.getPhrase(w,"heading"))),n.createElement("hr",{className:"mt-2"}),E.map((function(a,t){return n.createElement(m.L,{key:a.id,id:a.id,imageCdnUrl:e.imageCdnUrl,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl,getContentRequest:L,audiences:e.audiences,name:a.name,description:a.description,templateId:a.templateId,metadata:a.metadata,presentation:e.presentation,setFavourite:e.setFavourite,canFavourite:e.canFavourite,appLinks:e.widgetAppLinks,isScrollToTargetWidget:(null==e?void 0:e.scrollToWidgetId)===a.id,widgetTypeId:a.widgetId,yearGroups:e.yearGroups,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest,lazyLoad:e.lazyLoad,dashboardTarget:A.ku.MoviesAndTv,widgetIndex:t,showVideoGuidance:!o,hasPermissions:e.hasPermissions,hasLocalPermissions:e.hasLocalPermissions,isPreviewing:e.isReadonly})})),C&&n.createElement(I,{dashboard:e.dashboard,isReadonly:e.isReadonly,imageUrl:e.emptyImageUrl,addWidgetApplink:e.widgetAppLinks.widgetWizard}))}var x=t(17475),N=t(183),R=t(21750),O=t(39151),M=t(80889),U=t(31949),F=t(97037),H=t(79612),W=t(37802),B=t(67753),D=t(99742),_=t(14070),V=t(97291),q=t(82817),z=t(7179),$=t(23737),j=t(30241),G=t(56017),Y=t(33192),Q=t(82431),Z=i.T.encloseNamespace("moviesAndTV.moviesAndTV"),J={rating:function(e,a){return{application:V.O.SEARCH,action:_.e.Search.HOME,params:{moviesAndTv:!0,rating:x.S.getFrontendParamValue([l.m.first(a),e])}}},classification:function(e){return{application:V.O.SUBJECT,action:_.e.Subjects.CLASSIFICATION,args:[null==e?void 0:e.id,o.m.slugify(null==e?void 0:e.name)],params:{mtv:!0}}},videoType:function(e,a){return B.W.getAppLink(e,{moviesAndTv:!0,context:N.Q.Widget,contextId:a})},series:function(e){return Q.j.getSeriesAppLink(e,{mtv:!0})},playlist:function(e){return{application:V.O.PLAYLISTS,action:_.e.Playlists.PLAYLIST,args:[e.id,o.m.slugify(e.name)],params:{mtv:!0}}},company:function(e){return{application:V.O.MOVIES_AND_TV,action:_.e.MoviesAndTv.COMPANY_DASHBOARD,args:[e.id,o.m.slugify(e.name)]}}};function K(e){var a,t,i=(0,T.T)(),l=i.hasPermissions,o=i.hasLocalPermissions,c=(0,W.r)(null),u=c.hasNewMoviesAndTv,m=c.isLoadingSettings,g=s.a.useBasicFetch(O.L.config()),v=s.a.useBasicFetch(U.N.currentUser()),h=(0,F.c)(d.LZ.ExpandableVideoThumbnail),f=h.setFavourite,b=h.canFavourite,E=(0,q.M)().activeCurriculum,L=(0,$.y)({targetType:A.ku.MoviesAndTv,queryParams:e.queryParams,presentationSlug:e.presentationSlug}),C=L.dashboard,k=L.presentation;return(0,z.P)({app:"movies-and-tv"}),(0,H.M)(G.C.getDefaultMetadata({title:null==k?void 0:k.name,phraseContext:{phraseHandler:Z,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:Y.f.getCanonicalLink(),hrefLang:Y.f.getStaticRouteHrefLang(null==k?void 0:k.learningLevel,(function(){return{application:V.O.MOVIES_AND_TV,action:_.e.MoviesAndTv.HOME}}),j.XA),allowIndexing:Y.f.allowIndexing()})),n.useEffect((function(){!m&&C.hasCompleted&&(u&&C.data||r.Q.C$.trigger({application:V.O.DASHBOARD,action:_.e.Dashboard.HOME},{replace:!0}))}),[u,m,C.data,C.hasCompleted]),n.createElement(S,{dashboard:C.data,currentUser:v.data,getWidgetContentRequest:M._.dashboardWidgetContent,imageCdnUrl:null===(a=g.data)||void 0===a?void 0:a.imageCdnUrl,resourceThumbnailFallbackImageUrl:D.W.Fallbacks.RESOURCE_THUMBNAIL,presentation:k,curriculum:E,getCurriculumLinksRequest:function(e){return R.x.curriculumLinks(e,null==E?void 0:E.id)},showPreviewingBanner:(null===(t=v.data)||void 0===t?void 0:t.isAuthenticated)&&!l(p.C.StudentExperience),moviesAndTvIconUrl:D.W.MoviesAndTv.DASHBOARD_ICON,widgetAppLinks:J,canFavourite:b,setFavourite:f,hasPermissions:l,hasLocalPermissions:o})}},68050:(e,a,t)=>{t.d(a,{Z:()=>d});var n=t(40841),i=t.n(n),r=t(32735),s=t(46304),l=t(74512);const o=r.forwardRef((({bsPrefix:e,className:a,as:t="div",...n},r)=>{const o=(0,s.vE)(e,"row"),d=(0,s.pi)(),c=(0,s.zG)(),u=`${o}-cols`,m=[];return d.forEach((e=>{const a=n[e];let t;delete n[e],null!=a&&"object"==typeof a?({cols:t}=a):t=a;const i=e!==c?`-${e}`:"";null!=t&&m.push(`${u}${i}-${t}`)})),(0,l.jsx)(t,{ref:r,...n,className:i()(a,o,...m)})}));o.displayName="Row";const d=o}}]);