@ckeditor/ckeditor5-real-time-collaboration 47.7.1-alpha.0 → 47.7.1
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/build/real-time-collaboration.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +14 -14
- package/src/presencelist/presencelistui.js +1 -1
- package/src/presencelist/view/presencedropdownlistview.js +1 -1
- package/src/presencelist/view/presenceinlinelistview.js +1 -1
- package/src/presencelist/view/presencelistview.js +1 -1
- package/src/realtimecollaborativecomments/cloudservicescommentsadapter.js +2 -2
- package/src/realtimecollaborativeediting/realtimecollaborationclient.js +2 -2
- package/src/realtimecollaborativeediting/sessions.js +1 -1
- package/src/realtimecollaborativeediting/websocketgateway.js +2 -2
- package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +2 -2
- package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-real-time-collaboration",
|
|
3
|
-
"version": "47.7.1
|
|
3
|
+
"version": "47.7.1",
|
|
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.4",
|
|
50
|
-
"@ckeditor/ckeditor5-cloud-services": "47.7.1
|
|
51
|
-
"@ckeditor/ckeditor5-comments": "47.7.1
|
|
52
|
-
"@ckeditor/ckeditor5-core": "47.7.1
|
|
53
|
-
"@ckeditor/ckeditor5-editor-multi-root": "47.7.1
|
|
54
|
-
"@ckeditor/ckeditor5-engine": "47.7.1
|
|
55
|
-
"@ckeditor/ckeditor5-operations-compressor": "47.7.1
|
|
56
|
-
"@ckeditor/ckeditor5-revision-history": "47.7.1
|
|
57
|
-
"@ckeditor/ckeditor5-theme-lark": "47.7.1
|
|
58
|
-
"@ckeditor/ckeditor5-track-changes": "47.7.1
|
|
59
|
-
"@ckeditor/ckeditor5-ui": "47.7.1
|
|
60
|
-
"@ckeditor/ckeditor5-utils": "47.7.1
|
|
61
|
-
"ckeditor5": "47.7.1
|
|
62
|
-
"ckeditor5-collaboration": "47.7.1
|
|
50
|
+
"@ckeditor/ckeditor5-cloud-services": "47.7.1",
|
|
51
|
+
"@ckeditor/ckeditor5-comments": "47.7.1",
|
|
52
|
+
"@ckeditor/ckeditor5-core": "47.7.1",
|
|
53
|
+
"@ckeditor/ckeditor5-editor-multi-root": "47.7.1",
|
|
54
|
+
"@ckeditor/ckeditor5-engine": "47.7.1",
|
|
55
|
+
"@ckeditor/ckeditor5-operations-compressor": "47.7.1",
|
|
56
|
+
"@ckeditor/ckeditor5-revision-history": "47.7.1",
|
|
57
|
+
"@ckeditor/ckeditor5-theme-lark": "47.7.1",
|
|
58
|
+
"@ckeditor/ckeditor5-track-changes": "47.7.1",
|
|
59
|
+
"@ckeditor/ckeditor5-ui": "47.7.1",
|
|
60
|
+
"@ckeditor/ckeditor5-utils": "47.7.1",
|
|
61
|
+
"ckeditor5": "47.7.1",
|
|
62
|
+
"ckeditor5-collaboration": "47.7.1",
|
|
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 _0x3bc570=_0x718d;(function(_0x31c2b6,_0x2e22ca){const _0x43e10d=_0x718d,_0xa4dbc7=_0x31c2b6();while(!![]){try{const _0x5a8f75=parseInt(_0x43e10d(0x201))/0x1*(-parseInt(_0x43e10d(0x235))/0x2)+-parseInt(_0x43e10d(0x230))/0x3*(-parseInt(_0x43e10d(0x224))/0x4)+parseInt(_0x43e10d(0x247))/0x5+parseInt(_0x43e10d(0x210))/0x6*(-parseInt(_0x43e10d(0x20c))/0x7)+parseInt(_0x43e10d(0x204))/0x8*(parseInt(_0x43e10d(0x23a))/0x9)+-parseInt(_0x43e10d(0x200))/0xa*(-parseInt(_0x43e10d(0x1f8))/0xb)+-parseInt(_0x43e10d(0x1e9))/0xc;if(_0x5a8f75===_0x2e22ca)break;else _0xa4dbc7['push'](_0xa4dbc7['shift']());}catch(_0x172c06){_0xa4dbc7['push'](_0xa4dbc7['shift']());}}}(_0x34e7,0xa5044));import{ContextPlugin as _0x4c67c4}from'ckeditor5/src/core.js';import{CKEditorError as _0x48e369,Collection as _0x6bc80d}from'ckeditor5/src/utils.js';import{clickOutsideHandler as _0x4712ce,BalloonPanelView as _0x3950b3,BodyCollection as _0x5b1c56}from'ckeditor5/src/ui.js';import{isElement as _0x5987c5}from'es-toolkit/compat';import{Sessions as _0x32ca80}from'../realtimecollaborativeediting/sessions.js';import{PresenceListView as _0x2c64ae}from'./view/presencelistview.js';import{PresenceCounterView as _0x2fc88e}from'./view/presencecounterview.js';import{PresenceDropdownListView as _0x57a353}from'./view/presencedropdownlistview.js';function _0x718d(_0x5e152a,_0x5a1e29){const _0x34e72e=_0x34e7();return _0x718d=function(_0x718d7d,_0x55f294){_0x718d7d=_0x718d7d-0x1e2;let _0x52df28=_0x34e72e[_0x718d7d];return _0x52df28;},_0x718d(_0x5e152a,_0x5a1e29);}import{PresenceDropdownListItemView as _0x3ba3e9}from'./view/presencedropdownlistitemview.js';function _0x34e7(){const _0x1a2606=['PresenceListUI','reverse','select','input','attachToDom','1563CMEjpo','usersCount','isPremiumPlugin','presenceList','presenceList.displayMe','362ZoycNl','displayMe','context','checkIfScrollable','allConnectedUsers','40059BJNbYp','offsetWidth','destroy','appendChild','counterView','presencelist-missing-container','isMe','_bodyCollection','min','bindTo','plugins','detachFromDom','number','6064515qvEJhD','isRendered','presencelist:hide','pluginName','requires','presencelist:show','presencelist-collapseat-invalid-format','[tabindex]','showDropdown','config','activeElement','currentDisplayedUsers','length','sort','pin','18050952loZZOp','_createView','init','isCollapsed','_allConnectedUsers','filter','find','using','focus','querySelectorAll','remove','_handleUserAdd','unpin','button','presenceDropdownView','62579rQxryb','add','items','isFocusable','map','Shift+Tab','isOfficialPlugin','join','1900wNYFBZ','1709EDVexr','presenceList.container','Esc','8RqkJdb','balloonPanelView',':not([disabled]):not([tabindex=\x22-1\x22])','element','ck\x20ck-presence-list__balloon','from','listenTo','hasTooltip','2013116wLZcEl','locale','content','body','18whaEzB','render','focusTracker','class','view','_handleUserRemove','offsetHeight','textarea','tabIndex','change:isFocused','isVisible','execute','hideDropdown','Enter','get','indexOf','keystrokes','set','presenceList.collapseAt','isExpanded','8092KScJnZ','Tab','inlineListView','[contenteditable]','onClick','bind','define'];_0x34e7=function(){return _0x1a2606;};return _0x34e7();}import{PresenceInlineListItemView as _0x2f7bd6}from'./view/presenceinlinelistitemview.js';const U={'collapseAt':0x6,'displayMe':!0x0};export class PresenceListUI extends _0x4c67c4{[_0x3bc570(0x1e5)];[_0x3bc570(0x205)];[_0x3bc570(0x214)];[_0x3bc570(0x1f7)];[_0x3bc570(0x241)]=null;static get[_0x3bc570(0x24a)](){const _0x44d04a=_0x3bc570;return _0x44d04a(0x22b);}static get[_0x3bc570(0x1fe)](){return!0x0;}static get[_0x3bc570(0x232)](){return!0x0;}constructor(_0x58da42){const _0x2a25aa=_0x3bc570;super(_0x58da42),this[_0x2a25aa(0x237)][_0x2a25aa(0x1e3)][_0x2a25aa(0x22a)](_0x2a25aa(0x233),U);const _0x2931cd=_0x58da42[_0x2a25aa(0x1e3)][_0x2a25aa(0x21e)](_0x2a25aa(0x222));if(_0x2a25aa(0x246)!=typeof _0x2931cd)throw new _0x48e369(_0x2a25aa(0x24d),this);if(_0x2931cd<0x1)throw new _0x48e369(_0x2a25aa(0x24d),this);this[_0x2a25aa(0x1ed)]=this[_0x2a25aa(0x237)][_0x2a25aa(0x244)][_0x2a25aa(0x21e)](_0x32ca80)[_0x2a25aa(0x239)],this[_0x2a25aa(0x221)](_0x2a25aa(0x231),0x0),this[_0x2a25aa(0x1e5)]=new _0x6bc80d(),this[_0x2a25aa(0x205)]=new _0x3950b3(),this[_0x2a25aa(0x205)][_0x2a25aa(0x213)]=_0x2a25aa(0x208),this[_0x2a25aa(0x214)]=this[_0x2a25aa(0x1ea)](),this[_0x2a25aa(0x1f7)]=void 0x0;}static get[_0x3bc570(0x24b)](){return[_0x32ca80];}[_0x3bc570(0x1eb)](){const _0xd930c0=_0x3bc570;for(const _0x2c8a1c of this[_0xd930c0(0x1ed)])this[_0xd930c0(0x1f4)](_0x2c8a1c);this[_0xd930c0(0x20a)](this[_0xd930c0(0x1ed)],_0xd930c0(0x1f9),(_0x530cce,_0x38ac06)=>{const _0x5934ed=_0xd930c0;this[_0x5934ed(0x1f4)](_0x38ac06);}),this[_0xd930c0(0x20a)](this[_0xd930c0(0x1ed)],_0xd930c0(0x1f3),(_0x343598,_0x347a72)=>{const _0x23213b=_0xd930c0;this[_0x23213b(0x215)](_0x347a72);});}[_0x3bc570(0x1ea)](){const _0x2c3c23=_0x3bc570,_0x522978=this[_0x2c3c23(0x237)],_0x346f9f=new _0x2c64ae(this[_0x2c3c23(0x237)][_0x2c3c23(0x20d)],this[_0x2c3c23(0x237)][_0x2c3c23(0x1e3)][_0x2c3c23(0x21e)](_0x2c3c23(0x222))),_0x131e35=this[_0x2c3c23(0x205)];if(!_0x5987c5(_0x522978[_0x2c3c23(0x1e3)][_0x2c3c23(0x21e)](_0x2c3c23(0x202))))throw new _0x48e369(_0x2c3c23(0x23f),this);return _0x346f9f[_0x2c3c23(0x23e)][_0x2c3c23(0x229)](_0x2c3c23(0x231))['to'](this),_0x346f9f[_0x2c3c23(0x229)](_0x2c3c23(0x1ec))['to'](this,_0x2c3c23(0x231),_0x3bf61b=>{const _0x48fed1=_0x2c3c23,{collapseAt:_0x3c8ed}=_0x522978[_0x48fed1(0x1e3)][_0x48fed1(0x21e)](_0x48fed1(0x233)),_0x7f5574=_0x3bf61b>=_0x3c8ed;if(_0x7f5574&&!_0x346f9f[_0x48fed1(0x226)][_0x48fed1(0x1fa)][_0x48fed1(0x1ef)](_0x500da2=>_0x500da2 instanceof _0x2fc88e)){const _0x2ee6fd=this[_0x48fed1(0x237)][_0x48fed1(0x1e3)][_0x48fed1(0x21e)](_0x48fed1(0x222))-0x1;this[_0x48fed1(0x1e5)][_0x48fed1(0x1e6)]==_0x2ee6fd&&this[_0x48fed1(0x1e5)][_0x48fed1(0x1e6)]>0x1&&this[_0x48fed1(0x1e5)][_0x48fed1(0x1f3)](this[_0x48fed1(0x1e5)][_0x48fed1(0x1e6)]-0x1),_0x346f9f[_0x48fed1(0x226)][_0x48fed1(0x1fa)][_0x48fed1(0x1f9)](_0x346f9f[_0x48fed1(0x23e)]);}return _0x7f5574||this[_0x48fed1(0x21c)](),_0x7f5574;}),_0x346f9f[_0x2c3c23(0x226)][_0x2c3c23(0x1fa)][_0x2c3c23(0x243)](this[_0x2c3c23(0x1e5)])[_0x2c3c23(0x1f0)](_0x43bab2=>{const _0x142060=_0x2c3c23,_0x3d514d=_0x522978[_0x142060(0x1e3)][_0x142060(0x21e)](_0x142060(0x233)),_0x58f6ab=new _0x2f7bd6(_0x522978[_0x142060(0x20d)],_0x43bab2,!!_0x3d514d[_0x142060(0x228)]);return _0x58f6ab[_0x142060(0x229)](_0x142060(0x20b))['to'](_0x346f9f,_0x142060(0x1ec),_0x4c9bbd=>!_0x4c9bbd),_0x58f6ab[_0x142060(0x229)](_0x142060(0x1fb))['to'](_0x346f9f,_0x142060(0x1ec),_0x48c1aa=>!_0x48c1aa),_0x3d514d[_0x142060(0x228)]&&this[_0x142060(0x20a)](_0x58f6ab,_0x142060(0x21b),()=>{const _0xac252d=_0x142060;this[_0xac252d(0x214)][_0xac252d(0x1ec)]||_0x3d514d[_0xac252d(0x228)](_0x43bab2,_0x58f6ab[_0xac252d(0x207)]);}),_0x58f6ab;}),this[_0x2c3c23(0x20a)](_0x346f9f[_0x2c3c23(0x226)],_0x2c3c23(0x24c),()=>{const _0x26792a=_0x2c3c23;this[_0x26792a(0x214)][_0x26792a(0x1ec)]&&this[_0x26792a(0x1e2)]();}),this[_0x2c3c23(0x20a)](_0x346f9f[_0x2c3c23(0x226)],_0x2c3c23(0x249),()=>{const _0x4efa51=_0x2c3c23;this[_0x4efa51(0x1f7)]&&this[_0x4efa51(0x21c)]();}),_0x346f9f[_0x2c3c23(0x226)][_0x2c3c23(0x220)][_0x2c3c23(0x221)](_0x2c3c23(0x21d),(_0x2df90a,_0x4b76f2)=>{const _0x5d7c2c=_0x2c3c23;this[_0x5d7c2c(0x214)][_0x5d7c2c(0x1ec)]&&(this[_0x5d7c2c(0x1e2)](),_0x4b76f2());}),_0x346f9f[_0x2c3c23(0x211)](),_0x131e35[_0x2c3c23(0x211)](),_0x4712ce({'emitter':_0x346f9f,'activator':()=>_0x131e35[_0x2c3c23(0x21a)],'contextElements':[_0x131e35[_0x2c3c23(0x207)],_0x346f9f[_0x2c3c23(0x226)][_0x2c3c23(0x207)]],'callback':()=>this[_0x2c3c23(0x21c)]()}),_0x522978[_0x2c3c23(0x1e3)][_0x2c3c23(0x21e)](_0x2c3c23(0x202))[_0x2c3c23(0x23d)](_0x346f9f[_0x2c3c23(0x207)]),this[_0x2c3c23(0x241)]=new _0x5b1c56(this[_0x2c3c23(0x237)][_0x2c3c23(0x20d)]),this[_0x2c3c23(0x241)][_0x2c3c23(0x22f)](),this[_0x2c3c23(0x241)][_0x2c3c23(0x1f9)](this[_0x2c3c23(0x205)]),_0x346f9f;}[_0x3bc570(0x1f4)](_0x2e80cb){const _0x1e86fc=_0x3bc570;if(!this[_0x1e86fc(0x237)][_0x1e86fc(0x1e3)][_0x1e86fc(0x21e)](_0x1e86fc(0x234))&&_0x2e80cb[_0x1e86fc(0x240)])return;const _0x4d1473=this[_0x1e86fc(0x237)][_0x1e86fc(0x1e3)][_0x1e86fc(0x21e)](_0x1e86fc(0x222))-0x1;for(this[_0x1e86fc(0x231)]++;this[_0x1e86fc(0x1e5)][_0x1e86fc(0x1e6)]>=_0x4d1473-(this[_0x1e86fc(0x214)][_0x1e86fc(0x1ec)]?0x1:0x0)&&this[_0x1e86fc(0x1e5)][_0x1e86fc(0x1e6)]>0x1;)this[_0x1e86fc(0x1e5)][_0x1e86fc(0x1f3)](0x1);const _0x1acf80=_0x2e80cb[_0x1e86fc(0x240)]?0x0:this[_0x1e86fc(0x1e5)][_0x1e86fc(0x1e6)];this[_0x1e86fc(0x1e5)][_0x1e86fc(0x1f9)](_0x2e80cb,_0x1acf80);}[_0x3bc570(0x215)](_0x1d2d58){const _0x327abb=_0x3bc570;this[_0x327abb(0x231)]--;const {collapseAt:_0x221e01}=this[_0x327abb(0x237)][_0x327abb(0x1e3)][_0x327abb(0x21e)](_0x327abb(0x233)),_0x5add1c=this[_0x327abb(0x231)]>=_0x221e01;if(this[_0x327abb(0x1e5)][_0x327abb(0x21e)](_0x1d2d58['id']))this[_0x327abb(0x1e5)][_0x327abb(0x1f3)](_0x1d2d58['id']);else{if(_0x5add1c&&this[_0x327abb(0x1e5)][_0x327abb(0x1e6)]+0x1===_0x221e01-0x1)return;}if(this[_0x327abb(0x1e5)][_0x327abb(0x1e6)]+(_0x5add1c?0x1:0x0)<this[_0x327abb(0x231)]){for(const _0x4b2432 of Array[_0x327abb(0x209)](this[_0x327abb(0x1ed)])[_0x327abb(0x22c)]())if(!this[_0x327abb(0x1e5)][_0x327abb(0x21e)](_0x4b2432['id'])&&(this[_0x327abb(0x1e5)][_0x327abb(0x1f9)](_0x4b2432,Math[_0x327abb(0x242)](this[_0x327abb(0x1e5)][_0x327abb(0x1e6)]-(_0x5add1c?0x1:0x0),0x1)),this[_0x327abb(0x1e5)][_0x327abb(0x1e6)]+(_0x5add1c?0x1:0x0)===_0x221e01-0x1))return;}}[_0x3bc570(0x1e2)](){const _0xe5bf83=_0x3bc570;if(this[_0xe5bf83(0x1f7)])return;const _0xf8c35b=this[_0xe5bf83(0x237)][_0xe5bf83(0x1e3)][_0xe5bf83(0x21e)](_0xe5bf83(0x233));this[_0xe5bf83(0x1f7)]=new _0x57a353(this[_0xe5bf83(0x237)][_0xe5bf83(0x20d)],!!_0xf8c35b[_0xe5bf83(0x228)]),this[_0xe5bf83(0x214)][_0xe5bf83(0x226)][_0xe5bf83(0x223)]=!0x0,this[_0xe5bf83(0x20a)](this[_0xe5bf83(0x1f7)],_0xe5bf83(0x249),()=>{const _0x4cbfb9=_0xe5bf83;this[_0x4cbfb9(0x1f7)]&&this[_0x4cbfb9(0x21c)]();});const {listWrapperView:_0x58c196}=this[_0xe5bf83(0x1f7)];_0x58c196[_0xe5bf83(0x1fa)][_0xe5bf83(0x243)](this[_0xe5bf83(0x1ed)])[_0xe5bf83(0x1f0)](_0x24abbe=>{const _0x1bf010=_0xe5bf83;if(!_0xf8c35b[_0x1bf010(0x236)]&&_0x24abbe[_0x1bf010(0x240)])return null;const _0x29417f=new _0x3ba3e9(this[_0x1bf010(0x237)][_0x1bf010(0x20d)],_0x24abbe,!!_0xf8c35b[_0x1bf010(0x228)]);return _0xf8c35b[_0x1bf010(0x228)]&&this[_0x1bf010(0x20a)](_0x29417f,_0x1bf010(0x21b),()=>{const _0x5e866c=_0x1bf010;_0xf8c35b[_0x5e866c(0x228)](_0x24abbe,_0x29417f[_0x5e866c(0x207)]);}),_0x29417f;}),this[_0xe5bf83(0x205)][_0xe5bf83(0x20e)][_0xe5bf83(0x1f9)](this[_0xe5bf83(0x1f7)]),this[_0xe5bf83(0x205)][_0xe5bf83(0x1e8)]({'target':this[_0xe5bf83(0x214)][_0xe5bf83(0x226)][_0xe5bf83(0x207)]}),_0x58c196[_0xe5bf83(0x1f1)](),_0x58c196[_0xe5bf83(0x238)]();const _0x3cb975=(_0x56d77f,_0x3ee0d3)=>{const _0x4b4f1f=_0xe5bf83;this[_0x4b4f1f(0x21c)](),this[_0x4b4f1f(0x214)][_0x4b4f1f(0x226)][_0x4b4f1f(0x1f1)](),_0x3ee0d3();};_0x58c196[_0xe5bf83(0x220)][_0xe5bf83(0x221)](_0xe5bf83(0x203),_0x3cb975),_0x58c196[_0xe5bf83(0x220)][_0xe5bf83(0x221)](_0xe5bf83(0x1fd),_0x3cb975),_0x58c196[_0xe5bf83(0x220)][_0xe5bf83(0x221)](_0xe5bf83(0x225),(_0x77a6,_0x5750c0)=>{const _0x26e67d=_0xe5bf83;!function(_0x192509){const _0x24ed48=_0x718d,_0x2b9be6=['a',_0x24ed48(0x1f6),_0x24ed48(0x22e),_0x24ed48(0x22d),_0x24ed48(0x217),_0x24ed48(0x24e),_0x24ed48(0x227)][_0x24ed48(0x1fc)](_0x2376b8=>_0x2376b8+_0x24ed48(0x206))[_0x24ed48(0x1ff)](','),_0x2248d5=[...document[_0x24ed48(0x20f)][_0x24ed48(0x1f2)](_0x2b9be6)][_0x24ed48(0x1ee)](_0x73c179=>_0x73c179===document[_0x24ed48(0x1e4)]||_0x73c179[_0x24ed48(0x23b)]+_0x73c179[_0x24ed48(0x216)]>0x0)[_0x24ed48(0x1e7)]((_0x243e24,_0x33eb24)=>(_0x243e24[_0x24ed48(0x218)]||0x0)-(_0x33eb24[_0x24ed48(0x218)]||0x0)),_0x50886b=_0x2248d5[_0x24ed48(0x21f)](_0x192509),_0x1e5835=_0x2248d5[(_0x50886b+0x1)%_0x2248d5[_0x24ed48(0x1e6)]];_0x1e5835&&_0x1e5835[_0x24ed48(0x1f1)]();}(this[_0x26e67d(0x214)][_0x26e67d(0x207)]),this[_0x26e67d(0x21c)](),_0x5750c0();}),_0x58c196[_0xe5bf83(0x212)][_0xe5bf83(0x1f9)](this[_0xe5bf83(0x214)][_0xe5bf83(0x207)]),_0x58c196[_0xe5bf83(0x212)]['on'](_0xe5bf83(0x219),(_0x3bf60f,_0x2a61ed,_0x5e5d24)=>{const _0x3c9090=_0xe5bf83;_0x5e5d24||this[_0x3c9090(0x21c)]();});}[_0x3bc570(0x21c)](){const _0x385fbb=_0x3bc570;this[_0x385fbb(0x1f7)]&&(this[_0x385fbb(0x214)][_0x385fbb(0x226)][_0x385fbb(0x223)]=!0x1,this[_0x385fbb(0x205)][_0x385fbb(0x1f5)](),this[_0x385fbb(0x205)][_0x385fbb(0x20e)][_0x385fbb(0x1f3)](this[_0x385fbb(0x1f7)]),this[_0x385fbb(0x1f7)][_0x385fbb(0x23c)](),this[_0x385fbb(0x1f7)]=void 0x0);}[_0x3bc570(0x23c)](){const _0x54fdd6=_0x3bc570;super[_0x54fdd6(0x23c)](),this[_0x54fdd6(0x214)]&&this[_0x54fdd6(0x214)][_0x54fdd6(0x248)]&&this[_0x54fdd6(0x214)][_0x54fdd6(0x23c)](),this[_0x54fdd6(0x241)]&&(this[_0x54fdd6(0x241)][_0x54fdd6(0x245)](),this[_0x54fdd6(0x241)][_0x54fdd6(0x23c)](),this[_0x54fdd6(0x241)]=null);}}
|
|
23
|
+
const _0x3dfec8=_0x597c;(function(_0x1563ad,_0x25b88){const _0x266888=_0x597c,_0x15c438=_0x1563ad();while(!![]){try{const _0x2c9c45=parseInt(_0x266888(0x18b))/0x1+-parseInt(_0x266888(0x1d8))/0x2+-parseInt(_0x266888(0x188))/0x3*(-parseInt(_0x266888(0x1b0))/0x4)+parseInt(_0x266888(0x186))/0x5*(parseInt(_0x266888(0x182))/0x6)+-parseInt(_0x266888(0x1aa))/0x7+parseInt(_0x266888(0x1e0))/0x8+-parseInt(_0x266888(0x19c))/0x9;if(_0x2c9c45===_0x25b88)break;else _0x15c438['push'](_0x15c438['shift']());}catch(_0x4e4ef8){_0x15c438['push'](_0x15c438['shift']());}}}(_0x4e6b,0xcb5c1));import{ContextPlugin as _0x10db5b}from'ckeditor5/src/core.js';import{CKEditorError as _0x30f3a1,Collection as _0x1985a5}from'ckeditor5/src/utils.js';import{clickOutsideHandler as _0x1e8b96,BalloonPanelView as _0x2d7710,BodyCollection as _0x9e708}from'ckeditor5/src/ui.js';function _0x597c(_0x20d8cc,_0x1e3087){const _0x4e6bb8=_0x4e6b();return _0x597c=function(_0x597c2b,_0x3823ac){_0x597c2b=_0x597c2b-0x178;let _0x6003d1=_0x4e6bb8[_0x597c2b];return _0x6003d1;},_0x597c(_0x20d8cc,_0x1e3087);}import{isElement as _0x6ba87}from'es-toolkit/compat';import{Sessions as _0x33a861}from'../realtimecollaborativeediting/sessions.js';import{PresenceListView as _0x34fd72}from'./view/presencelistview.js';import{PresenceCounterView as _0x49dba0}from'./view/presencecounterview.js';function _0x4e6b(){const _0x353fad=['reverse','checkIfScrollable','set','Tab','using','5740155qLBebo','change:isFocused','presencelist-missing-container','displayMe','isFocusable','define','counterView','from','class','tabIndex','context','textarea','filter','isRendered','7646226DudtSH','locale','[contenteditable]','render','usersCount','offsetHeight','2568dpByZY','Enter','inlineListView','unpin','presenceList.container','querySelectorAll','PresenceListUI','presencelist:hide','activeElement','get','listenTo','destroy','presenceList.collapseAt','content','currentDisplayedUsers','find','number','focus','_handleUserRemove','hideDropdown','presenceList','offsetWidth','Shift+Tab','Esc','button','select','pluginName','appendChild','bindTo','isPremiumPlugin','presenceList.displayMe','requires','allConnectedUsers','presencelist-collapseat-invalid-format','execute','isCollapsed','hasTooltip','_bodyCollection','isVisible','init','2143976kySdLX','sort','config','body','items','view','ck\x20ck-presence-list__balloon','join','6833784ozcJsD','bind','min','_allConnectedUsers','balloonPanelView','plugins','presencelist:show','keystrokes','attachToDom','_handleUserAdd','presenceDropdownView','remove','1446yFsCYZ','element','onClick','input','8825kTReMl','indexOf','6123WfYDPM','showDropdown','map','1045152wAffJN','detachFromDom','isExpanded','isOfficialPlugin','length','focusTracker',':not([disabled]):not([tabindex=\x22-1\x22])','add','pin','_createView','isMe','[tabindex]'];_0x4e6b=function(){return _0x353fad;};return _0x4e6b();}import{PresenceDropdownListView as _0x2fe6a7}from'./view/presencedropdownlistview.js';import{PresenceDropdownListItemView as _0x94215a}from'./view/presencedropdownlistitemview.js';import{PresenceInlineListItemView as _0x7798df}from'./view/presenceinlinelistitemview.js';const x={'collapseAt':0x6,'displayMe':!0x0};export class PresenceListUI extends _0x10db5b{[_0x3dfec8(0x1be)];[_0x3dfec8(0x17a)];[_0x3dfec8(0x1dd)];[_0x3dfec8(0x180)];[_0x3dfec8(0x1d5)]=null;static get[_0x3dfec8(0x1ca)](){const _0x1e1678=_0x3dfec8;return _0x1e1678(0x1b6);}static get[_0x3dfec8(0x18e)](){return!0x0;}static get[_0x3dfec8(0x1cd)](){return!0x0;}constructor(_0xc5533e){const _0x205d56=_0x3dfec8;super(_0xc5533e),this[_0x205d56(0x1a6)][_0x205d56(0x1da)][_0x205d56(0x1a1)](_0x205d56(0x1c4),x);const _0x531872=_0xc5533e[_0x205d56(0x1da)][_0x205d56(0x1b9)](_0x205d56(0x1bc));if(_0x205d56(0x1c0)!=typeof _0x531872)throw new _0x30f3a1(_0x205d56(0x1d1),this);if(_0x531872<0x1)throw new _0x30f3a1(_0x205d56(0x1d1),this);this[_0x205d56(0x179)]=this[_0x205d56(0x1a6)][_0x205d56(0x17b)][_0x205d56(0x1b9)](_0x33a861)[_0x205d56(0x1d0)],this[_0x205d56(0x199)](_0x205d56(0x1ae),0x0),this[_0x205d56(0x1be)]=new _0x1985a5(),this[_0x205d56(0x17a)]=new _0x2d7710(),this[_0x205d56(0x17a)][_0x205d56(0x1a4)]=_0x205d56(0x1de),this[_0x205d56(0x1dd)]=this[_0x205d56(0x194)](),this[_0x205d56(0x180)]=void 0x0;}static get[_0x3dfec8(0x1cf)](){return[_0x33a861];}[_0x3dfec8(0x1d7)](){const _0x32f12c=_0x3dfec8;for(const _0x3cfb64 of this[_0x32f12c(0x179)])this[_0x32f12c(0x17f)](_0x3cfb64);this[_0x32f12c(0x1ba)](this[_0x32f12c(0x179)],_0x32f12c(0x192),(_0x5225f2,_0xb4c79b)=>{const _0x43c358=_0x32f12c;this[_0x43c358(0x17f)](_0xb4c79b);}),this[_0x32f12c(0x1ba)](this[_0x32f12c(0x179)],_0x32f12c(0x181),(_0x584a55,_0x2c8da8)=>{const _0x1c1085=_0x32f12c;this[_0x1c1085(0x1c2)](_0x2c8da8);});}[_0x3dfec8(0x194)](){const _0x594831=_0x3dfec8,_0xe77412=this[_0x594831(0x1a6)],_0x2dd55b=new _0x34fd72(this[_0x594831(0x1a6)][_0x594831(0x1ab)],this[_0x594831(0x1a6)][_0x594831(0x1da)][_0x594831(0x1b9)](_0x594831(0x1bc))),_0x58c10a=this[_0x594831(0x17a)];if(!_0x6ba87(_0xe77412[_0x594831(0x1da)][_0x594831(0x1b9)](_0x594831(0x1b4))))throw new _0x30f3a1(_0x594831(0x19e),this);return _0x2dd55b[_0x594831(0x1a2)][_0x594831(0x1e1)](_0x594831(0x1ae))['to'](this),_0x2dd55b[_0x594831(0x1e1)](_0x594831(0x1d3))['to'](this,_0x594831(0x1ae),_0x3e5694=>{const _0x4442dd=_0x594831,{collapseAt:_0x47767c}=_0xe77412[_0x4442dd(0x1da)][_0x4442dd(0x1b9)](_0x4442dd(0x1c4)),_0x8937e8=_0x3e5694>=_0x47767c;if(_0x8937e8&&!_0x2dd55b[_0x4442dd(0x1b2)][_0x4442dd(0x1dc)][_0x4442dd(0x1bf)](_0x40884f=>_0x40884f instanceof _0x49dba0)){const _0x3ea4d5=this[_0x4442dd(0x1a6)][_0x4442dd(0x1da)][_0x4442dd(0x1b9)](_0x4442dd(0x1bc))-0x1;this[_0x4442dd(0x1be)][_0x4442dd(0x18f)]==_0x3ea4d5&&this[_0x4442dd(0x1be)][_0x4442dd(0x18f)]>0x1&&this[_0x4442dd(0x1be)][_0x4442dd(0x181)](this[_0x4442dd(0x1be)][_0x4442dd(0x18f)]-0x1),_0x2dd55b[_0x4442dd(0x1b2)][_0x4442dd(0x1dc)][_0x4442dd(0x192)](_0x2dd55b[_0x4442dd(0x1a2)]);}return _0x8937e8||this[_0x4442dd(0x1c3)](),_0x8937e8;}),_0x2dd55b[_0x594831(0x1b2)][_0x594831(0x1dc)][_0x594831(0x1cc)](this[_0x594831(0x1be)])[_0x594831(0x19b)](_0x17aa73=>{const _0x4fa798=_0x594831,_0x547841=_0xe77412[_0x4fa798(0x1da)][_0x4fa798(0x1b9)](_0x4fa798(0x1c4)),_0x3cc8f3=new _0x7798df(_0xe77412[_0x4fa798(0x1ab)],_0x17aa73,!!_0x547841[_0x4fa798(0x184)]);return _0x3cc8f3[_0x4fa798(0x1e1)](_0x4fa798(0x1d4))['to'](_0x2dd55b,_0x4fa798(0x1d3),_0x557577=>!_0x557577),_0x3cc8f3[_0x4fa798(0x1e1)](_0x4fa798(0x1a0))['to'](_0x2dd55b,_0x4fa798(0x1d3),_0x23a742=>!_0x23a742),_0x547841[_0x4fa798(0x184)]&&this[_0x4fa798(0x1ba)](_0x3cc8f3,_0x4fa798(0x1d2),()=>{const _0x1f26d6=_0x4fa798;this[_0x1f26d6(0x1dd)][_0x1f26d6(0x1d3)]||_0x547841[_0x1f26d6(0x184)](_0x17aa73,_0x3cc8f3[_0x1f26d6(0x183)]);}),_0x3cc8f3;}),this[_0x594831(0x1ba)](_0x2dd55b[_0x594831(0x1b2)],_0x594831(0x17c),()=>{const _0x537f3d=_0x594831;this[_0x537f3d(0x1dd)][_0x537f3d(0x1d3)]&&this[_0x537f3d(0x189)]();}),this[_0x594831(0x1ba)](_0x2dd55b[_0x594831(0x1b2)],_0x594831(0x1b7),()=>{const _0x13be71=_0x594831;this[_0x13be71(0x180)]&&this[_0x13be71(0x1c3)]();}),_0x2dd55b[_0x594831(0x1b2)][_0x594831(0x17d)][_0x594831(0x199)](_0x594831(0x1b1),(_0x196432,_0x24ef19)=>{const _0x5a00c9=_0x594831;this[_0x5a00c9(0x1dd)][_0x5a00c9(0x1d3)]&&(this[_0x5a00c9(0x189)](),_0x24ef19());}),_0x2dd55b[_0x594831(0x1ad)](),_0x58c10a[_0x594831(0x1ad)](),_0x1e8b96({'emitter':_0x2dd55b,'activator':()=>_0x58c10a[_0x594831(0x1d6)],'contextElements':[_0x58c10a[_0x594831(0x183)],_0x2dd55b[_0x594831(0x1b2)][_0x594831(0x183)]],'callback':()=>this[_0x594831(0x1c3)]()}),_0xe77412[_0x594831(0x1da)][_0x594831(0x1b9)](_0x594831(0x1b4))[_0x594831(0x1cb)](_0x2dd55b[_0x594831(0x183)]),this[_0x594831(0x1d5)]=new _0x9e708(this[_0x594831(0x1a6)][_0x594831(0x1ab)]),this[_0x594831(0x1d5)][_0x594831(0x17e)](),this[_0x594831(0x1d5)][_0x594831(0x192)](this[_0x594831(0x17a)]),_0x2dd55b;}[_0x3dfec8(0x17f)](_0x16a37b){const _0x12e2bd=_0x3dfec8;if(!this[_0x12e2bd(0x1a6)][_0x12e2bd(0x1da)][_0x12e2bd(0x1b9)](_0x12e2bd(0x1ce))&&_0x16a37b[_0x12e2bd(0x195)])return;const _0x3f5adc=this[_0x12e2bd(0x1a6)][_0x12e2bd(0x1da)][_0x12e2bd(0x1b9)](_0x12e2bd(0x1bc))-0x1;for(this[_0x12e2bd(0x1ae)]++;this[_0x12e2bd(0x1be)][_0x12e2bd(0x18f)]>=_0x3f5adc-(this[_0x12e2bd(0x1dd)][_0x12e2bd(0x1d3)]?0x1:0x0)&&this[_0x12e2bd(0x1be)][_0x12e2bd(0x18f)]>0x1;)this[_0x12e2bd(0x1be)][_0x12e2bd(0x181)](0x1);const _0x21e163=_0x16a37b[_0x12e2bd(0x195)]?0x0:this[_0x12e2bd(0x1be)][_0x12e2bd(0x18f)];this[_0x12e2bd(0x1be)][_0x12e2bd(0x192)](_0x16a37b,_0x21e163);}[_0x3dfec8(0x1c2)](_0x9343af){const _0x15e0b6=_0x3dfec8;this[_0x15e0b6(0x1ae)]--;const {collapseAt:_0x2fa2b0}=this[_0x15e0b6(0x1a6)][_0x15e0b6(0x1da)][_0x15e0b6(0x1b9)](_0x15e0b6(0x1c4)),_0x3414ce=this[_0x15e0b6(0x1ae)]>=_0x2fa2b0;if(this[_0x15e0b6(0x1be)][_0x15e0b6(0x1b9)](_0x9343af['id']))this[_0x15e0b6(0x1be)][_0x15e0b6(0x181)](_0x9343af['id']);else{if(_0x3414ce&&this[_0x15e0b6(0x1be)][_0x15e0b6(0x18f)]+0x1===_0x2fa2b0-0x1)return;}if(this[_0x15e0b6(0x1be)][_0x15e0b6(0x18f)]+(_0x3414ce?0x1:0x0)<this[_0x15e0b6(0x1ae)]){for(const _0x34ad68 of Array[_0x15e0b6(0x1a3)](this[_0x15e0b6(0x179)])[_0x15e0b6(0x197)]())if(!this[_0x15e0b6(0x1be)][_0x15e0b6(0x1b9)](_0x34ad68['id'])&&(this[_0x15e0b6(0x1be)][_0x15e0b6(0x192)](_0x34ad68,Math[_0x15e0b6(0x178)](this[_0x15e0b6(0x1be)][_0x15e0b6(0x18f)]-(_0x3414ce?0x1:0x0),0x1)),this[_0x15e0b6(0x1be)][_0x15e0b6(0x18f)]+(_0x3414ce?0x1:0x0)===_0x2fa2b0-0x1))return;}}[_0x3dfec8(0x189)](){const _0xf8413c=_0x3dfec8;if(this[_0xf8413c(0x180)])return;const _0x58eed4=this[_0xf8413c(0x1a6)][_0xf8413c(0x1da)][_0xf8413c(0x1b9)](_0xf8413c(0x1c4));this[_0xf8413c(0x180)]=new _0x2fe6a7(this[_0xf8413c(0x1a6)][_0xf8413c(0x1ab)],!!_0x58eed4[_0xf8413c(0x184)]),this[_0xf8413c(0x1dd)][_0xf8413c(0x1b2)][_0xf8413c(0x18d)]=!0x0,this[_0xf8413c(0x1ba)](this[_0xf8413c(0x180)],_0xf8413c(0x1b7),()=>{const _0x48dd02=_0xf8413c;this[_0x48dd02(0x180)]&&this[_0x48dd02(0x1c3)]();});const {listWrapperView:_0xf85071}=this[_0xf8413c(0x180)];_0xf85071[_0xf8413c(0x1dc)][_0xf8413c(0x1cc)](this[_0xf8413c(0x179)])[_0xf8413c(0x19b)](_0x4a39b8=>{const _0xbac58d=_0xf8413c;if(!_0x58eed4[_0xbac58d(0x19f)]&&_0x4a39b8[_0xbac58d(0x195)])return null;const _0x5ded6d=new _0x94215a(this[_0xbac58d(0x1a6)][_0xbac58d(0x1ab)],_0x4a39b8,!!_0x58eed4[_0xbac58d(0x184)]);return _0x58eed4[_0xbac58d(0x184)]&&this[_0xbac58d(0x1ba)](_0x5ded6d,_0xbac58d(0x1d2),()=>{const _0x480db1=_0xbac58d;_0x58eed4[_0x480db1(0x184)](_0x4a39b8,_0x5ded6d[_0x480db1(0x183)]);}),_0x5ded6d;}),this[_0xf8413c(0x17a)][_0xf8413c(0x1bd)][_0xf8413c(0x192)](this[_0xf8413c(0x180)]),this[_0xf8413c(0x17a)][_0xf8413c(0x193)]({'target':this[_0xf8413c(0x1dd)][_0xf8413c(0x1b2)][_0xf8413c(0x183)]}),_0xf85071[_0xf8413c(0x1c1)](),_0xf85071[_0xf8413c(0x198)]();const _0x2ba2c8=(_0x5706de,_0x47cc37)=>{const _0x5059f2=_0xf8413c;this[_0x5059f2(0x1c3)](),this[_0x5059f2(0x1dd)][_0x5059f2(0x1b2)][_0x5059f2(0x1c1)](),_0x47cc37();};_0xf85071[_0xf8413c(0x17d)][_0xf8413c(0x199)](_0xf8413c(0x1c7),_0x2ba2c8),_0xf85071[_0xf8413c(0x17d)][_0xf8413c(0x199)](_0xf8413c(0x1c6),_0x2ba2c8),_0xf85071[_0xf8413c(0x17d)][_0xf8413c(0x199)](_0xf8413c(0x19a),(_0x40c2f9,_0x40f427)=>{const _0x47336b=_0xf8413c;!function(_0x50ef87){const _0x577e13=_0x597c,_0x4d10e2=['a',_0x577e13(0x1c8),_0x577e13(0x185),_0x577e13(0x1c9),_0x577e13(0x1a7),_0x577e13(0x196),_0x577e13(0x1ac)][_0x577e13(0x18a)](_0x1e1556=>_0x1e1556+_0x577e13(0x191))[_0x577e13(0x1df)](','),_0x383bc8=[...document[_0x577e13(0x1db)][_0x577e13(0x1b5)](_0x4d10e2)][_0x577e13(0x1a8)](_0x66ca4d=>_0x66ca4d===document[_0x577e13(0x1b8)]||_0x66ca4d[_0x577e13(0x1c5)]+_0x66ca4d[_0x577e13(0x1af)]>0x0)[_0x577e13(0x1d9)]((_0x2c37f0,_0x22d734)=>(_0x2c37f0[_0x577e13(0x1a5)]||0x0)-(_0x22d734[_0x577e13(0x1a5)]||0x0)),_0x2b0150=_0x383bc8[_0x577e13(0x187)](_0x50ef87),_0x3b6067=_0x383bc8[(_0x2b0150+0x1)%_0x383bc8[_0x577e13(0x18f)]];_0x3b6067&&_0x3b6067[_0x577e13(0x1c1)]();}(this[_0x47336b(0x1dd)][_0x47336b(0x183)]),this[_0x47336b(0x1c3)](),_0x40f427();}),_0xf85071[_0xf8413c(0x190)][_0xf8413c(0x192)](this[_0xf8413c(0x1dd)][_0xf8413c(0x183)]),_0xf85071[_0xf8413c(0x190)]['on'](_0xf8413c(0x19d),(_0x3303b0,_0x54767d,_0x32458a)=>{const _0x2ae87a=_0xf8413c;_0x32458a||this[_0x2ae87a(0x1c3)]();});}[_0x3dfec8(0x1c3)](){const _0x265c3a=_0x3dfec8;this[_0x265c3a(0x180)]&&(this[_0x265c3a(0x1dd)][_0x265c3a(0x1b2)][_0x265c3a(0x18d)]=!0x1,this[_0x265c3a(0x17a)][_0x265c3a(0x1b3)](),this[_0x265c3a(0x17a)][_0x265c3a(0x1bd)][_0x265c3a(0x181)](this[_0x265c3a(0x180)]),this[_0x265c3a(0x180)][_0x265c3a(0x1bb)](),this[_0x265c3a(0x180)]=void 0x0);}[_0x3dfec8(0x1bb)](){const _0x38d2bc=_0x3dfec8;super[_0x38d2bc(0x1bb)](),this[_0x38d2bc(0x1dd)]&&this[_0x38d2bc(0x1dd)][_0x38d2bc(0x1a9)]&&this[_0x38d2bc(0x1dd)][_0x38d2bc(0x1bb)](),this[_0x38d2bc(0x1d5)]&&(this[_0x38d2bc(0x1d5)][_0x38d2bc(0x18c)](),this[_0x38d2bc(0x1d5)][_0x38d2bc(0x1bb)](),this[_0x38d2bc(0x1d5)]=null);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x351c67=_0x1a6b;(function(_0x1fa7e0,_0x2bfd7a){const _0x4e30c2=_0x1a6b,_0x4c3820=_0x1fa7e0();while(!![]){try{const _0x1548e8=-parseInt(_0x4e30c2(0x154))/0x1*(-parseInt(_0x4e30c2(0x142))/0x2)+parseInt(_0x4e30c2(0x14b))/0x3+-parseInt(_0x4e30c2(0x13f))/0x4*(parseInt(_0x4e30c2(0x14a))/0x5)+-parseInt(_0x4e30c2(0x12d))/0x6*(parseInt(_0x4e30c2(0x144))/0x7)+parseInt(_0x4e30c2(0x152))/0x8*(parseInt(_0x4e30c2(0x12f))/0x9)+-parseInt(_0x4e30c2(0x149))/0xa+parseInt(_0x4e30c2(0x137))/0xb*(-parseInt(_0x4e30c2(0x134))/0xc);if(_0x1548e8===_0x2bfd7a)break;else _0x4c3820['push'](_0x4c3820['shift']());}catch(_0x4de325){_0x4c3820['push'](_0x4c3820['shift']());}}}(_0x18b0,0xbe275));import{ListView as _0x4979dc,View as _0x32e615}from'ckeditor5/src/ui.js';function _0x18b0(){const _0x5549f5=['Connected\x20users\x20list\x20dropdown\x20menu','fire','ck-presence-list__dropdown-list','role','ariaLabel','div','6xXEnQO','bindTemplate','72YhWyZT','listenTo','ck-presence-list__dropdown-list-wrapper_scrollable','resize','innerHeight','1167228itIAOS','clientHeight','max','11bwIUHp','querySelector','.ck-balloon-panel_with-arrow','checkIfScrollable','render','relatedTarget','application','listWrapperView','164nXnUHL','ck-list','element','26216eRhlfj','contains','8728307oaKgBD','ck-presence-list__dropdown-list-wrapper','setTemplate','ck-reset','presencelist:hide','5082400TJrtyY','25475aLciji','1903806lVVDXa','_isScrollable','set','ariaLabelledBy','.ck-presence-list__list','items','window','1248688ZFAhfX','scrollHeight','73hNaGJx','change'];_0x18b0=function(){return _0x5549f5;};return _0x18b0();}import{global as _0x552b11}from'ckeditor5/src/utils.js';import{getTranslation as _0x5abeff}from'../../common-translations.js';function _0x1a6b(_0xb5e510,_0x24c688){const _0x18b07f=_0x18b0();return _0x1a6b=function(_0x1a6b26,_0x4a1802){_0x1a6b26=_0x1a6b26-0x12d;let _0x1aab37=_0x18b07f[_0x1a6b26];return _0x1aab37;},_0x1a6b(_0xb5e510,_0x24c688);}export class PresenceDropdownListView extends _0x32e615{[_0x351c67(0x13e)];constructor(_0x8675,_0x4c81f2){const _0xb615ef=_0x351c67;super(_0x8675);const _0x97849e=this[_0xb615ef(0x12e)];this[_0xb615ef(0x13e)]=new PresenceDropdownListWrapperView(_0x8675,_0x4c81f2),this[_0xb615ef(0x146)]({'tag':_0xb615ef(0x15b),'attributes':{'tabindex':-0x1,'role':_0xb615ef(0x13d),'class':['ck',_0xb615ef(0x158)],'aria-label':_0x5abeff(_0x8675,_0xb615ef(0x156))},'children':[this[_0xb615ef(0x13e)]],'on':{'mouseleave':_0x97849e['to'](_0x58461c=>{const _0x287292=_0xb615ef,_0x2ff415=_0x58461c,_0x133a1d=document[_0x287292(0x138)](_0x287292(0x14f)),_0x1a17fe=document[_0x287292(0x138)](_0x287292(0x139));_0x133a1d?.[_0x287292(0x143)](_0x2ff415[_0x287292(0x13c)])||_0x1a17fe?.[_0x287292(0x143)](_0x2ff415[_0x287292(0x13c)])||this[_0x287292(0x157)](_0x287292(0x148));})}});}}export class PresenceDropdownListWrapperView extends _0x4979dc{constructor(_0x22c2fe,_0x2977c7){const _0x16cb22=_0x351c67;super(_0x22c2fe);const _0x25b1a8=this[_0x16cb22(0x12e)];this[_0x16cb22(0x14d)](_0x16cb22(0x14c),!0x1),this[_0x16cb22(0x146)]({'tag':_0x2977c7?_0x16cb22(0x15b):'ul','attributes':{'class':['ck',_0x16cb22(0x147),_0x16cb22(0x140),_0x16cb22(0x145),_0x25b1a8['if'](_0x16cb22(0x14c),_0x16cb22(0x131))],'role':_0x25b1a8['to'](_0x16cb22(0x159)),'aria-label':_0x25b1a8['to'](_0x16cb22(0x15a)),'aria-labelledby':_0x25b1a8['to'](_0x16cb22(0x14e))},'children':this[_0x16cb22(0x150)]}),this[_0x16cb22(0x130)](_0x552b11[_0x16cb22(0x151)],_0x16cb22(0x132),()=>this[_0x16cb22(0x13a)]()),this[_0x16cb22(0x150)]['on'](_0x16cb22(0x155),()=>this[_0x16cb22(0x13a)]());}[_0x351c67(0x13b)](){const _0x196dd8=_0x351c67;super[_0x196dd8(0x13b)](),this[_0x196dd8(0x13a)]();}[_0x351c67(0x13a)](){const _0x482e2e=_0x351c67,_0x20f9ab=this[_0x482e2e(0x141)];_0x20f9ab&&(this[_0x482e2e(0x14c)]=Math[_0x482e2e(0x136)](_0x20f9ab[_0x482e2e(0x153)],_0x20f9ab[_0x482e2e(0x135)])>0.8*window[_0x482e2e(0x133)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f5e38=_0x352d;(function(_0x167326,_0x5c9b4c){const _0x157873=_0x352d,_0xc56934=_0x167326();while(!![]){try{const _0x21101f=parseInt(_0x157873(0x175))/0x1+-parseInt(_0x157873(0x18e))/0x2*(-parseInt(_0x157873(0x183))/0x3)+parseInt(_0x157873(0x181))/0x4*(parseInt(_0x157873(0x189))/0x5)+parseInt(_0x157873(0x178))/0x6*(parseInt(_0x157873(0x18d))/0x7)+-parseInt(_0x157873(0x17b))/0x8+parseInt(_0x157873(0x185))/0x9*(-parseInt(_0x157873(0x180))/0xa)+-parseInt(_0x157873(0x198))/0xb;if(_0x21101f===_0x5c9b4c)break;else _0xc56934['push'](_0xc56934['shift']());}catch(_0x27780f){_0xc56934['push'](_0xc56934['shift']());}}}(_0x1c16,0x33785));function _0x352d(_0x1c4248,_0x5ee144){const _0x1c16cc=_0x1c16();return _0x352d=function(_0x352d72,_0x5ab310){_0x352d72=_0x352d72-0x172;let _0x23cdd7=_0x1c16cc[_0x352d72];return _0x23cdd7;},_0x352d(_0x1c4248,_0x5ee144);}import{View as _0x3d0aad}from'ckeditor5/src/ui.js';import{KeystrokeHandler as _0x1d9422}from'ckeditor5/src/utils.js';import{getTranslation as _0x834d29}from'../../common-translations.js';export class PresenceInlineListView extends _0x3d0aad{[_0x1f5e38(0x18f)];[_0x1f5e38(0x192)];constructor(_0x362cf2){const _0x1aa7ab=_0x1f5e38;super(_0x362cf2);const _0x53a05b=this[_0x1aa7ab(0x193)];this[_0x1aa7ab(0x18f)]=this[_0x1aa7ab(0x17a)](),this[_0x1aa7ab(0x192)]=new _0x1d9422(),this[_0x1aa7ab(0x17d)]({'hasPopup':!0x1,'isExpanded':!0x1}),this[_0x1aa7ab(0x174)]({'tag':_0x1aa7ab(0x18b),'attributes':{'aria-haspopup':_0x53a05b['if'](_0x1aa7ab(0x191)),'aria-expanded':_0x53a05b['to'](_0x1aa7ab(0x182),_0x175c47=>this[_0x1aa7ab(0x191)]&&String(_0x175c47)),'aria-label':_0x53a05b['to'](_0x1aa7ab(0x191),_0x20a295=>_0x834d29(_0x362cf2,_0x20a295?_0x1aa7ab(0x177):_0x1aa7ab(0x18c))),'role':_0x1aa7ab(0x184),'tabindex':_0x53a05b['to'](_0x1aa7ab(0x191),_0x35d819=>!!_0x35d819&&0x0),'class':['ck',_0x1aa7ab(0x172)]},'children':this[_0x1aa7ab(0x18f)],'on':{'mouseenter':_0x53a05b['to'](()=>this[_0x1aa7ab(0x188)](_0x1aa7ab(0x187))),'mouseleave':_0x53a05b['to'](_0x41f771=>{const _0x5462b0=_0x1aa7ab,_0x265866=_0x41f771,_0x4743e7=document[_0x5462b0(0x196)](_0x5462b0(0x190)),_0x5ca9e5=document[_0x5462b0(0x196)](_0x5462b0(0x17f));_0x4743e7?.[_0x5462b0(0x195)](_0x265866[_0x5462b0(0x179)])||_0x5ca9e5?.[_0x5462b0(0x195)](_0x265866[_0x5462b0(0x179)])||this[_0x5462b0(0x188)](_0x5462b0(0x176));})}}),this['on'](_0x1aa7ab(0x17e),(_0x1ee73d,_0x5e2c92,_0x3adf2f)=>{const _0xc2c816=_0x1aa7ab;this[_0xc2c816(0x194)]&&(_0x3adf2f?this[_0xc2c816(0x194)][_0xc2c816(0x18a)](_0xc2c816(0x197),String(this[_0xc2c816(0x182)])):this[_0xc2c816(0x194)][_0xc2c816(0x186)](_0xc2c816(0x197)));});}[_0x1f5e38(0x199)](){const _0x56159d=_0x1f5e38;this[_0x56159d(0x194)][_0x56159d(0x199)]();}[_0x1f5e38(0x17c)](){const _0x4187df=_0x1f5e38;super[_0x4187df(0x17c)](),this[_0x4187df(0x192)][_0x4187df(0x173)](this[_0x4187df(0x194)]);}}function _0x1c16(){const _0x3eaca9=['querySelector','aria-expanded','4998180JNYPTd','focus','ck-presence-list__list','listenTo','setTemplate','201256oWKKIx','presencelist:hide','Collapsed\x20connected\x20users\x20list\x20(press\x20ENTER\x20to\x20open\x20it)','36esbZBb','relatedTarget','createCollection','2303784MmICtP','render','set','change:hasPopup','.ck-balloon-panel_with-arrow','10WqtILD','69796yipEQI','isExpanded','12NhQkwe','list','1841247IxXaab','removeAttribute','presencelist:show','fire','95yOjtpW','setAttribute','div','Connected\x20users\x20list','312067QaYWyg','178742oGCvCw','items','.ck-presence-list__dropdown-list','hasPopup','keystrokes','bindTemplate','element','contains'];_0x1c16=function(){return _0x3eaca9;};return _0x1c16();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x197b8e=_0x1d1b;function _0x1d1b(_0x4acd93,_0x44f2f2){const _0x5a60b9=_0x5a60();return _0x1d1b=function(_0x1d1b38,_0xadaa62){_0x1d1b38=_0x1d1b38-0x1b0;let _0x461e5c=_0x5a60b9[_0x1d1b38];return _0x461e5c;},_0x1d1b(_0x4acd93,_0x44f2f2);}(function(_0x5b40cb,_0x3a8629){const _0x4eb181=_0x1d1b,_0x2b921c=_0x5b40cb();while(!![]){try{const _0x119d41=parseInt(_0x4eb181(0x1bb))/0x1+parseInt(_0x4eb181(0x1b3))/0x2*(parseInt(_0x4eb181(0x1bc))/0x3)+-parseInt(_0x4eb181(0x1b1))/0x4*(parseInt(_0x4eb181(0x1ba))/0x5)+-parseInt(_0x4eb181(0x1c8))/0x6+-parseInt(_0x4eb181(0x1b7))/0x7*(parseInt(_0x4eb181(0x1bd))/0x8)+-parseInt(_0x4eb181(0x1ca))/0x9*(parseInt(_0x4eb181(0x1c0))/0xa)+parseInt(_0x4eb181(0x1b4))/0xb*(parseInt(_0x4eb181(0x1ce))/0xc);if(_0x119d41===_0x3a8629)break;else _0x2b921c['push'](_0x2b921c['shift']());}catch(_0x108770){_0x2b921c['push'](_0x2b921c['shift']());}}}(_0x5a60,0x6229f));import{View as _0x26e859}from'ckeditor5/src/ui.js';function _0x5a60(){const _0x11c116=['12sPkEwM','tooltipPosition','205584pOZmwm','bindTemplate','795464jLWwzY','14569577qScvMw','ck-reset','bind','1087226RfUQGZ','change','locale','10XygzRR','747285DQvysj','3mafOLX','24aBtiEP','counterView','items','3971420BjHkYB','ck-presence-list','set','div','inlineListView','listenTo','setTemplate','ck-presence-list--collapsed','4226490GkWgpn','ck-rounded-corners','18gEHSJc','hasPopup','isCollapsed','first'];_0x5a60=function(){return _0x11c116;};return _0x5a60();}import{PresenceCounterView as _0x51827d}from'./presencecounterview.js';import{PresenceInlineListView as _0x3a3fe4}from'./presenceinlinelistview.js';import'../../../theme/presencelist.css';export class PresenceListView extends _0x26e859{[_0x197b8e(0x1be)];[_0x197b8e(0x1c4)];constructor(_0x335979,_0x57d9b0=0x6){const _0x76909a=_0x197b8e;super(_0x335979);const _0x5623c0=this[_0x76909a(0x1b2)];this[_0x76909a(0x1c2)](_0x76909a(0x1cc),!0x0),this[_0x76909a(0x1be)]=new _0x51827d(this[_0x76909a(0x1b9)],_0x57d9b0),this[_0x76909a(0x1c4)]=new _0x3a3fe4(_0x335979),this[_0x76909a(0x1c4)][_0x76909a(0x1b6)](_0x76909a(0x1cb))['to'](this,_0x76909a(0x1cc)),this[_0x76909a(0x1c5)](this[_0x76909a(0x1c4)][_0x76909a(0x1bf)],_0x76909a(0x1b8),()=>{const _0x39a0a0=_0x76909a;for(const _0x702ba8 of this[_0x39a0a0(0x1c4)][_0x39a0a0(0x1bf)])_0x702ba8[_0x39a0a0(0x1b0)]='s';this[_0x39a0a0(0x1c4)][_0x39a0a0(0x1bf)][_0x39a0a0(0x1cd)]&&(this[_0x39a0a0(0x1c4)][_0x39a0a0(0x1bf)][_0x39a0a0(0x1cd)][_0x39a0a0(0x1b0)]='se');}),this[_0x76909a(0x1c6)]({'tag':_0x76909a(0x1c3),'attributes':{'class':['ck',_0x76909a(0x1c1),_0x76909a(0x1b5),_0x76909a(0x1c9),_0x5623c0['if'](_0x76909a(0x1cc),_0x76909a(0x1c7))]},'children':[this[_0x76909a(0x1c4)]]});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
((()=>_0x8013ad)());[_0xfb1eb4(0xe2)];static get[_0xfb1eb4(0x129)](){const _0x1fb17e=_0xfb1eb4;return[_0x56d380,_0x1fb17e(0x133),_0x1dce99,_0x43e508];}static get[_0xfb1eb4(0x13e)](){const _0x1c1803=_0xfb1eb4;return _0x1c1803(0x12f);}static get[_0xfb1eb4(0xe5)](){return!0x0;}static get[_0xfb1eb4(0x109)](){return!0x0;}constructor(_0x1d3606){const _0x58a49b=_0xfb1eb4;super(_0x1d3606),this[_0x58a49b(0xe2)]=new Map();}async[_0xfb1eb4(0x106)](){const _0x2c2c0f=_0xfb1eb4,_0x56e77a=this[_0x2c2c0f(0xfa)],_0x424e79=_0x56e77a[_0x2c2c0f(0x139)][_0x2c2c0f(0x117)](_0x2c2c0f(0x133));if(_0x56e77a[_0x2c2c0f(0x139)][_0x2c2c0f(0x117)](_0x56d380)[_0x2c2c0f(0x123)](this),_0x424e79[_0x2c2c0f(0x101)]={'addCommentThread':async({channelId:_0x3deba7,threadId:_0x231a64,comments:_0x306a09,resolvedAt:_0x282ca9,resolvedBy:_0x487a98,context:_0x3b4bcb,attributes:_0x230888})=>{const _0x46153e=_0x2c2c0f,_0x50cc1f=await this[_0x46153e(0x104)](_0x3deba7)[_0x46153e(0x131)]({'commentThreadId':_0x231a64,'comments':_0x306a09[_0x46153e(0x10b)](_0x402a42=>function(_0x383cc2,_0xf4afa7,_0x439eff){const _0x456d67=_0x46153e;return{'commentThreadId':_0x439eff,'commentId':_0x383cc2[_0x456d67(0x13d)],'userId':_0x383cc2[_0x456d67(0xf0)],'content':_0x383cc2[_0x456d67(0x107)],'documentId':_0xf4afa7,'createdAt':_0x383cc2[_0x456d67(0xed)],'attributes':_0x383cc2[_0x456d67(0xe7)]||{}};}(_0x402a42,_0x3deba7,_0x231a64)),'resolvedAt':_0x282ca9,'resolvedBy':_0x487a98,'context':_0x3b4bcb,'attributes':_0x230888})[_0x46153e(0x110)](A);return{'threadId':_0x50cc1f[_0x46153e(0x124)],'comments':_0x50cc1f[_0x46153e(0x114)]};},'getCommentThread':async({channelId:_0x1168ed,threadId:_0xa31fb9})=>{const _0x42fbe0=_0x2c2c0f,_0x6fcfa7=await this[_0x42fbe0(0x104)](_0x1168ed)[_0x42fbe0(0x13c)](_0xa31fb9)[_0x42fbe0(0x110)](f)[_0x42fbe0(0x110)](A);return _0x6fcfa7?_0x6fcfa7[_0x42fbe0(0xf3)]?null:(await this[_0x42fbe0(0x134)]([_0x6fcfa7]),{'threadId':_0x6fcfa7[_0x42fbe0(0x124)],'comments':_0x6fcfa7[_0x42fbe0(0x114)][_0x42fbe0(0x10b)](p),'context':_0x6fcfa7[_0x42fbe0(0xfa)],'resolvedAt':_0x6fcfa7[_0x42fbe0(0x118)],'resolvedBy':_0x6fcfa7[_0x42fbe0(0xf9)],'attributes':_0x6fcfa7[_0x42fbe0(0xe7)]||{}}):null;},'updateCommentThread':async({channelId:_0x1c1a54,threadId:_0x3a2bca,context:_0x28af0e,unlinkedAt:_0x3295fb,attributes:_0x2801f6})=>this[_0x2c2c0f(0x104)](_0x1c1a54)[_0x2c2c0f(0x136)]({'commentThreadId':_0x3a2bca,'context':_0x28af0e,'attributes':_0x2801f6,'unlinkedAt':_0x3295fb})[_0x2c2c0f(0x110)](f)[_0x2c2c0f(0x110)](A),'resolveCommentThread':async({channelId:_0x51f4bc,threadId:_0x46ab9e})=>{const _0x34b973=_0x2c2c0f,_0x5c8a4c=await this[_0x34b973(0x104)](_0x51f4bc)[_0x34b973(0x146)](_0x46ab9e)[_0x34b973(0x110)](f)[_0x34b973(0x110)](A);return{'threadId':_0x5c8a4c[_0x34b973(0x124)],'resolvedAt':_0x5c8a4c[_0x34b973(0x118)],'resolvedBy':_0x5c8a4c[_0x34b973(0xf9)]};},'reopenCommentThread':async({channelId:_0x551756,threadId:_0x3644b2})=>this[_0x2c2c0f(0x104)](_0x551756)[_0x2c2c0f(0xf1)](_0x3644b2)[_0x2c2c0f(0x110)](f)[_0x2c2c0f(0x110)](A),'removeCommentThread':({channelId:_0x5f3c30,threadId:_0x2f89fc})=>this[_0x2c2c0f(0x104)](_0x5f3c30)[_0x2c2c0f(0xe6)](_0x2f89fc)[_0x2c2c0f(0x110)](f)[_0x2c2c0f(0x110)](A),'addComment':({channelId:_0x178f2e,threadId:_0x215297,commentId:_0x3e5375,content:_0x15c435,attributes:_0x96096a})=>this[_0x2c2c0f(0x104)](_0x178f2e)[_0x2c2c0f(0x111)](_0x215297,_0x3e5375,_0x15c435,_0x96096a)[_0x2c2c0f(0x110)](A),'updateComment':({channelId:_0x1a0ff2,threadId:_0x5117e5,commentId:_0x174a19,content:_0x1e140b,attributes:_0x2120de})=>this[_0x2c2c0f(0x104)](_0x1a0ff2)[_0x2c2c0f(0xfb)](_0x5117e5,_0x174a19,_0x1e140b,_0x2120de)[_0x2c2c0f(0x110)](f)[_0x2c2c0f(0x110)](A),'removeComment':({channelId:_0x322b64,threadId:_0x13be8d,commentId:_0x5ab8c9})=>this[_0x2c2c0f(0x104)](_0x322b64)[_0x2c2c0f(0xf8)](_0x13be8d,_0x5ab8c9)[_0x2c2c0f(0x110)](f)[_0x2c2c0f(0x110)](A)},_0x56e77a instanceof _0x1d0845){const _0xfba564=_0x56e77a[_0x2c2c0f(0x12a)][_0x2c2c0f(0x117)](_0x2c2c0f(0x130)),_0x45f8fc=_0x56e77a[_0x2c2c0f(0x139)][_0x2c2c0f(0x117)](_0x1dce99);await this[_0x2c2c0f(0xe9)](_0xfba564);const _0x8cfb9e=await this[_0x2c2c0f(0xe2)][_0x2c2c0f(0x117)](_0xfba564)[_0x2c2c0f(0xf4)]();this[_0x2c2c0f(0x141)](_0x45f8fc,_0x2c2c0f(0x10f)+_0xfba564,(_0x251eaa,{session:_0xc8ffdb})=>{const _0x3506e6=_0x2c2c0f;_0xc8ffdb['id']===_0x45f8fc[_0x3506e6(0x138)]&&(_0x251eaa[_0x3506e6(0xf6)](),this[_0x3506e6(0xfa)][_0x3506e6(0x139)][_0x3506e6(0x117)](_0x3506e6(0x115))[_0x3506e6(0x121)](_0xc8ffdb[_0x3506e6(0x108)],_0xfba564));}),_0x45f8fc[_0x2c2c0f(0x12e)](_0xfba564,_0x8cfb9e);}}async[_0xfb1eb4(0xe9)](_0x346e04){const _0x30f00d=_0xfb1eb4;if(this[_0x30f00d(0xe2)][_0x30f00d(0x13f)](_0x346e04))throw new _0x39b0ab(_0x30f00d(0xf7),null,{'channelId':_0x346e04});const _0x268ad4=this[_0x30f00d(0xfa)][_0x30f00d(0x139)][_0x30f00d(0x117)](_0x30f00d(0x133)),_0x47d2a9=new CloudServicesCommentsAdapter[(_0x30f00d(0x11e))](_0x346e04);this[_0x30f00d(0xe2)][_0x30f00d(0xee)](_0x346e04,_0x47d2a9),this[_0x30f00d(0x141)](_0x47d2a9,_0x30f00d(0x10c),(_0xe2f02b,_0x5d4d67)=>{const _0x1c06e0=_0x30f00d,{commentThreadId:_0x3435eb,documentId:_0x16fb92,context:_0x553e30,attributes:_0x2ea1ab,resolvedAt:_0x2774a1,resolvedBy:_0x5cbdf1,comments:_0xb9a591}=_0x5d4d67;_0x268ad4[_0x1c06e0(0x13c)](_0x3435eb)||_0x268ad4[_0x1c06e0(0x131)]({'threadId':_0x3435eb,'channelId':_0x16fb92,'comments':_0xb9a591?_0xb9a591[_0x1c06e0(0x10b)](p):[],'context':_0x553e30,'attributes':_0x2ea1ab,'resolvedAt':_0x2774a1,'resolvedBy':_0x5cbdf1,'isFromAdapter':!0x0});}),this[_0x30f00d(0x141)](_0x47d2a9,_0x30f00d(0x112),(_0x3a58a3,{commentThreadId:_0x4ddd5a,documentId:_0x4f2e44,context:_0x43f87d,unlinkedAt:_0x1960e0,attributes:_0x4ca9a9})=>{const _0x4df08d=_0x30f00d;_0x268ad4[_0x4df08d(0x13c)](_0x4ddd5a)&&_0x268ad4[_0x4df08d(0x136)]({'threadId':_0x4ddd5a,'channelId':_0x4f2e44,'context':_0x43f87d,'unlinkedAt':_0x1960e0,'attributes':_0x4ca9a9,'isFromAdapter':!0x0});}),this[_0x30f00d(0x141)](_0x47d2a9,_0x30f00d(0x120),(_0x2e5460,{commentThreadId:_0x3d9a21,resolvedBy:_0xcdbb23,resolvedAt:_0x31cc0b})=>{const _0x531f36=_0x30f00d,_0x273983=_0x268ad4[_0x531f36(0x13c)](_0x3d9a21);_0x273983&&_0x273983[_0x531f36(0xfe)]({'resolvedBy':_0xcdbb23,'resolvedAt':_0x31cc0b,'isFromAdapter':!0x0});}),this[_0x30f00d(0x141)](_0x47d2a9,_0x30f00d(0xef),(_0x2f6da0,{commentThreadId:_0x5f3e99})=>{const _0x19f267=_0x30f00d,_0x1de117=_0x268ad4[_0x19f267(0x13c)](_0x5f3e99);_0x1de117&&_0x1de117[_0x19f267(0x10a)]({'isFromAdapter':!0x0});}),this[_0x30f00d(0x141)](_0x47d2a9,_0x30f00d(0x143),(_0x1b50e3,{commentThreadId:_0x3929d8})=>{const _0x165a87=_0x30f00d,_0x59ab5d=_0x268ad4[_0x165a87(0x13c)](_0x3929d8);_0x59ab5d&&_0x59ab5d[_0x165a87(0x11a)]({'isFromAdapter':!0x0});}),this[_0x30f00d(0x141)](_0x47d2a9,_0x30f00d(0x126),(_0x2fb780,_0x95035a)=>{const _0x54a25d=_0x30f00d,_0x52953f=_0x95035a[_0x54a25d(0x124)],_0x31b7f3=_0x268ad4[_0x54a25d(0x13c)](_0x52953f);_0x31b7f3&&_0x31b7f3[_0x54a25d(0x111)]({...p(_0x95035a),'isFromAdapter':!0x0});}),this[_0x30f00d(0x141)](_0x47d2a9,_0x30f00d(0x127),(_0x357410,{commentThreadId:_0x1425bb,commentId:_0x58cbbe,content:_0x44acbd,attributes:_0x311996})=>{const _0x1bf5cb=_0x30f00d,_0x3d9897=_0x268ad4[_0x1bf5cb(0x13c)](_0x1425bb);if(_0x3d9897){const _0x296aeb=_0x3d9897[_0x1bf5cb(0xe8)](_0x58cbbe);_0x296aeb&&_0x296aeb[_0x1bf5cb(0x103)]({'content':_0x44acbd,'attributes':_0x311996,'isFromAdapter':!0x0});}}),this[_0x30f00d(0x141)](_0x47d2a9,_0x30f00d(0x11d),(_0x519088,{commentThreadId:_0x57c422,commentId:_0x1384a4})=>{const _0x27d3c2=_0x30f00d,_0x2454cc=_0x268ad4[_0x27d3c2(0x13c)](_0x57c422);if(_0x2454cc){const _0x33bc61=_0x2454cc[_0x27d3c2(0xe8)](_0x1384a4);_0x33bc61&&_0x33bc61[_0x27d3c2(0x11a)]({'isFromAdapter':!0x0});}}),await this[_0x30f00d(0x11b)](_0x346e04);}[_0xfb1eb4(0x12c)](){const _0x383a26=_0xfb1eb4;if(this[_0x383a26(0xfa)]instanceof _0x1d0845){const _0x34b003=this[_0x383a26(0xfa)][_0x383a26(0x12a)][_0x383a26(0x117)](_0x383a26(0x130));this[_0x383a26(0xff)](_0x34b003);}}[_0xfb1eb4(0xff)](_0x31f52b){const _0x224f0b=_0xfb1eb4;if(!this[_0x224f0b(0xe2)][_0x224f0b(0x13f)](_0x31f52b))throw new _0x39b0ab(_0x224f0b(0x128),null,{'channelId':_0x31f52b});this[_0x224f0b(0x104)](_0x31f52b)[_0x224f0b(0x12b)](),this[_0x224f0b(0xe2)][_0x224f0b(0x102)](_0x31f52b);}async[_0xfb1eb4(0x10d)](){const _0x21bdc6=_0xfb1eb4;for(const _0x2eb9e1 of this[_0x21bdc6(0xe2)][_0x21bdc6(0x140)]())await this[_0x21bdc6(0x11b)](_0x2eb9e1);if(this[_0x21bdc6(0xfa)]instanceof _0x1d0845){const _0x52d477=this[_0x21bdc6(0xfa)][_0x21bdc6(0x12a)][_0x21bdc6(0x117)](_0x21bdc6(0x130)),_0x35ce5d=this[_0x21bdc6(0xfa)][_0x21bdc6(0x139)][_0x21bdc6(0x117)](_0x1dce99);_0x35ce5d[_0x21bdc6(0xf5)](_0x52d477);const _0x4b6e66=await this[_0x21bdc6(0xe2)][_0x21bdc6(0x117)](_0x52d477)[_0x21bdc6(0xf4)]();_0x35ce5d[_0x21bdc6(0x12e)](_0x52d477,_0x4b6e66);}}async[_0xfb1eb4(0x11b)](_0x480bf6){const _0x41dd6f=_0xfb1eb4,{connection:_0x354f02}=this[_0x41dd6f(0xfa)][_0x41dd6f(0x139)][_0x41dd6f(0x117)](_0x56d380),_0x2e49e9=this[_0x41dd6f(0xfa)][_0x41dd6f(0x139)][_0x41dd6f(0x117)](_0x41dd6f(0x133)),_0x2bd999=this[_0x41dd6f(0xe2)][_0x41dd6f(0x117)](_0x480bf6),_0x4bd9b6=await _0x2bd999[_0x41dd6f(0x113)](_0x354f02);await this[_0x41dd6f(0x134)](_0x4bd9b6);const _0x237459=new Set(Array[_0x41dd6f(0x13b)](_0x2e49e9[_0x41dd6f(0xe1)]({'channelId':_0x480bf6}),_0x10146b=>_0x10146b['id']));for(const _0x1835b4 of _0x4bd9b6)_0x1835b4[_0x41dd6f(0xf3)]||_0x237459[_0x41dd6f(0x102)](_0x1835b4[_0x41dd6f(0x124)]);for(const _0x2c3542 of _0x237459)_0x2e49e9[_0x41dd6f(0x13c)](_0x2c3542)[_0x41dd6f(0x11a)]({'isFromAdapter':!0x0});for(const _0x17d923 of _0x4bd9b6){let _0x2a48bc=_0x2e49e9[_0x41dd6f(0x13c)](_0x17d923[_0x41dd6f(0x124)]);const {commentThreadId:_0x5cb4c7,context:_0x2a352a,attributes:_0xc256c8,resolvedBy:_0x2f7d97,resolvedAt:_0x5463f6,unlinkedAt:_0x2b7082,deletedAt:_0x3f5bb8}=_0x17d923;if(_0x3f5bb8)continue;_0x2a48bc||(_0x2a48bc=_0x2e49e9[_0x41dd6f(0x131)]({'channelId':_0x480bf6,'threadId':_0x5cb4c7,'context':_0x2a352a,'attributes':_0xc256c8||{},'resolvedBy':_0x2f7d97,'resolvedAt':_0x5463f6,'unlinkedAt':_0x2b7082,'isFromAdapter':!0x0}));const _0x16e113=new Set(Array[_0x41dd6f(0x13b)](_0x2a48bc[_0x41dd6f(0x114)],_0x4cd842=>_0x4cd842['id']));for(const _0x3a8050 of _0x17d923[_0x41dd6f(0x114)])_0x16e113[_0x41dd6f(0x102)](_0x3a8050[_0x41dd6f(0x13d)]);for(const _0x4b1124 of _0x16e113)_0x2a48bc[_0x41dd6f(0xe8)](_0x4b1124)[_0x41dd6f(0x11a)]({'isFromAdapter':!0x0});for(const _0x420a6d of _0x17d923[_0x41dd6f(0x114)]){const _0x497348=_0x2a48bc[_0x41dd6f(0xe8)](_0x420a6d[_0x41dd6f(0x13d)]);_0x497348?_0x497348[_0x41dd6f(0x107)]!==_0x420a6d[_0x41dd6f(0x107)]&&_0x497348[_0x41dd6f(0x103)]({'content':_0x420a6d[_0x41dd6f(0x107)],'isFromAdapter':!0x0}):_0x2a48bc[_0x41dd6f(0x111)](Object[_0x41dd6f(0x125)](p(_0x420a6d),{'isFromAdapter':!0x0}));}}}[_0xfb1eb4(0x104)](_0x272b09){const _0x4a45c5=_0xfb1eb4;if(!this[_0x4a45c5(0xe2)][_0x4a45c5(0x13f)](_0x272b09))throw new _0x39b0ab(_0x4a45c5(0x105),null,{'channelId':_0x272b09});return this[_0x4a45c5(0xe2)][_0x4a45c5(0x117)](_0x272b09);}async[_0xfb1eb4(0x134)](_0x10b9d8){const _0xc3eef2=_0xfb1eb4,_0x1f4ac4=this[_0xc3eef2(0xfa)][_0xc3eef2(0x139)][_0xc3eef2(0x117)](_0x43e508),{connection:_0x31f549}=this[_0xc3eef2(0xfa)][_0xc3eef2(0x139)][_0xc3eef2(0x117)](_0x56d380),_0x49a82b=new Set();for(const {resolvedBy:_0xd15914,comments:_0x52dcc8}of _0x10b9d8){_0xd15914&&!_0x1f4ac4[_0xc3eef2(0x145)](_0xd15914)&&_0x49a82b[_0xc3eef2(0x13a)](_0xd15914);for(const {userId:_0x5383c0}of _0x52dcc8)_0x1f4ac4[_0xc3eef2(0x145)](_0x5383c0)||_0x49a82b[_0xc3eef2(0x13a)](_0x5383c0);}if(0x0===_0x49a82b[_0xc3eef2(0x119)])return;const _0x572fb5=await _0x236fe0[_0xc3eef2(0x137)](_0x31f549,Array[_0xc3eef2(0x13b)](_0x49a82b));for(const _0x15fae9 of _0x572fb5)_0x1f4ac4[_0xc3eef2(0x145)](_0x15fae9['id'])||_0x1f4ac4[_0xc3eef2(0x122)](_0x15fae9);}}async function f(_0x267d1b){const _0x5633b9=_0xfb1eb4;if(_0x5633b9(0x116)!==_0x267d1b[_0x5633b9(0xea)])throw _0x267d1b;}function A(_0x8a13bd){const _0x2790a5=_0xfb1eb4;if((_0x5479ab=_0x8a13bd)[_0x2790a5(0xe3)][_0x2790a5(0x132)](_0x2790a5(0x10e))||_0x5479ab[_0x2790a5(0xe3)][_0x2790a5(0x132)](_0x2790a5(0x11c))||_0x5479ab[_0x2790a5(0xe3)][_0x2790a5(0x132)](_0x2790a5(0xf2)))return new Promise(()=>{});var _0x5479ab;throw _0x8a13bd;}function p(_0x3c4362){const _0x2cfc5c=_0xfb1eb4;return{'threadId':_0x3c4362[_0x2cfc5c(0x124)],'commentId':_0x3c4362[_0x2cfc5c(0x13d)],'content':_0x3c4362[_0x2cfc5c(0x107)],'createdAt':_0x3c4362[_0x2cfc5c(0xed)],'authorId':_0x3c4362[_0x2cfc5c(0x11f)],'attributes':_0x3c4362[_0x2cfc5c(0xe7)]||{}};}function _0x1899(){const _0x4b4ff1=['CloudServicesCommentsAdapter','collaboration.channelId','addCommentThread','startsWith','CommentsRepository','_fetchMissingUsersForThreads','5272071ZynmIw','updateCommentThread','getMany','mySessionId','plugins','add','from','getCommentThread','commentId','pluginName','has','keys','listenTo','6344720IGnSfu','commentThreadRemoved','2041532xodIrB','getUser','resolveCommentThread','getCommentThreads','_services','message','3uOtEzg','isOfficialPlugin','removeCommentThread','attributes','getComment','_setUpService','code','153ntCSpp','2507622AzrPQl','createdAt','set','commentThreadReopened','authorId','reopenCommentThread','cloud-services-internal-error:\x20Request\x20timeout.','deletedAt','getConnectedSessions','unregister','off','cloudservicescommentsadapter-connect-already-connected','removeComment','resolvedBy','context','updateComment','937700mTGWAi','1jjcAFE','resolve','_terminateService','4216350tKSrfz','adapter','delete','update','_getService','cloudservicescommentsadapter-service-not-exist','init','content','permissions','isPremiumPlugin','reopen','map','commentThreadAdded','reconnect','cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.','sessionAdd:','catch','addComment','commentThreadUpdated','connect','comments','Permissions','404','get','resolvedAt','size','remove','_connectService','cloud-services-internal-error:\x20Not\x20connected.','commentRemoved','CommentsService','userId','commentThreadResolved','setPermissions','addUser','addToReconnectionStack','commentThreadId','assign','commentAdded','commentUpdated','cloudservicescommentsadapter-disconnect-not-exist','requires','config','disconnect','destroy','3126608fUUmEe','register'];_0x1899=function(){return _0x4b4ff1;};return _0x1899();}
|
|
23
|
+
const _0x217925=_0x23ae;(function(_0x6ed756,_0x25e45b){const _0x24bf61=_0x23ae,_0x1ec106=_0x6ed756();while(!![]){try{const _0x39f1c9=-parseInt(_0x24bf61(0x1ee))/0x1+-parseInt(_0x24bf61(0x237))/0x2*(parseInt(_0x24bf61(0x209))/0x3)+parseInt(_0x24bf61(0x235))/0x4+parseInt(_0x24bf61(0x1f9))/0x5*(parseInt(_0x24bf61(0x20b))/0x6)+-parseInt(_0x24bf61(0x1dc))/0x7*(parseInt(_0x24bf61(0x23b))/0x8)+parseInt(_0x24bf61(0x22f))/0x9+parseInt(_0x24bf61(0x216))/0xa;if(_0x39f1c9===_0x25e45b)break;else _0x1ec106['push'](_0x1ec106['shift']());}catch(_0x45b744){_0x1ec106['push'](_0x1ec106['shift']());}}}(_0x3047,0xe080e));import{Context as _0x3039f5,ContextPlugin as _0x55b824}from'ckeditor5/src/core.js';import{CKEditorError as _0x3b20df}from'ckeditor5/src/utils.js';function _0x23ae(_0x4e5e08,_0x514f8e){const _0x3047d2=_0x3047();return _0x23ae=function(_0x23ae72,_0x4ea0e2){_0x23ae72=_0x23ae72-0x1d6;let _0x4e3f0e=_0x3047d2[_0x23ae72];return _0x4e3f0e;},_0x23ae(_0x4e5e08,_0x514f8e);}import{Users as _0x34c853}from'ckeditor5-collaboration/src/collaboration-core.js';import{CommentsService as _0x32a65c,User as _0x1c544f}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x209f47}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x46038d}from'../realtimecollaborativeediting/sessions.js';export class CloudServicesCommentsAdapter extends _0x55b824{static [_0x217925(0x227)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x32a65c)());[_0x217925(0x205)];static get[_0x217925(0x222)](){const _0x187c10=_0x217925;return[_0x209f47,_0x187c10(0x223),_0x46038d,_0x34c853];}static get[_0x217925(0x210)](){const _0x10c562=_0x217925;return _0x10c562(0x226);}static get[_0x217925(0x1f1)](){return!0x0;}static get[_0x217925(0x1f3)](){return!0x0;}constructor(_0x5c578b){const _0x10b2ff=_0x217925;super(_0x5c578b),this[_0x10b2ff(0x205)]=new Map();}async[_0x217925(0x20a)](){const _0x505a4f=_0x217925,_0xc00547=this[_0x505a4f(0x203)],_0x36f4e1=_0xc00547[_0x505a4f(0x1f7)][_0x505a4f(0x20c)](_0x505a4f(0x223));if(_0xc00547[_0x505a4f(0x1f7)][_0x505a4f(0x20c)](_0x209f47)[_0x505a4f(0x1d6)](this),_0x36f4e1[_0x505a4f(0x213)]={'addCommentThread':async({channelId:_0x1230d8,threadId:_0x531fcd,comments:_0xc08aab,resolvedAt:_0x20b749,resolvedBy:_0x4c3edd,context:_0x5c8184,attributes:_0x2c7640})=>{const _0x56d801=_0x505a4f,_0x64a557=await this[_0x56d801(0x21b)](_0x1230d8)[_0x56d801(0x23a)]({'commentThreadId':_0x531fcd,'comments':_0xc08aab[_0x56d801(0x221)](_0x27a7bf=>function(_0x1eb3e8,_0x101ebf,_0x573c3d){const _0x1c0ee0=_0x56d801;return{'commentThreadId':_0x573c3d,'commentId':_0x1eb3e8[_0x1c0ee0(0x1e6)],'userId':_0x1eb3e8[_0x1c0ee0(0x1f2)],'content':_0x1eb3e8[_0x1c0ee0(0x21d)],'documentId':_0x101ebf,'createdAt':_0x1eb3e8[_0x1c0ee0(0x1ed)],'attributes':_0x1eb3e8[_0x1c0ee0(0x204)]||{}};}(_0x27a7bf,_0x1230d8,_0x531fcd)),'resolvedAt':_0x20b749,'resolvedBy':_0x4c3edd,'context':_0x5c8184,'attributes':_0x2c7640})[_0x56d801(0x229)](k);return{'threadId':_0x64a557[_0x56d801(0x233)],'comments':_0x64a557[_0x56d801(0x20d)]};},'getCommentThread':async({channelId:_0x4bf6a2,threadId:_0x39011b})=>{const _0x1b97d2=_0x505a4f,_0x334133=await this[_0x1b97d2(0x21b)](_0x4bf6a2)[_0x1b97d2(0x217)](_0x39011b)[_0x1b97d2(0x229)](F)[_0x1b97d2(0x229)](k);return _0x334133?_0x334133[_0x1b97d2(0x1ea)]?null:(await this[_0x1b97d2(0x1e8)]([_0x334133]),{'threadId':_0x334133[_0x1b97d2(0x233)],'comments':_0x334133[_0x1b97d2(0x20d)][_0x1b97d2(0x221)](S),'context':_0x334133[_0x1b97d2(0x203)],'resolvedAt':_0x334133[_0x1b97d2(0x206)],'resolvedBy':_0x334133[_0x1b97d2(0x1e4)],'attributes':_0x334133[_0x1b97d2(0x204)]||{}}):null;},'updateCommentThread':async({channelId:_0x1b408a,threadId:_0x557786,context:_0x226584,unlinkedAt:_0x175da1,attributes:_0x4308ec})=>this[_0x505a4f(0x21b)](_0x1b408a)[_0x505a4f(0x1dd)]({'commentThreadId':_0x557786,'context':_0x226584,'attributes':_0x4308ec,'unlinkedAt':_0x175da1})[_0x505a4f(0x229)](F)[_0x505a4f(0x229)](k),'resolveCommentThread':async({channelId:_0x171677,threadId:_0x309758})=>{const _0x29b971=_0x505a4f,_0x5f09e4=await this[_0x29b971(0x21b)](_0x171677)[_0x29b971(0x214)](_0x309758)[_0x29b971(0x229)](F)[_0x29b971(0x229)](k);return{'threadId':_0x5f09e4[_0x29b971(0x233)],'resolvedAt':_0x5f09e4[_0x29b971(0x206)],'resolvedBy':_0x5f09e4[_0x29b971(0x1e4)]};},'reopenCommentThread':async({channelId:_0x28ec34,threadId:_0x1fd1a3})=>this[_0x505a4f(0x21b)](_0x28ec34)[_0x505a4f(0x1d9)](_0x1fd1a3)[_0x505a4f(0x229)](F)[_0x505a4f(0x229)](k),'removeCommentThread':({channelId:_0x54194e,threadId:_0x51f776})=>this[_0x505a4f(0x21b)](_0x54194e)[_0x505a4f(0x231)](_0x51f776)[_0x505a4f(0x229)](F)[_0x505a4f(0x229)](k),'addComment':({channelId:_0x39f92f,threadId:_0x2d528d,commentId:_0x32b057,content:_0x266b35,attributes:_0x2703e7})=>this[_0x505a4f(0x21b)](_0x39f92f)[_0x505a4f(0x1d8)](_0x2d528d,_0x32b057,_0x266b35,_0x2703e7)[_0x505a4f(0x229)](k),'updateComment':({channelId:_0x3ca146,threadId:_0x4ae5a0,commentId:_0x12bb2c,content:_0x14ad09,attributes:_0xd07c45})=>this[_0x505a4f(0x21b)](_0x3ca146)[_0x505a4f(0x1f0)](_0x4ae5a0,_0x12bb2c,_0x14ad09,_0xd07c45)[_0x505a4f(0x229)](F)[_0x505a4f(0x229)](k),'removeComment':({channelId:_0x532c0d,threadId:_0x5a3eec,commentId:_0x2a23c6})=>this[_0x505a4f(0x21b)](_0x532c0d)[_0x505a4f(0x1ef)](_0x5a3eec,_0x2a23c6)[_0x505a4f(0x229)](F)[_0x505a4f(0x229)](k)},_0xc00547 instanceof _0x3039f5){const _0x46f6ed=_0xc00547[_0x505a4f(0x22c)][_0x505a4f(0x20c)](_0x505a4f(0x22e)),_0x230462=_0xc00547[_0x505a4f(0x1f7)][_0x505a4f(0x20c)](_0x46038d);await this[_0x505a4f(0x1e2)](_0x46f6ed);const _0x406ced=await this[_0x505a4f(0x205)][_0x505a4f(0x20c)](_0x46f6ed)[_0x505a4f(0x1da)]();this[_0x505a4f(0x1e7)](_0x230462,_0x505a4f(0x1de)+_0x46f6ed,(_0x13c663,{session:_0x41f678})=>{const _0x5e5f9e=_0x505a4f;_0x41f678['id']===_0x230462[_0x5e5f9e(0x1fa)]&&(_0x13c663[_0x5e5f9e(0x1fb)](),this[_0x5e5f9e(0x203)][_0x5e5f9e(0x1f7)][_0x5e5f9e(0x20c)](_0x5e5f9e(0x1d7))[_0x5e5f9e(0x1e5)](_0x41f678[_0x5e5f9e(0x201)],_0x46f6ed));}),_0x230462[_0x505a4f(0x1fc)](_0x46f6ed,_0x406ced);}}async[_0x217925(0x1e2)](_0x1c9bf1){const _0x9fcf6=_0x217925;if(this[_0x9fcf6(0x205)][_0x9fcf6(0x224)](_0x1c9bf1))throw new _0x3b20df(_0x9fcf6(0x219),null,{'channelId':_0x1c9bf1});const _0x4c3b05=this[_0x9fcf6(0x203)][_0x9fcf6(0x1f7)][_0x9fcf6(0x20c)](_0x9fcf6(0x223)),_0x16b3c4=new CloudServicesCommentsAdapter[(_0x9fcf6(0x227))](_0x1c9bf1);this[_0x9fcf6(0x205)][_0x9fcf6(0x220)](_0x1c9bf1,_0x16b3c4),this[_0x9fcf6(0x1e7)](_0x16b3c4,_0x9fcf6(0x20e),(_0x1663aa,_0x47e8d3)=>{const _0x431df2=_0x9fcf6,{commentThreadId:_0x5702c3,documentId:_0x45e1da,context:_0x5cbdec,attributes:_0x5e9f02,resolvedAt:_0x85942a,resolvedBy:_0x52a2d8,comments:_0x3d7e25}=_0x47e8d3;_0x4c3b05[_0x431df2(0x217)](_0x5702c3)||_0x4c3b05[_0x431df2(0x23a)]({'threadId':_0x5702c3,'channelId':_0x45e1da,'comments':_0x3d7e25?_0x3d7e25[_0x431df2(0x221)](S):[],'context':_0x5cbdec,'attributes':_0x5e9f02,'resolvedAt':_0x85942a,'resolvedBy':_0x52a2d8,'isFromAdapter':!0x0});}),this[_0x9fcf6(0x1e7)](_0x16b3c4,_0x9fcf6(0x225),(_0x33d824,{commentThreadId:_0x2bfd08,documentId:_0x1aedc8,context:_0x124dc9,unlinkedAt:_0x4943a6,attributes:_0x5abe27})=>{const _0x43b91b=_0x9fcf6;_0x4c3b05[_0x43b91b(0x217)](_0x2bfd08)&&_0x4c3b05[_0x43b91b(0x1dd)]({'threadId':_0x2bfd08,'channelId':_0x1aedc8,'context':_0x124dc9,'unlinkedAt':_0x4943a6,'attributes':_0x5abe27,'isFromAdapter':!0x0});}),this[_0x9fcf6(0x1e7)](_0x16b3c4,_0x9fcf6(0x1f8),(_0x4c82a2,{commentThreadId:_0x190497,resolvedBy:_0x35e33d,resolvedAt:_0x2121f1})=>{const _0x1e492b=_0x9fcf6,_0x2c3362=_0x4c3b05[_0x1e492b(0x217)](_0x190497);_0x2c3362&&_0x2c3362[_0x1e492b(0x1f6)]({'resolvedBy':_0x35e33d,'resolvedAt':_0x2121f1,'isFromAdapter':!0x0});}),this[_0x9fcf6(0x1e7)](_0x16b3c4,_0x9fcf6(0x1db),(_0x4bd609,{commentThreadId:_0x4b4eb5})=>{const _0x5f1df1=_0x9fcf6,_0x43837c=_0x4c3b05[_0x5f1df1(0x217)](_0x4b4eb5);_0x43837c&&_0x43837c[_0x5f1df1(0x211)]({'isFromAdapter':!0x0});}),this[_0x9fcf6(0x1e7)](_0x16b3c4,_0x9fcf6(0x21e),(_0x2a0891,{commentThreadId:_0xb4ce79})=>{const _0x5b2c4a=_0x9fcf6,_0x4d99f4=_0x4c3b05[_0x5b2c4a(0x217)](_0xb4ce79);_0x4d99f4&&_0x4d99f4[_0x5b2c4a(0x1f4)]({'isFromAdapter':!0x0});}),this[_0x9fcf6(0x1e7)](_0x16b3c4,_0x9fcf6(0x212),(_0x4fa8a5,_0x3b0450)=>{const _0x57db7d=_0x9fcf6,_0x5ddd9d=_0x3b0450[_0x57db7d(0x233)],_0x8c1d0c=_0x4c3b05[_0x57db7d(0x217)](_0x5ddd9d);_0x8c1d0c&&_0x8c1d0c[_0x57db7d(0x1d8)]({...S(_0x3b0450),'isFromAdapter':!0x0});}),this[_0x9fcf6(0x1e7)](_0x16b3c4,_0x9fcf6(0x228),(_0x1e12e2,{commentThreadId:_0x17837d,commentId:_0x2741c3,content:_0xf0a421,attributes:_0x47dc56})=>{const _0x587619=_0x9fcf6,_0x42c093=_0x4c3b05[_0x587619(0x217)](_0x17837d);if(_0x42c093){const _0x50b7c0=_0x42c093[_0x587619(0x238)](_0x2741c3);_0x50b7c0&&_0x50b7c0[_0x587619(0x22d)]({'content':_0xf0a421,'attributes':_0x47dc56,'isFromAdapter':!0x0});}}),this[_0x9fcf6(0x1e7)](_0x16b3c4,_0x9fcf6(0x208),(_0x56a1f1,{commentThreadId:_0x4c50d6,commentId:_0x2aa75c})=>{const _0xd0a405=_0x9fcf6,_0x182e25=_0x4c3b05[_0xd0a405(0x217)](_0x4c50d6);if(_0x182e25){const _0x2d976b=_0x182e25[_0xd0a405(0x238)](_0x2aa75c);_0x2d976b&&_0x2d976b[_0xd0a405(0x1f4)]({'isFromAdapter':!0x0});}}),await this[_0x9fcf6(0x232)](_0x1c9bf1);}[_0x217925(0x21a)](){const _0x465df7=_0x217925;if(this[_0x465df7(0x203)]instanceof _0x3039f5){const _0x5321f9=this[_0x465df7(0x203)][_0x465df7(0x22c)][_0x465df7(0x20c)](_0x465df7(0x22e));this[_0x465df7(0x21f)](_0x5321f9);}}[_0x217925(0x21f)](_0xa379d){const _0x2afa3f=_0x217925;if(!this[_0x2afa3f(0x205)][_0x2afa3f(0x224)](_0xa379d))throw new _0x3b20df(_0x2afa3f(0x22a),null,{'channelId':_0xa379d});this[_0x2afa3f(0x21b)](_0xa379d)[_0x2afa3f(0x1fd)](),this[_0x2afa3f(0x205)][_0x2afa3f(0x22b)](_0xa379d);}async[_0x217925(0x234)](){const _0x2762b5=_0x217925;for(const _0x294930 of this[_0x2762b5(0x205)][_0x2762b5(0x1fe)]())await this[_0x2762b5(0x232)](_0x294930);if(this[_0x2762b5(0x203)]instanceof _0x3039f5){const _0x2b88bb=this[_0x2762b5(0x203)][_0x2762b5(0x22c)][_0x2762b5(0x20c)](_0x2762b5(0x22e)),_0x412d4d=this[_0x2762b5(0x203)][_0x2762b5(0x1f7)][_0x2762b5(0x20c)](_0x46038d);_0x412d4d[_0x2762b5(0x21c)](_0x2b88bb);const _0x1b08d2=await this[_0x2762b5(0x205)][_0x2762b5(0x20c)](_0x2b88bb)[_0x2762b5(0x1da)]();_0x412d4d[_0x2762b5(0x1fc)](_0x2b88bb,_0x1b08d2);}}async[_0x217925(0x232)](_0x2bb1ed){const _0x53057f=_0x217925,{connection:_0xeba481}=this[_0x53057f(0x203)][_0x53057f(0x1f7)][_0x53057f(0x20c)](_0x209f47),_0x1da5f1=this[_0x53057f(0x203)][_0x53057f(0x1f7)][_0x53057f(0x20c)](_0x53057f(0x223)),_0x14874f=this[_0x53057f(0x205)][_0x53057f(0x20c)](_0x2bb1ed),_0x17244c=await _0x14874f[_0x53057f(0x207)](_0xeba481);await this[_0x53057f(0x1e8)](_0x17244c);const _0x3182d5=new Set(Array[_0x53057f(0x215)](_0x1da5f1[_0x53057f(0x1e0)]({'channelId':_0x2bb1ed}),_0x482cf5=>_0x482cf5['id']));for(const _0x984fc0 of _0x17244c)_0x984fc0[_0x53057f(0x1ea)]||_0x3182d5[_0x53057f(0x22b)](_0x984fc0[_0x53057f(0x233)]);for(const _0x1d796a of _0x3182d5)_0x1da5f1[_0x53057f(0x217)](_0x1d796a)[_0x53057f(0x1f4)]({'isFromAdapter':!0x0});for(const _0x24bf89 of _0x17244c){let _0x29d4cd=_0x1da5f1[_0x53057f(0x217)](_0x24bf89[_0x53057f(0x233)]);const {commentThreadId:_0x5708ab,context:_0x2462e0,attributes:_0x10b9aa,resolvedBy:_0x2972ca,resolvedAt:_0x3de5f4,unlinkedAt:_0x32c587,deletedAt:_0x2a2231}=_0x24bf89;if(_0x2a2231)continue;_0x29d4cd||(_0x29d4cd=_0x1da5f1[_0x53057f(0x23a)]({'channelId':_0x2bb1ed,'threadId':_0x5708ab,'context':_0x2462e0,'attributes':_0x10b9aa||{},'resolvedBy':_0x2972ca,'resolvedAt':_0x3de5f4,'unlinkedAt':_0x32c587,'isFromAdapter':!0x0}));const _0x338fe9=new Set(Array[_0x53057f(0x215)](_0x29d4cd[_0x53057f(0x20d)],_0x5d9106=>_0x5d9106['id']));for(const _0x1a15d5 of _0x24bf89[_0x53057f(0x20d)])_0x338fe9[_0x53057f(0x22b)](_0x1a15d5[_0x53057f(0x1e6)]);for(const _0x2dc763 of _0x338fe9)_0x29d4cd[_0x53057f(0x238)](_0x2dc763)[_0x53057f(0x1f4)]({'isFromAdapter':!0x0});for(const _0x4becfe of _0x24bf89[_0x53057f(0x20d)]){const _0x2cde6f=_0x29d4cd[_0x53057f(0x238)](_0x4becfe[_0x53057f(0x1e6)]);_0x2cde6f?_0x2cde6f[_0x53057f(0x21d)]!==_0x4becfe[_0x53057f(0x21d)]&&_0x2cde6f[_0x53057f(0x22d)]({'content':_0x4becfe[_0x53057f(0x21d)],'isFromAdapter':!0x0}):_0x29d4cd[_0x53057f(0x1d8)](Object[_0x53057f(0x230)](S(_0x4becfe),{'isFromAdapter':!0x0}));}}}[_0x217925(0x21b)](_0x71d0c0){const _0x2d8fcb=_0x217925;if(!this[_0x2d8fcb(0x205)][_0x2d8fcb(0x224)](_0x71d0c0))throw new _0x3b20df(_0x2d8fcb(0x1eb),null,{'channelId':_0x71d0c0});return this[_0x2d8fcb(0x205)][_0x2d8fcb(0x20c)](_0x71d0c0);}async[_0x217925(0x1e8)](_0x1903c3){const _0x32794f=_0x217925,_0x193882=this[_0x32794f(0x203)][_0x32794f(0x1f7)][_0x32794f(0x20c)](_0x34c853),{connection:_0x17dcc0}=this[_0x32794f(0x203)][_0x32794f(0x1f7)][_0x32794f(0x20c)](_0x209f47),_0x378ef9=new Set();for(const {resolvedBy:_0x328187,comments:_0x178d20}of _0x1903c3){_0x328187&&!_0x193882[_0x32794f(0x236)](_0x328187)&&_0x378ef9[_0x32794f(0x20f)](_0x328187);for(const {userId:_0x1c394d}of _0x178d20)_0x193882[_0x32794f(0x236)](_0x1c394d)||_0x378ef9[_0x32794f(0x20f)](_0x1c394d);}if(0x0===_0x378ef9[_0x32794f(0x239)])return;const _0x9e29eb=await _0x1c544f[_0x32794f(0x218)](_0x17dcc0,Array[_0x32794f(0x215)](_0x378ef9));for(const _0x43497f of _0x9e29eb)_0x193882[_0x32794f(0x236)](_0x43497f['id'])||_0x193882[_0x32794f(0x202)](_0x43497f);}}async function F(_0x28bf4c){const _0x315de0=_0x217925;if(_0x315de0(0x1f5)!==_0x28bf4c[_0x315de0(0x1e9)])throw _0x28bf4c;}function k(_0x1c63ff){const _0x33804b=_0x217925;if((_0x46d58d=_0x1c63ff)[_0x33804b(0x1e3)][_0x33804b(0x1df)](_0x33804b(0x1e1))||_0x46d58d[_0x33804b(0x1e3)][_0x33804b(0x1df)](_0x33804b(0x1ff))||_0x46d58d[_0x33804b(0x1e3)][_0x33804b(0x1df)](_0x33804b(0x1ec)))return new Promise(()=>{});var _0x46d58d;throw _0x1c63ff;}function _0x3047(){const _0x37a01a=['cloud-services-internal-error:\x20Not\x20connected.','userId','permissions','addUser','context','attributes','_services','resolvedAt','connect','commentRemoved','225543kSnHtp','init','102giPOBD','get','comments','commentThreadAdded','add','pluginName','reopen','commentAdded','adapter','resolveCommentThread','from','3544500weAUjO','getCommentThread','getMany','cloudservicescommentsadapter-connect-already-connected','destroy','_getService','unregister','content','commentThreadRemoved','_terminateService','set','map','requires','CommentsRepository','has','commentThreadUpdated','CloudServicesCommentsAdapter','CommentsService','commentUpdated','catch','cloudservicescommentsadapter-disconnect-not-exist','delete','config','update','collaboration.channelId','9509868cmxhqf','assign','removeCommentThread','_connectService','commentThreadId','reconnect','1231576Nixzuz','getUser','2FbkbjJ','getComment','size','addCommentThread','8CZiRxZ','addToReconnectionStack','Permissions','addComment','reopenCommentThread','getConnectedSessions','commentThreadReopened','5603164vABATM','updateCommentThread','sessionAdd:','startsWith','getCommentThreads','cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.','_setUpService','message','resolvedBy','setPermissions','commentId','listenTo','_fetchMissingUsersForThreads','code','deletedAt','cloudservicescommentsadapter-service-not-exist','cloud-services-internal-error:\x20Request\x20timeout.','createdAt','844840nVfaCb','removeComment','updateComment','isOfficialPlugin','authorId','isPremiumPlugin','remove','404','resolve','plugins','commentThreadResolved','270895mwxVWM','mySessionId','off','register','disconnect','keys'];_0x3047=function(){return _0x37a01a;};return _0x3047();}function S(_0x766b0a){const _0x2a23d6=_0x217925;return{'threadId':_0x766b0a[_0x2a23d6(0x233)],'commentId':_0x766b0a[_0x2a23d6(0x1e6)],'content':_0x766b0a[_0x2a23d6(0x21d)],'createdAt':_0x766b0a[_0x2a23d6(0x1ed)],'authorId':_0x766b0a[_0x2a23d6(0x200)],'attributes':_0x766b0a[_0x2a23d6(0x204)]||{}};}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>_0xf1c7bc)());[_0x264939(0x178)];[_0x264939(0x21f)];[_0x264939(0x1fa)];[_0x264939(0x17e)];[_0x264939(0x210)];[_0x264939(0x230)];[_0x264939(0x199)];[_0x264939(0x1e1)];[_0x264939(0x21c)];[_0x264939(0x1af)];[_0x264939(0x216)];[_0x264939(0x174)];[_0x264939(0x193)];[_0x264939(0x1a7)];[_0x264939(0x166)];[_0x264939(0x1b3)];[_0x264939(0x1b9)];[_0x264939(0x1e7)];static get[_0x264939(0x1fb)](){return[_0x2f1c69,_0x18961c,_0xece1bc,_0x5799d3,_0x15d6e7,_0x30ebe8];}static get[_0x264939(0x16b)](){const _0x3388a8=_0x264939;return _0x3388a8(0x226);}static get[_0x264939(0x1e5)](){return!0x0;}static get[_0x264939(0x204)](){return!0x0;}get[_0x264939(0x1e4)](){const _0x369218=_0x264939;return this[_0x369218(0x138)]+this[_0x369218(0x178)];}get[_0x264939(0x138)](){const _0x222cb9=_0x264939;return this[_0x222cb9(0x1fa)][_0x222cb9(0x1b4)]-this[_0x222cb9(0x178)];}get[_0x264939(0x144)](){const _0x31c121=_0x264939,_0x3e7b4e=this[_0x31c121(0x1fa)][_0x31c121(0x16a)]();for(let _0x4b22e6=_0x3e7b4e[_0x31c121(0x18a)]-0x1;_0x4b22e6>=0x0;_0x4b22e6--){const _0x2f976d=_0x3e7b4e[_0x4b22e6];if(!this[_0x31c121(0x1b9)][_0x31c121(0x195)](_0x2f976d))return _0x2f976d[_0x31c121(0x185)]+0x1-this[_0x31c121(0x178)];}return 0x0;}constructor(_0x5296ce){const _0x195af6=_0x264939;if(super(_0x5296ce),this[_0x195af6(0x178)]=0x0,this[_0x195af6(0x21f)]=null,this[_0x195af6(0x1fa)]=new _0x593fca(),this[_0x195af6(0x22a)][_0x195af6(0x1b5)][_0x195af6(0x133)](_0x195af6(0x1d6),{}),this[_0x195af6(0x17e)]=this[_0x195af6(0x22a)][_0x195af6(0x1b5)][_0x195af6(0x19e)](_0x195af6(0x17c)),!this[_0x195af6(0x17e)])throw new _0x64b15(_0x195af6(0x223),this);const _0x493881=_0x5296ce[_0x195af6(0x1b5)][_0x195af6(0x19e)](_0x195af6(0x21a))||_0x468f0c;this[_0x195af6(0x210)]=new RealTimeCollaborationClient[(_0x195af6(0x22b))](_0x493881,this[_0x195af6(0x17e)]),this[_0x195af6(0x230)]=this[_0x195af6(0x22a)][_0x195af6(0x211)][_0x195af6(0x191)],this[_0x195af6(0x199)]=new _0x21887b(),this[_0x195af6(0x1e1)]=[],this[_0x195af6(0x21c)]=new WeakSet(),this[_0x195af6(0x1af)]=new Set(),this[_0x195af6(0x1f2)](_0x195af6(0x142),!0x1),this[_0x195af6(0x1f2)](_0x195af6(0x1dd),!0x1),this[_0x195af6(0x216)]=null,this[_0x195af6(0x174)]=!0x1,this[_0x195af6(0x193)]=null,this[_0x195af6(0x1a7)]=0x12c,this[_0x195af6(0x166)]=this[_0x195af6(0x1a7)],this[_0x195af6(0x1b3)]=null,this[_0x195af6(0x1b9)]=new WeakSet(),this[_0x195af6(0x1e7)]=new J(this[_0x195af6(0x1b9)]);}[_0x264939(0x234)](){const _0xefba2=_0x264939,_0x97d9ad=this[_0xefba2(0x22a)],_0x4b12c7=_0x97d9ad[_0xefba2(0x170)][_0xefba2(0x19e)](_0x15d6e7),_0x4f8b6d=_0x97d9ad[_0xefba2(0x170)][_0xefba2(0x19e)](_0x2f1c69);this[_0xefba2(0x1cb)](_0x4b12c7,_0xefba2(0x1bf),(_0x2b4f6c,_0x2e88d6)=>{const _0x3681c6=_0xefba2,_0x49a705=_0x2e88d6[0x0];_0x49a705[_0x3681c6(0x183)]&&(_0x2b4f6c[_0x3681c6(0x22f)]=_0x4b12c7[_0x3681c6(0x179)](_0x49a705[_0x3681c6(0x183)]),_0x2b4f6c[_0x3681c6(0x231)]()),null===_0x49a705[_0x3681c6(0x183)]&&(_0x2b4f6c[_0x3681c6(0x22f)]=null,_0x2b4f6c[_0x3681c6(0x231)]());},{'priority':_0xefba2(0x16e)}),this[_0xefba2(0x1cb)](_0x97d9ad[_0xefba2(0x211)][_0xefba2(0x191)][_0xefba2(0x145)],_0xefba2(0x157),(_0x1018f2,_0x26a77a)=>{const _0xce4852=_0xefba2;_0x26a77a[_0xce4852(0x186)]&&this[_0xce4852(0x177)]();}),this[_0xefba2(0x1cb)](_0x97d9ad[_0xefba2(0x15f)][_0xefba2(0x1c3)],_0xefba2(0x1fc),()=>{const _0xa20a73=_0xefba2;this[_0xa20a73(0x177)]();}),this[_0xefba2(0x151)](),_0x97d9ad[_0xefba2(0x211)]['on'](_0xefba2(0x1f5),(_0x58fae6,_0x2d7613)=>{const _0x2e5e45=_0xefba2,_0x535814=_0x2d7613[0x0];_0x535814[_0x2e5e45(0x136)]&&(this[_0x2e5e45(0x1d3)](_0x535814),this[_0x2e5e45(0x219)]()&&this[_0x2e5e45(0x22d)]());}),this[_0xefba2(0x188)](),this[_0xefba2(0x19d)](_0xefba2(0x162))['to'](_0x4f8b6d,_0xefba2(0x14e),this,_0xefba2(0x1dd),(_0x5a9969,_0x5021ff)=>_0xefba2(0x1a2)===_0x5a9969&&!_0x5021ff),this['on'](_0xefba2(0x172),()=>{const _0x26cf61=_0xefba2;this[_0x26cf61(0x162)]?_0x97d9ad[_0x26cf61(0x140)](_0x26cf61(0x220)):_0x97d9ad[_0x26cf61(0x15e)](_0x26cf61(0x220));}),this[_0xefba2(0x162)]?_0x97d9ad[_0xefba2(0x140)](_0xefba2(0x220)):_0x97d9ad[_0xefba2(0x15e)](_0xefba2(0x220)),this[_0xefba2(0x1f2)](_0xefba2(0x212),!0x1);}async[_0x264939(0x1d4)](){const _0x333fc8=_0x264939,_0x2dcb66=this[_0x333fc8(0x22a)][_0x333fc8(0x170)][_0x333fc8(0x19e)](_0x18961c),_0xdef38b=this[_0x333fc8(0x22a)][_0x333fc8(0x170)][_0x333fc8(0x19e)](_0x2f1c69);try{this[_0x333fc8(0x142)]=!0x0,_0x2dcb66[_0x333fc8(0x16c)](this[_0x333fc8(0x17e)]);const _0x1e5b51=await this[_0x333fc8(0x210)][_0x333fc8(0x1d4)](_0xdef38b[_0x333fc8(0x14b)],this[_0x333fc8(0x144)]);await this[_0x333fc8(0x141)](_0x1e5b51)&&(this[_0x333fc8(0x142)]=!0x1,this[_0x333fc8(0x20b)]());const _0x2ad6c7=await this[_0x333fc8(0x210)][_0x333fc8(0x135)]();_0x2dcb66[_0x333fc8(0x1c7)](this[_0x333fc8(0x17e)],_0x2ad6c7),this[_0x333fc8(0x19a)](),this[_0x333fc8(0x212)]=!0x0;}catch(_0x3d6c53){if(function(_0x1d5977){const _0xecdf66=_0x333fc8;return _0xecdf66(0x228)===_0x1d5977[_0xecdf66(0x1ae)];}(_0x3d6c53)&&this[_0x333fc8(0x21f)])await this[_0x333fc8(0x203)]();else{if(function(_0x4c7ece){const _0x3044f0=_0x333fc8;return _0x3044f0(0x21b)===_0x4c7ece[_0x3044f0(0x1ae)];}(_0x3d6c53)){const _0x2c421e=_0x19f334(this[_0x333fc8(0x22a)][_0x333fc8(0x152)],_0x333fc8(0x14c));this[_0x333fc8(0x213)](_0x2c421e);}else{if(!(_0x3d6c53 instanceof $))throw _0x3d6c53;this[_0x333fc8(0x213)]();}}}}[_0x264939(0x1f4)](){const _0x2cd0a4=_0x264939,_0x47c689=this[_0x2cd0a4(0x22a)][_0x2cd0a4(0x170)][_0x2cd0a4(0x19e)](_0x2f1c69),_0x1d8a43=this[_0x2cd0a4(0x22a)][_0x2cd0a4(0x170)][_0x2cd0a4(0x19e)](_0x18961c);this[_0x2cd0a4(0x22a)][_0x2cd0a4(0x15e)](_0x2cd0a4(0x1bc)),_0x1d8a43[_0x2cd0a4(0x148)][_0x2cd0a4(0x195)](this[_0x2cd0a4(0x17e)])&&_0x1d8a43[_0x2cd0a4(0x16c)](this[_0x2cd0a4(0x17e)]),_0x47c689[_0x2cd0a4(0x1e3)](this),this[_0x2cd0a4(0x21d)](),super[_0x2cd0a4(0x1f4)]();}async[_0x264939(0x141)](_0x5e8b5f){const _0x223d76=_0x264939;if(this[_0x223d76(0x21f)]!==_0x5e8b5f[_0x223d76(0x21f)]&&this[_0x223d76(0x1b3)]!==_0x5e8b5f[_0x223d76(0x1ef)])throw new $();return this[_0x223d76(0x21f)]=_0x5e8b5f[_0x223d76(0x21f)],this[_0x223d76(0x20a)]([],{..._0x5e8b5f,'wereChangesApplied':!0x1,'data':_0x5e8b5f[_0x223d76(0x139)]},_0x223d76(0x1d4));}async[_0x264939(0x1ac)](_0x2a37f4,_0x1f2b8c=!0x1){const _0x980a42=_0x264939,{connection:_0x5b7622}=this[_0x980a42(0x22a)][_0x980a42(0x170)][_0x980a42(0x19e)](_0x2f1c69);RealTimeCollaborationClient[_0x980a42(0x22b)][_0x980a42(0x135)](_0x5b7622,this[_0x980a42(0x17e)])[_0x980a42(0x1d2)](_0x8123f7=>this[_0x980a42(0x13e)](_0x8123f7))[_0x980a42(0x1a9)](_0x344e60=>{const _0x592351=_0x980a42;this[_0x592351(0x12f)](_0x592351(0x176),_0x344e60);}),this[_0x980a42(0x1cb)](this[_0x980a42(0x210)],_0x980a42(0x1b8),this[_0x980a42(0x1e0)][_0x980a42(0x19d)](this)),this[_0x980a42(0x1cb)](this[_0x980a42(0x210)],_0x980a42(0x1be),(_0xff1456,_0x96ede5)=>{const _0x12a8ba=_0x980a42;this[_0x12a8ba(0x12f)](_0x12a8ba(0x20e),_0x96ede5);}),this[_0x980a42(0x1cb)](this[_0x980a42(0x210)],_0x980a42(0x207),()=>{const _0x43ebb0=_0x980a42;this[_0x43ebb0(0x212)]=!0x1;});const _0x52c199=this[_0x980a42(0x1e7)][_0x980a42(0x1f0)](_0x2a37f4);this[_0x980a42(0x142)]=!0x0;const _0x5e0f4b=await this[_0x980a42(0x210)][_0x980a42(0x1f9)](_0x5b7622,this[_0x980a42(0x169)](_0x2a37f4),_0x52c199);if(this[_0x980a42(0x21f)]=_0x5e0f4b[_0x980a42(0x21f)],_0x1f2b8c){if(!_0x5e0f4b[_0x980a42(0x17a)])return void this[_0x980a42(0x213)]();this[_0x980a42(0x142)]=!0x1,this[_0x980a42(0x20b)](),this[_0x980a42(0x1fa)][_0x980a42(0x1cd)](),this[_0x980a42(0x178)]=_0x5e0f4b[_0x980a42(0x1ff)],this[_0x980a42(0x1fa)][_0x980a42(0x1b4)]=this[_0x980a42(0x178)],await this[_0x980a42(0x20a)](_0x2a37f4,_0x5e0f4b,_0x980a42(0x1cf));}else await this[_0x980a42(0x227)](_0x5e0f4b,_0x2a37f4);this[_0x980a42(0x19a)](),this[_0x980a42(0x212)]=!0x0;}[_0x264939(0x19a)](){const _0x2986a3=_0x264939,_0x38c389=this[_0x2986a3(0x22a)][_0x2986a3(0x170)][_0x2986a3(0x19e)](_0x18961c),_0x1f859d=this[_0x2986a3(0x22a)][_0x2986a3(0x170)][_0x2986a3(0x19e)](_0xece1bc),_0x2bcebd=_0x38c389[_0x2986a3(0x148)][_0x2986a3(0x19e)](this[_0x2986a3(0x17e)]);_0x2bcebd&&_0x2bcebd[_0x2986a3(0x18a)]>0x1?_0x1f859d[_0x2986a3(0x1b0)]():this[_0x2986a3(0x1cb)](_0x38c389,_0x2986a3(0x1ec)+this[_0x2986a3(0x17e)],()=>{const _0x51fd23=_0x2986a3;0x2===_0x38c389[_0x51fd23(0x148)][_0x51fd23(0x19e)](this[_0x51fd23(0x17e)])[_0x51fd23(0x18a)]&&_0x1f859d[_0x51fd23(0x1b0)]();});}async[_0x264939(0x1e0)](_0xa17107,_0x2820c6,_0x529401,_0x1d23c4){const _0x101ebd=_0x264939;if(!this[_0x101ebd(0x142)]&&this[_0x101ebd(0x230)][_0x101ebd(0x1b4)]==_0x2820c6){const _0x325cee=this[_0x101ebd(0x1ed)](_0x529401,_0x1d23c4);await this[_0x101ebd(0x1c6)](_0x325cee),this[_0x101ebd(0x1a5)](_0x325cee,_0x2820c6,_0x529401[_0x101ebd(0x1ef)])||this[_0x101ebd(0x12f)](_0x101ebd(0x181));}}async[_0x264939(0x203)](){const _0x299c89=_0x264939;this[_0x299c89(0x21d)]();const {locale:_0x3f0a0f}=this[_0x299c89(0x22a)];let _0x2f2c4e;try{_0x2f2c4e=await this[_0x299c89(0x210)][_0x299c89(0x233)]();}catch{const _0x5970f1=_0x19f334(_0x3f0a0f,_0x299c89(0x17d));return void this[_0x299c89(0x213)](_0x5970f1);}const _0x3e16d4=_0x2f2c4e[_0x299c89(0x13f)]||_0x2f2c4e[_0x299c89(0x134)];if(this[_0x299c89(0x1b3)]!==_0x3e16d4[_0x299c89(0x1ef)]){const _0x4e0cad=_0x19f334(_0x3f0a0f,_0x299c89(0x130));return void this[_0x299c89(0x213)](_0x4e0cad);}await this[_0x299c89(0x1ac)](this[_0x299c89(0x22a)][_0x299c89(0x211)][_0x299c89(0x191)][_0x299c89(0x1e8)][_0x299c89(0x16a)](),!0x0);}[_0x264939(0x21d)](){const _0xaf4928=_0x264939;this[_0xaf4928(0x210)][_0xaf4928(0x1cc)](),this[_0xaf4928(0x1e1)]=[],clearTimeout(this[_0xaf4928(0x193)]),this[_0xaf4928(0x205)](this[_0xaf4928(0x210)]);}[_0x264939(0x13e)](_0x21179f){const _0x383e7e=_0x264939,_0xebbb0a=this[_0x383e7e(0x22a)][_0x383e7e(0x170)][_0x383e7e(0x19e)](_0x18961c);this[_0x383e7e(0x1cb)](_0xebbb0a,_0x383e7e(0x1ec)+this[_0x383e7e(0x17e)],(_0x34da8c,{session:_0xd186b3})=>{const _0x2508f5=_0x383e7e;if(_0xd186b3['id']===_0xebbb0a[_0x2508f5(0x1b7)]){_0x34da8c[_0x2508f5(0x18e)]();const _0x493a48=this[_0x2508f5(0x22a)][_0x2508f5(0x170)][_0x2508f5(0x195)](_0x2508f5(0x209))&&this[_0x2508f5(0x22a)][_0x2508f5(0x170)][_0x2508f5(0x19e)](_0x2508f5(0x209));let _0x4db95e=_0xd186b3[_0x2508f5(0x1dc)];_0x493a48&&_0x493a48[_0x2508f5(0x189)]&&(_0x4db95e=_0x4db95e[_0x2508f5(0x224)](_0x53d62e=>_0x2508f5(0x131)!==_0x53d62e)),this[_0x2508f5(0x22a)][_0x2508f5(0x170)][_0x2508f5(0x19e)](_0x2508f5(0x155))[_0x2508f5(0x1db)](_0x4db95e,this[_0x2508f5(0x17e)]);}}),_0xebbb0a[_0x383e7e(0x1c7)](this[_0x383e7e(0x17e)],_0x21179f);}[_0x264939(0x151)](){const _0x3c3afd=_0x264939,_0x1bc669=this[_0x3c3afd(0x22a)][_0x3c3afd(0x139)][_0x3c3afd(0x1f2)];this[_0x3c3afd(0x22a)][_0x3c3afd(0x139)][_0x3c3afd(0x1f2)]=(..._0x1032cd)=>{const _0x5013c4=_0x3c3afd;if(!_0x1032cd[_0x1032cd[_0x5013c4(0x18a)]-0x1][_0x5013c4(0x1e6)])throw new _0x64b15(_0x5013c4(0x1fe),this);_0x1bc669[_0x5013c4(0x194)](this[_0x5013c4(0x22a)][_0x5013c4(0x139)],_0x1032cd);};}[_0x264939(0x188)](){const _0xd8653f=_0x264939;this[_0xd8653f(0x22a)][_0xd8653f(0x139)]['on'](_0xd8653f(0x234),(_0x48913f,[_0x3eb4af])=>{const _0x2cf248=_0xd8653f;if(this[_0x2cf248(0x230)][_0x2cf248(0x1b4)])throw new _0x64b15(_0x2cf248(0x206),this);_0x48913f[_0x2cf248(0x231)](),this[_0x2cf248(0x1ad)]();const _0x3d9545=this[_0x2cf248(0x22a)][_0x2cf248(0x1b5)][_0x2cf248(0x19e)](_0x2cf248(0x1a3)),_0x599764=this[_0x2cf248(0x1aa)](_0x3eb4af,_0x3d9545);0x0==_0x599764[_0x2cf248(0x18a)]&&_0x599764[_0x2cf248(0x1f8)](new _0x1532fb(0x0)),_0x48913f[_0x2cf248(0x22f)]=this[_0x2cf248(0x1ac)](_0x599764)[_0x2cf248(0x1d2)](()=>{const _0x1b56fe=_0x2cf248;this[_0x1b56fe(0x22a)][_0x1b56fe(0x170)][_0x1b56fe(0x19e)](_0x2f1c69)[_0x1b56fe(0x161)](this),this[_0x1b56fe(0x22a)][_0x1b56fe(0x139)][_0x1b56fe(0x15d)](_0x1b56fe(0x1bd));})[_0x2cf248(0x1a9)](_0x13b586=>this[_0x2cf248(0x12f)](_0x2cf248(0x214),_0x13b586))[_0x2cf248(0x1a8)](()=>this[_0x2cf248(0x20b)]());},{'priority':_0xd8653f(0x16e)}),this[_0xd8653f(0x22a)]['on'](_0xd8653f(0x15c),async(_0x13578e,[_0x313613,_0x4a20c3])=>{const _0x35576f=_0xd8653f;_0x13578e[_0x35576f(0x231)]();const _0x2da626=this[_0x35576f(0x22a)][_0x35576f(0x211)][_0x35576f(0x191)][_0x35576f(0x184)](_0x313613);if(!this[_0x35576f(0x1af)][_0x35576f(0x195)](_0x313613)){const _0x39a5e2=_0x4a20c3&&_0x4a20c3[_0x35576f(0x139)]?_0x4a20c3[_0x35576f(0x139)]:'',_0x1b8cce=_0x4a20c3&&_0x4a20c3[_0x35576f(0x19f)]?_0x4a20c3[_0x35576f(0x19f)]:{};await this[_0x35576f(0x1c5)](_0x313613,_0x39a5e2,_0x1b8cce);}this[_0x35576f(0x22a)][_0x35576f(0x211)][_0x35576f(0x1e9)]({'isUndoable':!0x1},()=>{const _0x4a9422=_0x35576f;_0x2da626[_0x4a9422(0x200)]=!0x0,this[_0x4a9422(0x22a)][_0x4a9422(0x211)][_0x4a9422(0x191)][_0x4a9422(0x1fd)][_0x4a9422(0x132)](_0x2da626);});},{'priority':_0xd8653f(0x16e)});}async[_0x264939(0x1c6)](_0x148bee){const _0x151adc=_0x264939,_0x19a5d4=this[_0x151adc(0x22a)][_0x151adc(0x170)][_0x151adc(0x19e)](_0x15d6e7),{connection:_0xd23802}=this[_0x151adc(0x22a)][_0x151adc(0x170)][_0x151adc(0x19e)](_0x2f1c69),_0x52771b=new Set();for(const _0x18c0f7 of _0x148bee){const _0x2379c5=_0x18c0f7[_0x151adc(0x183)];_0x2379c5&&!_0x19a5d4[_0x151adc(0x179)](_0x2379c5)&&_0x52771b[_0x151adc(0x232)](_0x2379c5);}if(0x0===_0x52771b[_0x151adc(0x221)])return;const _0x3d694d=await _0x447f0c[_0x151adc(0x198)](_0xd23802,Array[_0x151adc(0x18b)](_0x52771b));for(const _0x334499 of _0x3d694d)_0x19a5d4[_0x151adc(0x179)](_0x334499['id'])||_0x19a5d4[_0x151adc(0x154)](_0x334499);}[_0x264939(0x1aa)](_0x1a1da1,_0x3d2492={}){const _0x5214bc=_0x264939,_0x115006=this[_0x5214bc(0x22a)][_0x5214bc(0x211)],_0x537451=[];let _0x3bf040=0x0;const _0x24f0bd=_0x5214bc(0x1b1)==typeof _0x1a1da1?{'main':_0x1a1da1}:_0x1a1da1;for(const _0x23fadd of Object[_0x5214bc(0x1c9)](_0x24f0bd)){if(!this[_0x5214bc(0x230)][_0x5214bc(0x215)][_0x5214bc(0x195)](_0x23fadd))throw new _0x64b15(_0x5214bc(0x187),this);const _0x43129b=this[_0x5214bc(0x22a)][_0x5214bc(0x139)][_0x5214bc(0x1df)](_0x24f0bd[_0x23fadd]),_0x3496db=this[_0x5214bc(0x230)][_0x5214bc(0x184)](_0x23fadd),_0x3bf17f=new _0x5601d8(_0x115006[_0x5214bc(0x208)](_0x3496db,0x0),_0x43129b,_0x3bf040++);_0x537451[_0x5214bc(0x1f8)](_0x3bf17f);for(const [_0x5a05e4,_0x971a3]of _0x43129b[_0x5214bc(0x146)]){const _0x1094bc=_0x115006[_0x5214bc(0x190)](_0x115006[_0x5214bc(0x1eb)](_0x3496db,_0x971a3[_0x5214bc(0x175)][_0x5214bc(0x21e)][_0x5214bc(0x14d)]()),_0x115006[_0x5214bc(0x1eb)](_0x3496db,_0x971a3[_0x5214bc(0x1d0)][_0x5214bc(0x21e)][_0x5214bc(0x14d)]())),_0x2e2baf=new _0x441a49(_0x5a05e4,null,_0x1094bc,_0x115006[_0x5214bc(0x146)],!0x0,_0x3bf040++);_0x537451[_0x5214bc(0x1f8)](_0x2e2baf);}}if(_0x3d2492)for(const [_0x361b92,_0x4d01dc]of Object[_0x5214bc(0x1c1)](_0x3d2492)){const _0x2f4a06=_0x115006[_0x5214bc(0x191)][_0x5214bc(0x184)](_0x361b92);if(!_0x2f4a06)throw new _0x64b15(_0x5214bc(0x168),null);for(const [_0x1a58f0,_0x554de3]of Object[_0x5214bc(0x1c1)](_0x4d01dc))if(null!==_0x554de3){const _0x30e6e9=new _0x57ed81(_0x2f4a06,_0x1a58f0,null,_0x554de3,_0x3bf040++);_0x537451[_0x5214bc(0x1f8)](_0x30e6e9);}}return _0x537451;}async[_0x264939(0x1c5)](_0x5079dc,_0x1e9529,_0x289412){const _0x5918c4=_0x264939;this[_0x5918c4(0x1aa)]({[_0x5079dc]:_0x1e9529},{[_0x5079dc]:_0x289412})[_0x5918c4(0x1d7)]((_0x1555ea,_0x2b1461)=>{const _0xfaf187=_0x5918c4;_0x1555ea[_0xfaf187(0x185)]=this[_0xfaf187(0x230)][_0xfaf187(0x1b4)]+_0x2b1461,_0x1555ea[_0xfaf187(0x15b)]=!0x0,this[_0xfaf187(0x1d3)](_0x1555ea);}),this[_0x5918c4(0x22d)](),await this[_0x5918c4(0x192)]();}async[_0x264939(0x227)](_0x1ce7de,_0x3a5e20){const _0x12994e=_0x264939;let _0x94ad5;this[_0x12994e(0x178)]=_0x1ce7de[_0x12994e(0x1ff)];const _0x3bfdfc=_0x1ce7de[_0x12994e(0x17a)]&&!_0x1ce7de[_0x12994e(0x1bb)],_0x540b4c=_0x3bfdfc?0x0:_0x1ce7de[_0x12994e(0x139)][_0x12994e(0x185)];if(_0x3a5e20[_0x12994e(0x1d7)](_0x487159=>{const _0x1b8bd0=_0x12994e;_0x487159[_0x1b8bd0(0x15b)]=!0x0,_0x487159[_0x1b8bd0(0x19b)]=_0x1ce7de[_0x1b8bd0(0x1ab)],_0x487159[_0x1b8bd0(0x183)]=null;}),_0x3bfdfc)_0x94ad5=_0x3a5e20,this[_0x12994e(0x1d9)](_0x94ad5,_0x3bfdfc);else{if(_0x1ce7de[_0x12994e(0x1bb)]){const _0x18bad6=this[_0x12994e(0x1aa)](_0x1ce7de[_0x12994e(0x1bb)]);this[_0x12994e(0x230)][_0x12994e(0x1e8)][_0x12994e(0x1b4)]=-_0x18bad6[_0x12994e(0x18a)],_0x18bad6[_0x12994e(0x1d7)](_0xe3f351=>{const _0x369e7b=_0x12994e;_0xe3f351[_0x369e7b(0x185)]-=_0x18bad6[_0x369e7b(0x18a)],_0xe3f351[_0x369e7b(0x19b)]=_0x1ce7de[_0x369e7b(0x1ab)],_0xe3f351[_0x369e7b(0x15b)]=!0x0,_0xe3f351[_0x369e7b(0x183)]=null;}),this[_0x12994e(0x1d9)](_0x18bad6,!0x0),this[_0x12994e(0x1fa)][_0x12994e(0x1b4)]=-_0x18bad6[_0x12994e(0x18a)]+this[_0x12994e(0x178)],this[_0x12994e(0x18f)](_0x18bad6);}this[_0x12994e(0x230)][_0x12994e(0x1e8)][_0x12994e(0x1b4)]=_0x540b4c,_0x94ad5=this[_0x12994e(0x1ed)](_0x1ce7de[_0x12994e(0x139)],_0x1ce7de[_0x12994e(0x165)]),await this[_0x12994e(0x1c6)](_0x94ad5),this[_0x12994e(0x1d9)](_0x94ad5,_0x3bfdfc);}_0x1ce7de[_0x12994e(0x1ef)]&&(this[_0x12994e(0x1e7)][_0x12994e(0x1c4)](_0x94ad5,_0x1ce7de[_0x12994e(0x1ef)]),this[_0x12994e(0x1b3)]=_0x1ce7de[_0x12994e(0x1ef)]),this[_0x12994e(0x1fa)][_0x12994e(0x1b4)]=_0x540b4c+this[_0x12994e(0x178)],this[_0x12994e(0x18f)](_0x94ad5),_0x3a5e20[_0x12994e(0x224)](_0x38a6f2=>{const _0x59c3c3=_0x12994e,_0x3b57a8=this[_0x59c3c3(0x202)](_0x38a6f2);return _0x3b57a8&&!this[_0x59c3c3(0x1af)][_0x59c3c3(0x195)](_0x3b57a8);})[_0x12994e(0x1d7)]((_0x392ec0,_0x1f8993)=>{const _0x553372=_0x12994e;_0x392ec0[_0x553372(0x185)]=this[_0x553372(0x230)][_0x553372(0x1b4)]+_0x1f8993,this[_0x553372(0x1d3)](_0x392ec0);}),this[_0x12994e(0x219)]()?(this[_0x12994e(0x166)]=0x0,this[_0x12994e(0x22d)](!0x0),await this[_0x12994e(0x192)]()):(this[_0x12994e(0x142)]=!0x1,this[_0x12994e(0x20b)]());}[_0x264939(0x12f)](_0x18412a,_0x3b8914){const _0x40746b=_0x264939,_0x56ee36=_0x3b8914&&_0x3b8914[_0x40746b(0x1f7)];if(_0x56ee36&&_0x56ee36[_0x40746b(0x1e2)](_0x40746b(0x1b2)))throw _0x3b8914;const _0x1db739=this[_0x40746b(0x22a)][_0x40746b(0x170)][_0x40746b(0x19e)](_0x2f1c69);throw this[_0x40746b(0x142)]=!0x0,_0x1db739[_0x40746b(0x1cc)](),this[_0x40746b(0x22a)][_0x40746b(0x15e)](_0x40746b(0x13a)),new _0x64b15(_0x18412a,this[_0x40746b(0x22a)],_0x56ee36?{'originalError':_0x56ee36}:void 0x0);}[_0x264939(0x1d3)](_0x4559be){const _0x2edb51=_0x264939;this[_0x2edb51(0x21c)][_0x2edb51(0x195)](_0x4559be)||(this[_0x2edb51(0x21c)][_0x2edb51(0x232)](_0x4559be),this[_0x2edb51(0x1e1)][_0x2edb51(0x1f8)](_0x4559be),this[_0x2edb51(0x216)]||_0x2edb51(0x15a)==_0x4559be[_0x2edb51(0x1a4)]&&!_0x4559be[_0x2edb51(0x160)]||this[_0x2edb51(0x1ad)]());}[_0x264939(0x22d)](_0x531c57=!0x1){const _0x1b8134=_0x264939;!_0x531c57&&this[_0x1b8134(0x142)]||(this[_0x1b8134(0x142)]=!0x0,clearTimeout(this[_0x1b8134(0x193)]),this[_0x1b8134(0x193)]=setTimeout(()=>{const _0x508935=_0x1b8134;this[_0x508935(0x1de)]()[_0x508935(0x1d2)](_0x230b49=>{const _0x5a38db=_0x508935;_0x230b49&&(this[_0x5a38db(0x20b)](),this[_0x5a38db(0x142)]=!0x1);})[_0x508935(0x1a9)](_0x3470e3=>{const _0x114f56=_0x508935;this[_0x114f56(0x20b)](),this[_0x114f56(0x142)]=!0x1,function(_0x1cb444){const _0x3053f4=_0x114f56;return _0x1cb444[_0x3053f4(0x1f7)][_0x3053f4(0x1e2)](_0x3053f4(0x182))||_0x1cb444[_0x3053f4(0x1f7)][_0x3053f4(0x1e2)](_0x3053f4(0x1b6))||_0x1cb444[_0x3053f4(0x1f7)][_0x3053f4(0x1e2)](_0x3053f4(0x1ba));}(_0x3470e3)||this[_0x114f56(0x12f)](_0x3470e3[_0x114f56(0x1f7)],_0x3470e3);});},this[_0x1b8134(0x166)]));}[_0x264939(0x192)](){return new Promise(_0x211deb=>{const _0x541516=_0x1a15;this['on'](_0x541516(0x1d1),()=>{_0x211deb();});});}async[_0x264939(0x1de)](){const _0x167fd6=_0x264939,_0x118c30=this[_0x167fd6(0x22a)][_0x167fd6(0x170)][_0x167fd6(0x19e)](_0xece1bc);if(this[_0x167fd6(0x171)]()&&(_0x118c30[_0x167fd6(0x1b0)](),this[_0x167fd6(0x174)]=!0x1),!this[_0x167fd6(0x219)]())return!0x0;const _0x511c4d=[...this[_0x167fd6(0x1e1)]];for(const _0x4a8ba0 of _0x511c4d)_0x4a8ba0[_0x167fd6(0x1c8)]=this[_0x167fd6(0x230)][_0x167fd6(0x1e8)][_0x167fd6(0x164)](_0x4a8ba0);const _0x4397d5=this[_0x167fd6(0x1e7)][_0x167fd6(0x1f0)](_0x511c4d),_0x16c1c3=G++,_0x2c37bd=this[_0x167fd6(0x169)](_0x511c4d),_0x382289=await this[_0x167fd6(0x210)][_0x167fd6(0x1f1)](_0x2c37bd,_0x2c37bd[_0x167fd6(0x185)],_0x4397d5);try{return await this[_0x167fd6(0x20a)](_0x511c4d,_0x382289,_0x16c1c3);}catch(_0x1667b7){return this[_0x167fd6(0x12f)](_0x167fd6(0x20c),_0x1667b7);}}async[_0x264939(0x20a)](_0x382cb8,_0x4b1bdb,_0x466eb5){const _0x5d66db=_0x264939;if(_0x5d66db(0x1be)in _0x4b1bdb)throw _0x4b1bdb[_0x5d66db(0x1be)];let _0x139943=!0x1;if(_0x4b1bdb[_0x5d66db(0x17a)]){_0x4b1bdb[_0x5d66db(0x1ef)]&&(this[_0x5d66db(0x1b3)]=_0x4b1bdb[_0x5d66db(0x1ef)]),this[_0x5d66db(0x1e1)]=this[_0x5d66db(0x1e1)][_0x5d66db(0x224)](_0x1ea17e=>!_0x382cb8[_0x5d66db(0x153)](_0x1ea17e));for(const _0x32330d of _0x382cb8)_0x32330d[_0x5d66db(0x19b)]=_0x5d66db(0x1a0)in _0x4b1bdb&&_0x4b1bdb[_0x5d66db(0x1a0)]||void 0x0;K(_0x382cb8,_0x4b1bdb[_0x5d66db(0x1b4)]-_0x382cb8[_0x5d66db(0x18a)]),this[_0x5d66db(0x18f)](_0x382cb8);const _0x4d1b9c=_0x382cb8[_0x5d66db(0x224)](_0x197178=>{const _0x5cc4c9=_0x5d66db;if(!_0x197178[_0x5cc4c9(0x15b)])return!0x1;const _0x7b6321=this[_0x5cc4c9(0x202)](_0x197178);return _0x7b6321&&!this[_0x5cc4c9(0x1af)][_0x5cc4c9(0x195)](_0x7b6321);});K(_0x4d1b9c,this[_0x5d66db(0x230)][_0x5d66db(0x1b4)]),this[_0x5d66db(0x1d9)](_0x4d1b9c),_0x139943=!0x0,this[_0x5d66db(0x166)]=this[_0x5d66db(0x1a7)];}else{const _0x1c67ca=this[_0x5d66db(0x1ed)](_0x4b1bdb[_0x5d66db(0x139)],_0x4b1bdb[_0x5d66db(0x165)])[_0x5d66db(0x224)](_0x3a3d44=>_0x3a3d44[_0x5d66db(0x185)]>=this[_0x5d66db(0x138)]);_0x1c67ca[_0x5d66db(0x1d7)](_0x5142d2=>this[_0x5d66db(0x217)](_0x5142d2)),this[_0x5d66db(0x1e1)]=this[_0x5d66db(0x1e1)][_0x5d66db(0x224)](_0x5cfe7b=>!_0x5cfe7b[_0x5d66db(0x15b)]||!this[_0x5d66db(0x1af)][_0x5d66db(0x195)](this[_0x5d66db(0x202)](_0x5cfe7b))),this[_0x5d66db(0x1e1)][_0x5d66db(0x18a)]&&K(this[_0x5d66db(0x1e1)],this[_0x5d66db(0x1e1)][0x0][_0x5d66db(0x185)]),await this[_0x5d66db(0x1c6)](_0x1c67ca),_0x139943=this[_0x5d66db(0x1a5)](_0x1c67ca,_0x4b1bdb[_0x5d66db(0x1b4)],_0x4b1bdb[_0x5d66db(0x1ef)]),this[_0x5d66db(0x166)]=Math[_0x5d66db(0x13b)](this[_0x5d66db(0x166)]/0x2);}return _0x139943?!this[_0x5d66db(0x219)]()||(this[_0x5d66db(0x22d)](!0x0),!0x1):this[_0x5d66db(0x12f)](_0x5d66db(0x1c0));}[_0x264939(0x1a5)](_0x526e1a,_0x33d194,_0x433193){const _0x2b7da8=_0x264939;try{const _0x524d26={'document':this[_0x2b7da8(0x230)],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x1ec04f,operationsB:_0x29faab,originalOperations:_0x10858a}=_0xf51051(_0x526e1a,this[_0x2b7da8(0x1e1)],_0x524d26);K(_0x1ec04f,this[_0x2b7da8(0x230)][_0x2b7da8(0x1b4)]),K(_0x29faab,_0x33d194);for(const _0x3019bd of _0x1ec04f){const _0x5def44=_0x10858a[_0x2b7da8(0x19e)](_0x3019bd);_0x3019bd[_0x2b7da8(0x183)]=_0x5def44?_0x5def44[_0x2b7da8(0x183)]:null;}_0x433193&&(this[_0x2b7da8(0x1e7)][_0x2b7da8(0x1c4)](_0x526e1a,_0x433193),this[_0x2b7da8(0x1b3)]=_0x433193),this[_0x2b7da8(0x1e1)]=[..._0x29faab],this[_0x2b7da8(0x1d9)](_0x1ec04f),this[_0x2b7da8(0x18f)](_0x526e1a);}catch(_0x3f677c){return console[_0x2b7da8(0x1be)](_0x3f677c),!0x1;}return!0x0;}[_0x264939(0x1d9)](_0x52c9ea,_0x1d7ed6=!0x1){const _0x1be496=_0x264939;this[_0x1be496(0x22a)][_0x1be496(0x211)][_0x1be496(0x1e9)]({'isUndoable':!0x1,'isLocal':!0x1},_0x414b2b=>{const _0x71b039=_0x1be496;for(const _0xfd5a28 of _0x52c9ea)this[_0x71b039(0x21c)][_0x71b039(0x232)](_0xfd5a28),this[_0x71b039(0x217)](_0xfd5a28),_0x414b2b[_0x71b039(0x201)][_0x71b039(0x14a)](_0xfd5a28),this[_0x71b039(0x22a)][_0x71b039(0x211)][_0x71b039(0x1f5)](_0xfd5a28);});}[_0x264939(0x217)](_0x3e54f8){const _0x1ac439=_0x264939,_0x2f3dd5=this[_0x1ac439(0x202)](_0x3e54f8);_0x2f3dd5&&this[_0x1ac439(0x1af)][_0x1ac439(0x232)](_0x2f3dd5);}[_0x264939(0x202)](_0x32e834){const _0x3e4150=_0x264939;let _0x5a8dcd,_0x159572;switch(_0x32e834[_0x3e4150(0x1a4)]){case _0x3e4150(0x163):_0x5a8dcd=_0x32e834[_0x3e4150(0x147)][_0x3e4150(0x13d)];break;case _0x3e4150(0x15a):if(_0x159572=_0x32e834[_0x3e4150(0x17f)],!_0x159572)return null;_0x5a8dcd=_0x159572[_0x3e4150(0x13d)];break;case _0x3e4150(0x159):_0x5a8dcd=_0x32e834[_0x3e4150(0x13d)];break;case _0x3e4150(0x225):_0x5a8dcd=_0x32e834[_0x3e4150(0x1ee)];break;case _0x3e4150(0x149):_0x5a8dcd=_0x32e834[_0x3e4150(0x1a6)][_0x3e4150(0x13d)];break;default:return null;}return _0x5a8dcd[_0x3e4150(0x13c)];}[_0x264939(0x18f)](_0x575f54){const _0xb18993=_0x264939;_0x575f54[_0xb18993(0x1d7)](_0x4a8f64=>{const _0x5474be=_0xb18993,_0x5d7658=_0x4a8f64[_0x5474be(0x1ca)]();_0x5d7658[_0x5474be(0x183)]=_0x4a8f64[_0x5474be(0x183)],_0x5d7658[_0x5474be(0x15b)]=!!_0x4a8f64[_0x5474be(0x15b)],_0x5d7658[_0x5474be(0x19b)]=_0x4a8f64[_0x5474be(0x19b)],_0x5d7658[_0x5474be(0x185)]+=this[_0x5474be(0x178)],_0x4a8f64[_0x5474be(0x1f6)]&&this[_0x5474be(0x1b9)][_0x5474be(0x232)](_0x5d7658),this[_0x5474be(0x1fa)][_0x5474be(0x14a)](_0x5d7658);});}[_0x264939(0x213)](_0x1c6923){const _0x3be52d=_0x264939,_0x3acfaa=this[_0x3be52d(0x22a)][_0x3be52d(0x170)][_0x3be52d(0x19e)](_0x3be52d(0x222)),_0x361c59=this[_0x3be52d(0x22a)][_0x3be52d(0x152)];_0x1c6923||(_0x1c6923=_0x19f334(_0x361c59,_0x3be52d(0x1ce))),_0x3acfaa[_0x3be52d(0x22e)](_0x1c6923,{'title':_0x19f334(_0x361c59,_0x3be52d(0x1d8)),'namespace':_0x3be52d(0x137)}),this[_0x3be52d(0x1dd)]=!0x0,clearTimeout(this[_0x3be52d(0x193)]),this[_0x3be52d(0x1e1)]=[],this[_0x3be52d(0x22a)][_0x3be52d(0x170)][_0x3be52d(0x19e)](_0x2f1c69)[_0x3be52d(0x1cc)]();}[_0x264939(0x1ad)](){const _0x67ed7c=_0x264939;this[_0x67ed7c(0x216)]||(this[_0x67ed7c(0x216)]=this[_0x67ed7c(0x22a)][_0x67ed7c(0x170)][_0x67ed7c(0x19e)](_0x5799d3)[_0x67ed7c(0x232)](_0x19f334(this[_0x67ed7c(0x22a)][_0x67ed7c(0x152)],_0x67ed7c(0x1c2))));}[_0x264939(0x20b)](){const _0xb1051=_0x264939;this[_0xb1051(0x216)]&&(this[_0xb1051(0x22a)][_0xb1051(0x170)][_0xb1051(0x19e)](_0x5799d3)[_0xb1051(0x18c)](this[_0xb1051(0x216)]),this[_0xb1051(0x216)]=null);}[_0x264939(0x169)](_0x4f4392){const _0x4039f7=_0x264939,_0x3adc19=_0x4f4392[_0x4039f7(0x196)](_0x679c3e=>_0x679c3e[_0x4039f7(0x167)]());return this[_0x4039f7(0x199)][_0x4039f7(0x1f3)](_0x3adc19);}[_0x264939(0x1ed)](_0x1c4b39,_0x119cb1){const _0x6e07f3=_0x264939;return this[_0x6e07f3(0x199)][_0x6e07f3(0x16d)](_0x1c4b39)[_0x6e07f3(0x196)]((_0x46cd6e,_0xb672b5)=>{const _0xa19d7d=_0x6e07f3,_0x3c206d=_0xa19d7d(0x234)==_0x119cb1[_0xb672b5][_0xa19d7d(0x1a4)];if(_0xa19d7d(0x1da)==_0x46cd6e[_0xa19d7d(0x1ea)]){const _0x27f1e6=_0x46cd6e[_0xa19d7d(0x147)][_0xa19d7d(0x13d)];!this[_0xa19d7d(0x230)][_0xa19d7d(0x184)](_0x27f1e6)&&(this[_0xa19d7d(0x230)][_0xa19d7d(0x143)](_0xa19d7d(0x19c),_0x27f1e6)[_0xa19d7d(0x173)]=!0x1);}const _0x3f503e=_0xc3187a[_0xa19d7d(0x156)](_0x46cd6e,this[_0xa19d7d(0x230)]);return _0x3f503e[_0xa19d7d(0x1c8)]=_0x46cd6e[_0xa19d7d(0x1c8)],_0x3f503e[_0xa19d7d(0x15b)]=_0x3c206d,_0x3f503e[_0xa19d7d(0x183)]=_0x3c206d?null:_0x119cb1[_0xb672b5][_0xa19d7d(0x180)],_0x3f503e[_0xa19d7d(0x1f6)]=_0xa19d7d(0x12e)===_0x119cb1[_0xb672b5][_0xa19d7d(0x1a4)],_0x3f503e[_0xa19d7d(0x19b)]=_0x119cb1[_0xb672b5][_0xa19d7d(0x19b)],_0x3f503e;});}[_0x264939(0x177)](){const _0x5a5914=_0x264939;this[_0x5a5914(0x174)]=!0x0,this[_0x5a5914(0x171)]()?this[_0x5a5914(0x22d)]():this[_0x5a5914(0x174)]=!0x1;}[_0x264939(0x171)](){const _0x34446e=_0x264939,_0x2b43f6=this[_0x34446e(0x22a)][_0x34446e(0x170)][_0x34446e(0x19e)](_0x18961c)[_0x34446e(0x148)][_0x34446e(0x19e)](this[_0x34446e(0x17e)]);return!this[_0x34446e(0x22a)][_0x34446e(0x235)]&&!!_0x2b43f6&&_0x2b43f6[_0x34446e(0x18a)]>0x1&&this[_0x34446e(0x174)];}[_0x264939(0x219)](){const _0x90eb60=_0x264939;return this[_0x90eb60(0x1e1)][_0x90eb60(0x18a)]>0x0||this[_0x90eb60(0x171)]();}}class $ extends Error{}function K(_0x294796,_0x2739b0){const _0x2b4669=_0x264939;for(const _0x255c9a of _0x294796)_0x255c9a[_0x2b4669(0x185)]=_0x2739b0++;}class J{[_0x264939(0x14f)];[_0x264939(0x158)];constructor(_0x2ff305){const _0x42d94c=_0x264939;this[_0x42d94c(0x14f)]=_0x2ff305,this[_0x42d94c(0x158)]=new WeakMap();}[_0x264939(0x1f0)](_0x21d566){const _0x1e2784=_0x264939;let _0x1c5f9b=_0x21d566[_0x1e2784(0x18a)];for(;_0x1c5f9b--;){const _0x2a6b67=_0x21d566[_0x1c5f9b];if(!this[_0x1e2784(0x14f)][_0x1e2784(0x195)](_0x2a6b67)){if(!this[_0x1e2784(0x158)][_0x1e2784(0x195)](_0x2a6b67)){const _0x5d104c=_0x1ec591()[_0x1e2784(0x14d)](0x1,0x12);this[_0x1e2784(0x158)][_0x1e2784(0x1f2)](_0x2a6b67,_0x5d104c);}return this[_0x1e2784(0x158)][_0x1e2784(0x19e)](_0x2a6b67);}}}[_0x264939(0x1c4)](_0x509012,_0x30e0f8){const _0x3e80a2=_0x264939;if(!_0x30e0f8)return;let _0x447569=_0x509012[_0x3e80a2(0x18a)];for(;_0x447569--;){const _0x497bda=_0x509012[_0x447569];this[_0x3e80a2(0x14f)][_0x3e80a2(0x195)](_0x497bda)||this[_0x3e80a2(0x158)][_0x3e80a2(0x1f2)](_0x497bda,_0x30e0f8);}}}function _0x401c(){const _0xdff3e9=['permissions','_hasSynchronizationProblem','_sendBufferedOperations','parse','_handleReceivedOperations','_bufferedOperations','startsWith','removeFromReconnectionStack','cloudDocumentVersion','isOfficialPlugin','suppressErrorInCollaboration','_operationIdentifier','history','enqueueChange','__className','createPositionFromPath','sessionAdd:','_decompressOperations','affectedSelectable','lastOperationId','getIdOfTheLastOperation','sendOperations','set','compress','destroy','applyOperation','_isDisconnection','message','push','connect','serverHistory','requires','change:hasDomSelection','differ','realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration','offset','_isLoaded','batch','_getAffectedRoot','_connectAfterSessionHasBeenFlushed','isPremiumPlugin','stopListening','realtimecollaborationclient-init-document-already-initialized','disconnected','createPositionAt','CommentsOnly','_handleServerResponse','_clearPendingAction','realtimecollaborationclient-sendbufferedoperations','117poLvgA','realtimecollaborationclient-init-service-internal-error','3726464RSQeRx','_service','model','_isConnected','_handleReconnectionError','realtimecollaborationclient-init-connection-failed','roots','_pendingAction','_addKnownRoot','2771493jzqncq','_shouldSendUpdate','cloudServices.bundleVersion','409','_knownOperations','_disconnectService','path','sessionId','rtc-offline','size','Notification','collaboration-missing-channelid','filter','addRoot','RealTimeCollaborationClient','_handleInitialConnectionData','404','336DVkCam','editor','CollaborativeEditingService','430vQOrHM','_sendBufferedOperationsDelayed','showWarning','return','_document','stop','add','getDocumentDetails','init','isReadOnly','cs:removeUser','_crash','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.','document:write','_bufferRootLoad','define','lastDocumentSession','getConnectedSessions','isDocumentOperation','real-time-collaboration','_lastServerVersion','data','realtimecollaborationclient-error','round','rootName','root','_initSessionsHandling','currentDocumentSession','disableReadOnlyMode','_handleReconnectionResponse','_isPendingUpdate','createRoot','lastSyncVersion','selection','markers','position','channelSessions','move','addOperation','connection','The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','slice','state','_ignoredOperations','6IZJBrt','_initThrowingOnDataSet','locale','includes','addUser','Permissions','fromJSON','change:range','_operationToId','addRootAttribute','marker','_isInit','loadRoot','fire','enableReadOnlyMode','editing','affectsData','addToReconnectionStack','_isEditingAllowed','insert','isUndoneOperation','metadata','_currentBufferDelay','toJSON','multi-root-editor-root-attributes-no-root','_compressOperations','getOperations','pluginName','unregister','decompress','high','4743956QJgOkO','plugins','_shouldSendSelectionUpdate','change:_isEditingAllowed','_isAttached','_hasSelectionChanged','start','realtimecollaborationclient-init-session-connection-error','_refreshUserSelectionMarkers','_offset','getUser','wereChangesApplied','3023pwDFQf','collaboration.channelId','The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','_channelId','newRange','userId','realtimecollaborationclient-init-service-incorrect-server-operation','cloud-services-internal-error:\x20Not\x20connected.','_authorId','getRoot','baseVersion','directChange','realtimecollaborationclient-init-non-existent-root','_setUpDataInit','isEnabled','length','from','remove','4XiHuUS','off','_updateServerHistory','createRange','document','_waitUntilSynced','_sendBufferedOperationsDelayId','apply','has','map','80650wpeHYK','getMany','_compressor','_handleSendingSelectionMarkers','createdAt','$root','bind','get','attributes','lastOperationAcceptedAt','93643bUXTds','connected','rootsAttributes','type','_handleExternalOperations','targetPosition','_baseBufferDelay','finally','catch','_getOperationsFromInitData','sessionCreatedAt','_connectService','_setPendingAction','code','_knownRootNames','createUserMarkerOperations','string','realtimecollaborationclient','_lastSyncedOperationId','version','config','cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.','mySessionId','operationsReceived','_disconnectionOperations','cloud-services-internal-error:\x20Request\x20timeout.','initData','rtc-destroyed','ready','error','getOperationAuthor','realtimecollaborationclient-handleserverresponse','entries','PENDING_ACTION_SENDING_DATA','view','setIdForTheLastOperation','_loadRoot','_fetchMissingUsers','register','wasUndone','keys','clone','listenTo','disconnect','reset','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.','reconnection:\x20flushed\x20session','end','change:_isPendingUpdate','then','_saveOperationInBuffer','reconnect','143705YJqygz','collaboration','forEach','Synchronization\x20issue','_applyOperationsSet','InsertOperation','setPermissions'];_0x401c=function(){return _0xdff3e9;};return _0x401c();}
|
|
23
|
+
function _0x4363(){const _0xc6b7c9=['includes','_disconnectService','serverHistory','cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.','move','position','apply','4821111lFISJv','batch','initData','addOperation','_authorId','define','keys','start','lastSyncVersion','fromJSON','_waitUntilSynced','_setPendingAction','pluginName','_isEditingAllowed','_saveOperationInBuffer','cloudDocumentVersion','editor','parse','getRoot','_refreshUserSelectionMarkers','24krllVV','mySessionId','channelSessions','_initSessionsHandling','isUndoneOperation','getConnectedSessions','_isAttached','affectsData','entries','rtc-destroyed','change:hasDomSelection','stopListening','getUser','_isConnected','_handleReconnectionResponse','realtimecollaborationclient-init-service-incorrect-server-operation','newRange','InsertOperation','marker','startsWith','collaboration.channelId','realtimecollaborationclient-init-non-existent-root','_getOperationsFromInitData','add','setPermissions','_hasSynchronizationProblem','_loadRoot','createPositionFromPath','18158ncmtQY','_decompressOperations','realtimecollaborationclient-error','setIdForTheLastOperation','_handleServerResponse','view','register','targetPosition','realtimecollaborationclient-handleserverresponse','Synchronization\x20issue','404','RealTimeCollaborationClient','connected','permissions','_ignoredOperations','_knownOperations','isDocumentOperation','ready','_lastServerVersion','from','connect','version','isOfficialPlugin','_isDisconnection','createRoot','_shouldSendUpdate','reconnection:\x20flushed\x20session','type','_applyOperationsSet','5mqzyhH','CollaborativeEditingService','_document','userId','PENDING_ACTION_SENDING_DATA','filter','rootsAttributes','createUserMarkerOperations','9035635sgbaQF','string','reset','has','markers','requires','_addKnownRoot','operationsReceived','realtimecollaborationclient-init-service-internal-error','decompress','selection','rtc-offline','baseVersion','compress','_handleSendingSelectionMarkers','enableReadOnlyMode','_compressor','__className','get','remove','realtimecollaborationclient-init-session-connection-error','currentDocumentSession','lastDocumentSession','insert','disconnected','lastOperationId','affectedSelectable','end','document:write','differ','_connectAfterSessionHasBeenFlushed','push','_clearPendingAction','off','showWarning','unregister','cs:removeUser','Notification','realtimecollaborationclient-init-connection-failed','catch','round','locale','_crash','clone','_fetchMissingUsers','_isLoaded','_initThrowingOnDataSet','1752114rnxCxi','CommentsOnly','finally','message','5430224jjvbvT','real-time-collaboration','document','forEach','listenTo','change:_isPendingUpdate','root','getOperationAuthor','stop','_isPendingUpdate','bind','size','state','high','metadata','destroy','realtimecollaborationclient','addToReconnectionStack','_handleInitialConnectionData','createRange','_updateServerHistory','config','fire','then','getMany','cloud-services-internal-error:\x20Not\x20connected.','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.','realtimecollaborationclient-sendbufferedoperations','The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','connection','_hasSelectionChanged','enqueueChange','_currentBufferDelay','addRootAttribute','_handleExternalOperations','length','sessionAdd:','disconnect','_connectService','_isInit','suppressErrorInCollaboration','applyOperation','_sendBufferedOperations','getDocumentDetails','disableReadOnlyMode','realtimecollaborationclient-init-document-already-initialized','addUser','loadRoot','wereChangesApplied','_service','collaboration','_operationToId','5733470nTAaKO','sessionId','340128XJaiUa','set','409','isReadOnly','61anhcgc','model','createdAt','history','addRoot','error','_baseBufferDelay','_offset','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.','realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration','sendOperations','_getAffectedRoot','Permissions','_sendBufferedOperationsDelayId','_pendingAction','code','editing','The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','plugins','isEnabled','_bufferedOperations','change:range','init','multi-root-editor-root-attributes-no-root','cloudServices.bundleVersion','getOperations','_setUpDataInit','_channelId','_disconnectionOperations','_lastSyncedOperationId','lastOperationAcceptedAt','sessionCreatedAt','_operationIdentifier','_bufferRootLoad','_sendBufferedOperationsDelayed','removeFromReconnectionStack','collaboration-missing-channelid','$root','_knownRootNames','_handleReceivedOperations','_shouldSendSelectionUpdate','directChange','data','cloud-services-internal-error:\x20Request\x20timeout.','roots','wasUndone','createPositionAt','_compressOperations','_handleReconnectionError','isPremiumPlugin','getIdOfTheLastOperation','map','return','attributes','offset','change:_isEditingAllowed','slice','rootName','reconnect','path','toJSON'];_0x4363=function(){return _0xc6b7c9;};return _0x4363();}const _0x5d849d=_0xdbcd;(function(_0x54f99e,_0x3413f3){const _0x5513e8=_0xdbcd,_0x4d9a8b=_0x54f99e();while(!![]){try{const _0x5067a0=-parseInt(_0x5513e8(0x20c))/0x1*(parseInt(_0x5513e8(0x17a))/0x2)+parseInt(_0x5513e8(0x208))/0x3+-parseInt(_0x5513e8(0x1d2))/0x4*(-parseInt(_0x5513e8(0x197))/0x5)+parseInt(_0x5513e8(0x1ce))/0x6+-parseInt(_0x5513e8(0x19f))/0x7+-parseInt(_0x5513e8(0x15e))/0x8*(-parseInt(_0x5513e8(0x14a))/0x9)+-parseInt(_0x5513e8(0x206))/0xa;if(_0x5067a0===_0x3413f3)break;else _0x4d9a8b['push'](_0x4d9a8b['shift']());}catch(_0x23e085){_0x4d9a8b['push'](_0x4d9a8b['shift']());}}}(_0x4363,0xe86d1));import{Plugin as _0x1689a0,PendingActions as _0x251430}from'ckeditor5/src/core.js';import{CKEditorError as _0x2de0f4,version as _0x1fc640,uid as _0x148077}from'ckeditor5/src/utils.js';import{Notification as _0x5b8123}from'ckeditor5/src/ui.js';import{transformOperationSets as _0x311240,NoOperation as _0x3e53b5,InsertOperation as _0xf57866,MarkerOperation as _0x1082e6,RootAttributeOperation as _0x53c1f7,OperationFactory as _0x2ead6e,History as _0x516425}from'ckeditor5/src/engine.js';import{WebSocketGateway as _0x128b01}from'./websocketgateway.js';function _0xdbcd(_0x3c75cb,_0x56b4ba){const _0x436305=_0x4363();return _0xdbcd=function(_0xdbcd88,_0x4453a5){_0xdbcd88=_0xdbcd88-0x13f;let _0x786219=_0x436305[_0xdbcd88];return _0x786219;},_0xdbcd(_0x3c75cb,_0x56b4ba);}import{Sessions as _0x29d56b}from'./sessions.js';import{UserMarkers as _0x32d7c2}from'./usermarkers.js';import{getTranslation as _0x210617}from'../common-translations.js';import{Compressor as _0x520848}from'@ckeditor/ckeditor5-operations-compressor';import{Users as _0x3d2787}from'ckeditor5-collaboration/src/collaboration-core.js';import{User as _0x449b71,CollaborativeEditingService as _0x40cb60}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';let G=0x1;export class RealTimeCollaborationClient extends _0x1689a0{static [_0x5d849d(0x198)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x40cb60)());[_0x5d849d(0x213)];[_0x5d849d(0x207)];[_0x5d849d(0x145)];[_0x5d849d(0x227)];[_0x5d849d(0x203)];[_0x5d849d(0x199)];[_0x5d849d(0x1af)];[_0x5d849d(0x220)];[_0x5d849d(0x189)];[_0x5d849d(0x232)];[_0x5d849d(0x21a)];[_0x5d849d(0x1f0)];[_0x5d849d(0x219)];[_0x5d849d(0x212)];[_0x5d849d(0x1f2)];[_0x5d849d(0x229)];[_0x5d849d(0x228)];[_0x5d849d(0x22c)];static get[_0x5d849d(0x1a4)](){return[_0x128b01,_0x29d56b,_0x32d7c2,_0x251430,_0x3d2787,_0x5b8123];}static get[_0x5d849d(0x156)](){const _0x3e8415=_0x5d849d;return _0x3e8415(0x185);}static get[_0x5d849d(0x190)](){return!0x0;}static get[_0x5d849d(0x23d)](){return!0x0;}get[_0x5d849d(0x159)](){const _0x344ebc=_0x5d849d;return this[_0x344ebc(0x18c)]+this[_0x344ebc(0x213)];}get[_0x5d849d(0x18c)](){const _0x17f599=_0x5d849d;return this[_0x17f599(0x145)][_0x17f599(0x18f)]-this[_0x17f599(0x213)];}get[_0x5d849d(0x152)](){const _0x3276f4=_0x5d849d,_0x5bd6da=this[_0x3276f4(0x145)][_0x3276f4(0x225)]();for(let _0x498db2=_0x5bd6da[_0x3276f4(0x1f5)]-0x1;_0x498db2>=0x0;_0x498db2--){const _0x1724c7=_0x5bd6da[_0x498db2];if(!this[_0x3276f4(0x228)][_0x3276f4(0x1a2)](_0x1724c7))return _0x1724c7[_0x3276f4(0x1ab)]+0x1-this[_0x3276f4(0x213)];}return 0x0;}constructor(_0x11efbe){const _0x103afd=_0x5d849d;if(super(_0x11efbe),this[_0x103afd(0x213)]=0x0,this[_0x103afd(0x207)]=null,this[_0x103afd(0x145)]=new _0x516425(),this[_0x103afd(0x15a)][_0x103afd(0x1e7)][_0x103afd(0x14f)](_0x103afd(0x204),{}),this[_0x103afd(0x227)]=this[_0x103afd(0x15a)][_0x103afd(0x1e7)][_0x103afd(0x1b1)](_0x103afd(0x172)),!this[_0x103afd(0x227)])throw new _0x2de0f4(_0x103afd(0x230),this);const _0x5d1a2e=_0x11efbe[_0x103afd(0x1e7)][_0x103afd(0x1b1)](_0x103afd(0x224))||_0x1fc640;this[_0x103afd(0x203)]=new RealTimeCollaborationClient[(_0x103afd(0x198))](_0x5d1a2e,this[_0x103afd(0x227)]),this[_0x103afd(0x199)]=this[_0x103afd(0x15a)][_0x103afd(0x20d)][_0x103afd(0x1d4)],this[_0x103afd(0x1af)]=new _0x520848(),this[_0x103afd(0x220)]=[],this[_0x103afd(0x189)]=new WeakSet(),this[_0x103afd(0x232)]=new Set(),this[_0x103afd(0x209)](_0x103afd(0x1db),!0x1),this[_0x103afd(0x209)](_0x103afd(0x177),!0x1),this[_0x103afd(0x21a)]=null,this[_0x103afd(0x1f0)]=!0x1,this[_0x103afd(0x219)]=null,this[_0x103afd(0x212)]=0x12c,this[_0x103afd(0x1f2)]=this[_0x103afd(0x212)],this[_0x103afd(0x229)]=null,this[_0x103afd(0x228)]=new WeakSet(),this[_0x103afd(0x22c)]=new J(this[_0x103afd(0x228)]);}[_0x5d849d(0x222)](){const _0x21e6f2=_0x5d849d,_0x4950e6=this[_0x21e6f2(0x15a)],_0xb24196=_0x4950e6[_0x21e6f2(0x21e)][_0x21e6f2(0x1b1)](_0x3d2787),_0x5d4775=_0x4950e6[_0x21e6f2(0x21e)][_0x21e6f2(0x1b1)](_0x128b01);this[_0x21e6f2(0x1d6)](_0xb24196,_0x21e6f2(0x1d9),(_0x16996f,_0x71ff94)=>{const _0x2cadd3=_0x21e6f2,_0x1a09ae=_0x71ff94[0x0];_0x1a09ae[_0x2cadd3(0x14e)]&&(_0x16996f[_0x2cadd3(0x240)]=_0xb24196[_0x2cadd3(0x16a)](_0x1a09ae[_0x2cadd3(0x14e)]),_0x16996f[_0x2cadd3(0x1da)]()),null===_0x1a09ae[_0x2cadd3(0x14e)]&&(_0x16996f[_0x2cadd3(0x240)]=null,_0x16996f[_0x2cadd3(0x1da)]());},{'priority':_0x21e6f2(0x1df)}),this[_0x21e6f2(0x1d6)](_0x4950e6[_0x21e6f2(0x20d)][_0x21e6f2(0x1d4)][_0x21e6f2(0x1a9)],_0x21e6f2(0x221),(_0x2959ef,_0x2f4cb1)=>{const _0x544910=_0x21e6f2;_0x2f4cb1[_0x544910(0x235)]&&this[_0x544910(0x15d)]();}),this[_0x21e6f2(0x1d6)](_0x4950e6[_0x21e6f2(0x21c)][_0x21e6f2(0x17f)],_0x21e6f2(0x168),()=>{const _0x27eb7b=_0x21e6f2;this[_0x27eb7b(0x15d)]();}),this[_0x21e6f2(0x1cd)](),_0x4950e6[_0x21e6f2(0x20d)]['on'](_0x21e6f2(0x1fb),(_0x19a930,_0x1f0404)=>{const _0x10a8d7=_0x21e6f2,_0xc61a72=_0x1f0404[0x0];_0xc61a72[_0x10a8d7(0x18a)]&&(this[_0x10a8d7(0x158)](_0xc61a72),this[_0x10a8d7(0x193)]()&&this[_0x10a8d7(0x22e)]());}),this[_0x21e6f2(0x226)](),this[_0x21e6f2(0x1dc)](_0x21e6f2(0x157))['to'](_0x5d4775,_0x21e6f2(0x1de),this,_0x21e6f2(0x177),(_0x13c8ef,_0x2089b0)=>_0x21e6f2(0x186)===_0x13c8ef&&!_0x2089b0),this['on'](_0x21e6f2(0x243),()=>{const _0x52583f=_0x21e6f2;this[_0x52583f(0x157)]?_0x4950e6[_0x52583f(0x1fe)](_0x52583f(0x1aa)):_0x4950e6[_0x52583f(0x1ae)](_0x52583f(0x1aa));}),this[_0x21e6f2(0x157)]?_0x4950e6[_0x21e6f2(0x1fe)](_0x21e6f2(0x1aa)):_0x4950e6[_0x21e6f2(0x1ae)](_0x21e6f2(0x1aa)),this[_0x21e6f2(0x209)](_0x21e6f2(0x16b),!0x1);}async[_0x5d849d(0x140)](){const _0x42cff1=_0x5d849d,_0x3a0c33=this[_0x42cff1(0x15a)][_0x42cff1(0x21e)][_0x42cff1(0x1b1)](_0x29d56b),_0x24643d=this[_0x42cff1(0x15a)][_0x42cff1(0x21e)][_0x42cff1(0x1b1)](_0x128b01);try{this[_0x42cff1(0x1db)]=!0x0,_0x3a0c33[_0x42cff1(0x1c2)](this[_0x42cff1(0x227)]);const _0x568401=await this[_0x42cff1(0x203)][_0x42cff1(0x140)](_0x24643d[_0x42cff1(0x1ef)],this[_0x42cff1(0x152)]);await this[_0x42cff1(0x16c)](_0x568401)&&(this[_0x42cff1(0x1db)]=!0x1,this[_0x42cff1(0x1bf)]());const _0x1b05d7=await this[_0x42cff1(0x203)][_0x42cff1(0x163)]();_0x3a0c33[_0x42cff1(0x180)](this[_0x42cff1(0x227)],_0x1b05d7),this[_0x42cff1(0x1ad)](),this[_0x42cff1(0x16b)]=!0x0;}catch(_0x5e6136){if(function(_0x5cc422){const _0x503efe=_0x42cff1;return _0x503efe(0x184)===_0x5cc422[_0x503efe(0x21b)];}(_0x5e6136)&&this[_0x42cff1(0x207)])await this[_0x42cff1(0x1bd)]();else{if(function(_0x54176b){const _0x32c808=_0x42cff1;return _0x32c808(0x20a)===_0x54176b[_0x32c808(0x21b)];}(_0x5e6136)){const _0x9aea72=_0x210617(this[_0x42cff1(0x15a)][_0x42cff1(0x1c8)],_0x42cff1(0x1ee));this[_0x42cff1(0x23c)](_0x9aea72);}else{if(!(_0x5e6136 instanceof $))throw _0x5e6136;this[_0x42cff1(0x23c)]();}}}}[_0x5d849d(0x1e1)](){const _0x5722b1=_0x5d849d,_0x4ef05d=this[_0x5722b1(0x15a)][_0x5722b1(0x21e)][_0x5722b1(0x1b1)](_0x128b01),_0xdf607=this[_0x5722b1(0x15a)][_0x5722b1(0x21e)][_0x5722b1(0x1b1)](_0x29d56b);this[_0x5722b1(0x15a)][_0x5722b1(0x1ae)](_0x5722b1(0x167)),_0xdf607[_0x5722b1(0x160)][_0x5722b1(0x1a2)](this[_0x5722b1(0x227)])&&_0xdf607[_0x5722b1(0x1c2)](this[_0x5722b1(0x227)]),_0x4ef05d[_0x5722b1(0x22f)](this),this[_0x5722b1(0x144)](),super[_0x5722b1(0x1e1)]();}async[_0x5d849d(0x16c)](_0x852048){const _0xb00d45=_0x5d849d;if(this[_0xb00d45(0x207)]!==_0x852048[_0xb00d45(0x207)]&&this[_0xb00d45(0x229)]!==_0x852048[_0xb00d45(0x1b8)])throw new $();return this[_0xb00d45(0x207)]=_0x852048[_0xb00d45(0x207)],this[_0xb00d45(0x17e)]([],{..._0x852048,'wereChangesApplied':!0x1,'data':_0x852048[_0xb00d45(0x236)]},_0xb00d45(0x140));}async[_0x5d849d(0x1f8)](_0x2d6e37,_0x3c505d=!0x1){const _0x43a7a6=_0x5d849d,{connection:_0x5aca70}=this[_0x43a7a6(0x15a)][_0x43a7a6(0x21e)][_0x43a7a6(0x1b1)](_0x128b01);RealTimeCollaborationClient[_0x43a7a6(0x198)][_0x43a7a6(0x163)](_0x5aca70,this[_0x43a7a6(0x227)])[_0x43a7a6(0x1e9)](_0x2b9f26=>this[_0x43a7a6(0x161)](_0x2b9f26))[_0x43a7a6(0x1c6)](_0x483647=>{const _0xf07934=_0x43a7a6;this[_0xf07934(0x1c9)](_0xf07934(0x1b3),_0x483647);}),this[_0x43a7a6(0x1d6)](this[_0x43a7a6(0x203)],_0x43a7a6(0x1a6),this[_0x43a7a6(0x233)][_0x43a7a6(0x1dc)](this)),this[_0x43a7a6(0x1d6)](this[_0x43a7a6(0x203)],_0x43a7a6(0x211),(_0x38bb1f,_0x21272c)=>{const _0x2c220f=_0x43a7a6;this[_0x2c220f(0x1c9)](_0x2c220f(0x1a7),_0x21272c);}),this[_0x43a7a6(0x1d6)](this[_0x43a7a6(0x203)],_0x43a7a6(0x1b7),()=>{const _0x1284d9=_0x43a7a6;this[_0x1284d9(0x16b)]=!0x1;});const _0xc0edda=this[_0x43a7a6(0x22c)][_0x43a7a6(0x23e)](_0x2d6e37);this[_0x43a7a6(0x1db)]=!0x0;const _0x583823=await this[_0x43a7a6(0x203)][_0x43a7a6(0x18e)](_0x5aca70,this[_0x43a7a6(0x23b)](_0x2d6e37),_0xc0edda);if(this[_0x43a7a6(0x207)]=_0x583823[_0x43a7a6(0x207)],_0x3c505d){if(!_0x583823[_0x43a7a6(0x202)])return void this[_0x43a7a6(0x23c)]();this[_0x43a7a6(0x1db)]=!0x1,this[_0x43a7a6(0x1bf)](),this[_0x43a7a6(0x145)][_0x43a7a6(0x1a1)](),this[_0x43a7a6(0x213)]=_0x583823[_0x43a7a6(0x242)],this[_0x43a7a6(0x145)][_0x43a7a6(0x18f)]=this[_0x43a7a6(0x213)],await this[_0x43a7a6(0x17e)](_0x2d6e37,_0x583823,_0x43a7a6(0x194));}else await this[_0x43a7a6(0x1e4)](_0x583823,_0x2d6e37);this[_0x43a7a6(0x1ad)](),this[_0x43a7a6(0x16b)]=!0x0;}[_0x5d849d(0x1ad)](){const _0x2b1503=_0x5d849d,_0x304ee0=this[_0x2b1503(0x15a)][_0x2b1503(0x21e)][_0x2b1503(0x1b1)](_0x29d56b),_0x4a7380=this[_0x2b1503(0x15a)][_0x2b1503(0x21e)][_0x2b1503(0x1b1)](_0x32d7c2),_0x18c8d9=_0x304ee0[_0x2b1503(0x160)][_0x2b1503(0x1b1)](this[_0x2b1503(0x227)]);_0x18c8d9&&_0x18c8d9[_0x2b1503(0x1f5)]>0x1?_0x4a7380[_0x2b1503(0x19e)]():this[_0x2b1503(0x1d6)](_0x304ee0,_0x2b1503(0x1f6)+this[_0x2b1503(0x227)],()=>{const _0x26fe09=_0x2b1503;0x2===_0x304ee0[_0x26fe09(0x160)][_0x26fe09(0x1b1)](this[_0x26fe09(0x227)])[_0x26fe09(0x1f5)]&&_0x4a7380[_0x26fe09(0x19e)]();});}async[_0x5d849d(0x233)](_0x44d383,_0x3f694a,_0x3d8b83,_0x51adf3){const _0x565347=_0x5d849d;if(!this[_0x565347(0x1db)]&&this[_0x565347(0x199)][_0x565347(0x18f)]==_0x3f694a){const _0x20c32f=this[_0x565347(0x17b)](_0x3d8b83,_0x51adf3);await this[_0x565347(0x1cb)](_0x20c32f),this[_0x565347(0x1f4)](_0x20c32f,_0x3f694a,_0x3d8b83[_0x565347(0x1b8)])||this[_0x565347(0x1c9)](_0x565347(0x16d));}}async[_0x5d849d(0x1bd)](){const _0x1ba1b3=_0x5d849d;this[_0x1ba1b3(0x144)]();const {locale:_0x57dcf2}=this[_0x1ba1b3(0x15a)];let _0x8ab176;try{_0x8ab176=await this[_0x1ba1b3(0x203)][_0x1ba1b3(0x1fd)]();}catch{const _0x279422=_0x210617(_0x57dcf2,_0x1ba1b3(0x21d));return void this[_0x1ba1b3(0x23c)](_0x279422);}const _0x412393=_0x8ab176[_0x1ba1b3(0x1b4)]||_0x8ab176[_0x1ba1b3(0x1b5)];if(this[_0x1ba1b3(0x229)]!==_0x412393[_0x1ba1b3(0x1b8)]){const _0x1eebf9=_0x210617(_0x57dcf2,_0x1ba1b3(0x214));return void this[_0x1ba1b3(0x23c)](_0x1eebf9);}await this[_0x1ba1b3(0x1f8)](this[_0x1ba1b3(0x15a)][_0x1ba1b3(0x20d)][_0x1ba1b3(0x1d4)][_0x1ba1b3(0x20f)][_0x1ba1b3(0x225)](),!0x0);}[_0x5d849d(0x144)](){const _0x593194=_0x5d849d;this[_0x593194(0x203)][_0x593194(0x1f7)](),this[_0x593194(0x220)]=[],clearTimeout(this[_0x593194(0x219)]),this[_0x593194(0x169)](this[_0x593194(0x203)]);}[_0x5d849d(0x161)](_0x4bd676){const _0x53dceb=_0x5d849d,_0x533388=this[_0x53dceb(0x15a)][_0x53dceb(0x21e)][_0x53dceb(0x1b1)](_0x29d56b);this[_0x53dceb(0x1d6)](_0x533388,_0x53dceb(0x1f6)+this[_0x53dceb(0x227)],(_0x28d0c6,{session:_0x4dc4b7})=>{const _0x1ae7ec=_0x53dceb;if(_0x4dc4b7['id']===_0x533388[_0x1ae7ec(0x15f)]){_0x28d0c6[_0x1ae7ec(0x1c0)]();const _0x2e6f21=this[_0x1ae7ec(0x15a)][_0x1ae7ec(0x21e)][_0x1ae7ec(0x1a2)](_0x1ae7ec(0x1cf))&&this[_0x1ae7ec(0x15a)][_0x1ae7ec(0x21e)][_0x1ae7ec(0x1b1)](_0x1ae7ec(0x1cf));let _0x55aedc=_0x4dc4b7[_0x1ae7ec(0x187)];_0x2e6f21&&_0x2e6f21[_0x1ae7ec(0x21f)]&&(_0x55aedc=_0x55aedc[_0x1ae7ec(0x19c)](_0x1d7620=>_0x1ae7ec(0x1bb)!==_0x1d7620)),this[_0x1ae7ec(0x15a)][_0x1ae7ec(0x21e)][_0x1ae7ec(0x1b1)](_0x1ae7ec(0x218))[_0x1ae7ec(0x176)](_0x55aedc,this[_0x1ae7ec(0x227)]);}}),_0x533388[_0x53dceb(0x180)](this[_0x53dceb(0x227)],_0x4bd676);}[_0x5d849d(0x1cd)](){const _0x205c06=_0x5d849d,_0x189314=this[_0x205c06(0x15a)][_0x205c06(0x236)][_0x205c06(0x209)];this[_0x205c06(0x15a)][_0x205c06(0x236)][_0x205c06(0x209)]=(..._0x4554d3)=>{const _0x4415a0=_0x205c06;if(!_0x4554d3[_0x4554d3[_0x4415a0(0x1f5)]-0x1][_0x4415a0(0x1fa)])throw new _0x2de0f4(_0x4415a0(0x215),this);_0x189314[_0x4415a0(0x149)](this[_0x4415a0(0x15a)][_0x4415a0(0x236)],_0x4554d3);};}[_0x5d849d(0x226)](){const _0x4754ab=_0x5d849d;this[_0x4754ab(0x15a)][_0x4754ab(0x236)]['on'](_0x4754ab(0x222),(_0x4c5b40,[_0x4f041f])=>{const _0x424660=_0x4754ab;if(this[_0x424660(0x199)][_0x424660(0x18f)])throw new _0x2de0f4(_0x424660(0x1ff),this);_0x4c5b40[_0x424660(0x1da)](),this[_0x424660(0x155)]();const _0x3d7d22=this[_0x424660(0x15a)][_0x424660(0x1e7)][_0x424660(0x1b1)](_0x424660(0x19d)),_0x55e956=this[_0x424660(0x174)](_0x4f041f,_0x3d7d22);0x0==_0x55e956[_0x424660(0x1f5)]&&_0x55e956[_0x424660(0x1be)](new _0x3e53b5(0x0)),_0x4c5b40[_0x424660(0x240)]=this[_0x424660(0x1f8)](_0x55e956)[_0x424660(0x1e9)](()=>{const _0x59d437=_0x424660;this[_0x59d437(0x15a)][_0x59d437(0x21e)][_0x59d437(0x1b1)](_0x128b01)[_0x59d437(0x1e3)](this),this[_0x59d437(0x15a)][_0x59d437(0x236)][_0x59d437(0x1e8)](_0x59d437(0x18b));})[_0x424660(0x1c6)](_0x3f8d95=>this[_0x424660(0x1c9)](_0x424660(0x1c5),_0x3f8d95))[_0x424660(0x1d0)](()=>this[_0x424660(0x1bf)]());},{'priority':_0x4754ab(0x1df)}),this[_0x4754ab(0x15a)]['on'](_0x4754ab(0x201),async(_0x5a7f5c,[_0x522aa9,_0x36c064])=>{const _0x200eaf=_0x4754ab;_0x5a7f5c[_0x200eaf(0x1da)]();const _0x13cd7e=this[_0x200eaf(0x15a)][_0x200eaf(0x20d)][_0x200eaf(0x1d4)][_0x200eaf(0x15c)](_0x522aa9);if(!this[_0x200eaf(0x232)][_0x200eaf(0x1a2)](_0x522aa9)){const _0x1560d6=_0x36c064&&_0x36c064[_0x200eaf(0x236)]?_0x36c064[_0x200eaf(0x236)]:'',_0x483249=_0x36c064&&_0x36c064[_0x200eaf(0x241)]?_0x36c064[_0x200eaf(0x241)]:{};await this[_0x200eaf(0x178)](_0x522aa9,_0x1560d6,_0x483249);}this[_0x200eaf(0x15a)][_0x200eaf(0x20d)][_0x200eaf(0x1f1)]({'isUndoable':!0x1},()=>{const _0x36fd7e=_0x200eaf;_0x13cd7e[_0x36fd7e(0x1cc)]=!0x0,this[_0x36fd7e(0x15a)][_0x36fd7e(0x20d)][_0x36fd7e(0x1d4)][_0x36fd7e(0x1bc)][_0x36fd7e(0x22d)](_0x13cd7e);});},{'priority':_0x4754ab(0x1df)});}async[_0x5d849d(0x1cb)](_0x1536fc){const _0x3be7bb=_0x5d849d,_0x205ed0=this[_0x3be7bb(0x15a)][_0x3be7bb(0x21e)][_0x3be7bb(0x1b1)](_0x3d2787),{connection:_0x6050fd}=this[_0x3be7bb(0x15a)][_0x3be7bb(0x21e)][_0x3be7bb(0x1b1)](_0x128b01),_0x23e1a5=new Set();for(const _0x383ad7 of _0x1536fc){const _0x3f08aa=_0x383ad7[_0x3be7bb(0x14e)];_0x3f08aa&&!_0x205ed0[_0x3be7bb(0x16a)](_0x3f08aa)&&_0x23e1a5[_0x3be7bb(0x175)](_0x3f08aa);}if(0x0===_0x23e1a5[_0x3be7bb(0x1dd)])return;const _0x5849b0=await _0x449b71[_0x3be7bb(0x1ea)](_0x6050fd,Array[_0x3be7bb(0x18d)](_0x23e1a5));for(const _0x450725 of _0x5849b0)_0x205ed0[_0x3be7bb(0x16a)](_0x450725['id'])||_0x205ed0[_0x3be7bb(0x200)](_0x450725);}[_0x5d849d(0x174)](_0x47da10,_0x2cfc0e={}){const _0x27f07f=_0x5d849d,_0x102149=this[_0x27f07f(0x15a)][_0x27f07f(0x20d)],_0x14166b=[];let _0x424950=0x0;const _0x241a84=_0x27f07f(0x1a0)==typeof _0x47da10?{'main':_0x47da10}:_0x47da10;for(const _0x56716d of Object[_0x27f07f(0x150)](_0x241a84)){if(!this[_0x27f07f(0x199)][_0x27f07f(0x238)][_0x27f07f(0x1a2)](_0x56716d))throw new _0x2de0f4(_0x27f07f(0x173),this);const _0x24812c=this[_0x27f07f(0x15a)][_0x27f07f(0x236)][_0x27f07f(0x15b)](_0x241a84[_0x56716d]),_0x444118=this[_0x27f07f(0x199)][_0x27f07f(0x15c)](_0x56716d),_0x136658=new _0xf57866(_0x102149[_0x27f07f(0x23a)](_0x444118,0x0),_0x24812c,_0x424950++);_0x14166b[_0x27f07f(0x1be)](_0x136658);for(const [_0x2e65bf,_0x6c3a04]of _0x24812c[_0x27f07f(0x1a3)]){const _0x49a23e=_0x102149[_0x27f07f(0x1e5)](_0x102149[_0x27f07f(0x179)](_0x444118,_0x6c3a04[_0x27f07f(0x151)][_0x27f07f(0x141)][_0x27f07f(0x244)]()),_0x102149[_0x27f07f(0x179)](_0x444118,_0x6c3a04[_0x27f07f(0x1ba)][_0x27f07f(0x141)][_0x27f07f(0x244)]())),_0x168dba=new _0x1082e6(_0x2e65bf,null,_0x49a23e,_0x102149[_0x27f07f(0x1a3)],!0x0,_0x424950++);_0x14166b[_0x27f07f(0x1be)](_0x168dba);}}if(_0x2cfc0e)for(const [_0x179fe5,_0x466475]of Object[_0x27f07f(0x166)](_0x2cfc0e)){const _0xa5a699=_0x102149[_0x27f07f(0x1d4)][_0x27f07f(0x15c)](_0x179fe5);if(!_0xa5a699)throw new _0x2de0f4(_0x27f07f(0x223),null);for(const [_0x537b59,_0x439b4a]of Object[_0x27f07f(0x166)](_0x466475))if(null!==_0x439b4a){const _0x11c011=new _0x53c1f7(_0xa5a699,_0x537b59,null,_0x439b4a,_0x424950++);_0x14166b[_0x27f07f(0x1be)](_0x11c011);}}return _0x14166b;}async[_0x5d849d(0x178)](_0x1dd5f2,_0x5ce683,_0x14aaa5){const _0x303639=_0x5d849d;this[_0x303639(0x174)]({[_0x1dd5f2]:_0x5ce683},{[_0x1dd5f2]:_0x14aaa5})[_0x303639(0x1d5)]((_0x1403f8,_0x4502c8)=>{const _0x558a75=_0x303639;_0x1403f8[_0x558a75(0x1ab)]=this[_0x558a75(0x199)][_0x558a75(0x18f)]+_0x4502c8,_0x1403f8[_0x558a75(0x1f9)]=!0x0,this[_0x558a75(0x158)](_0x1403f8);}),this[_0x303639(0x22e)](),await this[_0x303639(0x154)]();}async[_0x5d849d(0x1e4)](_0x164600,_0xfc4f62){const _0x28a96d=_0x5d849d;let _0x2c85fa;this[_0x28a96d(0x213)]=_0x164600[_0x28a96d(0x242)];const _0x52f150=_0x164600[_0x28a96d(0x202)]&&!_0x164600[_0x28a96d(0x14c)],_0x57b5fc=_0x52f150?0x0:_0x164600[_0x28a96d(0x236)][_0x28a96d(0x1ab)];if(_0xfc4f62[_0x28a96d(0x1d5)](_0x4bafcc=>{const _0x1aa9df=_0x28a96d;_0x4bafcc[_0x1aa9df(0x1f9)]=!0x0,_0x4bafcc[_0x1aa9df(0x20e)]=_0x164600[_0x1aa9df(0x22b)],_0x4bafcc[_0x1aa9df(0x14e)]=null;}),_0x52f150)_0x2c85fa=_0xfc4f62,this[_0x28a96d(0x196)](_0x2c85fa,_0x52f150);else{if(_0x164600[_0x28a96d(0x14c)]){const _0x495d4b=this[_0x28a96d(0x174)](_0x164600[_0x28a96d(0x14c)]);this[_0x28a96d(0x199)][_0x28a96d(0x20f)][_0x28a96d(0x18f)]=-_0x495d4b[_0x28a96d(0x1f5)],_0x495d4b[_0x28a96d(0x1d5)](_0x5ab2de=>{const _0x3d4105=_0x28a96d;_0x5ab2de[_0x3d4105(0x1ab)]-=_0x495d4b[_0x3d4105(0x1f5)],_0x5ab2de[_0x3d4105(0x20e)]=_0x164600[_0x3d4105(0x22b)],_0x5ab2de[_0x3d4105(0x1f9)]=!0x0,_0x5ab2de[_0x3d4105(0x14e)]=null;}),this[_0x28a96d(0x196)](_0x495d4b,!0x0),this[_0x28a96d(0x145)][_0x28a96d(0x18f)]=-_0x495d4b[_0x28a96d(0x1f5)]+this[_0x28a96d(0x213)],this[_0x28a96d(0x1e6)](_0x495d4b);}this[_0x28a96d(0x199)][_0x28a96d(0x20f)][_0x28a96d(0x18f)]=_0x57b5fc,_0x2c85fa=this[_0x28a96d(0x17b)](_0x164600[_0x28a96d(0x236)],_0x164600[_0x28a96d(0x1e0)]),await this[_0x28a96d(0x1cb)](_0x2c85fa),this[_0x28a96d(0x196)](_0x2c85fa,_0x52f150);}_0x164600[_0x28a96d(0x1b8)]&&(this[_0x28a96d(0x22c)][_0x28a96d(0x17d)](_0x2c85fa,_0x164600[_0x28a96d(0x1b8)]),this[_0x28a96d(0x229)]=_0x164600[_0x28a96d(0x1b8)]),this[_0x28a96d(0x145)][_0x28a96d(0x18f)]=_0x57b5fc+this[_0x28a96d(0x213)],this[_0x28a96d(0x1e6)](_0x2c85fa),_0xfc4f62[_0x28a96d(0x19c)](_0x58bfb4=>{const _0x484e19=_0x28a96d,_0x11e4a7=this[_0x484e19(0x217)](_0x58bfb4);return _0x11e4a7&&!this[_0x484e19(0x232)][_0x484e19(0x1a2)](_0x11e4a7);})[_0x28a96d(0x1d5)]((_0x56f296,_0x4b27d6)=>{const _0x2d8378=_0x28a96d;_0x56f296[_0x2d8378(0x1ab)]=this[_0x2d8378(0x199)][_0x2d8378(0x18f)]+_0x4b27d6,this[_0x2d8378(0x158)](_0x56f296);}),this[_0x28a96d(0x193)]()?(this[_0x28a96d(0x1f2)]=0x0,this[_0x28a96d(0x22e)](!0x0),await this[_0x28a96d(0x154)]()):(this[_0x28a96d(0x1db)]=!0x1,this[_0x28a96d(0x1bf)]());}[_0x5d849d(0x1c9)](_0x1cb7d9,_0x12b1fc){const _0x53fea0=_0x5d849d,_0x15afdb=_0x12b1fc&&_0x12b1fc[_0x53fea0(0x1d1)];if(_0x15afdb&&_0x15afdb[_0x53fea0(0x171)](_0x53fea0(0x1e2)))throw _0x12b1fc;const _0x3d0cad=this[_0x53fea0(0x15a)][_0x53fea0(0x21e)][_0x53fea0(0x1b1)](_0x128b01);throw this[_0x53fea0(0x1db)]=!0x0,_0x3d0cad[_0x53fea0(0x1f7)](),this[_0x53fea0(0x15a)][_0x53fea0(0x1ae)](_0x53fea0(0x17c)),new _0x2de0f4(_0x1cb7d9,this[_0x53fea0(0x15a)],_0x15afdb?{'originalError':_0x15afdb}:void 0x0);}[_0x5d849d(0x158)](_0x399e7c){const _0x116e9c=_0x5d849d;this[_0x116e9c(0x189)][_0x116e9c(0x1a2)](_0x399e7c)||(this[_0x116e9c(0x189)][_0x116e9c(0x175)](_0x399e7c),this[_0x116e9c(0x220)][_0x116e9c(0x1be)](_0x399e7c),this[_0x116e9c(0x21a)]||_0x116e9c(0x170)==_0x399e7c[_0x116e9c(0x195)]&&!_0x399e7c[_0x116e9c(0x165)]||this[_0x116e9c(0x155)]());}[_0x5d849d(0x22e)](_0xc64c55=!0x1){const _0x3cc884=_0x5d849d;!_0xc64c55&&this[_0x3cc884(0x1db)]||(this[_0x3cc884(0x1db)]=!0x0,clearTimeout(this[_0x3cc884(0x219)]),this[_0x3cc884(0x219)]=setTimeout(()=>{const _0x545df8=_0x3cc884;this[_0x545df8(0x1fc)]()[_0x545df8(0x1e9)](_0x191d05=>{const _0x215630=_0x545df8;_0x191d05&&(this[_0x215630(0x1bf)](),this[_0x215630(0x1db)]=!0x1);})[_0x545df8(0x1c6)](_0x5c9ec0=>{const _0x1e30c0=_0x545df8;this[_0x1e30c0(0x1bf)](),this[_0x1e30c0(0x1db)]=!0x1,function(_0x4326a3){const _0x2730a3=_0x1e30c0;return _0x4326a3[_0x2730a3(0x1d1)][_0x2730a3(0x171)](_0x2730a3(0x1eb))||_0x4326a3[_0x2730a3(0x1d1)][_0x2730a3(0x171)](_0x2730a3(0x146))||_0x4326a3[_0x2730a3(0x1d1)][_0x2730a3(0x171)](_0x2730a3(0x237));}(_0x5c9ec0)||this[_0x1e30c0(0x1c9)](_0x5c9ec0[_0x1e30c0(0x1d1)],_0x5c9ec0);});},this[_0x3cc884(0x1f2)]));}[_0x5d849d(0x154)](){return new Promise(_0x58c951=>{const _0x5bb355=_0xdbcd;this['on'](_0x5bb355(0x1d7),()=>{_0x58c951();});});}async[_0x5d849d(0x1fc)](){const _0x5fa38=_0x5d849d,_0x37f052=this[_0x5fa38(0x15a)][_0x5fa38(0x21e)][_0x5fa38(0x1b1)](_0x32d7c2);if(this[_0x5fa38(0x234)]()&&(_0x37f052[_0x5fa38(0x19e)](),this[_0x5fa38(0x1f0)]=!0x1),!this[_0x5fa38(0x193)]())return!0x0;const _0x30690b=[...this[_0x5fa38(0x220)]];for(const _0x319f9a of _0x30690b)_0x319f9a[_0x5fa38(0x239)]=this[_0x5fa38(0x199)][_0x5fa38(0x20f)][_0x5fa38(0x162)](_0x319f9a);const _0x33f5d7=this[_0x5fa38(0x22c)][_0x5fa38(0x23e)](_0x30690b),_0x1c12f7=G++,_0x4119c=this[_0x5fa38(0x23b)](_0x30690b),_0x5cbbb2=await this[_0x5fa38(0x203)][_0x5fa38(0x216)](_0x4119c,_0x4119c[_0x5fa38(0x1ab)],_0x33f5d7);try{return await this[_0x5fa38(0x17e)](_0x30690b,_0x5cbbb2,_0x1c12f7);}catch(_0x423585){return this[_0x5fa38(0x1c9)](_0x5fa38(0x1ed),_0x423585);}}async[_0x5d849d(0x17e)](_0x1b5a78,_0x4c00be,_0x529c35){const _0x30b7fc=_0x5d849d;if(_0x30b7fc(0x211)in _0x4c00be)throw _0x4c00be[_0x30b7fc(0x211)];let _0x13a533=!0x1;if(_0x4c00be[_0x30b7fc(0x202)]){_0x4c00be[_0x30b7fc(0x1b8)]&&(this[_0x30b7fc(0x229)]=_0x4c00be[_0x30b7fc(0x1b8)]),this[_0x30b7fc(0x220)]=this[_0x30b7fc(0x220)][_0x30b7fc(0x19c)](_0x287e7e=>!_0x1b5a78[_0x30b7fc(0x143)](_0x287e7e));for(const _0x59daf4 of _0x1b5a78)_0x59daf4[_0x30b7fc(0x20e)]=_0x30b7fc(0x22a)in _0x4c00be&&_0x4c00be[_0x30b7fc(0x22a)]||void 0x0;K(_0x1b5a78,_0x4c00be[_0x30b7fc(0x18f)]-_0x1b5a78[_0x30b7fc(0x1f5)]),this[_0x30b7fc(0x1e6)](_0x1b5a78);const _0x4b90c5=_0x1b5a78[_0x30b7fc(0x19c)](_0x3144b4=>{const _0x345162=_0x30b7fc;if(!_0x3144b4[_0x345162(0x1f9)])return!0x1;const _0x1038f9=this[_0x345162(0x217)](_0x3144b4);return _0x1038f9&&!this[_0x345162(0x232)][_0x345162(0x1a2)](_0x1038f9);});K(_0x4b90c5,this[_0x30b7fc(0x199)][_0x30b7fc(0x18f)]),this[_0x30b7fc(0x196)](_0x4b90c5),_0x13a533=!0x0,this[_0x30b7fc(0x1f2)]=this[_0x30b7fc(0x212)];}else{const _0x2c07d9=this[_0x30b7fc(0x17b)](_0x4c00be[_0x30b7fc(0x236)],_0x4c00be[_0x30b7fc(0x1e0)])[_0x30b7fc(0x19c)](_0x5ef529=>_0x5ef529[_0x30b7fc(0x1ab)]>=this[_0x30b7fc(0x18c)]);_0x2c07d9[_0x30b7fc(0x1d5)](_0x5ebb05=>this[_0x30b7fc(0x1a5)](_0x5ebb05)),this[_0x30b7fc(0x220)]=this[_0x30b7fc(0x220)][_0x30b7fc(0x19c)](_0x1d2800=>!_0x1d2800[_0x30b7fc(0x1f9)]||!this[_0x30b7fc(0x232)][_0x30b7fc(0x1a2)](this[_0x30b7fc(0x217)](_0x1d2800))),this[_0x30b7fc(0x220)][_0x30b7fc(0x1f5)]&&K(this[_0x30b7fc(0x220)],this[_0x30b7fc(0x220)][0x0][_0x30b7fc(0x1ab)]),await this[_0x30b7fc(0x1cb)](_0x2c07d9),_0x13a533=this[_0x30b7fc(0x1f4)](_0x2c07d9,_0x4c00be[_0x30b7fc(0x18f)],_0x4c00be[_0x30b7fc(0x1b8)]),this[_0x30b7fc(0x1f2)]=Math[_0x30b7fc(0x1c7)](this[_0x30b7fc(0x1f2)]/0x2);}return _0x13a533?!this[_0x30b7fc(0x193)]()||(this[_0x30b7fc(0x22e)](!0x0),!0x1):this[_0x30b7fc(0x1c9)](_0x30b7fc(0x182));}[_0x5d849d(0x1f4)](_0x418a4c,_0x1976da,_0x3627c9){const _0x3d15f1=_0x5d849d;try{const _0x551bcb={'document':this[_0x3d15f1(0x199)],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x506363,operationsB:_0x4f067b,originalOperations:_0x4eb3b0}=_0x311240(_0x418a4c,this[_0x3d15f1(0x220)],_0x551bcb);K(_0x506363,this[_0x3d15f1(0x199)][_0x3d15f1(0x18f)]),K(_0x4f067b,_0x1976da);for(const _0x442481 of _0x506363){const _0x21e1f6=_0x4eb3b0[_0x3d15f1(0x1b1)](_0x442481);_0x442481[_0x3d15f1(0x14e)]=_0x21e1f6?_0x21e1f6[_0x3d15f1(0x14e)]:null;}_0x3627c9&&(this[_0x3d15f1(0x22c)][_0x3d15f1(0x17d)](_0x418a4c,_0x3627c9),this[_0x3d15f1(0x229)]=_0x3627c9),this[_0x3d15f1(0x220)]=[..._0x4f067b],this[_0x3d15f1(0x196)](_0x506363),this[_0x3d15f1(0x1e6)](_0x418a4c);}catch(_0xd616be){return console[_0x3d15f1(0x211)](_0xd616be),!0x1;}return!0x0;}[_0x5d849d(0x196)](_0x15ff0b,_0x5245c9=!0x1){const _0x46bce1=_0x5d849d;this[_0x46bce1(0x15a)][_0x46bce1(0x20d)][_0x46bce1(0x1f1)]({'isUndoable':!0x1,'isLocal':!0x1},_0x6e9f15=>{const _0x5b2612=_0x46bce1;for(const _0x6d456c of _0x15ff0b)this[_0x5b2612(0x189)][_0x5b2612(0x175)](_0x6d456c),this[_0x5b2612(0x1a5)](_0x6d456c),_0x6e9f15[_0x5b2612(0x14b)][_0x5b2612(0x14d)](_0x6d456c),this[_0x5b2612(0x15a)][_0x5b2612(0x20d)][_0x5b2612(0x1fb)](_0x6d456c);});}[_0x5d849d(0x1a5)](_0x1bab72){const _0x17e01e=_0x5d849d,_0x1acdd4=this[_0x17e01e(0x217)](_0x1bab72);_0x1acdd4&&this[_0x17e01e(0x232)][_0x17e01e(0x175)](_0x1acdd4);}[_0x5d849d(0x217)](_0x3d5bc1){const _0x5c547a=_0x5d849d;let _0x28042b,_0x8ab51;switch(_0x3d5bc1[_0x5c547a(0x195)]){case _0x5c547a(0x1b6):_0x28042b=_0x3d5bc1[_0x5c547a(0x148)][_0x5c547a(0x1d8)];break;case _0x5c547a(0x170):if(_0x8ab51=_0x3d5bc1[_0x5c547a(0x16e)],!_0x8ab51)return null;_0x28042b=_0x8ab51[_0x5c547a(0x1d8)];break;case _0x5c547a(0x1f3):_0x28042b=_0x3d5bc1[_0x5c547a(0x1d8)];break;case _0x5c547a(0x210):_0x28042b=_0x3d5bc1[_0x5c547a(0x1b9)];break;case _0x5c547a(0x147):_0x28042b=_0x3d5bc1[_0x5c547a(0x181)][_0x5c547a(0x1d8)];break;default:return null;}return _0x28042b[_0x5c547a(0x13f)];}[_0x5d849d(0x1e6)](_0x282af2){const _0x100a20=_0x5d849d;_0x282af2[_0x100a20(0x1d5)](_0x29cdbf=>{const _0x5ce4c8=_0x100a20,_0x5e7e69=_0x29cdbf[_0x5ce4c8(0x1ca)]();_0x5e7e69[_0x5ce4c8(0x14e)]=_0x29cdbf[_0x5ce4c8(0x14e)],_0x5e7e69[_0x5ce4c8(0x1f9)]=!!_0x29cdbf[_0x5ce4c8(0x1f9)],_0x5e7e69[_0x5ce4c8(0x20e)]=_0x29cdbf[_0x5ce4c8(0x20e)],_0x5e7e69[_0x5ce4c8(0x1ab)]+=this[_0x5ce4c8(0x213)],_0x29cdbf[_0x5ce4c8(0x191)]&&this[_0x5ce4c8(0x228)][_0x5ce4c8(0x175)](_0x5e7e69),this[_0x5ce4c8(0x145)][_0x5ce4c8(0x14d)](_0x5e7e69);});}[_0x5d849d(0x23c)](_0x1a8388){const _0x4e9da0=_0x5d849d,_0x112283=this[_0x4e9da0(0x15a)][_0x4e9da0(0x21e)][_0x4e9da0(0x1b1)](_0x4e9da0(0x1c4)),_0x252a5a=this[_0x4e9da0(0x15a)][_0x4e9da0(0x1c8)];_0x1a8388||(_0x1a8388=_0x210617(_0x252a5a,_0x4e9da0(0x1ec))),_0x112283[_0x4e9da0(0x1c1)](_0x1a8388,{'title':_0x210617(_0x252a5a,_0x4e9da0(0x183)),'namespace':_0x4e9da0(0x1d3)}),this[_0x4e9da0(0x177)]=!0x0,clearTimeout(this[_0x4e9da0(0x219)]),this[_0x4e9da0(0x220)]=[],this[_0x4e9da0(0x15a)][_0x4e9da0(0x21e)][_0x4e9da0(0x1b1)](_0x128b01)[_0x4e9da0(0x1f7)]();}[_0x5d849d(0x155)](){const _0x128f52=_0x5d849d;this[_0x128f52(0x21a)]||(this[_0x128f52(0x21a)]=this[_0x128f52(0x15a)][_0x128f52(0x21e)][_0x128f52(0x1b1)](_0x251430)[_0x128f52(0x175)](_0x210617(this[_0x128f52(0x15a)][_0x128f52(0x1c8)],_0x128f52(0x19b))));}[_0x5d849d(0x1bf)](){const _0x1ea062=_0x5d849d;this[_0x1ea062(0x21a)]&&(this[_0x1ea062(0x15a)][_0x1ea062(0x21e)][_0x1ea062(0x1b1)](_0x251430)[_0x1ea062(0x1b2)](this[_0x1ea062(0x21a)]),this[_0x1ea062(0x21a)]=null);}[_0x5d849d(0x23b)](_0x7f1e5c){const _0xd5d11b=_0x5d849d,_0x478262=_0x7f1e5c[_0xd5d11b(0x23f)](_0xbbcae2=>_0xbbcae2[_0xd5d11b(0x142)]());return this[_0xd5d11b(0x1af)][_0xd5d11b(0x1ac)](_0x478262);}[_0x5d849d(0x17b)](_0x1c58b1,_0x416d15){const _0x23395a=_0x5d849d;return this[_0x23395a(0x1af)][_0x23395a(0x1a8)](_0x1c58b1)[_0x23395a(0x23f)]((_0x2c4b80,_0x3d44f5)=>{const _0x4faeaf=_0x23395a,_0x406498=_0x4faeaf(0x222)==_0x416d15[_0x3d44f5][_0x4faeaf(0x195)];if(_0x4faeaf(0x16f)==_0x2c4b80[_0x4faeaf(0x1b0)]){const _0x21398d=_0x2c4b80[_0x4faeaf(0x148)][_0x4faeaf(0x1d8)];!this[_0x4faeaf(0x199)][_0x4faeaf(0x15c)](_0x21398d)&&(this[_0x4faeaf(0x199)][_0x4faeaf(0x192)](_0x4faeaf(0x231),_0x21398d)[_0x4faeaf(0x164)]=!0x1);}const _0x1de9a9=_0x2ead6e[_0x4faeaf(0x153)](_0x2c4b80,this[_0x4faeaf(0x199)]);return _0x1de9a9[_0x4faeaf(0x239)]=_0x2c4b80[_0x4faeaf(0x239)],_0x1de9a9[_0x4faeaf(0x1f9)]=_0x406498,_0x1de9a9[_0x4faeaf(0x14e)]=_0x406498?null:_0x416d15[_0x3d44f5][_0x4faeaf(0x19a)],_0x1de9a9[_0x4faeaf(0x191)]=_0x4faeaf(0x1c3)===_0x416d15[_0x3d44f5][_0x4faeaf(0x195)],_0x1de9a9[_0x4faeaf(0x20e)]=_0x416d15[_0x3d44f5][_0x4faeaf(0x20e)],_0x1de9a9;});}[_0x5d849d(0x15d)](){const _0x5456d5=_0x5d849d;this[_0x5456d5(0x1f0)]=!0x0,this[_0x5456d5(0x234)]()?this[_0x5456d5(0x22e)]():this[_0x5456d5(0x1f0)]=!0x1;}[_0x5d849d(0x234)](){const _0x25d6d7=_0x5d849d,_0x24cba5=this[_0x25d6d7(0x15a)][_0x25d6d7(0x21e)][_0x25d6d7(0x1b1)](_0x29d56b)[_0x25d6d7(0x160)][_0x25d6d7(0x1b1)](this[_0x25d6d7(0x227)]);return!this[_0x25d6d7(0x15a)][_0x25d6d7(0x20b)]&&!!_0x24cba5&&_0x24cba5[_0x25d6d7(0x1f5)]>0x1&&this[_0x25d6d7(0x1f0)];}[_0x5d849d(0x193)](){const _0x502565=_0x5d849d;return this[_0x502565(0x220)][_0x502565(0x1f5)]>0x0||this[_0x502565(0x234)]();}}class $ extends Error{}function K(_0x27a5b3,_0x1cfcbc){const _0xc062ba=_0x5d849d;for(const _0x35ca4c of _0x27a5b3)_0x35ca4c[_0xc062ba(0x1ab)]=_0x1cfcbc++;}class J{[_0x5d849d(0x188)];[_0x5d849d(0x205)];constructor(_0x50cd40){const _0xfa9b50=_0x5d849d;this[_0xfa9b50(0x188)]=_0x50cd40,this[_0xfa9b50(0x205)]=new WeakMap();}[_0x5d849d(0x23e)](_0x3fc818){const _0x260ecd=_0x5d849d;let _0x161e35=_0x3fc818[_0x260ecd(0x1f5)];for(;_0x161e35--;){const _0x197cc8=_0x3fc818[_0x161e35];if(!this[_0x260ecd(0x188)][_0x260ecd(0x1a2)](_0x197cc8)){if(!this[_0x260ecd(0x205)][_0x260ecd(0x1a2)](_0x197cc8)){const _0x32ee48=_0x148077()[_0x260ecd(0x244)](0x1,0x12);this[_0x260ecd(0x205)][_0x260ecd(0x209)](_0x197cc8,_0x32ee48);}return this[_0x260ecd(0x205)][_0x260ecd(0x1b1)](_0x197cc8);}}}[_0x5d849d(0x17d)](_0x2dc969,_0x5aca31){const _0x5558be=_0x5d849d;if(!_0x5aca31)return;let _0x4616b3=_0x2dc969[_0x5558be(0x1f5)];for(;_0x4616b3--;){const _0x220def=_0x2dc969[_0x4616b3];this[_0x5558be(0x188)][_0x5558be(0x1a2)](_0x220def)||this[_0x5558be(0x205)][_0x5558be(0x209)](_0x220def,_0x5aca31);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a6fba=_0x18cb;(function(_0x9250d4,_0x164743){const _0x575311=_0x18cb,_0x525e70=_0x9250d4();while(!![]){try{const _0x1e4f85=-parseInt(_0x575311(0xe1))/0x1+parseInt(_0x575311(0xf0))/0x2+-parseInt(_0x575311(0xed))/0x3*(-parseInt(_0x575311(0x11a))/0x4)+-parseInt(_0x575311(0x101))/0x5+parseInt(_0x575311(0xfd))/0x6+parseInt(_0x575311(0xe5))/0x7+parseInt(_0x575311(0xee))/0x8*(-parseInt(_0x575311(0x114))/0x9);if(_0x1e4f85===_0x164743)break;else _0x525e70['push'](_0x525e70['shift']());}catch(_0x56631d){_0x525e70['push'](_0x525e70['shift']());}}}(_0x5568,0x29e29));import{ContextPlugin as _0x14815c}from'ckeditor5/src/core.js';function _0x18cb(_0x2a8819,_0xa07134){const _0x55680c=_0x5568();return _0x18cb=function(_0x18cb80,_0x6560dc){_0x18cb80=_0x18cb80-0xe1;let _0x46825c=_0x55680c[_0x18cb80];return _0x46825c;},_0x18cb(_0x2a8819,_0xa07134);}import{Collection as _0x27c6f2,CKEditorError as _0x1981d5}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x2a6141}from'./websocketgateway.js';import{Users as _0xd5662f}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x5568(){const _0x1f25bd=['requires','712922PmLLiL','allConnectedUsers','fire','register','sessions-unregister-not-exist','connection','unregister','_handleSessionAdd','359481uaOirN','6616MZVDuE','clear','55216tsCiFa','pluginName','addUser','Sessions','defineMe','delete','change:state','mySessionId','init','state','isMe','_registeredSessions','sessionAdd:','772872rQcJTk','sessions-register-already-registered','assign','stopListening','376710GyelMq','isPremiumPlugin','channelConnectedUsers','context','_uniqueUsersCount','getUserRole','user','hiddenInPresenceList','plugins','has','add','_users','forEach','getUserBySessionId','_createUser','channelSessions','listenTo','remove','sessionId','639xZfyXQ','getUser','set','getUserSessions','orderNumber','_handleSessionRemove','4DTwFqw','role','connected','values','get','72473UybOcC','isOfficialPlugin','size'];_0x5568=function(){return _0x1f25bd;};return _0x5568();}export class Sessions extends _0x14815c{[_0x5a6fba(0x110)];[_0x5a6fba(0x103)];[_0x5a6fba(0xe6)];[_0x5a6fba(0xfb)];[_0x5a6fba(0x105)];[_0x5a6fba(0x10c)];static get[_0x5a6fba(0xf1)](){const _0x3fa991=_0x5a6fba;return _0x3fa991(0xf3);}static get[_0x5a6fba(0xe2)](){return!0x0;}static get[_0x5a6fba(0x102)](){return!0x0;}static get[_0x5a6fba(0xe4)](){return[_0x2a6141,_0xd5662f];}constructor(_0xc2163){const _0x35ac38=_0x5a6fba;super(_0xc2163),this[_0x35ac38(0x110)]=new Map(),this[_0x35ac38(0x103)]=new Map(),this[_0x35ac38(0xe6)]=new _0x27c6f2(),this[_0x35ac38(0xfb)]=new Map(),this[_0x35ac38(0x105)]=0x0,this[_0x35ac38(0x10c)]=this[_0x35ac38(0x104)][_0x35ac38(0x109)][_0x35ac38(0x11e)](_0xd5662f);}[_0x5a6fba(0xf8)](){const _0x4269a7=_0x5a6fba,_0x3fcd18=this[_0x4269a7(0x104)][_0x4269a7(0x109)][_0x4269a7(0x11e)](_0x2a6141);this[_0x4269a7(0x111)](_0x3fcd18,_0x4269a7(0xf6),(_0x40b0ab,_0x221792,_0xf8b59c)=>{const _0x357c22=_0x4269a7;if(_0x357c22(0x11c)!==_0xf8b59c)this[_0x357c22(0x110)][_0x357c22(0x10d)](_0x1419e4=>_0x1419e4[_0x357c22(0xef)]()),this[_0x357c22(0x103)][_0x357c22(0x10d)](_0x4bafb2=>_0x4bafb2[_0x357c22(0xef)]()),this[_0x357c22(0xe6)][_0x357c22(0xef)]();else{for(const [_0x1e5b68,_0x573af5]of this[_0x357c22(0xfb)])for(const _0x22dcf0 of _0x573af5)this[_0x357c22(0xec)](_0x1e5b68,_0x22dcf0);}}),this[_0x4269a7(0x10f)](_0x3fcd18[_0x4269a7(0xea)]['me'],!0x0);}[_0x5a6fba(0xe8)](_0x2bad96,_0x353050){const _0x5af716=_0x5a6fba;if(this[_0x5af716(0xfb)][_0x5af716(0x10a)](_0x2bad96))throw new _0x1981d5(_0x5af716(0xfe),null,{'channelId':_0x2bad96});this[_0x5af716(0xfb)][_0x5af716(0x116)](_0x2bad96,_0x353050),this[_0x5af716(0x110)][_0x5af716(0x116)](_0x2bad96,new _0x27c6f2()),this[_0x5af716(0x103)][_0x5af716(0x116)](_0x2bad96,new _0x27c6f2()),this[_0x5af716(0x111)](_0x353050,_0x5af716(0x10b),(_0x183831,_0x384305)=>this[_0x5af716(0xec)](_0x2bad96,_0x384305)),this[_0x5af716(0x111)](_0x353050,_0x5af716(0x112),(_0x5a2fb0,_0x4d2574)=>this[_0x5af716(0x119)](_0x2bad96,_0x4d2574));for(const _0x39ff52 of _0x353050)this[_0x5af716(0xec)](_0x2bad96,_0x39ff52);}[_0x5a6fba(0xeb)](_0x36e4f6){const _0x1a0280=_0x5a6fba;if(!this[_0x1a0280(0xfb)][_0x1a0280(0x10a)](_0x36e4f6))throw new _0x1981d5(_0x1a0280(0xe9),null,{'channelId':_0x36e4f6});const _0x1fecd9=this[_0x1a0280(0xfb)][_0x1a0280(0x11e)](_0x36e4f6);this[_0x1a0280(0x100)](_0x1fecd9);for(const _0x8f17fc of _0x1fecd9)_0x1a0280(0x11c)===this[_0x1a0280(0x104)][_0x1a0280(0x109)][_0x1a0280(0x11e)](_0x2a6141)[_0x1a0280(0xf9)]&&this[_0x1a0280(0x119)](_0x36e4f6,_0x8f17fc);this[_0x1a0280(0xfb)][_0x1a0280(0xf5)](_0x36e4f6),this[_0x1a0280(0x110)][_0x1a0280(0xf5)](_0x36e4f6),this[_0x1a0280(0x103)][_0x1a0280(0xf5)](_0x36e4f6);}get[_0x5a6fba(0xf7)](){const _0x103697=_0x5a6fba;return this[_0x103697(0x104)][_0x103697(0x109)][_0x103697(0x11e)](_0x2a6141)[_0x103697(0xea)][_0x103697(0x113)];}[_0x5a6fba(0x10e)](_0x52b445){const _0x40cb58=_0x5a6fba;for(const _0x461c83 of this[_0x40cb58(0x110)][_0x40cb58(0x11d)]())for(const _0x1132cd of _0x461c83)if(_0x1132cd['id']===_0x52b445)return _0x1132cd[_0x40cb58(0x107)];}[_0x5a6fba(0x117)](_0xd41b49,_0x26a8de){const _0x5cf45f=_0x5a6fba,_0x362919=_0x26a8de?[this[_0x5cf45f(0x110)][_0x5cf45f(0x11e)](_0x26a8de)]:this[_0x5cf45f(0x110)][_0x5cf45f(0x11d)](),_0x16bdff=new Set();for(const _0x57d48f of _0x362919)for(const _0x1df890 of _0x57d48f)_0x1df890[_0x5cf45f(0x107)]['id']===_0xd41b49['id']&&_0x16bdff[_0x5cf45f(0x10b)](_0x1df890['id']);return _0x16bdff;}[_0x5a6fba(0x106)](_0x50d026){const _0x243665=_0x5a6fba;for(const _0x15608f of this[_0x243665(0x110)][_0x243665(0x11d)]())for(const _0x416172 of _0x15608f)if(_0x416172[_0x243665(0x107)]===_0x50d026)return _0x416172[_0x243665(0x11b)];}[_0x5a6fba(0xec)](_0x214590,_0x2bef0d){const _0x546e23=_0x5a6fba;if(_0x546e23(0x11c)!==this[_0x546e23(0x104)][_0x546e23(0x109)][_0x546e23(0x11e)](_0x2a6141)[_0x546e23(0xf9)])return;const _0x1d93c6=_0x2bef0d[_0x546e23(0x107)],_0x41cc1d=this[_0x546e23(0x10c)][_0x546e23(0x115)](_0x1d93c6['id'])||this[_0x546e23(0x10f)](_0x1d93c6),_0x36fbde=Object[_0x546e23(0xff)]({},_0x2bef0d,{'user':_0x41cc1d});if(this[_0x546e23(0x110)][_0x546e23(0x11e)](_0x214590)[_0x546e23(0x10b)](_0x36fbde),!_0x1d93c6[_0x546e23(0x108)]){const _0x125992=this[_0x546e23(0x103)][_0x546e23(0x11e)](_0x214590);_0x125992[_0x546e23(0x10a)](_0x41cc1d['id'])||_0x125992[_0x546e23(0x10b)](_0x41cc1d),this[_0x546e23(0xe6)][_0x546e23(0x10a)](_0x41cc1d['id'])||_0x1d93c6[_0x546e23(0x108)]||this[_0x546e23(0xe6)][_0x546e23(0x10b)](_0x41cc1d,_0x41cc1d[_0x546e23(0xfa)]?0x0:void 0x0);}this[_0x546e23(0xe7)](_0x546e23(0xfc)+_0x214590,{'channelId':_0x214590,'session':_0x36fbde});}[_0x5a6fba(0x119)](_0x2b5b31,_0xc0b4a2){const _0x47d2aa=_0x5a6fba;if(_0x47d2aa(0x11c)!==this[_0x47d2aa(0x104)][_0x47d2aa(0x109)][_0x47d2aa(0x11e)](_0x2a6141)[_0x47d2aa(0xf9)])return;const _0x404774=this[_0x47d2aa(0x103)][_0x47d2aa(0x11e)](_0x2b5b31),_0x1b8e95=_0xc0b4a2[_0x47d2aa(0x107)];_0x1b8e95['id']&&(this[_0x47d2aa(0x110)][_0x47d2aa(0x11e)](_0x2b5b31)[_0x47d2aa(0x112)](_0xc0b4a2['id']),_0x404774[_0x47d2aa(0x10a)](_0x1b8e95['id'])&&!this[_0x47d2aa(0x117)](_0x1b8e95,_0x2b5b31)[_0x47d2aa(0xe3)]&&_0x404774[_0x47d2aa(0x112)](_0x1b8e95['id']),this[_0x47d2aa(0xe6)][_0x47d2aa(0x11e)](_0x1b8e95['id'])&&!this[_0x47d2aa(0x117)](_0x1b8e95)[_0x47d2aa(0xe3)]&&this[_0x47d2aa(0xe6)][_0x47d2aa(0x112)](_0x1b8e95['id']));}[_0x5a6fba(0x10f)](_0x3669ef,_0x54eeec){const _0x9d61bf=_0x5a6fba,_0xf7c3b6=this[_0x9d61bf(0x10c)][_0x9d61bf(0xf2)](_0x3669ef);return _0x54eeec&&this[_0x9d61bf(0x10c)][_0x9d61bf(0xf4)](_0x3669ef['id']),_0xf7c3b6[_0x9d61bf(0x118)]=this[_0x9d61bf(0x105)]++,_0xf7c3b6;}}
|