@ckeditor/ckeditor5-paste-from-office-enhanced 48.1.0-alpha.0 → 48.1.0-alpha.2
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.
- package/dist/index.js +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x3149bb}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0x6cade5,PasteFromOffice as _0x386031,parsePasteOfficeHtml as _0x2c554c}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0x3af9bc,uid as _0x111b74}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x59bc58,ViewDocument as _0x3eb9d7,ViewDomConverter as _0x547a7e}from'@ckeditor/ckeditor5-engine/dist/index.js';const a=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function l(_0x5ed979){return a['test'](_0x5ed979);}const d=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function w(_0x4e42ce,_0x2898f3){const _0x4b070c=new Map();for(const [_0xc808ca,_0x3a6cc0]of _0x2898f3){if(!_0xc808ca['tagName']&&!_0xc808ca['className'])continue;const _0x41f81b=!_0xc808ca['tagName']||_0x4e42ce['name']===_0xc808ca['tagName'],_0x131c15=!_0xc808ca['className']||_0x4e42ce['hasClass'](_0xc808ca['className']);_0x41f81b&&_0x131c15&&_0x4b070c['set'](_0xc808ca,_0x3a6cc0);}return _0x4b070c;}function m(_0x169be5){const _0x372c16={};for(let _0x23158b=0x0;_0x23158b<_0x169be5['length'];_0x23158b++){const _0x43c9d2=_0x169be5[_0x23158b],_0x28da91=_0x169be5['getPropertyValue'](_0x43c9d2);'initial'!==_0x28da91&&(_0x372c16[_0x43c9d2]=_0x28da91);}return _0x372c16;}function p(_0x1d7eab){const _0x3f2a3f=_0x1d7eab['split'](',')['map'](_0x182b02=>_0x182b02['trim']()),_0x4d0fca=[];for(const _0x22ed3b of _0x3f2a3f){const _0x2da4a7=d['exec'](_0x22ed3b);_0x2da4a7&&_0x4d0fca['push'](_0x2da4a7['groups']);}return _0x4d0fca;}function y(_0x1e5578){const _0x3b4c5a={};for(const _0x2a109d of _0x1e5578)Object['assign'](_0x3b4c5a,_0x2a109d);return _0x3b4c5a;}class g extends _0x6cade5{['execute'](_0x40d58e){const {body:_0x1de6f7,styles:_0x13dcf8,stylesString:_0xe21d28}=_0x40d58e['_parsedData'],_0xa5ad9f=new _0x59bc58(_0x1de6f7['document']),_0xfc67da=_0xa5ad9f['createRangeIn'](_0x1de6f7),_0x7bbaa6=function(_0x20428c){const _0x103769={};for(const _0x5d476d of _0x20428c)for(const _0x4f4031 of _0x5d476d['cssRules'])if(_0x4f4031 instanceof CSSStyleRule){const _0x2e786a=m(_0x4f4031['style']);_0x103769[_0x4f4031['selectorText']]=Object['assign']({},_0x103769[_0x4f4031['selectorText']]||{},_0x2e786a);}return _0x103769;}(_0x13dcf8),_0x4b6fcd=function(_0xdd630e){const _0x27e50e=new Map();for(const _0x59437f in _0xdd630e){const _0x4f50ba=p(_0x59437f),_0xf3cab2=_0xdd630e[_0x59437f];for(const _0x5309d6 of _0x4f50ba)_0x27e50e['set'](_0x5309d6,_0xf3cab2);}return _0x27e50e;}(_0x7bbaa6),_0x1db876=function(_0x254ee6){const _0x42f526={},_0x3ecccc=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x25e4c3=/\.(?<className>[\w-]+)/g;let _0x588b52;for(;null!==(_0x588b52=_0x3ecccc['exec'](_0x254ee6));){const {selector:_0x27b298,color:_0x380223,patternType:_0x4bf198}=_0x588b52['groups'];if('auto'!==_0x380223['toLowerCase']()&&'none'!==_0x4bf198['toLowerCase']()&&'auto'!==_0x4bf198['toLowerCase']()){for(const _0x18da62 of _0x27b298['matchAll'](_0x25e4c3))_0x42f526[_0x18da62['groups']['className']]=_0x380223;}}return _0x42f526;}(_0xe21d28);for(const _0x201ceb of _0xfc67da){if('elementStart'!==_0x201ceb['type'])continue;const _0x54ffd6=_0x201ceb['item'],_0x22f656=w(_0x54ffd6,_0x4b6fcd),_0x10f648=_0x22f656['size']?y(Array['from'](_0x22f656['values']())):{};if(!('background-color'in _0x10f648)&&!('background'in _0x10f648)){for(const [_0x347897,_0x486268]of Object['entries'](_0x1db876))if(_0x54ffd6['hasClass'](_0x347897)){_0x10f648['background-color']=_0x486268;break;}}for(const _0x291424 in _0x10f648)_0x54ffd6['hasStyle'](_0x291424)||_0xa5ad9f['setStyle'](_0x291424,_0x10f648[_0x291424],_0x54ffd6);}_0x40d58e['content']=_0x1de6f7;}['isActive'](_0x15cc9d){return super['isActive'](_0x15cc9d)||l(_0x15cc9d);}}class h extends _0x3149bb{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x386031];}['init'](){const _0xfc2069=this['editor'],_0x31dc40=_0xfc2069['plugins']['get']('ClipboardPipeline'),_0x8cdcdb=_0xfc2069['editing']['view']['document'],_0x5418f9=new g(_0x8cdcdb);_0x31dc40['on']('inputTransformation',(_0x4a8d7f,_0x47efc9)=>{const _0x174bb1=_0x47efc9['dataTransfer']['getData']('text/html');_0x5418f9['isActive'](_0x174bb1)&&(_0x47efc9['_parsedData']||(_0x47efc9['_parsedData']=_0x2c554c(_0x174bb1,_0x8cdcdb['stylesProcessor'])),_0x5418f9['execute'](_0x47efc9));},{'priority':_0x3af9bc['get']('high')+0xb});}['afterInit'](){!async function(_0x5e395c){const _0x529a79=_0x4244a9([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]),_0x5174f5=0x7374585f,_0x573185=0x7373d117^_0x5174f5,_0x5cd4a1=window[_0x4244a9([0x44,0x61,0x74,0x65])][_0x4244a9([0x6e,0x6f,0x77])](),_0x1cce59=_0x5e395c[_0x4244a9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2d3e9f=new window[(_0x4244a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34ba4a=>{_0x1cce59[_0x4244a9([0x6f,0x6e,0x63,0x65])](_0x4244a9([0x72,0x65,0x61,0x64,0x79]),_0x34ba4a);}),_0x3f9f42={[_0x4244a9([0x6b,0x74,0x79])]:_0x4244a9([0x45,0x43]),[_0x4244a9([0x75,0x73,0x65])]:_0x4244a9([0x73,0x69,0x67]),[_0x4244a9([0x63,0x72,0x76])]:_0x4244a9([0x50,0x2d,0x32,0x35,0x36]),[_0x4244a9([0x78])]:_0x4244a9([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]),[_0x4244a9([0x79])]:_0x4244a9([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]),[_0x4244a9([0x61,0x6c,0x67])]:_0x4244a9([0x45,0x53,0x32,0x35,0x36])},_0x5348d2=_0x1cce59[_0x4244a9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4244a9([0x67,0x65,0x74])](_0x4244a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x12bd1b(){let _0x35dacc,_0x113629=null,_0x592f99=null;try{if(_0x5348d2==_0x4244a9([0x47,0x50,0x4c]))return _0x4244a9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x35dacc=_0x1e1d5c(),!_0x35dacc)return _0x4244a9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x35dacc[_0x4244a9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x592f99=_0x515cc4(_0x35dacc[_0x4244a9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x35dacc[_0x4244a9([0x6a,0x74,0x69])])),await _0x413a04()?_0x109875()?_0xa9fb2()?_0x4244a9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x19404e()?(_0x35dacc[_0x4244a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4244a9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x113629=_0x43aae6(_0x4244a9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x87a498()):_0x4244a9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4244a9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4244a9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4244a9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xa9fb2(){const _0x513186=[_0x4244a9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4244a9([0x74,0x72,0x69,0x61,0x6c])][_0x4244a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35dacc[_0x4244a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5cd4a1/0x3e8:0xe10*_0x573185;return _0x35dacc[_0x4244a9([0x65,0x78,0x70])]<_0x513186;}function _0x109875(){const _0x970766=_0x35dacc[_0x4244a9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x970766&&(!!_0x970766[_0x4244a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4244a9([0x2a]))||(!!_0x970766[_0x4244a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4244a9([0x50,0x4f,0x45]))||(!!_0x970766[_0x4244a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4244a9([0x50,0x50]))||!(!_0x970766[_0x4244a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4244a9([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x494256()))));}function _0x19404e(){const _0x5f144d=_0x35dacc[_0x4244a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5f144d||0x0==_0x5f144d[_0x4244a9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2f3f62}=new URL(window[_0x4244a9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5f144d[_0x4244a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f3f62))return!0x0;const _0x42aec8=_0x2f3f62[_0x4244a9([0x73,0x70,0x6c,0x69,0x74])](_0x4244a9([0x2e]));return _0x5f144d[_0x4244a9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x219c7b=>_0x219c7b[_0x4244a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4244a9([0x2a])))[_0x4244a9([0x6d,0x61,0x70])](_0x441258=>_0x441258[_0x4244a9([0x73,0x70,0x6c,0x69,0x74])](_0x4244a9([0x2e])))[_0x4244a9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a4a1d=>_0x1a4a1d[_0x4244a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x42aec8[_0x4244a9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4244a9([0x6d,0x61,0x70])](_0x27af7a=>Array(_0x42aec8[_0x4244a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x27af7a[_0x4244a9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4244a9([0x66,0x69,0x6c,0x6c])](_0x27af7a[0x0]===_0x4244a9([0x2a])?_0x4244a9([0x2a]):'')[_0x4244a9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x27af7a))[_0x4244a9([0x73,0x6f,0x6d,0x65])](_0x20a66c=>_0x42aec8[_0x4244a9([0x65,0x76,0x65,0x72,0x79])]((_0x354610,_0x1b0b64)=>_0x20a66c[_0x1b0b64]===_0x354610||_0x20a66c[_0x1b0b64]===_0x4244a9([0x2a])));}function _0x87a498(){return _0x113629&&_0x592f99?new window[(_0x4244a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4afda2,_0x290dfc)=>{_0x113629[_0x4244a9([0x74,0x68,0x65,0x6e])](_0x4afda2,_0x290dfc),_0x592f99[_0x4244a9([0x74,0x68,0x65,0x6e])](_0x100815=>{_0x100815!=_0x4244a9([0x56,0x61,0x6c,0x69,0x64])&&_0x4afda2(_0x100815);},_0x290dfc);}):_0x113629||_0x592f99||_0x4244a9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x515cc4(_0xc9d09a,_0x56d269){return new window[(_0x4244a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1de86e=>{if(_0x46f4d4())return _0x1de86e(_0x4244a9([0x56,0x61,0x6c,0x69,0x64]));_0x3da3fb(),_0x1cce59[_0x4244a9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4244a9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3151d=!0x1;const _0xd8373d=_0x111b74();function _0x23708e(_0x4f9568){return!!_0x4f9568&&(typeof _0x4f9568===_0x4244a9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4f9568===_0x4244a9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4f9568[_0x4244a9([0x74,0x68,0x65,0x6e])]===_0x4244a9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4f9568[_0x4244a9([0x63,0x61,0x74,0x63,0x68])]===_0x4244a9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4ee1e8(_0x5d0ffc){_0x17b071(_0x5d0ffc)[_0x4244a9([0x74,0x68,0x65,0x6e])](_0x5f19a6=>{if(!_0x5f19a6||_0x5f19a6[_0x4244a9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4244a9([0x6f,0x6b]))return _0x4244a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x27bc1c(_0x572640(_0xd8373d+_0x56d269))!=_0x5f19a6[_0x4244a9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4244a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4244a9([0x56,0x61,0x6c,0x69,0x64]);})[_0x4244a9([0x74,0x68,0x65,0x6e])](_0x84dfa2=>(_0x4f233b(),_0x84dfa2),()=>{const _0x33fa89=_0x5ae235();return null==_0x33fa89?(_0x4f233b(),_0x4244a9([0x56,0x61,0x6c,0x69,0x64])):_0x4244a9(_0x5cd4a1-_0x33fa89>(0x5778dc5f^_0x5174f5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4244a9([0x74,0x68,0x65,0x6e])](_0x1de86e)[_0x4244a9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1de86e(_0x4244a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x27d094=0x7342b6df^_0x5174f5;function _0x4f233b(){const _0x578d9d=_0x4244a9([0x6c,0x6c,0x63,0x74,0x2d])+_0x27bc1c(_0x572640(_0xc9d09a)),_0x19bd8d=_0x4ca842(_0x27bc1c(window[_0x4244a9([0x4d,0x61,0x74,0x68])][_0x4244a9([0x63,0x65,0x69,0x6c])](_0x5cd4a1/_0x27d094)));window[_0x4244a9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4244a9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x578d9d,_0x19bd8d);}function _0x5ae235(){const _0x29ff00=_0x4244a9([0x6c,0x6c,0x63,0x74,0x2d])+_0x27bc1c(_0x572640(_0xc9d09a)),_0x1952af=window[_0x4244a9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4244a9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29ff00);return _0x1952af?window[_0x4244a9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ca842(_0x1952af),0x10)*_0x27d094:null;}function _0x17b071(_0xf5e293){return new window[(_0x4244a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4beee9,_0x2805d9)=>{_0xf5e293[_0x4244a9([0x74,0x68,0x65,0x6e])](_0x4beee9,_0x2805d9),window[_0x4244a9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2805d9,0x73758c9f^_0x5174f5);});}}_0x1cce59[_0x4244a9([0x6f,0x6e])](_0x4244a9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2caab6,_0x2f5d73)=>{if(_0x2f5d73[0x0]!=_0xc9d09a)return _0x1de86e(_0x4244a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2f5d73[0x1]={..._0x2f5d73[0x1],[_0x4244a9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xd8373d};},{[_0x4244a9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4244a9([0x68,0x69,0x67,0x68])}),_0x1cce59[_0x4244a9([0x6f,0x6e])](_0x4244a9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f2798=>{_0x23708e(_0x4f2798[_0x4244a9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3151d=!0x0,_0x4ee1e8(_0x4f2798[_0x4244a9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4244a9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4244a9([0x6c,0x6f,0x77])}),_0x2d3e9f[_0x4244a9([0x74,0x68,0x65,0x6e])](()=>{_0x3151d||_0x1de86e(_0x4244a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x46f4d4(){return _0x1cce59[_0x4244a9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4244a9([0x76,0x69,0x65,0x77])][_0x4244a9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4244a9([0x61,0x75,0x74,0x6f]);}function _0x3da3fb(){_0x1cce59[_0x4244a9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4244a9([0x76,0x69,0x65,0x77])][_0x4244a9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4244a9([0x61,0x75,0x74,0x6f]);}}function _0x43aae6(_0x32ff8b){const _0x10180a=[new window[(_0x4244a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6d2055=>setTimeout(_0x6d2055,0x737d6693^_0x5174f5)),_0x2d3e9f[_0x4244a9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4244a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x790e3d=>{let _0x186619=0x0;_0x1cce59[_0x4244a9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4244a9([0x6f,0x6e])](_0x4244a9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1108d7,_0x5846cc)=>{_0x5846cc[0x0][_0x4244a9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x186619++,_0x186619==(0x73745db7^_0x5174f5)&&(_0x790e3d(),_0x1108d7[_0x4244a9([0x6f,0x66,0x66])]());});}))];return window[_0x4244a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4244a9([0x72,0x61,0x63,0x65])](_0x10180a)[_0x4244a9([0x74,0x68,0x65,0x6e])](()=>_0x32ff8b);}async function _0xc9bba9(){await _0x2d3e9f,_0x1cce59[_0x4244a9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4244a9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x398ce7,_0x1cce59[_0x4244a9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4244a9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x398ce7,_0x1cce59[_0x4244a9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4244a9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x494256(){return window[_0x4244a9([0x67,0x6c,0x6f,0x62])]&&window[_0x4244a9([0x67,0x6c,0x6f,0x62])][_0x4244a9([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x448a5d(_0x237b29){const _0x594b1b=_0xf3d65a();_0x1cce59[_0x594b1b]=_0x4244a9([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])+_0x237b29,_0x237b29!=_0x4244a9([0x56,0x61,0x6c,0x69,0x64])&&_0xc9bba9();}function _0xf3d65a(){const _0x595dca=window[_0x4244a9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4244a9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4244a9([0x6e,0x6f,0x77])]())[_0x4244a9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4244a9([0x2e]),'');let _0x3f8c44=_0x4244a9([0x73]);for(let _0x145725=0x0;_0x145725<_0x595dca[_0x4244a9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x145725+=0x2){let _0xd54484=window[_0x4244a9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x595dca[_0x4244a9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x145725,_0x145725+0x2));_0xd54484>=_0x529a79[_0x4244a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xd54484-=_0x529a79[_0x4244a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3f8c44+=_0x529a79[_0xd54484];}return _0x3f8c44;}function _0x1e1d5c(){const _0x14293c=_0x5348d2[_0x4244a9([0x73,0x70,0x6c,0x69,0x74])](_0x4244a9([0x2e]));if(0x3!=_0x14293c[_0x4244a9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1c352e(_0x14293c[0x1]);function _0x1c352e(_0x72081a){const _0x5bbbba=_0x347b25(_0x72081a);return _0x5bbbba&&_0x35ae29()?_0x5bbbba:null;function _0x35ae29(){const _0x1606d6=_0x5bbbba[_0x4244a9([0x6a,0x74,0x69])],_0x17b60e=window[_0x4244a9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1606d6[_0x4244a9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1606d6[_0x4244a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2b65ce={..._0x5bbbba,[_0x4244a9([0x6a,0x74,0x69])]:_0x1606d6[_0x4244a9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1606d6[_0x4244a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2b65ce[_0x4244a9([0x76,0x63])],_0x572640(_0x2b65ce)==_0x17b60e;}}}async function _0x413a04(){let _0x349475=!0x0;try{const _0x1f5a2b=_0x5348d2[_0x4244a9([0x73,0x70,0x6c,0x69,0x74])](_0x4244a9([0x2e])),[_0x3a4fda,_0x245e4f,_0x367cf4]=_0x1f5a2b;return _0x11767a(_0x3a4fda),await _0x34251b(_0x3a4fda,_0x245e4f,_0x367cf4),_0x349475;}catch{return!0x1;}function _0x11767a(_0x468b9b){const _0x24a363=_0x347b25(_0x468b9b);_0x24a363&&_0x24a363[_0x4244a9([0x61,0x6c,0x67])]==_0x4244a9([0x45,0x53,0x32,0x35,0x36])||(_0x349475=!0x1);}async function _0x34251b(_0x30b74c,_0x420d02,_0x391b38){const _0x25198e=window[_0x4244a9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4244a9([0x66,0x72,0x6f,0x6d])](_0x4c18df(_0x391b38),_0x3b3bc0=>_0x3b3bc0[_0x4244a9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x25bc93=new window[(_0x4244a9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4244a9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x30b74c+_0x4244a9([0x2e])+_0x420d02),_0x70a575=window[_0x4244a9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4244a9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x70a575)return;const _0x480b99=await _0x70a575[_0x4244a9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4244a9([0x6a,0x77,0x6b]),_0x3f9f42,{[_0x4244a9([0x6e,0x61,0x6d,0x65])]:_0x4244a9([0x45,0x43,0x44,0x53,0x41]),[_0x4244a9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4244a9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4244a9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x70a575[_0x4244a9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4244a9([0x6e,0x61,0x6d,0x65])]:_0x4244a9([0x45,0x43,0x44,0x53,0x41]),[_0x4244a9([0x68,0x61,0x73,0x68])]:{[_0x4244a9([0x6e,0x61,0x6d,0x65])]:_0x4244a9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x480b99,_0x25198e,_0x25bc93)||(_0x349475=!0x1);}}function _0x347b25(_0xe6ad77){return _0xe6ad77[_0x4244a9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4244a9([0x65,0x79]))?JSON[_0x4244a9([0x70,0x61,0x72,0x73,0x65])](_0x4c18df(_0xe6ad77)):null;}function _0x4c18df(_0x1c3a0f){return window[_0x4244a9([0x61,0x74,0x6f,0x62])](_0x1c3a0f[_0x4244a9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4244a9([0x2b]))[_0x4244a9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4244a9([0x2f])));}function _0x572640(_0x46039c){let _0x15afc0=0x1505;function _0x557603(_0x1bd2f3){for(let _0xd8dda=0x0;_0xd8dda<_0x1bd2f3[_0x4244a9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd8dda++){const _0x549eaf=_0x1bd2f3[_0x4244a9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xd8dda);_0x15afc0=(_0x15afc0<<0x5)+_0x15afc0+_0x549eaf,_0x15afc0&=_0x15afc0;}}function _0x16b28f(_0x522a15){Array[_0x4244a9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x522a15)?_0x522a15[_0x4244a9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x16b28f):_0x522a15&&typeof _0x522a15==_0x4244a9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4244a9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x522a15)[_0x4244a9([0x73,0x6f,0x72,0x74])]()[_0x4244a9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5e8ad2,_0x23eb7f])=>{_0x557603(_0x5e8ad2),_0x16b28f(_0x23eb7f);}):_0x557603(window[_0x4244a9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x522a15));}return _0x16b28f(_0x46039c),_0x15afc0>>>0x0;}function _0x27bc1c(_0x1c13c9){return _0x1c13c9[_0x4244a9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4244a9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4244a9([0x30]));}function _0x4ca842(_0x2a022c){return _0x2a022c[_0x4244a9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4244a9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4244a9([0x6a,0x6f,0x69,0x6e])]('');}function _0x398ce7(){}function _0x4244a9(_0x40b65f){return _0x40b65f['map'](_0x44be2d=>String['fromCharCode'](_0x44be2d))['join']('');}_0x448a5d(await _0x12bd1b());}(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'],[_0x4da184=>Number(_0x4da184)>=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(_0x50e0e6){return O['includes'](_0x50e0e6);}function b(_0x4babbe){return Array['from'](_0x4babbe['getStyleNames']())['filter'](x);}function F(_0xf594e6,_0x1d34d6,_0x40515a){const {spanStyles:_0x243e56,stylesToBeHtmlElements:_0x29239b}=P(_0xf594e6,_0x40515a);!function(_0x5f1831,_0x26943a,_0x2c7bd8){for(const _0x36e2fe in _0x2c7bd8){_0x2c7bd8[_0x36e2fe]['forEach'](([,_0x2c0609])=>{const _0x224282=_0x26943a['createElement'](_0x2c0609,[],_0x5f1831['getChildren']());_0x26943a['insertChild'](0x0,_0x224282,_0x5f1831);}),_0x26943a['removeStyle'](_0x36e2fe,_0x5f1831);}}(_0xf594e6,_0x1d34d6,_0x29239b),function(_0x543d20,_0x278dec,_0x5d5333){if(!Object['keys'](_0x5d5333)['length'])return;const _0x110467=_0x278dec['createElement']('span',[],_0x543d20['getChildren']());_0x278dec['setStyle'](_0x5d5333,_0x110467),_0x278dec['insertChild'](0x0,_0x110467,_0x543d20),_0x278dec['removeStyle'](Object['keys'](_0x5d5333),_0x543d20);}(_0xf594e6,_0x1d34d6,_0x243e56);}function K(_0x32bbf8,_0x3c1c21,_0xcdb6e5){const {spanStyles:_0x11afff}=P(_0x32bbf8,_0xcdb6e5),_0x47f6d5=Object['keys'](_0x11afff);if(!_0x47f6d5['length'])return;let _0x261823=!0x1;for(const _0xc120fa of _0x32bbf8['getChildren']())if(_0xc120fa['is']('element','span')){_0x261823=!0x0;for(const [_0x89fd64,_0x528a6c]of Object['entries'](_0x11afff))_0xc120fa['hasStyle'](_0x89fd64)||_0x3c1c21['setStyle']({[_0x89fd64]:_0x528a6c},_0xc120fa);}_0x261823&&_0x3c1c21['removeStyle'](_0x47f6d5,_0x32bbf8);}function P(_0x5c6030,_0x3dff10){const _0x974f30={},_0x19e767={};return _0x3dff10['forEach'](_0x4a4c69=>{const _0x20e6cf=_0x5c6030['getStyle'](_0x4a4c69);if(_0x20e6cf){if(function(_0x4f595f){return E['includes'](_0x4f595f);}(_0x4a4c69))_0x974f30[_0x4a4c69]=_0x20e6cf;else{if(function(_0x15538f){return _0x15538f in L;}(_0x4a4c69)){const _0x4fa39e=_0x20e6cf['split']('\x20');L[_0x4a4c69]['forEach'](([_0x5811e4,_0xfddf64])=>{for(const _0x4a9b93 of _0x4fa39e){('function'==typeof _0x5811e4&&_0x5811e4(_0x4a9b93)||_0x5811e4===_0x4a9b93)&&(_0x19e767[_0x4a4c69]=[..._0x19e767[_0x4a4c69]||[],[_0x5811e4,_0xfddf64]]);}});}}}}),{'spanStyles':_0x974f30,'stylesToBeHtmlElements':_0x19e767};}class v extends _0x6cade5{['execute'](_0x35c1ca){const {body:_0x131fbd}=_0x35c1ca['_parsedData'],_0x10ee0b=new _0x59bc58(_0x131fbd['document']),_0x303dc9=_0x10ee0b['createRangeIn'](_0x131fbd),_0x16bed7=new _0x3eb9d7(_0x10ee0b['document']['stylesProcessor']),_0x19651a=[...new _0x547a7e(_0x16bed7)['blockElements'],'font'],_0x2a5a16=_0x303dc9['getItems']();for(const _0x5aa242 of _0x2a5a16)if(_0x5aa242['is']('element')&&_0x19651a['includes'](_0x5aa242['name'])){if(_0x5aa242['hasStyle']('mso-list')&&'none'!==_0x5aa242['getStyle']('mso-list')){K(_0x5aa242,_0x10ee0b,b(_0x5aa242));continue;}F(_0x5aa242,_0x10ee0b,b(_0x5aa242));}_0x35c1ca['content']=_0x131fbd;}['isActive'](_0x4928a9){return super['isActive'](_0x4928a9)||l(_0x4928a9);}}class k extends _0x3149bb{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x386031];}['init'](){const _0x2469fa=this['editor'],_0x3180e1=_0x2469fa['plugins']['get']('ClipboardPipeline'),_0x51382c=_0x2469fa['editing']['view']['document'],_0x57e58a=new v(_0x51382c);_0x3180e1['on']('inputTransformation',(_0xc2b9e4,_0x34ce64)=>{const _0x427a39=_0x34ce64['dataTransfer']['getData']('text/html');_0x57e58a['isActive'](_0x427a39)&&(_0x34ce64['_parsedData']||(_0x34ce64['_parsedData']=_0x2c554c(_0x427a39,_0x51382c['stylesProcessor'])),_0x57e58a['execute'](_0x34ce64));},{'priority':_0x3af9bc['get']('high')+0xa}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1193e4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x43ec41;for(const _0x5eecb5 in _0x1193e4){const _0x153cd4=_0x5eecb5,_0x371ca5=_0x1193e4[_0x153cd4];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x371ca5||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x371ca5||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x371ca5||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x371ca5||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x371ca5||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x371ca5||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x371ca5){delete _0x1193e4[_0x153cd4],_0x43ec41=_0x371ca5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x43ec41&&_0x1193e4['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x43ec41&&_0x1193e4['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x43ec41&&_0x1193e4['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x43ec41&&_0x1193e4['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x43ec41&&_0x1193e4['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x43ec41&&_0x1193e4['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class j extends _0x3149bb{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x386031,h,k];}}export{j as PasteFromOfficeEnhanced};
|
|
23
|
+
import{Plugin as _0x430064}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0x1797af,PasteFromOffice as _0x3c618d,parsePasteOfficeHtml as _0x669c49}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0x1448d3,uid as _0x44502c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x5d0f03,ViewDocument as _0x381cbf,ViewDomConverter as _0xf604db}from'@ckeditor/ckeditor5-engine/dist/index.js';const a=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function l(_0x1762d0){return a['test'](_0x1762d0);}const d=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function w(_0x4504f6,_0x354250){const _0x26f719=new Map();for(const [_0xa41df8,_0x3f263a]of _0x354250){if(!_0xa41df8['tagName']&&!_0xa41df8['className'])continue;const _0x1e1c42=!_0xa41df8['tagName']||_0x4504f6['name']===_0xa41df8['tagName'],_0x2ca430=!_0xa41df8['className']||_0x4504f6['hasClass'](_0xa41df8['className']);_0x1e1c42&&_0x2ca430&&_0x26f719['set'](_0xa41df8,_0x3f263a);}return _0x26f719;}function m(_0x265f4c){const _0x5e20b9={};for(let _0xf5bdc9=0x0;_0xf5bdc9<_0x265f4c['length'];_0xf5bdc9++){const _0x2bddd3=_0x265f4c[_0xf5bdc9],_0x4930b4=_0x265f4c['getPropertyValue'](_0x2bddd3);'initial'!==_0x4930b4&&(_0x5e20b9[_0x2bddd3]=_0x4930b4);}return _0x5e20b9;}function p(_0x545963){const _0x405646=_0x545963['split'](',')['map'](_0xa353b2=>_0xa353b2['trim']()),_0x46b117=[];for(const _0x301606 of _0x405646){const _0x40931e=d['exec'](_0x301606);_0x40931e&&_0x46b117['push'](_0x40931e['groups']);}return _0x46b117;}function y(_0x4f77de){const _0x1326d3={};for(const _0x33343a of _0x4f77de)Object['assign'](_0x1326d3,_0x33343a);return _0x1326d3;}class g extends _0x1797af{['execute'](_0x217629){const {body:_0x4a7163,styles:_0x37f709,stylesString:_0x20e926}=_0x217629['_parsedData'],_0x282768=new _0x5d0f03(_0x4a7163['document']),_0x35cee3=_0x282768['createRangeIn'](_0x4a7163),_0xf7095=function(_0x105897){const _0x379132={};for(const _0x1239c1 of _0x105897)for(const _0x24b087 of _0x1239c1['cssRules'])if(_0x24b087 instanceof CSSStyleRule){const _0x1c9a12=m(_0x24b087['style']);_0x379132[_0x24b087['selectorText']]=Object['assign']({},_0x379132[_0x24b087['selectorText']]||{},_0x1c9a12);}return _0x379132;}(_0x37f709),_0x105ec8=function(_0x3d4f86){const _0x396a75=new Map();for(const _0x31827f in _0x3d4f86){const _0x268b4a=p(_0x31827f),_0x53ec75=_0x3d4f86[_0x31827f];for(const _0x2863af of _0x268b4a)_0x396a75['set'](_0x2863af,_0x53ec75);}return _0x396a75;}(_0xf7095),_0xd6b01b=function(_0x35cabb){const _0xb8ac23={},_0x3001eb=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x3e56d5=/\.(?<className>[\w-]+)/g;let _0x58ff5e;for(;null!==(_0x58ff5e=_0x3001eb['exec'](_0x35cabb));){const {selector:_0x418f83,color:_0x4fe5f5,patternType:_0xdac7e4}=_0x58ff5e['groups'];if('auto'!==_0x4fe5f5['toLowerCase']()&&'none'!==_0xdac7e4['toLowerCase']()&&'auto'!==_0xdac7e4['toLowerCase']()){for(const _0xa9c796 of _0x418f83['matchAll'](_0x3e56d5))_0xb8ac23[_0xa9c796['groups']['className']]=_0x4fe5f5;}}return _0xb8ac23;}(_0x20e926);for(const _0x4bc958 of _0x35cee3){if('elementStart'!==_0x4bc958['type'])continue;const _0x253290=_0x4bc958['item'],_0x51cbe8=w(_0x253290,_0x105ec8),_0x53ed52=_0x51cbe8['size']?y(Array['from'](_0x51cbe8['values']())):{};if(!('background-color'in _0x53ed52)&&!('background'in _0x53ed52)){for(const [_0x247e06,_0x474a4f]of Object['entries'](_0xd6b01b))if(_0x253290['hasClass'](_0x247e06)){_0x53ed52['background-color']=_0x474a4f;break;}}for(const _0xb99e2b in _0x53ed52)_0x253290['hasStyle'](_0xb99e2b)||_0x282768['setStyle'](_0xb99e2b,_0x53ed52[_0xb99e2b],_0x253290);}_0x217629['content']=_0x4a7163;}['isActive'](_0x165b6c){return super['isActive'](_0x165b6c)||l(_0x165b6c);}}class h extends _0x430064{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3c618d];}['init'](){const _0x9934ed=this['editor'],_0x4974de=_0x9934ed['plugins']['get']('ClipboardPipeline'),_0x528cb8=_0x9934ed['editing']['view']['document'],_0x1f2294=new g(_0x528cb8);_0x4974de['on']('inputTransformation',(_0x9e2440,_0x522c0d)=>{const _0x466f4a=_0x522c0d['dataTransfer']['getData']('text/html');_0x1f2294['isActive'](_0x466f4a)&&(_0x522c0d['_parsedData']||(_0x522c0d['_parsedData']=_0x669c49(_0x466f4a,_0x528cb8['stylesProcessor'])),_0x1f2294['execute'](_0x522c0d));},{'priority':_0x1448d3['get']('high')+0xb});}['afterInit'](){!async function(_0x258685){const _0x5e7890=_0x1985ca([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]),_0x25c35d=0x7374585f,_0x102771=0x7373d127^_0x25c35d,_0x6184ca=window[_0x1985ca([0x44,0x61,0x74,0x65])][_0x1985ca([0x6e,0x6f,0x77])](),_0x372407=_0x258685[_0x1985ca([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1148c3=new window[(_0x1985ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d2081=>{_0x372407[_0x1985ca([0x6f,0x6e,0x63,0x65])](_0x1985ca([0x72,0x65,0x61,0x64,0x79]),_0x3d2081);}),_0x52b5cd={[_0x1985ca([0x6b,0x74,0x79])]:_0x1985ca([0x45,0x43]),[_0x1985ca([0x75,0x73,0x65])]:_0x1985ca([0x73,0x69,0x67]),[_0x1985ca([0x63,0x72,0x76])]:_0x1985ca([0x50,0x2d,0x32,0x35,0x36]),[_0x1985ca([0x78])]:_0x1985ca([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]),[_0x1985ca([0x79])]:_0x1985ca([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]),[_0x1985ca([0x61,0x6c,0x67])]:_0x1985ca([0x45,0x53,0x32,0x35,0x36])},_0x345cef=_0x372407[_0x1985ca([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1985ca([0x67,0x65,0x74])](_0x1985ca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x486898(){let _0x460f1c,_0x43adbb=null,_0x2f86a4=null;try{if(_0x345cef==_0x1985ca([0x47,0x50,0x4c]))return _0x1985ca([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x460f1c=_0x5f71b2(),!_0x460f1c)return _0x1985ca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x460f1c[_0x1985ca([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f86a4=_0x4afae2(_0x460f1c[_0x1985ca([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x460f1c[_0x1985ca([0x6a,0x74,0x69])])),await _0x1e3d82()?_0x421521()?_0x18155d()?_0x1985ca([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x78ab8a()?(_0x460f1c[_0x1985ca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1985ca([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x43adbb=_0x232032(_0x1985ca([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2771e4()):_0x1985ca([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1985ca([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1985ca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1985ca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x18155d(){const _0x206c48=[_0x1985ca([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1985ca([0x74,0x72,0x69,0x61,0x6c])][_0x1985ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x460f1c[_0x1985ca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x6184ca/0x3e8:0xe10*_0x102771;return _0x460f1c[_0x1985ca([0x65,0x78,0x70])]<_0x206c48;}function _0x421521(){const _0x17f9e9=_0x460f1c[_0x1985ca([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x17f9e9&&(!!_0x17f9e9[_0x1985ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1985ca([0x2a]))||(!!_0x17f9e9[_0x1985ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1985ca([0x50,0x4f,0x45]))||(!!_0x17f9e9[_0x1985ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1985ca([0x50,0x50]))||!(!_0x17f9e9[_0x1985ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1985ca([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x5ba536()))));}function _0x78ab8a(){const _0x11a010=_0x460f1c[_0x1985ca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x11a010||0x0==_0x11a010[_0x1985ca([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xb8e946}=new URL(window[_0x1985ca([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x11a010[_0x1985ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb8e946))return!0x0;const _0xe0c8ce=_0xb8e946[_0x1985ca([0x73,0x70,0x6c,0x69,0x74])](_0x1985ca([0x2e]));return _0x11a010[_0x1985ca([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x75e784=>_0x75e784[_0x1985ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1985ca([0x2a])))[_0x1985ca([0x6d,0x61,0x70])](_0x6f58c6=>_0x6f58c6[_0x1985ca([0x73,0x70,0x6c,0x69,0x74])](_0x1985ca([0x2e])))[_0x1985ca([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c2c75=>_0x4c2c75[_0x1985ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xe0c8ce[_0x1985ca([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1985ca([0x6d,0x61,0x70])](_0x476897=>Array(_0xe0c8ce[_0x1985ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x476897[_0x1985ca([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1985ca([0x66,0x69,0x6c,0x6c])](_0x476897[0x0]===_0x1985ca([0x2a])?_0x1985ca([0x2a]):'')[_0x1985ca([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x476897))[_0x1985ca([0x73,0x6f,0x6d,0x65])](_0x4f6561=>_0xe0c8ce[_0x1985ca([0x65,0x76,0x65,0x72,0x79])]((_0x166b3a,_0x861084)=>_0x4f6561[_0x861084]===_0x166b3a||_0x4f6561[_0x861084]===_0x1985ca([0x2a])));}function _0x2771e4(){return _0x43adbb&&_0x2f86a4?new window[(_0x1985ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3341e8,_0x22bbcf)=>{_0x43adbb[_0x1985ca([0x74,0x68,0x65,0x6e])](_0x3341e8,_0x22bbcf),_0x2f86a4[_0x1985ca([0x74,0x68,0x65,0x6e])](_0x48c240=>{_0x48c240!=_0x1985ca([0x56,0x61,0x6c,0x69,0x64])&&_0x3341e8(_0x48c240);},_0x22bbcf);}):_0x43adbb||_0x2f86a4||_0x1985ca([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4afae2(_0x1683bd,_0x1aa40f){return new window[(_0x1985ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x861ddc=>{if(_0x4b51a6())return _0x861ddc(_0x1985ca([0x56,0x61,0x6c,0x69,0x64]));_0x5cd10f(),_0x372407[_0x1985ca([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1985ca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x371610=!0x1;const _0x3e613e=_0x44502c();function _0x29c1cf(_0x429988){return!!_0x429988&&(typeof _0x429988===_0x1985ca([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x429988===_0x1985ca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x429988[_0x1985ca([0x74,0x68,0x65,0x6e])]===_0x1985ca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x429988[_0x1985ca([0x63,0x61,0x74,0x63,0x68])]===_0x1985ca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x41c5d4(_0x4e0c10){_0x1528ce(_0x4e0c10)[_0x1985ca([0x74,0x68,0x65,0x6e])](_0x368411=>{if(!_0x368411||_0x368411[_0x1985ca([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1985ca([0x6f,0x6b]))return _0x1985ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x201fa5(_0x5a00da(_0x3e613e+_0x1aa40f))!=_0x368411[_0x1985ca([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1985ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1985ca([0x56,0x61,0x6c,0x69,0x64]);})[_0x1985ca([0x74,0x68,0x65,0x6e])](_0x4c4608=>(_0x26a2e9(),_0x4c4608),()=>{const _0x2ff785=_0x1ea297();return null==_0x2ff785?(_0x26a2e9(),_0x1985ca([0x56,0x61,0x6c,0x69,0x64])):_0x1985ca(_0x6184ca-_0x2ff785>(0x5778dc5f^_0x25c35d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1985ca([0x74,0x68,0x65,0x6e])](_0x861ddc)[_0x1985ca([0x63,0x61,0x74,0x63,0x68])](()=>{_0x861ddc(_0x1985ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4b6058=0x7342b6df^_0x25c35d;function _0x26a2e9(){const _0x1d5412=_0x1985ca([0x6c,0x6c,0x63,0x74,0x2d])+_0x201fa5(_0x5a00da(_0x1683bd)),_0x395e5f=_0x3cd7a1(_0x201fa5(window[_0x1985ca([0x4d,0x61,0x74,0x68])][_0x1985ca([0x63,0x65,0x69,0x6c])](_0x6184ca/_0x4b6058)));window[_0x1985ca([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1985ca([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d5412,_0x395e5f);}function _0x1ea297(){const _0x496755=_0x1985ca([0x6c,0x6c,0x63,0x74,0x2d])+_0x201fa5(_0x5a00da(_0x1683bd)),_0x2cb672=window[_0x1985ca([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1985ca([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x496755);return _0x2cb672?window[_0x1985ca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3cd7a1(_0x2cb672),0x10)*_0x4b6058:null;}function _0x1528ce(_0x21099f){return new window[(_0x1985ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x359b91,_0x4d1aa6)=>{_0x21099f[_0x1985ca([0x74,0x68,0x65,0x6e])](_0x359b91,_0x4d1aa6),window[_0x1985ca([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4d1aa6,0x73758c9f^_0x25c35d);});}}_0x372407[_0x1985ca([0x6f,0x6e])](_0x1985ca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x18c323,_0x587843)=>{if(_0x587843[0x0]!=_0x1683bd)return _0x861ddc(_0x1985ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x587843[0x1]={..._0x587843[0x1],[_0x1985ca([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3e613e};},{[_0x1985ca([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1985ca([0x68,0x69,0x67,0x68])}),_0x372407[_0x1985ca([0x6f,0x6e])](_0x1985ca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5ce8f1=>{_0x29c1cf(_0x5ce8f1[_0x1985ca([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x371610=!0x0,_0x41c5d4(_0x5ce8f1[_0x1985ca([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1985ca([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1985ca([0x6c,0x6f,0x77])}),_0x1148c3[_0x1985ca([0x74,0x68,0x65,0x6e])](()=>{_0x371610||_0x861ddc(_0x1985ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4b51a6(){return _0x372407[_0x1985ca([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1985ca([0x76,0x69,0x65,0x77])][_0x1985ca([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1985ca([0x61,0x75,0x74,0x6f]);}function _0x5cd10f(){_0x372407[_0x1985ca([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1985ca([0x76,0x69,0x65,0x77])][_0x1985ca([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1985ca([0x61,0x75,0x74,0x6f]);}}function _0x232032(_0x25563c){const _0x58b818=[new window[(_0x1985ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x391906=>setTimeout(_0x391906,0x737d6693^_0x25c35d)),_0x1148c3[_0x1985ca([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1985ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22bdb4=>{let _0x4edd07=0x0;_0x372407[_0x1985ca([0x6d,0x6f,0x64,0x65,0x6c])][_0x1985ca([0x6f,0x6e])](_0x1985ca([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xe99d8c,_0x35f6dd)=>{_0x35f6dd[0x0][_0x1985ca([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4edd07++,_0x4edd07==(0x73745db7^_0x25c35d)&&(_0x22bdb4(),_0xe99d8c[_0x1985ca([0x6f,0x66,0x66])]());});}))];return window[_0x1985ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1985ca([0x72,0x61,0x63,0x65])](_0x58b818)[_0x1985ca([0x74,0x68,0x65,0x6e])](()=>_0x25563c);}async function _0x539bb2(){await _0x1148c3,_0x372407[_0x1985ca([0x6d,0x6f,0x64,0x65,0x6c])][_0x1985ca([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5a54a3,_0x372407[_0x1985ca([0x6d,0x6f,0x64,0x65,0x6c])][_0x1985ca([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5a54a3,_0x372407[_0x1985ca([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1985ca([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5ba536(){return window[_0x1985ca([0x67,0x6c,0x6f,0x62])]&&window[_0x1985ca([0x67,0x6c,0x6f,0x62])][_0x1985ca([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x46e460(_0x3ad724){const _0xa86b5e=_0x2b72f2();_0x372407[_0xa86b5e]=_0x1985ca([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])+_0x3ad724,_0x3ad724!=_0x1985ca([0x56,0x61,0x6c,0x69,0x64])&&_0x539bb2();}function _0x2b72f2(){const _0x502bfa=window[_0x1985ca([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1985ca([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1985ca([0x6e,0x6f,0x77])]())[_0x1985ca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1985ca([0x2e]),'');let _0x39bd25=_0x1985ca([0x73]);for(let _0x367b3d=0x0;_0x367b3d<_0x502bfa[_0x1985ca([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x367b3d+=0x2){let _0x222971=window[_0x1985ca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x502bfa[_0x1985ca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x367b3d,_0x367b3d+0x2));_0x222971>=_0x5e7890[_0x1985ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x222971-=_0x5e7890[_0x1985ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x39bd25+=_0x5e7890[_0x222971];}return _0x39bd25;}function _0x5f71b2(){const _0x1e8176=_0x345cef[_0x1985ca([0x73,0x70,0x6c,0x69,0x74])](_0x1985ca([0x2e]));if(0x3!=_0x1e8176[_0x1985ca([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x38f783(_0x1e8176[0x1]);function _0x38f783(_0x4e78dc){const _0x420f1a=_0x32b6e4(_0x4e78dc);return _0x420f1a&&_0x4b6ef8()?_0x420f1a:null;function _0x4b6ef8(){const _0x49b381=_0x420f1a[_0x1985ca([0x6a,0x74,0x69])],_0x42fe52=window[_0x1985ca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49b381[_0x1985ca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49b381[_0x1985ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2a8239={..._0x420f1a,[_0x1985ca([0x6a,0x74,0x69])]:_0x49b381[_0x1985ca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x49b381[_0x1985ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2a8239[_0x1985ca([0x76,0x63])],_0x5a00da(_0x2a8239)==_0x42fe52;}}}async function _0x1e3d82(){let _0x59f062=!0x0;try{const _0x46e7a9=_0x345cef[_0x1985ca([0x73,0x70,0x6c,0x69,0x74])](_0x1985ca([0x2e])),[_0x45ac7a,_0x151aac,_0xb54bb7]=_0x46e7a9;return _0x3aa5d8(_0x45ac7a),await _0x45599a(_0x45ac7a,_0x151aac,_0xb54bb7),_0x59f062;}catch{return!0x1;}function _0x3aa5d8(_0x3b81f9){const _0x14e4ab=_0x32b6e4(_0x3b81f9);_0x14e4ab&&_0x14e4ab[_0x1985ca([0x61,0x6c,0x67])]==_0x1985ca([0x45,0x53,0x32,0x35,0x36])||(_0x59f062=!0x1);}async function _0x45599a(_0x519fd0,_0x54efb5,_0x5c8735){const _0x34394b=window[_0x1985ca([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1985ca([0x66,0x72,0x6f,0x6d])](_0x5ae633(_0x5c8735),_0x400764=>_0x400764[_0x1985ca([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x22a214=new window[(_0x1985ca([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1985ca([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x519fd0+_0x1985ca([0x2e])+_0x54efb5),_0x5ee4eb=window[_0x1985ca([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1985ca([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5ee4eb)return;const _0x2128a0=await _0x5ee4eb[_0x1985ca([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1985ca([0x6a,0x77,0x6b]),_0x52b5cd,{[_0x1985ca([0x6e,0x61,0x6d,0x65])]:_0x1985ca([0x45,0x43,0x44,0x53,0x41]),[_0x1985ca([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1985ca([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1985ca([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5ee4eb[_0x1985ca([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1985ca([0x6e,0x61,0x6d,0x65])]:_0x1985ca([0x45,0x43,0x44,0x53,0x41]),[_0x1985ca([0x68,0x61,0x73,0x68])]:{[_0x1985ca([0x6e,0x61,0x6d,0x65])]:_0x1985ca([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2128a0,_0x34394b,_0x22a214)||(_0x59f062=!0x1);}}function _0x32b6e4(_0x1267ac){return _0x1267ac[_0x1985ca([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1985ca([0x65,0x79]))?JSON[_0x1985ca([0x70,0x61,0x72,0x73,0x65])](_0x5ae633(_0x1267ac)):null;}function _0x5ae633(_0x503832){return window[_0x1985ca([0x61,0x74,0x6f,0x62])](_0x503832[_0x1985ca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1985ca([0x2b]))[_0x1985ca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1985ca([0x2f])));}function _0x5a00da(_0x3b3015){let _0x52fbfa=0x1505;function _0x329148(_0x5ab655){for(let _0x4f24b8=0x0;_0x4f24b8<_0x5ab655[_0x1985ca([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f24b8++){const _0x49a7c8=_0x5ab655[_0x1985ca([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4f24b8);_0x52fbfa=(_0x52fbfa<<0x5)+_0x52fbfa+_0x49a7c8,_0x52fbfa&=_0x52fbfa;}}function _0x52e3d1(_0x2d3632){Array[_0x1985ca([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2d3632)?_0x2d3632[_0x1985ca([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x52e3d1):_0x2d3632&&typeof _0x2d3632==_0x1985ca([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1985ca([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2d3632)[_0x1985ca([0x73,0x6f,0x72,0x74])]()[_0x1985ca([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x24483a,_0x468b7a])=>{_0x329148(_0x24483a),_0x52e3d1(_0x468b7a);}):_0x329148(window[_0x1985ca([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2d3632));}return _0x52e3d1(_0x3b3015),_0x52fbfa>>>0x0;}function _0x201fa5(_0x3b48ac){return _0x3b48ac[_0x1985ca([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1985ca([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1985ca([0x30]));}function _0x3cd7a1(_0x1b2846){return _0x1b2846[_0x1985ca([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1985ca([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1985ca([0x6a,0x6f,0x69,0x6e])]('');}function _0x5a54a3(){}function _0x1985ca(_0x508374){return _0x508374['map'](_0x1b0055=>String['fromCharCode'](_0x1b0055))['join']('');}_0x46e460(await _0x486898());}(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'],[_0x4c0355=>Number(_0x4c0355)>=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(_0x29c2eb){return O['includes'](_0x29c2eb);}function b(_0x20e0ae){return Array['from'](_0x20e0ae['getStyleNames']())['filter'](x);}function F(_0x855117,_0x577c4e,_0x55675a){const {spanStyles:_0x282be0,stylesToBeHtmlElements:_0x37ec64}=P(_0x855117,_0x55675a);!function(_0x26807b,_0xae773c,_0x5a2d84){for(const _0x20ee77 in _0x5a2d84){_0x5a2d84[_0x20ee77]['forEach'](([,_0x220bae])=>{const _0x3c9145=_0xae773c['createElement'](_0x220bae,[],_0x26807b['getChildren']());_0xae773c['insertChild'](0x0,_0x3c9145,_0x26807b);}),_0xae773c['removeStyle'](_0x20ee77,_0x26807b);}}(_0x855117,_0x577c4e,_0x37ec64),function(_0x401dd7,_0x366523,_0x5865ff){if(!Object['keys'](_0x5865ff)['length'])return;const _0x103798=_0x366523['createElement']('span',[],_0x401dd7['getChildren']());_0x366523['setStyle'](_0x5865ff,_0x103798),_0x366523['insertChild'](0x0,_0x103798,_0x401dd7),_0x366523['removeStyle'](Object['keys'](_0x5865ff),_0x401dd7);}(_0x855117,_0x577c4e,_0x282be0);}function K(_0x432b89,_0x1e5bdc,_0x52b6c5){const {spanStyles:_0x53025c}=P(_0x432b89,_0x52b6c5),_0x30215b=Object['keys'](_0x53025c);if(!_0x30215b['length'])return;let _0x19f48d=!0x1;for(const _0x4e5367 of _0x432b89['getChildren']())if(_0x4e5367['is']('element','span')){_0x19f48d=!0x0;for(const [_0x339f46,_0x1d96d2]of Object['entries'](_0x53025c))_0x4e5367['hasStyle'](_0x339f46)||_0x1e5bdc['setStyle']({[_0x339f46]:_0x1d96d2},_0x4e5367);}_0x19f48d&&_0x1e5bdc['removeStyle'](_0x30215b,_0x432b89);}function P(_0x48d396,_0xd23c08){const _0x1f511d={},_0x37a9bc={};return _0xd23c08['forEach'](_0x589ce4=>{const _0x290bae=_0x48d396['getStyle'](_0x589ce4);if(_0x290bae){if(function(_0x4f1b4b){return E['includes'](_0x4f1b4b);}(_0x589ce4))_0x1f511d[_0x589ce4]=_0x290bae;else{if(function(_0x37b6ac){return _0x37b6ac in L;}(_0x589ce4)){const _0x107334=_0x290bae['split']('\x20');L[_0x589ce4]['forEach'](([_0x68a3ba,_0xf9fa0b])=>{for(const _0x2feed4 of _0x107334){('function'==typeof _0x68a3ba&&_0x68a3ba(_0x2feed4)||_0x68a3ba===_0x2feed4)&&(_0x37a9bc[_0x589ce4]=[..._0x37a9bc[_0x589ce4]||[],[_0x68a3ba,_0xf9fa0b]]);}});}}}}),{'spanStyles':_0x1f511d,'stylesToBeHtmlElements':_0x37a9bc};}class v extends _0x1797af{['execute'](_0x373988){const {body:_0x5a8e73}=_0x373988['_parsedData'],_0x1489d9=new _0x5d0f03(_0x5a8e73['document']),_0x12324d=_0x1489d9['createRangeIn'](_0x5a8e73),_0x48b8a2=new _0x381cbf(_0x1489d9['document']['stylesProcessor']),_0x935bf8=[...new _0xf604db(_0x48b8a2)['blockElements'],'font'],_0x190ead=_0x12324d['getItems']();for(const _0x4f6240 of _0x190ead)if(_0x4f6240['is']('element')&&_0x935bf8['includes'](_0x4f6240['name'])){if(_0x4f6240['hasStyle']('mso-list')&&'none'!==_0x4f6240['getStyle']('mso-list')){K(_0x4f6240,_0x1489d9,b(_0x4f6240));continue;}F(_0x4f6240,_0x1489d9,b(_0x4f6240));}_0x373988['content']=_0x5a8e73;}['isActive'](_0x528816){return super['isActive'](_0x528816)||l(_0x528816);}}class k extends _0x430064{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3c618d];}['init'](){const _0x391982=this['editor'],_0x249c54=_0x391982['plugins']['get']('ClipboardPipeline'),_0x43b736=_0x391982['editing']['view']['document'],_0x516825=new v(_0x43b736);_0x249c54['on']('inputTransformation',(_0x1fc1d6,_0x2e86e5)=>{const _0x167dd9=_0x2e86e5['dataTransfer']['getData']('text/html');_0x516825['isActive'](_0x167dd9)&&(_0x2e86e5['_parsedData']||(_0x2e86e5['_parsedData']=_0x669c49(_0x167dd9,_0x43b736['stylesProcessor'])),_0x516825['execute'](_0x2e86e5));},{'priority':_0x1448d3['get']('high')+0xa}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x598a25=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x361064;for(const _0x5500e4 in _0x598a25){const _0x2452c4=_0x5500e4,_0x1cbf7b=_0x598a25[_0x2452c4];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x1cbf7b||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x1cbf7b||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x1cbf7b||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x1cbf7b||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x1cbf7b||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x1cbf7b||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x1cbf7b){delete _0x598a25[_0x2452c4],_0x361064=_0x1cbf7b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x361064&&_0x598a25['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x361064&&_0x598a25['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x361064&&_0x598a25['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x361064&&_0x598a25['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x361064&&_0x598a25['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x361064&&_0x598a25['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class j extends _0x430064{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3c618d,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.
|
|
3
|
+
"version": "48.1.0-alpha.2",
|
|
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.
|
|
35
|
-
"@ckeditor/ckeditor5-core": "48.1.0-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-engine": "48.1.0-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-paste-from-office": "48.1.0-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-utils": "48.1.0-alpha.
|
|
34
|
+
"@ckeditor/ckeditor5-clipboard": "48.1.0-alpha.2",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "48.1.0-alpha.2",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "48.1.0-alpha.2",
|
|
37
|
+
"@ckeditor/ckeditor5-paste-from-office": "48.1.0-alpha.2",
|
|
38
|
+
"@ckeditor/ckeditor5-utils": "48.1.0-alpha.2"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
41
|
"dist",
|