@ckeditor/ckeditor5-operations-compressor
Version:
CKEditor 5 operations compressor for real-time collaboration.
23 lines • 7.08 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. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
const _0x5929fa=_0x25dd;(function(_0x121f04,_0x464945){const _0x225df4=_0x25dd,_0xd247fd=_0x121f04();while(!![]){try{const _0x84ae75=-parseInt(_0x225df4(0xef))/0x1+-parseInt(_0x225df4(0xd0))/0x2*(-parseInt(_0x225df4(0xfc))/0x3)+-parseInt(_0x225df4(0xe0))/0x4*(-parseInt(_0x225df4(0xf2))/0x5)+-parseInt(_0x225df4(0xd8))/0x6*(parseInt(_0x225df4(0xec))/0x7)+-parseInt(_0x225df4(0xd4))/0x8+-parseInt(_0x225df4(0xd1))/0x9*(parseInt(_0x225df4(0xf3))/0xa)+parseInt(_0x225df4(0xeb))/0xb;if(_0x84ae75===_0x464945)break;else _0xd247fd['push'](_0xd247fd['shift']());}catch(_0x370b48){_0xd247fd['push'](_0xd247fd['shift']());}}}(_0x35cf,0x9fe3b));import{CKEditorError as _0x338765}from'ckeditor5/src/utils.js';import _0x36efeb from'./protobuffactory.js';import _0x4e7855 from'./operationcompressor/operationcompressor.js';import _0x5b0599 from'./operationcompressor/attributeoperationcompressor.js';import _0x40ab94 from'./operationcompressor/insertoperationcompressor.js';import _0xa077ce from'./operationcompressor/markeroperationcompressor.js';import _0x3a6119 from'./operationcompressor/nooperationcompressor.js';import _0x906614 from'./operationcompressor/annotationmarkeroperationcompressor.js';import _0x38913a from'./actioncompressor/typingactioncompressor.js';import _0x21b6ae from'./actioncompressor/deletingactioncompressor.js';import _0x3780f8 from'./actioncompressor/forwarddeletingactioncompressor.js';function _0x35cf(){const _0x33be4f=['InsertOperation','5000840XZXGqk','RootAttributeOperation','suggestion','CommentMarkerOperation','3081942fqmSpO','_compressorByName','MergeOperation','decompress','SplitOperation','baseVersion','MarkerOperation','_registerCompressor','1532pOvMyC','DeletingAction','_registerActionCompressor','ForwardDeletingAction','MoveOperation','_protobufFactory','comment','RenameOperation','getDescriptor','_getCompressorByName','decompress-compressor-not-found','29623682JxYBHn','7ktaacS','TypingAction','set','1132474DFVGZy','types','forEach','10310QLLHaB','1460990IFKDoV','no-operations-provided','compress','UserSelectionAction','_registerOperationCompressor','__className','NoOperation','_compressorById','RootOperation','30TdZVHe','AttributeOperation','get','SuggestionMarkerOperation','34766ThGOWx','45dlCpQM','length'];_0x35cf=function(){return _0x33be4f;};return _0x35cf();}function _0x25dd(_0x3aeb78,_0x1019f0){const _0x35cf21=_0x35cf();return _0x25dd=function(_0x25dd99,_0x4a2e57){_0x25dd99=_0x25dd99-0xce;let _0x1d899a=_0x35cf21[_0x25dd99];return _0x1d899a;},_0x25dd(_0x3aeb78,_0x1019f0);}import _0x4194c4 from'./actioncompressor/userselectionactioncompressor.js';export default class g{[_0x5929fa(0xfa)];[_0x5929fa(0xd9)];[_0x5929fa(0xe5)];constructor(){const _0x8b246d=_0x5929fa;this[_0x8b246d(0xfa)]=new Map(),this[_0x8b246d(0xd9)]=new Map(),this[_0x8b246d(0xe5)]=new _0x36efeb();const _0x3436c8=this[_0x8b246d(0xe5)][_0x8b246d(0xe8)](_0x8b246d(0xde));this[_0x8b246d(0xdf)](0x1,_0x8b246d(0xf9),new _0x3a6119(0x1,_0x8b246d(0xf9),void 0x0)),this[_0x8b246d(0xf7)](0xa,_0x8b246d(0xfd),_0x5b0599),this[_0x8b246d(0xf7)](0xb,_0x8b246d(0xd3),_0x40ab94),this[_0x8b246d(0xf7)](0xc,_0x8b246d(0xde),_0xa077ce),this[_0x8b246d(0xf7)](0xd,_0x8b246d(0xda),_0x4e7855),this[_0x8b246d(0xf7)](0xe,_0x8b246d(0xe4),_0x4e7855),this[_0x8b246d(0xf7)](0xf,_0x8b246d(0xe7),_0x4e7855),this[_0x8b246d(0xf7)](0x10,_0x8b246d(0xd5),_0x5b0599),this[_0x8b246d(0xf7)](0x11,_0x8b246d(0xdc),_0x4e7855),this[_0x8b246d(0xdf)](0x12,_0x8b246d(0xd7),new _0x906614(0x12,_0x8b246d(0xde),_0x3436c8,_0x8b246d(0xe6))),this[_0x8b246d(0xdf)](0x13,_0x8b246d(0xcf),new _0x906614(0x13,_0x8b246d(0xde),_0x3436c8,_0x8b246d(0xd6))),this[_0x8b246d(0xf7)](0x14,_0x8b246d(0xfb),_0x4e7855),this[_0x8b246d(0xe2)](0x64,_0x8b246d(0xed),_0x38913a),this[_0x8b246d(0xe2)](0x65,_0x8b246d(0xe1),_0x21b6ae),this[_0x8b246d(0xe2)](0x66,_0x8b246d(0xe3),_0x3780f8),this[_0x8b246d(0xe2)](0x67,_0x8b246d(0xf6),_0x4194c4);}[_0x5929fa(0xf5)](_0x17f09b){const _0x5e0289=_0x5929fa;if(!_0x17f09b||!_0x17f09b[0x0])throw new _0x338765(_0x5e0289(0xf4),this);const _0x1d0a03={'types':[],'buffers':[],'baseVersion':_0x17f09b[0x0][_0x5e0289(0xdd)]};for(;_0x17f09b[_0x5e0289(0xd2)];)this[_0x5e0289(0xe9)](_0x5e0289(0xf6))[_0x5e0289(0xf5)](_0x1d0a03,_0x17f09b)||this[_0x5e0289(0xe9)](_0x5e0289(0xed))[_0x5e0289(0xf5)](_0x1d0a03,_0x17f09b)||this[_0x5e0289(0xe9)](_0x5e0289(0xe1))[_0x5e0289(0xf5)](_0x1d0a03,_0x17f09b)||this[_0x5e0289(0xe9)](_0x5e0289(0xe3))[_0x5e0289(0xf5)](_0x1d0a03,_0x17f09b)||this[_0x5e0289(0xe9)](_0x5e0289(0xd7))[_0x5e0289(0xf5)](_0x1d0a03,_0x17f09b)||this[_0x5e0289(0xe9)](_0x5e0289(0xcf))[_0x5e0289(0xf5)](_0x1d0a03,_0x17f09b)||this[_0x5e0289(0xe9)](_0x17f09b[0x0][_0x5e0289(0xf8)])[_0x5e0289(0xf5)](_0x1d0a03,_0x17f09b);return _0x1d0a03;}[_0x5929fa(0xdb)](_0x293f18){const _0xdd6815=_0x5929fa,_0x378204=[];for(;_0x293f18[_0xdd6815(0xf0)][_0xdd6815(0xd2)];){const _0x34c981=this[_0xdd6815(0xfa)][_0xdd6815(0xce)](_0x293f18[_0xdd6815(0xf0)][0x0]);if(!_0x34c981)throw new _0x338765(_0xdd6815(0xea),this,{'type':_0x293f18[_0xdd6815(0xf0)][0x0]});_0x34c981[_0xdd6815(0xdb)](_0x378204,_0x293f18);}return _0x378204[_0xdd6815(0xf1)]((_0xe8fb71,_0x2baaee)=>_0xe8fb71[_0xdd6815(0xdd)]=_0x293f18[_0xdd6815(0xdd)]+_0x2baaee),_0x378204;}[_0x5929fa(0xe9)](_0x3209de){const _0x1575e4=_0x5929fa;return this[_0x1575e4(0xd9)][_0x1575e4(0xce)](_0x3209de);}[_0x5929fa(0xf7)](_0x30dec6,_0x4bf69e,_0x35fabe){const _0x24de8d=_0x5929fa,_0x1c3690=new _0x35fabe(_0x30dec6,_0x4bf69e,this[_0x24de8d(0xe5)][_0x24de8d(0xe8)](_0x4bf69e));this[_0x24de8d(0xdf)](_0x30dec6,_0x4bf69e,_0x1c3690);}[_0x5929fa(0xe2)](_0x32ed75,_0x125706,_0x1d8260){const _0x56a3d1=_0x5929fa,_0x1724d5=new _0x1d8260(_0x32ed75,this);this[_0x56a3d1(0xdf)](_0x32ed75,_0x125706,_0x1724d5);}[_0x5929fa(0xdf)](_0x410909,_0x21d296,_0x197056){const _0x57dc4e=_0x5929fa;this[_0x57dc4e(0xfa)][_0x57dc4e(0xee)](_0x410909,_0x197056),this[_0x57dc4e(0xd9)][_0x57dc4e(0xee)](_0x21d296,_0x197056);}}