@rtsee/core 0.0.43 → 0.0.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist/interfaces/{VideoChat.d.ts → Conference.d.ts} +2 -2
  2. package/dist/interfaces/Conference.d.ts.map +1 -0
  3. package/dist/interfaces/{Handshake.js → Conference.js} +1 -1
  4. package/dist/interfaces/Conference.js.map +1 -0
  5. package/dist/interfaces/index.d.ts +2 -6
  6. package/dist/interfaces/index.d.ts.map +1 -1
  7. package/dist/interfaces/index.js +2 -6
  8. package/dist/interfaces/index.js.map +1 -1
  9. package/dist/models/RTSeeCore.d.ts +1 -0
  10. package/dist/models/RTSeeCore.d.ts.map +1 -1
  11. package/dist/models/RTSeeCore.js +8 -0
  12. package/dist/models/RTSeeCore.js.map +1 -1
  13. package/dist/models/index.d.ts +0 -3
  14. package/dist/models/index.d.ts.map +1 -1
  15. package/dist/models/index.js +0 -3
  16. package/dist/models/index.js.map +1 -1
  17. package/package.json +3 -4
  18. package/dist/interfaces/DisplayMedia.d.ts +0 -7
  19. package/dist/interfaces/DisplayMedia.d.ts.map +0 -1
  20. package/dist/interfaces/DisplayMedia.js +0 -3
  21. package/dist/interfaces/DisplayMedia.js.map +0 -1
  22. package/dist/interfaces/Handshake.d.ts +0 -31
  23. package/dist/interfaces/Handshake.d.ts.map +0 -1
  24. package/dist/interfaces/Handshake.js.map +0 -1
  25. package/dist/interfaces/PeerMessage.d.ts +0 -23
  26. package/dist/interfaces/PeerMessage.d.ts.map +0 -1
  27. package/dist/interfaces/PeerMessage.js +0 -3
  28. package/dist/interfaces/PeerMessage.js.map +0 -1
  29. package/dist/interfaces/RTSeeUiControlsOptions.d.ts +0 -4
  30. package/dist/interfaces/RTSeeUiControlsOptions.d.ts.map +0 -1
  31. package/dist/interfaces/RTSeeUiControlsOptions.js +0 -3
  32. package/dist/interfaces/RTSeeUiControlsOptions.js.map +0 -1
  33. package/dist/interfaces/RTSeeVideoChatOptions.d.ts +0 -12
  34. package/dist/interfaces/RTSeeVideoChatOptions.d.ts.map +0 -1
  35. package/dist/interfaces/RTSeeVideoChatOptions.js +0 -3
  36. package/dist/interfaces/RTSeeVideoChatOptions.js.map +0 -1
  37. package/dist/interfaces/RTSeeVideoChatSignalingClient.d.ts +0 -11
  38. package/dist/interfaces/RTSeeVideoChatSignalingClient.d.ts.map +0 -1
  39. package/dist/interfaces/RTSeeVideoChatSignalingClient.js +0 -3
  40. package/dist/interfaces/RTSeeVideoChatSignalingClient.js.map +0 -1
  41. package/dist/interfaces/SoundMeterOptions.d.ts +0 -4
  42. package/dist/interfaces/SoundMeterOptions.d.ts.map +0 -1
  43. package/dist/interfaces/SoundMeterOptions.js +0 -3
  44. package/dist/interfaces/SoundMeterOptions.js.map +0 -1
  45. package/dist/interfaces/VideoChat.d.ts.map +0 -1
  46. package/dist/interfaces/VideoChat.js +0 -3
  47. package/dist/interfaces/VideoChat.js.map +0 -1
  48. package/dist/models/RTSeePeerConnection.d.ts +0 -46
  49. package/dist/models/RTSeePeerConnection.d.ts.map +0 -1
  50. package/dist/models/RTSeePeerConnection.js +0 -131
  51. package/dist/models/RTSeePeerConnection.js.map +0 -1
  52. package/dist/models/RTSeePeerConnectionsList.d.ts +0 -21
  53. package/dist/models/RTSeePeerConnectionsList.d.ts.map +0 -1
  54. package/dist/models/RTSeePeerConnectionsList.js +0 -106
  55. package/dist/models/RTSeePeerConnectionsList.js.map +0 -1
  56. package/dist/models/RTSeeUiControls.d.ts +0 -9
  57. package/dist/models/RTSeeUiControls.d.ts.map +0 -1
  58. package/dist/models/RTSeeUiControls.js +0 -25
  59. package/dist/models/RTSeeUiControls.js.map +0 -1
  60. package/dist/models/RTSeeVideoChat.d.ts +0 -82
  61. package/dist/models/RTSeeVideoChat.d.ts.map +0 -1
  62. package/dist/models/RTSeeVideoChat.js +0 -608
  63. package/dist/models/RTSeeVideoChat.js.map +0 -1
  64. package/dist/models/SoundMeter.d.ts +0 -18
  65. package/dist/models/SoundMeter.d.ts.map +0 -1
  66. package/dist/models/SoundMeter.js +0 -61
  67. package/dist/models/SoundMeter.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { IPeer, IRTSeeCallOptions } from "@rtsee/core";
