gadidae 0.0.1 → 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 (2) hide show
  1. package/dist/index.js +353 -3
  2. package/package.json +3 -1
package/dist/index.js CHANGED
@@ -1,3 +1,353 @@
1
- //#region src/index.ts
2
- console.log("fih");
3
- //#endregion
1
+ var e=`*, :after, :before, ::backdrop, ::file-selector-button {
2
+ box-sizing: border-box;
3
+ border: 0 solid;
4
+ margin: 0;
5
+ padding: 0;
6
+ }
7
+
8
+ html, :host {
9
+ -webkit-text-size-adjust: 100%;
10
+ tab-size: 4;
11
+ font-feature-settings: normal;
12
+ font-variation-settings: normal;
13
+ -webkit-tap-highlight-color: transparent;
14
+ font-family: ui-sans-serif, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
15
+ line-height: 1.5;
16
+ }
17
+
18
+ hr {
19
+ height: 0;
20
+ color: inherit;
21
+ border-top-width: 1px;
22
+ }
23
+
24
+ abbr:where([title]) {
25
+ text-decoration: underline dotted;
26
+ }
27
+
28
+ h1, h2, h3, h4, h5, h6 {
29
+ font-size: inherit;
30
+ font-weight: inherit;
31
+ }
32
+
33
+ a {
34
+ color: inherit;
35
+ -webkit-text-decoration: inherit;
36
+ text-decoration: inherit;
37
+ }
38
+
39
+ b, strong {
40
+ font-weight: bolder;
41
+ }
42
+
43
+ code, kbd, samp, pre {
44
+ font-feature-settings: normal;
45
+ font-variation-settings: normal;
46
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
47
+ font-size: 1em;
48
+ }
49
+
50
+ small {
51
+ font-size: 80%;
52
+ }
53
+
54
+ sub, sup {
55
+ vertical-align: baseline;
56
+ font-size: 75%;
57
+ line-height: 0;
58
+ position: relative;
59
+ }
60
+
61
+ sub {
62
+ bottom: -.25em;
63
+ }
64
+
65
+ sup {
66
+ top: -.5em;
67
+ }
68
+
69
+ table {
70
+ text-indent: 0;
71
+ border-color: inherit;
72
+ border-collapse: collapse;
73
+ }
74
+
75
+ :-moz-focusring {
76
+ outline: auto;
77
+ }
78
+
79
+ progress {
80
+ vertical-align: baseline;
81
+ }
82
+
83
+ summary {
84
+ display: list-item;
85
+ }
86
+
87
+ ol, ul, menu {
88
+ list-style: none;
89
+ }
90
+
91
+ img, svg, video, canvas, audio, iframe, embed, object {
92
+ vertical-align: middle;
93
+ display: block;
94
+ }
95
+
96
+ img, video {
97
+ max-width: 100%;
98
+ height: auto;
99
+ }
100
+
101
+ button, input, select, optgroup, textarea, ::file-selector-button {
102
+ font: inherit;
103
+ font-feature-settings: inherit;
104
+ font-variation-settings: inherit;
105
+ letter-spacing: inherit;
106
+ color: inherit;
107
+ opacity: 1;
108
+ background-color: #0000;
109
+ border-radius: 0;
110
+ }
111
+
112
+ :where(select:is([multiple], [size])) optgroup {
113
+ font-weight: bolder;
114
+ }
115
+
116
+ :where(select:is([multiple], [size])) optgroup option {
117
+ padding-inline-start: 20px;
118
+ }
119
+
120
+ ::file-selector-button {
121
+ margin-inline-end: 4px;
122
+ }
123
+
124
+ ::placeholder {
125
+ opacity: 1;
126
+ }
127
+
128
+ @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
129
+ ::placeholder {
130
+ color: color-mix(in oklab, currentcolor 50%, transparent);
131
+ }
132
+ }
133
+
134
+ textarea {
135
+ resize: vertical;
136
+ }
137
+
138
+ ::-webkit-search-decoration {
139
+ -webkit-appearance: none;
140
+ }
141
+
142
+ ::-webkit-date-and-time-value {
143
+ min-height: 1lh;
144
+ text-align: inherit;
145
+ }
146
+
147
+ ::-webkit-datetime-edit {
148
+ display: inline-flex;
149
+ }
150
+
151
+ ::-webkit-datetime-edit-fields-wrapper {
152
+ padding: 0;
153
+ }
154
+
155
+ ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
156
+ padding-block: 0;
157
+ }
158
+
159
+ ::-webkit-calendar-picker-indicator {
160
+ line-height: 1;
161
+ }
162
+
163
+ :-moz-ui-invalid {
164
+ box-shadow: none;
165
+ }
166
+
167
+ button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
168
+ appearance: button;
169
+ }
170
+
171
+ ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
172
+ height: auto;
173
+ }
174
+
175
+ [hidden]:where(:not([hidden="until-found"])) {
176
+ display: none !important;
177
+ }
178
+
179
+ :root {
180
+ color-scheme: light dark;
181
+ background-color: var(--m3c-surface);
182
+ color: var(--m3c-on-surface);
183
+ accent-color: var(--m3c-primary);
184
+ --m3c-surface: light-dark(#daffec, #00120a);
185
+ --m3c-surface-container-lowest: light-dark(#fff, #000);
186
+ --m3c-surface-container-low: light-dark(#c1fee3, #00170f);
187
+ --m3c-surface-container: light-dark(#b4f6d9, #001e14);
188
+ --m3c-surface-container-high: light-dark(#aaf1d3, #00251a);
189
+ --m3c-surface-container-highest: light-dark(#a0eccc, #002c1f);
190
+ --m3c-on-surface: light-dark(#003627, #daffec);
191
+ --m3c-on-surface-variant: light-dark(#326552, #81b69f);
192
+ --m3c-outline: light-dark(#4e816c, #4c7f6b);
193
+ --m3c-outline-variant: light-dark(#83b8a1, #1c513f);
194
+ --m3c-inverse-surface: light-dark(#00120a, #e7fff2);
195
+ --m3c-inverse-on-surface: light-dark(#74a891, #2b5e4b);
196
+ --m3c-primary: light-dark(#006940, #b1ffcd);
197
+ --m3c-on-primary: light-dark(#caffdb, #00663e);
198
+ --m3c-primary-container: #07ffa2;
199
+ --m3c-on-primary-container: #005c37;
200
+ --m3c-inverse-primary: light-dark(#07ffa2, #006d42);
201
+ --m3c-secondary: light-dark(#00684e, #65fcc8);
202
+ --m3c-on-secondary: light-dark(#c6ffe5, #005e45);
203
+ --m3c-secondary-container: light-dark(#65fcc8, #006c50);
204
+ --m3c-on-secondary-container: light-dark(#005e45, #dfffef);
205
+ --m3c-tertiary: light-dark(#00647a, #70ddff);
206
+ --m3c-on-tertiary: light-dark(#e1f6ff, #004c5e);
207
+ --m3c-tertiary-container: #00d2fe;
208
+ --m3c-on-tertiary-container: #004352;
209
+ --m3c-error: light-dark(#b31b25, #ff716c);
210
+ --m3c-on-error: light-dark(#ffefee, #490006);
211
+ --m3c-error-container: light-dark(#fb5151, #9f0519);
212
+ --m3c-on-error-container: light-dark(#570008, #ffa8a3);
213
+ --m3c-shadow: #000;
214
+ --m3c-scrim: #000;
215
+ --m3c-on-on-primary: light-dark(#006940, #aeffcc);
216
+ --m3c-primary-container-subtle: light-dark(#00f299, #00341d);
217
+ --m3c-on-primary-container-subtle: light-dark(#005532, #00c37b);
218
+ --m3c-secondary-container-subtle: light-dark(#54edbb, #003324);
219
+ --m3c-on-secondary-container-subtle: light-dark(#00543e, #00c293);
220
+ --m3c-tertiary-container-subtle: light-dark(#87e1ff, #00313d);
221
+ --m3c-on-tertiary-container-subtle: light-dark(#005063, #00bae1);
222
+ --m3c-error-container-subtle: light-dark(#ffc7c3, #60000a);
223
+ --m3c-on-error-container-subtle: light-dark(#970016, #ff8983);
224
+ }
225
+ `,t=`body {
226
+ grid-template-rows: 1fr auto;
227
+ place-items: center;
228
+ height: 100dvh;
229
+ display: grid;
230
+ }
231
+
232
+ body > button {
233
+ border-radius: 6rem;
234
+ height: 6rem;
235
+ padding-inline: 1rem;
236
+ transition: background-color .2s, color .2s;
237
+ display: flex;
238
+
239
+ &:enabled {
240
+ background-color: var(--m3c-secondary-container);
241
+ color: var(--m3c-on-secondary-container);
242
+ cursor: pointer;
243
+ }
244
+ }
245
+
246
+ body > a {
247
+ border: solid 1px var(--m3c-outline-variant);
248
+ height: 2rem;
249
+ color: var(--m3c-on-surface-variant);
250
+ border-radius: 2rem;
251
+ align-items: center;
252
+ margin: .5rem;
253
+ padding-inline: 1rem;
254
+ font-size: .75rem;
255
+ display: flex;
256
+
257
+ & > span {
258
+ color: var(--m3c-primary);
259
+ align-items: center;
260
+ gap: .1em;
261
+ margin-left: .4em;
262
+ display: flex;
263
+ }
264
+
265
+ & > u {
266
+ margin-left: .4em;
267
+ }
268
+ }
269
+ `,n=`<svg
270
+ xmlns="http://www.w3.org/2000/svg"
271
+ viewBox="0 0 32 16"
272
+ style="color-scheme: light dark; overflow: visible"
273
+ >
274
+ <style>
275
+ .codehs-logo {
276
+ animation: codehs-logo 2.4s ease-in-out forwards;
277
+ transform-origin: 8px 8px;
278
+ }
279
+
280
+ .cod-logo {
281
+ animation: cod-logo 2.4s cubic-bezier(.2, .8, .2, 1) forwards;
282
+ opacity: 0;
283
+ transform: scale(.38);
284
+ transform-box: fill-box;
285
+ transform-origin: center;
286
+ }
287
+
288
+ .loader-text {
289
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
290
+ font-size: 7px;
291
+ font-weight: 700;
292
+ letter-spacing: 0;
293
+ animation: text 2.4s ease-in-out forwards;
294
+ }
295
+
296
+ .removed-text {
297
+ animation: removed-text 2.4s ease-in-out forwards;
298
+ }
299
+
300
+ @keyframes codehs-logo {
301
+ 0%, 30% { opacity: 1; transform: scale(1); }
302
+ 55%, 100% { opacity: 0; transform: scale(.7); }
303
+ }
304
+
305
+ @keyframes cod-logo {
306
+ 0%, 25% { opacity: 0; transform: scale(.3); }
307
+ 58%, 100% { opacity: 1; transform: scale(1); }
308
+ }
309
+
310
+ @keyframes text {
311
+ 0%, 32% { fill: light-dark(#015189, #8ed8ff); }
312
+ 58%, 100% { fill: currentColor; }
313
+ }
314
+
315
+ @keyframes removed-text {
316
+ 0%, 32% { opacity: 1 }
317
+ 58%, 100% { opacity: 0 }
318
+ }
319
+ </style>
320
+
321
+ <g class="codehs-logo">
322
+ <path fill="none" stroke="light-dark(#24a9e0, #8ed8ff)" stroke-linejoin="round" stroke-width=".64" d="M1.8 1.15h12.55v9.45H1.8z" />
323
+ <path fill="light-dark(#24a9e0, #8ed8ff)" d="M2.4 14.8c-.17-.09-.18-.12-.19-.66v-.48l.12-.68c.06-.38.13-.7.14-.74s.05-.08.08-.1l.07-.07h1.43l1.43-.01.01-.15c.03-.23.11-.53.2-.76l.1-.23h4.57l.08.2c.1.22.19.55.21.78l.02.16h1.4c1.37 0 1.4 0 1.48.05q.09.05.11.12a9 9 0 0 1 .25 1.85c0 .57 0 .62-.13.7-.07.05-.21.05-5.68.05-5.32 0-5.62 0-5.7-.03m10.87-.73v-.13H2.87l-.02.1v.12c.02.03.8.04 5.22.04h5.2Zm-.1-1.07-.06-.29H3.02l-.04.24-.05.3-.02.05h10.3Zm-3.15-.99c0-.1-.08-.4-.14-.56l-.18-.33-.1-.2H6.55l-.07.13a2 2 0 0 0-.35.89l-.02.12h1.95c1.95 0 1.95 0 1.95-.05" />
324
+ <path fill="none" stroke="light-dark(#24a9e0, #8ed8ff)" stroke-linejoin="round" stroke-width=".64" d="M2.93 2.34h10.28v7.1H2.93z" />
325
+ <rect x="3.964" y="3.276" width="6.006" height=".95" rx=".054" fill="light-dark(#015189, #8ed8ff)" />
326
+ <rect x="10.588" y="3.276" width="1.591" height=".95" rx=".054" fill="light-dark(#005ba7, #7ccfff)" />
327
+ <rect x="3.964" y="4.7" width="1.591" height=".95" rx=".054" fill="light-dark(#005ba7, #7ccfff)" />
328
+ <rect x="6.172" y="4.7" width="1.591" height=".95" rx=".054" fill="light-dark(#2273b9, #9edfff)" />
329
+ <rect x="8.38" y="4.7" width="3.798" height=".95" rx=".054" fill="light-dark(#1899d5, #aee7ff)" />
330
+ <rect x="3.964" y="6.125" width="3.798" height=".95" rx=".054" fill="light-dark(#24a9e0, #b7ecff)" />
331
+ <rect x="8.38" y="6.125" width="1.591" height=".95" rx=".054" fill="light-dark(#5facde, #c8f1ff)" />
332
+ <rect x="10.588" y="6.125" width="1.591" height=".95" rx=".054" fill="light-dark(#5facde, #c8f1ff)" />
333
+ <rect x="3.964" y="7.549" width="1.591" height=".95" rx=".054" fill="light-dark(#61b6e5, #d7f5ff)" />
334
+ <rect x="6.172" y="7.549" width="3.798" height=".95" rx=".054" fill="light-dark(#8ec6e8, #e4f9ff)" />
335
+ <rect x="10.588" y="7.549" width="1.591" height=".95" rx=".054" fill="light-dark(#8ec6e8, #e4f9ff)" />
336
+ </g>
337
+
338
+ <g class="cod-logo" shape-rendering="crispEdges">
339
+ <path fill="#c6a271" d="M11 1h1v1H11zM12 3h1v1H12zM10 4h1v1H10zM8 5h1v1H8zM10 5h1v1H10zM6 6h2v1H6zM9 6h1v1H9zM6 7h1v1H6zM8 7h1v1H8zM4 8h2v1H4zM9 8h1v1H9zM5 9h1v1H5zM8 9h1v1H8zM3 10h2v1H3zM6 10h1v1H6zM4 11h1v1H4zM6 11h1v1H6zM3 12h3v1H3z" />
340
+ <path fill="#b18953" d="M12 1h1v1H12zM13 3h1v1H13zM5 4h2v1H5zM11 4h2v1H11zM4 5h1v1H4zM9 5h1v1H9zM4 6h1v1H4zM8 6h1v1H8zM10 6h1v1H10zM5 7h1v1H5zM7 7h1v1H7zM9 7h1v1H9zM6 8h1v1H6zM7 10h1v1H7zM5 11h1v1H5zM3 13h2v1H3z" />
341
+ <path fill="#d6c5ad" d="M11 2h2v1H11zM10 3h2v1H10zM5 5h2v1H5zM5 6h1v1H5zM7 8h2v1H7zM6 9h2v1H6z" />
342
+ <path fill="#986d4e" d="M13 2h1v1H13zM14 3h1v1H14zM8 4h2v1H8zM13 4h2v1H13zM7 5h1v1H7zM11 5h2v1H11zM4 7h1v1H4zM10 7h1v1H10zM3 8h1v1H3zM10 8h1v1H10zM3 9h2v1H3zM9 9h1v1H9zM2 10h1v1H2zM5 10h1v1H5zM8 10h2v1H8zM2 11h1v1H2zM7 11h2v1H7zM2 12h1v1H2zM6 12h2v1H6zM5 13h1v1H5z" />
343
+ <path fill="#6b442b" d="M13 5h2v1H13zM11 6h1v1H11zM11 7h1v1H11zM11 8h1v1H11zM10 9h1v1H10zM10 10h1v1H10zM9 11h1v1H9zM8 12h1v1H8zM2 13h1v1H2zM6 13h2v1H6zM3 14h3v1H3z" />
344
+ <path fill="#000" d="M3 11h1v1H3z" />
345
+ </g>
346
+
347
+ <text class="loader-text" x="16" y="10.7"><tspan>Cod</tspan><tspan class="removed-text">eHS</tspan></text>
348
+ </svg>
349
+ `,r=`<svg viewBox="0 0 24 24" width="1em" height="1em" xmlns="http://www.w3.org/2000/svg">
350
+ <path stroke="currentColor" fill="none" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"
351
+ d="M12 9 12 2 8.5 5.5M12 2l3.5 3.5M15 12 22 12 18.5 8.5M22 12l-3.5 3.5M9 12 2 12 5.5 8.5M2 12l3.5 3.5M12 15 12 22 15.5 18.5M12 22l-3.5-3.5" />
352
+ </svg>
353
+ `;const i=(t,n)=>{let{document:r}=n;r.title=`New Tab`;let i=r.createElement(`style`);i.textContent=e,r.head.appendChild(i),console.log(t)},a=(Math.random()*1e5).toFixed(0),o=fetch(`https://scalinghub.codehs.com/hub/api/spinup/${a}/config/default`,{credentials:`include`}),s=document.createElement(`style`);s.textContent=e+t,document.head.appendChild(s);const c=document.createElement(`button`);c.innerHTML=n,c.disabled=!0;const l=document.createElement(`a`);l.innerHTML=`Made by <span>${r} Abundance</span>, the makers of <u>0K</u>`,l.href=`https://cdn.jsdelivr.net/gh/abndnce/b0k@main/jsdelivr/index.svg`,l.target=`_blank`,document.body.replaceChildren(c,l),o.then(()=>{c.disabled=!1,c.onclick=()=>{let e=window.open(`about:blank`,`_blank`);if(!e)throw Error(`failed to open`);i(a,e)}});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gadidae",
3
3
  "type": "module",
4
- "version": "0.0.1",
4
+ "version": "0.1.0",
5
5
  "description": "cod",
6
6
  "license": "UNLICENSED",
7
7
  "exports": {
@@ -12,7 +12,9 @@
12
12
  "dist"
13
13
  ],
14
14
  "devDependencies": {
15
+ "@tsdown/css": "^0.22.0",
15
16
  "@types/node": "^25.6.2",
17
+ "@unocss/reset": "^66.7.0",
16
18
  "bumpp": "^11.1.0",
17
19
  "tsdown": "^0.22.0",
18
20
  "typescript": "^6.0.3"