@ckeditor/ckeditor5-real-time-collaboration 46.0.1-alpha.11 → 46.0.1-alpha.13

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.
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2c83(){const _0x18833d=['RevisionHistory','buildRevisionData','sessionId','179464yIxbez','_handleRevisionsUpdate','_revisionTracker','_waitForServiceReady','2178hHhRJj','_revisionDataBuilder','2916441HcDtrC','isConnected','toVersion','fromVersion','isPremiumPlugin','_getLatestVersionFromServerOperations','cloud-services-internal-error:\x20Request\x20timeout.','sendBufferedUpdates','cloudServices.bundleVersion','authorsIds','_oldOffset','requires','baseVersion','addRevisionData','4HgbGIv','getMany','isEnabled','addToReconnectionStack','updateRevisions','size','then','plugins','adapter','isOfficialPlugin','_bufferedUpdates','248eaPdHJ','97505HGPRQM','getUser','collaboration.channelId','startsWith','_bufferUpdate','serverHistory','addUser','map','setSource','1570vwrZIm','getRevisions','reverse','type','off','code','listenTo','message','data','creatorId','revisionsUpdated','CONNECTED','_startingVersion','currentRevision','_isPendingUpdate','connected','isBundleUploaded','pluginName','add','connect','change:_isPendingUpdate','reInit','getRevision','has','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','isEmptyCurrent','RevisionTracker','_lastRequestId','max','connection','length','_isConnected','400','state','once','622153sKJdLB','marker','remove','_revisions','get','RevisionHistoryService','262479NSYsJr','cloud-services-internal-error:\x20Not\x20connected.','repository','_createCurrentRevision','affectsData','_fixRevision','_preventResendingRevisionData','from','_fetchMissingUsers','bind','keys','_handleReconnectionError','6LHDbDs','CloudServicesRevisionHistoryAdapter','1187WUevBE','_getLatestVersion','editor','catch','getOperations','_revisionHistoryService','reconnect','createdAt','diffData','setRevisionData','wrongRequestId','change:_isConnected','authors','init','config','_update','_offset','destroy'];_0x2c83=function(){return _0x18833d;};return _0x2c83();}const _0x4abd1f=_0x2e4a;(function(_0x5b648d,_0x885c83){const _0x2cb284=_0x2e4a,_0x64f4be=_0x5b648d();while(!![]){try{const _0x1b0fcc=-parseInt(_0x2cb284(0x104))/0x1*(parseInt(_0x2cb284(0xc3))/0x2)+-parseInt(_0x2cb284(0xf6))/0x3+parseInt(_0x2cb284(0x12d))/0x4*(-parseInt(_0x2cb284(0xc4))/0x5)+parseInt(_0x2cb284(0x102))/0x6*(parseInt(_0x2cb284(0xf0))/0x7)+-parseInt(_0x2cb284(0x119))/0x8+-parseInt(_0x2cb284(0x11d))/0x9*(-parseInt(_0x2cb284(0xcd))/0xa)+parseInt(_0x2cb284(0x11f))/0xb;if(_0x1b0fcc===_0x885c83)break;else _0x64f4be['push'](_0x64f4be['shift']());}catch(_0x5d5936){_0x64f4be['push'](_0x64f4be['shift']());}}}(_0x2c83,0x1c2bd));import{Plugin as _0x1d324d}from'ckeditor5/src/core.js';import{version as _0x167f7c}from'ckeditor5/src/utils.js';import{Users as _0x2349c6}from'ckeditor5-collaboration/src/collaboration-core.js';import{RealTimeCollaborationClient as _0x404827}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x4f19b7}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x339ae0}from'../realtimecollaborativeediting/sessions.js';function _0x2e4a(_0x40ec5f,_0x209438){const _0x2c8359=_0x2c83();return _0x2e4a=function(_0x2e4aba,_0x5039ba){_0x2e4aba=_0x2e4aba-0xbd;let _0x488bb0=_0x2c8359[_0x2e4aba];return _0x488bb0;},_0x2e4a(_0x40ec5f,_0x209438);}import{EditorService as _0x330022,RevisionHistoryService as _0x528cc6,User as _0x23ced7,WEB_SOCKET_GATEWAY_STATES as _0x3ea0c0}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';class c extends _0x1d324d{static [_0x4abd1f(0xf5)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x528cc6)());[_0x4abd1f(0xe8)];[_0x4abd1f(0x11b)];[_0x4abd1f(0x109)];[_0x4abd1f(0x129)];static get[_0x4abd1f(0x12a)](){const _0x5389b3=_0x4abd1f;return[_0x4f19b7,_0x404827,_0x5389b3(0x116),_0x339ae0,_0x2349c6];}static get[_0x4abd1f(0xde)](){const _0x5bda80=_0x4abd1f;return _0x5bda80(0x103);}static get[_0x4abd1f(0xc1)](){return!0x0;}static get[_0x4abd1f(0x123)](){return!0x0;}constructor(_0x31ca84){const _0x4c3b1f=_0x4abd1f;super(_0x31ca84);const _0x125c07=this[_0x4c3b1f(0x106)][_0x4c3b1f(0x112)][_0x4c3b1f(0xf4)](_0x4c3b1f(0xc6));this[_0x4c3b1f(0xe8)]=null,this[_0x4c3b1f(0x11b)]=this[_0x4c3b1f(0x106)][_0x4c3b1f(0xbf)][_0x4c3b1f(0xf4)](_0x4c3b1f(0xe7)),this[_0x4c3b1f(0x109)]=new c[(_0x4c3b1f(0xf5))](_0x125c07);}async[_0x4abd1f(0x111)](){const _0x3c56a1=_0x4abd1f,_0xc304a4=this[_0x3c56a1(0x106)][_0x3c56a1(0xbf)][_0x3c56a1(0xf4)](_0x404827),_0x48bc9f=_0xc304a4[_0x3c56a1(0xc9)],_0x1e6229=this[_0x3c56a1(0x106)][_0x3c56a1(0xbf)][_0x3c56a1(0xf4)](_0x4f19b7);this[_0x3c56a1(0x11b)][_0x3c56a1(0xcc)]({'history':_0x48bc9f,'getLatestVersion':()=>this[_0x3c56a1(0x105)](),'getCurrentRevisionId':()=>_0xc304a4[_0x3c56a1(0x118)]});const _0x9fc0c2=this[_0x3c56a1(0x106)][_0x3c56a1(0x112)][_0x3c56a1(0xf4)](_0x3c56a1(0x127))||_0x167f7c,_0x124750=await _0x330022[_0x3c56a1(0xdd)](_0x1e6229[_0x3c56a1(0xea)],_0x9fc0c2);this[_0x3c56a1(0x106)][_0x3c56a1(0xbf)][_0x3c56a1(0xf4)](_0x3c56a1(0x116))[_0x3c56a1(0xc0)]={'getRevision':async({revisionId:_0xa6105b})=>(await this[_0x3c56a1(0x11c)](),await this[_0x3c56a1(0x109)][_0x3c56a1(0xe3)](_0xa6105b)),'updateRevisions':async _0x1b3ecc=>{const _0x152258=_0x3c56a1;await this[_0x152258(0x11c)]();const _0x11e618=this[_0x152258(0x11b)][_0x152258(0xda)];if(_0x124750&&0x1===_0x1b3ecc[_0x152258(0xeb)]&&_0x1b3ecc[0x0]['id']===_0x11e618['id'])return _0x1b3ecc;for(const _0x523e54 of _0x1b3ecc)_0x523e54['id']===_0x11e618['id']&&(_0x523e54[_0x152258(0xe6)]=_0x523e54[_0x152258(0x122)]===_0x523e54[_0x152258(0x121)]);return this[_0x152258(0x109)][_0x152258(0x131)](_0x1b3ecc,this[_0x152258(0xe8)])[_0x152258(0xbe)](_0x370b17=>(this[_0x152258(0xe8)]=_0x370b17,_0x1b3ecc))[_0x152258(0x107)](_0x119229=>{const _0x2fda12=_0x152258;if(q(_0x119229)||_0x2fda12(0xed)===_0x119229[_0x2fda12(0xd2)]&&void 0x0!==_0x119229[_0x2fda12(0xd5)][_0x2fda12(0x10e)]){for(const _0x3bf608 of _0x1b3ecc){!this[_0x2fda12(0x11b)][_0x2fda12(0xf8)][_0x2fda12(0xe3)](_0x3bf608['id'])||this[_0x2fda12(0x11b)][_0x2fda12(0xc8)](_0x3bf608['id'],_0x3bf608,!0x1);}if(q(_0x119229))throw _0x119229;return _0x1b3ecc;}throw _0x119229;});}},this[_0x3c56a1(0xd3)](this[_0x3c56a1(0x109)],_0x3c56a1(0xd7),(_0x2f7d8f,{revisionsData:_0x553775,requestId:_0x3dc326})=>{const _0x58c27c=_0x3c56a1;Math[_0x58c27c(0xe9)](..._0x553775[_0x58c27c(0xcb)](_0x17c3a7=>_0x17c3a7[_0x58c27c(0x121)]))>this[_0x58c27c(0x124)]()-0x1?this[_0x58c27c(0x105)]()[_0x58c27c(0xbe)](()=>{const _0x51c9a2=_0x58c27c;this[_0x51c9a2(0x11a)](_0x553775,_0x3dc326);}):this[_0x58c27c(0x11a)](_0x553775,_0x3dc326);});const {revisions:_0x20f2a6,requestId:_0x2aaa23}=await this[_0x3c56a1(0x109)][_0x3c56a1(0xe0)](_0x1e6229[_0x3c56a1(0xea)]);_0x1e6229[_0x3c56a1(0x130)](this),this[_0x3c56a1(0xe8)]=_0x2aaa23,await this[_0x3c56a1(0xfe)](_0x20f2a6);for(const _0x178280 of _0x20f2a6)this[_0x3c56a1(0x11b)][_0x3c56a1(0x12c)](_0x178280);this[_0x3c56a1(0xd3)](_0xc304a4,_0x3c56a1(0x10f),(_0xd771d3,_0x529969,_0x12be9d)=>{const _0x4ce3d9=_0x3c56a1;_0x12be9d&&(this[_0x4ce3d9(0x129)]=_0xc304a4[_0x4ce3d9(0x114)],_0xd771d3[_0x4ce3d9(0xd1)]());}),this[_0x3c56a1(0x11b)][_0x3c56a1(0xff)](_0x3c56a1(0x12f))['to'](_0x1e6229,_0x3c56a1(0xee),_0x23b3ee=>_0x23b3ee===_0x3ea0c0[_0x3c56a1(0xd8)]);}async[_0x4abd1f(0x10a)](){const _0x453460=_0x4abd1f,_0x1a1eb1=this[_0x453460(0x106)][_0x453460(0xbf)][_0x453460(0xf4)](_0x4f19b7),_0x2d35dc=this[_0x453460(0x106)][_0x453460(0xbf)][_0x453460(0xf4)](_0x404827),_0x528918=async()=>{const _0x37284e=_0x453460,_0x25dccf=this[_0x37284e(0x11b)][_0x37284e(0xda)],_0x1614fa=_0x25dccf['id'],_0x21a1b7=_0x1614fa!==_0x2d35dc[_0x37284e(0x118)];if(_0x21a1b7){const _0x417789=_0x2d35dc[_0x37284e(0x114)]-this[_0x37284e(0x129)],_0x5a68ef=this[_0x37284e(0x124)]();this[_0x37284e(0x11b)][_0x37284e(0x11e)][_0x37284e(0xe2)]();if(_0x25dccf[_0x37284e(0x121)]+_0x417789!==_0x5a68ef){const _0x571bf3=_0x25dccf[_0x37284e(0x122)]+_0x417789,_0x5ea0fd=this[_0x37284e(0x106)][_0x37284e(0xbf)][_0x37284e(0xf4)](_0x2349c6),_0x3b6751=this[_0x37284e(0x11b)][_0x37284e(0x117)]({'revision':_0x25dccf,'from':_0x571bf3,'to':_0x5a68ef});_0x3b6751['id']=_0x25dccf['id'];const _0x1aa7a1=_0x3b6751[_0x37284e(0x128)][_0x37284e(0xcb)](_0x2b487d=>_0x5ea0fd[_0x37284e(0xc5)](_0x2b487d));_0x25dccf[_0x37284e(0x113)]({..._0x3b6751,'authors':_0x1aa7a1},!0x0),this[_0x37284e(0x11b)][_0x37284e(0xc8)](_0x25dccf['id'],_0x3b6751,!0x0);}this[_0x37284e(0x11b)][_0x37284e(0xd9)]=_0x5a68ef,(_0x25dccf[_0x37284e(0x121)]===_0x25dccf[_0x37284e(0x122)]&&!this[_0x37284e(0x11b)][_0x37284e(0xc2)][_0x37284e(0xe4)](_0x1614fa)&&this[_0x37284e(0x11b)][_0x37284e(0xf8)][_0x37284e(0xf3)][_0x37284e(0xf2)](_0x1614fa),this[_0x37284e(0x11b)][_0x37284e(0xf9)](_0x5a68ef));}const {revisions:_0x41cb90,requestId:_0x311f31}=await this[_0x37284e(0x109)][_0x37284e(0x10a)](_0x1a1eb1[_0x37284e(0xea)],this[_0x37284e(0xe8)]);_0x21a1b7&&_0x41cb90[_0x37284e(0xeb)]>0x0?_0x2d35dc[_0x37284e(0x101)]():(await this[_0x37284e(0xfe)](_0x41cb90),this[_0x37284e(0x11a)](_0x41cb90,_0x311f31),this[_0x37284e(0x11b)][_0x37284e(0x126)]());};return _0x2d35dc[_0x453460(0xec)]?_0x528918():new Promise((_0x41ca99,_0x24a413)=>{const _0x4eb723=_0x453460;_0x2d35dc[_0x4eb723(0xef)](_0x4eb723(0x10f),()=>{const _0xf05dd8=_0x4eb723;_0x528918()[_0xf05dd8(0xbe)](_0x41ca99)[_0xf05dd8(0x107)](_0x24a413);});});}[_0x4abd1f(0x115)](){const _0x9894bd=_0x4abd1f;super[_0x9894bd(0x115)]();}async[_0x4abd1f(0x11c)](){const _0x165360=_0x4abd1f;this[_0x165360(0x109)][_0x165360(0x120)]||await new Promise(_0xf227d0=>{const _0x357037=_0x165360;this[_0x357037(0xd3)](this[_0x357037(0x109)],_0x357037(0xdc),_0x2fb458=>{const _0x3a4b58=_0x357037;_0x2fb458[_0x3a4b58(0xd1)](),_0xf227d0();});});}[_0x4abd1f(0x124)](){const _0x2f37d1=_0x4abd1f,_0x5d8b59=this[_0x2f37d1(0x106)][_0x2f37d1(0xbf)][_0x2f37d1(0xf4)](_0x404827)[_0x2f37d1(0xc9)][_0x2f37d1(0x108)]()[_0x2f37d1(0xcf)]();for(const _0x363a19 of _0x5d8b59)if(_0x2f37d1(0xf1)!==_0x363a19[_0x2f37d1(0xd0)]||_0x363a19[_0x2f37d1(0xfa)])return _0x363a19[_0x2f37d1(0x12b)]+0x1;}[_0x4abd1f(0x105)](){const _0x33f814=_0x4abd1f,_0x4e6eb7=this[_0x33f814(0x106)][_0x33f814(0xbf)][_0x33f814(0xf4)](_0x404827);return new Promise(_0x7450e7=>{const _0x160e37=_0x33f814;_0x4e6eb7[_0x160e37(0xdb)]?_0x4e6eb7[_0x160e37(0xef)](_0x160e37(0xe1),()=>{const _0x42673b=_0x160e37;_0x7450e7(this[_0x42673b(0x124)]());}):_0x7450e7(this[_0x160e37(0x124)]());});}[_0x4abd1f(0x11a)](_0x6af98d,_0x2a3029){const _0x4fcaeb=_0x4abd1f,_0x29aa24=this[_0x4fcaeb(0x11b)][_0x4fcaeb(0xf8)];this[_0x4fcaeb(0xe8)]=_0x2a3029;for(const _0x32106b of _0x6af98d){const _0x206366=_0x29aa24[_0x4fcaeb(0xe3)](_0x32106b['id']);if(_0x206366){if((_0x32106b[_0x4fcaeb(0x122)]||_0x32106b[_0x4fcaeb(0x121)])&&(_0x32106b[_0x4fcaeb(0x10c)]=null),_0x206366===this[_0x4fcaeb(0x11b)][_0x4fcaeb(0xda)]){const _0x2e5b09=Math[_0x4fcaeb(0xe9)](_0x206366[_0x4fcaeb(0x121)],_0x32106b[_0x4fcaeb(0x121)]),_0xf81604=Math[_0x4fcaeb(0xe9)](_0x206366[_0x4fcaeb(0x122)],_0x32106b[_0x4fcaeb(0x122)]);let _0xe7bf94;_0x206366[_0x4fcaeb(0x121)]===_0x32106b[_0x4fcaeb(0x121)]&&_0x206366[_0x4fcaeb(0x122)]===_0x32106b[_0x4fcaeb(0x122)]?(_0xe7bf94=!0x0,this[_0x4fcaeb(0xfc)](_0x32106b)):_0x32106b[_0x4fcaeb(0x121)]===_0x2e5b09&&_0x32106b[_0x4fcaeb(0x122)]===_0xf81604?_0xe7bf94=!0x1:(_0x206366[_0x4fcaeb(0x121)]===_0x2e5b09&&_0x206366[_0x4fcaeb(0x122)]===_0xf81604||this[_0x4fcaeb(0xfb)]({'revision':_0x206366,'from':_0xf81604,'to':_0x2e5b09}),_0xe7bf94=!0x0),_0xe7bf94&&(delete _0x32106b[_0x4fcaeb(0x122)],delete _0x32106b[_0x4fcaeb(0x121)],delete _0x32106b[_0x4fcaeb(0x10c)],delete _0x32106b[_0x4fcaeb(0x10b)],delete _0x32106b[_0x4fcaeb(0x128)]);}this[_0x4fcaeb(0x11b)][_0x4fcaeb(0x10d)](_0x32106b),this[_0x4fcaeb(0xfc)](_0x32106b);}else this[_0x4fcaeb(0x11b)][_0x4fcaeb(0x12c)](_0x32106b);}const _0x3e3324=_0x29aa24[_0x4fcaeb(0xce)]();_0x3e3324[_0x4fcaeb(0xcf)]();for(let _0x6f056f=0x0;_0x6f056f<_0x3e3324[_0x4fcaeb(0xeb)]-0x1;_0x6f056f++){const _0x20e44e=_0x3e3324[_0x6f056f],_0x312a60=_0x3e3324[_0x6f056f+0x1];if(_0x20e44e[_0x4fcaeb(0x122)]<_0x312a60[_0x4fcaeb(0x121)]){const _0x276c32=_0x312a60[_0x4fcaeb(0x121)],_0x11436b=Math[_0x4fcaeb(0xe9)](_0x276c32,_0x20e44e[_0x4fcaeb(0x121)]);this[_0x4fcaeb(0xfb)]({'revision':_0x20e44e,'from':_0x276c32,'to':_0x11436b});}}}[_0x4abd1f(0xfb)]({revision:_0x420a17,from:_0x89ef5a,to:_0x210ab8}={}){const _0x1cb4f5=_0x4abd1f,_0xa4db67=this[_0x1cb4f5(0x106)][_0x1cb4f5(0xbf)][_0x1cb4f5(0xf4)](_0x2349c6),_0x100313=this[_0x1cb4f5(0x11b)][_0x1cb4f5(0x117)]({'revision':_0x420a17,'from':_0x89ef5a,'to':_0x210ab8});_0x100313[_0x1cb4f5(0x110)]=_0x100313[_0x1cb4f5(0x128)][_0x1cb4f5(0xcb)](_0x263f13=>_0xa4db67[_0x1cb4f5(0xc5)](_0x263f13)),_0x420a17[_0x1cb4f5(0x113)](_0x100313);}[_0x4abd1f(0xfc)](_0x6d9ac0){const _0x28c96c=_0x4abd1f,_0x56fff7={};_0x56fff7['id']=_0x6d9ac0['id'];for(const _0x262b86 of Object[_0x28c96c(0x100)](_0x6d9ac0))'id'!==_0x262b86&&(_0x56fff7[_0x262b86]=void 0x0);this[_0x28c96c(0x11b)][_0x28c96c(0xc8)](_0x56fff7['id'],_0x56fff7,!0x0);}async[_0x4abd1f(0xfe)](_0x216578){const _0x5deed5=_0x4abd1f,_0x98888=this[_0x5deed5(0x106)][_0x5deed5(0xbf)][_0x5deed5(0xf4)](_0x2349c6),{connection:_0x3e9e2b}=this[_0x5deed5(0x106)][_0x5deed5(0xbf)][_0x5deed5(0xf4)](_0x4f19b7),_0x5f1842=new Set();for(const _0xaf2795 of _0x216578){for(const _0x310ad2 of _0xaf2795[_0x5deed5(0x128)])_0x184b71(_0x310ad2);_0xaf2795[_0x5deed5(0xd6)]&&_0x184b71(_0xaf2795[_0x5deed5(0xd6)]);}if(0x0===_0x5f1842[_0x5deed5(0xbd)])return;const _0x4801c8=await _0x23ced7[_0x5deed5(0x12e)](_0x3e9e2b,Array[_0x5deed5(0xfd)](_0x5f1842));for(const _0x30145a of _0x4801c8)_0x98888[_0x5deed5(0xc5)](_0x30145a['id'])||_0x98888[_0x5deed5(0xca)](_0x30145a);function _0x184b71(_0x5223fa){const _0x15e031=_0x5deed5;_0x98888[_0x15e031(0xc5)](_0x5223fa)||_0x5f1842[_0x15e031(0xdf)](_0x5223fa);}}}export{c as CloudServicesRevisionHistoryAdapter};function q(_0x370e62){const _0x1f8f69=_0x4abd1f;return _0x370e62[_0x1f8f69(0xd4)][_0x1f8f69(0xc7)](_0x1f8f69(0xe5))||_0x370e62[_0x1f8f69(0xd4)][_0x1f8f69(0xc7)](_0x1f8f69(0xf7))||_0x370e62[_0x1f8f69(0xd4)][_0x1f8f69(0xc7)](_0x1f8f69(0x125));}
23
+ const _0x417ae1=_0x53a2;function _0x10c5(){const _0x1fe323=['connection','addToReconnectionStack','400','catch','once','127038PFSRNJ','connect','message','7YhXShD','keys','_getLatestVersionFromServerOperations','isEmptyCurrent','remove','startsWith','reInit','authorsIds','length','config','_update','_revisionTracker','from','setRevisionData','createdAt','reconnect','_handleRevisionsUpdate','serverHistory','_fetchMissingUsers','marker','isConnected','wrongRequestId','then','change:_isPendingUpdate','_createCurrentRevision','data','_getLatestVersion','change:_isConnected','code','getRevision','state','add','max','isEnabled','affectsData','diffData','cloud-services-internal-error:\x20Not\x20connected.','RevisionTracker','reverse','editor','270670BTnwVF','_isConnected','631428JvNrCx','_bufferUpdate','RevisionHistory','_offset','449280PBQDKq','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','has','54687wwSeOc','CONNECTED','_revisions','865fmPghQ','_isPendingUpdate','currentRevision','authors','get','baseVersion','requires','getRevisions','pluginName','setSource','2876MmbwmJ','buildRevisionData','fromVersion','toVersion','658578kLZiYo','_startingVersion','getUser','_oldOffset','cloudServices.bundleVersion','171yJYoHr','size','adapter','init','cloud-services-internal-error:\x20Request\x20timeout.','_handleReconnectionError','_revisionDataBuilder','_waitForServiceReady','isBundleUploaded','getMany','connected','revisionsUpdated','addRevisionData','listenTo','destroy','RevisionHistoryService','isOfficialPlugin','repository','addUser','getOperations','_revisionHistoryService','updateRevisions','collaboration.channelId','_preventResendingRevisionData','_bufferedUpdates','plugins','CloudServicesRevisionHistoryAdapter','map','isPremiumPlugin','_lastRequestId','off','bind','type','sendBufferedUpdates','creatorId','_fixRevision','sessionId'];_0x10c5=function(){return _0x1fe323;};return _0x10c5();}(function(_0x32a336,_0x1c664b){const _0x25da03=_0x53a2,_0x4e4d3d=_0x32a336();while(!![]){try{const _0x2458ba=parseInt(_0x25da03(0x1c9))/0x1+-parseInt(_0x25da03(0x195))/0x2+-parseInt(_0x25da03(0x1da))/0x3+parseInt(_0x25da03(0x1d6))/0x4*(-parseInt(_0x25da03(0x1cc))/0x5)+-parseInt(_0x25da03(0x1c2))/0x6*(parseInt(_0x25da03(0x198))/0x7)+parseInt(_0x25da03(0x1c6))/0x8+parseInt(_0x25da03(0x1df))/0x9*(parseInt(_0x25da03(0x1c0))/0xa);if(_0x2458ba===_0x1c664b)break;else _0x4e4d3d['push'](_0x4e4d3d['shift']());}catch(_0x9758be){_0x4e4d3d['push'](_0x4e4d3d['shift']());}}}(_0x10c5,0x1b742));import{Plugin as _0x244eaf}from'ckeditor5/src/core.js';import{version as _0x453c44}from'ckeditor5/src/utils.js';import{Users as _0x38be10}from'ckeditor5-collaboration/src/collaboration-core.js';import{RealTimeCollaborationClient as _0x1a5d86}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x3664cc}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x977ec}from'../realtimecollaborativeediting/sessions.js';import{EditorService as _0x4fa0c2,RevisionHistoryService as _0x5137f1,User as _0x5b414d,WEB_SOCKET_GATEWAY_STATES as _0x2703a1}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';class c extends _0x244eaf{static [_0x417ae1(0x1ee)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x5137f1)());[_0x417ae1(0x1fc)];[_0x417ae1(0x1a3)];[_0x417ae1(0x1f3)];[_0x417ae1(0x1dd)];static get[_0x417ae1(0x1d2)](){const _0x282a37=_0x417ae1;return[_0x3664cc,_0x1a5d86,_0x282a37(0x1c4),_0x977ec,_0x38be10];}static get[_0x417ae1(0x1d4)](){const _0x3c14bb=_0x417ae1;return _0x3c14bb(0x1f9);}static get[_0x417ae1(0x1ef)](){return!0x0;}static get[_0x417ae1(0x1fb)](){return!0x0;}constructor(_0x24f73c){const _0x22879e=_0x417ae1;super(_0x24f73c);const _0x1d3ddd=this[_0x22879e(0x1bf)][_0x22879e(0x1a1)][_0x22879e(0x1d0)](_0x22879e(0x1f5));this[_0x22879e(0x1fc)]=null,this[_0x22879e(0x1a3)]=this[_0x22879e(0x1bf)][_0x22879e(0x1f8)][_0x22879e(0x1d0)](_0x22879e(0x1bd)),this[_0x22879e(0x1f3)]=new c[(_0x22879e(0x1ee))](_0x1d3ddd);}async[_0x417ae1(0x1e2)](){const _0x47a27c=_0x417ae1,_0x187820=this[_0x47a27c(0x1bf)][_0x47a27c(0x1f8)][_0x47a27c(0x1d0)](_0x1a5d86),_0x29da70=_0x187820[_0x47a27c(0x1a9)],_0x221ae5=this[_0x47a27c(0x1bf)][_0x47a27c(0x1f8)][_0x47a27c(0x1d0)](_0x3664cc);this[_0x47a27c(0x1a3)][_0x47a27c(0x1d5)]({'history':_0x29da70,'getLatestVersion':()=>this[_0x47a27c(0x1b2)](),'getCurrentRevisionId':()=>_0x187820[_0x47a27c(0x18f)]});const _0x32f8cf=this[_0x47a27c(0x1bf)][_0x47a27c(0x1a1)][_0x47a27c(0x1d0)](_0x47a27c(0x1de))||_0x453c44,_0x251bd8=await _0x4fa0c2[_0x47a27c(0x1e7)](_0x221ae5[_0x47a27c(0x190)],_0x32f8cf);this[_0x47a27c(0x1bf)][_0x47a27c(0x1f8)][_0x47a27c(0x1d0)](_0x47a27c(0x1c4))[_0x47a27c(0x1e1)]={'getRevision':async({revisionId:_0x33e122})=>(await this[_0x47a27c(0x1e6)](),await this[_0x47a27c(0x1f3)][_0x47a27c(0x1b5)](_0x33e122)),'updateRevisions':async _0x30dc81=>{const _0x29f2d2=_0x47a27c;await this[_0x29f2d2(0x1e6)]();const _0x57ca54=this[_0x29f2d2(0x1a3)][_0x29f2d2(0x1ce)];if(_0x251bd8&&0x1===_0x30dc81[_0x29f2d2(0x1a0)]&&_0x30dc81[0x0]['id']===_0x57ca54['id'])return _0x30dc81;for(const _0x22ab76 of _0x30dc81)_0x22ab76['id']===_0x57ca54['id']&&(_0x22ab76[_0x29f2d2(0x19b)]=_0x22ab76[_0x29f2d2(0x1d8)]===_0x22ab76[_0x29f2d2(0x1d9)]);return this[_0x29f2d2(0x1f3)][_0x29f2d2(0x1f4)](_0x30dc81,this[_0x29f2d2(0x1fc)])[_0x29f2d2(0x1ae)](_0xeded54=>(this[_0x29f2d2(0x1fc)]=_0xeded54,_0x30dc81))[_0x29f2d2(0x193)](_0x523e1b=>{const _0x5d5be0=_0x29f2d2;if(st(_0x523e1b)||_0x5d5be0(0x192)===_0x523e1b[_0x5d5be0(0x1b4)]&&void 0x0!==_0x523e1b[_0x5d5be0(0x1b1)][_0x5d5be0(0x1ad)]){for(const _0x3c247f of _0x30dc81){!this[_0x5d5be0(0x1a3)][_0x5d5be0(0x1f0)][_0x5d5be0(0x1b5)](_0x3c247f['id'])||this[_0x5d5be0(0x1a3)][_0x5d5be0(0x1c3)](_0x3c247f['id'],_0x3c247f,!0x1);}if(st(_0x523e1b))throw _0x523e1b;return _0x30dc81;}throw _0x523e1b;});}},this[_0x47a27c(0x1ec)](this[_0x47a27c(0x1f3)],_0x47a27c(0x1ea),(_0x235c39,{revisionsData:_0x428639,requestId:_0x53d8a4})=>{const _0x4c5d7e=_0x47a27c;Math[_0x4c5d7e(0x1b8)](..._0x428639[_0x4c5d7e(0x1fa)](_0xefcfd9=>_0xefcfd9[_0x4c5d7e(0x1d9)]))>this[_0x4c5d7e(0x19a)]()-0x1?this[_0x4c5d7e(0x1b2)]()[_0x4c5d7e(0x1ae)](()=>{const _0x53ec85=_0x4c5d7e;this[_0x53ec85(0x1a8)](_0x428639,_0x53d8a4);}):this[_0x4c5d7e(0x1a8)](_0x428639,_0x53d8a4);});const {revisions:_0x1e03a4,requestId:_0x226a58}=await this[_0x47a27c(0x1f3)][_0x47a27c(0x196)](_0x221ae5[_0x47a27c(0x190)]);_0x221ae5[_0x47a27c(0x191)](this),this[_0x47a27c(0x1fc)]=_0x226a58,await this[_0x47a27c(0x1aa)](_0x1e03a4);for(const _0x4275ab of _0x1e03a4)this[_0x47a27c(0x1a3)][_0x47a27c(0x1eb)](_0x4275ab);this[_0x47a27c(0x1ec)](_0x187820,_0x47a27c(0x1b3),(_0x2940dc,_0x13f056,_0x432a46)=>{const _0x4edd7d=_0x47a27c;_0x432a46&&(this[_0x4edd7d(0x1dd)]=_0x187820[_0x4edd7d(0x1c5)],_0x2940dc[_0x4edd7d(0x1fd)]());}),this[_0x47a27c(0x1a3)][_0x47a27c(0x1fe)](_0x47a27c(0x1b9))['to'](_0x221ae5,_0x47a27c(0x1b6),_0x3468ab=>_0x3468ab===_0x2703a1[_0x47a27c(0x1ca)]);}async[_0x417ae1(0x1a7)](){const _0x3b2c40=_0x417ae1,_0x67ff52=this[_0x3b2c40(0x1bf)][_0x3b2c40(0x1f8)][_0x3b2c40(0x1d0)](_0x3664cc),_0xb32d27=this[_0x3b2c40(0x1bf)][_0x3b2c40(0x1f8)][_0x3b2c40(0x1d0)](_0x1a5d86),_0x48dd18=async()=>{const _0x5b3054=_0x3b2c40,_0x467c1e=this[_0x5b3054(0x1a3)][_0x5b3054(0x1ce)],_0x2c1263=_0x467c1e['id'],_0x280eac=_0x2c1263!==_0xb32d27[_0x5b3054(0x18f)];if(_0x280eac){const _0x151137=_0xb32d27[_0x5b3054(0x1c5)]-this[_0x5b3054(0x1dd)],_0x549230=this[_0x5b3054(0x19a)]();this[_0x5b3054(0x1a3)][_0x5b3054(0x1e5)][_0x5b3054(0x19e)]();if(_0x467c1e[_0x5b3054(0x1d9)]+_0x151137!==_0x549230){const _0x49d516=_0x467c1e[_0x5b3054(0x1d8)]+_0x151137,_0x5a476a=this[_0x5b3054(0x1bf)][_0x5b3054(0x1f8)][_0x5b3054(0x1d0)](_0x38be10),_0x4ea5b8=this[_0x5b3054(0x1a3)][_0x5b3054(0x1d7)]({'revision':_0x467c1e,'from':_0x49d516,'to':_0x549230});_0x4ea5b8['id']=_0x467c1e['id'];const _0x30dc37=_0x4ea5b8[_0x5b3054(0x19f)][_0x5b3054(0x1fa)](_0x1543ce=>_0x5a476a[_0x5b3054(0x1dc)](_0x1543ce));_0x467c1e[_0x5b3054(0x1a2)]({..._0x4ea5b8,'authors':_0x30dc37},!0x0),this[_0x5b3054(0x1a3)][_0x5b3054(0x1c3)](_0x467c1e['id'],_0x4ea5b8,!0x0);}this[_0x5b3054(0x1a3)][_0x5b3054(0x1db)]=_0x549230,(_0x467c1e[_0x5b3054(0x1d9)]===_0x467c1e[_0x5b3054(0x1d8)]&&!this[_0x5b3054(0x1a3)][_0x5b3054(0x1f7)][_0x5b3054(0x1c8)](_0x2c1263)&&this[_0x5b3054(0x1a3)][_0x5b3054(0x1f0)][_0x5b3054(0x1cb)][_0x5b3054(0x19c)](_0x2c1263),this[_0x5b3054(0x1a3)][_0x5b3054(0x1b0)](_0x549230));}const {revisions:_0x187b8c,requestId:_0x3ed8eb}=await this[_0x5b3054(0x1f3)][_0x5b3054(0x1a7)](_0x67ff52[_0x5b3054(0x190)],this[_0x5b3054(0x1fc)]);_0x280eac&&_0x187b8c[_0x5b3054(0x1a0)]>0x0?_0xb32d27[_0x5b3054(0x1e4)]():(await this[_0x5b3054(0x1aa)](_0x187b8c),this[_0x5b3054(0x1a8)](_0x187b8c,_0x3ed8eb),this[_0x5b3054(0x1a3)][_0x5b3054(0x200)]());};return _0xb32d27[_0x3b2c40(0x1c1)]?_0x48dd18():new Promise((_0x4c161e,_0x38e001)=>{const _0x339ea6=_0x3b2c40;_0xb32d27[_0x339ea6(0x194)](_0x339ea6(0x1b3),()=>{const _0xadbb6=_0x339ea6;_0x48dd18()[_0xadbb6(0x1ae)](_0x4c161e)[_0xadbb6(0x193)](_0x38e001);});});}[_0x417ae1(0x1ed)](){const _0x467705=_0x417ae1;super[_0x467705(0x1ed)]();}async[_0x417ae1(0x1e6)](){const _0x494447=_0x417ae1;this[_0x494447(0x1f3)][_0x494447(0x1ac)]||await new Promise(_0x1fd23f=>{const _0x2d0e7b=_0x494447;this[_0x2d0e7b(0x1ec)](this[_0x2d0e7b(0x1f3)],_0x2d0e7b(0x1e9),_0x5cc35f=>{const _0x21afc3=_0x2d0e7b;_0x5cc35f[_0x21afc3(0x1fd)](),_0x1fd23f();});});}[_0x417ae1(0x19a)](){const _0x39e67f=_0x417ae1,_0x270a0d=this[_0x39e67f(0x1bf)][_0x39e67f(0x1f8)][_0x39e67f(0x1d0)](_0x1a5d86)[_0x39e67f(0x1a9)][_0x39e67f(0x1f2)]()[_0x39e67f(0x1be)]();for(const _0x198fb2 of _0x270a0d)if(_0x39e67f(0x1ab)!==_0x198fb2[_0x39e67f(0x1ff)]||_0x198fb2[_0x39e67f(0x1ba)])return _0x198fb2[_0x39e67f(0x1d1)]+0x1;}[_0x417ae1(0x1b2)](){const _0x133193=_0x417ae1,_0x1a701e=this[_0x133193(0x1bf)][_0x133193(0x1f8)][_0x133193(0x1d0)](_0x1a5d86);return new Promise(_0x21bc1a=>{const _0x2524ed=_0x133193;_0x1a701e[_0x2524ed(0x1cd)]?_0x1a701e[_0x2524ed(0x194)](_0x2524ed(0x1af),()=>{const _0x2ee634=_0x2524ed;_0x21bc1a(this[_0x2ee634(0x19a)]());}):_0x21bc1a(this[_0x2524ed(0x19a)]());});}[_0x417ae1(0x1a8)](_0x3fc907,_0x2a8d3f){const _0x5948cb=_0x417ae1,_0x2f907b=this[_0x5948cb(0x1a3)][_0x5948cb(0x1f0)];this[_0x5948cb(0x1fc)]=_0x2a8d3f;for(const _0x173868 of _0x3fc907){const _0x58e5a3=_0x2f907b[_0x5948cb(0x1b5)](_0x173868['id']);if(_0x58e5a3){if((_0x173868[_0x5948cb(0x1d8)]||_0x173868[_0x5948cb(0x1d9)])&&(_0x173868[_0x5948cb(0x1bb)]=null),_0x58e5a3===this[_0x5948cb(0x1a3)][_0x5948cb(0x1ce)]){const _0x937cc7=Math[_0x5948cb(0x1b8)](_0x58e5a3[_0x5948cb(0x1d9)],_0x173868[_0x5948cb(0x1d9)]),_0x3db618=Math[_0x5948cb(0x1b8)](_0x58e5a3[_0x5948cb(0x1d8)],_0x173868[_0x5948cb(0x1d8)]);let _0x4ecddd;_0x58e5a3[_0x5948cb(0x1d9)]===_0x173868[_0x5948cb(0x1d9)]&&_0x58e5a3[_0x5948cb(0x1d8)]===_0x173868[_0x5948cb(0x1d8)]?(_0x4ecddd=!0x0,this[_0x5948cb(0x1f6)](_0x173868)):_0x173868[_0x5948cb(0x1d9)]===_0x937cc7&&_0x173868[_0x5948cb(0x1d8)]===_0x3db618?_0x4ecddd=!0x1:(_0x58e5a3[_0x5948cb(0x1d9)]===_0x937cc7&&_0x58e5a3[_0x5948cb(0x1d8)]===_0x3db618||this[_0x5948cb(0x18e)]({'revision':_0x58e5a3,'from':_0x3db618,'to':_0x937cc7}),_0x4ecddd=!0x0),_0x4ecddd&&(delete _0x173868[_0x5948cb(0x1d8)],delete _0x173868[_0x5948cb(0x1d9)],delete _0x173868[_0x5948cb(0x1bb)],delete _0x173868[_0x5948cb(0x1a6)],delete _0x173868[_0x5948cb(0x19f)]);}this[_0x5948cb(0x1a3)][_0x5948cb(0x1a5)](_0x173868),this[_0x5948cb(0x1f6)](_0x173868);}else this[_0x5948cb(0x1a3)][_0x5948cb(0x1eb)](_0x173868);}const _0x35c40e=_0x2f907b[_0x5948cb(0x1d3)]();_0x35c40e[_0x5948cb(0x1be)]();for(let _0x48a565=0x0;_0x48a565<_0x35c40e[_0x5948cb(0x1a0)]-0x1;_0x48a565++){const _0x511aa3=_0x35c40e[_0x48a565],_0x4afc8c=_0x35c40e[_0x48a565+0x1];if(_0x511aa3[_0x5948cb(0x1d8)]<_0x4afc8c[_0x5948cb(0x1d9)]){const _0xacc2e3=_0x4afc8c[_0x5948cb(0x1d9)],_0x50bd77=Math[_0x5948cb(0x1b8)](_0xacc2e3,_0x511aa3[_0x5948cb(0x1d9)]);this[_0x5948cb(0x18e)]({'revision':_0x511aa3,'from':_0xacc2e3,'to':_0x50bd77});}}}[_0x417ae1(0x18e)]({revision:_0x1c2d02,from:_0x145679,to:_0x1878aa}={}){const _0x1509ad=_0x417ae1,_0x40cc66=this[_0x1509ad(0x1bf)][_0x1509ad(0x1f8)][_0x1509ad(0x1d0)](_0x38be10),_0x5eac0c=this[_0x1509ad(0x1a3)][_0x1509ad(0x1d7)]({'revision':_0x1c2d02,'from':_0x145679,'to':_0x1878aa});_0x5eac0c[_0x1509ad(0x1cf)]=_0x5eac0c[_0x1509ad(0x19f)][_0x1509ad(0x1fa)](_0x1307b2=>_0x40cc66[_0x1509ad(0x1dc)](_0x1307b2)),_0x1c2d02[_0x1509ad(0x1a2)](_0x5eac0c);}[_0x417ae1(0x1f6)](_0x1b0052){const _0x2eafdd=_0x417ae1,_0x1cff41={};_0x1cff41['id']=_0x1b0052['id'];for(const _0x31cb28 of Object[_0x2eafdd(0x199)](_0x1b0052))'id'!==_0x31cb28&&(_0x1cff41[_0x31cb28]=void 0x0);this[_0x2eafdd(0x1a3)][_0x2eafdd(0x1c3)](_0x1cff41['id'],_0x1cff41,!0x0);}async[_0x417ae1(0x1aa)](_0x2fab93){const _0x462751=_0x417ae1,_0xb20a3c=this[_0x462751(0x1bf)][_0x462751(0x1f8)][_0x462751(0x1d0)](_0x38be10),{connection:_0x41eb0e}=this[_0x462751(0x1bf)][_0x462751(0x1f8)][_0x462751(0x1d0)](_0x3664cc),_0x414ea7=new Set();for(const _0x15dfd9 of _0x2fab93){for(const _0x145bcd of _0x15dfd9[_0x462751(0x19f)])_0x5d2ef8(_0x145bcd);_0x15dfd9[_0x462751(0x18d)]&&_0x5d2ef8(_0x15dfd9[_0x462751(0x18d)]);}if(0x0===_0x414ea7[_0x462751(0x1e0)])return;const _0x3ff681=await _0x5b414d[_0x462751(0x1e8)](_0x41eb0e,Array[_0x462751(0x1a4)](_0x414ea7));for(const _0x5c6a97 of _0x3ff681)_0xb20a3c[_0x462751(0x1dc)](_0x5c6a97['id'])||_0xb20a3c[_0x462751(0x1f1)](_0x5c6a97);function _0x5d2ef8(_0x2608cb){const _0xaaef4a=_0x462751;_0xb20a3c[_0xaaef4a(0x1dc)](_0x2608cb)||_0x414ea7[_0xaaef4a(0x1b7)](_0x2608cb);}}}export{c as CloudServicesRevisionHistoryAdapter};function _0x53a2(_0x47ddc1,_0x1059e5){const _0x10c5a1=_0x10c5();return _0x53a2=function(_0x53a22d,_0x36fe01){_0x53a22d=_0x53a22d-0x18d;let _0x59fe3e=_0x10c5a1[_0x53a22d];return _0x59fe3e;},_0x53a2(_0x47ddc1,_0x1059e5);}function st(_0x18b766){const _0x21898a=_0x417ae1;return _0x18b766[_0x21898a(0x197)][_0x21898a(0x19d)](_0x21898a(0x1c7))||_0x18b766[_0x21898a(0x197)][_0x21898a(0x19d)](_0x21898a(0x1bc))||_0x18b766[_0x21898a(0x197)][_0x21898a(0x19d)](_0x21898a(0x1e3));}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3537(_0xb9a546,_0xe3421){const _0x419b48=_0x419b();return _0x3537=function(_0x3537d6,_0x329ad8){_0x3537d6=_0x3537d6-0x1a5;let _0x20c64e=_0x419b48[_0x3537d6];return _0x20c64e;},_0x3537(_0xb9a546,_0xe3421);}const _0x5b1cdb=_0x3537;(function(_0x5469d6,_0x527f7d){const _0x1728e0=_0x3537,_0x5b05f6=_0x5469d6();while(!![]){try{const _0x5204a2=parseInt(_0x1728e0(0x1d9))/0x1+-parseInt(_0x1728e0(0x1d6))/0x2*(-parseInt(_0x1728e0(0x1cc))/0x3)+parseInt(_0x1728e0(0x1d1))/0x4*(parseInt(_0x1728e0(0x1b4))/0x5)+-parseInt(_0x1728e0(0x1c2))/0x6*(parseInt(_0x1728e0(0x1c9))/0x7)+-parseInt(_0x1728e0(0x1e0))/0x8+-parseInt(_0x1728e0(0x1b3))/0x9*(-parseInt(_0x1728e0(0x1c5))/0xa)+parseInt(_0x1728e0(0x1d7))/0xb*(-parseInt(_0x1728e0(0x1c3))/0xc);if(_0x5204a2===_0x527f7d)break;else _0x5b05f6['push'](_0x5b05f6['shift']());}catch(_0xc52eb8){_0x5b05f6['push'](_0x5b05f6['shift']());}}}(_0x419b,0xa76ca));import{Plugin as _0xda4b2c}from'ckeditor5/src/core.js';import{User as _0x6726f6,TrackChangesService as _0x3a30c4}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x260a09}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0x36df5a}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x51e17a}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x419b(){const _0x9b1e86=['size','cloud-services-internal-error:\x20Not\x20connected.','932DvCdAo','addUser','add','getUser','requires','442258hkJzKe','55nBEOwy','values','1271410tbkLAH','addToReconnectionStack','plugins','isPremiumPlugin','from','editor','isConnected','338600vLXafe','get','catch','init','update','find','data','isOfficialPlugin','TrackChangesEditing','getSuggestion','_trackChangesService','connection','listenTo','delete','getMany','adapter','connect','hasSuggestion','CloudServicesTrackChangesAdapter','set','startsWith','81ZdRcSl','15665ZAyPRy','cloud-services-internal-error:\x20Request\x20timeout.','connected','suggestionUpdated','then','TrackChangesService','config','reconnect','open','type','_waitForServiceReady','_bufferedRequests','originalSuggestionId','message','5586522nNRRNm','2130192CZAmEH','pluginName','360260smpWat','_fetchMissingUsersForThreads','attributes','addSuggestionData','7sdOrOx','_saved','off','3wWnnDo','collaboration.channelId','state'];_0x419b=function(){return _0x9b1e86;};return _0x419b();}class m extends _0xda4b2c{static [_0x5b1cdb(0x1b9)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x3a30c4)());[_0x5b1cdb(0x1bf)];[_0x5b1cdb(0x1a8)];static get[_0x5b1cdb(0x1d5)](){const _0x310afc=_0x5b1cdb;return[_0x36df5a,_0x310afc(0x1a6),_0x260a09];}static get[_0x5b1cdb(0x1c4)](){const _0x586136=_0x5b1cdb;return _0x586136(0x1b0);}static get[_0x5b1cdb(0x1a5)](){return!0x0;}static get[_0x5b1cdb(0x1dc)](){return!0x0;}constructor(_0x5a8f1e){const _0x4b684c=_0x5b1cdb;super(_0x5a8f1e);const _0x3690d2=this[_0x4b684c(0x1de)][_0x4b684c(0x1ba)][_0x4b684c(0x1e1)](_0x4b684c(0x1cd));this[_0x4b684c(0x1bf)]=new Map(),this[_0x4b684c(0x1a8)]=new m[(_0x4b684c(0x1b9))](_0x3690d2);}[_0x5b1cdb(0x1e3)](){const _0x1dd8b4=_0x5b1cdb,_0x2514bf=this[_0x1dd8b4(0x1de)][_0x1dd8b4(0x1db)][_0x1dd8b4(0x1e1)](_0x260a09),_0x5d15cb=this[_0x1dd8b4(0x1de)][_0x1dd8b4(0x1db)][_0x1dd8b4(0x1e1)](_0x1dd8b4(0x1a6));return _0x5d15cb[_0x1dd8b4(0x1ad)]={'getSuggestion':async _0x3bb42c=>{const _0x35e9f3=_0x1dd8b4;await this[_0x35e9f3(0x1be)]();const _0x315c0e=await this[_0x35e9f3(0x1a8)][_0x35e9f3(0x1e1)](_0x3bb42c)[_0x35e9f3(0x1e2)](k);return await this[_0x35e9f3(0x1c6)]([_0x315c0e]),_0x315c0e;},'addSuggestion':async({id:_0x3e2e90,type:_0x1c7bfa,data:_0x26be39,originalSuggestionId:_0x264490,attributes:_0x19493d})=>{const _0x4a316e=_0x1dd8b4;await this[_0x4a316e(0x1be)]();const _0x45383e={'id':_0x3e2e90,'type':_0x1c7bfa,'data':_0x26be39,'originalSuggestionId':_0x264490,'attributes':_0x19493d},_0x5044bf=await this[_0x4a316e(0x1a8)][_0x4a316e(0x1d3)](_0x3e2e90,_0x1c7bfa,_0x26be39,_0x264490,_0x19493d)[_0x4a316e(0x1e2)](_0x16f8ca=>{if(q(_0x16f8ca))return new Promise(_0x58517a=>{const _0x5df613=_0x3537;this[_0x5df613(0x1bf)][_0x5df613(0x1b1)](_0x3e2e90,{'resolve':_0x58517a,'suggestionData':_0x45383e});});throw _0x16f8ca;});return this[_0x4a316e(0x1bf)][_0x4a316e(0x1ab)](_0x3e2e90),_0x5044bf;},'updateSuggestion':async(_0x36d619,_0x5c3d36)=>{const _0x5a18ab=_0x1dd8b4;if(await this[_0x5a18ab(0x1be)](),_0x5a18ab(0x1bc)!==_0x5c3d36[_0x5a18ab(0x1ce)])return this[_0x5a18ab(0x1a8)][_0x5a18ab(0x1e4)](_0x36d619,_0x5c3d36)[_0x5a18ab(0x1e2)](k);}},this[_0x1dd8b4(0x1aa)](this[_0x1dd8b4(0x1a8)],_0x1dd8b4(0x1b7),(_0x447f84,_0x34e75d)=>{const _0x322099=_0x1dd8b4;_0x5d15cb[_0x322099(0x1af)](_0x34e75d['id'])&&(_0x5d15cb[_0x322099(0x1a7)](_0x34e75d['id'])[_0x322099(0x1c7)]=_0x34e75d[_0x322099(0x1c7)]);}),this[_0x1dd8b4(0x1a8)][_0x1dd8b4(0x1ae)](_0x2514bf[_0x1dd8b4(0x1a9)])[_0x1dd8b4(0x1b8)](_0x2582b4=>(_0x2514bf[_0x1dd8b4(0x1da)](this),this[_0x1dd8b4(0x1c6)](_0x2582b4)[_0x1dd8b4(0x1b8)](()=>{const _0x572395=_0x1dd8b4;for(const _0x3a3aa1 of _0x2582b4){_0x5d15cb[_0x572395(0x1c8)](_0x3a3aa1)[_0x572395(0x1ca)]=!0x0;}})));}async[_0x5b1cdb(0x1bb)](){const _0x3d0506=_0x5b1cdb,_0x10de58=this[_0x3d0506(0x1de)][_0x3d0506(0x1db)][_0x3d0506(0x1e1)](_0x3d0506(0x1a6)),{connection:_0x48a485}=this[_0x3d0506(0x1de)][_0x3d0506(0x1db)][_0x3d0506(0x1e1)](_0x260a09),_0x860a6c=await this[_0x3d0506(0x1a8)][_0x3d0506(0x1ae)](_0x48a485);await this[_0x3d0506(0x1c6)](_0x860a6c);for(const {suggestionData:_0x3ef817,resolve:_0xb2f9c8}of this[_0x3d0506(0x1bf)][_0x3d0506(0x1d8)]()){let _0x5ce260=_0x860a6c[_0x3d0506(0x1e5)](_0x4cb3b5=>_0x4cb3b5['id']===_0x3ef817['id']);_0x5ce260||(_0x5ce260=await this[_0x3d0506(0x1a8)][_0x3d0506(0x1d3)](_0x3ef817['id'],_0x3ef817[_0x3d0506(0x1bd)],_0x3ef817[_0x3d0506(0x1e6)],_0x3ef817[_0x3d0506(0x1c0)])),_0xb2f9c8(_0x5ce260);}for(const _0x2272f2 of _0x860a6c)_0x10de58[_0x3d0506(0x1af)](_0x2272f2['id'])||_0x10de58[_0x3d0506(0x1c8)](_0x2272f2);}async[_0x5b1cdb(0x1be)](){const _0x18d776=_0x5b1cdb;this[_0x18d776(0x1a8)][_0x18d776(0x1df)]||await new Promise(_0x38accd=>{const _0x4a7700=_0x18d776;this[_0x4a7700(0x1aa)](this[_0x4a7700(0x1a8)],_0x4a7700(0x1b6),_0x33e634=>{const _0x324317=_0x4a7700;_0x33e634[_0x324317(0x1cb)](),_0x38accd();});});}async[_0x5b1cdb(0x1c6)](_0x532356){const _0x1671cf=_0x5b1cdb,_0x317eb1=this[_0x1671cf(0x1de)][_0x1671cf(0x1db)][_0x1671cf(0x1e1)](_0x51e17a),{connection:_0x1b43f8}=this[_0x1671cf(0x1de)][_0x1671cf(0x1db)][_0x1671cf(0x1e1)](_0x260a09),_0x48d076=new Set();for(const {authorId:_0xfd17ac}of _0x532356)_0x317eb1[_0x1671cf(0x1d4)](_0xfd17ac)||_0x48d076[_0x1671cf(0x1d3)](_0xfd17ac);if(0x0===_0x48d076[_0x1671cf(0x1cf)])return;const _0x11b42d=await _0x6726f6[_0x1671cf(0x1ac)](_0x1b43f8,Array[_0x1671cf(0x1dd)](_0x48d076));for(const _0x1266a4 of _0x11b42d)_0x317eb1[_0x1671cf(0x1d4)](_0x1266a4['id'])||_0x317eb1[_0x1671cf(0x1d2)](_0x1266a4);}}export{m as CloudServicesTrackChangesAdapter};function k(_0x151786){if(q(_0x151786))return new Promise(()=>{});throw _0x151786;}function q(_0x45c5ff){const _0x1e4d83=_0x5b1cdb;return _0x45c5ff[_0x1e4d83(0x1c1)][_0x1e4d83(0x1b2)](_0x1e4d83(0x1d0))||_0x45c5ff[_0x1e4d83(0x1c1)][_0x1e4d83(0x1b2)](_0x1e4d83(0x1b5));}
23
+ function _0xc6a3(_0x176362,_0x50e93b){const _0x44ff41=_0x44ff();return _0xc6a3=function(_0xc6a3d7,_0x4d7182){_0xc6a3d7=_0xc6a3d7-0xc9;let _0x57a4e3=_0x44ff41[_0xc6a3d7];return _0x57a4e3;},_0xc6a3(_0x176362,_0x50e93b);}const _0x18e791=_0xc6a3;(function(_0x148544,_0x923164){const _0x43d701=_0xc6a3,_0x7d1264=_0x148544();while(!![]){try{const _0x5722e4=parseInt(_0x43d701(0xd4))/0x1*(-parseInt(_0x43d701(0xe2))/0x2)+-parseInt(_0x43d701(0xf6))/0x3+parseInt(_0x43d701(0x105))/0x4*(-parseInt(_0x43d701(0xcf))/0x5)+parseInt(_0x43d701(0xf9))/0x6*(parseInt(_0x43d701(0x104))/0x7)+-parseInt(_0x43d701(0xe5))/0x8*(parseInt(_0x43d701(0x100))/0x9)+-parseInt(_0x43d701(0xe7))/0xa*(parseInt(_0x43d701(0xda))/0xb)+-parseInt(_0x43d701(0xf0))/0xc*(-parseInt(_0x43d701(0x101))/0xd);if(_0x5722e4===_0x923164)break;else _0x7d1264['push'](_0x7d1264['shift']());}catch(_0x1c73ca){_0x7d1264['push'](_0x7d1264['shift']());}}}(_0x44ff,0x18ae4));import{Plugin as _0x86f44b}from'ckeditor5/src/core.js';import{User as _0x3c95e7,TrackChangesService as _0x4f1a30}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x576a7a}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0x42bd92}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x15afb1}from'ckeditor5-collaboration/src/collaboration-core.js';class m extends _0x86f44b{static [_0x18e791(0xf1)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x4f1a30)());[_0x18e791(0x108)];[_0x18e791(0xfe)];static get[_0x18e791(0xd0)](){const _0x1eae2f=_0x18e791;return[_0x42bd92,_0x1eae2f(0xe0),_0x576a7a];}static get[_0x18e791(0xf8)](){const _0x394cfb=_0x18e791;return _0x394cfb(0xe3);}static get[_0x18e791(0xef)](){return!0x0;}static get[_0x18e791(0xd1)](){return!0x0;}constructor(_0x128aa0){const _0x1836f0=_0x18e791;super(_0x128aa0);const _0x1813db=this[_0x1836f0(0xe6)][_0x1836f0(0xca)][_0x1836f0(0x106)](_0x1836f0(0xff));this[_0x1836f0(0x108)]=new Map(),this[_0x1836f0(0xfe)]=new m[(_0x1836f0(0xf1))](_0x1813db);}[_0x18e791(0xdc)](){const _0x353994=_0x18e791,_0x1a8c51=this[_0x353994(0xe6)][_0x353994(0xfd)][_0x353994(0x106)](_0x576a7a),_0x2cda13=this[_0x353994(0xe6)][_0x353994(0xfd)][_0x353994(0x106)](_0x353994(0xe0));return _0x2cda13[_0x353994(0x10a)]={'getSuggestion':async _0x46b8b3=>{const _0x3a9a56=_0x353994;await this[_0x3a9a56(0xd2)]();const _0x254bcb=await this[_0x3a9a56(0xfe)][_0x3a9a56(0x106)](_0x46b8b3)[_0x3a9a56(0xf7)](k);return await this[_0x3a9a56(0x102)]([_0x254bcb]),_0x254bcb;},'addSuggestion':async({id:_0x3a7739,type:_0x30b9a8,data:_0x2eac02,originalSuggestionId:_0x51fd12,attributes:_0x2c4e50})=>{const _0x4cb27c=_0x353994;await this[_0x4cb27c(0xd2)]();const _0x5093aa={'id':_0x3a7739,'type':_0x30b9a8,'data':_0x2eac02,'originalSuggestionId':_0x51fd12,'attributes':_0x2c4e50},_0x52b3d6=await this[_0x4cb27c(0xfe)][_0x4cb27c(0xcb)](_0x3a7739,_0x30b9a8,_0x2eac02,_0x51fd12,_0x2c4e50)[_0x4cb27c(0xf7)](_0x1f2b28=>{if(st(_0x1f2b28))return new Promise(_0x1a94f1=>{const _0x2e31d1=_0xc6a3;this[_0x2e31d1(0x108)][_0x2e31d1(0xed)](_0x3a7739,{'resolve':_0x1a94f1,'suggestionData':_0x5093aa});});throw _0x1f2b28;});return this[_0x4cb27c(0x108)][_0x4cb27c(0xe9)](_0x3a7739),_0x52b3d6;},'updateSuggestion':async(_0x567132,_0x36efd2)=>{const _0x138c0a=_0x353994;if(await this[_0x138c0a(0xd2)](),_0x138c0a(0xdf)!==_0x36efd2[_0x138c0a(0xf4)])return this[_0x138c0a(0xfe)][_0x138c0a(0xc9)](_0x567132,_0x36efd2)[_0x138c0a(0xf7)](k);}},this[_0x353994(0xf3)](this[_0x353994(0xfe)],_0x353994(0xcc),(_0x166cea,_0x5f1e0d)=>{const _0x1d00bd=_0x353994;_0x2cda13[_0x1d00bd(0x107)](_0x5f1e0d['id'])&&(_0x2cda13[_0x1d00bd(0xe4)](_0x5f1e0d['id'])[_0x1d00bd(0xcd)]=_0x5f1e0d[_0x1d00bd(0xcd)]);}),this[_0x353994(0xfe)][_0x353994(0xd9)](_0x1a8c51[_0x353994(0xdd)])[_0x353994(0xf5)](_0x3eecff=>(_0x1a8c51[_0x353994(0xd6)](this),this[_0x353994(0x102)](_0x3eecff)[_0x353994(0xf5)](()=>{const _0x381220=_0x353994;for(const _0x546e2b of _0x3eecff){_0x2cda13[_0x381220(0x103)](_0x546e2b)[_0x381220(0xe1)]=!0x0;}})));}async[_0x18e791(0xea)](){const _0x3fdf2d=_0x18e791,_0x4db231=this[_0x3fdf2d(0xe6)][_0x3fdf2d(0xfd)][_0x3fdf2d(0x106)](_0x3fdf2d(0xe0)),{connection:_0x5835f7}=this[_0x3fdf2d(0xe6)][_0x3fdf2d(0xfd)][_0x3fdf2d(0x106)](_0x576a7a),_0x37a037=await this[_0x3fdf2d(0xfe)][_0x3fdf2d(0xd9)](_0x5835f7);await this[_0x3fdf2d(0x102)](_0x37a037);for(const {suggestionData:_0x102dc9,resolve:_0x1769e4}of this[_0x3fdf2d(0x108)][_0x3fdf2d(0xfb)]()){let _0x10f8d7=_0x37a037[_0x3fdf2d(0xee)](_0x30bcc5=>_0x30bcc5['id']===_0x102dc9['id']);_0x10f8d7||(_0x10f8d7=await this[_0x3fdf2d(0xfe)][_0x3fdf2d(0xcb)](_0x102dc9['id'],_0x102dc9[_0x3fdf2d(0xd7)],_0x102dc9[_0x3fdf2d(0xe8)],_0x102dc9[_0x3fdf2d(0xf2)])),_0x1769e4(_0x10f8d7);}for(const _0x513fb4 of _0x37a037)_0x4db231[_0x3fdf2d(0x107)](_0x513fb4['id'])||_0x4db231[_0x3fdf2d(0x103)](_0x513fb4);}async[_0x18e791(0xd2)](){const _0x38cc68=_0x18e791;this[_0x38cc68(0xfe)][_0x38cc68(0xd3)]||await new Promise(_0xdeadb7=>{const _0x6b5e9e=_0x38cc68;this[_0x6b5e9e(0xf3)](this[_0x6b5e9e(0xfe)],_0x6b5e9e(0xce),_0x1a7f00=>{const _0x2403b3=_0x6b5e9e;_0x1a7f00[_0x2403b3(0xec)](),_0xdeadb7();});});}async[_0x18e791(0x102)](_0xd3592c){const _0x3f748c=_0x18e791,_0x5d59e6=this[_0x3f748c(0xe6)][_0x3f748c(0xfd)][_0x3f748c(0x106)](_0x15afb1),{connection:_0x2b25bf}=this[_0x3f748c(0xe6)][_0x3f748c(0xfd)][_0x3f748c(0x106)](_0x576a7a),_0x5921d7=new Set();for(const {authorId:_0x3a5b43}of _0xd3592c)_0x5d59e6[_0x3f748c(0xd5)](_0x3a5b43)||_0x5921d7[_0x3f748c(0xcb)](_0x3a5b43);if(0x0===_0x5921d7[_0x3f748c(0xfc)])return;const _0x3cafbb=await _0x3c95e7[_0x3f748c(0xde)](_0x2b25bf,Array[_0x3f748c(0xd8)](_0x5921d7));for(const _0x1b2666 of _0x3cafbb)_0x5d59e6[_0x3f748c(0xd5)](_0x1b2666['id'])||_0x5d59e6[_0x3f748c(0xdb)](_0x1b2666);}}function _0x44ff(){const _0x59c8d7=['188876qzYaeU','getUser','addToReconnectionStack','type','from','connect','5852cioEya','addUser','init','connection','getMany','open','TrackChangesEditing','_saved','2OBsYLE','CloudServicesTrackChangesAdapter','getSuggestion','936PXVvqV','editor','2500CugTLp','data','delete','reconnect','message','off','set','find','isOfficialPlugin','3684SYOgKs','TrackChangesService','originalSuggestionId','listenTo','state','then','18900yfkeeT','catch','pluginName','160116ockaxU','cloud-services-internal-error:\x20Request\x20timeout.','values','size','plugins','_trackChangesService','collaboration.channelId','5499cAHTps','14183XGItTJ','_fetchMissingUsersForThreads','addSuggestionData','49aAQvXA','83936OqukFv','get','hasSuggestion','_bufferedRequests','startsWith','adapter','cloud-services-internal-error:\x20Not\x20connected.','update','config','add','suggestionUpdated','attributes','connected','5zZzuTb','requires','isPremiumPlugin','_waitForServiceReady','isConnected'];_0x44ff=function(){return _0x59c8d7;};return _0x44ff();}export{m as CloudServicesTrackChangesAdapter};function k(_0x1174d7){if(st(_0x1174d7))return new Promise(()=>{});throw _0x1174d7;}function st(_0x4a98f3){const _0x3b4ed6=_0x18e791;return _0x4a98f3[_0x3b4ed6(0xeb)][_0x3b4ed6(0x109)](_0x3b4ed6(0x10b))||_0x4a98f3[_0x3b4ed6(0xeb)][_0x3b4ed6(0x109)](_0x3b4ed6(0xfa));}