@ckeditor/ckeditor5-real-time-collaboration 47.6.0-alpha.6 → 47.6.0-alpha.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-real-time-collaboration",
3
- "version": "47.6.0-alpha.6",
3
+ "version": "47.6.0-alpha.7",
4
4
  "description": "A set of CKEditor 5 features enabling real-time collaboration within the editor using CKEditor Cloud Services.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -47,19 +47,19 @@
47
47
  ],
48
48
  "dependencies": {
49
49
  "@ckeditor/ckeditor-cloud-services-collaboration": "53.0.3",
50
- "@ckeditor/ckeditor5-cloud-services": "47.6.0-alpha.6",
51
- "@ckeditor/ckeditor5-comments": "47.6.0-alpha.6",
52
- "@ckeditor/ckeditor5-core": "47.6.0-alpha.6",
53
- "@ckeditor/ckeditor5-editor-multi-root": "47.6.0-alpha.6",
54
- "@ckeditor/ckeditor5-engine": "47.6.0-alpha.6",
55
- "@ckeditor/ckeditor5-operations-compressor": "47.6.0-alpha.6",
56
- "@ckeditor/ckeditor5-revision-history": "47.6.0-alpha.6",
57
- "@ckeditor/ckeditor5-theme-lark": "47.6.0-alpha.6",
58
- "@ckeditor/ckeditor5-track-changes": "47.6.0-alpha.6",
59
- "@ckeditor/ckeditor5-ui": "47.6.0-alpha.6",
60
- "@ckeditor/ckeditor5-utils": "47.6.0-alpha.6",
61
- "ckeditor5": "47.6.0-alpha.6",
62
- "ckeditor5-collaboration": "47.6.0-alpha.6",
50
+ "@ckeditor/ckeditor5-cloud-services": "47.6.0-alpha.7",
51
+ "@ckeditor/ckeditor5-comments": "47.6.0-alpha.7",
52
+ "@ckeditor/ckeditor5-core": "47.6.0-alpha.7",
53
+ "@ckeditor/ckeditor5-editor-multi-root": "47.6.0-alpha.7",
54
+ "@ckeditor/ckeditor5-engine": "47.6.0-alpha.7",
55
+ "@ckeditor/ckeditor5-operations-compressor": "47.6.0-alpha.7",
56
+ "@ckeditor/ckeditor5-revision-history": "47.6.0-alpha.7",
57
+ "@ckeditor/ckeditor5-theme-lark": "47.6.0-alpha.7",
58
+ "@ckeditor/ckeditor5-track-changes": "47.6.0-alpha.7",
59
+ "@ckeditor/ckeditor5-ui": "47.6.0-alpha.7",
60
+ "@ckeditor/ckeditor5-utils": "47.6.0-alpha.7",
61
+ "ckeditor5": "47.6.0-alpha.7",
62
+ "ckeditor5-collaboration": "47.6.0-alpha.7",
63
63
  "es-toolkit": "1.39.5"
64
64
  },