2
- export interface IRTSeeVideoChat {
2
+ export interface IRTSeeConference {
3
3
  call: (calleeId: string, callOptions?: IRTSeeCallOptions) => Promise<void>;
4
4
  connect: (roomId: string, data: IPeer) => Promise<boolean>;
5
5
  }
6
- //# sourceMappingURL=VideoChat.d.ts.map
6
+ //# sourceMappingURL=Conference.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Conference.d.ts","sourceRoot":"","sources":["../../src/interfaces/Conference.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3E,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAC5D"}
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=Handshake.js.map
3
+ //# sourceMappingURL=Conference.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Conference.js","sourceRoot":"","sources":["../../src/interfaces/Conference.ts"],"names":[],"mappings":""}
@@ -1,8 +1,3 @@
1
- export * from "./Events";
2
- export * from "./PeerMessage";
3
- export * from "./RTSeeVideoChatOptions";
4
- export * from "./RTSeeVideoChatSignalingClient";
5
- export * from "./Handshake";
6
1
  export * from "./Peer";
7
2
  export * from "./RTSeeSignalingClientBase";
8
3
  export * from "./SocketPeer";
@@ -11,6 +6,7 @@ export * from "./RTSeeElements";
11
6
  export * from "./WSMessageInterface";
12
7
  export * from "./RTSeeClientSocketConnection";
13
8
  export * from "./Call";
14
- export * from "./VideoChat";
9
+ export * from "./Conference";
15
10
  export * from "./Messenger";
11
+ export * from "./Events";
16
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC"}
@@ -10,11 +10,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
10
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
- __exportStar(require("./Events"), exports);
14
- __exportStar(require("./PeerMessage"), exports);
15
- __exportStar(require("./RTSeeVideoChatOptions"), exports);
16
- __exportStar(require("./RTSeeVideoChatSignalingClient"), exports);
17
- __exportStar(require("./Handshake"), exports);
18
13
  __exportStar(require("./Peer"), exports);
19
14
  __exportStar(require("./RTSeeSignalingClientBase"), exports);
20
15
  __exportStar(require("./SocketPeer"), exports);
@@ -23,6 +18,7 @@ __exportStar(require("./RTSeeElements"), exports);
23
18
  __exportStar(require("./WSMessageInterface"), exports);
24
19
  __exportStar(require("./RTSeeClientSocketConnection"), exports);
25
20
  __exportStar(require("./Call"), exports);
26
- __exportStar(require("./VideoChat"), exports);
21
+ __exportStar(require("./Conference"), exports);
27
22
  __exportStar(require("./Messenger"), exports);
23
+ __exportStar(require("./Events"), exports);
28
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAyB;AACzB,gDAA8B;AAC9B,0DAAwC;AACxC,kEAAgD;AAChD,8CAA4B;AAC5B,yCAAuB;AACvB,6DAA2C;AAC3C,+CAA6B;AAC7B,qDAAmC;AACnC,kDAAgC;AAChC,uDAAqC;AACrC,gEAA8C;AAC9C,yCAAuB;AACvB,8CAA4B;AAC5B,8CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAuB;AACvB,6DAA2C;AAC3C,+CAA6B;AAC7B,qDAAmC;AACnC,kDAAgC;AAChC,uDAAqC;AACrC,gEAA8C;AAC9C,yCAAuB;AACvB,+CAA6B;AAC7B,8CAA4B;AAC5B,2CAAyB"}
@@ -10,5 +10,6 @@ export declare abstract class RTSeeCore extends EventEmitter {
10
10
  abstract onReady(peer: IPeer): void;
11
11
  attachSignalingClient(options: IRTSeeCoreOptions): void;
12
12
  private onPeerResolve;
13
+ static uuidv4(): string;
13
14
  }
14
15
  //# sourceMappingURL=RTSeeCore.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RTSeeCore.d.ts","sourceRoot":"","sources":["../../src/models/RTSeeCore.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EACL,KAAK,EACL,iBAAiB,EACjB,yBAAyB,EAC1B,MAAM,aAAa,CAAC;AAErB,8BAAsB,SAAU,SAAQ,YAAY;IAClD,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,KAAK,CAAC;IACd,eAAe,EAAE,yBAAyB,CAAC;IAC3C,OAAO,UAAS;IAEhB,SAAS,aAAa,OAAO,EAAE,iBAAiB;IAMhD,QAAQ,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,GAAG,IAAI;IAEnC,qBAAqB,CAAC,OAAO,EAAE,iBAAiB;IAWhD,OAAO,CAAC,aAAa;CAMtB"}
1
+ {"version":3,"file":"RTSeeCore.d.ts","sourceRoot":"","sources":["../../src/models/RTSeeCore.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EACL,KAAK,EACL,iBAAiB,EACjB,yBAAyB,EAC1B,MAAM,aAAa,CAAC;AAErB,8BAAsB,SAAU,SAAQ,YAAY;IAClD,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,KAAK,CAAC;IACd,eAAe,EAAE,yBAAyB,CAAC;IAC3C,OAAO,UAAS;IAEhB,SAAS,aAAa,OAAO,EAAE,iBAAiB;IAMhD,QAAQ,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,GAAG,IAAI;IAEnC,qBAAqB,CAAC,OAAO,EAAE,iBAAiB;IAWhD,OAAO,CAAC,aAAa;IAQrB,MAAM,CAAC,MAAM,IAAI,MAAM;CAYxB"}
@@ -42,6 +42,14 @@ var RTSeeCore = /** @class */ (function (_super) {
42
42
  this.isReady = true;
43
43
  this.onReady(peer);
44
44
  };
45
+ /* eslint-disable */
46
+ RTSeeCore.uuidv4 = function () {
47
+ // @ts-ignore
48
+ return ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, function (c) {
49
+ return (c ^
50
+ (crypto.getRandomValues(new Uint8Array(1))[0] & (15 >> (c / 4)))).toString(16);
51
+ });
52
+ };
45
53
  return RTSeeCore;
46
54
  }(events_1.EventEmitter));
