jekyll-theme-chirpy 6.2.1 → 6.2.3

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.
@@ -24,18 +24,22 @@
24
24
  .highlight table td {
25
25
  padding: 5px;
26
26
  }
27
+
27
28
  .highlight table pre {
28
29
  margin: 0;
29
30
  }
31
+
30
32
  .highlight,
31
33
  .highlight .w {
32
34
  color: #d0d0d0;
33
35
  background-color: #151515;
34
36
  }
37
+
35
38
  .highlight .err {
36
39
  color: #151515;
37
40
  background-color: #ac4142;
38
41
  }
42
+
39
43
  .highlight .c,
40
44
  .highlight .ch,
41
45
  .highlight .cd,
@@ -45,32 +49,40 @@
45
49
  .highlight .cs {
46
50
  color: #848484;
47
51
  }
52
+
48
53
  .highlight .cp {
49
54
  color: #f4bf75;
50
55
  }
56
+
51
57
  .highlight .nt {
52
58
  color: #f4bf75;
53
59
  }
60
+
54
61
  .highlight .o,
55
62
  .highlight .ow {
56
63
  color: #d0d0d0;
57
64
  }
65
+
58
66
  .highlight .p,
59
67
  .highlight .pi {
60
68
  color: #d0d0d0;
61
69
  }
70
+
62
71
  .highlight .gi {
63
72
  color: #90a959;
64
73
  }
74
+
65
75
  .highlight .gd {
66
76
  color: #f08a8b;
67
77
  background-color: #320000;
68
78
  }
79
+
69
80
  .highlight .gh {
70
81
  color: #6a9fb5;
71
82
  background-color: #151515;
72
83
  font-weight: bold;
73
84
  }
85
+
74
86
  .highlight .k,
75
87
  .highlight .kn,
76
88
  .highlight .kp,
@@ -78,15 +90,19 @@
78
90
  .highlight .kv {
79
91
  color: #aa759f;
80
92
  }
93
+
81
94
  .highlight .kc {
82
95
  color: #d28445;
83
96
  }
97
+
84
98
  .highlight .kt {
85
99
  color: #d28445;
86
100
  }
101
+
87
102
  .highlight .kd {
88
103
  color: #d28445;
89
104
  }
105
+
90
106
  .highlight .s,
91
107
  .highlight .sb,
92
108
  .highlight .sc,
@@ -98,30 +114,39 @@
98
114
  .highlight .s1 {
99
115
  color: #90a959;
100
116
  }
117
+
101
118
  .highlight .sa {
102
119
  color: #aa759f;
103
120
  }
121
+
104
122
  .highlight .sr {
105
123
  color: #75b5aa;
106
124
  }
125
+
107
126
  .highlight .si {
108
127
  color: #b76d45;
109
128
  }
129
+
110
130
  .highlight .se {
111
131
  color: #b76d45;
112
132
  }
133
+
113
134
  .highlight .nn {
114
135
  color: #f4bf75;
115
136
  }
137
+
116
138
  .highlight .nc {
117
139
  color: #f4bf75;
118
140
  }
141
+
119
142
  .highlight .no {
120
143
  color: #f4bf75;
121
144
  }
145
+
122
146
  .highlight .na {
123
147
  color: #6a9fb5;
124
148
  }
149
+
125
150
  .highlight .m,
126
151
  .highlight .mb,
127
152
  .highlight .mf,
@@ -132,6 +157,7 @@
132
157
  .highlight .mx {
133
158
  color: #90a959;
134
159
  }
160
+
135
161
  .highlight .ss {
136
162
  color: #90a959;
137
163
  }
@@ -24,14 +24,17 @@
24
24
  .highlight table td {
25
25
  padding: 5px;
26
26
  }
27
+
27
28
  .highlight table pre {
28
29
  margin: 0;
29
30
  }
31
+
30
32
  .highlight,
31
33
  .highlight .w {
32
34
  color: #24292f;
33
35
  background-color: #f6f8fa;
34
36
  }
37
+
35
38
  .highlight .k,
36
39
  .highlight .kd,
37
40
  .highlight .kn,
@@ -41,41 +44,53 @@
41
44
  .highlight .kv {
42
45
  color: #cf222e;
43
46
  }
47
+
44
48
  .highlight .gr {
45
49
  color: #f6f8fa;
46
50
  }
51
+
47
52
  .highlight .gd {
48
53
  color: #82071e;
49
54
  background-color: #ffebe9;
50
55
  }
56
+
51
57
  .highlight .nb {
52
58
  color: #953800;
53
59
  }
60
+
54
61
  .highlight .nc {
55
62
  color: #953800;
56
63
  }
64
+
57
65
  .highlight .no {
58
66
  color: #953800;
59
67
  }
68
+
60
69
  .highlight .nn {
61
70
  color: #953800;
62
71
  }
72
+
63
73
  .highlight .sr {
64
74
  color: #116329;
65
75
  }
76
+
66
77
  .highlight .na {
67
78
  color: #116329;
68
79
  }
80
+
69
81
  .highlight .nt {
70
82
  color: #116329;
71
83
  }
84
+
72
85
  .highlight .gi {
73
86
  color: #116329;
74
87
  background-color: #dafbe1;
75
88
  }
89
+
76
90
  .highlight .kc {
77
91
  color: #0550ae;
78
92
  }
93
+
79
94
  .highlight .l,
80
95
  .highlight .ld,
81
96
  .highlight .m,
@@ -88,21 +103,27 @@
88
103
  .highlight .mx {
89
104
  color: #0550ae;
90
105
  }
106
+
91
107
  .highlight .sb {
92
108
  color: #0550ae;
93
109
  }
