@ckeditor/ckeditor5-real-time-collaboration 47.5.0-alpha.8 → 47.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/presencedropdownlistitemview.js +1 -1
- package/src/presencelist/view/presencedropdownlistview.js +1 -1
- package/src/presencelist/view/presenceinlinelistitemview.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/usermarkers.js +1 -1
- package/src/realtimecollaborativeediting/websocketgateway.js +2 -2
- package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +2 -2
- package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +2 -2
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1307(_0x51734d,_0x5de15b){const _0xaa5003=_0xaa50();return _0x1307=function(_0x1307ec,_0x13190f){_0x1307ec=_0x1307ec-0xdb;let _0x2d1160=_0xaa5003[_0x1307ec];return _0x2d1160;},_0x1307(_0x51734d,_0x5de15b);}const _0x35aaae=_0x1307;(function(_0x32b3c8,_0x122eb6){const _0x1c3b22=_0x1307,_0x56f130=_0x32b3c8();while(!![]){try{const _0x2abe21=-parseInt(_0x1c3b22(0x10a))/0x1*(parseInt(_0x1c3b22(0x10e))/0x2)+-parseInt(_0x1c3b22(0xdf))/0x3*(parseInt(_0x1c3b22(0xef))/0x4)+-parseInt(_0x1c3b22(0x108))/0x5*(-parseInt(_0x1c3b22(0xff))/0x6)+parseInt(_0x1c3b22(0x105))/0x7+parseInt(_0x1c3b22(0x10b))/0x8*(-parseInt(_0x1c3b22(0xed))/0x9)+parseInt(_0x1c3b22(0x118))/0xa+parseInt(_0x1c3b22(0xea))/0xb;if(_0x2abe21===_0x122eb6)break;else _0x56f130['push'](_0x56f130['shift']());}catch(_0x1dcdc3){_0x56f130['push'](_0x56f130['shift']());}}}(_0xaa50,0xb0bb6));function _0xaa50(){const _0x62def8=['_uniqueUsersCount','channelConnectedUsers','_handleSessionRemove','forEach','_registeredSessions','pluginName','Sessions','defineMe','init','add','fire','getUser','isOfficialPlugin','_createUser','647766RsHlBR','remove','mySessionId','plugins','getUserBySessionId','sessionId','6091729rDQeaI','getUserRole','sessionAdd:','10TRWnGK','get','417vUcUeM','663816TwtWyn','_users','getUserSessions','5062VMzXDr','delete','_handleSessionAdd','clear','listenTo','user','hiddenInPresenceList','requires','change:state','assign','7244210gKPYEb','values','register','state','set','sessions-unregister-not-exist','isPremiumPlugin','9KNkiGj','has','channelSessions','size','connection','isMe','context','unregister','addUser','stopListening','sessions-register-already-registered','15644970sbFwRe','allConnectedUsers','connected','9cqBCBN','role','1827416dyjXcL','orderNumber'];_0xaa50=function(){return _0x62def8;};return _0xaa50();}import{ContextPlugin as _0x102c62}from'ckeditor5/src/core.js';import{Collection as _0x42c6b3,CKEditorError as _0x47cd17}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x1be33c}from'./websocketgateway.js';import{Users as _0x25fed4}from'ckeditor5-collaboration/src/collaboration-core.js';export class Sessions extends _0x102c62{[_0x35aaae(0xe1)];[_0x35aaae(0xf2)];[_0x35aaae(0xeb)];[_0x35aaae(0xf5)];[_0x35aaae(0xf1)];[_0x35aaae(0x10c)];static get[_0x35aaae(0xf6)](){const _0xd63c56=_0x35aaae;return _0xd63c56(0xf7);}static get[_0x35aaae(0xfd)](){return!0x0;}static get[_0x35aaae(0xde)](){return!0x0;}static get[_0x35aaae(0x115)](){return[_0x1be33c,_0x25fed4];}constructor(_0x422e6){const _0x8b66dd=_0x35aaae;super(_0x422e6),this[_0x8b66dd(0xe1)]=new Map(),this[_0x8b66dd(0xf2)]=new Map(),this[_0x8b66dd(0xeb)]=new _0x42c6b3(),this[_0x8b66dd(0xf5)]=new Map(),this[_0x8b66dd(0xf1)]=0x0,this[_0x8b66dd(0x10c)]=this[_0x8b66dd(0xe5)][_0x8b66dd(0x102)][_0x8b66dd(0x109)](_0x25fed4);}[_0x35aaae(0xf9)](){const _0x396356=_0x35aaae,_0x10d864=this[_0x396356(0xe5)][_0x396356(0x102)][_0x396356(0x109)](_0x1be33c);this[_0x396356(0x112)](_0x10d864,_0x396356(0x116),(_0xd167c2,_0x5d6091,_0x19aca8)=>{const _0x555a34=_0x396356;if(_0x555a34(0xec)!==_0x19aca8)this[_0x555a34(0xe1)][_0x555a34(0xf4)](_0xb332fb=>_0xb332fb[_0x555a34(0x111)]()),this[_0x555a34(0xf2)][_0x555a34(0xf4)](_0x2d6abd=>_0x2d6abd[_0x555a34(0x111)]()),this[_0x555a34(0xeb)][_0x555a34(0x111)]();else{for(const [_0x1961f4,_0x32aae1]of this[_0x555a34(0xf5)])for(const _0x599f57 of _0x32aae1)this[_0x555a34(0x110)](_0x1961f4,_0x599f57);}}),this[_0x396356(0xfe)](_0x10d864[_0x396356(0xe3)]['me'],!0x0);}[_0x35aaae(0x11a)](_0x1d23a0,_0x98ac2d){const _0x424746=_0x35aaae;if(this[_0x424746(0xf5)][_0x424746(0xe0)](_0x1d23a0))throw new _0x47cd17(_0x424746(0xe9),null,{'channelId':_0x1d23a0});this[_0x424746(0xf5)][_0x424746(0xdc)](_0x1d23a0,_0x98ac2d),this[_0x424746(0xe1)][_0x424746(0xdc)](_0x1d23a0,new _0x42c6b3()),this[_0x424746(0xf2)][_0x424746(0xdc)](_0x1d23a0,new _0x42c6b3()),this[_0x424746(0x112)](_0x98ac2d,_0x424746(0xfa),(_0x508a6c,_0x457cb9)=>this[_0x424746(0x110)](_0x1d23a0,_0x457cb9)),this[_0x424746(0x112)](_0x98ac2d,_0x424746(0x100),(_0x28a302,_0x43c810)=>this[_0x424746(0xf3)](_0x1d23a0,_0x43c810));for(const _0x3d5975 of _0x98ac2d)this[_0x424746(0x110)](_0x1d23a0,_0x3d5975);}[_0x35aaae(0xe6)](_0x4ef882){const _0x4638f9=_0x35aaae;if(!this[_0x4638f9(0xf5)][_0x4638f9(0xe0)](_0x4ef882))throw new _0x47cd17(_0x4638f9(0xdd),null,{'channelId':_0x4ef882});const _0x1b1e64=this[_0x4638f9(0xf5)][_0x4638f9(0x109)](_0x4ef882);this[_0x4638f9(0xe8)](_0x1b1e64);for(const _0x5bb9ea of _0x1b1e64)_0x4638f9(0xec)===this[_0x4638f9(0xe5)][_0x4638f9(0x102)][_0x4638f9(0x109)](_0x1be33c)[_0x4638f9(0xdb)]&&this[_0x4638f9(0xf3)](_0x4ef882,_0x5bb9ea);this[_0x4638f9(0xf5)][_0x4638f9(0x10f)](_0x4ef882),this[_0x4638f9(0xe1)][_0x4638f9(0x10f)](_0x4ef882),this[_0x4638f9(0xf2)][_0x4638f9(0x10f)](_0x4ef882);}get[_0x35aaae(0x101)](){const _0x302698=_0x35aaae;return this[_0x302698(0xe5)][_0x302698(0x102)][_0x302698(0x109)](_0x1be33c)[_0x302698(0xe3)][_0x302698(0x104)];}[_0x35aaae(0x103)](_0x21b4e0){const _0x1bbc34=_0x35aaae;for(const _0x350d73 of this[_0x1bbc34(0xe1)][_0x1bbc34(0x119)]())for(const _0x4a1f44 of _0x350d73)if(_0x4a1f44['id']===_0x21b4e0)return _0x4a1f44[_0x1bbc34(0x113)];}[_0x35aaae(0x10d)](_0x2ff6fc,_0x180aa5){const _0x56d08e=_0x35aaae,_0x3391a8=_0x180aa5?[this[_0x56d08e(0xe1)][_0x56d08e(0x109)](_0x180aa5)]:this[_0x56d08e(0xe1)][_0x56d08e(0x119)](),_0x542db4=new Set();for(const _0x174a86 of _0x3391a8)for(const _0x14e588 of _0x174a86)_0x14e588[_0x56d08e(0x113)]['id']===_0x2ff6fc['id']&&_0x542db4[_0x56d08e(0xfa)](_0x14e588['id']);return _0x542db4;}[_0x35aaae(0x106)](_0xe8146e){const _0x1ad517=_0x35aaae;for(const _0x38adb0 of this[_0x1ad517(0xe1)][_0x1ad517(0x119)]())for(const _0x4e48ae of _0x38adb0)if(_0x4e48ae[_0x1ad517(0x113)]===_0xe8146e)return _0x4e48ae[_0x1ad517(0xee)];}[_0x35aaae(0x110)](_0x491aa,_0x239fdc){const _0x13df44=_0x35aaae;if(_0x13df44(0xec)!==this[_0x13df44(0xe5)][_0x13df44(0x102)][_0x13df44(0x109)](_0x1be33c)[_0x13df44(0xdb)])return;const _0x5b4768=_0x239fdc[_0x13df44(0x113)],_0x4a4752=this[_0x13df44(0x10c)][_0x13df44(0xfc)](_0x5b4768['id'])||this[_0x13df44(0xfe)](_0x5b4768),_0x5b67b1=Object[_0x13df44(0x117)]({},_0x239fdc,{'user':_0x4a4752});if(this[_0x13df44(0xe1)][_0x13df44(0x109)](_0x491aa)[_0x13df44(0xfa)](_0x5b67b1),!_0x5b4768[_0x13df44(0x114)]){const _0x2d0c46=this[_0x13df44(0xf2)][_0x13df44(0x109)](_0x491aa);_0x2d0c46[_0x13df44(0xe0)](_0x4a4752['id'])||_0x2d0c46[_0x13df44(0xfa)](_0x4a4752),this[_0x13df44(0xeb)][_0x13df44(0xe0)](_0x4a4752['id'])||_0x5b4768[_0x13df44(0x114)]||this[_0x13df44(0xeb)][_0x13df44(0xfa)](_0x4a4752,_0x4a4752[_0x13df44(0xe4)]?0x0:void 0x0);}this[_0x13df44(0xfb)](_0x13df44(0x107)+_0x491aa,{'channelId':_0x491aa,'session':_0x5b67b1});}[_0x35aaae(0xf3)](_0x5c2959,_0x400774){const _0x45ae7f=_0x35aaae;if(_0x45ae7f(0xec)!==this[_0x45ae7f(0xe5)][_0x45ae7f(0x102)][_0x45ae7f(0x109)](_0x1be33c)[_0x45ae7f(0xdb)])return;const _0x5442a0=this[_0x45ae7f(0xf2)][_0x45ae7f(0x109)](_0x5c2959),_0xe1a3c9=_0x400774[_0x45ae7f(0x113)];_0xe1a3c9['id']&&(this[_0x45ae7f(0xe1)][_0x45ae7f(0x109)](_0x5c2959)[_0x45ae7f(0x100)](_0x400774['id']),_0x5442a0[_0x45ae7f(0xe0)](_0xe1a3c9['id'])&&!this[_0x45ae7f(0x10d)](_0xe1a3c9,_0x5c2959)[_0x45ae7f(0xe2)]&&_0x5442a0[_0x45ae7f(0x100)](_0xe1a3c9['id']),this[_0x45ae7f(0xeb)][_0x45ae7f(0x109)](_0xe1a3c9['id'])&&!this[_0x45ae7f(0x10d)](_0xe1a3c9)[_0x45ae7f(0xe2)]&&this[_0x45ae7f(0xeb)][_0x45ae7f(0x100)](_0xe1a3c9['id']));}[_0x35aaae(0xfe)](_0x118e9e,_0x36fb10){const _0x30360f=_0x35aaae,_0x37a296=this[_0x30360f(0x10c)][_0x30360f(0xe7)](_0x118e9e);return _0x36fb10&&this[_0x30360f(0x10c)][_0x30360f(0xf8)](_0x118e9e['id']),_0x37a296[_0x30360f(0xf0)]=this[_0x30360f(0xf1)]++,_0x37a296;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x56a368=_0x1fa3;function _0x1fa3(_0x19a84d,_0x194b78){const _0x5b63ac=_0x5b63();return _0x1fa3=function(_0x1fa374,_0x3c004e){_0x1fa374=_0x1fa374-0x1d4;let _0x49b01d=_0x5b63ac[_0x1fa374];return _0x49b01d;},_0x1fa3(_0x19a84d,_0x194b78);}(function(_0x1d3d73,_0x1caa79){const _0x25097a=_0x1fa3,_0x1e9d0d=_0x1d3d73();while(!![]){try{const _0x53261a=parseInt(_0x25097a(0x25b))/0x1+parseInt(_0x25097a(0x1ee))/0x2+-parseInt(_0x25097a(0x211))/0x3*(parseInt(_0x25097a(0x213))/0x4)+-parseInt(_0x25097a(0x1fb))/0x5+parseInt(_0x25097a(0x1e3))/0x6+-parseInt(_0x25097a(0x232))/0x7*(parseInt(_0x25097a(0x1f8))/0x8)+parseInt(_0x25097a(0x1d6))/0x9*(-parseInt(_0x25097a(0x24a))/0xa);if(_0x53261a===_0x1caa79)break;else _0x1e9d0d['push'](_0x1e9d0d['shift']());}catch(_0x64f6e5){_0x1e9d0d['push'](_0x1e9d0d['shift']());}}}(_0x5b63,0xaed2b));import{Plugin as _0x402b16}from'ckeditor5/src/core.js';import{global as _0x667a2b,DomEmitterMixin as _0x45c351}from'ckeditor5/src/utils.js';import{Sessions as _0x5bef18}from'./sessions.js';import{ModelLiveRange as _0x3d1b12}from'ckeditor5/src/engine.js';import'../../theme/usermarkers.css';function _0x5b63(){const _0x139a0a=['checkChild','type','addEventListener','afterInit','user:range:','userPositionMarker','markerRange','selection','getSelectionClass','classList','for','233634fIkwoq','applyOperation','init','add','getRange','ck-user__marker\x20','mapper','isOfficialPlugin','size','user:','color','1692672boBIZT','getAttribute','markerToHighlight','startsWith','createUIElement','rootName','change','batch','getFirstRange','toDomElement','54104UKAcMc','end','listenTo','2495515PPsbUn','pluginName','enqueueChange','_createdBatches','stopListening','markerToElement','undo','innerHTML','remove','editing','editingDowncast','element','mySessionId','getContainedElement','setCustomProperty','mouseleave','editor','removeMarker','isPremiumPlugin','isLimit','createRange','start','291699PlgCeG','updateMarker','4rfRBqX','detach','render','getUserBySessionId','highest','ck-user__selection','data-session-id','isSimilar','false','model','tableCell','createUserMarkerOperations','fromRange','plugins','getMarkerClass','markerNameToElements','delete','reconvertMarker','getCustomProperty','document','clear','schema','createElement','commands','isDocumentOperation','toRange','setAttribute','user:position:','mouseenter','span','destroy','7OJoylC','name','<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','user:position','UserMarkers','ck-user__marker-tooltip','getNearestSelectionRange','markerName','parent','view','hasContent','isObject','get','getStart','isInline','markers','marker','keydown','conversion','Escape','$graveyard','split','hasDomSelection','_domEmitter','2149240BTBAmV','orderNumber','has','oldRange','update:user:range','set','spellcheck','ck-user__marker_hovered','user:range','getPositions','deletionPosition','change:range','isCollapsed','removeClass','textContent','$text','requires','648823pojtUF','contenteditable','newRange','addMarker','root','nodeAfter','9MaWlph','outerHTML'];_0x5b63=function(){return _0x139a0a;};return _0x5b63();}export class UserMarkers extends _0x402b16{[_0x56a368(0x249)]=new(_0x45c351())();static get[_0x56a368(0x25a)](){return[_0x5bef18];}static get[_0x56a368(0x1fc)](){const _0x538119=_0x56a368;return _0x538119(0x236);}static get[_0x56a368(0x1ea)](){return!0x0;}static get[_0x56a368(0x20d)](){return!0x0;}[_0x56a368(0x1e5)](){const _0x14b4c0=_0x56a368,_0x5c70d3=this[_0x14b4c0(0x20b)],_0x37bfa3=_0x5c70d3[_0x14b4c0(0x220)][_0x14b4c0(0x23e)](_0x5bef18);_0x5c70d3[_0x14b4c0(0x244)][_0x14b4c0(0x1e2)](_0x14b4c0(0x205))[_0x14b4c0(0x200)]({'model':_0x14b4c0(0x235),'view':(_0x4fcac0,{writer:_0x24643b})=>function(_0x4669f4,_0x5bdb8f,_0x186361,_0x5445f3){const _0x458e04=_0x14b4c0,_0x362d3d=_0x4669f4[_0x458e04(0x239)][_0x458e04(0x247)](':')[0x2],_0x46e021=_0x186361[_0x458e04(0x216)](_0x362d3d);if(!_0x46e021||_0x362d3d===_0x186361[_0x458e04(0x207)])return;if(!_0x5445f3[_0x458e04(0x21c)][_0x458e04(0x228)][_0x458e04(0x1d8)](_0x4669f4[_0x458e04(0x1de)][_0x458e04(0x210)],_0x458e04(0x259)))return;const _0x3655e3={'class':_0x458e04(0x1e8)+_0x46e021[_0x458e04(0x1ed)][_0x458e04(0x221)](),'data-name':_0x46e021[_0x458e04(0x233)],'data-session-id':_0x362d3d},_0x11afa7=_0x5445f3[_0x458e04(0x21c)][_0x458e04(0x241)][_0x458e04(0x23e)](_0x4669f4[_0x458e04(0x239)]),_0x580201=_0x11afa7[_0x458e04(0x23f)](),_0x2538ce=_0x580201[_0x458e04(0x1d5)],_0x42e275=_0x5445f3[_0x458e04(0x21c)][_0x458e04(0x228)];if(_0x2538ce&&_0x42e275[_0x458e04(0x23d)](_0x2538ce)&&_0x42e275[_0x458e04(0x240)](_0x2538ce)&&!_0x5445f3[_0x458e04(0x21c)][_0x458e04(0x241)][_0x458e04(0x23e)](_0x458e04(0x1dc)+_0x362d3d)[_0x458e04(0x1e7)]()[_0x458e04(0x256)])return;const _0x57d4f2=_0x580201[_0x458e04(0x23a)];return _0x5445f3[_0x458e04(0x21c)][_0x458e04(0x228)][_0x458e04(0x20e)](_0x57d4f2)&&!_0x5445f3[_0x458e04(0x21c)][_0x458e04(0x23c)](_0x57d4f2)&&(_0x3655e3[_0x458e04(0x25c)]=!0x1),function(_0x34ae9d,_0x1727b9,_0x4a0414){const _0x2eb093=_0x458e04,_0x60b2d1=_0x34ae9d[_0x2eb093(0x1f2)](_0x2eb093(0x230),_0x1727b9);return _0x34ae9d[_0x2eb093(0x209)](_0x2eb093(0x1dd),!0x0,_0x60b2d1),_0x60b2d1[_0x2eb093(0x215)]=function(_0x1a5264){const _0x999f70=_0x2eb093,_0x1644f7=this[_0x999f70(0x1f7)](_0x1a5264),_0x280a98=document[_0x999f70(0x229)](_0x999f70(0x230));return _0x280a98[_0x999f70(0x1e1)][_0x999f70(0x1e6)](_0x999f70(0x237)),_0x280a98[_0x999f70(0x22d)](_0x999f70(0x25c),_0x999f70(0x21b)),_0x280a98[_0x999f70(0x22d)](_0x999f70(0x250),_0x999f70(0x21b)),_0x280a98[_0x999f70(0x258)]=_0x4a0414[_0x999f70(0x233)],_0x1644f7[_0x999f70(0x202)]=_0x999f70(0x234)+_0x280a98[_0x999f70(0x1d7)]+'',_0x1644f7[_0x999f70(0x1da)](_0x999f70(0x22f),()=>{const _0x44e979=_0x999f70;_0x1644f7[_0x44e979(0x1e1)][_0x44e979(0x1e6)](_0x44e979(0x251));}),_0x1644f7[_0x999f70(0x1da)](_0x999f70(0x20a),()=>{const _0x1d4501=_0x999f70;_0x1644f7[_0x1d4501(0x1e1)][_0x1d4501(0x203)](_0x1d4501(0x251));}),_0x1644f7;},_0x60b2d1[_0x2eb093(0x21a)]=function(_0x40e1dc){const _0x9ca721=_0x2eb093;return!(!this[_0x9ca721(0x225)](_0x9ca721(0x1dd))||!_0x40e1dc[_0x9ca721(0x225)](_0x9ca721(0x1dd))||this[_0x9ca721(0x1ef)](_0x9ca721(0x219))!=_0x40e1dc[_0x9ca721(0x1ef)](_0x9ca721(0x219)));},_0x60b2d1;}(_0x5bdb8f,_0x3655e3,_0x46e021);}(_0x4fcac0,_0x24643b,_0x37bfa3,_0x5c70d3)}),_0x5c70d3[_0x14b4c0(0x244)][_0x14b4c0(0x1e2)](_0x14b4c0(0x205))[_0x14b4c0(0x1f0)]({'model':_0x14b4c0(0x252),'view':_0x444233=>function(_0x51253d,_0x5f9eef){const _0x330ffe=_0x14b4c0,_0x4d26f7=_0x51253d[_0x330ffe(0x239)][_0x330ffe(0x247)](':')[0x2];if(_0x4d26f7===_0x5f9eef[_0x330ffe(0x207)])return null;const _0x2a1096=_0x5f9eef[_0x330ffe(0x216)](_0x4d26f7);if(!_0x2a1096)return{'id':_0x4d26f7,'classes':[]};return{'id':_0x4d26f7,'classes':[_0x330ffe(0x218),_0x2a1096[_0x330ffe(0x1ed)][_0x330ffe(0x1e0)]()],'attributes':{'data-session-id':_0x4d26f7},'priority':0x7d0+_0x2a1096[_0x330ffe(0x24b)]};}(_0x444233,_0x37bfa3)}),function(_0x325e25){const _0x2dc320=_0x14b4c0,_0x2cd2ed=_0x325e25[_0x2dc320(0x21c)],_0x2cb226=new Map(),_0x4183c5=_0x325e25[_0x2dc320(0x220)][_0x2dc320(0x23e)](_0x5bef18);_0x2cd2ed[_0x2dc320(0x241)]['on'](_0x2dc320(0x24e),(_0xa47246,_0x1e4b7e,_0x5976f2,_0x3bf796)=>{const _0x290974=_0x2dc320;if(!_0x3bf796&&_0x2cb226[_0x290974(0x23e)](_0x1e4b7e[_0x290974(0x233)]))return _0x2cb226[_0x290974(0x23e)](_0x1e4b7e[_0x290974(0x233)])[_0x290974(0x214)](),void _0x2cb226[_0x290974(0x223)](_0x1e4b7e[_0x290974(0x233)]);const _0x59a40e=_0x1e4b7e[_0x290974(0x233)][_0x290974(0x247)](':')[0x2];if(_0x59a40e===_0x4183c5[_0x290974(0x207)])return;const _0x46729d=_0x290974(0x22e)+_0x59a40e;_0x2cd2ed[_0x290974(0x241)][_0x290974(0x24c)](_0x46729d)&&_0x325e25[_0x290974(0x204)][_0x290974(0x224)](_0x46729d),_0x1e4b7e['on'](_0x290974(0x255),(_0x1a96fa,_0x26c132,_0x57c30e)=>{const _0x175539=_0x290974;if(_0x175539(0x246)!=_0x26c132[_0x175539(0x1d4)][_0x175539(0x1f3)]&&_0x175539(0x246)==_0x1e4b7e[_0x175539(0x1e7)]()[_0x175539(0x1d4)][_0x175539(0x1f3)]&&!_0x2cb226[_0x175539(0x24c)](_0x1e4b7e[_0x175539(0x233)])){const _0x594c2f=_0x2cd2ed[_0x175539(0x228)][_0x175539(0x238)](_0x57c30e[_0x175539(0x254)]);if(_0x594c2f){const _0xcf2470=_0x3d1b12[_0x175539(0x21f)](_0x594c2f);_0x2cb226[_0x175539(0x24f)](_0x1e4b7e[_0x175539(0x233)],_0xcf2470),_0xcf2470['on'](_0x175539(0x255),(_0x35c01b,_0x4da60e,_0x371309)=>{const _0x580c4e=_0x175539;if(_0x580c4e(0x246)==_0xcf2470[_0x580c4e(0x1d4)][_0x580c4e(0x1f3)]){const _0x2f0ed5=_0x2cd2ed[_0x580c4e(0x228)][_0x580c4e(0x238)](_0x371309[_0x580c4e(0x254)]);_0x2f0ed5?(_0xcf2470[_0x580c4e(0x210)]=_0x2f0ed5[_0x580c4e(0x210)],_0xcf2470[_0x580c4e(0x1f9)]=_0x2f0ed5[_0x580c4e(0x1f9)]):(_0x2cb226[_0x580c4e(0x223)](_0x1e4b7e[_0x580c4e(0x233)]),_0xcf2470[_0x580c4e(0x214)]());}});}}});}),_0x2cd2ed[_0x2dc320(0x226)]['on'](_0x2dc320(0x1f4),()=>{const _0x1494de=_0x2dc320;_0x2cb226[_0x1494de(0x1eb)]>0x0&&_0x2cd2ed[_0x1494de(0x1fd)]({'isUndoable':!0x1},_0x2124f0=>{const _0x6f337e=_0x1494de;for(const [_0x4ebeb5,_0x3c7d6a]of _0x2cb226)_0x6f337e(0x246)==_0x2cd2ed[_0x6f337e(0x241)][_0x6f337e(0x23e)](_0x4ebeb5)[_0x6f337e(0x1e7)]()[_0x6f337e(0x1d4)][_0x6f337e(0x1f3)]&&(te(_0x4ebeb5[_0x6f337e(0x247)](':')[0x2],_0x3c7d6a[_0x6f337e(0x22c)](),_0x2cd2ed,_0x2124f0),_0x3c7d6a[_0x6f337e(0x214)]());_0x2cb226[_0x6f337e(0x227)]();});});}(_0x5c70d3),this[_0x14b4c0(0x249)][_0x14b4c0(0x1fa)](_0x667a2b[_0x14b4c0(0x226)],_0x14b4c0(0x243),(_0x102965,{key:_0x141a5a})=>{const _0x29ede6=_0x14b4c0;_0x29ede6(0x245)===_0x141a5a&&function(_0x41a122){const _0x1b18f0=_0x29ede6;_0x41a122[_0x1b18f0(0x204)][_0x1b18f0(0x23b)][_0x1b18f0(0x1f4)](_0x41d009=>{const _0x1fe36a=_0x1b18f0;for(const _0x4e30a0 of _0x41a122[_0x1fe36a(0x21c)][_0x1fe36a(0x241)]){if(!_0x4e30a0[_0x1fe36a(0x233)][_0x1fe36a(0x1f1)](_0x1fe36a(0x235)))continue;const _0x3208be=_0x41a122[_0x1fe36a(0x204)][_0x1fe36a(0x1e9)][_0x1fe36a(0x222)](_0x4e30a0[_0x1fe36a(0x233)]);if(_0x3208be){for(const _0x209126 of _0x3208be)_0x41d009[_0x1fe36a(0x257)](_0x1fe36a(0x251),_0x209126);}}});}(_0x5c70d3);},{'useCapture':!0x0});}[_0x56a368(0x1db)](){const _0x512eb=_0x56a368,_0x13420a=this[_0x512eb(0x20b)],_0x3aff0f=_0x13420a[_0x512eb(0x22a)][_0x512eb(0x23e)](_0x512eb(0x201));_0x3aff0f&&_0x13420a[_0x512eb(0x21c)]['on'](_0x512eb(0x1e4),(_0x1fbe55,_0x27faa4)=>{const _0x25dc19=_0x512eb,_0x4c6aee=_0x27faa4[0x0];if(!_0x4c6aee[_0x25dc19(0x22b)])return;if(_0x25dc19(0x242)!=_0x4c6aee[_0x25dc19(0x1d9)]||!_0x4c6aee[_0x25dc19(0x233)][_0x25dc19(0x1f1)](_0x25dc19(0x1ec)))return;const _0x4ebb01=_0x4c6aee[_0x25dc19(0x1f5)];_0x3aff0f[_0x25dc19(0x1fe)][_0x25dc19(0x24c)](_0x4ebb01)&&(_0x4c6aee[_0x25dc19(0x25d)]=_0x4c6aee[_0x25dc19(0x24d)]?_0x13420a[_0x25dc19(0x21c)][_0x25dc19(0x20f)](_0x4c6aee[_0x25dc19(0x24d)][_0x25dc19(0x210)],_0x4c6aee[_0x25dc19(0x24d)][_0x25dc19(0x1f9)]):null);},{'priority':_0x512eb(0x217)});}[_0x56a368(0x231)](){const _0x4a2a69=_0x56a368;return this[_0x4a2a69(0x249)][_0x4a2a69(0x1ff)](),super[_0x4a2a69(0x231)]();}[_0x56a368(0x21e)](){const _0x3a1626=_0x56a368,_0x5b4ade=this[_0x3a1626(0x20b)],_0x4e00d8=_0x5b4ade[_0x3a1626(0x21c)][_0x3a1626(0x226)],_0x4e0f6a=_0x5b4ade[_0x3a1626(0x220)][_0x3a1626(0x23e)](_0x5bef18);_0x5b4ade[_0x3a1626(0x21c)][_0x3a1626(0x1fd)]({'isUndoable':!0x1},_0x1a172b=>{const _0x159fb3=_0x3a1626,_0x545fde=_0x159fb3(0x1dc)+_0x4e0f6a[_0x159fb3(0x207)],_0x369a47=_0x159fb3(0x22e)+_0x4e0f6a[_0x159fb3(0x207)],_0x480f19=_0x5b4ade[_0x159fb3(0x21c)][_0x159fb3(0x241)][_0x159fb3(0x24c)](_0x545fde);_0x5b4ade[_0x159fb3(0x204)][_0x159fb3(0x23b)][_0x159fb3(0x248)]?te(_0x4e0f6a[_0x159fb3(0x207)],_0x4e00d8[_0x159fb3(0x1df)][_0x159fb3(0x1f6)](),_0x5b4ade[_0x159fb3(0x21c)],_0x1a172b):_0x480f19&&(_0x1a172b[_0x159fb3(0x20c)](_0x545fde),_0x1a172b[_0x159fb3(0x20c)](_0x369a47));});}}function te(_0x36ad11,_0x56a7cb,_0x296c0a,_0x13de02){const _0x28631b=_0x56a368,_0x2b730d=_0x28631b(0x1dc)+_0x36ad11,_0x4161f6=_0x28631b(0x22e)+_0x36ad11,_0x20b0c5=_0x56a7cb[_0x28631b(0x208)]();let _0x2df540=_0x56a7cb[_0x28631b(0x210)];if(_0x20b0c5&&_0x20b0c5['is'](_0x28631b(0x206),_0x28631b(0x21d))){const _0x184858=function(_0x124767,_0x252b3a){const _0x225210=_0x28631b;for(const _0x474b1e of _0x124767[_0x225210(0x253)]())if(_0x252b3a[_0x225210(0x228)][_0x225210(0x1d8)](_0x474b1e,_0x225210(0x259)))return _0x474b1e;}(_0x56a7cb,_0x296c0a);_0x184858&&(_0x2df540=_0x184858,_0x56a7cb=_0x13de02[_0x28631b(0x20f)](_0x2df540));}const _0x14924f=_0x13de02[_0x28631b(0x20f)](_0x2df540);_0x296c0a[_0x28631b(0x241)][_0x28631b(0x24c)](_0x2b730d)?(_0x13de02[_0x28631b(0x212)](_0x2b730d,{'range':_0x56a7cb}),_0x13de02[_0x28631b(0x212)](_0x4161f6,{'range':_0x14924f})):(_0x13de02[_0x28631b(0x25e)](_0x2b730d,{'range':_0x56a7cb,'usingOperation':!0x0}),_0x13de02[_0x28631b(0x25e)](_0x4161f6,{'range':_0x14924f,'usingOperation':!0x0}));}
|
|
23
|
+
const _0x4f1aa7=_0x15db;(function(_0x284948,_0x176b38){const _0x514a53=_0x15db,_0x4e2a47=_0x284948();while(!![]){try{const _0x3d7394=parseInt(_0x514a53(0x189))/0x1+parseInt(_0x514a53(0x194))/0x2*(parseInt(_0x514a53(0x16d))/0x3)+-parseInt(_0x514a53(0x167))/0x4+parseInt(_0x514a53(0x1a7))/0x5*(-parseInt(_0x514a53(0x160))/0x6)+parseInt(_0x514a53(0x153))/0x7*(parseInt(_0x514a53(0x191))/0x8)+parseInt(_0x514a53(0x1b0))/0x9*(-parseInt(_0x514a53(0x131))/0xa)+parseInt(_0x514a53(0x14a))/0xb*(parseInt(_0x514a53(0x15b))/0xc);if(_0x3d7394===_0x176b38)break;else _0x4e2a47['push'](_0x4e2a47['shift']());}catch(_0x1455bb){_0x4e2a47['push'](_0x4e2a47['shift']());}}}(_0xf47e,0x19bbe));import{Plugin as _0x14c960}from'ckeditor5/src/core.js';function _0xf47e(){const _0x508298=['requires','markerToElement','removeMarker','type','textContent','createUserMarkerOperations','name','markerNameToElements','change','set','81537MXBETw','setCustomProperty','markers','isCollapsed','innerHTML','applyOperation','UserMarkers','split','3488eBIDAW','parent','contenteditable','405824gmNrYc','listenTo','isLimit','user:','newRange','init','isPremiumPlugin','addMarker','tableCell','root','user:range','startsWith','rootName','$text','destroy','outerHTML','stopListening','getRange','getMarkerClass','97330xqKgoG','checkChild','_createdBatches','end','ck-user__marker\x20','user:range:','mySessionId','$graveyard','selection','9BiadCz','getPositions','commands','add','mouseleave','keydown','isSimilar','oldRange','user:position:','isObject','undo','batch','fromRange','markerToHighlight','575890IBWagt','editing','addEventListener','isDocumentOperation','clear','orderNumber','element','toRange','_domEmitter','editor','removeClass','getAttribute','updateMarker','highest','user:position','detach','getStart','getContainedElement','delete','<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','plugins','size','isOfficialPlugin','schema','getSelectionClass','33EGzkJl','change:range','markerName','deletionPosition','getFirstRange','remove','start','hasContent','ck-user__marker_hovered','84mGUFxm','getCustomProperty','for','enqueueChange','Escape','span','createUIElement','ck-user__selection','788580VhBhgM','mouseenter','has','spellcheck','mapper','42zvnXgS','false','marker','update:user:range','pluginName','createRange','model','750276PkKyrI','editingDowncast','getUserBySessionId','nodeAfter','color','data-session-id','3gAusxX','conversion','render','toDomElement','document','view','afterInit','hasDomSelection','reconvertMarker','userPositionMarker','classList','createElement','setAttribute','ck-user__marker-tooltip','getNearestSelectionRange','isInline','markerRange','get'];_0xf47e=function(){return _0x508298;};return _0xf47e();}import{global as _0x36621d,DomEmitterMixin as _0x27d7cd}from'ckeditor5/src/utils.js';import{Sessions as _0x151bd6}from'./sessions.js';import{ModelLiveRange as _0x3bdb53}from'ckeditor5/src/engine.js';function _0x15db(_0x24a4df,_0xeaa181){const _0xf47e66=_0xf47e();return _0x15db=function(_0x15db15,_0x3135be){_0x15db15=_0x15db15-0x126;let _0x289ddc=_0xf47e66[_0x15db15];return _0x289ddc;},_0x15db(_0x24a4df,_0xeaa181);}import'../../theme/usermarkers.css';export class UserMarkers extends _0x14c960{[_0x4f1aa7(0x139)]=new(_0x27d7cd())();static get[_0x4f1aa7(0x17f)](){return[_0x151bd6];}static get[_0x4f1aa7(0x164)](){const _0x3d23cb=_0x4f1aa7;return _0x3d23cb(0x18f);}static get[_0x4f1aa7(0x147)](){return!0x0;}static get[_0x4f1aa7(0x19a)](){return!0x0;}[_0x4f1aa7(0x199)](){const _0x106c9f=_0x4f1aa7,_0x24e165=this[_0x106c9f(0x13a)],_0x3c70b7=_0x24e165[_0x106c9f(0x145)][_0x106c9f(0x17e)](_0x151bd6);_0x24e165[_0x106c9f(0x16e)][_0x106c9f(0x155)](_0x106c9f(0x168))[_0x106c9f(0x180)]({'model':_0x106c9f(0x13f),'view':(_0x5e65c0,{writer:_0x4ede5e})=>function(_0x520e73,_0x18adfa,_0x4e335a,_0x534e87){const _0x2f8c9a=_0x106c9f,_0x290e9b=_0x520e73[_0x2f8c9a(0x14c)][_0x2f8c9a(0x190)](':')[0x2],_0xb2ce4a=_0x4e335a[_0x2f8c9a(0x169)](_0x290e9b);if(!_0xb2ce4a||_0x290e9b===_0x4e335a[_0x2f8c9a(0x1ad)])return;if(!_0x534e87[_0x2f8c9a(0x166)][_0x2f8c9a(0x148)][_0x2f8c9a(0x1a8)](_0x520e73[_0x2f8c9a(0x17d)][_0x2f8c9a(0x150)],_0x2f8c9a(0x1a1)))return;const _0x46ad7c={'class':_0x2f8c9a(0x1ab)+_0xb2ce4a[_0x2f8c9a(0x16b)][_0x2f8c9a(0x1a6)](),'data-name':_0xb2ce4a[_0x2f8c9a(0x185)],'data-session-id':_0x290e9b},_0x4273da=_0x534e87[_0x2f8c9a(0x166)][_0x2f8c9a(0x18b)][_0x2f8c9a(0x17e)](_0x520e73[_0x2f8c9a(0x14c)]),_0x2e3e06=_0x4273da[_0x2f8c9a(0x141)](),_0x2cb81c=_0x2e3e06[_0x2f8c9a(0x16a)],_0x268991=_0x534e87[_0x2f8c9a(0x166)][_0x2f8c9a(0x148)];if(_0x2cb81c&&_0x268991[_0x2f8c9a(0x12c)](_0x2cb81c)&&_0x268991[_0x2f8c9a(0x17c)](_0x2cb81c)&&!_0x534e87[_0x2f8c9a(0x166)][_0x2f8c9a(0x18b)][_0x2f8c9a(0x17e)](_0x2f8c9a(0x1ac)+_0x290e9b)[_0x2f8c9a(0x1a5)]()[_0x2f8c9a(0x18c)])return;const _0x379195=_0x2e3e06[_0x2f8c9a(0x192)];return _0x534e87[_0x2f8c9a(0x166)][_0x2f8c9a(0x148)][_0x2f8c9a(0x196)](_0x379195)&&!_0x534e87[_0x2f8c9a(0x166)][_0x2f8c9a(0x151)](_0x379195)&&(_0x46ad7c[_0x2f8c9a(0x193)]=!0x1),function(_0x4c5328,_0x4b8501,_0x3d9b20){const _0x3d0532=_0x2f8c9a,_0x59e9aa=_0x4c5328[_0x3d0532(0x159)](_0x3d0532(0x158),_0x4b8501);return _0x4c5328[_0x3d0532(0x18a)](_0x3d0532(0x176),!0x0,_0x59e9aa),_0x59e9aa[_0x3d0532(0x16f)]=function(_0x402b17){const _0xa5a220=_0x3d0532,_0x1f7ab8=this[_0xa5a220(0x170)](_0x402b17),_0x377a81=document[_0xa5a220(0x178)](_0xa5a220(0x158));return _0x377a81[_0xa5a220(0x177)][_0xa5a220(0x126)](_0xa5a220(0x17a)),_0x377a81[_0xa5a220(0x179)](_0xa5a220(0x193),_0xa5a220(0x161)),_0x377a81[_0xa5a220(0x179)](_0xa5a220(0x15e),_0xa5a220(0x161)),_0x377a81[_0xa5a220(0x183)]=_0x3d9b20[_0xa5a220(0x185)],_0x1f7ab8[_0xa5a220(0x18d)]=_0xa5a220(0x144)+_0x377a81[_0xa5a220(0x1a3)]+'',_0x1f7ab8[_0xa5a220(0x133)](_0xa5a220(0x15c),()=>{const _0x18a32f=_0xa5a220;_0x1f7ab8[_0x18a32f(0x177)][_0x18a32f(0x126)](_0x18a32f(0x152));}),_0x1f7ab8[_0xa5a220(0x133)](_0xa5a220(0x127),()=>{const _0x108987=_0xa5a220;_0x1f7ab8[_0x108987(0x177)][_0x108987(0x14f)](_0x108987(0x152));}),_0x1f7ab8;},_0x59e9aa[_0x3d0532(0x129)]=function(_0x291203){const _0x53864b=_0x3d0532;return!(!this[_0x53864b(0x154)](_0x53864b(0x176))||!_0x291203[_0x53864b(0x154)](_0x53864b(0x176))||this[_0x53864b(0x13c)](_0x53864b(0x16c))!=_0x291203[_0x53864b(0x13c)](_0x53864b(0x16c)));},_0x59e9aa;}(_0x18adfa,_0x46ad7c,_0xb2ce4a);}(_0x5e65c0,_0x4ede5e,_0x3c70b7,_0x24e165)}),_0x24e165[_0x106c9f(0x16e)][_0x106c9f(0x155)](_0x106c9f(0x168))[_0x106c9f(0x130)]({'model':_0x106c9f(0x19e),'view':_0x2751f6=>function(_0x5014c7,_0x2e2c8d){const _0xcf114c=_0x106c9f,_0x41a9ce=_0x5014c7[_0xcf114c(0x14c)][_0xcf114c(0x190)](':')[0x2];if(_0x41a9ce===_0x2e2c8d[_0xcf114c(0x1ad)])return null;const _0x2ec996=_0x2e2c8d[_0xcf114c(0x169)](_0x41a9ce);if(!_0x2ec996)return{'id':_0x41a9ce,'classes':[]};return{'id':_0x41a9ce,'classes':[_0xcf114c(0x15a),_0x2ec996[_0xcf114c(0x16b)][_0xcf114c(0x149)]()],'attributes':{'data-session-id':_0x41a9ce},'priority':0x7d0+_0x2ec996[_0xcf114c(0x136)]};}(_0x2751f6,_0x3c70b7)}),function(_0x114f52){const _0x49c0c9=_0x106c9f,_0x54c022=_0x114f52[_0x49c0c9(0x166)],_0x2e2255=new Map(),_0x4752ec=_0x114f52[_0x49c0c9(0x145)][_0x49c0c9(0x17e)](_0x151bd6);_0x54c022[_0x49c0c9(0x18b)]['on'](_0x49c0c9(0x163),(_0x3e7ea9,_0x35c035,_0x2e3372,_0x58481c)=>{const _0x34c376=_0x49c0c9;if(!_0x58481c&&_0x2e2255[_0x34c376(0x17e)](_0x35c035[_0x34c376(0x185)]))return _0x2e2255[_0x34c376(0x17e)](_0x35c035[_0x34c376(0x185)])[_0x34c376(0x140)](),void _0x2e2255[_0x34c376(0x143)](_0x35c035[_0x34c376(0x185)]);const _0x3eaf91=_0x35c035[_0x34c376(0x185)][_0x34c376(0x190)](':')[0x2];if(_0x3eaf91===_0x4752ec[_0x34c376(0x1ad)])return;const _0x347d77=_0x34c376(0x12b)+_0x3eaf91;_0x54c022[_0x34c376(0x18b)][_0x34c376(0x15d)](_0x347d77)&&_0x114f52[_0x34c376(0x132)][_0x34c376(0x175)](_0x347d77),_0x35c035['on'](_0x34c376(0x14b),(_0x113435,_0x12c97b,_0x280c2f)=>{const _0x209089=_0x34c376;if(_0x209089(0x1ae)!=_0x12c97b[_0x209089(0x19d)][_0x209089(0x1a0)]&&_0x209089(0x1ae)==_0x35c035[_0x209089(0x1a5)]()[_0x209089(0x19d)][_0x209089(0x1a0)]&&!_0x2e2255[_0x209089(0x15d)](_0x35c035[_0x209089(0x185)])){const _0x278158=_0x54c022[_0x209089(0x148)][_0x209089(0x17b)](_0x280c2f[_0x209089(0x14d)]);if(_0x278158){const _0x5cb710=_0x3bdb53[_0x209089(0x12f)](_0x278158);_0x2e2255[_0x209089(0x188)](_0x35c035[_0x209089(0x185)],_0x5cb710),_0x5cb710['on'](_0x209089(0x14b),(_0x31bb43,_0x44c6b6,_0x1a8d11)=>{const _0x3640d0=_0x209089;if(_0x3640d0(0x1ae)==_0x5cb710[_0x3640d0(0x19d)][_0x3640d0(0x1a0)]){const _0x100181=_0x54c022[_0x3640d0(0x148)][_0x3640d0(0x17b)](_0x1a8d11[_0x3640d0(0x14d)]);_0x100181?(_0x5cb710[_0x3640d0(0x150)]=_0x100181[_0x3640d0(0x150)],_0x5cb710[_0x3640d0(0x1aa)]=_0x100181[_0x3640d0(0x1aa)]):(_0x2e2255[_0x3640d0(0x143)](_0x35c035[_0x3640d0(0x185)]),_0x5cb710[_0x3640d0(0x140)]());}});}}});}),_0x54c022[_0x49c0c9(0x171)]['on'](_0x49c0c9(0x187),()=>{const _0x2f2b4b=_0x49c0c9;_0x2e2255[_0x2f2b4b(0x146)]>0x0&&_0x54c022[_0x2f2b4b(0x156)]({'isUndoable':!0x1},_0x2ee310=>{const _0x10a374=_0x2f2b4b;for(const [_0x402c64,_0x2b15e2]of _0x2e2255)_0x10a374(0x1ae)==_0x54c022[_0x10a374(0x18b)][_0x10a374(0x17e)](_0x402c64)[_0x10a374(0x1a5)]()[_0x10a374(0x19d)][_0x10a374(0x1a0)]&&(Z(_0x402c64[_0x10a374(0x190)](':')[0x2],_0x2b15e2[_0x10a374(0x138)](),_0x54c022,_0x2ee310),_0x2b15e2[_0x10a374(0x140)]());_0x2e2255[_0x10a374(0x135)]();});});}(_0x24e165),this[_0x106c9f(0x139)][_0x106c9f(0x195)](_0x36621d[_0x106c9f(0x171)],_0x106c9f(0x128),(_0x3b333b,{key:_0x1f7da7})=>{const _0x14112e=_0x106c9f;_0x14112e(0x157)===_0x1f7da7&&function(_0x1346f8){const _0x419652=_0x14112e;_0x1346f8[_0x419652(0x132)][_0x419652(0x172)][_0x419652(0x187)](_0x534633=>{const _0x5629de=_0x419652;for(const _0x2ee3f2 of _0x1346f8[_0x5629de(0x166)][_0x5629de(0x18b)]){if(!_0x2ee3f2[_0x5629de(0x185)][_0x5629de(0x19f)](_0x5629de(0x13f)))continue;const _0x237f40=_0x1346f8[_0x5629de(0x132)][_0x5629de(0x15f)][_0x5629de(0x186)](_0x2ee3f2[_0x5629de(0x185)]);if(_0x237f40){for(const _0x55f84f of _0x237f40)_0x534633[_0x5629de(0x13b)](_0x5629de(0x152),_0x55f84f);}}});}(_0x24e165);},{'useCapture':!0x0});}[_0x4f1aa7(0x173)](){const _0x1a1b83=_0x4f1aa7,_0x5b9356=this[_0x1a1b83(0x13a)],_0x323974=_0x5b9356[_0x1a1b83(0x1b2)][_0x1a1b83(0x17e)](_0x1a1b83(0x12d));_0x323974&&_0x5b9356[_0x1a1b83(0x166)]['on'](_0x1a1b83(0x18e),(_0x49db2f,_0x377423)=>{const _0x5d8967=_0x1a1b83,_0x1852ab=_0x377423[0x0];if(!_0x1852ab[_0x5d8967(0x134)])return;if(_0x5d8967(0x162)!=_0x1852ab[_0x5d8967(0x182)]||!_0x1852ab[_0x5d8967(0x185)][_0x5d8967(0x19f)](_0x5d8967(0x197)))return;const _0x47afcf=_0x1852ab[_0x5d8967(0x12e)];_0x323974[_0x5d8967(0x1a9)][_0x5d8967(0x15d)](_0x47afcf)&&(_0x1852ab[_0x5d8967(0x198)]=_0x1852ab[_0x5d8967(0x12a)]?_0x5b9356[_0x5d8967(0x166)][_0x5d8967(0x165)](_0x1852ab[_0x5d8967(0x12a)][_0x5d8967(0x150)],_0x1852ab[_0x5d8967(0x12a)][_0x5d8967(0x1aa)]):null);},{'priority':_0x1a1b83(0x13e)});}[_0x4f1aa7(0x1a2)](){const _0x3f811c=_0x4f1aa7;return this[_0x3f811c(0x139)][_0x3f811c(0x1a4)](),super[_0x3f811c(0x1a2)]();}[_0x4f1aa7(0x184)](){const _0x3dcca5=_0x4f1aa7,_0x4693ac=this[_0x3dcca5(0x13a)],_0x2eead8=_0x4693ac[_0x3dcca5(0x166)][_0x3dcca5(0x171)],_0x4050eb=_0x4693ac[_0x3dcca5(0x145)][_0x3dcca5(0x17e)](_0x151bd6);_0x4693ac[_0x3dcca5(0x166)][_0x3dcca5(0x156)]({'isUndoable':!0x1},_0x2600a6=>{const _0x512c21=_0x3dcca5,_0x512550=_0x512c21(0x1ac)+_0x4050eb[_0x512c21(0x1ad)],_0x12aa0d=_0x512c21(0x12b)+_0x4050eb[_0x512c21(0x1ad)],_0x75deac=_0x4693ac[_0x512c21(0x166)][_0x512c21(0x18b)][_0x512c21(0x15d)](_0x512550);_0x4693ac[_0x512c21(0x132)][_0x512c21(0x172)][_0x512c21(0x174)]?Z(_0x4050eb[_0x512c21(0x1ad)],_0x2eead8[_0x512c21(0x1af)][_0x512c21(0x14e)](),_0x4693ac[_0x512c21(0x166)],_0x2600a6):_0x75deac&&(_0x2600a6[_0x512c21(0x181)](_0x512550),_0x2600a6[_0x512c21(0x181)](_0x12aa0d));});}}function Z(_0x2f172e,_0x56e899,_0x54e3d8,_0x688c27){const _0x1660a0=_0x4f1aa7,_0x5a9fd6=_0x1660a0(0x1ac)+_0x2f172e,_0x1e384e=_0x1660a0(0x12b)+_0x2f172e,_0x28cea2=_0x56e899[_0x1660a0(0x142)]();let _0x5703ce=_0x56e899[_0x1660a0(0x150)];if(_0x28cea2&&_0x28cea2['is'](_0x1660a0(0x137),_0x1660a0(0x19c))){const _0x100a97=function(_0x54368b,_0x2da358){const _0x4e7e12=_0x1660a0;for(const _0x52a9b0 of _0x54368b[_0x4e7e12(0x1b1)]())if(_0x2da358[_0x4e7e12(0x148)][_0x4e7e12(0x1a8)](_0x52a9b0,_0x4e7e12(0x1a1)))return _0x52a9b0;}(_0x56e899,_0x54e3d8);_0x100a97&&(_0x5703ce=_0x100a97,_0x56e899=_0x688c27[_0x1660a0(0x165)](_0x5703ce));}const _0x504080=_0x688c27[_0x1660a0(0x165)](_0x5703ce);_0x54e3d8[_0x1660a0(0x18b)][_0x1660a0(0x15d)](_0x5a9fd6)?(_0x688c27[_0x1660a0(0x13d)](_0x5a9fd6,{'range':_0x56e899}),_0x688c27[_0x1660a0(0x13d)](_0x1e384e,{'range':_0x504080})):(_0x688c27[_0x1660a0(0x19b)](_0x5a9fd6,{'range':_0x56e899,'usingOperation':!0x0}),_0x688c27[_0x1660a0(0x19b)](_0x1e384e,{'range':_0x504080,'usingOperation':!0x0}));}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>
|
|
23
|
+
const _0xe7943a=_0x5b6f;(function(_0x1d00f3,_0x15c17a){const _0x2a4e09=_0x5b6f,_0x566405=_0x1d00f3();while(!![]){try{const _0x5b9e7e=-parseInt(_0x2a4e09(0xa0))/0x1*(-parseInt(_0x2a4e09(0x90))/0x2)+parseInt(_0x2a4e09(0x71))/0x3+-parseInt(_0x2a4e09(0x94))/0x4*(parseInt(_0x2a4e09(0x97))/0x5)+-parseInt(_0x2a4e09(0xa6))/0x6*(parseInt(_0x2a4e09(0x74))/0x7)+parseInt(_0x2a4e09(0x9f))/0x8+parseInt(_0x2a4e09(0x7f))/0x9*(parseInt(_0x2a4e09(0x8e))/0xa)+-parseInt(_0x2a4e09(0xb2))/0xb;if(_0x5b9e7e===_0x15c17a)break;else _0x566405['push'](_0x566405['shift']());}catch(_0x11e18a){_0x566405['push'](_0x566405['shift']());}}}(_0xf142,0xa4fb0));function _0x5b6f(_0x44cd82,_0x205821){const _0xf142b9=_0xf142();return _0x5b6f=function(_0x5b6f50,_0x32e2db){_0x5b6f50=_0x5b6f50-0x71;let _0x118b9e=_0xf142b9[_0x5b6f50];return _0x118b9e;},_0x5b6f(_0x44cd82,_0x205821);}import{ContextPlugin as _0x57d785}from'ckeditor5/src/core.js';import{DomEmitterMixin as _0x2c5130,CKEditorError as _0x77578f}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x264db8,WEB_SOCKET_GATEWAY_STATES as _0x3905bf}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0x4b6bc4}from'ckeditor5/src/ui.js';function _0xf142(){const _0x12ce5d=['config','init','websocketgateway-missing-token','websocketgateway-plugin-already-registered','online','_domEmitter','cloudservices-reconnection-error','showWarning','_reconnect','from','2097oQlrQM','change:me','constructor','connect','function','webSocketUrl','add','token','websocketgateway-invalid-plugin-interface','real-time-collaboration','connected','_reconnectionStack','offline','then','destroy','43240aAhJgN','_shouldPluginsReconnect','916912lKNVeG','DISCONNECTED','The\x20limit\x20of\x20maximum\x20concurrent\x20connections\x20that\x20the\x20collaboration\x20server\x20can\x20handle\x20has\x20been\x20reached.\x20Try\x20opening\x20the\x20document\x20again\x20in\x20a\x20few\x20minutes.\x20Please\x20contact\x20your\x20system\x20administrator\x20if\x20the\x20problem\x20persists.','cloudservices-init','8824bXysZn','requires','Connected\x20users\x20limit\x20exceeded','2130ECSQJa','listenTo','pluginName','error','disconnect','isPremiumPlugin','stopListening','initialReconnectionInterval','5182176uhjcHK','2tbSQWa','WebSocketGateway','connection','set','bind','websocketgateway-missing-websocket-url','37374PnSvvN','all','context','isOfficialPlugin','define','addToReconnectionStack','delete','removeFromReconnectionStack','code','get','plugins','has','20158622LJdrJb','cloudServices.connectionTimeout','catch','isInReconnectionStack','state','CONNECTED','reconnect','CloudServices','CONNECTING','cloudServices.requestTimeout','2683887aZvTsI','limitExceeded','_isBrowserOffline','21MPJyzg'];_0xf142=function(){return _0x12ce5d;};return _0xf142();}export class WebSocketGateway extends _0x57d785{static [_0xe7943a(0xa1)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x264db8)());static [_0xe7943a(0x9e)]=0x3e8;[_0xe7943a(0xa2)];[_0xe7943a(0x8a)];[_0xe7943a(0x8f)];[_0xe7943a(0x7a)];static get[_0xe7943a(0x95)](){const _0x27071c=_0xe7943a;return[_0x27071c(0xb9),_0x4b6bc4];}static get[_0xe7943a(0x99)](){const _0x20532a=_0xe7943a;return _0x20532a(0xa1);}static get[_0xe7943a(0xa9)](){return!0x0;}static get[_0xe7943a(0x9c)](){return!0x0;}constructor(_0x4b237c){const _0x27b03a=_0xe7943a;super(_0x4b237c),this[_0x27b03a(0xa3)](_0x27b03a(0xb6),_0x3905bf[_0x27b03a(0xb7)]),this[_0x27b03a(0xa3)](_0x27b03a(0x73),!0x1),this[_0x27b03a(0x8a)]=new Set(),this[_0x27b03a(0x8f)]=!0x1,this[_0x27b03a(0x7a)]=new(_0x2c5130())();}[_0xe7943a(0x76)](){const _0xcb0a2c=_0xe7943a,_0x500497=this[_0xcb0a2c(0xa8)],_0xb1cb2a=_0x500497[_0xcb0a2c(0xb0)][_0xcb0a2c(0xaf)](_0xcb0a2c(0xb9)),_0x6e3025=_0x500497[_0xcb0a2c(0xb0)][_0xcb0a2c(0xaf)](_0x4b6bc4);if(!_0xb1cb2a[_0xcb0a2c(0x86)])throw new _0x77578f(_0xcb0a2c(0x77),this);if(!_0xb1cb2a[_0xcb0a2c(0x84)])throw new _0x77578f(_0xcb0a2c(0xa5),this);return this[_0xcb0a2c(0x7a)][_0xcb0a2c(0x98)](window,_0xcb0a2c(0x8b),()=>this[_0xcb0a2c(0x73)]=!0x0),this[_0xcb0a2c(0x7a)][_0xcb0a2c(0x98)](window,_0xcb0a2c(0x79),()=>this[_0xcb0a2c(0x73)]=!0x1),this[_0xcb0a2c(0xa8)][_0xcb0a2c(0x75)][_0xcb0a2c(0xaa)](_0xcb0a2c(0xb3),0xa),this[_0xcb0a2c(0xa8)][_0xcb0a2c(0x75)][_0xcb0a2c(0xaa)](_0xcb0a2c(0xbb),0x14),WebSocketGateway[_0xcb0a2c(0xa1)][_0xcb0a2c(0x82)](_0xb1cb2a[_0xcb0a2c(0x86)],_0xb1cb2a[_0xcb0a2c(0x84)],{'timeout':0x3e8*this[_0xcb0a2c(0xa8)][_0xcb0a2c(0x75)][_0xcb0a2c(0xaf)](_0xcb0a2c(0xb3)),'requestTimeout':0x3e8*this[_0xcb0a2c(0xa8)][_0xcb0a2c(0x75)][_0xcb0a2c(0xaf)](_0xcb0a2c(0xbb))})[_0xcb0a2c(0x8c)](_0x3147a5=>{const _0x36aff0=_0xcb0a2c;if(this[_0x36aff0(0xa2)]=_0x3147a5,this[_0x36aff0(0xa4)](_0x36aff0(0xb6))['to'](_0x3147a5,_0x36aff0(0xb6),this,_0x36aff0(0x73),(_0x2cfa58,_0x2b5197)=>(_0x36aff0(0x89)!==_0x2cfa58&&(this[_0x36aff0(0x8f)]=!0x0),_0x2b5197||_0x2cfa58!==_0x3905bf[_0x36aff0(0xb7)]?_0x3905bf[_0x36aff0(0x91)]:this[_0x36aff0(0xb6)]==_0x3905bf[_0x36aff0(0x91)]&&this[_0x36aff0(0x8f)]?(this[_0x36aff0(0x8f)]=!0x1,this[_0x36aff0(0x7d)](),_0x3905bf[_0x36aff0(0xba)]):_0x3905bf[_0x36aff0(0xb7)])),this[_0x36aff0(0xa2)]['on'](_0x36aff0(0x9a),(_0x29b3c4,_0x454239)=>{const _0x56ebe4=_0x36aff0;if(_0x56ebe4(0x72)!==_0x454239[_0x56ebe4(0xae)])throw console[_0x56ebe4(0x9a)](_0x454239),new _0x77578f(_0x56ebe4(0x93),null,{'originalError':_0x454239});_0x6e3025[_0x56ebe4(0x7c)](_0x56ebe4(0x92),{'title':_0x56ebe4(0x96),'namespace':_0x56ebe4(0x88)});}),!_0x3147a5['me'])return new Promise(_0x442a8a=>_0x3147a5['on'](_0x36aff0(0x80),_0x442a8a));})[_0xcb0a2c(0xb4)](_0x3dcbc3=>{const _0x3a5a20=_0xcb0a2c;throw console[_0x3a5a20(0x9a)](_0x3dcbc3),new _0x77578f(_0x3a5a20(0x93),null,{'originalError':_0x3dcbc3});});}[_0xe7943a(0xab)](_0x3d6b95){const _0x85c1d3=_0xe7943a;if(_0x85c1d3(0x83)!=typeof _0x3d6b95[_0x85c1d3(0xb8)])throw new _0x77578f(_0x85c1d3(0x87),this);if(this[_0x85c1d3(0xb5)](_0x3d6b95))throw new _0x77578f(_0x85c1d3(0x78),this,{'name':_0x3d6b95[_0x85c1d3(0x81)][_0x85c1d3(0x99)]});this[_0x85c1d3(0x8a)][_0x85c1d3(0x85)](_0x3d6b95);}[_0xe7943a(0xad)](_0x381e23){const _0x2a69b7=_0xe7943a;this[_0x2a69b7(0x8a)][_0x2a69b7(0xac)](_0x381e23);}[_0xe7943a(0xb5)](_0x43e233){const _0xe351=_0xe7943a;return this[_0xe351(0x8a)][_0xe351(0xb1)](_0x43e233);}[_0xe7943a(0x7d)](){const _0x318d76=_0xe7943a;return this[_0x318d76(0xa2)][_0x318d76(0xb8)]()[_0x318d76(0x8c)](()=>Promise[_0x318d76(0xa7)](Array[_0x318d76(0x7e)](this[_0x318d76(0x8a)],_0x52e547=>_0x52e547[_0x318d76(0xb8)]())))[_0x318d76(0x8c)](()=>this[_0x318d76(0xb6)]=_0x3905bf[_0x318d76(0xb7)])[_0x318d76(0xb4)](_0x58566c=>{const _0x20747f=_0x318d76;throw console[_0x20747f(0x9a)](_0x58566c),new _0x77578f(_0x20747f(0x7b),this[_0x20747f(0xa8)]);});}[_0xe7943a(0x9b)](){const _0x1dc73d=_0xe7943a;this[_0x1dc73d(0xa2)]&&this[_0x1dc73d(0xa2)][_0x1dc73d(0x9b)](),this[_0x1dc73d(0xb6)]=_0x3905bf[_0x1dc73d(0x91)],this[_0x1dc73d(0x7a)][_0x1dc73d(0x9d)]();}[_0xe7943a(0x8d)](){const _0x51cc08=_0xe7943a;this[_0x51cc08(0x9b)](),super[_0x51cc08(0x8d)]();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>_0x3b3caa)());[_0x4bc005(0xc3)];[_0x4bc005(0x119)];[_0x4bc005(0xc4)];[_0x4bc005(0xe0)];static get[_0x4bc005(0x10a)](){const _0x5ae1aa=_0x4bc005;return[_0x3f7090,_0x50e08c,_0x5ae1aa(0xce),_0x4a9b3e,_0x5b8ca1];}static get[_0x4bc005(0xd5)](){const _0x111763=_0x4bc005;return _0x111763(0xc5);}static get[_0x4bc005(0xfb)](){return!0x0;}static get[_0x4bc005(0xd4)](){return!0x0;}constructor(_0x1cd14d){const _0x2b8286=_0x4bc005;super(_0x1cd14d);const _0x416ebc=this[_0x2b8286(0xee)][_0x2b8286(0xef)][_0x2b8286(0x11f)](_0x2b8286(0xff));this[_0x2b8286(0xc3)]=null,this[_0x2b8286(0x119)]=this[_0x2b8286(0xee)][_0x2b8286(0x124)][_0x2b8286(0x11f)](_0x2b8286(0x11a)),this[_0x2b8286(0xc4)]=new CloudServicesRevisionHistoryAdapter[(_0x2b8286(0xca))](_0x416ebc);}async[_0x4bc005(0xe3)](){const _0x39a061=_0x4bc005,_0x4b051b=this[_0x39a061(0xee)][_0x39a061(0x124)][_0x39a061(0x11f)](_0x50e08c),_0x197f27=_0x4b051b[_0x39a061(0xeb)],_0x25e1ba=this[_0x39a061(0xee)][_0x39a061(0x124)][_0x39a061(0x11f)](_0x3f7090);this[_0x39a061(0x119)][_0x39a061(0x114)]({'history':_0x197f27,'getLatestVersion':()=>this[_0x39a061(0x109)](),'getCurrentRevisionId':()=>_0x4b051b[_0x39a061(0xe6)]});const _0x153918=this[_0x39a061(0xee)][_0x39a061(0xef)][_0x39a061(0x11f)](_0x39a061(0xf1))||_0x5e2128,_0x539c59=await _0x328053[_0x39a061(0x12b)](_0x25e1ba[_0x39a061(0xf9)],_0x153918);this[_0x39a061(0xee)][_0x39a061(0x124)][_0x39a061(0x11f)](_0x39a061(0xce))[_0x39a061(0xfc)]={'getRevision':async({revisionId:_0x37c613})=>(await this[_0x39a061(0xf3)](),await this[_0x39a061(0xc4)][_0x39a061(0x112)](_0x37c613)),'updateRevisions':async _0x5a1882=>{const _0x3566ba=_0x39a061;await this[_0x3566ba(0xf3)]();const _0x41e948=this[_0x3566ba(0x119)][_0x3566ba(0x108)];if(_0x539c59&&0x1===_0x5a1882[_0x3566ba(0x110)]&&_0x5a1882[0x0]['id']===_0x41e948['id'])return _0x5a1882;for(const _0x3c67a7 of _0x5a1882)_0x3c67a7['id']===_0x41e948['id']&&(_0x3c67a7[_0x3566ba(0x12e)]=_0x3c67a7[_0x3566ba(0xd6)]===_0x3c67a7[_0x3566ba(0x12f)]);return this[_0x3566ba(0xc4)][_0x3566ba(0xd1)](_0x5a1882,this[_0x3566ba(0xc3)])[_0x3566ba(0xdd)](_0x2fddd4=>(this[_0x3566ba(0xc3)]=_0x2fddd4,_0x5a1882))[_0x3566ba(0x132)](_0x4fe288=>{const _0x20af83=_0x3566ba;if(q(_0x4fe288)||_0x20af83(0xed)===_0x4fe288[_0x20af83(0xe5)]&&void 0x0!==_0x4fe288[_0x20af83(0xec)][_0x20af83(0xdf)]){for(const _0x4d0cfc of _0x5a1882){!this[_0x20af83(0x119)][_0x20af83(0xcc)][_0x20af83(0x112)](_0x4d0cfc['id'])||this[_0x20af83(0x119)][_0x20af83(0xd7)](_0x4d0cfc['id'],_0x4d0cfc,!0x1);}if(q(_0x4fe288))throw _0x4fe288;return _0x5a1882;}throw _0x4fe288;});}},this[_0x39a061(0xdc)](this[_0x39a061(0xc4)],_0x39a061(0x12d),(_0x3dc740,{revisionsData:_0x2eb510,requestId:_0x456ed4})=>{const _0x5f1dcb=_0x39a061;Math[_0x5f1dcb(0x121)](..._0x2eb510[_0x5f1dcb(0xfa)](_0x19fc2c=>_0x19fc2c[_0x5f1dcb(0x12f)]))>this[_0x5f1dcb(0xde)]()-0x1?this[_0x5f1dcb(0x109)]()[_0x5f1dcb(0xdd)](()=>{const _0x43aeed=_0x5f1dcb;this[_0x43aeed(0x126)](_0x2eb510,_0x456ed4);}):this[_0x5f1dcb(0x126)](_0x2eb510,_0x456ed4);});const {revisions:_0x178be8,requestId:_0x5bf29a}=await this[_0x39a061(0xc4)][_0x39a061(0x12c)](_0x25e1ba[_0x39a061(0xf9)]);_0x25e1ba[_0x39a061(0xd2)](this),this[_0x39a061(0xc3)]=_0x5bf29a,await this[_0x39a061(0x125)](_0x178be8);for(const _0x404114 of _0x178be8)this[_0x39a061(0x119)][_0x39a061(0x123)](_0x404114);this[_0x39a061(0xdc)](_0x4b051b,_0x39a061(0xfe),(_0x57b714,_0xf8851b,_0x59d696)=>{const _0x4ef3fa=_0x39a061;_0x59d696&&(this[_0x4ef3fa(0xe0)]=_0x4b051b[_0x4ef3fa(0x11e)],_0x57b714[_0x4ef3fa(0x116)]());}),this[_0x39a061(0x119)][_0x39a061(0x104)](_0x39a061(0x129))['to'](_0x25e1ba,_0x39a061(0x10c),_0x233485=>_0x233485===_0x214663[_0x39a061(0x11d)]);}async[_0x4bc005(0xe1)](){const _0x3efef7=_0x4bc005,_0x1e85ff=this[_0x3efef7(0xee)][_0x3efef7(0x124)][_0x3efef7(0x11f)](_0x3f7090),_0x201760=this[_0x3efef7(0xee)][_0x3efef7(0x124)][_0x3efef7(0x11f)](_0x50e08c),_0x24e5d1=async()=>{const _0x183ac0=_0x3efef7,_0x17ecc8=this[_0x183ac0(0x119)][_0x183ac0(0x108)],_0x24c935=_0x17ecc8['id'],_0x4f7daf=_0x24c935!==_0x201760[_0x183ac0(0xe6)];if(_0x4f7daf){const _0x31a7eb=_0x201760[_0x183ac0(0x11e)]-this[_0x183ac0(0xe0)],_0x3527f8=this[_0x183ac0(0xde)]();this[_0x183ac0(0x119)][_0x183ac0(0x128)][_0x183ac0(0xf8)]();if(_0x17ecc8[_0x183ac0(0x12f)]+_0x31a7eb!==_0x3527f8){const _0x2d036e=_0x17ecc8[_0x183ac0(0xd6)]+_0x31a7eb,_0x1ee041=this[_0x183ac0(0xee)][_0x183ac0(0x124)][_0x183ac0(0x11f)](_0x5b8ca1),_0x2cdad8=this[_0x183ac0(0x119)][_0x183ac0(0xf6)]({'revision':_0x17ecc8,'from':_0x2d036e,'to':_0x3527f8});_0x2cdad8['id']=_0x17ecc8['id'];const _0x41a9de=_0x2cdad8[_0x183ac0(0x131)][_0x183ac0(0xfa)](_0x56a921=>_0x1ee041[_0x183ac0(0xda)](_0x56a921));_0x17ecc8[_0x183ac0(0xf7)]({..._0x2cdad8,'authors':_0x41a9de},!0x0),this[_0x183ac0(0x119)][_0x183ac0(0xd7)](_0x17ecc8['id'],_0x2cdad8,!0x0);}this[_0x183ac0(0x119)][_0x183ac0(0x111)]=_0x3527f8,(_0x17ecc8[_0x183ac0(0x12f)]===_0x17ecc8[_0x183ac0(0xd6)]&&!this[_0x183ac0(0x119)][_0x183ac0(0x120)][_0x183ac0(0x113)](_0x24c935)&&this[_0x183ac0(0x119)][_0x183ac0(0xcc)][_0x183ac0(0xf4)][_0x183ac0(0xc9)](_0x24c935),this[_0x183ac0(0x119)][_0x183ac0(0xd0)](_0x3527f8));}const {revisions:_0x1279ea,requestId:_0x52002a}=await this[_0x183ac0(0xc4)][_0x183ac0(0xe1)](_0x1e85ff[_0x183ac0(0xf9)],this[_0x183ac0(0xc3)]);_0x4f7daf&&_0x1279ea[_0x183ac0(0x110)]>0x0?_0x201760[_0x183ac0(0xe8)]():(await this[_0x183ac0(0x125)](_0x1279ea),this[_0x183ac0(0x126)](_0x1279ea,_0x52002a),this[_0x183ac0(0x119)][_0x183ac0(0xf0)]());};return _0x201760[_0x3efef7(0x133)]?_0x24e5d1():new Promise((_0x31a4f4,_0x16cb9a)=>{const _0x59de6e=_0x3efef7;_0x201760[_0x59de6e(0xc7)](_0x59de6e(0xfe),()=>{const _0x151fb2=_0x59de6e;_0x24e5d1()[_0x151fb2(0xdd)](_0x31a4f4)[_0x151fb2(0x132)](_0x16cb9a);});});}[_0x4bc005(0x11b)](){const _0x5c6ca0=_0x4bc005;super[_0x5c6ca0(0x11b)]();}async[_0x4bc005(0xf3)](){const _0x134dc9=_0x4bc005;this[_0x134dc9(0xc4)][_0x134dc9(0x10f)]||await new Promise(_0x4842e2=>{const _0x541676=_0x134dc9;this[_0x541676(0xdc)](this[_0x541676(0xc4)],_0x541676(0x101),_0x42513b=>{const _0x22d23a=_0x541676;_0x42513b[_0x22d23a(0x116)](),_0x4842e2();});});}[_0x4bc005(0xde)](){const _0x148882=_0x4bc005,_0x123177=this[_0x148882(0xee)][_0x148882(0x124)][_0x148882(0x11f)](_0x50e08c)[_0x148882(0xeb)][_0x148882(0xe4)]()[_0x148882(0x130)]();for(const _0x5c67e7 of _0x123177)if(_0x148882(0x117)!==_0x5c67e7[_0x148882(0xc6)]||_0x5c67e7[_0x148882(0x10b)])return _0x5c67e7[_0x148882(0xe7)]+0x1;}[_0x4bc005(0x109)](){const _0x431818=_0x4bc005,_0x3bc26d=this[_0x431818(0xee)][_0x431818(0x124)][_0x431818(0x11f)](_0x50e08c);return new Promise(_0x402c74=>{const _0x4790c2=_0x431818;_0x3bc26d[_0x4790c2(0x127)]?_0x3bc26d[_0x4790c2(0xc7)](_0x4790c2(0xc2),()=>{const _0x581697=_0x4790c2;_0x402c74(this[_0x581697(0xde)]());}):_0x402c74(this[_0x4790c2(0xde)]());});}[_0x4bc005(0x126)](_0x4f0d40,_0x44d99c){const _0x54108d=_0x4bc005,_0xa59b01=this[_0x54108d(0x119)][_0x54108d(0xcc)];this[_0x54108d(0xc3)]=_0x44d99c;for(const _0x4d40a8 of _0x4f0d40){const _0x53c737=_0xa59b01[_0x54108d(0x112)](_0x4d40a8['id']);if(_0x53c737){if((_0x4d40a8[_0x54108d(0xd6)]||_0x4d40a8[_0x54108d(0x12f)])&&(_0x4d40a8[_0x54108d(0xd8)]=null),_0x53c737===this[_0x54108d(0x119)][_0x54108d(0x108)]){const _0x59d84f=Math[_0x54108d(0x121)](_0x53c737[_0x54108d(0x12f)],_0x4d40a8[_0x54108d(0x12f)]),_0x4e29bc=Math[_0x54108d(0x121)](_0x53c737[_0x54108d(0xd6)],_0x4d40a8[_0x54108d(0xd6)]);let _0x1e61aa;_0x53c737[_0x54108d(0x12f)]===_0x4d40a8[_0x54108d(0x12f)]&&_0x53c737[_0x54108d(0xd6)]===_0x4d40a8[_0x54108d(0xd6)]?(_0x1e61aa=!0x0,this[_0x54108d(0x106)](_0x4d40a8)):_0x4d40a8[_0x54108d(0x12f)]===_0x59d84f&&_0x4d40a8[_0x54108d(0xd6)]===_0x4e29bc?_0x1e61aa=!0x1:(_0x53c737[_0x54108d(0x12f)]===_0x59d84f&&_0x53c737[_0x54108d(0xd6)]===_0x4e29bc||this[_0x54108d(0xcf)]({'revision':_0x53c737,'from':_0x4e29bc,'to':_0x59d84f}),_0x1e61aa=!0x0),_0x1e61aa&&(delete _0x4d40a8[_0x54108d(0xd6)],delete _0x4d40a8[_0x54108d(0x12f)],delete _0x4d40a8[_0x54108d(0xd8)],delete _0x4d40a8[_0x54108d(0x118)],delete _0x4d40a8[_0x54108d(0x131)]);}this[_0x54108d(0x119)][_0x54108d(0x12a)](_0x4d40a8),this[_0x54108d(0x106)](_0x4d40a8);}else this[_0x54108d(0x119)][_0x54108d(0x123)](_0x4d40a8);}const _0x35e726=_0xa59b01[_0x54108d(0xe9)]();_0x35e726[_0x54108d(0x130)]();for(let _0x516254=0x0;_0x516254<_0x35e726[_0x54108d(0x110)]-0x1;_0x516254++){const _0x2e6007=_0x35e726[_0x516254],_0x273e9b=_0x35e726[_0x516254+0x1];if(_0x2e6007[_0x54108d(0xd6)]<_0x273e9b[_0x54108d(0x12f)]){const _0x56962a=_0x273e9b[_0x54108d(0x12f)],_0x18dfd2=Math[_0x54108d(0x121)](_0x56962a,_0x2e6007[_0x54108d(0x12f)]);this[_0x54108d(0xcf)]({'revision':_0x2e6007,'from':_0x56962a,'to':_0x18dfd2});}}}[_0x4bc005(0xcf)]({revision:_0x37a3e2,from:_0x4bcbe8,to:_0x28d23b}={}){const _0x11ecc1=_0x4bc005,_0x3fba39=this[_0x11ecc1(0xee)][_0x11ecc1(0x124)][_0x11ecc1(0x11f)](_0x5b8ca1),_0x8a12ca=this[_0x11ecc1(0x119)][_0x11ecc1(0xf6)]({'revision':_0x37a3e2,'from':_0x4bcbe8,'to':_0x28d23b});_0x8a12ca[_0x11ecc1(0x10d)]=_0x8a12ca[_0x11ecc1(0x131)][_0x11ecc1(0xfa)](_0x2ed3d7=>_0x3fba39[_0x11ecc1(0xda)](_0x2ed3d7)),_0x37a3e2[_0x11ecc1(0xf7)](_0x8a12ca);}[_0x4bc005(0x106)](_0x2b98b9){const _0x1e9da=_0x4bc005,_0x2ff5f2={};_0x2ff5f2['id']=_0x2b98b9['id'];for(const _0x176d8a of Object[_0x1e9da(0x107)](_0x2b98b9))'id'!==_0x176d8a&&(_0x2ff5f2[_0x176d8a]=void 0x0);this[_0x1e9da(0x119)][_0x1e9da(0xd7)](_0x2ff5f2['id'],_0x2ff5f2,!0x0);}async[_0x4bc005(0x125)](_0x1a2e9a){const _0x352967=_0x4bc005,_0x24592b=this[_0x352967(0xee)][_0x352967(0x124)][_0x352967(0x11f)](_0x5b8ca1),{connection:_0x1a55ab}=this[_0x352967(0xee)][_0x352967(0x124)][_0x352967(0x11f)](_0x3f7090),_0x4c3228=new Set();for(const _0x427918 of _0x1a2e9a){for(const _0x3ce44b of _0x427918[_0x352967(0x131)])_0x1e0141(_0x3ce44b);_0x427918[_0x352967(0x103)]&&_0x1e0141(_0x427918[_0x352967(0x103)]);}if(0x0===_0x4c3228[_0x352967(0x105)])return;const _0x57d1e1=await _0x3d7603[_0x352967(0xd3)](_0x1a55ab,Array[_0x352967(0xcd)](_0x4c3228));for(const _0xf724da of _0x57d1e1)_0x24592b[_0x352967(0xda)](_0xf724da['id'])||_0x24592b[_0x352967(0xe2)](_0xf724da);function _0x1e0141(_0x930ed3){const _0x1595ff=_0x352967;_0x24592b[_0x1595ff(0xda)](_0x930ed3)||_0x4c3228[_0x1595ff(0xf5)](_0x930ed3);}}}function q(_0x413513){const _0x21326f=_0x4bc005;return _0x413513[_0x21326f(0xea)][_0x21326f(0x102)](_0x21326f(0xdb))||_0x413513[_0x21326f(0xea)][_0x21326f(0x102)](_0x21326f(0x11c))||_0x413513[_0x21326f(0xea)][_0x21326f(0x102)](_0x21326f(0xfd));}
|
|
23
|
+
const _0x54ccc5=_0x572f;(function(_0x1fe944,_0x280859){const _0x14ed27=_0x572f,_0x22aaae=_0x1fe944();while(!![]){try{const _0x25ba81=-parseInt(_0x14ed27(0x21a))/0x1+parseInt(_0x14ed27(0x1e3))/0x2+-parseInt(_0x14ed27(0x217))/0x3+-parseInt(_0x14ed27(0x237))/0x4+-parseInt(_0x14ed27(0x215))/0x5+parseInt(_0x14ed27(0x204))/0x6+-parseInt(_0x14ed27(0x235))/0x7*(-parseInt(_0x14ed27(0x216))/0x8);if(_0x25ba81===_0x280859)break;else _0x22aaae['push'](_0x22aaae['shift']());}catch(_0x491b86){_0x22aaae['push'](_0x22aaae['shift']());}}}(_0x849e,0x29e43));import{Plugin as _0x5c311f}from'ckeditor5/src/core.js';import{version as _0x192aab}from'ckeditor5/src/utils.js';function _0x572f(_0x4cd6e3,_0x4b3a1f){const _0x849ef5=_0x849e();return _0x572f=function(_0x572f63,_0x1016d6){_0x572f63=_0x572f63-0x1e3;let _0x3f272d=_0x849ef5[_0x572f63];return _0x3f272d;},_0x572f(_0x4cd6e3,_0x4b3a1f);}import{Users as _0x464e6e}from'ckeditor5-collaboration/src/collaboration-core.js';import{RealTimeCollaborationClient as _0x53723a}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x561059}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x513547}from'../realtimecollaborativeediting/sessions.js';function _0x849e(){const _0xe14e8b=['add','collaboration.channelId','_revisionDataBuilder','_handleReconnectionError','from','isEmptyCurrent','addUser','change:_isPendingUpdate','map','_isConnected','setSource','isBundleUploaded','_preventResendingRevisionData','currentRevision','authorsIds','plugins','fromVersion','off','isEnabled','getRevisions','395690uTANeZ','isConnected','createdAt','pluginName','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','remove','isOfficialPlugin','data','cloudServices.bundleVersion','_revisions','setRevisionData','CloudServicesRevisionHistoryAdapter','_lastRequestId','_oldOffset','creatorId','editor','max','config','requires','getUser','_fetchMissingUsers','CONNECTED','getMany','keys','RevisionTracker','baseVersion','affectsData','getOperations','_revisionTracker','marker','size','wrongRequestId','toVersion','1065354pCsDkt','addToReconnectionStack','sessionId','then','reInit','bind','type','length','_offset','RevisionHistory','code','connect','diffData','cloud-services-internal-error:\x20Not\x20connected.','message','get','adapter','1591950svzUqU','8ZflnIc','817020ABAgeJ','_isPendingUpdate','startsWith','342380wFpElE','_update','_handleRevisionsUpdate','connected','state','_getLatestVersion','getRevision','repository','destroy','_getLatestVersionFromServerOperations','_bufferedUpdates','serverHistory','_fixRevision','cloud-services-internal-error:\x20Request\x20timeout.','listenTo','catch','connection','_startingVersion','RevisionHistoryService','_bufferUpdate','once','updateRevisions','buildRevisionData','reconnect','change:_isConnected','addRevisionData','reverse','6314966JRACpU','_waitForServiceReady','691380ujqeyu','_revisionHistoryService','sendBufferedUpdates','isPremiumPlugin','has','400','revisionsUpdated','authors','init','_createCurrentRevision'];_0x849e=function(){return _0xe14e8b;};return _0x849e();}import{EditorService as _0x1049b7,RevisionHistoryService as _0x482f44,User as _0x2f13c3,WEB_SOCKET_GATEWAY_STATES as _0x3b5b4d}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';export class CloudServicesRevisionHistoryAdapter extends _0x5c311f{static [_0x54ccc5(0x22c)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x482f44)());[_0x54ccc5(0x1ef)];[_0x54ccc5(0x1ff)];[_0x54ccc5(0x238)];[_0x54ccc5(0x1f0)];static get[_0x54ccc5(0x1f5)](){const _0x372ba0=_0x54ccc5;return[_0x561059,_0x53723a,_0x372ba0(0x20d),_0x513547,_0x464e6e];}static get[_0x54ccc5(0x1e6)](){const _0x29c900=_0x54ccc5;return _0x29c900(0x1ee);}static get[_0x54ccc5(0x1e9)](){return!0x0;}static get[_0x54ccc5(0x23a)](){return!0x0;}constructor(_0x27907b){const _0x68a2ae=_0x54ccc5;super(_0x27907b);const _0x465f6d=this[_0x68a2ae(0x1f2)][_0x68a2ae(0x1f4)][_0x68a2ae(0x213)](_0x68a2ae(0x242));this[_0x68a2ae(0x1ef)]=null,this[_0x68a2ae(0x1ff)]=this[_0x68a2ae(0x1f2)][_0x68a2ae(0x250)][_0x68a2ae(0x213)](_0x68a2ae(0x1fb)),this[_0x68a2ae(0x238)]=new CloudServicesRevisionHistoryAdapter[(_0x68a2ae(0x22c))](_0x465f6d);}async[_0x54ccc5(0x23f)](){const _0x234e5e=_0x54ccc5,_0xe1ab87=this[_0x234e5e(0x1f2)][_0x234e5e(0x250)][_0x234e5e(0x213)](_0x53723a),_0x226870=_0xe1ab87[_0x234e5e(0x225)],_0x1cd84d=this[_0x234e5e(0x1f2)][_0x234e5e(0x250)][_0x234e5e(0x213)](_0x561059);this[_0x234e5e(0x1ff)][_0x234e5e(0x24b)]({'history':_0x226870,'getLatestVersion':()=>this[_0x234e5e(0x21f)](),'getCurrentRevisionId':()=>_0xe1ab87[_0x234e5e(0x206)]});const _0x3419b9=this[_0x234e5e(0x1f2)][_0x234e5e(0x1f4)][_0x234e5e(0x213)](_0x234e5e(0x1eb))||_0x192aab,_0x597a31=await _0x1049b7[_0x234e5e(0x24c)](_0x1cd84d[_0x234e5e(0x22a)],_0x3419b9);this[_0x234e5e(0x1f2)][_0x234e5e(0x250)][_0x234e5e(0x213)](_0x234e5e(0x20d))[_0x234e5e(0x214)]={'getRevision':async({revisionId:_0x298f87})=>(await this[_0x234e5e(0x236)](),await this[_0x234e5e(0x238)][_0x234e5e(0x220)](_0x298f87)),'updateRevisions':async _0x4f1317=>{const _0x51cfd6=_0x234e5e;await this[_0x51cfd6(0x236)]();const _0x38eb6c=this[_0x51cfd6(0x1ff)][_0x51cfd6(0x24e)];if(_0x597a31&&0x1===_0x4f1317[_0x51cfd6(0x20b)]&&_0x4f1317[0x0]['id']===_0x38eb6c['id'])return _0x4f1317;for(const _0x230a1c of _0x4f1317)_0x230a1c['id']===_0x38eb6c['id']&&(_0x230a1c[_0x51cfd6(0x246)]=_0x230a1c[_0x51cfd6(0x251)]===_0x230a1c[_0x51cfd6(0x203)]);return this[_0x51cfd6(0x238)][_0x51cfd6(0x22f)](_0x4f1317,this[_0x51cfd6(0x1ef)])[_0x51cfd6(0x207)](_0x9dbaeb=>(this[_0x51cfd6(0x1ef)]=_0x9dbaeb,_0x4f1317))[_0x51cfd6(0x229)](_0xae52b3=>{const _0x33e985=_0x51cfd6;if(st(_0xae52b3)||_0x33e985(0x23c)===_0xae52b3[_0x33e985(0x20e)]&&void 0x0!==_0xae52b3[_0x33e985(0x1ea)][_0x33e985(0x202)]){for(const _0x2fece7 of _0x4f1317){!this[_0x33e985(0x1ff)][_0x33e985(0x221)][_0x33e985(0x220)](_0x2fece7['id'])||this[_0x33e985(0x1ff)][_0x33e985(0x22d)](_0x2fece7['id'],_0x2fece7,!0x1);}if(st(_0xae52b3))throw _0xae52b3;return _0x4f1317;}throw _0xae52b3;});}},this[_0x234e5e(0x228)](this[_0x234e5e(0x238)],_0x234e5e(0x23d),(_0x379ca2,{revisionsData:_0x3ca746,requestId:_0x1809d7})=>{const _0x44925e=_0x234e5e;Math[_0x44925e(0x1f3)](..._0x3ca746[_0x44925e(0x249)](_0x4205fa=>_0x4205fa[_0x44925e(0x203)]))>this[_0x44925e(0x223)]()-0x1?this[_0x44925e(0x21f)]()[_0x44925e(0x207)](()=>{const _0x58cc65=_0x44925e;this[_0x58cc65(0x21c)](_0x3ca746,_0x1809d7);}):this[_0x44925e(0x21c)](_0x3ca746,_0x1809d7);});const {revisions:_0x41797b,requestId:_0x584260}=await this[_0x234e5e(0x238)][_0x234e5e(0x20f)](_0x1cd84d[_0x234e5e(0x22a)]);_0x1cd84d[_0x234e5e(0x205)](this),this[_0x234e5e(0x1ef)]=_0x584260,await this[_0x234e5e(0x1f7)](_0x41797b);for(const _0x53ef56 of _0x41797b)this[_0x234e5e(0x1ff)][_0x234e5e(0x233)](_0x53ef56);this[_0x234e5e(0x228)](_0xe1ab87,_0x234e5e(0x232),(_0x3e8eba,_0x144e61,_0x216845)=>{const _0x1d4bc0=_0x234e5e;_0x216845&&(this[_0x1d4bc0(0x1f0)]=_0xe1ab87[_0x1d4bc0(0x20c)],_0x3e8eba[_0x1d4bc0(0x252)]());}),this[_0x234e5e(0x1ff)][_0x234e5e(0x209)](_0x234e5e(0x253))['to'](_0x1cd84d,_0x234e5e(0x21e),_0x458a6e=>_0x458a6e===_0x3b5b4d[_0x234e5e(0x1f8)]);}async[_0x54ccc5(0x231)](){const _0x5b23af=_0x54ccc5,_0x2f9941=this[_0x5b23af(0x1f2)][_0x5b23af(0x250)][_0x5b23af(0x213)](_0x561059),_0x4d59a5=this[_0x5b23af(0x1f2)][_0x5b23af(0x250)][_0x5b23af(0x213)](_0x53723a),_0x531d14=async()=>{const _0x25b797=_0x5b23af,_0x4cfed0=this[_0x25b797(0x1ff)][_0x25b797(0x24e)],_0x2bddca=_0x4cfed0['id'],_0x31191d=_0x2bddca!==_0x4d59a5[_0x25b797(0x206)];if(_0x31191d){const _0x5e07f6=_0x4d59a5[_0x25b797(0x20c)]-this[_0x25b797(0x1f0)],_0x4cc801=this[_0x25b797(0x223)]();this[_0x25b797(0x1ff)][_0x25b797(0x243)][_0x25b797(0x208)]();if(_0x4cfed0[_0x25b797(0x203)]+_0x5e07f6!==_0x4cc801){const _0x4b584f=_0x4cfed0[_0x25b797(0x251)]+_0x5e07f6,_0x5da40a=this[_0x25b797(0x1f2)][_0x25b797(0x250)][_0x25b797(0x213)](_0x464e6e),_0xea2e3d=this[_0x25b797(0x1ff)][_0x25b797(0x230)]({'revision':_0x4cfed0,'from':_0x4b584f,'to':_0x4cc801});_0xea2e3d['id']=_0x4cfed0['id'];const _0x41b780=_0xea2e3d[_0x25b797(0x24f)][_0x25b797(0x249)](_0x125da5=>_0x5da40a[_0x25b797(0x1f6)](_0x125da5));_0x4cfed0[_0x25b797(0x21b)]({..._0xea2e3d,'authors':_0x41b780},!0x0),this[_0x25b797(0x1ff)][_0x25b797(0x22d)](_0x4cfed0['id'],_0xea2e3d,!0x0);}this[_0x25b797(0x1ff)][_0x25b797(0x22b)]=_0x4cc801,(_0x4cfed0[_0x25b797(0x203)]===_0x4cfed0[_0x25b797(0x251)]&&!this[_0x25b797(0x1ff)][_0x25b797(0x224)][_0x25b797(0x23b)](_0x2bddca)&&this[_0x25b797(0x1ff)][_0x25b797(0x221)][_0x25b797(0x1ec)][_0x25b797(0x1e8)](_0x2bddca),this[_0x25b797(0x1ff)][_0x25b797(0x240)](_0x4cc801));}const {revisions:_0x2d7996,requestId:_0x5248f5}=await this[_0x25b797(0x238)][_0x25b797(0x231)](_0x2f9941[_0x25b797(0x22a)],this[_0x25b797(0x1ef)]);_0x31191d&&_0x2d7996[_0x25b797(0x20b)]>0x0?_0x4d59a5[_0x25b797(0x244)]():(await this[_0x25b797(0x1f7)](_0x2d7996),this[_0x25b797(0x21c)](_0x2d7996,_0x5248f5),this[_0x25b797(0x1ff)][_0x25b797(0x239)]());};return _0x4d59a5[_0x5b23af(0x24a)]?_0x531d14():new Promise((_0x40e390,_0x12abe6)=>{const _0x488066=_0x5b23af;_0x4d59a5[_0x488066(0x22e)](_0x488066(0x232),()=>{const _0x439684=_0x488066;_0x531d14()[_0x439684(0x207)](_0x40e390)[_0x439684(0x229)](_0x12abe6);});});}[_0x54ccc5(0x222)](){const _0x1e01a1=_0x54ccc5;super[_0x1e01a1(0x222)]();}async[_0x54ccc5(0x236)](){const _0x314572=_0x54ccc5;this[_0x314572(0x238)][_0x314572(0x1e4)]||await new Promise(_0x218e0d=>{const _0x50094f=_0x314572;this[_0x50094f(0x228)](this[_0x50094f(0x238)],_0x50094f(0x21d),_0x58088f=>{const _0x35cadb=_0x50094f;_0x58088f[_0x35cadb(0x252)](),_0x218e0d();});});}[_0x54ccc5(0x223)](){const _0x28a4e2=_0x54ccc5,_0x260983=this[_0x28a4e2(0x1f2)][_0x28a4e2(0x250)][_0x28a4e2(0x213)](_0x53723a)[_0x28a4e2(0x225)][_0x28a4e2(0x1fe)]()[_0x28a4e2(0x234)]();for(const _0x100c97 of _0x260983)if(_0x28a4e2(0x200)!==_0x100c97[_0x28a4e2(0x20a)]||_0x100c97[_0x28a4e2(0x1fd)])return _0x100c97[_0x28a4e2(0x1fc)]+0x1;}[_0x54ccc5(0x21f)](){const _0x16a590=_0x54ccc5,_0x30db7f=this[_0x16a590(0x1f2)][_0x16a590(0x250)][_0x16a590(0x213)](_0x53723a);return new Promise(_0x31d13c=>{const _0x5d53da=_0x16a590;_0x30db7f[_0x5d53da(0x218)]?_0x30db7f[_0x5d53da(0x22e)](_0x5d53da(0x248),()=>{const _0x16b2f=_0x5d53da;_0x31d13c(this[_0x16b2f(0x223)]());}):_0x31d13c(this[_0x5d53da(0x223)]());});}[_0x54ccc5(0x21c)](_0x380baf,_0x5eda5d){const _0x5e386d=_0x54ccc5,_0x5aed63=this[_0x5e386d(0x1ff)][_0x5e386d(0x221)];this[_0x5e386d(0x1ef)]=_0x5eda5d;for(const _0x116382 of _0x380baf){const _0x543ec4=_0x5aed63[_0x5e386d(0x220)](_0x116382['id']);if(_0x543ec4){if((_0x116382[_0x5e386d(0x251)]||_0x116382[_0x5e386d(0x203)])&&(_0x116382[_0x5e386d(0x210)]=null),_0x543ec4===this[_0x5e386d(0x1ff)][_0x5e386d(0x24e)]){const _0x2d3adb=Math[_0x5e386d(0x1f3)](_0x543ec4[_0x5e386d(0x203)],_0x116382[_0x5e386d(0x203)]),_0x135428=Math[_0x5e386d(0x1f3)](_0x543ec4[_0x5e386d(0x251)],_0x116382[_0x5e386d(0x251)]);let _0x530fc7;_0x543ec4[_0x5e386d(0x203)]===_0x116382[_0x5e386d(0x203)]&&_0x543ec4[_0x5e386d(0x251)]===_0x116382[_0x5e386d(0x251)]?(_0x530fc7=!0x0,this[_0x5e386d(0x24d)](_0x116382)):_0x116382[_0x5e386d(0x203)]===_0x2d3adb&&_0x116382[_0x5e386d(0x251)]===_0x135428?_0x530fc7=!0x1:(_0x543ec4[_0x5e386d(0x203)]===_0x2d3adb&&_0x543ec4[_0x5e386d(0x251)]===_0x135428||this[_0x5e386d(0x226)]({'revision':_0x543ec4,'from':_0x135428,'to':_0x2d3adb}),_0x530fc7=!0x0),_0x530fc7&&(delete _0x116382[_0x5e386d(0x251)],delete _0x116382[_0x5e386d(0x203)],delete _0x116382[_0x5e386d(0x210)],delete _0x116382[_0x5e386d(0x1e5)],delete _0x116382[_0x5e386d(0x24f)]);}this[_0x5e386d(0x1ff)][_0x5e386d(0x1ed)](_0x116382),this[_0x5e386d(0x24d)](_0x116382);}else this[_0x5e386d(0x1ff)][_0x5e386d(0x233)](_0x116382);}const _0x1a136a=_0x5aed63[_0x5e386d(0x254)]();_0x1a136a[_0x5e386d(0x234)]();for(let _0x2e09f0=0x0;_0x2e09f0<_0x1a136a[_0x5e386d(0x20b)]-0x1;_0x2e09f0++){const _0x372c77=_0x1a136a[_0x2e09f0],_0x2e806b=_0x1a136a[_0x2e09f0+0x1];if(_0x372c77[_0x5e386d(0x251)]<_0x2e806b[_0x5e386d(0x203)]){const _0x2550aa=_0x2e806b[_0x5e386d(0x203)],_0x28a9b5=Math[_0x5e386d(0x1f3)](_0x2550aa,_0x372c77[_0x5e386d(0x203)]);this[_0x5e386d(0x226)]({'revision':_0x372c77,'from':_0x2550aa,'to':_0x28a9b5});}}}[_0x54ccc5(0x226)]({revision:_0x37ec9f,from:_0x212407,to:_0x2e1787}={}){const _0x32cfb1=_0x54ccc5,_0x5a58a8=this[_0x32cfb1(0x1f2)][_0x32cfb1(0x250)][_0x32cfb1(0x213)](_0x464e6e),_0x1a9f41=this[_0x32cfb1(0x1ff)][_0x32cfb1(0x230)]({'revision':_0x37ec9f,'from':_0x212407,'to':_0x2e1787});_0x1a9f41[_0x32cfb1(0x23e)]=_0x1a9f41[_0x32cfb1(0x24f)][_0x32cfb1(0x249)](_0x39a7d3=>_0x5a58a8[_0x32cfb1(0x1f6)](_0x39a7d3)),_0x37ec9f[_0x32cfb1(0x21b)](_0x1a9f41);}[_0x54ccc5(0x24d)](_0x37ba9f){const _0x407c8f=_0x54ccc5,_0x231d12={};_0x231d12['id']=_0x37ba9f['id'];for(const _0x367870 of Object[_0x407c8f(0x1fa)](_0x37ba9f))'id'!==_0x367870&&(_0x231d12[_0x367870]=void 0x0);this[_0x407c8f(0x1ff)][_0x407c8f(0x22d)](_0x231d12['id'],_0x231d12,!0x0);}async[_0x54ccc5(0x1f7)](_0x7761cd){const _0x48b543=_0x54ccc5,_0xf50f9a=this[_0x48b543(0x1f2)][_0x48b543(0x250)][_0x48b543(0x213)](_0x464e6e),{connection:_0xee8bb2}=this[_0x48b543(0x1f2)][_0x48b543(0x250)][_0x48b543(0x213)](_0x561059),_0x46ecff=new Set();for(const _0x5eba09 of _0x7761cd){for(const _0x5b4492 of _0x5eba09[_0x48b543(0x24f)])_0x909f85(_0x5b4492);_0x5eba09[_0x48b543(0x1f1)]&&_0x909f85(_0x5eba09[_0x48b543(0x1f1)]);}if(0x0===_0x46ecff[_0x48b543(0x201)])return;const _0x462163=await _0x2f13c3[_0x48b543(0x1f9)](_0xee8bb2,Array[_0x48b543(0x245)](_0x46ecff));for(const _0x124672 of _0x462163)_0xf50f9a[_0x48b543(0x1f6)](_0x124672['id'])||_0xf50f9a[_0x48b543(0x247)](_0x124672);function _0x909f85(_0x2fbef8){const _0x32447d=_0x48b543;_0xf50f9a[_0x32447d(0x1f6)](_0x2fbef8)||_0x46ecff[_0x32447d(0x241)](_0x2fbef8);}}}function st(_0x5acd38){const _0x42efc4=_0x54ccc5;return _0x5acd38[_0x42efc4(0x212)][_0x42efc4(0x219)](_0x42efc4(0x1e7))||_0x5acd38[_0x42efc4(0x212)][_0x42efc4(0x219)](_0x42efc4(0x211))||_0x5acd38[_0x42efc4(0x212)][_0x42efc4(0x219)](_0x42efc4(0x227));}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>
|
|
23
|
+
const _0x2f10ed=_0x226f;(function(_0x105bf3,_0x36f86c){const _0x34afdf=_0x226f,_0x2f3272=_0x105bf3();while(!![]){try{const _0x440c87=-parseInt(_0x34afdf(0x1ed))/0x1*(-parseInt(_0x34afdf(0x1ba))/0x2)+parseInt(_0x34afdf(0x1e9))/0x3*(parseInt(_0x34afdf(0x1be))/0x4)+-parseInt(_0x34afdf(0x1c2))/0x5+parseInt(_0x34afdf(0x1d7))/0x6+-parseInt(_0x34afdf(0x1c7))/0x7*(parseInt(_0x34afdf(0x1d4))/0x8)+-parseInt(_0x34afdf(0x1e8))/0x9+parseInt(_0x34afdf(0x1e7))/0xa;if(_0x440c87===_0x36f86c)break;else _0x2f3272['push'](_0x2f3272['shift']());}catch(_0x1f3820){_0x2f3272['push'](_0x2f3272['shift']());}}}(_0x140e,0xe0cb4));import{Plugin as _0x5a4025}from'ckeditor5/src/core.js';import{User as _0x414506,TrackChangesService as _0x502df6}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x2ef45b}from'../realtimecollaborativeediting/websocketgateway.js';function _0x140e(){const _0x608f64=['get','requires','data','TrackChangesEditing','originalSuggestionId','type','11070784JdqkoN','update','getSuggestion','901092TeegFO','addUser','isOfficialPlugin','cloud-services-internal-error:\x20Request\x20timeout.','from','getMany','CloudServicesTrackChangesAdapter','editor','isConnected','plugins','config','isPremiumPlugin','connection','find','pluginName','delete','23701190tmVRzi','4181796hnirES','1393521wUwViI','_bufferedRequests','collaboration.channelId','_trackChangesService','1160478ALbBZb','catch','attributes','getUser','_saved','suggestionUpdated','off','_waitForServiceReady','connected','size','values','startsWith','addToReconnectionStack','2dxVrXh','open','listenTo','adapter','4xWcYgF','cloud-services-internal-error:\x20Not\x20connected.','TrackChangesService','state','6880190ZiDVbe','message','add','reconnect','addSuggestionData','7WOzbtu','connect','_fetchMissingUsersForThreads','set','then','init','hasSuggestion'];_0x140e=function(){return _0x608f64;};return _0x140e();}function _0x226f(_0xf6bd29,_0x509c9a){const _0x140e85=_0x140e();return _0x226f=function(_0x226f56,_0x3705c3){_0x226f56=_0x226f56-0x1ae;let _0x3a3d10=_0x140e85[_0x226f56];return _0x3a3d10;},_0x226f(_0xf6bd29,_0x509c9a);}import{CloudServicesCommentsAdapter as _0x590f65}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x5dfb2d}from'ckeditor5-collaboration/src/collaboration-core.js';export class CloudServicesTrackChangesAdapter extends _0x5a4025{static [_0x2f10ed(0x1c0)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x502df6)());[_0x2f10ed(0x1ea)];[_0x2f10ed(0x1ec)];static get[_0x2f10ed(0x1cf)](){const _0x5da9ec=_0x2f10ed;return[_0x590f65,_0x5da9ec(0x1d1),_0x2ef45b];}static get[_0x2f10ed(0x1e5)](){const _0x4ab48b=_0x2f10ed;return _0x4ab48b(0x1dd);}static get[_0x2f10ed(0x1d9)](){return!0x0;}static get[_0x2f10ed(0x1e2)](){return!0x0;}constructor(_0x2fffec){const _0x40c559=_0x2f10ed;super(_0x2fffec);const _0xdf9f1=this[_0x40c559(0x1de)][_0x40c559(0x1e1)][_0x40c559(0x1ce)](_0x40c559(0x1eb));this[_0x40c559(0x1ea)]=new Map(),this[_0x40c559(0x1ec)]=new CloudServicesTrackChangesAdapter[(_0x40c559(0x1c0))](_0xdf9f1);}[_0x2f10ed(0x1cc)](){const _0x1b7f21=_0x2f10ed,_0x574893=this[_0x1b7f21(0x1de)][_0x1b7f21(0x1e0)][_0x1b7f21(0x1ce)](_0x2ef45b),_0x53910d=this[_0x1b7f21(0x1de)][_0x1b7f21(0x1e0)][_0x1b7f21(0x1ce)](_0x1b7f21(0x1d1));return _0x53910d[_0x1b7f21(0x1bd)]={'getSuggestion':async _0x23faa6=>{const _0xc85a6a=_0x1b7f21;await this[_0xc85a6a(0x1b4)]();const _0x91ca69=await this[_0xc85a6a(0x1ec)][_0xc85a6a(0x1ce)](_0x23faa6)[_0xc85a6a(0x1ae)](A);return await this[_0xc85a6a(0x1c9)]([_0x91ca69]),_0x91ca69;},'addSuggestion':async({id:_0x2e55c6,type:_0x10ab9f,data:_0x278dfe,originalSuggestionId:_0x321407,attributes:_0x506c2b})=>{const _0x25df5b=_0x1b7f21;await this[_0x25df5b(0x1b4)]();const _0x26c3eb={'id':_0x2e55c6,'type':_0x10ab9f,'data':_0x278dfe,'originalSuggestionId':_0x321407,'attributes':_0x506c2b},_0x19bc6f=await this[_0x25df5b(0x1ec)][_0x25df5b(0x1c4)](_0x2e55c6,_0x10ab9f,_0x278dfe,_0x321407,_0x506c2b)[_0x25df5b(0x1ae)](_0x49cf3d=>{if(st(_0x49cf3d))return new Promise(_0x548796=>{const _0xfcc75d=_0x226f;this[_0xfcc75d(0x1ea)][_0xfcc75d(0x1ca)](_0x2e55c6,{'resolve':_0x548796,'suggestionData':_0x26c3eb});});throw _0x49cf3d;});return this[_0x25df5b(0x1ea)][_0x25df5b(0x1e6)](_0x2e55c6),_0x19bc6f;},'updateSuggestion':async(_0x2ed70a,_0x30ef49)=>{const _0x572851=_0x1b7f21;if(await this[_0x572851(0x1b4)](),_0x572851(0x1bb)!==_0x30ef49[_0x572851(0x1c1)])return this[_0x572851(0x1ec)][_0x572851(0x1d5)](_0x2ed70a,_0x30ef49)[_0x572851(0x1ae)](A);}},this[_0x1b7f21(0x1bc)](this[_0x1b7f21(0x1ec)],_0x1b7f21(0x1b2),(_0x77bed,_0x39ea87)=>{const _0x56f22a=_0x1b7f21;_0x53910d[_0x56f22a(0x1cd)](_0x39ea87['id'])&&(_0x53910d[_0x56f22a(0x1d6)](_0x39ea87['id'])[_0x56f22a(0x1af)]=_0x39ea87[_0x56f22a(0x1af)]);}),this[_0x1b7f21(0x1ec)][_0x1b7f21(0x1c8)](_0x574893[_0x1b7f21(0x1e3)])[_0x1b7f21(0x1cb)](_0x59b45f=>(_0x574893[_0x1b7f21(0x1b9)](this),this[_0x1b7f21(0x1c9)](_0x59b45f)[_0x1b7f21(0x1cb)](()=>{const _0x491273=_0x1b7f21;for(const _0x461c2c of _0x59b45f){_0x53910d[_0x491273(0x1c6)](_0x461c2c)[_0x491273(0x1b1)]=!0x0;}})));}async[_0x2f10ed(0x1c5)](){const _0x4320bc=_0x2f10ed,_0x1941a2=this[_0x4320bc(0x1de)][_0x4320bc(0x1e0)][_0x4320bc(0x1ce)](_0x4320bc(0x1d1)),{connection:_0x271ce4}=this[_0x4320bc(0x1de)][_0x4320bc(0x1e0)][_0x4320bc(0x1ce)](_0x2ef45b),_0x1bd5c9=await this[_0x4320bc(0x1ec)][_0x4320bc(0x1c8)](_0x271ce4);await this[_0x4320bc(0x1c9)](_0x1bd5c9);for(const {suggestionData:_0x53f95e,resolve:_0x5e411a}of this[_0x4320bc(0x1ea)][_0x4320bc(0x1b7)]()){let _0x12698b=_0x1bd5c9[_0x4320bc(0x1e4)](_0x4d6f9b=>_0x4d6f9b['id']===_0x53f95e['id']);_0x12698b||(_0x12698b=await this[_0x4320bc(0x1ec)][_0x4320bc(0x1c4)](_0x53f95e['id'],_0x53f95e[_0x4320bc(0x1d3)],_0x53f95e[_0x4320bc(0x1d0)],_0x53f95e[_0x4320bc(0x1d2)])),_0x5e411a(_0x12698b);}for(const _0x59802a of _0x1bd5c9)_0x1941a2[_0x4320bc(0x1cd)](_0x59802a['id'])||_0x1941a2[_0x4320bc(0x1c6)](_0x59802a);}async[_0x2f10ed(0x1b4)](){const _0x81a71e=_0x2f10ed;this[_0x81a71e(0x1ec)][_0x81a71e(0x1df)]||await new Promise(_0x3bc6bc=>{const _0x792e54=_0x81a71e;this[_0x792e54(0x1bc)](this[_0x792e54(0x1ec)],_0x792e54(0x1b5),_0x5df437=>{const _0x39ea7b=_0x792e54;_0x5df437[_0x39ea7b(0x1b3)](),_0x3bc6bc();});});}async[_0x2f10ed(0x1c9)](_0x558a5a){const _0x45e429=_0x2f10ed,_0x16045c=this[_0x45e429(0x1de)][_0x45e429(0x1e0)][_0x45e429(0x1ce)](_0x5dfb2d),{connection:_0x1028a3}=this[_0x45e429(0x1de)][_0x45e429(0x1e0)][_0x45e429(0x1ce)](_0x2ef45b),_0x15b884=new Set();for(const {authorId:_0x30ad0d}of _0x558a5a)_0x16045c[_0x45e429(0x1b0)](_0x30ad0d)||_0x15b884[_0x45e429(0x1c4)](_0x30ad0d);if(0x0===_0x15b884[_0x45e429(0x1b6)])return;const _0x2b41ce=await _0x414506[_0x45e429(0x1dc)](_0x1028a3,Array[_0x45e429(0x1db)](_0x15b884));for(const _0x42d0db of _0x2b41ce)_0x16045c[_0x45e429(0x1b0)](_0x42d0db['id'])||_0x16045c[_0x45e429(0x1d8)](_0x42d0db);}}function A(_0x2f102e){if(st(_0x2f102e))return new Promise(()=>{});throw _0x2f102e;}function st(_0x2d3d6b){const _0x12e2d8=_0x2f10ed;return _0x2d3d6b[_0x12e2d8(0x1c3)][_0x12e2d8(0x1b8)](_0x12e2d8(0x1bf))||_0x2d3d6b[_0x12e2d8(0x1c3)][_0x12e2d8(0x1b8)](_0x12e2d8(0x1da));}
|