al_search 0.1.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 (43) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +5 -0
  3. data/LICENSE +20 -0
  4. data/README.md +22 -0
  5. data/lib/al_search.rb +56 -0
  6. data/lib/assets/al_search/js/search/base-styles.min.js +286 -0
  7. data/lib/assets/al_search/js/search/command-score.min.js +7 -0
  8. data/lib/assets/al_search/js/search/hotkeys-js/hotkeys.esm.min.js +18 -0
  9. data/lib/assets/al_search/js/search/lit/decorators.min.js +7 -0
  10. data/lib/assets/al_search/js/search/lit/directives/class-map.min.js +7 -0
  11. data/lib/assets/al_search/js/search/lit/directives/join.min.js +7 -0
  12. data/lib/assets/al_search/js/search/lit/directives/live.min.js +7 -0
  13. data/lib/assets/al_search/js/search/lit/directives/ref.min.js +7 -0
  14. data/lib/assets/al_search/js/search/lit/directives/repeat.min.js +7 -0
  15. data/lib/assets/al_search/js/search/lit/directives/unsafe-html.min.js +7 -0
  16. data/lib/assets/al_search/js/search/lit/index.min.js +7 -0
  17. data/lib/assets/al_search/js/search/lit-element/lit-element.min.js +12 -0
  18. data/lib/assets/al_search/js/search/lit-html/directives/class-map.min.js +22 -0
  19. data/lib/assets/al_search/js/search/lit-html/directives/join.min.js +12 -0
  20. data/lib/assets/al_search/js/search/lit-html/directives/live.min.js +28 -0
  21. data/lib/assets/al_search/js/search/lit-html/directives/ref.min.js +32 -0
  22. data/lib/assets/al_search/js/search/lit-html/directives/repeat.min.js +27 -0
  23. data/lib/assets/al_search/js/search/lit-html/directives/unsafe-html.min.js +22 -0
  24. data/lib/assets/al_search/js/search/lit-html/is-server.min.js +12 -0
  25. data/lib/assets/al_search/js/search/lit-html/lit-html.min.js +12 -0
  26. data/lib/assets/al_search/js/search/ninja-action.min.js +101 -0
  27. data/lib/assets/al_search/js/search/ninja-footer.min.js +62 -0
  28. data/lib/assets/al_search/js/search/ninja-header.min.js +78 -0
  29. data/lib/assets/al_search/js/search/ninja-keys.min.js +39 -0
  30. data/lib/assets/al_search/js/search/reactive-element/decorators/custom-element.min.js +12 -0
  31. data/lib/assets/al_search/js/search/reactive-element/decorators/event-options.min.js +12 -0
  32. data/lib/assets/al_search/js/search/reactive-element/decorators/property.min.js +22 -0
  33. data/lib/assets/al_search/js/search/reactive-element/decorators/query-all.min.js +17 -0
  34. data/lib/assets/al_search/js/search/reactive-element/decorators/query-assigned-elements.min.js +17 -0
  35. data/lib/assets/al_search/js/search/reactive-element/decorators/query-assigned-nodes.min.js +17 -0
  36. data/lib/assets/al_search/js/search/reactive-element/decorators/query-async.min.js +17 -0
  37. data/lib/assets/al_search/js/search/reactive-element/decorators/query.min.js +17 -0
  38. data/lib/assets/al_search/js/search/reactive-element/decorators/state.min.js +27 -0
  39. data/lib/assets/al_search/js/search/reactive-element/reactive-element.min.js +17 -0
  40. data/lib/assets/al_search/js/search-setup.js +17 -0
  41. data/lib/assets/al_search/js/shortcut-key.js +11 -0
  42. data/lib/templates/search-data.liquid.js +338 -0
  43. metadata +162 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 252915408c905ab8b69c37670fff77ded57bfb7703ea4170ba728a73e264bc3b
