@ckeditor/ckeditor5-paste-from-office-enhanced 48.4.0-alpha.5 → 48.4.0-alpha.6

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 _0x1ccdcb}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x8ba53d,PasteFromOfficeMSWordNormalizer as _0x9319e1}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x2ee922,uid as _0x2d2dda}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x380b04,ViewDomConverter as _0x1efe36,ViewUpcastWriter as _0x5b0491}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x14ce8f){return f['test'](_0x14ce8f);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x54a2db,_0x5d3137){const _0x517974=new Map();for(const [_0x164de4,_0x3c59da]of _0x5d3137){if(!_0x164de4['tagName']&&!_0x164de4['className'])continue;const _0x31e744=!_0x164de4['tagName']||_0x54a2db['name']===_0x164de4['tagName'],_0x47f592=!_0x164de4['className']||_0x54a2db['hasClass'](_0x164de4['className']);_0x31e744&&_0x47f592&&_0x517974['set'](_0x164de4,_0x3c59da);}return _0x517974;}function m(_0x532b75){const _0x1600bb={};for(let _0x4c514f=0x0;_0x4c514f<_0x532b75['length'];_0x4c514f++){const _0x558eab=_0x532b75[_0x4c514f],_0x417ed4=_0x532b75['getPropertyValue'](_0x558eab);'initial'!==_0x417ed4&&(_0x1600bb[_0x558eab]=_0x417ed4);}return _0x1600bb;}function w(_0x4e42f0){const _0x25ac58=_0x4e42f0['split'](',')['map'](_0x5e2129=>_0x5e2129['trim']()),_0xc9c17d=[];for(const _0x3dc6ce of _0x25ac58){const _0x156e67=l['exec'](_0x3dc6ce);_0x156e67&&_0xc9c17d['push'](_0x156e67['groups']);}return _0xc9c17d;}function y(_0x182cc7){const _0x2ad3f6={};for(const _0x4730f2 of _0x182cc7)Object['assign'](_0x2ad3f6,_0x4730f2);return _0x2ad3f6;}var g=class extends _0x9319e1{execute(_0x2bed6a){const {styles:_0x5e4d21,stylesString:_0x8b9a8}=_0x2bed6a['extraContent'],_0x1e69f2=new _0x5b0491(_0x2bed6a['content']['document']),_0x2ce289=_0x1e69f2['createRangeIn'](_0x2bed6a['content']),_0x8f9d46=function(_0x3438b1){const _0xbf0cd=new Map();for(const _0x3a14e6 in _0x3438b1){const _0x1265bf=w(_0x3a14e6),_0x3becef=_0x3438b1[_0x3a14e6];for(const _0x38a303 of _0x1265bf)_0xbf0cd['set'](_0x38a303,_0x3becef);}return _0xbf0cd;}(function(_0x288e83){const _0x2bb00c={};for(const _0x180ec8 of _0x288e83)for(const _0x271366 of _0x180ec8['cssRules'])if(_0x271366 instanceof CSSStyleRule){const _0xbaa753=m(_0x271366['style']);_0x2bb00c[_0x271366['selectorText']]=Object['assign']({},_0x2bb00c[_0x271366['selectorText']]||{},_0xbaa753);}return _0x2bb00c;}(_0x5e4d21)),_0x1077e7=function(_0x25d6a5){const _0x553a77={},_0x3fc923=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0xfef652=/\.(?<className>[\w-]+)/g;let _0x1bb265;for(;null!==(_0x1bb265=_0x3fc923['exec'](_0x25d6a5));){const {selector:_0x3513b2,color:_0x2af460,patternType:_0x29c5ef}=_0x1bb265['groups'];if('auto'!==_0x2af460['toLowerCase']()&&'none'!==_0x29c5ef['toLowerCase']()&&'auto'!==_0x29c5ef['toLowerCase']()){for(const _0x379520 of _0x3513b2['matchAll'](_0xfef652))_0x553a77[_0x379520['groups']['className']]=_0x2af460;}}return _0x553a77;}(_0x8b9a8);for(const _0x3324a0 of _0x2ce289){if('elementStart'!==_0x3324a0['type'])continue;const _0x4a4468=_0x3324a0['item'],_0x5ec3f6=d(_0x4a4468,_0x8f9d46),_0x48f946=_0x5ec3f6['size']?y(Array['from'](_0x5ec3f6['values']())):{};if(!('background-color'in _0x48f946)&&!('background'in _0x48f946)){for(const [_0x10ba0c,_0x51a2a4]of Object['entries'](_0x1077e7))if(_0x4a4468['hasClass'](_0x10ba0c)){_0x48f946['background-color']=_0x51a2a4;break;}}for(const _0x2e747a in _0x48f946)_0x4a4468['hasStyle'](_0x2e747a)||_0x1e69f2['setStyle'](_0x2e747a,_0x48f946[_0x2e747a],_0x4a4468);}}isActive(_0x3dac40){return super['isActive'](_0x3dac40)||u(_0x3dac40);}},p=class extends _0x1ccdcb{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x8ba53d];}init(){const _0x353649=this['editor'],_0x35dd9f=_0x353649['plugins']['get']('PasteFromOffice'),_0x5030d8=_0x353649['editing']['view']['document'],_0x56bd19=new g(_0x5030d8);_0x35dd9f['registerNormalizer'](_0x56bd19,_0x2ee922['high']+0xb);}afterInit(){!async function(_0x5ecaca){const _0x26ce9d='sG65Crk1cd2igLN7zIEAYju9J3hbPBtnFMxQf4HwZal0qTSVKyDmoRvUXepWO8',_0x33b465=0x791a0,_0x2f7c5a=window['Date']['now'](),_0x407277=_0x5ecaca['editor'],_0x3a2b59=new window['Promise'](_0x4f2b9f=>{_0x407277['once']('ready',_0x4f2b9f);}),_0x569aec={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x643b49=_0x407277['config']['get']('licenseKey');async function _0x117b57(){let _0x5e6698,_0x305f07=null,_0x272ce9=null;try{return'GPL'==_0x643b49?'NotAllowed':(_0x5e6698=_0x2692da(),_0x5e6698?(_0x5e6698['usageEndpoint']&&(_0x272ce9=_0x115408(_0x5e6698['usageEndpoint'],_0x5e6698['jti'])),await _0x3c4ff1()?_0x3d4e91()?_0x1532d6()?'Expired':_0x4ac7da()?('evaluation'==_0x5e6698['licenseType']&&(_0x305f07=_0x2c57ee('EvaluationLimit')),await _0x48da2e()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x1532d6(){const _0x3f6029=['evaluation','trial']['includes'](_0x5e6698['licenseType'])?_0x2f7c5a/0x3e8:0xe10*_0x33b465;return _0x5e6698['exp']<_0x3f6029;}function _0x3d4e91(){const _0x50606d=_0x5e6698['features'];return!!_0x50606d&&(!!_0x50606d['includes']('*')||(!!_0x50606d['includes']('POE')||(!!_0x50606d['includes']('PP')||!(!_0x50606d['includes']('TRILIUM')||!_0x42f2b9()))));}function _0x4ac7da(){const _0x2728eb=_0x5e6698['licensedHosts'];if(!_0x2728eb||0x0==_0x2728eb['length'])return!0x0;const {hostname:_0x320d5f}=new URL(window['location']['href']);if(_0x2728eb['includes'](_0x320d5f))return!0x0;const _0x63d9e7=_0x320d5f['split']('.');return _0x2728eb['filter'](_0x318142=>_0x318142['includes']('*'))['map'](_0x34cf59=>_0x34cf59['split']('.'))['filter'](_0x5ec26d=>_0x5ec26d['length']<=_0x63d9e7['length'])['map'](_0x42de95=>Array(_0x63d9e7['length']-_0x42de95['length'])['fill']('*'===_0x42de95[0x0]?'*':'')['concat'](_0x42de95))['some'](_0x399f34=>_0x63d9e7['every']((_0x5bf418,_0x4f6ec2)=>_0x399f34[_0x4f6ec2]===_0x5bf418||'*'===_0x399f34[_0x4f6ec2]));}function _0x48da2e(){return _0x305f07&&_0x272ce9?new window['Promise']((_0x2b4c4c,_0x36cbb7)=>{_0x305f07['then'](_0x2b4c4c,_0x36cbb7),_0x272ce9['then'](_0x218b4d=>{'Valid'!=_0x218b4d&&_0x2b4c4c(_0x218b4d);},_0x36cbb7);}):_0x305f07||_0x272ce9||'Valid';}}function _0x115408(_0x499824,_0x135ce7){return new window['Promise'](_0x18730f=>{if(_0x129af5())return _0x18730f('Valid');_0x20abee(),_0x407277['decorate']('_sendUsageRequest');let _0x445a17=!0x1;const _0xbbae31=_0x2d2dda();function _0x11836f(_0x163295){return!!_0x163295&&('object'==typeof _0x163295||'function'==typeof _0x163295)&&'function'==typeof _0x163295['then']&&'function'==typeof _0x163295['catch'];}function _0x201358(_0x27f21e){_0x2218dc(_0x27f21e)['then'](_0x4926e4=>_0x4926e4&&'ok'==_0x4926e4['status']?_0x4703ea(_0x1cf01e(_0xbbae31+_0x135ce7))!=_0x4926e4['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x39ea80=>(_0x2a4d41(),_0x39ea80),()=>{const _0x1745b4=_0x1a5d8b();return null==_0x1745b4?(_0x2a4d41(),'Valid'):_0x2f7c5a-_0x1745b4>0x240c8400?'UsageLimit':'Valid';})['then'](_0x18730f)['catch'](()=>{_0x18730f('UsageLimit');});const _0x43c814=0x36ee80;function _0x2a4d41(){const _0x2f8a46='llct-'+_0x4703ea(_0x1cf01e(_0x499824)),_0x2279d2=_0x3b4097(_0x4703ea(window['Math']['ceil'](_0x2f7c5a/_0x43c814)));window['localStorage']['setItem'](_0x2f8a46,_0x2279d2);}function _0x1a5d8b(){const _0x190210='llct-'+_0x4703ea(_0x1cf01e(_0x499824)),_0x2b6736=window['localStorage']['getItem'](_0x190210);return _0x2b6736?window['parseInt'](_0x3b4097(_0x2b6736),0x10)*_0x43c814:null;}function _0x2218dc(_0x1abed7){return new window['Promise']((_0x2d549b,_0x3eb0aa)=>{_0x1abed7['then'](_0x2d549b,_0x3eb0aa),window['setTimeout'](_0x3eb0aa,0x1d4c0);});}}_0x407277['on']('_sendUsageRequest',(_0x2573a6,_0x12fe93)=>{if(_0x12fe93[0x0]!=_0x499824)return _0x18730f('UsageLimit');_0x12fe93[0x1]={..._0x12fe93[0x1],'requestId':_0xbbae31};},{'priority':'high'}),_0x407277['on']('_sendUsageRequest',_0x5834ba=>{_0x11836f(_0x5834ba['return'])&&(_0x445a17=!0x0,_0x201358(_0x5834ba['return']));},{'priority':'low'}),_0x3a2b59['then'](()=>{_0x445a17||_0x18730f('UsageLimit');});});function _0x129af5(){return'auto'==_0x407277['editing']['view']['_overlayModeHint'];}function _0x20abee(){_0x407277['editing']['view']['_overlayModeHint']='auto';}}function _0x2c57ee(_0x9af080){const _0x483f7c=[new window['Promise'](_0x5145c4=>setTimeout(_0x5145c4,0x93ecc)),_0x3a2b59['then'](()=>new window['Promise'](_0x3d2364=>{let _0x590e3c=0x0;_0x407277['model']['on']('applyOperation',(_0x1074e8,_0x110f59)=>{_0x110f59[0x0]['isDocumentOperation']&&_0x590e3c++,0x5e8==_0x590e3c&&(_0x3d2364(),_0x1074e8['off']());});}))];return window['Promise']['race'](_0x483f7c)['then'](()=>_0x9af080);}async function _0x1cddc4(){await _0x3a2b59,_0x407277['model']['change']=_0x2bf9a3,_0x407277['model']['enqueueChange']=_0x2bf9a3,_0x407277['enableReadOnlyMode']('model');}function _0x42f2b9(){return window['glob']&&window['glob']['triliumVersion'];}function _0x503371(_0x4e90b5){const _0x23c860=_0x587def();_0x407277[_0x23c860]='pasteFromOfficeEnhancedLicenseKey'+_0x4e90b5,'Valid'!=_0x4e90b5&&_0x1cddc4();}function _0x587def(){const _0x13cfaa=window['String'](window['performance']['now']())['replace']('.','');let _0x1371b9='s';for(let _0x358fc8=0x0;_0x358fc8<_0x13cfaa['length'];_0x358fc8+=0x2){let _0x3bbf78=window['parseInt'](_0x13cfaa['substring'](_0x358fc8,_0x358fc8+0x2));_0x3bbf78>=0x3e&&(_0x3bbf78-=0x3e),_0x1371b9+=_0x26ce9d[_0x3bbf78];}return _0x1371b9;}function _0x2692da(){const _0x52247e=_0x643b49['split']('.');if(0x3!=_0x52247e['length'])return null;return _0x14b146(_0x52247e[0x1]);function _0x14b146(_0x43305f){const _0x122efc=_0xf4a9ec(_0x43305f);return _0x122efc&&_0x480e8e()?_0x122efc:null;function _0x480e8e(){const _0x2f7f09=_0x122efc['jti'],_0x54d2ae=window['parseInt'](_0x2f7f09['substring'](_0x2f7f09['length']-0x8),0x10),_0x26e029={..._0x122efc,'jti':_0x2f7f09['substring'](0x0,_0x2f7f09['length']-0x8)};return delete _0x26e029['vc'],_0x1cf01e(_0x26e029)==_0x54d2ae;}}}async function _0x3c4ff1(){let _0x1a2c8f=!0x0;try{const [_0x1192bc,_0x135630,_0x9aec9f]=_0x643b49['split']('.');return _0x5bf6d5(_0x1192bc),await _0x3d2282(_0x1192bc,_0x135630,_0x9aec9f),_0x1a2c8f;}catch{return!0x1;}function _0x5bf6d5(_0x51ab18){const _0x30067f=_0xf4a9ec(_0x51ab18);_0x30067f&&'ES256'==_0x30067f['alg']||(_0x1a2c8f=!0x1);}async function _0x3d2282(_0x4a6010,_0x537a6f,_0x4e6276){const _0x3c135a=window['Uint8Array']['from'](_0x2c1b99(_0x4e6276),_0xe30d90=>_0xe30d90['charCodeAt'](0x0)),_0x4630aa=new window['TextEncoder']()['encode'](_0x4a6010+'.'+_0x537a6f),_0x3eb674=window['crypto']['subtle'];if(!_0x3eb674)return;const _0x3f3559=await _0x3eb674['importKey']('jwk',_0x569aec,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x3eb674['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x3f3559,_0x3c135a,_0x4630aa)||(_0x1a2c8f=!0x1);}}function _0xf4a9ec(_0xeca844){return _0xeca844['startsWith']('ey')?JSON['parse'](_0x2c1b99(_0xeca844)):null;}function _0x2c1b99(_0x1e0119){return window['atob'](_0x1e0119['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x1cf01e(_0x1791d4){let _0x347db4=0x1505;function _0x13ba08(_0x5a8db3){for(let _0x88ae12=0x0;_0x88ae12<_0x5a8db3['length'];_0x88ae12++){const _0x5e174b=_0x5a8db3['charCodeAt'](_0x88ae12);_0x347db4=(_0x347db4<<0x5)+_0x347db4+_0x5e174b,_0x347db4&=_0x347db4;}}function _0x4fc3f0(_0x5248e7){Array['isArray'](_0x5248e7)?_0x5248e7['forEach'](_0x4fc3f0):_0x5248e7&&'object'==typeof _0x5248e7?Object['entries'](_0x5248e7)['sort']()['forEach'](([_0x253337,_0x23b84d])=>{_0x13ba08(_0x253337),_0x4fc3f0(_0x23b84d);}):_0x13ba08(window['String'](_0x5248e7));}return _0x4fc3f0(_0x1791d4),_0x347db4>>>0x0;}function _0x4703ea(_0x10bf99){return _0x10bf99['toString'](0x10)['padStart'](0x8,'0');}function _0x3b4097(_0x1459be){return _0x1459be['split']('')['reverse']()['join']('');}function _0x2bf9a3(){}_0x503371(await _0x117b57());}(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'],[_0x228498=>Number(_0x228498)>=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(_0x581e5b){return h['includes'](_0x581e5b);}function v(_0x49a6dd){return Array['from'](_0x49a6dd['getStyleNames']())['filter'](E);}function F(_0x443914,_0x18d347,_0x39301a){const {spanStyles:_0x5c1686,stylesToBeHtmlElements:_0x5b78d2}=K(_0x443914,_0x39301a);!function(_0x35e96d,_0x23bb8a,_0x3101b4){for(const _0x412a4e in _0x3101b4)_0x3101b4[_0x412a4e]['forEach'](([,_0x111122])=>{const _0x38f0cd=_0x23bb8a['createElement'](_0x111122,[],_0x35e96d['getChildren']());_0x23bb8a['insertChild'](0x0,_0x38f0cd,_0x35e96d);}),_0x23bb8a['removeStyle'](_0x412a4e,_0x35e96d);}(_0x443914,_0x18d347,_0x5b78d2),function(_0x17e1a7,_0x4cb3cf,_0x1d341c){if(!Object['keys'](_0x1d341c)['length'])return;const _0x58c4c4=_0x4cb3cf['createElement']('span',[],_0x17e1a7['getChildren']());_0x4cb3cf['setStyle'](_0x1d341c,_0x58c4c4),_0x4cb3cf['insertChild'](0x0,_0x58c4c4,_0x17e1a7),_0x4cb3cf['removeStyle'](Object['keys'](_0x1d341c),_0x17e1a7);}(_0x443914,_0x18d347,_0x5c1686);}function P(_0xcc1a03,_0x1fa231,_0x4ed7eb){const {spanStyles:_0x5c027e}=K(_0xcc1a03,_0x4ed7eb),_0x4d644e=Object['keys'](_0x5c027e);if(!_0x4d644e['length'])return;let _0x2c31e4=!0x1;for(const _0x42aeb7 of _0xcc1a03['getChildren']())if(_0x42aeb7['is']('element','span')){_0x2c31e4=!0x0;for(const [_0x515275,_0xa8b1eb]of Object['entries'](_0x5c027e))_0x42aeb7['hasStyle'](_0x515275)||_0x1fa231['setStyle']({[_0x515275]:_0xa8b1eb},_0x42aeb7);}_0x2c31e4&&_0x1fa231['removeStyle'](_0x4d644e,_0xcc1a03);}function K(_0x3e8eaf,_0x157420){const _0x35a257={},_0x58cc77={};return _0x157420['forEach'](_0x40eedb=>{const _0xd71ad=_0x3e8eaf['getStyle'](_0x40eedb);if(_0xd71ad){if(function(_0x547222){return O['includes'](_0x547222);}(_0x40eedb))_0x35a257[_0x40eedb]=_0xd71ad;else{if(function(_0x1f1fc6){return _0x1f1fc6 in L;}(_0x40eedb)){const _0x250b12=_0xd71ad['split']('\x20');L[_0x40eedb]['forEach'](([_0x193a47,_0x31d70f])=>{for(const _0x32eca8 of _0x250b12)('function'==typeof _0x193a47&&_0x193a47(_0x32eca8)||_0x193a47===_0x32eca8)&&(_0x58cc77[_0x40eedb]=[..._0x58cc77[_0x40eedb]||[],[_0x193a47,_0x31d70f]]);});}}}}),{'spanStyles':_0x35a257,'stylesToBeHtmlElements':_0x58cc77};}var b=class extends _0x9319e1{execute(_0x499957){const _0x1bbe41=new _0x5b0491(_0x499957['content']['document']),_0x2d0c03=_0x1bbe41['createRangeIn'](_0x499957['content']),_0x533ad1=[...new _0x1efe36(new _0x380b04(_0x1bbe41['document']['stylesProcessor']))['blockElements'],'font'],_0x5630ba=_0x2d0c03['getItems']();for(const _0x3a4b62 of _0x5630ba)if(_0x3a4b62['is']('element')&&_0x533ad1['includes'](_0x3a4b62['name'])){if(_0x3a4b62['hasStyle']('mso-list')&&'none'!==_0x3a4b62['getStyle']('mso-list')){P(_0x3a4b62,_0x1bbe41,v(_0x3a4b62));continue;}F(_0x3a4b62,_0x1bbe41,v(_0x3a4b62));}}isActive(_0x3b9ede){return super['isActive'](_0x3b9ede)||u(_0x3b9ede);}},x=class extends _0x1ccdcb{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x8ba53d];}init(){const _0x2dbb84=this['editor'],_0xa9680c=_0x2dbb84['plugins']['get']('PasteFromOffice'),_0x5c9424=_0x2dbb84['editing']['view']['document'],_0x594ae2=new b(_0x5c9424);_0xa9680c['registerNormalizer'](_0x594ae2,_0x2ee922['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2ba8d7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x59b106;for(const _0xf1de60 in _0x2ba8d7){const _0x4d1ccc=_0xf1de60,_0x484a9a=_0x2ba8d7[_0x4d1ccc];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x484a9a||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x484a9a||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x484a9a||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x484a9a||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x484a9a||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x484a9a||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x484a9a){delete _0x2ba8d7[_0x4d1ccc],_0x59b106=_0x484a9a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x59b106&&_0x2ba8d7['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x59b106&&_0x2ba8d7['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x59b106&&_0x2ba8d7['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x59b106&&_0x2ba8d7['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x59b106&&_0x2ba8d7['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x59b106&&_0x2ba8d7['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x1ccdcb{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x8ba53d,p,x];}};export{k as PasteFromOfficeEnhanced};
23
+ import{Plugin as _0x494b68}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x1f537b,PasteFromOfficeMSWordNormalizer as _0x4fd03a}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x41b03f,uid as _0x160075}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x12ac1d,ViewDomConverter as _0x427fc1,ViewUpcastWriter as _0x141f89}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x42a3ee){return f['test'](_0x42a3ee);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x4e6ae5,_0x17556e){const _0x4b1cf7=new Map();for(const [_0x21629d,_0x5b5bd8]of _0x17556e){if(!_0x21629d['tagName']&&!_0x21629d['className'])continue;const _0x14ed72=!_0x21629d['tagName']||_0x4e6ae5['name']===_0x21629d['tagName'],_0x2b6827=!_0x21629d['className']||_0x4e6ae5['hasClass'](_0x21629d['className']);_0x14ed72&&_0x2b6827&&_0x4b1cf7['set'](_0x21629d,_0x5b5bd8);}return _0x4b1cf7;}function m(_0x1c2da7){const _0x5ba922={};for(let _0x3379d7=0x0;_0x3379d7<_0x1c2da7['length'];_0x3379d7++){const _0xf844cf=_0x1c2da7[_0x3379d7],_0x31f61e=_0x1c2da7['getPropertyValue'](_0xf844cf);'initial'!==_0x31f61e&&(_0x5ba922[_0xf844cf]=_0x31f61e);}return _0x5ba922;}function w(_0x1ad861){const _0x30888f=_0x1ad861['split'](',')['map'](_0x3ef91c=>_0x3ef91c['trim']()),_0x2e5a12=[];for(const _0x441846 of _0x30888f){const _0x7fe6b6=l['exec'](_0x441846);_0x7fe6b6&&_0x2e5a12['push'](_0x7fe6b6['groups']);}return _0x2e5a12;}function y(_0x4ff068){const _0x126dba={};for(const _0x3ede39 of _0x4ff068)Object['assign'](_0x126dba,_0x3ede39);return _0x126dba;}var g=class extends _0x4fd03a{execute(_0x19cdf6){const {styles:_0x21e927,stylesString:_0x57a00e}=_0x19cdf6['extraContent'],_0x53f14f=new _0x141f89(_0x19cdf6['content']['document']),_0x2cbcfa=_0x53f14f['createRangeIn'](_0x19cdf6['content']),_0x2a47c1=function(_0x898394){const _0xa3371f=new Map();for(const _0x5806ca in _0x898394){const _0x2c49a5=w(_0x5806ca),_0x31305e=_0x898394[_0x5806ca];for(const _0x430ba3 of _0x2c49a5)_0xa3371f['set'](_0x430ba3,_0x31305e);}return _0xa3371f;}(function(_0x1d47e9){const _0x2e34c4={};for(const _0x21d159 of _0x1d47e9)for(const _0x5613ae of _0x21d159['cssRules'])if(_0x5613ae instanceof CSSStyleRule){const _0x5a20f1=m(_0x5613ae['style']);_0x2e34c4[_0x5613ae['selectorText']]=Object['assign']({},_0x2e34c4[_0x5613ae['selectorText']]||{},_0x5a20f1);}return _0x2e34c4;}(_0x21e927)),_0x56c804=function(_0x51f71c){const _0x5846ce={},_0x59c0e0=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x285442=/\.(?<className>[\w-]+)/g;let _0x2cf2bf;for(;null!==(_0x2cf2bf=_0x59c0e0['exec'](_0x51f71c));){const {selector:_0x2ddc2d,color:_0x34d0d2,patternType:_0x452e79}=_0x2cf2bf['groups'];if('auto'!==_0x34d0d2['toLowerCase']()&&'none'!==_0x452e79['toLowerCase']()&&'auto'!==_0x452e79['toLowerCase']()){for(const _0x16405d of _0x2ddc2d['matchAll'](_0x285442))_0x5846ce[_0x16405d['groups']['className']]=_0x34d0d2;}}return _0x5846ce;}(_0x57a00e);for(const _0x254426 of _0x2cbcfa){if('elementStart'!==_0x254426['type'])continue;const _0x460df9=_0x254426['item'],_0xd7bc3f=d(_0x460df9,_0x2a47c1),_0x44d505=_0xd7bc3f['size']?y(Array['from'](_0xd7bc3f['values']())):{};if(!('background-color'in _0x44d505)&&!('background'in _0x44d505)){for(const [_0xcc4760,_0x435eb4]of Object['entries'](_0x56c804))if(_0x460df9['hasClass'](_0xcc4760)){_0x44d505['background-color']=_0x435eb4;break;}}for(const _0x437efb in _0x44d505)_0x460df9['hasStyle'](_0x437efb)||_0x53f14f['setStyle'](_0x437efb,_0x44d505[_0x437efb],_0x460df9);}}isActive(_0xd9ceb3){return super['isActive'](_0xd9ceb3)||u(_0xd9ceb3);}},p=class extends _0x494b68{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x1f537b];}init(){const _0x4e17bb=this['editor'],_0x907ddb=_0x4e17bb['plugins']['get']('PasteFromOffice'),_0x5c0243=_0x4e17bb['editing']['view']['document'],_0x10e0b1=new g(_0x5c0243);_0x907ddb['registerNormalizer'](_0x10e0b1,_0x41b03f['high']+0xb);}afterInit(){!async function(_0x46b5dc){const _0x39102a='sG65Crk1cd2igLN7zIEAYju9J3hbPBtnFMxQf4HwZal0qTSVKyDmoRvUXepWO8',_0x4f3b98=0x791b8,_0x45533a=window['Date']['now'](),_0x38c685=_0x46b5dc['editor'],_0x40a12a=new window['Promise'](_0x4694ce=>{_0x38c685['once']('ready',_0x4694ce);}),_0x5d4706={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0xdd8272=_0x38c685['config']['get']('licenseKey');async function _0xbc9e71(){let _0x189652,_0x5407cd=null,_0x48a025=null;try{return'GPL'==_0xdd8272?'NotAllowed':(_0x189652=_0x18f39d(),_0x189652?(_0x189652['usageEndpoint']&&(_0x48a025=_0x1efd3b(_0x189652['usageEndpoint'],_0x189652['jti'])),await _0x582486()?_0x14d5a5()?_0x55e973()?'Expired':_0x57ddab()?('evaluation'==_0x189652['licenseType']&&(_0x5407cd=_0x41b636('EvaluationLimit')),await _0x423e1b()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x55e973(){const _0x431f72=['evaluation','trial']['includes'](_0x189652['licenseType'])?_0x45533a/0x3e8:0xe10*_0x4f3b98;return _0x189652['exp']<_0x431f72;}function _0x14d5a5(){const _0x11138c=_0x189652['features'];return!!_0x11138c&&(!!_0x11138c['includes']('*')||(!!_0x11138c['includes']('POE')||(!!_0x11138c['includes']('PP')||!(!_0x11138c['includes']('TRILIUM')||!_0x51c468()))));}function _0x57ddab(){const _0x4da2a8=_0x189652['licensedHosts'];if(!_0x4da2a8||0x0==_0x4da2a8['length'])return!0x0;const {hostname:_0x592b8c}=new URL(window['location']['href']);if(_0x4da2a8['includes'](_0x592b8c))return!0x0;const _0x2e43f0=_0x592b8c['split']('.');return _0x4da2a8['filter'](_0x395d0f=>_0x395d0f['includes']('*'))['map'](_0x331a49=>_0x331a49['split']('.'))['filter'](_0x47da37=>_0x47da37['length']<=_0x2e43f0['length'])['map'](_0x1fd7eb=>Array(_0x2e43f0['length']-_0x1fd7eb['length'])['fill']('*'===_0x1fd7eb[0x0]?'*':'')['concat'](_0x1fd7eb))['some'](_0x46c486=>_0x2e43f0['every']((_0x24fe8e,_0x275830)=>_0x46c486[_0x275830]===_0x24fe8e||'*'===_0x46c486[_0x275830]));}function _0x423e1b(){return _0x5407cd&&_0x48a025?new window['Promise']((_0x2abb60,_0x52fc40)=>{_0x5407cd['then'](_0x2abb60,_0x52fc40),_0x48a025['then'](_0x89e84b=>{'Valid'!=_0x89e84b&&_0x2abb60(_0x89e84b);},_0x52fc40);}):_0x5407cd||_0x48a025||'Valid';}}function _0x1efd3b(_0x51aba7,_0x43dc84){return new window['Promise'](_0x37291e=>{if(_0x129b11())return _0x37291e('Valid');_0x2da066(),_0x38c685['decorate']('_sendUsageRequest');let _0x503adb=!0x1;const _0x418fa2=_0x160075();function _0x14220b(_0x5ec034){return!!_0x5ec034&&('object'==typeof _0x5ec034||'function'==typeof _0x5ec034)&&'function'==typeof _0x5ec034['then']&&'function'==typeof _0x5ec034['catch'];}function _0x5ccd7e(_0x3ba790){_0xf1ab8c(_0x3ba790)['then'](_0x173169=>_0x173169&&'ok'==_0x173169['status']?_0x2498d3(_0x4e73a4(_0x418fa2+_0x43dc84))!=_0x173169['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x3f6f50=>(_0x203095(),_0x3f6f50),()=>{const _0x52536c=_0x4b7511();return null==_0x52536c?(_0x203095(),'Valid'):_0x45533a-_0x52536c>0x240c8400?'UsageLimit':'Valid';})['then'](_0x37291e)['catch'](()=>{_0x37291e('UsageLimit');});const _0x246899=0x36ee80;function _0x203095(){const _0x24e0b1='llct-'+_0x2498d3(_0x4e73a4(_0x51aba7)),_0x57f0aa=_0xff4bdd(_0x2498d3(window['Math']['ceil'](_0x45533a/_0x246899)));window['localStorage']['setItem'](_0x24e0b1,_0x57f0aa);}function _0x4b7511(){const _0x2427cd='llct-'+_0x2498d3(_0x4e73a4(_0x51aba7)),_0x522963=window['localStorage']['getItem'](_0x2427cd);return _0x522963?window['parseInt'](_0xff4bdd(_0x522963),0x10)*_0x246899:null;}function _0xf1ab8c(_0x6604c3){return new window['Promise']((_0x191eac,_0x4e2a92)=>{_0x6604c3['then'](_0x191eac,_0x4e2a92),window['setTimeout'](_0x4e2a92,0x1d4c0);});}}_0x38c685['on']('_sendUsageRequest',(_0x747e48,_0x2ba85b)=>{if(_0x2ba85b[0x0]!=_0x51aba7)return _0x37291e('UsageLimit');_0x2ba85b[0x1]={..._0x2ba85b[0x1],'requestId':_0x418fa2};},{'priority':'high'}),_0x38c685['on']('_sendUsageRequest',_0x2527e2=>{_0x14220b(_0x2527e2['return'])&&(_0x503adb=!0x0,_0x5ccd7e(_0x2527e2['return']));},{'priority':'low'}),_0x40a12a['then'](()=>{_0x503adb||_0x37291e('UsageLimit');});});function _0x129b11(){return'auto'==_0x38c685['editing']['view']['_overlayModeHint'];}function _0x2da066(){_0x38c685['editing']['view']['_overlayModeHint']='auto';}}function _0x41b636(_0x588689){const _0xab22d9=[new window['Promise'](_0x1fd336=>setTimeout(_0x1fd336,0x93ecc)),_0x40a12a['then'](()=>new window['Promise'](_0x2eb89a=>{let _0x2e8548=0x0;_0x38c685['model']['on']('applyOperation',(_0x40dd65,_0x711137)=>{_0x711137[0x0]['isDocumentOperation']&&_0x2e8548++,0x5e8==_0x2e8548&&(_0x2eb89a(),_0x40dd65['off']());});}))];return window['Promise']['race'](_0xab22d9)['then'](()=>_0x588689);}async function _0x929f7(){await _0x40a12a,_0x38c685['model']['change']=_0x250532,_0x38c685['model']['enqueueChange']=_0x250532,_0x38c685['enableReadOnlyMode']('model');}function _0x51c468(){return window['glob']&&window['glob']['triliumVersion'];}function _0x283cad(_0x3bf594){const _0x1e64bc=_0x4a7c3b();_0x38c685[_0x1e64bc]='pasteFromOfficeEnhancedLicenseKey'+_0x3bf594,'Valid'!=_0x3bf594&&_0x929f7();}function _0x4a7c3b(){const _0x2e56cb=window['String'](window['performance']['now']())['replace']('.','');let _0x5ba298='s';for(let _0x324ec6=0x0;_0x324ec6<_0x2e56cb['length'];_0x324ec6+=0x2){let _0x3b6e9e=window['parseInt'](_0x2e56cb['substring'](_0x324ec6,_0x324ec6+0x2));_0x3b6e9e>=0x3e&&(_0x3b6e9e-=0x3e),_0x5ba298+=_0x39102a[_0x3b6e9e];}return _0x5ba298;}function _0x18f39d(){const _0x507591=_0xdd8272['split']('.');if(0x3!=_0x507591['length'])return null;return _0x29adfc(_0x507591[0x1]);function _0x29adfc(_0x1af7db){const _0x50dd1c=_0x587f33(_0x1af7db);return _0x50dd1c&&_0x2a67b4()?_0x50dd1c:null;function _0x2a67b4(){const _0x5d4337=_0x50dd1c['jti'],_0x30d1f8=window['parseInt'](_0x5d4337['substring'](_0x5d4337['length']-0x8),0x10),_0x4822c4={..._0x50dd1c,'jti':_0x5d4337['substring'](0x0,_0x5d4337['length']-0x8)};return delete _0x4822c4['vc'],_0x4e73a4(_0x4822c4)==_0x30d1f8;}}}async function _0x582486(){let _0x21cad6=!0x0;try{const [_0x56d682,_0x592597,_0x421bd5]=_0xdd8272['split']('.');return _0x12cef7(_0x56d682),await _0x3afaf8(_0x56d682,_0x592597,_0x421bd5),_0x21cad6;}catch{return!0x1;}function _0x12cef7(_0x5dea37){const _0x12610f=_0x587f33(_0x5dea37);_0x12610f&&'ES256'==_0x12610f['alg']||(_0x21cad6=!0x1);}async function _0x3afaf8(_0x264315,_0x2ed646,_0x301115){const _0x4b430d=window['Uint8Array']['from'](_0x141cdd(_0x301115),_0x40a8b1=>_0x40a8b1['charCodeAt'](0x0)),_0x526d68=new window['TextEncoder']()['encode'](_0x264315+'.'+_0x2ed646),_0x3ac260=window['crypto']['subtle'];if(!_0x3ac260)return;const _0x75f918=await _0x3ac260['importKey']('jwk',_0x5d4706,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x3ac260['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x75f918,_0x4b430d,_0x526d68)||(_0x21cad6=!0x1);}}function _0x587f33(_0x36670f){return _0x36670f['startsWith']('ey')?JSON['parse'](_0x141cdd(_0x36670f)):null;}function _0x141cdd(_0x4eeff3){return window['atob'](_0x4eeff3['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x4e73a4(_0x42e714){let _0x1042ff=0x1505;function _0x34a5bf(_0x5d009c){for(let _0x1ff112=0x0;_0x1ff112<_0x5d009c['length'];_0x1ff112++){const _0x27088f=_0x5d009c['charCodeAt'](_0x1ff112);_0x1042ff=(_0x1042ff<<0x5)+_0x1042ff+_0x27088f,_0x1042ff&=_0x1042ff;}}function _0x73e910(_0x1bd2f4){Array['isArray'](_0x1bd2f4)?_0x1bd2f4['forEach'](_0x73e910):_0x1bd2f4&&'object'==typeof _0x1bd2f4?Object['entries'](_0x1bd2f4)['sort']()['forEach'](([_0x58e45b,_0x130afc])=>{_0x34a5bf(_0x58e45b),_0x73e910(_0x130afc);}):_0x34a5bf(window['String'](_0x1bd2f4));}return _0x73e910(_0x42e714),_0x1042ff>>>0x0;}function _0x2498d3(_0x8f3022){return _0x8f3022['toString'](0x10)['padStart'](0x8,'0');}function _0xff4bdd(_0x2c4ae9){return _0x2c4ae9['split']('')['reverse']()['join']('');}function _0x250532(){}_0x283cad(await _0xbc9e71());}(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'],[_0x339b1e=>Number(_0x339b1e)>=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(_0x1fb5ac){return h['includes'](_0x1fb5ac);}function v(_0x5ec5f0){return Array['from'](_0x5ec5f0['getStyleNames']())['filter'](E);}function F(_0x1901b4,_0x16951f,_0x3c9cb4){const {spanStyles:_0x32f09e,stylesToBeHtmlElements:_0x2bcd3f}=K(_0x1901b4,_0x3c9cb4);!function(_0x3a0645,_0x325f54,_0x1923f6){for(const _0x27bdf9 in _0x1923f6)_0x1923f6[_0x27bdf9]['forEach'](([,_0x206556])=>{const _0x530cd7=_0x325f54['createElement'](_0x206556,[],_0x3a0645['getChildren']());_0x325f54['insertChild'](0x0,_0x530cd7,_0x3a0645);}),_0x325f54['removeStyle'](_0x27bdf9,_0x3a0645);}(_0x1901b4,_0x16951f,_0x2bcd3f),function(_0x2319c1,_0x40889a,_0x31d001){if(!Object['keys'](_0x31d001)['length'])return;const _0xd5f488=_0x40889a['createElement']('span',[],_0x2319c1['getChildren']());_0x40889a['setStyle'](_0x31d001,_0xd5f488),_0x40889a['insertChild'](0x0,_0xd5f488,_0x2319c1),_0x40889a['removeStyle'](Object['keys'](_0x31d001),_0x2319c1);}(_0x1901b4,_0x16951f,_0x32f09e);}function P(_0x37a26a,_0x3d9a1a,_0xf748ab){const {spanStyles:_0x5c3b9f}=K(_0x37a26a,_0xf748ab),_0x12e0c4=Object['keys'](_0x5c3b9f);if(!_0x12e0c4['length'])return;let _0x57ccfb=!0x1;for(const _0x1cc899 of _0x37a26a['getChildren']())if(_0x1cc899['is']('element','span')){_0x57ccfb=!0x0;for(const [_0x35c4b8,_0x1367e5]of Object['entries'](_0x5c3b9f))_0x1cc899['hasStyle'](_0x35c4b8)||_0x3d9a1a['setStyle']({[_0x35c4b8]:_0x1367e5},_0x1cc899);}_0x57ccfb&&_0x3d9a1a['removeStyle'](_0x12e0c4,_0x37a26a);}function K(_0x107cf4,_0x46d138){const _0x45972d={},_0x183d9a={};return _0x46d138['forEach'](_0x3b9ee8=>{const _0x22e5d6=_0x107cf4['getStyle'](_0x3b9ee8);if(_0x22e5d6){if(function(_0x2cd8ac){return O['includes'](_0x2cd8ac);}(_0x3b9ee8))_0x45972d[_0x3b9ee8]=_0x22e5d6;else{if(function(_0x118f30){return _0x118f30 in L;}(_0x3b9ee8)){const _0x44be1d=_0x22e5d6['split']('\x20');L[_0x3b9ee8]['forEach'](([_0x323328,_0x540ebb])=>{for(const _0x4724c3 of _0x44be1d)('function'==typeof _0x323328&&_0x323328(_0x4724c3)||_0x323328===_0x4724c3)&&(_0x183d9a[_0x3b9ee8]=[..._0x183d9a[_0x3b9ee8]||[],[_0x323328,_0x540ebb]]);});}}}}),{'spanStyles':_0x45972d,'stylesToBeHtmlElements':_0x183d9a};}var b=class extends _0x4fd03a{execute(_0x45e183){const _0x1ab3f8=new _0x141f89(_0x45e183['content']['document']),_0x37a082=_0x1ab3f8['createRangeIn'](_0x45e183['content']),_0x284806=[...new _0x427fc1(new _0x12ac1d(_0x1ab3f8['document']['stylesProcessor']))['blockElements'],'font'],_0x55382d=_0x37a082['getItems']();for(const _0x39729f of _0x55382d)if(_0x39729f['is']('element')&&_0x284806['includes'](_0x39729f['name'])){if(_0x39729f['hasStyle']('mso-list')&&'none'!==_0x39729f['getStyle']('mso-list')){P(_0x39729f,_0x1ab3f8,v(_0x39729f));continue;}F(_0x39729f,_0x1ab3f8,v(_0x39729f));}}isActive(_0x1b22f7){return super['isActive'](_0x1b22f7)||u(_0x1b22f7);}},x=class extends _0x494b68{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x1f537b];}init(){const _0x232d0d=this['editor'],_0x322e69=_0x232d0d['plugins']['get']('PasteFromOffice'),_0x359d6d=_0x232d0d['editing']['view']['document'],_0x11ca33=new b(_0x359d6d);_0x322e69['registerNormalizer'](_0x11ca33,_0x41b03f['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x157989=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1b5c71;for(const _0x19f5a7 in _0x157989){const _0x1a5996=_0x19f5a7,_0x137bf9=_0x157989[_0x1a5996];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x137bf9||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x137bf9||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x137bf9||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x137bf9||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x137bf9||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x137bf9||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x137bf9){delete _0x157989[_0x1a5996],_0x1b5c71=_0x137bf9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x1b5c71&&_0x157989['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x1b5c71&&_0x157989['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x1b5c71&&_0x157989['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x1b5c71&&_0x157989['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x1b5c71&&_0x157989['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x1b5c71&&_0x157989['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x494b68{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x1f537b,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.5",
3
+ "version": "48.4.0-alpha.6",
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.5",
35
- "@ckeditor/ckeditor5-core": "48.4.0-alpha.5",
36
- "@ckeditor/ckeditor5-engine": "48.4.0-alpha.5",
37
- "@ckeditor/ckeditor5-paste-from-office": "48.4.0-alpha.5",
38
- "@ckeditor/ckeditor5-utils": "48.4.0-alpha.5"
34
+ "@ckeditor/ckeditor5-clipboard": "48.4.0-alpha.6",
35
+ "@ckeditor/ckeditor5-core": "48.4.0-alpha.6",
36
+ "@ckeditor/ckeditor5-engine": "48.4.0-alpha.6",
37
+ "@ckeditor/ckeditor5-paste-from-office": "48.4.0-alpha.6",
38
+ "@ckeditor/ckeditor5-utils": "48.4.0-alpha.6"
39
39
  },
40
40
  "files": [
41
41
  "dist",