snice 4.10.0 → 4.12.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 (269) hide show
  1. package/adapters/react/carousel.d.ts +1 -0
  2. package/adapters/react/carousel.d.ts.map +1 -1
  3. package/adapters/react/carousel.js +1 -1
  4. package/adapters/react/carousel.js.map +1 -1
  5. package/adapters/react/carousel.tsx +2 -1
  6. package/bin/templates/CLAUDE.md +169 -113
  7. package/bin/templates/pwa/README.md +72 -94
  8. package/bin/templates/pwa/src/components/app-header.ts +218 -0
  9. package/bin/templates/pwa/src/components/notification-badge.ts +68 -0
  10. package/bin/templates/pwa/src/components/search-bar.ts +99 -0
  11. package/bin/templates/pwa/src/controllers/notification-controller.ts +42 -0
  12. package/bin/templates/pwa/src/guards/auth.ts +1 -1
  13. package/bin/templates/pwa/src/main.ts +19 -0
  14. package/bin/templates/pwa/src/pages/dashboard.ts +124 -23
  15. package/bin/templates/pwa/src/pages/data.ts +329 -0
  16. package/bin/templates/pwa/src/pages/notifications.ts +112 -30
  17. package/bin/templates/pwa/src/pages/profile.ts +86 -52
  18. package/bin/templates/pwa/src/pages/settings.ts +291 -0
  19. package/bin/templates/pwa/src/styles/global.css +12 -3
  20. package/dist/cdn/accordion/snice-accordion.js +1 -1
  21. package/dist/cdn/accordion/snice-accordion.min.js +1 -1
  22. package/dist/cdn/alert/snice-alert.js +1 -1
  23. package/dist/cdn/alert/snice-alert.min.js +1 -1
  24. package/dist/cdn/app-tiles/snice-app-tiles.js +1 -1
  25. package/dist/cdn/app-tiles/snice-app-tiles.min.js +1 -1
  26. package/dist/cdn/audio-recorder/snice-audio-recorder.js +1 -1
  27. package/dist/cdn/audio-recorder/snice-audio-recorder.min.js +1 -1
  28. package/dist/cdn/avatar/snice-avatar.js +1 -1
  29. package/dist/cdn/avatar/snice-avatar.min.js +1 -1
  30. package/dist/cdn/badge/snice-badge.js +1 -1
  31. package/dist/cdn/badge/snice-badge.min.js +1 -1
  32. package/dist/cdn/banner/snice-banner.js +1 -1
  33. package/dist/cdn/banner/snice-banner.min.js +1 -1
  34. package/dist/cdn/book/snice-book.js +1 -1
  35. package/dist/cdn/book/snice-book.min.js +1 -1
  36. package/dist/cdn/breadcrumbs/snice-breadcrumbs.js +1 -1
  37. package/dist/cdn/breadcrumbs/snice-breadcrumbs.min.js +1 -1
  38. package/dist/cdn/button/snice-button.js +1 -1
  39. package/dist/cdn/button/snice-button.min.js +1 -1
  40. package/dist/cdn/calendar/snice-calendar.js +1 -1
  41. package/dist/cdn/calendar/snice-calendar.min.js +1 -1
  42. package/dist/cdn/camera/README.md +1 -1
  43. package/dist/cdn/camera/snice-camera.js +1 -1
  44. package/dist/cdn/camera/snice-camera.min.js +1 -1
  45. package/dist/cdn/camera-annotate/snice-camera-annotate.js +1 -1
  46. package/dist/cdn/camera-annotate/snice-camera-annotate.min.js +1 -1
  47. package/dist/cdn/candlestick/snice-candlestick.js +1 -1
  48. package/dist/cdn/candlestick/snice-candlestick.min.js +1 -1
  49. package/dist/cdn/card/snice-card.js +1 -1
  50. package/dist/cdn/card/snice-card.min.js +1 -1
  51. package/dist/cdn/carousel/README.md +2 -2
  52. package/dist/cdn/carousel/snice-carousel.js +9 -3
  53. package/dist/cdn/carousel/snice-carousel.js.map +1 -1
  54. package/dist/cdn/carousel/snice-carousel.min.js +3 -3
  55. package/dist/cdn/carousel/snice-carousel.min.js.map +1 -1
  56. package/dist/cdn/chart/snice-chart.js +1 -1
  57. package/dist/cdn/chart/snice-chart.min.js +1 -1
  58. package/dist/cdn/chat/snice-chat.js +1 -1
  59. package/dist/cdn/chat/snice-chat.min.js +1 -1
  60. package/dist/cdn/checkbox/snice-checkbox.js +1 -1
  61. package/dist/cdn/checkbox/snice-checkbox.min.js +1 -1
  62. package/dist/cdn/chip/snice-chip.js +1 -1
  63. package/dist/cdn/chip/snice-chip.min.js +1 -1
  64. package/dist/cdn/code-block/snice-code-block.js +1 -1
  65. package/dist/cdn/code-block/snice-code-block.min.js +1 -1
  66. package/dist/cdn/color-display/snice-color-display.js +1 -1
  67. package/dist/cdn/color-display/snice-color-display.min.js +1 -1
  68. package/dist/cdn/color-picker/snice-color-picker.js +1 -1
  69. package/dist/cdn/color-picker/snice-color-picker.min.js +1 -1
  70. package/dist/cdn/command-palette/snice-command-palette.js +1 -1
  71. package/dist/cdn/command-palette/snice-command-palette.min.js +1 -1
  72. package/dist/cdn/comments/snice-comments.js +1 -1
  73. package/dist/cdn/comments/snice-comments.min.js +1 -1
  74. package/dist/cdn/countdown/snice-countdown.js +1 -1
  75. package/dist/cdn/countdown/snice-countdown.min.js +1 -1
  76. package/dist/cdn/cropper/snice-cropper.js +1 -1
  77. package/dist/cdn/cropper/snice-cropper.min.js +1 -1
  78. package/dist/cdn/date-picker/snice-date-picker.js +1 -1
  79. package/dist/cdn/date-picker/snice-date-picker.min.js +1 -1
  80. package/dist/cdn/diff/snice-diff.js +1 -1
  81. package/dist/cdn/diff/snice-diff.min.js +1 -1
  82. package/dist/cdn/divider/snice-divider.js +1 -1
  83. package/dist/cdn/divider/snice-divider.min.js +1 -1
  84. package/dist/cdn/doc/snice-doc.js +1 -1
  85. package/dist/cdn/doc/snice-doc.min.js +1 -1
  86. package/dist/cdn/draw/snice-draw.js +1 -1
  87. package/dist/cdn/draw/snice-draw.min.js +1 -1
  88. package/dist/cdn/drawer/snice-drawer.js +1 -1
  89. package/dist/cdn/drawer/snice-drawer.min.js +1 -1
  90. package/dist/cdn/empty-state/snice-empty-state.js +1 -1
  91. package/dist/cdn/empty-state/snice-empty-state.min.js +1 -1
  92. package/dist/cdn/file-gallery/snice-file-gallery.js +1 -1
  93. package/dist/cdn/file-gallery/snice-file-gallery.min.js +1 -1
  94. package/dist/cdn/file-upload/snice-file-upload.js +1 -1
  95. package/dist/cdn/file-upload/snice-file-upload.min.js +1 -1
  96. package/dist/cdn/flip-card/snice-flip-card.js +1 -1
  97. package/dist/cdn/flip-card/snice-flip-card.min.js +1 -1
  98. package/dist/cdn/flow/snice-flow.js +1 -1
  99. package/dist/cdn/flow/snice-flow.min.js +1 -1
  100. package/dist/cdn/funnel/snice-funnel.js +1 -1
  101. package/dist/cdn/funnel/snice-funnel.min.js +1 -1
  102. package/dist/cdn/gantt/README.md +1 -1
  103. package/dist/cdn/gantt/snice-gantt.js +1 -1
  104. package/dist/cdn/gantt/snice-gantt.min.js +1 -1
  105. package/dist/cdn/gauge/snice-gauge.js +1 -1
  106. package/dist/cdn/gauge/snice-gauge.min.js +1 -1
  107. package/dist/cdn/heatmap/snice-heatmap.js +1 -1
  108. package/dist/cdn/heatmap/snice-heatmap.min.js +1 -1
  109. package/dist/cdn/image/snice-image.js +1 -1
  110. package/dist/cdn/image/snice-image.min.js +1 -1
  111. package/dist/cdn/input/snice-input.js +1 -1
  112. package/dist/cdn/input/snice-input.min.js +1 -1
  113. package/dist/cdn/kanban/snice-kanban.js +1 -1
  114. package/dist/cdn/kanban/snice-kanban.min.js +1 -1
  115. package/dist/cdn/kpi/snice-kpi.js +1 -1
  116. package/dist/cdn/kpi/snice-kpi.min.js +1 -1
  117. package/dist/cdn/layout/snice-layout.js +1 -1
  118. package/dist/cdn/layout/snice-layout.min.js +1 -1
  119. package/dist/cdn/link/snice-link.js +1 -1
  120. package/dist/cdn/link/snice-link.min.js +1 -1
  121. package/dist/cdn/link-preview/snice-link-preview.js +1 -1
  122. package/dist/cdn/link-preview/snice-link-preview.min.js +1 -1
  123. package/dist/cdn/list/snice-list.js +1 -1
  124. package/dist/cdn/list/snice-list.min.js +1 -1
  125. package/dist/cdn/location/snice-location.js +1 -1
  126. package/dist/cdn/location/snice-location.min.js +1 -1
  127. package/dist/cdn/login/snice-login.js +1 -1
  128. package/dist/cdn/login/snice-login.min.js +1 -1
  129. package/dist/cdn/map/snice-map.js +1 -1
  130. package/dist/cdn/map/snice-map.min.js +1 -1
  131. package/dist/cdn/markdown/README.md +1 -1
  132. package/dist/cdn/markdown/snice-markdown.js +2 -2
  133. package/dist/cdn/markdown/snice-markdown.js.map +1 -1
  134. package/dist/cdn/markdown/snice-markdown.min.js +2 -2
  135. package/dist/cdn/markdown/snice-markdown.min.js.map +1 -1
  136. package/dist/cdn/masonry/snice-masonry.js +1 -1
  137. package/dist/cdn/masonry/snice-masonry.min.js +1 -1
  138. package/dist/cdn/menu/snice-menu.js +1 -1
  139. package/dist/cdn/menu/snice-menu.min.js +1 -1
  140. package/dist/cdn/modal/snice-modal.js +1 -1
  141. package/dist/cdn/modal/snice-modal.min.js +1 -1
  142. package/dist/cdn/music-player/snice-music-player.js +1 -1
  143. package/dist/cdn/music-player/snice-music-player.min.js +1 -1
  144. package/dist/cdn/nav/snice-nav.js +1 -1
  145. package/dist/cdn/nav/snice-nav.min.js +1 -1
  146. package/dist/cdn/network-graph/snice-network-graph.js +1 -1
  147. package/dist/cdn/network-graph/snice-network-graph.min.js +1 -1
  148. package/dist/cdn/notification-center/snice-notification-center.js +1 -1
  149. package/dist/cdn/notification-center/snice-notification-center.min.js +1 -1
  150. package/dist/cdn/org-chart/snice-org-chart.js +1 -1
  151. package/dist/cdn/org-chart/snice-org-chart.min.js +1 -1
  152. package/dist/cdn/pagination/snice-pagination.js +1 -1
  153. package/dist/cdn/pagination/snice-pagination.min.js +1 -1
  154. package/dist/cdn/paint/snice-paint.js +1 -1
  155. package/dist/cdn/paint/snice-paint.min.js +1 -1
  156. package/dist/cdn/pdf-viewer/README.md +2 -2
  157. package/dist/cdn/pdf-viewer/snice-pdf-viewer.js +72 -78
  158. package/dist/cdn/pdf-viewer/snice-pdf-viewer.js.map +1 -1
  159. package/dist/cdn/pdf-viewer/snice-pdf-viewer.min.js +3 -3
  160. package/dist/cdn/pdf-viewer/snice-pdf-viewer.min.js.map +1 -1
  161. package/dist/cdn/podcast-player/README.md +1 -1
  162. package/dist/cdn/podcast-player/snice-podcast-player.js +2 -2
  163. package/dist/cdn/podcast-player/snice-podcast-player.js.map +1 -1
  164. package/dist/cdn/podcast-player/snice-podcast-player.min.js +2 -2
  165. package/dist/cdn/podcast-player/snice-podcast-player.min.js.map +1 -1
  166. package/dist/cdn/pricing-table/snice-pricing-table.js +1 -1
  167. package/dist/cdn/pricing-table/snice-pricing-table.min.js +1 -1
  168. package/dist/cdn/progress/snice-progress.js +1 -1
  169. package/dist/cdn/progress/snice-progress.min.js +1 -1
  170. package/dist/cdn/qr-code/snice-qr-code.js +1 -1
  171. package/dist/cdn/qr-code/snice-qr-code.min.js +1 -1
  172. package/dist/cdn/qr-reader/snice-qr-reader.js +1 -1
  173. package/dist/cdn/qr-reader/snice-qr-reader.min.js +1 -1
  174. package/dist/cdn/radio/snice-radio.js +1 -1
  175. package/dist/cdn/radio/snice-radio.min.js +1 -1
  176. package/dist/cdn/rating/snice-rating.js +1 -1
  177. package/dist/cdn/rating/snice-rating.min.js +1 -1
  178. package/dist/cdn/recipe/snice-recipe.js +1 -1
  179. package/dist/cdn/recipe/snice-recipe.min.js +1 -1
  180. package/dist/cdn/runtime/README.md +1 -1
  181. package/dist/cdn/runtime/snice-runtime.esm.js +10 -3
  182. package/dist/cdn/runtime/snice-runtime.esm.js.map +1 -1
  183. package/dist/cdn/runtime/snice-runtime.esm.min.js +4 -4
  184. package/dist/cdn/runtime/snice-runtime.esm.min.js.map +1 -1
  185. package/dist/cdn/runtime/snice-runtime.js +10 -3
  186. package/dist/cdn/runtime/snice-runtime.js.map +1 -1
  187. package/dist/cdn/runtime/snice-runtime.min.js +4 -4
  188. package/dist/cdn/runtime/snice-runtime.min.js.map +1 -1
  189. package/dist/cdn/sankey/snice-sankey.js +1 -1
  190. package/dist/cdn/sankey/snice-sankey.min.js +1 -1
  191. package/dist/cdn/select/snice-select.js +1 -1
  192. package/dist/cdn/select/snice-select.min.js +1 -1
  193. package/dist/cdn/skeleton/snice-skeleton.js +1 -1
  194. package/dist/cdn/skeleton/snice-skeleton.min.js +1 -1
  195. package/dist/cdn/slider/snice-slider.js +1 -1
  196. package/dist/cdn/slider/snice-slider.min.js +1 -1
  197. package/dist/cdn/sortable/snice-sortable.js +1 -1
  198. package/dist/cdn/sortable/snice-sortable.min.js +1 -1
  199. package/dist/cdn/sparkline/snice-sparkline.js +1 -1
  200. package/dist/cdn/sparkline/snice-sparkline.min.js +1 -1
  201. package/dist/cdn/spinner/snice-spinner.js +1 -1
  202. package/dist/cdn/spinner/snice-spinner.min.js +1 -1
  203. package/dist/cdn/split-pane/snice-split-pane.js +1 -1
  204. package/dist/cdn/split-pane/snice-split-pane.min.js +1 -1
  205. package/dist/cdn/spotlight/snice-spotlight.js +1 -1
  206. package/dist/cdn/spotlight/snice-spotlight.min.js +1 -1
  207. package/dist/cdn/spreadsheet/snice-spreadsheet.js +1 -1
  208. package/dist/cdn/spreadsheet/snice-spreadsheet.min.js +1 -1
  209. package/dist/cdn/stepper/snice-stepper.js +1 -1
  210. package/dist/cdn/stepper/snice-stepper.min.js +1 -1
  211. package/dist/cdn/switch/snice-switch.js +1 -1
  212. package/dist/cdn/switch/snice-switch.min.js +1 -1
  213. package/dist/cdn/table/snice-table.js +1 -1
  214. package/dist/cdn/table/snice-table.min.js +1 -1
  215. package/dist/cdn/tabs/snice-tabs.js +1 -1
  216. package/dist/cdn/tabs/snice-tabs.min.js +1 -1
  217. package/dist/cdn/tag-input/snice-tag-input.js +1 -1
  218. package/dist/cdn/tag-input/snice-tag-input.min.js +1 -1
  219. package/dist/cdn/terminal/snice-terminal.js +1 -1
  220. package/dist/cdn/terminal/snice-terminal.min.js +1 -1
  221. package/dist/cdn/testimonial/snice-testimonial.js +1 -1
  222. package/dist/cdn/testimonial/snice-testimonial.min.js +1 -1
  223. package/dist/cdn/textarea/snice-textarea.js +1 -1
  224. package/dist/cdn/textarea/snice-textarea.min.js +1 -1
  225. package/dist/cdn/time-range-picker/snice-time-range-picker.js +1 -1
  226. package/dist/cdn/time-range-picker/snice-time-range-picker.min.js +1 -1
  227. package/dist/cdn/timeline/snice-timeline.js +1 -1
  228. package/dist/cdn/timeline/snice-timeline.min.js +1 -1
  229. package/dist/cdn/timer/snice-timer.js +1 -1
  230. package/dist/cdn/timer/snice-timer.min.js +1 -1
  231. package/dist/cdn/toast/snice-toast.js +1 -1
  232. package/dist/cdn/toast/snice-toast.min.js +1 -1
  233. package/dist/cdn/tooltip/snice-tooltip.js +1 -1
  234. package/dist/cdn/tooltip/snice-tooltip.min.js +1 -1
  235. package/dist/cdn/tree/snice-tree.js +1 -1
  236. package/dist/cdn/tree/snice-tree.min.js +1 -1
  237. package/dist/cdn/treemap/snice-treemap.js +1 -1
  238. package/dist/cdn/treemap/snice-treemap.min.js +1 -1
  239. package/dist/cdn/video-player/snice-video-player.js +1 -1
  240. package/dist/cdn/video-player/snice-video-player.min.js +1 -1
  241. package/dist/cdn/virtual-scroller/snice-virtual-scroller.js +1 -1
  242. package/dist/cdn/virtual-scroller/snice-virtual-scroller.min.js +1 -1
  243. package/dist/cdn/waterfall/snice-waterfall.js +1 -1
  244. package/dist/cdn/waterfall/snice-waterfall.min.js +1 -1
  245. package/dist/cdn/weather/snice-weather.js +1 -1
  246. package/dist/cdn/weather/snice-weather.min.js +1 -1
  247. package/dist/components/carousel/snice-carousel.js +8 -2
  248. package/dist/components/carousel/snice-carousel.js.map +1 -1
  249. package/dist/components/code-block/grammars/html.json +48 -0
  250. package/dist/components/markdown/snice-markdown.js +1 -1
  251. package/dist/components/markdown/snice-markdown.js.map +1 -1
  252. package/dist/components/pdf-viewer/snice-pdf-viewer.d.ts +9 -8
  253. package/dist/components/pdf-viewer/snice-pdf-viewer.js +71 -77
  254. package/dist/components/pdf-viewer/snice-pdf-viewer.js.map +1 -1
  255. package/dist/components/podcast-player/snice-podcast-player.js +1 -1
  256. package/dist/components/podcast-player/snice-podcast-player.js.map +1 -1
  257. package/dist/index.cjs +8 -1
  258. package/dist/index.cjs.map +1 -1
  259. package/dist/index.esm.js +8 -1
  260. package/dist/index.esm.js.map +1 -1
  261. package/dist/index.iife.js +8 -1
  262. package/dist/index.iife.js.map +1 -1
  263. package/dist/symbols.cjs +1 -1
  264. package/dist/symbols.esm.js +1 -1
  265. package/dist/transitions.cjs +1 -1
  266. package/dist/transitions.esm.js +1 -1
  267. package/docs/ai/patterns.md +1 -1
  268. package/docs/routing.md +2 -2
  269. package/package.json +4 -2
