@ckeditor/ckeditor5-paste-from-office-enhanced 48.4.0-alpha.2 → 48.4.0-alpha.4

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 _0x22e8c0}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x4fdb34,PasteFromOfficeMSWordNormalizer as _0x1effc1}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x1394d8,uid as _0x3cde3b}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x75e34e,ViewDomConverter as _0x3e26f4,ViewUpcastWriter as _0x45838f}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x301ce0){return f['test'](_0x301ce0);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x394102,_0x1ca925){const _0xd461c1=new Map();for(const [_0x25703a,_0x6ff21f]of _0x1ca925){if(!_0x25703a['tagName']&&!_0x25703a['className'])continue;const _0x28f6ff=!_0x25703a['tagName']||_0x394102['name']===_0x25703a['tagName'],_0x31f349=!_0x25703a['className']||_0x394102['hasClass'](_0x25703a['className']);_0x28f6ff&&_0x31f349&&_0xd461c1['set'](_0x25703a,_0x6ff21f);}return _0xd461c1;}function m(_0x12597f){const _0xd77452={};for(let _0x599f64=0x0;_0x599f64<_0x12597f['length'];_0x599f64++){const _0x3ef27b=_0x12597f[_0x599f64],_0x2d7774=_0x12597f['getPropertyValue'](_0x3ef27b);'initial'!==_0x2d7774&&(_0xd77452[_0x3ef27b]=_0x2d7774);}return _0xd77452;}function w(_0x1f8dcf){const _0x3c0a43=_0x1f8dcf['split'](',')['map'](_0x2afc77=>_0x2afc77['trim']()),_0x518ca0=[];for(const _0x576796 of _0x3c0a43){const _0x3731b2=l['exec'](_0x576796);_0x3731b2&&_0x518ca0['push'](_0x3731b2['groups']);}return _0x518ca0;}function y(_0x277651){const _0xf896bc={};for(const _0x28ef0c of _0x277651)Object['assign'](_0xf896bc,_0x28ef0c);return _0xf896bc;}var g=class extends _0x1effc1{execute(_0x20b995){const {styles:_0x53a9c7,stylesString:_0x4809a8}=_0x20b995['extraContent'],_0x258e4c=new _0x45838f(_0x20b995['content']['document']),_0x48b6da=_0x258e4c['createRangeIn'](_0x20b995['content']),_0x3731c8=function(_0x12f315){const _0x1eb097=new Map();for(const _0x38a2e7 in _0x12f315){const _0x1a7488=w(_0x38a2e7),_0x4b5bdb=_0x12f315[_0x38a2e7];for(const _0x270e09 of _0x1a7488)_0x1eb097['set'](_0x270e09,_0x4b5bdb);}return _0x1eb097;}(function(_0x45e2a0){const _0x4be439={};for(const _0x5383ca of _0x45e2a0)for(const _0x3621f9 of _0x5383ca['cssRules'])if(_0x3621f9 instanceof CSSStyleRule){const _0x109bcb=m(_0x3621f9['style']);_0x4be439[_0x3621f9['selectorText']]=Object['assign']({},_0x4be439[_0x3621f9['selectorText']]||{},_0x109bcb);}return _0x4be439;}(_0x53a9c7)),_0x19eae3=function(_0x610d6e){const _0x137f30={},_0x9c3a1f=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x18afc0=/\.(?<className>[\w-]+)/g;let _0x9a1a43;for(;null!==(_0x9a1a43=_0x9c3a1f['exec'](_0x610d6e));){const {selector:_0x365f10,color:_0x1d6c26,patternType:_0x5053c4}=_0x9a1a43['groups'];if('auto'!==_0x1d6c26['toLowerCase']()&&'none'!==_0x5053c4['toLowerCase']()&&'auto'!==_0x5053c4['toLowerCase']()){for(const _0xfc3596 of _0x365f10['matchAll'](_0x18afc0))_0x137f30[_0xfc3596['groups']['className']]=_0x1d6c26;}}return _0x137f30;}(_0x4809a8);for(const _0x211d55 of _0x48b6da){if('elementStart'!==_0x211d55['type'])continue;const _0x59e900=_0x211d55['item'],_0x506686=d(_0x59e900,_0x3731c8),_0x28bbdd=_0x506686['size']?y(Array['from'](_0x506686['values']())):{};if(!('background-color'in _0x28bbdd)&&!('background'in _0x28bbdd)){for(const [_0x422f50,_0x471a49]of Object['entries'](_0x19eae3))if(_0x59e900['hasClass'](_0x422f50)){_0x28bbdd['background-color']=_0x471a49;break;}}for(const _0x5be206 in _0x28bbdd)_0x59e900['hasStyle'](_0x5be206)||_0x258e4c['setStyle'](_0x5be206,_0x28bbdd[_0x5be206],_0x59e900);}}isActive(_0x149845){return super['isActive'](_0x149845)||u(_0x149845);}},p=class extends _0x22e8c0{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x4fdb34];}init(){const _0x382977=this['editor'],_0x42cac8=_0x382977['plugins']['get']('PasteFromOffice'),_0x1dc9e8=_0x382977['editing']['view']['document'],_0x49dc31=new g(_0x1dc9e8);_0x42cac8['registerNormalizer'](_0x49dc31,_0x1394d8['high']+0xb);}afterInit(){!async function(_0x434d6d){const _0x4808f7='sG65Crk1cd2igLN7zIEAYju9J3hbPBtnFMxQf4HwZal0qTSVKyDmoRvUXepWO8',_0x402ffa=0x79158,_0x15bf3b=window['Date']['now'](),_0xedea5c=_0x434d6d['editor'],_0x15e5ce=new window['Promise'](_0x473ae9=>{_0xedea5c['once']('ready',_0x473ae9);}),_0x5f263={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x5d9802=_0xedea5c['config']['get']('licenseKey');async function _0x166fbf(){let _0x5429e0,_0x548cff=null,_0x11f9d0=null;try{return'GPL'==_0x5d9802?'NotAllowed':(_0x5429e0=_0x73733f(),_0x5429e0?(_0x5429e0['usageEndpoint']&&(_0x11f9d0=_0x3f1882(_0x5429e0['usageEndpoint'],_0x5429e0['jti'])),await _0x1c9e74()?_0x462059()?_0xab1809()?'Expired':_0x22c1b5()?('evaluation'==_0x5429e0['licenseType']&&(_0x548cff=_0x559219('EvaluationLimit')),await _0x59d999()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0xab1809(){const _0x2366e0=['evaluation','trial']['includes'](_0x5429e0['licenseType'])?_0x15bf3b/0x3e8:0xe10*_0x402ffa;return _0x5429e0['exp']<_0x2366e0;}function _0x462059(){const _0x79509c=_0x5429e0['features'];return!!_0x79509c&&(!!_0x79509c['includes']('*')||(!!_0x79509c['includes']('POE')||(!!_0x79509c['includes']('PP')||!(!_0x79509c['includes']('TRILIUM')||!_0x317ddf()))));}function _0x22c1b5(){const _0x50021c=_0x5429e0['licensedHosts'];if(!_0x50021c||0x0==_0x50021c['length'])return!0x0;const {hostname:_0x44ccb2}=new URL(window['location']['href']);if(_0x50021c['includes'](_0x44ccb2))return!0x0;const _0x183606=_0x44ccb2['split']('.');return _0x50021c['filter'](_0x190d17=>_0x190d17['includes']('*'))['map'](_0x53603e=>_0x53603e['split']('.'))['filter'](_0x2b9980=>_0x2b9980['length']<=_0x183606['length'])['map'](_0x32a2cd=>Array(_0x183606['length']-_0x32a2cd['length'])['fill']('*'===_0x32a2cd[0x0]?'*':'')['concat'](_0x32a2cd))['some'](_0x3d9d67=>_0x183606['every']((_0x516a1b,_0x51a4e1)=>_0x3d9d67[_0x51a4e1]===_0x516a1b||'*'===_0x3d9d67[_0x51a4e1]));}function _0x59d999(){return _0x548cff&&_0x11f9d0?new window['Promise']((_0x212b4f,_0xcc1931)=>{_0x548cff['then'](_0x212b4f,_0xcc1931),_0x11f9d0['then'](_0x279736=>{'Valid'!=_0x279736&&_0x212b4f(_0x279736);},_0xcc1931);}):_0x548cff||_0x11f9d0||'Valid';}}function _0x3f1882(_0x245905,_0x426942){return new window['Promise'](_0x1bc9c2=>{if(_0x1e897a())return _0x1bc9c2('Valid');_0x4e0018(),_0xedea5c['decorate']('_sendUsageRequest');let _0x31c514=!0x1;const _0x5f194e=_0x3cde3b();function _0xa0983b(_0x1941a6){return!!_0x1941a6&&('object'==typeof _0x1941a6||'function'==typeof _0x1941a6)&&'function'==typeof _0x1941a6['then']&&'function'==typeof _0x1941a6['catch'];}function _0x45b02e(_0x2d1e38){_0x185a7f(_0x2d1e38)['then'](_0x2eef11=>_0x2eef11&&'ok'==_0x2eef11['status']?_0x591516(_0x323c68(_0x5f194e+_0x426942))!=_0x2eef11['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x3c8a5a=>(_0x3f53cc(),_0x3c8a5a),()=>{const _0x3f3017=_0x12133f();return null==_0x3f3017?(_0x3f53cc(),'Valid'):_0x15bf3b-_0x3f3017>0x240c8400?'UsageLimit':'Valid';})['then'](_0x1bc9c2)['catch'](()=>{_0x1bc9c2('UsageLimit');});const _0x4a8e3e=0x36ee80;function _0x3f53cc(){const _0x55a1ef='llct-'+_0x591516(_0x323c68(_0x245905)),_0x1f60c9=_0x4dde25(_0x591516(window['Math']['ceil'](_0x15bf3b/_0x4a8e3e)));window['localStorage']['setItem'](_0x55a1ef,_0x1f60c9);}function _0x12133f(){const _0x47d072='llct-'+_0x591516(_0x323c68(_0x245905)),_0x31be57=window['localStorage']['getItem'](_0x47d072);return _0x31be57?window['parseInt'](_0x4dde25(_0x31be57),0x10)*_0x4a8e3e:null;}function _0x185a7f(_0x175264){return new window['Promise']((_0x2bed12,_0x28ed49)=>{_0x175264['then'](_0x2bed12,_0x28ed49),window['setTimeout'](_0x28ed49,0x1d4c0);});}}_0xedea5c['on']('_sendUsageRequest',(_0x51f254,_0x299ac0)=>{if(_0x299ac0[0x0]!=_0x245905)return _0x1bc9c2('UsageLimit');_0x299ac0[0x1]={..._0x299ac0[0x1],'requestId':_0x5f194e};},{'priority':'high'}),_0xedea5c['on']('_sendUsageRequest',_0x517231=>{_0xa0983b(_0x517231['return'])&&(_0x31c514=!0x0,_0x45b02e(_0x517231['return']));},{'priority':'low'}),_0x15e5ce['then'](()=>{_0x31c514||_0x1bc9c2('UsageLimit');});});function _0x1e897a(){return'auto'==_0xedea5c['editing']['view']['_overlayModeHint'];}function _0x4e0018(){_0xedea5c['editing']['view']['_overlayModeHint']='auto';}}function _0x559219(_0x4b3188){const _0x3682c1=[new window['Promise'](_0x173388=>setTimeout(_0x173388,0x93ecc)),_0x15e5ce['then'](()=>new window['Promise'](_0x92d27c=>{let _0x318636=0x0;_0xedea5c['model']['on']('applyOperation',(_0x382d8a,_0x44623a)=>{_0x44623a[0x0]['isDocumentOperation']&&_0x318636++,0x5e8==_0x318636&&(_0x92d27c(),_0x382d8a['off']());});}))];return window['Promise']['race'](_0x3682c1)['then'](()=>_0x4b3188);}async function _0x1f2450(){await _0x15e5ce,_0xedea5c['model']['change']=_0x1d2ea0,_0xedea5c['model']['enqueueChange']=_0x1d2ea0,_0xedea5c['enableReadOnlyMode']('model');}function _0x317ddf(){return window['glob']&&window['glob']['triliumVersion'];}function _0x57f294(_0x3f6c6f){const _0x384550=_0x339717();_0xedea5c[_0x384550]='pasteFromOfficeEnhancedLicenseKey'+_0x3f6c6f,'Valid'!=_0x3f6c6f&&_0x1f2450();}function _0x339717(){const _0x80eb31=window['String'](window['performance']['now']())['replace']('.','');let _0x4f1a59='s';for(let _0x5f0607=0x0;_0x5f0607<_0x80eb31['length'];_0x5f0607+=0x2){let _0x2e2aa7=window['parseInt'](_0x80eb31['substring'](_0x5f0607,_0x5f0607+0x2));_0x2e2aa7>=0x3e&&(_0x2e2aa7-=0x3e),_0x4f1a59+=_0x4808f7[_0x2e2aa7];}return _0x4f1a59;}function _0x73733f(){const _0x3d15cd=_0x5d9802['split']('.');if(0x3!=_0x3d15cd['length'])return null;return _0x5ef2cc(_0x3d15cd[0x1]);function _0x5ef2cc(_0x26f91f){const _0x1b29c2=_0x328d5d(_0x26f91f);return _0x1b29c2&&_0x2d6033()?_0x1b29c2:null;function _0x2d6033(){const _0x68b67e=_0x1b29c2['jti'],_0x54c5cf=window['parseInt'](_0x68b67e['substring'](_0x68b67e['length']-0x8),0x10),_0x1b94ad={..._0x1b29c2,'jti':_0x68b67e['substring'](0x0,_0x68b67e['length']-0x8)};return delete _0x1b94ad['vc'],_0x323c68(_0x1b94ad)==_0x54c5cf;}}}async function _0x1c9e74(){let _0x4c4c57=!0x0;try{const [_0x280862,_0x3ac2d7,_0x1a088b]=_0x5d9802['split']('.');return _0x86d544(_0x280862),await _0x991fb9(_0x280862,_0x3ac2d7,_0x1a088b),_0x4c4c57;}catch{return!0x1;}function _0x86d544(_0x4e8337){const _0x4166ba=_0x328d5d(_0x4e8337);_0x4166ba&&'ES256'==_0x4166ba['alg']||(_0x4c4c57=!0x1);}async function _0x991fb9(_0x2ebd79,_0x2abbd1,_0x2663a5){const _0x175c7d=window['Uint8Array']['from'](_0x3afeea(_0x2663a5),_0x506dbc=>_0x506dbc['charCodeAt'](0x0)),_0x1c431c=new window['TextEncoder']()['encode'](_0x2ebd79+'.'+_0x2abbd1),_0x3324ca=window['crypto']['subtle'];if(!_0x3324ca)return;const _0x5b3ac8=await _0x3324ca['importKey']('jwk',_0x5f263,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x3324ca['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x5b3ac8,_0x175c7d,_0x1c431c)||(_0x4c4c57=!0x1);}}function _0x328d5d(_0x55ab12){return _0x55ab12['startsWith']('ey')?JSON['parse'](_0x3afeea(_0x55ab12)):null;}function _0x3afeea(_0x525478){return window['atob'](_0x525478['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x323c68(_0x1c9ecf){let _0x228401=0x1505;function _0x46573f(_0x265132){for(let _0x2098f7=0x0;_0x2098f7<_0x265132['length'];_0x2098f7++){const _0x2f01a2=_0x265132['charCodeAt'](_0x2098f7);_0x228401=(_0x228401<<0x5)+_0x228401+_0x2f01a2,_0x228401&=_0x228401;}}function _0x49f33c(_0x540428){Array['isArray'](_0x540428)?_0x540428['forEach'](_0x49f33c):_0x540428&&'object'==typeof _0x540428?Object['entries'](_0x540428)['sort']()['forEach'](([_0x458c36,_0x18eacb])=>{_0x46573f(_0x458c36),_0x49f33c(_0x18eacb);}):_0x46573f(window['String'](_0x540428));}return _0x49f33c(_0x1c9ecf),_0x228401>>>0x0;}function _0x591516(_0x79eb6a){return _0x79eb6a['toString'](0x10)['padStart'](0x8,'0');}function _0x4dde25(_0x5527a2){return _0x5527a2['split']('')['reverse']()['join']('');}function _0x1d2ea0(){}_0x57f294(await _0x166fbf());}(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'],[_0x5d4b79=>Number(_0x5d4b79)>=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(_0xea5fb0){return h['includes'](_0xea5fb0);}function v(_0x4e7d70){return Array['from'](_0x4e7d70['getStyleNames']())['filter'](E);}function F(_0x561524,_0x4ede98,_0x35f2a6){const {spanStyles:_0x4311a3,stylesToBeHtmlElements:_0x5b0b96}=K(_0x561524,_0x35f2a6);!function(_0x285067,_0x2d2568,_0x1e71af){for(const _0x26ba38 in _0x1e71af)_0x1e71af[_0x26ba38]['forEach'](([,_0x3cc468])=>{const _0x1649bf=_0x2d2568['createElement'](_0x3cc468,[],_0x285067['getChildren']());_0x2d2568['insertChild'](0x0,_0x1649bf,_0x285067);}),_0x2d2568['removeStyle'](_0x26ba38,_0x285067);}(_0x561524,_0x4ede98,_0x5b0b96),function(_0xd6c62a,_0x2e07f6,_0x50ac93){if(!Object['keys'](_0x50ac93)['length'])return;const _0x7d6e4b=_0x2e07f6['createElement']('span',[],_0xd6c62a['getChildren']());_0x2e07f6['setStyle'](_0x50ac93,_0x7d6e4b),_0x2e07f6['insertChild'](0x0,_0x7d6e4b,_0xd6c62a),_0x2e07f6['removeStyle'](Object['keys'](_0x50ac93),_0xd6c62a);}(_0x561524,_0x4ede98,_0x4311a3);}function P(_0x4bb683,_0x593483,_0x309ba1){const {spanStyles:_0x2d145e}=K(_0x4bb683,_0x309ba1),_0x4c8532=Object['keys'](_0x2d145e);if(!_0x4c8532['length'])return;let _0x204015=!0x1;for(const _0x391cd7 of _0x4bb683['getChildren']())if(_0x391cd7['is']('element','span')){_0x204015=!0x0;for(const [_0x365f8e,_0x3c6d3c]of Object['entries'](_0x2d145e))_0x391cd7['hasStyle'](_0x365f8e)||_0x593483['setStyle']({[_0x365f8e]:_0x3c6d3c},_0x391cd7);}_0x204015&&_0x593483['removeStyle'](_0x4c8532,_0x4bb683);}function K(_0x2ba987,_0x3948e7){const _0x1a14e7={},_0x26883d={};return _0x3948e7['forEach'](_0x4f8dc3=>{const _0x36b957=_0x2ba987['getStyle'](_0x4f8dc3);if(_0x36b957){if(function(_0xc2e081){return O['includes'](_0xc2e081);}(_0x4f8dc3))_0x1a14e7[_0x4f8dc3]=_0x36b957;else{if(function(_0x18fa8d){return _0x18fa8d in L;}(_0x4f8dc3)){const _0x62af96=_0x36b957['split']('\x20');L[_0x4f8dc3]['forEach'](([_0x2489ee,_0x2ce83d])=>{for(const _0x2932ea of _0x62af96)('function'==typeof _0x2489ee&&_0x2489ee(_0x2932ea)||_0x2489ee===_0x2932ea)&&(_0x26883d[_0x4f8dc3]=[..._0x26883d[_0x4f8dc3]||[],[_0x2489ee,_0x2ce83d]]);});}}}}),{'spanStyles':_0x1a14e7,'stylesToBeHtmlElements':_0x26883d};}var b=class extends _0x1effc1{execute(_0x448e40){const _0x5d4798=new _0x45838f(_0x448e40['content']['document']),_0x5d4898=_0x5d4798['createRangeIn'](_0x448e40['content']),_0x2396ba=[...new _0x3e26f4(new _0x75e34e(_0x5d4798['document']['stylesProcessor']))['blockElements'],'font'],_0x53213a=_0x5d4898['getItems']();for(const _0x12f50a of _0x53213a)if(_0x12f50a['is']('element')&&_0x2396ba['includes'](_0x12f50a['name'])){if(_0x12f50a['hasStyle']('mso-list')&&'none'!==_0x12f50a['getStyle']('mso-list')){P(_0x12f50a,_0x5d4798,v(_0x12f50a));continue;}F(_0x12f50a,_0x5d4798,v(_0x12f50a));}}isActive(_0x13df73){return super['isActive'](_0x13df73)||u(_0x13df73);}},x=class extends _0x22e8c0{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x4fdb34];}init(){const _0x36ba1b=this['editor'],_0x556fdc=_0x36ba1b['plugins']['get']('PasteFromOffice'),_0x5e7055=_0x36ba1b['editing']['view']['document'],_0x2afa15=new b(_0x5e7055);_0x556fdc['registerNormalizer'](_0x2afa15,_0x1394d8['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1d449a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4ec201;for(const _0x476985 in _0x1d449a){const _0x5ede9a=_0x476985,_0x55b099=_0x1d449a[_0x5ede9a];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x55b099||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x55b099||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x55b099||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x55b099||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x55b099||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x55b099||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x55b099){delete _0x1d449a[_0x5ede9a],_0x4ec201=_0x55b099,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x4ec201&&_0x1d449a['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x4ec201&&_0x1d449a['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x4ec201&&_0x1d449a['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x4ec201&&_0x1d449a['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x4ec201&&_0x1d449a['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x4ec201&&_0x1d449a['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x22e8c0{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x4fdb34,p,x];}};export{k as PasteFromOfficeEnhanced};
23
+ import{Plugin as _0x103ec0}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x5f3b4d,PasteFromOfficeMSWordNormalizer as _0x78b68d}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x1a7cab,uid as _0x22824a}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x57a959,ViewDomConverter as _0x346aa0,ViewUpcastWriter as _0x4e7bfa}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0xec7c53){return f['test'](_0xec7c53);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x67cd0e,_0x54c50c){const _0x510792=new Map();for(const [_0x1231a0,_0x423b72]of _0x54c50c){if(!_0x1231a0['tagName']&&!_0x1231a0['className'])continue;const _0x451c85=!_0x1231a0['tagName']||_0x67cd0e['name']===_0x1231a0['tagName'],_0x31ba15=!_0x1231a0['className']||_0x67cd0e['hasClass'](_0x1231a0['className']);_0x451c85&&_0x31ba15&&_0x510792['set'](_0x1231a0,_0x423b72);}return _0x510792;}function m(_0x5864e8){const _0x1f61ef={};for(let _0xcddd1a=0x0;_0xcddd1a<_0x5864e8['length'];_0xcddd1a++){const _0x5d4c27=_0x5864e8[_0xcddd1a],_0x52e041=_0x5864e8['getPropertyValue'](_0x5d4c27);'initial'!==_0x52e041&&(_0x1f61ef[_0x5d4c27]=_0x52e041);}return _0x1f61ef;}function w(_0x3c1745){const _0x61d155=_0x3c1745['split'](',')['map'](_0x5d09a9=>_0x5d09a9['trim']()),_0x38ba52=[];for(const _0x293bfe of _0x61d155){const _0x31e5c3=l['exec'](_0x293bfe);_0x31e5c3&&_0x38ba52['push'](_0x31e5c3['groups']);}return _0x38ba52;}function y(_0x5eedb4){const _0x14dcc6={};for(const _0x26c55a of _0x5eedb4)Object['assign'](_0x14dcc6,_0x26c55a);return _0x14dcc6;}var g=class extends _0x78b68d{execute(_0x2d0955){const {styles:_0x138288,stylesString:_0x2a1592}=_0x2d0955['extraContent'],_0x1868cf=new _0x4e7bfa(_0x2d0955['content']['document']),_0x524b0d=_0x1868cf['createRangeIn'](_0x2d0955['content']),_0x187364=function(_0x127e18){const _0x1b755f=new Map();for(const _0x5293fa in _0x127e18){const _0x4a555f=w(_0x5293fa),_0x2be7c8=_0x127e18[_0x5293fa];for(const _0x455157 of _0x4a555f)_0x1b755f['set'](_0x455157,_0x2be7c8);}return _0x1b755f;}(function(_0x8e2476){const _0x1afd64={};for(const _0x309f74 of _0x8e2476)for(const _0x1c56f2 of _0x309f74['cssRules'])if(_0x1c56f2 instanceof CSSStyleRule){const _0x456833=m(_0x1c56f2['style']);_0x1afd64[_0x1c56f2['selectorText']]=Object['assign']({},_0x1afd64[_0x1c56f2['selectorText']]||{},_0x456833);}return _0x1afd64;}(_0x138288)),_0x5bc486=function(_0xa473ac){const _0xa95a27={},_0x5e2e47=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x5dead9=/\.(?<className>[\w-]+)/g;let _0x48b9f1;for(;null!==(_0x48b9f1=_0x5e2e47['exec'](_0xa473ac));){const {selector:_0x165b85,color:_0x2d6d1f,patternType:_0x55af50}=_0x48b9f1['groups'];if('auto'!==_0x2d6d1f['toLowerCase']()&&'none'!==_0x55af50['toLowerCase']()&&'auto'!==_0x55af50['toLowerCase']()){for(const _0x41a6d2 of _0x165b85['matchAll'](_0x5dead9))_0xa95a27[_0x41a6d2['groups']['className']]=_0x2d6d1f;}}return _0xa95a27;}(_0x2a1592);for(const _0x1db5d3 of _0x524b0d){if('elementStart'!==_0x1db5d3['type'])continue;const _0x2fbcbb=_0x1db5d3['item'],_0x2b096b=d(_0x2fbcbb,_0x187364),_0x3d0647=_0x2b096b['size']?y(Array['from'](_0x2b096b['values']())):{};if(!('background-color'in _0x3d0647)&&!('background'in _0x3d0647)){for(const [_0x1fece5,_0x19ac80]of Object['entries'](_0x5bc486))if(_0x2fbcbb['hasClass'](_0x1fece5)){_0x3d0647['background-color']=_0x19ac80;break;}}for(const _0x1c6fcb in _0x3d0647)_0x2fbcbb['hasStyle'](_0x1c6fcb)||_0x1868cf['setStyle'](_0x1c6fcb,_0x3d0647[_0x1c6fcb],_0x2fbcbb);}}isActive(_0x56a258){return super['isActive'](_0x56a258)||u(_0x56a258);}},p=class extends _0x103ec0{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x5f3b4d];}init(){const _0x3c9fa3=this['editor'],_0x2637c9=_0x3c9fa3['plugins']['get']('PasteFromOffice'),_0x59a870=_0x3c9fa3['editing']['view']['document'],_0x41f80e=new g(_0x59a870);_0x2637c9['registerNormalizer'](_0x41f80e,_0x1a7cab['high']+0xb);}afterInit(){!async function(_0x534fde){const _0x26177f='sG65Crk1cd2igLN7zIEAYju9J3hbPBtnFMxQf4HwZal0qTSVKyDmoRvUXepWO8',_0x118e76=0x79188,_0x5cef97=window['Date']['now'](),_0x29c9df=_0x534fde['editor'],_0x4cc7ad=new window['Promise'](_0xebae3f=>{_0x29c9df['once']('ready',_0xebae3f);}),_0x5d9892={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x4d8427=_0x29c9df['config']['get']('licenseKey');async function _0x48e478(){let _0x536f40,_0x5da3d4=null,_0xe07fd2=null;try{return'GPL'==_0x4d8427?'NotAllowed':(_0x536f40=_0x567a98(),_0x536f40?(_0x536f40['usageEndpoint']&&(_0xe07fd2=_0x5c36b3(_0x536f40['usageEndpoint'],_0x536f40['jti'])),await _0xd58ea1()?_0x14aaec()?_0x39f0ff()?'Expired':_0x127a6c()?('evaluation'==_0x536f40['licenseType']&&(_0x5da3d4=_0x1045dd('EvaluationLimit')),await _0x6fdb8a()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x39f0ff(){const _0x470a9c=['evaluation','trial']['includes'](_0x536f40['licenseType'])?_0x5cef97/0x3e8:0xe10*_0x118e76;return _0x536f40['exp']<_0x470a9c;}function _0x14aaec(){const _0x2e96cf=_0x536f40['features'];return!!_0x2e96cf&&(!!_0x2e96cf['includes']('*')||(!!_0x2e96cf['includes']('POE')||(!!_0x2e96cf['includes']('PP')||!(!_0x2e96cf['includes']('TRILIUM')||!_0x16c4c2()))));}function _0x127a6c(){const _0x5695ed=_0x536f40['licensedHosts'];if(!_0x5695ed||0x0==_0x5695ed['length'])return!0x0;const {hostname:_0x339be1}=new URL(window['location']['href']);if(_0x5695ed['includes'](_0x339be1))return!0x0;const _0xd8db81=_0x339be1['split']('.');return _0x5695ed['filter'](_0x314f63=>_0x314f63['includes']('*'))['map'](_0x3f687b=>_0x3f687b['split']('.'))['filter'](_0x421e9a=>_0x421e9a['length']<=_0xd8db81['length'])['map'](_0x4415bf=>Array(_0xd8db81['length']-_0x4415bf['length'])['fill']('*'===_0x4415bf[0x0]?'*':'')['concat'](_0x4415bf))['some'](_0x462a1c=>_0xd8db81['every']((_0x1d6aac,_0x57d834)=>_0x462a1c[_0x57d834]===_0x1d6aac||'*'===_0x462a1c[_0x57d834]));}function _0x6fdb8a(){return _0x5da3d4&&_0xe07fd2?new window['Promise']((_0x54a442,_0x5e925c)=>{_0x5da3d4['then'](_0x54a442,_0x5e925c),_0xe07fd2['then'](_0x5b050f=>{'Valid'!=_0x5b050f&&_0x54a442(_0x5b050f);},_0x5e925c);}):_0x5da3d4||_0xe07fd2||'Valid';}}function _0x5c36b3(_0x571df7,_0x4b462a){return new window['Promise'](_0xee5cbc=>{if(_0x30bf8e())return _0xee5cbc('Valid');_0x187666(),_0x29c9df['decorate']('_sendUsageRequest');let _0x2f9d1d=!0x1;const _0x36acd5=_0x22824a();function _0x2e9c4a(_0x32a144){return!!_0x32a144&&('object'==typeof _0x32a144||'function'==typeof _0x32a144)&&'function'==typeof _0x32a144['then']&&'function'==typeof _0x32a144['catch'];}function _0x106395(_0x55781e){_0x30dc39(_0x55781e)['then'](_0x226bb7=>_0x226bb7&&'ok'==_0x226bb7['status']?_0x14d5db(_0xad9187(_0x36acd5+_0x4b462a))!=_0x226bb7['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x533309=>(_0x89c776(),_0x533309),()=>{const _0xbf0c5d=_0x5aadba();return null==_0xbf0c5d?(_0x89c776(),'Valid'):_0x5cef97-_0xbf0c5d>0x240c8400?'UsageLimit':'Valid';})['then'](_0xee5cbc)['catch'](()=>{_0xee5cbc('UsageLimit');});const _0x3aedf8=0x36ee80;function _0x89c776(){const _0x59412c='llct-'+_0x14d5db(_0xad9187(_0x571df7)),_0x19b326=_0x3cb41b(_0x14d5db(window['Math']['ceil'](_0x5cef97/_0x3aedf8)));window['localStorage']['setItem'](_0x59412c,_0x19b326);}function _0x5aadba(){const _0x4623dc='llct-'+_0x14d5db(_0xad9187(_0x571df7)),_0x2de01=window['localStorage']['getItem'](_0x4623dc);return _0x2de01?window['parseInt'](_0x3cb41b(_0x2de01),0x10)*_0x3aedf8:null;}function _0x30dc39(_0x87cf0e){return new window['Promise']((_0x1f724d,_0xbb6601)=>{_0x87cf0e['then'](_0x1f724d,_0xbb6601),window['setTimeout'](_0xbb6601,0x1d4c0);});}}_0x29c9df['on']('_sendUsageRequest',(_0x1894d3,_0x51e500)=>{if(_0x51e500[0x0]!=_0x571df7)return _0xee5cbc('UsageLimit');_0x51e500[0x1]={..._0x51e500[0x1],'requestId':_0x36acd5};},{'priority':'high'}),_0x29c9df['on']('_sendUsageRequest',_0x2249fc=>{_0x2e9c4a(_0x2249fc['return'])&&(_0x2f9d1d=!0x0,_0x106395(_0x2249fc['return']));},{'priority':'low'}),_0x4cc7ad['then'](()=>{_0x2f9d1d||_0xee5cbc('UsageLimit');});});function _0x30bf8e(){return'auto'==_0x29c9df['editing']['view']['_overlayModeHint'];}function _0x187666(){_0x29c9df['editing']['view']['_overlayModeHint']='auto';}}function _0x1045dd(_0x17288d){const _0x4f8540=[new window['Promise'](_0x1efeed=>setTimeout(_0x1efeed,0x93ecc)),_0x4cc7ad['then'](()=>new window['Promise'](_0x59bbe1=>{let _0x487fb8=0x0;_0x29c9df['model']['on']('applyOperation',(_0x529e53,_0x19e244)=>{_0x19e244[0x0]['isDocumentOperation']&&_0x487fb8++,0x5e8==_0x487fb8&&(_0x59bbe1(),_0x529e53['off']());});}))];return window['Promise']['race'](_0x4f8540)['then'](()=>_0x17288d);}async function _0x4fe3a3(){await _0x4cc7ad,_0x29c9df['model']['change']=_0x51995f,_0x29c9df['model']['enqueueChange']=_0x51995f,_0x29c9df['enableReadOnlyMode']('model');}function _0x16c4c2(){return window['glob']&&window['glob']['triliumVersion'];}function _0x368184(_0x504a3b){const _0x21574a=_0x588285();_0x29c9df[_0x21574a]='pasteFromOfficeEnhancedLicenseKey'+_0x504a3b,'Valid'!=_0x504a3b&&_0x4fe3a3();}function _0x588285(){const _0x40e4f5=window['String'](window['performance']['now']())['replace']('.','');let _0x4da656='s';for(let _0x1e0259=0x0;_0x1e0259<_0x40e4f5['length'];_0x1e0259+=0x2){let _0xdd53c9=window['parseInt'](_0x40e4f5['substring'](_0x1e0259,_0x1e0259+0x2));_0xdd53c9>=0x3e&&(_0xdd53c9-=0x3e),_0x4da656+=_0x26177f[_0xdd53c9];}return _0x4da656;}function _0x567a98(){const _0x31c04b=_0x4d8427['split']('.');if(0x3!=_0x31c04b['length'])return null;return _0x140b85(_0x31c04b[0x1]);function _0x140b85(_0x5eea9f){const _0x2de577=_0x58b170(_0x5eea9f);return _0x2de577&&_0x5a12b2()?_0x2de577:null;function _0x5a12b2(){const _0x105b5b=_0x2de577['jti'],_0xeb17da=window['parseInt'](_0x105b5b['substring'](_0x105b5b['length']-0x8),0x10),_0x366cc7={..._0x2de577,'jti':_0x105b5b['substring'](0x0,_0x105b5b['length']-0x8)};return delete _0x366cc7['vc'],_0xad9187(_0x366cc7)==_0xeb17da;}}}async function _0xd58ea1(){let _0x15eb0a=!0x0;try{const [_0x787d93,_0x47d6e0,_0x23e028]=_0x4d8427['split']('.');return _0x4676cf(_0x787d93),await _0x53a1f8(_0x787d93,_0x47d6e0,_0x23e028),_0x15eb0a;}catch{return!0x1;}function _0x4676cf(_0x18c4ab){const _0x2591dd=_0x58b170(_0x18c4ab);_0x2591dd&&'ES256'==_0x2591dd['alg']||(_0x15eb0a=!0x1);}async function _0x53a1f8(_0x4ca4a8,_0x2f82c6,_0x140cf1){const _0x383684=window['Uint8Array']['from'](_0x5c8b40(_0x140cf1),_0x4dd2f1=>_0x4dd2f1['charCodeAt'](0x0)),_0x3477ac=new window['TextEncoder']()['encode'](_0x4ca4a8+'.'+_0x2f82c6),_0x22789d=window['crypto']['subtle'];if(!_0x22789d)return;const _0x139020=await _0x22789d['importKey']('jwk',_0x5d9892,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x22789d['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x139020,_0x383684,_0x3477ac)||(_0x15eb0a=!0x1);}}function _0x58b170(_0x2128a1){return _0x2128a1['startsWith']('ey')?JSON['parse'](_0x5c8b40(_0x2128a1)):null;}function _0x5c8b40(_0x4e5a64){return window['atob'](_0x4e5a64['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0xad9187(_0x2e0d0a){let _0x17863a=0x1505;function _0x2fc79c(_0x38c8ee){for(let _0x1e845d=0x0;_0x1e845d<_0x38c8ee['length'];_0x1e845d++){const _0x410d64=_0x38c8ee['charCodeAt'](_0x1e845d);_0x17863a=(_0x17863a<<0x5)+_0x17863a+_0x410d64,_0x17863a&=_0x17863a;}}function _0x41d420(_0x23c2bf){Array['isArray'](_0x23c2bf)?_0x23c2bf['forEach'](_0x41d420):_0x23c2bf&&'object'==typeof _0x23c2bf?Object['entries'](_0x23c2bf)['sort']()['forEach'](([_0x338a54,_0x5039b9])=>{_0x2fc79c(_0x338a54),_0x41d420(_0x5039b9);}):_0x2fc79c(window['String'](_0x23c2bf));}return _0x41d420(_0x2e0d0a),_0x17863a>>>0x0;}function _0x14d5db(_0x208fd4){return _0x208fd4['toString'](0x10)['padStart'](0x8,'0');}function _0x3cb41b(_0xe59299){return _0xe59299['split']('')['reverse']()['join']('');}function _0x51995f(){}_0x368184(await _0x48e478());}(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'],[_0x1ca121=>Number(_0x1ca121)>=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(_0x287cdb){return h['includes'](_0x287cdb);}function v(_0x3c7ade){return Array['from'](_0x3c7ade['getStyleNames']())['filter'](E);}function F(_0x529e19,_0x5b7dd8,_0x410890){const {spanStyles:_0x16a765,stylesToBeHtmlElements:_0x5533d2}=K(_0x529e19,_0x410890);!function(_0x2c4eb9,_0x158388,_0x2b652a){for(const _0x19480a in _0x2b652a)_0x2b652a[_0x19480a]['forEach'](([,_0x234a4f])=>{const _0x419dad=_0x158388['createElement'](_0x234a4f,[],_0x2c4eb9['getChildren']());_0x158388['insertChild'](0x0,_0x419dad,_0x2c4eb9);}),_0x158388['removeStyle'](_0x19480a,_0x2c4eb9);}(_0x529e19,_0x5b7dd8,_0x5533d2),function(_0x30660d,_0x483595,_0x43efed){if(!Object['keys'](_0x43efed)['length'])return;const _0x2d91c7=_0x483595['createElement']('span',[],_0x30660d['getChildren']());_0x483595['setStyle'](_0x43efed,_0x2d91c7),_0x483595['insertChild'](0x0,_0x2d91c7,_0x30660d),_0x483595['removeStyle'](Object['keys'](_0x43efed),_0x30660d);}(_0x529e19,_0x5b7dd8,_0x16a765);}function P(_0x5486f1,_0x5a46a1,_0x4f4954){const {spanStyles:_0x1789ba}=K(_0x5486f1,_0x4f4954),_0x4e7583=Object['keys'](_0x1789ba);if(!_0x4e7583['length'])return;let _0xfab910=!0x1;for(const _0x3ee058 of _0x5486f1['getChildren']())if(_0x3ee058['is']('element','span')){_0xfab910=!0x0;for(const [_0x8e09de,_0x3aea9b]of Object['entries'](_0x1789ba))_0x3ee058['hasStyle'](_0x8e09de)||_0x5a46a1['setStyle']({[_0x8e09de]:_0x3aea9b},_0x3ee058);}_0xfab910&&_0x5a46a1['removeStyle'](_0x4e7583,_0x5486f1);}function K(_0x5af9d0,_0xf423ad){const _0x718c26={},_0x3f5c4a={};return _0xf423ad['forEach'](_0x15b2bd=>{const _0x13b281=_0x5af9d0['getStyle'](_0x15b2bd);if(_0x13b281){if(function(_0x4bd07b){return O['includes'](_0x4bd07b);}(_0x15b2bd))_0x718c26[_0x15b2bd]=_0x13b281;else{if(function(_0x46231c){return _0x46231c in L;}(_0x15b2bd)){const _0x2a31fa=_0x13b281['split']('\x20');L[_0x15b2bd]['forEach'](([_0x4cc49a,_0x31a0cd])=>{for(const _0x21f64d of _0x2a31fa)('function'==typeof _0x4cc49a&&_0x4cc49a(_0x21f64d)||_0x4cc49a===_0x21f64d)&&(_0x3f5c4a[_0x15b2bd]=[..._0x3f5c4a[_0x15b2bd]||[],[_0x4cc49a,_0x31a0cd]]);});}}}}),{'spanStyles':_0x718c26,'stylesToBeHtmlElements':_0x3f5c4a};}var b=class extends _0x78b68d{execute(_0x25658e){const _0x2f0c31=new _0x4e7bfa(_0x25658e['content']['document']),_0x430c67=_0x2f0c31['createRangeIn'](_0x25658e['content']),_0x2c8d97=[...new _0x346aa0(new _0x57a959(_0x2f0c31['document']['stylesProcessor']))['blockElements'],'font'],_0x1b4e3b=_0x430c67['getItems']();for(const _0x7424b9 of _0x1b4e3b)if(_0x7424b9['is']('element')&&_0x2c8d97['includes'](_0x7424b9['name'])){if(_0x7424b9['hasStyle']('mso-list')&&'none'!==_0x7424b9['getStyle']('mso-list')){P(_0x7424b9,_0x2f0c31,v(_0x7424b9));continue;}F(_0x7424b9,_0x2f0c31,v(_0x7424b9));}}isActive(_0x44f38c){return super['isActive'](_0x44f38c)||u(_0x44f38c);}},x=class extends _0x103ec0{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x5f3b4d];}init(){const _0x2a6742=this['editor'],_0x8346c3=_0x2a6742['plugins']['get']('PasteFromOffice'),_0x24a129=_0x2a6742['editing']['view']['document'],_0x3243e7=new b(_0x24a129);_0x8346c3['registerNormalizer'](_0x3243e7,_0x1a7cab['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x7caeed=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4ea19c;for(const _0x80158e in _0x7caeed){const _0x23067d=_0x80158e,_0xebe57a=_0x7caeed[_0x23067d];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0xebe57a||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0xebe57a||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0xebe57a||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0xebe57a||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0xebe57a||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0xebe57a||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0xebe57a){delete _0x7caeed[_0x23067d],_0x4ea19c=_0xebe57a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x4ea19c&&_0x7caeed['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x4ea19c&&_0x7caeed['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x4ea19c&&_0x7caeed['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x4ea19c&&_0x7caeed['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x4ea19c&&_0x7caeed['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x4ea19c&&_0x7caeed['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x103ec0{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x5f3b4d,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.2",
3
+ "version": "48.4.0-alpha.4",
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.2",
35
- "@ckeditor/ckeditor5-core": "48.4.0-alpha.2",
36
- "@ckeditor/ckeditor5-engine": "48.4.0-alpha.2",
37
- "@ckeditor/ckeditor5-paste-from-office": "48.4.0-alpha.2",
38
- "@ckeditor/ckeditor5-utils": "48.4.0-alpha.2"
34
+ "@ckeditor/ckeditor5-clipboard": "48.4.0-alpha.4",
35
+ "@ckeditor/ckeditor5-core": "48.4.0-alpha.4",
36
+ "@ckeditor/ckeditor5-engine": "48.4.0-alpha.4",
37
+ "@ckeditor/ckeditor5-paste-from-office": "48.4.0-alpha.4",
38
+ "@ckeditor/ckeditor5-utils": "48.4.0-alpha.4"
39
39
  },
40
40
  "files": [
41
41
  "dist",