@nulib/clover 4.5.5 → 4.5.7

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 (265) hide show
  1. package/dist/components/Annotations/Annotations.mjs +6 -2
  2. package/dist/core/link.mjs +13 -10
  3. package/dist/i18n/locales/en.json.mjs +1 -1
  4. package/dist/i18n/locales/es.json.mjs +1 -1
  5. package/dist/i18n/locales/fi.json.mjs +1 -1
  6. package/dist/i18n/locales/fr.json.mjs +1 -1
  7. package/dist/i18n/locales/it.json.mjs +1 -1
  8. package/dist/i18n/locales/ja.json.mjs +1 -1
  9. package/dist/i18n/locales/nb.json.mjs +1 -1
  10. package/dist/i18n/locales/nn.json.mjs +1 -1
  11. package/dist/i18n/locales/no.json.mjs +1 -1
  12. package/dist/i18n/locales/pt.json.mjs +1 -1
  13. package/dist/i18n/locales/zh-Hans.json.mjs +1 -1
  14. package/dist/i18n/locales/zh-Hant.json.mjs +1 -1
  15. package/dist/index.d.mts +3 -2
  16. package/dist/styles/core.css +1 -1
  17. package/dist/styles.css +1 -1
  18. package/dist/ui/ExternalGlyph.mjs +22 -0
  19. package/dist/ui/useScrollTrack.mjs +1 -2
  20. package/dist/web-components/{About-Cpf_iDP6.mjs → About-VyQRiIMu.mjs} +1 -1
  21. package/dist/web-components/{AnnotationItems-C1e8vrQO.mjs → AnnotationItems-BlTIHa-e.mjs} +1 -1
  22. package/dist/web-components/{AnnotationMenu-BE10k1MN.mjs → AnnotationMenu-BwikEMPh.mjs} +1 -1
  23. package/dist/web-components/{AnnotationState-Du0q2Lkv.mjs → AnnotationState-aXi45WGy.mjs} +1 -1
  24. package/dist/web-components/Annotations-61qamybS.mjs +2 -0
  25. package/dist/web-components/{Annotations-BQ5w1-ZP.mjs → Annotations-DBqyfHcF.mjs} +1 -1
  26. package/dist/web-components/{Body-DhQxrVvR.mjs → Body-DNMPENDm.mjs} +1 -1
  27. package/dist/web-components/{BodyAlert-BQET-pQO.mjs → BodyAlert-BiM1lAoB.mjs} +1 -1
  28. package/dist/web-components/{Button-BirIS0UB.mjs → Button-BLs5Picj.mjs} +1 -1
  29. package/dist/web-components/{Camera-U-go7jsP.mjs → Camera-CUmqAh54.mjs} +1 -1
  30. package/dist/web-components/{Canvas2DBackend-aLTLJt5G.mjs → Canvas2DBackend-D5Mgo0QW.mjs} +1 -1
  31. package/dist/web-components/{CanvasView-w6t-JMBB.mjs → CanvasView-BfOvex16.mjs} +2 -2
  32. package/dist/web-components/{CaptionDetails-DXZRgiVF.mjs → CaptionDetails-jNqdn9Mt.mjs} +1 -1
  33. package/dist/web-components/{ChaptersMenu-BYyi47lT.mjs → ChaptersMenu-CNgG4zwW.mjs} +1 -1
  34. package/dist/web-components/{Chevron-HuG2pLVe.mjs → Chevron-BdgGQvNa.mjs} +1 -1
  35. package/dist/web-components/{ChoiceMenu-DhUQ0nC7.mjs → ChoiceMenu-CvS8F3X_.mjs} +1 -1
  36. package/dist/web-components/{Collection-CJo6fTNU.mjs → Collection-lzc7WD9g.mjs} +1 -1
  37. package/dist/web-components/{CollectionSelect-BPiJm2qX.mjs → CollectionSelect-CzgYKMt5.mjs} +1 -1
  38. package/dist/web-components/{Connected-BbzI2zK6.mjs → Connected-B_5LeFpt.mjs} +1 -1
  39. package/dist/web-components/{Connected-BXc1y6St.mjs → Connected-CdeTNEkW.mjs} +1 -1
  40. package/dist/web-components/{Connected-Dy05dLlD.mjs → Connected-Dss8dX9u.mjs} +1 -1
  41. package/dist/web-components/{Contents-DyEvnvBZ.mjs → Contents-CtyHkeUB.mjs} +1 -1
  42. package/dist/web-components/{ControlMenu-DILqYp7x.mjs → ControlMenu-CaZbfh-v.mjs} +1 -1
  43. package/dist/web-components/ControlsFade-BrZ4_xJu.mjs +1 -0
  44. package/dist/web-components/{CountMenu-30RDtctj.mjs → CountMenu-DzEKtcUs.mjs} +1 -1
  45. package/dist/web-components/Cue-DgSWaxt6.mjs +1 -0
  46. package/dist/web-components/{Document-CWn0VzSO.mjs → Document-D8BNUyN_.mjs} +1 -1
  47. package/dist/web-components/{DomLayers-BOeW3v4e.mjs → DomLayers-CyfXsLu_.mjs} +1 -1
  48. package/dist/web-components/{Download-B1pH_Wet.mjs → Download-CVW5MabM.mjs} +1 -1
  49. package/dist/web-components/{EntryBodies-CCt_bYce.mjs → EntryBodies-DZpB82X3.mjs} +1 -1
  50. package/dist/web-components/{EntryThumbnail-DApiQdWi.mjs → EntryThumbnail-C9TitZhS.mjs} +1 -1
  51. package/dist/web-components/{FieldPill-EHefq8lM.mjs → FieldPill-DQQzm8hG.mjs} +1 -1
  52. package/dist/web-components/{FrameAnimation-BNmzR70z.mjs → FrameAnimation-C1a4L8pR.mjs} +1 -1
  53. package/dist/web-components/{Gallery-DpF-Cdw0.mjs → Gallery-D8PPijA-.mjs} +1 -1
  54. package/dist/web-components/{GlobeGlyph-DBYxhqnr.mjs → GlobeGlyph-CRfMG161.mjs} +1 -1
  55. package/dist/web-components/{HideToggle-YnPk4svB.mjs → HideToggle-DAb6JxDB.mjs} +1 -1
  56. package/dist/web-components/{ImageControls-CThSHB8z.mjs → ImageControls-BYNIBF8X.mjs} +1 -1
  57. package/dist/web-components/{Items-DdbOaRXQ.mjs → Items-DZ2rblNa.mjs} +1 -1
  58. package/dist/web-components/{Label-Bk_O5G3C.mjs → Label-BsqpZ2iR.mjs} +1 -1
  59. package/dist/web-components/{LanguageChoice-DoyxbEct.mjs → LanguageChoice-BAici6Li.mjs} +1 -1
  60. package/dist/web-components/{LanguageMenu-BeGB_jhm.mjs → LanguageMenu-BTvnQxFI.mjs} +1 -1
  61. package/dist/web-components/{LightboxView-b6uDS_BD.mjs → LightboxView-C-eD7J97.mjs} +1 -1
  62. package/dist/web-components/{ListEnd-BYM99ASf.mjs → ListEnd-C-Ml1EYs.mjs} +1 -1
  63. package/dist/web-components/{Loaded-BHfiAJdt.mjs → Loaded-B8vl-G-V.mjs} +1 -1
  64. package/dist/web-components/{LoadedCanvas-DEf79L39.mjs → LoadedCanvas-DGqbVGS7.mjs} +1 -1
  65. package/dist/web-components/LoadedMap-C-0BE0wY.mjs +1 -0
  66. package/dist/web-components/{Loading-DrMN5RS9.mjs → Loading-UuKuHE79.mjs} +1 -1
  67. package/dist/web-components/{Map-BS8OC5D2.mjs → Map-CT5D-pfb.mjs} +1 -1
  68. package/dist/web-components/{MapView-D4IDbUGn.mjs → MapView-Bsg_Olm7.mjs} +2 -2
  69. package/dist/web-components/{Markup-D_gTftnI.mjs → Markup-CeeOSehy.mjs} +1 -1
  70. package/dist/web-components/{MediaBody-DhaTtx4R.mjs → MediaBody-Q6rhew4q.mjs} +1 -1
  71. package/dist/web-components/{MediaBody-E-rYLYaC.mjs → MediaBody-fQE-A-yD.mjs} +1 -1
  72. package/dist/web-components/{NavDate-BCUGnx3P.mjs → NavDate-DdU75wtq.mjs} +1 -1
  73. package/dist/web-components/{Navigator-DzySqVUa.mjs → Navigator-D8S66GNd.mjs} +1 -1
  74. package/dist/web-components/{Pager-By7ZH6O7.mjs → Pager-B0QqGXp3.mjs} +1 -1
  75. package/dist/web-components/{PagerLayout-BtEwyK5X.mjs → PagerLayout-s15H568t.mjs} +1 -1
  76. package/dist/web-components/{Panel-Dvrq3M-Q.mjs → Panel-ByrpMdLY.mjs} +1 -1
  77. package/dist/web-components/PanelPart-3w0sWqmU.mjs +1 -0
  78. package/dist/web-components/{PanelToggle-C-sqVIs1.mjs → PanelToggle-B1QENm1I.mjs} +1 -1
  79. package/dist/web-components/{PartOfManifest-CbMlCcX3.mjs → PartOfManifest-CUOEJX-B.mjs} +1 -1
  80. package/dist/web-components/{Pending-DQJcdc5H.mjs → Pending-DYgjpYcj.mjs} +1 -1
  81. package/dist/web-components/{PlaceBox-DokzoF67.mjs → PlaceBox-Bqr3fEt1.mjs} +1 -1
  82. package/dist/web-components/{Placeholder-CuzCilBT.mjs → Placeholder-DGPTR3uA.mjs} +1 -1
  83. package/dist/web-components/{Position-fepKcPfZ.mjs → Position-D8fef2x7.mjs} +1 -1
  84. package/dist/web-components/{Primitives-AJjxmiOF.mjs → Primitives-DuP39vJE.mjs} +1 -1
  85. package/dist/web-components/{Provider-rBUKn839.mjs → Provider-DIANDsur.mjs} +1 -1
  86. package/dist/web-components/{ReadMore-BuFCtdGh.mjs → ReadMore-R-glAXeL.mjs} +1 -1
  87. package/dist/web-components/{Root-BSE4OmuO.mjs → Root-ChyZ9HKB.mjs} +1 -1
  88. package/dist/web-components/Scene-CUydm2WU.mjs +1 -0
  89. package/dist/web-components/{SceneView-BjNoL0uV.mjs → SceneView-BOE20DQY.mjs} +1 -1
  90. package/dist/web-components/{Search-BcrZLdEQ.mjs → Search-B2H5S0R-.mjs} +1 -1
  91. package/dist/web-components/{Sections-01Q3gAlf.mjs → Sections-d0uuX5tK.mjs} +1 -1
  92. package/dist/web-components/{SeekMarks-DVs5pj-u.mjs → SeekMarks-TGu3Bbws.mjs} +1 -1
  93. package/dist/web-components/{StandaloneItems-CMDIvH00.mjs → StandaloneItems-vJqJhY6P.mjs} +1 -1
  94. package/dist/web-components/{Status-h__hPYUf.mjs → Status-DCVccIz7.mjs} +1 -1
  95. package/dist/web-components/{Steps-B0-nEjZX.mjs → Steps-VCHVkAOu.mjs} +1 -1
  96. package/dist/web-components/{TargetItems-vqRcAP52.mjs → TargetItems-krRcBfvc.mjs} +1 -1
  97. package/dist/web-components/Timeline-9S5GW0HA.mjs +1 -0
  98. package/dist/web-components/{Tip-CDk5jVbe.mjs → Tip-B0TpGspf.mjs} +1 -1
  99. package/dist/web-components/{Transcript-CCFPC1Q6.mjs → Transcript-DdoG3nZQ.mjs} +1 -1
  100. package/dist/web-components/{Transport-KakYzWlH.mjs → Transport-BW0laFuy.mjs} +1 -1
  101. package/dist/web-components/{Transport-DzxbhG8Z.mjs → Transport-DixOWHie.mjs} +1 -1
  102. package/dist/web-components/{annotation-collection-DFeI_mDz.mjs → annotation-collection-B7P4xVWB.mjs} +1 -1
  103. package/dist/web-components/{annotation-name-FBisev7H.mjs → annotation-name-BEuD2SqF.mjs} +1 -1
  104. package/dist/web-components/{annotations-content-BOOCdTm4.mjs → annotations-content-BiEkS0ze.mjs} +1 -1
  105. package/dist/web-components/{body-CXwg03cI.mjs → body-VhEQIZz1.mjs} +1 -1
  106. package/dist/web-components/{canvas-DoyxoYGC.mjs → canvas-BANXin9O.mjs} +1 -1
  107. package/dist/web-components/{cloverEngine-GBxKE0AS.mjs → cloverEngine-pxuhoj7w.mjs} +1 -1
  108. package/dist/web-components/{content-state-reader-_LdLjiP1.mjs → content-state-reader-DVti_UNh.mjs} +1 -1
  109. package/dist/web-components/{controlGlyphs-DJPsdVYe.mjs → controlGlyphs-DkQh1wkH.mjs} +1 -1
  110. package/dist/web-components/{controls-C_p3vZR8.mjs → controls-DG9o_1Ms.mjs} +1 -1
  111. package/dist/web-components/{downloads-BbtPYZBf.mjs → downloads-Ct1IVm1N.mjs} +1 -1
  112. package/dist/web-components/{dragToClose-DIwndGui.mjs → dragToClose-B2D5gjIv.mjs} +1 -1
  113. package/dist/web-components/{engine-BjIE4NRo.mjs → engine-DheXoWuS.mjs} +1 -1
  114. package/dist/web-components/{engines-CrU7hjmx.mjs → engines-D3Nl9FJa.mjs} +1 -1
  115. package/dist/web-components/{es-B1NvdYp-.mjs → es-Bn4XnLxy.mjs} +1 -1
  116. package/dist/web-components/{fetchManifest-CnNL49H6.mjs → fetchManifest-CZUkPEJT.mjs} +1 -1
  117. package/dist/web-components/{fi-BjtYZNLo.mjs → fi-CjAXeLqH.mjs} +1 -1
  118. package/dist/web-components/{follow-content-DucWQI_6.mjs → follow-content-DV7lsgAv.mjs} +1 -1
  119. package/dist/web-components/{fr-Cd22Lziw.mjs → fr-CeFhkxoi.mjs} +1 -1
  120. package/dist/web-components/{fromManifest-DP9m_bqJ.mjs → fromManifest-CaESsRH1.mjs} +1 -1
  121. package/dist/web-components/{glyphs-F7ExZRQ9.mjs → glyphs-_fryeQK1.mjs} +1 -1
  122. package/dist/web-components/{hooks-BiGLi7Q8.mjs → hooks-2wlZJ5Vj.mjs} +1 -1
  123. package/dist/web-components/{image-layers-COBMItDq.mjs → image-layers-BMG1Vq4O.mjs} +1 -1
  124. package/dist/web-components/{image-service-content-Dy89TOVT.mjs → image-service-content-BHIDyYR5.mjs} +1 -1
  125. package/dist/web-components/{imageService-Dg5zJI3p.mjs → imageService-Dr2yUnHN.mjs} +1 -1
  126. package/dist/web-components/{index-e37SYBar.mjs → index-B2-GJaXD.mjs} +1 -1
  127. package/dist/web-components/index.mjs +1 -1
  128. package/dist/web-components/{it-UWaPOPDN.mjs → it-DxtfVek2.mjs} +1 -1
  129. package/dist/web-components/items-BCo1O5UF.mjs +1 -0
  130. package/dist/web-components/{items-CbXnr9UA.mjs → items-DIK2DCYN.mjs} +1 -1
  131. package/dist/web-components/{ja-Cg1enUhM.mjs → ja-rsicBgWR.mjs} +1 -1
  132. package/dist/web-components/label-nN3wAmWa.mjs +1 -0
  133. package/dist/web-components/{layout-DdBH1AmH.mjs → layout-zLeHeNSF.mjs} +1 -1
  134. package/dist/web-components/link-gSAPkIaj.mjs +1 -0
  135. package/dist/web-components/logo-C_MdkvAQ.mjs +1 -0
  136. package/dist/web-components/{models-2j6yvmPN.mjs → models-Cl3PryAF.mjs} +1 -1
  137. package/dist/web-components/{nb-CEwZDBiR.mjs → nb-BkyI1fhp.mjs} +1 -1
  138. package/dist/web-components/{nn-jYQhr9RI.mjs → nn-n_xM6AGl.mjs} +1 -1
  139. package/dist/web-components/{no-CEwZDBiR.mjs → no-BkyI1fhp.mjs} +1 -1
  140. package/dist/web-components/{nodes-kA2jmFay.mjs → nodes-DxdzLXSF.mjs} +1 -1
  141. package/dist/web-components/{overlayImage-D9cRfY3j.mjs → overlayImage-mqkzG-e1.mjs} +1 -1
  142. package/dist/web-components/{panel-V_TPnipr.mjs → panel-zafZqMud.mjs} +1 -1
  143. package/dist/web-components/part-Cybq62qY.mjs +1 -0
  144. package/dist/web-components/{playerSurface-BTKHmxO1.mjs → playerSurface-BEZ_dDs6.mjs} +1 -1
  145. package/dist/web-components/{pointer-DoAsoxqF.mjs → pointer-RBOOjlWj.mjs} +1 -1
  146. package/dist/web-components/{provider-fkcSwXBE.mjs → provider-L0fhpZmV.mjs} +1 -1
  147. package/dist/web-components/{pt-CWR30SzS.mjs → pt-COchUT7D.mjs} +1 -1
  148. package/dist/web-components/{range-regions-CT95uHM0.mjs → range-regions-T_73-NWY.mjs} +1 -1
  149. package/dist/web-components/{read-more-D_b7dY43.mjs → read-more-CU3jFqSi.mjs} +1 -1
  150. package/dist/web-components/{readingLanguages-CJajD7v0.mjs → readingLanguages-DZsqrAWq.mjs} +1 -1
  151. package/dist/web-components/{rendererSurface-CEHeWJwy.mjs → rendererSurface-FBwf4yii.mjs} +2 -2
  152. package/dist/web-components/{renderers-CJ5nm0SY.mjs → renderers-DCZW9zLC.mjs} +1 -1
  153. package/dist/web-components/{resource-Dz_XBsCi.mjs → resource-C2zc8K9v.mjs} +1 -1
  154. package/dist/web-components/{save-file-DKe_h_U9.mjs → save-file-Dp4Yp3CX.mjs} +1 -1
  155. package/dist/web-components/{search-BMpq8b3X.mjs → search-96l87qSf.mjs} +1 -1
  156. package/dist/web-components/shared-9sToDP5G.mjs +1 -0
  157. package/dist/web-components/{show-link-Ch_hofEX.mjs → show-link-23miLn_l.mjs} +1 -1
  158. package/dist/web-components/{sizedImage-BG2tDbvS.mjs → sizedImage-B_ze_WS6.mjs} +1 -1
  159. package/dist/web-components/{split-m0F4ovjo.mjs → split-CkWbkgmc.mjs} +1 -1
  160. package/dist/web-components/{status-jWbjVYSN.mjs → status-DZj0V4nZ.mjs} +1 -1
  161. package/dist/web-components/{styles-BCj9RoYW.mjs → styles-Di6TZHyP.mjs} +1 -1
  162. package/dist/web-components/three.mjs +1 -1
  163. package/dist/web-components/{thumbnail-CF6-tqyq.mjs → thumbnail-22tHjWEh.mjs} +1 -1
  164. package/dist/web-components/{tip-uTbAyNGJ.mjs → tip-Skhs56Gk.mjs} +1 -1
  165. package/dist/web-components/{toggle-CVnC0vUV.mjs → toggle-DatEYCUk.mjs} +1 -1
  166. package/dist/web-components/{useContainerName-7-Q4e3xe.mjs → useContainerName-B2qSONvC.mjs} +1 -1
  167. package/dist/web-components/{useControlsVisibility-BmZEKLoQ.mjs → useControlsVisibility-DYj5p1m8.mjs} +1 -1
  168. package/dist/web-components/{useNearViewport-Cm5F5962.mjs → useNearViewport-CeEAjxcM.mjs} +1 -1
  169. package/dist/web-components/useScrollTrack-SUztbI1C.mjs +1 -0
  170. package/dist/web-components/viewer/{AnnotationItems-OHw3CidZ.mjs → AnnotationItems-CUVQu0sj.mjs} +1 -1
  171. package/dist/web-components/viewer/{AnnotationMenu-0qO_As1t.mjs → AnnotationMenu-DUywRsH9.mjs} +1 -1
  172. package/dist/web-components/viewer/{AnnotationState-NPVw45tA.mjs → AnnotationState-Rp1bRCk0.mjs} +1 -1
  173. package/dist/web-components/viewer/{Annotations-CwoomsDV.mjs → Annotations-C-XbGzkf.mjs} +1 -1
  174. package/dist/web-components/viewer/Annotations-D6XBVx_r.mjs +2 -0
  175. package/dist/web-components/viewer/{Canvas2DBackend-CMRWLAd4.mjs → Canvas2DBackend-DfeyF4Sn.mjs} +1 -1
  176. package/dist/web-components/viewer/{CaptionDetails-CJisf1i_.mjs → CaptionDetails-Dm9OED9q.mjs} +1 -1
  177. package/dist/web-components/viewer/{ChaptersMenu-5Oh-jx8r.mjs → ChaptersMenu-CbUWVDlA.mjs} +1 -1
  178. package/dist/web-components/viewer/{ChoiceMenu-BUzPTObN.mjs → ChoiceMenu-Dg3CMJC3.mjs} +1 -1
  179. package/dist/web-components/viewer/{Collection-BccJjqj8.mjs → Collection-GlPUR_Wq.mjs} +1 -1
  180. package/dist/web-components/viewer/{Connected-CtmQ-wSs.mjs → Connected-D73s7-vD.mjs} +1 -1
  181. package/dist/web-components/viewer/{Connected-D4hTMjqQ.mjs → Connected-D_hC2NKq.mjs} +1 -1
  182. package/dist/web-components/viewer/{Contents-drpA8FtX.mjs → Contents-DZDz1id8.mjs} +1 -1
  183. package/dist/web-components/viewer/{ControlMenu-jv4lvjpj.mjs → ControlMenu-IKgzjoAC.mjs} +1 -1
  184. package/dist/web-components/viewer/ControlsFade-N_UBYfTb.mjs +1 -0
  185. package/dist/web-components/viewer/{CountMenu-D1b27rQp.mjs → CountMenu-CF-yZuq6.mjs} +1 -1
  186. package/dist/web-components/viewer/Cue-CQXpS1cD.mjs +1 -0
  187. package/dist/web-components/viewer/{Document-7CrcC3Cu.mjs → Document-C5bJQXa7.mjs} +1 -1
  188. package/dist/web-components/viewer/{DomLayers-GyEF7J55.mjs → DomLayers-DM-5MV__.mjs} +1 -1
  189. package/dist/web-components/viewer/{Download-D-aGRZnK.mjs → Download-BcWqJ6gp.mjs} +1 -1
  190. package/dist/web-components/viewer/{EntryBodies-CEzcz1SY.mjs → EntryBodies-CtnEnRhl.mjs} +1 -1
  191. package/dist/web-components/viewer/{EntryThumbnail-Cz2jEZTC.mjs → EntryThumbnail-CI6XobsH.mjs} +1 -1
  192. package/dist/web-components/viewer/{FieldPill-CcYYMw3C.mjs → FieldPill-DpVrScl7.mjs} +1 -1
  193. package/dist/web-components/viewer/{FrameAnimation-CXyt9tLj.mjs → FrameAnimation-B8lgrSfp.mjs} +1 -1
  194. package/dist/web-components/viewer/{Gallery-Dmmh85gM.mjs → Gallery-BQnLyWZI.mjs} +1 -1
  195. package/dist/web-components/viewer/{GlobeGlyph-BkeoT59U.mjs → GlobeGlyph-5YeAnzZS.mjs} +1 -1
  196. package/dist/web-components/viewer/{HideToggle-BtfoToGM.mjs → HideToggle-C8FqKQpl.mjs} +1 -1
  197. package/dist/web-components/viewer/{ImageControls-DdV9OCC9.mjs → ImageControls-C2TSU7YV.mjs} +1 -1
  198. package/dist/web-components/viewer/{LanguageChoice-BC4raDCD.mjs → LanguageChoice-CMRKNT1s.mjs} +1 -1
  199. package/dist/web-components/viewer/{LanguageMenu-B7qmgfps.mjs → LanguageMenu-DDysz3dn.mjs} +1 -1
  200. package/dist/web-components/viewer/{LightboxView-Dr3R75lS.mjs → LightboxView-CMhIYI9F.mjs} +1 -1
  201. package/dist/web-components/viewer/{ListEnd-oPxO8hQE.mjs → ListEnd-7_wAsufl.mjs} +1 -1
  202. package/dist/web-components/viewer/{MapView-Z1P-A5bs.mjs → MapView-CTJeP19U.mjs} +2 -2
  203. package/dist/web-components/viewer/{MediaBody-C2hFgOY8.mjs → MediaBody-D7gFPWmU.mjs} +1 -1
  204. package/dist/web-components/viewer/{MediaBody-CnKOjrdE.mjs → MediaBody-DJE41Ggr.mjs} +1 -1
  205. package/dist/web-components/viewer/{NavDate-B32M8WGG.mjs → NavDate-B6GJyAZz.mjs} +1 -1
  206. package/dist/web-components/viewer/{Navigator-DwbQ5u2i.mjs → Navigator-BP2BG8Za.mjs} +1 -1
  207. package/dist/web-components/viewer/{PagerLayout-BgvyIDpY.mjs → PagerLayout-D_lbzpje.mjs} +1 -1
  208. package/dist/web-components/viewer/PanelPart-BOXT_SZv.mjs +1 -0
  209. package/dist/web-components/viewer/{PartOfManifest-B9RWDleM.mjs → PartOfManifest-B1m_edb8.mjs} +1 -1
  210. package/dist/web-components/viewer/{PlaceBox-DdCjBb2D.mjs → PlaceBox-CIX6eZX1.mjs} +1 -1
  211. package/dist/web-components/viewer/{Placeholder-CS9JVhwU.mjs → Placeholder-CqJ2MsHM.mjs} +1 -1
  212. package/dist/web-components/viewer/{Search-DQ6z5C9S.mjs → Search-DPmrOEIr.mjs} +1 -1
  213. package/dist/web-components/viewer/{SeekMarks--tMu7IYO.mjs → SeekMarks-DXU1o9YQ.mjs} +1 -1
  214. package/dist/web-components/viewer/{StandaloneItems-DYrbonjJ.mjs → StandaloneItems-iRdk8VYf.mjs} +1 -1
  215. package/dist/web-components/viewer/{Steps-WYWqChoR.mjs → Steps-CuNUFA3I.mjs} +1 -1
  216. package/dist/web-components/viewer/{TargetItems-l-tLGkfE.mjs → TargetItems-QBE9CxwV.mjs} +1 -1
  217. package/dist/web-components/viewer/{Transcript-CuHNI7e_.mjs → Transcript-DlptB46U.mjs} +1 -1
  218. package/dist/web-components/viewer/{Transport-BJRUqslB.mjs → Transport-C9EFEDJu.mjs} +1 -1
  219. package/dist/web-components/viewer/{Transport-Bu79eBtv.mjs → Transport-iHzfi7uP.mjs} +1 -1
  220. package/dist/web-components/viewer/{annotation-collection-C2MWEnuY.mjs → annotation-collection-DTVrE-QZ.mjs} +1 -1
  221. package/dist/web-components/viewer/{annotation-name-CKGOe06W.mjs → annotation-name-DKTofYnE.mjs} +1 -1
  222. package/dist/web-components/viewer/{annotations-content-ConN9zDA.mjs → annotations-content-BlwlbeVP.mjs} +1 -1
  223. package/dist/web-components/viewer/{cloverEngine-BCS7nTmf.mjs → cloverEngine-Dlh-z8EL.mjs} +1 -1
  224. package/dist/web-components/viewer/{content-state-reader-BTtuWgX0.mjs → content-state-reader-CnnpSFlK.mjs} +1 -1
  225. package/dist/web-components/viewer/{dragToClose-aTN7qXF5.mjs → dragToClose-CzrwaZo1.mjs} +1 -1
  226. package/dist/web-components/viewer/{fetchManifest-CCrNctKu.mjs → fetchManifest-BhVzHzo2.mjs} +1 -1
  227. package/dist/web-components/viewer/{follow-content-C6F0s_fJ.mjs → follow-content-BH2iMwBp.mjs} +1 -1
  228. package/dist/web-components/viewer/{host-BQ8w6end.mjs → host-B2sqIwnE.mjs} +1 -1
  229. package/dist/web-components/viewer/{image-layers-D7_YIZD2.mjs → image-layers-Cd8Puz_E.mjs} +1 -1
  230. package/dist/web-components/viewer/{image-service-content-D_HLWst7.mjs → image-service-content-CJo34Kw3.mjs} +1 -1
  231. package/dist/web-components/viewer/index.mjs +1 -1
  232. package/dist/web-components/viewer/link-Bf7oTjh2.mjs +1 -0
  233. package/dist/web-components/viewer/{overlayImage-LSQOVinl.mjs → overlayImage-D6ckInbH.mjs} +1 -1
  234. package/dist/web-components/viewer/{range-regions-C_AleS_r.mjs → range-regions-CfXsCFU1.mjs} +1 -1
  235. package/dist/web-components/viewer/{renderers-CKX3o8vY.mjs → renderers-C1iEbiXw.mjs} +1 -1
  236. package/dist/web-components/viewer/{save-file-BMJIsv-z.mjs → save-file-C6SVTxwd.mjs} +1 -1
  237. package/dist/web-components/viewer/{search-DwsVuur9.mjs → search-B6_Ctp53.mjs} +1 -1
  238. package/dist/web-components/viewer/{styles-LW5XsRcK.mjs → styles-ihp-vncb.mjs} +1 -1
  239. package/dist/web-components/viewer/{useControlsVisibility-DIvgbH07.mjs → useControlsVisibility-D-TA6qZW.mjs} +1 -1
  240. package/dist/web-components/viewer/{viewer-8GpsPBqv.mjs → viewer-DAIgpvoG.mjs} +5 -5
  241. package/dist/web-components/viewer/{vtt-Bnz0c60d.mjs → vtt-fmAkEE-g.mjs} +1 -1
  242. package/dist/web-components/{viewer-Tuo0l3iL.mjs → viewer-BYyFRkAV.mjs} +1 -1
  243. package/dist/web-components/{vtt-BUo1kBkL.mjs → vtt-CJkd32sA.mjs} +1 -1
  244. package/dist/web-components/{zh-Hans-DnYm6PWu.mjs → zh-Hans-Bfn3LUnq.mjs} +1 -1
  245. package/dist/web-components/{zh-Hant-DsxnuLPZ.mjs → zh-Hant-DzmK541A.mjs} +1 -1
  246. package/package.json +1 -1
  247. package/dist/web-components/Annotations-DrqkNr7d.mjs +0 -2
  248. package/dist/web-components/ControlsFade-_qZMmd34.mjs +0 -1
  249. package/dist/web-components/Cue-I_zHaG-m.mjs +0 -1
  250. package/dist/web-components/LoadedMap-Drwww6ZP.mjs +0 -1
  251. package/dist/web-components/PanelPart-hk33tq-m.mjs +0 -1
  252. package/dist/web-components/Scene-DkWFm9Ym.mjs +0 -1
  253. package/dist/web-components/Timeline-BBUkJGOZ.mjs +0 -1
  254. package/dist/web-components/items-Bu0NTcJ9.mjs +0 -1
  255. package/dist/web-components/label-DXfO2yzp.mjs +0 -1
  256. package/dist/web-components/link-CVd4-rY6.mjs +0 -1
  257. package/dist/web-components/logo-1fBtW3pZ.mjs +0 -1
  258. package/dist/web-components/part-DyDa2O7K.mjs +0 -1
  259. package/dist/web-components/shared-GHegGgtP.mjs +0 -1
  260. package/dist/web-components/useScrollTrack-CsQQUZVJ.mjs +0 -1
  261. package/dist/web-components/viewer/Annotations-C0uuxF0R.mjs +0 -2
  262. package/dist/web-components/viewer/ControlsFade-cDNVSrmI.mjs +0 -1
  263. package/dist/web-components/viewer/Cue-kaHJidpH.mjs +0 -1
  264. package/dist/web-components/viewer/PanelPart-7C8kqYXz.mjs +0 -1
  265. package/dist/web-components/viewer/link-CX0131kM.mjs +0 -1