@@ -1 +1 @@
1
- {"version":3,"file":"snice-podcast-player.min.js","sources":["../../../node_modules/tslib/tslib.es6.mjs","../../components/podcast-player/snice-podcast-player.js"],"sourcesContent":["/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\n\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n }\n return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\n\nexport function __generator(thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n}\n\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n}\n\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n};\n\nvar ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n};\n\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n}\n\nexport function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n else s |= 1;\n }\n catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n}\n\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\n });\n }\n return path;\n}\n\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __esDecorate,\n __runInitializers,\n __propKey,\n __setFunctionName,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources,\n __rewriteRelativeImportExtension,\n};\n","import { __esDecorate, __runInitializers } from 'tslib';\nimport { element, property, query, styles, ready, dispose, watch, render, dispatch, css, html } from 'snice';\n\nvar playerStyles = \":host{display:block;font-family:var(--snice-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);contain:layout style paint}.podcast-container{background:var(--snice-color-background,rgb(255 255 255));border:1px solid var(--snice-color-border,rgb(226 226 226));border-radius:var(--snice-border-radius-lg,.5rem);padding:var(--snice-spacing-lg,1.5rem);box-shadow:var(--snice-shadow-md,0 4px 6px -1px rgb(0 0 0 / .1),0 2px 4px -2px rgb(0 0 0 / .1))}.podcast-info{display:flex;gap:var(--snice-spacing-md,1rem);margin-bottom:var(--snice-spacing-lg,1.5rem)}.podcast-artwork{flex-shrink:0;width:7.5rem;height:7.5rem;border-radius:var(--snice-border-radius-lg,.5rem);overflow:hidden;background:var(--snice-color-background-element,rgb(252 251 249));display:flex;align-items:center;justify-content:center}.podcast-artwork img{width:100%;height:100%;object-fit:cover}.podcast-artwork-placeholder{color:var(--snice-color-text-tertiary,rgb(115 115 115))}.podcast-meta{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center}.podcast-show{font-size:var(--snice-font-size-sm, .875rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--snice-color-primary,rgb(37 99 235));margin-bottom:var(--snice-spacing-3xs,.125rem);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-transform:uppercase;letter-spacing:.05em}.podcast-title{font-size:var(--snice-font-size-lg, 1.125rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--snice-color-text,rgb(23 23 23));margin-bottom:var(--snice-spacing-xs,.5rem);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.podcast-description{font-size:var(--snice-font-size-sm, .875rem);color:var(--snice-color-text-secondary,rgb(82 82 82));line-height:var(--snice-line-height-normal, 1.5);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.podcast-controls{margin-bottom:var(--snice-spacing-md,1rem)}.podcast-control-buttons{display:flex;align-items:center;justify-content:center;gap:var(--snice-spacing-md,1rem);margin-bottom:var(--snice-spacing-md,1rem)}.podcast-btn{background:0 0;border:none;cursor:pointer;padding:var(--snice-spacing-xs,.5rem);border-radius:var(--snice-border-radius-md,.25rem);color:var(--snice-color-text,rgb(23 23 23));display:inline-flex;align-items:center;justify-content:center;transition:background-color var(--snice-transition-fast, 150ms) ease;position:relative}.podcast-btn:hover:not(:disabled){background:var(--snice-color-background-hover,rgb(241 241 241))}.podcast-btn:active:not(:disabled){background:var(--snice-color-background-active,rgb(226 226 226))}.podcast-btn:disabled{opacity:.5;cursor:not-allowed}.podcast-btn-skip-label{position:absolute;font-size:.5rem;font-weight:var(--snice-font-weight-bold,700);color:var(--snice-color-text,rgb(23 23 23));bottom:.25rem}.podcast-btn-play{background:var(--snice-color-primary,rgb(37 99 235));color:var(--snice-color-text-inverse,rgb(250 250 250));padding:var(--snice-spacing-md,1rem);border-radius:50%}.podcast-btn-play:hover:not(:disabled){background:var(--snice-color-primary-hover,rgb(29 78 216))}.podcast-btn-speed{font-size:var(--snice-font-size-sm, .875rem);font-weight:var(--snice-font-weight-semibold,600);min-width:2.75rem;padding:var(--snice-spacing-2xs,.25rem) var(--snice-spacing-xs,.5rem);border:1px solid var(--snice-color-border,rgb(226 226 226));border-radius:var(--snice-border-radius-md,.25rem)}.podcast-btn-speed.active{color:var(--snice-color-primary,rgb(37 99 235));border-color:var(--snice-color-primary,rgb(37 99 235))}.podcast-progress-container{display:flex;align-items:center;gap:var(--snice-spacing-sm,.75rem)}.podcast-time{font-size:var(--snice-font-size-xs, .75rem);font-variant-numeric:tabular-nums;color:var(--snice-color-text-secondary,rgb(82 82 82));min-width:2.75rem}.podcast-time-current{text-align:right}.podcast-time-remaining{text-align:left}.podcast-progress{flex:1;height:.375rem;background:var(--snice-color-background-element,rgb(252 251 249));border-radius:9999px;cursor:pointer;position:relative;overflow:hidden}.podcast-progress:hover{height:.5rem}.podcast-progress-bar{height:100%;background:var(--snice-color-primary,rgb(37 99 235));border-radius:9999px;transition:width .1s linear}.podcast-volume{display:flex;align-items:center;gap:var(--snice-spacing-xs,.5rem)}.podcast-volume-slider-container{display:flex;align-items:center}.podcast-volume-slider{-webkit-appearance:none;appearance:none;width:5rem;height:.375rem;background:linear-gradient(to right,var(--snice-color-primary,rgb(37 99 235)) 0,var(--snice-color-primary,rgb(37 99 235)) var(--volume-percent,100%),var(--snice-color-background-element,rgb(252 251 249)) var(--volume-percent,100%),var(--snice-color-background-element,rgb(252 251 249)) 100%);border-radius:9999px;outline:0;cursor:pointer}.podcast-volume-slider::-webkit-slider-runnable-track{width:100%;height:.375rem;background:0 0;border-radius:9999px}.podcast-volume-slider::-moz-range-track{width:100%;height:.375rem;background:var(--snice-color-background-element,rgb(252 251 249));border-radius:9999px}.podcast-volume-slider::-moz-range-progress{height:.375rem;background:var(--snice-color-primary,rgb(37 99 235));border-radius:9999px}.podcast-volume-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:.875rem;height:.875rem;background:var(--snice-color-primary,rgb(37 99 235));border-radius:50%;cursor:pointer;margin-top:-.25rem}.podcast-volume-slider::-moz-range-thumb{width:.875rem;height:.875rem;background:var(--snice-color-primary,rgb(37 99 235));border:none;border-radius:50%;cursor:pointer}.podcast-bottom-bar{display:flex;align-items:center;justify-content:space-between;margin-top:var(--snice-spacing-sm,.75rem)}.podcast-sleep{display:flex;align-items:center;gap:var(--snice-spacing-2xs,.25rem)}.podcast-sleep-label{font-size:var(--snice-font-size-xs, .75rem);color:var(--snice-color-text-tertiary,rgb(115 115 115))}.podcast-sleep-time{font-size:var(--snice-font-size-xs, .75rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--snice-color-primary,rgb(37 99 235));font-variant-numeric:tabular-nums}.podcast-btn-sleep{font-size:var(--snice-font-size-xs, .75rem);padding:var(--snice-spacing-3xs,.125rem) var(--snice-spacing-xs,.5rem);border:1px solid var(--snice-color-border,rgb(226 226 226));border-radius:var(--snice-border-radius-md,.25rem)}.podcast-btn-sleep.active{color:var(--snice-color-primary,rgb(37 99 235));border-color:var(--snice-color-primary,rgb(37 99 235))}.podcast-chapters{border-top:1px solid var(--snice-color-border,rgb(226 226 226));padding-top:var(--snice-spacing-md,1rem);margin-top:var(--snice-spacing-md,1rem)}.podcast-chapters-header{font-size:var(--snice-font-size-sm, .875rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--snice-color-text,rgb(23 23 23));margin-bottom:var(--snice-spacing-sm,.75rem)}.podcast-chapter-item{display:flex;align-items:center;gap:var(--snice-spacing-sm,.75rem);padding:var(--snice-spacing-xs,.5rem) var(--snice-spacing-sm,.75rem);border-radius:var(--snice-border-radius-md,.25rem);cursor:pointer;transition:background-color var(--snice-transition-fast, 150ms) ease}.podcast-chapter-item:hover{background:var(--snice-color-background-hover,rgb(241 241 241))}.podcast-chapter-item.active{background:var(--snice-color-primary-subtle,rgb(239 246 255))}.podcast-chapter-time{font-size:var(--snice-font-size-xs, .75rem);font-variant-numeric:tabular-nums;color:var(--snice-color-text-tertiary,rgb(115 115 115));min-width:2.5rem;flex-shrink:0}.podcast-chapter-title{font-size:var(--snice-font-size-sm, .875rem);color:var(--snice-color-text,rgb(23 23 23));flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.podcast-chapter-item.active .podcast-chapter-title{color:var(--snice-color-primary,rgb(37 99 235));font-weight:var(--snice-font-weight-medium,500)}.podcast-episodes{border-top:1px solid var(--snice-color-border,rgb(226 226 226));padding-top:var(--snice-spacing-md,1rem);margin-top:var(--snice-spacing-md,1rem)}.podcast-episodes-header{font-size:var(--snice-font-size-sm, .875rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--snice-color-text,rgb(23 23 23));margin-bottom:var(--snice-spacing-sm,.75rem)}.podcast-episode-list{display:flex;flex-direction:column;gap:var(--snice-spacing-2xs,.25rem);max-height:18.75rem;overflow-y:auto}.podcast-episode-item{display:flex;align-items:center;gap:var(--snice-spacing-sm,.75rem);padding:var(--snice-spacing-sm,.75rem);border-radius:var(--snice-border-radius-md,.25rem);cursor:pointer;transition:background-color var(--snice-transition-fast, 150ms) ease}.podcast-episode-item:hover{background:var(--snice-color-background-hover,rgb(241 241 241))}.podcast-episode-item.active{background:var(--snice-color-primary-subtle,rgb(239 246 255))}.podcast-episode-artwork{width:3rem;height:3rem;border-radius:var(--snice-border-radius-md,.25rem);object-fit:cover;flex-shrink:0}.podcast-episode-info{flex:1;min-width:0}.podcast-episode-title{font-size:var(--snice-font-size-sm, .875rem);color:var(--snice-color-text,rgb(23 23 23));margin-bottom:var(--snice-spacing-3xs,.125rem);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.podcast-episode-item.active .podcast-episode-title{color:var(--snice-color-primary,rgb(37 99 235));font-weight:var(--snice-font-weight-medium,500)}.podcast-episode-date{font-size:var(--snice-font-size-xs, .75rem);color:var(--snice-color-text-tertiary,rgb(115 115 115))}.podcast-episode-duration{font-size:var(--snice-font-size-xs, .75rem);font-variant-numeric:tabular-nums;color:var(--snice-color-text-tertiary,rgb(115 115 115));flex-shrink:0}.podcast-episode-playing-icon{display:flex;align-items:center;gap:2px;flex-shrink:0}.podcast-episode-playing-icon span{display:inline-block;width:3px;height:.75rem;background:var(--snice-color-primary,rgb(37 99 235));border-radius:1px;animation:.8s ease-in-out infinite podcast-bar-bounce}.podcast-episode-playing-icon span:nth-child(2){animation-delay:.15s}.podcast-episode-playing-icon span:nth-child(3){animation-delay:.3s}@keyframes podcast-bar-bounce{0%,100%{height:.25rem}50%{height:.75rem}}.podcast-episode-list::-webkit-scrollbar{width:.5rem}.podcast-episode-list::-webkit-scrollbar-track{background:var(--snice-color-background-element,rgb(252 251 249));border-radius:9999px}.podcast-episode-list::-webkit-scrollbar-thumb{background:var(--snice-color-border,rgb(226 226 226));border-radius:9999px}.podcast-episode-list::-webkit-scrollbar-thumb:hover{background:var(--snice-color-border-hover,rgb(204 204 204))}\";\n\nconst PLAYBACK_RATES = [0.5, 0.75, 1, 1.25, 1.5, 1.75, 2];\nconst SLEEP_OPTIONS = [0, 5, 10, 15, 30, 45, 60]; // minutes\nconst STORAGE_KEY_PREFIX = 'snice-podcast-position-';\nlet SnicePodcastPlayer = (() => {\n let _classDecorators = [element('snice-podcast-player')];\n let _classDescriptor;\n let _classExtraInitializers = [];\n let _classThis;\n let _classSuper = HTMLElement;\n let _instanceExtraInitializers = [];\n let _src_decorators;\n let _src_initializers = [];\n let _src_extraInitializers = [];\n let _fromRss_decorators;\n let _fromRss_initializers = [];\n let _fromRss_extraInitializers = [];\n let _title_decorators;\n let _title_initializers = [];\n let _title_extraInitializers = [];\n let _show_decorators;\n let _show_initializers = [];\n let _show_extraInitializers = [];\n let _artwork_decorators;\n let _artwork_initializers = [];\n let _artwork_extraInitializers = [];\n let _description_decorators;\n let _description_initializers = [];\n let _description_extraInitializers = [];\n let _playbackRate_decorators;\n let _playbackRate_initializers = [];\n let _playbackRate_extraInitializers = [];\n let _skipForward_decorators;\n let _skipForward_initializers = [];\n let _skipForward_extraInitializers = [];\n let _skipBack_decorators;\n let _skipBack_initializers = [];\n let _skipBack_extraInitializers = [];\n let _currentTime_decorators;\n let _currentTime_initializers = [];\n let _currentTime_extraInitializers = [];\n let _duration_decorators;\n let _duration_initializers = [];\n let _duration_extraInitializers = [];\n let _volume_decorators;\n let _volume_initializers = [];\n let _volume_extraInitializers = [];\n let _muted_decorators;\n let _muted_initializers = [];\n let _muted_extraInitializers = [];\n let _episodes_decorators;\n let _episodes_initializers = [];\n let _episodes_extraInitializers = [];\n let _currentEpisodeIndex_decorators;\n let _currentEpisodeIndex_initializers = [];\n let _currentEpisodeIndex_extraInitializers = [];\n let _sleepTimer_decorators;\n let _sleepTimer_initializers = [];\n let _sleepTimer_extraInitializers = [];\n let _progressElement_decorators;\n let _progressElement_initializers = [];\n let _progressElement_extraInitializers = [];\n let _componentStyles_decorators;\n let _init_decorators;\n let _cleanup_decorators;\n let _handleSrcChange_decorators;\n let _handleRssChange_decorators;\n let _handleVolumeChange_decorators;\n let _handleMutedChange_decorators;\n let _handlePlaybackRateChange_decorators;\n let _renderPlayer_decorators;\n let _emitPlay_decorators;\n let _emitPause_decorators;\n let _emitEnded_decorators;\n let _emitTimeUpdate_decorators;\n let _emitRateChange_decorators;\n let _emitEpisodeChange_decorators;\n let _emitFeedLoaded_decorators;\n (class extends _classSuper {\n static { _classThis = this; }\n static {\n const _metadata = typeof Symbol === \"function\" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;\n _src_decorators = [property()];\n _fromRss_decorators = [property({ attribute: 'from-rss' })];\n _title_decorators = [property()];\n _show_decorators = [property()];\n _artwork_decorators = [property()];\n _description_decorators = [property()];\n _playbackRate_decorators = [property({ type: Number, attribute: 'playback-rate' })];\n _skipForward_decorators = [property({ type: Number, attribute: 'skip-forward' })];\n _skipBack_decorators = [property({ type: Number, attribute: 'skip-back' })];\n _currentTime_decorators = [property({ type: Number, attribute: 'current-time' })];\n _duration_decorators = [property({ type: Number })];\n _volume_decorators = [property({ type: Number })];\n _muted_decorators = [property({ type: Boolean })];\n _episodes_decorators = [property({ type: Array })];\n _currentEpisodeIndex_decorators = [property({ type: Number, attribute: 'current-episode-index' })];\n _sleepTimer_decorators = [property({ type: Number, attribute: 'sleep-timer' })];\n _progressElement_decorators = [query('.podcast-progress')];\n _componentStyles_decorators = [styles()];\n _init_decorators = [ready()];\n _cleanup_decorators = [dispose()];\n _handleSrcChange_decorators = [watch('src')];\n _handleRssChange_decorators = [watch('fromRss')];\n _handleVolumeChange_decorators = [watch('volume')];\n _handleMutedChange_decorators = [watch('muted')];\n _handlePlaybackRateChange_decorators = [watch('playbackRate')];\n _renderPlayer_decorators = [render()];\n _emitPlay_decorators = [dispatch('podcast-play', { bubbles: true, composed: true })];\n _emitPause_decorators = [dispatch('podcast-pause', { bubbles: true, composed: true })];\n _emitEnded_decorators = [dispatch('podcast-ended', { bubbles: true, composed: true })];\n _emitTimeUpdate_decorators = [dispatch('podcast-time-update', { bubbles: true, composed: true })];\n _emitRateChange_decorators = [dispatch('podcast-rate-change', { bubbles: true, composed: true })];\n _emitEpisodeChange_decorators = [dispatch('podcast-episode-change', { bubbles: true, composed: true })];\n _emitFeedLoaded_decorators = [dispatch('podcast-feed-loaded', { bubbles: true, composed: true })];\n __esDecorate(this, null, _componentStyles_decorators, { kind: \"method\", name: \"componentStyles\", static: false, private: false, access: { has: obj => \"componentStyles\" in obj, get: obj => obj.componentStyles }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _init_decorators, { kind: \"method\", name: \"init\", static: false, private: false, access: { has: obj => \"init\" in obj, get: obj => obj.init }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _cleanup_decorators, { kind: \"method\", name: \"cleanup\", static: false, private: false, access: { has: obj => \"cleanup\" in obj, get: obj => obj.cleanup }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handleSrcChange_decorators, { kind: \"method\", name: \"handleSrcChange\", static: false, private: false, access: { has: obj => \"handleSrcChange\" in obj, get: obj => obj.handleSrcChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handleRssChange_decorators, { kind: \"method\", name: \"handleRssChange\", static: false, private: false, access: { has: obj => \"handleRssChange\" in obj, get: obj => obj.handleRssChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handleVolumeChange_decorators, { kind: \"method\", name: \"handleVolumeChange\", static: false, private: false, access: { has: obj => \"handleVolumeChange\" in obj, get: obj => obj.handleVolumeChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handleMutedChange_decorators, { kind: \"method\", name: \"handleMutedChange\", static: false, private: false, access: { has: obj => \"handleMutedChange\" in obj, get: obj => obj.handleMutedChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handlePlaybackRateChange_decorators, { kind: \"method\", name: \"handlePlaybackRateChange\", static: false, private: false, access: { has: obj => \"handlePlaybackRateChange\" in obj, get: obj => obj.handlePlaybackRateChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _renderPlayer_decorators, { kind: \"method\", name: \"renderPlayer\", static: false, private: false, access: { has: obj => \"renderPlayer\" in obj, get: obj => obj.renderPlayer }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitPlay_decorators, { kind: \"method\", name: \"emitPlay\", static: false, private: false, access: { has: obj => \"emitPlay\" in obj, get: obj => obj.emitPlay }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitPause_decorators, { kind: \"method\", name: \"emitPause\", static: false, private: false, access: { has: obj => \"emitPause\" in obj, get: obj => obj.emitPause }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitEnded_decorators, { kind: \"method\", name: \"emitEnded\", static: false, private: false, access: { has: obj => \"emitEnded\" in obj, get: obj => obj.emitEnded }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitTimeUpdate_decorators, { kind: \"method\", name: \"emitTimeUpdate\", static: false, private: false, access: { has: obj => \"emitTimeUpdate\" in obj, get: obj => obj.emitTimeUpdate }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitRateChange_decorators, { kind: \"method\", name: \"emitRateChange\", static: false, private: false, access: { has: obj => \"emitRateChange\" in obj, get: obj => obj.emitRateChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitEpisodeChange_decorators, { kind: \"method\", name: \"emitEpisodeChange\", static: false, private: false, access: { has: obj => \"emitEpisodeChange\" in obj, get: obj => obj.emitEpisodeChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitFeedLoaded_decorators, { kind: \"method\", name: \"emitFeedLoaded\", static: false, private: false, access: { has: obj => \"emitFeedLoaded\" in obj, get: obj => obj.emitFeedLoaded }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(null, null, _src_decorators, { kind: \"field\", name: \"src\", static: false, private: false, access: { has: obj => \"src\" in obj, get: obj => obj.src, set: (obj, value) => { obj.src = value; } }, metadata: _metadata }, _src_initializers, _src_extraInitializers);\n __esDecorate(null, null, _fromRss_decorators, { kind: \"field\", name: \"fromRss\", static: false, private: false, access: { has: obj => \"fromRss\" in obj, get: obj => obj.fromRss, set: (obj, value) => { obj.fromRss = value; } }, metadata: _metadata }, _fromRss_initializers, _fromRss_extraInitializers);\n __esDecorate(null, null, _title_decorators, { kind: \"field\", name: \"title\", static: false, private: false, access: { has: obj => \"title\" in obj, get: obj => obj.title, set: (obj, value) => { obj.title = value; } }, metadata: _metadata }, _title_initializers, _title_extraInitializers);\n __esDecorate(null, null, _show_decorators, { kind: \"field\", name: \"show\", static: false, private: false, access: { has: obj => \"show\" in obj, get: obj => obj.show, set: (obj, value) => { obj.show = value; } }, metadata: _metadata }, _show_initializers, _show_extraInitializers);\n __esDecorate(null, null, _artwork_decorators, { kind: \"field\", name: \"artwork\", static: false, private: false, access: { has: obj => \"artwork\" in obj, get: obj => obj.artwork, set: (obj, value) => { obj.artwork = value; } }, metadata: _metadata }, _artwork_initializers, _artwork_extraInitializers);\n __esDecorate(null, null, _description_decorators, { kind: \"field\", name: \"description\", static: false, private: false, access: { has: obj => \"description\" in obj, get: obj => obj.description, set: (obj, value) => { obj.description = value; } }, metadata: _metadata }, _description_initializers, _description_extraInitializers);\n __esDecorate(null, null, _playbackRate_decorators, { kind: \"field\", name: \"playbackRate\", static: false, private: false, access: { has: obj => \"playbackRate\" in obj, get: obj => obj.playbackRate, set: (obj, value) => { obj.playbackRate = value; } }, metadata: _metadata }, _playbackRate_initializers, _playbackRate_extraInitializers);\n __esDecorate(null, null, _skipForward_decorators, { kind: \"field\", name: \"skipForward\", static: false, private: false, access: { has: obj => \"skipForward\" in obj, get: obj => obj.skipForward, set: (obj, value) => { obj.skipForward = value; } }, metadata: _metadata }, _skipForward_initializers, _skipForward_extraInitializers);\n __esDecorate(null, null, _skipBack_decorators, { kind: \"field\", name: \"skipBack\", static: false, private: false, access: { has: obj => \"skipBack\" in obj, get: obj => obj.skipBack, set: (obj, value) => { obj.skipBack = value; } }, metadata: _metadata }, _skipBack_initializers, _skipBack_extraInitializers);\n __esDecorate(null, null, _currentTime_decorators, { kind: \"field\", name: \"currentTime\", static: false, private: false, access: { has: obj => \"currentTime\" in obj, get: obj => obj.currentTime, set: (obj, value) => { obj.currentTime = value; } }, metadata: _metadata }, _currentTime_initializers, _currentTime_extraInitializers);\n __esDecorate(null, null, _duration_decorators, { kind: \"field\", name: \"duration\", static: false, private: false, access: { has: obj => \"duration\" in obj, get: obj => obj.duration, set: (obj, value) => { obj.duration = value; } }, metadata: _metadata }, _duration_initializers, _duration_extraInitializers);\n __esDecorate(null, null, _volume_decorators, { kind: \"field\", name: \"volume\", static: false, private: false, access: { has: obj => \"volume\" in obj, get: obj => obj.volume, set: (obj, value) => { obj.volume = value; } }, metadata: _metadata }, _volume_initializers, _volume_extraInitializers);\n __esDecorate(null, null, _muted_decorators, { kind: \"field\", name: \"muted\", static: false, private: false, access: { has: obj => \"muted\" in obj, get: obj => obj.muted, set: (obj, value) => { obj.muted = value; } }, metadata: _metadata }, _muted_initializers, _muted_extraInitializers);\n __esDecorate(null, null, _episodes_decorators, { kind: \"field\", name: \"episodes\", static: false, private: false, access: { has: obj => \"episodes\" in obj, get: obj => obj.episodes, set: (obj, value) => { obj.episodes = value; } }, metadata: _metadata }, _episodes_initializers, _episodes_extraInitializers);\n __esDecorate(null, null, _currentEpisodeIndex_decorators, { kind: \"field\", name: \"currentEpisodeIndex\", static: false, private: false, access: { has: obj => \"currentEpisodeIndex\" in obj, get: obj => obj.currentEpisodeIndex, set: (obj, value) => { obj.currentEpisodeIndex = value; } }, metadata: _metadata }, _currentEpisodeIndex_initializers, _currentEpisodeIndex_extraInitializers);\n __esDecorate(null, null, _sleepTimer_decorators, { kind: \"field\", name: \"sleepTimer\", static: false, private: false, access: { has: obj => \"sleepTimer\" in obj, get: obj => obj.sleepTimer, set: (obj, value) => { obj.sleepTimer = value; } }, metadata: _metadata }, _sleepTimer_initializers, _sleepTimer_extraInitializers);\n __esDecorate(null, null, _progressElement_decorators, { kind: \"field\", name: \"progressElement\", static: false, private: false, access: { has: obj => \"progressElement\" in obj, get: obj => obj.progressElement, set: (obj, value) => { obj.progressElement = value; } }, metadata: _metadata }, _progressElement_initializers, _progressElement_extraInitializers);\n __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: \"class\", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);\n _classThis = _classDescriptor.value;\n if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });\n __runInitializers(_classThis, _classExtraInitializers);\n }\n componentStyles() {\n return css /*css*/ `${playerStyles}`;\n }\n init() {\n this.audioElement = new Audio();\n this.audioElement.volume = this.volume;\n this.audioElement.muted = this.muted;\n this.audioElement.playbackRate = this.playbackRate;\n this.audioElement.addEventListener('loadedmetadata', () => {\n this.duration = this.audioElement.duration;\n if (this.state === 'loading') {\n this.state = 'paused';\n }\n });\n this.audioElement.addEventListener('play', () => {\n this.state = 'playing';\n this.emitPlay();\n });\n this.audioElement.addEventListener('pause', () => {\n if (!this.audioElement.ended) {\n this.state = 'paused';\n this.savePosition();\n }\n this.emitPause();\n });\n this.audioElement.addEventListener('ended', () => {\n this.state = 'stopped';\n this.clearSavedPosition();\n this.emitEnded();\n });\n this.audioElement.addEventListener('timeupdate', () => {\n this.currentTime = this.audioElement.currentTime;\n this.emitTimeUpdate();\n });\n this.audioElement.addEventListener('error', () => {\n this.state = 'error';\n });\n // Load src if provided directly\n if (this.src) {\n this.loadSrc(this.src);\n }\n // Fetch RSS if provided\n if (this.fromRss) {\n this.fetchRSS(this.fromRss);\n }\n }\n cleanup() {\n this.savePosition();\n this.clearSleepTimer();\n if (this.audioElement) {\n this.audioElement.pause();\n this.audioElement.src = '';\n this.audioElement = null;\n }\n }\n handleSrcChange(_oldVal, newVal) {\n if (newVal) {\n this.loadSrc(newVal);\n }\n }\n handleRssChange(_oldVal, newVal) {\n if (newVal) {\n this.fetchRSS(newVal);\n }\n }\n handleVolumeChange(_oldVal, newVal) {\n if (this.audioElement && newVal >= 0 && newVal <= 1) {\n this.audioElement.volume = newVal;\n }\n }\n handleMutedChange(_oldVal, newVal) {\n if (this.audioElement) {\n this.audioElement.muted = newVal;\n }\n }\n handlePlaybackRateChange(_oldVal, newVal) {\n if (this.audioElement && newVal >= 0.5 && newVal <= 2) {\n this.audioElement.playbackRate = newVal;\n this.emitRateChange();\n }\n }\n renderPlayer() {\n const currentEpisode = this.getCurrentEpisode();\n const displayTitle = currentEpisode?.title || this.title || 'No episode loaded';\n const displayShow = currentEpisode ? this.show : this.show;\n const displayArtwork = currentEpisode?.artwork || this.artwork;\n const displayDescription = currentEpisode?.description || this.description;\n const chapters = currentEpisode?.chapters || [];\n const progress = this.duration > 0 ? (this.currentTime / this.duration) * 100 : 0;\n const isPlaying = this.state === 'playing';\n const hasSource = !!this.src || this.currentEpisodeIndex >= 0;\n const rateIsNotOne = this.playbackRate !== 1;\n const hasSleepTimer = this.sleepTimerRemaining > 0;\n const hasChapters = chapters.length > 0;\n const hasEpisodes = this.episodes.length > 0;\n const showVolSlider = this.showVolumeSlider;\n const isMutedOrZero = this.muted || this.volume === 0;\n const isHighVolume = !this.muted && this.volume > 0.5;\n return html /*html*/ `\n <div class=\"podcast-container\">\n <div class=\"podcast-info\">\n <div class=\"podcast-artwork\">\n <if ${displayArtwork}>\n <img src=\"${displayArtwork}\" alt=\"${displayTitle}\" />\n </if>\n <if ${!displayArtwork}>\n <div class=\"podcast-artwork-placeholder\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"48\" height=\"48\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\">\n <path d=\"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z\"/>\n <path d=\"M19 10v2a7 7 0 0 1-14 0v-2\"/>\n <line x1=\"12\" y1=\"19\" x2=\"12\" y2=\"23\"/>\n <line x1=\"8\" y1=\"23\" x2=\"16\" y2=\"23\"/>\n </svg>\n </div>\n </if>\n </div>\n\n <div class=\"podcast-meta\">\n <if ${displayShow}>\n <div class=\"podcast-show\">${displayShow}</div>\n </if>\n <div class=\"podcast-title\">${displayTitle}</div>\n <if ${displayDescription}>\n <div class=\"podcast-description\">${displayDescription}</div>\n </if>\n </div>\n </div>\n\n <div class=\"podcast-controls\">\n <div class=\"podcast-control-buttons\">\n <button\n class=\"podcast-btn podcast-btn-speed ${rateIsNotOne ? 'active' : ''}\"\n @click=${() => this.cyclePlaybackRate()}\n title=\"Playback speed\"\n >${this.playbackRate}x</button>\n\n <button\n class=\"podcast-btn\"\n @click=${() => this.doSkipBack()}\n title=\"Skip back ${this.skipBack}s\"\n ?disabled=${!hasSource}\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"28\" height=\"28\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\">\n <path d=\"M1 4v6h6\"/>\n <path d=\"M3.51 15a9 9 0 1 0 2.13-9.36L1 10\"/>\n </svg>\n <span class=\"podcast-btn-skip-label\">${this.skipBack}</span>\n </button>\n\n <button\n class=\"podcast-btn podcast-btn-play\"\n @click=${() => this.toggle()}\n title=\"${isPlaying ? 'Pause' : 'Play'}\"\n ?disabled=${!hasSource}\n >\n <if ${isPlaying}>\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"28\" height=\"28\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <rect x=\"6\" y=\"4\" width=\"4\" height=\"16\"></rect>\n <rect x=\"14\" y=\"4\" width=\"4\" height=\"16\"></rect>\n </svg>\n </if>\n <if ${!isPlaying}>\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"28\" height=\"28\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M8 5v14l11-7z\"/>\n </svg>\n </if>\n </button>\n\n <button\n class=\"podcast-btn\"\n @click=${() => this.doSkipForward()}\n title=\"Skip forward ${this.skipForward}s\"\n ?disabled=${!hasSource}\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"28\" height=\"28\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\">\n <path d=\"M23 4v6h-6\"/>\n <path d=\"M20.49 15a9 9 0 1 1-2.12-9.36L23 10\"/>\n </svg>\n <span class=\"podcast-btn-skip-label\">${this.skipForward}</span>\n </button>\n\n <button\n class=\"podcast-btn podcast-btn-sleep ${hasSleepTimer ? 'active' : ''}\"\n @click=${() => this.cycleSleepTimer()}\n title=\"Sleep timer\"\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\">\n <path d=\"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z\"/>\n </svg>\n </button>\n </div>\n\n <div class=\"podcast-progress-container\">\n <span class=\"podcast-time podcast-time-current\">${this.formatTime(this.currentTime)}</span>\n <div class=\"podcast-progress\" @click=${(e) => this.handleSeek(e)}>\n <div class=\"podcast-progress-bar\" style=\"width: ${progress}%\"></div>\n </div>\n <span class=\"podcast-time podcast-time-remaining\">-${this.formatTime(this.duration - this.currentTime)}</span>\n </div>\n </div>\n\n <div class=\"podcast-bottom-bar\">\n <div class=\"podcast-volume\">\n <button\n class=\"podcast-btn\"\n @click=${() => this.toggleVolumeSlider()}\n title=\"Volume\"\n >\n <if ${isMutedOrZero}>\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\">\n <path d=\"M11 5L6 9H2v6h4l5 4V5z\"/>\n <line x1=\"23\" y1=\"9\" x2=\"17\" y2=\"15\"/>\n <line x1=\"17\" y1=\"9\" x2=\"23\" y2=\"15\"/>\n </svg>\n </if>\n <if ${isHighVolume}>\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\">\n <path d=\"M11 5L6 9H2v6h4l5 4V5z\"/>\n <path d=\"M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07\"/>\n </svg>\n </if>\n <if ${!isMutedOrZero && !isHighVolume}>\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\">\n <path d=\"M11 5L6 9H2v6h4l5 4V5z\"/>\n <path d=\"M15.54 8.46a5 5 0 0 1 0 7.07\"/>\n </svg>\n </if>\n </button>\n <if ${showVolSlider}>\n <div class=\"podcast-volume-slider-container\">\n <input\n class=\"podcast-volume-slider\"\n type=\"range\"\n min=\"0\"\n max=\"1\"\n step=\"0.01\"\n .value=${this.volume.toString()}\n style=\"--volume-percent: ${this.volume * 100}%\"\n @input=${(e) => this.handleVolumeInput(e)}\n />\n </div>\n </if>\n </div>\n\n <if ${hasSleepTimer}>\n <div class=\"podcast-sleep\">\n <span class=\"podcast-sleep-label\">Sleep in</span>\n <span class=\"podcast-sleep-time\">${this.formatTime(this.sleepTimerRemaining)}</span>\n </div>\n </if>\n </div>\n\n <if ${hasChapters}>\n <div class=\"podcast-chapters\">\n <div class=\"podcast-chapters-header\">Chapters</div>\n ${chapters.map((chapter, i) => {\n const isActive = this.isActiveChapter(chapter, chapters, i);\n return html /*html*/ `\n <div\n class=\"podcast-chapter-item ${isActive ? 'active' : ''}\"\n @click=${() => this.seekTo(chapter.startTime)}\n >\n <span class=\"podcast-chapter-time\">${this.formatTime(chapter.startTime)}</span>\n <span class=\"podcast-chapter-title\">${chapter.title}</span>\n </div>\n `;\n })}\n </div>\n </if>\n\n <if ${hasEpisodes}>\n <div class=\"podcast-episodes\">\n <div class=\"podcast-episodes-header\">Episodes</div>\n <div class=\"podcast-episode-list\">\n ${this.episodes.map((episode, index) => {\n const isActive = index === this.currentEpisodeIndex;\n const isEpPlaying = isActive && isPlaying;\n return html /*html*/ `\n <div\n class=\"podcast-episode-item ${isActive ? 'active' : ''}\"\n @click=${() => this.loadEpisode(index)}\n >\n <if ${episode.artwork}>\n <img class=\"podcast-episode-artwork\" src=\"${episode.artwork}\" alt=\"${episode.title}\" />\n </if>\n <div class=\"podcast-episode-info\">\n <div class=\"podcast-episode-title\">${episode.title}</div>\n <if ${episode.pubDate}>\n <div class=\"podcast-episode-date\">${episode.pubDate}</div>\n </if>\n </div>\n <if ${isEpPlaying}>\n <div class=\"podcast-episode-playing-icon\">\n <span></span><span></span><span></span>\n </div>\n </if>\n <if ${!isEpPlaying && episode.duration}>\n <div class=\"podcast-episode-duration\">${this.formatTime(episode.duration || 0)}</div>\n </if>\n </div>\n `;\n })}\n </div>\n </div>\n </if>\n </div>\n `;\n }\n // --- Public Methods ---\n async play() {\n if (!this.audioElement || !this.audioElement.src)\n return;\n try {\n await this.audioElement.play();\n }\n catch {\n this.state = 'error';\n }\n }\n pause() {\n if (!this.audioElement)\n return;\n this.audioElement.pause();\n }\n toggle() {\n if (this.state === 'playing') {\n this.pause();\n }\n else {\n this.play();\n }\n }\n doSkipForward() {\n if (!this.audioElement)\n return;\n this.seekTo(Math.min(this.currentTime + this.skipForward, this.duration));\n }\n doSkipBack() {\n if (!this.audioElement)\n return;\n this.seekTo(Math.max(this.currentTime - this.skipBack, 0));\n }\n seekTo(time) {\n if (!this.audioElement)\n return;\n this.audioElement.currentTime = time;\n this.currentTime = time;\n }\n setPlaybackRate(rate) {\n if (rate < 0.5 || rate > 2)\n return;\n this.playbackRate = rate;\n }\n loadEpisode(index) {\n if (index < 0 || index >= this.episodes.length)\n return;\n // Save position of current episode before switching\n this.savePosition();\n const episode = this.episodes[index];\n this.currentEpisodeIndex = index;\n this.title = episode.title;\n if (episode.artwork)\n this.artwork = episode.artwork;\n if (episode.description)\n this.description = episode.description;\n this.loadSrc(episode.src);\n this.emitEpisodeChange(episode, index);\n // Restore saved position for this episode\n const saved = this.getSavedPosition(episode.src);\n if (saved > 0) {\n // Wait for metadata to load before seeking\n const onLoaded = () => {\n this.seekTo(saved);\n this.audioElement?.removeEventListener('loadedmetadata', onLoaded);\n };\n this.audioElement?.addEventListener('loadedmetadata', onLoaded);\n }\n }\n // --- Private Methods ---\n loadSrc(src) {\n if (!this.audioElement)\n return;\n this.state = 'loading';\n this.audioElement.src = src;\n this.audioElement.load();\n this.currentTime = 0;\n this.duration = 0;\n }\n async fetchRSS(url) {\n try {\n const response = await fetch(url);\n const text = await response.text();\n const feed = this.parseRSS(text);\n if (feed.title && !this.show)\n this.show = feed.title;\n if (feed.artwork && !this.artwork)\n this.artwork = feed.artwork;\n if (feed.description && !this.description)\n this.description = feed.description;\n this.episodes = feed.episodes;\n this.emitFeedLoaded(feed);\n }\n catch {\n this.state = 'error';\n }\n }\n parseRSS(xml) {\n const parser = new DOMParser();\n const doc = parser.parseFromString(xml, 'application/xml');\n const channel = doc.querySelector('channel');\n const title = channel?.querySelector('title')?.textContent || '';\n const description = channel?.querySelector('description')?.textContent || '';\n // Try itunes:image first, then regular image\n const itunesImage = channel?.querySelector('image[href]')?.getAttribute('href')\n || channel?.getElementsByTagNameNS('http://www.itunes.com/dtds/podcast-1.0.dtd', 'image')?.[0]?.getAttribute('href');\n const regularImage = channel?.querySelector('image > url')?.textContent;\n const artwork = itunesImage || regularImage || '';\n const items = channel?.querySelectorAll('item') || [];\n const episodes = [];\n items.forEach(item => {\n const epTitle = item.querySelector('title')?.textContent || '';\n const enclosure = item.querySelector('enclosure');\n const src = enclosure?.getAttribute('url') || '';\n if (!src)\n return;\n const epDescription = item.querySelector('description')?.textContent || '';\n const pubDate = item.querySelector('pubDate')?.textContent || '';\n // Parse itunes:duration\n const itunesDuration = item.getElementsByTagNameNS('http://www.itunes.com/dtds/podcast-1.0.dtd', 'duration')?.[0]?.textContent;\n const duration = itunesDuration ? this.parseDuration(itunesDuration) : undefined;\n // Episode artwork\n const epImage = item.getElementsByTagNameNS('http://www.itunes.com/dtds/podcast-1.0.dtd', 'image')?.[0]?.getAttribute('href') || '';\n episodes.push({\n title: epTitle,\n src,\n artwork: epImage || artwork,\n description: epDescription,\n pubDate: pubDate ? this.formatDate(pubDate) : undefined,\n duration,\n });\n });\n return { title, artwork, description, episodes };\n }\n parseDuration(duration) {\n // Handle HH:MM:SS, MM:SS, or plain seconds\n const parts = duration.split(':').map(Number);\n if (parts.length === 3)\n return parts[0] * 3600 + parts[1] * 60 + parts[2];\n if (parts.length === 2)\n return parts[0] * 60 + parts[1];\n return parts[0] || 0;\n }\n formatDate(dateStr) {\n try {\n const date = new Date(dateStr);\n return date.toLocaleDateString(undefined, { year: 'numeric', month: 'short', day: 'numeric' });\n }\n catch {\n return dateStr;\n }\n }\n cyclePlaybackRate() {\n const idx = PLAYBACK_RATES.indexOf(this.playbackRate);\n const nextIdx = (idx + 1) % PLAYBACK_RATES.length;\n this.setPlaybackRate(PLAYBACK_RATES[nextIdx]);\n }\n cycleSleepTimer() {\n const currentMinutes = Math.ceil(this.sleepTimerRemaining / 60);\n const idx = SLEEP_OPTIONS.findIndex(opt => opt >= currentMinutes);\n const nextIdx = (idx + 1) % SLEEP_OPTIONS.length;\n const minutes = SLEEP_OPTIONS[nextIdx];\n this.clearSleepTimer();\n if (minutes > 0) {\n this.sleepTimerRemaining = minutes * 60;\n this.sleepTimerInterval = window.setInterval(() => {\n this.sleepTimerRemaining--;\n if (this.sleepTimerRemaining <= 0) {\n this.pause();\n this.clearSleepTimer();\n }\n }, 1000);\n }\n }\n clearSleepTimer() {\n if (this.sleepTimerInterval !== null) {\n clearInterval(this.sleepTimerInterval);\n this.sleepTimerInterval = null;\n }\n this.sleepTimerRemaining = 0;\n }\n handleSeek(e) {\n if (!this.progressElement || this.duration === 0)\n return;\n const rect = this.progressElement.getBoundingClientRect();\n const percent = (e.clientX - rect.left) / rect.width;\n this.seekTo(percent * this.duration);\n }\n handleVolumeInput(e) {\n const input = e.target;\n const vol = parseFloat(input.value);\n input.style.setProperty('--volume-percent', `${vol * 100}%`);\n this.volume = vol;\n if (vol > 0 && this.muted)\n this.muted = false;\n }\n toggleVolumeSlider() {\n this.showVolumeSlider = !this.showVolumeSlider;\n }\n getCurrentEpisode() {\n if (this.currentEpisodeIndex >= 0 && this.currentEpisodeIndex < this.episodes.length) {\n return this.episodes[this.currentEpisodeIndex];\n }\n return null;\n }\n isActiveChapter(chapter, chapters, index) {\n const nextChapter = chapters[index + 1];\n const endTime = chapter.endTime || (nextChapter ? nextChapter.startTime : this.duration);\n return this.currentTime >= chapter.startTime && this.currentTime < endTime;\n }\n formatTime(seconds) {\n if (isNaN(seconds) || seconds === Infinity || seconds < 0)\n return '0:00';\n const h = Math.floor(seconds / 3600);\n const m = Math.floor((seconds % 3600) / 60);\n const s = Math.floor(seconds % 60);\n if (h > 0) {\n return `${h}:${m.toString().padStart(2, '0')}:${s.toString().padStart(2, '0')}`;\n }\n return `${m}:${s.toString().padStart(2, '0')}`;\n }\n // --- localStorage position memory ---\n getStorageKey(src) {\n return STORAGE_KEY_PREFIX + (src || this.audioElement?.src || '');\n }\n savePosition() {\n if (!this.audioElement?.src || this.currentTime < 5)\n return;\n try {\n localStorage.setItem(this.getStorageKey(), String(this.currentTime));\n }\n catch { /* storage full or unavailable */ }\n }\n getSavedPosition(src) {\n try {\n const saved = localStorage.getItem(this.getStorageKey(src));\n return saved ? parseFloat(saved) : 0;\n }\n catch {\n return 0;\n }\n }\n clearSavedPosition() {\n try {\n localStorage.removeItem(this.getStorageKey());\n }\n catch { /* ignore */ }\n }\n // --- Events ---\n emitPlay() {\n return { player: this, episode: this.getCurrentEpisode() };\n }\n emitPause() {\n return { player: this, episode: this.getCurrentEpisode() };\n }\n emitEnded() {\n return { player: this, episode: this.getCurrentEpisode() };\n }\n emitTimeUpdate() {\n return { player: this, currentTime: this.currentTime, duration: this.duration };\n }\n emitRateChange() {\n return { player: this, rate: this.playbackRate };\n }\n emitEpisodeChange(episode, index) {\n return { player: this, episode, index };\n }\n emitFeedLoaded(feed) {\n return { player: this, feed };\n }\n constructor() {\n super(...arguments);\n this.src = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _src_initializers, ''));\n this.fromRss = (__runInitializers(this, _src_extraInitializers), __runInitializers(this, _fromRss_initializers, ''));\n this.title = (__runInitializers(this, _fromRss_extraInitializers), __runInitializers(this, _title_initializers, ''));\n this.show = (__runInitializers(this, _title_extraInitializers), __runInitializers(this, _show_initializers, ''));\n this.artwork = (__runInitializers(this, _show_extraInitializers), __runInitializers(this, _artwork_initializers, ''));\n this.description = (__runInitializers(this, _artwork_extraInitializers), __runInitializers(this, _description_initializers, ''));\n this.playbackRate = (__runInitializers(this, _description_extraInitializers), __runInitializers(this, _playbackRate_initializers, 1));\n this.skipForward = (__runInitializers(this, _playbackRate_extraInitializers), __runInitializers(this, _skipForward_initializers, 30));\n this.skipBack = (__runInitializers(this, _skipForward_extraInitializers), __runInitializers(this, _skipBack_initializers, 15));\n this.currentTime = (__runInitializers(this, _skipBack_extraInitializers), __runInitializers(this, _currentTime_initializers, 0));\n this.duration = (__runInitializers(this, _currentTime_extraInitializers), __runInitializers(this, _duration_initializers, 0));\n this.volume = (__runInitializers(this, _duration_extraInitializers), __runInitializers(this, _volume_initializers, 1));\n this.muted = (__runInitializers(this, _volume_extraInitializers), __runInitializers(this, _muted_initializers, false));\n this.episodes = (__runInitializers(this, _muted_extraInitializers), __runInitializers(this, _episodes_initializers, []));\n this.currentEpisodeIndex = (__runInitializers(this, _episodes_extraInitializers), __runInitializers(this, _currentEpisodeIndex_initializers, -1));\n this.sleepTimer = (__runInitializers(this, _currentEpisodeIndex_extraInitializers), __runInitializers(this, _sleepTimer_initializers, 0));\n this.state = (__runInitializers(this, _sleepTimer_extraInitializers), 'stopped');\n this.audioElement = null;\n this.sleepTimerInterval = null;\n this.sleepTimerRemaining = 0;\n this.showVolumeSlider = false;\n this.progressElement = __runInitializers(this, _progressElement_initializers, void 0);\n __runInitializers(this, _progressElement_extraInitializers);\n }\n });\n return _classThis;\n})();\n\nexport { SnicePodcastPlayer };\n//# sourceMappingURL=snice-podcast-player.js.map\n"],"names":["__esDecorate","ctor","descriptorIn","decorators","contextIn","initializers","extraInitializers","accept","f","TypeError","_","kind","key","target","prototype","descriptor","Object","getOwnPropertyDescriptor","name","done","i","length","context","p","access","addInitializer","push","result","get","set","init","unshift","defineProperty","__runInitializers","thisArg","value","useValue","arguments","call","SuppressedError","PLAYBACK_RATES","SLEEP_OPTIONS","SnicePodcastPlayer","_classDescriptor","_classThis","_src_decorators","_fromRss_decorators","_title_decorators","_show_decorators","_artwork_decorators","_description_decorators","_playbackRate_decorators","_skipForward_decorators","_skipBack_decorators","_currentTime_decorators","_duration_decorators","_volume_decorators","_muted_decorators","_episodes_decorators","_currentEpisodeIndex_decorators","_sleepTimer_decorators","_progressElement_decorators","_componentStyles_decorators","_init_decorators","_cleanup_decorators","_handleSrcChange_decorators","_handleRssChange_decorators","_handleVolumeChange_decorators","_handleMutedChange_decorators","_handlePlaybackRateChange_decorators","_renderPlayer_decorators","_emitPlay_decorators","_emitPause_decorators","_emitEnded_decorators","_emitTimeUpdate_decorators","_emitRateChange_decorators","_emitEpisodeChange_decorators","_emitFeedLoaded_decorators","_classDecorators","element","_classExtraInitializers","_classSuper","HTMLElement","_instanceExtraInitializers","_src_initializers","_src_extraInitializers","_fromRss_initializers","_fromRss_extraInitializers","_title_initializers","_title_extraInitializers","_show_initializers","_show_extraInitializers","_artwork_initializers","_artwork_extraInitializers","_description_initializers","_description_extraInitializers","_playbackRate_initializers","_playbackRate_extraInitializers","_skipForward_initializers","_skipForward_extraInitializers","_skipBack_initializers","_skipBack_extraInitializers","_currentTime_initializers","_currentTime_extraInitializers","_duration_initializers","_duration_extraInitializers","_volume_initializers","_volume_extraInitializers","_muted_initializers","_muted_extraInitializers","_episodes_initializers","_episodes_extraInitializers","_currentEpisodeIndex_initializers","_currentEpisodeIndex_extraInitializers","_sleepTimer_initializers","_sleepTimer_extraInitializers","_progressElement_initializers","_progressElement_extraInitializers","this","_metadata","Symbol","metadata","create","property","attribute","type","Number","Boolean","Array","query","styles","ready","dispose","watch","render","dispatch","bubbles","composed","static","private","has","obj","componentStyles","cleanup","handleSrcChange","handleRssChange","handleVolumeChange","handleMutedChange","handlePlaybackRateChange","renderPlayer","emitPlay","emitPause","emitEnded","emitTimeUpdate","emitRateChange","emitEpisodeChange","emitFeedLoaded","src","fromRss","title","show","artwork","description","playbackRate","skipForward","skipBack","currentTime","duration","volume","muted","episodes","currentEpisodeIndex","sleepTimer","progressElement","enumerable","configurable","writable","css","audioElement","Audio","addEventListener","state","ended","savePosition","clearSavedPosition","loadSrc","fetchRSS","clearSleepTimer","pause","_oldVal","newVal","currentEpisode","getCurrentEpisode","displayTitle","displayShow","displayArtwork","displayDescription","chapters","progress","isPlaying","hasSource","rateIsNotOne","hasSleepTimer","sleepTimerRemaining","hasChapters","hasEpisodes","showVolSlider","showVolumeSlider","isMutedOrZero","isHighVolume","html","cyclePlaybackRate","doSkipBack","toggle","doSkipForward","cycleSleepTimer","formatTime","e","handleSeek","toggleVolumeSlider","toString","handleVolumeInput","map","chapter","isActive","isActiveChapter","seekTo","startTime","episode","index","isEpPlaying","loadEpisode","pubDate","play","Math","min","max","time","setPlaybackRate","rate","saved","getSavedPosition","onLoaded","removeEventListener","load","url","response","fetch","text","feed","parseRSS","xml","channel","DOMParser","parseFromString","querySelector","textContent","itunesImage","getAttribute","getElementsByTagNameNS","regularImage","items","querySelectorAll","forEach","item","epTitle","enclosure","epDescription","itunesDuration","parseDuration","undefined","epImage","formatDate","parts","split","dateStr","Date","toLocaleDateString","year","month","day","nextIdx","indexOf","currentMinutes","ceil","findIndex","opt","minutes","sleepTimerInterval","window","setInterval","clearInterval","rect","getBoundingClientRect","percent","clientX","left","width","input","vol","parseFloat","style","setProperty","nextChapter","endTime","seconds","isNaN","Infinity","h","floor","m","s","padStart","getStorageKey","localStorage","setItem","String","getItem","removeItem","player","constructor","super"],"mappings":";;;;;;4KAiEO,SAASA,EAAaC,EAAMC,EAAcC,EAAYC,EAAWC,EAAcC,GACpF,SAASC,EAAOC,GAAK,QAAU,IAANA,GAA6B,mBAANA,EAAkB,MAAM,IAAIC,UAAU,qBAAsB,OAAOD,CAAG,CAKtH,IAJA,IAGIE,EAHAC,EAAOP,EAAUO,KAAMC,EAAe,WAATD,EAAoB,MAAiB,WAATA,EAAoB,MAAQ,QACrFE,GAAUX,GAAgBD,EAAOG,EAAkB,OAAIH,EAAOA,EAAKa,UAAY,KAC/EC,EAAab,IAAiBW,EAASG,OAAOC,yBAAyBJ,EAAQT,EAAUc,MAAQ,IAC9FC,GAAO,EACLC,EAAIjB,EAAWkB,OAAS,EAAGD,GAAK,EAAGA,IAAK,CAC7C,IAAIE,EAAU,CAAA,EACd,IAAK,IAAIC,KAAKnB,EAAWkB,EAAQC,GAAW,WAANA,EAAiB,CAAA,EAAKnB,EAAUmB,GACtE,IAAK,IAAIA,KAAKnB,EAAUoB,OAAQF,EAAQE,OAAOD,GAAKnB,EAAUoB,OAAOD,GACrED,EAAQG,eAAiB,SAAUjB,GAAK,GAAIW,EAAM,MAAM,IAAIV,UAAU,0DAA2DH,EAAkBoB,KAAKnB,EAAOC,GAAK,MAAQ,EAC5K,IAAImB,GAAS,EAAIxB,EAAWiB,IAAa,aAATT,EAAsB,CAAEiB,IAAKb,EAAWa,IAAKC,IAAKd,EAAWc,KAAQd,EAAWH,GAAMU,GACtH,GAAa,aAATX,EAAqB,CACrB,QAAe,IAAXgB,EAAmB,SACvB,GAAe,OAAXA,GAAqC,iBAAXA,EAAqB,MAAM,IAAI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M,KAAKsD,YAAc3I,EAAkBqF,KAAML,IAAyChF,EAAkBqF,KAAMJ,GAA0B,IACtII,KAAK+D,OAASpJ,EAAkBqF,KAAMH,IAAgC,WACtEG,KAAK4D,aAAe,KACpB5D,KAAK0K,mBAAqB,KAC1B1K,KAAKqF,oBAAsB,EAC3BrF,KAAKyF,kBAAmB,EACxBzF,KAAKuD,gBAAkB5I,EAAkBqF,KAAMF,QAA+B,GAC9EnF,EAAkBqF,KAAMD,GAC5B,GAEGzE,CACV,EApvBwB","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"snice-podcast-player.min.js","sources":["../../../node_modules/tslib/tslib.es6.mjs","../../components/podcast-player/snice-podcast-player.js"],"sourcesContent":["/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\n\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n }\n return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\n\nexport function __generator(thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n}\n\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n}\n\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n};\n\nvar ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n};\n\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n}\n\nexport function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n else s |= 1;\n }\n catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n}\n\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\n });\n }\n return path;\n}\n\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __esDecorate,\n __runInitializers,\n __propKey,\n __setFunctionName,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources,\n __rewriteRelativeImportExtension,\n};\n","import { __esDecorate, __runInitializers } from 'tslib';\nimport { element, property, query, styles, ready, dispose, watch, render, dispatch, css, html } from 'snice';\n\nvar playerStyles = \":host{display:block;font-family:var(--snice-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);contain:layout style paint}.podcast-container{background:var(--snice-color-background,rgb(255 255 255));border:1px solid var(--snice-color-border,rgb(226 226 226));border-radius:var(--snice-border-radius-lg,.5rem);padding:var(--snice-spacing-lg,1.5rem);box-shadow:var(--snice-shadow-md,0 4px 6px -1px rgb(0 0 0 / .1),0 2px 4px -2px rgb(0 0 0 / .1))}.podcast-info{display:flex;gap:var(--snice-spacing-md,1rem);margin-bottom:var(--snice-spacing-lg,1.5rem)}.podcast-artwork{flex-shrink:0;width:7.5rem;height:7.5rem;border-radius:var(--snice-border-radius-lg,.5rem);overflow:hidden;background:var(--snice-color-background-element,rgb(252 251 249));display:flex;align-items:center;justify-content:center}.podcast-artwork img{width:100%;height:100%;object-fit:cover}.podcast-artwork-placeholder{color:var(--snice-color-text-tertiary,rgb(115 115 115))}.podcast-meta{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center}.podcast-show{font-size:var(--snice-font-size-sm, .875rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--snice-color-primary,rgb(37 99 235));margin-bottom:var(--snice-spacing-3xs,.125rem);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-transform:uppercase;letter-spacing:.05em}.podcast-title{font-size:var(--snice-font-size-lg, 1.125rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--snice-color-text,rgb(23 23 23));margin-bottom:var(--snice-spacing-xs,.5rem);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.podcast-description{font-size:var(--snice-font-size-sm, .875rem);color:var(--snice-color-text-secondary,rgb(82 82 82));line-height:var(--snice-line-height-normal, 1.5);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.podcast-controls{margin-bottom:var(--snice-spacing-md,1rem)}.podcast-control-buttons{display:flex;align-items:center;justify-content:center;gap:var(--snice-spacing-md,1rem);margin-bottom:var(--snice-spacing-md,1rem)}.podcast-btn{background:0 0;border:none;cursor:pointer;padding:var(--snice-spacing-xs,.5rem);border-radius:var(--snice-border-radius-md,.25rem);color:var(--snice-color-text,rgb(23 23 23));display:inline-flex;align-items:center;justify-content:center;transition:background-color var(--snice-transition-fast, 150ms) ease;position:relative}.podcast-btn:hover:not(:disabled){background:var(--snice-color-background-hover,rgb(241 241 241))}.podcast-btn:active:not(:disabled){background:var(--snice-color-background-active,rgb(226 226 226))}.podcast-btn:disabled{opacity:.5;cursor:not-allowed}.podcast-btn-skip-label{position:absolute;font-size:.5rem;font-weight:var(--snice-font-weight-bold,700);color:var(--snice-color-text,rgb(23 23 23));top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none}.podcast-btn-play{background:var(--snice-color-primary,rgb(37 99 235));color:var(--snice-color-text-inverse,rgb(250 250 250));padding:var(--snice-spacing-md,1rem);border-radius:50%}.podcast-btn-play:hover:not(:disabled){background:var(--snice-color-primary-hover,rgb(29 78 216))}.podcast-btn-speed{font-size:var(--snice-font-size-sm, .875rem);font-weight:var(--snice-font-weight-semibold,600);min-width:2.75rem;padding:var(--snice-spacing-2xs,.25rem) var(--snice-spacing-xs,.5rem);border:1px solid var(--snice-color-border,rgb(226 226 226));border-radius:var(--snice-border-radius-md,.25rem)}.podcast-btn-speed.active{color:var(--snice-color-primary,rgb(37 99 235));border-color:var(--snice-color-primary,rgb(37 99 235))}.podcast-progress-container{display:flex;align-items:center;gap:var(--snice-spacing-sm,.75rem)}.podcast-time{font-size:var(--snice-font-size-xs, .75rem);font-variant-numeric:tabular-nums;color:var(--snice-color-text-secondary,rgb(82 82 82));min-width:2.75rem}.podcast-time-current{text-align:right}.podcast-time-remaining{text-align:left}.podcast-progress{flex:1;height:.375rem;background:var(--snice-color-background-element,rgb(252 251 249));border-radius:9999px;cursor:pointer;position:relative;overflow:hidden}.podcast-progress:hover{height:.5rem}.podcast-progress-bar{height:100%;background:var(--snice-color-primary,rgb(37 99 235));border-radius:9999px;transition:width .1s linear}.podcast-volume{display:flex;align-items:center;gap:var(--snice-spacing-xs,.5rem)}.podcast-volume-slider-container{display:flex;align-items:center}.podcast-volume-slider{-webkit-appearance:none;appearance:none;width:5rem;height:.375rem;background:linear-gradient(to right,var(--snice-color-primary,rgb(37 99 235)) 0,var(--snice-color-primary,rgb(37 99 235)) var(--volume-percent,100%),var(--snice-color-background-element,rgb(252 251 249)) var(--volume-percent,100%),var(--snice-color-background-element,rgb(252 251 249)) 100%);border-radius:9999px;outline:0;cursor:pointer}.podcast-volume-slider::-webkit-slider-runnable-track{width:100%;height:.375rem;background:0 0;border-radius:9999px}.podcast-volume-slider::-moz-range-track{width:100%;height:.375rem;background:var(--snice-color-background-element,rgb(252 251 249));border-radius:9999px}.podcast-volume-slider::-moz-range-progress{height:.375rem;background:var(--snice-color-primary,rgb(37 99 235));border-radius:9999px}.podcast-volume-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:.875rem;height:.875rem;background:var(--snice-color-primary,rgb(37 99 235));border-radius:50%;cursor:pointer;margin-top:-.25rem}.podcast-volume-slider::-moz-range-thumb{width:.875rem;height:.875rem;background:var(--snice-color-primary,rgb(37 99 235));border:none;border-radius:50%;cursor:pointer}.podcast-bottom-bar{display:flex;align-items:center;justify-content:space-between;margin-top:var(--snice-spacing-sm,.75rem)}.podcast-sleep{display:flex;align-items:center;gap:var(--snice-spacing-2xs,.25rem)}.podcast-sleep-label{font-size:var(--snice-font-size-xs, .75rem);color:var(--snice-color-text-tertiary,rgb(115 115 115))}.podcast-sleep-time{font-size:var(--snice-font-size-xs, .75rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--snice-color-primary,rgb(37 99 235));font-variant-numeric:tabular-nums}.podcast-btn-sleep{font-size:var(--snice-font-size-xs, .75rem);padding:var(--snice-spacing-3xs,.125rem) var(--snice-spacing-xs,.5rem);border:1px solid var(--snice-color-border,rgb(226 226 226));border-radius:var(--snice-border-radius-md,.25rem)}.podcast-btn-sleep.active{color:var(--snice-color-primary,rgb(37 99 235));border-color:var(--snice-color-primary,rgb(37 99 235))}.podcast-chapters{border-top:1px solid var(--snice-color-border,rgb(226 226 226));padding-top:var(--snice-spacing-md,1rem);margin-top:var(--snice-spacing-md,1rem)}.podcast-chapters-header{font-size:var(--snice-font-size-sm, .875rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--snice-color-text,rgb(23 23 23));margin-bottom:var(--snice-spacing-sm,.75rem)}.podcast-chapter-item{display:flex;align-items:center;gap:var(--snice-spacing-sm,.75rem);padding:var(--snice-spacing-xs,.5rem) var(--snice-spacing-sm,.75rem);border-radius:var(--snice-border-radius-md,.25rem);cursor:pointer;transition:background-color var(--snice-transition-fast, 150ms) ease}.podcast-chapter-item:hover{background:var(--snice-color-background-hover,rgb(241 241 241))}.podcast-chapter-item.active{background:var(--snice-color-primary-subtle,rgb(239 246 255))}.podcast-chapter-time{font-size:var(--snice-font-size-xs, .75rem);font-variant-numeric:tabular-nums;color:var(--snice-color-text-tertiary,rgb(115 115 115));min-width:2.5rem;flex-shrink:0}.podcast-chapter-title{font-size:var(--snice-font-size-sm, .875rem);color:var(--snice-color-text,rgb(23 23 23));flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.podcast-chapter-item.active .podcast-chapter-title{color:var(--snice-color-primary,rgb(37 99 235));font-weight:var(--snice-font-weight-medium,500)}.podcast-episodes{border-top:1px solid var(--snice-color-border,rgb(226 226 226));padding-top:var(--snice-spacing-md,1rem);margin-top:var(--snice-spacing-md,1rem)}.podcast-episodes-header{font-size:var(--snice-font-size-sm, .875rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--snice-color-text,rgb(23 23 23));margin-bottom:var(--snice-spacing-sm,.75rem)}.podcast-episode-list{display:flex;flex-direction:column;gap:var(--snice-spacing-2xs,.25rem);max-height:18.75rem;overflow-y:auto}.podcast-episode-item{display:flex;align-items:center;gap:var(--snice-spacing-sm,.75rem);padding:var(--snice-spacing-sm,.75rem);border-radius:var(--snice-border-radius-md,.25rem);cursor:pointer;transition:background-color var(--snice-transition-fast, 150ms) ease}.podcast-episode-item:hover{background:var(--snice-color-background-hover,rgb(241 241 241))}.podcast-episode-item.active{background:var(--snice-color-primary-subtle,rgb(239 246 255))}.podcast-episode-artwork{width:3rem;height:3rem;border-radius:var(--snice-border-radius-md,.25rem);object-fit:cover;flex-shrink:0}.podcast-episode-info{flex:1;min-width:0}.podcast-episode-title{font-size:var(--snice-font-size-sm, .875rem);color:var(--snice-color-text,rgb(23 23 23));margin-bottom:var(--snice-spacing-3xs,.125rem);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.podcast-episode-item.active .podcast-episode-title{color:var(--snice-color-primary,rgb(37 99 235));font-weight:var(--snice-font-weight-medium,500)}.podcast-episode-date{font-size:var(--snice-font-size-xs, .75rem);color:var(--snice-color-text-tertiary,rgb(115 115 115))}.podcast-episode-duration{font-size:var(--snice-font-size-xs, .75rem);font-variant-numeric:tabular-nums;color:var(--snice-color-text-tertiary,rgb(115 115 115));flex-shrink:0}.podcast-episode-playing-icon{display:flex;align-items:center;gap:2px;flex-shrink:0}.podcast-episode-playing-icon span{display:inline-block;width:3px;height:.75rem;background:var(--snice-color-primary,rgb(37 99 235));border-radius:1px;animation:.8s ease-in-out infinite podcast-bar-bounce}.podcast-episode-playing-icon span:nth-child(2){animation-delay:.15s}.podcast-episode-playing-icon span:nth-child(3){animation-delay:.3s}@keyframes podcast-bar-bounce{0%,100%{height:.25rem}50%{height:.75rem}}.podcast-episode-list::-webkit-scrollbar{width:.5rem}.podcast-episode-list::-webkit-scrollbar-track{background:var(--snice-color-background-element,rgb(252 251 249));border-radius:9999px}.podcast-episode-list::-webkit-scrollbar-thumb{background:var(--snice-color-border,rgb(226 226 226));border-radius:9999px}.podcast-episode-list::-webkit-scrollbar-thumb:hover{background:var(--snice-color-border-hover,rgb(204 204 204))}\";\n\nconst PLAYBACK_RATES = [0.5, 0.75, 1, 1.25, 1.5, 1.75, 2];\nconst SLEEP_OPTIONS = [0, 5, 10, 15, 30, 45, 60]; // minutes\nconst STORAGE_KEY_PREFIX = 'snice-podcast-position-';\nlet SnicePodcastPlayer = (() => {\n let _classDecorators = [element('snice-podcast-player')];\n let _classDescriptor;\n let _classExtraInitializers = [];\n let _classThis;\n let _classSuper = HTMLElement;\n let _instanceExtraInitializers = [];\n let _src_decorators;\n let _src_initializers = [];\n let _src_extraInitializers = [];\n let _fromRss_decorators;\n let _fromRss_initializers = [];\n let _fromRss_extraInitializers = [];\n let _title_decorators;\n let _title_initializers = [];\n let _title_extraInitializers = [];\n let _show_decorators;\n let _show_initializers = [];\n let _show_extraInitializers = [];\n let _artwork_decorators;\n let _artwork_initializers = [];\n let _artwork_extraInitializers = [];\n let _description_decorators;\n let _description_initializers = [];\n let _description_extraInitializers = [];\n let _playbackRate_decorators;\n let _playbackRate_initializers = [];\n let _playbackRate_extraInitializers = [];\n let _skipForward_decorators;\n let _skipForward_initializers = [];\n let _skipForward_extraInitializers = [];\n let _skipBack_decorators;\n let _skipBack_initializers = [];\n let _skipBack_extraInitializers = [];\n let _currentTime_decorators;\n let _currentTime_initializers = [];\n let _currentTime_extraInitializers = [];\n let _duration_decorators;\n let _duration_initializers = [];\n let _duration_extraInitializers = [];\n let _volume_decorators;\n let _volume_initializers = [];\n let _volume_extraInitializers = [];\n let _muted_decorators;\n let _muted_initializers = [];\n let _muted_extraInitializers = [];\n let _episodes_decorators;\n let _episodes_initializers = [];\n let _episodes_extraInitializers = [];\n let _currentEpisodeIndex_decorators;\n let _currentEpisodeIndex_initializers = [];\n let _currentEpisodeIndex_extraInitializers = [];\n let _sleepTimer_decorators;\n let _sleepTimer_initializers = [];\n let _sleepTimer_extraInitializers = [];\n let _progressElement_decorators;\n let _progressElement_initializers = [];\n let _progressElement_extraInitializers = [];\n let _componentStyles_decorators;\n let _init_decorators;\n let _cleanup_decorators;\n let _handleSrcChange_decorators;\n let _handleRssChange_decorators;\n let _handleVolumeChange_decorators;\n let _handleMutedChange_decorators;\n let _handlePlaybackRateChange_decorators;\n let _renderPlayer_decorators;\n let _emitPlay_decorators;\n let _emitPause_decorators;\n let _emitEnded_decorators;\n let _emitTimeUpdate_decorators;\n let _emitRateChange_decorators;\n let _emitEpisodeChange_decorators;\n let _emitFeedLoaded_decorators;\n (class extends _classSuper {\n static { _classThis = this; }\n static {\n const _metadata = typeof Symbol === \"function\" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;\n _src_decorators = [property()];\n _fromRss_decorators = [property({ attribute: 'from-rss' })];\n _title_decorators = [property()];\n _show_decorators = [property()];\n _artwork_decorators = [property()];\n _description_decorators = [property()];\n _playbackRate_decorators = [property({ type: Number, attribute: 'playback-rate' })];\n _skipForward_decorators = [property({ type: Number, attribute: 'skip-forward' })];\n _skipBack_decorators = [property({ type: Number, attribute: 'skip-back' })];\n _currentTime_decorators = [property({ type: Number, attribute: 'current-time' })];\n _duration_decorators = [property({ type: Number })];\n _volume_decorators = [property({ type: Number })];\n _muted_decorators = [property({ type: Boolean })];\n _episodes_decorators = [property({ type: Array })];\n _currentEpisodeIndex_decorators = [property({ type: Number, attribute: 'current-episode-index' })];\n _sleepTimer_decorators = [property({ type: Number, attribute: 'sleep-timer' })];\n _progressElement_decorators = [query('.podcast-progress')];\n _componentStyles_decorators = [styles()];\n _init_decorators = [ready()];\n _cleanup_decorators = [dispose()];\n _handleSrcChange_decorators = [watch('src')];\n _handleRssChange_decorators = [watch('fromRss')];\n _handleVolumeChange_decorators = [watch('volume')];\n _handleMutedChange_decorators = [watch('muted')];\n _handlePlaybackRateChange_decorators = [watch('playbackRate')];\n _renderPlayer_decorators = [render()];\n _emitPlay_decorators = [dispatch('podcast-play', { bubbles: true, composed: true })];\n _emitPause_decorators = [dispatch('podcast-pause', { bubbles: true, composed: true })];\n _emitEnded_decorators = [dispatch('podcast-ended', { bubbles: true, composed: true })];\n _emitTimeUpdate_decorators = [dispatch('podcast-time-update', { bubbles: true, composed: true })];\n _emitRateChange_decorators = [dispatch('podcast-rate-change', { bubbles: true, composed: true })];\n _emitEpisodeChange_decorators = [dispatch('podcast-episode-change', { bubbles: true, composed: true })];\n _emitFeedLoaded_decorators = [dispatch('podcast-feed-loaded', { bubbles: true, composed: true })];\n __esDecorate(this, null, _componentStyles_decorators, { kind: \"method\", name: \"componentStyles\", static: false, private: false, access: { has: obj => \"componentStyles\" in obj, get: obj => obj.componentStyles }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _init_decorators, { kind: \"method\", name: \"init\", static: false, private: false, access: { has: obj => \"init\" in obj, get: obj => obj.init }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _cleanup_decorators, { kind: \"method\", name: \"cleanup\", static: false, private: false, access: { has: obj => \"cleanup\" in obj, get: obj => obj.cleanup }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handleSrcChange_decorators, { kind: \"method\", name: \"handleSrcChange\", static: false, private: false, access: { has: obj => \"handleSrcChange\" in obj, get: obj => obj.handleSrcChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handleRssChange_decorators, { kind: \"method\", name: \"handleRssChange\", static: false, private: false, access: { has: obj => \"handleRssChange\" in obj, get: obj => obj.handleRssChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handleVolumeChange_decorators, { kind: \"method\", name: \"handleVolumeChange\", static: false, private: false, access: { has: obj => \"handleVolumeChange\" in obj, get: obj => obj.handleVolumeChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handleMutedChange_decorators, { kind: \"method\", name: \"handleMutedChange\", static: false, private: false, access: { has: obj => \"handleMutedChange\" in obj, get: obj => obj.handleMutedChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handlePlaybackRateChange_decorators, { kind: \"method\", name: \"handlePlaybackRateChange\", static: false, private: false, access: { has: obj => \"handlePlaybackRateChange\" in obj, get: obj => obj.handlePlaybackRateChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _renderPlayer_decorators, { kind: \"method\", name: \"renderPlayer\", static: false, private: false, access: { has: obj => \"renderPlayer\" in obj, get: obj => obj.renderPlayer }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitPlay_decorators, { kind: \"method\", name: \"emitPlay\", static: false, private: false, access: { has: obj => \"emitPlay\" in obj, get: obj => obj.emitPlay }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitPause_decorators, { kind: \"method\", name: \"emitPause\", static: false, private: false, access: { has: obj => \"emitPause\" in obj, get: obj => obj.emitPause }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitEnded_decorators, { kind: \"method\", name: \"emitEnded\", static: false, private: false, access: { has: obj => \"emitEnded\" in obj, get: obj => obj.emitEnded }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitTimeUpdate_decorators, { kind: \"method\", name: \"emitTimeUpdate\", static: false, private: false, access: { has: obj => \"emitTimeUpdate\" in obj, get: obj => obj.emitTimeUpdate }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitRateChange_decorators, { kind: \"method\", name: \"emitRateChange\", static: false, private: false, access: { has: obj => \"emitRateChange\" in obj, get: obj => obj.emitRateChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitEpisodeChange_decorators, { kind: \"method\", name: \"emitEpisodeChange\", static: false, private: false, access: { has: obj => \"emitEpisodeChange\" in obj, get: obj => obj.emitEpisodeChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _emitFeedLoaded_decorators, { kind: \"method\", name: \"emitFeedLoaded\", static: false, private: false, access: { has: obj => \"emitFeedLoaded\" in obj, get: obj => obj.emitFeedLoaded }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(null, null, _src_decorators, { kind: \"field\", name: \"src\", static: false, private: false, access: { has: obj => \"src\" in obj, get: obj => obj.src, set: (obj, value) => { obj.src = value; } }, metadata: _metadata }, _src_initializers, _src_extraInitializers);\n __esDecorate(null, null, _fromRss_decorators, { kind: \"field\", name: \"fromRss\", static: false, private: false, access: { has: obj => \"fromRss\" in obj, get: obj => obj.fromRss, set: (obj, value) => { obj.fromRss = value; } }, metadata: _metadata }, _fromRss_initializers, _fromRss_extraInitializers);\n __esDecorate(null, null, _title_decorators, { kind: \"field\", name: \"title\", static: false, private: false, access: { has: obj => \"title\" in obj, get: obj => obj.title, set: (obj, value) => { obj.title = value; } }, metadata: _metadata }, _title_initializers, _title_extraInitializers);\n __esDecorate(null, null, _show_decorators, { kind: \"field\", name: \"show\", static: false, private: false, access: { has: obj => \"show\" in obj, get: obj => obj.show, set: (obj, value) => { obj.show = value; } }, metadata: _metadata }, _show_initializers, _show_extraInitializers);\n __esDecorate(null, null, _artwork_decorators, { kind: \"field\", name: \"artwork\", static: false, private: false, access: { has: obj => \"artwork\" in obj, get: obj => obj.artwork, set: (obj, value) => { obj.artwork = value; } }, metadata: _metadata }, _artwork_initializers, _artwork_extraInitializers);\n __esDecorate(null, null, _description_decorators, { kind: \"field\", name: \"description\", static: false, private: false, access: { has: obj => \"description\" in obj, get: obj => obj.description, set: (obj, value) => { obj.description = value; } }, metadata: _metadata }, _description_initializers, _description_extraInitializers);\n __esDecorate(null, null, _playbackRate_decorators, { kind: \"field\", name: \"playbackRate\", static: false, private: false, access: { has: obj => \"playbackRate\" in obj, get: obj => obj.playbackRate, set: (obj, value) => { obj.playbackRate = value; } }, metadata: _metadata }, _playbackRate_initializers, _playbackRate_extraInitializers);\n __esDecorate(null, null, _skipForward_decorators, { kind: \"field\", name: \"skipForward\", static: false, private: false, access: { has: obj => \"skipForward\" in obj, get: obj => obj.skipForward, set: (obj, value) => { obj.skipForward = value; } }, metadata: _metadata }, _skipForward_initializers, _skipForward_extraInitializers);\n __esDecorate(null, null, _skipBack_decorators, { kind: \"field\", name: \"skipBack\", static: false, private: false, access: { has: obj => \"skipBack\" in obj, get: obj => obj.skipBack, set: (obj, value) => { obj.skipBack = value; } }, metadata: _metadata }, _skipBack_initializers, _skipBack_extraInitializers);\n __esDecorate(null, null, _currentTime_decorators, { kind: \"field\", name: \"currentTime\", static: false, private: false, access: { has: obj => \"currentTime\" in obj, get: obj => obj.currentTime, set: (obj, value) => { obj.currentTime = value; } }, metadata: _metadata }, _currentTime_initializers, _currentTime_extraInitializers);\n __esDecorate(null, null, _duration_decorators, { kind: \"field\", name: \"duration\", static: false, private: false, access: { has: obj => \"duration\" in obj, get: obj => obj.duration, set: (obj, value) => { obj.duration = value; } }, metadata: _metadata }, _duration_initializers, _duration_extraInitializers);\n __esDecorate(null, null, _volume_decorators, { kind: \"field\", name: \"volume\", static: false, private: false, access: { has: obj => \"volume\" in obj, get: obj => obj.volume, set: (obj, value) => { obj.volume = value; } }, metadata: _metadata }, _volume_initializers, _volume_extraInitializers);\n __esDecorate(null, null, _muted_decorators, { kind: \"field\", name: \"muted\", static: false, private: false, access: { has: obj => \"muted\" in obj, get: obj => obj.muted, set: (obj, value) => { obj.muted = value; } }, metadata: _metadata }, _muted_initializers, _muted_extraInitializers);\n __esDecorate(null, null, _episodes_decorators, { kind: \"field\", name: \"episodes\", static: false, private: false, access: { has: obj => \"episodes\" in obj, get: obj => obj.episodes, set: (obj, value) => { obj.episodes = value; } }, metadata: _metadata }, _episodes_initializers, _episodes_extraInitializers);\n __esDecorate(null, null, _currentEpisodeIndex_decorators, { kind: \"field\", name: \"currentEpisodeIndex\", static: false, private: false, access: { has: obj => \"currentEpisodeIndex\" in obj, get: obj => obj.currentEpisodeIndex, set: (obj, value) => { obj.currentEpisodeIndex = value; } }, metadata: _metadata }, _currentEpisodeIndex_initializers, _currentEpisodeIndex_extraInitializers);\n __esDecorate(null, null, _sleepTimer_decorators, { kind: \"field\", name: \"sleepTimer\", static: false, private: false, access: { has: obj => \"sleepTimer\" in obj, get: obj => obj.sleepTimer, set: (obj, value) => { obj.sleepTimer = value; } }, metadata: _metadata }, _sleepTimer_initializers, _sleepTimer_extraInitializers);\n __esDecorate(null, null, _progressElement_decorators, { kind: \"field\", name: \"progressElement\", static: false, private: false, access: { has: obj => \"progressElement\" in obj, get: obj => obj.progressElement, set: (obj, value) => { obj.progressElement = value; } }, metadata: _metadata }, _progressElement_initializers, _progressElement_extraInitializers);\n __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: \"class\", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);\n _classThis = _classDescriptor.value;\n if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });\n __runInitializers(_classThis, _classExtraInitializers);\n }\n componentStyles() {\n return css /*css*/ `${playerStyles}`;\n }\n init() {\n this.audioElement = new Audio();\n this.audioElement.volume = this.volume;\n this.audioElement.muted = this.muted;\n this.audioElement.playbackRate = this.playbackRate;\n this.audioElement.addEventListener('loadedmetadata', () => {\n this.duration = this.audioElement.duration;\n if (this.state === 'loading') {\n this.state = 'paused';\n }\n });\n this.audioElement.addEventListener('play', () => {\n this.state = 'playing';\n this.emitPlay();\n });\n this.audioElement.addEventListener('pause', () => {\n if (!this.audioElement.ended) {\n this.state = 'paused';\n this.savePosition();\n }\n this.emitPause();\n });\n this.audioElement.addEventListener('ended', () => {\n this.state = 'stopped';\n this.clearSavedPosition();\n this.emitEnded();\n });\n this.audioElement.addEventListener('timeupdate', () => {\n this.currentTime = this.audioElement.currentTime;\n this.emitTimeUpdate();\n });\n this.audioElement.addEventListener('error', () => {\n this.state = 'error';\n });\n // Load src if provided directly\n if (this.src) {\n this.loadSrc(this.src);\n }\n // Fetch RSS if provided\n if (this.fromRss) {\n this.fetchRSS(this.fromRss);\n }\n }\n cleanup() {\n this.savePosition();\n this.clearSleepTimer();\n if (this.audioElement) {\n this.audioElement.pause();\n this.audioElement.src = '';\n this.audioElement = null;\n }\n }\n handleSrcChange(_oldVal, newVal) {\n if (newVal) {\n this.loadSrc(newVal);\n }\n }\n handleRssChange(_oldVal, newVal) {\n if (newVal) {\n this.fetchRSS(newVal);\n }\n }\n handleVolumeChange(_oldVal, newVal) {\n if (this.audioElement && newVal >= 0 && newVal <= 1) {\n this.audioElement.volume = newVal;\n }\n }\n handleMutedChange(_oldVal, newVal) {\n if (this.audioElement) {\n this.audioElement.muted = newVal;\n }\n }\n handlePlaybackRateChange(_oldVal, newVal) {\n if (this.audioElement && newVal >= 0.5 && newVal <= 2) {\n this.audioElement.playbackRate = newVal;\n this.emitRateChange();\n }\n }\n renderPlayer() {\n const currentEpisode = this.getCurrentEpisode();\n const displayTitle = currentEpisode?.title || this.title || 'No episode loaded';\n const displayShow = currentEpisode ? this.show : this.show;\n const displayArtwork = currentEpisode?.artwork || this.artwork;\n const displayDescription = currentEpisode?.description || this.description;\n const chapters = currentEpisode?.chapters || [];\n const progress = this.duration > 0 ? (this.currentTime / this.duration) * 100 : 0;\n const isPlaying = this.state === 'playing';\n const hasSource = !!this.src || this.currentEpisodeIndex >= 0;\n const rateIsNotOne = this.playbackRate !== 1;\n const hasSleepTimer = this.sleepTimerRemaining > 0;\n const hasChapters = chapters.length > 0;\n const hasEpisodes = this.episodes.length > 0;\n const showVolSlider = this.showVolumeSlider;\n const isMutedOrZero = this.muted || this.volume === 0;\n const isHighVolume = !this.muted && this.volume > 0.5;\n return html /*html*/ `\n <div class=\"podcast-container\">\n <div class=\"podcast-info\">\n <div class=\"podcast-artwork\">\n <if ${displayArtwork}>\n <img src=\"${displayArtwork}\" alt=\"${displayTitle}\" />\n </if>\n <if ${!displayArtwork}>\n <div class=\"podcast-artwork-placeholder\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"48\" height=\"48\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\">\n <path d=\"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z\"/>\n <path d=\"M19 10v2a7 7 0 0 1-14 0v-2\"/>\n <line x1=\"12\" y1=\"19\" x2=\"12\" y2=\"23\"/>\n <line x1=\"8\" y1=\"23\" x2=\"16\" y2=\"23\"/>\n </svg>\n </div>\n </if>\n </div>\n\n <div class=\"podcast-meta\">\n <if ${displayShow}>\n <div class=\"podcast-show\">${displayShow}</div>\n </if>\n <div class=\"podcast-title\">${displayTitle}</div>\n <if ${displayDescription}>\n <div class=\"podcast-description\">${displayDescription}</div>\n </if>\n </div>\n </div>\n\n <div class=\"podcast-controls\">\n <div class=\"podcast-control-buttons\">\n <button\n class=\"podcast-btn podcast-btn-speed ${rateIsNotOne ? 'active' : ''}\"\n @click=${() => this.cyclePlaybackRate()}\n title=\"Playback speed\"\n >${this.playbackRate}x</button>\n\n <button\n class=\"podcast-btn\"\n @click=${() => this.doSkipBack()}\n title=\"Skip back ${this.skipBack}s\"\n ?disabled=${!hasSource}\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"28\" height=\"28\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\">\n <path d=\"M1 4v6h6\"/>\n <path d=\"M3.51 15a9 9 0 1 0 2.13-9.36L1 10\"/>\n </svg>\n <span class=\"podcast-btn-skip-label\">${this.skipBack}</span>\n </button>\n\n <button\n class=\"podcast-btn podcast-btn-play\"\n @click=${() => this.toggle()}\n title=\"${isPlaying ? 'Pause' : 'Play'}\"\n ?disabled=${!hasSource}\n >\n <if ${isPlaying}>\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"28\" height=\"28\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <rect x=\"6\" y=\"4\" width=\"4\" height=\"16\"></rect>\n <rect x=\"14\" y=\"4\" width=\"4\" height=\"16\"></rect>\n </svg>\n </if>\n <if ${!isPlaying}>\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"28\" height=\"28\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M8 5v14l11-7z\"/>\n </svg>\n </if>\n </button>\n\n <button\n class=\"podcast-btn\"\n @click=${() => this.doSkipForward()}\n title=\"Skip forward ${this.skipForward}s\"\n ?disabled=${!hasSource}\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"28\" height=\"28\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\">\n <path d=\"M23 4v6h-6\"/>\n <path d=\"M20.49 15a9 9 0 1 1-2.12-9.36L23 10\"/>\n </svg>\n <span class=\"podcast-btn-skip-label\">${this.skipForward}</span>\n </button>\n\n <button\n class=\"podcast-btn podcast-btn-sleep ${hasSleepTimer ? 'active' : ''}\"\n @click=${() => this.cycleSleepTimer()}\n title=\"Sleep timer\"\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\">\n <path d=\"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z\"/>\n </svg>\n </button>\n </div>\n\n <div class=\"podcast-progress-container\">\n <span class=\"podcast-time podcast-time-current\">${this.formatTime(this.currentTime)}</span>\n <div class=\"podcast-progress\" @click=${(e) => this.handleSeek(e)}>\n <div class=\"podcast-progress-bar\" style=\"width: ${progress}%\"></div>\n </div>\n <span class=\"podcast-time podcast-time-remaining\">-${this.formatTime(this.duration - this.currentTime)}</span>\n </div>\n </div>\n\n <div class=\"podcast-bottom-bar\">\n <div class=\"podcast-volume\">\n <button\n class=\"podcast-btn\"\n @click=${() => this.toggleVolumeSlider()}\n title=\"Volume\"\n >\n <if ${isMutedOrZero}>\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\">\n <path d=\"M11 5L6 9H2v6h4l5 4V5z\"/>\n <line x1=\"23\" y1=\"9\" x2=\"17\" y2=\"15\"/>\n <line x1=\"17\" y1=\"9\" x2=\"23\" y2=\"15\"/>\n </svg>\n </if>\n <if ${isHighVolume}>\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\">\n <path d=\"M11 5L6 9H2v6h4l5 4V5z\"/>\n <path d=\"M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07\"/>\n </svg>\n </if>\n <if ${!isMutedOrZero && !isHighVolume}>\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\">\n <path d=\"M11 5L6 9H2v6h4l5 4V5z\"/>\n <path d=\"M15.54 8.46a5 5 0 0 1 0 7.07\"/>\n </svg>\n </if>\n </button>\n <if ${showVolSlider}>\n <div class=\"podcast-volume-slider-container\">\n <input\n class=\"podcast-volume-slider\"\n type=\"range\"\n min=\"0\"\n max=\"1\"\n step=\"0.01\"\n .value=${this.volume.toString()}\n style=\"--volume-percent: ${this.volume * 100}%\"\n @input=${(e) => this.handleVolumeInput(e)}\n />\n </div>\n </if>\n </div>\n\n <if ${hasSleepTimer}>\n <div class=\"podcast-sleep\">\n <span class=\"podcast-sleep-label\">Sleep in</span>\n <span class=\"podcast-sleep-time\">${this.formatTime(this.sleepTimerRemaining)}</span>\n </div>\n </if>\n </div>\n\n <if ${hasChapters}>\n <div class=\"podcast-chapters\">\n <div class=\"podcast-chapters-header\">Chapters</div>\n ${chapters.map((chapter, i) => {\n const isActive = this.isActiveChapter(chapter, chapters, i);\n return html /*html*/ `\n <div\n class=\"podcast-chapter-item ${isActive ? 'active' : ''}\"\n @click=${() => this.seekTo(chapter.startTime)}\n >\n <span class=\"podcast-chapter-time\">${this.formatTime(chapter.startTime)}</span>\n <span class=\"podcast-chapter-title\">${chapter.title}</span>\n </div>\n `;\n })}\n </div>\n </if>\n\n <if ${hasEpisodes}>\n <div class=\"podcast-episodes\">\n <div class=\"podcast-episodes-header\">Episodes</div>\n <div class=\"podcast-episode-list\">\n ${this.episodes.map((episode, index) => {\n const isActive = index === this.currentEpisodeIndex;\n const isEpPlaying = isActive && isPlaying;\n return html /*html*/ `\n <div\n class=\"podcast-episode-item ${isActive ? 'active' : ''}\"\n @click=${() => this.loadEpisode(index)}\n >\n <if ${episode.artwork}>\n <img class=\"podcast-episode-artwork\" src=\"${episode.artwork}\" alt=\"${episode.title}\" />\n </if>\n <div class=\"podcast-episode-info\">\n <div class=\"podcast-episode-title\">${episode.title}</div>\n <if ${episode.pubDate}>\n <div class=\"podcast-episode-date\">${episode.pubDate}</div>\n </if>\n </div>\n <if ${isEpPlaying}>\n <div class=\"podcast-episode-playing-icon\">\n <span></span><span></span><span></span>\n </div>\n </if>\n <if ${!isEpPlaying && episode.duration}>\n <div class=\"podcast-episode-duration\">${this.formatTime(episode.duration || 0)}</div>\n </if>\n </div>\n `;\n })}\n </div>\n </div>\n </if>\n </div>\n `;\n }\n // --- Public Methods ---\n async play() {\n if (!this.audioElement || !this.audioElement.src)\n return;\n try {\n await this.audioElement.play();\n }\n catch {\n this.state = 'error';\n }\n }\n pause() {\n if (!this.audioElement)\n return;\n this.audioElement.pause();\n }\n toggle() {\n if (this.state === 'playing') {\n this.pause();\n }\n else {\n this.play();\n }\n }\n doSkipForward() {\n if (!this.audioElement)\n return;\n this.seekTo(Math.min(this.currentTime + this.skipForward, this.duration));\n }\n doSkipBack() {\n if (!this.audioElement)\n return;\n this.seekTo(Math.max(this.currentTime - this.skipBack, 0));\n }\n seekTo(time) {\n if (!this.audioElement)\n return;\n this.audioElement.currentTime = time;\n this.currentTime = time;\n }\n setPlaybackRate(rate) {\n if (rate < 0.5 || rate > 2)\n return;\n this.playbackRate = rate;\n }\n loadEpisode(index) {\n if (index < 0 || index >= this.episodes.length)\n return;\n // Save position of current episode before switching\n this.savePosition();\n const episode = this.episodes[index];\n this.currentEpisodeIndex = index;\n this.title = episode.title;\n if (episode.artwork)\n this.artwork = episode.artwork;\n if (episode.description)\n this.description = episode.description;\n this.loadSrc(episode.src);\n this.emitEpisodeChange(episode, index);\n // Restore saved position for this episode\n const saved = this.getSavedPosition(episode.src);\n if (saved > 0) {\n // Wait for metadata to load before seeking\n const onLoaded = () => {\n this.seekTo(saved);\n this.audioElement?.removeEventListener('loadedmetadata', onLoaded);\n };\n this.audioElement?.addEventListener('loadedmetadata', onLoaded);\n }\n }\n // --- Private Methods ---\n loadSrc(src) {\n if (!this.audioElement)\n return;\n this.state = 'loading';\n this.audioElement.src = src;\n this.audioElement.load();\n this.currentTime = 0;\n this.duration = 0;\n }\n async fetchRSS(url) {\n try {\n const response = await fetch(url);\n const text = await response.text();\n const feed = this.parseRSS(text);\n if (feed.title && !this.show)\n this.show = feed.title;\n if (feed.artwork && !this.artwork)\n this.artwork = feed.artwork;\n if (feed.description && !this.description)\n this.description = feed.description;\n this.episodes = feed.episodes;\n this.emitFeedLoaded(feed);\n }\n catch {\n this.state = 'error';\n }\n }\n parseRSS(xml) {\n const parser = new DOMParser();\n const doc = parser.parseFromString(xml, 'application/xml');\n const channel = doc.querySelector('channel');\n const title = channel?.querySelector('title')?.textContent || '';\n const description = channel?.querySelector('description')?.textContent || '';\n // Try itunes:image first, then regular image\n const itunesImage = channel?.querySelector('image[href]')?.getAttribute('href')\n || channel?.getElementsByTagNameNS('http://www.itunes.com/dtds/podcast-1.0.dtd', 'image')?.[0]?.getAttribute('href');\n const regularImage = channel?.querySelector('image > url')?.textContent;\n const artwork = itunesImage || regularImage || '';\n const items = channel?.querySelectorAll('item') || [];\n const episodes = [];\n items.forEach(item => {\n const epTitle = item.querySelector('title')?.textContent || '';\n const enclosure = item.querySelector('enclosure');\n const src = enclosure?.getAttribute('url') || '';\n if (!src)\n return;\n const epDescription = item.querySelector('description')?.textContent || '';\n const pubDate = item.querySelector('pubDate')?.textContent || '';\n // Parse itunes:duration\n const itunesDuration = item.getElementsByTagNameNS('http://www.itunes.com/dtds/podcast-1.0.dtd', 'duration')?.[0]?.textContent;\n const duration = itunesDuration ? this.parseDuration(itunesDuration) : undefined;\n // Episode artwork\n const epImage = item.getElementsByTagNameNS('http://www.itunes.com/dtds/podcast-1.0.dtd', 'image')?.[0]?.getAttribute('href') || '';\n episodes.push({\n title: epTitle,\n src,\n artwork: epImage || artwork,\n description: epDescription,\n pubDate: pubDate ? this.formatDate(pubDate) : undefined,\n duration,\n });\n });\n return { title, artwork, description, episodes };\n }\n parseDuration(duration) {\n // Handle HH:MM:SS, MM:SS, or plain seconds\n const parts = duration.split(':').map(Number);\n if (parts.length === 3)\n return parts[0] * 3600 + parts[1] * 60 + parts[2];\n if (parts.length === 2)\n return parts[0] * 60 + parts[1];\n return parts[0] || 0;\n }\n formatDate(dateStr) {\n try {\n const date = new Date(dateStr);\n return date.toLocaleDateString(undefined, { year: 'numeric', month: 'short', day: 'numeric' });\n }\n catch {\n return dateStr;\n }\n }\n cyclePlaybackRate() {\n const idx = PLAYBACK_RATES.indexOf(this.playbackRate);\n const nextIdx = (idx + 1) % PLAYBACK_RATES.length;\n this.setPlaybackRate(PLAYBACK_RATES[nextIdx]);\n }\n cycleSleepTimer() {\n const currentMinutes = Math.ceil(this.sleepTimerRemaining / 60);\n const idx = SLEEP_OPTIONS.findIndex(opt => opt >= currentMinutes);\n const nextIdx = (idx + 1) % SLEEP_OPTIONS.length;\n const minutes = SLEEP_OPTIONS[nextIdx];\n this.clearSleepTimer();\n if (minutes > 0) {\n this.sleepTimerRemaining = minutes * 60;\n this.sleepTimerInterval = window.setInterval(() => {\n this.sleepTimerRemaining--;\n if (this.sleepTimerRemaining <= 0) {\n this.pause();\n this.clearSleepTimer();\n }\n }, 1000);\n }\n }\n clearSleepTimer() {\n if (this.sleepTimerInterval !== null) {\n clearInterval(this.sleepTimerInterval);\n this.sleepTimerInterval = null;\n }\n this.sleepTimerRemaining = 0;\n }\n handleSeek(e) {\n if (!this.progressElement || this.duration === 0)\n return;\n const rect = this.progressElement.getBoundingClientRect();\n const percent = (e.clientX - rect.left) / rect.width;\n this.seekTo(percent * this.duration);\n }\n handleVolumeInput(e) {\n const input = e.target;\n const vol = parseFloat(input.value);\n input.style.setProperty('--volume-percent', `${vol * 100}%`);\n this.volume = vol;\n if (vol > 0 && this.muted)\n this.muted = false;\n }\n toggleVolumeSlider() {\n this.showVolumeSlider = !this.showVolumeSlider;\n }\n getCurrentEpisode() {\n if (this.currentEpisodeIndex >= 0 && this.currentEpisodeIndex < this.episodes.length) {\n return this.episodes[this.currentEpisodeIndex];\n }\n return null;\n }\n isActiveChapter(chapter, chapters, index) {\n const nextChapter = chapters[index + 1];\n const endTime = chapter.endTime || (nextChapter ? nextChapter.startTime : this.duration);\n return this.currentTime >= chapter.startTime && this.currentTime < endTime;\n }\n formatTime(seconds) {\n if (isNaN(seconds) || seconds === Infinity || seconds < 0)\n return '0:00';\n const h = Math.floor(seconds / 3600);\n const m = Math.floor((seconds % 3600) / 60);\n const s = Math.floor(seconds % 60);\n if (h > 0) {\n return `${h}:${m.toString().padStart(2, '0')}:${s.toString().padStart(2, '0')}`;\n }\n return `${m}:${s.toString().padStart(2, '0')}`;\n }\n // --- localStorage position memory ---\n getStorageKey(src) {\n return STORAGE_KEY_PREFIX + (src || this.audioElement?.src || '');\n }\n savePosition() {\n if (!this.audioElement?.src || this.currentTime < 5)\n return;\n try {\n localStorage.setItem(this.getStorageKey(), String(this.currentTime));\n }\n catch { /* storage full or unavailable */ }\n }\n getSavedPosition(src) {\n try {\n const saved = localStorage.getItem(this.getStorageKey(src));\n return saved ? parseFloat(saved) : 0;\n }\n catch {\n return 0;\n }\n }\n clearSavedPosition() {\n try {\n localStorage.removeItem(this.getStorageKey());\n }\n catch { /* ignore */ }\n }\n // --- Events ---\n emitPlay() {\n return { player: this, episode: this.getCurrentEpisode() };\n }\n emitPause() {\n return { player: this, episode: this.getCurrentEpisode() };\n }\n emitEnded() {\n return { player: this, episode: this.getCurrentEpisode() };\n }\n emitTimeUpdate() {\n return { player: this, currentTime: this.currentTime, duration: this.duration };\n }\n emitRateChange() {\n return { player: this, rate: this.playbackRate };\n }\n emitEpisodeChange(episode, index) {\n return { player: this, episode, index };\n }\n emitFeedLoaded(feed) {\n return { player: this, feed };\n }\n constructor() {\n super(...arguments);\n this.src = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _src_initializers, ''));\n this.fromRss = (__runInitializers(this, _src_extraInitializers), __runInitializers(this, _fromRss_initializers, ''));\n this.title = (__runInitializers(this, _fromRss_extraInitializers), __runInitializers(this, _title_initializers, ''));\n this.show = (__runInitializers(this, _title_extraInitializers), __runInitializers(this, _show_initializers, ''));\n this.artwork = (__runInitializers(this, _show_extraInitializers), __runInitializers(this, _artwork_initializers, ''));\n this.description = (__runInitializers(this, _artwork_extraInitializers), __runInitializers(this, _description_initializers, ''));\n this.playbackRate = (__runInitializers(this, _description_extraInitializers), __runInitializers(this, _playbackRate_initializers, 1));\n this.skipForward = (__runInitializers(this, _playbackRate_extraInitializers), __runInitializers(this, _skipForward_initializers, 30));\n this.skipBack = (__runInitializers(this, _skipForward_extraInitializers), __runInitializers(this, _skipBack_initializers, 15));\n this.currentTime = (__runInitializers(this, _skipBack_extraInitializers), __runInitializers(this, _currentTime_initializers, 0));\n this.duration = (__runInitializers(this, _currentTime_extraInitializers), __runInitializers(this, _duration_initializers, 0));\n this.volume = (__runInitializers(this, _duration_extraInitializers), __runInitializers(this, _volume_initializers, 1));\n this.muted = (__runInitializers(this, _volume_extraInitializers), __runInitializers(this, _muted_initializers, false));\n this.episodes = (__runInitializers(this, _muted_extraInitializers), __runInitializers(this, _episodes_initializers, []));\n this.currentEpisodeIndex = (__runInitializers(this, _episodes_extraInitializers), __runInitializers(this, _currentEpisodeIndex_initializers, -1));\n this.sleepTimer = (__runInitializers(this, _currentEpisodeIndex_extraInitializers), __runInitializers(this, _sleepTimer_initializers, 0));\n this.state = (__runInitializers(this, _sleepTimer_extraInitializers), 'stopped');\n this.audioElement = null;\n this.sleepTimerInterval = null;\n this.sleepTimerRemaining = 0;\n this.showVolumeSlider = false;\n this.progressElement = __runInitializers(this, _progressElement_initializers, void 0);\n __runInitializers(this, _progressElement_extraInitializers);\n }\n });\n return _classThis;\n})();\n\nexport { SnicePodcastPlayer };\n//# sourceMappingURL=snice-podcast-player.js.map\n"],"names":["__esDecorate","ctor","descriptorIn","decorators","contextIn","initializers","extraInitializers","accept","f","TypeError","_","kind","key","target","prototype","descriptor","Object","getOwnPropertyDescriptor","name","done","i","length","context","p","access","addInitializer","push","result","get","set","init","unshift","defineProperty","__runInitializers","thisArg","value","useValue","arguments","call","SuppressedError","PLAYBACK_RATES","SLEEP_OPTIONS","SnicePodcastPlayer","_classDescriptor","_classThis","_src_decorators","_fromRss_decorators","_title_decorators","_show_decorators","_artwork_decorators","_description_decorators","_playbackRate_decorators","_skipForward_decorators","_skipBack_decorators","_currentTime_decorators","_duration_decorators","_volume_decorators","_muted_decorators","_episodes_decorators","_currentEpisodeIndex_decorators","_sleepTimer_decorators","_progressElement_decorators","_componentStyles_decorators","_init_decorators","_cleanup_decorators","_handleSrcChange_decorators","_handleRssChange_decorators","_handleVolumeChange_decorators","_handleMutedChange_decorators","_handlePlaybackRateChange_decorators","_renderPlayer_decorators","_emitPlay_decorators","_emitPause_decorators","_emitEnded_decorators","_emitTimeUpdate_decorators","_emitRateChange_decorators","_emitEpisodeChange_decorators","_emitFeedLoaded_decorators","_classDecorators","element","_classExtraInitializers","_classSuper","HTMLElement","_instanceExtraInitializers","_src_initializers","_src_extraInitializers","_fromRss_initializers","_fromRss_extraInitializers","_title_initializers","_title_extraInitializers","_show_initializers","_show_extraInitializers","_artwork_initializers","_artwork_extraInitializers","_description_initializers","_description_extraInitializers","_playbackRate_initializers","_playbackRate_extraInitializers","_skipForward_initializers","_skipForward_extraInitializers","_skipBack_initializers","_skipBack_extraInitializers","_currentTime_initializers","_currentTime_extraInitializers","_duration_initializers","_duration_extraInitializers","_volume_initializers","_volume_extraInitializers","_muted_initializers","_muted_extraInitializers","_episodes_initializers","_episodes_extraInitializers","_currentEpisodeIndex_initializers","_currentEpisodeIndex_extraInitializers","_sleepTimer_initializers","_sleepTimer_extraInitializers","_progressElement_initializers","_progressElement_extraInitializers","this","_metadata","Symbol","metadata","create","property","attribute","type","Number","Boolean","Array","query","styles","ready","dispose","watch","render","dispatch","bubbles","composed","static","private","has","obj","componentStyles","cleanup","handleSrcChange","handleRssChange","handleVolumeChange","handleMutedChange","handlePlaybackRateChange","renderPlayer","emitPlay","emitPause","emitEnded","emitTimeUpdate","emitRateChange","emitEpisodeChange","emitFeedLoaded","src","fromRss","title","show","artwork","description","playbackRate","skipForward","skipBack","currentTime","duration","volume","muted","episodes","currentEpisodeIndex","sleepTimer","progressElement","enumerable","configurable","writable","css","audioElement","Audio","addEventListener","state","ended","savePosition","clearSavedPosition","loadSrc","fetchRSS","clearSleepTimer","pause","_oldVal","newVal","currentEpisode","getCurrentEpisode","displayTitle","displayShow","displayArtwork","displayDescription","chapters","progress","isPlaying","hasSource","rateIsNotOne","hasSleepTimer","sleepTimerRemaining","hasChapters","hasEpisodes","showVolSlider","showVolumeSlider","isMutedOrZero","isHighVolume","html","cyclePlaybackRate","doSkipBack","toggle","doSkipForward","cycleSleepTimer","formatTime","e","handleSeek","toggleVolumeSlider","toString","handleVolumeInput","map","chapter","isActive","isActiveChapter","seekTo","startTime","episode","index","isEpPlaying","loadEpisode","pubDate","play","Math","min","max","time","setPlaybackRate","rate","saved","getSavedPosition","onLoaded","removeEventListener","load","url","response","fetch","text","feed","parseRSS","xml","channel","DOMParser","parseFromString","querySelector","textContent","itunesImage","getAttribute","getElementsByTagNameNS","regularImage","items","querySelectorAll","forEach","item","epTitle","enclosure","epDescription","itunesDuration","parseDuration","undefined","epImage","formatDate","parts","split","dateStr","Date","toLocaleDateString","year","month","day","nextIdx","indexOf","currentMinutes","ceil","findIndex","opt","minutes","sleepTimerInterval","window","setInterval","clearInterval","rect","getBoundingClientRect","percent","clientX","left","width","input","vol","parseFloat","style","setProperty","nextChapter","endTime","seconds","isNaN","Infinity","h","floor","m","s","padStart","getStorageKey","localStorage","setItem","String","getItem","removeItem","player","constructor","super"],"mappings":";;;;;;4KAiEO,SAASA,EAAaC,EAAMC,EAAcC,EAAYC,EAAWC,EAAcC,GACpF,SAASC,EAAOC,GAAK,QAAU,IAANA,GAA6B,mBAANA,EAAkB,MAAM,IAAIC,UAAU,qBAAsB,OAAOD,CAAG,CAKtH,IAJA,IAGIE,EAHAC,EAAOP,EAAUO,KAAMC,EAAe,WAATD,EAAoB,MAAiB,WAATA,EAAoB,MAAQ,QACrFE,GAAUX,GAAgBD,EAAOG,EAAkB,OAAIH,EAAOA,EAAKa,UAAY,KAC/EC,EAAab,IAAiBW,EAASG,OAAOC,yBAAyBJ,EAAQT,EAAUc,MAAQ,IAC9FC,GAAO,EACLC,EAAIjB,EAAWkB,OAAS,EAAGD,GAAK,EAAGA,IAAK,CAC7C,IAAIE,EAAU,CAAA,EACd,IAAK,IAAIC,KAAKnB,EAAWkB,EAAQC,GAAW,WAANA,EAAiB,CAAA,EAAKnB,EAAUmB,GACtE,IAAK,IAAIA,KAAKnB,EAAUoB,OAAQF,EAAQE,OAAOD,GAAKnB,EAAUoB,OAAOD,GACrED,EAAQG,eAAiB,SAAUjB,GAAK,GAAIW,EAAM,MAAM,IAAIV,UAAU,0DAA2DH,EAAkBoB,KAAKnB,EAAOC,GAAK,MAAQ,EAC5K,IAAImB,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xI,EAAkBqF,KAAMX,IAA4B1E,EAAkBqF,KAAMV,IAAqB,IAC/GU,KAAKoD,UAAYzI,EAAkBqF,KAAMT,IAA2B5E,EAAkBqF,KAAMR,GAAwB,KACpHQ,KAAKqD,qBAAuB1I,EAAkBqF,KAAMP,IAA8B9E,EAAkBqF,KAAMN,IAAmC,IAC7IM,KAAKsD,YAAc3I,EAAkBqF,KAAML,IAAyChF,EAAkBqF,KAAMJ,GAA0B,IACtII,KAAK+D,OAASpJ,EAAkBqF,KAAMH,IAAgC,WACtEG,KAAK4D,aAAe,KACpB5D,KAAK0K,mBAAqB,KAC1B1K,KAAKqF,oBAAsB,EAC3BrF,KAAKyF,kBAAmB,EACxBzF,KAAKuD,gBAAkB5I,EAAkBqF,KAAMF,QAA+B,GAC9EnF,EAAkBqF,KAAMD,GAC5B,GAEGzE,CACV,EApvBwB","x_google_ignoreList":[0]}
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * snice v4.9.0
2
+ * snice v4.11.0
3
3
  * Imperative TypeScript framework for building vanilla web components with decorators, differential rendering, routing, and controllers. No virtual DOM, no build complexity.
