@nulib/clover 4.5.7 → 4.5.9

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 (246) hide show
  1. package/dist/components/Items/Items.mjs +10 -3
  2. package/dist/components/Transcript/Transcript.mjs +17 -2
  3. package/dist/styles/default.css +1 -1
  4. package/dist/styles/items.css +1 -1
  5. package/dist/styles.css +1 -1
  6. package/dist/templates/default/Default.mjs +62 -15
  7. package/dist/templates/index.d.mts +3 -1
  8. package/dist/ui/useRovingFocus.mjs +6 -3
  9. package/dist/ui/useScrollTrack.mjs +8 -7
  10. package/dist/web-components/{About-VyQRiIMu.mjs → About-CGMm1-_m.mjs} +1 -1
  11. package/dist/web-components/{AnnotationItems-BlTIHa-e.mjs → AnnotationItems-D5YRBYo7.mjs} +1 -1
  12. package/dist/web-components/{AnnotationMenu-BwikEMPh.mjs → AnnotationMenu-CkTdOVgU.mjs} +1 -1
  13. package/dist/web-components/{AnnotationState-aXi45WGy.mjs → AnnotationState-DMgUWawu.mjs} +1 -1
  14. package/dist/web-components/{Annotations-DBqyfHcF.mjs → Annotations-CEshACVg.mjs} +1 -1
  15. package/dist/web-components/{Annotations-61qamybS.mjs → Annotations-DZX4QhcQ.mjs} +1 -1
  16. package/dist/web-components/{Body-DNMPENDm.mjs → Body-CLEco7_N.mjs} +1 -1
  17. package/dist/web-components/{BodyAlert-BiM1lAoB.mjs → BodyAlert-BP4r3Cd6.mjs} +1 -1
  18. package/dist/web-components/{Button-BLs5Picj.mjs → Button-JqNjqiWi.mjs} +1 -1
  19. package/dist/web-components/{Camera-CUmqAh54.mjs → Camera-Ccshr6VH.mjs} +1 -1
  20. package/dist/web-components/{Canvas2DBackend-D5Mgo0QW.mjs → Canvas2DBackend-B6073uEb.mjs} +1 -1
  21. package/dist/web-components/{CanvasView-BfOvex16.mjs → CanvasView-BCyHQxwA.mjs} +2 -2
  22. package/dist/web-components/{CaptionDetails-jNqdn9Mt.mjs → CaptionDetails-Cg-Qs1Vo.mjs} +1 -1
  23. package/dist/web-components/{ChaptersMenu-CNgG4zwW.mjs → ChaptersMenu-BlH2m--N.mjs} +1 -1
  24. package/dist/web-components/{Chevron-BdgGQvNa.mjs → Chevron-h5qzcEcw.mjs} +1 -1
  25. package/dist/web-components/{ChoiceMenu-CvS8F3X_.mjs → ChoiceMenu-DJzv0hit.mjs} +1 -1
  26. package/dist/web-components/{Collection-lzc7WD9g.mjs → Collection-DdgyAL7y.mjs} +1 -1
  27. package/dist/web-components/{CollectionSelect-CzgYKMt5.mjs → CollectionSelect-CI-gJrdr.mjs} +1 -1
  28. package/dist/web-components/Connected-Bfk00vQd.mjs +1 -0
  29. package/dist/web-components/{Connected-B_5LeFpt.mjs → Connected-Dz38Bzpd.mjs} +1 -1
  30. package/dist/web-components/Connected-XzGCGV5F.mjs +1 -0
  31. package/dist/web-components/{Contents-CtyHkeUB.mjs → Contents-RRatJCsY.mjs} +1 -1
  32. package/dist/web-components/{ControlMenu-CaZbfh-v.mjs → ControlMenu-CbGB6ddJ.mjs} +1 -1
  33. package/dist/web-components/ControlsFade-BPl7QLD-.mjs +1 -0
  34. package/dist/web-components/{CountMenu-DzEKtcUs.mjs → CountMenu-sy7-np4i.mjs} +1 -1
  35. package/dist/web-components/Cue-BtLDY60I.mjs +1 -0
  36. package/dist/web-components/{Document-D8BNUyN_.mjs → Document-CeqDB3XD.mjs} +1 -1
  37. package/dist/web-components/{DomLayers-CyfXsLu_.mjs → DomLayers-taxnJRum.mjs} +1 -1
  38. package/dist/web-components/{Download-CVW5MabM.mjs → Download-Car7CU2u.mjs} +1 -1
  39. package/dist/web-components/{EntryBodies-DZpB82X3.mjs → EntryBodies-BtpwwwYE.mjs} +1 -1
  40. package/dist/web-components/{EntryThumbnail-C9TitZhS.mjs → EntryThumbnail-BsvULLOE.mjs} +1 -1
  41. package/dist/web-components/{FieldPill-DQQzm8hG.mjs → FieldPill-cf9eBuE6.mjs} +1 -1
  42. package/dist/web-components/{FrameAnimation-C1a4L8pR.mjs → FrameAnimation-HthNp8Wy.mjs} +1 -1
  43. package/dist/web-components/{Gallery-D8PPijA-.mjs → Gallery-QK3ww9Sn.mjs} +1 -1
  44. package/dist/web-components/{GlobeGlyph-CRfMG161.mjs → GlobeGlyph-D3XRo_IQ.mjs} +1 -1
  45. package/dist/web-components/{HideToggle-DAb6JxDB.mjs → HideToggle-BdulLE7z.mjs} +1 -1
  46. package/dist/web-components/{ImageControls-BYNIBF8X.mjs → ImageControls-CiL_D1jJ.mjs} +1 -1
  47. package/dist/web-components/Items-Ch80infd.mjs +1 -0
  48. package/dist/web-components/{Label-BsqpZ2iR.mjs → Label-Bo3CK-L6.mjs} +1 -1
  49. package/dist/web-components/{LanguageChoice-BAici6Li.mjs → LanguageChoice-CPvKeMS_.mjs} +1 -1
  50. package/dist/web-components/{LanguageMenu-BTvnQxFI.mjs → LanguageMenu-DEoDIxlR.mjs} +1 -1
  51. package/dist/web-components/{LightboxView-C-eD7J97.mjs → LightboxView-D42ogB9b.mjs} +1 -1
  52. package/dist/web-components/{ListEnd-C-Ml1EYs.mjs → ListEnd-1VWK96re.mjs} +1 -1
  53. package/dist/web-components/{Loaded-B8vl-G-V.mjs → Loaded-1HMGKert.mjs} +1 -1
  54. package/dist/web-components/{LoadedCanvas-DGqbVGS7.mjs → LoadedCanvas-CDXDAq7C.mjs} +1 -1
  55. package/dist/web-components/LoadedMap-CKE1VBTk.mjs +1 -0
  56. package/dist/web-components/{Loading-UuKuHE79.mjs → Loading-DJ1DTuTP.mjs} +1 -1
  57. package/dist/web-components/{Map-CT5D-pfb.mjs → Map-1SoA6_NY.mjs} +1 -1
  58. package/dist/web-components/{MapView-Bsg_Olm7.mjs → MapView-Bh4hjBql.mjs} +2 -2
  59. package/dist/web-components/{Markup-CeeOSehy.mjs → Markup-CGp-sAk0.mjs} +1 -1
  60. package/dist/web-components/{MediaBody-Q6rhew4q.mjs → MediaBody-BCwNSKUW.mjs} +1 -1
  61. package/dist/web-components/{MediaBody-fQE-A-yD.mjs → MediaBody-nPvqRq1E.mjs} +1 -1
  62. package/dist/web-components/{NavDate-DdU75wtq.mjs → NavDate-BQjEV2AU.mjs} +1 -1
  63. package/dist/web-components/{Navigator-D8S66GNd.mjs → Navigator-BVKUD0-V.mjs} +1 -1
  64. package/dist/web-components/{Pager-B0QqGXp3.mjs → Pager-Ccdj43ZQ.mjs} +1 -1
  65. package/dist/web-components/{PagerLayout-s15H568t.mjs → PagerLayout-DwHzuFi9.mjs} +1 -1
  66. package/dist/web-components/{Panel-ByrpMdLY.mjs → Panel-xCi9RT4Z.mjs} +1 -1
  67. package/dist/web-components/PanelPart-BZDTLVZL.mjs +1 -0
  68. package/dist/web-components/{PanelToggle-B1QENm1I.mjs → PanelToggle-CSRKyPCu.mjs} +1 -1
  69. package/dist/web-components/{PartOfManifest-CUOEJX-B.mjs → PartOfManifest-VSzd2d_m.mjs} +1 -1
  70. package/dist/web-components/{Pending-DYgjpYcj.mjs → Pending-Dagi9Hhc.mjs} +1 -1
  71. package/dist/web-components/{PlaceBox-Bqr3fEt1.mjs → PlaceBox-C4_JBM6I.mjs} +1 -1
  72. package/dist/web-components/{Placeholder-DGPTR3uA.mjs → Placeholder-BLHxv7em.mjs} +1 -1
  73. package/dist/web-components/{Position-D8fef2x7.mjs → Position-SN6EMJW-.mjs} +1 -1
  74. package/dist/web-components/{Primitives-DuP39vJE.mjs → Primitives-C2f-ZV1J.mjs} +1 -1
  75. package/dist/web-components/{Provider-DIANDsur.mjs → Provider-DQ5Gz-Bh.mjs} +1 -1
  76. package/dist/web-components/{ReadMore-R-glAXeL.mjs → ReadMore-D4zZ4ZJ5.mjs} +1 -1
  77. package/dist/web-components/{Root-ChyZ9HKB.mjs → Root-ijCOCdMK.mjs} +1 -1
  78. package/dist/web-components/Scene-BnuKH1Ht.mjs +1 -0
  79. package/dist/web-components/{SceneView-BOE20DQY.mjs → SceneView-BgjiTjRe.mjs} +1 -1
  80. package/dist/web-components/{Search-B2H5S0R-.mjs → Search-DGAEkL-h.mjs} +1 -1
  81. package/dist/web-components/{Sections-d0uuX5tK.mjs → Sections-CPCPWIFr.mjs} +1 -1
  82. package/dist/web-components/{SeekMarks-TGu3Bbws.mjs → SeekMarks-DemiDpFP.mjs} +1 -1
  83. package/dist/web-components/{StandaloneItems-vJqJhY6P.mjs → StandaloneItems-DSTZPmPt.mjs} +1 -1
  84. package/dist/web-components/{Status-DCVccIz7.mjs → Status-BYnM-ITS.mjs} +1 -1
  85. package/dist/web-components/{Steps-VCHVkAOu.mjs → Steps-DByLc8pX.mjs} +1 -1
  86. package/dist/web-components/{TargetItems-krRcBfvc.mjs → TargetItems-BDt6OXh8.mjs} +1 -1
  87. package/dist/web-components/Timeline-DtE58r-z.mjs +1 -0
  88. package/dist/web-components/{Tip-B0TpGspf.mjs → Tip-h4Abk6aH.mjs} +1 -1
  89. package/dist/web-components/Transcript-CfOhWPdJ.mjs +1 -0
  90. package/dist/web-components/{Transport-BW0laFuy.mjs → Transport-B58M-XIa.mjs} +1 -1
  91. package/dist/web-components/{Transport-DixOWHie.mjs → Transport-Xwq6Cpn3.mjs} +1 -1
  92. package/dist/web-components/{annotation-collection-B7P4xVWB.mjs → annotation-collection-BH66kiGL.mjs} +1 -1
  93. package/dist/web-components/{annotation-name-BEuD2SqF.mjs → annotation-name-Biu7-abB.mjs} +1 -1
  94. package/dist/web-components/{annotations-content-BiEkS0ze.mjs → annotations-content-tLJ5sUiC.mjs} +1 -1
  95. package/dist/web-components/{body-VhEQIZz1.mjs → body-BIieugrZ.mjs} +1 -1
  96. package/dist/web-components/{canvas-BANXin9O.mjs → canvas-Cni09Q09.mjs} +1 -1
  97. package/dist/web-components/{cloverEngine-pxuhoj7w.mjs → cloverEngine-qypryrZ2.mjs} +1 -1
  98. package/dist/web-components/{content-state-reader-DVti_UNh.mjs → content-state-reader-DtRv0vnr.mjs} +1 -1
  99. package/dist/web-components/{controlGlyphs-DkQh1wkH.mjs → controlGlyphs-QLLc8cpa.mjs} +1 -1
  100. package/dist/web-components/{controls-DG9o_1Ms.mjs → controls-DuLb0zYy.mjs} +1 -1
  101. package/dist/web-components/{downloads-Ct1IVm1N.mjs → downloads-DUWW30ai.mjs} +1 -1
  102. package/dist/web-components/{dragToClose-B2D5gjIv.mjs → dragToClose-DAS5OWSl.mjs} +1 -1
  103. package/dist/web-components/{engine-DheXoWuS.mjs → engine-DaDzKDum.mjs} +1 -1
  104. package/dist/web-components/{engines-D3Nl9FJa.mjs → engines-DGQYmjhi.mjs} +1 -1
  105. package/dist/web-components/{fetchManifest-CZUkPEJT.mjs → fetchManifest-CDLkWDgP.mjs} +1 -1
  106. package/dist/web-components/{follow-content-DV7lsgAv.mjs → follow-content-Rav98zXa.mjs} +1 -1
  107. package/dist/web-components/{fromManifest-CaESsRH1.mjs → fromManifest-B8AlKP6a.mjs} +1 -1
  108. package/dist/web-components/{glyphs-_fryeQK1.mjs → glyphs-BzZKC9_8.mjs} +1 -1
  109. package/dist/web-components/{hooks-2wlZJ5Vj.mjs → hooks-BGorrvz7.mjs} +1 -1
  110. package/dist/web-components/{image-layers-BMG1Vq4O.mjs → image-layers-DPZluciF.mjs} +1 -1
  111. package/dist/web-components/{image-service-content-BHIDyYR5.mjs → image-service-content-BGBge-Nu.mjs} +1 -1
  112. package/dist/web-components/{imageService-Dr2yUnHN.mjs → imageService-DygjhKL0.mjs} +1 -1
  113. package/dist/web-components/{index-B2-GJaXD.mjs → index-GH8QRDv1.mjs} +1 -1
  114. package/dist/web-components/index.mjs +1 -1
  115. package/dist/web-components/items-BSsoG42S.mjs +1 -0
  116. package/dist/web-components/{items-DIK2DCYN.mjs → items-CtOmANs8.mjs} +1 -1
  117. package/dist/web-components/label-WSQUfpL6.mjs +1 -0
  118. package/dist/web-components/{layout-zLeHeNSF.mjs → layout-BmDYodJC.mjs} +1 -1
  119. package/dist/web-components/{link-gSAPkIaj.mjs → link-CQUMZL8-.mjs} +1 -1
  120. package/dist/web-components/logo-QdGDNl77.mjs +1 -0
  121. package/dist/web-components/{models-Cl3PryAF.mjs → models-BbiJP5tM.mjs} +1 -1
  122. package/dist/web-components/{nodes-DxdzLXSF.mjs → nodes-DARyEM2G.mjs} +1 -1
  123. package/dist/web-components/{overlayImage-mqkzG-e1.mjs → overlayImage-F-EX6YpI.mjs} +1 -1
  124. package/dist/web-components/{panel-zafZqMud.mjs → panel-COE-wxFK.mjs} +1 -1
  125. package/dist/web-components/part-CLteOpEJ.mjs +1 -0
  126. package/dist/web-components/{playerSurface-BEZ_dDs6.mjs → playerSurface-BAK0g9ik.mjs} +1 -1
  127. package/dist/web-components/{pointer-RBOOjlWj.mjs → pointer-DnJMax9Y.mjs} +1 -1
  128. package/dist/web-components/{provider-L0fhpZmV.mjs → provider-B9I7nScH.mjs} +1 -1
  129. package/dist/web-components/{range-regions-T_73-NWY.mjs → range-regions-DEnDbiy7.mjs} +1 -1
  130. package/dist/web-components/{read-more-CU3jFqSi.mjs → read-more-DkDjZsOx.mjs} +1 -1
  131. package/dist/web-components/{readingLanguages-DZsqrAWq.mjs → readingLanguages-DZxj1se7.mjs} +1 -1
  132. package/dist/web-components/{rendererSurface-FBwf4yii.mjs → rendererSurface-DKU6SaHP.mjs} +2 -2
  133. package/dist/web-components/{renderers-DCZW9zLC.mjs → renderers-17347cy8.mjs} +1 -1
  134. package/dist/web-components/{resource-C2zc8K9v.mjs → resource-CtPBxzcn.mjs} +1 -1
  135. package/dist/web-components/{save-file-Dp4Yp3CX.mjs → save-file-BF9IHyiG.mjs} +1 -1
  136. package/dist/web-components/{search-96l87qSf.mjs → search-CE2oKdT4.mjs} +1 -1
  137. package/dist/web-components/{shared-9sToDP5G.mjs → shared-BzLnvFn3.mjs} +1 -1
  138. package/dist/web-components/{show-link-23miLn_l.mjs → show-link-DuRktUta.mjs} +1 -1
  139. package/dist/web-components/{sizedImage-B_ze_WS6.mjs → sizedImage-DAaoYkRy.mjs} +1 -1
  140. package/dist/web-components/{split-CkWbkgmc.mjs → split-BP3eTM8x.mjs} +1 -1
  141. package/dist/web-components/{status-DZj0V4nZ.mjs → status-CpVNchw2.mjs} +1 -1
  142. package/dist/web-components/{styles-Di6TZHyP.mjs → styles-DbqlZvMR.mjs} +1 -1
  143. package/dist/web-components/three.mjs +1 -1
  144. package/dist/web-components/{thumbnail-22tHjWEh.mjs → thumbnail-BcediRH4.mjs} +1 -1
  145. package/dist/web-components/{tip-Skhs56Gk.mjs → tip-BRNRex1D.mjs} +1 -1
  146. package/dist/web-components/{toggle-DatEYCUk.mjs → toggle-hREejXk6.mjs} +1 -1
  147. package/dist/web-components/{useContainerName-B2qSONvC.mjs → useContainerName-DeDFbnAs.mjs} +1 -1
  148. package/dist/web-components/{useControlsVisibility-DYj5p1m8.mjs → useControlsVisibility-BYHbIHGH.mjs} +1 -1
  149. package/dist/web-components/{useNearViewport-CeEAjxcM.mjs → useNearViewport-BgvHaTUu.mjs} +1 -1
  150. package/dist/web-components/useScrollTrack-B7zWqV5x.mjs +1 -0
  151. package/dist/web-components/viewer/{AnnotationItems-CUVQu0sj.mjs → AnnotationItems-CDMYXEJY.mjs} +1 -1
  152. package/dist/web-components/viewer/{AnnotationMenu-DUywRsH9.mjs → AnnotationMenu-R-IJnoJr.mjs} +1 -1
  153. package/dist/web-components/viewer/{AnnotationState-Rp1bRCk0.mjs → AnnotationState-CvRSbJoR.mjs} +1 -1
  154. package/dist/web-components/viewer/{Annotations-C-XbGzkf.mjs → Annotations-CX2kTFir.mjs} +1 -1
  155. package/dist/web-components/viewer/{Annotations-D6XBVx_r.mjs → Annotations-D-vxlAH-.mjs} +1 -1
  156. package/dist/web-components/viewer/{Canvas2DBackend-DfeyF4Sn.mjs → Canvas2DBackend-CRyXTdaF.mjs} +1 -1
  157. package/dist/web-components/viewer/{CaptionDetails-Dm9OED9q.mjs → CaptionDetails-CpfNg-6d.mjs} +1 -1
  158. package/dist/web-components/viewer/{ChaptersMenu-CbUWVDlA.mjs → ChaptersMenu-B84VO_Mr.mjs} +1 -1
  159. package/dist/web-components/viewer/{ChoiceMenu-Dg3CMJC3.mjs → ChoiceMenu-CDG8LFjh.mjs} +1 -1
  160. package/dist/web-components/viewer/{Collection-GlPUR_Wq.mjs → Collection-BE7-wcaT.mjs} +1 -1
  161. package/dist/web-components/viewer/{Connected-D73s7-vD.mjs → Connected-BgYoWJ9x.mjs} +1 -1
  162. package/dist/web-components/viewer/{Connected-D_hC2NKq.mjs → Connected-CDglyxHQ.mjs} +1 -1
  163. package/dist/web-components/viewer/{Contents-DZDz1id8.mjs → Contents-YlFDgYna.mjs} +1 -1
  164. package/dist/web-components/viewer/{ControlMenu-IKgzjoAC.mjs → ControlMenu-CwOThPXI.mjs} +1 -1
  165. package/dist/web-components/viewer/ControlsFade-JiHTC1PR.mjs +1 -0
  166. package/dist/web-components/viewer/{CountMenu-CF-yZuq6.mjs → CountMenu-Bio1pBA5.mjs} +1 -1
  167. package/dist/web-components/viewer/Cue-Dtgk1XOR.mjs +1 -0
  168. package/dist/web-components/viewer/{Document-C5bJQXa7.mjs → Document-D3QFxaMG.mjs} +1 -1
  169. package/dist/web-components/viewer/{DomLayers-DM-5MV__.mjs → DomLayers-DqluSP_z.mjs} +1 -1
  170. package/dist/web-components/viewer/{Download-BcWqJ6gp.mjs → Download-COC-nK6_.mjs} +1 -1
  171. package/dist/web-components/viewer/{EntryBodies-CtnEnRhl.mjs → EntryBodies-UbloKBFE.mjs} +1 -1
  172. package/dist/web-components/viewer/{EntryThumbnail-CI6XobsH.mjs → EntryThumbnail-DftAANer.mjs} +1 -1
  173. package/dist/web-components/viewer/{FieldPill-DpVrScl7.mjs → FieldPill-D9c-u2aG.mjs} +1 -1
  174. package/dist/web-components/viewer/{FrameAnimation-B8lgrSfp.mjs → FrameAnimation-DljklLUX.mjs} +1 -1
  175. package/dist/web-components/viewer/{Gallery-BQnLyWZI.mjs → Gallery-ByCLq8nD.mjs} +1 -1
  176. package/dist/web-components/viewer/{GlobeGlyph-5YeAnzZS.mjs → GlobeGlyph-KKxBlsfc.mjs} +1 -1
  177. package/dist/web-components/viewer/{HideToggle-C8FqKQpl.mjs → HideToggle-BNnJlKG3.mjs} +1 -1
  178. package/dist/web-components/viewer/{ImageControls-C2TSU7YV.mjs → ImageControls-BCz88aeX.mjs} +1 -1
  179. package/dist/web-components/viewer/{LanguageChoice-CMRKNT1s.mjs → LanguageChoice-DSERkWEF.mjs} +1 -1
  180. package/dist/web-components/viewer/{LanguageMenu-DDysz3dn.mjs → LanguageMenu-Cv7bWG0F.mjs} +1 -1
  181. package/dist/web-components/viewer/{LightboxView-CMhIYI9F.mjs → LightboxView-ClQSmYRQ.mjs} +1 -1
  182. package/dist/web-components/viewer/{ListEnd-7_wAsufl.mjs → ListEnd-B6VtWReK.mjs} +1 -1
  183. package/dist/web-components/viewer/{MapView-CTJeP19U.mjs → MapView-4SX7XTs-.mjs} +2 -2
  184. package/dist/web-components/viewer/{MediaBody-D7gFPWmU.mjs → MediaBody-Cshfh_3F.mjs} +1 -1
  185. package/dist/web-components/viewer/{MediaBody-DJE41Ggr.mjs → MediaBody-CvXptO7l.mjs} +1 -1
  186. package/dist/web-components/viewer/{NavDate-B6GJyAZz.mjs → NavDate-l4WnJ7Ph.mjs} +1 -1
  187. package/dist/web-components/viewer/{Navigator-BP2BG8Za.mjs → Navigator-DilJ4hOg.mjs} +1 -1
  188. package/dist/web-components/viewer/{PagerLayout-D_lbzpje.mjs → PagerLayout-ZMGl6Hso.mjs} +1 -1
  189. package/dist/web-components/viewer/PanelPart-BiYn_NxJ.mjs +1 -0
  190. package/dist/web-components/viewer/{PartOfManifest-B1m_edb8.mjs → PartOfManifest-Ci8XArjU.mjs} +1 -1
  191. package/dist/web-components/viewer/{PlaceBox-CIX6eZX1.mjs → PlaceBox-DIKp5Qgf.mjs} +1 -1
  192. package/dist/web-components/viewer/{Placeholder-CqJ2MsHM.mjs → Placeholder-BFtTc4a5.mjs} +1 -1
  193. package/dist/web-components/viewer/{Search-DPmrOEIr.mjs → Search-CffzBngs.mjs} +1 -1
  194. package/dist/web-components/viewer/{SeekMarks-DXU1o9YQ.mjs → SeekMarks-BEujwiot.mjs} +1 -1
  195. package/dist/web-components/viewer/{StandaloneItems-iRdk8VYf.mjs → StandaloneItems-t0PWVVTU.mjs} +1 -1
  196. package/dist/web-components/viewer/{Steps-CuNUFA3I.mjs → Steps-MQSxvD8B.mjs} +1 -1
  197. package/dist/web-components/viewer/{TargetItems-QBE9CxwV.mjs → TargetItems-BdAvyfvp.mjs} +1 -1
  198. package/dist/web-components/viewer/Transcript-DR4SbDcf.mjs +1 -0
  199. package/dist/web-components/viewer/{Transport-C9EFEDJu.mjs → Transport-CWkJ1XOL.mjs} +1 -1
  200. package/dist/web-components/viewer/{Transport-iHzfi7uP.mjs → Transport-e9YUnvid.mjs} +1 -1
  201. package/dist/web-components/viewer/{annotation-collection-DTVrE-QZ.mjs → annotation-collection-BmIgw-9-.mjs} +1 -1
  202. package/dist/web-components/viewer/{annotation-name-DKTofYnE.mjs → annotation-name-BcZahQW_.mjs} +1 -1
  203. package/dist/web-components/viewer/{annotations-content-BlwlbeVP.mjs → annotations-content-BsCUZUiG.mjs} +1 -1
  204. package/dist/web-components/viewer/{cloverEngine-Dlh-z8EL.mjs → cloverEngine-Cd4MoqAY.mjs} +1 -1
  205. package/dist/web-components/viewer/{content-state-reader-CnnpSFlK.mjs → content-state-reader-CZzZVuIS.mjs} +1 -1
  206. package/dist/web-components/viewer/{dragToClose-CzrwaZo1.mjs → dragToClose-DwFUE5k_.mjs} +1 -1
  207. package/dist/web-components/viewer/{fetchManifest-BhVzHzo2.mjs → fetchManifest--iK6wT8O.mjs} +1 -1
  208. package/dist/web-components/viewer/{follow-content-BH2iMwBp.mjs → follow-content-CEoIPewi.mjs} +1 -1
  209. package/dist/web-components/viewer/{host-B2sqIwnE.mjs → host-B9_p4Vyw.mjs} +1 -1
  210. package/dist/web-components/viewer/{image-layers-Cd8Puz_E.mjs → image-layers-TE9lUAo8.mjs} +1 -1
  211. package/dist/web-components/viewer/{image-service-content-CJo34Kw3.mjs → image-service-content-BghMNjSP.mjs} +1 -1
  212. package/dist/web-components/viewer/index.mjs +1 -1
  213. package/dist/web-components/viewer/{link-Bf7oTjh2.mjs → link-BDYoIIG6.mjs} +1 -1
  214. package/dist/web-components/viewer/{overlayImage-D6ckInbH.mjs → overlayImage-B43PyGj2.mjs} +1 -1
  215. package/dist/web-components/viewer/{range-regions-CfXsCFU1.mjs → range-regions-BD5RPgtX.mjs} +1 -1
  216. package/dist/web-components/viewer/{renderers-C1iEbiXw.mjs → renderers-BGTNG2ao.mjs} +1 -1
  217. package/dist/web-components/viewer/{save-file-C6SVTxwd.mjs → save-file-B9oonwkE.mjs} +1 -1
  218. package/dist/web-components/viewer/{search-B6_Ctp53.mjs → search-BFTaFcIE.mjs} +1 -1
  219. package/dist/web-components/viewer/{styles-ihp-vncb.mjs → styles-nU97HodU.mjs} +1 -1
  220. package/dist/web-components/viewer/{useControlsVisibility-D-TA6qZW.mjs → useControlsVisibility-CdHbUJ_5.mjs} +1 -1
  221. package/dist/web-components/viewer/viewer-xpsvi-tg.mjs +29 -0
  222. package/dist/web-components/viewer/{vtt-fmAkEE-g.mjs → vtt-CDmiwLtu.mjs} +1 -1
  223. package/dist/web-components/viewer-PeMy2VzH.mjs +1 -0
  224. package/dist/web-components/{vtt-CJkd32sA.mjs → vtt-DRrShcvI.mjs} +1 -1
  225. package/package.json +1 -1
  226. package/dist/web-components/Connected-CdeTNEkW.mjs +0 -1
  227. package/dist/web-components/Connected-Dss8dX9u.mjs +0 -1
  228. package/dist/web-components/ControlsFade-BrZ4_xJu.mjs +0 -1
  229. package/dist/web-components/Cue-DgSWaxt6.mjs +0 -1
  230. package/dist/web-components/Items-DZ2rblNa.mjs +0 -1
  231. package/dist/web-components/LoadedMap-C-0BE0wY.mjs +0 -1
  232. package/dist/web-components/PanelPart-3w0sWqmU.mjs +0 -1
  233. package/dist/web-components/Scene-CUydm2WU.mjs +0 -1
  234. package/dist/web-components/Timeline-9S5GW0HA.mjs +0 -1
  235. package/dist/web-components/Transcript-DdoG3nZQ.mjs +0 -1
  236. package/dist/web-components/items-BCo1O5UF.mjs +0 -1
  237. package/dist/web-components/label-nN3wAmWa.mjs +0 -1
  238. package/dist/web-components/logo-C_MdkvAQ.mjs +0 -1
  239. package/dist/web-components/part-Cybq62qY.mjs +0 -1
  240. package/dist/web-components/useScrollTrack-SUztbI1C.mjs +0 -1
  241. package/dist/web-components/viewer/ControlsFade-N_UBYfTb.mjs +0 -1
  242. package/dist/web-components/viewer/Cue-CQXpS1cD.mjs +0 -1
  243. package/dist/web-components/viewer/PanelPart-BOXT_SZv.mjs +0 -1
  244. package/dist/web-components/viewer/Transcript-DlptB46U.mjs +0 -1
  245. package/dist/web-components/viewer/viewer-DAIgpvoG.mjs +0 -29
  246. package/dist/web-components/viewer-BYyFRkAV.mjs +0 -1
