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 5.07 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. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ const _0x2fc392=_0x2836;(function(_0x217288,_0x5b6ffd){const _0x658600=_0x2836,_0x4fdcbe=_0x217288();while(!![]){try{const _0x168947=parseInt(_0x658600(0x94))/0x1+-parseInt(_0x658600(0x87))/0x2*(-parseInt(_0x658600(0xa0))/0x3)+-parseInt(_0x658600(0x96))/0x4*(-parseInt(_0x658600(0x99))/0x5)+parseInt(_0x658600(0x8c))/0x6*(-parseInt(_0x658600(0x86))/0x7)+-parseInt(_0x658600(0x74))/0x8+-parseInt(_0x658600(0x77))/0x9*(-parseInt(_0x658600(0x9e))/0xa)+parseInt(_0x658600(0x95))/0xb*(-parseInt(_0x658600(0x8e))/0xc);if(_0x168947===_0x5b6ffd)break;else _0x4fdcbe['push'](_0x4fdcbe['shift']());}catch(_0x3be2b6){_0x4fdcbe['push'](_0x4fdcbe['shift']());}}}(_0x2aca,0x8c650));const W=[_0x2fc392(0x81),_0x2fc392(0x79),_0x2fc392(0x9c),_0x2fc392(0x75)],D=[_0x2fc392(0x78),_0x2fc392(0x7b),_0x2fc392(0x7c),_0x2fc392(0x8f),_0x2fc392(0x92),_0x2fc392(0x82)];function S(_0x559b11,_0x1ac163,_0x1fc193,_0x337625=[]){const _0xf10047=_0x2fc392,_0x3864a0=_0xf10047(0x88)==typeof _0x559b11?_0x1fc193[_0xf10047(0x98)](_0x559b11)[_0xf10047(0x90)]:_0x559b11[_0xf10047(0x76)][_0xf10047(0x90)];if(_0x1ac163[_0xf10047(0x7f)](_0x3864a0))return _0x1ac163[_0xf10047(0x98)](_0x3864a0);_0x1ac163[_0xf10047(0x7a)](_0x3864a0,!0x0);const _0x58b492=[...D,..._0x337625][_0xf10047(0x7d)](_0x4d1b1a=>{const _0x47bad4=_0xf10047;if(_0x1fc193[_0x47bad4(0x7f)](_0x4d1b1a))return _0x1fc193[_0x47bad4(0x98)](_0x4d1b1a)[_0x47bad4(0x90)];})[_0xf10047(0x85)](_0x5ee3cb=>_0x5ee3cb);if(_0x3864a0&&_0x58b492[_0xf10047(0x89)](_0x3864a0))return _0x1ac163[_0xf10047(0x7a)](_0x3864a0,!0x1),!0x1;if(!_0x3864a0[_0xf10047(0x7e)])return _0x1ac163[_0xf10047(0x7a)](_0x3864a0,!0x0),!0x0;const _0x3997ac=_0x3864a0[_0xf10047(0x7e)][_0xf10047(0x8d)](_0x32cfcd=>S(_0x32cfcd,_0x1ac163,_0x1fc193,_0x337625));return _0x1ac163[_0xf10047(0x7a)](_0x3864a0,_0x3997ac),_0x3997ac;}function _0x2836(_0x4043ee,_0x55af46){const _0x2aca84=_0x2aca();return _0x2836=function(_0x2836c3,_0x17c7d8){_0x2836c3=_0x2836c3-0x74;let _0xa984aa=_0x2aca84[_0x2836c3];return _0xa984aa;},_0x2836(_0x4043ee,_0x55af46);}function _0x2aca(){const _0x285c92=['Autosave','map','requires','has','config','initialData','WProofreader','names','pluginName','filter','14HgkZqA','10Xhqoeo','string','includes','concat','plugins','17364GVvRTa','every','168iLQiwH','WordCount','constructor','find','DocumentOutline','_context','641618ePkBig','463012crOlJA','4SvRdWI','from','get','93295zlCAmx','length','extraPlugins','toolbar','builtinPlugins','31380XMQrEH','removePlugins','52551SHCoRX','4228352aLSrsc','rootsAttributes','prototype','2727NpIwJR','WebSocketGateway','context','set','RevisionTracker'];_0x2aca=function(){return _0x285c92;};return _0x2aca();}export default function C(_0x5977ad,_0x3d4caa){const _0x15476f=_0x2fc392,_0x1561eb={};for(const _0x88f0ef of _0x5977ad[_0x15476f(0x80)][_0x15476f(0x83)]())W[_0x15476f(0x89)](_0x88f0ef)||(_0x1561eb[_0x88f0ef]=_0x5977ad[_0x15476f(0x80)][_0x15476f(0x98)](_0x88f0ef));const _0x314a9a=_0x1561eb[_0x15476f(0x8b)]||[],_0x5c417e=_0x5977ad[_0x15476f(0x90)][_0x15476f(0x9d)]||[],_0x3352ab=_0x314a9a[_0x15476f(0x9a)]?_0x314a9a:_0x5c417e,_0x1b7feb=_0x1561eb[_0x15476f(0x9b)]||[];delete _0x1561eb[_0x15476f(0x9b)];const _0x9a95d3=_0x1561eb[_0x15476f(0x9f)]||[];delete _0x1561eb[_0x15476f(0x9f)];const _0x5ecb9c=_0x5977ad[_0x15476f(0x93)][_0x15476f(0x80)][_0x15476f(0x98)](_0x15476f(0x8b))||[],_0x442876=_0x3352ab[_0x15476f(0x8a)](_0x1b7feb)[_0x15476f(0x8a)](_0x5ecb9c)[_0x15476f(0x7d)](_0x23face=>_0x15476f(0x88)==typeof _0x23face?_0x5c417e[_0x15476f(0x91)](_0x604d55=>_0x604d55[_0x15476f(0x84)]==_0x23face):_0x23face)[_0x15476f(0x85)](_0x44e231=>!_0x9a95d3[_0x15476f(0x89)](_0x44e231)&&!_0x9a95d3[_0x15476f(0x89)](_0x44e231[_0x15476f(0x84)])),_0xda90bd=Array[_0x15476f(0x97)](new Set(_0x442876)),_0x1e38c8=new Map();return _0x1561eb[_0x15476f(0x8b)]=_0xda90bd[_0x15476f(0x85)](_0x42f143=>S(_0x42f143,_0x1e38c8,_0x5977ad[_0x15476f(0x8b)],_0x3d4caa)),_0x1561eb;}