UNPKG

@ckeditor/ckeditor5-operations-compressor

Version:

CKEditor 5 operations compressor for real-time collaboration.

23 lines 4.63 kB
/* * 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 _0x2073(_0x3bc9af,_0x563f05){const _0x17cf04=_0x17cf();return _0x2073=function(_0x207356,_0x522c69){_0x207356=_0x207356-0x155;let _0x54dcc9=_0x17cf04[_0x207356];return _0x54dcc9;},_0x2073(_0x3bc9af,_0x563f05);}const _0x4800f4=_0x2073;(function(_0x4bcc38,_0x288ed6){const _0x35b130=_0x2073,_0x4ce9ee=_0x4bcc38();while(!![]){try{const _0x1bd53c=parseInt(_0x35b130(0x166))/0x1*(parseInt(_0x35b130(0x15e))/0x2)+parseInt(_0x35b130(0x168))/0x3+parseInt(_0x35b130(0x15c))/0x4+parseInt(_0x35b130(0x15d))/0x5+parseInt(_0x35b130(0x164))/0x6*(-parseInt(_0x35b130(0x170))/0x7)+parseInt(_0x35b130(0x16b))/0x8*(parseInt(_0x35b130(0x161))/0x9)+parseInt(_0x35b130(0x162))/0xa*(-parseInt(_0x35b130(0x169))/0xb);if(_0x1bd53c===_0x288ed6)break;else _0x4ce9ee['push'](_0x4ce9ee['shift']());}catch(_0x269cf6){_0x4ce9ee['push'](_0x4ce9ee['shift']());}}}(_0x17cf,0xddcb3));import _0x4a6e31 from'./operationcompressor.js';import{parsePositionBeforeCompression as _0x24e923,parsePositionAfterCompression as _0x539707}from'../utils.js';function _0x17cf(){const _0xb8e699=['11oRMnhY','every','8oMVSDt','__className','types','shift','attributesJson','7yxDOID','_protobufDescriptor','_id','children','decompress','_operationName','push','_serializeNodesAttributes','keys','compress','nodes','_deserializeNodesAttributes','attributesBoolean','parse','902336NDvCNV','1648315VmEkGg','84674YuxXuO','buffers','_areValuesBoolean','12796299NmaEtN','13186100knNTkK','stringify','8219448mLCtmu','attributes','13gbxtWt','boolean','3208638zhHccW'];_0x17cf=function(){return _0xb8e699;};return _0x17cf();}export default class i extends _0x4a6e31{[_0x4800f4(0x157)](_0x34631a,_0x505e2c){const _0x1108c5=_0x4800f4,_0x10fd4a=_0x505e2c[_0x1108c5(0x16e)]();return this[_0x1108c5(0x155)](_0x10fd4a[_0x1108c5(0x158)]),_0x24e923(_0x10fd4a),_0x34631a[_0x1108c5(0x15f)][_0x1108c5(0x176)](this[_0x1108c5(0x171)][_0x1108c5(0x157)](_0x10fd4a)),_0x34631a[_0x1108c5(0x16d)][_0x1108c5(0x176)](this[_0x1108c5(0x172)]),!0x0;}[_0x4800f4(0x174)](_0xe79499,_0x502e65){const _0x3d11f6=_0x4800f4,{types:_0x1e2534,buffers:_0x4b51cf}=_0x502e65,_0xa5c0a8=this[_0x3d11f6(0x171)][_0x3d11f6(0x174)](_0x4b51cf[_0x3d11f6(0x16e)]());_0x1e2534[_0x3d11f6(0x16e)](),_0xa5c0a8[_0x3d11f6(0x158)]||(_0xa5c0a8[_0x3d11f6(0x158)]=[]),this[_0x3d11f6(0x159)](_0xa5c0a8[_0x3d11f6(0x158)]),_0x539707(_0xa5c0a8),_0xa5c0a8[_0x3d11f6(0x16c)]=this[_0x3d11f6(0x175)],_0xe79499[_0x3d11f6(0x176)](_0xa5c0a8);}[_0x4800f4(0x155)](_0x5117a5){const _0x4ac209=_0x4800f4;for(const _0x4e5a86 of _0x5117a5){if(_0x4e5a86[_0x4ac209(0x165)]){const _0x5371cb=_0x4e5a86[_0x4ac209(0x165)];this[_0x4ac209(0x160)](_0x5371cb)?_0x4e5a86[_0x4ac209(0x15a)]=_0x5371cb:_0x4e5a86[_0x4ac209(0x16f)]=JSON[_0x4ac209(0x163)](_0x5371cb);}_0x4e5a86[_0x4ac209(0x173)]&&this[_0x4ac209(0x155)](_0x4e5a86[_0x4ac209(0x173)]);}}[_0x4800f4(0x159)](_0x5a6a6f){const _0x2bd93c=_0x4800f4;for(const _0x5c821e of _0x5a6a6f)(_0x5c821e[_0x2bd93c(0x15a)]||_0x5c821e[_0x2bd93c(0x16f)])&&(_0x5c821e[_0x2bd93c(0x15a)]?(_0x5c821e[_0x2bd93c(0x165)]=_0x5c821e[_0x2bd93c(0x15a)],delete _0x5c821e[_0x2bd93c(0x15a)]):(_0x5c821e[_0x2bd93c(0x165)]=JSON[_0x2bd93c(0x15b)](_0x5c821e[_0x2bd93c(0x16f)]),delete _0x5c821e[_0x2bd93c(0x16f)])),_0x5c821e[_0x2bd93c(0x173)]&&this[_0x2bd93c(0x159)](_0x5c821e[_0x2bd93c(0x173)]);}[_0x4800f4(0x160)](_0x19f9af){const _0x53c709=_0x4800f4;return Object[_0x53c709(0x156)](_0x19f9af)[_0x53c709(0x16a)](_0x1c96d2=>_0x53c709(0x167)==typeof _0x19f9af[_0x1c96d2]);}}