110
+
94
111
  .highlight .bp {
95
112
  color: #0550ae;
96
113
  }
114
+
97
115
  .highlight .ne {
98
116
  color: #0550ae;
99
117
  }
118
+
100
119
  .highlight .nl {
101
120
  color: #0550ae;
102
121
  }
122
+
103
123
  .highlight .py {
104
124
  color: #0550ae;
105
125
  }
126
+
106
127
  .highlight .nv,
107
128
  .highlight .vc,
108
129
  .highlight .vg,
@@ -110,18 +131,22 @@
110
131
  .highlight .vm {
111
132
  color: #0550ae;
112
133
  }
134
+
113
135
  .highlight .o,
114
136
  .highlight .ow {
115
137
  color: #0550ae;
116
138
  }
139
+
117
140
  .highlight .gh {
118
141
  color: #0550ae;
119
142
  font-weight: bold;
120
143
  }
144
+
121
145
  .highlight .gu {
122
146
  color: #0550ae;
123
147
  font-weight: bold;
124
148
  }
149
+
125
150
  .highlight .s,
126
151
  .highlight .sa,
127
152
  .highlight .sc,
@@ -135,17 +160,21 @@
135
160
  .highlight .ss {
136
161
  color: #0a3069;
137
162
  }
163
+
138
164
  .highlight .nd {
139
165
  color: #8250df;
140
166
  }
167
+
141
168
  .highlight .nf,
142
169
  .highlight .fm {
143
170
  color: #8250df;
144
171
  }
172
+
145
173
  .highlight .err {
146
174
  color: #f6f8fa;
147
175
  background-color: #82071e;
148
176
  }
177
+
149
178
  .highlight .c,
150
179
  .highlight .ch,
151
180
  .highlight .cd,
@@ -156,22 +185,28 @@
156
185
  .highlight .cs {
157
186
  color: #68717a;
158
187
  }
188
+
159
189
  .highlight .gl {
160
190
  color: #68717a;
161
191
  }
192
+
162
193
  .highlight .gt {
163
194
  color: #68717a;
164
195
  }
196
+
165
197
  .highlight .ni {
166
198
  color: #24292f;
167
199
  }
200
+
168
201
  .highlight .si {
169
202
  color: #24292f;
170
203
  }
204
+
171
205
  .highlight .ge {
172
206
  color: #24292f;
173
207
  font-style: italic;
174
208
  }
