@ckeditor/ckeditor5-paste-from-office-enhanced 48.1.0-alpha.4 → 48.1.0-alpha.5

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 _0x43a07c}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0x1ff919,PasteFromOffice as _0x1ec0b8,parsePasteOfficeHtml as _0x546a92}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0x358321,uid as _0xc9f34}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x3552e2,ViewDocument as _0x5c5576,ViewDomConverter as _0x3b31ad}from'@ckeditor/ckeditor5-engine/dist/index.js';const a=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function l(_0x51af91){return a['test'](_0x51af91);}const d=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function w(_0x5c87df,_0xcf633e){const _0x508347=new Map();for(const [_0x4fb76d,_0x44bf6e]of _0xcf633e){if(!_0x4fb76d['tagName']&&!_0x4fb76d['className'])continue;const _0x351a19=!_0x4fb76d['tagName']||_0x5c87df['name']===_0x4fb76d['tagName'],_0x3afced=!_0x4fb76d['className']||_0x5c87df['hasClass'](_0x4fb76d['className']);_0x351a19&&_0x3afced&&_0x508347['set'](_0x4fb76d,_0x44bf6e);}return _0x508347;}function m(_0x3b45f5){const _0x1675e1={};for(let _0x3fca2b=0x0;_0x3fca2b<_0x3b45f5['length'];_0x3fca2b++){const _0x44ab6b=_0x3b45f5[_0x3fca2b],_0x1b7ed1=_0x3b45f5['getPropertyValue'](_0x44ab6b);'initial'!==_0x1b7ed1&&(_0x1675e1[_0x44ab6b]=_0x1b7ed1);}return _0x1675e1;}function p(_0x4ef5f3){const _0x1f1d10=_0x4ef5f3['split'](',')['map'](_0x5cddd9=>_0x5cddd9['trim']()),_0x6770e7=[];for(const _0x5cff2b of _0x1f1d10){const _0x2fbd98=d['exec'](_0x5cff2b);_0x2fbd98&&_0x6770e7['push'](_0x2fbd98['groups']);}return _0x6770e7;}function y(_0x1e40c4){const _0x4ffdd2={};for(const _0xd42e9 of _0x1e40c4)Object['assign'](_0x4ffdd2,_0xd42e9);return _0x4ffdd2;}class g extends _0x1ff919{['execute'](_0x104faf){const {body:_0x107204,styles:_0x273686,stylesString:_0x11ca55}=_0x104faf['_parsedData'],_0x2bbf15=new _0x3552e2(_0x107204['document']),_0x16044e=_0x2bbf15['createRangeIn'](_0x107204),_0x4f6009=function(_0x2c89f5){const _0x3957ad={};for(const _0x9440b6 of _0x2c89f5)for(const _0x480ac1 of _0x9440b6['cssRules'])if(_0x480ac1 instanceof CSSStyleRule){const _0x5b8bcf=m(_0x480ac1['style']);_0x3957ad[_0x480ac1['selectorText']]=Object['assign']({},_0x3957ad[_0x480ac1['selectorText']]||{},_0x5b8bcf);}return _0x3957ad;}(_0x273686),_0x38cafe=function(_0x5a5295){const _0x177a8a=new Map();for(const _0x5290a5 in _0x5a5295){const _0xaea48c=p(_0x5290a5),_0x1b7519=_0x5a5295[_0x5290a5];for(const _0x596381 of _0xaea48c)_0x177a8a['set'](_0x596381,_0x1b7519);}return _0x177a8a;}(_0x4f6009),_0x16b45e=function(_0x4e57c1){const _0x282e89={},_0x1e5c4f=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x55be51=/\.(?<className>[\w-]+)/g;let _0xbdae26;for(;null!==(_0xbdae26=_0x1e5c4f['exec'](_0x4e57c1));){const {selector:_0x13796a,color:_0x40b38b,patternType:_0x100f53}=_0xbdae26['groups'];if('auto'!==_0x40b38b['toLowerCase']()&&'none'!==_0x100f53['toLowerCase']()&&'auto'!==_0x100f53['toLowerCase']()){for(const _0x4ecc9d of _0x13796a['matchAll'](_0x55be51))_0x282e89[_0x4ecc9d['groups']['className']]=_0x40b38b;}}return _0x282e89;}(_0x11ca55);for(const _0x5b8e4b of _0x16044e){if('elementStart'!==_0x5b8e4b['type'])continue;const _0x5ed98a=_0x5b8e4b['item'],_0x58a94a=w(_0x5ed98a,_0x38cafe),_0x4e2307=_0x58a94a['size']?y(Array['from'](_0x58a94a['values']())):{};if(!('background-color'in _0x4e2307)&&!('background'in _0x4e2307)){for(const [_0x121edf,_0x4994ee]of Object['entries'](_0x16b45e))if(_0x5ed98a['hasClass'](_0x121edf)){_0x4e2307['background-color']=_0x4994ee;break;}}for(const _0x270146 in _0x4e2307)_0x5ed98a['hasStyle'](_0x270146)||_0x2bbf15['setStyle'](_0x270146,_0x4e2307[_0x270146],_0x5ed98a);}_0x104faf['content']=_0x107204;}['isActive'](_0x41b642){return super['isActive'](_0x41b642)||l(_0x41b642);}}class h extends _0x43a07c{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1ec0b8];}['init'](){const _0xa348ca=this['editor'],_0x361b3f=_0xa348ca['plugins']['get']('ClipboardPipeline'),_0x24f354=_0xa348ca['editing']['view']['document'],_0x148500=new g(_0x24f354);_0x361b3f['on']('inputTransformation',(_0x1a377b,_0x4c8457)=>{const _0x4a880c=_0x4c8457['dataTransfer']['getData']('text/html');_0x148500['isActive'](_0x4a880c)&&(_0x4c8457['_parsedData']||(_0x4c8457['_parsedData']=_0x546a92(_0x4a880c,_0x24f354['stylesProcessor'])),_0x148500['execute'](_0x4c8457));},{'priority':_0x358321['get']('high')+0xb});}['afterInit'](){!async function(_0x3a6da3){const _0x53c0b7=_0x461b35([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]),_0x2256de=0x7374585f,_0x3332f0=0x7373d1f7^_0x2256de,_0x3b43ba=window[_0x461b35([0x44,0x61,0x74,0x65])][_0x461b35([0x6e,0x6f,0x77])](),_0xfabb37=_0x3a6da3[_0x461b35([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3d46e1=new window[(_0x461b35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cc88c=>{_0xfabb37[_0x461b35([0x6f,0x6e,0x63,0x65])](_0x461b35([0x72,0x65,0x61,0x64,0x79]),_0x4cc88c);}),_0x10da6c={[_0x461b35([0x6b,0x74,0x79])]:_0x461b35([0x45,0x43]),[_0x461b35([0x75,0x73,0x65])]:_0x461b35([0x73,0x69,0x67]),[_0x461b35([0x63,0x72,0x76])]:_0x461b35([0x50,0x2d,0x32,0x35,0x36]),[_0x461b35([0x78])]:_0x461b35([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]),[_0x461b35([0x79])]:_0x461b35([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]),[_0x461b35([0x61,0x6c,0x67])]:_0x461b35([0x45,0x53,0x32,0x35,0x36])},_0x225755=_0xfabb37[_0x461b35([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x461b35([0x67,0x65,0x74])](_0x461b35([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x301885(){let _0x379af3,_0x59e610=null,_0x443da2=null;try{if(_0x225755==_0x461b35([0x47,0x50,0x4c]))return _0x461b35([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x379af3=_0x1e9b8a(),!_0x379af3)return _0x461b35([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x379af3[_0x461b35([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x443da2=_0x23345a(_0x379af3[_0x461b35([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x379af3[_0x461b35([0x6a,0x74,0x69])])),await _0x22c317()?_0x40b702()?_0x127f41()?_0x461b35([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x548666()?(_0x379af3[_0x461b35([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x461b35([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x59e610=_0xe594f8(_0x461b35([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x835925()):_0x461b35([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x461b35([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x461b35([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x461b35([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x127f41(){const _0x3f6a3d=[_0x461b35([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x461b35([0x74,0x72,0x69,0x61,0x6c])][_0x461b35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x379af3[_0x461b35([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3b43ba/0x3e8:0xe10*_0x3332f0;return _0x379af3[_0x461b35([0x65,0x78,0x70])]<_0x3f6a3d;}function _0x40b702(){const _0x288048=_0x379af3[_0x461b35([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x288048&&(!!_0x288048[_0x461b35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x461b35([0x2a]))||(!!_0x288048[_0x461b35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x461b35([0x50,0x4f,0x45]))||(!!_0x288048[_0x461b35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x461b35([0x50,0x50]))||!(!_0x288048[_0x461b35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x461b35([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x4923ec()))));}function _0x548666(){const _0x58eb97=_0x379af3[_0x461b35([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x58eb97||0x0==_0x58eb97[_0x461b35([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x23c4d4}=new URL(window[_0x461b35([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x58eb97[_0x461b35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23c4d4))return!0x0;const _0x2763e6=_0x23c4d4[_0x461b35([0x73,0x70,0x6c,0x69,0x74])](_0x461b35([0x2e]));return _0x58eb97[_0x461b35([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5eca94=>_0x5eca94[_0x461b35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x461b35([0x2a])))[_0x461b35([0x6d,0x61,0x70])](_0x21af5b=>_0x21af5b[_0x461b35([0x73,0x70,0x6c,0x69,0x74])](_0x461b35([0x2e])))[_0x461b35([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x6093c2=>_0x6093c2[_0x461b35([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2763e6[_0x461b35([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x461b35([0x6d,0x61,0x70])](_0x53cd78=>Array(_0x2763e6[_0x461b35([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x53cd78[_0x461b35([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x461b35([0x66,0x69,0x6c,0x6c])](_0x53cd78[0x0]===_0x461b35([0x2a])?_0x461b35([0x2a]):'')[_0x461b35([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x53cd78))[_0x461b35([0x73,0x6f,0x6d,0x65])](_0x11c44b=>_0x2763e6[_0x461b35([0x65,0x76,0x65,0x72,0x79])]((_0x49c21f,_0x556d46)=>_0x11c44b[_0x556d46]===_0x49c21f||_0x11c44b[_0x556d46]===_0x461b35([0x2a])));}function _0x835925(){return _0x59e610&&_0x443da2?new window[(_0x461b35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb248cd,_0x558c85)=>{_0x59e610[_0x461b35([0x74,0x68,0x65,0x6e])](_0xb248cd,_0x558c85),_0x443da2[_0x461b35([0x74,0x68,0x65,0x6e])](_0x5eba3d=>{_0x5eba3d!=_0x461b35([0x56,0x61,0x6c,0x69,0x64])&&_0xb248cd(_0x5eba3d);},_0x558c85);}):_0x59e610||_0x443da2||_0x461b35([0x56,0x61,0x6c,0x69,0x64]);}}function _0x23345a(_0x2af1e3,_0x196e10){return new window[(_0x461b35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3adcdc=>{if(_0x4e6e13())return _0x3adcdc(_0x461b35([0x56,0x61,0x6c,0x69,0x64]));_0xbfe20e(),_0xfabb37[_0x461b35([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x461b35([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xdf518b=!0x1;const _0x2e8fae=_0xc9f34();function _0x4b6355(_0x125672){return!!_0x125672&&(typeof _0x125672===_0x461b35([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x125672===_0x461b35([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x125672[_0x461b35([0x74,0x68,0x65,0x6e])]===_0x461b35([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x125672[_0x461b35([0x63,0x61,0x74,0x63,0x68])]===_0x461b35([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x13079e(_0x3d9bba){_0x405efd(_0x3d9bba)[_0x461b35([0x74,0x68,0x65,0x6e])](_0x250d53=>{if(!_0x250d53||_0x250d53[_0x461b35([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x461b35([0x6f,0x6b]))return _0x461b35([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xa89812(_0x3f7cd8(_0x2e8fae+_0x196e10))!=_0x250d53[_0x461b35([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x461b35([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x461b35([0x56,0x61,0x6c,0x69,0x64]);})[_0x461b35([0x74,0x68,0x65,0x6e])](_0x4a02fd=>(_0x131bcf(),_0x4a02fd),()=>{const _0x1b6691=_0x2c6c2f();return null==_0x1b6691?(_0x131bcf(),_0x461b35([0x56,0x61,0x6c,0x69,0x64])):_0x461b35(_0x3b43ba-_0x1b6691>(0x5778dc5f^_0x2256de)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x461b35([0x74,0x68,0x65,0x6e])](_0x3adcdc)[_0x461b35([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3adcdc(_0x461b35([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x52cc0e=0x7342b6df^_0x2256de;function _0x131bcf(){const _0x1b5c94=_0x461b35([0x6c,0x6c,0x63,0x74,0x2d])+_0xa89812(_0x3f7cd8(_0x2af1e3)),_0x2e1125=_0x45caf7(_0xa89812(window[_0x461b35([0x4d,0x61,0x74,0x68])][_0x461b35([0x63,0x65,0x69,0x6c])](_0x3b43ba/_0x52cc0e)));window[_0x461b35([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x461b35([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b5c94,_0x2e1125);}function _0x2c6c2f(){const _0x978ba7=_0x461b35([0x6c,0x6c,0x63,0x74,0x2d])+_0xa89812(_0x3f7cd8(_0x2af1e3)),_0x4adea5=window[_0x461b35([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x461b35([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x978ba7);return _0x4adea5?window[_0x461b35([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45caf7(_0x4adea5),0x10)*_0x52cc0e:null;}function _0x405efd(_0x485a9c){return new window[(_0x461b35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x113851,_0x2740e7)=>{_0x485a9c[_0x461b35([0x74,0x68,0x65,0x6e])](_0x113851,_0x2740e7),window[_0x461b35([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2740e7,0x73758c9f^_0x2256de);});}}_0xfabb37[_0x461b35([0x6f,0x6e])](_0x461b35([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4b6fb1,_0x2a9392)=>{if(_0x2a9392[0x0]!=_0x2af1e3)return _0x3adcdc(_0x461b35([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2a9392[0x1]={..._0x2a9392[0x1],[_0x461b35([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2e8fae};},{[_0x461b35([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x461b35([0x68,0x69,0x67,0x68])}),_0xfabb37[_0x461b35([0x6f,0x6e])](_0x461b35([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1700bf=>{_0x4b6355(_0x1700bf[_0x461b35([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xdf518b=!0x0,_0x13079e(_0x1700bf[_0x461b35([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x461b35([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x461b35([0x6c,0x6f,0x77])}),_0x3d46e1[_0x461b35([0x74,0x68,0x65,0x6e])](()=>{_0xdf518b||_0x3adcdc(_0x461b35([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4e6e13(){return _0xfabb37[_0x461b35([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x461b35([0x76,0x69,0x65,0x77])][_0x461b35([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x461b35([0x61,0x75,0x74,0x6f]);}function _0xbfe20e(){_0xfabb37[_0x461b35([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x461b35([0x76,0x69,0x65,0x77])][_0x461b35([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x461b35([0x61,0x75,0x74,0x6f]);}}function _0xe594f8(_0xe96b29){const _0x2b1405=[new window[(_0x461b35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3370bb=>setTimeout(_0x3370bb,0x737d6693^_0x2256de)),_0x3d46e1[_0x461b35([0x74,0x68,0x65,0x6e])](()=>new window[(_0x461b35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58ed32=>{let _0x1c4ea9=0x0;_0xfabb37[_0x461b35([0x6d,0x6f,0x64,0x65,0x6c])][_0x461b35([0x6f,0x6e])](_0x461b35([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2367f6,_0x2c409e)=>{_0x2c409e[0x0][_0x461b35([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1c4ea9++,_0x1c4ea9==(0x73745db7^_0x2256de)&&(_0x58ed32(),_0x2367f6[_0x461b35([0x6f,0x66,0x66])]());});}))];return window[_0x461b35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x461b35([0x72,0x61,0x63,0x65])](_0x2b1405)[_0x461b35([0x74,0x68,0x65,0x6e])](()=>_0xe96b29);}async function _0x35531e(){await _0x3d46e1,_0xfabb37[_0x461b35([0x6d,0x6f,0x64,0x65,0x6c])][_0x461b35([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2d6788,_0xfabb37[_0x461b35([0x6d,0x6f,0x64,0x65,0x6c])][_0x461b35([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2d6788,_0xfabb37[_0x461b35([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x461b35([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4923ec(){return window[_0x461b35([0x67,0x6c,0x6f,0x62])]&&window[_0x461b35([0x67,0x6c,0x6f,0x62])][_0x461b35([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x35a768(_0xfecc1e){const _0x5d636e=_0x374d2a();_0xfabb37[_0x5d636e]=_0x461b35([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])+_0xfecc1e,_0xfecc1e!=_0x461b35([0x56,0x61,0x6c,0x69,0x64])&&_0x35531e();}function _0x374d2a(){const _0x343ffa=window[_0x461b35([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x461b35([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x461b35([0x6e,0x6f,0x77])]())[_0x461b35([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x461b35([0x2e]),'');let _0x4c0968=_0x461b35([0x73]);for(let _0x649cbf=0x0;_0x649cbf<_0x343ffa[_0x461b35([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x649cbf+=0x2){let _0x123ea2=window[_0x461b35([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x343ffa[_0x461b35([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x649cbf,_0x649cbf+0x2));_0x123ea2>=_0x53c0b7[_0x461b35([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x123ea2-=_0x53c0b7[_0x461b35([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4c0968+=_0x53c0b7[_0x123ea2];}return _0x4c0968;}function _0x1e9b8a(){const _0x258d7f=_0x225755[_0x461b35([0x73,0x70,0x6c,0x69,0x74])](_0x461b35([0x2e]));if(0x3!=_0x258d7f[_0x461b35([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x51897e(_0x258d7f[0x1]);function _0x51897e(_0xf4a83e){const _0x1b7d14=_0x448f3e(_0xf4a83e);return _0x1b7d14&&_0x4a5579()?_0x1b7d14:null;function _0x4a5579(){const _0x371e90=_0x1b7d14[_0x461b35([0x6a,0x74,0x69])],_0x1014b6=window[_0x461b35([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x371e90[_0x461b35([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x371e90[_0x461b35([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xfd5686={..._0x1b7d14,[_0x461b35([0x6a,0x74,0x69])]:_0x371e90[_0x461b35([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x371e90[_0x461b35([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xfd5686[_0x461b35([0x76,0x63])],_0x3f7cd8(_0xfd5686)==_0x1014b6;}}}async function _0x22c317(){let _0x30aab8=!0x0;try{const _0x3fc1ee=_0x225755[_0x461b35([0x73,0x70,0x6c,0x69,0x74])](_0x461b35([0x2e])),[_0x4d2b05,_0x22c241,_0x3e11f4]=_0x3fc1ee;return _0x2e9799(_0x4d2b05),await _0x2c01e4(_0x4d2b05,_0x22c241,_0x3e11f4),_0x30aab8;}catch{return!0x1;}function _0x2e9799(_0x3f7b34){const _0xc4962f=_0x448f3e(_0x3f7b34);_0xc4962f&&_0xc4962f[_0x461b35([0x61,0x6c,0x67])]==_0x461b35([0x45,0x53,0x32,0x35,0x36])||(_0x30aab8=!0x1);}async function _0x2c01e4(_0x4421b3,_0x1a00fa,_0x41ea97){const _0x247a07=window[_0x461b35([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x461b35([0x66,0x72,0x6f,0x6d])](_0x1a5859(_0x41ea97),_0x3c5415=>_0x3c5415[_0x461b35([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5a76a7=new window[(_0x461b35([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x461b35([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4421b3+_0x461b35([0x2e])+_0x1a00fa),_0x5eb2c8=window[_0x461b35([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x461b35([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5eb2c8)return;const _0x177f78=await _0x5eb2c8[_0x461b35([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x461b35([0x6a,0x77,0x6b]),_0x10da6c,{[_0x461b35([0x6e,0x61,0x6d,0x65])]:_0x461b35([0x45,0x43,0x44,0x53,0x41]),[_0x461b35([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x461b35([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x461b35([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5eb2c8[_0x461b35([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x461b35([0x6e,0x61,0x6d,0x65])]:_0x461b35([0x45,0x43,0x44,0x53,0x41]),[_0x461b35([0x68,0x61,0x73,0x68])]:{[_0x461b35([0x6e,0x61,0x6d,0x65])]:_0x461b35([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x177f78,_0x247a07,_0x5a76a7)||(_0x30aab8=!0x1);}}function _0x448f3e(_0x553584){return _0x553584[_0x461b35([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x461b35([0x65,0x79]))?JSON[_0x461b35([0x70,0x61,0x72,0x73,0x65])](_0x1a5859(_0x553584)):null;}function _0x1a5859(_0x4a53ca){return window[_0x461b35([0x61,0x74,0x6f,0x62])](_0x4a53ca[_0x461b35([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x461b35([0x2b]))[_0x461b35([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x461b35([0x2f])));}function _0x3f7cd8(_0x33691e){let _0x24cca5=0x1505;function _0x121de3(_0x33a5a4){for(let _0xda1557=0x0;_0xda1557<_0x33a5a4[_0x461b35([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xda1557++){const _0x5b9db3=_0x33a5a4[_0x461b35([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xda1557);_0x24cca5=(_0x24cca5<<0x5)+_0x24cca5+_0x5b9db3,_0x24cca5&=_0x24cca5;}}function _0x4bf35f(_0x37893e){Array[_0x461b35([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x37893e)?_0x37893e[_0x461b35([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4bf35f):_0x37893e&&typeof _0x37893e==_0x461b35([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x461b35([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x37893e)[_0x461b35([0x73,0x6f,0x72,0x74])]()[_0x461b35([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x424296,_0x146c33])=>{_0x121de3(_0x424296),_0x4bf35f(_0x146c33);}):_0x121de3(window[_0x461b35([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x37893e));}return _0x4bf35f(_0x33691e),_0x24cca5>>>0x0;}function _0xa89812(_0x26d3ad){return _0x26d3ad[_0x461b35([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x461b35([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x461b35([0x30]));}function _0x45caf7(_0x1d7c6a){return _0x1d7c6a[_0x461b35([0x73,0x70,0x6c,0x69,0x74])]('')[_0x461b35([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x461b35([0x6a,0x6f,0x69,0x6e])]('');}function _0x2d6788(){}function _0x461b35(_0x49f1a8){return _0x49f1a8['map'](_0x54e669=>String['fromCharCode'](_0x54e669))['join']('');}_0x35a768(await _0x301885());}(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'],[_0x345af0=>Number(_0x345af0)>=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(_0x2d03cb){return O['includes'](_0x2d03cb);}function b(_0x1fe655){return Array['from'](_0x1fe655['getStyleNames']())['filter'](x);}function F(_0x3bb93f,_0x77eb6e,_0x22452f){const {spanStyles:_0x5443e2,stylesToBeHtmlElements:_0x431c55}=P(_0x3bb93f,_0x22452f);!function(_0x270c9d,_0x35d425,_0x1c43bc){for(const _0x1ef361 in _0x1c43bc){_0x1c43bc[_0x1ef361]['forEach'](([,_0x3860aa])=>{const _0x306150=_0x35d425['createElement'](_0x3860aa,[],_0x270c9d['getChildren']());_0x35d425['insertChild'](0x0,_0x306150,_0x270c9d);}),_0x35d425['removeStyle'](_0x1ef361,_0x270c9d);}}(_0x3bb93f,_0x77eb6e,_0x431c55),function(_0x4d70f7,_0x1a3727,_0x908e82){if(!Object['keys'](_0x908e82)['length'])return;const _0x80838=_0x1a3727['createElement']('span',[],_0x4d70f7['getChildren']());_0x1a3727['setStyle'](_0x908e82,_0x80838),_0x1a3727['insertChild'](0x0,_0x80838,_0x4d70f7),_0x1a3727['removeStyle'](Object['keys'](_0x908e82),_0x4d70f7);}(_0x3bb93f,_0x77eb6e,_0x5443e2);}function K(_0x2c0510,_0x493869,_0x2a8602){const {spanStyles:_0x5078f7}=P(_0x2c0510,_0x2a8602),_0x1bbcb0=Object['keys'](_0x5078f7);if(!_0x1bbcb0['length'])return;let _0x45822d=!0x1;for(const _0x14542e of _0x2c0510['getChildren']())if(_0x14542e['is']('element','span')){_0x45822d=!0x0;for(const [_0x3a9455,_0x4700b6]of Object['entries'](_0x5078f7))_0x14542e['hasStyle'](_0x3a9455)||_0x493869['setStyle']({[_0x3a9455]:_0x4700b6},_0x14542e);}_0x45822d&&_0x493869['removeStyle'](_0x1bbcb0,_0x2c0510);}function P(_0x114151,_0x35d8c8){const _0xdb8fb2={},_0x4f465e={};return _0x35d8c8['forEach'](_0x14a609=>{const _0x2f19cf=_0x114151['getStyle'](_0x14a609);if(_0x2f19cf){if(function(_0xb7e975){return E['includes'](_0xb7e975);}(_0x14a609))_0xdb8fb2[_0x14a609]=_0x2f19cf;else{if(function(_0x14b943){return _0x14b943 in L;}(_0x14a609)){const _0x19fe36=_0x2f19cf['split']('\x20');L[_0x14a609]['forEach'](([_0x58375d,_0x3f63fc])=>{for(const _0x5dc463 of _0x19fe36){('function'==typeof _0x58375d&&_0x58375d(_0x5dc463)||_0x58375d===_0x5dc463)&&(_0x4f465e[_0x14a609]=[..._0x4f465e[_0x14a609]||[],[_0x58375d,_0x3f63fc]]);}});}}}}),{'spanStyles':_0xdb8fb2,'stylesToBeHtmlElements':_0x4f465e};}class v extends _0x1ff919{['execute'](_0x35e546){const {body:_0x55e9c9}=_0x35e546['_parsedData'],_0x36f7a6=new _0x3552e2(_0x55e9c9['document']),_0x10da78=_0x36f7a6['createRangeIn'](_0x55e9c9),_0x59e357=new _0x5c5576(_0x36f7a6['document']['stylesProcessor']),_0x192450=[...new _0x3b31ad(_0x59e357)['blockElements'],'font'],_0x1f1cc6=_0x10da78['getItems']();for(const _0x4a5ef4 of _0x1f1cc6)if(_0x4a5ef4['is']('element')&&_0x192450['includes'](_0x4a5ef4['name'])){if(_0x4a5ef4['hasStyle']('mso-list')&&'none'!==_0x4a5ef4['getStyle']('mso-list')){K(_0x4a5ef4,_0x36f7a6,b(_0x4a5ef4));continue;}F(_0x4a5ef4,_0x36f7a6,b(_0x4a5ef4));}_0x35e546['content']=_0x55e9c9;}['isActive'](_0x185036){return super['isActive'](_0x185036)||l(_0x185036);}}class k extends _0x43a07c{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1ec0b8];}['init'](){const _0x436ffa=this['editor'],_0x2e6edc=_0x436ffa['plugins']['get']('ClipboardPipeline'),_0x57c9c1=_0x436ffa['editing']['view']['document'],_0x3deceb=new v(_0x57c9c1);_0x2e6edc['on']('inputTransformation',(_0x4947ab,_0x590bb2)=>{const _0x55142c=_0x590bb2['dataTransfer']['getData']('text/html');_0x3deceb['isActive'](_0x55142c)&&(_0x590bb2['_parsedData']||(_0x590bb2['_parsedData']=_0x546a92(_0x55142c,_0x57c9c1['stylesProcessor'])),_0x3deceb['execute'](_0x590bb2));},{'priority':_0x358321['get']('high')+0xa}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x29e780=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1fca7e;for(const _0xf10069 in _0x29e780){const _0x115a05=_0xf10069,_0x4a31e0=_0x29e780[_0x115a05];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x4a31e0||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x4a31e0||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x4a31e0||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x4a31e0||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x4a31e0||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x4a31e0||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x4a31e0){delete _0x29e780[_0x115a05],_0x1fca7e=_0x4a31e0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x1fca7e&&_0x29e780['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x1fca7e&&_0x29e780['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x1fca7e&&_0x29e780['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x1fca7e&&_0x29e780['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x1fca7e&&_0x29e780['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x1fca7e&&_0x29e780['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class j extends _0x43a07c{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1ec0b8,h,k];}}export{j as PasteFromOfficeEnhanced};
23
+ import{Plugin as _0x25f993}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0x4167ed,PasteFromOffice as _0x54903c,parsePasteOfficeHtml as _0x74f842}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0x42b18e,uid as _0xb9a874}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x47e9df,ViewDocument as _0x23685f,ViewDomConverter as _0x384eaa}from'@ckeditor/ckeditor5-engine/dist/index.js';const a=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function l(_0x2859d3){return a['test'](_0x2859d3);}const d=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function w(_0x58aada,_0x427168){const _0x271b33=new Map();for(const [_0x3801c7,_0x38ff7e]of _0x427168){if(!_0x3801c7['tagName']&&!_0x3801c7['className'])continue;const _0x481043=!_0x3801c7['tagName']||_0x58aada['name']===_0x3801c7['tagName'],_0x31ca79=!_0x3801c7['className']||_0x58aada['hasClass'](_0x3801c7['className']);_0x481043&&_0x31ca79&&_0x271b33['set'](_0x3801c7,_0x38ff7e);}return _0x271b33;}function m(_0x213d9c){const _0x2d8ade={};for(let _0x16728a=0x0;_0x16728a<_0x213d9c['length'];_0x16728a++){const _0x20de20=_0x213d9c[_0x16728a],_0x13e101=_0x213d9c['getPropertyValue'](_0x20de20);'initial'!==_0x13e101&&(_0x2d8ade[_0x20de20]=_0x13e101);}return _0x2d8ade;}function p(_0x3f2e94){const _0x1ba98d=_0x3f2e94['split'](',')['map'](_0x1e1531=>_0x1e1531['trim']()),_0x97ff4=[];for(const _0x249b57 of _0x1ba98d){const _0xbac351=d['exec'](_0x249b57);_0xbac351&&_0x97ff4['push'](_0xbac351['groups']);}return _0x97ff4;}function y(_0x2c7d66){const _0x3bc64c={};for(const _0x3647a5 of _0x2c7d66)Object['assign'](_0x3bc64c,_0x3647a5);return _0x3bc64c;}class g extends _0x4167ed{['execute'](_0x2cc86c){const {body:_0x522d9e,styles:_0x178f4a,stylesString:_0x36aca1}=_0x2cc86c['_parsedData'],_0x510a5c=new _0x47e9df(_0x522d9e['document']),_0x3c0475=_0x510a5c['createRangeIn'](_0x522d9e),_0x505734=function(_0x2857ed){const _0x4cd837={};for(const _0x577dbd of _0x2857ed)for(const _0xefcb2d of _0x577dbd['cssRules'])if(_0xefcb2d instanceof CSSStyleRule){const _0x1adedc=m(_0xefcb2d['style']);_0x4cd837[_0xefcb2d['selectorText']]=Object['assign']({},_0x4cd837[_0xefcb2d['selectorText']]||{},_0x1adedc);}return _0x4cd837;}(_0x178f4a),_0x5e7382=function(_0x3748e8){const _0x30e421=new Map();for(const _0x47aa78 in _0x3748e8){const _0x153158=p(_0x47aa78),_0x27bb07=_0x3748e8[_0x47aa78];for(const _0x58346b of _0x153158)_0x30e421['set'](_0x58346b,_0x27bb07);}return _0x30e421;}(_0x505734),_0x1c696c=function(_0x1fc2b1){const _0x4ac6c6={},_0x3fa4a2=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0xf2c3f=/\.(?<className>[\w-]+)/g;let _0x3d13e7;for(;null!==(_0x3d13e7=_0x3fa4a2['exec'](_0x1fc2b1));){const {selector:_0x32e18c,color:_0x409850,patternType:_0x513c8c}=_0x3d13e7['groups'];if('auto'!==_0x409850['toLowerCase']()&&'none'!==_0x513c8c['toLowerCase']()&&'auto'!==_0x513c8c['toLowerCase']()){for(const _0x34f451 of _0x32e18c['matchAll'](_0xf2c3f))_0x4ac6c6[_0x34f451['groups']['className']]=_0x409850;}}return _0x4ac6c6;}(_0x36aca1);for(const _0x58c372 of _0x3c0475){if('elementStart'!==_0x58c372['type'])continue;const _0xb78894=_0x58c372['item'],_0x299d5c=w(_0xb78894,_0x5e7382),_0x334239=_0x299d5c['size']?y(Array['from'](_0x299d5c['values']())):{};if(!('background-color'in _0x334239)&&!('background'in _0x334239)){for(const [_0x56deaa,_0x5d80e7]of Object['entries'](_0x1c696c))if(_0xb78894['hasClass'](_0x56deaa)){_0x334239['background-color']=_0x5d80e7;break;}}for(const _0x2083f9 in _0x334239)_0xb78894['hasStyle'](_0x2083f9)||_0x510a5c['setStyle'](_0x2083f9,_0x334239[_0x2083f9],_0xb78894);}_0x2cc86c['content']=_0x522d9e;}['isActive'](_0x53f315){return super['isActive'](_0x53f315)||l(_0x53f315);}}class h extends _0x25f993{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x54903c];}['init'](){const _0x2051e3=this['editor'],_0x5a9f60=_0x2051e3['plugins']['get']('ClipboardPipeline'),_0x3a5949=_0x2051e3['editing']['view']['document'],_0x49e8f2=new g(_0x3a5949);_0x5a9f60['on']('inputTransformation',(_0x5ce6b2,_0x2cc2a8)=>{const _0x48f441=_0x2cc2a8['dataTransfer']['getData']('text/html');_0x49e8f2['isActive'](_0x48f441)&&(_0x2cc2a8['_parsedData']||(_0x2cc2a8['_parsedData']=_0x74f842(_0x48f441,_0x3a5949['stylesProcessor'])),_0x49e8f2['execute'](_0x2cc2a8));},{'priority':_0x42b18e['get']('high')+0xb});}['afterInit'](){!async function(_0x4fa73e){const _0x52a604=_0x248816([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]),_0x565e8f=0x7374585f,_0x434035=0x7373d19f^_0x565e8f,_0x639fe3=window[_0x248816([0x44,0x61,0x74,0x65])][_0x248816([0x6e,0x6f,0x77])](),_0x59a9b8=_0x4fa73e[_0x248816([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x38910e=new window[(_0x248816([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32c795=>{_0x59a9b8[_0x248816([0x6f,0x6e,0x63,0x65])](_0x248816([0x72,0x65,0x61,0x64,0x79]),_0x32c795);}),_0x4e72b9={[_0x248816([0x6b,0x74,0x79])]:_0x248816([0x45,0x43]),[_0x248816([0x75,0x73,0x65])]:_0x248816([0x73,0x69,0x67]),[_0x248816([0x63,0x72,0x76])]:_0x248816([0x50,0x2d,0x32,0x35,0x36]),[_0x248816([0x78])]:_0x248816([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]),[_0x248816([0x79])]:_0x248816([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]),[_0x248816([0x61,0x6c,0x67])]:_0x248816([0x45,0x53,0x32,0x35,0x36])},_0x404ce3=_0x59a9b8[_0x248816([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x248816([0x67,0x65,0x74])](_0x248816([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4fbad9(){let _0xfe1388,_0x1b32cd=null,_0x5b98cb=null;try{if(_0x404ce3==_0x248816([0x47,0x50,0x4c]))return _0x248816([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xfe1388=_0x24cf6d(),!_0xfe1388)return _0x248816([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xfe1388[_0x248816([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5b98cb=_0x5b6847(_0xfe1388[_0x248816([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xfe1388[_0x248816([0x6a,0x74,0x69])])),await _0x12dfe8()?_0x9393ce()?_0x3603aa()?_0x248816([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1cf7c8()?(_0xfe1388[_0x248816([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x248816([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1b32cd=_0x3112d9(_0x248816([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3f40eb()):_0x248816([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x248816([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x248816([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x248816([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3603aa(){const _0x3e305e=[_0x248816([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x248816([0x74,0x72,0x69,0x61,0x6c])][_0x248816([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfe1388[_0x248816([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x639fe3/0x3e8:0xe10*_0x434035;return _0xfe1388[_0x248816([0x65,0x78,0x70])]<_0x3e305e;}function _0x9393ce(){const _0xa3b9dc=_0xfe1388[_0x248816([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xa3b9dc&&(!!_0xa3b9dc[_0x248816([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x248816([0x2a]))||(!!_0xa3b9dc[_0x248816([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x248816([0x50,0x4f,0x45]))||(!!_0xa3b9dc[_0x248816([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x248816([0x50,0x50]))||!(!_0xa3b9dc[_0x248816([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x248816([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x31ad94()))));}function _0x1cf7c8(){const _0x3779df=_0xfe1388[_0x248816([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3779df||0x0==_0x3779df[_0x248816([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3e6a1d}=new URL(window[_0x248816([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3779df[_0x248816([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e6a1d))return!0x0;const _0xadc1d1=_0x3e6a1d[_0x248816([0x73,0x70,0x6c,0x69,0x74])](_0x248816([0x2e]));return _0x3779df[_0x248816([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x196da9=>_0x196da9[_0x248816([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x248816([0x2a])))[_0x248816([0x6d,0x61,0x70])](_0x2641d0=>_0x2641d0[_0x248816([0x73,0x70,0x6c,0x69,0x74])](_0x248816([0x2e])))[_0x248816([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ee6e5=>_0x4ee6e5[_0x248816([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xadc1d1[_0x248816([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x248816([0x6d,0x61,0x70])](_0x574c72=>Array(_0xadc1d1[_0x248816([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x574c72[_0x248816([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x248816([0x66,0x69,0x6c,0x6c])](_0x574c72[0x0]===_0x248816([0x2a])?_0x248816([0x2a]):'')[_0x248816([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x574c72))[_0x248816([0x73,0x6f,0x6d,0x65])](_0x1e54a2=>_0xadc1d1[_0x248816([0x65,0x76,0x65,0x72,0x79])]((_0x4fdafd,_0x51856f)=>_0x1e54a2[_0x51856f]===_0x4fdafd||_0x1e54a2[_0x51856f]===_0x248816([0x2a])));}function _0x3f40eb(){return _0x1b32cd&&_0x5b98cb?new window[(_0x248816([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x447ead,_0x483e18)=>{_0x1b32cd[_0x248816([0x74,0x68,0x65,0x6e])](_0x447ead,_0x483e18),_0x5b98cb[_0x248816([0x74,0x68,0x65,0x6e])](_0x292f8c=>{_0x292f8c!=_0x248816([0x56,0x61,0x6c,0x69,0x64])&&_0x447ead(_0x292f8c);},_0x483e18);}):_0x1b32cd||_0x5b98cb||_0x248816([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5b6847(_0x16bdea,_0x31650b){return new window[(_0x248816([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x539901=>{if(_0x3645c3())return _0x539901(_0x248816([0x56,0x61,0x6c,0x69,0x64]));_0x267d3b(),_0x59a9b8[_0x248816([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x248816([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x38737b=!0x1;const _0x257933=_0xb9a874();function _0x4f888a(_0x451c37){return!!_0x451c37&&(typeof _0x451c37===_0x248816([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x451c37===_0x248816([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x451c37[_0x248816([0x74,0x68,0x65,0x6e])]===_0x248816([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x451c37[_0x248816([0x63,0x61,0x74,0x63,0x68])]===_0x248816([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x499d63(_0x51b7a8){_0x1455e1(_0x51b7a8)[_0x248816([0x74,0x68,0x65,0x6e])](_0x5ba7f6=>{if(!_0x5ba7f6||_0x5ba7f6[_0x248816([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x248816([0x6f,0x6b]))return _0x248816([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5aaf5b(_0x427384(_0x257933+_0x31650b))!=_0x5ba7f6[_0x248816([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x248816([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x248816([0x56,0x61,0x6c,0x69,0x64]);})[_0x248816([0x74,0x68,0x65,0x6e])](_0x2fd869=>(_0x1342c0(),_0x2fd869),()=>{const _0x6ff563=_0x518eac();return null==_0x6ff563?(_0x1342c0(),_0x248816([0x56,0x61,0x6c,0x69,0x64])):_0x248816(_0x639fe3-_0x6ff563>(0x5778dc5f^_0x565e8f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x248816([0x74,0x68,0x65,0x6e])](_0x539901)[_0x248816([0x63,0x61,0x74,0x63,0x68])](()=>{_0x539901(_0x248816([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1f303c=0x7342b6df^_0x565e8f;function _0x1342c0(){const _0x3f2a76=_0x248816([0x6c,0x6c,0x63,0x74,0x2d])+_0x5aaf5b(_0x427384(_0x16bdea)),_0xff556b=_0x3e1781(_0x5aaf5b(window[_0x248816([0x4d,0x61,0x74,0x68])][_0x248816([0x63,0x65,0x69,0x6c])](_0x639fe3/_0x1f303c)));window[_0x248816([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x248816([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f2a76,_0xff556b);}function _0x518eac(){const _0x5e766b=_0x248816([0x6c,0x6c,0x63,0x74,0x2d])+_0x5aaf5b(_0x427384(_0x16bdea)),_0x49ec7f=window[_0x248816([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x248816([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e766b);return _0x49ec7f?window[_0x248816([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e1781(_0x49ec7f),0x10)*_0x1f303c:null;}function _0x1455e1(_0x41d611){return new window[(_0x248816([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f00db,_0xa922c)=>{_0x41d611[_0x248816([0x74,0x68,0x65,0x6e])](_0x4f00db,_0xa922c),window[_0x248816([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xa922c,0x73758c9f^_0x565e8f);});}}_0x59a9b8[_0x248816([0x6f,0x6e])](_0x248816([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x10665e,_0x416364)=>{if(_0x416364[0x0]!=_0x16bdea)return _0x539901(_0x248816([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x416364[0x1]={..._0x416364[0x1],[_0x248816([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x257933};},{[_0x248816([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x248816([0x68,0x69,0x67,0x68])}),_0x59a9b8[_0x248816([0x6f,0x6e])](_0x248816([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5385dc=>{_0x4f888a(_0x5385dc[_0x248816([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x38737b=!0x0,_0x499d63(_0x5385dc[_0x248816([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x248816([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x248816([0x6c,0x6f,0x77])}),_0x38910e[_0x248816([0x74,0x68,0x65,0x6e])](()=>{_0x38737b||_0x539901(_0x248816([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3645c3(){return _0x59a9b8[_0x248816([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x248816([0x76,0x69,0x65,0x77])][_0x248816([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x248816([0x61,0x75,0x74,0x6f]);}function _0x267d3b(){_0x59a9b8[_0x248816([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x248816([0x76,0x69,0x65,0x77])][_0x248816([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x248816([0x61,0x75,0x74,0x6f]);}}function _0x3112d9(_0x494743){const _0x565ed6=[new window[(_0x248816([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39c36b=>setTimeout(_0x39c36b,0x737d6693^_0x565e8f)),_0x38910e[_0x248816([0x74,0x68,0x65,0x6e])](()=>new window[(_0x248816([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x329e5b=>{let _0x2a1d1f=0x0;_0x59a9b8[_0x248816([0x6d,0x6f,0x64,0x65,0x6c])][_0x248816([0x6f,0x6e])](_0x248816([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x29aaee,_0x31deeb)=>{_0x31deeb[0x0][_0x248816([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2a1d1f++,_0x2a1d1f==(0x73745db7^_0x565e8f)&&(_0x329e5b(),_0x29aaee[_0x248816([0x6f,0x66,0x66])]());});}))];return window[_0x248816([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x248816([0x72,0x61,0x63,0x65])](_0x565ed6)[_0x248816([0x74,0x68,0x65,0x6e])](()=>_0x494743);}async function _0x1b27b0(){await _0x38910e,_0x59a9b8[_0x248816([0x6d,0x6f,0x64,0x65,0x6c])][_0x248816([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5e8bbf,_0x59a9b8[_0x248816([0x6d,0x6f,0x64,0x65,0x6c])][_0x248816([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5e8bbf,_0x59a9b8[_0x248816([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x248816([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x31ad94(){return window[_0x248816([0x67,0x6c,0x6f,0x62])]&&window[_0x248816([0x67,0x6c,0x6f,0x62])][_0x248816([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x908bd4(_0x1b11df){const _0x2741d1=_0x5640cf();_0x59a9b8[_0x2741d1]=_0x248816([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])+_0x1b11df,_0x1b11df!=_0x248816([0x56,0x61,0x6c,0x69,0x64])&&_0x1b27b0();}function _0x5640cf(){const _0x547dfd=window[_0x248816([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x248816([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x248816([0x6e,0x6f,0x77])]())[_0x248816([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x248816([0x2e]),'');let _0x44c7a1=_0x248816([0x73]);for(let _0x2411c1=0x0;_0x2411c1<_0x547dfd[_0x248816([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2411c1+=0x2){let _0x2321aa=window[_0x248816([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x547dfd[_0x248816([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2411c1,_0x2411c1+0x2));_0x2321aa>=_0x52a604[_0x248816([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2321aa-=_0x52a604[_0x248816([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x44c7a1+=_0x52a604[_0x2321aa];}return _0x44c7a1;}function _0x24cf6d(){const _0x475994=_0x404ce3[_0x248816([0x73,0x70,0x6c,0x69,0x74])](_0x248816([0x2e]));if(0x3!=_0x475994[_0x248816([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4f0621(_0x475994[0x1]);function _0x4f0621(_0x532691){const _0x368222=_0x229065(_0x532691);return _0x368222&&_0x14d607()?_0x368222:null;function _0x14d607(){const _0x5cdb71=_0x368222[_0x248816([0x6a,0x74,0x69])],_0x5ab3b8=window[_0x248816([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cdb71[_0x248816([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5cdb71[_0x248816([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5043e5={..._0x368222,[_0x248816([0x6a,0x74,0x69])]:_0x5cdb71[_0x248816([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5cdb71[_0x248816([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5043e5[_0x248816([0x76,0x63])],_0x427384(_0x5043e5)==_0x5ab3b8;}}}async function _0x12dfe8(){let _0x5d298a=!0x0;try{const _0x1ef1a2=_0x404ce3[_0x248816([0x73,0x70,0x6c,0x69,0x74])](_0x248816([0x2e])),[_0x371515,_0x1fff24,_0x442c47]=_0x1ef1a2;return _0x54ba03(_0x371515),await _0x3afdf1(_0x371515,_0x1fff24,_0x442c47),_0x5d298a;}catch{return!0x1;}function _0x54ba03(_0x18a386){const _0xdcd706=_0x229065(_0x18a386);_0xdcd706&&_0xdcd706[_0x248816([0x61,0x6c,0x67])]==_0x248816([0x45,0x53,0x32,0x35,0x36])||(_0x5d298a=!0x1);}async function _0x3afdf1(_0x24bfde,_0x5b9971,_0x1e750e){const _0x321280=window[_0x248816([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x248816([0x66,0x72,0x6f,0x6d])](_0x5b841d(_0x1e750e),_0x32678f=>_0x32678f[_0x248816([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x52db08=new window[(_0x248816([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x248816([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x24bfde+_0x248816([0x2e])+_0x5b9971),_0x81185c=window[_0x248816([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x248816([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x81185c)return;const _0x2e8745=await _0x81185c[_0x248816([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x248816([0x6a,0x77,0x6b]),_0x4e72b9,{[_0x248816([0x6e,0x61,0x6d,0x65])]:_0x248816([0x45,0x43,0x44,0x53,0x41]),[_0x248816([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x248816([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x248816([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x81185c[_0x248816([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x248816([0x6e,0x61,0x6d,0x65])]:_0x248816([0x45,0x43,0x44,0x53,0x41]),[_0x248816([0x68,0x61,0x73,0x68])]:{[_0x248816([0x6e,0x61,0x6d,0x65])]:_0x248816([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2e8745,_0x321280,_0x52db08)||(_0x5d298a=!0x1);}}function _0x229065(_0x14ad16){return _0x14ad16[_0x248816([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x248816([0x65,0x79]))?JSON[_0x248816([0x70,0x61,0x72,0x73,0x65])](_0x5b841d(_0x14ad16)):null;}function _0x5b841d(_0x16ecc1){return window[_0x248816([0x61,0x74,0x6f,0x62])](_0x16ecc1[_0x248816([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x248816([0x2b]))[_0x248816([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x248816([0x2f])));}function _0x427384(_0x37f6fa){let _0x5c66cf=0x1505;function _0x1c06d1(_0x477fb2){for(let _0x3d70b4=0x0;_0x3d70b4<_0x477fb2[_0x248816([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d70b4++){const _0x50c3df=_0x477fb2[_0x248816([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3d70b4);_0x5c66cf=(_0x5c66cf<<0x5)+_0x5c66cf+_0x50c3df,_0x5c66cf&=_0x5c66cf;}}function _0xb41a29(_0x1f0fea){Array[_0x248816([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1f0fea)?_0x1f0fea[_0x248816([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xb41a29):_0x1f0fea&&typeof _0x1f0fea==_0x248816([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x248816([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1f0fea)[_0x248816([0x73,0x6f,0x72,0x74])]()[_0x248816([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x438fc4,_0x1c4f9c])=>{_0x1c06d1(_0x438fc4),_0xb41a29(_0x1c4f9c);}):_0x1c06d1(window[_0x248816([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1f0fea));}return _0xb41a29(_0x37f6fa),_0x5c66cf>>>0x0;}function _0x5aaf5b(_0x54f336){return _0x54f336[_0x248816([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x248816([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x248816([0x30]));}function _0x3e1781(_0x357519){return _0x357519[_0x248816([0x73,0x70,0x6c,0x69,0x74])]('')[_0x248816([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x248816([0x6a,0x6f,0x69,0x6e])]('');}function _0x5e8bbf(){}function _0x248816(_0x54f7c4){return _0x54f7c4['map'](_0x35849b=>String['fromCharCode'](_0x35849b))['join']('');}_0x908bd4(await _0x4fbad9());}(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'],[_0xe4d7e2=>Number(_0xe4d7e2)>=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(_0x56f764){return O['includes'](_0x56f764);}function b(_0x25d632){return Array['from'](_0x25d632['getStyleNames']())['filter'](x);}function F(_0x358159,_0x13eaf7,_0x54f388){const {spanStyles:_0x490cce,stylesToBeHtmlElements:_0x58f41}=P(_0x358159,_0x54f388);!function(_0x3e70c4,_0x47e7ce,_0x56bdb1){for(const _0x3871b6 in _0x56bdb1){_0x56bdb1[_0x3871b6]['forEach'](([,_0x224ea4])=>{const _0x341a53=_0x47e7ce['createElement'](_0x224ea4,[],_0x3e70c4['getChildren']());_0x47e7ce['insertChild'](0x0,_0x341a53,_0x3e70c4);}),_0x47e7ce['removeStyle'](_0x3871b6,_0x3e70c4);}}(_0x358159,_0x13eaf7,_0x58f41),function(_0x36335c,_0x42851f,_0x3ff53e){if(!Object['keys'](_0x3ff53e)['length'])return;const _0x1e77fb=_0x42851f['createElement']('span',[],_0x36335c['getChildren']());_0x42851f['setStyle'](_0x3ff53e,_0x1e77fb),_0x42851f['insertChild'](0x0,_0x1e77fb,_0x36335c),_0x42851f['removeStyle'](Object['keys'](_0x3ff53e),_0x36335c);}(_0x358159,_0x13eaf7,_0x490cce);}function K(_0xe2ebc1,_0x42bd66,_0x3b5dc3){const {spanStyles:_0x56c56e}=P(_0xe2ebc1,_0x3b5dc3),_0x948b94=Object['keys'](_0x56c56e);if(!_0x948b94['length'])return;let _0x117717=!0x1;for(const _0x3bda12 of _0xe2ebc1['getChildren']())if(_0x3bda12['is']('element','span')){_0x117717=!0x0;for(const [_0x5f5c1a,_0x4d95f1]of Object['entries'](_0x56c56e))_0x3bda12['hasStyle'](_0x5f5c1a)||_0x42bd66['setStyle']({[_0x5f5c1a]:_0x4d95f1},_0x3bda12);}_0x117717&&_0x42bd66['removeStyle'](_0x948b94,_0xe2ebc1);}function P(_0x1e0585,_0x553a8b){const _0x18dde4={},_0x2539be={};return _0x553a8b['forEach'](_0x42037a=>{const _0x3e89d1=_0x1e0585['getStyle'](_0x42037a);if(_0x3e89d1){if(function(_0x27542d){return E['includes'](_0x27542d);}(_0x42037a))_0x18dde4[_0x42037a]=_0x3e89d1;else{if(function(_0x1cccce){return _0x1cccce in L;}(_0x42037a)){const _0x12b572=_0x3e89d1['split']('\x20');L[_0x42037a]['forEach'](([_0x29037f,_0x50db12])=>{for(const _0x502016 of _0x12b572){('function'==typeof _0x29037f&&_0x29037f(_0x502016)||_0x29037f===_0x502016)&&(_0x2539be[_0x42037a]=[..._0x2539be[_0x42037a]||[],[_0x29037f,_0x50db12]]);}});}}}}),{'spanStyles':_0x18dde4,'stylesToBeHtmlElements':_0x2539be};}class v extends _0x4167ed{['execute'](_0x2a2109){const {body:_0x219010}=_0x2a2109['_parsedData'],_0x298c16=new _0x47e9df(_0x219010['document']),_0x4a0bff=_0x298c16['createRangeIn'](_0x219010),_0x15af96=new _0x23685f(_0x298c16['document']['stylesProcessor']),_0x2641a7=[...new _0x384eaa(_0x15af96)['blockElements'],'font'],_0x49ca7e=_0x4a0bff['getItems']();for(const _0x2428d7 of _0x49ca7e)if(_0x2428d7['is']('element')&&_0x2641a7['includes'](_0x2428d7['name'])){if(_0x2428d7['hasStyle']('mso-list')&&'none'!==_0x2428d7['getStyle']('mso-list')){K(_0x2428d7,_0x298c16,b(_0x2428d7));continue;}F(_0x2428d7,_0x298c16,b(_0x2428d7));}_0x2a2109['content']=_0x219010;}['isActive'](_0x1786e4){return super['isActive'](_0x1786e4)||l(_0x1786e4);}}class k extends _0x25f993{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x54903c];}['init'](){const _0x315206=this['editor'],_0x2e12cf=_0x315206['plugins']['get']('ClipboardPipeline'),_0x5a1755=_0x315206['editing']['view']['document'],_0x559c56=new v(_0x5a1755);_0x2e12cf['on']('inputTransformation',(_0x28c258,_0x6257bc)=>{const _0x513972=_0x6257bc['dataTransfer']['getData']('text/html');_0x559c56['isActive'](_0x513972)&&(_0x6257bc['_parsedData']||(_0x6257bc['_parsedData']=_0x74f842(_0x513972,_0x5a1755['stylesProcessor'])),_0x559c56['execute'](_0x6257bc));},{'priority':_0x42b18e['get']('high')+0xa}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1d6003=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x255171;for(const _0x28e637 in _0x1d6003){const _0x501ab2=_0x28e637,_0x181bdf=_0x1d6003[_0x501ab2];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x181bdf||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x181bdf||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x181bdf||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x181bdf||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x181bdf||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x181bdf||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x181bdf){delete _0x1d6003[_0x501ab2],_0x255171=_0x181bdf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x255171&&_0x1d6003['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x255171&&_0x1d6003['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x255171&&_0x1d6003['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x255171&&_0x1d6003['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x255171&&_0x1d6003['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x255171&&_0x1d6003['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class j extends _0x25f993{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x54903c,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.4",
3
+ "version": "48.1.0-alpha.5",
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.4",
35
- "@ckeditor/ckeditor5-core": "48.1.0-alpha.4",
36
- "@ckeditor/ckeditor5-engine": "48.1.0-alpha.4",
37
- "@ckeditor/ckeditor5-paste-from-office": "48.1.0-alpha.4",
38
- "@ckeditor/ckeditor5-utils": "48.1.0-alpha.4"
34
+ "@ckeditor/ckeditor5-clipboard": "48.1.0-alpha.5",
35
+ "@ckeditor/ckeditor5-core": "48.1.0-alpha.5",
36
+ "@ckeditor/ckeditor5-engine": "48.1.0-alpha.5",
37
+ "@ckeditor/ckeditor5-paste-from-office": "48.1.0-alpha.5",
38
+ "@ckeditor/ckeditor5-utils": "48.1.0-alpha.5"
39
39
  },
40
40
  "files": [
41
41
  "dist",