@ckeditor/ckeditor5-real-time-collaboration 46.0.1-alpha.3 → 46.0.1-alpha.4
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
|
-
|
|
23
|
+
function _0x5ec9(){const _0x2b5c08=['392ARTqQY','_registeredSessions','6DzHkiv','user','has','Sessions','connected','orderNumber','get','pluginName','12841367wtTPBx','forEach','getUser','delete','assign','_handleSessionAdd','state','stopListening','sessionAdd:','defineMe','register','isPremiumPlugin','mySessionId','listenTo','569495SFkCLt','change:state','requires','clear','_users','allConnectedUsers','186444cZKHLe','getUserRole','_createUser','4iHDeTT','sessions-register-already-registered','isOfficialPlugin','6JwIpII','sessionId','channelConnectedUsers','set','add','addUser','values','44918291vZafdZ','connection','getUserBySessionId','size','plugins','getUserSessions','context','fire','unregister','2989300YfNqqI','_uniqueUsersCount','role','618931MSMxvY','channelSessions','123624RYOLTr','remove','init','sessions-unregister-not-exist','isMe','_handleSessionRemove'];_0x5ec9=function(){return _0x2b5c08;};return _0x5ec9();}const _0x752726=_0x4c79;(function(_0x101b00,_0x2fe589){const _0x506502=_0x4c79,_0x2c9777=_0x101b00();while(!![]){try{const _0x50b629=parseInt(_0x506502(0xa2))/0x1*(-parseInt(_0x506502(0xce))/0x2)+-parseInt(_0x506502(0xc8))/0x3*(-parseInt(_0x506502(0xcb))/0x4)+-parseInt(_0x506502(0xc2))/0x5*(-parseInt(_0x506502(0xac))/0x6)+-parseInt(_0x506502(0xb4))/0x7+-parseInt(_0x506502(0xaa))/0x8*(-parseInt(_0x506502(0xa4))/0x9)+-parseInt(_0x506502(0x9f))/0xa+parseInt(_0x506502(0xd5))/0xb;if(_0x50b629===_0x2fe589)break;else _0x2c9777['push'](_0x2c9777['shift']());}catch(_0x4d1cfe){_0x2c9777['push'](_0x2c9777['shift']());}}}(_0x5ec9,0xe6134));import{ContextPlugin as _0xa598fa}from'ckeditor5/src/core.js';import{Collection as _0x5f14cd,CKEditorError as _0x5522e2}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x3346f2}from'./websocketgateway.js';function _0x4c79(_0x3498cc,_0x1ca748){const _0x5ec945=_0x5ec9();return _0x4c79=function(_0x4c7997,_0x6085c6){_0x4c7997=_0x4c7997-0x9c;let _0x54d4c3=_0x5ec945[_0x4c7997];return _0x54d4c3;},_0x4c79(_0x3498cc,_0x1ca748);}import{Users as _0x15652a}from'ckeditor5-collaboration/src/collaboration-core.js';export class Sessions extends _0xa598fa{[_0x752726(0xa3)];[_0x752726(0xd0)];[_0x752726(0xc7)];[_0x752726(0xab)];[_0x752726(0xa0)];[_0x752726(0xc6)];static get[_0x752726(0xb3)](){const _0x2cf2e8=_0x752726;return _0x2cf2e8(0xaf);}static get[_0x752726(0xcd)](){return!0x0;}static get[_0x752726(0xbf)](){return!0x0;}static get[_0x752726(0xc4)](){return[_0x3346f2,_0x15652a];}constructor(_0x15979b){const _0x3398e7=_0x752726;super(_0x15979b),this[_0x3398e7(0xa3)]=new Map(),this[_0x3398e7(0xd0)]=new Map(),this[_0x3398e7(0xc7)]=new _0x5f14cd(),this[_0x3398e7(0xab)]=new Map(),this[_0x3398e7(0xa0)]=0x0,this[_0x3398e7(0xc6)]=this[_0x3398e7(0x9c)][_0x3398e7(0xd9)][_0x3398e7(0xb2)](_0x15652a);}[_0x752726(0xa6)](){const _0x4370d7=_0x752726,_0x37433f=this[_0x4370d7(0x9c)][_0x4370d7(0xd9)][_0x4370d7(0xb2)](_0x3346f2);this[_0x4370d7(0xc1)](_0x37433f,_0x4370d7(0xc3),(_0x7e0479,_0x4f5709,_0x3ff67d)=>{const _0x22bbd1=_0x4370d7;if(_0x22bbd1(0xb0)!==_0x3ff67d)this[_0x22bbd1(0xa3)][_0x22bbd1(0xb5)](_0xb2f36f=>_0xb2f36f[_0x22bbd1(0xc5)]()),this[_0x22bbd1(0xd0)][_0x22bbd1(0xb5)](_0x2e7b85=>_0x2e7b85[_0x22bbd1(0xc5)]()),this[_0x22bbd1(0xc7)][_0x22bbd1(0xc5)]();else{for(const [_0x264164,_0x18ec12]of this[_0x22bbd1(0xab)])for(const _0x1475a9 of _0x18ec12)this[_0x22bbd1(0xb9)](_0x264164,_0x1475a9);}}),this[_0x4370d7(0xca)](_0x37433f[_0x4370d7(0xd6)]['me'],!0x0);}[_0x752726(0xbe)](_0x287124,_0x20ee2b){const _0x557f4f=_0x752726;if(this[_0x557f4f(0xab)][_0x557f4f(0xae)](_0x287124))throw new _0x5522e2(_0x557f4f(0xcc),null,{'channelId':_0x287124});this[_0x557f4f(0xab)][_0x557f4f(0xd1)](_0x287124,_0x20ee2b),this[_0x557f4f(0xa3)][_0x557f4f(0xd1)](_0x287124,new _0x5f14cd()),this[_0x557f4f(0xd0)][_0x557f4f(0xd1)](_0x287124,new _0x5f14cd()),this[_0x557f4f(0xc1)](_0x20ee2b,_0x557f4f(0xd2),(_0x18c63c,_0x11b1cc)=>this[_0x557f4f(0xb9)](_0x287124,_0x11b1cc)),this[_0x557f4f(0xc1)](_0x20ee2b,_0x557f4f(0xa5),(_0x2ab2c7,_0xdbf244)=>this[_0x557f4f(0xa9)](_0x287124,_0xdbf244));for(const _0x4fbe71 of _0x20ee2b)this[_0x557f4f(0xb9)](_0x287124,_0x4fbe71);}[_0x752726(0x9e)](_0x538ec1){const _0x39829c=_0x752726;if(!this[_0x39829c(0xab)][_0x39829c(0xae)](_0x538ec1))throw new _0x5522e2(_0x39829c(0xa7),null,{'channelId':_0x538ec1});const _0x4469d2=this[_0x39829c(0xab)][_0x39829c(0xb2)](_0x538ec1);this[_0x39829c(0xbb)](_0x4469d2);for(const _0x55a8f3 of _0x4469d2)_0x39829c(0xb0)===this[_0x39829c(0x9c)][_0x39829c(0xd9)][_0x39829c(0xb2)](_0x3346f2)[_0x39829c(0xba)]&&this[_0x39829c(0xa9)](_0x538ec1,_0x55a8f3);this[_0x39829c(0xab)][_0x39829c(0xb7)](_0x538ec1),this[_0x39829c(0xa3)][_0x39829c(0xb7)](_0x538ec1),this[_0x39829c(0xd0)][_0x39829c(0xb7)](_0x538ec1);}get[_0x752726(0xc0)](){const _0x4a20ec=_0x752726;return this[_0x4a20ec(0x9c)][_0x4a20ec(0xd9)][_0x4a20ec(0xb2)](_0x3346f2)[_0x4a20ec(0xd6)][_0x4a20ec(0xcf)];}[_0x752726(0xd7)](_0x59a78b){const _0x2487a9=_0x752726;for(const _0x9bb3db of this[_0x2487a9(0xa3)][_0x2487a9(0xd4)]())for(const _0x34acef of _0x9bb3db)if(_0x34acef['id']===_0x59a78b)return _0x34acef[_0x2487a9(0xad)];}[_0x752726(0xda)](_0x17009b,_0x1e3788){const _0x4edabd=_0x752726,_0xc89f5e=_0x1e3788?[this[_0x4edabd(0xa3)][_0x4edabd(0xb2)](_0x1e3788)]:this[_0x4edabd(0xa3)][_0x4edabd(0xd4)](),_0x4a21a3=new Set();for(const _0x33d3dc of _0xc89f5e)for(const _0x1f94dc of _0x33d3dc)_0x1f94dc[_0x4edabd(0xad)]['id']===_0x17009b['id']&&_0x4a21a3[_0x4edabd(0xd2)](_0x1f94dc['id']);return _0x4a21a3;}[_0x752726(0xc9)](_0x3ff9f6){const _0x106999=_0x752726;for(const _0x1beaea of this[_0x106999(0xa3)][_0x106999(0xd4)]())for(const _0x6f9178 of _0x1beaea)if(_0x6f9178[_0x106999(0xad)]===_0x3ff9f6)return _0x6f9178[_0x106999(0xa1)];}[_0x752726(0xb9)](_0x2c52b2,_0x9ea063){const _0x5c6f43=_0x752726;if(_0x5c6f43(0xb0)!==this[_0x5c6f43(0x9c)][_0x5c6f43(0xd9)][_0x5c6f43(0xb2)](_0x3346f2)[_0x5c6f43(0xba)])return;const _0x5d3346=_0x9ea063[_0x5c6f43(0xad)],_0x4dc984=this[_0x5c6f43(0xc6)][_0x5c6f43(0xb6)](_0x5d3346['id'])||this[_0x5c6f43(0xca)](_0x5d3346),_0x207aef=Object[_0x5c6f43(0xb8)]({},_0x9ea063,{'user':_0x4dc984});this[_0x5c6f43(0xa3)][_0x5c6f43(0xb2)](_0x2c52b2)[_0x5c6f43(0xd2)](_0x207aef);const _0x2fc343=this[_0x5c6f43(0xd0)][_0x5c6f43(0xb2)](_0x2c52b2);_0x2fc343[_0x5c6f43(0xae)](_0x4dc984['id'])||_0x2fc343[_0x5c6f43(0xd2)](_0x4dc984),this[_0x5c6f43(0xc7)][_0x5c6f43(0xae)](_0x4dc984['id'])||this[_0x5c6f43(0xc7)][_0x5c6f43(0xd2)](_0x4dc984,_0x4dc984[_0x5c6f43(0xa8)]?0x0:void 0x0),this[_0x5c6f43(0x9d)](_0x5c6f43(0xbc)+_0x2c52b2,{'channelId':_0x2c52b2,'session':_0x207aef});}[_0x752726(0xa9)](_0x3d0a2a,_0x1600ff){const _0x41f263=_0x752726;if(_0x41f263(0xb0)!==this[_0x41f263(0x9c)][_0x41f263(0xd9)][_0x41f263(0xb2)](_0x3346f2)[_0x41f263(0xba)])return;const _0x1297eb=this[_0x41f263(0xd0)][_0x41f263(0xb2)](_0x3d0a2a),_0x448dc8=_0x1600ff[_0x41f263(0xad)];_0x448dc8['id']&&(this[_0x41f263(0xa3)][_0x41f263(0xb2)](_0x3d0a2a)[_0x41f263(0xa5)](_0x1600ff['id']),_0x1297eb[_0x41f263(0xae)](_0x448dc8['id'])&&!this[_0x41f263(0xda)](_0x448dc8,_0x3d0a2a)[_0x41f263(0xd8)]&&_0x1297eb[_0x41f263(0xa5)](_0x448dc8['id']),this[_0x41f263(0xc7)][_0x41f263(0xb2)](_0x448dc8['id'])&&!this[_0x41f263(0xda)](_0x448dc8)[_0x41f263(0xd8)]&&this[_0x41f263(0xc7)][_0x41f263(0xa5)](_0x448dc8['id']));}[_0x752726(0xca)](_0x46aff6,_0x3314ab){const _0x4237bb=_0x752726,_0x154b8a=this[_0x4237bb(0xc6)][_0x4237bb(0xd3)](_0x46aff6);return _0x3314ab&&this[_0x4237bb(0xc6)][_0x4237bb(0xbd)](_0x46aff6['id']),_0x154b8a[_0x4237bb(0xb1)]=this[_0x4237bb(0xa0)]++,_0x154b8a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x31c1ab=_0x5a21;(function(_0x12bdca,_0x256c3f){const _0x10f424=_0x5a21,_0x319df9=_0x12bdca();while(!![]){try{const _0x20efa7=parseInt(_0x10f424(0x1a5))/0x1*(-parseInt(_0x10f424(0x1d1))/0x2)+-parseInt(_0x10f424(0x19c))/0x3+-parseInt(_0x10f424(0x204))/0x4*(-parseInt(_0x10f424(0x227))/0x5)+-parseInt(_0x10f424(0x1cb))/0x6*(-parseInt(_0x10f424(0x206))/0x7)+parseInt(_0x10f424(0x1c1))/0x8*(-parseInt(_0x10f424(0x1d8))/0x9)+parseInt(_0x10f424(0x1bb))/0xa*(-parseInt(_0x10f424(0x1b8))/0xb)+parseInt(_0x10f424(0x1a0))/0xc;if(_0x20efa7===_0x256c3f)break;else _0x319df9['push'](_0x319df9['shift']());}catch(_0x13c3a1){_0x319df9['push'](_0x319df9['shift']());}}}(_0xaccb,0x921ce));import{Plugin as _0x38924}from'ckeditor5/src/core.js';import{global as _0x331055,DomEmitterMixin as _0x547c44}from'ckeditor5/src/utils.js';function _0xaccb(){const _0x33a0e6=['change','isPremiumPlugin','orderNumber','createUIElement','startsWith','ck-user__marker_hovered','tableCell','6MmDjYH','delete','createUserMarkerOperations','ck-user__selection','$graveyard','isInline','2hZZjRB','mapper','user:position:','document','user:range:','size','isOfficialPlugin','9xezGZI','removeClass','UserMarkers','removeMarker','createRange','toDomElement','highest','element','color','outerHTML','parent','toRange','updateMarker','enqueueChange','keydown','has','mouseleave','remove','Escape','checkChild','newRange','batch','update:user:range','user:position','view','render','isSimilar','isObject','get','hasContent','hasDomSelection','commands','plugins','innerHTML','markerName','applyOperation','markers','reconvertMarker','add','getStart','oldRange','split','markerNameToElements','detach','592ZRePLA','getUserBySessionId','1335117MlrIer','setAttribute','markerRange','user:','span','for','pluginName','getCustomProperty','$text','_createdBatches','start','setCustomProperty','userPositionMarker','type','editingDowncast','model','conversion','markerToHighlight','classList','_domEmitter','end','destroy','name','ck-user__marker\x20','editing','marker','spellcheck','<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','getContainedElement','afterInit','ck-user__marker-tooltip','getFirstRange','rootName','16840ruqPGP','getRange','2937666NqfXzK','addMarker','clear','isLimit','26055336UAJick','getNearestSelectionRange','markerToElement','false','init','1095923wErwiC','createElement','fromRange','schema','undo','deletionPosition','addEventListener','stopListening','isCollapsed','mySessionId','requires','getSelectionClass','set','listenTo','selection','user:range','isDocumentOperation','textContent','mouseenter','1960849kZPssc','data-session-id','editor','10sgFVwl','getAttribute','root','contenteditable','change:range','getPositions','68728hXOrgP','nodeAfter','getMarkerClass'];_0xaccb=function(){return _0x33a0e6;};return _0xaccb();}import{Sessions as _0x5ab48d}from'./sessions.js';import{ModelLiveRange as _0x3d72ec}from'ckeditor5/src/engine.js';import'../../theme/usermarkers.css';function _0x5a21(_0x523917,_0x5491c0){const _0xaccb1a=_0xaccb();return _0x5a21=function(_0x5a2127,_0x10e4d8){_0x5a2127=_0x5a2127-0x19c;let _0x5aea07=_0xaccb1a[_0x5a2127];return _0x5aea07;},_0x5a21(_0x523917,_0x5491c0);}export class UserMarkers extends _0x38924{[_0x31c1ab(0x219)]=new(_0x547c44())();static get[_0x31c1ab(0x1af)](){return[_0x5ab48d];}static get[_0x31c1ab(0x20c)](){const _0x41ed0e=_0x31c1ab;return _0x41ed0e(0x1da);}static get[_0x31c1ab(0x1d7)](){return!0x0;}static get[_0x31c1ab(0x1c5)](){return!0x0;}[_0x31c1ab(0x1a4)](){const _0x17901d=_0x31c1ab,_0x1b4204=this[_0x17901d(0x1ba)],_0x572388=_0x1b4204[_0x17901d(0x1f8)][_0x17901d(0x1f4)](_0x5ab48d);_0x1b4204[_0x17901d(0x216)][_0x17901d(0x20b)](_0x17901d(0x214))[_0x17901d(0x1a2)]({'model':_0x17901d(0x1ef),'view':(_0x225bab,{writer:_0x162673})=>function(_0x2ac9b5,_0x55cb05,_0x23b487,_0x39619b){const _0x1b73f7=_0x17901d,_0x397591=_0x2ac9b5[_0x1b73f7(0x1fa)][_0x1b73f7(0x201)](':')[0x2],_0x207df8=_0x23b487[_0x1b73f7(0x205)](_0x397591);if(!_0x207df8||_0x397591===_0x23b487[_0x1b73f7(0x1ae)])return;if(!_0x39619b[_0x1b73f7(0x215)][_0x1b73f7(0x1a8)][_0x1b73f7(0x1eb)](_0x2ac9b5[_0x1b73f7(0x208)][_0x1b73f7(0x210)],_0x1b73f7(0x20e)))return;const _0x12ccfb={'class':_0x1b73f7(0x21d)+_0x207df8[_0x1b73f7(0x1e0)][_0x1b73f7(0x1c3)](),'data-name':_0x207df8[_0x1b73f7(0x21c)],'data-session-id':_0x397591},_0x44b818=_0x39619b[_0x1b73f7(0x215)][_0x1b73f7(0x1fc)][_0x1b73f7(0x1f4)](_0x2ac9b5[_0x1b73f7(0x1fa)]),_0x286867=_0x44b818[_0x1b73f7(0x1ff)](),_0x35c806=_0x286867[_0x1b73f7(0x1c2)],_0x4aa8b9=_0x39619b[_0x1b73f7(0x215)][_0x1b73f7(0x1a8)];if(_0x35c806&&_0x4aa8b9[_0x1b73f7(0x1f3)](_0x35c806)&&_0x4aa8b9[_0x1b73f7(0x1d0)](_0x35c806)&&!_0x39619b[_0x1b73f7(0x215)][_0x1b73f7(0x1fc)][_0x1b73f7(0x1f4)](_0x1b73f7(0x1d5)+_0x397591)[_0x1b73f7(0x228)]()[_0x1b73f7(0x1ad)])return;const _0x4f14bd=_0x286867[_0x1b73f7(0x1e2)];return _0x39619b[_0x1b73f7(0x215)][_0x1b73f7(0x1a8)][_0x1b73f7(0x19f)](_0x4f14bd)&&!_0x39619b[_0x1b73f7(0x215)][_0x1b73f7(0x1f5)](_0x4f14bd)&&(_0x12ccfb[_0x1b73f7(0x1be)]=!0x1),function(_0x551083,_0x42ee54,_0x5d3d91){const _0x455cdd=_0x1b73f7,_0x1fb300=_0x551083[_0x455cdd(0x1c7)](_0x455cdd(0x20a),_0x42ee54);return _0x551083[_0x455cdd(0x211)](_0x455cdd(0x212),!0x0,_0x1fb300),_0x1fb300[_0x455cdd(0x1f1)]=function(_0x3cccd7){const _0x148193=_0x455cdd,_0x39b40b=this[_0x148193(0x1dd)](_0x3cccd7),_0x5b84d4=document[_0x148193(0x1a6)](_0x148193(0x20a));return _0x5b84d4[_0x148193(0x218)][_0x148193(0x1fe)](_0x148193(0x224)),_0x5b84d4[_0x148193(0x207)](_0x148193(0x1be),_0x148193(0x1a3)),_0x5b84d4[_0x148193(0x207)](_0x148193(0x220),_0x148193(0x1a3)),_0x5b84d4[_0x148193(0x1b6)]=_0x5d3d91[_0x148193(0x21c)],_0x39b40b[_0x148193(0x1f9)]=_0x148193(0x221)+_0x5b84d4[_0x148193(0x1e1)]+'',_0x39b40b[_0x148193(0x1ab)](_0x148193(0x1b7),()=>{const _0x4f4bcb=_0x148193;_0x39b40b[_0x4f4bcb(0x218)][_0x4f4bcb(0x1fe)](_0x4f4bcb(0x1c9));}),_0x39b40b[_0x148193(0x1ab)](_0x148193(0x1e8),()=>{const _0x420272=_0x148193;_0x39b40b[_0x420272(0x218)][_0x420272(0x1e9)](_0x420272(0x1c9));}),_0x39b40b;},_0x1fb300[_0x455cdd(0x1f2)]=function(_0x4e1180){const _0xdf32de=_0x455cdd;return!(!this[_0xdf32de(0x20d)](_0xdf32de(0x212))||!_0x4e1180[_0xdf32de(0x20d)](_0xdf32de(0x212))||this[_0xdf32de(0x1bc)](_0xdf32de(0x1b9))!=_0x4e1180[_0xdf32de(0x1bc)](_0xdf32de(0x1b9)));},_0x1fb300;}(_0x55cb05,_0x12ccfb,_0x207df8);}(_0x225bab,_0x162673,_0x572388,_0x1b4204)}),_0x1b4204[_0x17901d(0x216)][_0x17901d(0x20b)](_0x17901d(0x214))[_0x17901d(0x217)]({'model':_0x17901d(0x1b4),'view':_0x3a582a=>function(_0x1b4748,_0x56d250){const _0x28dcc0=_0x17901d,_0x365a87=_0x1b4748[_0x28dcc0(0x1fa)][_0x28dcc0(0x201)](':')[0x2];if(_0x365a87===_0x56d250[_0x28dcc0(0x1ae)])return null;const _0x2b23a2=_0x56d250[_0x28dcc0(0x205)](_0x365a87);if(!_0x2b23a2)return{'id':_0x365a87,'classes':[]};return{'id':_0x365a87,'classes':[_0x28dcc0(0x1ce),_0x2b23a2[_0x28dcc0(0x1e0)][_0x28dcc0(0x1b0)]()],'attributes':{'data-session-id':_0x365a87},'priority':0x7d0+_0x2b23a2[_0x28dcc0(0x1c6)]};}(_0x3a582a,_0x572388)}),function(_0x1b82ab){const _0x43425b=_0x17901d,_0x1f6435=_0x1b82ab[_0x43425b(0x215)],_0x16f9d6=new Map(),_0x16107c=_0x1b82ab[_0x43425b(0x1f8)][_0x43425b(0x1f4)](_0x5ab48d);_0x1f6435[_0x43425b(0x1fc)]['on'](_0x43425b(0x1ee),(_0x7c2e21,_0x786bad,_0xf6e061,_0x5e0e2e)=>{const _0x53181c=_0x43425b;if(!_0x5e0e2e&&_0x16f9d6[_0x53181c(0x1f4)](_0x786bad[_0x53181c(0x21c)]))return _0x16f9d6[_0x53181c(0x1f4)](_0x786bad[_0x53181c(0x21c)])[_0x53181c(0x203)](),void _0x16f9d6[_0x53181c(0x1cc)](_0x786bad[_0x53181c(0x21c)]);const _0x4479b7=_0x786bad[_0x53181c(0x21c)][_0x53181c(0x201)](':')[0x2];if(_0x4479b7===_0x16107c[_0x53181c(0x1ae)])return;const _0x5ef428=_0x53181c(0x1d3)+_0x4479b7;_0x1f6435[_0x53181c(0x1fc)][_0x53181c(0x1e7)](_0x5ef428)&&_0x1b82ab[_0x53181c(0x21e)][_0x53181c(0x1fd)](_0x5ef428),_0x786bad['on'](_0x53181c(0x1bf),(_0x47b162,_0x3000c0,_0xf32f97)=>{const _0x6d1d70=_0x53181c;if(_0x6d1d70(0x1cf)!=_0x3000c0[_0x6d1d70(0x1bd)][_0x6d1d70(0x226)]&&_0x6d1d70(0x1cf)==_0x786bad[_0x6d1d70(0x228)]()[_0x6d1d70(0x1bd)][_0x6d1d70(0x226)]&&!_0x16f9d6[_0x6d1d70(0x1e7)](_0x786bad[_0x6d1d70(0x21c)])){const _0x4fe083=_0x1f6435[_0x6d1d70(0x1a8)][_0x6d1d70(0x1a1)](_0xf32f97[_0x6d1d70(0x1aa)]);if(_0x4fe083){const _0x2073bc=_0x3d72ec[_0x6d1d70(0x1a7)](_0x4fe083);_0x16f9d6[_0x6d1d70(0x1b1)](_0x786bad[_0x6d1d70(0x21c)],_0x2073bc),_0x2073bc['on'](_0x6d1d70(0x1bf),(_0x3e69cb,_0x41b6ab,_0x15ea4f)=>{const _0x13dab3=_0x6d1d70;if(_0x13dab3(0x1cf)==_0x2073bc[_0x13dab3(0x1bd)][_0x13dab3(0x226)]){const _0x24df71=_0x1f6435[_0x13dab3(0x1a8)][_0x13dab3(0x1a1)](_0x15ea4f[_0x13dab3(0x1aa)]);_0x24df71?(_0x2073bc[_0x13dab3(0x210)]=_0x24df71[_0x13dab3(0x210)],_0x2073bc[_0x13dab3(0x21a)]=_0x24df71[_0x13dab3(0x21a)]):(_0x16f9d6[_0x13dab3(0x1cc)](_0x786bad[_0x13dab3(0x21c)]),_0x2073bc[_0x13dab3(0x203)]());}});}}});}),_0x1f6435[_0x43425b(0x1d4)]['on'](_0x43425b(0x1c4),()=>{const _0xa49591=_0x43425b;_0x16f9d6[_0xa49591(0x1d6)]>0x0&&_0x1f6435[_0xa49591(0x1e5)]({'isUndoable':!0x1},_0x4eee43=>{const _0x58b9cd=_0xa49591;for(const [_0x443092,_0x4e70be]of _0x16f9d6)_0x58b9cd(0x1cf)==_0x1f6435[_0x58b9cd(0x1fc)][_0x58b9cd(0x1f4)](_0x443092)[_0x58b9cd(0x228)]()[_0x58b9cd(0x1bd)][_0x58b9cd(0x226)]&&(Z(_0x443092[_0x58b9cd(0x201)](':')[0x2],_0x4e70be[_0x58b9cd(0x1e3)](),_0x1f6435,_0x4eee43),_0x4e70be[_0x58b9cd(0x203)]());_0x16f9d6[_0x58b9cd(0x19e)]();});});}(_0x1b4204),this[_0x17901d(0x219)][_0x17901d(0x1b2)](_0x331055[_0x17901d(0x1d4)],_0x17901d(0x1e6),(_0x4869bb,{key:_0x2aa4cf})=>{const _0x203c8d=_0x17901d;_0x203c8d(0x1ea)===_0x2aa4cf&&function(_0x4953f8){const _0x58501c=_0x203c8d;_0x4953f8[_0x58501c(0x21e)][_0x58501c(0x1f0)][_0x58501c(0x1c4)](_0x3e46cf=>{const _0x585432=_0x58501c;for(const _0x2ea7df of _0x4953f8[_0x585432(0x215)][_0x585432(0x1fc)]){if(!_0x2ea7df[_0x585432(0x21c)][_0x585432(0x1c8)](_0x585432(0x1ef)))continue;const _0x10b73b=_0x4953f8[_0x585432(0x21e)][_0x585432(0x1d2)][_0x585432(0x202)](_0x2ea7df[_0x585432(0x21c)]);if(_0x10b73b){for(const _0x2af604 of _0x10b73b)_0x3e46cf[_0x585432(0x1d9)](_0x585432(0x1c9),_0x2af604);}}});}(_0x1b4204);},{'useCapture':!0x0});}[_0x31c1ab(0x223)](){const _0x15072c=_0x31c1ab,_0x1a8d03=this[_0x15072c(0x1ba)],_0x1102a5=_0x1a8d03[_0x15072c(0x1f7)][_0x15072c(0x1f4)](_0x15072c(0x1a9));_0x1102a5&&_0x1a8d03[_0x15072c(0x215)]['on'](_0x15072c(0x1fb),(_0x1cae65,_0x318378)=>{const _0x2a7a5e=_0x15072c,_0x35d0db=_0x318378[0x0];if(!_0x35d0db[_0x2a7a5e(0x1b5)])return;if(_0x2a7a5e(0x21f)!=_0x35d0db[_0x2a7a5e(0x213)]||!_0x35d0db[_0x2a7a5e(0x21c)][_0x2a7a5e(0x1c8)](_0x2a7a5e(0x209)))return;const _0xd89226=_0x35d0db[_0x2a7a5e(0x1ed)];_0x1102a5[_0x2a7a5e(0x20f)][_0x2a7a5e(0x1e7)](_0xd89226)&&(_0x35d0db[_0x2a7a5e(0x1ec)]=_0x35d0db[_0x2a7a5e(0x200)]?_0x1a8d03[_0x2a7a5e(0x215)][_0x2a7a5e(0x1dc)](_0x35d0db[_0x2a7a5e(0x200)][_0x2a7a5e(0x210)],_0x35d0db[_0x2a7a5e(0x200)][_0x2a7a5e(0x21a)]):null);},{'priority':_0x15072c(0x1de)});}[_0x31c1ab(0x21b)](){const _0x1f306d=_0x31c1ab;return this[_0x1f306d(0x219)][_0x1f306d(0x1ac)](),super[_0x1f306d(0x21b)]();}[_0x31c1ab(0x1cd)](){const _0x476e8e=_0x31c1ab,_0x13f380=this[_0x476e8e(0x1ba)],_0x4f0c68=_0x13f380[_0x476e8e(0x215)][_0x476e8e(0x1d4)],_0x427135=_0x13f380[_0x476e8e(0x1f8)][_0x476e8e(0x1f4)](_0x5ab48d);_0x13f380[_0x476e8e(0x215)][_0x476e8e(0x1e5)]({'isUndoable':!0x1},_0x3b82cd=>{const _0x5c4783=_0x476e8e,_0x3368a6=_0x5c4783(0x1d5)+_0x427135[_0x5c4783(0x1ae)],_0x2c7250=_0x5c4783(0x1d3)+_0x427135[_0x5c4783(0x1ae)],_0x37933e=_0x13f380[_0x5c4783(0x215)][_0x5c4783(0x1fc)][_0x5c4783(0x1e7)](_0x3368a6);_0x13f380[_0x5c4783(0x21e)][_0x5c4783(0x1f0)][_0x5c4783(0x1f6)]?Z(_0x427135[_0x5c4783(0x1ae)],_0x4f0c68[_0x5c4783(0x1b3)][_0x5c4783(0x225)](),_0x13f380[_0x5c4783(0x215)],_0x3b82cd):_0x37933e&&(_0x3b82cd[_0x5c4783(0x1db)](_0x3368a6),_0x3b82cd[_0x5c4783(0x1db)](_0x2c7250));});}}function Z(_0x30b938,_0x5adc31,_0x1fdf96,_0x46398c){const _0x15a72f=_0x31c1ab,_0x3f0e35=_0x15a72f(0x1d5)+_0x30b938,_0x509bb6=_0x15a72f(0x1d3)+_0x30b938,_0x4c2bbb=_0x5adc31[_0x15a72f(0x222)]();let _0x3278f6=_0x5adc31[_0x15a72f(0x210)];if(_0x4c2bbb&&_0x4c2bbb['is'](_0x15a72f(0x1df),_0x15a72f(0x1ca))){const _0x3f9f79=function(_0x5f35aa,_0x9be7ff){const _0x156318=_0x15a72f;for(const _0x2cb9c4 of _0x5f35aa[_0x156318(0x1c0)]())if(_0x9be7ff[_0x156318(0x1a8)][_0x156318(0x1eb)](_0x2cb9c4,_0x156318(0x20e)))return _0x2cb9c4;}(_0x5adc31,_0x1fdf96);_0x3f9f79&&(_0x3278f6=_0x3f9f79,_0x5adc31=_0x46398c[_0x15a72f(0x1dc)](_0x3278f6));}const _0x3bc4c9=_0x46398c[_0x15a72f(0x1dc)](_0x3278f6);_0x1fdf96[_0x15a72f(0x1fc)][_0x15a72f(0x1e7)](_0x3f0e35)?(_0x46398c[_0x15a72f(0x1e4)](_0x3f0e35,{'range':_0x5adc31}),_0x46398c[_0x15a72f(0x1e4)](_0x509bb6,{'range':_0x3bc4c9})):(_0x46398c[_0x15a72f(0x19d)](_0x3f0e35,{'range':_0x5adc31,'usingOperation':!0x0}),_0x46398c[_0x15a72f(0x19d)](_0x509bb6,{'range':_0x3bc4c9,'usingOperation':!0x0}));}
|
|
23
|
+
const _0x477ef0=_0x23db;(function(_0x387afb,_0x22c106){const _0x330fbd=_0x23db,_0xa8ca65=_0x387afb();while(!![]){try{const _0x3e6cbf=-parseInt(_0x330fbd(0x13d))/0x1+-parseInt(_0x330fbd(0x11f))/0x2+parseInt(_0x330fbd(0x101))/0x3*(parseInt(_0x330fbd(0xfd))/0x4)+parseInt(_0x330fbd(0x109))/0x5*(parseInt(_0x330fbd(0x183))/0x6)+parseInt(_0x330fbd(0x13c))/0x7+-parseInt(_0x330fbd(0x146))/0x8*(-parseInt(_0x330fbd(0x14d))/0x9)+-parseInt(_0x330fbd(0x16a))/0xa*(parseInt(_0x330fbd(0x16c))/0xb);if(_0x3e6cbf===_0x22c106)break;else _0xa8ca65['push'](_0xa8ca65['shift']());}catch(_0x919cfa){_0xa8ca65['push'](_0xa8ca65['shift']());}}}(_0x4f32,0xc2504));import{Plugin as _0x489db0}from'ckeditor5/src/core.js';import{global as _0x2deb0e,DomEmitterMixin as _0x352372}from'ckeditor5/src/utils.js';import{Sessions as _0x68dfc0}from'./sessions.js';import{ModelLiveRange as _0x34f5bc}from'ckeditor5/src/engine.js';function _0x23db(_0x918398,_0x2f7b48){const _0x4f32a6=_0x4f32();return _0x23db=function(_0x23db34,_0x3f3c79){_0x23db34=_0x23db34-0xfd;let _0x243a24=_0x4f32a6[_0x23db34];return _0x243a24;},_0x23db(_0x918398,_0x2f7b48);}import'../../theme/usermarkers.css';export class UserMarkers extends _0x489db0{[_0x477ef0(0x121)]=new(_0x352372())();static get[_0x477ef0(0x134)](){return[_0x68dfc0];}static get[_0x477ef0(0x149)](){const _0x84dee3=_0x477ef0;return _0x84dee3(0x184);}static get[_0x477ef0(0x181)](){return!0x0;}static get[_0x477ef0(0x123)](){return!0x0;}[_0x477ef0(0x16b)](){const _0x948fd7=_0x477ef0,_0x36a9a6=this[_0x948fd7(0xff)],_0x47dbaa=_0x36a9a6[_0x948fd7(0x125)][_0x948fd7(0x112)](_0x68dfc0);_0x36a9a6[_0x948fd7(0x102)][_0x948fd7(0x14b)](_0x948fd7(0x13e))[_0x948fd7(0x128)]({'model':_0x948fd7(0x164),'view':(_0x16cd90,{writer:_0x16e227})=>function(_0x3af686,_0x4597eb,_0x2c5807,_0x1d6d7a){const _0x5e7d65=_0x948fd7,_0x5ad5e6=_0x3af686[_0x5e7d65(0x186)][_0x5e7d65(0x12a)](':')[0x2],_0x5afbd5=_0x2c5807[_0x5e7d65(0x168)](_0x5ad5e6);if(!_0x5afbd5||_0x5ad5e6===_0x2c5807[_0x5e7d65(0x140)])return;if(!_0x1d6d7a[_0x5e7d65(0x14e)][_0x5e7d65(0x17b)][_0x5e7d65(0x12e)](_0x3af686[_0x5e7d65(0x139)][_0x5e7d65(0x138)],_0x5e7d65(0x127)))return;const _0x26b8d1={'class':_0x5e7d65(0x169)+_0x5afbd5[_0x5e7d65(0x145)][_0x5e7d65(0x133)](),'data-name':_0x5afbd5[_0x5e7d65(0x163)],'data-session-id':_0x5ad5e6},_0x50b6c6=_0x1d6d7a[_0x5e7d65(0x14e)][_0x5e7d65(0x14f)][_0x5e7d65(0x112)](_0x3af686[_0x5e7d65(0x186)]),_0x44e521=_0x50b6c6[_0x5e7d65(0x126)](),_0x4401e9=_0x44e521[_0x5e7d65(0x11a)],_0x35f14d=_0x1d6d7a[_0x5e7d65(0x14e)][_0x5e7d65(0x17b)];if(_0x4401e9&&_0x35f14d[_0x5e7d65(0x142)](_0x4401e9)&&_0x35f14d[_0x5e7d65(0x16d)](_0x4401e9)&&!_0x1d6d7a[_0x5e7d65(0x14e)][_0x5e7d65(0x14f)][_0x5e7d65(0x112)](_0x5e7d65(0x10b)+_0x5ad5e6)[_0x5e7d65(0x180)]()[_0x5e7d65(0x15f)])return;const _0x47d8cd=_0x44e521[_0x5e7d65(0x172)];return _0x1d6d7a[_0x5e7d65(0x14e)][_0x5e7d65(0x17b)][_0x5e7d65(0x13b)](_0x47d8cd)&&!_0x1d6d7a[_0x5e7d65(0x14e)][_0x5e7d65(0x135)](_0x47d8cd)&&(_0x26b8d1[_0x5e7d65(0x115)]=!0x1),function(_0x3476b1,_0x2161ff,_0x2c1b94){const _0x5bddda=_0x5e7d65,_0x239be7=_0x3476b1[_0x5bddda(0x182)](_0x5bddda(0x151),_0x2161ff);return _0x3476b1[_0x5bddda(0x15c)](_0x5bddda(0x154),!0x0,_0x239be7),_0x239be7[_0x5bddda(0x106)]=function(_0x582e95){const _0x475d63=_0x5bddda,_0x441d3b=this[_0x475d63(0x15d)](_0x582e95),_0x489713=document[_0x475d63(0x152)](_0x475d63(0x151));return _0x489713[_0x475d63(0x165)][_0x475d63(0x173)](_0x475d63(0x175)),_0x489713[_0x475d63(0x158)](_0x475d63(0x115),_0x475d63(0x156)),_0x489713[_0x475d63(0x158)](_0x475d63(0x166),_0x475d63(0x156)),_0x489713[_0x475d63(0x119)]=_0x2c1b94[_0x475d63(0x163)],_0x441d3b[_0x475d63(0x188)]=_0x475d63(0x100)+_0x489713[_0x475d63(0x108)]+'',_0x441d3b[_0x475d63(0x114)](_0x475d63(0x122),()=>{const _0x55435e=_0x475d63;_0x441d3b[_0x55435e(0x165)][_0x55435e(0x173)](_0x55435e(0x105));}),_0x441d3b[_0x475d63(0x114)](_0x475d63(0x17c),()=>{const _0x486820=_0x475d63;_0x441d3b[_0x486820(0x165)][_0x486820(0x103)](_0x486820(0x105));}),_0x441d3b;},_0x239be7[_0x5bddda(0x141)]=function(_0x111ce3){const _0x1e9da0=_0x5bddda;return!(!this[_0x1e9da0(0x130)](_0x1e9da0(0x154))||!_0x111ce3[_0x1e9da0(0x130)](_0x1e9da0(0x154))||this[_0x1e9da0(0x10a)](_0x1e9da0(0x14c))!=_0x111ce3[_0x1e9da0(0x10a)](_0x1e9da0(0x14c)));},_0x239be7;}(_0x4597eb,_0x26b8d1,_0x5afbd5);}(_0x16cd90,_0x16e227,_0x47dbaa,_0x36a9a6)}),_0x36a9a6[_0x948fd7(0x102)][_0x948fd7(0x14b)](_0x948fd7(0x13e))[_0x948fd7(0x16f)]({'model':_0x948fd7(0x111),'view':_0x300b6d=>function(_0x352704,_0x16080f){const _0x268e7b=_0x948fd7,_0x546d81=_0x352704[_0x268e7b(0x186)][_0x268e7b(0x12a)](':')[0x2];if(_0x546d81===_0x16080f[_0x268e7b(0x140)])return null;const _0x1f4ae0=_0x16080f[_0x268e7b(0x168)](_0x546d81);if(!_0x1f4ae0)return{'id':_0x546d81,'classes':[]};return{'id':_0x546d81,'classes':[_0x268e7b(0x157),_0x1f4ae0[_0x268e7b(0x145)][_0x268e7b(0x171)]()],'attributes':{'data-session-id':_0x546d81},'priority':0x7d0+_0x1f4ae0[_0x268e7b(0x12c)]};}(_0x300b6d,_0x47dbaa)}),function(_0x7a831e){const _0x5a4174=_0x948fd7,_0x2a9c95=_0x7a831e[_0x5a4174(0x14e)],_0x489164=new Map(),_0x32b7be=_0x7a831e[_0x5a4174(0x125)][_0x5a4174(0x112)](_0x68dfc0);_0x2a9c95[_0x5a4174(0x14f)]['on'](_0x5a4174(0x15b),(_0xe25457,_0x116886,_0x52750c,_0x2b89cc)=>{const _0x249585=_0x5a4174;if(!_0x2b89cc&&_0x489164[_0x249585(0x112)](_0x116886[_0x249585(0x163)]))return _0x489164[_0x249585(0x112)](_0x116886[_0x249585(0x163)])[_0x249585(0x11c)](),void _0x489164[_0x249585(0x16e)](_0x116886[_0x249585(0x163)]);const _0x4e4f9b=_0x116886[_0x249585(0x163)][_0x249585(0x12a)](':')[0x2];if(_0x4e4f9b===_0x32b7be[_0x249585(0x140)])return;const _0x42bbfa=_0x249585(0x10f)+_0x4e4f9b;_0x2a9c95[_0x249585(0x14f)][_0x249585(0x162)](_0x42bbfa)&&_0x7a831e[_0x249585(0x120)][_0x249585(0x132)](_0x42bbfa),_0x116886['on'](_0x249585(0x104),(_0x1874f7,_0x1f4404,_0x425acf)=>{const _0x135214=_0x249585;if(_0x135214(0x11b)!=_0x1f4404[_0x135214(0x124)][_0x135214(0x117)]&&_0x135214(0x11b)==_0x116886[_0x135214(0x180)]()[_0x135214(0x124)][_0x135214(0x117)]&&!_0x489164[_0x135214(0x162)](_0x116886[_0x135214(0x163)])){const _0x2848a5=_0x2a9c95[_0x135214(0x17b)][_0x135214(0x10c)](_0x425acf[_0x135214(0x178)]);if(_0x2848a5){const _0x1c418b=_0x34f5bc[_0x135214(0x176)](_0x2848a5);_0x489164[_0x135214(0x11d)](_0x116886[_0x135214(0x163)],_0x1c418b),_0x1c418b['on'](_0x135214(0x104),(_0x39474a,_0x53c368,_0x9b141b)=>{const _0x475520=_0x135214;if(_0x475520(0x11b)==_0x1c418b[_0x475520(0x124)][_0x475520(0x117)]){const _0x5535f2=_0x2a9c95[_0x475520(0x17b)][_0x475520(0x10c)](_0x9b141b[_0x475520(0x178)]);_0x5535f2?(_0x1c418b[_0x475520(0x138)]=_0x5535f2[_0x475520(0x138)],_0x1c418b[_0x475520(0x113)]=_0x5535f2[_0x475520(0x113)]):(_0x489164[_0x475520(0x16e)](_0x116886[_0x475520(0x163)]),_0x1c418b[_0x475520(0x11c)]());}});}}});}),_0x2a9c95[_0x5a4174(0x179)]['on'](_0x5a4174(0x11e),()=>{const _0x286581=_0x5a4174;_0x489164[_0x286581(0x110)]>0x0&&_0x2a9c95[_0x286581(0x144)]({'isUndoable':!0x1},_0x10996c=>{const _0x411a25=_0x286581;for(const [_0x4b2dcc,_0x39119a]of _0x489164)_0x411a25(0x11b)==_0x2a9c95[_0x411a25(0x14f)][_0x411a25(0x112)](_0x4b2dcc)[_0x411a25(0x180)]()[_0x411a25(0x124)][_0x411a25(0x117)]&&(te(_0x4b2dcc[_0x411a25(0x12a)](':')[0x2],_0x39119a[_0x411a25(0x12f)](),_0x2a9c95,_0x10996c),_0x39119a[_0x411a25(0x11c)]());_0x489164[_0x411a25(0x185)]();});});}(_0x36a9a6),this[_0x948fd7(0x121)][_0x948fd7(0x137)](_0x2deb0e[_0x948fd7(0x179)],_0x948fd7(0x15e),(_0x2968be,{key:_0x2daaae})=>{const _0x12776d=_0x948fd7;_0x12776d(0x14a)===_0x2daaae&&function(_0xf4ccf2){const _0x70e2f3=_0x12776d;_0xf4ccf2[_0x70e2f3(0x120)][_0x70e2f3(0x148)][_0x70e2f3(0x11e)](_0x264678=>{const _0xcbfd6a=_0x70e2f3;for(const _0x11bb33 of _0xf4ccf2[_0xcbfd6a(0x14e)][_0xcbfd6a(0x14f)]){if(!_0x11bb33[_0xcbfd6a(0x163)][_0xcbfd6a(0x17d)](_0xcbfd6a(0x164)))continue;const _0x384c97=_0xf4ccf2[_0xcbfd6a(0x120)][_0xcbfd6a(0x17a)][_0xcbfd6a(0x155)](_0x11bb33[_0xcbfd6a(0x163)]);if(_0x384c97){for(const _0x495f7b of _0x384c97)_0x264678[_0xcbfd6a(0xfe)](_0xcbfd6a(0x105),_0x495f7b);}}});}(_0x36a9a6);},{'useCapture':!0x0});}[_0x477ef0(0x174)](){const _0x289793=_0x477ef0,_0x12843c=this[_0x289793(0xff)],_0x4847b3=_0x12843c[_0x289793(0x10d)][_0x289793(0x112)](_0x289793(0x107));_0x4847b3&&_0x12843c[_0x289793(0x14e)]['on'](_0x289793(0x143),(_0x55a53d,_0x56ddaa)=>{const _0x43d008=_0x289793,_0x4f53bd=_0x56ddaa[0x0];if(!_0x4f53bd[_0x43d008(0x129)])return;if(_0x43d008(0x160)!=_0x4f53bd[_0x43d008(0x150)]||!_0x4f53bd[_0x43d008(0x163)][_0x43d008(0x17d)](_0x43d008(0x159)))return;const _0x463ec4=_0x4f53bd[_0x43d008(0x177)];_0x4847b3[_0x43d008(0x170)][_0x43d008(0x162)](_0x463ec4)&&(_0x4f53bd[_0x43d008(0x13a)]=_0x4f53bd[_0x43d008(0x17e)]?_0x12843c[_0x43d008(0x14e)][_0x43d008(0x12d)](_0x4f53bd[_0x43d008(0x17e)][_0x43d008(0x138)],_0x4f53bd[_0x43d008(0x17e)][_0x43d008(0x113)]):null);},{'priority':_0x289793(0x187)});}[_0x477ef0(0x161)](){const _0x2bdad3=_0x477ef0;return this[_0x2bdad3(0x121)][_0x2bdad3(0x15a)](),super[_0x2bdad3(0x161)]();}[_0x477ef0(0x10e)](){const _0x3b7c01=_0x477ef0,_0x29e2f7=this[_0x3b7c01(0xff)],_0x403e10=_0x29e2f7[_0x3b7c01(0x14e)][_0x3b7c01(0x179)],_0x38b0da=_0x29e2f7[_0x3b7c01(0x125)][_0x3b7c01(0x112)](_0x68dfc0);_0x29e2f7[_0x3b7c01(0x14e)][_0x3b7c01(0x144)]({'isUndoable':!0x1},_0x498e47=>{const _0x35e685=_0x3b7c01,_0x45d4b8=_0x35e685(0x10b)+_0x38b0da[_0x35e685(0x140)],_0x34f506=_0x35e685(0x10f)+_0x38b0da[_0x35e685(0x140)],_0x1f95c1=_0x29e2f7[_0x35e685(0x14e)][_0x35e685(0x14f)][_0x35e685(0x162)](_0x45d4b8);_0x29e2f7[_0x35e685(0x120)][_0x35e685(0x148)][_0x35e685(0x147)]?te(_0x38b0da[_0x35e685(0x140)],_0x403e10[_0x35e685(0x167)][_0x35e685(0x118)](),_0x29e2f7[_0x35e685(0x14e)],_0x498e47):_0x1f95c1&&(_0x498e47[_0x35e685(0x13f)](_0x45d4b8),_0x498e47[_0x35e685(0x13f)](_0x34f506));});}}function _0x4f32(){const _0x1b5994=['user:position','classList','spellcheck','selection','getUserBySessionId','ck-user__marker\x20','7627140MYbBFg','init','22cwwtjq','isInline','delete','markerToHighlight','_createdBatches','getSelectionClass','parent','add','afterInit','ck-user__marker-tooltip','fromRange','batch','deletionPosition','document','mapper','schema','mouseleave','startsWith','oldRange','element','getRange','isOfficialPlugin','createUIElement','30YHoNsz','UserMarkers','clear','markerName','highest','innerHTML','4NpGLZF','removeClass','editor','<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','1821657zjncKp','conversion','remove','change:range','ck-user__marker_hovered','render','undo','outerHTML','897300pwerXm','getAttribute','user:range:','getNearestSelectionRange','commands','createUserMarkerOperations','user:position:','size','user:range','get','end','addEventListener','contenteditable','getPositions','rootName','getFirstRange','textContent','nodeAfter','$graveyard','detach','set','change','339938mxccWT','editing','_domEmitter','mouseenter','isPremiumPlugin','root','plugins','getStart','$text','markerToElement','isDocumentOperation','split','addMarker','orderNumber','createRange','checkChild','toRange','getCustomProperty','tableCell','reconvertMarker','getMarkerClass','requires','hasContent','getContainedElement','listenTo','start','markerRange','newRange','isLimit','6236797dWzleI','719108LhSwgi','editingDowncast','removeMarker','mySessionId','isSimilar','isObject','applyOperation','enqueueChange','color','2173128BcTZvD','hasDomSelection','view','pluginName','Escape','for','data-session-id','27kJseiD','model','markers','type','span','createElement','updateMarker','userPositionMarker','markerNameToElements','false','ck-user__selection','setAttribute','user:','stopListening','update:user:range','setCustomProperty','toDomElement','keydown','isCollapsed','marker','destroy','has','name'];_0x4f32=function(){return _0x1b5994;};return _0x4f32();}function te(_0x500e40,_0x2c16bf,_0x1fc8dc,_0x49355d){const _0x31e58d=_0x477ef0,_0x5a0391=_0x31e58d(0x10b)+_0x500e40,_0x47c548=_0x31e58d(0x10f)+_0x500e40,_0x2338aa=_0x2c16bf[_0x31e58d(0x136)]();let _0x13a3e2=_0x2c16bf[_0x31e58d(0x138)];if(_0x2338aa&&_0x2338aa['is'](_0x31e58d(0x17f),_0x31e58d(0x131))){const _0x334ff6=function(_0x469f7a,_0x30a737){const _0xa79655=_0x31e58d;for(const _0x2b1c10 of _0x469f7a[_0xa79655(0x116)]())if(_0x30a737[_0xa79655(0x17b)][_0xa79655(0x12e)](_0x2b1c10,_0xa79655(0x127)))return _0x2b1c10;}(_0x2c16bf,_0x1fc8dc);_0x334ff6&&(_0x13a3e2=_0x334ff6,_0x2c16bf=_0x49355d[_0x31e58d(0x12d)](_0x13a3e2));}const _0x52a84d=_0x49355d[_0x31e58d(0x12d)](_0x13a3e2);_0x1fc8dc[_0x31e58d(0x14f)][_0x31e58d(0x162)](_0x5a0391)?(_0x49355d[_0x31e58d(0x153)](_0x5a0391,{'range':_0x2c16bf}),_0x49355d[_0x31e58d(0x153)](_0x47c548,{'range':_0x52a84d})):(_0x49355d[_0x31e58d(0x12b)](_0x5a0391,{'range':_0x2c16bf,'usingOperation':!0x0}),_0x49355d[_0x31e58d(0x12b)](_0x47c548,{'range':_0x52a84d,'usingOperation':!0x0}));}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>
|
|
23
|
+
const _0x39e3ae=_0x5c80;function _0x29ff(){const _0x1fada0=['_domEmitter','addToReconnectionStack','connected','initialReconnectionInterval','9518vNiQhA','plugins','CONNECTED','context','websocketgateway-invalid-plugin-interface','Connected\x20users\x20limit\x20exceeded','removeFromReconnectionStack','define','showWarning','3554159ZpkrIo','limitExceeded','isInReconnectionStack','websocketgateway-plugin-already-registered','token','bind','offline','1038426QYSbsd','change:me','reconnect','_shouldPluginsReconnect','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.','pluginName','cloudServices.connectionTimeout','_isBrowserOffline','all','CloudServices','listenTo','code','WebSocketGateway','CONNECTING','webSocketUrl','connection','4242855ZwCSAP','then','disconnect','real-time-collaboration','3132MwdSZj','cloudservices-init','error','destroy','config','set','websocketgateway-missing-websocket-url','function','state','1958696lHhXds','stopListening','isPremiumPlugin','get','delete','isOfficialPlugin','cloudServices.requestTimeout','cloudservices-reconnection-error','_reconnect','from','catch','4559094gpfufV','has','requires','init','_reconnectionStack','711WQybSR','add','DISCONNECTED','websocketgateway-missing-token','online','20152xjdOqn','connect','constructor'];_0x29ff=function(){return _0x1fada0;};return _0x29ff();}(function(_0x3448f7,_0x5b0094){const _0x627821=_0x5c80,_0x1747ef=_0x3448f7();while(!![]){try{const _0x4f4695=-parseInt(_0x627821(0x13a))/0x1+parseInt(_0x627821(0x173))/0x2*(parseInt(_0x627821(0x167))/0x3)+-parseInt(_0x627821(0x157))/0x4+parseInt(_0x627821(0x14a))/0x5+parseInt(_0x627821(0x162))/0x6+parseInt(_0x627821(0x17c))/0x7+-parseInt(_0x627821(0x16c))/0x8*(parseInt(_0x627821(0x14e))/0x9);if(_0x4f4695===_0x5b0094)break;else _0x1747ef['push'](_0x1747ef['shift']());}catch(_0x4e2f7a){_0x1747ef['push'](_0x1747ef['shift']());}}}(_0x29ff,0xccea0));import{ContextPlugin as _0x865b20}from'ckeditor5/src/core.js';function _0x5c80(_0x429d40,_0x5c02fd){const _0x29ff55=_0x29ff();return _0x5c80=function(_0x5c800a,_0x478ff8){_0x5c800a=_0x5c800a-0x13a;let _0x34219e=_0x29ff55[_0x5c800a];return _0x34219e;},_0x5c80(_0x429d40,_0x5c02fd);}import{DomEmitterMixin as _0x880c6e,CKEditorError as _0xa543cb}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x3fc0b3,WEB_SOCKET_GATEWAY_STATES as _0x535b12}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0xab25fe}from'ckeditor5/src/ui.js';class n extends _0x865b20{static [_0x39e3ae(0x146)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x3fc0b3)());static [_0x39e3ae(0x172)]=0x3e8;[_0x39e3ae(0x149)];[_0x39e3ae(0x166)];[_0x39e3ae(0x13d)];[_0x39e3ae(0x16f)];static get[_0x39e3ae(0x164)](){const _0xe01175=_0x39e3ae;return[_0xe01175(0x143),_0xab25fe];}static get[_0x39e3ae(0x13f)](){const _0x225e7c=_0x39e3ae;return _0x225e7c(0x146);}static get[_0x39e3ae(0x15c)](){return!0x0;}static get[_0x39e3ae(0x159)](){return!0x0;}constructor(_0xbbcbed){const _0xf2d87e=_0x39e3ae;super(_0xbbcbed),this[_0xf2d87e(0x153)](_0xf2d87e(0x156),_0x535b12[_0xf2d87e(0x175)]),this[_0xf2d87e(0x153)](_0xf2d87e(0x141),!0x1),this[_0xf2d87e(0x166)]=new Set(),this[_0xf2d87e(0x13d)]=!0x1,this[_0xf2d87e(0x16f)]=new(_0x880c6e())();}[_0x39e3ae(0x165)](){const _0x23efe1=_0x39e3ae,_0x3f11bb=this[_0x23efe1(0x176)],_0x56f269=_0x3f11bb[_0x23efe1(0x174)][_0x23efe1(0x15a)](_0x23efe1(0x143)),_0x16fd4a=_0x3f11bb[_0x23efe1(0x174)][_0x23efe1(0x15a)](_0xab25fe);if(!_0x56f269[_0x23efe1(0x180)])throw new _0xa543cb(_0x23efe1(0x16a),this);if(!_0x56f269[_0x23efe1(0x148)])throw new _0xa543cb(_0x23efe1(0x154),this);return this[_0x23efe1(0x16f)][_0x23efe1(0x144)](window,_0x23efe1(0x182),()=>this[_0x23efe1(0x141)]=!0x0),this[_0x23efe1(0x16f)][_0x23efe1(0x144)](window,_0x23efe1(0x16b),()=>this[_0x23efe1(0x141)]=!0x1),this[_0x23efe1(0x176)][_0x23efe1(0x152)][_0x23efe1(0x17a)](_0x23efe1(0x140),0xa),this[_0x23efe1(0x176)][_0x23efe1(0x152)][_0x23efe1(0x17a)](_0x23efe1(0x15d),0x14),n[_0x23efe1(0x146)][_0x23efe1(0x16d)](_0x56f269[_0x23efe1(0x180)],_0x56f269[_0x23efe1(0x148)],{'timeout':0x3e8*this[_0x23efe1(0x176)][_0x23efe1(0x152)][_0x23efe1(0x15a)](_0x23efe1(0x140)),'requestTimeout':0x3e8*this[_0x23efe1(0x176)][_0x23efe1(0x152)][_0x23efe1(0x15a)](_0x23efe1(0x15d))})[_0x23efe1(0x14b)](_0x2cc235=>{const _0x442d36=_0x23efe1;if(this[_0x442d36(0x149)]=_0x2cc235,this[_0x442d36(0x181)](_0x442d36(0x156))['to'](_0x2cc235,_0x442d36(0x156),this,_0x442d36(0x141),(_0x166c58,_0x574073)=>(_0x442d36(0x171)!==_0x166c58&&(this[_0x442d36(0x13d)]=!0x0),_0x574073||_0x166c58!==_0x535b12[_0x442d36(0x175)]?_0x535b12[_0x442d36(0x169)]:this[_0x442d36(0x156)]==_0x535b12[_0x442d36(0x169)]&&this[_0x442d36(0x13d)]?(this[_0x442d36(0x13d)]=!0x1,this[_0x442d36(0x15f)](),_0x535b12[_0x442d36(0x147)]):_0x535b12[_0x442d36(0x175)])),this[_0x442d36(0x149)]['on'](_0x442d36(0x150),(_0x5349b9,_0x42bdfb)=>{const _0x66233a=_0x442d36;if(_0x66233a(0x17d)!==_0x42bdfb[_0x66233a(0x145)])throw console[_0x66233a(0x150)](_0x42bdfb),new _0xa543cb(_0x66233a(0x14f),null,{'originalError':_0x42bdfb});_0x16fd4a[_0x66233a(0x17b)](_0x66233a(0x13e),{'title':_0x66233a(0x178),'namespace':_0x66233a(0x14d)});}),!_0x2cc235['me'])return new Promise(_0xbb51a1=>_0x2cc235['on'](_0x442d36(0x13b),_0xbb51a1));})[_0x23efe1(0x161)](_0xc00411=>{const _0x881b4e=_0x23efe1;throw console[_0x881b4e(0x150)](_0xc00411),new _0xa543cb(_0x881b4e(0x14f),null,{'originalError':_0xc00411});});}[_0x39e3ae(0x170)](_0x2c2b4d){const _0x396337=_0x39e3ae;if(_0x396337(0x155)!=typeof _0x2c2b4d[_0x396337(0x13c)])throw new _0xa543cb(_0x396337(0x177),this);if(this[_0x396337(0x17e)](_0x2c2b4d))throw new _0xa543cb(_0x396337(0x17f),this,{'name':_0x2c2b4d[_0x396337(0x16e)][_0x396337(0x13f)]});this[_0x396337(0x166)][_0x396337(0x168)](_0x2c2b4d);}[_0x39e3ae(0x179)](_0x375de1){const _0x2754ac=_0x39e3ae;this[_0x2754ac(0x166)][_0x2754ac(0x15b)](_0x375de1);}[_0x39e3ae(0x17e)](_0x3e6eaf){const _0x5e6038=_0x39e3ae;return this[_0x5e6038(0x166)][_0x5e6038(0x163)](_0x3e6eaf);}[_0x39e3ae(0x15f)](){const _0x480c2=_0x39e3ae;return this[_0x480c2(0x149)][_0x480c2(0x13c)]()[_0x480c2(0x14b)](()=>Promise[_0x480c2(0x142)](Array[_0x480c2(0x160)](this[_0x480c2(0x166)],_0x44aee7=>_0x44aee7[_0x480c2(0x13c)]())))[_0x480c2(0x14b)](()=>this[_0x480c2(0x156)]=_0x535b12[_0x480c2(0x175)])[_0x480c2(0x161)](_0x57e20e=>{const _0x164ac3=_0x480c2;throw console[_0x164ac3(0x150)](_0x57e20e),new _0xa543cb(_0x164ac3(0x15e),this[_0x164ac3(0x176)]);});}[_0x39e3ae(0x14c)](){const _0xf9cb56=_0x39e3ae;this[_0xf9cb56(0x149)]&&this[_0xf9cb56(0x149)][_0xf9cb56(0x14c)](),this[_0xf9cb56(0x156)]=_0x535b12[_0xf9cb56(0x169)],this[_0xf9cb56(0x16f)][_0xf9cb56(0x158)]();}[_0x39e3ae(0x151)](){const _0x548fea=_0x39e3ae;this[_0x548fea(0x14c)](),super[_0x548fea(0x151)]();}}export{n as WebSocketGateway};
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>_0xde5fe)());[_0x5aeec7(0xcf)];[_0x5aeec7(0xc6)];[_0x5aeec7(0xf2)];[_0x5aeec7(0xfa)];static get[_0x5aeec7(0x99)](){const _0x405dd7=_0x5aeec7;return[_0x4c4cf3,_0x3eeb7a,_0x405dd7(0xb7),_0x2da23b,_0x54578d];}static get[_0x5aeec7(0xf6)](){const _0x54fdad=_0x5aeec7;return _0x54fdad(0xc7);}static get[_0x5aeec7(0x9d)](){return!0x0;}static get[_0x5aeec7(0xaa)](){return!0x0;}constructor(_0x2b88e6){const _0x2280eb=_0x5aeec7;super(_0x2b88e6);const _0x1ee75c=this[_0x2280eb(0xda)][_0x2280eb(0xb2)][_0x2280eb(0xbb)](_0x2280eb(0xce));this[_0x2280eb(0xcf)]=null,this[_0x2280eb(0xc6)]=this[_0x2280eb(0xda)][_0x2280eb(0x9f)][_0x2280eb(0xbb)](_0x2280eb(0xf4)),this[_0x2280eb(0xf2)]=new c[(_0x2280eb(0xd2))](_0x1ee75c);}async[_0x5aeec7(0xdb)](){const _0x252114=_0x5aeec7,_0x5fe91e=this[_0x252114(0xda)][_0x252114(0x9f)][_0x252114(0xbb)](_0x3eeb7a),_0x482a20=_0x5fe91e[_0x252114(0xbe)],_0x1810b0=this[_0x252114(0xda)][_0x252114(0x9f)][_0x252114(0xbb)](_0x4c4cf3);this[_0x252114(0xc6)][_0x252114(0xed)]({'history':_0x482a20,'getLatestVersion':()=>this[_0x252114(0xcd)](),'getCurrentRevisionId':()=>_0x5fe91e[_0x252114(0xdd)]});const _0x256499=this[_0x252114(0xda)][_0x252114(0xb2)][_0x252114(0xbb)](_0x252114(0xa6))||_0x293aec,_0x44670e=await _0x492719[_0x252114(0xa9)](_0x1810b0[_0x252114(0xa1)],_0x256499);this[_0x252114(0xda)][_0x252114(0x9f)][_0x252114(0xbb)](_0x252114(0xb7))[_0x252114(0xc2)]={'getRevision':async({revisionId:_0x21a139})=>(await this[_0x252114(0xb3)](),await this[_0x252114(0xf2)][_0x252114(0xde)](_0x21a139)),'updateRevisions':async _0x564173=>{const _0x4a7d85=_0x252114;await this[_0x4a7d85(0xb3)]();const _0x4cf1c8=this[_0x4a7d85(0xc6)][_0x4a7d85(0xc9)];if(_0x44670e&&0x1===_0x564173[_0x4a7d85(0xfe)]&&_0x564173[0x0]['id']===_0x4cf1c8['id'])return _0x564173;for(const _0x12d7fd of _0x564173)_0x12d7fd['id']===_0x4cf1c8['id']&&(_0x12d7fd[_0x4a7d85(0xb8)]=_0x12d7fd[_0x4a7d85(0xf0)]===_0x12d7fd[_0x4a7d85(0xd3)]);return this[_0x4a7d85(0xf2)][_0x4a7d85(0xd1)](_0x564173,this[_0x4a7d85(0xcf)])[_0x4a7d85(0xc4)](_0x36f2b5=>(this[_0x4a7d85(0xcf)]=_0x36f2b5,_0x564173))[_0x4a7d85(0xd5)](_0x11b21a=>{const _0x2e6ca0=_0x4a7d85;if(it(_0x11b21a)||_0x2e6ca0(0xfb)===_0x11b21a[_0x2e6ca0(0xc1)]&&void 0x0!==_0x11b21a[_0x2e6ca0(0x8d)][_0x2e6ca0(0xf3)]){for(const _0x48c40a of _0x564173){!this[_0x2e6ca0(0xc6)][_0x2e6ca0(0xad)][_0x2e6ca0(0xde)](_0x48c40a['id'])||this[_0x2e6ca0(0xc6)][_0x2e6ca0(0xd4)](_0x48c40a['id'],_0x48c40a,!0x1);}if(it(_0x11b21a))throw _0x11b21a;return _0x564173;}throw _0x11b21a;});}},this[_0x252114(0xf5)](this[_0x252114(0xf2)],_0x252114(0xa7),(_0x524196,{revisionsData:_0x18984b,requestId:_0x4c7a07})=>{const _0x39c81d=_0x252114;Math[_0x39c81d(0xc3)](..._0x18984b[_0x39c81d(0xae)](_0x57c5ee=>_0x57c5ee[_0x39c81d(0xd3)]))>this[_0x39c81d(0xe2)]()-0x1?this[_0x39c81d(0xcd)]()[_0x39c81d(0xc4)](()=>{const _0x33d101=_0x39c81d;this[_0x33d101(0xbf)](_0x18984b,_0x4c7a07);}):this[_0x39c81d(0xbf)](_0x18984b,_0x4c7a07);});const {revisions:_0x47e0ec,requestId:_0x55a419}=await this[_0x252114(0xf2)][_0x252114(0xff)](_0x1810b0[_0x252114(0xa1)]);_0x1810b0[_0x252114(0xf8)](this),this[_0x252114(0xcf)]=_0x55a419,await this[_0x252114(0xbd)](_0x47e0ec);for(const _0x4fb560 of _0x47e0ec)this[_0x252114(0xc6)][_0x252114(0x9c)](_0x4fb560);this[_0x252114(0xf5)](_0x5fe91e,_0x252114(0x95),(_0x65191e,_0x2a8976,_0x5d1290)=>{const _0xd6be4=_0x252114;_0x5d1290&&(this[_0xd6be4(0xfa)]=_0x5fe91e[_0xd6be4(0xb6)],_0x65191e[_0xd6be4(0xd9)]());}),this[_0x252114(0xc6)][_0x252114(0xcc)](_0x252114(0xd8))['to'](_0x1810b0,_0x252114(0xe3),_0xd35350=>_0xd35350===_0x2aebb2[_0x252114(0x8e)]);}async[_0x5aeec7(0xa8)](){const _0x5878a8=_0x5aeec7,_0xdd3296=this[_0x5878a8(0xda)][_0x5878a8(0x9f)][_0x5878a8(0xbb)](_0x4c4cf3),_0x5643fa=this[_0x5878a8(0xda)][_0x5878a8(0x9f)][_0x5878a8(0xbb)](_0x3eeb7a),_0x55ab77=async()=>{const _0x514635=_0x5878a8,_0x5f0bad=this[_0x514635(0xc6)][_0x514635(0xc9)],_0x2c00bc=_0x5f0bad['id'],_0x2944f3=_0x2c00bc!==_0x5643fa[_0x514635(0xdd)];if(_0x2944f3){const _0x5e5de9=_0x5643fa[_0x514635(0xb6)]-this[_0x514635(0xfa)],_0x106420=this[_0x514635(0xe2)]();this[_0x514635(0xc6)][_0x514635(0xc8)][_0x514635(0xaf)]();if(_0x5f0bad[_0x514635(0xd3)]+_0x5e5de9!==_0x106420){const _0x1edb62=_0x5f0bad[_0x514635(0xf0)]+_0x5e5de9,_0xf9f9b4=this[_0x514635(0xda)][_0x514635(0x9f)][_0x514635(0xbb)](_0x54578d),_0x4cdec7=this[_0x514635(0xc6)][_0x514635(0x9b)]({'revision':_0x5f0bad,'from':_0x1edb62,'to':_0x106420});_0x4cdec7['id']=_0x5f0bad['id'];const _0x43478d=_0x4cdec7[_0x514635(0x96)][_0x514635(0xae)](_0x5c4519=>_0xf9f9b4[_0x514635(0x94)](_0x5c4519));_0x5f0bad[_0x514635(0xe6)]({..._0x4cdec7,'authors':_0x43478d},!0x0),this[_0x514635(0xc6)][_0x514635(0xd4)](_0x5f0bad['id'],_0x4cdec7,!0x0);}this[_0x514635(0xc6)][_0x514635(0xb9)]=_0x106420,(_0x5f0bad[_0x514635(0xd3)]===_0x5f0bad[_0x514635(0xf0)]&&!this[_0x514635(0xc6)][_0x514635(0xba)][_0x514635(0xe1)](_0x2c00bc)&&this[_0x514635(0xc6)][_0x514635(0xad)][_0x514635(0xc0)][_0x514635(0xeb)](_0x2c00bc),this[_0x514635(0xc6)][_0x514635(0xf7)](_0x106420));}const {revisions:_0x35af51,requestId:_0x569e88}=await this[_0x514635(0xf2)][_0x514635(0xa8)](_0xdd3296[_0x514635(0xa1)],this[_0x514635(0xcf)]);_0x2944f3&&_0x35af51[_0x514635(0xfe)]>0x0?_0x5643fa[_0x514635(0xe5)]():(await this[_0x514635(0xbd)](_0x35af51),this[_0x514635(0xbf)](_0x35af51,_0x569e88),this[_0x514635(0xc6)][_0x514635(0xd6)]());};return _0x5643fa[_0x5878a8(0x100)]?_0x55ab77():new Promise((_0x5a320f,_0x2109b2)=>{const _0x1d4f03=_0x5878a8;_0x5643fa[_0x1d4f03(0xe9)](_0x1d4f03(0x95),()=>{const _0x36df21=_0x1d4f03;_0x55ab77()[_0x36df21(0xc4)](_0x5a320f)[_0x36df21(0xd5)](_0x2109b2);});});}[_0x5aeec7(0x8c)](){const _0x416680=_0x5aeec7;super[_0x416680(0x8c)]();}async[_0x5aeec7(0xb3)](){const _0x21c584=_0x5aeec7;this[_0x21c584(0xf2)][_0x21c584(0xb1)]||await new Promise(_0x11f499=>{const _0x45dc96=_0x21c584;this[_0x45dc96(0xf5)](this[_0x45dc96(0xf2)],_0x45dc96(0xd7),_0x15545b=>{const _0x3de164=_0x45dc96;_0x15545b[_0x3de164(0xd9)](),_0x11f499();});});}[_0x5aeec7(0xe2)](){const _0x3eabee=_0x5aeec7,_0x4265b9=this[_0x3eabee(0xda)][_0x3eabee(0x9f)][_0x3eabee(0xbb)](_0x3eeb7a)[_0x3eabee(0xbe)][_0x3eabee(0x98)]()[_0x3eabee(0x90)]();for(const _0x36ce68 of _0x4265b9)if(_0x3eabee(0xe0)!==_0x36ce68[_0x3eabee(0xf1)]||_0x36ce68[_0x3eabee(0xb4)])return _0x36ce68[_0x3eabee(0xb5)]+0x1;}[_0x5aeec7(0xcd)](){const _0x5ae069=_0x5aeec7,_0x949124=this[_0x5ae069(0xda)][_0x5ae069(0x9f)][_0x5ae069(0xbb)](_0x3eeb7a);return new Promise(_0x27acb4=>{const _0x4b7095=_0x5ae069;_0x949124[_0x4b7095(0x8f)]?_0x949124[_0x4b7095(0xe9)](_0x4b7095(0x91),()=>{const _0x2814ef=_0x4b7095;_0x27acb4(this[_0x2814ef(0xe2)]());}):_0x27acb4(this[_0x4b7095(0xe2)]());});}[_0x5aeec7(0xbf)](_0xc99f96,_0x59d7e0){const _0xd0504f=_0x5aeec7,_0x5a52f1=this[_0xd0504f(0xc6)][_0xd0504f(0xad)];this[_0xd0504f(0xcf)]=_0x59d7e0;for(const _0xa04c13 of _0xc99f96){const _0x395b98=_0x5a52f1[_0xd0504f(0xde)](_0xa04c13['id']);if(_0x395b98){if((_0xa04c13[_0xd0504f(0xf0)]||_0xa04c13[_0xd0504f(0xd3)])&&(_0xa04c13[_0xd0504f(0xa3)]=null),_0x395b98===this[_0xd0504f(0xc6)][_0xd0504f(0xc9)]){const _0x2a35be=Math[_0xd0504f(0xc3)](_0x395b98[_0xd0504f(0xd3)],_0xa04c13[_0xd0504f(0xd3)]),_0x25e245=Math[_0xd0504f(0xc3)](_0x395b98[_0xd0504f(0xf0)],_0xa04c13[_0xd0504f(0xf0)]);let _0x278774;_0x395b98[_0xd0504f(0xd3)]===_0xa04c13[_0xd0504f(0xd3)]&&_0x395b98[_0xd0504f(0xf0)]===_0xa04c13[_0xd0504f(0xf0)]?(_0x278774=!0x0,this[_0xd0504f(0xac)](_0xa04c13)):_0xa04c13[_0xd0504f(0xd3)]===_0x2a35be&&_0xa04c13[_0xd0504f(0xf0)]===_0x25e245?_0x278774=!0x1:(_0x395b98[_0xd0504f(0xd3)]===_0x2a35be&&_0x395b98[_0xd0504f(0xf0)]===_0x25e245||this[_0xd0504f(0xf9)]({'revision':_0x395b98,'from':_0x25e245,'to':_0x2a35be}),_0x278774=!0x0),_0x278774&&(delete _0xa04c13[_0xd0504f(0xf0)],delete _0xa04c13[_0xd0504f(0xd3)],delete _0xa04c13[_0xd0504f(0xa3)],delete _0xa04c13[_0xd0504f(0xec)],delete _0xa04c13[_0xd0504f(0x96)]);}this[_0xd0504f(0xc6)][_0xd0504f(0x92)](_0xa04c13),this[_0xd0504f(0xac)](_0xa04c13);}else this[_0xd0504f(0xc6)][_0xd0504f(0x9c)](_0xa04c13);}const _0x518d05=_0x5a52f1[_0xd0504f(0x9a)]();_0x518d05[_0xd0504f(0x90)]();for(let _0x59472f=0x0;_0x59472f<_0x518d05[_0xd0504f(0xfe)]-0x1;_0x59472f++){const _0x39d42e=_0x518d05[_0x59472f],_0x220112=_0x518d05[_0x59472f+0x1];if(_0x39d42e[_0xd0504f(0xf0)]<_0x220112[_0xd0504f(0xd3)]){const _0x1be173=_0x220112[_0xd0504f(0xd3)],_0x155588=Math[_0xd0504f(0xc3)](_0x1be173,_0x39d42e[_0xd0504f(0xd3)]);this[_0xd0504f(0xf9)]({'revision':_0x39d42e,'from':_0x1be173,'to':_0x155588});}}}[_0x5aeec7(0xf9)]({revision:_0x2be14e,from:_0x1f8ea5,to:_0x216603}={}){const _0x480cf9=_0x5aeec7,_0x3d2279=this[_0x480cf9(0xda)][_0x480cf9(0x9f)][_0x480cf9(0xbb)](_0x54578d),_0xd6643c=this[_0x480cf9(0xc6)][_0x480cf9(0x9b)]({'revision':_0x2be14e,'from':_0x1f8ea5,'to':_0x216603});_0xd6643c[_0x480cf9(0xe4)]=_0xd6643c[_0x480cf9(0x96)][_0x480cf9(0xae)](_0x526cf5=>_0x3d2279[_0x480cf9(0x94)](_0x526cf5)),_0x2be14e[_0x480cf9(0xe6)](_0xd6643c);}[_0x5aeec7(0xac)](_0x258f6f){const _0x4b0e8e=_0x5aeec7,_0x3a2aa3={};_0x3a2aa3['id']=_0x258f6f['id'];for(const _0x1b3c66 of Object[_0x4b0e8e(0xef)](_0x258f6f))'id'!==_0x1b3c66&&(_0x3a2aa3[_0x1b3c66]=void 0x0);this[_0x4b0e8e(0xc6)][_0x4b0e8e(0xd4)](_0x3a2aa3['id'],_0x3a2aa3,!0x0);}async[_0x5aeec7(0xbd)](_0x3430b9){const _0xfcb19b=_0x5aeec7,_0x3388bd=this[_0xfcb19b(0xda)][_0xfcb19b(0x9f)][_0xfcb19b(0xbb)](_0x54578d),{connection:_0x35fc51}=this[_0xfcb19b(0xda)][_0xfcb19b(0x9f)][_0xfcb19b(0xbb)](_0x4c4cf3),_0x2b1500=new Set();for(const _0xb035a2 of _0x3430b9){for(const _0x3d1682 of _0xb035a2[_0xfcb19b(0x96)])_0x19197c(_0x3d1682);_0xb035a2[_0xfcb19b(0xb0)]&&_0x19197c(_0xb035a2[_0xfcb19b(0xb0)]);}if(0x0===_0x2b1500[_0xfcb19b(0xdf)])return;const _0x598f91=await _0x75386a[_0xfcb19b(0xe8)](_0x35fc51,Array[_0xfcb19b(0x93)](_0x2b1500));for(const _0x2ffcc6 of _0x598f91)_0x3388bd[_0xfcb19b(0x94)](_0x2ffcc6['id'])||_0x3388bd[_0xfcb19b(0xea)](_0x2ffcc6);function _0x19197c(_0xb6f2cb){const _0x2314be=_0xfcb19b;_0x3388bd[_0x2314be(0x94)](_0xb6f2cb)||_0x2b1500[_0x2314be(0xfd)](_0xb6f2cb);}}}export{c as CloudServicesRevisionHistoryAdapter};function it(_0x5f59d4){const _0x2ad527=_0x5aeec7;return _0x5f59d4[_0x2ad527(0xdc)][_0x2ad527(0xd0)](_0x2ad527(0xab))||_0x5f59d4[_0x2ad527(0xdc)][_0x2ad527(0xd0)](_0x2ad527(0x97))||_0x5f59d4[_0x2ad527(0xdc)][_0x2ad527(0xd0)](_0x2ad527(0xcb));}
|
|
23
|
+
const _0x129bee=_0x1929;(function(_0x3b9658,_0x42dc0f){const _0x4d3200=_0x1929,_0x34d9a1=_0x3b9658();while(!![]){try{const _0x46372e=-parseInt(_0x4d3200(0xe0))/0x1+-parseInt(_0x4d3200(0x100))/0x2+parseInt(_0x4d3200(0xdd))/0x3*(-parseInt(_0x4d3200(0xb8))/0x4)+-parseInt(_0x4d3200(0xa6))/0x5+-parseInt(_0x4d3200(0xd3))/0x6+-parseInt(_0x4d3200(0xe6))/0x7*(-parseInt(_0x4d3200(0xd7))/0x8)+parseInt(_0x4d3200(0x113))/0x9;if(_0x46372e===_0x42dc0f)break;else _0x34d9a1['push'](_0x34d9a1['shift']());}catch(_0x376728){_0x34d9a1['push'](_0x34d9a1['shift']());}}}(_0xf074,0x7d765));import{Plugin as _0x3fb36d}from'ckeditor5/src/core.js';import{version as _0x5991de}from'ckeditor5/src/utils.js';function _0xf074(){const _0x4d0d76=['isPremiumPlugin','cloud-services-internal-error:\x20Request\x20timeout.','max','code','cloud-services-internal-error:\x20Not\x20connected.','1649244dLrIyj','getUser','_handleRevisionsUpdate','authors','_lastRequestId','change:_isPendingUpdate','RevisionTracker','revisionsUpdated','addRevisionData','init','plugins','RevisionHistory','reverse','connect','state','_offset','has','serverHistory','creatorId','24257988mJbFqj','cloudServices.bundleVersion','_bufferedUpdates','_getLatestVersionFromServerOperations','isBundleUploaded','createdAt','711170OZrmTi','currentRevision','_fixRevision','_preventResendingRevisionData','getMany','CloudServicesRevisionHistoryAdapter','remove','sendBufferedUpdates','_revisionTracker','map','_revisions','config','marker','affectsData','pluginName','getOperations','connected','CONNECTED','163384VzfaVV','400','data','_isConnected','addUser','keys','isEnabled','change:_isConnected','updateRevisions','catch','add','_update','getRevisions','_createCurrentRevision','message','get','listenTo','setSource','isEmptyCurrent','startsWith','fromVersion','collaboration.channelId','repository','size','toVersion','_fetchMissingUsers','then','2954172eZGJos','_bufferUpdate','isOfficialPlugin','reInit','1223568yQpCjw','length','_handleReconnectionError','adapter','connection','buildRevisionData','24lkYgfm','_revisionHistoryService','bind','1007237PusWCe','type','addToReconnectionStack','authorsIds','wrongRequestId','_isPendingUpdate','28NMxVJF','baseVersion','sessionId','destroy','_startingVersion','_oldOffset','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','RevisionHistoryService','getRevision','reconnect','from','_waitForServiceReady','diffData','once','setRevisionData','editor','off','_revisionDataBuilder','isConnected','_getLatestVersion','requires'];_0xf074=function(){return _0x4d0d76;};return _0xf074();}import{Users as _0x2b6994}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x1929(_0x308d69,_0x30d226){const _0xf0749f=_0xf074();return _0x1929=function(_0x1929be,_0x80a68a){_0x1929be=_0x1929be-0xa4;let _0x308133=_0xf0749f[_0x1929be];return _0x308133;},_0x1929(_0x308d69,_0x30d226);}import{RealTimeCollaborationClient as _0x1f3569}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x4efb77}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x52f0fd}from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x2b3d2c,RevisionHistoryService as _0x122830,User as _0x59a201,WEB_SOCKET_GATEWAY_STATES as _0x4b7d98}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';class c extends _0x3fb36d{static [_0x129bee(0xed)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x122830)());[_0x129bee(0x104)];[_0x129bee(0xae)];[_0x129bee(0xde)];[_0x129bee(0xeb)];static get[_0x129bee(0xfa)](){const _0x139bcc=_0x129bee;return[_0x4efb77,_0x1f3569,_0x139bcc(0x10b),_0x52f0fd,_0x2b6994];}static get[_0x129bee(0xb4)](){const _0x359f7e=_0x129bee;return _0x359f7e(0xab);}static get[_0x129bee(0xd5)](){return!0x0;}static get[_0x129bee(0xfb)](){return!0x0;}constructor(_0x36bad4){const _0x5e1c19=_0x129bee;super(_0x36bad4);const _0x400766=this[_0x5e1c19(0xf5)][_0x5e1c19(0xb1)][_0x5e1c19(0xc7)](_0x5e1c19(0xcd));this[_0x5e1c19(0x104)]=null,this[_0x5e1c19(0xae)]=this[_0x5e1c19(0xf5)][_0x5e1c19(0x10a)][_0x5e1c19(0xc7)](_0x5e1c19(0x106)),this[_0x5e1c19(0xde)]=new c[(_0x5e1c19(0xed))](_0x400766);}async[_0x129bee(0x109)](){const _0x1690e1=_0x129bee,_0x3a1963=this[_0x1690e1(0xf5)][_0x1690e1(0x10a)][_0x1690e1(0xc7)](_0x1f3569),_0x360cee=_0x3a1963[_0x1690e1(0x111)],_0x566dd3=this[_0x1690e1(0xf5)][_0x1690e1(0x10a)][_0x1690e1(0xc7)](_0x4efb77);this[_0x1690e1(0xae)][_0x1690e1(0xc9)]({'history':_0x360cee,'getLatestVersion':()=>this[_0x1690e1(0xf9)](),'getCurrentRevisionId':()=>_0x3a1963[_0x1690e1(0xe8)]});const _0x25aebd=this[_0x1690e1(0xf5)][_0x1690e1(0xb1)][_0x1690e1(0xc7)](_0x1690e1(0x114))||_0x5991de,_0xfcca8f=await _0x2b3d2c[_0x1690e1(0xa4)](_0x566dd3[_0x1690e1(0xdb)],_0x25aebd);this[_0x1690e1(0xf5)][_0x1690e1(0x10a)][_0x1690e1(0xc7)](_0x1690e1(0x10b))[_0x1690e1(0xda)]={'getRevision':async({revisionId:_0x3fbd0c})=>(await this[_0x1690e1(0xf1)](),await this[_0x1690e1(0xde)][_0x1690e1(0xee)](_0x3fbd0c)),'updateRevisions':async _0x50b194=>{const _0x527cae=_0x1690e1;await this[_0x527cae(0xf1)]();const _0x5d042e=this[_0x527cae(0xae)][_0x527cae(0xa7)];if(_0xfcca8f&&0x1===_0x50b194[_0x527cae(0xd8)]&&_0x50b194[0x0]['id']===_0x5d042e['id'])return _0x50b194;for(const _0x277df0 of _0x50b194)_0x277df0['id']===_0x5d042e['id']&&(_0x277df0[_0x527cae(0xca)]=_0x277df0[_0x527cae(0xcc)]===_0x277df0[_0x527cae(0xd0)]);return this[_0x527cae(0xde)][_0x527cae(0xc0)](_0x50b194,this[_0x527cae(0x104)])[_0x527cae(0xd2)](_0x343d2c=>(this[_0x527cae(0x104)]=_0x343d2c,_0x50b194))[_0x527cae(0xc1)](_0xcacad8=>{const _0x28e0d8=_0x527cae;if(P(_0xcacad8)||_0x28e0d8(0xb9)===_0xcacad8[_0x28e0d8(0xfe)]&&void 0x0!==_0xcacad8[_0x28e0d8(0xba)][_0x28e0d8(0xe4)]){for(const _0x1a977b of _0x50b194){!this[_0x28e0d8(0xae)][_0x28e0d8(0xce)][_0x28e0d8(0xee)](_0x1a977b['id'])||this[_0x28e0d8(0xae)][_0x28e0d8(0xd4)](_0x1a977b['id'],_0x1a977b,!0x1);}if(P(_0xcacad8))throw _0xcacad8;return _0x50b194;}throw _0xcacad8;});}},this[_0x1690e1(0xc8)](this[_0x1690e1(0xde)],_0x1690e1(0x107),(_0x494dcd,{revisionsData:_0x1b88fb,requestId:_0x270b2b})=>{const _0x1916b2=_0x1690e1;Math[_0x1916b2(0xfd)](..._0x1b88fb[_0x1916b2(0xaf)](_0x54186d=>_0x54186d[_0x1916b2(0xd0)]))>this[_0x1916b2(0x116)]()-0x1?this[_0x1916b2(0xf9)]()[_0x1916b2(0xd2)](()=>{const _0x6ba1a4=_0x1916b2;this[_0x6ba1a4(0x102)](_0x1b88fb,_0x270b2b);}):this[_0x1916b2(0x102)](_0x1b88fb,_0x270b2b);});const {revisions:_0x5688fc,requestId:_0x344619}=await this[_0x1690e1(0xde)][_0x1690e1(0x10d)](_0x566dd3[_0x1690e1(0xdb)]);_0x566dd3[_0x1690e1(0xe2)](this),this[_0x1690e1(0x104)]=_0x344619,await this[_0x1690e1(0xd1)](_0x5688fc);for(const _0x36b56b of _0x5688fc)this[_0x1690e1(0xae)][_0x1690e1(0x108)](_0x36b56b);this[_0x1690e1(0xc8)](_0x3a1963,_0x1690e1(0xbf),(_0x2bb482,_0x30d32e,_0x41f86e)=>{const _0x39e937=_0x1690e1;_0x41f86e&&(this[_0x39e937(0xeb)]=_0x3a1963[_0x39e937(0x10f)],_0x2bb482[_0x39e937(0xf6)]());}),this[_0x1690e1(0xae)][_0x1690e1(0xdf)](_0x1690e1(0xbe))['to'](_0x566dd3,_0x1690e1(0x10e),_0x158649=>_0x158649===_0x4b7d98[_0x1690e1(0xb7)]);}async[_0x129bee(0xef)](){const _0x5153f5=_0x129bee,_0x2d6b66=this[_0x5153f5(0xf5)][_0x5153f5(0x10a)][_0x5153f5(0xc7)](_0x4efb77),_0x276700=this[_0x5153f5(0xf5)][_0x5153f5(0x10a)][_0x5153f5(0xc7)](_0x1f3569),_0x549834=async()=>{const _0x3a4aea=_0x5153f5,_0x4084fd=this[_0x3a4aea(0xae)][_0x3a4aea(0xa7)],_0xb01262=_0x4084fd['id'],_0x2786d7=_0xb01262!==_0x276700[_0x3a4aea(0xe8)];if(_0x2786d7){const _0x3c4c52=_0x276700[_0x3a4aea(0x10f)]-this[_0x3a4aea(0xeb)],_0x29e69e=this[_0x3a4aea(0x116)]();this[_0x3a4aea(0xae)][_0x3a4aea(0xf7)][_0x3a4aea(0xd6)]();if(_0x4084fd[_0x3a4aea(0xd0)]+_0x3c4c52!==_0x29e69e){const _0x1aa245=_0x4084fd[_0x3a4aea(0xcc)]+_0x3c4c52,_0x5aae88=this[_0x3a4aea(0xf5)][_0x3a4aea(0x10a)][_0x3a4aea(0xc7)](_0x2b6994),_0x2caf8e=this[_0x3a4aea(0xae)][_0x3a4aea(0xdc)]({'revision':_0x4084fd,'from':_0x1aa245,'to':_0x29e69e});_0x2caf8e['id']=_0x4084fd['id'];const _0x1df79f=_0x2caf8e[_0x3a4aea(0xe3)][_0x3a4aea(0xaf)](_0x57683f=>_0x5aae88[_0x3a4aea(0x101)](_0x57683f));_0x4084fd[_0x3a4aea(0xc3)]({..._0x2caf8e,'authors':_0x1df79f},!0x0),this[_0x3a4aea(0xae)][_0x3a4aea(0xd4)](_0x4084fd['id'],_0x2caf8e,!0x0);}this[_0x3a4aea(0xae)][_0x3a4aea(0xea)]=_0x29e69e,(_0x4084fd[_0x3a4aea(0xd0)]===_0x4084fd[_0x3a4aea(0xcc)]&&!this[_0x3a4aea(0xae)][_0x3a4aea(0x115)][_0x3a4aea(0x110)](_0xb01262)&&this[_0x3a4aea(0xae)][_0x3a4aea(0xce)][_0x3a4aea(0xb0)][_0x3a4aea(0xac)](_0xb01262),this[_0x3a4aea(0xae)][_0x3a4aea(0xc5)](_0x29e69e));}const {revisions:_0x617c6e,requestId:_0x30d39c}=await this[_0x3a4aea(0xde)][_0x3a4aea(0xef)](_0x2d6b66[_0x3a4aea(0xdb)],this[_0x3a4aea(0x104)]);_0x2786d7&&_0x617c6e[_0x3a4aea(0xd8)]>0x0?_0x276700[_0x3a4aea(0xd9)]():(await this[_0x3a4aea(0xd1)](_0x617c6e),this[_0x3a4aea(0x102)](_0x617c6e,_0x30d39c),this[_0x3a4aea(0xae)][_0x3a4aea(0xad)]());};return _0x276700[_0x5153f5(0xbb)]?_0x549834():new Promise((_0x5470bf,_0x499439)=>{const _0x176de4=_0x5153f5;_0x276700[_0x176de4(0xf3)](_0x176de4(0xbf),()=>{const _0xa8da6c=_0x176de4;_0x549834()[_0xa8da6c(0xd2)](_0x5470bf)[_0xa8da6c(0xc1)](_0x499439);});});}[_0x129bee(0xe9)](){const _0xea5bb7=_0x129bee;super[_0xea5bb7(0xe9)]();}async[_0x129bee(0xf1)](){const _0xf92684=_0x129bee;this[_0xf92684(0xde)][_0xf92684(0xf8)]||await new Promise(_0x5debc4=>{const _0x1cb659=_0xf92684;this[_0x1cb659(0xc8)](this[_0x1cb659(0xde)],_0x1cb659(0xb6),_0x24d5b5=>{const _0x3c5ccb=_0x1cb659;_0x24d5b5[_0x3c5ccb(0xf6)](),_0x5debc4();});});}[_0x129bee(0x116)](){const _0x21fa53=_0x129bee,_0x2b472a=this[_0x21fa53(0xf5)][_0x21fa53(0x10a)][_0x21fa53(0xc7)](_0x1f3569)[_0x21fa53(0x111)][_0x21fa53(0xb5)]()[_0x21fa53(0x10c)]();for(const _0x3c4b2e of _0x2b472a)if(_0x21fa53(0xb2)!==_0x3c4b2e[_0x21fa53(0xe1)]||_0x3c4b2e[_0x21fa53(0xb3)])return _0x3c4b2e[_0x21fa53(0xe7)]+0x1;}[_0x129bee(0xf9)](){const _0x224874=_0x129bee,_0x3d374c=this[_0x224874(0xf5)][_0x224874(0x10a)][_0x224874(0xc7)](_0x1f3569);return new Promise(_0xd6e66=>{const _0x1c1b42=_0x224874;_0x3d374c[_0x1c1b42(0xe5)]?_0x3d374c[_0x1c1b42(0xf3)](_0x1c1b42(0x105),()=>{const _0x28a008=_0x1c1b42;_0xd6e66(this[_0x28a008(0x116)]());}):_0xd6e66(this[_0x1c1b42(0x116)]());});}[_0x129bee(0x102)](_0x400a02,_0x27044c){const _0x23c7a0=_0x129bee,_0x17315a=this[_0x23c7a0(0xae)][_0x23c7a0(0xce)];this[_0x23c7a0(0x104)]=_0x27044c;for(const _0xe14885 of _0x400a02){const _0x55a7fd=_0x17315a[_0x23c7a0(0xee)](_0xe14885['id']);if(_0x55a7fd){if((_0xe14885[_0x23c7a0(0xcc)]||_0xe14885[_0x23c7a0(0xd0)])&&(_0xe14885[_0x23c7a0(0xf2)]=null),_0x55a7fd===this[_0x23c7a0(0xae)][_0x23c7a0(0xa7)]){const _0x5441eb=Math[_0x23c7a0(0xfd)](_0x55a7fd[_0x23c7a0(0xd0)],_0xe14885[_0x23c7a0(0xd0)]),_0x18d3f9=Math[_0x23c7a0(0xfd)](_0x55a7fd[_0x23c7a0(0xcc)],_0xe14885[_0x23c7a0(0xcc)]);let _0x4439ab;_0x55a7fd[_0x23c7a0(0xd0)]===_0xe14885[_0x23c7a0(0xd0)]&&_0x55a7fd[_0x23c7a0(0xcc)]===_0xe14885[_0x23c7a0(0xcc)]?(_0x4439ab=!0x0,this[_0x23c7a0(0xa9)](_0xe14885)):_0xe14885[_0x23c7a0(0xd0)]===_0x5441eb&&_0xe14885[_0x23c7a0(0xcc)]===_0x18d3f9?_0x4439ab=!0x1:(_0x55a7fd[_0x23c7a0(0xd0)]===_0x5441eb&&_0x55a7fd[_0x23c7a0(0xcc)]===_0x18d3f9||this[_0x23c7a0(0xa8)]({'revision':_0x55a7fd,'from':_0x18d3f9,'to':_0x5441eb}),_0x4439ab=!0x0),_0x4439ab&&(delete _0xe14885[_0x23c7a0(0xcc)],delete _0xe14885[_0x23c7a0(0xd0)],delete _0xe14885[_0x23c7a0(0xf2)],delete _0xe14885[_0x23c7a0(0xa5)],delete _0xe14885[_0x23c7a0(0xe3)]);}this[_0x23c7a0(0xae)][_0x23c7a0(0xf4)](_0xe14885),this[_0x23c7a0(0xa9)](_0xe14885);}else this[_0x23c7a0(0xae)][_0x23c7a0(0x108)](_0xe14885);}const _0x3acd36=_0x17315a[_0x23c7a0(0xc4)]();_0x3acd36[_0x23c7a0(0x10c)]();for(let _0x1fa485=0x0;_0x1fa485<_0x3acd36[_0x23c7a0(0xd8)]-0x1;_0x1fa485++){const _0x25f880=_0x3acd36[_0x1fa485],_0x4446ff=_0x3acd36[_0x1fa485+0x1];if(_0x25f880[_0x23c7a0(0xcc)]<_0x4446ff[_0x23c7a0(0xd0)]){const _0x1f1477=_0x4446ff[_0x23c7a0(0xd0)],_0xbb5e6c=Math[_0x23c7a0(0xfd)](_0x1f1477,_0x25f880[_0x23c7a0(0xd0)]);this[_0x23c7a0(0xa8)]({'revision':_0x25f880,'from':_0x1f1477,'to':_0xbb5e6c});}}}[_0x129bee(0xa8)]({revision:_0x36e36d,from:_0x1bac63,to:_0x357abb}={}){const _0x57b5ca=_0x129bee,_0x2aabe5=this[_0x57b5ca(0xf5)][_0x57b5ca(0x10a)][_0x57b5ca(0xc7)](_0x2b6994),_0x119d87=this[_0x57b5ca(0xae)][_0x57b5ca(0xdc)]({'revision':_0x36e36d,'from':_0x1bac63,'to':_0x357abb});_0x119d87[_0x57b5ca(0x103)]=_0x119d87[_0x57b5ca(0xe3)][_0x57b5ca(0xaf)](_0x108b04=>_0x2aabe5[_0x57b5ca(0x101)](_0x108b04)),_0x36e36d[_0x57b5ca(0xc3)](_0x119d87);}[_0x129bee(0xa9)](_0xdeebe0){const _0x125db6=_0x129bee,_0x1facb8={};_0x1facb8['id']=_0xdeebe0['id'];for(const _0xd3a0b4 of Object[_0x125db6(0xbd)](_0xdeebe0))'id'!==_0xd3a0b4&&(_0x1facb8[_0xd3a0b4]=void 0x0);this[_0x125db6(0xae)][_0x125db6(0xd4)](_0x1facb8['id'],_0x1facb8,!0x0);}async[_0x129bee(0xd1)](_0x3d66ed){const _0x903b0=_0x129bee,_0x1afdfe=this[_0x903b0(0xf5)][_0x903b0(0x10a)][_0x903b0(0xc7)](_0x2b6994),{connection:_0xb835d2}=this[_0x903b0(0xf5)][_0x903b0(0x10a)][_0x903b0(0xc7)](_0x4efb77),_0x2ac1c9=new Set();for(const _0x2524ea of _0x3d66ed){for(const _0x1d1641 of _0x2524ea[_0x903b0(0xe3)])_0x4a0b21(_0x1d1641);_0x2524ea[_0x903b0(0x112)]&&_0x4a0b21(_0x2524ea[_0x903b0(0x112)]);}if(0x0===_0x2ac1c9[_0x903b0(0xcf)])return;const _0x321f5b=await _0x59a201[_0x903b0(0xaa)](_0xb835d2,Array[_0x903b0(0xf0)](_0x2ac1c9));for(const _0x53de54 of _0x321f5b)_0x1afdfe[_0x903b0(0x101)](_0x53de54['id'])||_0x1afdfe[_0x903b0(0xbc)](_0x53de54);function _0x4a0b21(_0x515974){const _0x24ea95=_0x903b0;_0x1afdfe[_0x24ea95(0x101)](_0x515974)||_0x2ac1c9[_0x24ea95(0xc2)](_0x515974);}}}export{c as CloudServicesRevisionHistoryAdapter};function P(_0x4c511f){const _0x1f9eb1=_0x129bee;return _0x4c511f[_0x1f9eb1(0xc6)][_0x1f9eb1(0xcb)](_0x1f9eb1(0xec))||_0x4c511f[_0x1f9eb1(0xc6)][_0x1f9eb1(0xcb)](_0x1f9eb1(0xff))||_0x4c511f[_0x1f9eb1(0xc6)][_0x1f9eb1(0xcb)](_0x1f9eb1(0xfc));}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>
|
|
23
|
+
const _0x514acd=_0x3d6a;(function(_0x3144e3,_0x3ec5c2){const _0x35041b=_0x3d6a,_0x2ba013=_0x3144e3();while(!![]){try{const _0x3e90ce=-parseInt(_0x35041b(0x165))/0x1*(-parseInt(_0x35041b(0x186))/0x2)+parseInt(_0x35041b(0x169))/0x3*(parseInt(_0x35041b(0x185))/0x4)+-parseInt(_0x35041b(0x160))/0x5*(-parseInt(_0x35041b(0x194))/0x6)+parseInt(_0x35041b(0x16f))/0x7+-parseInt(_0x35041b(0x174))/0x8*(-parseInt(_0x35041b(0x18f))/0x9)+-parseInt(_0x35041b(0x189))/0xa*(parseInt(_0x35041b(0x179))/0xb)+-parseInt(_0x35041b(0x193))/0xc;if(_0x3e90ce===_0x3ec5c2)break;else _0x2ba013['push'](_0x2ba013['shift']());}catch(_0xd9cc6b){_0x2ba013['push'](_0x2ba013['shift']());}}}(_0x12b3,0x465d3));import{Plugin as _0x236088}from'ckeditor5/src/core.js';function _0x12b3(){const _0x51d372=['addSuggestionData','data','70820ZIlwqC','update','cloud-services-internal-error:\x20Not\x20connected.','requires','TrackChangesEditing','set','841401lSvNoE','then','size','plugins','9374820zuTSJK','1476ZZjdJY','state','getMany','hasSuggestion','connected','adapter','addToReconnectionStack','getUser','message','originalSuggestionId','CloudServicesTrackChangesAdapter','isPremiumPlugin','_trackChangesService','cloud-services-internal-error:\x20Request\x20timeout.','9615CdGXia','get','TrackChangesService','collaboration.channelId','_saved','28KGboeB','startsWith','pluginName','_waitForServiceReady','3PwDEvX','isConnected','listenTo','type','from','catch','1426327JTnnka','off','add','getSuggestion','attributes','8gKQiug','_bufferedRequests','open','connect','editor','418aAxmJn','isOfficialPlugin','addUser','connection','init','config','reconnect','find','suggestionUpdated','_fetchMissingUsersForThreads','delete','values','1580968FbBOha','12358nfIukR'];_0x12b3=function(){return _0x51d372;};return _0x12b3();}function _0x3d6a(_0x1f75b7,_0x345c93){const _0x12b348=_0x12b3();return _0x3d6a=function(_0x3d6ad5,_0x367328){_0x3d6ad5=_0x3d6ad5-0x155;let _0x3ee292=_0x12b348[_0x3d6ad5];return _0x3ee292;},_0x3d6a(_0x1f75b7,_0x345c93);}import{User as _0x3350b4,TrackChangesService as _0x1636b8}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x5d73d0}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0x511642}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x14cb53}from'ckeditor5-collaboration/src/collaboration-core.js';class m extends _0x236088{static [_0x514acd(0x162)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x1636b8)());[_0x514acd(0x175)];[_0x514acd(0x15e)];static get[_0x514acd(0x18c)](){const _0x457550=_0x514acd;return[_0x511642,_0x457550(0x18d),_0x5d73d0];}static get[_0x514acd(0x167)](){const _0x4990fb=_0x514acd;return _0x4990fb(0x15c);}static get[_0x514acd(0x17a)](){return!0x0;}static get[_0x514acd(0x15d)](){return!0x0;}constructor(_0x1d5fd1){const _0x4507b9=_0x514acd;super(_0x1d5fd1);const _0x5378f6=this[_0x4507b9(0x178)][_0x4507b9(0x17e)][_0x4507b9(0x161)](_0x4507b9(0x163));this[_0x4507b9(0x175)]=new Map(),this[_0x4507b9(0x15e)]=new m[(_0x4507b9(0x162))](_0x5378f6);}[_0x514acd(0x17d)](){const _0xdccaae=_0x514acd,_0x294c6b=this[_0xdccaae(0x178)][_0xdccaae(0x192)][_0xdccaae(0x161)](_0x5d73d0),_0xa6c6ad=this[_0xdccaae(0x178)][_0xdccaae(0x192)][_0xdccaae(0x161)](_0xdccaae(0x18d));return _0xa6c6ad[_0xdccaae(0x157)]={'getSuggestion':async _0x57a446=>{const _0x31ef01=_0xdccaae;await this[_0x31ef01(0x168)]();const _0x54d367=await this[_0x31ef01(0x15e)][_0x31ef01(0x161)](_0x57a446)[_0x31ef01(0x16e)](B);return await this[_0x31ef01(0x182)]([_0x54d367]),_0x54d367;},'addSuggestion':async({id:_0x596acf,type:_0x49f77e,data:_0x4eede0,originalSuggestionId:_0x3ca69e,attributes:_0x1de694})=>{const _0x371650=_0xdccaae;await this[_0x371650(0x168)]();const _0x3654b5={'id':_0x596acf,'type':_0x49f77e,'data':_0x4eede0,'originalSuggestionId':_0x3ca69e,'attributes':_0x1de694},_0x4b3c6f=await this[_0x371650(0x15e)][_0x371650(0x171)](_0x596acf,_0x49f77e,_0x4eede0,_0x3ca69e,_0x1de694)[_0x371650(0x16e)](_0x5a419a=>{if(P(_0x5a419a))return new Promise(_0x32e692=>{const _0x5944d9=_0x3d6a;this[_0x5944d9(0x175)][_0x5944d9(0x18e)](_0x596acf,{'resolve':_0x32e692,'suggestionData':_0x3654b5});});throw _0x5a419a;});return this[_0x371650(0x175)][_0x371650(0x183)](_0x596acf),_0x4b3c6f;},'updateSuggestion':async(_0x32acac,_0x57a3b8)=>{const _0x43b4a3=_0xdccaae;if(await this[_0x43b4a3(0x168)](),_0x43b4a3(0x176)!==_0x57a3b8[_0x43b4a3(0x195)])return this[_0x43b4a3(0x15e)][_0x43b4a3(0x18a)](_0x32acac,_0x57a3b8)[_0x43b4a3(0x16e)](B);}},this[_0xdccaae(0x16b)](this[_0xdccaae(0x15e)],_0xdccaae(0x181),(_0xdb5d24,_0x1d7906)=>{const _0x5007fd=_0xdccaae;_0xa6c6ad[_0x5007fd(0x155)](_0x1d7906['id'])&&(_0xa6c6ad[_0x5007fd(0x172)](_0x1d7906['id'])[_0x5007fd(0x173)]=_0x1d7906[_0x5007fd(0x173)]);}),this[_0xdccaae(0x15e)][_0xdccaae(0x177)](_0x294c6b[_0xdccaae(0x17c)])[_0xdccaae(0x190)](_0x348e42=>(_0x294c6b[_0xdccaae(0x158)](this),this[_0xdccaae(0x182)](_0x348e42)[_0xdccaae(0x190)](()=>{const _0x31cc62=_0xdccaae;for(const _0x462d05 of _0x348e42){_0xa6c6ad[_0x31cc62(0x187)](_0x462d05)[_0x31cc62(0x164)]=!0x0;}})));}async[_0x514acd(0x17f)](){const _0x322c98=_0x514acd,_0x451ce8=this[_0x322c98(0x178)][_0x322c98(0x192)][_0x322c98(0x161)](_0x322c98(0x18d)),{connection:_0x5b933c}=this[_0x322c98(0x178)][_0x322c98(0x192)][_0x322c98(0x161)](_0x5d73d0),_0x5a038d=await this[_0x322c98(0x15e)][_0x322c98(0x177)](_0x5b933c);await this[_0x322c98(0x182)](_0x5a038d);for(const {suggestionData:_0xc652ff,resolve:_0x5ea92a}of this[_0x322c98(0x175)][_0x322c98(0x184)]()){let _0x2291e2=_0x5a038d[_0x322c98(0x180)](_0x136f55=>_0x136f55['id']===_0xc652ff['id']);_0x2291e2||(_0x2291e2=await this[_0x322c98(0x15e)][_0x322c98(0x171)](_0xc652ff['id'],_0xc652ff[_0x322c98(0x16c)],_0xc652ff[_0x322c98(0x188)],_0xc652ff[_0x322c98(0x15b)])),_0x5ea92a(_0x2291e2);}for(const _0x6e5c12 of _0x5a038d)_0x451ce8[_0x322c98(0x155)](_0x6e5c12['id'])||_0x451ce8[_0x322c98(0x187)](_0x6e5c12);}async[_0x514acd(0x168)](){const _0x5fd040=_0x514acd;this[_0x5fd040(0x15e)][_0x5fd040(0x16a)]||await new Promise(_0x506d2d=>{const _0x3ff857=_0x5fd040;this[_0x3ff857(0x16b)](this[_0x3ff857(0x15e)],_0x3ff857(0x156),_0x34ecc8=>{const _0x53c31d=_0x3ff857;_0x34ecc8[_0x53c31d(0x170)](),_0x506d2d();});});}async[_0x514acd(0x182)](_0x44ab97){const _0xb8f153=_0x514acd,_0x2b0b2b=this[_0xb8f153(0x178)][_0xb8f153(0x192)][_0xb8f153(0x161)](_0x14cb53),{connection:_0x394dfb}=this[_0xb8f153(0x178)][_0xb8f153(0x192)][_0xb8f153(0x161)](_0x5d73d0),_0x4bfcb9=new Set();for(const {authorId:_0x7830df}of _0x44ab97)_0x2b0b2b[_0xb8f153(0x159)](_0x7830df)||_0x4bfcb9[_0xb8f153(0x171)](_0x7830df);if(0x0===_0x4bfcb9[_0xb8f153(0x191)])return;const _0x8921f=await _0x3350b4[_0xb8f153(0x196)](_0x394dfb,Array[_0xb8f153(0x16d)](_0x4bfcb9));for(const _0x52b55d of _0x8921f)_0x2b0b2b[_0xb8f153(0x159)](_0x52b55d['id'])||_0x2b0b2b[_0xb8f153(0x17b)](_0x52b55d);}}export{m as CloudServicesTrackChangesAdapter};function B(_0x2346dc){if(P(_0x2346dc))return new Promise(()=>{});throw _0x2346dc;}function P(_0x312b6a){const _0x4c2d07=_0x514acd;return _0x312b6a[_0x4c2d07(0x15a)][_0x4c2d07(0x166)](_0x4c2d07(0x18b))||_0x312b6a[_0x4c2d07(0x15a)][_0x4c2d07(0x166)](_0x4c2d07(0x15f));}
|