@ckeditor/ckeditor5-paste-from-office-enhanced 49.0.0-alpha.7 → 49.0.0-alpha.8

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 +6 -6
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x19c7dc}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x50717f,PasteFromOfficeMSWordNormalizer as _0x28392e}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x118e4e,uid as _0x58fb1c}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x1d956f,ViewDomConverter as _0x5602d3,ViewUpcastWriter as _0x56678a}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x1d0ab3){return f['test'](_0x1d0ab3);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x7d5a63,_0x38869b){const _0x31488d=new Map();for(const [_0x22bb54,_0x62d6cf]of _0x38869b){if(!_0x22bb54['tagName']&&!_0x22bb54['className'])continue;const _0x48b41d=!_0x22bb54['tagName']||_0x7d5a63['name']===_0x22bb54['tagName'],_0x17c20e=!_0x22bb54['className']||_0x7d5a63['hasClass'](_0x22bb54['className']);_0x48b41d&&_0x17c20e&&_0x31488d['set'](_0x22bb54,_0x62d6cf);}return _0x31488d;}function m(_0x3cf1ee){const _0x47b705={};for(let _0x3d9497=0x0;_0x3d9497<_0x3cf1ee['length'];_0x3d9497++){const _0x1f9e5b=_0x3cf1ee[_0x3d9497],_0x275c18=_0x3cf1ee['getPropertyValue'](_0x1f9e5b);'initial'!==_0x275c18&&(_0x47b705[_0x1f9e5b]=_0x275c18);}return _0x47b705;}function w(_0x3ed0a4){const _0x3dad07=_0x3ed0a4['split'](',')['map'](_0x3b4902=>_0x3b4902['trim']()),_0x1a63b8=[];for(const _0x276831 of _0x3dad07){const _0x25a0fd=l['exec'](_0x276831);_0x25a0fd&&_0x1a63b8['push'](_0x25a0fd['groups']);}return _0x1a63b8;}function y(_0x280da4){const _0x3c9eac={};for(const _0x2c6928 of _0x280da4)Object['assign'](_0x3c9eac,_0x2c6928);return _0x3c9eac;}var g=class extends _0x28392e{execute(_0xa4dfdb){const {styles:_0x17d3b7,stylesString:_0x1fd6c4}=_0xa4dfdb['extraContent'],_0x4ff9cf=new _0x56678a(_0xa4dfdb['content']['document']),_0x257528=_0x4ff9cf['createRangeIn'](_0xa4dfdb['content']),_0x1e8a96=function(_0x859746){const _0x7bdb96={};for(const _0x2ce1f7 of _0x859746)for(const _0x5d8663 of _0x2ce1f7['cssRules'])if(_0x5d8663 instanceof CSSStyleRule){const _0x5856d7=m(_0x5d8663['style']);_0x7bdb96[_0x5d8663['selectorText']]=Object['assign']({},_0x7bdb96[_0x5d8663['selectorText']]||{},_0x5856d7);}return _0x7bdb96;}(_0x17d3b7),_0x2784b2=function(_0x512d59){const _0x10f02a=new Map();for(const _0x5e7411 in _0x512d59){const _0x2ed2ac=w(_0x5e7411),_0x3e7755=_0x512d59[_0x5e7411];for(const _0x46b26e of _0x2ed2ac)_0x10f02a['set'](_0x46b26e,_0x3e7755);}return _0x10f02a;}(_0x1e8a96),_0x1bc9ff=function(_0x1ef3e2){const _0x31c21d={},_0x27cd08=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x3788f5=/\.(?<className>[\w-]+)/g;let _0x3911fa;for(;null!==(_0x3911fa=_0x27cd08['exec'](_0x1ef3e2));){const {selector:_0x19d5b5,color:_0x96d1f2,patternType:_0x5dc455}=_0x3911fa['groups'];if('auto'!==_0x96d1f2['toLowerCase']()&&'none'!==_0x5dc455['toLowerCase']()&&'auto'!==_0x5dc455['toLowerCase']()){for(const _0x3cff0f of _0x19d5b5['matchAll'](_0x3788f5))_0x31c21d[_0x3cff0f['groups']['className']]=_0x96d1f2;}}return _0x31c21d;}(_0x1fd6c4);for(const _0x1650c5 of _0x257528){if('elementStart'!==_0x1650c5['type'])continue;const _0x5d8e33=_0x1650c5['item'],_0x190642=d(_0x5d8e33,_0x2784b2),_0x238fac=_0x190642['size']?y(Array['from'](_0x190642['values']())):{};if(!('background-color'in _0x238fac)&&!('background'in _0x238fac)){for(const [_0x14ecd5,_0x29a2ed]of Object['entries'](_0x1bc9ff))if(_0x5d8e33['hasClass'](_0x14ecd5)){_0x238fac['background-color']=_0x29a2ed;break;}}for(const _0x275001 in _0x238fac)_0x5d8e33['hasStyle'](_0x275001)||_0x4ff9cf['setStyle'](_0x275001,_0x238fac[_0x275001],_0x5d8e33);}}isActive(_0x34e511){return super['isActive'](_0x34e511)||u(_0x34e511);}},p=class extends _0x19c7dc{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x50717f];}init(){const _0x2c805e=this['editor'],_0x398bbb=_0x2c805e['plugins']['get']('PasteFromOffice'),_0x2a11b6=_0x2c805e['editing']['view']['document'],_0x468b8c=new g(_0x2a11b6);_0x398bbb['registerNormalizer'](_0x468b8c,_0x118e4e['high']+0xb);}afterInit(){!async function(_0x5f4a59){const _0x2562ab='umgl1F4YkAVEtv0TcN6nKiXCrhODd2PaGMSIJbspyz9QLBoWxUfj5HZew738Rq',_0x3f575c=0x797a0,_0x5f0951={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x4b941a(_0x37fc3f){const _0x377ebf=new window['Promise'](_0x3e88f2=>{_0x37fc3f['once']('ready',_0x3e88f2);}),_0x15a93a=window['Date']['now'](),_0x590527=_0x37fc3f['config']['get']('licenseKey');async function _0x51ffaa(){let _0x259c25,_0x2cbcaa=null,_0x168a6d=null;try{return'GPL'==_0x590527?'NotAllowed':(_0x259c25=_0x170ed5(),_0x259c25?(_0x259c25['usageEndpoint']&&(_0x168a6d=_0x315ab8(_0x259c25['usageEndpoint'],_0x259c25['jti'])),await _0x339423()?_0x466472()?_0x1e2e72()?'Expired':_0x404a4b()?('evaluation'==_0x259c25['licenseType']&&(_0x2cbcaa=_0x231644('EvaluationLimit')),await _0xc9914f()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x1e2e72(){const _0x3ef547=['evaluation','trial']['includes'](_0x259c25['licenseType'])?_0x15a93a/0x3e8:0xe10*_0x3f575c;return _0x259c25['exp']<_0x3ef547;}function _0x466472(){const _0x51eab1=_0x259c25['features'];return!!_0x51eab1&&(!!_0x51eab1['includes']('*')||(!!_0x51eab1['includes']('POE')||(!!_0x51eab1['includes']('PP')||!(!_0x51eab1['includes']('TRILIUM')||!_0x484475()))));}function _0x404a4b(){const _0x2de9ff=_0x259c25['licensedHosts'];if(!_0x2de9ff||0x0==_0x2de9ff['length'])return!0x0;const {hostname:_0x453824}=new URL(window['location']['href']);if(_0x2de9ff['includes'](_0x453824))return!0x0;const _0x200159=_0x453824['split']('.');return _0x2de9ff['filter'](_0x4480d3=>_0x4480d3['includes']('*'))['map'](_0x142c7d=>_0x142c7d['split']('.'))['filter'](_0x556bec=>_0x556bec['length']<=_0x200159['length'])['map'](_0x9c6310=>Array(_0x200159['length']-_0x9c6310['length'])['fill']('*'===_0x9c6310[0x0]?'*':'')['concat'](_0x9c6310))['some'](_0x30fc1f=>_0x200159['every']((_0x3578d7,_0x5eed9c)=>_0x30fc1f[_0x5eed9c]===_0x3578d7||'*'===_0x30fc1f[_0x5eed9c]));}function _0xc9914f(){return _0x2cbcaa&&_0x168a6d?new window['Promise']((_0x4f9af0,_0x3e860b)=>{_0x2cbcaa['then'](_0x4f9af0,_0x3e860b),_0x168a6d['then'](_0xa530ed=>{'Valid'!=_0xa530ed&&_0x4f9af0(_0xa530ed);},_0x3e860b);}):_0x2cbcaa||_0x168a6d||'Valid';}}function _0x315ab8(_0x447955,_0x470bf5){return new window['Promise'](_0x504d1f=>{if(_0x433bfd())return _0x504d1f('Valid');_0x360bac(),_0x37fc3f['decorate']('_sendUsageRequest');let _0x343666=!0x1;const _0x588b78=_0x58fb1c();function _0x3e4554(_0xca342b){return!!_0xca342b&&('object'==typeof _0xca342b||'function'==typeof _0xca342b)&&'function'==typeof _0xca342b['then']&&'function'==typeof _0xca342b['catch'];}function _0x48554a(_0x3a114e){_0x1fbab4(_0x3a114e)['then'](_0x6cfa9e=>_0x6cfa9e&&'ok'==_0x6cfa9e['status']?_0x8c6236(_0x589d34(_0x588b78+_0x470bf5))!=_0x6cfa9e['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x382b52=>(_0x40d0e7(),_0x382b52),()=>{const _0x5381f6=_0x2df6a7();return null==_0x5381f6?(_0x40d0e7(),'Valid'):_0x15a93a-_0x5381f6>0x240c8400?'UsageLimit':'Valid';})['then'](_0x504d1f)['catch'](()=>{_0x504d1f('UsageLimit');});const _0x3b22c7=0x36ee80;function _0x40d0e7(){const _0x526a08='llct-'+_0x8c6236(_0x589d34(_0x447955)),_0xf63ca5=_0x2acfb9(_0x8c6236(window['Math']['ceil'](_0x15a93a/_0x3b22c7)));window['localStorage']['setItem'](_0x526a08,_0xf63ca5);}function _0x2df6a7(){const _0x11aa88='llct-'+_0x8c6236(_0x589d34(_0x447955)),_0x250d2b=window['localStorage']['getItem'](_0x11aa88);return _0x250d2b?window['parseInt'](_0x2acfb9(_0x250d2b),0x10)*_0x3b22c7:null;}function _0x1fbab4(_0x3b8ffe){return new window['Promise']((_0x3b872b,_0x2f3c47)=>{_0x3b8ffe['then'](_0x3b872b,_0x2f3c47),window['setTimeout'](_0x2f3c47,0x1d4c0);});}}_0x37fc3f['on']('_sendUsageRequest',(_0xbb51e0,_0x35d64b)=>{if(_0x35d64b[0x0]!=_0x447955)return _0x504d1f('UsageLimit');_0x35d64b[0x1]={..._0x35d64b[0x1],'requestId':_0x588b78};},{'priority':'high'}),_0x37fc3f['on']('_sendUsageRequest',_0x29a45c=>{_0x3e4554(_0x29a45c['return'])&&(_0x343666=!0x0,_0x48554a(_0x29a45c['return']));},{'priority':'low'}),_0x377ebf['then'](()=>{_0x343666||_0x504d1f('UsageLimit');});});function _0x433bfd(){return'auto'==_0x37fc3f['editing']['view']['_overlayModeHint'];}function _0x360bac(){_0x37fc3f['editing']['view']['_overlayModeHint']='auto';}}function _0x231644(_0x26598c){const _0x4e8895=[new window['Promise'](_0xf3182e=>setTimeout(_0xf3182e,0x93ecc)),_0x377ebf['then'](()=>new window['Promise'](_0xf8f9b7=>{let _0x50092d=0x0;_0x37fc3f['model']['on']('applyOperation',(_0x2b2c65,_0xef7af7)=>{_0xef7af7[0x0]['isDocumentOperation']&&_0x50092d++,0x5e8==_0x50092d&&(_0xf8f9b7(),_0x2b2c65['off']());});}))];return window['Promise']['race'](_0x4e8895)['then'](()=>_0x26598c);}async function _0x2b976d(){await _0x377ebf,_0x37fc3f['model']['change']=_0xc84bd2,_0x37fc3f['model']['enqueueChange']=_0xc84bd2,_0x37fc3f['enableReadOnlyMode']('model');}function _0x484475(){return window['glob']&&window['glob']['triliumVersion'];}function _0x19c0fa(_0x50f69b){const _0x12f093=_0x3cc49a();_0x37fc3f[_0x12f093]='pasteFromOfficeEnhancedLicenseKey'+_0x50f69b,'Valid'!=_0x50f69b&&_0x2b976d();}function _0x3cc49a(){const _0x321bbc=window['String'](window['performance']['now']())['replace']('.','');let _0x20b408='u';for(let _0x378b93=0x0;_0x378b93<_0x321bbc['length'];_0x378b93+=0x2){let _0x42c6f3=window['parseInt'](_0x321bbc['substring'](_0x378b93,_0x378b93+0x2));_0x42c6f3>=0x3e&&(_0x42c6f3-=0x3e),_0x20b408+=_0x2562ab[_0x42c6f3];}return _0x20b408;}function _0x170ed5(){const _0x15b95c=_0x590527['split']('.');if(0x3!=_0x15b95c['length'])return null;return _0x502c64(_0x15b95c[0x1]);function _0x502c64(_0x36061f){const _0x5b2d30=_0x5ad1e1(_0x36061f);return _0x5b2d30&&_0x444e1e()?_0x5b2d30:null;function _0x444e1e(){const _0x4d8814=_0x5b2d30['jti'],_0x11b1a5=window['parseInt'](_0x4d8814['substring'](_0x4d8814['length']-0x8),0x10),_0x4a8694={..._0x5b2d30,'jti':_0x4d8814['substring'](0x0,_0x4d8814['length']-0x8)};return delete _0x4a8694['vc'],_0x589d34(_0x4a8694)==_0x11b1a5;}}}async function _0x339423(){let _0x3f8e1a=!0x0;try{const [_0x1963d4,_0x20079e,_0x378452]=_0x590527['split']('.');return _0x5f7e25(_0x1963d4),await _0x587967(_0x1963d4,_0x20079e,_0x378452),_0x3f8e1a;}catch{return!0x1;}function _0x5f7e25(_0x28884e){const _0x5a2305=_0x5ad1e1(_0x28884e);_0x5a2305&&'ES256'==_0x5a2305['alg']||(_0x3f8e1a=!0x1);}async function _0x587967(_0x3d28a4,_0x5598d2,_0x1a392d){const _0x113961=window['Uint8Array']['from'](_0x15ac64(_0x1a392d),_0x5de69a=>_0x5de69a['charCodeAt'](0x0)),_0x52a308=new window['TextEncoder']()['encode'](_0x3d28a4+'.'+_0x5598d2),_0x4a66d7=window['crypto']['subtle'];if(!_0x4a66d7)return;const _0x22bfc4=await _0x4a66d7['importKey']('jwk',_0x5f0951,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x4a66d7['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x22bfc4,_0x113961,_0x52a308)||(_0x3f8e1a=!0x1);}}function _0x5ad1e1(_0x450387){return _0x450387['startsWith']('ey')?JSON['parse'](_0x15ac64(_0x450387)):null;}function _0x15ac64(_0x4b64d8){return window['atob'](_0x4b64d8['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x589d34(_0x4e742d){let _0x4b9a07=0x1505;function _0x9a7d85(_0x7cd530){for(let _0x5e6a82=0x0;_0x5e6a82<_0x7cd530['length'];_0x5e6a82++){const _0x59ffcd=_0x7cd530['charCodeAt'](_0x5e6a82);_0x4b9a07=(_0x4b9a07<<0x5)+_0x4b9a07+_0x59ffcd,_0x4b9a07&=_0x4b9a07;}}function _0x5a262d(_0x69a241){Array['isArray'](_0x69a241)?_0x69a241['forEach'](_0x5a262d):_0x69a241&&'object'==typeof _0x69a241?Object['entries'](_0x69a241)['sort']()['forEach'](([_0x152cfe,_0x9c61eb])=>{_0x9a7d85(_0x152cfe),_0x5a262d(_0x9c61eb);}):_0x9a7d85(window['String'](_0x69a241));}return _0x5a262d(_0x4e742d),_0x4b9a07>>>0x0;}function _0x8c6236(_0x5b83ff){return _0x5b83ff['toString'](0x10)['padStart'](0x8,'0');}function _0x2acfb9(_0x74a8b5){return _0x74a8b5['split']('')['reverse']()['join']('');}function _0xc84bd2(){}_0x19c0fa(await _0x51ffaa());}_0x4b941a(_0x5f4a59['editor']);}(this);}};const h=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],O=['color','font-family','font-size'],L={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x317db8=>Number(_0x317db8)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function E(_0x457cc3){return h['includes'](_0x457cc3);}function v(_0x1458e5){return Array['from'](_0x1458e5['getStyleNames']())['filter'](E);}function F(_0x34c378,_0x49acc9,_0x2a1bf1){const {spanStyles:_0x2a4335,stylesToBeHtmlElements:_0x18bdc6}=K(_0x34c378,_0x2a1bf1);!function(_0x4b2c73,_0x505a1c,_0x2f408f){for(const _0x565414 in _0x2f408f)_0x2f408f[_0x565414]['forEach'](([,_0x39a6e0])=>{const _0x18650f=_0x505a1c['createElement'](_0x39a6e0,[],_0x4b2c73['getChildren']());_0x505a1c['insertChild'](0x0,_0x18650f,_0x4b2c73);}),_0x505a1c['removeStyle'](_0x565414,_0x4b2c73);}(_0x34c378,_0x49acc9,_0x18bdc6),function(_0x18f314,_0x1e7c9f,_0x440cfd){if(!Object['keys'](_0x440cfd)['length'])return;const _0x2fe0f4=_0x1e7c9f['createElement']('span',[],_0x18f314['getChildren']());_0x1e7c9f['setStyle'](_0x440cfd,_0x2fe0f4),_0x1e7c9f['insertChild'](0x0,_0x2fe0f4,_0x18f314),_0x1e7c9f['removeStyle'](Object['keys'](_0x440cfd),_0x18f314);}(_0x34c378,_0x49acc9,_0x2a4335);}function P(_0x169a3b,_0x260395,_0x488fa9){const {spanStyles:_0x219ab4}=K(_0x169a3b,_0x488fa9),_0x127d05=Object['keys'](_0x219ab4);if(!_0x127d05['length'])return;let _0x5fdedb=!0x1;for(const _0x41005b of _0x169a3b['getChildren']())if(_0x41005b['is']('element','span')){_0x5fdedb=!0x0;for(const [_0x99e678,_0x5d21c0]of Object['entries'](_0x219ab4))_0x41005b['hasStyle'](_0x99e678)||_0x260395['setStyle']({[_0x99e678]:_0x5d21c0},_0x41005b);}_0x5fdedb&&_0x260395['removeStyle'](_0x127d05,_0x169a3b);}function K(_0xf03694,_0x31c44e){const _0x182246={},_0x1b2206={};return _0x31c44e['forEach'](_0x43addc=>{const _0x3457a7=_0xf03694['getStyle'](_0x43addc);if(_0x3457a7){if(function(_0x4de964){return O['includes'](_0x4de964);}(_0x43addc))_0x182246[_0x43addc]=_0x3457a7;else{if(function(_0x3a4774){return _0x3a4774 in L;}(_0x43addc)){const _0x556a5e=_0x3457a7['split']('\x20');L[_0x43addc]['forEach'](([_0x306f14,_0xb4c718])=>{for(const _0x39f9ba of _0x556a5e)('function'==typeof _0x306f14&&_0x306f14(_0x39f9ba)||_0x306f14===_0x39f9ba)&&(_0x1b2206[_0x43addc]=[..._0x1b2206[_0x43addc]||[],[_0x306f14,_0xb4c718]]);});}}}}),{'spanStyles':_0x182246,'stylesToBeHtmlElements':_0x1b2206};}var b=class extends _0x28392e{execute(_0x7744bb){const _0x4e993b=new _0x56678a(_0x7744bb['content']['document']),_0x1587a0=_0x4e993b['createRangeIn'](_0x7744bb['content']),_0x310172=new _0x1d956f(_0x4e993b['document']['stylesProcessor']),_0x1a0639=[...new _0x5602d3(_0x310172)['blockElements'],'font'],_0xbd281e=_0x1587a0['getItems']();for(const _0x4b4a6e of _0xbd281e)if(_0x4b4a6e['is']('element')&&_0x1a0639['includes'](_0x4b4a6e['name'])){if(_0x4b4a6e['hasStyle']('mso-list')&&'none'!==_0x4b4a6e['getStyle']('mso-list')){P(_0x4b4a6e,_0x4e993b,v(_0x4b4a6e));continue;}F(_0x4b4a6e,_0x4e993b,v(_0x4b4a6e));}}isActive(_0x4ed33e){return super['isActive'](_0x4ed33e)||u(_0x4ed33e);}},x=class extends _0x19c7dc{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x50717f];}init(){const _0x3f0d4a=this['editor'],_0x1d159c=_0x3f0d4a['plugins']['get']('PasteFromOffice'),_0x3b3b8b=_0x3f0d4a['editing']['view']['document'],_0x630bba=new b(_0x3b3b8b);_0x1d159c['registerNormalizer'](_0x630bba,_0x118e4e['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x4f710f=[this['editor']];for(const _0xfdccc4 of _0x4f710f){let _0x19a9df;for(const _0x303aba in _0xfdccc4){const _0x4fd776=_0x303aba,_0x370fcf=_0xfdccc4[_0x4fd776];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x370fcf||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x370fcf||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x370fcf||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x370fcf||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x370fcf||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x370fcf||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x370fcf){delete _0xfdccc4[_0x4fd776],_0x19a9df=_0x370fcf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x19a9df&&_0xfdccc4['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x19a9df&&_0xfdccc4['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x19a9df&&_0xfdccc4['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x19a9df&&_0xfdccc4['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x19a9df&&_0xfdccc4['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x19a9df&&_0xfdccc4['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x19c7dc{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x50717f,p,x];}};export{k as PasteFromOfficeEnhanced};
23
+ import{Plugin as _0x4eb687}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x2a2a47,PasteFromOfficeMSWordNormalizer as _0x3a6f7e}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x1c31f1,uid as _0x5eca62}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x370fc3,ViewDomConverter as _0x2a34bc,ViewUpcastWriter as _0x30e6cf}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x59c204){return f['test'](_0x59c204);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x5a0136,_0x422ea7){const _0x1c52a8=new Map();for(const [_0x22d13d,_0x19c72f]of _0x422ea7){if(!_0x22d13d['tagName']&&!_0x22d13d['className'])continue;const _0x2ccc92=!_0x22d13d['tagName']||_0x5a0136['name']===_0x22d13d['tagName'],_0x77e5c8=!_0x22d13d['className']||_0x5a0136['hasClass'](_0x22d13d['className']);_0x2ccc92&&_0x77e5c8&&_0x1c52a8['set'](_0x22d13d,_0x19c72f);}return _0x1c52a8;}function m(_0x24c125){const _0x4e77d2={};for(let _0x207b47=0x0;_0x207b47<_0x24c125['length'];_0x207b47++){const _0x1d099f=_0x24c125[_0x207b47],_0x22a1b1=_0x24c125['getPropertyValue'](_0x1d099f);'initial'!==_0x22a1b1&&(_0x4e77d2[_0x1d099f]=_0x22a1b1);}return _0x4e77d2;}function w(_0x2e236){const _0x1487a4=_0x2e236['split'](',')['map'](_0x32b83a=>_0x32b83a['trim']()),_0x246b7f=[];for(const _0x171fce of _0x1487a4){const _0x5b93c5=l['exec'](_0x171fce);_0x5b93c5&&_0x246b7f['push'](_0x5b93c5['groups']);}return _0x246b7f;}function y(_0xa39e57){const _0xe797ac={};for(const _0x2f3ef2 of _0xa39e57)Object['assign'](_0xe797ac,_0x2f3ef2);return _0xe797ac;}var g=class extends _0x3a6f7e{execute(_0x33febd){const {styles:_0x50a8f8,stylesString:_0x4f64d2}=_0x33febd['extraContent'],_0x5aab54=new _0x30e6cf(_0x33febd['content']['document']),_0x4e122e=_0x5aab54['createRangeIn'](_0x33febd['content']),_0x40bafb=function(_0x2c2785){const _0x3bb89b={};for(const _0x830b5e of _0x2c2785)for(const _0x5036d3 of _0x830b5e['cssRules'])if(_0x5036d3 instanceof CSSStyleRule){const _0x1de5b7=m(_0x5036d3['style']);_0x3bb89b[_0x5036d3['selectorText']]=Object['assign']({},_0x3bb89b[_0x5036d3['selectorText']]||{},_0x1de5b7);}return _0x3bb89b;}(_0x50a8f8),_0x4c96b2=function(_0x1c8aa4){const _0x171c17=new Map();for(const _0x250db1 in _0x1c8aa4){const _0x19d489=w(_0x250db1),_0x5e8166=_0x1c8aa4[_0x250db1];for(const _0x573492 of _0x19d489)_0x171c17['set'](_0x573492,_0x5e8166);}return _0x171c17;}(_0x40bafb),_0x402a9d=function(_0x404f20){const _0xac38c3={},_0x3689fd=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x58754=/\.(?<className>[\w-]+)/g;let _0x59ea43;for(;null!==(_0x59ea43=_0x3689fd['exec'](_0x404f20));){const {selector:_0x4ce2b8,color:_0x37b742,patternType:_0x27756d}=_0x59ea43['groups'];if('auto'!==_0x37b742['toLowerCase']()&&'none'!==_0x27756d['toLowerCase']()&&'auto'!==_0x27756d['toLowerCase']()){for(const _0x2a8136 of _0x4ce2b8['matchAll'](_0x58754))_0xac38c3[_0x2a8136['groups']['className']]=_0x37b742;}}return _0xac38c3;}(_0x4f64d2);for(const _0x1a24f0 of _0x4e122e){if('elementStart'!==_0x1a24f0['type'])continue;const _0x222826=_0x1a24f0['item'],_0xfbc6c9=d(_0x222826,_0x4c96b2),_0x4d9a96=_0xfbc6c9['size']?y(Array['from'](_0xfbc6c9['values']())):{};if(!('background-color'in _0x4d9a96)&&!('background'in _0x4d9a96)){for(const [_0x4e8018,_0xb00ed8]of Object['entries'](_0x402a9d))if(_0x222826['hasClass'](_0x4e8018)){_0x4d9a96['background-color']=_0xb00ed8;break;}}for(const _0x2684c5 in _0x4d9a96)_0x222826['hasStyle'](_0x2684c5)||_0x5aab54['setStyle'](_0x2684c5,_0x4d9a96[_0x2684c5],_0x222826);}}isActive(_0x4f1bc3){return super['isActive'](_0x4f1bc3)||u(_0x4f1bc3);}},p=class extends _0x4eb687{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x2a2a47];}init(){const _0x24fe7e=this['editor'],_0x40b212=_0x24fe7e['plugins']['get']('PasteFromOffice'),_0x5102ce=_0x24fe7e['editing']['view']['document'],_0xe02d1=new g(_0x5102ce);_0x40b212['registerNormalizer'](_0xe02d1,_0x1c31f1['high']+0xb);}afterInit(){!async function(_0x3b1461){const _0x59bfd1='umgl1F4YkAVEtv0TcN6nKiXCrhODd2PaGMSIJbspyz9QLBoWxUfj5HZew738Rq',_0x29d97d=0x797b8,_0x3c08a4={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x26fdf(_0x6726ea){const _0x4b0f0b=new window['Promise'](_0x489195=>{_0x6726ea['once']('ready',_0x489195);}),_0x5334ae=window['Date']['now'](),_0x4a49b9=_0x6726ea['config']['get']('licenseKey');async function _0x3197bf(){let _0x3d8608,_0x5cca82=null,_0x40b232=null;try{return'GPL'==_0x4a49b9?'NotAllowed':(_0x3d8608=_0x593f99(),_0x3d8608?(_0x3d8608['usageEndpoint']&&(_0x40b232=_0x5ee921(_0x3d8608['usageEndpoint'],_0x3d8608['jti'])),await _0x2d53e9()?_0xf4ec60()?_0x3da58d()?'Expired':_0x15757c()?('evaluation'==_0x3d8608['licenseType']&&(_0x5cca82=_0x2bd607('EvaluationLimit')),await _0x5ccd51()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x3da58d(){const _0x29fe0b=['evaluation','trial']['includes'](_0x3d8608['licenseType'])?_0x5334ae/0x3e8:0xe10*_0x29d97d;return _0x3d8608['exp']<_0x29fe0b;}function _0xf4ec60(){const _0x26c1d8=_0x3d8608['features'];return!!_0x26c1d8&&(!!_0x26c1d8['includes']('*')||(!!_0x26c1d8['includes']('POE')||(!!_0x26c1d8['includes']('PP')||!(!_0x26c1d8['includes']('TRILIUM')||!_0xff8fd5()))));}function _0x15757c(){const _0x403e53=_0x3d8608['licensedHosts'];if(!_0x403e53||0x0==_0x403e53['length'])return!0x0;const {hostname:_0x287acc}=new URL(window['location']['href']);if(_0x403e53['includes'](_0x287acc))return!0x0;const _0x161d53=_0x287acc['split']('.');return _0x403e53['filter'](_0x7347fb=>_0x7347fb['includes']('*'))['map'](_0xfd08f1=>_0xfd08f1['split']('.'))['filter'](_0x3c5e0a=>_0x3c5e0a['length']<=_0x161d53['length'])['map'](_0x6f0379=>Array(_0x161d53['length']-_0x6f0379['length'])['fill']('*'===_0x6f0379[0x0]?'*':'')['concat'](_0x6f0379))['some'](_0x42367a=>_0x161d53['every']((_0x447975,_0x1c3f7e)=>_0x42367a[_0x1c3f7e]===_0x447975||'*'===_0x42367a[_0x1c3f7e]));}function _0x5ccd51(){return _0x5cca82&&_0x40b232?new window['Promise']((_0x36fe60,_0x530601)=>{_0x5cca82['then'](_0x36fe60,_0x530601),_0x40b232['then'](_0x4c937d=>{'Valid'!=_0x4c937d&&_0x36fe60(_0x4c937d);},_0x530601);}):_0x5cca82||_0x40b232||'Valid';}}function _0x5ee921(_0x2a6f3f,_0x3b937e){return new window['Promise'](_0x2b0735=>{if(_0x48161f())return _0x2b0735('Valid');_0x5b0a51(),_0x6726ea['decorate']('_sendUsageRequest');let _0x37f7e7=!0x1;const _0x25278c=_0x5eca62();function _0x4d66a7(_0x51ec3b){return!!_0x51ec3b&&('object'==typeof _0x51ec3b||'function'==typeof _0x51ec3b)&&'function'==typeof _0x51ec3b['then']&&'function'==typeof _0x51ec3b['catch'];}function _0x50eaa2(_0x30dbbc){_0x5e0f30(_0x30dbbc)['then'](_0x3ccafe=>_0x3ccafe&&'ok'==_0x3ccafe['status']?_0x40fa71(_0x125d9b(_0x25278c+_0x3b937e))!=_0x3ccafe['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0xf25b69=>(_0x419611(),_0xf25b69),()=>{const _0x3710b8=_0x14e65f();return null==_0x3710b8?(_0x419611(),'Valid'):_0x5334ae-_0x3710b8>0x240c8400?'UsageLimit':'Valid';})['then'](_0x2b0735)['catch'](()=>{_0x2b0735('UsageLimit');});const _0x1e9b30=0x36ee80;function _0x419611(){const _0x55a464='llct-'+_0x40fa71(_0x125d9b(_0x2a6f3f)),_0x1e968=_0xcf4165(_0x40fa71(window['Math']['ceil'](_0x5334ae/_0x1e9b30)));window['localStorage']['setItem'](_0x55a464,_0x1e968);}function _0x14e65f(){const _0x661bfc='llct-'+_0x40fa71(_0x125d9b(_0x2a6f3f)),_0xb60a7b=window['localStorage']['getItem'](_0x661bfc);return _0xb60a7b?window['parseInt'](_0xcf4165(_0xb60a7b),0x10)*_0x1e9b30:null;}function _0x5e0f30(_0x51155d){return new window['Promise']((_0xd513e,_0x5e081f)=>{_0x51155d['then'](_0xd513e,_0x5e081f),window['setTimeout'](_0x5e081f,0x1d4c0);});}}_0x6726ea['on']('_sendUsageRequest',(_0x2be18e,_0x5c67d5)=>{if(_0x5c67d5[0x0]!=_0x2a6f3f)return _0x2b0735('UsageLimit');_0x5c67d5[0x1]={..._0x5c67d5[0x1],'requestId':_0x25278c};},{'priority':'high'}),_0x6726ea['on']('_sendUsageRequest',_0x529133=>{_0x4d66a7(_0x529133['return'])&&(_0x37f7e7=!0x0,_0x50eaa2(_0x529133['return']));},{'priority':'low'}),_0x4b0f0b['then'](()=>{_0x37f7e7||_0x2b0735('UsageLimit');});});function _0x48161f(){return'auto'==_0x6726ea['editing']['view']['_overlayModeHint'];}function _0x5b0a51(){_0x6726ea['editing']['view']['_overlayModeHint']='auto';}}function _0x2bd607(_0x5ce4fb){const _0x346ddd=[new window['Promise'](_0x26d59f=>setTimeout(_0x26d59f,0x93ecc)),_0x4b0f0b['then'](()=>new window['Promise'](_0x1573dd=>{let _0x47e5f3=0x0;_0x6726ea['model']['on']('applyOperation',(_0x4e2115,_0x30e93e)=>{_0x30e93e[0x0]['isDocumentOperation']&&_0x47e5f3++,0x5e8==_0x47e5f3&&(_0x1573dd(),_0x4e2115['off']());});}))];return window['Promise']['race'](_0x346ddd)['then'](()=>_0x5ce4fb);}async function _0x2b73a1(){await _0x4b0f0b,_0x6726ea['model']['change']=_0x372e6a,_0x6726ea['model']['enqueueChange']=_0x372e6a,_0x6726ea['enableReadOnlyMode']('model');}function _0xff8fd5(){return window['glob']&&window['glob']['triliumVersion'];}function _0x4f1b4b(_0x3198f6){const _0x19fdb2=_0x2e8f1c();_0x6726ea[_0x19fdb2]='pasteFromOfficeEnhancedLicenseKey'+_0x3198f6,'Valid'!=_0x3198f6&&_0x2b73a1();}function _0x2e8f1c(){const _0x2c240d=window['String'](window['performance']['now']())['replace']('.','');let _0xbcd59e='u';for(let _0x3473dd=0x0;_0x3473dd<_0x2c240d['length'];_0x3473dd+=0x2){let _0x4f4707=window['parseInt'](_0x2c240d['substring'](_0x3473dd,_0x3473dd+0x2));_0x4f4707>=0x3e&&(_0x4f4707-=0x3e),_0xbcd59e+=_0x59bfd1[_0x4f4707];}return _0xbcd59e;}function _0x593f99(){const _0xfc14bc=_0x4a49b9['split']('.');if(0x3!=_0xfc14bc['length'])return null;return _0x1f4da2(_0xfc14bc[0x1]);function _0x1f4da2(_0x15e4d1){const _0x18d752=_0x2f2899(_0x15e4d1);return _0x18d752&&_0x46d7aa()?_0x18d752:null;function _0x46d7aa(){const _0x2b9399=_0x18d752['jti'],_0x29d13c=window['parseInt'](_0x2b9399['substring'](_0x2b9399['length']-0x8),0x10),_0x51c8b5={..._0x18d752,'jti':_0x2b9399['substring'](0x0,_0x2b9399['length']-0x8)};return delete _0x51c8b5['vc'],_0x125d9b(_0x51c8b5)==_0x29d13c;}}}async function _0x2d53e9(){let _0x40a633=!0x0;try{const [_0x29381d,_0x2af952,_0x38c7e5]=_0x4a49b9['split']('.');return _0x2a0049(_0x29381d),await _0x2ab089(_0x29381d,_0x2af952,_0x38c7e5),_0x40a633;}catch{return!0x1;}function _0x2a0049(_0x48f455){const _0x469a3b=_0x2f2899(_0x48f455);_0x469a3b&&'ES256'==_0x469a3b['alg']||(_0x40a633=!0x1);}async function _0x2ab089(_0x4e0057,_0x476c0e,_0x41e0f8){const _0x423e54=window['Uint8Array']['from'](_0x1319a2(_0x41e0f8),_0x1def5f=>_0x1def5f['charCodeAt'](0x0)),_0x3b954c=new window['TextEncoder']()['encode'](_0x4e0057+'.'+_0x476c0e),_0x6af98=window['crypto']['subtle'];if(!_0x6af98)return;const _0x57865b=await _0x6af98['importKey']('jwk',_0x3c08a4,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x6af98['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x57865b,_0x423e54,_0x3b954c)||(_0x40a633=!0x1);}}function _0x2f2899(_0x5de768){return _0x5de768['startsWith']('ey')?JSON['parse'](_0x1319a2(_0x5de768)):null;}function _0x1319a2(_0x9329c8){return window['atob'](_0x9329c8['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x125d9b(_0x58bd64){let _0x34f2be=0x1505;function _0x1f0593(_0x397e8a){for(let _0x490ef7=0x0;_0x490ef7<_0x397e8a['length'];_0x490ef7++){const _0x204e82=_0x397e8a['charCodeAt'](_0x490ef7);_0x34f2be=(_0x34f2be<<0x5)+_0x34f2be+_0x204e82,_0x34f2be&=_0x34f2be;}}function _0x33a59f(_0x3d4a12){Array['isArray'](_0x3d4a12)?_0x3d4a12['forEach'](_0x33a59f):_0x3d4a12&&'object'==typeof _0x3d4a12?Object['entries'](_0x3d4a12)['sort']()['forEach'](([_0x5d4b10,_0x3a031e])=>{_0x1f0593(_0x5d4b10),_0x33a59f(_0x3a031e);}):_0x1f0593(window['String'](_0x3d4a12));}return _0x33a59f(_0x58bd64),_0x34f2be>>>0x0;}function _0x40fa71(_0x48ec62){return _0x48ec62['toString'](0x10)['padStart'](0x8,'0');}function _0xcf4165(_0x14d9e4){return _0x14d9e4['split']('')['reverse']()['join']('');}function _0x372e6a(){}_0x4f1b4b(await _0x3197bf());}_0x26fdf(_0x3b1461['editor']);}(this);}};const h=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],O=['color','font-family','font-size'],L={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x2fc643=>Number(_0x2fc643)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function E(_0x12cb7d){return h['includes'](_0x12cb7d);}function v(_0x280796){return Array['from'](_0x280796['getStyleNames']())['filter'](E);}function F(_0x160a56,_0x394fc2,_0x3cab73){const {spanStyles:_0x2c7911,stylesToBeHtmlElements:_0x59dbad}=K(_0x160a56,_0x3cab73);!function(_0x7bec56,_0x4e1e23,_0x6ffc8){for(const _0x249bb0 in _0x6ffc8)_0x6ffc8[_0x249bb0]['forEach'](([,_0x51eb6f])=>{const _0x17e5be=_0x4e1e23['createElement'](_0x51eb6f,[],_0x7bec56['getChildren']());_0x4e1e23['insertChild'](0x0,_0x17e5be,_0x7bec56);}),_0x4e1e23['removeStyle'](_0x249bb0,_0x7bec56);}(_0x160a56,_0x394fc2,_0x59dbad),function(_0x5aae7c,_0x366f0c,_0x5f3438){if(!Object['keys'](_0x5f3438)['length'])return;const _0x2b29ef=_0x366f0c['createElement']('span',[],_0x5aae7c['getChildren']());_0x366f0c['setStyle'](_0x5f3438,_0x2b29ef),_0x366f0c['insertChild'](0x0,_0x2b29ef,_0x5aae7c),_0x366f0c['removeStyle'](Object['keys'](_0x5f3438),_0x5aae7c);}(_0x160a56,_0x394fc2,_0x2c7911);}function P(_0x907714,_0x41be7b,_0x9370db){const {spanStyles:_0x96ef67}=K(_0x907714,_0x9370db),_0x2542c9=Object['keys'](_0x96ef67);if(!_0x2542c9['length'])return;let _0x538be6=!0x1;for(const _0x186d20 of _0x907714['getChildren']())if(_0x186d20['is']('element','span')){_0x538be6=!0x0;for(const [_0x213a08,_0x4b6415]of Object['entries'](_0x96ef67))_0x186d20['hasStyle'](_0x213a08)||_0x41be7b['setStyle']({[_0x213a08]:_0x4b6415},_0x186d20);}_0x538be6&&_0x41be7b['removeStyle'](_0x2542c9,_0x907714);}function K(_0x5eb6e5,_0x46e5ca){const _0x2baa28={},_0x2f4664={};return _0x46e5ca['forEach'](_0x1b51e4=>{const _0x769dcd=_0x5eb6e5['getStyle'](_0x1b51e4);if(_0x769dcd){if(function(_0x34fa65){return O['includes'](_0x34fa65);}(_0x1b51e4))_0x2baa28[_0x1b51e4]=_0x769dcd;else{if(function(_0xe1f258){return _0xe1f258 in L;}(_0x1b51e4)){const _0x2c0053=_0x769dcd['split']('\x20');L[_0x1b51e4]['forEach'](([_0xec95a0,_0x4add33])=>{for(const _0x5dd42b of _0x2c0053)('function'==typeof _0xec95a0&&_0xec95a0(_0x5dd42b)||_0xec95a0===_0x5dd42b)&&(_0x2f4664[_0x1b51e4]=[..._0x2f4664[_0x1b51e4]||[],[_0xec95a0,_0x4add33]]);});}}}}),{'spanStyles':_0x2baa28,'stylesToBeHtmlElements':_0x2f4664};}var b=class extends _0x3a6f7e{execute(_0x3f8416){const _0x184d94=new _0x30e6cf(_0x3f8416['content']['document']),_0x548e07=_0x184d94['createRangeIn'](_0x3f8416['content']),_0x4a53b7=new _0x370fc3(_0x184d94['document']['stylesProcessor']),_0x28c1db=[...new _0x2a34bc(_0x4a53b7)['blockElements'],'font'],_0x161cd0=_0x548e07['getItems']();for(const _0x2b1a80 of _0x161cd0)if(_0x2b1a80['is']('element')&&_0x28c1db['includes'](_0x2b1a80['name'])){if(_0x2b1a80['hasStyle']('mso-list')&&'none'!==_0x2b1a80['getStyle']('mso-list')){P(_0x2b1a80,_0x184d94,v(_0x2b1a80));continue;}F(_0x2b1a80,_0x184d94,v(_0x2b1a80));}}isActive(_0x186efb){return super['isActive'](_0x186efb)||u(_0x186efb);}},x=class extends _0x4eb687{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x2a2a47];}init(){const _0x1f56c7=this['editor'],_0x560485=_0x1f56c7['plugins']['get']('PasteFromOffice'),_0x2e9d3a=_0x1f56c7['editing']['view']['document'],_0x51920b=new b(_0x2e9d3a);_0x560485['registerNormalizer'](_0x51920b,_0x1c31f1['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x1e7d6c=[this['editor']];for(const _0x45340f of _0x1e7d6c){let _0x1577ed;for(const _0x1ea850 in _0x45340f){const _0x78c7d1=_0x1ea850,_0x352c21=_0x45340f[_0x78c7d1];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x352c21||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x352c21||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x352c21||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x352c21||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x352c21||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x352c21||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x352c21){delete _0x45340f[_0x78c7d1],_0x1577ed=_0x352c21,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x1577ed&&_0x45340f['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x1577ed&&_0x45340f['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x1577ed&&_0x45340f['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x1577ed&&_0x45340f['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x1577ed&&_0x45340f['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x1577ed&&_0x45340f['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x4eb687{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x2a2a47,p,x];}};export{k as PasteFromOfficeEnhanced};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-paste-from-office-enhanced",
3
- "version": "49.0.0-alpha.7",
3
+ "version": "49.0.0-alpha.8",
4
4
  "description": "Enhanced paste from Office feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -31,11 +31,11 @@
31
31
  "./package.json": "./package.json"
32
32
  },
33
33
  "dependencies": {
34
- "@ckeditor/ckeditor5-clipboard": "49.0.0-alpha.7",
35
- "@ckeditor/ckeditor5-core": "49.0.0-alpha.7",
36
- "@ckeditor/ckeditor5-engine": "49.0.0-alpha.7",
37
- "@ckeditor/ckeditor5-paste-from-office": "49.0.0-alpha.7",
38
- "@ckeditor/ckeditor5-utils": "49.0.0-alpha.7"
34
+ "@ckeditor/ckeditor5-clipboard": "49.0.0-alpha.8",
35
+ "@ckeditor/ckeditor5-core": "49.0.0-alpha.8",
36
+ "@ckeditor/ckeditor5-engine": "49.0.0-alpha.8",
37
+ "@ckeditor/ckeditor5-paste-from-office": "49.0.0-alpha.8",
38
+ "@ckeditor/ckeditor5-utils": "49.0.0-alpha.8"
39
39
  },
40
40
  "files": [
41
41
  "dist",