@ckeditor/ckeditor5-export-inline-styles 48.8.1-alpha.3 → 48.8.1-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as _0x56a642,Plugin as _0x114614}from'@ckeditor/ckeditor5-core/dist/index.js';import{collectStylesheets as _0xe1b26,createElement as _0x2f78f9,uid as _0x1d4fcd}from'@ckeditor/ckeditor5-utils/dist/index.js';import{StylesMap as _0x55b4cf,addMarginStylesRules as _0x525f5d,addPaddingStylesRules as _0x33479e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{calculate as _0x448677,compare as _0x15e047}from'specificity';function f(_0x50632e){const _0x36bd5a=[];let _0xa5b7d9='',_0x4b403c=0x0;for(;_0x4b403c<_0x50632e['length'];){const _0x3492fb=_0x50632e[_0x4b403c];if('('===_0x3492fb){const _0x2bcbc3=y(_0x50632e,_0x4b403c+0x1);if(-0x1===_0x2bcbc3)return[];_0xa5b7d9+=_0x50632e['slice'](_0x4b403c,_0x2bcbc3+0x1),_0x4b403c=_0x2bcbc3+0x1;}else','!==_0x3492fb||_0xa5b7d9['endsWith']('\x5c')?(_0xa5b7d9+=_0x3492fb,_0x4b403c++):(_0x36bd5a['push'](_0xa5b7d9['trim']()),_0xa5b7d9='',_0x4b403c++);}return _0xa5b7d9['trim']()&&_0x36bd5a['push'](_0xa5b7d9['trim']()),_0x36bd5a['filter'](Boolean);}function y(_0x17edb4,_0x33a46c){let _0x2570ce=0x1;for(let _0x27eccf=_0x33a46c;_0x27eccf<_0x17edb4['length'];_0x27eccf++){const _0x30bbbb=_0x17edb4[_0x27eccf];if('('===_0x30bbbb)_0x2570ce++;else{if(')'===_0x30bbbb&&(_0x2570ce--,0x0===_0x2570ce))return _0x27eccf;}}return-0x1;}function p(_0x4e1492){return _0x4e1492['replace'](/!\s*important/i,'')['trim']();}function w(_0x501c9e,_0x15f958){const _0x4fe9ba=new Map(),_0x2e7a79=_0x1dcf5a=>_0x4fe9ba['has'](_0x1dcf5a)?_0x4fe9ba['get'](_0x1dcf5a):_0x501c9e(_0x1dcf5a);for(const [_0x38ce9e,_0x49cd5e]of _0x15f958['getStylesEntries']())if(_0x49cd5e&&_0x38ce9e['startsWith']('--')){const _0x429392=d(_0x2e7a79,_0x49cd5e);_0x4fe9ba['set'](_0x38ce9e,_0x429392),_0x15f958['remove'](_0x38ce9e);}for(const [_0x40c7ad,_0x2e7f6d]of _0x15f958['getStylesEntries']())if(_0x2e7f6d){const _0x4344d8=d(_0x2e7a79,_0x2e7f6d);_0x15f958['set'](_0x40c7ad,_0x4344d8);}return _0x4fe9ba;}function d(_0x5e062f,_0x1d190f){return function(_0x1189ea,_0x756cca){let _0x32d927='',_0x18f846=0x0;for(;_0x18f846<_0x1189ea['length'];){const _0x130857=_0x1189ea['indexOf']('var(',_0x18f846);if(-0x1===_0x130857){_0x32d927+=_0x1189ea['slice'](_0x18f846);break;}_0x32d927+=_0x1189ea['slice'](_0x18f846,_0x130857);const _0x2cd93c=_0x130857+0x4,_0x1c4bd0=y(_0x1189ea,_0x2cd93c);_0x32d927+=_0x756cca(_0x1189ea['substring'](_0x2cd93c,_0x1c4bd0)),_0x18f846=_0x1c4bd0+0x1;}return _0x32d927;}(_0x1d190f,_0x1c68d3=>{const [_0x56da75,_0x3a4ba5]=f(_0x1c68d3),_0x2ca196=_0x5e062f(_0x56da75);return void 0x0!==_0x2ca196?_0x2ca196:_0x3a4ba5?d(_0x5e062f,_0x3a4ba5):'var('+_0x56da75+')';});}async function m(_0x1faf46){const _0x28dc89=[await _0xe1b26(_0x1faf46['stylesheets']),_0x1faf46['inlineCss']]['filter'](_0x1d4abd=>_0x1d4abd&&_0x1d4abd['length'])['join']('\x0a'),_0xbe805f=await async function(_0xd6ab8,_0x5b5817){const _0x35ba3b=new CSSStyleSheet();return await _0x35ba3b['replace'](_0x5b5817),S(Array['from'](_0x35ba3b['cssRules'])['filter'](_0x99f178=>_0x99f178 instanceof CSSStyleRule))['flatMap'](({selectorText:_0x306f73,contentCssText:_0x2b454b})=>{const _0x5287b7=f(_0x306f73),_0x58b4c6=new _0x55b4cf(_0xd6ab8)['setTo'](_0x2b454b);return _0x5287b7['map'](_0x3bbf9d=>{const _0x1af132=function(_0x413d3d){const _0x55dcb0=':where(';let _0x15fbe7=_0x413d3d,_0x33c1b2=0x0;for(let _0x4b71ec=0x0;_0x4b71ec<0x64;_0x4b71ec++){const _0x4c2db7=_0x15fbe7['indexOf'](_0x55dcb0,_0x33c1b2);if(-0x1===_0x4c2db7)break;let _0x3302a1=0x0;for(let _0x1e5590=0x0;_0x1e5590<_0x4c2db7;_0x1e5590++)'('===_0x15fbe7[_0x1e5590]?_0x3302a1++:')'===_0x15fbe7[_0x1e5590]&&_0x3302a1--;if(_0x3302a1>0x0){_0x33c1b2=_0x4c2db7+_0x55dcb0['length'];continue;}let _0x2f708c=-0x1;for(let _0x45caa5=_0x4c2db7+_0x55dcb0['length'],_0x22e956=0x1;_0x45caa5<_0x15fbe7['length'];_0x45caa5++)if('('===_0x15fbe7[_0x45caa5]?_0x22e956++:')'===_0x15fbe7[_0x45caa5]&&_0x22e956--,!_0x22e956){_0x2f708c=_0x45caa5;break;}-0x1!==_0x2f708c?(_0x15fbe7=_0x15fbe7['slice'](0x0,_0x4c2db7)+_0x15fbe7['slice'](_0x2f708c+0x1),_0x33c1b2=_0x4c2db7):_0x33c1b2=_0x4c2db7+_0x55dcb0['length'];}return _0x15fbe7['replace'](/\s+/g,'\x20')['trim']();}(_0x3bbf9d),_0xabe3e4=_0x1af132?_0x448677(_0x1af132)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0];return{'stylesMap':_0x58b4c6,'flatSelector':_0x3bbf9d,'specificity':_0xabe3e4};});})['sort']((_0x2fdae5,_0x9ca253)=>_0x15e047(_0x2fdae5['specificity'],_0x9ca253['specificity']));}(_0x1faf46['stylesProcessor'],_0x28dc89);return{'parsedCssRules':_0xbe805f,'rootCssVariables':function(_0x8034be){const _0x3b1aed=new Map();for(const {stylesMap:_0x5358b5,flatSelector:_0xbe9538}of _0x8034be){if(':root'!==_0xbe9538)continue;const _0x56ae6b=w(_0x3b1aed['get']['bind'](_0x3b1aed),_0x5358b5);for(const [_0x3da515,_0x6c5f7d]of _0x56ae6b)_0x3b1aed['set'](_0x3da515,_0x6c5f7d);}return _0x3b1aed;}(_0xbe805f)};}function S(_0x973c7c,_0x22dc2=''){return _0x973c7c['flatMap'](_0x48324e=>{const {selectorText:_0x349893,cssText:_0xcf4090,cssRules:_0x19b29d}=_0x48324e;if(!_0x349893)return[];const _0x4293b1=_0x349893['replace'](/&/g,_0x22dc2);let _0xebc2bb=_0xcf4090['replace'](_0x349893,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x19b29d||!_0x19b29d['length'])return[{'selectorText':_0x4293b1,'contentCssText':_0xebc2bb}];for(const _0x41d523 of _0x19b29d)_0xebc2bb=_0xebc2bb['replace'](_0x41d523['cssText'],'')['trim']();return[{'selectorText':_0x4293b1,'contentCssText':_0xebc2bb},...S(Array['from'](_0x19b29d),_0x4293b1)];});}function h(_0x54faa1,_0x28a76d){const _0x374ba9=new _0x55b4cf(_0x54faa1);for(const _0x937456 of _0x28a76d){let _0xe10de8=null;if(_0xe10de8='string'==typeof _0x937456?new _0x55b4cf(_0x54faa1)['setTo'](_0x937456):_0x937456,_0xe10de8){for(const [_0x1c2308,_0x1873c7]of _0xe10de8['getStylesEntries']())_0x374ba9['set'](_0x1c2308,_0x1873c7);}}return _0x374ba9;}class ExportInlineStylesCommand extends _0x56a642{['_stylesProcessor'];constructor(_0x36f20b){super(_0x36f20b),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x525f5d(this['_stylesProcessor']),_0x33479e(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async['execute'](_0x447357){const _0x145691=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x2897a8}=this['editor']['locale'],{rootName:_0x2833cd='main',dataControllerDowncastOptions:_0xa28fa5={},transformations:_0x57beb2=_0x145691['transformations']||[]}=_0x447357||{};this['isBusy']=!0x0,this['refresh']();const _0x369a7b=this['_getRootDataHTMLFragment'](_0x2833cd,_0xa28fa5),_0xd2ae87=_0x2f78f9(_0x369a7b['ownerDocument'],'div',{'dir':_0x2897a8,'class':'ck-content'},[_0x369a7b]);return this['_collectAndApplyStyles'](_0x57beb2,_0xd2ae87)['then'](()=>{const _0x348620=function(_0xc49656){const _0x2196ca=_0xc49656['ownerDocument']['createDocumentFragment']();for(;_0xc49656['firstChild'];)_0x2196ca['appendChild'](_0xc49656['firstChild']);return _0x2196ca;}(_0xd2ae87),_0x1be2a1=_0xd2ae87['getAttribute']('style');if(_0x1be2a1)for(const _0x2b04f0 of _0x348620['children']){const _0x43423b=_0x2b04f0['getAttribute']('style'),_0x4f9bce=h(this['_stylesProcessor'],[_0x1be2a1,_0x43423b]);_0x2b04f0['setAttribute']('style',x(_0x4f9bce));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x348620);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0x4540d1,_0x50036a){const {data:_0x22e6c8,model:_0x2c34b6}=this['editor'],_0x262b0d=_0x2c34b6['document']['getRoot'](_0x4540d1),_0x278170=_0x22e6c8['toView'](_0x262b0d,_0x50036a);return _0x22e6c8['htmlProcessor']['domConverter']['viewToDom'](_0x278170);}async['_collectAndApplyStyles'](_0x5a5dd8,_0x4bfe8a){const {stylesheets:_0x567556,inlineCss:_0x3f9252,stripCssClasses:_0x200471}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x215519,rootCssVariables:_0x2aafb6}=await m({'stylesheets':_0x567556||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x3f9252}),_0x1cebd0=[];this['_processElementTree']({'transformations':_0x5a5dd8,'parsedCssRules':_0x215519,'element':_0x4bfe8a,'stripCssClasses':_0x200471,'parentCSSVariablesLookup':_0x2aafb6['get']['bind'](_0x2aafb6),'runAfterDocumentTransformation':_0x430c5c=>{_0x1cebd0['unshift'](_0x430c5c);}});for(const _0x18e501 of _0x1cebd0)_0x18e501();}['_processElementTree']({element:_0x490e99,parsedCssRules:_0x3a01df,parentCSSVariablesLookup:_0x48f1bc,runAfterDocumentTransformation:_0x5e2563,stripCssClasses:_0x45ba09,transformations:_0x57658c}){const {stylesMap:_0x454fda,localCSSVariables:_0x308a87}=function(_0x351379){const _0x4b1a08=_0x351379['element']['getAttribute']('style')||'',_0x43b41a=_0x351379['parsedCssRules']['filter'](_0x5bd4aa=>_0x351379['element']['matches'](_0x5bd4aa['flatSelector']))['map'](_0x28dd63=>_0x28dd63['stylesMap']),_0x5c3a08=h(_0x351379['stylesProcessor'],[..._0x43b41a,_0x4b1a08]);return{'localCSSVariables':w(_0x351379['fallbackCSSVariablesLookup'],_0x5c3a08),'stylesMap':_0x5c3a08};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x48f1bc,'parsedCssRules':_0x3a01df,'element':_0x490e99}),_0x1fc9b3=[];for(const _0x3e744a of _0x57658c){const _0x2ce3cb=_0x3e744a(_0x490e99,_0x454fda,{'runAfterDocumentTransformation':_0x5e2563,'runAfterChildrenTransformation':_0x27f576=>{_0x1fc9b3['unshift'](_0x27f576);}});_0x2ce3cb&&_0x2ce3cb instanceof HTMLElement&&(_0x490e99=_0x2ce3cb);}_0x454fda['size']?_0x490e99['setAttribute']('style',x(_0x454fda)):_0x490e99['removeAttribute']('style');const _0x3c54f7=_0x224ab1=>_0x308a87['has'](_0x224ab1)?_0x308a87['get'](_0x224ab1):_0x48f1bc(_0x224ab1);for(const _0x21935a of _0x490e99['children'])_0x21935a instanceof HTMLElement&&this['_processElementTree']({'element':_0x21935a,'parsedCssRules':_0x3a01df,'stripCssClasses':_0x45ba09,'transformations':_0x57658c,'parentCSSVariablesLookup':_0x3c54f7,'runAfterDocumentTransformation':_0x5e2563});_0x45ba09&&_0x490e99['removeAttribute']('class');for(const _0x665e47 of _0x1fc9b3)_0x665e47();}}function x(_0x4825ad){return _0x4825ad['getStylesEntries']()['map'](_0x2e87b4=>_0x2e87b4['join'](':'))['join'](';')+';';}class ExportInlineStylesEditing extends _0x114614{static get['pluginName'](){return'ExportInlineStylesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['editor']['config']['define']('exportInlineStyles',{}),this['editor']['commands']['add']('exportInlineStyles',new ExportInlineStylesCommand(this['editor']));}['afterInit'](){!async function(_0x3cabe6){const _0x1f93a8=_0x28c19f([0x44,0x55,0x41,0x36,0x31,0x30,0x65,0x6d,0x4c,0x34,0x51,0x32,0x6b,0x6a,0x56,0x49,0x76,0x47,0x4d,0x48,0x67,0x57,0x54,0x33,0x75,0x79,0x53,0x6e,0x7a,0x50,0x45,0x77,0x37,0x39,0x6f,0x5a,0x4a,0x69,0x43,0x72,0x62,0x73,0x74,0x63,0x58,0x4b,0x71,0x38,0x35,0x4e,0x68,0x64,0x66,0x61,0x46,0x52,0x78,0x42,0x6c,0x70,0x4f,0x59]),_0x42df64=0x6f40c3fb,_0x1c3368=0x6f474993^_0x42df64,_0x2bc877=window[_0x28c19f([0x44,0x61,0x74,0x65])][_0x28c19f([0x6e,0x6f,0x77])](),_0x351b35=_0x3cabe6[_0x28c19f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x118d17=new window[(_0x28c19f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2eef0e=>{_0x351b35[_0x28c19f([0x6f,0x6e,0x63,0x65])](_0x28c19f([0x72,0x65,0x61,0x64,0x79]),_0x2eef0e);}),_0xb03e7c={[_0x28c19f([0x6b,0x74,0x79])]:_0x28c19f([0x45,0x43]),[_0x28c19f([0x75,0x73,0x65])]:_0x28c19f([0x73,0x69,0x67]),[_0x28c19f([0x63,0x72,0x76])]:_0x28c19f([0x50,0x2d,0x32,0x35,0x36]),[_0x28c19f([0x78])]:_0x28c19f([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x28c19f([0x79])]:_0x28c19f([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x28c19f([0x61,0x6c,0x67])]:_0x28c19f([0x45,0x53,0x32,0x35,0x36])},_0x75f5d5=_0x351b35[_0x28c19f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x28c19f([0x67,0x65,0x74])](_0x28c19f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x209e69(){let _0x38e2a4,_0x224a00=null,_0x15d97e=null;try{if(_0x75f5d5==_0x28c19f([0x47,0x50,0x4c]))return _0x28c19f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x38e2a4=_0x48ff43(),!_0x38e2a4)return _0x28c19f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x38e2a4[_0x28c19f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x15d97e=_0x4fecb0(_0x38e2a4[_0x28c19f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x38e2a4[_0x28c19f([0x6a,0x74,0x69])])),await _0x4d4f7e()?_0x7adcbd()?_0x14a431()?_0x28c19f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x486f65()?(_0x38e2a4[_0x28c19f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x28c19f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x224a00=_0x469b6d(_0x28c19f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2f86e0()):_0x28c19f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x28c19f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x28c19f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x28c19f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x14a431(){const _0x485d7b=[_0x28c19f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x28c19f([0x74,0x72,0x69,0x61,0x6c])][_0x28c19f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38e2a4[_0x28c19f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2bc877/0x3e8:0xe10*_0x1c3368;return _0x38e2a4[_0x28c19f([0x65,0x78,0x70])]<_0x485d7b;}function _0x7adcbd(){const _0x2580f2=_0x38e2a4[_0x28c19f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2580f2&&(!!_0x2580f2[_0x28c19f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28c19f([0x2a]))||!!_0x2580f2[_0x28c19f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28c19f([0x45,0x49,0x53])));}function _0x486f65(){const _0x1cf405=_0x38e2a4[_0x28c19f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1cf405||0x0==_0x1cf405[_0x28c19f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x51040a}=new URL(window[_0x28c19f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1cf405[_0x28c19f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51040a))return!0x0;const _0x5e633d=_0x51040a[_0x28c19f([0x73,0x70,0x6c,0x69,0x74])](_0x28c19f([0x2e]));return _0x1cf405[_0x28c19f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2d9fa5=>_0x2d9fa5[_0x28c19f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28c19f([0x2a])))[_0x28c19f([0x6d,0x61,0x70])](_0x43218f=>_0x43218f[_0x28c19f([0x73,0x70,0x6c,0x69,0x74])](_0x28c19f([0x2e])))[_0x28c19f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a234d=>_0x4a234d[_0x28c19f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5e633d[_0x28c19f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x28c19f([0x6d,0x61,0x70])](_0x34c010=>Array(_0x5e633d[_0x28c19f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x34c010[_0x28c19f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x28c19f([0x66,0x69,0x6c,0x6c])](_0x34c010[0x0]===_0x28c19f([0x2a])?_0x28c19f([0x2a]):'')[_0x28c19f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x34c010))[_0x28c19f([0x73,0x6f,0x6d,0x65])](_0x206289=>_0x5e633d[_0x28c19f([0x65,0x76,0x65,0x72,0x79])]((_0x4cb8a7,_0xe15b7a)=>_0x206289[_0xe15b7a]===_0x4cb8a7||_0x206289[_0xe15b7a]===_0x28c19f([0x2a])));}function _0x2f86e0(){return _0x224a00&&_0x15d97e?new window[(_0x28c19f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xe211b9,_0x58c1d4)=>{_0x224a00[_0x28c19f([0x74,0x68,0x65,0x6e])](_0xe211b9,_0x58c1d4),_0x15d97e[_0x28c19f([0x74,0x68,0x65,0x6e])](_0x4186e9=>{_0x4186e9!=_0x28c19f([0x56,0x61,0x6c,0x69,0x64])&&_0xe211b9(_0x4186e9);},_0x58c1d4);}):_0x224a00||_0x15d97e||_0x28c19f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4fecb0(_0x34052c,_0x423d61){return new window[(_0x28c19f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x456d10=>{if(_0x4945b5())return _0x456d10(_0x28c19f([0x56,0x61,0x6c,0x69,0x64]));_0xf0378c(),_0x351b35[_0x28c19f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x28c19f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x52ba4f=!0x1;const _0x2fc12c=_0x1d4fcd();function _0xa0e8ec(_0x3c7db0){return!!_0x3c7db0&&(typeof _0x3c7db0===_0x28c19f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3c7db0===_0x28c19f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3c7db0[_0x28c19f([0x74,0x68,0x65,0x6e])]===_0x28c19f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3c7db0[_0x28c19f([0x63,0x61,0x74,0x63,0x68])]===_0x28c19f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x257c8b(_0x1a9df1){_0x534479(_0x1a9df1)[_0x28c19f([0x74,0x68,0x65,0x6e])](_0x388d1d=>{if(!_0x388d1d||_0x388d1d[_0x28c19f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x28c19f([0x6f,0x6b]))return _0x28c19f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3488af(_0x1f9f39(_0x2fc12c+_0x423d61))!=_0x388d1d[_0x28c19f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x28c19f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x28c19f([0x56,0x61,0x6c,0x69,0x64]);})[_0x28c19f([0x74,0x68,0x65,0x6e])](_0x15d343=>(_0x374a87(),_0x15d343),()=>{const _0x34cc7c=_0x41c3a6();return null==_0x34cc7c?(_0x374a87(),_0x28c19f([0x56,0x61,0x6c,0x69,0x64])):_0x28c19f(_0x2bc877-_0x34cc7c>(0x4b4c47fb^_0x42df64)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x28c19f([0x74,0x68,0x65,0x6e])](_0x456d10)[_0x28c19f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x456d10(_0x28c19f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x32c7bd=0x6f762d7b^_0x42df64;function _0x374a87(){const _0x51f03e=_0x28c19f([0x6c,0x6c,0x63,0x74,0x2d])+_0x3488af(_0x1f9f39(_0x34052c)),_0x43e21a=_0x32b3dd(_0x3488af(window[_0x28c19f([0x4d,0x61,0x74,0x68])][_0x28c19f([0x63,0x65,0x69,0x6c])](_0x2bc877/_0x32c7bd)));window[_0x28c19f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x28c19f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51f03e,_0x43e21a);}function _0x41c3a6(){const _0x2f562=_0x28c19f([0x6c,0x6c,0x63,0x74,0x2d])+_0x3488af(_0x1f9f39(_0x34052c)),_0x14cafc=window[_0x28c19f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x28c19f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2f562);return _0x14cafc?window[_0x28c19f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32b3dd(_0x14cafc),0x10)*_0x32c7bd:null;}function _0x534479(_0x22773d){return new window[(_0x28c19f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50619d,_0x2ba8ef)=>{_0x22773d[_0x28c19f([0x74,0x68,0x65,0x6e])](_0x50619d,_0x2ba8ef),window[_0x28c19f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2ba8ef,0x6f41173b^_0x42df64);});}}_0x351b35[_0x28c19f([0x6f,0x6e])](_0x28c19f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2fb9da,_0x272bd9)=>{if(_0x272bd9[0x0]!=_0x34052c)return _0x456d10(_0x28c19f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x272bd9[0x1]={..._0x272bd9[0x1],[_0x28c19f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2fc12c};},{[_0x28c19f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x28c19f([0x68,0x69,0x67,0x68])}),_0x351b35[_0x28c19f([0x6f,0x6e])](_0x28c19f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x44bdd6=>{_0xa0e8ec(_0x44bdd6[_0x28c19f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x52ba4f=!0x0,_0x257c8b(_0x44bdd6[_0x28c19f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x28c19f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x28c19f([0x6c,0x6f,0x77])}),_0x118d17[_0x28c19f([0x74,0x68,0x65,0x6e])](()=>{_0x52ba4f||_0x456d10(_0x28c19f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4945b5(){return _0x351b35[_0x28c19f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28c19f([0x76,0x69,0x65,0x77])][_0x28c19f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x28c19f([0x61,0x75,0x74,0x6f]);}function _0xf0378c(){_0x351b35[_0x28c19f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28c19f([0x76,0x69,0x65,0x77])][_0x28c19f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x28c19f([0x61,0x75,0x74,0x6f]);}}function _0x469b6d(_0x3446c9){const _0x51590d=[new window[(_0x28c19f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x718dc7=>setTimeout(_0x718dc7,0x6f49fd37^_0x42df64)),_0x118d17[_0x28c19f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x28c19f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d9cdb=>{let _0x5b439=0x0;_0x351b35[_0x28c19f([0x6d,0x6f,0x64,0x65,0x6c])][_0x28c19f([0x6f,0x6e])](_0x28c19f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x67b2ee,_0x2b8dc8)=>{_0x2b8dc8[0x0][_0x28c19f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5b439++,_0x5b439==(0x6f40c613^_0x42df64)&&(_0x5d9cdb(),_0x67b2ee[_0x28c19f([0x6f,0x66,0x66])]());});}))];return window[_0x28c19f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x28c19f([0x72,0x61,0x63,0x65])](_0x51590d)[_0x28c19f([0x74,0x68,0x65,0x6e])](()=>_0x3446c9);}async function _0x2ec1db(){await _0x118d17;const _0x46a80a=_0x351b35['commands'][_0x28c19f([0x67,0x65,0x74])](_0x28c19f([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73]));_0x46a80a&&_0x46a80a[_0x28c19f([0x6f,0x6e])](_0x28c19f([0x65,0x78,0x65,0x63,0x75,0x74,0x65]),_0x30c4aa=>{_0x30c4aa['stop']();},{'priority':_0x28c19f([0x68,0x69,0x67,0x68,0x65,0x73,0x74])}),_0x351b35[_0x28c19f([0x6d,0x6f,0x64,0x65,0x6c])][_0x28c19f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x562209,_0x351b35[_0x28c19f([0x6d,0x6f,0x64,0x65,0x6c])][_0x28c19f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x562209,_0x351b35[_0x28c19f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x28c19f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3dd8cd(_0x295601){const _0x2da3e5=_0x5c19ab();_0x351b35[_0x2da3e5]=_0x28c19f([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x295601,_0x295601!=_0x28c19f([0x56,0x61,0x6c,0x69,0x64])&&_0x2ec1db();}function _0x5c19ab(){const _0x380812=window[_0x28c19f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x28c19f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x28c19f([0x6e,0x6f,0x77])]())[_0x28c19f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x28c19f([0x2e]),'');let _0x3fd672=_0x28c19f([0x44]);for(let _0x43e9ea=0x0;_0x43e9ea<_0x380812[_0x28c19f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43e9ea+=0x2){let _0x56ca38=window[_0x28c19f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x380812[_0x28c19f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43e9ea,_0x43e9ea+0x2));_0x56ca38>=_0x1f93a8[_0x28c19f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x56ca38-=_0x1f93a8[_0x28c19f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3fd672+=_0x1f93a8[_0x56ca38];}return _0x3fd672;}function _0x48ff43(){const _0x447fd6=_0x75f5d5[_0x28c19f([0x73,0x70,0x6c,0x69,0x74])](_0x28c19f([0x2e]));if(0x3!=_0x447fd6[_0x28c19f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3b4e12(_0x447fd6[0x1]);function _0x3b4e12(_0x391243){const _0x13dec3=_0x67a84f(_0x391243);return _0x13dec3&&_0x1895ed()?_0x13dec3:null;function _0x1895ed(){const _0x1ed06c=_0x13dec3[_0x28c19f([0x6a,0x74,0x69])],_0x2a1c92=window[_0x28c19f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ed06c[_0x28c19f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ed06c[_0x28c19f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5051fd={..._0x13dec3,[_0x28c19f([0x6a,0x74,0x69])]:_0x1ed06c[_0x28c19f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1ed06c[_0x28c19f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5051fd[_0x28c19f([0x76,0x63])],_0x1f9f39(_0x5051fd)==_0x2a1c92;}}}async function _0x4d4f7e(){let _0x454a9c=!0x0;try{const _0x220598=_0x75f5d5[_0x28c19f([0x73,0x70,0x6c,0x69,0x74])](_0x28c19f([0x2e])),[_0x3b49dc,_0xf6017,_0x5af35f]=_0x220598;return _0x144776(_0x3b49dc),await _0x3d5c13(_0x3b49dc,_0xf6017,_0x5af35f),_0x454a9c;}catch{return!0x1;}function _0x144776(_0x131379){const _0x2dcd39=_0x67a84f(_0x131379);_0x2dcd39&&_0x2dcd39[_0x28c19f([0x61,0x6c,0x67])]==_0x28c19f([0x45,0x53,0x32,0x35,0x36])||(_0x454a9c=!0x1);}async function _0x3d5c13(_0x28e96d,_0xf3b0ac,_0x2a9615){const _0x6e74db=window[_0x28c19f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x28c19f([0x66,0x72,0x6f,0x6d])](_0x5856ae(_0x2a9615),_0x2a58bd=>_0x2a58bd[_0x28c19f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x32c0d0=new window[(_0x28c19f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x28c19f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x28e96d+_0x28c19f([0x2e])+_0xf3b0ac),_0x50cf60=window[_0x28c19f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x28c19f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x50cf60)return;const _0x2bcef4=await _0x50cf60[_0x28c19f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x28c19f([0x6a,0x77,0x6b]),_0xb03e7c,{[_0x28c19f([0x6e,0x61,0x6d,0x65])]:_0x28c19f([0x45,0x43,0x44,0x53,0x41]),[_0x28c19f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x28c19f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x28c19f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x50cf60[_0x28c19f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x28c19f([0x6e,0x61,0x6d,0x65])]:_0x28c19f([0x45,0x43,0x44,0x53,0x41]),[_0x28c19f([0x68,0x61,0x73,0x68])]:{[_0x28c19f([0x6e,0x61,0x6d,0x65])]:_0x28c19f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2bcef4,_0x6e74db,_0x32c0d0)||(_0x454a9c=!0x1);}}function _0x67a84f(_0xcf9331){return _0xcf9331[_0x28c19f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x28c19f([0x65,0x79]))?JSON[_0x28c19f([0x70,0x61,0x72,0x73,0x65])](_0x5856ae(_0xcf9331)):null;}function _0x5856ae(_0x4ad457){return window[_0x28c19f([0x61,0x74,0x6f,0x62])](_0x4ad457[_0x28c19f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x28c19f([0x2b]))[_0x28c19f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x28c19f([0x2f])));}function _0x1f9f39(_0x5425a3){let _0x2e26c6=0x1505;function _0x2676b3(_0x15b852){for(let _0xe320b3=0x0;_0xe320b3<_0x15b852[_0x28c19f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe320b3++){const _0x1fa1d6=_0x15b852[_0x28c19f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xe320b3);_0x2e26c6=(_0x2e26c6<<0x5)+_0x2e26c6+_0x1fa1d6,_0x2e26c6&=_0x2e26c6;}}function _0x3099dc(_0x32ef0e){Array[_0x28c19f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x32ef0e)?_0x32ef0e[_0x28c19f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3099dc):_0x32ef0e&&typeof _0x32ef0e==_0x28c19f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x28c19f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x32ef0e)[_0x28c19f([0x73,0x6f,0x72,0x74])]()[_0x28c19f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2f61cd,_0x4dae41])=>{_0x2676b3(_0x2f61cd),_0x3099dc(_0x4dae41);}):_0x2676b3(window[_0x28c19f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x32ef0e));}return _0x3099dc(_0x5425a3),_0x2e26c6>>>0x0;}function _0x3488af(_0x555268){return _0x555268[_0x28c19f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x28c19f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x28c19f([0x30]));}function _0x32b3dd(_0x44f16b){return _0x44f16b[_0x28c19f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x28c19f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x28c19f([0x6a,0x6f,0x69,0x6e])]('');}function _0x562209(){}function _0x28c19f(_0x30c878){return _0x30c878['map'](_0x53e648=>String['fromCharCode'](_0x53e648))['join']('');}_0x3dd8cd(await _0x209e69());}(this);}}class ExportInlineStyles extends _0x114614{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'ExportInlineStyles';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[ExportInlineStylesEditing];}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x523e53=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x57fd21;for(const _0x3b5e1c in _0x523e53){const _0x4de095=_0x3b5e1c,_0x234654=_0x523e53[_0x4de095];if('exportInlineStylesLicenseKeyValid'==_0x234654||'exportInlineStylesLicenseKeyInvalid'==_0x234654||'exportInlineStylesLicenseKeyExpired'==_0x234654||'exportInlineStylesLicenseKeyDomainLimit'==_0x234654||'exportInlineStylesLicenseKeyNotAllowed'==_0x234654||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x234654||'exportInlineStylesLicenseKeyUsageLimit'==_0x234654){delete _0x523e53[_0x4de095],_0x57fd21=_0x234654,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x57fd21&&_0x523e53['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x57fd21&&_0x523e53['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x57fd21&&_0x523e53['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x57fd21&&_0x523e53['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x57fd21&&_0x523e53['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x57fd21&&_0x523e53['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}export{ExportInlineStyles,ExportInlineStylesCommand,ExportInlineStylesEditing,p as dropImportantStyleSuffix};
|
|
23
|
+
import{Command as _0x35b149,Plugin as _0x1ec0d5}from'@ckeditor/ckeditor5-core/dist/index.js';import{collectStylesheets as _0x1c293c,createElement as _0x1544b8,uid as _0x22c1db}from'@ckeditor/ckeditor5-utils/dist/index.js';import{StylesMap as _0x91270,addMarginStylesRules as _0x13f254,addPaddingStylesRules as _0x50edc8}from'@ckeditor/ckeditor5-engine/dist/index.js';import{calculate as _0x1fa204,compare as _0x3c2897}from'specificity';function f(_0x1f6fb1){const _0x2c1985=[];let _0x9e0106='',_0x3b507e=0x0;for(;_0x3b507e<_0x1f6fb1['length'];){const _0x24e1b8=_0x1f6fb1[_0x3b507e];if('('===_0x24e1b8){const _0x58f587=y(_0x1f6fb1,_0x3b507e+0x1);if(-0x1===_0x58f587)return[];_0x9e0106+=_0x1f6fb1['slice'](_0x3b507e,_0x58f587+0x1),_0x3b507e=_0x58f587+0x1;}else','!==_0x24e1b8||_0x9e0106['endsWith']('\x5c')?(_0x9e0106+=_0x24e1b8,_0x3b507e++):(_0x2c1985['push'](_0x9e0106['trim']()),_0x9e0106='',_0x3b507e++);}return _0x9e0106['trim']()&&_0x2c1985['push'](_0x9e0106['trim']()),_0x2c1985['filter'](Boolean);}function y(_0x51804a,_0x16bd1a){let _0x3de08c=0x1;for(let _0x178f11=_0x16bd1a;_0x178f11<_0x51804a['length'];_0x178f11++){const _0x23f363=_0x51804a[_0x178f11];if('('===_0x23f363)_0x3de08c++;else{if(')'===_0x23f363&&(_0x3de08c--,0x0===_0x3de08c))return _0x178f11;}}return-0x1;}function p(_0x6b7acf){return _0x6b7acf['replace'](/!\s*important/i,'')['trim']();}function w(_0x4caec0,_0x438abb){const _0xa28bdc=new Map(),_0x31c407=_0x1770d2=>_0xa28bdc['has'](_0x1770d2)?_0xa28bdc['get'](_0x1770d2):_0x4caec0(_0x1770d2);for(const [_0x4f24c8,_0x48f770]of _0x438abb['getStylesEntries']())if(_0x48f770&&_0x4f24c8['startsWith']('--')){const _0x323900=d(_0x31c407,_0x48f770);_0xa28bdc['set'](_0x4f24c8,_0x323900),_0x438abb['remove'](_0x4f24c8);}for(const [_0x415349,_0x482a6a]of _0x438abb['getStylesEntries']())if(_0x482a6a){const _0x2d2c1c=d(_0x31c407,_0x482a6a);_0x438abb['set'](_0x415349,_0x2d2c1c);}return _0xa28bdc;}function d(_0x178bbf,_0x3f273f){return function(_0x28fc42,_0x11daa7){let _0x163327='',_0x2b6a2e=0x0;for(;_0x2b6a2e<_0x28fc42['length'];){const _0x42c100=_0x28fc42['indexOf']('var(',_0x2b6a2e);if(-0x1===_0x42c100){_0x163327+=_0x28fc42['slice'](_0x2b6a2e);break;}_0x163327+=_0x28fc42['slice'](_0x2b6a2e,_0x42c100);const _0x4fa76d=_0x42c100+0x4,_0x17d3c5=y(_0x28fc42,_0x4fa76d);_0x163327+=_0x11daa7(_0x28fc42['substring'](_0x4fa76d,_0x17d3c5)),_0x2b6a2e=_0x17d3c5+0x1;}return _0x163327;}(_0x3f273f,_0x3db5be=>{const [_0x4abe14,_0xe9c00f]=f(_0x3db5be),_0x2e25f4=_0x178bbf(_0x4abe14);return void 0x0!==_0x2e25f4?_0x2e25f4:_0xe9c00f?d(_0x178bbf,_0xe9c00f):'var('+_0x4abe14+')';});}async function m(_0x2475f8){const _0x172988=[await _0x1c293c(_0x2475f8['stylesheets']),_0x2475f8['inlineCss']]['filter'](_0x41e611=>_0x41e611&&_0x41e611['length'])['join']('\x0a'),_0x4bc843=await async function(_0x4345f8,_0x5c7c9a){const _0x3d9c5f=new CSSStyleSheet();return await _0x3d9c5f['replace'](_0x5c7c9a),S(Array['from'](_0x3d9c5f['cssRules'])['filter'](_0x189b36=>_0x189b36 instanceof CSSStyleRule))['flatMap'](({selectorText:_0x2048f4,contentCssText:_0x2a91f1})=>{const _0x54a8dc=f(_0x2048f4),_0x371c55=new _0x91270(_0x4345f8)['setTo'](_0x2a91f1);return _0x54a8dc['map'](_0x919df4=>{const _0x150890=function(_0x212bf1){const _0x23bb1f=':where(';let _0x1e6c67=_0x212bf1,_0xee77df=0x0;for(let _0x1341d9=0x0;_0x1341d9<0x64;_0x1341d9++){const _0x415ce5=_0x1e6c67['indexOf'](_0x23bb1f,_0xee77df);if(-0x1===_0x415ce5)break;let _0x4fe555=0x0;for(let _0x2b3b1f=0x0;_0x2b3b1f<_0x415ce5;_0x2b3b1f++)'('===_0x1e6c67[_0x2b3b1f]?_0x4fe555++:')'===_0x1e6c67[_0x2b3b1f]&&_0x4fe555--;if(_0x4fe555>0x0){_0xee77df=_0x415ce5+_0x23bb1f['length'];continue;}let _0x202089=-0x1;for(let _0x2ef0fe=_0x415ce5+_0x23bb1f['length'],_0xc3c1ad=0x1;_0x2ef0fe<_0x1e6c67['length'];_0x2ef0fe++)if('('===_0x1e6c67[_0x2ef0fe]?_0xc3c1ad++:')'===_0x1e6c67[_0x2ef0fe]&&_0xc3c1ad--,!_0xc3c1ad){_0x202089=_0x2ef0fe;break;}-0x1!==_0x202089?(_0x1e6c67=_0x1e6c67['slice'](0x0,_0x415ce5)+_0x1e6c67['slice'](_0x202089+0x1),_0xee77df=_0x415ce5):_0xee77df=_0x415ce5+_0x23bb1f['length'];}return _0x1e6c67['replace'](/\s+/g,'\x20')['trim']();}(_0x919df4),_0x1f2f94=_0x150890?_0x1fa204(_0x150890)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0];return{'stylesMap':_0x371c55,'flatSelector':_0x919df4,'specificity':_0x1f2f94};});})['sort']((_0x17108e,_0x3ab0f2)=>_0x3c2897(_0x17108e['specificity'],_0x3ab0f2['specificity']));}(_0x2475f8['stylesProcessor'],_0x172988);return{'parsedCssRules':_0x4bc843,'rootCssVariables':function(_0x3c5308){const _0x59e987=new Map();for(const {stylesMap:_0x215bc3,flatSelector:_0x5a35ff}of _0x3c5308){if(':root'!==_0x5a35ff)continue;const _0x26651a=w(_0x59e987['get']['bind'](_0x59e987),_0x215bc3);for(const [_0x37a03f,_0x1290f7]of _0x26651a)_0x59e987['set'](_0x37a03f,_0x1290f7);}return _0x59e987;}(_0x4bc843)};}function S(_0x2dff9c,_0x9c1810=''){return _0x2dff9c['flatMap'](_0x4a205c=>{const {selectorText:_0x229d94,cssText:_0x52d3e3,cssRules:_0x2f4e6f}=_0x4a205c;if(!_0x229d94)return[];const _0x4ef1dc=_0x229d94['replace'](/&/g,_0x9c1810);let _0x141c9a=_0x52d3e3['replace'](_0x229d94,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x2f4e6f||!_0x2f4e6f['length'])return[{'selectorText':_0x4ef1dc,'contentCssText':_0x141c9a}];for(const _0x2cd421 of _0x2f4e6f)_0x141c9a=_0x141c9a['replace'](_0x2cd421['cssText'],'')['trim']();return[{'selectorText':_0x4ef1dc,'contentCssText':_0x141c9a},...S(Array['from'](_0x2f4e6f),_0x4ef1dc)];});}function h(_0x2880a3,_0x4b6d17){const _0x2ff59e=new _0x91270(_0x2880a3);for(const _0x4f59ea of _0x4b6d17){let _0x3f62e1=null;if(_0x3f62e1='string'==typeof _0x4f59ea?new _0x91270(_0x2880a3)['setTo'](_0x4f59ea):_0x4f59ea,_0x3f62e1){for(const [_0x13c5fa,_0x3bee09]of _0x3f62e1['getStylesEntries']())_0x2ff59e['set'](_0x13c5fa,_0x3bee09);}}return _0x2ff59e;}class ExportInlineStylesCommand extends _0x35b149{['_stylesProcessor'];constructor(_0x42ebe4){super(_0x42ebe4),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x13f254(this['_stylesProcessor']),_0x50edc8(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async['execute'](_0x15eb0a){const _0x475f81=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x5dee06}=this['editor']['locale'],{rootName:_0x1084f5='main',dataControllerDowncastOptions:_0x46fb8c={},transformations:_0x5e68f5=_0x475f81['transformations']||[]}=_0x15eb0a||{};this['isBusy']=!0x0,this['refresh']();const _0x461452=this['_getRootDataHTMLFragment'](_0x1084f5,_0x46fb8c),_0x596b92=_0x1544b8(_0x461452['ownerDocument'],'div',{'dir':_0x5dee06,'class':'ck-content'},[_0x461452]);return this['_collectAndApplyStyles'](_0x5e68f5,_0x596b92)['then'](()=>{const _0x3de4b5=function(_0x5397cc){const _0x145f6b=_0x5397cc['ownerDocument']['createDocumentFragment']();for(;_0x5397cc['firstChild'];)_0x145f6b['appendChild'](_0x5397cc['firstChild']);return _0x145f6b;}(_0x596b92),_0x3bfb26=_0x596b92['getAttribute']('style');if(_0x3bfb26)for(const _0x516a84 of _0x3de4b5['children']){const _0x5951b0=_0x516a84['getAttribute']('style'),_0x4749f8=h(this['_stylesProcessor'],[_0x3bfb26,_0x5951b0]);_0x516a84['setAttribute']('style',x(_0x4749f8));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x3de4b5);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0x2b85da,_0xcf9d05){const {data:_0x22acaa,model:_0x49adff}=this['editor'],_0x1fde4a=_0x49adff['document']['getRoot'](_0x2b85da),_0x5585ff=_0x22acaa['toView'](_0x1fde4a,_0xcf9d05);return _0x22acaa['htmlProcessor']['domConverter']['viewToDom'](_0x5585ff);}async['_collectAndApplyStyles'](_0x1c9a46,_0x2dd808){const {stylesheets:_0xb2871f,inlineCss:_0xf29964,stripCssClasses:_0x35b9e4}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x47cc74,rootCssVariables:_0x6f9a6f}=await m({'stylesheets':_0xb2871f||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0xf29964}),_0x9d0157=[];this['_processElementTree']({'transformations':_0x1c9a46,'parsedCssRules':_0x47cc74,'element':_0x2dd808,'stripCssClasses':_0x35b9e4,'parentCSSVariablesLookup':_0x6f9a6f['get']['bind'](_0x6f9a6f),'runAfterDocumentTransformation':_0x187621=>{_0x9d0157['unshift'](_0x187621);}});for(const _0x553892 of _0x9d0157)_0x553892();}['_processElementTree']({element:_0x16d30b,parsedCssRules:_0x54e46d,parentCSSVariablesLookup:_0x1ac6aa,runAfterDocumentTransformation:_0x5509a1,stripCssClasses:_0x489381,transformations:_0x578e86}){const {stylesMap:_0x598745,localCSSVariables:_0x11586e}=function(_0xb34021){const _0x4f38c6=_0xb34021['element']['getAttribute']('style')||'',_0x355da2=_0xb34021['parsedCssRules']['filter'](_0x5ad051=>_0xb34021['element']['matches'](_0x5ad051['flatSelector']))['map'](_0x54c0c5=>_0x54c0c5['stylesMap']),_0x114d10=h(_0xb34021['stylesProcessor'],[..._0x355da2,_0x4f38c6]);return{'localCSSVariables':w(_0xb34021['fallbackCSSVariablesLookup'],_0x114d10),'stylesMap':_0x114d10};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x1ac6aa,'parsedCssRules':_0x54e46d,'element':_0x16d30b}),_0x3e3ec1=[];for(const _0x3881a5 of _0x578e86){const _0x5c3d79=_0x3881a5(_0x16d30b,_0x598745,{'runAfterDocumentTransformation':_0x5509a1,'runAfterChildrenTransformation':_0x35f715=>{_0x3e3ec1['unshift'](_0x35f715);}});_0x5c3d79&&_0x5c3d79 instanceof HTMLElement&&(_0x16d30b=_0x5c3d79);}_0x598745['size']?_0x16d30b['setAttribute']('style',x(_0x598745)):_0x16d30b['removeAttribute']('style');const _0x56c8f6=_0x5ee688=>_0x11586e['has'](_0x5ee688)?_0x11586e['get'](_0x5ee688):_0x1ac6aa(_0x5ee688);for(const _0x311476 of _0x16d30b['children'])_0x311476 instanceof HTMLElement&&this['_processElementTree']({'element':_0x311476,'parsedCssRules':_0x54e46d,'stripCssClasses':_0x489381,'transformations':_0x578e86,'parentCSSVariablesLookup':_0x56c8f6,'runAfterDocumentTransformation':_0x5509a1});_0x489381&&_0x16d30b['removeAttribute']('class');for(const _0x7c2178 of _0x3e3ec1)_0x7c2178();}}function x(_0x326582){return _0x326582['getStylesEntries']()['map'](_0x55d184=>_0x55d184['join'](':'))['join'](';')+';';}class ExportInlineStylesEditing extends _0x1ec0d5{static get['pluginName'](){return'ExportInlineStylesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['editor']['config']['define']('exportInlineStyles',{}),this['editor']['commands']['add']('exportInlineStyles',new ExportInlineStylesCommand(this['editor']));}['afterInit'](){!async function(_0x5841ef){const _0x13af68=_0x44be89([0x44,0x55,0x41,0x36,0x31,0x30,0x65,0x6d,0x4c,0x34,0x51,0x32,0x6b,0x6a,0x56,0x49,0x76,0x47,0x4d,0x48,0x67,0x57,0x54,0x33,0x75,0x79,0x53,0x6e,0x7a,0x50,0x45,0x77,0x37,0x39,0x6f,0x5a,0x4a,0x69,0x43,0x72,0x62,0x73,0x74,0x63,0x58,0x4b,0x71,0x38,0x35,0x4e,0x68,0x64,0x66,0x61,0x46,0x52,0x78,0x42,0x6c,0x70,0x4f,0x59]),_0x331108=0x6f40c3fb,_0x4efdf1=0x6f47497b^_0x331108,_0x161ba3=window[_0x44be89([0x44,0x61,0x74,0x65])][_0x44be89([0x6e,0x6f,0x77])](),_0x10d81e=_0x5841ef[_0x44be89([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1b82e2=new window[(_0x44be89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4741cc=>{_0x10d81e[_0x44be89([0x6f,0x6e,0x63,0x65])](_0x44be89([0x72,0x65,0x61,0x64,0x79]),_0x4741cc);}),_0x11d806={[_0x44be89([0x6b,0x74,0x79])]:_0x44be89([0x45,0x43]),[_0x44be89([0x75,0x73,0x65])]:_0x44be89([0x73,0x69,0x67]),[_0x44be89([0x63,0x72,0x76])]:_0x44be89([0x50,0x2d,0x32,0x35,0x36]),[_0x44be89([0x78])]:_0x44be89([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x44be89([0x79])]:_0x44be89([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x44be89([0x61,0x6c,0x67])]:_0x44be89([0x45,0x53,0x32,0x35,0x36])},_0x107c02=_0x10d81e[_0x44be89([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x44be89([0x67,0x65,0x74])](_0x44be89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x48dfd4(){let _0x56b1b7,_0x5cb8f9=null,_0x2150d6=null;try{if(_0x107c02==_0x44be89([0x47,0x50,0x4c]))return _0x44be89([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x56b1b7=_0x40d89f(),!_0x56b1b7)return _0x44be89([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x56b1b7[_0x44be89([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2150d6=_0x283962(_0x56b1b7[_0x44be89([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x56b1b7[_0x44be89([0x6a,0x74,0x69])])),await _0x5b9f81()?_0x35c12d()?_0x15de5d()?_0x44be89([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x42c464()?(_0x56b1b7[_0x44be89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x44be89([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5cb8f9=_0x5059c4(_0x44be89([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x406d4b()):_0x44be89([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x44be89([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x44be89([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x44be89([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x15de5d(){const _0x5a48f2=[_0x44be89([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x44be89([0x74,0x72,0x69,0x61,0x6c])][_0x44be89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56b1b7[_0x44be89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x161ba3/0x3e8:0xe10*_0x4efdf1;return _0x56b1b7[_0x44be89([0x65,0x78,0x70])]<_0x5a48f2;}function _0x35c12d(){const _0x587524=_0x56b1b7[_0x44be89([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x587524&&(!!_0x587524[_0x44be89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44be89([0x2a]))||!!_0x587524[_0x44be89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44be89([0x45,0x49,0x53])));}function _0x42c464(){const _0x35d3f4=_0x56b1b7[_0x44be89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x35d3f4||0x0==_0x35d3f4[_0x44be89([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x96db83}=new URL(window[_0x44be89([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x35d3f4[_0x44be89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x96db83))return!0x0;const _0x118f8a=_0x96db83[_0x44be89([0x73,0x70,0x6c,0x69,0x74])](_0x44be89([0x2e]));return _0x35d3f4[_0x44be89([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb1fa35=>_0xb1fa35[_0x44be89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44be89([0x2a])))[_0x44be89([0x6d,0x61,0x70])](_0x2365c8=>_0x2365c8[_0x44be89([0x73,0x70,0x6c,0x69,0x74])](_0x44be89([0x2e])))[_0x44be89([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xa355b6=>_0xa355b6[_0x44be89([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x118f8a[_0x44be89([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x44be89([0x6d,0x61,0x70])](_0x55c4c9=>Array(_0x118f8a[_0x44be89([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x55c4c9[_0x44be89([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x44be89([0x66,0x69,0x6c,0x6c])](_0x55c4c9[0x0]===_0x44be89([0x2a])?_0x44be89([0x2a]):'')[_0x44be89([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x55c4c9))[_0x44be89([0x73,0x6f,0x6d,0x65])](_0x58508e=>_0x118f8a[_0x44be89([0x65,0x76,0x65,0x72,0x79])]((_0x2d69e6,_0x16cfa4)=>_0x58508e[_0x16cfa4]===_0x2d69e6||_0x58508e[_0x16cfa4]===_0x44be89([0x2a])));}function _0x406d4b(){return _0x5cb8f9&&_0x2150d6?new window[(_0x44be89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b772e,_0x239e8b)=>{_0x5cb8f9[_0x44be89([0x74,0x68,0x65,0x6e])](_0x5b772e,_0x239e8b),_0x2150d6[_0x44be89([0x74,0x68,0x65,0x6e])](_0x1bf2a4=>{_0x1bf2a4!=_0x44be89([0x56,0x61,0x6c,0x69,0x64])&&_0x5b772e(_0x1bf2a4);},_0x239e8b);}):_0x5cb8f9||_0x2150d6||_0x44be89([0x56,0x61,0x6c,0x69,0x64]);}}function _0x283962(_0x141c31,_0x1db03b){return new window[(_0x44be89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6de0a1=>{if(_0x4618c4())return _0x6de0a1(_0x44be89([0x56,0x61,0x6c,0x69,0x64]));_0x113025(),_0x10d81e[_0x44be89([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x44be89([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x59af5e=!0x1;const _0x5553ba=_0x22c1db();function _0xed87eb(_0x5861c6){return!!_0x5861c6&&(typeof _0x5861c6===_0x44be89([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5861c6===_0x44be89([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5861c6[_0x44be89([0x74,0x68,0x65,0x6e])]===_0x44be89([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5861c6[_0x44be89([0x63,0x61,0x74,0x63,0x68])]===_0x44be89([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x14b964(_0x47e91b){_0x56ffb4(_0x47e91b)[_0x44be89([0x74,0x68,0x65,0x6e])](_0x48e028=>{if(!_0x48e028||_0x48e028[_0x44be89([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x44be89([0x6f,0x6b]))return _0x44be89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x463302(_0x5f1574(_0x5553ba+_0x1db03b))!=_0x48e028[_0x44be89([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x44be89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x44be89([0x56,0x61,0x6c,0x69,0x64]);})[_0x44be89([0x74,0x68,0x65,0x6e])](_0x297266=>(_0x46bbf6(),_0x297266),()=>{const _0x218395=_0x150faa();return null==_0x218395?(_0x46bbf6(),_0x44be89([0x56,0x61,0x6c,0x69,0x64])):_0x44be89(_0x161ba3-_0x218395>(0x4b4c47fb^_0x331108)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x44be89([0x74,0x68,0x65,0x6e])](_0x6de0a1)[_0x44be89([0x63,0x61,0x74,0x63,0x68])](()=>{_0x6de0a1(_0x44be89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x25f198=0x6f762d7b^_0x331108;function _0x46bbf6(){const _0x3d5da1=_0x44be89([0x6c,0x6c,0x63,0x74,0x2d])+_0x463302(_0x5f1574(_0x141c31)),_0x57862f=_0x78e3e8(_0x463302(window[_0x44be89([0x4d,0x61,0x74,0x68])][_0x44be89([0x63,0x65,0x69,0x6c])](_0x161ba3/_0x25f198)));window[_0x44be89([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x44be89([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d5da1,_0x57862f);}function _0x150faa(){const _0x42c565=_0x44be89([0x6c,0x6c,0x63,0x74,0x2d])+_0x463302(_0x5f1574(_0x141c31)),_0x435cac=window[_0x44be89([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x44be89([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42c565);return _0x435cac?window[_0x44be89([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x78e3e8(_0x435cac),0x10)*_0x25f198:null;}function _0x56ffb4(_0x5c2d40){return new window[(_0x44be89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4671c,_0x4af842)=>{_0x5c2d40[_0x44be89([0x74,0x68,0x65,0x6e])](_0x4671c,_0x4af842),window[_0x44be89([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4af842,0x6f41173b^_0x331108);});}}_0x10d81e[_0x44be89([0x6f,0x6e])](_0x44be89([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x47f387,_0x2f1056)=>{if(_0x2f1056[0x0]!=_0x141c31)return _0x6de0a1(_0x44be89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2f1056[0x1]={..._0x2f1056[0x1],[_0x44be89([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5553ba};},{[_0x44be89([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x44be89([0x68,0x69,0x67,0x68])}),_0x10d81e[_0x44be89([0x6f,0x6e])](_0x44be89([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x37999b=>{_0xed87eb(_0x37999b[_0x44be89([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x59af5e=!0x0,_0x14b964(_0x37999b[_0x44be89([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x44be89([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x44be89([0x6c,0x6f,0x77])}),_0x1b82e2[_0x44be89([0x74,0x68,0x65,0x6e])](()=>{_0x59af5e||_0x6de0a1(_0x44be89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4618c4(){return _0x10d81e[_0x44be89([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44be89([0x76,0x69,0x65,0x77])][_0x44be89([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x44be89([0x61,0x75,0x74,0x6f]);}function _0x113025(){_0x10d81e[_0x44be89([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44be89([0x76,0x69,0x65,0x77])][_0x44be89([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x44be89([0x61,0x75,0x74,0x6f]);}}function _0x5059c4(_0x3e764e){const _0x390183=[new window[(_0x44be89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3371aa=>setTimeout(_0x3371aa,0x6f49fd37^_0x331108)),_0x1b82e2[_0x44be89([0x74,0x68,0x65,0x6e])](()=>new window[(_0x44be89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13c553=>{let _0x3d40ee=0x0;_0x10d81e[_0x44be89([0x6d,0x6f,0x64,0x65,0x6c])][_0x44be89([0x6f,0x6e])](_0x44be89([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xc722b5,_0x3b594e)=>{_0x3b594e[0x0][_0x44be89([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3d40ee++,_0x3d40ee==(0x6f40c613^_0x331108)&&(_0x13c553(),_0xc722b5[_0x44be89([0x6f,0x66,0x66])]());});}))];return window[_0x44be89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x44be89([0x72,0x61,0x63,0x65])](_0x390183)[_0x44be89([0x74,0x68,0x65,0x6e])](()=>_0x3e764e);}async function _0x5ee7c7(){await _0x1b82e2;const _0x35f2f8=_0x10d81e['commands'][_0x44be89([0x67,0x65,0x74])](_0x44be89([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73]));_0x35f2f8&&_0x35f2f8[_0x44be89([0x6f,0x6e])](_0x44be89([0x65,0x78,0x65,0x63,0x75,0x74,0x65]),_0x708c02=>{_0x708c02['stop']();},{'priority':_0x44be89([0x68,0x69,0x67,0x68,0x65,0x73,0x74])}),_0x10d81e[_0x44be89([0x6d,0x6f,0x64,0x65,0x6c])][_0x44be89([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x17ee3e,_0x10d81e[_0x44be89([0x6d,0x6f,0x64,0x65,0x6c])][_0x44be89([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x17ee3e,_0x10d81e[_0x44be89([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x44be89([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2c8e07(_0x10be35){const _0xba3303=_0x34eb61();_0x10d81e[_0xba3303]=_0x44be89([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x10be35,_0x10be35!=_0x44be89([0x56,0x61,0x6c,0x69,0x64])&&_0x5ee7c7();}function _0x34eb61(){const _0x25acfa=window[_0x44be89([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x44be89([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x44be89([0x6e,0x6f,0x77])]())[_0x44be89([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x44be89([0x2e]),'');let _0x4ba311=_0x44be89([0x44]);for(let _0x258071=0x0;_0x258071<_0x25acfa[_0x44be89([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x258071+=0x2){let _0x5bc8b6=window[_0x44be89([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25acfa[_0x44be89([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x258071,_0x258071+0x2));_0x5bc8b6>=_0x13af68[_0x44be89([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5bc8b6-=_0x13af68[_0x44be89([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4ba311+=_0x13af68[_0x5bc8b6];}return _0x4ba311;}function _0x40d89f(){const _0x244995=_0x107c02[_0x44be89([0x73,0x70,0x6c,0x69,0x74])](_0x44be89([0x2e]));if(0x3!=_0x244995[_0x44be89([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x49b312(_0x244995[0x1]);function _0x49b312(_0xef6d92){const _0x3cd1a4=_0x135e2f(_0xef6d92);return _0x3cd1a4&&_0x3da907()?_0x3cd1a4:null;function _0x3da907(){const _0x4a0443=_0x3cd1a4[_0x44be89([0x6a,0x74,0x69])],_0x6c0eb9=window[_0x44be89([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a0443[_0x44be89([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a0443[_0x44be89([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x53915d={..._0x3cd1a4,[_0x44be89([0x6a,0x74,0x69])]:_0x4a0443[_0x44be89([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4a0443[_0x44be89([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x53915d[_0x44be89([0x76,0x63])],_0x5f1574(_0x53915d)==_0x6c0eb9;}}}async function _0x5b9f81(){let _0x466f24=!0x0;try{const _0x3e7188=_0x107c02[_0x44be89([0x73,0x70,0x6c,0x69,0x74])](_0x44be89([0x2e])),[_0x495c9f,_0x246875,_0xb20164]=_0x3e7188;return _0xcc6c41(_0x495c9f),await _0x8d884d(_0x495c9f,_0x246875,_0xb20164),_0x466f24;}catch{return!0x1;}function _0xcc6c41(_0x3f2001){const _0x3fad75=_0x135e2f(_0x3f2001);_0x3fad75&&_0x3fad75[_0x44be89([0x61,0x6c,0x67])]==_0x44be89([0x45,0x53,0x32,0x35,0x36])||(_0x466f24=!0x1);}async function _0x8d884d(_0xd37052,_0x377abd,_0x2388ef){const _0x5f0f9c=window[_0x44be89([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x44be89([0x66,0x72,0x6f,0x6d])](_0xccb4db(_0x2388ef),_0x200021=>_0x200021[_0x44be89([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3a4fe9=new window[(_0x44be89([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x44be89([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xd37052+_0x44be89([0x2e])+_0x377abd),_0x7aec81=window[_0x44be89([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x44be89([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x7aec81)return;const _0x2ee9c1=await _0x7aec81[_0x44be89([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x44be89([0x6a,0x77,0x6b]),_0x11d806,{[_0x44be89([0x6e,0x61,0x6d,0x65])]:_0x44be89([0x45,0x43,0x44,0x53,0x41]),[_0x44be89([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x44be89([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x44be89([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x7aec81[_0x44be89([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x44be89([0x6e,0x61,0x6d,0x65])]:_0x44be89([0x45,0x43,0x44,0x53,0x41]),[_0x44be89([0x68,0x61,0x73,0x68])]:{[_0x44be89([0x6e,0x61,0x6d,0x65])]:_0x44be89([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2ee9c1,_0x5f0f9c,_0x3a4fe9)||(_0x466f24=!0x1);}}function _0x135e2f(_0x4db842){return _0x4db842[_0x44be89([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x44be89([0x65,0x79]))?JSON[_0x44be89([0x70,0x61,0x72,0x73,0x65])](_0xccb4db(_0x4db842)):null;}function _0xccb4db(_0x3b841b){return window[_0x44be89([0x61,0x74,0x6f,0x62])](_0x3b841b[_0x44be89([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x44be89([0x2b]))[_0x44be89([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x44be89([0x2f])));}function _0x5f1574(_0x59984a){let _0x44614b=0x1505;function _0x28813c(_0x114ef8){for(let _0x536e07=0x0;_0x536e07<_0x114ef8[_0x44be89([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x536e07++){const _0x2fd037=_0x114ef8[_0x44be89([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x536e07);_0x44614b=(_0x44614b<<0x5)+_0x44614b+_0x2fd037,_0x44614b&=_0x44614b;}}function _0x2085b9(_0x1cbcea){Array[_0x44be89([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1cbcea)?_0x1cbcea[_0x44be89([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2085b9):_0x1cbcea&&typeof _0x1cbcea==_0x44be89([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x44be89([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1cbcea)[_0x44be89([0x73,0x6f,0x72,0x74])]()[_0x44be89([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1eb4a4,_0x349ce3])=>{_0x28813c(_0x1eb4a4),_0x2085b9(_0x349ce3);}):_0x28813c(window[_0x44be89([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1cbcea));}return _0x2085b9(_0x59984a),_0x44614b>>>0x0;}function _0x463302(_0x3249df){return _0x3249df[_0x44be89([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x44be89([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x44be89([0x30]));}function _0x78e3e8(_0x35ce90){return _0x35ce90[_0x44be89([0x73,0x70,0x6c,0x69,0x74])]('')[_0x44be89([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x44be89([0x6a,0x6f,0x69,0x6e])]('');}function _0x17ee3e(){}function _0x44be89(_0x5c2731){return _0x5c2731['map'](_0x25d0bd=>String['fromCharCode'](_0x25d0bd))['join']('');}_0x2c8e07(await _0x48dfd4());}(this);}}class ExportInlineStyles extends _0x1ec0d5{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'ExportInlineStyles';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[ExportInlineStylesEditing];}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x284557=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3d6a95;for(const _0x28f3ed in _0x284557){const _0x2717a6=_0x28f3ed,_0x68966e=_0x284557[_0x2717a6];if('exportInlineStylesLicenseKeyValid'==_0x68966e||'exportInlineStylesLicenseKeyInvalid'==_0x68966e||'exportInlineStylesLicenseKeyExpired'==_0x68966e||'exportInlineStylesLicenseKeyDomainLimit'==_0x68966e||'exportInlineStylesLicenseKeyNotAllowed'==_0x68966e||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x68966e||'exportInlineStylesLicenseKeyUsageLimit'==_0x68966e){delete _0x284557[_0x2717a6],_0x3d6a95=_0x68966e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x3d6a95&&_0x284557['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x3d6a95&&_0x284557['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x3d6a95&&_0x284557['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x3d6a95&&_0x284557['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x3d6a95&&_0x284557['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x3d6a95&&_0x284557['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}export{ExportInlineStyles,ExportInlineStylesCommand,ExportInlineStylesEditing,p as dropImportantStyleSuffix};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-export-inline-styles",
|
|
3
|
-
"version": "48.8.1-alpha.
|
|
3
|
+
"version": "48.8.1-alpha.4",
|
|
4
4
|
"description": "The export with inline styles feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"./package.json": "./package.json"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@ckeditor/ckeditor5-core": "48.8.1-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-engine": "48.8.1-alpha.
|
|
39
|
-
"@ckeditor/ckeditor5-utils": "48.8.1-alpha.
|
|
37
|
+
"@ckeditor/ckeditor5-core": "48.8.1-alpha.4",
|
|
38
|
+
"@ckeditor/ckeditor5-engine": "48.8.1-alpha.4",
|
|
39
|
+
"@ckeditor/ckeditor5-utils": "48.8.1-alpha.4",
|
|
40
40
|
"specificity": "0.4.1"
|
|
41
41
|
},
|
|
42
42
|
"files": [
|