@ckeditor/ckeditor5-export-inline-styles 48.4.0-alpha.6 → 48.4.0

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x521997,Plugin as _0x4d4458}from'@ckeditor/ckeditor5-core';import{collectStylesheets as _0x2e540d,createElement as _0x39f257,uid as _0x53ea61}from'@ckeditor/ckeditor5-utils';import{StylesMap as _0x29e09e,addMarginStylesRules as _0x383e50,addPaddingStylesRules as _0x2ab082}from'@ckeditor/ckeditor5-engine';import{calculate as _0x45050f,compare as _0x35575e}from'specificity';function f(_0x27d67b){const _0x5500db=[];let _0x38dfc0='',_0xaf11be=0x0;for(;_0xaf11be<_0x27d67b['length'];){const _0x2fde7c=_0x27d67b[_0xaf11be];if('('===_0x2fde7c){const _0x32f2b1=y(_0x27d67b,_0xaf11be+0x1);if(-0x1===_0x32f2b1)return[];_0x38dfc0+=_0x27d67b['slice'](_0xaf11be,_0x32f2b1+0x1),_0xaf11be=_0x32f2b1+0x1;}else','!==_0x2fde7c||_0x38dfc0['endsWith']('\x5c')?(_0x38dfc0+=_0x2fde7c,_0xaf11be++):(_0x5500db['push'](_0x38dfc0['trim']()),_0x38dfc0='',_0xaf11be++);}return _0x38dfc0['trim']()&&_0x5500db['push'](_0x38dfc0['trim']()),_0x5500db['filter'](Boolean);}function y(_0x51fce7,_0x260dfb){let _0x4e42a1=0x1;for(let _0x5272ed=_0x260dfb;_0x5272ed<_0x51fce7['length'];_0x5272ed++){const _0x35099c=_0x51fce7[_0x5272ed];if('('===_0x35099c)_0x4e42a1++;else{if(')'===_0x35099c&&(_0x4e42a1--,0x0===_0x4e42a1))return _0x5272ed;}}return-0x1;}function d(_0x3d6a95){return _0x3d6a95['replace'](/!\s*important/i,'')['trim']();}function w(_0x5f007e){const _0x531d39=new Map();for(const {stylesMap:_0x259f28,flatSelector:_0xff6479}of _0x5f007e){if(':root'!==_0xff6479)continue;const _0x2ddec6=p(_0x531d39['get']['bind'](_0x531d39),_0x259f28);for(const [_0x1fe17a,_0x13ca63]of _0x2ddec6)_0x531d39['set'](_0x1fe17a,_0x13ca63);}return _0x531d39;}function p(_0x420b6e,_0x1607ea){const _0x1d7289=new Map(),_0x251ffe=_0x179072=>_0x1d7289['has'](_0x179072)?_0x1d7289['get'](_0x179072):_0x420b6e(_0x179072);for(const [_0x5f1682,_0x516415]of _0x1607ea['getStylesEntries']())if(_0x516415&&_0x5f1682['startsWith']('--')){const _0x166460=m(_0x251ffe,_0x516415);_0x1d7289['set'](_0x5f1682,_0x166460),_0x1607ea['remove'](_0x5f1682);}for(const [_0x22061d,_0x4abe55]of _0x1607ea['getStylesEntries']())if(_0x4abe55){const _0x4e987f=m(_0x251ffe,_0x4abe55);_0x1607ea['set'](_0x22061d,_0x4e987f);}return _0x1d7289;}function m(_0x2b27d2,_0x5847d5){return function(_0x34e11d,_0x1771bb){let _0x6da1ad='',_0x4d6da3=0x0;for(;_0x4d6da3<_0x34e11d['length'];){const _0x353dc0=_0x34e11d['indexOf']('var(',_0x4d6da3);if(-0x1===_0x353dc0){_0x6da1ad+=_0x34e11d['slice'](_0x4d6da3);break;}_0x6da1ad+=_0x34e11d['slice'](_0x4d6da3,_0x353dc0);const _0x318a43=_0x353dc0+0x4,_0x12c54e=y(_0x34e11d,_0x318a43);_0x6da1ad+=_0x1771bb(_0x34e11d['substring'](_0x318a43,_0x12c54e)),_0x4d6da3=_0x12c54e+0x1;}return _0x6da1ad;}(_0x5847d5,_0x4a7693=>{const [_0x243f12,_0x356053]=f(_0x4a7693),_0x2262ea=_0x2b27d2(_0x243f12);return void 0x0!==_0x2262ea?_0x2262ea:_0x356053?m(_0x2b27d2,_0x356053):'var('+_0x243f12+')';});}async function h(_0x1f237e){const _0x454f8e=[await _0x2e540d(_0x1f237e['stylesheets']),_0x1f237e['inlineCss']]['filter'](_0x5f483c=>_0x5f483c&&_0x5f483c['length'])['join']('\x0a'),_0x1f5a22=await async function(_0x52b188,_0x3bfc37){const _0x114eda=new CSSStyleSheet();return await _0x114eda['replace'](_0x3bfc37),S(Array['from'](_0x114eda['cssRules'])['filter'](_0x460677=>_0x460677 instanceof CSSStyleRule))['flatMap'](({selectorText:_0x35af91,contentCssText:_0x1be12f})=>{const _0x22fb5a=f(_0x35af91),_0x398d88=new _0x29e09e(_0x52b188)['setTo'](_0x1be12f);return _0x22fb5a['map'](_0x30d94c=>{const _0x49d168=function(_0xdc4088){const _0x5537cd=':where(';let _0x338513=_0xdc4088,_0x2b7e32=0x0;for(let _0x506d6a=0x0;_0x506d6a<0x64;_0x506d6a++){const _0x5e45ba=_0x338513['indexOf'](_0x5537cd,_0x2b7e32);if(-0x1===_0x5e45ba)break;let _0x1d7df9=0x0;for(let _0x3313e4=0x0;_0x3313e4<_0x5e45ba;_0x3313e4++)'('===_0x338513[_0x3313e4]?_0x1d7df9++:')'===_0x338513[_0x3313e4]&&_0x1d7df9--;if(_0x1d7df9>0x0){_0x2b7e32=_0x5e45ba+0x7;continue;}let _0x12b5f9=-0x1;for(let _0x31e7ae=_0x5e45ba+0x7,_0x5a945a=0x1;_0x31e7ae<_0x338513['length'];_0x31e7ae++)if('('===_0x338513[_0x31e7ae]?_0x5a945a++:')'===_0x338513[_0x31e7ae]&&_0x5a945a--,!_0x5a945a){_0x12b5f9=_0x31e7ae;break;}-0x1!==_0x12b5f9?(_0x338513=_0x338513['slice'](0x0,_0x5e45ba)+_0x338513['slice'](_0x12b5f9+0x1),_0x2b7e32=_0x5e45ba):_0x2b7e32=_0x5e45ba+0x7;}return _0x338513['replace'](/\s+/g,'\x20')['trim']();}(_0x30d94c),_0x2eeeca=_0x49d168?_0x45050f(_0x49d168)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0];return{'stylesMap':_0x398d88,'flatSelector':_0x30d94c,'specificity':_0x2eeeca};});})['sort']((_0x46308a,_0x29bb68)=>_0x35575e(_0x46308a['specificity'],_0x29bb68['specificity']));}(_0x1f237e['stylesProcessor'],_0x454f8e);return{'parsedCssRules':_0x1f5a22,'rootCssVariables':w(_0x1f5a22)};}function S(_0x2b6805,_0x35423c=''){return _0x2b6805['flatMap'](_0x1171d6=>{const {selectorText:_0x5243bb,cssText:_0x1bc8a4,cssRules:_0x2f15bf}=_0x1171d6;if(!_0x5243bb)return[];const _0x3d9929=_0x5243bb['replace'](/&/g,_0x35423c);let _0x426cd9=_0x1bc8a4['replace'](_0x5243bb,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x2f15bf||!_0x2f15bf['length'])return[{'selectorText':_0x3d9929,'contentCssText':_0x426cd9}];for(const _0xf1ff83 of _0x2f15bf)_0x426cd9=_0x426cd9['replace'](_0xf1ff83['cssText'],'')['trim']();return[{'selectorText':_0x3d9929,'contentCssText':_0x426cd9},...S(Array['from'](_0x2f15bf),_0x3d9929)];});}function L(_0x21595f,_0x4234ad){const _0x429e52=new _0x29e09e(_0x21595f);for(const _0x2497c6 of _0x4234ad){let _0x16ea4a;if(_0x16ea4a='string'==typeof _0x2497c6?new _0x29e09e(_0x21595f)['setTo'](_0x2497c6):_0x2497c6,_0x16ea4a){for(const [_0xb2bf7c,_0xb1b3da]of _0x16ea4a['getStylesEntries']())_0x429e52['set'](_0xb2bf7c,_0xb1b3da);}}return _0x429e52;}var g=class extends _0x521997{_stylesProcessor;constructor(_0x1a4a26){super(_0x1a4a26),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x383e50(this['_stylesProcessor']),_0x2ab082(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async execute(_0x4b8309){const _0x17b0dc=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x292da9}=this['editor']['locale'],{rootName:_0x313538='main',dataControllerDowncastOptions:_0x2db050={},transformations:_0x2e7ae9=_0x17b0dc['transformations']||[]}=_0x4b8309||{};this['isBusy']=!0x0,this['refresh']();const _0x79bafd=this['_getRootDataHTMLFragment'](_0x313538,_0x2db050),_0x348226=_0x39f257(_0x79bafd['ownerDocument'],'div',{'dir':_0x292da9,'class':'ck-content'},[_0x79bafd]);return this['_collectAndApplyStyles'](_0x2e7ae9,_0x348226)['then'](()=>{const _0x2facc0=function(_0xfe70b3){const _0x587c94=_0xfe70b3['ownerDocument']['createDocumentFragment']();for(;_0xfe70b3['firstChild'];)_0x587c94['appendChild'](_0xfe70b3['firstChild']);return _0x587c94;}(_0x348226),_0x5dbd73=_0x348226['getAttribute']('style');if(_0x5dbd73)for(const _0x2450ef of _0x2facc0['children']){const _0x13d575=_0x2450ef['getAttribute']('style'),_0x29cbfd=L(this['_stylesProcessor'],[_0x5dbd73,_0x13d575]);_0x2450ef['setAttribute']('style',x(_0x29cbfd));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x2facc0);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}_getRootDataHTMLFragment(_0x34f482,_0x644e72){const {data:_0x43ba61,model:_0x1f01d8}=this['editor'],_0x2b5150=_0x1f01d8['document']['getRoot'](_0x34f482),_0x577d0a=_0x43ba61['toView'](_0x2b5150,_0x644e72);return _0x43ba61['htmlProcessor']['domConverter']['viewToDom'](_0x577d0a);}async _collectAndApplyStyles(_0x5991ae,_0x5e8f82){const {stylesheets:_0x3907f9,inlineCss:_0x3a51a3,stripCssClasses:_0x244f47}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x486441,rootCssVariables:_0x3e9921}=await h({'stylesheets':_0x3907f9||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x3a51a3}),_0xfa8800=[];this['_processElementTree']({'transformations':_0x5991ae,'parsedCssRules':_0x486441,'element':_0x5e8f82,'stripCssClasses':_0x244f47,'parentCSSVariablesLookup':_0x3e9921['get']['bind'](_0x3e9921),'runAfterDocumentTransformation':_0x2eccf4=>{_0xfa8800['unshift'](_0x2eccf4);}});for(const _0x589289 of _0xfa8800)_0x589289();}_processElementTree({element:_0x15fc29,parsedCssRules:_0x4f82ca,parentCSSVariablesLookup:_0x155bf9,runAfterDocumentTransformation:_0x174b1e,stripCssClasses:_0x5f39fe,transformations:_0x24a57c}){const {stylesMap:_0x345e0d,localCSSVariables:_0xe444cd}=function(_0x2404dc){const _0x270d23=_0x2404dc['element']['getAttribute']('style')||'',_0x578f26=_0x2404dc['parsedCssRules']['filter'](_0x5e0282=>_0x2404dc['element']['matches'](_0x5e0282['flatSelector']))['map'](_0x2de943=>_0x2de943['stylesMap']),_0x2522ed=L(_0x2404dc['stylesProcessor'],[..._0x578f26,_0x270d23]);return{'localCSSVariables':p(_0x2404dc['fallbackCSSVariablesLookup'],_0x2522ed),'stylesMap':_0x2522ed};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x155bf9,'parsedCssRules':_0x4f82ca,'element':_0x15fc29}),_0x17d2ca=[];for(const _0x2d48af of _0x24a57c){const _0x186d14=_0x2d48af(_0x15fc29,_0x345e0d,{'runAfterDocumentTransformation':_0x174b1e,'runAfterChildrenTransformation':_0x453759=>{_0x17d2ca['unshift'](_0x453759);}});_0x186d14&&_0x186d14 instanceof HTMLElement&&(_0x15fc29=_0x186d14);}_0x345e0d['size']?_0x15fc29['setAttribute']('style',x(_0x345e0d)):_0x15fc29['removeAttribute']('style');const _0xe20759=_0xad4002=>_0xe444cd['has'](_0xad4002)?_0xe444cd['get'](_0xad4002):_0x155bf9(_0xad4002);for(const _0x44e651 of _0x15fc29['children'])_0x44e651 instanceof HTMLElement&&this['_processElementTree']({'element':_0x44e651,'parsedCssRules':_0x4f82ca,'stripCssClasses':_0x5f39fe,'transformations':_0x24a57c,'parentCSSVariablesLookup':_0xe20759,'runAfterDocumentTransformation':_0x174b1e});_0x5f39fe&&_0x15fc29['removeAttribute']('class');for(const _0x2ebef9 of _0x17d2ca)_0x2ebef9();}};function x(_0x50ccd6){return _0x50ccd6['getStylesEntries']()['map'](_0x584301=>_0x584301['join'](':'))['join'](';')+';';}var C=class extends _0x4d4458{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 g(this['editor']));}afterInit(){!async function(_0x48daa6){const _0x5c17f2='DUA610emL4Q2kjVIvGMHgWT3uySnzPEw79oZJiCrbstcXKq85NhdfaFRxBlpOY',_0x23f066=0x791b8,_0x552888=window['Date']['now'](),_0x5e69f1=_0x48daa6['editor'],_0x3124af=new window['Promise'](_0xdc62ac=>{_0x5e69f1['once']('ready',_0xdc62ac);}),_0xfad357={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x3204ad=_0x5e69f1['config']['get']('licenseKey');async function _0x3dd415(){let _0x302ff2,_0x24d382=null,_0x242216=null;try{return'GPL'==_0x3204ad?'NotAllowed':(_0x302ff2=_0x156d9a(),_0x302ff2?(_0x302ff2['usageEndpoint']&&(_0x242216=_0x89bbe8(_0x302ff2['usageEndpoint'],_0x302ff2['jti'])),await _0x379f74()?_0x5f0732()?_0x16459b()?'Expired':_0x59dbe9()?('evaluation'==_0x302ff2['licenseType']&&(_0x24d382=_0x52c718('EvaluationLimit')),await _0x263e8f()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x16459b(){const _0x2383e1=['evaluation','trial']['includes'](_0x302ff2['licenseType'])?_0x552888/0x3e8:0xe10*_0x23f066;return _0x302ff2['exp']<_0x2383e1;}function _0x5f0732(){const _0x15f838=_0x302ff2['features'];return!!_0x15f838&&(!!_0x15f838['includes']('*')||!!_0x15f838['includes']('EIS'));}function _0x59dbe9(){const _0x22f503=_0x302ff2['licensedHosts'];if(!_0x22f503||0x0==_0x22f503['length'])return!0x0;const {hostname:_0x2b9bb8}=new URL(window['location']['href']);if(_0x22f503['includes'](_0x2b9bb8))return!0x0;const _0xf4f0a6=_0x2b9bb8['split']('.');return _0x22f503['filter'](_0x36d246=>_0x36d246['includes']('*'))['map'](_0x55d3c9=>_0x55d3c9['split']('.'))['filter'](_0x48d3c1=>_0x48d3c1['length']<=_0xf4f0a6['length'])['map'](_0x36cecb=>Array(_0xf4f0a6['length']-_0x36cecb['length'])['fill']('*'===_0x36cecb[0x0]?'*':'')['concat'](_0x36cecb))['some'](_0x4b2160=>_0xf4f0a6['every']((_0x3aa937,_0x5f4088)=>_0x4b2160[_0x5f4088]===_0x3aa937||'*'===_0x4b2160[_0x5f4088]));}function _0x263e8f(){return _0x24d382&&_0x242216?new window['Promise']((_0x67cfe,_0x2a1309)=>{_0x24d382['then'](_0x67cfe,_0x2a1309),_0x242216['then'](_0x33c4b8=>{'Valid'!=_0x33c4b8&&_0x67cfe(_0x33c4b8);},_0x2a1309);}):_0x24d382||_0x242216||'Valid';}}function _0x89bbe8(_0x68c5a1,_0x20a1f4){return new window['Promise'](_0x35e0ee=>{if(_0x197cf6())return _0x35e0ee('Valid');_0x29e603(),_0x5e69f1['decorate']('_sendUsageRequest');let _0x599c35=!0x1;const _0x37a56e=_0x53ea61();function _0x5b74c1(_0x5d3cb8){return!!_0x5d3cb8&&('object'==typeof _0x5d3cb8||'function'==typeof _0x5d3cb8)&&'function'==typeof _0x5d3cb8['then']&&'function'==typeof _0x5d3cb8['catch'];}function _0x32e44c(_0xb42652){_0x434e05(_0xb42652)['then'](_0x334db4=>_0x334db4&&'ok'==_0x334db4['status']?_0x50e0a5(_0x23d13e(_0x37a56e+_0x20a1f4))!=_0x334db4['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x1dae79=>(_0x57fd2c(),_0x1dae79),()=>{const _0x3c4e61=_0x3bd8e2();return null==_0x3c4e61?(_0x57fd2c(),'Valid'):_0x552888-_0x3c4e61>0x240c8400?'UsageLimit':'Valid';})['then'](_0x35e0ee)['catch'](()=>{_0x35e0ee('UsageLimit');});const _0x15b4a0=0x36ee80;function _0x57fd2c(){const _0x1b7c11='llct-'+_0x50e0a5(_0x23d13e(_0x68c5a1)),_0x4c1b2d=_0x47deb2(_0x50e0a5(window['Math']['ceil'](_0x552888/_0x15b4a0)));window['localStorage']['setItem'](_0x1b7c11,_0x4c1b2d);}function _0x3bd8e2(){const _0x4bf287='llct-'+_0x50e0a5(_0x23d13e(_0x68c5a1)),_0x123e25=window['localStorage']['getItem'](_0x4bf287);return _0x123e25?window['parseInt'](_0x47deb2(_0x123e25),0x10)*_0x15b4a0:null;}function _0x434e05(_0x2d13a4){return new window['Promise']((_0x4f7fa1,_0xd64ce0)=>{_0x2d13a4['then'](_0x4f7fa1,_0xd64ce0),window['setTimeout'](_0xd64ce0,0x1d4c0);});}}_0x5e69f1['on']('_sendUsageRequest',(_0x5bcc01,_0x57837e)=>{if(_0x57837e[0x0]!=_0x68c5a1)return _0x35e0ee('UsageLimit');_0x57837e[0x1]={..._0x57837e[0x1],'requestId':_0x37a56e};},{'priority':'high'}),_0x5e69f1['on']('_sendUsageRequest',_0x736f24=>{_0x5b74c1(_0x736f24['return'])&&(_0x599c35=!0x0,_0x32e44c(_0x736f24['return']));},{'priority':'low'}),_0x3124af['then'](()=>{_0x599c35||_0x35e0ee('UsageLimit');});});function _0x197cf6(){return'auto'==_0x5e69f1['editing']['view']['_overlayModeHint'];}function _0x29e603(){_0x5e69f1['editing']['view']['_overlayModeHint']='auto';}}function _0x52c718(_0x3144d4){const _0x555de2=[new window['Promise'](_0x464daa=>setTimeout(_0x464daa,0x93ecc)),_0x3124af['then'](()=>new window['Promise'](_0x534e7b=>{let _0x4c454a=0x0;_0x5e69f1['model']['on']('applyOperation',(_0x4a769f,_0x4e9f36)=>{_0x4e9f36[0x0]['isDocumentOperation']&&_0x4c454a++,0x5e8==_0x4c454a&&(_0x534e7b(),_0x4a769f['off']());});}))];return window['Promise']['race'](_0x555de2)['then'](()=>_0x3144d4);}async function _0x2ea77e(){await _0x3124af;const _0x5e8269=_0x5e69f1['commands']['get']('exportInlineStyles');_0x5e8269&&_0x5e8269['on']('execute',_0x4e1011=>{_0x4e1011['stop']();},{'priority':'highest'}),_0x5e69f1['model']['change']=_0x45b394,_0x5e69f1['model']['enqueueChange']=_0x45b394,_0x5e69f1['enableReadOnlyMode']('model');}function _0x440fd2(_0x41b6cb){const _0x5d24fa=_0x1bd025();_0x5e69f1[_0x5d24fa]='exportInlineStylesLicenseKey'+_0x41b6cb,'Valid'!=_0x41b6cb&&_0x2ea77e();}function _0x1bd025(){const _0x334142=window['String'](window['performance']['now']())['replace']('.','');let _0x4f2536='D';for(let _0x215a0b=0x0;_0x215a0b<_0x334142['length'];_0x215a0b+=0x2){let _0x34d12f=window['parseInt'](_0x334142['substring'](_0x215a0b,_0x215a0b+0x2));_0x34d12f>=0x3e&&(_0x34d12f-=0x3e),_0x4f2536+=_0x5c17f2[_0x34d12f];}return _0x4f2536;}function _0x156d9a(){const _0x14eaa8=_0x3204ad['split']('.');if(0x3!=_0x14eaa8['length'])return null;return _0x665630(_0x14eaa8[0x1]);function _0x665630(_0x30f8d8){const _0x4bc42f=_0x33e225(_0x30f8d8);return _0x4bc42f&&_0x188733()?_0x4bc42f:null;function _0x188733(){const _0x45cbee=_0x4bc42f['jti'],_0x230e94=window['parseInt'](_0x45cbee['substring'](_0x45cbee['length']-0x8),0x10),_0x59f6f6={..._0x4bc42f,'jti':_0x45cbee['substring'](0x0,_0x45cbee['length']-0x8)};return delete _0x59f6f6['vc'],_0x23d13e(_0x59f6f6)==_0x230e94;}}}async function _0x379f74(){let _0x190bed=!0x0;try{const [_0x18d24d,_0x2e7906,_0x17a088]=_0x3204ad['split']('.');return _0x14eec5(_0x18d24d),await _0xe30b7b(_0x18d24d,_0x2e7906,_0x17a088),_0x190bed;}catch{return!0x1;}function _0x14eec5(_0x37bd38){const _0x423b6f=_0x33e225(_0x37bd38);_0x423b6f&&'ES256'==_0x423b6f['alg']||(_0x190bed=!0x1);}async function _0xe30b7b(_0x405a1d,_0x29e81e,_0x2d3599){const _0x2569ec=window['Uint8Array']['from'](_0x5c8e46(_0x2d3599),_0x78b2a9=>_0x78b2a9['charCodeAt'](0x0)),_0x540e4e=new window['TextEncoder']()['encode'](_0x405a1d+'.'+_0x29e81e),_0xbc2e75=window['crypto']['subtle'];if(!_0xbc2e75)return;const _0xcc3d3a=await _0xbc2e75['importKey']('jwk',_0xfad357,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0xbc2e75['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0xcc3d3a,_0x2569ec,_0x540e4e)||(_0x190bed=!0x1);}}function _0x33e225(_0xa7d91d){return _0xa7d91d['startsWith']('ey')?JSON['parse'](_0x5c8e46(_0xa7d91d)):null;}function _0x5c8e46(_0x2d2308){return window['atob'](_0x2d2308['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x23d13e(_0x5cc480){let _0x18cfc8=0x1505;function _0x33df63(_0x2b01b7){for(let _0x66084=0x0;_0x66084<_0x2b01b7['length'];_0x66084++){const _0x1b1f03=_0x2b01b7['charCodeAt'](_0x66084);_0x18cfc8=(_0x18cfc8<<0x5)+_0x18cfc8+_0x1b1f03,_0x18cfc8&=_0x18cfc8;}}function _0x10cb89(_0x37ceb9){Array['isArray'](_0x37ceb9)?_0x37ceb9['forEach'](_0x10cb89):_0x37ceb9&&'object'==typeof _0x37ceb9?Object['entries'](_0x37ceb9)['sort']()['forEach'](([_0x5ed714,_0x393b22])=>{_0x33df63(_0x5ed714),_0x10cb89(_0x393b22);}):_0x33df63(window['String'](_0x37ceb9));}return _0x10cb89(_0x5cc480),_0x18cfc8>>>0x0;}function _0x50e0a5(_0x5798c3){return _0x5798c3['toString'](0x10)['padStart'](0x8,'0');}function _0x47deb2(_0x1cc98f){return _0x1cc98f['split']('')['reverse']()['join']('');}function _0x45b394(){}_0x440fd2(await _0x3dd415());}(this);}},I=class extends _0x4d4458{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'ExportInlineStyles';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[C];}init(){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x361eca=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x19a99a;for(const _0x3d9c8c in _0x361eca){const _0x5beaff=_0x3d9c8c,_0x4d213a=_0x361eca[_0x5beaff];if('exportInlineStylesLicenseKeyValid'==_0x4d213a||'exportInlineStylesLicenseKeyInvalid'==_0x4d213a||'exportInlineStylesLicenseKeyExpired'==_0x4d213a||'exportInlineStylesLicenseKeyDomainLimit'==_0x4d213a||'exportInlineStylesLicenseKeyNotAllowed'==_0x4d213a||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x4d213a||'exportInlineStylesLicenseKeyUsageLimit'==_0x4d213a){delete _0x361eca[_0x5beaff],_0x19a99a=_0x4d213a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x19a99a&&_0x361eca['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x19a99a&&_0x361eca['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x19a99a&&_0x361eca['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x19a99a&&_0x361eca['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x19a99a&&_0x361eca['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x19a99a&&_0x361eca['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};export{I as ExportInlineStyles,g as ExportInlineStylesCommand,C as ExportInlineStylesEditing,d as dropImportantStyleSuffix};
23
+ import{Command as _0x1a144e,Plugin as _0x5b15f9}from'@ckeditor/ckeditor5-core';import{collectStylesheets as _0x4a9599,createElement as _0x3d84eb,uid as _0x23e9aa}from'@ckeditor/ckeditor5-utils';import{StylesMap as _0x4d0a50,addMarginStylesRules as _0xddb426,addPaddingStylesRules as _0xb12d19}from'@ckeditor/ckeditor5-engine';import{calculate as _0x5dd4cd,compare as _0x5224eb}from'specificity';function f(_0x1c25cf){const _0x4387aa=[];let _0x33d953='',_0x3caa6b=0x0;for(;_0x3caa6b<_0x1c25cf['length'];){const _0x51a05c=_0x1c25cf[_0x3caa6b];if('('===_0x51a05c){const _0xc89d06=y(_0x1c25cf,_0x3caa6b+0x1);if(-0x1===_0xc89d06)return[];_0x33d953+=_0x1c25cf['slice'](_0x3caa6b,_0xc89d06+0x1),_0x3caa6b=_0xc89d06+0x1;}else','!==_0x51a05c||_0x33d953['endsWith']('\x5c')?(_0x33d953+=_0x51a05c,_0x3caa6b++):(_0x4387aa['push'](_0x33d953['trim']()),_0x33d953='',_0x3caa6b++);}return _0x33d953['trim']()&&_0x4387aa['push'](_0x33d953['trim']()),_0x4387aa['filter'](Boolean);}function y(_0x354379,_0x33f6a9){let _0x500df5=0x1;for(let _0x22fc0c=_0x33f6a9;_0x22fc0c<_0x354379['length'];_0x22fc0c++){const _0x2cfec7=_0x354379[_0x22fc0c];if('('===_0x2cfec7)_0x500df5++;else{if(')'===_0x2cfec7&&(_0x500df5--,0x0===_0x500df5))return _0x22fc0c;}}return-0x1;}function d(_0x18ba59){return _0x18ba59['replace'](/!\s*important/i,'')['trim']();}function w(_0x1898c4){const _0x30443e=new Map();for(const {stylesMap:_0x308f77,flatSelector:_0x5cc7ca}of _0x1898c4){if(':root'!==_0x5cc7ca)continue;const _0x4ca564=p(_0x30443e['get']['bind'](_0x30443e),_0x308f77);for(const [_0x2966c9,_0x4ec968]of _0x4ca564)_0x30443e['set'](_0x2966c9,_0x4ec968);}return _0x30443e;}function p(_0x2f3383,_0x5960fd){const _0x126121=new Map(),_0x3e325a=_0x1cdec8=>_0x126121['has'](_0x1cdec8)?_0x126121['get'](_0x1cdec8):_0x2f3383(_0x1cdec8);for(const [_0x2bb896,_0x134237]of _0x5960fd['getStylesEntries']())if(_0x134237&&_0x2bb896['startsWith']('--')){const _0x5c6235=m(_0x3e325a,_0x134237);_0x126121['set'](_0x2bb896,_0x5c6235),_0x5960fd['remove'](_0x2bb896);}for(const [_0x2bd7d7,_0x41f4d2]of _0x5960fd['getStylesEntries']())if(_0x41f4d2){const _0x516557=m(_0x3e325a,_0x41f4d2);_0x5960fd['set'](_0x2bd7d7,_0x516557);}return _0x126121;}function m(_0x2a8a31,_0x268ffa){return function(_0x2dbdcc,_0x418132){let _0x22d1f1='',_0x1e9a51=0x0;for(;_0x1e9a51<_0x2dbdcc['length'];){const _0x10d2a7=_0x2dbdcc['indexOf']('var(',_0x1e9a51);if(-0x1===_0x10d2a7){_0x22d1f1+=_0x2dbdcc['slice'](_0x1e9a51);break;}_0x22d1f1+=_0x2dbdcc['slice'](_0x1e9a51,_0x10d2a7);const _0xa70bb0=_0x10d2a7+0x4,_0xd07120=y(_0x2dbdcc,_0xa70bb0);_0x22d1f1+=_0x418132(_0x2dbdcc['substring'](_0xa70bb0,_0xd07120)),_0x1e9a51=_0xd07120+0x1;}return _0x22d1f1;}(_0x268ffa,_0x311b2f=>{const [_0x384926,_0x47b4ee]=f(_0x311b2f),_0x242ae5=_0x2a8a31(_0x384926);return void 0x0!==_0x242ae5?_0x242ae5:_0x47b4ee?m(_0x2a8a31,_0x47b4ee):'var('+_0x384926+')';});}async function h(_0x16ff8e){const _0x4f5c11=[await _0x4a9599(_0x16ff8e['stylesheets']),_0x16ff8e['inlineCss']]['filter'](_0x413dc2=>_0x413dc2&&_0x413dc2['length'])['join']('\x0a'),_0x1ce5c4=await async function(_0x5cf3bf,_0xdeb225){const _0x1c7cb4=new CSSStyleSheet();return await _0x1c7cb4['replace'](_0xdeb225),S(Array['from'](_0x1c7cb4['cssRules'])['filter'](_0x1838b9=>_0x1838b9 instanceof CSSStyleRule))['flatMap'](({selectorText:_0x20c67f,contentCssText:_0x178267})=>{const _0x41a435=f(_0x20c67f),_0x51a705=new _0x4d0a50(_0x5cf3bf)['setTo'](_0x178267);return _0x41a435['map'](_0x4d4fa7=>{const _0x1018eb=function(_0x51e48b){const _0xa32645=':where(';let _0x53e3d9=_0x51e48b,_0x2cde11=0x0;for(let _0x381a69=0x0;_0x381a69<0x64;_0x381a69++){const _0xaad8a5=_0x53e3d9['indexOf'](_0xa32645,_0x2cde11);if(-0x1===_0xaad8a5)break;let _0x2b5b65=0x0;for(let _0x3666c7=0x0;_0x3666c7<_0xaad8a5;_0x3666c7++)'('===_0x53e3d9[_0x3666c7]?_0x2b5b65++:')'===_0x53e3d9[_0x3666c7]&&_0x2b5b65--;if(_0x2b5b65>0x0){_0x2cde11=_0xaad8a5+0x7;continue;}let _0x3f9afd=-0x1;for(let _0x5eeda5=_0xaad8a5+0x7,_0x3aec07=0x1;_0x5eeda5<_0x53e3d9['length'];_0x5eeda5++)if('('===_0x53e3d9[_0x5eeda5]?_0x3aec07++:')'===_0x53e3d9[_0x5eeda5]&&_0x3aec07--,!_0x3aec07){_0x3f9afd=_0x5eeda5;break;}-0x1!==_0x3f9afd?(_0x53e3d9=_0x53e3d9['slice'](0x0,_0xaad8a5)+_0x53e3d9['slice'](_0x3f9afd+0x1),_0x2cde11=_0xaad8a5):_0x2cde11=_0xaad8a5+0x7;}return _0x53e3d9['replace'](/\s+/g,'\x20')['trim']();}(_0x4d4fa7),_0x1e012e=_0x1018eb?_0x5dd4cd(_0x1018eb)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0];return{'stylesMap':_0x51a705,'flatSelector':_0x4d4fa7,'specificity':_0x1e012e};});})['sort']((_0x330d26,_0x323228)=>_0x5224eb(_0x330d26['specificity'],_0x323228['specificity']));}(_0x16ff8e['stylesProcessor'],_0x4f5c11);return{'parsedCssRules':_0x1ce5c4,'rootCssVariables':w(_0x1ce5c4)};}function S(_0x300642,_0x3bfee3=''){return _0x300642['flatMap'](_0x14e061=>{const {selectorText:_0x1f6b0d,cssText:_0x4e07af,cssRules:_0x3f64ba}=_0x14e061;if(!_0x1f6b0d)return[];const _0x303497=_0x1f6b0d['replace'](/&/g,_0x3bfee3);let _0x3732c9=_0x4e07af['replace'](_0x1f6b0d,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x3f64ba||!_0x3f64ba['length'])return[{'selectorText':_0x303497,'contentCssText':_0x3732c9}];for(const _0x5ed37f of _0x3f64ba)_0x3732c9=_0x3732c9['replace'](_0x5ed37f['cssText'],'')['trim']();return[{'selectorText':_0x303497,'contentCssText':_0x3732c9},...S(Array['from'](_0x3f64ba),_0x303497)];});}function L(_0x3c4c25,_0x15ea37){const _0x45ce67=new _0x4d0a50(_0x3c4c25);for(const _0xd5b591 of _0x15ea37){let _0x3c24fd;if(_0x3c24fd='string'==typeof _0xd5b591?new _0x4d0a50(_0x3c4c25)['setTo'](_0xd5b591):_0xd5b591,_0x3c24fd){for(const [_0x580796,_0x2853d3]of _0x3c24fd['getStylesEntries']())_0x45ce67['set'](_0x580796,_0x2853d3);}}return _0x45ce67;}var g=class extends _0x1a144e{_stylesProcessor;constructor(_0x38e5b0){super(_0x38e5b0),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0xddb426(this['_stylesProcessor']),_0xb12d19(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async execute(_0x99684e){const _0x4588ce=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x12a82b}=this['editor']['locale'],{rootName:_0x5d9f03='main',dataControllerDowncastOptions:_0x50e959={},transformations:_0x2aed8c=_0x4588ce['transformations']||[]}=_0x99684e||{};this['isBusy']=!0x0,this['refresh']();const _0x53e134=this['_getRootDataHTMLFragment'](_0x5d9f03,_0x50e959),_0x4c4c41=_0x3d84eb(_0x53e134['ownerDocument'],'div',{'dir':_0x12a82b,'class':'ck-content'},[_0x53e134]);return this['_collectAndApplyStyles'](_0x2aed8c,_0x4c4c41)['then'](()=>{const _0x5e0969=function(_0x11582c){const _0x5d1db3=_0x11582c['ownerDocument']['createDocumentFragment']();for(;_0x11582c['firstChild'];)_0x5d1db3['appendChild'](_0x11582c['firstChild']);return _0x5d1db3;}(_0x4c4c41),_0x59c5c0=_0x4c4c41['getAttribute']('style');if(_0x59c5c0)for(const _0x256718 of _0x5e0969['children']){const _0x553d06=_0x256718['getAttribute']('style'),_0x3f6f09=L(this['_stylesProcessor'],[_0x59c5c0,_0x553d06]);_0x256718['setAttribute']('style',x(_0x3f6f09));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x5e0969);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}_getRootDataHTMLFragment(_0xfca20a,_0x5c107f){const {data:_0x408ab6,model:_0x508028}=this['editor'],_0x108784=_0x508028['document']['getRoot'](_0xfca20a),_0x12b6ed=_0x408ab6['toView'](_0x108784,_0x5c107f);return _0x408ab6['htmlProcessor']['domConverter']['viewToDom'](_0x12b6ed);}async _collectAndApplyStyles(_0x2cdc95,_0x4b5026){const {stylesheets:_0x2e0bcf,inlineCss:_0x31f1d2,stripCssClasses:_0x2d6567}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x5ad2a4,rootCssVariables:_0x58b39e}=await h({'stylesheets':_0x2e0bcf||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x31f1d2}),_0xcba32d=[];this['_processElementTree']({'transformations':_0x2cdc95,'parsedCssRules':_0x5ad2a4,'element':_0x4b5026,'stripCssClasses':_0x2d6567,'parentCSSVariablesLookup':_0x58b39e['get']['bind'](_0x58b39e),'runAfterDocumentTransformation':_0x77fb0d=>{_0xcba32d['unshift'](_0x77fb0d);}});for(const _0x504442 of _0xcba32d)_0x504442();}_processElementTree({element:_0x275393,parsedCssRules:_0x39962d,parentCSSVariablesLookup:_0x485339,runAfterDocumentTransformation:_0x48491d,stripCssClasses:_0x5b87f5,transformations:_0xfe0545}){const {stylesMap:_0x1d4363,localCSSVariables:_0xedf1c}=function(_0x5ade64){const _0x19c330=_0x5ade64['element']['getAttribute']('style')||'',_0x5a0fe8=_0x5ade64['parsedCssRules']['filter'](_0x2f6190=>_0x5ade64['element']['matches'](_0x2f6190['flatSelector']))['map'](_0xe9c1ae=>_0xe9c1ae['stylesMap']),_0x29c0bd=L(_0x5ade64['stylesProcessor'],[..._0x5a0fe8,_0x19c330]);return{'localCSSVariables':p(_0x5ade64['fallbackCSSVariablesLookup'],_0x29c0bd),'stylesMap':_0x29c0bd};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x485339,'parsedCssRules':_0x39962d,'element':_0x275393}),_0x3dc39f=[];for(const _0x189dda of _0xfe0545){const _0x5f54e8=_0x189dda(_0x275393,_0x1d4363,{'runAfterDocumentTransformation':_0x48491d,'runAfterChildrenTransformation':_0x331532=>{_0x3dc39f['unshift'](_0x331532);}});_0x5f54e8&&_0x5f54e8 instanceof HTMLElement&&(_0x275393=_0x5f54e8);}_0x1d4363['size']?_0x275393['setAttribute']('style',x(_0x1d4363)):_0x275393['removeAttribute']('style');const _0x24ffbd=_0x2cb8ed=>_0xedf1c['has'](_0x2cb8ed)?_0xedf1c['get'](_0x2cb8ed):_0x485339(_0x2cb8ed);for(const _0xbf389f of _0x275393['children'])_0xbf389f instanceof HTMLElement&&this['_processElementTree']({'element':_0xbf389f,'parsedCssRules':_0x39962d,'stripCssClasses':_0x5b87f5,'transformations':_0xfe0545,'parentCSSVariablesLookup':_0x24ffbd,'runAfterDocumentTransformation':_0x48491d});_0x5b87f5&&_0x275393['removeAttribute']('class');for(const _0x2bdc80 of _0x3dc39f)_0x2bdc80();}};function x(_0x3a1a76){return _0x3a1a76['getStylesEntries']()['map'](_0x3bc350=>_0x3bc350['join'](':'))['join'](';')+';';}var C=class extends _0x5b15f9{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 g(this['editor']));}afterInit(){!async function(_0x13a2f3){const _0x7bd8d2='DUA610emL4Q2kjVIvGMHgWT3uySnzPEw79oZJiCrbstcXKq85NhdfaFRxBlpOY',_0x1be6cf=0x791d0,_0x3e19ea=window['Date']['now'](),_0x1e0926=_0x13a2f3['editor'],_0x384927=new window['Promise'](_0x2402fd=>{_0x1e0926['once']('ready',_0x2402fd);}),_0x239e32={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x2fc699=_0x1e0926['config']['get']('licenseKey');async function _0x58be65(){let _0xc1c2ec,_0x3a81dd=null,_0x901950=null;try{return'GPL'==_0x2fc699?'NotAllowed':(_0xc1c2ec=_0x30bec6(),_0xc1c2ec?(_0xc1c2ec['usageEndpoint']&&(_0x901950=_0x383f6f(_0xc1c2ec['usageEndpoint'],_0xc1c2ec['jti'])),await _0x2e8f97()?_0x916e8a()?_0xc9ec70()?'Expired':_0x2715e3()?('evaluation'==_0xc1c2ec['licenseType']&&(_0x3a81dd=_0x245026('EvaluationLimit')),await _0x4de18b()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0xc9ec70(){const _0x35260e=['evaluation','trial']['includes'](_0xc1c2ec['licenseType'])?_0x3e19ea/0x3e8:0xe10*_0x1be6cf;return _0xc1c2ec['exp']<_0x35260e;}function _0x916e8a(){const _0x26adcb=_0xc1c2ec['features'];return!!_0x26adcb&&(!!_0x26adcb['includes']('*')||!!_0x26adcb['includes']('EIS'));}function _0x2715e3(){const _0x1fc8a9=_0xc1c2ec['licensedHosts'];if(!_0x1fc8a9||0x0==_0x1fc8a9['length'])return!0x0;const {hostname:_0x308b24}=new URL(window['location']['href']);if(_0x1fc8a9['includes'](_0x308b24))return!0x0;const _0x206885=_0x308b24['split']('.');return _0x1fc8a9['filter'](_0x51b78f=>_0x51b78f['includes']('*'))['map'](_0x5d69af=>_0x5d69af['split']('.'))['filter'](_0x450187=>_0x450187['length']<=_0x206885['length'])['map'](_0x24b65e=>Array(_0x206885['length']-_0x24b65e['length'])['fill']('*'===_0x24b65e[0x0]?'*':'')['concat'](_0x24b65e))['some'](_0x17c639=>_0x206885['every']((_0x47cc24,_0x122012)=>_0x17c639[_0x122012]===_0x47cc24||'*'===_0x17c639[_0x122012]));}function _0x4de18b(){return _0x3a81dd&&_0x901950?new window['Promise']((_0x44fe1e,_0x2beb95)=>{_0x3a81dd['then'](_0x44fe1e,_0x2beb95),_0x901950['then'](_0x73c880=>{'Valid'!=_0x73c880&&_0x44fe1e(_0x73c880);},_0x2beb95);}):_0x3a81dd||_0x901950||'Valid';}}function _0x383f6f(_0x56a46e,_0x311c10){return new window['Promise'](_0x25d188=>{if(_0x6369c0())return _0x25d188('Valid');_0x2881ba(),_0x1e0926['decorate']('_sendUsageRequest');let _0x3cdd86=!0x1;const _0x345b6b=_0x23e9aa();function _0x4acf55(_0x5497e2){return!!_0x5497e2&&('object'==typeof _0x5497e2||'function'==typeof _0x5497e2)&&'function'==typeof _0x5497e2['then']&&'function'==typeof _0x5497e2['catch'];}function _0x59ee80(_0x5a1ab7){_0x5841f4(_0x5a1ab7)['then'](_0x133819=>_0x133819&&'ok'==_0x133819['status']?_0x575271(_0x4015f3(_0x345b6b+_0x311c10))!=_0x133819['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x112399=>(_0x5589ed(),_0x112399),()=>{const _0x385c0b=_0x407dec();return null==_0x385c0b?(_0x5589ed(),'Valid'):_0x3e19ea-_0x385c0b>0x240c8400?'UsageLimit':'Valid';})['then'](_0x25d188)['catch'](()=>{_0x25d188('UsageLimit');});const _0x4ecb40=0x36ee80;function _0x5589ed(){const _0x2bc06f='llct-'+_0x575271(_0x4015f3(_0x56a46e)),_0x31e8c6=_0x1f168f(_0x575271(window['Math']['ceil'](_0x3e19ea/_0x4ecb40)));window['localStorage']['setItem'](_0x2bc06f,_0x31e8c6);}function _0x407dec(){const _0x378091='llct-'+_0x575271(_0x4015f3(_0x56a46e)),_0x525499=window['localStorage']['getItem'](_0x378091);return _0x525499?window['parseInt'](_0x1f168f(_0x525499),0x10)*_0x4ecb40:null;}function _0x5841f4(_0x14ddba){return new window['Promise']((_0x5f54c3,_0x4a5377)=>{_0x14ddba['then'](_0x5f54c3,_0x4a5377),window['setTimeout'](_0x4a5377,0x1d4c0);});}}_0x1e0926['on']('_sendUsageRequest',(_0x263628,_0x35de83)=>{if(_0x35de83[0x0]!=_0x56a46e)return _0x25d188('UsageLimit');_0x35de83[0x1]={..._0x35de83[0x1],'requestId':_0x345b6b};},{'priority':'high'}),_0x1e0926['on']('_sendUsageRequest',_0x567948=>{_0x4acf55(_0x567948['return'])&&(_0x3cdd86=!0x0,_0x59ee80(_0x567948['return']));},{'priority':'low'}),_0x384927['then'](()=>{_0x3cdd86||_0x25d188('UsageLimit');});});function _0x6369c0(){return'auto'==_0x1e0926['editing']['view']['_overlayModeHint'];}function _0x2881ba(){_0x1e0926['editing']['view']['_overlayModeHint']='auto';}}function _0x245026(_0x3c1066){const _0x47426d=[new window['Promise'](_0x13df42=>setTimeout(_0x13df42,0x93ecc)),_0x384927['then'](()=>new window['Promise'](_0x3665dd=>{let _0x256ca7=0x0;_0x1e0926['model']['on']('applyOperation',(_0x740bb9,_0x28e9f6)=>{_0x28e9f6[0x0]['isDocumentOperation']&&_0x256ca7++,0x5e8==_0x256ca7&&(_0x3665dd(),_0x740bb9['off']());});}))];return window['Promise']['race'](_0x47426d)['then'](()=>_0x3c1066);}async function _0x3d0116(){await _0x384927;const _0x5931f1=_0x1e0926['commands']['get']('exportInlineStyles');_0x5931f1&&_0x5931f1['on']('execute',_0x199cf0=>{_0x199cf0['stop']();},{'priority':'highest'}),_0x1e0926['model']['change']=_0x51a456,_0x1e0926['model']['enqueueChange']=_0x51a456,_0x1e0926['enableReadOnlyMode']('model');}function _0x17f625(_0x1cb715){const _0x17ad63=_0xd211e3();_0x1e0926[_0x17ad63]='exportInlineStylesLicenseKey'+_0x1cb715,'Valid'!=_0x1cb715&&_0x3d0116();}function _0xd211e3(){const _0x56bff6=window['String'](window['performance']['now']())['replace']('.','');let _0x4bd016='D';for(let _0x5ce8bd=0x0;_0x5ce8bd<_0x56bff6['length'];_0x5ce8bd+=0x2){let _0x13b51a=window['parseInt'](_0x56bff6['substring'](_0x5ce8bd,_0x5ce8bd+0x2));_0x13b51a>=0x3e&&(_0x13b51a-=0x3e),_0x4bd016+=_0x7bd8d2[_0x13b51a];}return _0x4bd016;}function _0x30bec6(){const _0x3b59e3=_0x2fc699['split']('.');if(0x3!=_0x3b59e3['length'])return null;return _0xd19571(_0x3b59e3[0x1]);function _0xd19571(_0x48f02c){const _0x4b1043=_0x254cf6(_0x48f02c);return _0x4b1043&&_0x17effc()?_0x4b1043:null;function _0x17effc(){const _0x2b532d=_0x4b1043['jti'],_0x1c113a=window['parseInt'](_0x2b532d['substring'](_0x2b532d['length']-0x8),0x10),_0x3f6e17={..._0x4b1043,'jti':_0x2b532d['substring'](0x0,_0x2b532d['length']-0x8)};return delete _0x3f6e17['vc'],_0x4015f3(_0x3f6e17)==_0x1c113a;}}}async function _0x2e8f97(){let _0x1c6ab2=!0x0;try{const [_0x1bd9df,_0x167a2a,_0x1ee04e]=_0x2fc699['split']('.');return _0x5d2f22(_0x1bd9df),await _0x2c052f(_0x1bd9df,_0x167a2a,_0x1ee04e),_0x1c6ab2;}catch{return!0x1;}function _0x5d2f22(_0x16f1f1){const _0x20f577=_0x254cf6(_0x16f1f1);_0x20f577&&'ES256'==_0x20f577['alg']||(_0x1c6ab2=!0x1);}async function _0x2c052f(_0x123b95,_0x1a0a82,_0x5ad179){const _0x254177=window['Uint8Array']['from'](_0x283db5(_0x5ad179),_0x7c4fc=>_0x7c4fc['charCodeAt'](0x0)),_0x4504c4=new window['TextEncoder']()['encode'](_0x123b95+'.'+_0x1a0a82),_0x574de9=window['crypto']['subtle'];if(!_0x574de9)return;const _0x28bc1e=await _0x574de9['importKey']('jwk',_0x239e32,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x574de9['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x28bc1e,_0x254177,_0x4504c4)||(_0x1c6ab2=!0x1);}}function _0x254cf6(_0x323e46){return _0x323e46['startsWith']('ey')?JSON['parse'](_0x283db5(_0x323e46)):null;}function _0x283db5(_0x517c7a){return window['atob'](_0x517c7a['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x4015f3(_0x5e95ad){let _0x2a532b=0x1505;function _0x3abb27(_0xa249fd){for(let _0x9ea046=0x0;_0x9ea046<_0xa249fd['length'];_0x9ea046++){const _0x97d89b=_0xa249fd['charCodeAt'](_0x9ea046);_0x2a532b=(_0x2a532b<<0x5)+_0x2a532b+_0x97d89b,_0x2a532b&=_0x2a532b;}}function _0x44a476(_0x451bd4){Array['isArray'](_0x451bd4)?_0x451bd4['forEach'](_0x44a476):_0x451bd4&&'object'==typeof _0x451bd4?Object['entries'](_0x451bd4)['sort']()['forEach'](([_0xb2a112,_0x485e61])=>{_0x3abb27(_0xb2a112),_0x44a476(_0x485e61);}):_0x3abb27(window['String'](_0x451bd4));}return _0x44a476(_0x5e95ad),_0x2a532b>>>0x0;}function _0x575271(_0xe2f397){return _0xe2f397['toString'](0x10)['padStart'](0x8,'0');}function _0x1f168f(_0x26a3a9){return _0x26a3a9['split']('')['reverse']()['join']('');}function _0x51a456(){}_0x17f625(await _0x58be65());}(this);}},I=class extends _0x5b15f9{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'ExportInlineStyles';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[C];}init(){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x419829=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x12736f;for(const _0x5671c7 in _0x419829){const _0x531e5d=_0x5671c7,_0x4744ed=_0x419829[_0x531e5d];if('exportInlineStylesLicenseKeyValid'==_0x4744ed||'exportInlineStylesLicenseKeyInvalid'==_0x4744ed||'exportInlineStylesLicenseKeyExpired'==_0x4744ed||'exportInlineStylesLicenseKeyDomainLimit'==_0x4744ed||'exportInlineStylesLicenseKeyNotAllowed'==_0x4744ed||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x4744ed||'exportInlineStylesLicenseKeyUsageLimit'==_0x4744ed){delete _0x419829[_0x531e5d],_0x12736f=_0x4744ed,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x12736f&&_0x419829['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x12736f&&_0x419829['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x12736f&&_0x419829['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x12736f&&_0x419829['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x12736f&&_0x419829['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x12736f&&_0x419829['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};export{I as ExportInlineStyles,g as ExportInlineStylesCommand,C as ExportInlineStylesEditing,d as dropImportantStyleSuffix};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-export-inline-styles",
3
- "version": "48.4.0-alpha.6",
3
+ "version": "48.4.0",
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.4.0-alpha.6",
38
- "@ckeditor/ckeditor5-engine": "48.4.0-alpha.6",
39
- "@ckeditor/ckeditor5-utils": "48.4.0-alpha.6",
37
+ "@ckeditor/ckeditor5-core": "48.4.0",
38
+ "@ckeditor/ckeditor5-engine": "48.4.0",
39
+ "@ckeditor/ckeditor5-utils": "48.4.0",
40
40
  "specificity": "0.4.1"
41
41
  },
42
42
  "files": [