@ckeditor/ckeditor5-operations-compressor
Version: 
CKEditor 5 operations compressor for real-time collaboration.
23 lines • 3.37 kB
JavaScript
/*
 *             Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
 *
 *
 *
 *
 *          +---------------------------------------------------------------------------------+
 *          |                                                                                 |
 *          |                                 Hello stranger!                                 |
 *          |                                                                                 |
 *          |                                                                                 |
 *          |   What you're currently looking at is the source code of a legally protected,   |
 *          |    proprietary software. Any attempts to deobfuscate / disassemble this code    |
 *          |               are forbidden and will result in legal consequences.              |
 *          |                                                                                 |
 *          |                                                                                 |
 *          +---------------------------------------------------------------------------------+
 *
 *
 *
 *
 */
function _0x27f7(_0x11e174,_0x3b3fa4){const _0x54d4a8=_0x54d4();return _0x27f7=function(_0x27f799,_0x3469d3){_0x27f799=_0x27f799-0x1a5;let _0x1e1bc4=_0x54d4a8[_0x27f799];return _0x1e1bc4;},_0x27f7(_0x11e174,_0x3b3fa4);}const _0xf06b77=_0x27f7;(function(_0x32db44,_0x3654f3){const _0x41218b=_0x27f7,_0x390194=_0x32db44();while(!![]){try{const _0x46d5ed=parseInt(_0x41218b(0x1b7))/0x1*(parseInt(_0x41218b(0x1b8))/0x2)+-parseInt(_0x41218b(0x1a8))/0x3+-parseInt(_0x41218b(0x1a9))/0x4+-parseInt(_0x41218b(0x1b4))/0x5*(parseInt(_0x41218b(0x1b6))/0x6)+-parseInt(_0x41218b(0x1ab))/0x7+parseInt(_0x41218b(0x1af))/0x8+-parseInt(_0x41218b(0x1ad))/0x9*(-parseInt(_0x41218b(0x1b3))/0xa);if(_0x46d5ed===_0x3654f3)break;else _0x390194['push'](_0x390194['shift']());}catch(_0x153421){_0x390194['push'](_0x390194['shift']());}}}(_0x54d4,0xf3dbf));function _0x54d4(){const _0x55fc0e=['2GgeZlk','1422506luyHvh','decompress','compress','__className','585144iHspgS','6320688DSLcqf','_operationName','7083265KMihTR','types','17614683rWYHjt','_protobufDescriptor','10600976FKiTAN','shift','buffers','_id','10iPODUk','27185KqEbuI','push','1014HgSECs'];_0x54d4=function(){return _0x55fc0e;};return _0x54d4();}import{parsePositionBeforeCompression as _0x57343b,parsePositionAfterCompression as _0xce89f6}from'../utils.js';export class OperationCompressor{[_0xf06b77(0x1b2)];[_0xf06b77(0x1aa)];[_0xf06b77(0x1ae)];constructor(_0x34c619,_0x488f89,_0x564d24){const _0x2d9dea=_0xf06b77;this[_0x2d9dea(0x1b2)]=_0x34c619,this[_0x2d9dea(0x1aa)]=_0x488f89,this[_0x2d9dea(0x1ae)]=_0x564d24;}[_0xf06b77(0x1a6)](_0x50e98a,_0xaea5aa){const _0x48200c=_0xf06b77,_0xacfa1b=_0xaea5aa[_0x48200c(0x1b0)]();return _0x57343b(_0xacfa1b),_0x50e98a[_0x48200c(0x1b1)][_0x48200c(0x1b5)](this[_0x48200c(0x1ae)][_0x48200c(0x1a6)](_0xacfa1b)),_0x50e98a[_0x48200c(0x1ac)][_0x48200c(0x1b5)](this[_0x48200c(0x1b2)]),!0x0;}[_0xf06b77(0x1a5)](_0x574ea0,_0x33d413){const _0x532e86=_0xf06b77;_0x33d413[_0x532e86(0x1ac)][_0x532e86(0x1b0)]();const _0x3b7f69=this[_0x532e86(0x1ae)][_0x532e86(0x1a5)](_0x33d413[_0x532e86(0x1b1)][_0x532e86(0x1b0)]());_0xce89f6(_0x3b7f69),_0x3b7f69[_0x532e86(0x1a7)]=this[_0x532e86(0x1aa)],_0x574ea0[_0x532e86(0x1b5)](_0x3b7f69);}}