4
4
  * (c) 2024
5
5
  * Released under the MIT License.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * snice v4.9.0
2
+ * snice v4.11.0
3
3
  * Imperative TypeScript framework for building vanilla web components with decorators, differential rendering, routing, and controllers. No virtual DOM, no build complexity.
4
4
  * (c) 2024
5
5
  * Released under the MIT License.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * snice v4.9.0
2
+ * snice v4.11.0
3
3
  * Imperative TypeScript framework for building vanilla web components with decorators, differential rendering, routing, and controllers. No virtual DOM, no build complexity.
4
4
  * (c) 2024
5
5
  * Released under the MIT License.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * snice v4.9.0
2
+ * snice v4.11.0
3
3
  * Imperative TypeScript framework for building vanilla web components with decorators, differential rendering, routing, and controllers. No virtual DOM, no build complexity.
4
4
  * (c) 2024
5
5
  * Released under the MIT License.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * snice v4.9.0
2
+ * snice v4.11.0
3
3
  * Imperative TypeScript framework for building vanilla web components with decorators, differential rendering, routing, and controllers. No virtual DOM, no build complexity.
4
4
  * (c) 2024
5
5
  * Released under the MIT License.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * snice v4.9.0
2
+ * snice v4.11.0
3
3
  * Imperative TypeScript framework for building vanilla web components with decorators, differential rendering, routing, and controllers. No virtual DOM, no build complexity.
