@streamlayer/react 1.21.4 → 1.22.2
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/lib/app/masters.d.ts +2 -5
- package/lib/app/pause-ad.d.ts +1 -10
- package/lib/app/useStreamLayerApp.d.ts +1 -23
- package/lib/cjs/Question.js +1 -0
- package/lib/cjs/advertisement.js +40 -40
- package/lib/cjs/analytics.js +1 -0
- package/lib/cjs/auth.js +1 -1
- package/lib/cjs/bet-pack.js +1 -1
- package/lib/cjs/gamification-feature.js +1 -1
- package/lib/cjs/hooks-B0Qttldg.js +1 -0
- package/lib/cjs/index-DSi8Qgfs.js +1 -0
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index10.js +1 -0
- package/lib/cjs/index11.js +4 -0
- package/lib/cjs/index12.js +1 -0
- package/lib/cjs/index13.js +1 -0
- package/lib/cjs/index14.js +1 -0
- package/lib/cjs/index15.js +1 -0
- package/lib/cjs/index16.js +5 -0
- package/lib/cjs/index2.js +1 -5
- package/lib/cjs/index3.js +1 -0
- package/lib/cjs/index4.js +5 -0
- package/lib/cjs/index5.js +1 -0
- package/lib/cjs/index6.js +1 -0
- package/lib/cjs/index7.js +5 -0
- package/lib/cjs/index8.js +1 -0
- package/lib/cjs/index9.js +1 -0
- package/lib/cjs/insight.js +1 -1
- package/lib/cjs/masters.js +1 -1
- package/lib/cjs/masters2.js +6 -6
- package/lib/cjs/notification.js +1 -1
- package/lib/cjs/pause-ad.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/sl-types.js +15 -0
- package/lib/cjs/storage.js +1 -0
- package/lib/cjs/theme.js +17 -0
- package/lib/cjs/useStreamLayerApp.js +1 -1
- package/lib/cjs/useStreamLayerApp2.js +9 -9
- package/lib/cjs/utils.js +47 -0
- package/lib/cjs/vast-client.min.js +1 -0
- package/lib/classic/app/masters.d.ts +2 -5
- package/lib/classic/app/pause-ad.d.ts +1 -10
- package/lib/classic/app/useStreamLayerApp.d.ts +1 -23
- package/lib/classic/cjs/Question.js +1 -0
- package/lib/classic/cjs/advertisement.js +40 -40
- package/lib/classic/cjs/analytics.js +1 -0
- package/lib/classic/cjs/auth.js +1 -1
- package/lib/classic/cjs/bet-pack.js +4 -4
- package/lib/classic/cjs/gamification-feature.js +1 -1
- package/lib/classic/cjs/hooks-B0Qttldg.js +1 -0
- package/lib/classic/cjs/index-DSi8Qgfs.js +1 -0
- package/lib/classic/cjs/index.js +1 -1
- package/lib/classic/cjs/index10.js +1 -0
- package/lib/classic/cjs/index11.js +1 -0
- package/lib/classic/cjs/index12.js +1 -0
- package/lib/classic/cjs/index13.js +4 -0
- package/lib/classic/cjs/index2.js +5 -0
- package/lib/classic/cjs/index3.js +1 -0
- package/lib/classic/cjs/index4.js +1 -0
- package/lib/classic/cjs/index5.js +1 -0
- package/lib/classic/cjs/index6.js +5 -0
- package/lib/classic/cjs/index7.js +1 -0
- package/lib/classic/cjs/index8.js +1 -0
- package/lib/classic/cjs/index9.js +1 -0
- package/lib/classic/cjs/insight.js +1 -1
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/notification2.js +1 -0
- package/lib/classic/cjs/pause-ad.js +1 -1
- package/lib/classic/cjs/points.js +1 -1
- package/lib/classic/cjs/sl-types.js +15 -0
- package/lib/classic/cjs/useStreamLayerApp.js +1 -1
- package/lib/classic/cjs/useStreamLayerApp2.js +9 -9
- package/lib/classic/cjs/utils.js +47 -0
- package/lib/classic/cjs/vast-client.min.js +1 -0
- package/lib/classic/es/Question.js +392 -0
- package/lib/classic/es/advertisement.js +10375 -10374
- package/lib/classic/es/analytics.js +28 -0
- package/lib/classic/es/auth.js +4 -4
- package/lib/classic/es/bet-pack.js +56 -51
- package/lib/classic/es/gamification-feature.js +1 -1
- package/lib/classic/es/hooks-B0Qttldg.js +98 -0
- package/lib/classic/es/index-DSi8Qgfs.js +65 -0
- package/lib/classic/es/index.js +14 -15
- package/lib/classic/es/index10.js +87 -0
- package/lib/classic/es/index11.js +2361 -0
- package/lib/classic/es/index12.js +183 -0
- package/lib/classic/es/index13.js +835 -0
- package/lib/classic/es/index2.js +2621 -0
- package/lib/classic/es/index3.js +64 -0
- package/lib/classic/es/index4.js +19 -0
- package/lib/classic/es/index5.js +285 -0
- package/lib/classic/es/{index-l-eyvmpL.js → index6.js} +937 -937
- package/lib/classic/es/index7.js +7 -0
- package/lib/classic/es/index8.js +11 -0
- package/lib/classic/es/index9.js +319 -0
- package/lib/classic/es/insight.js +31 -32
- package/lib/classic/es/notification.js +7 -1006
- package/lib/classic/es/notification2.js +1117 -0
- package/lib/classic/es/pause-ad.js +139 -138
- package/lib/classic/es/points.js +39 -38
- package/lib/classic/es/sl-types.js +258 -0
- package/lib/classic/es/useStreamLayerApp.js +1 -2
- package/lib/classic/es/useStreamLayerApp2.js +2400 -2283
- package/lib/classic/es/utils.js +76 -0
- package/lib/{es/vast-client.min-B0NUra1B.js → classic/es/vast-client.min.js} +338 -338
- package/lib/classic/index.d.ts +5 -13
- package/lib/classic/masters.d.ts +1 -1
- package/lib/dist/cjs/index.js +1 -1
- package/lib/dist/cjs/masters.js +30 -30
- package/lib/dist/es/index.js +2 -2
- package/lib/dist/es/masters.js +5813 -6063
- package/lib/dist/index.d.ts +1332 -0
- package/lib/dist/style.css +1 -1
- package/lib/es/Question.js +136 -0
- package/lib/es/advertisement.js +10375 -10374
- package/lib/es/analytics.js +28 -0
- package/lib/es/auth.js +4 -4
- package/lib/es/bet-pack.js +7 -6
- package/lib/es/gamification-feature.js +1 -1
- package/lib/es/hooks-B0Qttldg.js +98 -0
- package/lib/es/index-DSi8Qgfs.js +65 -0
- package/lib/es/index.js +13 -14
- package/lib/es/index10.js +267 -0
- package/lib/es/index11.js +835 -0
- package/lib/es/index12.js +183 -0
- package/lib/es/index13.js +319 -0
- package/lib/es/index14.js +87 -0
- package/lib/es/index15.js +2355 -0
- package/lib/es/index16.js +1254 -0
- package/lib/es/index2.js +1349 -3363
- package/lib/es/index3.js +64 -0
- package/lib/es/index4.js +3418 -0
- package/lib/es/index5.js +19 -0
- package/lib/es/index6.js +285 -0
- package/lib/es/{index-l-eyvmpL.js → index7.js} +937 -937
- package/lib/es/index8.js +7 -0
- package/lib/es/index9.js +11 -0
- package/lib/es/insight.js +31 -32
- package/lib/es/masters.js +6 -5
- package/lib/es/masters2.js +189 -176
- package/lib/es/notification.js +124 -119
- package/lib/es/pause-ad.js +140 -139
- package/lib/es/points.js +40 -38
- package/lib/es/sl-types.js +277 -0
- package/lib/es/storage.js +113 -0
- package/lib/es/theme.js +47 -0
- package/lib/es/useStreamLayerApp.js +1 -2
- package/lib/es/useStreamLayerApp2.js +2399 -2282
- package/lib/es/utils.js +76 -0
- package/lib/{classic/es/vast-client.min-B0NUra1B.js → es/vast-client.min.js} +338 -338
- package/lib/index.d.ts +5 -13
- package/lib/masters.d.ts +1 -1
- package/lib/style.css +1 -1
- package/package.json +13 -48
- package/lib/app/event.d.ts +0 -6
- package/lib/app/provider.d.ts +0 -49
- package/lib/cjs/index-l-eyvmpL.js +0 -5
- package/lib/cjs/provider.js +0 -84
- package/lib/cjs/vast-client.min-B0NUra1B.js +0 -1
- package/lib/classic/app/event.d.ts +0 -6
- package/lib/classic/app/provider.d.ts +0 -49
- package/lib/classic/cjs/index-l-eyvmpL.js +0 -5
- package/lib/classic/cjs/provider.js +0 -68
- package/lib/classic/cjs/vast-client.min-B0NUra1B.js +0 -1
- package/lib/classic/es/provider.js +0 -7617
- package/lib/dist/cjs/gamification-feature2.js +0 -1
- package/lib/dist/es/gamification-feature2.js +0 -285
- package/lib/es/provider.js +0 -7693
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
var
|
|
2
|
-
function
|
|
3
|
-
if (
|
|
4
|
-
return
|
|
5
|
-
for (var
|
|
6
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
7
|
-
var
|
|
8
|
-
if (
|
|
9
|
-
return
|
|
1
|
+
var M = {}, k = {};
|
|
2
|
+
function xe(u, e, r) {
|
|
3
|
+
if (r === void 0 && (r = Array.prototype), u && typeof r.find == "function")
|
|
4
|
+
return r.find.call(u, e);
|
|
5
|
+
for (var t = 0; t < u.length; t++)
|
|
6
|
+
if (Object.prototype.hasOwnProperty.call(u, t)) {
|
|
7
|
+
var n = u[t];
|
|
8
|
+
if (e.call(void 0, n, t, u))
|
|
9
|
+
return n;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
return
|
|
12
|
+
function wu(u, e) {
|
|
13
|
+
return e === void 0 && (e = Object), e && typeof e.freeze == "function" ? e.freeze(u) : u;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
if (
|
|
15
|
+
function Se(u, e) {
|
|
16
|
+
if (u === null || typeof u != "object")
|
|
17
17
|
throw new TypeError("target is not an object");
|
|
18
|
-
for (var
|
|
19
|
-
Object.prototype.hasOwnProperty.call(
|
|
20
|
-
return
|
|
18
|
+
for (var r in e)
|
|
19
|
+
Object.prototype.hasOwnProperty.call(e, r) && (u[r] = e[r]);
|
|
20
|
+
return u;
|
|
21
21
|
}
|
|
22
|
-
var
|
|
22
|
+
var Ju = wu({
|
|
23
23
|
/**
|
|
24
24
|
* `text/html`, the only mime type that triggers treating an XML document as HTML.
|
|
25
25
|
*
|
|
@@ -40,8 +40,8 @@ var We = De({
|
|
|
40
40
|
* @see https://en.wikipedia.org/wiki/HTML Wikipedia
|
|
41
41
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString MDN
|
|
42
42
|
* @see https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-domparser-parsefromstring */
|
|
43
|
-
isHTML: function(
|
|
44
|
-
return
|
|
43
|
+
isHTML: function(u) {
|
|
44
|
+
return u === Ju.HTML;
|
|
45
45
|
},
|
|
46
46
|
/**
|
|
47
47
|
* `application/xml`, the standard mime type for XML documents.
|
|
@@ -76,7 +76,7 @@ var We = De({
|
|
|
76
76
|
* @see https://en.wikipedia.org/wiki/Scalable_Vector_Graphics Wikipedia
|
|
77
77
|
*/
|
|
78
78
|
XML_SVG_IMAGE: "image/svg+xml"
|
|
79
|
-
}),
|
|
79
|
+
}), Wu = wu({
|
|
80
80
|
/**
|
|
81
81
|
* The XHTML namespace.
|
|
82
82
|
*
|
|
@@ -90,8 +90,8 @@ var We = De({
|
|
|
90
90
|
*
|
|
91
91
|
* @see NAMESPACE.HTML
|
|
92
92
|
*/
|
|
93
|
-
isHTML: function(
|
|
94
|
-
return
|
|
93
|
+
isHTML: function(u) {
|
|
94
|
+
return u === Wu.HTML;
|
|
95
95
|
},
|
|
96
96
|
/**
|
|
97
97
|
* The SVG namespace.
|
|
@@ -112,72 +112,72 @@ var We = De({
|
|
|
112
112
|
*/
|
|
113
113
|
XMLNS: "http://www.w3.org/2000/xmlns/"
|
|
114
114
|
});
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
var
|
|
121
|
-
function
|
|
122
|
-
return
|
|
123
|
-
}
|
|
124
|
-
function
|
|
125
|
-
return
|
|
126
|
-
}
|
|
127
|
-
function
|
|
128
|
-
return
|
|
129
|
-
}
|
|
130
|
-
function
|
|
131
|
-
if (!
|
|
132
|
-
var
|
|
133
|
-
return Object.keys(
|
|
134
|
-
}
|
|
135
|
-
function
|
|
136
|
-
return function(
|
|
137
|
-
return
|
|
115
|
+
k.assign = Se;
|
|
116
|
+
k.find = xe;
|
|
117
|
+
k.freeze = wu;
|
|
118
|
+
k.MIME_TYPE = Ju;
|
|
119
|
+
k.NAMESPACE = Wu;
|
|
120
|
+
var Ku = k, O = Ku.find, K = Ku.NAMESPACE;
|
|
121
|
+
function qe(u) {
|
|
122
|
+
return u !== "";
|
|
123
|
+
}
|
|
124
|
+
function Oe(u) {
|
|
125
|
+
return u ? u.split(/[\t\n\f\r ]+/).filter(qe) : [];
|
|
126
|
+
}
|
|
127
|
+
function Re(u, e) {
|
|
128
|
+
return u.hasOwnProperty(e) || (u[e] = !0), u;
|
|
129
|
+
}
|
|
130
|
+
function ku(u) {
|
|
131
|
+
if (!u) return [];
|
|
132
|
+
var e = Oe(u);
|
|
133
|
+
return Object.keys(e.reduce(Re, {}));
|
|
134
|
+
}
|
|
135
|
+
function _e(u) {
|
|
136
|
+
return function(e) {
|
|
137
|
+
return u && u.indexOf(e) !== -1;
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
for (var
|
|
142
|
-
Object.prototype.hasOwnProperty.call(
|
|
140
|
+
function tu(u, e) {
|
|
141
|
+
for (var r in u)
|
|
142
|
+
Object.prototype.hasOwnProperty.call(u, r) && (e[r] = u[r]);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
145
|
-
var
|
|
146
|
-
if (!(
|
|
147
|
-
let
|
|
144
|
+
function y(u, e) {
|
|
145
|
+
var r = u.prototype;
|
|
146
|
+
if (!(r instanceof e)) {
|
|
147
|
+
let t = function() {
|
|
148
148
|
};
|
|
149
|
-
|
|
149
|
+
t.prototype = e.prototype, t = new t(), tu(r, t), u.prototype = r = t;
|
|
150
150
|
}
|
|
151
|
-
|
|
152
|
-
}
|
|
153
|
-
var
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
var
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
var
|
|
162
|
-
|
|
163
|
-
var
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
function
|
|
170
|
-
if (
|
|
171
|
-
var
|
|
151
|
+
r.constructor != u && (typeof u != "function" && console.error("unknown Class:" + u), r.constructor = u);
|
|
152
|
+
}
|
|
153
|
+
var T = {}, q = T.ELEMENT_NODE = 1, $ = T.ATTRIBUTE_NODE = 2, lu = T.TEXT_NODE = 3, ue = T.CDATA_SECTION_NODE = 4, ee = T.ENTITY_REFERENCE_NODE = 5, Le = T.ENTITY_NODE = 6, re = T.PROCESSING_INSTRUCTION_NODE = 7, te = T.COMMENT_NODE = 8, ne = T.DOCUMENT_NODE = 9, ae = T.DOCUMENT_TYPE_NODE = 10, L = T.DOCUMENT_FRAGMENT_NODE = 11, Ie = T.NOTATION_NODE = 12, b = {}, v = {};
|
|
154
|
+
b.INDEX_SIZE_ERR = (v[1] = "Index size error", 1);
|
|
155
|
+
b.DOMSTRING_SIZE_ERR = (v[2] = "DOMString size error", 2);
|
|
156
|
+
var N = b.HIERARCHY_REQUEST_ERR = (v[3] = "Hierarchy request error", 3);
|
|
157
|
+
b.WRONG_DOCUMENT_ERR = (v[4] = "Wrong document", 4);
|
|
158
|
+
b.INVALID_CHARACTER_ERR = (v[5] = "Invalid character", 5);
|
|
159
|
+
b.NO_DATA_ALLOWED_ERR = (v[6] = "No data allowed", 6);
|
|
160
|
+
b.NO_MODIFICATION_ALLOWED_ERR = (v[7] = "No modification allowed", 7);
|
|
161
|
+
var ie = b.NOT_FOUND_ERR = (v[8] = "Not found", 8);
|
|
162
|
+
b.NOT_SUPPORTED_ERR = (v[9] = "Not supported", 9);
|
|
163
|
+
var Uu = b.INUSE_ATTRIBUTE_ERR = (v[10] = "Attribute in use", 10);
|
|
164
|
+
b.INVALID_STATE_ERR = (v[11] = "Invalid state", 11);
|
|
165
|
+
b.SYNTAX_ERR = (v[12] = "Syntax error", 12);
|
|
166
|
+
b.INVALID_MODIFICATION_ERR = (v[13] = "Invalid modification", 13);
|
|
167
|
+
b.NAMESPACE_ERR = (v[14] = "Invalid namespace", 14);
|
|
168
|
+
b.INVALID_ACCESS_ERR = (v[15] = "Invalid access", 15);
|
|
169
|
+
function m(u, e) {
|
|
170
|
+
if (e instanceof Error)
|
|
171
|
+
var r = e;
|
|
172
172
|
else
|
|
173
|
-
|
|
174
|
-
return
|
|
173
|
+
r = this, Error.call(this, v[u]), this.message = v[u], Error.captureStackTrace && Error.captureStackTrace(this, m);
|
|
174
|
+
return r.code = u, e && (this.message = this.message + ": " + e), r;
|
|
175
175
|
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
function
|
|
176
|
+
m.prototype = Error.prototype;
|
|
177
|
+
tu(b, m);
|
|
178
|
+
function _() {
|
|
179
179
|
}
|
|
180
|
-
|
|
180
|
+
_.prototype = {
|
|
181
181
|
/**
|
|
182
182
|
* The number of nodes in the list. The range of valid child node indices is 0 to length-1 inclusive.
|
|
183
183
|
* @standard level1
|
|
@@ -191,121 +191,121 @@ I.prototype = {
|
|
|
191
191
|
* @return Node
|
|
192
192
|
* The node at the indexth position in the NodeList, or null if that is not a valid index.
|
|
193
193
|
*/
|
|
194
|
-
item: function(
|
|
195
|
-
return
|
|
194
|
+
item: function(u) {
|
|
195
|
+
return u >= 0 && u < this.length ? this[u] : null;
|
|
196
196
|
},
|
|
197
|
-
toString: function(
|
|
198
|
-
for (var
|
|
199
|
-
|
|
200
|
-
return
|
|
197
|
+
toString: function(u, e) {
|
|
198
|
+
for (var r = [], t = 0; t < this.length; t++)
|
|
199
|
+
j(this[t], r, u, e);
|
|
200
|
+
return r.join("");
|
|
201
201
|
},
|
|
202
202
|
/**
|
|
203
203
|
* @private
|
|
204
204
|
* @param {function (Node):boolean} predicate
|
|
205
205
|
* @returns {Node[]}
|
|
206
206
|
*/
|
|
207
|
-
filter: function(
|
|
208
|
-
return Array.prototype.filter.call(this,
|
|
207
|
+
filter: function(u) {
|
|
208
|
+
return Array.prototype.filter.call(this, u);
|
|
209
209
|
},
|
|
210
210
|
/**
|
|
211
211
|
* @private
|
|
212
212
|
* @param {Node} item
|
|
213
213
|
* @returns {number}
|
|
214
214
|
*/
|
|
215
|
-
indexOf: function(
|
|
216
|
-
return Array.prototype.indexOf.call(this,
|
|
215
|
+
indexOf: function(u) {
|
|
216
|
+
return Array.prototype.indexOf.call(this, u);
|
|
217
217
|
}
|
|
218
218
|
};
|
|
219
|
-
function
|
|
220
|
-
this._node =
|
|
221
|
-
}
|
|
222
|
-
function
|
|
223
|
-
var
|
|
224
|
-
if (
|
|
225
|
-
var
|
|
226
|
-
if (
|
|
227
|
-
for (var
|
|
228
|
-
Object.prototype.hasOwnProperty.call(
|
|
229
|
-
|
|
219
|
+
function X(u, e) {
|
|
220
|
+
this._node = u, this._refresh = e, Bu(this);
|
|
221
|
+
}
|
|
222
|
+
function Bu(u) {
|
|
223
|
+
var e = u._node._inc || u._node.ownerDocument._inc;
|
|
224
|
+
if (u._inc !== e) {
|
|
225
|
+
var r = u._refresh(u._node);
|
|
226
|
+
if (ge(u, "length", r.length), !u.$$length || r.length < u.$$length)
|
|
227
|
+
for (var t = r.length; t in u; t++)
|
|
228
|
+
Object.prototype.hasOwnProperty.call(u, t) && delete u[t];
|
|
229
|
+
tu(r, u), u._inc = e;
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
|
|
233
|
-
return
|
|
232
|
+
X.prototype.item = function(u) {
|
|
233
|
+
return Bu(this), this[u] || null;
|
|
234
234
|
};
|
|
235
|
-
|
|
236
|
-
function
|
|
237
|
-
}
|
|
238
|
-
function
|
|
239
|
-
for (var
|
|
240
|
-
if (
|
|
241
|
-
return
|
|
242
|
-
}
|
|
243
|
-
function
|
|
244
|
-
if (
|
|
245
|
-
|
|
246
|
-
var
|
|
247
|
-
|
|
235
|
+
y(X, _);
|
|
236
|
+
function cu() {
|
|
237
|
+
}
|
|
238
|
+
function oe(u, e) {
|
|
239
|
+
for (var r = u.length; r--; )
|
|
240
|
+
if (u[r] === e)
|
|
241
|
+
return r;
|
|
242
|
+
}
|
|
243
|
+
function Mu(u, e, r, t) {
|
|
244
|
+
if (t ? e[oe(e, t)] = r : e[e.length++] = r, u) {
|
|
245
|
+
r.ownerElement = u;
|
|
246
|
+
var n = u.ownerDocument;
|
|
247
|
+
n && (t && ce(n, u, t), ke(n, u, r));
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
function
|
|
251
|
-
var
|
|
252
|
-
if (
|
|
253
|
-
for (var
|
|
254
|
-
|
|
255
|
-
if (
|
|
256
|
-
var
|
|
257
|
-
|
|
250
|
+
function Pu(u, e, r) {
|
|
251
|
+
var t = oe(e, r);
|
|
252
|
+
if (t >= 0) {
|
|
253
|
+
for (var n = e.length - 1; t < n; )
|
|
254
|
+
e[t] = e[++t];
|
|
255
|
+
if (e.length = n, u) {
|
|
256
|
+
var a = u.ownerDocument;
|
|
257
|
+
a && (ce(a, u, r), r.ownerElement = null);
|
|
258
258
|
}
|
|
259
259
|
} else
|
|
260
|
-
throw new
|
|
260
|
+
throw new m(ie, new Error(u.tagName + "@" + r));
|
|
261
261
|
}
|
|
262
|
-
|
|
262
|
+
cu.prototype = {
|
|
263
263
|
length: 0,
|
|
264
|
-
item:
|
|
265
|
-
getNamedItem: function(
|
|
266
|
-
for (var
|
|
267
|
-
var
|
|
268
|
-
if (
|
|
269
|
-
return
|
|
264
|
+
item: _.prototype.item,
|
|
265
|
+
getNamedItem: function(u) {
|
|
266
|
+
for (var e = this.length; e--; ) {
|
|
267
|
+
var r = this[e];
|
|
268
|
+
if (r.nodeName == u)
|
|
269
|
+
return r;
|
|
270
270
|
}
|
|
271
271
|
},
|
|
272
|
-
setNamedItem: function(
|
|
273
|
-
var
|
|
274
|
-
if (
|
|
275
|
-
throw new
|
|
276
|
-
var
|
|
277
|
-
return
|
|
272
|
+
setNamedItem: function(u) {
|
|
273
|
+
var e = u.ownerElement;
|
|
274
|
+
if (e && e != this._ownerElement)
|
|
275
|
+
throw new m(Uu);
|
|
276
|
+
var r = this.getNamedItem(u.nodeName);
|
|
277
|
+
return Mu(this._ownerElement, this, u, r), r;
|
|
278
278
|
},
|
|
279
279
|
/* returns Node */
|
|
280
|
-
setNamedItemNS: function(
|
|
281
|
-
var
|
|
282
|
-
if (
|
|
283
|
-
throw new
|
|
284
|
-
return
|
|
280
|
+
setNamedItemNS: function(u) {
|
|
281
|
+
var e = u.ownerElement, r;
|
|
282
|
+
if (e && e != this._ownerElement)
|
|
283
|
+
throw new m(Uu);
|
|
284
|
+
return r = this.getNamedItemNS(u.namespaceURI, u.localName), Mu(this._ownerElement, this, u, r), r;
|
|
285
285
|
},
|
|
286
286
|
/* returns Node */
|
|
287
|
-
removeNamedItem: function(
|
|
288
|
-
var
|
|
289
|
-
return
|
|
287
|
+
removeNamedItem: function(u) {
|
|
288
|
+
var e = this.getNamedItem(u);
|
|
289
|
+
return Pu(this._ownerElement, this, e), e;
|
|
290
290
|
},
|
|
291
291
|
// raises: NOT_FOUND_ERR,NO_MODIFICATION_ALLOWED_ERR
|
|
292
292
|
//for level2
|
|
293
|
-
removeNamedItemNS: function(
|
|
294
|
-
var
|
|
295
|
-
return
|
|
296
|
-
},
|
|
297
|
-
getNamedItemNS: function(
|
|
298
|
-
for (var
|
|
299
|
-
var
|
|
300
|
-
if (
|
|
301
|
-
return
|
|
293
|
+
removeNamedItemNS: function(u, e) {
|
|
294
|
+
var r = this.getNamedItemNS(u, e);
|
|
295
|
+
return Pu(this._ownerElement, this, r), r;
|
|
296
|
+
},
|
|
297
|
+
getNamedItemNS: function(u, e) {
|
|
298
|
+
for (var r = this.length; r--; ) {
|
|
299
|
+
var t = this[r];
|
|
300
|
+
if (t.localName == e && t.namespaceURI == u)
|
|
301
|
+
return t;
|
|
302
302
|
}
|
|
303
303
|
return null;
|
|
304
304
|
}
|
|
305
305
|
};
|
|
306
|
-
function
|
|
306
|
+
function se() {
|
|
307
307
|
}
|
|
308
|
-
|
|
308
|
+
se.prototype = {
|
|
309
309
|
/**
|
|
310
310
|
* The DOMImplementation.hasFeature() method returns a Boolean flag indicating if a given feature is supported.
|
|
311
311
|
* The different implementations fairly diverged in what kind of features were reported.
|
|
@@ -321,7 +321,7 @@ lr.prototype = {
|
|
|
321
321
|
* @see https://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-5CED94D7 DOM Level 1 Core
|
|
322
322
|
* @see https://dom.spec.whatwg.org/#dom-domimplementation-hasfeature DOM Living Standard
|
|
323
323
|
*/
|
|
324
|
-
hasFeature: function(
|
|
324
|
+
hasFeature: function(u, e) {
|
|
325
325
|
return !0;
|
|
326
326
|
},
|
|
327
327
|
/**
|
|
@@ -346,13 +346,13 @@ lr.prototype = {
|
|
|
346
346
|
* @see https://www.w3.org/TR/xml/#NT-NameStartChar XML Spec: Names
|
|
347
347
|
* @see https://www.w3.org/TR/xml-names/#ns-qualnames XML Namespaces: Qualified names
|
|
348
348
|
*/
|
|
349
|
-
createDocument: function(e, r
|
|
350
|
-
var
|
|
351
|
-
if (
|
|
352
|
-
var
|
|
353
|
-
|
|
349
|
+
createDocument: function(u, e, r) {
|
|
350
|
+
var t = new nu();
|
|
351
|
+
if (t.implementation = this, t.childNodes = new _(), t.doctype = r || null, r && t.appendChild(r), e) {
|
|
352
|
+
var n = t.createElementNS(u, e);
|
|
353
|
+
t.appendChild(n);
|
|
354
354
|
}
|
|
355
|
-
return
|
|
355
|
+
return t;
|
|
356
356
|
},
|
|
357
357
|
/**
|
|
358
358
|
* Returns a doctype, with the given `qualifiedName`, `publicId`, and `systemId`.
|
|
@@ -375,14 +375,14 @@ lr.prototype = {
|
|
|
375
375
|
* @see https://www.w3.org/TR/xml/#NT-NameStartChar XML Spec: Names
|
|
376
376
|
* @see https://www.w3.org/TR/xml-names/#ns-qualnames XML Namespaces: Qualified names
|
|
377
377
|
*/
|
|
378
|
-
createDocumentType: function(e, r
|
|
379
|
-
var
|
|
380
|
-
return
|
|
378
|
+
createDocumentType: function(u, e, r) {
|
|
379
|
+
var t = new fu();
|
|
380
|
+
return t.name = u, t.nodeName = u, t.publicId = e || "", t.systemId = r || "", t;
|
|
381
381
|
}
|
|
382
382
|
};
|
|
383
|
-
function
|
|
383
|
+
function D() {
|
|
384
384
|
}
|
|
385
|
-
|
|
385
|
+
D.prototype = {
|
|
386
386
|
firstChild: null,
|
|
387
387
|
lastChild: null,
|
|
388
388
|
previousSibling: null,
|
|
@@ -396,34 +396,34 @@ d.prototype = {
|
|
|
396
396
|
prefix: null,
|
|
397
397
|
localName: null,
|
|
398
398
|
// Modified in DOM Level 2:
|
|
399
|
-
insertBefore: function(
|
|
400
|
-
return
|
|
399
|
+
insertBefore: function(u, e) {
|
|
400
|
+
return pu(this, u, e);
|
|
401
401
|
},
|
|
402
|
-
replaceChild: function(
|
|
403
|
-
|
|
402
|
+
replaceChild: function(u, e) {
|
|
403
|
+
pu(this, u, e, De), e && this.removeChild(e);
|
|
404
404
|
},
|
|
405
|
-
removeChild: function(
|
|
406
|
-
return
|
|
405
|
+
removeChild: function(u) {
|
|
406
|
+
return pe(this, u);
|
|
407
407
|
},
|
|
408
|
-
appendChild: function(
|
|
409
|
-
return this.insertBefore(
|
|
408
|
+
appendChild: function(u) {
|
|
409
|
+
return this.insertBefore(u, null);
|
|
410
410
|
},
|
|
411
411
|
hasChildNodes: function() {
|
|
412
412
|
return this.firstChild != null;
|
|
413
413
|
},
|
|
414
|
-
cloneNode: function(
|
|
415
|
-
return
|
|
414
|
+
cloneNode: function(u) {
|
|
415
|
+
return Cu(this.ownerDocument || this, this, u);
|
|
416
416
|
},
|
|
417
417
|
// Modified in DOM Level 2:
|
|
418
418
|
normalize: function() {
|
|
419
|
-
for (var
|
|
420
|
-
var
|
|
421
|
-
|
|
419
|
+
for (var u = this.firstChild; u; ) {
|
|
420
|
+
var e = u.nextSibling;
|
|
421
|
+
e && e.nodeType == lu && u.nodeType == lu ? (this.removeChild(e), u.appendData(e.data)) : (u.normalize(), u = e);
|
|
422
422
|
}
|
|
423
423
|
},
|
|
424
424
|
// Introduced in DOM Level 2:
|
|
425
|
-
isSupported: function(
|
|
426
|
-
return this.ownerDocument.implementation.hasFeature(
|
|
425
|
+
isSupported: function(u, e) {
|
|
426
|
+
return this.ownerDocument.implementation.hasFeature(u, e);
|
|
427
427
|
},
|
|
428
428
|
// Introduced in DOM Level 2:
|
|
429
429
|
hasAttributes: function() {
|
|
@@ -443,209 +443,209 @@ d.prototype = {
|
|
|
443
443
|
* @see https://dom.spec.whatwg.org/#dom-node-lookupprefix
|
|
444
444
|
* @see https://github.com/xmldom/xmldom/issues/322
|
|
445
445
|
*/
|
|
446
|
-
lookupPrefix: function(
|
|
447
|
-
for (var
|
|
448
|
-
var
|
|
449
|
-
if (
|
|
450
|
-
for (var
|
|
451
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
452
|
-
return
|
|
446
|
+
lookupPrefix: function(u) {
|
|
447
|
+
for (var e = this; e; ) {
|
|
448
|
+
var r = e._nsMap;
|
|
449
|
+
if (r) {
|
|
450
|
+
for (var t in r)
|
|
451
|
+
if (Object.prototype.hasOwnProperty.call(r, t) && r[t] === u)
|
|
452
|
+
return t;
|
|
453
453
|
}
|
|
454
|
-
|
|
454
|
+
e = e.nodeType == $ ? e.ownerDocument : e.parentNode;
|
|
455
455
|
}
|
|
456
456
|
return null;
|
|
457
457
|
},
|
|
458
458
|
// Introduced in DOM Level 3:
|
|
459
|
-
lookupNamespaceURI: function(
|
|
460
|
-
for (var
|
|
461
|
-
var
|
|
462
|
-
if (
|
|
463
|
-
return
|
|
464
|
-
|
|
459
|
+
lookupNamespaceURI: function(u) {
|
|
460
|
+
for (var e = this; e; ) {
|
|
461
|
+
var r = e._nsMap;
|
|
462
|
+
if (r && Object.prototype.hasOwnProperty.call(r, u))
|
|
463
|
+
return r[u];
|
|
464
|
+
e = e.nodeType == $ ? e.ownerDocument : e.parentNode;
|
|
465
465
|
}
|
|
466
466
|
return null;
|
|
467
467
|
},
|
|
468
468
|
// Introduced in DOM Level 3:
|
|
469
|
-
isDefaultNamespace: function(
|
|
470
|
-
var
|
|
471
|
-
return
|
|
469
|
+
isDefaultNamespace: function(u) {
|
|
470
|
+
var e = this.lookupPrefix(u);
|
|
471
|
+
return e == null;
|
|
472
472
|
}
|
|
473
473
|
};
|
|
474
|
-
function
|
|
475
|
-
return
|
|
474
|
+
function le(u) {
|
|
475
|
+
return u == "<" && "<" || u == ">" && ">" || u == "&" && "&" || u == '"' && """ || "&#" + u.charCodeAt() + ";";
|
|
476
476
|
}
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
function
|
|
480
|
-
if (
|
|
477
|
+
tu(T, D);
|
|
478
|
+
tu(T, D.prototype);
|
|
479
|
+
function uu(u, e) {
|
|
480
|
+
if (e(u))
|
|
481
481
|
return !0;
|
|
482
|
-
if (
|
|
482
|
+
if (u = u.firstChild)
|
|
483
483
|
do
|
|
484
|
-
if (
|
|
484
|
+
if (uu(u, e))
|
|
485
485
|
return !0;
|
|
486
|
-
while (
|
|
486
|
+
while (u = u.nextSibling);
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function nu() {
|
|
489
489
|
this.ownerDocument = this;
|
|
490
490
|
}
|
|
491
|
-
function
|
|
492
|
-
|
|
493
|
-
var
|
|
494
|
-
|
|
495
|
-
}
|
|
496
|
-
function
|
|
497
|
-
|
|
498
|
-
var
|
|
499
|
-
|
|
500
|
-
}
|
|
501
|
-
function
|
|
502
|
-
if (
|
|
503
|
-
|
|
504
|
-
var
|
|
505
|
-
if (
|
|
506
|
-
|
|
491
|
+
function ke(u, e, r) {
|
|
492
|
+
u && u._inc++;
|
|
493
|
+
var t = r.namespaceURI;
|
|
494
|
+
t === K.XMLNS && (e._nsMap[r.prefix ? r.localName : ""] = r.value);
|
|
495
|
+
}
|
|
496
|
+
function ce(u, e, r, t) {
|
|
497
|
+
u && u._inc++;
|
|
498
|
+
var n = r.namespaceURI;
|
|
499
|
+
n === K.XMLNS && delete e._nsMap[r.prefix ? r.localName : ""];
|
|
500
|
+
}
|
|
501
|
+
function Nu(u, e, r) {
|
|
502
|
+
if (u && u._inc) {
|
|
503
|
+
u._inc++;
|
|
504
|
+
var t = e.childNodes;
|
|
505
|
+
if (r)
|
|
506
|
+
t[t.length++] = r;
|
|
507
507
|
else {
|
|
508
|
-
for (var
|
|
509
|
-
|
|
510
|
-
|
|
508
|
+
for (var n = e.firstChild, a = 0; n; )
|
|
509
|
+
t[a++] = n, n = n.nextSibling;
|
|
510
|
+
t.length = a, delete t[t.length];
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
|
-
function
|
|
515
|
-
var
|
|
516
|
-
return
|
|
514
|
+
function pe(u, e) {
|
|
515
|
+
var r = e.previousSibling, t = e.nextSibling;
|
|
516
|
+
return r ? r.nextSibling = t : u.firstChild = t, t ? t.previousSibling = r : u.lastChild = r, e.parentNode = null, e.previousSibling = null, e.nextSibling = null, Nu(u.ownerDocument, u), e;
|
|
517
517
|
}
|
|
518
|
-
function
|
|
519
|
-
return
|
|
518
|
+
function Ue(u) {
|
|
519
|
+
return u && (u.nodeType === D.DOCUMENT_NODE || u.nodeType === D.DOCUMENT_FRAGMENT_NODE || u.nodeType === D.ELEMENT_NODE);
|
|
520
520
|
}
|
|
521
|
-
function
|
|
522
|
-
return
|
|
521
|
+
function Me(u) {
|
|
522
|
+
return u && (R(u) || yu(u) || I(u) || u.nodeType === D.DOCUMENT_FRAGMENT_NODE || u.nodeType === D.COMMENT_NODE || u.nodeType === D.PROCESSING_INSTRUCTION_NODE);
|
|
523
523
|
}
|
|
524
|
-
function
|
|
525
|
-
return
|
|
524
|
+
function I(u) {
|
|
525
|
+
return u && u.nodeType === D.DOCUMENT_TYPE_NODE;
|
|
526
526
|
}
|
|
527
|
-
function
|
|
528
|
-
return
|
|
527
|
+
function R(u) {
|
|
528
|
+
return u && u.nodeType === D.ELEMENT_NODE;
|
|
529
529
|
}
|
|
530
|
-
function
|
|
531
|
-
return
|
|
530
|
+
function yu(u) {
|
|
531
|
+
return u && u.nodeType === D.TEXT_NODE;
|
|
532
532
|
}
|
|
533
|
-
function
|
|
534
|
-
var
|
|
535
|
-
if (
|
|
533
|
+
function Vu(u, e) {
|
|
534
|
+
var r = u.childNodes || [];
|
|
535
|
+
if (O(r, R) || I(e))
|
|
536
536
|
return !1;
|
|
537
|
-
var
|
|
538
|
-
return !(
|
|
537
|
+
var t = O(r, I);
|
|
538
|
+
return !(e && t && r.indexOf(t) > r.indexOf(e));
|
|
539
539
|
}
|
|
540
|
-
function
|
|
541
|
-
var
|
|
542
|
-
function
|
|
543
|
-
return
|
|
540
|
+
function Gu(u, e) {
|
|
541
|
+
var r = u.childNodes || [];
|
|
542
|
+
function t(a) {
|
|
543
|
+
return R(a) && a !== e;
|
|
544
544
|
}
|
|
545
|
-
if (
|
|
545
|
+
if (O(r, t))
|
|
546
546
|
return !1;
|
|
547
|
-
var
|
|
548
|
-
return !(
|
|
549
|
-
}
|
|
550
|
-
function
|
|
551
|
-
if (!
|
|
552
|
-
throw new
|
|
553
|
-
if (
|
|
554
|
-
throw new
|
|
547
|
+
var n = O(r, I);
|
|
548
|
+
return !(e && n && r.indexOf(n) > r.indexOf(e));
|
|
549
|
+
}
|
|
550
|
+
function Pe(u, e, r) {
|
|
551
|
+
if (!Ue(u))
|
|
552
|
+
throw new m(N, "Unexpected parent node type " + u.nodeType);
|
|
553
|
+
if (r && r.parentNode !== u)
|
|
554
|
+
throw new m(ie, "child not in parent");
|
|
555
555
|
if (
|
|
556
556
|
// 4. If `node` is not a DocumentFragment, DocumentType, Element, or CharacterData node, then throw a "HierarchyRequestError" DOMException.
|
|
557
|
-
!
|
|
557
|
+
!Me(e) || // 5. If either `node` is a Text node and `parent` is a document,
|
|
558
558
|
// the sax parser currently adds top level text nodes, this will be fixed in 0.9.0
|
|
559
559
|
// || (node.nodeType === Node.TEXT_NODE && parent.nodeType === Node.DOCUMENT_NODE)
|
|
560
560
|
// or `node` is a doctype and `parent` is not a document, then throw a "HierarchyRequestError" DOMException.
|
|
561
|
-
|
|
561
|
+
I(e) && u.nodeType !== D.DOCUMENT_NODE
|
|
562
562
|
)
|
|
563
|
-
throw new
|
|
564
|
-
|
|
565
|
-
"Unexpected node type " +
|
|
563
|
+
throw new m(
|
|
564
|
+
N,
|
|
565
|
+
"Unexpected node type " + e.nodeType + " for parent node type " + u.nodeType
|
|
566
566
|
);
|
|
567
567
|
}
|
|
568
|
-
function
|
|
569
|
-
var
|
|
570
|
-
if (
|
|
571
|
-
var
|
|
572
|
-
if (
|
|
573
|
-
throw new
|
|
574
|
-
if (
|
|
575
|
-
throw new
|
|
568
|
+
function Ve(u, e, r) {
|
|
569
|
+
var t = u.childNodes || [], n = e.childNodes || [];
|
|
570
|
+
if (e.nodeType === D.DOCUMENT_FRAGMENT_NODE) {
|
|
571
|
+
var a = n.filter(R);
|
|
572
|
+
if (a.length > 1 || O(n, yu))
|
|
573
|
+
throw new m(N, "More than one element or text in fragment");
|
|
574
|
+
if (a.length === 1 && !Vu(u, r))
|
|
575
|
+
throw new m(N, "Element in fragment can not be inserted before doctype");
|
|
576
576
|
}
|
|
577
|
-
if (
|
|
578
|
-
throw new
|
|
579
|
-
if (
|
|
580
|
-
if (
|
|
581
|
-
throw new
|
|
582
|
-
var i =
|
|
583
|
-
if (
|
|
584
|
-
throw new
|
|
585
|
-
if (!
|
|
586
|
-
throw new
|
|
577
|
+
if (R(e) && !Vu(u, r))
|
|
578
|
+
throw new m(N, "Only one element can be added and only after doctype");
|
|
579
|
+
if (I(e)) {
|
|
580
|
+
if (O(t, I))
|
|
581
|
+
throw new m(N, "Only one doctype is allowed");
|
|
582
|
+
var i = O(t, R);
|
|
583
|
+
if (r && t.indexOf(i) < t.indexOf(r))
|
|
584
|
+
throw new m(N, "Doctype can only be inserted before an element");
|
|
585
|
+
if (!r && i)
|
|
586
|
+
throw new m(N, "Doctype can not be appended since element is present");
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
|
-
function
|
|
590
|
-
var
|
|
591
|
-
if (
|
|
592
|
-
var
|
|
593
|
-
if (
|
|
594
|
-
throw new
|
|
595
|
-
if (
|
|
596
|
-
throw new
|
|
589
|
+
function De(u, e, r) {
|
|
590
|
+
var t = u.childNodes || [], n = e.childNodes || [];
|
|
591
|
+
if (e.nodeType === D.DOCUMENT_FRAGMENT_NODE) {
|
|
592
|
+
var a = n.filter(R);
|
|
593
|
+
if (a.length > 1 || O(n, yu))
|
|
594
|
+
throw new m(N, "More than one element or text in fragment");
|
|
595
|
+
if (a.length === 1 && !Gu(u, r))
|
|
596
|
+
throw new m(N, "Element in fragment can not be inserted before doctype");
|
|
597
597
|
}
|
|
598
|
-
if (
|
|
599
|
-
throw new
|
|
600
|
-
if (
|
|
601
|
-
if (
|
|
602
|
-
return
|
|
598
|
+
if (R(e) && !Gu(u, r))
|
|
599
|
+
throw new m(N, "Only one element can be added and only after doctype");
|
|
600
|
+
if (I(e)) {
|
|
601
|
+
if (O(t, function(o) {
|
|
602
|
+
return I(o) && o !== r;
|
|
603
603
|
}))
|
|
604
|
-
throw new
|
|
605
|
-
var i =
|
|
606
|
-
if (
|
|
607
|
-
throw new
|
|
604
|
+
throw new m(N, "Only one doctype is allowed");
|
|
605
|
+
var i = O(t, R);
|
|
606
|
+
if (r && t.indexOf(i) < t.indexOf(r))
|
|
607
|
+
throw new m(N, "Doctype can only be inserted before an element");
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
|
-
function
|
|
611
|
-
|
|
612
|
-
var
|
|
613
|
-
if (
|
|
614
|
-
var
|
|
615
|
-
if (
|
|
616
|
-
return
|
|
617
|
-
var i =
|
|
610
|
+
function pu(u, e, r, t) {
|
|
611
|
+
Pe(u, e, r), u.nodeType === D.DOCUMENT_NODE && (t || Ve)(u, e, r);
|
|
612
|
+
var n = e.parentNode;
|
|
613
|
+
if (n && n.removeChild(e), e.nodeType === L) {
|
|
614
|
+
var a = e.firstChild;
|
|
615
|
+
if (a == null)
|
|
616
|
+
return e;
|
|
617
|
+
var i = e.lastChild;
|
|
618
618
|
} else
|
|
619
|
-
|
|
620
|
-
var s =
|
|
621
|
-
|
|
619
|
+
a = i = e;
|
|
620
|
+
var s = r ? r.previousSibling : u.lastChild;
|
|
621
|
+
a.previousSibling = s, i.nextSibling = r, s ? s.nextSibling = a : u.firstChild = a, r == null ? u.lastChild = i : r.previousSibling = i;
|
|
622
622
|
do {
|
|
623
|
-
|
|
624
|
-
var
|
|
625
|
-
|
|
626
|
-
} while (
|
|
627
|
-
return
|
|
628
|
-
}
|
|
629
|
-
function
|
|
630
|
-
if (
|
|
631
|
-
if (
|
|
632
|
-
for (var
|
|
633
|
-
var
|
|
634
|
-
|
|
623
|
+
a.parentNode = u;
|
|
624
|
+
var o = u.ownerDocument || u;
|
|
625
|
+
eu(a, o);
|
|
626
|
+
} while (a !== i && (a = a.nextSibling));
|
|
627
|
+
return Nu(u.ownerDocument || u, u), e.nodeType == L && (e.firstChild = e.lastChild = null), e;
|
|
628
|
+
}
|
|
629
|
+
function eu(u, e) {
|
|
630
|
+
if (u.ownerDocument !== e) {
|
|
631
|
+
if (u.ownerDocument = e, u.nodeType === q && u.attributes)
|
|
632
|
+
for (var r = 0; r < u.attributes.length; r++) {
|
|
633
|
+
var t = u.attributes.item(r);
|
|
634
|
+
t && (t.ownerDocument = e);
|
|
635
635
|
}
|
|
636
|
-
for (var
|
|
637
|
-
|
|
636
|
+
for (var n = u.firstChild; n; )
|
|
637
|
+
eu(n, e), n = n.nextSibling;
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
|
-
function
|
|
641
|
-
|
|
642
|
-
var
|
|
643
|
-
return
|
|
640
|
+
function Ge(u, e) {
|
|
641
|
+
e.parentNode && e.parentNode.removeChild(e), e.parentNode = u, e.previousSibling = u.lastChild, e.nextSibling = null, e.previousSibling ? e.previousSibling.nextSibling = e : u.firstChild = e, u.lastChild = e, Nu(u.ownerDocument, u, e);
|
|
642
|
+
var r = u.ownerDocument || u;
|
|
643
|
+
return eu(e, r), e;
|
|
644
644
|
}
|
|
645
|
-
|
|
645
|
+
nu.prototype = {
|
|
646
646
|
//implementation : null,
|
|
647
647
|
nodeName: "#document",
|
|
648
|
-
nodeType:
|
|
648
|
+
nodeType: ne,
|
|
649
649
|
/**
|
|
650
650
|
* The DocumentType node of the document.
|
|
651
651
|
*
|
|
@@ -655,33 +655,33 @@ ae.prototype = {
|
|
|
655
655
|
doctype: null,
|
|
656
656
|
documentElement: null,
|
|
657
657
|
_inc: 1,
|
|
658
|
-
insertBefore: function(
|
|
659
|
-
if (
|
|
660
|
-
for (var
|
|
661
|
-
var
|
|
662
|
-
this.insertBefore(
|
|
658
|
+
insertBefore: function(u, e) {
|
|
659
|
+
if (u.nodeType == L) {
|
|
660
|
+
for (var r = u.firstChild; r; ) {
|
|
661
|
+
var t = r.nextSibling;
|
|
662
|
+
this.insertBefore(r, e), r = t;
|
|
663
663
|
}
|
|
664
|
-
return
|
|
664
|
+
return u;
|
|
665
665
|
}
|
|
666
|
-
return
|
|
666
|
+
return pu(this, u, e), eu(u, this), this.documentElement === null && u.nodeType === q && (this.documentElement = u), u;
|
|
667
667
|
},
|
|
668
|
-
removeChild: function(
|
|
669
|
-
return this.documentElement ==
|
|
668
|
+
removeChild: function(u) {
|
|
669
|
+
return this.documentElement == u && (this.documentElement = null), pe(this, u);
|
|
670
670
|
},
|
|
671
|
-
replaceChild: function(
|
|
672
|
-
|
|
671
|
+
replaceChild: function(u, e) {
|
|
672
|
+
pu(this, u, e, De), eu(u, this), e && this.removeChild(e), R(u) && (this.documentElement = u);
|
|
673
673
|
},
|
|
674
674
|
// Introduced in DOM Level 2:
|
|
675
|
-
importNode: function(
|
|
676
|
-
return
|
|
675
|
+
importNode: function(u, e) {
|
|
676
|
+
return Ee(this, u, e);
|
|
677
677
|
},
|
|
678
678
|
// Introduced in DOM Level 2:
|
|
679
|
-
getElementById: function(
|
|
680
|
-
var
|
|
681
|
-
return
|
|
682
|
-
if (
|
|
683
|
-
return
|
|
684
|
-
}),
|
|
679
|
+
getElementById: function(u) {
|
|
680
|
+
var e = null;
|
|
681
|
+
return uu(this.documentElement, function(r) {
|
|
682
|
+
if (r.nodeType == q && r.getAttribute("id") == u)
|
|
683
|
+
return e = r, !0;
|
|
684
|
+
}), e;
|
|
685
685
|
},
|
|
686
686
|
/**
|
|
687
687
|
* The `getElementsByClassName` method of `Document` interface returns an array-like object
|
|
@@ -700,457 +700,457 @@ ae.prototype = {
|
|
|
700
700
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByClassName
|
|
701
701
|
* @see https://dom.spec.whatwg.org/#concept-getelementsbyclassname
|
|
702
702
|
*/
|
|
703
|
-
getElementsByClassName: function(
|
|
704
|
-
var
|
|
705
|
-
return new
|
|
706
|
-
var
|
|
707
|
-
return
|
|
708
|
-
if (
|
|
709
|
-
var
|
|
710
|
-
if (
|
|
711
|
-
var i =
|
|
703
|
+
getElementsByClassName: function(u) {
|
|
704
|
+
var e = ku(u);
|
|
705
|
+
return new X(this, function(r) {
|
|
706
|
+
var t = [];
|
|
707
|
+
return e.length > 0 && uu(r.documentElement, function(n) {
|
|
708
|
+
if (n !== r && n.nodeType === q) {
|
|
709
|
+
var a = n.getAttribute("class");
|
|
710
|
+
if (a) {
|
|
711
|
+
var i = u === a;
|
|
712
712
|
if (!i) {
|
|
713
|
-
var s =
|
|
714
|
-
i =
|
|
713
|
+
var s = ku(a);
|
|
714
|
+
i = e.every(_e(s));
|
|
715
715
|
}
|
|
716
|
-
i &&
|
|
716
|
+
i && t.push(n);
|
|
717
717
|
}
|
|
718
718
|
}
|
|
719
|
-
}),
|
|
719
|
+
}), t;
|
|
720
720
|
});
|
|
721
721
|
},
|
|
722
722
|
//document factory method:
|
|
723
|
-
createElement: function(
|
|
724
|
-
var
|
|
725
|
-
|
|
726
|
-
var
|
|
727
|
-
return
|
|
723
|
+
createElement: function(u) {
|
|
724
|
+
var e = new P();
|
|
725
|
+
e.ownerDocument = this, e.nodeName = u, e.tagName = u, e.localName = u, e.childNodes = new _();
|
|
726
|
+
var r = e.attributes = new cu();
|
|
727
|
+
return r._ownerElement = e, e;
|
|
728
728
|
},
|
|
729
729
|
createDocumentFragment: function() {
|
|
730
|
-
var
|
|
731
|
-
return
|
|
730
|
+
var u = new Au();
|
|
731
|
+
return u.ownerDocument = this, u.childNodes = new _(), u;
|
|
732
732
|
},
|
|
733
|
-
createTextNode: function(
|
|
734
|
-
var
|
|
735
|
-
return
|
|
733
|
+
createTextNode: function(u) {
|
|
734
|
+
var e = new Tu();
|
|
735
|
+
return e.ownerDocument = this, e.appendData(u), e;
|
|
736
736
|
},
|
|
737
|
-
createComment: function(
|
|
738
|
-
var
|
|
739
|
-
return
|
|
737
|
+
createComment: function(u) {
|
|
738
|
+
var e = new Fu();
|
|
739
|
+
return e.ownerDocument = this, e.appendData(u), e;
|
|
740
740
|
},
|
|
741
|
-
createCDATASection: function(
|
|
742
|
-
var
|
|
743
|
-
return
|
|
741
|
+
createCDATASection: function(u) {
|
|
742
|
+
var e = new xu();
|
|
743
|
+
return e.ownerDocument = this, e.appendData(u), e;
|
|
744
744
|
},
|
|
745
|
-
createProcessingInstruction: function(
|
|
746
|
-
var
|
|
747
|
-
return
|
|
745
|
+
createProcessingInstruction: function(u, e) {
|
|
746
|
+
var r = new qu();
|
|
747
|
+
return r.ownerDocument = this, r.tagName = r.nodeName = r.target = u, r.nodeValue = r.data = e, r;
|
|
748
748
|
},
|
|
749
|
-
createAttribute: function(
|
|
750
|
-
var
|
|
751
|
-
return
|
|
749
|
+
createAttribute: function(u) {
|
|
750
|
+
var e = new Du();
|
|
751
|
+
return e.ownerDocument = this, e.name = u, e.nodeName = u, e.localName = u, e.specified = !0, e;
|
|
752
752
|
},
|
|
753
|
-
createEntityReference: function(
|
|
754
|
-
var
|
|
755
|
-
return
|
|
753
|
+
createEntityReference: function(u) {
|
|
754
|
+
var e = new Su();
|
|
755
|
+
return e.ownerDocument = this, e.nodeName = u, e;
|
|
756
756
|
},
|
|
757
757
|
// Introduced in DOM Level 2:
|
|
758
|
-
createElementNS: function(
|
|
759
|
-
var
|
|
760
|
-
return
|
|
758
|
+
createElementNS: function(u, e) {
|
|
759
|
+
var r = new P(), t = e.split(":"), n = r.attributes = new cu();
|
|
760
|
+
return r.childNodes = new _(), r.ownerDocument = this, r.nodeName = e, r.tagName = e, r.namespaceURI = u, t.length == 2 ? (r.prefix = t[0], r.localName = t[1]) : r.localName = e, n._ownerElement = r, r;
|
|
761
761
|
},
|
|
762
762
|
// Introduced in DOM Level 2:
|
|
763
|
-
createAttributeNS: function(
|
|
764
|
-
var
|
|
765
|
-
return
|
|
763
|
+
createAttributeNS: function(u, e) {
|
|
764
|
+
var r = new Du(), t = e.split(":");
|
|
765
|
+
return r.ownerDocument = this, r.nodeName = e, r.name = e, r.namespaceURI = u, r.specified = !0, t.length == 2 ? (r.prefix = t[0], r.localName = t[1]) : r.localName = e, r;
|
|
766
766
|
}
|
|
767
767
|
};
|
|
768
|
-
|
|
769
|
-
function
|
|
768
|
+
y(nu, D);
|
|
769
|
+
function P() {
|
|
770
770
|
this._nsMap = {};
|
|
771
771
|
}
|
|
772
|
-
|
|
773
|
-
nodeType:
|
|
774
|
-
hasAttribute: function(
|
|
775
|
-
return this.getAttributeNode(
|
|
772
|
+
P.prototype = {
|
|
773
|
+
nodeType: q,
|
|
774
|
+
hasAttribute: function(u) {
|
|
775
|
+
return this.getAttributeNode(u) != null;
|
|
776
776
|
},
|
|
777
|
-
getAttribute: function(
|
|
778
|
-
var
|
|
779
|
-
return
|
|
777
|
+
getAttribute: function(u) {
|
|
778
|
+
var e = this.getAttributeNode(u);
|
|
779
|
+
return e && e.value || "";
|
|
780
780
|
},
|
|
781
|
-
getAttributeNode: function(
|
|
782
|
-
return this.attributes.getNamedItem(
|
|
781
|
+
getAttributeNode: function(u) {
|
|
782
|
+
return this.attributes.getNamedItem(u);
|
|
783
783
|
},
|
|
784
|
-
setAttribute: function(
|
|
785
|
-
var
|
|
786
|
-
|
|
784
|
+
setAttribute: function(u, e) {
|
|
785
|
+
var r = this.ownerDocument.createAttribute(u);
|
|
786
|
+
r.value = r.nodeValue = "" + e, this.setAttributeNode(r);
|
|
787
787
|
},
|
|
788
|
-
removeAttribute: function(
|
|
789
|
-
var
|
|
790
|
-
|
|
788
|
+
removeAttribute: function(u) {
|
|
789
|
+
var e = this.getAttributeNode(u);
|
|
790
|
+
e && this.removeAttributeNode(e);
|
|
791
791
|
},
|
|
792
792
|
//four real opeartion method
|
|
793
|
-
appendChild: function(
|
|
794
|
-
return
|
|
793
|
+
appendChild: function(u) {
|
|
794
|
+
return u.nodeType === L ? this.insertBefore(u, null) : Ge(this, u);
|
|
795
795
|
},
|
|
796
|
-
setAttributeNode: function(
|
|
797
|
-
return this.attributes.setNamedItem(
|
|
796
|
+
setAttributeNode: function(u) {
|
|
797
|
+
return this.attributes.setNamedItem(u);
|
|
798
798
|
},
|
|
799
|
-
setAttributeNodeNS: function(
|
|
800
|
-
return this.attributes.setNamedItemNS(
|
|
799
|
+
setAttributeNodeNS: function(u) {
|
|
800
|
+
return this.attributes.setNamedItemNS(u);
|
|
801
801
|
},
|
|
802
|
-
removeAttributeNode: function(
|
|
803
|
-
return this.attributes.removeNamedItem(
|
|
802
|
+
removeAttributeNode: function(u) {
|
|
803
|
+
return this.attributes.removeNamedItem(u.nodeName);
|
|
804
804
|
},
|
|
805
805
|
//get real attribute name,and remove it by removeAttributeNode
|
|
806
|
-
removeAttributeNS: function(
|
|
807
|
-
var
|
|
808
|
-
|
|
806
|
+
removeAttributeNS: function(u, e) {
|
|
807
|
+
var r = this.getAttributeNodeNS(u, e);
|
|
808
|
+
r && this.removeAttributeNode(r);
|
|
809
809
|
},
|
|
810
|
-
hasAttributeNS: function(
|
|
811
|
-
return this.getAttributeNodeNS(
|
|
810
|
+
hasAttributeNS: function(u, e) {
|
|
811
|
+
return this.getAttributeNodeNS(u, e) != null;
|
|
812
812
|
},
|
|
813
|
-
getAttributeNS: function(
|
|
814
|
-
var
|
|
815
|
-
return
|
|
813
|
+
getAttributeNS: function(u, e) {
|
|
814
|
+
var r = this.getAttributeNodeNS(u, e);
|
|
815
|
+
return r && r.value || "";
|
|
816
816
|
},
|
|
817
|
-
setAttributeNS: function(e, r
|
|
818
|
-
var
|
|
819
|
-
|
|
817
|
+
setAttributeNS: function(u, e, r) {
|
|
818
|
+
var t = this.ownerDocument.createAttributeNS(u, e);
|
|
819
|
+
t.value = t.nodeValue = "" + r, this.setAttributeNode(t);
|
|
820
820
|
},
|
|
821
|
-
getAttributeNodeNS: function(
|
|
822
|
-
return this.attributes.getNamedItemNS(
|
|
821
|
+
getAttributeNodeNS: function(u, e) {
|
|
822
|
+
return this.attributes.getNamedItemNS(u, e);
|
|
823
823
|
},
|
|
824
|
-
getElementsByTagName: function(
|
|
825
|
-
return new
|
|
826
|
-
var
|
|
827
|
-
return
|
|
828
|
-
|
|
829
|
-
}),
|
|
824
|
+
getElementsByTagName: function(u) {
|
|
825
|
+
return new X(this, function(e) {
|
|
826
|
+
var r = [];
|
|
827
|
+
return uu(e, function(t) {
|
|
828
|
+
t !== e && t.nodeType == q && (u === "*" || t.tagName == u) && r.push(t);
|
|
829
|
+
}), r;
|
|
830
830
|
});
|
|
831
831
|
},
|
|
832
|
-
getElementsByTagNameNS: function(
|
|
833
|
-
return new
|
|
834
|
-
var
|
|
835
|
-
return
|
|
836
|
-
|
|
837
|
-
}),
|
|
832
|
+
getElementsByTagNameNS: function(u, e) {
|
|
833
|
+
return new X(this, function(r) {
|
|
834
|
+
var t = [];
|
|
835
|
+
return uu(r, function(n) {
|
|
836
|
+
n !== r && n.nodeType === q && (u === "*" || n.namespaceURI === u) && (e === "*" || n.localName == e) && t.push(n);
|
|
837
|
+
}), t;
|
|
838
838
|
});
|
|
839
839
|
}
|
|
840
840
|
};
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
function
|
|
841
|
+
nu.prototype.getElementsByTagName = P.prototype.getElementsByTagName;
|
|
842
|
+
nu.prototype.getElementsByTagNameNS = P.prototype.getElementsByTagNameNS;
|
|
843
|
+
y(P, D);
|
|
844
|
+
function Du() {
|
|
845
845
|
}
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
function
|
|
846
|
+
Du.prototype.nodeType = $;
|
|
847
|
+
y(Du, D);
|
|
848
|
+
function au() {
|
|
849
849
|
}
|
|
850
|
-
|
|
850
|
+
au.prototype = {
|
|
851
851
|
data: "",
|
|
852
|
-
substringData: function(
|
|
853
|
-
return this.data.substring(
|
|
852
|
+
substringData: function(u, e) {
|
|
853
|
+
return this.data.substring(u, u + e);
|
|
854
854
|
},
|
|
855
|
-
appendData: function(
|
|
856
|
-
|
|
855
|
+
appendData: function(u) {
|
|
856
|
+
u = this.data + u, this.nodeValue = this.data = u, this.length = u.length;
|
|
857
857
|
},
|
|
858
|
-
insertData: function(
|
|
859
|
-
this.replaceData(
|
|
858
|
+
insertData: function(u, e) {
|
|
859
|
+
this.replaceData(u, 0, e);
|
|
860
860
|
},
|
|
861
|
-
appendChild: function(
|
|
862
|
-
throw new Error(N
|
|
861
|
+
appendChild: function(u) {
|
|
862
|
+
throw new Error(v[N]);
|
|
863
863
|
},
|
|
864
|
-
deleteData: function(
|
|
865
|
-
this.replaceData(
|
|
864
|
+
deleteData: function(u, e) {
|
|
865
|
+
this.replaceData(u, e, "");
|
|
866
866
|
},
|
|
867
|
-
replaceData: function(e, r
|
|
868
|
-
var
|
|
869
|
-
|
|
867
|
+
replaceData: function(u, e, r) {
|
|
868
|
+
var t = this.data.substring(0, u), n = this.data.substring(u + e);
|
|
869
|
+
r = t + r + n, this.nodeValue = this.data = r, this.length = r.length;
|
|
870
870
|
}
|
|
871
871
|
};
|
|
872
|
-
|
|
873
|
-
function
|
|
872
|
+
y(au, D);
|
|
873
|
+
function Tu() {
|
|
874
874
|
}
|
|
875
|
-
|
|
875
|
+
Tu.prototype = {
|
|
876
876
|
nodeName: "#text",
|
|
877
|
-
nodeType:
|
|
878
|
-
splitText: function(
|
|
879
|
-
var
|
|
880
|
-
|
|
881
|
-
var
|
|
882
|
-
return this.parentNode && this.parentNode.insertBefore(
|
|
877
|
+
nodeType: lu,
|
|
878
|
+
splitText: function(u) {
|
|
879
|
+
var e = this.data, r = e.substring(u);
|
|
880
|
+
e = e.substring(0, u), this.data = this.nodeValue = e, this.length = e.length;
|
|
881
|
+
var t = this.ownerDocument.createTextNode(r);
|
|
882
|
+
return this.parentNode && this.parentNode.insertBefore(t, this.nextSibling), t;
|
|
883
883
|
}
|
|
884
884
|
};
|
|
885
|
-
|
|
886
|
-
function
|
|
885
|
+
y(Tu, au);
|
|
886
|
+
function Fu() {
|
|
887
887
|
}
|
|
888
|
-
|
|
888
|
+
Fu.prototype = {
|
|
889
889
|
nodeName: "#comment",
|
|
890
|
-
nodeType:
|
|
890
|
+
nodeType: te
|
|
891
891
|
};
|
|
892
|
-
|
|
893
|
-
function
|
|
892
|
+
y(Fu, au);
|
|
893
|
+
function xu() {
|
|
894
894
|
}
|
|
895
|
-
|
|
895
|
+
xu.prototype = {
|
|
896
896
|
nodeName: "#cdata-section",
|
|
897
|
-
nodeType:
|
|
897
|
+
nodeType: ue
|
|
898
898
|
};
|
|
899
|
-
|
|
900
|
-
function
|
|
899
|
+
y(xu, au);
|
|
900
|
+
function fu() {
|
|
901
901
|
}
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
function
|
|
902
|
+
fu.prototype.nodeType = ae;
|
|
903
|
+
y(fu, D);
|
|
904
|
+
function fe() {
|
|
905
905
|
}
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
function
|
|
906
|
+
fe.prototype.nodeType = Ie;
|
|
907
|
+
y(fe, D);
|
|
908
|
+
function Ae() {
|
|
909
909
|
}
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
function
|
|
910
|
+
Ae.prototype.nodeType = Le;
|
|
911
|
+
y(Ae, D);
|
|
912
|
+
function Su() {
|
|
913
913
|
}
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
function
|
|
914
|
+
Su.prototype.nodeType = ee;
|
|
915
|
+
y(Su, D);
|
|
916
|
+
function Au() {
|
|
917
917
|
}
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
function
|
|
918
|
+
Au.prototype.nodeName = "#document-fragment";
|
|
919
|
+
Au.prototype.nodeType = L;
|
|
920
|
+
y(Au, D);
|
|
921
|
+
function qu() {
|
|
922
922
|
}
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
function
|
|
923
|
+
qu.prototype.nodeType = re;
|
|
924
|
+
y(qu, D);
|
|
925
|
+
function he() {
|
|
926
926
|
}
|
|
927
|
-
|
|
928
|
-
return
|
|
927
|
+
he.prototype.serializeToString = function(u, e, r) {
|
|
928
|
+
return me.call(u, e, r);
|
|
929
929
|
};
|
|
930
|
-
|
|
931
|
-
function
|
|
932
|
-
var
|
|
933
|
-
if (
|
|
934
|
-
var
|
|
935
|
-
if (
|
|
930
|
+
D.prototype.toString = me;
|
|
931
|
+
function me(u, e) {
|
|
932
|
+
var r = [], t = this.nodeType == 9 && this.documentElement || this, n = t.prefix, a = t.namespaceURI;
|
|
933
|
+
if (a && n == null) {
|
|
934
|
+
var n = t.lookupPrefix(a);
|
|
935
|
+
if (n == null)
|
|
936
936
|
var i = [
|
|
937
|
-
{ namespace:
|
|
937
|
+
{ namespace: a, prefix: null }
|
|
938
938
|
//{namespace:uri,prefix:''}
|
|
939
939
|
];
|
|
940
940
|
}
|
|
941
|
-
return
|
|
941
|
+
return j(this, r, u, e, i), r.join("");
|
|
942
942
|
}
|
|
943
|
-
function
|
|
944
|
-
var
|
|
945
|
-
if (!
|
|
943
|
+
function zu(u, e, r) {
|
|
944
|
+
var t = u.prefix || "", n = u.namespaceURI;
|
|
945
|
+
if (!n || t === "xml" && n === K.XML || n === K.XMLNS)
|
|
946
946
|
return !1;
|
|
947
|
-
for (var
|
|
948
|
-
var i =
|
|
949
|
-
if (i.prefix ===
|
|
950
|
-
return i.namespace !==
|
|
947
|
+
for (var a = r.length; a--; ) {
|
|
948
|
+
var i = r[a];
|
|
949
|
+
if (i.prefix === t)
|
|
950
|
+
return i.namespace !== n;
|
|
951
951
|
}
|
|
952
952
|
return !0;
|
|
953
953
|
}
|
|
954
|
-
function
|
|
955
|
-
|
|
954
|
+
function du(u, e, r) {
|
|
955
|
+
u.push(" ", e, '="', r.replace(/[<>&"\t\n\r]/g, le), '"');
|
|
956
956
|
}
|
|
957
|
-
function
|
|
958
|
-
if (
|
|
959
|
-
if (
|
|
960
|
-
if (typeof
|
|
961
|
-
|
|
957
|
+
function j(u, e, r, t, n) {
|
|
958
|
+
if (n || (n = []), t)
|
|
959
|
+
if (u = t(u), u) {
|
|
960
|
+
if (typeof u == "string") {
|
|
961
|
+
e.push(u);
|
|
962
962
|
return;
|
|
963
963
|
}
|
|
964
964
|
} else
|
|
965
965
|
return;
|
|
966
|
-
switch (
|
|
967
|
-
case
|
|
968
|
-
var
|
|
969
|
-
|
|
970
|
-
var
|
|
971
|
-
if (!
|
|
972
|
-
for (var
|
|
973
|
-
if (
|
|
974
|
-
|
|
966
|
+
switch (u.nodeType) {
|
|
967
|
+
case q:
|
|
968
|
+
var a = u.attributes, i = a.length, d = u.firstChild, s = u.tagName;
|
|
969
|
+
r = K.isHTML(u.namespaceURI) || r;
|
|
970
|
+
var o = s;
|
|
971
|
+
if (!r && !u.prefix && u.namespaceURI) {
|
|
972
|
+
for (var l, c = 0; c < a.length; c++)
|
|
973
|
+
if (a.item(c).name === "xmlns") {
|
|
974
|
+
l = a.item(c).value;
|
|
975
975
|
break;
|
|
976
976
|
}
|
|
977
|
-
if (!
|
|
978
|
-
for (var
|
|
979
|
-
var
|
|
980
|
-
if (
|
|
981
|
-
|
|
977
|
+
if (!l)
|
|
978
|
+
for (var f = n.length - 1; f >= 0; f--) {
|
|
979
|
+
var p = n[f];
|
|
980
|
+
if (p.prefix === "" && p.namespace === u.namespaceURI) {
|
|
981
|
+
l = p.namespace;
|
|
982
982
|
break;
|
|
983
983
|
}
|
|
984
984
|
}
|
|
985
|
-
if (
|
|
986
|
-
for (var
|
|
987
|
-
var
|
|
988
|
-
if (
|
|
989
|
-
|
|
985
|
+
if (l !== u.namespaceURI)
|
|
986
|
+
for (var f = n.length - 1; f >= 0; f--) {
|
|
987
|
+
var p = n[f];
|
|
988
|
+
if (p.namespace === u.namespaceURI) {
|
|
989
|
+
p.prefix && (o = p.prefix + ":" + s);
|
|
990
990
|
break;
|
|
991
991
|
}
|
|
992
992
|
}
|
|
993
993
|
}
|
|
994
|
-
|
|
995
|
-
for (var
|
|
996
|
-
var
|
|
997
|
-
|
|
994
|
+
e.push("<", o);
|
|
995
|
+
for (var g = 0; g < i; g++) {
|
|
996
|
+
var B = a.item(g);
|
|
997
|
+
B.prefix == "xmlns" ? n.push({ prefix: B.localName, namespace: B.value }) : B.nodeName == "xmlns" && n.push({ prefix: "", namespace: B.value });
|
|
998
998
|
}
|
|
999
|
-
for (var
|
|
1000
|
-
var
|
|
1001
|
-
if (
|
|
1002
|
-
var
|
|
1003
|
-
|
|
999
|
+
for (var g = 0; g < i; g++) {
|
|
1000
|
+
var B = a.item(g);
|
|
1001
|
+
if (zu(B, r, n)) {
|
|
1002
|
+
var E = B.prefix || "", A = B.namespaceURI;
|
|
1003
|
+
du(e, E ? "xmlns:" + E : "xmlns", A), n.push({ prefix: E, namespace: A });
|
|
1004
1004
|
}
|
|
1005
|
-
|
|
1005
|
+
j(B, e, r, t, n);
|
|
1006
1006
|
}
|
|
1007
|
-
if (
|
|
1008
|
-
var
|
|
1009
|
-
|
|
1007
|
+
if (s === o && zu(u, r, n)) {
|
|
1008
|
+
var E = u.prefix || "", A = u.namespaceURI;
|
|
1009
|
+
du(e, E ? "xmlns:" + E : "xmlns", A), n.push({ prefix: E, namespace: A });
|
|
1010
1010
|
}
|
|
1011
|
-
if (
|
|
1012
|
-
if (
|
|
1013
|
-
for (;
|
|
1014
|
-
|
|
1011
|
+
if (d || r && !/^(?:meta|link|img|br|hr|input)$/i.test(s)) {
|
|
1012
|
+
if (e.push(">"), r && /^script$/i.test(s))
|
|
1013
|
+
for (; d; )
|
|
1014
|
+
d.data ? e.push(d.data) : j(d, e, r, t, n.slice()), d = d.nextSibling;
|
|
1015
1015
|
else
|
|
1016
|
-
for (;
|
|
1017
|
-
|
|
1018
|
-
|
|
1016
|
+
for (; d; )
|
|
1017
|
+
j(d, e, r, t, n.slice()), d = d.nextSibling;
|
|
1018
|
+
e.push("</", o, ">");
|
|
1019
1019
|
} else
|
|
1020
|
-
|
|
1020
|
+
e.push("/>");
|
|
1021
1021
|
return;
|
|
1022
|
-
case
|
|
1023
|
-
case
|
|
1024
|
-
for (var
|
|
1025
|
-
|
|
1022
|
+
case ne:
|
|
1023
|
+
case L:
|
|
1024
|
+
for (var d = u.firstChild; d; )
|
|
1025
|
+
j(d, e, r, t, n.slice()), d = d.nextSibling;
|
|
1026
1026
|
return;
|
|
1027
|
-
case
|
|
1028
|
-
return
|
|
1029
|
-
case
|
|
1030
|
-
return
|
|
1031
|
-
|
|
1027
|
+
case $:
|
|
1028
|
+
return du(e, u.name, u.value);
|
|
1029
|
+
case lu:
|
|
1030
|
+
return e.push(
|
|
1031
|
+
u.data.replace(/[<&>]/g, le)
|
|
1032
1032
|
);
|
|
1033
|
-
case
|
|
1034
|
-
return
|
|
1035
|
-
case
|
|
1036
|
-
return
|
|
1037
|
-
case
|
|
1038
|
-
var
|
|
1039
|
-
if (
|
|
1040
|
-
|
|
1041
|
-
else if (
|
|
1042
|
-
|
|
1033
|
+
case ue:
|
|
1034
|
+
return e.push("<![CDATA[", u.data, "]]>");
|
|
1035
|
+
case te:
|
|
1036
|
+
return e.push("<!--", u.data, "-->");
|
|
1037
|
+
case ae:
|
|
1038
|
+
var Q = u.publicId, C = u.systemId;
|
|
1039
|
+
if (e.push("<!DOCTYPE ", u.name), Q)
|
|
1040
|
+
e.push(" PUBLIC ", Q), C && C != "." && e.push(" ", C), e.push(">");
|
|
1041
|
+
else if (C && C != ".")
|
|
1042
|
+
e.push(" SYSTEM ", C, ">");
|
|
1043
1043
|
else {
|
|
1044
|
-
var
|
|
1045
|
-
|
|
1044
|
+
var x = u.internalSubset;
|
|
1045
|
+
x && e.push(" [", x, "]"), e.push(">");
|
|
1046
1046
|
}
|
|
1047
1047
|
return;
|
|
1048
|
-
case
|
|
1049
|
-
return
|
|
1050
|
-
case
|
|
1051
|
-
return
|
|
1048
|
+
case re:
|
|
1049
|
+
return e.push("<?", u.target, " ", u.data, "?>");
|
|
1050
|
+
case ee:
|
|
1051
|
+
return e.push("&", u.nodeName, ";");
|
|
1052
1052
|
default:
|
|
1053
|
-
|
|
1053
|
+
e.push("??", u.nodeName);
|
|
1054
1054
|
}
|
|
1055
1055
|
}
|
|
1056
|
-
function
|
|
1057
|
-
var
|
|
1058
|
-
switch (
|
|
1056
|
+
function Ee(u, e, r) {
|
|
1057
|
+
var t;
|
|
1058
|
+
switch (e.nodeType) {
|
|
1059
|
+
case q:
|
|
1060
|
+
t = e.cloneNode(!1), t.ownerDocument = u;
|
|
1059
1061
|
case L:
|
|
1060
|
-
n = r.cloneNode(!1), n.ownerDocument = e;
|
|
1061
|
-
case k:
|
|
1062
1062
|
break;
|
|
1063
|
-
case
|
|
1064
|
-
|
|
1063
|
+
case $:
|
|
1064
|
+
r = !0;
|
|
1065
1065
|
break;
|
|
1066
1066
|
}
|
|
1067
|
-
if (
|
|
1068
|
-
for (var
|
|
1069
|
-
|
|
1070
|
-
return
|
|
1071
|
-
}
|
|
1072
|
-
function
|
|
1073
|
-
var
|
|
1074
|
-
for (var
|
|
1075
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1076
|
-
var
|
|
1077
|
-
typeof
|
|
1067
|
+
if (t || (t = e.cloneNode(!1)), t.ownerDocument = u, t.parentNode = null, r)
|
|
1068
|
+
for (var n = e.firstChild; n; )
|
|
1069
|
+
t.appendChild(Ee(u, n, r)), n = n.nextSibling;
|
|
1070
|
+
return t;
|
|
1071
|
+
}
|
|
1072
|
+
function Cu(u, e, r) {
|
|
1073
|
+
var t = new e.constructor();
|
|
1074
|
+
for (var n in e)
|
|
1075
|
+
if (Object.prototype.hasOwnProperty.call(e, n)) {
|
|
1076
|
+
var a = e[n];
|
|
1077
|
+
typeof a != "object" && a != t[n] && (t[n] = a);
|
|
1078
1078
|
}
|
|
1079
|
-
switch (
|
|
1080
|
-
case
|
|
1081
|
-
var i =
|
|
1082
|
-
s._ownerElement =
|
|
1083
|
-
for (var l = 0; l <
|
|
1084
|
-
|
|
1079
|
+
switch (e.childNodes && (t.childNodes = new _()), t.ownerDocument = u, t.nodeType) {
|
|
1080
|
+
case q:
|
|
1081
|
+
var i = e.attributes, s = t.attributes = new cu(), o = i.length;
|
|
1082
|
+
s._ownerElement = t;
|
|
1083
|
+
for (var l = 0; l < o; l++)
|
|
1084
|
+
t.setAttributeNode(Cu(u, i.item(l), !0));
|
|
1085
1085
|
break;
|
|
1086
|
-
case
|
|
1087
|
-
|
|
1086
|
+
case $:
|
|
1087
|
+
r = !0;
|
|
1088
1088
|
}
|
|
1089
|
-
if (
|
|
1090
|
-
for (var c =
|
|
1091
|
-
|
|
1092
|
-
return
|
|
1089
|
+
if (r)
|
|
1090
|
+
for (var c = e.firstChild; c; )
|
|
1091
|
+
t.appendChild(Cu(u, c, r)), c = c.nextSibling;
|
|
1092
|
+
return t;
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1095
|
-
e
|
|
1094
|
+
function ge(u, e, r) {
|
|
1095
|
+
u[e] = r;
|
|
1096
1096
|
}
|
|
1097
1097
|
try {
|
|
1098
1098
|
if (Object.defineProperty) {
|
|
1099
|
-
let
|
|
1100
|
-
switch (
|
|
1099
|
+
let u = function(e) {
|
|
1100
|
+
switch (e.nodeType) {
|
|
1101
|
+
case q:
|
|
1101
1102
|
case L:
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
return t.join("");
|
|
1103
|
+
var r = [];
|
|
1104
|
+
for (e = e.firstChild; e; )
|
|
1105
|
+
e.nodeType !== 7 && e.nodeType !== 8 && r.push(u(e)), e = e.nextSibling;
|
|
1106
|
+
return r.join("");
|
|
1107
1107
|
default:
|
|
1108
|
-
return
|
|
1108
|
+
return e.nodeValue;
|
|
1109
1109
|
}
|
|
1110
1110
|
};
|
|
1111
|
-
Object.defineProperty(
|
|
1111
|
+
Object.defineProperty(X.prototype, "length", {
|
|
1112
1112
|
get: function() {
|
|
1113
|
-
return
|
|
1113
|
+
return Bu(this), this.$$length;
|
|
1114
1114
|
}
|
|
1115
|
-
}), Object.defineProperty(
|
|
1115
|
+
}), Object.defineProperty(D.prototype, "textContent", {
|
|
1116
1116
|
get: function() {
|
|
1117
|
-
return
|
|
1117
|
+
return u(this);
|
|
1118
1118
|
},
|
|
1119
|
-
set: function(
|
|
1119
|
+
set: function(e) {
|
|
1120
1120
|
switch (this.nodeType) {
|
|
1121
|
+
case q:
|
|
1121
1122
|
case L:
|
|
1122
|
-
case k:
|
|
1123
1123
|
for (; this.firstChild; )
|
|
1124
1124
|
this.removeChild(this.firstChild);
|
|
1125
|
-
(
|
|
1125
|
+
(e || String(e)) && this.appendChild(this.ownerDocument.createTextNode(e));
|
|
1126
1126
|
break;
|
|
1127
1127
|
default:
|
|
1128
|
-
this.data =
|
|
1128
|
+
this.data = e, this.value = e, this.nodeValue = e;
|
|
1129
1129
|
}
|
|
1130
1130
|
}
|
|
1131
|
-
}),
|
|
1132
|
-
|
|
1131
|
+
}), ge = function(e, r, t) {
|
|
1132
|
+
e["$$" + r] = t;
|
|
1133
1133
|
};
|
|
1134
1134
|
}
|
|
1135
1135
|
} catch {
|
|
1136
1136
|
}
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
var
|
|
1145
|
-
(function(
|
|
1146
|
-
var
|
|
1147
|
-
|
|
1137
|
+
M.DocumentType = fu;
|
|
1138
|
+
M.DOMException = m;
|
|
1139
|
+
M.DOMImplementation = se;
|
|
1140
|
+
M.Element = P;
|
|
1141
|
+
M.Node = D;
|
|
1142
|
+
M.NodeList = _;
|
|
1143
|
+
M.XMLSerializer = he;
|
|
1144
|
+
var hu = {}, de = {};
|
|
1145
|
+
(function(u) {
|
|
1146
|
+
var e = k.freeze;
|
|
1147
|
+
u.XML_ENTITIES = e({
|
|
1148
1148
|
amp: "&",
|
|
1149
1149
|
apos: "'",
|
|
1150
1150
|
gt: ">",
|
|
1151
1151
|
lt: "<",
|
|
1152
1152
|
quot: '"'
|
|
1153
|
-
}),
|
|
1153
|
+
}), u.HTML_ENTITIES = e({
|
|
1154
1154
|
Aacute: "Á",
|
|
1155
1155
|
aacute: "á",
|
|
1156
1156
|
Abreve: "Ă",
|
|
@@ -3277,318 +3277,318 @@ var me = {}, wr = {};
|
|
|
3277
3277
|
zscr: "𝓏",
|
|
3278
3278
|
zwj: "",
|
|
3279
3279
|
zwnj: ""
|
|
3280
|
-
}),
|
|
3281
|
-
})(
|
|
3282
|
-
var
|
|
3283
|
-
function Y(
|
|
3284
|
-
this.message =
|
|
3280
|
+
}), u.entityMap = u.HTML_ENTITIES;
|
|
3281
|
+
})(de);
|
|
3282
|
+
var Ou = {}, ru = k.NAMESPACE, vu = /[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, Hu = new RegExp("[\\-\\.0-9" + vu.source.slice(1, -1) + "\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"), ju = new RegExp("^" + vu.source + Hu.source + "*(?::" + vu.source + Hu.source + "*)?$"), Z = 0, U = 1, V = 2, J = 3, G = 4, z = 5, W = 6, ou = 7;
|
|
3283
|
+
function Y(u, e) {
|
|
3284
|
+
this.message = u, this.locator = e, Error.captureStackTrace && Error.captureStackTrace(this, Y);
|
|
3285
3285
|
}
|
|
3286
3286
|
Y.prototype = new Error();
|
|
3287
3287
|
Y.prototype.name = Y.name;
|
|
3288
|
-
function
|
|
3288
|
+
function Ce() {
|
|
3289
3289
|
}
|
|
3290
|
-
|
|
3291
|
-
parse: function(e, r
|
|
3292
|
-
var
|
|
3293
|
-
|
|
3290
|
+
Ce.prototype = {
|
|
3291
|
+
parse: function(u, e, r) {
|
|
3292
|
+
var t = this.domBuilder;
|
|
3293
|
+
t.startDocument(), ve(e, e = {}), ze(
|
|
3294
|
+
u,
|
|
3294
3295
|
e,
|
|
3295
3296
|
r,
|
|
3296
3297
|
t,
|
|
3297
|
-
n,
|
|
3298
3298
|
this.errorHandler
|
|
3299
|
-
),
|
|
3299
|
+
), t.endDocument();
|
|
3300
3300
|
}
|
|
3301
3301
|
};
|
|
3302
|
-
function
|
|
3303
|
-
function
|
|
3304
|
-
if (
|
|
3305
|
-
|
|
3306
|
-
var
|
|
3307
|
-
return String.fromCharCode(
|
|
3302
|
+
function ze(u, e, r, t, n) {
|
|
3303
|
+
function a(h) {
|
|
3304
|
+
if (h > 65535) {
|
|
3305
|
+
h -= 65536;
|
|
3306
|
+
var S = 55296 + (h >> 10), Fe = 56320 + (h & 1023);
|
|
3307
|
+
return String.fromCharCode(S, Fe);
|
|
3308
3308
|
} else
|
|
3309
|
-
return String.fromCharCode(
|
|
3309
|
+
return String.fromCharCode(h);
|
|
3310
3310
|
}
|
|
3311
|
-
function i(
|
|
3312
|
-
var
|
|
3313
|
-
return Object.hasOwnProperty.call(
|
|
3311
|
+
function i(h) {
|
|
3312
|
+
var S = h.slice(1, -1);
|
|
3313
|
+
return Object.hasOwnProperty.call(r, S) ? r[S] : S.charAt(0) === "#" ? a(parseInt(S.substr(1).replace("x", "0x"))) : (n.error("entity not found:" + h), h);
|
|
3314
3314
|
}
|
|
3315
|
-
function s(
|
|
3316
|
-
if (
|
|
3317
|
-
var
|
|
3318
|
-
p &&
|
|
3315
|
+
function s(h) {
|
|
3316
|
+
if (h > E) {
|
|
3317
|
+
var S = u.substring(E, h).replace(/&#?\w+;/g, i);
|
|
3318
|
+
p && o(E), t.characters(S, 0, h - E), E = h;
|
|
3319
3319
|
}
|
|
3320
3320
|
}
|
|
3321
|
-
function
|
|
3322
|
-
for (;
|
|
3323
|
-
l =
|
|
3324
|
-
p.columnNumber =
|
|
3321
|
+
function o(h, S) {
|
|
3322
|
+
for (; h >= c && (S = f.exec(u)); )
|
|
3323
|
+
l = S.index, c = l + S[0].length, p.lineNumber++;
|
|
3324
|
+
p.columnNumber = h - l + 1;
|
|
3325
3325
|
}
|
|
3326
|
-
for (var l = 0, c = 0,
|
|
3326
|
+
for (var l = 0, c = 0, f = /.*(?:\r\n?|\n)|.*$/g, p = t.locator, g = [{ currentNSMap: e }], B = {}, E = 0; ; ) {
|
|
3327
3327
|
try {
|
|
3328
|
-
var
|
|
3329
|
-
if (
|
|
3330
|
-
if (!
|
|
3331
|
-
var
|
|
3332
|
-
|
|
3328
|
+
var A = u.indexOf("<", E);
|
|
3329
|
+
if (A < 0) {
|
|
3330
|
+
if (!u.substr(E).match(/^\s*$/)) {
|
|
3331
|
+
var d = t.doc, Q = d.createTextNode(u.substr(E));
|
|
3332
|
+
d.appendChild(Q), t.currentElement = Q;
|
|
3333
3333
|
}
|
|
3334
3334
|
return;
|
|
3335
3335
|
}
|
|
3336
|
-
switch (
|
|
3336
|
+
switch (A > E && s(A), u.charAt(A + 1)) {
|
|
3337
3337
|
case "/":
|
|
3338
|
-
var
|
|
3339
|
-
|
|
3340
|
-
var
|
|
3341
|
-
if (
|
|
3342
|
-
if (
|
|
3343
|
-
for (var
|
|
3344
|
-
Object.prototype.hasOwnProperty.call(
|
|
3345
|
-
|
|
3338
|
+
var w = u.indexOf(">", A + 3), C = u.substring(A + 2, w).replace(/[ \t\n\r]+$/g, ""), x = g.pop();
|
|
3339
|
+
w < 0 ? (C = u.substring(A + 2).replace(/[\s<].*/, ""), n.error("end tag name: " + C + " is not complete:" + x.tagName), w = A + 1 + C.length) : C.match(/\s</) && (C = C.replace(/[\s<].*/, ""), n.error("end tag name: " + C + " maybe not complete"), w = A + 1 + C.length);
|
|
3340
|
+
var mu = x.localNSMap, Ru = x.tagName == C, ye = Ru || x.tagName && x.tagName.toLowerCase() == C.toLowerCase();
|
|
3341
|
+
if (ye) {
|
|
3342
|
+
if (t.endElement(x.uri, x.localName, C), mu)
|
|
3343
|
+
for (var _u in mu)
|
|
3344
|
+
Object.prototype.hasOwnProperty.call(mu, _u) && t.endPrefixMapping(_u);
|
|
3345
|
+
Ru || n.fatalError("end tag name: " + C + " is not match the current start tagName:" + x.tagName);
|
|
3346
3346
|
} else
|
|
3347
|
-
|
|
3348
|
-
|
|
3347
|
+
g.push(x);
|
|
3348
|
+
w++;
|
|
3349
3349
|
break;
|
|
3350
3350
|
case "?":
|
|
3351
|
-
p &&
|
|
3351
|
+
p && o(A), w = Ye(u, A, t);
|
|
3352
3352
|
break;
|
|
3353
3353
|
case "!":
|
|
3354
|
-
p &&
|
|
3354
|
+
p && o(A), w = Xe(u, A, t, n);
|
|
3355
3355
|
break;
|
|
3356
3356
|
default:
|
|
3357
|
-
p &&
|
|
3358
|
-
var
|
|
3359
|
-
if (!
|
|
3360
|
-
for (var
|
|
3361
|
-
var
|
|
3362
|
-
|
|
3357
|
+
p && o(A);
|
|
3358
|
+
var F = new be(), Eu = g[g.length - 1].currentNSMap, w = He(u, A, F, Eu, i, n), Lu = F.length;
|
|
3359
|
+
if (!F.closed && $e(u, w, F.tagName, B) && (F.closed = !0, r.nbsp || n.warning("unclosed xml attribute")), p && Lu) {
|
|
3360
|
+
for (var Te = $u(p, {}), gu = 0; gu < Lu; gu++) {
|
|
3361
|
+
var Iu = F[gu];
|
|
3362
|
+
o(Iu.offset), Iu.locator = $u(p, {});
|
|
3363
3363
|
}
|
|
3364
|
-
|
|
3364
|
+
t.locator = Te, Xu(F, t, Eu) && g.push(F), t.locator = p;
|
|
3365
3365
|
} else
|
|
3366
|
-
|
|
3367
|
-
|
|
3366
|
+
Xu(F, t, Eu) && g.push(F);
|
|
3367
|
+
ru.isHTML(F.uri) && !F.closed ? w = je(u, w, F.tagName, i, t) : w++;
|
|
3368
3368
|
}
|
|
3369
|
-
} catch (
|
|
3370
|
-
if (
|
|
3371
|
-
throw
|
|
3372
|
-
|
|
3369
|
+
} catch (h) {
|
|
3370
|
+
if (h instanceof Y)
|
|
3371
|
+
throw h;
|
|
3372
|
+
n.error("element parse error: " + h), w = -1;
|
|
3373
3373
|
}
|
|
3374
|
-
|
|
3374
|
+
w > E ? E = w : s(Math.max(A, E) + 1);
|
|
3375
3375
|
}
|
|
3376
3376
|
}
|
|
3377
|
-
function
|
|
3378
|
-
return
|
|
3377
|
+
function $u(u, e) {
|
|
3378
|
+
return e.lineNumber = u.lineNumber, e.columnNumber = u.columnNumber, e;
|
|
3379
3379
|
}
|
|
3380
|
-
function
|
|
3381
|
-
function i(p,
|
|
3382
|
-
|
|
3380
|
+
function He(u, e, r, t, n, a) {
|
|
3381
|
+
function i(p, g, B) {
|
|
3382
|
+
r.attributeNames.hasOwnProperty(p) && a.fatalError("Attribute " + p + " redefined"), r.addValue(
|
|
3383
3383
|
p,
|
|
3384
3384
|
// @see https://www.w3.org/TR/xml/#AVNormalize
|
|
3385
3385
|
// since the xmldom sax parser does not "interpret" DTD the following is not implemented:
|
|
3386
3386
|
// - recursive replacement of (DTD) entity references
|
|
3387
3387
|
// - trimming and collapsing multiple spaces into a single one for attributes that are not of type CDATA
|
|
3388
|
-
|
|
3389
|
-
|
|
3388
|
+
g.replace(/[\t\n\r]/g, " ").replace(/&#?\w+;/g, n),
|
|
3389
|
+
B
|
|
3390
3390
|
);
|
|
3391
3391
|
}
|
|
3392
|
-
for (var s,
|
|
3393
|
-
var
|
|
3394
|
-
switch (
|
|
3392
|
+
for (var s, o, l = ++e, c = Z; ; ) {
|
|
3393
|
+
var f = u.charAt(l);
|
|
3394
|
+
switch (f) {
|
|
3395
3395
|
case "=":
|
|
3396
|
-
if (c ===
|
|
3397
|
-
s =
|
|
3398
|
-
else if (c ===
|
|
3399
|
-
c =
|
|
3396
|
+
if (c === U)
|
|
3397
|
+
s = u.slice(e, l), c = J;
|
|
3398
|
+
else if (c === V)
|
|
3399
|
+
c = J;
|
|
3400
3400
|
else
|
|
3401
3401
|
throw new Error("attribute equal must after attrName");
|
|
3402
3402
|
break;
|
|
3403
3403
|
case "'":
|
|
3404
3404
|
case '"':
|
|
3405
|
-
if (c ===
|
|
3406
|
-
if (c ===
|
|
3407
|
-
|
|
3405
|
+
if (c === J || c === U)
|
|
3406
|
+
if (c === U && (a.warning('attribute value must after "="'), s = u.slice(e, l)), e = l + 1, l = u.indexOf(f, e), l > 0)
|
|
3407
|
+
o = u.slice(e, l), i(s, o, e - 1), c = z;
|
|
3408
3408
|
else
|
|
3409
|
-
throw new Error("attribute value no end '" +
|
|
3409
|
+
throw new Error("attribute value no end '" + f + "' match");
|
|
3410
3410
|
else if (c == G)
|
|
3411
|
-
|
|
3411
|
+
o = u.slice(e, l), i(s, o, e), a.warning('attribute "' + s + '" missed start quot(' + f + ")!!"), e = l + 1, c = z;
|
|
3412
3412
|
else
|
|
3413
3413
|
throw new Error('attribute value must after "="');
|
|
3414
3414
|
break;
|
|
3415
3415
|
case "/":
|
|
3416
3416
|
switch (c) {
|
|
3417
|
-
case
|
|
3418
|
-
|
|
3419
|
-
case
|
|
3420
|
-
case
|
|
3421
|
-
case
|
|
3422
|
-
c =
|
|
3417
|
+
case Z:
|
|
3418
|
+
r.setTagName(u.slice(e, l));
|
|
3419
|
+
case z:
|
|
3420
|
+
case W:
|
|
3421
|
+
case ou:
|
|
3422
|
+
c = ou, r.closed = !0;
|
|
3423
3423
|
case G:
|
|
3424
|
-
case
|
|
3424
|
+
case U:
|
|
3425
3425
|
break;
|
|
3426
|
-
case
|
|
3427
|
-
|
|
3426
|
+
case V:
|
|
3427
|
+
r.closed = !0;
|
|
3428
3428
|
break;
|
|
3429
3429
|
default:
|
|
3430
3430
|
throw new Error("attribute invalid close char('/')");
|
|
3431
3431
|
}
|
|
3432
3432
|
break;
|
|
3433
3433
|
case "":
|
|
3434
|
-
return
|
|
3434
|
+
return a.error("unexpected end of input"), c == Z && r.setTagName(u.slice(e, l)), l;
|
|
3435
3435
|
case ">":
|
|
3436
3436
|
switch (c) {
|
|
3437
|
-
case
|
|
3438
|
-
|
|
3439
|
-
case
|
|
3440
|
-
case
|
|
3441
|
-
case
|
|
3437
|
+
case Z:
|
|
3438
|
+
r.setTagName(u.slice(e, l));
|
|
3439
|
+
case z:
|
|
3440
|
+
case W:
|
|
3441
|
+
case ou:
|
|
3442
3442
|
break;
|
|
3443
3443
|
case G:
|
|
3444
|
-
case
|
|
3445
|
-
|
|
3446
|
-
case
|
|
3447
|
-
c ===
|
|
3444
|
+
case U:
|
|
3445
|
+
o = u.slice(e, l), o.slice(-1) === "/" && (r.closed = !0, o = o.slice(0, -1));
|
|
3446
|
+
case V:
|
|
3447
|
+
c === V && (o = s), c == G ? (a.warning('attribute "' + o + '" missed quot(")!'), i(s, o, e)) : ((!ru.isHTML(t[""]) || !o.match(/^(?:disabled|checked|selected)$/i)) && a.warning('attribute "' + o + '" missed value!! "' + o + '" instead!!'), i(o, o, e));
|
|
3448
3448
|
break;
|
|
3449
|
-
case
|
|
3449
|
+
case J:
|
|
3450
3450
|
throw new Error("attribute value missed!!");
|
|
3451
3451
|
}
|
|
3452
3452
|
return l;
|
|
3453
3453
|
case "":
|
|
3454
|
-
|
|
3454
|
+
f = " ";
|
|
3455
3455
|
default:
|
|
3456
|
-
if (
|
|
3456
|
+
if (f <= " ")
|
|
3457
3457
|
switch (c) {
|
|
3458
|
-
case
|
|
3459
|
-
|
|
3458
|
+
case Z:
|
|
3459
|
+
r.setTagName(u.slice(e, l)), c = W;
|
|
3460
3460
|
break;
|
|
3461
|
-
case
|
|
3462
|
-
s =
|
|
3461
|
+
case U:
|
|
3462
|
+
s = u.slice(e, l), c = V;
|
|
3463
3463
|
break;
|
|
3464
3464
|
case G:
|
|
3465
|
-
var
|
|
3466
|
-
|
|
3467
|
-
case
|
|
3468
|
-
c =
|
|
3465
|
+
var o = u.slice(e, l);
|
|
3466
|
+
a.warning('attribute "' + o + '" missed quot(")!!'), i(s, o, e);
|
|
3467
|
+
case z:
|
|
3468
|
+
c = W;
|
|
3469
3469
|
break;
|
|
3470
3470
|
}
|
|
3471
3471
|
else
|
|
3472
3472
|
switch (c) {
|
|
3473
|
-
case
|
|
3474
|
-
|
|
3475
|
-
break;
|
|
3476
|
-
case j:
|
|
3477
|
-
o.warning('attribute space is required"' + s + '"!!');
|
|
3478
|
-
case K:
|
|
3479
|
-
c = P, r = l;
|
|
3473
|
+
case V:
|
|
3474
|
+
r.tagName, (!ru.isHTML(t[""]) || !s.match(/^(?:disabled|checked|selected)$/i)) && a.warning('attribute "' + s + '" missed value!! "' + s + '" instead2!!'), i(s, s, e), e = l, c = U;
|
|
3480
3475
|
break;
|
|
3476
|
+
case z:
|
|
3477
|
+
a.warning('attribute space is required"' + s + '"!!');
|
|
3481
3478
|
case W:
|
|
3482
|
-
c =
|
|
3479
|
+
c = U, e = l;
|
|
3483
3480
|
break;
|
|
3484
|
-
case
|
|
3481
|
+
case J:
|
|
3482
|
+
c = G, e = l;
|
|
3483
|
+
break;
|
|
3484
|
+
case ou:
|
|
3485
3485
|
throw new Error("elements closed character '/' and '>' must be connected to");
|
|
3486
3486
|
}
|
|
3487
3487
|
}
|
|
3488
3488
|
l++;
|
|
3489
3489
|
}
|
|
3490
3490
|
}
|
|
3491
|
-
function
|
|
3492
|
-
for (var
|
|
3493
|
-
var
|
|
3491
|
+
function Xu(u, e, r) {
|
|
3492
|
+
for (var t = u.tagName, n = null, f = u.length; f--; ) {
|
|
3493
|
+
var a = u[f], i = a.qName, s = a.value, p = i.indexOf(":");
|
|
3494
3494
|
if (p > 0)
|
|
3495
|
-
var
|
|
3495
|
+
var o = a.prefix = i.slice(0, p), l = i.slice(p + 1), c = o === "xmlns" && l;
|
|
3496
3496
|
else
|
|
3497
|
-
|
|
3498
|
-
|
|
3497
|
+
l = i, o = null, c = i === "xmlns" && "";
|
|
3498
|
+
a.localName = l, c !== !1 && (n == null && (n = {}, ve(r, r = {})), r[c] = n[c] = s, a.uri = ru.XMLNS, e.startPrefixMapping(c, s));
|
|
3499
3499
|
}
|
|
3500
|
-
for (var
|
|
3501
|
-
|
|
3502
|
-
var
|
|
3503
|
-
|
|
3500
|
+
for (var f = u.length; f--; ) {
|
|
3501
|
+
a = u[f];
|
|
3502
|
+
var o = a.prefix;
|
|
3503
|
+
o && (o === "xml" && (a.uri = ru.XML), o !== "xmlns" && (a.uri = r[o || ""]));
|
|
3504
3504
|
}
|
|
3505
|
-
var p =
|
|
3506
|
-
p > 0 ? (
|
|
3507
|
-
var
|
|
3508
|
-
if (
|
|
3509
|
-
if (
|
|
3510
|
-
for (
|
|
3511
|
-
Object.prototype.hasOwnProperty.call(
|
|
3505
|
+
var p = t.indexOf(":");
|
|
3506
|
+
p > 0 ? (o = u.prefix = t.slice(0, p), l = u.localName = t.slice(p + 1)) : (o = null, l = u.localName = t);
|
|
3507
|
+
var g = u.uri = r[o || ""];
|
|
3508
|
+
if (e.startElement(g, l, t, u), u.closed) {
|
|
3509
|
+
if (e.endElement(g, l, t), n)
|
|
3510
|
+
for (o in n)
|
|
3511
|
+
Object.prototype.hasOwnProperty.call(n, o) && e.endPrefixMapping(o);
|
|
3512
3512
|
} else
|
|
3513
|
-
return
|
|
3513
|
+
return u.currentNSMap = r, u.localNSMap = n, !0;
|
|
3514
3514
|
}
|
|
3515
|
-
function
|
|
3516
|
-
if (/^(?:script|textarea)$/i.test(
|
|
3517
|
-
var
|
|
3515
|
+
function je(u, e, r, t, n) {
|
|
3516
|
+
if (/^(?:script|textarea)$/i.test(r)) {
|
|
3517
|
+
var a = u.indexOf("</" + r + ">", e), i = u.substring(e + 1, a);
|
|
3518
3518
|
if (/[&<]/.test(i))
|
|
3519
|
-
return /^script$/i.test(
|
|
3519
|
+
return /^script$/i.test(r) ? (n.characters(i, 0, i.length), a) : (i = i.replace(/&#?\w+;/g, t), n.characters(i, 0, i.length), a);
|
|
3520
3520
|
}
|
|
3521
|
-
return
|
|
3521
|
+
return e + 1;
|
|
3522
3522
|
}
|
|
3523
|
-
function
|
|
3524
|
-
var
|
|
3525
|
-
return
|
|
3523
|
+
function $e(u, e, r, t) {
|
|
3524
|
+
var n = t[r];
|
|
3525
|
+
return n == null && (n = u.lastIndexOf("</" + r + ">"), n < e && (n = u.lastIndexOf("</" + r)), t[r] = n), n < e;
|
|
3526
3526
|
}
|
|
3527
|
-
function
|
|
3528
|
-
for (var
|
|
3529
|
-
Object.prototype.hasOwnProperty.call(
|
|
3527
|
+
function ve(u, e) {
|
|
3528
|
+
for (var r in u)
|
|
3529
|
+
Object.prototype.hasOwnProperty.call(u, r) && (e[r] = u[r]);
|
|
3530
3530
|
}
|
|
3531
|
-
function
|
|
3532
|
-
var
|
|
3533
|
-
switch (
|
|
3531
|
+
function Xe(u, e, r, t) {
|
|
3532
|
+
var n = u.charAt(e + 2);
|
|
3533
|
+
switch (n) {
|
|
3534
3534
|
case "-":
|
|
3535
|
-
if (
|
|
3536
|
-
var
|
|
3537
|
-
return
|
|
3535
|
+
if (u.charAt(e + 3) === "-") {
|
|
3536
|
+
var a = u.indexOf("-->", e + 4);
|
|
3537
|
+
return a > e ? (r.comment(u, e + 4, a - e - 4), a + 3) : (t.error("Unclosed comment"), -1);
|
|
3538
3538
|
} else
|
|
3539
3539
|
return -1;
|
|
3540
3540
|
default:
|
|
3541
|
-
if (
|
|
3542
|
-
var
|
|
3543
|
-
return
|
|
3541
|
+
if (u.substr(e + 3, 6) == "CDATA[") {
|
|
3542
|
+
var a = u.indexOf("]]>", e + 9);
|
|
3543
|
+
return r.startCDATA(), r.characters(u, e + 9, a - e - 9), r.endCDATA(), a + 3;
|
|
3544
3544
|
}
|
|
3545
|
-
var i =
|
|
3545
|
+
var i = Qe(u, e), s = i.length;
|
|
3546
3546
|
if (s > 1 && /!doctype/i.test(i[0][0])) {
|
|
3547
|
-
var
|
|
3547
|
+
var o = i[1][0], l = !1, c = !1;
|
|
3548
3548
|
s > 3 && (/^public$/i.test(i[2][0]) ? (l = i[3][0], c = s > 4 && i[4][0]) : /^system$/i.test(i[2][0]) && (c = i[3][0]));
|
|
3549
|
-
var
|
|
3550
|
-
return
|
|
3549
|
+
var f = i[s - 1];
|
|
3550
|
+
return r.startDTD(o, l, c), r.endDTD(), f.index + f[0].length;
|
|
3551
3551
|
}
|
|
3552
3552
|
}
|
|
3553
3553
|
return -1;
|
|
3554
3554
|
}
|
|
3555
|
-
function
|
|
3556
|
-
var
|
|
3557
|
-
if (
|
|
3558
|
-
var
|
|
3559
|
-
return
|
|
3555
|
+
function Ye(u, e, r) {
|
|
3556
|
+
var t = u.indexOf("?>", e);
|
|
3557
|
+
if (t) {
|
|
3558
|
+
var n = u.substring(e, t).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);
|
|
3559
|
+
return n ? (n[0].length, r.processingInstruction(n[1], n[2]), t + 2) : -1;
|
|
3560
3560
|
}
|
|
3561
3561
|
return -1;
|
|
3562
3562
|
}
|
|
3563
|
-
function
|
|
3563
|
+
function be() {
|
|
3564
3564
|
this.attributeNames = {};
|
|
3565
3565
|
}
|
|
3566
|
-
|
|
3567
|
-
setTagName: function(
|
|
3568
|
-
if (!
|
|
3569
|
-
throw new Error("invalid tagName:" +
|
|
3570
|
-
this.tagName =
|
|
3566
|
+
be.prototype = {
|
|
3567
|
+
setTagName: function(u) {
|
|
3568
|
+
if (!ju.test(u))
|
|
3569
|
+
throw new Error("invalid tagName:" + u);
|
|
3570
|
+
this.tagName = u;
|
|
3571
3571
|
},
|
|
3572
|
-
addValue: function(e, r
|
|
3573
|
-
if (!
|
|
3574
|
-
throw new Error("invalid attribute:" +
|
|
3575
|
-
this.attributeNames[
|
|
3572
|
+
addValue: function(u, e, r) {
|
|
3573
|
+
if (!ju.test(u))
|
|
3574
|
+
throw new Error("invalid attribute:" + u);
|
|
3575
|
+
this.attributeNames[u] = this.length, this[this.length++] = { qName: u, value: e, offset: r };
|
|
3576
3576
|
},
|
|
3577
3577
|
length: 0,
|
|
3578
|
-
getLocalName: function(
|
|
3579
|
-
return this[
|
|
3578
|
+
getLocalName: function(u) {
|
|
3579
|
+
return this[u].localName;
|
|
3580
3580
|
},
|
|
3581
|
-
getLocator: function(
|
|
3582
|
-
return this[
|
|
3581
|
+
getLocator: function(u) {
|
|
3582
|
+
return this[u].locator;
|
|
3583
3583
|
},
|
|
3584
|
-
getQName: function(
|
|
3585
|
-
return this[
|
|
3584
|
+
getQName: function(u) {
|
|
3585
|
+
return this[u].qName;
|
|
3586
3586
|
},
|
|
3587
|
-
getURI: function(
|
|
3588
|
-
return this[
|
|
3587
|
+
getURI: function(u) {
|
|
3588
|
+
return this[u].uri;
|
|
3589
3589
|
},
|
|
3590
|
-
getValue: function(
|
|
3591
|
-
return this[
|
|
3590
|
+
getValue: function(u) {
|
|
3591
|
+
return this[u].value;
|
|
3592
3592
|
}
|
|
3593
3593
|
// ,getIndex:function(uri, localName)){
|
|
3594
3594
|
// if(localName){
|
|
@@ -3601,105 +3601,105 @@ Er.prototype = {
|
|
|
3601
3601
|
// getType:function(uri,localName){}
|
|
3602
3602
|
// getType:function(i){},
|
|
3603
3603
|
};
|
|
3604
|
-
function
|
|
3605
|
-
var
|
|
3606
|
-
for (
|
|
3607
|
-
if (
|
|
3608
|
-
}
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
var
|
|
3612
|
-
function
|
|
3613
|
-
return
|
|
3604
|
+
function Qe(u, e) {
|
|
3605
|
+
var r, t = [], n = /'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;
|
|
3606
|
+
for (n.lastIndex = e, n.exec(u); r = n.exec(u); )
|
|
3607
|
+
if (t.push(r), r[1]) return t;
|
|
3608
|
+
}
|
|
3609
|
+
Ou.XMLReader = Ce;
|
|
3610
|
+
Ou.ParseError = Y;
|
|
3611
|
+
var Ze = k, Je = M, Yu = de, we = Ou, We = Je.DOMImplementation, Qu = Ze.NAMESPACE, Ke = we.ParseError, ur = we.XMLReader;
|
|
3612
|
+
function Be(u) {
|
|
3613
|
+
return u.replace(/\r[\n\u0085]/g, `
|
|
3614
3614
|
`).replace(/[\r\u0085\u2028]/g, `
|
|
3615
3615
|
`);
|
|
3616
3616
|
}
|
|
3617
|
-
function
|
|
3618
|
-
this.options =
|
|
3617
|
+
function Ne(u) {
|
|
3618
|
+
this.options = u || { locator: {} };
|
|
3619
3619
|
}
|
|
3620
|
-
|
|
3621
|
-
var
|
|
3622
|
-
i &&
|
|
3623
|
-
var c =
|
|
3624
|
-
return
|
|
3625
|
-
c(
|
|
3620
|
+
Ne.prototype.parseFromString = function(u, e) {
|
|
3621
|
+
var r = this.options, t = new ur(), n = r.domBuilder || new iu(), a = r.errorHandler, i = r.locator, s = r.xmlns || {}, o = /\/x?html?$/.test(e), l = o ? Yu.HTML_ENTITIES : Yu.XML_ENTITIES;
|
|
3622
|
+
i && n.setDocumentLocator(i), t.errorHandler = er(a, n, i), t.domBuilder = r.domBuilder || n, o && (s[""] = Qu.HTML), s.xml = s.xml || Qu.XML;
|
|
3623
|
+
var c = r.normalizeLineEndings || Be;
|
|
3624
|
+
return u && typeof u == "string" ? t.parse(
|
|
3625
|
+
c(u),
|
|
3626
3626
|
s,
|
|
3627
3627
|
l
|
|
3628
|
-
) :
|
|
3628
|
+
) : t.errorHandler.error("invalid doc source"), n.doc;
|
|
3629
3629
|
};
|
|
3630
|
-
function
|
|
3631
|
-
if (!
|
|
3632
|
-
if (
|
|
3633
|
-
return
|
|
3634
|
-
|
|
3630
|
+
function er(u, e, r) {
|
|
3631
|
+
if (!u) {
|
|
3632
|
+
if (e instanceof iu)
|
|
3633
|
+
return e;
|
|
3634
|
+
u = e;
|
|
3635
3635
|
}
|
|
3636
|
-
var
|
|
3637
|
-
|
|
3638
|
-
function
|
|
3639
|
-
var s =
|
|
3640
|
-
!s &&
|
|
3641
|
-
|
|
3642
|
-
} :
|
|
3643
|
-
s("[xmldom " + i + "] " +
|
|
3636
|
+
var t = {}, n = u instanceof Function;
|
|
3637
|
+
r = r || {};
|
|
3638
|
+
function a(i) {
|
|
3639
|
+
var s = u[i];
|
|
3640
|
+
!s && n && (s = u.length == 2 ? function(o) {
|
|
3641
|
+
u(i, o);
|
|
3642
|
+
} : u), t[i] = s && function(o) {
|
|
3643
|
+
s("[xmldom " + i + "] " + o + bu(r));
|
|
3644
3644
|
} || function() {
|
|
3645
3645
|
};
|
|
3646
3646
|
}
|
|
3647
|
-
return
|
|
3647
|
+
return a("warning"), a("error"), a("fatalError"), t;
|
|
3648
3648
|
}
|
|
3649
|
-
function
|
|
3649
|
+
function iu() {
|
|
3650
3650
|
this.cdata = !1;
|
|
3651
3651
|
}
|
|
3652
|
-
function
|
|
3653
|
-
|
|
3652
|
+
function H(u, e) {
|
|
3653
|
+
e.lineNumber = u.lineNumber, e.columnNumber = u.columnNumber;
|
|
3654
3654
|
}
|
|
3655
|
-
|
|
3655
|
+
iu.prototype = {
|
|
3656
3656
|
startDocument: function() {
|
|
3657
|
-
this.doc = new
|
|
3657
|
+
this.doc = new We().createDocument(null, null, null), this.locator && (this.doc.documentURI = this.locator.systemId);
|
|
3658
3658
|
},
|
|
3659
|
-
startElement: function(e, r, t
|
|
3660
|
-
var
|
|
3661
|
-
|
|
3659
|
+
startElement: function(u, e, r, t) {
|
|
3660
|
+
var n = this.doc, a = n.createElementNS(u, r || e), i = t.length;
|
|
3661
|
+
su(this, a), this.currentElement = a, this.locator && H(this.locator, a);
|
|
3662
3662
|
for (var s = 0; s < i; s++) {
|
|
3663
|
-
var
|
|
3664
|
-
this.locator &&
|
|
3663
|
+
var u = t.getURI(s), o = t.getValue(s), r = t.getQName(s), l = n.createAttributeNS(u, r);
|
|
3664
|
+
this.locator && H(t.getLocator(s), l), l.value = l.nodeValue = o, a.setAttributeNode(l);
|
|
3665
3665
|
}
|
|
3666
3666
|
},
|
|
3667
|
-
endElement: function(e, r
|
|
3668
|
-
var
|
|
3669
|
-
|
|
3667
|
+
endElement: function(u, e, r) {
|
|
3668
|
+
var t = this.currentElement;
|
|
3669
|
+
t.tagName, this.currentElement = t.parentNode;
|
|
3670
3670
|
},
|
|
3671
|
-
startPrefixMapping: function(
|
|
3671
|
+
startPrefixMapping: function(u, e) {
|
|
3672
3672
|
},
|
|
3673
|
-
endPrefixMapping: function(
|
|
3673
|
+
endPrefixMapping: function(u) {
|
|
3674
3674
|
},
|
|
3675
|
-
processingInstruction: function(
|
|
3676
|
-
var
|
|
3677
|
-
this.locator &&
|
|
3675
|
+
processingInstruction: function(u, e) {
|
|
3676
|
+
var r = this.doc.createProcessingInstruction(u, e);
|
|
3677
|
+
this.locator && H(this.locator, r), su(this, r);
|
|
3678
3678
|
},
|
|
3679
|
-
ignorableWhitespace: function(e, r
|
|
3679
|
+
ignorableWhitespace: function(u, e, r) {
|
|
3680
3680
|
},
|
|
3681
|
-
characters: function(e, r
|
|
3682
|
-
if (
|
|
3681
|
+
characters: function(u, e, r) {
|
|
3682
|
+
if (u = Zu.apply(this, arguments), u) {
|
|
3683
3683
|
if (this.cdata)
|
|
3684
|
-
var
|
|
3684
|
+
var t = this.doc.createCDATASection(u);
|
|
3685
3685
|
else
|
|
3686
|
-
var
|
|
3687
|
-
this.currentElement ? this.currentElement.appendChild(
|
|
3686
|
+
var t = this.doc.createTextNode(u);
|
|
3687
|
+
this.currentElement ? this.currentElement.appendChild(t) : /^\s*$/.test(u) && this.doc.appendChild(t), this.locator && H(this.locator, t);
|
|
3688
3688
|
}
|
|
3689
3689
|
},
|
|
3690
|
-
skippedEntity: function(
|
|
3690
|
+
skippedEntity: function(u) {
|
|
3691
3691
|
},
|
|
3692
3692
|
endDocument: function() {
|
|
3693
3693
|
this.doc.normalize();
|
|
3694
3694
|
},
|
|
3695
|
-
setDocumentLocator: function(
|
|
3696
|
-
(this.locator =
|
|
3695
|
+
setDocumentLocator: function(u) {
|
|
3696
|
+
(this.locator = u) && (u.lineNumber = 0);
|
|
3697
3697
|
},
|
|
3698
3698
|
//LexicalHandler
|
|
3699
|
-
comment: function(e, r
|
|
3700
|
-
|
|
3701
|
-
var
|
|
3702
|
-
this.locator &&
|
|
3699
|
+
comment: function(u, e, r) {
|
|
3700
|
+
u = Zu.apply(this, arguments);
|
|
3701
|
+
var t = this.doc.createComment(u);
|
|
3702
|
+
this.locator && H(this.locator, t), su(this, t);
|
|
3703
3703
|
},
|
|
3704
3704
|
startCDATA: function() {
|
|
3705
3705
|
this.cdata = !0;
|
|
@@ -3707,52 +3707,52 @@ ie.prototype = {
|
|
|
3707
3707
|
endCDATA: function() {
|
|
3708
3708
|
this.cdata = !1;
|
|
3709
3709
|
},
|
|
3710
|
-
startDTD: function(e, r
|
|
3711
|
-
var
|
|
3712
|
-
if (
|
|
3713
|
-
var
|
|
3714
|
-
this.locator &&
|
|
3710
|
+
startDTD: function(u, e, r) {
|
|
3711
|
+
var t = this.doc.implementation;
|
|
3712
|
+
if (t && t.createDocumentType) {
|
|
3713
|
+
var n = t.createDocumentType(u, e, r);
|
|
3714
|
+
this.locator && H(this.locator, n), su(this, n), this.doc.doctype = n;
|
|
3715
3715
|
}
|
|
3716
3716
|
},
|
|
3717
3717
|
/**
|
|
3718
3718
|
* @see org.xml.sax.ErrorHandler
|
|
3719
3719
|
* @link http://www.saxproject.org/apidoc/org/xml/sax/ErrorHandler.html
|
|
3720
3720
|
*/
|
|
3721
|
-
warning: function(
|
|
3722
|
-
console.warn("[xmldom warning] " +
|
|
3721
|
+
warning: function(u) {
|
|
3722
|
+
console.warn("[xmldom warning] " + u, bu(this.locator));
|
|
3723
3723
|
},
|
|
3724
|
-
error: function(
|
|
3725
|
-
console.error("[xmldom error] " +
|
|
3724
|
+
error: function(u) {
|
|
3725
|
+
console.error("[xmldom error] " + u, bu(this.locator));
|
|
3726
3726
|
},
|
|
3727
|
-
fatalError: function(
|
|
3728
|
-
throw new
|
|
3727
|
+
fatalError: function(u) {
|
|
3728
|
+
throw new Ke(u, this.locator);
|
|
3729
3729
|
}
|
|
3730
3730
|
};
|
|
3731
|
-
function
|
|
3732
|
-
if (
|
|
3731
|
+
function bu(u) {
|
|
3732
|
+
if (u)
|
|
3733
3733
|
return `
|
|
3734
|
-
@` + (
|
|
3734
|
+
@` + (u.systemId || "") + "#[line:" + u.lineNumber + ",col:" + u.columnNumber + "]";
|
|
3735
3735
|
}
|
|
3736
|
-
function
|
|
3737
|
-
return typeof
|
|
3736
|
+
function Zu(u, e, r) {
|
|
3737
|
+
return typeof u == "string" ? u.substr(e, r) : u.length >= e + r || e ? new java.lang.String(u, e, r) + "" : u;
|
|
3738
3738
|
}
|
|
3739
|
-
"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g, function(
|
|
3740
|
-
|
|
3739
|
+
"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g, function(u) {
|
|
3740
|
+
iu.prototype[u] = function() {
|
|
3741
3741
|
return null;
|
|
3742
3742
|
};
|
|
3743
3743
|
});
|
|
3744
|
-
function
|
|
3745
|
-
|
|
3746
|
-
}
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
var
|
|
3751
|
-
const
|
|
3744
|
+
function su(u, e) {
|
|
3745
|
+
u.currentElement ? u.currentElement.appendChild(e) : u.doc.appendChild(e);
|
|
3746
|
+
}
|
|
3747
|
+
hu.__DOMHandler = iu;
|
|
3748
|
+
hu.normalizeLineEndings = Be;
|
|
3749
|
+
hu.DOMParser = Ne;
|
|
3750
|
+
var rr = hu.DOMParser;
|
|
3751
|
+
const tr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3752
3752
|
__proto__: null,
|
|
3753
|
-
DOMParser:
|
|
3753
|
+
DOMParser: rr
|
|
3754
3754
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3755
3755
|
export {
|
|
3756
|
-
|
|
3757
|
-
|
|
3756
|
+
rr as D,
|
|
3757
|
+
tr as i
|
|
3758
3758
|
};
|