@ckeditor/ckeditor5-export-inline-styles 48.5.0-alpha.2 → 48.5.0-alpha.3

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 _0x162aec,Plugin as _0x1e96a3}from'@ckeditor/ckeditor5-core';import{collectStylesheets as _0x293d68,createElement as _0x4655a5,uid as _0x2b270d}from'@ckeditor/ckeditor5-utils';import{StylesMap as _0x125274,addMarginStylesRules as _0x423d80,addPaddingStylesRules as _0x104240}from'@ckeditor/ckeditor5-engine';import{calculate as _0x28870c,compare as _0x2dacb5}from'specificity';function f(_0x2aa12d){const _0x2bd0b7=[];let _0x59d1e6='',_0x192f6a=0x0;for(;_0x192f6a<_0x2aa12d['length'];){const _0x2bda40=_0x2aa12d[_0x192f6a];if('('===_0x2bda40){const _0x351be7=y(_0x2aa12d,_0x192f6a+0x1);if(-0x1===_0x351be7)return[];_0x59d1e6+=_0x2aa12d['slice'](_0x192f6a,_0x351be7+0x1),_0x192f6a=_0x351be7+0x1;}else','!==_0x2bda40||_0x59d1e6['endsWith']('\x5c')?(_0x59d1e6+=_0x2bda40,_0x192f6a++):(_0x2bd0b7['push'](_0x59d1e6['trim']()),_0x59d1e6='',_0x192f6a++);}return _0x59d1e6['trim']()&&_0x2bd0b7['push'](_0x59d1e6['trim']()),_0x2bd0b7['filter'](Boolean);}function y(_0x459b80,_0x31b512){let _0x3635fb=0x1;for(let _0x574ebc=_0x31b512;_0x574ebc<_0x459b80['length'];_0x574ebc++){const _0x110ca2=_0x459b80[_0x574ebc];if('('===_0x110ca2)_0x3635fb++;else{if(')'===_0x110ca2&&(_0x3635fb--,0x0===_0x3635fb))return _0x574ebc;}}return-0x1;}function d(_0x4a26bd){return _0x4a26bd['replace'](/!\s*important/i,'')['trim']();}function w(_0x2d4f82){const _0x178f86=new Map();for(const {stylesMap:_0x93805,flatSelector:_0x3503b1}of _0x2d4f82){if(':root'!==_0x3503b1)continue;const _0x49157c=p(_0x178f86['get']['bind'](_0x178f86),_0x93805);for(const [_0x3c9781,_0x2da5a3]of _0x49157c)_0x178f86['set'](_0x3c9781,_0x2da5a3);}return _0x178f86;}function p(_0x549b80,_0x60487){const _0x1e6658=new Map(),_0x25bb7b=_0x34bf92=>_0x1e6658['has'](_0x34bf92)?_0x1e6658['get'](_0x34bf92):_0x549b80(_0x34bf92);for(const [_0x35dc8a,_0x35a9aa]of _0x60487['getStylesEntries']())if(_0x35a9aa&&_0x35dc8a['startsWith']('--')){const _0xbd261=m(_0x25bb7b,_0x35a9aa);_0x1e6658['set'](_0x35dc8a,_0xbd261),_0x60487['remove'](_0x35dc8a);}for(const [_0x3da1a2,_0x443673]of _0x60487['getStylesEntries']())if(_0x443673){const _0x306c74=m(_0x25bb7b,_0x443673);_0x60487['set'](_0x3da1a2,_0x306c74);}return _0x1e6658;}function m(_0x5bc993,_0x4142a0){return function(_0x40b4b1,_0x2d6eb7){let _0x55c98b='',_0x487f0c=0x0;for(;_0x487f0c<_0x40b4b1['length'];){const _0x3f7bb8=_0x40b4b1['indexOf']('var(',_0x487f0c);if(-0x1===_0x3f7bb8){_0x55c98b+=_0x40b4b1['slice'](_0x487f0c);break;}_0x55c98b+=_0x40b4b1['slice'](_0x487f0c,_0x3f7bb8);const _0x37a6c7=_0x3f7bb8+0x4,_0x155ec9=y(_0x40b4b1,_0x37a6c7);_0x55c98b+=_0x2d6eb7(_0x40b4b1['substring'](_0x37a6c7,_0x155ec9)),_0x487f0c=_0x155ec9+0x1;}return _0x55c98b;}(_0x4142a0,_0x13e626=>{const [_0x403c1a,_0x40a841]=f(_0x13e626),_0x3d6c4d=_0x5bc993(_0x403c1a);return void 0x0!==_0x3d6c4d?_0x3d6c4d:_0x40a841?m(_0x5bc993,_0x40a841):'var('+_0x403c1a+')';});}async function h(_0x4a8953){const _0x51d383=[await _0x293d68(_0x4a8953['stylesheets']),_0x4a8953['inlineCss']]['filter'](_0x161034=>_0x161034&&_0x161034['length'])['join']('\x0a'),_0x32c80d=await async function(_0x2a2f37,_0x530b09){const _0x5bf5f3=new CSSStyleSheet();return await _0x5bf5f3['replace'](_0x530b09),S(Array['from'](_0x5bf5f3['cssRules'])['filter'](_0xd71fad=>_0xd71fad instanceof CSSStyleRule))['flatMap'](({selectorText:_0x441e1e,contentCssText:_0x495246})=>{const _0x34c852=f(_0x441e1e),_0x4e8bf2=new _0x125274(_0x2a2f37)['setTo'](_0x495246);return _0x34c852['map'](_0x5b1afb=>{const _0x439a83=function(_0x533928){const _0x27abf4=':where(';let _0x598c02=_0x533928,_0x124ecf=0x0;for(let _0x43c2c4=0x0;_0x43c2c4<0x64;_0x43c2c4++){const _0x181855=_0x598c02['indexOf'](_0x27abf4,_0x124ecf);if(-0x1===_0x181855)break;let _0x539a87=0x0;for(let _0x1fe142=0x0;_0x1fe142<_0x181855;_0x1fe142++)'('===_0x598c02[_0x1fe142]?_0x539a87++:')'===_0x598c02[_0x1fe142]&&_0x539a87--;if(_0x539a87>0x0){_0x124ecf=_0x181855+0x7;continue;}let _0x36b1e7=-0x1;for(let _0x40ec93=_0x181855+0x7,_0x5b0a4c=0x1;_0x40ec93<_0x598c02['length'];_0x40ec93++)if('('===_0x598c02[_0x40ec93]?_0x5b0a4c++:')'===_0x598c02[_0x40ec93]&&_0x5b0a4c--,!_0x5b0a4c){_0x36b1e7=_0x40ec93;break;}-0x1!==_0x36b1e7?(_0x598c02=_0x598c02['slice'](0x0,_0x181855)+_0x598c02['slice'](_0x36b1e7+0x1),_0x124ecf=_0x181855):_0x124ecf=_0x181855+0x7;}return _0x598c02['replace'](/\s+/g,'\x20')['trim']();}(_0x5b1afb),_0x4838f9=_0x439a83?_0x28870c(_0x439a83)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0];return{'stylesMap':_0x4e8bf2,'flatSelector':_0x5b1afb,'specificity':_0x4838f9};});})['sort']((_0xba6c2a,_0x449e67)=>_0x2dacb5(_0xba6c2a['specificity'],_0x449e67['specificity']));}(_0x4a8953['stylesProcessor'],_0x51d383);return{'parsedCssRules':_0x32c80d,'rootCssVariables':w(_0x32c80d)};}function S(_0x1a0e05,_0x26461a=''){return _0x1a0e05['flatMap'](_0x4948b0=>{const {selectorText:_0x3c8a0c,cssText:_0x51460c,cssRules:_0x2efa2d}=_0x4948b0;if(!_0x3c8a0c)return[];const _0x32ec24=_0x3c8a0c['replace'](/&/g,_0x26461a);let _0x2f5ab0=_0x51460c['replace'](_0x3c8a0c,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x2efa2d||!_0x2efa2d['length'])return[{'selectorText':_0x32ec24,'contentCssText':_0x2f5ab0}];for(const _0x4322fe of _0x2efa2d)_0x2f5ab0=_0x2f5ab0['replace'](_0x4322fe['cssText'],'')['trim']();return[{'selectorText':_0x32ec24,'contentCssText':_0x2f5ab0},...S(Array['from'](_0x2efa2d),_0x32ec24)];});}function L(_0x16930e,_0x353bcf){const _0x575de8=new _0x125274(_0x16930e);for(const _0x38031a of _0x353bcf){let _0x6be40a;if(_0x6be40a='string'==typeof _0x38031a?new _0x125274(_0x16930e)['setTo'](_0x38031a):_0x38031a,_0x6be40a){for(const [_0x4270aa,_0x25f36a]of _0x6be40a['getStylesEntries']())_0x575de8['set'](_0x4270aa,_0x25f36a);}}return _0x575de8;}var g=class extends _0x162aec{_stylesProcessor;constructor(_0x48d9f7){super(_0x48d9f7),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x423d80(this['_stylesProcessor']),_0x104240(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async execute(_0xbde65a){const _0xd27598=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x38f2b6}=this['editor']['locale'],{rootName:_0x301611='main',dataControllerDowncastOptions:_0x7e23db={},transformations:_0x265df9=_0xd27598['transformations']||[]}=_0xbde65a||{};this['isBusy']=!0x0,this['refresh']();const _0x42fffe=this['_getRootDataHTMLFragment'](_0x301611,_0x7e23db),_0x595eea=_0x4655a5(_0x42fffe['ownerDocument'],'div',{'dir':_0x38f2b6,'class':'ck-content'},[_0x42fffe]);return this['_collectAndApplyStyles'](_0x265df9,_0x595eea)['then'](()=>{const _0x286089=function(_0x2a4154){const _0x4d96ef=_0x2a4154['ownerDocument']['createDocumentFragment']();for(;_0x2a4154['firstChild'];)_0x4d96ef['appendChild'](_0x2a4154['firstChild']);return _0x4d96ef;}(_0x595eea),_0xd54dc=_0x595eea['getAttribute']('style');if(_0xd54dc)for(const _0x512d05 of _0x286089['children']){const _0x2416c9=_0x512d05['getAttribute']('style'),_0x666ddc=L(this['_stylesProcessor'],[_0xd54dc,_0x2416c9]);_0x512d05['setAttribute']('style',x(_0x666ddc));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x286089);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}_getRootDataHTMLFragment(_0x2f6674,_0x1602d2){const {data:_0x307cd9,model:_0x112d41}=this['editor'],_0x119891=_0x112d41['document']['getRoot'](_0x2f6674),_0xcefab0=_0x307cd9['toView'](_0x119891,_0x1602d2);return _0x307cd9['htmlProcessor']['domConverter']['viewToDom'](_0xcefab0);}async _collectAndApplyStyles(_0x3f9ece,_0x351093){const {stylesheets:_0x4d43f6,inlineCss:_0x3df709,stripCssClasses:_0x384519}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x5ef070,rootCssVariables:_0x8a6895}=await h({'stylesheets':_0x4d43f6||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x3df709}),_0x224417=[];this['_processElementTree']({'transformations':_0x3f9ece,'parsedCssRules':_0x5ef070,'element':_0x351093,'stripCssClasses':_0x384519,'parentCSSVariablesLookup':_0x8a6895['get']['bind'](_0x8a6895),'runAfterDocumentTransformation':_0x47c519=>{_0x224417['unshift'](_0x47c519);}});for(const _0x437b36 of _0x224417)_0x437b36();}_processElementTree({element:_0x2b0344,parsedCssRules:_0x156dd5,parentCSSVariablesLookup:_0x3d8224,runAfterDocumentTransformation:_0x5062d4,stripCssClasses:_0x5983a2,transformations:_0x380543}){const {stylesMap:_0x194232,localCSSVariables:_0x97e6b1}=function(_0x1d7357){const _0xe686c=_0x1d7357['element']['getAttribute']('style')||'',_0x4a8818=_0x1d7357['parsedCssRules']['filter'](_0x1a3ac2=>_0x1d7357['element']['matches'](_0x1a3ac2['flatSelector']))['map'](_0x4465ab=>_0x4465ab['stylesMap']),_0x50c9d6=L(_0x1d7357['stylesProcessor'],[..._0x4a8818,_0xe686c]);return{'localCSSVariables':p(_0x1d7357['fallbackCSSVariablesLookup'],_0x50c9d6),'stylesMap':_0x50c9d6};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x3d8224,'parsedCssRules':_0x156dd5,'element':_0x2b0344}),_0x2714e1=[];for(const _0xc2555b of _0x380543){const _0x34869f=_0xc2555b(_0x2b0344,_0x194232,{'runAfterDocumentTransformation':_0x5062d4,'runAfterChildrenTransformation':_0x553394=>{_0x2714e1['unshift'](_0x553394);}});_0x34869f&&_0x34869f instanceof HTMLElement&&(_0x2b0344=_0x34869f);}_0x194232['size']?_0x2b0344['setAttribute']('style',x(_0x194232)):_0x2b0344['removeAttribute']('style');const _0x2dca34=_0x324e4b=>_0x97e6b1['has'](_0x324e4b)?_0x97e6b1['get'](_0x324e4b):_0x3d8224(_0x324e4b);for(const _0x50d4d2 of _0x2b0344['children'])_0x50d4d2 instanceof HTMLElement&&this['_processElementTree']({'element':_0x50d4d2,'parsedCssRules':_0x156dd5,'stripCssClasses':_0x5983a2,'transformations':_0x380543,'parentCSSVariablesLookup':_0x2dca34,'runAfterDocumentTransformation':_0x5062d4});_0x5983a2&&_0x2b0344['removeAttribute']('class');for(const _0x56258a of _0x2714e1)_0x56258a();}};function x(_0x3028d2){return _0x3028d2['getStylesEntries']()['map'](_0x2887da=>_0x2887da['join'](':'))['join'](';')+';';}var C=class extends _0x1e96a3{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(_0x1b9ce8){const _0x153572='QiLRCSOsZ8pAvDdaPJUE3oxjKlzM2uXgrtGfeyh5cNFkmBw9I6WH0qnb4T17YV',_0x2fe0f2=0x793f8,_0x2fbbe7={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x45df43(_0x1a9c8a){const _0x4a34f5=new window['Promise'](_0x13c0ef=>{_0x1a9c8a['once']('ready',_0x13c0ef);}),_0x15485d=window['Date']['now'](),_0x44ad42=_0x1a9c8a['config']['get']('licenseKey');async function _0x5cfdd7(){let _0x29960e,_0x1caaa6=null,_0x9e796=null;try{return'GPL'==_0x44ad42?'NotAllowed':(_0x29960e=_0x4fcfff(),_0x29960e?(_0x29960e['usageEndpoint']&&(_0x9e796=_0x277937(_0x29960e['usageEndpoint'],_0x29960e['jti'])),await _0xe58efe()?_0x34b119()?_0x3f3b92()?'Expired':_0x1c6d48()?('evaluation'==_0x29960e['licenseType']&&(_0x1caaa6=_0x118487('EvaluationLimit')),await _0x36413c()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x3f3b92(){const _0x50ab7b=['evaluation','trial']['includes'](_0x29960e['licenseType'])?_0x15485d/0x3e8:0xe10*_0x2fe0f2;return _0x29960e['exp']<_0x50ab7b;}function _0x34b119(){const _0x35d63a=_0x29960e['features'];return!!_0x35d63a&&(!!_0x35d63a['includes']('*')||!!_0x35d63a['includes']('EIS'));}function _0x1c6d48(){const _0x256d21=_0x29960e['licensedHosts'];if(!_0x256d21||0x0==_0x256d21['length'])return!0x0;const {hostname:_0x52188d}=new URL(window['location']['href']);if(_0x256d21['includes'](_0x52188d))return!0x0;const _0x3b98f8=_0x52188d['split']('.');return _0x256d21['filter'](_0x2626ac=>_0x2626ac['includes']('*'))['map'](_0x161afa=>_0x161afa['split']('.'))['filter'](_0x31cfe2=>_0x31cfe2['length']<=_0x3b98f8['length'])['map'](_0x4a2cc4=>Array(_0x3b98f8['length']-_0x4a2cc4['length'])['fill']('*'===_0x4a2cc4[0x0]?'*':'')['concat'](_0x4a2cc4))['some'](_0x40dbe7=>_0x3b98f8['every']((_0x4f58be,_0x22afab)=>_0x40dbe7[_0x22afab]===_0x4f58be||'*'===_0x40dbe7[_0x22afab]));}function _0x36413c(){return _0x1caaa6&&_0x9e796?new window['Promise']((_0x49d544,_0x3b69a0)=>{_0x1caaa6['then'](_0x49d544,_0x3b69a0),_0x9e796['then'](_0x5838a2=>{'Valid'!=_0x5838a2&&_0x49d544(_0x5838a2);},_0x3b69a0);}):_0x1caaa6||_0x9e796||'Valid';}}function _0x277937(_0x5c28b1,_0x167222){return new window['Promise'](_0x390ad4=>{if(_0x177723())return _0x390ad4('Valid');_0x455daa(),_0x1a9c8a['decorate']('_sendUsageRequest');let _0x17f081=!0x1;const _0x490c3a=_0x2b270d();function _0x1f2f09(_0x11c07f){return!!_0x11c07f&&('object'==typeof _0x11c07f||'function'==typeof _0x11c07f)&&'function'==typeof _0x11c07f['then']&&'function'==typeof _0x11c07f['catch'];}function _0x54e62e(_0x393b4e){_0x42c274(_0x393b4e)['then'](_0x58e091=>_0x58e091&&'ok'==_0x58e091['status']?_0xd9c3b1(_0x3b2e9c(_0x490c3a+_0x167222))!=_0x58e091['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x28eb9b=>(_0x123fe6(),_0x28eb9b),()=>{const _0x4ef024=_0x473da0();return null==_0x4ef024?(_0x123fe6(),'Valid'):_0x15485d-_0x4ef024>0x240c8400?'UsageLimit':'Valid';})['then'](_0x390ad4)['catch'](()=>{_0x390ad4('UsageLimit');});const _0x276d00=0x36ee80;function _0x123fe6(){const _0x2f30ec='llct-'+_0xd9c3b1(_0x3b2e9c(_0x5c28b1)),_0x3e3a45=_0x416f64(_0xd9c3b1(window['Math']['ceil'](_0x15485d/_0x276d00)));window['localStorage']['setItem'](_0x2f30ec,_0x3e3a45);}function _0x473da0(){const _0x1d5bee='llct-'+_0xd9c3b1(_0x3b2e9c(_0x5c28b1)),_0x4be033=window['localStorage']['getItem'](_0x1d5bee);return _0x4be033?window['parseInt'](_0x416f64(_0x4be033),0x10)*_0x276d00:null;}function _0x42c274(_0x2af08b){return new window['Promise']((_0x3cb3df,_0x540cdc)=>{_0x2af08b['then'](_0x3cb3df,_0x540cdc),window['setTimeout'](_0x540cdc,0x1d4c0);});}}_0x1a9c8a['on']('_sendUsageRequest',(_0x46dd10,_0x14ecc1)=>{if(_0x14ecc1[0x0]!=_0x5c28b1)return _0x390ad4('UsageLimit');_0x14ecc1[0x1]={..._0x14ecc1[0x1],'requestId':_0x490c3a};},{'priority':'high'}),_0x1a9c8a['on']('_sendUsageRequest',_0x422e0e=>{_0x1f2f09(_0x422e0e['return'])&&(_0x17f081=!0x0,_0x54e62e(_0x422e0e['return']));},{'priority':'low'}),_0x4a34f5['then'](()=>{_0x17f081||_0x390ad4('UsageLimit');});});function _0x177723(){return'auto'==_0x1a9c8a['editing']['view']['_overlayModeHint'];}function _0x455daa(){_0x1a9c8a['editing']['view']['_overlayModeHint']='auto';}}function _0x118487(_0x33f8de){const _0x1a53fe=[new window['Promise'](_0x606b53=>setTimeout(_0x606b53,0x93ecc)),_0x4a34f5['then'](()=>new window['Promise'](_0x4c7fec=>{let _0x1d33d1=0x0;_0x1a9c8a['model']['on']('applyOperation',(_0x57133b,_0x3f045e)=>{_0x3f045e[0x0]['isDocumentOperation']&&_0x1d33d1++,0x5e8==_0x1d33d1&&(_0x4c7fec(),_0x57133b['off']());});}))];return window['Promise']['race'](_0x1a53fe)['then'](()=>_0x33f8de);}async function _0x1b8c2e(){await _0x4a34f5;const _0x14ac8e=_0x1a9c8a['commands']['get']('exportInlineStyles');_0x14ac8e&&_0x14ac8e['on']('execute',_0x2dcc8e=>{_0x2dcc8e['stop']();},{'priority':'highest'}),_0x1a9c8a['model']['change']=_0x55b140,_0x1a9c8a['model']['enqueueChange']=_0x55b140,_0x1a9c8a['enableReadOnlyMode']('model');}function _0x4b7421(_0x2a21cd){const _0x4bcb71=_0x4a73db();_0x1a9c8a[_0x4bcb71]='exportInlineStylesLicenseKey'+_0x2a21cd,'Valid'!=_0x2a21cd&&_0x1b8c2e();}function _0x4a73db(){const _0x563a4c=window['String'](window['performance']['now']())['replace']('.','');let _0x3ca5aa='Q';for(let _0x48a812=0x0;_0x48a812<_0x563a4c['length'];_0x48a812+=0x2){let _0x11582b=window['parseInt'](_0x563a4c['substring'](_0x48a812,_0x48a812+0x2));_0x11582b>=0x3e&&(_0x11582b-=0x3e),_0x3ca5aa+=_0x153572[_0x11582b];}return _0x3ca5aa;}function _0x4fcfff(){const _0x519174=_0x44ad42['split']('.');if(0x3!=_0x519174['length'])return null;return _0x47e158(_0x519174[0x1]);function _0x47e158(_0x5662e8){const _0x23dcc6=_0x1b516e(_0x5662e8);return _0x23dcc6&&_0x4ab8cc()?_0x23dcc6:null;function _0x4ab8cc(){const _0x13c901=_0x23dcc6['jti'],_0x446a73=window['parseInt'](_0x13c901['substring'](_0x13c901['length']-0x8),0x10),_0x1c48ed={..._0x23dcc6,'jti':_0x13c901['substring'](0x0,_0x13c901['length']-0x8)};return delete _0x1c48ed['vc'],_0x3b2e9c(_0x1c48ed)==_0x446a73;}}}async function _0xe58efe(){let _0xe158c0=!0x0;try{const [_0x3ba85e,_0x44d1c7,_0x58c13b]=_0x44ad42['split']('.');return _0x191f02(_0x3ba85e),await _0x369da2(_0x3ba85e,_0x44d1c7,_0x58c13b),_0xe158c0;}catch{return!0x1;}function _0x191f02(_0x2d4f95){const _0x5a41cd=_0x1b516e(_0x2d4f95);_0x5a41cd&&'ES256'==_0x5a41cd['alg']||(_0xe158c0=!0x1);}async function _0x369da2(_0x4e15fb,_0x245046,_0xef7c01){const _0x1741ca=window['Uint8Array']['from'](_0x13641c(_0xef7c01),_0x4bbdb2=>_0x4bbdb2['charCodeAt'](0x0)),_0x5f4edb=new window['TextEncoder']()['encode'](_0x4e15fb+'.'+_0x245046),_0x4b3131=window['crypto']['subtle'];if(!_0x4b3131)return;const _0x570513=await _0x4b3131['importKey']('jwk',_0x2fbbe7,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x4b3131['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x570513,_0x1741ca,_0x5f4edb)||(_0xe158c0=!0x1);}}function _0x1b516e(_0x4f5f43){return _0x4f5f43['startsWith']('ey')?JSON['parse'](_0x13641c(_0x4f5f43)):null;}function _0x13641c(_0xe6ede2){return window['atob'](_0xe6ede2['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x3b2e9c(_0x189349){let _0x2ab8d2=0x1505;function _0x51a5f6(_0x1c577a){for(let _0x1ee376=0x0;_0x1ee376<_0x1c577a['length'];_0x1ee376++){const _0x595dde=_0x1c577a['charCodeAt'](_0x1ee376);_0x2ab8d2=(_0x2ab8d2<<0x5)+_0x2ab8d2+_0x595dde,_0x2ab8d2&=_0x2ab8d2;}}function _0x2ee8b9(_0x68399e){Array['isArray'](_0x68399e)?_0x68399e['forEach'](_0x2ee8b9):_0x68399e&&'object'==typeof _0x68399e?Object['entries'](_0x68399e)['sort']()['forEach'](([_0x37a338,_0x76d708])=>{_0x51a5f6(_0x37a338),_0x2ee8b9(_0x76d708);}):_0x51a5f6(window['String'](_0x68399e));}return _0x2ee8b9(_0x189349),_0x2ab8d2>>>0x0;}function _0xd9c3b1(_0xde6e2c){return _0xde6e2c['toString'](0x10)['padStart'](0x8,'0');}function _0x416f64(_0x3a40da){return _0x3a40da['split']('')['reverse']()['join']('');}function _0x55b140(){}_0x4b7421(await _0x5cfdd7());}_0x45df43(_0x1b9ce8['editor']);}(this);}},I=class extends _0x1e96a3{['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'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x244918=[this['editor']];for(const _0x184e87 of _0x244918){let _0x442148;for(const _0x1106f1 in _0x184e87){const _0x8f112a=_0x1106f1,_0x6b9e45=_0x184e87[_0x8f112a];if('exportInlineStylesLicenseKeyValid'==_0x6b9e45||'exportInlineStylesLicenseKeyInvalid'==_0x6b9e45||'exportInlineStylesLicenseKeyExpired'==_0x6b9e45||'exportInlineStylesLicenseKeyDomainLimit'==_0x6b9e45||'exportInlineStylesLicenseKeyNotAllowed'==_0x6b9e45||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x6b9e45||'exportInlineStylesLicenseKeyUsageLimit'==_0x6b9e45){delete _0x184e87[_0x8f112a],_0x442148=_0x6b9e45,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x442148&&_0x184e87['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x442148&&_0x184e87['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x442148&&_0x184e87['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x442148&&_0x184e87['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x442148&&_0x184e87['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x442148&&_0x184e87['_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 _0x555f82,Plugin as _0x3266b8}from'@ckeditor/ckeditor5-core';import{collectStylesheets as _0x3af049,createElement as _0x248d89,uid as _0x39d3af}from'@ckeditor/ckeditor5-utils';import{StylesMap as _0xacb874,addMarginStylesRules as _0x30ec3d,addPaddingStylesRules as _0x762af9}from'@ckeditor/ckeditor5-engine';import{calculate as _0xfb0acc,compare as _0x48e5e4}from'specificity';function f(_0x1f0734){const _0x1d822c=[];let _0x8757fe='',_0x5adfba=0x0;for(;_0x5adfba<_0x1f0734['length'];){const _0x50e3ab=_0x1f0734[_0x5adfba];if('('===_0x50e3ab){const _0x22ca31=y(_0x1f0734,_0x5adfba+0x1);if(-0x1===_0x22ca31)return[];_0x8757fe+=_0x1f0734['slice'](_0x5adfba,_0x22ca31+0x1),_0x5adfba=_0x22ca31+0x1;}else','!==_0x50e3ab||_0x8757fe['endsWith']('\x5c')?(_0x8757fe+=_0x50e3ab,_0x5adfba++):(_0x1d822c['push'](_0x8757fe['trim']()),_0x8757fe='',_0x5adfba++);}return _0x8757fe['trim']()&&_0x1d822c['push'](_0x8757fe['trim']()),_0x1d822c['filter'](Boolean);}function y(_0x1cc2f0,_0x1ad3a9){let _0x4c9487=0x1;for(let _0x45ed38=_0x1ad3a9;_0x45ed38<_0x1cc2f0['length'];_0x45ed38++){const _0x3f5e4b=_0x1cc2f0[_0x45ed38];if('('===_0x3f5e4b)_0x4c9487++;else{if(')'===_0x3f5e4b&&(_0x4c9487--,0x0===_0x4c9487))return _0x45ed38;}}return-0x1;}function d(_0x42651c){return _0x42651c['replace'](/!\s*important/i,'')['trim']();}function w(_0x5bafd0){const _0x41527c=new Map();for(const {stylesMap:_0x1282e5,flatSelector:_0x3df61e}of _0x5bafd0){if(':root'!==_0x3df61e)continue;const _0x585c20=p(_0x41527c['get']['bind'](_0x41527c),_0x1282e5);for(const [_0x431791,_0x2053fe]of _0x585c20)_0x41527c['set'](_0x431791,_0x2053fe);}return _0x41527c;}function p(_0x599d1f,_0x19625c){const _0x46cdc5=new Map(),_0x321c05=_0x2cde9c=>_0x46cdc5['has'](_0x2cde9c)?_0x46cdc5['get'](_0x2cde9c):_0x599d1f(_0x2cde9c);for(const [_0xfa6395,_0x475257]of _0x19625c['getStylesEntries']())if(_0x475257&&_0xfa6395['startsWith']('--')){const _0x4b958c=m(_0x321c05,_0x475257);_0x46cdc5['set'](_0xfa6395,_0x4b958c),_0x19625c['remove'](_0xfa6395);}for(const [_0x4ae53c,_0x5343e8]of _0x19625c['getStylesEntries']())if(_0x5343e8){const _0x419496=m(_0x321c05,_0x5343e8);_0x19625c['set'](_0x4ae53c,_0x419496);}return _0x46cdc5;}function m(_0x2b1374,_0x230948){return function(_0x48c262,_0x1be389){let _0x20d851='',_0x3f22ea=0x0;for(;_0x3f22ea<_0x48c262['length'];){const _0x2a2207=_0x48c262['indexOf']('var(',_0x3f22ea);if(-0x1===_0x2a2207){_0x20d851+=_0x48c262['slice'](_0x3f22ea);break;}_0x20d851+=_0x48c262['slice'](_0x3f22ea,_0x2a2207);const _0x3ff7a2=_0x2a2207+0x4,_0x590b97=y(_0x48c262,_0x3ff7a2);_0x20d851+=_0x1be389(_0x48c262['substring'](_0x3ff7a2,_0x590b97)),_0x3f22ea=_0x590b97+0x1;}return _0x20d851;}(_0x230948,_0x268e32=>{const [_0x159cd5,_0x7ee7fe]=f(_0x268e32),_0x365eb2=_0x2b1374(_0x159cd5);return void 0x0!==_0x365eb2?_0x365eb2:_0x7ee7fe?m(_0x2b1374,_0x7ee7fe):'var('+_0x159cd5+')';});}async function h(_0x3fd3ec){const _0x255822=[await _0x3af049(_0x3fd3ec['stylesheets']),_0x3fd3ec['inlineCss']]['filter'](_0x38fc00=>_0x38fc00&&_0x38fc00['length'])['join']('\x0a'),_0x1e15a9=await async function(_0x460ab2,_0x5bb231){const _0x514bad=new CSSStyleSheet();return await _0x514bad['replace'](_0x5bb231),S(Array['from'](_0x514bad['cssRules'])['filter'](_0x3593c9=>_0x3593c9 instanceof CSSStyleRule))['flatMap'](({selectorText:_0x4a9883,contentCssText:_0x387041})=>{const _0x4c9aaa=f(_0x4a9883),_0x1a1513=new _0xacb874(_0x460ab2)['setTo'](_0x387041);return _0x4c9aaa['map'](_0x221998=>{const _0x413b98=function(_0xefbcad){const _0x49399b=':where(';let _0x16488b=_0xefbcad,_0x186cac=0x0;for(let _0x4660c0=0x0;_0x4660c0<0x64;_0x4660c0++){const _0x442ff1=_0x16488b['indexOf'](_0x49399b,_0x186cac);if(-0x1===_0x442ff1)break;let _0x2fa2e6=0x0;for(let _0xfb88a6=0x0;_0xfb88a6<_0x442ff1;_0xfb88a6++)'('===_0x16488b[_0xfb88a6]?_0x2fa2e6++:')'===_0x16488b[_0xfb88a6]&&_0x2fa2e6--;if(_0x2fa2e6>0x0){_0x186cac=_0x442ff1+0x7;continue;}let _0x462346=-0x1;for(let _0x1b1ff9=_0x442ff1+0x7,_0x5670d3=0x1;_0x1b1ff9<_0x16488b['length'];_0x1b1ff9++)if('('===_0x16488b[_0x1b1ff9]?_0x5670d3++:')'===_0x16488b[_0x1b1ff9]&&_0x5670d3--,!_0x5670d3){_0x462346=_0x1b1ff9;break;}-0x1!==_0x462346?(_0x16488b=_0x16488b['slice'](0x0,_0x442ff1)+_0x16488b['slice'](_0x462346+0x1),_0x186cac=_0x442ff1):_0x186cac=_0x442ff1+0x7;}return _0x16488b['replace'](/\s+/g,'\x20')['trim']();}(_0x221998),_0x3f6377=_0x413b98?_0xfb0acc(_0x413b98)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0];return{'stylesMap':_0x1a1513,'flatSelector':_0x221998,'specificity':_0x3f6377};});})['sort']((_0xc4851a,_0x501822)=>_0x48e5e4(_0xc4851a['specificity'],_0x501822['specificity']));}(_0x3fd3ec['stylesProcessor'],_0x255822);return{'parsedCssRules':_0x1e15a9,'rootCssVariables':w(_0x1e15a9)};}function S(_0x56b25f,_0x217638=''){return _0x56b25f['flatMap'](_0x574f35=>{const {selectorText:_0x276a24,cssText:_0x12338a,cssRules:_0x5d2d4a}=_0x574f35;if(!_0x276a24)return[];const _0x52481d=_0x276a24['replace'](/&/g,_0x217638);let _0x25e38c=_0x12338a['replace'](_0x276a24,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x5d2d4a||!_0x5d2d4a['length'])return[{'selectorText':_0x52481d,'contentCssText':_0x25e38c}];for(const _0x5b5a5e of _0x5d2d4a)_0x25e38c=_0x25e38c['replace'](_0x5b5a5e['cssText'],'')['trim']();return[{'selectorText':_0x52481d,'contentCssText':_0x25e38c},...S(Array['from'](_0x5d2d4a),_0x52481d)];});}function L(_0x3348ad,_0x3af4da){const _0x98c77b=new _0xacb874(_0x3348ad);for(const _0x5e1fe8 of _0x3af4da){let _0x215f22;if(_0x215f22='string'==typeof _0x5e1fe8?new _0xacb874(_0x3348ad)['setTo'](_0x5e1fe8):_0x5e1fe8,_0x215f22){for(const [_0x1b5d1f,_0x585a68]of _0x215f22['getStylesEntries']())_0x98c77b['set'](_0x1b5d1f,_0x585a68);}}return _0x98c77b;}var g=class extends _0x555f82{_stylesProcessor;constructor(_0x54165b){super(_0x54165b),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x30ec3d(this['_stylesProcessor']),_0x762af9(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async execute(_0x58cf21){const _0x4099ce=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x459bff}=this['editor']['locale'],{rootName:_0x35cede='main',dataControllerDowncastOptions:_0x295635={},transformations:_0x2912bb=_0x4099ce['transformations']||[]}=_0x58cf21||{};this['isBusy']=!0x0,this['refresh']();const _0x164530=this['_getRootDataHTMLFragment'](_0x35cede,_0x295635),_0x3a1716=_0x248d89(_0x164530['ownerDocument'],'div',{'dir':_0x459bff,'class':'ck-content'},[_0x164530]);return this['_collectAndApplyStyles'](_0x2912bb,_0x3a1716)['then'](()=>{const _0x9502a=function(_0x3bcd7b){const _0x43d802=_0x3bcd7b['ownerDocument']['createDocumentFragment']();for(;_0x3bcd7b['firstChild'];)_0x43d802['appendChild'](_0x3bcd7b['firstChild']);return _0x43d802;}(_0x3a1716),_0x690784=_0x3a1716['getAttribute']('style');if(_0x690784)for(const _0xb27ea4 of _0x9502a['children']){const _0x14485f=_0xb27ea4['getAttribute']('style'),_0x40aa17=L(this['_stylesProcessor'],[_0x690784,_0x14485f]);_0xb27ea4['setAttribute']('style',x(_0x40aa17));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x9502a);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}_getRootDataHTMLFragment(_0x57df4b,_0x12b639){const {data:_0x203449,model:_0xd945dd}=this['editor'],_0x1b7651=_0xd945dd['document']['getRoot'](_0x57df4b),_0x55f1f6=_0x203449['toView'](_0x1b7651,_0x12b639);return _0x203449['htmlProcessor']['domConverter']['viewToDom'](_0x55f1f6);}async _collectAndApplyStyles(_0x245b6e,_0x255fa8){const {stylesheets:_0x29b397,inlineCss:_0x550ea4,stripCssClasses:_0x2a5f94}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x2f87fa,rootCssVariables:_0x4309c6}=await h({'stylesheets':_0x29b397||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x550ea4}),_0x1305dc=[];this['_processElementTree']({'transformations':_0x245b6e,'parsedCssRules':_0x2f87fa,'element':_0x255fa8,'stripCssClasses':_0x2a5f94,'parentCSSVariablesLookup':_0x4309c6['get']['bind'](_0x4309c6),'runAfterDocumentTransformation':_0x3072b4=>{_0x1305dc['unshift'](_0x3072b4);}});for(const _0x5bd0d3 of _0x1305dc)_0x5bd0d3();}_processElementTree({element:_0x44d76a,parsedCssRules:_0x334542,parentCSSVariablesLookup:_0x27e9c0,runAfterDocumentTransformation:_0x15112a,stripCssClasses:_0x1989ba,transformations:_0x490968}){const {stylesMap:_0x4453c9,localCSSVariables:_0x45db89}=function(_0x347be5){const _0x4fb93e=_0x347be5['element']['getAttribute']('style')||'',_0x49e0c1=_0x347be5['parsedCssRules']['filter'](_0x346958=>_0x347be5['element']['matches'](_0x346958['flatSelector']))['map'](_0x47be3c=>_0x47be3c['stylesMap']),_0x47f66d=L(_0x347be5['stylesProcessor'],[..._0x49e0c1,_0x4fb93e]);return{'localCSSVariables':p(_0x347be5['fallbackCSSVariablesLookup'],_0x47f66d),'stylesMap':_0x47f66d};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x27e9c0,'parsedCssRules':_0x334542,'element':_0x44d76a}),_0x195233=[];for(const _0x3112b3 of _0x490968){const _0x248fd5=_0x3112b3(_0x44d76a,_0x4453c9,{'runAfterDocumentTransformation':_0x15112a,'runAfterChildrenTransformation':_0x2bd3e4=>{_0x195233['unshift'](_0x2bd3e4);}});_0x248fd5&&_0x248fd5 instanceof HTMLElement&&(_0x44d76a=_0x248fd5);}_0x4453c9['size']?_0x44d76a['setAttribute']('style',x(_0x4453c9)):_0x44d76a['removeAttribute']('style');const _0x48d869=_0x48d672=>_0x45db89['has'](_0x48d672)?_0x45db89['get'](_0x48d672):_0x27e9c0(_0x48d672);for(const _0x4ca2ba of _0x44d76a['children'])_0x4ca2ba instanceof HTMLElement&&this['_processElementTree']({'element':_0x4ca2ba,'parsedCssRules':_0x334542,'stripCssClasses':_0x1989ba,'transformations':_0x490968,'parentCSSVariablesLookup':_0x48d869,'runAfterDocumentTransformation':_0x15112a});_0x1989ba&&_0x44d76a['removeAttribute']('class');for(const _0x1eef46 of _0x195233)_0x1eef46();}};function x(_0x1f67cc){return _0x1f67cc['getStylesEntries']()['map'](_0x5213e9=>_0x5213e9['join'](':'))['join'](';')+';';}var C=class extends _0x3266b8{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(_0x350e0b){const _0xcef04e='QiLRCSOsZ8pAvDdaPJUE3oxjKlzM2uXgrtGfeyh5cNFkmBw9I6WH0qnb4T17YV',_0x5e5dba=0x79410,_0x51f88c={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x414de4(_0x49c712){const _0x5c3420=new window['Promise'](_0x5518f7=>{_0x49c712['once']('ready',_0x5518f7);}),_0x30af53=window['Date']['now'](),_0x3f4868=_0x49c712['config']['get']('licenseKey');async function _0x5ac6ca(){let _0x3d4787,_0x31f18c=null,_0x50ebd2=null;try{return'GPL'==_0x3f4868?'NotAllowed':(_0x3d4787=_0x5963bc(),_0x3d4787?(_0x3d4787['usageEndpoint']&&(_0x50ebd2=_0x4c1865(_0x3d4787['usageEndpoint'],_0x3d4787['jti'])),await _0x219a49()?_0x4d6523()?_0x975311()?'Expired':_0x2b9331()?('evaluation'==_0x3d4787['licenseType']&&(_0x31f18c=_0x4c6d2c('EvaluationLimit')),await _0x53219f()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x975311(){const _0x7a0d7=['evaluation','trial']['includes'](_0x3d4787['licenseType'])?_0x30af53/0x3e8:0xe10*_0x5e5dba;return _0x3d4787['exp']<_0x7a0d7;}function _0x4d6523(){const _0x8e97e4=_0x3d4787['features'];return!!_0x8e97e4&&(!!_0x8e97e4['includes']('*')||!!_0x8e97e4['includes']('EIS'));}function _0x2b9331(){const _0xb1dedf=_0x3d4787['licensedHosts'];if(!_0xb1dedf||0x0==_0xb1dedf['length'])return!0x0;const {hostname:_0x44c548}=new URL(window['location']['href']);if(_0xb1dedf['includes'](_0x44c548))return!0x0;const _0x5b5fe6=_0x44c548['split']('.');return _0xb1dedf['filter'](_0x1d612b=>_0x1d612b['includes']('*'))['map'](_0x529a31=>_0x529a31['split']('.'))['filter'](_0x12042c=>_0x12042c['length']<=_0x5b5fe6['length'])['map'](_0x50777a=>Array(_0x5b5fe6['length']-_0x50777a['length'])['fill']('*'===_0x50777a[0x0]?'*':'')['concat'](_0x50777a))['some'](_0x1c67e8=>_0x5b5fe6['every']((_0x303b6b,_0x40b46a)=>_0x1c67e8[_0x40b46a]===_0x303b6b||'*'===_0x1c67e8[_0x40b46a]));}function _0x53219f(){return _0x31f18c&&_0x50ebd2?new window['Promise']((_0x102e23,_0x21d78f)=>{_0x31f18c['then'](_0x102e23,_0x21d78f),_0x50ebd2['then'](_0xedaa70=>{'Valid'!=_0xedaa70&&_0x102e23(_0xedaa70);},_0x21d78f);}):_0x31f18c||_0x50ebd2||'Valid';}}function _0x4c1865(_0x66fb99,_0x310de9){return new window['Promise'](_0x51d10e=>{if(_0x126860())return _0x51d10e('Valid');_0xdfea0f(),_0x49c712['decorate']('_sendUsageRequest');let _0x5421fd=!0x1;const _0x25d0ba=_0x39d3af();function _0x57e922(_0x4eab1d){return!!_0x4eab1d&&('object'==typeof _0x4eab1d||'function'==typeof _0x4eab1d)&&'function'==typeof _0x4eab1d['then']&&'function'==typeof _0x4eab1d['catch'];}function _0x49dc85(_0x2aa9bc){_0x381087(_0x2aa9bc)['then'](_0x225f6e=>_0x225f6e&&'ok'==_0x225f6e['status']?_0x37cf56(_0x58ef14(_0x25d0ba+_0x310de9))!=_0x225f6e['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0xa4d7b2=>(_0x10e10a(),_0xa4d7b2),()=>{const _0x18838d=_0x222927();return null==_0x18838d?(_0x10e10a(),'Valid'):_0x30af53-_0x18838d>0x240c8400?'UsageLimit':'Valid';})['then'](_0x51d10e)['catch'](()=>{_0x51d10e('UsageLimit');});const _0x511ae0=0x36ee80;function _0x10e10a(){const _0x3a3d2c='llct-'+_0x37cf56(_0x58ef14(_0x66fb99)),_0x1093ae=_0x45e43b(_0x37cf56(window['Math']['ceil'](_0x30af53/_0x511ae0)));window['localStorage']['setItem'](_0x3a3d2c,_0x1093ae);}function _0x222927(){const _0x333bb6='llct-'+_0x37cf56(_0x58ef14(_0x66fb99)),_0x5c6a52=window['localStorage']['getItem'](_0x333bb6);return _0x5c6a52?window['parseInt'](_0x45e43b(_0x5c6a52),0x10)*_0x511ae0:null;}function _0x381087(_0x20b486){return new window['Promise']((_0x3d8196,_0x9e8445)=>{_0x20b486['then'](_0x3d8196,_0x9e8445),window['setTimeout'](_0x9e8445,0x1d4c0);});}}_0x49c712['on']('_sendUsageRequest',(_0x4280ac,_0xb418ea)=>{if(_0xb418ea[0x0]!=_0x66fb99)return _0x51d10e('UsageLimit');_0xb418ea[0x1]={..._0xb418ea[0x1],'requestId':_0x25d0ba};},{'priority':'high'}),_0x49c712['on']('_sendUsageRequest',_0x2ecc32=>{_0x57e922(_0x2ecc32['return'])&&(_0x5421fd=!0x0,_0x49dc85(_0x2ecc32['return']));},{'priority':'low'}),_0x5c3420['then'](()=>{_0x5421fd||_0x51d10e('UsageLimit');});});function _0x126860(){return'auto'==_0x49c712['editing']['view']['_overlayModeHint'];}function _0xdfea0f(){_0x49c712['editing']['view']['_overlayModeHint']='auto';}}function _0x4c6d2c(_0x47a3c5){const _0x5c00d4=[new window['Promise'](_0x7c4385=>setTimeout(_0x7c4385,0x93ecc)),_0x5c3420['then'](()=>new window['Promise'](_0x40a7ca=>{let _0x58f42c=0x0;_0x49c712['model']['on']('applyOperation',(_0x216e99,_0x30819d)=>{_0x30819d[0x0]['isDocumentOperation']&&_0x58f42c++,0x5e8==_0x58f42c&&(_0x40a7ca(),_0x216e99['off']());});}))];return window['Promise']['race'](_0x5c00d4)['then'](()=>_0x47a3c5);}async function _0x47def2(){await _0x5c3420;const _0x3a21f1=_0x49c712['commands']['get']('exportInlineStyles');_0x3a21f1&&_0x3a21f1['on']('execute',_0x2e02f2=>{_0x2e02f2['stop']();},{'priority':'highest'}),_0x49c712['model']['change']=_0x1be215,_0x49c712['model']['enqueueChange']=_0x1be215,_0x49c712['enableReadOnlyMode']('model');}function _0x59fec8(_0x49b255){const _0x48cee0=_0x1fc6c9();_0x49c712[_0x48cee0]='exportInlineStylesLicenseKey'+_0x49b255,'Valid'!=_0x49b255&&_0x47def2();}function _0x1fc6c9(){const _0x4184e3=window['String'](window['performance']['now']())['replace']('.','');let _0x2e942d='Q';for(let _0x6f6b27=0x0;_0x6f6b27<_0x4184e3['length'];_0x6f6b27+=0x2){let _0x18d810=window['parseInt'](_0x4184e3['substring'](_0x6f6b27,_0x6f6b27+0x2));_0x18d810>=0x3e&&(_0x18d810-=0x3e),_0x2e942d+=_0xcef04e[_0x18d810];}return _0x2e942d;}function _0x5963bc(){const _0x108e3e=_0x3f4868['split']('.');if(0x3!=_0x108e3e['length'])return null;return _0x40fb39(_0x108e3e[0x1]);function _0x40fb39(_0x1031ff){const _0x553cae=_0x717e72(_0x1031ff);return _0x553cae&&_0x544664()?_0x553cae:null;function _0x544664(){const _0xac02ab=_0x553cae['jti'],_0x481e52=window['parseInt'](_0xac02ab['substring'](_0xac02ab['length']-0x8),0x10),_0x43cbf7={..._0x553cae,'jti':_0xac02ab['substring'](0x0,_0xac02ab['length']-0x8)};return delete _0x43cbf7['vc'],_0x58ef14(_0x43cbf7)==_0x481e52;}}}async function _0x219a49(){let _0x24fcd0=!0x0;try{const [_0x548802,_0x572de2,_0x3861ed]=_0x3f4868['split']('.');return _0x5625f7(_0x548802),await _0x40099e(_0x548802,_0x572de2,_0x3861ed),_0x24fcd0;}catch{return!0x1;}function _0x5625f7(_0x282ace){const _0x5e0a1b=_0x717e72(_0x282ace);_0x5e0a1b&&'ES256'==_0x5e0a1b['alg']||(_0x24fcd0=!0x1);}async function _0x40099e(_0x347936,_0x1da054,_0x490458){const _0x170921=window['Uint8Array']['from'](_0x153191(_0x490458),_0x48b356=>_0x48b356['charCodeAt'](0x0)),_0x5e62df=new window['TextEncoder']()['encode'](_0x347936+'.'+_0x1da054),_0x15651e=window['crypto']['subtle'];if(!_0x15651e)return;const _0x332665=await _0x15651e['importKey']('jwk',_0x51f88c,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x15651e['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x332665,_0x170921,_0x5e62df)||(_0x24fcd0=!0x1);}}function _0x717e72(_0xe58257){return _0xe58257['startsWith']('ey')?JSON['parse'](_0x153191(_0xe58257)):null;}function _0x153191(_0xec9306){return window['atob'](_0xec9306['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x58ef14(_0x513b54){let _0x333f01=0x1505;function _0x595aee(_0x2e7522){for(let _0x2ff627=0x0;_0x2ff627<_0x2e7522['length'];_0x2ff627++){const _0x3f3f7a=_0x2e7522['charCodeAt'](_0x2ff627);_0x333f01=(_0x333f01<<0x5)+_0x333f01+_0x3f3f7a,_0x333f01&=_0x333f01;}}function _0x579b5e(_0x41d11e){Array['isArray'](_0x41d11e)?_0x41d11e['forEach'](_0x579b5e):_0x41d11e&&'object'==typeof _0x41d11e?Object['entries'](_0x41d11e)['sort']()['forEach'](([_0x575486,_0x904dd2])=>{_0x595aee(_0x575486),_0x579b5e(_0x904dd2);}):_0x595aee(window['String'](_0x41d11e));}return _0x579b5e(_0x513b54),_0x333f01>>>0x0;}function _0x37cf56(_0x19f371){return _0x19f371['toString'](0x10)['padStart'](0x8,'0');}function _0x45e43b(_0x3e0dfc){return _0x3e0dfc['split']('')['reverse']()['join']('');}function _0x1be215(){}_0x59fec8(await _0x5ac6ca());}_0x414de4(_0x350e0b['editor']);}(this);}},I=class extends _0x3266b8{['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'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x3a5f4d=[this['editor']];for(const _0x4472b4 of _0x3a5f4d){let _0x2a03e0;for(const _0x1d80dc in _0x4472b4){const _0x1366e3=_0x1d80dc,_0x5871db=_0x4472b4[_0x1366e3];if('exportInlineStylesLicenseKeyValid'==_0x5871db||'exportInlineStylesLicenseKeyInvalid'==_0x5871db||'exportInlineStylesLicenseKeyExpired'==_0x5871db||'exportInlineStylesLicenseKeyDomainLimit'==_0x5871db||'exportInlineStylesLicenseKeyNotAllowed'==_0x5871db||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x5871db||'exportInlineStylesLicenseKeyUsageLimit'==_0x5871db){delete _0x4472b4[_0x1366e3],_0x2a03e0=_0x5871db,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x2a03e0&&_0x4472b4['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x2a03e0&&_0x4472b4['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x2a03e0&&_0x4472b4['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x2a03e0&&_0x4472b4['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x2a03e0&&_0x4472b4['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x2a03e0&&_0x4472b4['_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.5.0-alpha.2",
3
+ "version": "48.5.0-alpha.3",
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.5.0-alpha.2",
38
- "@ckeditor/ckeditor5-engine": "48.5.0-alpha.2",
39
- "@ckeditor/ckeditor5-utils": "48.5.0-alpha.2",
37
+ "@ckeditor/ckeditor5-core": "48.5.0-alpha.3",
38
+ "@ckeditor/ckeditor5-engine": "48.5.0-alpha.3",
39
+ "@ckeditor/ckeditor5-utils": "48.5.0-alpha.3",
40
40
  "specificity": "0.4.1"
41
41
  },
42
42
  "files": [