ai-usage-analyzer 0.4.0 → 0.5.1

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.
package/web/dates.js ADDED
@@ -0,0 +1,35 @@
1
+ export function dayNumber(ts) {
2
+ const date = new Date(ts);
3
+ return Math.floor(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()) / 86400000);
4
+ }
5
+
6
+ export function periodBounds(period, now = Date.now()) {
7
+ const { key, from, to } = period;
8
+ const today = dayNumber(now);
9
+ const date = new Date(now);
10
+ if (key === 'all') return null;
11
+ if (key === 'custom') return [from, to];
12
+ if (key === 'today') return [today, today];
13
+ if (key === 'week') return [today - (date.getDay() + 6) % 7, today];
14
+ if (key === 'year') return [dayNumber(new Date(date.getFullYear(), 0, 1).getTime()), today];
15
+ return [today - Number(key) + 1, today];
16
+ }
17
+
18
+ export function dateValue(day) {
19
+ return day == null ? '' : new Date(day * 86400000).toISOString().slice(0, 10);
20
+ }
21
+
22
+ export function parseDate(value) {
23
+ if (!/^\d{4}-\d{2}-\d{2}$/.test(value)) return null;
24
+ const ts = Date.parse(`${value}T00:00:00Z`);
25
+ if (!Number.isFinite(ts)) return null;
26
+ const day = ts / 86400000;
27
+ return dateValue(day) === value ? day : null;
28
+ }
29
+
30
+ export function calendarDays(month) {
31
+ const date = new Date(month * 86400000);
32
+ date.setUTCDate(1);
33
+ const first = date.getTime() / 86400000 - (date.getUTCDay() + 6) % 7;
34
+ return Array.from({ length: 42 }, (_, index) => first + index);
35
+ }
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect width="32" height="32" rx="6" fill="#e5401a"/><path d="M7 24V16h4v8zm7 0V8h4v16zm7 0V12h4v12z" fill="#f1ede4"/></svg>
@@ -0,0 +1,93 @@
1
+ Copyright 2018 The Manrope Project Authors (https://github.com/googlefonts/manrope)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file
@@ -0,0 +1 @@
1
+ <svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Claude</title><path d="M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z"></path></svg>
@@ -0,0 +1 @@
1
+ <svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>OpenAI</title><path d="M9.205 8.658v-2.26c0-.19.072-.333.238-.428l4.543-2.616c.619-.357 1.356-.523 2.117-.523 2.854 0 4.662 2.212 4.662 4.566 0 .167 0 .357-.024.547l-4.71-2.759a.797.797 0 00-.856 0l-5.97 3.473zm10.609 8.8V12.06c0-.333-.143-.57-.429-.737l-5.97-3.473 1.95-1.118a.433.433 0 01.476 0l4.543 2.617c1.309.76 2.189 2.378 2.189 3.948 0 1.808-1.07 3.473-2.76 4.163zM7.802 12.703l-1.95-1.142c-.167-.095-.239-.238-.239-.428V5.899c0-2.545 1.95-4.472 4.591-4.472 1 0 1.927.333 2.712.928L8.23 5.067c-.285.166-.428.404-.428.737v6.898zM12 15.128l-2.795-1.57v-3.33L12 8.658l2.795 1.57v3.33L12 15.128zm1.796 7.23c-1 0-1.927-.332-2.712-.927l4.686-2.712c.285-.166.428-.404.428-.737v-6.898l1.974 1.142c.167.095.238.238.238.428v5.233c0 2.545-1.974 4.472-4.614 4.472zm-5.637-5.303l-4.544-2.617c-1.308-.761-2.188-2.378-2.188-3.948A4.482 4.482 0 014.21 6.327v5.423c0 .333.143.571.428.738l5.947 3.449-1.95 1.118a.432.432 0 01-.476 0zm-.262 3.9c-2.688 0-4.662-2.021-4.662-4.519 0-.19.024-.38.047-.57l4.686 2.71c.286.167.571.167.856 0l5.97-3.448v2.26c0 .19-.07.333-.237.428l-4.543 2.616c-.619.357-1.356.523-2.117.523zm5.899 2.83a5.947 5.947 0 005.827-4.756C22.287 18.339 24 15.84 24 13.296c0-1.665-.713-3.282-1.998-4.448.119-.5.19-.999.19-1.498 0-3.401-2.759-5.947-5.946-5.947-.642 0-1.26.095-1.88.31A5.962 5.962 0 0010.205 0a5.947 5.947 0 00-5.827 4.757C1.713 5.447 0 7.945 0 10.49c0 1.666.713 3.283 1.998 4.448-.119.5-.19 1-.19 1.499 0 3.401 2.759 5.946 5.946 5.946.642 0 1.26-.095 1.88-.309a5.96 5.96 0 004.162 1.713z"></path></svg>
@@ -0,0 +1 @@
1
+ <svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>opencode</title><path d="M16 6H8v12h8V6zm4 16H4V2h16v20z"></path></svg>
package/web/index.html ADDED
@@ -0,0 +1,233 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <meta name="color-scheme" content="light">
7
+ <title>Usage overview · AI Usage Analyzer</title>
8
+ <link rel="icon" href="/favicon.svg" type="image/svg+xml">
9
+ <link rel="preload" href="/fonts/manrope.woff2" as="font" type="font/woff2" crossorigin>
10
+ <link rel="stylesheet" href="/style.css">
11
+ <script src="/gsap.js" defer></script>
12
+ <script type="module" src="/app.js"></script>
13
+ </head>
14
+ <body>
15
+ <a class="skip-link" href="#main">Skip to content</a>
16
+ <header class="masthead">
17
+ <a class="brand" href="#overview"><img src="/favicon.svg" width="28" height="28" alt=""><span>Usage<b>Analyzer</b></span></a>
18
+ <nav class="views" aria-label="Dashboard views">
19
+ <a href="#overview" aria-current="page">Overview</a>
20
+ <a href="#sessions">Sessions</a>
21
+ <a href="#sources">Sources <span id="source-count" class="count"></span></a>
22
+ </nav>
23
+ <div class="masthead-actions">
24
+ <button id="theme" class="button quiet" type="button" aria-pressed="false">
25
+ <svg viewBox="0 0 20 20" aria-hidden="true"><circle cx="10" cy="10" r="6.5"/><path class="fill" d="M10 3.5a6.5 6.5 0 0 0 0 13z"/></svg>
26
+ <span>Dark</span>
27
+ </button>
28
+ <button id="refresh" class="button solid" type="button">
29
+ <svg viewBox="0 0 20 20" aria-hidden="true"><path d="M16.5 8a6.7 6.7 0 1 0-.4 5M16.5 3.5V8H12"/></svg>
30
+ <span id="refresh-label">Refresh records</span>
31
+ </button>
32
+ </div>
33
+ </header>
34
+
35
+ <main id="main" tabindex="-1">
36
+ <div id="message" class="notice" role="status" aria-live="polite"></div>
37
+ <section id="loading" class="loading" aria-labelledby="loading-title">
38
+ <h1 id="loading-title">Reading your session files</h1>
39
+ <p>Scanning the local folders of each coding tool. Nothing leaves this device.</p>
40
+ <div class="progress" aria-hidden="true"><span></span></div>
41
+ </section>
42
+
43
+ <div id="dashboard" hidden>
44
+ <div id="filters" class="filters">
45
+ <button id="date-filter" class="button quiet date-trigger" type="button" aria-haspopup="dialog" aria-controls="date-dialog" aria-expanded="false">
46
+ <svg viewBox="0 0 20 20" aria-hidden="true"><rect x="3" y="4.5" width="14" height="12" rx="1"/><path d="M6.5 3v3M13.5 3v3M3 8.5h14"/></svg>
47
+ <span id="date-filter-label">All time</span>
48
+ <svg viewBox="0 0 20 20" aria-hidden="true"><path d="m6 8 4 4 4-4"/></svg>
49
+ </button>
50
+ <div id="tool-filter" class="filter-group tool-filter" role="group" aria-label="Tool"></div>
51
+ <p id="scope" class="scope"></p>
52
+ </div>
53
+
54
+ <div id="overview-view">
55
+ <section class="hero" aria-labelledby="view-title">
56
+ <div class="hero-main">
57
+ <h1 id="view-title"><span>Usage overview</span><span id="range-label" class="range-label"></span></h1>
58
+ <p class="hero-number" id="total" aria-hidden="true"><span id="total-value">0</span><span id="total-unit" class="unit"></span></p>
59
+ <p id="total-detail" class="hero-detail"></p>
60
+ <p id="insight" class="insight"></p>
61
+ </div>
62
+ <dl class="slip">
63
+ <div><dt>Sessions</dt><dd id="session-count"></dd></div>
64
+ <div><dt>Projects</dt><dd id="project-count"></dd></div>
65
+ <div><dt>Average session</dt><dd id="average"></dd></div>
66
+ <div title="Total tokens divided by calendar days in the selected range, including days without usage. All time uses the first through last recorded day."><dt>Average daily tokens</dt><dd id="daily-average"></dd></div>
67
+ <div><dt>Busiest day</dt><dd id="busiest-day"></dd></div>
68
+ <div class="slip-cost"><dt>API cost</dt><dd id="cost"></dd><p id="cost-detail"></p></div>
69
+ </dl>
70
+ </section>
71
+
72
+ <section class="composition" aria-labelledby="composition-title">
73
+ <div class="section-head">
74
+ <h2 id="composition-title">What the tokens are made of</h2>
75
+ <p>Categories follow each tool’s local records. Reasoning may also be counted in output.</p>
76
+ </div>
77
+ <div id="breakdown-bar" class="split" role="img" aria-labelledby="composition-title"></div>
78
+ <ul id="breakdown" class="parts"></ul>
79
+ </section>
80
+
81
+ <section class="band" aria-labelledby="tape-title">
82
+ <div class="band-label">
83
+ <p class="index" aria-hidden="true">01</p>
84
+ <h2 id="tape-title">Daily tape</h2>
85
+ <p>One tick per day, taller for heavier days. Drag across the tape to choose a range.</p>
86
+ </div>
87
+ <div class="band-body">
88
+ <div class="tape-top">
89
+ <p id="tape-readout" class="tape-readout"></p>
90
+ <button id="tape-reset" class="text-button" type="button" hidden>Show all time</button>
91
+ </div>
92
+ <div id="tape" class="tape"></div>
93
+ <p id="tape-live" class="sr-only" aria-live="polite"></p>
94
+ <details class="data-table">
95
+ <summary>Read the tape as monthly values</summary>
96
+ <div id="monthly-values"></div>
97
+ </details>
98
+ </div>
99
+ </section>
100
+
101
+ <section class="band" aria-labelledby="tools-title">
102
+ <div class="band-label">
103
+ <p class="index" aria-hidden="true">02</p>
104
+ <h2 id="tools-title">By tool</h2>
105
+ <p>Select a tool to filter the whole page. Only tools with token records are listed.</p>
106
+ </div>
107
+ <div class="band-body split-body">
108
+ <div id="tools" class="tools"></div>
109
+ <div class="weekday">
110
+ <h3>Weekday shape</h3>
111
+ <div id="weekday" class="weekday-bars"></div>
112
+ <p id="weekday-note" class="note"></p>
113
+ </div>
114
+ </div>
115
+ </section>
116
+
117
+ <section class="band" aria-labelledby="projects-title">
118
+ <div class="band-label">
119
+ <p class="index" aria-hidden="true">03</p>
120
+ <h2 id="projects-title">By project</h2>
121
+ <p>Bar length compares projects. Its texture shows which tools did the work. Select a project to inspect its sessions.</p>
122
+ </div>
123
+ <div class="band-body">
124
+ <div id="projects" class="projects"></div>
125
+ <ul id="projects-legend" class="legend" aria-label="Texture key"></ul>
126
+ <button id="projects-more" class="text-button" type="button" hidden></button>
127
+ </div>
128
+ </section>
129
+
130
+ <section class="band" aria-labelledby="heaviest-title">
131
+ <div class="band-label">
132
+ <p class="index" aria-hidden="true">04</p>
133
+ <h2 id="heaviest-title">Heaviest sessions</h2>
134
+ <p>The five single sessions that used the most tokens in this selection.</p>
135
+ </div>
136
+ <div class="band-body">
137
+ <ol id="heaviest" class="heaviest"></ol>
138
+ <a class="text-link" href="#sessions">Browse all sessions</a>
139
+ </div>
140
+ </section>
141
+ </div>
142
+
143
+ <div id="sessions-view" hidden>
144
+ <section class="page-head" aria-labelledby="sessions-title">
145
+ <h1 id="sessions-title">Sessions</h1>
146
+ <p>Every recorded session in the current selection. Open one to see its token categories.</p>
147
+ </section>
148
+ <div class="toolbar">
149
+ <label class="search"><span>Search sessions</span><input id="search" type="search" placeholder="Title, project, model or tool" autocomplete="off"></label>
150
+ <div class="filter-group" role="group" aria-label="Sort sessions">
151
+ <button type="button" data-sort="tokens" aria-pressed="true">Most tokens</button>
152
+ <button type="button" data-sort="newest" aria-pressed="false">Newest first</button>
153
+ </div>
154
+ </div>
155
+ <p id="project-filter" class="chip-row" hidden>Project <strong id="selected-project"></strong><button id="clear-project" class="text-button" type="button">Clear project filter</button></p>
156
+ <div id="session-list" class="session-list"></div>
157
+ <nav class="pager" aria-label="Session pages">
158
+ <p id="session-range"></p>
159
+ <div><button id="previous" class="button quiet" type="button">Previous page</button><button id="next" class="button quiet" type="button">Next page</button></div>
160
+ </nav>
161
+ </div>
162
+
163
+ <div id="sources-view" hidden>
164
+ <section class="page-head" aria-labelledby="sources-title">
165
+ <h1 id="sources-title">Sources</h1>
166
+ <p>The local folders this analyzer can read. A detected folder does not mean the tool stores token counts.</p>
167
+ </section>
168
+ <div id="sources" class="sources"></div>
169
+ <section id="read-errors" class="issues" hidden aria-labelledby="issues-title">
170
+ <h2 id="issues-title">Read issues</h2>
171
+ <p>Some records may be missing from the totals. Check the paths above, then refresh.</p>
172
+ <ul id="error-list"></ul>
173
+ </section>
174
+ </div>
175
+ </div>
176
+ </main>
177
+
178
+ <footer class="colophon">
179
+ <p>Local usage records. Costs are API-rate estimates, not subscription charges.</p>
180
+ <p id="updated"></p>
181
+ </footer>
182
+
183
+ <dialog id="date-dialog" class="date-dialog" aria-labelledby="date-title" aria-describedby="date-help">
184
+ <div class="date-heading">
185
+ <h2 id="date-title">Date range</h2>
186
+ <button id="close-date" class="button quiet" type="button" aria-label="Close date picker">Close</button>
187
+ </div>
188
+ <div class="date-body">
189
+ <div class="date-presets" role="group" aria-label="Date presets">
190
+ <button type="button" data-period="today" aria-pressed="false">Today</button>
191
+ <button type="button" data-period="week" aria-pressed="false">This week</button>
192
+ <button type="button" data-period="30" aria-pressed="false">Last 30 days</button>
193
+ <button type="button" data-period="90" aria-pressed="false">Last 90 days</button>
194
+ <button type="button" data-period="year" aria-pressed="false">This year</button>
195
+ <button type="button" data-period="all" aria-pressed="true">All time</button>
196
+ <button type="button" data-period="custom" aria-pressed="false">Custom range</button>
197
+ </div>
198
+ <div class="date-calendar">
199
+ <div class="calendar-heading">
200
+ <button id="calendar-previous" class="button quiet" type="button" aria-label="Previous month">‹</button>
201
+ <h3 id="calendar-month" aria-live="polite"></h3>
202
+ <button id="calendar-next" class="button quiet" type="button" aria-label="Next month">›</button>
203
+ </div>
204
+ <div class="calendar-weekdays" aria-hidden="true"><span>Mon</span><span>Tue</span><span>Wed</span><span>Thu</span><span>Fri</span><span>Sat</span><span>Sun</span></div>
205
+ <div id="calendar-days" class="calendar-days" role="group" aria-labelledby="calendar-month"></div>
206
+ <p id="date-help" class="date-help" aria-live="polite">Select a start date, then an end date.</p>
207
+ <div class="date-fields">
208
+ <label>Start date<input id="date-from" type="date" required></label>
209
+ <label>End date<input id="date-to" type="date" required></label>
210
+ </div>
211
+ </div>
212
+ </div>
213
+ <div class="date-footer">
214
+ <p id="date-preview" aria-live="polite"></p>
215
+ <button id="cancel-date" class="button quiet" type="button">Cancel</button>
216
+ <button id="apply-date" class="button solid" type="button">Apply</button>
217
+ </div>
218
+ </dialog>
219
+
220
+ <dialog id="session-dialog" class="drawer" aria-labelledby="session-title">
221
+ <div class="drawer-body">
222
+ <div class="drawer-top">
223
+ <p id="session-tool" class="drawer-tool"></p>
224
+ <button id="close-dialog" class="button quiet" type="button">Close</button>
225
+ </div>
226
+ <h2 id="session-title"></h2>
227
+ <p id="session-total" class="drawer-number"></p>
228
+ <div id="session-split" class="split" role="img" aria-label="Token categories for this session"></div>
229
+ <dl id="session-details" class="details"></dl>
230
+ </div>
231
+ </dialog>
232
+ </body>
233
+ </html>