4
+ data.tar.gz: 52dd77e3efccd6bc922ad57bdf23f18ecc6e48d2745708bd0f87f2548f0dc18b
5
+ SHA512:
6
+ metadata.gz: e322eec5fd7dc1df36ae2fb4c1e51396d7c3ede0c9712846b680310db67293936daf818a7be7103b5d150bea733b33bda6f76cf569c1bdae7a167f9d8b10809f
7
+ data.tar.gz: 6407c02525726b7dbac9ec02acc2a54707011ee9382905c94ce286c15da9e2e039d78e2f6f1857a73ec9c5504d9b15c8055fec8a6c193620960e21e89ebac21a
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0 - 2026-02-07
4
+ - Initial gem release.
5
+ - Added standalone search assets and generated search data payload integration.
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2025 Maruan Al-Shedivat.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,22 @@
1
+ # Al-Search
2
+
3
+ A Jekyll plugin that provides the al-folio search experience as a standalone module.
4
+
5
+ ## Installation
6
+
7
+ ```ruby
8
+ gem 'al_search'
9
+ ```
10
+
11
+ Enable in `_config.yml`:
12
+
13
+ ```yaml
14
+ plugins:
15
+ - al_search
16
+ ```
17
+
18
+ ## Usage
19
+
20
+ ```liquid
21
+ {% al_search_assets %}
22
+ ```
data/lib/al_search.rb ADDED
@@ -0,0 +1,56 @@
1
+ require 'jekyll'
2
+ require 'liquid'
3
+
4
+ module AlSearch
5
+ PLUGIN_NAME = 'al_search'
6
+ ASSETS_DIR = 'assets'
7
+ JS_DIR = 'js'
8
+
9
+ class PluginStaticFile < Jekyll::StaticFile; end
10
+
11
+ class AssetsGenerator < Jekyll::Generator
12
+ safe true
13
+ priority :low
14
+
15
+ def generate(site)
16
+ plugin_lib_path = File.expand_path('.', __dir__)
17
+ search_asset_root = File.join(plugin_lib_path, ASSETS_DIR, PLUGIN_NAME, JS_DIR)
18
+ Dir.glob(File.join(search_asset_root, '**', '*')).each do |source_path|
19
+ next if File.directory?(source_path)
20
+
21
+ relative_dir = File.dirname(source_path).sub("#{plugin_lib_path}/", '')
22
+ file_name = File.basename(source_path)
23
+ site.static_files << PluginStaticFile.new(site, plugin_lib_path, relative_dir, file_name)
24
+ end
25
+ end
26
+ end
27
+
28
+ class SearchAssetsTag < Liquid::Tag
29
+ def render(context)
30
+ site = context.registers[:site]
31
+ return '' unless site
32
+ return '' unless site.config['search_enabled']
33
+
34
+ baseurl = site.config['baseurl'] || ''
35
+ payload = site.site_payload
36
+ payload['page'] = context.registers[:page] || {}
37
+ payload['paginator'] = context['paginator'] if context['paginator']
38
+
39
+ template_path = File.expand_path('templates/search-data.liquid.js', __dir__)
40
+ template = Liquid::Template.parse(File.read(template_path))
41
+ search_data = template.render(payload, registers: context.registers)
42
+
43
+ <<~HTML
44
+ <script type="module" src="#{baseurl}/assets/al_search/js/search/ninja-keys.min.js"></script>
45
+ <ninja-keys hideBreadcrumbs noAutoLoadMdIcons placeholder="Type to start searching"></ninja-keys>
46
+ <script src="#{baseurl}/assets/al_search/js/search-setup.js"></script>
47
+ <script>
48
+ #{search_data}
49
+ </script>
50
+ <script src="#{baseurl}/assets/al_search/js/shortcut-key.js"></script>
51
+ HTML
52
+ end
53
+ end
54
+ end
55
+
56
+ Liquid::Template.register_tag('al_search_assets', AlSearch::SearchAssetsTag)
@@ -0,0 +1,286 @@
1
+ /**
2
+ * Minified by jsDelivr using Terser v5.19.2.
3
+ * Original file: /npm/@deepdub/ninja-keys@1.2.11/dist/base-styles.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ import{css}from"./lit/index.min.js";export const baseStyles=css`
8
+ :host {
9
+ --ninja-width: 640px;
10
+ --ninja-backdrop-filter: none;
11
+ --ninja-overflow-background: rgba(255, 255, 255, 0.5);
12
+ --ninja-text-color: rgb(60, 65, 73);
13
+ --ninja-font-size: 16px;
14
+ --ninja-top: 20%;
15
+
16
+ --ninja-key-border-radius: 0.25em;
17
+ --ninja-accent-color: rgb(110, 94, 210);
18
+ --ninja-secondary-background-color: rgb(239, 241, 244);
19
+ --ninja-secondary-text-color: rgb(107, 111, 118);
20
+
21
+ --ninja-selected-background: rgb(248, 249, 251);
22
+
23
+ --ninja-icon-color: var(--ninja-secondary-text-color);
24
+ --ninja-icon-size: 1.2em;
25
+ --ninja-separate-border: 1px solid var(--ninja-secondary-background-color);
26
+
27
+ --ninja-modal-background: #fff;
28
+ --ninja-modal-shadow: rgb(0 0 0 / 50%) 0px 16px 70px;
29
+
30
+ --ninja-actions-height: 300px;
31
+ --ninja-group-text-color: rgb(144, 149, 157);
32
+
33
+ --ninja-footer-background: rgba(242, 242, 242, 0.4);
34
+
35
+ --ninja-placeholder-color: #8e8e8e;
36
+
37
+ font-size: var(--ninja-font-size);
38
+
39
+ --ninja-z-index: 1;
40
+ }
41
+
42
+ :host(.dark) {
43
+ --ninja-backdrop-filter: none;
44
+ --ninja-overflow-background: rgba(0, 0, 0, 0.7);
45
+ --ninja-text-color: #7d7d7d;
46
+
47
+ --ninja-modal-background: rgba(17, 17, 17, 0.85);
48
+ --ninja-accent-color: rgb(110, 94, 210);
49
+ --ninja-secondary-background-color: rgba(51, 51, 51, 0.44);
50
+ --ninja-secondary-text-color: #888;
51
+
52
+ --ninja-selected-text-color: #eaeaea;
53
+ --ninja-selected-background: rgba(51, 51, 51, 0.44);
54
+
55
+ --ninja-icon-color: var(--ninja-secondary-text-color);
56
+ --ninja-separate-border: 1px solid var(--ninja-secondary-background-color);
57
+
58
+ --ninja-modal-shadow: 0 16px 70px rgba(0, 0, 0, 0.2);
59
+
60
+ --ninja-group-text-color: rgb(144, 149, 157);
61
+
62
+ --ninja-footer-background: rgba(30, 30, 30, 85%);
63
+ }
64
+
65
+ .modal {
66
+ display: none;
67
+ position: fixed;
68
+ z-index: var(--ninja-z-index);
69
+ left: 0;
70
+ top: 0;
71
+ width: 100%;
72
+ height: 100%;
73
+ overflow: auto;
74
+ background: var(--ninja-overflow-background);
75
+ -webkit-font-smoothing: antialiased;
76
+ -moz-osx-font-smoothing: grayscale;
77
+ -webkit-backdrop-filter: var(--ninja-backdrop-filter);
78
+ backdrop-filter: var(--ninja-backdrop-filter);
79
+ text-align: left;
80
+ color: var(--ninja-text-color);
81
+ font-family: var(--ninja-font-family);
82
+ }
83
+ .modal.visible {
84
+ display: block;
85
+ }
86
+
87
+ .modal.isLoadingItems .loading-indicator {
88
+ opacity: 1;
89
+ }
90
+
91
+ .modal-content {
92
+ position: relative;
93
+ top: var(--ninja-top);
94
+ margin: auto;
95
+ padding: 0;
96
+ display: flex;
97
+ flex-direction: column;
98
+ flex-shrink: 1;
99
+ -webkit-box-flex: 1;
100
+ flex-grow: 1;
101
+ min-width: 0px;
102
+ will-change: transform;
103
+ background: var(--global-bg-color);
104
+ backdrop-filter: blur(20px);
105
+ border-radius: 0.5em;
106
+ box-shadow: var(--ninja-modal-shadow);
107
+ max-width: var(--ninja-width);
108
+ overflow: hidden;
109
+ }
110
+
111
+ .modal-body {
112
+ background: var(--global-bg-color);
113
+ }
114
+
115
+ .loading-indicator {
116
+ position: absolute;
117
+ width: 100%;
118
+ overflow: hidden;
119
+ opacity: 0;
120
+ height: 3px;
121
+ z-index: 1;
122
+ bottom: 34px;
123
+ }
124
+
125
+ .loading-indicator::before {
126
+ content: '';
127
+ position: absolute;
128
+ inset: 0;
129
+ background-color: var(--ninja-accent-color);
130
+ opacity: 0.3;
131
+ }
132
+
133
+ @keyframes animation-bar1 {
134
+ 0% {
135
+ left: -35%;
136
+ right: 100%;
137
+ }
138
+ 60% {
139
+ left: 100%;
140
+ right: -90%;
141
+ }
142
+ 100% {
143
+ left: 100%;
144
+ right: -90%;
145
+ }
146
+ }
147
+
148
+ .loading-indicator .bar1 {
149
+ width: 100%;
150
+ position: absolute;
151
+ left: 0;
152
+ bottom: 0;
153
+ top: 0;
154
+ -webkit-transition: -webkit-transform 0.2s linear;
155
+ transition: transform 0.2s linear;
156
+ transform-origin: left;
157
+ background-color: var(--ninja-accent-color);
158
+ width: auto;
159
+ -webkit-animation: animation-bar1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
160
+ animation: animation-bar1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
161
+ }
162
+
163
+ @keyframes animation-bar2 {
164
+ 0% {
165
+ left: -200%;
166
+ right: 100%;
167
+ }
168
+ 60% {
169
+ left: 107%;
170
+ right: -8%;
171
+ }
172
+ 100% {
173
+ left: 107%;
174
+ right: -8%;
175
+ }
176
+ }
177
+
178
+ .loading-indicator .bar2 {
179
+ width: 100%;
180
+ position: absolute;
181
+ left: 0;
182
+ bottom: 0;
183
+ top: 0;
184
+ -webkit-transition: -webkit-transform 0.2s linear;
185
+ transition: transform 0.2s linear;
186
+ transform-origin: left;
187
+ background-color: var(--ninja-accent-color);
188
+ width: auto;
189
+ -webkit-animation: animation-bar2 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
190
+ animation: animation-bar2 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
191
+ }
192
+
193
+ .bump {
194
+ animation: zoom-in-zoom-out 0.2s ease;
195
+ }
196
+
197
+ @keyframes zoom-in-zoom-out {
198
+ 0% {
199
+ transform: scale(0.99);
200
+ }
201
+ 50% {
202
+ transform: scale(1.01, 1.01);
203
+ }
204
+ 100% {
205
+ transform: scale(1, 1);
206
+ }
207
+ }
208
+
209
+ .title {
210
+ font-size: 0.75rem;
211
+ padding: 0.25rem 0.25rem;
212
+ text-align: right;
213
+ position: absolute;
214
+ right: 0px;
215
+ width: 100%;
216
+ }
217
+
218
+ .title.separator {
219
+ border-top: 1px solid rgb(51, 51, 51);
220
+ }
221
+
222
+ .ninja-github {
223
+ color: var(--ninja-keys-text-color);
224
+ font-weight: normal;
225
+ text-decoration: none;
226
+ }
227
+
228
+ .actions-list {
229
+ max-height: var(--ninja-actions-height);
230
+ overflow: auto;
231
+ position: relative;
232
+ margin: 0;
233
+ padding: 0.5em 0;
234
+ list-style: none;
235
+ scroll-behavior: auto;
236
+ }
237
+
238
+ .group-header {
239
+ height: 1.375em;
240
+ line-height: 1.375em;
241
+ padding-left: 1.25em;
242
+ padding-top: 0.5em;
243
+ text-overflow: ellipsis;
244
+ white-space: nowrap;
245
+ overflow: hidden;
246
+ font-size: 0.75em;
247
+ line-height: 1em;
248
+ color: var(--ninja-group-text-color);
249
+ margin: 1px 0;
250
+ }
251
+
252
+ .modal-footer {
253
+ padding: 0.5em 1em;
254
+ display: flex;
255
+ /* font-size: 0.75em; */
256
+ border-top: var(--ninja-separate-border);
257
+ color: var(--ninja-secondary-text-color);
258
+ }
259
+
260
+ .modal-footer .help {
261
+ display: flex;
262
+ margin-right: 1em;
263
+ align-items: center;
264
+ font-size: 0.75em;
265
+ }
266
+
267
+ .ninja-examplekey {
268
+ background: var(--ninja-secondary-background-color);
269
+ padding: 0.06em 0.25em;
270
+ border-radius: var(--ninja-key-border-radius);
271
+ color: var(--ninja-secondary-text-color);
272
+ width: 1em;
273
+ height: 1em;
274
+ margin-right: 0.5em;
275
+ font-size: 1.25em;
276
+ fill: currentColor;
277
+ }
278
+ .ninja-examplekey.esc {
279
+ width: auto;
280
+ height: auto;
281
+ font-size: 1.1em;
282
+ }
283
+ .ninja-examplekey.backspace {
284
+ opacity: 0.7;
285
+ }
286
+ `;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Minified by jsDelivr using Terser v5.19.2.
3
+ * Original file: /npm/@deepdub/ninja-keys@1.2.11/dist/command-score.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ const SCORE_CONTINUE_MATCH=1,SCORE_SPACE_WORD_JUMP=.9,SCORE_NON_SPACE_WORD_JUMP=.8,SCORE_CHARACTER_JUMP=.3,PENALTY_SKIPPED=.999,PENALTY_CASE_MISMATCH=.9999,PENALTY_NOT_COMPLETE=.99,IS_GAP_REGEXP=/[\\/_+.#"@[({&]/,COUNT_GAPS_REGEXP=/[\\/_+.#"@[({&]/g,IS_SPACE_REGEXP=/[\s-]/,COUNT_SPACE_REGEXP=/[\s-]/g;function commandScoreInner(E,_,P,C,e,n,t){if(n===_.length)return e===E.length?{score:SCORE_CONTINUE_MATCH,indices:[]}:{score:PENALTY_NOT_COMPLETE,indices:[]};const A=`${e},${n}`;if(void 0!==t[A])return t[A];const S=C.charAt(n);let c,r,o,O,T=P.indexOf(S,e),R=0,N=[];for(;T>=0;)O=commandScoreInner(E,_,P,C,T+1,n+1,t),c=O.score,c>R&&(T===e?c*=SCORE_CONTINUE_MATCH:IS_GAP_REGEXP.test(E.charAt(T-1))?(c*=SCORE_NON_SPACE_WORD_JUMP,r=E.slice(e,T-1).match(COUNT_GAPS_REGEXP),r&&e>0&&(c*=Math.pow(PENALTY_SKIPPED,r.length))):IS_SPACE_REGEXP.test(E.charAt(T-1))?(c*=SCORE_SPACE_WORD_JUMP,o=E.slice(e,T-1).match(COUNT_SPACE_REGEXP),o&&e>0&&(c*=Math.pow(PENALTY_SKIPPED,o.length))):(c*=SCORE_CHARACTER_JUMP,e>0&&(c*=Math.pow(PENALTY_SKIPPED,T-e))),E.charAt(T)!==_.charAt(n)&&(c*=PENALTY_CASE_MISMATCH)),c>R&&(N=[T,...O.indices],R=c),T=P.indexOf(S,T+1);return t[A]={score:R,indices:N},{score:R,indices:N}}function formatInput(E){return E.toLowerCase().replace(COUNT_SPACE_REGEXP," ")}function commandScore(E,_){return commandScoreInner(E,_,formatInput(E),formatInput(_),0,0,{})}export{commandScore};
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/hotkeys-js@3.13.7/dist/hotkeys.esm.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ /**!
8
+ * hotkeys-js v3.13.7
9
+ * A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
10
+ *
11
+ * Copyright (c) 2024 kenny wong <wowohoo@qq.com>
12
+ * https://github.com/jaywcjlove/hotkeys-js.git
13
+ *
14
+ * @website: https://jaywcjlove.github.io/hotkeys-js
15
+
16
+ * Licensed under the MIT license
17
+ */
18
+ const e="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function t(e,t,n,o){e.addEventListener?e.addEventListener(t,n,o):e.attachEvent&&e.attachEvent("on".concat(t),n)}function n(e,t,n,o){e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent&&e.detachEvent("on".concat(t),n)}function o(e,t){const n=t.slice(0,t.length-1);for(let t=0;t<n.length;t++)n[t]=e[n[t].toLowerCase()];return n}function r(e){"string"!=typeof e&&(e="");const t=(e=e.replace(/\s/g,"")).split(",");let n=t.lastIndexOf("");for(;n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}const i={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":e?173:189,"=":e?61:187,";":e?59:186,"'":222,"[":219,"]":221,"\\":220},c={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},s={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},l={16:!1,18:!1,17:!1,91:!1},f={};for(let e=1;e<20;e++)i["f".concat(e)]=111+e;let a=[],u=null,p="all";const d=new Map,y=e=>i[e.toLowerCase()]||c[e.toLowerCase()]||e.toUpperCase().charCodeAt(0);function h(e){p=e||"all"}function m(){return p||"all"}function k(e){if(void 0===e)Object.keys(f).forEach((e=>{Array.isArray(f[e])&&f[e].forEach((e=>g(e))),delete f[e]})),v(null);else if(Array.isArray(e))e.forEach((e=>{e.key&&g(e)}));else if("object"==typeof e)e.key&&g(e);else if("string"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];let[r,i]=n;"function"==typeof r&&(i=r,r=""),g({key:e,scope:r,method:i,splitKey:"+"})}}const g=e=>{let{key:t,scope:n,method:i,splitKey:s="+"}=e;r(t).forEach((e=>{const t=e.split(s),r=t.length,l=t[r-1],a="*"===l?"*":y(l);if(!f[a])return;n||(n=m());const u=r>1?o(c,t):[],p=[];f[a]=f[a].filter((e=>{const t=(!i||e.method===i)&&e.scope===n&&function(e,t){const n=e.length>=t.length?e:t,o=e.length>=t.length?t:e;let r=!0;for(let e=0;e<n.length;e++)-1===o.indexOf(n[e])&&(r=!1);return r}(e.mods,u);return t&&p.push(e.element),!t})),p.forEach((e=>v(e)))}))};function w(e,t,n,o){if(t.element!==o)return;let r;if(t.scope===n||"all"===t.scope){r=t.mods.length>0;for(const e in l)Object.prototype.hasOwnProperty.call(l,e)&&(!l[e]&&t.mods.indexOf(+e)>-1||l[e]&&-1===t.mods.indexOf(+e))&&(r=!1);(0!==t.mods.length||l[16]||l[18]||l[17]||l[91])&&!r&&"*"!==t.shortcut||(t.keys=[],t.keys=t.keys.concat(a),!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function O(e,t){const n=f["*"];let o=e.keyCode||e.which||e.charCode;if(!b.filter.call(this,e))return;if(93!==o&&224!==o||(o=91),-1===a.indexOf(o)&&229!==o&&a.push(o),["ctrlKey","altKey","shiftKey","metaKey"].forEach((t=>{const n=s[t];e[t]&&-1===a.indexOf(n)?a.push(n):!e[t]&&a.indexOf(n)>-1?a.splice(a.indexOf(n),1):"metaKey"===t&&e[t]&&3===a.length&&(e.ctrlKey||e.shiftKey||e.altKey||(a=a.slice(a.indexOf(n))))})),o in l){l[o]=!0;for(const e in c)c[e]===o&&(b[e]=!0);if(!n)return}for(const t in l)Object.prototype.hasOwnProperty.call(l,t)&&(l[t]=e[s[t]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===a.indexOf(17)&&a.push(17),-1===a.indexOf(18)&&a.push(18),l[17]=!0,l[18]=!0);const r=m();if(n)for(let o=0;o<n.length;o++)n[o].scope===r&&("keydown"===e.type&&n[o].keydown||"keyup"===e.type&&n[o].keyup)&&w(e,n[o],r,t);if(!(o in f))return;const i=f[o],u=i.length;for(let n=0;n<u;n++)if(("keydown"===e.type&&i[n].keydown||"keyup"===e.type&&i[n].keyup)&&i[n].key){const o=i[n],{splitKey:c}=o,s=o.key.split(c),l=[];for(let e=0;e<s.length;e++)l.push(y(s[e]));l.sort().join("")===a.sort().join("")&&w(e,o,r,t)}}function b(e,n,i){a=[];const s=r(e);let p=[],h="all",m=document,g=0,w=!1,v=!0,E="+",K=!1,x=!1;for(void 0===i&&"function"==typeof n&&(i=n),"[object Object]"===Object.prototype.toString.call(n)&&(n.scope&&(h=n.scope),n.element&&(m=n.element),n.keyup&&(w=n.keyup),void 0!==n.keydown&&(v=n.keydown),void 0!==n.capture&&(K=n.capture),"string"==typeof n.splitKey&&(E=n.splitKey),!0===n.single&&(x=!0)),"string"==typeof n&&(h=n),x&&k(e,h);g<s.length;g++)p=[],(e=s[g].split(E)).length>1&&(p=o(c,e)),(e="*"===(e=e[e.length-1])?"*":y(e))in f||(f[e]=[]),f[e].push({keyup:w,keydown:v,scope:h,mods:p,shortcut:s[g],method:i,key:s[g],splitKey:E,element:m});if(void 0!==m&&window){if(!d.has(m)){const e=function(){return O(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event,m)},n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event;O(e,m),function(e){let t=e.keyCode||e.which||e.charCode;const n=a.indexOf(t);if(n>=0&&a.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&a.splice(0,a.length),93!==t&&224!==t||(t=91),t in l){l[t]=!1;for(const e in c)c[e]===t&&(b[e]=!1)}}(e)};d.set(m,{keydownListener:e,keyupListenr:n,capture:K}),t(m,"keydown",e,K),t(m,"keyup",n,K)}if(!u){const e=()=>{a=[]};u={listener:e,capture:K},t(window,"focus",e,K)}}}function v(e){const t=Object.values(f).flat();if(t.findIndex((t=>{let{element:n}=t;return n===e}))<0){const{keydownListener:t,keyupListenr:o,capture:r}=d.get(e)||{};t&&o&&(n(e,"keyup",o,r),n(e,"keydown",t,r),d.delete(e))}if(t.length<=0||d.size<=0){if(Object.keys(d).forEach((e=>{const{keydownListener:t,keyupListenr:o,capture:r}=d.get(e)||{};t&&o&&(n(e,"keyup",o,r),n(e,"keydown",t,r),d.delete(e))})),d.clear(),Object.keys(f).forEach((e=>delete f[e])),u){const{listener:e,capture:t}=u;n(window,"focus",e,t),u=null}}}const E={getPressedKeyString:function(){return a.map((e=>{return t=e,Object.keys(i).find((e=>i[e]===t))||(e=>Object.keys(c).find((t=>c[t]===e)))(e)||String.fromCharCode(e);var t}))},setScope:h,getScope:m,deleteScope:function(e,t){let n,o;e||(e=m());for(const t in f)if(Object.prototype.hasOwnProperty.call(f,t))for(n=f[t],o=0;o<n.length;)if(n[o].scope===e){n.splice(o,1).forEach((e=>{let{element:t}=e;return v(t)}))}else o++;m()===e&&h(t||"all")},getPressedKeyCodes:function(){return a.slice(0)},getAllKeyCodes:function(){const e=[];return Object.keys(f).forEach((t=>{f[t].forEach((t=>{let{key:n,scope:o,mods:r,shortcut:i}=t;e.push({scope:o,shortcut:i,mods:r,keys:n.split("+").map((e=>y(e)))})}))})),e},isPressed:function(e){return"string"==typeof e&&(e=y(e)),-1!==a.indexOf(e)},filter:function(e){const t=e.target||e.srcElement,{tagName:n}=t;let o=!0;const r="INPUT"===n&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(r||"TEXTAREA"===n||"SELECT"===n)&&!t.readOnly)&&(o=!1),o},trigger:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(f).forEach((n=>{f[n].filter((n=>n.scope===t&&n.shortcut===e)).forEach((e=>{e&&e.method&&e.method()}))}))},unbind:k,keyMap:i,modifier:c,modifierMap:s};for(const e in E)Object.prototype.hasOwnProperty.call(E,e)&&(b[e]=E[e]);if("undefined"!=typeof window){const e=window.hotkeys;b.noConflict=t=>(t&&window.hotkeys===b&&(window.hotkeys=e),b),window.hotkeys=b}export{b as default};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/lit@3.1.3/decorators.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ export*from"../reactive-element/decorators/custom-element.min.js";export*from"../reactive-element/decorators/property.min.js";export*from"../reactive-element/decorators/state.min.js";export*from"../reactive-element/decorators/event-options.min.js";export*from"../reactive-element/decorators/query.min.js";export*from"../reactive-element/decorators/query-all.min.js";export*from"../reactive-element/decorators/query-async.min.js";export*from"../reactive-element/decorators/query-assigned-elements.min.js";export*from"../reactive-element/decorators/query-assigned-nodes.min.js";export default null;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/lit@3.1.3/directives/class-map.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ export*from"../../lit-html/directives/class-map.min.js";export default null;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/lit@3.1.3/directives/join.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ export*from"../../lit-html/directives/join.min.js";export default null;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/lit@3.1.3/directives/live.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ export*from"../../lit-html/directives/live.min.js";export default null;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/lit@3.1.3/directives/ref.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ export*from"../../lit-html/directives/ref.min.js";export default null;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/lit@3.1.3/directives/repeat.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ export*from"../../lit-html/directives/repeat.min.js";export default null;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/lit@3.1.3/directives/unsafe-html.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ export*from"../../lit-html/directives/unsafe-html.min.js";export default null;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/lit@3.1.3/index.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ import"../reactive-element/reactive-element.min.js";import"../lit-html/lit-html.min.js";export*from"../lit-element/lit-element.min.js";export*from"../lit-html/is-server.min.js";export default null;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/lit-element@4.0.5/lit-element.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ import{ReactiveElement as e}from"../reactive-element/reactive-element.min.js";export*from"../reactive-element/reactive-element.min.js";import{render as t,noChange as n}from"../lit-html/lit-html.min.js";export*from"../lit-html/lit-html.min.js";
8
+ /**
9
+ * @license
10
+ * Copyright 2017 Google LLC
11
+ * SPDX-License-Identifier: BSD-3-Clause
12
+ */class s extends e{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=t(n,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return n}}s._$litElement$=!0,s.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:s});const r=globalThis.litElementPolyfillSupport;r?.({LitElement:s});const o={_$AK:(e,t,n)=>{e._$AK(t,n)},_$AL:e=>e._$AL};(globalThis.litElementVersions??=[]).push("4.0.5");export{s as LitElement,o as _$LE};export default null;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/lit-html@3.1.3/directives/class-map.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ /**
8
+ * @license
9
+ * Copyright 2017 Google LLC
10
+ * SPDX-License-Identifier: BSD-3-Clause
11
+ */
12
+ const t=globalThis,e=t.trustedTypes,s=e?e.createPolicy("lit-html",{createHTML:t=>t}):void 0,i="$lit$",n=`lit$${Math.random().toFixed(9).slice(2)}$`,r="?"+n,o=`<${r}>`,h=document,l=()=>h.createComment(""),$=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a=Array.isArray,A=t=>a(t)||"function"==typeof t?.[Symbol.iterator],c="[ \t\n\f\r]",_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,d=/-->/g,p=/>/g,u=RegExp(`>|${c}(?:([^\\s"'>=/]+)(${c}*=${c}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),g=/'/g,f=/"/g,v=/^(?:script|style|textarea|title)$/i,m=Symbol.for("lit-noChange"),y=Symbol.for("lit-nothing"),x=new WeakMap,H=h.createTreeWalker(h,129);function T(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s?s.createHTML(e):e}const N=(t,e)=>{const s=t.length-1,r=[];let h,l=2===e?"<svg>":"",$=_;for(let e=0;e<s;e++){const s=t[e];let a,A,c=-1,m=0;for(;m<s.length&&($.lastIndex=m,A=$.exec(s),null!==A);)m=$.lastIndex,$===_?"!--"===A[1]?$=d:void 0!==A[1]?$=p:void 0!==A[2]?(v.test(A[2])&&(h=RegExp("</"+A[2],"g")),$=u):void 0!==A[3]&&($=u):$===u?">"===A[0]?($=h??_,c=-1):void 0===A[1]?c=-2:(c=$.lastIndex-A[2].length,a=A[1],$=void 0===A[3]?u:'"'===A[3]?f:g):$===f||$===g?$=u:$===d||$===p?$=_:($=u,h=void 0);const y=$===u&&t[e+1].startsWith("/>")?" ":"";l+=$===_?s+o:c>=0?(r.push(a),s.slice(0,c)+i+s.slice(c)+n+y):s+n+(-2===c?e:y)}return[T(t,l+(t[s]||"<?>")+(2===e?"</svg>":"")),r]};class b{constructor({strings:t,_$litType$:s},o){let h;this.parts=[];let $=0,a=0;const A=t.length-1,c=this.parts,[_,d]=N(t,s);if(this.el=b.createElement(_,o),H.currentNode=this.el.content,2===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(h=H.nextNode())&&c.length<A;){if(1===h.nodeType){if(h.hasAttributes())for(const t of h.getAttributeNames())if(t.endsWith(i)){const e=d[a++],s=h.getAttribute(t).split(n),i=/([.?@])?(.*)/.exec(e);c.push({type:1,index:$,name:i[2],strings:s,ctor:"."===i[1]?w:"?"===i[1]?I:"@"===i[1]?U:C}),h.removeAttribute(t)}else t.startsWith(n)&&(c.push({type:6,index:$}),h.removeAttribute(t));if(v.test(h.tagName)){const t=h.textContent.split(n),s=t.length-1;if(s>0){h.textContent=e?e.emptyScript:"";for(let e=0;e<s;e++)h.append(t[e],l()),H.nextNode(),c.push({type:2,index:++$});h.append(t[s],l())}}}else if(8===h.nodeType)if(h.data===r)c.push({type:2,index:$});else{let t=-1;for(;-1!==(t=h.data.indexOf(n,t+1));)c.push({type:7,index:$}),t+=n.length-1}$++}}static createElement(t,e){const s=h.createElement("template");return s.innerHTML=t,s}}function E(t,e,s=t,i){if(e===m)return e;let n=void 0!==i?s._$Co?.[i]:s._$Cl;const r=$(e)?void 0:e._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),void 0===r?n=void 0:(n=new r(t),n._$AT(t,s,i)),void 0!==i?(s._$Co??=[])[i]=n:s._$Cl=n),void 0!==n&&(e=E(t,n._$AS(t,e.values),n,i)),e}class M{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??h).importNode(e,!0);H.currentNode=i;let n=H.nextNode(),r=0,o=0,l=s[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new S(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new R(n,this,t)),this._$AV.push(e),l=s[++o]}r!==l?.index&&(n=H.nextNode(),r++)}return H.currentNode=h,i}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class S{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=y,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=E(this,t,e),$(t)?t===y||null==t||""===t?(this._$AH!==y&&this._$AR(),this._$AH=y):t!==this._$AH&&t!==m&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):A(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==y&&$(this._$AH)?this._$AA.nextSibling.data=t:this.T(h.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=b.createElement(T(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new M(i,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=x.get(t.strings);return void 0===e&&x.set(t.strings,e=new b(t)),e}k(t){a(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const n of t)i===e.length?e.push(s=new S(this.S(l()),this.S(l()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class C{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,n){this.type=1,this._$AH=y,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=y}_$AI(t,e=this,s,i){const n=this.strings;let r=!1;if(void 0===n)t=E(this,t,e,0),r=!$(t)||t!==this._$AH&&t!==m,r&&(this._$AH=t);else{const i=t;let o,h;for(t=n[0],o=0;o<n.length-1;o++)h=E(this,i[s+o],e,o),h===m&&(h=this._$AH[o]),r||=!$(h)||h!==this._$AH[o],h===y?t=y:t!==y&&(t+=(h??"")+n[o+1]),this._$AH[o]=h}r&&!i&&this.j(t)}j(t){t===y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class w extends C{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===y?void 0:t}}class I extends C{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==y)}}class U extends C{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){if((t=E(this,t,e,0)??y)===m)return;const s=this._$AH,i=t===y&&s!==y||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==y&&(s===y||i);i&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class R{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){E(this,t)}}const B=t.litHtmlPolyfillSupport;B?.(b,S),(t.litHtmlVersions??=[]).push("3.1.3");
13
+ /**
14
+ * @license
15
+ * Copyright 2017 Google LLC
16
+ * SPDX-License-Identifier: BSD-3-Clause
17
+ */const L={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},j=t=>(...e)=>({_$litDirective$:t,values:e});class O{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
18
+ /**
19
+ * @license
20
+ * Copyright 2018 Google LLC
21
+ * SPDX-License-Identifier: BSD-3-Clause
22
+ */const P=j(class extends O{constructor(t){if(super(t),t.type!==L.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const s=t.element.classList;for(const t of this.st)t in e||(s.remove(t),this.st.delete(t));for(const t in e){const i=!!e[t];i===this.st.has(t)||this.nt?.has(t)||(i?(s.add(t),this.st.add(t)):(s.remove(t),this.st.delete(t)))}return m}});export{P as classMap};export default null;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/lit-html@3.1.3/directives/join.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ /**
8
+ * @license
9
+ * Copyright 2021 Google LLC
10
+ * SPDX-License-Identifier: BSD-3-Clause
11
+ */
12
+ function*o(o,t){const n="function"==typeof t;if(void 0!==o){let e=-1;for(const f of o)e>-1&&(yield n?t(e):t),e++,yield f}}export{o as join};export default null;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
3
+ * Original file: /npm/lit-html@3.1.3/directives/live.js
4
+ *
5
+ * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6
+ */
7
+ /**
8
+ * @license
9
+ * Copyright 2017 Google LLC
10
+ * SPDX-License-Identifier: BSD-3-Clause
11
+ */
12
+ const t=globalThis,e=t.trustedTypes,i=e?e.createPolicy("lit-html",{createHTML:t=>t}):void 0,s="$lit$",n=`lit$${Math.random().toFixed(9).slice(2)}$`,r="?"+n,o=`<${r}>`,h=document,l=()=>h.createComment(""),$=t=>null===t||"object"!=typeof t&&"function"!=typeof t,A=Array.isArray,_="[ \t\n\f\r]",c=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,a=/-->/g,d=/>/g,p=RegExp(`>|${_}(?:([^\\s"'>=/]+)(${_}*=${_}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),u=/'/g,g=/"/g,v=/^(?:script|style|textarea|title)$/i,f=Symbol.for("lit-noChange"),m=Symbol.for("lit-nothing"),y=new WeakMap,x=h.createTreeWalker(h,129);function H(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==i?i.createHTML(e):e}const N=(t,e)=>{const i=t.length-1,r=[];let h,l=2===e?"<svg>":"",$=c;for(let e=0;e<i;e++){const i=t[e];let A,_,f=-1,m=0;for(;m<i.length&&($.lastIndex=m,_=$.exec(i),null!==_);)m=$.lastIndex,$===c?"!--"===_[1]?$=a:void 0!==_[1]?$=d:void 0!==_[2]?(v.test(_[2])&&(h=RegExp("</"+_[2],"g")),$=p):void 0!==_[3]&&($=p):$===p?">"===_[0]?($=h??c,f=-1):void 0===_[1]?f=-2:(f=$.lastIndex-_[2].length,A=_[1],$=void 0===_[3]?p:'"'===_[3]?g:u):$===g||$===u?$=p:$===a||$===d?$=c:($=p,h=void 0);const y=$===p&&t[e+1].startsWith("/>")?" ":"";l+=$===c?i+o:f>=0?(r.push(A),i.slice(0,f)+s+i.slice(f)+n+y):i+n+(-2===f?e:y)}return[H(t,l+(t[i]||"<?>")+(2===e?"</svg>":"")),r]};class b{constructor({strings:t,_$litType$:i},o){let h;this.parts=[];let $=0,A=0;const _=t.length-1,c=this.parts,[a,d]=N(t,i);if(this.el=b.createElement(a,o),x.currentNode=this.el.content,2===i){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(h=x.nextNode())&&c.length<_;){if(1===h.nodeType){if(h.hasAttributes())for(const t of h.getAttributeNames())if(t.endsWith(s)){const e=d[A++],i=h.getAttribute(t).split(n),s=/([.?@])?(.*)/.exec(e);c.push({type:1,index:$,name:s[2],strings:i,ctor:"."===s[1]?w:"?"===s[1]?E:"@"===s[1]?I:S}),h.removeAttribute(t)}else t.startsWith(n)&&(c.push({type:6,index:$}),h.removeAttribute(t));if(v.test(h.tagName)){const t=h.textContent.split(n),i=t.length-1;if(i>0){h.textContent=e?e.emptyScript:"";for(let e=0;e<i;e++)h.append(t[e],l()),x.nextNode(),c.push({type:2,index:++$});h.append(t[i],l())}}}else if(8===h.nodeType)if(h.data===r)c.push({type:2,index:$});else{let t=-1;for(;-1!==(t=h.data.indexOf(n,t+1));)c.push({type:7,index:$}),t+=n.length-1}$++}}static createElement(t,e){const i=h.createElement("template");return i.innerHTML=t,i}}function T(t,e,i=t,s){if(e===f)return e;let n=void 0!==s?i._$Co?.[s]:i._$Cl;const r=$(e)?void 0:e._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),void 0===r?n=void 0:(n=new r(t),n._$AT(t,i,s)),void 0!==s?(i._$Co??=[])[s]=n:i._$Cl=n),void 0!==n&&(e=T(t,n._$AS(t,e.values),n,s)),e}class C{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,s=(t?.creationScope??h).importNode(e,!0);x.currentNode=s;let n=x.nextNode(),r=0,o=0,l=i[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new M(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new U(n,this,t)),this._$AV.push(e),l=i[++o]}r!==l?.index&&(n=x.nextNode(),r++)}return x.currentNode=h,s}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class M{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,s){this.type=2,this._$AH=m,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=T(this,t,e),$(t)?t===m||null==t||""===t?(this._$AH!==m&&this._$AR(),this._$AH=m):t!==this._$AH&&t!==f&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>A(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==m&&$(this._$AH)?this._$AA.nextSibling.data=t:this.T(h.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,s="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=b.createElement(H(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(e);else{const t=new C(s,this),i=t.u(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let e=y.get(t.strings);return void 0===e&&y.set(t.strings,e=new b(t)),e}k(t){A(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const n of t)s===e.length?e.push(i=new M(this.S(l()),this.S(l()),this,this.options)):i=e[s],i._$AI(n),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class S{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,n){this.type=1,this._$AH=m,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=m}_$AI(t,e=this,i,s){const n=this.strings;let r=!1;if(void 0===n)t=T(this,t,e,0),r=!$(t)||t!==this._$AH&&t!==f,r&&(this._$AH=t);else{const s=t;let o,h;for(t=n[0],o=0;o<n.length-1;o++)h=T(this,s[i+o],e,o),h===f&&(h=this._$AH[o]),r||=!$(h)||h!==this._$AH[o],h===m?t=m:t!==m&&(t+=(h??"")+n[o+1]),this._$AH[o]=h}r&&!s&&this.j(t)}j(t){t===m?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class w extends S{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===m?void 0:t}}class E extends S{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==m)}}class I extends S{constructor(t,e,i,s,n){super(t,e,i,s,n),this.type=5}_$AI(t,e=this){if((t=T(this,t,e,0)??m)===f)return;const i=this._$AH,s=t===m&&i!==m||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==m&&(i===m||s);s&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class U{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){T(this,t)}}const R=t.litHtmlPolyfillSupport;R?.(b,M),(t.litHtmlVersions??=[]).push("3.1.3");
13
+ /**
14
+ * @license
15
+ * Copyright 2017 Google LLC
16
+ * SPDX-License-Identifier: BSD-3-Clause
17
+ */
18
+ const B=1,W=3,j=4;class D{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
19
+ /**
20
+ * @license
21
+ * Copyright 2020 Google LLC
22
+ * SPDX-License-Identifier: BSD-3-Clause
23
+ */const L={},P=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends D{constructor(t){if(super(t),t.type!==W&&t.type!==B&&t.type!==j)throw Error("The `live` directive is not allowed on child or event bindings");if(!(t=>void 0===t.strings)(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===f||e===m)return e;const i=t.element,s=t.name;if(t.type===W){if(e===i[s])return f}else if(t.type===j){if(!!e===i.hasAttribute(s))return f}else if(t.type===B&&i.getAttribute(s)===e+"")return f;return((t,e=L)=>{t._$AH=e;
24
+ /**
25
+ * @license
26
+ * Copyright 2020 Google LLC
27
+ * SPDX-License-Identifier: BSD-3-Clause
28
+ */})(t),e}});export{P as live};export default null;