@ckeditor/ckeditor5-export-inline-styles
Version:
The export with inline styles feature for CKEditor 5.
23 lines • 21.4 kB
JavaScript
/*
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
*
*
*
*
* +---------------------------------------------------------------------------------+
* | |
* | Hello stranger! |
* | |
* | |
* | What you're currently looking at is the source code of a legally protected, |
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
* | are forbidden and will result in legal consequences. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
import{Command as _0x55b944,Plugin as _0x361eff}from'@ckeditor/ckeditor5-core';import{collectStylesheets as _0x25ac5e,createElement as _0x30678e,uid as _0x30b194}from'@ckeditor/ckeditor5-utils';import{StylesMap as _0x27cc4c,addMarginStylesRules as _0x10d8a7,addPaddingStylesRules as _0x41c5b7}from'@ckeditor/ckeditor5-engine';import{calculate as _0x36919f,compare as _0x169321}from'specificity';function f(_0x483be6){const _0x234ef6=[];let _0x2dd88f='',_0x177749=0x0;for(;_0x177749<_0x483be6['length'];){const _0x2fd1bb=_0x483be6[_0x177749];if('('===_0x2fd1bb){const _0x95682b=y(_0x483be6,_0x177749+0x1);if(-0x1===_0x95682b)return[];_0x2dd88f+=_0x483be6['slice'](_0x177749,_0x95682b+0x1),_0x177749=_0x95682b+0x1;}else','!==_0x2fd1bb||_0x2dd88f['endsWith']('\x5c')?(_0x2dd88f+=_0x2fd1bb,_0x177749++):(_0x234ef6['push'](_0x2dd88f['trim']()),_0x2dd88f='',_0x177749++);}return _0x2dd88f['trim']()&&_0x234ef6['push'](_0x2dd88f['trim']()),_0x234ef6['filter'](Boolean);}function y(_0x380af7,_0xd8f826){let _0x39095f=0x1;for(let _0x4d94de=_0xd8f826;_0x4d94de<_0x380af7['length'];_0x4d94de++){const _0x10cd00=_0x380af7[_0x4d94de];if('('===_0x10cd00)_0x39095f++;else{if(')'===_0x10cd00&&(_0x39095f--,0x0===_0x39095f))return _0x4d94de;}}return-0x1;}function d(_0x11dc38){return _0x11dc38['replace'](/!\s*important/i,'')['trim']();}function w(_0x50071f){const _0x2e4105=new Map();for(const {stylesMap:_0x2ebcaa,flatSelector:_0x54fef0}of _0x50071f){if(':root'!==_0x54fef0)continue;const _0x34fed0=p(_0x2e4105['get']['bind'](_0x2e4105),_0x2ebcaa);for(const [_0x32fe27,_0x4c0fa2]of _0x34fed0)_0x2e4105['set'](_0x32fe27,_0x4c0fa2);}return _0x2e4105;}function p(_0x3f78f7,_0x2f4032){const _0x3e6859=new Map(),_0x557546=_0x461bbf=>_0x3e6859['has'](_0x461bbf)?_0x3e6859['get'](_0x461bbf):_0x3f78f7(_0x461bbf);for(const [_0x370334,_0x3c8e5d]of _0x2f4032['getStylesEntries']())if(_0x3c8e5d&&_0x370334['startsWith']('--')){const _0x235c2d=m(_0x557546,_0x3c8e5d);_0x3e6859['set'](_0x370334,_0x235c2d),_0x2f4032['remove'](_0x370334);}for(const [_0x1959b2,_0x52a7d1]of _0x2f4032['getStylesEntries']())if(_0x52a7d1){const _0x3e0752=m(_0x557546,_0x52a7d1);_0x2f4032['set'](_0x1959b2,_0x3e0752);}return _0x3e6859;}function m(_0x3c832c,_0xbca6e0){return function(_0x19d13d,_0x2e3bac){let _0xdee79f='',_0x38995b=0x0;for(;_0x38995b<_0x19d13d['length'];){const _0x2c0d8b=_0x19d13d['indexOf']('var(',_0x38995b);if(-0x1===_0x2c0d8b){_0xdee79f+=_0x19d13d['slice'](_0x38995b);break;}_0xdee79f+=_0x19d13d['slice'](_0x38995b,_0x2c0d8b);const _0x3b0e11=_0x2c0d8b+0x4,_0x681e22=y(_0x19d13d,_0x3b0e11);_0xdee79f+=_0x2e3bac(_0x19d13d['substring'](_0x3b0e11,_0x681e22)),_0x38995b=_0x681e22+0x1;}return _0xdee79f;}(_0xbca6e0,_0x1867a7=>{const [_0x2e477f,_0x5a57a5]=f(_0x1867a7),_0x37501f=_0x3c832c(_0x2e477f);return void 0x0!==_0x37501f?_0x37501f:_0x5a57a5?m(_0x3c832c,_0x5a57a5):'var('+_0x2e477f+')';});}async function h(_0x240bd1){const _0x2877e0=[await _0x25ac5e(_0x240bd1['stylesheets']),_0x240bd1['inlineCss']]['filter'](_0x51a530=>_0x51a530&&_0x51a530['length'])['join']('\x0a'),_0x4a9f86=await async function(_0x369033,_0x53d188){const _0xc9769d=new CSSStyleSheet();return await _0xc9769d['replace'](_0x53d188),S(Array['from'](_0xc9769d['cssRules'])['filter'](_0x27fcf6=>_0x27fcf6 instanceof CSSStyleRule))['flatMap'](({selectorText:_0x31d977,contentCssText:_0x2c257f})=>{const _0x586934=f(_0x31d977),_0x126563=new _0x27cc4c(_0x369033)['setTo'](_0x2c257f);return _0x586934['map'](_0x521153=>{const _0x3d51e1=function(_0x3c3f91){const _0x2dd098=':where(';let _0x30898e=_0x3c3f91,_0x40220b=0x0;for(let _0x2acd4f=0x0;_0x2acd4f<0x64;_0x2acd4f++){const _0x169fc4=_0x30898e['indexOf'](_0x2dd098,_0x40220b);if(-0x1===_0x169fc4)break;let _0x5cad2c=0x0;for(let _0x16c086=0x0;_0x16c086<_0x169fc4;_0x16c086++)'('===_0x30898e[_0x16c086]?_0x5cad2c++:')'===_0x30898e[_0x16c086]&&_0x5cad2c--;if(_0x5cad2c>0x0){_0x40220b=_0x169fc4+0x7;continue;}let _0x3ba891=-0x1;for(let _0x30aaea=_0x169fc4+0x7,_0x372908=0x1;_0x30aaea<_0x30898e['length'];_0x30aaea++)if('('===_0x30898e[_0x30aaea]?_0x372908++:')'===_0x30898e[_0x30aaea]&&_0x372908--,!_0x372908){_0x3ba891=_0x30aaea;break;}-0x1!==_0x3ba891?(_0x30898e=_0x30898e['slice'](0x0,_0x169fc4)+_0x30898e['slice'](_0x3ba891+0x1),_0x40220b=_0x169fc4):_0x40220b=_0x169fc4+0x7;}return _0x30898e['replace'](/\s+/g,'\x20')['trim']();}(_0x521153);return{'stylesMap':_0x126563,'flatSelector':_0x521153,'specificity':_0x3d51e1?_0x36919f(_0x3d51e1)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0]};});})['sort']((_0x338bd9,_0x19cbfb)=>_0x169321(_0x338bd9['specificity'],_0x19cbfb['specificity']));}(_0x240bd1['stylesProcessor'],_0x2877e0);return{'parsedCssRules':_0x4a9f86,'rootCssVariables':w(_0x4a9f86)};}function S(_0x1b8e03,_0x2c029e=''){return _0x1b8e03['flatMap'](_0x24f5af=>{const {selectorText:_0x28cdf0,cssText:_0x4bd988,cssRules:_0x440b5c}=_0x24f5af;if(!_0x28cdf0)return[];const _0xd2d73e=_0x28cdf0['replace'](/&/g,_0x2c029e);let _0x4b81ed=_0x4bd988['replace'](_0x28cdf0,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x440b5c||!_0x440b5c['length'])return[{'selectorText':_0xd2d73e,'contentCssText':_0x4b81ed}];for(const _0x4ac6ea of _0x440b5c)_0x4b81ed=_0x4b81ed['replace'](_0x4ac6ea['cssText'],'')['trim']();return[{'selectorText':_0xd2d73e,'contentCssText':_0x4b81ed},...S(Array['from'](_0x440b5c),_0xd2d73e)];});}function L(_0x2119b6,_0x532a01){const _0x25ec85=new _0x27cc4c(_0x2119b6);for(const _0x19674e of _0x532a01){let _0x1b4137=null;if(_0x1b4137='string'==typeof _0x19674e?new _0x27cc4c(_0x2119b6)['setTo'](_0x19674e):_0x19674e,_0x1b4137){for(const [_0x2984a6,_0x431daa]of _0x1b4137['getStylesEntries']())_0x25ec85['set'](_0x2984a6,_0x431daa);}}return _0x25ec85;}var g=class extends _0x55b944{['_stylesProcessor'];constructor(_0x252d41){super(_0x252d41),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x10d8a7(this['_stylesProcessor']),_0x41c5b7(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async['execute'](_0x383271){const _0x45c7f6=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0xb4c958}=this['editor']['locale'],{rootName:_0x2c0304='main',dataControllerDowncastOptions:_0x41f59a={},transformations:_0x29c038=_0x45c7f6['transformations']||[]}=_0x383271||{};this['isBusy']=!0x0,this['refresh']();const _0x5a45cd=this['_getRootDataHTMLFragment'](_0x2c0304,_0x41f59a),_0x34b55f=_0x30678e(_0x5a45cd['ownerDocument'],'div',{'dir':_0xb4c958,'class':'ck-content'},[_0x5a45cd]);return this['_collectAndApplyStyles'](_0x29c038,_0x34b55f)['then'](()=>{const _0x1282ba=function(_0x544d0a){const _0x2f0c39=_0x544d0a['ownerDocument']['createDocumentFragment']();for(;_0x544d0a['firstChild'];)_0x2f0c39['appendChild'](_0x544d0a['firstChild']);return _0x2f0c39;}(_0x34b55f),_0x32a385=_0x34b55f['getAttribute']('style');if(_0x32a385)for(const _0x29759c of _0x1282ba['children']){const _0x2a1ba1=_0x29759c['getAttribute']('style'),_0x5eac84=L(this['_stylesProcessor'],[_0x32a385,_0x2a1ba1]);_0x29759c['setAttribute']('style',x(_0x5eac84));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x1282ba);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0x4cb015,_0x2378af){const {data:_0x69cb24,model:_0x5315cd}=this['editor'],_0x2aa977=_0x5315cd['document']['getRoot'](_0x4cb015),_0x40458e=_0x69cb24['toView'](_0x2aa977,_0x2378af);return _0x69cb24['htmlProcessor']['domConverter']['viewToDom'](_0x40458e);}async['_collectAndApplyStyles'](_0x14d96a,_0x162a2c){const {stylesheets:_0x43993f,inlineCss:_0x2f9b87,stripCssClasses:_0x5e4e96}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x5ed734,rootCssVariables:_0x16ce20}=await h({'stylesheets':_0x43993f||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x2f9b87}),_0x6b9b54=[];this['_processElementTree']({'transformations':_0x14d96a,'parsedCssRules':_0x5ed734,'element':_0x162a2c,'stripCssClasses':_0x5e4e96,'parentCSSVariablesLookup':_0x16ce20['get']['bind'](_0x16ce20),'runAfterDocumentTransformation':_0x357fce=>{_0x6b9b54['unshift'](_0x357fce);}});for(const _0x2e9ac9 of _0x6b9b54)_0x2e9ac9();}['_processElementTree']({element:_0x35e579,parsedCssRules:_0x2ddbd3,parentCSSVariablesLookup:_0x2b1e69,runAfterDocumentTransformation:_0x5aaa13,stripCssClasses:_0x59f8b4,transformations:_0x2a3018}){const {stylesMap:_0x45fca6,localCSSVariables:_0xc7e693}=function(_0x33e52c){const _0x3e9307=_0x33e52c['element']['getAttribute']('style')||'',_0x33e402=_0x33e52c['parsedCssRules']['filter'](_0x56171b=>_0x33e52c['element']['matches'](_0x56171b['flatSelector']))['map'](_0x2fc820=>_0x2fc820['stylesMap']),_0x192663=L(_0x33e52c['stylesProcessor'],[..._0x33e402,_0x3e9307]);return{'localCSSVariables':p(_0x33e52c['fallbackCSSVariablesLookup'],_0x192663),'stylesMap':_0x192663};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x2b1e69,'parsedCssRules':_0x2ddbd3,'element':_0x35e579}),_0x44b6f6=[];for(const _0x573f49 of _0x2a3018){const _0x343810=_0x573f49(_0x35e579,_0x45fca6,{'runAfterDocumentTransformation':_0x5aaa13,'runAfterChildrenTransformation':_0x10a174=>{_0x44b6f6['unshift'](_0x10a174);}});_0x343810&&_0x343810 instanceof HTMLElement&&(_0x35e579=_0x343810);}_0x45fca6['size']?_0x35e579['setAttribute']('style',x(_0x45fca6)):_0x35e579['removeAttribute']('style');const _0x391d89=_0xca7c75=>_0xc7e693['has'](_0xca7c75)?_0xc7e693['get'](_0xca7c75):_0x2b1e69(_0xca7c75);for(const _0x2ea951 of _0x35e579['children'])_0x2ea951 instanceof HTMLElement&&this['_processElementTree']({'element':_0x2ea951,'parsedCssRules':_0x2ddbd3,'stripCssClasses':_0x59f8b4,'transformations':_0x2a3018,'parentCSSVariablesLookup':_0x391d89,'runAfterDocumentTransformation':_0x5aaa13});_0x59f8b4&&_0x35e579['removeAttribute']('class');for(const _0x2792e7 of _0x44b6f6)_0x2792e7();}};function x(_0x509f18){return _0x509f18['getStylesEntries']()['map'](_0x577c93=>_0x577c93['join'](':'))['join'](';')+';';}var C=class extends _0x361eff{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(_0x29f5eb){const _0x4058a2='DUA610emL4Q2kjVIvGMHgWT3uySnzPEw79oZJiCrbstcXKq85NhdfaFRxBlpOY',_0x41e036=0x78e88,_0x43b8dc=window['Date']['now'](),_0x24b949=_0x29f5eb['editor'],_0x7b8df1=new window['Promise'](_0x2ebf10=>{_0x24b949['once']('ready',_0x2ebf10);}),_0x5035a9={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x39e8ec=_0x24b949['config']['get']('licenseKey');async function _0x5de156(){let _0x22f4ff,_0x2100f6=null,_0x2c7cf8=null;try{return'GPL'==_0x39e8ec?'NotAllowed':(_0x22f4ff=_0x11ab2f(),_0x22f4ff?(_0x22f4ff['usageEndpoint']&&(_0x2c7cf8=_0x36c012(_0x22f4ff['usageEndpoint'],_0x22f4ff['jti'])),await _0x25b638()?_0x1e311a()?_0x4981e6()?'Expired':_0x39073c()?('evaluation'==_0x22f4ff['licenseType']&&(_0x2100f6=_0x3efc17('EvaluationLimit')),await _0x442a5b()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x4981e6(){const _0x370a0d=['evaluation','trial']['includes'](_0x22f4ff['licenseType'])?_0x43b8dc/0x3e8:0xe10*_0x41e036;return _0x22f4ff['exp']<_0x370a0d;}function _0x1e311a(){const _0x59ab29=_0x22f4ff['features'];return!!_0x59ab29&&(!!_0x59ab29['includes']('*')||!!_0x59ab29['includes']('EIS'));}function _0x39073c(){const _0xb20538=_0x22f4ff['licensedHosts'];if(!_0xb20538||0x0==_0xb20538['length'])return!0x0;const {hostname:_0x3fef60}=new URL(window['location']['href']);if(_0xb20538['includes'](_0x3fef60))return!0x0;const _0x5beb31=_0x3fef60['split']('.');return _0xb20538['filter'](_0x467c93=>_0x467c93['includes']('*'))['map'](_0x500285=>_0x500285['split']('.'))['filter'](_0x4bd879=>_0x4bd879['length']<=_0x5beb31['length'])['map'](_0x6642ec=>Array(_0x5beb31['length']-_0x6642ec['length'])['fill']('*'===_0x6642ec[0x0]?'*':'')['concat'](_0x6642ec))['some'](_0x1b6a8a=>_0x5beb31['every']((_0x2644c9,_0xa33f0c)=>_0x1b6a8a[_0xa33f0c]===_0x2644c9||'*'===_0x1b6a8a[_0xa33f0c]));}function _0x442a5b(){return _0x2100f6&&_0x2c7cf8?new window['Promise']((_0x2aa9d4,_0x2850cd)=>{_0x2100f6['then'](_0x2aa9d4,_0x2850cd),_0x2c7cf8['then'](_0x49a3c7=>{'Valid'!=_0x49a3c7&&_0x2aa9d4(_0x49a3c7);},_0x2850cd);}):_0x2100f6||_0x2c7cf8||'Valid';}}function _0x36c012(_0x1275e9,_0xeeb950){return new window['Promise'](_0xa94883=>{if(_0x539940())return _0xa94883('Valid');_0x33f551(),_0x24b949['decorate']('_sendUsageRequest');let _0x894c0=!0x1;const _0x3ecd62=_0x30b194();function _0x187716(_0x5939de){return!!_0x5939de&&('object'==typeof _0x5939de||'function'==typeof _0x5939de)&&'function'==typeof _0x5939de['then']&&'function'==typeof _0x5939de['catch'];}function _0xaaa0c3(_0x4a8c98){_0x405fc0(_0x4a8c98)['then'](_0x22ae26=>_0x22ae26&&'ok'==_0x22ae26['status']?_0x39d25b(_0x3f6d12(_0x3ecd62+_0xeeb950))!=_0x22ae26['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x36b65a=>(_0x3e5f9a(),_0x36b65a),()=>{const _0x13d170=_0x1b50cb();return null==_0x13d170?(_0x3e5f9a(),'Valid'):_0x43b8dc-_0x13d170>0x240c8400?'UsageLimit':'Valid';})['then'](_0xa94883)['catch'](()=>{_0xa94883('UsageLimit');});const _0x5644bb=0x36ee80;function _0x3e5f9a(){const _0x237112='llct-'+_0x39d25b(_0x3f6d12(_0x1275e9)),_0x38bc7e=_0x547988(_0x39d25b(window['Math']['ceil'](_0x43b8dc/_0x5644bb)));window['localStorage']['setItem'](_0x237112,_0x38bc7e);}function _0x1b50cb(){const _0x180714='llct-'+_0x39d25b(_0x3f6d12(_0x1275e9)),_0x2c1898=window['localStorage']['getItem'](_0x180714);return _0x2c1898?window['parseInt'](_0x547988(_0x2c1898),0x10)*_0x5644bb:null;}function _0x405fc0(_0x9a25dc){return new window['Promise']((_0x183d7c,_0x5dbbc1)=>{_0x9a25dc['then'](_0x183d7c,_0x5dbbc1),window['setTimeout'](_0x5dbbc1,0x1d4c0);});}}_0x24b949['on']('_sendUsageRequest',(_0x19eab3,_0x5474aa)=>{if(_0x5474aa[0x0]!=_0x1275e9)return _0xa94883('UsageLimit');_0x5474aa[0x1]={..._0x5474aa[0x1],'requestId':_0x3ecd62};},{'priority':'high'}),_0x24b949['on']('_sendUsageRequest',_0x5ad710=>{_0x187716(_0x5ad710['return'])&&(_0x894c0=!0x0,_0xaaa0c3(_0x5ad710['return']));},{'priority':'low'}),_0x7b8df1['then'](()=>{_0x894c0||_0xa94883('UsageLimit');});});function _0x539940(){return'auto'==_0x24b949['editing']['view']['_overlayModeHint'];}function _0x33f551(){_0x24b949['editing']['view']['_overlayModeHint']='auto';}}function _0x3efc17(_0x535c07){const _0x23a586=[new window['Promise'](_0x2a570d=>setTimeout(_0x2a570d,0x93ecc)),_0x7b8df1['then'](()=>new window['Promise'](_0x26df9e=>{let _0xc64175=0x0;_0x24b949['model']['on']('applyOperation',(_0x213e22,_0x1f44cd)=>{_0x1f44cd[0x0]['isDocumentOperation']&&_0xc64175++,0x5e8==_0xc64175&&(_0x26df9e(),_0x213e22['off']());});}))];return window['Promise']['race'](_0x23a586)['then'](()=>_0x535c07);}async function _0xbeb3b8(){await _0x7b8df1;const _0x1a3615=_0x24b949['commands']['get']('exportInlineStyles');_0x1a3615&&_0x1a3615['on']('execute',_0x1259c3=>{_0x1259c3['stop']();},{'priority':'highest'}),_0x24b949['model']['change']=_0x55049b,_0x24b949['model']['enqueueChange']=_0x55049b,_0x24b949['enableReadOnlyMode']('model');}function _0x5609a7(_0x4b929e){const _0x4a3ca4=_0x56a37c();_0x24b949[_0x4a3ca4]='exportInlineStylesLicenseKey'+_0x4b929e,'Valid'!=_0x4b929e&&_0xbeb3b8();}function _0x56a37c(){const _0x586fa1=window['String'](window['performance']['now']())['replace']('.','');let _0x2d56fb='D';for(let _0x19e78c=0x0;_0x19e78c<_0x586fa1['length'];_0x19e78c+=0x2){let _0x3a1f81=window['parseInt'](_0x586fa1['substring'](_0x19e78c,_0x19e78c+0x2));_0x3a1f81>=0x3e&&(_0x3a1f81-=0x3e),_0x2d56fb+=_0x4058a2[_0x3a1f81];}return _0x2d56fb;}function _0x11ab2f(){const _0x4d47b1=_0x39e8ec['split']('.');if(0x3!=_0x4d47b1['length'])return null;return _0x2eed81(_0x4d47b1[0x1]);function _0x2eed81(_0x3a3a6a){const _0x483be7=_0x3ee5fc(_0x3a3a6a);return _0x483be7&&_0x19d498()?_0x483be7:null;function _0x19d498(){const _0xab8d6f=_0x483be7['jti'],_0x24253d=window['parseInt'](_0xab8d6f['substring'](_0xab8d6f['length']-0x8),0x10),_0x1c58a4={..._0x483be7,'jti':_0xab8d6f['substring'](0x0,_0xab8d6f['length']-0x8)};return delete _0x1c58a4['vc'],_0x3f6d12(_0x1c58a4)==_0x24253d;}}}async function _0x25b638(){let _0x230b9b=!0x0;try{const [_0x59d635,_0x13c64b,_0x2327fd]=_0x39e8ec['split']('.');return _0x3fc177(_0x59d635),await _0x498002(_0x59d635,_0x13c64b,_0x2327fd),_0x230b9b;}catch{return!0x1;}function _0x3fc177(_0x3607c0){const _0x52c6b0=_0x3ee5fc(_0x3607c0);_0x52c6b0&&'ES256'==_0x52c6b0['alg']||(_0x230b9b=!0x1);}async function _0x498002(_0x4e7b18,_0x3203a9,_0x2b3b1f){const _0x5d3625=window['Uint8Array']['from'](_0x54d884(_0x2b3b1f),_0x5b0a65=>_0x5b0a65['charCodeAt'](0x0)),_0x3bf346=new window['TextEncoder']()['encode'](_0x4e7b18+'.'+_0x3203a9),_0x117f0f=window['crypto']['subtle'];if(!_0x117f0f)return;const _0x2c3398=await _0x117f0f['importKey']('jwk',_0x5035a9,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x117f0f['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x2c3398,_0x5d3625,_0x3bf346)||(_0x230b9b=!0x1);}}function _0x3ee5fc(_0x3e3b7d){return _0x3e3b7d['startsWith']('ey')?JSON['parse'](_0x54d884(_0x3e3b7d)):null;}function _0x54d884(_0x3e58e3){return window['atob'](_0x3e58e3['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x3f6d12(_0x15423d){let _0x34f898=0x1505;function _0x3284b0(_0x5df1ac){for(let _0x27961f=0x0;_0x27961f<_0x5df1ac['length'];_0x27961f++){const _0x593534=_0x5df1ac['charCodeAt'](_0x27961f);_0x34f898=(_0x34f898<<0x5)+_0x34f898+_0x593534,_0x34f898&=_0x34f898;}}function _0x26f2a2(_0x569deb){Array['isArray'](_0x569deb)?_0x569deb['forEach'](_0x26f2a2):_0x569deb&&'object'==typeof _0x569deb?Object['entries'](_0x569deb)['sort']()['forEach'](([_0x3b1651,_0x274c03])=>{_0x3284b0(_0x3b1651),_0x26f2a2(_0x274c03);}):_0x3284b0(window['String'](_0x569deb));}return _0x26f2a2(_0x15423d),_0x34f898>>>0x0;}function _0x39d25b(_0x34b9f3){return _0x34b9f3['toString'](0x10)['padStart'](0x8,'0');}function _0x547988(_0x344935){return _0x344935['split']('')['reverse']()['join']('');}function _0x55049b(){}_0x5609a7(await _0x5de156());}(this);}},I=class extends _0x361eff{['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 _0x4752a2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4ebb3c;for(const _0x5370a2 in _0x4752a2){const _0x524fc7=_0x5370a2,_0x3cc733=_0x4752a2[_0x524fc7];if('exportInlineStylesLicenseKeyValid'==_0x3cc733||'exportInlineStylesLicenseKeyInvalid'==_0x3cc733||'exportInlineStylesLicenseKeyExpired'==_0x3cc733||'exportInlineStylesLicenseKeyDomainLimit'==_0x3cc733||'exportInlineStylesLicenseKeyNotAllowed'==_0x3cc733||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x3cc733||'exportInlineStylesLicenseKeyUsageLimit'==_0x3cc733){delete _0x4752a2[_0x524fc7],_0x4ebb3c=_0x3cc733,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x4ebb3c&&_0x4752a2['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x4ebb3c&&_0x4752a2['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x4ebb3c&&_0x4752a2['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x4ebb3c&&_0x4752a2['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x4ebb3c&&_0x4752a2['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x4ebb3c&&_0x4752a2['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};export{I as ExportInlineStyles,g as ExportInlineStylesCommand,C as ExportInlineStylesEditing,d as dropImportantStyleSuffix};