@ckeditor/ckeditor5-paste-from-office-enhanced 48.5.0-alpha.3 → 48.5.0-alpha.5

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 _0x2c4808}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x4f3ad0,PasteFromOfficeMSWordNormalizer as _0x2ec24d}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x4a4895,uid as _0x27a12c}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x3d6fb1,ViewDomConverter as _0x142dba,ViewUpcastWriter as _0x5307d4}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x230fb9){return f['test'](_0x230fb9);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x12d283,_0x35d81e){const _0x359166=new Map();for(const [_0x2c6665,_0xf679a6]of _0x35d81e){if(!_0x2c6665['tagName']&&!_0x2c6665['className'])continue;const _0xfecb3=!_0x2c6665['tagName']||_0x12d283['name']===_0x2c6665['tagName'],_0x2a8e87=!_0x2c6665['className']||_0x12d283['hasClass'](_0x2c6665['className']);_0xfecb3&&_0x2a8e87&&_0x359166['set'](_0x2c6665,_0xf679a6);}return _0x359166;}function m(_0xaae47){const _0x1592fb={};for(let _0x54e8fe=0x0;_0x54e8fe<_0xaae47['length'];_0x54e8fe++){const _0x4da712=_0xaae47[_0x54e8fe],_0x41664f=_0xaae47['getPropertyValue'](_0x4da712);'initial'!==_0x41664f&&(_0x1592fb[_0x4da712]=_0x41664f);}return _0x1592fb;}function w(_0x17763a){const _0x5d461e=_0x17763a['split'](',')['map'](_0x700907=>_0x700907['trim']()),_0x50a3d9=[];for(const _0x35c129 of _0x5d461e){const _0x2b311c=l['exec'](_0x35c129);_0x2b311c&&_0x50a3d9['push'](_0x2b311c['groups']);}return _0x50a3d9;}function y(_0x1574c0){const _0x1c1c04={};for(const _0x349460 of _0x1574c0)Object['assign'](_0x1c1c04,_0x349460);return _0x1c1c04;}var g=class extends _0x2ec24d{execute(_0x49872d){const {styles:_0x9d1527,stylesString:_0x40c6c4}=_0x49872d['extraContent'],_0x265c2f=new _0x5307d4(_0x49872d['content']['document']),_0x1306f6=_0x265c2f['createRangeIn'](_0x49872d['content']),_0x254354=function(_0x3a44f2){const _0x3ca260={};for(const _0x12e780 of _0x3a44f2)for(const _0x1130d0 of _0x12e780['cssRules'])if(_0x1130d0 instanceof CSSStyleRule){const _0x126497=m(_0x1130d0['style']);_0x3ca260[_0x1130d0['selectorText']]=Object['assign']({},_0x3ca260[_0x1130d0['selectorText']]||{},_0x126497);}return _0x3ca260;}(_0x9d1527),_0x270042=function(_0x1ed9f0){const _0x58cb3d=new Map();for(const _0x510176 in _0x1ed9f0){const _0x223735=w(_0x510176),_0x5187bf=_0x1ed9f0[_0x510176];for(const _0x44992 of _0x223735)_0x58cb3d['set'](_0x44992,_0x5187bf);}return _0x58cb3d;}(_0x254354),_0x53f83f=function(_0x583b26){const _0x183ee6={},_0x1e4f4=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x5c1cb5=/\.(?<className>[\w-]+)/g;let _0x52d20f;for(;null!==(_0x52d20f=_0x1e4f4['exec'](_0x583b26));){const {selector:_0x381da1,color:_0x2ba7f4,patternType:_0x31236a}=_0x52d20f['groups'];if('auto'!==_0x2ba7f4['toLowerCase']()&&'none'!==_0x31236a['toLowerCase']()&&'auto'!==_0x31236a['toLowerCase']()){for(const _0x13ee87 of _0x381da1['matchAll'](_0x5c1cb5))_0x183ee6[_0x13ee87['groups']['className']]=_0x2ba7f4;}}return _0x183ee6;}(_0x40c6c4);for(const _0x20c3a7 of _0x1306f6){if('elementStart'!==_0x20c3a7['type'])continue;const _0x368c3c=_0x20c3a7['item'],_0x66a842=d(_0x368c3c,_0x270042),_0x128a9d=_0x66a842['size']?y(Array['from'](_0x66a842['values']())):{};if(!('background-color'in _0x128a9d)&&!('background'in _0x128a9d)){for(const [_0x41f388,_0x4011ac]of Object['entries'](_0x53f83f))if(_0x368c3c['hasClass'](_0x41f388)){_0x128a9d['background-color']=_0x4011ac;break;}}for(const _0x4c0cdf in _0x128a9d)_0x368c3c['hasStyle'](_0x4c0cdf)||_0x265c2f['setStyle'](_0x4c0cdf,_0x128a9d[_0x4c0cdf],_0x368c3c);}}isActive(_0x1f70da){return super['isActive'](_0x1f70da)||u(_0x1f70da);}},p=class extends _0x2c4808{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x4f3ad0];}init(){const _0x110ee9=this['editor'],_0x16b001=_0x110ee9['plugins']['get']('PasteFromOffice'),_0x136a0a=_0x110ee9['editing']['view']['document'],_0xe57c80=new g(_0x136a0a);_0x16b001['registerNormalizer'](_0xe57c80,_0x4a4895['high']+0xb);}afterInit(){!async function(_0x562da2){const _0x2264a5='umgl1F4YkAVEtv0TcN6nKiXCrhODd2PaGMSIJbspyz9QLBoWxUfj5HZew738Rq',_0x4c1a43=0x79410,_0x4842d1={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x565f9a(_0x3bf1d4){const _0x1cfa4a=new window['Promise'](_0x4f253e=>{_0x3bf1d4['once']('ready',_0x4f253e);}),_0x50c3f8=window['Date']['now'](),_0x57e315=_0x3bf1d4['config']['get']('licenseKey');async function _0xe226b2(){let _0x1f5f05,_0x164e23=null,_0x4da3ab=null;try{return'GPL'==_0x57e315?'NotAllowed':(_0x1f5f05=_0xc82d32(),_0x1f5f05?(_0x1f5f05['usageEndpoint']&&(_0x4da3ab=_0x20b421(_0x1f5f05['usageEndpoint'],_0x1f5f05['jti'])),await _0x2dea39()?_0x1b1efb()?_0x419bf9()?'Expired':_0x78d341()?('evaluation'==_0x1f5f05['licenseType']&&(_0x164e23=_0x414adb('EvaluationLimit')),await _0x3ce14f()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x419bf9(){const _0x28305f=['evaluation','trial']['includes'](_0x1f5f05['licenseType'])?_0x50c3f8/0x3e8:0xe10*_0x4c1a43;return _0x1f5f05['exp']<_0x28305f;}function _0x1b1efb(){const _0x491d12=_0x1f5f05['features'];return!!_0x491d12&&(!!_0x491d12['includes']('*')||(!!_0x491d12['includes']('POE')||(!!_0x491d12['includes']('PP')||!(!_0x491d12['includes']('TRILIUM')||!_0x4b070f()))));}function _0x78d341(){const _0x259af6=_0x1f5f05['licensedHosts'];if(!_0x259af6||0x0==_0x259af6['length'])return!0x0;const {hostname:_0x318937}=new URL(window['location']['href']);if(_0x259af6['includes'](_0x318937))return!0x0;const _0x5a2c3b=_0x318937['split']('.');return _0x259af6['filter'](_0x7cd582=>_0x7cd582['includes']('*'))['map'](_0x218e4b=>_0x218e4b['split']('.'))['filter'](_0x288e66=>_0x288e66['length']<=_0x5a2c3b['length'])['map'](_0x1ad39c=>Array(_0x5a2c3b['length']-_0x1ad39c['length'])['fill']('*'===_0x1ad39c[0x0]?'*':'')['concat'](_0x1ad39c))['some'](_0xdc3e91=>_0x5a2c3b['every']((_0x5a1897,_0x35919a)=>_0xdc3e91[_0x35919a]===_0x5a1897||'*'===_0xdc3e91[_0x35919a]));}function _0x3ce14f(){return _0x164e23&&_0x4da3ab?new window['Promise']((_0x382900,_0x2f2296)=>{_0x164e23['then'](_0x382900,_0x2f2296),_0x4da3ab['then'](_0x3be1dd=>{'Valid'!=_0x3be1dd&&_0x382900(_0x3be1dd);},_0x2f2296);}):_0x164e23||_0x4da3ab||'Valid';}}function _0x20b421(_0x28e4f2,_0x197abb){return new window['Promise'](_0x1bccb0=>{if(_0xb6bdd9())return _0x1bccb0('Valid');_0x25a054(),_0x3bf1d4['decorate']('_sendUsageRequest');let _0x174bf4=!0x1;const _0x18abd0=_0x27a12c();function _0x41f281(_0x50b8ec){return!!_0x50b8ec&&('object'==typeof _0x50b8ec||'function'==typeof _0x50b8ec)&&'function'==typeof _0x50b8ec['then']&&'function'==typeof _0x50b8ec['catch'];}function _0x22ea68(_0x1020d4){_0x15de70(_0x1020d4)['then'](_0x2df96c=>_0x2df96c&&'ok'==_0x2df96c['status']?_0x32f307(_0x5691c1(_0x18abd0+_0x197abb))!=_0x2df96c['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x325685=>(_0x5705cc(),_0x325685),()=>{const _0xd26d6b=_0x8c3bf2();return null==_0xd26d6b?(_0x5705cc(),'Valid'):_0x50c3f8-_0xd26d6b>0x240c8400?'UsageLimit':'Valid';})['then'](_0x1bccb0)['catch'](()=>{_0x1bccb0('UsageLimit');});const _0x5e9420=0x36ee80;function _0x5705cc(){const _0x554626='llct-'+_0x32f307(_0x5691c1(_0x28e4f2)),_0x312314=_0x559c84(_0x32f307(window['Math']['ceil'](_0x50c3f8/_0x5e9420)));window['localStorage']['setItem'](_0x554626,_0x312314);}function _0x8c3bf2(){const _0x18665a='llct-'+_0x32f307(_0x5691c1(_0x28e4f2)),_0x133071=window['localStorage']['getItem'](_0x18665a);return _0x133071?window['parseInt'](_0x559c84(_0x133071),0x10)*_0x5e9420:null;}function _0x15de70(_0xc404a0){return new window['Promise']((_0x4b5c6f,_0xd3ec09)=>{_0xc404a0['then'](_0x4b5c6f,_0xd3ec09),window['setTimeout'](_0xd3ec09,0x1d4c0);});}}_0x3bf1d4['on']('_sendUsageRequest',(_0x4c2339,_0x1e3a94)=>{if(_0x1e3a94[0x0]!=_0x28e4f2)return _0x1bccb0('UsageLimit');_0x1e3a94[0x1]={..._0x1e3a94[0x1],'requestId':_0x18abd0};},{'priority':'high'}),_0x3bf1d4['on']('_sendUsageRequest',_0x5219ac=>{_0x41f281(_0x5219ac['return'])&&(_0x174bf4=!0x0,_0x22ea68(_0x5219ac['return']));},{'priority':'low'}),_0x1cfa4a['then'](()=>{_0x174bf4||_0x1bccb0('UsageLimit');});});function _0xb6bdd9(){return'auto'==_0x3bf1d4['editing']['view']['_overlayModeHint'];}function _0x25a054(){_0x3bf1d4['editing']['view']['_overlayModeHint']='auto';}}function _0x414adb(_0x3d50e0){const _0x157155=[new window['Promise'](_0x558735=>setTimeout(_0x558735,0x93ecc)),_0x1cfa4a['then'](()=>new window['Promise'](_0x5b7187=>{let _0x3d0285=0x0;_0x3bf1d4['model']['on']('applyOperation',(_0x3bf7f5,_0x1f059d)=>{_0x1f059d[0x0]['isDocumentOperation']&&_0x3d0285++,0x5e8==_0x3d0285&&(_0x5b7187(),_0x3bf7f5['off']());});}))];return window['Promise']['race'](_0x157155)['then'](()=>_0x3d50e0);}async function _0x1bcfbb(){await _0x1cfa4a,_0x3bf1d4['model']['change']=_0x43ae14,_0x3bf1d4['model']['enqueueChange']=_0x43ae14,_0x3bf1d4['enableReadOnlyMode']('model');}function _0x4b070f(){return window['glob']&&window['glob']['triliumVersion'];}function _0x298ea3(_0xf4eb48){const _0x42cbfe=_0x213b6e();_0x3bf1d4[_0x42cbfe]='pasteFromOfficeEnhancedLicenseKey'+_0xf4eb48,'Valid'!=_0xf4eb48&&_0x1bcfbb();}function _0x213b6e(){const _0x54833c=window['String'](window['performance']['now']())['replace']('.','');let _0x237b3b='u';for(let _0x167930=0x0;_0x167930<_0x54833c['length'];_0x167930+=0x2){let _0x4e52a8=window['parseInt'](_0x54833c['substring'](_0x167930,_0x167930+0x2));_0x4e52a8>=0x3e&&(_0x4e52a8-=0x3e),_0x237b3b+=_0x2264a5[_0x4e52a8];}return _0x237b3b;}function _0xc82d32(){const _0x14df0c=_0x57e315['split']('.');if(0x3!=_0x14df0c['length'])return null;return _0x13573c(_0x14df0c[0x1]);function _0x13573c(_0x36888e){const _0x360026=_0x23b57c(_0x36888e);return _0x360026&&_0x29d238()?_0x360026:null;function _0x29d238(){const _0x1183a6=_0x360026['jti'],_0x45ba29=window['parseInt'](_0x1183a6['substring'](_0x1183a6['length']-0x8),0x10),_0x2773d8={..._0x360026,'jti':_0x1183a6['substring'](0x0,_0x1183a6['length']-0x8)};return delete _0x2773d8['vc'],_0x5691c1(_0x2773d8)==_0x45ba29;}}}async function _0x2dea39(){let _0x584247=!0x0;try{const [_0x5e68df,_0x192b92,_0x54c589]=_0x57e315['split']('.');return _0x2e4f3c(_0x5e68df),await _0x4fa8e5(_0x5e68df,_0x192b92,_0x54c589),_0x584247;}catch{return!0x1;}function _0x2e4f3c(_0x28b16){const _0x2eb14c=_0x23b57c(_0x28b16);_0x2eb14c&&'ES256'==_0x2eb14c['alg']||(_0x584247=!0x1);}async function _0x4fa8e5(_0x5632ac,_0x2b9455,_0x128f05){const _0x52dbbd=window['Uint8Array']['from'](_0x2e1cd2(_0x128f05),_0x207b3c=>_0x207b3c['charCodeAt'](0x0)),_0x1b57b5=new window['TextEncoder']()['encode'](_0x5632ac+'.'+_0x2b9455),_0x5a6e2e=window['crypto']['subtle'];if(!_0x5a6e2e)return;const _0x51c1dc=await _0x5a6e2e['importKey']('jwk',_0x4842d1,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5a6e2e['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x51c1dc,_0x52dbbd,_0x1b57b5)||(_0x584247=!0x1);}}function _0x23b57c(_0x908cef){return _0x908cef['startsWith']('ey')?JSON['parse'](_0x2e1cd2(_0x908cef)):null;}function _0x2e1cd2(_0x573686){return window['atob'](_0x573686['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x5691c1(_0x1f9b7e){let _0x1bab0c=0x1505;function _0x1197bf(_0x5a7a9a){for(let _0x10ee26=0x0;_0x10ee26<_0x5a7a9a['length'];_0x10ee26++){const _0x41bd09=_0x5a7a9a['charCodeAt'](_0x10ee26);_0x1bab0c=(_0x1bab0c<<0x5)+_0x1bab0c+_0x41bd09,_0x1bab0c&=_0x1bab0c;}}function _0x4db558(_0x51ff46){Array['isArray'](_0x51ff46)?_0x51ff46['forEach'](_0x4db558):_0x51ff46&&'object'==typeof _0x51ff46?Object['entries'](_0x51ff46)['sort']()['forEach'](([_0x4cce31,_0x368ac3])=>{_0x1197bf(_0x4cce31),_0x4db558(_0x368ac3);}):_0x1197bf(window['String'](_0x51ff46));}return _0x4db558(_0x1f9b7e),_0x1bab0c>>>0x0;}function _0x32f307(_0x47c554){return _0x47c554['toString'](0x10)['padStart'](0x8,'0');}function _0x559c84(_0x325c0e){return _0x325c0e['split']('')['reverse']()['join']('');}function _0x43ae14(){}_0x298ea3(await _0xe226b2());}_0x565f9a(_0x562da2['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'],[_0x4ffb29=>Number(_0x4ffb29)>=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(_0xfac2e7){return h['includes'](_0xfac2e7);}function v(_0x425f90){return Array['from'](_0x425f90['getStyleNames']())['filter'](E);}function F(_0x1baf56,_0x1f93c8,_0x4f36e2){const {spanStyles:_0x114fcf,stylesToBeHtmlElements:_0x18566d}=K(_0x1baf56,_0x4f36e2);!function(_0x312dca,_0xfdc7ed,_0x55a4fc){for(const _0x52f6c2 in _0x55a4fc)_0x55a4fc[_0x52f6c2]['forEach'](([,_0x3a9c52])=>{const _0x5d71b0=_0xfdc7ed['createElement'](_0x3a9c52,[],_0x312dca['getChildren']());_0xfdc7ed['insertChild'](0x0,_0x5d71b0,_0x312dca);}),_0xfdc7ed['removeStyle'](_0x52f6c2,_0x312dca);}(_0x1baf56,_0x1f93c8,_0x18566d),function(_0x16b49d,_0x2aeca8,_0x49e8b4){if(!Object['keys'](_0x49e8b4)['length'])return;const _0x3bcf4d=_0x2aeca8['createElement']('span',[],_0x16b49d['getChildren']());_0x2aeca8['setStyle'](_0x49e8b4,_0x3bcf4d),_0x2aeca8['insertChild'](0x0,_0x3bcf4d,_0x16b49d),_0x2aeca8['removeStyle'](Object['keys'](_0x49e8b4),_0x16b49d);}(_0x1baf56,_0x1f93c8,_0x114fcf);}function P(_0x5489ee,_0x3d5373,_0x4056ea){const {spanStyles:_0x207dcc}=K(_0x5489ee,_0x4056ea),_0x331362=Object['keys'](_0x207dcc);if(!_0x331362['length'])return;let _0xed6fc8=!0x1;for(const _0x4247aa of _0x5489ee['getChildren']())if(_0x4247aa['is']('element','span')){_0xed6fc8=!0x0;for(const [_0x2a3b87,_0x363bdc]of Object['entries'](_0x207dcc))_0x4247aa['hasStyle'](_0x2a3b87)||_0x3d5373['setStyle']({[_0x2a3b87]:_0x363bdc},_0x4247aa);}_0xed6fc8&&_0x3d5373['removeStyle'](_0x331362,_0x5489ee);}function K(_0x52f22a,_0x4bfa7d){const _0x31a9ee={},_0xb01b08={};return _0x4bfa7d['forEach'](_0x1a5e79=>{const _0x5a89bc=_0x52f22a['getStyle'](_0x1a5e79);if(_0x5a89bc){if(function(_0x46b33c){return O['includes'](_0x46b33c);}(_0x1a5e79))_0x31a9ee[_0x1a5e79]=_0x5a89bc;else{if(function(_0x1db92b){return _0x1db92b in L;}(_0x1a5e79)){const _0x1d118a=_0x5a89bc['split']('\x20');L[_0x1a5e79]['forEach'](([_0x270e4a,_0x1832ec])=>{for(const _0x34bb62 of _0x1d118a)('function'==typeof _0x270e4a&&_0x270e4a(_0x34bb62)||_0x270e4a===_0x34bb62)&&(_0xb01b08[_0x1a5e79]=[..._0xb01b08[_0x1a5e79]||[],[_0x270e4a,_0x1832ec]]);});}}}}),{'spanStyles':_0x31a9ee,'stylesToBeHtmlElements':_0xb01b08};}var b=class extends _0x2ec24d{execute(_0x1a68fd){const _0x31bce7=new _0x5307d4(_0x1a68fd['content']['document']),_0x125e69=_0x31bce7['createRangeIn'](_0x1a68fd['content']),_0x19b766=new _0x3d6fb1(_0x31bce7['document']['stylesProcessor']),_0x1ca0d5=[...new _0x142dba(_0x19b766)['blockElements'],'font'],_0x50ae3b=_0x125e69['getItems']();for(const _0x5e5251 of _0x50ae3b)if(_0x5e5251['is']('element')&&_0x1ca0d5['includes'](_0x5e5251['name'])){if(_0x5e5251['hasStyle']('mso-list')&&'none'!==_0x5e5251['getStyle']('mso-list')){P(_0x5e5251,_0x31bce7,v(_0x5e5251));continue;}F(_0x5e5251,_0x31bce7,v(_0x5e5251));}}isActive(_0x522f52){return super['isActive'](_0x522f52)||u(_0x522f52);}},x=class extends _0x2c4808{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x4f3ad0];}init(){const _0x4c9795=this['editor'],_0x5e4a10=_0x4c9795['plugins']['get']('PasteFromOffice'),_0x248678=_0x4c9795['editing']['view']['document'],_0x239679=new b(_0x248678);_0x5e4a10['registerNormalizer'](_0x239679,_0x4a4895['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x48b79d=[this['editor']];for(const _0x55d951 of _0x48b79d){let _0x253f81;for(const _0x1127c4 in _0x55d951){const _0x17f0fc=_0x1127c4,_0x4dc42a=_0x55d951[_0x17f0fc];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x4dc42a||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x4dc42a||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x4dc42a||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x4dc42a||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x4dc42a||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x4dc42a||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x4dc42a){delete _0x55d951[_0x17f0fc],_0x253f81=_0x4dc42a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x253f81&&_0x55d951['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x253f81&&_0x55d951['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x253f81&&_0x55d951['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x253f81&&_0x55d951['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x253f81&&_0x55d951['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x253f81&&_0x55d951['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x2c4808{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x4f3ad0,p,x];}};export{k as PasteFromOfficeEnhanced};
23
+ import{Plugin as _0x598479}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x3216f0,PasteFromOfficeMSWordNormalizer as _0x4c9f46}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x25561a,uid as _0xb9494e}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x424892,ViewDomConverter as _0x1c34d6,ViewUpcastWriter as _0x5bb052}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x2ee0c5){return f['test'](_0x2ee0c5);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x2538b8,_0x2d4744){const _0x5a06be=new Map();for(const [_0x29921e,_0x253b4c]of _0x2d4744){if(!_0x29921e['tagName']&&!_0x29921e['className'])continue;const _0x4b3ded=!_0x29921e['tagName']||_0x2538b8['name']===_0x29921e['tagName'],_0x4d3b44=!_0x29921e['className']||_0x2538b8['hasClass'](_0x29921e['className']);_0x4b3ded&&_0x4d3b44&&_0x5a06be['set'](_0x29921e,_0x253b4c);}return _0x5a06be;}function m(_0x29c0b3){const _0x141b6a={};for(let _0x573797=0x0;_0x573797<_0x29c0b3['length'];_0x573797++){const _0x4f2445=_0x29c0b3[_0x573797],_0x182d7f=_0x29c0b3['getPropertyValue'](_0x4f2445);'initial'!==_0x182d7f&&(_0x141b6a[_0x4f2445]=_0x182d7f);}return _0x141b6a;}function w(_0x3e33a4){const _0x1f22a1=_0x3e33a4['split'](',')['map'](_0x203c5a=>_0x203c5a['trim']()),_0x40ca31=[];for(const _0x536a42 of _0x1f22a1){const _0x418c49=l['exec'](_0x536a42);_0x418c49&&_0x40ca31['push'](_0x418c49['groups']);}return _0x40ca31;}function y(_0xed9a86){const _0x455fbd={};for(const _0x33b900 of _0xed9a86)Object['assign'](_0x455fbd,_0x33b900);return _0x455fbd;}var g=class extends _0x4c9f46{execute(_0x3adbf4){const {styles:_0x21bd4d,stylesString:_0x4f6837}=_0x3adbf4['extraContent'],_0x5378c8=new _0x5bb052(_0x3adbf4['content']['document']),_0x533603=_0x5378c8['createRangeIn'](_0x3adbf4['content']),_0x235391=function(_0x395042){const _0x5b3f17={};for(const _0x43c52a of _0x395042)for(const _0xdfb95b of _0x43c52a['cssRules'])if(_0xdfb95b instanceof CSSStyleRule){const _0x4e71fd=m(_0xdfb95b['style']);_0x5b3f17[_0xdfb95b['selectorText']]=Object['assign']({},_0x5b3f17[_0xdfb95b['selectorText']]||{},_0x4e71fd);}return _0x5b3f17;}(_0x21bd4d),_0x3db612=function(_0x1f3385){const _0x304551=new Map();for(const _0x5b7315 in _0x1f3385){const _0x475a3a=w(_0x5b7315),_0x4ac5ca=_0x1f3385[_0x5b7315];for(const _0x210c34 of _0x475a3a)_0x304551['set'](_0x210c34,_0x4ac5ca);}return _0x304551;}(_0x235391),_0x1ed8e2=function(_0x49bbe0){const _0x177dbe={},_0x3eb800=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x4633cb=/\.(?<className>[\w-]+)/g;let _0x1515fb;for(;null!==(_0x1515fb=_0x3eb800['exec'](_0x49bbe0));){const {selector:_0x5d34e1,color:_0x11cd94,patternType:_0x482554}=_0x1515fb['groups'];if('auto'!==_0x11cd94['toLowerCase']()&&'none'!==_0x482554['toLowerCase']()&&'auto'!==_0x482554['toLowerCase']()){for(const _0x4910ab of _0x5d34e1['matchAll'](_0x4633cb))_0x177dbe[_0x4910ab['groups']['className']]=_0x11cd94;}}return _0x177dbe;}(_0x4f6837);for(const _0x589385 of _0x533603){if('elementStart'!==_0x589385['type'])continue;const _0x1af8d8=_0x589385['item'],_0x44348f=d(_0x1af8d8,_0x3db612),_0xc79d3a=_0x44348f['size']?y(Array['from'](_0x44348f['values']())):{};if(!('background-color'in _0xc79d3a)&&!('background'in _0xc79d3a)){for(const [_0x563c83,_0x28c4f2]of Object['entries'](_0x1ed8e2))if(_0x1af8d8['hasClass'](_0x563c83)){_0xc79d3a['background-color']=_0x28c4f2;break;}}for(const _0x60da4c in _0xc79d3a)_0x1af8d8['hasStyle'](_0x60da4c)||_0x5378c8['setStyle'](_0x60da4c,_0xc79d3a[_0x60da4c],_0x1af8d8);}}isActive(_0x234244){return super['isActive'](_0x234244)||u(_0x234244);}},p=class extends _0x598479{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x3216f0];}init(){const _0x381d1d=this['editor'],_0x38e298=_0x381d1d['plugins']['get']('PasteFromOffice'),_0xcb989f=_0x381d1d['editing']['view']['document'],_0x1d1739=new g(_0xcb989f);_0x38e298['registerNormalizer'](_0x1d1739,_0x25561a['high']+0xb);}afterInit(){!async function(_0x431397){const _0x2c4cf0='umgl1F4YkAVEtv0TcN6nKiXCrhODd2PaGMSIJbspyz9QLBoWxUfj5HZew738Rq',_0x5c9edf=0x79440,_0x354c93={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x17b24f(_0x10e075){const _0x46792e=new window['Promise'](_0x53897e=>{_0x10e075['once']('ready',_0x53897e);}),_0xf7241c=window['Date']['now'](),_0x196b1d=_0x10e075['config']['get']('licenseKey');async function _0x53e2a6(){let _0x32a36b,_0xdec82f=null,_0x4d2d6a=null;try{return'GPL'==_0x196b1d?'NotAllowed':(_0x32a36b=_0x227a7f(),_0x32a36b?(_0x32a36b['usageEndpoint']&&(_0x4d2d6a=_0x97bd69(_0x32a36b['usageEndpoint'],_0x32a36b['jti'])),await _0x812094()?_0x34d157()?_0x151615()?'Expired':_0x2d1d30()?('evaluation'==_0x32a36b['licenseType']&&(_0xdec82f=_0x4fdc7b('EvaluationLimit')),await _0x17ceea()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x151615(){const _0x200661=['evaluation','trial']['includes'](_0x32a36b['licenseType'])?_0xf7241c/0x3e8:0xe10*_0x5c9edf;return _0x32a36b['exp']<_0x200661;}function _0x34d157(){const _0x55fd49=_0x32a36b['features'];return!!_0x55fd49&&(!!_0x55fd49['includes']('*')||(!!_0x55fd49['includes']('POE')||(!!_0x55fd49['includes']('PP')||!(!_0x55fd49['includes']('TRILIUM')||!_0x5f14c6()))));}function _0x2d1d30(){const _0x2034b6=_0x32a36b['licensedHosts'];if(!_0x2034b6||0x0==_0x2034b6['length'])return!0x0;const {hostname:_0x34503f}=new URL(window['location']['href']);if(_0x2034b6['includes'](_0x34503f))return!0x0;const _0x45743c=_0x34503f['split']('.');return _0x2034b6['filter'](_0x142432=>_0x142432['includes']('*'))['map'](_0x1eca72=>_0x1eca72['split']('.'))['filter'](_0x19036d=>_0x19036d['length']<=_0x45743c['length'])['map'](_0x330ce3=>Array(_0x45743c['length']-_0x330ce3['length'])['fill']('*'===_0x330ce3[0x0]?'*':'')['concat'](_0x330ce3))['some'](_0x19c4aa=>_0x45743c['every']((_0x4be99d,_0x3a7bf3)=>_0x19c4aa[_0x3a7bf3]===_0x4be99d||'*'===_0x19c4aa[_0x3a7bf3]));}function _0x17ceea(){return _0xdec82f&&_0x4d2d6a?new window['Promise']((_0x4d62c5,_0x6ca0c4)=>{_0xdec82f['then'](_0x4d62c5,_0x6ca0c4),_0x4d2d6a['then'](_0x9ff79d=>{'Valid'!=_0x9ff79d&&_0x4d62c5(_0x9ff79d);},_0x6ca0c4);}):_0xdec82f||_0x4d2d6a||'Valid';}}function _0x97bd69(_0x5221cc,_0x5a8dc0){return new window['Promise'](_0x3af418=>{if(_0x21dc9f())return _0x3af418('Valid');_0x2af6fa(),_0x10e075['decorate']('_sendUsageRequest');let _0x3ae85b=!0x1;const _0x2d8d40=_0xb9494e();function _0x18ae3e(_0x52f943){return!!_0x52f943&&('object'==typeof _0x52f943||'function'==typeof _0x52f943)&&'function'==typeof _0x52f943['then']&&'function'==typeof _0x52f943['catch'];}function _0xd0ec7e(_0x53a954){_0x35b9ac(_0x53a954)['then'](_0x2a82cc=>_0x2a82cc&&'ok'==_0x2a82cc['status']?_0x414e80(_0x1c2e27(_0x2d8d40+_0x5a8dc0))!=_0x2a82cc['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x25529a=>(_0x11a4f2(),_0x25529a),()=>{const _0xf2ca9a=_0x575862();return null==_0xf2ca9a?(_0x11a4f2(),'Valid'):_0xf7241c-_0xf2ca9a>0x240c8400?'UsageLimit':'Valid';})['then'](_0x3af418)['catch'](()=>{_0x3af418('UsageLimit');});const _0x3d4df4=0x36ee80;function _0x11a4f2(){const _0x403c8d='llct-'+_0x414e80(_0x1c2e27(_0x5221cc)),_0x2790b1=_0x511fcb(_0x414e80(window['Math']['ceil'](_0xf7241c/_0x3d4df4)));window['localStorage']['setItem'](_0x403c8d,_0x2790b1);}function _0x575862(){const _0x494154='llct-'+_0x414e80(_0x1c2e27(_0x5221cc)),_0x251aae=window['localStorage']['getItem'](_0x494154);return _0x251aae?window['parseInt'](_0x511fcb(_0x251aae),0x10)*_0x3d4df4:null;}function _0x35b9ac(_0x40d78b){return new window['Promise']((_0x13a249,_0x23a224)=>{_0x40d78b['then'](_0x13a249,_0x23a224),window['setTimeout'](_0x23a224,0x1d4c0);});}}_0x10e075['on']('_sendUsageRequest',(_0x17c3f8,_0x268ed2)=>{if(_0x268ed2[0x0]!=_0x5221cc)return _0x3af418('UsageLimit');_0x268ed2[0x1]={..._0x268ed2[0x1],'requestId':_0x2d8d40};},{'priority':'high'}),_0x10e075['on']('_sendUsageRequest',_0x3f91d6=>{_0x18ae3e(_0x3f91d6['return'])&&(_0x3ae85b=!0x0,_0xd0ec7e(_0x3f91d6['return']));},{'priority':'low'}),_0x46792e['then'](()=>{_0x3ae85b||_0x3af418('UsageLimit');});});function _0x21dc9f(){return'auto'==_0x10e075['editing']['view']['_overlayModeHint'];}function _0x2af6fa(){_0x10e075['editing']['view']['_overlayModeHint']='auto';}}function _0x4fdc7b(_0x405394){const _0x47df3c=[new window['Promise'](_0x5b4f22=>setTimeout(_0x5b4f22,0x93ecc)),_0x46792e['then'](()=>new window['Promise'](_0x2af60f=>{let _0x460f10=0x0;_0x10e075['model']['on']('applyOperation',(_0x5d721e,_0x2fdb26)=>{_0x2fdb26[0x0]['isDocumentOperation']&&_0x460f10++,0x5e8==_0x460f10&&(_0x2af60f(),_0x5d721e['off']());});}))];return window['Promise']['race'](_0x47df3c)['then'](()=>_0x405394);}async function _0x25a3f2(){await _0x46792e,_0x10e075['model']['change']=_0x447bab,_0x10e075['model']['enqueueChange']=_0x447bab,_0x10e075['enableReadOnlyMode']('model');}function _0x5f14c6(){return window['glob']&&window['glob']['triliumVersion'];}function _0x2a2b15(_0x4df4d0){const _0xff5d0c=_0x9b47c7();_0x10e075[_0xff5d0c]='pasteFromOfficeEnhancedLicenseKey'+_0x4df4d0,'Valid'!=_0x4df4d0&&_0x25a3f2();}function _0x9b47c7(){const _0x40726f=window['String'](window['performance']['now']())['replace']('.','');let _0x26cfaa='u';for(let _0x36d559=0x0;_0x36d559<_0x40726f['length'];_0x36d559+=0x2){let _0x5a5132=window['parseInt'](_0x40726f['substring'](_0x36d559,_0x36d559+0x2));_0x5a5132>=0x3e&&(_0x5a5132-=0x3e),_0x26cfaa+=_0x2c4cf0[_0x5a5132];}return _0x26cfaa;}function _0x227a7f(){const _0x3a278=_0x196b1d['split']('.');if(0x3!=_0x3a278['length'])return null;return _0x5e9d98(_0x3a278[0x1]);function _0x5e9d98(_0x179505){const _0x43653f=_0x1feff8(_0x179505);return _0x43653f&&_0x1a25af()?_0x43653f:null;function _0x1a25af(){const _0x5879f7=_0x43653f['jti'],_0xe267fe=window['parseInt'](_0x5879f7['substring'](_0x5879f7['length']-0x8),0x10),_0x48c6dc={..._0x43653f,'jti':_0x5879f7['substring'](0x0,_0x5879f7['length']-0x8)};return delete _0x48c6dc['vc'],_0x1c2e27(_0x48c6dc)==_0xe267fe;}}}async function _0x812094(){let _0xc5724a=!0x0;try{const [_0xd7fe,_0x578d02,_0x5a83f3]=_0x196b1d['split']('.');return _0x3f705f(_0xd7fe),await _0x47ce25(_0xd7fe,_0x578d02,_0x5a83f3),_0xc5724a;}catch{return!0x1;}function _0x3f705f(_0x3155f7){const _0x21e8ec=_0x1feff8(_0x3155f7);_0x21e8ec&&'ES256'==_0x21e8ec['alg']||(_0xc5724a=!0x1);}async function _0x47ce25(_0x2d032f,_0x1b0c49,_0x3c7c6f){const _0x2f2f81=window['Uint8Array']['from'](_0x3fe95d(_0x3c7c6f),_0x48dace=>_0x48dace['charCodeAt'](0x0)),_0x381d92=new window['TextEncoder']()['encode'](_0x2d032f+'.'+_0x1b0c49),_0x2d1595=window['crypto']['subtle'];if(!_0x2d1595)return;const _0x257672=await _0x2d1595['importKey']('jwk',_0x354c93,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x2d1595['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x257672,_0x2f2f81,_0x381d92)||(_0xc5724a=!0x1);}}function _0x1feff8(_0xae4628){return _0xae4628['startsWith']('ey')?JSON['parse'](_0x3fe95d(_0xae4628)):null;}function _0x3fe95d(_0x232eae){return window['atob'](_0x232eae['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x1c2e27(_0x4b01e7){let _0x4c5c2d=0x1505;function _0x50e803(_0x496d77){for(let _0x16a6c2=0x0;_0x16a6c2<_0x496d77['length'];_0x16a6c2++){const _0x27c046=_0x496d77['charCodeAt'](_0x16a6c2);_0x4c5c2d=(_0x4c5c2d<<0x5)+_0x4c5c2d+_0x27c046,_0x4c5c2d&=_0x4c5c2d;}}function _0x5eeae4(_0x36485f){Array['isArray'](_0x36485f)?_0x36485f['forEach'](_0x5eeae4):_0x36485f&&'object'==typeof _0x36485f?Object['entries'](_0x36485f)['sort']()['forEach'](([_0x10b3d3,_0x3f1816])=>{_0x50e803(_0x10b3d3),_0x5eeae4(_0x3f1816);}):_0x50e803(window['String'](_0x36485f));}return _0x5eeae4(_0x4b01e7),_0x4c5c2d>>>0x0;}function _0x414e80(_0x45bc99){return _0x45bc99['toString'](0x10)['padStart'](0x8,'0');}function _0x511fcb(_0x3ae1de){return _0x3ae1de['split']('')['reverse']()['join']('');}function _0x447bab(){}_0x2a2b15(await _0x53e2a6());}_0x17b24f(_0x431397['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'],[_0x50def7=>Number(_0x50def7)>=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(_0x209fd1){return h['includes'](_0x209fd1);}function v(_0x1d9957){return Array['from'](_0x1d9957['getStyleNames']())['filter'](E);}function F(_0x41a6b7,_0x3b2e30,_0x26ea2c){const {spanStyles:_0xf04741,stylesToBeHtmlElements:_0x16cb89}=K(_0x41a6b7,_0x26ea2c);!function(_0x214d2f,_0x27a10d,_0x508c1f){for(const _0x3bbfea in _0x508c1f)_0x508c1f[_0x3bbfea]['forEach'](([,_0x3755b0])=>{const _0x336d78=_0x27a10d['createElement'](_0x3755b0,[],_0x214d2f['getChildren']());_0x27a10d['insertChild'](0x0,_0x336d78,_0x214d2f);}),_0x27a10d['removeStyle'](_0x3bbfea,_0x214d2f);}(_0x41a6b7,_0x3b2e30,_0x16cb89),function(_0x5bb104,_0x27dac6,_0x250b99){if(!Object['keys'](_0x250b99)['length'])return;const _0x157001=_0x27dac6['createElement']('span',[],_0x5bb104['getChildren']());_0x27dac6['setStyle'](_0x250b99,_0x157001),_0x27dac6['insertChild'](0x0,_0x157001,_0x5bb104),_0x27dac6['removeStyle'](Object['keys'](_0x250b99),_0x5bb104);}(_0x41a6b7,_0x3b2e30,_0xf04741);}function P(_0x7dc03,_0x35880d,_0x8106ce){const {spanStyles:_0x551a74}=K(_0x7dc03,_0x8106ce),_0x3407a9=Object['keys'](_0x551a74);if(!_0x3407a9['length'])return;let _0x1e3b36=!0x1;for(const _0x178f2c of _0x7dc03['getChildren']())if(_0x178f2c['is']('element','span')){_0x1e3b36=!0x0;for(const [_0x1ed1ba,_0x5db1c3]of Object['entries'](_0x551a74))_0x178f2c['hasStyle'](_0x1ed1ba)||_0x35880d['setStyle']({[_0x1ed1ba]:_0x5db1c3},_0x178f2c);}_0x1e3b36&&_0x35880d['removeStyle'](_0x3407a9,_0x7dc03);}function K(_0x3ed010,_0x4188df){const _0x343387={},_0x28d953={};return _0x4188df['forEach'](_0x305338=>{const _0x307fef=_0x3ed010['getStyle'](_0x305338);if(_0x307fef){if(function(_0x434cd8){return O['includes'](_0x434cd8);}(_0x305338))_0x343387[_0x305338]=_0x307fef;else{if(function(_0x2f2831){return _0x2f2831 in L;}(_0x305338)){const _0x1c9572=_0x307fef['split']('\x20');L[_0x305338]['forEach'](([_0x1f6140,_0x176414])=>{for(const _0x1ea3d6 of _0x1c9572)('function'==typeof _0x1f6140&&_0x1f6140(_0x1ea3d6)||_0x1f6140===_0x1ea3d6)&&(_0x28d953[_0x305338]=[..._0x28d953[_0x305338]||[],[_0x1f6140,_0x176414]]);});}}}}),{'spanStyles':_0x343387,'stylesToBeHtmlElements':_0x28d953};}var b=class extends _0x4c9f46{execute(_0x208542){const _0x146804=new _0x5bb052(_0x208542['content']['document']),_0x4d8148=_0x146804['createRangeIn'](_0x208542['content']),_0x5ef777=new _0x424892(_0x146804['document']['stylesProcessor']),_0x418a4d=[...new _0x1c34d6(_0x5ef777)['blockElements'],'font'],_0x59a7ed=_0x4d8148['getItems']();for(const _0x2dfc51 of _0x59a7ed)if(_0x2dfc51['is']('element')&&_0x418a4d['includes'](_0x2dfc51['name'])){if(_0x2dfc51['hasStyle']('mso-list')&&'none'!==_0x2dfc51['getStyle']('mso-list')){P(_0x2dfc51,_0x146804,v(_0x2dfc51));continue;}F(_0x2dfc51,_0x146804,v(_0x2dfc51));}}isActive(_0x68e5a9){return super['isActive'](_0x68e5a9)||u(_0x68e5a9);}},x=class extends _0x598479{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x3216f0];}init(){const _0x566e56=this['editor'],_0x316b09=_0x566e56['plugins']['get']('PasteFromOffice'),_0x4857ac=_0x566e56['editing']['view']['document'],_0x4a2c6e=new b(_0x4857ac);_0x316b09['registerNormalizer'](_0x4a2c6e,_0x25561a['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x3e27d9=[this['editor']];for(const _0x283623 of _0x3e27d9){let _0x22ee14;for(const _0x2cc12f in _0x283623){const _0x54013f=_0x2cc12f,_0x5b3d9f=_0x283623[_0x54013f];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x5b3d9f||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x5b3d9f||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x5b3d9f||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x5b3d9f||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x5b3d9f||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x5b3d9f||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x5b3d9f){delete _0x283623[_0x54013f],_0x22ee14=_0x5b3d9f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x22ee14&&_0x283623['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x22ee14&&_0x283623['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x22ee14&&_0x283623['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x22ee14&&_0x283623['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x22ee14&&_0x283623['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x22ee14&&_0x283623['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x598479{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x3216f0,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": "48.5.0-alpha.3",
3
+ "version": "48.5.0-alpha.5",
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": "48.5.0-alpha.3",
35
- "@ckeditor/ckeditor5-core": "48.5.0-alpha.3",
36
- "@ckeditor/ckeditor5-engine": "48.5.0-alpha.3",
37
- "@ckeditor/ckeditor5-paste-from-office": "48.5.0-alpha.3",
38
- "@ckeditor/ckeditor5-utils": "48.5.0-alpha.3"
34
+ "@ckeditor/ckeditor5-clipboard": "48.5.0-alpha.5",
35
+ "@ckeditor/ckeditor5-core": "48.5.0-alpha.5",
36
+ "@ckeditor/ckeditor5-engine": "48.5.0-alpha.5",
37
+ "@ckeditor/ckeditor5-paste-from-office": "48.5.0-alpha.5",
38
+ "@ckeditor/ckeditor5-utils": "48.5.0-alpha.5"
39
39
  },
40
40
  "files": [
41
41
  "dist",