@inupedia/spotlight-vue 0.8.6 → 0.9.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/dist/assets/spotlight-vue.css +1 -1
- package/dist/avatar/speech/live2dTtsPlayback.d.ts +15 -2
- package/dist/avatar/speech/live2dTtsPlayback.d.ts.map +1 -1
- package/dist/avatar/speech/live2dTtsPlayback.js +77 -15
- package/dist/avatar/speech/spotlightSpeech.d.ts.map +1 -1
- package/dist/avatar/speech/spotlightSpeech.js +40 -43
- package/dist/avatar/spine/live2dApp.d.ts +3 -0
- package/dist/avatar/spine/live2dApp.d.ts.map +1 -1
- package/dist/avatar/spine/live2dApp.js +30 -18
- package/dist/avatar/spine/spineAvatar.d.ts +4 -0
- package/dist/avatar/spine/spineAvatar.d.ts.map +1 -1
- package/dist/avatar/spine/spineAvatar.js +114 -83
- package/dist/avatar/spine/spineLipSync.d.ts +1 -0
- package/dist/avatar/spine/spineLipSync.d.ts.map +1 -1
- package/dist/avatar/spine/spineLipSync.js +41 -36
- package/dist/avatar/voice/avatarDirector.d.ts +8 -0
- package/dist/avatar/voice/avatarDirector.d.ts.map +1 -0
- package/dist/avatar/voice/avatarDirector.js +6 -0
- package/dist/avatar/voice/config.d.ts +5 -0
- package/dist/avatar/voice/config.d.ts.map +1 -0
- package/dist/avatar/voice/config.js +5 -0
- package/dist/avatar/voice/micAccess.d.ts +4 -0
- package/dist/avatar/voice/micAccess.d.ts.map +1 -0
- package/dist/avatar/voice/micAccess.js +26 -0
- package/dist/avatar/voice/panelHidePolicy.d.ts +6 -0
- package/dist/avatar/voice/panelHidePolicy.d.ts.map +1 -0
- package/dist/avatar/voice/panelHidePolicy.js +6 -0
- package/dist/avatar/voice/phonePairing.d.ts +14 -0
- package/dist/avatar/voice/phonePairing.d.ts.map +1 -0
- package/dist/avatar/voice/phonePairing.js +30 -0
- package/dist/avatar/voice/usePhoneVoicePairing.d.ts +17 -0
- package/dist/avatar/voice/usePhoneVoicePairing.d.ts.map +1 -0
- package/dist/avatar/voice/usePhoneVoicePairing.js +88 -0
- package/dist/avatar/voice/voiceSession.d.ts +5 -0
- package/dist/avatar/voice/voiceSession.d.ts.map +1 -0
- package/dist/avatar/voice/voiceSession.js +14 -0
- package/dist/components/Live2dPanel.vue.d.ts +20 -0
- package/dist/components/Live2dPanel.vue.d.ts.map +1 -1
- package/dist/components/Live2dPanel.vue.js +2 -2
- package/dist/components/Live2dPanel2.vue.js +167 -62
- package/dist/components/SpotlightShell.vue.d.ts.map +1 -1
- package/dist/components/SpotlightShell.vue.js +2 -2
- package/dist/components/SpotlightShell2.vue.js +320 -217
- package/dist/config.d.ts +3 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +24 -22
- package/dist/mountShell.d.ts.map +1 -1
- package/dist/mountShell.js +13 -10
- package/dist/node_modules/.pnpm/uqr@0.1.3/node_modules/uqr/dist/index.js +504 -0
- package/dist/plugin.js +1 -1
- package/dist/remote/audio.d.ts.map +1 -1
- package/dist/remote/audio.js +19 -18
- package/dist/remote/runPipeline.d.ts +1 -0
- package/dist/remote/runPipeline.d.ts.map +1 -1
- package/dist/remote/runPipeline.js +83 -96
- package/dist/store/live2dSpeechStore.d.ts +2 -2
- package/dist/store/memoryPreferenceStore.d.ts +1 -1
- package/dist/store/runtime/types.d.ts +1 -1
- package/dist/store/runtime/types.d.ts.map +1 -1
- package/dist/store/spotlightStore.d.ts +10 -10
- package/package.json +4 -3
|
@@ -0,0 +1,504 @@
|
|
|
1
|
+
var w = /* @__PURE__ */ ((s) => (s[s.Border = -1] = "Border", s[s.Data = 0] = "Data", s[s.Function = 1] = "Function", s[s.Position = 2] = "Position", s[s.Timing = 3] = "Timing", s[s.Alignment = 4] = "Alignment", s))(w || {});
|
|
2
|
+
const L = [0, 1], B = [1, 0], N = [2, 3], I = [3, 2], D = {
|
|
3
|
+
L,
|
|
4
|
+
M: B,
|
|
5
|
+
Q: N,
|
|
6
|
+
H: I
|
|
7
|
+
}, T = /^\d*$/, V = /^[A-Z0-9 $%*+./:-]*$/, A = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:", z = 1, y = 40, C = 3, Y = 3, E = 40, G = 10, k = [
|
|
8
|
+
// Version: (note that index 0 is for padding, and is set to an illegal value)
|
|
9
|
+
// 0, 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 Error correction level
|
|
10
|
+
[-1, 7, 10, 15, 20, 26, 18, 20, 24, 30, 18, 20, 24, 26, 30, 22, 24, 28, 30, 28, 28, 28, 28, 30, 30, 26, 28, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30],
|
|
11
|
+
// Low
|
|
12
|
+
[-1, 10, 16, 26, 18, 24, 16, 18, 22, 22, 26, 30, 22, 22, 24, 24, 28, 28, 26, 26, 26, 26, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28],
|
|
13
|
+
// Medium
|
|
14
|
+
[-1, 13, 22, 18, 26, 18, 24, 18, 22, 20, 24, 28, 26, 24, 20, 30, 24, 28, 28, 26, 30, 28, 30, 30, 30, 30, 28, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30],
|
|
15
|
+
// Quartile
|
|
16
|
+
[-1, 17, 28, 22, 16, 22, 28, 26, 26, 24, 28, 24, 28, 22, 24, 24, 30, 28, 28, 26, 28, 30, 24, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30]
|
|
17
|
+
// High
|
|
18
|
+
], v = [
|
|
19
|
+
// Version: (note that index 0 is for padding, and is set to an illegal value)
|
|
20
|
+
// 0, 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 Error correction level
|
|
21
|
+
[-1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 4, 4, 4, 4, 4, 6, 6, 6, 6, 7, 8, 8, 9, 9, 10, 12, 12, 12, 13, 14, 15, 16, 17, 18, 19, 19, 20, 21, 22, 24, 25],
|
|
22
|
+
// Low
|
|
23
|
+
[-1, 1, 1, 1, 2, 2, 4, 4, 4, 5, 5, 5, 8, 9, 9, 10, 10, 11, 13, 14, 16, 17, 17, 18, 20, 21, 23, 25, 26, 28, 29, 31, 33, 35, 37, 38, 40, 43, 45, 47, 49],
|
|
24
|
+
// Medium
|
|
25
|
+
[-1, 1, 1, 2, 2, 4, 4, 6, 6, 8, 8, 8, 10, 12, 16, 12, 17, 16, 18, 21, 20, 23, 23, 25, 27, 29, 34, 34, 35, 38, 40, 43, 45, 48, 51, 53, 56, 59, 62, 65, 68],
|
|
26
|
+
// Quartile
|
|
27
|
+
[-1, 1, 1, 2, 4, 4, 4, 5, 6, 8, 8, 11, 11, 16, 16, 18, 16, 19, 21, 25, 25, 25, 34, 30, 32, 35, 37, 40, 42, 45, 48, 51, 54, 57, 60, 63, 66, 70, 74, 77, 81]
|
|
28
|
+
// High
|
|
29
|
+
];
|
|
30
|
+
class X {
|
|
31
|
+
/* -- Constructor (low level) and fields -- */
|
|
32
|
+
// Creates a new QR Code with the given version number,
|
|
33
|
+
// error correction level, data codeword bytes, and mask number.
|
|
34
|
+
// This is a low-level API that most users should not use directly.
|
|
35
|
+
// A mid-level API is the encodeSegments() function.
|
|
36
|
+
constructor(e, t, n, o) {
|
|
37
|
+
if (this.version = e, this.ecc = t, e < z || e > y)
|
|
38
|
+
throw new RangeError("Version value out of range");
|
|
39
|
+
if (o < -1 || o > 7)
|
|
40
|
+
throw new RangeError("Mask value out of range");
|
|
41
|
+
this.size = e * 4 + 17;
|
|
42
|
+
const i = Array.from({ length: this.size }).fill(!1);
|
|
43
|
+
for (let l = 0; l < this.size; l++)
|
|
44
|
+
this.modules.push(i.slice()), this.types.push(i.map(() => 0));
|
|
45
|
+
this.drawFunctionPatterns();
|
|
46
|
+
const r = this.addEccAndInterleave(n);
|
|
47
|
+
if (this.drawCodewords(r), o === -1) {
|
|
48
|
+
let l = 1e9;
|
|
49
|
+
for (let a = 0; a < 8; a++) {
|
|
50
|
+
this.applyMask(a), this.drawFormatBits(a);
|
|
51
|
+
const c = this.getPenaltyScore();
|
|
52
|
+
c < l && (o = a, l = c), this.applyMask(a);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
this.mask = o, this.applyMask(o), this.drawFormatBits(o);
|
|
56
|
+
}
|
|
57
|
+
/* -- Fields -- */
|
|
58
|
+
// The width and height of this QR Code, measured in modules, between
|
|
59
|
+
// 21 and 177 (inclusive). This is equal to version * 4 + 17.
|
|
60
|
+
size;
|
|
61
|
+
// The index of the mask pattern used in this QR Code, which is between 0 and 7 (inclusive).
|
|
62
|
+
// Even if a QR Code is created with automatic masking requested (mask = -1),
|
|
63
|
+
// the resulting object still has a mask value between 0 and 7.
|
|
64
|
+
mask;
|
|
65
|
+
// The modules of this QR Code (false = light, true = dark).
|
|
66
|
+
// Immutable after constructor finishes. Accessed through getModule().
|
|
67
|
+
modules = [];
|
|
68
|
+
types = [];
|
|
69
|
+
/* -- Accessor methods -- */
|
|
70
|
+
// Returns the color of the module (pixel) at the given coordinates, which is false
|
|
71
|
+
// for light or true for dark. The top left corner has the coordinates (x=0, y=0).
|
|
72
|
+
// If the given coordinates are out of bounds, then false (light) is returned.
|
|
73
|
+
getModule(e, t) {
|
|
74
|
+
return e >= 0 && e < this.size && t >= 0 && t < this.size && this.modules[t][e];
|
|
75
|
+
}
|
|
76
|
+
/* -- Private helper methods for constructor: Drawing function modules -- */
|
|
77
|
+
// Reads this object's version field, and draws and marks all function modules.
|
|
78
|
+
drawFunctionPatterns() {
|
|
79
|
+
for (let n = 0; n < this.size; n++)
|
|
80
|
+
this.setFunctionModule(6, n, n % 2 === 0, w.Timing), this.setFunctionModule(n, 6, n % 2 === 0, w.Timing);
|
|
81
|
+
this.drawFinderPattern(3, 3), this.drawFinderPattern(this.size - 4, 3), this.drawFinderPattern(3, this.size - 4);
|
|
82
|
+
const e = this.getAlignmentPatternPositions(), t = e.length;
|
|
83
|
+
for (let n = 0; n < t; n++)
|
|
84
|
+
for (let o = 0; o < t; o++)
|
|
85
|
+
n === 0 && o === 0 || n === 0 && o === t - 1 || n === t - 1 && o === 0 || this.drawAlignmentPattern(e[n], e[o]);
|
|
86
|
+
this.drawFormatBits(0), this.drawVersion();
|
|
87
|
+
}
|
|
88
|
+
// Draws two copies of the format bits (with its own error correction code)
|
|
89
|
+
// based on the given mask and this object's error correction level field.
|
|
90
|
+
drawFormatBits(e) {
|
|
91
|
+
const t = this.ecc[1] << 3 | e;
|
|
92
|
+
let n = t;
|
|
93
|
+
for (let i = 0; i < 10; i++)
|
|
94
|
+
n = n << 1 ^ (n >>> 9) * 1335;
|
|
95
|
+
const o = (t << 10 | n) ^ 21522;
|
|
96
|
+
for (let i = 0; i <= 5; i++)
|
|
97
|
+
this.setFunctionModule(8, i, d(o, i));
|
|
98
|
+
this.setFunctionModule(8, 7, d(o, 6)), this.setFunctionModule(8, 8, d(o, 7)), this.setFunctionModule(7, 8, d(o, 8));
|
|
99
|
+
for (let i = 9; i < 15; i++)
|
|
100
|
+
this.setFunctionModule(14 - i, 8, d(o, i));
|
|
101
|
+
for (let i = 0; i < 8; i++)
|
|
102
|
+
this.setFunctionModule(this.size - 1 - i, 8, d(o, i));
|
|
103
|
+
for (let i = 8; i < 15; i++)
|
|
104
|
+
this.setFunctionModule(8, this.size - 15 + i, d(o, i));
|
|
105
|
+
this.setFunctionModule(8, this.size - 8, !0);
|
|
106
|
+
}
|
|
107
|
+
// Draws two copies of the version bits (with its own error correction code),
|
|
108
|
+
// based on this object's version field, iff 7 <= version <= 40.
|
|
109
|
+
drawVersion() {
|
|
110
|
+
if (this.version < 7)
|
|
111
|
+
return;
|
|
112
|
+
let e = this.version;
|
|
113
|
+
for (let n = 0; n < 12; n++)
|
|
114
|
+
e = e << 1 ^ (e >>> 11) * 7973;
|
|
115
|
+
const t = this.version << 12 | e;
|
|
116
|
+
for (let n = 0; n < 18; n++) {
|
|
117
|
+
const o = d(t, n), i = this.size - 11 + n % 3, r = Math.floor(n / 3);
|
|
118
|
+
this.setFunctionModule(i, r, o), this.setFunctionModule(r, i, o);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
// Draws a 9*9 finder pattern including the border separator,
|
|
122
|
+
// with the center module at (x, y). Modules can be out of bounds.
|
|
123
|
+
drawFinderPattern(e, t) {
|
|
124
|
+
for (let n = -4; n <= 4; n++)
|
|
125
|
+
for (let o = -4; o <= 4; o++) {
|
|
126
|
+
const i = Math.max(Math.abs(o), Math.abs(n)), r = e + o, l = t + n;
|
|
127
|
+
r >= 0 && r < this.size && l >= 0 && l < this.size && this.setFunctionModule(r, l, i !== 2 && i !== 4, w.Position);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
// Draws a 5*5 alignment pattern, with the center module
|
|
131
|
+
// at (x, y). All modules must be in bounds.
|
|
132
|
+
drawAlignmentPattern(e, t) {
|
|
133
|
+
for (let n = -2; n <= 2; n++)
|
|
134
|
+
for (let o = -2; o <= 2; o++)
|
|
135
|
+
this.setFunctionModule(
|
|
136
|
+
e + o,
|
|
137
|
+
t + n,
|
|
138
|
+
Math.max(Math.abs(o), Math.abs(n)) !== 1,
|
|
139
|
+
w.Alignment
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
// Sets the color of a module and marks it as a function module.
|
|
143
|
+
// Only used by the constructor. Coordinates must be in bounds.
|
|
144
|
+
setFunctionModule(e, t, n, o = w.Function) {
|
|
145
|
+
this.modules[t][e] = n, this.types[t][e] = o;
|
|
146
|
+
}
|
|
147
|
+
/* -- Private helper methods for constructor: Codewords and masking -- */
|
|
148
|
+
// Returns a new byte string representing the given data with the appropriate error correction
|
|
149
|
+
// codewords appended to it, based on this object's version and error correction level.
|
|
150
|
+
addEccAndInterleave(e) {
|
|
151
|
+
const t = this.version, n = this.ecc;
|
|
152
|
+
if (e.length !== p(t, n))
|
|
153
|
+
throw new RangeError("Invalid argument");
|
|
154
|
+
const o = v[n[0]][t], i = k[n[0]][t], r = Math.floor(P(t) / 8), l = o - r % o, a = Math.floor(r / o), c = [], u = Q(i);
|
|
155
|
+
for (let f = 0, m = 0; f < o; f++) {
|
|
156
|
+
const M = e.slice(m, m + a - i + (f < l ? 0 : 1));
|
|
157
|
+
m += M.length;
|
|
158
|
+
const U = tt(M, u);
|
|
159
|
+
f < l && M.push(0), c.push(M.concat(U));
|
|
160
|
+
}
|
|
161
|
+
const h = [];
|
|
162
|
+
for (let f = 0; f < c[0].length; f++)
|
|
163
|
+
c.forEach((m, M) => {
|
|
164
|
+
(f !== a - i || M >= l) && h.push(m[f]);
|
|
165
|
+
});
|
|
166
|
+
return h;
|
|
167
|
+
}
|
|
168
|
+
// Draws the given sequence of 8-bit codewords (data and error correction) onto the entire
|
|
169
|
+
// data area of this QR Code. Function modules need to be marked off before this is called.
|
|
170
|
+
drawCodewords(e) {
|
|
171
|
+
if (e.length !== Math.floor(P(this.version) / 8))
|
|
172
|
+
throw new RangeError("Invalid argument");
|
|
173
|
+
let t = 0;
|
|
174
|
+
for (let n = this.size - 1; n >= 1; n -= 2) {
|
|
175
|
+
n === 6 && (n = 5);
|
|
176
|
+
for (let o = 0; o < this.size; o++)
|
|
177
|
+
for (let i = 0; i < 2; i++) {
|
|
178
|
+
const r = n - i, a = (n + 1 & 2) === 0 ? this.size - 1 - o : o;
|
|
179
|
+
!this.types[a][r] && t < e.length * 8 && (this.modules[a][r] = d(e[t >>> 3], 7 - (t & 7)), t++);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
// XORs the codeword modules in this QR Code with the given mask pattern.
|
|
184
|
+
// The function modules must be marked and the codeword bits must be drawn
|
|
185
|
+
// before masking. Due to the arithmetic of XOR, calling applyMask() with
|
|
186
|
+
// the same mask value a second time will undo the mask. A final well-formed
|
|
187
|
+
// QR Code needs exactly one (not zero, two, etc.) mask applied.
|
|
188
|
+
applyMask(e) {
|
|
189
|
+
if (e < 0 || e > 7)
|
|
190
|
+
throw new RangeError("Mask value out of range");
|
|
191
|
+
for (let t = 0; t < this.size; t++)
|
|
192
|
+
for (let n = 0; n < this.size; n++) {
|
|
193
|
+
let o;
|
|
194
|
+
switch (e) {
|
|
195
|
+
case 0:
|
|
196
|
+
o = (n + t) % 2 === 0;
|
|
197
|
+
break;
|
|
198
|
+
case 1:
|
|
199
|
+
o = t % 2 === 0;
|
|
200
|
+
break;
|
|
201
|
+
case 2:
|
|
202
|
+
o = n % 3 === 0;
|
|
203
|
+
break;
|
|
204
|
+
case 3:
|
|
205
|
+
o = (n + t) % 3 === 0;
|
|
206
|
+
break;
|
|
207
|
+
case 4:
|
|
208
|
+
o = (Math.floor(n / 3) + Math.floor(t / 2)) % 2 === 0;
|
|
209
|
+
break;
|
|
210
|
+
case 5:
|
|
211
|
+
o = n * t % 2 + n * t % 3 === 0;
|
|
212
|
+
break;
|
|
213
|
+
case 6:
|
|
214
|
+
o = (n * t % 2 + n * t % 3) % 2 === 0;
|
|
215
|
+
break;
|
|
216
|
+
case 7:
|
|
217
|
+
o = ((n + t) % 2 + n * t % 3) % 2 === 0;
|
|
218
|
+
break;
|
|
219
|
+
default:
|
|
220
|
+
throw new Error("Unreachable");
|
|
221
|
+
}
|
|
222
|
+
!this.types[t][n] && o && (this.modules[t][n] = !this.modules[t][n]);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
// Calculates and returns the penalty score based on state of this QR Code's current modules.
|
|
226
|
+
// This is used by the automatic mask choice algorithm to find the mask pattern that yields the lowest score.
|
|
227
|
+
getPenaltyScore() {
|
|
228
|
+
let e = 0;
|
|
229
|
+
for (let i = 0; i < this.size; i++) {
|
|
230
|
+
let r = !1, l = 0;
|
|
231
|
+
const a = [0, 0, 0, 0, 0, 0, 0];
|
|
232
|
+
for (let c = 0; c < this.size; c++)
|
|
233
|
+
this.modules[i][c] === r ? (l++, l === 5 ? e += C : l > 5 && e++) : (this.finderPenaltyAddHistory(l, a), r || (e += this.finderPenaltyCountPatterns(a) * E), r = this.modules[i][c], l = 1);
|
|
234
|
+
e += this.finderPenaltyTerminateAndCount(r, l, a) * E;
|
|
235
|
+
}
|
|
236
|
+
for (let i = 0; i < this.size; i++) {
|
|
237
|
+
let r = !1, l = 0;
|
|
238
|
+
const a = [0, 0, 0, 0, 0, 0, 0];
|
|
239
|
+
for (let c = 0; c < this.size; c++)
|
|
240
|
+
this.modules[c][i] === r ? (l++, l === 5 ? e += C : l > 5 && e++) : (this.finderPenaltyAddHistory(l, a), r || (e += this.finderPenaltyCountPatterns(a) * E), r = this.modules[c][i], l = 1);
|
|
241
|
+
e += this.finderPenaltyTerminateAndCount(r, l, a) * E;
|
|
242
|
+
}
|
|
243
|
+
for (let i = 0; i < this.size - 1; i++)
|
|
244
|
+
for (let r = 0; r < this.size - 1; r++) {
|
|
245
|
+
const l = this.modules[i][r];
|
|
246
|
+
l === this.modules[i][r + 1] && l === this.modules[i + 1][r] && l === this.modules[i + 1][r + 1] && (e += Y);
|
|
247
|
+
}
|
|
248
|
+
let t = 0;
|
|
249
|
+
for (const i of this.modules)
|
|
250
|
+
t = i.reduce((r, l) => r + (l ? 1 : 0), t);
|
|
251
|
+
const n = this.size * this.size, o = Math.ceil(Math.abs(t * 20 - n * 10) / n) - 1;
|
|
252
|
+
return e += o * G, e;
|
|
253
|
+
}
|
|
254
|
+
/* -- Private helper functions -- */
|
|
255
|
+
// Returns an ascending list of positions of alignment patterns for this version number.
|
|
256
|
+
// Each position is in the range [0,177), and are used on both the x and y axes.
|
|
257
|
+
// This could be implemented as lookup table of 40 variable-length lists of integers.
|
|
258
|
+
getAlignmentPatternPositions() {
|
|
259
|
+
if (this.version === 1)
|
|
260
|
+
return [];
|
|
261
|
+
{
|
|
262
|
+
const e = Math.floor(this.version / 7) + 2, t = this.version === 32 ? 26 : Math.ceil((this.version * 4 + 4) / (e * 2 - 2)) * 2, n = [6];
|
|
263
|
+
for (let o = this.size - 7; n.length < e; o -= t)
|
|
264
|
+
n.splice(1, 0, o);
|
|
265
|
+
return n;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
// Can only be called immediately after a light run is added, and
|
|
269
|
+
// returns either 0, 1, or 2. A helper function for getPenaltyScore().
|
|
270
|
+
finderPenaltyCountPatterns(e) {
|
|
271
|
+
const t = e[1], n = t > 0 && e[2] === t && e[3] === t * 3 && e[4] === t && e[5] === t;
|
|
272
|
+
return (n && e[0] >= t * 4 && e[6] >= t ? 1 : 0) + (n && e[6] >= t * 4 && e[0] >= t ? 1 : 0);
|
|
273
|
+
}
|
|
274
|
+
// Must be called at the end of a line (row or column) of modules. A helper function for getPenaltyScore().
|
|
275
|
+
finderPenaltyTerminateAndCount(e, t, n) {
|
|
276
|
+
return e && (this.finderPenaltyAddHistory(t, n), t = 0), t += this.size, this.finderPenaltyAddHistory(t, n), this.finderPenaltyCountPatterns(n);
|
|
277
|
+
}
|
|
278
|
+
// Pushes the given value to the front and drops the last value. A helper function for getPenaltyScore().
|
|
279
|
+
finderPenaltyAddHistory(e, t) {
|
|
280
|
+
t[0] === 0 && (e += this.size), t.pop(), t.unshift(e);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
function g(s, e, t) {
|
|
284
|
+
if (e < 0 || e > 31 || s >>> e)
|
|
285
|
+
throw new RangeError("Value out of range");
|
|
286
|
+
for (let n = e - 1; n >= 0; n--)
|
|
287
|
+
t.push(s >>> n & 1);
|
|
288
|
+
}
|
|
289
|
+
function d(s, e) {
|
|
290
|
+
return (s >>> e & 1) !== 0;
|
|
291
|
+
}
|
|
292
|
+
class R {
|
|
293
|
+
// Creates a new QR Code segment with the given attributes and data.
|
|
294
|
+
// The character count (numChars) must agree with the mode and the bit buffer length,
|
|
295
|
+
// but the constraint isn't checked. The given bit buffer is cloned and stored.
|
|
296
|
+
constructor(e, t, n) {
|
|
297
|
+
if (this.mode = e, this.numChars = t, this.bitData = n, t < 0)
|
|
298
|
+
throw new RangeError("Invalid argument");
|
|
299
|
+
this.bitData = n.slice();
|
|
300
|
+
}
|
|
301
|
+
/* -- Methods -- */
|
|
302
|
+
// Returns a new copy of the data bits of this segment.
|
|
303
|
+
getData() {
|
|
304
|
+
return this.bitData.slice();
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
const j = [1, 10, 12, 14], q = [2, 9, 11, 13], x = [4, 8, 16, 16];
|
|
308
|
+
function _(s, e) {
|
|
309
|
+
return s[Math.floor((e + 7) / 17) + 1];
|
|
310
|
+
}
|
|
311
|
+
function S(s) {
|
|
312
|
+
const e = [];
|
|
313
|
+
for (const t of s)
|
|
314
|
+
g(t, 8, e);
|
|
315
|
+
return new R(x, s.length, e);
|
|
316
|
+
}
|
|
317
|
+
function H(s) {
|
|
318
|
+
if (!O(s))
|
|
319
|
+
throw new RangeError("String contains non-numeric characters");
|
|
320
|
+
const e = [];
|
|
321
|
+
for (let t = 0; t < s.length; ) {
|
|
322
|
+
const n = Math.min(s.length - t, 3);
|
|
323
|
+
g(Number.parseInt(s.substring(t, t + n), 10), n * 3 + 1, e), t += n;
|
|
324
|
+
}
|
|
325
|
+
return new R(j, s.length, e);
|
|
326
|
+
}
|
|
327
|
+
function K(s) {
|
|
328
|
+
if (!$(s))
|
|
329
|
+
throw new RangeError("String contains unencodable characters in alphanumeric mode");
|
|
330
|
+
const e = [];
|
|
331
|
+
let t;
|
|
332
|
+
for (t = 0; t + 2 <= s.length; t += 2) {
|
|
333
|
+
let n = A.indexOf(s.charAt(t)) * 45;
|
|
334
|
+
n += A.indexOf(s.charAt(t + 1)), g(n, 11, e);
|
|
335
|
+
}
|
|
336
|
+
return t < s.length && g(A.indexOf(s.charAt(t)), 6, e), new R(q, s.length, e);
|
|
337
|
+
}
|
|
338
|
+
function W(s) {
|
|
339
|
+
return s === "" ? [] : O(s) ? [H(s)] : $(s) ? [K(s)] : [S(J(s))];
|
|
340
|
+
}
|
|
341
|
+
function O(s) {
|
|
342
|
+
return T.test(s);
|
|
343
|
+
}
|
|
344
|
+
function $(s) {
|
|
345
|
+
return V.test(s);
|
|
346
|
+
}
|
|
347
|
+
function Z(s, e) {
|
|
348
|
+
let t = 0;
|
|
349
|
+
for (const n of s) {
|
|
350
|
+
const o = _(n.mode, e);
|
|
351
|
+
if (n.numChars >= 1 << o)
|
|
352
|
+
return Number.POSITIVE_INFINITY;
|
|
353
|
+
t += 4 + o + n.bitData.length;
|
|
354
|
+
}
|
|
355
|
+
return t;
|
|
356
|
+
}
|
|
357
|
+
function J(s) {
|
|
358
|
+
s = encodeURI(s);
|
|
359
|
+
const e = [];
|
|
360
|
+
for (let t = 0; t < s.length; t++)
|
|
361
|
+
s.charAt(t) !== "%" ? e.push(s.charCodeAt(t)) : (e.push(Number.parseInt(s.substring(t + 1, t + 3), 16)), t += 2);
|
|
362
|
+
return e;
|
|
363
|
+
}
|
|
364
|
+
function P(s) {
|
|
365
|
+
if (s < z || s > y)
|
|
366
|
+
throw new RangeError("Version number out of range");
|
|
367
|
+
let e = (16 * s + 128) * s + 64;
|
|
368
|
+
if (s >= 2) {
|
|
369
|
+
const t = Math.floor(s / 7) + 2;
|
|
370
|
+
e -= (25 * t - 10) * t - 55, s >= 7 && (e -= 36);
|
|
371
|
+
}
|
|
372
|
+
return e;
|
|
373
|
+
}
|
|
374
|
+
function p(s, e) {
|
|
375
|
+
return Math.floor(P(s) / 8) - k[e[0]][s] * v[e[0]][s];
|
|
376
|
+
}
|
|
377
|
+
function Q(s) {
|
|
378
|
+
if (s < 1 || s > 255)
|
|
379
|
+
throw new RangeError("Degree out of range");
|
|
380
|
+
const e = [];
|
|
381
|
+
for (let n = 0; n < s - 1; n++)
|
|
382
|
+
e.push(0);
|
|
383
|
+
e.push(1);
|
|
384
|
+
let t = 1;
|
|
385
|
+
for (let n = 0; n < s; n++) {
|
|
386
|
+
for (let o = 0; o < e.length; o++)
|
|
387
|
+
e[o] = b(e[o], t), o + 1 < e.length && (e[o] ^= e[o + 1]);
|
|
388
|
+
t = b(t, 2);
|
|
389
|
+
}
|
|
390
|
+
return e;
|
|
391
|
+
}
|
|
392
|
+
function tt(s, e) {
|
|
393
|
+
const t = e.map((n) => 0);
|
|
394
|
+
for (const n of s) {
|
|
395
|
+
const o = n ^ t.shift();
|
|
396
|
+
t.push(0), e.forEach((i, r) => t[r] ^= b(i, o));
|
|
397
|
+
}
|
|
398
|
+
return t;
|
|
399
|
+
}
|
|
400
|
+
function b(s, e) {
|
|
401
|
+
if (s >>> 8 || e >>> 8)
|
|
402
|
+
throw new RangeError("Byte out of range");
|
|
403
|
+
let t = 0;
|
|
404
|
+
for (let n = 7; n >= 0; n--)
|
|
405
|
+
t = t << 1 ^ (t >>> 7) * 285, t ^= (e >>> n & 1) * s;
|
|
406
|
+
return t;
|
|
407
|
+
}
|
|
408
|
+
function et(s, e, t = 1, n = 40, o = -1, i = !0) {
|
|
409
|
+
if (!(z <= t && t <= n && n <= y) || o < -1 || o > 7)
|
|
410
|
+
throw new RangeError("Invalid value");
|
|
411
|
+
let r, l;
|
|
412
|
+
for (r = t; ; r++) {
|
|
413
|
+
const h = p(r, e) * 8, f = Z(s, r);
|
|
414
|
+
if (f <= h) {
|
|
415
|
+
l = f;
|
|
416
|
+
break;
|
|
417
|
+
}
|
|
418
|
+
if (r >= n)
|
|
419
|
+
throw new RangeError("Data too long");
|
|
420
|
+
}
|
|
421
|
+
for (const h of [B, N, I])
|
|
422
|
+
i && l <= p(r, h) * 8 && (e = h);
|
|
423
|
+
const a = [];
|
|
424
|
+
for (const h of s) {
|
|
425
|
+
g(h.mode[0], 4, a), g(h.numChars, _(h.mode, r), a);
|
|
426
|
+
for (const f of h.getData())
|
|
427
|
+
a.push(f);
|
|
428
|
+
}
|
|
429
|
+
const c = p(r, e) * 8;
|
|
430
|
+
g(0, Math.min(4, c - a.length), a), g(0, (8 - a.length % 8) % 8, a);
|
|
431
|
+
for (let h = 236; a.length < c; h ^= 253)
|
|
432
|
+
g(h, 8, a);
|
|
433
|
+
const u = Array.from({ length: Math.ceil(a.length / 8) }, () => 0);
|
|
434
|
+
return a.forEach((h, f) => u[f >>> 3] |= h << 7 - (f & 7)), new X(r, e, u, o);
|
|
435
|
+
}
|
|
436
|
+
function nt(s, e) {
|
|
437
|
+
const {
|
|
438
|
+
ecc: t = "L",
|
|
439
|
+
boostEcc: n = !1,
|
|
440
|
+
minVersion: o = 1,
|
|
441
|
+
maxVersion: i = 40,
|
|
442
|
+
maskPattern: r = -1,
|
|
443
|
+
border: l = 1
|
|
444
|
+
} = e || {}, a = typeof s == "string" ? W(s) : Array.isArray(s) ? [S(s)] : void 0;
|
|
445
|
+
if (!a)
|
|
446
|
+
throw new Error(`uqr only supports encoding string and binary data, but got: ${typeof s}`);
|
|
447
|
+
const c = et(
|
|
448
|
+
a,
|
|
449
|
+
D[t],
|
|
450
|
+
o,
|
|
451
|
+
i,
|
|
452
|
+
r,
|
|
453
|
+
n
|
|
454
|
+
), u = st({
|
|
455
|
+
version: c.version,
|
|
456
|
+
maskPattern: c.mask,
|
|
457
|
+
size: c.size,
|
|
458
|
+
data: c.modules,
|
|
459
|
+
types: c.types
|
|
460
|
+
}, l);
|
|
461
|
+
return e?.invert && (u.data = u.data.map((h) => h.map((f) => !f))), e?.onEncoded?.(u), u;
|
|
462
|
+
}
|
|
463
|
+
function st(s, e = 1) {
|
|
464
|
+
if (!e)
|
|
465
|
+
return s;
|
|
466
|
+
const { size: t } = s, n = t + e * 2;
|
|
467
|
+
s.size = n, s.data.forEach((i) => {
|
|
468
|
+
for (let r = 0; r < e; r++)
|
|
469
|
+
i.unshift(!1), i.push(!1);
|
|
470
|
+
});
|
|
471
|
+
for (let i = 0; i < e; i++)
|
|
472
|
+
s.data.unshift(Array.from({ length: n }, (r) => !1)), s.data.push(Array.from({ length: n }, (r) => !1));
|
|
473
|
+
const o = w.Border;
|
|
474
|
+
s.types.forEach((i) => {
|
|
475
|
+
for (let r = 0; r < e; r++)
|
|
476
|
+
i.unshift(o), i.push(o);
|
|
477
|
+
});
|
|
478
|
+
for (let i = 0; i < e; i++)
|
|
479
|
+
s.types.unshift(Array.from({ length: n }, (r) => o)), s.types.push(Array.from({ length: n }, (r) => o));
|
|
480
|
+
return s;
|
|
481
|
+
}
|
|
482
|
+
function F(s) {
|
|
483
|
+
return s.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
484
|
+
}
|
|
485
|
+
function ot(s, e = {}) {
|
|
486
|
+
const t = nt(s, e), {
|
|
487
|
+
pixelSize: n = 10,
|
|
488
|
+
whiteColor: o = "white",
|
|
489
|
+
blackColor: i = "black"
|
|
490
|
+
} = e, r = t.size * n, l = t.size * n;
|
|
491
|
+
let a = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${l} ${r}">`;
|
|
492
|
+
const c = [];
|
|
493
|
+
for (let u = 0; u < t.size; u++)
|
|
494
|
+
for (let h = 0; h < t.size; h++) {
|
|
495
|
+
const f = h * n, m = u * n;
|
|
496
|
+
t.data[u][h] && c.push(`M${f},${m}h${n}v${n}h-${n}z`);
|
|
497
|
+
}
|
|
498
|
+
return a += `<rect fill="${F(o)}" width="${l}" height="${r}"/>`, a += `<path fill="${F(i)}" d="${c.join("")}"/>`, a += "</svg>", a;
|
|
499
|
+
}
|
|
500
|
+
export {
|
|
501
|
+
w as QrCodeDataType,
|
|
502
|
+
nt as encode,
|
|
503
|
+
ot as renderSVG
|
|
504
|
+
};
|
package/dist/plugin.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audio.d.ts","sourceRoot":"","sources":["../../src/remote/audio.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"audio.d.ts","sourceRoot":"","sources":["../../src/remote/audio.ts"],"names":[],"mappings":"AAWA,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAExD;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAMjE;AAED,MAAM,MAAM,6BAA6B,GAAG;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,wBAAsB,wBAAwB,CAC5C,OAAO,EAAE,6BAA6B,EACtC,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,OAAO,CAAC,CAWlB;AAED,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,MAAM,EACZ,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC,CA6B7C"}
|
package/dist/remote/audio.js
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
+
import { sanitizeSpokenText as T } from "@inupedia/spotlight-protocol";
|
|
1
2
|
import { withRequestTimeout as s } from "../utils/requestTimeout.js";
|
|
2
|
-
import { getSpotlightServerBase as
|
|
3
|
-
import { postSpotlightJson as
|
|
4
|
-
const
|
|
5
|
-
function
|
|
6
|
-
return t
|
|
3
|
+
import { getSpotlightServerBase as u, buildSpotlightJsonHeaders as f } from "./httpConfig.js";
|
|
4
|
+
import { postSpotlightJson as p } from "./serverJson.js";
|
|
5
|
+
const S = 3e4, h = 45e3;
|
|
6
|
+
function l(t) {
|
|
7
|
+
return T(t).slice(0, 3e3);
|
|
7
8
|
}
|
|
8
|
-
function
|
|
9
|
+
function x(t) {
|
|
9
10
|
if (typeof t == "string") return t.trim();
|
|
10
11
|
if (!t || typeof t != "object") return "";
|
|
11
12
|
const e = t.text;
|
|
12
13
|
return typeof e == "string" ? e.trim() : "";
|
|
13
14
|
}
|
|
14
|
-
async function
|
|
15
|
-
const r = s(
|
|
15
|
+
async function E(t, e) {
|
|
16
|
+
const r = s(S, e);
|
|
16
17
|
try {
|
|
17
|
-
return await
|
|
18
|
+
return await p(
|
|
18
19
|
"/v1/audio/transcriptions",
|
|
19
20
|
t,
|
|
20
21
|
r.signal
|
|
@@ -23,15 +24,15 @@ async function b(t, e) {
|
|
|
23
24
|
r.cleanup();
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
|
-
async function
|
|
27
|
-
const r =
|
|
27
|
+
async function y(t, e) {
|
|
28
|
+
const r = l(t);
|
|
28
29
|
if (!r)
|
|
29
30
|
throw new Error("TTS 输入为空。");
|
|
30
|
-
const i = s(
|
|
31
|
+
const i = s(h, e);
|
|
31
32
|
try {
|
|
32
|
-
const c =
|
|
33
|
+
const c = u(), n = await fetch(`${c}/v1/audio/speech`, {
|
|
33
34
|
method: "POST",
|
|
34
|
-
headers:
|
|
35
|
+
headers: f(),
|
|
35
36
|
body: JSON.stringify({ input: r }),
|
|
36
37
|
signal: i.signal
|
|
37
38
|
});
|
|
@@ -48,8 +49,8 @@ async function E(t, e) {
|
|
|
48
49
|
}
|
|
49
50
|
}
|
|
50
51
|
export {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
x as extractTranscriptionText,
|
|
53
|
+
l as normalizeSpeakText,
|
|
54
|
+
y as spotlightSynthesizeSpeech,
|
|
55
|
+
E as spotlightTranscribeAudio
|
|
55
56
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runPipeline.d.ts","sourceRoot":"","sources":["../../src/remote/runPipeline.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAGlB,gBAAgB,EACjB,MAAM,8BAA8B,CAAC;AActC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAE7D,O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