@@ -1,4 +1,4 @@
1
- import{bW as g}from"./viewer-DAIgpvoG.mjs";function l(e){const t=e.trim().split(":").map(Number);return t.some(Number.isNaN)?NaN:t.reduce((r,s)=>r*60+s,0)}const w={"&amp;":"&","&lt;":"<","&gt;":">","&nbsp;":"\xA0","&lrm;":"\u200E","&rlm;":"\u200F","&quot;":'"',"&apos;":"'"};function x(e){return e.replace(/<[^>]*>/g,"").replace(/&(?:#(\d+)|#x([0-9a-f]+)|[a-z]+);/gi,(t,r,s)=>{if(!r&&!s)return w[t.toLowerCase()]??t;const o=r?parseInt(r,10):parseInt(s,16);return o>0&&o<=1114111?String.fromCodePoint(o):t})}function h(e){const t=[],r=e.replace(/\r\n?/g,`
1
+ import{bW as g}from"./viewer-xpsvi-tg.mjs";function l(e){const t=e.trim().split(":").map(Number);return t.some(Number.isNaN)?NaN:t.reduce((r,s)=>r*60+s,0)}const w={"&amp;":"&","&lt;":"<","&gt;":">","&nbsp;":"\xA0","&lrm;":"\u200E","&rlm;":"\u200F","&quot;":'"',"&apos;":"'"};function x(e){return e.replace(/<[^>]*>/g,"").replace(/&(?:#(\d+)|#x([0-9a-f]+)|[a-z]+);/gi,(t,r,s)=>{if(!r&&!s)return w[t.toLowerCase()]??t;const o=r?parseInt(r,10):parseInt(s,16);return o>0&&o<=1114111?String.fromCodePoint(o):t})}function h(e){const t=[],r=e.replace(/\r\n?/g,`
2
2
  `).split(/\n{2,}/);for(const s of r){const o=s.split(`
3
3
  `).filter(c=>c.length),n=o.findIndex(c=>c.includes("-->"));if(n===-1)continue;const[i,p]=o[n].split("-->"),a=l(i),[d,...m]=p.trim().split(/\s+/),u=l(d);!Number.isFinite(a)||!Number.isFinite(u)||t.push({id:n?o[0]:"",start:a,end:u,settings:m.join(" "),raw:o.slice(n+1).join(`
4
4
  `)})}return t}function v(e){return h(e).map(({start:t,end:r,raw:s})=>{var n,i;const o=(i=(n=/<v(?:\.[^\s>]+)*\s+([^>]+)>/.exec(s))==null?void 0:n[1])==null?void 0:i.trim();return{start:t,end:r,text:x(s),...o?{voice:o}:{}}}).sort((t,r)=>t.start-r.start)}function S(e,t){let r=0,s=e.length-1,o=-1;for(;r<=s;){const n=r+s>>1;e[n].start<=t?(o=n,r=n+1):s=n-1}for(let n=o;n>=0;n--){if(e[n].end>t)return n;if(t-e[n].start>3600)break}return-1}function f(e,t,r,s){let o=e.get(t);return o||(o=g(r,t).then(n=>n.ok?s(n):Promise.reject(new Error(String(n.status)))).catch(n=>{throw e.delete(t),n}),e.set(t,o)),o}const N=new Map;function j(e,t){return f(N,e,t,r=>r.text())}const b=new Map;function B(e,t){return f(b,e,t,async r=>I(await r.arrayBuffer()))}const T="\u20AC\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\u017D\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\u017E\u0178";function I(e){try{return new TextDecoder("utf-8",{fatal:true}).decode(e)}catch{return new TextDecoder("windows-1252").decode(e).replace(/[\u0080-\u009f]/g,t=>T[t.charCodeAt(0)-128])}}function C(e){return e.replace(/\r\n?/g,`
@@ -0,0 +1 @@
1
+ import{D,A as N,d as x,y as E,q as R,T as J,u as s,Q as re,x as X,a as le,l as ae,_,k as j,b as se,c as Z,e as ce,R as ie,z as ee,f as ue,g as de,P as me}from"./shared-BzLnvFn3.mjs";import{u as te,P as fe}from"./Panel-xCi9RT4Z.mjs";import{T as pe}from"./Tip-h4Abk6aH.mjs";import{r as ve,w as ge,p as he,c as q,l as ye,t as be,n as Se,h as we}from"./splitting-BnQUxxgH.mjs";import"./styles-DbqlZvMR.mjs";import{P as Pe}from"./PanelToggle-CSRKyPCu.mjs";import{t as Ne}from"./heading-Cjt0f-Eu.mjs";import{I as M}from"./Items-Ch80infd.mjs";import{P as ze,L as Oe}from"./Provider-DQ5Gz-Bh.mjs";import{S as Ee}from"./Status-BYnM-ITS.mjs";import{B as Ae}from"./Body-CLEco7_N.mjs";import{R as xe}from"./Root-ijCOCdMK.mjs";import{u as Fe,a as Be,b as Ie}from"./hooks-BGorrvz7.mjs";import{L as T}from"./Label-Bo3CK-L6.mjs";import{Position as Ce}from"./Position-SN6EMJW-.mjs";const $=re(null);function W(e,n){typeof e=="function"?e(n):e&&(e.current=n)}const Le=D(function({as:n="div",storageKey:o,className:r,style:a,children:c,...i},m){const t=N(null),b=N({}),[g,u]=x({});E(()=>u(ve(o)),[o]);const S=R((f,w)=>u(y=>{const v={...y};return w===void 0?delete v[f]:v[f]=Math.round(w),ge(o,v),v}),[o]),h=J(()=>({sizes:g,setSize:S,specs:b,element:t}),[g,S]);return s($.Provider,{value:h,children:s(n,{ref:f=>{t.current=f,W(m,f)},className:["clover-split",r].filter(Boolean).join(" "),style:{display:"flex",...a},...i,children:c})})}),ne=D(function({as:n="div",size:o,min:r,max:a,name:c,className:i,style:m,children:t,...b},g){const u=X($),S=N(null),[h,f]=x(c??"");E(()=>{if(c)return f(c);const y=he(u==null?void 0:u.element.current);f(String(y.indexOf(S.current)))},[c,u]),u&&h&&(u.specs.current[h]={min:r,max:a,size:o});const w=u&&h?u.sizes[h]:void 0;return s(n,{ref:y=>{S.current=y,W(g,y)},className:["clover-split-pane",i].filter(Boolean).join(" "),"data-split-key":h||void 0,"data-sized":o!==void 0?"":void 0,style:{minWidth:q(r)??0,"--clover-split-size":w!==void 0?`${w}px`:q(o),"--clover-split-max":q(a),...m},...b,children:t})}),Re=D(function({className:n,children:o,onPointerDown:r,onClick:a,onKeyDown:c,...i},m){const t=X($),{t:b,langOf:g}=le(),u=N(null),[S,h]=x(),f=R(()=>{const l=u.current,p=t==null?void 0:t.element.current;return!l||!p||!t?null:ye(l,p,t.specs.current)},[t]),w=R(l=>{const p=f();if(!p||!t)return;const z=Math.min(p.max,Math.max(p.min,l));t.setSize(p.key,z),h({now:z,min:p.min,max:p.max})},[f,t]),y=R(()=>{const l=f();l&&h({now:l.sized.getBoundingClientRect().width,min:l.min,max:l.max})},[f]);E(()=>{const l=t==null?void 0:t.element.current;if(y(),!l||typeof ResizeObserver>"u")return;let p=0;const z=new ResizeObserver(()=>{cancelAnimationFrame(p),p=requestAnimationFrame(y)});return z.observe(l),()=>{cancelAnimationFrame(p),z.disconnect()}},[y,t,t==null?void 0:t.sizes]);const v=l=>{var p;return Math.round(l/(((p=t==null?void 0:t.element.current)==null?void 0:p.clientWidth)||1)*100)},O=()=>{var I,C;const l=f();if(!l||!t)return;const p=((I=t.element.current)==null?void 0:I.clientWidth)??0,z=be((C=t.specs.current[l.key])==null?void 0:C.size,p),B=Se(l,z,t.sizes[l.key]);if(!B.own)return w(B.to);t.setSize(l.key,void 0),h({now:z,min:l.min,max:l.max})},A=N({limits:f,resize:w,step:O});A.current={limits:f,resize:w,step:O};const[P]=x(()=>we(()=>u.current,()=>A.current));E(()=>()=>P.dispose(),[P]);const F=i["aria-label"]??b("splitHandle");return s("div",{ref:l=>{u.current=l,W(m,l)},role:"separator","aria-orientation":"vertical","aria-label":F,...ae(i["aria-label"]===void 0?g("splitHandle"):void 0),"aria-valuenow":S?v(S.now):void 0,"aria-valuemin":S?v(S.min):void 0,"aria-valuemax":S?v(S.max):void 0,tabIndex:0,className:["clover-split-handle",n].filter(Boolean).join(" "),onPointerDown:l=>{r==null||r(l),P.down(l)},onPointerMove:l=>P.move(l),onPointerUp:l=>P.up(l),onPointerCancel:l=>P.up(l),onClick:l=>{a==null||a(l),P.click(l)},onKeyDown:l=>{c==null||c(l),P.key(l)},...i,children:[o,s(pe,{label:F})]})});let Te,k;const oe=()=>Te??(Te=import("./dragToClose-DAS5OWSl.mjs").then(e=>k=e));function ke(){oe()}function Me(e,{enabled:n,side:o,onClose:r,scrim:a,alongside:c,exits:i=false}){const m=N({enabled:n,side:o,onClose:r,scrim:a,alongside:c,exits:i});m.current={enabled:n,side:o,onClose:r,scrim:a,alongside:c,exits:i},E(()=>{const t=e.current;if(!t||(k==null||k.reset(t,m),!n))return;let b=true,g;return oe().then(u=>{b&&(g=u.attach(t,m))}),()=>{b=false,g==null||g()}},[e,n])}const qe=240,je="16rem",De="14rem",_e=31;function $e(e){const[n,o]=x(e),[r,a]=x(e);return E(()=>{if(e){o(true);const i=requestAnimationFrame(()=>requestAnimationFrame(()=>a(true)));return()=>cancelAnimationFrame(i)}a(false);const c=setTimeout(()=>o(false),qe);return()=>clearTimeout(c)},[e]),{mounted:n,open:e&&r}}function We(e){const n=o=>e.querySelector(o);return n('[role="tab"][aria-selected="true"]')??n('.clover-sections-button[aria-expanded="true"]')??n(".clover-sections-button")}const He=typeof window>"u"?E:_;function Ve(e,n){const[o,r]=x();return He(()=>{const a=e.current;if(!a)return;const c=()=>{const m=a.clientWidth;if(!m)return;const t=parseFloat(getComputedStyle(document.documentElement).fontSize);r(m>=n*(t||16))};if(c(),typeof ResizeObserver>"u")return;const i=new ResizeObserver(c);return i.observe(a),()=>i.disconnect()},[e,n]),o}const Q=typeof window>"u"?E:_;function Ge({id:e,beside:n,defaultOpen:o,side:r,focus:a=We,slides:c=true,alongside:i,followFocus:m}){var V,G;const t=N(null),b=N(null),g=N(null),u=n===false,[S,h]=x(o),[f,w]=x(false),y=u?f:S,v=()=>document.querySelector(`button[aria-controls~="${e}"]`),O=()=>m(v),A=()=>{var d,K,U;(d=t.current)!=null&&d.contains(document.activeElement)&&((K=g.current)==null||K.removeAttribute("inert"),(U=v())==null||U.focus(),O())},P=N(0),F=d=>{P.current=u&&d?3:0,P.current||O(),u&&w(d),h(d)},l=()=>{A(),F(false)},p=N(n),z=N(false);if(p.current===true&&n===false){const d=document.activeElement;z.current=!!(d&&((V=t.current)!=null&&V.contains(d)||(G=v())!=null&&G.contains(d)))}Q(()=>{var d;z.current&&(z.current=false,(d=v())==null||d.focus(),O()),n===true&&w(false),p.current=n},[n]);const B=$e(c&&u&&y),I=c&&u,C=I?B.mounted:y,L=I?B.open:y,H=u&&L;return Q(()=>{const d=g.current;if(d)return H?d.setAttribute("inert",""):d.removeAttribute("inert"),()=>d.removeAttribute("inert")},[H]),E(()=>{if(!P.current||!t.current)return;P.current-=1;const d=a(t.current);d==null||d.focus({preventScroll:true}),d&&document.activeElement===d&&(P.current=0)}),Me(t,{enabled:u&&L,side:r,onClose:l,scrim:b,alongside:i,exits:!c}),{pane:t,main:g,over:u,open:y,shown:C,opened:L,setOpen:F,close:l,onKeyDown:d=>{u&&y&&d.key==="Escape"&&!d.defaultPrevented&&(d.preventDefault(),l())},scrim:u&&C&&{ref:b,"data-open":L,"aria-hidden":true,onMouseDown:d=>d.preventDefault(),onClick:l}}}const Ke=typeof window>"u"?E:_;function Ue(e,n,o){Ke(()=>{const r=e.current,a=r==null?void 0:r.parentElement;if(!o||!r||!a)return;const c=()=>{const t=n();r.style.setProperty("--clover-template-spine-top",`${t?t.getBoundingClientRect().top-a.getBoundingClientRect().top:0}px`)};c();const i=new ResizeObserver(c);for(const t of Array.from(a.children))i.observe(t);const m=n();return m&&i.observe(m),()=>i.disconnect()},[e,o])}const Qe=()=>import("./PanelPart-BZDTLVZL.mjs");function Ye({id:e,beside:n,defaultOpen:o,side:r="end",followFocus:a,body:c,sections:i,panel:m}){const t=Ge({id:e,beside:n,defaultOpen:o,side:r,followFocus:a}),b=!t.over&&t.open,g=N(null),[u,S]=x(),h=m??u,f=()=>Qe().then(v=>S(()=>v.default));E(()=>{t.open&&!h&&f()},[t.open]),Ue(g,()=>c==null?void 0:c(),b&&!!c);const w=v=>{var O,A;(A=(O=v.target).closest)!=null&&A.call(O,`[aria-controls~="${e}"]`)&&(h||f(),t.over&&ke())},y=s(Je,{sections:i,open:t.open,onOpenChange:v=>v&&!h?f().then(()=>t.setOpen(true)):t.setOpen(v),controls:e,side:r});return{...t,id:e,side:r,docked:b,spine:g,toggle:y,Part:h,splitProps:{"data-panel":t.over?"over":"beside",onKeyDown:t.onKeyDown,onPointerOver:w,onFocus:w}}}function Je({sections:e,...n}){return te(e).length?s(Pe,{...n}):null}function Xe({pane:e,className:n,...o}){const{id:r,over:a,docked:c,side:i,Part:m}=e,t=te(o.sections);if(!t.length)return null;const b=c&&s(j,{children:[s(Re,{className:"clover-template-panel-handle","aria-controls":r}),s("div",{ref:e.spine,className:"clover-template-spine",children:e.toggle})]});return s(j,{children:[i==="end"&&b,s(ne,{ref:e.pane,id:r,"data-spine":a||void 0,"data-side":i,name:"panel","data-about":t.includes("about")||void 0,className:["clover-template-panel clover-template-drawer",n].filter(Boolean).join(" "),size:"24rem",min:a?void 0:De,"data-open":e.opened,hidden:!e.shown,children:m&&s(m,{...o,onClose:a?e.close:void 0,closeOnEscape:a})}),i==="start"&&b,e.scrim&&s("div",{className:"clover-template-scrim",...e.scrim})]})}const Ze=30;function et(){const e=N(0);return E(()=>()=>cancelAnimationFrame(e.current),[]),n=>{cancelAnimationFrame(e.current);let o=0;const r=()=>{const a=n();a&&tt()?a.focus():++o<Ze&&(e.current=requestAnimationFrame(r))};e.current=requestAnimationFrame(r)}}function tt(){const e=document.activeElement;return!e||e===document.body||!e.isConnected||e.closest("[hidden], [inert]")!==null}function nt({className:e,header:n=true,headingLevel:o=2,panel:r=true,defaultPanelOpen:a,panelLayout:c="accordion",panelSections:i,panelLabels:m,download:t=true,languages:b=true,interfaceLanguages:g=true,items:u="slider",singleItem:S=false,storageKey:h="clover-template-default",fill:f=false,collapseControls:w,canvasOptions:y,...v}){const O=N(null),A=se().replace(/:/g,""),P=`${A}-panel`,F=Ne(o,`${A}-title`),l=Ye({id:P,beside:Ve(O,_e),defaultOpen:a??true,followFocus:et(),sections:i,body:()=>{var B;return(B=O.current)==null?void 0:B.querySelector(".clover-template-default-body")},panel:fe}),p=l.over,z=r&&l.docked;return s(xe,{className:["clover-template-default",e].filter(Boolean).join(" "),"data-fill":f||void 0,...n?F.group:null,...v,children:s(Le,{ref:O,className:"clover-template-default-panes clover-template-panes",storageKey:h||void 0,...r?l.splitProps:{"data-panel":"beside"},children:[s(ne,{ref:l.main,className:"clover-template-default-main",min:p?void 0:je,children:[n&&s("header",{className:"clover-template-default-header",children:[s(ot,{title:F}),s(M,{of:"targets",layout:"pager",size:"small",className:"clover-template-default-pager"}),s(ze,{className:"clover-template-default-provider",children:s(Oe,{})})]}),s(Ee,{loading:false}),s(lt,{items:u,singleItem:S,body:s(Ae,{className:"clover-template-default-body",collapseControls:w,options:y,children:r&&!z&&l.toggle},"body")})]}),r&&s(Xe,{pane:l,className:"clover-template-default-panel",layout:c,sections:i,labels:m,download:t,languages:b,interfaceLanguages:g,headingLevel:n?at(o):o})]})})}function ot({title:e}){const n=Z(r=>{var a;return r.throughCollection?(a=r.collection)==null?void 0:a.label:void 0}),o=Fe();return rt(o==null?void 0:o.entries[0]),s(j,{children:[s(T,{as:e.as,className:"clover-template-default-title clover-template-title clover-title",...e.title}),n&&s("div",{className:"clover-template-default-collection-row",children:[s(T,{as:"p",label:n,className:"clover-template-default-collection"}),s(M,{of:"members",layout:"pager",size:"small",className:"clover-template-default-pager"})]}),o&&s("div",{className:"clover-template-default-collection-row",children:[o.label&&s(T,{as:"p",label:o.label,className:"clover-template-default-collection"}),s(M,{of:"annotations",layout:"pager",size:"small",className:"clover-template-default-pager"})]})]})}function rt(e){const{clover:n}=ce(),o=Z(a=>{var c;return(c=a.manifest)==null?void 0:c.id}),r=N(null);E(()=>{if(!e||!o||r.current===o)return;r.current=o;const{annotationId:a,canvasId:c}=n.store.get();!a&&c===e.canvasId&&n.selectAnnotation(e.id)},[n,e,o])}function lt({body:e,items:n,singleItem:o}){const{direction:r}=Be(),a=n==="slider"&&(r==="top-to-bottom"||r==="bottom-to-top"),c=s("div",{className:"clover-template-default-rail-header",children:[s(st,{}),s(Ce,{})]},"header"),i=n&&s(M,{layout:n,orientation:a?"vertical":void 0,singleItem:o});return s("div",{className:"clover-template-default-views","data-orientation":a?"vertical":void 0,children:a?[s("div",{className:"clover-template-default-rail","data-orientation":"vertical",children:i},"rail"),e,c]:[e,s("div",{className:"clover-template-default-rail",children:[c,i]},"rail")]})}const at=e=>e+1;function st(){const e=Ie();return s("p",{className:"clover-template-default-titles",children:e.map((n,o)=>s(ie.Fragment,{children:[o>0&&s("span",{className:"clover-template-default-titles-dot","aria-hidden":"true",children:"\xB7"}),s(T,{label:n.label})]},n.id))})}const ct=ee(()=>import("./Document-CeqDB3XD.mjs").then(e=>({default:e.Document}))),it=ee(()=>import("./Gallery-QK3ww9Sn.mjs").then(e=>({default:e.Gallery}))),Y={default:nt,document:ct,gallery:it},ut={header:["default"],panel:["default","gallery"],items:["default","gallery"],singleItem:["default","document"],fill:["default"],defaultPanelOpen:["default","document","gallery"],panelLayout:["default","document","gallery"],panelSections:["default","document","gallery"],panelLabels:["default","document","gallery"],download:["default","document","gallery"],languages:["default","document","gallery"],storageKey:["default","document","gallery"],defaultSidebarOpen:["document"],size:["gallery"],height:["gallery"],gap:["gallery"],secondary:["gallery"],summary:["gallery"],lightboxItems:["gallery"]};function dt({props:e}){const n=typeof e.template=="string"&&e.template in Y?e.template:"default",o=Object.fromEntries(Object.entries(e).filter(([i])=>{var m;return i!=="template"&&(((m=ut[i])==null?void 0:m.includes(n))??true)})),r=ue(de,!!e.renderers),a=J(()=>r==null?void 0:r.toRenderers(e.renderers),[r,e.renderers]);if(e.renderers&&!r)return null;o.renderers=a,typeof o.storageKey=="string"&&(o.storageKey=o.storageKey.trim().toLowerCase()==="false"?false:o.storageKey);const c=Y[n];return s(me,{fallback:null,children:s(c,{...o,iiifContent:e.iiifContent})})}const At=Object.freeze(Object.defineProperty({__proto__:null,ViewerElement:dt},Symbol.toStringTag,{value:"Module"}));export{_e as B,je as P,Le as S,Ge as a,Ve as b,Ye as c,ne as d,Re as e,Xe as f,qe as g,ke as p,et as u,At as v};
@@ -1,4 +1,4 @@
1
- import{a4 as g}from"./shared-9sToDP5G.mjs";function l(e){const t=e.trim().split(":").map(Number);return t.some(Number.isNaN)?NaN:t.reduce((r,s)=>r*60+s,0)}const w={"&amp;":"&","&lt;":"<","&gt;":">","&nbsp;":"\xA0","&lrm;":"\u200E","&rlm;":"\u200F","&quot;":'"',"&apos;":"'"};function x(e){return e.replace(/<[^>]*>/g,"").replace(/&(?:#(\d+)|#x([0-9a-f]+)|[a-z]+);/gi,(t,r,s)=>{if(!r&&!s)return w[t.toLowerCase()]??t;const o=r?parseInt(r,10):parseInt(s,16);return o>0&&o<=1114111?String.fromCodePoint(o):t})}function h(e){const t=[],r=e.replace(/\r\n?/g,`
1
+ import{a4 as g}from"./shared-BzLnvFn3.mjs";function l(e){const t=e.trim().split(":").map(Number);return t.some(Number.isNaN)?NaN:t.reduce((r,s)=>r*60+s,0)}const w={"&amp;":"&","&lt;":"<","&gt;":">","&nbsp;":"\xA0","&lrm;":"\u200E","&rlm;":"\u200F","&quot;":'"',"&apos;":"'"};function x(e){return e.replace(/<[^>]*>/g,"").replace(/&(?:#(\d+)|#x([0-9a-f]+)|[a-z]+);/gi,(t,r,s)=>{if(!r&&!s)return w[t.toLowerCase()]??t;const o=r?parseInt(r,10):parseInt(s,16);return o>0&&o<=1114111?String.fromCodePoint(o):t})}function h(e){const t=[],r=e.replace(/\r\n?/g,`
2
2
  `).split(/\n{2,}/);for(const s of r){const o=s.split(`
3
3
  `).filter(c=>c.length),n=o.findIndex(c=>c.includes("-->"));if(n===-1)continue;const[i,p]=o[n].split("-->"),a=l(i),[d,...m]=p.trim().split(/\s+/),u=l(d);!Number.isFinite(a)||!Number.isFinite(u)||t.push({id:n?o[0]:"",start:a,end:u,settings:m.join(" "),raw:o.slice(n+1).join(`
4
4
  `)})}return t}function v(e){return h(e).map(({start:t,end:r,raw:s})=>{var n,i;const o=(i=(n=/<v(?:\.[^\s>]+)*\s+([^>]+)>/.exec(s))==null?void 0:n[1])==null?void 0:i.trim();return{start:t,end:r,text:x(s),...o?{voice:o}:{}}}).sort((t,r)=>t.start-r.start)}function S(e,t){let r=0,s=e.length-1,o=-1;for(;r<=s;){const n=r+s>>1;e[n].start<=t?(o=n,r=n+1):s=n-1}for(let n=o;n>=0;n--){if(e[n].end>t)return n;if(t-e[n].start>3600)break}return-1}function f(e,t,r,s){let o=e.get(t);return o||(o=g(r,t).then(n=>n.ok?s(n):Promise.reject(new Error(String(n.status)))).catch(n=>{throw e.delete(t),n}),e.set(t,o)),o}const N=new Map;function j(e,t){return f(N,e,t,r=>r.text())}const b=new Map;function B(e,t){return f(b,e,t,async r=>I(await r.arrayBuffer()))}const T="\u20AC\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\u017D\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\u017E\u0178";function I(e){try{return new TextDecoder("utf-8",{fatal:true}).decode(e)}catch{return new TextDecoder("windows-1252").decode(e).replace(/[\u0080-\u009f]/g,t=>T[t.charCodeAt(0)-128])}}function C(e){return e.replace(/\r\n?/g,`
package/package.json CHANGED
@@ -114,5 +114,5 @@
114
114
  "preact": "^10.24.3",
115
115
  "three": "^0.186.1"
116
116
  },
117
- "version": "4.5.7"
117
+ "version": "4.5.9"
118
118
  }
@@ -1 +0,0 @@
1
- import{e as v,c as u,y as S,T as b,u as C}from"./shared-9sToDP5G.mjs";import{S as q}from"./SceneView-BOE20DQY.mjs";import{a as w,e as x}from"./hooks-2wlZJ5Vj.mjs";function M({label:i,language:d,options:t,...f}){const r=v("Scene"),{clover:a}=r,e=w().find(n=>n.type==="Scene"),s=x(),g=u(n=>{var o;return n.status==="loading"?"loading":((o=n.manifest)==null?void 0:o.id)??""}),c=u(n=>n.target);S(()=>{c&&e&&c.canvasId===e.id&&a.consumeTarget()},[c,e,a]);const l=(t==null?void 0:t.request)??a.request,m=b(()=>({...t,request:l}),[t,l]);return e?C(q,{...f,scene:e,manifestId:g,label:i??e.label??(s==null?void 0:s.label),language:d??r.language,options:m}):null}export{M as default};
@@ -1 +0,0 @@
1
- import{u as o}from"./shared-9sToDP5G.mjs";import{p as a}from"./playerSurface-BEZ_dDs6.mjs";import n from"./Connected-B_5LeFpt.mjs";import{j as t}from"./classnames-DukgfdpI.mjs";import{a as m}from"./hooks-2wlZJ5Vj.mjs";function v({className:e,...r}){return m().some(i=>i.type==="Timeline")?o(n,{...r,className:t("clover-timeline",e),navigator:false,surface:a}):null}export{v as default};
@@ -1 +0,0 @@
1
- import{y as l}from"./shared-9sToDP5G.mjs";import{u}from"./useControlsVisibility-DYj5p1m8.mjs";function f({element:i,hideDelay:r,picture:s,onChange:o}){const t=u(i,r,s);return l(()=>o(t),[t,o]),null}export{f as default};
@@ -1 +0,0 @@
1
- import{u as e,am as o}from"./shared-9sToDP5G.mjs";import{j as i}from"./classnames-DukgfdpI.mjs";import"./styles-Di6TZHyP.mjs";function s({start:m,className:r}){return e("span",{className:i("clover-cue-time",r),children:o(m)})}export{s as C};
@@ -1 +0,0 @@
1
- import{t as P,u as o,v as xt,P as K,z as F,l as C,d as V,af as Rt,am as qt,A,y as S,q as kt,D as Bt,S as nt,c as R,ak as Ht,a7 as Ft,al as Ot,F as $t,a as Vt,b as Kt,a5 as jt,a6 as Ut,aa as Wt,ab as _t}from"./shared-9sToDP5G.mjs";import{thumbnailSource as zt,resolveThumbnail as Gt}from"./thumbnail-22tHjWEh.mjs";import{u as Yt,N as Jt}from"./useNearViewport-CeEAjxcM.mjs";import{h as Qt,T as Xt}from"./Tip-B0TpGspf.mjs";import{r as Zt}from"./dates-DR3gfcON.mjs";import{i as te,a as ee}from"./items-DIK2DCYN.mjs";import{j as ne}from"./classnames-DukgfdpI.mjs";import{u as oe}from"./useContainerName-B2qSONvC.mjs";import{a as re}from"./heading-Cjt0f-Eu.mjs";import{u as ae}from"./useScrollTrack-SUztbI1C.mjs";import"./styles-Di6TZHyP.mjs";const Nt='.clover-items-item[role="option"], .clover-items-link',H=new Map;let b=null,N=null,tt=0;function ot(t){const e=H.get(t);if(!e)return;const n=t.clientHeight>0&&t.scrollHeight>t.clientHeight+1;n!==e.cut&&(e.cut=n,e.change(n))}function et(){cancelAnimationFrame(tt),tt=requestAnimationFrame(()=>H.forEach((t,e)=>ot(e)))}function Ct(t){var r,s;if(t.key!=="Escape")return;const e=new Set,n=(s=(r=document.activeElement)==null?void 0:r.closest)==null?void 0:s.call(r,Nt);n&&e.add(n);try{document.querySelectorAll(`:is(${Nt}):hover`).forEach(i=>e.add(i))}catch{}const l=[...e].filter(i=>i.dataset.fullHidden===void 0&&i.querySelector(".clover-items-label-full"));l.length&&(t.preventDefault(),t.stopPropagation(),l.forEach(i=>Qt(i,"fullHidden",["pointerenter",i===n?"blur":"focus"])))}function le(){var t,e;b=typeof ResizeObserver>"u"?null:new ResizeObserver(n=>n.forEach(l=>ot(l.target))),N=typeof MutationObserver>"u"?null:new MutationObserver(et),N==null||N.observe(document.head,{childList:true,subtree:true,characterData:true}),N==null||N.observe(document.documentElement,{attributes:true,attributeFilter:["style","class"]}),(e=(t=document.fonts)==null?void 0:t.addEventListener)==null||e.call(t,"loadingdone",et),document.addEventListener("keydown",Ct,true)}function se(){var t,e,n;cancelAnimationFrame(tt),(t=b==null?void 0:b.disconnect)==null||t.call(b),N==null||N.disconnect(),b=N=null,(n=(e=document.fonts)==null?void 0:e.removeEventListener)==null||n.call(e,"loadingdone",et),document.removeEventListener("keydown",Ct,true)}function ie(t,e){var n;return H.size||le(),H.set(t,{change:e}),(n=b==null?void 0:b.observe)==null||n.call(b,t),ot(t),()=>{var l;H.delete(t),(l=b==null?void 0:b.unobserve)==null||l.call(b,t),H.size||se()}}const ce=F(()=>import("./NavDate-DdU75wtq.mjs").then(t=>t.a).then(({NavDate:t})=>({default:t})));function ue(t,e,n,l){const r=t.source!==void 0?t.source:zt(t.resource),[s,i]=V(r==null?void 0:r.src),f=(r==null?void 0:r.src)??(r==null?void 0:r.service)??(r==null?void 0:r.fallback);return S(()=>{if(!r)return i(void 0);if(r.src)return i(r.src);if(!l)return;let c=true;return Gt(r,e,n).then(p=>{c&&i(p)}),()=>{c=false}},[f,e,l]),{src:s,none:!r}}const de=()=>o("svg",{"aria-hidden":"true",focusable:"false",viewBox:"0 0 512 512",children:[o("path",{d:"M232 416a24 24 0 01-14.9-5.2L125.8 336H56a24 24 0 01-24-24V200a24 24 0 0124-24h69.8l91.3-74.8A24 24 0 01256 120v272a24 24 0 01-24 24z"}),o("path",{d:"M336 176a112 112 0 010 160M384 128a176 176 0 010 256",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"32"})]});function me({part:t,size:e,request:n,alt:l,altLang:r}){const[s,i]=V(null),f=Yt(s,Jt,s==null?void 0:s.closest('[data-layout="slider"] .clover-items-viewport')),{src:c,none:p}=ue(t,e,n,f),[v,u]=V(false),{width:y,height:h}=t.resource??{},x=y&&h?y/h:1;return o("span",{ref:i,className:"clover-items-picture","data-loaded":v,"data-empty":c?void 0:true,style:c&&!(y&&h)?void 0:{"--clover-items-ratio":x},children:[!c&&p&&Rt(t.media)&&o(de,{}),c&&o("img",{src:c,alt:l,...C(l?r:void 0),width:e,height:Math.round(e/x),loading:"lazy",decoding:"async",draggable:false,onLoad:()=>u(true),onError:()=>u(true)}),t.duration?o("span",{className:"clover-items-duration",children:qt(t.duration)}):null]})}function fe({text:t,lang:e,first:n}){const l=A(null),[r,s]=V(false);return S(()=>{const i=l.current;if(!(!i||!t))return ie(i,s)},[t]),o("span",{className:"clover-items-label","data-clamped":r||void 0,children:[!n&&" ",o("span",{ref:l,className:"clover-items-label-text",...C(t?e:void 0),children:t}),r&&o("span",{className:"clover-items-label-full",...C(e),"aria-hidden":"true",hidden:true,children:t})]})}function ve({item:t,size:e,language:n,request:l,showSummary:r=false,secondary:s="summary",labels:i=true}){var u,y;const f=t.parts.map(h=>P(t.parts.length===1?t.label:h.label,n)),c=r&&s==="summary"?P(t.summary,n):null,p=r&&s==="navDate"?Zt(t.navDate):null,v=f.some(h=>h.text);return o("figure",{role:"none",className:"clover-items-figure","data-parts":t.parts.length,"data-media":(y=(u=t.parts[0])==null?void 0:u.media)==null?void 0:y.toLowerCase(),style:{"--parts":t.parts.length},children:[o("span",{className:"clover-items-pictures",children:t.parts.map((h,x)=>{const m=f[x].text?{text:""}:P(h.label,n);return o(me,{part:h,size:e,request:l,alt:m.text,altLang:m.lang},h.id)})}),(v||p||(c==null?void 0:c.text))&&o("figcaption",{className:"clover-items-caption",style:i?void 0:xt,children:[f.map((h,x)=>o(fe,{text:h.text,lang:h.lang,first:x===0},t.parts[x].id)),p&&o(K,{fallback:null,children:o(ce,{value:t.navDate,className:"clover-items-date"})}),(c==null?void 0:c.text)&&o("span",{className:"clover-items-summary",...C(c.lang),children:c.text.replace(/<[^>]*>/g,"")})]})]})}function he(t,e,{orientation:n="both",rtl:l=false,onActivate:r,onMove:s}={}){const[i,f]=V(Math.max(0,e)),c=A([]),p=A(r);p.current=r;const v=A(s);v.current=s,S(()=>{e>=0&&f(e)},[e]);const u=Math.min(i,Math.max(0,t-1)),y=kt(m=>{var w;f(m),(w=c.current[m])==null||w.focus()},[]),h=kt((m,w)=>{var Q,U;const q=l?"ArrowLeft":"ArrowRight",J=l?"ArrowRight":"ArrowLeft",j=n!=="vertical",L=n!=="horizontal";let M=null;if(j&&m.key===q||L&&m.key==="ArrowDown")M=Math.min(t-1,w+1);else if(j&&m.key===J||L&&m.key==="ArrowUp")M=Math.max(0,w-1);else if(m.key==="Home")M=0;else if(m.key==="End")M=t-1;else if(m.key==="Enter"||m.key===" "){(Q=p.current)==null||Q.call(p,w,m),m.preventDefault();return}M!==null&&(m.preventDefault(),y(M),M!==w&&((U=v.current)==null||U.call(v,M,m)))},[t,n,l,y]);return{focused:u,itemProps:m=>({ref:w=>{c.current[m]=w},tabIndex:m===u?0:-1,onKeyDown:w=>h(w,m),onFocus:()=>f(m)})}}const He=Bt(function(e,n){return!nt()||e.iiifContent!==void 0||e.items!==void 0?o(K,{fallback:null,children:o(pe,{...e,forwardedRef:n})}):o(ge,{...e,forwardedRef:n})}),pe=F(()=>import("./StandaloneItems-vJqJhY6P.mjs"));function ge({of:t="views",...e}){return t==="targets"?o(we,{...e}):t==="annotations"?o(ke,{...e}):t==="members"?o(Mt,{...e}):o(Ne,{...e})}const be=F(()=>import("./TargetItems-krRcBfvc.mjs"));function we(t){return R(n=>{var l;return(((l=n.targets)==null?void 0:l.items.length)??0)>1})?o(K,{fallback:null,children:o(be,{...t})}):null}const ye=F(()=>import("./AnnotationItems-BlTIHa-e.mjs"));function ke(t){return R(n=>!!Ht(n.manifest,n.addedSets))?o(K,{fallback:null,children:o(ye,{...t})}):null}function Mt({onSelect:t,forwardedRef:e,...n}){const{clover:l,language:r}=nt(),s=R(v=>v.collection),i=R(v=>{var u;return((u=v.manifest)==null?void 0:u.id)??null}),f=te(s),c=Ft(s==null?void 0:s.viewingDirection);if(!f.length)return null;const p=(v,u)=>{t==null||t(v,u),l.goToManifest(v.id)};if(n.layout==="pager"){const v=f.findIndex(u=>u.id===i);return o(Tt,{...n,forwardedRef:e,steps:It(f,v,c,p),nameKey:"informationPanelTabsCollection",position:o(Ce,{position:v,total:f.length,list:u=>o(Mt,{layout:"list",forwardedRef:null,onSelect:u})})})}return o(At,{...n,forwardedRef:e,items:f,selected:f.findIndex(v=>v.id===i),navigation:"id",rtl:c==="right-to-left",language:r,request:l.request,showSummary:true,onActivate:p})}function Ne({onSelect:t,forwardedRef:e,singleItem:n=false,...l}){const{clover:r,language:s}=nt(),i=R(u=>u.manifest),f=R(u=>Ot(u.manifest,u.canvasId)),c=R(u=>$t(u.manifest).direction),p=ee(i);if(p.length<(n?1:2))return null;const v=u=>r.goTo(u.id);return l.layout==="pager"?o(Tt,{...l,forwardedRef:e,steps:It(p,f,c,v)}):o(At,{...l,forwardedRef:e,items:p,selected:f,navigation:"id",rtl:c==="right-to-left",language:s,request:r.request,onActivate:(u,y)=>{t==null||t(u,y),r.goTo(u.id)},followFocus:v})}function It(t,e,n,l){return{position:e,total:t.length,direction:n,step:(r,s)=>{const i=t[e+r];i&&l(i,s)}}}const xe=F(()=>import("./PagerLayout-s15H568t.mjs")),Ce=F(()=>import("./PagerLayout-s15H568t.mjs").then(({CountMenu:t})=>({default:t})));function Tt(t){return o(K,{fallback:null,children:o(xe,{...t})})}function At({forwardedRef:t,items:e,selected:n,navigation:l,rtl:r=false,layout:s="slider",orientation:i="horizontal",thumbnailSize:f=200,request:c,language:p,showSummary:v=false,secondary:u="summary",labels:y=true,heading:h,headingLevel:x=2,renderItem:m,onActivate:w,followFocus:q,as:J="section",className:j,"aria-label":L,size:M,singleItem:Q,highContrast:U,...rt}){var bt;const{t:W}=Vt(),O=Kt(),_=jt(t,rt.lang),{langOf:z}=_,Et=Ut(U),I=s==="slider",B=I&&i==="vertical",G=l==="id",at=A(null),lt=s==="masonry";S(()=>{const a=at.current;if(!lt||!a)return;let d,g=true;return import("./masonry-BZCdA3bV.mjs").then(({attachMasonry:T})=>{g&&(d=T(a))}),()=>{g=false,d==null||d()}},[lt]);const D=ae({align:G?"center":"start",itemCount:e.length,axis:B?"y":"x"}),X=A(void 0);S(()=>()=>window.clearTimeout(X.current),[]);const Lt=he(e.length,n,{orientation:B?"vertical":s==="slider"?"horizontal":s==="list"?"vertical":"both",rtl:r,onActivate:(a,d)=>w(e[a],d),onMove:q?(a,d)=>{window.clearTimeout(X.current);const g=()=>q(e[a]);d.repeat?X.current=window.setTimeout(g,150):g()}:void 0}),$=A(null),st=A(false);st.current=!!((bt=$.current)!=null&&bt.contains($.current.ownerDocument.activeElement)),S(()=>{var T;const a=$.current;if(!a||!st.current)return;const{activeElement:d,body:g}=a.ownerDocument;d&&d!==g||(T=a.querySelector(`[data-track-index="${Math.max(0,n)}"]`))==null||T.focus()},[e]);const Z=A(false);S(()=>{var g;if(n<0)return;const a=!Z.current;if(I){D.scrollToIndex(n,{instant:a})&&(Z.current=true);return}Z.current=true;const d=(g=$.current)==null?void 0:g.querySelector(`[data-track-index="${n}"]`);d&&Me(d,a)},[I,n,D.scrollToIndex]);const Dt=re(x),k=h?P(h.label,p):null,E=h?P(h.summary,p):null,it=L===void 0&&!!(k!=null&&k.text),ct=oe(W("itemsLabel"),z("itemsLabel"),L!==void 0||it,_.hostLanguage),ut=it?{"aria-labelledby":`${O}-title`}:L!==void 0?{"aria-label":L}:ct.props,dt=(a,d)=>m?m(a,{selected:d}):o(ve,{item:a,size:f,language:p,request:c,showSummary:v,secondary:u,labels:y}),mt=a=>!(m||P(a.label,p).text||v&&u==="summary"&&P(a.summary,p).text),ft=(a,d)=>mt(a)?W("canvasPosition",{index:d+1,total:e.length}):void 0,vt=a=>mt(a)?z("canvasPosition"):void 0,ht=I?{display:"flex",flexDirection:B?"column":void 0,margin:0,padding:0,listStyle:"none"}:void 0,pt=I?{flex:"0 0 auto",scrollSnapAlign:G?"center":"start"}:void 0,Y=G&&n>=0,gt=a=>{const d=n+(a==="prev"?-1:1),g=Y?d>=0&&d<e.length:a==="prev"?D.canScrollPrev:D.canScrollNext,T=Y?a==="prev"?"commonPrevious":"commonNext":a==="prev"?"itemsScrollBack":"itemsScrollForward",wt=W(T),Pt=St=>{if(!g)return;if(!Y)return(a==="prev"?D.scrollPrev:D.scrollNext)();const yt=e[d];q?q(yt):w(yt,St)};return o("button",{type:"button",className:`clover-items-scroll-${a}`,"aria-controls":Y?void 0:`${O}-viewport`,...C(z(T)),"aria-disabled":!g||void 0,tabIndex:g?void 0:-1,onClick:Pt,children:[o("svg",{"aria-hidden":"true",focusable:"false",width:"16",height:"16",viewBox:"0 0 16 16",children:o("path",{d:B?a==="next"?"M3 6l5 5 5-5":"M3 10l5-5 5 5":a==="next"!==r?"M6 3l5 5-5 5":"M10 3L5 8l5 5",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),o("span",{style:xt,children:wt}),o(Xt,{label:wt})]})};return o(_t.Provider,{value:_.hostLanguage,children:o(J,{ref:_.ref,className:ne("clover-items",j),"data-layout":s,"data-orientation":B?"vertical":void 0,"data-navigation":l,...Wt(Et),...rt,children:[h&&((k==null?void 0:k.text)||(E==null?void 0:E.text))&&o("header",{className:"clover-items-header",children:[(k==null?void 0:k.text)&&o(Dt,{className:"clover-items-title clover-title",id:`${O}-title`,...C(k.lang),children:k.text}),(E==null?void 0:E.text)&&o("p",{className:"clover-items-description",...C(E.lang),children:E.text.replace(/<[^>]*>/g,"")}),h.homepage&&o("a",{className:"clover-items-homepage",href:h.homepage,hrefLang:h.homepageLang,...C(z("commonViewAll")),children:W("commonViewAll")})]}),o("div",{className:"clover-items-frame",style:{position:"relative"},dir:r?"rtl":void 0,children:[I&&gt("prev"),o("div",{id:`${O}-viewport`,className:"clover-items-viewport",ref:I?D.ref:at,children:G?o("div",{ref:$,role:"listbox",...ut,"aria-orientation":B?"vertical":I?"horizontal":s==="list"?"vertical":void 0,className:"clover-items-track",style:ht,children:e.map((a,d)=>{const g=d===n;return o("div",{id:`${O}-${d}`,role:"option","aria-selected":g,"aria-label":ft(a,d),...C(vt(a)),className:"clover-items-item","data-track-index":d,style:pt,...Lt.itemProps(d),onClick:T=>w(a,T),children:dt(a,g)},a.id)})}):o("ul",{...ut,className:"clover-items-track",style:ht,children:e.map((a,d)=>o("li",{className:"clover-items-item","data-track-index":d,style:pt,children:o("a",{className:"clover-items-link",href:a.href,hrefLang:a.hrefLang,"aria-label":ft(a,d),...C(vt(a)),draggable:false,onClick:g=>w(a,g),children:dt(a,false)})},a.id))})}),I&&gt("next")]}),ct.node]})})}function Me(t,e){var i,f;let n=t.parentElement;for(;n&&n!==document.body;){const{overflowY:c}=getComputedStyle(n);if(/(auto|scroll)/.test(c)&&n.scrollHeight>n.clientHeight)break;n=n.parentElement}if(!n||n===document.body)return;const l=n.getBoundingClientRect(),r=t.getBoundingClientRect(),s=r.top<l.top?r.top-l.top:r.bottom>l.bottom?r.bottom-l.bottom:0;if(s){const c=(i=window.matchMedia)==null?void 0:i.call(window,"(prefers-reduced-motion: reduce)").matches;(f=n.scrollBy)==null||f.call(n,{top:s,behavior:e||c?"auto":"smooth"})}}export{He as I,Tt as P,At as a,It as s};
@@ -1 +0,0 @@
1
- import{u as o}from"./shared-9sToDP5G.mjs";import{ConnectedMap as l}from"./MapView-Bsg_Olm7.mjs";import{R as p}from"./Root-ChyZ9HKB.mjs";function m({iiifContent:t,request:a,language:e,forwardedRef:n,...r}){return o(p,{iiifContent:t,request:a,language:e,annotationPages:"all",style:{display:"contents"},children:o(l,{...r,scope:"all",forwardedRef:n})})}export{m as default};
@@ -1 +0,0 @@
1
- import{u as t}from"./shared-9sToDP5G.mjs";import{P as a}from"./Panel-ByrpMdLY.mjs";function n(r){return t(a,{...r})}export{n as default};
@@ -1 +0,0 @@
1
- import{S as r,u as e,z as o,P as t}from"./shared-9sToDP5G.mjs";import{S as a}from"./SceneView-BOE20DQY.mjs";import{C as i}from"./Pending-DYgjpYcj.mjs";const l=o(()=>import("./Connected-CdeTNEkW.mjs")),f=o(()=>import("./Loaded-B8vl-G-V.mjs"));function s(n){const c=r();return n.iiifContent!==void 0&&n.scene===void 0?e(t,{fallback:e(i,{}),children:e(f,{...n})}):n.scene?e(a,{...n}):c?e(t,{fallback:e(i,{}),children:e(l,{...n})}):null}export{s as Scene,s as default};
@@ -1 +0,0 @@
1
- import{S as f,u as a,z as l,P as r}from"./shared-9sToDP5G.mjs";import{C as m}from"./CanvasView-BfOvex16.mjs";import{p as t}from"./playerSurface-BEZ_dDs6.mjs";import{C as s}from"./Pending-DYgjpYcj.mjs";import{j as u}from"./classnames-DukgfdpI.mjs";const d=l(()=>import("./Connected-Dss8dX9u.mjs")),v=l(()=>import("./LoadedCanvas-DGqbVGS7.mjs"));function h({timeline:o,className:n,...e}){const c=f(),i=u("clover-timeline",n);return e.iiifContent!==void 0&&o===void 0?a(r,{fallback:a(s,{}),children:a(v,{...e,className:i,of:"Timeline",surface:t})}):o?a(m,{...e,className:i,canvases:[o],navigator:false,surface:t}):c?a(r,{fallback:a(s,{}),children:a(d,{...e,className:n})}):null}export{h as Timeline,h as default};
@@ -1 +0,0 @@
1
- import{D as Ie,a as Me,e as $e,c as we,n as Re,T as j,d as T,G as Se,y as f,O as Ee,C as Ae,A as O,b as Pe,u as n,t as ze,k as ue,l as $,v as Fe,$ as Ge,E as Ve}from"./shared-9sToDP5G.mjs";import{c as de,a as ge}from"./layout-zLeHeNSF.mjs";import{l as He,a as Ke,p as je,b as qe,c as De}from"./vtt-CJkd32sA.mjs";import{j as Ue}from"./classnames-DukgfdpI.mjs";import{u as Xe,c as Be}from"./readingLanguages-DZsqrAWq.mjs";import{G as Je}from"./GlobeGlyph-CRfMG161.mjs";import{b as pe,s as Qe}from"./bringIntoView-CQH5ZgMM.mjs";import{C as We}from"./Cue-DgSWaxt6.mjs";import{F as Ye}from"./FieldPill-DQQzm8hG.mjs";import{l as Ze}from"./languageCode-cCpiU0b0.mjs";import{a as _e}from"./Sections-d0uuX5tK.mjs";import{T as et}from"./Tip-B0TpGspf.mjs";import{u as tt}from"./useContainerName-B2qSONvC.mjs";import"./styles-Di6TZHyP.mjs";const q=40,D=r=>r.toLocaleLowerCase();function nt(r,l){if(!l)return r;const h=D(r),m=[];let c=0;for(let g=h.indexOf(l);g>=0;g=h.indexOf(l,g+l.length))g>c&&m.push(r.slice(c,g)),m.push(n("mark",{children:r.slice(g,g+l.length)},g)),c=g+l.length;return c<r.length&&m.push(r.slice(c)),m}const w=r=>r.read==="cues"&&r.kind!=="transcript",Ct=Ie(function({as:l="div",follow:h=true,find:m=true,sticky:c=false,size:g="large",className:me,...fe},he){const{t:U,langOf:X}=Me(),{clover:i,language:R}=$e("Transcript"),x=we(e=>Re(e.manifest,e.canvasId)).find(e=>de(e).length>0||ge(e).length>0),a=j(()=>x?[...de(x).map(e=>({...e,read:"cues"})),...ge(x).map(e=>({...e,read:"text"}))]:[],[x]),[B,S]=T(0),u=a[B]??a[0],v=Xe(),E=j(()=>{const e=(v==null?void 0:v.chosen)??R;if(e)return e;const t=a.flatMap(s=>s.language&&s.language!=="none"?[s.language]:[]);return t.length>1?Se(t):void 0},[v==null?void 0:v.chosen,R,a]);f(()=>{if(!E)return;const e=a.findIndex(s=>s.language&&s.language!=="none"&&Ee(s.language,E));if(e<0)return;S(e);const t=a[e];w(t)&&i.captions.get()!==t.id&&i.captions.emit(t.id)},[E,a,i]),f(()=>{const e=t=>{const s=a.findIndex(d=>w(d)&&d.id===t);s>=0&&S(s)};return e(i.captions.get()),i.captions.subscribe(e)},[i,a]);const[o,J]=T([]),[ve,Q]=T([]);f(()=>{if(J([]),Q([]),!u)return;let e=true;return(u.read==="cues"?He(u.id,i.request).then(t=>e&&J(je(t))):Ke(u.id,i.request).then(t=>e&&Q(qe(t)))).catch(()=>{}),()=>{e=false}},[u,i]);const b=Ae(i.media.subscribe,i.media.get,i.media.get),k=st(b,o),A=O(null);f(()=>{var t;if(!h||k<0||!b||b.paused)return;const e=(t=A.current)==null?void 0:t.children[k];e&&pe(e,"nearest")},[k,h,b]);const[W,Y]=T(""),p=D(W.trim()),C=j(()=>p?o.flatMap((e,t)=>D(e.text).includes(p)?[t]:[]):[],[o,p]),[P,be]=T({query:"",at:0}),y=P.query===p?P.at:0,z=O(null),F=O(false),[Z,Ce]=T({cues:[],count:q}),_=Z.cues===o?Z.count:q,G=()=>Ce({cues:o,count:_+q}),ee=O(G);ee.current=G;const V=typeof IntersectionObserver<"u",N=V?Math.min(o.length,Math.max(_,k+1,(C[y]??-1)+1)):o.length,te=O(null);f(()=>{const e=te.current;if(!e||!V||N>=o.length)return;const t=new IntersectionObserver(s=>{s.some(d=>d.isIntersecting)&&ee.current()},{root:Qe(e),rootMargin:"0px 0px 400px 0px"});return t.observe(e),()=>t.disconnect()},[V,N,o.length]);const I=C[y];f(()=>{var t;if(I===void 0)return;const e=(t=A.current)==null?void 0:t.children[I];e&&pe(e,"nearest"),F.current=false},[I,p]);const Te=o.length>0;f(()=>{var d;const e=(d=z.current)==null?void 0:d.closest(".clover-transcript-find"),t=e==null?void 0:e.parentElement;if(!c||!e||!t||typeof ResizeObserver>"u")return;const s=new ResizeObserver(()=>t.style.setProperty("--clover-transcript-find",`${e.offsetHeight}px`));return s.observe(e),()=>{s.disconnect(),t.style.removeProperty("--clover-transcript-find")}},[c,Te,m]);const H=Pe(),ne=_e(),se=a.every(w)?"playerCaptions":"transcriptLabel",re=tt(U(se),X(se));if(!x||!u)return null;const xe=a.filter(e=>e.read==="text").length,ae=a.map(e=>{const t=Ze(e.language);return e.read==="cues"?t:xe>1&&t?`TXT ${t}`:"TXT"}),ye=ae.map(e=>e&&ae.filter(t=>t===e).length===1?e:void 0),ce=u.language&&u.language!=="none"?u.language:void 0,oe=a.some(e=>e.read==="text"),Ne=Be(v,a.map(e=>e.language)),K=a.length>1&&(oe||!Ne)&&n(ue,{children:[re.node,n("fieldset",{...re.props,className:"clover-transcript-languages",children:[!oe&&n("span",{className:"clover-languages-glyph","aria-hidden":"true",children:n(Je,{})}),a.map((e,t)=>{const s=ze(e.label,R),d=ye[t],Oe=s.text||e.language||String(t+1);return n("label",{className:"clover-transcript-language",children:[n("input",{type:"radio",name:`${H}-language`,checked:t===B,onChange:()=>{S(t),w(e)&&i.captions.emit(e.id)}}),d&&n(ue,{children:[n("span",{className:"clover-transcript-code",children:d})," "]}),n("span",{style:d?Fe:void 0,...$(s.text?s.lang:void 0),children:Oe}),d&&s.text&&n(et,{label:s.text,lang:s.lang})]},e.id)})]})]}),ie=(e,t=true)=>{if(b){t?Ve(b,e.start):b.currentTime=e.start;return}i.goTo(x.id,{time:e.start,...t&&{autoplay:true}})},le=e=>{const t=o[C[e]];t&&(F.current=true,be({query:p,at:e}),ie(t,false))},ke={position:C.length?y:-1,total:C.length,step:e=>le(y+e)},L=C.length,M=p?L===0?"contentSearchResultsNone":L===1?"contentSearchResult":"contentSearchResults":null,Le=m&&u.read==="cues"&&o.length>0&&n("div",{className:"clover-transcript-find",children:[n(Ye,{ref:z,id:`${H}-find`,value:W,onChange:Y,onSubmit:()=>{if(!L)return;const e=P.query===p&&F.current;le(e?(y+1)%L:y)},onClear:()=>{var e;Y(""),(e=z.current)==null||e.focus()},results:p?ke:null,size:g,classes:{form:"clover-transcript-find-field"}}),n("p",{className:"clover-transcript-find-status",role:"status",...$(M?X(M):void 0),children:M?U(M,{count:L}):""})]});return n(l,{ref:he,className:Ue("clover-transcript",me),"data-sticky":c||void 0,...fe,children:[K&&(ne?Ge(K,ne):K),Le,u.read==="text"?n("div",{className:"clover-transcript-body",...$(ce),children:ve.map((e,t)=>n("p",{children:e},t))}):n("ol",{ref:A,className:"clover-transcript-cues",id:`${H}-cues`,...$(ce),children:o.slice(0,N).map((e,t)=>n("li",{className:"clover-transcript-cue","aria-current":t===k?"true":void 0,"data-match":p&&C.includes(t)?t===I?"current":"true":void 0,children:n("button",{type:"button",onClick:()=>ie(e),onFocus:()=>{N<o.length&&t>=N-5&&G()},children:[n(We,{start:e.start,className:"clover-transcript-time"}),n("span",{className:"clover-transcript-text clover-cue-text",children:[e.voice&&n("span",{className:"clover-transcript-voice",children:[e.voice,":"," "]}),nt(e.text,p)]})]})},`${e.start}-${t}`))}),u.read==="cues"&&N<o.length&&n("div",{ref:te,className:"clover-transcript-more","aria-hidden":"true"})]})});function st(r,l){const[h,m]=T(-1);return f(()=>{if(!r||!l.length){m(-1);return}const c=()=>m(De(l,r.currentTime));return c(),r.addEventListener("timeupdate",c),r.addEventListener("seeked",c),()=>{r.removeEventListener("timeupdate",c),r.removeEventListener("seeked",c)}},[r,l]),h}export{Ct as Transcript};
@@ -1 +0,0 @@
1
- import{T as m,u as r}from"./shared-9sToDP5G.mjs";import{I as o}from"./Items-DZ2rblNa.mjs";import{w as n}from"./nodes-DxdzLXSF.mjs";function I({props:t}){const e=m(()=>n(t,["renderItem"]),[t]);return r(o,{...e})}export{I as ItemsElement};
@@ -1 +0,0 @@
1
- import{u as e}from"./shared-9sToDP5G.mjs";import{L as o}from"./Label-BsqpZ2iR.mjs";function n({props:r}){return e(o,{...r})}export{n as LabelElement};
@@ -1 +0,0 @@
1
- import{u as t}from"./shared-9sToDP5G.mjs";import{L as n}from"./Provider-DIANDsur.mjs";function i({hosted:o,props:r}){var e;return((e=o.element.parentElement)==null?void 0:e.localName)==="clover-provider"?null:t(n,{...r})}export{i as LogoElement};
@@ -1 +0,0 @@
1
- import{T as i,u as e}from"./shared-9sToDP5G.mjs";import{w as u}from"./nodes-DxdzLXSF.mjs";function a(r,t=[]){return function({props:n}){const o=i(()=>u(n,t),[n]);return e(r,{...o})}}export{a as drawn};
@@ -1 +0,0 @@
1
- import{d as v,A as H,q as d,y}from"./shared-9sToDP5G.mjs";const M=5,b=()=>{var i;return typeof window<"u"&&!!((i=window.matchMedia)!=null&&i.call(window,"(prefers-reduced-motion: reduce)").matches)};function X({align:i="start",dragFree:S=false,itemCount:x=0,axis:L="x"}={}){const r=L==="y",[e,C]=v(null),[T,w]=v(false),[P,R]=v(false),g=H(i);g.current=i;const f=S?"none":`${L} mandatory`,p=d(()=>{if(!e)return;const t=Math.abs(r?e.scrollTop:e.scrollLeft),n=r?e.scrollHeight-e.clientHeight:e.scrollWidth-e.clientWidth;w(t>1),R(t<n-1)},[e,r]);y(()=>{if(!e)return;const t=e.style;t.overflowX=r?"hidden":"auto",t.overflowY=r?"auto":"hidden",t.scrollSnapType=f,t.setProperty("--clover-track-align",i),t.overscrollBehaviorX=r?"":"contain"},[e,f,i,r]),y(()=>{if(!e)return;let t=0;const n=()=>{cancelAnimationFrame(t),t=requestAnimationFrame(p)};p(),e.addEventListener("scroll",n,{passive:true});const o=typeof ResizeObserver<"u"?new ResizeObserver(n):null;return o==null||o.observe(e),e.firstElementChild&&(o==null||o.observe(e.firstElementChild)),()=>{cancelAnimationFrame(t),e.removeEventListener("scroll",n),o==null||o.disconnect()}},[e,p,x]);const u=d((t,n=false)=>{if(!e||!t)return;const o=n||b()?"auto":"smooth";e.scrollBy({[r?"top":"left"]:t,behavior:o})},[e,r]),k=d((t,{instant:n=false}={})=>{const o=e==null?void 0:e.querySelector(`[data-track-index="${t}"]`);if(!e||!o)return false;const c=e.getBoundingClientRect(),s=o.getBoundingClientRect(),h=getComputedStyle(e).direction==="rtl";return r?(u(g.current==="center"?s.top+s.height/2-(c.top+c.height/2):s.top-c.top,n),true):(u(g.current==="center"?s.left+s.width/2-(c.left+c.width/2):h?s.right-c.right:s.left-c.left,n),true)},[e,u,r]),m=d(t=>{if(!e)return;const n=!r&&getComputedStyle(e).direction==="rtl",o=r?e.clientHeight:e.clientWidth;u(t*o*.9*(n?-1:1))},[e,u,r]),A=d(()=>m(1),[m]),B=d(()=>m(-1),[m]);return y(()=>{if(!e)return;let t=null,n=false;const o=l=>{l.pointerType!=="mouse"||l.button!==0||(t={x:r?l.clientY:l.clientX,scroll:r?e.scrollTop:e.scrollLeft},n=false)},c=l=>{var E;if(!t)return;const a=(r?l.clientY:l.clientX)-t.x;!n&&Math.abs(a)<M||(n||(n=true,(E=e.setPointerCapture)==null||E.call(e,l.pointerId),e.style.scrollSnapType="none",e.dataset.dragging="true"),r?e.scrollTop=t.scroll-a:e.scrollLeft=t.scroll-a)},s=l=>{var a;t&&(t=null,n&&((a=e.releasePointerCapture)==null||a.call(e,l.pointerId),delete e.dataset.dragging,e.style.scrollSnapType=f))},h=l=>{n&&(n=false,l.preventDefault(),l.stopPropagation())};return e.addEventListener("pointerdown",o),e.addEventListener("pointermove",c),e.addEventListener("pointerup",s),e.addEventListener("pointercancel",s),e.addEventListener("click",h,true),()=>{e.removeEventListener("pointerdown",o),e.removeEventListener("pointermove",c),e.removeEventListener("pointerup",s),e.removeEventListener("pointercancel",s),e.removeEventListener("click",h,true)}},[e,f,r]),{ref:C,canScrollPrev:T,canScrollNext:P,scrollPrev:B,scrollNext:A,scrollToIndex:k,measure:p}}export{X as u};
@@ -1 +0,0 @@
1
- import{y as l}from"./viewer-DAIgpvoG.mjs";import{u}from"./useControlsVisibility-D-TA6qZW.mjs";function f({element:i,hideDelay:r,picture:s,onChange:o}){const t=u(i,r,s);return l(()=>o(t),[t,o]),null}export{f as default};
@@ -1 +0,0 @@
1
- import{u as r,bV as a,ai as m}from"./viewer-DAIgpvoG.mjs";import"./styles-ihp-vncb.mjs";function n({start:e,className:i}){return r("span",{className:m("clover-cue-time",i),children:a(e)})}export{n as C};
@@ -1 +0,0 @@
1
- import{u as r,a0 as t}from"./viewer-DAIgpvoG.mjs";function n(a){return r(t,{...a})}export{n as default};
@@ -1 +0,0 @@
1
- import{ak as Ie,ag as Me,a as $e,N as we,bd as Re,be as ue,bf as de,T as j,e as T,bg as Se,bh as Ae,y as h,bi as Ee,C as Pe,A as O,f as ze,bj as Fe,ah as Ve,bk as Ge,u as n,a9 as He,k as ge,ab as $,v as Ke,p as je,$ as qe,ai as De,b9 as Ue}from"./viewer-DAIgpvoG.mjs";import{l as Xe,a as Be,p as Je,b as Qe,c as We}from"./vtt-fmAkEE-g.mjs";import{G as Ye}from"./GlobeGlyph-5YeAnzZS.mjs";import{b as pe,s as Ze}from"../bringIntoView-CQH5ZgMM.mjs";import{C as _e}from"./Cue-CQXpS1cD.mjs";import{F as et}from"./FieldPill-DpVrScl7.mjs";import{l as tt}from"../languageCode-cCpiU0b0.mjs";import"./styles-ihp-vncb.mjs";const q=40,D=a=>a.toLocaleLowerCase();function nt(a,l){if(!l)return a;const m=D(a),f=[];let c=0;for(let g=m.indexOf(l);g>=0;g=m.indexOf(l,g+l.length))g>c&&f.push(a.slice(c,g)),f.push(n("mark",{children:a.slice(g,g+l.length)},g)),c=g+l.length;return c<a.length&&f.push(a.slice(c)),f}const w=a=>a.read==="cues"&&a.kind!=="transcript",pt=Ie(function({as:l="div",follow:m=true,find:f=true,sticky:c=false,size:g="large",className:fe,...he},me){const{t:U,langOf:X}=Me(),{clover:i,language:R}=$e("Transcript"),x=we(e=>Re(e.manifest,e.canvasId)).find(e=>ue(e).length>0||de(e).length>0),r=j(()=>x?[...ue(x).map(e=>({...e,read:"cues"})),...de(x).map(e=>({...e,read:"text"}))]:[],[x]),[B,S]=T(0),u=r[B]??r[0],v=Se(),A=j(()=>{const e=(v==null?void 0:v.chosen)??R;if(e)return e;const t=r.flatMap(s=>s.language&&s.language!=="none"?[s.language]:[]);return t.length>1?Ae(t):void 0},[v==null?void 0:v.chosen,R,r]);h(()=>{if(!A)return;const e=r.findIndex(s=>s.language&&s.language!=="none"&&Ee(s.language,A));if(e<0)return;S(e);const t=r[e];w(t)&&i.captions.get()!==t.id&&i.captions.emit(t.id)},[A,r,i]),h(()=>{const e=t=>{const s=r.findIndex(d=>w(d)&&d.id===t);s>=0&&S(s)};return e(i.captions.get()),i.captions.subscribe(e)},[i,r]);const[o,J]=T([]),[ve,Q]=T([]);h(()=>{if(J([]),Q([]),!u)return;let e=true;return(u.read==="cues"?Xe(u.id,i.request).then(t=>e&&J(Je(t))):Be(u.id,i.request).then(t=>e&&Q(Qe(t)))).catch(()=>{}),()=>{e=false}},[u,i]);const b=Pe(i.media.subscribe,i.media.get,i.media.get),k=st(b,o),E=O(null);h(()=>{var t;if(!m||k<0||!b||b.paused)return;const e=(t=E.current)==null?void 0:t.children[k];e&&pe(e,"nearest")},[k,m,b]);const[W,Y]=T(""),p=D(W.trim()),C=j(()=>p?o.flatMap((e,t)=>D(e.text).includes(p)?[t]:[]):[],[o,p]),[P,be]=T({query:"",at:0}),y=P.query===p?P.at:0,z=O(null),F=O(false),[Z,Ce]=T({cues:[],count:q}),_=Z.cues===o?Z.count:q,V=()=>Ce({cues:o,count:_+q}),ee=O(V);ee.current=V;const G=typeof IntersectionObserver<"u",N=G?Math.min(o.length,Math.max(_,k+1,(C[y]??-1)+1)):o.length,te=O(null);h(()=>{const e=te.current;if(!e||!G||N>=o.length)return;const t=new IntersectionObserver(s=>{s.some(d=>d.isIntersecting)&&ee.current()},{root:Ze(e),rootMargin:"0px 0px 400px 0px"});return t.observe(e),()=>t.disconnect()},[G,N,o.length]);const I=C[y];h(()=>{var t;if(I===void 0)return;const e=(t=E.current)==null?void 0:t.children[I];e&&pe(e,"nearest"),F.current=false},[I,p]);const Te=o.length>0;h(()=>{var d;const e=(d=z.current)==null?void 0:d.closest(".clover-transcript-find"),t=e==null?void 0:e.parentElement;if(!c||!e||!t||typeof ResizeObserver>"u")return;const s=new ResizeObserver(()=>t.style.setProperty("--clover-transcript-find",`${e.offsetHeight}px`));return s.observe(e),()=>{s.disconnect(),t.style.removeProperty("--clover-transcript-find")}},[c,Te,f]);const H=ze(),ne=Fe(),se=r.every(w)?"playerCaptions":"transcriptLabel",ae=Ve(U(se),X(se));if(!x||!u)return null;const xe=r.filter(e=>e.read==="text").length,re=r.map(e=>{const t=tt(e.language);return e.read==="cues"?t:xe>1&&t?`TXT ${t}`:"TXT"}),ye=re.map(e=>e&&re.filter(t=>t===e).length===1?e:void 0),ce=u.language&&u.language!=="none"?u.language:void 0,oe=r.some(e=>e.read==="text"),Ne=Ge(v,r.map(e=>e.language)),K=r.length>1&&(oe||!Ne)&&n(ge,{children:[ae.node,n("fieldset",{...ae.props,className:"clover-transcript-languages",children:[!oe&&n("span",{className:"clover-languages-glyph","aria-hidden":"true",children:n(Ye,{})}),r.map((e,t)=>{const s=He(e.label,R),d=ye[t],Oe=s.text||e.language||String(t+1);return n("label",{className:"clover-transcript-language",children:[n("input",{type:"radio",name:`${H}-language`,checked:t===B,onChange:()=>{S(t),w(e)&&i.captions.emit(e.id)}}),d&&n(ge,{children:[n("span",{className:"clover-transcript-code",children:d})," "]}),n("span",{style:d?Ke:void 0,...$(s.text?s.lang:void 0),children:Oe}),d&&s.text&&n(je,{label:s.text,lang:s.lang})]},e.id)})]})]}),ie=(e,t=true)=>{if(b){t?Ue(b,e.start):b.currentTime=e.start;return}i.goTo(x.id,{time:e.start,...t&&{autoplay:true}})},le=e=>{const t=o[C[e]];t&&(F.current=true,be({query:p,at:e}),ie(t,false))},ke={position:C.length?y:-1,total:C.length,step:e=>le(y+e)},L=C.length,M=p?L===0?"contentSearchResultsNone":L===1?"contentSearchResult":"contentSearchResults":null,Le=f&&u.read==="cues"&&o.length>0&&n("div",{className:"clover-transcript-find",children:[n(et,{ref:z,id:`${H}-find`,value:W,onChange:Y,onSubmit:()=>{if(!L)return;const e=P.query===p&&F.current;le(e?(y+1)%L:y)},onClear:()=>{var e;Y(""),(e=z.current)==null||e.focus()},results:p?ke:null,size:g,classes:{form:"clover-transcript-find-field"}}),n("p",{className:"clover-transcript-find-status",role:"status",...$(M?X(M):void 0),children:M?U(M,{count:L}):""})]});return n(l,{ref:me,className:De("clover-transcript",fe),"data-sticky":c||void 0,...he,children:[K&&(ne?qe(K,ne):K),Le,u.read==="text"?n("div",{className:"clover-transcript-body",...$(ce),children:ve.map((e,t)=>n("p",{children:e},t))}):n("ol",{ref:E,className:"clover-transcript-cues",id:`${H}-cues`,...$(ce),children:o.slice(0,N).map((e,t)=>n("li",{className:"clover-transcript-cue","aria-current":t===k?"true":void 0,"data-match":p&&C.includes(t)?t===I?"current":"true":void 0,children:n("button",{type:"button",onClick:()=>ie(e),onFocus:()=>{N<o.length&&t>=N-5&&V()},children:[n(_e,{start:e.start,className:"clover-transcript-time"}),n("span",{className:"clover-transcript-text clover-cue-text",children:[e.voice&&n("span",{className:"clover-transcript-voice",children:[e.voice,":"," "]}),nt(e.text,p)]})]})},`${e.start}-${t}`))}),u.read==="cues"&&N<o.length&&n("div",{ref:te,className:"clover-transcript-more","aria-hidden":"true"})]})});function st(a,l){const[m,f]=T(-1);return h(()=>{if(!a||!l.length){f(-1);return}const c=()=>f(We(l,a.currentTime));return c(),a.addEventListener("timeupdate",c),a.addEventListener("seeked",c),()=>{a.removeEventListener("timeupdate",c),a.removeEventListener("seeked",c)}},[a,l]),m}export{pt as Transcript};