mn-video-player 1.2.7 → 1.3.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.
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/mn-video-player.es.js +1135 -1053
- package/dist/mn-video-player.es.js.map +1 -1
- package/dist/mn-video-player.umd.js +5 -5
- package/dist/mn-video-player.umd.js.map +1 -1
- package/dist/{mn-worker-u8K6bNRK.js → mn-worker-CzEeT8gY.js} +4 -4
- package/dist/{mn-worker-u8K6bNRK.js.map → mn-worker-CzEeT8gY.js.map} +1 -1
- package/package.json +1 -1
- package/readme.md +16 -2
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
function
|
|
2
|
-
this.gl =
|
|
1
|
+
function lt(D) {
|
|
2
|
+
this.gl = D, this.texture = D.createTexture(), D.bindTexture(D.TEXTURE_2D, this.texture), D.texParameteri(D.TEXTURE_2D, D.TEXTURE_MAG_FILTER, D.LINEAR), D.texParameteri(D.TEXTURE_2D, D.TEXTURE_MIN_FILTER, D.LINEAR), D.texParameteri(D.TEXTURE_2D, D.TEXTURE_WRAP_S, D.CLAMP_TO_EDGE), D.texParameteri(D.TEXTURE_2D, D.TEXTURE_WRAP_T, D.CLAMP_TO_EDGE);
|
|
3
3
|
}
|
|
4
|
-
|
|
4
|
+
lt.prototype.bind = function(D, a, p) {
|
|
5
5
|
var m = this.gl;
|
|
6
|
-
m.activeTexture([m.TEXTURE0, m.TEXTURE1, m.TEXTURE2][
|
|
6
|
+
m.activeTexture([m.TEXTURE0, m.TEXTURE1, m.TEXTURE2][D]), m.bindTexture(m.TEXTURE_2D, this.texture), m.uniform1i(m.getUniformLocation(a, p), D);
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
lt.prototype.fill = function(D, a, p) {
|
|
9
9
|
var m = this.gl;
|
|
10
|
-
m.bindTexture(m.TEXTURE_2D, this.texture), m.texImage2D(m.TEXTURE_2D, 0, m.LUMINANCE,
|
|
10
|
+
m.bindTexture(m.TEXTURE_2D, this.texture), m.texImage2D(m.TEXTURE_2D, 0, m.LUMINANCE, D, a, 0, m.LUMINANCE, m.UNSIGNED_BYTE, p);
|
|
11
11
|
};
|
|
12
|
-
function
|
|
13
|
-
this.canvas =
|
|
12
|
+
function Qe(D, a) {
|
|
13
|
+
this.canvas = D, console.log("this.canvas", this.canvas), this.gl = D.getContext("webgl") || D.getContext("experimental-webgl"), this.initGL(a);
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
Qe.prototype.initGL = function(D) {
|
|
16
16
|
if (!this.gl) {
|
|
17
17
|
console.log("[ER] WebGL not supported.");
|
|
18
18
|
return;
|
|
@@ -30,7 +30,7 @@ Je.prototype.initGL = function(R) {
|
|
|
30
30
|
].join(`
|
|
31
31
|
`), k = a.createShader(a.VERTEX_SHADER);
|
|
32
32
|
a.shaderSource(k, m), a.compileShader(k);
|
|
33
|
-
var
|
|
33
|
+
var S = [
|
|
34
34
|
"precision highp float;",
|
|
35
35
|
"varying lowp vec2 vTextureCoord;",
|
|
36
36
|
"uniform sampler2D YTexture;",
|
|
@@ -47,38 +47,37 @@ Je.prototype.initGL = function(R) {
|
|
|
47
47
|
" gl_FragColor = vec4(texture2D(YTexture, vTextureCoord).x, texture2D(UTexture, vTextureCoord).x, texture2D(VTexture, vTextureCoord).x, 1) * YUV2RGB;",
|
|
48
48
|
"}"
|
|
49
49
|
].join(`
|
|
50
|
-
`),
|
|
51
|
-
a.shaderSource(
|
|
52
|
-
var
|
|
53
|
-
a.enableVertexAttribArray(
|
|
54
|
-
var
|
|
55
|
-
a.enableVertexAttribArray(
|
|
56
|
-
var
|
|
57
|
-
a.bindBuffer(a.ARRAY_BUFFER,
|
|
58
|
-
var
|
|
59
|
-
a.bindBuffer(a.ARRAY_BUFFER,
|
|
50
|
+
`), N = a.createShader(a.FRAGMENT_SHADER);
|
|
51
|
+
a.shaderSource(N, S), a.compileShader(N), a.attachShader(p, k), a.attachShader(p, N), a.linkProgram(p), a.useProgram(p), a.getProgramParameter(p, a.LINK_STATUS) || console.log("[ER] Shader link failed.");
|
|
52
|
+
var _ = a.getAttribLocation(p, "aVertexPosition");
|
|
53
|
+
a.enableVertexAttribArray(_);
|
|
54
|
+
var M = a.getAttribLocation(p, "aTextureCoord");
|
|
55
|
+
a.enableVertexAttribArray(M);
|
|
56
|
+
var G = a.createBuffer();
|
|
57
|
+
a.bindBuffer(a.ARRAY_BUFFER, G), a.bufferData(a.ARRAY_BUFFER, new Float32Array([1, 1, 0, -1, 1, 0, 1, -1, 0, -1, -1, 0]), a.STATIC_DRAW), a.vertexAttribPointer(_, 3, a.FLOAT, !1, 0, 0);
|
|
58
|
+
var se = a.createBuffer();
|
|
59
|
+
a.bindBuffer(a.ARRAY_BUFFER, se), a.bufferData(a.ARRAY_BUFFER, new Float32Array([1, 0, 0, 0, 1, 1, 0, 1]), a.STATIC_DRAW), a.vertexAttribPointer(M, 2, a.FLOAT, !1, 0, 0), a.y = new lt(a), a.u = new lt(a), a.v = new lt(a), a.y.bind(0, p, "YTexture"), a.u.bind(1, p, "UTexture"), a.v.bind(2, p, "VTexture");
|
|
60
60
|
};
|
|
61
|
-
|
|
61
|
+
Qe.prototype.renderFrame = function(D, a, p, m, k) {
|
|
62
62
|
if (!this.gl) {
|
|
63
63
|
console.log("[ER] Render frame failed due to WebGL not supported.");
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
|
-
var
|
|
67
|
-
|
|
66
|
+
var S = this.gl;
|
|
67
|
+
S.viewport(0, 0, S.canvas.width, S.canvas.height), S.clearColor(0, 0, 0, 0), S.clear(S.COLOR_BUFFER_BIT), S.y.fill(a, p, D.subarray(0, m)), S.u.fill(a >> 1, p >> 1, D.subarray(m, m + k)), S.v.fill(a >> 1, p >> 1, D.subarray(m + k, D.length)), S.drawArrays(S.TRIANGLE_STRIP, 0, 4);
|
|
68
68
|
};
|
|
69
|
-
|
|
70
|
-
var
|
|
71
|
-
|
|
69
|
+
Qe.prototype.fullscreen = function() {
|
|
70
|
+
var D = this.canvas;
|
|
71
|
+
D.RequestFullScreen ? D.RequestFullScreen() : D.webkitRequestFullScreen ? D.webkitRequestFullScreen() : D.mozRequestFullScreen ? D.mozRequestFullScreen() : D.msRequestFullscreen ? D.msRequestFullscreen() : alert("This browser doesn't supporter fullscreen");
|
|
72
72
|
};
|
|
73
|
-
|
|
73
|
+
Qe.prototype.exitfullscreen = function() {
|
|
74
74
|
document.exitFullscreen ? document.exitFullscreen() : document.webkitExitFullscreen ? document.webkitExitFullscreen() : document.mozCancelFullScreen ? document.mozCancelFullScreen() : document.msExitFullscreen ? document.msExitFullscreen() : alert("Exit fullscreen doesn't work");
|
|
75
75
|
};
|
|
76
|
-
|
|
77
|
-
var
|
|
78
|
-
|
|
76
|
+
Qe.prototype.stop = function() {
|
|
77
|
+
var D = this.gl;
|
|
78
|
+
D && D.getExtension("WEBGL_lose_context").loseContext();
|
|
79
79
|
};
|
|
80
80
|
class Qn {
|
|
81
|
-
cacheDataList = [];
|
|
82
81
|
constructor(a) {
|
|
83
82
|
this.init(a);
|
|
84
83
|
}
|
|
@@ -89,11 +88,14 @@ class Qn {
|
|
|
89
88
|
sampleRate: 8e3,
|
|
90
89
|
flushingTime: 1e3
|
|
91
90
|
};
|
|
92
|
-
this.option = Object.assign({}, p, a), this.samples = new Float32Array(), this.
|
|
91
|
+
this.option = Object.assign({}, p, a), this.samples = new Float32Array(), this.playingBuffers = [], this.interval = setInterval(
|
|
92
|
+
this.flush.bind(this),
|
|
93
|
+
this.option.flushingTime
|
|
94
|
+
), this.maxValue = this.getMaxValue(), this.typedArray = this.getTypedArray(), this.createContext(), this.baseTime = null, this.baseAudioTime = null, this.playbackRate = 1, this.defaultVolume = 0;
|
|
93
95
|
}
|
|
94
96
|
// 设置基点时间
|
|
95
97
|
setBaseTime(a) {
|
|
96
|
-
this.baseTime = a, this.baseAudioTime = this.audioCtx.currentTime
|
|
98
|
+
this.baseTime = a, this.baseAudioTime = this.audioCtx.currentTime;
|
|
97
99
|
}
|
|
98
100
|
getMaxValue() {
|
|
99
101
|
const a = {
|
|
@@ -118,29 +120,66 @@ class Qn {
|
|
|
118
120
|
}
|
|
119
121
|
/* 倍速 */
|
|
120
122
|
speed(a) {
|
|
121
|
-
if (
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
const p = this.audioCtx.currentTime - this.startTime;
|
|
127
|
-
this.startTime = this.audioCtx.currentTime + p / a;
|
|
128
|
-
}
|
|
123
|
+
if (a < 0.1 || a > 32)
|
|
124
|
+
return;
|
|
125
|
+
a > 2 ? (a = 1, this.volume(0, !1)) : this.volume(this.defaultVolume), this.playbackRate = a;
|
|
126
|
+
const p = this.playingBuffers[0];
|
|
127
|
+
p && (p.bufferSource.playbackRate.value = this.playbackRate);
|
|
129
128
|
}
|
|
130
129
|
isTypedArray(a) {
|
|
131
130
|
return a.byteLength && a.buffer && a.buffer.constructor == ArrayBuffer;
|
|
132
131
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
a
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
132
|
+
getNowPlayStamp() {
|
|
133
|
+
const a = this.playingBuffers[0];
|
|
134
|
+
if (a && a.startTimeStamp) {
|
|
135
|
+
let p = this.audioCtx.currentTime - a.ctxStartTimeStamp;
|
|
136
|
+
return parseInt(+a.startTimeStamp + p * 1e3);
|
|
137
|
+
}
|
|
138
|
+
return -1;
|
|
139
|
+
}
|
|
140
|
+
offsetAudio(a = 0) {
|
|
141
|
+
const p = this.getNowPlayStamp();
|
|
142
|
+
return p == -1 || a == 0 ? 0 : p - a;
|
|
143
|
+
}
|
|
144
|
+
/* 重置音频如果音频落后的话进行重置 */
|
|
145
|
+
resetAudioByTimeStamp(a = 0) {
|
|
146
|
+
if (a != 0)
|
|
147
|
+
for (; ; )
|
|
148
|
+
if (this.playingBuffers.length > 0) {
|
|
149
|
+
let p = this.playingBuffers[0];
|
|
150
|
+
if (console.log("this.playingBuffers", this.playingBuffers), console.log("now.startTimeStamp", +p.startTimeStamp, a), +p.startTimeStamp > a)
|
|
151
|
+
return console.log("视频落后, 没有对应的音频"), !1;
|
|
152
|
+
if (p.startTimeStamp + p.buffer.duration * 1e3 < a) {
|
|
153
|
+
this.playingBuffers.shift();
|
|
154
|
+
try {
|
|
155
|
+
p.bufferSource.onended = null, p.bufferSource.stop(), p.bufferSource.disconnect();
|
|
156
|
+
} catch {
|
|
157
|
+
p.bufferSource.disconnect();
|
|
158
|
+
}
|
|
159
|
+
continue;
|
|
160
|
+
} else {
|
|
161
|
+
let k = a - p.startTimeStamp;
|
|
162
|
+
try {
|
|
163
|
+
p.bufferSource.onended = null, p.bufferSource.stop();
|
|
164
|
+
} catch {
|
|
165
|
+
p.bufferSource.disconnect();
|
|
166
|
+
}
|
|
167
|
+
const S = this.audioCtx.createBufferSource();
|
|
168
|
+
return S.buffer = p.buffer, S.connect(this.gainNode), p.bufferSource = S, p.bufferSource.start(0, k / 1e3), p.bufferSource.playbackRate.value = this.playbackRate, p.ctxStartTimeStamp = this.audioCtx.currentTime - k / 1e3, p.bufferSource.onended = () => {
|
|
169
|
+
this.playingBuffers.shift();
|
|
170
|
+
const N = this.playingBuffers[0];
|
|
171
|
+
N && (N.bufferSource.playbackRate.value = this.playbackRate, N.bufferSource.start(), N.ctxStartTimeStamp = this.audioCtx.currentTime);
|
|
172
|
+
}, !0;
|
|
173
|
+
}
|
|
174
|
+
} else
|
|
175
|
+
return !1;
|
|
176
|
+
}
|
|
177
|
+
feed(a, p) {
|
|
178
|
+
if (this.isTypedArray(a)) {
|
|
179
|
+
a = this.getFormatedValue(a), this.samples.length == 0 && (this.samplesTimeStamp = p);
|
|
180
|
+
var m = new Float32Array(this.samples.length + a.length);
|
|
181
|
+
m.set(this.samples, 0), m.set(a, this.samples.length), this.samples = m;
|
|
182
|
+
}
|
|
144
183
|
}
|
|
145
184
|
getFormatedValue(a) {
|
|
146
185
|
const p = new this.typedArray(a.buffer), m = new Float32Array(p.length);
|
|
@@ -148,84 +187,106 @@ class Qn {
|
|
|
148
187
|
m[k] = p[k] / this.maxValue;
|
|
149
188
|
return m;
|
|
150
189
|
}
|
|
151
|
-
volume(a) {
|
|
152
|
-
this.gainNode.gain.value = a;
|
|
190
|
+
volume(a, p = !0) {
|
|
191
|
+
p && (this.defaultVolume = a), this.gainNode.gain.value = a;
|
|
153
192
|
}
|
|
154
193
|
destroy() {
|
|
155
194
|
this.interval && clearInterval(this.interval), this.playingBuffers.forEach((a) => {
|
|
156
|
-
|
|
157
|
-
|
|
195
|
+
try {
|
|
196
|
+
a.bufferSource.stop(), a.bufferSource.disconnect();
|
|
197
|
+
} catch {
|
|
198
|
+
}
|
|
199
|
+
}), this.playingBuffers = [], this.samples = new Float32Array(), this.samplesTimeStamp = 0, this.audioCtx && (this.audioCtx.close(), this.audioCtx = null);
|
|
158
200
|
}
|
|
159
201
|
flush() {
|
|
160
|
-
if (!this.
|
|
161
|
-
const a = this.audioCtx.
|
|
162
|
-
(L) => L.timestamp === null || L.timestamp <= a + 0.1
|
|
163
|
-
);
|
|
164
|
-
if (!p.length) return;
|
|
165
|
-
const m = p.reduce((L, Le) => L + Le.data.length, 0), k = new Float32Array(m);
|
|
166
|
-
let w = 0;
|
|
167
|
-
for (const L of p)
|
|
168
|
-
k.set(L.data, w), w += L.data.length;
|
|
169
|
-
const D = this.audioCtx.createBufferSource(), $ = k.length / this.option.channels, q = this.audioCtx.createBuffer(
|
|
202
|
+
if (!this.samples?.length) return;
|
|
203
|
+
const a = this.audioCtx.createBufferSource(), p = this.samples.length / this.option.channels, m = this.audioCtx.createBuffer(
|
|
170
204
|
this.option.channels,
|
|
171
|
-
|
|
205
|
+
p,
|
|
172
206
|
this.option.sampleRate
|
|
173
207
|
);
|
|
174
|
-
let
|
|
175
|
-
for (
|
|
176
|
-
for (
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
startTime: M,
|
|
184
|
-
endTime: M + q.duration / this.playbackRate,
|
|
185
|
-
rawData: p
|
|
208
|
+
let k, S, N, _, M;
|
|
209
|
+
for (S = 0; S < this.option.channels; S++)
|
|
210
|
+
for (k = m.getChannelData(S), N = S, M = 50, _ = 0; _ < p; _++)
|
|
211
|
+
k[_] = this.samples[N], _ < 50 && (k[_] = k[_] * _ / 50), _ >= p - 51 && (k[_] = k[_] * M-- / 50), N += this.option.channels;
|
|
212
|
+
a.buffer = m, a.connect(this.gainNode);
|
|
213
|
+
const G = {
|
|
214
|
+
bufferSource: a,
|
|
215
|
+
buffer: m,
|
|
216
|
+
startTimeStamp: +this.samplesTimeStamp
|
|
186
217
|
};
|
|
187
|
-
this.playingBuffers.push(
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
(L, Le) => this.cacheDataList.findIndex(
|
|
193
|
-
(Ke) => Ke.data === L.data && Ke.timestamp === L.timestamp
|
|
194
|
-
)
|
|
195
|
-
));
|
|
196
|
-
this.cacheDataList = this.cacheDataList.filter(
|
|
197
|
-
(L, Le) => !Ne.has(Le)
|
|
198
|
-
);
|
|
218
|
+
this.playingBuffers.push(G), this.playingBuffers.length == 1 && (a.start(), a.playbackRate.value = this.playbackRate, G.ctxStartTimeStamp = this.audioCtx.currentTime), a.onended = () => {
|
|
219
|
+
this.playingBuffers.shift();
|
|
220
|
+
const se = this.playingBuffers[0];
|
|
221
|
+
se && (se.bufferSource.playbackRate.value = this.playbackRate, se.bufferSource.start(), se.ctxStartTimeStamp = this.audioCtx.currentTime);
|
|
222
|
+
}, this.samples = new Float32Array();
|
|
199
223
|
}
|
|
200
224
|
getTimestamp() {
|
|
201
225
|
return this.audioCtx ? this.audioCtx.currentTime : 0;
|
|
202
226
|
}
|
|
203
|
-
play(
|
|
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
|
-
|
|
227
|
+
// play(data) {
|
|
228
|
+
// if (!this.isTypedArray(data)) {
|
|
229
|
+
// return;
|
|
230
|
+
// }
|
|
231
|
+
// data = this.getFormatedValue(data);
|
|
232
|
+
// if (!data.length) {
|
|
233
|
+
// return;
|
|
234
|
+
// }
|
|
235
|
+
// const bufferSource = this.audioCtx.createBufferSource();
|
|
236
|
+
// const length = data.length / this.option.channels;
|
|
237
|
+
// const audioBuffer = this.audioCtx.createBuffer(
|
|
238
|
+
// this.option.channels,
|
|
239
|
+
// length,
|
|
240
|
+
// this.option.sampleRate,
|
|
241
|
+
// );
|
|
242
|
+
// let audioData;
|
|
243
|
+
// let channel;
|
|
244
|
+
// let offset;
|
|
245
|
+
// let i;
|
|
246
|
+
// let decrement;
|
|
247
|
+
// for (channel = 0; channel < this.option.channels; channel++) {
|
|
248
|
+
// audioData = audioBuffer.getChannelData(channel);
|
|
249
|
+
// offset = channel;
|
|
250
|
+
// decrement = 50;
|
|
251
|
+
// for (i = 0; i < length; i++) {
|
|
252
|
+
// audioData[i] = data[offset];
|
|
253
|
+
// /* fadein */
|
|
254
|
+
// if (i < 50) {
|
|
255
|
+
// audioData[i] = (audioData[i] * i) / 50;
|
|
256
|
+
// }
|
|
257
|
+
// /* fadeout*/
|
|
258
|
+
// if (i >= length - 51) {
|
|
259
|
+
// audioData[i] = (audioData[i] * decrement--) / 50;
|
|
260
|
+
// }
|
|
261
|
+
// offset += this.option.channels;
|
|
262
|
+
// }
|
|
263
|
+
// }
|
|
264
|
+
// bufferSource.buffer = audioBuffer;
|
|
265
|
+
// bufferSource.connect(this.gainNode);
|
|
266
|
+
// // 记录正在播放的buffer信息
|
|
267
|
+
// const bufferInfo = {
|
|
268
|
+
// bufferSource: bufferSource,
|
|
269
|
+
// buffer: audioBuffer,
|
|
270
|
+
// startTimeStamp: this.samplesTimeStamp,
|
|
271
|
+
// };
|
|
272
|
+
// this.playingBuffers.push(bufferInfo);
|
|
273
|
+
// // 启动播放
|
|
274
|
+
// bufferSource.start();
|
|
275
|
+
// bufferSource.playbackRate.value = this.playbackRate;
|
|
276
|
+
// bufferInfo.ctxStartTimeStamp = this.audioCtx.currentTime;
|
|
277
|
+
// console.log("开始第一个",bufferInfo)
|
|
278
|
+
// // 添加结束事件监听器,清理已播放的buffer
|
|
279
|
+
// bufferSource.onended = () => {
|
|
280
|
+
// console.log(" this.playingBuffers", this.playingBuffers);
|
|
281
|
+
// this.playingBuffers.shift();
|
|
282
|
+
// const next = this.playingBuffers[0];
|
|
283
|
+
// if (next) {
|
|
284
|
+
// next.bufferSource.playbackRate.value = this.playbackRate;
|
|
285
|
+
// next.bufferSource.start();
|
|
286
|
+
// next.ctxStartTimeStamp = this.audioCtx.currentTime;
|
|
287
|
+
// }
|
|
288
|
+
// };
|
|
289
|
+
// }
|
|
229
290
|
pause() {
|
|
230
291
|
this.audioCtx.state === "running" && this.audioCtx.suspend();
|
|
231
292
|
}
|
|
@@ -233,8 +294,8 @@ class Qn {
|
|
|
233
294
|
this.audioCtx.state === "suspended" && this.audioCtx.resume();
|
|
234
295
|
}
|
|
235
296
|
}
|
|
236
|
-
const Jn = 2, Kn = 1, Zn = 3, er = 4, tr = 5, ir = 6, nr = 7, rr = 9, sr = 10, or = 11, ar = 12, ur = 13, fr =
|
|
237
|
-
class
|
|
297
|
+
const Jn = 2, Kn = 1, Zn = 3, er = 4, tr = 5, ir = 6, nr = 7, rr = 9, sr = 10, or = 11, ar = 12, ur = 13, fr = 14, lr = 2, cr = 4, dr = 5, hr = 6, pr = 7, gr = 8, yr = 13, mr = 14, vr = 15, xr = 16;
|
|
298
|
+
class br {
|
|
238
299
|
constructor(a) {
|
|
239
300
|
this.module = a;
|
|
240
301
|
}
|
|
@@ -242,20 +303,27 @@ class xr {
|
|
|
242
303
|
console.log("[" + this.currentTimeStr() + "][" + this.module + "]" + a);
|
|
243
304
|
}
|
|
244
305
|
logError(a) {
|
|
245
|
-
console.log(
|
|
306
|
+
console.log(
|
|
307
|
+
"[" + this.currentTimeStr() + "][" + this.module + "][ER] " + a
|
|
308
|
+
);
|
|
246
309
|
}
|
|
247
310
|
logInfo(a) {
|
|
248
|
-
console.log(
|
|
311
|
+
console.log(
|
|
312
|
+
"[" + this.currentTimeStr() + "][" + this.module + "][IF] " + a
|
|
313
|
+
);
|
|
249
314
|
}
|
|
250
315
|
logDebug(a) {
|
|
251
|
-
console.log(
|
|
316
|
+
console.log(
|
|
317
|
+
"[" + this.currentTimeStr() + "][" + this.module + "][DT] " + a
|
|
318
|
+
);
|
|
252
319
|
}
|
|
253
320
|
currentTimeStr() {
|
|
254
|
-
const a = new Date(Date.now()), p = a.getFullYear(), m = a.getMonth() + 1, k = a.getDate(),
|
|
255
|
-
return p + "-" + m + "-" + k + " " +
|
|
321
|
+
const a = new Date(Date.now()), p = a.getFullYear(), m = a.getMonth() + 1, k = a.getDate(), S = a.getHours(), N = a.getMinutes(), _ = a.getSeconds(), M = a.getMilliseconds();
|
|
322
|
+
return p + "-" + m + "-" + k + " " + S + ":" + N + ":" + _ + ":" + M;
|
|
256
323
|
}
|
|
257
324
|
}
|
|
258
|
-
const
|
|
325
|
+
const X = {
|
|
326
|
+
kVideoAudioOffset: fr,
|
|
259
327
|
kMediaSpeak: Jn,
|
|
260
328
|
kOpenDecoderReq: Kn,
|
|
261
329
|
kResumeDecodingReq: Zn,
|
|
@@ -268,28 +336,28 @@ const G = {
|
|
|
268
336
|
kRecorderSpeakReq: or,
|
|
269
337
|
kRecorderTalkReq: ar,
|
|
270
338
|
kReplayReq: ur,
|
|
271
|
-
kOpenDecoderRsp:
|
|
272
|
-
kVideoReady:
|
|
273
|
-
kVideoFrame:
|
|
274
|
-
kAudioFrame:
|
|
275
|
-
kStringFrame:
|
|
276
|
-
kNetSpeedFrame:
|
|
277
|
-
kSocketErrorRsp:
|
|
278
|
-
kSocketCloseRsp:
|
|
279
|
-
kReplaySpeed:
|
|
280
|
-
kVideoFrameOrigin:
|
|
281
|
-
Logger:
|
|
282
|
-
},
|
|
283
|
-
function
|
|
339
|
+
kOpenDecoderRsp: lr,
|
|
340
|
+
kVideoReady: cr,
|
|
341
|
+
kVideoFrame: dr,
|
|
342
|
+
kAudioFrame: hr,
|
|
343
|
+
kStringFrame: pr,
|
|
344
|
+
kNetSpeedFrame: gr,
|
|
345
|
+
kSocketErrorRsp: yr,
|
|
346
|
+
kSocketCloseRsp: mr,
|
|
347
|
+
kReplaySpeed: vr,
|
|
348
|
+
kVideoFrameOrigin: xr,
|
|
349
|
+
Logger: br
|
|
350
|
+
}, Tr = "data:image/svg+xml,%3c!--%20By%20Sam%20Herbert%20(@sherb),%20for%20everyone.%20More%20@%20http://goo.gl/7AJzbL%20--%3e%3c!--%20Todo:%20add%20easing%20--%3e%3csvg%20width='57'%20height='57'%20viewBox='0%200%2057%2057'%20xmlns='http://www.w3.org/2000/svg'%20stroke='%23fff'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cg%20transform='translate(1%201)'%20stroke-width='2'%3e%3ccircle%20cx='5'%20cy='50'%20r='5'%3e%3canimate%20attributeName='cy'%20begin='0s'%20dur='2.2s'%20values='50;5;50;50'%20calcMode='linear'%20repeatCount='indefinite'%20/%3e%3canimate%20attributeName='cx'%20begin='0s'%20dur='2.2s'%20values='5;27;49;5'%20calcMode='linear'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3ccircle%20cx='27'%20cy='5'%20r='5'%3e%3canimate%20attributeName='cy'%20begin='0s'%20dur='2.2s'%20from='5'%20to='5'%20values='5;50;50;5'%20calcMode='linear'%20repeatCount='indefinite'%20/%3e%3canimate%20attributeName='cx'%20begin='0s'%20dur='2.2s'%20from='27'%20to='27'%20values='27;49;5;27'%20calcMode='linear'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3ccircle%20cx='49'%20cy='50'%20r='5'%3e%3canimate%20attributeName='cy'%20begin='0s'%20dur='2.2s'%20values='50;50;5;50'%20calcMode='linear'%20repeatCount='indefinite'%20/%3e%3canimate%20attributeName='cx'%20from='49'%20to='49'%20begin='0s'%20dur='2.2s'%20values='49;5;27;49'%20calcMode='linear'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
351
|
+
function Sr(D) {
|
|
284
352
|
return new Worker(
|
|
285
|
-
"" + new URL("mn-worker-
|
|
353
|
+
"" + new URL("mn-worker-CzEeT8gY.js", import.meta.url).href,
|
|
286
354
|
{
|
|
287
|
-
name:
|
|
355
|
+
name: D?.name
|
|
288
356
|
}
|
|
289
357
|
);
|
|
290
358
|
}
|
|
291
|
-
const
|
|
292
|
-
class
|
|
359
|
+
const Oi = 0, Yt = 2, Qt = 0, ft = 1, St = 2;
|
|
360
|
+
class Z {
|
|
293
361
|
static host = "";
|
|
294
362
|
static port = 0;
|
|
295
363
|
static deviceType = "1";
|
|
@@ -302,23 +370,23 @@ class ee {
|
|
|
302
370
|
// 0 - wasm , 1 - videoDecoder
|
|
303
371
|
static frameCache = [];
|
|
304
372
|
static intervalTimer = null;
|
|
305
|
-
static
|
|
306
|
-
constructor(a, p, m, k,
|
|
307
|
-
this.phone = a, this.channel = p, this.div = m, this.chlId = "chlId", this.spedId = "spedId", this.loadId = null, this.hintId = null, this.loading = !0, this.canvas = k, this.lang =
|
|
373
|
+
static renderType = !0;
|
|
374
|
+
constructor(a, p, m, k, S, N = "wasm") {
|
|
375
|
+
this.phone = a, this.channel = p, this.div = m, this.chlId = "chlId", this.spedId = "spedId", this.loadId = null, this.hintId = null, this.loading = !0, this.canvas = k, this.lang = S, this.streamTime = null, this.replayTimer = null, this.isFirstLoad = !1, this.frameCache = [], this.intervalTimer = null, this.renderType = N, console.log("renderType", N), this.messageId = 0, this.mediaType = -1, this.streamType = -1, this.beginTime = "", this.timeout = 3e4, this.playbackMode = null, this.width = 0, this.height = 0, this.yLength = 0, this.uvLength = 0, this.mnVideo = null, this.mnAudio = null, this.mnWorker = null, this.playAudio = !1, this.playerState = Qt, this.decoderState = Oi, this.audioEncoding = "16bitInt", this.audioChannels = 1, this.audioSampleRate = 8e3, this.supportH264 = !1, this.supportH265 = !1, this.videoTimeStamp = 0, this.audioTimeStamp = 0, this.logger = new X.Logger("MnPlayer"), this.mnAudio = new Qn({
|
|
308
376
|
encoding: this.audioEncoding,
|
|
309
377
|
channels: this.audioChannels,
|
|
310
378
|
sampleRate: this.audioSampleRate,
|
|
311
379
|
flushingTime: 1e3
|
|
312
|
-
});
|
|
313
|
-
let
|
|
380
|
+
}), this.enableAudio(this.playAudio);
|
|
381
|
+
let _ = this;
|
|
314
382
|
window.addEventListener("online", function() {
|
|
315
|
-
|
|
383
|
+
_.online();
|
|
316
384
|
}), window.addEventListener("offline", function() {
|
|
317
|
-
|
|
318
|
-
}), this.isSupportH264().then((
|
|
319
|
-
this.supportH264 =
|
|
320
|
-
}), this.isSupportH265().then((
|
|
321
|
-
this.supportH265 =
|
|
385
|
+
_.offline();
|
|
386
|
+
}), this.isSupportH264().then((M) => {
|
|
387
|
+
this.supportH264 = M;
|
|
388
|
+
}), this.isSupportH265().then((M) => {
|
|
389
|
+
this.supportH265 = M;
|
|
322
390
|
});
|
|
323
391
|
}
|
|
324
392
|
/**
|
|
@@ -351,7 +419,7 @@ class ee {
|
|
|
351
419
|
break;
|
|
352
420
|
}
|
|
353
421
|
let p = {
|
|
354
|
-
t:
|
|
422
|
+
t: X.kSocketErrorRsp,
|
|
355
423
|
d: a
|
|
356
424
|
};
|
|
357
425
|
this.onStringFrame(p);
|
|
@@ -361,49 +429,51 @@ class ee {
|
|
|
361
429
|
**/
|
|
362
430
|
initMnWorker() {
|
|
363
431
|
let a = this;
|
|
364
|
-
this.mnWorker = new
|
|
432
|
+
this.mnWorker = new Sr({}), this.renderMode = 0, console.log("this.renderType", this.renderType), this.renderType == "decode" && this.initVideoDecoder() ? this.renderMode = 1 : (this.renderMode = 0, this.canvas != null && (this.mnVideo = new Qe(this.canvas, {
|
|
365
433
|
preserveDrawingBuffer: !1
|
|
366
434
|
}))), this.mnWorker.onmessage = function(p) {
|
|
367
435
|
let m = p.data;
|
|
368
436
|
switch (m.t) {
|
|
369
|
-
case
|
|
437
|
+
case X.kVideoFrameOrigin:
|
|
370
438
|
a.decodeVideoFrame(m.d, m.ti, m.isKey);
|
|
371
439
|
break;
|
|
372
|
-
case
|
|
440
|
+
case X.kOpenDecoderRsp:
|
|
373
441
|
a.onOpenDecoder(m);
|
|
374
442
|
break;
|
|
375
|
-
case
|
|
443
|
+
case X.kVideoReady:
|
|
376
444
|
a.onVideoReady(m);
|
|
377
445
|
break;
|
|
378
|
-
case
|
|
379
|
-
a.onVideoFrame(m), m.ti &&
|
|
446
|
+
case X.kVideoFrame:
|
|
447
|
+
a.onVideoFrame(m), m.ti && Z.timeCallback && typeof Z.timeCallback == "function" && (Z.timeCallback(
|
|
380
448
|
new Date(m.ti - 1e3 * 60 * 60 * 8).getTime()
|
|
381
|
-
)
|
|
449
|
+
), a.speed <= 2 && a.offsetVideo(
|
|
450
|
+
a.mnAudio.offsetAudio(new Date(m.ti).getTime())
|
|
451
|
+
), a.videoTimeStamp = +m.ti, a.audioTimeStamp = +a.mnAudio.getNowPlayStamp());
|
|
382
452
|
break;
|
|
383
|
-
case
|
|
453
|
+
case X.kAudioFrame:
|
|
384
454
|
a.onAudioFrame(m);
|
|
385
455
|
break;
|
|
386
|
-
case
|
|
456
|
+
case X.kNetSpeedFrame:
|
|
387
457
|
a.onNetSpeedFrame(m);
|
|
388
458
|
break;
|
|
389
|
-
case
|
|
459
|
+
case X.kStringFrame:
|
|
390
460
|
a.onStringFrame(m);
|
|
391
461
|
break;
|
|
392
|
-
case
|
|
393
|
-
case
|
|
462
|
+
case X.kSocketErrorRsp:
|
|
463
|
+
case X.kSocketCloseRsp:
|
|
394
464
|
a.stopWorker(!1), a.onStringFrame(m);
|
|
395
465
|
break;
|
|
396
466
|
}
|
|
397
467
|
}, this.mnWorker.postMessage({
|
|
398
|
-
t:
|
|
468
|
+
t: X.kOpenDecoderReq,
|
|
399
469
|
renderMode: this.renderMode,
|
|
400
|
-
host:
|
|
401
|
-
port:
|
|
402
|
-
userId:
|
|
403
|
-
tenantId:
|
|
404
|
-
token:
|
|
405
|
-
deviceType:
|
|
406
|
-
ws:
|
|
470
|
+
host: Z.host,
|
|
471
|
+
port: Z.port,
|
|
472
|
+
userId: Z.userId,
|
|
473
|
+
tenantId: Z.tenantId,
|
|
474
|
+
token: Z.token,
|
|
475
|
+
deviceType: Z.deviceType,
|
|
476
|
+
ws: Z.ws,
|
|
407
477
|
phone: this.phone,
|
|
408
478
|
channel: this.channel,
|
|
409
479
|
lang: this.lang
|
|
@@ -420,25 +490,28 @@ class ee {
|
|
|
420
490
|
**/
|
|
421
491
|
stopWorker(a) {
|
|
422
492
|
this.mnWorker && (a && this.mnWorker.postMessage({
|
|
423
|
-
t:
|
|
493
|
+
t: X.kCloseStreamReq
|
|
424
494
|
}), this.mnWorker.terminate(), this.mnWorker = null);
|
|
425
495
|
}
|
|
496
|
+
resetAudioOffset(a = 0) {
|
|
497
|
+
this.mnAudio?.resetAudioByTimeStamp(a);
|
|
498
|
+
}
|
|
426
499
|
/**
|
|
427
500
|
* 开始播放
|
|
428
501
|
**/
|
|
429
502
|
play(a, p, m) {
|
|
430
503
|
do {
|
|
431
|
-
if (this.playerState ==
|
|
504
|
+
if (this.playerState == St) {
|
|
432
505
|
this.resume();
|
|
433
506
|
break;
|
|
434
507
|
}
|
|
435
|
-
if (this.playerState ==
|
|
508
|
+
if (this.playerState == ft || a == this.mediaType && p == this.streamType)
|
|
436
509
|
break;
|
|
437
|
-
if (this.mediaType = a, this.streamType = p, this.beginTime = m, m == null || m.length == 0 ? this.messageId = 37121 : this.playbackMode == null ? (this.playbackMode = 0, this.messageId = 37377) : (this.playbackMode = 5, this.messageId = 37378), !this.canvas && this.mediaType !=
|
|
510
|
+
if (this.mediaType = a, this.streamType = p, this.beginTime = m, m == null || m.length == 0 ? this.messageId = 37121 : this.playbackMode == null ? (this.playbackMode = 0, this.messageId = 37377) : (this.playbackMode = 5, this.messageId = 37378), !this.canvas && this.mediaType != X.kMediaSpeak) {
|
|
438
511
|
this.logger.logError("[ER] playVideo error, canvas empty.");
|
|
439
512
|
break;
|
|
440
513
|
}
|
|
441
|
-
this.mediaType !=
|
|
514
|
+
this.mediaType != X.kMediaSpeak && this.showChannel(), this.openStream(), this.playerState = ft;
|
|
442
515
|
} while (!1);
|
|
443
516
|
this.beginTime || (this.intervalTimer = setInterval(() => {
|
|
444
517
|
this.drawOne();
|
|
@@ -449,14 +522,14 @@ class ee {
|
|
|
449
522
|
**/
|
|
450
523
|
openStream() {
|
|
451
524
|
this.mnWorker == null && this.initMnWorker(), this.mnWorker.postMessage({
|
|
452
|
-
t:
|
|
525
|
+
t: X.kOpenStreamReq,
|
|
453
526
|
messageId: this.messageId,
|
|
454
527
|
mediaType: this.mediaType,
|
|
455
528
|
streamType: this.streamType,
|
|
456
529
|
beginTime: this.beginTime,
|
|
457
530
|
playbackMode: this.playbackMode,
|
|
458
531
|
lang: this.lang
|
|
459
|
-
}), this.replayTimer == null && this.mediaType !==
|
|
532
|
+
}), this.replayTimer == null && this.mediaType !== X.kMediaSpeak && (this.replayTimer = setInterval(
|
|
460
533
|
this.detectStream.bind(this),
|
|
461
534
|
this.timeout
|
|
462
535
|
)), this.showLoading();
|
|
@@ -466,7 +539,7 @@ class ee {
|
|
|
466
539
|
**/
|
|
467
540
|
fastForward(a) {
|
|
468
541
|
this.mnWorker && this.mnWorker.postMessage({
|
|
469
|
-
t:
|
|
542
|
+
t: X.kFastForward,
|
|
470
543
|
d: a
|
|
471
544
|
});
|
|
472
545
|
}
|
|
@@ -474,15 +547,15 @@ class ee {
|
|
|
474
547
|
* 恢复播放
|
|
475
548
|
**/
|
|
476
549
|
resume() {
|
|
477
|
-
if (this.playerState !=
|
|
550
|
+
if (this.playerState != St) {
|
|
478
551
|
this.logger.logInfo("Not pausing.");
|
|
479
552
|
return;
|
|
480
553
|
}
|
|
481
554
|
this.mnAudio != null && this.mnAudio.resume();
|
|
482
555
|
let a = {
|
|
483
|
-
t:
|
|
556
|
+
t: X.kResumeDecodingReq
|
|
484
557
|
};
|
|
485
|
-
this.mnWorker.postMessage(a), this.playerState =
|
|
558
|
+
this.mnWorker.postMessage(a), this.playerState = ft, this.beginTime || (this.intervalTimer = setInterval(() => {
|
|
486
559
|
this.drawOne();
|
|
487
560
|
}, 33));
|
|
488
561
|
}
|
|
@@ -490,25 +563,32 @@ class ee {
|
|
|
490
563
|
* 暂停播放
|
|
491
564
|
**/
|
|
492
565
|
pause() {
|
|
493
|
-
if (this.playerState !=
|
|
566
|
+
if (this.playerState != ft) {
|
|
494
567
|
this.logger.logInfo("Not playing.");
|
|
495
568
|
return;
|
|
496
569
|
}
|
|
497
|
-
clearInterval(this.intervalTimer), this.playerState =
|
|
570
|
+
clearInterval(this.intervalTimer), this.playerState = St, this.mnAudio != null && this.mnAudio.pause();
|
|
498
571
|
let a = {
|
|
499
|
-
t:
|
|
572
|
+
t: X.kPauseDecodingReq
|
|
500
573
|
};
|
|
501
574
|
this.mnWorker.postMessage(a);
|
|
502
575
|
}
|
|
576
|
+
offsetVideo(a) {
|
|
577
|
+
let p = {
|
|
578
|
+
t: X.kVideoAudioOffset,
|
|
579
|
+
data: a
|
|
580
|
+
};
|
|
581
|
+
this.mnWorker.postMessage(p);
|
|
582
|
+
}
|
|
503
583
|
/**
|
|
504
584
|
* 停止播放
|
|
505
585
|
**/
|
|
506
586
|
stop() {
|
|
507
|
-
if (this.playerState ==
|
|
587
|
+
if (this.playerState == Qt) {
|
|
508
588
|
this.logger.logInfo("Not playing.");
|
|
509
589
|
return;
|
|
510
590
|
}
|
|
511
|
-
this.stopReplayTimer(), this.stopWorker(!0), clearInterval(this.intervalTimer), this.mnVideo && (this.mnVideo.stop(), this.canvas = null, this.mnVideo = null), this.mnAudio && (this.mnAudio.destroy(), this.mnAudio = null), this.closeVideoDecoder(), this.playerState =
|
|
591
|
+
this.stopReplayTimer(), this.stopWorker(!0), clearInterval(this.intervalTimer), this.mnVideo && (this.mnVideo.stop(), this.canvas = null, this.mnVideo = null), this.mnAudio && (this.enableAudio(!1), this.mnAudio.destroy(), this.mnAudio = null), this.closeVideoDecoder(), this.playerState = Qt, this.decoderState = Oi, this.streamType = -1, this.div != null && (this.hidePrompt(), this.div.find("#" + this.chlId).remove(), this.div.find("#" + this.spedId).remove());
|
|
512
592
|
}
|
|
513
593
|
/**
|
|
514
594
|
* 切换码流类型
|
|
@@ -518,7 +598,7 @@ class ee {
|
|
|
518
598
|
return;
|
|
519
599
|
this.streamType = a;
|
|
520
600
|
let p = {
|
|
521
|
-
t:
|
|
601
|
+
t: X.kSwitchStreamReq,
|
|
522
602
|
s: a
|
|
523
603
|
};
|
|
524
604
|
this.mnWorker.postMessage(p);
|
|
@@ -527,23 +607,21 @@ class ee {
|
|
|
527
607
|
* 音频开、关
|
|
528
608
|
**/
|
|
529
609
|
enableAudio(a) {
|
|
530
|
-
|
|
531
|
-
return;
|
|
532
|
-
console.log("改变音频状态", a), this.playAudio = a;
|
|
610
|
+
console.log("改变音频状态1", a), console.log("改变音频状态", a), this.playAudio = a, this.playAudio ? this.mnAudio.volume(1) : this.mnAudio.volume(0);
|
|
533
611
|
let p = {
|
|
534
|
-
t:
|
|
612
|
+
t: X.kEnableAudioReq,
|
|
535
613
|
d: a
|
|
536
614
|
};
|
|
537
|
-
this.mnWorker
|
|
615
|
+
this.mnWorker?.postMessage(p);
|
|
538
616
|
}
|
|
539
617
|
/**
|
|
540
618
|
* 发送录音数据(语音调度,一对多,单向)
|
|
541
619
|
**/
|
|
542
620
|
speak(a) {
|
|
543
|
-
if (this.decoderState !==
|
|
621
|
+
if (this.decoderState !== Yt)
|
|
544
622
|
return;
|
|
545
623
|
let p = {
|
|
546
|
-
t:
|
|
624
|
+
t: X.kRecorderSpeakReq,
|
|
547
625
|
d: a
|
|
548
626
|
};
|
|
549
627
|
this.mnWorker.postMessage(p, p.d.buffer);
|
|
@@ -552,10 +630,10 @@ class ee {
|
|
|
552
630
|
* 发送录音数据(对讲,一对一,双向)
|
|
553
631
|
**/
|
|
554
632
|
talk(a) {
|
|
555
|
-
if (this.decoderState !==
|
|
633
|
+
if (this.decoderState !== Yt)
|
|
556
634
|
return;
|
|
557
635
|
let p = {
|
|
558
|
-
t:
|
|
636
|
+
t: X.kRecorderTalkReq,
|
|
559
637
|
d: a
|
|
560
638
|
};
|
|
561
639
|
this.mnWorker?.postMessage(p, [p.d.buffer]);
|
|
@@ -570,16 +648,16 @@ class ee {
|
|
|
570
648
|
* 响应解码器打开
|
|
571
649
|
**/
|
|
572
650
|
onOpenDecoder(a) {
|
|
573
|
-
a.e == 0 ? (this.decoderState =
|
|
651
|
+
a.e == 0 ? (this.decoderState = Yt, this.mediaType == X.kMediaSpeak && (this.playAudio = !0)) : this.logger.logError("Open decoder response " + a.e + ".");
|
|
574
652
|
}
|
|
575
653
|
/**
|
|
576
654
|
* 超过timeout秒没有收到码流,则重新请求
|
|
577
655
|
**/
|
|
578
656
|
detectStream() {
|
|
579
|
-
if (this.playerState !=
|
|
657
|
+
if (this.playerState != St && Date.now() - this.streamTime >= this.timeout) {
|
|
580
658
|
if (!this.loading)
|
|
581
659
|
this.mnWorker == null ? this.openStream() : this.mnWorker.postMessage({
|
|
582
|
-
t:
|
|
660
|
+
t: X.kReplayReq
|
|
583
661
|
}), this.showLoading();
|
|
584
662
|
else {
|
|
585
663
|
let a = "码流响应超时";
|
|
@@ -635,10 +713,10 @@ class ee {
|
|
|
635
713
|
* 响应PCM音频帧
|
|
636
714
|
**/
|
|
637
715
|
onAudioFrame(a) {
|
|
638
|
-
if (
|
|
716
|
+
if (this.playerState != ft)
|
|
639
717
|
return;
|
|
640
718
|
let p = new Uint8Array(a.d);
|
|
641
|
-
this.mnAudio.feed(p);
|
|
719
|
+
this.mnAudio.feed(p, a.ti);
|
|
642
720
|
}
|
|
643
721
|
/**
|
|
644
722
|
* 响应String帧
|
|
@@ -660,7 +738,7 @@ class ee {
|
|
|
660
738
|
}
|
|
661
739
|
onNetSpeedFrame(a) {
|
|
662
740
|
let p, m = parseInt(a.d / 1024, 10);
|
|
663
|
-
m = m + "KB/S;", this.div !== void 0 && this.div !== null && (this.spedId != null && this.div.find("#" + this.spedId).remove(), this.streamType == 0 ? p = '<span id="' + this.spedId + '" style="position: absolute;bottom:0;right:0;transform:translate(-10px,-10px);font-size:2.5vh;color:white;width:auto">' + m + "</span>" : p = '<span id="' + this.spedId + '" style="position: absolute;bottom:0;right:0;transform:translate(-10px,-10px);font-size:1.0vh;color:white;width:auto">' + m + "</span>", this.div.append(p));
|
|
741
|
+
m = m + "KB/S;" + (this.renderMode == 0 ? "Wasm" : "VideoDecoder"), this.div !== void 0 && this.div !== null && (this.spedId != null && this.div.find("#" + this.spedId).remove(), this.streamType == 0 ? p = '<span id="' + this.spedId + '" style="position: absolute;bottom:0;right:0;transform:translate(-10px,-10px);font-size:2.5vh;color:white;width:auto">' + m + "</span>" : p = '<span id="' + this.spedId + '" style="position: absolute;bottom:0;right:0;transform:translate(-10px,-10px);font-size:1.0vh;color:white;width:auto">' + m + "</span>", this.div.append(p));
|
|
664
742
|
}
|
|
665
743
|
/**
|
|
666
744
|
* 显示通道号
|
|
@@ -679,8 +757,8 @@ class ee {
|
|
|
679
757
|
* 隐藏加载指示
|
|
680
758
|
**/
|
|
681
759
|
showLoading() {
|
|
682
|
-
this.mediaType !=
|
|
683
|
-
'<img class="avue-home__loading" id="' + this.loadId + '" width="30" height="30" style="position: absolute;top: 50%;left: 50%;transform: translate(-50%,-50%);" src="' +
|
|
760
|
+
this.mediaType != X.kMediaSpeak && (this.hidePrompt(), this.loadId = "loadId", this.div != null && this.div.append(
|
|
761
|
+
'<img class="avue-home__loading" id="' + this.loadId + '" width="30" height="30" style="position: absolute;top: 50%;left: 50%;transform: translate(-50%,-50%);" src="' + Tr + '" alt="loading">'
|
|
684
762
|
));
|
|
685
763
|
}
|
|
686
764
|
/**
|
|
@@ -693,7 +771,7 @@ class ee {
|
|
|
693
771
|
* 显示提示信息
|
|
694
772
|
**/
|
|
695
773
|
showHinting(a) {
|
|
696
|
-
this.mediaType !=
|
|
774
|
+
this.mediaType != X.kMediaSpeak && (this.hidePrompt(), this.hintId = "hintId", this.div.append(
|
|
697
775
|
'<span id="' + this.hintId + '" style="position: absolute;top: 50%;left: 50%;transform: translate(-50%,-50%);font-size: 1.5vh;color: red;width: auto">' + a + "</span>"
|
|
698
776
|
));
|
|
699
777
|
}
|
|
@@ -701,7 +779,7 @@ class ee {
|
|
|
701
779
|
* 隐藏文字提示
|
|
702
780
|
**/
|
|
703
781
|
hideHinting() {
|
|
704
|
-
this.mediaType !=
|
|
782
|
+
this.mediaType != X.kMediaSpeak && this.div != null && this.hintId != null && (this.div.find("#" + this.hintId).remove(), this.hintId = null);
|
|
705
783
|
}
|
|
706
784
|
/**
|
|
707
785
|
* 隐藏提示
|
|
@@ -782,7 +860,7 @@ class ee {
|
|
|
782
860
|
const a = this.canvas.getContext("2d");
|
|
783
861
|
if (!a || this.frameCache.length < 5) return;
|
|
784
862
|
const p = this.frameCache.shift();
|
|
785
|
-
p && (a.drawImage(p, 0, 0, this.canvas.width, this.canvas.height),
|
|
863
|
+
p && (a.drawImage(p, 0, 0, this.canvas.width, this.canvas.height), Z.timeCallback && typeof Z.timeCallback == "function" && (Z.timeCallback(p.timestamp / 1e3 - 480 * 60 * 1e3), this.mnAudio.offsetAudio(p.timestamp)), p.close());
|
|
786
864
|
}
|
|
787
865
|
/**
|
|
788
866
|
* 处理解码器错误
|
|
@@ -795,17 +873,17 @@ class ee {
|
|
|
795
873
|
return a.byteLength <= 16 ? new ArrayBuffer(0) : a.slice(0, a.byteLength - 16);
|
|
796
874
|
}
|
|
797
875
|
annexBToAvcc(a) {
|
|
798
|
-
const p = a.reduce((
|
|
876
|
+
const p = a.reduce((S, N) => S + 4 + N.length, 0), m = new Uint8Array(p);
|
|
799
877
|
let k = 0;
|
|
800
|
-
for (const
|
|
801
|
-
m[k++] =
|
|
878
|
+
for (const S of a)
|
|
879
|
+
m[k++] = S.length >>> 24 & 255, m[k++] = S.length >>> 16 & 255, m[k++] = S.length >>> 8 & 255, m[k++] = S.length & 255, m.set(S, k), k += S.length;
|
|
802
880
|
return m;
|
|
803
881
|
}
|
|
804
882
|
splitAnnexBNalus(a) {
|
|
805
883
|
const p = [];
|
|
806
884
|
let m = 0;
|
|
807
|
-
function k(
|
|
808
|
-
return a[
|
|
885
|
+
function k(S) {
|
|
886
|
+
return a[S] === 0 && a[S + 1] === 0 && (a[S + 2] === 1 || a[S + 2] === 0 && a[S + 3] === 1);
|
|
809
887
|
}
|
|
810
888
|
for (; m < a.length; ) {
|
|
811
889
|
if (!k(m)) {
|
|
@@ -813,10 +891,10 @@ class ee {
|
|
|
813
891
|
continue;
|
|
814
892
|
}
|
|
815
893
|
a[m + (a[m + 2] === 1 ? 3 : 4)];
|
|
816
|
-
const
|
|
817
|
-
let
|
|
818
|
-
for (;
|
|
819
|
-
p.push(a.subarray(
|
|
894
|
+
const S = m + (a[m + 2] === 1 ? 3 : 4);
|
|
895
|
+
let N = S;
|
|
896
|
+
for (; N < a.length && !k(N); ) N++;
|
|
897
|
+
p.push(a.subarray(S, N)), m = N;
|
|
820
898
|
}
|
|
821
899
|
return p;
|
|
822
900
|
}
|
|
@@ -824,13 +902,13 @@ class ee {
|
|
|
824
902
|
let p = null, m = null, k = 0;
|
|
825
903
|
for (; k + 4 < a.length; )
|
|
826
904
|
if (a[k] === 0 && a[k + 1] === 0 && (a[k + 2] === 1 || a[k + 2] === 0 && a[k + 3] === 1)) {
|
|
827
|
-
const
|
|
828
|
-
let
|
|
829
|
-
for (;
|
|
830
|
-
|
|
831
|
-
const
|
|
832
|
-
if (
|
|
833
|
-
k =
|
|
905
|
+
const S = a[k + 2] === 1 ? 3 : 4, N = k + S, _ = a[N] & 31;
|
|
906
|
+
let M = N + 1;
|
|
907
|
+
for (; M + 3 < a.length && !(a[M] === 0 && a[M + 1] === 0 && (a[M + 2] === 1 || a[M + 2] === 0 && a[M + 3] === 1)); )
|
|
908
|
+
M++;
|
|
909
|
+
const G = a.slice(N, M);
|
|
910
|
+
if (_ === 7 && !p && (p = G), _ === 8 && !m && (m = G), _ === 32 && !p && (p = G), _ === 33 && !m && (m = G), p && m) break;
|
|
911
|
+
k = M;
|
|
834
912
|
} else
|
|
835
913
|
k++;
|
|
836
914
|
return { sps: p, pps: m };
|
|
@@ -838,22 +916,22 @@ class ee {
|
|
|
838
916
|
extractVpsSpsPps(a) {
|
|
839
917
|
const p = [];
|
|
840
918
|
let m = 0;
|
|
841
|
-
function k(
|
|
842
|
-
for (let
|
|
843
|
-
if (a[
|
|
844
|
-
return
|
|
919
|
+
function k(M) {
|
|
920
|
+
for (let G = M; G + 3 < a.length; G++)
|
|
921
|
+
if (a[G] === 0 && a[G + 1] === 0 && (a[G + 2] === 1 || a[G + 2] === 0 && a[G + 3] === 1))
|
|
922
|
+
return G;
|
|
845
923
|
return -1;
|
|
846
924
|
}
|
|
847
925
|
for (; m < a.length; ) {
|
|
848
|
-
const
|
|
849
|
-
if (
|
|
850
|
-
let
|
|
851
|
-
|
|
852
|
-
const
|
|
853
|
-
(
|
|
926
|
+
const M = k(m);
|
|
927
|
+
if (M === -1) break;
|
|
928
|
+
let G = a[M + 2] === 1 ? 3 : 4, se = M + G, le = k(se);
|
|
929
|
+
le === -1 && (le = a.length);
|
|
930
|
+
const Ie = a.subarray(se, le), He = Ie[0] >> 1 & 63;
|
|
931
|
+
(He === 32 || He === 33 || He === 34) && p.push({ type: He, data: Ie }), m = le;
|
|
854
932
|
}
|
|
855
|
-
const
|
|
856
|
-
return { vps:
|
|
933
|
+
const S = p.find((M) => M.type === 32)?.data, N = p.find((M) => M.type === 33)?.data, _ = p.find((M) => M.type === 34)?.data;
|
|
934
|
+
return { vps: S, sps: N, pps: _ };
|
|
857
935
|
}
|
|
858
936
|
guessCodec(a) {
|
|
859
937
|
if (a.length < 1) return null;
|
|
@@ -887,13 +965,13 @@ class ee {
|
|
|
887
965
|
p++;
|
|
888
966
|
}
|
|
889
967
|
if (p >= a.length) return "unknown";
|
|
890
|
-
const m = a[p], k = m & 31,
|
|
891
|
-
return k >= 1 && k <= 12 ? "h264" :
|
|
968
|
+
const m = a[p], k = m & 31, S = m >> 1 & 63;
|
|
969
|
+
return k >= 1 && k <= 12 ? "h264" : S >= 0 && S <= 40 ? "h265" : "unknown";
|
|
892
970
|
}
|
|
893
971
|
makeAvcC(a, p) {
|
|
894
|
-
const m = a.length, k = p.length,
|
|
895
|
-
let
|
|
896
|
-
return
|
|
972
|
+
const m = a.length, k = p.length, S = new Uint8Array(8 + m + 3 + k);
|
|
973
|
+
let N = 0;
|
|
974
|
+
return S[N++] = 1, S[N++] = a[1], S[N++] = a[2], S[N++] = a[3], S[N++] = 255, S[N++] = 225, S[N++] = m >> 8 & 255, S[N++] = m & 255, S.set(a, N), N += m, S[N++] = 1, S[N++] = k >> 8 & 255, S[N++] = k & 255, S.set(p, N), S;
|
|
897
975
|
}
|
|
898
976
|
/**
|
|
899
977
|
* 解码视频帧
|
|
@@ -909,17 +987,17 @@ class ee {
|
|
|
909
987
|
const k = this.detectVideoCodec(a);
|
|
910
988
|
if (k === "unknown") return;
|
|
911
989
|
if (k == "h264") {
|
|
912
|
-
let
|
|
913
|
-
const
|
|
914
|
-
return `avc1.${
|
|
990
|
+
let _ = function(G) {
|
|
991
|
+
const se = G[1], le = G[2], Ie = G[3];
|
|
992
|
+
return `avc1.${se.toString(16).padStart(2, "0")}${le.toString(16).padStart(2, "0")}${Ie.toString(16).padStart(2, "0")}`;
|
|
915
993
|
};
|
|
916
994
|
this.frameType = "h264";
|
|
917
|
-
const { sps:
|
|
918
|
-
if (!
|
|
919
|
-
this.sps =
|
|
920
|
-
let
|
|
995
|
+
const { sps: S, pps: N } = this.extractSpsPps(a);
|
|
996
|
+
if (!S || !N) return;
|
|
997
|
+
this.sps = S, this.pps = N, this.avcC = this.makeAvcC(S, N), console.warn("avcC", this.avcC);
|
|
998
|
+
let M = _(S);
|
|
921
999
|
if (this.videoDecoder.configure({
|
|
922
|
-
codec:
|
|
1000
|
+
codec: M,
|
|
923
1001
|
// ⚠️ 要和 SPS 一致
|
|
924
1002
|
codedWidth: this.width || 640,
|
|
925
1003
|
codedHeight: this.height || 480,
|
|
@@ -930,8 +1008,8 @@ class ee {
|
|
|
930
1008
|
return;
|
|
931
1009
|
} else {
|
|
932
1010
|
this.frameType = "h265";
|
|
933
|
-
const { vps:
|
|
934
|
-
if (this.vps =
|
|
1011
|
+
const { vps: S, sps: N, pps: _ } = this.extractVpsSpsPps(a);
|
|
1012
|
+
if (this.vps = S, this.sps = N, this.pps = _, !S || !N || !_) return;
|
|
935
1013
|
if (this.videoDecoder.configure({
|
|
936
1014
|
codec: "hev1.1.6.L93.B0"
|
|
937
1015
|
// codedWidth: this.width || 640,
|
|
@@ -943,8 +1021,8 @@ class ee {
|
|
|
943
1021
|
}
|
|
944
1022
|
}
|
|
945
1023
|
if (this.frameType == "h264") {
|
|
946
|
-
let k = this.annexBToAvcc(this.splitAnnexBNalus(a)),
|
|
947
|
-
const
|
|
1024
|
+
let k = this.annexBToAvcc(this.splitAnnexBNalus(a)), S = 33333;
|
|
1025
|
+
const N = new EncodedVideoChunk({
|
|
948
1026
|
type: m ? "key" : "delta",
|
|
949
1027
|
// 根据是否关键帧设置类型
|
|
950
1028
|
// type: "key", // 根据是否关键帧设置类型
|
|
@@ -952,13 +1030,13 @@ class ee {
|
|
|
952
1030
|
data: k,
|
|
953
1031
|
timestamp: p * 1e3,
|
|
954
1032
|
// 转换为微秒
|
|
955
|
-
duration:
|
|
1033
|
+
duration: S
|
|
956
1034
|
// 假设30fps,约33.33ms
|
|
957
1035
|
});
|
|
958
|
-
this.videoDecoder.decode(
|
|
1036
|
+
this.videoDecoder.decode(N);
|
|
959
1037
|
} else {
|
|
960
1038
|
let k = 33333;
|
|
961
|
-
const
|
|
1039
|
+
const S = new EncodedVideoChunk({
|
|
962
1040
|
type: m ? "key" : "delta",
|
|
963
1041
|
// 根据是否关键帧设置类型
|
|
964
1042
|
// data: this.dropLast16Bytes(data),
|
|
@@ -968,7 +1046,7 @@ class ee {
|
|
|
968
1046
|
duration: k
|
|
969
1047
|
// 假设30fps,约33.33ms
|
|
970
1048
|
});
|
|
971
|
-
this.videoDecoder.decode(
|
|
1049
|
+
this.videoDecoder.decode(S);
|
|
972
1050
|
}
|
|
973
1051
|
}
|
|
974
1052
|
/**
|
|
@@ -991,71 +1069,71 @@ class ee {
|
|
|
991
1069
|
[16, 5]
|
|
992
1070
|
]), k = 0;
|
|
993
1071
|
a >= 4 && (k = 6);
|
|
994
|
-
let
|
|
995
|
-
t:
|
|
1072
|
+
let S = {
|
|
1073
|
+
t: X.kReplaySpeed,
|
|
996
1074
|
time: p,
|
|
997
1075
|
d: m.get(a) || 1,
|
|
998
1076
|
v: a,
|
|
999
1077
|
playbackMode: k
|
|
1000
1078
|
};
|
|
1001
|
-
console.log("changeSpeed", a, m.get(a)), this.speed = a, this.mnAudio.speed(a), this.speedValue = m.get(a), this.mnWorker.postMessage(
|
|
1079
|
+
console.log("changeSpeed", a, m.get(a)), this.speed = a, this.mnAudio.speed(a), this.speedValue = m.get(a), this.mnWorker.postMessage(S), this.speed == 1 && this.resetAudioOffset(this.videoTimeStamp);
|
|
1002
1080
|
}
|
|
1003
1081
|
}
|
|
1004
|
-
function wr(
|
|
1005
|
-
return
|
|
1082
|
+
function wr(D) {
|
|
1083
|
+
return D && D.__esModule && Object.prototype.hasOwnProperty.call(D, "default") ? D.default : D;
|
|
1006
1084
|
}
|
|
1007
|
-
var
|
|
1008
|
-
var
|
|
1009
|
-
function
|
|
1010
|
-
return
|
|
1085
|
+
var wt = { exports: {} };
|
|
1086
|
+
var Cr = wt.exports, Wi;
|
|
1087
|
+
function kr() {
|
|
1088
|
+
return Wi || (Wi = 1, (function(D) {
|
|
1011
1089
|
(function(a, p) {
|
|
1012
|
-
|
|
1090
|
+
D.exports = a.document ? p(a, !0) : function(m) {
|
|
1013
1091
|
if (!m.document)
|
|
1014
1092
|
throw new Error("jQuery requires a window with a document");
|
|
1015
1093
|
return p(m);
|
|
1016
1094
|
};
|
|
1017
|
-
})(typeof window < "u" ? window :
|
|
1018
|
-
var m = [], k = Object.getPrototypeOf,
|
|
1095
|
+
})(typeof window < "u" ? window : Cr, function(a, p) {
|
|
1096
|
+
var m = [], k = Object.getPrototypeOf, S = m.slice, N = m.flat ? function(e) {
|
|
1019
1097
|
return m.flat.call(e);
|
|
1020
1098
|
} : function(e) {
|
|
1021
1099
|
return m.concat.apply([], e);
|
|
1022
|
-
},
|
|
1100
|
+
}, _ = m.push, M = m.indexOf, G = {}, se = G.toString, le = G.hasOwnProperty, Ie = le.toString, He = Ie.call(Object), F = {}, O = function(t) {
|
|
1023
1101
|
return typeof t == "function" && typeof t.nodeType != "number" && typeof t.item != "function";
|
|
1024
|
-
},
|
|
1102
|
+
}, Fe = function(t) {
|
|
1025
1103
|
return t != null && t === t.window;
|
|
1026
|
-
},
|
|
1104
|
+
}, H = a.document, Vi = {
|
|
1027
1105
|
type: !0,
|
|
1028
1106
|
src: !0,
|
|
1029
1107
|
nonce: !0,
|
|
1030
1108
|
noModule: !0
|
|
1031
1109
|
};
|
|
1032
|
-
function
|
|
1033
|
-
i = i ||
|
|
1110
|
+
function Jt(e, t, i) {
|
|
1111
|
+
i = i || H;
|
|
1034
1112
|
var n, s, o = i.createElement("script");
|
|
1035
1113
|
if (o.text = e, t)
|
|
1036
|
-
for (n in
|
|
1114
|
+
for (n in Vi)
|
|
1037
1115
|
s = t[n] || t.getAttribute && t.getAttribute(n), s && o.setAttribute(n, s);
|
|
1038
1116
|
i.head.appendChild(o).parentNode.removeChild(o);
|
|
1039
1117
|
}
|
|
1040
|
-
function
|
|
1041
|
-
return e == null ? e + "" : typeof e == "object" || typeof e == "function" ?
|
|
1118
|
+
function Oe(e) {
|
|
1119
|
+
return e == null ? e + "" : typeof e == "object" || typeof e == "function" ? G[se.call(e)] || "object" : typeof e;
|
|
1042
1120
|
}
|
|
1043
|
-
var
|
|
1121
|
+
var Kt = "3.7.1", Bi = /HTML$/i, r = function(e, t) {
|
|
1044
1122
|
return new r.fn.init(e, t);
|
|
1045
1123
|
};
|
|
1046
1124
|
r.fn = r.prototype = {
|
|
1047
1125
|
// The current version of jQuery being used
|
|
1048
|
-
jquery:
|
|
1126
|
+
jquery: Kt,
|
|
1049
1127
|
constructor: r,
|
|
1050
1128
|
// The default length of a jQuery object is 0
|
|
1051
1129
|
length: 0,
|
|
1052
1130
|
toArray: function() {
|
|
1053
|
-
return
|
|
1131
|
+
return S.call(this);
|
|
1054
1132
|
},
|
|
1055
1133
|
// Get the Nth element in the matched element set OR
|
|
1056
1134
|
// Get the whole matched element set as a clean array
|
|
1057
1135
|
get: function(e) {
|
|
1058
|
-
return e == null ?
|
|
1136
|
+
return e == null ? S.call(this) : e < 0 ? this[e + this.length] : this[e];
|
|
1059
1137
|
},
|
|
1060
1138
|
// Take an array of elements and push it onto the stack
|
|
1061
1139
|
// (returning the new matched element set)
|
|
@@ -1073,7 +1151,7 @@ function Cr() {
|
|
|
1073
1151
|
}));
|
|
1074
1152
|
},
|
|
1075
1153
|
slice: function() {
|
|
1076
|
-
return this.pushStack(
|
|
1154
|
+
return this.pushStack(S.apply(this, arguments));
|
|
1077
1155
|
},
|
|
1078
1156
|
first: function() {
|
|
1079
1157
|
return this.eq(0);
|
|
@@ -1100,19 +1178,19 @@ function Cr() {
|
|
|
1100
1178
|
},
|
|
1101
1179
|
// For internal use only.
|
|
1102
1180
|
// Behaves like an Array's method, not like a jQuery method.
|
|
1103
|
-
push:
|
|
1181
|
+
push: _,
|
|
1104
1182
|
sort: m.sort,
|
|
1105
1183
|
splice: m.splice
|
|
1106
1184
|
}, r.extend = r.fn.extend = function() {
|
|
1107
1185
|
var e, t, i, n, s, o, u = arguments[0] || {}, c = 1, l = arguments.length, h = !1;
|
|
1108
|
-
for (typeof u == "boolean" && (h = u, u = arguments[c] || {}, c++), typeof u != "object" && !
|
|
1186
|
+
for (typeof u == "boolean" && (h = u, u = arguments[c] || {}, c++), typeof u != "object" && !O(u) && (u = {}), c === l && (u = this, c--); c < l; c++)
|
|
1109
1187
|
if ((e = arguments[c]) != null)
|
|
1110
1188
|
for (t in e)
|
|
1111
1189
|
n = e[t], !(t === "__proto__" || u === n) && (h && n && (r.isPlainObject(n) || (s = Array.isArray(n))) ? (i = u[t], s && !Array.isArray(i) ? o = [] : !s && !r.isPlainObject(i) ? o = {} : o = i, s = !1, u[t] = r.extend(h, o, n)) : n !== void 0 && (u[t] = n));
|
|
1112
1190
|
return u;
|
|
1113
1191
|
}, r.extend({
|
|
1114
1192
|
// Unique for each copy of jQuery on the page
|
|
1115
|
-
expando: "jQuery" + (
|
|
1193
|
+
expando: "jQuery" + (Kt + Math.random()).replace(/\D/g, ""),
|
|
1116
1194
|
// Assume jQuery is ready without the ready module
|
|
1117
1195
|
isReady: !0,
|
|
1118
1196
|
error: function(e) {
|
|
@@ -1122,7 +1200,7 @@ function Cr() {
|
|
|
1122
1200
|
},
|
|
1123
1201
|
isPlainObject: function(e) {
|
|
1124
1202
|
var t, i;
|
|
1125
|
-
return !e ||
|
|
1203
|
+
return !e || se.call(e) !== "[object Object]" ? !1 : (t = k(e), t ? (i = le.call(t, "constructor") && t.constructor, typeof i == "function" && Ie.call(i) === He) : !0);
|
|
1126
1204
|
},
|
|
1127
1205
|
isEmptyObject: function(e) {
|
|
1128
1206
|
var t;
|
|
@@ -1133,11 +1211,11 @@ function Cr() {
|
|
|
1133
1211
|
// Evaluates a script in a provided context; falls back to the global one
|
|
1134
1212
|
// if not specified.
|
|
1135
1213
|
globalEval: function(e, t, i) {
|
|
1136
|
-
|
|
1214
|
+
Jt(e, { nonce: t && t.nonce }, i);
|
|
1137
1215
|
},
|
|
1138
1216
|
each: function(e, t) {
|
|
1139
1217
|
var i, n = 0;
|
|
1140
|
-
if (
|
|
1218
|
+
if (Ct(e))
|
|
1141
1219
|
for (i = e.length; n < i && t.call(e[n], n, e[n]) !== !1; n++)
|
|
1142
1220
|
;
|
|
1143
1221
|
else
|
|
@@ -1157,13 +1235,13 @@ function Cr() {
|
|
|
1157
1235
|
// results is for internal usage only
|
|
1158
1236
|
makeArray: function(e, t) {
|
|
1159
1237
|
var i = t || [];
|
|
1160
|
-
return e != null && (
|
|
1238
|
+
return e != null && (Ct(Object(e)) ? r.merge(
|
|
1161
1239
|
i,
|
|
1162
1240
|
typeof e == "string" ? [e] : e
|
|
1163
|
-
) :
|
|
1241
|
+
) : _.call(i, e)), i;
|
|
1164
1242
|
},
|
|
1165
1243
|
inArray: function(e, t, i) {
|
|
1166
|
-
return t == null ? -1 :
|
|
1244
|
+
return t == null ? -1 : M.call(t, e, i);
|
|
1167
1245
|
},
|
|
1168
1246
|
isXMLDoc: function(e) {
|
|
1169
1247
|
var t = e && e.namespaceURI, i = e && (e.ownerDocument || e).documentElement;
|
|
@@ -1184,33 +1262,33 @@ function Cr() {
|
|
|
1184
1262
|
// arg is for internal usage only
|
|
1185
1263
|
map: function(e, t, i) {
|
|
1186
1264
|
var n, s, o = 0, u = [];
|
|
1187
|
-
if (
|
|
1265
|
+
if (Ct(e))
|
|
1188
1266
|
for (n = e.length; o < n; o++)
|
|
1189
1267
|
s = t(e[o], o, i), s != null && u.push(s);
|
|
1190
1268
|
else
|
|
1191
1269
|
for (o in e)
|
|
1192
1270
|
s = t(e[o], o, i), s != null && u.push(s);
|
|
1193
|
-
return
|
|
1271
|
+
return N(u);
|
|
1194
1272
|
},
|
|
1195
1273
|
// A global GUID counter for objects
|
|
1196
1274
|
guid: 1,
|
|
1197
1275
|
// jQuery.support is not used in Core but other projects attach their
|
|
1198
1276
|
// properties to it so it needs to exist.
|
|
1199
|
-
support:
|
|
1277
|
+
support: F
|
|
1200
1278
|
}), typeof Symbol == "function" && (r.fn[Symbol.iterator] = m[Symbol.iterator]), r.each(
|
|
1201
1279
|
"Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),
|
|
1202
1280
|
function(e, t) {
|
|
1203
|
-
|
|
1281
|
+
G["[object " + t + "]"] = t.toLowerCase();
|
|
1204
1282
|
}
|
|
1205
1283
|
);
|
|
1206
|
-
function
|
|
1207
|
-
var t = !!e && "length" in e && e.length, i =
|
|
1208
|
-
return
|
|
1284
|
+
function Ct(e) {
|
|
1285
|
+
var t = !!e && "length" in e && e.length, i = Oe(e);
|
|
1286
|
+
return O(e) || Fe(e) ? !1 : i === "array" || t === 0 || typeof t == "number" && t > 0 && t - 1 in e;
|
|
1209
1287
|
}
|
|
1210
1288
|
function K(e, t) {
|
|
1211
1289
|
return e.nodeName && e.nodeName.toLowerCase() === t.toLowerCase();
|
|
1212
1290
|
}
|
|
1213
|
-
var
|
|
1291
|
+
var _i = m.pop, Ui = m.sort, $i = m.splice, Q = "[\\x20\\t\\r\\n\\f]", Je = new RegExp(
|
|
1214
1292
|
"^" + Q + "+|((?:^|[^\\\\])(?:\\\\.)*)" + Q + "+$",
|
|
1215
1293
|
"g"
|
|
1216
1294
|
);
|
|
@@ -1227,32 +1305,32 @@ function Cr() {
|
|
|
1227
1305
|
r.escapeSelector = function(e) {
|
|
1228
1306
|
return (e + "").replace(zi, Xi);
|
|
1229
1307
|
};
|
|
1230
|
-
var
|
|
1308
|
+
var we = H, kt = _;
|
|
1231
1309
|
(function() {
|
|
1232
|
-
var e, t, i, n, s, o =
|
|
1310
|
+
var e, t, i, n, s, o = kt, u, c, l, h, x, T = r.expando, y = 0, w = 0, j = vt(), $ = vt(), W = vt(), ie = vt(), te = function(f, d) {
|
|
1233
1311
|
return f === d && (s = !0), 0;
|
|
1234
|
-
},
|
|
1312
|
+
}, ve = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", xe = "(?:\\\\[\\da-fA-F]{1,6}" + Q + "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+", U = "\\[" + Q + "*(" + xe + ")(?:" + Q + // Operator (capture 2)
|
|
1235
1313
|
"*([*^$|!~]?=)" + Q + // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
|
|
1236
|
-
`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(` +
|
|
1237
|
-
ID: new RegExp("^#(" +
|
|
1238
|
-
CLASS: new RegExp("^\\.(" +
|
|
1239
|
-
TAG: new RegExp("^(" +
|
|
1314
|
+
`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(` + xe + "))|)" + Q + "*\\]", Me = ":(" + xe + `)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|` + U + ")*)|.*)\\)|)", z = new RegExp(Q + "+", "g"), ee = new RegExp("^" + Q + "*," + Q + "*"), ot = new RegExp("^" + Q + "*([>+~]|" + Q + ")" + Q + "*"), Bt = new RegExp(Q + "|>"), be = new RegExp(Me), at = new RegExp("^" + xe + "$"), Te = {
|
|
1315
|
+
ID: new RegExp("^#(" + xe + ")"),
|
|
1316
|
+
CLASS: new RegExp("^\\.(" + xe + ")"),
|
|
1317
|
+
TAG: new RegExp("^(" + xe + "|[*])"),
|
|
1240
1318
|
ATTR: new RegExp("^" + U),
|
|
1241
|
-
PSEUDO: new RegExp("^" +
|
|
1319
|
+
PSEUDO: new RegExp("^" + Me),
|
|
1242
1320
|
CHILD: new RegExp(
|
|
1243
1321
|
"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + Q + "*(even|odd|(([+-]|)(\\d*)n|)" + Q + "*(?:([+-]|)" + Q + "*(\\d+)|))" + Q + "*\\)|)",
|
|
1244
1322
|
"i"
|
|
1245
1323
|
),
|
|
1246
|
-
bool: new RegExp("^(?:" +
|
|
1324
|
+
bool: new RegExp("^(?:" + ve + ")$", "i"),
|
|
1247
1325
|
// For use in libraries implementing .is()
|
|
1248
1326
|
// We use this for POS matching in `select`
|
|
1249
1327
|
needsContext: new RegExp("^" + Q + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + Q + "*((?:-\\d)?\\d*)" + Q + "*\\)|)(?=[^-]|$)", "i")
|
|
1250
|
-
},
|
|
1328
|
+
}, De = /^(?:input|select|textarea|button)$/i, Re = /^h\d$/i, de = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, _t = /[+~]/, Ae = new RegExp("\\\\[\\da-fA-F]{1,6}" + Q + "?|\\\\([^\\r\\n\\f])", "g"), Ee = function(f, d) {
|
|
1251
1329
|
var g = "0x" + f.slice(1) - 65536;
|
|
1252
1330
|
return d || (g < 0 ? String.fromCharCode(g + 65536) : String.fromCharCode(g >> 10 | 55296, g & 1023 | 56320));
|
|
1253
|
-
},
|
|
1254
|
-
|
|
1255
|
-
}, Un =
|
|
1331
|
+
}, _n = function() {
|
|
1332
|
+
Ne();
|
|
1333
|
+
}, Un = bt(
|
|
1256
1334
|
function(f) {
|
|
1257
1335
|
return f.disabled === !0 && K(f, "fieldset");
|
|
1258
1336
|
},
|
|
@@ -1266,71 +1344,71 @@ function Cr() {
|
|
|
1266
1344
|
}
|
|
1267
1345
|
try {
|
|
1268
1346
|
o.apply(
|
|
1269
|
-
m =
|
|
1270
|
-
|
|
1271
|
-
), m[
|
|
1347
|
+
m = S.call(we.childNodes),
|
|
1348
|
+
we.childNodes
|
|
1349
|
+
), m[we.childNodes.length].nodeType;
|
|
1272
1350
|
} catch {
|
|
1273
1351
|
o = {
|
|
1274
1352
|
apply: function(d, g) {
|
|
1275
|
-
|
|
1353
|
+
kt.apply(d, S.call(g));
|
|
1276
1354
|
},
|
|
1277
1355
|
call: function(d) {
|
|
1278
|
-
|
|
1356
|
+
kt.apply(d, S.call(arguments, 1));
|
|
1279
1357
|
}
|
|
1280
1358
|
};
|
|
1281
1359
|
}
|
|
1282
1360
|
function Y(f, d, g, v) {
|
|
1283
|
-
var b, C,
|
|
1284
|
-
if (g = g || [], typeof f != "string" || !f ||
|
|
1361
|
+
var b, C, A, R, E, V, q, P = d && d.ownerDocument, B = d ? d.nodeType : 9;
|
|
1362
|
+
if (g = g || [], typeof f != "string" || !f || B !== 1 && B !== 9 && B !== 11)
|
|
1285
1363
|
return g;
|
|
1286
|
-
if (!v && (
|
|
1287
|
-
if (
|
|
1288
|
-
if (b =
|
|
1289
|
-
if (
|
|
1290
|
-
if (
|
|
1291
|
-
if (
|
|
1292
|
-
return o.call(g,
|
|
1364
|
+
if (!v && (Ne(d), d = d || u, l)) {
|
|
1365
|
+
if (B !== 11 && (E = de.exec(f)))
|
|
1366
|
+
if (b = E[1]) {
|
|
1367
|
+
if (B === 9)
|
|
1368
|
+
if (A = d.getElementById(b)) {
|
|
1369
|
+
if (A.id === b)
|
|
1370
|
+
return o.call(g, A), g;
|
|
1293
1371
|
} else
|
|
1294
1372
|
return g;
|
|
1295
|
-
else if (
|
|
1296
|
-
return o.call(g,
|
|
1373
|
+
else if (P && (A = P.getElementById(b)) && Y.contains(d, A) && A.id === b)
|
|
1374
|
+
return o.call(g, A), g;
|
|
1297
1375
|
} else {
|
|
1298
|
-
if (
|
|
1376
|
+
if (E[2])
|
|
1299
1377
|
return o.apply(g, d.getElementsByTagName(f)), g;
|
|
1300
|
-
if ((b =
|
|
1378
|
+
if ((b = E[3]) && d.getElementsByClassName)
|
|
1301
1379
|
return o.apply(g, d.getElementsByClassName(b)), g;
|
|
1302
1380
|
}
|
|
1303
|
-
if (!
|
|
1304
|
-
if (
|
|
1305
|
-
for (
|
|
1306
|
-
|
|
1307
|
-
|
|
1381
|
+
if (!ie[f + " "] && (!h || !h.test(f))) {
|
|
1382
|
+
if (q = f, P = d, B === 1 && (Bt.test(f) || ot.test(f))) {
|
|
1383
|
+
for (P = _t.test(f) && Ut(d.parentNode) || d, (P != d || !F.scope) && ((R = d.getAttribute("id")) ? R = r.escapeSelector(R) : d.setAttribute("id", R = T)), V = ut(f), C = V.length; C--; )
|
|
1384
|
+
V[C] = (R ? "#" + R : ":scope") + " " + xt(V[C]);
|
|
1385
|
+
q = V.join(",");
|
|
1308
1386
|
}
|
|
1309
1387
|
try {
|
|
1310
1388
|
return o.apply(
|
|
1311
1389
|
g,
|
|
1312
|
-
|
|
1390
|
+
P.querySelectorAll(q)
|
|
1313
1391
|
), g;
|
|
1314
1392
|
} catch {
|
|
1315
|
-
|
|
1393
|
+
ie(f, !0);
|
|
1316
1394
|
} finally {
|
|
1317
|
-
|
|
1395
|
+
R === T && d.removeAttribute("id");
|
|
1318
1396
|
}
|
|
1319
1397
|
}
|
|
1320
1398
|
}
|
|
1321
|
-
return
|
|
1399
|
+
return Fi(f.replace(Je, "$1"), d, g, v);
|
|
1322
1400
|
}
|
|
1323
|
-
function
|
|
1401
|
+
function vt() {
|
|
1324
1402
|
var f = [];
|
|
1325
1403
|
function d(g, v) {
|
|
1326
1404
|
return f.push(g + " ") > t.cacheLength && delete d[f.shift()], d[g + " "] = v;
|
|
1327
1405
|
}
|
|
1328
1406
|
return d;
|
|
1329
1407
|
}
|
|
1330
|
-
function
|
|
1408
|
+
function ge(f) {
|
|
1331
1409
|
return f[T] = !0, f;
|
|
1332
1410
|
}
|
|
1333
|
-
function
|
|
1411
|
+
function Ge(f) {
|
|
1334
1412
|
var d = u.createElement("fieldset");
|
|
1335
1413
|
try {
|
|
1336
1414
|
return !!f(d);
|
|
@@ -1356,37 +1434,37 @@ function Cr() {
|
|
|
1356
1434
|
d.isDisabled !== !f && Un(d) === f : d.disabled === f : "label" in d ? d.disabled === f : !1;
|
|
1357
1435
|
};
|
|
1358
1436
|
}
|
|
1359
|
-
function
|
|
1360
|
-
return
|
|
1361
|
-
return d = +d,
|
|
1362
|
-
for (var b, C = f([], g.length, d),
|
|
1363
|
-
g[b = C[
|
|
1437
|
+
function Pe(f) {
|
|
1438
|
+
return ge(function(d) {
|
|
1439
|
+
return d = +d, ge(function(g, v) {
|
|
1440
|
+
for (var b, C = f([], g.length, d), A = C.length; A--; )
|
|
1441
|
+
g[b = C[A]] && (g[b] = !(v[b] = g[b]));
|
|
1364
1442
|
});
|
|
1365
1443
|
});
|
|
1366
1444
|
}
|
|
1367
|
-
function
|
|
1445
|
+
function Ut(f) {
|
|
1368
1446
|
return f && typeof f.getElementsByTagName < "u" && f;
|
|
1369
1447
|
}
|
|
1370
|
-
function
|
|
1371
|
-
var d, g = f ? f.ownerDocument || f :
|
|
1448
|
+
function Ne(f) {
|
|
1449
|
+
var d, g = f ? f.ownerDocument || f : we;
|
|
1372
1450
|
return g == u || g.nodeType !== 9 || !g.documentElement || (u = g, c = u.documentElement, l = !r.isXMLDoc(u), x = c.matches || c.webkitMatchesSelector || c.msMatchesSelector, c.msMatchesSelector && // Support: IE 11+, Edge 17 - 18+
|
|
1373
1451
|
// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
|
|
1374
1452
|
// two documents; shallow comparisons work.
|
|
1375
1453
|
// eslint-disable-next-line eqeqeq
|
|
1376
|
-
|
|
1454
|
+
we != u && (d = u.defaultView) && d.top !== d && d.addEventListener("unload", _n), F.getById = Ge(function(v) {
|
|
1377
1455
|
return c.appendChild(v).id = r.expando, !u.getElementsByName || !u.getElementsByName(r.expando).length;
|
|
1378
|
-
}),
|
|
1456
|
+
}), F.disconnectedMatch = Ge(function(v) {
|
|
1379
1457
|
return x.call(v, "*");
|
|
1380
|
-
}),
|
|
1458
|
+
}), F.scope = Ge(function() {
|
|
1381
1459
|
return u.querySelectorAll(":scope");
|
|
1382
|
-
}),
|
|
1460
|
+
}), F.cssHas = Ge(function() {
|
|
1383
1461
|
try {
|
|
1384
1462
|
return u.querySelector(":has(*,:jqfake)"), !1;
|
|
1385
1463
|
} catch {
|
|
1386
1464
|
return !0;
|
|
1387
1465
|
}
|
|
1388
|
-
}),
|
|
1389
|
-
var b = v.replace(
|
|
1466
|
+
}), F.getById ? (t.filter.ID = function(v) {
|
|
1467
|
+
var b = v.replace(Ae, Ee);
|
|
1390
1468
|
return function(C) {
|
|
1391
1469
|
return C.getAttribute("id") === b;
|
|
1392
1470
|
};
|
|
@@ -1396,20 +1474,20 @@ function Cr() {
|
|
|
1396
1474
|
return C ? [C] : [];
|
|
1397
1475
|
}
|
|
1398
1476
|
}) : (t.filter.ID = function(v) {
|
|
1399
|
-
var b = v.replace(
|
|
1477
|
+
var b = v.replace(Ae, Ee);
|
|
1400
1478
|
return function(C) {
|
|
1401
|
-
var
|
|
1402
|
-
return
|
|
1479
|
+
var A = typeof C.getAttributeNode < "u" && C.getAttributeNode("id");
|
|
1480
|
+
return A && A.value === b;
|
|
1403
1481
|
};
|
|
1404
1482
|
}, t.find.ID = function(v, b) {
|
|
1405
1483
|
if (typeof b.getElementById < "u" && l) {
|
|
1406
|
-
var C,
|
|
1407
|
-
if (
|
|
1408
|
-
if (C =
|
|
1409
|
-
return [
|
|
1410
|
-
for (
|
|
1411
|
-
if (C =
|
|
1412
|
-
return [
|
|
1484
|
+
var C, A, R, E = b.getElementById(v);
|
|
1485
|
+
if (E) {
|
|
1486
|
+
if (C = E.getAttributeNode("id"), C && C.value === v)
|
|
1487
|
+
return [E];
|
|
1488
|
+
for (R = b.getElementsByName(v), A = 0; E = R[A++]; )
|
|
1489
|
+
if (C = E.getAttributeNode("id"), C && C.value === v)
|
|
1490
|
+
return [E];
|
|
1413
1491
|
}
|
|
1414
1492
|
return [];
|
|
1415
1493
|
}
|
|
@@ -1418,44 +1496,44 @@ function Cr() {
|
|
|
1418
1496
|
}, t.find.CLASS = function(v, b) {
|
|
1419
1497
|
if (typeof b.getElementsByClassName < "u" && l)
|
|
1420
1498
|
return b.getElementsByClassName(v);
|
|
1421
|
-
}, h = [],
|
|
1499
|
+
}, h = [], Ge(function(v) {
|
|
1422
1500
|
var b;
|
|
1423
|
-
c.appendChild(v).innerHTML = "<a id='" + T + "' href='' disabled='disabled'></a><select id='" + T + "-\r\\' disabled='disabled'><option selected=''></option></select>", v.querySelectorAll("[selected]").length || h.push("\\[" + Q + "*(?:value|" +
|
|
1424
|
-
}),
|
|
1501
|
+
c.appendChild(v).innerHTML = "<a id='" + T + "' href='' disabled='disabled'></a><select id='" + T + "-\r\\' disabled='disabled'><option selected=''></option></select>", v.querySelectorAll("[selected]").length || h.push("\\[" + Q + "*(?:value|" + ve + ")"), v.querySelectorAll("[id~=" + T + "-]").length || h.push("~="), v.querySelectorAll("a#" + T + "+*").length || h.push(".#.+[+~]"), v.querySelectorAll(":checked").length || h.push(":checked"), b = u.createElement("input"), b.setAttribute("type", "hidden"), v.appendChild(b).setAttribute("name", "D"), c.appendChild(v).disabled = !0, v.querySelectorAll(":disabled").length !== 2 && h.push(":enabled", ":disabled"), b = u.createElement("input"), b.setAttribute("name", ""), v.appendChild(b), v.querySelectorAll("[name='']").length || h.push("\\[" + Q + "*name" + Q + "*=" + Q + `*(?:''|"")`);
|
|
1502
|
+
}), F.cssHas || h.push(":has"), h = h.length && new RegExp(h.join("|")), te = function(v, b) {
|
|
1425
1503
|
if (v === b)
|
|
1426
1504
|
return s = !0, 0;
|
|
1427
1505
|
var C = !v.compareDocumentPosition - !b.compareDocumentPosition;
|
|
1428
1506
|
return C || (C = (v.ownerDocument || v) == (b.ownerDocument || b) ? v.compareDocumentPosition(b) : (
|
|
1429
1507
|
// Otherwise we know they are disconnected
|
|
1430
1508
|
1
|
|
1431
|
-
), C & 1 || !
|
|
1509
|
+
), C & 1 || !F.sortDetached && b.compareDocumentPosition(v) === C ? v === u || v.ownerDocument == we && Y.contains(we, v) ? -1 : b === u || b.ownerDocument == we && Y.contains(we, b) ? 1 : n ? M.call(n, v) - M.call(n, b) : 0 : C & 4 ? -1 : 1);
|
|
1432
1510
|
}), u;
|
|
1433
1511
|
}
|
|
1434
1512
|
Y.matches = function(f, d) {
|
|
1435
1513
|
return Y(f, null, null, d);
|
|
1436
1514
|
}, Y.matchesSelector = function(f, d) {
|
|
1437
|
-
if (
|
|
1515
|
+
if (Ne(f), l && !ie[d + " "] && (!h || !h.test(d)))
|
|
1438
1516
|
try {
|
|
1439
1517
|
var g = x.call(f, d);
|
|
1440
|
-
if (g ||
|
|
1518
|
+
if (g || F.disconnectedMatch || // As well, disconnected nodes are said to be in a document
|
|
1441
1519
|
// fragment in IE 9
|
|
1442
1520
|
f.document && f.document.nodeType !== 11)
|
|
1443
1521
|
return g;
|
|
1444
1522
|
} catch {
|
|
1445
|
-
|
|
1523
|
+
ie(d, !0);
|
|
1446
1524
|
}
|
|
1447
1525
|
return Y(d, u, null, [f]).length > 0;
|
|
1448
1526
|
}, Y.contains = function(f, d) {
|
|
1449
|
-
return (f.ownerDocument || f) != u &&
|
|
1527
|
+
return (f.ownerDocument || f) != u && Ne(f), r.contains(f, d);
|
|
1450
1528
|
}, Y.attr = function(f, d) {
|
|
1451
|
-
(f.ownerDocument || f) != u &&
|
|
1452
|
-
var g = t.attrHandle[d.toLowerCase()], v = g &&
|
|
1529
|
+
(f.ownerDocument || f) != u && Ne(f);
|
|
1530
|
+
var g = t.attrHandle[d.toLowerCase()], v = g && le.call(t.attrHandle, d.toLowerCase()) ? g(f, d, !l) : void 0;
|
|
1453
1531
|
return v !== void 0 ? v : f.getAttribute(d);
|
|
1454
1532
|
}, Y.error = function(f) {
|
|
1455
1533
|
throw new Error("Syntax error, unrecognized expression: " + f);
|
|
1456
1534
|
}, r.uniqueSort = function(f) {
|
|
1457
1535
|
var d, g = [], v = 0, b = 0;
|
|
1458
|
-
if (s = !
|
|
1536
|
+
if (s = !F.sortStable, n = !F.sortStable && S.call(f, 0), Ui.call(f, te), s) {
|
|
1459
1537
|
for (; d = f[b++]; )
|
|
1460
1538
|
d === f[b] && (v = g.push(b));
|
|
1461
1539
|
for (; v--; )
|
|
@@ -1463,12 +1541,12 @@ function Cr() {
|
|
|
1463
1541
|
}
|
|
1464
1542
|
return n = null, f;
|
|
1465
1543
|
}, r.fn.uniqueSort = function() {
|
|
1466
|
-
return this.pushStack(r.uniqueSort(
|
|
1544
|
+
return this.pushStack(r.uniqueSort(S.apply(this)));
|
|
1467
1545
|
}, t = r.expr = {
|
|
1468
1546
|
// Can be adjusted by the user
|
|
1469
1547
|
cacheLength: 50,
|
|
1470
|
-
createPseudo:
|
|
1471
|
-
match:
|
|
1548
|
+
createPseudo: ge,
|
|
1549
|
+
match: Te,
|
|
1472
1550
|
attrHandle: {},
|
|
1473
1551
|
find: {},
|
|
1474
1552
|
relative: {
|
|
@@ -1479,21 +1557,21 @@ function Cr() {
|
|
|
1479
1557
|
},
|
|
1480
1558
|
preFilter: {
|
|
1481
1559
|
ATTR: function(f) {
|
|
1482
|
-
return f[1] = f[1].replace(
|
|
1560
|
+
return f[1] = f[1].replace(Ae, Ee), f[3] = (f[3] || f[4] || f[5] || "").replace(Ae, Ee), f[2] === "~=" && (f[3] = " " + f[3] + " "), f.slice(0, 4);
|
|
1483
1561
|
},
|
|
1484
1562
|
CHILD: function(f) {
|
|
1485
1563
|
return f[1] = f[1].toLowerCase(), f[1].slice(0, 3) === "nth" ? (f[3] || Y.error(f[0]), f[4] = +(f[4] ? f[5] + (f[6] || 1) : 2 * (f[3] === "even" || f[3] === "odd")), f[5] = +(f[7] + f[8] || f[3] === "odd")) : f[3] && Y.error(f[0]), f;
|
|
1486
1564
|
},
|
|
1487
1565
|
PSEUDO: function(f) {
|
|
1488
1566
|
var d, g = !f[6] && f[2];
|
|
1489
|
-
return
|
|
1490
|
-
(d =
|
|
1567
|
+
return Te.CHILD.test(f[0]) ? null : (f[3] ? f[2] = f[4] || f[5] || "" : g && be.test(g) && // Get excess from tokenize (recursively)
|
|
1568
|
+
(d = ut(g, !0)) && // advance to the next closing parenthesis
|
|
1491
1569
|
(d = g.indexOf(")", g.length - d) - g.length) && (f[0] = f[0].slice(0, d), f[2] = g.slice(0, d)), f.slice(0, 3));
|
|
1492
1570
|
}
|
|
1493
1571
|
},
|
|
1494
1572
|
filter: {
|
|
1495
1573
|
TAG: function(f) {
|
|
1496
|
-
var d = f.replace(
|
|
1574
|
+
var d = f.replace(Ae, Ee).toLowerCase();
|
|
1497
1575
|
return f === "*" ? function() {
|
|
1498
1576
|
return !0;
|
|
1499
1577
|
} : function(g) {
|
|
@@ -1501,8 +1579,8 @@ function Cr() {
|
|
|
1501
1579
|
};
|
|
1502
1580
|
},
|
|
1503
1581
|
CLASS: function(f) {
|
|
1504
|
-
var d =
|
|
1505
|
-
return d || (d = new RegExp("(^|" + Q + ")" + f + "(" + Q + "|$)")) &&
|
|
1582
|
+
var d = j[f + " "];
|
|
1583
|
+
return d || (d = new RegExp("(^|" + Q + ")" + f + "(" + Q + "|$)")) && j(f, function(g) {
|
|
1506
1584
|
return d.test(
|
|
1507
1585
|
typeof g.className == "string" && g.className || typeof g.getAttribute < "u" && g.getAttribute("class") || ""
|
|
1508
1586
|
);
|
|
@@ -1511,47 +1589,47 @@ function Cr() {
|
|
|
1511
1589
|
ATTR: function(f, d, g) {
|
|
1512
1590
|
return function(v) {
|
|
1513
1591
|
var b = Y.attr(v, f);
|
|
1514
|
-
return b == null ? d === "!=" : d ? (b += "", d === "=" ? b === g : d === "!=" ? b !== g : d === "^=" ? g && b.indexOf(g) === 0 : d === "*=" ? g && b.indexOf(g) > -1 : d === "$=" ? g && b.slice(-g.length) === g : d === "~=" ? (" " + b.replace(
|
|
1592
|
+
return b == null ? d === "!=" : d ? (b += "", d === "=" ? b === g : d === "!=" ? b !== g : d === "^=" ? g && b.indexOf(g) === 0 : d === "*=" ? g && b.indexOf(g) > -1 : d === "$=" ? g && b.slice(-g.length) === g : d === "~=" ? (" " + b.replace(z, " ") + " ").indexOf(g) > -1 : d === "|=" ? b === g || b.slice(0, g.length + 1) === g + "-" : !1) : !0;
|
|
1515
1593
|
};
|
|
1516
1594
|
},
|
|
1517
1595
|
CHILD: function(f, d, g, v, b) {
|
|
1518
|
-
var C = f.slice(0, 3) !== "nth",
|
|
1596
|
+
var C = f.slice(0, 3) !== "nth", A = f.slice(-4) !== "last", R = d === "of-type";
|
|
1519
1597
|
return v === 1 && b === 0 ? (
|
|
1520
1598
|
// Shortcut for :nth-*(n)
|
|
1521
|
-
function(
|
|
1522
|
-
return !!
|
|
1599
|
+
function(E) {
|
|
1600
|
+
return !!E.parentNode;
|
|
1523
1601
|
}
|
|
1524
|
-
) : function(
|
|
1525
|
-
var
|
|
1526
|
-
if (
|
|
1602
|
+
) : function(E, V, q) {
|
|
1603
|
+
var P, B, L, J, fe, ne = C !== A ? "nextSibling" : "previousSibling", he = E.parentNode, Se = R && E.nodeName.toLowerCase(), Ye = !q && !R, re = !1;
|
|
1604
|
+
if (he) {
|
|
1527
1605
|
if (C) {
|
|
1528
|
-
for (;
|
|
1529
|
-
for (
|
|
1530
|
-
if (
|
|
1606
|
+
for (; ne; ) {
|
|
1607
|
+
for (L = E; L = L[ne]; )
|
|
1608
|
+
if (R ? K(L, Se) : L.nodeType === 1)
|
|
1531
1609
|
return !1;
|
|
1532
|
-
|
|
1610
|
+
fe = ne = f === "only" && !fe && "nextSibling";
|
|
1533
1611
|
}
|
|
1534
1612
|
return !0;
|
|
1535
1613
|
}
|
|
1536
|
-
if (
|
|
1537
|
-
for (
|
|
1538
|
-
(
|
|
1539
|
-
if (
|
|
1540
|
-
|
|
1614
|
+
if (fe = [A ? he.firstChild : he.lastChild], A && Ye) {
|
|
1615
|
+
for (B = he[T] || (he[T] = {}), P = B[f] || [], J = P[0] === y && P[1], re = J && P[2], L = J && he.childNodes[J]; L = ++J && L && L[ne] || // Fallback to seeking `elem` from the start
|
|
1616
|
+
(re = J = 0) || fe.pop(); )
|
|
1617
|
+
if (L.nodeType === 1 && ++re && L === E) {
|
|
1618
|
+
B[f] = [y, J, re];
|
|
1541
1619
|
break;
|
|
1542
1620
|
}
|
|
1543
|
-
} else if (
|
|
1544
|
-
for (; (
|
|
1621
|
+
} else if (Ye && (B = E[T] || (E[T] = {}), P = B[f] || [], J = P[0] === y && P[1], re = J), re === !1)
|
|
1622
|
+
for (; (L = ++J && L && L[ne] || (re = J = 0) || fe.pop()) && !((R ? K(L, Se) : L.nodeType === 1) && ++re && (Ye && (B = L[T] || (L[T] = {}), B[f] = [y, re]), L === E)); )
|
|
1545
1623
|
;
|
|
1546
|
-
return
|
|
1624
|
+
return re -= b, re === v || re % v === 0 && re / v >= 0;
|
|
1547
1625
|
}
|
|
1548
1626
|
};
|
|
1549
1627
|
},
|
|
1550
1628
|
PSEUDO: function(f, d) {
|
|
1551
1629
|
var g, v = t.pseudos[f] || t.setFilters[f.toLowerCase()] || Y.error("unsupported pseudo: " + f);
|
|
1552
|
-
return v[T] ? v(d) : v.length > 1 ? (g = [f, f, "", d], t.setFilters.hasOwnProperty(f.toLowerCase()) ?
|
|
1553
|
-
for (var
|
|
1554
|
-
|
|
1630
|
+
return v[T] ? v(d) : v.length > 1 ? (g = [f, f, "", d], t.setFilters.hasOwnProperty(f.toLowerCase()) ? ge(function(b, C) {
|
|
1631
|
+
for (var A, R = v(b, d), E = R.length; E--; )
|
|
1632
|
+
A = M.call(b, R[E]), b[A] = !(C[A] = R[E]);
|
|
1555
1633
|
}) : function(b) {
|
|
1556
1634
|
return v(b, 0, g);
|
|
1557
1635
|
}) : v;
|
|
@@ -1559,22 +1637,22 @@ function Cr() {
|
|
|
1559
1637
|
},
|
|
1560
1638
|
pseudos: {
|
|
1561
1639
|
// Potentially complex pseudos
|
|
1562
|
-
not:
|
|
1563
|
-
var d = [], g = [], v =
|
|
1564
|
-
return v[T] ?
|
|
1565
|
-
for (var
|
|
1566
|
-
(
|
|
1567
|
-
}) : function(b, C,
|
|
1568
|
-
return d[0] = b, v(d, null,
|
|
1640
|
+
not: ge(function(f) {
|
|
1641
|
+
var d = [], g = [], v = Gt(f.replace(Je, "$1"));
|
|
1642
|
+
return v[T] ? ge(function(b, C, A, R) {
|
|
1643
|
+
for (var E, V = v(b, null, R, []), q = b.length; q--; )
|
|
1644
|
+
(E = V[q]) && (b[q] = !(C[q] = E));
|
|
1645
|
+
}) : function(b, C, A) {
|
|
1646
|
+
return d[0] = b, v(d, null, A, g), d[0] = null, !g.pop();
|
|
1569
1647
|
};
|
|
1570
1648
|
}),
|
|
1571
|
-
has:
|
|
1649
|
+
has: ge(function(f) {
|
|
1572
1650
|
return function(d) {
|
|
1573
1651
|
return Y(f, d).length > 0;
|
|
1574
1652
|
};
|
|
1575
1653
|
}),
|
|
1576
|
-
contains:
|
|
1577
|
-
return f = f.replace(
|
|
1654
|
+
contains: ge(function(f) {
|
|
1655
|
+
return f = f.replace(Ae, Ee), function(d) {
|
|
1578
1656
|
return (d.textContent || r.text(d)).indexOf(f) > -1;
|
|
1579
1657
|
};
|
|
1580
1658
|
}),
|
|
@@ -1585,8 +1663,8 @@ function Cr() {
|
|
|
1585
1663
|
// The matching of C against the element's language value is performed case-insensitively.
|
|
1586
1664
|
// The identifier C does not have to be a valid language name."
|
|
1587
1665
|
// https://www.w3.org/TR/selectors/#lang-pseudo
|
|
1588
|
-
lang:
|
|
1589
|
-
return
|
|
1666
|
+
lang: ge(function(f) {
|
|
1667
|
+
return at.test(f || "") || Y.error("unsupported lang: " + f), f = f.replace(Ae, Ee).toLowerCase(), function(d) {
|
|
1590
1668
|
var g;
|
|
1591
1669
|
do
|
|
1592
1670
|
if (g = l ? d.lang : d.getAttribute("xml:lang") || d.getAttribute("lang"))
|
|
@@ -1627,10 +1705,10 @@ function Cr() {
|
|
|
1627
1705
|
},
|
|
1628
1706
|
// Element/input types
|
|
1629
1707
|
header: function(f) {
|
|
1630
|
-
return
|
|
1708
|
+
return Re.test(f.nodeName);
|
|
1631
1709
|
},
|
|
1632
1710
|
input: function(f) {
|
|
1633
|
-
return
|
|
1711
|
+
return De.test(f.nodeName);
|
|
1634
1712
|
},
|
|
1635
1713
|
button: function(f) {
|
|
1636
1714
|
return K(f, "input") && f.type === "button" || K(f, "button");
|
|
@@ -1643,32 +1721,32 @@ function Cr() {
|
|
|
1643
1721
|
((d = f.getAttribute("type")) == null || d.toLowerCase() === "text");
|
|
1644
1722
|
},
|
|
1645
1723
|
// Position-in-collection
|
|
1646
|
-
first:
|
|
1724
|
+
first: Pe(function() {
|
|
1647
1725
|
return [0];
|
|
1648
1726
|
}),
|
|
1649
|
-
last:
|
|
1727
|
+
last: Pe(function(f, d) {
|
|
1650
1728
|
return [d - 1];
|
|
1651
1729
|
}),
|
|
1652
|
-
eq:
|
|
1730
|
+
eq: Pe(function(f, d, g) {
|
|
1653
1731
|
return [g < 0 ? g + d : g];
|
|
1654
1732
|
}),
|
|
1655
|
-
even:
|
|
1733
|
+
even: Pe(function(f, d) {
|
|
1656
1734
|
for (var g = 0; g < d; g += 2)
|
|
1657
1735
|
f.push(g);
|
|
1658
1736
|
return f;
|
|
1659
1737
|
}),
|
|
1660
|
-
odd:
|
|
1738
|
+
odd: Pe(function(f, d) {
|
|
1661
1739
|
for (var g = 1; g < d; g += 2)
|
|
1662
1740
|
f.push(g);
|
|
1663
1741
|
return f;
|
|
1664
1742
|
}),
|
|
1665
|
-
lt:
|
|
1743
|
+
lt: Pe(function(f, d, g) {
|
|
1666
1744
|
var v;
|
|
1667
1745
|
for (g < 0 ? v = g + d : g > d ? v = d : v = g; --v >= 0; )
|
|
1668
1746
|
f.push(v);
|
|
1669
1747
|
return f;
|
|
1670
1748
|
}),
|
|
1671
|
-
gt:
|
|
1749
|
+
gt: Pe(function(f, d, g) {
|
|
1672
1750
|
for (var v = g < 0 ? g + d : g; ++v < d; )
|
|
1673
1751
|
f.push(v);
|
|
1674
1752
|
return f;
|
|
@@ -1679,72 +1757,72 @@ function Cr() {
|
|
|
1679
1757
|
t.pseudos[e] = zn(e);
|
|
1680
1758
|
for (e in { submit: !0, reset: !0 })
|
|
1681
1759
|
t.pseudos[e] = Xn(e);
|
|
1682
|
-
function
|
|
1760
|
+
function Hi() {
|
|
1683
1761
|
}
|
|
1684
|
-
|
|
1685
|
-
function
|
|
1686
|
-
var g, v, b, C,
|
|
1687
|
-
if (
|
|
1688
|
-
return d ? 0 :
|
|
1689
|
-
for (
|
|
1690
|
-
(!g || (v =
|
|
1762
|
+
Hi.prototype = t.filters = t.pseudos, t.setFilters = new Hi();
|
|
1763
|
+
function ut(f, d) {
|
|
1764
|
+
var g, v, b, C, A, R, E, V = $[f + " "];
|
|
1765
|
+
if (V)
|
|
1766
|
+
return d ? 0 : V.slice(0);
|
|
1767
|
+
for (A = f, R = [], E = t.preFilter; A; ) {
|
|
1768
|
+
(!g || (v = ee.exec(A))) && (v && (A = A.slice(v[0].length) || A), R.push(b = [])), g = !1, (v = ot.exec(A)) && (g = v.shift(), b.push({
|
|
1691
1769
|
value: g,
|
|
1692
1770
|
// Cast descendant combinators to space
|
|
1693
|
-
type: v[0].replace(
|
|
1694
|
-
}),
|
|
1771
|
+
type: v[0].replace(Je, " ")
|
|
1772
|
+
}), A = A.slice(g.length));
|
|
1695
1773
|
for (C in t.filter)
|
|
1696
|
-
(v =
|
|
1774
|
+
(v = Te[C].exec(A)) && (!E[C] || (v = E[C](v))) && (g = v.shift(), b.push({
|
|
1697
1775
|
value: g,
|
|
1698
1776
|
type: C,
|
|
1699
1777
|
matches: v
|
|
1700
|
-
}),
|
|
1778
|
+
}), A = A.slice(g.length));
|
|
1701
1779
|
if (!g)
|
|
1702
1780
|
break;
|
|
1703
1781
|
}
|
|
1704
|
-
return d ?
|
|
1782
|
+
return d ? A.length : A ? Y.error(f) : (
|
|
1705
1783
|
// Cache the tokens
|
|
1706
|
-
|
|
1784
|
+
$(f, R).slice(0)
|
|
1707
1785
|
);
|
|
1708
1786
|
}
|
|
1709
|
-
function
|
|
1787
|
+
function xt(f) {
|
|
1710
1788
|
for (var d = 0, g = f.length, v = ""; d < g; d++)
|
|
1711
1789
|
v += f[d].value;
|
|
1712
1790
|
return v;
|
|
1713
1791
|
}
|
|
1714
|
-
function
|
|
1715
|
-
var v = d.dir, b = d.next, C = b || v,
|
|
1792
|
+
function bt(f, d, g) {
|
|
1793
|
+
var v = d.dir, b = d.next, C = b || v, A = g && C === "parentNode", R = w++;
|
|
1716
1794
|
return d.first ? (
|
|
1717
1795
|
// Check against closest ancestor/preceding element
|
|
1718
|
-
function(
|
|
1719
|
-
for (;
|
|
1720
|
-
if (
|
|
1721
|
-
return f(
|
|
1796
|
+
function(E, V, q) {
|
|
1797
|
+
for (; E = E[v]; )
|
|
1798
|
+
if (E.nodeType === 1 || A)
|
|
1799
|
+
return f(E, V, q);
|
|
1722
1800
|
return !1;
|
|
1723
1801
|
}
|
|
1724
1802
|
) : (
|
|
1725
1803
|
// Check against all ancestor/preceding elements
|
|
1726
|
-
function(
|
|
1727
|
-
var
|
|
1728
|
-
if (
|
|
1729
|
-
for (;
|
|
1730
|
-
if ((
|
|
1804
|
+
function(E, V, q) {
|
|
1805
|
+
var P, B, L = [y, R];
|
|
1806
|
+
if (q) {
|
|
1807
|
+
for (; E = E[v]; )
|
|
1808
|
+
if ((E.nodeType === 1 || A) && f(E, V, q))
|
|
1731
1809
|
return !0;
|
|
1732
1810
|
} else
|
|
1733
|
-
for (;
|
|
1734
|
-
if (
|
|
1735
|
-
if (
|
|
1736
|
-
|
|
1811
|
+
for (; E = E[v]; )
|
|
1812
|
+
if (E.nodeType === 1 || A)
|
|
1813
|
+
if (B = E[T] || (E[T] = {}), b && K(E, b))
|
|
1814
|
+
E = E[v] || E;
|
|
1737
1815
|
else {
|
|
1738
|
-
if ((
|
|
1739
|
-
return
|
|
1740
|
-
if (
|
|
1816
|
+
if ((P = B[C]) && P[0] === y && P[1] === R)
|
|
1817
|
+
return L[2] = P[2];
|
|
1818
|
+
if (B[C] = L, L[2] = f(E, V, q))
|
|
1741
1819
|
return !0;
|
|
1742
1820
|
}
|
|
1743
1821
|
return !1;
|
|
1744
1822
|
}
|
|
1745
1823
|
);
|
|
1746
1824
|
}
|
|
1747
|
-
function
|
|
1825
|
+
function $t(f) {
|
|
1748
1826
|
return f.length > 1 ? function(d, g, v) {
|
|
1749
1827
|
for (var b = f.length; b--; )
|
|
1750
1828
|
if (!f[b](d, g, v))
|
|
@@ -1757,150 +1835,150 @@ function Cr() {
|
|
|
1757
1835
|
Y(f, d[v], g);
|
|
1758
1836
|
return g;
|
|
1759
1837
|
}
|
|
1760
|
-
function
|
|
1761
|
-
for (var C,
|
|
1762
|
-
(C = f[
|
|
1763
|
-
return
|
|
1838
|
+
function Tt(f, d, g, v, b) {
|
|
1839
|
+
for (var C, A = [], R = 0, E = f.length, V = d != null; R < E; R++)
|
|
1840
|
+
(C = f[R]) && (!g || g(C, v, b)) && (A.push(C), V && d.push(R));
|
|
1841
|
+
return A;
|
|
1764
1842
|
}
|
|
1765
|
-
function
|
|
1766
|
-
return v && !v[T] && (v =
|
|
1767
|
-
var
|
|
1843
|
+
function zt(f, d, g, v, b, C) {
|
|
1844
|
+
return v && !v[T] && (v = zt(v)), b && !b[T] && (b = zt(b, C)), ge(function(A, R, E, V) {
|
|
1845
|
+
var q, P, B, L, J = [], fe = [], ne = R.length, he = A || Gn(
|
|
1768
1846
|
d || "*",
|
|
1769
|
-
|
|
1847
|
+
E.nodeType ? [E] : E,
|
|
1770
1848
|
[]
|
|
1771
|
-
),
|
|
1772
|
-
if (g ? (
|
|
1849
|
+
), Se = f && (A || !d) ? Tt(he, J, f, E, V) : he;
|
|
1850
|
+
if (g ? (L = b || (A ? f : ne || v) ? (
|
|
1773
1851
|
// ...intermediate processing is necessary
|
|
1774
1852
|
[]
|
|
1775
1853
|
) : (
|
|
1776
1854
|
// ...otherwise use results directly
|
|
1777
|
-
|
|
1778
|
-
), g(
|
|
1779
|
-
for (
|
|
1780
|
-
(
|
|
1781
|
-
if (
|
|
1855
|
+
R
|
|
1856
|
+
), g(Se, L, E, V)) : L = Se, v)
|
|
1857
|
+
for (q = Tt(L, fe), v(q, [], E, V), P = q.length; P--; )
|
|
1858
|
+
(B = q[P]) && (L[fe[P]] = !(Se[fe[P]] = B));
|
|
1859
|
+
if (A) {
|
|
1782
1860
|
if (b || f) {
|
|
1783
1861
|
if (b) {
|
|
1784
|
-
for (
|
|
1785
|
-
(
|
|
1786
|
-
b(null,
|
|
1862
|
+
for (q = [], P = L.length; P--; )
|
|
1863
|
+
(B = L[P]) && q.push(Se[P] = B);
|
|
1864
|
+
b(null, L = [], q, V);
|
|
1787
1865
|
}
|
|
1788
|
-
for (
|
|
1789
|
-
(
|
|
1866
|
+
for (P = L.length; P--; )
|
|
1867
|
+
(B = L[P]) && (q = b ? M.call(A, B) : J[P]) > -1 && (A[q] = !(R[q] = B));
|
|
1790
1868
|
}
|
|
1791
1869
|
} else
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
), b ? b(null,
|
|
1870
|
+
L = Tt(
|
|
1871
|
+
L === R ? L.splice(ne, L.length) : L
|
|
1872
|
+
), b ? b(null, R, L, V) : o.apply(R, L);
|
|
1795
1873
|
});
|
|
1796
1874
|
}
|
|
1797
|
-
function
|
|
1798
|
-
for (var d, g, v, b = f.length, C = t.relative[f[0].type],
|
|
1799
|
-
return
|
|
1800
|
-
},
|
|
1801
|
-
return
|
|
1802
|
-
},
|
|
1803
|
-
var J = !C && (
|
|
1875
|
+
function Xt(f) {
|
|
1876
|
+
for (var d, g, v, b = f.length, C = t.relative[f[0].type], A = C || t.relative[" "], R = C ? 1 : 0, E = bt(function(P) {
|
|
1877
|
+
return P === d;
|
|
1878
|
+
}, A, !0), V = bt(function(P) {
|
|
1879
|
+
return M.call(d, P) > -1;
|
|
1880
|
+
}, A, !0), q = [function(P, B, L) {
|
|
1881
|
+
var J = !C && (L || B != i) || ((d = B).nodeType ? E(P, B, L) : V(P, B, L));
|
|
1804
1882
|
return d = null, J;
|
|
1805
|
-
}];
|
|
1806
|
-
if (g = t.relative[f[
|
|
1807
|
-
|
|
1883
|
+
}]; R < b; R++)
|
|
1884
|
+
if (g = t.relative[f[R].type])
|
|
1885
|
+
q = [bt($t(q), g)];
|
|
1808
1886
|
else {
|
|
1809
|
-
if (g = t.filter[f[
|
|
1810
|
-
for (v = ++
|
|
1887
|
+
if (g = t.filter[f[R].type].apply(null, f[R].matches), g[T]) {
|
|
1888
|
+
for (v = ++R; v < b && !t.relative[f[v].type]; v++)
|
|
1811
1889
|
;
|
|
1812
|
-
return
|
|
1813
|
-
|
|
1814
|
-
|
|
1890
|
+
return zt(
|
|
1891
|
+
R > 1 && $t(q),
|
|
1892
|
+
R > 1 && xt(
|
|
1815
1893
|
// If the preceding token was a descendant combinator, insert an implicit any-element `*`
|
|
1816
|
-
f.slice(0,
|
|
1817
|
-
).replace(
|
|
1894
|
+
f.slice(0, R - 1).concat({ value: f[R - 2].type === " " ? "*" : "" })
|
|
1895
|
+
).replace(Je, "$1"),
|
|
1818
1896
|
g,
|
|
1819
|
-
|
|
1820
|
-
v < b &&
|
|
1821
|
-
v < b &&
|
|
1897
|
+
R < v && Xt(f.slice(R, v)),
|
|
1898
|
+
v < b && Xt(f = f.slice(v)),
|
|
1899
|
+
v < b && xt(f)
|
|
1822
1900
|
);
|
|
1823
1901
|
}
|
|
1824
|
-
|
|
1902
|
+
q.push(g);
|
|
1825
1903
|
}
|
|
1826
|
-
return
|
|
1904
|
+
return $t(q);
|
|
1827
1905
|
}
|
|
1828
1906
|
function Yn(f, d) {
|
|
1829
|
-
var g = d.length > 0, v = f.length > 0, b = function(C,
|
|
1830
|
-
var
|
|
1831
|
-
for (
|
|
1832
|
-
if (v &&
|
|
1833
|
-
for (
|
|
1834
|
-
if (
|
|
1835
|
-
o.call(
|
|
1907
|
+
var g = d.length > 0, v = f.length > 0, b = function(C, A, R, E, V) {
|
|
1908
|
+
var q, P, B, L = 0, J = "0", fe = C && [], ne = [], he = i, Se = C || v && t.find.TAG("*", V), Ye = y += he == null ? 1 : Math.random() || 0.1, re = Se.length;
|
|
1909
|
+
for (V && (i = A == u || A || V); J !== re && (q = Se[J]) != null; J++) {
|
|
1910
|
+
if (v && q) {
|
|
1911
|
+
for (P = 0, !A && q.ownerDocument != u && (Ne(q), R = !l); B = f[P++]; )
|
|
1912
|
+
if (B(q, A || u, R)) {
|
|
1913
|
+
o.call(E, q);
|
|
1836
1914
|
break;
|
|
1837
1915
|
}
|
|
1838
|
-
|
|
1916
|
+
V && (y = Ye);
|
|
1839
1917
|
}
|
|
1840
|
-
g && ((
|
|
1918
|
+
g && ((q = !B && q) && L--, C && fe.push(q));
|
|
1841
1919
|
}
|
|
1842
|
-
if (
|
|
1843
|
-
for (
|
|
1844
|
-
|
|
1920
|
+
if (L += J, g && J !== L) {
|
|
1921
|
+
for (P = 0; B = d[P++]; )
|
|
1922
|
+
B(fe, ne, A, R);
|
|
1845
1923
|
if (C) {
|
|
1846
|
-
if (
|
|
1924
|
+
if (L > 0)
|
|
1847
1925
|
for (; J--; )
|
|
1848
|
-
|
|
1849
|
-
|
|
1926
|
+
fe[J] || ne[J] || (ne[J] = _i.call(E));
|
|
1927
|
+
ne = Tt(ne);
|
|
1850
1928
|
}
|
|
1851
|
-
o.apply(
|
|
1929
|
+
o.apply(E, ne), V && !C && ne.length > 0 && L + d.length > 1 && r.uniqueSort(E);
|
|
1852
1930
|
}
|
|
1853
|
-
return
|
|
1931
|
+
return V && (y = Ye, i = he), fe;
|
|
1854
1932
|
};
|
|
1855
|
-
return g ?
|
|
1933
|
+
return g ? ge(b) : b;
|
|
1856
1934
|
}
|
|
1857
|
-
function
|
|
1858
|
-
var g, v = [], b = [], C =
|
|
1935
|
+
function Gt(f, d) {
|
|
1936
|
+
var g, v = [], b = [], C = W[f + " "];
|
|
1859
1937
|
if (!C) {
|
|
1860
|
-
for (d || (d =
|
|
1861
|
-
C =
|
|
1862
|
-
C =
|
|
1938
|
+
for (d || (d = ut(f)), g = d.length; g--; )
|
|
1939
|
+
C = Xt(d[g]), C[T] ? v.push(C) : b.push(C);
|
|
1940
|
+
C = W(
|
|
1863
1941
|
f,
|
|
1864
1942
|
Yn(b, v)
|
|
1865
1943
|
), C.selector = f;
|
|
1866
1944
|
}
|
|
1867
1945
|
return C;
|
|
1868
1946
|
}
|
|
1869
|
-
function
|
|
1870
|
-
var b, C,
|
|
1871
|
-
if (g = g || [],
|
|
1872
|
-
if (C =
|
|
1947
|
+
function Fi(f, d, g, v) {
|
|
1948
|
+
var b, C, A, R, E, V = typeof f == "function" && f, q = !v && ut(f = V.selector || f);
|
|
1949
|
+
if (g = g || [], q.length === 1) {
|
|
1950
|
+
if (C = q[0] = q[0].slice(0), C.length > 2 && (A = C[0]).type === "ID" && d.nodeType === 9 && l && t.relative[C[1].type]) {
|
|
1873
1951
|
if (d = (t.find.ID(
|
|
1874
|
-
|
|
1952
|
+
A.matches[0].replace(Ae, Ee),
|
|
1875
1953
|
d
|
|
1876
1954
|
) || [])[0], d)
|
|
1877
|
-
|
|
1955
|
+
V && (d = d.parentNode);
|
|
1878
1956
|
else return g;
|
|
1879
1957
|
f = f.slice(C.shift().value.length);
|
|
1880
1958
|
}
|
|
1881
|
-
for (b =
|
|
1882
|
-
if ((
|
|
1883
|
-
|
|
1884
|
-
|
|
1959
|
+
for (b = Te.needsContext.test(f) ? 0 : C.length; b-- && (A = C[b], !t.relative[R = A.type]); )
|
|
1960
|
+
if ((E = t.find[R]) && (v = E(
|
|
1961
|
+
A.matches[0].replace(Ae, Ee),
|
|
1962
|
+
_t.test(C[0].type) && Ut(d.parentNode) || d
|
|
1885
1963
|
))) {
|
|
1886
|
-
if (C.splice(b, 1), f = v.length &&
|
|
1964
|
+
if (C.splice(b, 1), f = v.length && xt(C), !f)
|
|
1887
1965
|
return o.apply(g, v), g;
|
|
1888
1966
|
break;
|
|
1889
1967
|
}
|
|
1890
1968
|
}
|
|
1891
|
-
return (
|
|
1969
|
+
return (V || Gt(f, q))(
|
|
1892
1970
|
v,
|
|
1893
1971
|
d,
|
|
1894
1972
|
!l,
|
|
1895
1973
|
g,
|
|
1896
|
-
!d ||
|
|
1974
|
+
!d || _t.test(f) && Ut(d.parentNode) || d
|
|
1897
1975
|
), g;
|
|
1898
1976
|
}
|
|
1899
|
-
|
|
1977
|
+
F.sortStable = T.split("").sort(te).join("") === T, Ne(), F.sortDetached = Ge(function(f) {
|
|
1900
1978
|
return f.compareDocumentPosition(u.createElement("fieldset")) & 1;
|
|
1901
|
-
}), r.find = Y, r.expr[":"] = r.expr.pseudos, r.unique = r.uniqueSort, Y.compile =
|
|
1979
|
+
}), r.find = Y, r.expr[":"] = r.expr.pseudos, r.unique = r.uniqueSort, Y.compile = Gt, Y.select = Fi, Y.setDocument = Ne, Y.tokenize = ut, Y.escape = r.escapeSelector, Y.getText = r.text, Y.isXML = r.isXMLDoc, Y.selectors = r.expr, Y.support = r.support, Y.uniqueSort = r.uniqueSort;
|
|
1902
1980
|
})();
|
|
1903
|
-
var
|
|
1981
|
+
var We = function(e, t, i) {
|
|
1904
1982
|
for (var n = [], s = i !== void 0; (e = e[t]) && e.nodeType !== 9; )
|
|
1905
1983
|
if (e.nodeType === 1) {
|
|
1906
1984
|
if (s && r(e).is(i))
|
|
@@ -1908,18 +1986,18 @@ function Cr() {
|
|
|
1908
1986
|
n.push(e);
|
|
1909
1987
|
}
|
|
1910
1988
|
return n;
|
|
1911
|
-
},
|
|
1989
|
+
}, Zt = function(e, t) {
|
|
1912
1990
|
for (var i = []; e; e = e.nextSibling)
|
|
1913
1991
|
e.nodeType === 1 && e !== t && i.push(e);
|
|
1914
1992
|
return i;
|
|
1915
|
-
},
|
|
1916
|
-
function
|
|
1917
|
-
return
|
|
1993
|
+
}, ei = r.expr.match.needsContext, ti = /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;
|
|
1994
|
+
function At(e, t, i) {
|
|
1995
|
+
return O(t) ? r.grep(e, function(n, s) {
|
|
1918
1996
|
return !!t.call(n, s, n) !== i;
|
|
1919
1997
|
}) : t.nodeType ? r.grep(e, function(n) {
|
|
1920
1998
|
return n === t !== i;
|
|
1921
1999
|
}) : typeof t != "string" ? r.grep(e, function(n) {
|
|
1922
|
-
return
|
|
2000
|
+
return M.call(t, n) > -1 !== i;
|
|
1923
2001
|
}) : r.filter(t, e, i);
|
|
1924
2002
|
}
|
|
1925
2003
|
r.filter = function(e, t, i) {
|
|
@@ -1941,43 +2019,43 @@ function Cr() {
|
|
|
1941
2019
|
return n > 1 ? r.uniqueSort(i) : i;
|
|
1942
2020
|
},
|
|
1943
2021
|
filter: function(e) {
|
|
1944
|
-
return this.pushStack(
|
|
2022
|
+
return this.pushStack(At(this, e || [], !1));
|
|
1945
2023
|
},
|
|
1946
2024
|
not: function(e) {
|
|
1947
|
-
return this.pushStack(
|
|
2025
|
+
return this.pushStack(At(this, e || [], !0));
|
|
1948
2026
|
},
|
|
1949
2027
|
is: function(e) {
|
|
1950
|
-
return !!
|
|
2028
|
+
return !!At(
|
|
1951
2029
|
this,
|
|
1952
2030
|
// If this is a positional/relative selector, check membership in the returned set
|
|
1953
2031
|
// so $("p:first").is("p:last") won't return true for a doc with two "p".
|
|
1954
|
-
typeof e == "string" &&
|
|
2032
|
+
typeof e == "string" && ei.test(e) ? r(e) : e || [],
|
|
1955
2033
|
!1
|
|
1956
2034
|
).length;
|
|
1957
2035
|
}
|
|
1958
2036
|
});
|
|
1959
|
-
var
|
|
2037
|
+
var ii, Gi = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/, Yi = r.fn.init = function(e, t, i) {
|
|
1960
2038
|
var n, s;
|
|
1961
2039
|
if (!e)
|
|
1962
2040
|
return this;
|
|
1963
|
-
if (i = i ||
|
|
2041
|
+
if (i = i || ii, typeof e == "string")
|
|
1964
2042
|
if (e[0] === "<" && e[e.length - 1] === ">" && e.length >= 3 ? n = [null, e, null] : n = Gi.exec(e), n && (n[1] || !t))
|
|
1965
2043
|
if (n[1]) {
|
|
1966
2044
|
if (t = t instanceof r ? t[0] : t, r.merge(this, r.parseHTML(
|
|
1967
2045
|
n[1],
|
|
1968
|
-
t && t.nodeType ? t.ownerDocument || t :
|
|
2046
|
+
t && t.nodeType ? t.ownerDocument || t : H,
|
|
1969
2047
|
!0
|
|
1970
|
-
)),
|
|
2048
|
+
)), ti.test(n[1]) && r.isPlainObject(t))
|
|
1971
2049
|
for (n in t)
|
|
1972
|
-
|
|
2050
|
+
O(this[n]) ? this[n](t[n]) : this.attr(n, t[n]);
|
|
1973
2051
|
return this;
|
|
1974
2052
|
} else
|
|
1975
|
-
return s =
|
|
2053
|
+
return s = H.getElementById(n[2]), s && (this[0] = s, this.length = 1), this;
|
|
1976
2054
|
else return !t || t.jquery ? (t || i).find(e) : this.constructor(t).find(e);
|
|
1977
2055
|
else {
|
|
1978
2056
|
if (e.nodeType)
|
|
1979
2057
|
return this[0] = e, this.length = 1, this;
|
|
1980
|
-
if (
|
|
2058
|
+
if (O(e))
|
|
1981
2059
|
return i.ready !== void 0 ? i.ready(e) : (
|
|
1982
2060
|
// Execute immediately if ready is not present
|
|
1983
2061
|
e(r)
|
|
@@ -1985,7 +2063,7 @@ function Cr() {
|
|
|
1985
2063
|
}
|
|
1986
2064
|
return r.makeArray(e, this);
|
|
1987
2065
|
};
|
|
1988
|
-
Yi.prototype = r.fn,
|
|
2066
|
+
Yi.prototype = r.fn, ii = r(H);
|
|
1989
2067
|
var Qi = /^(?:parents|prev(?:Until|All))/, Ji = {
|
|
1990
2068
|
children: !0,
|
|
1991
2069
|
contents: !0,
|
|
@@ -2003,7 +2081,7 @@ function Cr() {
|
|
|
2003
2081
|
},
|
|
2004
2082
|
closest: function(e, t) {
|
|
2005
2083
|
var i, n = 0, s = this.length, o = [], u = typeof e != "string" && r(e);
|
|
2006
|
-
if (!
|
|
2084
|
+
if (!ei.test(e)) {
|
|
2007
2085
|
for (; n < s; n++)
|
|
2008
2086
|
for (i = this[n]; i && i !== t; i = i.parentNode)
|
|
2009
2087
|
if (i.nodeType < 11 && (u ? u.index(i) > -1 : (
|
|
@@ -2018,7 +2096,7 @@ function Cr() {
|
|
|
2018
2096
|
},
|
|
2019
2097
|
// Determine the position of an element within the set
|
|
2020
2098
|
index: function(e) {
|
|
2021
|
-
return e ? typeof e == "string" ?
|
|
2099
|
+
return e ? typeof e == "string" ? M.call(r(e), this[0]) : M.call(
|
|
2022
2100
|
this,
|
|
2023
2101
|
// If it receives a jQuery object, the first element is used
|
|
2024
2102
|
e.jquery ? e[0] : e
|
|
@@ -2037,7 +2115,7 @@ function Cr() {
|
|
|
2037
2115
|
);
|
|
2038
2116
|
}
|
|
2039
2117
|
});
|
|
2040
|
-
function
|
|
2118
|
+
function ni(e, t) {
|
|
2041
2119
|
for (; (e = e[t]) && e.nodeType !== 1; )
|
|
2042
2120
|
;
|
|
2043
2121
|
return e;
|
|
@@ -2048,34 +2126,34 @@ function Cr() {
|
|
|
2048
2126
|
return t && t.nodeType !== 11 ? t : null;
|
|
2049
2127
|
},
|
|
2050
2128
|
parents: function(e) {
|
|
2051
|
-
return
|
|
2129
|
+
return We(e, "parentNode");
|
|
2052
2130
|
},
|
|
2053
2131
|
parentsUntil: function(e, t, i) {
|
|
2054
|
-
return
|
|
2132
|
+
return We(e, "parentNode", i);
|
|
2055
2133
|
},
|
|
2056
2134
|
next: function(e) {
|
|
2057
|
-
return
|
|
2135
|
+
return ni(e, "nextSibling");
|
|
2058
2136
|
},
|
|
2059
2137
|
prev: function(e) {
|
|
2060
|
-
return
|
|
2138
|
+
return ni(e, "previousSibling");
|
|
2061
2139
|
},
|
|
2062
2140
|
nextAll: function(e) {
|
|
2063
|
-
return
|
|
2141
|
+
return We(e, "nextSibling");
|
|
2064
2142
|
},
|
|
2065
2143
|
prevAll: function(e) {
|
|
2066
|
-
return
|
|
2144
|
+
return We(e, "previousSibling");
|
|
2067
2145
|
},
|
|
2068
2146
|
nextUntil: function(e, t, i) {
|
|
2069
|
-
return
|
|
2147
|
+
return We(e, "nextSibling", i);
|
|
2070
2148
|
},
|
|
2071
2149
|
prevUntil: function(e, t, i) {
|
|
2072
|
-
return
|
|
2150
|
+
return We(e, "previousSibling", i);
|
|
2073
2151
|
},
|
|
2074
2152
|
siblings: function(e) {
|
|
2075
|
-
return
|
|
2153
|
+
return Zt((e.parentNode || {}).firstChild, e);
|
|
2076
2154
|
},
|
|
2077
2155
|
children: function(e) {
|
|
2078
|
-
return
|
|
2156
|
+
return Zt(e.firstChild);
|
|
2079
2157
|
},
|
|
2080
2158
|
contents: function(e) {
|
|
2081
2159
|
return e.contentDocument != null && // Support: IE 11+
|
|
@@ -2089,10 +2167,10 @@ function Cr() {
|
|
|
2089
2167
|
return e.slice(-5) !== "Until" && (n = i), n && typeof n == "string" && (s = r.filter(n, s)), this.length > 1 && (Ji[e] || r.uniqueSort(s), Qi.test(e) && s.reverse()), this.pushStack(s);
|
|
2090
2168
|
};
|
|
2091
2169
|
});
|
|
2092
|
-
var
|
|
2170
|
+
var ye = /[^\x20\t\r\n\f]+/g;
|
|
2093
2171
|
function Ki(e) {
|
|
2094
2172
|
var t = {};
|
|
2095
|
-
return r.each(e.match(
|
|
2173
|
+
return r.each(e.match(ye) || [], function(i, n) {
|
|
2096
2174
|
t[n] = !0;
|
|
2097
2175
|
}), t;
|
|
2098
2176
|
}
|
|
@@ -2107,8 +2185,8 @@ function Cr() {
|
|
|
2107
2185
|
// Add a callback or a collection of callbacks to the list
|
|
2108
2186
|
add: function() {
|
|
2109
2187
|
return o && (i && !t && (c = o.length - 1, u.push(i)), (function x(T) {
|
|
2110
|
-
r.each(T, function(y,
|
|
2111
|
-
|
|
2188
|
+
r.each(T, function(y, w) {
|
|
2189
|
+
O(w) ? (!e.unique || !h.has(w)) && o.push(w) : w && w.length && Oe(w) !== "string" && x(w);
|
|
2112
2190
|
});
|
|
2113
2191
|
})(arguments), i && !t && l()), this;
|
|
2114
2192
|
},
|
|
@@ -2161,16 +2239,16 @@ function Cr() {
|
|
|
2161
2239
|
};
|
|
2162
2240
|
return h;
|
|
2163
2241
|
};
|
|
2164
|
-
function
|
|
2242
|
+
function Ve(e) {
|
|
2165
2243
|
return e;
|
|
2166
2244
|
}
|
|
2167
|
-
function
|
|
2245
|
+
function ct(e) {
|
|
2168
2246
|
throw e;
|
|
2169
2247
|
}
|
|
2170
|
-
function
|
|
2248
|
+
function ri(e, t, i, n) {
|
|
2171
2249
|
var s;
|
|
2172
2250
|
try {
|
|
2173
|
-
e &&
|
|
2251
|
+
e && O(s = e.promise) ? s.call(e).done(t).fail(i) : e && O(s = e.then) ? s.call(e, t, i) : t.apply(void 0, [e].slice(n));
|
|
2174
2252
|
} catch (o) {
|
|
2175
2253
|
i.apply(void 0, [o]);
|
|
2176
2254
|
}
|
|
@@ -2218,10 +2296,10 @@ function Cr() {
|
|
|
2218
2296
|
var o = arguments;
|
|
2219
2297
|
return r.Deferred(function(u) {
|
|
2220
2298
|
r.each(t, function(c, l) {
|
|
2221
|
-
var h =
|
|
2299
|
+
var h = O(o[l[4]]) && o[l[4]];
|
|
2222
2300
|
s[l[1]](function() {
|
|
2223
2301
|
var x = h && h.apply(this, arguments);
|
|
2224
|
-
x &&
|
|
2302
|
+
x && O(x.promise) ? x.promise().progress(u.notify).done(u.resolve).fail(u.reject) : u[l[0] + "With"](
|
|
2225
2303
|
this,
|
|
2226
2304
|
h ? [x] : arguments
|
|
2227
2305
|
);
|
|
@@ -2231,43 +2309,43 @@ function Cr() {
|
|
|
2231
2309
|
},
|
|
2232
2310
|
then: function(o, u, c) {
|
|
2233
2311
|
var l = 0;
|
|
2234
|
-
function h(x, T, y,
|
|
2312
|
+
function h(x, T, y, w) {
|
|
2235
2313
|
return function() {
|
|
2236
|
-
var
|
|
2237
|
-
var
|
|
2314
|
+
var j = this, $ = arguments, W = function() {
|
|
2315
|
+
var te, ve;
|
|
2238
2316
|
if (!(x < l)) {
|
|
2239
|
-
if (
|
|
2317
|
+
if (te = y.apply(j, $), te === T.promise())
|
|
2240
2318
|
throw new TypeError("Thenable self-resolution");
|
|
2241
|
-
|
|
2319
|
+
ve = te && // Support: Promises/A+ section 2.3.4
|
|
2242
2320
|
// https://promisesaplus.com/#point-64
|
|
2243
2321
|
// Only check objects and functions for thenability
|
|
2244
|
-
(typeof
|
|
2245
|
-
|
|
2246
|
-
h(l, T,
|
|
2247
|
-
h(l, T,
|
|
2248
|
-
) : (l++,
|
|
2249
|
-
|
|
2250
|
-
h(l, T,
|
|
2251
|
-
h(l, T,
|
|
2322
|
+
(typeof te == "object" || typeof te == "function") && te.then, O(ve) ? w ? ve.call(
|
|
2323
|
+
te,
|
|
2324
|
+
h(l, T, Ve, w),
|
|
2325
|
+
h(l, T, ct, w)
|
|
2326
|
+
) : (l++, ve.call(
|
|
2327
|
+
te,
|
|
2328
|
+
h(l, T, Ve, w),
|
|
2329
|
+
h(l, T, ct, w),
|
|
2252
2330
|
h(
|
|
2253
2331
|
l,
|
|
2254
2332
|
T,
|
|
2255
|
-
|
|
2333
|
+
Ve,
|
|
2256
2334
|
T.notifyWith
|
|
2257
2335
|
)
|
|
2258
|
-
)) : (y !==
|
|
2336
|
+
)) : (y !== Ve && (j = void 0, $ = [te]), (w || T.resolveWith)(j, $));
|
|
2259
2337
|
}
|
|
2260
|
-
},
|
|
2338
|
+
}, ie = w ? W : function() {
|
|
2261
2339
|
try {
|
|
2262
|
-
|
|
2263
|
-
} catch (
|
|
2340
|
+
W();
|
|
2341
|
+
} catch (te) {
|
|
2264
2342
|
r.Deferred.exceptionHook && r.Deferred.exceptionHook(
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
), x + 1 >= l && (y !==
|
|
2343
|
+
te,
|
|
2344
|
+
ie.error
|
|
2345
|
+
), x + 1 >= l && (y !== ct && (j = void 0, $ = [te]), T.rejectWith(j, $));
|
|
2268
2346
|
}
|
|
2269
2347
|
};
|
|
2270
|
-
x ?
|
|
2348
|
+
x ? ie() : (r.Deferred.getErrorHook ? ie.error = r.Deferred.getErrorHook() : r.Deferred.getStackHook && (ie.error = r.Deferred.getStackHook()), a.setTimeout(ie));
|
|
2271
2349
|
};
|
|
2272
2350
|
}
|
|
2273
2351
|
return r.Deferred(function(x) {
|
|
@@ -2275,20 +2353,20 @@ function Cr() {
|
|
|
2275
2353
|
h(
|
|
2276
2354
|
0,
|
|
2277
2355
|
x,
|
|
2278
|
-
|
|
2356
|
+
O(c) ? c : Ve,
|
|
2279
2357
|
x.notifyWith
|
|
2280
2358
|
)
|
|
2281
2359
|
), t[1][3].add(
|
|
2282
2360
|
h(
|
|
2283
2361
|
0,
|
|
2284
2362
|
x,
|
|
2285
|
-
|
|
2363
|
+
O(o) ? o : Ve
|
|
2286
2364
|
)
|
|
2287
2365
|
), t[2][3].add(
|
|
2288
2366
|
h(
|
|
2289
2367
|
0,
|
|
2290
2368
|
x,
|
|
2291
|
-
|
|
2369
|
+
O(u) ? u : ct
|
|
2292
2370
|
)
|
|
2293
2371
|
);
|
|
2294
2372
|
}).promise();
|
|
@@ -2322,20 +2400,20 @@ function Cr() {
|
|
|
2322
2400
|
},
|
|
2323
2401
|
// Deferred helper
|
|
2324
2402
|
when: function(e) {
|
|
2325
|
-
var t = arguments.length, i = t, n = Array(i), s =
|
|
2403
|
+
var t = arguments.length, i = t, n = Array(i), s = S.call(arguments), o = r.Deferred(), u = function(c) {
|
|
2326
2404
|
return function(l) {
|
|
2327
|
-
n[c] = this, s[c] = arguments.length > 1 ?
|
|
2405
|
+
n[c] = this, s[c] = arguments.length > 1 ? S.call(arguments) : l, --t || o.resolveWith(n, s);
|
|
2328
2406
|
};
|
|
2329
2407
|
};
|
|
2330
|
-
if (t <= 1 && (
|
|
2408
|
+
if (t <= 1 && (ri(
|
|
2331
2409
|
e,
|
|
2332
2410
|
o.done(u(i)).resolve,
|
|
2333
2411
|
o.reject,
|
|
2334
2412
|
!t
|
|
2335
|
-
), o.state() === "pending" ||
|
|
2413
|
+
), o.state() === "pending" || O(s[i] && s[i].then)))
|
|
2336
2414
|
return o.then();
|
|
2337
2415
|
for (; i--; )
|
|
2338
|
-
|
|
2416
|
+
ri(s[i], u(i), o.reject);
|
|
2339
2417
|
return o.promise();
|
|
2340
2418
|
}
|
|
2341
2419
|
});
|
|
@@ -2351,9 +2429,9 @@ function Cr() {
|
|
|
2351
2429
|
throw e;
|
|
2352
2430
|
});
|
|
2353
2431
|
};
|
|
2354
|
-
var
|
|
2432
|
+
var Et = r.Deferred();
|
|
2355
2433
|
r.fn.ready = function(e) {
|
|
2356
|
-
return
|
|
2434
|
+
return Et.then(e).catch(function(t) {
|
|
2357
2435
|
r.readyException(t);
|
|
2358
2436
|
}), this;
|
|
2359
2437
|
}, r.extend({
|
|
@@ -2364,20 +2442,20 @@ function Cr() {
|
|
|
2364
2442
|
readyWait: 1,
|
|
2365
2443
|
// Handle when the DOM is ready
|
|
2366
2444
|
ready: function(e) {
|
|
2367
|
-
(e === !0 ? --r.readyWait : r.isReady) || (r.isReady = !0, !(e !== !0 && --r.readyWait > 0) &&
|
|
2445
|
+
(e === !0 ? --r.readyWait : r.isReady) || (r.isReady = !0, !(e !== !0 && --r.readyWait > 0) && Et.resolveWith(H, [r]));
|
|
2368
2446
|
}
|
|
2369
|
-
}), r.ready.then =
|
|
2370
|
-
function
|
|
2371
|
-
|
|
2447
|
+
}), r.ready.then = Et.then;
|
|
2448
|
+
function dt() {
|
|
2449
|
+
H.removeEventListener("DOMContentLoaded", dt), a.removeEventListener("load", dt), r.ready();
|
|
2372
2450
|
}
|
|
2373
|
-
|
|
2374
|
-
var
|
|
2451
|
+
H.readyState === "complete" || H.readyState !== "loading" && !H.documentElement.doScroll ? a.setTimeout(r.ready) : (H.addEventListener("DOMContentLoaded", dt), a.addEventListener("load", dt));
|
|
2452
|
+
var Ce = function(e, t, i, n, s, o, u) {
|
|
2375
2453
|
var c = 0, l = e.length, h = i == null;
|
|
2376
|
-
if (
|
|
2454
|
+
if (Oe(i) === "object") {
|
|
2377
2455
|
s = !0;
|
|
2378
2456
|
for (c in i)
|
|
2379
|
-
|
|
2380
|
-
} else if (n !== void 0 && (s = !0,
|
|
2457
|
+
Ce(e, t, c, i[c], !0, o, u);
|
|
2458
|
+
} else if (n !== void 0 && (s = !0, O(n) || (u = !0), h && (u ? (t.call(e, n), t = null) : (h = t, t = function(x, T, y) {
|
|
2381
2459
|
return h.call(r(x), y);
|
|
2382
2460
|
})), t))
|
|
2383
2461
|
for (; c < l; c++)
|
|
@@ -2391,19 +2469,19 @@ function Cr() {
|
|
|
2391
2469
|
function nn(e, t) {
|
|
2392
2470
|
return t.toUpperCase();
|
|
2393
2471
|
}
|
|
2394
|
-
function
|
|
2472
|
+
function me(e) {
|
|
2395
2473
|
return e.replace(en, "ms-").replace(tn, nn);
|
|
2396
2474
|
}
|
|
2397
|
-
var
|
|
2475
|
+
var Ke = function(e) {
|
|
2398
2476
|
return e.nodeType === 1 || e.nodeType === 9 || !+e.nodeType;
|
|
2399
2477
|
};
|
|
2400
|
-
function
|
|
2401
|
-
this.expando = r.expando +
|
|
2478
|
+
function Ze() {
|
|
2479
|
+
this.expando = r.expando + Ze.uid++;
|
|
2402
2480
|
}
|
|
2403
|
-
|
|
2481
|
+
Ze.uid = 1, Ze.prototype = {
|
|
2404
2482
|
cache: function(e) {
|
|
2405
2483
|
var t = e[this.expando];
|
|
2406
|
-
return t || (t = {},
|
|
2484
|
+
return t || (t = {}, Ke(e) && (e.nodeType ? e[this.expando] = t : Object.defineProperty(e, this.expando, {
|
|
2407
2485
|
value: t,
|
|
2408
2486
|
configurable: !0
|
|
2409
2487
|
}))), t;
|
|
@@ -2411,16 +2489,16 @@ function Cr() {
|
|
|
2411
2489
|
set: function(e, t, i) {
|
|
2412
2490
|
var n, s = this.cache(e);
|
|
2413
2491
|
if (typeof t == "string")
|
|
2414
|
-
s[
|
|
2492
|
+
s[me(t)] = i;
|
|
2415
2493
|
else
|
|
2416
2494
|
for (n in t)
|
|
2417
|
-
s[
|
|
2495
|
+
s[me(n)] = t[n];
|
|
2418
2496
|
return s;
|
|
2419
2497
|
},
|
|
2420
2498
|
get: function(e, t) {
|
|
2421
2499
|
return t === void 0 ? this.cache(e) : (
|
|
2422
2500
|
// Always use camelCase key (gh-2257)
|
|
2423
|
-
e[this.expando] && e[this.expando][
|
|
2501
|
+
e[this.expando] && e[this.expando][me(t)]
|
|
2424
2502
|
);
|
|
2425
2503
|
},
|
|
2426
2504
|
access: function(e, t, i) {
|
|
@@ -2430,7 +2508,7 @@ function Cr() {
|
|
|
2430
2508
|
var i, n = e[this.expando];
|
|
2431
2509
|
if (n !== void 0) {
|
|
2432
2510
|
if (t !== void 0)
|
|
2433
|
-
for (Array.isArray(t) ? t = t.map(
|
|
2511
|
+
for (Array.isArray(t) ? t = t.map(me) : (t = me(t), t = t in n ? [t] : t.match(ye) || []), i = t.length; i--; )
|
|
2434
2512
|
delete n[t[i]];
|
|
2435
2513
|
(t === void 0 || r.isEmptyObject(n)) && (e.nodeType ? e[this.expando] = void 0 : delete e[this.expando]);
|
|
2436
2514
|
}
|
|
@@ -2440,11 +2518,11 @@ function Cr() {
|
|
|
2440
2518
|
return t !== void 0 && !r.isEmptyObject(t);
|
|
2441
2519
|
}
|
|
2442
2520
|
};
|
|
2443
|
-
var I = new
|
|
2521
|
+
var I = new Ze(), oe = new Ze(), rn = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, sn = /[A-Z]/g;
|
|
2444
2522
|
function on(e) {
|
|
2445
2523
|
return e === "true" ? !0 : e === "false" ? !1 : e === "null" ? null : e === +e + "" ? +e : rn.test(e) ? JSON.parse(e) : e;
|
|
2446
2524
|
}
|
|
2447
|
-
function
|
|
2525
|
+
function si(e, t, i) {
|
|
2448
2526
|
var n;
|
|
2449
2527
|
if (i === void 0 && e.nodeType === 1)
|
|
2450
2528
|
if (n = "data-" + t.replace(sn, "-$&").toLowerCase(), i = e.getAttribute(n), typeof i == "string") {
|
|
@@ -2452,20 +2530,20 @@ function Cr() {
|
|
|
2452
2530
|
i = on(i);
|
|
2453
2531
|
} catch {
|
|
2454
2532
|
}
|
|
2455
|
-
|
|
2533
|
+
oe.set(e, t, i);
|
|
2456
2534
|
} else
|
|
2457
2535
|
i = void 0;
|
|
2458
2536
|
return i;
|
|
2459
2537
|
}
|
|
2460
2538
|
r.extend({
|
|
2461
2539
|
hasData: function(e) {
|
|
2462
|
-
return
|
|
2540
|
+
return oe.hasData(e) || I.hasData(e);
|
|
2463
2541
|
},
|
|
2464
2542
|
data: function(e, t, i) {
|
|
2465
|
-
return
|
|
2543
|
+
return oe.access(e, t, i);
|
|
2466
2544
|
},
|
|
2467
2545
|
removeData: function(e, t) {
|
|
2468
|
-
|
|
2546
|
+
oe.remove(e, t);
|
|
2469
2547
|
},
|
|
2470
2548
|
// TODO: Now that all calls to _data and _removeData have been replaced
|
|
2471
2549
|
// with direct calls to dataPriv methods, these can be deprecated.
|
|
@@ -2479,27 +2557,27 @@ function Cr() {
|
|
|
2479
2557
|
data: function(e, t) {
|
|
2480
2558
|
var i, n, s, o = this[0], u = o && o.attributes;
|
|
2481
2559
|
if (e === void 0) {
|
|
2482
|
-
if (this.length && (s =
|
|
2560
|
+
if (this.length && (s = oe.get(o), o.nodeType === 1 && !I.get(o, "hasDataAttrs"))) {
|
|
2483
2561
|
for (i = u.length; i--; )
|
|
2484
|
-
u[i] && (n = u[i].name, n.indexOf("data-") === 0 && (n =
|
|
2562
|
+
u[i] && (n = u[i].name, n.indexOf("data-") === 0 && (n = me(n.slice(5)), si(o, n, s[n])));
|
|
2485
2563
|
I.set(o, "hasDataAttrs", !0);
|
|
2486
2564
|
}
|
|
2487
2565
|
return s;
|
|
2488
2566
|
}
|
|
2489
2567
|
return typeof e == "object" ? this.each(function() {
|
|
2490
|
-
|
|
2491
|
-
}) :
|
|
2568
|
+
oe.set(this, e);
|
|
2569
|
+
}) : Ce(this, function(c) {
|
|
2492
2570
|
var l;
|
|
2493
2571
|
if (o && c === void 0)
|
|
2494
|
-
return l =
|
|
2572
|
+
return l = oe.get(o, e), l !== void 0 || (l = si(o, e), l !== void 0) ? l : void 0;
|
|
2495
2573
|
this.each(function() {
|
|
2496
|
-
|
|
2574
|
+
oe.set(this, e, c);
|
|
2497
2575
|
});
|
|
2498
2576
|
}, null, t, arguments.length > 1, null, !0);
|
|
2499
2577
|
},
|
|
2500
2578
|
removeData: function(e) {
|
|
2501
2579
|
return this.each(function() {
|
|
2502
|
-
|
|
2580
|
+
oe.remove(this, e);
|
|
2503
2581
|
});
|
|
2504
2582
|
}
|
|
2505
2583
|
}), r.extend({
|
|
@@ -2551,25 +2629,25 @@ function Cr() {
|
|
|
2551
2629
|
return c(), s.promise(t);
|
|
2552
2630
|
}
|
|
2553
2631
|
});
|
|
2554
|
-
var
|
|
2632
|
+
var oi = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, et = new RegExp("^(?:([+-])=|)(" + oi + ")([a-z%]*)$", "i"), ke = ["Top", "Right", "Bottom", "Left"], Le = H.documentElement, Be = function(e) {
|
|
2555
2633
|
return r.contains(e.ownerDocument, e);
|
|
2556
2634
|
}, an = { composed: !0 };
|
|
2557
|
-
|
|
2635
|
+
Le.getRootNode && (Be = function(e) {
|
|
2558
2636
|
return r.contains(e.ownerDocument, e) || e.getRootNode(an) === e.ownerDocument;
|
|
2559
2637
|
});
|
|
2560
|
-
var
|
|
2638
|
+
var ht = function(e, t) {
|
|
2561
2639
|
return e = t || e, e.style.display === "none" || e.style.display === "" && // Otherwise, check computed style
|
|
2562
2640
|
// Support: Firefox <=43 - 45
|
|
2563
2641
|
// Disconnected elements can have computed display: none, so first confirm that elem is
|
|
2564
2642
|
// in the document.
|
|
2565
|
-
|
|
2643
|
+
Be(e) && r.css(e, "display") === "none";
|
|
2566
2644
|
};
|
|
2567
|
-
function
|
|
2645
|
+
function ai(e, t, i, n) {
|
|
2568
2646
|
var s, o, u = 20, c = n ? function() {
|
|
2569
2647
|
return n.cur();
|
|
2570
2648
|
} : function() {
|
|
2571
2649
|
return r.css(e, t, "");
|
|
2572
|
-
}, l = c(), h = i && i[3] || (r.cssNumber[t] ? "" : "px"), x = e.nodeType && (r.cssNumber[t] || h !== "px" && +l) &&
|
|
2650
|
+
}, l = c(), h = i && i[3] || (r.cssNumber[t] ? "" : "px"), x = e.nodeType && (r.cssNumber[t] || h !== "px" && +l) && et.exec(r.css(e, t));
|
|
2573
2651
|
if (x && x[3] !== h) {
|
|
2574
2652
|
for (l = l / 2, h = h || x[3], x = +l || 1; u--; )
|
|
2575
2653
|
r.style(e, t, x + h), (1 - o) * (1 - (o = c() / l || 0.5)) <= 0 && (u = 0), x = x / o;
|
|
@@ -2577,37 +2655,37 @@ function Cr() {
|
|
|
2577
2655
|
}
|
|
2578
2656
|
return i && (x = +x || +l || 0, s = i[1] ? x + (i[1] + 1) * i[2] : +i[2], n && (n.unit = h, n.start = x, n.end = s)), s;
|
|
2579
2657
|
}
|
|
2580
|
-
var
|
|
2658
|
+
var ui = {};
|
|
2581
2659
|
function un(e) {
|
|
2582
|
-
var t, i = e.ownerDocument, n = e.nodeName, s =
|
|
2583
|
-
return s || (t = i.body.appendChild(i.createElement(n)), s = r.css(t, "display"), t.parentNode.removeChild(t), s === "none" && (s = "block"),
|
|
2660
|
+
var t, i = e.ownerDocument, n = e.nodeName, s = ui[n];
|
|
2661
|
+
return s || (t = i.body.appendChild(i.createElement(n)), s = r.css(t, "display"), t.parentNode.removeChild(t), s === "none" && (s = "block"), ui[n] = s, s);
|
|
2584
2662
|
}
|
|
2585
|
-
function
|
|
2663
|
+
function _e(e, t) {
|
|
2586
2664
|
for (var i, n, s = [], o = 0, u = e.length; o < u; o++)
|
|
2587
|
-
n = e[o], n.style && (i = n.style.display, t ? (i === "none" && (s[o] = I.get(n, "display") || null, s[o] || (n.style.display = "")), n.style.display === "" &&
|
|
2665
|
+
n = e[o], n.style && (i = n.style.display, t ? (i === "none" && (s[o] = I.get(n, "display") || null, s[o] || (n.style.display = "")), n.style.display === "" && ht(n) && (s[o] = un(n))) : i !== "none" && (s[o] = "none", I.set(n, "display", i)));
|
|
2588
2666
|
for (o = 0; o < u; o++)
|
|
2589
2667
|
s[o] != null && (e[o].style.display = s[o]);
|
|
2590
2668
|
return e;
|
|
2591
2669
|
}
|
|
2592
2670
|
r.fn.extend({
|
|
2593
2671
|
show: function() {
|
|
2594
|
-
return
|
|
2672
|
+
return _e(this, !0);
|
|
2595
2673
|
},
|
|
2596
2674
|
hide: function() {
|
|
2597
|
-
return
|
|
2675
|
+
return _e(this);
|
|
2598
2676
|
},
|
|
2599
2677
|
toggle: function(e) {
|
|
2600
2678
|
return typeof e == "boolean" ? e ? this.show() : this.hide() : this.each(function() {
|
|
2601
|
-
|
|
2679
|
+
ht(this) ? r(this).show() : r(this).hide();
|
|
2602
2680
|
});
|
|
2603
2681
|
}
|
|
2604
2682
|
});
|
|
2605
|
-
var
|
|
2683
|
+
var tt = /^(?:checkbox|radio)$/i, fi = /<([a-z][^\/\0>\x20\t\r\n\f]*)/i, li = /^$|^module$|\/(?:java|ecma)script/i;
|
|
2606
2684
|
(function() {
|
|
2607
|
-
var e =
|
|
2608
|
-
i.setAttribute("type", "radio"), i.setAttribute("checked", "checked"), i.setAttribute("name", "t"), t.appendChild(i),
|
|
2685
|
+
var e = H.createDocumentFragment(), t = e.appendChild(H.createElement("div")), i = H.createElement("input");
|
|
2686
|
+
i.setAttribute("type", "radio"), i.setAttribute("checked", "checked"), i.setAttribute("name", "t"), t.appendChild(i), F.checkClone = t.cloneNode(!0).cloneNode(!0).lastChild.checked, t.innerHTML = "<textarea>x</textarea>", F.noCloneChecked = !!t.cloneNode(!0).lastChild.defaultValue, t.innerHTML = "<option></option>", F.option = !!t.lastChild;
|
|
2609
2687
|
})();
|
|
2610
|
-
var
|
|
2688
|
+
var ce = {
|
|
2611
2689
|
// XHTML parsers do not magically insert elements in the
|
|
2612
2690
|
// same way that tag soup parsers do. So we cannot shorten
|
|
2613
2691
|
// this by omitting <tbody> or other required elements.
|
|
@@ -2617,12 +2695,12 @@ function Cr() {
|
|
|
2617
2695
|
td: [3, "<table><tbody><tr>", "</tr></tbody></table>"],
|
|
2618
2696
|
_default: [0, "", ""]
|
|
2619
2697
|
};
|
|
2620
|
-
|
|
2621
|
-
function
|
|
2698
|
+
ce.tbody = ce.tfoot = ce.colgroup = ce.caption = ce.thead, ce.th = ce.td, F.option || (ce.optgroup = ce.option = [1, "<select multiple='multiple'>", "</select>"]);
|
|
2699
|
+
function ae(e, t) {
|
|
2622
2700
|
var i;
|
|
2623
2701
|
return typeof e.getElementsByTagName < "u" ? i = e.getElementsByTagName(t || "*") : typeof e.querySelectorAll < "u" ? i = e.querySelectorAll(t || "*") : i = [], t === void 0 || t && K(e, t) ? r.merge([e], i) : i;
|
|
2624
2702
|
}
|
|
2625
|
-
function
|
|
2703
|
+
function Dt(e, t) {
|
|
2626
2704
|
for (var i = 0, n = e.length; i < n; i++)
|
|
2627
2705
|
I.set(
|
|
2628
2706
|
e[i],
|
|
@@ -2631,46 +2709,46 @@ function Cr() {
|
|
|
2631
2709
|
);
|
|
2632
2710
|
}
|
|
2633
2711
|
var fn = /<|&#?\w+;/;
|
|
2634
|
-
function
|
|
2635
|
-
for (var o, u, c, l, h, x, T = t.createDocumentFragment(), y = [],
|
|
2636
|
-
if (o = e[
|
|
2637
|
-
if (
|
|
2712
|
+
function ci(e, t, i, n, s) {
|
|
2713
|
+
for (var o, u, c, l, h, x, T = t.createDocumentFragment(), y = [], w = 0, j = e.length; w < j; w++)
|
|
2714
|
+
if (o = e[w], o || o === 0)
|
|
2715
|
+
if (Oe(o) === "object")
|
|
2638
2716
|
r.merge(y, o.nodeType ? [o] : o);
|
|
2639
2717
|
else if (!fn.test(o))
|
|
2640
2718
|
y.push(t.createTextNode(o));
|
|
2641
2719
|
else {
|
|
2642
|
-
for (u = u || T.appendChild(t.createElement("div")), c = (
|
|
2720
|
+
for (u = u || T.appendChild(t.createElement("div")), c = (fi.exec(o) || ["", ""])[1].toLowerCase(), l = ce[c] || ce._default, u.innerHTML = l[1] + r.htmlPrefilter(o) + l[2], x = l[0]; x--; )
|
|
2643
2721
|
u = u.lastChild;
|
|
2644
2722
|
r.merge(y, u.childNodes), u = T.firstChild, u.textContent = "";
|
|
2645
2723
|
}
|
|
2646
|
-
for (T.textContent = "",
|
|
2724
|
+
for (T.textContent = "", w = 0; o = y[w++]; ) {
|
|
2647
2725
|
if (n && r.inArray(o, n) > -1) {
|
|
2648
2726
|
s && s.push(o);
|
|
2649
2727
|
continue;
|
|
2650
2728
|
}
|
|
2651
|
-
if (h =
|
|
2729
|
+
if (h = Be(o), u = ae(T.appendChild(o), "script"), h && Dt(u), i)
|
|
2652
2730
|
for (x = 0; o = u[x++]; )
|
|
2653
|
-
|
|
2731
|
+
li.test(o.type || "") && i.push(o);
|
|
2654
2732
|
}
|
|
2655
2733
|
return T;
|
|
2656
2734
|
}
|
|
2657
|
-
var
|
|
2658
|
-
function
|
|
2735
|
+
var di = /^([^.]*)(?:\.(.+)|)/;
|
|
2736
|
+
function Ue() {
|
|
2659
2737
|
return !0;
|
|
2660
2738
|
}
|
|
2661
|
-
function
|
|
2739
|
+
function $e() {
|
|
2662
2740
|
return !1;
|
|
2663
2741
|
}
|
|
2664
|
-
function
|
|
2742
|
+
function Rt(e, t, i, n, s, o) {
|
|
2665
2743
|
var u, c;
|
|
2666
2744
|
if (typeof t == "object") {
|
|
2667
2745
|
typeof i != "string" && (n = n || i, i = void 0);
|
|
2668
2746
|
for (c in t)
|
|
2669
|
-
|
|
2747
|
+
Rt(e, c, i, n, t[c], o);
|
|
2670
2748
|
return e;
|
|
2671
2749
|
}
|
|
2672
2750
|
if (n == null && s == null ? (s = i, n = i = void 0) : s == null && (typeof i == "string" ? (s = n, n = void 0) : (s = n, n = i, i = void 0)), s === !1)
|
|
2673
|
-
s =
|
|
2751
|
+
s = $e;
|
|
2674
2752
|
else if (!s)
|
|
2675
2753
|
return e;
|
|
2676
2754
|
return o === 1 && (u = s, s = function(l) {
|
|
@@ -2682,35 +2760,35 @@ function Cr() {
|
|
|
2682
2760
|
r.event = {
|
|
2683
2761
|
global: {},
|
|
2684
2762
|
add: function(e, t, i, n, s) {
|
|
2685
|
-
var o, u, c, l, h, x, T, y,
|
|
2686
|
-
if (
|
|
2687
|
-
for (i.handler && (o = i, i = o.handler, s = o.selector), s && r.find.matchesSelector(
|
|
2688
|
-
return typeof r < "u" && r.event.triggered !==
|
|
2689
|
-
}), t = (t || "").match(
|
|
2690
|
-
c =
|
|
2691
|
-
type:
|
|
2692
|
-
origType:
|
|
2763
|
+
var o, u, c, l, h, x, T, y, w, j, $, W = I.get(e);
|
|
2764
|
+
if (Ke(e))
|
|
2765
|
+
for (i.handler && (o = i, i = o.handler, s = o.selector), s && r.find.matchesSelector(Le, s), i.guid || (i.guid = r.guid++), (l = W.events) || (l = W.events = /* @__PURE__ */ Object.create(null)), (u = W.handle) || (u = W.handle = function(ie) {
|
|
2766
|
+
return typeof r < "u" && r.event.triggered !== ie.type ? r.event.dispatch.apply(e, arguments) : void 0;
|
|
2767
|
+
}), t = (t || "").match(ye) || [""], h = t.length; h--; )
|
|
2768
|
+
c = di.exec(t[h]) || [], w = $ = c[1], j = (c[2] || "").split(".").sort(), w && (T = r.event.special[w] || {}, w = (s ? T.delegateType : T.bindType) || w, T = r.event.special[w] || {}, x = r.extend({
|
|
2769
|
+
type: w,
|
|
2770
|
+
origType: $,
|
|
2693
2771
|
data: n,
|
|
2694
2772
|
handler: i,
|
|
2695
2773
|
guid: i.guid,
|
|
2696
2774
|
selector: s,
|
|
2697
2775
|
needsContext: s && r.expr.match.needsContext.test(s),
|
|
2698
|
-
namespace:
|
|
2699
|
-
}, o), (y = l[
|
|
2776
|
+
namespace: j.join(".")
|
|
2777
|
+
}, o), (y = l[w]) || (y = l[w] = [], y.delegateCount = 0, (!T.setup || T.setup.call(e, n, j, u) === !1) && e.addEventListener && e.addEventListener(w, u)), T.add && (T.add.call(e, x), x.handler.guid || (x.handler.guid = i.guid)), s ? y.splice(y.delegateCount++, 0, x) : y.push(x), r.event.global[w] = !0);
|
|
2700
2778
|
},
|
|
2701
2779
|
// Detach an event or set of events from an element
|
|
2702
2780
|
remove: function(e, t, i, n, s) {
|
|
2703
|
-
var o, u, c, l, h, x, T, y,
|
|
2704
|
-
if (!(!
|
|
2705
|
-
for (t = (t || "").match(
|
|
2706
|
-
if (c =
|
|
2707
|
-
for (
|
|
2708
|
-
r.event.remove(e,
|
|
2781
|
+
var o, u, c, l, h, x, T, y, w, j, $, W = I.hasData(e) && I.get(e);
|
|
2782
|
+
if (!(!W || !(l = W.events))) {
|
|
2783
|
+
for (t = (t || "").match(ye) || [""], h = t.length; h--; ) {
|
|
2784
|
+
if (c = di.exec(t[h]) || [], w = $ = c[1], j = (c[2] || "").split(".").sort(), !w) {
|
|
2785
|
+
for (w in l)
|
|
2786
|
+
r.event.remove(e, w + t[h], i, n, !0);
|
|
2709
2787
|
continue;
|
|
2710
2788
|
}
|
|
2711
|
-
for (T = r.event.special[
|
|
2712
|
-
x = y[o], (s ||
|
|
2713
|
-
u && !y.length && ((!T.teardown || T.teardown.call(e,
|
|
2789
|
+
for (T = r.event.special[w] || {}, w = (n ? T.delegateType : T.bindType) || w, y = l[w] || [], c = c[2] && new RegExp("(^|\\.)" + j.join("\\.(?:.*\\.|)") + "(\\.|$)"), u = o = y.length; o--; )
|
|
2790
|
+
x = y[o], (s || $ === x.origType) && (!i || i.guid === x.guid) && (!c || c.test(x.namespace)) && (!n || n === x.selector || n === "**" && x.selector) && (y.splice(o, 1), x.selector && y.delegateCount--, T.remove && T.remove.call(e, x));
|
|
2791
|
+
u && !y.length && ((!T.teardown || T.teardown.call(e, j, W.handle) === !1) && r.removeEvent(e, w, W.handle), delete l[w]);
|
|
2714
2792
|
}
|
|
2715
2793
|
r.isEmptyObject(l) && I.remove(e, "handle events");
|
|
2716
2794
|
}
|
|
@@ -2749,7 +2827,7 @@ function Cr() {
|
|
|
2749
2827
|
Object.defineProperty(r.Event.prototype, e, {
|
|
2750
2828
|
enumerable: !0,
|
|
2751
2829
|
configurable: !0,
|
|
2752
|
-
get:
|
|
2830
|
+
get: O(t) ? function() {
|
|
2753
2831
|
if (this.originalEvent)
|
|
2754
2832
|
return t(this.originalEvent);
|
|
2755
2833
|
} : function() {
|
|
@@ -2778,17 +2856,17 @@ function Cr() {
|
|
|
2778
2856
|
// Utilize native event to ensure correct state for checkable inputs
|
|
2779
2857
|
setup: function(e) {
|
|
2780
2858
|
var t = this || e;
|
|
2781
|
-
return
|
|
2859
|
+
return tt.test(t.type) && t.click && K(t, "input") && pt(t, "click", !0), !1;
|
|
2782
2860
|
},
|
|
2783
2861
|
trigger: function(e) {
|
|
2784
2862
|
var t = this || e;
|
|
2785
|
-
return
|
|
2863
|
+
return tt.test(t.type) && t.click && K(t, "input") && pt(t, "click"), !0;
|
|
2786
2864
|
},
|
|
2787
2865
|
// For cross-browser consistency, suppress native .click() on links
|
|
2788
2866
|
// Also prevent it if we're currently inside a leveraged native-event stack
|
|
2789
2867
|
_default: function(e) {
|
|
2790
2868
|
var t = e.target;
|
|
2791
|
-
return
|
|
2869
|
+
return tt.test(t.type) && t.click && K(t, "input") && I.get(t, "click") || K(t, "a");
|
|
2792
2870
|
}
|
|
2793
2871
|
},
|
|
2794
2872
|
beforeunload: {
|
|
@@ -2798,9 +2876,9 @@ function Cr() {
|
|
|
2798
2876
|
}
|
|
2799
2877
|
}
|
|
2800
2878
|
};
|
|
2801
|
-
function
|
|
2879
|
+
function pt(e, t, i) {
|
|
2802
2880
|
if (!i) {
|
|
2803
|
-
I.get(e, t) === void 0 && r.event.add(e, t,
|
|
2881
|
+
I.get(e, t) === void 0 && r.event.add(e, t, Ue);
|
|
2804
2882
|
return;
|
|
2805
2883
|
}
|
|
2806
2884
|
I.set(e, t, !1), r.event.add(e, t, {
|
|
@@ -2810,13 +2888,13 @@ function Cr() {
|
|
|
2810
2888
|
if (n.isTrigger & 1 && this[t]) {
|
|
2811
2889
|
if (o)
|
|
2812
2890
|
(r.event.special[t] || {}).delegateType && n.stopPropagation();
|
|
2813
|
-
else if (o =
|
|
2891
|
+
else if (o = S.call(arguments), I.set(this, t, o), this[t](), s = I.get(this, t), I.set(this, t, !1), o !== s)
|
|
2814
2892
|
return n.stopImmediatePropagation(), n.preventDefault(), s;
|
|
2815
2893
|
} else o && (I.set(this, t, r.event.trigger(
|
|
2816
2894
|
o[0],
|
|
2817
2895
|
o.slice(1),
|
|
2818
2896
|
this
|
|
2819
|
-
)), n.stopPropagation(), n.isImmediatePropagationStopped =
|
|
2897
|
+
)), n.stopPropagation(), n.isImmediatePropagationStopped = Ue);
|
|
2820
2898
|
}
|
|
2821
2899
|
});
|
|
2822
2900
|
}
|
|
@@ -2826,24 +2904,24 @@ function Cr() {
|
|
|
2826
2904
|
if (!(this instanceof r.Event))
|
|
2827
2905
|
return new r.Event(e, t);
|
|
2828
2906
|
e && e.type ? (this.originalEvent = e, this.type = e.type, this.isDefaultPrevented = e.defaultPrevented || e.defaultPrevented === void 0 && // Support: Android <=2.3 only
|
|
2829
|
-
e.returnValue === !1 ?
|
|
2907
|
+
e.returnValue === !1 ? Ue : $e, this.target = e.target && e.target.nodeType === 3 ? e.target.parentNode : e.target, this.currentTarget = e.currentTarget, this.relatedTarget = e.relatedTarget) : this.type = e, t && r.extend(this, t), this.timeStamp = e && e.timeStamp || Date.now(), this[r.expando] = !0;
|
|
2830
2908
|
}, r.Event.prototype = {
|
|
2831
2909
|
constructor: r.Event,
|
|
2832
|
-
isDefaultPrevented:
|
|
2833
|
-
isPropagationStopped:
|
|
2834
|
-
isImmediatePropagationStopped:
|
|
2910
|
+
isDefaultPrevented: $e,
|
|
2911
|
+
isPropagationStopped: $e,
|
|
2912
|
+
isImmediatePropagationStopped: $e,
|
|
2835
2913
|
isSimulated: !1,
|
|
2836
2914
|
preventDefault: function() {
|
|
2837
2915
|
var e = this.originalEvent;
|
|
2838
|
-
this.isDefaultPrevented =
|
|
2916
|
+
this.isDefaultPrevented = Ue, e && !this.isSimulated && e.preventDefault();
|
|
2839
2917
|
},
|
|
2840
2918
|
stopPropagation: function() {
|
|
2841
2919
|
var e = this.originalEvent;
|
|
2842
|
-
this.isPropagationStopped =
|
|
2920
|
+
this.isPropagationStopped = Ue, e && !this.isSimulated && e.stopPropagation();
|
|
2843
2921
|
},
|
|
2844
2922
|
stopImmediatePropagation: function() {
|
|
2845
2923
|
var e = this.originalEvent;
|
|
2846
|
-
this.isImmediatePropagationStopped =
|
|
2924
|
+
this.isImmediatePropagationStopped = Ue, e && !this.isSimulated && e.stopImmediatePropagation(), this.stopPropagation();
|
|
2847
2925
|
}
|
|
2848
2926
|
}, r.each({
|
|
2849
2927
|
altKey: !0,
|
|
@@ -2879,7 +2957,7 @@ function Cr() {
|
|
|
2879
2957
|
which: !0
|
|
2880
2958
|
}, r.event.addProp), r.each({ focus: "focusin", blur: "focusout" }, function(e, t) {
|
|
2881
2959
|
function i(n) {
|
|
2882
|
-
if (
|
|
2960
|
+
if (H.documentMode) {
|
|
2883
2961
|
var s = I.get(this, "handle"), o = r.event.fix(n);
|
|
2884
2962
|
o.type = n.type === "focusin" ? "focus" : "blur", o.isSimulated = !0, s(n), o.target === o.currentTarget && s(o);
|
|
2885
2963
|
} else
|
|
@@ -2893,17 +2971,17 @@ function Cr() {
|
|
|
2893
2971
|
// Utilize native event if possible so blur/focus sequence is correct
|
|
2894
2972
|
setup: function() {
|
|
2895
2973
|
var n;
|
|
2896
|
-
if (
|
|
2974
|
+
if (pt(this, e, !0), H.documentMode)
|
|
2897
2975
|
n = I.get(this, t), n || this.addEventListener(t, i), I.set(this, t, (n || 0) + 1);
|
|
2898
2976
|
else
|
|
2899
2977
|
return !1;
|
|
2900
2978
|
},
|
|
2901
2979
|
trigger: function() {
|
|
2902
|
-
return
|
|
2980
|
+
return pt(this, e), !0;
|
|
2903
2981
|
},
|
|
2904
2982
|
teardown: function() {
|
|
2905
2983
|
var n;
|
|
2906
|
-
if (
|
|
2984
|
+
if (H.documentMode)
|
|
2907
2985
|
n = I.get(this, t) - 1, n ? I.set(this, t, n) : (this.removeEventListener(t, i), I.remove(this, t));
|
|
2908
2986
|
else
|
|
2909
2987
|
return !1;
|
|
@@ -2916,12 +2994,12 @@ function Cr() {
|
|
|
2916
2994
|
delegateType: t
|
|
2917
2995
|
}, r.event.special[t] = {
|
|
2918
2996
|
setup: function() {
|
|
2919
|
-
var n = this.ownerDocument || this.document || this, s =
|
|
2920
|
-
o || (
|
|
2997
|
+
var n = this.ownerDocument || this.document || this, s = H.documentMode ? this : n, o = I.get(s, t);
|
|
2998
|
+
o || (H.documentMode ? this.addEventListener(t, i) : n.addEventListener(e, i, !0)), I.set(s, t, (o || 0) + 1);
|
|
2921
2999
|
},
|
|
2922
3000
|
teardown: function() {
|
|
2923
|
-
var n = this.ownerDocument || this.document || this, s =
|
|
2924
|
-
o ? I.set(s, t, o) : (
|
|
3001
|
+
var n = this.ownerDocument || this.document || this, s = H.documentMode ? this : n, o = I.get(s, t) - 1;
|
|
3002
|
+
o ? I.set(s, t, o) : (H.documentMode ? this.removeEventListener(t, i) : n.removeEventListener(e, i, !0), I.remove(s, t));
|
|
2925
3003
|
}
|
|
2926
3004
|
};
|
|
2927
3005
|
}), r.each({
|
|
@@ -2940,10 +3018,10 @@ function Cr() {
|
|
|
2940
3018
|
};
|
|
2941
3019
|
}), r.fn.extend({
|
|
2942
3020
|
on: function(e, t, i, n) {
|
|
2943
|
-
return
|
|
3021
|
+
return Rt(this, e, t, i, n);
|
|
2944
3022
|
},
|
|
2945
3023
|
one: function(e, t, i, n) {
|
|
2946
|
-
return
|
|
3024
|
+
return Rt(this, e, t, i, n, 1);
|
|
2947
3025
|
},
|
|
2948
3026
|
off: function(e, t, i) {
|
|
2949
3027
|
var n, s;
|
|
@@ -2958,13 +3036,13 @@ function Cr() {
|
|
|
2958
3036
|
this.off(s, t, e[s]);
|
|
2959
3037
|
return this;
|
|
2960
3038
|
}
|
|
2961
|
-
return (t === !1 || typeof t == "function") && (i = t, t = void 0), i === !1 && (i =
|
|
3039
|
+
return (t === !1 || typeof t == "function") && (i = t, t = void 0), i === !1 && (i = $e), this.each(function() {
|
|
2962
3040
|
r.event.remove(this, e, i, t);
|
|
2963
3041
|
});
|
|
2964
3042
|
}
|
|
2965
3043
|
});
|
|
2966
3044
|
var ln = /<script|<style|<link/i, cn = /checked\s*(?:[^=]|=\s*.checked.)/i, dn = /^\s*<!\[CDATA\[|\]\]>\s*$/g;
|
|
2967
|
-
function
|
|
3045
|
+
function hi(e, t) {
|
|
2968
3046
|
return K(e, "table") && K(t.nodeType !== 11 ? t : t.firstChild, "tr") && r(e).children("tbody")[0] || e;
|
|
2969
3047
|
}
|
|
2970
3048
|
function hn(e) {
|
|
@@ -2973,7 +3051,7 @@ function Cr() {
|
|
|
2973
3051
|
function pn(e) {
|
|
2974
3052
|
return (e.type || "").slice(0, 5) === "true/" ? e.type = e.type.slice(5) : e.removeAttribute("type"), e;
|
|
2975
3053
|
}
|
|
2976
|
-
function
|
|
3054
|
+
function pi(e, t) {
|
|
2977
3055
|
var i, n, s, o, u, c, l;
|
|
2978
3056
|
if (t.nodeType === 1) {
|
|
2979
3057
|
if (I.hasData(e) && (o = I.get(e), l = o.events, l)) {
|
|
@@ -2982,35 +3060,35 @@ function Cr() {
|
|
|
2982
3060
|
for (i = 0, n = l[s].length; i < n; i++)
|
|
2983
3061
|
r.event.add(t, s, l[s][i]);
|
|
2984
3062
|
}
|
|
2985
|
-
|
|
3063
|
+
oe.hasData(e) && (u = oe.access(e), c = r.extend({}, u), oe.set(t, c));
|
|
2986
3064
|
}
|
|
2987
3065
|
}
|
|
2988
3066
|
function gn(e, t) {
|
|
2989
3067
|
var i = t.nodeName.toLowerCase();
|
|
2990
|
-
i === "input" &&
|
|
3068
|
+
i === "input" && tt.test(e.type) ? t.checked = e.checked : (i === "input" || i === "textarea") && (t.defaultValue = e.defaultValue);
|
|
2991
3069
|
}
|
|
2992
|
-
function
|
|
2993
|
-
t =
|
|
2994
|
-
var s, o, u, c, l, h, x = 0, T = e.length, y = T - 1,
|
|
2995
|
-
if (
|
|
2996
|
-
return e.each(function(
|
|
2997
|
-
var
|
|
2998
|
-
|
|
3070
|
+
function ze(e, t, i, n) {
|
|
3071
|
+
t = N(t);
|
|
3072
|
+
var s, o, u, c, l, h, x = 0, T = e.length, y = T - 1, w = t[0], j = O(w);
|
|
3073
|
+
if (j || T > 1 && typeof w == "string" && !F.checkClone && cn.test(w))
|
|
3074
|
+
return e.each(function($) {
|
|
3075
|
+
var W = e.eq($);
|
|
3076
|
+
j && (t[0] = w.call(this, $, W.html())), ze(W, t, i, n);
|
|
2999
3077
|
});
|
|
3000
|
-
if (T && (s =
|
|
3001
|
-
for (u = r.map(
|
|
3002
|
-
l = s, x !== y && (l = r.clone(l, !0, !0), c && r.merge(u,
|
|
3078
|
+
if (T && (s = ci(t, e[0].ownerDocument, !1, e, n), o = s.firstChild, s.childNodes.length === 1 && (s = o), o || n)) {
|
|
3079
|
+
for (u = r.map(ae(s, "script"), hn), c = u.length; x < T; x++)
|
|
3080
|
+
l = s, x !== y && (l = r.clone(l, !0, !0), c && r.merge(u, ae(l, "script"))), i.call(e[x], l, x);
|
|
3003
3081
|
if (c)
|
|
3004
3082
|
for (h = u[u.length - 1].ownerDocument, r.map(u, pn), x = 0; x < c; x++)
|
|
3005
|
-
l = u[x],
|
|
3083
|
+
l = u[x], li.test(l.type || "") && !I.access(l, "globalEval") && r.contains(h, l) && (l.src && (l.type || "").toLowerCase() !== "module" ? r._evalUrl && !l.noModule && r._evalUrl(l.src, {
|
|
3006
3084
|
nonce: l.nonce || l.getAttribute("nonce")
|
|
3007
|
-
}, h) :
|
|
3085
|
+
}, h) : Jt(l.textContent.replace(dn, ""), l, h));
|
|
3008
3086
|
}
|
|
3009
3087
|
return e;
|
|
3010
3088
|
}
|
|
3011
|
-
function
|
|
3089
|
+
function gi(e, t, i) {
|
|
3012
3090
|
for (var n, s = t ? r.filter(t, e) : e, o = 0; (n = s[o]) != null; o++)
|
|
3013
|
-
!i && n.nodeType === 1 && r.cleanData(
|
|
3091
|
+
!i && n.nodeType === 1 && r.cleanData(ae(n)), n.parentNode && (i && Be(n) && Dt(ae(n, "script")), n.parentNode.removeChild(n));
|
|
3014
3092
|
return e;
|
|
3015
3093
|
}
|
|
3016
3094
|
r.extend({
|
|
@@ -3018,73 +3096,73 @@ function Cr() {
|
|
|
3018
3096
|
return e;
|
|
3019
3097
|
},
|
|
3020
3098
|
clone: function(e, t, i) {
|
|
3021
|
-
var n, s, o, u, c = e.cloneNode(!0), l =
|
|
3022
|
-
if (!
|
|
3023
|
-
for (u =
|
|
3099
|
+
var n, s, o, u, c = e.cloneNode(!0), l = Be(e);
|
|
3100
|
+
if (!F.noCloneChecked && (e.nodeType === 1 || e.nodeType === 11) && !r.isXMLDoc(e))
|
|
3101
|
+
for (u = ae(c), o = ae(e), n = 0, s = o.length; n < s; n++)
|
|
3024
3102
|
gn(o[n], u[n]);
|
|
3025
3103
|
if (t)
|
|
3026
3104
|
if (i)
|
|
3027
|
-
for (o = o ||
|
|
3028
|
-
|
|
3105
|
+
for (o = o || ae(e), u = u || ae(c), n = 0, s = o.length; n < s; n++)
|
|
3106
|
+
pi(o[n], u[n]);
|
|
3029
3107
|
else
|
|
3030
|
-
|
|
3031
|
-
return u =
|
|
3108
|
+
pi(e, c);
|
|
3109
|
+
return u = ae(c, "script"), u.length > 0 && Dt(u, !l && ae(e, "script")), c;
|
|
3032
3110
|
},
|
|
3033
3111
|
cleanData: function(e) {
|
|
3034
3112
|
for (var t, i, n, s = r.event.special, o = 0; (i = e[o]) !== void 0; o++)
|
|
3035
|
-
if (
|
|
3113
|
+
if (Ke(i)) {
|
|
3036
3114
|
if (t = i[I.expando]) {
|
|
3037
3115
|
if (t.events)
|
|
3038
3116
|
for (n in t.events)
|
|
3039
3117
|
s[n] ? r.event.remove(i, n) : r.removeEvent(i, n, t.handle);
|
|
3040
3118
|
i[I.expando] = void 0;
|
|
3041
3119
|
}
|
|
3042
|
-
i[
|
|
3120
|
+
i[oe.expando] && (i[oe.expando] = void 0);
|
|
3043
3121
|
}
|
|
3044
3122
|
}
|
|
3045
3123
|
}), r.fn.extend({
|
|
3046
3124
|
detach: function(e) {
|
|
3047
|
-
return
|
|
3125
|
+
return gi(this, e, !0);
|
|
3048
3126
|
},
|
|
3049
3127
|
remove: function(e) {
|
|
3050
|
-
return
|
|
3128
|
+
return gi(this, e);
|
|
3051
3129
|
},
|
|
3052
3130
|
text: function(e) {
|
|
3053
|
-
return
|
|
3131
|
+
return Ce(this, function(t) {
|
|
3054
3132
|
return t === void 0 ? r.text(this) : this.empty().each(function() {
|
|
3055
3133
|
(this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9) && (this.textContent = t);
|
|
3056
3134
|
});
|
|
3057
3135
|
}, null, e, arguments.length);
|
|
3058
3136
|
},
|
|
3059
3137
|
append: function() {
|
|
3060
|
-
return
|
|
3138
|
+
return ze(this, arguments, function(e) {
|
|
3061
3139
|
if (this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9) {
|
|
3062
|
-
var t =
|
|
3140
|
+
var t = hi(this, e);
|
|
3063
3141
|
t.appendChild(e);
|
|
3064
3142
|
}
|
|
3065
3143
|
});
|
|
3066
3144
|
},
|
|
3067
3145
|
prepend: function() {
|
|
3068
|
-
return
|
|
3146
|
+
return ze(this, arguments, function(e) {
|
|
3069
3147
|
if (this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9) {
|
|
3070
|
-
var t =
|
|
3148
|
+
var t = hi(this, e);
|
|
3071
3149
|
t.insertBefore(e, t.firstChild);
|
|
3072
3150
|
}
|
|
3073
3151
|
});
|
|
3074
3152
|
},
|
|
3075
3153
|
before: function() {
|
|
3076
|
-
return
|
|
3154
|
+
return ze(this, arguments, function(e) {
|
|
3077
3155
|
this.parentNode && this.parentNode.insertBefore(e, this);
|
|
3078
3156
|
});
|
|
3079
3157
|
},
|
|
3080
3158
|
after: function() {
|
|
3081
|
-
return
|
|
3159
|
+
return ze(this, arguments, function(e) {
|
|
3082
3160
|
this.parentNode && this.parentNode.insertBefore(e, this.nextSibling);
|
|
3083
3161
|
});
|
|
3084
3162
|
},
|
|
3085
3163
|
empty: function() {
|
|
3086
3164
|
for (var e, t = 0; (e = this[t]) != null; t++)
|
|
3087
|
-
e.nodeType === 1 && (r.cleanData(
|
|
3165
|
+
e.nodeType === 1 && (r.cleanData(ae(e, !1)), e.textContent = "");
|
|
3088
3166
|
return this;
|
|
3089
3167
|
},
|
|
3090
3168
|
clone: function(e, t) {
|
|
@@ -3093,15 +3171,15 @@ function Cr() {
|
|
|
3093
3171
|
});
|
|
3094
3172
|
},
|
|
3095
3173
|
html: function(e) {
|
|
3096
|
-
return
|
|
3174
|
+
return Ce(this, function(t) {
|
|
3097
3175
|
var i = this[0] || {}, n = 0, s = this.length;
|
|
3098
3176
|
if (t === void 0 && i.nodeType === 1)
|
|
3099
3177
|
return i.innerHTML;
|
|
3100
|
-
if (typeof t == "string" && !ln.test(t) && !
|
|
3178
|
+
if (typeof t == "string" && !ln.test(t) && !ce[(fi.exec(t) || ["", ""])[1].toLowerCase()]) {
|
|
3101
3179
|
t = r.htmlPrefilter(t);
|
|
3102
3180
|
try {
|
|
3103
3181
|
for (; n < s; n++)
|
|
3104
|
-
i = this[n] || {}, i.nodeType === 1 && (r.cleanData(
|
|
3182
|
+
i = this[n] || {}, i.nodeType === 1 && (r.cleanData(ae(i, !1)), i.innerHTML = t);
|
|
3105
3183
|
i = 0;
|
|
3106
3184
|
} catch {
|
|
3107
3185
|
}
|
|
@@ -3111,9 +3189,9 @@ function Cr() {
|
|
|
3111
3189
|
},
|
|
3112
3190
|
replaceWith: function() {
|
|
3113
3191
|
var e = [];
|
|
3114
|
-
return
|
|
3192
|
+
return ze(this, arguments, function(t) {
|
|
3115
3193
|
var i = this.parentNode;
|
|
3116
|
-
r.inArray(this, e) < 0 && (r.cleanData(
|
|
3194
|
+
r.inArray(this, e) < 0 && (r.cleanData(ae(this)), i && i.replaceChild(t, this));
|
|
3117
3195
|
}, e);
|
|
3118
3196
|
}
|
|
3119
3197
|
}), r.each({
|
|
@@ -3125,14 +3203,14 @@ function Cr() {
|
|
|
3125
3203
|
}, function(e, t) {
|
|
3126
3204
|
r.fn[e] = function(i) {
|
|
3127
3205
|
for (var n, s = [], o = r(i), u = o.length - 1, c = 0; c <= u; c++)
|
|
3128
|
-
n = c === u ? this : this.clone(!0), r(o[c])[t](n),
|
|
3206
|
+
n = c === u ? this : this.clone(!0), r(o[c])[t](n), _.apply(s, n.get());
|
|
3129
3207
|
return this.pushStack(s);
|
|
3130
3208
|
};
|
|
3131
3209
|
});
|
|
3132
|
-
var
|
|
3210
|
+
var Nt = new RegExp("^(" + oi + ")(?!px)[a-z%]+$", "i"), It = /^--/, gt = function(e) {
|
|
3133
3211
|
var t = e.ownerDocument.defaultView;
|
|
3134
3212
|
return (!t || !t.opener) && (t = a), t.getComputedStyle(e);
|
|
3135
|
-
},
|
|
3213
|
+
}, yi = function(e, t, i) {
|
|
3136
3214
|
var n, s, o = {};
|
|
3137
3215
|
for (s in t)
|
|
3138
3216
|
o[s] = e.style[s], e.style[s] = t[s];
|
|
@@ -3140,20 +3218,20 @@ function Cr() {
|
|
|
3140
3218
|
for (s in t)
|
|
3141
3219
|
e.style[s] = o[s];
|
|
3142
3220
|
return n;
|
|
3143
|
-
}, yn = new RegExp(
|
|
3221
|
+
}, yn = new RegExp(ke.join("|"), "i");
|
|
3144
3222
|
(function() {
|
|
3145
3223
|
function e() {
|
|
3146
3224
|
if (h) {
|
|
3147
|
-
l.style.cssText = "position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0", h.style.cssText = "position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",
|
|
3225
|
+
l.style.cssText = "position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0", h.style.cssText = "position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%", Le.appendChild(l).appendChild(h);
|
|
3148
3226
|
var x = a.getComputedStyle(h);
|
|
3149
|
-
i = x.top !== "1%", c = t(x.marginLeft) === 12, h.style.right = "60%", o = t(x.right) === 36, n = t(x.width) === 36, h.style.position = "absolute", s = t(h.offsetWidth / 3) === 12,
|
|
3227
|
+
i = x.top !== "1%", c = t(x.marginLeft) === 12, h.style.right = "60%", o = t(x.right) === 36, n = t(x.width) === 36, h.style.position = "absolute", s = t(h.offsetWidth / 3) === 12, Le.removeChild(l), h = null;
|
|
3150
3228
|
}
|
|
3151
3229
|
}
|
|
3152
3230
|
function t(x) {
|
|
3153
3231
|
return Math.round(parseFloat(x));
|
|
3154
3232
|
}
|
|
3155
|
-
var i, n, s, o, u, c, l =
|
|
3156
|
-
h.style && (h.style.backgroundClip = "content-box", h.cloneNode(!0).style.backgroundClip = "",
|
|
3233
|
+
var i, n, s, o, u, c, l = H.createElement("div"), h = H.createElement("div");
|
|
3234
|
+
h.style && (h.style.backgroundClip = "content-box", h.cloneNode(!0).style.backgroundClip = "", F.clearCloneStyle = h.style.backgroundClip === "content-box", r.extend(F, {
|
|
3157
3235
|
boxSizingReliable: function() {
|
|
3158
3236
|
return e(), n;
|
|
3159
3237
|
},
|
|
@@ -3179,20 +3257,20 @@ function Cr() {
|
|
|
3179
3257
|
// Only Firefox includes border widths
|
|
3180
3258
|
// in computed dimensions. (gh-4529)
|
|
3181
3259
|
reliableTrDimensions: function() {
|
|
3182
|
-
var x, T, y,
|
|
3183
|
-
return u == null && (x =
|
|
3260
|
+
var x, T, y, w;
|
|
3261
|
+
return u == null && (x = H.createElement("table"), T = H.createElement("tr"), y = H.createElement("div"), x.style.cssText = "position:absolute;left:-11111px;border-collapse:separate", T.style.cssText = "box-sizing:content-box;border:1px solid", T.style.height = "1px", y.style.height = "9px", y.style.display = "block", Le.appendChild(x).appendChild(T).appendChild(y), w = a.getComputedStyle(T), u = parseInt(w.height, 10) + parseInt(w.borderTopWidth, 10) + parseInt(w.borderBottomWidth, 10) === T.offsetHeight, Le.removeChild(x)), u;
|
|
3184
3262
|
}
|
|
3185
3263
|
}));
|
|
3186
3264
|
})();
|
|
3187
|
-
function
|
|
3188
|
-
var n, s, o, u, c =
|
|
3189
|
-
return i = i ||
|
|
3265
|
+
function it(e, t, i) {
|
|
3266
|
+
var n, s, o, u, c = It.test(t), l = e.style;
|
|
3267
|
+
return i = i || gt(e), i && (u = i.getPropertyValue(t) || i[t], c && u && (u = u.replace(Je, "$1") || void 0), u === "" && !Be(e) && (u = r.style(e, t)), !F.pixelBoxStyles() && Nt.test(u) && yn.test(t) && (n = l.width, s = l.minWidth, o = l.maxWidth, l.minWidth = l.maxWidth = l.width = u, u = i.width, l.width = n, l.minWidth = s, l.maxWidth = o)), u !== void 0 ? (
|
|
3190
3268
|
// Support: IE <=9 - 11 only
|
|
3191
3269
|
// IE returns zIndex value as an integer.
|
|
3192
3270
|
u + ""
|
|
3193
3271
|
) : u;
|
|
3194
3272
|
}
|
|
3195
|
-
function
|
|
3273
|
+
function mi(e, t) {
|
|
3196
3274
|
return {
|
|
3197
3275
|
get: function() {
|
|
3198
3276
|
if (e()) {
|
|
@@ -3203,56 +3281,56 @@ function Cr() {
|
|
|
3203
3281
|
}
|
|
3204
3282
|
};
|
|
3205
3283
|
}
|
|
3206
|
-
var
|
|
3284
|
+
var vi = ["Webkit", "Moz", "ms"], xi = H.createElement("div").style, bi = {};
|
|
3207
3285
|
function mn(e) {
|
|
3208
|
-
for (var t = e[0].toUpperCase() + e.slice(1), i =
|
|
3209
|
-
if (e =
|
|
3286
|
+
for (var t = e[0].toUpperCase() + e.slice(1), i = vi.length; i--; )
|
|
3287
|
+
if (e = vi[i] + t, e in xi)
|
|
3210
3288
|
return e;
|
|
3211
3289
|
}
|
|
3212
|
-
function
|
|
3213
|
-
var t = r.cssProps[e] ||
|
|
3214
|
-
return t || (e in
|
|
3290
|
+
function Lt(e) {
|
|
3291
|
+
var t = r.cssProps[e] || bi[e];
|
|
3292
|
+
return t || (e in xi ? e : bi[e] = mn(e) || e);
|
|
3215
3293
|
}
|
|
3216
|
-
var vn = /^(none|table(?!-c[ea]).+)/, xn = { position: "absolute", visibility: "hidden", display: "block" },
|
|
3294
|
+
var vn = /^(none|table(?!-c[ea]).+)/, xn = { position: "absolute", visibility: "hidden", display: "block" }, Ti = {
|
|
3217
3295
|
letterSpacing: "0",
|
|
3218
3296
|
fontWeight: "400"
|
|
3219
3297
|
};
|
|
3220
3298
|
function Si(e, t, i) {
|
|
3221
|
-
var n =
|
|
3299
|
+
var n = et.exec(t);
|
|
3222
3300
|
return n ? (
|
|
3223
3301
|
// Guard against undefined "subtract", e.g., when used as in cssHooks
|
|
3224
3302
|
Math.max(0, n[2] - (i || 0)) + (n[3] || "px")
|
|
3225
3303
|
) : t;
|
|
3226
3304
|
}
|
|
3227
|
-
function
|
|
3305
|
+
function qt(e, t, i, n, s, o) {
|
|
3228
3306
|
var u = t === "width" ? 1 : 0, c = 0, l = 0, h = 0;
|
|
3229
3307
|
if (i === (n ? "border" : "content"))
|
|
3230
3308
|
return 0;
|
|
3231
3309
|
for (; u < 4; u += 2)
|
|
3232
|
-
i === "margin" && (h += r.css(e, i +
|
|
3310
|
+
i === "margin" && (h += r.css(e, i + ke[u], !0, s)), n ? (i === "content" && (l -= r.css(e, "padding" + ke[u], !0, s)), i !== "margin" && (l -= r.css(e, "border" + ke[u] + "Width", !0, s))) : (l += r.css(e, "padding" + ke[u], !0, s), i !== "padding" ? l += r.css(e, "border" + ke[u] + "Width", !0, s) : c += r.css(e, "border" + ke[u] + "Width", !0, s));
|
|
3233
3311
|
return !n && o >= 0 && (l += Math.max(0, Math.ceil(
|
|
3234
3312
|
e["offset" + t[0].toUpperCase() + t.slice(1)] - o - l - c - 0.5
|
|
3235
3313
|
// If offsetWidth/offsetHeight is unknown, then we can't determine content-box scroll gutter
|
|
3236
3314
|
// Use an explicit zero to avoid NaN (gh-3964)
|
|
3237
3315
|
)) || 0), l + h;
|
|
3238
3316
|
}
|
|
3239
|
-
function
|
|
3240
|
-
var n =
|
|
3241
|
-
if (
|
|
3317
|
+
function wi(e, t, i) {
|
|
3318
|
+
var n = gt(e), s = !F.boxSizingReliable() || i, o = s && r.css(e, "boxSizing", !1, n) === "border-box", u = o, c = it(e, t, n), l = "offset" + t[0].toUpperCase() + t.slice(1);
|
|
3319
|
+
if (Nt.test(c)) {
|
|
3242
3320
|
if (!i)
|
|
3243
3321
|
return c;
|
|
3244
3322
|
c = "auto";
|
|
3245
3323
|
}
|
|
3246
|
-
return (!
|
|
3324
|
+
return (!F.boxSizingReliable() && o || // Support: IE 10 - 11+, Edge 15 - 18+
|
|
3247
3325
|
// IE/Edge misreport `getComputedStyle` of table rows with width/height
|
|
3248
3326
|
// set in CSS while `offset*` properties report correct values.
|
|
3249
3327
|
// Interestingly, in some cases IE 9 doesn't suffer from this issue.
|
|
3250
|
-
!
|
|
3328
|
+
!F.reliableTrDimensions() && K(e, "tr") || // Fall back to offsetWidth/offsetHeight when value is "auto"
|
|
3251
3329
|
// This happens for inline elements with no explicit setting (gh-3571)
|
|
3252
3330
|
c === "auto" || // Support: Android <=4.1 - 4.3 only
|
|
3253
3331
|
// Also use offsetWidth/offsetHeight for misreported inline dimensions (gh-3602)
|
|
3254
3332
|
!parseFloat(c) && r.css(e, "display", !1, n) === "inline") && // Make sure the element is visible & connected
|
|
3255
|
-
e.getClientRects().length && (o = r.css(e, "boxSizing", !1, n) === "border-box", u = l in e, u && (c = e[l])), c = parseFloat(c) || 0, c +
|
|
3333
|
+
e.getClientRects().length && (o = r.css(e, "boxSizing", !1, n) === "border-box", u = l in e, u && (c = e[l])), c = parseFloat(c) || 0, c + qt(
|
|
3256
3334
|
e,
|
|
3257
3335
|
t,
|
|
3258
3336
|
i || (o ? "border" : "content"),
|
|
@@ -3269,7 +3347,7 @@ function Cr() {
|
|
|
3269
3347
|
opacity: {
|
|
3270
3348
|
get: function(e, t) {
|
|
3271
3349
|
if (t) {
|
|
3272
|
-
var i =
|
|
3350
|
+
var i = it(e, "opacity");
|
|
3273
3351
|
return i === "" ? "1" : i;
|
|
3274
3352
|
}
|
|
3275
3353
|
}
|
|
@@ -3312,18 +3390,18 @@ function Cr() {
|
|
|
3312
3390
|
// Get and set the style property on a DOM Node
|
|
3313
3391
|
style: function(e, t, i, n) {
|
|
3314
3392
|
if (!(!e || e.nodeType === 3 || e.nodeType === 8 || !e.style)) {
|
|
3315
|
-
var s, o, u, c =
|
|
3316
|
-
if (l || (t =
|
|
3317
|
-
if (o = typeof i, o === "string" && (s =
|
|
3393
|
+
var s, o, u, c = me(t), l = It.test(t), h = e.style;
|
|
3394
|
+
if (l || (t = Lt(c)), u = r.cssHooks[t] || r.cssHooks[c], i !== void 0) {
|
|
3395
|
+
if (o = typeof i, o === "string" && (s = et.exec(i)) && s[1] && (i = ai(e, t, s), o = "number"), i == null || i !== i)
|
|
3318
3396
|
return;
|
|
3319
|
-
o === "number" && !l && (i += s && s[3] || (r.cssNumber[c] ? "" : "px")), !
|
|
3397
|
+
o === "number" && !l && (i += s && s[3] || (r.cssNumber[c] ? "" : "px")), !F.clearCloneStyle && i === "" && t.indexOf("background") === 0 && (h[t] = "inherit"), (!u || !("set" in u) || (i = u.set(e, i, n)) !== void 0) && (l ? h.setProperty(t, i) : h[t] = i);
|
|
3320
3398
|
} else
|
|
3321
3399
|
return u && "get" in u && (s = u.get(e, !1, n)) !== void 0 ? s : h[t];
|
|
3322
3400
|
}
|
|
3323
3401
|
},
|
|
3324
3402
|
css: function(e, t, i, n) {
|
|
3325
|
-
var s, o, u, c =
|
|
3326
|
-
return l || (t =
|
|
3403
|
+
var s, o, u, c = me(t), l = It.test(t);
|
|
3404
|
+
return l || (t = Lt(c)), u = r.cssHooks[t] || r.cssHooks[c], u && "get" in u && (s = u.get(e, !0, i)), s === void 0 && (s = it(e, t, n)), s === "normal" && t in Ti && (s = Ti[t]), i === "" || i ? (o = parseFloat(s), i === !0 || isFinite(o) ? o || 0 : s) : s;
|
|
3327
3405
|
}
|
|
3328
3406
|
}), r.each(["height", "width"], function(e, t) {
|
|
3329
3407
|
r.cssHooks[t] = {
|
|
@@ -3335,12 +3413,12 @@ function Cr() {
|
|
|
3335
3413
|
// Support: IE <=11 only
|
|
3336
3414
|
// Running getBoundingClientRect on a disconnected node
|
|
3337
3415
|
// in IE throws an error.
|
|
3338
|
-
(!i.getClientRects().length || !i.getBoundingClientRect().width) ?
|
|
3339
|
-
return
|
|
3340
|
-
}) :
|
|
3416
|
+
(!i.getClientRects().length || !i.getBoundingClientRect().width) ? yi(i, xn, function() {
|
|
3417
|
+
return wi(i, t, s);
|
|
3418
|
+
}) : wi(i, t, s);
|
|
3341
3419
|
},
|
|
3342
3420
|
set: function(i, n, s) {
|
|
3343
|
-
var o, u =
|
|
3421
|
+
var o, u = gt(i), c = !F.scrollboxSize() && u.position === "absolute", l = c || s, h = l && r.css(i, "boxSizing", !1, u) === "border-box", x = s ? qt(
|
|
3344
3422
|
i,
|
|
3345
3423
|
t,
|
|
3346
3424
|
s,
|
|
@@ -3348,15 +3426,15 @@ function Cr() {
|
|
|
3348
3426
|
u
|
|
3349
3427
|
) : 0;
|
|
3350
3428
|
return h && c && (x -= Math.ceil(
|
|
3351
|
-
i["offset" + t[0].toUpperCase() + t.slice(1)] - parseFloat(u[t]) -
|
|
3352
|
-
)), x && (o =
|
|
3429
|
+
i["offset" + t[0].toUpperCase() + t.slice(1)] - parseFloat(u[t]) - qt(i, t, "border", !1, u) - 0.5
|
|
3430
|
+
)), x && (o = et.exec(n)) && (o[3] || "px") !== "px" && (i.style[t] = n, n = r.css(i, t)), Si(i, n, x);
|
|
3353
3431
|
}
|
|
3354
3432
|
};
|
|
3355
|
-
}), r.cssHooks.marginLeft =
|
|
3356
|
-
|
|
3433
|
+
}), r.cssHooks.marginLeft = mi(
|
|
3434
|
+
F.reliableMarginLeft,
|
|
3357
3435
|
function(e, t) {
|
|
3358
3436
|
if (t)
|
|
3359
|
-
return (parseFloat(
|
|
3437
|
+
return (parseFloat(it(e, "marginLeft")) || e.getBoundingClientRect().left - yi(e, { marginLeft: 0 }, function() {
|
|
3360
3438
|
return e.getBoundingClientRect().left;
|
|
3361
3439
|
})) + "px";
|
|
3362
3440
|
}
|
|
@@ -3368,16 +3446,16 @@ function Cr() {
|
|
|
3368
3446
|
r.cssHooks[e + t] = {
|
|
3369
3447
|
expand: function(i) {
|
|
3370
3448
|
for (var n = 0, s = {}, o = typeof i == "string" ? i.split(" ") : [i]; n < 4; n++)
|
|
3371
|
-
s[e +
|
|
3449
|
+
s[e + ke[n] + t] = o[n] || o[n - 2] || o[0];
|
|
3372
3450
|
return s;
|
|
3373
3451
|
}
|
|
3374
3452
|
}, e !== "margin" && (r.cssHooks[e + t].set = Si);
|
|
3375
3453
|
}), r.fn.extend({
|
|
3376
3454
|
css: function(e, t) {
|
|
3377
|
-
return
|
|
3455
|
+
return Ce(this, function(i, n, s) {
|
|
3378
3456
|
var o, u, c = {}, l = 0;
|
|
3379
3457
|
if (Array.isArray(n)) {
|
|
3380
|
-
for (o =
|
|
3458
|
+
for (o = gt(i), u = n.length; l < u; l++)
|
|
3381
3459
|
c[n[l]] = r.css(i, n[l], !1, o);
|
|
3382
3460
|
return c;
|
|
3383
3461
|
}
|
|
@@ -3385,39 +3463,39 @@ function Cr() {
|
|
|
3385
3463
|
}, e, t, arguments.length > 1);
|
|
3386
3464
|
}
|
|
3387
3465
|
});
|
|
3388
|
-
function
|
|
3389
|
-
return new
|
|
3466
|
+
function ue(e, t, i, n, s) {
|
|
3467
|
+
return new ue.prototype.init(e, t, i, n, s);
|
|
3390
3468
|
}
|
|
3391
|
-
r.Tween =
|
|
3392
|
-
constructor:
|
|
3469
|
+
r.Tween = ue, ue.prototype = {
|
|
3470
|
+
constructor: ue,
|
|
3393
3471
|
init: function(e, t, i, n, s, o) {
|
|
3394
3472
|
this.elem = e, this.prop = i, this.easing = s || r.easing._default, this.options = t, this.start = this.now = this.cur(), this.end = n, this.unit = o || (r.cssNumber[i] ? "" : "px");
|
|
3395
3473
|
},
|
|
3396
3474
|
cur: function() {
|
|
3397
|
-
var e =
|
|
3398
|
-
return e && e.get ? e.get(this) :
|
|
3475
|
+
var e = ue.propHooks[this.prop];
|
|
3476
|
+
return e && e.get ? e.get(this) : ue.propHooks._default.get(this);
|
|
3399
3477
|
},
|
|
3400
3478
|
run: function(e) {
|
|
3401
|
-
var t, i =
|
|
3479
|
+
var t, i = ue.propHooks[this.prop];
|
|
3402
3480
|
return this.options.duration ? this.pos = t = r.easing[this.easing](
|
|
3403
3481
|
e,
|
|
3404
3482
|
this.options.duration * e,
|
|
3405
3483
|
0,
|
|
3406
3484
|
1,
|
|
3407
3485
|
this.options.duration
|
|
3408
|
-
) : this.pos = t = e, this.now = (this.end - this.start) * t + this.start, this.options.step && this.options.step.call(this.elem, this.now, this), i && i.set ? i.set(this) :
|
|
3486
|
+
) : this.pos = t = e, this.now = (this.end - this.start) * t + this.start, this.options.step && this.options.step.call(this.elem, this.now, this), i && i.set ? i.set(this) : ue.propHooks._default.set(this), this;
|
|
3409
3487
|
}
|
|
3410
|
-
},
|
|
3488
|
+
}, ue.prototype.init.prototype = ue.prototype, ue.propHooks = {
|
|
3411
3489
|
_default: {
|
|
3412
3490
|
get: function(e) {
|
|
3413
3491
|
var t;
|
|
3414
3492
|
return e.elem.nodeType !== 1 || e.elem[e.prop] != null && e.elem.style[e.prop] == null ? e.elem[e.prop] : (t = r.css(e.elem, e.prop, ""), !t || t === "auto" ? 0 : t);
|
|
3415
3493
|
},
|
|
3416
3494
|
set: function(e) {
|
|
3417
|
-
r.fx.step[e.prop] ? r.fx.step[e.prop](e) : e.elem.nodeType === 1 && (r.cssHooks[e.prop] || e.elem.style[
|
|
3495
|
+
r.fx.step[e.prop] ? r.fx.step[e.prop](e) : e.elem.nodeType === 1 && (r.cssHooks[e.prop] || e.elem.style[Lt(e.prop)] != null) ? r.style(e.elem, e.prop, e.now + e.unit) : e.elem[e.prop] = e.now;
|
|
3418
3496
|
}
|
|
3419
3497
|
}
|
|
3420
|
-
},
|
|
3498
|
+
}, ue.propHooks.scrollTop = ue.propHooks.scrollLeft = {
|
|
3421
3499
|
set: function(e) {
|
|
3422
3500
|
e.elem.nodeType && e.elem.parentNode && (e.elem[e.prop] = e.now);
|
|
3423
3501
|
}
|
|
@@ -3429,29 +3507,29 @@ function Cr() {
|
|
|
3429
3507
|
return 0.5 - Math.cos(e * Math.PI) / 2;
|
|
3430
3508
|
},
|
|
3431
3509
|
_default: "swing"
|
|
3432
|
-
}, r.fx =
|
|
3433
|
-
var
|
|
3434
|
-
function
|
|
3435
|
-
|
|
3510
|
+
}, r.fx = ue.prototype.init, r.fx.step = {};
|
|
3511
|
+
var Xe, yt, bn = /^(?:toggle|show|hide)$/, Tn = /queueHooks$/;
|
|
3512
|
+
function jt() {
|
|
3513
|
+
yt && (H.hidden === !1 && a.requestAnimationFrame ? a.requestAnimationFrame(jt) : a.setTimeout(jt, r.fx.interval), r.fx.tick());
|
|
3436
3514
|
}
|
|
3437
|
-
function
|
|
3515
|
+
function Ci() {
|
|
3438
3516
|
return a.setTimeout(function() {
|
|
3439
|
-
|
|
3440
|
-
}),
|
|
3517
|
+
Xe = void 0;
|
|
3518
|
+
}), Xe = Date.now();
|
|
3441
3519
|
}
|
|
3442
|
-
function
|
|
3520
|
+
function mt(e, t) {
|
|
3443
3521
|
var i, n = 0, s = { height: e };
|
|
3444
3522
|
for (t = t ? 1 : 0; n < 4; n += 2 - t)
|
|
3445
|
-
i =
|
|
3523
|
+
i = ke[n], s["margin" + i] = s["padding" + i] = e;
|
|
3446
3524
|
return t && (s.opacity = s.width = e), s;
|
|
3447
3525
|
}
|
|
3448
|
-
function
|
|
3449
|
-
for (var n, s = (
|
|
3526
|
+
function ki(e, t, i) {
|
|
3527
|
+
for (var n, s = (pe.tweeners[t] || []).concat(pe.tweeners["*"]), o = 0, u = s.length; o < u; o++)
|
|
3450
3528
|
if (n = s[o].call(i, t, e))
|
|
3451
3529
|
return n;
|
|
3452
3530
|
}
|
|
3453
|
-
function
|
|
3454
|
-
var n, s, o, u, c, l, h, x, T = "width" in t || "height" in t, y = this,
|
|
3531
|
+
function Sn(e, t, i) {
|
|
3532
|
+
var n, s, o, u, c, l, h, x, T = "width" in t || "height" in t, y = this, w = {}, j = e.style, $ = e.nodeType && ht(e), W = I.get(e, "fxshow");
|
|
3455
3533
|
i.queue || (u = r._queueHooks(e, "fx"), u.unqueued == null && (u.unqueued = 0, c = u.empty.fire, u.empty.fire = function() {
|
|
3456
3534
|
u.unqueued || c();
|
|
3457
3535
|
}), u.unqueued++, y.always(function() {
|
|
@@ -3461,46 +3539,46 @@ function Cr() {
|
|
|
3461
3539
|
}));
|
|
3462
3540
|
for (n in t)
|
|
3463
3541
|
if (s = t[n], bn.test(s)) {
|
|
3464
|
-
if (delete t[n], o = o || s === "toggle", s === (
|
|
3465
|
-
if (s === "show" &&
|
|
3466
|
-
|
|
3542
|
+
if (delete t[n], o = o || s === "toggle", s === ($ ? "hide" : "show"))
|
|
3543
|
+
if (s === "show" && W && W[n] !== void 0)
|
|
3544
|
+
$ = !0;
|
|
3467
3545
|
else
|
|
3468
3546
|
continue;
|
|
3469
|
-
|
|
3547
|
+
w[n] = W && W[n] || r.style(e, n);
|
|
3470
3548
|
}
|
|
3471
|
-
if (l = !r.isEmptyObject(t), !(!l && r.isEmptyObject(
|
|
3472
|
-
T && e.nodeType === 1 && (i.overflow = [
|
|
3473
|
-
|
|
3474
|
-
}), h == null && (x =
|
|
3475
|
-
|
|
3549
|
+
if (l = !r.isEmptyObject(t), !(!l && r.isEmptyObject(w))) {
|
|
3550
|
+
T && e.nodeType === 1 && (i.overflow = [j.overflow, j.overflowX, j.overflowY], h = W && W.display, h == null && (h = I.get(e, "display")), x = r.css(e, "display"), x === "none" && (h ? x = h : (_e([e], !0), h = e.style.display || h, x = r.css(e, "display"), _e([e]))), (x === "inline" || x === "inline-block" && h != null) && r.css(e, "float") === "none" && (l || (y.done(function() {
|
|
3551
|
+
j.display = h;
|
|
3552
|
+
}), h == null && (x = j.display, h = x === "none" ? "" : x)), j.display = "inline-block")), i.overflow && (j.overflow = "hidden", y.always(function() {
|
|
3553
|
+
j.overflow = i.overflow[0], j.overflowX = i.overflow[1], j.overflowY = i.overflow[2];
|
|
3476
3554
|
})), l = !1;
|
|
3477
|
-
for (n in
|
|
3478
|
-
l || (
|
|
3479
|
-
|
|
3480
|
-
for (n in
|
|
3481
|
-
r.style(e, n,
|
|
3482
|
-
})), l =
|
|
3555
|
+
for (n in w)
|
|
3556
|
+
l || (W ? "hidden" in W && ($ = W.hidden) : W = I.access(e, "fxshow", { display: h }), o && (W.hidden = !$), $ && _e([e], !0), y.done(function() {
|
|
3557
|
+
$ || _e([e]), I.remove(e, "fxshow");
|
|
3558
|
+
for (n in w)
|
|
3559
|
+
r.style(e, n, w[n]);
|
|
3560
|
+
})), l = ki($ ? W[n] : 0, n, y), n in W || (W[n] = l.start, $ && (l.end = l.start, l.start = 0));
|
|
3483
3561
|
}
|
|
3484
3562
|
}
|
|
3485
|
-
function
|
|
3563
|
+
function wn(e, t) {
|
|
3486
3564
|
var i, n, s, o, u;
|
|
3487
3565
|
for (i in e)
|
|
3488
|
-
if (n =
|
|
3566
|
+
if (n = me(i), s = t[n], o = e[i], Array.isArray(o) && (s = o[1], o = e[i] = o[0]), i !== n && (e[n] = o, delete e[i]), u = r.cssHooks[n], u && "expand" in u) {
|
|
3489
3567
|
o = u.expand(o), delete e[n];
|
|
3490
3568
|
for (i in o)
|
|
3491
3569
|
i in e || (e[i] = o[i], t[i] = s);
|
|
3492
3570
|
} else
|
|
3493
3571
|
t[n] = s;
|
|
3494
3572
|
}
|
|
3495
|
-
function
|
|
3496
|
-
var n, s, o = 0, u =
|
|
3573
|
+
function pe(e, t, i) {
|
|
3574
|
+
var n, s, o = 0, u = pe.prefilters.length, c = r.Deferred().always(function() {
|
|
3497
3575
|
delete l.elem;
|
|
3498
3576
|
}), l = function() {
|
|
3499
3577
|
if (s)
|
|
3500
3578
|
return !1;
|
|
3501
|
-
for (var T =
|
|
3502
|
-
h.tweens[
|
|
3503
|
-
return c.notifyWith(e, [h,
|
|
3579
|
+
for (var T = Xe || Ci(), y = Math.max(0, h.startTime + h.duration - T), w = y / h.duration || 0, j = 1 - w, $ = 0, W = h.tweens.length; $ < W; $++)
|
|
3580
|
+
h.tweens[$].run(j);
|
|
3581
|
+
return c.notifyWith(e, [h, j, y]), j < 1 && W ? y : (W || c.notifyWith(e, [h, 1, 0]), c.resolveWith(e, [h]), !1);
|
|
3504
3582
|
}, h = c.promise({
|
|
3505
3583
|
elem: e,
|
|
3506
3584
|
props: r.extend({}, t),
|
|
@@ -3510,32 +3588,32 @@ function Cr() {
|
|
|
3510
3588
|
}, i),
|
|
3511
3589
|
originalProperties: t,
|
|
3512
3590
|
originalOptions: i,
|
|
3513
|
-
startTime:
|
|
3591
|
+
startTime: Xe || Ci(),
|
|
3514
3592
|
duration: i.duration,
|
|
3515
3593
|
tweens: [],
|
|
3516
3594
|
createTween: function(T, y) {
|
|
3517
|
-
var
|
|
3595
|
+
var w = r.Tween(
|
|
3518
3596
|
e,
|
|
3519
3597
|
h.opts,
|
|
3520
3598
|
T,
|
|
3521
3599
|
y,
|
|
3522
3600
|
h.opts.specialEasing[T] || h.opts.easing
|
|
3523
3601
|
);
|
|
3524
|
-
return h.tweens.push(
|
|
3602
|
+
return h.tweens.push(w), w;
|
|
3525
3603
|
},
|
|
3526
3604
|
stop: function(T) {
|
|
3527
|
-
var y = 0,
|
|
3605
|
+
var y = 0, w = T ? h.tweens.length : 0;
|
|
3528
3606
|
if (s)
|
|
3529
3607
|
return this;
|
|
3530
|
-
for (s = !0; y <
|
|
3608
|
+
for (s = !0; y < w; y++)
|
|
3531
3609
|
h.tweens[y].run(1);
|
|
3532
3610
|
return T ? (c.notifyWith(e, [h, 1, 0]), c.resolveWith(e, [h, T])) : c.rejectWith(e, [h, T]), this;
|
|
3533
3611
|
}
|
|
3534
3612
|
}), x = h.props;
|
|
3535
|
-
for (
|
|
3536
|
-
if (n =
|
|
3537
|
-
return
|
|
3538
|
-
return r.map(x,
|
|
3613
|
+
for (wn(x, h.opts.specialEasing); o < u; o++)
|
|
3614
|
+
if (n = pe.prefilters[o].call(h, e, x, h.opts), n)
|
|
3615
|
+
return O(n.stop) && (r._queueHooks(h.elem, h.opts.queue).stop = n.stop.bind(n)), n;
|
|
3616
|
+
return r.map(x, ki, h), O(h.opts.start) && h.opts.start.call(e, h), h.progress(h.opts.progress).done(h.opts.done, h.opts.complete).fail(h.opts.fail).always(h.opts.always), r.fx.timer(
|
|
3539
3617
|
r.extend(l, {
|
|
3540
3618
|
elem: e,
|
|
3541
3619
|
anim: h,
|
|
@@ -3543,38 +3621,38 @@ function Cr() {
|
|
|
3543
3621
|
})
|
|
3544
3622
|
), h;
|
|
3545
3623
|
}
|
|
3546
|
-
r.Animation = r.extend(
|
|
3624
|
+
r.Animation = r.extend(pe, {
|
|
3547
3625
|
tweeners: {
|
|
3548
3626
|
"*": [function(e, t) {
|
|
3549
3627
|
var i = this.createTween(e, t);
|
|
3550
|
-
return
|
|
3628
|
+
return ai(i.elem, e, et.exec(t), i), i;
|
|
3551
3629
|
}]
|
|
3552
3630
|
},
|
|
3553
3631
|
tweener: function(e, t) {
|
|
3554
|
-
|
|
3632
|
+
O(e) ? (t = e, e = ["*"]) : e = e.match(ye);
|
|
3555
3633
|
for (var i, n = 0, s = e.length; n < s; n++)
|
|
3556
|
-
i = e[n],
|
|
3634
|
+
i = e[n], pe.tweeners[i] = pe.tweeners[i] || [], pe.tweeners[i].unshift(t);
|
|
3557
3635
|
},
|
|
3558
|
-
prefilters: [
|
|
3636
|
+
prefilters: [Sn],
|
|
3559
3637
|
prefilter: function(e, t) {
|
|
3560
|
-
t ?
|
|
3638
|
+
t ? pe.prefilters.unshift(e) : pe.prefilters.push(e);
|
|
3561
3639
|
}
|
|
3562
3640
|
}), r.speed = function(e, t, i) {
|
|
3563
3641
|
var n = e && typeof e == "object" ? r.extend({}, e) : {
|
|
3564
|
-
complete: i || !i && t ||
|
|
3642
|
+
complete: i || !i && t || O(e) && e,
|
|
3565
3643
|
duration: e,
|
|
3566
|
-
easing: i && t || t && !
|
|
3644
|
+
easing: i && t || t && !O(t) && t
|
|
3567
3645
|
};
|
|
3568
3646
|
return r.fx.off ? n.duration = 0 : typeof n.duration != "number" && (n.duration in r.fx.speeds ? n.duration = r.fx.speeds[n.duration] : n.duration = r.fx.speeds._default), (n.queue == null || n.queue === !0) && (n.queue = "fx"), n.old = n.complete, n.complete = function() {
|
|
3569
|
-
|
|
3647
|
+
O(n.old) && n.old.call(this), n.queue && r.dequeue(this, n.queue);
|
|
3570
3648
|
}, n;
|
|
3571
3649
|
}, r.fn.extend({
|
|
3572
3650
|
fadeTo: function(e, t, i, n) {
|
|
3573
|
-
return this.filter(
|
|
3651
|
+
return this.filter(ht).css("opacity", 0).show().end().animate({ opacity: t }, e, i, n);
|
|
3574
3652
|
},
|
|
3575
3653
|
animate: function(e, t, i, n) {
|
|
3576
3654
|
var s = r.isEmptyObject(e), o = r.speed(t, i, n), u = function() {
|
|
3577
|
-
var c =
|
|
3655
|
+
var c = pe(this, r.extend({}, e), o);
|
|
3578
3656
|
(s || I.get(this, "finish")) && c.stop(!0);
|
|
3579
3657
|
};
|
|
3580
3658
|
return u.finish = u, s || o.queue === !1 ? this.each(u) : this.queue(o.queue, u);
|
|
@@ -3609,12 +3687,12 @@ function Cr() {
|
|
|
3609
3687
|
}), r.each(["toggle", "show", "hide"], function(e, t) {
|
|
3610
3688
|
var i = r.fn[t];
|
|
3611
3689
|
r.fn[t] = function(n, s, o) {
|
|
3612
|
-
return n == null || typeof n == "boolean" ? i.apply(this, arguments) : this.animate(
|
|
3690
|
+
return n == null || typeof n == "boolean" ? i.apply(this, arguments) : this.animate(mt(t, !0), n, s, o);
|
|
3613
3691
|
};
|
|
3614
3692
|
}), r.each({
|
|
3615
|
-
slideDown:
|
|
3616
|
-
slideUp:
|
|
3617
|
-
slideToggle:
|
|
3693
|
+
slideDown: mt("show"),
|
|
3694
|
+
slideUp: mt("hide"),
|
|
3695
|
+
slideToggle: mt("toggle"),
|
|
3618
3696
|
fadeIn: { opacity: "show" },
|
|
3619
3697
|
fadeOut: { opacity: "hide" },
|
|
3620
3698
|
fadeToggle: { opacity: "toggle" }
|
|
@@ -3624,15 +3702,15 @@ function Cr() {
|
|
|
3624
3702
|
};
|
|
3625
3703
|
}), r.timers = [], r.fx.tick = function() {
|
|
3626
3704
|
var e, t = 0, i = r.timers;
|
|
3627
|
-
for (
|
|
3705
|
+
for (Xe = Date.now(); t < i.length; t++)
|
|
3628
3706
|
e = i[t], !e() && i[t] === e && i.splice(t--, 1);
|
|
3629
|
-
i.length || r.fx.stop(),
|
|
3707
|
+
i.length || r.fx.stop(), Xe = void 0;
|
|
3630
3708
|
}, r.fx.timer = function(e) {
|
|
3631
3709
|
r.timers.push(e), r.fx.start();
|
|
3632
3710
|
}, r.fx.interval = 13, r.fx.start = function() {
|
|
3633
|
-
|
|
3711
|
+
yt || (yt = !0, jt());
|
|
3634
3712
|
}, r.fx.stop = function() {
|
|
3635
|
-
|
|
3713
|
+
yt = null;
|
|
3636
3714
|
}, r.fx.speeds = {
|
|
3637
3715
|
slow: 600,
|
|
3638
3716
|
fast: 200,
|
|
@@ -3646,13 +3724,13 @@ function Cr() {
|
|
|
3646
3724
|
};
|
|
3647
3725
|
});
|
|
3648
3726
|
}, (function() {
|
|
3649
|
-
var e =
|
|
3650
|
-
e.type = "checkbox",
|
|
3727
|
+
var e = H.createElement("input"), t = H.createElement("select"), i = t.appendChild(H.createElement("option"));
|
|
3728
|
+
e.type = "checkbox", F.checkOn = e.value !== "", F.optSelected = i.selected, e = H.createElement("input"), e.value = "t", e.type = "radio", F.radioValue = e.value === "t";
|
|
3651
3729
|
})();
|
|
3652
|
-
var Ai,
|
|
3730
|
+
var Ai, nt = r.expr.attrHandle;
|
|
3653
3731
|
r.fn.extend({
|
|
3654
3732
|
attr: function(e, t) {
|
|
3655
|
-
return
|
|
3733
|
+
return Ce(this, r.attr, e, t, arguments.length > 1);
|
|
3656
3734
|
},
|
|
3657
3735
|
removeAttr: function(e) {
|
|
3658
3736
|
return this.each(function() {
|
|
@@ -3678,7 +3756,7 @@ function Cr() {
|
|
|
3678
3756
|
attrHooks: {
|
|
3679
3757
|
type: {
|
|
3680
3758
|
set: function(e, t) {
|
|
3681
|
-
if (!
|
|
3759
|
+
if (!F.radioValue && t === "radio" && K(e, "input")) {
|
|
3682
3760
|
var i = e.value;
|
|
3683
3761
|
return e.setAttribute("type", t), i && (e.value = i), t;
|
|
3684
3762
|
}
|
|
@@ -3686,7 +3764,7 @@ function Cr() {
|
|
|
3686
3764
|
}
|
|
3687
3765
|
},
|
|
3688
3766
|
removeAttr: function(e, t) {
|
|
3689
|
-
var i, n = 0, s = t && t.match(
|
|
3767
|
+
var i, n = 0, s = t && t.match(ye);
|
|
3690
3768
|
if (s && e.nodeType === 1)
|
|
3691
3769
|
for (; i = s[n++]; )
|
|
3692
3770
|
e.removeAttribute(i);
|
|
@@ -3696,16 +3774,16 @@ function Cr() {
|
|
|
3696
3774
|
return t === !1 ? r.removeAttr(e, i) : e.setAttribute(i, i), i;
|
|
3697
3775
|
}
|
|
3698
3776
|
}, r.each(r.expr.match.bool.source.match(/\w+/g), function(e, t) {
|
|
3699
|
-
var i =
|
|
3700
|
-
|
|
3777
|
+
var i = nt[t] || r.find.attr;
|
|
3778
|
+
nt[t] = function(n, s, o) {
|
|
3701
3779
|
var u, c, l = s.toLowerCase();
|
|
3702
|
-
return o || (c =
|
|
3780
|
+
return o || (c = nt[l], nt[l] = u, u = i(n, s, o) != null ? l : null, nt[l] = c), u;
|
|
3703
3781
|
};
|
|
3704
3782
|
});
|
|
3705
3783
|
var Cn = /^(?:input|select|textarea|button)$/i, kn = /^(?:a|area)$/i;
|
|
3706
3784
|
r.fn.extend({
|
|
3707
3785
|
prop: function(e, t) {
|
|
3708
|
-
return
|
|
3786
|
+
return Ce(this, r.prop, e, t, arguments.length > 1);
|
|
3709
3787
|
},
|
|
3710
3788
|
removeProp: function(e) {
|
|
3711
3789
|
return this.each(function() {
|
|
@@ -3730,7 +3808,7 @@ function Cr() {
|
|
|
3730
3808
|
for: "htmlFor",
|
|
3731
3809
|
class: "className"
|
|
3732
3810
|
}
|
|
3733
|
-
}),
|
|
3811
|
+
}), F.optSelected || (r.propHooks.selected = {
|
|
3734
3812
|
get: function(e) {
|
|
3735
3813
|
var t = e.parentNode;
|
|
3736
3814
|
return t && t.parentNode && t.parentNode.selectedIndex, null;
|
|
@@ -3753,54 +3831,54 @@ function Cr() {
|
|
|
3753
3831
|
], function() {
|
|
3754
3832
|
r.propFix[this.toLowerCase()] = this;
|
|
3755
3833
|
});
|
|
3756
|
-
function
|
|
3757
|
-
var t = e.match(
|
|
3834
|
+
function qe(e) {
|
|
3835
|
+
var t = e.match(ye) || [];
|
|
3758
3836
|
return t.join(" ");
|
|
3759
3837
|
}
|
|
3760
|
-
function
|
|
3838
|
+
function je(e) {
|
|
3761
3839
|
return e.getAttribute && e.getAttribute("class") || "";
|
|
3762
3840
|
}
|
|
3763
|
-
function
|
|
3764
|
-
return Array.isArray(e) ? e : typeof e == "string" ? e.match(
|
|
3841
|
+
function Mt(e) {
|
|
3842
|
+
return Array.isArray(e) ? e : typeof e == "string" ? e.match(ye) || [] : [];
|
|
3765
3843
|
}
|
|
3766
3844
|
r.fn.extend({
|
|
3767
3845
|
addClass: function(e) {
|
|
3768
3846
|
var t, i, n, s, o, u;
|
|
3769
|
-
return
|
|
3770
|
-
r(this).addClass(e.call(this, c,
|
|
3771
|
-
}) : (t =
|
|
3772
|
-
if (n =
|
|
3847
|
+
return O(e) ? this.each(function(c) {
|
|
3848
|
+
r(this).addClass(e.call(this, c, je(this)));
|
|
3849
|
+
}) : (t = Mt(e), t.length ? this.each(function() {
|
|
3850
|
+
if (n = je(this), i = this.nodeType === 1 && " " + qe(n) + " ", i) {
|
|
3773
3851
|
for (o = 0; o < t.length; o++)
|
|
3774
3852
|
s = t[o], i.indexOf(" " + s + " ") < 0 && (i += s + " ");
|
|
3775
|
-
u =
|
|
3853
|
+
u = qe(i), n !== u && this.setAttribute("class", u);
|
|
3776
3854
|
}
|
|
3777
3855
|
}) : this);
|
|
3778
3856
|
},
|
|
3779
3857
|
removeClass: function(e) {
|
|
3780
3858
|
var t, i, n, s, o, u;
|
|
3781
|
-
return
|
|
3782
|
-
r(this).removeClass(e.call(this, c,
|
|
3783
|
-
}) : arguments.length ? (t =
|
|
3784
|
-
if (n =
|
|
3859
|
+
return O(e) ? this.each(function(c) {
|
|
3860
|
+
r(this).removeClass(e.call(this, c, je(this)));
|
|
3861
|
+
}) : arguments.length ? (t = Mt(e), t.length ? this.each(function() {
|
|
3862
|
+
if (n = je(this), i = this.nodeType === 1 && " " + qe(n) + " ", i) {
|
|
3785
3863
|
for (o = 0; o < t.length; o++)
|
|
3786
3864
|
for (s = t[o]; i.indexOf(" " + s + " ") > -1; )
|
|
3787
3865
|
i = i.replace(" " + s + " ", " ");
|
|
3788
|
-
u =
|
|
3866
|
+
u = qe(i), n !== u && this.setAttribute("class", u);
|
|
3789
3867
|
}
|
|
3790
3868
|
}) : this) : this.attr("class", "");
|
|
3791
3869
|
},
|
|
3792
3870
|
toggleClass: function(e, t) {
|
|
3793
3871
|
var i, n, s, o, u = typeof e, c = u === "string" || Array.isArray(e);
|
|
3794
|
-
return
|
|
3872
|
+
return O(e) ? this.each(function(l) {
|
|
3795
3873
|
r(this).toggleClass(
|
|
3796
|
-
e.call(this, l,
|
|
3874
|
+
e.call(this, l, je(this), t),
|
|
3797
3875
|
t
|
|
3798
3876
|
);
|
|
3799
|
-
}) : typeof t == "boolean" && c ? t ? this.addClass(e) : this.removeClass(e) : (i =
|
|
3877
|
+
}) : typeof t == "boolean" && c ? t ? this.addClass(e) : this.removeClass(e) : (i = Mt(e), this.each(function() {
|
|
3800
3878
|
if (c)
|
|
3801
3879
|
for (o = r(this), s = 0; s < i.length; s++)
|
|
3802
3880
|
n = i[s], o.hasClass(n) ? o.removeClass(n) : o.addClass(n);
|
|
3803
|
-
else (e === void 0 || u === "boolean") && (n =
|
|
3881
|
+
else (e === void 0 || u === "boolean") && (n = je(this), n && I.set(this, "__className__", n), this.setAttribute && this.setAttribute(
|
|
3804
3882
|
"class",
|
|
3805
3883
|
n || e === !1 ? "" : I.get(this, "__className__") || ""
|
|
3806
3884
|
));
|
|
@@ -3809,21 +3887,21 @@ function Cr() {
|
|
|
3809
3887
|
hasClass: function(e) {
|
|
3810
3888
|
var t, i, n = 0;
|
|
3811
3889
|
for (t = " " + e + " "; i = this[n++]; )
|
|
3812
|
-
if (i.nodeType === 1 && (" " +
|
|
3890
|
+
if (i.nodeType === 1 && (" " + qe(je(i)) + " ").indexOf(t) > -1)
|
|
3813
3891
|
return !0;
|
|
3814
3892
|
return !1;
|
|
3815
3893
|
}
|
|
3816
3894
|
});
|
|
3817
|
-
var
|
|
3895
|
+
var An = /\r/g;
|
|
3818
3896
|
r.fn.extend({
|
|
3819
3897
|
val: function(e) {
|
|
3820
3898
|
var t, i, n, s = this[0];
|
|
3821
|
-
return arguments.length ? (n =
|
|
3899
|
+
return arguments.length ? (n = O(e), this.each(function(o) {
|
|
3822
3900
|
var u;
|
|
3823
3901
|
this.nodeType === 1 && (n ? u = e.call(this, o, r(this).val()) : u = e, u == null ? u = "" : typeof u == "number" ? u += "" : Array.isArray(u) && (u = r.map(u, function(c) {
|
|
3824
3902
|
return c == null ? "" : c + "";
|
|
3825
3903
|
})), t = r.valHooks[this.type] || r.valHooks[this.nodeName.toLowerCase()], (!t || !("set" in t) || t.set(this, u, "value") === void 0) && (this.value = u));
|
|
3826
|
-
})) : s ? (t = r.valHooks[s.type] || r.valHooks[s.nodeName.toLowerCase()], t && "get" in t && (i = t.get(s, "value")) !== void 0 ? i : (i = s.value, typeof i == "string" ? i.replace(
|
|
3904
|
+
})) : s ? (t = r.valHooks[s.type] || r.valHooks[s.nodeName.toLowerCase()], t && "get" in t && (i = t.get(s, "value")) !== void 0 ? i : (i = s.value, typeof i == "string" ? i.replace(An, "") : i ?? "")) : void 0;
|
|
3827
3905
|
}
|
|
3828
3906
|
}), r.extend({
|
|
3829
3907
|
valHooks: {
|
|
@@ -3834,7 +3912,7 @@ function Cr() {
|
|
|
3834
3912
|
// option.text throws exceptions (trac-14686, trac-14858)
|
|
3835
3913
|
// Strip and collapse whitespace
|
|
3836
3914
|
// https://html.spec.whatwg.org/#strip-and-collapse-whitespace
|
|
3837
|
-
|
|
3915
|
+
qe(r.text(e));
|
|
3838
3916
|
}
|
|
3839
3917
|
},
|
|
3840
3918
|
select: {
|
|
@@ -3862,11 +3940,11 @@ function Cr() {
|
|
|
3862
3940
|
if (Array.isArray(t))
|
|
3863
3941
|
return e.checked = r.inArray(r(e).val(), t) > -1;
|
|
3864
3942
|
}
|
|
3865
|
-
},
|
|
3943
|
+
}, F.checkOn || (r.valHooks[this].get = function(e) {
|
|
3866
3944
|
return e.getAttribute("value") === null ? "on" : e.value;
|
|
3867
3945
|
});
|
|
3868
3946
|
});
|
|
3869
|
-
var
|
|
3947
|
+
var rt = a.location, Ei = { guid: Date.now() }, Pt = /\?/;
|
|
3870
3948
|
r.parseXML = function(e) {
|
|
3871
3949
|
var t, i;
|
|
3872
3950
|
if (!e || typeof e != "string")
|
|
@@ -3880,21 +3958,21 @@ function Cr() {
|
|
|
3880
3958
|
}).join(`
|
|
3881
3959
|
`) : e)), t;
|
|
3882
3960
|
};
|
|
3883
|
-
var
|
|
3961
|
+
var Di = /^(?:focusinfocus|focusoutblur)$/, Ri = function(e) {
|
|
3884
3962
|
e.stopPropagation();
|
|
3885
3963
|
};
|
|
3886
3964
|
r.extend(r.event, {
|
|
3887
3965
|
trigger: function(e, t, i, n) {
|
|
3888
|
-
var s, o, u, c, l, h, x, T, y = [i ||
|
|
3889
|
-
if (o = T = u = i = i ||
|
|
3890
|
-
if (!n && !x.noBubble && !
|
|
3891
|
-
for (c = x.delegateType ||
|
|
3966
|
+
var s, o, u, c, l, h, x, T, y = [i || H], w = le.call(e, "type") ? e.type : e, j = le.call(e, "namespace") ? e.namespace.split(".") : [];
|
|
3967
|
+
if (o = T = u = i = i || H, !(i.nodeType === 3 || i.nodeType === 8) && !Di.test(w + r.event.triggered) && (w.indexOf(".") > -1 && (j = w.split("."), w = j.shift(), j.sort()), l = w.indexOf(":") < 0 && "on" + w, e = e[r.expando] ? e : new r.Event(w, typeof e == "object" && e), e.isTrigger = n ? 2 : 3, e.namespace = j.join("."), e.rnamespace = e.namespace ? new RegExp("(^|\\.)" + j.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, e.result = void 0, e.target || (e.target = i), t = t == null ? [e] : r.makeArray(t, [e]), x = r.event.special[w] || {}, !(!n && x.trigger && x.trigger.apply(i, t) === !1))) {
|
|
3968
|
+
if (!n && !x.noBubble && !Fe(i)) {
|
|
3969
|
+
for (c = x.delegateType || w, Di.test(c + w) || (o = o.parentNode); o; o = o.parentNode)
|
|
3892
3970
|
y.push(o), u = o;
|
|
3893
|
-
u === (i.ownerDocument ||
|
|
3971
|
+
u === (i.ownerDocument || H) && y.push(u.defaultView || u.parentWindow || a);
|
|
3894
3972
|
}
|
|
3895
3973
|
for (s = 0; (o = y[s++]) && !e.isPropagationStopped(); )
|
|
3896
|
-
T = o, e.type = s > 1 ? c : x.bindType ||
|
|
3897
|
-
return e.type =
|
|
3974
|
+
T = o, e.type = s > 1 ? c : x.bindType || w, h = (I.get(o, "events") || /* @__PURE__ */ Object.create(null))[e.type] && I.get(o, "handle"), h && h.apply(o, t), h = l && o[l], h && h.apply && Ke(o) && (e.result = h.apply(o, t), e.result === !1 && e.preventDefault());
|
|
3975
|
+
return e.type = w, !n && !e.isDefaultPrevented() && (!x._default || x._default.apply(y.pop(), t) === !1) && Ke(i) && l && O(i[w]) && !Fe(i) && (u = i[l], u && (i[l] = null), r.event.triggered = w, e.isPropagationStopped() && T.addEventListener(w, Ri), i[w](), e.isPropagationStopped() && T.removeEventListener(w, Ri), r.event.triggered = void 0, u && (i[l] = u)), e.result;
|
|
3898
3976
|
}
|
|
3899
3977
|
},
|
|
3900
3978
|
// Piggyback on a donor event to simulate a different one
|
|
@@ -3922,27 +4000,27 @@ function Cr() {
|
|
|
3922
4000
|
return r.event.trigger(e, t, i, !0);
|
|
3923
4001
|
}
|
|
3924
4002
|
});
|
|
3925
|
-
var
|
|
3926
|
-
function
|
|
4003
|
+
var En = /\[\]$/, Ni = /\r?\n/g, Dn = /^(?:submit|button|image|reset|file)$/i, Rn = /^(?:input|select|textarea|keygen)/i;
|
|
4004
|
+
function Ht(e, t, i, n) {
|
|
3927
4005
|
var s;
|
|
3928
4006
|
if (Array.isArray(t))
|
|
3929
4007
|
r.each(t, function(o, u) {
|
|
3930
|
-
i ||
|
|
4008
|
+
i || En.test(e) ? n(e, u) : Ht(
|
|
3931
4009
|
e + "[" + (typeof u == "object" && u != null ? o : "") + "]",
|
|
3932
4010
|
u,
|
|
3933
4011
|
i,
|
|
3934
4012
|
n
|
|
3935
4013
|
);
|
|
3936
4014
|
});
|
|
3937
|
-
else if (!i &&
|
|
4015
|
+
else if (!i && Oe(t) === "object")
|
|
3938
4016
|
for (s in t)
|
|
3939
|
-
|
|
4017
|
+
Ht(e + "[" + s + "]", t[s], i, n);
|
|
3940
4018
|
else
|
|
3941
4019
|
n(e, t);
|
|
3942
4020
|
}
|
|
3943
4021
|
r.param = function(e, t) {
|
|
3944
4022
|
var i, n = [], s = function(o, u) {
|
|
3945
|
-
var c =
|
|
4023
|
+
var c = O(u) ? u() : u;
|
|
3946
4024
|
n[n.length] = encodeURIComponent(o) + "=" + encodeURIComponent(c ?? "");
|
|
3947
4025
|
};
|
|
3948
4026
|
if (e == null)
|
|
@@ -3953,7 +4031,7 @@ function Cr() {
|
|
|
3953
4031
|
});
|
|
3954
4032
|
else
|
|
3955
4033
|
for (i in e)
|
|
3956
|
-
|
|
4034
|
+
Ht(i, e[i], t, s);
|
|
3957
4035
|
return n.join("&");
|
|
3958
4036
|
}, r.fn.extend({
|
|
3959
4037
|
serialize: function() {
|
|
@@ -3965,30 +4043,30 @@ function Cr() {
|
|
|
3965
4043
|
return e ? r.makeArray(e) : this;
|
|
3966
4044
|
}).filter(function() {
|
|
3967
4045
|
var e = this.type;
|
|
3968
|
-
return this.name && !r(this).is(":disabled") && Rn.test(this.nodeName) && !Dn.test(e) && (this.checked || !
|
|
4046
|
+
return this.name && !r(this).is(":disabled") && Rn.test(this.nodeName) && !Dn.test(e) && (this.checked || !tt.test(e));
|
|
3969
4047
|
}).map(function(e, t) {
|
|
3970
4048
|
var i = r(this).val();
|
|
3971
4049
|
return i == null ? null : Array.isArray(i) ? r.map(i, function(n) {
|
|
3972
|
-
return { name: t.name, value: n.replace(
|
|
4050
|
+
return { name: t.name, value: n.replace(Ni, `\r
|
|
3973
4051
|
`) };
|
|
3974
|
-
}) : { name: t.name, value: i.replace(
|
|
4052
|
+
}) : { name: t.name, value: i.replace(Ni, `\r
|
|
3975
4053
|
`) };
|
|
3976
4054
|
}).get();
|
|
3977
4055
|
}
|
|
3978
4056
|
});
|
|
3979
|
-
var Nn = /%20/g,
|
|
3980
|
-
|
|
3981
|
-
function
|
|
4057
|
+
var Nn = /%20/g, In = /#.*$/, Ln = /([?&])_=[^&]*/, qn = /^(.*?):[ \t]*([^\r\n]*)$/mg, jn = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, Mn = /^(?:GET|HEAD)$/, Pn = /^\/\//, Ii = {}, Ft = {}, Li = "*/".concat("*"), Ot = H.createElement("a");
|
|
4058
|
+
Ot.href = rt.href;
|
|
4059
|
+
function qi(e) {
|
|
3982
4060
|
return function(t, i) {
|
|
3983
4061
|
typeof t != "string" && (i = t, t = "*");
|
|
3984
|
-
var n, s = 0, o = t.toLowerCase().match(
|
|
3985
|
-
if (
|
|
4062
|
+
var n, s = 0, o = t.toLowerCase().match(ye) || [];
|
|
4063
|
+
if (O(i))
|
|
3986
4064
|
for (; n = o[s++]; )
|
|
3987
4065
|
n[0] === "+" ? (n = n.slice(1) || "*", (e[n] = e[n] || []).unshift(i)) : (e[n] = e[n] || []).push(i);
|
|
3988
4066
|
};
|
|
3989
4067
|
}
|
|
3990
|
-
function
|
|
3991
|
-
var s = {}, o = e ===
|
|
4068
|
+
function ji(e, t, i, n) {
|
|
4069
|
+
var s = {}, o = e === Ft;
|
|
3992
4070
|
function u(c) {
|
|
3993
4071
|
var l;
|
|
3994
4072
|
return s[c] = !0, r.each(e[c] || [], function(h, x) {
|
|
@@ -4001,13 +4079,13 @@ function Cr() {
|
|
|
4001
4079
|
}
|
|
4002
4080
|
return u(t.dataTypes[0]) || !s["*"] && u("*");
|
|
4003
4081
|
}
|
|
4004
|
-
function
|
|
4082
|
+
function Wt(e, t) {
|
|
4005
4083
|
var i, n, s = r.ajaxSettings.flatOptions || {};
|
|
4006
4084
|
for (i in t)
|
|
4007
4085
|
t[i] !== void 0 && ((s[i] ? e : n || (n = {}))[i] = t[i]);
|
|
4008
4086
|
return n && r.extend(!0, e, n), e;
|
|
4009
4087
|
}
|
|
4010
|
-
function
|
|
4088
|
+
function Hn(e, t, i) {
|
|
4011
4089
|
for (var n, s, o, u, c = e.contents, l = e.dataTypes; l[0] === "*"; )
|
|
4012
4090
|
l.shift(), n === void 0 && (n = e.mimeType || t.getResponseHeader("Content-Type"));
|
|
4013
4091
|
if (n) {
|
|
@@ -4072,9 +4150,9 @@ function Cr() {
|
|
|
4072
4150
|
lastModified: {},
|
|
4073
4151
|
etag: {},
|
|
4074
4152
|
ajaxSettings: {
|
|
4075
|
-
url:
|
|
4153
|
+
url: rt.href,
|
|
4076
4154
|
type: "GET",
|
|
4077
|
-
isLocal: jn.test(
|
|
4155
|
+
isLocal: jn.test(rt.protocol),
|
|
4078
4156
|
global: !0,
|
|
4079
4157
|
processData: !0,
|
|
4080
4158
|
async: !0,
|
|
@@ -4091,7 +4169,7 @@ function Cr() {
|
|
|
4091
4169
|
headers: {},
|
|
4092
4170
|
*/
|
|
4093
4171
|
accepts: {
|
|
4094
|
-
"*":
|
|
4172
|
+
"*": Li,
|
|
4095
4173
|
text: "text/plain",
|
|
4096
4174
|
html: "text/html",
|
|
4097
4175
|
xml: "application/xml, text/xml",
|
|
@@ -4134,100 +4212,100 @@ function Cr() {
|
|
|
4134
4212
|
ajaxSetup: function(e, t) {
|
|
4135
4213
|
return t ? (
|
|
4136
4214
|
// Building a settings object
|
|
4137
|
-
|
|
4215
|
+
Wt(Wt(e, r.ajaxSettings), t)
|
|
4138
4216
|
) : (
|
|
4139
4217
|
// Extending ajaxSettings
|
|
4140
|
-
|
|
4218
|
+
Wt(r.ajaxSettings, e)
|
|
4141
4219
|
);
|
|
4142
4220
|
},
|
|
4143
|
-
ajaxPrefilter:
|
|
4144
|
-
ajaxTransport:
|
|
4221
|
+
ajaxPrefilter: qi(Ii),
|
|
4222
|
+
ajaxTransport: qi(Ft),
|
|
4145
4223
|
// Main method
|
|
4146
4224
|
ajax: function(e, t) {
|
|
4147
4225
|
typeof e == "object" && (t = e, e = void 0), t = t || {};
|
|
4148
|
-
var i, n, s, o, u, c, l, h, x, T, y = r.ajaxSetup({}, t),
|
|
4226
|
+
var i, n, s, o, u, c, l, h, x, T, y = r.ajaxSetup({}, t), w = y.context || y, j = y.context && (w.nodeType || w.jquery) ? r(w) : r.event, $ = r.Deferred(), W = r.Callbacks("once memory"), ie = y.statusCode || {}, te = {}, ve = {}, xe = "canceled", U = {
|
|
4149
4227
|
readyState: 0,
|
|
4150
4228
|
// Builds headers hashtable if needed
|
|
4151
|
-
getResponseHeader: function(
|
|
4152
|
-
var
|
|
4229
|
+
getResponseHeader: function(z) {
|
|
4230
|
+
var ee;
|
|
4153
4231
|
if (l) {
|
|
4154
4232
|
if (!o)
|
|
4155
|
-
for (o = {};
|
|
4156
|
-
o[
|
|
4157
|
-
|
|
4233
|
+
for (o = {}; ee = qn.exec(s); )
|
|
4234
|
+
o[ee[1].toLowerCase() + " "] = (o[ee[1].toLowerCase() + " "] || []).concat(ee[2]);
|
|
4235
|
+
ee = o[z.toLowerCase() + " "];
|
|
4158
4236
|
}
|
|
4159
|
-
return
|
|
4237
|
+
return ee == null ? null : ee.join(", ");
|
|
4160
4238
|
},
|
|
4161
4239
|
// Raw string
|
|
4162
4240
|
getAllResponseHeaders: function() {
|
|
4163
4241
|
return l ? s : null;
|
|
4164
4242
|
},
|
|
4165
4243
|
// Caches the header
|
|
4166
|
-
setRequestHeader: function(
|
|
4167
|
-
return l == null && (
|
|
4244
|
+
setRequestHeader: function(z, ee) {
|
|
4245
|
+
return l == null && (z = ve[z.toLowerCase()] = ve[z.toLowerCase()] || z, te[z] = ee), this;
|
|
4168
4246
|
},
|
|
4169
4247
|
// Overrides response content-type header
|
|
4170
|
-
overrideMimeType: function(
|
|
4171
|
-
return l == null && (y.mimeType =
|
|
4248
|
+
overrideMimeType: function(z) {
|
|
4249
|
+
return l == null && (y.mimeType = z), this;
|
|
4172
4250
|
},
|
|
4173
4251
|
// Status-dependent callbacks
|
|
4174
|
-
statusCode: function(
|
|
4175
|
-
var
|
|
4176
|
-
if (
|
|
4252
|
+
statusCode: function(z) {
|
|
4253
|
+
var ee;
|
|
4254
|
+
if (z)
|
|
4177
4255
|
if (l)
|
|
4178
|
-
U.always(
|
|
4256
|
+
U.always(z[U.status]);
|
|
4179
4257
|
else
|
|
4180
|
-
for (
|
|
4181
|
-
|
|
4258
|
+
for (ee in z)
|
|
4259
|
+
ie[ee] = [ie[ee], z[ee]];
|
|
4182
4260
|
return this;
|
|
4183
4261
|
},
|
|
4184
4262
|
// Cancel the request
|
|
4185
|
-
abort: function(
|
|
4186
|
-
var
|
|
4187
|
-
return i && i.abort(
|
|
4263
|
+
abort: function(z) {
|
|
4264
|
+
var ee = z || xe;
|
|
4265
|
+
return i && i.abort(ee), Me(0, ee), this;
|
|
4188
4266
|
}
|
|
4189
4267
|
};
|
|
4190
|
-
if (
|
|
4191
|
-
c =
|
|
4268
|
+
if ($.promise(U), y.url = ((e || y.url || rt.href) + "").replace(Pn, rt.protocol + "//"), y.type = t.method || t.type || y.method || y.type, y.dataTypes = (y.dataType || "*").toLowerCase().match(ye) || [""], y.crossDomain == null) {
|
|
4269
|
+
c = H.createElement("a");
|
|
4192
4270
|
try {
|
|
4193
|
-
c.href = y.url, c.href = c.href, y.crossDomain =
|
|
4271
|
+
c.href = y.url, c.href = c.href, y.crossDomain = Ot.protocol + "//" + Ot.host != c.protocol + "//" + c.host;
|
|
4194
4272
|
} catch {
|
|
4195
4273
|
y.crossDomain = !0;
|
|
4196
4274
|
}
|
|
4197
4275
|
}
|
|
4198
|
-
if (y.data && y.processData && typeof y.data != "string" && (y.data = r.param(y.data, y.traditional)),
|
|
4276
|
+
if (y.data && y.processData && typeof y.data != "string" && (y.data = r.param(y.data, y.traditional)), ji(Ii, y, t, U), l)
|
|
4199
4277
|
return U;
|
|
4200
|
-
h = r.event && y.global, h && r.active++ === 0 && r.event.trigger("ajaxStart"), y.type = y.type.toUpperCase(), y.hasContent = !Mn.test(y.type), n = y.url.replace(
|
|
4278
|
+
h = r.event && y.global, h && r.active++ === 0 && r.event.trigger("ajaxStart"), y.type = y.type.toUpperCase(), y.hasContent = !Mn.test(y.type), n = y.url.replace(In, ""), y.hasContent ? y.data && y.processData && (y.contentType || "").indexOf("application/x-www-form-urlencoded") === 0 && (y.data = y.data.replace(Nn, "+")) : (T = y.url.slice(n.length), y.data && (y.processData || typeof y.data == "string") && (n += (Pt.test(n) ? "&" : "?") + y.data, delete y.data), y.cache === !1 && (n = n.replace(Ln, "$1"), T = (Pt.test(n) ? "&" : "?") + "_=" + Ei.guid++ + T), y.url = n + T), y.ifModified && (r.lastModified[n] && U.setRequestHeader("If-Modified-Since", r.lastModified[n]), r.etag[n] && U.setRequestHeader("If-None-Match", r.etag[n])), (y.data && y.hasContent && y.contentType !== !1 || t.contentType) && U.setRequestHeader("Content-Type", y.contentType), U.setRequestHeader(
|
|
4201
4279
|
"Accept",
|
|
4202
|
-
y.dataTypes[0] && y.accepts[y.dataTypes[0]] ? y.accepts[y.dataTypes[0]] + (y.dataTypes[0] !== "*" ? ", " +
|
|
4280
|
+
y.dataTypes[0] && y.accepts[y.dataTypes[0]] ? y.accepts[y.dataTypes[0]] + (y.dataTypes[0] !== "*" ? ", " + Li + "; q=0.01" : "") : y.accepts["*"]
|
|
4203
4281
|
);
|
|
4204
4282
|
for (x in y.headers)
|
|
4205
4283
|
U.setRequestHeader(x, y.headers[x]);
|
|
4206
|
-
if (y.beforeSend && (y.beforeSend.call(
|
|
4284
|
+
if (y.beforeSend && (y.beforeSend.call(w, U, y) === !1 || l))
|
|
4207
4285
|
return U.abort();
|
|
4208
|
-
if (
|
|
4209
|
-
|
|
4286
|
+
if (xe = "abort", W.add(y.complete), U.done(y.success), U.fail(y.error), i = ji(Ft, y, t, U), !i)
|
|
4287
|
+
Me(-1, "No Transport");
|
|
4210
4288
|
else {
|
|
4211
|
-
if (U.readyState = 1, h &&
|
|
4289
|
+
if (U.readyState = 1, h && j.trigger("ajaxSend", [U, y]), l)
|
|
4212
4290
|
return U;
|
|
4213
4291
|
y.async && y.timeout > 0 && (u = a.setTimeout(function() {
|
|
4214
4292
|
U.abort("timeout");
|
|
4215
4293
|
}, y.timeout));
|
|
4216
4294
|
try {
|
|
4217
|
-
l = !1, i.send(
|
|
4218
|
-
} catch (
|
|
4295
|
+
l = !1, i.send(te, Me);
|
|
4296
|
+
} catch (z) {
|
|
4219
4297
|
if (l)
|
|
4220
|
-
throw
|
|
4221
|
-
|
|
4298
|
+
throw z;
|
|
4299
|
+
Me(-1, z);
|
|
4222
4300
|
}
|
|
4223
4301
|
}
|
|
4224
|
-
function
|
|
4225
|
-
var
|
|
4226
|
-
l || (l = !0, u && a.clearTimeout(u), i = void 0, s =
|
|
4227
|
-
}),
|
|
4228
|
-
|
|
4229
|
-
[U, y,
|
|
4230
|
-
),
|
|
4302
|
+
function Me(z, ee, ot, Bt) {
|
|
4303
|
+
var be, at, Te, De, Re, de = ee;
|
|
4304
|
+
l || (l = !0, u && a.clearTimeout(u), i = void 0, s = Bt || "", U.readyState = z > 0 ? 4 : 0, be = z >= 200 && z < 300 || z === 304, ot && (De = Hn(y, U, ot)), !be && r.inArray("script", y.dataTypes) > -1 && r.inArray("json", y.dataTypes) < 0 && (y.converters["text script"] = function() {
|
|
4305
|
+
}), De = Fn(y, De, U, be), be ? (y.ifModified && (Re = U.getResponseHeader("Last-Modified"), Re && (r.lastModified[n] = Re), Re = U.getResponseHeader("etag"), Re && (r.etag[n] = Re)), z === 204 || y.type === "HEAD" ? de = "nocontent" : z === 304 ? de = "notmodified" : (de = De.state, at = De.data, Te = De.error, be = !Te)) : (Te = de, (z || !de) && (de = "error", z < 0 && (z = 0))), U.status = z, U.statusText = (ee || de) + "", be ? $.resolveWith(w, [at, de, U]) : $.rejectWith(w, [U, de, Te]), U.statusCode(ie), ie = void 0, h && j.trigger(
|
|
4306
|
+
be ? "ajaxSuccess" : "ajaxError",
|
|
4307
|
+
[U, y, be ? at : Te]
|
|
4308
|
+
), W.fireWith(w, [U, de]), h && (j.trigger("ajaxComplete", [U, y]), --r.active || r.event.trigger("ajaxStop")));
|
|
4231
4309
|
}
|
|
4232
4310
|
return U;
|
|
4233
4311
|
},
|
|
@@ -4239,7 +4317,7 @@ function Cr() {
|
|
|
4239
4317
|
}
|
|
4240
4318
|
}), r.each(["get", "post"], function(e, t) {
|
|
4241
4319
|
r[t] = function(i, n, s, o) {
|
|
4242
|
-
return
|
|
4320
|
+
return O(n) && (o = o || s, s = n, n = void 0), r.ajax(r.extend({
|
|
4243
4321
|
url: i,
|
|
4244
4322
|
type: t,
|
|
4245
4323
|
dataType: o,
|
|
@@ -4274,14 +4352,14 @@ function Cr() {
|
|
|
4274
4352
|
}, r.fn.extend({
|
|
4275
4353
|
wrapAll: function(e) {
|
|
4276
4354
|
var t;
|
|
4277
|
-
return this[0] && (
|
|
4355
|
+
return this[0] && (O(e) && (e = e.call(this[0])), t = r(e, this[0].ownerDocument).eq(0).clone(!0), this[0].parentNode && t.insertBefore(this[0]), t.map(function() {
|
|
4278
4356
|
for (var i = this; i.firstElementChild; )
|
|
4279
4357
|
i = i.firstElementChild;
|
|
4280
4358
|
return i;
|
|
4281
4359
|
}).append(this)), this;
|
|
4282
4360
|
},
|
|
4283
4361
|
wrapInner: function(e) {
|
|
4284
|
-
return
|
|
4362
|
+
return O(e) ? this.each(function(t) {
|
|
4285
4363
|
r(this).wrapInner(e.call(this, t));
|
|
4286
4364
|
}) : this.each(function() {
|
|
4287
4365
|
var t = r(this), i = t.contents();
|
|
@@ -4289,7 +4367,7 @@ function Cr() {
|
|
|
4289
4367
|
});
|
|
4290
4368
|
},
|
|
4291
4369
|
wrap: function(e) {
|
|
4292
|
-
var t =
|
|
4370
|
+
var t = O(e);
|
|
4293
4371
|
return this.each(function(i) {
|
|
4294
4372
|
r(this).wrapAll(t ? e.call(this, i) : e);
|
|
4295
4373
|
});
|
|
@@ -4315,10 +4393,10 @@ function Cr() {
|
|
|
4315
4393
|
// Support: IE <=9 only
|
|
4316
4394
|
// trac-1450: sometimes IE returns 1223 when it should be 204
|
|
4317
4395
|
1223: 204
|
|
4318
|
-
},
|
|
4319
|
-
|
|
4396
|
+
}, st = r.ajaxSettings.xhr();
|
|
4397
|
+
F.cors = !!st && "withCredentials" in st, F.ajax = st = !!st, r.ajaxTransport(function(e) {
|
|
4320
4398
|
var t, i;
|
|
4321
|
-
if (
|
|
4399
|
+
if (F.cors || st && !e.crossDomain)
|
|
4322
4400
|
return {
|
|
4323
4401
|
send: function(n, s) {
|
|
4324
4402
|
var o, u = e.xhr();
|
|
@@ -4389,7 +4467,7 @@ function Cr() {
|
|
|
4389
4467
|
send: function(n, s) {
|
|
4390
4468
|
t = r("<script>").attr(e.scriptAttrs || {}).prop({ charset: e.scriptCharset, src: e.url }).on("load error", i = function(o) {
|
|
4391
4469
|
t.remove(), i = null, o && s(o.type === "error" ? 404 : 200, o.type);
|
|
4392
|
-
}),
|
|
4470
|
+
}), H.head.appendChild(t[0]);
|
|
4393
4471
|
},
|
|
4394
4472
|
abort: function() {
|
|
4395
4473
|
i && i();
|
|
@@ -4397,35 +4475,35 @@ function Cr() {
|
|
|
4397
4475
|
};
|
|
4398
4476
|
}
|
|
4399
4477
|
});
|
|
4400
|
-
var
|
|
4478
|
+
var Mi = [], Vt = /(=)\?(?=&|$)|\?\?/;
|
|
4401
4479
|
r.ajaxSetup({
|
|
4402
4480
|
jsonp: "callback",
|
|
4403
4481
|
jsonpCallback: function() {
|
|
4404
|
-
var e =
|
|
4482
|
+
var e = Mi.pop() || r.expando + "_" + Ei.guid++;
|
|
4405
4483
|
return this[e] = !0, e;
|
|
4406
4484
|
}
|
|
4407
4485
|
}), r.ajaxPrefilter("json jsonp", function(e, t, i) {
|
|
4408
4486
|
var n, s, o, u = e.jsonp !== !1 && (Vt.test(e.url) ? "url" : typeof e.data == "string" && (e.contentType || "").indexOf("application/x-www-form-urlencoded") === 0 && Vt.test(e.data) && "data");
|
|
4409
4487
|
if (u || e.dataTypes[0] === "jsonp")
|
|
4410
|
-
return n = e.jsonpCallback =
|
|
4488
|
+
return n = e.jsonpCallback = O(e.jsonpCallback) ? e.jsonpCallback() : e.jsonpCallback, u ? e[u] = e[u].replace(Vt, "$1" + n) : e.jsonp !== !1 && (e.url += (Pt.test(e.url) ? "&" : "?") + e.jsonp + "=" + n), e.converters["script json"] = function() {
|
|
4411
4489
|
return o || r.error(n + " was not called"), o[0];
|
|
4412
4490
|
}, e.dataTypes[0] = "json", s = a[n], a[n] = function() {
|
|
4413
4491
|
o = arguments;
|
|
4414
4492
|
}, i.always(function() {
|
|
4415
|
-
s === void 0 ? r(a).removeProp(n) : a[n] = s, e[n] && (e.jsonpCallback = t.jsonpCallback,
|
|
4493
|
+
s === void 0 ? r(a).removeProp(n) : a[n] = s, e[n] && (e.jsonpCallback = t.jsonpCallback, Mi.push(n)), o && O(s) && s(o[0]), o = s = void 0;
|
|
4416
4494
|
}), "script";
|
|
4417
|
-
}),
|
|
4418
|
-
var e =
|
|
4495
|
+
}), F.createHTMLDocument = (function() {
|
|
4496
|
+
var e = H.implementation.createHTMLDocument("").body;
|
|
4419
4497
|
return e.innerHTML = "<form></form><form></form>", e.childNodes.length === 2;
|
|
4420
4498
|
})(), r.parseHTML = function(e, t, i) {
|
|
4421
4499
|
if (typeof e != "string")
|
|
4422
4500
|
return [];
|
|
4423
4501
|
typeof t == "boolean" && (i = t, t = !1);
|
|
4424
4502
|
var n, s, o;
|
|
4425
|
-
return t || (
|
|
4503
|
+
return t || (F.createHTMLDocument ? (t = H.implementation.createHTMLDocument(""), n = t.createElement("base"), n.href = H.location.href, t.head.appendChild(n)) : t = H), s = ti.exec(e), o = !i && [], s ? [t.createElement(s[1])] : (s = ci([e], t, o), o && o.length && r(o).remove(), r.merge([], s.childNodes));
|
|
4426
4504
|
}, r.fn.load = function(e, t, i) {
|
|
4427
4505
|
var n, s, o, u = this, c = e.indexOf(" ");
|
|
4428
|
-
return c > -1 && (n =
|
|
4506
|
+
return c > -1 && (n = qe(e.slice(c)), e = e.slice(0, c)), O(t) ? (i = t, t = void 0) : t && typeof t == "object" && (s = "POST"), u.length > 0 && r.ajax({
|
|
4429
4507
|
url: e,
|
|
4430
4508
|
// If "type" variable is undefined, then "GET" method will be used.
|
|
4431
4509
|
// Make value of this field explicit since
|
|
@@ -4454,7 +4532,7 @@ function Cr() {
|
|
|
4454
4532
|
}, r.offset = {
|
|
4455
4533
|
setOffset: function(e, t, i) {
|
|
4456
4534
|
var n, s, o, u, c, l, h, x = r.css(e, "position"), T = r(e), y = {};
|
|
4457
|
-
x === "static" && (e.style.position = "relative"), c = T.offset(), o = r.css(e, "top"), l = r.css(e, "left"), h = (x === "absolute" || x === "fixed") && (o + l).indexOf("auto") > -1, h ? (n = T.position(), u = n.top, s = n.left) : (u = parseFloat(o) || 0, s = parseFloat(l) || 0),
|
|
4535
|
+
x === "static" && (e.style.position = "relative"), c = T.offset(), o = r.css(e, "top"), l = r.css(e, "left"), h = (x === "absolute" || x === "fixed") && (o + l).indexOf("auto") > -1, h ? (n = T.position(), u = n.top, s = n.left) : (u = parseFloat(o) || 0, s = parseFloat(l) || 0), O(t) && (t = t.call(e, i, r.extend({}, c))), t.top != null && (y.top = t.top - c.top + u), t.left != null && (y.left = t.left - c.left + s), "using" in t ? t.using.call(e, y) : T.css(y);
|
|
4458
4536
|
}
|
|
4459
4537
|
}, r.fn.extend({
|
|
4460
4538
|
// offset() relates an element's border box to the document origin
|
|
@@ -4502,15 +4580,15 @@ function Cr() {
|
|
|
4502
4580
|
return this.map(function() {
|
|
4503
4581
|
for (var e = this.offsetParent; e && r.css(e, "position") === "static"; )
|
|
4504
4582
|
e = e.offsetParent;
|
|
4505
|
-
return e ||
|
|
4583
|
+
return e || Le;
|
|
4506
4584
|
});
|
|
4507
4585
|
}
|
|
4508
4586
|
}), r.each({ scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function(e, t) {
|
|
4509
4587
|
var i = t === "pageYOffset";
|
|
4510
4588
|
r.fn[e] = function(n) {
|
|
4511
|
-
return
|
|
4589
|
+
return Ce(this, function(s, o, u) {
|
|
4512
4590
|
var c;
|
|
4513
|
-
if (
|
|
4591
|
+
if (Fe(s) ? c = s : s.nodeType === 9 && (c = s.defaultView), u === void 0)
|
|
4514
4592
|
return c ? c[t] : s[o];
|
|
4515
4593
|
c ? c.scrollTo(
|
|
4516
4594
|
i ? c.pageXOffset : u,
|
|
@@ -4519,11 +4597,11 @@ function Cr() {
|
|
|
4519
4597
|
}, e, n, arguments.length);
|
|
4520
4598
|
};
|
|
4521
4599
|
}), r.each(["top", "left"], function(e, t) {
|
|
4522
|
-
r.cssHooks[t] =
|
|
4523
|
-
|
|
4600
|
+
r.cssHooks[t] = mi(
|
|
4601
|
+
F.pixelPosition,
|
|
4524
4602
|
function(i, n) {
|
|
4525
4603
|
if (n)
|
|
4526
|
-
return n =
|
|
4604
|
+
return n = it(i, t), Nt.test(n) ? r(i).position()[t] + "px" : n;
|
|
4527
4605
|
}
|
|
4528
4606
|
);
|
|
4529
4607
|
}), r.each({ Height: "height", Width: "width" }, function(e, t) {
|
|
@@ -4534,9 +4612,9 @@ function Cr() {
|
|
|
4534
4612
|
}, function(i, n) {
|
|
4535
4613
|
r.fn[n] = function(s, o) {
|
|
4536
4614
|
var u = arguments.length && (i || typeof s != "boolean"), c = i || (s === !0 || o === !0 ? "margin" : "border");
|
|
4537
|
-
return
|
|
4615
|
+
return Ce(this, function(l, h, x) {
|
|
4538
4616
|
var T;
|
|
4539
|
-
return
|
|
4617
|
+
return Fe(l) ? n.indexOf("outer") === 0 ? l["inner" + e] : l.document.documentElement["client" + e] : l.nodeType === 9 ? (T = l.documentElement, Math.max(
|
|
4540
4618
|
l.body["scroll" + e],
|
|
4541
4619
|
T["scroll" + e],
|
|
4542
4620
|
l.body["offset" + e],
|
|
@@ -4590,13 +4668,13 @@ function Cr() {
|
|
|
4590
4668
|
var Wn = /^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;
|
|
4591
4669
|
r.proxy = function(e, t) {
|
|
4592
4670
|
var i, n, s;
|
|
4593
|
-
if (typeof t == "string" && (i = e[t], t = e, e = i), !!
|
|
4594
|
-
return n =
|
|
4595
|
-
return e.apply(t || this, n.concat(
|
|
4671
|
+
if (typeof t == "string" && (i = e[t], t = e, e = i), !!O(e))
|
|
4672
|
+
return n = S.call(arguments, 2), s = function() {
|
|
4673
|
+
return e.apply(t || this, n.concat(S.call(arguments)));
|
|
4596
4674
|
}, s.guid = e.guid = e.guid || r.guid++, s;
|
|
4597
4675
|
}, r.holdReady = function(e) {
|
|
4598
4676
|
e ? r.readyWait++ : r.ready(!0);
|
|
4599
|
-
}, r.isArray = Array.isArray, r.parseJSON = JSON.parse, r.nodeName = K, r.isFunction =
|
|
4677
|
+
}, r.isArray = Array.isArray, r.parseJSON = JSON.parse, r.nodeName = K, r.isFunction = O, r.isWindow = Fe, r.camelCase = me, r.type = Oe, r.now = Date.now, r.isNumeric = function(e) {
|
|
4600
4678
|
var t = r.type(e);
|
|
4601
4679
|
return (t === "number" || t === "string") && // parseFloat NaNs numeric-cast false positives ("")
|
|
4602
4680
|
// ...but misinterprets leading-number strings, particularly hex literals ("0x...")
|
|
@@ -4605,16 +4683,16 @@ function Cr() {
|
|
|
4605
4683
|
}, r.trim = function(e) {
|
|
4606
4684
|
return e == null ? "" : (e + "").replace(Wn, "$1");
|
|
4607
4685
|
};
|
|
4608
|
-
var
|
|
4686
|
+
var Vn = a.jQuery, Bn = a.$;
|
|
4609
4687
|
return r.noConflict = function(e) {
|
|
4610
|
-
return a.$ === r && (a.$ = Bn), e && a.jQuery === r && (a.jQuery =
|
|
4688
|
+
return a.$ === r && (a.$ = Bn), e && a.jQuery === r && (a.jQuery = Vn), r;
|
|
4611
4689
|
}, typeof p > "u" && (a.jQuery = a.$ = r), r;
|
|
4612
4690
|
});
|
|
4613
|
-
})(
|
|
4691
|
+
})(wt)), wt.exports;
|
|
4614
4692
|
}
|
|
4615
|
-
var
|
|
4616
|
-
const Er = /* @__PURE__ */ wr(
|
|
4617
|
-
class
|
|
4693
|
+
var Ar = kr();
|
|
4694
|
+
const Er = /* @__PURE__ */ wr(Ar);
|
|
4695
|
+
class Dr {
|
|
4618
4696
|
constructor() {
|
|
4619
4697
|
this.canvasEl = null, this.opt = null, this.el = null, this.$el = null, this.player = null, console.log("MnPlayer constructor");
|
|
4620
4698
|
}
|
|
@@ -4633,13 +4711,13 @@ class Ar {
|
|
|
4633
4711
|
}
|
|
4634
4712
|
/* 参数配置,初始化dom */
|
|
4635
4713
|
init(a) {
|
|
4636
|
-
this.opt = a, this.el = a.el, this.$el = Er(a.el), this.initDom(),
|
|
4714
|
+
this.opt = a, this.el = a.el, this.$el = Er(a.el), this.initDom(), Z.port = this.opt.port, Z.host = this.opt.host, Z.ws = this.opt.ws, Z.userId = this.opt.userId, Z.tenantId = this.opt.tenantId, Z.token = this.opt.accessToken, this.player = new Z(
|
|
4637
4715
|
this.opt.phone,
|
|
4638
4716
|
this.opt.channelNo,
|
|
4639
4717
|
this.$el,
|
|
4640
4718
|
this.canvasEl,
|
|
4641
4719
|
this.opt.lang,
|
|
4642
|
-
this.opt.
|
|
4720
|
+
this.opt.renderType
|
|
4643
4721
|
);
|
|
4644
4722
|
}
|
|
4645
4723
|
initDom() {
|
|
@@ -4661,15 +4739,19 @@ class Ar {
|
|
|
4661
4739
|
removeDom() {
|
|
4662
4740
|
this.canvasEl && (this.canvasEl.remove(), this.canvasEl = null), this.el && (this.el.innerHTML = "");
|
|
4663
4741
|
}
|
|
4742
|
+
resetAudioOffset(a = 0) {
|
|
4743
|
+
console.log("重置音频", a), this.player?.resetAudioOffset(a);
|
|
4744
|
+
}
|
|
4664
4745
|
play(a) {
|
|
4665
4746
|
if (!this.opt)
|
|
4666
4747
|
throw new Error("Options not initialized. Please call init() first.");
|
|
4667
|
-
this.player || (this.initDom(), this.player = new
|
|
4748
|
+
this.player || (this.initDom(), this.player = new Z(
|
|
4668
4749
|
this.opt.phone,
|
|
4669
4750
|
this.opt.channelNo,
|
|
4670
4751
|
this.$el,
|
|
4671
4752
|
this.canvasEl,
|
|
4672
|
-
this.opt.lang || ""
|
|
4753
|
+
this.opt.lang || "",
|
|
4754
|
+
this.opt.renderType
|
|
4673
4755
|
));
|
|
4674
4756
|
let p = a?.streamType !== void 0 ? a.streamType : 1;
|
|
4675
4757
|
a?.streamType === 0 && (p = 0), a?.streamType === 0 && (p = 0), this.player.play(0, p, a?.beginTime);
|
|
@@ -4690,14 +4772,14 @@ class Ar {
|
|
|
4690
4772
|
console.log("MnPlayer enableAudio"), this.player && this.player.enableAudio(a);
|
|
4691
4773
|
}
|
|
4692
4774
|
timeCallBack(a) {
|
|
4693
|
-
|
|
4775
|
+
Z.timeCallback = a;
|
|
4694
4776
|
}
|
|
4695
4777
|
changeSpeed(a) {
|
|
4696
4778
|
console.log("MnPlayer changeSpeed"), this.player && this.player.changeSpeed(a);
|
|
4697
4779
|
}
|
|
4698
4780
|
}
|
|
4699
4781
|
export {
|
|
4700
|
-
|
|
4701
|
-
|
|
4782
|
+
Dr as MnVideoPlayer,
|
|
4783
|
+
Dr as default
|
|
4702
4784
|
};
|
|
4703
4785
|
//# sourceMappingURL=mn-video-player.es.js.map
|