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

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 _0x367eaf}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0x27e5f1,PasteFromOffice as _0x33780c}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0x584e44,uid as _0x489d7b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x1692fb,ViewDocument as _0x5d10cf,ViewDomConverter as _0x4fada7}from'@ckeditor/ckeditor5-engine/dist/index.js';const a=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0xe03171){return a['test'](_0xe03171);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x18869b,_0x4390ec){const _0x48726d=new Map();for(const [_0x1d4505,_0x49bded]of _0x4390ec){if(!_0x1d4505['tagName']&&!_0x1d4505['className'])continue;const _0x68c083=!_0x1d4505['tagName']||_0x18869b['name']===_0x1d4505['tagName'],_0x3599ef=!_0x1d4505['className']||_0x18869b['hasClass'](_0x1d4505['className']);_0x68c083&&_0x3599ef&&_0x48726d['set'](_0x1d4505,_0x49bded);}return _0x48726d;}function w(_0x1cce1c){const _0x3f0b49={};for(let _0x4623ea=0x0;_0x4623ea<_0x1cce1c['length'];_0x4623ea++){const _0x2d797f=_0x1cce1c[_0x4623ea],_0x5b53f5=_0x1cce1c['getPropertyValue'](_0x2d797f);'initial'!==_0x5b53f5&&(_0x3f0b49[_0x2d797f]=_0x5b53f5);}return _0x3f0b49;}function m(_0x1160bd){const _0x3deac5=_0x1160bd['split'](',')['map'](_0x5cd340=>_0x5cd340['trim']()),_0x4af679=[];for(const _0x167f37 of _0x3deac5){const _0x5b675b=l['exec'](_0x167f37);_0x5b675b&&_0x4af679['push'](_0x5b675b['groups']);}return _0x4af679;}function p(_0x3f397f){const _0x13c847={};for(const _0x500a1d of _0x3f397f)Object['assign'](_0x13c847,_0x500a1d);return _0x13c847;}class MSOfficeStylesInliner extends _0x27e5f1{['execute'](_0x1bca28){const {styles:_0x50cf52,stylesString:_0x3ddea6}=_0x1bca28['extraContent'],_0x31c652=new _0x1692fb(_0x1bca28['content']['document']),_0x39884c=_0x31c652['createRangeIn'](_0x1bca28['content']),_0x5d25a9=function(_0x4f6d32){const _0x5b3e50={};for(const _0x41a67d of _0x4f6d32)for(const _0x4a411c of _0x41a67d['cssRules'])if(_0x4a411c instanceof CSSStyleRule){const _0x3025df=w(_0x4a411c['style']);_0x5b3e50[_0x4a411c['selectorText']]=Object['assign']({},_0x5b3e50[_0x4a411c['selectorText']]||{},_0x3025df);}return _0x5b3e50;}(_0x50cf52),_0x32f56c=function(_0x3a03e7){const _0x22daf6=new Map();for(const _0x2c5538 in _0x3a03e7){const _0x17b7d1=m(_0x2c5538),_0x257365=_0x3a03e7[_0x2c5538];for(const _0x51257b of _0x17b7d1)_0x22daf6['set'](_0x51257b,_0x257365);}return _0x22daf6;}(_0x5d25a9),_0x12d507=function(_0x915a08){const _0x5b449e={},_0x3976df=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x1cf843=/\.(?<className>[\w-]+)/g;let _0x24c9e3;for(;null!==(_0x24c9e3=_0x3976df['exec'](_0x915a08));){const {selector:_0x4b6162,color:_0x52ce2b,patternType:_0x2acbcd}=_0x24c9e3['groups'];if('auto'!==_0x52ce2b['toLowerCase']()&&'none'!==_0x2acbcd['toLowerCase']()&&'auto'!==_0x2acbcd['toLowerCase']()){for(const _0x1d3b4f of _0x4b6162['matchAll'](_0x1cf843))_0x5b449e[_0x1d3b4f['groups']['className']]=_0x52ce2b;}}return _0x5b449e;}(_0x3ddea6);for(const _0x269bf5 of _0x39884c){if('elementStart'!==_0x269bf5['type'])continue;const _0x1a4233=_0x269bf5['item'],_0x51f9ef=d(_0x1a4233,_0x32f56c),_0xb19c4=_0x51f9ef['size']?p(Array['from'](_0x51f9ef['values']())):{};if(!('background-color'in _0xb19c4)&&!('background'in _0xb19c4)){for(const [_0x4becf8,_0x30899a]of Object['entries'](_0x12d507))if(_0x1a4233['hasClass'](_0x4becf8)){_0xb19c4['background-color']=_0x30899a;break;}}for(const _0x234457 in _0xb19c4)_0x1a4233['hasStyle'](_0x234457)||_0x31c652['setStyle'](_0x234457,_0xb19c4[_0x234457],_0x1a4233);}}['isActive'](_0x2df373){return super['isActive'](_0x2df373)||u(_0x2df373);}}class PasteFromOfficeEnhancedInliner extends _0x367eaf{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x33780c];}['init'](){const _0xede1a1=this['editor'],_0x443ee5=_0xede1a1['plugins']['get']('PasteFromOffice'),_0x3a456b=_0xede1a1['editing']['view']['document'],_0x594e65=new MSOfficeStylesInliner(_0x3a456b);_0x443ee5['registerNormalizer'](_0x594e65,_0x584e44['high']+0xb);}['afterInit'](){!async function(_0x231f1c){const _0x4c48c9=_0x42d82c([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]),_0xc90a07=0x7374585f,_0x488f6c=0x7373d38f^_0xc90a07,_0x1fd52f=window[_0x42d82c([0x44,0x61,0x74,0x65])][_0x42d82c([0x6e,0x6f,0x77])](),_0xb52aeb=_0x231f1c[_0x42d82c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2e6516=new window[(_0x42d82c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6d2faa=>{_0xb52aeb[_0x42d82c([0x6f,0x6e,0x63,0x65])](_0x42d82c([0x72,0x65,0x61,0x64,0x79]),_0x6d2faa);}),_0x59db5c={[_0x42d82c([0x6b,0x74,0x79])]:_0x42d82c([0x45,0x43]),[_0x42d82c([0x75,0x73,0x65])]:_0x42d82c([0x73,0x69,0x67]),[_0x42d82c([0x63,0x72,0x76])]:_0x42d82c([0x50,0x2d,0x32,0x35,0x36]),[_0x42d82c([0x78])]:_0x42d82c([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]),[_0x42d82c([0x79])]:_0x42d82c([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]),[_0x42d82c([0x61,0x6c,0x67])]:_0x42d82c([0x45,0x53,0x32,0x35,0x36])},_0x3bbf3b=_0xb52aeb[_0x42d82c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x42d82c([0x67,0x65,0x74])](_0x42d82c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x196882(){let _0x1e0f0e,_0x53fad6=null,_0x1ee02c=null;try{if(_0x3bbf3b==_0x42d82c([0x47,0x50,0x4c]))return _0x42d82c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1e0f0e=_0x538be3(),!_0x1e0f0e)return _0x42d82c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1e0f0e[_0x42d82c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1ee02c=_0x595668(_0x1e0f0e[_0x42d82c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1e0f0e[_0x42d82c([0x6a,0x74,0x69])])),await _0x46b80c()?_0x7efc3e()?_0x1ff78f()?_0x42d82c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x141ddb()?(_0x1e0f0e[_0x42d82c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42d82c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x53fad6=_0x38c6fc(_0x42d82c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5779c3()):_0x42d82c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x42d82c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x42d82c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x42d82c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1ff78f(){const _0x282186=[_0x42d82c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x42d82c([0x74,0x72,0x69,0x61,0x6c])][_0x42d82c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e0f0e[_0x42d82c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1fd52f/0x3e8:0xe10*_0x488f6c;return _0x1e0f0e[_0x42d82c([0x65,0x78,0x70])]<_0x282186;}function _0x7efc3e(){const _0x5b9c2b=_0x1e0f0e[_0x42d82c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5b9c2b&&(!!_0x5b9c2b[_0x42d82c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42d82c([0x2a]))||(!!_0x5b9c2b[_0x42d82c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42d82c([0x50,0x4f,0x45]))||(!!_0x5b9c2b[_0x42d82c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42d82c([0x50,0x50]))||!(!_0x5b9c2b[_0x42d82c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42d82c([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x4a22c2()))));}function _0x141ddb(){const _0x7a20cd=_0x1e0f0e[_0x42d82c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x7a20cd||0x0==_0x7a20cd[_0x42d82c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2b727d}=new URL(window[_0x42d82c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x7a20cd[_0x42d82c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b727d))return!0x0;const _0x3b8da5=_0x2b727d[_0x42d82c([0x73,0x70,0x6c,0x69,0x74])](_0x42d82c([0x2e]));return _0x7a20cd[_0x42d82c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x21c7df=>_0x21c7df[_0x42d82c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42d82c([0x2a])))[_0x42d82c([0x6d,0x61,0x70])](_0x5e81cf=>_0x5e81cf[_0x42d82c([0x73,0x70,0x6c,0x69,0x74])](_0x42d82c([0x2e])))[_0x42d82c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d8e57=>_0x3d8e57[_0x42d82c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3b8da5[_0x42d82c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x42d82c([0x6d,0x61,0x70])](_0x1b67bc=>Array(_0x3b8da5[_0x42d82c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1b67bc[_0x42d82c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x42d82c([0x66,0x69,0x6c,0x6c])](_0x1b67bc[0x0]===_0x42d82c([0x2a])?_0x42d82c([0x2a]):'')[_0x42d82c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1b67bc))[_0x42d82c([0x73,0x6f,0x6d,0x65])](_0x2cc399=>_0x3b8da5[_0x42d82c([0x65,0x76,0x65,0x72,0x79])]((_0x409a19,_0x239137)=>_0x2cc399[_0x239137]===_0x409a19||_0x2cc399[_0x239137]===_0x42d82c([0x2a])));}function _0x5779c3(){return _0x53fad6&&_0x1ee02c?new window[(_0x42d82c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3bfc34,_0x41288c)=>{_0x53fad6[_0x42d82c([0x74,0x68,0x65,0x6e])](_0x3bfc34,_0x41288c),_0x1ee02c[_0x42d82c([0x74,0x68,0x65,0x6e])](_0xd81b7d=>{_0xd81b7d!=_0x42d82c([0x56,0x61,0x6c,0x69,0x64])&&_0x3bfc34(_0xd81b7d);},_0x41288c);}):_0x53fad6||_0x1ee02c||_0x42d82c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x595668(_0x1bd672,_0xad3f24){return new window[(_0x42d82c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x456c03=>{if(_0x35b974())return _0x456c03(_0x42d82c([0x56,0x61,0x6c,0x69,0x64]));_0x307888(),_0xb52aeb[_0x42d82c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x42d82c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x575c29=!0x1;const _0x4cd761=_0x489d7b();function _0x388978(_0x1ad6c7){return!!_0x1ad6c7&&(typeof _0x1ad6c7===_0x42d82c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1ad6c7===_0x42d82c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1ad6c7[_0x42d82c([0x74,0x68,0x65,0x6e])]===_0x42d82c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1ad6c7[_0x42d82c([0x63,0x61,0x74,0x63,0x68])]===_0x42d82c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x420664(_0x1a05a9){_0x19db36(_0x1a05a9)[_0x42d82c([0x74,0x68,0x65,0x6e])](_0x43c603=>{if(!_0x43c603||_0x43c603[_0x42d82c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x42d82c([0x6f,0x6b]))return _0x42d82c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x26039a(_0x298d00(_0x4cd761+_0xad3f24))!=_0x43c603[_0x42d82c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x42d82c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x42d82c([0x56,0x61,0x6c,0x69,0x64]);})[_0x42d82c([0x74,0x68,0x65,0x6e])](_0x503ff0=>(_0x16e83a(),_0x503ff0),()=>{const _0x406cba=_0x4dbb65();return null==_0x406cba?(_0x16e83a(),_0x42d82c([0x56,0x61,0x6c,0x69,0x64])):_0x42d82c(_0x1fd52f-_0x406cba>(0x5778dc5f^_0xc90a07)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x42d82c([0x74,0x68,0x65,0x6e])](_0x456c03)[_0x42d82c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x456c03(_0x42d82c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x475a22=0x7342b6df^_0xc90a07;function _0x16e83a(){const _0x50c678=_0x42d82c([0x6c,0x6c,0x63,0x74,0x2d])+_0x26039a(_0x298d00(_0x1bd672)),_0x444f1e=_0x30ec34(_0x26039a(window[_0x42d82c([0x4d,0x61,0x74,0x68])][_0x42d82c([0x63,0x65,0x69,0x6c])](_0x1fd52f/_0x475a22)));window[_0x42d82c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42d82c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x50c678,_0x444f1e);}function _0x4dbb65(){const _0x3f333d=_0x42d82c([0x6c,0x6c,0x63,0x74,0x2d])+_0x26039a(_0x298d00(_0x1bd672)),_0xabcda4=window[_0x42d82c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42d82c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f333d);return _0xabcda4?window[_0x42d82c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30ec34(_0xabcda4),0x10)*_0x475a22:null;}function _0x19db36(_0x162372){return new window[(_0x42d82c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23ef35,_0xe46cb9)=>{_0x162372[_0x42d82c([0x74,0x68,0x65,0x6e])](_0x23ef35,_0xe46cb9),window[_0x42d82c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xe46cb9,0x73758c9f^_0xc90a07);});}}_0xb52aeb[_0x42d82c([0x6f,0x6e])](_0x42d82c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2889b3,_0x5abfc0)=>{if(_0x5abfc0[0x0]!=_0x1bd672)return _0x456c03(_0x42d82c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5abfc0[0x1]={..._0x5abfc0[0x1],[_0x42d82c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4cd761};},{[_0x42d82c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42d82c([0x68,0x69,0x67,0x68])}),_0xb52aeb[_0x42d82c([0x6f,0x6e])](_0x42d82c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2050a3=>{_0x388978(_0x2050a3[_0x42d82c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x575c29=!0x0,_0x420664(_0x2050a3[_0x42d82c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x42d82c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42d82c([0x6c,0x6f,0x77])}),_0x2e6516[_0x42d82c([0x74,0x68,0x65,0x6e])](()=>{_0x575c29||_0x456c03(_0x42d82c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x35b974(){return _0xb52aeb[_0x42d82c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42d82c([0x76,0x69,0x65,0x77])][_0x42d82c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x42d82c([0x61,0x75,0x74,0x6f]);}function _0x307888(){_0xb52aeb[_0x42d82c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42d82c([0x76,0x69,0x65,0x77])][_0x42d82c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x42d82c([0x61,0x75,0x74,0x6f]);}}function _0x38c6fc(_0x123dc4){const _0xaf36e3=[new window[(_0x42d82c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2084ed=>setTimeout(_0x2084ed,0x737d6693^_0xc90a07)),_0x2e6516[_0x42d82c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x42d82c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcda7f9=>{let _0x290136=0x0;_0xb52aeb[_0x42d82c([0x6d,0x6f,0x64,0x65,0x6c])][_0x42d82c([0x6f,0x6e])](_0x42d82c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x129981,_0x511fd7)=>{_0x511fd7[0x0][_0x42d82c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x290136++,_0x290136==(0x73745db7^_0xc90a07)&&(_0xcda7f9(),_0x129981[_0x42d82c([0x6f,0x66,0x66])]());});}))];return window[_0x42d82c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x42d82c([0x72,0x61,0x63,0x65])](_0xaf36e3)[_0x42d82c([0x74,0x68,0x65,0x6e])](()=>_0x123dc4);}async function _0x46153c(){await _0x2e6516,_0xb52aeb[_0x42d82c([0x6d,0x6f,0x64,0x65,0x6c])][_0x42d82c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4d1a41,_0xb52aeb[_0x42d82c([0x6d,0x6f,0x64,0x65,0x6c])][_0x42d82c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4d1a41,_0xb52aeb[_0x42d82c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x42d82c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4a22c2(){return window[_0x42d82c([0x67,0x6c,0x6f,0x62])]&&window[_0x42d82c([0x67,0x6c,0x6f,0x62])][_0x42d82c([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x12cae3(_0x15a1d6){const _0x3ebfda=_0x41b2a3();_0xb52aeb[_0x3ebfda]=_0x42d82c([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])+_0x15a1d6,_0x15a1d6!=_0x42d82c([0x56,0x61,0x6c,0x69,0x64])&&_0x46153c();}function _0x41b2a3(){const _0x5b6824=window[_0x42d82c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x42d82c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x42d82c([0x6e,0x6f,0x77])]())[_0x42d82c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x42d82c([0x2e]),'');let _0x4126ec=_0x42d82c([0x73]);for(let _0x392a50=0x0;_0x392a50<_0x5b6824[_0x42d82c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x392a50+=0x2){let _0x11e57e=window[_0x42d82c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b6824[_0x42d82c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x392a50,_0x392a50+0x2));_0x11e57e>=_0x4c48c9[_0x42d82c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x11e57e-=_0x4c48c9[_0x42d82c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4126ec+=_0x4c48c9[_0x11e57e];}return _0x4126ec;}function _0x538be3(){const _0x1ae38c=_0x3bbf3b[_0x42d82c([0x73,0x70,0x6c,0x69,0x74])](_0x42d82c([0x2e]));if(0x3!=_0x1ae38c[_0x42d82c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x161891(_0x1ae38c[0x1]);function _0x161891(_0x481c35){const _0x24048a=_0x371829(_0x481c35);return _0x24048a&&_0x429af4()?_0x24048a:null;function _0x429af4(){const _0x3ae926=_0x24048a[_0x42d82c([0x6a,0x74,0x69])],_0x4a5d4c=window[_0x42d82c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ae926[_0x42d82c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ae926[_0x42d82c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x9bb2e4={..._0x24048a,[_0x42d82c([0x6a,0x74,0x69])]:_0x3ae926[_0x42d82c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ae926[_0x42d82c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x9bb2e4[_0x42d82c([0x76,0x63])],_0x298d00(_0x9bb2e4)==_0x4a5d4c;}}}async function _0x46b80c(){let _0x31c09e=!0x0;try{const _0x164ddc=_0x3bbf3b[_0x42d82c([0x73,0x70,0x6c,0x69,0x74])](_0x42d82c([0x2e])),[_0x2f1f2a,_0x285605,_0x18874e]=_0x164ddc;return _0x1c2ad7(_0x2f1f2a),await _0x21566d(_0x2f1f2a,_0x285605,_0x18874e),_0x31c09e;}catch{return!0x1;}function _0x1c2ad7(_0x1b5fc4){const _0x5ee420=_0x371829(_0x1b5fc4);_0x5ee420&&_0x5ee420[_0x42d82c([0x61,0x6c,0x67])]==_0x42d82c([0x45,0x53,0x32,0x35,0x36])||(_0x31c09e=!0x1);}async function _0x21566d(_0x403b3d,_0x526e27,_0x19ffa3){const _0x34638e=window[_0x42d82c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x42d82c([0x66,0x72,0x6f,0x6d])](_0xec2b28(_0x19ffa3),_0x55dce7=>_0x55dce7[_0x42d82c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x154205=new window[(_0x42d82c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x42d82c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x403b3d+_0x42d82c([0x2e])+_0x526e27),_0x4df5a7=window[_0x42d82c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x42d82c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4df5a7)return;const _0x222816=await _0x4df5a7[_0x42d82c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x42d82c([0x6a,0x77,0x6b]),_0x59db5c,{[_0x42d82c([0x6e,0x61,0x6d,0x65])]:_0x42d82c([0x45,0x43,0x44,0x53,0x41]),[_0x42d82c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x42d82c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x42d82c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4df5a7[_0x42d82c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x42d82c([0x6e,0x61,0x6d,0x65])]:_0x42d82c([0x45,0x43,0x44,0x53,0x41]),[_0x42d82c([0x68,0x61,0x73,0x68])]:{[_0x42d82c([0x6e,0x61,0x6d,0x65])]:_0x42d82c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x222816,_0x34638e,_0x154205)||(_0x31c09e=!0x1);}}function _0x371829(_0x523b1d){return _0x523b1d[_0x42d82c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x42d82c([0x65,0x79]))?JSON[_0x42d82c([0x70,0x61,0x72,0x73,0x65])](_0xec2b28(_0x523b1d)):null;}function _0xec2b28(_0x6ea821){return window[_0x42d82c([0x61,0x74,0x6f,0x62])](_0x6ea821[_0x42d82c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x42d82c([0x2b]))[_0x42d82c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x42d82c([0x2f])));}function _0x298d00(_0x71f8cd){let _0x33706c=0x1505;function _0x245788(_0x9aba3d){for(let _0xa666ac=0x0;_0xa666ac<_0x9aba3d[_0x42d82c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa666ac++){const _0x377fe0=_0x9aba3d[_0x42d82c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xa666ac);_0x33706c=(_0x33706c<<0x5)+_0x33706c+_0x377fe0,_0x33706c&=_0x33706c;}}function _0x30e948(_0x3379fe){Array[_0x42d82c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3379fe)?_0x3379fe[_0x42d82c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x30e948):_0x3379fe&&typeof _0x3379fe==_0x42d82c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x42d82c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3379fe)[_0x42d82c([0x73,0x6f,0x72,0x74])]()[_0x42d82c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5aff13,_0x5b4369])=>{_0x245788(_0x5aff13),_0x30e948(_0x5b4369);}):_0x245788(window[_0x42d82c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3379fe));}return _0x30e948(_0x71f8cd),_0x33706c>>>0x0;}function _0x26039a(_0x95e380){return _0x95e380[_0x42d82c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x42d82c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x42d82c([0x30]));}function _0x30ec34(_0x1b3ef9){return _0x1b3ef9[_0x42d82c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x42d82c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x42d82c([0x6a,0x6f,0x69,0x6e])]('');}function _0x4d1a41(){}function _0x42d82c(_0x4201c2){return _0x4201c2['map'](_0x34867f=>String['fromCharCode'](_0x34867f))['join']('');}_0x12cae3(await _0x196882());}(this);}}const y=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],g=['color','font-family','font-size'],h={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x636957=>Number(_0x636957)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function O(_0x465e3d){return y['includes'](_0x465e3d);}function E(_0x5333fd){return Array['from'](_0x5333fd['getStyleNames']())['filter'](O);}function F(_0x27c703,_0xdf712e,_0x384fb2){const {spanStyles:_0x2d28a6,stylesToBeHtmlElements:_0xdae88c}=L(_0x27c703,_0x384fb2);!function(_0x30031e,_0x566954,_0x5b3122){for(const _0x9396c0 in _0x5b3122){_0x5b3122[_0x9396c0]['forEach'](([,_0x31cf2c])=>{const _0x46815a=_0x566954['createElement'](_0x31cf2c,[],_0x30031e['getChildren']());_0x566954['insertChild'](0x0,_0x46815a,_0x30031e);}),_0x566954['removeStyle'](_0x9396c0,_0x30031e);}}(_0x27c703,_0xdf712e,_0xdae88c),function(_0x5c0ba1,_0x12005d,_0x269f29){if(!Object['keys'](_0x269f29)['length'])return;const _0x317436=_0x12005d['createElement']('span',[],_0x5c0ba1['getChildren']());_0x12005d['setStyle'](_0x269f29,_0x317436),_0x12005d['insertChild'](0x0,_0x317436,_0x5c0ba1),_0x12005d['removeStyle'](Object['keys'](_0x269f29),_0x5c0ba1);}(_0x27c703,_0xdf712e,_0x2d28a6);}function P(_0x262c5e,_0x44c9ae,_0x36a481){const {spanStyles:_0x3bf8f8}=L(_0x262c5e,_0x36a481),_0x466c93=Object['keys'](_0x3bf8f8);if(!_0x466c93['length'])return;let _0x42b315=!0x1;for(const _0x494bff of _0x262c5e['getChildren']())if(_0x494bff['is']('element','span')){_0x42b315=!0x0;for(const [_0x48dfb8,_0x8aafbe]of Object['entries'](_0x3bf8f8))_0x494bff['hasStyle'](_0x48dfb8)||_0x44c9ae['setStyle']({[_0x48dfb8]:_0x8aafbe},_0x494bff);}_0x42b315&&_0x44c9ae['removeStyle'](_0x466c93,_0x262c5e);}function L(_0x2d92cf,_0x44eb50){const _0x59c3ba={},_0x417024={};return _0x44eb50['forEach'](_0x947d23=>{const _0x335913=_0x2d92cf['getStyle'](_0x947d23);if(_0x335913){if(function(_0xbb65f1){return g['includes'](_0xbb65f1);}(_0x947d23))_0x59c3ba[_0x947d23]=_0x335913;else{if(function(_0x3b4af1){return _0x3b4af1 in h;}(_0x947d23)){const _0x1b4911=_0x335913['split']('\x20');h[_0x947d23]['forEach'](([_0x2de176,_0x5a0126])=>{for(const _0x46c93f of _0x1b4911){('function'==typeof _0x2de176&&_0x2de176(_0x46c93f)||_0x2de176===_0x46c93f)&&(_0x417024[_0x947d23]=[..._0x417024[_0x947d23]||[],[_0x2de176,_0x5a0126]]);}});}}}}),{'spanStyles':_0x59c3ba,'stylesToBeHtmlElements':_0x417024};}class MSOfficeInlineStylePropagator extends _0x27e5f1{['execute'](_0x4bea01){const _0x39e939=new _0x1692fb(_0x4bea01['content']['document']),_0x3d783b=_0x39e939['createRangeIn'](_0x4bea01['content']),_0x2f488d=new _0x5d10cf(_0x39e939['document']['stylesProcessor']),_0x557b63=[...new _0x4fada7(_0x2f488d)['blockElements'],'font'],_0x10a16e=_0x3d783b['getItems']();for(const _0x2d5418 of _0x10a16e)if(_0x2d5418['is']('element')&&_0x557b63['includes'](_0x2d5418['name'])){if(_0x2d5418['hasStyle']('mso-list')&&'none'!==_0x2d5418['getStyle']('mso-list')){P(_0x2d5418,_0x39e939,E(_0x2d5418));continue;}F(_0x2d5418,_0x39e939,E(_0x2d5418));}}['isActive'](_0x9320c3){return super['isActive'](_0x9320c3)||u(_0x9320c3);}}class PasteFromOfficeEnhancedPropagator extends _0x367eaf{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x33780c];}['init'](){const _0x1c00aa=this['editor'],_0x4d9d83=_0x1c00aa['plugins']['get']('PasteFromOffice'),_0x496ae4=_0x1c00aa['editing']['view']['document'],_0x26270c=new MSOfficeInlineStylePropagator(_0x496ae4);_0x4d9d83['registerNormalizer'](_0x26270c,_0x584e44['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x42d70b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5200a0;for(const _0x5dd5a3 in _0x42d70b){const _0x21382a=_0x5dd5a3,_0x5b0026=_0x42d70b[_0x21382a];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x5b0026||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x5b0026||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x5b0026||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x5b0026||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x5b0026||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x5b0026||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x5b0026){delete _0x42d70b[_0x21382a],_0x5200a0=_0x5b0026,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x5200a0&&_0x42d70b['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x5200a0&&_0x42d70b['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x5200a0&&_0x42d70b['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x5200a0&&_0x42d70b['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x5200a0&&_0x42d70b['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x5200a0&&_0x42d70b['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class PasteFromOfficeEnhanced extends _0x367eaf{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x33780c,PasteFromOfficeEnhancedInliner,PasteFromOfficeEnhancedPropagator];}}export{PasteFromOfficeEnhanced};
23
+ import{Plugin as _0x564ade}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0x352fbb,PasteFromOffice as _0x3ae215}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0x4cdd7d,uid as _0x5ab7b8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x2528d8,ViewDocument as _0x5a0b83,ViewDomConverter as _0xb19473}from'@ckeditor/ckeditor5-engine/dist/index.js';const a=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x7030b){return a['test'](_0x7030b);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x23a8bd,_0x3e0b93){const _0x3c983e=new Map();for(const [_0x1137f9,_0x52e7c1]of _0x3e0b93){if(!_0x1137f9['tagName']&&!_0x1137f9['className'])continue;const _0x1f68d2=!_0x1137f9['tagName']||_0x23a8bd['name']===_0x1137f9['tagName'],_0x77f357=!_0x1137f9['className']||_0x23a8bd['hasClass'](_0x1137f9['className']);_0x1f68d2&&_0x77f357&&_0x3c983e['set'](_0x1137f9,_0x52e7c1);}return _0x3c983e;}function w(_0x503aab){const _0x5207ea={};for(let _0x2dd4af=0x0;_0x2dd4af<_0x503aab['length'];_0x2dd4af++){const _0x2e31af=_0x503aab[_0x2dd4af],_0x19cbcd=_0x503aab['getPropertyValue'](_0x2e31af);'initial'!==_0x19cbcd&&(_0x5207ea[_0x2e31af]=_0x19cbcd);}return _0x5207ea;}function m(_0x5e016a){const _0x5c624e=_0x5e016a['split'](',')['map'](_0x430158=>_0x430158['trim']()),_0x37fcbf=[];for(const _0x505592 of _0x5c624e){const _0x52ac93=l['exec'](_0x505592);_0x52ac93&&_0x37fcbf['push'](_0x52ac93['groups']);}return _0x37fcbf;}function p(_0x915907){const _0x9c0f1a={};for(const _0x580d8e of _0x915907)Object['assign'](_0x9c0f1a,_0x580d8e);return _0x9c0f1a;}class MSOfficeStylesInliner extends _0x352fbb{['execute'](_0x2e842a){const {styles:_0x521e97,stylesString:_0x4f0788}=_0x2e842a['extraContent'],_0x46dc38=new _0x2528d8(_0x2e842a['content']['document']),_0x53d3ce=_0x46dc38['createRangeIn'](_0x2e842a['content']),_0x152080=function(_0x1b0943){const _0x3f15a6={};for(const _0x300956 of _0x1b0943)for(const _0x81c382 of _0x300956['cssRules'])if(_0x81c382 instanceof CSSStyleRule){const _0x1506d7=w(_0x81c382['style']);_0x3f15a6[_0x81c382['selectorText']]=Object['assign']({},_0x3f15a6[_0x81c382['selectorText']]||{},_0x1506d7);}return _0x3f15a6;}(_0x521e97),_0x17f880=function(_0x40741c){const _0xf41f78=new Map();for(const _0x1c58af in _0x40741c){const _0x17384b=m(_0x1c58af),_0x10d0d1=_0x40741c[_0x1c58af];for(const _0x8c0ca3 of _0x17384b)_0xf41f78['set'](_0x8c0ca3,_0x10d0d1);}return _0xf41f78;}(_0x152080),_0x4b0c53=function(_0x276d10){const _0x59d74b={},_0xae444=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x126bc4=/\.(?<className>[\w-]+)/g;let _0x1bc716;for(;null!==(_0x1bc716=_0xae444['exec'](_0x276d10));){const {selector:_0x4d5523,color:_0x4d52e8,patternType:_0x2b538f}=_0x1bc716['groups'];if('auto'!==_0x4d52e8['toLowerCase']()&&'none'!==_0x2b538f['toLowerCase']()&&'auto'!==_0x2b538f['toLowerCase']()){for(const _0x1e4d65 of _0x4d5523['matchAll'](_0x126bc4))_0x59d74b[_0x1e4d65['groups']['className']]=_0x4d52e8;}}return _0x59d74b;}(_0x4f0788);for(const _0x29fed8 of _0x53d3ce){if('elementStart'!==_0x29fed8['type'])continue;const _0x26809c=_0x29fed8['item'],_0x426533=d(_0x26809c,_0x17f880),_0x48241e=_0x426533['size']?p(Array['from'](_0x426533['values']())):{};if(!('background-color'in _0x48241e)&&!('background'in _0x48241e)){for(const [_0x302846,_0xf31c02]of Object['entries'](_0x4b0c53))if(_0x26809c['hasClass'](_0x302846)){_0x48241e['background-color']=_0xf31c02;break;}}for(const _0x442ae2 in _0x48241e)_0x26809c['hasStyle'](_0x442ae2)||_0x46dc38['setStyle'](_0x442ae2,_0x48241e[_0x442ae2],_0x26809c);}}['isActive'](_0x6f9737){return super['isActive'](_0x6f9737)||u(_0x6f9737);}}class PasteFromOfficeEnhancedInliner extends _0x564ade{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3ae215];}['init'](){const _0x117924=this['editor'],_0x37af9a=_0x117924['plugins']['get']('PasteFromOffice'),_0x18e649=_0x117924['editing']['view']['document'],_0x104f28=new MSOfficeStylesInliner(_0x18e649);_0x37af9a['registerNormalizer'](_0x104f28,_0x4cdd7d['high']+0xb);}['afterInit'](){!async function(_0x4f38b2){const _0x537cb1=_0x47cb00([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]),_0x520aca=0x7374585f,_0x18e184=0x7373d38f^_0x520aca,_0x305715=window[_0x47cb00([0x44,0x61,0x74,0x65])][_0x47cb00([0x6e,0x6f,0x77])](),_0x23636f=_0x4f38b2[_0x47cb00([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3bb10f=new window[(_0x47cb00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e969c=>{_0x23636f[_0x47cb00([0x6f,0x6e,0x63,0x65])](_0x47cb00([0x72,0x65,0x61,0x64,0x79]),_0x5e969c);}),_0x50fed0={[_0x47cb00([0x6b,0x74,0x79])]:_0x47cb00([0x45,0x43]),[_0x47cb00([0x75,0x73,0x65])]:_0x47cb00([0x73,0x69,0x67]),[_0x47cb00([0x63,0x72,0x76])]:_0x47cb00([0x50,0x2d,0x32,0x35,0x36]),[_0x47cb00([0x78])]:_0x47cb00([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]),[_0x47cb00([0x79])]:_0x47cb00([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]),[_0x47cb00([0x61,0x6c,0x67])]:_0x47cb00([0x45,0x53,0x32,0x35,0x36])},_0x1629b0=_0x23636f[_0x47cb00([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x47cb00([0x67,0x65,0x74])](_0x47cb00([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x52eb9b(){let _0x4f4459,_0x47a163=null,_0x749b01=null;try{if(_0x1629b0==_0x47cb00([0x47,0x50,0x4c]))return _0x47cb00([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4f4459=_0x153945(),!_0x4f4459)return _0x47cb00([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4f4459[_0x47cb00([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x749b01=_0x2f9c91(_0x4f4459[_0x47cb00([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4f4459[_0x47cb00([0x6a,0x74,0x69])])),await _0x745636()?_0x539df5()?_0x5d594e()?_0x47cb00([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x19fec0()?(_0x4f4459[_0x47cb00([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x47cb00([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x47a163=_0x4d78c9(_0x47cb00([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1289e6()):_0x47cb00([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x47cb00([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x47cb00([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x47cb00([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5d594e(){const _0x5a23fa=[_0x47cb00([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x47cb00([0x74,0x72,0x69,0x61,0x6c])][_0x47cb00([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f4459[_0x47cb00([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x305715/0x3e8:0xe10*_0x18e184;return _0x4f4459[_0x47cb00([0x65,0x78,0x70])]<_0x5a23fa;}function _0x539df5(){const _0x2cabf7=_0x4f4459[_0x47cb00([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2cabf7&&(!!_0x2cabf7[_0x47cb00([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47cb00([0x2a]))||(!!_0x2cabf7[_0x47cb00([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47cb00([0x50,0x4f,0x45]))||(!!_0x2cabf7[_0x47cb00([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47cb00([0x50,0x50]))||!(!_0x2cabf7[_0x47cb00([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47cb00([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x160901()))));}function _0x19fec0(){const _0x29ba1b=_0x4f4459[_0x47cb00([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x29ba1b||0x0==_0x29ba1b[_0x47cb00([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3e10d8}=new URL(window[_0x47cb00([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x29ba1b[_0x47cb00([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e10d8))return!0x0;const _0x274231=_0x3e10d8[_0x47cb00([0x73,0x70,0x6c,0x69,0x74])](_0x47cb00([0x2e]));return _0x29ba1b[_0x47cb00([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x27135b=>_0x27135b[_0x47cb00([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47cb00([0x2a])))[_0x47cb00([0x6d,0x61,0x70])](_0x1b7222=>_0x1b7222[_0x47cb00([0x73,0x70,0x6c,0x69,0x74])](_0x47cb00([0x2e])))[_0x47cb00([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf2d031=>_0xf2d031[_0x47cb00([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x274231[_0x47cb00([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x47cb00([0x6d,0x61,0x70])](_0x1208a1=>Array(_0x274231[_0x47cb00([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1208a1[_0x47cb00([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x47cb00([0x66,0x69,0x6c,0x6c])](_0x1208a1[0x0]===_0x47cb00([0x2a])?_0x47cb00([0x2a]):'')[_0x47cb00([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1208a1))[_0x47cb00([0x73,0x6f,0x6d,0x65])](_0x5301c5=>_0x274231[_0x47cb00([0x65,0x76,0x65,0x72,0x79])]((_0x40a703,_0x4a3200)=>_0x5301c5[_0x4a3200]===_0x40a703||_0x5301c5[_0x4a3200]===_0x47cb00([0x2a])));}function _0x1289e6(){return _0x47a163&&_0x749b01?new window[(_0x47cb00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4cfeff,_0x440ee6)=>{_0x47a163[_0x47cb00([0x74,0x68,0x65,0x6e])](_0x4cfeff,_0x440ee6),_0x749b01[_0x47cb00([0x74,0x68,0x65,0x6e])](_0x48ac07=>{_0x48ac07!=_0x47cb00([0x56,0x61,0x6c,0x69,0x64])&&_0x4cfeff(_0x48ac07);},_0x440ee6);}):_0x47a163||_0x749b01||_0x47cb00([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2f9c91(_0x2d7eec,_0x2593a5){return new window[(_0x47cb00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x462a61=>{if(_0x2cdef5())return _0x462a61(_0x47cb00([0x56,0x61,0x6c,0x69,0x64]));_0x53e039(),_0x23636f[_0x47cb00([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x47cb00([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x230d1c=!0x1;const _0x30ef34=_0x5ab7b8();function _0x4908e1(_0x13ac0f){return!!_0x13ac0f&&(typeof _0x13ac0f===_0x47cb00([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x13ac0f===_0x47cb00([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x13ac0f[_0x47cb00([0x74,0x68,0x65,0x6e])]===_0x47cb00([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x13ac0f[_0x47cb00([0x63,0x61,0x74,0x63,0x68])]===_0x47cb00([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x449fd3(_0x5c35f2){_0x5e9982(_0x5c35f2)[_0x47cb00([0x74,0x68,0x65,0x6e])](_0x2a66cc=>{if(!_0x2a66cc||_0x2a66cc[_0x47cb00([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x47cb00([0x6f,0x6b]))return _0x47cb00([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3dbaa9(_0xb553c5(_0x30ef34+_0x2593a5))!=_0x2a66cc[_0x47cb00([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x47cb00([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x47cb00([0x56,0x61,0x6c,0x69,0x64]);})[_0x47cb00([0x74,0x68,0x65,0x6e])](_0x4c5b7e=>(_0x482354(),_0x4c5b7e),()=>{const _0x2edf26=_0x58b570();return null==_0x2edf26?(_0x482354(),_0x47cb00([0x56,0x61,0x6c,0x69,0x64])):_0x47cb00(_0x305715-_0x2edf26>(0x5778dc5f^_0x520aca)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x47cb00([0x74,0x68,0x65,0x6e])](_0x462a61)[_0x47cb00([0x63,0x61,0x74,0x63,0x68])](()=>{_0x462a61(_0x47cb00([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x13bac5=0x7342b6df^_0x520aca;function _0x482354(){const _0x3ebd70=_0x47cb00([0x6c,0x6c,0x63,0x74,0x2d])+_0x3dbaa9(_0xb553c5(_0x2d7eec)),_0x5d872c=_0x3f5542(_0x3dbaa9(window[_0x47cb00([0x4d,0x61,0x74,0x68])][_0x47cb00([0x63,0x65,0x69,0x6c])](_0x305715/_0x13bac5)));window[_0x47cb00([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x47cb00([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ebd70,_0x5d872c);}function _0x58b570(){const _0x39d8aa=_0x47cb00([0x6c,0x6c,0x63,0x74,0x2d])+_0x3dbaa9(_0xb553c5(_0x2d7eec)),_0x5091f4=window[_0x47cb00([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x47cb00([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x39d8aa);return _0x5091f4?window[_0x47cb00([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f5542(_0x5091f4),0x10)*_0x13bac5:null;}function _0x5e9982(_0x1babcc){return new window[(_0x47cb00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3334fa,_0x2ada25)=>{_0x1babcc[_0x47cb00([0x74,0x68,0x65,0x6e])](_0x3334fa,_0x2ada25),window[_0x47cb00([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2ada25,0x73758c9f^_0x520aca);});}}_0x23636f[_0x47cb00([0x6f,0x6e])](_0x47cb00([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1b0763,_0x5f56f9)=>{if(_0x5f56f9[0x0]!=_0x2d7eec)return _0x462a61(_0x47cb00([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5f56f9[0x1]={..._0x5f56f9[0x1],[_0x47cb00([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x30ef34};},{[_0x47cb00([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x47cb00([0x68,0x69,0x67,0x68])}),_0x23636f[_0x47cb00([0x6f,0x6e])](_0x47cb00([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4a2c8a=>{_0x4908e1(_0x4a2c8a[_0x47cb00([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x230d1c=!0x0,_0x449fd3(_0x4a2c8a[_0x47cb00([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x47cb00([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x47cb00([0x6c,0x6f,0x77])}),_0x3bb10f[_0x47cb00([0x74,0x68,0x65,0x6e])](()=>{_0x230d1c||_0x462a61(_0x47cb00([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2cdef5(){return _0x23636f[_0x47cb00([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x47cb00([0x76,0x69,0x65,0x77])][_0x47cb00([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x47cb00([0x61,0x75,0x74,0x6f]);}function _0x53e039(){_0x23636f[_0x47cb00([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x47cb00([0x76,0x69,0x65,0x77])][_0x47cb00([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x47cb00([0x61,0x75,0x74,0x6f]);}}function _0x4d78c9(_0x3655b7){const _0x282f1e=[new window[(_0x47cb00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f32d1=>setTimeout(_0x2f32d1,0x737d6693^_0x520aca)),_0x3bb10f[_0x47cb00([0x74,0x68,0x65,0x6e])](()=>new window[(_0x47cb00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b6c66=>{let _0x15b7f4=0x0;_0x23636f[_0x47cb00([0x6d,0x6f,0x64,0x65,0x6c])][_0x47cb00([0x6f,0x6e])](_0x47cb00([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1ed9d5,_0x24685b)=>{_0x24685b[0x0][_0x47cb00([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x15b7f4++,_0x15b7f4==(0x73745db7^_0x520aca)&&(_0x3b6c66(),_0x1ed9d5[_0x47cb00([0x6f,0x66,0x66])]());});}))];return window[_0x47cb00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x47cb00([0x72,0x61,0x63,0x65])](_0x282f1e)[_0x47cb00([0x74,0x68,0x65,0x6e])](()=>_0x3655b7);}async function _0x1f7fe6(){await _0x3bb10f,_0x23636f[_0x47cb00([0x6d,0x6f,0x64,0x65,0x6c])][_0x47cb00([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x252d69,_0x23636f[_0x47cb00([0x6d,0x6f,0x64,0x65,0x6c])][_0x47cb00([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x252d69,_0x23636f[_0x47cb00([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x47cb00([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x160901(){return window[_0x47cb00([0x67,0x6c,0x6f,0x62])]&&window[_0x47cb00([0x67,0x6c,0x6f,0x62])][_0x47cb00([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x5b3dee(_0x76cca5){const _0x1fa77e=_0x8d1ad0();_0x23636f[_0x1fa77e]=_0x47cb00([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])+_0x76cca5,_0x76cca5!=_0x47cb00([0x56,0x61,0x6c,0x69,0x64])&&_0x1f7fe6();}function _0x8d1ad0(){const _0x25c7a6=window[_0x47cb00([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x47cb00([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x47cb00([0x6e,0x6f,0x77])]())[_0x47cb00([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x47cb00([0x2e]),'');let _0xb9d65f=_0x47cb00([0x73]);for(let _0x53e085=0x0;_0x53e085<_0x25c7a6[_0x47cb00([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53e085+=0x2){let _0x4c6582=window[_0x47cb00([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25c7a6[_0x47cb00([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53e085,_0x53e085+0x2));_0x4c6582>=_0x537cb1[_0x47cb00([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4c6582-=_0x537cb1[_0x47cb00([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xb9d65f+=_0x537cb1[_0x4c6582];}return _0xb9d65f;}function _0x153945(){const _0x1d2284=_0x1629b0[_0x47cb00([0x73,0x70,0x6c,0x69,0x74])](_0x47cb00([0x2e]));if(0x3!=_0x1d2284[_0x47cb00([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xf3f164(_0x1d2284[0x1]);function _0xf3f164(_0x122dd1){const _0x2c23d0=_0x310055(_0x122dd1);return _0x2c23d0&&_0x3b39b6()?_0x2c23d0:null;function _0x3b39b6(){const _0x217102=_0x2c23d0[_0x47cb00([0x6a,0x74,0x69])],_0xbfab8b=window[_0x47cb00([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x217102[_0x47cb00([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x217102[_0x47cb00([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3fbd30={..._0x2c23d0,[_0x47cb00([0x6a,0x74,0x69])]:_0x217102[_0x47cb00([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x217102[_0x47cb00([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3fbd30[_0x47cb00([0x76,0x63])],_0xb553c5(_0x3fbd30)==_0xbfab8b;}}}async function _0x745636(){let _0x5dbcc8=!0x0;try{const _0x438f77=_0x1629b0[_0x47cb00([0x73,0x70,0x6c,0x69,0x74])](_0x47cb00([0x2e])),[_0x2f1097,_0x44ee83,_0x2e9daf]=_0x438f77;return _0x28c3f4(_0x2f1097),await _0x5afed9(_0x2f1097,_0x44ee83,_0x2e9daf),_0x5dbcc8;}catch{return!0x1;}function _0x28c3f4(_0x53f14e){const _0xbdcc09=_0x310055(_0x53f14e);_0xbdcc09&&_0xbdcc09[_0x47cb00([0x61,0x6c,0x67])]==_0x47cb00([0x45,0x53,0x32,0x35,0x36])||(_0x5dbcc8=!0x1);}async function _0x5afed9(_0xd8dbbd,_0x77aec4,_0x253966){const _0x53b6c6=window[_0x47cb00([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x47cb00([0x66,0x72,0x6f,0x6d])](_0x41977e(_0x253966),_0x2e9534=>_0x2e9534[_0x47cb00([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4d8922=new window[(_0x47cb00([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x47cb00([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xd8dbbd+_0x47cb00([0x2e])+_0x77aec4),_0xb67fc7=window[_0x47cb00([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x47cb00([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xb67fc7)return;const _0x29548e=await _0xb67fc7[_0x47cb00([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x47cb00([0x6a,0x77,0x6b]),_0x50fed0,{[_0x47cb00([0x6e,0x61,0x6d,0x65])]:_0x47cb00([0x45,0x43,0x44,0x53,0x41]),[_0x47cb00([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x47cb00([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x47cb00([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xb67fc7[_0x47cb00([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x47cb00([0x6e,0x61,0x6d,0x65])]:_0x47cb00([0x45,0x43,0x44,0x53,0x41]),[_0x47cb00([0x68,0x61,0x73,0x68])]:{[_0x47cb00([0x6e,0x61,0x6d,0x65])]:_0x47cb00([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x29548e,_0x53b6c6,_0x4d8922)||(_0x5dbcc8=!0x1);}}function _0x310055(_0x4df010){return _0x4df010[_0x47cb00([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x47cb00([0x65,0x79]))?JSON[_0x47cb00([0x70,0x61,0x72,0x73,0x65])](_0x41977e(_0x4df010)):null;}function _0x41977e(_0x485d04){return window[_0x47cb00([0x61,0x74,0x6f,0x62])](_0x485d04[_0x47cb00([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x47cb00([0x2b]))[_0x47cb00([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x47cb00([0x2f])));}function _0xb553c5(_0x3ed337){let _0x48abca=0x1505;function _0x1f4e38(_0x545fb2){for(let _0x30a15b=0x0;_0x30a15b<_0x545fb2[_0x47cb00([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30a15b++){const _0x3e9fa2=_0x545fb2[_0x47cb00([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x30a15b);_0x48abca=(_0x48abca<<0x5)+_0x48abca+_0x3e9fa2,_0x48abca&=_0x48abca;}}function _0x4ecaff(_0x8381f9){Array[_0x47cb00([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x8381f9)?_0x8381f9[_0x47cb00([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4ecaff):_0x8381f9&&typeof _0x8381f9==_0x47cb00([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x47cb00([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x8381f9)[_0x47cb00([0x73,0x6f,0x72,0x74])]()[_0x47cb00([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5f0ae9,_0x6177a4])=>{_0x1f4e38(_0x5f0ae9),_0x4ecaff(_0x6177a4);}):_0x1f4e38(window[_0x47cb00([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x8381f9));}return _0x4ecaff(_0x3ed337),_0x48abca>>>0x0;}function _0x3dbaa9(_0x15806b){return _0x15806b[_0x47cb00([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x47cb00([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x47cb00([0x30]));}function _0x3f5542(_0x1b7322){return _0x1b7322[_0x47cb00([0x73,0x70,0x6c,0x69,0x74])]('')[_0x47cb00([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x47cb00([0x6a,0x6f,0x69,0x6e])]('');}function _0x252d69(){}function _0x47cb00(_0x554134){return _0x554134['map'](_0x12552b=>String['fromCharCode'](_0x12552b))['join']('');}_0x5b3dee(await _0x52eb9b());}(this);}}const y=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],g=['color','font-family','font-size'],h={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x3e0e62=>Number(_0x3e0e62)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function O(_0x5e5e79){return y['includes'](_0x5e5e79);}function E(_0x4e4087){return Array['from'](_0x4e4087['getStyleNames']())['filter'](O);}function F(_0x34dcff,_0x17c9c8,_0x3a38f5){const {spanStyles:_0x26f061,stylesToBeHtmlElements:_0x12283f}=L(_0x34dcff,_0x3a38f5);!function(_0x265913,_0x7cc8b,_0x411f22){for(const _0x274e88 in _0x411f22){_0x411f22[_0x274e88]['forEach'](([,_0x4f98be])=>{const _0x5458bd=_0x7cc8b['createElement'](_0x4f98be,[],_0x265913['getChildren']());_0x7cc8b['insertChild'](0x0,_0x5458bd,_0x265913);}),_0x7cc8b['removeStyle'](_0x274e88,_0x265913);}}(_0x34dcff,_0x17c9c8,_0x12283f),function(_0x3b1623,_0x1760f5,_0x4eda3d){if(!Object['keys'](_0x4eda3d)['length'])return;const _0x41a550=_0x1760f5['createElement']('span',[],_0x3b1623['getChildren']());_0x1760f5['setStyle'](_0x4eda3d,_0x41a550),_0x1760f5['insertChild'](0x0,_0x41a550,_0x3b1623),_0x1760f5['removeStyle'](Object['keys'](_0x4eda3d),_0x3b1623);}(_0x34dcff,_0x17c9c8,_0x26f061);}function P(_0x3e75a7,_0x5ee093,_0x8df850){const {spanStyles:_0x4cb048}=L(_0x3e75a7,_0x8df850),_0x1f7305=Object['keys'](_0x4cb048);if(!_0x1f7305['length'])return;let _0x2a2af5=!0x1;for(const _0x1418ba of _0x3e75a7['getChildren']())if(_0x1418ba['is']('element','span')){_0x2a2af5=!0x0;for(const [_0x30db78,_0x640547]of Object['entries'](_0x4cb048))_0x1418ba['hasStyle'](_0x30db78)||_0x5ee093['setStyle']({[_0x30db78]:_0x640547},_0x1418ba);}_0x2a2af5&&_0x5ee093['removeStyle'](_0x1f7305,_0x3e75a7);}function L(_0x4a87fa,_0x458226){const _0x4a2fc0={},_0x2652d9={};return _0x458226['forEach'](_0x5b8fff=>{const _0x4af2eb=_0x4a87fa['getStyle'](_0x5b8fff);if(_0x4af2eb){if(function(_0x2d70a4){return g['includes'](_0x2d70a4);}(_0x5b8fff))_0x4a2fc0[_0x5b8fff]=_0x4af2eb;else{if(function(_0x7b5dd7){return _0x7b5dd7 in h;}(_0x5b8fff)){const _0x1ae9cb=_0x4af2eb['split']('\x20');h[_0x5b8fff]['forEach'](([_0x289499,_0x27546a])=>{for(const _0x724c9a of _0x1ae9cb){('function'==typeof _0x289499&&_0x289499(_0x724c9a)||_0x289499===_0x724c9a)&&(_0x2652d9[_0x5b8fff]=[..._0x2652d9[_0x5b8fff]||[],[_0x289499,_0x27546a]]);}});}}}}),{'spanStyles':_0x4a2fc0,'stylesToBeHtmlElements':_0x2652d9};}class MSOfficeInlineStylePropagator extends _0x352fbb{['execute'](_0x13504a){const _0x42e16c=new _0x2528d8(_0x13504a['content']['document']),_0x20ec79=_0x42e16c['createRangeIn'](_0x13504a['content']),_0x76e421=new _0x5a0b83(_0x42e16c['document']['stylesProcessor']),_0x3c9407=[...new _0xb19473(_0x76e421)['blockElements'],'font'],_0xf281da=_0x20ec79['getItems']();for(const _0x43a775 of _0xf281da)if(_0x43a775['is']('element')&&_0x3c9407['includes'](_0x43a775['name'])){if(_0x43a775['hasStyle']('mso-list')&&'none'!==_0x43a775['getStyle']('mso-list')){P(_0x43a775,_0x42e16c,E(_0x43a775));continue;}F(_0x43a775,_0x42e16c,E(_0x43a775));}}['isActive'](_0x8e7fed){return super['isActive'](_0x8e7fed)||u(_0x8e7fed);}}class PasteFromOfficeEnhancedPropagator extends _0x564ade{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3ae215];}['init'](){const _0x5cd1d6=this['editor'],_0x1f01a0=_0x5cd1d6['plugins']['get']('PasteFromOffice'),_0x1c692a=_0x5cd1d6['editing']['view']['document'],_0x71db94=new MSOfficeInlineStylePropagator(_0x1c692a);_0x1f01a0['registerNormalizer'](_0x71db94,_0x4cdd7d['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x492595=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x537e88;for(const _0x2b4067 in _0x492595){const _0x2bf7ea=_0x2b4067,_0x4845d1=_0x492595[_0x2bf7ea];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x4845d1||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x4845d1||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x4845d1||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x4845d1||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x4845d1||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x4845d1||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x4845d1){delete _0x492595[_0x2bf7ea],_0x537e88=_0x4845d1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x537e88&&_0x492595['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x537e88&&_0x492595['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x537e88&&_0x492595['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x537e88&&_0x492595['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x537e88&&_0x492595['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x537e88&&_0x492595['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class PasteFromOfficeEnhanced extends _0x564ade{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3ae215,PasteFromOfficeEnhancedInliner,PasteFromOfficeEnhancedPropagator];}}export{PasteFromOfficeEnhanced};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-paste-from-office-enhanced",
3
- "version": "48.2.0-alpha.7",
3
+ "version": "48.2.0",
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.2.0-alpha.7",
35
- "@ckeditor/ckeditor5-core": "48.2.0-alpha.7",
36
- "@ckeditor/ckeditor5-engine": "48.2.0-alpha.7",
37
- "@ckeditor/ckeditor5-paste-from-office": "48.2.0-alpha.7",
38
- "@ckeditor/ckeditor5-utils": "48.2.0-alpha.7"
34
+ "@ckeditor/ckeditor5-clipboard": "48.2.0",
35
+ "@ckeditor/ckeditor5-core": "48.2.0",
36
+ "@ckeditor/ckeditor5-engine": "48.2.0",
37
+ "@ckeditor/ckeditor5-paste-from-office": "48.2.0",
38
+ "@ckeditor/ckeditor5-utils": "48.2.0"
39
39
  },
40
40
  "files": [
41
41
  "dist",