@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.18 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 _0x3dee15=_0x2276;(function(_0x5e01e9,_0x13d692){const _0x373e70=_0x2276,_0x19d588=_0x5e01e9();while(!![]){try{const _0x86df76=-parseInt(_0x373e70(0x1b3))/0x1+parseInt(_0x373e70(0x1c2))/0x2*(-parseInt(_0x373e70(0x1ce))/0x3)+-parseInt(_0x373e70(0x1bd))/0x4*(parseInt(_0x373e70(0x1b4))/0x5)+-parseInt(_0x373e70(0x1c3))/0x6*(parseInt(_0x373e70(0x1c4))/0x7)+-parseInt(_0x373e70(0x1b9))/0x8*(parseInt(_0x373e70(0x1ca))/0x9)+parseInt(_0x373e70(0x1d4))/0xa*(-parseInt(_0x373e70(0x1bf))/0xb)+parseInt(_0x373e70(0x1af))/0xc;if(_0x86df76===_0x13d692)break;else _0x19d588['push'](_0x19d588['shift']());}catch(_0x16bf31){_0x19d588['push'](_0x19d588['shift']());}}}(_0x2ff5,0x1bbf7));function _0x2276(_0x387c0d,_0x518e69){const _0x2ff51c=_0x2ff5();return _0x2276=function(_0x22760e,_0x31ed66){_0x22760e=_0x22760e-0x1ac;let _0x3b5117=_0x2ff51c[_0x22760e];return _0x3b5117;},_0x2276(_0x387c0d,_0x518e69);}import{isViewWithFocusCycler as _0x3e68f2}from'ckeditor5/src/ui.js';export const FOCUS_ANNOTATION_KEYSTROKE=_0x3dee15(0x1cf);export default function T(_0x499cda,_0x319780){const _0x13c561=_0x3dee15,_0x4b1c49=_0x499cda[_0x13c561(0x1c8)];_0x499cda[_0x13c561(0x1ad)][_0x13c561(0x1ae)](_0x4b1c49);for(const _0x58ce62 of _0x319780)K(_0x499cda,_0x58ce62);_0x319780['on'](_0x13c561(0x1ba),(_0x2a1495,_0x450924)=>{const _0x3ef641=_0x13c561;for(const _0x1637d8 of _0x450924[_0x3ef641(0x1cd)])_(_0x499cda,_0x1637d8);for(const _0x56845a of Array[_0x3ef641(0x1c0)](_0x450924[_0x3ef641(0x1bc)])[_0x3ef641(0x1bb)]())K(_0x499cda,_0x56845a);}),_0x499cda[_0x13c561(0x1ad)][_0x13c561(0x1c5)](_0x13c561(0x1c6),(_0x284e97,_0x49fe40)=>{const _0x31c484=_0x13c561;_0x4b1c49===_0x284e97[_0x31c484(0x1b5)]&&(_0x499cda[_0x31c484(0x1b1)][_0x31c484(0x1d3)](),_0x49fe40());},{'filter':_0x13f603=>_0x13f603[_0x13c561(0x1b5)]===_0x4b1c49}),_0x499cda[_0x13c561(0x1ad)][_0x13c561(0x1c5)](_0x13c561(0x1be),(_0x2a00db,_0x38b9b1)=>{const _0x3cfaf7=_0x13c561;_0x4b1c49!==_0x2a00db[_0x3cfaf7(0x1b5)]?_0x499cda[_0x3cfaf7(0x1b8)]():_0x499cda[_0x3cfaf7(0x1cc)](_0x3cfaf7(0x1b2)),_0x38b9b1();}),_0x499cda[_0x13c561(0x1ad)][_0x13c561(0x1c5)](_0x13c561(0x1d1),(_0x3cf9ee,_0x23f2c4)=>{const _0x4feff6=_0x13c561;_0x4b1c49===_0x3cf9ee[_0x4feff6(0x1b5)]&&(_0x499cda[_0x4feff6(0x1cc)](_0x4feff6(0x1d1)),_0x23f2c4());}),_0x499cda[_0x13c561(0x1ad)][_0x13c561(0x1c5)](_0x13c561(0x1cb),(_0x41e195,_0x29986c)=>{const _0x51a019=_0x13c561;_0x4b1c49===_0x41e195[_0x51a019(0x1b5)]&&(_0x499cda[_0x51a019(0x1cc)](_0x51a019(0x1cb)),_0x29986c());});}function _0x2ff5(){const _0x3ac7e6=['keystrokes','listenTo','12475248EREKHh','stopListening','focusCycler','escape','57227VZzqap','14045FLDgYP','target','unchain','remove','focus','144kykMem','change','reverse','added','240oHXfjx','esc','11XUMhiO','from','actions','74924UOpxqp','726aVRTYh','6979xdTiyl','set','enter','isRendered','element','focusTracker','75375eYJuJc','arrowup','fire','removed','18DCZjwC','Ctrl+Shift+E','keys','arrowdown','add','focusFirst','2040230SriyyY','chain'];_0x2ff5=function(){return _0x3ac7e6;};return _0x2ff5();}function K(_0xef23e,_0x258adf){const _0x52668b=_0x3dee15;_0x258adf[_0x52668b(0x1c7)]&&(_0xef23e[_0x52668b(0x1c9)][_0x52668b(0x1d2)](_0x258adf[_0x52668b(0x1c8)]),_0xef23e[_0x52668b(0x1ad)][_0x52668b(0x1ae)](_0x258adf[_0x52668b(0x1c8)]),_0x3e68f2(_0x258adf)&&function(_0x55bc44,_0x5d6571){const _0x159165=_0x52668b,_0x77c7d1=_0x55bc44[_0x159165(0x1c1)],_0x2a57a2=_0x5d6571[_0x159165(0x1c1)];for(const _0xc14017 of Object[_0x159165(0x1d0)](_0x77c7d1))if(_0xc14017 in _0x2a57a2&&_0x77c7d1[_0xc14017]!==_0x2a57a2[_0xc14017])return!0x1;return!0x0;}(_0xef23e[_0x52668b(0x1b1)],_0x258adf[_0x52668b(0x1b1)])&&_0xef23e[_0x52668b(0x1b1)][_0x52668b(0x1ac)](_0x258adf[_0x52668b(0x1b1)]));}function _(_0x20ed67,_0x3bfcd4){const _0x2abae2=_0x3dee15;_0x20ed67[_0x2abae2(0x1c9)][_0x2abae2(0x1b7)](_0x3bfcd4[_0x2abae2(0x1c8)]),_0x20ed67[_0x2abae2(0x1ad)][_0x2abae2(0x1b0)](_0x3bfcd4[_0x2abae2(0x1c8)]),_0x3e68f2(_0x3bfcd4)&&_0x20ed67[_0x2abae2(0x1b1)][_0x2abae2(0x1b6)](_0x3bfcd4[_0x2abae2(0x1b1)]);}