4
4
  * (c) 2024
5
5
  * Released under the MIT License.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * snice v4.9.0
2
+ * snice v4.11.0
3
3
  * Imperative TypeScript framework for building vanilla web components with decorators, differential rendering, routing, and controllers. No virtual DOM, no build complexity.
4
4
  * (c) 2024
5
5
  * Released under the MIT License.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * snice v4.9.0
2
+ * snice v4.11.0
3
3
  * Imperative TypeScript framework for building vanilla web components with decorators, differential rendering, routing, and controllers. No virtual DOM, no build complexity.
4
4
  * (c) 2024
5
5
  * Released under the MIT License.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * snice v4.9.0
2
+ * snice v4.11.0
3
3
  * Imperative TypeScript framework for building vanilla web components with decorators, differential rendering, routing, and controllers. No virtual DOM, no build complexity.
4
4
  * (c) 2024
5
5
  * Released under the MIT License.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * snice v4.9.0
2
+ * snice v4.11.0
3
3
  * Imperative TypeScript framework for building vanilla web components with decorators, differential rendering, routing, and controllers. No virtual DOM, no build complexity.
4
4
  * (c) 2024
5
5
  * Released under the MIT License.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * snice v4.9.0
2
+ * snice v4.11.0
3
3
  * Imperative TypeScript framework for building vanilla web components with decorators, differential rendering, routing, and controllers. No virtual DOM, no build complexity.
4
4
  * (c) 2024
5
5
  * Released under the MIT License.