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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x333fdd}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0x51d362,PasteFromOffice as _0x31034a,parsePasteOfficeHtml as _0x1c4ed6}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0x49aadb,uid as _0x1ed891}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x142777,ViewDocument as _0x3a3350,ViewDomConverter as _0x54aaf2}from'@ckeditor/ckeditor5-engine/dist/index.js';const a=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function l(_0x403fb6){return a['test'](_0x403fb6);}const d=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function w(_0x19043c,_0x30278d){const _0x45e9af=new Map();for(const [_0x26d831,_0x6b879a]of _0x30278d){if(!_0x26d831['tagName']&&!_0x26d831['className'])continue;const _0x29e29e=!_0x26d831['tagName']||_0x19043c['name']===_0x26d831['tagName'],_0x3fc625=!_0x26d831['className']||_0x19043c['hasClass'](_0x26d831['className']);_0x29e29e&&_0x3fc625&&_0x45e9af['set'](_0x26d831,_0x6b879a);}return _0x45e9af;}function m(_0x25a3ef){const _0x1ac1f7={};for(let _0x145fb6=0x0;_0x145fb6<_0x25a3ef['length'];_0x145fb6++){const _0x4630c6=_0x25a3ef[_0x145fb6],_0xbb00ba=_0x25a3ef['getPropertyValue'](_0x4630c6);'initial'!==_0xbb00ba&&(_0x1ac1f7[_0x4630c6]=_0xbb00ba);}return _0x1ac1f7;}function p(_0x40f44c){const _0x32d936=_0x40f44c['split'](',')['map'](_0x10d669=>_0x10d669['trim']()),_0x323329=[];for(const _0x5cac2c of _0x32d936){const _0x54d8ff=d['exec'](_0x5cac2c);_0x54d8ff&&_0x323329['push'](_0x54d8ff['groups']);}return _0x323329;}function y(_0x1877f3){const _0x406844={};for(const _0x442fb2 of _0x1877f3)Object['assign'](_0x406844,_0x442fb2);return _0x406844;}class g extends _0x51d362{['execute'](_0xe83ae1){const {body:_0x48308c,styles:_0x582cca,stylesString:_0x8d6770}=_0xe83ae1['_parsedData'],_0x5724d4=new _0x142777(_0x48308c['document']),_0x24e89c=_0x5724d4['createRangeIn'](_0x48308c),_0x4495b2=function(_0x57b048){const _0x302e55={};for(const _0x4afa45 of _0x57b048)for(const _0x491bd6 of _0x4afa45['cssRules'])if(_0x491bd6 instanceof CSSStyleRule){const _0x51733a=m(_0x491bd6['style']);_0x302e55[_0x491bd6['selectorText']]=Object['assign']({},_0x302e55[_0x491bd6['selectorText']]||{},_0x51733a);}return _0x302e55;}(_0x582cca),_0x3b58ab=function(_0x27118f){const _0x51db4c=new Map();for(const _0x58b73e in _0x27118f){const _0x190d2d=p(_0x58b73e),_0x10e006=_0x27118f[_0x58b73e];for(const _0x1ea014 of _0x190d2d)_0x51db4c['set'](_0x1ea014,_0x10e006);}return _0x51db4c;}(_0x4495b2),_0x518cc1=function(_0xaadcf6){const _0x1d4586={},_0x335f1b=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x242aa2=/\.(?<className>[\w-]+)/g;let _0x281bbd;for(;null!==(_0x281bbd=_0x335f1b['exec'](_0xaadcf6));){const {selector:_0x45fada,color:_0x2d0a49,patternType:_0x1acdf9}=_0x281bbd['groups'];if('auto'!==_0x2d0a49['toLowerCase']()&&'none'!==_0x1acdf9['toLowerCase']()&&'auto'!==_0x1acdf9['toLowerCase']()){for(const _0x419d81 of _0x45fada['matchAll'](_0x242aa2))_0x1d4586[_0x419d81['groups']['className']]=_0x2d0a49;}}return _0x1d4586;}(_0x8d6770);for(const _0x13dc5e of _0x24e89c){if('elementStart'!==_0x13dc5e['type'])continue;const _0x2d7b81=_0x13dc5e['item'],_0x344669=w(_0x2d7b81,_0x3b58ab),_0x2be530=_0x344669['size']?y(Array['from'](_0x344669['values']())):{};if(!('background-color'in _0x2be530)&&!('background'in _0x2be530)){for(const [_0x39e71f,_0x3e60ea]of Object['entries'](_0x518cc1))if(_0x2d7b81['hasClass'](_0x39e71f)){_0x2be530['background-color']=_0x3e60ea;break;}}for(const _0x1a8cff in _0x2be530)_0x2d7b81['hasStyle'](_0x1a8cff)||_0x5724d4['setStyle'](_0x1a8cff,_0x2be530[_0x1a8cff],_0x2d7b81);}_0xe83ae1['content']=_0x48308c;}['isActive'](_0x3e588c){return super['isActive'](_0x3e588c)||l(_0x3e588c);}}class h extends _0x333fdd{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x31034a];}['init'](){const _0x1eab41=this['editor'],_0x5ee060=_0x1eab41['plugins']['get']('ClipboardPipeline'),_0x35be4f=_0x1eab41['editing']['view']['document'],_0x306d70=new g(_0x35be4f);_0x5ee060['on']('inputTransformation',(_0x177d04,_0x4be7c1)=>{const _0x2c9f62=_0x4be7c1['dataTransfer']['getData']('text/html');_0x306d70['isActive'](_0x2c9f62)&&(_0x4be7c1['_parsedData']||(_0x4be7c1['_parsedData']=_0x1c4ed6(_0x2c9f62,_0x35be4f['stylesProcessor'])),_0x306d70['execute'](_0x4be7c1));},{'priority':_0x49aadb['get']('high')+0xb});}['afterInit'](){!async function(_0x1adea2){const _0xfb2fd8=_0x1f7c03([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x15c0ce=0x7374585f,_0xf2d382=0x7373d187^_0x15c0ce,_0x21716c=window[_0x1f7c03([0x44,0x61,0x74,0x65])][_0x1f7c03([0x6e,0x6f,0x77])](),_0x50509b=_0x1adea2[_0x1f7c03([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3c8dd7=new window[(_0x1f7c03([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a8f10=>{_0x50509b[_0x1f7c03([0x6f,0x6e,0x63,0x65])](_0x1f7c03([0x72,0x65,0x61,0x64,0x79]),_0x4a8f10);}),_0x18815e={[_0x1f7c03([0x6b,0x74,0x79])]:_0x1f7c03([0x45,0x43]),[_0x1f7c03([0x75,0x73,0x65])]:_0x1f7c03([0x73,0x69,0x67]),[_0x1f7c03([0x63,0x72,0x76])]:_0x1f7c03([0x50,0x2d,0x32,0x35,0x36]),[_0x1f7c03([0x78])]:_0x1f7c03([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x1f7c03([0x79])]:_0x1f7c03([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x1f7c03([0x61,0x6c,0x67])]:_0x1f7c03([0x45,0x53,0x32,0x35,0x36])},_0x514ef3=_0x50509b[_0x1f7c03([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1f7c03([0x67,0x65,0x74])](_0x1f7c03([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1229b0(){let _0x127a17,_0xed1000=null,_0x4353d1=null;try{if(_0x514ef3==_0x1f7c03([0x47,0x50,0x4c]))return _0x1f7c03([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x127a17=_0x489c90(),!_0x127a17)return _0x1f7c03([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x127a17[_0x1f7c03([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4353d1=_0x298f9c(_0x127a17[_0x1f7c03([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x127a17[_0x1f7c03([0x6a,0x74,0x69])])),await _0x41a349()?_0xbb454a()?_0x16332a()?_0x1f7c03([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1517a6()?(_0x127a17[_0x1f7c03([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f7c03([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xed1000=_0x58a4b1(_0x1f7c03([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5f5a2a()):_0x1f7c03([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1f7c03([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1f7c03([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1f7c03([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x16332a(){const _0x4d2066=[_0x1f7c03([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1f7c03([0x74,0x72,0x69,0x61,0x6c])][_0x1f7c03([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x127a17[_0x1f7c03([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x21716c/0x3e8:0xe10*_0xf2d382;return _0x127a17[_0x1f7c03([0x65,0x78,0x70])]<_0x4d2066;}function _0xbb454a(){const _0x672eff=_0x127a17[_0x1f7c03([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x672eff&&(!!_0x672eff[_0x1f7c03([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f7c03([0x2a]))||(!!_0x672eff[_0x1f7c03([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f7c03([0x50,0x4f,0x45]))||(!!_0x672eff[_0x1f7c03([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f7c03([0x50,0x50]))||!(!_0x672eff[_0x1f7c03([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f7c03([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x1522f5()))));}function _0x1517a6(){const _0x5000dc=_0x127a17[_0x1f7c03([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5000dc||0x0==_0x5000dc[_0x1f7c03([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x24da2c}=new URL(window[_0x1f7c03([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5000dc[_0x1f7c03([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24da2c))return!0x0;const _0x5d2762=_0x24da2c[_0x1f7c03([0x73,0x70,0x6c,0x69,0x74])](_0x1f7c03([0x2e]));return _0x5000dc[_0x1f7c03([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x44556f=>_0x44556f[_0x1f7c03([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f7c03([0x2a])))[_0x1f7c03([0x6d,0x61,0x70])](_0x2ed4c8=>_0x2ed4c8[_0x1f7c03([0x73,0x70,0x6c,0x69,0x74])](_0x1f7c03([0x2e])))[_0x1f7c03([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x489e9b=>_0x489e9b[_0x1f7c03([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5d2762[_0x1f7c03([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f7c03([0x6d,0x61,0x70])](_0x1eb32f=>Array(_0x5d2762[_0x1f7c03([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1eb32f[_0x1f7c03([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f7c03([0x66,0x69,0x6c,0x6c])](_0x1eb32f[0x0]===_0x1f7c03([0x2a])?_0x1f7c03([0x2a]):'')[_0x1f7c03([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1eb32f))[_0x1f7c03([0x73,0x6f,0x6d,0x65])](_0x13eb2e=>_0x5d2762[_0x1f7c03([0x65,0x76,0x65,0x72,0x79])]((_0x20501f,_0x5b3726)=>_0x13eb2e[_0x5b3726]===_0x20501f||_0x13eb2e[_0x5b3726]===_0x1f7c03([0x2a])));}function _0x5f5a2a(){return _0xed1000&&_0x4353d1?new window[(_0x1f7c03([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x347eaf,_0x497b92)=>{_0xed1000[_0x1f7c03([0x74,0x68,0x65,0x6e])](_0x347eaf,_0x497b92),_0x4353d1[_0x1f7c03([0x74,0x68,0x65,0x6e])](_0x8b3ee6=>{_0x8b3ee6!=_0x1f7c03([0x56,0x61,0x6c,0x69,0x64])&&_0x347eaf(_0x8b3ee6);},_0x497b92);}):_0xed1000||_0x4353d1||_0x1f7c03([0x56,0x61,0x6c,0x69,0x64]);}}function _0x298f9c(_0x5d2ed3,_0x137d16){return new window[(_0x1f7c03([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b9ae5=>{if(_0x162b64())return _0x4b9ae5(_0x1f7c03([0x56,0x61,0x6c,0x69,0x64]));_0x2d4522(),_0x50509b[_0x1f7c03([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1f7c03([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xb7441d=!0x1;const _0x293255=_0x1ed891();function _0x114906(_0x3a2faf){return!!_0x3a2faf&&(typeof _0x3a2faf===_0x1f7c03([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3a2faf===_0x1f7c03([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3a2faf[_0x1f7c03([0x74,0x68,0x65,0x6e])]===_0x1f7c03([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3a2faf[_0x1f7c03([0x63,0x61,0x74,0x63,0x68])]===_0x1f7c03([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xf0c4b9(_0x5d3077){_0x5aae39(_0x5d3077)[_0x1f7c03([0x74,0x68,0x65,0x6e])](_0x371407=>{if(!_0x371407||_0x371407[_0x1f7c03([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1f7c03([0x6f,0x6b]))return _0x1f7c03([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1a83b4(_0xe6cc67(_0x293255+_0x137d16))!=_0x371407[_0x1f7c03([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1f7c03([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1f7c03([0x56,0x61,0x6c,0x69,0x64]);})[_0x1f7c03([0x74,0x68,0x65,0x6e])](_0x547300=>(_0x3a5b7d(),_0x547300),()=>{const _0x362c3c=_0x27d3f0();return null==_0x362c3c?(_0x3a5b7d(),_0x1f7c03([0x56,0x61,0x6c,0x69,0x64])):_0x1f7c03(_0x21716c-_0x362c3c>(0x5778dc5f^_0x15c0ce)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1f7c03([0x74,0x68,0x65,0x6e])](_0x4b9ae5)[_0x1f7c03([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4b9ae5(_0x1f7c03([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x41103b=0x7342b6df^_0x15c0ce;function _0x3a5b7d(){const _0x229886=_0x1f7c03([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a83b4(_0xe6cc67(_0x5d2ed3)),_0x51bb88=_0x2f96d5(_0x1a83b4(window[_0x1f7c03([0x4d,0x61,0x74,0x68])][_0x1f7c03([0x63,0x65,0x69,0x6c])](_0x21716c/_0x41103b)));window[_0x1f7c03([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f7c03([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x229886,_0x51bb88);}function _0x27d3f0(){const _0x589104=_0x1f7c03([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a83b4(_0xe6cc67(_0x5d2ed3)),_0x1ae0e9=window[_0x1f7c03([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f7c03([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x589104);return _0x1ae0e9?window[_0x1f7c03([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f96d5(_0x1ae0e9),0x10)*_0x41103b:null;}function _0x5aae39(_0x105566){return new window[(_0x1f7c03([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5402f4,_0x35606a)=>{_0x105566[_0x1f7c03([0x74,0x68,0x65,0x6e])](_0x5402f4,_0x35606a),window[_0x1f7c03([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x35606a,0x73758c9f^_0x15c0ce);});}}_0x50509b[_0x1f7c03([0x6f,0x6e])](_0x1f7c03([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5932f8,_0x315dd9)=>{if(_0x315dd9[0x0]!=_0x5d2ed3)return _0x4b9ae5(_0x1f7c03([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x315dd9[0x1]={..._0x315dd9[0x1],[_0x1f7c03([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x293255};},{[_0x1f7c03([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f7c03([0x68,0x69,0x67,0x68])}),_0x50509b[_0x1f7c03([0x6f,0x6e])](_0x1f7c03([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1b7772=>{_0x114906(_0x1b7772[_0x1f7c03([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xb7441d=!0x0,_0xf0c4b9(_0x1b7772[_0x1f7c03([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1f7c03([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f7c03([0x6c,0x6f,0x77])}),_0x3c8dd7[_0x1f7c03([0x74,0x68,0x65,0x6e])](()=>{_0xb7441d||_0x4b9ae5(_0x1f7c03([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x162b64(){return _0x50509b[_0x1f7c03([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f7c03([0x76,0x69,0x65,0x77])][_0x1f7c03([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1f7c03([0x61,0x75,0x74,0x6f]);}function _0x2d4522(){_0x50509b[_0x1f7c03([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f7c03([0x76,0x69,0x65,0x77])][_0x1f7c03([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f7c03([0x61,0x75,0x74,0x6f]);}}function _0x58a4b1(_0x2e0ac2){const _0x1f90dd=[new window[(_0x1f7c03([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x291b8c=>setTimeout(_0x291b8c,0x737d6693^_0x15c0ce)),_0x3c8dd7[_0x1f7c03([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1f7c03([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43f29c=>{let _0x41e711=0x0;_0x50509b[_0x1f7c03([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f7c03([0x6f,0x6e])](_0x1f7c03([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xf94cd6,_0x1ef964)=>{_0x1ef964[0x0][_0x1f7c03([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x41e711++,_0x41e711==(0x73745db7^_0x15c0ce)&&(_0x43f29c(),_0xf94cd6[_0x1f7c03([0x6f,0x66,0x66])]());});}))];return window[_0x1f7c03([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f7c03([0x72,0x61,0x63,0x65])](_0x1f90dd)[_0x1f7c03([0x74,0x68,0x65,0x6e])](()=>_0x2e0ac2);}async function _0x3a6b8f(){await _0x3c8dd7,_0x50509b[_0x1f7c03([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f7c03([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x340ac0,_0x50509b[_0x1f7c03([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f7c03([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x340ac0,_0x50509b[_0x1f7c03([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1f7c03([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1522f5(){return window[_0x1f7c03([0x67,0x6c,0x6f,0x62])]&&window[_0x1f7c03([0x67,0x6c,0x6f,0x62])][_0x1f7c03([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x5cb3e6(_0x2ffdc8){const _0x4203b9=_0x313a6f();_0x50509b[_0x4203b9]=_0x1f7c03([0x70,0x61,0x73,0x74,0x65,0x46,0x72,0x6f,0x6d,0x4f,0x66,0x66,0x69,0x63,0x65,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2ffdc8,_0x2ffdc8!=_0x1f7c03([0x56,0x61,0x6c,0x69,0x64])&&_0x3a6b8f();}function _0x313a6f(){const _0x5e6803=window[_0x1f7c03([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1f7c03([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1f7c03([0x6e,0x6f,0x77])]())[_0x1f7c03([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1f7c03([0x2e]),'');let _0x48ce11=_0x1f7c03([0x73]);for(let _0x1b428c=0x0;_0x1b428c<_0x5e6803[_0x1f7c03([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b428c+=0x2){let _0x36d600=window[_0x1f7c03([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e6803[_0x1f7c03([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b428c,_0x1b428c+0x2));_0x36d600>=_0xfb2fd8[_0x1f7c03([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x36d600-=_0xfb2fd8[_0x1f7c03([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x48ce11+=_0xfb2fd8[_0x36d600];}return _0x48ce11;}function _0x489c90(){const _0x2e28e7=_0x514ef3[_0x1f7c03([0x73,0x70,0x6c,0x69,0x74])](_0x1f7c03([0x2e]));if(0x3!=_0x2e28e7[_0x1f7c03([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xdef58a(_0x2e28e7[0x1]);function _0xdef58a(_0x4a10d4){const _0x35469c=_0x325f6d(_0x4a10d4);return _0x35469c&&_0x3d426b()?_0x35469c:null;function _0x3d426b(){const _0x19b220=_0x35469c[_0x1f7c03([0x6a,0x74,0x69])],_0x10b2b2=window[_0x1f7c03([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19b220[_0x1f7c03([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19b220[_0x1f7c03([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x10ac02={..._0x35469c,[_0x1f7c03([0x6a,0x74,0x69])]:_0x19b220[_0x1f7c03([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x19b220[_0x1f7c03([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x10ac02[_0x1f7c03([0x76,0x63])],_0xe6cc67(_0x10ac02)==_0x10b2b2;}}}async function _0x41a349(){let _0x3551b0=!0x0;try{const _0x3ef3c7=_0x514ef3[_0x1f7c03([0x73,0x70,0x6c,0x69,0x74])](_0x1f7c03([0x2e])),[_0x48761e,_0x5dd55c,_0x4ade47]=_0x3ef3c7;return _0x3b9c98(_0x48761e),await _0x5a9e3d(_0x48761e,_0x5dd55c,_0x4ade47),_0x3551b0;}catch{return!0x1;}function _0x3b9c98(_0x27a827){const _0x2c907d=_0x325f6d(_0x27a827);_0x2c907d&&_0x2c907d[_0x1f7c03([0x61,0x6c,0x67])]==_0x1f7c03([0x45,0x53,0x32,0x35,0x36])||(_0x3551b0=!0x1);}async function _0x5a9e3d(_0x128eb1,_0x4c7e6a,_0x1021b1){const _0xee332a=window[_0x1f7c03([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1f7c03([0x66,0x72,0x6f,0x6d])](_0x2a410c(_0x1021b1),_0x3f0ea6=>_0x3f0ea6[_0x1f7c03([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x27abbd=new window[(_0x1f7c03([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1f7c03([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x128eb1+_0x1f7c03([0x2e])+_0x4c7e6a),_0x5a7c61=window[_0x1f7c03([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1f7c03([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5a7c61)return;const _0x72cf10=await _0x5a7c61[_0x1f7c03([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1f7c03([0x6a,0x77,0x6b]),_0x18815e,{[_0x1f7c03([0x6e,0x61,0x6d,0x65])]:_0x1f7c03([0x45,0x43,0x44,0x53,0x41]),[_0x1f7c03([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1f7c03([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1f7c03([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5a7c61[_0x1f7c03([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1f7c03([0x6e,0x61,0x6d,0x65])]:_0x1f7c03([0x45,0x43,0x44,0x53,0x41]),[_0x1f7c03([0x68,0x61,0x73,0x68])]:{[_0x1f7c03([0x6e,0x61,0x6d,0x65])]:_0x1f7c03([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x72cf10,_0xee332a,_0x27abbd)||(_0x3551b0=!0x1);}}function _0x325f6d(_0x44e4ea){return _0x44e4ea[_0x1f7c03([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1f7c03([0x65,0x79]))?JSON[_0x1f7c03([0x70,0x61,0x72,0x73,0x65])](_0x2a410c(_0x44e4ea)):null;}function _0x2a410c(_0x10e007){return window[_0x1f7c03([0x61,0x74,0x6f,0x62])](_0x10e007[_0x1f7c03([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1f7c03([0x2b]))[_0x1f7c03([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1f7c03([0x2f])));}function _0xe6cc67(_0x3b7ab2){let _0x3fa7a8=0x1505;function _0x20b9b9(_0x4ece79){for(let _0x25e5aa=0x0;_0x25e5aa<_0x4ece79[_0x1f7c03([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x25e5aa++){const _0x41054e=_0x4ece79[_0x1f7c03([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x25e5aa);_0x3fa7a8=(_0x3fa7a8<<0x5)+_0x3fa7a8+_0x41054e,_0x3fa7a8&=_0x3fa7a8;}}function _0x2d999b(_0x21a544){Array[_0x1f7c03([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x21a544)?_0x21a544[_0x1f7c03([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2d999b):_0x21a544&&typeof _0x21a544==_0x1f7c03([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1f7c03([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x21a544)[_0x1f7c03([0x73,0x6f,0x72,0x74])]()[_0x1f7c03([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x8988e2,_0x3421c2])=>{_0x20b9b9(_0x8988e2),_0x2d999b(_0x3421c2);}):_0x20b9b9(window[_0x1f7c03([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x21a544));}return _0x2d999b(_0x3b7ab2),_0x3fa7a8>>>0x0;}function _0x1a83b4(_0x1872ac){return _0x1872ac[_0x1f7c03([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1f7c03([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1f7c03([0x30]));}function _0x2f96d5(_0x44298c){return _0x44298c[_0x1f7c03([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1f7c03([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1f7c03([0x6a,0x6f,0x69,0x6e])]('');}function _0x340ac0(){}function _0x1f7c03(_0x2f67bf){return _0x2f67bf['map'](_0x4f6cb9=>String['fromCharCode'](_0x4f6cb9))['join']('');}_0x5cb3e6(await _0x1229b0());}(this);}}const O=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],E=['color','font-family','font-size'],L={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x44656b=>Number(_0x44656b)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function x(_0x31a8ae){return O['includes'](_0x31a8ae);}function b(_0x3479e6){return Array['from'](_0x3479e6['getStyleNames']())['filter'](x);}function F(_0x3bd51f,_0x1bfefe,_0x57a4bc){const {spanStyles:_0x2407e4,stylesToBeHtmlElements:_0x93a1dd}=P(_0x3bd51f,_0x57a4bc);!function(_0x43ce68,_0x41174d,_0x170398){for(const _0x385a9b in _0x170398){_0x170398[_0x385a9b]['forEach'](([,_0x25a346])=>{const _0x47ecac=_0x41174d['createElement'](_0x25a346,[],_0x43ce68['getChildren']());_0x41174d['insertChild'](0x0,_0x47ecac,_0x43ce68);}),_0x41174d['removeStyle'](_0x385a9b,_0x43ce68);}}(_0x3bd51f,_0x1bfefe,_0x93a1dd),function(_0x401463,_0x985944,_0x56c7ae){if(!Object['keys'](_0x56c7ae)['length'])return;const _0x530372=_0x985944['createElement']('span',[],_0x401463['getChildren']());_0x985944['setStyle'](_0x56c7ae,_0x530372),_0x985944['insertChild'](0x0,_0x530372,_0x401463),_0x985944['removeStyle'](Object['keys'](_0x56c7ae),_0x401463);}(_0x3bd51f,_0x1bfefe,_0x2407e4);}function K(_0x512fb2,_0x262e7a,_0x36e9cc){const {spanStyles:_0x29dc83}=P(_0x512fb2,_0x36e9cc),_0x1043a0=Object['keys'](_0x29dc83);if(!_0x1043a0['length'])return;let _0x3bd089=!0x1;for(const _0x14d183 of _0x512fb2['getChildren']())if(_0x14d183['is']('element','span')){_0x3bd089=!0x0;for(const [_0x25e9c1,_0x5b1bb0]of Object['entries'](_0x29dc83))_0x14d183['hasStyle'](_0x25e9c1)||_0x262e7a['setStyle']({[_0x25e9c1]:_0x5b1bb0},_0x14d183);}_0x3bd089&&_0x262e7a['removeStyle'](_0x1043a0,_0x512fb2);}function P(_0x47cbe4,_0x671f1){const _0x102cc3={},_0x568c56={};return _0x671f1['forEach'](_0xf6625b=>{const _0x31d43d=_0x47cbe4['getStyle'](_0xf6625b);if(_0x31d43d){if(function(_0x2a439a){return E['includes'](_0x2a439a);}(_0xf6625b))_0x102cc3[_0xf6625b]=_0x31d43d;else{if(function(_0x34c7ea){return _0x34c7ea in L;}(_0xf6625b)){const _0x265017=_0x31d43d['split']('\x20');L[_0xf6625b]['forEach'](([_0x3139c4,_0x550d5a])=>{for(const _0x2beaed of _0x265017){('function'==typeof _0x3139c4&&_0x3139c4(_0x2beaed)||_0x3139c4===_0x2beaed)&&(_0x568c56[_0xf6625b]=[..._0x568c56[_0xf6625b]||[],[_0x3139c4,_0x550d5a]]);}});}}}}),{'spanStyles':_0x102cc3,'stylesToBeHtmlElements':_0x568c56};}class v extends _0x51d362{['execute'](_0x333aa4){const {body:_0x2e0c5f}=_0x333aa4['_parsedData'],_0x41718a=new _0x142777(_0x2e0c5f['document']),_0x43eab5=_0x41718a['createRangeIn'](_0x2e0c5f),_0x2304c3=new _0x3a3350(_0x41718a['document']['stylesProcessor']),_0x23d53f=[...new _0x54aaf2(_0x2304c3)['blockElements'],'font'],_0xc45ca=_0x43eab5['getItems']();for(const _0x3a3e57 of _0xc45ca)if(_0x3a3e57['is']('element')&&_0x23d53f['includes'](_0x3a3e57['name'])){if(_0x3a3e57['hasStyle']('mso-list')&&'none'!==_0x3a3e57['getStyle']('mso-list')){K(_0x3a3e57,_0x41718a,b(_0x3a3e57));continue;}F(_0x3a3e57,_0x41718a,b(_0x3a3e57));}_0x333aa4['content']=_0x2e0c5f;}['isActive'](_0x5a415f){return super['isActive'](_0x5a415f)||l(_0x5a415f);}}class k extends _0x333fdd{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x31034a];}['init'](){const _0x4cb3ac=this['editor'],_0x5edf98=_0x4cb3ac['plugins']['get']('ClipboardPipeline'),_0x56f1c9=_0x4cb3ac['editing']['view']['document'],_0x594550=new v(_0x56f1c9);_0x5edf98['on']('inputTransformation',(_0x14a116,_0x454b59)=>{const _0x4321f4=_0x454b59['dataTransfer']['getData']('text/html');_0x594550['isActive'](_0x4321f4)&&(_0x454b59['_parsedData']||(_0x454b59['_parsedData']=_0x1c4ed6(_0x4321f4,_0x56f1c9['stylesProcessor'])),_0x594550['execute'](_0x454b59));},{'priority':_0x49aadb['get']('high')+0xa}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1b654c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x313a67;for(const _0x31a15a in _0x1b654c){const _0x377d9f=_0x31a15a,_0x447791=_0x1b654c[_0x377d9f];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x447791||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x447791||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x447791||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x447791||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x447791||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x447791||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x447791){delete _0x1b654c[_0x377d9f],_0x313a67=_0x447791,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x313a67&&_0x1b654c['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x313a67&&_0x1b654c['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x313a67&&_0x1b654c['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x313a67&&_0x1b654c['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x313a67&&_0x1b654c['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x313a67&&_0x1b654c['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class j extends _0x333fdd{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x31034a,h,k];}}export{j as PasteFromOfficeEnhanced};
23
+ import{Plugin as _0x3c0f80}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0x2d8fd2,PasteFromOffice as _0x58a648,parsePasteOfficeHtml as _0x48c40d}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0xdbeee7,uid as _0xaf470c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x59489a,ViewDocument as _0x3a62a3,ViewDomConverter as _0x232dfb}from'@ckeditor/ckeditor5-engine/dist/index.js';const a=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function l(_0x15b1c4){return a['test'](_0x15b1c4);}const d=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function w(_0x341a00,_0x5ae457){const _0x24f201=new Map();for(const [_0x4c2473,_0x42ef85]of _0x5ae457){if(!_0x4c2473['tagName']&&!_0x4c2473['className'])continue;const _0x15f2da=!_0x4c2473['tagName']||_0x341a00['name']===_0x4c2473['tagName'],_0x4d6fa2=!_0x4c2473['className']||_0x341a00['hasClass'](_0x4c2473['className']);_0x15f2da&&_0x4d6fa2&&_0x24f201['set'](_0x4c2473,_0x42ef85);}return _0x24f201;}function m(_0x1b9807){const _0x55f79d={};for(let _0x5e601c=0x0;_0x5e601c<_0x1b9807['length'];_0x5e601c++){const _0x2aa805=_0x1b9807[_0x5e601c],_0x47a7cc=_0x1b9807['getPropertyValue'](_0x2aa805);'initial'!==_0x47a7cc&&(_0x55f79d[_0x2aa805]=_0x47a7cc);}return _0x55f79d;}function p(_0xc3872){const _0x83f94d=_0xc3872['split'](',')['map'](_0x415f9e=>_0x415f9e['trim']()),_0x564fdf=[];for(const _0x17e3ce of _0x83f94d){const _0x5ed6e6=d['exec'](_0x17e3ce);_0x5ed6e6&&_0x564fdf['push'](_0x5ed6e6['groups']);}return _0x564fdf;}function y(_0x2585c2){const _0x10fc07={};for(const _0x7bfcfe of _0x2585c2)Object['assign'](_0x10fc07,_0x7bfcfe);return _0x10fc07;}class g extends _0x2d8fd2{['execute'](_0x1de81d){const {body:_0x24b8a3,styles:_0x37d1c6,stylesString:_0x4241ca}=_0x1de81d['_parsedData'],_0x53ce7f=new _0x59489a(_0x24b8a3['document']),_0x229e9b=_0x53ce7f['createRangeIn'](_0x24b8a3),_0x2da979=function(_0x5b048b){const _0x5379ac={};for(const _0x55b26d of _0x5b048b)for(const _0x48c2dc of _0x55b26d['cssRules'])if(_0x48c2dc instanceof CSSStyleRule){const _0x4556e7=m(_0x48c2dc['style']);_0x5379ac[_0x48c2dc['selectorText']]=Object['assign']({},_0x5379ac[_0x48c2dc['selectorText']]||{},_0x4556e7);}return _0x5379ac;}(_0x37d1c6),_0x5945aa=function(_0x1aa3bd){const _0x306913=new Map();for(const _0x5632cb in _0x1aa3bd){const _0x33c200=p(_0x5632cb),_0xafd57f=_0x1aa3bd[_0x5632cb];for(const _0x46b5e7 of _0x33c200)_0x306913['set'](_0x46b5e7,_0xafd57f);}return _0x306913;}(_0x2da979),_0x424deb=function(_0x5cf9eb){const _0x28362d={},_0x228ad1=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x238cf2=/\.(?<className>[\w-]+)/g;let _0x3db055;for(;null!==(_0x3db055=_0x228ad1['exec'](_0x5cf9eb));){const {selector:_0x5f4571,color:_0xc92438,patternType:_0x146074}=_0x3db055['groups'];if('auto'!==_0xc92438['toLowerCase']()&&'none'!==_0x146074['toLowerCase']()&&'auto'!==_0x146074['toLowerCase']()){for(const _0x41573b of _0x5f4571['matchAll'](_0x238cf2))_0x28362d[_0x41573b['groups']['className']]=_0xc92438;}}return _0x28362d;}(_0x4241ca);for(const _0x3d1002 of _0x229e9b){if('elementStart'!==_0x3d1002['type'])continue;const _0x3a9e59=_0x3d1002['item'],_0x5d877b=w(_0x3a9e59,_0x5945aa),_0x19ec0d=_0x5d877b['size']?y(Array['from'](_0x5d877b['values']())):{};if(!('background-color'in _0x19ec0d)&&!('background'in _0x19ec0d)){for(const [_0x571aea,_0x464e4e]of Object['entries'](_0x424deb))if(_0x3a9e59['hasClass'](_0x571aea)){_0x19ec0d['background-color']=_0x464e4e;break;}}for(const _0x2dc071 in _0x19ec0d)_0x3a9e59['hasStyle'](_0x2dc071)||_0x53ce7f['setStyle'](_0x2dc071,_0x19ec0d[_0x2dc071],_0x3a9e59);}_0x1de81d['content']=_0x24b8a3;}['isActive'](_0x1a88c){return super['isActive'](_0x1a88c)||l(_0x1a88c);}}class h extends _0x3c0f80{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x58a648];}['init'](){const _0x2f4fa0=this['editor'],_0x4d85e3=_0x2f4fa0['plugins']['get']('ClipboardPipeline'),_0xd9abf7=_0x2f4fa0['editing']['view']['document'],_0x5b76c3=new g(_0xd9abf7);_0x4d85e3['on']('inputTransformation',(_0x2653a6,_0x205df6)=>{const _0xb5344c=_0x205df6['dataTransfer']['getData']('text/html');_0x5b76c3['isActive'](_0xb5344c)&&(_0x205df6['_parsedData']||(_0x205df6['_parsedData']=_0x48c40d(_0xb5344c,_0xd9abf7['stylesProcessor'])),_0x5b76c3['execute'](_0x205df6));},{'priority':_0xdbeee7['get']('high')+0xb});}['afterInit'](){!async function(_0x200157){const _0x5b4469=_0x3b403f([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x52ff6e=0x7374585f,_0x1bb770=0x7373d1af^_0x52ff6e,_0x20ee04=window[_0x3b403f([0x44,0x61,0x74,0x65])][_0x3b403f([0x6e,0x6f,0x77])](),_0x9384d8=_0x200157[_0x3b403f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4ef9db=new window[(_0x3b403f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x528260=>{_0x9384d8[_0x3b403f([0x6f,0x6e,0x63,0x65])](_0x3b403f([0x72,0x65,0x61,0x64,0x79]),_0x528260);}),_0x5a2c17={[_0x3b403f([0x6b,0x74,0x79])]:_0x3b403f([0x45,0x43]),[_0x3b403f([0x75,0x73,0x65])]:_0x3b403f([0x73,0x69,0x67]),[_0x3b403f([0x63,0x72,0x76])]:_0x3b403f([0x50,0x2d,0x32,0x35,0x36]),[_0x3b403f([0x78])]:_0x3b403f([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x3b403f([0x79])]:_0x3b403f([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x3b403f([0x61,0x6c,0x67])]:_0x3b403f([0x45,0x53,0x32,0x35,0x36])},_0x3559cf=_0x9384d8[_0x3b403f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b403f([0x67,0x65,0x74])](_0x3b403f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x48b20d(){let _0x2ae5cd,_0x433c62=null,_0x2f8487=null;try{if(_0x3559cf==_0x3b403f([0x47,0x50,0x4c]))return _0x3b403f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2ae5cd=_0x2e5ed3(),!_0x2ae5cd)return _0x3b403f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2ae5cd[_0x3b403f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f8487=_0x3da4f6(_0x2ae5cd[_0x3b403f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2ae5cd[_0x3b403f([0x6a,0x74,0x69])])),await _0x565c9()?_0xe6a833()?_0x57bcbb()?_0x3b403f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3e1a96()?(_0x2ae5cd[_0x3b403f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b403f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x433c62=_0x4b030f(_0x3b403f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3ddd1a()):_0x3b403f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b403f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b403f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3b403f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x57bcbb(){const _0x222adc=[_0x3b403f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b403f([0x74,0x72,0x69,0x61,0x6c])][_0x3b403f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ae5cd[_0x3b403f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x20ee04/0x3e8:0xe10*_0x1bb770;return _0x2ae5cd[_0x3b403f([0x65,0x78,0x70])]<_0x222adc;}function _0xe6a833(){const _0x57cb25=_0x2ae5cd[_0x3b403f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x57cb25&&(!!_0x57cb25[_0x3b403f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b403f([0x2a]))||(!!_0x57cb25[_0x3b403f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b403f([0x50,0x4f,0x45]))||(!!_0x57cb25[_0x3b403f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b403f([0x50,0x50]))||!(!_0x57cb25[_0x3b403f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b403f([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x4f8de9()))));}function _0x3e1a96(){const _0x2bca03=_0x2ae5cd[_0x3b403f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2bca03||0x0==_0x2bca03[_0x3b403f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5c8790}=new URL(window[_0x3b403f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2bca03[_0x3b403f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c8790))return!0x0;const _0xe35872=_0x5c8790[_0x3b403f([0x73,0x70,0x6c,0x69,0x74])](_0x3b403f([0x2e]));return _0x2bca03[_0x3b403f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf7d499=>_0xf7d499[_0x3b403f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b403f([0x2a])))[_0x3b403f([0x6d,0x61,0x70])](_0xac0342=>_0xac0342[_0x3b403f([0x73,0x70,0x6c,0x69,0x74])](_0x3b403f([0x2e])))[_0x3b403f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x28c566=>_0x28c566[_0x3b403f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xe35872[_0x3b403f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b403f([0x6d,0x61,0x70])](_0x109e2e=>Array(_0xe35872[_0x3b403f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x109e2e[_0x3b403f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b403f([0x66,0x69,0x6c,0x6c])](_0x109e2e[0x0]===_0x3b403f([0x2a])?_0x3b403f([0x2a]):'')[_0x3b403f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x109e2e))[_0x3b403f([0x73,0x6f,0x6d,0x65])](_0x58b3ca=>_0xe35872[_0x3b403f([0x65,0x76,0x65,0x72,0x79])]((_0x488890,_0x3afba1)=>_0x58b3ca[_0x3afba1]===_0x488890||_0x58b3ca[_0x3afba1]===_0x3b403f([0x2a])));}function _0x3ddd1a(){return _0x433c62&&_0x2f8487?new window[(_0x3b403f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x45df21,_0x18635e)=>{_0x433c62[_0x3b403f([0x74,0x68,0x65,0x6e])](_0x45df21,_0x18635e),_0x2f8487[_0x3b403f([0x74,0x68,0x65,0x6e])](_0x10e82e=>{_0x10e82e!=_0x3b403f([0x56,0x61,0x6c,0x69,0x64])&&_0x45df21(_0x10e82e);},_0x18635e);}):_0x433c62||_0x2f8487||_0x3b403f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3da4f6(_0x16ffd8,_0x2c4481){return new window[(_0x3b403f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x299df0=>{if(_0x441256())return _0x299df0(_0x3b403f([0x56,0x61,0x6c,0x69,0x64]));_0x14d65c(),_0x9384d8[_0x3b403f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b403f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x20970f=!0x1;const _0x24d3f2=_0xaf470c();function _0x412f48(_0x13f238){return!!_0x13f238&&(typeof _0x13f238===_0x3b403f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x13f238===_0x3b403f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x13f238[_0x3b403f([0x74,0x68,0x65,0x6e])]===_0x3b403f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x13f238[_0x3b403f([0x63,0x61,0x74,0x63,0x68])]===_0x3b403f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2c7fec(_0x230300){_0x5eb858(_0x230300)[_0x3b403f([0x74,0x68,0x65,0x6e])](_0x2bfd30=>{if(!_0x2bfd30||_0x2bfd30[_0x3b403f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b403f([0x6f,0x6b]))return _0x3b403f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4deabc(_0x1c0e43(_0x24d3f2+_0x2c4481))!=_0x2bfd30[_0x3b403f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b403f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b403f([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b403f([0x74,0x68,0x65,0x6e])](_0x2713c8=>(_0x1302e7(),_0x2713c8),()=>{const _0x598dbf=_0x952935();return null==_0x598dbf?(_0x1302e7(),_0x3b403f([0x56,0x61,0x6c,0x69,0x64])):_0x3b403f(_0x20ee04-_0x598dbf>(0x5778dc5f^_0x52ff6e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b403f([0x74,0x68,0x65,0x6e])](_0x299df0)[_0x3b403f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x299df0(_0x3b403f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1050bd=0x7342b6df^_0x52ff6e;function _0x1302e7(){const _0x371170=_0x3b403f([0x6c,0x6c,0x63,0x74,0x2d])+_0x4deabc(_0x1c0e43(_0x16ffd8)),_0x5d6a41=_0x68d927(_0x4deabc(window[_0x3b403f([0x4d,0x61,0x74,0x68])][_0x3b403f([0x63,0x65,0x69,0x6c])](_0x20ee04/_0x1050bd)));window[_0x3b403f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b403f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x371170,_0x5d6a41);}function _0x952935(){const _0x1d470b=_0x3b403f([0x6c,0x6c,0x63,0x74,0x2d])+_0x4deabc(_0x1c0e43(_0x16ffd8)),_0x321374=window[_0x3b403f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b403f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d470b);return _0x321374?window[_0x3b403f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x68d927(_0x321374),0x10)*_0x1050bd:null;}function _0x5eb858(_0x2247f2){return new window[(_0x3b403f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc9e34e,_0x2fc55e)=>{_0x2247f2[_0x3b403f([0x74,0x68,0x65,0x6e])](_0xc9e34e,_0x2fc55e),window[_0x3b403f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2fc55e,0x73758c9f^_0x52ff6e);});}}_0x9384d8[_0x3b403f([0x6f,0x6e])](_0x3b403f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xc98fcd,_0x130d50)=>{if(_0x130d50[0x0]!=_0x16ffd8)return _0x299df0(_0x3b403f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x130d50[0x1]={..._0x130d50[0x1],[_0x3b403f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x24d3f2};},{[_0x3b403f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b403f([0x68,0x69,0x67,0x68])}),_0x9384d8[_0x3b403f([0x6f,0x6e])](_0x3b403f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xcb1fb4=>{_0x412f48(_0xcb1fb4[_0x3b403f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x20970f=!0x0,_0x2c7fec(_0xcb1fb4[_0x3b403f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b403f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b403f([0x6c,0x6f,0x77])}),_0x4ef9db[_0x3b403f([0x74,0x68,0x65,0x6e])](()=>{_0x20970f||_0x299df0(_0x3b403f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x441256(){return _0x9384d8[_0x3b403f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b403f([0x76,0x69,0x65,0x77])][_0x3b403f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b403f([0x61,0x75,0x74,0x6f]);}function _0x14d65c(){_0x9384d8[_0x3b403f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b403f([0x76,0x69,0x65,0x77])][_0x3b403f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b403f([0x61,0x75,0x74,0x6f]);}}function _0x4b030f(_0x39cd14){const _0x41f248=[new window[(_0x3b403f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a8b62=>setTimeout(_0x5a8b62,0x737d6693^_0x52ff6e)),_0x4ef9db[_0x3b403f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b403f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43f49a=>{let _0x4a7ab7=0x0;_0x9384d8[_0x3b403f([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b403f([0x6f,0x6e])](_0x3b403f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1a24ef,_0x15c4c6)=>{_0x15c4c6[0x0][_0x3b403f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a7ab7++,_0x4a7ab7==(0x73745db7^_0x52ff6e)&&(_0x43f49a(),_0x1a24ef[_0x3b403f([0x6f,0x66,0x66])]());});}))];return window[_0x3b403f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b403f([0x72,0x61,0x63,0x65])](_0x41f248)[_0x3b403f([0x74,0x68,0x65,0x6e])](()=>_0x39cd14);}async function _0xb84be4(){await _0x4ef9db,_0x9384d8[_0x3b403f([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b403f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xaf0086,_0x9384d8[_0x3b403f([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b403f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xaf0086,_0x9384d8[_0x3b403f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b403f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4f8de9(){return window[_0x3b403f([0x67,0x6c,0x6f,0x62])]&&window[_0x3b403f([0x67,0x6c,0x6f,0x62])][_0x3b403f([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0xe738cc(_0x5a829f){const _0x462778=_0x475f6e();_0x9384d8[_0x462778]=_0x3b403f([0x70,0x61,0x73,0x74,0x65,0x46,0x72,0x6f,0x6d,0x4f,0x66,0x66,0x69,0x63,0x65,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5a829f,_0x5a829f!=_0x3b403f([0x56,0x61,0x6c,0x69,0x64])&&_0xb84be4();}function _0x475f6e(){const _0x13911b=window[_0x3b403f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b403f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b403f([0x6e,0x6f,0x77])]())[_0x3b403f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b403f([0x2e]),'');let _0x1083dd=_0x3b403f([0x73]);for(let _0x1f0a9c=0x0;_0x1f0a9c<_0x13911b[_0x3b403f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f0a9c+=0x2){let _0x96bb61=window[_0x3b403f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13911b[_0x3b403f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f0a9c,_0x1f0a9c+0x2));_0x96bb61>=_0x5b4469[_0x3b403f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x96bb61-=_0x5b4469[_0x3b403f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1083dd+=_0x5b4469[_0x96bb61];}return _0x1083dd;}function _0x2e5ed3(){const _0x3532dc=_0x3559cf[_0x3b403f([0x73,0x70,0x6c,0x69,0x74])](_0x3b403f([0x2e]));if(0x3!=_0x3532dc[_0x3b403f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x411f1a(_0x3532dc[0x1]);function _0x411f1a(_0x8ba555){const _0x5aa96a=_0x25515e(_0x8ba555);return _0x5aa96a&&_0x1ec67e()?_0x5aa96a:null;function _0x1ec67e(){const _0xb79e8a=_0x5aa96a[_0x3b403f([0x6a,0x74,0x69])],_0x2d59cb=window[_0x3b403f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb79e8a[_0x3b403f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb79e8a[_0x3b403f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x519d8d={..._0x5aa96a,[_0x3b403f([0x6a,0x74,0x69])]:_0xb79e8a[_0x3b403f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xb79e8a[_0x3b403f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x519d8d[_0x3b403f([0x76,0x63])],_0x1c0e43(_0x519d8d)==_0x2d59cb;}}}async function _0x565c9(){let _0x19af24=!0x0;try{const _0x5d7612=_0x3559cf[_0x3b403f([0x73,0x70,0x6c,0x69,0x74])](_0x3b403f([0x2e])),[_0x217e43,_0x5f28ff,_0x3a2775]=_0x5d7612;return _0x1989cf(_0x217e43),await _0x416931(_0x217e43,_0x5f28ff,_0x3a2775),_0x19af24;}catch{return!0x1;}function _0x1989cf(_0xf8bad8){const _0x44c353=_0x25515e(_0xf8bad8);_0x44c353&&_0x44c353[_0x3b403f([0x61,0x6c,0x67])]==_0x3b403f([0x45,0x53,0x32,0x35,0x36])||(_0x19af24=!0x1);}async function _0x416931(_0x2274d8,_0x5de31b,_0x13e619){const _0x30195f=window[_0x3b403f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b403f([0x66,0x72,0x6f,0x6d])](_0x3d7ae1(_0x13e619),_0x2b3f60=>_0x2b3f60[_0x3b403f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x10402a=new window[(_0x3b403f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b403f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2274d8+_0x3b403f([0x2e])+_0x5de31b),_0x529afc=window[_0x3b403f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b403f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x529afc)return;const _0x446643=await _0x529afc[_0x3b403f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b403f([0x6a,0x77,0x6b]),_0x5a2c17,{[_0x3b403f([0x6e,0x61,0x6d,0x65])]:_0x3b403f([0x45,0x43,0x44,0x53,0x41]),[_0x3b403f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b403f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b403f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x529afc[_0x3b403f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b403f([0x6e,0x61,0x6d,0x65])]:_0x3b403f([0x45,0x43,0x44,0x53,0x41]),[_0x3b403f([0x68,0x61,0x73,0x68])]:{[_0x3b403f([0x6e,0x61,0x6d,0x65])]:_0x3b403f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x446643,_0x30195f,_0x10402a)||(_0x19af24=!0x1);}}function _0x25515e(_0x350edf){return _0x350edf[_0x3b403f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b403f([0x65,0x79]))?JSON[_0x3b403f([0x70,0x61,0x72,0x73,0x65])](_0x3d7ae1(_0x350edf)):null;}function _0x3d7ae1(_0x126e19){return window[_0x3b403f([0x61,0x74,0x6f,0x62])](_0x126e19[_0x3b403f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b403f([0x2b]))[_0x3b403f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b403f([0x2f])));}function _0x1c0e43(_0x50f900){let _0x13f9ba=0x1505;function _0x71e275(_0x55a6ea){for(let _0x5385e6=0x0;_0x5385e6<_0x55a6ea[_0x3b403f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5385e6++){const _0x10c45c=_0x55a6ea[_0x3b403f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5385e6);_0x13f9ba=(_0x13f9ba<<0x5)+_0x13f9ba+_0x10c45c,_0x13f9ba&=_0x13f9ba;}}function _0x15c7d6(_0x10c23d){Array[_0x3b403f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10c23d)?_0x10c23d[_0x3b403f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x15c7d6):_0x10c23d&&typeof _0x10c23d==_0x3b403f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b403f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10c23d)[_0x3b403f([0x73,0x6f,0x72,0x74])]()[_0x3b403f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1930e0,_0x1fd446])=>{_0x71e275(_0x1930e0),_0x15c7d6(_0x1fd446);}):_0x71e275(window[_0x3b403f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10c23d));}return _0x15c7d6(_0x50f900),_0x13f9ba>>>0x0;}function _0x4deabc(_0x4da1de){return _0x4da1de[_0x3b403f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b403f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b403f([0x30]));}function _0x68d927(_0x3ade48){return _0x3ade48[_0x3b403f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b403f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b403f([0x6a,0x6f,0x69,0x6e])]('');}function _0xaf0086(){}function _0x3b403f(_0xbb4dec){return _0xbb4dec['map'](_0x3f2b88=>String['fromCharCode'](_0x3f2b88))['join']('');}_0xe738cc(await _0x48b20d());}(this);}}const O=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],E=['color','font-family','font-size'],L={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x407fcd=>Number(_0x407fcd)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function x(_0x7565d4){return O['includes'](_0x7565d4);}function b(_0x198891){return Array['from'](_0x198891['getStyleNames']())['filter'](x);}function F(_0x25bda6,_0xba4c7e,_0xf51a5){const {spanStyles:_0x30f2cd,stylesToBeHtmlElements:_0x35442e}=P(_0x25bda6,_0xf51a5);!function(_0x30d946,_0x16b67a,_0x2e0871){for(const _0x421f00 in _0x2e0871){_0x2e0871[_0x421f00]['forEach'](([,_0x5e5007])=>{const _0x4e2a2a=_0x16b67a['createElement'](_0x5e5007,[],_0x30d946['getChildren']());_0x16b67a['insertChild'](0x0,_0x4e2a2a,_0x30d946);}),_0x16b67a['removeStyle'](_0x421f00,_0x30d946);}}(_0x25bda6,_0xba4c7e,_0x35442e),function(_0x53cc55,_0x1f37f6,_0xac7108){if(!Object['keys'](_0xac7108)['length'])return;const _0x3048d3=_0x1f37f6['createElement']('span',[],_0x53cc55['getChildren']());_0x1f37f6['setStyle'](_0xac7108,_0x3048d3),_0x1f37f6['insertChild'](0x0,_0x3048d3,_0x53cc55),_0x1f37f6['removeStyle'](Object['keys'](_0xac7108),_0x53cc55);}(_0x25bda6,_0xba4c7e,_0x30f2cd);}function K(_0xfae2c,_0x1d86f4,_0x4c3dad){const {spanStyles:_0x51d027}=P(_0xfae2c,_0x4c3dad),_0x312c8d=Object['keys'](_0x51d027);if(!_0x312c8d['length'])return;let _0x2b0ba6=!0x1;for(const _0x23fd7e of _0xfae2c['getChildren']())if(_0x23fd7e['is']('element','span')){_0x2b0ba6=!0x0;for(const [_0x5eded6,_0x482987]of Object['entries'](_0x51d027))_0x23fd7e['hasStyle'](_0x5eded6)||_0x1d86f4['setStyle']({[_0x5eded6]:_0x482987},_0x23fd7e);}_0x2b0ba6&&_0x1d86f4['removeStyle'](_0x312c8d,_0xfae2c);}function P(_0x3062d8,_0x14d0fd){const _0x11d382={},_0x40b327={};return _0x14d0fd['forEach'](_0x2ebbfe=>{const _0x4b1bbc=_0x3062d8['getStyle'](_0x2ebbfe);if(_0x4b1bbc){if(function(_0x52a581){return E['includes'](_0x52a581);}(_0x2ebbfe))_0x11d382[_0x2ebbfe]=_0x4b1bbc;else{if(function(_0xbb775e){return _0xbb775e in L;}(_0x2ebbfe)){const _0x40fd39=_0x4b1bbc['split']('\x20');L[_0x2ebbfe]['forEach'](([_0x504ba3,_0x3b48ab])=>{for(const _0x74d586 of _0x40fd39){('function'==typeof _0x504ba3&&_0x504ba3(_0x74d586)||_0x504ba3===_0x74d586)&&(_0x40b327[_0x2ebbfe]=[..._0x40b327[_0x2ebbfe]||[],[_0x504ba3,_0x3b48ab]]);}});}}}}),{'spanStyles':_0x11d382,'stylesToBeHtmlElements':_0x40b327};}class v extends _0x2d8fd2{['execute'](_0x78dbe5){const {body:_0xa11a45}=_0x78dbe5['_parsedData'],_0x593846=new _0x59489a(_0xa11a45['document']),_0x2307ae=_0x593846['createRangeIn'](_0xa11a45),_0x52bb9a=new _0x3a62a3(_0x593846['document']['stylesProcessor']),_0x383c3f=[...new _0x232dfb(_0x52bb9a)['blockElements'],'font'],_0xa63e7a=_0x2307ae['getItems']();for(const _0x523309 of _0xa63e7a)if(_0x523309['is']('element')&&_0x383c3f['includes'](_0x523309['name'])){if(_0x523309['hasStyle']('mso-list')&&'none'!==_0x523309['getStyle']('mso-list')){K(_0x523309,_0x593846,b(_0x523309));continue;}F(_0x523309,_0x593846,b(_0x523309));}_0x78dbe5['content']=_0xa11a45;}['isActive'](_0x23f892){return super['isActive'](_0x23f892)||l(_0x23f892);}}class k extends _0x3c0f80{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x58a648];}['init'](){const _0x477023=this['editor'],_0x7e2612=_0x477023['plugins']['get']('ClipboardPipeline'),_0x4e686e=_0x477023['editing']['view']['document'],_0x423b42=new v(_0x4e686e);_0x7e2612['on']('inputTransformation',(_0x214170,_0x53e657)=>{const _0x3b0f22=_0x53e657['dataTransfer']['getData']('text/html');_0x423b42['isActive'](_0x3b0f22)&&(_0x53e657['_parsedData']||(_0x53e657['_parsedData']=_0x48c40d(_0x3b0f22,_0x4e686e['stylesProcessor'])),_0x423b42['execute'](_0x53e657));},{'priority':_0xdbeee7['get']('high')+0xa}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x42be5f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xa0271f;for(const _0x242d33 in _0x42be5f){const _0x285fe7=_0x242d33,_0x2719fc=_0x42be5f[_0x285fe7];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x2719fc||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x2719fc||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x2719fc||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x2719fc||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x2719fc||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x2719fc||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x2719fc){delete _0x42be5f[_0x285fe7],_0xa0271f=_0x2719fc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0xa0271f&&_0x42be5f['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0xa0271f&&_0x42be5f['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0xa0271f&&_0x42be5f['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0xa0271f&&_0x42be5f['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0xa0271f&&_0x42be5f['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0xa0271f&&_0x42be5f['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class j extends _0x3c0f80{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x58a648,h,k];}}export{j as PasteFromOfficeEnhanced};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-paste-from-office-enhanced",
3
- "version": "48.1.0-alpha.7",
3
+ "version": "48.1.0-alpha.8",
4
4
  "description": "Enhanced paste from Office feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -31,11 +31,11 @@
31
31
  "./package.json": "./package.json"
32
32
  },
33
33
  "dependencies": {
34
- "@ckeditor/ckeditor5-clipboard": "48.1.0-alpha.7",
35
- "@ckeditor/ckeditor5-core": "48.1.0-alpha.7",
36
- "@ckeditor/ckeditor5-engine": "48.1.0-alpha.7",
37
- "@ckeditor/ckeditor5-paste-from-office": "48.1.0-alpha.7",
38
- "@ckeditor/ckeditor5-utils": "48.1.0-alpha.7"
34
+ "@ckeditor/ckeditor5-clipboard": "48.1.0-alpha.8",
35
+ "@ckeditor/ckeditor5-core": "48.1.0-alpha.8",
36
+ "@ckeditor/ckeditor5-engine": "48.1.0-alpha.8",
37
+ "@ckeditor/ckeditor5-paste-from-office": "48.1.0-alpha.8",
38
+ "@ckeditor/ckeditor5-utils": "48.1.0-alpha.8"
39
39
  },
40
40
  "files": [
41
41
  "dist",