209
+
175
210
  .highlight .gs {
176
211
  color: #24292f;
177
212
  font-weight: bold;
@@ -11,6 +11,7 @@
11
11
  /* Common color */
12
12
  --text-color: rgb(175, 176, 177);
13
13
  --text-muted-color: #868686;
14
+ --text-muted-hightlight-color: #aeaeae;
14
15
  --heading-color: #cccccc;
15
16
  --label-color: #a7a7a7;
16
17
  --blockquote-border-color: rgb(66, 66, 66);
@@ -11,6 +11,7 @@
11
11
  /* Common color */
12
12
  --text-color: #34343c;
13
13
  --text-muted-color: #757575;
14
+ --text-muted-hightlight-color: inherit;
14
15
  --heading-color: #2a2a2a;
15
16
  --label-color: #585858;
16
17
  --blockquote-border-color: #eeeeee;
@@ -6,8 +6,6 @@
6
6
  margin-top: 2rem;
7
7
 
8
8
  .card-wrapper {
9
- display: block;
10
-
11
9
  &:hover {
12
10
  text-decoration: none;
13
11
  }
@@ -18,27 +16,23 @@
18
16
  }
19
17
 
20
18
  .card {
19
+ border: 0;
20
+ background: none;
21
+
21
22
  %img-radius {
22
23
  border-radius: $base-radius $base-radius 0 0;
23
24
  }
24
25
 
25
26
  .preview-img {
26
- height: 10rem;
27
-
28
27
  @extend %img-radius;
29
28
 
30
29
  img {
31
- width: 100%;
32
- height: 100%;
33
- -o-object-fit: cover;
34
- object-fit: cover;
35
-
36
30
  @extend %img-radius;
37
31
  }
38
32
  }
39
33
 
40
34
  .card-body {
41
- min-height: 10.5rem;
35
+ height: 100%;
42
36
  padding: 1rem;
43
37
 
44
38
  .card-title {
@@ -136,20 +130,13 @@
136
130
 
137
131
  /* Tablet */
138
132
  @media all and (min-width: 768px) {
139
- #post-list {
140
- %img-radius {
141
- border-radius: 0 $base-radius $base-radius 0;
142
- }
133
+ %img-radius {
134
+ border-radius: 0 $base-radius $base-radius 0;
135
+ }
143
136
 
137
+ #post-list {
144
138
  .card {
145
- .preview-img {
146
- width: 20rem;
147
- height: 11.55rem; // can hold 2 lines each for title and content
148
- }
149
-
150
139
  .card-body {
151
- min-height: 10.75rem;
152
- width: 60%;
153
140
  padding: 1.75rem 1.75rem 1.25rem 1.75rem;
154
141
 
155
142
  .card-text {
@@ -22,30 +22,6 @@
22
22
  padding-right: $pr;
23
23
  }
24
24
 
25
- %text-color {
26
- color: var(--text-color);
27
- }
28
-
29
- .preview-img {
30
- overflow: hidden;
31
- aspect-ratio: 40 / 21;
32
-
33
- @extend %rounded;
34
-
35
- &:not(.no-bg) {
36
- img.lazyloaded {
37
- background: var(--img-bg);
38
- }
39
- }
40
-
41
- img {
42
- -o-object-fit: cover;
43
- object-fit: cover;
44
-
45
- @extend %rounded;
46
- }
47
- }
48
-
49
25
  h1 + .post-meta {
50
26
  > span + span::before {
51
27
  @include dot;
@@ -53,7 +29,7 @@ h1 + .post-meta {
53
29
 
54
30
  em,
55
31
  time {
56
- color: var(--text-color);
32
+ @extend %text-highlight;
57
33
  }
58
34
 
59
35
  em {
@@ -64,13 +40,10 @@ h1 + .post-meta {
64
40
  }
65
41
 
66
42
  .post-tail-wrapper {
43
+ @extend %text-sm;
44
+
67
45
  margin-top: 6rem;
68
46
  border-bottom: 1px double var(--main-border-color);
69
- font-size: 0.85rem;
70
-
71
- .post-tail-bottom a {
72
- color: inherit;
73
- }
74
47
 
75
48
  .license-wrapper {
76
49
  line-height: 1.2rem;
@@ -84,7 +57,7 @@ h1 + .post-meta {
84
57
  }
85
58
 
86
59
  span:last-child {
87
- font-size: 0.85rem;
60
+ @extend %text-sm;
88
61
  }
89
62
  } /* .license-wrapper */
90
63
 
@@ -324,6 +297,7 @@ h1 + .post-meta {
324
297
 
325
298
  time {
326
299
  @extend %normal-font-style;
300
+ @extend %text-xs;
327
301
 
328
302
  color: var(--text-muted-color);
329
303
  }
@@ -340,27 +314,18 @@ h1 + .post-meta {
340
314
 
341
315
  .card {
342
316
  h4 {
343
- @extend %text-color;
344
317
  @extend %text-clip;
345
318
  }
346
319
  }
347
320
  }
348
321
 
349
- #tail-wrapper {
350
- min-height: 2rem;
351
-
352
- > *:not(:last-child) {
353
- margin-top: 3rem;
354
- }
355
-
356
- > *:nth-last-child(2) {
357
- margin-bottom: 3rem;
358
- }
322
+ /* stylelint-disable-next-line selector-id-pattern */
323
+ #disqus_thread {
324
+ min-height: 8.5rem;
325
+ }
359
326
 
360
- /* stylelint-disable-next-line selector-id-pattern */
361
- #disqus_thread {
362
- min-height: 8.5rem;
363
- }
327
+ .utterances {
328
+ max-width: 100%;
364
329
  }
365
330
 
366
331
  %btn-share-hovor {
@@ -376,10 +341,6 @@ h1 + .post-meta {
376
341
  }
377
342
 
378
343
  @media all and (max-width: 576px) {
379
- .preview-img[data-src] {
380
- margin-top: 2.2rem;
381
- }
382
-
383
344
  .post-tail-bottom {
384
345
  flex-wrap: wrap-reverse !important;
385
346
 
@@ -404,9 +365,4 @@ h1 + .post-meta {
404
365
  margin-left: -0.5rem;
405
366
  margin-right: -0.5rem;
406
367
  }
407
-
408
- .preview-img[data-src] {
409
- max-width: 100vw;
410
- border-radius: 0;
411
- }
412
368
  }
@@ -1,4 +1,4 @@
1
1
  /*!
2
- * Chirpy v6.2.1 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
2
+ * Chirpy v6.2.3 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
3
3
  */
4
4
  !function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,i(o.key),o)}}function r(e,r,o){return r&&t(e.prototype,r),o&&t(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e,t,r){return(t=i(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function i(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var l=$(".mode-toggle");var s=$("body"),c="sidebar-display",u=function(){function t(){e(this,t)}return r(t,null,[{key:"toggle",value:function(){!1===t.isExpanded?s.attr(c,""):s.removeAttr(c),t.isExpanded=!t.isExpanded}}]),t}();o(u,"isExpanded",!1);var f=$("#sidebar-trigger"),d=$("#search-trigger"),p=$("#search-cancel"),b=$("#main-wrapper>.container>.row"),v=$("#topbar-title"),m=$("search"),g=$("#search-result-wrapper"),y=$("#search-results"),h=$("#search-input"),C=$("#search-hints"),w=$("html,body"),k="loaded",A="unloaded",S="input-focus",T="d-flex",j=function(){function t(){e(this,t)}return r(t,null,[{key:"on",value:function(){t.offset=window.scrollY,w.scrollTop(0)}},{key:"off",value:function(){w.scrollTop(t.offset)}}]),t}();o(j,"offset",0),o(j,"resultVisible",!1);var E=function(){function t(){e(this,t)}return r(t,null,[{key:"on",value:function(){f.addClass(A),v.addClass(A),d.addClass(A),m.addClass(T),p.addClass(k)}},{key:"off",value:function(){p.removeClass(k),m.removeClass(T),f.removeClass(A),v.removeClass(A),d.removeClass(A)}}]),t}(),O=function(){function t(){e(this,t)}return r(t,null,[{key:"on",value:function(){j.resultVisible||(j.on(),g.removeClass(A),b.addClass(A),j.resultVisible=!0)}},{key:"off",value:function(){j.resultVisible&&(y.empty(),C.hasClass(A)&&C.removeClass(A),g.addClass(A),b.removeClass(A),j.off(),h.val(""),j.resultVisible=!1)}}]),t}();function x(){return p.hasClass(k)}var P=$(".collapse");var V,I;$(".code-header>button").children().attr("class"),V=$(window),I=$("#back-to-top"),V.on("scroll",(function(){V.scrollTop()>50?I.fadeIn():I.fadeOut()})),I.on("click",(function(){V.scrollTop(0)})),n(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map((function(e){return new bootstrap.Tooltip(e)})),0!==l.length&&l.off().on("click",(function(e){var t=$(e.target),r=t.prop("tagName")==="button".toUpperCase()?t:t.parent();modeToggle.flipMode(),r.trigger("blur")})),$("#sidebar-trigger").on("click",u.toggle),$("#mask").on("click",u.toggle),d.on("click",(function(){E.on(),O.on(),h.trigger("focus")})),p.on("click",(function(){E.off(),O.off()})),h.on("focus",(function(){m.addClass(S)})),h.on("focusout",(function(){m.removeClass(S)})),h.on("input",(function(){""===h.val()?x()?C.removeClass(A):O.off():(O.on(),x()&&C.addClass(A))})),P.on("hide.bs.collapse",(function(){var e="h_"+$(this).attr("id").substring(2);e&&($("#".concat(e," .far.fa-folder-open")).attr("class","far fa-folder fa-fw"),$("#".concat(e," i.fas")).addClass("rotate"),$("#".concat(e)).removeClass("hide-border-bottom"))})),P.on("show.bs.collapse",(function(){var e="h_"+$(this).attr("id").substring(2);e&&($("#".concat(e," .far.fa-folder")).attr("class","far fa-folder-open fa-fw"),$("#".concat(e," i.fas")).removeClass("rotate"),$("#".concat(e)).addClass("hide-border-bottom"))}))}();
@@ -1,4 +1,4 @@
1
1
  /*!
2
- * Chirpy v6.2.1 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
2
+ * Chirpy v6.2.3 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
3
3
  */
4
4
  !function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function r(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function n(e,t,r){return(t=i(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var l=$(".mode-toggle");var s=$("body"),u="sidebar-display",c=function(){function t(){e(this,t)}return r(t,null,[{key:"toggle",value:function(){!1===t.isExpanded?s.attr(u,""):s.removeAttr(u),t.isExpanded=!t.isExpanded}}]),t}();n(c,"isExpanded",!1);var f=$("#sidebar-trigger"),d=$("#search-trigger"),p=$("#search-cancel"),b=$("#main-wrapper>.container>.row"),m=$("#topbar-title"),v=$("search"),y=$("#search-result-wrapper"),g=$("#search-results"),h=$("#search-input"),C=$("#search-hints"),w=$("html,body"),k="loaded",A="unloaded",S="input-focus",T="d-flex",j=function(){function t(){e(this,t)}return r(t,null,[{key:"on",value:function(){t.offset=window.scrollY,w.scrollTop(0)}},{key:"off",value:function(){w.scrollTop(t.offset)}}]),t}();n(j,"offset",0),n(j,"resultVisible",!1);var E,O,x=function(){function t(){e(this,t)}return r(t,null,[{key:"on",value:function(){f.addClass(A),m.addClass(A),d.addClass(A),v.addClass(T),p.addClass(k)}},{key:"off",value:function(){p.removeClass(k),v.removeClass(T),f.removeClass(A),m.removeClass(A),d.removeClass(A)}}]),t}(),P=function(){function t(){e(this,t)}return r(t,null,[{key:"on",value:function(){j.resultVisible||(j.on(),y.removeClass(A),b.addClass(A),j.resultVisible=!0)}},{key:"off",value:function(){j.resultVisible&&(g.empty(),C.hasClass(A)&&C.removeClass(A),y.addClass(A),b.removeClass(A),j.off(),h.val(""),j.resultVisible=!1)}}]),t}();function V(){return p.hasClass(k)}E=$(window),O=$("#back-to-top"),E.on("scroll",(function(){E.scrollTop()>50?O.fadeIn():O.fadeOut()})),O.on("click",(function(){E.scrollTop(0)})),o(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map((function(e){return new bootstrap.Tooltip(e)})),0!==l.length&&l.off().on("click",(function(e){var t=$(e.target),r=t.prop("tagName")==="button".toUpperCase()?t:t.parent();modeToggle.flipMode(),r.trigger("blur")})),$("#sidebar-trigger").on("click",c.toggle),$("#mask").on("click",c.toggle),d.on("click",(function(){x.on(),P.on(),h.trigger("focus")})),p.on("click",(function(){x.off(),P.off()})),h.on("focus",(function(){v.addClass(S)})),h.on("focusout",(function(){v.removeClass(S)})),h.on("input",(function(){""===h.val()?V()?C.removeClass(A):P.off():(P.on(),V()&&C.addClass(A))}))}();
@@ -1,4 +1,4 @@
1
1
  /*!
2
- * Chirpy v6.2.1 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
2
+ * Chirpy v6.2.3 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
3
3
  */
4
- !function(){"use strict";function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,i(n.key),n)}}function r(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function n(t,e,r){return(e=i(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function i(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var l=$(".mode-toggle");var s=$("body"),u="sidebar-display",c=function(){function e(){t(this,e)}return r(e,null,[{key:"toggle",value:function(){!1===e.isExpanded?s.attr(u,""):s.removeAttr(u),e.isExpanded=!e.isExpanded}}]),e}();n(c,"isExpanded",!1);var f=$("#sidebar-trigger"),d=$("#search-trigger"),m=$("#search-cancel"),p=$("#main-wrapper>.container>.row"),g=$("#topbar-title"),v=$("search"),y=$("#search-result-wrapper"),b=$("#search-results"),h=$("#search-input"),C=$("#search-hints"),k=$("html,body"),w="loaded",T="unloaded",j="input-focus",A="d-flex",S=function(){function e(){t(this,e)}return r(e,null,[{key:"on",value:function(){e.offset=window.scrollY,k.scrollTop(0)}},{key:"off",value:function(){k.scrollTop(e.offset)}}]),e}();n(S,"offset",0),n(S,"resultVisible",!1);var x=function(){function e(){t(this,e)}return r(e,null,[{key:"on",value:function(){f.addClass(T),g.addClass(T),d.addClass(T),v.addClass(A),m.addClass(w)}},{key:"off",value:function(){m.removeClass(w),v.removeClass(A),f.removeClass(T),g.removeClass(T),d.removeClass(T)}}]),e}(),E=function(){function e(){t(this,e)}return r(e,null,[{key:"on",value:function(){S.resultVisible||(S.on(),y.removeClass(T),p.addClass(T),S.resultVisible=!0)}},{key:"off",value:function(){S.resultVisible&&(b.empty(),C.hasClass(T)&&C.removeClass(T),y.addClass(T),p.removeClass(T),S.off(),h.val(""),S.resultVisible=!1)}}]),e}();function F(){return m.hasClass(w)}$(".collapse");function O(t){t.parent().removeClass("shimmer")}$(".code-header>button").children().attr("class");var D,P,V,I=function(){function e(){t(this,e)}return r(e,null,[{key:"attrTimestamp",get:function(){return"data-ts"}},{key:"attrDateFormat",get:function(){return"data-df"}},{key:"locale",get:function(){return $("html").attr("lang").substring(0,2)}},{key:"getTimestamp",value:function(t){return Number(t.attr(e.attrTimestamp))}},{key:"getDateFormat",value:function(t){return t.attr(e.attrDateFormat)}}]),e}();D=$(window),P=$("#back-to-top"),D.on("scroll",(function(){D.scrollTop()>50?P.fadeIn():P.fadeOut()})),P.on("click",(function(){D.scrollTop(0)})),o(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map((function(t){return new bootstrap.Tooltip(t)})),0!==l.length&&l.off().on("click",(function(t){var e=$(t.target),r=e.prop("tagName")==="button".toUpperCase()?e:e.parent();modeToggle.flipMode(),r.trigger("blur")})),$("#sidebar-trigger").on("click",c.toggle),$("#mask").on("click",c.toggle),d.on("click",(function(){x.on(),E.on(),h.trigger("focus")})),m.on("click",(function(){x.off(),E.off()})),h.on("focus",(function(){v.addClass(j)})),h.on("focusout",(function(){v.removeClass(j)})),h.on("input",(function(){""===h.val()?F()?C.removeClass(T):E.off():(E.on(),F()&&C.addClass(T))})),dayjs.locale(I.locale),dayjs.extend(window.dayjs_plugin_localizedFormat),$("[".concat(I.attrTimestamp,"]")).each((function(){var t=dayjs.unix(I.getTimestamp($(this))),e=t.format(I.getDateFormat($(this)));$(this).text(e),$(this).removeAttr(I.attrTimestamp),$(this).removeAttr(I.attrDateFormat);var r=$(this).attr("data-bs-toggle");if(void 0!==r&&"tooltip"===r){var n=t.format("llll");$(this).attr("data-bs-title",n),new bootstrap.Tooltip($(this))}})),(V=$("main img[data-src]")).length<=0||(document.addEventListener("lazyloaded",(function(t){O($(t.target))})),V.each((function(){$(this).hasClass("ls-is-cached")&&O($(this))})))}();
4
+ !function(){"use strict";function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,i(n.key),n)}}function r(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function n(t,e,r){return(e=i(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function i(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var l=$(".mode-toggle");var s=$("body"),u="sidebar-display",c=function(){function e(){t(this,e)}return r(e,null,[{key:"toggle",value:function(){!1===e.isExpanded?s.attr(u,""):s.removeAttr(u),e.isExpanded=!e.isExpanded}}]),e}();n(c,"isExpanded",!1);var f=$("#sidebar-trigger"),d=$("#search-trigger"),m=$("#search-cancel"),p=$("#main-wrapper>.container>.row"),v=$("#topbar-title"),g=$("search"),h=$("#search-result-wrapper"),b=$("#search-results"),y=$("#search-input"),C=$("#search-hints"),k=$("html,body"),w="loaded",T="unloaded",A="input-focus",j="d-flex",S=function(){function e(){t(this,e)}return r(e,null,[{key:"on",value:function(){e.offset=window.scrollY,k.scrollTop(0)}},{key:"off",value:function(){k.scrollTop(e.offset)}}]),e}();n(S,"offset",0),n(S,"resultVisible",!1);var E=function(){function e(){t(this,e)}return r(e,null,[{key:"on",value:function(){f.addClass(T),v.addClass(T),d.addClass(T),g.addClass(j),m.addClass(w)}},{key:"off",value:function(){m.removeClass(w),g.removeClass(j),f.removeClass(T),v.removeClass(T),d.removeClass(T)}}]),e}(),x=function(){function e(){t(this,e)}return r(e,null,[{key:"on",value:function(){S.resultVisible||(S.on(),h.removeClass(T),p.addClass(T),S.resultVisible=!0)}},{key:"off",value:function(){S.resultVisible&&(b.empty(),C.hasClass(T)&&C.removeClass(T),h.addClass(T),p.removeClass(T),S.off(),y.val(""),S.resultVisible=!1)}}]),e}();function I(){return m.hasClass(w)}$(".collapse");$(".code-header>button").children().attr("class");var M="data-src",F="data-lqip",O={SHIMMER:"shimmer",BLUR:"blur"};function R(t){$(this).parent().removeClass(t)}function D(){this.complete&&(this.hasAttribute(F)?R.call(this,O.BLUR):R.call(this,O.SHIMMER))}function P(){var t=$(this),e=t.attr(M);t.attr("src",encodeURI(e)),t.removeAttr(M)}var U,V,H=function(){function e(){t(this,e)}return r(e,null,[{key:"attrTimestamp",get:function(){return"data-ts"}},{key:"attrDateFormat",get:function(){return"data-df"}},{key:"locale",get:function(){return $("html").attr("lang").substring(0,2)}},{key:"getTimestamp",value:function(t){return Number(t.attr(e.attrTimestamp))}},{key:"getDateFormat",value:function(t){return t.attr(e.attrDateFormat)}}]),e}();U=$(window),V=$("#back-to-top"),U.on("scroll",(function(){U.scrollTop()>50?V.fadeIn():V.fadeOut()})),V.on("click",(function(){U.scrollTop(0)})),o(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map((function(t){return new bootstrap.Tooltip(t)})),0!==l.length&&l.off().on("click",(function(t){var e=$(t.target),r=e.prop("tagName")==="button".toUpperCase()?e:e.parent();modeToggle.flipMode(),r.trigger("blur")})),$("#sidebar-trigger").on("click",c.toggle),$("#mask").on("click",c.toggle),d.on("click",(function(){E.on(),x.on(),y.trigger("focus")})),m.on("click",(function(){E.off(),x.off()})),y.on("focus",(function(){g.addClass(A)})),y.on("focusout",(function(){g.removeClass(A)})),y.on("input",(function(){""===y.val()?I()?C.removeClass(T):x.off():(x.on(),I()&&C.addClass(T))})),dayjs.locale(H.locale),dayjs.extend(window.dayjs_plugin_localizedFormat),$("[".concat(H.attrTimestamp,"]")).each((function(){var t=dayjs.unix(H.getTimestamp($(this))),e=t.format(H.getDateFormat($(this)));$(this).text(e),$(this).removeAttr(H.attrTimestamp),$(this).removeAttr(H.attrDateFormat);var r=$(this).attr("data-bs-toggle");if(void 0!==r&&"tooltip"===r){var n=t.format("llll");$(this).attr("data-bs-title",n),new bootstrap.Tooltip($(this))}})),function(){var t=$("article img");t.length&&t.on("load",D),$('article img[loading="lazy"]').each((function(){this.complete&&R.call(this,O.SHIMMER)}));var e=$("article img[".concat(F,'="true"]'));e.length&&e.each(P)}()}();
@@ -1,4 +1,4 @@
1
1
  /*!
2
- * Chirpy v6.2.1 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
2
+ * Chirpy v6.2.3 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
3
3
  */
4
4
  !function(){"use strict";function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,i(n.key),n)}}function r(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function n(t,e,r){return(e=i(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function i(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var l=$(".mode-toggle");var s=$("body"),u="sidebar-display",c=function(){function e(){t(this,e)}return r(e,null,[{key:"toggle",value:function(){!1===e.isExpanded?s.attr(u,""):s.removeAttr(u),e.isExpanded=!e.isExpanded}}]),e}();n(c,"isExpanded",!1);var f=$("#sidebar-trigger"),d=$("#search-trigger"),m=$("#search-cancel"),p=$("#main-wrapper>.container>.row"),v=$("#topbar-title"),g=$("search"),y=$("#search-result-wrapper"),b=$("#search-results"),h=$("#search-input"),C=$("#search-hints"),k=$("html,body"),w="loaded",T="unloaded",j="input-focus",A="d-flex",S=function(){function e(){t(this,e)}return r(e,null,[{key:"on",value:function(){e.offset=window.scrollY,k.scrollTop(0)}},{key:"off",value:function(){k.scrollTop(e.offset)}}]),e}();n(S,"offset",0),n(S,"resultVisible",!1);var x=function(){function e(){t(this,e)}return r(e,null,[{key:"on",value:function(){f.addClass(T),v.addClass(T),d.addClass(T),g.addClass(A),m.addClass(w)}},{key:"off",value:function(){m.removeClass(w),g.removeClass(A),f.removeClass(T),v.removeClass(T),d.removeClass(T)}}]),e}(),E=function(){function e(){t(this,e)}return r(e,null,[{key:"on",value:function(){S.resultVisible||(S.on(),y.removeClass(T),p.addClass(T),S.resultVisible=!0)}},{key:"off",value:function(){S.resultVisible&&(b.empty(),C.hasClass(T)&&C.removeClass(T),y.addClass(T),p.removeClass(T),S.off(),h.val(""),S.resultVisible=!1)}}]),e}();function F(){return m.hasClass(w)}$(".collapse");$(".code-header>button").children().attr("class");var O,D,P=function(){function e(){t(this,e)}return r(e,null,[{key:"attrTimestamp",get:function(){return"data-ts"}},{key:"attrDateFormat",get:function(){return"data-df"}},{key:"locale",get:function(){return $("html").attr("lang").substring(0,2)}},{key:"getTimestamp",value:function(t){return Number(t.attr(e.attrTimestamp))}},{key:"getDateFormat",value:function(t){return t.attr(e.attrDateFormat)}}]),e}();O=$(window),D=$("#back-to-top"),O.on("scroll",(function(){O.scrollTop()>50?D.fadeIn():D.fadeOut()})),D.on("click",(function(){O.scrollTop(0)})),o(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map((function(t){return new bootstrap.Tooltip(t)})),0!==l.length&&l.off().on("click",(function(t){var e=$(t.target),r=e.prop("tagName")==="button".toUpperCase()?e:e.parent();modeToggle.flipMode(),r.trigger("blur")})),$("#sidebar-trigger").on("click",c.toggle),$("#mask").on("click",c.toggle),d.on("click",(function(){x.on(),E.on(),h.trigger("focus")})),m.on("click",(function(){x.off(),E.off()})),h.on("focus",(function(){g.addClass(j)})),h.on("focusout",(function(){g.removeClass(j)})),h.on("input",(function(){""===h.val()?F()?C.removeClass(T):E.off():(E.on(),F()&&C.addClass(T))})),dayjs.locale(P.locale),dayjs.extend(window.dayjs_plugin_localizedFormat),$("[".concat(P.attrTimestamp,"]")).each((function(){var t=dayjs.unix(P.getTimestamp($(this))),e=t.format(P.getDateFormat($(this)));$(this).text(e),$(this).removeAttr(P.attrTimestamp),$(this).removeAttr(P.attrDateFormat);var r=$(this).attr("data-bs-toggle");if(void 0!==r&&"tooltip"===r){var n=t.format("llll");$(this).attr("data-bs-title",n),new bootstrap.Tooltip($(this))}}))}();
@@ -1,4 +1,4 @@
1
1
  /*!
2
- * Chirpy v6.2.1 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
2
+ * Chirpy v6.2.3 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
3
3
  */
4
- !function(){"use strict";function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,i(o.key),o)}}function n(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(t,e,n){return(e=i(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function i(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var l=$(".mode-toggle");var u=$("body"),s="sidebar-display",c=function(){function e(){t(this,e)}return n(e,null,[{key:"toggle",value:function(){!1===e.isExpanded?u.attr(s,""):u.removeAttr(s),e.isExpanded=!e.isExpanded}}]),e}();o(c,"isExpanded",!1);var f=$("#sidebar-trigger"),d=$("#search-trigger"),p=$("#search-cancel"),m=$("#main-wrapper>.container>.row"),v=$("#topbar-title"),g=$("search"),b=$("#search-result-wrapper"),h=$("#search-results"),y=$("#search-input"),C=$("#search-hints"),w=$("html,body"),k="loaded",S="unloaded",A="input-focus",T="d-flex",E=function(){function e(){t(this,e)}return n(e,null,[{key:"on",value:function(){e.offset=window.scrollY,w.scrollTop(0)}},{key:"off",value:function(){w.scrollTop(e.offset)}}]),e}();o(E,"offset",0),o(E,"resultVisible",!1);var j=function(){function e(){t(this,e)}return n(e,null,[{key:"on",value:function(){f.addClass(S),v.addClass(S),d.addClass(S),g.addClass(T),p.addClass(k)}},{key:"off",value:function(){p.removeClass(k),g.removeClass(T),f.removeClass(S),v.removeClass(S),d.removeClass(S)}}]),e}(),x=function(){function e(){t(this,e)}return n(e,null,[{key:"on",value:function(){E.resultVisible||(E.on(),b.removeClass(S),m.addClass(S),E.resultVisible=!0)}},{key:"off",value:function(){E.resultVisible&&(h.empty(),C.hasClass(S)&&C.removeClass(S),b.addClass(S),m.removeClass(S),E.off(),y.val(""),E.resultVisible=!1)}}]),e}();function O(){return p.hasClass(k)}$(".collapse");var P=".code-header>button",V="fas fa-check",I="timeout",N="data-title-succeed",q="data-bs-original-title",z=2e3;function D(t){if($(t)[0].hasAttribute(I)){var e=$(t).attr(I);if(Number(e)>Date.now())return!0}return!1}function M(t){$(t).attr(I,Date.now()+z)}function U(t){$(t).removeAttr(I)}var B,J,L,Y=$(P).children().attr("class");function F(t){t.parent().removeClass("shimmer")}B=$(window),J=$("#back-to-top"),B.on("scroll",(function(){B.scrollTop()>50?J.fadeIn():J.fadeOut()})),J.on("click",(function(){B.scrollTop(0)})),r(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map((function(t){return new bootstrap.Tooltip(t)})),0!==l.length&&l.off().on("click",(function(t){var e=$(t.target),n=e.prop("tagName")==="button".toUpperCase()?e:e.parent();modeToggle.flipMode(),n.trigger("blur")})),$("#sidebar-trigger").on("click",c.toggle),$("#mask").on("click",c.toggle),d.on("click",(function(){j.on(),x.on(),y.trigger("focus")})),p.on("click",(function(){j.off(),x.off()})),y.on("focus",(function(){g.addClass(A)})),y.on("focusout",(function(){g.removeClass(A)})),y.on("input",(function(){""===y.val()?O()?C.removeClass(S):x.off():(x.on(),O()&&C.addClass(S))})),(L=$("main img[data-src]")).length<=0||(document.addEventListener("lazyloaded",(function(t){F($(t.target))})),L.each((function(){$(this).hasClass("ls-is-cached")&&F($(this))}))),$(".popup")<=0||$(".popup").magnificPopup({type:"image",closeOnContentClick:!0,showCloseBtn:!1,zoom:{enabled:!0,duration:300,easing:"ease-in-out"}}),function(){if($(P).length){var t=new ClipboardJS(P,{target:function(t){return t.parentNode.nextElementSibling.querySelector("code .rouge-code")}});r(document.querySelectorAll(P)).map((function(t){return new bootstrap.Tooltip(t,{placement:"left"})})),t.on("success",(function(t){t.clearSelection();var e=t.trigger;D(e)||(!function(t){$(t).children().attr("class",V)}(e),function(t){var e=$(t).attr(N);$(t).attr(q,e).tooltip("show")}(e),M(e),setTimeout((function(){!function(t){$(t).tooltip("hide").removeAttr(q)}(e),function(t){$(t).children().attr("class",Y)}(e),U(e)}),z))}))}var e=$("#copy-link");e.on("click",(function(t){var e=$(t.target);D(e)||navigator.clipboard.writeText(window.location.href).then((function(){var t=e.attr(q),n=e.attr(N);e.attr(q,n).tooltip("show"),M(e),setTimeout((function(){e.attr(q,t),U(e)}),z)}))})),e.on("mouseleave",(function(t){$(t.target).tooltip("hide"),console.log("mouse leave...")}))}()}();
4
+ !function(){"use strict";function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,i(r.key),r)}}function n(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function r(t,e,n){return(e=i(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var l=$(".mode-toggle");var c=$("body"),u="sidebar-display",s=function(){function e(){t(this,e)}return n(e,null,[{key:"toggle",value:function(){!1===e.isExpanded?c.attr(u,""):c.removeAttr(u),e.isExpanded=!e.isExpanded}}]),e}();r(s,"isExpanded",!1);var f=$("#sidebar-trigger"),d=$("#search-trigger"),p=$("#search-cancel"),m=$("#main-wrapper>.container>.row"),v=$("#topbar-title"),g=$("search"),b=$("#search-result-wrapper"),h=$("#search-results"),y=$("#search-input"),C=$("#search-hints"),w=$("html,body"),k="loaded",S="unloaded",A="input-focus",T="d-flex",E=function(){function e(){t(this,e)}return n(e,null,[{key:"on",value:function(){e.offset=window.scrollY,w.scrollTop(0)}},{key:"off",value:function(){w.scrollTop(e.offset)}}]),e}();r(E,"offset",0),r(E,"resultVisible",!1);var j=function(){function e(){t(this,e)}return n(e,null,[{key:"on",value:function(){f.addClass(S),v.addClass(S),d.addClass(S),g.addClass(T),p.addClass(k)}},{key:"off",value:function(){p.removeClass(k),g.removeClass(T),f.removeClass(S),v.removeClass(S),d.removeClass(S)}}]),e}(),I=function(){function e(){t(this,e)}return n(e,null,[{key:"on",value:function(){E.resultVisible||(E.on(),b.removeClass(S),m.addClass(S),E.resultVisible=!0)}},{key:"off",value:function(){E.resultVisible&&(h.empty(),C.hasClass(S)&&C.removeClass(S),b.addClass(S),m.removeClass(S),E.off(),y.val(""),E.resultVisible=!1)}}]),e}();function M(){return p.hasClass(k)}$(".collapse");var x=".code-header>button",O="fas fa-check",P="timeout",R="data-title-succeed",U="data-bs-original-title",V=2e3;function q(t){if($(t)[0].hasAttribute(P)){var e=$(t).attr(P);if(Number(e)>Date.now())return!0}return!1}function N(t){$(t).attr(P,Date.now()+V)}function B(t){$(t).removeAttr(P)}var H=$(x).children().attr("class");var z,D,L="data-src",J="data-lqip",Y={SHIMMER:"shimmer",BLUR:"blur"};function F(t){$(this).parent().removeClass(t)}function G(){this.complete&&(this.hasAttribute(J)?F.call(this,Y.BLUR):F.call(this,Y.SHIMMER))}function K(){var t=$(this),e=t.attr(L);t.attr("src",encodeURI(e)),t.removeAttr(L)}z=$(window),D=$("#back-to-top"),z.on("scroll",(function(){z.scrollTop()>50?D.fadeIn():D.fadeOut()})),D.on("click",(function(){z.scrollTop(0)})),o(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map((function(t){return new bootstrap.Tooltip(t)})),0!==l.length&&l.off().on("click",(function(t){var e=$(t.target),n=e.prop("tagName")==="button".toUpperCase()?e:e.parent();modeToggle.flipMode(),n.trigger("blur")})),$("#sidebar-trigger").on("click",s.toggle),$("#mask").on("click",s.toggle),d.on("click",(function(){j.on(),I.on(),y.trigger("focus")})),p.on("click",(function(){j.off(),I.off()})),y.on("focus",(function(){g.addClass(A)})),y.on("focusout",(function(){g.removeClass(A)})),y.on("input",(function(){""===y.val()?M()?C.removeClass(S):I.off():(I.on(),M()&&C.addClass(S))})),function(){var t=$("article img");t.length&&t.on("load",G),$('article img[loading="lazy"]').each((function(){this.complete&&F.call(this,Y.SHIMMER)}));var e=$("article img[".concat(J,'="true"]'));e.length&&e.each(K)}(),$(".popup")<=0||$(".popup").magnificPopup({type:"image",closeOnContentClick:!0,showCloseBtn:!1,zoom:{enabled:!0,duration:300,easing:"ease-in-out"}}),function(){if($(x).length){var t=new ClipboardJS(x,{target:function(t){return t.parentNode.nextElementSibling.querySelector("code .rouge-code")}});o(document.querySelectorAll(x)).map((function(t){return new bootstrap.Tooltip(t,{placement:"left"})})),t.on("success",(function(t){t.clearSelection();var e=t.trigger;q(e)||(!function(t){$(t).children().attr("class",O)}(e),function(t){var e=$(t).attr(R);$(t).attr(U,e).tooltip("show")}(e),N(e),setTimeout((function(){!function(t){$(t).tooltip("hide").removeAttr(U)}(e),function(t){$(t).children().attr("class",H)}(e),B(e)}),V))}))}var e=$("#copy-link");e.on("click",(function(t){var e=$(t.target);q(e)||navigator.clipboard.writeText(window.location.href).then((function(){var t=e.attr(U),n=e.attr(R);e.attr(U,n).tooltip("show"),N(e),setTimeout((function(){e.attr(U,t),B(e)}),V)}))})),e.on("mouseleave",(function(t){$(t.target).tooltip("hide")}))}()}();