65
65
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4dd813=_0x3f28;(function(_0x4e090b,_0x33503e){const _0x454673=_0x3f28,_0x457e48=_0x4e090b();while(!![]){try{const _0xf90e60=-parseInt(_0x454673(0x1c7))/0x1+parseInt(_0x454673(0x1d6))/0x2+-parseInt(_0x454673(0x1dc))/0x3*(parseInt(_0x454673(0x1f4))/0x4)+-parseInt(_0x454673(0x1a3))/0x5+-parseInt(_0x454673(0x1e5))/0x6*(-parseInt(_0x454673(0x1c2))/0x7)+parseInt(_0x454673(0x1d1))/0x8+parseInt(_0x454673(0x1f2))/0x9*(parseInt(_0x454673(0x1cd))/0xa);if(_0xf90e60===_0x33503e)break;else _0x457e48['push'](_0x457e48['shift']());}catch(_0x42f9e1){_0x457e48['push'](_0x457e48['shift']());}}}(_0xc758,0xbdf4b));import{ContextPlugin as _0x740e2e}from'ckeditor5/src/core.js';import{CKEditorError as _0x426f01,Collection as _0x214a1e}from'ckeditor5/src/utils.js';import{clickOutsideHandler as _0x44e17a,BalloonPanelView as _0x426b89,BodyCollection as _0x49f2d2}from'ckeditor5/src/ui.js';import{isElement as _0x217949}from'es-toolkit/compat';import{Sessions as _0x5d4daa}from'../realtimecollaborativeediting/sessions.js';import{PresenceListView as _0xa83e93}from'./view/presencelistview.js';import{PresenceCounterView as _0x40ab60}from'./view/presencecounterview.js';function _0x3f28(_0x51ab21,_0x69bca8){const _0xc75878=_0xc758();return _0x3f28=function(_0x3f2885,_0x422292){_0x3f2885=_0x3f2885-0x197;let _0x42e9f2=_0xc75878[_0x3f2885];return _0x42e9f2;},_0x3f28(_0x51ab21,_0x69bca8);}import{PresenceDropdownListView as _0x47edc5}from'./view/presencedropdownlistview.js';function _0xc758(){const _0x1135a5=['Tab','_bodyCollection','element','_handleUserRemove','keystrokes','body','showDropdown','join','543340aujOBm','indexOf','presencelist-missing-container','usersCount','focusTracker','23416KQJVlV','presencelist-collapseat-invalid-format','[tabindex]','hideDropdown','using','render','13747540pQAiNU','onClick','displayMe','isFocusable','3270384zmPTXM','isMe','counterView','reverse','unpin','300802bIMmTq','_handleUserAdd','pluginName','content','Enter','from','48hVjFlc','config','isRendered','inlineListView','pin','offsetWidth','define','set','requires','6KBtWto','isOfficialPlugin','querySelectorAll','allConnectedUsers','Esc','view','execute','focus','presenceList','input','isPremiumPlugin','destroy','activeElement','9xEPNyH','listenTo','254476wkTCrL','length','appendChild','balloonPanelView','presenceList.displayMe','presenceDropdownView','bindTo','presencelist:show','presenceList.collapseAt','button','isCollapsed','isVisible','bind','sort','filter','Shift+Tab','presenceList.container','attachToDom','map','items','offsetHeight','isExpanded','get','checkIfScrollable','_createView','context','960970XdgpKs','locale','select','change:isFocused','class','presencelist:hide',':not([disabled]):not([tabindex=\x22-1\x22])','_allConnectedUsers','currentDisplayedUsers','textarea','ck\x20ck-presence-list__balloon','remove','min','detachFromDom','find','PresenceListUI','tabIndex','plugins','hasTooltip','[contenteditable]','add','number','init'];_0xc758=function(){return _0x1135a5;};return _0xc758();}import{PresenceDropdownListItemView as _0x40c372}from'./view/presencedropdownlistitemview.js';import{PresenceInlineListItemView as _0x269452}from'./view/presenceinlinelistitemview.js';const x={'collapseAt':0x6,'displayMe':!0x0};export class PresenceListUI extends _0x740e2e{[_0x4dd813(0x1ab)];[_0x4dd813(0x1f7)];[_0x4dd813(0x1ea)];[_0x4dd813(0x1f9)];[_0x4dd813(0x1bb)]=null;static get[_0x4dd813(0x1d8)](){const _0x47a1f6=_0x4dd813;return _0x47a1f6(0x1b2);}static get[_0x4dd813(0x1e6)](){return!0x0;}static get[_0x4dd813(0x1ef)](){return!0x0;}constructor(_0x5963cf){const _0x5809d0=_0x4dd813;super(_0x5963cf),this[_0x5809d0(0x1a2)][_0x5809d0(0x1dd)][_0x5809d0(0x1e2)](_0x5809d0(0x1ed),x);const _0x460e92=_0x5963cf[_0x5809d0(0x1dd)][_0x5809d0(0x19f)](_0x5809d0(0x1fc));if(_0x5809d0(0x1b8)!=typeof _0x460e92)throw new _0x426f01(_0x5809d0(0x1c8),this);if(_0x460e92<0x1)throw new _0x426f01(_0x5809d0(0x1c8),this);this[_0x5809d0(0x1aa)]=this[_0x5809d0(0x1a2)][_0x5809d0(0x1b4)][_0x5809d0(0x19f)](_0x5d4daa)[_0x5809d0(0x1e8)],this[_0x5809d0(0x1e3)](_0x5809d0(0x1c5),0x0),this[_0x5809d0(0x1ab)]=new _0x214a1e(),this[_0x5809d0(0x1f7)]=new _0x426b89(),this[_0x5809d0(0x1f7)][_0x5809d0(0x1a7)]=_0x5809d0(0x1ad),this[_0x5809d0(0x1ea)]=this[_0x5809d0(0x1a1)](),this[_0x5809d0(0x1f9)]=void 0x0;}static get[_0x4dd813(0x1e4)](){return[_0x5d4daa];}[_0x4dd813(0x1b9)](){const _0x266611=_0x4dd813;for(const _0x5115f5 of this[_0x266611(0x1aa)])this[_0x266611(0x1d7)](_0x5115f5);this[_0x266611(0x1f3)](this[_0x266611(0x1aa)],_0x266611(0x1b7),(_0x32bafb,_0x20bb13)=>{const _0x24217d=_0x266611;this[_0x24217d(0x1d7)](_0x20bb13);}),this[_0x266611(0x1f3)](this[_0x266611(0x1aa)],_0x266611(0x1ae),(_0xbe921c,_0x5352bd)=>{const _0x53b7cf=_0x266611;this[_0x53b7cf(0x1bd)](_0x5352bd);});}[_0x4dd813(0x1a1)](){const _0x54690f=_0x4dd813,_0x4dd424=this[_0x54690f(0x1a2)],_0x5483a1=new _0xa83e93(this[_0x54690f(0x1a2)][_0x54690f(0x1a4)],this[_0x54690f(0x1a2)][_0x54690f(0x1dd)][_0x54690f(0x19f)](_0x54690f(0x1fc))),_0x5f1e36=this[_0x54690f(0x1f7)];if(!_0x217949(_0x4dd424[_0x54690f(0x1dd)][_0x54690f(0x19f)](_0x54690f(0x199))))throw new _0x426f01(_0x54690f(0x1c4),this);return _0x5483a1[_0x54690f(0x1d3)][_0x54690f(0x200)](_0x54690f(0x1c5))['to'](this),_0x5483a1[_0x54690f(0x200)](_0x54690f(0x1fe))['to'](this,_0x54690f(0x1c5),_0xfe7e83=>{const _0x18a4ce=_0x54690f,{collapseAt:_0x3eb822}=_0x4dd424[_0x18a4ce(0x1dd)][_0x18a4ce(0x19f)](_0x18a4ce(0x1ed)),_0x5c6e5c=_0xfe7e83>=_0x3eb822;if(_0x5c6e5c&&!_0x5483a1[_0x18a4ce(0x1df)][_0x18a4ce(0x19c)][_0x18a4ce(0x1b1)](_0x4d9eba=>_0x4d9eba instanceof _0x40ab60)){const _0x49daed=this[_0x18a4ce(0x1a2)][_0x18a4ce(0x1dd)][_0x18a4ce(0x19f)](_0x18a4ce(0x1fc))-0x1;this[_0x18a4ce(0x1ab)][_0x18a4ce(0x1f5)]==_0x49daed&&this[_0x18a4ce(0x1ab)][_0x18a4ce(0x1f5)]>0x1&&this[_0x18a4ce(0x1ab)][_0x18a4ce(0x1ae)](this[_0x18a4ce(0x1ab)][_0x18a4ce(0x1f5)]-0x1),_0x5483a1[_0x18a4ce(0x1df)][_0x18a4ce(0x19c)][_0x18a4ce(0x1b7)](_0x5483a1[_0x18a4ce(0x1d3)]);}return _0x5c6e5c||this[_0x18a4ce(0x1ca)](),_0x5c6e5c;}),_0x5483a1[_0x54690f(0x1df)][_0x54690f(0x19c)][_0x54690f(0x1fa)](this[_0x54690f(0x1ab)])[_0x54690f(0x1cb)](_0x58e8bf=>{const _0x5aa3c2=_0x54690f,_0xb65580=_0x4dd424[_0x5aa3c2(0x1dd)][_0x5aa3c2(0x19f)](_0x5aa3c2(0x1ed)),_0x423592=new _0x269452(_0x4dd424[_0x5aa3c2(0x1a4)],_0x58e8bf,!!_0xb65580[_0x5aa3c2(0x1ce)]);return _0x423592[_0x5aa3c2(0x200)](_0x5aa3c2(0x1b5))['to'](_0x5483a1,_0x5aa3c2(0x1fe),_0x18fbac=>!_0x18fbac),_0x423592[_0x5aa3c2(0x200)](_0x5aa3c2(0x1d0))['to'](_0x5483a1,_0x5aa3c2(0x1fe),_0x1f7bea=>!_0x1f7bea),_0xb65580[_0x5aa3c2(0x1ce)]&&this[_0x5aa3c2(0x1f3)](_0x423592,_0x5aa3c2(0x1eb),()=>{const _0x115e03=_0x5aa3c2;this[_0x115e03(0x1ea)][_0x115e03(0x1fe)]||_0xb65580[_0x115e03(0x1ce)](_0x58e8bf,_0x423592[_0x115e03(0x1bc)]);}),_0x423592;}),this[_0x54690f(0x1f3)](_0x5483a1[_0x54690f(0x1df)],_0x54690f(0x1fb),()=>{const _0x1a8201=_0x54690f;this[_0x1a8201(0x1ea)][_0x1a8201(0x1fe)]&&this[_0x1a8201(0x1c0)]();}),this[_0x54690f(0x1f3)](_0x5483a1[_0x54690f(0x1df)],_0x54690f(0x1a8),()=>{const _0x2c7090=_0x54690f;this[_0x2c7090(0x1f9)]&&this[_0x2c7090(0x1ca)]();}),_0x5483a1[_0x54690f(0x1df)][_0x54690f(0x1be)][_0x54690f(0x1e3)](_0x54690f(0x1da),(_0x591d27,_0x49a1e9)=>{const _0x427572=_0x54690f;this[_0x427572(0x1ea)][_0x427572(0x1fe)]&&(this[_0x427572(0x1c0)](),_0x49a1e9());}),_0x5483a1[_0x54690f(0x1cc)](),_0x5f1e36[_0x54690f(0x1cc)](),_0x44e17a({'emitter':_0x5483a1,'activator':()=>_0x5f1e36[_0x54690f(0x1ff)],'contextElements':[_0x5f1e36[_0x54690f(0x1bc)],_0x5483a1[_0x54690f(0x1df)][_0x54690f(0x1bc)]],'callback':()=>this[_0x54690f(0x1ca)]()}),_0x4dd424[_0x54690f(0x1dd)][_0x54690f(0x19f)](_0x54690f(0x199))[_0x54690f(0x1f6)](_0x5483a1[_0x54690f(0x1bc)]),this[_0x54690f(0x1bb)]=new _0x49f2d2(this[_0x54690f(0x1a2)][_0x54690f(0x1a4)]),this[_0x54690f(0x1bb)][_0x54690f(0x19a)](),this[_0x54690f(0x1bb)][_0x54690f(0x1b7)](this[_0x54690f(0x1f7)]),_0x5483a1;}[_0x4dd813(0x1d7)](_0x28c061){const _0x5d7326=_0x4dd813;if(!this[_0x5d7326(0x1a2)][_0x5d7326(0x1dd)][_0x5d7326(0x19f)](_0x5d7326(0x1f8))&&_0x28c061[_0x5d7326(0x1d2)])return;const _0x399d6a=this[_0x5d7326(0x1a2)][_0x5d7326(0x1dd)][_0x5d7326(0x19f)](_0x5d7326(0x1fc))-0x1;for(this[_0x5d7326(0x1c5)]++;this[_0x5d7326(0x1ab)][_0x5d7326(0x1f5)]>=_0x399d6a-(this[_0x5d7326(0x1ea)][_0x5d7326(0x1fe)]?0x1:0x0)&&this[_0x5d7326(0x1ab)][_0x5d7326(0x1f5)]>0x1;)this[_0x5d7326(0x1ab)][_0x5d7326(0x1ae)](0x1);const _0x1e8d79=_0x28c061[_0x5d7326(0x1d2)]?0x0:this[_0x5d7326(0x1ab)][_0x5d7326(0x1f5)];this[_0x5d7326(0x1ab)][_0x5d7326(0x1b7)](_0x28c061,_0x1e8d79);}[_0x4dd813(0x1bd)](_0x51251e){const _0x45b644=_0x4dd813;this[_0x45b644(0x1c5)]--;const {collapseAt:_0x51eb89}=this[_0x45b644(0x1a2)][_0x45b644(0x1dd)][_0x45b644(0x19f)](_0x45b644(0x1ed)),_0x22ddd1=this[_0x45b644(0x1c5)]>=_0x51eb89;if(this[_0x45b644(0x1ab)][_0x45b644(0x19f)](_0x51251e['id']))this[_0x45b644(0x1ab)][_0x45b644(0x1ae)](_0x51251e['id']);else{if(_0x22ddd1&&this[_0x45b644(0x1ab)][_0x45b644(0x1f5)]+0x1===_0x51eb89-0x1)return;}if(this[_0x45b644(0x1ab)][_0x45b644(0x1f5)]+(_0x22ddd1?0x1:0x0)<this[_0x45b644(0x1c5)]){for(const _0x5a2b14 of Array[_0x45b644(0x1db)](this[_0x45b644(0x1aa)])[_0x45b644(0x1d4)]())if(!this[_0x45b644(0x1ab)][_0x45b644(0x19f)](_0x5a2b14['id'])&&(this[_0x45b644(0x1ab)][_0x45b644(0x1b7)](_0x5a2b14,Math[_0x45b644(0x1af)](this[_0x45b644(0x1ab)][_0x45b644(0x1f5)]-(_0x22ddd1?0x1:0x0),0x1)),this[_0x45b644(0x1ab)][_0x45b644(0x1f5)]+(_0x22ddd1?0x1:0x0)===_0x51eb89-0x1))return;}}[_0x4dd813(0x1c0)](){const _0x178335=_0x4dd813;if(this[_0x178335(0x1f9)])return;const _0xd00bed=this[_0x178335(0x1a2)][_0x178335(0x1dd)][_0x178335(0x19f)](_0x178335(0x1ed));this[_0x178335(0x1f9)]=new _0x47edc5(this[_0x178335(0x1a2)][_0x178335(0x1a4)],!!_0xd00bed[_0x178335(0x1ce)]),this[_0x178335(0x1ea)][_0x178335(0x1df)][_0x178335(0x19e)]=!0x0,this[_0x178335(0x1f3)](this[_0x178335(0x1f9)],_0x178335(0x1a8),()=>{const _0x23ca97=_0x178335;this[_0x23ca97(0x1f9)]&&this[_0x23ca97(0x1ca)]();});const {listWrapperView:_0x2fb4cb}=this[_0x178335(0x1f9)];_0x2fb4cb[_0x178335(0x19c)][_0x178335(0x1fa)](this[_0x178335(0x1aa)])[_0x178335(0x1cb)](_0x5ebc04=>{const _0x5ceeb6=_0x178335;if(!_0xd00bed[_0x5ceeb6(0x1cf)]&&_0x5ebc04[_0x5ceeb6(0x1d2)])return null;const _0x1bb015=new _0x40c372(this[_0x5ceeb6(0x1a2)][_0x5ceeb6(0x1a4)],_0x5ebc04,!!_0xd00bed[_0x5ceeb6(0x1ce)]);return _0xd00bed[_0x5ceeb6(0x1ce)]&&this[_0x5ceeb6(0x1f3)](_0x1bb015,_0x5ceeb6(0x1eb),()=>{const _0x38221f=_0x5ceeb6;_0xd00bed[_0x38221f(0x1ce)](_0x5ebc04,_0x1bb015[_0x38221f(0x1bc)]);}),_0x1bb015;}),this[_0x178335(0x1f7)][_0x178335(0x1d9)][_0x178335(0x1b7)](this[_0x178335(0x1f9)]),this[_0x178335(0x1f7)][_0x178335(0x1e0)]({'target':this[_0x178335(0x1ea)][_0x178335(0x1df)][_0x178335(0x1bc)]}),_0x2fb4cb[_0x178335(0x1ec)](),_0x2fb4cb[_0x178335(0x1a0)]();const _0x210e4c=(_0x19b538,_0x1e0fce)=>{const _0x261f60=_0x178335;this[_0x261f60(0x1ca)](),this[_0x261f60(0x1ea)][_0x261f60(0x1df)][_0x261f60(0x1ec)](),_0x1e0fce();};_0x2fb4cb[_0x178335(0x1be)][_0x178335(0x1e3)](_0x178335(0x1e9),_0x210e4c),_0x2fb4cb[_0x178335(0x1be)][_0x178335(0x1e3)](_0x178335(0x198),_0x210e4c),_0x2fb4cb[_0x178335(0x1be)][_0x178335(0x1e3)](_0x178335(0x1ba),(_0x1ba720,_0x2e9995)=>{const _0x423462=_0x178335;!function(_0x28f223){const _0x5df5d1=_0x3f28,_0x1abd5a=['a',_0x5df5d1(0x1fd),_0x5df5d1(0x1ee),_0x5df5d1(0x1a5),_0x5df5d1(0x1ac),_0x5df5d1(0x1c9),_0x5df5d1(0x1b6)][_0x5df5d1(0x19b)](_0xa8eed0=>_0xa8eed0+_0x5df5d1(0x1a9))[_0x5df5d1(0x1c1)](','),_0x59fee9=[...document[_0x5df5d1(0x1bf)][_0x5df5d1(0x1e7)](_0x1abd5a)][_0x5df5d1(0x197)](_0x538b81=>_0x538b81===document[_0x5df5d1(0x1f1)]||_0x538b81[_0x5df5d1(0x1e1)]+_0x538b81[_0x5df5d1(0x19d)]>0x0)[_0x5df5d1(0x201)]((_0x3887af,_0x1ab0f6)=>(_0x3887af[_0x5df5d1(0x1b3)]||0x0)-(_0x1ab0f6[_0x5df5d1(0x1b3)]||0x0)),_0x5a176b=_0x59fee9[_0x5df5d1(0x1c3)](_0x28f223),_0x4feeb4=_0x59fee9[(_0x5a176b+0x1)%_0x59fee9[_0x5df5d1(0x1f5)]];_0x4feeb4&&_0x4feeb4[_0x5df5d1(0x1ec)]();}(this[_0x423462(0x1ea)][_0x423462(0x1bc)]),this[_0x423462(0x1ca)](),_0x2e9995();}),_0x2fb4cb[_0x178335(0x1c6)][_0x178335(0x1b7)](this[_0x178335(0x1ea)][_0x178335(0x1bc)]),_0x2fb4cb[_0x178335(0x1c6)]['on'](_0x178335(0x1a6),(_0x3e7e1e,_0x526f1e,_0x5c6f0f)=>{const _0x3fee41=_0x178335;_0x5c6f0f||this[_0x3fee41(0x1ca)]();});}[_0x4dd813(0x1ca)](){const _0x317159=_0x4dd813;this[_0x317159(0x1f9)]&&(this[_0x317159(0x1ea)][_0x317159(0x1df)][_0x317159(0x19e)]=!0x1,this[_0x317159(0x1f7)][_0x317159(0x1d5)](),this[_0x317159(0x1f7)][_0x317159(0x1d9)][_0x317159(0x1ae)](this[_0x317159(0x1f9)]),this[_0x317159(0x1f9)][_0x317159(0x1f0)](),this[_0x317159(0x1f9)]=void 0x0);}[_0x4dd813(0x1f0)](){const _0x2fc837=_0x4dd813;super[_0x2fc837(0x1f0)](),this[_0x2fc837(0x1ea)]&&this[_0x2fc837(0x1ea)][_0x2fc837(0x1de)]&&this[_0x2fc837(0x1ea)][_0x2fc837(0x1f0)](),this[_0x2fc837(0x1bb)]&&(this[_0x2fc837(0x1bb)][_0x2fc837(0x1b0)](),this[_0x2fc837(0x1bb)][_0x2fc837(0x1f0)](),this[_0x2fc837(0x1bb)]=null);}}
23
+ const _0x39deea=_0x4a54;function _0x4a54(_0xedae69,_0x3a47a7){const _0x1f4fca=_0x1f4f();return _0x4a54=function(_0x4a548d,_0x2070dd){_0x4a548d=_0x4a548d-0x8d;let _0x13e0a3=_0x1f4fca[_0x4a548d];return _0x13e0a3;},_0x4a54(_0xedae69,_0x3a47a7);}(function(_0x2636ab,_0x435abf){const _0x32a26b=_0x4a54,_0x8f536f=_0x2636ab();while(!![]){try{const _0x2328b6=-parseInt(_0x32a26b(0xb9))/0x1*(parseInt(_0x32a26b(0xf3))/0x2)+-parseInt(_0x32a26b(0xbd))/0x3*(-parseInt(_0x32a26b(0xbc))/0x4)+-parseInt(_0x32a26b(0x9a))/0x5+-parseInt(_0x32a26b(0xe1))/0x6+parseInt(_0x32a26b(0xcf))/0x7+-parseInt(_0x32a26b(0xdb))/0x8+parseInt(_0x32a26b(0xcd))/0x9;if(_0x2328b6===_0x435abf)break;else _0x8f536f['push'](_0x8f536f['shift']());}catch(_0x125007){_0x8f536f['push'](_0x8f536f['shift']());}}}(_0x1f4f,0x4a4d8));import{ContextPlugin as _0x424189}from'ckeditor5/src/core.js';import{CKEditorError as _0x4f0c84,Collection as _0x527ae2}from'ckeditor5/src/utils.js';import{clickOutsideHandler as _0x1a1d4e,BalloonPanelView as _0x150c61,BodyCollection as _0x506f16}from'ckeditor5/src/ui.js';import{isElement as _0xb1729a}from'es-toolkit/compat';import{Sessions as _0x1ace56}from'../realtimecollaborativeediting/sessions.js';import{PresenceListView as _0x438f0f}from'./view/presencelistview.js';import{PresenceCounterView as _0x42f77b}from'./view/presencecounterview.js';import{PresenceDropdownListView as _0x57ec70}from'./view/presencedropdownlistview.js';import{PresenceDropdownListItemView as _0x32758f}from'./view/presencedropdownlistitemview.js';import{PresenceInlineListItemView as _0xb9330e}from'./view/presenceinlinelistitemview.js';const U={'collapseAt':0x6,'displayMe':!0x0};function _0x1f4f(){const _0x40a2bd=['join','get','focus','textarea','define','Tab','onClick','hasTooltip','showDropdown','isCollapsed','853450DHmGnq','checkIfScrollable','filter','[tabindex]','attachToDom','ck\x20ck-presence-list__balloon','_bodyCollection','allConnectedUsers','presenceList.displayMe','querySelectorAll','currentDisplayedUsers','displayMe','presenceList','reverse','presencelist:hide','isOfficialPlugin','presencelist-collapseat-invalid-format','2008060sLihLn','_createView','view','unpin','element','_handleUserRemove','presenceList.container','keystrokes','detachFromDom','appendChild','class','[contenteditable]','pin','find','_handleUserAdd','input','isMe','inlineListView','listenTo','pluginName','add','_allConnectedUsers',':not([disabled]):not([tabindex=\x22-1\x22])','balloonPanelView','execute','length','bind','destroy','map','change:isFocused','Shift+Tab','1saamev','sort','isPremiumPlugin','127852pnGlsl','33SXQWUL','presenceDropdownView','Esc','min','Enter','usersCount','content','locale','config','PresenceListUI','context','plugins','body','set','items','number','12065265dJaZFA','init','1658069btRvpJ','offsetWidth','hideDropdown','presencelist:show','isVisible','focusTracker','offsetHeight','remove','isRendered','activeElement','tabIndex','button','1818328JTvEcI','from','bindTo','isExpanded','counterView','indexOf','3414438LOTnXv','render','select','using','presenceList.collapseAt','isFocusable','requires','presencelist-missing-container'];_0x1f4f=function(){return _0x40a2bd;};return _0x1f4f();}export class PresenceListUI extends _0x424189{[_0x39deea(0x93)];[_0x39deea(0xb1)];[_0x39deea(0x9c)];[_0x39deea(0xbe)];[_0x39deea(0x8f)]=null;static get[_0x39deea(0xad)](){const _0x1c3137=_0x39deea;return _0x1c3137(0xc6);}static get[_0x39deea(0x98)](){return!0x0;}static get[_0x39deea(0xbb)](){return!0x0;}constructor(_0x1b5bdc){const _0xadec90=_0x39deea;super(_0x1b5bdc),this[_0xadec90(0xc7)][_0xadec90(0xc5)][_0xadec90(0xed)](_0xadec90(0x95),U);const _0x1db7ab=_0x1b5bdc[_0xadec90(0xc5)][_0xadec90(0xea)](_0xadec90(0xe5));if(_0xadec90(0xcc)!=typeof _0x1db7ab)throw new _0x4f0c84(_0xadec90(0x99),this);if(_0x1db7ab<0x1)throw new _0x4f0c84(_0xadec90(0x99),this);this[_0xadec90(0xaf)]=this[_0xadec90(0xc7)][_0xadec90(0xc8)][_0xadec90(0xea)](_0x1ace56)[_0xadec90(0x90)],this[_0xadec90(0xca)](_0xadec90(0xc2),0x0),this[_0xadec90(0x93)]=new _0x527ae2(),this[_0xadec90(0xb1)]=new _0x150c61(),this[_0xadec90(0xb1)][_0xadec90(0xa4)]=_0xadec90(0x8e),this[_0xadec90(0x9c)]=this[_0xadec90(0x9b)](),this[_0xadec90(0xbe)]=void 0x0;}static get[_0x39deea(0xe7)](){return[_0x1ace56];}[_0x39deea(0xce)](){const _0x3017a7=_0x39deea;for(const _0x833ade of this[_0x3017a7(0xaf)])this[_0x3017a7(0xa8)](_0x833ade);this[_0x3017a7(0xac)](this[_0x3017a7(0xaf)],_0x3017a7(0xae),(_0x2eff65,_0x442096)=>{const _0x1fc7e5=_0x3017a7;this[_0x1fc7e5(0xa8)](_0x442096);}),this[_0x3017a7(0xac)](this[_0x3017a7(0xaf)],_0x3017a7(0xd6),(_0x4e0166,_0x2920d8)=>{const _0x38f515=_0x3017a7;this[_0x38f515(0x9f)](_0x2920d8);});}[_0x39deea(0x9b)](){const _0x1c78cf=_0x39deea,_0x5a43dc=this[_0x1c78cf(0xc7)],_0x136120=new _0x438f0f(this[_0x1c78cf(0xc7)][_0x1c78cf(0xc4)],this[_0x1c78cf(0xc7)][_0x1c78cf(0xc5)][_0x1c78cf(0xea)](_0x1c78cf(0xe5))),_0x3a3ca0=this[_0x1c78cf(0xb1)];if(!_0xb1729a(_0x5a43dc[_0x1c78cf(0xc5)][_0x1c78cf(0xea)](_0x1c78cf(0xa0))))throw new _0x4f0c84(_0x1c78cf(0xe8),this);return _0x136120[_0x1c78cf(0xdf)][_0x1c78cf(0xb4)](_0x1c78cf(0xc2))['to'](this),_0x136120[_0x1c78cf(0xb4)](_0x1c78cf(0xf2))['to'](this,_0x1c78cf(0xc2),_0x5779b2=>{const _0x155e0e=_0x1c78cf,{collapseAt:_0x4ad386}=_0x5a43dc[_0x155e0e(0xc5)][_0x155e0e(0xea)](_0x155e0e(0x95)),_0x21fdbf=_0x5779b2>=_0x4ad386;if(_0x21fdbf&&!_0x136120[_0x155e0e(0xab)][_0x155e0e(0xcb)][_0x155e0e(0xa7)](_0x7d7a78=>_0x7d7a78 instanceof _0x42f77b)){const _0x68b40=this[_0x155e0e(0xc7)][_0x155e0e(0xc5)][_0x155e0e(0xea)](_0x155e0e(0xe5))-0x1;this[_0x155e0e(0x93)][_0x155e0e(0xb3)]==_0x68b40&&this[_0x155e0e(0x93)][_0x155e0e(0xb3)]>0x1&&this[_0x155e0e(0x93)][_0x155e0e(0xd6)](this[_0x155e0e(0x93)][_0x155e0e(0xb3)]-0x1),_0x136120[_0x155e0e(0xab)][_0x155e0e(0xcb)][_0x155e0e(0xae)](_0x136120[_0x155e0e(0xdf)]);}return _0x21fdbf||this[_0x155e0e(0xd1)](),_0x21fdbf;}),_0x136120[_0x1c78cf(0xab)][_0x1c78cf(0xcb)][_0x1c78cf(0xdd)](this[_0x1c78cf(0x93)])[_0x1c78cf(0xe4)](_0x42cde7=>{const _0xfd44c2=_0x1c78cf,_0x3c19f9=_0x5a43dc[_0xfd44c2(0xc5)][_0xfd44c2(0xea)](_0xfd44c2(0x95)),_0x3919c0=new _0xb9330e(_0x5a43dc[_0xfd44c2(0xc4)],_0x42cde7,!!_0x3c19f9[_0xfd44c2(0xef)]);return _0x3919c0[_0xfd44c2(0xb4)](_0xfd44c2(0xf0))['to'](_0x136120,_0xfd44c2(0xf2),_0x39e075=>!_0x39e075),_0x3919c0[_0xfd44c2(0xb4)](_0xfd44c2(0xe6))['to'](_0x136120,_0xfd44c2(0xf2),_0x31f68b=>!_0x31f68b),_0x3c19f9[_0xfd44c2(0xef)]&&this[_0xfd44c2(0xac)](_0x3919c0,_0xfd44c2(0xb2),()=>{const _0x76b382=_0xfd44c2;this[_0x76b382(0x9c)][_0x76b382(0xf2)]||_0x3c19f9[_0x76b382(0xef)](_0x42cde7,_0x3919c0[_0x76b382(0x9e)]);}),_0x3919c0;}),this[_0x1c78cf(0xac)](_0x136120[_0x1c78cf(0xab)],_0x1c78cf(0xd2),()=>{const _0x53cdb8=_0x1c78cf;this[_0x53cdb8(0x9c)][_0x53cdb8(0xf2)]&&this[_0x53cdb8(0xf1)]();}),this[_0x1c78cf(0xac)](_0x136120[_0x1c78cf(0xab)],_0x1c78cf(0x97),()=>{const _0x1cbb02=_0x1c78cf;this[_0x1cbb02(0xbe)]&&this[_0x1cbb02(0xd1)]();}),_0x136120[_0x1c78cf(0xab)][_0x1c78cf(0xa1)][_0x1c78cf(0xca)](_0x1c78cf(0xc1),(_0x5cf878,_0x1a0af4)=>{const _0x51fd8c=_0x1c78cf;this[_0x51fd8c(0x9c)][_0x51fd8c(0xf2)]&&(this[_0x51fd8c(0xf1)](),_0x1a0af4());}),_0x136120[_0x1c78cf(0xe2)](),_0x3a3ca0[_0x1c78cf(0xe2)](),_0x1a1d4e({'emitter':_0x136120,'activator':()=>_0x3a3ca0[_0x1c78cf(0xd3)],'contextElements':[_0x3a3ca0[_0x1c78cf(0x9e)],_0x136120[_0x1c78cf(0xab)][_0x1c78cf(0x9e)]],'callback':()=>this[_0x1c78cf(0xd1)]()}),_0x5a43dc[_0x1c78cf(0xc5)][_0x1c78cf(0xea)](_0x1c78cf(0xa0))[_0x1c78cf(0xa3)](_0x136120[_0x1c78cf(0x9e)]),this[_0x1c78cf(0x8f)]=new _0x506f16(this[_0x1c78cf(0xc7)][_0x1c78cf(0xc4)]),this[_0x1c78cf(0x8f)][_0x1c78cf(0x8d)](),this[_0x1c78cf(0x8f)][_0x1c78cf(0xae)](this[_0x1c78cf(0xb1)]),_0x136120;}[_0x39deea(0xa8)](_0x3df2ea){const _0x2fa8ec=_0x39deea;if(!this[_0x2fa8ec(0xc7)][_0x2fa8ec(0xc5)][_0x2fa8ec(0xea)](_0x2fa8ec(0x91))&&_0x3df2ea[_0x2fa8ec(0xaa)])return;const _0xf91f06=this[_0x2fa8ec(0xc7)][_0x2fa8ec(0xc5)][_0x2fa8ec(0xea)](_0x2fa8ec(0xe5))-0x1;for(this[_0x2fa8ec(0xc2)]++;this[_0x2fa8ec(0x93)][_0x2fa8ec(0xb3)]>=_0xf91f06-(this[_0x2fa8ec(0x9c)][_0x2fa8ec(0xf2)]?0x1:0x0)&&this[_0x2fa8ec(0x93)][_0x2fa8ec(0xb3)]>0x1;)this[_0x2fa8ec(0x93)][_0x2fa8ec(0xd6)](0x1);const _0x5b6f14=_0x3df2ea[_0x2fa8ec(0xaa)]?0x0:this[_0x2fa8ec(0x93)][_0x2fa8ec(0xb3)];this[_0x2fa8ec(0x93)][_0x2fa8ec(0xae)](_0x3df2ea,_0x5b6f14);}[_0x39deea(0x9f)](_0x300655){const _0x8a03f8=_0x39deea;this[_0x8a03f8(0xc2)]--;const {collapseAt:_0x4e215f}=this[_0x8a03f8(0xc7)][_0x8a03f8(0xc5)][_0x8a03f8(0xea)](_0x8a03f8(0x95)),_0x1f4039=this[_0x8a03f8(0xc2)]>=_0x4e215f;if(this[_0x8a03f8(0x93)][_0x8a03f8(0xea)](_0x300655['id']))this[_0x8a03f8(0x93)][_0x8a03f8(0xd6)](_0x300655['id']);else{if(_0x1f4039&&this[_0x8a03f8(0x93)][_0x8a03f8(0xb3)]+0x1===_0x4e215f-0x1)return;}if(this[_0x8a03f8(0x93)][_0x8a03f8(0xb3)]+(_0x1f4039?0x1:0x0)<this[_0x8a03f8(0xc2)]){for(const _0x8e6575 of Array[_0x8a03f8(0xdc)](this[_0x8a03f8(0xaf)])[_0x8a03f8(0x96)]())if(!this[_0x8a03f8(0x93)][_0x8a03f8(0xea)](_0x8e6575['id'])&&(this[_0x8a03f8(0x93)][_0x8a03f8(0xae)](_0x8e6575,Math[_0x8a03f8(0xc0)](this[_0x8a03f8(0x93)][_0x8a03f8(0xb3)]-(_0x1f4039?0x1:0x0),0x1)),this[_0x8a03f8(0x93)][_0x8a03f8(0xb3)]+(_0x1f4039?0x1:0x0)===_0x4e215f-0x1))return;}}[_0x39deea(0xf1)](){const _0x5db64f=_0x39deea;if(this[_0x5db64f(0xbe)])return;const _0x149c89=this[_0x5db64f(0xc7)][_0x5db64f(0xc5)][_0x5db64f(0xea)](_0x5db64f(0x95));this[_0x5db64f(0xbe)]=new _0x57ec70(this[_0x5db64f(0xc7)][_0x5db64f(0xc4)],!!_0x149c89[_0x5db64f(0xef)]),this[_0x5db64f(0x9c)][_0x5db64f(0xab)][_0x5db64f(0xde)]=!0x0,this[_0x5db64f(0xac)](this[_0x5db64f(0xbe)],_0x5db64f(0x97),()=>{const _0x5abcc0=_0x5db64f;this[_0x5abcc0(0xbe)]&&this[_0x5abcc0(0xd1)]();});const {listWrapperView:_0x289dfd}=this[_0x5db64f(0xbe)];_0x289dfd[_0x5db64f(0xcb)][_0x5db64f(0xdd)](this[_0x5db64f(0xaf)])[_0x5db64f(0xe4)](_0x47c7d3=>{const _0x519b6b=_0x5db64f;if(!_0x149c89[_0x519b6b(0x94)]&&_0x47c7d3[_0x519b6b(0xaa)])return null;const _0x38ed4f=new _0x32758f(this[_0x519b6b(0xc7)][_0x519b6b(0xc4)],_0x47c7d3,!!_0x149c89[_0x519b6b(0xef)]);return _0x149c89[_0x519b6b(0xef)]&&this[_0x519b6b(0xac)](_0x38ed4f,_0x519b6b(0xb2),()=>{const _0x4ebf09=_0x519b6b;_0x149c89[_0x4ebf09(0xef)](_0x47c7d3,_0x38ed4f[_0x4ebf09(0x9e)]);}),_0x38ed4f;}),this[_0x5db64f(0xb1)][_0x5db64f(0xc3)][_0x5db64f(0xae)](this[_0x5db64f(0xbe)]),this[_0x5db64f(0xb1)][_0x5db64f(0xa6)]({'target':this[_0x5db64f(0x9c)][_0x5db64f(0xab)][_0x5db64f(0x9e)]}),_0x289dfd[_0x5db64f(0xeb)](),_0x289dfd[_0x5db64f(0xf4)]();const _0x42d4b1=(_0x342687,_0x5e1390)=>{const _0x491dfb=_0x5db64f;this[_0x491dfb(0xd1)](),this[_0x491dfb(0x9c)][_0x491dfb(0xab)][_0x491dfb(0xeb)](),_0x5e1390();};_0x289dfd[_0x5db64f(0xa1)][_0x5db64f(0xca)](_0x5db64f(0xbf),_0x42d4b1),_0x289dfd[_0x5db64f(0xa1)][_0x5db64f(0xca)](_0x5db64f(0xb8),_0x42d4b1),_0x289dfd[_0x5db64f(0xa1)][_0x5db64f(0xca)](_0x5db64f(0xee),(_0x47e1a6,_0x547f3b)=>{const _0x3cde1f=_0x5db64f;!function(_0x301e02){const _0x549b9c=_0x4a54,_0xf0569b=['a',_0x549b9c(0xda),_0x549b9c(0xa9),_0x549b9c(0xe3),_0x549b9c(0xec),_0x549b9c(0xf6),_0x549b9c(0xa5)][_0x549b9c(0xb6)](_0x4bb172=>_0x4bb172+_0x549b9c(0xb0))[_0x549b9c(0xe9)](','),_0x2987da=[...document[_0x549b9c(0xc9)][_0x549b9c(0x92)](_0xf0569b)][_0x549b9c(0xf5)](_0x55ce6e=>_0x55ce6e===document[_0x549b9c(0xd8)]||_0x55ce6e[_0x549b9c(0xd0)]+_0x55ce6e[_0x549b9c(0xd5)]>0x0)[_0x549b9c(0xba)]((_0xf8cc54,_0x2decb1)=>(_0xf8cc54[_0x549b9c(0xd9)]||0x0)-(_0x2decb1[_0x549b9c(0xd9)]||0x0)),_0xe256b=_0x2987da[_0x549b9c(0xe0)](_0x301e02),_0x197be2=_0x2987da[(_0xe256b+0x1)%_0x2987da[_0x549b9c(0xb3)]];_0x197be2&&_0x197be2[_0x549b9c(0xeb)]();}(this[_0x3cde1f(0x9c)][_0x3cde1f(0x9e)]),this[_0x3cde1f(0xd1)](),_0x547f3b();}),_0x289dfd[_0x5db64f(0xd4)][_0x5db64f(0xae)](this[_0x5db64f(0x9c)][_0x5db64f(0x9e)]),_0x289dfd[_0x5db64f(0xd4)]['on'](_0x5db64f(0xb7),(_0x3bac8d,_0x271ef4,_0x4e15dc)=>{const _0x4ebb09=_0x5db64f;_0x4e15dc||this[_0x4ebb09(0xd1)]();});}[_0x39deea(0xd1)](){const _0x1c13db=_0x39deea;this[_0x1c13db(0xbe)]&&(this[_0x1c13db(0x9c)][_0x1c13db(0xab)][_0x1c13db(0xde)]=!0x1,this[_0x1c13db(0xb1)][_0x1c13db(0x9d)](),this[_0x1c13db(0xb1)][_0x1c13db(0xc3)][_0x1c13db(0xd6)](this[_0x1c13db(0xbe)]),this[_0x1c13db(0xbe)][_0x1c13db(0xb5)](),this[_0x1c13db(0xbe)]=void 0x0);}[_0x39deea(0xb5)](){const _0x44b773=_0x39deea;super[_0x44b773(0xb5)](),this[_0x44b773(0x9c)]&&this[_0x44b773(0x9c)][_0x44b773(0xd7)]&&this[_0x44b773(0x9c)][_0x44b773(0xb5)](),this[_0x44b773(0x8f)]&&(this[_0x44b773(0x8f)][_0x44b773(0xa2)](),this[_0x44b773(0x8f)][_0x44b773(0xb5)](),this[_0x44b773(0x8f)]=null);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5d2501=_0x3977;(function(_0x2f3a37,_0x1823ac){const _0x5c6872=_0x3977,_0xb1560a=_0x2f3a37();while(!![]){try{const _0xf4a4c4=-parseInt(_0x5c6872(0x1f2))/0x1+-parseInt(_0x5c6872(0x1e7))/0x2+parseInt(_0x5c6872(0x1fc))/0x3+-parseInt(_0x5c6872(0x1e5))/0x4*(-parseInt(_0x5c6872(0x1f4))/0x5)+-parseInt(_0x5c6872(0x1ee))/0x6+-parseInt(_0x5c6872(0x1ec))/0x7+parseInt(_0x5c6872(0x1f0))/0x8;if(_0xf4a4c4===_0x1823ac)break;else _0xb1560a['push'](_0xb1560a['shift']());}catch(_0x1fd826){_0xb1560a['push'](_0xb1560a['shift']());}}}(_0x21f4,0x25bfd));function _0x3977(_0x37eb91,_0x251a9b){const _0x21f47e=_0x21f4();return _0x3977=function(_0x39770e,_0x27d363){_0x39770e=_0x39770e-0x1e2;let _0x3e233c=_0x21f47e[_0x39770e];return _0x3e233c;},_0x3977(_0x37eb91,_0x251a9b);}import{View as _0x1a69d8}from'ckeditor5/src/ui.js';function _0x21f4(){const _0x3707f5=['1168224JGipCQ','setTemplate','7231720HkUess','ck-rounded-corners','173522VdOvsS','ck-presence-list','15945qwGFEX','counterView','listenTo','ck-reset','first','tooltipPosition','bind','div','107865GiXqou','hasPopup','ck-presence-list--collapsed','bindTemplate','24KxoxeT','inlineListView','366106KPaeSQ','items','locale','change','set','1772078hEceDF','isCollapsed'];_0x21f4=function(){return _0x3707f5;};return _0x21f4();}import{PresenceCounterView as _0x1a97d2}from'./presencecounterview.js';import{PresenceInlineListView as _0x2ae316}from'./presenceinlinelistview.js';import'../../../theme/presencelist.css';export class PresenceListView extends _0x1a69d8{[_0x5d2501(0x1f5)];[_0x5d2501(0x1e6)];constructor(_0x44ade5,_0x15be38=0x6){const _0x4440e6=_0x5d2501;super(_0x44ade5);const _0x4da15c=this[_0x4440e6(0x1e4)];this[_0x4440e6(0x1eb)](_0x4440e6(0x1ed),!0x0),this[_0x4440e6(0x1f5)]=new _0x1a97d2(this[_0x4440e6(0x1e9)],_0x15be38),this[_0x4440e6(0x1e6)]=new _0x2ae316(_0x44ade5),this[_0x4440e6(0x1e6)][_0x4440e6(0x1fa)](_0x4440e6(0x1e2))['to'](this,_0x4440e6(0x1ed)),this[_0x4440e6(0x1f6)](this[_0x4440e6(0x1e6)][_0x4440e6(0x1e8)],_0x4440e6(0x1ea),()=>{const _0x174251=_0x4440e6;for(const _0x144630 of this[_0x174251(0x1e6)][_0x174251(0x1e8)])_0x144630[_0x174251(0x1f9)]='s';this[_0x174251(0x1e6)][_0x174251(0x1e8)][_0x174251(0x1f8)]&&(this[_0x174251(0x1e6)][_0x174251(0x1e8)][_0x174251(0x1f8)][_0x174251(0x1f9)]='se');}),this[_0x4440e6(0x1ef)]({'tag':_0x4440e6(0x1fb),'attributes':{'class':['ck',_0x4440e6(0x1f3),_0x4440e6(0x1f7),_0x4440e6(0x1f1),_0x4da15c['if'](_0x4440e6(0x1ed),_0x4440e6(0x1e3))]},'children':[this[_0x4440e6(0x1e6)]]});}}
23
+ const _0x595f38=_0xf8ce;(function(_0x42ed55,_0x388409){const _0x285621=_0xf8ce,_0x243a36=_0x42ed55();while(!![]){try{const _0x21019b=-parseInt(_0x285621(0x183))/0x1*(-parseInt(_0x285621(0x18f))/0x2)+parseInt(_0x285621(0x19e))/0x3*(-parseInt(_0x285621(0x187))/0x4)+parseInt(_0x285621(0x19c))/0x5+parseInt(_0x285621(0x194))/0x6*(parseInt(_0x285621(0x186))/0x7)+parseInt(_0x285621(0x195))/0x8*(-parseInt(_0x285621(0x182))/0x9)+parseInt(_0x285621(0x19b))/0xa+-parseInt(_0x285621(0x18e))/0xb*(-parseInt(_0x285621(0x192))/0xc);if(_0x21019b===_0x388409)break;else _0x243a36['push'](_0x243a36['shift']());}catch(_0xb01ac2){_0x243a36['push'](_0x243a36['shift']());}}}(_0x478d,0x36773));import{View as _0x104c28}from'ckeditor5/src/ui.js';import{PresenceCounterView as _0x180640}from'./presencecounterview.js';import{PresenceInlineListView as _0xa90592}from'./presenceinlinelistview.js';import'../../../theme/presencelist.css';export class PresenceListView extends _0x104c28{[_0x595f38(0x18c)];[_0x595f38(0x191)];constructor(_0x535bf5,_0x4ac5c3=0x6){const _0x540b90=_0x595f38;super(_0x535bf5);const _0x302683=this[_0x540b90(0x190)];this[_0x540b90(0x180)](_0x540b90(0x189),!0x0),this[_0x540b90(0x18c)]=new _0x180640(this[_0x540b90(0x193)],_0x4ac5c3),this[_0x540b90(0x191)]=new _0xa90592(_0x535bf5),this[_0x540b90(0x191)][_0x540b90(0x18d)](_0x540b90(0x181))['to'](this,_0x540b90(0x189)),this[_0x540b90(0x198)](this[_0x540b90(0x191)][_0x540b90(0x18b)],_0x540b90(0x197),()=>{const _0x1999f2=_0x540b90;for(const _0x388645 of this[_0x1999f2(0x191)][_0x1999f2(0x18b)])_0x388645[_0x1999f2(0x199)]='s';this[_0x1999f2(0x191)][_0x1999f2(0x18b)][_0x1999f2(0x188)]&&(this[_0x1999f2(0x191)][_0x1999f2(0x18b)][_0x1999f2(0x188)][_0x1999f2(0x199)]='se');}),this[_0x540b90(0x196)]({'tag':_0x540b90(0x19a),'attributes':{'class':['ck',_0x540b90(0x18a),_0x540b90(0x19d),_0x540b90(0x185),_0x302683['if'](_0x540b90(0x189),_0x540b90(0x184))]},'children':[this[_0x540b90(0x191)]]});}}function _0xf8ce(_0x283a9d,_0x41ec69){const _0x478dbb=_0x478d();return _0xf8ce=function(_0xf8ce6f,_0x2449f9){_0xf8ce6f=_0xf8ce6f-0x180;let _0x324385=_0x478dbb[_0xf8ce6f];return _0x324385;},_0xf8ce(_0x283a9d,_0x41ec69);}function _0x478d(){const _0x4762bb=['locale','13476YLrcsX','637752OEsTOR','setTemplate','change','listenTo','tooltipPosition','div','4416110pDJeWf','634365ZxWqay','ck-reset','438618bgYcOE','set','hasPopup','45hrGxcJ','1894cwmuLU','ck-presence-list--collapsed','ck-rounded-corners','280WBKQfn','8VwBUab','first','isCollapsed','ck-presence-list','items','counterView','bind','22EwHVVZ','218gZkijl','bindTemplate','inlineListView','295968aktCut'];_0x478d=function(){return _0x4762bb;};return _0x478d();}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x59718f=_0x2816;(function(_0x1e4e42,_0x411ceb){const _0x418306=_0x2816,_0x1770ef=_0x1e4e42();while(!![]){try{const _0x2383a5=-parseInt(_0x418306(0xac))/0x1+parseInt(_0x418306(0x9e))/0x2+-parseInt(_0x418306(0xb3))/0x3*(-parseInt(_0x418306(0xa0))/0x4)+parseInt(_0x418306(0x77))/0x5*(parseInt(_0x418306(0xcc))/0x6)+-parseInt(_0x418306(0xba))/0x7*(parseInt(_0x418306(0xca))/0x8)+-parseInt(_0x418306(0xa6))/0x9+parseInt(_0x418306(0xbc))/0xa;if(_0x2383a5===_0x411ceb)break;else _0x1770ef['push'](_0x1770ef['shift']());}catch(_0x2b6b85){_0x1770ef['push'](_0x1770ef['shift']());}}}(_0x252b,0xed4cc));import{Context as _0x59fc24,ContextPlugin as _0x1a4ebd}from'ckeditor5/src/core.js';function _0x2816(_0x29cae8,_0x1c5b59){const _0x252bb5=_0x252b();return _0x2816=function(_0x281637,_0x154492){_0x281637=_0x281637-0x72;let _0x4b915a=_0x252bb5[_0x281637];return _0x4b915a;},_0x2816(_0x29cae8,_0x1c5b59);}import{CKEditorError as _0x578fe2}from'ckeditor5/src/utils.js';import{Users as _0x3f118d}from'ckeditor5-collaboration/src/collaboration-core.js';import{CommentsService as _0x49a9af,User as _0x6aca9a}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x4d2ef8}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x2227e3}from'../realtimecollaborativeediting/sessions.js';export class CloudServicesCommentsAdapter extends _0x1a4ebd{static [_0x59718f(0xa8)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x49a9af)());[_0x59718f(0xc2)];static get[_0x59718f(0x82)](){const _0x40a9dc=_0x59718f;return[_0x4d2ef8,_0x40a9dc(0x85),_0x2227e3,_0x3f118d];}static get[_0x59718f(0x75)](){const _0x44f37c=_0x59718f;return _0x44f37c(0x74);}static get[_0x59718f(0x99)](){return!0x0;}static get[_0x59718f(0xb1)](){return!0x0;}constructor(_0x896e2b){const _0x4aa5bb=_0x59718f;super(_0x896e2b),this[_0x4aa5bb(0xc2)]=new Map();}async[_0x59718f(0x93)](){const _0x5bbfa8=_0x59718f,_0x5b1d8c=this[_0x5bbfa8(0xbf)],_0x2368ef=_0x5b1d8c[_0x5bbfa8(0x8b)][_0x5bbfa8(0x94)](_0x5bbfa8(0x85));if(_0x5b1d8c[_0x5bbfa8(0x8b)][_0x5bbfa8(0x94)](_0x4d2ef8)[_0x5bbfa8(0xc8)](this),_0x2368ef[_0x5bbfa8(0x83)]={'addCommentThread':async({channelId:_0x44413a,threadId:_0x54090a,comments:_0x347130,resolvedAt:_0x23158a,resolvedBy:_0x124873,context:_0x6bd974,attributes:_0x4ff772})=>{const _0x21671f=_0x5bbfa8,_0xa3dfa0=await this[_0x21671f(0xad)](_0x44413a)[_0x21671f(0xc6)]({'commentThreadId':_0x54090a,'comments':_0x347130[_0x21671f(0xc0)](_0x3e9502=>function(_0x54038e,_0x44573e,_0x12a3db){const _0x47eac4=_0x21671f;return{'commentThreadId':_0x12a3db,'commentId':_0x54038e[_0x47eac4(0xce)],'userId':_0x54038e[_0x47eac4(0xc4)],'content':_0x54038e[_0x47eac4(0x78)],'documentId':_0x44573e,'createdAt':_0x54038e[_0x47eac4(0xd2)],'attributes':_0x54038e[_0x47eac4(0xa5)]||{}};}(_0x3e9502,_0x44413a,_0x54090a)),'resolvedAt':_0x23158a,'resolvedBy':_0x124873,'context':_0x6bd974,'attributes':_0x4ff772})[_0x21671f(0xc5)](k);return{'threadId':_0xa3dfa0[_0x21671f(0x87)],'comments':_0xa3dfa0[_0x21671f(0x79)]};},'getCommentThread':async({channelId:_0x35220b,threadId:_0x12f515})=>{const _0x3fbda4=_0x5bbfa8,_0x5a4ae1=await this[_0x3fbda4(0xad)](_0x35220b)[_0x3fbda4(0x7f)](_0x12f515)[_0x3fbda4(0xc5)](F)[_0x3fbda4(0xc5)](k);return _0x5a4ae1?_0x5a4ae1[_0x3fbda4(0xd5)]?null:(await this[_0x3fbda4(0x9a)]([_0x5a4ae1]),{'threadId':_0x5a4ae1[_0x3fbda4(0x87)],'comments':_0x5a4ae1[_0x3fbda4(0x79)][_0x3fbda4(0xc0)](S),'context':_0x5a4ae1[_0x3fbda4(0xbf)],'resolvedAt':_0x5a4ae1[_0x3fbda4(0x98)],'resolvedBy':_0x5a4ae1[_0x3fbda4(0xaf)],'attributes':_0x5a4ae1[_0x3fbda4(0xa5)]||{}}):null;},'updateCommentThread':async({channelId:_0x3876a9,threadId:_0x4c111a,context:_0x529c7a,unlinkedAt:_0xbfec38,attributes:_0x3b8fe8})=>this[_0x5bbfa8(0xad)](_0x3876a9)[_0x5bbfa8(0xa3)]({'commentThreadId':_0x4c111a,'context':_0x529c7a,'attributes':_0x3b8fe8,'unlinkedAt':_0xbfec38})[_0x5bbfa8(0xc5)](F)[_0x5bbfa8(0xc5)](k),'resolveCommentThread':async({channelId:_0x1a417c,threadId:_0xb55970})=>{const _0x6dc5c8=_0x5bbfa8,_0x23c529=await this[_0x6dc5c8(0xad)](_0x1a417c)[_0x6dc5c8(0x88)](_0xb55970)[_0x6dc5c8(0xc5)](F)[_0x6dc5c8(0xc5)](k);return{'threadId':_0x23c529[_0x6dc5c8(0x87)],'resolvedAt':_0x23c529[_0x6dc5c8(0x98)],'resolvedBy':_0x23c529[_0x6dc5c8(0xaf)]};},'reopenCommentThread':async({channelId:_0x5edda2,threadId:_0xdd1b22})=>this[_0x5bbfa8(0xad)](_0x5edda2)[_0x5bbfa8(0xcd)](_0xdd1b22)[_0x5bbfa8(0xc5)](F)[_0x5bbfa8(0xc5)](k),'removeCommentThread':({channelId:_0x5b384c,threadId:_0x2455fd})=>this[_0x5bbfa8(0xad)](_0x5b384c)[_0x5bbfa8(0x7b)](_0x2455fd)[_0x5bbfa8(0xc5)](F)[_0x5bbfa8(0xc5)](k),'addComment':({channelId:_0x582c38,threadId:_0x41e1b4,commentId:_0x2e2cdf,content:_0x5395f3,attributes:_0x3e5a6a})=>this[_0x5bbfa8(0xad)](_0x582c38)[_0x5bbfa8(0x95)](_0x41e1b4,_0x2e2cdf,_0x5395f3,_0x3e5a6a)[_0x5bbfa8(0xc5)](k),'updateComment':({channelId:_0x5b00b4,threadId:_0x512d9f,commentId:_0x275dc5,content:_0x6e59c8,attributes:_0xd859ab})=>this[_0x5bbfa8(0xad)](_0x5b00b4)[_0x5bbfa8(0x97)](_0x512d9f,_0x275dc5,_0x6e59c8,_0xd859ab)[_0x5bbfa8(0xc5)](F)[_0x5bbfa8(0xc5)](k),'removeComment':({channelId:_0x5337da,threadId:_0x2f656e,commentId:_0x154e14})=>this[_0x5bbfa8(0xad)](_0x5337da)[_0x5bbfa8(0xae)](_0x2f656e,_0x154e14)[_0x5bbfa8(0xc5)](F)[_0x5bbfa8(0xc5)](k)},_0x5b1d8c instanceof _0x59fc24){const _0x7c47e1=_0x5b1d8c[_0x5bbfa8(0x9f)][_0x5bbfa8(0x94)](_0x5bbfa8(0xa4)),_0x39ec39=_0x5b1d8c[_0x5bbfa8(0x8b)][_0x5bbfa8(0x94)](_0x2227e3);await this[_0x5bbfa8(0xbe)](_0x7c47e1);const _0x7be792=await this[_0x5bbfa8(0xc2)][_0x5bbfa8(0x94)](_0x7c47e1)[_0x5bbfa8(0x9c)]();this[_0x5bbfa8(0x90)](_0x39ec39,_0x5bbfa8(0x8a)+_0x7c47e1,(_0x1c76c0,{session:_0x4a59fb})=>{const _0x23a79=_0x5bbfa8;_0x4a59fb['id']===_0x39ec39[_0x23a79(0xb9)]&&(_0x1c76c0[_0x23a79(0xab)](),this[_0x23a79(0xbf)][_0x23a79(0x8b)][_0x23a79(0x94)](_0x23a79(0xb7))[_0x23a79(0x73)](_0x4a59fb[_0x23a79(0x92)],_0x7c47e1));}),_0x39ec39[_0x5bbfa8(0xbb)](_0x7c47e1,_0x7be792);}}async[_0x59718f(0xbe)](_0x157ec4){const _0xa40ffa=_0x59718f;if(this[_0xa40ffa(0xc2)][_0xa40ffa(0xb8)](_0x157ec4))throw new _0x578fe2(_0xa40ffa(0xb5),null,{'channelId':_0x157ec4});const _0x4f1f63=this[_0xa40ffa(0xbf)][_0xa40ffa(0x8b)][_0xa40ffa(0x94)](_0xa40ffa(0x85)),_0x132a77=new CloudServicesCommentsAdapter[(_0xa40ffa(0xa8))](_0x157ec4);this[_0xa40ffa(0xc2)][_0xa40ffa(0xb6)](_0x157ec4,_0x132a77),this[_0xa40ffa(0x90)](_0x132a77,_0xa40ffa(0x8f),(_0x2cd2a9,_0x2dd2c1)=>{const _0x5be8dd=_0xa40ffa,{commentThreadId:_0x29da8f,documentId:_0x4cd1d8,context:_0xa1d58,attributes:_0xf3d954,resolvedAt:_0x5a6a19,resolvedBy:_0x1efe67,comments:_0x421623}=_0x2dd2c1;_0x4f1f63[_0x5be8dd(0x7f)](_0x29da8f)||_0x4f1f63[_0x5be8dd(0xc6)]({'threadId':_0x29da8f,'channelId':_0x4cd1d8,'comments':_0x421623?_0x421623[_0x5be8dd(0xc0)](S):[],'context':_0xa1d58,'attributes':_0xf3d954,'resolvedAt':_0x5a6a19,'resolvedBy':_0x1efe67,'isFromAdapter':!0x0});}),this[_0xa40ffa(0x90)](_0x132a77,_0xa40ffa(0x8c),(_0x42c611,{commentThreadId:_0x3c6663,documentId:_0x4496aa,context:_0x12f69a,unlinkedAt:_0xfe90a8,attributes:_0xb1c0af})=>{const _0x145d0d=_0xa40ffa;_0x4f1f63[_0x145d0d(0x7f)](_0x3c6663)&&_0x4f1f63[_0x145d0d(0xa3)]({'threadId':_0x3c6663,'channelId':_0x4496aa,'context':_0x12f69a,'unlinkedAt':_0xfe90a8,'attributes':_0xb1c0af,'isFromAdapter':!0x0});}),this[_0xa40ffa(0x90)](_0x132a77,_0xa40ffa(0xbd),(_0xd06c36,{commentThreadId:_0x2a460a,resolvedBy:_0x289d91,resolvedAt:_0x40c85f})=>{const _0x5ae34b=_0xa40ffa,_0x3d86a4=_0x4f1f63[_0x5ae34b(0x7f)](_0x2a460a);_0x3d86a4&&_0x3d86a4[_0x5ae34b(0x84)]({'resolvedBy':_0x289d91,'resolvedAt':_0x40c85f,'isFromAdapter':!0x0});}),this[_0xa40ffa(0x90)](_0x132a77,_0xa40ffa(0xd4),(_0xf9e91e,{commentThreadId:_0x66fa50})=>{const _0x40f5ff=_0xa40ffa,_0x4be30d=_0x4f1f63[_0x40f5ff(0x7f)](_0x66fa50);_0x4be30d&&_0x4be30d[_0x40f5ff(0x9d)]({'isFromAdapter':!0x0});}),this[_0xa40ffa(0x90)](_0x132a77,_0xa40ffa(0x7e),(_0x4b053d,{commentThreadId:_0x21d50d})=>{const _0x1b9839=_0xa40ffa,_0x110224=_0x4f1f63[_0x1b9839(0x7f)](_0x21d50d);_0x110224&&_0x110224[_0x1b9839(0x86)]({'isFromAdapter':!0x0});}),this[_0xa40ffa(0x90)](_0x132a77,_0xa40ffa(0x8e),(_0x34faa8,_0x36557a)=>{const _0x29a285=_0xa40ffa,_0x464df7=_0x36557a[_0x29a285(0x87)],_0x16e2dc=_0x4f1f63[_0x29a285(0x7f)](_0x464df7);_0x16e2dc&&_0x16e2dc[_0x29a285(0x95)]({...S(_0x36557a),'isFromAdapter':!0x0});}),this[_0xa40ffa(0x90)](_0x132a77,_0xa40ffa(0xd1),(_0x53432e,{commentThreadId:_0x1ff3f3,commentId:_0x41c14e,content:_0x4f18b0,attributes:_0x33092e})=>{const _0x24194d=_0xa40ffa,_0x1953d8=_0x4f1f63[_0x24194d(0x7f)](_0x1ff3f3);if(_0x1953d8){const _0x4fedeb=_0x1953d8[_0x24194d(0xd6)](_0x41c14e);_0x4fedeb&&_0x4fedeb[_0x24194d(0xa1)]({'content':_0x4f18b0,'attributes':_0x33092e,'isFromAdapter':!0x0});}}),this[_0xa40ffa(0x90)](_0x132a77,_0xa40ffa(0xd0),(_0x1b5a12,{commentThreadId:_0x5b9994,commentId:_0x2c73fe})=>{const _0x1f9444=_0xa40ffa,_0x8020bd=_0x4f1f63[_0x1f9444(0x7f)](_0x5b9994);if(_0x8020bd){const _0x529cbe=_0x8020bd[_0x1f9444(0xd6)](_0x2c73fe);_0x529cbe&&_0x529cbe[_0x1f9444(0x86)]({'isFromAdapter':!0x0});}}),await this[_0xa40ffa(0xd7)](_0x157ec4);}[_0x59718f(0xc1)](){const _0x39fc89=_0x59718f;if(this[_0x39fc89(0xbf)]instanceof _0x59fc24){const _0x4fc668=this[_0x39fc89(0xbf)][_0x39fc89(0x9f)][_0x39fc89(0x94)](_0x39fc89(0xa4));this[_0x39fc89(0xb0)](_0x4fc668);}}[_0x59718f(0xb0)](_0x50c1ed){const _0x1c3207=_0x59718f;if(!this[_0x1c3207(0xc2)][_0x1c3207(0xb8)](_0x50c1ed))throw new _0x578fe2(_0x1c3207(0xc7),null,{'channelId':_0x50c1ed});this[_0x1c3207(0xad)](_0x50c1ed)[_0x1c3207(0x81)](),this[_0x1c3207(0xc2)][_0x1c3207(0xb2)](_0x50c1ed);}async[_0x59718f(0xc9)](){const _0x2415ec=_0x59718f;for(const _0x458617 of this[_0x2415ec(0xc2)][_0x2415ec(0xcb)]())await this[_0x2415ec(0xd7)](_0x458617);if(this[_0x2415ec(0xbf)]instanceof _0x59fc24){const _0xb1858=this[_0x2415ec(0xbf)][_0x2415ec(0x9f)][_0x2415ec(0x94)](_0x2415ec(0xa4)),_0x257149=this[_0x2415ec(0xbf)][_0x2415ec(0x8b)][_0x2415ec(0x94)](_0x2227e3);_0x257149[_0x2415ec(0x8d)](_0xb1858);const _0xa89cc9=await this[_0x2415ec(0xc2)][_0x2415ec(0x94)](_0xb1858)[_0x2415ec(0x9c)]();_0x257149[_0x2415ec(0xbb)](_0xb1858,_0xa89cc9);}}async[_0x59718f(0xd7)](_0x46f517){const _0x59efbb=_0x59718f,{connection:_0x18c69e}=this[_0x59efbb(0xbf)][_0x59efbb(0x8b)][_0x59efbb(0x94)](_0x4d2ef8),_0x2a24ad=this[_0x59efbb(0xbf)][_0x59efbb(0x8b)][_0x59efbb(0x94)](_0x59efbb(0x85)),_0x11e3f7=this[_0x59efbb(0xc2)][_0x59efbb(0x94)](_0x46f517),_0x1bfb78=await _0x11e3f7[_0x59efbb(0xa7)](_0x18c69e);await this[_0x59efbb(0x9a)](_0x1bfb78);const _0x26425a=new Set(Array[_0x59efbb(0xc3)](_0x2a24ad[_0x59efbb(0xa9)]({'channelId':_0x46f517}),_0x9b7fb7=>_0x9b7fb7['id']));for(const _0x405090 of _0x1bfb78)_0x405090[_0x59efbb(0xd5)]||_0x26425a[_0x59efbb(0xb2)](_0x405090[_0x59efbb(0x87)]);for(const _0x293bda of _0x26425a)_0x2a24ad[_0x59efbb(0x7f)](_0x293bda)[_0x59efbb(0x86)]({'isFromAdapter':!0x0});for(const _0x2c1be4 of _0x1bfb78){let _0x5e6462=_0x2a24ad[_0x59efbb(0x7f)](_0x2c1be4[_0x59efbb(0x87)]);const {commentThreadId:_0x27264a,context:_0x10727e,attributes:_0x22b9d6,resolvedBy:_0x19ca20,resolvedAt:_0x1ed73a,unlinkedAt:_0x151d94,deletedAt:_0x32b0d0}=_0x2c1be4;if(_0x32b0d0)continue;_0x5e6462||(_0x5e6462=_0x2a24ad[_0x59efbb(0xc6)]({'channelId':_0x46f517,'threadId':_0x27264a,'context':_0x10727e,'attributes':_0x22b9d6||{},'resolvedBy':_0x19ca20,'resolvedAt':_0x1ed73a,'unlinkedAt':_0x151d94,'isFromAdapter':!0x0}));const _0x2f3e73=new Set(Array[_0x59efbb(0xc3)](_0x5e6462[_0x59efbb(0x79)],_0x115701=>_0x115701['id']));for(const _0x8a1129 of _0x2c1be4[_0x59efbb(0x79)])_0x2f3e73[_0x59efbb(0xb2)](_0x8a1129[_0x59efbb(0xce)]);for(const _0x53a222 of _0x2f3e73)_0x5e6462[_0x59efbb(0xd6)](_0x53a222)[_0x59efbb(0x86)]({'isFromAdapter':!0x0});for(const _0x117659 of _0x2c1be4[_0x59efbb(0x79)]){const _0x368c91=_0x5e6462[_0x59efbb(0xd6)](_0x117659[_0x59efbb(0xce)]);_0x368c91?_0x368c91[_0x59efbb(0x78)]!==_0x117659[_0x59efbb(0x78)]&&_0x368c91[_0x59efbb(0xa1)]({'content':_0x117659[_0x59efbb(0x78)],'isFromAdapter':!0x0}):_0x5e6462[_0x59efbb(0x95)](Object[_0x59efbb(0x96)](S(_0x117659),{'isFromAdapter':!0x0}));}}}[_0x59718f(0xad)](_0x56566f){const _0x57c65e=_0x59718f;if(!this[_0x57c65e(0xc2)][_0x57c65e(0xb8)](_0x56566f))throw new _0x578fe2(_0x57c65e(0x80),null,{'channelId':_0x56566f});return this[_0x57c65e(0xc2)][_0x57c65e(0x94)](_0x56566f);}async[_0x59718f(0x9a)](_0x477073){const _0x4faca8=_0x59718f,_0x35208f=this[_0x4faca8(0xbf)][_0x4faca8(0x8b)][_0x4faca8(0x94)](_0x3f118d),{connection:_0x5df9d2}=this[_0x4faca8(0xbf)][_0x4faca8(0x8b)][_0x4faca8(0x94)](_0x4d2ef8),_0x2a8d5a=new Set();for(const {resolvedBy:_0x2db21b,comments:_0x2e30d6}of _0x477073){_0x2db21b&&!_0x35208f[_0x4faca8(0xb4)](_0x2db21b)&&_0x2a8d5a[_0x4faca8(0xcf)](_0x2db21b);for(const {userId:_0x40621c}of _0x2e30d6)_0x35208f[_0x4faca8(0xb4)](_0x40621c)||_0x2a8d5a[_0x4faca8(0xcf)](_0x40621c);}if(0x0===_0x2a8d5a[_0x4faca8(0x89)])return;const _0x105869=await _0x6aca9a[_0x4faca8(0x72)](_0x5df9d2,Array[_0x4faca8(0xc3)](_0x2a8d5a));for(const _0x387dcd of _0x105869)_0x35208f[_0x4faca8(0xb4)](_0x387dcd['id'])||_0x35208f[_0x4faca8(0x91)](_0x387dcd);}}async function F(_0x1da977){const _0x1ee878=_0x59718f;if(_0x1ee878(0x7c)!==_0x1da977[_0x1ee878(0x7a)])throw _0x1da977;}function k(_0x543bd3){const _0x38e0ff=_0x59718f;if((_0x4d874f=_0x543bd3)[_0x38e0ff(0xd3)][_0x38e0ff(0x9b)](_0x38e0ff(0xaa))||_0x4d874f[_0x38e0ff(0xd3)][_0x38e0ff(0x9b)](_0x38e0ff(0x7d))||_0x4d874f[_0x38e0ff(0xd3)][_0x38e0ff(0x9b)](_0x38e0ff(0xa2)))return new Promise(()=>{});var _0x4d874f;throw _0x543bd3;}function _0x252b(){const _0x4420ae=['addUser','permissions','init','get','addComment','assign','updateComment','resolvedAt','isOfficialPlugin','_fetchMissingUsersForThreads','startsWith','getConnectedSessions','reopen','512924PeFIiA','config','3763924uGqQNJ','update','cloud-services-internal-error:\x20Request\x20timeout.','updateCommentThread','collaboration.channelId','attributes','5231250FlMrJp','connect','CommentsService','getCommentThreads','cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.','off','700492swNfIk','_getService','removeComment','resolvedBy','_terminateService','isPremiumPlugin','delete','6xSbNih','getUser','cloudservicescommentsadapter-connect-already-connected','set','Permissions','has','mySessionId','415772jhSYCD','register','1677250JOqjdK','commentThreadResolved','_setUpService','context','map','destroy','_services','from','authorId','catch','addCommentThread','cloudservicescommentsadapter-disconnect-not-exist','addToReconnectionStack','reconnect','88MFciLl','keys','3605574JkPkVq','reopenCommentThread','commentId','add','commentRemoved','commentUpdated','createdAt','message','commentThreadReopened','deletedAt','getComment','_connectService','getMany','setPermissions','CloudServicesCommentsAdapter','pluginName','userId','5HuVHuc','content','comments','code','removeCommentThread','404','cloud-services-internal-error:\x20Not\x20connected.','commentThreadRemoved','getCommentThread','cloudservicescommentsadapter-service-not-exist','disconnect','requires','adapter','resolve','CommentsRepository','remove','commentThreadId','resolveCommentThread','size','sessionAdd:','plugins','commentThreadUpdated','unregister','commentAdded','commentThreadAdded','listenTo'];_0x252b=function(){return _0x4420ae;};return _0x252b();}function S(_0x4c3b41){const _0x8509ae=_0x59718f;return{'threadId':_0x4c3b41[_0x8509ae(0x87)],'commentId':_0x4c3b41[_0x8509ae(0xce)],'content':_0x4c3b41[_0x8509ae(0x78)],'createdAt':_0x4c3b41[_0x8509ae(0xd2)],'authorId':_0x4c3b41[_0x8509ae(0x76)],'attributes':_0x4c3b41[_0x8509ae(0xa5)]||{}};}
23
+ const _0x2801e0=_0xa04a;(function(_0x4f5e85,_0x39285a){const _0x4d87db=_0xa04a,_0x18473e=_0x4f5e85();while(!![]){try{const _0x3c1194=parseInt(_0x4d87db(0x216))/0x1*(-parseInt(_0x4d87db(0x1e3))/0x2)+-parseInt(_0x4d87db(0x213))/0x3+-parseInt(_0x4d87db(0x219))/0x4+parseInt(_0x4d87db(0x1ed))/0x5+-parseInt(_0x4d87db(0x1e7))/0x6+parseInt(_0x4d87db(0x1ee))/0x7*(-parseInt(_0x4d87db(0x1df))/0x8)+parseInt(_0x4d87db(0x221))/0x9;if(_0x3c1194===_0x39285a)break;else _0x18473e['push'](_0x18473e['shift']());}catch(_0x12f3b8){_0x18473e['push'](_0x18473e['shift']());}}}(_0x5867,0xdd0d8));import{Context as _0x1f1ee4,ContextPlugin as _0x2676b9}from'ckeditor5/src/core.js';import{CKEditorError as _0x4477e4}from'ckeditor5/src/utils.js';import{Users as _0x1c3691}from'ckeditor5-collaboration/src/collaboration-core.js';import{CommentsService as _0x4eca42,User as _0x5b0116}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x2e568c}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x2335c2}from'../realtimecollaborativeediting/sessions.js';function _0x5867(){const _0x132ffb=['createdAt','getCommentThreads','1831424SWqkqe','getCommentThread','removeCommentThread','code','adapter','commentThreadRemoved','content','commentUpdated','30308994GZTGYZ','keys','userId','cloudservicescommentsadapter-service-not-exist','commentRemoved','CommentsRepository','permissions','startsWith','sessionAdd:','isPremiumPlugin','reconnect','set','_connectService','listenTo','register','setPermissions','authorId','getConnectedSessions','size','Permissions','add','cloud-services-internal-error:\x20Request\x20timeout.','remove','attributes','_fetchMissingUsersForThreads','_terminateService','updateCommentThread','off','deletedAt','_setUpService','removeComment','config','update','plugins','collaboration.channelId','16yfBVIu','delete','destroy','addUser','1846986WQAbbX','has','cloud-services-internal-error:\x20Not\x20connected.','getComment','1836420tAmbIt','commentThreadResolved','reopenCommentThread','message','commentThreadId','resolvedAt','8653370yHflnU','3297133LOAmdH','addComment','404','getUser','cloudservicescommentsadapter-disconnect-not-exist','unregister','disconnect','updateComment','CloudServicesCommentsAdapter','isOfficialPlugin','map','addToReconnectionStack','commentId','_getService','context','cloudservicescommentsadapter-connect-already-connected','_services','reopen','get','catch','commentAdded','resolveCommentThread','cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.','mySessionId','resolvedBy','pluginName','comments','commentThreadUpdated','commentThreadReopened','from','commentThreadAdded','addCommentThread','resolve','requires','connect','init','getMany','4690353HWJVeT','assign','CommentsService','1RgSjUn'];_0x5867=function(){return _0x132ffb;};return _0x5867();}export class CloudServicesCommentsAdapter extends _0x2676b9{static [_0x2801e0(0x215)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x4eca42)());[_0x2801e0(0x1fe)];static get[_0x2801e0(0x20f)](){const _0x41c12e=_0x2801e0;return[_0x2e568c,_0x41c12e(0x1c1),_0x2335c2,_0x1c3691];}static get[_0x2801e0(0x207)](){const _0x29fad9=_0x2801e0;return _0x29fad9(0x1f6);}static get[_0x2801e0(0x1f7)](){return!0x0;}static get[_0x2801e0(0x1c5)](){return!0x0;}constructor(_0x3d6d52){const _0x1907b8=_0x2801e0;super(_0x3d6d52),this[_0x1907b8(0x1fe)]=new Map();}async[_0x2801e0(0x211)](){const _0xa78b39=_0x2801e0,_0x4b9a6b=this[_0xa78b39(0x1fc)],_0xc17cdb=_0x4b9a6b[_0xa78b39(0x1dd)][_0xa78b39(0x200)](_0xa78b39(0x1c1));if(_0x4b9a6b[_0xa78b39(0x1dd)][_0xa78b39(0x200)](_0x2e568c)[_0xa78b39(0x1f9)](this),_0xc17cdb[_0xa78b39(0x21d)]={'addCommentThread':async({channelId:_0x296bbd,threadId:_0x25cbcf,comments:_0x4fea61,resolvedAt:_0x418993,resolvedBy:_0x304c73,context:_0x2fbf61,attributes:_0x59af78})=>{const _0x358d1=_0xa78b39,_0x5a29a7=await this[_0x358d1(0x1fb)](_0x296bbd)[_0x358d1(0x20d)]({'commentThreadId':_0x25cbcf,'comments':_0x4fea61[_0x358d1(0x1f8)](_0xfb5a2d=>function(_0x173a4a,_0x93c8a7,_0xaea54a){const _0x4acfa9=_0x358d1;return{'commentThreadId':_0xaea54a,'commentId':_0x173a4a[_0x4acfa9(0x1fa)],'userId':_0x173a4a[_0x4acfa9(0x1cc)],'content':_0x173a4a[_0x4acfa9(0x21f)],'documentId':_0x93c8a7,'createdAt':_0x173a4a[_0x4acfa9(0x217)],'attributes':_0x173a4a[_0x4acfa9(0x1d3)]||{}};}(_0xfb5a2d,_0x296bbd,_0x25cbcf)),'resolvedAt':_0x418993,'resolvedBy':_0x304c73,'context':_0x2fbf61,'attributes':_0x59af78})[_0x358d1(0x201)](A);return{'threadId':_0x5a29a7[_0x358d1(0x1eb)],'comments':_0x5a29a7[_0x358d1(0x208)]};},'getCommentThread':async({channelId:_0x34f9a7,threadId:_0x4518f0})=>{const _0x18241f=_0xa78b39,_0x430193=await this[_0x18241f(0x1fb)](_0x34f9a7)[_0x18241f(0x21a)](_0x4518f0)[_0x18241f(0x201)](f)[_0x18241f(0x201)](A);return _0x430193?_0x430193[_0x18241f(0x1d8)]?null:(await this[_0x18241f(0x1d4)]([_0x430193]),{'threadId':_0x430193[_0x18241f(0x1eb)],'comments':_0x430193[_0x18241f(0x208)][_0x18241f(0x1f8)](p),'context':_0x430193[_0x18241f(0x1fc)],'resolvedAt':_0x430193[_0x18241f(0x1ec)],'resolvedBy':_0x430193[_0x18241f(0x206)],'attributes':_0x430193[_0x18241f(0x1d3)]||{}}):null;},'updateCommentThread':async({channelId:_0xc3d338,threadId:_0x4f675d,context:_0x3a5176,unlinkedAt:_0x159e98,attributes:_0x5d1a5e})=>this[_0xa78b39(0x1fb)](_0xc3d338)[_0xa78b39(0x1d6)]({'commentThreadId':_0x4f675d,'context':_0x3a5176,'attributes':_0x5d1a5e,'unlinkedAt':_0x159e98})[_0xa78b39(0x201)](f)[_0xa78b39(0x201)](A),'resolveCommentThread':async({channelId:_0x3dc789,threadId:_0x20bda8})=>{const _0x357fbc=_0xa78b39,_0x446cef=await this[_0x357fbc(0x1fb)](_0x3dc789)[_0x357fbc(0x203)](_0x20bda8)[_0x357fbc(0x201)](f)[_0x357fbc(0x201)](A);return{'threadId':_0x446cef[_0x357fbc(0x1eb)],'resolvedAt':_0x446cef[_0x357fbc(0x1ec)],'resolvedBy':_0x446cef[_0x357fbc(0x206)]};},'reopenCommentThread':async({channelId:_0xdcef5f,threadId:_0x46290a})=>this[_0xa78b39(0x1fb)](_0xdcef5f)[_0xa78b39(0x1e9)](_0x46290a)[_0xa78b39(0x201)](f)[_0xa78b39(0x201)](A),'removeCommentThread':({channelId:_0x13e42e,threadId:_0x3ee65c})=>this[_0xa78b39(0x1fb)](_0x13e42e)[_0xa78b39(0x21b)](_0x3ee65c)[_0xa78b39(0x201)](f)[_0xa78b39(0x201)](A),'addComment':({channelId:_0x5bb008,threadId:_0x400230,commentId:_0x19af51,content:_0x3a57e0,attributes:_0x555752})=>this[_0xa78b39(0x1fb)](_0x5bb008)[_0xa78b39(0x1ef)](_0x400230,_0x19af51,_0x3a57e0,_0x555752)[_0xa78b39(0x201)](A),'updateComment':({channelId:_0x3b57d9,threadId:_0x4bb5d9,commentId:_0x3d033b,content:_0xffd1de,attributes:_0x6a7966})=>this[_0xa78b39(0x1fb)](_0x3b57d9)[_0xa78b39(0x1f5)](_0x4bb5d9,_0x3d033b,_0xffd1de,_0x6a7966)[_0xa78b39(0x201)](f)[_0xa78b39(0x201)](A),'removeComment':({channelId:_0x346982,threadId:_0x1fb5f6,commentId:_0x3a4cf7})=>this[_0xa78b39(0x1fb)](_0x346982)[_0xa78b39(0x1da)](_0x1fb5f6,_0x3a4cf7)[_0xa78b39(0x201)](f)[_0xa78b39(0x201)](A)},_0x4b9a6b instanceof _0x1f1ee4){const _0x45d62b=_0x4b9a6b[_0xa78b39(0x1db)][_0xa78b39(0x200)](_0xa78b39(0x1de)),_0x3d0c65=_0x4b9a6b[_0xa78b39(0x1dd)][_0xa78b39(0x200)](_0x2335c2);await this[_0xa78b39(0x1d9)](_0x45d62b);const _0x5af2a7=await this[_0xa78b39(0x1fe)][_0xa78b39(0x200)](_0x45d62b)[_0xa78b39(0x1cd)]();this[_0xa78b39(0x1c9)](_0x3d0c65,_0xa78b39(0x1c4)+_0x45d62b,(_0x259c83,{session:_0x5a96ca})=>{const _0x5a90d1=_0xa78b39;_0x5a96ca['id']===_0x3d0c65[_0x5a90d1(0x205)]&&(_0x259c83[_0x5a90d1(0x1d7)](),this[_0x5a90d1(0x1fc)][_0x5a90d1(0x1dd)][_0x5a90d1(0x200)](_0x5a90d1(0x1cf))[_0x5a90d1(0x1cb)](_0x5a96ca[_0x5a90d1(0x1c2)],_0x45d62b));}),_0x3d0c65[_0xa78b39(0x1ca)](_0x45d62b,_0x5af2a7);}}async[_0x2801e0(0x1d9)](_0x261a9c){const _0xaf61f9=_0x2801e0;if(this[_0xaf61f9(0x1fe)][_0xaf61f9(0x1e4)](_0x261a9c))throw new _0x4477e4(_0xaf61f9(0x1fd),null,{'channelId':_0x261a9c});const _0x4335f1=this[_0xaf61f9(0x1fc)][_0xaf61f9(0x1dd)][_0xaf61f9(0x200)](_0xaf61f9(0x1c1)),_0x4b7aac=new CloudServicesCommentsAdapter[(_0xaf61f9(0x215))](_0x261a9c);this[_0xaf61f9(0x1fe)][_0xaf61f9(0x1c7)](_0x261a9c,_0x4b7aac),this[_0xaf61f9(0x1c9)](_0x4b7aac,_0xaf61f9(0x20c),(_0x35d909,_0x3cbc32)=>{const _0x1e947d=_0xaf61f9,{commentThreadId:_0x202133,documentId:_0xe0110b,context:_0x52d222,attributes:_0xea29b3,resolvedAt:_0x264dc0,resolvedBy:_0xb0533f,comments:_0x42faf5}=_0x3cbc32;_0x4335f1[_0x1e947d(0x21a)](_0x202133)||_0x4335f1[_0x1e947d(0x20d)]({'threadId':_0x202133,'channelId':_0xe0110b,'comments':_0x42faf5?_0x42faf5[_0x1e947d(0x1f8)](p):[],'context':_0x52d222,'attributes':_0xea29b3,'resolvedAt':_0x264dc0,'resolvedBy':_0xb0533f,'isFromAdapter':!0x0});}),this[_0xaf61f9(0x1c9)](_0x4b7aac,_0xaf61f9(0x209),(_0x29e423,{commentThreadId:_0x506095,documentId:_0x18d208,context:_0x5797d6,unlinkedAt:_0x10744a,attributes:_0x3dbe33})=>{const _0x1721e3=_0xaf61f9;_0x4335f1[_0x1721e3(0x21a)](_0x506095)&&_0x4335f1[_0x1721e3(0x1d6)]({'threadId':_0x506095,'channelId':_0x18d208,'context':_0x5797d6,'unlinkedAt':_0x10744a,'attributes':_0x3dbe33,'isFromAdapter':!0x0});}),this[_0xaf61f9(0x1c9)](_0x4b7aac,_0xaf61f9(0x1e8),(_0x312290,{commentThreadId:_0x447934,resolvedBy:_0x382c38,resolvedAt:_0x313cf7})=>{const _0xb6d44d=_0xaf61f9,_0x20ed6d=_0x4335f1[_0xb6d44d(0x21a)](_0x447934);_0x20ed6d&&_0x20ed6d[_0xb6d44d(0x20e)]({'resolvedBy':_0x382c38,'resolvedAt':_0x313cf7,'isFromAdapter':!0x0});}),this[_0xaf61f9(0x1c9)](_0x4b7aac,_0xaf61f9(0x20a),(_0x2f765c,{commentThreadId:_0x4c3ee9})=>{const _0x1a56ce=_0xaf61f9,_0x530689=_0x4335f1[_0x1a56ce(0x21a)](_0x4c3ee9);_0x530689&&_0x530689[_0x1a56ce(0x1ff)]({'isFromAdapter':!0x0});}),this[_0xaf61f9(0x1c9)](_0x4b7aac,_0xaf61f9(0x21e),(_0x1ff77c,{commentThreadId:_0x142d69})=>{const _0x33ddb5=_0xaf61f9,_0x372d1e=_0x4335f1[_0x33ddb5(0x21a)](_0x142d69);_0x372d1e&&_0x372d1e[_0x33ddb5(0x1d2)]({'isFromAdapter':!0x0});}),this[_0xaf61f9(0x1c9)](_0x4b7aac,_0xaf61f9(0x202),(_0x2b696e,_0x598450)=>{const _0x40a5c7=_0xaf61f9,_0x4d2036=_0x598450[_0x40a5c7(0x1eb)],_0x301213=_0x4335f1[_0x40a5c7(0x21a)](_0x4d2036);_0x301213&&_0x301213[_0x40a5c7(0x1ef)]({...p(_0x598450),'isFromAdapter':!0x0});}),this[_0xaf61f9(0x1c9)](_0x4b7aac,_0xaf61f9(0x220),(_0x33230c,{commentThreadId:_0xb9f228,commentId:_0x5893b8,content:_0x450359,attributes:_0x5b5857})=>{const _0x4f6cac=_0xaf61f9,_0x1b055b=_0x4335f1[_0x4f6cac(0x21a)](_0xb9f228);if(_0x1b055b){const _0x3acdaf=_0x1b055b[_0x4f6cac(0x1e6)](_0x5893b8);_0x3acdaf&&_0x3acdaf[_0x4f6cac(0x1dc)]({'content':_0x450359,'attributes':_0x5b5857,'isFromAdapter':!0x0});}}),this[_0xaf61f9(0x1c9)](_0x4b7aac,_0xaf61f9(0x225),(_0x1e3e58,{commentThreadId:_0x4b4c0d,commentId:_0x19edac})=>{const _0x440590=_0xaf61f9,_0x16763b=_0x4335f1[_0x440590(0x21a)](_0x4b4c0d);if(_0x16763b){const _0x12a9d4=_0x16763b[_0x440590(0x1e6)](_0x19edac);_0x12a9d4&&_0x12a9d4[_0x440590(0x1d2)]({'isFromAdapter':!0x0});}}),await this[_0xaf61f9(0x1c8)](_0x261a9c);}[_0x2801e0(0x1e1)](){const _0x402b4c=_0x2801e0;if(this[_0x402b4c(0x1fc)]instanceof _0x1f1ee4){const _0x40ab6c=this[_0x402b4c(0x1fc)][_0x402b4c(0x1db)][_0x402b4c(0x200)](_0x402b4c(0x1de));this[_0x402b4c(0x1d5)](_0x40ab6c);}}[_0x2801e0(0x1d5)](_0x8b3525){const _0x20252a=_0x2801e0;if(!this[_0x20252a(0x1fe)][_0x20252a(0x1e4)](_0x8b3525))throw new _0x4477e4(_0x20252a(0x1f2),null,{'channelId':_0x8b3525});this[_0x20252a(0x1fb)](_0x8b3525)[_0x20252a(0x1f4)](),this[_0x20252a(0x1fe)][_0x20252a(0x1e0)](_0x8b3525);}async[_0x2801e0(0x1c6)](){const _0x85cc00=_0x2801e0;for(const _0x188eb6 of this[_0x85cc00(0x1fe)][_0x85cc00(0x222)]())await this[_0x85cc00(0x1c8)](_0x188eb6);if(this[_0x85cc00(0x1fc)]instanceof _0x1f1ee4){const _0x5d091d=this[_0x85cc00(0x1fc)][_0x85cc00(0x1db)][_0x85cc00(0x200)](_0x85cc00(0x1de)),_0x20d41e=this[_0x85cc00(0x1fc)][_0x85cc00(0x1dd)][_0x85cc00(0x200)](_0x2335c2);_0x20d41e[_0x85cc00(0x1f3)](_0x5d091d);const _0x33941b=await this[_0x85cc00(0x1fe)][_0x85cc00(0x200)](_0x5d091d)[_0x85cc00(0x1cd)]();_0x20d41e[_0x85cc00(0x1ca)](_0x5d091d,_0x33941b);}}async[_0x2801e0(0x1c8)](_0x10d9d3){const _0x2bf544=_0x2801e0,{connection:_0x293b3d}=this[_0x2bf544(0x1fc)][_0x2bf544(0x1dd)][_0x2bf544(0x200)](_0x2e568c),_0x1c49ad=this[_0x2bf544(0x1fc)][_0x2bf544(0x1dd)][_0x2bf544(0x200)](_0x2bf544(0x1c1)),_0x553dd8=this[_0x2bf544(0x1fe)][_0x2bf544(0x200)](_0x10d9d3),_0x55ff90=await _0x553dd8[_0x2bf544(0x210)](_0x293b3d);await this[_0x2bf544(0x1d4)](_0x55ff90);const _0x45a9bf=new Set(Array[_0x2bf544(0x20b)](_0x1c49ad[_0x2bf544(0x218)]({'channelId':_0x10d9d3}),_0x5d8885=>_0x5d8885['id']));for(const _0x4dc638 of _0x55ff90)_0x4dc638[_0x2bf544(0x1d8)]||_0x45a9bf[_0x2bf544(0x1e0)](_0x4dc638[_0x2bf544(0x1eb)]);for(const _0x102032 of _0x45a9bf)_0x1c49ad[_0x2bf544(0x21a)](_0x102032)[_0x2bf544(0x1d2)]({'isFromAdapter':!0x0});for(const _0x1e5a13 of _0x55ff90){let _0xbe726a=_0x1c49ad[_0x2bf544(0x21a)](_0x1e5a13[_0x2bf544(0x1eb)]);const {commentThreadId:_0xd76c2b,context:_0x3f488a,attributes:_0x5417f4,resolvedBy:_0x24ab8b,resolvedAt:_0x36d31a,unlinkedAt:_0x13fa6b,deletedAt:_0x4f2230}=_0x1e5a13;if(_0x4f2230)continue;_0xbe726a||(_0xbe726a=_0x1c49ad[_0x2bf544(0x20d)]({'channelId':_0x10d9d3,'threadId':_0xd76c2b,'context':_0x3f488a,'attributes':_0x5417f4||{},'resolvedBy':_0x24ab8b,'resolvedAt':_0x36d31a,'unlinkedAt':_0x13fa6b,'isFromAdapter':!0x0}));const _0x2692df=new Set(Array[_0x2bf544(0x20b)](_0xbe726a[_0x2bf544(0x208)],_0x5daf8c=>_0x5daf8c['id']));for(const _0x5b9928 of _0x1e5a13[_0x2bf544(0x208)])_0x2692df[_0x2bf544(0x1e0)](_0x5b9928[_0x2bf544(0x1fa)]);for(const _0x1da8a9 of _0x2692df)_0xbe726a[_0x2bf544(0x1e6)](_0x1da8a9)[_0x2bf544(0x1d2)]({'isFromAdapter':!0x0});for(const _0x4638cb of _0x1e5a13[_0x2bf544(0x208)]){const _0x3bd8c7=_0xbe726a[_0x2bf544(0x1e6)](_0x4638cb[_0x2bf544(0x1fa)]);_0x3bd8c7?_0x3bd8c7[_0x2bf544(0x21f)]!==_0x4638cb[_0x2bf544(0x21f)]&&_0x3bd8c7[_0x2bf544(0x1dc)]({'content':_0x4638cb[_0x2bf544(0x21f)],'isFromAdapter':!0x0}):_0xbe726a[_0x2bf544(0x1ef)](Object[_0x2bf544(0x214)](p(_0x4638cb),{'isFromAdapter':!0x0}));}}}[_0x2801e0(0x1fb)](_0x1c6e2a){const _0x4de5cd=_0x2801e0;if(!this[_0x4de5cd(0x1fe)][_0x4de5cd(0x1e4)](_0x1c6e2a))throw new _0x4477e4(_0x4de5cd(0x224),null,{'channelId':_0x1c6e2a});return this[_0x4de5cd(0x1fe)][_0x4de5cd(0x200)](_0x1c6e2a);}async[_0x2801e0(0x1d4)](_0x561dc0){const _0x3fec50=_0x2801e0,_0x27f182=this[_0x3fec50(0x1fc)][_0x3fec50(0x1dd)][_0x3fec50(0x200)](_0x1c3691),{connection:_0x15d3eb}=this[_0x3fec50(0x1fc)][_0x3fec50(0x1dd)][_0x3fec50(0x200)](_0x2e568c),_0x534472=new Set();for(const {resolvedBy:_0x44071a,comments:_0x583b22}of _0x561dc0){_0x44071a&&!_0x27f182[_0x3fec50(0x1f1)](_0x44071a)&&_0x534472[_0x3fec50(0x1d0)](_0x44071a);for(const {userId:_0x1ab71e}of _0x583b22)_0x27f182[_0x3fec50(0x1f1)](_0x1ab71e)||_0x534472[_0x3fec50(0x1d0)](_0x1ab71e);}if(0x0===_0x534472[_0x3fec50(0x1ce)])return;const _0xa875fa=await _0x5b0116[_0x3fec50(0x212)](_0x15d3eb,Array[_0x3fec50(0x20b)](_0x534472));for(const _0x36f281 of _0xa875fa)_0x27f182[_0x3fec50(0x1f1)](_0x36f281['id'])||_0x27f182[_0x3fec50(0x1e2)](_0x36f281);}}async function f(_0x1c6fad){const _0x335496=_0x2801e0;if(_0x335496(0x1f0)!==_0x1c6fad[_0x335496(0x21c)])throw _0x1c6fad;}function _0xa04a(_0x35c37f,_0x59a3e0){const _0x5867a2=_0x5867();return _0xa04a=function(_0xa04a1f,_0x3e6f28){_0xa04a1f=_0xa04a1f-0x1c1;let _0x9912f6=_0x5867a2[_0xa04a1f];return _0x9912f6;},_0xa04a(_0x35c37f,_0x59a3e0);}function A(_0x2caa66){const _0x129ee6=_0x2801e0;if((_0xc6cbab=_0x2caa66)[_0x129ee6(0x1ea)][_0x129ee6(0x1c3)](_0x129ee6(0x204))||_0xc6cbab[_0x129ee6(0x1ea)][_0x129ee6(0x1c3)](_0x129ee6(0x1e5))||_0xc6cbab[_0x129ee6(0x1ea)][_0x129ee6(0x1c3)](_0x129ee6(0x1d1)))return new Promise(()=>{});var _0xc6cbab;throw _0x2caa66;}function p(_0x3a9d2c){const _0x549e9f=_0x2801e0;return{'threadId':_0x3a9d2c[_0x549e9f(0x1eb)],'commentId':_0x3a9d2c[_0x549e9f(0x1fa)],'content':_0x3a9d2c[_0x549e9f(0x21f)],'createdAt':_0x3a9d2c[_0x549e9f(0x217)],'authorId':_0x3a9d2c[_0x549e9f(0x223)],'attributes':_0x3a9d2c[_0x549e9f(0x1d3)]||{}};}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f175c=_0x23d1;(function(_0x23ebce,_0x43c097){const _0x24db78=_0x23d1,_0x266768=_0x23ebce();while(!![]){try{const _0x32fd69=-parseInt(_0x24db78(0x120))/0x1+parseInt(_0x24db78(0x1ae))/0x2*(-parseInt(_0x24db78(0x1dd))/0x3)+-parseInt(_0x24db78(0x19a))/0x4+-parseInt(_0x24db78(0x181))/0x5*(-parseInt(_0x24db78(0x124))/0x6)+-parseInt(_0x24db78(0xf6))/0x7*(-parseInt(_0x24db78(0x1d5))/0x8)+parseInt(_0x24db78(0x1b3))/0x9*(-parseInt(_0x24db78(0x142))/0xa)+parseInt(_0x24db78(0x156))/0xb*(parseInt(_0x24db78(0x161))/0xc);if(_0x32fd69===_0x43c097)break;else _0x266768['push'](_0x266768['shift']());}catch(_0x5e10bb){_0x266768['push'](_0x266768['shift']());}}}(_0x4d1a,0x5a2f1));import{Plugin as _0x2f00ba,PendingActions as _0x56c9eb}from'ckeditor5/src/core.js';import{CKEditorError as _0x253266,version as _0x37f691,uid as _0x121839}from'ckeditor5/src/utils.js';import{Notification as _0x18a126}from'ckeditor5/src/ui.js';import{transformOperationSets as _0x459d1c,NoOperation as _0x108b5e,InsertOperation as _0x311fc7,MarkerOperation as _0x3a9ef4,RootAttributeOperation as _0x16b6fa,OperationFactory as _0xea8df2,History as _0x2f75d8}from'ckeditor5/src/engine.js';import{WebSocketGateway as _0x162f75}from'./websocketgateway.js';import{Sessions as _0x30cef9}from'./sessions.js';import{UserMarkers as _0x1397c1}from'./usermarkers.js';function _0x23d1(_0x388766,_0x4cb535){const _0x4d1ae7=_0x4d1a();return _0x23d1=function(_0x23d1a9,_0x11a2b1){_0x23d1a9=_0x23d1a9-0xd8;let _0x55952f=_0x4d1ae7[_0x23d1a9];return _0x55952f;},_0x23d1(_0x388766,_0x4cb535);}import{getTranslation as _0xdd4532}from'../common-translations.js';import{Compressor as _0x41b3aa}from'@ckeditor/ckeditor5-operations-compressor';import{Users as _0x2eb199}from'ckeditor5-collaboration/src/collaboration-core.js';import{User as _0x5266a2,CollaborativeEditingService as _0x446b0f}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';let Q=0x1;export class RealTimeCollaborationClient extends _0x2f00ba{static [_0x3f175c(0x1be)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x446b0f)());[_0x3f175c(0x178)];[_0x3f175c(0x1af)];[_0x3f175c(0x1cc)];[_0x3f175c(0x152)];[_0x3f175c(0x1a1)];[_0x3f175c(0x13c)];[_0x3f175c(0xdc)];[_0x3f175c(0xea)];[_0x3f175c(0x196)];[_0x3f175c(0x11e)];[_0x3f175c(0x171)];[_0x3f175c(0xe4)];[_0x3f175c(0x17c)];[_0x3f175c(0xf2)];[_0x3f175c(0x179)];[_0x3f175c(0x116)];[_0x3f175c(0x1bc)];[_0x3f175c(0xd9)];static get[_0x3f175c(0x169)](){return[_0x162f75,_0x30cef9,_0x1397c1,_0x56c9eb,_0x2eb199,_0x18a126];}static get[_0x3f175c(0x125)](){const _0x177cf0=_0x3f175c;return _0x177cf0(0x1d6);}static get[_0x3f175c(0x143)](){return!0x0;}static get[_0x3f175c(0x12b)](){return!0x0;}get[_0x3f175c(0x1ba)](){const _0x2d8f87=_0x3f175c;return this[_0x2d8f87(0xe3)]+this[_0x2d8f87(0x178)];}get[_0x3f175c(0xe3)](){const _0x349de2=_0x3f175c;return this[_0x349de2(0x1cc)][_0x349de2(0x13f)]-this[_0x349de2(0x178)];}get[_0x3f175c(0x126)](){const _0x50a991=_0x3f175c,_0x28214f=this[_0x50a991(0x1cc)][_0x50a991(0x147)]();for(let _0x1ed424=_0x28214f[_0x50a991(0x19f)]-0x1;_0x1ed424>=0x0;_0x1ed424--){const _0x5cc56b=_0x28214f[_0x1ed424];if(!this[_0x50a991(0x1bc)][_0x50a991(0xff)](_0x5cc56b))return _0x5cc56b[_0x50a991(0x103)]+0x1-this[_0x50a991(0x178)];}return 0x0;}constructor(_0x166af3){const _0x470481=_0x3f175c;if(super(_0x166af3),this[_0x470481(0x178)]=0x0,this[_0x470481(0x1af)]=null,this[_0x470481(0x1cc)]=new _0x2f75d8(),this[_0x470481(0x112)][_0x470481(0xdf)][_0x470481(0x151)](_0x470481(0x164),{}),this[_0x470481(0x152)]=this[_0x470481(0x112)][_0x470481(0xdf)][_0x470481(0x140)](_0x470481(0x19e)),!this[_0x470481(0x152)])throw new _0x253266(_0x470481(0x1dc),this);const _0x1c65f2=_0x166af3[_0x470481(0xdf)][_0x470481(0x140)](_0x470481(0xe8))||_0x37f691;this[_0x470481(0x1a1)]=new RealTimeCollaborationClient[(_0x470481(0x1be))](_0x1c65f2,this[_0x470481(0x152)]),this[_0x470481(0x13c)]=this[_0x470481(0x112)][_0x470481(0x14e)][_0x470481(0x1d9)],this[_0x470481(0xdc)]=new _0x41b3aa(),this[_0x470481(0xea)]=[],this[_0x470481(0x196)]=new WeakSet(),this[_0x470481(0x11e)]=new Set(),this[_0x470481(0xdb)](_0x470481(0xe7),!0x1),this[_0x470481(0xdb)](_0x470481(0x155),!0x1),this[_0x470481(0x171)]=null,this[_0x470481(0xe4)]=!0x1,this[_0x470481(0x17c)]=null,this[_0x470481(0xf2)]=0x12c,this[_0x470481(0x179)]=this[_0x470481(0xf2)],this[_0x470481(0x116)]=null,this[_0x470481(0x1bc)]=new WeakSet(),this[_0x470481(0xd9)]=new Z(this[_0x470481(0x1bc)]);}[_0x3f175c(0x191)](){const _0x2c3fca=_0x3f175c,_0xf8bd5f=this[_0x2c3fca(0x112)],_0x3d3c98=_0xf8bd5f[_0x2c3fca(0x1da)][_0x2c3fca(0x140)](_0x2eb199),_0x3ac0c2=_0xf8bd5f[_0x2c3fca(0x1da)][_0x2c3fca(0x140)](_0x162f75);this[_0x2c3fca(0x150)](_0x3d3c98,_0x2c3fca(0x186),(_0x319835,_0x5c1dd8)=>{const _0x47f567=_0x2c3fca,_0x3d228d=_0x5c1dd8[0x0];_0x3d228d[_0x47f567(0x108)]&&(_0x319835[_0x47f567(0x123)]=_0x3d3c98[_0x47f567(0x1c3)](_0x3d228d[_0x47f567(0x108)]),_0x319835[_0x47f567(0xe5)]()),null===_0x3d228d[_0x47f567(0x108)]&&(_0x319835[_0x47f567(0x123)]=null,_0x319835[_0x47f567(0xe5)]());},{'priority':_0x2c3fca(0x12f)}),this[_0x2c3fca(0x150)](_0xf8bd5f[_0x2c3fca(0x14e)][_0x2c3fca(0x1d9)][_0x2c3fca(0x104)],_0x2c3fca(0x138),(_0x5b7302,_0x574550)=>{const _0x5e0c5b=_0x2c3fca;_0x574550[_0x5e0c5b(0x11b)]&&this[_0x5e0c5b(0x1c7)]();}),this[_0x2c3fca(0x150)](_0xf8bd5f[_0x2c3fca(0x121)][_0x2c3fca(0x106)],_0x2c3fca(0x160),()=>{const _0x351af4=_0x2c3fca;this[_0x351af4(0x1c7)]();}),this[_0x2c3fca(0x1b0)](),_0xf8bd5f[_0x2c3fca(0x14e)]['on'](_0x2c3fca(0x167),(_0x3831db,_0x38670d)=>{const _0x32c4ea=_0x2c3fca,_0x32e7ba=_0x38670d[0x0];_0x32e7ba[_0x32c4ea(0x18c)]&&(this[_0x32c4ea(0x134)](_0x32e7ba),this[_0x32c4ea(0x16f)]()&&this[_0x32c4ea(0x137)]());}),this[_0x2c3fca(0xef)](),this[_0x2c3fca(0x119)](_0x2c3fca(0xf1))['to'](_0x3ac0c2,_0x2c3fca(0x17d),this,_0x2c3fca(0x155),(_0x2bcf4a,_0x6c7502)=>_0x2c3fca(0x17a)===_0x2bcf4a&&!_0x6c7502),this['on'](_0x2c3fca(0x18d),()=>{const _0x253e2f=_0x2c3fca;this[_0x253e2f(0xf1)]?_0xf8bd5f[_0x253e2f(0x1b1)](_0x253e2f(0xed)):_0xf8bd5f[_0x253e2f(0x197)](_0x253e2f(0xed));}),this[_0x2c3fca(0xf1)]?_0xf8bd5f[_0x2c3fca(0x1b1)](_0x2c3fca(0xed)):_0xf8bd5f[_0x2c3fca(0x197)](_0x2c3fca(0xed)),this[_0x2c3fca(0xdb)](_0x2c3fca(0x10f),!0x1);}async[_0x3f175c(0x173)](){const _0x89ef32=_0x3f175c,_0x346281=this[_0x89ef32(0x112)][_0x89ef32(0x1da)][_0x89ef32(0x140)](_0x30cef9),_0x58fd86=this[_0x89ef32(0x112)][_0x89ef32(0x1da)][_0x89ef32(0x140)](_0x162f75);try{this[_0x89ef32(0xe7)]=!0x0,_0x346281[_0x89ef32(0x163)](this[_0x89ef32(0x152)]);const _0x3768c8=await this[_0x89ef32(0x1a1)][_0x89ef32(0x173)](_0x58fd86[_0x89ef32(0x175)],this[_0x89ef32(0x126)]);await this[_0x89ef32(0xfd)](_0x3768c8)&&(this[_0x89ef32(0xe7)]=!0x1,this[_0x89ef32(0x166)]());const _0x440de7=await this[_0x89ef32(0x1a1)][_0x89ef32(0x131)]();_0x346281[_0x89ef32(0x129)](this[_0x89ef32(0x152)],_0x440de7),this[_0x89ef32(0x14b)](),this[_0x89ef32(0x10f)]=!0x0;}catch(_0x5779bd){if(function(_0x1e7fef){const _0x594d2b=_0x89ef32;return _0x594d2b(0x130)===_0x1e7fef[_0x594d2b(0x1bf)];}(_0x5779bd)&&this[_0x89ef32(0x1af)])await this[_0x89ef32(0x1c2)]();else{if(function(_0x2e43fa){const _0x457894=_0x89ef32;return _0x457894(0xfb)===_0x2e43fa[_0x457894(0x1bf)];}(_0x5779bd)){const _0x37df54=_0xdd4532(this[_0x89ef32(0x112)][_0x89ef32(0x132)],_0x89ef32(0xe0));this[_0x89ef32(0x15a)](_0x37df54);}else{if(!(_0x5779bd instanceof X))throw _0x5779bd;this[_0x89ef32(0x15a)]();}}}}[_0x3f175c(0x115)](){const _0x4d4291=_0x3f175c,_0x8430fb=this[_0x4d4291(0x112)][_0x4d4291(0x1da)][_0x4d4291(0x140)](_0x162f75),_0x157a42=this[_0x4d4291(0x112)][_0x4d4291(0x1da)][_0x4d4291(0x140)](_0x30cef9);this[_0x4d4291(0x112)][_0x4d4291(0x197)](_0x4d4291(0x14d)),_0x157a42[_0x4d4291(0x109)][_0x4d4291(0xff)](this[_0x4d4291(0x152)])&&_0x157a42[_0x4d4291(0x163)](this[_0x4d4291(0x152)]),_0x8430fb[_0x4d4291(0x15d)](this),this[_0x4d4291(0xdd)](),super[_0x4d4291(0x115)]();}async[_0x3f175c(0xfd)](_0x2e8661){const _0x331fb0=_0x3f175c;if(this[_0x331fb0(0x1af)]!==_0x2e8661[_0x331fb0(0x1af)]&&this[_0x331fb0(0x116)]!==_0x2e8661[_0x331fb0(0x146)])throw new X();return this[_0x331fb0(0x1af)]=_0x2e8661[_0x331fb0(0x1af)],this[_0x331fb0(0x1df)]([],{..._0x2e8661,'wereChangesApplied':!0x1,'data':_0x2e8661[_0x331fb0(0xf7)]},_0x331fb0(0x173));}async[_0x3f175c(0x16d)](_0x3a8054,_0x8bad79=!0x1){const _0x42f5dc=_0x3f175c,{connection:_0x46f053}=this[_0x42f5dc(0x112)][_0x42f5dc(0x1da)][_0x42f5dc(0x140)](_0x162f75);RealTimeCollaborationClient[_0x42f5dc(0x1be)][_0x42f5dc(0x131)](_0x46f053,this[_0x42f5dc(0x152)])[_0x42f5dc(0x15f)](_0x545543=>this[_0x42f5dc(0x110)](_0x545543))[_0x42f5dc(0x159)](_0x24ed15=>{const _0x2375da=_0x42f5dc;this[_0x2375da(0x180)](_0x2375da(0xf5),_0x24ed15);}),this[_0x42f5dc(0x150)](this[_0x42f5dc(0x1a1)],_0x42f5dc(0x12d),this[_0x42f5dc(0x199)][_0x42f5dc(0x119)](this)),this[_0x42f5dc(0x150)](this[_0x42f5dc(0x1a1)],_0x42f5dc(0x190),(_0x4de324,_0x38636b)=>{const _0x448002=_0x42f5dc;this[_0x448002(0x180)](_0x448002(0x111),_0x38636b);}),this[_0x42f5dc(0x150)](this[_0x42f5dc(0x1a1)],_0x42f5dc(0x19c),()=>{const _0x30114d=_0x42f5dc;this[_0x30114d(0x10f)]=!0x1;});const _0x2b5362=this[_0x42f5dc(0xd9)][_0x42f5dc(0x1b8)](_0x3a8054);this[_0x42f5dc(0xe7)]=!0x0;const _0x533c1a=await this[_0x42f5dc(0x1a1)][_0x42f5dc(0x1b6)](_0x46f053,this[_0x42f5dc(0x107)](_0x3a8054),_0x2b5362);if(this[_0x42f5dc(0x1af)]=_0x533c1a[_0x42f5dc(0x1af)],_0x8bad79){if(!_0x533c1a[_0x42f5dc(0x14a)])return void this[_0x42f5dc(0x15a)]();this[_0x42f5dc(0xe7)]=!0x1,this[_0x42f5dc(0x166)](),this[_0x42f5dc(0x1cc)][_0x42f5dc(0xe1)](),this[_0x42f5dc(0x178)]=_0x533c1a[_0x42f5dc(0x1b5)],this[_0x42f5dc(0x1cc)][_0x42f5dc(0x13f)]=this[_0x42f5dc(0x178)],await this[_0x42f5dc(0x1df)](_0x3a8054,_0x533c1a,_0x42f5dc(0x1ca));}else await this[_0x42f5dc(0x1d7)](_0x533c1a,_0x3a8054);this[_0x42f5dc(0x14b)](),this[_0x42f5dc(0x10f)]=!0x0;}[_0x3f175c(0x14b)](){const _0x114947=_0x3f175c,_0x2feca7=this[_0x114947(0x112)][_0x114947(0x1da)][_0x114947(0x140)](_0x30cef9),_0x501f54=this[_0x114947(0x112)][_0x114947(0x1da)][_0x114947(0x140)](_0x1397c1),_0x3f274=_0x2feca7[_0x114947(0x109)][_0x114947(0x140)](this[_0x114947(0x152)]);_0x3f274&&_0x3f274[_0x114947(0x19f)]>0x1?_0x501f54[_0x114947(0x144)]():this[_0x114947(0x150)](_0x2feca7,_0x114947(0x11f)+this[_0x114947(0x152)],()=>{const _0x918f6e=_0x114947;0x2===_0x2feca7[_0x918f6e(0x109)][_0x918f6e(0x140)](this[_0x918f6e(0x152)])[_0x918f6e(0x19f)]&&_0x501f54[_0x918f6e(0x144)]();});}async[_0x3f175c(0x199)](_0x6c2af5,_0x5ce70b,_0x341ed0,_0x11566f){const _0x5f4ec5=_0x3f175c;if(!this[_0x5f4ec5(0xe7)]&&this[_0x5f4ec5(0x13c)][_0x5f4ec5(0x13f)]==_0x5ce70b){const _0x346ba2=this[_0x5f4ec5(0x1b4)](_0x341ed0,_0x11566f);await this[_0x5f4ec5(0x13a)](_0x346ba2),this[_0x5f4ec5(0x192)](_0x346ba2,_0x5ce70b,_0x341ed0[_0x5f4ec5(0x146)])||this[_0x5f4ec5(0x180)](_0x5f4ec5(0x14f));}}async[_0x3f175c(0x1c2)](){const _0x122259=_0x3f175c;this[_0x122259(0xdd)]();const {locale:_0x2558ee}=this[_0x122259(0x112)];let _0x1f2cc3;try{_0x1f2cc3=await this[_0x122259(0x1a1)][_0x122259(0x189)]();}catch{const _0x4247b5=_0xdd4532(_0x2558ee,_0x122259(0x15e));return void this[_0x122259(0x15a)](_0x4247b5);}const _0x128c86=_0x1f2cc3[_0x122259(0x193)]||_0x1f2cc3[_0x122259(0x18b)];if(this[_0x122259(0x116)]!==_0x128c86[_0x122259(0x146)]){const _0x50f7e1=_0xdd4532(_0x2558ee,_0x122259(0x176));return void this[_0x122259(0x15a)](_0x50f7e1);}await this[_0x122259(0x16d)](this[_0x122259(0x112)][_0x122259(0x14e)][_0x122259(0x1d9)][_0x122259(0xe9)][_0x122259(0x147)](),!0x0);}[_0x3f175c(0xdd)](){const _0x5bc5bc=_0x3f175c;this[_0x5bc5bc(0x1a1)][_0x5bc5bc(0x10e)](),this[_0x5bc5bc(0xea)]=[],clearTimeout(this[_0x5bc5bc(0x17c)]),this[_0x5bc5bc(0x1a8)](this[_0x5bc5bc(0x1a1)]);}[_0x3f175c(0x110)](_0x2a99e5){const _0x2210f4=_0x3f175c,_0x510ee1=this[_0x2210f4(0x112)][_0x2210f4(0x1da)][_0x2210f4(0x140)](_0x30cef9);this[_0x2210f4(0x150)](_0x510ee1,_0x2210f4(0x11f)+this[_0x2210f4(0x152)],(_0x4c9db8,{session:_0x141a2f})=>{const _0x52ad30=_0x2210f4;if(_0x141a2f['id']===_0x510ee1[_0x52ad30(0xd8)]){_0x4c9db8[_0x52ad30(0x148)]();const _0x2be14a=this[_0x52ad30(0x112)][_0x52ad30(0x1da)][_0x52ad30(0xff)](_0x52ad30(0xee))&&this[_0x52ad30(0x112)][_0x52ad30(0x1da)][_0x52ad30(0x140)](_0x52ad30(0xee));let _0x1eef72=_0x141a2f[_0x52ad30(0xfa)];_0x2be14a&&_0x2be14a[_0x52ad30(0x172)]&&(_0x1eef72=_0x1eef72[_0x52ad30(0x182)](_0x4502f6=>_0x52ad30(0x17e)!==_0x4502f6)),this[_0x52ad30(0x112)][_0x52ad30(0x1da)][_0x52ad30(0x140)](_0x52ad30(0x174))[_0x52ad30(0x13e)](_0x1eef72,this[_0x52ad30(0x152)]);}}),_0x510ee1[_0x2210f4(0x129)](this[_0x2210f4(0x152)],_0x2a99e5);}[_0x3f175c(0x1b0)](){const _0x4d7134=_0x3f175c,_0x1f52ee=this[_0x4d7134(0x112)][_0x4d7134(0xf7)][_0x4d7134(0xdb)];this[_0x4d7134(0x112)][_0x4d7134(0xf7)][_0x4d7134(0xdb)]=(..._0x3744f7)=>{const _0x50145f=_0x4d7134;if(!_0x3744f7[_0x3744f7[_0x50145f(0x19f)]-0x1][_0x50145f(0x1c9)])throw new _0x253266(_0x50145f(0x18e),this);_0x1f52ee[_0x50145f(0x14c)](this[_0x50145f(0x112)][_0x50145f(0xf7)],_0x3744f7);};}[_0x3f175c(0xef)](){const _0xbd88de=_0x3f175c;this[_0xbd88de(0x112)][_0xbd88de(0xf7)]['on'](_0xbd88de(0x191),(_0x3a87ac,[_0x49db57])=>{const _0x3f68c1=_0xbd88de;if(this[_0x3f68c1(0x13c)][_0x3f68c1(0x13f)])throw new _0x253266(_0x3f68c1(0x1cd),this);_0x3a87ac[_0x3f68c1(0xe5)](),this[_0x3f68c1(0x1d3)]();const _0x501e50=this[_0x3f68c1(0x112)][_0x3f68c1(0xdf)][_0x3f68c1(0x140)](_0x3f68c1(0xf8)),_0x30178f=this[_0x3f68c1(0x1c1)](_0x49db57,_0x501e50);0x0==_0x30178f[_0x3f68c1(0x19f)]&&_0x30178f[_0x3f68c1(0x1d4)](new _0x108b5e(0x0)),_0x3a87ac[_0x3f68c1(0x123)]=this[_0x3f68c1(0x16d)](_0x30178f)[_0x3f68c1(0x15f)](()=>{const _0x5dcc0a=_0x3f68c1;this[_0x5dcc0a(0x112)][_0x5dcc0a(0x1da)][_0x5dcc0a(0x140)](_0x162f75)[_0x5dcc0a(0x1d1)](this),this[_0x5dcc0a(0x112)][_0x5dcc0a(0xf7)][_0x5dcc0a(0x12c)](_0x5dcc0a(0x1a7));})[_0x3f68c1(0x159)](_0xfc692e=>this[_0x3f68c1(0x180)](_0x3f68c1(0x16b),_0xfc692e))[_0x3f68c1(0x19b)](()=>this[_0x3f68c1(0x166)]());},{'priority':_0xbd88de(0x12f)}),this[_0xbd88de(0x112)]['on'](_0xbd88de(0x183),async(_0x4d3d43,[_0x44415e,_0x4c03f7])=>{const _0x396bee=_0xbd88de;_0x4d3d43[_0x396bee(0xe5)]();const _0x42f187=this[_0x396bee(0x112)][_0x396bee(0x14e)][_0x396bee(0x1d9)][_0x396bee(0x185)](_0x44415e);if(!this[_0x396bee(0x11e)][_0x396bee(0xff)](_0x44415e)){const _0x4098b3=_0x4c03f7&&_0x4c03f7[_0x396bee(0xf7)]?_0x4c03f7[_0x396bee(0xf7)]:'',_0x22ed5a=_0x4c03f7&&_0x4c03f7[_0x396bee(0x1cb)]?_0x4c03f7[_0x396bee(0x1cb)]:{};await this[_0x396bee(0x141)](_0x44415e,_0x4098b3,_0x22ed5a);}this[_0x396bee(0x112)][_0x396bee(0x14e)][_0x396bee(0x13d)]({'isUndoable':!0x1},()=>{const _0x29f847=_0x396bee;_0x42f187[_0x29f847(0x1a4)]=!0x0,this[_0x29f847(0x112)][_0x29f847(0x14e)][_0x29f847(0x1d9)][_0x29f847(0x1c8)][_0x29f847(0x157)](_0x42f187);});},{'priority':_0xbd88de(0x12f)});}async[_0x3f175c(0x13a)](_0x106f80){const _0x26ca39=_0x3f175c,_0x1b52fe=this[_0x26ca39(0x112)][_0x26ca39(0x1da)][_0x26ca39(0x140)](_0x2eb199),{connection:_0x23291f}=this[_0x26ca39(0x112)][_0x26ca39(0x1da)][_0x26ca39(0x140)](_0x162f75),_0x4559c7=new Set();for(const _0x13908c of _0x106f80){const _0xaeff12=_0x13908c[_0x26ca39(0x108)];_0xaeff12&&!_0x1b52fe[_0x26ca39(0x1c3)](_0xaeff12)&&_0x4559c7[_0x26ca39(0x10d)](_0xaeff12);}if(0x0===_0x4559c7[_0x26ca39(0x101)])return;const _0x34de02=await _0x5266a2[_0x26ca39(0x1a3)](_0x23291f,Array[_0x26ca39(0xe6)](_0x4559c7));for(const _0x1a0aa0 of _0x34de02)_0x1b52fe[_0x26ca39(0x1c3)](_0x1a0aa0['id'])||_0x1b52fe[_0x26ca39(0x1db)](_0x1a0aa0);}[_0x3f175c(0x1c1)](_0x1aa53f,_0x5827f6={}){const _0x526502=_0x3f175c,_0x151148=this[_0x526502(0x112)][_0x526502(0x14e)],_0x41428c=[];let _0x53ca13=0x0;const _0x85c035=_0x526502(0xde)==typeof _0x1aa53f?{'main':_0x1aa53f}:_0x1aa53f;for(const _0x4e9e7d of Object[_0x526502(0xec)](_0x85c035)){if(!this[_0x526502(0x13c)][_0x526502(0x11a)][_0x526502(0xff)](_0x4e9e7d))throw new _0x253266(_0x526502(0x1ab),this);const _0x1d63b9=this[_0x526502(0x112)][_0x526502(0xf7)][_0x526502(0x168)](_0x85c035[_0x4e9e7d]),_0x1d4669=this[_0x526502(0x13c)][_0x526502(0x185)](_0x4e9e7d),_0x5adcfa=new _0x311fc7(_0x151148[_0x526502(0x1a9)](_0x1d4669,0x0),_0x1d63b9,_0x53ca13++);_0x41428c[_0x526502(0x1d4)](_0x5adcfa);for(const [_0x21f535,_0xe86013]of _0x1d63b9[_0x526502(0x198)]){const _0x4a19a9=_0x151148[_0x526502(0x162)](_0x151148[_0x526502(0x1b9)](_0x1d4669,_0xe86013[_0x526502(0x10a)][_0x526502(0x100)][_0x526502(0x17f)]()),_0x151148[_0x526502(0x1b9)](_0x1d4669,_0xe86013[_0x526502(0x1bd)][_0x526502(0x100)][_0x526502(0x17f)]())),_0x406c3b=new _0x3a9ef4(_0x21f535,null,_0x4a19a9,_0x151148[_0x526502(0x198)],!0x0,_0x53ca13++);_0x41428c[_0x526502(0x1d4)](_0x406c3b);}}if(_0x5827f6)for(const [_0x56c32a,_0x5e5c7c]of Object[_0x526502(0x1d2)](_0x5827f6)){const _0x279455=_0x151148[_0x526502(0x1d9)][_0x526502(0x185)](_0x56c32a);if(!_0x279455)throw new _0x253266(_0x526502(0x139),null);for(const [_0x439bac,_0x1cdaf5]of Object[_0x526502(0x1d2)](_0x5e5c7c))if(null!==_0x1cdaf5){const _0x1e8b99=new _0x16b6fa(_0x279455,_0x439bac,null,_0x1cdaf5,_0x53ca13++);_0x41428c[_0x526502(0x1d4)](_0x1e8b99);}}return _0x41428c;}async[_0x3f175c(0x141)](_0x27c21f,_0x34a020,_0x544625){const _0x22b0bc=_0x3f175c;this[_0x22b0bc(0x1c1)]({[_0x27c21f]:_0x34a020},{[_0x27c21f]:_0x544625})[_0x22b0bc(0x16e)]((_0x51d94a,_0x4df122)=>{const _0x3cf9a6=_0x22b0bc;_0x51d94a[_0x3cf9a6(0x103)]=this[_0x3cf9a6(0x13c)][_0x3cf9a6(0x13f)]+_0x4df122,_0x51d94a[_0x3cf9a6(0x11d)]=!0x0,this[_0x3cf9a6(0x134)](_0x51d94a);}),this[_0x22b0bc(0x137)](),await this[_0x22b0bc(0x133)]();}async[_0x3f175c(0x1d7)](_0x468f07,_0x35981b){const _0x545813=_0x3f175c;let _0xe38eaa;this[_0x545813(0x178)]=_0x468f07[_0x545813(0x1b5)];const _0x41cda8=_0x468f07[_0x545813(0x14a)]&&!_0x468f07[_0x545813(0x1c4)],_0x46653a=_0x41cda8?0x0:_0x468f07[_0x545813(0xf7)][_0x545813(0x103)];if(_0x35981b[_0x545813(0x16e)](_0x19e37e=>{const _0x42ea02=_0x545813;_0x19e37e[_0x42ea02(0x11d)]=!0x0,_0x19e37e[_0x42ea02(0x127)]=_0x468f07[_0x42ea02(0x12e)],_0x19e37e[_0x42ea02(0x108)]=null;}),_0x41cda8)_0xe38eaa=_0x35981b,this[_0x545813(0x16a)](_0xe38eaa,_0x41cda8);else{if(_0x468f07[_0x545813(0x1c4)]){const _0x3bc66d=this[_0x545813(0x1c1)](_0x468f07[_0x545813(0x1c4)]);this[_0x545813(0x13c)][_0x545813(0xe9)][_0x545813(0x13f)]=-_0x3bc66d[_0x545813(0x19f)],_0x3bc66d[_0x545813(0x16e)](_0x5d768d=>{const _0xaf16b7=_0x545813;_0x5d768d[_0xaf16b7(0x103)]-=_0x3bc66d[_0xaf16b7(0x19f)],_0x5d768d[_0xaf16b7(0x127)]=_0x468f07[_0xaf16b7(0x12e)],_0x5d768d[_0xaf16b7(0x11d)]=!0x0,_0x5d768d[_0xaf16b7(0x108)]=null;}),this[_0x545813(0x16a)](_0x3bc66d,!0x0),this[_0x545813(0x1cc)][_0x545813(0x13f)]=-_0x3bc66d[_0x545813(0x19f)]+this[_0x545813(0x178)],this[_0x545813(0xeb)](_0x3bc66d);}this[_0x545813(0x13c)][_0x545813(0xe9)][_0x545813(0x13f)]=_0x46653a,_0xe38eaa=this[_0x545813(0x1b4)](_0x468f07[_0x545813(0xf7)],_0x468f07[_0x545813(0x149)]),await this[_0x545813(0x13a)](_0xe38eaa),this[_0x545813(0x16a)](_0xe38eaa,_0x41cda8);}_0x468f07[_0x545813(0x146)]&&(this[_0x545813(0xd9)][_0x545813(0x114)](_0xe38eaa,_0x468f07[_0x545813(0x146)]),this[_0x545813(0x116)]=_0x468f07[_0x545813(0x146)]),this[_0x545813(0x1cc)][_0x545813(0x13f)]=_0x46653a+this[_0x545813(0x178)],this[_0x545813(0xeb)](_0xe38eaa),_0x35981b[_0x545813(0x182)](_0x34ebf6=>{const _0x2d87bf=_0x545813,_0xafbf19=this[_0x2d87bf(0x158)](_0x34ebf6);return _0xafbf19&&!this[_0x2d87bf(0x11e)][_0x2d87bf(0xff)](_0xafbf19);})[_0x545813(0x16e)]((_0x4cd986,_0xcbdf49)=>{const _0x3a85f6=_0x545813;_0x4cd986[_0x3a85f6(0x103)]=this[_0x3a85f6(0x13c)][_0x3a85f6(0x13f)]+_0xcbdf49,this[_0x3a85f6(0x134)](_0x4cd986);}),this[_0x545813(0x16f)]()?(this[_0x545813(0x179)]=0x0,this[_0x545813(0x137)](!0x0),await this[_0x545813(0x133)]()):(this[_0x545813(0xe7)]=!0x1,this[_0x545813(0x166)]());}[_0x3f175c(0x180)](_0x425609,_0x390517){const _0x5a4264=_0x3f175c,_0x5562ca=_0x390517&&_0x390517[_0x5a4264(0xf3)];if(_0x5562ca&&_0x5562ca[_0x5a4264(0x1d0)](_0x5a4264(0xf4)))throw _0x390517;const _0x43311d=this[_0x5a4264(0x112)][_0x5a4264(0x1da)][_0x5a4264(0x140)](_0x162f75);throw this[_0x5a4264(0xe7)]=!0x0,_0x43311d[_0x5a4264(0x10e)](),this[_0x5a4264(0x112)][_0x5a4264(0x197)](_0x5a4264(0x13b)),new _0x253266(_0x425609,this[_0x5a4264(0x112)],_0x5562ca?{'originalError':_0x5562ca}:void 0x0);}[_0x3f175c(0x134)](_0x2d1eeb){const _0x47b5e4=_0x3f175c;this[_0x47b5e4(0x196)][_0x47b5e4(0xff)](_0x2d1eeb)||(this[_0x47b5e4(0x196)][_0x47b5e4(0x10d)](_0x2d1eeb),this[_0x47b5e4(0xea)][_0x47b5e4(0x1d4)](_0x2d1eeb),this[_0x47b5e4(0x171)]||_0x47b5e4(0x1cf)==_0x2d1eeb[_0x47b5e4(0xda)]&&!_0x2d1eeb[_0x47b5e4(0x1a2)]||this[_0x47b5e4(0x1d3)]());}[_0x3f175c(0x137)](_0x1be5aa=!0x1){const _0x180ad3=_0x3f175c;!_0x1be5aa&&this[_0x180ad3(0xe7)]||(this[_0x180ad3(0xe7)]=!0x0,clearTimeout(this[_0x180ad3(0x17c)]),this[_0x180ad3(0x17c)]=setTimeout(()=>{const _0x3d7e0a=_0x180ad3;this[_0x3d7e0a(0x10c)]()[_0x3d7e0a(0x15f)](_0x4bbc2a=>{const _0x4a8000=_0x3d7e0a;_0x4bbc2a&&(this[_0x4a8000(0x166)](),this[_0x4a8000(0xe7)]=!0x1);})[_0x3d7e0a(0x159)](_0xcacb20=>{const _0x1b2f7c=_0x3d7e0a;this[_0x1b2f7c(0x166)](),this[_0x1b2f7c(0xe7)]=!0x1,function(_0x17e9ed){const _0x54c427=_0x1b2f7c;return _0x17e9ed[_0x54c427(0xf3)][_0x54c427(0x1d0)](_0x54c427(0x17b))||_0x17e9ed[_0x54c427(0xf3)][_0x54c427(0x1d0)](_0x54c427(0x19d))||_0x17e9ed[_0x54c427(0xf3)][_0x54c427(0x1d0)](_0x54c427(0xfe));}(_0xcacb20)||this[_0x1b2f7c(0x180)](_0xcacb20[_0x1b2f7c(0xf3)],_0xcacb20);});},this[_0x180ad3(0x179)]));}[_0x3f175c(0x133)](){return new Promise(_0x2794de=>{const _0xcc0cb7=_0x23d1;this['on'](_0xcc0cb7(0x15b),()=>{_0x2794de();});});}async[_0x3f175c(0x10c)](){const _0x2f4e76=_0x3f175c,_0x5c606b=this[_0x2f4e76(0x112)][_0x2f4e76(0x1da)][_0x2f4e76(0x140)](_0x1397c1);if(this[_0x2f4e76(0x145)]()&&(_0x5c606b[_0x2f4e76(0x144)](),this[_0x2f4e76(0xe4)]=!0x1),!this[_0x2f4e76(0x16f)]())return!0x0;const _0x5d9c67=[...this[_0x2f4e76(0xea)]];for(const _0x2994c4 of _0x5d9c67)_0x2994c4[_0x2f4e76(0x1ce)]=this[_0x2f4e76(0x13c)][_0x2f4e76(0xe9)][_0x2f4e76(0x18a)](_0x2994c4);const _0x238d0=this[_0x2f4e76(0xd9)][_0x2f4e76(0x1b8)](_0x5d9c67),_0x49c398=Q++,_0xecc289=this[_0x2f4e76(0x107)](_0x5d9c67),_0x5dacf3=await this[_0x2f4e76(0x1a1)][_0x2f4e76(0x1a0)](_0xecc289,_0xecc289[_0x2f4e76(0x103)],_0x238d0);try{return await this[_0x2f4e76(0x1df)](_0x5d9c67,_0x5dacf3,_0x49c398);}catch(_0x4ebe33){return this[_0x2f4e76(0x180)](_0x2f4e76(0x1ad),_0x4ebe33);}}async[_0x3f175c(0x1df)](_0x5c8d23,_0x355d2b,_0x1ddd65){const _0x584044=_0x3f175c;if(_0x584044(0x190)in _0x355d2b)throw _0x355d2b[_0x584044(0x190)];let _0x28bf4f=!0x1;if(_0x355d2b[_0x584044(0x14a)]){_0x355d2b[_0x584044(0x146)]&&(this[_0x584044(0x116)]=_0x355d2b[_0x584044(0x146)]),this[_0x584044(0xea)]=this[_0x584044(0xea)][_0x584044(0x182)](_0x2a1898=>!_0x5c8d23[_0x584044(0x1ac)](_0x2a1898));for(const _0x5a5f7d of _0x5c8d23)_0x5a5f7d[_0x584044(0x127)]=_0x584044(0x195)in _0x355d2b&&_0x355d2b[_0x584044(0x195)]||void 0x0;Y(_0x5c8d23,_0x355d2b[_0x584044(0x13f)]-_0x5c8d23[_0x584044(0x19f)]),this[_0x584044(0xeb)](_0x5c8d23);const _0x47f41c=_0x5c8d23[_0x584044(0x182)](_0x227e2c=>{const _0x2a1a33=_0x584044;if(!_0x227e2c[_0x2a1a33(0x11d)])return!0x1;const _0x2cffa7=this[_0x2a1a33(0x158)](_0x227e2c);return _0x2cffa7&&!this[_0x2a1a33(0x11e)][_0x2a1a33(0xff)](_0x2cffa7);});Y(_0x47f41c,this[_0x584044(0x13c)][_0x584044(0x13f)]),this[_0x584044(0x16a)](_0x47f41c),_0x28bf4f=!0x0,this[_0x584044(0x179)]=this[_0x584044(0xf2)];}else{const _0x36cc13=this[_0x584044(0x1b4)](_0x355d2b[_0x584044(0xf7)],_0x355d2b[_0x584044(0x149)])[_0x584044(0x182)](_0x27bcda=>_0x27bcda[_0x584044(0x103)]>=this[_0x584044(0xe3)]);_0x36cc13[_0x584044(0x16e)](_0x4ea168=>this[_0x584044(0x16c)](_0x4ea168)),this[_0x584044(0xea)]=this[_0x584044(0xea)][_0x584044(0x182)](_0x3e8cc7=>!_0x3e8cc7[_0x584044(0x11d)]||!this[_0x584044(0x11e)][_0x584044(0xff)](this[_0x584044(0x158)](_0x3e8cc7))),this[_0x584044(0xea)][_0x584044(0x19f)]&&Y(this[_0x584044(0xea)],this[_0x584044(0xea)][0x0][_0x584044(0x103)]),await this[_0x584044(0x13a)](_0x36cc13),_0x28bf4f=this[_0x584044(0x192)](_0x36cc13,_0x355d2b[_0x584044(0x13f)],_0x355d2b[_0x584044(0x146)]),this[_0x584044(0x179)]=Math[_0x584044(0x128)](this[_0x584044(0x179)]/0x2);}return _0x28bf4f?!this[_0x584044(0x16f)]()||(this[_0x584044(0x137)](!0x0),!0x1):this[_0x584044(0x180)](_0x584044(0xf9));}[_0x3f175c(0x192)](_0x25f203,_0x2f7965,_0x2d46f7){const _0x991a93=_0x3f175c;try{const _0x145b81={'document':this[_0x991a93(0x13c)],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x56ea05,operationsB:_0x243ece,originalOperations:_0x3b63db}=_0x459d1c(_0x25f203,this[_0x991a93(0xea)],_0x145b81);Y(_0x56ea05,this[_0x991a93(0x13c)][_0x991a93(0x13f)]),Y(_0x243ece,_0x2f7965);for(const _0x67d16a of _0x56ea05){const _0x3eff45=_0x3b63db[_0x991a93(0x140)](_0x67d16a);_0x67d16a[_0x991a93(0x108)]=_0x3eff45?_0x3eff45[_0x991a93(0x108)]:null;}_0x2d46f7&&(this[_0x991a93(0xd9)][_0x991a93(0x114)](_0x25f203,_0x2d46f7),this[_0x991a93(0x116)]=_0x2d46f7),this[_0x991a93(0xea)]=[..._0x243ece],this[_0x991a93(0x16a)](_0x56ea05),this[_0x991a93(0xeb)](_0x25f203);}catch(_0x4eee82){return console[_0x991a93(0x190)](_0x4eee82),!0x1;}return!0x0;}[_0x3f175c(0x16a)](_0x6c7d56,_0x4577a8=!0x1){const _0x42c143=_0x3f175c;this[_0x42c143(0x112)][_0x42c143(0x14e)][_0x42c143(0x13d)]({'isUndoable':!0x1,'isLocal':!0x1},_0x1d034c=>{const _0x5b2900=_0x42c143;for(const _0x25ceb4 of _0x6c7d56)this[_0x5b2900(0x196)][_0x5b2900(0x10d)](_0x25ceb4),this[_0x5b2900(0x16c)](_0x25ceb4),_0x1d034c[_0x5b2900(0x15c)][_0x5b2900(0x1b2)](_0x25ceb4),this[_0x5b2900(0x112)][_0x5b2900(0x14e)][_0x5b2900(0x167)](_0x25ceb4);});}[_0x3f175c(0x16c)](_0x2cca27){const _0x3acc18=_0x3f175c,_0x14b649=this[_0x3acc18(0x158)](_0x2cca27);_0x14b649&&this[_0x3acc18(0x11e)][_0x3acc18(0x10d)](_0x14b649);}[_0x3f175c(0x158)](_0x529574){const _0x69867e=_0x3f175c;let _0x57a384,_0x1daafc;switch(_0x529574[_0x69867e(0xda)]){case _0x69867e(0x1d8):_0x57a384=_0x529574[_0x69867e(0x122)][_0x69867e(0x10b)];break;case _0x69867e(0x1cf):if(_0x1daafc=_0x529574[_0x69867e(0x11c)],!_0x1daafc)return null;_0x57a384=_0x1daafc[_0x69867e(0x10b)];break;case _0x69867e(0x18f):_0x57a384=_0x529574[_0x69867e(0x10b)];break;case _0x69867e(0x170):_0x57a384=_0x529574[_0x69867e(0xe2)];break;case _0x69867e(0x102):_0x57a384=_0x529574[_0x69867e(0x1aa)][_0x69867e(0x10b)];break;default:return null;}return _0x57a384[_0x69867e(0x177)];}[_0x3f175c(0xeb)](_0x3f3a17){const _0x16f0fc=_0x3f175c;_0x3f3a17[_0x16f0fc(0x16e)](_0xfae3ca=>{const _0x4c9ead=_0x16f0fc,_0x4b8125=_0xfae3ca[_0x4c9ead(0x187)]();_0x4b8125[_0x4c9ead(0x108)]=_0xfae3ca[_0x4c9ead(0x108)],_0x4b8125[_0x4c9ead(0x11d)]=!!_0xfae3ca[_0x4c9ead(0x11d)],_0x4b8125[_0x4c9ead(0x127)]=_0xfae3ca[_0x4c9ead(0x127)],_0x4b8125[_0x4c9ead(0x103)]+=this[_0x4c9ead(0x178)],_0xfae3ca[_0x4c9ead(0x118)]&&this[_0x4c9ead(0x1bc)][_0x4c9ead(0x10d)](_0x4b8125),this[_0x4c9ead(0x1cc)][_0x4c9ead(0x1b2)](_0x4b8125);});}[_0x3f175c(0x15a)](_0x123a6e){const _0x5a2920=_0x3f175c,_0x133604=this[_0x5a2920(0x112)][_0x5a2920(0x1da)][_0x5a2920(0x140)](_0x5a2920(0x1b7)),_0x31f172=this[_0x5a2920(0x112)][_0x5a2920(0x132)];_0x123a6e||(_0x123a6e=_0xdd4532(_0x31f172,_0x5a2920(0x1a6))),_0x133604[_0x5a2920(0x1c0)](_0x123a6e,{'title':_0xdd4532(_0x31f172,_0x5a2920(0x135)),'namespace':_0x5a2920(0x153)}),this[_0x5a2920(0x155)]=!0x0,clearTimeout(this[_0x5a2920(0x17c)]),this[_0x5a2920(0xea)]=[],this[_0x5a2920(0x112)][_0x5a2920(0x1da)][_0x5a2920(0x140)](_0x162f75)[_0x5a2920(0x10e)]();}[_0x3f175c(0x1d3)](){const _0x3490c3=_0x3f175c;this[_0x3490c3(0x171)]||(this[_0x3490c3(0x171)]=this[_0x3490c3(0x112)][_0x3490c3(0x1da)][_0x3490c3(0x140)](_0x56c9eb)[_0x3490c3(0x10d)](_0xdd4532(this[_0x3490c3(0x112)][_0x3490c3(0x132)],_0x3490c3(0x113))));}[_0x3f175c(0x166)](){const _0xae39bf=_0x3f175c;this[_0xae39bf(0x171)]&&(this[_0xae39bf(0x112)][_0xae39bf(0x1da)][_0xae39bf(0x140)](_0x56c9eb)[_0xae39bf(0x165)](this[_0xae39bf(0x171)]),this[_0xae39bf(0x171)]=null);}[_0x3f175c(0x107)](_0x17cdb8){const _0x36c8a5=_0x3f175c,_0x1c184b=_0x17cdb8[_0x36c8a5(0x1c5)](_0x372a7f=>_0x372a7f[_0x36c8a5(0x136)]());return this[_0x36c8a5(0xdc)][_0x36c8a5(0x184)](_0x1c184b);}[_0x3f175c(0x1b4)](_0xfa3b27,_0x4700da){const _0x2341c7=_0x3f175c;return this[_0x2341c7(0xdc)][_0x2341c7(0x188)](_0xfa3b27)[_0x2341c7(0x1c5)]((_0x2b2e85,_0x24c1c3)=>{const _0x10cbee=_0x2341c7,_0x4aa551=_0x10cbee(0x191)==_0x4700da[_0x24c1c3][_0x10cbee(0xda)];if(_0x10cbee(0xf0)==_0x2b2e85[_0x10cbee(0x105)]){const _0x23f03b=_0x2b2e85[_0x10cbee(0x122)][_0x10cbee(0x10b)];!this[_0x10cbee(0x13c)][_0x10cbee(0x185)](_0x23f03b)&&(this[_0x10cbee(0x13c)][_0x10cbee(0x1de)](_0x10cbee(0x1a5),_0x23f03b)[_0x10cbee(0x1c6)]=!0x1);}const _0x28eb16=_0xea8df2[_0x10cbee(0x194)](_0x2b2e85,this[_0x10cbee(0x13c)]);return _0x28eb16[_0x10cbee(0x1ce)]=_0x2b2e85[_0x10cbee(0x1ce)],_0x28eb16[_0x10cbee(0x11d)]=_0x4aa551,_0x28eb16[_0x10cbee(0x108)]=_0x4aa551?null:_0x4700da[_0x24c1c3][_0x10cbee(0xfc)],_0x28eb16[_0x10cbee(0x118)]=_0x10cbee(0x117)===_0x4700da[_0x24c1c3][_0x10cbee(0xda)],_0x28eb16[_0x10cbee(0x127)]=_0x4700da[_0x24c1c3][_0x10cbee(0x127)],_0x28eb16;});}[_0x3f175c(0x1c7)](){const _0x36326b=_0x3f175c;this[_0x36326b(0xe4)]=!0x0,this[_0x36326b(0x145)]()?this[_0x36326b(0x137)]():this[_0x36326b(0xe4)]=!0x1;}[_0x3f175c(0x145)](){const _0x44cbc2=_0x3f175c,_0x5e520c=this[_0x44cbc2(0x112)][_0x44cbc2(0x1da)][_0x44cbc2(0x140)](_0x30cef9)[_0x44cbc2(0x109)][_0x44cbc2(0x140)](this[_0x44cbc2(0x152)]);return!this[_0x44cbc2(0x112)][_0x44cbc2(0x1bb)]&&!!_0x5e520c&&_0x5e520c[_0x44cbc2(0x19f)]>0x1&&this[_0x44cbc2(0xe4)];}[_0x3f175c(0x16f)](){const _0x42c88b=_0x3f175c;return this[_0x42c88b(0xea)][_0x42c88b(0x19f)]>0x0||this[_0x42c88b(0x145)]();}}class X extends Error{}function Y(_0x28646d,_0x3b7ce9){const _0xd7aa19=_0x3f175c;for(const _0x4a671e of _0x28646d)_0x4a671e[_0xd7aa19(0x103)]=_0x3b7ce9++;}class Z{[_0x3f175c(0x154)];[_0x3f175c(0x12a)];constructor(_0x3755a1){const _0x1432a2=_0x3f175c;this[_0x1432a2(0x154)]=_0x3755a1,this[_0x1432a2(0x12a)]=new WeakMap();}[_0x3f175c(0x1b8)](_0x55940c){const _0x5f16ed=_0x3f175c;let _0x5ebe0b=_0x55940c[_0x5f16ed(0x19f)];for(;_0x5ebe0b--;){const _0x2f1cb0=_0x55940c[_0x5ebe0b];if(!this[_0x5f16ed(0x154)][_0x5f16ed(0xff)](_0x2f1cb0)){if(!this[_0x5f16ed(0x12a)][_0x5f16ed(0xff)](_0x2f1cb0)){const _0x15c7a6=_0x121839()[_0x5f16ed(0x17f)](0x1,0x12);this[_0x5f16ed(0x12a)][_0x5f16ed(0xdb)](_0x2f1cb0,_0x15c7a6);}return this[_0x5f16ed(0x12a)][_0x5f16ed(0x140)](_0x2f1cb0);}}}[_0x3f175c(0x114)](_0x50d7d9,_0x3fa357){const _0x3d6f62=_0x3f175c;if(!_0x3fa357)return;let _0x270145=_0x50d7d9[_0x3d6f62(0x19f)];for(;_0x270145--;){const _0x4577e8=_0x50d7d9[_0x270145];this[_0x3d6f62(0x154)][_0x3d6f62(0xff)](_0x4577e8)||this[_0x3d6f62(0x12a)][_0x3d6f62(0xdb)](_0x4577e8,_0x3fa357);}}}function _0x4d1a(){const _0x5d30c8=['getOperations','off','metadata','wereChangesApplied','_handleSendingSelectionMarkers','apply','rtc-destroyed','model','realtimecollaborationclient-init-service-incorrect-server-operation','listenTo','define','_channelId','real-time-collaboration','_ignoredOperations','_hasSynchronizationProblem','685190JUhRRC','_bufferRootLoad','_getAffectedRoot','catch','_handleReconnectionError','change:_isPendingUpdate','batch','removeFromReconnectionStack','The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','then','change:hasDomSelection','264ZMnlzV','createRange','unregister','collaboration','remove','_clearPendingAction','applyOperation','parse','requires','_applyOperationsSet','realtimecollaborationclient-init-connection-failed','_addKnownRoot','_connectService','forEach','_shouldSendUpdate','addRoot','_pendingAction','isEnabled','reconnect','Permissions','connection','The\x20last\x20saved\x20version\x20of\x20the\x20document\x20does\x20not\x20match\x20the\x20local\x20version.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','rootName','_offset','_currentBufferDelay','connected','cloud-services-internal-error:\x20Not\x20connected.','_sendBufferedOperationsDelayId','state','document:write','slice','_crash','5fUBXhR','filter','loadRoot','compress','getRoot','getOperationAuthor','clone','decompress','getDocumentDetails','isUndoneOperation','lastDocumentSession','isDocumentOperation','change:_isEditingAllowed','realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration','addRootAttribute','error','init','_handleExternalOperations','currentDocumentSession','fromJSON','lastOperationAcceptedAt','_knownOperations','enableReadOnlyMode','markers','_handleReceivedOperations','407388harlWl','finally','disconnected','cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.','collaboration.channelId','length','sendOperations','_service','affectsData','getMany','_isLoaded','$root','The\x20local\x20document\x20and\x20server\x20document\x20differ\x20and\x20merging\x20them\x20can\x20cause\x20unexpected\x20behavior.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','ready','stopListening','createPositionAt','targetPosition','realtimecollaborationclient-init-non-existent-root','includes','realtimecollaborationclient-sendbufferedoperations','19102rDNIwv','sessionId','_initThrowingOnDataSet','disableReadOnlyMode','addOperation','1110906hRbnjz','_decompressOperations','offset','connect','Notification','getIdOfTheLastOperation','createPositionFromPath','cloudDocumentVersion','isReadOnly','_disconnectionOperations','end','CollaborativeEditingService','code','showWarning','_getOperationsFromInitData','_connectAfterSessionHasBeenFlushed','getUser','initData','map','_isAttached','_refreshUserSelectionMarkers','differ','suppressErrorInCollaboration','reconnection:\x20flushed\x20session','attributes','serverHistory','realtimecollaborationclient-init-document-already-initialized','wasUndone','marker','startsWith','addToReconnectionStack','entries','_setPendingAction','push','1336hREQDU','RealTimeCollaborationClient','_handleInitialConnectionData','insert','document','plugins','addUser','collaboration-missing-channelid','27gEQQzW','createRoot','_handleServerResponse','mySessionId','_operationIdentifier','type','set','_compressor','_disconnectService','string','config','The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','reset','affectedSelectable','_lastServerVersion','_hasSelectionChanged','stop','from','_isPendingUpdate','cloudServices.bundleVersion','history','_bufferedOperations','_updateServerHistory','keys','rtc-offline','CommentsOnly','_setUpDataInit','InsertOperation','_isEditingAllowed','_baseBufferDelay','message','realtimecollaborationclient','realtimecollaborationclient-init-session-connection-error','329vRZEby','data','rootsAttributes','realtimecollaborationclient-handleserverresponse','permissions','409','userId','_handleReconnectionResponse','cloud-services-internal-error:\x20Request\x20timeout.','has','path','size','move','baseVersion','selection','__className','view','_compressOperations','_authorId','channelSessions','start','root','_sendBufferedOperations','add','disconnect','_isConnected','_initSessionsHandling','realtimecollaborationclient-init-service-internal-error','editor','PENDING_ACTION_SENDING_DATA','setIdForTheLastOperation','destroy','_lastSyncedOperationId','cs:removeUser','_isDisconnection','bind','roots','directChange','newRange','_isInit','_knownRootNames','sessionAdd:','305444tYozUZ','editing','position','return','609504sTFJnR','pluginName','lastSyncVersion','createdAt','round','register','_operationToId','isPremiumPlugin','fire','operationsReceived','sessionCreatedAt','high','404','getConnectedSessions','locale','_waitUntilSynced','_saveOperationInBuffer','Synchronization\x20issue','toJSON','_sendBufferedOperationsDelayed','change:range','multi-root-editor-root-attributes-no-root','_fetchMissingUsers','realtimecollaborationclient-error','_document','enqueueChange','setPermissions','version','get','_loadRoot','50tgIlNv','isOfficialPlugin','createUserMarkerOperations','_shouldSendSelectionUpdate','lastOperationId'];_0x4d1a=function(){return _0x5d30c8;};return _0x4d1a();}
23
+ const _0x3aae05=_0x13e1;(function(_0x5d347e,_0x3c4a24){const _0x35b571=_0x13e1,_0x459ed8=_0x5d347e();while(!![]){try{const _0xf82d33=-parseInt(_0x35b571(0xbb))/0x1*(parseInt(_0x35b571(0xd6))/0x2)+-parseInt(_0x35b571(0xea))/0x3*(-parseInt(_0x35b571(0xec))/0x4)+parseInt(_0x35b571(0x19e))/0x5+parseInt(_0x35b571(0x1ab))/0x6*(-parseInt(_0x35b571(0x120))/0x7)+parseInt(_0x35b571(0x12a))/0x8*(-parseInt(_0x35b571(0x19c))/0x9)+-parseInt(_0x35b571(0xff))/0xa*(parseInt(_0x35b571(0x192))/0xb)+parseInt(_0x35b571(0x127))/0xc;if(_0xf82d33===_0x3c4a24)break;else _0x459ed8['push'](_0x459ed8['shift']());}catch(_0x28f711){_0x459ed8['push'](_0x459ed8['shift']());}}}(_0x253b,0x856ae));import{Plugin as _0x147f9f,PendingActions as _0x426c8a}from'ckeditor5/src/core.js';import{CKEditorError as _0x459c11,version as _0x1efc13,uid as _0x1b2700}from'ckeditor5/src/utils.js';import{Notification as _0x628b19}from'ckeditor5/src/ui.js';import{transformOperationSets as _0x24d92f,NoOperation as _0x473bad,InsertOperation as _0x3dc9f1,MarkerOperation as _0x5da2a5,RootAttributeOperation as _0x158e0d,OperationFactory as _0x1137fb,History as _0x165df5}from'ckeditor5/src/engine.js';import{WebSocketGateway as _0x39f35a}from'./websocketgateway.js';import{Sessions as _0x39fe52}from'./sessions.js';import{UserMarkers as _0x2ab935}from'./usermarkers.js';import{getTranslation as _0x100d42}from'../common-translations.js';import{Compressor as _0xab5a34}from'@ckeditor/ckeditor5-operations-compressor';import{Users as _0x5159f1}from'ckeditor5-collaboration/src/collaboration-core.js';import{User as _0x5c94ad,CollaborativeEditingService as _0x366e31}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';let Q=0x1;function _0x13e1(_0xdb3842,_0x2fb78){const _0x253bdf=_0x253b();return _0x13e1=function(_0x13e1c4,_0x56c40c){_0x13e1c4=_0x13e1c4-0xaf;let _0x29852d=_0x253bdf[_0x13e1c4];return _0x29852d;},_0x13e1(_0xdb3842,_0x2fb78);}export class RealTimeCollaborationClient extends _0x147f9f{static [_0x3aae05(0x106)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x366e31)());[_0x3aae05(0x10a)];[_0x3aae05(0x136)];[_0x3aae05(0x112)];[_0x3aae05(0x11e)];[_0x3aae05(0x153)];[_0x3aae05(0x113)];[_0x3aae05(0xdd)];[_0x3aae05(0xc4)];[_0x3aae05(0xf8)];[_0x3aae05(0xd5)];[_0x3aae05(0x1a3)];[_0x3aae05(0x1a8)];[_0x3aae05(0x144)];[_0x3aae05(0xfb)];[_0x3aae05(0xc6)];[_0x3aae05(0x197)];[_0x3aae05(0x147)];[_0x3aae05(0x14d)];static get[_0x3aae05(0x160)](){return[_0x39f35a,_0x39fe52,_0x2ab935,_0x426c8a,_0x5159f1,_0x628b19];}static get[_0x3aae05(0xdb)](){const _0xf2c91e=_0x3aae05;return _0xf2c91e(0xaf);}static get[_0x3aae05(0x1af)](){return!0x0;}static get[_0x3aae05(0x166)](){return!0x0;}get[_0x3aae05(0xe7)](){const _0x30ccc8=_0x3aae05;return this[_0x30ccc8(0xc3)]+this[_0x30ccc8(0x10a)];}get[_0x3aae05(0xc3)](){const _0x1b7df4=_0x3aae05;return this[_0x1b7df4(0x112)][_0x1b7df4(0x118)]-this[_0x1b7df4(0x10a)];}get[_0x3aae05(0x148)](){const _0x1737eb=_0x3aae05,_0x13939e=this[_0x1737eb(0x112)][_0x1737eb(0x18a)]();for(let _0x31fe43=_0x13939e[_0x1737eb(0xb1)]-0x1;_0x31fe43>=0x0;_0x31fe43--){const _0x7125ab=_0x13939e[_0x31fe43];if(!this[_0x1737eb(0x147)][_0x1737eb(0x109)](_0x7125ab))return _0x7125ab[_0x1737eb(0xcb)]+0x1-this[_0x1737eb(0x10a)];}return 0x0;}constructor(_0x2e8b1e){const _0x1b952f=_0x3aae05;if(super(_0x2e8b1e),this[_0x1b952f(0x10a)]=0x0,this[_0x1b952f(0x136)]=null,this[_0x1b952f(0x112)]=new _0x165df5(),this[_0x1b952f(0x14c)][_0x1b952f(0xcc)][_0x1b952f(0x13b)](_0x1b952f(0x111),{}),this[_0x1b952f(0x11e)]=this[_0x1b952f(0x14c)][_0x1b952f(0xcc)][_0x1b952f(0x175)](_0x1b952f(0x1b5)),!this[_0x1b952f(0x11e)])throw new _0x459c11(_0x1b952f(0x134),this);const _0x32a54a=_0x2e8b1e[_0x1b952f(0xcc)][_0x1b952f(0x175)](_0x1b952f(0x17b))||_0x1efc13;this[_0x1b952f(0x153)]=new RealTimeCollaborationClient[(_0x1b952f(0x106))](_0x32a54a,this[_0x1b952f(0x11e)]),this[_0x1b952f(0x113)]=this[_0x1b952f(0x14c)][_0x1b952f(0x1a6)][_0x1b952f(0x12f)],this[_0x1b952f(0xdd)]=new _0xab5a34(),this[_0x1b952f(0xc4)]=[],this[_0x1b952f(0xf8)]=new WeakSet(),this[_0x1b952f(0xd5)]=new Set(),this[_0x1b952f(0xbc)](_0x1b952f(0x181),!0x1),this[_0x1b952f(0xbc)](_0x1b952f(0x157),!0x1),this[_0x1b952f(0x1a3)]=null,this[_0x1b952f(0x1a8)]=!0x1,this[_0x1b952f(0x144)]=null,this[_0x1b952f(0xfb)]=0x12c,this[_0x1b952f(0xc6)]=this[_0x1b952f(0xfb)],this[_0x1b952f(0x197)]=null,this[_0x1b952f(0x147)]=new WeakSet(),this[_0x1b952f(0x14d)]=new Z(this[_0x1b952f(0x147)]);}[_0x3aae05(0xc2)](){const _0x1bce00=_0x3aae05,_0x902658=this[_0x1bce00(0x14c)],_0x39e70b=_0x902658[_0x1bce00(0x190)][_0x1bce00(0x175)](_0x5159f1),_0x3f4364=_0x902658[_0x1bce00(0x190)][_0x1bce00(0x175)](_0x39f35a);this[_0x1bce00(0x10e)](_0x39e70b,_0x1bce00(0x183),(_0x1f278e,_0x120487)=>{const _0x1f537a=_0x1bce00,_0x1404b3=_0x120487[0x0];_0x1404b3[_0x1f537a(0x176)]&&(_0x1f278e[_0x1f537a(0x1a9)]=_0x39e70b[_0x1f537a(0xf3)](_0x1404b3[_0x1f537a(0x176)]),_0x1f278e[_0x1f537a(0x15d)]()),null===_0x1404b3[_0x1f537a(0x176)]&&(_0x1f278e[_0x1f537a(0x1a9)]=null,_0x1f278e[_0x1f537a(0x15d)]());},{'priority':_0x1bce00(0x17d)}),this[_0x1bce00(0x10e)](_0x902658[_0x1bce00(0x1a6)][_0x1bce00(0x12f)][_0x1bce00(0xd1)],_0x1bce00(0xc5),(_0xe65166,_0x5753f4)=>{const _0x1ced07=_0x1bce00;_0x5753f4[_0x1ced07(0xe4)]&&this[_0x1ced07(0x13a)]();}),this[_0x1bce00(0x10e)](_0x902658[_0x1bce00(0x188)][_0x1bce00(0x1a5)],_0x1bce00(0x150),()=>{const _0x11892c=_0x1bce00;this[_0x11892c(0x13a)]();}),this[_0x1bce00(0x19b)](),_0x902658[_0x1bce00(0x1a6)]['on'](_0x1bce00(0x19a),(_0x198752,_0x47c9d9)=>{const _0x96e3ed=_0x1bce00,_0x1cf1eb=_0x47c9d9[0x0];_0x1cf1eb[_0x96e3ed(0xfd)]&&(this[_0x96e3ed(0x107)](_0x1cf1eb),this[_0x96e3ed(0x16f)]()&&this[_0x96e3ed(0xca)]());}),this[_0x1bce00(0xd9)](),this[_0x1bce00(0x116)](_0x1bce00(0xc0))['to'](_0x3f4364,_0x1bce00(0xda),this,_0x1bce00(0x157),(_0x218c2e,_0xff9e40)=>_0x1bce00(0x110)===_0x218c2e&&!_0xff9e40),this['on'](_0x1bce00(0x1ae),()=>{const _0x3086a7=_0x1bce00;this[_0x3086a7(0xc0)]?_0x902658[_0x3086a7(0xef)](_0x3086a7(0x193)):_0x902658[_0x3086a7(0xe9)](_0x3086a7(0x193));}),this[_0x1bce00(0xc0)]?_0x902658[_0x1bce00(0xef)](_0x1bce00(0x193)):_0x902658[_0x1bce00(0xe9)](_0x1bce00(0x193)),this[_0x1bce00(0xbc)](_0x1bce00(0x11b),!0x1);}async[_0x3aae05(0x18d)](){const _0x3b18ab=_0x3aae05,_0x3ef285=this[_0x3b18ab(0x14c)][_0x3b18ab(0x190)][_0x3b18ab(0x175)](_0x39fe52),_0x11dbc7=this[_0x3b18ab(0x14c)][_0x3b18ab(0x190)][_0x3b18ab(0x175)](_0x39f35a);try{this[_0x3b18ab(0x181)]=!0x0,_0x3ef285[_0x3b18ab(0xf7)](this[_0x3b18ab(0x11e)]);const _0x2b134f=await this[_0x3b18ab(0x153)][_0x3b18ab(0x18d)](_0x11dbc7[_0x3b18ab(0x15b)],this[_0x3b18ab(0x148)]);await this[_0x3b18ab(0x1ad)](_0x2b134f)&&(this[_0x3b18ab(0x181)]=!0x1,this[_0x3b18ab(0x10d)]());const _0x4445ae=await this[_0x3b18ab(0x153)][_0x3b18ab(0xba)]();_0x3ef285[_0x3b18ab(0x125)](this[_0x3b18ab(0x11e)],_0x4445ae),this[_0x3b18ab(0x142)](),this[_0x3b18ab(0x11b)]=!0x0;}catch(_0x4871f9){if(function(_0x46200e){const _0x2c0244=_0x3b18ab;return _0x2c0244(0xf4)===_0x46200e[_0x2c0244(0x171)];}(_0x4871f9)&&this[_0x3b18ab(0x136)])await this[_0x3b18ab(0x180)]();else{if(function(_0x4c8133){const _0x360566=_0x3b18ab;return _0x360566(0xb5)===_0x4c8133[_0x360566(0x171)];}(_0x4871f9)){const _0x37cb47=_0x100d42(this[_0x3b18ab(0x14c)][_0x3b18ab(0x12e)],_0x3b18ab(0x16c));this[_0x3b18ab(0x1b2)](_0x37cb47);}else{if(!(_0x4871f9 instanceof X))throw _0x4871f9;this[_0x3b18ab(0x1b2)]();}}}}[_0x3aae05(0x14a)](){const _0x40d002=_0x3aae05,_0x29cefa=this[_0x40d002(0x14c)][_0x40d002(0x190)][_0x40d002(0x175)](_0x39f35a),_0x13784d=this[_0x40d002(0x14c)][_0x40d002(0x190)][_0x40d002(0x175)](_0x39fe52);this[_0x40d002(0x14c)][_0x40d002(0xe9)](_0x40d002(0xbf)),_0x13784d[_0x40d002(0x131)][_0x40d002(0x109)](this[_0x40d002(0x11e)])&&_0x13784d[_0x40d002(0xf7)](this[_0x40d002(0x11e)]),_0x29cefa[_0x40d002(0x173)](this),this[_0x40d002(0x199)](),super[_0x40d002(0x14a)]();}async[_0x3aae05(0x1ad)](_0x3f0c9a){const _0x41b1cb=_0x3aae05;if(this[_0x41b1cb(0x136)]!==_0x3f0c9a[_0x41b1cb(0x136)]&&this[_0x41b1cb(0x197)]!==_0x3f0c9a[_0x41b1cb(0x137)])throw new X();return this[_0x41b1cb(0x136)]=_0x3f0c9a[_0x41b1cb(0x136)],this[_0x41b1cb(0x138)]([],{..._0x3f0c9a,'wereChangesApplied':!0x1,'data':_0x3f0c9a[_0x41b1cb(0x155)]},_0x41b1cb(0x18d));}async[_0x3aae05(0x128)](_0x2aecc2,_0x4317a5=!0x1){const _0x2b51f3=_0x3aae05,{connection:_0x1fcbf3}=this[_0x2b51f3(0x14c)][_0x2b51f3(0x190)][_0x2b51f3(0x175)](_0x39f35a);RealTimeCollaborationClient[_0x2b51f3(0x106)][_0x2b51f3(0xba)](_0x1fcbf3,this[_0x2b51f3(0x11e)])[_0x2b51f3(0xfa)](_0x6a5380=>this[_0x2b51f3(0x10b)](_0x6a5380))[_0x2b51f3(0x11c)](_0x4e62fa=>{const _0x121329=_0x2b51f3;this[_0x121329(0xfe)](_0x121329(0xdf),_0x4e62fa);}),this[_0x2b51f3(0x10e)](this[_0x2b51f3(0x153)],_0x2b51f3(0x195),this[_0x2b51f3(0x164)][_0x2b51f3(0x116)](this)),this[_0x2b51f3(0x10e)](this[_0x2b51f3(0x153)],_0x2b51f3(0x191),(_0x1fa7c2,_0x38df5d)=>{const _0x592392=_0x2b51f3;this[_0x592392(0xfe)](_0x592392(0x18f),_0x38df5d);}),this[_0x2b51f3(0x10e)](this[_0x2b51f3(0x153)],_0x2b51f3(0x16b),()=>{const _0x40d4ef=_0x2b51f3;this[_0x40d4ef(0x11b)]=!0x1;});const _0x237639=this[_0x2b51f3(0x14d)][_0x2b51f3(0xb0)](_0x2aecc2);this[_0x2b51f3(0x181)]=!0x0;const _0x3361b9=await this[_0x2b51f3(0x153)][_0x2b51f3(0xb2)](_0x1fcbf3,this[_0x2b51f3(0x149)](_0x2aecc2),_0x237639);if(this[_0x2b51f3(0x136)]=_0x3361b9[_0x2b51f3(0x136)],_0x4317a5){if(!_0x3361b9[_0x2b51f3(0x1ac)])return void this[_0x2b51f3(0x1b2)]();this[_0x2b51f3(0x181)]=!0x1,this[_0x2b51f3(0x10d)](),this[_0x2b51f3(0x112)][_0x2b51f3(0xb9)](),this[_0x2b51f3(0x10a)]=_0x3361b9[_0x2b51f3(0x158)],this[_0x2b51f3(0x112)][_0x2b51f3(0x118)]=this[_0x2b51f3(0x10a)],await this[_0x2b51f3(0x138)](_0x2aecc2,_0x3361b9,_0x2b51f3(0x187));}else await this[_0x2b51f3(0xe2)](_0x3361b9,_0x2aecc2);this[_0x2b51f3(0x142)](),this[_0x2b51f3(0x11b)]=!0x0;}[_0x3aae05(0x142)](){const _0x2c4b6d=_0x3aae05,_0x2af222=this[_0x2c4b6d(0x14c)][_0x2c4b6d(0x190)][_0x2c4b6d(0x175)](_0x39fe52),_0x455d64=this[_0x2c4b6d(0x14c)][_0x2c4b6d(0x190)][_0x2c4b6d(0x175)](_0x2ab935),_0x317bd4=_0x2af222[_0x2c4b6d(0x131)][_0x2c4b6d(0x175)](this[_0x2c4b6d(0x11e)]);_0x317bd4&&_0x317bd4[_0x2c4b6d(0xb1)]>0x1?_0x455d64[_0x2c4b6d(0x11a)]():this[_0x2c4b6d(0x10e)](_0x2af222,_0x2c4b6d(0x12c)+this[_0x2c4b6d(0x11e)],()=>{const _0xb1d042=_0x2c4b6d;0x2===_0x2af222[_0xb1d042(0x131)][_0xb1d042(0x175)](this[_0xb1d042(0x11e)])[_0xb1d042(0xb1)]&&_0x455d64[_0xb1d042(0x11a)]();});}async[_0x3aae05(0x164)](_0x246465,_0x2617bb,_0x255c35,_0x448b69){const _0x53fb61=_0x3aae05;if(!this[_0x53fb61(0x181)]&&this[_0x53fb61(0x113)][_0x53fb61(0x118)]==_0x2617bb){const _0x4375ec=this[_0x53fb61(0x1b1)](_0x255c35,_0x448b69);await this[_0x53fb61(0xeb)](_0x4375ec),this[_0x53fb61(0xb6)](_0x4375ec,_0x2617bb,_0x255c35[_0x53fb61(0x137)])||this[_0x53fb61(0xfe)](_0x53fb61(0x108));}}async[_0x3aae05(0x180)](){const _0x3875aa=_0x3aae05;this[_0x3875aa(0x199)]();const {locale:_0x2d8993}=this[_0x3875aa(0x14c)];let _0x15b739;try{_0x15b739=await this[_0x3875aa(0x153)][_0x3875aa(0x102)]();}catch{const _0x4ebf57=_0x100d42(_0x2d8993,_0x3875aa(0x14b));return void this[_0x3875aa(0x1b2)](_0x4ebf57);}const _0x2f8098=_0x15b739[_0x3875aa(0x16a)]||_0x15b739[_0x3875aa(0xcf)];if(this[_0x3875aa(0x197)]!==_0x2f8098[_0x3875aa(0x137)]){const _0x5f5155=_0x100d42(_0x2d8993,_0x3875aa(0xbe));return void this[_0x3875aa(0x1b2)](_0x5f5155);}await this[_0x3875aa(0x128)](this[_0x3875aa(0x14c)][_0x3875aa(0x1a6)][_0x3875aa(0x12f)][_0x3875aa(0xe0)][_0x3875aa(0x18a)](),!0x0);}[_0x3aae05(0x199)](){const _0x38b454=_0x3aae05;this[_0x38b454(0x153)][_0x38b454(0x170)](),this[_0x38b454(0xc4)]=[],clearTimeout(this[_0x38b454(0x144)]),this[_0x38b454(0x154)](this[_0x38b454(0x153)]);}[_0x3aae05(0x10b)](_0x51786f){const _0x4f3dac=_0x3aae05,_0x2e50f2=this[_0x4f3dac(0x14c)][_0x4f3dac(0x190)][_0x4f3dac(0x175)](_0x39fe52);this[_0x4f3dac(0x10e)](_0x2e50f2,_0x4f3dac(0x12c)+this[_0x4f3dac(0x11e)],(_0x8953f8,{session:_0x36e3aa})=>{const _0x2c9d02=_0x4f3dac;if(_0x36e3aa['id']===_0x2e50f2[_0x2c9d02(0x17c)]){_0x8953f8[_0x2c9d02(0x10f)]();const _0xf53cc9=this[_0x2c9d02(0x14c)][_0x2c9d02(0x190)][_0x2c9d02(0x109)](_0x2c9d02(0x18e))&&this[_0x2c9d02(0x14c)][_0x2c9d02(0x190)][_0x2c9d02(0x175)](_0x2c9d02(0x18e));let _0x44c1f4=_0x36e3aa[_0x2c9d02(0x184)];_0xf53cc9&&_0xf53cc9[_0x2c9d02(0x163)]&&(_0x44c1f4=_0x44c1f4[_0x2c9d02(0x114)](_0x495e18=>_0x2c9d02(0x196)!==_0x495e18)),this[_0x2c9d02(0x14c)][_0x2c9d02(0x190)][_0x2c9d02(0x175)](_0x2c9d02(0x143))[_0x2c9d02(0x185)](_0x44c1f4,this[_0x2c9d02(0x11e)]);}}),_0x2e50f2[_0x4f3dac(0x125)](this[_0x4f3dac(0x11e)],_0x51786f);}[_0x3aae05(0x19b)](){const _0x47a731=_0x3aae05,_0x1fe6d0=this[_0x47a731(0x14c)][_0x47a731(0x155)][_0x47a731(0xbc)];this[_0x47a731(0x14c)][_0x47a731(0x155)][_0x47a731(0xbc)]=(..._0x5a53d2)=>{const _0x3bbd04=_0x47a731;if(!_0x5a53d2[_0x5a53d2[_0x3bbd04(0xb1)]-0x1][_0x3bbd04(0xd0)])throw new _0x459c11(_0x3bbd04(0x105),this);_0x1fe6d0[_0x3bbd04(0xe1)](this[_0x3bbd04(0x14c)][_0x3bbd04(0x155)],_0x5a53d2);};}[_0x3aae05(0xd9)](){const _0x28bd2b=_0x3aae05;this[_0x28bd2b(0x14c)][_0x28bd2b(0x155)]['on'](_0x28bd2b(0xc2),(_0x39da79,[_0x30b3b6])=>{const _0x2b5442=_0x28bd2b;if(this[_0x2b5442(0x113)][_0x2b5442(0x118)])throw new _0x459c11(_0x2b5442(0xf0),this);_0x39da79[_0x2b5442(0x15d)](),this[_0x2b5442(0xd3)]();const _0x4d716d=this[_0x2b5442(0x14c)][_0x2b5442(0xcc)][_0x2b5442(0x175)](_0x2b5442(0xc7)),_0x2c00a5=this[_0x2b5442(0xc1)](_0x30b3b6,_0x4d716d);0x0==_0x2c00a5[_0x2b5442(0xb1)]&&_0x2c00a5[_0x2b5442(0x17a)](new _0x473bad(0x0)),_0x39da79[_0x2b5442(0x1a9)]=this[_0x2b5442(0x128)](_0x2c00a5)[_0x2b5442(0xfa)](()=>{const _0x58ccb9=_0x2b5442;this[_0x58ccb9(0x14c)][_0x58ccb9(0x190)][_0x58ccb9(0x175)](_0x39f35a)[_0x58ccb9(0xf1)](this),this[_0x58ccb9(0x14c)][_0x58ccb9(0x155)][_0x58ccb9(0x117)](_0x58ccb9(0x12b));})[_0x2b5442(0x11c)](_0xa7a8eb=>this[_0x2b5442(0xfe)](_0x2b5442(0x17e),_0xa7a8eb))[_0x2b5442(0x124)](()=>this[_0x2b5442(0x10d)]());},{'priority':_0x28bd2b(0x17d)}),this[_0x28bd2b(0x14c)]['on'](_0x28bd2b(0x100),async(_0xecb4f4,[_0x2ffe92,_0x2ff01d])=>{const _0x52051f=_0x28bd2b;_0xecb4f4[_0x52051f(0x15d)]();const _0x26c6cf=this[_0x52051f(0x14c)][_0x52051f(0x1a6)][_0x52051f(0x12f)][_0x52051f(0xb4)](_0x2ffe92);if(!this[_0x52051f(0xd5)][_0x52051f(0x109)](_0x2ffe92)){const _0x6bae08=_0x2ff01d&&_0x2ff01d[_0x52051f(0x155)]?_0x2ff01d[_0x52051f(0x155)]:'',_0x1e77e9=_0x2ff01d&&_0x2ff01d[_0x52051f(0xed)]?_0x2ff01d[_0x52051f(0xed)]:{};await this[_0x52051f(0x13d)](_0x2ffe92,_0x6bae08,_0x1e77e9);}this[_0x52051f(0x14c)][_0x52051f(0x1a6)][_0x52051f(0x165)]({'isUndoable':!0x1},()=>{const _0x1ed005=_0x52051f;_0x26c6cf[_0x1ed005(0x141)]=!0x0,this[_0x1ed005(0x14c)][_0x1ed005(0x1a6)][_0x1ed005(0x12f)][_0x1ed005(0x167)][_0x1ed005(0x161)](_0x26c6cf);});},{'priority':_0x28bd2b(0x17d)});}async[_0x3aae05(0xeb)](_0x2015f7){const _0x292aa8=_0x3aae05,_0x43941e=this[_0x292aa8(0x14c)][_0x292aa8(0x190)][_0x292aa8(0x175)](_0x5159f1),{connection:_0x474fd5}=this[_0x292aa8(0x14c)][_0x292aa8(0x190)][_0x292aa8(0x175)](_0x39f35a),_0x723ee6=new Set();for(const _0x417a27 of _0x2015f7){const _0x1b42c3=_0x417a27[_0x292aa8(0x176)];_0x1b42c3&&!_0x43941e[_0x292aa8(0xf3)](_0x1b42c3)&&_0x723ee6[_0x292aa8(0x19d)](_0x1b42c3);}if(0x0===_0x723ee6[_0x292aa8(0x186)])return;const _0x23b008=await _0x5c94ad[_0x292aa8(0x115)](_0x474fd5,Array[_0x292aa8(0x126)](_0x723ee6));for(const _0x7e0944 of _0x23b008)_0x43941e[_0x292aa8(0xf3)](_0x7e0944['id'])||_0x43941e[_0x292aa8(0x174)](_0x7e0944);}[_0x3aae05(0xc1)](_0x375d05,_0xc01ce={}){const _0x38204f=_0x3aae05,_0x50b1c2=this[_0x38204f(0x14c)][_0x38204f(0x1a6)],_0x19a845=[];let _0x8132e9=0x0;const _0x1fd38b=_0x38204f(0x1b0)==typeof _0x375d05?{'main':_0x375d05}:_0x375d05;for(const _0x3872dd of Object[_0x38204f(0x1a0)](_0x1fd38b)){if(!this[_0x38204f(0x113)][_0x38204f(0x1a7)][_0x38204f(0x109)](_0x3872dd))throw new _0x459c11(_0x38204f(0x17f),this);const _0xb47ee4=this[_0x38204f(0x14c)][_0x38204f(0x155)][_0x38204f(0xde)](_0x1fd38b[_0x3872dd]),_0x65fe06=this[_0x38204f(0x113)][_0x38204f(0xb4)](_0x3872dd),_0x451e6d=new _0x3dc9f1(_0x50b1c2[_0x38204f(0x10c)](_0x65fe06,0x0),_0xb47ee4,_0x8132e9++);_0x19a845[_0x38204f(0x17a)](_0x451e6d);for(const [_0x53d53d,_0x544638]of _0xb47ee4[_0x38204f(0x140)]){const _0x2fa710=_0x50b1c2[_0x38204f(0xd8)](_0x50b1c2[_0x38204f(0x169)](_0x65fe06,_0x544638[_0x38204f(0xdc)][_0x38204f(0x168)][_0x38204f(0x159)]()),_0x50b1c2[_0x38204f(0x169)](_0x65fe06,_0x544638[_0x38204f(0x151)][_0x38204f(0x168)][_0x38204f(0x159)]())),_0x5616d2=new _0x5da2a5(_0x53d53d,null,_0x2fa710,_0x50b1c2[_0x38204f(0x140)],!0x0,_0x8132e9++);_0x19a845[_0x38204f(0x17a)](_0x5616d2);}}if(_0xc01ce)for(const [_0x30df63,_0x472b71]of Object[_0x38204f(0x152)](_0xc01ce)){const _0x472eb2=_0x50b1c2[_0x38204f(0x12f)][_0x38204f(0xb4)](_0x30df63);if(!_0x472eb2)throw new _0x459c11(_0x38204f(0x13e),null);for(const [_0x49a1c2,_0x55f3ae]of Object[_0x38204f(0x152)](_0x472b71))if(null!==_0x55f3ae){const _0xb18792=new _0x158e0d(_0x472eb2,_0x49a1c2,null,_0x55f3ae,_0x8132e9++);_0x19a845[_0x38204f(0x17a)](_0xb18792);}}return _0x19a845;}async[_0x3aae05(0x13d)](_0x2b6d0e,_0x4d76e2,_0x4f4942){const _0x2671f5=_0x3aae05;this[_0x2671f5(0xc1)]({[_0x2b6d0e]:_0x4d76e2},{[_0x2b6d0e]:_0x4f4942})[_0x2671f5(0x15e)]((_0x3d780c,_0x584e61)=>{const _0x21f02c=_0x2671f5;_0x3d780c[_0x21f02c(0xcb)]=this[_0x21f02c(0x113)][_0x21f02c(0x118)]+_0x584e61,_0x3d780c[_0x21f02c(0x12d)]=!0x0,this[_0x21f02c(0x107)](_0x3d780c);}),this[_0x2671f5(0xca)](),await this[_0x2671f5(0x119)]();}async[_0x3aae05(0xe2)](_0x6661,_0x542a27){const _0x3e4305=_0x3aae05;let _0x3b545c;this[_0x3e4305(0x10a)]=_0x6661[_0x3e4305(0x158)];const _0x2935d3=_0x6661[_0x3e4305(0x1ac)]&&!_0x6661[_0x3e4305(0x194)],_0x3f1dca=_0x2935d3?0x0:_0x6661[_0x3e4305(0x155)][_0x3e4305(0xcb)];if(_0x542a27[_0x3e4305(0x15e)](_0x262456=>{const _0x10cdd3=_0x3e4305;_0x262456[_0x10cdd3(0x12d)]=!0x0,_0x262456[_0x10cdd3(0x146)]=_0x6661[_0x10cdd3(0xd4)],_0x262456[_0x10cdd3(0x176)]=null;}),_0x2935d3)_0x3b545c=_0x542a27,this[_0x3e4305(0xe6)](_0x3b545c,_0x2935d3);else{if(_0x6661[_0x3e4305(0x194)]){const _0x3418e1=this[_0x3e4305(0xc1)](_0x6661[_0x3e4305(0x194)]);this[_0x3e4305(0x113)][_0x3e4305(0xe0)][_0x3e4305(0x118)]=-_0x3418e1[_0x3e4305(0xb1)],_0x3418e1[_0x3e4305(0x15e)](_0x5f3ff7=>{const _0x355686=_0x3e4305;_0x5f3ff7[_0x355686(0xcb)]-=_0x3418e1[_0x355686(0xb1)],_0x5f3ff7[_0x355686(0x146)]=_0x6661[_0x355686(0xd4)],_0x5f3ff7[_0x355686(0x12d)]=!0x0,_0x5f3ff7[_0x355686(0x176)]=null;}),this[_0x3e4305(0xe6)](_0x3418e1,!0x0),this[_0x3e4305(0x112)][_0x3e4305(0x118)]=-_0x3418e1[_0x3e4305(0xb1)]+this[_0x3e4305(0x10a)],this[_0x3e4305(0xf2)](_0x3418e1);}this[_0x3e4305(0x113)][_0x3e4305(0xe0)][_0x3e4305(0x118)]=_0x3f1dca,_0x3b545c=this[_0x3e4305(0x1b1)](_0x6661[_0x3e4305(0x155)],_0x6661[_0x3e4305(0x1aa)]),await this[_0x3e4305(0xeb)](_0x3b545c),this[_0x3e4305(0xe6)](_0x3b545c,_0x2935d3);}_0x6661[_0x3e4305(0x137)]&&(this[_0x3e4305(0x14d)][_0x3e4305(0x103)](_0x3b545c,_0x6661[_0x3e4305(0x137)]),this[_0x3e4305(0x197)]=_0x6661[_0x3e4305(0x137)]),this[_0x3e4305(0x112)][_0x3e4305(0x118)]=_0x3f1dca+this[_0x3e4305(0x10a)],this[_0x3e4305(0xf2)](_0x3b545c),_0x542a27[_0x3e4305(0x114)](_0x5d615b=>{const _0x365f1b=_0x3e4305,_0x140275=this[_0x365f1b(0xf5)](_0x5d615b);return _0x140275&&!this[_0x365f1b(0xd5)][_0x365f1b(0x109)](_0x140275);})[_0x3e4305(0x15e)]((_0xd18ea0,_0x1bbe9d)=>{const _0x29e016=_0x3e4305;_0xd18ea0[_0x29e016(0xcb)]=this[_0x29e016(0x113)][_0x29e016(0x118)]+_0x1bbe9d,this[_0x29e016(0x107)](_0xd18ea0);}),this[_0x3e4305(0x16f)]()?(this[_0x3e4305(0xc6)]=0x0,this[_0x3e4305(0xca)](!0x0),await this[_0x3e4305(0x119)]()):(this[_0x3e4305(0x181)]=!0x1,this[_0x3e4305(0x10d)]());}[_0x3aae05(0xfe)](_0x191e0f,_0x27e2b8){const _0x46e351=_0x3aae05,_0x6ecb2b=_0x27e2b8&&_0x27e2b8[_0x46e351(0xce)];if(_0x6ecb2b&&_0x6ecb2b[_0x46e351(0xfc)](_0x46e351(0x1b6)))throw _0x27e2b8;const _0x25440f=this[_0x46e351(0x14c)][_0x46e351(0x190)][_0x46e351(0x175)](_0x39f35a);throw this[_0x46e351(0x181)]=!0x0,_0x25440f[_0x46e351(0x170)](),this[_0x46e351(0x14c)][_0x46e351(0xe9)](_0x46e351(0x1b3)),new _0x459c11(_0x191e0f,this[_0x46e351(0x14c)],_0x6ecb2b?{'originalError':_0x6ecb2b}:void 0x0);}[_0x3aae05(0x107)](_0x4575e){const _0x2f0274=_0x3aae05;this[_0x2f0274(0xf8)][_0x2f0274(0x109)](_0x4575e)||(this[_0x2f0274(0xf8)][_0x2f0274(0x19d)](_0x4575e),this[_0x2f0274(0xc4)][_0x2f0274(0x17a)](_0x4575e),this[_0x2f0274(0x1a3)]||_0x2f0274(0xc9)==_0x4575e[_0x2f0274(0x1a1)]&&!_0x4575e[_0x2f0274(0x139)]||this[_0x2f0274(0xd3)]());}[_0x3aae05(0xca)](_0x5f2218=!0x1){const _0x6ebd87=_0x3aae05;!_0x5f2218&&this[_0x6ebd87(0x181)]||(this[_0x6ebd87(0x181)]=!0x0,clearTimeout(this[_0x6ebd87(0x144)]),this[_0x6ebd87(0x144)]=setTimeout(()=>{const _0x5e748d=_0x6ebd87;this[_0x5e748d(0x18c)]()[_0x5e748d(0xfa)](_0x2f7035=>{const _0x1ecd8a=_0x5e748d;_0x2f7035&&(this[_0x1ecd8a(0x10d)](),this[_0x1ecd8a(0x181)]=!0x1);})[_0x5e748d(0x11c)](_0x3a5879=>{const _0x2b8ed9=_0x5e748d;this[_0x2b8ed9(0x10d)](),this[_0x2b8ed9(0x181)]=!0x1,function(_0xd48cd9){const _0x44791b=_0x2b8ed9;return _0xd48cd9[_0x44791b(0xce)][_0x44791b(0xfc)](_0x44791b(0xe8))||_0xd48cd9[_0x44791b(0xce)][_0x44791b(0xfc)](_0x44791b(0xd7))||_0xd48cd9[_0x44791b(0xce)][_0x44791b(0xfc)](_0x44791b(0x13f));}(_0x3a5879)||this[_0x2b8ed9(0xfe)](_0x3a5879[_0x2b8ed9(0xce)],_0x3a5879);});},this[_0x6ebd87(0xc6)]));}[_0x3aae05(0x119)](){return new Promise(_0x40967c=>{const _0x1c8014=_0x13e1;this['on'](_0x1c8014(0xbd),()=>{_0x40967c();});});}async[_0x3aae05(0x18c)](){const _0x45f6bc=_0x3aae05,_0x511b11=this[_0x45f6bc(0x14c)][_0x45f6bc(0x190)][_0x45f6bc(0x175)](_0x2ab935);if(this[_0x45f6bc(0x13c)]()&&(_0x511b11[_0x45f6bc(0x11a)](),this[_0x45f6bc(0x1a8)]=!0x1),!this[_0x45f6bc(0x16f)]())return!0x0;const _0x39ad94=[...this[_0x45f6bc(0xc4)]];for(const _0x49761b of _0x39ad94)_0x49761b[_0x45f6bc(0x19f)]=this[_0x45f6bc(0x113)][_0x45f6bc(0xe0)][_0x45f6bc(0x15f)](_0x49761b);const _0x582ca7=this[_0x45f6bc(0x14d)][_0x45f6bc(0xb0)](_0x39ad94),_0x178257=Q++,_0x20f8a3=this[_0x45f6bc(0x149)](_0x39ad94),_0x5b05fe=await this[_0x45f6bc(0x153)][_0x45f6bc(0x135)](_0x20f8a3,_0x20f8a3[_0x45f6bc(0xcb)],_0x582ca7);try{return await this[_0x45f6bc(0x138)](_0x39ad94,_0x5b05fe,_0x178257);}catch(_0x6ad1ee){return this[_0x45f6bc(0xfe)](_0x45f6bc(0xee),_0x6ad1ee);}}async[_0x3aae05(0x138)](_0x1bb18f,_0x3c679e,_0x5147be){const _0x1250df=_0x3aae05;if(_0x1250df(0x191)in _0x3c679e)throw _0x3c679e[_0x1250df(0x191)];let _0x512465=!0x1;if(_0x3c679e[_0x1250df(0x1ac)]){_0x3c679e[_0x1250df(0x137)]&&(this[_0x1250df(0x197)]=_0x3c679e[_0x1250df(0x137)]),this[_0x1250df(0xc4)]=this[_0x1250df(0xc4)][_0x1250df(0x114)](_0x155dce=>!_0x1bb18f[_0x1250df(0x123)](_0x155dce));for(const _0x58368f of _0x1bb18f)_0x58368f[_0x1250df(0x146)]=_0x1250df(0x156)in _0x3c679e&&_0x3c679e[_0x1250df(0x156)]||void 0x0;Y(_0x1bb18f,_0x3c679e[_0x1250df(0x118)]-_0x1bb18f[_0x1250df(0xb1)]),this[_0x1250df(0xf2)](_0x1bb18f);const _0x13a18c=_0x1bb18f[_0x1250df(0x114)](_0x2d9ed1=>{const _0x2192bf=_0x1250df;if(!_0x2d9ed1[_0x2192bf(0x12d)])return!0x1;const _0x1986e1=this[_0x2192bf(0xf5)](_0x2d9ed1);return _0x1986e1&&!this[_0x2192bf(0xd5)][_0x2192bf(0x109)](_0x1986e1);});Y(_0x13a18c,this[_0x1250df(0x113)][_0x1250df(0x118)]),this[_0x1250df(0xe6)](_0x13a18c),_0x512465=!0x0,this[_0x1250df(0xc6)]=this[_0x1250df(0xfb)];}else{const _0x55dc12=this[_0x1250df(0x1b1)](_0x3c679e[_0x1250df(0x155)],_0x3c679e[_0x1250df(0x1aa)])[_0x1250df(0x114)](_0xcbf303=>_0xcbf303[_0x1250df(0xcb)]>=this[_0x1250df(0xc3)]);_0x55dc12[_0x1250df(0x15e)](_0x44656c=>this[_0x1250df(0x132)](_0x44656c)),this[_0x1250df(0xc4)]=this[_0x1250df(0xc4)][_0x1250df(0x114)](_0x3fc30c=>!_0x3fc30c[_0x1250df(0x12d)]||!this[_0x1250df(0xd5)][_0x1250df(0x109)](this[_0x1250df(0xf5)](_0x3fc30c))),this[_0x1250df(0xc4)][_0x1250df(0xb1)]&&Y(this[_0x1250df(0xc4)],this[_0x1250df(0xc4)][0x0][_0x1250df(0xcb)]),await this[_0x1250df(0xeb)](_0x55dc12),_0x512465=this[_0x1250df(0xb6)](_0x55dc12,_0x3c679e[_0x1250df(0x118)],_0x3c679e[_0x1250df(0x137)]),this[_0x1250df(0xc6)]=Math[_0x1250df(0xe3)](this[_0x1250df(0xc6)]/0x2);}return _0x512465?!this[_0x1250df(0x16f)]()||(this[_0x1250df(0xca)](!0x0),!0x1):this[_0x1250df(0xfe)](_0x1250df(0x177));}[_0x3aae05(0xb6)](_0x253f6f,_0x34cb0a,_0x60cae3){const _0x49dbd3=_0x3aae05;try{const _0x7a76b6={'document':this[_0x49dbd3(0x113)],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x206e30,operationsB:_0x5648e1,originalOperations:_0x2bedb3}=_0x24d92f(_0x253f6f,this[_0x49dbd3(0xc4)],_0x7a76b6);Y(_0x206e30,this[_0x49dbd3(0x113)][_0x49dbd3(0x118)]),Y(_0x5648e1,_0x34cb0a);for(const _0x170cd7 of _0x206e30){const _0x3279b5=_0x2bedb3[_0x49dbd3(0x175)](_0x170cd7);_0x170cd7[_0x49dbd3(0x176)]=_0x3279b5?_0x3279b5[_0x49dbd3(0x176)]:null;}_0x60cae3&&(this[_0x49dbd3(0x14d)][_0x49dbd3(0x103)](_0x253f6f,_0x60cae3),this[_0x49dbd3(0x197)]=_0x60cae3),this[_0x49dbd3(0xc4)]=[..._0x5648e1],this[_0x49dbd3(0xe6)](_0x206e30),this[_0x49dbd3(0xf2)](_0x253f6f);}catch(_0x3f7d99){return console[_0x49dbd3(0x191)](_0x3f7d99),!0x1;}return!0x0;}[_0x3aae05(0xe6)](_0x305f35,_0x4bf753=!0x1){const _0xc0cff6=_0x3aae05;this[_0xc0cff6(0x14c)][_0xc0cff6(0x1a6)][_0xc0cff6(0x165)]({'isUndoable':!0x1,'isLocal':!0x1},_0x5e98ef=>{const _0x13d51f=_0xc0cff6;for(const _0x1b9f70 of _0x305f35)this[_0x13d51f(0xf8)][_0x13d51f(0x19d)](_0x1b9f70),this[_0x13d51f(0x132)](_0x1b9f70),_0x5e98ef[_0x13d51f(0x198)][_0x13d51f(0x11f)](_0x1b9f70),this[_0x13d51f(0x14c)][_0x13d51f(0x1a6)][_0x13d51f(0x19a)](_0x1b9f70);});}[_0x3aae05(0x132)](_0xbd7ada){const _0x49ee6e=_0x3aae05,_0x2d59c5=this[_0x49ee6e(0xf5)](_0xbd7ada);_0x2d59c5&&this[_0x49ee6e(0xd5)][_0x49ee6e(0x19d)](_0x2d59c5);}[_0x3aae05(0xf5)](_0x33c82f){const _0x220213=_0x3aae05;let _0x47ae5f,_0x935169;switch(_0x33c82f[_0x220213(0x1a1)]){case _0x220213(0x16d):_0x47ae5f=_0x33c82f[_0x220213(0x145)][_0x220213(0xf6)];break;case _0x220213(0xc9):if(_0x935169=_0x33c82f[_0x220213(0x182)],!_0x935169)return null;_0x47ae5f=_0x935169[_0x220213(0xf6)];break;case _0x220213(0x14f):_0x47ae5f=_0x33c82f[_0x220213(0xf6)];break;case _0x220213(0x15a):_0x47ae5f=_0x33c82f[_0x220213(0x101)];break;case _0x220213(0x122):_0x47ae5f=_0x33c82f[_0x220213(0xd2)][_0x220213(0xf6)];break;default:return null;}return _0x47ae5f[_0x220213(0x130)];}[_0x3aae05(0xf2)](_0x5db553){const _0x41f4d8=_0x3aae05;_0x5db553[_0x41f4d8(0x15e)](_0x3be993=>{const _0x1b43ac=_0x41f4d8,_0xf9a918=_0x3be993[_0x1b43ac(0x179)]();_0xf9a918[_0x1b43ac(0x176)]=_0x3be993[_0x1b43ac(0x176)],_0xf9a918[_0x1b43ac(0x12d)]=!!_0x3be993[_0x1b43ac(0x12d)],_0xf9a918[_0x1b43ac(0x146)]=_0x3be993[_0x1b43ac(0x146)],_0xf9a918[_0x1b43ac(0xcb)]+=this[_0x1b43ac(0x10a)],_0x3be993[_0x1b43ac(0x16e)]&&this[_0x1b43ac(0x147)][_0x1b43ac(0x19d)](_0xf9a918),this[_0x1b43ac(0x112)][_0x1b43ac(0x11f)](_0xf9a918);});}[_0x3aae05(0x1b2)](_0x7bb7f1){const _0x55f211=_0x3aae05,_0x35b699=this[_0x55f211(0x14c)][_0x55f211(0x190)][_0x55f211(0x175)](_0x55f211(0x1a4)),_0x4c86f5=this[_0x55f211(0x14c)][_0x55f211(0x12e)];_0x7bb7f1||(_0x7bb7f1=_0x100d42(_0x4c86f5,_0x55f211(0x14e))),_0x35b699[_0x55f211(0x1b4)](_0x7bb7f1,{'title':_0x100d42(_0x4c86f5,_0x55f211(0x15c)),'namespace':_0x55f211(0x189)}),this[_0x55f211(0x157)]=!0x0,clearTimeout(this[_0x55f211(0x144)]),this[_0x55f211(0xc4)]=[],this[_0x55f211(0x14c)][_0x55f211(0x190)][_0x55f211(0x175)](_0x39f35a)[_0x55f211(0x170)]();}[_0x3aae05(0xd3)](){const _0x5b0a98=_0x3aae05;this[_0x5b0a98(0x1a3)]||(this[_0x5b0a98(0x1a3)]=this[_0x5b0a98(0x14c)][_0x5b0a98(0x190)][_0x5b0a98(0x175)](_0x426c8a)[_0x5b0a98(0x19d)](_0x100d42(this[_0x5b0a98(0x14c)][_0x5b0a98(0x12e)],_0x5b0a98(0xb7))));}[_0x3aae05(0x10d)](){const _0x5348cc=_0x3aae05;this[_0x5348cc(0x1a3)]&&(this[_0x5348cc(0x14c)][_0x5348cc(0x190)][_0x5348cc(0x175)](_0x426c8a)[_0x5348cc(0xb8)](this[_0x5348cc(0x1a3)]),this[_0x5348cc(0x1a3)]=null);}[_0x3aae05(0x149)](_0x483a4c){const _0x507b3c=_0x3aae05,_0x319978=_0x483a4c[_0x507b3c(0x172)](_0x5dd774=>_0x5dd774[_0x507b3c(0x129)]());return this[_0x507b3c(0xdd)][_0x507b3c(0x162)](_0x319978);}[_0x3aae05(0x1b1)](_0x5bdb7c,_0x626a87){const _0x5ddc34=_0x3aae05;return this[_0x5ddc34(0xdd)][_0x5ddc34(0xe5)](_0x5bdb7c)[_0x5ddc34(0x172)]((_0x503e8e,_0x8cee98)=>{const _0x5c2dfa=_0x5ddc34,_0x523809=_0x5c2dfa(0xc2)==_0x626a87[_0x8cee98][_0x5c2dfa(0x1a1)];if(_0x5c2dfa(0x133)==_0x503e8e[_0x5c2dfa(0x11d)]){const _0x154633=_0x503e8e[_0x5c2dfa(0x145)][_0x5c2dfa(0xf6)];!this[_0x5c2dfa(0x113)][_0x5c2dfa(0xb4)](_0x154633)&&(this[_0x5c2dfa(0x113)][_0x5c2dfa(0x18b)](_0x5c2dfa(0xcd),_0x154633)[_0x5c2dfa(0xb3)]=!0x1);}const _0x233234=_0x1137fb[_0x5c2dfa(0xf9)](_0x503e8e,this[_0x5c2dfa(0x113)]);return _0x233234[_0x5c2dfa(0x19f)]=_0x503e8e[_0x5c2dfa(0x19f)],_0x233234[_0x5c2dfa(0x12d)]=_0x523809,_0x233234[_0x5c2dfa(0x176)]=_0x523809?null:_0x626a87[_0x8cee98][_0x5c2dfa(0x104)],_0x233234[_0x5c2dfa(0x16e)]=_0x5c2dfa(0x1a2)===_0x626a87[_0x8cee98][_0x5c2dfa(0x1a1)],_0x233234[_0x5c2dfa(0x146)]=_0x626a87[_0x8cee98][_0x5c2dfa(0x146)],_0x233234;});}[_0x3aae05(0x13a)](){const _0x51174c=_0x3aae05;this[_0x51174c(0x1a8)]=!0x0,this[_0x51174c(0x13c)]()?this[_0x51174c(0xca)]():this[_0x51174c(0x1a8)]=!0x1;}[_0x3aae05(0x13c)](){const _0x430fa2=_0x3aae05,_0x5458f6=this[_0x430fa2(0x14c)][_0x430fa2(0x190)][_0x430fa2(0x175)](_0x39fe52)[_0x430fa2(0x131)][_0x430fa2(0x175)](this[_0x430fa2(0x11e)]);return!this[_0x430fa2(0x14c)][_0x430fa2(0x121)]&&!!_0x5458f6&&_0x5458f6[_0x430fa2(0xb1)]>0x1&&this[_0x430fa2(0x1a8)];}[_0x3aae05(0x16f)](){const _0x340a3e=_0x3aae05;return this[_0x340a3e(0xc4)][_0x340a3e(0xb1)]>0x0||this[_0x340a3e(0x13c)]();}}class X extends Error{}function _0x253b(){const _0x325c93=['cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.','createRange','_setUpDataInit','state','pluginName','start','_compressor','parse','realtimecollaborationclient-init-session-connection-error','history','apply','_handleInitialConnectionData','round','directChange','decompress','_applyOperationsSet','cloudDocumentVersion','cloud-services-internal-error:\x20Not\x20connected.','enableReadOnlyMode','87akZdCD','_fetchMissingUsers','44300kbJDKT','attributes','realtimecollaborationclient-sendbufferedoperations','disableReadOnlyMode','realtimecollaborationclient-init-document-already-initialized','addToReconnectionStack','_updateServerHistory','getUser','404','_getAffectedRoot','root','unregister','_knownOperations','fromJSON','then','_baseBufferDelay','startsWith','isDocumentOperation','_crash','16720SBRjep','loadRoot','affectedSelectable','getDocumentDetails','setIdForTheLastOperation','userId','realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration','CollaborativeEditingService','_saveOperationInBuffer','realtimecollaborationclient-init-service-incorrect-server-operation','has','_offset','_initSessionsHandling','createPositionAt','_clearPendingAction','listenTo','off','connected','collaboration','serverHistory','_document','filter','getMany','bind','fire','version','_waitUntilSynced','createUserMarkerOperations','_isConnected','catch','__className','_channelId','addOperation','118853HIxVgR','isReadOnly','move','includes','finally','register','from','16449756yMbdtW','_connectService','toJSON','15448kNTiNz','ready','sessionAdd:','_isInit','locale','document','rootName','channelSessions','_addKnownRoot','InsertOperation','collaboration-missing-channelid','sendOperations','sessionId','lastOperationId','_handleServerResponse','affectsData','_refreshUserSelectionMarkers','define','_shouldSendSelectionUpdate','_loadRoot','multi-root-editor-root-attributes-no-root','cloud-services-internal-error:\x20Request\x20timeout.','markers','_isLoaded','_handleSendingSelectionMarkers','Permissions','_sendBufferedOperationsDelayId','position','createdAt','_disconnectionOperations','lastSyncVersion','_compressOperations','destroy','The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','editor','_operationIdentifier','The\x20local\x20document\x20and\x20server\x20document\x20differ\x20and\x20merging\x20them\x20can\x20cause\x20unexpected\x20behavior.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','addRootAttribute','change:hasDomSelection','end','entries','_service','stopListening','data','lastOperationAcceptedAt','_hasSynchronizationProblem','offset','slice','addRoot','connection','Synchronization\x20issue','stop','forEach','isUndoneOperation','requires','_bufferRootLoad','compress','isEnabled','_handleReceivedOperations','enqueueChange','isPremiumPlugin','differ','path','createPositionFromPath','currentDocumentSession','disconnected','The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','insert','_isDisconnection','_shouldSendUpdate','disconnect','code','map','removeFromReconnectionStack','addUser','get','_authorId','realtimecollaborationclient-handleserverresponse','_operationToId','clone','push','cloudServices.bundleVersion','mySessionId','high','realtimecollaborationclient-init-connection-failed','realtimecollaborationclient-init-non-existent-root','_connectAfterSessionHasBeenFlushed','_isPendingUpdate','newRange','getOperationAuthor','permissions','setPermissions','size','reconnection:\x20flushed\x20session','editing','real-time-collaboration','getOperations','createRoot','_sendBufferedOperations','reconnect','CommentsOnly','realtimecollaborationclient-init-service-internal-error','plugins','error','308SpDNuF','rtc-offline','initData','operationsReceived','document:write','_lastSyncedOperationId','batch','_disconnectService','applyOperation','_initThrowingOnDataSet','4266YMcwMO','add','3404660zroXBx','wasUndone','keys','type','cs:removeUser','_pendingAction','Notification','view','model','roots','_hasSelectionChanged','return','metadata','66sEFNjG','wereChangesApplied','_handleReconnectionResponse','change:_isEditingAllowed','isOfficialPlugin','string','_decompressOperations','_handleReconnectionError','realtimecollaborationclient-error','showWarning','collaboration.channelId','realtimecollaborationclient','RealTimeCollaborationClient','getIdOfTheLastOperation','length','connect','_isAttached','getRoot','409','_handleExternalOperations','PENDING_ACTION_SENDING_DATA','remove','reset','getConnectedSessions','1JIoIJr','set','change:_isPendingUpdate','The\x20last\x20saved\x20version\x20of\x20the\x20document\x20does\x20not\x20match\x20the\x20local\x20version.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','rtc-destroyed','_isEditingAllowed','_getOperationsFromInitData','init','_lastServerVersion','_bufferedOperations','change:range','_currentBufferDelay','rootsAttributes','_ignoredOperations','marker','_sendBufferedOperationsDelayed','baseVersion','config','$root','message','lastDocumentSession','suppressErrorInCollaboration','selection','targetPosition','_setPendingAction','sessionCreatedAt','_knownRootNames','1355126WaWHkr'];_0x253b=function(){return _0x325c93;};return _0x253b();}function Y(_0x362848,_0x43a178){const _0x517520=_0x3aae05;for(const _0x3d2e35 of _0x362848)_0x3d2e35[_0x517520(0xcb)]=_0x43a178++;}class Z{[_0x3aae05(0xc8)];[_0x3aae05(0x178)];constructor(_0x3f4f9c){const _0xa525b4=_0x3aae05;this[_0xa525b4(0xc8)]=_0x3f4f9c,this[_0xa525b4(0x178)]=new WeakMap();}[_0x3aae05(0xb0)](_0x3e3a50){const _0x49ea70=_0x3aae05;let _0x170b8c=_0x3e3a50[_0x49ea70(0xb1)];for(;_0x170b8c--;){const _0x17d398=_0x3e3a50[_0x170b8c];if(!this[_0x49ea70(0xc8)][_0x49ea70(0x109)](_0x17d398)){if(!this[_0x49ea70(0x178)][_0x49ea70(0x109)](_0x17d398)){const _0x131903=_0x1b2700()[_0x49ea70(0x159)](0x1,0x12);this[_0x49ea70(0x178)][_0x49ea70(0xbc)](_0x17d398,_0x131903);}return this[_0x49ea70(0x178)][_0x49ea70(0x175)](_0x17d398);}}}[_0x3aae05(0x103)](_0x28a980,_0x22be11){const _0x516e14=_0x3aae05;if(!_0x22be11)return;let _0x238d76=_0x28a980[_0x516e14(0xb1)];for(;_0x238d76--;){const _0x4e9a71=_0x28a980[_0x238d76];this[_0x516e14(0xc8)][_0x516e14(0x109)](_0x4e9a71)||this[_0x516e14(0x178)][_0x516e14(0xbc)](_0x4e9a71,_0x22be11);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4f71(_0x382223,_0x4abe58){const _0xb49ca1=_0xb49c();return _0x4f71=function(_0x4f7121,_0x322eb1){_0x4f7121=_0x4f7121-0x1c8;let _0x22ef85=_0xb49ca1[_0x4f7121];return _0x22ef85;},_0x4f71(_0x382223,_0x4abe58);}const _0x55e696=_0x4f71;(function(_0x41c008,_0x2831ee){const _0xcf9a59=_0x4f71,_0x2c81d0=_0x41c008();while(!![]){try{const _0x5d358f=parseInt(_0xcf9a59(0x205))/0x1*(-parseInt(_0xcf9a59(0x1dc))/0x2)+-parseInt(_0xcf9a59(0x1e8))/0x3*(parseInt(_0xcf9a59(0x1ea))/0x4)+-parseInt(_0xcf9a59(0x1ed))/0x5*(-parseInt(_0xcf9a59(0x204))/0x6)+-parseInt(_0xcf9a59(0x1e1))/0x7+parseInt(_0xcf9a59(0x1e7))/0x8*(-parseInt(_0xcf9a59(0x1f3))/0x9)+parseInt(_0xcf9a59(0x1c8))/0xa*(parseInt(_0xcf9a59(0x209))/0xb)+parseInt(_0xcf9a59(0x1e6))/0xc*(parseInt(_0xcf9a59(0x202))/0xd);if(_0x5d358f===_0x2831ee)break;else _0x2c81d0['push'](_0x2c81d0['shift']());}catch(_0x3b8975){_0x2c81d0['push'](_0x2c81d0['shift']());}}}(_0xb49c,0x5259d));import{ContextPlugin as _0x490e3d}from'ckeditor5/src/core.js';function _0xb49c(){const _0x585fff=['orderNumber','addUser','_registeredSessions','values','isOfficialPlugin','get','remove','context','unregister','connected','282428oKUkxz','_createUser','size','fire','set','4720485rMwIXC','state','sessions-unregister-not-exist','hiddenInPresenceList','requires','12WytXKi','38936SUAHCY','91803ipBEPm','user','88TepLWJ','channelConnectedUsers','sessions-register-already-registered','408145RclgMn','listenTo','isMe','_handleSessionRemove','add','plugins','711NcaAfD','has','getUserRole','stopListening','sessionId','channelSessions','sessionAdd:','pluginName','clear','getUserBySessionId','mySessionId','_handleSessionAdd','change:state','delete','isPremiumPlugin','25840386AegoKO','allConnectedUsers','18UvCTPV','3MACVXK','defineMe','init','_users','1432266KtLXMC','20njvdls','register','forEach','connection','_uniqueUsersCount','role','getUserSessions','assign','Sessions','getUser'];_0xb49c=function(){return _0x585fff;};return _0xb49c();}import{Collection as _0x48e1d9,CKEditorError as _0x2c9cd2}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x30e7ff}from'./websocketgateway.js';import{Users as _0x1b98fd}from'ckeditor5-collaboration/src/collaboration-core.js';export class Sessions extends _0x490e3d{[_0x55e696(0x1f8)];[_0x55e696(0x1eb)];[_0x55e696(0x203)];[_0x55e696(0x1d4)];[_0x55e696(0x1cc)];[_0x55e696(0x208)];static get[_0x55e696(0x1fa)](){const _0x47b157=_0x55e696;return _0x47b157(0x1d0);}static get[_0x55e696(0x1d6)](){return!0x0;}static get[_0x55e696(0x201)](){return!0x0;}static get[_0x55e696(0x1e5)](){return[_0x30e7ff,_0x1b98fd];}constructor(_0xf18f34){const _0x442985=_0x55e696;super(_0xf18f34),this[_0x442985(0x1f8)]=new Map(),this[_0x442985(0x1eb)]=new Map(),this[_0x442985(0x203)]=new _0x48e1d9(),this[_0x442985(0x1d4)]=new Map(),this[_0x442985(0x1cc)]=0x0,this[_0x442985(0x208)]=this[_0x442985(0x1d9)][_0x442985(0x1f2)][_0x442985(0x1d7)](_0x1b98fd);}[_0x55e696(0x207)](){const _0x221c9e=_0x55e696,_0x50133b=this[_0x221c9e(0x1d9)][_0x221c9e(0x1f2)][_0x221c9e(0x1d7)](_0x30e7ff);this[_0x221c9e(0x1ee)](_0x50133b,_0x221c9e(0x1ff),(_0xd2c458,_0x205e58,_0x2dd41b)=>{const _0x3fbfb6=_0x221c9e;if(_0x3fbfb6(0x1db)!==_0x2dd41b)this[_0x3fbfb6(0x1f8)][_0x3fbfb6(0x1ca)](_0x3a16b4=>_0x3a16b4[_0x3fbfb6(0x1fb)]()),this[_0x3fbfb6(0x1eb)][_0x3fbfb6(0x1ca)](_0xa7922a=>_0xa7922a[_0x3fbfb6(0x1fb)]()),this[_0x3fbfb6(0x203)][_0x3fbfb6(0x1fb)]();else{for(const [_0x4575c6,_0x230eb2]of this[_0x3fbfb6(0x1d4)])for(const _0x6726f5 of _0x230eb2)this[_0x3fbfb6(0x1fe)](_0x4575c6,_0x6726f5);}}),this[_0x221c9e(0x1dd)](_0x50133b[_0x221c9e(0x1cb)]['me'],!0x0);}[_0x55e696(0x1c9)](_0x5bb947,_0x3d49bb){const _0x399cd0=_0x55e696;if(this[_0x399cd0(0x1d4)][_0x399cd0(0x1f4)](_0x5bb947))throw new _0x2c9cd2(_0x399cd0(0x1ec),null,{'channelId':_0x5bb947});this[_0x399cd0(0x1d4)][_0x399cd0(0x1e0)](_0x5bb947,_0x3d49bb),this[_0x399cd0(0x1f8)][_0x399cd0(0x1e0)](_0x5bb947,new _0x48e1d9()),this[_0x399cd0(0x1eb)][_0x399cd0(0x1e0)](_0x5bb947,new _0x48e1d9()),this[_0x399cd0(0x1ee)](_0x3d49bb,_0x399cd0(0x1f1),(_0x5f4f39,_0xc0c03c)=>this[_0x399cd0(0x1fe)](_0x5bb947,_0xc0c03c)),this[_0x399cd0(0x1ee)](_0x3d49bb,_0x399cd0(0x1d8),(_0x3e89b0,_0x350696)=>this[_0x399cd0(0x1f0)](_0x5bb947,_0x350696));for(const _0x295182 of _0x3d49bb)this[_0x399cd0(0x1fe)](_0x5bb947,_0x295182);}[_0x55e696(0x1da)](_0x4863ba){const _0x26208e=_0x55e696;if(!this[_0x26208e(0x1d4)][_0x26208e(0x1f4)](_0x4863ba))throw new _0x2c9cd2(_0x26208e(0x1e3),null,{'channelId':_0x4863ba});const _0x5be77f=this[_0x26208e(0x1d4)][_0x26208e(0x1d7)](_0x4863ba);this[_0x26208e(0x1f6)](_0x5be77f);for(const _0x3d10f4 of _0x5be77f)_0x26208e(0x1db)===this[_0x26208e(0x1d9)][_0x26208e(0x1f2)][_0x26208e(0x1d7)](_0x30e7ff)[_0x26208e(0x1e2)]&&this[_0x26208e(0x1f0)](_0x4863ba,_0x3d10f4);this[_0x26208e(0x1d4)][_0x26208e(0x200)](_0x4863ba),this[_0x26208e(0x1f8)][_0x26208e(0x200)](_0x4863ba),this[_0x26208e(0x1eb)][_0x26208e(0x200)](_0x4863ba);}get[_0x55e696(0x1fd)](){const _0x172cc0=_0x55e696;return this[_0x172cc0(0x1d9)][_0x172cc0(0x1f2)][_0x172cc0(0x1d7)](_0x30e7ff)[_0x172cc0(0x1cb)][_0x172cc0(0x1f7)];}[_0x55e696(0x1fc)](_0x14dde5){const _0x286a25=_0x55e696;for(const _0xa6801e of this[_0x286a25(0x1f8)][_0x286a25(0x1d5)]())for(const _0x4e706c of _0xa6801e)if(_0x4e706c['id']===_0x14dde5)return _0x4e706c[_0x286a25(0x1e9)];}[_0x55e696(0x1ce)](_0x1ac083,_0x3d82ba){const _0x48d30c=_0x55e696,_0x2622fc=_0x3d82ba?[this[_0x48d30c(0x1f8)][_0x48d30c(0x1d7)](_0x3d82ba)]:this[_0x48d30c(0x1f8)][_0x48d30c(0x1d5)](),_0x5e8cb3=new Set();for(const _0x1e35f2 of _0x2622fc)for(const _0x4401e4 of _0x1e35f2)_0x4401e4[_0x48d30c(0x1e9)]['id']===_0x1ac083['id']&&_0x5e8cb3[_0x48d30c(0x1f1)](_0x4401e4['id']);return _0x5e8cb3;}[_0x55e696(0x1f5)](_0x2f0538){const _0x55cf20=_0x55e696;for(const _0x53cdec of this[_0x55cf20(0x1f8)][_0x55cf20(0x1d5)]())for(const _0xbd7045 of _0x53cdec)if(_0xbd7045[_0x55cf20(0x1e9)]===_0x2f0538)return _0xbd7045[_0x55cf20(0x1cd)];}[_0x55e696(0x1fe)](_0x324929,_0x19574){const _0x10784b=_0x55e696;if(_0x10784b(0x1db)!==this[_0x10784b(0x1d9)][_0x10784b(0x1f2)][_0x10784b(0x1d7)](_0x30e7ff)[_0x10784b(0x1e2)])return;const _0x5061b5=_0x19574[_0x10784b(0x1e9)],_0x19d38f=this[_0x10784b(0x208)][_0x10784b(0x1d1)](_0x5061b5['id'])||this[_0x10784b(0x1dd)](_0x5061b5),_0x26d80b=Object[_0x10784b(0x1cf)]({},_0x19574,{'user':_0x19d38f});if(this[_0x10784b(0x1f8)][_0x10784b(0x1d7)](_0x324929)[_0x10784b(0x1f1)](_0x26d80b),!_0x5061b5[_0x10784b(0x1e4)]){const _0x4113e5=this[_0x10784b(0x1eb)][_0x10784b(0x1d7)](_0x324929);_0x4113e5[_0x10784b(0x1f4)](_0x19d38f['id'])||_0x4113e5[_0x10784b(0x1f1)](_0x19d38f),this[_0x10784b(0x203)][_0x10784b(0x1f4)](_0x19d38f['id'])||_0x5061b5[_0x10784b(0x1e4)]||this[_0x10784b(0x203)][_0x10784b(0x1f1)](_0x19d38f,_0x19d38f[_0x10784b(0x1ef)]?0x0:void 0x0);}this[_0x10784b(0x1df)](_0x10784b(0x1f9)+_0x324929,{'channelId':_0x324929,'session':_0x26d80b});}[_0x55e696(0x1f0)](_0x598e7e,_0x3a018f){const _0x5c9331=_0x55e696;if(_0x5c9331(0x1db)!==this[_0x5c9331(0x1d9)][_0x5c9331(0x1f2)][_0x5c9331(0x1d7)](_0x30e7ff)[_0x5c9331(0x1e2)])return;const _0x3dbfde=this[_0x5c9331(0x1eb)][_0x5c9331(0x1d7)](_0x598e7e),_0x1541de=_0x3a018f[_0x5c9331(0x1e9)];_0x1541de['id']&&(this[_0x5c9331(0x1f8)][_0x5c9331(0x1d7)](_0x598e7e)[_0x5c9331(0x1d8)](_0x3a018f['id']),_0x3dbfde[_0x5c9331(0x1f4)](_0x1541de['id'])&&!this[_0x5c9331(0x1ce)](_0x1541de,_0x598e7e)[_0x5c9331(0x1de)]&&_0x3dbfde[_0x5c9331(0x1d8)](_0x1541de['id']),this[_0x5c9331(0x203)][_0x5c9331(0x1d7)](_0x1541de['id'])&&!this[_0x5c9331(0x1ce)](_0x1541de)[_0x5c9331(0x1de)]&&this[_0x5c9331(0x203)][_0x5c9331(0x1d8)](_0x1541de['id']));}[_0x55e696(0x1dd)](_0x4b8767,_0x4f3317){const _0x5d78a2=_0x55e696,_0x3a52c4=this[_0x5d78a2(0x208)][_0x5d78a2(0x1d3)](_0x4b8767);return _0x4f3317&&this[_0x5d78a2(0x208)][_0x5d78a2(0x206)](_0x4b8767['id']),_0x3a52c4[_0x5d78a2(0x1d2)]=this[_0x5d78a2(0x1cc)]++,_0x3a52c4;}}
23
+ const _0x2fd77e=_0x3246;(function(_0x418454,_0x592f8d){const _0x2fd496=_0x3246,_0x31aabc=_0x418454();while(!![]){try{const _0x43cf7f=-parseInt(_0x2fd496(0x169))/0x1*(-parseInt(_0x2fd496(0x184))/0x2)+-parseInt(_0x2fd496(0x17c))/0x3+-parseInt(_0x2fd496(0x185))/0x4+-parseInt(_0x2fd496(0x16b))/0x5+-parseInt(_0x2fd496(0x164))/0x6+parseInt(_0x2fd496(0x167))/0x7+-parseInt(_0x2fd496(0x177))/0x8*(-parseInt(_0x2fd496(0x187))/0x9);if(_0x43cf7f===_0x592f8d)break;else _0x31aabc['push'](_0x31aabc['shift']());}catch(_0x2ef77c){_0x31aabc['push'](_0x31aabc['shift']());}}}(_0xf53f,0x5c062));function _0xf53f(){const _0x572cf6=['requires','3475675wPqHkc','forEach','sessions-register-already-registered','orderNumber','sessionId','state','getUser','context','change:state','unregister','_users','role','8ieiRNM','channelConnectedUsers','mySessionId','_handleSessionRemove','getUserRole','1370412cEbFiX','isOfficialPlugin','connected','connection','values','size','_registeredSessions','isMe','78544DyVSwW','125116WLdgky','stopListening','4680567YJvASJ','getUserSessions','assign','delete','Sessions','register','init','allConnectedUsers','isPremiumPlugin','get','has','listenTo','channelSessions','sessions-unregister-not-exist','sessionAdd:','hiddenInPresenceList','_uniqueUsersCount','_handleSessionAdd','addUser','user','getUserBySessionId','remove','pluginName','fire','add','set','_createUser','205194QrYBrr','plugins','clear','3946236MFptQp','defineMe','13oUNunZ'];_0xf53f=function(){return _0x572cf6;};return _0xf53f();}import{ContextPlugin as _0x1ca577}from'ckeditor5/src/core.js';function _0x3246(_0x3d5c24,_0x4c3435){const _0xf53fe0=_0xf53f();return _0x3246=function(_0x32461e,_0x16a29){_0x32461e=_0x32461e-0x157;let _0x17a8d4=_0xf53fe0[_0x32461e];return _0x17a8d4;},_0x3246(_0x3d5c24,_0x4c3435);}import{Collection as _0x9c025f,CKEditorError as _0x43d89a}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x224c8d}from'./websocketgateway.js';import{Users as _0x4ca89a}from'ckeditor5-collaboration/src/collaboration-core.js';export class Sessions extends _0x1ca577{[_0x2fd77e(0x193)];[_0x2fd77e(0x178)];[_0x2fd77e(0x18e)];[_0x2fd77e(0x182)];[_0x2fd77e(0x159)];[_0x2fd77e(0x175)];static get[_0x2fd77e(0x15f)](){const _0x5b22f5=_0x2fd77e;return _0x5b22f5(0x18b);}static get[_0x2fd77e(0x17d)](){return!0x0;}static get[_0x2fd77e(0x18f)](){return!0x0;}static get[_0x2fd77e(0x16a)](){return[_0x224c8d,_0x4ca89a];}constructor(_0x32eb52){const _0x1cf5b5=_0x2fd77e;super(_0x32eb52),this[_0x1cf5b5(0x193)]=new Map(),this[_0x1cf5b5(0x178)]=new Map(),this[_0x1cf5b5(0x18e)]=new _0x9c025f(),this[_0x1cf5b5(0x182)]=new Map(),this[_0x1cf5b5(0x159)]=0x0,this[_0x1cf5b5(0x175)]=this[_0x1cf5b5(0x172)][_0x1cf5b5(0x165)][_0x1cf5b5(0x190)](_0x4ca89a);}[_0x2fd77e(0x18d)](){const _0xfa9251=_0x2fd77e,_0x2291c6=this[_0xfa9251(0x172)][_0xfa9251(0x165)][_0xfa9251(0x190)](_0x224c8d);this[_0xfa9251(0x192)](_0x2291c6,_0xfa9251(0x173),(_0x5a623a,_0x4147f8,_0x3b69dc)=>{const _0x5cdac4=_0xfa9251;if(_0x5cdac4(0x17e)!==_0x3b69dc)this[_0x5cdac4(0x193)][_0x5cdac4(0x16c)](_0x105daa=>_0x105daa[_0x5cdac4(0x166)]()),this[_0x5cdac4(0x178)][_0x5cdac4(0x16c)](_0x46ae21=>_0x46ae21[_0x5cdac4(0x166)]()),this[_0x5cdac4(0x18e)][_0x5cdac4(0x166)]();else{for(const [_0x34523d,_0x9d2c26]of this[_0x5cdac4(0x182)])for(const _0x2a5a11 of _0x9d2c26)this[_0x5cdac4(0x15a)](_0x34523d,_0x2a5a11);}}),this[_0xfa9251(0x163)](_0x2291c6[_0xfa9251(0x17f)]['me'],!0x0);}[_0x2fd77e(0x18c)](_0x3881b2,_0x3e232c){const _0x5f54bb=_0x2fd77e;if(this[_0x5f54bb(0x182)][_0x5f54bb(0x191)](_0x3881b2))throw new _0x43d89a(_0x5f54bb(0x16d),null,{'channelId':_0x3881b2});this[_0x5f54bb(0x182)][_0x5f54bb(0x162)](_0x3881b2,_0x3e232c),this[_0x5f54bb(0x193)][_0x5f54bb(0x162)](_0x3881b2,new _0x9c025f()),this[_0x5f54bb(0x178)][_0x5f54bb(0x162)](_0x3881b2,new _0x9c025f()),this[_0x5f54bb(0x192)](_0x3e232c,_0x5f54bb(0x161),(_0x216dfa,_0x4b5ee1)=>this[_0x5f54bb(0x15a)](_0x3881b2,_0x4b5ee1)),this[_0x5f54bb(0x192)](_0x3e232c,_0x5f54bb(0x15e),(_0x53fc40,_0x1e5cc4)=>this[_0x5f54bb(0x17a)](_0x3881b2,_0x1e5cc4));for(const _0xee9edb of _0x3e232c)this[_0x5f54bb(0x15a)](_0x3881b2,_0xee9edb);}[_0x2fd77e(0x174)](_0x1acac7){const _0x7cd4ca=_0x2fd77e;if(!this[_0x7cd4ca(0x182)][_0x7cd4ca(0x191)](_0x1acac7))throw new _0x43d89a(_0x7cd4ca(0x194),null,{'channelId':_0x1acac7});const _0x330e1a=this[_0x7cd4ca(0x182)][_0x7cd4ca(0x190)](_0x1acac7);this[_0x7cd4ca(0x186)](_0x330e1a);for(const _0x2cbc06 of _0x330e1a)_0x7cd4ca(0x17e)===this[_0x7cd4ca(0x172)][_0x7cd4ca(0x165)][_0x7cd4ca(0x190)](_0x224c8d)[_0x7cd4ca(0x170)]&&this[_0x7cd4ca(0x17a)](_0x1acac7,_0x2cbc06);this[_0x7cd4ca(0x182)][_0x7cd4ca(0x18a)](_0x1acac7),this[_0x7cd4ca(0x193)][_0x7cd4ca(0x18a)](_0x1acac7),this[_0x7cd4ca(0x178)][_0x7cd4ca(0x18a)](_0x1acac7);}get[_0x2fd77e(0x179)](){const _0x1f42f2=_0x2fd77e;return this[_0x1f42f2(0x172)][_0x1f42f2(0x165)][_0x1f42f2(0x190)](_0x224c8d)[_0x1f42f2(0x17f)][_0x1f42f2(0x16f)];}[_0x2fd77e(0x15d)](_0x21f824){const _0x1bfc77=_0x2fd77e;for(const _0x520b34 of this[_0x1bfc77(0x193)][_0x1bfc77(0x180)]())for(const _0x331d41 of _0x520b34)if(_0x331d41['id']===_0x21f824)return _0x331d41[_0x1bfc77(0x15c)];}[_0x2fd77e(0x188)](_0x3a9222,_0x59253f){const _0x1c5b4b=_0x2fd77e,_0x44485d=_0x59253f?[this[_0x1c5b4b(0x193)][_0x1c5b4b(0x190)](_0x59253f)]:this[_0x1c5b4b(0x193)][_0x1c5b4b(0x180)](),_0x213899=new Set();for(const _0x302655 of _0x44485d)for(const _0x2e2491 of _0x302655)_0x2e2491[_0x1c5b4b(0x15c)]['id']===_0x3a9222['id']&&_0x213899[_0x1c5b4b(0x161)](_0x2e2491['id']);return _0x213899;}[_0x2fd77e(0x17b)](_0x71d3a0){const _0x3d3d82=_0x2fd77e;for(const _0x3f3d9a of this[_0x3d3d82(0x193)][_0x3d3d82(0x180)]())for(const _0x17fe6e of _0x3f3d9a)if(_0x17fe6e[_0x3d3d82(0x15c)]===_0x71d3a0)return _0x17fe6e[_0x3d3d82(0x176)];}[_0x2fd77e(0x15a)](_0x49abd4,_0x4353a6){const _0x53bac1=_0x2fd77e;if(_0x53bac1(0x17e)!==this[_0x53bac1(0x172)][_0x53bac1(0x165)][_0x53bac1(0x190)](_0x224c8d)[_0x53bac1(0x170)])return;const _0x4caf97=_0x4353a6[_0x53bac1(0x15c)],_0x2c09c4=this[_0x53bac1(0x175)][_0x53bac1(0x171)](_0x4caf97['id'])||this[_0x53bac1(0x163)](_0x4caf97),_0x3ba723=Object[_0x53bac1(0x189)]({},_0x4353a6,{'user':_0x2c09c4});if(this[_0x53bac1(0x193)][_0x53bac1(0x190)](_0x49abd4)[_0x53bac1(0x161)](_0x3ba723),!_0x4caf97[_0x53bac1(0x158)]){const _0x1f3735=this[_0x53bac1(0x178)][_0x53bac1(0x190)](_0x49abd4);_0x1f3735[_0x53bac1(0x191)](_0x2c09c4['id'])||_0x1f3735[_0x53bac1(0x161)](_0x2c09c4),this[_0x53bac1(0x18e)][_0x53bac1(0x191)](_0x2c09c4['id'])||_0x4caf97[_0x53bac1(0x158)]||this[_0x53bac1(0x18e)][_0x53bac1(0x161)](_0x2c09c4,_0x2c09c4[_0x53bac1(0x183)]?0x0:void 0x0);}this[_0x53bac1(0x160)](_0x53bac1(0x157)+_0x49abd4,{'channelId':_0x49abd4,'session':_0x3ba723});}[_0x2fd77e(0x17a)](_0x384a69,_0x2a29ab){const _0x86ee38=_0x2fd77e;if(_0x86ee38(0x17e)!==this[_0x86ee38(0x172)][_0x86ee38(0x165)][_0x86ee38(0x190)](_0x224c8d)[_0x86ee38(0x170)])return;const _0x54df2b=this[_0x86ee38(0x178)][_0x86ee38(0x190)](_0x384a69),_0x2d4d8a=_0x2a29ab[_0x86ee38(0x15c)];_0x2d4d8a['id']&&(this[_0x86ee38(0x193)][_0x86ee38(0x190)](_0x384a69)[_0x86ee38(0x15e)](_0x2a29ab['id']),_0x54df2b[_0x86ee38(0x191)](_0x2d4d8a['id'])&&!this[_0x86ee38(0x188)](_0x2d4d8a,_0x384a69)[_0x86ee38(0x181)]&&_0x54df2b[_0x86ee38(0x15e)](_0x2d4d8a['id']),this[_0x86ee38(0x18e)][_0x86ee38(0x190)](_0x2d4d8a['id'])&&!this[_0x86ee38(0x188)](_0x2d4d8a)[_0x86ee38(0x181)]&&this[_0x86ee38(0x18e)][_0x86ee38(0x15e)](_0x2d4d8a['id']));}[_0x2fd77e(0x163)](_0x22aef5,_0xc8fdc7){const _0x17d2c3=_0x2fd77e,_0x5caaa5=this[_0x17d2c3(0x175)][_0x17d2c3(0x15b)](_0x22aef5);return _0xc8fdc7&&this[_0x17d2c3(0x175)][_0x17d2c3(0x168)](_0x22aef5['id']),_0x5caaa5[_0x17d2c3(0x16e)]=this[_0x17d2c3(0x159)]++,_0x5caaa5;}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x27c02f=_0x5eab;(function(_0x5aab5c,_0x6b6593){const _0x47159a=_0x5eab,_0x50a168=_0x5aab5c();while(!![]){try{const _0x2d2d5b=parseInt(_0x47159a(0x197))/0x1*(-parseInt(_0x47159a(0x192))/0x2)+parseInt(_0x47159a(0x1a3))/0x3*(parseInt(_0x47159a(0x194))/0x4)+parseInt(_0x47159a(0x167))/0x5*(parseInt(_0x47159a(0x1a1))/0x6)+-parseInt(_0x47159a(0x198))/0x7+-parseInt(_0x47159a(0x17d))/0x8+-parseInt(_0x47159a(0x187))/0x9*(-parseInt(_0x47159a(0x177))/0xa)+parseInt(_0x47159a(0x1a7))/0xb;if(_0x2d2d5b===_0x6b6593)break;else _0x50a168['push'](_0x50a168['shift']());}catch(_0x4d04ad){_0x50a168['push'](_0x50a168['shift']());}}}(_0x2871,0x6704d));import{ContextPlugin as _0x368c96}from'ckeditor5/src/core.js';import{DomEmitterMixin as _0x4e92ea,CKEditorError as _0x1451a4}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x3faf62,WEB_SOCKET_GATEWAY_STATES as _0x45756c}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';function _0x5eab(_0x580666,_0x5c114c){const _0x2871e9=_0x2871();return _0x5eab=function(_0x5eab2e,_0x30582a){_0x5eab2e=_0x5eab2e-0x161;let _0x1f524c=_0x2871e9[_0x5eab2e];return _0x1f524c;},_0x5eab(_0x580666,_0x5c114c);}function _0x2871(){const _0x550bd9=['websocketgateway-missing-websocket-url','77ebTiSY','4467820XYSuPg','showWarning','all','reconnect','limitExceeded','websocketgateway-missing-token','connection','bind','websocketgateway-plugin-already-registered','6vZPtVP','has','367701KKsHbd','disconnect','init','CONNECTED','12275164ibPkme','token','catch','CloudServices','cloudservices-reconnection-error','CONNECTING','cloudservices-init','add','function','The\x20limit\x20of\x20maximum\x20concurrent\x20connections\x20that\x20the\x20collaboration\x20server\x20can\x20handle\x20has\x20been\x20reached.\x20Try\x20opening\x20the\x20document\x20again\x20in\x20a\x20few\x20minutes.\x20Please\x20contact\x20your\x20system\x20administrator\x20if\x20the\x20problem\x20persists.','_domEmitter','513655oWpyqf','listenTo','requires','addToReconnectionStack','set','removeFromReconnectionStack','real-time-collaboration','context','constructor','connect','_isBrowserOffline','Connected\x20users\x20limit\x20exceeded','isInReconnectionStack','define','state','initialReconnectionInterval','4428070CphxOB','WebSocketGateway','isOfficialPlugin','online','connected','webSocketUrl','2355000lgFrav','cloudServices.requestTimeout','error','code','cloudServices.connectionTimeout','DISCONNECTED','_reconnectionStack','plugins','pluginName','destroy','9nAMLlH','then','from','offline','delete','change:me','get','stopListening','config','isPremiumPlugin','websocketgateway-invalid-plugin-interface','11154uvdOAw','_shouldPluginsReconnect','4mIDwQn','_reconnect'];_0x2871=function(){return _0x550bd9;};return _0x2871();}import{Notification as _0x33741f}from'ckeditor5/src/ui.js';export class WebSocketGateway extends _0x368c96{static [_0x27c02f(0x178)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x3faf62)());static [_0x27c02f(0x176)]=0x3e8;[_0x27c02f(0x19e)];[_0x27c02f(0x183)];[_0x27c02f(0x193)];[_0x27c02f(0x166)];static get[_0x27c02f(0x169)](){const _0x57c168=_0x27c02f;return[_0x57c168(0x1aa),_0x33741f];}static get[_0x27c02f(0x185)](){const _0x163202=_0x27c02f;return _0x163202(0x178);}static get[_0x27c02f(0x179)](){return!0x0;}static get[_0x27c02f(0x190)](){return!0x0;}constructor(_0x31e55a){const _0x53ea16=_0x27c02f;super(_0x31e55a),this[_0x53ea16(0x16b)](_0x53ea16(0x175),_0x45756c[_0x53ea16(0x1a6)]),this[_0x53ea16(0x16b)](_0x53ea16(0x171),!0x1),this[_0x53ea16(0x183)]=new Set(),this[_0x53ea16(0x193)]=!0x1,this[_0x53ea16(0x166)]=new(_0x4e92ea())();}[_0x27c02f(0x1a5)](){const _0x200f5b=_0x27c02f,_0x5facc4=this[_0x200f5b(0x16e)],_0x5a6c96=_0x5facc4[_0x200f5b(0x184)][_0x200f5b(0x18d)](_0x200f5b(0x1aa)),_0x500e4b=_0x5facc4[_0x200f5b(0x184)][_0x200f5b(0x18d)](_0x33741f);if(!_0x5a6c96[_0x200f5b(0x1a8)])throw new _0x1451a4(_0x200f5b(0x19d),this);if(!_0x5a6c96[_0x200f5b(0x17c)])throw new _0x1451a4(_0x200f5b(0x196),this);return this[_0x200f5b(0x166)][_0x200f5b(0x168)](window,_0x200f5b(0x18a),()=>this[_0x200f5b(0x171)]=!0x0),this[_0x200f5b(0x166)][_0x200f5b(0x168)](window,_0x200f5b(0x17a),()=>this[_0x200f5b(0x171)]=!0x1),this[_0x200f5b(0x16e)][_0x200f5b(0x18f)][_0x200f5b(0x174)](_0x200f5b(0x181),0xa),this[_0x200f5b(0x16e)][_0x200f5b(0x18f)][_0x200f5b(0x174)](_0x200f5b(0x17e),0x14),WebSocketGateway[_0x200f5b(0x178)][_0x200f5b(0x170)](_0x5a6c96[_0x200f5b(0x1a8)],_0x5a6c96[_0x200f5b(0x17c)],{'timeout':0x3e8*this[_0x200f5b(0x16e)][_0x200f5b(0x18f)][_0x200f5b(0x18d)](_0x200f5b(0x181)),'requestTimeout':0x3e8*this[_0x200f5b(0x16e)][_0x200f5b(0x18f)][_0x200f5b(0x18d)](_0x200f5b(0x17e))})[_0x200f5b(0x188)](_0x58c3d3=>{const _0x13990f=_0x200f5b;if(this[_0x13990f(0x19e)]=_0x58c3d3,this[_0x13990f(0x19f)](_0x13990f(0x175))['to'](_0x58c3d3,_0x13990f(0x175),this,_0x13990f(0x171),(_0x4c528f,_0x29d919)=>(_0x13990f(0x17b)!==_0x4c528f&&(this[_0x13990f(0x193)]=!0x0),_0x29d919||_0x4c528f!==_0x45756c[_0x13990f(0x1a6)]?_0x45756c[_0x13990f(0x182)]:this[_0x13990f(0x175)]==_0x45756c[_0x13990f(0x182)]&&this[_0x13990f(0x193)]?(this[_0x13990f(0x193)]=!0x1,this[_0x13990f(0x195)](),_0x45756c[_0x13990f(0x161)]):_0x45756c[_0x13990f(0x1a6)])),this[_0x13990f(0x19e)]['on'](_0x13990f(0x17f),(_0x1efd7c,_0x334b14)=>{const _0x3dda0d=_0x13990f;if(_0x3dda0d(0x19c)!==_0x334b14[_0x3dda0d(0x180)])throw console[_0x3dda0d(0x17f)](_0x334b14),new _0x1451a4(_0x3dda0d(0x162),null,{'originalError':_0x334b14});_0x500e4b[_0x3dda0d(0x199)](_0x3dda0d(0x165),{'title':_0x3dda0d(0x172),'namespace':_0x3dda0d(0x16d)});}),!_0x58c3d3['me'])return new Promise(_0x3aa7fd=>_0x58c3d3['on'](_0x13990f(0x18c),_0x3aa7fd));})[_0x200f5b(0x1a9)](_0x52d26e=>{const _0x465681=_0x200f5b;throw console[_0x465681(0x17f)](_0x52d26e),new _0x1451a4(_0x465681(0x162),null,{'originalError':_0x52d26e});});}[_0x27c02f(0x16a)](_0x10fc6f){const _0xe847cd=_0x27c02f;if(_0xe847cd(0x164)!=typeof _0x10fc6f[_0xe847cd(0x19b)])throw new _0x1451a4(_0xe847cd(0x191),this);if(this[_0xe847cd(0x173)](_0x10fc6f))throw new _0x1451a4(_0xe847cd(0x1a0),this,{'name':_0x10fc6f[_0xe847cd(0x16f)][_0xe847cd(0x185)]});this[_0xe847cd(0x183)][_0xe847cd(0x163)](_0x10fc6f);}[_0x27c02f(0x16c)](_0x4e3617){const _0x4e040c=_0x27c02f;this[_0x4e040c(0x183)][_0x4e040c(0x18b)](_0x4e3617);}[_0x27c02f(0x173)](_0x38fe23){const _0x409fb5=_0x27c02f;return this[_0x409fb5(0x183)][_0x409fb5(0x1a2)](_0x38fe23);}[_0x27c02f(0x195)](){const _0x22fb8f=_0x27c02f;return this[_0x22fb8f(0x19e)][_0x22fb8f(0x19b)]()[_0x22fb8f(0x188)](()=>Promise[_0x22fb8f(0x19a)](Array[_0x22fb8f(0x189)](this[_0x22fb8f(0x183)],_0x552988=>_0x552988[_0x22fb8f(0x19b)]())))[_0x22fb8f(0x188)](()=>this[_0x22fb8f(0x175)]=_0x45756c[_0x22fb8f(0x1a6)])[_0x22fb8f(0x1a9)](_0x34c0a7=>{const _0x244c02=_0x22fb8f;throw console[_0x244c02(0x17f)](_0x34c0a7),new _0x1451a4(_0x244c02(0x1ab),this[_0x244c02(0x16e)]);});}[_0x27c02f(0x1a4)](){const _0x41dc3b=_0x27c02f;this[_0x41dc3b(0x19e)]&&this[_0x41dc3b(0x19e)][_0x41dc3b(0x1a4)](),this[_0x41dc3b(0x175)]=_0x45756c[_0x41dc3b(0x182)],this[_0x41dc3b(0x166)][_0x41dc3b(0x18e)]();}[_0x27c02f(0x186)](){const _0x344855=_0x27c02f;this[_0x344855(0x1a4)](),super[_0x344855(0x186)]();}}
23
+ const _0x41e5fd=_0x4c40;(function(_0x23932f,_0x23c858){const _0x41be00=_0x4c40,_0x2c1e0d=_0x23932f();while(!![]){try{const _0x253609=-parseInt(_0x41be00(0x119))/0x1+parseInt(_0x41be00(0xf0))/0x2*(-parseInt(_0x41be00(0x105))/0x3)+-parseInt(_0x41be00(0xdc))/0x4*(parseInt(_0x41be00(0xf6))/0x5)+parseInt(_0x41be00(0x104))/0x6+parseInt(_0x41be00(0xd2))/0x7*(parseInt(_0x41be00(0xd1))/0x8)+parseInt(_0x41be00(0x107))/0x9+parseInt(_0x41be00(0xf1))/0xa*(-parseInt(_0x41be00(0x10d))/0xb);if(_0x253609===_0x23c858)break;else _0x2c1e0d['push'](_0x2c1e0d['shift']());}catch(_0x2c2781){_0x2c1e0d['push'](_0x2c1e0d['shift']());}}}(_0xd14a,0x2c632));function _0x4c40(_0x412b17,_0x3c95a5){const _0xd14a9a=_0xd14a();return _0x4c40=function(_0x4c40f6,_0x2a03a2){_0x4c40f6=_0x4c40f6-0xd1;let _0x58ec86=_0xd14a9a[_0x4c40f6];return _0x58ec86;},_0x4c40(_0x412b17,_0x3c95a5);}import{ContextPlugin as _0xadd403}from'ckeditor5/src/core.js';import{DomEmitterMixin as _0x26a06a,CKEditorError as _0x22278f}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x597ac3,WEB_SOCKET_GATEWAY_STATES as _0x502a38}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0x107cdd}from'ckeditor5/src/ui.js';export class WebSocketGateway extends _0xadd403{static [_0x41e5fd(0x114)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x597ac3)());static [_0x41e5fd(0x118)]=0x3e8;[_0x41e5fd(0xdb)];[_0x41e5fd(0x110)];[_0x41e5fd(0xda)];[_0x41e5fd(0x10f)];static get[_0x41e5fd(0xfd)](){const _0xd41b2f=_0x41e5fd;return[_0xd41b2f(0xfc),_0x107cdd];}static get[_0x41e5fd(0xe9)](){const _0x4222ec=_0x41e5fd;return _0x4222ec(0x114);}static get[_0x41e5fd(0xdf)](){return!0x0;}static get[_0x41e5fd(0xfb)](){return!0x0;}constructor(_0x306350){const _0x5586e6=_0x41e5fd;super(_0x306350),this[_0x5586e6(0xe0)](_0x5586e6(0xd9),_0x502a38[_0x5586e6(0xe4)]),this[_0x5586e6(0xe0)](_0x5586e6(0x102),!0x1),this[_0x5586e6(0x110)]=new Set(),this[_0x5586e6(0xda)]=!0x1,this[_0x5586e6(0x10f)]=new(_0x26a06a())();}[_0x41e5fd(0xf2)](){const _0x1bb7ad=_0x41e5fd,_0x18bc7f=this[_0x1bb7ad(0xd3)],_0x1efa0f=_0x18bc7f[_0x1bb7ad(0xdd)][_0x1bb7ad(0xef)](_0x1bb7ad(0xfc)),_0x53e01e=_0x18bc7f[_0x1bb7ad(0xdd)][_0x1bb7ad(0xef)](_0x107cdd);if(!_0x1efa0f[_0x1bb7ad(0x100)])throw new _0x22278f(_0x1bb7ad(0xd8),this);if(!_0x1efa0f[_0x1bb7ad(0x117)])throw new _0x22278f(_0x1bb7ad(0xf5),this);return this[_0x1bb7ad(0x10f)][_0x1bb7ad(0xf7)](window,_0x1bb7ad(0xfa),()=>this[_0x1bb7ad(0x102)]=!0x0),this[_0x1bb7ad(0x10f)][_0x1bb7ad(0xf7)](window,_0x1bb7ad(0x109),()=>this[_0x1bb7ad(0x102)]=!0x1),this[_0x1bb7ad(0xd3)][_0x1bb7ad(0x10a)][_0x1bb7ad(0x10b)](_0x1bb7ad(0xd5),0xa),this[_0x1bb7ad(0xd3)][_0x1bb7ad(0x10a)][_0x1bb7ad(0x10b)](_0x1bb7ad(0xea),0x14),WebSocketGateway[_0x1bb7ad(0x114)][_0x1bb7ad(0xe1)](_0x1efa0f[_0x1bb7ad(0x100)],_0x1efa0f[_0x1bb7ad(0x117)],{'timeout':0x3e8*this[_0x1bb7ad(0xd3)][_0x1bb7ad(0x10a)][_0x1bb7ad(0xef)](_0x1bb7ad(0xd5)),'requestTimeout':0x3e8*this[_0x1bb7ad(0xd3)][_0x1bb7ad(0x10a)][_0x1bb7ad(0xef)](_0x1bb7ad(0xea))})[_0x1bb7ad(0xee)](_0x48e73b=>{const _0x356de3=_0x1bb7ad;if(this[_0x356de3(0xdb)]=_0x48e73b,this[_0x356de3(0x11a)](_0x356de3(0xd9))['to'](_0x48e73b,_0x356de3(0xd9),this,_0x356de3(0x102),(_0x3b1502,_0x2e1586)=>(_0x356de3(0x116)!==_0x3b1502&&(this[_0x356de3(0xda)]=!0x0),_0x2e1586||_0x3b1502!==_0x502a38[_0x356de3(0xe4)]?_0x502a38[_0x356de3(0xeb)]:this[_0x356de3(0xd9)]==_0x502a38[_0x356de3(0xeb)]&&this[_0x356de3(0xda)]?(this[_0x356de3(0xda)]=!0x1,this[_0x356de3(0x103)](),_0x502a38[_0x356de3(0xff)]):_0x502a38[_0x356de3(0xe4)])),this[_0x356de3(0xdb)]['on'](_0x356de3(0x10c),(_0x18258d,_0x197f87)=>{const _0x49782c=_0x356de3;if(_0x49782c(0xde)!==_0x197f87[_0x49782c(0xe8)])throw console[_0x49782c(0x10c)](_0x197f87),new _0x22278f(_0x49782c(0xfe),null,{'originalError':_0x197f87});_0x53e01e[_0x49782c(0x108)](_0x49782c(0x11b),{'title':_0x49782c(0xf8),'namespace':_0x49782c(0x113)});}),!_0x48e73b['me'])return new Promise(_0x18fae5=>_0x48e73b['on'](_0x356de3(0xe7),_0x18fae5));})[_0x1bb7ad(0xd6)](_0x46559b=>{const _0x54bb33=_0x1bb7ad;throw console[_0x54bb33(0x10c)](_0x46559b),new _0x22278f(_0x54bb33(0xfe),null,{'originalError':_0x46559b});});}[_0x41e5fd(0xe5)](_0x31da89){const _0x2251d2=_0x41e5fd;if(_0x2251d2(0x101)!=typeof _0x31da89[_0x2251d2(0xe2)])throw new _0x22278f(_0x2251d2(0xec),this);if(this[_0x2251d2(0x115)](_0x31da89))throw new _0x22278f(_0x2251d2(0xd7),this,{'name':_0x31da89[_0x2251d2(0xd4)][_0x2251d2(0xe9)]});this[_0x2251d2(0x110)][_0x2251d2(0xe6)](_0x31da89);}[_0x41e5fd(0xf9)](_0x544148){const _0x29de9f=_0x41e5fd;this[_0x29de9f(0x110)][_0x29de9f(0xf4)](_0x544148);}[_0x41e5fd(0x115)](_0x38b474){const _0x68528c=_0x41e5fd;return this[_0x68528c(0x110)][_0x68528c(0x10e)](_0x38b474);}[_0x41e5fd(0x103)](){const _0x17ed6f=_0x41e5fd;return this[_0x17ed6f(0xdb)][_0x17ed6f(0xe2)]()[_0x17ed6f(0xee)](()=>Promise[_0x17ed6f(0xed)](Array[_0x17ed6f(0x111)](this[_0x17ed6f(0x110)],_0x5f0e74=>_0x5f0e74[_0x17ed6f(0xe2)]())))[_0x17ed6f(0xee)](()=>this[_0x17ed6f(0xd9)]=_0x502a38[_0x17ed6f(0xe4)])[_0x17ed6f(0xd6)](_0x23bfb2=>{const _0x39f318=_0x17ed6f;throw console[_0x39f318(0x10c)](_0x23bfb2),new _0x22278f(_0x39f318(0x112),this[_0x39f318(0xd3)]);});}[_0x41e5fd(0x106)](){const _0xdb0650=_0x41e5fd;this[_0xdb0650(0xdb)]&&this[_0xdb0650(0xdb)][_0xdb0650(0x106)](),this[_0xdb0650(0xd9)]=_0x502a38[_0xdb0650(0xeb)],this[_0xdb0650(0x10f)][_0xdb0650(0xf3)]();}[_0x41e5fd(0xe3)](){const _0x5bfb65=_0x41e5fd;this[_0x5bfb65(0x106)](),super[_0x5bfb65(0xe3)]();}}function _0xd14a(){const _0x14a68b=['CloudServices','requires','cloudservices-init','CONNECTING','token','function','_isBrowserOffline','_reconnect','1786176AovXKg','870357ULXtbD','disconnect','3245166BJZdig','showWarning','online','config','define','error','432993qPUqyN','has','_domEmitter','_reconnectionStack','from','cloudservices-reconnection-error','real-time-collaboration','WebSocketGateway','isInReconnectionStack','connected','webSocketUrl','initialReconnectionInterval','10328mUoDHF','bind','The\x20limit\x20of\x20maximum\x20concurrent\x20connections\x20that\x20the\x20collaboration\x20server\x20can\x20handle\x20has\x20been\x20reached.\x20Try\x20opening\x20the\x20document\x20again\x20in\x20a\x20few\x20minutes.\x20Please\x20contact\x20your\x20system\x20administrator\x20if\x20the\x20problem\x20persists.','269992zZTRZo','7UlgrMb','context','constructor','cloudServices.connectionTimeout','catch','websocketgateway-plugin-already-registered','websocketgateway-missing-token','state','_shouldPluginsReconnect','connection','524144nQxTaA','plugins','limitExceeded','isOfficialPlugin','set','connect','reconnect','destroy','CONNECTED','addToReconnectionStack','add','change:me','code','pluginName','cloudServices.requestTimeout','DISCONNECTED','websocketgateway-invalid-plugin-interface','all','then','get','2XihNtO','20IVeSIP','init','stopListening','delete','websocketgateway-missing-websocket-url','5HTztRC','listenTo','Connected\x20users\x20limit\x20exceeded','removeFromReconnectionStack','offline','isPremiumPlugin'];_0xd14a=function(){return _0x14a68b;};return _0xd14a();}