47
55
  exports.RTSeeCore = RTSeeCore;
@@ -1 +1 @@
1
- {"version":3,"file":"RTSeeCore.js","sourceRoot":"","sources":["../../src/models/RTSeeCore.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,iCAAsC;AAOtC;IAAwC,6BAAY;IAMlD,mBAAsB,OAA0B;QAAhD,YACE,iBAAO,SAGR;QAND,aAAO,GAAG,KAAK,CAAC;QAKd,KAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;;IACtC,CAAC;IAID,yCAAqB,GAArB,UAAsB,OAA0B;QAAhD,iBASC;QARC,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE;YAC5B,OAAO;SACR;QACD,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;QAC/C,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACtC,KAAK,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC,UAAC,IAAI;YAC3D,OAAA,KAAI,CAAC,aAAa,CAAC,IAAI,CAAC;QAAxB,CAAwB,CACzB,CAAC;IACJ,CAAC;IAEO,iCAAa,GAArB,UAAsB,IAAW;QAC/B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QACpB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACrB,CAAC;IACH,gBAAC;AAAD,CAAC,AA/BD,CAAwC,qBAAY,GA+BnD;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,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CACjE,CAAC,QAAQ,CAAC,EAAE,CAAC;QAHd,CAGc,CACjB,CAAC;IACJ,CAAC;IAEH,gBAAC;AAAD,CAAC,AA7CD,CAAwC,qBAAY,GA6CnD;AA7CqB,8BAAS"}
@@ -1,5 +1,2 @@
1
- export * from "./RTSeeVideoChat";
2
- export * from "./RTSeePeerConnection";
3
- export * from "./RTSeePeerConnectionsList";
4
1
  export * from "./RTSeeCore";
5
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
@@ -10,8 +10,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
10
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
- __exportStar(require("./RTSeeVideoChat"), exports);
14
- __exportStar(require("./RTSeePeerConnection"), exports);
15
- __exportStar(require("./RTSeePeerConnectionsList"), exports);
16
13
  __exportStar(require("./RTSeeCore"), exports);
17
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAiC;AACjC,wDAAsC;AACtC,6DAA2C;AAC3C,8CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA4B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtsee/core",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "license": "ISC",
5
5
  "private": false,
6
6
  "main": "dist/index",
@@ -39,11 +39,10 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@types/events": "^3.0.0",
42
- "events": "^3.3.0",
43
- "webrtc-adapter": "^8.1.2"
42
+ "events": "^3.3.0"
44
43
  },
