@ckeditor/ckeditor5-paste-from-office-enhanced 48.4.0-alpha.0 → 48.4.0-alpha.1

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 _0x348ea3}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x30ed92,PasteFromOfficeMSWordNormalizer as _0x20f9bc}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0xd12d51,uid as _0x2d8532}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x1a8e74,ViewDomConverter as _0x560135,ViewUpcastWriter as _0x4b3461}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x590324){return f['test'](_0x590324);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x4631c9,_0x5b836e){const _0x50d350=new Map();for(const [_0x3070e4,_0x5d01fe]of _0x5b836e){if(!_0x3070e4['tagName']&&!_0x3070e4['className'])continue;const _0x1a7b65=!_0x3070e4['tagName']||_0x4631c9['name']===_0x3070e4['tagName'],_0x183405=!_0x3070e4['className']||_0x4631c9['hasClass'](_0x3070e4['className']);_0x1a7b65&&_0x183405&&_0x50d350['set'](_0x3070e4,_0x5d01fe);}return _0x50d350;}function m(_0x4986a5){const _0x5b3556={};for(let _0x216181=0x0;_0x216181<_0x4986a5['length'];_0x216181++){const _0x22e01d=_0x4986a5[_0x216181],_0x32a5df=_0x4986a5['getPropertyValue'](_0x22e01d);'initial'!==_0x32a5df&&(_0x5b3556[_0x22e01d]=_0x32a5df);}return _0x5b3556;}function w(_0xa7555a){const _0x1457c0=_0xa7555a['split'](',')['map'](_0x5e3eb4=>_0x5e3eb4['trim']()),_0x59c640=[];for(const _0x824221 of _0x1457c0){const _0x4dd651=l['exec'](_0x824221);_0x4dd651&&_0x59c640['push'](_0x4dd651['groups']);}return _0x59c640;}function y(_0x5ccdb6){const _0x4c4c59={};for(const _0x29d5dd of _0x5ccdb6)Object['assign'](_0x4c4c59,_0x29d5dd);return _0x4c4c59;}var g=class extends _0x20f9bc{execute(_0x47ce55){const {styles:_0x2501e0,stylesString:_0x5842d1}=_0x47ce55['extraContent'],_0x170ad1=new _0x4b3461(_0x47ce55['content']['document']),_0x14842d=_0x170ad1['createRangeIn'](_0x47ce55['content']),_0x1d60f8=function(_0x5e6609){const _0x2a82e6=new Map();for(const _0xa7be42 in _0x5e6609){const _0x5ee0a8=w(_0xa7be42),_0x28d594=_0x5e6609[_0xa7be42];for(const _0x372360 of _0x5ee0a8)_0x2a82e6['set'](_0x372360,_0x28d594);}return _0x2a82e6;}(function(_0x3fc418){const _0x58d08a={};for(const _0x8911f0 of _0x3fc418)for(const _0x70034e of _0x8911f0['cssRules'])if(_0x70034e instanceof CSSStyleRule){const _0x464ed2=m(_0x70034e['style']);_0x58d08a[_0x70034e['selectorText']]=Object['assign']({},_0x58d08a[_0x70034e['selectorText']]||{},_0x464ed2);}return _0x58d08a;}(_0x2501e0)),_0xfda6e1=function(_0x388fb4){const _0x3167c9={},_0x411624=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x1c9071=/\.(?<className>[\w-]+)/g;let _0x5d4f34;for(;null!==(_0x5d4f34=_0x411624['exec'](_0x388fb4));){const {selector:_0x2607f6,color:_0x2b0ff9,patternType:_0x3f8be9}=_0x5d4f34['groups'];if('auto'!==_0x2b0ff9['toLowerCase']()&&'none'!==_0x3f8be9['toLowerCase']()&&'auto'!==_0x3f8be9['toLowerCase']()){for(const _0xae5d4c of _0x2607f6['matchAll'](_0x1c9071))_0x3167c9[_0xae5d4c['groups']['className']]=_0x2b0ff9;}}return _0x3167c9;}(_0x5842d1);for(const _0x50ff6c of _0x14842d){if('elementStart'!==_0x50ff6c['type'])continue;const _0x37dfab=_0x50ff6c['item'],_0x5e2959=d(_0x37dfab,_0x1d60f8),_0x20edcb=_0x5e2959['size']?y(Array['from'](_0x5e2959['values']())):{};if(!('background-color'in _0x20edcb)&&!('background'in _0x20edcb)){for(const [_0x28f691,_0x3ca8c0]of Object['entries'](_0xfda6e1))if(_0x37dfab['hasClass'](_0x28f691)){_0x20edcb['background-color']=_0x3ca8c0;break;}}for(const _0x5afb0b in _0x20edcb)_0x37dfab['hasStyle'](_0x5afb0b)||_0x170ad1['setStyle'](_0x5afb0b,_0x20edcb[_0x5afb0b],_0x37dfab);}}isActive(_0x1a549d){return super['isActive'](_0x1a549d)||u(_0x1a549d);}},p=class extends _0x348ea3{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x30ed92];}init(){const _0x4dbe77=this['editor'],_0x5954ce=_0x4dbe77['plugins']['get']('PasteFromOffice'),_0x1d2485=_0x4dbe77['editing']['view']['document'],_0x5f5067=new g(_0x1d2485);_0x5954ce['registerNormalizer'](_0x5f5067,_0xd12d51['high']+0xb);}afterInit(){!async function(_0x2cb0cf){const _0x1fe296='sG65Crk1cd2igLN7zIEAYju9J3hbPBtnFMxQf4HwZal0qTSVKyDmoRvUXepWO8',_0x5480b2=0x79128,_0x37cf57=window['Date']['now'](),_0x30608c=_0x2cb0cf['editor'],_0x39f37a=new window['Promise'](_0x316ce1=>{_0x30608c['once']('ready',_0x316ce1);}),_0x7d3d73={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x2d685f=_0x30608c['config']['get']('licenseKey');async function _0x6fa53a(){let _0x1c8fd4,_0x21faea=null,_0xaab07c=null;try{return'GPL'==_0x2d685f?'NotAllowed':(_0x1c8fd4=_0x8b31da(),_0x1c8fd4?(_0x1c8fd4['usageEndpoint']&&(_0xaab07c=_0x3bb3a4(_0x1c8fd4['usageEndpoint'],_0x1c8fd4['jti'])),await _0x5371aa()?_0x154039()?_0x18c48e()?'Expired':_0x5a2788()?('evaluation'==_0x1c8fd4['licenseType']&&(_0x21faea=_0x27b09e('EvaluationLimit')),await _0x4644c3()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x18c48e(){const _0x3f1fbf=['evaluation','trial']['includes'](_0x1c8fd4['licenseType'])?_0x37cf57/0x3e8:0xe10*_0x5480b2;return _0x1c8fd4['exp']<_0x3f1fbf;}function _0x154039(){const _0x485ebd=_0x1c8fd4['features'];return!!_0x485ebd&&(!!_0x485ebd['includes']('*')||(!!_0x485ebd['includes']('POE')||(!!_0x485ebd['includes']('PP')||!(!_0x485ebd['includes']('TRILIUM')||!_0x4728a7()))));}function _0x5a2788(){const _0x2ea50d=_0x1c8fd4['licensedHosts'];if(!_0x2ea50d||0x0==_0x2ea50d['length'])return!0x0;const {hostname:_0x46cad8}=new URL(window['location']['href']);if(_0x2ea50d['includes'](_0x46cad8))return!0x0;const _0x555a38=_0x46cad8['split']('.');return _0x2ea50d['filter'](_0x4bb0a9=>_0x4bb0a9['includes']('*'))['map'](_0x56a569=>_0x56a569['split']('.'))['filter'](_0x2f9532=>_0x2f9532['length']<=_0x555a38['length'])['map'](_0x55ef7e=>Array(_0x555a38['length']-_0x55ef7e['length'])['fill']('*'===_0x55ef7e[0x0]?'*':'')['concat'](_0x55ef7e))['some'](_0x5d055b=>_0x555a38['every']((_0x224ff4,_0xc7c2f)=>_0x5d055b[_0xc7c2f]===_0x224ff4||'*'===_0x5d055b[_0xc7c2f]));}function _0x4644c3(){return _0x21faea&&_0xaab07c?new window['Promise']((_0x38b693,_0x8c5e0a)=>{_0x21faea['then'](_0x38b693,_0x8c5e0a),_0xaab07c['then'](_0x26ea3b=>{'Valid'!=_0x26ea3b&&_0x38b693(_0x26ea3b);},_0x8c5e0a);}):_0x21faea||_0xaab07c||'Valid';}}function _0x3bb3a4(_0x3a40ff,_0x1c7398){return new window['Promise'](_0x1cf536=>{if(_0x1bbedd())return _0x1cf536('Valid');_0x4b7958(),_0x30608c['decorate']('_sendUsageRequest');let _0x103913=!0x1;const _0x43d4c6=_0x2d8532();function _0x56fba5(_0x3e2295){return!!_0x3e2295&&('object'==typeof _0x3e2295||'function'==typeof _0x3e2295)&&'function'==typeof _0x3e2295['then']&&'function'==typeof _0x3e2295['catch'];}function _0x87a580(_0x1af62e){_0x52945c(_0x1af62e)['then'](_0x361776=>_0x361776&&'ok'==_0x361776['status']?_0x2e83e3(_0xcd80ae(_0x43d4c6+_0x1c7398))!=_0x361776['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0xdcad66=>(_0x370b4e(),_0xdcad66),()=>{const _0x37c46c=_0x32ceb8();return null==_0x37c46c?(_0x370b4e(),'Valid'):_0x37cf57-_0x37c46c>0x240c8400?'UsageLimit':'Valid';})['then'](_0x1cf536)['catch'](()=>{_0x1cf536('UsageLimit');});const _0x4029c1=0x36ee80;function _0x370b4e(){const _0x2a534a='llct-'+_0x2e83e3(_0xcd80ae(_0x3a40ff)),_0x362ef1=_0x5bc706(_0x2e83e3(window['Math']['ceil'](_0x37cf57/_0x4029c1)));window['localStorage']['setItem'](_0x2a534a,_0x362ef1);}function _0x32ceb8(){const _0x2f0c8d='llct-'+_0x2e83e3(_0xcd80ae(_0x3a40ff)),_0x18f6cb=window['localStorage']['getItem'](_0x2f0c8d);return _0x18f6cb?window['parseInt'](_0x5bc706(_0x18f6cb),0x10)*_0x4029c1:null;}function _0x52945c(_0xc56aa3){return new window['Promise']((_0x52358c,_0x1cbeea)=>{_0xc56aa3['then'](_0x52358c,_0x1cbeea),window['setTimeout'](_0x1cbeea,0x1d4c0);});}}_0x30608c['on']('_sendUsageRequest',(_0x28dadb,_0x533ba1)=>{if(_0x533ba1[0x0]!=_0x3a40ff)return _0x1cf536('UsageLimit');_0x533ba1[0x1]={..._0x533ba1[0x1],'requestId':_0x43d4c6};},{'priority':'high'}),_0x30608c['on']('_sendUsageRequest',_0x42f954=>{_0x56fba5(_0x42f954['return'])&&(_0x103913=!0x0,_0x87a580(_0x42f954['return']));},{'priority':'low'}),_0x39f37a['then'](()=>{_0x103913||_0x1cf536('UsageLimit');});});function _0x1bbedd(){return'auto'==_0x30608c['editing']['view']['_overlayModeHint'];}function _0x4b7958(){_0x30608c['editing']['view']['_overlayModeHint']='auto';}}function _0x27b09e(_0x777819){const _0x5e8bac=[new window['Promise'](_0x2bccf2=>setTimeout(_0x2bccf2,0x93ecc)),_0x39f37a['then'](()=>new window['Promise'](_0x509d5a=>{let _0x7a4afe=0x0;_0x30608c['model']['on']('applyOperation',(_0x1a0a3e,_0x577faa)=>{_0x577faa[0x0]['isDocumentOperation']&&_0x7a4afe++,0x5e8==_0x7a4afe&&(_0x509d5a(),_0x1a0a3e['off']());});}))];return window['Promise']['race'](_0x5e8bac)['then'](()=>_0x777819);}async function _0x51ac53(){await _0x39f37a,_0x30608c['model']['change']=_0x23d43f,_0x30608c['model']['enqueueChange']=_0x23d43f,_0x30608c['enableReadOnlyMode']('model');}function _0x4728a7(){return window['glob']&&window['glob']['triliumVersion'];}function _0x57bbef(_0x1ec88a){const _0x3dafc0=_0xa87bb9();_0x30608c[_0x3dafc0]='pasteFromOfficeEnhancedLicenseKey'+_0x1ec88a,'Valid'!=_0x1ec88a&&_0x51ac53();}function _0xa87bb9(){const _0x5b7715=window['String'](window['performance']['now']())['replace']('.','');let _0x490dc4='s';for(let _0x1fbed2=0x0;_0x1fbed2<_0x5b7715['length'];_0x1fbed2+=0x2){let _0x349315=window['parseInt'](_0x5b7715['substring'](_0x1fbed2,_0x1fbed2+0x2));_0x349315>=0x3e&&(_0x349315-=0x3e),_0x490dc4+=_0x1fe296[_0x349315];}return _0x490dc4;}function _0x8b31da(){const _0x2ac18e=_0x2d685f['split']('.');if(0x3!=_0x2ac18e['length'])return null;return _0x53670d(_0x2ac18e[0x1]);function _0x53670d(_0x2a91cd){const _0x268436=_0x4e5ed5(_0x2a91cd);return _0x268436&&_0x42563d()?_0x268436:null;function _0x42563d(){const _0x543f34=_0x268436['jti'],_0x57a8f0=window['parseInt'](_0x543f34['substring'](_0x543f34['length']-0x8),0x10),_0x1d620d={..._0x268436,'jti':_0x543f34['substring'](0x0,_0x543f34['length']-0x8)};return delete _0x1d620d['vc'],_0xcd80ae(_0x1d620d)==_0x57a8f0;}}}async function _0x5371aa(){let _0x5ddd66=!0x0;try{const [_0x52a8b5,_0x288810,_0x2848cc]=_0x2d685f['split']('.');return _0x5b537c(_0x52a8b5),await _0x3058d8(_0x52a8b5,_0x288810,_0x2848cc),_0x5ddd66;}catch{return!0x1;}function _0x5b537c(_0x254b01){const _0x4e06b2=_0x4e5ed5(_0x254b01);_0x4e06b2&&'ES256'==_0x4e06b2['alg']||(_0x5ddd66=!0x1);}async function _0x3058d8(_0xbe7ebf,_0x1be24c,_0x565430){const _0x511538=window['Uint8Array']['from'](_0x93e02(_0x565430),_0x50c7a7=>_0x50c7a7['charCodeAt'](0x0)),_0x25e0dc=new window['TextEncoder']()['encode'](_0xbe7ebf+'.'+_0x1be24c),_0x48ac07=window['crypto']['subtle'];if(!_0x48ac07)return;const _0x4a2c1c=await _0x48ac07['importKey']('jwk',_0x7d3d73,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x48ac07['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x4a2c1c,_0x511538,_0x25e0dc)||(_0x5ddd66=!0x1);}}function _0x4e5ed5(_0x9a8fe){return _0x9a8fe['startsWith']('ey')?JSON['parse'](_0x93e02(_0x9a8fe)):null;}function _0x93e02(_0x528ef4){return window['atob'](_0x528ef4['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0xcd80ae(_0x353d6b){let _0x4ac444=0x1505;function _0x496727(_0x23840e){for(let _0x431dc3=0x0;_0x431dc3<_0x23840e['length'];_0x431dc3++){const _0x2dd8dc=_0x23840e['charCodeAt'](_0x431dc3);_0x4ac444=(_0x4ac444<<0x5)+_0x4ac444+_0x2dd8dc,_0x4ac444&=_0x4ac444;}}function _0x3a605f(_0x57f2ae){Array['isArray'](_0x57f2ae)?_0x57f2ae['forEach'](_0x3a605f):_0x57f2ae&&'object'==typeof _0x57f2ae?Object['entries'](_0x57f2ae)['sort']()['forEach'](([_0x1f81c4,_0x101d26])=>{_0x496727(_0x1f81c4),_0x3a605f(_0x101d26);}):_0x496727(window['String'](_0x57f2ae));}return _0x3a605f(_0x353d6b),_0x4ac444>>>0x0;}function _0x2e83e3(_0x4fc2c8){return _0x4fc2c8['toString'](0x10)['padStart'](0x8,'0');}function _0x5bc706(_0x564c4a){return _0x564c4a['split']('')['reverse']()['join']('');}function _0x23d43f(){}_0x57bbef(await _0x6fa53a());}(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'],[_0x2aa9a7=>Number(_0x2aa9a7)>=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(_0x9a3d56){return h['includes'](_0x9a3d56);}function v(_0x35ce3d){return Array['from'](_0x35ce3d['getStyleNames']())['filter'](E);}function F(_0x3f4232,_0x3c7ec0,_0xf20457){const {spanStyles:_0x36f6ce,stylesToBeHtmlElements:_0x523626}=K(_0x3f4232,_0xf20457);!function(_0x57c2db,_0xb416e7,_0x201b19){for(const _0x56bf54 in _0x201b19)_0x201b19[_0x56bf54]['forEach'](([,_0x5bc611])=>{const _0x5671a9=_0xb416e7['createElement'](_0x5bc611,[],_0x57c2db['getChildren']());_0xb416e7['insertChild'](0x0,_0x5671a9,_0x57c2db);}),_0xb416e7['removeStyle'](_0x56bf54,_0x57c2db);}(_0x3f4232,_0x3c7ec0,_0x523626),function(_0x3b754a,_0x578979,_0xdfa06e){if(!Object['keys'](_0xdfa06e)['length'])return;const _0x26127b=_0x578979['createElement']('span',[],_0x3b754a['getChildren']());_0x578979['setStyle'](_0xdfa06e,_0x26127b),_0x578979['insertChild'](0x0,_0x26127b,_0x3b754a),_0x578979['removeStyle'](Object['keys'](_0xdfa06e),_0x3b754a);}(_0x3f4232,_0x3c7ec0,_0x36f6ce);}function P(_0x5bd08d,_0x57ccbc,_0x16020e){const {spanStyles:_0x6525c8}=K(_0x5bd08d,_0x16020e),_0x4ed988=Object['keys'](_0x6525c8);if(!_0x4ed988['length'])return;let _0x2a4008=!0x1;for(const _0x26b94a of _0x5bd08d['getChildren']())if(_0x26b94a['is']('element','span')){_0x2a4008=!0x0;for(const [_0xaba771,_0x141551]of Object['entries'](_0x6525c8))_0x26b94a['hasStyle'](_0xaba771)||_0x57ccbc['setStyle']({[_0xaba771]:_0x141551},_0x26b94a);}_0x2a4008&&_0x57ccbc['removeStyle'](_0x4ed988,_0x5bd08d);}function K(_0x3735d3,_0x5e5457){const _0x2df63f={},_0xbe6e39={};return _0x5e5457['forEach'](_0x1ada84=>{const _0x21adce=_0x3735d3['getStyle'](_0x1ada84);if(_0x21adce){if(function(_0x261da9){return O['includes'](_0x261da9);}(_0x1ada84))_0x2df63f[_0x1ada84]=_0x21adce;else{if(function(_0x2d0371){return _0x2d0371 in L;}(_0x1ada84)){const _0x174b60=_0x21adce['split']('\x20');L[_0x1ada84]['forEach'](([_0x34109a,_0x454d2a])=>{for(const _0x499529 of _0x174b60)('function'==typeof _0x34109a&&_0x34109a(_0x499529)||_0x34109a===_0x499529)&&(_0xbe6e39[_0x1ada84]=[..._0xbe6e39[_0x1ada84]||[],[_0x34109a,_0x454d2a]]);});}}}}),{'spanStyles':_0x2df63f,'stylesToBeHtmlElements':_0xbe6e39};}var b=class extends _0x20f9bc{execute(_0x101a14){const _0x139199=new _0x4b3461(_0x101a14['content']['document']),_0x23b313=_0x139199['createRangeIn'](_0x101a14['content']),_0x2f464e=[...new _0x560135(new _0x1a8e74(_0x139199['document']['stylesProcessor']))['blockElements'],'font'],_0x17b03a=_0x23b313['getItems']();for(const _0x1a9996 of _0x17b03a)if(_0x1a9996['is']('element')&&_0x2f464e['includes'](_0x1a9996['name'])){if(_0x1a9996['hasStyle']('mso-list')&&'none'!==_0x1a9996['getStyle']('mso-list')){P(_0x1a9996,_0x139199,v(_0x1a9996));continue;}F(_0x1a9996,_0x139199,v(_0x1a9996));}}isActive(_0x32548b){return super['isActive'](_0x32548b)||u(_0x32548b);}},x=class extends _0x348ea3{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x30ed92];}init(){const _0x144216=this['editor'],_0x5326b3=_0x144216['plugins']['get']('PasteFromOffice'),_0x3092cd=_0x144216['editing']['view']['document'],_0x300a0c=new b(_0x3092cd);_0x5326b3['registerNormalizer'](_0x300a0c,_0xd12d51['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4baa7d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x128de2;for(const _0x4fa80a in _0x4baa7d){const _0x443e17=_0x4fa80a,_0x2f1f20=_0x4baa7d[_0x443e17];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x2f1f20||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x2f1f20||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x2f1f20||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x2f1f20||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x2f1f20||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x2f1f20||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x2f1f20){delete _0x4baa7d[_0x443e17],_0x128de2=_0x2f1f20,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x128de2&&_0x4baa7d['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x128de2&&_0x4baa7d['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x128de2&&_0x4baa7d['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x128de2&&_0x4baa7d['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x128de2&&_0x4baa7d['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x128de2&&_0x4baa7d['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x348ea3{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x30ed92,p,x];}};export{k as PasteFromOfficeEnhanced};
23
+ import{Plugin as _0xe14af8}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x3f1b88,PasteFromOfficeMSWordNormalizer as _0x183bbe}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x3e17da,uid as _0x52d937}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0xa0eabd,ViewDomConverter as _0x9eb54a,ViewUpcastWriter as _0x1a490a}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x3466d5){return f['test'](_0x3466d5);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x122238,_0x502723){const _0x3ac86f=new Map();for(const [_0x23c087,_0x59cef5]of _0x502723){if(!_0x23c087['tagName']&&!_0x23c087['className'])continue;const _0x242a4d=!_0x23c087['tagName']||_0x122238['name']===_0x23c087['tagName'],_0xe4a6ce=!_0x23c087['className']||_0x122238['hasClass'](_0x23c087['className']);_0x242a4d&&_0xe4a6ce&&_0x3ac86f['set'](_0x23c087,_0x59cef5);}return _0x3ac86f;}function m(_0x374d03){const _0x329f14={};for(let _0x1fab20=0x0;_0x1fab20<_0x374d03['length'];_0x1fab20++){const _0x2aa4da=_0x374d03[_0x1fab20],_0x53963b=_0x374d03['getPropertyValue'](_0x2aa4da);'initial'!==_0x53963b&&(_0x329f14[_0x2aa4da]=_0x53963b);}return _0x329f14;}function w(_0x45694a){const _0x271fe1=_0x45694a['split'](',')['map'](_0xe6450c=>_0xe6450c['trim']()),_0x179dd5=[];for(const _0x8e1c4d of _0x271fe1){const _0x4279ce=l['exec'](_0x8e1c4d);_0x4279ce&&_0x179dd5['push'](_0x4279ce['groups']);}return _0x179dd5;}function y(_0x5b41e1){const _0x4ef309={};for(const _0x17b7a4 of _0x5b41e1)Object['assign'](_0x4ef309,_0x17b7a4);return _0x4ef309;}var g=class extends _0x183bbe{execute(_0x19769a){const {styles:_0x6f287e,stylesString:_0x2b6d4c}=_0x19769a['extraContent'],_0x471e05=new _0x1a490a(_0x19769a['content']['document']),_0x5712f4=_0x471e05['createRangeIn'](_0x19769a['content']),_0x3699b7=function(_0x903508){const _0x5940ed=new Map();for(const _0x599c5e in _0x903508){const _0xae2bd1=w(_0x599c5e),_0x517686=_0x903508[_0x599c5e];for(const _0x5eed60 of _0xae2bd1)_0x5940ed['set'](_0x5eed60,_0x517686);}return _0x5940ed;}(function(_0x584be6){const _0x5e6bfa={};for(const _0xf1a222 of _0x584be6)for(const _0x2f6aeb of _0xf1a222['cssRules'])if(_0x2f6aeb instanceof CSSStyleRule){const _0x3ac11e=m(_0x2f6aeb['style']);_0x5e6bfa[_0x2f6aeb['selectorText']]=Object['assign']({},_0x5e6bfa[_0x2f6aeb['selectorText']]||{},_0x3ac11e);}return _0x5e6bfa;}(_0x6f287e)),_0x728e93=function(_0x43e5e8){const _0x4d26e7={},_0x54648f=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x5a43dd=/\.(?<className>[\w-]+)/g;let _0x369d0d;for(;null!==(_0x369d0d=_0x54648f['exec'](_0x43e5e8));){const {selector:_0x47bdbe,color:_0x6742eb,patternType:_0x40d342}=_0x369d0d['groups'];if('auto'!==_0x6742eb['toLowerCase']()&&'none'!==_0x40d342['toLowerCase']()&&'auto'!==_0x40d342['toLowerCase']()){for(const _0x49fe66 of _0x47bdbe['matchAll'](_0x5a43dd))_0x4d26e7[_0x49fe66['groups']['className']]=_0x6742eb;}}return _0x4d26e7;}(_0x2b6d4c);for(const _0x39f66a of _0x5712f4){if('elementStart'!==_0x39f66a['type'])continue;const _0x53a590=_0x39f66a['item'],_0x200c91=d(_0x53a590,_0x3699b7),_0x936d9d=_0x200c91['size']?y(Array['from'](_0x200c91['values']())):{};if(!('background-color'in _0x936d9d)&&!('background'in _0x936d9d)){for(const [_0x3f3743,_0x4a025f]of Object['entries'](_0x728e93))if(_0x53a590['hasClass'](_0x3f3743)){_0x936d9d['background-color']=_0x4a025f;break;}}for(const _0x51eddb in _0x936d9d)_0x53a590['hasStyle'](_0x51eddb)||_0x471e05['setStyle'](_0x51eddb,_0x936d9d[_0x51eddb],_0x53a590);}}isActive(_0x3f8942){return super['isActive'](_0x3f8942)||u(_0x3f8942);}},p=class extends _0xe14af8{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x3f1b88];}init(){const _0x4613fe=this['editor'],_0x15efaa=_0x4613fe['plugins']['get']('PasteFromOffice'),_0x58b9fd=_0x4613fe['editing']['view']['document'],_0x190226=new g(_0x58b9fd);_0x15efaa['registerNormalizer'](_0x190226,_0x3e17da['high']+0xb);}afterInit(){!async function(_0xd619c5){const _0xcafce4='sG65Crk1cd2igLN7zIEAYju9J3hbPBtnFMxQf4HwZal0qTSVKyDmoRvUXepWO8',_0x1db114=0x79140,_0x40c687=window['Date']['now'](),_0x64acea=_0xd619c5['editor'],_0x3b9ba4=new window['Promise'](_0x37bbd1=>{_0x64acea['once']('ready',_0x37bbd1);}),_0x3b3658={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x406b54=_0x64acea['config']['get']('licenseKey');async function _0x423cff(){let _0x302bab,_0x484d0e=null,_0x14a91c=null;try{return'GPL'==_0x406b54?'NotAllowed':(_0x302bab=_0x45e4ff(),_0x302bab?(_0x302bab['usageEndpoint']&&(_0x14a91c=_0x52ac29(_0x302bab['usageEndpoint'],_0x302bab['jti'])),await _0x34f035()?_0x4ed384()?_0x1cc53c()?'Expired':_0x2cb15a()?('evaluation'==_0x302bab['licenseType']&&(_0x484d0e=_0x1dfa6c('EvaluationLimit')),await _0x1ae1e7()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x1cc53c(){const _0x39c9a3=['evaluation','trial']['includes'](_0x302bab['licenseType'])?_0x40c687/0x3e8:0xe10*_0x1db114;return _0x302bab['exp']<_0x39c9a3;}function _0x4ed384(){const _0x1acdc0=_0x302bab['features'];return!!_0x1acdc0&&(!!_0x1acdc0['includes']('*')||(!!_0x1acdc0['includes']('POE')||(!!_0x1acdc0['includes']('PP')||!(!_0x1acdc0['includes']('TRILIUM')||!_0x3bf7f3()))));}function _0x2cb15a(){const _0x3254ac=_0x302bab['licensedHosts'];if(!_0x3254ac||0x0==_0x3254ac['length'])return!0x0;const {hostname:_0x4097ae}=new URL(window['location']['href']);if(_0x3254ac['includes'](_0x4097ae))return!0x0;const _0x52b34e=_0x4097ae['split']('.');return _0x3254ac['filter'](_0x595c24=>_0x595c24['includes']('*'))['map'](_0x33e4ed=>_0x33e4ed['split']('.'))['filter'](_0x5555e8=>_0x5555e8['length']<=_0x52b34e['length'])['map'](_0x553e9f=>Array(_0x52b34e['length']-_0x553e9f['length'])['fill']('*'===_0x553e9f[0x0]?'*':'')['concat'](_0x553e9f))['some'](_0x218679=>_0x52b34e['every']((_0x22609a,_0x476732)=>_0x218679[_0x476732]===_0x22609a||'*'===_0x218679[_0x476732]));}function _0x1ae1e7(){return _0x484d0e&&_0x14a91c?new window['Promise']((_0x359764,_0x46ec69)=>{_0x484d0e['then'](_0x359764,_0x46ec69),_0x14a91c['then'](_0x391004=>{'Valid'!=_0x391004&&_0x359764(_0x391004);},_0x46ec69);}):_0x484d0e||_0x14a91c||'Valid';}}function _0x52ac29(_0x238017,_0x59f524){return new window['Promise'](_0x3f78bb=>{if(_0x4ce01e())return _0x3f78bb('Valid');_0x4e6fff(),_0x64acea['decorate']('_sendUsageRequest');let _0x2ac76c=!0x1;const _0x260cf5=_0x52d937();function _0x44e3b5(_0x50767f){return!!_0x50767f&&('object'==typeof _0x50767f||'function'==typeof _0x50767f)&&'function'==typeof _0x50767f['then']&&'function'==typeof _0x50767f['catch'];}function _0xeb33db(_0x3e7bb0){_0x3393a4(_0x3e7bb0)['then'](_0x45c3ce=>_0x45c3ce&&'ok'==_0x45c3ce['status']?_0x1d0944(_0x31abbc(_0x260cf5+_0x59f524))!=_0x45c3ce['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x16e139=>(_0x3bdd05(),_0x16e139),()=>{const _0x5189b9=_0x5b826d();return null==_0x5189b9?(_0x3bdd05(),'Valid'):_0x40c687-_0x5189b9>0x240c8400?'UsageLimit':'Valid';})['then'](_0x3f78bb)['catch'](()=>{_0x3f78bb('UsageLimit');});const _0x17c746=0x36ee80;function _0x3bdd05(){const _0xa34360='llct-'+_0x1d0944(_0x31abbc(_0x238017)),_0x1f8db0=_0x5b6f43(_0x1d0944(window['Math']['ceil'](_0x40c687/_0x17c746)));window['localStorage']['setItem'](_0xa34360,_0x1f8db0);}function _0x5b826d(){const _0x4bce89='llct-'+_0x1d0944(_0x31abbc(_0x238017)),_0x44c605=window['localStorage']['getItem'](_0x4bce89);return _0x44c605?window['parseInt'](_0x5b6f43(_0x44c605),0x10)*_0x17c746:null;}function _0x3393a4(_0x17f144){return new window['Promise']((_0x3ff2f4,_0x2bdaaf)=>{_0x17f144['then'](_0x3ff2f4,_0x2bdaaf),window['setTimeout'](_0x2bdaaf,0x1d4c0);});}}_0x64acea['on']('_sendUsageRequest',(_0xd3fee7,_0x53ea2d)=>{if(_0x53ea2d[0x0]!=_0x238017)return _0x3f78bb('UsageLimit');_0x53ea2d[0x1]={..._0x53ea2d[0x1],'requestId':_0x260cf5};},{'priority':'high'}),_0x64acea['on']('_sendUsageRequest',_0x22dd27=>{_0x44e3b5(_0x22dd27['return'])&&(_0x2ac76c=!0x0,_0xeb33db(_0x22dd27['return']));},{'priority':'low'}),_0x3b9ba4['then'](()=>{_0x2ac76c||_0x3f78bb('UsageLimit');});});function _0x4ce01e(){return'auto'==_0x64acea['editing']['view']['_overlayModeHint'];}function _0x4e6fff(){_0x64acea['editing']['view']['_overlayModeHint']='auto';}}function _0x1dfa6c(_0x5c8eda){const _0x452b75=[new window['Promise'](_0x26ca19=>setTimeout(_0x26ca19,0x93ecc)),_0x3b9ba4['then'](()=>new window['Promise'](_0x5b5f6a=>{let _0x40c2f3=0x0;_0x64acea['model']['on']('applyOperation',(_0x401d04,_0x5b57a8)=>{_0x5b57a8[0x0]['isDocumentOperation']&&_0x40c2f3++,0x5e8==_0x40c2f3&&(_0x5b5f6a(),_0x401d04['off']());});}))];return window['Promise']['race'](_0x452b75)['then'](()=>_0x5c8eda);}async function _0xfb1d2f(){await _0x3b9ba4,_0x64acea['model']['change']=_0x37d281,_0x64acea['model']['enqueueChange']=_0x37d281,_0x64acea['enableReadOnlyMode']('model');}function _0x3bf7f3(){return window['glob']&&window['glob']['triliumVersion'];}function _0xbdbe56(_0x1d997e){const _0x43a32c=_0x2469a5();_0x64acea[_0x43a32c]='pasteFromOfficeEnhancedLicenseKey'+_0x1d997e,'Valid'!=_0x1d997e&&_0xfb1d2f();}function _0x2469a5(){const _0x53f16b=window['String'](window['performance']['now']())['replace']('.','');let _0x335997='s';for(let _0x340888=0x0;_0x340888<_0x53f16b['length'];_0x340888+=0x2){let _0xc54969=window['parseInt'](_0x53f16b['substring'](_0x340888,_0x340888+0x2));_0xc54969>=0x3e&&(_0xc54969-=0x3e),_0x335997+=_0xcafce4[_0xc54969];}return _0x335997;}function _0x45e4ff(){const _0x54335a=_0x406b54['split']('.');if(0x3!=_0x54335a['length'])return null;return _0x3533c2(_0x54335a[0x1]);function _0x3533c2(_0x537f4e){const _0x1062d4=_0x41a4cd(_0x537f4e);return _0x1062d4&&_0xca750e()?_0x1062d4:null;function _0xca750e(){const _0x3bf922=_0x1062d4['jti'],_0x56d382=window['parseInt'](_0x3bf922['substring'](_0x3bf922['length']-0x8),0x10),_0x4a9ceb={..._0x1062d4,'jti':_0x3bf922['substring'](0x0,_0x3bf922['length']-0x8)};return delete _0x4a9ceb['vc'],_0x31abbc(_0x4a9ceb)==_0x56d382;}}}async function _0x34f035(){let _0x282759=!0x0;try{const [_0x535aab,_0x4d0fed,_0x3f5829]=_0x406b54['split']('.');return _0x38170c(_0x535aab),await _0xcca742(_0x535aab,_0x4d0fed,_0x3f5829),_0x282759;}catch{return!0x1;}function _0x38170c(_0x12ffca){const _0x37e33a=_0x41a4cd(_0x12ffca);_0x37e33a&&'ES256'==_0x37e33a['alg']||(_0x282759=!0x1);}async function _0xcca742(_0xcb4595,_0x1af4d6,_0x20e0fe){const _0x411ac8=window['Uint8Array']['from'](_0x3d9ede(_0x20e0fe),_0xb82984=>_0xb82984['charCodeAt'](0x0)),_0x2410c6=new window['TextEncoder']()['encode'](_0xcb4595+'.'+_0x1af4d6),_0x255d4e=window['crypto']['subtle'];if(!_0x255d4e)return;const _0x300e77=await _0x255d4e['importKey']('jwk',_0x3b3658,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x255d4e['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x300e77,_0x411ac8,_0x2410c6)||(_0x282759=!0x1);}}function _0x41a4cd(_0x2e1e6d){return _0x2e1e6d['startsWith']('ey')?JSON['parse'](_0x3d9ede(_0x2e1e6d)):null;}function _0x3d9ede(_0x444d11){return window['atob'](_0x444d11['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x31abbc(_0x16a0d5){let _0x107740=0x1505;function _0x37b636(_0x65123d){for(let _0x45ef44=0x0;_0x45ef44<_0x65123d['length'];_0x45ef44++){const _0x128b44=_0x65123d['charCodeAt'](_0x45ef44);_0x107740=(_0x107740<<0x5)+_0x107740+_0x128b44,_0x107740&=_0x107740;}}function _0x30a7c6(_0x276865){Array['isArray'](_0x276865)?_0x276865['forEach'](_0x30a7c6):_0x276865&&'object'==typeof _0x276865?Object['entries'](_0x276865)['sort']()['forEach'](([_0x3c6ceb,_0xf2b7])=>{_0x37b636(_0x3c6ceb),_0x30a7c6(_0xf2b7);}):_0x37b636(window['String'](_0x276865));}return _0x30a7c6(_0x16a0d5),_0x107740>>>0x0;}function _0x1d0944(_0x217757){return _0x217757['toString'](0x10)['padStart'](0x8,'0');}function _0x5b6f43(_0x131626){return _0x131626['split']('')['reverse']()['join']('');}function _0x37d281(){}_0xbdbe56(await _0x423cff());}(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'],[_0x17c7aa=>Number(_0x17c7aa)>=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(_0x5c492e){return h['includes'](_0x5c492e);}function v(_0x3ab64b){return Array['from'](_0x3ab64b['getStyleNames']())['filter'](E);}function F(_0x32dac8,_0x2cbc80,_0x400b06){const {spanStyles:_0xe66d1d,stylesToBeHtmlElements:_0x6ed439}=K(_0x32dac8,_0x400b06);!function(_0xdf03f8,_0x37e423,_0x45d782){for(const _0x31d42b in _0x45d782)_0x45d782[_0x31d42b]['forEach'](([,_0x2778b0])=>{const _0x2b25d7=_0x37e423['createElement'](_0x2778b0,[],_0xdf03f8['getChildren']());_0x37e423['insertChild'](0x0,_0x2b25d7,_0xdf03f8);}),_0x37e423['removeStyle'](_0x31d42b,_0xdf03f8);}(_0x32dac8,_0x2cbc80,_0x6ed439),function(_0x225482,_0x40cc1c,_0x598244){if(!Object['keys'](_0x598244)['length'])return;const _0x336439=_0x40cc1c['createElement']('span',[],_0x225482['getChildren']());_0x40cc1c['setStyle'](_0x598244,_0x336439),_0x40cc1c['insertChild'](0x0,_0x336439,_0x225482),_0x40cc1c['removeStyle'](Object['keys'](_0x598244),_0x225482);}(_0x32dac8,_0x2cbc80,_0xe66d1d);}function P(_0x2343a2,_0x2032a7,_0x5f27ec){const {spanStyles:_0x1837ce}=K(_0x2343a2,_0x5f27ec),_0x3e17dd=Object['keys'](_0x1837ce);if(!_0x3e17dd['length'])return;let _0x5b3fe1=!0x1;for(const _0x5edc30 of _0x2343a2['getChildren']())if(_0x5edc30['is']('element','span')){_0x5b3fe1=!0x0;for(const [_0x650d56,_0x5e66a7]of Object['entries'](_0x1837ce))_0x5edc30['hasStyle'](_0x650d56)||_0x2032a7['setStyle']({[_0x650d56]:_0x5e66a7},_0x5edc30);}_0x5b3fe1&&_0x2032a7['removeStyle'](_0x3e17dd,_0x2343a2);}function K(_0x1e2656,_0xf09578){const _0x468ff2={},_0xf7d311={};return _0xf09578['forEach'](_0x20ec05=>{const _0x5d32ad=_0x1e2656['getStyle'](_0x20ec05);if(_0x5d32ad){if(function(_0x4925a5){return O['includes'](_0x4925a5);}(_0x20ec05))_0x468ff2[_0x20ec05]=_0x5d32ad;else{if(function(_0x623f98){return _0x623f98 in L;}(_0x20ec05)){const _0x109a74=_0x5d32ad['split']('\x20');L[_0x20ec05]['forEach'](([_0x2172e4,_0x59d817])=>{for(const _0x45995c of _0x109a74)('function'==typeof _0x2172e4&&_0x2172e4(_0x45995c)||_0x2172e4===_0x45995c)&&(_0xf7d311[_0x20ec05]=[..._0xf7d311[_0x20ec05]||[],[_0x2172e4,_0x59d817]]);});}}}}),{'spanStyles':_0x468ff2,'stylesToBeHtmlElements':_0xf7d311};}var b=class extends _0x183bbe{execute(_0xadc5df){const _0x47d0e0=new _0x1a490a(_0xadc5df['content']['document']),_0xa31f6b=_0x47d0e0['createRangeIn'](_0xadc5df['content']),_0x3e6ad7=[...new _0x9eb54a(new _0xa0eabd(_0x47d0e0['document']['stylesProcessor']))['blockElements'],'font'],_0x4eca1b=_0xa31f6b['getItems']();for(const _0x3caec7 of _0x4eca1b)if(_0x3caec7['is']('element')&&_0x3e6ad7['includes'](_0x3caec7['name'])){if(_0x3caec7['hasStyle']('mso-list')&&'none'!==_0x3caec7['getStyle']('mso-list')){P(_0x3caec7,_0x47d0e0,v(_0x3caec7));continue;}F(_0x3caec7,_0x47d0e0,v(_0x3caec7));}}isActive(_0x233989){return super['isActive'](_0x233989)||u(_0x233989);}},x=class extends _0xe14af8{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x3f1b88];}init(){const _0x15aafc=this['editor'],_0x42fd7c=_0x15aafc['plugins']['get']('PasteFromOffice'),_0x310c2c=_0x15aafc['editing']['view']['document'],_0xfc9900=new b(_0x310c2c);_0x42fd7c['registerNormalizer'](_0xfc9900,_0x3e17da['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x22bc31=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x235700;for(const _0x16a294 in _0x22bc31){const _0x7ca083=_0x16a294,_0x28f6d2=_0x22bc31[_0x7ca083];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x28f6d2||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x28f6d2||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x28f6d2||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x28f6d2||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x28f6d2||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x28f6d2||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x28f6d2){delete _0x22bc31[_0x7ca083],_0x235700=_0x28f6d2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x235700&&_0x22bc31['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x235700&&_0x22bc31['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x235700&&_0x22bc31['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x235700&&_0x22bc31['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x235700&&_0x22bc31['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x235700&&_0x22bc31['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0xe14af8{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x3f1b88,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.4.0-alpha.0",
3
+ "version": "48.4.0-alpha.1",
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.4.0-alpha.0",
35
- "@ckeditor/ckeditor5-core": "48.4.0-alpha.0",
36
- "@ckeditor/ckeditor5-engine": "48.4.0-alpha.0",
37
- "@ckeditor/ckeditor5-paste-from-office": "48.4.0-alpha.0",
38
- "@ckeditor/ckeditor5-utils": "48.4.0-alpha.0"
34
+ "@ckeditor/ckeditor5-clipboard": "48.4.0-alpha.1",
35
+ "@ckeditor/ckeditor5-core": "48.4.0-alpha.1",
36
+ "@ckeditor/ckeditor5-engine": "48.4.0-alpha.1",
37
+ "@ckeditor/ckeditor5-paste-from-office": "48.4.0-alpha.1",
38
+ "@ckeditor/ckeditor5-utils": "48.4.0-alpha.1"
39
39
  },
40
40
  "files": [
41
41
  "dist",