@nulib/clover 4.0.0-beta.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (476) hide show
  1. package/README.md +7 -7
  2. package/dist/components/Annotations/Annotations.mjs +165 -204
  3. package/dist/components/Annotations/EntryBodies.mjs +28 -3
  4. package/dist/components/Annotations/languages.mjs +1 -17
  5. package/dist/components/Body/BodyAlert.mjs +2 -1
  6. package/dist/components/Body/Caption.mjs +2 -1
  7. package/dist/components/Body/CaptionDetails.mjs +2 -1
  8. package/dist/components/Body/glyphs.mjs +9 -0
  9. package/dist/components/Canvas/AnnotationMenu.mjs +76 -60
  10. package/dist/components/Canvas/AnnotationState.mjs +9 -2
  11. package/dist/components/Canvas/Annotations.mjs +16 -7
  12. package/dist/components/Canvas/CanvasView.mjs +173 -32
  13. package/dist/components/Canvas/ChoiceMenu.mjs +51 -31
  14. package/dist/components/Canvas/Connected.mjs +38 -4
  15. package/dist/components/Canvas/ControlMenu.mjs +6 -4
  16. package/dist/components/Canvas/Controls.mjs +17 -1
  17. package/dist/components/Canvas/FrameAnimation.mjs +568 -167
  18. package/dist/components/Canvas/LoadedCanvas.mjs +5 -3
  19. package/dist/components/Canvas/PlaceBox.mjs +74 -0
  20. package/dist/components/Canvas/Placeholder.mjs +2 -1
  21. package/dist/components/Canvas/fromManifest.mjs +2 -1
  22. package/dist/components/Canvas/layout.mjs +121 -32
  23. package/dist/components/Canvas/media/MediaBody.mjs +32 -6
  24. package/dist/components/Canvas/media/Player.mjs +11 -25
  25. package/dist/components/Canvas/media/Transport.mjs +94 -61
  26. package/dist/components/Canvas/media/TransportButton.mjs +2 -1
  27. package/dist/components/Canvas/media/placeMenu.mjs +19 -0
  28. package/dist/components/Canvas/media/seekGaps.mjs +43 -0
  29. package/dist/components/Canvas/media/sequence.mjs +96 -0
  30. package/dist/components/Canvas/media/useMediaElement.mjs +22 -3
  31. package/dist/components/Collection/Collection.mjs +2 -1
  32. package/dist/components/CollectionSelect/CollectionSelect.mjs +5 -2
  33. package/dist/components/Contents/Contents.mjs +163 -34
  34. package/dist/components/Download/Download.mjs +34 -38
  35. package/dist/components/Download/downloads.mjs +40 -0
  36. package/dist/components/Items/AnnotationItems.mjs +165 -0
  37. package/dist/components/Items/CountMenu.mjs +89 -0
  38. package/dist/components/Items/Item.mjs +24 -17
  39. package/dist/components/Items/Items.mjs +65 -37
  40. package/dist/components/Items/Pager.mjs +39 -79
  41. package/dist/components/Items/PagerLayout.mjs +41 -0
  42. package/dist/components/Items/Position.mjs +103 -0
  43. package/dist/components/Items/StandaloneItems.mjs +12 -4
  44. package/dist/components/Items/TargetItems.mjs +202 -0
  45. package/dist/components/Label/Label.mjs +2 -1
  46. package/dist/components/Map/MapView.mjs +375 -64
  47. package/dist/components/Map/maplibre-worker.mjs +7 -0
  48. package/dist/components/Map/worker.mjs +22 -0
  49. package/dist/components/Panel/About.mjs +50 -16
  50. package/dist/components/Panel/AboutActions.mjs +117 -0
  51. package/dist/components/Panel/Panel.mjs +58 -18
  52. package/dist/components/Panel/PartOfManifest.mjs +4 -3
  53. package/dist/components/Panel/ReadingLanguages.mjs +20 -0
  54. package/dist/components/Primitives/Primitives.mjs +18 -3
  55. package/dist/components/Provider/Provider.mjs +19 -5
  56. package/dist/components/Root/Announcer.mjs +3 -2
  57. package/dist/components/Root/Root.mjs +5 -2
  58. package/dist/components/Root/useRootState.mjs +14 -2
  59. package/dist/components/Scene/SceneView.mjs +23 -6
  60. package/dist/components/Search/Search.mjs +3 -2
  61. package/dist/components/Split/Split.mjs +13 -3
  62. package/dist/components/Status/Status.mjs +10 -2
  63. package/dist/components/Timeline/playerSurface.mjs +2 -1
  64. package/dist/components/Transcript/Transcript.mjs +42 -23
  65. package/dist/core/annotation-bodies.mjs +25 -5
  66. package/dist/core/annotation-collection.mjs +3 -2
  67. package/dist/core/annotation-name.mjs +12 -9
  68. package/dist/core/annotation-sets.mjs +139 -10
  69. package/dist/core/annotations-content.mjs +8 -1
  70. package/dist/core/annotations.mjs +8 -1
  71. package/dist/core/choice-key.mjs +5 -0
  72. package/dist/core/clover.mjs +105 -20
  73. package/dist/core/content-state-reader.mjs +33 -2
  74. package/dist/core/dates-format.mjs +30 -0
  75. package/dist/core/dates.mjs +19 -0
  76. package/dist/core/geo.mjs +46 -5
  77. package/dist/core/image-layers.mjs +96 -0
  78. package/dist/core/items.mjs +7 -3
  79. package/dist/core/language-choice.mjs +30 -0
  80. package/dist/core/link.mjs +15 -1
  81. package/dist/core/load.mjs +14 -5
  82. package/dist/core/pages.mjs +20 -1
  83. package/dist/core/presentation.mjs +6 -4
  84. package/dist/core/range-regions.mjs +70 -0
  85. package/dist/core/ranges.mjs +52 -18
  86. package/dist/core/region.mjs +7 -2
  87. package/dist/core/sanitize.mjs +86 -1
  88. package/dist/core/save-file.mjs +33 -0
  89. package/dist/core/selectors.mjs +12 -0
  90. package/dist/core/upgrade.mjs +23 -0
  91. package/dist/core/value.mjs +11 -23
  92. package/dist/hooks/useFullscreenExit.mjs +26 -0
  93. package/dist/hooks/useHighContrast.mjs +27 -0
  94. package/dist/i18n/autonym.mjs +11 -0
  95. package/dist/i18n/config.mjs +3 -8
  96. package/dist/{core → i18n}/direction.mjs +5 -1
  97. package/dist/i18n/languages.mjs +44 -0
  98. package/dist/i18n/locales/en.json.mjs +1 -1
  99. package/dist/i18n/locales/es.json.mjs +1 -1
  100. package/dist/i18n/locales/fi.json.mjs +1 -1
  101. package/dist/i18n/locales/fr.json.mjs +1 -1
  102. package/dist/i18n/locales/nb.json.mjs +1 -1
  103. package/dist/i18n/locales/nn.json.mjs +1 -1
  104. package/dist/i18n/locales/no.json.mjs +1 -1
  105. package/dist/i18n/locales/pt.json.mjs +1 -1
  106. package/dist/{ui → i18n}/useContainerName.mjs +5 -4
  107. package/dist/{react/language.mjs → i18n/useRootLanguage.mjs} +2 -2
  108. package/dist/index.d.mts +415 -64
  109. package/dist/index.mjs +6 -2
  110. package/dist/lib/fullscreen.mjs +6 -1
  111. package/dist/lib/renderer/CanvasRenderer.mjs +28 -5
  112. package/dist/lib/renderer/math/affine.mjs +14 -0
  113. package/dist/lib/renderer/scene/planFrame.mjs +12 -12
  114. package/dist/lib/renderer/scene/regions.mjs +11 -1
  115. package/dist/lib/renderer/scene/sceneItem.mjs +72 -9
  116. package/dist/lib/time.mjs +10 -0
  117. package/dist/map/index.d.mts +40 -7
  118. package/dist/react/fetchManifest.mjs +19 -0
  119. package/dist/react/hooks.mjs +7 -1
  120. package/dist/react/readingLanguages.mjs +16 -0
  121. package/dist/react/usePagesReached.mjs +42 -0
  122. package/dist/styles.css +1 -1
  123. package/dist/templates/default/Default.mjs +87 -9
  124. package/dist/templates/document/Document.mjs +5 -1
  125. package/dist/templates/index.d.mts +26 -5
  126. package/dist/templates.css +1 -1
  127. package/dist/ui/BodyUnloadable.mjs +34 -0
  128. package/dist/ui/Button.mjs +2 -1
  129. package/dist/ui/Chevron.mjs +34 -0
  130. package/dist/ui/ControlCluster.mjs +6 -3
  131. package/dist/ui/EntryThumbnail.mjs +60 -0
  132. package/dist/ui/ExitFullscreen.mjs +2 -1
  133. package/dist/ui/FieldPill.mjs +5 -4
  134. package/dist/ui/HideToggle.mjs +2 -1
  135. package/dist/ui/LanguageChoice.mjs +45 -0
  136. package/dist/ui/ListEnd.mjs +29 -0
  137. package/dist/ui/Markup.mjs +27 -8
  138. package/dist/ui/NavDate.mjs +29 -0
  139. package/dist/ui/ReadMore.mjs +4 -3
  140. package/dist/ui/Sections.mjs +19 -28
  141. package/dist/ui/Steps.mjs +4 -3
  142. package/dist/ui/Tip.mjs +9 -4
  143. package/dist/web-components/About-DhOGPFaI.mjs +1 -0
  144. package/dist/web-components/AnnotationItems-CNP4CJiT.mjs +1 -0
  145. package/dist/web-components/AnnotationMenu-BCwwwfbb.mjs +1 -0
  146. package/dist/web-components/AnnotationState-CavxnAAq.mjs +1 -0
  147. package/dist/web-components/Annotations-DDjSrBL5.mjs +2 -0
  148. package/dist/web-components/Annotations-rBmeI5sR.mjs +1 -0
  149. package/dist/web-components/Body-DaY1UJIy.mjs +1 -0
  150. package/dist/web-components/BodyAlert-COKp19lq.mjs +1 -0
  151. package/dist/web-components/BodyUnloadable-DcTM7hHF.mjs +1 -0
  152. package/dist/web-components/Button-DLFYqtz9.mjs +1 -0
  153. package/dist/web-components/{Camera-Dw51CAfF.mjs → Camera-Cp5ma-6C.mjs} +1 -1
  154. package/dist/web-components/{Canvas2DBackend-RRN2bEkc.mjs → Canvas2DBackend-3PToh87Z.mjs} +1 -1
  155. package/dist/web-components/CanvasView-BWQ4SK2b.mjs +2 -0
  156. package/dist/web-components/CaptionDetails-DSziiuQV.mjs +1 -0
  157. package/dist/web-components/Chevron-r-_hUPn8.mjs +1 -0
  158. package/dist/web-components/ChoiceMenu-DTuEEUeM.mjs +1 -0
  159. package/dist/web-components/Collection-B9swJtPW.mjs +1 -0
  160. package/dist/web-components/CollectionSelect-CBWUbqQi.mjs +1 -0
  161. package/dist/web-components/Connected-B2d6EoFl.mjs +1 -0
  162. package/dist/web-components/Connected-BSRM9FJY.mjs +1 -0
  163. package/dist/web-components/Connected-BnpxYeJN.mjs +1 -0
  164. package/dist/web-components/Contents-D7FPxSH-.mjs +1 -0
  165. package/dist/web-components/ControlMenu-Crtho2cs.mjs +1 -0
  166. package/dist/web-components/CountMenu-DyTp_J4k.mjs +1 -0
  167. package/dist/web-components/Cue-CbZaGwZh.mjs +1 -0
  168. package/dist/web-components/Document-BfltLWZZ.mjs +1 -0
  169. package/dist/web-components/DocumentPanel-ZSe40cV4.mjs +1 -0
  170. package/dist/web-components/{DomLayers-BsR2AOy-.mjs → DomLayers-CTGub6wo.mjs} +1 -1
  171. package/dist/web-components/Download-BOYNIb7C.mjs +1 -0
  172. package/dist/web-components/EntryBodies-Bfd2Z42z.mjs +1 -0
  173. package/dist/web-components/EntryThumbnail-DQE8ajI9.mjs +1 -0
  174. package/dist/web-components/FieldPill-D5DNJWLy.mjs +1 -0
  175. package/dist/web-components/FrameAnimation-IfR1czfc.mjs +1 -0
  176. package/dist/web-components/Gallery-DD06BDQo.mjs +1 -0
  177. package/dist/web-components/HideToggle-DL911R1Z.mjs +1 -0
  178. package/dist/web-components/Items-BHzT9A73.mjs +1 -0
  179. package/dist/web-components/Label-KabnxuMN.mjs +1 -0
  180. package/dist/web-components/LanguageChoice-DT1UPiDn.mjs +1 -0
  181. package/dist/web-components/LightboxBody-BhRhdXo6.mjs +1 -0
  182. package/dist/web-components/ListEnd-CbwNlty-.mjs +1 -0
  183. package/dist/web-components/{Loaded-wQurAeJz.mjs → Loaded-BWfEBJyg.mjs} +1 -1
  184. package/dist/web-components/LoadedCanvas-CdZ5WOWz.mjs +1 -0
  185. package/dist/web-components/LoadedMap-DQyQVRVQ.mjs +1 -0
  186. package/dist/web-components/{Loading-BmA--pzr.mjs → Loading-zw74TdAz.mjs} +1 -1
  187. package/dist/web-components/{Map-DzVGblIS.mjs → Map--dJhk0_0.mjs} +1 -1
  188. package/dist/web-components/MapView-duA5WGsu.mjs +3 -0
  189. package/dist/web-components/Markup-D-kioDf9.mjs +2 -0
  190. package/dist/web-components/MediaBody-CoOiVXcv.mjs +1 -0
  191. package/dist/web-components/MediaBody-d8ErTuwT.mjs +1 -0
  192. package/dist/web-components/NavDate-BQHuyLOC.mjs +1 -0
  193. package/dist/web-components/{Navigator-CIJFA3q1.mjs → Navigator-B3U21_ti.mjs} +1 -1
  194. package/dist/web-components/Pager-DnJknq92.mjs +1 -0
  195. package/dist/web-components/PagerLayout-CvOmKtSW.mjs +1 -0
  196. package/dist/web-components/Panel-CIdjOznL.mjs +1 -0
  197. package/dist/web-components/{PanelToggle-BYjV2t1j.mjs → PanelToggle-CFtWIeWv.mjs} +1 -1
  198. package/dist/web-components/PartOfManifest-F87jIrf9.mjs +1 -0
  199. package/dist/web-components/{Pending-BspZajh5.mjs → Pending-CYAQajKu.mjs} +1 -1
  200. package/dist/web-components/PlaceBox-BtIbIotm.mjs +1 -0
  201. package/dist/web-components/Placeholder-TIyj4ZjR.mjs +1 -0
  202. package/dist/web-components/Position-BkWBRBfW.mjs +1 -0
  203. package/dist/web-components/Primitives-BmODPlnK.mjs +1 -0
  204. package/dist/web-components/Provider-C8se8i4I.mjs +1 -0
  205. package/dist/web-components/ReadMore-BwGFsLS2.mjs +1 -0
  206. package/dist/web-components/Root-CAJB0-Mh.mjs +1 -0
  207. package/dist/web-components/Scene-Ctcdt7CD.mjs +1 -0
  208. package/dist/web-components/SceneView-B6bEx_7x.mjs +1 -0
  209. package/dist/web-components/Search-CbmK9vLp.mjs +1 -0
  210. package/dist/web-components/Sections-Dy5_pkyQ.mjs +2 -0
  211. package/dist/web-components/StandaloneItems-BmUnBp0H.mjs +1 -0
  212. package/dist/web-components/Status-Dww3Pyf4.mjs +1 -0
  213. package/dist/web-components/Steps-o_UprQfZ.mjs +1 -0
  214. package/dist/web-components/TargetItems-BBOGDubv.mjs +1 -0
  215. package/dist/web-components/Timeline-CfIF4APc.mjs +1 -0
  216. package/dist/web-components/Tip-BbexILXs.mjs +1 -0
  217. package/dist/web-components/Transcript-ZVXM3ZDA.mjs +1 -0
  218. package/dist/web-components/annotation-collection-7SS1ELcO.mjs +1 -0
  219. package/dist/web-components/annotation-name-CYkZopdd.mjs +1 -0
  220. package/dist/web-components/annotations-content-Bdtn50sf.mjs +1 -0
  221. package/dist/web-components/body-CkOBHlJ0.mjs +1 -0
  222. package/dist/web-components/canvas-CWf_Fag8.mjs +1 -0
  223. package/dist/web-components/choice-key-BUNebLKe.mjs +1 -0
  224. package/dist/web-components/{cloverEngine-Dbv-26NP.mjs → cloverEngine-6djEHNCD.mjs} +2 -2
  225. package/dist/web-components/content-state-reader-Ahh6artg.mjs +1 -0
  226. package/dist/web-components/{controls-qRYf2jO2.mjs → controls-BJrZVQkS.mjs} +1 -1
  227. package/dist/web-components/custom-elements.json +109 -13
  228. package/dist/web-components/dates-DR3gfcON.mjs +1 -0
  229. package/dist/web-components/downloads-CqVWo-yn.mjs +1 -0
  230. package/dist/web-components/{engine-D8JLgzqq.mjs → engine-B-sscpLa.mjs} +1 -1
  231. package/dist/web-components/{engines-BwVb9R_A.mjs → engines-DfCHjbt3.mjs} +1 -1
  232. package/dist/web-components/es-BYfHUZ7P.mjs +1 -0
  233. package/dist/web-components/fetchManifest-BIzne1Pj.mjs +1 -0
  234. package/dist/web-components/fi-B5y2qr8T.mjs +1 -0
  235. package/dist/web-components/fr-ChezCx6V.mjs +1 -0
  236. package/dist/web-components/fromManifest-gg5Wx14y.mjs +1 -0
  237. package/dist/web-components/glyphs-JYl2STEr.mjs +1 -0
  238. package/dist/web-components/hooks-x7rO95CS.mjs +1 -0
  239. package/dist/web-components/image-layers-BjbeyHBS.mjs +1 -0
  240. package/dist/web-components/{imageService-C3yg9DxB.mjs → imageService-0eTvQ-3h.mjs} +1 -1
  241. package/dist/web-components/index-BZ7b9k0N.mjs +1 -0
  242. package/dist/web-components/index.d.mts +95 -10
  243. package/dist/web-components/index.mjs +1 -1
  244. package/dist/web-components/items-CnAIl9fS.mjs +1 -0
  245. package/dist/web-components/items-F6hJgdAS.mjs +1 -0
  246. package/dist/web-components/label-CI88KH2_.mjs +1 -0
  247. package/dist/web-components/layout-De1MOSYe.mjs +1 -0
  248. package/dist/web-components/link-GEdiEwlR.mjs +1 -0
  249. package/dist/web-components/logo-Ckwj7FlP.mjs +1 -0
  250. package/dist/web-components/models-59cEeiAA.mjs +1 -0
  251. package/dist/web-components/nb-8J22f9Td.mjs +1 -0
  252. package/dist/web-components/nn-Dv1EvzI1.mjs +1 -0
  253. package/dist/web-components/no-8J22f9Td.mjs +1 -0
  254. package/dist/web-components/{nodes-Bf-Fb7e5.mjs → nodes-CTw9OqlA.mjs} +1 -1
  255. package/dist/web-components/{overlayImage-DdPs2EGY.mjs → overlayImage-BMt4UTlR.mjs} +1 -1
  256. package/dist/web-components/{panel-CiqEFDzv.mjs → panel-C17Rl9Ya.mjs} +1 -1
  257. package/dist/web-components/part-CXts97_M.mjs +1 -0
  258. package/dist/web-components/playerSurface-HYwEwPK6.mjs +1 -0
  259. package/dist/web-components/presentation-2-C-U79S_T.mjs +1 -0
  260. package/dist/web-components/{provider-LUmAQSoP.mjs → provider-BpxorEiq.mjs} +1 -1
  261. package/dist/web-components/pt-DWYQkATt.mjs +1 -0
  262. package/dist/web-components/range-regions-BGQy4E9U.mjs +1 -0
  263. package/dist/web-components/read-more-BDM_6CVc.mjs +1 -0
  264. package/dist/web-components/readingLanguages-fs_HqvqQ.mjs +1 -0
  265. package/dist/web-components/rendererSurface-C0aKlE0v.mjs +22 -0
  266. package/dist/web-components/{renderers-Bg4QqawN.mjs → renderers-CiB74bQh.mjs} +1 -1
  267. package/dist/web-components/{resource-DzIvB_4m.mjs → resource-CRbpf9pX.mjs} +1 -1
  268. package/dist/web-components/sanitize-qIOeyIww.mjs +3 -0
  269. package/dist/web-components/save-file-CCuZEuQr.mjs +1 -0
  270. package/dist/web-components/search-CkM0O0Z1.mjs +1 -0
  271. package/dist/web-components/sequence-C28xoNmD.mjs +1 -0
  272. package/dist/web-components/shared-MTsMddHx.mjs +1 -0
  273. package/dist/web-components/{show-link-DWRRXSBy.mjs → show-link-BXm7SNIC.mjs} +1 -1
  274. package/dist/web-components/{sizedImage-DfjlV2-i.mjs → sizedImage-k4Q-eyOB.mjs} +1 -1
  275. package/dist/web-components/{split-m-_XivaW.mjs → split-Hp6z-v4h.mjs} +1 -1
  276. package/dist/web-components/{status-DDS7jLNd.mjs → status-BmtuKfAG.mjs} +1 -1
  277. package/dist/web-components/styles-CZV1nbBQ.mjs +1 -0
  278. package/dist/web-components/three.mjs +1 -1
  279. package/dist/web-components/thumbnail-Dp7a8oom.mjs +1 -0
  280. package/dist/web-components/{tip-BXByhOJ9.mjs → tip-C-oovDZK.mjs} +1 -1
  281. package/dist/web-components/{toggle-AS72kq6v.mjs → toggle-C7ODWDEZ.mjs} +1 -1
  282. package/dist/web-components/upgrade-eNW0DPXq.mjs +1 -0
  283. package/dist/web-components/upgrader-BlbMUEH6.mjs +1 -0
  284. package/dist/web-components/useContainerName-CrOmY-km.mjs +1 -0
  285. package/dist/web-components/useNearViewport-BqXi9Gn4.mjs +1 -0
  286. package/dist/web-components/{useScrollTrack-dLFWnT8N.mjs → useScrollTrack-CEsOU2yT.mjs} +1 -1
  287. package/dist/web-components/viewer/AnnotationItems-CyhVcRFc.mjs +1 -0
  288. package/dist/web-components/viewer/AnnotationMenu-DPOSehBo.mjs +1 -0
  289. package/dist/web-components/viewer/AnnotationState-Bjztkobn.mjs +1 -0
  290. package/dist/web-components/viewer/Annotations-Dh_8Tzi0.mjs +2 -0
  291. package/dist/web-components/viewer/Annotations-wwuOCxzI.mjs +1 -0
  292. package/dist/web-components/viewer/{Canvas2DBackend-CkvI0wUT.mjs → Canvas2DBackend-BTK6ZJh0.mjs} +1 -1
  293. package/dist/web-components/viewer/CaptionDetails-BwCTovy_.mjs +1 -0
  294. package/dist/web-components/viewer/ChoiceMenu-DQ1x572Y.mjs +1 -0
  295. package/dist/web-components/viewer/Collection-DSBxCmXw.mjs +1 -0
  296. package/dist/web-components/viewer/Connected-CL3N8F2J.mjs +1 -0
  297. package/dist/web-components/viewer/Connected-DTk1jlyI.mjs +1 -0
  298. package/dist/web-components/viewer/Contents-DrXckx7d.mjs +1 -0
  299. package/dist/web-components/viewer/ControlMenu-Bp91s-g_.mjs +1 -0
  300. package/dist/web-components/viewer/CountMenu-4u6U6yqb.mjs +1 -0
  301. package/dist/web-components/viewer/Cue-C-aF8peC.mjs +1 -0
  302. package/dist/web-components/viewer/Document-BN1rICu3.mjs +1 -0
  303. package/dist/web-components/viewer/DocumentPanel-CEesxdeY.mjs +1 -0
  304. package/dist/web-components/viewer/{DomLayers-Dybz_aJv.mjs → DomLayers-CGkDtemL.mjs} +1 -1
  305. package/dist/web-components/viewer/Download-CawEl9MN.mjs +1 -0
  306. package/dist/web-components/viewer/EntryBodies-nYHMwSSM.mjs +1 -0
  307. package/dist/web-components/viewer/EntryThumbnail-DrO_0SzR.mjs +1 -0
  308. package/dist/web-components/viewer/FieldPill-DFXGWrvB.mjs +1 -0
  309. package/dist/web-components/viewer/FrameAnimation-CZfzpxaD.mjs +1 -0
  310. package/dist/web-components/viewer/Gallery-MWHtvjti.mjs +1 -0
  311. package/dist/web-components/viewer/HideToggle-DP5kHzWM.mjs +1 -0
  312. package/dist/web-components/viewer/LanguageChoice-C50T7dPI.mjs +1 -0
  313. package/dist/web-components/viewer/{LightboxBody-ClQ4yrTh.mjs → LightboxBody-C2T7IC29.mjs} +1 -1
  314. package/dist/web-components/viewer/ListEnd-BDuOx__m.mjs +1 -0
  315. package/dist/web-components/viewer/MapView-BN9wXQKV.mjs +3 -0
  316. package/dist/web-components/viewer/MediaBody-CEyswliX.mjs +1 -0
  317. package/dist/web-components/viewer/MediaBody-Dw3DWDjc.mjs +1 -0
  318. package/dist/web-components/viewer/NavDate-C2-wwLuB.mjs +1 -0
  319. package/dist/web-components/viewer/{Navigator-Duc69Yes.mjs → Navigator-C3jghOd3.mjs} +1 -1
  320. package/dist/web-components/viewer/PagerLayout-Cg2NpqoD.mjs +1 -0
  321. package/dist/web-components/viewer/PartOfManifest-D22yMgCf.mjs +1 -0
  322. package/dist/web-components/viewer/PlaceBox-Dckw4Sfk.mjs +1 -0
  323. package/dist/web-components/viewer/Placeholder-NYVWYg5Q.mjs +1 -0
  324. package/dist/web-components/viewer/Search-DC259m4f.mjs +1 -0
  325. package/dist/web-components/viewer/StandaloneItems-E4kpMne9.mjs +1 -0
  326. package/dist/web-components/viewer/Steps-Bw32X5xO.mjs +1 -0
  327. package/dist/web-components/viewer/TargetItems-DLhUH1Gq.mjs +1 -0
  328. package/dist/web-components/viewer/Transcript-D_VGJQxn.mjs +1 -0
  329. package/dist/web-components/viewer/annotation-collection-DZHa18ir.mjs +1 -0
  330. package/dist/web-components/viewer/annotation-name-BaNdW2Xk.mjs +1 -0
  331. package/dist/web-components/viewer/annotations-content-CbA3eOIC.mjs +1 -0
  332. package/dist/web-components/viewer/{cloverEngine-CjuYjUhI.mjs → cloverEngine-C04bCSFR.mjs} +2 -2
  333. package/dist/web-components/viewer/content-state-reader-C7UBMOq3.mjs +1 -0
  334. package/dist/web-components/viewer/fetchManifest-C2Yxg3x9.mjs +1 -0
  335. package/dist/web-components/viewer/{host-yWi4R1bP.mjs → host-CZeyjCKR.mjs} +1 -1
  336. package/dist/web-components/viewer/image-layers-B09fporZ.mjs +1 -0
  337. package/dist/web-components/viewer/index.mjs +1 -1
  338. package/dist/web-components/viewer/link-DssZ0Z2N.mjs +1 -0
  339. package/dist/web-components/viewer/overlayImage-BR3eJCKq.mjs +1 -0
  340. package/dist/web-components/viewer/range-regions-By6L5JOK.mjs +1 -0
  341. package/dist/web-components/viewer/{renderers-L-IlGI1r.mjs → renderers-DLoqv3QO.mjs} +1 -1
  342. package/dist/web-components/viewer/save-file-CJT5p5Hg.mjs +1 -0
  343. package/dist/web-components/viewer/{search-DWkwRPo_.mjs → search-PhOwMKHi.mjs} +1 -1
  344. package/dist/web-components/viewer/styles-NZLnZPAC.mjs +1 -0
  345. package/dist/web-components/viewer/viewer-D30YHqyF.mjs +29 -0
  346. package/dist/web-components/viewer/{vtt-1ZJwtElI.mjs → vtt-1Pk7Dhsj.mjs} +1 -1
  347. package/dist/web-components/viewer-CH7re5OO.mjs +1 -0
  348. package/dist/web-components/{vtt-GFssZH8Y.mjs → vtt-CacHieeN.mjs} +1 -1
  349. package/dist/web-components/worker-CjXN0dku.mjs +1 -0
  350. package/package.json +10 -5
  351. package/dist/i18n/reader.mjs +0 -13
  352. package/dist/web-components/About-uKa1wfDr.mjs +0 -1
  353. package/dist/web-components/AnnotationMenu-BGIYRXW6.mjs +0 -1
  354. package/dist/web-components/AnnotationState-D2UIgIEC.mjs +0 -1
  355. package/dist/web-components/Annotations-BhwAv3ah.mjs +0 -1
  356. package/dist/web-components/Annotations-C_tBJHo3.mjs +0 -2
  357. package/dist/web-components/Body-DMEERFuB.mjs +0 -1
  358. package/dist/web-components/BodyAlert-BP8voSLv.mjs +0 -1
  359. package/dist/web-components/Button-Cl02BFDd.mjs +0 -1
  360. package/dist/web-components/CanvasView-B8lMMSou.mjs +0 -1
  361. package/dist/web-components/CaptionDetails-KLMDv-ec.mjs +0 -1
  362. package/dist/web-components/ChoiceMenu-CXrVOmJl.mjs +0 -1
  363. package/dist/web-components/Collection-DL4Ui4hF.mjs +0 -1
  364. package/dist/web-components/CollectionSelect-DL-bbpwJ.mjs +0 -1
  365. package/dist/web-components/Connected-B0S1HXQb.mjs +0 -1
  366. package/dist/web-components/Connected-BcjRA5si.mjs +0 -1
  367. package/dist/web-components/Connected-Q7iizBb8.mjs +0 -1
  368. package/dist/web-components/Contents-ZC8TiGaW.mjs +0 -1
  369. package/dist/web-components/ControlMenu-DIoU797-.mjs +0 -1
  370. package/dist/web-components/Cue-CJxnDMEy.mjs +0 -1
  371. package/dist/web-components/Document-DHBRAFEK.mjs +0 -1
  372. package/dist/web-components/DocumentPanel-CqvE2pu9.mjs +0 -1
  373. package/dist/web-components/Download-DBksL1C0.mjs +0 -1
  374. package/dist/web-components/EntryBodies-VwEkTVrw.mjs +0 -1
  375. package/dist/web-components/ErrorBoundary-Cy9PGoZv.mjs +0 -1
  376. package/dist/web-components/FieldPill-DCJBz6Vj.mjs +0 -1
  377. package/dist/web-components/FrameAnimation-DRbmgGpF.mjs +0 -1
  378. package/dist/web-components/Gallery-BM7-VJkB.mjs +0 -1
  379. package/dist/web-components/HideToggle-BdYgG7us.mjs +0 -1
  380. package/dist/web-components/Items-_1Jz3FMs.mjs +0 -1
  381. package/dist/web-components/Label-CAiJ49eA.mjs +0 -1
  382. package/dist/web-components/LightboxBody-DyhUZiDf.mjs +0 -1
  383. package/dist/web-components/LoadedCanvas-DWz5IK5m.mjs +0 -1
  384. package/dist/web-components/LoadedMap-DIeW313M.mjs +0 -1
  385. package/dist/web-components/MapView-BJaN7VBI.mjs +0 -1
  386. package/dist/web-components/Markup-D91DbxLk.mjs +0 -2
  387. package/dist/web-components/MediaBody-BYcVPo2X.mjs +0 -1
  388. package/dist/web-components/MediaBody-FEzH8VVw.mjs +0 -1
  389. package/dist/web-components/Pager-BGwCurxE.mjs +0 -1
  390. package/dist/web-components/Panel-B-GXOkzF.mjs +0 -1
  391. package/dist/web-components/PartOfManifest-ClbGepVM.mjs +0 -1
  392. package/dist/web-components/Primitives-CTh59wvs.mjs +0 -1
  393. package/dist/web-components/Provider-C6rIiDXH.mjs +0 -1
  394. package/dist/web-components/ReadMore-BJ2i-0uN.mjs +0 -1
  395. package/dist/web-components/Root-DkkYDtur.mjs +0 -1
  396. package/dist/web-components/Scene-B_PU_TiX.mjs +0 -1
  397. package/dist/web-components/SceneView-qcW_sT3j.mjs +0 -1
  398. package/dist/web-components/Search-UOneIUcP.mjs +0 -1
  399. package/dist/web-components/Sections-we9U9fXq.mjs +0 -2
  400. package/dist/web-components/StandaloneItems-DU8oCFc_.mjs +0 -1
  401. package/dist/web-components/Status-Cs5ZvFvL.mjs +0 -1
  402. package/dist/web-components/Timeline-WtYZ1bIJ.mjs +0 -1
  403. package/dist/web-components/Tip-C8J3qsIK.mjs +0 -1
  404. package/dist/web-components/Transcript-CRL2zToL.mjs +0 -1
  405. package/dist/web-components/annotation-collection-ZPyvpLFc.mjs +0 -1
  406. package/dist/web-components/annotations-content-BZChKhJZ.mjs +0 -1
  407. package/dist/web-components/body-UntgrmoV.mjs +0 -1
  408. package/dist/web-components/canvas-d_U4v_mh.mjs +0 -1
  409. package/dist/web-components/content-state-reader-DjdKWjit.mjs +0 -1
  410. package/dist/web-components/es-BwMkoRod.mjs +0 -1
  411. package/dist/web-components/fi-gPFOn9RK.mjs +0 -1
  412. package/dist/web-components/fr-DUHmgdJo.mjs +0 -1
  413. package/dist/web-components/fromManifest-UrMJgktp.mjs +0 -1
  414. package/dist/web-components/glyphs-BoX0a88P.mjs +0 -1
  415. package/dist/web-components/hooks-Dp8pjU8l.mjs +0 -1
  416. package/dist/web-components/index-DWxMuwDL.mjs +0 -1
  417. package/dist/web-components/items--Tu7ZM3L.mjs +0 -1
  418. package/dist/web-components/items-W2vrwArM.mjs +0 -1
  419. package/dist/web-components/keep-fragments-B5nlv2ck.mjs +0 -1
  420. package/dist/web-components/label-CYQ7tVl6.mjs +0 -1
  421. package/dist/web-components/layout-KL0V-iJu.mjs +0 -1
  422. package/dist/web-components/link-DRRTY4lY.mjs +0 -1
  423. package/dist/web-components/logo-CnQUCB3Y.mjs +0 -1
  424. package/dist/web-components/models-BP2qp9nT.mjs +0 -1
  425. package/dist/web-components/nb-BSvnQ6jd.mjs +0 -1
  426. package/dist/web-components/nn-Dg2_HdZu.mjs +0 -1
  427. package/dist/web-components/no-BSvnQ6jd.mjs +0 -1
  428. package/dist/web-components/part-CUBY90_b.mjs +0 -1
  429. package/dist/web-components/playerSurface-i2TJz-F4.mjs +0 -1
  430. package/dist/web-components/pt-B3J80JgO.mjs +0 -1
  431. package/dist/web-components/read-more-BaaO77el.mjs +0 -1
  432. package/dist/web-components/rendererSurface-DAvatpMF.mjs +0 -22
  433. package/dist/web-components/sanitize-Dc7nOsgO.mjs +0 -3
  434. package/dist/web-components/search-DgcgsI3I.mjs +0 -1
  435. package/dist/web-components/shared-J3w3gnXD.mjs +0 -1
  436. package/dist/web-components/styles-Ypl9KrSK.mjs +0 -1
  437. package/dist/web-components/thumbnail-BZvLSwWW.mjs +0 -1
  438. package/dist/web-components/time-B9GZoYcm.mjs +0 -1
  439. package/dist/web-components/upgrader-XNxI-5jo.mjs +0 -1
  440. package/dist/web-components/useContainerName-DCbE5JXi.mjs +0 -1
  441. package/dist/web-components/useNearViewport-CyoK3l8W.mjs +0 -1
  442. package/dist/web-components/viewer/AnnotationMenu-Dd4tnzNV.mjs +0 -1
  443. package/dist/web-components/viewer/AnnotationState-DZaSy5lH.mjs +0 -1
  444. package/dist/web-components/viewer/Annotations-D1h-Yi5J.mjs +0 -1
  445. package/dist/web-components/viewer/Annotations-sj79EMen.mjs +0 -2
  446. package/dist/web-components/viewer/CaptionDetails-B_JdNjJ7.mjs +0 -1
  447. package/dist/web-components/viewer/ChoiceMenu-xa51a1DV.mjs +0 -1
  448. package/dist/web-components/viewer/Collection-CxuLCspj.mjs +0 -1
  449. package/dist/web-components/viewer/Connected-BSUBc3Ci.mjs +0 -1
  450. package/dist/web-components/viewer/Connected-CPIxNjF2.mjs +0 -1
  451. package/dist/web-components/viewer/Contents-DNh9mnsF.mjs +0 -1
  452. package/dist/web-components/viewer/ControlMenu-DdgIvBdf.mjs +0 -1
  453. package/dist/web-components/viewer/Cue-90H9_dXz.mjs +0 -1
  454. package/dist/web-components/viewer/Document-CNCpzkiN.mjs +0 -1
  455. package/dist/web-components/viewer/DocumentPanel-BdG4TVLE.mjs +0 -1
  456. package/dist/web-components/viewer/EntryBodies-DGXjFP3N.mjs +0 -1
  457. package/dist/web-components/viewer/FieldPill-Icmd98OY.mjs +0 -1
  458. package/dist/web-components/viewer/FrameAnimation-DJZN3Rd4.mjs +0 -1
  459. package/dist/web-components/viewer/Gallery-CEp3-bh2.mjs +0 -1
  460. package/dist/web-components/viewer/HideToggle-DB6HTmAO.mjs +0 -1
  461. package/dist/web-components/viewer/MapView-BVSdybIC.mjs +0 -1
  462. package/dist/web-components/viewer/MediaBody-BBbSMT1i.mjs +0 -1
  463. package/dist/web-components/viewer/MediaBody-BzMXMHIF.mjs +0 -1
  464. package/dist/web-components/viewer/PartOfManifest-X9_q-2t6.mjs +0 -1
  465. package/dist/web-components/viewer/Search-S4N5QU4R.mjs +0 -1
  466. package/dist/web-components/viewer/StandaloneItems-BO4VyWRW.mjs +0 -1
  467. package/dist/web-components/viewer/Transcript-BbDaS064.mjs +0 -1
  468. package/dist/web-components/viewer/annotation-collection-BjZ1DAHq.mjs +0 -1
  469. package/dist/web-components/viewer/annotations-content-jn3n5Y2-.mjs +0 -1
  470. package/dist/web-components/viewer/content-state-reader-CPiShIjP.mjs +0 -1
  471. package/dist/web-components/viewer/link-CwE-fg5G.mjs +0 -1
  472. package/dist/web-components/viewer/overlayImage-BpOgqsZ0.mjs +0 -1
  473. package/dist/web-components/viewer/styles-BRCkEU3w.mjs +0 -1
  474. package/dist/web-components/viewer/viewer--TreVlJ_.mjs +0 -28
  475. package/dist/web-components/viewer-DyV864Qe.mjs +0 -1
  476. /package/dist/{ui → i18n}/languageCode.mjs +0 -0