45
44
  "publishConfig": {
46
45
  "access": "public"
47
46
  },
48
- "gitHead": "512563bc0a2684b78179ae75ac94c2ccec47f48f"
47
+ "gitHead": "2a84da854cb08d0d33c63cba15d7d66c773d36b1"
49
48
  }
@@ -1,7 +0,0 @@
1
- export interface IMediaDevicesWithDisplay extends MediaDevices {
2
- getDisplayMedia: () => Promise<MediaStream>;
3
- }
4
- export interface HTMLAudioWithDeviceSelection extends HTMLVideoElement {
5
- setSinkId: (deviceId: string) => Promise<void>;
6
- }
7
- //# sourceMappingURL=DisplayMedia.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DisplayMedia.d.ts","sourceRoot":"","sources":["../../src/interfaces/DisplayMedia.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAyB,SAAQ,YAAY;IAC5D,eAAe,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC;CAC7C;AAED,MAAM,WAAW,4BAA6B,SAAQ,gBAAgB;IACpE,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAChD"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=DisplayMedia.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DisplayMedia.js","sourceRoot":"","sources":["../../src/interfaces/DisplayMedia.ts"],"names":[],"mappings":""}
@@ -1,31 +0,0 @@
1
- import { IPeer } from "@rtsee/core";
2
- export interface IRemoteHandshakeEventData {
3
- clientId: string;
4
- }
5
- export interface ISdp {
6
- sdp: string;
7
- isScreenShare?: boolean;
8
- }
9
- export interface IRemoteAnswerData extends ISdp, IRemoteHandshakeEventData {
10
- }
11
- export interface IRemoteOfferData extends ISdp, IRemoteHandshakeEventData, IPeer {
12
- }
13
- export interface IRemoteIceData extends IRemoteHandshakeEventData, RTCIceCandidateInit {
14
- isScreenShare?: boolean;
15
- }
16
- export interface IRemoteDeviceStateChangeData extends IPeer {
17
- deviceOn: boolean;
18
- }
19
- export interface IRemoteHandshakeEvent {
20
- data: IRemoteHandshakeEventData;
21
- }
22
- export interface IRemoteIceCandidate {
23
- data: IRemoteIceData;
24
- }
25
- export interface IRemoteOffer extends IRemoteHandshakeEventData {
26
- data: IRemoteOfferData;
27
- }
28
- export interface IRemoteAnswer extends IRemoteHandshakeEventData {
29
- data: IRemoteAnswerData;
30
- }
31
- //# sourceMappingURL=Handshake.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Handshake.d.ts","sourceRoot":"","sources":["../../src/interfaces/Handshake.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,IAAI;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,iBAAkB,SAAQ,IAAI,EAAE,yBAAyB;CAAG;AAC7E,MAAM,WAAW,gBACf,SAAQ,IAAI,EACV,yBAAyB,EACzB,KAAK;CAAG;AACZ,MAAM,WAAW,cACf,SAAQ,yBAAyB,EAC/B,mBAAmB;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AACD,MAAM,WAAW,4BAA6B,SAAQ,KAAK;IACzD,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,yBAAyB,CAAC;CACjC;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,cAAc,CAAC;CACtB;AAED,MAAM,WAAW,YAAa,SAAQ,yBAAyB;IAC7D,IAAI,EAAE,gBAAgB,CAAC;CACxB;AAED,MAAM,WAAW,aAAc,SAAQ,yBAAyB;IAC9D,IAAI,EAAE,iBAAiB,CAAC;CACzB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Handshake.js","sourceRoot":"","sources":["../../src/interfaces/Handshake.ts"],"names":[],"mappings":""}
@@ -1,23 +0,0 @@
1
- import { RTSeeEvents } from "@rtsee/core";
2
- export interface IPeerMessage {
3
- name: RTSeeEvents;
4
- }
5
- export interface IAddresseesData {
6
- roomId?: string;
7
- from: string;
8
- to?: string;
9
- }
10
- export interface IPeerMessageData extends IAddresseesData {
11
- sdp: string;
12
- isScreenShare: boolean;
13
- }
14
- export interface IDeviceToggleData extends IAddresseesData {
15
- deviceOn: boolean;
16
- }
17
- export interface ISDPExchangeMessage extends IPeerMessage {
18
- data: IPeerMessageData;
19
- }
20
- export interface IDeviceStateChangedMessage extends IPeerMessage {
21
- data: IDeviceToggleData;
22
- }
23
- //# sourceMappingURL=PeerMessage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PeerMessage.d.ts","sourceRoot":"","sources":["../../src/interfaces/PeerMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,WAAW,CAAC;CAEnB;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,iBAAkB,SAAQ,eAAe;IACxD,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD,IAAI,EAAE,gBAAgB,CAAC;CACxB;AAED,MAAM,WAAW,0BAA2B,SAAQ,YAAY;IAC9D,IAAI,EAAE,iBAAiB,CAAC;CACzB"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=PeerMessage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PeerMessage.js","sourceRoot":"","sources":["../../src/interfaces/PeerMessage.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- export interface IRTSeeUiControlsOptions {
2
- isExpanded: boolean;
3
- }
4
- //# sourceMappingURL=RTSeeUiControlsOptions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RTSeeUiControlsOptions.d.ts","sourceRoot":"","sources":["../../src/interfaces/RTSeeUiControlsOptions.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,OAAO,CAAC;CACrB"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=RTSeeUiControlsOptions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RTSeeUiControlsOptions.js","sourceRoot":"","sources":["../../src/interfaces/RTSeeUiControlsOptions.ts"],"names":[],"mappings":""}
@@ -1,12 +0,0 @@
1
- import { IRTSeeUiControlsOptions } from "./RTSeeUiControlsOptions";
2
- import { IRTSeeCoreOptions, IRTSeeMessenger, IRTSeeVideoChatSignalingClient } from "@rtsee/core";
3
- export interface IRTSeeVideoChatOptions extends IRTSeeCoreOptions {
4
- roomId?: string;
5
- clientId?: string;
6
- constraints?: MediaStreamConstraints;
7
- rtcConfiguration?: RTCConfiguration;
8
- uiControls?: IRTSeeUiControlsOptions;
9
- signalingClient?: IRTSeeVideoChatSignalingClient;
10
- messengerClient?: IRTSeeMessenger;
11
- }
12
- //# sourceMappingURL=RTSeeVideoChatOptions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RTSeeVideoChatOptions.d.ts","sourceRoot":"","sources":["../../src/interfaces/RTSeeVideoChatOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,8BAA8B,EAC/B,MAAM,aAAa,CAAC;AAErB,MAAM,WAAW,sBAAuB,SAAQ,iBAAiB;IAC/D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,sBAAsB,CAAC;IACrC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,UAAU,CAAC,EAAE,uBAAuB,CAAC;IACrC,eAAe,CAAC,EAAE,8BAA8B,CAAC;IACjD,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=RTSeeVideoChatOptions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RTSeeVideoChatOptions.js","sourceRoot":"","sources":["../../src/interfaces/RTSeeVideoChatOptions.ts"],"names":[],"mappings":""}
@@ -1,11 +0,0 @@
1
- import { IPeer } from "./Peer";
2
- import { IRTSeeSignalingClientBase } from "./RTSeeSignalingClientBase";
3
- import { Socket } from "socket.io-client";
4
- export interface IJoinCallMessageData extends IPeer {
5
- roomId: string;
6
- }
7
- export interface IRTSeeVideoChatSignalingClient extends IRTSeeSignalingClientBase {
8
- joinCall: (roomId: string, data: IJoinCallMessageData) => void;
9
- socket?: Socket;
10
- }
11
- //# sourceMappingURL=RTSeeVideoChatSignalingClient.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RTSeeVideoChatSignalingClient.d.ts","sourceRoot":"","sources":["../../src/interfaces/RTSeeVideoChatSignalingClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,MAAM,WAAW,oBAAqB,SAAQ,KAAK;IACjD,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,8BACf,SAAQ,yBAAyB;IACjC,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAC/D,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=RTSeeVideoChatSignalingClient.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RTSeeVideoChatSignalingClient.js","sourceRoot":"","sources":["../../src/interfaces/RTSeeVideoChatSignalingClient.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- export interface ISoundMeterOptions {
2
- audioStream: MediaStream;
3
- }
4
- //# sourceMappingURL=SoundMeterOptions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SoundMeterOptions.d.ts","sourceRoot":"","sources":["../../src/interfaces/SoundMeterOptions.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,WAAW,CAAC;CAC1B"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=SoundMeterOptions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SoundMeterOptions.js","sourceRoot":"","sources":["../../src/interfaces/SoundMeterOptions.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"VideoChat.d.ts","sourceRoot":"","sources":["../../src/interfaces/VideoChat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3E,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAC5D"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=VideoChat.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VideoChat.js","sourceRoot":"","sources":["../../src/interfaces/VideoChat.ts"],"names":[],"mappings":""}
@@ -1,46 +0,0 @@
1
- /// <reference types="node" />
2
- import { EventEmitter } from "events";
3
- import { IPeerInfo } from "@rtsee/core";
4
- import { SoundMeter } from "./SoundMeter";
5
- export interface IRTSeePeerConnection extends IPeerInfo {
6
- clientId: string;
7
- connection: RTCPeerConnection;
8
- isScreenShare?: boolean;
9
- }
10
- export declare class RTSeePeerConnection extends EventEmitter {
11
- clientId: string;
12
- connection: RTCPeerConnection;
13
- localVideoTrack?: MediaStreamTrack;
14
- localAudioTrack?: MediaStreamTrack;
15
- remoteVideoStream?: MediaStream;
16
- remoteAudioStream?: MediaStream;
17
- sender?: RTCRtpSender;
18
- icePool: RTCIceCandidate[];
19
- name?: string;
20
- imageUrl?: string;
21
- url?: string;
22
- camera?: boolean;
23
- microphone?: boolean;
24
- soundMeter?: SoundMeter;
25
- isScreenShare?: boolean;
26
- audioOutputElement?: HTMLAudioElement;
27
- isActiveSpeaker?: boolean;
28
- constructor(options: IRTSeePeerConnection);
29
- init(options: IRTSeePeerConnection): void;
30
- attachConnectionEvents(): void;
31
- attachTrackEvents(track: MediaStreamTrack): void;
32
- emitOnTrackEvent(event: RTCTrackEvent): void;
33
- emitOnIceCandidateEvent(event: RTCPeerConnectionIceEvent): void;
34
- addLocalTracks(stream: MediaStream, config?: {
35
- audio: boolean;
36
- video: boolean;
37
- }): void;
38
- setMicrophoneState(value: boolean): void;
39
- setCameraState(value: boolean): void;
40
- setAudioOutputElement(el: HTMLAudioElement): void;
41
- setAudioOutputDevice(deviceId: string): Promise<void>;
42
- setAsActiveSpeaker(): void;
43
- unsetAsActiveSpeaker(): void;
44
- endCall(): void;
45
- }
46
- //# sourceMappingURL=RTSeePeerConnection.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RTSeePeerConnection.d.ts","sourceRoot":"","sources":["../../src/models/RTSeePeerConnection.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,MAAM,WAAW,oBAAqB,SAAQ,SAAS;IACrD,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,qBAAa,mBAAoB,SAAQ,YAAY;IACnD,QAAQ,EAAG,MAAM,CAAC;IAClB,UAAU,EAAG,iBAAiB,CAAC;IAC/B,eAAe,CAAC,EAAE,gBAAgB,CAAC;IACnC,eAAe,CAAC,EAAE,gBAAgB,CAAC;IACnC,iBAAiB,CAAC,EAAE,WAAW,CAAC;IAChC,iBAAiB,CAAC,EAAE,WAAW,CAAC;IAChC,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,OAAO,EAAE,eAAe,EAAE,CAAM;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kBAAkB,CAAC,EAAE,gBAAgB,CAAC;IACtC,eAAe,CAAC,EAAE,OAAO,CAAC;gBAEd,OAAO,EAAE,oBAAoB;IASzC,IAAI,CAAC,OAAO,EAAE,oBAAoB;IAuBlC,sBAAsB;IAOtB,iBAAiB,CAAC,KAAK,EAAE,gBAAgB;IAKzC,gBAAgB,CAAC,KAAK,EAAE,aAAa;IAmBrC,uBAAuB,CAAC,KAAK,EAAE,yBAAyB;IAQxD,cAAc,CACZ,MAAM,EAAE,WAAW,EACnB,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,OAAO,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE;IAa7C,kBAAkB,CAAC,KAAK,EAAE,OAAO;IAIjC,cAAc,CAAC,KAAK,EAAE,OAAO;IAI7B,qBAAqB,CAAC,EAAE,EAAE,gBAAgB;IAI1C,oBAAoB,CAAC,QAAQ,EAAE,MAAM;IAgBrC,kBAAkB;IAIlB,oBAAoB;IAIpB,OAAO;CAGR"}
@@ -1,131 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.RTSeePeerConnection = void 0;
19
- var events_1 = require("events");
20
- var SoundMeter_1 = require("./SoundMeter");
21
- var RTSeePeerConnection = /** @class */ (function (_super) {
22
- __extends(RTSeePeerConnection, _super);
23
- function RTSeePeerConnection(options) {
24
- var _this = _super.call(this) || this;
25
- _this.icePool = [];
26
- if (!options || !options.clientId || !options.connection) {
27
- throw new Error("RTSeePeerConnection: Invalid options");
28
- }
29
- _this.init(options);
30
- return _this;
31
- }
32
- RTSeePeerConnection.prototype.init = function (options) {
33
- this.clientId = options.clientId;
34
- this.connection = options.connection;
35
- if (options.name) {
36
- this.name = options.name;
37
- }
38
- if (options.imageUrl) {
39
- this.imageUrl = options.imageUrl;
40
- }
41
- if (options.url) {
42
- this.url = options.url;
43
- }
44
- if (options.isScreenShare) {
45
- this.isScreenShare = true;
46
- }
47
- this.camera = false;
48
- this.microphone = false;
49
- this.attachConnectionEvents();
50
- };
51
- RTSeePeerConnection.prototype.attachConnectionEvents = function () {
52
- /* eslint-disable */
53
- this.connection.ontrack = this.emitOnTrackEvent.bind(this);
54
- this.connection.onicecandidate = this.emitOnIceCandidateEvent.bind(this);
55
- /* eslint-enable */
56
- };
57
- RTSeePeerConnection.prototype.attachTrackEvents = function (track) {
58
- track.onmute = function () { return console.log("mute aud"); };
59
- track.onunmute = function () { return console.log("unmute aud"); };
60
- };
61
- RTSeePeerConnection.prototype.emitOnTrackEvent = function (event) {
62
- if (event.track.kind === "video") {
63
- this.remoteVideoStream = event.streams[0];
64
- this.camera = true;
65
- }
66
- if (event.track.kind === "audio") {
67
- this.remoteAudioStream = event.streams[0];
68
- this.soundMeter = new SoundMeter_1.SoundMeter({ audioStream: this.remoteAudioStream });
69
- this.microphone = true;
70
- }
71
- this.emit("track", {
72
- clientId: this.clientId,
73
- event: event,
74
- });
75
- this.attachTrackEvents(event.track);
76
- };
77
- RTSeePeerConnection.prototype.emitOnIceCandidateEvent = function (event) {
78
- this.emit("ice_candidate", {
79
- clientId: this.clientId,
80
- event: event,
81
- isScreenShare: this.isScreenShare,
82
- });
83
- };
84
- RTSeePeerConnection.prototype.addLocalTracks = function (stream, config) {
85
- var _this = this;
86
- stream.getTracks().forEach(function (track) {
87
- if (track.kind === "audio" && (!config || config.audio)) {
88
- _this.localAudioTrack = track;
89
- }
90
- if (track.kind === "video" && (!config || config.video)) {
91
- _this.localVideoTrack = track;
92
- }
93
- _this.sender = _this.connection.addTrack(track, stream);
94
- });
95
- };
96
- RTSeePeerConnection.prototype.setMicrophoneState = function (value) {
97
- this.microphone = value;
98
- };
99
- RTSeePeerConnection.prototype.setCameraState = function (value) {
100
- this.camera = value;
101
- };
102
- RTSeePeerConnection.prototype.setAudioOutputElement = function (el) {
103
- this.audioOutputElement = el;
104
- };
105
- RTSeePeerConnection.prototype.setAudioOutputDevice = function (deviceId) {
106
- if (!this.audioOutputElement) {
107
- return;
108
- }
109
- var extendedVideoEl = this
110
- .audioOutputElement;
111
- if (!extendedVideoEl.setSinkId) {
112
- return;
113
- }
114
- return extendedVideoEl
115
- .setSinkId(deviceId)
116
- .catch(function (e) { return console.log(e); })
117
- .then(function () { return console.log("success"); });
118
- };
119
- RTSeePeerConnection.prototype.setAsActiveSpeaker = function () {
120
- this.isActiveSpeaker = true;
121
- };
122
- RTSeePeerConnection.prototype.unsetAsActiveSpeaker = function () {
123
- this.isActiveSpeaker = false;
124
- };
125
- RTSeePeerConnection.prototype.endCall = function () {
126
- return this.connection.close();
127
- };
128
- return RTSeePeerConnection;
129
- }(events_1.EventEmitter));
130
- exports.RTSeePeerConnection = RTSeePeerConnection;
131
- //# sourceMappingURL=RTSeePeerConnection.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RTSeePeerConnection.js","sourceRoot":"","sources":["../../src/models/RTSeePeerConnection.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,iCAAsC;AAEtC,2CAA0C;AAS1C;IAAyC,uCAAY;IAmBnD,6BAAY,OAA6B;QAAzC,YACE,iBAAO,SAMR;QAlBD,aAAO,GAAsB,EAAE,CAAC;QAa9B,IAAI,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,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AE,CAAC;IACjC,CAAC;IACH,0BAAC;AAAD,CAAC,AAhJD,CAAyC,qBAAY,GAgJpD;AAhJY,kDAAmB"}
@@ -1,21 +0,0 @@
1
- import { RTSeePeerConnection } from "@rtsee/core";
2
- export declare class RTSeePeerConnectionsList {
3
- connections: RTSeePeerConnection[];
4
- connectionsHash: {
5
- [key: string]: RTSeePeerConnection;
6
- };
7
- activeSpeakerId: string;
8
- lastActiveSpeakerChange?: Date;
9
- add(peerConnection: RTSeePeerConnection): RTSeePeerConnection;
10
- remove(peerConnection: RTSeePeerConnection): boolean;
11
- addIceCandidate(clientId: string, candidate: RTCIceCandidate): Promise<void> | false;
12
- setRemoteDescription(clientId: string, sdp: RTCSessionDescription): false | Promise<void>;
13
- onPeerCameraToggled(peerId: string, isEnabled: boolean): boolean;
14
- onPeerMicrophoneToggled(peerId: string, isEnabled: boolean): boolean;
15
- getByPeerId(peerId: string): RTSeePeerConnection;
16
- removeByPeerId(peerId: string): RTSeePeerConnection;
17
- setAudioOutputDevice(deviceId: string): Promise<void[]>;
18
- eraseAll(): void;
19
- setActiveSpeaker(): void;
20
- }
21
- //# sourceMappingURL=RTSeePeerConnectionsList.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RTSeePeerConnectionsList.d.ts","sourceRoot":"","sources":["../../src/models/RTSeePeerConnectionsList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,qBAAa,wBAAwB;IACnC,WAAW,EAAE,mBAAmB,EAAE,CAAM;IACxC,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,CAAA;KAAE,CAAM;IAC7D,eAAe,EAAE,MAAM,CAAC;IACxB,uBAAuB,CAAC,EAAE,IAAI,CAAC;IAE/B,GAAG,CAAC,cAAc,EAAE,mBAAmB;IAMvC,MAAM,CAAC,cAAc,EAAE,mBAAmB;IAS1C,eAAe,CACb,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,eAAe,GACzB,OAAO,CAAC,IAAI,CAAC,GAAG,KAAK;IAOxB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,qBAAqB;IAOjE,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO;IAQtD,uBAAuB,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO;IAQ1D,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,mBAAmB;IAOhD,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,mBAAmB;IAWnD,oBAAoB,CAAC,QAAQ,EAAE,MAAM;IAQrC,QAAQ;IAQR,gBAAgB;CAiCjB"}