@@ -1 +1 @@
1
- import{az as l,bv as g}from"./viewer-8GpsPBqv.mjs";function b(t){const e=t.replace(/-/g,"+").replace(/_/g,"/"),n=e+"=".repeat((4-e.length%4)%4),a=atob(n);try{return decodeURIComponent(a)}catch{const c=Uint8Array.from(a,s=>s.charCodeAt(0));return new TextDecoder().decode(c)}}function I(t){const e=t.trim();for(const n of[()=>JSON.parse(e),()=>JSON.parse(b(e))])try{const a=n();if(a&&typeof a=="object")return a}catch{}return null}function v(t){if(!t)return;const e=Number(t.split(",")[0]);return Number.isFinite(e)?e:void 0}const u=t=>l(t==null?void 0:t.partOf).find(e=>(e==null?void 0:e.id)&&e.type==="Collection");function A(t){const e=t.type==="Annotation"?l(t.target):[t],n=e[0]?m(e[0],t):null;if(!n||e.length<2)return n;const a=typeof t.id=="string"?t.id:"content-state",c=e.flatMap((s,d)=>{var y,p,f;const i=d===0?n:m(s,t),r=(i==null?void 0:i.type)==="Manifest"?i.id:i==null?void 0:i.manifestId;return!i||!r?[]:[{id:`${a}#target-${d+1}`,manifestId:r,...((y=i.target)==null?void 0:y.canvasId)&&{canvasId:i.target.canvasId},...((p=i.target)==null?void 0:p.region)&&{region:i.target.region},...((f=i.target)==null?void 0:f.time)!==void 0&&{time:i.target.time}}]});return c.length>1?{...n,targets:{id:a,...t.label&&typeof t.label=="object"?{label:t.label}:{},items:c}}:n}function m(t,e){const n=g(t),a=typeof t=="string"?{id:n.id}:t.type==="SpecificResource"?typeof t.source=="string"?{id:t.source}:t.source??{}:t,c=a.type;if(c==="Manifest"||c==="Collection"){const o=c==="Manifest"?u(a):void 0;return o?{id:o.id,type:"Collection",manifestId:n.id}:{id:n.id,type:c}}const s=l(t.selector).find(o=>(o==null?void 0:o.type)==="PointSelector"&&o.t!=null),d={canvasId:n.id};n.rect&&(d.region=n.rect);const i=(s==null?void 0:s.t)??v(n.t);i!==void 0&&(d.time=Number(i));const r=[a,t].flatMap(o=>l(o==null?void 0:o.partOf)).find(o=>(o==null?void 0:o.id)&&(!o.type||o.type==="Manifest")),y=u(r),p=e.type==="Annotation"&&l(e.body).length?{id:e.id??`${n.id}#content-state`,type:"Annotation",motivation:l(e.motivation),body:e.body,target:t}:void 0,f=p?{annotation:p}:{};return y&&r?{id:y.id,type:"Collection",manifestId:r.id,target:d,...f}:r?{id:r.id,type:"Manifest",target:d,...f}:{id:n.id,type:c??"Canvas",target:d,...f}}export{I as decodeContentState,A as resolveContentState};
1
+ import{az as l,bv as g}from"./viewer-DAIgpvoG.mjs";function b(t){const e=t.replace(/-/g,"+").replace(/_/g,"/"),n=e+"=".repeat((4-e.length%4)%4),a=atob(n);try{return decodeURIComponent(a)}catch{const c=Uint8Array.from(a,s=>s.charCodeAt(0));return new TextDecoder().decode(c)}}function I(t){const e=t.trim();for(const n of[()=>JSON.parse(e),()=>JSON.parse(b(e))])try{const a=n();if(a&&typeof a=="object")return a}catch{}return null}function v(t){if(!t)return;const e=Number(t.split(",")[0]);return Number.isFinite(e)?e:void 0}const u=t=>l(t==null?void 0:t.partOf).find(e=>(e==null?void 0:e.id)&&e.type==="Collection");function A(t){const e=t.type==="Annotation"?l(t.target):[t],n=e[0]?m(e[0],t):null;if(!n||e.length<2)return n;const a=typeof t.id=="string"?t.id:"content-state",c=e.flatMap((s,d)=>{var y,p,f;const i=d===0?n:m(s,t),r=(i==null?void 0:i.type)==="Manifest"?i.id:i==null?void 0:i.manifestId;return!i||!r?[]:[{id:`${a}#target-${d+1}`,manifestId:r,...((y=i.target)==null?void 0:y.canvasId)&&{canvasId:i.target.canvasId},...((p=i.target)==null?void 0:p.region)&&{region:i.target.region},...((f=i.target)==null?void 0:f.time)!==void 0&&{time:i.target.time}}]});return c.length>1?{...n,targets:{id:a,...t.label&&typeof t.label=="object"?{label:t.label}:{},items:c}}:n}function m(t,e){const n=g(t),a=typeof t=="string"?{id:n.id}:t.type==="SpecificResource"?typeof t.source=="string"?{id:t.source}:t.source??{}:t,c=a.type;if(c==="Manifest"||c==="Collection"){const o=c==="Manifest"?u(a):void 0;return o?{id:o.id,type:"Collection",manifestId:n.id}:{id:n.id,type:c}}const s=l(t.selector).find(o=>(o==null?void 0:o.type)==="PointSelector"&&o.t!=null),d={canvasId:n.id};n.rect&&(d.region=n.rect);const i=(s==null?void 0:s.t)??v(n.t);i!==void 0&&(d.time=Number(i));const r=[a,t].flatMap(o=>l(o==null?void 0:o.partOf)).find(o=>(o==null?void 0:o.id)&&(!o.type||o.type==="Manifest")),y=u(r),p=e.type==="Annotation"&&l(e.body).length?{id:e.id??`${n.id}#content-state`,type:"Annotation",motivation:l(e.motivation),body:e.body,target:t}:void 0,f=p?{annotation:p}:{};return y&&r?{id:y.id,type:"Collection",manifestId:r.id,target:d,...f}:r?{id:r.id,type:"Manifest",target:d,...f}:{id:n.id,type:c??"Canvas",target:d,...f}}export{I as decodeContentState,A as resolveContentState};
@@ -1 +1 @@
1
- import{bx as _}from"./viewer-8GpsPBqv.mjs";const k=1/3,Y=.5,P=8,z="translate 240ms cubic-bezier(0.16, 1, 0.3, 1)",D=[120,_],A="cubic-bezier(0.33, 0.67, 0.67, 1)",E=new WeakMap;function O(t,n){let o=null,i="idle",a=0,S=0,s=0,d=1,e=1,c=[];const f=()=>{var r;return[t,(r=n.current.alongside)==null?void 0:r.current]},M=r=>{if(r.pointerType==="mouse"||!r.isPrimary||!n.current.enabled)return;o=r.pointerId,i="pending",a=r.clientX,S=r.clientY,s=0,d=t.getBoundingClientRect().width||1;const p=getComputedStyle(t).direction==="rtl";e=n.current.side==="end"!==p?1:-1,c=[[r.timeStamp,0]]},$=r=>{var g,v;if(r.pointerId!==o||i==="idle"||i==="scroll")return;const p=(r.clientX-a)*e,y=r.clientY-S;if(i==="pending"){if(Math.abs(y)>P&&Math.abs(y)>Math.abs(p)){i="scroll";return}if(p<P)return;i="drag",a=r.clientX,c=[[r.timeStamp,0]];try{(g=t.setPointerCapture)==null||g.call(t,r.pointerId)}catch{}u(f(),void 0,"none")}s=Math.max(0,(r.clientX-a)*e),u(f(),`${s*e}px 0`);const h=(v=n.current.scrim)==null?void 0:v.current;h&&(h.style.transition="none",h.style.opacity=String(1-s/d)),c.push([r.timeStamp,s]),c.length>5&&c.shift(),r.preventDefault()},m=r=>{var X,C,T;if(r.pointerId!==o)return;const p=i==="drag";if(i="idle",o=null,!p)return;t.addEventListener("click",b,{capture:true,once:true}),setTimeout(()=>t.removeEventListener("click",b,true),0);const[y,h]=c[0],[g,v]=c[c.length-1],I=g>y?(v-h)/(g-y):0,l=(X=n.current.scrim)==null?void 0:X.current,x=(C=window.matchMedia)==null?void 0:C.call(window,"(prefers-reduced-motion: reduce)").matches;if(s>d*k||I>Y){const L=x?0:Math.min(D[1],Math.max(D[0],2*(d-s)/Math.max(I,.001))),w=`${L}ms ${A}`;if(l&&(l.style.transition=`opacity ${w}`,l.style.opacity="0"),n.current.exits){u(f(),`${d*e}px 0`,`translate ${w}`),setTimeout(()=>n.current.onClose(),L);return}t.style.transition="none",t.style.translate="",t.style.transform=`translateX(${s*e}px)`,t.getBoundingClientRect(),t.style.transition=`transform ${w}`,t.style.transform=`var(--clover-template-out, translateX(${e*100}%))`,u([(T=n.current.alongside)==null?void 0:T.current],`${d*e}px 0`,`translate ${w}`),E.set(t,setTimeout(()=>R(t,n),L)),n.current.onClose();return}u(f(),"",x?"none":z),l&&(l.style.transition=x?"none":"opacity 240ms ease",l.style.opacity=""),setTimeout(()=>{i==="idle"&&!E.has(t)&&u(f(),void 0,"")},240)},b=r=>{r.stopPropagation(),r.preventDefault()};return t.addEventListener("pointerdown",M),t.addEventListener("pointermove",$,{passive:false}),t.addEventListener("pointerup",m),t.addEventListener("pointercancel",m),()=>{t.removeEventListener("pointerdown",M),t.removeEventListener("pointermove",$),t.removeEventListener("pointerup",m),t.removeEventListener("pointercancel",m)}}function F(t,n){E.has(t)&&!n.current.enabled||R(t,n)}function R(t,n){var i,a;clearTimeout(E.get(t)),E.delete(t),u([t,(i=n.current.alongside)==null?void 0:i.current],"",""),t.style.transform="";const o=(a=n.current.scrim)==null?void 0:a.current;o&&(o.style.opacity="",o.style.transition="")}function u(t,n,o){for(const i of t)i&&(o!==void 0&&(i.style.transition=o),n!==void 0&&(i.style.translate=n))}export{O as attach,F as reset};
1
+ import{bx as _}from"./viewer-DAIgpvoG.mjs";const k=1/3,Y=.5,P=8,z="translate 240ms cubic-bezier(0.16, 1, 0.3, 1)",D=[120,_],A="cubic-bezier(0.33, 0.67, 0.67, 1)",E=new WeakMap;function O(t,n){let o=null,i="idle",a=0,S=0,s=0,d=1,e=1,c=[];const f=()=>{var r;return[t,(r=n.current.alongside)==null?void 0:r.current]},M=r=>{if(r.pointerType==="mouse"||!r.isPrimary||!n.current.enabled)return;o=r.pointerId,i="pending",a=r.clientX,S=r.clientY,s=0,d=t.getBoundingClientRect().width||1;const p=getComputedStyle(t).direction==="rtl";e=n.current.side==="end"!==p?1:-1,c=[[r.timeStamp,0]]},$=r=>{var g,v;if(r.pointerId!==o||i==="idle"||i==="scroll")return;const p=(r.clientX-a)*e,y=r.clientY-S;if(i==="pending"){if(Math.abs(y)>P&&Math.abs(y)>Math.abs(p)){i="scroll";return}if(p<P)return;i="drag",a=r.clientX,c=[[r.timeStamp,0]];try{(g=t.setPointerCapture)==null||g.call(t,r.pointerId)}catch{}u(f(),void 0,"none")}s=Math.max(0,(r.clientX-a)*e),u(f(),`${s*e}px 0`);const h=(v=n.current.scrim)==null?void 0:v.current;h&&(h.style.transition="none",h.style.opacity=String(1-s/d)),c.push([r.timeStamp,s]),c.length>5&&c.shift(),r.preventDefault()},m=r=>{var X,C,T;if(r.pointerId!==o)return;const p=i==="drag";if(i="idle",o=null,!p)return;t.addEventListener("click",b,{capture:true,once:true}),setTimeout(()=>t.removeEventListener("click",b,true),0);const[y,h]=c[0],[g,v]=c[c.length-1],I=g>y?(v-h)/(g-y):0,l=(X=n.current.scrim)==null?void 0:X.current,x=(C=window.matchMedia)==null?void 0:C.call(window,"(prefers-reduced-motion: reduce)").matches;if(s>d*k||I>Y){const L=x?0:Math.min(D[1],Math.max(D[0],2*(d-s)/Math.max(I,.001))),w=`${L}ms ${A}`;if(l&&(l.style.transition=`opacity ${w}`,l.style.opacity="0"),n.current.exits){u(f(),`${d*e}px 0`,`translate ${w}`),setTimeout(()=>n.current.onClose(),L);return}t.style.transition="none",t.style.translate="",t.style.transform=`translateX(${s*e}px)`,t.getBoundingClientRect(),t.style.transition=`transform ${w}`,t.style.transform=`var(--clover-template-out, translateX(${e*100}%))`,u([(T=n.current.alongside)==null?void 0:T.current],`${d*e}px 0`,`translate ${w}`),E.set(t,setTimeout(()=>R(t,n),L)),n.current.onClose();return}u(f(),"",x?"none":z),l&&(l.style.transition=x?"none":"opacity 240ms ease",l.style.opacity=""),setTimeout(()=>{i==="idle"&&!E.has(t)&&u(f(),void 0,"")},240)},b=r=>{r.stopPropagation(),r.preventDefault()};return t.addEventListener("pointerdown",M),t.addEventListener("pointermove",$,{passive:false}),t.addEventListener("pointerup",m),t.addEventListener("pointercancel",m),()=>{t.removeEventListener("pointerdown",M),t.removeEventListener("pointermove",$),t.removeEventListener("pointerup",m),t.removeEventListener("pointercancel",m)}}function F(t,n){E.has(t)&&!n.current.enabled||R(t,n)}function R(t,n){var i,a;clearTimeout(E.get(t)),E.delete(t),u([t,(i=n.current.alongside)==null?void 0:i.current],"",""),t.style.transform="";const o=(a=n.current.scrim)==null?void 0:a.current;o&&(o.style.opacity="",o.style.transition="")}function u(t,n,o){for(const i of t)i&&(o!==void 0&&(i.style.transition=o),n!==void 0&&(i.style.translate=n))}export{O as attach,F as reset};
@@ -1 +1 @@
1
- import{az as h,ax as x,bu as m,bv as I,bw as q}from"./viewer-8GpsPBqv.mjs";function S(e,i,n){for(const s of h(e==null?void 0:e.items))for(const o of h(s==null?void 0:s.items)){if(!x(o))continue;const l=h(o==null?void 0:o.body).flatMap(t=>(t==null?void 0:t.type)==="Choice"?h(t.items).filter((r,f)=>n?(r==null?void 0:r.id)===n:f===0):n&&(t==null?void 0:t.id)!==n?[]:[t]);for(const t of l){if((t==null?void 0:t.type)!=="Image"||!t.width||!t.height)continue;const r=m(t.service);if(!r)continue;const f=I(h(o.target)[0]).rect??{x:0,y:0,w:e.width,h:e.height},a=(i.x-f.x)/f.w,c=(i.y-f.y)/f.h,u=Math.max(0,a),w=Math.max(0,c),M=Math.min(1,a+i.w/f.w)-u,g=Math.min(1,c+i.h/f.h)-w;if(M>0&&g>0)return{service:r,region:{x:u,y:w,width:M,height:g}}}}return null}const p=new WeakMap;function k(e,i){let n=p.get(e);n||p.set(e,n=new Map);let s=n.get(i);return s||(s=q({id:i,type:"Manifest"},{request:e.request}).catch(()=>null),n.set(i,s)),s}export{k as f,S as r};
1
+ import{az as h,ax as x,bu as m,bv as I,bw as q}from"./viewer-DAIgpvoG.mjs";function S(e,i,n){for(const s of h(e==null?void 0:e.items))for(const o of h(s==null?void 0:s.items)){if(!x(o))continue;const l=h(o==null?void 0:o.body).flatMap(t=>(t==null?void 0:t.type)==="Choice"?h(t.items).filter((r,f)=>n?(r==null?void 0:r.id)===n:f===0):n&&(t==null?void 0:t.id)!==n?[]:[t]);for(const t of l){if((t==null?void 0:t.type)!=="Image"||!t.width||!t.height)continue;const r=m(t.service);if(!r)continue;const f=I(h(o.target)[0]).rect??{x:0,y:0,w:e.width,h:e.height},a=(i.x-f.x)/f.w,c=(i.y-f.y)/f.h,u=Math.max(0,a),w=Math.max(0,c),M=Math.min(1,a+i.w/f.w)-u,g=Math.min(1,c+i.h/f.h)-w;if(M>0&&g>0)return{service:r,region:{x:u,y:w,width:M,height:g}}}}return null}const p=new WeakMap;function k(e,i){let n=p.get(e);n||p.set(e,n=new Map);let s=n.get(i);return s||(s=q({id:i,type:"Manifest"},{request:e.request}).catch(()=>null),n.set(i,s)),s}export{k as f,S as r};
@@ -1 +1 @@
1
- import{bG as w,az as f,bv as l}from"./viewer-8GpsPBqv.mjs";import{resolveContentState as b}from"./content-state-reader-BTtuWgX0.mjs";import{readSvgShape as S}from"./svg-shape-CTjogIds.mjs";const m="http://iiif.io/api/presentation/2/context.json",x=t=>(t==null?void 0:t["@type"])==="oa:Annotation"||(t==null?void 0:t["@id"])!==void 0&&f(t==null?void 0:t["@context"]).includes(m),y=t=>typeof t=="string"?t:(t==null?void 0:t["@id"])??(t==null?void 0:t.id);async function I(t){if(!x(t))return t;const{convertPresentation2:n}=await import("../presentation-2-C-U79S_T.mjs"),r=n({"@context":m,...JSON.parse(JSON.stringify(t))}),a=f(t.on).map(e=>y(f(e==null?void 0:e.within)[0])),s=f(r.target).map((e,c)=>{const o=a[c];if(!o)return e;const d=[{id:o,type:"Manifest"}],g=(e==null?void 0:e.type)==="SpecificResource",u=y(g?e.source:e);return u?g?{...e,source:{id:u,type:"Canvas",partOf:d}}:{id:u,type:"Canvas",partOf:d}:e}),i=f(r.body).map(e=>typeof(e==null?void 0:e.chars)=="string"?{type:"TextualBody",value:e.chars,...e.format?{format:e.format}:{},...e.language?{language:e.language}:{}}:e);return{...r,"@context":void 0,type:"Annotation",target:s.length===1?s[0]:s,...i.length?{body:i.length===1?i[0]:i}:{}}}async function $(t,n,r){const a=await A(t);if(!a)throw new w("Unreadable content state");const s=await r(a.id,{...n,manifestId:n.manifestId??a.manifestId,follows:(n.follows??0)+1}),{target:i}=a;return O({...s,target:i&&(!s.target||s.target.canvasId===i.canvasId)?{...s.target,...i}:s.target??i,annotation:s.annotation??a.annotation,targets:s.targets??a.targets})}async function A(t){const n=await I(t),r=b(n);if(!r)return null;const a=n.type==="Annotation"?f(n.target)[0]:n,s=C(l(a).svg),i=r.annotation;return{...r,...r.target&&!r.target.region&&s?{target:{...r.target,region:s}}:{},...i?{annotation:{...i,motivation:f(i.motivation).filter(e=>e!=="painting"),...n.label?{label:n.label}:{}}}:{}}}function N(t){const n=t?Number(t.split(",")[0]):NaN;return Number.isFinite(n)?n:void 0}function C(t){var r;const n=t?(r=S(t))==null?void 0:r.box:void 0;return n&&n.width>0&&n.height>0?{x:n.x,y:n.y,w:n.width,h:n.height}:void 0}function R(t,n){const r=new Set,a=e=>{for(const c of e){if(!c||r.has(c))continue;if(r.add(c),c.type==="Range"&&c.id===n)return c;const o=a(f(c.items));if(o)return o}},s=(e,c=0)=>{for(const o of f(e.items)){if((o==null?void 0:o.type)==="Range"){const p=c<16?s(o,c+1):null;if(p)return p;continue}const d=typeof o=="string"?o:o==null?void 0:o.id,g=l((o==null?void 0:o.type)==="SpecificResource"?o:String(d??"").replace(/\/((?:t|xywh)=[^/#]*)$/,"#$1"));if(!g.id)continue;const u=N(g.t);return{canvasId:g.id,...g.rect?{region:g.rect}:{},...u!==void 0?{time:u}:{}}}return null},i=a(f(t.structures));return i?s(i):null}function v(t,n){if(typeof t=="string"){const a=t.indexOf("#");return a<0?n:n+t.slice(a)}const r=t;return(r==null?void 0:r.type)==="SpecificResource"?{...r,source:typeof r.source=="object"?{...r.source,id:n,type:"Canvas"}:{id:n,type:"Canvas"}}:v(String((r==null?void 0:r.id)??""),n)}function O(t){var c;const{manifest:n,target:r}=t;if(!r)return t;const a=f(n.items);if(a.some(o=>(o==null?void 0:o.id)===r.canvasId))return t;const i=(a.length===1&&((c=a[0])==null?void 0:c.id)===`${n.id}/canvas`?{canvasId:a[0].id}:null)??R(n,r.canvasId);if(!i)return t;const e=t.annotation&&{...t.annotation,target:v(t.annotation.target,i.canvasId)};return{...t,target:{...r,canvasId:i.canvasId,...r.region?{}:i.region?{region:i.region}:{},...r.time!==void 0?{}:i.time!==void 0?{time:i.time}:{}},...e?{annotation:e}:{}}}export{$ as follow,O as placeTarget,I as readAnnotation,A as resolve};
1
+ import{bG as w,az as f,bv as l}from"./viewer-DAIgpvoG.mjs";import{resolveContentState as b}from"./content-state-reader-CnnpSFlK.mjs";import{readSvgShape as S}from"./svg-shape-CTjogIds.mjs";const m="http://iiif.io/api/presentation/2/context.json",x=t=>(t==null?void 0:t["@type"])==="oa:Annotation"||(t==null?void 0:t["@id"])!==void 0&&f(t==null?void 0:t["@context"]).includes(m),y=t=>typeof t=="string"?t:(t==null?void 0:t["@id"])??(t==null?void 0:t.id);async function I(t){if(!x(t))return t;const{convertPresentation2:n}=await import("../presentation-2-C-U79S_T.mjs"),r=n({"@context":m,...JSON.parse(JSON.stringify(t))}),a=f(t.on).map(e=>y(f(e==null?void 0:e.within)[0])),s=f(r.target).map((e,c)=>{const o=a[c];if(!o)return e;const d=[{id:o,type:"Manifest"}],g=(e==null?void 0:e.type)==="SpecificResource",u=y(g?e.source:e);return u?g?{...e,source:{id:u,type:"Canvas",partOf:d}}:{id:u,type:"Canvas",partOf:d}:e}),i=f(r.body).map(e=>typeof(e==null?void 0:e.chars)=="string"?{type:"TextualBody",value:e.chars,...e.format?{format:e.format}:{},...e.language?{language:e.language}:{}}:e);return{...r,"@context":void 0,type:"Annotation",target:s.length===1?s[0]:s,...i.length?{body:i.length===1?i[0]:i}:{}}}async function $(t,n,r){const a=await A(t);if(!a)throw new w("Unreadable content state");const s=await r(a.id,{...n,manifestId:n.manifestId??a.manifestId,follows:(n.follows??0)+1}),{target:i}=a;return O({...s,target:i&&(!s.target||s.target.canvasId===i.canvasId)?{...s.target,...i}:s.target??i,annotation:s.annotation??a.annotation,targets:s.targets??a.targets})}async function A(t){const n=await I(t),r=b(n);if(!r)return null;const a=n.type==="Annotation"?f(n.target)[0]:n,s=C(l(a).svg),i=r.annotation;return{...r,...r.target&&!r.target.region&&s?{target:{...r.target,region:s}}:{},...i?{annotation:{...i,motivation:f(i.motivation).filter(e=>e!=="painting"),...n.label?{label:n.label}:{}}}:{}}}function N(t){const n=t?Number(t.split(",")[0]):NaN;return Number.isFinite(n)?n:void 0}function C(t){var r;const n=t?(r=S(t))==null?void 0:r.box:void 0;return n&&n.width>0&&n.height>0?{x:n.x,y:n.y,w:n.width,h:n.height}:void 0}function R(t,n){const r=new Set,a=e=>{for(const c of e){if(!c||r.has(c))continue;if(r.add(c),c.type==="Range"&&c.id===n)return c;const o=a(f(c.items));if(o)return o}},s=(e,c=0)=>{for(const o of f(e.items)){if((o==null?void 0:o.type)==="Range"){const p=c<16?s(o,c+1):null;if(p)return p;continue}const d=typeof o=="string"?o:o==null?void 0:o.id,g=l((o==null?void 0:o.type)==="SpecificResource"?o:String(d??"").replace(/\/((?:t|xywh)=[^/#]*)$/,"#$1"));if(!g.id)continue;const u=N(g.t);return{canvasId:g.id,...g.rect?{region:g.rect}:{},...u!==void 0?{time:u}:{}}}return null},i=a(f(t.structures));return i?s(i):null}function v(t,n){if(typeof t=="string"){const a=t.indexOf("#");return a<0?n:n+t.slice(a)}const r=t;return(r==null?void 0:r.type)==="SpecificResource"?{...r,source:typeof r.source=="object"?{...r.source,id:n,type:"Canvas"}:{id:n,type:"Canvas"}}:v(String((r==null?void 0:r.id)??""),n)}function O(t){var c;const{manifest:n,target:r}=t;if(!r)return t;const a=f(n.items);if(a.some(o=>(o==null?void 0:o.id)===r.canvasId))return t;const i=(a.length===1&&((c=a[0])==null?void 0:c.id)===`${n.id}/canvas`?{canvasId:a[0].id}:null)??R(n,r.canvasId);if(!i)return t;const e=t.annotation&&{...t.annotation,target:v(t.annotation.target,i.canvasId)};return{...t,target:{...r,canvasId:i.canvasId,...r.region?{}:i.region?{region:i.region}:{},...r.time!==void 0?{}:i.time!==void 0?{time:i.time}:{}},...e?{annotation:e}:{}}}export{$ as follow,O as placeTarget,I as readAnnotation,A as resolve};
@@ -1 +1 @@
1
- var R=Object.defineProperty;var k=(s,t,e)=>t in s?R(s,t,{enumerable:true,configurable:true,writable:true,value:e}):s[t]=e;var l=(s,t,e)=>k(s,typeof t!="symbol"?t+"":t,e);import{b as x,n as E,u as r,M as p,k as O,q as M,C as m,I as g,$ as C,x as D}from"./viewer-8GpsPBqv.mjs";import"./styles-LW5XsRcK.mjs";function N(s){return{render:function(t){E(t,s)},unmount:function(){x(s)}}}const $="clover-root",b=Symbol("roots"),A=[];class F{constructor(t){l(this,"entries",new Map);l(this,"lists",new Map);l(this,"listeners",new Map);l(this,"languages",new I(t2=>this.entries.has(t2)));this.count=t}list(t){return this.lists.get(t)??A}subscribe(t,e){let n=this.listeners.get(t);return n||this.listeners.set(t,n=new Set),n.add(e),()=>{n.delete(e)}}connect(t){var i;const e=t.kind==="part"?((i=t.element.parentElement)==null?void 0:i.closest($))??null:null,n=this.entries.get(t.element);if(n&&n.root===e)return;const o={hosted:t,key:(n==null?void 0:n.key)??++this.count.made,root:e};this.entries.set(t.element,o),n&&this.change(h(n),a=>a.filter(c=>c!==n)),this.change(h(o),a=>[...a,o]),t.needsRoot&&!e&&console.warn(`<${t.element.localName}> shows a <clover-root>'s state: put it inside one.`),t.kind!=="root"&&this.languages.draws(t.element.localName),(t.kind!=="part"||!e)&&this.languages.watch(t.element)}disconnect(t){const e=this.entries.get(t);e&&(this.entries.delete(t),this.change(h(e),n=>n.filter(o=>o!==e)))}change(t,e){var n;this.lists.set(t,e(this.list(t))),(n=this.listeners.get(t))==null||n.forEach(o=>o())}}const h=s=>s.hosted.kind==="root"?b:s.root;class I{constructor(t){l(this,"observer",null);l(this,"tags",new Set);this.isElement=t}draws(t){this.tags.add(t)}watch(t){this.observer??(this.observer=new MutationObserver(e=>{const n=[...this.tags,".clover-announcer"].join(",");for(const{target:o}of e){const i=o;i.getAttribute("lang")!==""||this.isElement(i)||i.closest(n)&&i.removeAttribute("lang")}})),this.observer.observe(t,{subtree:true,attributes:true,attributeFilter:["lang"]})}}function d(s,t){const e=M(o=>s.subscribe(t,o),[s,t]);return m(e,()=>s.list(t))}function w(s){return m(s.subscribe,s.getProps,s.getProps)}function L({registry:s}){const t=d(s,b),e=d(s,null);return r(O,{children:[t.map(n=>r(W,{entry:n,registry:s},n.key)),e.map(n=>r(S,{entry:n},n.key))]})}const v=s=>`clover-${s.key}-`,W=p(function({entry:t,registry:e}){const{hosted:n}=t,o=d(e,n.element),i=w(n),a=n.Component;return r(P,{hosted:n,props:i,children:r(g.Provider,{value:v(t),children:r(a,{hosted:n,props:i,children:o.map(c=>r(S,{entry:c},c.key))})})})}),S=p(function({entry:t}){const{hosted:e}=t,n=w(e);if(e.needsRoot&&!t.root)return null;const o=e.Component;return C(r(P,{hosted:e,props:n,children:r(g.Provider,{value:v(t),children:r(o,{hosted:e,props:n})})}),e.element)});class P extends D{constructor(){super(...arguments);l(this,"state",{failed:false})}static getDerivedStateFromError(){return{failed:true}}componentDidCatch(e,n){console.error(`<${this.props.hosted.element.localName}>:`,e)}componentDidUpdate(e){this.state.failed&&e.props!==this.props.props&&this.setState({failed:false})}render(){return this.state.failed?null:this.props.children}}const f=new WeakMap,u=Symbol.for("clover.elements");function H(s){let t=f.get(s);if(!t){const e=s;e[u]&&console.warn("Clover is loaded twice on this page: load one entry."),t=new F(e[u]??(e[u]={made:0})),f.set(s,t),N(s.createElement("div")).render(r(L,{registry:t}))}return t}export{F as Registry,H as hostOf};
1
+ var R=Object.defineProperty;var k=(s,t,e)=>t in s?R(s,t,{enumerable:true,configurable:true,writable:true,value:e}):s[t]=e;var l=(s,t,e)=>k(s,typeof t!="symbol"?t+"":t,e);import{b as x,n as E,u as r,M as p,k as O,q as M,C as m,I as g,$ as C,x as D}from"./viewer-DAIgpvoG.mjs";import"./styles-ihp-vncb.mjs";function N(s){return{render:function(t){E(t,s)},unmount:function(){x(s)}}}const $="clover-root",b=Symbol("roots"),A=[];class F{constructor(t){l(this,"entries",new Map);l(this,"lists",new Map);l(this,"listeners",new Map);l(this,"languages",new I(t2=>this.entries.has(t2)));this.count=t}list(t){return this.lists.get(t)??A}subscribe(t,e){let n=this.listeners.get(t);return n||this.listeners.set(t,n=new Set),n.add(e),()=>{n.delete(e)}}connect(t){var i;const e=t.kind==="part"?((i=t.element.parentElement)==null?void 0:i.closest($))??null:null,n=this.entries.get(t.element);if(n&&n.root===e)return;const o={hosted:t,key:(n==null?void 0:n.key)??++this.count.made,root:e};this.entries.set(t.element,o),n&&this.change(h(n),a=>a.filter(c=>c!==n)),this.change(h(o),a=>[...a,o]),t.needsRoot&&!e&&console.warn(`<${t.element.localName}> shows a <clover-root>'s state: put it inside one.`),t.kind!=="root"&&this.languages.draws(t.element.localName),(t.kind!=="part"||!e)&&this.languages.watch(t.element)}disconnect(t){const e=this.entries.get(t);e&&(this.entries.delete(t),this.change(h(e),n=>n.filter(o=>o!==e)))}change(t,e){var n;this.lists.set(t,e(this.list(t))),(n=this.listeners.get(t))==null||n.forEach(o=>o())}}const h=s=>s.hosted.kind==="root"?b:s.root;class I{constructor(t){l(this,"observer",null);l(this,"tags",new Set);this.isElement=t}draws(t){this.tags.add(t)}watch(t){this.observer??(this.observer=new MutationObserver(e=>{const n=[...this.tags,".clover-announcer"].join(",");for(const{target:o}of e){const i=o;i.getAttribute("lang")!==""||this.isElement(i)||i.closest(n)&&i.removeAttribute("lang")}})),this.observer.observe(t,{subtree:true,attributes:true,attributeFilter:["lang"]})}}function d(s,t){const e=M(o=>s.subscribe(t,o),[s,t]);return m(e,()=>s.list(t))}function w(s){return m(s.subscribe,s.getProps,s.getProps)}function L({registry:s}){const t=d(s,b),e=d(s,null);return r(O,{children:[t.map(n=>r(W,{entry:n,registry:s},n.key)),e.map(n=>r(S,{entry:n},n.key))]})}const v=s=>`clover-${s.key}-`,W=p(function({entry:t,registry:e}){const{hosted:n}=t,o=d(e,n.element),i=w(n),a=n.Component;return r(P,{hosted:n,props:i,children:r(g.Provider,{value:v(t),children:r(a,{hosted:n,props:i,children:o.map(c=>r(S,{entry:c},c.key))})})})}),S=p(function({entry:t}){const{hosted:e}=t,n=w(e);if(e.needsRoot&&!t.root)return null;const o=e.Component;return C(r(P,{hosted:e,props:n,children:r(g.Provider,{value:v(t),children:r(o,{hosted:e,props:n})})}),e.element)});class P extends D{constructor(){super(...arguments);l(this,"state",{failed:false})}static getDerivedStateFromError(){return{failed:true}}componentDidCatch(e,n){console.error(`<${this.props.hosted.element.localName}>:`,e)}componentDidUpdate(e){this.state.failed&&e.props!==this.props.props&&this.setState({failed:false})}render(){return this.state.failed?null:this.props.children}}const f=new WeakMap,u=Symbol.for("clover.elements");function H(s){let t=f.get(s);if(!t){const e=s;e[u]&&console.warn("Clover is loaded twice on this page: load one entry."),t=new F(e[u]??(e[u]={made:0})),f.set(s,t),N(s.createElement("div")).render(r(L,{registry:t}))}return t}export{F as Registry,H as hostOf};
@@ -1 +1 @@
1
- import{ac as C,az as u,ax as I,bv as $,bC as L,bD as P}from"./viewer-8GpsPBqv.mjs";function q(t){const c=new Map;for(const e of C(t).canvases)S(e,c);return[...c.values()]}function S(t,c){u(t.items).forEach((e,r)=>u(e==null?void 0:e.items).forEach((d,f)=>{if(!I(d))return;const a=$(u(d.target)[0]).rect??{x:0,y:0,w:Number(t.width)||0,h:Number(t.height)||0};u(d.body).forEach((s,y)=>{const w=(s==null?void 0:s.type)==="Choice";(w?u(s.items):[s]).forEach((o,x)=>{for(const n of u(o==null?void 0:o.annotations)){if(!Array.isArray(n==null?void 0:n.items)||typeof(o==null?void 0:o.id)!="string")continue;const l=n.id??`${o.id}#annotations`,p=w?{key:L(t.id,d.id,r,f,y),item:x,image:o.id}:void 0,A=P(n,l,t.id).map(b=>{const h=j(b.annotation,o),N=Math.round(a.x+h.x*(a.w/h.width)),E=Math.round(a.y+h.y*(a.h/h.height)),g=Math.round(h.w*(a.w/h.width)),v=Math.round(h.h*(a.h/h.height)),M=`${t.id}#xywh=${N},${E},${g},${v}`;return{...b,canvasId:t.id,target:$(M),annotation:{...b.annotation,target:M},...p?{layer:p}:{}}});if(!A.length)continue;let m=c.get(l);m||(m={id:l,label:n.label??o.label,source:"manifest",entries:[]},c.set(l,m)),m.entries.push(...A)}})})}))}function j(t,c){const e=Number(c.width)||1,r=Number(c.height)||1,d={x:0,y:0,w:e,h:r,width:e,height:r},f=u(t==null?void 0:t.target)[0],s=(typeof f=="object"?u(f==null?void 0:f.selector):[]).find(i=>(i==null?void 0:i.type)==="ImageApiSelector"),y=typeof(s==null?void 0:s.region)=="string"?s.region:void 0;if(y){const i=/^(pct:)?([\d.]+),([\d.]+),([\d.]+),([\d.]+)$/.exec(y);if(!i)return d;const[o,x,n,l]=i.slice(2).map(Number);return i[1]?{x:o/100*e,y:x/100*r,w:n/100*e,h:l/100*r,width:e,height:r}:{x:o,y:x,w:n,h:l,width:e,height:r}}const w=$(f).rect;return w?{...w,width:e,height:r}:d}export{q as imageLayers};
1
+ import{ac as C,az as u,ax as I,bv as $,bC as L,bD as P}from"./viewer-DAIgpvoG.mjs";function q(t){const c=new Map;for(const e of C(t).canvases)S(e,c);return[...c.values()]}function S(t,c){u(t.items).forEach((e,r)=>u(e==null?void 0:e.items).forEach((d,f)=>{if(!I(d))return;const a=$(u(d.target)[0]).rect??{x:0,y:0,w:Number(t.width)||0,h:Number(t.height)||0};u(d.body).forEach((s,y)=>{const w=(s==null?void 0:s.type)==="Choice";(w?u(s.items):[s]).forEach((o,x)=>{for(const n of u(o==null?void 0:o.annotations)){if(!Array.isArray(n==null?void 0:n.items)||typeof(o==null?void 0:o.id)!="string")continue;const l=n.id??`${o.id}#annotations`,p=w?{key:L(t.id,d.id,r,f,y),item:x,image:o.id}:void 0,A=P(n,l,t.id).map(b=>{const h=j(b.annotation,o),N=Math.round(a.x+h.x*(a.w/h.width)),E=Math.round(a.y+h.y*(a.h/h.height)),g=Math.round(h.w*(a.w/h.width)),v=Math.round(h.h*(a.h/h.height)),M=`${t.id}#xywh=${N},${E},${g},${v}`;return{...b,canvasId:t.id,target:$(M),annotation:{...b.annotation,target:M},...p?{layer:p}:{}}});if(!A.length)continue;let m=c.get(l);m||(m={id:l,label:n.label??o.label,source:"manifest",entries:[]},c.set(l,m)),m.entries.push(...A)}})})}))}function j(t,c){const e=Number(c.width)||1,r=Number(c.height)||1,d={x:0,y:0,w:e,h:r,width:e,height:r},f=u(t==null?void 0:t.target)[0],s=(typeof f=="object"?u(f==null?void 0:f.selector):[]).find(i=>(i==null?void 0:i.type)==="ImageApiSelector"),y=typeof(s==null?void 0:s.region)=="string"?s.region:void 0;if(y){const i=/^(pct:)?([\d.]+),([\d.]+),([\d.]+),([\d.]+)$/.exec(y);if(!i)return d;const[o,x,n,l]=i.slice(2).map(Number);return i[1]?{x:o/100*e,y:x/100*r,w:n/100*e,h:l/100*r,width:e,height:r}:{x:o,y:x,w:n,h:l,width:e,height:r}}const w=$(f).rect;return w?{...w,width:e,height:r}:d}export{q as imageLayers};
@@ -1 +1 @@
1
- import{bZ as c,b_ as d,b$ as l}from"./viewer-8GpsPBqv.mjs";function m(i){const{width:e,height:t,maxWidth:n,maxHeight:r,maxArea:o}=i,g=(s,p)=>(!n||s<=n)&&(!r||p<=r)&&(!o||s*p<=o);if(g(e,t))return{width:e,height:t};const h=i.sizes.filter(s=>g(s.width,s.height));if(h.length)return h[h.length-1];if(!i.sizeByW)return{width:e,height:t};const a=Math.min(n?n/e:1,r?r/t:1,o?Math.sqrt(o/(e*t)):1);return{width:Math.max(1,Math.floor(e*a)),height:Math.max(1,Math.floor(t*a))}}function u(i,e=200){return i.sizes.find(t=>Math.max(t.width,t.height)>=e)??m(i)}const y={jpg:"image/jpeg",png:"image/png",webp:"image/webp",gif:"image/gif"};function f(i,e,t){const n={x:0,y:0,width:i.width,height:i.height};return{id:l(i,n,t.width,t.height),type:"Image",format:y[i.format]??"image/jpeg",width:t.width,height:t.height,service:[e]}}function w(i,e){if(e.version===3)return{id:e.id,type:"ImageService3",profile:typeof i.profile=="string"?i.profile:"level0"};const t=[].concat(i.profile??[]).find(n=>typeof n=="string");return{"@id":e.id,"@type":"ImageService2",profile:t??"http://iiif.io/api/image/2/level0.json"}}async function x(i,e){const t=c(i,e),n=w(i,t),r=`${t.id}/canvas`,o=[i.rights,i.license].flat().find(a=>typeof a=="string"),g=i.attribution,h={"@context":"http://iiif.io/api/presentation/3/context.json",id:t.id,type:"Manifest",label:{none:[""]},thumbnail:[f(t,n,u(t))],items:[{id:r,type:"Canvas",width:t.width,height:t.height,items:[{id:`${r}/page`,type:"AnnotationPage",items:[{id:`${r}/page/image`,type:"Annotation",motivation:"painting",body:f(t,n,m(t)),target:r}]}]}]};return o&&(h.rights=o),g&&(h.requiredStatement={label:{en:["Attribution"]},value:{none:[].concat(g).map(a=>typeof a=="string"?a:String((a==null?void 0:a["@value"])??"")).filter(Boolean)}}),{manifest:await d(h)}}export{m as fittedSize,x as imageServiceContent};
1
+ import{bZ as c,b_ as d,b$ as l}from"./viewer-DAIgpvoG.mjs";function m(i){const{width:e,height:t,maxWidth:n,maxHeight:r,maxArea:o}=i,g=(s,p)=>(!n||s<=n)&&(!r||p<=r)&&(!o||s*p<=o);if(g(e,t))return{width:e,height:t};const h=i.sizes.filter(s=>g(s.width,s.height));if(h.length)return h[h.length-1];if(!i.sizeByW)return{width:e,height:t};const a=Math.min(n?n/e:1,r?r/t:1,o?Math.sqrt(o/(e*t)):1);return{width:Math.max(1,Math.floor(e*a)),height:Math.max(1,Math.floor(t*a))}}function u(i,e=200){return i.sizes.find(t=>Math.max(t.width,t.height)>=e)??m(i)}const y={jpg:"image/jpeg",png:"image/png",webp:"image/webp",gif:"image/gif"};function f(i,e,t){const n={x:0,y:0,width:i.width,height:i.height};return{id:l(i,n,t.width,t.height),type:"Image",format:y[i.format]??"image/jpeg",width:t.width,height:t.height,service:[e]}}function w(i,e){if(e.version===3)return{id:e.id,type:"ImageService3",profile:typeof i.profile=="string"?i.profile:"level0"};const t=[].concat(i.profile??[]).find(n=>typeof n=="string");return{"@id":e.id,"@type":"ImageService2",profile:t??"http://iiif.io/api/image/2/level0.json"}}async function x(i,e){const t=c(i,e),n=w(i,t),r=`${t.id}/canvas`,o=[i.rights,i.license].flat().find(a=>typeof a=="string"),g=i.attribution,h={"@context":"http://iiif.io/api/presentation/3/context.json",id:t.id,type:"Manifest",label:{none:[""]},thumbnail:[f(t,n,u(t))],items:[{id:r,type:"Canvas",width:t.width,height:t.height,items:[{id:`${r}/page`,type:"AnnotationPage",items:[{id:`${r}/page/image`,type:"Annotation",motivation:"painting",body:f(t,n,m(t)),target:r}]}]}]};return o&&(h.rights=o),g&&(h.requiredStatement={label:{en:["Attribution"]},value:{none:[].concat(g).map(a=>typeof a=="string"?a:String((a==null?void 0:a["@value"])??"")).filter(Boolean)}}),{manifest:await d(h)}}export{m as fittedSize,x as imageServiceContent};
@@ -1 +1 @@
1
- import{cv as e}from"./viewer-8GpsPBqv.mjs";export{e as initCloverI18n};
1
+ import{cv as e}from"./viewer-DAIgpvoG.mjs";export{e as initCloverI18n};
@@ -0,0 +1 @@
1
+ import{az as d,ay as o,bv as c}from"./viewer-DAIgpvoG.mjs";function g(i){if(d(i==null?void 0:i.motivation).includes("linking"))for(const t of o(i)){const f=u(t);if(!f)continue;const{id:r,source:e}=f;if((e==null?void 0:e.type)==="Canvas"){const n=d(e.partOf).find(s=>(s==null?void 0:s.id)&&(!s.type||s.type==="Manifest")),p=c(r).id;return{id:r,canvasId:p,...n?{manifestId:n.id}:{}}}if((e==null?void 0:e.type)==="Manifest"||(e==null?void 0:e.type)==="Collection")return{id:r,manifestId:r};if(/^https?:\/\//i.test(r))return{id:r}}}function y(i){const t=d(i==null?void 0:i.motivation);if(!(!t.includes("tagging")&&!t.includes("identifying")))for(const f of o(i)){const r=u(f);if(r&&/^https?:\/\//i.test(r.id))return{id:r.id}}}function u(i){if((i==null?void 0:i.type)!=="SpecificResource")return;const t=i.source;if(typeof t=="string")return t?{id:t,source:void 0}:void 0;const f=t==null?void 0:t.id;return typeof f=="string"&&f?{id:f,source:t}:void 0}export{y as a,g as r};
@@ -1 +1 @@
1
- import{bu as o,cs as s,ct as a}from"./viewer-8GpsPBqv.mjs";async function d(r,c,n){const t=typeof r.id=="string"?r.id:void 0,e=o(r.service);if(!e)return t;try{const i=await s(e,{request:n});return a(i,c)??t}catch{return t}}export{d as overlayImageUrl};
1
+ import{bu as o,cs as s,ct as a}from"./viewer-DAIgpvoG.mjs";async function d(r,c,n){const t=typeof r.id=="string"?r.id:void 0,e=o(r.service);if(!e)return t;try{const i=await s(e,{request:n});return a(i,c)??t}catch{return t}}export{d as overlayImageUrl};
@@ -1 +1 @@
1
- import{az as c,bA as l,bv as g,bB as v,ba as A}from"./viewer-8GpsPBqv.mjs";const E=t=>t&&typeof t=="object"?Object.entries(t).flatMap(([i,r])=>c(r).filter(s=>typeof s=="string").map(s=>({value:s,...i!=="none"?{language:i}:{}}))):typeof t=="string"?[{value:t}]:[],a=new WeakMap;function j(t){if(!t)return null;if(a.has(t))return a.get(t);const i=[],r=new Set,s=n=>{if(!n||r.has(n.id??n))return;r.add(n.id??n);const b=typeof n.id=="string"&&!c(n.behavior).includes("no-nav"),d=E(n.label),h=c(n.items).filter(o=>(o==null?void 0:o.type)!=="Range"&&g(v(o)).id).length;let w=0;for(const o of c(n.items)){if((o==null?void 0:o.type)==="Range"){s(o);continue}const e=g(v(o));if(!e.id)continue;const f=w++;if(!b||!e.rect)continue;const{x,y:T,w:I,h:S}=e.rect,u=A(n.id,f);i.push({id:u,setId:l,canvasId:e.id,target:{id:e.id,rect:e.rect},motivation:["highlighting"],bodies:d,...h>1?{place:{index:f+1,total:h}}:{},annotation:{id:u,type:"Annotation",motivation:["highlighting"],...d.length&&{body:d.map(({value:$,language:y})=>({type:"TextualBody",value:$,...y?{language:y}:{}}))},target:`${e.id}#xywh=${x},${T},${I},${S}`}})}};c(t.structures).forEach(s);const p=i.length?{id:l,source:"contents",entries:i}:null;return a.set(t,p),p}export{j as contentsSet};
1
+ import{az as c,bA as l,bv as g,bB as v,ba as A}from"./viewer-DAIgpvoG.mjs";const E=t=>t&&typeof t=="object"?Object.entries(t).flatMap(([i,r])=>c(r).filter(s=>typeof s=="string").map(s=>({value:s,...i!=="none"?{language:i}:{}}))):typeof t=="string"?[{value:t}]:[],a=new WeakMap;function j(t){if(!t)return null;if(a.has(t))return a.get(t);const i=[],r=new Set,s=n=>{if(!n||r.has(n.id??n))return;r.add(n.id??n);const b=typeof n.id=="string"&&!c(n.behavior).includes("no-nav"),d=E(n.label),h=c(n.items).filter(o=>(o==null?void 0:o.type)!=="Range"&&g(v(o)).id).length;let w=0;for(const o of c(n.items)){if((o==null?void 0:o.type)==="Range"){s(o);continue}const e=g(v(o));if(!e.id)continue;const f=w++;if(!b||!e.rect)continue;const{x,y:T,w:I,h:S}=e.rect,u=A(n.id,f);i.push({id:u,setId:l,canvasId:e.id,target:{id:e.id,rect:e.rect},motivation:["highlighting"],bodies:d,...h>1?{place:{index:f+1,total:h}}:{},annotation:{id:u,type:"Annotation",motivation:["highlighting"],...d.length&&{body:d.map(({value:$,language:y})=>({type:"TextualBody",value:$,...y?{language:y}:{}}))},target:`${e.id}#xywh=${x},${T},${I},${S}`}})}};c(t.structures).forEach(s);const p=i.length?{id:l,source:"contents",entries:i}:null;return a.set(t,p),p}export{j as contentsSet};
@@ -1 +1 @@
1
- import{Y as f,u as r,A as u,Z as p,_ as d,k as m}from"./viewer-8GpsPBqv.mjs";import"./styles-LW5XsRcK.mjs";const v=f(null),l=new WeakMap;function y(t){let n=l.get(t);if(!n){const{render:o}=t;n={canvasId:t.canvasId,format:t.format,match:t.match,component:c=>r(A,{...c,render:o})},l.set(t,n)}return n}function h(t){if(Array.isArray(t))return t.filter(n=>typeof n=="object"&&n!==null&&typeof n.render=="function").map(y)}function A({render:t,canvases:n,bodies:o,children:c}){const a=u(null),s=p(v);return d(()=>{const e=a.current;if(!e)return;const i=t(e,{canvases:n,bodies:o,clover:s});return()=>{typeof i=="function"&&i(),e.replaceChildren()}},[t,n,o,s]),r(m,{children:[r("div",{ref:a,className:"clover-body-renderer",style:{position:"absolute",inset:0}}),c&&r("div",{className:"clover-canvas-controls",children:c})]})}export{h as toRenderers};
1
+ import{Y as f,u as r,A as u,Z as p,_ as d,k as m}from"./viewer-DAIgpvoG.mjs";import"./styles-ihp-vncb.mjs";const v=f(null),l=new WeakMap;function y(t){let n=l.get(t);if(!n){const{render:o}=t;n={canvasId:t.canvasId,format:t.format,match:t.match,component:c=>r(A,{...c,render:o})},l.set(t,n)}return n}function h(t){if(Array.isArray(t))return t.filter(n=>typeof n=="object"&&n!==null&&typeof n.render=="function").map(y)}function A({render:t,canvases:n,bodies:o,children:c}){const a=u(null),s=p(v);return d(()=>{const e=a.current;if(!e)return;const i=t(e,{canvases:n,bodies:o,clover:s});return()=>{typeof i=="function"&&i(),e.replaceChildren()}},[t,n,o,s]),r(m,{children:[r("div",{ref:a,className:"clover-body-renderer",style:{position:"absolute",inset:0}}),c&&r("div",{className:"clover-canvas-controls",children:c})]})}export{h as toRenderers};
@@ -1 +1 @@
1
- import{bW as a}from"./viewer-8GpsPBqv.mjs";function c(t){try{const o=new URL(t).pathname.split("/").filter(Boolean).pop();return o?decodeURIComponent(o):"download"}catch{return"download"}}async function i(t,o){try{const r=await a(o,t,{referrerPolicy:"no-referrer"});if(!r.ok)return false;const n=URL.createObjectURL(await r.blob()),e=document.createElement("a");return e.href=n,e.download=c(t),document.body.append(e),e.click(),e.remove(),setTimeout(()=>URL.revokeObjectURL(n),1e4),true}catch{return false}}export{c as fileName,i as saveFile};
1
+ import{bW as a}from"./viewer-DAIgpvoG.mjs";function c(t){try{const o=new URL(t).pathname.split("/").filter(Boolean).pop();return o?decodeURIComponent(o):"download"}catch{return"download"}}async function i(t,o){try{const r=await a(o,t,{referrerPolicy:"no-referrer"});if(!r.ok)return false;const n=URL.createObjectURL(await r.blob()),e=document.createElement("a");return e.href=n,e.download=c(t),document.body.append(e),e.click(),e.remove(),setTimeout(()=>URL.revokeObjectURL(n),1e4),true}catch{return false}}export{c as fileName,i as saveFile};
@@ -1 +1 @@
1
- import{bE as b,az as f,bv as w,bF as S}from"./viewer-8GpsPBqv.mjs";const x=10;async function R(r,t,s,o,e){var n,d;const i=(n=r.get().manifest)==null?void 0:n.id;try{const{hits:c,set:u}=await A(t,s,{request:o,signal:e});if(e.aborted||((d=r.get().manifest)==null?void 0:d.id)!==i)return;r.set({search:{query:s,status:"ready",hits:c,set:u}})}catch{if(e.aborted)return;r.set({search:{query:s,status:"error",hits:[],set:null}})}}async function A(r,t,{request:s,signal:o}={}){const e=new URL(r.id);e.searchParams.set("q",t);const i=[];let n=e.toString();const d=new Set;for(;n&&i.length<x&&!d.has(n);){d.add(n);const c=await b(s,n,o);i.push(c),n=T(c)}return $(i,t)}function E(r){var e;const t=f(r)[0];if(typeof t=="string"||!t)return t;const s=t.full??t["@id"],o=(e=f(t.selector)[0])==null?void 0:e.value;return typeof o=="string"&&typeof s=="string"?`${s}#${o}`:s}function T(r){var o;const t=r.next??((o=r.within)==null?void 0:o.next),s=typeof t=="string"?t:(t==null?void 0:t.id)??(t==null?void 0:t["@id"]);return typeof s=="string"?s:null}function $(r,t){var e,i;const s=[],o=[];for(const n of r){const d=Array.isArray(n.resources),c=d?n.resources:f(n.items),u=new Map;for(const a of c){const p=a.id??a["@id"],m=d?E(a.on):f(a.target)[0],v=w(m);if(!p||!v.id)continue;const y=d?(e=a.resource)==null?void 0:e.chars:f(a.body).map(l=>l==null?void 0:l.value).find(l=>typeof l=="string"),I={id:p,setId:S,canvasId:v.id,target:v,motivation:["highlighting"],bodies:[{value:String(y??t)}],annotation:{id:p,type:"Annotation",motivation:["highlighting"],body:{type:"TextualBody",value:String(y??t)},target:m}};u.set(p,I),s.push(I)}const g=d?H(n,u):M(n,u),h=new Set(g.flatMap(a=>a.entryIds));o.push(...g);for(const a of u.values())h.has(a.id)||o.push({id:a.id,canvasId:a.canvasId,entryIds:[a.id],match:((i=a.bodies[0])==null?void 0:i.value)??t})}return{query:t,hits:o,set:{id:S,label:{none:[t]},source:"search",entries:s}}}function H(r,t){var o;const s=[];for(const e of f(r.hits)){const i=f(e.annotations).filter(n=>t.has(n));i.length&&s.push({id:i.join(" "),canvasId:t.get(i[0]).canvasId,entryIds:i,before:e.before,match:String(e.match??((o=t.get(i[0]).bodies[0])==null?void 0:o.value)??""),after:e.after})}return s}function M(r,t){var o,e;const s=[];for(const i of f(r.annotations))for(const n of f(i==null?void 0:i.items))if(f(n==null?void 0:n.motivation).includes("contextualizing"))for(const c of f(n.target)){const u=typeof(c==null?void 0:c.source)=="string"?c.source:(o=c==null?void 0:c.source)==null?void 0:o.id,g=u?t.get(u):void 0;if(!g)continue;const h=f(c.selector).find(a=>(a==null?void 0:a.type)==="TextQuoteSelector");s.push({id:`${n.id??u}#${u}`,canvasId:g.canvasId,entryIds:[g.id],before:h==null?void 0:h.prefix,match:String((h==null?void 0:h.exact)??((e=g.bodies[0])==null?void 0:e.value)??""),after:h==null?void 0:h.suffix})}return s}export{$ as readResults,A as search,R as searchInto};
1
+ import{bE as b,az as f,bv as w,bF as S}from"./viewer-DAIgpvoG.mjs";const x=10;async function R(r,t,s,o,e){var n,d;const i=(n=r.get().manifest)==null?void 0:n.id;try{const{hits:c,set:u}=await A(t,s,{request:o,signal:e});if(e.aborted||((d=r.get().manifest)==null?void 0:d.id)!==i)return;r.set({search:{query:s,status:"ready",hits:c,set:u}})}catch{if(e.aborted)return;r.set({search:{query:s,status:"error",hits:[],set:null}})}}async function A(r,t,{request:s,signal:o}={}){const e=new URL(r.id);e.searchParams.set("q",t);const i=[];let n=e.toString();const d=new Set;for(;n&&i.length<x&&!d.has(n);){d.add(n);const c=await b(s,n,o);i.push(c),n=T(c)}return $(i,t)}function E(r){var e;const t=f(r)[0];if(typeof t=="string"||!t)return t;const s=t.full??t["@id"],o=(e=f(t.selector)[0])==null?void 0:e.value;return typeof o=="string"&&typeof s=="string"?`${s}#${o}`:s}function T(r){var o;const t=r.next??((o=r.within)==null?void 0:o.next),s=typeof t=="string"?t:(t==null?void 0:t.id)??(t==null?void 0:t["@id"]);return typeof s=="string"?s:null}function $(r,t){var e,i;const s=[],o=[];for(const n of r){const d=Array.isArray(n.resources),c=d?n.resources:f(n.items),u=new Map;for(const a of c){const p=a.id??a["@id"],m=d?E(a.on):f(a.target)[0],v=w(m);if(!p||!v.id)continue;const y=d?(e=a.resource)==null?void 0:e.chars:f(a.body).map(l=>l==null?void 0:l.value).find(l=>typeof l=="string"),I={id:p,setId:S,canvasId:v.id,target:v,motivation:["highlighting"],bodies:[{value:String(y??t)}],annotation:{id:p,type:"Annotation",motivation:["highlighting"],body:{type:"TextualBody",value:String(y??t)},target:m}};u.set(p,I),s.push(I)}const g=d?H(n,u):M(n,u),h=new Set(g.flatMap(a=>a.entryIds));o.push(...g);for(const a of u.values())h.has(a.id)||o.push({id:a.id,canvasId:a.canvasId,entryIds:[a.id],match:((i=a.bodies[0])==null?void 0:i.value)??t})}return{query:t,hits:o,set:{id:S,label:{none:[t]},source:"search",entries:s}}}function H(r,t){var o;const s=[];for(const e of f(r.hits)){const i=f(e.annotations).filter(n=>t.has(n));i.length&&s.push({id:i.join(" "),canvasId:t.get(i[0]).canvasId,entryIds:i,before:e.before,match:String(e.match??((o=t.get(i[0]).bodies[0])==null?void 0:o.value)??""),after:e.after})}return s}function M(r,t){var o,e;const s=[];for(const i of f(r.annotations))for(const n of f(i==null?void 0:i.items))if(f(n==null?void 0:n.motivation).includes("contextualizing"))for(const c of f(n.target)){const u=typeof(c==null?void 0:c.source)=="string"?c.source:(o=c==null?void 0:c.source)==null?void 0:o.id,g=u?t.get(u):void 0;if(!g)continue;const h=f(c.selector).find(a=>(a==null?void 0:a.type)==="TextQuoteSelector");s.push({id:`${n.id??u}#${u}`,canvasId:g.canvasId,entryIds:[g.id],before:h==null?void 0:h.prefix,match:String((h==null?void 0:h.exact)??((e=g.bodies[0])==null?void 0:e.value)??""),after:h==null?void 0:h.suffix})}return s}export{$ as readResults,A as search,R as searchInto};