module-develop-kit 1.2.4 → 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/commonjs-virtual-dir/_commonjsHelpers.js +3 -28
- package/dist/commonjs-virtual-dir/browser.js +5 -2
- package/dist/commonjs-virtual-dir/browser2.js +2 -5
- package/dist/src/vite-plugins/generateSriHash.js +26 -0
- package/dist/src/vite-plugins/vite-plugin-sri/config.js +8 -0
- package/dist/src/vite-plugins/vite-plugin-sri/index.js +125 -0
- package/dist/src/vite-plugins/vite-plugin-sri/internal.js +1173 -0
- package/dist/vendor/@tokenizer/inflate/lib/ZipHandler.js +1 -1
- package/dist/vendor/debug/src/browser.js +1 -1
- package/dist/vendor/file-type/source/detectors/ebml.js +1 -1
- package/dist/vendor/file-type/source/detectors/zip.js +1 -1
- package/dist/vendor/file-type/source/index.js +1 -1
- package/dist/vendor/file-type/source/tokens.js +1 -1
- package/dist/vendor/gm-crypt/src/crypt.js +1 -1
- package/dist/vendor/jssip/lib-es5/Message.js +11 -11
- package/dist/vendor/jssip/lib-es5/Options.js +13 -13
- package/dist/vendor/jssip/lib-es5/RTCSession/DTMF.js +4 -4
- package/dist/vendor/jssip/lib-es5/RTCSession/Info.js +12 -12
- package/dist/vendor/jssip/lib-es5/RTCSession/ReferSubscriber.js +7 -7
- package/dist/vendor/jssip/lib-es5/RTCSession.js +2 -2
- package/dist/vendor/jssip/lib-es5/Transactions.js +15 -15
- package/dist/vendor/jssip/lib-es5/UA.js +5 -5
- package/dist/vendor/parse5/dist/common/doctype.js +98 -0
- package/dist/vendor/parse5/dist/common/error-codes.js +7 -0
- package/dist/vendor/parse5/dist/common/foreign-content.js +210 -0
- package/dist/vendor/parse5/dist/common/html.js +261 -0
- package/dist/vendor/parse5/dist/common/token.js +14 -0
- package/dist/vendor/parse5/dist/common/unicode.js +73 -0
- package/dist/vendor/parse5/dist/index.js +18 -0
- package/dist/vendor/parse5/dist/parser/formatting-element-list.js +84 -0
- package/dist/vendor/parse5/dist/parser/index.js +2271 -0
- package/dist/vendor/parse5/dist/parser/open-element-stack.js +240 -0
- package/dist/vendor/parse5/dist/serializer/index.js +85 -0
- package/dist/vendor/parse5/dist/tokenizer/index.js +1940 -0
- package/dist/vendor/parse5/dist/tokenizer/preprocessor.js +88 -0
- package/dist/vendor/parse5/dist/tree-adapters/default.js +162 -0
- package/dist/vendor/parse5/node_modules/entities/dist/decode-codepoint.js +37 -0
- package/dist/vendor/parse5/node_modules/entities/dist/decode.js +270 -0
- package/dist/vendor/parse5/node_modules/entities/dist/escape.js +22 -0
- package/dist/vendor/parse5/node_modules/entities/dist/generated/decode-data-html.js +5 -0
- package/dist/vendor/parse5/node_modules/entities/dist/internal/bin-trie-flags.js +7 -0
- package/dist/vendor/parse5/node_modules/entities/dist/internal/decode-shared.js +11 -0
- package/dist/vite-plugins/index.d.ts +161 -0
- package/dist/vite-plugins/index.js +14 -6
- package/package.json +2 -1
- package/dist/commonjs-virtual-dir/___vite-browser-external.js +0 -6
- package/dist/commonjs-virtual-dir/__vite-browser-external.js +0 -4
- package/dist/commonjs-virtual-dir/events.js +0 -4
- package/dist/vendor/events/events.js +0 -216
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UINT32_LE as h, StringType as k } from "../../../token-types/lib/index.js";
|
|
2
|
-
import D from "../../../../commonjs-virtual-dir/
|
|
2
|
+
import D from "../../../../commonjs-virtual-dir/browser.js";
|
|
3
3
|
import { Signature as c, EndOfCentralDirectoryRecordToken as L, FileHeader as E, DataDescriptor as y, LocalFileHeaderToken as S } from "./ZipToken.js";
|
|
4
4
|
function m(s) {
|
|
5
5
|
const t = new Uint8Array(h.len);
|
|
@@ -33,7 +33,7 @@ async function V(t) {
|
|
|
33
33
|
if (e.len > c)
|
|
34
34
|
return;
|
|
35
35
|
const m = y(e.len, c, "EBML DocType");
|
|
36
|
-
return (await t.readToken(new p(m))).replaceAll(
|
|
36
|
+
return (await t.readToken(new p(m))).replaceAll(/\0.*$/gv, "");
|
|
37
37
|
}
|
|
38
38
|
if (r(t) && (!Number.isFinite(e.len) || e.len < 0 || e.len > u) || (await b(t, e.len, {
|
|
39
39
|
maximumLength: r(t) ? u : t.fileInfo.size,
|
|
@@ -322,7 +322,7 @@ async function Y(e) {
|
|
|
322
322
|
stop: !0
|
|
323
323
|
}) : (r.hasUnparseableContentTypes = !0, {});
|
|
324
324
|
default:
|
|
325
|
-
return
|
|
325
|
+
return /classes\d*\.dex/v.test(s.filename) ? (t = {
|
|
326
326
|
ext: "apk",
|
|
327
327
|
mime: "application/vnd.android.package-archive"
|
|
328
328
|
}, { stop: !0 }) : {};
|
|
@@ -657,7 +657,7 @@ class y {
|
|
|
657
657
|
};
|
|
658
658
|
if (this.checkString("AC")) {
|
|
659
659
|
const t = new S(4, "latin1").get(this.buffer, 2);
|
|
660
|
-
if (
|
|
660
|
+
if (/^\d+$/v.test(t) && t >= 1e3 && t <= 1050)
|
|
661
661
|
return {
|
|
662
662
|
ext: "dwg",
|
|
663
663
|
mime: "image/vnd.dwg"
|
|
@@ -19,7 +19,7 @@ function u(e, n) {
|
|
|
19
19
|
return [...e].map((c) => c.charCodeAt(0));
|
|
20
20
|
}
|
|
21
21
|
function F(e, n = 0) {
|
|
22
|
-
const c = Number.parseInt(new o(6).get(e, 148).replace(
|
|
22
|
+
const c = Number.parseInt(new o(6).get(e, 148).replace(/\0.*$/v, "").trim(), 8);
|
|
23
23
|
if (Number.isNaN(c))
|
|
24
24
|
return !1;
|
|
25
25
|
let r = 8 * 32;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { __require as
|
|
3
|
-
import { __require as
|
|
4
|
-
import { __require as
|
|
5
|
-
import { __require as
|
|
1
|
+
import D from "events";
|
|
2
|
+
import { __require as $ } from "./Logger.js";
|
|
3
|
+
import { __require as G } from "./Constants.js";
|
|
4
|
+
import { __require as z } from "./SIPMessage.js";
|
|
5
|
+
import { __require as L } from "./Utils.js";
|
|
6
6
|
import { __require as J } from "./RequestSender.js";
|
|
7
7
|
import { __require as Q } from "./Exceptions.js";
|
|
8
8
|
import { __require as B } from "./URI.js";
|
|
9
|
-
var v,
|
|
9
|
+
var v, E;
|
|
10
10
|
function te() {
|
|
11
|
-
if (
|
|
12
|
-
|
|
11
|
+
if (E) return v;
|
|
12
|
+
E = 1;
|
|
13
13
|
function c(n) {
|
|
14
14
|
"@babel/helpers - typeof";
|
|
15
15
|
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? c = function(o) {
|
|
@@ -76,7 +76,7 @@ function te() {
|
|
|
76
76
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
77
77
|
}, f(n);
|
|
78
78
|
}
|
|
79
|
-
var x = D
|
|
79
|
+
var x = D.EventEmitter, I = $(), d = G(), N = z(), u = L(), j = J(), b = Q(), H = B(), _ = new I("Message");
|
|
80
80
|
return v = /* @__PURE__ */ function(n) {
|
|
81
81
|
T(o, n);
|
|
82
82
|
var r = O(o);
|
|
@@ -124,7 +124,7 @@ function te() {
|
|
|
124
124
|
value: function() {
|
|
125
125
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = u.cloneArray(e.extraHeaders), s = e.body;
|
|
126
126
|
if (this._direction !== "incoming")
|
|
127
|
-
throw new
|
|
127
|
+
throw new b.NotSupportedError('"accept" not supported for outgoing Message');
|
|
128
128
|
if (this._is_replied)
|
|
129
129
|
throw new Error("incoming Message already replied");
|
|
130
130
|
this._is_replied = !0, this._request.reply(200, null, i, s);
|
|
@@ -138,7 +138,7 @@ function te() {
|
|
|
138
138
|
value: function() {
|
|
139
139
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = e.status_code || 480, s = e.reason_phrase, a = u.cloneArray(e.extraHeaders), p = e.body;
|
|
140
140
|
if (this._direction !== "incoming")
|
|
141
|
-
throw new
|
|
141
|
+
throw new b.NotSupportedError('"reject" not supported for outgoing Message');
|
|
142
142
|
if (this._is_replied)
|
|
143
143
|
throw new Error("incoming Message already replied");
|
|
144
144
|
if (i < 300 || i >= 700)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import M from "events";
|
|
2
2
|
import { __require as U } from "./Logger.js";
|
|
3
|
-
import { __require as
|
|
4
|
-
import { __require as
|
|
5
|
-
import { __require as
|
|
6
|
-
import { __require as
|
|
3
|
+
import { __require as $ } from "./Constants.js";
|
|
4
|
+
import { __require as z } from "./SIPMessage.js";
|
|
5
|
+
import { __require as D } from "./Utils.js";
|
|
6
|
+
import { __require as L } from "./RequestSender.js";
|
|
7
7
|
import { __require as J } from "./Exceptions.js";
|
|
8
8
|
var m, b;
|
|
9
9
|
function X() {
|
|
@@ -43,9 +43,9 @@ function X() {
|
|
|
43
43
|
function E(n) {
|
|
44
44
|
var r = P();
|
|
45
45
|
return function() {
|
|
46
|
-
var t =
|
|
46
|
+
var t = f(n), e;
|
|
47
47
|
if (r) {
|
|
48
|
-
var i =
|
|
48
|
+
var i = f(this).constructor;
|
|
49
49
|
e = Reflect.construct(t, arguments, i);
|
|
50
50
|
} else
|
|
51
51
|
e = t.apply(this, arguments);
|
|
@@ -70,12 +70,12 @@ function X() {
|
|
|
70
70
|
return !1;
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
return
|
|
73
|
+
function f(n) {
|
|
74
|
+
return f = Object.setPrototypeOf ? Object.getPrototypeOf : function(o) {
|
|
75
75
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
76
|
-
},
|
|
76
|
+
}, f(n);
|
|
77
77
|
}
|
|
78
|
-
var I = M
|
|
78
|
+
var I = M.EventEmitter, x = U(), p = $(), N = z(), u = D(), j = L(), v = J(), _ = new x("Options");
|
|
79
79
|
return m = /* @__PURE__ */ function(n) {
|
|
80
80
|
T(o, n);
|
|
81
81
|
var r = E(o);
|
|
@@ -190,7 +190,7 @@ function X() {
|
|
|
190
190
|
}, {
|
|
191
191
|
key: "_failed",
|
|
192
192
|
value: function(e, i, s) {
|
|
193
|
-
|
|
193
|
+
_.debug("OPTIONS failed"), this._close(), _.debug('emit "failed"'), this.emit("failed", {
|
|
194
194
|
originator: e,
|
|
195
195
|
response: i || null,
|
|
196
196
|
cause: s
|
|
@@ -199,7 +199,7 @@ function X() {
|
|
|
199
199
|
}, {
|
|
200
200
|
key: "_succeeded",
|
|
201
201
|
value: function(e, i) {
|
|
202
|
-
|
|
202
|
+
_.debug("OPTIONS succeeded"), this._close(), _.debug('emit "succeeded"'), this.emit("succeeded", {
|
|
203
203
|
originator: e,
|
|
204
204
|
response: i
|
|
205
205
|
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __module as _ } from "../../../../commonjs-virtual-dir/DTMF.js";
|
|
2
|
-
import
|
|
2
|
+
import F from "events";
|
|
3
3
|
import { __require as N } from "../Logger.js";
|
|
4
4
|
import { __require as P } from "../Constants.js";
|
|
5
5
|
import { __require as x } from "../Exceptions.js";
|
|
6
6
|
import { __require as M } from "../Utils.js";
|
|
7
7
|
var m;
|
|
8
|
-
function
|
|
8
|
+
function $() {
|
|
9
9
|
if (m) return _.exports;
|
|
10
10
|
m = 1;
|
|
11
11
|
function a(r) {
|
|
@@ -74,7 +74,7 @@ function G() {
|
|
|
74
74
|
return n.__proto__ || Object.getPrototypeOf(n);
|
|
75
75
|
}, f(r);
|
|
76
76
|
}
|
|
77
|
-
var S = F
|
|
77
|
+
var S = F.EventEmitter, I = N(), w = P(), q = x(), h = M(), A = new I("RTCSession:DTMF"), y = {
|
|
78
78
|
MIN_DURATION: 70,
|
|
79
79
|
MAX_DURATION: 6e3,
|
|
80
80
|
DEFAULT_DURATION: 100,
|
|
@@ -171,5 +171,5 @@ function G() {
|
|
|
171
171
|
}(S), _.exports.C = y, _.exports;
|
|
172
172
|
}
|
|
173
173
|
export {
|
|
174
|
-
|
|
174
|
+
$ as __require
|
|
175
175
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import q from "events";
|
|
2
2
|
import { __require as P } from "../Constants.js";
|
|
3
3
|
import { __require as C } from "../Exceptions.js";
|
|
4
4
|
import { __require as x } from "../Utils.js";
|
|
@@ -37,8 +37,8 @@ function A() {
|
|
|
37
37
|
return o.__proto__ = n, o;
|
|
38
38
|
}, c(t, e);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
var e =
|
|
40
|
+
function b(t) {
|
|
41
|
+
var e = E();
|
|
42
42
|
return function() {
|
|
43
43
|
var o = u(t), n;
|
|
44
44
|
if (e) {
|
|
@@ -46,18 +46,18 @@ function A() {
|
|
|
46
46
|
n = Reflect.construct(o, arguments, f);
|
|
47
47
|
} else
|
|
48
48
|
n = o.apply(this, arguments);
|
|
49
|
-
return
|
|
49
|
+
return v(this, n);
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
return e && (s(e) === "object" || typeof e == "function") ? e :
|
|
52
|
+
function v(t, e) {
|
|
53
|
+
return e && (s(e) === "object" || typeof e == "function") ? e : T(t);
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function T(t) {
|
|
56
56
|
if (t === void 0)
|
|
57
57
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
58
58
|
return t;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function E() {
|
|
61
61
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
62
62
|
if (typeof Proxy == "function") return !0;
|
|
63
63
|
try {
|
|
@@ -72,10 +72,10 @@ function A() {
|
|
|
72
72
|
return r.__proto__ || Object.getPrototypeOf(r);
|
|
73
73
|
}, u(t);
|
|
74
74
|
}
|
|
75
|
-
var R =
|
|
75
|
+
var R = q.EventEmitter, S = P(), O = C(), w = x();
|
|
76
76
|
return l = /* @__PURE__ */ function(t) {
|
|
77
77
|
d(r, t);
|
|
78
|
-
var e =
|
|
78
|
+
var e = b(r);
|
|
79
79
|
function r(o) {
|
|
80
80
|
var n;
|
|
81
81
|
return h(this, r), n = e.call(this), n._session = o, n._direction = null, n._contentType = null, n._body = null, n;
|
|
@@ -83,13 +83,13 @@ function A() {
|
|
|
83
83
|
return g(r, [{
|
|
84
84
|
key: "send",
|
|
85
85
|
value: function(n, f) {
|
|
86
|
-
var i = this,
|
|
86
|
+
var i = this, I = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
87
87
|
if (this._direction = "outgoing", n === void 0)
|
|
88
88
|
throw new TypeError("Not enough arguments");
|
|
89
89
|
if (this._session.status !== this._session.C.STATUS_CONFIRMED && this._session.status !== this._session.C.STATUS_WAITING_FOR_ACK)
|
|
90
90
|
throw new O.InvalidStateError(this._session.status);
|
|
91
91
|
this._contentType = n, this._body = f;
|
|
92
|
-
var p = w.cloneArray(
|
|
92
|
+
var p = w.cloneArray(I.extraHeaders);
|
|
93
93
|
p.push("Content-Type: ".concat(n)), this._session.newInfo({
|
|
94
94
|
originator: "local",
|
|
95
95
|
info: this,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import x from "events";
|
|
2
2
|
import { __require as D } from "../Logger.js";
|
|
3
3
|
import { __require as H } from "../Constants.js";
|
|
4
4
|
import { __require as L } from "../Grammar.js";
|
|
5
5
|
import { __require as U } from "../Utils.js";
|
|
6
|
-
var h,
|
|
6
|
+
var h, g;
|
|
7
7
|
function B() {
|
|
8
|
-
if (
|
|
9
|
-
|
|
8
|
+
if (g) return h;
|
|
9
|
+
g = 1;
|
|
10
10
|
function _(t) {
|
|
11
11
|
"@babel/helpers - typeof";
|
|
12
12
|
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? _ = function(n) {
|
|
@@ -15,7 +15,7 @@ function B() {
|
|
|
15
15
|
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
16
16
|
}, _(t);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function v(t, e) {
|
|
19
19
|
if (!(t instanceof e))
|
|
20
20
|
throw new TypeError("Cannot call a class as a function");
|
|
21
21
|
}
|
|
@@ -73,13 +73,13 @@ function B() {
|
|
|
73
73
|
return n.__proto__ || Object.getPrototypeOf(n);
|
|
74
74
|
}, p(t);
|
|
75
75
|
}
|
|
76
|
-
var F = x
|
|
76
|
+
var F = x.EventEmitter, k = D(), f = H(), N = L(), R = U(), s = new k("RTCSession:ReferSubscriber");
|
|
77
77
|
return h = /* @__PURE__ */ function(t) {
|
|
78
78
|
S(n, t);
|
|
79
79
|
var e = O(n);
|
|
80
80
|
function n(o) {
|
|
81
81
|
var r;
|
|
82
|
-
return
|
|
82
|
+
return v(this, n), r = e.call(this), r._id = null, r._session = o, r;
|
|
83
83
|
}
|
|
84
84
|
return E(n, [{
|
|
85
85
|
key: "sendRefer",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import fe from "events";
|
|
2
2
|
import { __require as he } from "../../sdp-transform/lib/index.js";
|
|
3
3
|
import { __require as Te } from "./Logger.js";
|
|
4
4
|
import { __require as me } from "./Constants.js";
|
|
@@ -130,7 +130,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
130
130
|
return m.__proto__ || Object.getPrototypeOf(m);
|
|
131
131
|
}, D(T);
|
|
132
132
|
}
|
|
133
|
-
var se = fe
|
|
133
|
+
var se = fe.EventEmitter, j = he(), oe = Te(), d = me(), I = pe(), V = ve(), g = ge(), b = Se(), ae = Ee(), N = Re(), ce = ye(), y = Ae(), K = Ie(), ue = Ce(), de = be(), X = we(), s = new oe("RTCSession"), a = {
|
|
134
134
|
// RTCSession states.
|
|
135
135
|
STATUS_NULL: 0,
|
|
136
136
|
STATUS_INVITE_SENT: 1,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import w from "events";
|
|
2
2
|
import { __require as K } from "./Logger.js";
|
|
3
3
|
import { __require as V } from "./Constants.js";
|
|
4
4
|
import { __require as x } from "./SIPMessage.js";
|
|
5
5
|
import { __require as B } from "./Timers.js";
|
|
6
6
|
var g, P;
|
|
7
|
-
function
|
|
7
|
+
function $() {
|
|
8
8
|
if (P) return g;
|
|
9
9
|
P = 1;
|
|
10
10
|
function C(c) {
|
|
@@ -38,7 +38,7 @@ function Q() {
|
|
|
38
38
|
return t.__proto__ = r, t;
|
|
39
39
|
}, m(c, a);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function d(c) {
|
|
42
42
|
var a = D();
|
|
43
43
|
return function() {
|
|
44
44
|
var t = p(c), r;
|
|
@@ -73,7 +73,7 @@ function Q() {
|
|
|
73
73
|
return n.__proto__ || Object.getPrototypeOf(n);
|
|
74
74
|
}, p(c);
|
|
75
75
|
}
|
|
76
|
-
var
|
|
76
|
+
var v = w.EventEmitter, E = K(), S = V(), R = x(), h = B(), y = new E("NonInviteClientTransaction"), I = new E("InviteClientTransaction"), k = new E("AckClientTransaction"), N = new E("NonInviteServerTransaction"), A = new E("InviteServerTransaction"), e = {
|
|
77
77
|
// Transaction states.
|
|
78
78
|
STATUS_TRYING: 1,
|
|
79
79
|
STATUS_PROCEEDING: 2,
|
|
@@ -89,7 +89,7 @@ function Q() {
|
|
|
89
89
|
INVITE_SERVER: "ist"
|
|
90
90
|
}, O = /* @__PURE__ */ function(c) {
|
|
91
91
|
_(n, c);
|
|
92
|
-
var a =
|
|
92
|
+
var a = d(n);
|
|
93
93
|
function n(t, r, o, i) {
|
|
94
94
|
var s;
|
|
95
95
|
f(this, n), s = a.call(this), s.type = e.NON_INVITE_CLIENT, s.id = "z9hG4bK".concat(Math.floor(Math.random() * 1e7)), s.ua = t, s.transport = r, s.request = o, s.eventHandlers = i;
|
|
@@ -153,9 +153,9 @@ function Q() {
|
|
|
153
153
|
return e;
|
|
154
154
|
}
|
|
155
155
|
}]), n;
|
|
156
|
-
}(
|
|
156
|
+
}(v), M = /* @__PURE__ */ function(c) {
|
|
157
157
|
_(n, c);
|
|
158
|
-
var a =
|
|
158
|
+
var a = d(n);
|
|
159
159
|
function n(t, r, o, i) {
|
|
160
160
|
var s;
|
|
161
161
|
f(this, n), s = a.call(this), s.type = e.INVITE_CLIENT, s.id = "z9hG4bK".concat(Math.floor(Math.random() * 1e7)), s.ua = t, s.transport = r, s.request = o, s.eventHandlers = i, o.transaction = u(s);
|
|
@@ -263,9 +263,9 @@ function Q() {
|
|
|
263
263
|
return e;
|
|
264
264
|
}
|
|
265
265
|
}]), n;
|
|
266
|
-
}(
|
|
266
|
+
}(v), H = /* @__PURE__ */ function(c) {
|
|
267
267
|
_(n, c);
|
|
268
|
-
var a =
|
|
268
|
+
var a = d(n);
|
|
269
269
|
function n(t, r, o, i) {
|
|
270
270
|
var s;
|
|
271
271
|
f(this, n), s = a.call(this), s.id = "z9hG4bK".concat(Math.floor(Math.random() * 1e7)), s.transport = r, s.request = o, s.eventHandlers = i;
|
|
@@ -288,9 +288,9 @@ function Q() {
|
|
|
288
288
|
return e;
|
|
289
289
|
}
|
|
290
290
|
}]), n;
|
|
291
|
-
}(
|
|
291
|
+
}(v), L = /* @__PURE__ */ function(c) {
|
|
292
292
|
_(n, c);
|
|
293
|
-
var a =
|
|
293
|
+
var a = d(n);
|
|
294
294
|
function n(t, r, o) {
|
|
295
295
|
var i;
|
|
296
296
|
return f(this, n), i = a.call(this), i.type = e.NON_INVITE_SERVER, i.id = o.via_branch, i.ua = t, i.transport = r, i.request = o, i.last_response = "", o.server_transaction = u(i), i.state = e.STATUS_TRYING, t.newTransaction(u(i)), i;
|
|
@@ -341,9 +341,9 @@ function Q() {
|
|
|
341
341
|
return e;
|
|
342
342
|
}
|
|
343
343
|
}]), n;
|
|
344
|
-
}(
|
|
344
|
+
}(v), G = /* @__PURE__ */ function(c) {
|
|
345
345
|
_(n, c);
|
|
346
|
-
var a =
|
|
346
|
+
var a = d(n);
|
|
347
347
|
function n(t, r, o) {
|
|
348
348
|
var i;
|
|
349
349
|
return f(this, n), i = a.call(this), i.type = e.INVITE_SERVER, i.id = o.via_branch, i.ua = t, i.transport = r, i.request = o, i.last_response = "", o.server_transaction = u(i), i.state = e.STATUS_PROCEEDING, t.newTransaction(u(i)), i.resendProvisionalTimer = null, o.reply(100), i;
|
|
@@ -420,7 +420,7 @@ function Q() {
|
|
|
420
420
|
return e;
|
|
421
421
|
}
|
|
422
422
|
}]), n;
|
|
423
|
-
}(
|
|
423
|
+
}(v);
|
|
424
424
|
function q(c, a) {
|
|
425
425
|
var n = c._transactions, t;
|
|
426
426
|
switch (a.method) {
|
|
@@ -477,5 +477,5 @@ function Q() {
|
|
|
477
477
|
}, g;
|
|
478
478
|
}
|
|
479
479
|
export {
|
|
480
|
-
|
|
480
|
+
$ as __require
|
|
481
481
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { __require as
|
|
3
|
-
import { __require as
|
|
4
|
-
import { __require as
|
|
1
|
+
import $ from "events";
|
|
2
|
+
import { __require as Q } from "./Logger.js";
|
|
3
|
+
import { __require as X } from "./Constants.js";
|
|
4
|
+
import { __require as Z } from "./Registrator.js";
|
|
5
5
|
import { __require as tt } from "./RTCSession.js";
|
|
6
6
|
import { __require as et } from "./Message.js";
|
|
7
7
|
import { __require as it } from "./Options.js";
|
|
@@ -84,7 +84,7 @@ function Ct() {
|
|
|
84
84
|
return n.__proto__ || Object.getPrototypeOf(n);
|
|
85
85
|
}, y(r);
|
|
86
86
|
}
|
|
87
|
-
var M =
|
|
87
|
+
var M = $.EventEmitter, x = Q(), f = X(), L = Z(), E = tt(), C = et(), A = it(), T = nt(), Y = rt(), v = st(), q = ot(), F = at(), K = ut(), S = ct(), V = _t(), b = ft(), o = new x("UA"), l = {
|
|
88
88
|
// UA status codes.
|
|
89
89
|
STATUS_INIT: 0,
|
|
90
90
|
STATUS_READY: 1,
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { DOCUMENT_MODE as l } from "./html.js";
|
|
2
|
+
const s = "html", n = "about:legacy-compat", h = "http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd", r = [
|
|
3
|
+
"+//silmaril//dtd html pro v0r11 19970101//",
|
|
4
|
+
"-//as//dtd html 3.0 aswedit + extensions//",
|
|
5
|
+
"-//advasoft ltd//dtd html 3.0 aswedit + extensions//",
|
|
6
|
+
"-//ietf//dtd html 2.0 level 1//",
|
|
7
|
+
"-//ietf//dtd html 2.0 level 2//",
|
|
8
|
+
"-//ietf//dtd html 2.0 strict level 1//",
|
|
9
|
+
"-//ietf//dtd html 2.0 strict level 2//",
|
|
10
|
+
"-//ietf//dtd html 2.0 strict//",
|
|
11
|
+
"-//ietf//dtd html 2.0//",
|
|
12
|
+
"-//ietf//dtd html 2.1e//",
|
|
13
|
+
"-//ietf//dtd html 3.0//",
|
|
14
|
+
"-//ietf//dtd html 3.2 final//",
|
|
15
|
+
"-//ietf//dtd html 3.2//",
|
|
16
|
+
"-//ietf//dtd html 3//",
|
|
17
|
+
"-//ietf//dtd html level 0//",
|
|
18
|
+
"-//ietf//dtd html level 1//",
|
|
19
|
+
"-//ietf//dtd html level 2//",
|
|
20
|
+
"-//ietf//dtd html level 3//",
|
|
21
|
+
"-//ietf//dtd html strict level 0//",
|
|
22
|
+
"-//ietf//dtd html strict level 1//",
|
|
23
|
+
"-//ietf//dtd html strict level 2//",
|
|
24
|
+
"-//ietf//dtd html strict level 3//",
|
|
25
|
+
"-//ietf//dtd html strict//",
|
|
26
|
+
"-//ietf//dtd html//",
|
|
27
|
+
"-//metrius//dtd metrius presentational//",
|
|
28
|
+
"-//microsoft//dtd internet explorer 2.0 html strict//",
|
|
29
|
+
"-//microsoft//dtd internet explorer 2.0 html//",
|
|
30
|
+
"-//microsoft//dtd internet explorer 2.0 tables//",
|
|
31
|
+
"-//microsoft//dtd internet explorer 3.0 html strict//",
|
|
32
|
+
"-//microsoft//dtd internet explorer 3.0 html//",
|
|
33
|
+
"-//microsoft//dtd internet explorer 3.0 tables//",
|
|
34
|
+
"-//netscape comm. corp.//dtd html//",
|
|
35
|
+
"-//netscape comm. corp.//dtd strict html//",
|
|
36
|
+
"-//o'reilly and associates//dtd html 2.0//",
|
|
37
|
+
"-//o'reilly and associates//dtd html extended 1.0//",
|
|
38
|
+
"-//o'reilly and associates//dtd html extended relaxed 1.0//",
|
|
39
|
+
"-//sq//dtd html 2.0 hotmetal + extensions//",
|
|
40
|
+
"-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//",
|
|
41
|
+
"-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//",
|
|
42
|
+
"-//spyglass//dtd html 2.0 extended//",
|
|
43
|
+
"-//sun microsystems corp.//dtd hotjava html//",
|
|
44
|
+
"-//sun microsystems corp.//dtd hotjava strict html//",
|
|
45
|
+
"-//w3c//dtd html 3 1995-03-24//",
|
|
46
|
+
"-//w3c//dtd html 3.2 draft//",
|
|
47
|
+
"-//w3c//dtd html 3.2 final//",
|
|
48
|
+
"-//w3c//dtd html 3.2//",
|
|
49
|
+
"-//w3c//dtd html 3.2s draft//",
|
|
50
|
+
"-//w3c//dtd html 4.0 frameset//",
|
|
51
|
+
"-//w3c//dtd html 4.0 transitional//",
|
|
52
|
+
"-//w3c//dtd html experimental 19960712//",
|
|
53
|
+
"-//w3c//dtd html experimental 970421//",
|
|
54
|
+
"-//w3c//dtd w3 html//",
|
|
55
|
+
"-//w3o//dtd w3 html 3.0//",
|
|
56
|
+
"-//webtechs//dtd mozilla html 2.0//",
|
|
57
|
+
"-//webtechs//dtd mozilla html//"
|
|
58
|
+
], a = [
|
|
59
|
+
...r,
|
|
60
|
+
"-//w3c//dtd html 4.01 frameset//",
|
|
61
|
+
"-//w3c//dtd html 4.01 transitional//"
|
|
62
|
+
], c = /* @__PURE__ */ new Set([
|
|
63
|
+
"-//w3o//dtd w3 html strict 3.0//en//",
|
|
64
|
+
"-/w3c/dtd html 4.0 transitional/en",
|
|
65
|
+
"html"
|
|
66
|
+
]), o = ["-//w3c//dtd xhtml 1.0 frameset//", "-//w3c//dtd xhtml 1.0 transitional//"], f = [
|
|
67
|
+
...o,
|
|
68
|
+
"-//w3c//dtd html 4.01 frameset//",
|
|
69
|
+
"-//w3c//dtd html 4.01 transitional//"
|
|
70
|
+
];
|
|
71
|
+
function i(t, d) {
|
|
72
|
+
return d.some((e) => t.startsWith(e));
|
|
73
|
+
}
|
|
74
|
+
function _(t) {
|
|
75
|
+
return t.name === s && t.publicId === null && (t.systemId === null || t.systemId === n);
|
|
76
|
+
}
|
|
77
|
+
function w(t) {
|
|
78
|
+
if (t.name !== s)
|
|
79
|
+
return l.QUIRKS;
|
|
80
|
+
const { systemId: d } = t;
|
|
81
|
+
if (d && d.toLowerCase() === h)
|
|
82
|
+
return l.QUIRKS;
|
|
83
|
+
let { publicId: e } = t;
|
|
84
|
+
if (e !== null) {
|
|
85
|
+
if (e = e.toLowerCase(), c.has(e))
|
|
86
|
+
return l.QUIRKS;
|
|
87
|
+
let m = d === null ? a : r;
|
|
88
|
+
if (i(e, m))
|
|
89
|
+
return l.QUIRKS;
|
|
90
|
+
if (m = d === null ? o : f, i(e, m))
|
|
91
|
+
return l.LIMITED_QUIRKS;
|
|
92
|
+
}
|
|
93
|
+
return l.NO_QUIRKS;
|
|
94
|
+
}
|
|
95
|
+
export {
|
|
96
|
+
w as getDocumentMode,
|
|
97
|
+
_ as isConforming
|
|
98
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var t;
|
|
2
|
+
(function(e) {
|
|
3
|
+
e.controlCharacterInInputStream = "control-character-in-input-stream", e.noncharacterInInputStream = "noncharacter-in-input-stream", e.surrogateInInputStream = "surrogate-in-input-stream", e.nonVoidHtmlElementStartTagWithTrailingSolidus = "non-void-html-element-start-tag-with-trailing-solidus", e.endTagWithAttributes = "end-tag-with-attributes", e.endTagWithTrailingSolidus = "end-tag-with-trailing-solidus", e.unexpectedSolidusInTag = "unexpected-solidus-in-tag", e.unexpectedNullCharacter = "unexpected-null-character", e.unexpectedQuestionMarkInsteadOfTagName = "unexpected-question-mark-instead-of-tag-name", e.invalidFirstCharacterOfTagName = "invalid-first-character-of-tag-name", e.unexpectedEqualsSignBeforeAttributeName = "unexpected-equals-sign-before-attribute-name", e.missingEndTagName = "missing-end-tag-name", e.unexpectedCharacterInAttributeName = "unexpected-character-in-attribute-name", e.unknownNamedCharacterReference = "unknown-named-character-reference", e.missingSemicolonAfterCharacterReference = "missing-semicolon-after-character-reference", e.unexpectedCharacterAfterDoctypeSystemIdentifier = "unexpected-character-after-doctype-system-identifier", e.unexpectedCharacterInUnquotedAttributeValue = "unexpected-character-in-unquoted-attribute-value", e.eofBeforeTagName = "eof-before-tag-name", e.eofInTag = "eof-in-tag", e.missingAttributeValue = "missing-attribute-value", e.missingWhitespaceBetweenAttributes = "missing-whitespace-between-attributes", e.missingWhitespaceAfterDoctypePublicKeyword = "missing-whitespace-after-doctype-public-keyword", e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers = "missing-whitespace-between-doctype-public-and-system-identifiers", e.missingWhitespaceAfterDoctypeSystemKeyword = "missing-whitespace-after-doctype-system-keyword", e.missingQuoteBeforeDoctypePublicIdentifier = "missing-quote-before-doctype-public-identifier", e.missingQuoteBeforeDoctypeSystemIdentifier = "missing-quote-before-doctype-system-identifier", e.missingDoctypePublicIdentifier = "missing-doctype-public-identifier", e.missingDoctypeSystemIdentifier = "missing-doctype-system-identifier", e.abruptDoctypePublicIdentifier = "abrupt-doctype-public-identifier", e.abruptDoctypeSystemIdentifier = "abrupt-doctype-system-identifier", e.cdataInHtmlContent = "cdata-in-html-content", e.incorrectlyOpenedComment = "incorrectly-opened-comment", e.eofInScriptHtmlCommentLikeText = "eof-in-script-html-comment-like-text", e.eofInDoctype = "eof-in-doctype", e.nestedComment = "nested-comment", e.abruptClosingOfEmptyComment = "abrupt-closing-of-empty-comment", e.eofInComment = "eof-in-comment", e.incorrectlyClosedComment = "incorrectly-closed-comment", e.eofInCdata = "eof-in-cdata", e.absenceOfDigitsInNumericCharacterReference = "absence-of-digits-in-numeric-character-reference", e.nullCharacterReference = "null-character-reference", e.surrogateCharacterReference = "surrogate-character-reference", e.characterReferenceOutsideUnicodeRange = "character-reference-outside-unicode-range", e.controlCharacterReference = "control-character-reference", e.noncharacterCharacterReference = "noncharacter-character-reference", e.missingWhitespaceBeforeDoctypeName = "missing-whitespace-before-doctype-name", e.missingDoctypeName = "missing-doctype-name", e.invalidCharacterSequenceAfterDoctypeName = "invalid-character-sequence-after-doctype-name", e.duplicateAttribute = "duplicate-attribute", e.nonConformingDoctype = "non-conforming-doctype", e.missingDoctype = "missing-doctype", e.misplacedDoctype = "misplaced-doctype", e.endTagWithoutMatchingOpenElement = "end-tag-without-matching-open-element", e.closingOfElementWithOpenChildElements = "closing-of-element-with-open-child-elements", e.disallowedContentInNoscriptInHead = "disallowed-content-in-noscript-in-head", e.openElementsLeftAfterEof = "open-elements-left-after-eof", e.abandonedHeadElementChild = "abandoned-head-element-child", e.misplacedStartTagForHeadElement = "misplaced-start-tag-for-head-element", e.nestedNoscriptInHead = "nested-noscript-in-head", e.eofInElementThatCanContainOnlyText = "eof-in-element-that-can-contain-only-text";
|
|
4
|
+
})(t || (t = {}));
|
|
5
|
+
export {
|
|
6
|
+
t as ERR
|
|
7
|
+
};
|