UNPKG

@ckeditor/ckeditor5-export-inline-styles

Version:

The export with inline styles feature for CKEditor 5.

23 lines 3.57 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 _0x5f2c(){const _0x3f6f6e=['561190DUgTMD','2750010lqEmFE','118mNFuhn','replace','7359YeQMgH','7MjYxmp','trim','919208DkEWpy','length','3333256mYiUla','3454NfVeZD','1996725QBMWVI','push','6pExCdp','endsWith','13128oCstdc','81ktrHJv','filter','slice'];_0x5f2c=function(){return _0x3f6f6e;};return _0x5f2c();}(function(_0x36d13a,_0x17a42a){const _0x4b9c15=_0x24e9,_0x292af5=_0x36d13a();while(!![]){try{const _0x337af6=parseInt(_0x4b9c15(0x1b4))/0x1*(parseInt(_0x4b9c15(0x1c5))/0x2)+-parseInt(_0x4b9c15(0x1bd))/0x3*(-parseInt(_0x4b9c15(0x1b7))/0x4)+-parseInt(_0x4b9c15(0x1bb))/0x5+parseInt(_0x4b9c15(0x1c4))/0x6+-parseInt(_0x4b9c15(0x1b5))/0x7*(parseInt(_0x4b9c15(0x1b9))/0x8)+-parseInt(_0x4b9c15(0x1c0))/0x9*(parseInt(_0x4b9c15(0x1c3))/0xa)+-parseInt(_0x4b9c15(0x1ba))/0xb*(-parseInt(_0x4b9c15(0x1bf))/0xc);if(_0x337af6===_0x17a42a)break;else _0x292af5['push'](_0x292af5['shift']());}catch(_0x17e8ae){_0x292af5['push'](_0x292af5['shift']());}}}(_0x5f2c,0x5b723));export function splitByTopLevelComma(_0x22aeeb){const _0x2c5801=_0x24e9,_0x469b9e=[];let _0x78c4b6='',_0x328f65=0x0;for(;_0x328f65<_0x22aeeb[_0x2c5801(0x1b8)];){const _0x2191ad=_0x22aeeb[_0x328f65];if('('===_0x2191ad){const _0x12fffa=findMatchingParenthesis(_0x22aeeb,_0x328f65+0x1);if(-0x1===_0x12fffa)return[];_0x78c4b6+=_0x22aeeb[_0x2c5801(0x1c2)](_0x328f65,_0x12fffa+0x1),_0x328f65=_0x12fffa+0x1;}else','!==_0x2191ad||_0x78c4b6[_0x2c5801(0x1be)]('\x5c')?(_0x78c4b6+=_0x2191ad,_0x328f65++):(_0x469b9e[_0x2c5801(0x1bc)](_0x78c4b6[_0x2c5801(0x1b6)]()),_0x78c4b6='',_0x328f65++);}return _0x78c4b6[_0x2c5801(0x1b6)]()&&_0x469b9e[_0x2c5801(0x1bc)](_0x78c4b6[_0x2c5801(0x1b6)]()),_0x469b9e[_0x2c5801(0x1c1)](Boolean);}function _0x24e9(_0x530344,_0x3aeff7){const _0x5f2ca2=_0x5f2c();return _0x24e9=function(_0x24e977,_0x55afc8){_0x24e977=_0x24e977-0x1b4;let _0x5449bb=_0x5f2ca2[_0x24e977];return _0x5449bb;},_0x24e9(_0x530344,_0x3aeff7);}export function findMatchingParenthesis(_0x4ffbaa,_0x253b71){const _0x3ba679=_0x24e9;let _0x127144=0x1;for(let _0x583c49=_0x253b71;_0x583c49<_0x4ffbaa[_0x3ba679(0x1b8)];_0x583c49++){const _0xe94f22=_0x4ffbaa[_0x583c49];if('('===_0xe94f22)_0x127144++;else{if(')'===_0xe94f22&&(_0x127144--,0x0===_0x127144))return _0x583c49;}}return-0x1;}export function dropImportantStyleSuffix(_0x55b703){const _0x8b08ce=_0x24e9;return _0x55b703[_0x8b08ce(0x1c6)](/!\s*important/i,'')[_0x8b08ce(0x1b6)]();}