@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 • 5.13 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 _0x49effd=_0x5562;(function(_0x11dcab,_0xb8bd9e){const _0x485eb8=_0x5562,_0x5b84cc=_0x11dcab();while(!![]){try{const _0x41aebd=-parseInt(_0x485eb8(0x125))/0x1+-parseInt(_0x485eb8(0x123))/0x2*(-parseInt(_0x485eb8(0x128))/0x3)+parseInt(_0x485eb8(0x11b))/0x4+parseInt(_0x485eb8(0x13e))/0x5*(-parseInt(_0x485eb8(0x13f))/0x6)+-parseInt(_0x485eb8(0x129))/0x7*(parseInt(_0x485eb8(0x144))/0x8)+-parseInt(_0x485eb8(0x122))/0x9*(parseInt(_0x485eb8(0x120))/0xa)+-parseInt(_0x485eb8(0x132))/0xb*(-parseInt(_0x485eb8(0x12b))/0xc);if(_0x41aebd===_0xb8bd9e)break;else _0x5b84cc['push'](_0x5b84cc['shift']());}catch(_0x4bdbc7){_0x5b84cc['push'](_0x5b84cc['shift']());}}}(_0x2aab,0x2cb27));const w=[_0x49effd(0x124),_0x49effd(0x133),_0x49effd(0x11f),_0x49effd(0x11d)],A=[_0x49effd(0x138),_0x49effd(0x11c),_0x49effd(0x139),_0x49effd(0x142),_0x49effd(0x11e),_0x49effd(0x130)];function _0x2aab(){const _0x2d3f52=['DocumentOutline','toolbar','924010ZESQkd','plugins','9OlUNWp','139290LzpKHJ','initialData','300146sAevtS','config','length','15YYIgdd','28nqoHbp','names','62052hJKVHi','extraPlugins','removePlugins','get','requires','WProofreader','filter','539xgJuGR','context','find','pluginName','string','concat','WebSocketGateway','Autosave','constructor','from','prototype','set','155xnhgQM','10278mFFYCZ','builtinPlugins','has','WordCount','every','544104DGqieb','_context','includes','map','1196708wseQxR','RevisionTracker','rootsAttributes'];_0x2aab=function(){return _0x2d3f52;};return _0x2aab();}function _0x5562(_0x22a430,_0x421104){const _0x2aab4a=_0x2aab();return _0x5562=function(_0x55621f,_0x559c19){_0x55621f=_0x55621f-0x11b;let _0x5426c3=_0x2aab4a[_0x55621f];return _0x5426c3;},_0x5562(_0x22a430,_0x421104);}function W(_0x67830b,_0x3ed419,_0x8f9aff,_0x317e4f=[]){const _0x31ac9e=_0x49effd,_0x5e2a2a=_0x31ac9e(0x136)==typeof _0x67830b?_0x8f9aff[_0x31ac9e(0x12e)](_0x67830b)[_0x31ac9e(0x13a)]:_0x67830b[_0x31ac9e(0x13c)][_0x31ac9e(0x13a)];if(_0x3ed419[_0x31ac9e(0x141)](_0x5e2a2a))return _0x3ed419[_0x31ac9e(0x12e)](_0x5e2a2a);_0x3ed419[_0x31ac9e(0x13d)](_0x5e2a2a,!0x0);const _0x2eff56=[...A,..._0x317e4f][_0x31ac9e(0x147)](_0x34d59e=>{const _0x489655=_0x31ac9e;if(_0x8f9aff[_0x489655(0x141)](_0x34d59e))return _0x8f9aff[_0x489655(0x12e)](_0x34d59e)[_0x489655(0x13a)];})[_0x31ac9e(0x131)](_0x2daf4b=>_0x2daf4b);if(_0x5e2a2a&&_0x2eff56[_0x31ac9e(0x146)](_0x5e2a2a))return _0x3ed419[_0x31ac9e(0x13d)](_0x5e2a2a,!0x1),!0x1;if(!_0x5e2a2a[_0x31ac9e(0x12f)])return _0x3ed419[_0x31ac9e(0x13d)](_0x5e2a2a,!0x0),!0x0;const _0x1862bd=_0x5e2a2a[_0x31ac9e(0x12f)][_0x31ac9e(0x143)](_0x21088c=>W(_0x21088c,_0x3ed419,_0x8f9aff,_0x317e4f));return _0x3ed419[_0x31ac9e(0x13d)](_0x5e2a2a,_0x1862bd),_0x1862bd;}export function sanitizeEditorConfig(_0xa512b8,_0x4ca3a9){const _0xd8744=_0x49effd,_0x37aafe={};for(const _0x2532b7 of _0xa512b8[_0xd8744(0x126)][_0xd8744(0x12a)]())w[_0xd8744(0x146)](_0x2532b7)||(_0x37aafe[_0x2532b7]=_0xa512b8[_0xd8744(0x126)][_0xd8744(0x12e)](_0x2532b7));const _0x25638d=_0x37aafe[_0xd8744(0x121)]||[],_0x134280=_0xa512b8[_0xd8744(0x13a)][_0xd8744(0x140)]||[],_0x277b82=_0x25638d[_0xd8744(0x127)]?_0x25638d:_0x134280,_0x1f753d=_0x37aafe[_0xd8744(0x12c)]||[];delete _0x37aafe[_0xd8744(0x12c)];const _0x4a6596=_0x37aafe[_0xd8744(0x12d)]||[];delete _0x37aafe[_0xd8744(0x12d)];const _0x17b1ba=_0xa512b8[_0xd8744(0x145)][_0xd8744(0x126)][_0xd8744(0x12e)](_0xd8744(0x121))||[],_0x20feac=_0x277b82[_0xd8744(0x137)](_0x1f753d)[_0xd8744(0x137)](_0x17b1ba)[_0xd8744(0x147)](_0x5c0d3f=>_0xd8744(0x136)==typeof _0x5c0d3f?_0x134280[_0xd8744(0x134)](_0x55c473=>_0x55c473[_0xd8744(0x135)]==_0x5c0d3f):_0x5c0d3f)[_0xd8744(0x131)](_0x4a1c30=>!_0x4a6596[_0xd8744(0x146)](_0x4a1c30)&&!_0x4a6596[_0xd8744(0x146)](_0x4a1c30[_0xd8744(0x135)])),_0x1fe466=Array[_0xd8744(0x13b)](new Set(_0x20feac)),_0x400693=new Map();return _0x37aafe[_0xd8744(0x121)]=_0x1fe466[_0xd8744(0x131)](_0x56580d=>W(_0x56580d,_0x400693,_0xa512b8[_0xd8744(0x121)],_0x4ca3a9)),_0x37aafe;}