generated from obsidianmd/obsidian-sample-plugin
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathmain.ts
604 lines (526 loc) · 20.1 KB
/
main.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
/*
Privacy Glasses plugin for Obsidian
Copyright 2021 Jill Alberts
Licensed under the MIT License (http://opensource.org/licenses/MIT)
*/
import {
addIcon,
App,
MarkdownFileInfo,
Notice,
Plugin,
PluginSettingTab,
Setting,
View,
WorkspaceLeaf,
} from "obsidian";
function isMarkdownFileInfoView(x: unknown): x is MarkdownFileInfo {
const anyX = x as any;
return !!Object.getOwnPropertyDescriptor(anyX, "file");
}
function isHooked(view: View) {
const anyView = view as any;
const ownProps = Object.getOwnPropertyNames(anyView);
return (
ownProps.contains("setState") && typeof anyView.setState === "function"
);
}
function hookViewStateChanged(
view: View,
onBeforeStateChange: (view: View) => void,
onAfterStateChange: (view: View) => void
) {
const anyView = view as any;
const original = anyView.__proto__.setState;
function wrapper() {
onBeforeStateChange(view);
const r = original.apply(this, arguments);
if (typeof r.then === "function") {
r.then(() => {
onAfterStateChange(view);
});
} else {
onAfterStateChange(view);
}
return r;
}
anyView.setState = wrapper.bind(view);
return anyView;
}
/**
* Constants
*/
enum Level {
HideAll = "hide-all",
HidePrivate = "hide-private",
RevealAll = "reveal-all",
RevealHeadlines = "reveal-headlines"
}
enum CssClass {
BlurAll = "privacy-glasses-blur-all",
RevealOnHover = "privacy-glasses-reveal-on-hover",
RevealAll = "privacy-glasses-reveal-all",
RevealUnderCaret = "privacy-glasses-reveal-under-caret",
RevealHeadlines = "privacy-glasses-reveal-headlines",
Reveal = "privacy-glasses-reveal",
IsMdView = "is-md-view",
IsNonMdView = "is-non-md-view",
IsMdViewHeadlinesOnly = "is-md-view-headlines-only",
PrivacyGlassesReveal = "privacy-glasses-reveal"
}
/**
* Main
*/
export default class PrivacyGlassesPlugin extends Plugin {
settings: PrivacyGlassesSettings;
statusBar: HTMLElement;
noticeMsg: Notice;
blurLevelStyleEl: HTMLElement;
privateDirsStyleEl: HTMLElement;
lastEventTime: number | undefined;
currentLevel: Level;
revealed: HTMLElement[] = [];
async onload() {
this.statusBar = this.addStatusBarItem();
await this.loadSettings();
this.addSettingTab(new privacyGlassesSettingTab(this.app, this));
addIcon("eye", eyeIcon);
addIcon("eye-closed", eyeClosedIcon);
addIcon("eye-slash", eyeSlashIcon);
addIcon("eye-glasses", eyeGlasses);
this.addRibbonIcon("eye-closed", "Hide all", () => {
this.currentLevel = Level.HideAll;
this.updateLeavesAndGlobalReveals();
});
this.addRibbonIcon("eye-slash", "Reveal non-private", () => {
this.currentLevel = Level.HidePrivate;
this.updateLeavesAndGlobalReveals();
});
this.addRibbonIcon("eye-glasses", "Reveal headlines only", () => {
this.currentLevel = Level.RevealHeadlines;
this.updateLeavesAndGlobalReveals();
});
this.addRibbonIcon("eye", "Reveal all", () => {
this.currentLevel = Level.RevealAll;
this.updateLeavesAndGlobalReveals();
});
this.addCommand({
id: "privacy-glasses-hide-all",
name: "Privacy Glasses - hide all",
callback: () => {
this.currentLevel = Level.HideAll;
this.updateLeavesAndGlobalReveals();
},
});
this.addCommand({
id: "privacy-glasses-hide-private",
name: "Privacy Glasses - hide files in folders marked as private",
callback: () => {
this.currentLevel = Level.HidePrivate;
this.updateLeavesAndGlobalReveals();
},
});
this.addCommand({
id: "privacy-glasses-reveal-headlines",
name: "Privacy Glasses - reveal headlines only, keeping body content hidden",
callback: () => {
this.currentLevel = Level.RevealHeadlines;
this.updateLeavesAndGlobalReveals();
},
});
this.addCommand({
id: "privacy-glasses-reveal-all",
name: "Privacy Glasses - do not hide anything",
callback: () => {
this.currentLevel = Level.RevealAll;
this.updateLeavesAndGlobalReveals();
},
});
this.registerInterval(
window.setInterval(() => {
this.checkIdleTimeout();
}, 1000)
);
this.app.workspace.onLayoutReady(() => {
this.registerDomActivityEvents(this.app.workspace.rootSplit.win);
this.currentLevel = this.settings.blurOnStartup;
this.updateLeavesAndGlobalReveals();
this.updatePrivateDirsEl(this.app.workspace.rootSplit.win.document);
this.ensureLeavesHooked();
});
this.registerEvent(
this.app.workspace.on("window-open", (win) => {
this.registerDomActivityEvents(win.win);
})
);
this.registerEvent(
this.app.workspace.on("active-leaf-change", (e) => {
this.ensureLeavesHooked();
this.updateLeafViewStyle(e.view);
})
);
this.lastEventTime = performance.now();
}
// we hook into setState function of the view, because it is synchronously called
// before the content switch. this is to prevent private content from being accidentally briefly revealed
onBeforeViewStateChange(l: WorkspaceLeaf) {
this.revealed.forEach((r) => {
r.removeClass(CssClass.Reveal);
});
}
onAfterViewStateChange(l: WorkspaceLeaf) {
// some panels update using the same event, so it is important to update leaves after they are ready
setTimeout(() => {
this.updateLeavesStyle();
}, 200);
this.ensureLeavesHooked();
}
ensureLeavesHooked() {
this.app.workspace.iterateAllLeaves((e) => {
if (isHooked(e.view)) {
return;
}
hookViewStateChanged(
e.view,
() => {
this.onBeforeViewStateChange(e);
},
() => {
this.onAfterViewStateChange(e);
}
);
});
}
registerDomActivityEvents(win: Window) {
this.registerDomEvent(win, "mousedown", (e) => {
this.lastEventTime = e.timeStamp;
});
this.registerDomEvent(win, "keydown", (e) => {
this.lastEventTime = e.timeStamp;
});
this.addBlurLevelEl(win.document);
}
checkIdleTimeout() {
if (this.settings.blurOnIdleTimeoutSeconds < 0) {
return;
}
if (this.currentLevel === Level.HideAll) {
return;
}
if (!this.lastEventTime) {
return;
}
const now = performance.now();
if (
(now - this.lastEventTime) / 1000 >=
this.settings.blurOnIdleTimeoutSeconds
) {
this.currentLevel = Level.HideAll;
this.updateLeavesAndGlobalReveals();
}
}
async onunload() {
this.statusBar.remove();
await this.saveSettings();
}
async loadSettings() {
this.settings = Object.assign(DEFAULT_SETTINGS, await this.loadData());
}
async saveSettings() {
await this.saveData(this.settings);
}
shouldRevealLeaf(view: View) {
if (this.currentLevel === Level.RevealAll) {
return true;
}
if (
this.currentLevel === Level.HideAll ||
this.currentLevel === Level.RevealHeadlines
) {
return false;
}
if (!isMarkdownFileInfoView(view)) {
return true;
}
if (
view.editor &&
this.settings.privateNoteMarker &&
this.settings.privateNoteMarker !== ""
) {
let tags: string[] = [];
// Get tags in the note body, if any
if ('tags' in this.app.metadataCache.getFileCache(view.file)) {
tags.push(...this.app.metadataCache.getFileCache(view.file).tags.filter(x => !!x.tag).map(x => x.tag));
}
// Get tags in properties, if any
if ('tags' in this.app.metadataCache.getFileCache(view.file)?.frontmatter) {
tags.push(...this.app.metadataCache.getFileCache(view.file).frontmatter.tags.filter((x: string) => !!x));
}
if (tags && tags.length > 0) {
return !tags.includes(this.settings.privateNoteMarker);
}
}
if (
view.file &&
!this.settings.privateDirs.contains(view.file.parent.path)
) {
return true;
}
return false;
}
updateLeafViewStyle(view: View) {
const isMd = isMarkdownFileInfoView(view) && view.editor;
view.containerEl.removeClass(
CssClass.IsMdView,
CssClass.IsNonMdView,
CssClass.IsMdViewHeadlinesOnly);
if (isMd && this.currentLevel === Level.RevealHeadlines) {
view.containerEl.addClass(CssClass.IsMdViewHeadlinesOnly);
} else if (isMd) {
view.containerEl.addClass(CssClass.IsMdView);
} else {
view.containerEl.addClass(CssClass.IsNonMdView);
}
const shouldReveal = this.shouldRevealLeaf(view);
if (shouldReveal) {
view.containerEl.addClass(CssClass.PrivacyGlassesReveal);
this.revealed.push(view.containerEl);
} else {
view.containerEl.removeClass(CssClass.PrivacyGlassesReveal);
}
}
updateLeavesAndGlobalReveals() {
this.updateLeavesStyle();
this.updateGlobalRevealStyle();
}
updateLeavesStyle() {
this.app.workspace.iterateAllLeaves((e) => {
this.updateLeafViewStyle(e.view);
});
}
updateGlobalRevealStyle() {
this.removeAllClasses();
this.setClassToDocumentBody(this.currentLevel);
if (this.settings.hoverToReveal) {
document.body.classList.add(CssClass.RevealOnHover);
}
if (this.settings.revealUnderCaret) {
document.body.classList.add(CssClass.RevealUnderCaret);
}
}
removeAllClasses() {
document.body.removeClass(
CssClass.BlurAll,
CssClass.RevealOnHover,
CssClass.RevealAll,
CssClass.RevealUnderCaret,
CssClass.RevealHeadlines
);
}
setClassToDocumentBody(currentLevel: Level) {
switch (currentLevel) {
case Level.HideAll:
document.body.classList.add(CssClass.BlurAll);
break;
case Level.RevealAll:
document.body.classList.add(CssClass.RevealAll);
break;
case Level.RevealHeadlines:
document.body.classList.add(CssClass.RevealHeadlines);
break;
}
}
addBlurLevelEl(doc: Document) {
this.blurLevelStyleEl = doc.createElement("style");
this.blurLevelStyleEl.id = "privacyGlassesBlurLevel";
doc.head.appendChild(this.blurLevelStyleEl);
this.updateBlurLevelEl();
}
updateBlurLevelEl() {
if (!this.blurLevelStyleEl) {
return;
}
this.blurLevelStyleEl.textContent = `body {--blurLevel:${this.settings.blurLevel}em};`;
}
updatePrivateDirsEl(doc?: Document) {
if (doc && !this.privateDirsStyleEl) {
this.privateDirsStyleEl = doc.createElement("style");
this.privateDirsStyleEl.id = "privacyGlassesDirBlur";
doc.head.appendChild(this.privateDirsStyleEl);
}
const dirs = this.settings.privateDirs.split(",");
this.privateDirsStyleEl.textContent = dirs
.map(
(d) =>
`
:is(.nav-folder-title, .nav-file-title)[data-path^=${d}] {filter: blur(calc(var(--blurLevel) * 1))}
:is(.nav-folder-title, .nav-file-title)[data-path^=${d}]:hover {filter: unset}
.privacy-glasses-reveal-all :is(.nav-folder-title, .nav-file-title)[data-path^=${d}] {filter: unset}
`
)
.join("");
}
}
interface PrivacyGlassesSettings {
blurOnStartup: Level;
blurLevel: number;
blurOnIdleTimeoutSeconds: number;
hoverToReveal: boolean;
revealUnderCaret: boolean;
privateDirs: string;
privateNoteMarker: string;
}
const DEFAULT_SETTINGS: PrivacyGlassesSettings = {
blurOnStartup: Level.HidePrivate,
blurLevel: 0.3,
blurOnIdleTimeoutSeconds: -1,
hoverToReveal: true,
revealUnderCaret: false,
privateDirs: "",
privateNoteMarker: "#private",
};
class privacyGlassesSettingTab extends PluginSettingTab {
plugin: PrivacyGlassesPlugin;
constructor(app: App, plugin: PrivacyGlassesPlugin) {
super(app, plugin);
this.plugin = plugin;
}
display(): void {
let { containerEl } = this;
containerEl.empty();
containerEl.createEl("h3", {
text: "Privacy Glasses v" + this.plugin.manifest.version,
});
containerEl.createEl("a", {
text: "https://github.com/jillalberts/privacy-glasses",
href: "https://github.com/jillalberts/privacy-glasses",
});
containerEl.createEl("span", {
text: ": documentation, report issues, contact info",
});
containerEl.createEl("p", {
text: 'To activate/deactivate Privacy Glasses, click the glasses icon on the left-hand ribbon or run "Privacy Glasses" commands in the Command Palette (Ctrl-P). The command can also be bound to a keyboard shortcut if you wish.',
});
new Setting(containerEl)
.setName("Activate Privacy Glasses on startup")
.setDesc(
"Indicates whether the plugin is automatically activated when starting Obsidian."
)
.addDropdown((toggle) => {
toggle.addOptions({
"hide-all": "Hide all",
"hide-private": "Hide private (default)",
"reveal-all": "Reveal all",
"reveal-headlines": "Reveal headlines only"
});
toggle.setValue(this.plugin.settings.blurOnStartup);
toggle.onChange(async (value) => {
this.plugin.settings.blurOnStartup = value as Level;
await this.plugin.saveSettings();
});
});
new Setting(containerEl)
.setName("Hide all after user inactivity (seconds)")
.setDesc(
"Inactivity time after which Privacy Glasses will hide all. -1 to disable auto-hiding."
)
.addText((textfield) => {
textfield.setPlaceholder("-1");
textfield.inputEl.type = "number";
textfield.inputEl.min = "-1";
textfield.setValue(
String(this.plugin.settings.blurOnIdleTimeoutSeconds)
);
textfield.onChange(async (value) => {
let parsed = parseFloat(value);
if (isNaN(parsed)) {
parsed = -1;
}
this.plugin.settings.blurOnIdleTimeoutSeconds = parsed;
await this.plugin.saveSettings();
});
});
new Setting(containerEl)
.setName("Hover to reveal")
.setDesc(
"Indicates whether or not to reveal content when hovering the cursor over it."
)
.addToggle((toggle) => {
toggle.setValue(this.plugin.settings.hoverToReveal);
toggle.onChange(async (value) => {
this.plugin.settings.hoverToReveal = value;
this.plugin.updateLeavesAndGlobalReveals();
await this.plugin.saveSettings();
});
});
new Setting(containerEl)
.setName("Reveal under caret")
.setDesc(
"Indicates whether or not to reveal content when caret is on it."
)
.addToggle((toggle) => {
toggle.setValue(this.plugin.settings.revealUnderCaret);
toggle.onChange(async (value) => {
this.plugin.settings.revealUnderCaret = value;
this.plugin.updateGlobalRevealStyle();
await this.plugin.saveSettings();
});
});
var sliderEl = new Setting(containerEl);
let sliderElDesc = "Higher is blurrier. Default=60, current=";
sliderEl
.setName("Blur level")
.setDesc(sliderElDesc + Math.round(this.plugin.settings.blurLevel * 100))
// ^ need rounding to not show values like '55.00000000000001'
.addSlider((slider) =>
slider
.setLimits(0.1, 1.5, 0.05)
.setValue(this.plugin.settings.blurLevel)
.onChange(async (value) => {
this.plugin.settings.blurLevel = value;
sliderEl.setDesc(
sliderElDesc + Math.round(this.plugin.settings.blurLevel * 100)
);
this.plugin.updateBlurLevelEl();
this.plugin.saveSettings();
})
);
new Setting(containerEl)
.setName("Private directories")
.setDesc(
"Comma-separated list of directories, in which files are considered private"
)
.addText((text) =>
text
.setPlaceholder("finance,therapy")
.setValue(this.plugin.settings.privateDirs)
.onChange(async (value) => {
this.plugin.settings.privateDirs = value;
await this.plugin.saveSettings();
this.plugin.updateLeavesAndGlobalReveals();
this.plugin.updatePrivateDirsEl();
})
);
new Setting(containerEl)
.setName("Private note marker")
.setDesc("Start a note with this text to mark note as private")
.addText((text) =>
text
.setPlaceholder("#private")
.setValue(this.plugin.settings.privateNoteMarker)
.onChange(async (value) => {
this.plugin.settings.privateNoteMarker = value;
await this.plugin.saveSettings();
this.plugin.updateLeavesStyle();
})
);
}
}
// https://icon-sets.iconify.design/ph/eye-slash/
const eyeSlashIcon = `<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path fill="currentColor" d="M53.9 34.6a8 8 0 0 0-11.8 10.8l19.2 21.1C25 88.8 9.4 123.2 8.7 124.8a8.2 8.2 0 0 0 0 6.5c.3.7 8.8 19.5 27.6 38.4c25.1 25 56.8 38.3 91.7 38.3a128.6 128.6 0 0 0 52.1-10.8l22 24.2a8 8 0 0 0 5.9 2.6a8.2 8.2 0 0 0 5.4-2.1a7.9 7.9 0 0 0 .5-11.3Zm47.3 75.9l41.7 45.8A31.6 31.6 0 0 1 128 160a32 32 0 0 1-26.8-49.5ZM128 192c-30.8 0-57.7-11.2-79.9-33.3A128.3 128.3 0 0 1 25 128c4.7-8.8 19.8-33.5 47.3-49.4l18 19.8a48 48 0 0 0 63.6 70l14.7 16.2A112.1 112.1 0 0 1 128 192Zm119.3-60.7c-.4.9-10.5 23.3-33.4 43.8a8.1 8.1 0 0 1-5.3 2a7.6 7.6 0 0 1-5.9-2.7a8 8 0 0 1 .6-11.3A131 131 0 0 0 231 128a130.3 130.3 0 0 0-23.1-30.8C185.7 75.2 158.8 64 128 64a112.9 112.9 0 0 0-19.4 1.6a8.1 8.1 0 0 1-9.2-6.6a8 8 0 0 1 6.6-9.2a132.4 132.4 0 0 1 22-1.8c34.9 0 66.6 13.3 91.7 38.3c18.8 18.9 27.3 37.7 27.6 38.5a8.2 8.2 0 0 1 0 6.5ZM134 96.6a8 8 0 0 1 3-15.8a48.3 48.3 0 0 1 38.8 42.7a8 8 0 0 1-7.2 8.7h-.8a7.9 7.9 0 0 1-7.9-7.2A32.2 32.2 0 0 0 134 96.6Z"/></svg>`;
// https://icon-sets.iconify.design/ph/eye-closed-bold/
const eyeClosedIcon = `<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path fill="currentColor" d="M234.4 160.8a12 12 0 0 1-10.4 18a11.8 11.8 0 0 1-10.4-6l-16.3-28.2a126 126 0 0 1-29.4 13.5l5.2 29.4a11.9 11.9 0 0 1-9.7 13.9l-2.1.2a12 12 0 0 1-11.8-9.9l-5.1-28.7a123.5 123.5 0 0 1-16.4 1a146.3 146.3 0 0 1-16.5-1l-5.1 28.7a12 12 0 0 1-11.8 9.9l-2.1-.2a11.9 11.9 0 0 1-9.7-13.9l5.2-29.4a125.3 125.3 0 0 1-29.3-13.5L42.3 173a12.1 12.1 0 0 1-10.4 6a11.7 11.7 0 0 1-6-1.6a12 12 0 0 1-4.4-16.4l17.9-31a142.4 142.4 0 0 1-16.7-17.6a12 12 0 1 1 18.6-15.1C57.1 116.8 84.9 140 128 140s70.9-23.2 86.7-42.7a12 12 0 1 1 18.6 15.1a150.3 150.3 0 0 1-16.7 17.7Z"/></svg>`;
// https://icon-sets.iconify.design/ph/eye/
const eyeIcon = `<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path fill="currentColor" d="M247.3 124.8c-.3-.8-8.8-19.6-27.6-38.5C194.6 61.3 162.9 48 128 48S61.4 61.3 36.3 86.3C17.5 105.2 9 124 8.7 124.8a7.9 7.9 0 0 0 0 6.4c.3.8 8.8 19.6 27.6 38.5c25.1 25 56.8 38.3 91.7 38.3s66.6-13.3 91.7-38.3c18.8-18.9 27.3-37.7 27.6-38.5a7.9 7.9 0 0 0 0-6.4ZM128 192c-30.8 0-57.7-11.2-79.9-33.3A130.3 130.3 0 0 1 25 128a130.3 130.3 0 0 1 23.1-30.8C70.3 75.2 97.2 64 128 64s57.7 11.2 79.9 33.2A130.3 130.3 0 0 1 231 128c-7.2 13.5-38.6 64-103 64Zm0-112a48 48 0 1 0 48 48a48 48 0 0 0-48-48Zm0 80a32 32 0 1 1 32-32a32.1 32.1 0 0 1-32 32Z"/></svg>`;
// https://icon-sets.iconify.design/ph/eyeglasses/
const eyeGlasses = `<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path fill="currentColor" d="M200 40a8 8 0 0 0 0 16a16 16 0 0 1 16 16v58.08A44 44 0 0 0 145.68 152h-35.36A44 44 0 0 0 40 130.08V72a16 16 0 0 1 16-16a8 8 0 0 0 0-16a32 32 0 0 0-32 32v92a44 44 0 0 0 87.81 4h32.38a44 44 0 0 0 87.81-4V72a32 32 0 0 0-32-32ZM68 192a28 28 0 1 1 28-28a28 28 0 0 1-28 28Zm120 0a28 28 0 1 1 28-28a28 28 0 0 1-28 28Z"/></svg>`;