UNPKG

@ckeditor/ckeditor5-collaboration-core

Version:

Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.

23 lines 3.66 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 _0x349e(){const _0x3ec625=['1338290YggAPU','toString','number','keys','22TvFBhT','588418VFMTqU','charCodeAt','618XQPsCC','isArray','9oplxRm','2541970AksSVS','sign','object','237044kPyfbA','23261CTlxMp','641360jMvaEO','4rWjnFa','818370mcWTll','string','sort'];_0x349e=function(){return _0x3ec625;};return _0x349e();}(function(_0x5e8fd7,_0xc70e7d){const _0x48f653=_0x5749,_0x4bf922=_0x5e8fd7();while(!![]){try{const _0x3efd84=parseInt(_0x48f653(0xd1))/0x1+-parseInt(_0x48f653(0xdd))/0x2+-parseInt(_0x48f653(0xd5))/0x3*(parseInt(_0x48f653(0xd4))/0x4)+-parseInt(_0x48f653(0xd8))/0x5+parseInt(_0x48f653(0xdf))/0x6*(parseInt(_0x48f653(0xd2))/0x7)+-parseInt(_0x48f653(0xd3))/0x8*(parseInt(_0x48f653(0xe1))/0x9)+parseInt(_0x48f653(0xe2))/0xa*(parseInt(_0x48f653(0xdc))/0xb);if(_0x3efd84===_0xc70e7d)break;else _0x4bf922['push'](_0x4bf922['shift']());}catch(_0x481971){_0x4bf922['push'](_0x4bf922['shift']());}}}(_0x349e,0x2a350));export function hashObject(_0x37171c){let _0x3db3dc=0x0,_0x55eedb=0x0;for(const _0x2c9f71 of ne(_0x37171c))_0x3db3dc=(_0x3db3dc<<0x5)-_0x3db3dc+_0x2c9f71,_0x3db3dc&=_0x3db3dc,[_0x3db3dc,_0x55eedb]=[_0x55eedb,_0x3db3dc];return ie(_0x3db3dc)+ie(_0x55eedb);}function*ee(_0x244175){const _0x18a1a9=_0x5749;null==_0x244175||null==_0x244175?yield 0x12b9b0a1:0x0===_0x244175||!0x1===_0x244175?yield 0x0:0x1===_0x244175||0x1==_0x244175?yield 0x1:Array[_0x18a1a9(0xe0)](_0x244175)?yield*function*(_0x44b77a){for(const _0xc69ce9 of _0x44b77a)yield*ee(_0xc69ce9);}(_0x244175):_0x18a1a9(0xd0)==typeof _0x244175?yield*ne(_0x244175):_0x18a1a9(0xd6)==typeof _0x244175?yield*oe(_0x244175):_0x18a1a9(0xda)==typeof _0x244175&&(yield _0x244175);}function*ne(_0x1706c6){const _0x2c3354=_0x5749;if(yield te('{'),_0x1706c6){const _0x89ea51=Object[_0x2c3354(0xdb)](_0x1706c6)[_0x2c3354(0xd7)]();for(const _0xf6f741 of _0x89ea51){yield*oe(_0xf6f741),yield te(':');const _0x2c5a5a=_0x1706c6[_0xf6f741];yield*ee(_0x2c5a5a);}}yield te('}');}function*oe(_0x13cd68){yield te('\x22');for(const _0x239afa of _0x13cd68)yield te(_0x239afa);yield te('\x22');}function _0x5749(_0x213ee2,_0x4bc817){const _0x349ec2=_0x349e();return _0x5749=function(_0x57494a,_0x410f27){_0x57494a=_0x57494a-0xcf;let _0x4dd57f=_0x349ec2[_0x57494a];return _0x4dd57f;},_0x5749(_0x213ee2,_0x4bc817);}function te(_0x343552){const _0x3a85d2=_0x5749;return _0x343552[_0x3a85d2(0xde)](0x0);}function ie(_0xb6e5ab){const _0x569d60=_0x5749;return(_0xb6e5ab*=Math[_0x569d60(0xcf)](_0xb6e5ab))[_0x569d60(0xd9)](0x24);}