@@ -1 +0,0 @@
1
- import{j as p,af as g,ag as u,ae as f}from"./shared-J3w3gnXD.mjs";const y=100;async function l(t,n,i){if(typeof t=="string")return await f(n,t,i);const e=t;return e!=null&&e.id&&e.type==="AnnotationPage"&&!e.items?await f(n,e.id,i):e}async function w(t,n,i){const e=String((t==null?void 0:t.type)??(t==null?void 0:t["@type"])??""),c=/AnnotationCollection/.test(e),o=c?[]:[t],d=new Set(c?[]:[t.id]);let a=c?t.first:t.next;for(;a&&o.length<y;){const r=typeof a=="string"?a:a.id;if(d.has(r??a))break;d.add(r??a);const s=await l(a,n,i);o.push(s),a=s.next}return o}async function A(t,{request:n,signal:i}={}){const e=[];for(const c of p(t)){const o=await l(c,n,i);for(const d of await w(o,n,i)){const a=await g(d),r=a.id??`added-${e.length}`,s=u(a,r);s.length&&e.push({id:r,label:a.label??o.label,source:"added",entries:s})}}return e}export{A as loadAnnotationSets};
@@ -1 +0,0 @@
1
- import{loadAnnotationSets as f}from"./annotation-collection-ZPyvpLFc.mjs";import{F as o,ah as r,H as d}from"./shared-J3w3gnXD.mjs";async function w(s,t){const i=await f(s,t),e=i.flatMap(n=>n.entries),a=e.find(n=>t.manifestId&&o(n.annotation)===t.manifestId)??e.find(n=>o(n.annotation));if(!a)throw new r("The annotations name no Manifest");return{manifest:await d({id:o(a.annotation),type:"Manifest"},t),target:{canvasId:a.canvasId},annotationSets:i,pick:a.id}}export{w as annotationsContent};
@@ -1 +0,0 @@
1
- import{c as m,T as u,e as B,u as r,f as g,l as p}from"./shared-J3w3gnXD.mjs";import{B as y}from"./Body-DMEERFuB.mjs";import{u as L,P as b}from"./nodes-Bf-Fb7e5.mjs";import{Toggle as h}from"./toggle-AS72kq6v.mjs";const R={height:"100%"},T=e=>[...e.children].find(s=>s.localName==="clover-panel-toggle")??null,C=e=>e instanceof HTMLElement&&e.localName==="button";function P({hosted:e,props:s}){const a=L(e.element,()=>T(e.element),Object.is),{controlButtons:n,renderers:l,onReady:c,...d}=s,o=m(g,!!n),t=m(p,!!l),i=u(()=>o==null?void 0:o.toControlButtons(n),[o,n]),f=u(()=>t==null?void 0:t.toRenderers(l),[t,l]);return B(c),n&&!o||l&&!t?null:r(y,{...d,onReady:c,controlButtons:i,renderers:f,style:R,children:[a&&r(h,{element:a}),r(b,{from:e.element,picks:C})]})}export{P as BodyElement};
@@ -1 +0,0 @@
1
- import{K as l,u as o,z as i,P as r,c as f,T as v,e as C,f as m}from"./shared-J3w3gnXD.mjs";import{C as b}from"./CanvasView-B8lMMSou.mjs";import{r as s}from"./rendererSurface-DAvatpMF.mjs";import{C as c}from"./Pending-BspZajh5.mjs";const B=i(()=>import("./Connected-B0S1HXQb.mjs")),h=i(()=>import("./LoadedCanvas-DWz5IK5m.mjs")),k=n=>{const a=l();if(n.iiifContent!==void 0&&n.canvases===void 0)return o(r,{fallback:o(c,{}),children:o(h,{...n,surface:s})});const e=n.canvases!==void 0||n.body!==void 0||n.src!==void 0;return a&&!e?o(r,{fallback:o(c,{}),children:o(B,{...n,surface:s})}):o(b,{...n,surface:s})};function w({props:n}){const{controlButtons:a,onReady:e,...d}=n,t=f(m,!!a),u=v(()=>t==null?void 0:t.toControlButtons(a),[t,a]);return C(e),a&&!t?null:o(k,{...d,onReady:e,controlButtons:u})}export{w as CanvasElement};
@@ -1 +0,0 @@
1
- import{j as d,n as m}from"./shared-J3w3gnXD.mjs";function g(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),n=t+"=".repeat((4-t.length%4)%4),i=atob(n);try{return decodeURIComponent(i)}catch{const c=Uint8Array.from(i,r=>r.charCodeAt(0));return new TextDecoder().decode(c)}}function C(e){const t=e.trim();for(const n of[()=>JSON.parse(t),()=>JSON.parse(g(t))])try{const i=n();if(i&&typeof i=="object")return i}catch{}return null}function b(e){if(!e)return;const t=Number(e.split(",")[0]);return Number.isFinite(t)?t:void 0}const u=e=>d(e==null?void 0:e.partOf).find(t=>(t==null?void 0:t.id)&&t.type==="Collection");function A(e){const t=e.type==="Annotation"?d(e.target)[0]:e;if(!t)return null;const n=m(t),i=typeof t=="string"?{id:n.id}:t.type==="SpecificResource"?typeof t.source=="string"?{id:t.source}:t.source??{}:t,c=i.type;if(c==="Manifest"||c==="Collection"){const o=c==="Manifest"?u(i):void 0;return o?{id:o.id,type:"Collection",manifestId:n.id}:{id:n.id,type:c}}const r=d(t.selector).find(o=>(o==null?void 0:o.type)==="PointSelector"&&o.t!=null),a={canvasId:n.id};n.rect&&(a.region=n.rect);const y=(r==null?void 0:r.t)??b(n.t);y!==void 0&&(a.time=Number(y));const s=d(i.partOf).find(o=>(o==null?void 0:o.id)&&(!o.type||o.type==="Manifest")),l=u(s),p=e.type==="Annotation"&&d(e.body).length?{id:e.id??`${n.id}#content-state`,type:"Annotation",motivation:d(e.motivation),body:e.body,target:t}:void 0,f=p?{annotation:p}:{};return l&&s?{id:l.id,type:"Collection",manifestId:s.id,target:a,...f}:s?{id:s.id,type:"Manifest",target:a,...f}:{id:n.id,type:c??"Canvas",target:a,...f}}export{C as decodeContentState,A as resolveContentState};
@@ -1 +0,0 @@
1
- const a=JSON.parse('{"commonClose":"Cerrar","commonNext":"Siguiente","commonPrevious":"Anterior","commonSearch":"Buscar","commonViewAll":"Ver todo","controlShortcut":"{{label}} ({{shortcut}})","contentSearchLoading":"Cargando...","contentSearchPlaceholder":"Buscar","contentSearchResultsNone":"Sin resultados","contentSearchResult":"1 resultado","contentSearchResults":"{{count}} resultados","contentSearchError":"No se pudo completar la b\xFAsqueda.","contentSearchPosition":"Resultado {{index}} de {{total}}","contentSearchClear":"Borrar la b\xFAsqueda","canvasPosition":"Elemento {{index}} de {{total}}","canvasImage":"Imagen","canvasRoleDescription":"imagen ampliable","canvasKeysImage":"Use las teclas de flecha para desplazar la imagen, con May\xFAs para avanzar m\xE1s, las teclas m\xE1s y menos para acercar y alejar, 0 para restablecer la vista, y R o May\xFAs+R para girar.","canvasKeysMedia":"Pulse Espacio o K para reproducir o pausar, J o L para retroceder o avanzar diez segundos, y M para silenciar o activar el sonido.","canvasKeysAnnotations":"Pulse Esc para quitar la selecci\xF3n de la anotaci\xF3n.","sceneModel":"Modelo 3D","sceneRoleDescription":"modelo 3D giratorio","sceneKeys":"Use las teclas de flecha para girar el modelo, con May\xFAs para avanzar m\xE1s, las teclas m\xE1s y menos para acercar y alejar, 0 para restablecer la vista, y R o May\xFAs+R para girarlo a la derecha o a la izquierda.","sceneRotateUp":"Girar hacia arriba","sceneRotateDown":"Girar hacia abajo","sceneRotate":"Girar","sceneResetView":"Restablecer la vista","statusLoading":"Cargando\u2026","statusError":"No se pudo cargar este contenido.","itemsLabel":"Elementos","download":"Descargar","downloadPage":"Esta p\xE1gina","downloadAll":"Todas las p\xE1ginas","templateSidebar":"Elementos","templateSidebarToggle":"Mostrar elementos","collectionLabel":"Colecci\xF3n","itemsScrollBack":"Mostrar elementos anteriores","itemsScrollForward":"Mostrar m\xE1s elementos","aboutRights":"Derechos","aboutHomepage":"P\xE1gina de inicio","aboutSeeAlso":"V\xE9ase tambi\xE9n","aboutProvider":"Proveedor","logo":"Logotipo","aboutManifest":"Manifiesto IIIF","aboutCanvas":"Lienzo IIIF","aboutPartOf":"Parte de","aboutOpenManifest":"Abrir el manifiesto completo","aboutCollection":"Colecci\xF3n IIIF","annotationsHide":"Ocultar anotaciones","annotationsHideTip":"Ocultar","readMore":"Leer m\xE1s","readLess":"Leer menos","annotationsShow":"Ver en la imagen","annotationsShowTime":"Ver en la grabaci\xF3n","annotationsImage":"Imagen","annotationsLanguage":"Idioma","annotationsOpenLink":"Abrir el enlace","transcriptLabel":"Transcripci\xF3n","imageViewerOpen":"Abrir el visor de im\xE1genes","imageViewerClose":"Cerrar el visor de im\xE1genes","canvasChoice":"Alternativas","imageFullScreen":"Pantalla completa","imageExitFullScreen":"Salir de pantalla completa","imageResetZoom":"Restablecer zoom","imageRotateLeft":"Girar a la izquierda","imageRotateRight":"Girar a la derecha","imageZoomIn":"Acercar","imageZoomOut":"Alejar","informationPanelTabs":"Panel de informaci\xF3n","sectionsScrollBack":"Mostrar pesta\xF1as anteriores","sectionsScrollForward":"Mostrar m\xE1s pesta\xF1as","informationPanelClose":"Cerrar el panel de informaci\xF3n","informationPanelTabsAbout":"Acerca de","informationPanelTabsAnnotations":"Anotaciones","informationPanelTabsSearch":"Buscar","informationPanelTabsContents":"\xCDndice","informationPanelTabsMap":"Mapa","informationPanelTabsCollection":"Colecci\xF3n","mapUnavailable":"No se pudo mostrar el mapa.","mapLabel":"Mapa","mapAttribution":"Cr\xE9ditos del mapa","mapPlaceUntitled":"Lugar {{number}}","mapOverlay":"Imagen georreferenciada","mapPlacesListed":"Lugares enumerados despu\xE9s del mapa: {{count}}","informationPanelToggle":"M\xE1s informaci\xF3n","playerPlay":"Reproducir","playerPause":"Pausar","playerClose":"Cerrar el reproductor","playerMute":"Silenciar","playerUnmute":"Activar el sonido","playerVolume":"Volumen","playerSeek":"Posici\xF3n de reproducci\xF3n","playerCaptions":"Subt\xEDtulos","playerCaptionsOff":"Desactivados","playerChapters":"Cap\xEDtulos","framePrevious":"Fotograma anterior","frameNext":"Fotograma siguiente","frameSeek":"Fotograma","frameRepeat":"Repetir","framePosition":"Fotograma {{index}} de {{total}}","playerCurrentTime":"Tiempo actual","playerDuration":"Duraci\xF3n","splitHandle":"Cambiar el tama\xF1o de los paneles"}');export{a as default};
@@ -1 +0,0 @@
1
- const a=JSON.parse('{"commonClose":"Sulje","commonNext":"Seuraava","commonPrevious":"Edellinen","commonSearch":"Hae","commonViewAll":"N\xE4yt\xE4 kaikki","controlShortcut":"{{label}} ({{shortcut}})","contentSearchLoading":"Ladataan...","contentSearchPlaceholder":"Haku","contentSearchResultsNone":"Ei osumia","contentSearchResult":"1 osuma","contentSearchResults":"{{count}} osumaa","contentSearchError":"Hakua ei voitu suorittaa loppuun.","contentSearchPosition":"Osuma {{index}} / {{total}}","contentSearchClear":"Tyhjenn\xE4 haku","canvasPosition":"Kohde {{index}} / {{total}}","canvasImage":"Kuva","canvasRoleDescription":"zoomattava kuva","canvasKeysImage":"Siirr\xE4 kuvaa nuolin\xE4pp\xE4imill\xE4, pidemmin Vaihto-n\xE4pp\xE4imen kanssa, l\xE4henn\xE4 ja loitonna plus- ja miinusn\xE4pp\xE4imill\xE4, palauta n\xE4kym\xE4 n\xE4pp\xE4imell\xE4 0 ja kierr\xE4 n\xE4pp\xE4imell\xE4 R tai Vaihto+R.","canvasKeysMedia":"Toista tai keskeyt\xE4 v\xE4lily\xF6nnill\xE4 tai n\xE4pp\xE4imell\xE4 K, siirry kymmenen sekuntia taaksep\xE4in tai eteenp\xE4in n\xE4pp\xE4imell\xE4 J tai L ja mykist\xE4 tai poista mykistys n\xE4pp\xE4imell\xE4 M.","canvasKeysAnnotations":"Poista annotaation valinta painamalla Esc-n\xE4pp\xE4int\xE4.","sceneModel":"3D-malli","sceneRoleDescription":"k\xE4\xE4nnett\xE4v\xE4 3D-malli","sceneKeys":"Kierr\xE4 mallia nuolin\xE4pp\xE4imill\xE4, pidemmin Vaihto-n\xE4pp\xE4imen kanssa, l\xE4henn\xE4 ja loitonna plus- ja miinusn\xE4pp\xE4imill\xE4, palauta n\xE4kym\xE4 n\xE4pp\xE4imell\xE4 0 ja kierr\xE4 oikealle tai vasemmalle n\xE4pp\xE4imell\xE4 R tai Vaihto+R.","sceneRotateUp":"Kierr\xE4 yl\xF6s","sceneRotateDown":"Kierr\xE4 alas","sceneRotate":"Kierr\xE4","sceneResetView":"Palauta n\xE4kym\xE4","statusLoading":"Ladataan\u2026","statusError":"T\xE4t\xE4 ei voitu ladata.","itemsLabel":"Kohteet","download":"Lataa","downloadPage":"T\xE4m\xE4 sivu","downloadAll":"Kaikki sivut","templateSidebar":"Kohteet","templateSidebarToggle":"N\xE4yt\xE4 kohteet","collectionLabel":"Kokoelma","itemsScrollBack":"N\xE4yt\xE4 edelliset kohteet","itemsScrollForward":"N\xE4yt\xE4 lis\xE4\xE4 kohteita","aboutRights":"Oikeudet","aboutHomepage":"Kotisivu","aboutSeeAlso":"Katso my\xF6s","aboutProvider":"Tarjoaja","logo":"Logo","aboutManifest":"IIIF-manifesti","aboutCanvas":"IIIF-kanvaasi","aboutPartOf":"Osa kokonaisuutta","aboutOpenManifest":"Avaa koko manifesti","aboutCollection":"IIIF-kokoelma","annotationsHide":"Piilota annotaatiot","annotationsHideTip":"Piilota","readMore":"Lue lis\xE4\xE4","readLess":"N\xE4yt\xE4 v\xE4hemm\xE4n","annotationsShow":"N\xE4yt\xE4 kuvassa","annotationsShowTime":"N\xE4yt\xE4 tallenteessa","annotationsImage":"Kuva","annotationsLanguage":"Kieli","annotationsOpenLink":"Avaa linkki","transcriptLabel":"Litteraatti","imageViewerOpen":"Avaa kuvakatselin","imageViewerClose":"Sulje kuvakatselin","canvasChoice":"Vaihtoehdot","imageFullScreen":"Koko n\xE4ytt\xF6","imageExitFullScreen":"Poistu koko n\xE4yt\xF6st\xE4","imageResetZoom":"Palauta zoomaus","imageRotateLeft":"Kierr\xE4 vasemmalle","imageRotateRight":"Kierr\xE4 oikealle","imageZoomIn":"L\xE4henn\xE4","imageZoomOut":"Loitonna","informationPanelTabs":"Tietopaneeli","sectionsScrollBack":"N\xE4yt\xE4 edelliset v\xE4lilehdet","sectionsScrollForward":"N\xE4yt\xE4 lis\xE4\xE4 v\xE4lilehti\xE4","informationPanelClose":"Sulje tietopaneeli","informationPanelTabsAbout":"Tiedot","informationPanelTabsAnnotations":"Annotaatiot","informationPanelTabsSearch":"Haku","informationPanelTabsContents":"Sis\xE4lt\xF6","informationPanelTabsMap":"Kartta","informationPanelTabsCollection":"Kokoelma","mapUnavailable":"Karttaa ei voitu n\xE4ytt\xE4\xE4.","mapLabel":"Kartta","mapAttribution":"Kartan tekij\xE4tiedot","mapPlaceUntitled":"Paikka {{number}}","mapOverlay":"Georeferoitu kuva","mapPlacesListed":"Kartan j\xE4lkeen luetellut paikat: {{count}}","informationPanelToggle":"Lis\xE4tiedot","playerPlay":"Toista","playerPause":"Keskeyt\xE4","playerClose":"Sulje soitin","playerMute":"Mykist\xE4","playerUnmute":"Poista mykistys","playerVolume":"\xC4\xE4nenvoimakkuus","playerSeek":"Toistokohta","playerCaptions":"Tekstitykset","playerCaptionsOff":"Pois","playerChapters":"Luvut","framePrevious":"Edellinen ruutu","frameNext":"Seuraava ruutu","frameSeek":"Ruutu","frameRepeat":"Toista uudelleen","framePosition":"Ruutu {{index}} / {{total}}","playerCurrentTime":"Kulunut aika","playerDuration":"Kesto","splitHandle":"Muuta paneelien kokoa"}');export{a as default};
@@ -1 +0,0 @@
1
- const e=JSON.parse(`{"commonClose":"Fermer","commonNext":"Suivant","commonPrevious":"Pr\xE9c\xE9dent","commonSearch":"Rechercher","commonViewAll":"Tout afficher","controlShortcut":"{{label}} ({{shortcut}})","contentSearchLoading":"Chargement\u2026","contentSearchPlaceholder":"Rechercher","contentSearchResultsNone":"Aucun r\xE9sultat","contentSearchResult":"1 r\xE9sultat","contentSearchResults":"{{count}} r\xE9sultats","contentSearchError":"La recherche n\u2019a pas pu aboutir.","contentSearchPosition":"R\xE9sultat {{index}} sur {{total}}","contentSearchClear":"Effacer la recherche","canvasPosition":"\xC9l\xE9ment {{index}} sur {{total}}","canvasImage":"Image","canvasRoleDescription":"image zoomable","canvasKeysImage":"Utilisez les fl\xE8ches pour d\xE9placer l\u2019image, avec Maj pour aller plus loin, plus et moins pour zoomer, 0 pour r\xE9initialiser la vue, et R ou Maj+R pour la faire pivoter.","canvasKeysMedia":"Appuyez sur Espace ou K pour lire ou mettre en pause, sur J ou L pour reculer ou avancer de dix secondes, et sur M pour couper ou r\xE9tablir le son.","canvasKeysAnnotations":"Appuyez sur \xC9chap pour d\xE9s\xE9lectionner l\u2019annotation.","sceneModel":"Mod\xE8le 3D","sceneRoleDescription":"mod\xE8le 3D orientable","sceneKeys":"Utilisez les fl\xE8ches pour faire pivoter le mod\xE8le, avec Maj pour aller plus loin, plus et moins pour zoomer, 0 pour r\xE9initialiser la vue, et R ou Maj+R pour le faire pivoter \xE0 droite ou \xE0 gauche.","sceneRotateUp":"Rotation vers le haut","sceneRotateDown":"Rotation vers le bas","sceneRotate":"Rotation","sceneResetView":"R\xE9initialiser la vue","statusLoading":"Chargement\u2026","statusError":"Ce contenu n\u2019a pas pu \xEAtre charg\xE9.","itemsLabel":"\xC9l\xE9ments","download":"T\xE9l\xE9charger","downloadPage":"Cette page","downloadAll":"Toutes les pages","templateSidebar":"\xC9l\xE9ments","templateSidebarToggle":"Afficher les \xE9l\xE9ments","collectionLabel":"Collection","itemsScrollBack":"Afficher les \xE9l\xE9ments pr\xE9c\xE9dents","itemsScrollForward":"Afficher plus d\u2019\xE9l\xE9ments","aboutRights":"Droits","aboutHomepage":"Page d\u2019accueil","aboutSeeAlso":"Voir aussi","aboutProvider":"Fournisseur","logo":"Logo","aboutManifest":"Manifeste IIIF","aboutCanvas":"Canevas IIIF","aboutPartOf":"Fait partie de","aboutOpenManifest":"Ouvrir le manifeste complet","aboutCollection":"Collection IIIF","annotationsHide":"Masquer les annotations","annotationsHideTip":"Masquer","readMore":"Lire la suite","readLess":"Afficher moins","annotationsShow":"Afficher sur l\u2019image","annotationsShowTime":"Afficher dans l\u2019enregistrement","annotationsImage":"Image","annotationsLanguage":"Langue","annotationsOpenLink":"Ouvrir le lien","transcriptLabel":"Transcription","imageViewerOpen":"Ouvrir la visionneuse d'images","imageViewerClose":"Fermer la visionneuse d'images","canvasChoice":"Choix","imageFullScreen":"Plein \xE9cran","imageExitFullScreen":"Quitter le plein \xE9cran","imageResetZoom":"R\xE9initialiser le zoom","imageRotateLeft":"Rotation \xE0 gauche","imageRotateRight":"Rotation \xE0 droite","imageZoomIn":"Zoom avant","imageZoomOut":"Zoom arri\xE8re","informationPanelTabs":"Panneau d\u2019informations","sectionsScrollBack":"Afficher les onglets pr\xE9c\xE9dents","sectionsScrollForward":"Afficher plus d\u2019onglets","informationPanelClose":"Fermer le panneau d\u2019informations","informationPanelTabsAbout":"\xC0 propos","informationPanelTabsAnnotations":"Annotations","informationPanelTabsSearch":"Recherche","informationPanelTabsContents":"Sommaire","informationPanelTabsMap":"Carte","informationPanelTabsCollection":"Collection","mapUnavailable":"La carte n\u2019a pas pu \xEAtre affich\xE9e.","mapLabel":"Carte","mapAttribution":"Cr\xE9dits de la carte","mapPlaceUntitled":"Lieu {{number}}","mapOverlay":"Image g\xE9or\xE9f\xE9renc\xE9e","mapPlacesListed":"Lieux \xE9num\xE9r\xE9s apr\xE8s la carte : {{count}}","informationPanelToggle":"Plus d\u2019informations","playerPlay":"Lire","playerPause":"Pause","playerClose":"Fermer le lecteur","playerMute":"Couper le son","playerUnmute":"Activer le son","playerVolume":"Volume","playerSeek":"Position de lecture","playerCaptions":"Sous-titres","playerCaptionsOff":"D\xE9sactiv\xE9s","playerChapters":"Chapitres","framePrevious":"Image pr\xE9c\xE9dente","frameNext":"Image suivante","frameSeek":"Image","frameRepeat":"R\xE9p\xE9ter","framePosition":"Image {{index}} sur {{total}}","playerCurrentTime":"Temps \xE9coul\xE9","playerDuration":"Dur\xE9e","splitHandle":"Redimensionner les panneaux"}`);export{e as default};
@@ -1 +0,0 @@
1
- import{T as l,o as r}from"./shared-J3w3gnXD.mjs";function a(e,t,u,n){return l(()=>((n==null?void 0:n(e??null,(t==null?void 0:t.id)??null,t==null?void 0:t.duration))??[]).map(o=>{const s=r(o.label,u);return{...o.id?{id:o.id}:{},label:s.text,lang:s.lang,start:o.start,end:o.end}}),[e,t,u,n])}function v(e,t,u,n){if(e.region){if(!t)return false;const{x:o,y:s,w:i,h:f}=e.region;if(!t.fitCanvasRect(e.canvasId,{x:o,y:s,width:i,height:f},true))return false}if(n&&(e.time!==void 0||e.autoplay)){if(!u)return false;const o=()=>{e.time!==void 0&&(u.currentTime=e.time),e.autoplay&&u.play().catch(()=>{})};u.readyState>=HTMLMediaElement.HAVE_METADATA?o():u.addEventListener("loadedmetadata",o,{once:true})}return true}export{v as a,a as u};
@@ -1 +0,0 @@
1
- import{u as o,k as e}from"./shared-J3w3gnXD.mjs";const s=()=>o("path",{fillRule:"evenodd",stroke:"none",d:"M144 72H368A96 96 0 0 1 464 168V296A96 96 0 0 1 368 392H200L104 460L144 392A96 96 0 0 1 48 296V168A96 96 0 0 1 144 72Z M168 184H344A16 16 0 0 1 344 216H168A16 16 0 0 1 168 184Z M168 264H280A16 16 0 0 1 280 296H168A16 16 0 0 1 168 264Z"}),t=()=>o("path",{stroke:"none",d:"M256 72A48 48 0 1 1 256 168A48 48 0 1 1 256 72Z M192 216H296V384H328V432H184V384H216V264H192Z"}),c=()=>o("path",{strokeLinejoin:"round",strokeWidth:"40",d:"M184 128V384L392 256Z"}),a=()=>o("path",{strokeLinecap:"round",strokeWidth:"45",d:"M154 154L358 358M358 154L154 358"}),h=()=>o(e,{children:[o("path",{stroke:"none",d:"m456.69,421.39l-94.09-94.09c22.65-30.16,34.88-66.86,34.84-104.58,0-96.34-78.38-174.72-174.72-174.72S48,126.38,48,222.72s78.38,174.72,174.72,174.72c37.72.04,74.42-12.19,104.58-34.84l94.09,94.09c10.29,9.2,26.1,8.32,35.3-1.98,8.48-9.49,8.48-23.83,0-33.32Zm-233.97-73.87c-68.89-.08-124.72-55.91-124.8-124.8h0c0-68.93,55.87-124.8,124.8-124.8s124.8,55.87,124.8,124.8-55.87,124.8-124.8,124.8Z"}),o("path",{stroke:"none",d:"m279.5,197.76h-3.35s-28.47,0-28.47,0v-31.82c-.77-13.79-12.57-24.33-26.36-23.56-12.71.71-22.85,10.86-23.56,23.56v3.35h0v28.47h-31.82c-13.79.77-24.33,12.57-23.56,26.36.71,12.71,10.86,22.85,23.56,23.56h3.35s28.47,0,28.47,0v31.82c.77,13.79,12.57,24.33,26.36,23.56,12.71-.71,22.85-10.86,23.56-23.56v-3.35h0v-28.47h31.82c13.79-.77,24.33-12.57,23.56-26.36-.71-12.71-10.86-22.85-23.56-23.56Z"})]}),r=()=>o(e,{children:[o("path",{stroke:"none",d:"m456.69,421.39l-94.09-94.09c22.65-30.16,34.88-66.86,34.84-104.58,0-96.34-78.38-174.72-174.72-174.72S48,126.38,48,222.72s78.38,174.72,174.72,174.72c37.72.04,74.42-12.19,104.58-34.84l94.09,94.09c10.29,9.2,26.1,8.32,35.3-1.98,8.48-9.49,8.48-23.83,0-33.32Zm-233.97-73.87c-68.89-.08-124.72-55.91-124.8-124.8h0c0-68.93,55.87-124.8,124.8-124.8s124.8,55.87,124.8,124.8-55.87,124.8-124.8,124.8Z"}),o("path",{stroke:"none",d:"M167.26 197.76H278.1a24.96 24.96 0 0 1 0 49.92H167.26a24.96 24.96 0 0 1 0-49.92Z"})]});export{a as C,t as I,h as O,c as P,s as a,r as b};
@@ -1 +0,0 @@
1
- import{i as n,T as i,g as o,a5 as c,Z as f,L as l,E as u,r as v,a as r,o as g}from"./shared-J3w3gnXD.mjs";function C(){const s=n(a=>a.status),e=n(a=>a.error);return i(()=>({status:s,error:e}),[s,e])}function d(){return n(s=>s.manifest)}function L(){return n(s=>u(s.manifest))}function S(){return n(s=>v(s.manifest,s.canvasId))}function b(){return n(s=>f(s.manifest,s.canvasId))}function p(){const{clover:s}=o("useNavigation"),e=n(t=>l(t.manifest,t.canvasId)),a=n(t=>u(t.manifest).views.length);return i(()=>c(s,e,a),[s,e,a])}function z(s){const{language:e}=o("useLocalized");return i(()=>g(s,e),[s,e])}function I(){return r().t}function O(){return r().langOf}export{C as a,p as b,L as c,d,b as e,I as f,O as g,z as h,S as u};
@@ -1 +0,0 @@
1
- var $=Object.defineProperty;var U=(e,t,o)=>t in e?$(e,t,{enumerable:true,configurable:true,writable:true,value:o}):e[t]=o;var s=(e,t,o)=>U(e,typeof t!="symbol"?t+"":t,o);let L;function N(e){L=e}function Fe(){return L}function H(e={}){return import("./shared-J3w3gnXD.mjs").then(t=>t.ap).then(t=>t.initCloverI18n(e))}const A=new Map,x=new Set;function Je(e,t,o){if(!A.has(t)){A.set(t,{index:e,css:o});for(const n of x)n.place(t,e,o)}}class V{constructor(t){s(this,"injected",new Set);this.doc=t,x.add(this),A.forEach(({index:o,css:n},i)=>this.place(i,o,n))}inject(t,o){this.injected.has(t)||(this.injected.add(t),this.doc.head.prepend(this.style(t,o)))}place(t,o,n){if(this.injected.has(t))return;this.injected.add(t);const i=this.style(t,n);i.dataset.cloverIndex=String(o);const c=[...this.doc.head.querySelectorAll("style[data-clover-index]")],C=c.filter(l=>Number(l.dataset.cloverIndex)<o).at(-1),w=c.find(l=>Number(l.dataset.cloverIndex)>o),g=this.doc.head.querySelectorAll("style[data-clover]");C?C.after(i):w?w.before(i):g.length?g[g.length-1].after(i):this.doc.head.prepend(i)}style(t,o){const n=this.doc.createElement("style");return n.dataset.clover=t,n.textContent=o,n}}const j=new WeakMap;function q(e){let t=j.get(e);return t||j.set(e,t=new V(e)),t}const z="@layer clover{:is(clover-root,clover-items,clover-viewer,clover-panel,clover-read-more):not([hidden]){display:block}:is(clover-body,clover-canvas,clover-timeline,clover-scene):not([hidden]){display:block;height:var(--clover-body-height,60vh)}clover-split:not([hidden]){display:flex}:is(clover-label,clover-panel-toggle):not([hidden]){display:contents}clover-tab,clover-tip,clover-status>[slot]{display:none}}";let W=null,f=null;const B=()=>W??(W=import("./shared-J3w3gnXD.mjs").then(e=>e.aq).then(e=>f=e)),F=e=>e.trim().toLowerCase()==="false";function J(e,{type:t,min:o},n){if(e===null)return;if(t==="string")return e;if(t==="boolean")return!F(e);if(t==="number"){const c=Number(e);if(e.trim()===""||!Number.isFinite(c)){n("is not a number");return}if(o!==void 0&&c<o){n(`is less than ${o}`);return}return c}if(t==="data"){const c=e.trim();if(!/^[[{"]/.test(c))return e;try{return JSON.parse(c)}catch{n("is not JSON");return}}const i=e.trim().toLowerCase();if(t.includes(i))return i==="false"?false:i;n(`is not ${t.join(", ")}`)}const K=(e,t)=>{const o=Object.keys(e);return o.length===Object.keys(t).length&&o.every(n=>Object.is(e[n],t[n]))};function Q(e){class t extends HTMLElement{constructor(){super(...arguments);s(this,"kind",e.kind)}static get observedAttributes(){return Object.keys(e.attributes)}connectedCallback(){q(this.ownerDocument).inject("elements",z)}}customElements.define(e.tag,t)}function _(e,t){if(typeof customElements>"u"||customElements.get(e.tag))return;if(e.kind==="config"||!t)return Q(e);const o=e.kind,n=e.properties??[],i=Object.entries(e.events??{});let c=null,C=null;const w=()=>C??(C=Promise.all([t().then(l=>c=l),B()]));class g extends HTMLElement{constructor(){super(...arguments);s(this,"kind",o);s(this,"needsRoot",!!e.needsRoot);s(this,"values",{});s(this,"kept",{});s(this,"props",{});s(this,"listeners",new Set);s(this,"warned",new Set);s(this,"handlers",Object.fromEntries(i.map(([r,a])=>[a.prop,(...u)=>{var b;if(a.keeps&&(this.kept[a.keeps]=u[0]??null,u[0]==null))return true;const y=a.detail==="first"?u[0]:Object.fromEntries(a.detail.map((m,D)=>[m,u[D]])),E=new CustomEvent(r,{detail:y,bubbles:!a.keeps,composed:!a.keeps,cancelable:!!a.cancelable}),S=this.dispatchEvent(E);if(!S&&a.cancelable){const m=u[u.length-1];(b=m==null?void 0:m.preventDefault)==null||b.call(m)}return S}])));s(this,"getProps",()=>this.props);s(this,"subscribe",r=>(this.listeners.add(r),()=>{this.listeners.delete(r)}))}static get observedAttributes(){return Object.keys(e.attributes)}get element(){return this}get Component(){return c}connectedCallback(){for(const r of n){if(!Object.prototype.hasOwnProperty.call(this,r))continue;const a=this[r];delete this[r],a!=null&&(this.values[r]=a)}this.update(),this.warnOfAria(),q(this.ownerDocument).inject("elements",z),w().then(()=>{this.isConnected&&f.hostOf(this.ownerDocument).connect(this)})}disconnectedCallback(){queueMicrotask(()=>{this.isConnected||f==null||f.hostOf(this.ownerDocument).disconnect(this)})}attributeChangedCallback(){this.update()}warnOfAria(){if(!e.native)for(const r of["aria-label","aria-labelledby","role"])!this.hasAttribute(r)||this.warned.has(r)||(this.warned.add(r),console.warn(`<${e.tag}>: ${r} names the element, a box no reader is told of; Clover names what it draws itself.`))}update(){const r={...this.handlers,...this.values};for(const[a,u]of Object.entries(e.attributes)){if(u.prop in this.values)continue;const y=this.getAttribute(a),E=J(y,u,S=>{const b=`${a}=${y}`;this.warned.has(b)||(this.warned.add(b),console.warn(`<${e.tag}>: ${a}="${y}" ${S}; ignored.`))});E!==void 0&&(r[u.prop]=E)}K(r,this.props)||(this.props=r,this.listeners.forEach(a=>a()))}}s(g,"initCloverI18n",H);for(const l of n)Object.defineProperty(g.prototype,l,{configurable:true,enumerable:true,get(){return l in this.values?this.values[l]:this.getProps()[l]},set(h){h==null?delete this.values[l]:this.values[l]=h,this.update()}});for(const[,l]of i){if(!l.keeps)continue;const h=l.keeps;Object.defineProperty(g.prototype,h,{configurable:true,enumerable:true,get(){return this.kept[h]??null}})}customElements.define(e.tag,g)}const G={tag:"clover-panel",kind:"part",needsRoot:true,attributes:{layout:{prop:"layout",type:["tabs","accordion"]},value:{prop:"value",type:"string"},"heading-level":{prop:"headingLevel",type:"number",min:1},download:{prop:"download",type:"boolean"},closable:{prop:"closable",type:"boolean"},"close-on-escape":{prop:"closeOnEscape",type:"boolean"},as:{prop:"as",type:["aside","div"]}},events:{"clover-value-change":{prop:"onValueChange",detail:["value"]},"clover-close":{prop:"onClose",detail:[],cancelable:true}}},Y={tag:"clover-tab",kind:"config",attributes:{value:{prop:"value",type:"string"},label:{prop:"label",type:"string"}},slots:["label"]},Z={tag:"clover-panel-toggle",kind:"part",attributes:{controls:{prop:"controls",type:"string"}},events:{"clover-open-change":{prop:"onOpenChange",detail:["open"],cancelable:true}}},X={tag:"clover-split",kind:"part",native:true,attributes:{"storage-key":{prop:"storageKey",type:"string"}}},ee={tag:"clover-split-pane",kind:"part",native:true,attributes:{size:{prop:"size",type:"string"},min:{prop:"min",type:"string"},max:{prop:"max",type:"string"},name:{prop:"name",type:"string"}}},te={tag:"clover-split-handle",kind:"part",native:true,attributes:{}},M={"clover-ready":{prop:"onReady",detail:["handle"],keeps:"handle"}},oe={tag:"clover-canvas",kind:"part",attributes:{"iiif-content":{prop:"iiifContent",type:"string"},src:{prop:"src",type:"string"},tiled:{prop:"isTiledImage",type:"boolean"},label:{prop:"label",type:"string"},language:{prop:"language",type:"string"},controls:{prop:"controls",type:"boolean"},navigator:{prop:"navigator",type:"boolean"},placeholder:{prop:"placeholder",type:"boolean"},"viewing-direction":{prop:"viewingDirection",type:["left-to-right","right-to-left","top-to-bottom","bottom-to-top"]},"animate-annotations":{prop:"animateAnnotations",type:"boolean"}},properties:["iiifContent","canvases","src","annotations","options","controlButtons","controls"],events:{...M,"clover-annotation-select":{prop:"onAnnotationSelect",detail:["id"]},"clover-annotation-active":{prop:"onAnnotationActive",detail:["id"]},"clover-caption-change":{prop:"onCaptionChange",detail:["caption"]},"clover-ended":{prop:"onEnded",detail:[]}}},ne={tag:"clover-timeline",kind:"part",attributes:{"iiif-content":{prop:"iiifContent",type:"string"},label:{prop:"label",type:"string"},language:{prop:"language",type:"string"},controls:{prop:"controls",type:"boolean"},placeholder:{prop:"placeholder",type:"boolean"}},properties:["iiifContent","timeline","annotations","options","controls"],events:{"clover-caption-change":{prop:"onCaptionChange",detail:["caption"]},"clover-ended":{prop:"onEnded",detail:[]}}},re={tag:"clover-scene",kind:"part",attributes:{"iiif-content":{prop:"iiifContent",type:"string"},label:{prop:"label",type:"string"},language:{prop:"language",type:"string"},controls:{prop:"controls",type:"boolean"},engine:{prop:"engine",type:["clover","three"]}},properties:["iiifContent","scene","options","controls"]},ae={tag:"clover-body",kind:"part",needsRoot:true,attributes:{controls:{prop:"controls",type:"boolean"},navigator:{prop:"navigator",type:"boolean"},placeholder:{prop:"placeholder",type:"boolean"},"animate-annotations":{prop:"animateAnnotations",type:"boolean"}},properties:["controls","options","controlButtons","renderers"],events:{...M,"clover-annotation-active":{prop:"onAnnotationActive",detail:["id"]},"clover-caption-change":{prop:"onCaptionChange",detail:["caption"]},"clover-ended":{prop:"onEnded",detail:[]}}},ie={tag:"clover-items",kind:"part",attributes:{layout:{prop:"layout",type:["slider","list","grid","pager"]},of:{prop:"of",type:["views","members"]},navigation:{prop:"navigation",type:["id","homepage"]},"iiif-content":{prop:"iiifContent",type:"string"},header:{prop:"header",type:"boolean"},"heading-level":{prop:"headingLevel",type:"number",min:2},"thumbnail-size":{prop:"thumbnailSize",type:"number",min:1},language:{prop:"language",type:"string"}},properties:["iiifContent","items","request","renderItem"],events:{"clover-select":{prop:"onSelect",detail:["item"],cancelable:true}}},le=["span","p","div","strong","em","h1","h2","h3","h4","h5","h6"],se={tag:"clover-label",kind:"part",attributes:{of:{prop:"of",type:["manifest","canvas"]},as:{prop:"as",type:le},label:{prop:"label",type:"data"}},properties:["label"]},pe={prop:"of",type:["manifest","canvas"]},T={prop:"value",type:"data"},d=(e,t={})=>({tag:e,kind:"part",attributes:{of:pe,value:T,...t},properties:["value"]}),ce=d("clover-summary",{as:{prop:"as",type:["p","div","span"]}}),de={...d("clover-metadata"),properties:["value","renderValue"]},ue=d("clover-required-statement"),ve=d("clover-rights"),ge=d("clover-id"),me=d("clover-homepage"),he=d("clover-rendering"),ye=d("clover-see-also"),be=d("clover-part-of"),fe=d("clover-thumbnail",{size:{prop:"size",type:"number",min:1},alt:{prop:"alt",type:"string"}}),ke=d("clover-provider",{link:{prop:"link",type:["false"]}}),Ce=d("clover-logo",{alt:{prop:"alt",type:"string"}}),we={tag:"clover-value",kind:"part",attributes:{value:T,format:{prop:"format",type:"string"},"heading-level":{prop:"headingLevel",type:"number",min:1},as:{prop:"as",type:["span","p","div"]}},properties:["value"]},Ee={tag:"clover-root",kind:"root",attributes:{"iiif-content":{prop:"iiifContent",type:"string"},"canvas-id":{prop:"canvasId",type:"string"},"manifest-id":{prop:"manifestId",type:"string"},language:{prop:"language",type:"string"},"search-query":{prop:"searchQuery",type:"string"},annotations:{prop:"annotations",type:"data"},"annotation-pages":{prop:"annotationPages",type:["view","all"]},lang:{prop:"lang",type:"string"}},properties:["iiifContent","annotations","request","renderers"],events:{"clover-ready":{prop:"onReady",detail:["clover"],keeps:"clover"},"clover-canvas-change":{prop:"onCanvasChange",detail:["canvasId"]},"clover-manifest-change":{prop:"onManifestChange",detail:["manifestId"]},"clover-status-change":{prop:"onStatusChange",detail:["status","error"]},"clover-content-state-change":{prop:"onContentStateChange",detail:"first"}}},k={"heading-level":{prop:"headingLevel",type:"number",min:1}},P={of:{prop:"of",type:["views","members"]}},Se={tag:"clover-status",kind:"part",needsRoot:true,attributes:{loading:{prop:"loading",type:["false"]}},slots:["loading","error"]},Oe={tag:"clover-position",kind:"part",needsRoot:true,attributes:{...P,as:{prop:"as",type:["span","p","div"]}}},Re={tag:"clover-next",kind:"part",needsRoot:true,attributes:P},Ae={tag:"clover-previous",kind:"part",needsRoot:true,attributes:P},Pe={tag:"clover-download",kind:"part",needsRoot:true,attributes:k},je={tag:"clover-search",kind:"part",needsRoot:true,attributes:{...k,sticky:{prop:"sticky",type:"boolean"},size:{prop:"size",type:["large","small"]}}},Ie={tag:"clover-contents",kind:"part",needsRoot:true,attributes:{}},Le={tag:"clover-transcript",kind:"part",needsRoot:true,attributes:{follow:{prop:"follow",type:"boolean"},find:{prop:"find",type:"boolean"},sticky:{prop:"sticky",type:"boolean"},size:{prop:"size",type:["large","small"]}}},xe={tag:"clover-annotations",kind:"part",needsRoot:true,attributes:{scope:{prop:"scope",type:["view","all"]},...k},properties:["renderEntry"]},qe={tag:"clover-collection",kind:"part",needsRoot:true,attributes:k},ze={tag:"clover-collection-select",kind:"part",needsRoot:true,attributes:{},events:{"clover-change":{prop:"onChange",detail:["manifestId"]}}},Me={tag:"clover-about",kind:"part",needsRoot:true,attributes:{"canvas-summary":{prop:"canvasSummary",type:"boolean"},download:{prop:"download",type:"boolean"},thumbnail:{prop:"thumbnail",type:"boolean"},label:{prop:"label",type:"boolean"},...k}},Te={tag:"clover-map",kind:"part",attributes:{"iiif-content":{prop:"iiifContent",type:"string"},overlay:{prop:"overlay",type:"boolean"},"overlay-opacity":{prop:"overlayOpacity",type:"number",min:0},"style-url":{prop:"styleUrl",type:"string"},"scroll-zoom":{prop:"scrollZoom",type:"boolean"},language:{prop:"language",type:"string"}},properties:["iiifContent","navPlace","georeferences","request"],events:{"clover-select":{prop:"onSelect",detail:["feature"]}}},De={tag:"clover-read-more",kind:"part",attributes:{}},$e={tag:"clover-tip",kind:"part",attributes:{label:{prop:"label",type:"string"},lang:{prop:"lang",type:"string"},keys:{prop:"keys",type:"string"},glyph:{prop:"glyph",type:"string"}},properties:["shortcut"]},Ue={tag:"clover-viewer",kind:"alone",attributes:{template:{prop:"template",type:["default","document","gallery"]},"iiif-content":{prop:"iiifContent",type:"string"},"canvas-id":{prop:"defaultCanvasId",type:"string"},"manifest-id":{prop:"defaultManifestId",type:"string"},language:{prop:"language",type:"string"},"search-query":{prop:"searchQuery",type:"string"},annotations:{prop:"annotations",type:"data"},"heading-level":{prop:"headingLevel",type:"number",min:2},items:{prop:"items",type:["slider","list","grid","false"]},header:{prop:"header",type:"boolean"},panel:{prop:"panel",type:"boolean"},download:{prop:"download",type:"boolean"},"panel-open":{prop:"defaultPanelOpen",type:"boolean"},"panel-layout":{prop:"panelLayout",type:["accordion","tabs"]},"sidebar-open":{prop:"defaultSidebarOpen",type:"boolean"},"storage-key":{prop:"storageKey",type:"string"},fill:{prop:"fill",type:"boolean"},size:{prop:"size",type:"string"}},properties:["iiifContent","annotations","request","renderers"],events:{"clover-canvas-change":{prop:"onCanvasChange",detail:["canvasId"]},"clover-manifest-change":{prop:"onManifestChange",detail:["manifestId"]},"clover-status-change":{prop:"onStatusChange",detail:["status","error"]},"clover-content-state-change":{prop:"onContentStateChange",detail:"first"}}},I=[Ue,Ee,ae,se,ie,Oe,Ae,Re,Se,fe,ce,de,ue,ve,me,ye,he,be,ge,ke,Ce,we,Me,xe,qe,ze,Ie,je,Le,Pe,Te,G,Y,Z,X,ee,te,oe,ne,re,$e,De],p=(e,t,o)=>()=>Promise.all([e(),import("./part-CUBY90_b.mjs")]).then(([n,{drawn:i}])=>i(n[t],o)),O=e=>()=>import("./split-m-_XivaW.mjs").then(t=>t[e]),v=e=>p(()=>import("./Primitives-CTh59wvs.mjs"),e),R=e=>p(()=>import("./Pager-BGwCurxE.mjs"),e),Ne={"clover-viewer":()=>import("./viewer-DyV864Qe.mjs").then(e=>e.v).then(e=>e.ViewerElement),"clover-root":()=>import("./shared-J3w3gnXD.mjs").then(e=>e.as).then(e=>e.RootElement),"clover-label":()=>import("./label-CYQ7tVl6.mjs").then(e=>e.LabelElement),"clover-body":()=>import("./body-UntgrmoV.mjs").then(e=>e.BodyElement),"clover-items":()=>import("./items-W2vrwArM.mjs").then(e=>e.ItemsElement),"clover-position":R("Position"),"clover-previous":R("Previous"),"clover-next":R("Next"),"clover-status":()=>import("./status-DDS7jLNd.mjs").then(e=>e.StatusElement),"clover-thumbnail":v("Thumbnail"),"clover-summary":v("Summary"),"clover-metadata":p(()=>import("./Primitives-CTh59wvs.mjs"),"Metadata",["renderValue"]),"clover-required-statement":v("RequiredStatement"),"clover-rights":v("Rights"),"clover-homepage":v("Homepage"),"clover-see-also":v("SeeAlso"),"clover-rendering":v("Rendering"),"clover-part-of":v("PartOf"),"clover-id":v("Id"),"clover-provider":()=>import("./provider-LUmAQSoP.mjs").then(e=>e.ProviderElement),"clover-logo":()=>import("./logo-CnQUCB3Y.mjs").then(e=>e.LogoElement),"clover-value":v("Value"),"clover-about":p(()=>import("./About-uKa1wfDr.mjs"),"About"),"clover-annotations":p(()=>import("./Annotations-C_tBJHo3.mjs"),"Annotations",["renderEntry"]),"clover-collection":p(()=>import("./Collection-DL4Ui4hF.mjs"),"Collection"),"clover-collection-select":p(()=>import("./CollectionSelect-DL-bbpwJ.mjs"),"CollectionSelect"),"clover-contents":p(()=>import("./Contents-ZC8TiGaW.mjs"),"Contents"),"clover-search":p(()=>import("./Search-UOneIUcP.mjs"),"Search"),"clover-transcript":p(()=>import("./Transcript-CRL2zToL.mjs"),"Transcript"),"clover-download":p(()=>import("./Download-DBksL1C0.mjs"),"Download"),"clover-map":p(()=>import("./Map-DzVGblIS.mjs"),"CloverMap"),"clover-panel":()=>import("./panel-CiqEFDzv.mjs").then(e=>e.PanelElement),"clover-panel-toggle":()=>import("./toggle-AS72kq6v.mjs").then(e=>e.PanelToggleElement),"clover-split":O("SplitElement"),"clover-split-pane":O("SplitPaneElement"),"clover-split-handle":O("SplitHandleElement"),"clover-canvas":()=>import("./canvas-d_U4v_mh.mjs").then(e=>e.CanvasElement),"clover-timeline":p(()=>import("./Timeline-WtYZ1bIJ.mjs"),"Timeline"),"clover-scene":p(()=>import("./Scene-B_PU_TiX.mjs"),"Scene"),"clover-tip":()=>import("./tip-BXByhOJ9.mjs").then(e=>e.TipElement),"clover-read-more":()=>import("./read-more-BaaO77el.mjs").then(e=>e.ReadMoreElement)};function He(e,t=I.map(({tag:o})=>o)){e.mapWorkerUrl&&N(e.mapWorkerUrl);for(const o of I)t.includes(o.tag)&&_(o,Ne[o.tag])}const Ve=""+new URL("assets/maplibre-gl-worker-kTz9OPxr.js",import.meta.url).href,We={mapWorkerUrl:Ve};He(We);export{Je as a,He as d,Fe as g,H as i};
@@ -1 +0,0 @@
1
- import{j as p,E as u,o as r,O as v}from"./shared-J3w3gnXD.mjs";function g(t){var i;return(i=v(t).find(({body:a})=>a.type))==null?void 0:i.body.type}function o(t){const i=g(t)??(t.type==="Timeline"?"Sound":void 0);return{id:t.id,type:t.type,label:t.label,resource:t,duration:Number(t.duration)||void 0,media:i}}const s=new WeakMap;function m(t){if(!t)return[];let i=s.get(t);if(!i){const{canvases:a,views:e}=u(t);i=e.map(y=>{const n=y.map(l=>o(a[l]));return{id:n[0].id,parts:n,label:n.length===1?n[0].label:{none:[n.map(l=>r(l.label).text).filter(Boolean).join(" \u2013 ")]}}}),s.set(t,i)}return i}const d=new WeakMap;function f(t){if(!t)return[];let i=d.get(t);return i||(i=p(t.items).filter(a=>a==null?void 0:a.id).map(a=>{var e;return{id:a.id,parts:[o(a)],label:a.label,summary:a.summary,href:((e=p(a.homepage)[0])==null?void 0:e.id)??a.id}}),d.set(t,i)),i}function O(t){return t?Array.isArray(t)?f({items:t}):t.type==="Collection"?f(t):m(t):[]}export{m as a,O as b,f as i};
@@ -1 +0,0 @@
1
- import{T as m,u as r}from"./shared-J3w3gnXD.mjs";import{I as o}from"./Items-_1Jz3FMs.mjs";import{w as n}from"./nodes-Bf-Fb7e5.mjs";function I({props:t}){const e=m(()=>n(t,["renderItem"]),[t]);return r(o,{...e})}export{I as ItemsElement};
@@ -1 +0,0 @@
1
- const s=r=>!!r&&typeof r=="object"&&!Array.isArray(r)&&typeof r.id=="string"&&r.id.includes("#")&&r.type!=="SpecificResource";function c(r){if(Array.isArray(r))return r.some(c);if(!r||typeof r!="object")return false;for(const[n,e]of Object.entries(r))if(n==="target"&&(Array.isArray(e)?e:[e]).some(s)||c(e))return true;return false}function f(r){const{id:n,...e}=r,[t,i]=n.split("#");return{type:"SpecificResource",source:{...e,id:t},selector:{type:"FragmentSelector",value:i}}}function o(r){if(Array.isArray(r))return r.map(o);if(!r||typeof r!="object")return r;const n={};for(const[e,t]of Object.entries(r))n[e]=e==="target"?Array.isArray(t)?t.map(i=>s(i)?f(i):o(i)):s(t)?f(t):o(t):o(t);return n}function y(r){return c(r)?o(r):r}export{y as keepFragments};
@@ -1 +0,0 @@
1
- import{u as e}from"./shared-J3w3gnXD.mjs";import{L as o}from"./Label-CAiJ49eA.mjs";function n({props:r}){return e(o,{...r})}export{n as LabelElement};
@@ -1 +0,0 @@
1
- import{m as _,n as B,a3 as J,j as a,J as j}from"./shared-J3w3gnXD.mjs";import{f as O}from"./imageService-C3yg9DxB.mjs";const Z={width:1600,height:900};function q(e,i){const t=new Array(e.length);if(!e.length)return t;const s=e.map(x),n=i==="left-to-right"||i==="right-to-left",o=i==="right-to-left"||i==="bottom-to-top",h=n?s[0].height:s[0].width,r=e.map((f,d)=>d);o&&r.reverse();let c=0;for(const f of r){const d=s[f],g=h/(n?d.height:d.width),l=d.width*g,p=d.height*g;t[f]=n?{x:c,y:0,width:l,height:p}:{x:0,y:c,width:l,height:p},c+=n?l:p}return t}function x(e){var o,h;if(e.width&&e.height)return{width:e.width,height:e.height};const i=P(e);if(i!=null&&i.width&&i.height)return{width:i.width,height:i.height};const t=((o=C(e)[0])==null?void 0:o.body)??((h=W(e)[0])==null?void 0:h.body),s=Number(t==null?void 0:t.width),n=Number(t==null?void 0:t.height);return s>0&&n>0?{width:s,height:n}:Z}function P(e){return e.accompanyingContainer??e.placeholderContainer}function G(e,i,t,s,n){return`${e.id}|${i.id??`${t}:${s}`}|${n}`}function ot(e){const i=[];for(const t of e)R(t,(s,n)=>{const o=s;if((o==null?void 0:o.type)!=="Choice")return;const h=a(o.items).filter(r=>!!r&&typeof r=="object");h.length>1&&i.push({key:n,canvasId:t.id,label:o.label,items:h.map(r=>({label:r.label,id:r.id}))})});return i}const V=new WeakMap,H=[];function Q(e){var h;const i=V.get(e);if(i)return i;const t=[];for(const r of e.items??[])for(const c of r.items??[]){if(!_(c))continue;const f=c.target?(h=B(c.target))==null?void 0:h.t:void 0;if(!f)continue;const[d,g]=f.split(",").map(Number);Number.isFinite(d)&&t.push({annotation:c,start:d,end:Number.isFinite(g)?g:NaN})}t.sort((r,c)=>r.start-c.start);const s=Number(e.duration),n=Number.isFinite(s)&&s/t.length||.5;t.forEach((r,c)=>{var d;const f=(d=t[c+1])==null?void 0:d.start;f!=null?r.end=f>r.start?f:r.start+n:Number.isFinite(s)&&s>r.start?r.end=s:r.end>r.start||(r.end=r.start+n)});const o=t.length>1?t:H;return V.set(e,o),o}const F=e=>`frame:${e.id}`;function R(e,i){(e.items??[]).forEach((t,s)=>{(t.items??[]).forEach((n,o)=>{_(n)&&J(n).forEach((h,r)=>i(h,G(e,n,s,o,r),n))})})}function C(e,i={},{allFrames:t=false}={}){const s=[];return K(e,i,(n,o,h)=>{n.body.type==="Image"&&s.push({body:n.body,region:n.region,target:o,...h>=0?{frame:h}:{}})},t),s}function W(e,i={}){const t=[];return K(e,i,(s,n)=>{const o=s.body.type;o!=="Video"&&!j(o)||t.push({kind:o==="Video"?"video":"audio",body:s.body,target:n})}),t}function K(e,i,t,s=false){const n=e.width??0,o=e.height??0,h=Q(e),r=Math.min(i[F(e)]??0,Math.max(0,h.length-1));R(e,(c,f,d)=>{const g=h.findIndex(N=>N.annotation===d);if(!s&&g>=0&&g!==r)return;const l=A(c,i[f]??0);if(!l)return;const p=d.target?B(d.target):void 0,y=p==null?void 0:p.rect;t(l,y?{x:y.x,y:y.y,width:y.w,height:y.h}:{x:0,y:0,width:n||Number(l.body.width)||0,height:o||Number(l.body.height)||0},g)})}function U(e){const i=[],t=[...e.annotations??[],...e.items??[]];for(const s of t)for(const n of s.items??[])if(a(n.motivation).includes("supplementing"))for(const o of a(n.body)){const h=o,r=(h==null?void 0:h.type)==="Choice"?a(h.items):[h];for(const c of r){const f=c==null?void 0:c.id;!((c==null?void 0:c.format)==="text/vtt"||typeof f=="string"&&/\.vtt(\?|$)/i.test(f))||typeof f!="string"||i.push({id:f,label:c.label,language:a(c.language)[0]})}}return i}function it(e){const i=[],t=n=>{const o=n,h=o==null?void 0:o.id;if(typeof h!="string"||i.some(c=>c.id===h))return;const r=o==null?void 0:o.format;(r?r!=="text/plain":!/\.txt(\?|$)/i.test(h))||i.push({id:h,label:o==null?void 0:o.label,language:a(o==null?void 0:o.language)[0]})},s=[...e.annotations??[],...e.items??[]];for(const n of s)for(const o of n.items??[])if(a(o.motivation).includes("supplementing"))for(const h of a(o.body)){const r=h;((r==null?void 0:r.type)==="Choice"?a(r.items):[r]).forEach(t)}return a(e.rendering).forEach(t),i}function A(e,i=0){if(!e||typeof e!="object")return null;const t=e;if(t.type==="Choice"){const s=a(t.items);return A(s[i]??s[0])}if(t.type==="SpecificResource"&&t.source){const s=typeof t.source=="string"?{id:t.source}:t.source,n=a(t.selector).find(h=>(h==null?void 0:h.type)==="ImageApiSelector"&&h.region),o=A({type:"Image",...s});return o?{...o,region:(n==null?void 0:n.region)??o.region}:null}return t.type!=="Image"&&t.type!=="Video"&&!j(t.type)?null:{body:t,region:typeof t.region=="string"?t.region:void 0}}function nt(e,i,t={},{standIns:s=true}={}){const n=q(e,i),o=[],h=[],r={};return e.forEach((c,f)=>{const d=n[f],g=x(c),l=d.width/g.width,p=d.height/g.height,y=u=>({x:d.x+u.x*l,y:d.y+u.y*p,width:u.width*l,height:u.height*p}),N=W(c,t),E=C(c,t,{allFrames:true}).map(u=>({...u,canvas:c})),S=P(c);if(s&&!E.length&&N.some(u=>u.kind==="audio")&&S){const u=x(S);for(const b of C(S))E.push({...b,canvas:S,target:{x:b.target.x/u.width*g.width,y:b.target.y/u.height*g.height,width:b.target.width/u.width*g.width,height:b.target.height/u.height*g.height}})}const L=t[F(c)]??0;E.forEach(({body:u,target:b,region:I,frame:w,canvas:v},D)=>{var T;const $=O(u.service);if(!$&&!u.id)return;const z=`${v.id}|${D}|${u.id??$}|${I??""}`,M=!($&&I);if(o.push({id:z,service:$,url:u.id,width:M&&Number(u.width)||void 0,height:M&&Number(u.height)||void 0,region:I,placement:y(b),...w!=null&&w!==L?{hidden:true}:{}}),w!=null){const k=r[T=F(c)]??(r[T]=[]);(k[w]??(k[w]=[])).push(z)}});const[m]=N;m!=null&&m.body.id&&h.push({id:`${c.id}|media|${m.body.id}`,kind:m.kind,src:m.body.id,format:m.body.format,placement:y(m.target),duration:Number(m.body.duration??c.duration)||void 0,poster:X(c),captions:U(c)})}),{images:o,media:h,placements:n,frames:r}}function X(e){var i;return(i=Y(e))==null?void 0:i.source}const rt=1280;function Y(e){var c;const i=e.placeholderContainer;if(!i)return;const t=(c=C(i)[0])==null?void 0:c.body;if(!t)return;const s=O(t.service),n=typeof t.id=="string"?t.id:void 0,o=s?{service:s,fallback:n}:n?{src:n}:void 0;if(!o)return;const{width:h,height:r}=x(i);return{source:o,width:h,height:r}}function st(e,i,t){const s=x(e),n=i.width/s.width,o=i.height/s.height;return{x:i.x+t.x*n,y:i.y+t.y*o,width:t.width*n,height:t.height*o}}export{rt as S,it as a,Q as b,U as c,nt as d,F as e,ot as f,st as g,x as h,W as i,Y as p,A as r};
@@ -1 +0,0 @@
1
- import{t as g,r as k,m as y}from"./text-BTAkxEfQ.mjs";import{o as d,j as v,a3 as T,n as A}from"./shared-J3w3gnXD.mjs";function w(s,n){const t=(e,r)=>e?{text:e,...r?{lang:r}:{}}:{},i=s.filter(e=>{var r;return(r=e.value)==null?void 0:r.trim()});if(!i.length){const e=s.find(u=>u.image&&u.label);if(!e)return{};const{text:r,lang:m}=d(e.label,n);return t(g(r).trim(),m)}const f=e=>e.language&&e.language!=="none"?e.language:"none",o={};i.forEach((e,r)=>{var m;o[m=f(e)]??(o[m]=[String(r)])});const a=i[Number(d(o,n).text)||0],l=a.value,p=k(a.format,l),x=p==="markdown"?y(l):p==="html"?g(l):l,c=f(a);return t(x.trim(),c==="none"?void 0:c)}function C(s){if(v(s==null?void 0:s.motivation).includes("linking"))for(const n of T(s)){if((n==null?void 0:n.type)==="TextualBody"||typeof(n==null?void 0:n.value)=="string")continue;const t=(n==null?void 0:n.type)==="SpecificResource"?n.source:n,i=typeof t=="string"?t:t==null?void 0:t.id;if(!(typeof i!="string"||!i)){if((t==null?void 0:t.type)==="Canvas"){const f=v(t.partOf).find(a=>(a==null?void 0:a.id)&&(!a.type||a.type==="Manifest")),o=A(i).id;return{id:i,canvasId:o,...f?{manifestId:f.id}:{}}}if((t==null?void 0:t.type)==="Manifest"||(t==null?void 0:t.type)==="Collection")return{id:i,manifestId:i};if(/^https?:\/\//i.test(i))return{id:i}}}}export{w as a,C as r};
@@ -1 +0,0 @@
1
- import{u as t}from"./shared-J3w3gnXD.mjs";import{L as n}from"./Provider-C6rIiDXH.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{m as M,a3 as l,j as f}from"./shared-J3w3gnXD.mjs";const m=45,d=75*Math.PI/180,h=5*Math.PI/180,p=Math.PI-h,y=1.1,g=.35,I=4;function P(n,a=1){const t=m*Math.PI/180,o=2*Math.atan(Math.tan(t/2)*a),s=Math.min(t,o);return Math.max(n,1e-6)/Math.sin(s/2)*y}function x(n,a=1){return{theta:0,phi:d,distance:P(n.radius,a)}}function E(n,a,t){return{...n,theta:n.theta+a,phi:Math.min(p,Math.max(h,n.phi+t))}}function R(n,a,t){const o=n.distance/a;return{...n,distance:Math.min(t.distance*I,Math.max(t.distance*g,o))}}function z(n,a){const{theta:t,phi:o,distance:s}=n;return[a[0]+s*Math.sin(o)*Math.sin(t),a[1]+s*Math.cos(o),a[2]+s*Math.sin(o)*Math.cos(t)]}function A(n,a){const t=(s,i)=>Math.abs(s-i)<1e-6,o=(n.theta-a.theta)%(2*Math.PI);return(t(o,0)||t(Math.abs(o),2*Math.PI))&&t(n.phi,a.phi)&&t(n.distance,a.distance)}const O=["model/gltf-binary","model/gltf+json"],c=(n,a)=>{const t=Number(n);return Number.isFinite(t)?t:a};function F(n){return n.format?O.includes(n.format.toLowerCase()):/\.(glb|gltf)(\?|#|$)/i.test(n.src)}function b(n){return f(n.transform).flatMap(a=>{const t=a,o=(t==null?void 0:t.type)==="ScaleTransform"?"scale":(t==null?void 0:t.type)==="RotateTransform"?"rotate":(t==null?void 0:t.type)==="TranslateTransform"?"translate":null;if(!o||!t)return[];const s=o==="scale"?1:0;return[{type:o,x:c(t.x,s),y:c(t.y,s),z:c(t.z,s)}]})}function S(n){for(const a of f(n)){const t=a;if((t==null?void 0:t.type)!=="SpecificResource")continue;const o=f(t.selector).find(s=>(s==null?void 0:s.type)==="PointSelector");if(o)return[c(o.x,0),c(o.y,0),c(o.z,0)]}return[0,0,0]}const u=new WeakMap;function _(n){const a=u.get(n);if(a)return a;const t=[];for(const o of n.items??[])for(const s of(o==null?void 0:o.items)??[])if(M(s))for(let i of l(s)){(i==null?void 0:i.type)==="Choice"&&(i=f(i.items)[0]);const r=(i==null?void 0:i.type)==="SpecificResource"?i:null,e=r?typeof r.source=="string"?{id:r.source,type:"Model"}:r.source:i;(e==null?void 0:e.type)!=="Model"||typeof e.id!="string"||t.push({id:String(s.id??e.id),src:e.id,...typeof e.format=="string"?{format:e.format}:{},...e.label?{label:e.label}:{},position:S(s.target),transforms:r?b(r):[]})}return u.set(n,t),t}function w(n){const a=n.backgroundColor;return typeof a=="string"&&/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(a)?a:void 0}export{m as F,O as M,w as a,A as b,z as c,x as h,F as i,_ as s,E as t,R as z};
@@ -1 +0,0 @@
1
- const e=JSON.parse('{"commonClose":"Lukk","commonNext":"Neste","commonPrevious":"Forrige","commonSearch":"S\xF8k","commonViewAll":"Se alle","controlShortcut":"{{label}} ({{shortcut}})","contentSearchLoading":"Laster inn...","contentSearchPlaceholder":"S\xF8k","contentSearchResultsNone":"Ingen resultat","contentSearchResult":"1 resultat","contentSearchResults":"{{count}} resultater","contentSearchError":"S\xF8ket kunne ikke fullf\xF8res.","contentSearchPosition":"Resultat {{index}} av {{total}}","contentSearchClear":"T\xF8m s\xF8ket","canvasPosition":"Element {{index}} av {{total}}","canvasImage":"Bilde","canvasRoleDescription":"zoombart bilde","canvasKeysImage":"Bruk piltastene for \xE5 flytte bildet, med Shift for lengre steg, pluss og minus for \xE5 zoome, 0 for \xE5 tilbakestille visningen, og R eller Shift+R for \xE5 rotere.","canvasKeysMedia":"Trykk mellomrom eller K for \xE5 spille av eller pause, J eller L for \xE5 spole ti sekunder bakover eller fremover, og M for \xE5 sl\xE5 lyden av eller p\xE5.","canvasKeysAnnotations":"Trykk Esc for \xE5 fjerne valget av annoteringen.","sceneModel":"3D-modell","sceneRoleDescription":"roterbar 3D-modell","sceneKeys":"Bruk piltastene for \xE5 rotere modellen, med Shift for lengre steg, pluss og minus for \xE5 zoome, 0 for \xE5 tilbakestille visningen, og R eller Shift+R for \xE5 rotere den mot h\xF8yre eller venstre.","sceneRotateUp":"Roter oppover","sceneRotateDown":"Roter nedover","sceneRotate":"Roter","sceneResetView":"Tilbakestill visningen","statusLoading":"Laster inn\u2026","statusError":"Dette kunne ikke lastes inn.","itemsLabel":"Elementer","download":"Last ned","downloadPage":"Denne siden","downloadAll":"Alle sider","templateSidebar":"Elementer","templateSidebarToggle":"Vis elementer","collectionLabel":"Samling","itemsScrollBack":"Vis forrige elementer","itemsScrollForward":"Vis flere elementer","aboutRights":"Rettigheter","aboutHomepage":"Hjemmeside","aboutSeeAlso":"Se ogs\xE5","aboutProvider":"Leverand\xF8r","logo":"Logo","aboutManifest":"IIIF-manifest","aboutCanvas":"IIIF-lerret","aboutPartOf":"Del av","aboutOpenManifest":"\xC5pne hele manifestet","aboutCollection":"IIIF-samling","annotationsHide":"Skjul annoteringer","annotationsHideTip":"Skjul","readMore":"Les mer","readLess":"Les mindre","annotationsShow":"Vis p\xE5 bildet","annotationsShowTime":"Vis i opptaket","annotationsImage":"Bilde","annotationsLanguage":"Spr\xE5k","annotationsOpenLink":"\xC5pne lenken","transcriptLabel":"Transkripsjon","imageViewerOpen":"\xC5pne bildeviseren","imageViewerClose":"Lukk bildeviseren","canvasChoice":"Valg","imageFullScreen":"Fullskjerm","imageExitFullScreen":"Avslutt fullskjerm","imageResetZoom":"Tilbakestill zoom","imageRotateLeft":"Roter mot venstre","imageRotateRight":"Roter mot h\xF8yre","imageZoomIn":"Zoom inn","imageZoomOut":"Zoom ut","informationPanelTabs":"Informasjonspanel","sectionsScrollBack":"Vis forrige faner","sectionsScrollForward":"Vis flere faner","informationPanelClose":"Lukk informasjonspanelet","informationPanelTabsAbout":"Om","informationPanelTabsAnnotations":"Annoteringer","informationPanelTabsSearch":"S\xF8k","informationPanelTabsContents":"Innhold","informationPanelTabsMap":"Kart","informationPanelTabsCollection":"Samling","mapUnavailable":"Kartet kunne ikke vises.","mapLabel":"Kart","mapAttribution":"Kartkreditering","mapPlaceUntitled":"Sted {{number}}","mapOverlay":"Georeferert bilde","mapPlacesListed":"Steder oppf\xF8rt etter kartet: {{count}}","informationPanelToggle":"Mer informasjon","playerPlay":"Spill av","playerPause":"Pause","playerClose":"Lukk avspilleren","playerMute":"Demp","playerUnmute":"Sl\xE5 p\xE5 lyd","playerVolume":"Volum","playerSeek":"Avspillingsposisjon","playerCaptions":"Teksting","playerCaptionsOff":"Av","playerChapters":"Kapitler","framePrevious":"Forrige bilde","frameNext":"Neste bilde","frameSeek":"Bilde","frameRepeat":"Gjenta","framePosition":"Bilde {{index}} av {{total}}","playerCurrentTime":"N\xE5v\xE6rende tid","playerDuration":"Varighet","splitHandle":"Endre st\xF8rrelse p\xE5 panelene"}');export{e as default};
@@ -1 +0,0 @@
1
- const e=JSON.parse('{"commonClose":"Lukk","commonNext":"Neste","commonPrevious":"F\xF8rre","commonSearch":"S\xF8k","commonViewAll":"Sj\xE5 alle","controlShortcut":"{{label}} ({{shortcut}})","contentSearchLoading":"Lastar inn...","contentSearchPlaceholder":"S\xF8k","contentSearchResultsNone":"Ingen resultat","contentSearchResult":"1 resultat","contentSearchResults":"{{count}} resultat","contentSearchError":"S\xF8ket kunne ikkje fullf\xF8rast.","contentSearchPosition":"Resultat {{index}} av {{total}}","contentSearchClear":"T\xF8m s\xF8ket","canvasPosition":"Element {{index}} av {{total}}","canvasImage":"Bilete","canvasRoleDescription":"zoombart bilete","canvasKeysImage":"Bruk piltastane for \xE5 flytte biletet, med Shift for lengre steg, pluss og minus for \xE5 zoome, 0 for \xE5 tilbakestille visinga, og R eller Shift+R for \xE5 rotere.","canvasKeysMedia":"Trykk mellomrom eller K for \xE5 spele av eller pause, J eller L for \xE5 spole ti sekund bakover eller framover, og M for \xE5 sl\xE5 lyden av eller p\xE5.","canvasKeysAnnotations":"Trykk Esc for \xE5 fjerne valet av annoteringa.","sceneModel":"3D-modell","sceneRoleDescription":"roterbar 3D-modell","sceneKeys":"Bruk piltastane for \xE5 rotere modellen, med Shift for lengre steg, pluss og minus for \xE5 zoome, 0 for \xE5 tilbakestille visinga, og R eller Shift+R for \xE5 rotere han mot h\xF8gre eller venstre.","sceneRotateUp":"Roter oppover","sceneRotateDown":"Roter nedover","sceneRotate":"Roter","sceneResetView":"Tilbakestill visinga","statusLoading":"Lastar inn\u2026","statusError":"Dette kunne ikkje lastast inn.","itemsLabel":"Element","download":"Last ned","downloadPage":"Denne sida","downloadAll":"Alle sider","templateSidebar":"Element","templateSidebarToggle":"Vis element","collectionLabel":"Samling","itemsScrollBack":"Vis f\xF8rre element","itemsScrollForward":"Vis fleire element","aboutRights":"Rettigheiter","aboutHomepage":"Heimeside","aboutSeeAlso":"Sj\xE5 ogs\xE5","aboutProvider":"Leverand\xF8r","logo":"Logo","aboutManifest":"IIIF-manifest","aboutCanvas":"IIIF-lerret","aboutPartOf":"Del av","aboutOpenManifest":"Opne heile manifestet","aboutCollection":"IIIF-samling","annotationsHide":"Skjul annoteringar","annotationsHideTip":"Skjul","readMore":"Les meir","readLess":"Les mindre","annotationsShow":"Vis p\xE5 biletet","annotationsShowTime":"Vis i opptaket","annotationsImage":"Bilete","annotationsLanguage":"Spr\xE5k","annotationsOpenLink":"Opne lenkja","transcriptLabel":"Transkripsjon","imageViewerOpen":"Opne biletvisaren","imageViewerClose":"Lukk biletvisaren","canvasChoice":"Val","imageFullScreen":"Fullskjerm","imageExitFullScreen":"Avslutt fullskjerm","imageResetZoom":"Tilbakestill zoom","imageRotateLeft":"Roter mot venstre","imageRotateRight":"Roter mot h\xF8gre","imageZoomIn":"Zoom inn","imageZoomOut":"Zoom ut","informationPanelTabs":"Informasjonspanel","sectionsScrollBack":"Vis f\xF8rre faner","sectionsScrollForward":"Vis fleire faner","informationPanelClose":"Lukk informasjonspanelet","informationPanelTabsAbout":"Om","informationPanelTabsAnnotations":"Annoteringar","informationPanelTabsSearch":"S\xF8k","informationPanelTabsContents":"Innhald","informationPanelTabsMap":"Kart","informationPanelTabsCollection":"Samling","mapUnavailable":"Kartet kunne ikkje visast.","mapLabel":"Kart","mapAttribution":"Kartkreditering","mapPlaceUntitled":"Stad {{number}}","mapOverlay":"Georeferert bilete","mapPlacesListed":"Stader lista opp etter kartet: {{count}}","informationPanelToggle":"Meir informasjon","playerPlay":"Spel av","playerPause":"Pause","playerClose":"Lukk avspelaren","playerMute":"Demp","playerUnmute":"Sl\xE5 p\xE5 lyd","playerVolume":"Volum","playerSeek":"Avspelingsposisjon","playerCaptions":"Teksting","playerCaptionsOff":"Av","playerChapters":"Kapittel","framePrevious":"F\xF8rre bilete","frameNext":"Neste bilete","frameSeek":"Bilete","frameRepeat":"Gjenta","framePosition":"Bilete {{index}} av {{total}}","playerCurrentTime":"Noverande tid","playerDuration":"Varigheit","splitHandle":"Endre storleiken p\xE5 panela"}');export{e as default};
@@ -1 +0,0 @@
1
- const e=JSON.parse('{"commonClose":"Lukk","commonNext":"Neste","commonPrevious":"Forrige","commonSearch":"S\xF8k","commonViewAll":"Se alle","controlShortcut":"{{label}} ({{shortcut}})","contentSearchLoading":"Laster inn...","contentSearchPlaceholder":"S\xF8k","contentSearchResultsNone":"Ingen resultat","contentSearchResult":"1 resultat","contentSearchResults":"{{count}} resultater","contentSearchError":"S\xF8ket kunne ikke fullf\xF8res.","contentSearchPosition":"Resultat {{index}} av {{total}}","contentSearchClear":"T\xF8m s\xF8ket","canvasPosition":"Element {{index}} av {{total}}","canvasImage":"Bilde","canvasRoleDescription":"zoombart bilde","canvasKeysImage":"Bruk piltastene for \xE5 flytte bildet, med Shift for lengre steg, pluss og minus for \xE5 zoome, 0 for \xE5 tilbakestille visningen, og R eller Shift+R for \xE5 rotere.","canvasKeysMedia":"Trykk mellomrom eller K for \xE5 spille av eller pause, J eller L for \xE5 spole ti sekunder bakover eller fremover, og M for \xE5 sl\xE5 lyden av eller p\xE5.","canvasKeysAnnotations":"Trykk Esc for \xE5 fjerne valget av annoteringen.","sceneModel":"3D-modell","sceneRoleDescription":"roterbar 3D-modell","sceneKeys":"Bruk piltastene for \xE5 rotere modellen, med Shift for lengre steg, pluss og minus for \xE5 zoome, 0 for \xE5 tilbakestille visningen, og R eller Shift+R for \xE5 rotere den mot h\xF8yre eller venstre.","sceneRotateUp":"Roter oppover","sceneRotateDown":"Roter nedover","sceneRotate":"Roter","sceneResetView":"Tilbakestill visningen","statusLoading":"Laster inn\u2026","statusError":"Dette kunne ikke lastes inn.","itemsLabel":"Elementer","download":"Last ned","downloadPage":"Denne siden","downloadAll":"Alle sider","templateSidebar":"Elementer","templateSidebarToggle":"Vis elementer","collectionLabel":"Samling","itemsScrollBack":"Vis forrige elementer","itemsScrollForward":"Vis flere elementer","aboutRights":"Rettigheter","aboutHomepage":"Hjemmeside","aboutSeeAlso":"Se ogs\xE5","aboutProvider":"Leverand\xF8r","logo":"Logo","aboutManifest":"IIIF-manifest","aboutCanvas":"IIIF-lerret","aboutPartOf":"Del av","aboutOpenManifest":"\xC5pne hele manifestet","aboutCollection":"IIIF-samling","annotationsHide":"Skjul annoteringer","annotationsHideTip":"Skjul","readMore":"Les mer","readLess":"Les mindre","annotationsShow":"Vis p\xE5 bildet","annotationsShowTime":"Vis i opptaket","annotationsImage":"Bilde","annotationsLanguage":"Spr\xE5k","annotationsOpenLink":"\xC5pne lenken","transcriptLabel":"Transkripsjon","imageViewerOpen":"\xC5pne bildeviseren","imageViewerClose":"Lukk bildeviseren","canvasChoice":"Valg","imageFullScreen":"Fullskjerm","imageExitFullScreen":"Avslutt fullskjerm","imageResetZoom":"Tilbakestill zoom","imageRotateLeft":"Roter mot venstre","imageRotateRight":"Roter mot h\xF8yre","imageZoomIn":"Zoom inn","imageZoomOut":"Zoom ut","informationPanelTabs":"Informasjonspanel","sectionsScrollBack":"Vis forrige faner","sectionsScrollForward":"Vis flere faner","informationPanelClose":"Lukk informasjonspanelet","informationPanelTabsAbout":"Om","informationPanelTabsAnnotations":"Annoteringer","informationPanelTabsSearch":"S\xF8k","informationPanelTabsContents":"Innhold","informationPanelTabsMap":"Kart","informationPanelTabsCollection":"Samling","mapUnavailable":"Kartet kunne ikke vises.","mapLabel":"Kart","mapAttribution":"Kartkreditering","mapPlaceUntitled":"Sted {{number}}","mapOverlay":"Georeferert bilde","mapPlacesListed":"Steder oppf\xF8rt etter kartet: {{count}}","informationPanelToggle":"Mer informasjon","playerPlay":"Spill av","playerPause":"Pause","playerClose":"Lukk avspilleren","playerMute":"Demp","playerUnmute":"Sl\xE5 p\xE5 lyd","playerVolume":"Volum","playerSeek":"Avspillingsposisjon","playerCaptions":"Teksting","playerCaptionsOff":"Av","playerChapters":"Kapitler","framePrevious":"Forrige bilde","frameNext":"Neste bilde","frameSeek":"Bilde","frameRepeat":"Gjenta","framePosition":"Bilde {{index}} av {{total}}","playerCurrentTime":"N\xE5v\xE6rende tid","playerDuration":"Varighet","splitHandle":"Endre st\xF8rrelse p\xE5 panelene"}');export{e as default};
@@ -1 +0,0 @@
1
- import{T as i,u as e}from"./shared-J3w3gnXD.mjs";import{w as u}from"./nodes-Bf-Fb7e5.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{a as y,c as L,b as E,T as v}from"./ErrorBoundary-Cy9PGoZv.mjs";const b=r=>{const s=new Map,p=e=>{var t;return(t=s.get(e))==null?void 0:t.forEach(i=>i())};let a=false,o=null,n=null,d=false,l=null;const u=e=>{y(e)&&(d=true)},m=e=>{l=e.isPrimary&&e.button===0&&(e.target===r||e.target===n)?{x:e.clientX,y:e.clientY,t:e.timeStamp,direct:L(e.pointerType,d)}:null},f=e=>{const t=l;l=null,!(!t||e.timeStamp-t.t>=E||Math.hypot(e.clientX-t.x,e.clientY-t.y)>v)&&!(o!=null&&o())&&!t.direct&&p("tap")},c=e=>{e!==n&&(n==null||n.remove(),n=e,n&&(Object.assign(n.style,{position:"absolute",inset:"0",width:"100%",height:"100%",objectFit:"contain"}),n.classList.add("clover-canvas-dom-media"),r.append(n)))};return r.addEventListener("pointermove",u),r.addEventListener("pointerdown",m),r.addEventListener("pointerup",f),{host:r,get isOpen(){return a},on(e,t){const i=s.get(e)??new Set;return s.set(e,i.add(t)),()=>i.delete(t)},async setImages(e,{world:t}={}){var i,g;c(((g=(i=e.find(w=>w.media))==null?void 0:i.media)==null?void 0:g.element)??null),!(!t&&!e.length)&&(p(a?"change":"open"),a=true)},clear:()=>c(null),setDismiss(e){o=e},setGestures(){},dispose(){c(null),s.clear(),r.removeEventListener("pointermove",u),r.removeEventListener("pointerdown",m),r.removeEventListener("pointerup",f)}}};export{b as p};
@@ -1 +0,0 @@
1
- const a=JSON.parse('{"commonClose":"Fechar","commonNext":"Seguinte","commonPrevious":"Anterior","commonSearch":"Pesquisar","commonViewAll":"Ver tudo","controlShortcut":"{{label}} ({{shortcut}})","contentSearchLoading":"A carregar...","contentSearchPlaceholder":"Pesquisar","contentSearchResultsNone":"Sem resultados","contentSearchResult":"1 resultado","contentSearchResults":"{{count}} resultados","contentSearchError":"N\xE3o foi poss\xEDvel concluir a pesquisa.","contentSearchPosition":"Resultado {{index}} de {{total}}","contentSearchClear":"Limpar a pesquisa","canvasPosition":"Item {{index}} de {{total}}","canvasImage":"Imagem","canvasRoleDescription":"imagem ampli\xE1vel","canvasKeysImage":"Use as teclas de seta para deslocar a imagem, com Shift para ir mais longe, mais e menos para ampliar e reduzir, 0 para repor a vista, e R ou Shift+R para rodar.","canvasKeysMedia":"Prima Espa\xE7o ou K para reproduzir ou pausar, J ou L para recuar ou avan\xE7ar dez segundos, e M para silenciar ou ativar o som.","canvasKeysAnnotations":"Prima Esc para desmarcar a anota\xE7\xE3o.","sceneModel":"Modelo 3D","sceneRoleDescription":"modelo 3D rotativo","sceneKeys":"Use as teclas de seta para rodar o modelo, com Shift para ir mais longe, mais e menos para ampliar e reduzir, 0 para repor a vista, e R ou Shift+R para o rodar para a direita ou para a esquerda.","sceneRotateUp":"Rodar para cima","sceneRotateDown":"Rodar para baixo","sceneRotate":"Rodar","sceneResetView":"Repor a vista","statusLoading":"A carregar\u2026","statusError":"N\xE3o foi poss\xEDvel carregar este conte\xFAdo.","itemsLabel":"Itens","download":"Transferir","downloadPage":"Esta p\xE1gina","downloadAll":"Todas as p\xE1ginas","templateSidebar":"Itens","templateSidebarToggle":"Mostrar itens","collectionLabel":"Cole\xE7\xE3o","itemsScrollBack":"Mostrar itens anteriores","itemsScrollForward":"Mostrar mais itens","aboutRights":"Direitos","aboutHomepage":"P\xE1gina inicial","aboutSeeAlso":"Ver tamb\xE9m","aboutProvider":"Fornecedor","logo":"Log\xF3tipo","aboutManifest":"Manifesto IIIF","aboutCanvas":"Tela IIIF","aboutPartOf":"Parte de","aboutOpenManifest":"Abrir o manifesto completo","aboutCollection":"Cole\xE7\xE3o IIIF","annotationsHide":"Ocultar anota\xE7\xF5es","annotationsHideTip":"Ocultar","readMore":"Ler mais","readLess":"Ler menos","annotationsShow":"Mostrar na imagem","annotationsShowTime":"Mostrar na grava\xE7\xE3o","annotationsImage":"Imagem","annotationsLanguage":"Idioma","annotationsOpenLink":"Abrir a liga\xE7\xE3o","transcriptLabel":"Transcri\xE7\xE3o","imageViewerOpen":"Abrir o visualizador de imagens","imageViewerClose":"Fechar o visualizador de imagens","canvasChoice":"Alternativas","imageFullScreen":"Ecr\xE3 completo","imageExitFullScreen":"Sair do ecr\xE3 completo","imageResetZoom":"Repor o zoom","imageRotateLeft":"Rodar para a esquerda","imageRotateRight":"Rodar para a direita","imageZoomIn":"Ampliar","imageZoomOut":"Reduzir","informationPanelTabs":"Painel de informa\xE7\xF5es","sectionsScrollBack":"Mostrar separadores anteriores","sectionsScrollForward":"Mostrar mais separadores","informationPanelClose":"Fechar o painel de informa\xE7\xF5es","informationPanelTabsAbout":"Sobre","informationPanelTabsAnnotations":"Anota\xE7\xF5es","informationPanelTabsSearch":"Pesquisa","informationPanelTabsContents":"Conte\xFAdo","informationPanelTabsMap":"Mapa","informationPanelTabsCollection":"Cole\xE7\xE3o","mapUnavailable":"N\xE3o foi poss\xEDvel mostrar o mapa.","mapLabel":"Mapa","mapAttribution":"Cr\xE9ditos do mapa","mapPlaceUntitled":"Local {{number}}","mapOverlay":"Imagem georreferenciada","mapPlacesListed":"Locais listados depois do mapa: {{count}}","informationPanelToggle":"Mais informa\xE7\xF5es","playerPlay":"Reproduzir","playerPause":"Pausar","playerClose":"Fechar o reprodutor","playerMute":"Silenciar","playerUnmute":"Ativar o som","playerVolume":"Volume","playerSeek":"Posi\xE7\xE3o de reprodu\xE7\xE3o","playerCaptions":"Legendas","playerCaptionsOff":"Desativadas","playerChapters":"Cap\xEDtulos","framePrevious":"Fotograma anterior","frameNext":"Pr\xF3ximo fotograma","frameSeek":"Fotograma","frameRepeat":"Repetir","framePosition":"Fotograma {{index}} de {{total}}","playerCurrentTime":"Tempo atual","playerDuration":"Dura\xE7\xE3o","splitHandle":"Redimensionar os pain\xE9is"}');export{a as default};
@@ -1 +0,0 @@
1
- import{a as m,M as f,b,A as v,_ as a,u as p}from"./shared-J3w3gnXD.mjs";import{u as g}from"./ReadMore-BJ2i-0uN.mjs";import{u as L}from"./nodes-Bf-Fb7e5.mjs";const M=o=>[...o.children].find(r=>!r.classList.contains("clover-read-more-button"))??null;function R({hosted:o}){const r=o.element,e=L(r,()=>M(r),Object.is),{t:s}=m(),i=f(),n=b(),c=v(null);c.current=e;const{open:t,cut:l,toggle:u}=g(c);return a(()=>(r.classList.add("clover-read-more"),()=>r.classList.remove("clover-read-more")),[r]),a(()=>{if(!e)return;const d=e.id;return d||(e.id=n),()=>{d||e.removeAttribute("id"),e.removeAttribute("data-read-more")}},[e,n]),a(()=>{e==null||e.setAttribute("data-read-more",t?"open":"")},[e,t]),!e||!(l||t)?null:p("button",{type:"button",className:"clover-read-more-button","aria-expanded":t,"aria-controls":e.id||n,onClick:u,ref:i.ref,lang:i.langOf(t?"readLess":"readMore"),children:s(t?"readLess":"readMore")})}export{R as ReadMoreElement};
@@ -1,22 +0,0 @@
1
- var wt=Object.defineProperty;var yt=(r,t,e)=>t in r?wt(r,t,{enumerable:true,configurable:true,writable:true,value:e}):r[t]=e;var h=(r,t,e)=>yt(r,typeof t!="symbol"?t+"":t,e);import{c as xt,r as V}from"./contexts-ByL3eA_T.mjs";import{c as P,s as S,t as I,a as vt,u as ct,i as bt,b as k,d as Tt,r as Et}from"./CanvasView-B8lMMSou.mjs";import{a as F,w as Mt,v as D,f as Y,s as $,b as Lt,c as _t}from"./Camera-Dw51CAfF.mjs";import{i as Q,a as kt,T as It,b as j,c as J,D as At,s as Pt}from"./ErrorBoundary-Cy9PGoZv.mjs";import{a0 as St,a1 as Rt}from"./shared-J3w3gnXD.mjs";import{a as Bt,i as tt,b as Ot}from"./imageService-C3yg9DxB.mjs";function Ct(r){return typeof HTMLImageElement<"u"&&r instanceof HTMLImageElement?r.complete&&r.naturalWidth>0:true}function zt(r,t){if(!r.bleed)return{x:0,y:0};const e=r.transform,i=Math.hypot(e.a,e.b)*t,s=Math.hypot(e.c,e.d)*t;return{x:r.bleed.right&&i>0?1/i:0,y:r.bleed.bottom&&s>0?1/s:0}}const Ut=`#version 300 es
2
- in vec2 a_position;
3
- uniform mat3 u_matrix;
4
- uniform vec4 u_crop;
5
- out vec2 v_uv;
6
-
7
- void main() {
8
- vec3 clip = u_matrix * vec3(a_position, 1.0);
9
- gl_Position = vec4(clip.xy, 0.0, 1.0);
10
- v_uv = u_crop.xy + a_position * u_crop.zw;
11
- }
12
- `,Wt=`#version 300 es
13
- precision highp float;
14
- in vec2 v_uv;
15
- uniform sampler2D u_texture;
16
- uniform float u_opacity;
17
- out vec4 outColor;
18
-
19
- void main() {
20
- outColor = texture(u_texture, v_uv) * u_opacity;
21
- }
22
- `;class A{constructor(t,e,i){h(this,"kind","webgl2");h(this,"canvas");h(this,"maxTextureSize");h(this,"gl");h(this,"program",null);h(this,"vao",null);h(this,"uniforms",{matrix:null,crop:null,opacity:null,texture:null});h(this,"textures",new Map);h(this,"cssWidth",1);h(this,"cssHeight",1);h(this,"pixelRatio",1);h(this,"matrixScratch",new Float32Array(9));h(this,"isLost",false);h(this,"callbacks");h(this,"handleLost",()=>{var t2,e2;this.isLost=true,this.textures.clear(),(e2=(t2=this.callbacks).onLost)==null||e2.call(t2)});this.canvas=t,this.gl=e,this.callbacks=i,this.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE)||4096;const s=Ft(e,Ut,Wt);this.program=s,this.uniforms={matrix:e.getUniformLocation(s,"u_matrix"),crop:e.getUniformLocation(s,"u_crop"),opacity:e.getUniformLocation(s,"u_opacity"),texture:e.getUniformLocation(s,"u_texture")};const o=e.createVertexArray();e.bindVertexArray(o);const n=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,n),e.bufferData(e.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,1,1]),e.STATIC_DRAW);const a=e.getAttribLocation(s,"a_position");e.enableVertexAttribArray(a),e.vertexAttribPointer(a,2,e.FLOAT,false,0,0),e.bindVertexArray(null),this.vao=o,e.enable(e.BLEND),e.blendFunc(e.ONE,e.ONE_MINUS_SRC_ALPHA),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,true),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,false),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,e.BROWSER_DEFAULT_WEBGL),t.addEventListener("webglcontextlost",this.handleLost)}static create(t,e={}){let i=null;try{i=t.getContext("webgl2",{alpha:true,premultipliedAlpha:true,antialias:false,depth:false,stencil:false,preserveDrawingBuffer:false})}catch{i=null}if(!i||typeof i.createShader!="function")return null;try{return new A(t,i,e)}catch{return null}}resize(t,e,i){this.cssWidth=Math.max(1,t),this.cssHeight=Math.max(1,e),this.pixelRatio=i;const s=Math.max(1,Math.round(t*i)),o=Math.max(1,Math.round(e*i));this.canvas.width!==s&&(this.canvas.width=s),this.canvas.height!==o&&(this.canvas.height=o)}begin(){if(this.isLost)return;const t=this.gl;t.viewport(0,0,this.canvas.width,this.canvas.height),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),t.useProgram(this.program),t.bindVertexArray(this.vao),t.activeTexture(t.TEXTURE0),t.uniform1i(this.uniforms.texture,0)}draw(t){if(this.isLost||!Ct(t.source))return"skipped";const e=this.gl,i=this.upload(t);if(i==="tainted")return"tainted";if(!i)return"skipped";const s=t.crop??{x:0,y:0,width:t.width,height:t.height},o=zt(t,this.pixelRatio),n=P(t.transform,I(s.x,s.y),S(s.width+o.x,s.height+o.y));return e.uniformMatrix3fv(this.uniforms.matrix,false,vt(n,this.cssWidth,this.cssHeight,this.matrixScratch)),e.uniform4f(this.uniforms.crop,s.x/t.width,s.y/t.height,s.width/t.width,s.height/t.height),e.uniform1f(this.uniforms.opacity,t.opacity),e.bindTexture(e.TEXTURE_2D,i.texture),e.drawArrays(e.TRIANGLE_STRIP,0,4),"drawn"}end(){this.isLost||this.gl.bindVertexArray(null)}has(t){return!this.isLost&&this.textures.has(t)}release(t){const e=this.textures.get(t);e&&(this.isLost||this.gl.deleteTexture(e.texture),this.textures.delete(t))}dispose(){var t;if(this.canvas.removeEventListener("webglcontextlost",this.handleLost),!this.isLost){for(const e of[...this.textures.keys()])this.release(e);this.program&&this.gl.deleteProgram(this.program),this.vao&&this.gl.deleteVertexArray(this.vao)}this.textures.clear(),(t=this.gl.getExtension("WEBGL_lose_context"))==null||t.loseContext(),this.isLost=true}upload(t){const e=this.gl,i=this.textures.get(t.key);if(i&&i.width===t.width&&i.height===t.height)return i;const s=(i==null?void 0:i.texture)??e.createTexture();if(!s)return null;e.bindTexture(e.TEXTURE_2D,s);try{e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t.source)}catch(n){if(i||e.deleteTexture(s),Dt(n))return"tainted";throw n}e.generateMipmap(e.TEXTURE_2D),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE);const o={texture:s,width:t.width,height:t.height};return this.textures.set(t.key,o),o}}function Ft(r,t,e){const i=et(r,r.VERTEX_SHADER,t),s=et(r,r.FRAGMENT_SHADER,e),o=r.createProgram();if(!o)throw new Error("Could not create WebGL program");if(r.attachShader(o,i),r.attachShader(o,s),r.linkProgram(o),r.deleteShader(i),r.deleteShader(s),!r.getProgramParameter(o,r.LINK_STATUS)){const n=r.getProgramInfoLog(o);throw r.deleteProgram(o),new Error(`Could not link WebGL program: ${n}`)}return o}function et(r,t,e){const i=r.createShader(t);if(!i)throw new Error("Could not create WebGL shader");if(r.shaderSource(i,e),r.compileShader(i),!r.getShaderParameter(i,r.COMPILE_STATUS)){const s=r.getShaderInfoLog(i);throw r.deleteShader(i),new Error(`Could not compile WebGL shader: ${s}`)}return i}function Dt(r){return typeof r=="object"&&r!==null&&r.name==="SecurityError"}const Nt=.09,Ht=1e-4,it=.05,Gt=1e-4;class Xt{constructor(t,e=Nt){h(this,"current");h(this,"target",null);h(this,"timeConstant");this.current={...t},this.timeConstant=e}get destination(){return this.target?{...this.target.state}:{...this.current}}set(t){this.current={...t},this.target=null}animateTo(t,e,i=false){if(i||this.timeConstant===0){this.set(t.state);return}let s=t.anchor;if(s){const o=F(s.world,s.screen,t.state.zoom,t.state.rotation,e);Math.hypot(o.x-t.state.x,o.y-t.state.y)*t.state.zoom>it&&(s=void 0)}this.target={state:{...t.state},anchor:s}}stop(){this.target=null}step(t,e){const i=this.target;if(!i)return false;const s=1-Math.exp(-Math.max(t,0)/this.timeConstant),o=this.current,n=i.state,a=Math.exp(Math.log(o.zoom)+(Math.log(n.zoom)-Math.log(o.zoom))*s),d=o.rotation+(n.rotation-o.rotation)*s;let c;return i.anchor?c=F(i.anchor.world,i.anchor.screen,a,d,e):c={x:o.x+(n.x-o.x)*s,y:o.y+(n.y-o.y)*s},this.current={x:c.x,y:c.y,zoom:a,rotation:d},Math.abs(Math.log(n.zoom/a))<Ht&&Math.abs(n.rotation-d)<Gt&&Math.hypot(n.x-c.x,n.y-c.y)*a<it?(this.current={...n},this.target=null,false):true}}const N={clickToZoom:true,dblClickToZoom:true,pinchToZoom:true,scrollToZoom:false,navigable:true},O=2,st=1.5,rt=.1,Zt=100,Kt=200,qt=.002,Vt=.01;class Yt{constructor(t,e,i=N){h(this,"pointers",new Map);h(this,"samples",[]);h(this,"down",null);h(this,"pinch",null);h(this,"lastTap",null);h(this,"lastPointerType","");h(this,"penHovers",false);h(this,"onPointerDown",t2=>{var i2,s;if(this.lastPointerType=t2.pointerType,t2.pointerType==="mouse"&&t2.button!==0||Q(t2.target,this.element))return;(s=(i2=this.element).setPointerCapture)==null||s.call(i2,t2.pointerId);const e2=this.local(t2);this.pointers.set(t2.pointerId,e2),this.pointers.size===1?(this.down={x:e2.x,y:e2.y,t:t2.timeStamp,moved:false},this.samples=[{x:e2.x,y:e2.y,t:t2.timeStamp}],this.target.setInteracting(true)):this.pointers.size===2&&(this.pinch=this.pinchState(),this.down&&(this.down.moved=true))});h(this,"onPointerMove",t2=>{var s;kt(t2)&&(this.penHovers=true);const e2=this.pointers.get(t2.pointerId);if(!e2)return;const i2=this.local(t2);if(this.pointers.set(t2.pointerId,i2),this.pointers.size===1){const o=i2.x-e2.x,n=i2.y-e2.y;this.down&&Math.hypot(i2.x-this.down.x,i2.y-this.down.y)>It&&(this.down.moved=true),(s=this.down)!=null&&s.moved&&this.options.navigable&&this.target.panBy(o,n,false),this.samples.push({x:i2.x,y:i2.y,t:t2.timeStamp});const a=t2.timeStamp-Zt;for(;this.samples.length>2&&this.samples[0].t<a;)this.samples.shift()}else if(this.pointers.size===2&&this.pinch&&this.options.navigable){const o=this.pinchState();this.options.pinchToZoom&&this.pinch.distance>0&&this.target.zoomBy(o.distance/this.pinch.distance,o.mid,false),this.target.panBy(o.mid.x-this.pinch.mid.x,o.mid.y-this.pinch.mid.y,false),this.pinch=o}});h(this,"onPointerUp",t2=>{var d,c,m,f,l,u;if(!this.pointers.has(t2.pointerId))return;if(this.pointers.delete(t2.pointerId),(c=(d=this.element).releasePointerCapture)==null||c.call(d,t2.pointerId),this.pointers.size===1){this.pinch=null;const[p]=this.pointers.values();this.samples=[{...p,t:t2.timeStamp}];return}if(this.pointers.size>0)return;const e2=this.down;if(this.down=null,this.pinch=null,this.target.setInteracting(false),!e2)return;const i2=this.local(t2);if(!e2.moved&&t2.type==="pointerup"&&t2.timeStamp-e2.t<j){if((f=(m=this.target).dismiss)!=null&&f.call(m)){this.lastTap=null;return}if(J(t2.pointerType,this.penHovers)){const p=this.lastTap;this.options.navigable&&(this.options.clickToZoom||this.options.dblClickToZoom)&&p&&t2.timeStamp-p.t<j&&Math.hypot(i2.x-p.x,i2.y-p.y)<At?(this.lastTap=null,this.zoomIn(i2)):this.lastTap={x:i2.x,y:i2.y,t:t2.timeStamp};return}this.options.clickToZoom&&this.options.navigable?t2.shiftKey?this.target.zoomBy(1/O,i2,true):this.zoomIn(i2):(u=(l=this.target).tap)==null||u.call(l,i2);return}if(!this.options.navigable)return;const o=this.samples[0],n=this.samples[this.samples.length-1],a=((n==null?void 0:n.t)??0)-((o==null?void 0:o.t)??0);if(o&&n&&a>0&&t2.timeStamp-n.t<50){const p=(n.x-o.x)/a*1e3,w=(n.y-o.y)/a*1e3;Math.hypot(p,w)>Kt&&this.target.flick(p,w)}});h(this,"onDoubleClick",t2=>{this.options.navigable&&(this.options.clickToZoom||!this.options.dblClickToZoom||J(this.lastPointerType,this.penHovers)||Q(t2.target,this.element)||(t2.shiftKey?this.target.zoomBy(1/O,this.local(t2),true):this.zoomIn(this.local(t2))))});h(this,"onWheel",t2=>{const e2=t2.ctrlKey;if(!this.options.navigable||!e2&&!this.options.scrollToZoom||!e2&&Pt(t2.target,this.element,t2.deltaY))return;t2.preventDefault();const i2=$t(t2),s=e2?Vt:qt;this.target.zoomBy(Math.exp(-i2*s),this.local(t2),!e2)});h(this,"onKeyDown",t2=>{if(t2.target!==this.element||!this.options.navigable||t2.altKey||t2.metaKey||t2.ctrlKey)return;const e2=this.element.getBoundingClientRect(),i2=e2.width*rt*(t2.shiftKey?3:1),s=e2.height*rt*(t2.shiftKey?3:1);switch(t2.key){case"ArrowLeft":this.target.panBy(i2,0,true);break;case"ArrowRight":this.target.panBy(-i2,0,true);break;case"ArrowUp":this.target.panBy(0,s,true);break;case"ArrowDown":this.target.panBy(0,-s,true);break;case"+":case"=":this.target.zoomBy(st,void 0,true);break;case"-":case"_":this.target.zoomBy(1/st,void 0,true);break;case"0":this.target.home();break;case"r":this.target.rotateBy(90);break;case"R":this.target.rotateBy(-90);break;default:return}t2.preventDefault()});this.element=t,this.target=e,this.options=i,t.addEventListener("pointerdown",this.onPointerDown),t.addEventListener("pointermove",this.onPointerMove),t.addEventListener("pointerup",this.onPointerUp),t.addEventListener("pointercancel",this.onPointerUp),t.addEventListener("dblclick",this.onDoubleClick),t.addEventListener("wheel",this.onWheel,{passive:false}),t.addEventListener("keydown",this.onKeyDown)}setOptions(t){this.options=t}dispose(){const t=this.element;t.removeEventListener("pointerdown",this.onPointerDown),t.removeEventListener("pointermove",this.onPointerMove),t.removeEventListener("pointerup",this.onPointerUp),t.removeEventListener("pointercancel",this.onPointerUp),t.removeEventListener("dblclick",this.onDoubleClick),t.removeEventListener("wheel",this.onWheel),t.removeEventListener("keydown",this.onKeyDown)}local(t){const e=this.element.getBoundingClientRect();return{x:t.clientX-e.left,y:t.clientY-e.top}}zoomIn(t){var e,i;(i=(e=this.target).atMaxZoom)!=null&&i.call(e)?this.target.home():this.target.zoomBy(O,t,true)}pinchState(){const[t,e]=[...this.pointers.values()];return{distance:Math.hypot(e.x-t.x,e.y-t.y),mid:{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}}}function $t(r){return r.deltaMode===1?r.deltaY*16:r.deltaMode===2?r.deltaY*400:r.deltaY}class lt extends Error{constructor(t,e,i){super(t),this.url=e,this.status=i,this.name="ImageLoadError"}}const ot=new Set;async function Qt(r,t={}){const{signal:e,maxTextureSize:i,request:s}=t,o=St(s),n=Jt(r);if(typeof createImageBitmap!="function"||typeof fetch!="function")return C(r,{signal:e,cors:true,withCredentials:o});if(n&&ot.has(n))return C(r,{signal:e,cors:false,withCredentials:o});let a;try{a=await Rt(s,r,{mode:"cors",signal:e})}catch(l){if(te(l,e))throw l;const u=await C(r,{signal:e,cors:false,withCredentials:o});return n&&ot.add(n),u}if(!a.ok)throw new lt(`Image request failed with ${a.status}`,r,a.status);const d=await a.blob();let c=await jt(d);const m=c.width,f=c.height;if(i&&(c.width>i||c.height>i)){const l=i/Math.max(c.width,c.height),u=await createImageBitmap(c,{resizeWidth:Math.max(1,Math.floor(c.width*l)),resizeHeight:Math.max(1,Math.floor(c.height*l)),resizeQuality:"high"});c.close(),c=u}if(e!=null&&e.aborted)throw c.close(),H();return{kind:"bitmap",source:c,width:c.width,height:c.height,naturalWidth:m,naturalHeight:f,opaque:false}}async function jt(r){const t={imageOrientation:"from-image",premultiplyAlpha:"premultiply",colorSpaceConversion:"default"};try{return await createImageBitmap(r,t)}catch(e){if(e instanceof TypeError)return createImageBitmap(r);throw e}}function C(r,{signal:t,cors:e,withCredentials:i}){return new Promise((s,o)=>{if(t!=null&&t.aborted){o(H());return}const n=new Image;n.decoding="async",e&&(n.crossOrigin=i?"use-credentials":"anonymous");const a=()=>{n.onload=null,n.onerror=null,t==null||t.removeEventListener("abort",d)},d=()=>{a(),n.src="",o(H())};t==null||t.addEventListener("abort",d),n.onload=()=>{a();const c=()=>s({kind:"element",source:n,width:n.naturalWidth,height:n.naturalHeight,naturalWidth:n.naturalWidth,naturalHeight:n.naturalHeight,opaque:!e});typeof n.decode=="function"?n.decode().then(c,c):c()},n.onerror=()=>{a(),o(new lt("Image failed to load",r))},n.src=r})}function Jt(r){var t;try{return new URL(r,(t=globalThis.location)==null?void 0:t.href).origin}catch{return null}}function te(r,t){return!!(t!=null&&t.aborted)||typeof r=="object"&&r!==null&&r.name==="AbortError"}function H(){const r=new Error("Aborted");return r.name="AbortError",r}function nt(r){r.kind==="bitmap"&&r.source.close()}const ee=192*1024*1024,ie=6,se=2;class re{constructor(t){h(this,"entries",new Map);h(this,"inFlight",0);h(this,"frame",0);h(this,"bytes",0);h(this,"wanted",[]);h(this,"disposed",false);h(this,"budget");h(this,"maxInFlight");this.options=t,this.budget=t.byteBudget??ee,this.maxInFlight=t.maxInFlight??ie}get(t){const e=this.entries.get(t);if((e==null?void 0:e.state)==="ready")return e.lastUsed=this.frame,e.image}has(t){var e;return((e=this.entries.get(t))==null?void 0:e.state)==="ready"}failed(t){var e;return((e=this.entries.get(t))==null?void 0:e.state)==="failed"}get byteSize(){return this.bytes}get pending(){return this.inFlight}seed(t,e){var s;const i=this.entries.get(t);(i==null?void 0:i.state)!=="ready"&&((s=i==null?void 0:i.controller)==null||s.abort(),this.entries.set(t,{url:t,state:"ready",image:e,bytes:z(e),lastUsed:this.frame,attempts:0,pinned:false,waiters:(i==null?void 0:i.waiters)??[]}),this.bytes+=z(e),this.flushWaiters(t))}prefetch(t){return Promise.all(t.map(e=>new Promise(i=>{const s=this.entries.get(e.url);if(s&&s.state!=="loading")return i();if(s){s.waiters.push(i);return}this.start({...e,priority:-1},i)}))).then(()=>{})}update(t){if(this.disposed)return;this.frame++;const e=new Set(t.map(i=>i.url));this.wanted=[...t].sort((i,s)=>i.priority-s.priority);for(const i of this.entries.values())i.state==="loading"&&!i.pinned&&!e.has(i.url)&&i.controller&&(i.controller.abort(),this.entries.delete(i.url),this.inFlight--);for(const i of this.wanted){const s=this.entries.get(i.url);s&&(s.lastUsed=this.frame)}this.pump(),this.evict(e)}dispose(){var t;this.disposed=true;for(const e of this.entries.values())(t=e.controller)==null||t.abort(),this.flushWaiters(e.url);this.entries.clear(),this.bytes=0}forEachReady(t){for(const e of this.entries.values())e.state==="ready"&&e.image&&t(e.url,e.image)}pump(){for(const t of this.wanted){if(this.inFlight>=this.maxInFlight)break;this.entries.has(t.url)||this.start(t)}}start(t,e){const i=new AbortController,s={url:t.url,state:"loading",bytes:0,lastUsed:this.frame,attempts:0,controller:i,pinned:!!e,waiters:e?[e]:[]};this.entries.set(t.url,s),this.inFlight++,this.attempt(s,t,i,t.url)}attempt(t,e,i,s){t.attempts++,this.options.load(s,i.signal).then(o=>{if(this.disposed||this.entries.get(t.url)!==t){nt(o);return}t.state="ready",t.image=o,t.bytes=z(o),t.controller=void 0,t.pinned=false,this.bytes+=t.bytes,this.settle(t)},o=>{if(!(i.signal.aborted||this.disposed)&&this.entries.get(t.url)===t){if(t.attempts<se&&!oe(o,e)){this.attempt(t,e,i,e.fallbackUrl??e.url);return}t.state="failed",t.controller=void 0,t.pinned=false,this.settle(t)}})}settle(t){this.inFlight--,this.flushWaiters(t.url),this.options.onSettled(),this.pump()}flushWaiters(t){const e=this.entries.get(t);if(!e)return;const i=e.waiters;e.waiters=[],i.forEach(s=>s())}evict(t){if(this.bytes<=this.budget)return;const e=[...this.entries.values()].filter(i=>i.state==="ready"&&!t.has(i.url)).sort((i,s)=>i.lastUsed-s.lastUsed);for(const i of e){if(this.bytes<=this.budget)break;this.entries.delete(i.url),this.bytes-=i.bytes,i.image&&nt(i.image),this.options.onEvict(i.url)}}}function z(r){return r.width*r.height*4}function oe(r,t){if(t.fallbackUrl)return false;const e=r==null?void 0:r.status;return typeof e=="number"&&e>=400&&e<500&&e!==408&&e!==429}const ne=.1;class ae{constructor(t,e=s=>requestAnimationFrame(s),i=s=>cancelAnimationFrame(s)){h(this,"handle",0);h(this,"last",0);h(this,"disposed",false);h(this,"frame",t2=>{if(this.handle=0,this.disposed)return;const e2=this.last?Math.min((t2-this.last)/1e3,ne):1/60;this.last=t2,this.tick(e2,t2)?this.invalidate():this.last=0});this.tick=t,this.raf=e,this.caf=i}invalidate(){this.disposed||this.handle||(this.handle=this.raf(this.frame))}drawNow(){this.disposed||(this.handle&&this.caf(this.handle),this.frame(performance.now()))}dispose(){this.disposed=true,this.handle&&this.caf(this.handle),this.handle=0}}const he=2*1024*1024;function ce(r,t,e=he){const i=new Set;let s=e,o=false;return{get deferred(){return o},getTile(n){const a=r(n);if(!a||a.kind==="media"||a.opaque||i.has(n)||t(n))return a;const d=a.width*a.height*4;if(i.size>0&&d>s){o=true;return}return s-=d,i.add(n),a}}}function le(r,t,e){if(!r)return null;let i=r.trim().replace(/^xywh=/,""),s=false;i.startsWith("pct:")?(s=true,i=i.slice(4)):i.startsWith("pixel:")&&(i=i.slice(6));const o=i.split(",").map(Number);if(o.length!==4||o.some(p=>!Number.isFinite(p)))return null;let[n,a,d,c]=o;s&&(n=n/100*t,a=a/100*e,d=d/100*t,c=c/100*e);const m=Math.max(0,n),f=Math.max(0,a),l=Math.min(t,n+d),u=Math.min(e,a+c);return l<=m||u<=f?null:{x:m,y:f,width:l-m,height:u-f}}const U=512,de=16e6;function dt(r,t,e){return{width:t,height:e,levels:[{scaleFactor:1,width:t,height:e,tileWidth:t,tileHeight:e,cols:1,rows:1}],tile:s=>({...s,url:r,region:{x:0,y:0,width:t,height:e}})}}function ue(r){const{width:t,height:e}=r,i=[],s=r.regionByPx&&r.sizeByW,o=(l,u,p)=>{const w=Math.ceil(t/l),y=Math.ceil(e/l);return{scaleFactor:l,width:w,height:y,tileWidth:u,tileHeight:p,cols:Math.ceil(w/u),rows:Math.ceil(y/p)}},n=(l,u)=>({scaleFactor:t/l,width:l,height:u,tileWidth:l,tileHeight:u,cols:1,rows:1,whole:true}),a=r.tiles[0];if(a)for(const l of a.scaleFactors)i.push(o(l,a.width,a.height));else if(s)for(let l=1;;l*=2){const u=o(l,U,U);if(i.push(u),u.cols===1&&u.rows===1)break}const d=Math.max(0,...i.map(l=>l.scaleFactor));for(const l of r.sizes){const u=t/l.width;me(r,l.width,l.height)&&u>d+1e-9&&i.push(n(l.width,l.height))}const c=i.reduce((l,u)=>!l||u.scaleFactor>l.scaleFactor?u:l,null);if(c&&c.cols*c.rows>1&&r.sizeByW){const l=Math.max(t,e)/U;i.push(n(Math.ceil(t/l),Math.ceil(e/l)))}(!i.length||!a&&!s&&t*e<=de)&&(i.some(l=>l.scaleFactor===1)||i.push(n(t,e)));const m=fe(i).sort((l,u)=>u.scaleFactor-l.scaleFactor),f=Bt(r);return{width:t,height:e,levels:m,tile(l){const u=m[l.level],p=u.scaleFactor,w=u.cols===1&&u.rows===1;let y,v,b;if(w)y={x:0,y:0,width:t,height:e},v=u.width,b=u.height;else{const _=Math.round(l.col*u.tileWidth*p),E=Math.round(l.row*u.tileHeight*p);y={x:_,y:E,width:Math.min(Math.round(u.tileWidth*p),t-_),height:Math.min(Math.round(u.tileHeight*p),e-E)},v=Math.ceil(y.width/p),b=Math.ceil(y.height/p)}return{...l,region:y,url:tt(r,y,v,b),fallbackUrl:f?tt(r,y,v,b,f):void 0}}}}function me(r,t,e){return!(r.maxWidth&&t>r.maxWidth||r.maxHeight&&e>r.maxHeight||r.maxArea&&t*e>r.maxArea)}function fe(r){const t=new Map;for(const e of r){const i=`${e.width}x${e.height}`,s=t.get(i);(!s||s.cols*s.rows<e.cols*e.rows)&&t.set(i,e)}return[...t.values()]}function pe(r,t){const e=r.levels;for(let i=0;i<e.length;i++)if(e[i].scaleFactor<=t*(1+1e-6))return i;return e.length-1}function T(r,t,e){const i=r.levels[t],s=i.tileWidth*i.scaleFactor,o=i.tileHeight*i.scaleFactor,n=Math.max(0,e.x),a=Math.max(0,e.y),d=Math.min(r.width,e.x+e.width),c=Math.min(r.height,e.y+e.height);if(d<=n||c<=a)return[];const m=Math.max(0,Math.floor(n/s)),f=Math.min(i.cols-1,Math.floor((d-1e-9)/s)),l=Math.max(0,Math.floor(a/o)),u=Math.min(i.rows-1,Math.floor((c-1e-9)/o)),p=[];for(let w=l;w<=u;w++)for(let y=m;y<=f;y++)p.push({level:t,col:y,row:w});return p}async function ge(r,t){if(r.media)return we(r,r.media);let e=null,i=null;if(r.service)try{e=ue(await Ot(r.service,t.infoOptions))}catch(m){i=m}if(!e){if(!r.url)throw i??new Error("Image has no source");const m=await t.loadStatic(r.url);t.cache.seed(r.url,m),e=dt(r.url,m.naturalWidth,m.naturalHeight)}const s=r.width&&r.height&&r.width>0&&r.height>0?{width:r.width,height:r.height}:{width:e.width,height:e.height},o=le(r.region,s.width,s.height)??{x:0,y:0,width:s.width,height:s.height},n=e.width/s.width,a=e.height/s.height,d={x:o.x*n,y:o.y*a,width:o.width*n,height:o.height*a},c={id:r.id,spec:r,pyramid:e,size:s,clip:d,contentClip:o,rect:{x:0,y:0,width:o.width,height:o.height}};return await t.cache.prefetch(T(e,0,d).map(m=>{const f=e.tile(m);return{url:f.url,fallbackUrl:f.fallbackUrl}})),c}const ut="media:";function we(r,t){var a,d;const e=r.width||((a=r.placement)==null?void 0:a.width)||t.element.videoWidth||1600,i=r.height||((d=r.placement)==null?void 0:d.height)||t.element.videoHeight||900,s=`${ut}${r.id}`,o={width:e,height:i},n={x:0,y:0,width:e,height:i};return{id:r.id,spec:r,pyramid:dt(s,e,i),media:{kind:"media",source:t.element,width:e,height:i,naturalWidth:e,naturalHeight:i},size:o,clip:n,contentClip:n,rect:{...n}}}function ye(r){if(!r.length)return null;if(r.every(i=>i.spec.placement)){for(const i of r)i.rect={...i.spec.placement};return ct(r.map(i=>i.rect))}const t=r[0].contentClip.height;let e=0;for(const i of r){const s=i.contentClip.width*t/i.contentClip.height;i.rect={x:e,y:0,width:s,height:t},e+=s}return{x:0,y:0,width:e,height:t}}function G(r){return{x:r.rect.width/r.clip.width,y:r.rect.height/r.clip.height}}function xe(r,t){var e,i;return r.service===t.service&&r.url===t.url&&r.width===t.width&&r.height===t.height&&r.region===t.region&&((e=r.media)==null?void 0:e.element)===((i=t.media)==null?void 0:i.element)&&JSON.stringify(r.placement)===JSON.stringify(t.placement)}const ve=1e7,be=15e6,Te=2e7,Ee=2;function Me(r){const{items:t,camera:e,viewport:i,pixelRatio:s,getTile:o,destination:n}=r,a=Mt(e,i),d=[],c=[],m=[],f=(l,u,p)=>{const w=l.tile(u);c.push({url:w.url,fallbackUrl:w.fallbackUrl,priority:p})};for(const l of t){const{pyramid:u,clip:p,rect:w}=l,y=G(l);if(r.wantOverview)for(const g of T(u,0,p))f(u,g,Te);const v=at(l,e,i,s),b=n?at(l,n,i,s):v;if(m.push((v==null?void 0:v.target)??-1),!v&&!b)continue;const _=g=>x=>{const L=u.tile(x).region;return Math.hypot(L.x+L.width/2-g.x,L.y+L.height/2-g.y)};if(b){const g=_(b.center);for(const x of T(u,0,b.area))f(u,x,g(x)/1e3);if(b.target>0)for(const x of T(u,b.target,b.area))f(u,x,ve+g(x))}if(!v)continue;const{area:E,target:M}=v,X=_(v.center),R=T(u,0,E),Z=M===0?[]:T(u,M,E);if(b!==v){for(const x of R)f(u,x,X(x)/1e3);const g=M-Ee;if(g>0)for(const x of T(u,g,E))f(u,x,be+X(x))}if(l.spec.hidden)continue;const ft=(M===0?R:Z).every(g=>o(u.tile(g).url)!==void 0)?[M]:Array.from({length:M+1},(g,x)=>x),pt=P(a,I(w.x,w.y),S(y.x,y.y),I(-p.x,-p.y));for(const g of ft){const x=g===0?R:g===M?Z:T(u,g,E),L=u.levels[g].cols*u.levels[g].rows>1;for(const gt of x){const B=u.tile(gt),K=o(B.url);if(!K)continue;const q=Le(l,B.region,K,pt,L);q&&d.push({...q,url:B.url})}}}return c.sort((l,u)=>l.priority-u.priority),{draws:d,wants:_e(c),levels:m}}function at(r,t,e,i){const{pyramid:s,clip:o,rect:n}=r,a=D(t,e);if(!bt(a,n))return null;const d=G(r),c=Math.max(a.x,n.x),m=Math.max(a.y,n.y),f=Math.min(a.x+a.width,n.x+n.width),l=Math.min(a.y+a.height,n.y+n.height),u=1/(d.x*t.zoom*i);return{area:{x:o.x+(c-n.x)/d.x,y:o.y+(m-n.y)/d.y,width:(f-c)/d.x,height:(l-m)/d.y},center:{x:o.x+(t.x-n.x)/d.x,y:o.y+(t.y-n.y)/d.y},target:pe(s,u)}}function Le(r,t,e,i,s){const{clip:o}=r,n=Math.max(t.x,o.x),a=Math.max(t.y,o.y),d=Math.min(t.x+t.width,o.x+o.width),c=Math.min(t.y+t.height,o.y+o.height);if(d<=n||c<=a)return null;const m=e.width/t.width,f=e.height/t.height,l=1e-6;return{item:r,image:e,transform:P(i,I(t.x,t.y),S(1/m,1/f)),crop:{x:(n-t.x)*m,y:(a-t.y)*f,width:(d-n)*m,height:(c-a)*f},bleed:{right:s&&d<o.x+o.width-l,bottom:s&&c<o.y+o.height-l}}}function _e(r){const t=new Set;return r.filter(e=>t.has(e.url)?false:(t.add(e.url),true))}const ke={maxZoomPixelRatio:1.1,minZoomImageRatio:.9,animationTime:.09,request:void 0,byteBudget:192*1024*1024,maxInFlight:6,releaseAfterMs:2e3},Ie=2,Ae=3,Pe=.1,Se=1e-6,mt={top:0,right:0,bottom:0,left:0};function Re(r){if(typeof getComputedStyle!="function")return mt;const t=getComputedStyle(r),e=i=>parseFloat(i)||0;return{top:e(t.paddingTop),right:e(t.paddingRight),bottom:e(t.paddingBottom),left:e(t.paddingLeft)}}const Be=(r,t)=>r.top===t.top&&r.right===t.right&&r.bottom===t.bottom&&r.left===t.left;let Oe;class Ce{constructor(t,e={}){h(this,"host");h(this,"overlays",null);h(this,"options");h(this,"backend",null);h(this,"backendPreference");h(this,"contextLosses",0);h(this,"holder",{hiddenSince:null,release:()=>this.giveBack()});h(this,"visible",true);h(this,"dom",null);h(this,"domAsked",false);h(this,"pending",null);h(this,"camera");h(this,"loop");h(this,"gestures");h(this,"gestureOptions",{});h(this,"cache");h(this,"navigator",null);h(this,"navigatorAsked",0);h(this,"viewport",{width:1,height:1});h(this,"inset",mt);h(this,"pixelRatio",1);h(this,"items",[]);h(this,"worldBounds",null);h(this,"contentVersion",0);h(this,"opaqueUrls",new Set);h(this,"mediaByKey",new Map);h(this,"detachMedia",[]);h(this,"opened",false);h(this,"atHome",true);h(this,"lastEmitted",null);h(this,"generation",0);h(this,"listeners",new Map);h(this,"resizeObserver",null);h(this,"intersectionObserver",null);h(this,"releaseTimer",null);h(this,"dprQuery",null);h(this,"disposed",false);h(this,"dismisser",null);h(this,"tick",t2=>{var a,d;if(this.disposed)return false;const e2=this.camera.step(t2,this.viewport),i=this.camera.current,s=this.backend,o=ce(this.getTile,c=>s?s.has(c):true),n=Me({items:this.items,camera:i,viewport:this.viewport,pixelRatio:this.pixelRatio,getTile:o.getTile,wantOverview:!!this.navigator,destination:e2?this.camera.destination:void 0});return this.cache.update(n.wants.filter(c=>!c.url.startsWith(ut))),this.paint(n.draws),(a=this.overlays)==null||a.position(i,this.viewport),(d=this.navigator)==null||d.render(this.items.filter(c=>!c.spec.hidden),this.worldBounds,D(i,this.viewport),this.pixelRatio,this.getTile,this.contentVersion),(!this.lastEmitted||!_t(this.lastEmitted,i))&&(this.lastEmitted={...i},this.opened&&this.emit("viewport")),e2||o.deferred});h(this,"getTile",t2=>this.mediaByKey.get(t2)??this.cache.get(t2));h(this,"onContextLost",()=>{this.contextLosses+=1,this.releaseBackend(),this.visible?this.acquireBackend(false):this.host.dataset.backend="released"});h(this,"onPixelRatioChange",()=>{this.measure(),this.watchPixelRatio()});this.host=t,this.backendPreference=e.backend??"auto",this.options={...ke,...W(e)},Ue()&&(this.options.animationTime=0),this.camera=new Xt({x:0,y:0,zoom:1,rotation:0},this.options.animationTime),this.loop=new ae(this.tick),this.gestureOptions=W(e.gestures??{}),this.gestures=new Yt(t,this,{...N,...this.gestureOptions}),this.cache=new re({load:(i,s)=>this.loadTile(i,s),onSettled:()=>{this.contentVersion++,this.invalidate()},onEvict:i=>{var s;return(s=this.backend)==null?void 0:s.release(i)},byteBudget:this.options.byteBudget,maxInFlight:this.options.maxInFlight}),this.visible=ze(t),this.visible?this.acquireBackend():this.holder.hiddenSince=ht(),this.measure(),this.observe()}get backendKind(){var t;return((t=this.backend)==null?void 0:t.kind)??"none"}get isOpen(){return this.opened}get isAtHome(){return this.atHome}on(t,e){let i=this.listeners.get(t);return i||(i=new Set,this.listeners.set(t,i)),i.add(e),()=>i==null?void 0:i.delete(e)}async setImages(t,{world:e,fit:i=false}={}){const s=++this.generation,o=new Map(this.items.map(m=>[m.id,m])),n=await Promise.allSettled(t.map(m=>{const f=o.get(m.id);return f&&xe(f.spec,m)?(f.spec=m,Promise.resolve(f)):ge(m,{cache:this.cache,loadStatic:l=>this.loadTile(l),infoOptions:{request:this.options.request}})}));if(s!==this.generation||this.disposed)return;const a=n.filter(m=>m.status==="fulfilled").map(m=>m.value),d=n.filter(m=>m.status==="rejected").map(m=>m.reason);this.items=a,this.watchMedia(a);const c=ye(a);if(this.worldBounds=e?c?ct([e,c]):e:c,this.contentVersion++,d.length&&this.emit("error",d),!this.worldBounds){this.invalidate();return}this.opened?i?(this.home(true),this.emit("change")):(this.camera.set(this.constrain(this.camera.current)),this.emit("change")):(this.opened=true,this.home(true),this.emit("open")),this.invalidate()}clear(){this.generation++,this.items=[],this.watchMedia([]),this.worldBounds=null,this.contentVersion++,this.invalidate()}setHidden(t){const e=new Set(t);let i=false;for(const s of this.items){const o=e.has(s.id);!!s.spec.hidden!==o&&(s.spec={...s.spec,hidden:o},i=true)}i&&this.invalidate()}isReady(t){const e=this.items.find(s=>s.id===t);if(!e)return false;if(e.spec.media)return true;const i=e.pyramid.levels[0];if(!i)return false;for(let s=0;s<i.rows;s++)for(let o=0;o<i.cols;o++)if(!this.getTile(e.pyramid.tile({level:0,col:o,row:s}).url))return false;return true}fitBounds(t,e=false){const i=Y(t,this.viewport,this.camera.destination.rotation,0);this.atHome=false,this.animateTo(this.constrain(i,{allowBeyondLimits:true}),e)}fitItemRect(t,e,i=false){const s=this.itemRectToWorld(t,e);s&&this.fitAnnotation(s,i)}fitAnnotation(t,e=false){const i=this.items[0];if(!i)return;const s=i.rect.width*Pe;this.fitBounds({x:t.x-s,y:t.y-s,width:t.width+s*2,height:t.height+s*2},e)}getBounds(){return D(this.camera.current,this.viewport)}getHomeBounds(){return this.worldBounds?{...this.worldBounds}:null}getCamera(){return{...this.camera.current}}getZoomLimits(){var i;const t=((i=this.homeCamera())==null?void 0:i.zoom)??1,e=this.items.length?Math.min(...this.items.map(s=>G(s).x)):1;return{home:t,min:t*this.options.minZoomImageRatio,max:Math.max(t,this.options.maxZoomPixelRatio/e)}}home(t=false){const e=this.homeCamera();e&&(this.atHome=true,this.animateTo(e,t))}atMaxZoom(){return this.camera.destination.zoom>=this.getZoomLimits().max*(1-Se)}zoomBy(t,e,i=true){const s=i?this.camera.destination:this.camera.current,o=e??{x:this.viewport.width/2,y:this.viewport.height/2},n=$(s,this.viewport,o),{min:a,max:d}=this.getZoomLimits(),c=k(s.zoom*t,a,d),m=F(n,o,c,s.rotation,this.viewport),f=this.constrain({...s,...m,zoom:c});this.atHome=false,i?this.camera.animateTo({state:f,anchor:{world:n,screen:o}},this.viewport):this.camera.set(f),this.invalidate()}panBy(t,e,i=false){const s=i?this.camera.destination:this.camera.current,o=Tt(P(S(1/s.zoom),Et(-s.rotation)),{x:t,y:e}),n=this.constrain({...s,x:s.x-o.x,y:s.y-o.y});this.atHome=false,i?this.camera.animateTo({state:n},this.viewport):this.camera.set(n),this.invalidate()}panTo(t,e=false){const i=e?this.camera.current:this.camera.destination;this.atHome=false,this.animateTo(this.constrain({...i,...t}),e)}flick(t,e){this.panBy(t*.25,e*.25,true)}rotateBy(t){const e=this.camera.destination;this.setRotation(e.rotation*180/Math.PI+t)}setRotation(t,e=false){const i=this.camera.destination,s=t*Math.PI/180;this.animateTo(this.constrain({...i,rotation:s}),e)}getRotation(){return this.camera.destination.rotation*180/Math.PI}tap(t){this.emit("tap",t)}setDismiss(t){this.dismisser=t}dismiss(){var t;return((t=this.dismisser)==null?void 0:t.call(this))??false}setGestures(t){this.gestures.setOptions({...N,...this.gestureOptions,...W(t)})}setInteracting(t){t&&this.camera.stop()}worldToScreenPoint(t){return Lt(this.camera.current,this.viewport,t)}screenToWorldPoint(t){return $(this.camera.current,this.viewport,t)}itemRectToWorld(t,e){const i=this.items[t];if(!i)return null;const{contentClip:s}=i,o=i.rect.width/s.width,n=i.rect.height/s.height;return{x:i.rect.x+(e.x-s.x)*o,y:i.rect.y+(e.y-s.y)*n,width:e.width*o,height:e.height*n}}attachNavigator(t){var o;(o=this.navigator)==null||o.dispose(),this.navigator=null;const e=++this.navigatorAsked;let i=null,s=false;return import("./Navigator-CIJFA3q1.mjs").then(n=>{s||this.disposed||e!==this.navigatorAsked||(i=new n.Navigator(t,(a,d)=>this.panTo(a,d)),this.navigator=i,this.invalidate())}),()=>{s=true,i==null||i.dispose(),i&&this.navigator===i&&(this.navigator=null)}}invalidate(){this.loop.invalidate()}dispose(){var t,e,i,s,o,n,a;this.disposed||(this.disposed=true,this.generation++,this.loop.dispose(),this.gestures.dispose(),(t=this.resizeObserver)==null||t.disconnect(),(e=this.intersectionObserver)==null||e.disconnect(),(s=(i=this.dprQuery)==null?void 0:i.removeEventListener)==null||s.call(i,"change",this.onPixelRatioChange),this.releaseTimer&&clearTimeout(this.releaseTimer),(o=this.navigator)==null||o.dispose(),this.navigator=null,this.releaseBackend(),this.cache.dispose(),(n=this.dom)==null||n.dispose(),(a=this.overlays)==null||a.dispose(),this.items=[],this.detachMedia.forEach(d=>d()),this.mediaByKey.clear(),this.listeners.clear(),delete this.host.dataset.backend)}watchMedia(t){this.detachMedia.forEach(e=>e()),this.detachMedia=[],this.mediaByKey.clear();for(const e of t){if(!e.media||e.media.kind!=="media")continue;const i=e.pyramid.tile({level:0,col:0,row:0}).url;this.mediaByKey.set(i,e.media);const s=e.media.source,o=()=>this.invalidate(),n=["play","seeked","loadeddata","resize"];n.forEach(a=>s.addEventListener(a,o)),this.detachMedia.push(()=>n.forEach(a=>s.removeEventListener(a,o)))}}paint(t){const e=this.backend,i=[],s=(e==null?void 0:e.kind)==="webgl2";e==null||e.begin();for(const o of t){const{image:n}=o;if(!(n.kind==="media"||n.kind==="element"&&s&&(n.opaque||this.opaqueUrls.has(o.url)))&&e){if(e.draw({key:o.url,source:n.source,width:n.width,height:n.height,transform:o.transform,crop:o.crop,opacity:1,bleed:o.bleed})!=="tainted"||n.kind==="bitmap")continue;this.opaqueUrls.add(o.url)}(n.kind==="element"||n.kind==="media")&&i.push({key:`${o.item.id}|${o.url}`,element:n.source,width:n.width,height:n.height,transform:o.transform,crop:o.crop,opacity:1})}e==null||e.end(),this.dom?this.dom.sync(i):i.length&&!this.domAsked&&(this.domAsked=true,import("./DomLayers-BsR2AOy-.mjs").then(({DomLayers:o})=>{if(this.disposed)return;const n=new o(this.host);this.overlays&&this.host.insertBefore(n.container,this.overlays.container),this.dom=n,this.invalidate()}))}loadTile(t,e){return Qt(t,{signal:e,request:this.options.request,maxTextureSize:this.backend instanceof A?this.backend.maxTextureSize:void 0})}animateTo(t,e){this.camera.animateTo({state:t},this.viewport,e),this.invalidate()}homeCamera(){if(!this.worldBounds)return null;const t=2*Math.PI,e=Math.round(this.camera.destination.rotation/t)*t||0,{top:i,right:s,bottom:o,left:n}=this.inset,a=Y(this.worldBounds,{width:Math.max(1,this.viewport.width-n-s),height:Math.max(1,this.viewport.height-i-o)},e);return a.x-=(n-s)/2/a.zoom,a.y-=(i-o)/2/a.zoom,a}constrain(t,{allowBeyondLimits:e=false}={}){const i=this.worldBounds;if(!i)return t;const{min:s,max:o}=this.getZoomLimits(),n=e?k(t.zoom,s,Math.max(o,t.zoom)):k(t.zoom,s,o);return{...t,zoom:n,x:k(t.x,i.x,i.x+i.width),y:k(t.y,i.y,i.y+i.height)}}acquireBackend(t=true){var o,n;if(this.backend||this.pending||this.disposed)return;const e=document.createElement("canvas");e.className="clover-canvas-surface",e.setAttribute("aria-hidden","true"),Object.assign(e.style,{position:"absolute",inset:"0",width:"100%",height:"100%",display:"block",pointerEvents:"none"}),this.host.insertBefore(e,((o=this.dom)==null?void 0:o.container)??((n=this.overlays)==null?void 0:n.container)??null);const i=t&&(this.backendPreference==="webgl2"||this.backendPreference==="auto"&&this.contextLosses<Ae);let s=null;i&&(xt(this.holder)||this.backendPreference==="webgl2")&&(s=A.create(e,{onLost:this.onContextLost}),s||V(this.holder)),s?this.install(s):this.backendPreference==="webgl2"?this.none(e):(this.pending=e,(Oe??(Oe=import("./Canvas2DBackend-RRN2bEkc.mjs"))).then(({Canvas2DBackend:a})=>{if(this.pending!==e)return;this.pending=null;const d=a.create(e);d?this.install(d):this.none(e)}))}none(t){t.remove(),this.host.dataset.backend="none"}install(t){this.backend=t,this.host.dataset.backend=t.kind,t.resize(this.viewport.width,this.viewport.height,this.pixelRatio),t.kind==="canvas2d"&&this.opaqueUrls.clear(),this.emit("backend",t.kind),this.invalidate()}releaseBackend(){var e;if(V(this.holder),(e=this.pending)==null||e.remove(),this.pending=null,!this.backend)return;const t=this.backend.canvas;this.backend.dispose(),t.remove(),this.backend=null}giveBack(){this.releaseTimer&&clearTimeout(this.releaseTimer),this.releaseTimer=null,this.releaseBackend(),this.host.dataset.backend="released"}observe(){typeof ResizeObserver<"u"&&(this.resizeObserver=new ResizeObserver(()=>this.measure(true)),this.resizeObserver.observe(this.host)),typeof IntersectionObserver<"u"&&(this.intersectionObserver=new IntersectionObserver(t=>{const e=t.some(i=>i.isIntersecting);this.setVisible(e)}),this.intersectionObserver.observe(this.host)),this.watchPixelRatio()}setVisible(t){var e;if(this.visible=t,t){this.holder.hiddenSince=null,this.releaseTimer&&clearTimeout(this.releaseTimer),this.releaseTimer=null,this.backend||this.acquireBackend();return}(e=this.holder).hiddenSince??(e.hiddenSince=ht()),!(!this.backend||this.releaseTimer)&&(this.releaseTimer=setTimeout(()=>this.giveBack(),this.options.releaseAfterMs))}measure(t=false){var d;const e=this.host.getBoundingClientRect(),i=Math.max(1,e.width),s=Math.max(1,e.height),o=Re(this.host),n=Math.min(typeof window<"u"&&window.devicePixelRatio||1,Ie);if(i===this.viewport.width&&s===this.viewport.height&&n===this.pixelRatio&&Be(o,this.inset))return;const a=this.viewport;if(this.viewport={width:i,height:s},this.inset=o,this.pixelRatio=n,(d=this.backend)==null||d.resize(i,s,n),this.opened)if(this.atHome)this.home(true);else{const c=this.camera.current,m=i/Math.max(a.width,1);this.camera.set(this.constrain({...c,zoom:c.zoom*m}))}t?this.loop.drawNow():this.invalidate()}watchPixelRatio(){var t,e,i,s;typeof window>"u"||typeof window.matchMedia!="function"||((e=(t=this.dprQuery)==null?void 0:t.removeEventListener)==null||e.call(t,"change",this.onPixelRatioChange),this.dprQuery=window.matchMedia(`(resolution: ${window.devicePixelRatio||1}dppx)`),(s=(i=this.dprQuery).addEventListener)==null||s.call(i,"change",this.onPixelRatioChange))}emit(t,e){var i;(i=this.listeners.get(t))==null||i.forEach(s=>s(e))}}const ht=()=>typeof performance<"u"?performance.now():Date.now();function ze(r){if(typeof IntersectionObserver>"u"||typeof window>"u")return true;const{top:t,left:e,width:i,height:s}=r.getBoundingClientRect();return t+s>=0&&e+i>=0&&t<=window.innerHeight&&e<=window.innerWidth}function Ue(){return typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}function W(r){return Object.fromEntries(Object.entries(r).filter(([,t])=>t!==void 0))}const qe=(r,t)=>new Ce(r,t);export{zt as b,Ct as h,Me as p,qe as r};
@@ -1,3 +0,0 @@
1
- /*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */function rn(r,a){(a==null||a>r.length)&&(a=r.length);for(var s=0,c=Array(a);s<a;s++)c[s]=r[s];return c}function po(r){if(Array.isArray(r))return r}function mo(r,a){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c,f,d,E,$=[],C=true,Dt=false;try{if(d=(s=s.call(r)).next,a!==0)for(;!(C=(c=d.call(s)).done)&&($.push(c.value),$.length!==a);C=true);}catch(et){Dt=true,f=et}finally{try{if(!C&&s.return!=null&&(E=s.return(),Object(E)!==E))return}finally{if(Dt)throw f}}return $}}function _o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */function To(r,a){return po(r)||mo(r,a)||ho(r,a)||_o()}function ho(r,a){if(r){if(typeof r=="string")return rn(r,a);var s={}.toString.call(r).slice(8,-1);return s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set"?Array.from(r):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?rn(r,a):void 0}}const Sn=Object.entries,an=Object.setPrototypeOf,go=Object.isFrozen,yn=Object.getPrototypeOf,bn=Object.getOwnPropertyDescriptor;let b=Object.freeze,R=Object.seal,pt=Object.create,On=typeof Reflect<"u"&&Reflect,ye=On.apply,be=On.construct;b||(b=function(a){return a});R||(R=function(a){return a});ye||(ye=function(a,s){for(var c=arguments.length,f=new Array(c>2?c-2:0),d=2;d<c;d++)f[d-2]=arguments[d];return a.apply(s,f)});be||(be=function(a){for(var s=arguments.length,c=new Array(s>1?s-1:0),f=1;f<s;f++)c[f-1]=arguments[f];return new a(...c)});const W=g(Array.prototype.forEach),Ao=g(Array.prototype.lastIndexOf),sn=g(Array.prototype.pop),St=g(Array.prototype.push),Eo=g(Array.prototype.slice),So=g(Array.prototype.splice),mt=Array.isArray,me=Rn(Set),de=g(Set.prototype.add),yt=g(Set.prototype.has),tt=g(String.prototype.toLowerCase),_e=g(String.prototype.toString),ln=g(String.prototype.match),bt=g(String.prototype.replace),cn=g(String.prototype.indexOf),yo=g(String.prototype.trim),bo=g(Number.prototype.toString),Oo=g(Boolean.prototype.toString),un=typeof BigInt>"u"?null:g(BigInt.prototype.toString),fn=typeof Symbol>"u"?null:g(Symbol.prototype.toString),N=g(Object.prototype.hasOwnProperty),Ot=g(Object.prototype.toString),O=g(RegExp.prototype.test),G=Rn(TypeError);function g(r){return function(a){a instanceof RegExp&&(a.lastIndex=0);for(var s=arguments.length,c=new Array(s>1?s-1:0),f=1;f<s;f++)c[f-1]=arguments[f];return ye(r,a,c)}}function Rn(r){return function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return be(r,s)}}function m(r,a){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:tt;if(an&&an(r,null),!mt(a))return r;let c=a.length;for(;c--;){let f=a[c];if(typeof f=="string"){const d=s(f);d!==f&&(go(a)||(a[c]=d),f=d)}r[f]=true}return r}function Ro(r){for(let a=0;a<r.length;a++)N(r,a)||(r[a]=null);return r}function M(r){const a=pt(null);for(const c of Sn(r)){var s=To(c,2);const f=s[0],d=s[1];N(r,f)&&(mt(d)?a[f]=Ro(d):d&&typeof d=="object"&&d.constructor===Object?a[f]=M(d):a[f]=d)}return a}function Do(r){switch(typeof r){case"string":return r;case"number":return bo(r);case"boolean":return Oo(r);case"bigint":return un?un(r):"0";case"symbol":return fn?fn(r):"Symbol()";case"undefined":return Ot(r);case"function":case"object":{if(r===null)return Ot(r);const a=r,s=v(a,"toString");if(typeof s=="function"){const c=s(a);return typeof c=="string"?c:Ot(c)}return Ot(r)}default:return Ot(r)}}function v(r,a){for(;r!==null;){const c=bn(r,a);if(c){if(c.get)return g(c.get);if(typeof c.value=="function")return g(c.value)}r=yn(r)}function s(){return null}return s}function Lo(r,a){for(;r!==null;){const s=bn(r,a);if(s)return s.get?g(s.get):null;r=yn(r)}return null}function wo(r){try{return O(r,""),true}catch{return false}}const pn=b(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Te=b(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),he=b(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Io=b(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ge=b(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),No=b(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),mn=b(["#text"]),dn=b(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Ae=b(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),_n=b(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),zt=b(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Co=R(/{{[\w\W]*|^[\w\W]*}}/g),Mo=R(/<%[\w\W]*|^[\w\W]*%>/g),Po=R(/\${[\w\W]*/g),vo=R(/^data-[\-\w.\u00B7-\uFFFF]+$/),xo=R(/^aria-[\-\w]+$/),Tn=R(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ko=R(/^(?:\w+script|data):/i),Uo=R(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),zo=R(/^html$/i),Fo=R(/^[a-z][.\w]*(-[.\w]+)+$/i),Ee=R(/<[/\w!]/g),hn=R(/<[/\w]/g),Ho=R(/<\/no(script|embed|frames)/i),gn=R(/\/>/i),S={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Wo=b(m({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),Go=function(){return typeof window>"u"?null:window},Bo=function(a,s){if(typeof a!="object"||typeof a.createPolicy!="function")return null;let c=null;const f="data-tt-policy-suffix";s&&s.hasAttribute(f)&&(c=s.getAttribute(f));const d="dompurify"+(c?"#"+c:"");try{return a.createPolicy(d,{createHTML(E){return E},createScriptURL(E){return E}})}catch{return console.warn("TrustedTypes policy "+d+" could not be created."),null}},An=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},V=function(a,s,c,f){return N(a,s)&&mt(a[s])?m(f.base?M(f.base):{},a[s],f.transform):c},Se=function(a,s,c){const f=N(a,s)?a[s]:void 0;return f&&typeof f=="object"?M(f):c()};function Dn(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Go();const a=i=>Dn(i);if(a.version="3.4.17",a.removed=[],!r||!r.document||r.document.nodeType!==S.document||!r.Element)return a.isSupported=false,a;let s=r.document;const c=s,f=c.currentScript;r.DocumentFragment;const d=r.HTMLTemplateElement,E=r.Node,$=r.Element,C=r.NodeFilter;r.NamedNodeMap===void 0&&(r.NamedNodeMap||r.MozNamedAttrMap),r.HTMLFormElement;const Dt=r.DOMParser,et=r.trustedTypes,F=$.prototype,Mn=v(F,"cloneNode"),Ft=v(F,"remove"),Oe=v(F,"removeAttributeNode"),Pn=v(F,"nextSibling"),dt=v(F,"childNodes"),nt=v(F,"parentNode"),Ht=v(F,"shadowRoot"),Wt=v(F,"attributes"),X=E&&E.prototype?v(E.prototype,"nodeType"):null,ot=E&&E.prototype?v(E.prototype,"nodeName"):null,Lt=E&&E.prototype?v(E.prototype,"ownerDocument"):null,P=function(t){return X?X(t):t.nodeType},_t=function(t){return ot?ot(t):t.nodeName},Re=Lo(F,"namespaceURI"),Gt=function(t){return Re?Re(t):t.namespaceURI};if(typeof d=="function"){const i=s.createElement("template");i.content&&i.content.ownerDocument&&(s=i.content.ownerDocument)}let L,K="",Bt,De=false,Tt=0;const Le=function(){if(Tt>0)throw G('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},rt=function(t){Le(),Tt++;try{return L.createHTML(t)}finally{Tt--}},vn=function(t){Le(),Tt++;try{return L.createScriptURL(t)}finally{Tt--}},xn=function(){return De||(Bt=Bo(et,f),De=true),Bt},wt=s,Yt=wt.implementation,we=wt.createNodeIterator,kn=wt.createDocumentFragment,Un=wt.getElementsByTagName,zn=c.importNode;let _=An();a.isSupported=typeof Sn=="function"&&typeof nt=="function"&&Yt&&Yt.createHTMLDocument!==void 0;const Fn=Co,Hn=Mo,Wn=Po,Gn=vo,Bn=xo,Yn=ko,Ie=Uo,jn=Fo;let Ne=Tn,T=null;const jt=m({},[...pn,...Te,...he,...ge,...mn]);let h=null;const Vt=m({},[...dn,...Ae,..._n,...zt]);let k=Object.seal(pt(null,{tagNameCheck:{writable:true,configurable:false,enumerable:true,value:null},attributeNameCheck:{writable:true,configurable:false,enumerable:true,value:null},allowCustomizedBuiltInElements:{writable:true,configurable:false,enumerable:true,value:false}})),ht=null,Ce=null;const B=Object.seal(pt(null,{tagCheck:{writable:true,configurable:false,enumerable:true,value:null},attributeCheck:{writable:true,configurable:false,enumerable:true,value:null}}));let Me=true,$t=true,Pe=false,Xt=true,H=false,q=true,Z=false,Kt=false,It=null,Nt=null,qt=false,it=false,Ct=false,Mt=false,ve=true,xe=false;const ke="user-content-";let Zt=true,Jt=false,J=null,at={},Q=null;const Ue=m({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let ze=null;const Fe=m({},["audio","video","img","source","image","track"]);let He=null;const We=m({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Pt="http://www.w3.org/1998/Math/MathML",vt="http://www.w3.org/2000/svg",U="http://www.w3.org/1999/xhtml";let st=U,Qt=false,te=null;const Vn=m({},[Pt,vt,U],_e),Ge=b(["mi","mo","mn","ms","mtext"]);let ee=m({},Ge);const Be=b(["annotation-xml"]);let ne=m({},Be);const $n=m({},["title","style","font","a","script"]);let gt=null;const Xn=["application/xhtml+xml","text/html"],Kn="text/html";let A=null,lt=null;const qn=s.createElement("form"),Ye=function(t){return t instanceof RegExp||t instanceof Function},oe=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(lt&&lt===t)return;(!t||typeof t!="object")&&(t={}),t=M(t),gt=Xn.indexOf(t.PARSER_MEDIA_TYPE)===-1?Kn:t.PARSER_MEDIA_TYPE,A=gt==="application/xhtml+xml"?_e:tt,T=V(t,"ALLOWED_TAGS",jt,{transform:A}),h=V(t,"ALLOWED_ATTR",Vt,{transform:A}),te=V(t,"ALLOWED_NAMESPACES",Vn,{transform:_e}),He=V(t,"ADD_URI_SAFE_ATTR",We,{transform:A,base:We}),ze=V(t,"ADD_DATA_URI_TAGS",Fe,{transform:A,base:Fe}),Q=V(t,"FORBID_CONTENTS",Ue,{transform:A}),ht=V(t,"FORBID_TAGS",M({}),{transform:A}),Ce=V(t,"FORBID_ATTR",M({}),{transform:A}),at=N(t,"USE_PROFILES")?t.USE_PROFILES&&typeof t.USE_PROFILES=="object"?M(t.USE_PROFILES):t.USE_PROFILES:false,Me=t.ALLOW_ARIA_ATTR!==false,$t=t.ALLOW_DATA_ATTR!==false,Pe=t.ALLOW_UNKNOWN_PROTOCOLS||false,Xt=t.ALLOW_SELF_CLOSE_IN_ATTR!==false,H=t.SAFE_FOR_TEMPLATES||false,q=t.SAFE_FOR_XML!==false,Z=t.WHOLE_DOCUMENT||false,it=t.RETURN_DOM||false,Ct=t.RETURN_DOM_FRAGMENT||false,Mt=t.RETURN_TRUSTED_TYPE||false,qt=t.FORCE_BODY||false,ve=t.SANITIZE_DOM!==false,xe=t.SANITIZE_NAMED_PROPS||false,Zt=t.KEEP_CONTENT!==false,Jt=t.IN_PLACE||false,Ne=wo(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:Tn,st=typeof t.NAMESPACE=="string"?t.NAMESPACE:U,ee=Se(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>m({},Ge)),ne=Se(t,"HTML_INTEGRATION_POINTS",()=>m({},Be));const e=Se(t,"CUSTOM_ELEMENT_HANDLING",()=>pt(null));if(k=pt(null),N(e,"tagNameCheck")&&Ye(e.tagNameCheck)&&(k.tagNameCheck=e.tagNameCheck),N(e,"attributeNameCheck")&&Ye(e.attributeNameCheck)&&(k.attributeNameCheck=e.attributeNameCheck),N(e,"allowCustomizedBuiltInElements")&&typeof e.allowCustomizedBuiltInElements=="boolean"&&(k.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),R(k),H&&($t=false),Ct&&(it=true),at&&(T=m({},mn),h=pt(null),at.html===true&&(m(T,pn),m(h,dn)),at.svg===true&&(m(T,Te),m(h,Ae),m(h,zt)),at.svgFilters===true&&(m(T,he),m(h,Ae),m(h,zt)),at.mathMl===true&&(m(T,ge),m(h,_n),m(h,zt))),B.tagCheck=null,B.attributeCheck=null,N(t,"ADD_TAGS")&&(typeof t.ADD_TAGS=="function"?B.tagCheck=t.ADD_TAGS:mt(t.ADD_TAGS)&&(T===jt&&(T=M(T)),m(T,t.ADD_TAGS,A))),N(t,"ADD_ATTR")&&(typeof t.ADD_ATTR=="function"?B.attributeCheck=t.ADD_ATTR:mt(t.ADD_ATTR)&&(h===Vt&&(h=M(h)),m(h,t.ADD_ATTR,A))),N(t,"ADD_FORBID_CONTENTS")&&mt(t.ADD_FORBID_CONTENTS)&&(Q===Ue&&(Q=M(Q)),m(Q,t.ADD_FORBID_CONTENTS,A)),Zt&&(T["#text"]=true),Z&&m(T,["html","head","body"]),T.table&&(m(T,["tbody"]),delete ht.tbody),t.TRUSTED_TYPES_POLICY){if(typeof t.TRUSTED_TYPES_POLICY.createHTML!="function")throw G('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof t.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw G('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const n=L;L=t.TRUSTED_TYPES_POLICY;try{K=rt("")}catch(o){throw L=n,o}}else t.TRUSTED_TYPES_POLICY===null?(L=void 0,K=""):(L===void 0&&(L=xn()),L&&typeof K=="string"&&(K=rt("")));b&&b(t),lt=t},je=m({},[...Te,...he,...Io]),Ve=m({},[...ge,...No]),Zn=function(t,e,n){return e.namespaceURI===U?t==="svg":e.namespaceURI===Pt?t==="svg"&&(n==="annotation-xml"||ee[n]):!!je[t]},Jn=function(t,e,n){return e.namespaceURI===U?t==="math":e.namespaceURI===vt?t==="math"&&ne[n]:!!Ve[t]},Qn=function(t,e,n){return e.namespaceURI===vt&&!ne[n]||e.namespaceURI===Pt&&!ee[n]?false:!Ve[t]&&($n[t]||!je[t])},to=function(t){const e=Gt(t),n=tt(_t(t)),o=nt(t);let l,u;return o&&P(o)===S.element?(l={namespaceURI:Gt(o)},u=tt(_t(o))):(l={namespaceURI:st},u="template"),te[e]?e===vt?Zn(n,l,u):e===Pt?Jn(n,l,u):e===U?Qn(n,l,u):!!(gt==="application/xhtml+xml"&&te[e]):false},Y=function(t){St(a.removed,{element:t});try{nt(t).removeChild(t)}catch{if(Ft(t),!nt(t))throw G("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},$e=function(t,e,n){try{Oe(t,e)}catch{try{t.removeAttribute(n)}catch{}}},re=function(t){ae(t);const e=dt(t);e&&W(Eo(e),o=>{try{Ft(o)}catch{}});const n=P(t)===S.element?Wt(t):null;if(n)for(let o=n.length-1;o>=0;--o){const l=n[o],u=l&&l.name;typeof u=="string"&&$e(t,l,u)}},ct=function(t,e,n){if(!n)try{n=e.getAttributeNode(t)}catch{n=null}St(a.removed,{attribute:n||null,from:e});try{n?Oe(e,n):e.removeAttribute(t)}catch{try{e.removeAttribute(t)}catch{}}if(t==="is")if(it||Ct)try{Y(e)}catch{}else try{e.setAttribute(t,"")}catch{}},Xe=function(t){const e=Wt(t);if(e)for(let n=e.length-1;n>=0;--n){const o=e[n],l=o&&o.name;typeof l!="string"||h[A(l)]||$e(t,o,l)}},ie=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:false;const o=[t];for(;o.length>0;){const l=o.pop();if(e(l)===false)continue;if(n&&P(l)===S.element){const p=Ht(l);j(p)&&o.push(p)}const u=dt(l);if(u)for(let p=u.length-1;p>=0;--p)o.push(u[p])}},ae=function(t){ie(t,e=>{P(e)===S.element&&Xe(e)})},se=function(t){const e=[];return ie(t,n=>{e.push(n)},true),e},eo=function(t,e){const n=me();W(se(t),o=>{P(o)===S.element&&de(n,o)}),W(e,o=>{P(o)===S.element&&!yt(n,o)&&Xe(o)})},Ke=function(t,e){let n=false;return W(a.removed,o=>{o.element&&(n=n||o.element===t,ae(o.element))}),eo(t,e),n},no=8,oo=function(t,e){const n=J;let o=null;const l=()=>(o||(o=me(),W(e,u=>{de(o,u)})),o);for(let u=0;;u++){const p=se(t),y=[t];let z=false;if(W(p,D=>{P(D)===S.documentFragment?St(y,D):!z&&!yt(n,D)&&(z=yt(l(),D))}),!z)return;if(u>=no)throw G("the tree kept changing during in-place sanitization; refusing to return it");W(y,(D,w)=>{ro(D,w>0,t,l())})}},ro=function(t,e,n,o){const l=le(t);let u;for(;u=l.nextNode();)!yt(o,u)||yt(J,u)||(e&&x(_.uponSanitizeShadowNode,u,null),ue(u,n),fe(u,n),j(u.content)&&Et(u.content))},io=function(t){J&&de(J,t)},qe=function(t,e){return q?t==="patchsrc"?true:t==="for"&&e!=="label"&&e!=="output":false},ao=function(t){q&&ie(t,e=>{const n=P(e);if(n===S.processingInstruction||n===S.comment&&O(hn,e.data)){try{Ft(e)}catch{}return false}if(n===S.element){const o=e,l=A(_t(e));try{o.hasAttribute&&o.hasAttribute("patchsrc")&&o.removeAttribute("patchsrc"),o.hasAttribute&&o.hasAttribute("for")&&qe("for",l)&&o.removeAttribute("for")}catch{}}return true})},Ze=function(t){let e=null,n=null;if(qt)t="<remove></remove>"+t;else{const u=ln(t,/^[\r\n\t ]+/);n=u&&u[0]}gt==="application/xhtml+xml"&&st===U&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const o=L?rt(t):t;if(st===U)try{e=new Dt().parseFromString(o,gt)}catch{}if(!e||!e.documentElement){e=Yt.createDocument(st,"template",null);try{e.documentElement.innerHTML=Qt?K:o}catch{}}const l=e.body||e.documentElement;return t&&n&&l.insertBefore(s.createTextNode(n),l.childNodes[0]||null),st===U?Un.call(e,Z?"html":"body")[0]:Z?e.documentElement:l},le=function(t){const e=Lt?Lt(t):t.ownerDocument;return we.call(e||t,t,C.SHOW_ELEMENT|C.SHOW_COMMENT|C.SHOW_TEXT|C.SHOW_PROCESSING_INSTRUCTION|C.SHOW_CDATA_SECTION,null)},xt=function(t){return t=bt(t,Fn," "),t=bt(t,Hn," "),t=bt(t,Wn," "),t},ce=function(t){var e;Je(t);const n=(e=t.querySelectorAll)===null||e===void 0?void 0:e.call(t,"template");n&&W(n,o=>{j(o.content)&&ce(o.content)})},Je=function(t){t.normalize();const e=Lt?Lt(t):t.ownerDocument,n=we.call(e||t,t,C.SHOW_TEXT|C.SHOW_COMMENT|C.SHOW_CDATA_SECTION|C.SHOW_PROCESSING_INSTRUCTION,null);let o=n.nextNode();for(;o;)o.data=xt(o.data),o=n.nextNode()},kt=function(t){const e=ot?ot(t):null;return typeof e!="string"||A(e)!=="form"?false:typeof t.nodeName!="string"||typeof t.textContent!="string"||typeof t.removeChild!="function"||t.attributes!==Wt(t)||typeof t.removeAttribute!="function"||typeof t.removeAttributeNode!="function"||typeof t.getAttributeNode!="function"||typeof t.setAttribute!="function"||typeof t.namespaceURI!="string"||typeof t.insertBefore!="function"||typeof t.hasChildNodes!="function"||t.nodeType!==X(t)||t.childNodes!==dt(t)},j=function(t){if(!X||typeof t!="object"||t===null)return false;try{return X(t)===S.documentFragment}catch{return false}},At=function(t){if(!X||typeof t!="object"||t===null)return false;try{return typeof X(t)=="number"}catch{return false}};function x(i,t,e){i.length!==0&&W(i,n=>{n.call(a,t,e,lt)})}const so=function(t,e){return!!(q&&t.hasChildNodes()&&!At(t.firstElementChild)&&O(Ee,t.textContent)&&O(Ee,t.innerHTML)||q&&Wo[e]&&P(t)===S.element&&Gt(t)===U&&(At(t.firstElementChild)||typeof t.textContent=="string"&&O(Ee,t.textContent))||t.nodeType===S.processingInstruction||q&&t.nodeType===S.comment&&O(hn,t.data))},Ut=function(t,e){if(t instanceof RegExp)return O(t,e);if(t instanceof Function){for(var n=arguments.length,o=new Array(n>2?n-2:0),l=2;l<n;l++)o[l-2]=arguments[l];return!!t(e,...o)}return false},lo=function(t,e,n){if(!ht[e]&&en(e)&&Ut(k.tagNameCheck,e))return false;if(Zt&&!Q[e]&&!Q[tt(e)]){const o=nt(t),l=dt(t);if(l&&o){const u=l.length;for(let p=u-1;p>=0;--p){const y=t===n?Mn(l[p],true):l[p];o.insertBefore(y,Pn(t))}}}return Y(t),true},Qe=function(t,e,n,o){return t.length===0?e:e===n||e===o?M(e):e},ut=function(t,e){return t===e||nt(t)!==null?false:(Jt&&ae(t),true)},ue=function(t,e){if(io(t),x(_.beforeSanitizeElements,t,null),ut(t,e))return true;if(kt(t))return Y(t),true;const n=A(_t(t));if(T=Qe(_.uponSanitizeElement,T,jt,It),x(_.uponSanitizeElement,t,{tagName:n,allowedTags:T}),ut(t,e))return true;if(so(t,n))return Y(t),true;if(ht[n]||!(B.tagCheck instanceof Function&&B.tagCheck(n))&&!T[n]){const o=lo(t,n,e);return o===false&&(x(_.afterSanitizeElements,t,null),ut(t,e))?true:o}if(P(t)===S.element&&!to(t)||(n==="noscript"||n==="noembed"||n==="noframes")&&O(Ho,t.innerHTML))return Y(t),true;if(H&&t.nodeType===S.text){const o=xt(t.textContent);t.textContent!==o&&(St(a.removed,{element:t.cloneNode()}),t.textContent=o)}return x(_.afterSanitizeElements,t,null),ut(t,e)},tn=function(t,e,n){if(Ce[e]||qe(e,t)||ve&&(e==="id"||e==="name")&&(n in s||n in qn))return false;const o=h[e]||B.attributeCheck instanceof Function&&B.attributeCheck(e,t);return $t&&O(Gn,e)||Me&&O(Bn,e)?true:o?He[e]||O(Ne,bt(n,Ie,""))||(e==="src"||e==="xlink:href"||e==="href")&&t!=="script"&&cn(n,"data:")===0&&ze[t]||Pe&&!O(Yn,bt(n,Ie,""))?true:!n:en(t)&&Ut(k.tagNameCheck,t)&&Ut(k.attributeNameCheck,e,t)||e==="is"&&k.allowCustomizedBuiltInElements&&Ut(k.tagNameCheck,n)},co=m({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),en=function(t){return!co[tt(t)]&&O(jn,t)},uo=function(t,e,n,o){if(L&&typeof et=="object"&&typeof et.getAttributeType=="function"&&!n)switch(et.getAttributeType(t,e)){case"TrustedHTML":return rt(o);case"TrustedScriptURL":return vn(o)}return o},fo=function(t,e,n,o){try{return n?t.setAttributeNS(n,e,o):t.setAttribute(e,o),kt(t)?(Y(t),false):true}catch{return ct(e,t),false}},nn=function(t,e){return q&&O(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,e)?true:tt(t)==="attributename"&&ln(e,"href")!==null},fe=function(t,e){if(x(_.beforeSanitizeAttributes,t,null),ut(t,e))return;const n=t.attributes;if(!n||kt(t))return;h=Qe(_.uponSanitizeAttribute,h,Vt,Nt);const o={attrName:"",attrValue:"",keepAttr:true,allowedAttributes:h,forceKeepAttr:void 0};let l=n.length;const u=A(t.nodeName);for(;l--;){const p=n[l],y=p.name,z=p.namespaceURI,D=p.value,w=A(y),ft=D;let I=y==="value"?ft:yo(ft),on=false;if(o.attrName=w,o.attrValue=I,o.keepAttr=true,o.forceKeepAttr=void 0,x(_.uponSanitizeAttribute,t,o),I=o.attrValue,xe&&(w==="id"||w==="name")&&cn(I,ke)!==0&&(ct(y,t,p),I=ke+I,on=true),nn(y,I)){ct(y,t,p);continue}if(!o.forceKeepAttr){if(!o.keepAttr){ct(y,t,p);continue}if(!Xt&&O(gn,I)){ct(y,t,p);continue}if(H&&(I=xt(I)),!tn(u,w,I)){ct(y,t,p);continue}I=uo(u,w,z,I),I!==ft&&fo(t,y,z,I)&&on&&sn(a.removed)}}x(_.afterSanitizeAttributes,t,null),ut(t,e)},Et=function(t){let e=null;const n=le(t);for(x(_.beforeSanitizeShadowDOM,t,null);e=n.nextNode();)if(x(_.uponSanitizeShadowNode,e,null),ue(e,t),fe(e,t),j(e.content)&&Et(e.content),P(e)===S.element){const o=Ht(e);j(o)&&(pe(o),Et(o))}H&&Je(t),x(_.afterSanitizeShadowDOM,t,null)},pe=function(t){const e=[{node:t,shadow:null}];for(;e.length>0;){const n=e.pop();if(n.shadow){Et(n.shadow);continue}const o=n.node,l=P(o)===S.element,u=dt(o);if(u)for(let p=u.length-1;p>=0;--p)e.push({node:u[p],shadow:null});if(l){const p=ot?ot(o):null;if(typeof p=="string"&&A(p)==="template"){const y=o.content;j(y)&&e.push({node:y,shadow:null})}}if(l){const p=Ht(o);j(p)&&e.push({node:null,shadow:p},{node:p,shadow:null})}}};return a.sanitize=function(i){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=null,n=null,o=null,l=null;if(Qt=!i,Qt&&(i="<!-->"),typeof i!="string"&&!At(i)&&(i=Do(i),typeof i!="string"))throw G("dirty is not a string, aborting");if(!a.isSupported)return i;Kt?(T=It,h=Nt):oe(t),(_.uponSanitizeElement.length>0||_.uponSanitizeAttribute.length>0)&&(T=M(T)),_.uponSanitizeAttribute.length>0&&(h=M(h)),a.removed=[];const u=Jt&&typeof i!="string"&&At(i);let p=[];const y=J;if(u){ao(i);const w=_t(i);if(typeof w=="string"){const ft=A(w);if(!T[ft]||ht[ft])throw re(i),G("root node is forbidden and cannot be sanitized in-place")}if(kt(i))throw re(i),G("root node is clobbered and cannot be sanitized in-place");p=se(i),J=me()}else if(At(i))e=Ze("<!---->"),n=e.ownerDocument.importNode(i,true),n.nodeType===S.element&&n.nodeName==="BODY"||n.nodeName==="HTML"?e=n:e.appendChild(n),pe(e);else{if(!it&&!H&&!Z&&i.indexOf("<")===-1)return L&&Mt?rt(i):i;if(e=Ze(i),!e)return it?null:Mt?K:""}e&&qt&&Y(e.firstChild);const z=u?i:e;try{u&&pe(i);const w=le(z);for(;o=w.nextNode();)ue(o,z),fe(o,z),j(o.content)&&Et(o.content);u&&oo(i,p)}catch(w){throw u&&(re(i),Ke(i,p)),w}finally{J=y}if(u){if(Ke(i,p))throw G("a node selected for removal could not be safely returned; refusing to sanitize in place");return H&&ce(i),i}if(it){if(H&&ce(e),Ct)for(l=kn.call(e.ownerDocument);e.firstChild;)l.appendChild(e.firstChild);else l=e;return(h.shadowroot||h.shadowrootmode)&&(l=zn.call(c,l,true)),l}let D=Z?e.outerHTML:e.innerHTML;return Z&&T["!doctype"]&&e.ownerDocument&&e.ownerDocument.doctype&&e.ownerDocument.doctype.name&&O(zo,e.ownerDocument.doctype.name)&&(D="<!DOCTYPE "+e.ownerDocument.doctype.name+`>
3
- `+D),H&&(D=xt(D)),L&&Mt?rt(D):D},a.setConfig=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};oe(i),Kt=true,It=T,Nt=h},a.clearConfig=function(){lt=null,Kt=false,It=null,Nt=null,L=Bt,K=""},a.isValidAttribute=function(i,t,e){lt||oe({});const n=A(i),o=A(t);return typeof e=="string"&&(nn(t,e)||!Xt&&O(gn,e))?false:tn(n,o,e)},a.addHook=function(i,t){typeof t=="function"&&N(_,i)&&St(_[i],t)},a.removeHook=function(i,t){if(N(_,i)){if(t!==void 0){const e=Ao(_[i],t);return e===-1?void 0:So(_[i],e,1)[0]}return sn(_[i])}},a.removeHooks=function(i){N(_,i)&&(_[i]=[])},a.removeAllHooks=function(){_=An()},a}var Yo=Dn();const Ln=["a","b","br","i","img","p","small","span","sub","sup"],wn=["href","alt","src","height","width","lang","dir"],In=["height","width","lang","dir"],Nn=/^(?:https?|mailto):/i,Cn={ALLOWED_TAGS:Ln,ALLOWED_ATTR:wn,ADD_URI_SAFE_ATTR:In,ALLOWED_URI_REGEXP:Nn,ALLOW_ARIA_ATTR:false,ALLOW_DATA_ATTR:false},jo={...Cn,ALLOWED_TAGS:[...Ln,"ul","ol","li","div"],ALLOWED_ATTR:[...wn,"role","aria-level","start","id","aria-labelledby"],ADD_URI_SAFE_ATTR:[...In,"aria-level","start","id","aria-labelledby"]},En=/^clover-md-\d+$/,Vo={role:[["P",/^heading$/],["DIV",/^group$/]],"aria-level":[["P",/^[1-6]$/]],start:[["OL",/^\d+$/]],id:[["P",En]],"aria-labelledby":[["DIV",En]]};let Rt=null;function $o(){return Rt||(Rt=Yo(window),Rt.addHook("afterSanitizeAttributes",r=>{var a,s;for(const c of["src","href"]){const f=(a=r.getAttribute)==null?void 0:a.call(r,c);f&&!Nn.test(f.trim())&&r.removeAttribute(c)}for(const[c,f]of Object.entries(Vo)){const d=(s=r.getAttribute)==null?void 0:s.call(r,c);d!=null&&!f.some(([E,$])=>r.nodeName===E&&$.test(d))&&r.removeAttribute(c)}}),Rt)}function Xo(r,{markdown:a=false}={}){return typeof window>"u"?r:$o().sanitize(r,a?jo:Cn)}export{Xo as sanitizeHTML};
@@ -1 +0,0 @@
1
- import{ae as w,j as f,n as x,W as S}from"./shared-J3w3gnXD.mjs";const A=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 b(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 b(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<A&&!d.has(n);){d.add(n);const c=await w(s,n,o);i.push(c),n=$(c)}return E(i,t)}function T(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 $(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 E(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?T(a.on):f(a.target)[0],v=x(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{E as readResults,b as search,R as searchInto};