UNPKG

@ckeditor/ckeditor5-operations-compressor

Version:

CKEditor 5 operations compressor for real-time collaboration.

23 lines 3.89 kB
/* * Copyright (c) 2003-2026, 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(_0x573ce5,_0x18be78){const _0xf31ee0=_0x107f,_0x241c6d=_0x573ce5();while(!![]){try{const _0x26d968=-parseInt(_0xf31ee0(0x10f))/0x1+parseInt(_0xf31ee0(0x106))/0x2*(-parseInt(_0xf31ee0(0x101))/0x3)+parseInt(_0xf31ee0(0x10d))/0x4+parseInt(_0xf31ee0(0x107))/0x5+-parseInt(_0xf31ee0(0x111))/0x6*(parseInt(_0xf31ee0(0x100))/0x7)+parseInt(_0xf31ee0(0x108))/0x8+-parseInt(_0xf31ee0(0x10e))/0x9*(-parseInt(_0xf31ee0(0x10b))/0xa);if(_0x26d968===_0x18be78)break;else _0x241c6d['push'](_0x241c6d['shift']());}catch(_0x15ac6a){_0x241c6d['push'](_0x241c6d['shift']());}}}(_0x153a,0x8d1a2));function _0x153a(){const _0x178df0=['rootGraveyard','8HmaOKV','789460tDeNrQ','646144PmtYWy','root','path','13115940yxsTqt','length','250972MPmEcn','9JVzJzW','199858bZGxFu','nodes','1009998bEVYDT','7ABRLop','500139rfIqHj','$graveyard','main','rootMain'];_0x153a=function(){return _0x178df0;};return _0x153a();}import{cloneDeep as _0x470441,isEqual as _0x140c11,isObject as _0x3aae00}from'es-toolkit/compat';export function getPositionShiftedBy(_0x5e666f,_0x28b324){const _0x50d11f=_0x107f,_0x337ed1=_0x470441(_0x5e666f);return _0x337ed1[_0x50d11f(0x10a)][_0x337ed1[_0x50d11f(0x10a)][_0x50d11f(0x10c)]-0x1]+=_0x28b324,_0x337ed1;}export function arePositionsEqual(_0x4267a3,_0x40593e){const _0x4c3718=_0x107f;return _0x4267a3[_0x4c3718(0x109)]===_0x40593e[_0x4c3718(0x109)]&&_0x140c11(_0x4267a3[_0x4c3718(0x10a)],_0x40593e[_0x4c3718(0x10a)]);}export function parsePositionBeforeCompression(_0x28f0ca){const _0x59f33d=_0x107f;P(_0x28f0ca,_0x1b5ec2=>(_0x59f33d(0x103)==_0x1b5ec2[_0x59f33d(0x109)]?(_0x1b5ec2[_0x59f33d(0x104)]=!0x0,delete _0x1b5ec2[_0x59f33d(0x109)]):_0x59f33d(0x102)==_0x1b5ec2[_0x59f33d(0x109)]&&(_0x1b5ec2[_0x59f33d(0x105)]=!0x0,delete _0x1b5ec2[_0x59f33d(0x109)]),_0x1b5ec2));}function _0x107f(_0x290eb6,_0x4b88d4){const _0x153adf=_0x153a();return _0x107f=function(_0x107fc1,_0x526643){_0x107fc1=_0x107fc1-0x100;let _0x145b73=_0x153adf[_0x107fc1];return _0x145b73;},_0x107f(_0x290eb6,_0x4b88d4);}export function parsePositionAfterCompression(_0x411772){const _0x43b519=_0x107f;P(_0x411772,_0x5bafa0=>(_0x5bafa0[_0x43b519(0x104)]?(_0x5bafa0[_0x43b519(0x109)]=_0x43b519(0x103),delete _0x5bafa0[_0x43b519(0x104)]):_0x5bafa0[_0x43b519(0x105)]&&(_0x5bafa0[_0x43b519(0x109)]=_0x43b519(0x102),delete _0x5bafa0[_0x43b519(0x105)]),_0x5bafa0));}function P(_0x2de68a,_0x59ba78){const _0x4a0635=_0x107f;for(const _0xb658ce in _0x2de68a){const _0x3d7de4=_0x2de68a[_0xb658ce];_0x4a0635(0x110)!==_0xb658ce&&_0x3aae00(_0x3d7de4)&&(_0x3d7de4[_0x4a0635(0x10a)]&&(_0x3d7de4[_0x4a0635(0x109)]||_0x3d7de4[_0x4a0635(0x104)]||_0x3d7de4[_0x4a0635(0x105)])?_0x2de68a[_0xb658ce]=_0x59ba78(_0x3d7de4):P(_0x3d7de4,_0x59ba78));}return _0x2de68a;}