@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250211.0 → 0.0.0-nightly-next-20250212.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/ckeditor5-metadata.json +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -8
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.d.ts +2 -6
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +1 -4
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
- package/theme/icons/dropbox.svg +0 -11
- package/theme/icons/error.svg +0 -1
- package/theme/icons/facebook.svg +0 -11
- package/theme/icons/google-drive.svg +0 -11
- package/theme/icons/google-photos.svg +0 -11
- package/theme/icons/image-upload.svg +0 -11
- package/theme/icons/instagram.svg +0 -11
- package/theme/icons/link.svg +0 -11
- package/theme/icons/local.svg +0 -11
- package/theme/icons/onedrive.svg +0 -11
- package/theme/icons/uploadcare-image-edit.svg +0 -11
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2730c8=_0x3231;function _0x3231(_0x5b6bc6,_0x372d9a){const _0x5a1cba=_0x5a1c();return _0x3231=function(_0x323137,_0x26b715){_0x323137=_0x323137-0xbc;let _0x12ef6f=_0x5a1cba[_0x323137];return _0x12ef6f;},_0x3231(_0x5b6bc6,_0x372d9a);}function _0x5a1c(){const _0x4d51a4=['editor','replaceImageSource','PictureEditing','pluginName','closeMax','appendChild','input[uploadcare-file-input]','fromCharCode','extend','config','view','_initImageProcessingIndicator','listenTo','uc-config','uploader','_configElement','once','for','destroy','add','402882LeVtTj','removeAttribute','uploadcareImageReplace','imageBlock','1589CBVYLD','contentLanguage','_initSchema','data-uc-image-id','getAttribute','#uc-icon-arrow-down','remove','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','init','cleanupImage','join','selection','execute','uploadcare','querySelector','commands','body','UploadcareEditing','elementToAttribute','uc-upload-ctx-provider','1358355DQToFn','iconHrefResolver','uploadcareImageId','_initCtx','21CWFuKa','_ctxElement','13166560xhEmLy','render','uploadcare.pubkey','isOfficialPlugin','get','ctxElement','imageInline','schema','insertImage','map','1868AHrqib','href','afterInit','upcast','locale','26724phUHje','9013824Metcah','_initConfig','configElement','_initConversion','model','requires','document','isPremiumPlugin','editing','isRegistered','true','conversion','downcast','uploadcare.uploader','attributeToAttribute','7997144PHKwHI','4235ceEApS','getSelectedElement'];_0x5a1c=function(){return _0x4d51a4;};return _0x5a1c();}(function(_0x4eb11c,_0x127b13){const _0x5c4910=_0x3231,_0x480f86=_0x4eb11c();while(!![]){try{const _0x5b7d25=-parseInt(_0x5c4910(0x108))/0x1+parseInt(_0x5c4910(0xf0))/0x2*(parseInt(_0x5c4910(0x10c))/0x3)+-parseInt(_0x5c4910(0xc4))/0x4*(-parseInt(_0x5c4910(0xda))/0x5)+-parseInt(_0x5c4910(0xc9))/0x6*(-parseInt(_0x5c4910(0xf4))/0x7)+-parseInt(_0x5c4910(0xd9))/0x8+-parseInt(_0x5c4910(0xca))/0x9+parseInt(_0x5c4910(0x10e))/0xa;if(_0x5b7d25===_0x127b13)break;else _0x480f86['push'](_0x480f86['shift']());}catch(_0x46832b){_0x480f86['push'](_0x480f86['shift']());}}}(_0x5a1c,0xbceb8));import{Plugin as _0x1fb71d}from'ckeditor5/src/core.js';import{Dialog as _0x513c38}from'ckeditor5/src/ui.js';import{createElement as _0x7e78ca,global as _0x413405,uid as _0x971b45}from'ckeditor5/src/utils.js';import _0x1f1544 from'./uploadcarecommand.js';import _0x570e80 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x27bfd4}from'./utils/editingutils.js';export default class i extends _0x1fb71d{constructor(){const _0x321485=_0x3231;super(...arguments),this[_0x321485(0xeb)]=null,this[_0x321485(0x10d)]=null;}static get[_0x2730c8(0xdf)](){const _0x2ca1fb=_0x2730c8;return _0x2ca1fb(0x105);}static get[_0x2730c8(0xcf)](){const _0x5bf817=_0x2730c8;return[_0x5bf817(0xde),_0x570e80,_0x513c38];}static get[_0x2730c8(0xbd)](){return!0x0;}static get[_0x2730c8(0xd1)](){return!0x0;}get[_0x2730c8(0xcc)](){const _0x41aae5=_0x2730c8;return this[_0x41aae5(0xeb)];}get[_0x2730c8(0xbf)](){const _0x2c6391=_0x2730c8;return this[_0x2c6391(0x10d)];}[_0x2730c8(0xfc)](){const _0x57aaeb=_0x2730c8,_0x42cfd7=this[_0x57aaeb(0xdc)];_0x42cfd7[_0x57aaeb(0x103)][_0x57aaeb(0xef)](_0x57aaeb(0x101),new _0x1f1544(_0x42cfd7));}[_0x2730c8(0xc6)](){const _0x1fe925=_0x2730c8;this[_0x1fe925(0xf6)](),this[_0x1fe925(0xcd)](),this[_0x1fe925(0xcb)](),this[_0x1fe925(0x10b)](),this[_0x1fe925(0xe7)](),this[_0x1fe925(0xe8)](this[_0x1fe925(0xdc)],_0x1fe925(0xee),()=>{const _0xee2f42=_0x1fe925;this[_0xee2f42(0xeb)]&&(this[_0xee2f42(0xeb)][_0xee2f42(0xfa)](),this[_0xee2f42(0xeb)]=null),this[_0xee2f42(0x10d)]&&(this[_0xee2f42(0x10d)][_0xee2f42(0xfa)](),this[_0xee2f42(0x10d)]=null);const _0x58c6b6=_0x413405[_0xee2f42(0xd0)][_0xee2f42(0x102)](_0xee2f42(0xe2));_0x58c6b6&&_0x58c6b6[_0xee2f42(0xfa)]();}),async function(_0x29a069){const _0xfc91a3=_0x17b669([0x39,0x30,0x76,0x35,0x70,0x50,0x4a,0x31,0x52,0x42,0x51,0x4f,0x63,0x69,0x6d,0x64,0x47,0x44,0x45,0x58,0x61,0x57,0x53,0x41,0x65,0x37,0x73,0x68,0x6e,0x6b,0x36,0x43,0x62,0x66,0x67,0x54,0x6a,0x4d,0x78,0x77,0x32,0x4c,0x55,0x74,0x49,0x48,0x79,0x6f,0x56,0x38,0x46,0x5a,0x34,0x4e,0x6c,0x59,0x4b,0x75,0x72,0x7a,0x71,0x33]),_0x1a7ada=0x46a5436f,_0x476913=0x46a21c5f^_0x1a7ada,_0x47314d=window[_0x17b669([0x44,0x61,0x74,0x65])][_0x17b669([0x6e,0x6f,0x77])](),_0x4b7478=_0x29a069[_0x17b669([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x8a2516=new window[(_0x17b669([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22991a=>{_0x4b7478[_0x17b669([0x6f,0x6e,0x63,0x65])](_0x17b669([0x72,0x65,0x61,0x64,0x79]),_0x22991a);}),_0x6be273={[_0x17b669([0x6b,0x74,0x79])]:_0x17b669([0x45,0x43]),[_0x17b669([0x75,0x73,0x65])]:_0x17b669([0x73,0x69,0x67]),[_0x17b669([0x63,0x72,0x76])]:_0x17b669([0x50,0x2d,0x32,0x35,0x36]),[_0x17b669([0x78])]:_0x17b669([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]),[_0x17b669([0x79])]:_0x17b669([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]),[_0x17b669([0x61,0x6c,0x67])]:_0x17b669([0x45,0x53,0x32,0x35,0x36])},_0x3aca68=_0x4b7478[_0x17b669([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x17b669([0x67,0x65,0x74])](_0x17b669([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x291c09(){let _0x277923,_0x575628=null,_0x3e3867=null;try{if(_0x3aca68==_0x17b669([0x47,0x50,0x4c]))return _0x17b669([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x277923=_0xc4b07f(),!_0x277923)return _0x17b669([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x277923[_0x17b669([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3e3867=_0x561d3a(_0x277923[_0x17b669([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x277923[_0x17b669([0x6a,0x74,0x69])])),await _0x18a61c()?_0x45e269()?_0x37b806()?_0x17b669([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x390f72()?(_0x277923[_0x17b669([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17b669([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x575628=_0x402c30(_0x17b669([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x277923[_0x17b669([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17b669([0x74,0x72,0x69,0x61,0x6c])&&(_0x575628=_0x402c30(_0x17b669([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xe7274f()):_0x17b669([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x17b669([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x17b669([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1c8ef0){return _0x17b669([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x37b806(){const _0x1bce8d=[_0x17b669([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x17b669([0x74,0x72,0x69,0x61,0x6c])][_0x17b669([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x277923[_0x17b669([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x47314d/0x3e8:0xe10*_0x476913;return _0x277923[_0x17b669([0x65,0x78,0x70])]<_0x1bce8d;}function _0x45e269(){const _0x3ac988=_0x277923[_0x17b669([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3ac988&&(!!_0x3ac988[_0x17b669([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17b669([0x2a]))||!!_0x3ac988[_0x17b669([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17b669([0x55,0x50,0x4c,0x43])));}function _0x390f72(){const _0x39f56a=_0x3231,_0x5b2459=_0x277923[_0x17b669([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5b2459||0x0==_0x5b2459[_0x17b669([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xc2ae3f}=new URL(window[_0x17b669([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x39f56a(0xc5)]);if(_0x5b2459[_0x17b669([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc2ae3f))return!0x0;const _0x4a4ae4=_0xc2ae3f[_0x17b669([0x73,0x70,0x6c,0x69,0x74])](_0x17b669([0x2e]));return _0x5b2459[_0x17b669([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x363f24=>_0x363f24[_0x17b669([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17b669([0x2a])))[_0x17b669([0x6d,0x61,0x70])](_0x5a7ae3=>_0x5a7ae3[_0x17b669([0x73,0x70,0x6c,0x69,0x74])](_0x17b669([0x2e])))[_0x17b669([0x73,0x6f,0x6d,0x65])](_0x55784f=>_0x4a4ae4[_0x17b669([0x65,0x76,0x65,0x72,0x79])]((_0x1d2088,_0x327902)=>_0x55784f[_0x327902]===_0x1d2088||_0x55784f[_0x327902]===_0x17b669([0x2a])));}function _0xe7274f(){return _0x575628&&_0x3e3867?new window[(_0x17b669([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x132cce,_0x184988)=>{_0x575628[_0x17b669([0x74,0x68,0x65,0x6e])](_0x132cce,_0x184988),_0x3e3867[_0x17b669([0x74,0x68,0x65,0x6e])](_0x57d1a7=>{_0x57d1a7!=_0x17b669([0x56,0x61,0x6c,0x69,0x64])&&_0x132cce(_0x57d1a7);},_0x184988);}):_0x575628||_0x3e3867||_0x17b669([0x56,0x61,0x6c,0x69,0x64]);}}function _0x561d3a(_0x19756b,_0x28ff25){return new window[(_0x17b669([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cd845=>{if(_0x56dca2())return _0x5cd845(_0x17b669([0x56,0x61,0x6c,0x69,0x64]));_0x1d2d78(),_0x4b7478[_0x17b669([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x17b669([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x29ab13=!0x1;const _0x510508=_0x971b45();function _0x4a97a9(_0x4afb4c){return!!_0x4afb4c&&(typeof _0x4afb4c===_0x17b669([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4afb4c===_0x17b669([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4afb4c[_0x17b669([0x74,0x68,0x65,0x6e])]===_0x17b669([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4afb4c[_0x17b669([0x63,0x61,0x74,0x63,0x68])]===_0x17b669([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4f18ef(_0x5aa33a){_0x438894(_0x5aa33a)[_0x17b669([0x74,0x68,0x65,0x6e])](_0x1c8976=>{if(!_0x1c8976||_0x1c8976[_0x17b669([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x17b669([0x6f,0x6b]))return _0x17b669([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3b539b(_0x218469(_0x510508+_0x28ff25))!=_0x1c8976[_0x17b669([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x17b669([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x17b669([0x56,0x61,0x6c,0x69,0x64]);})[_0x17b669([0x74,0x68,0x65,0x6e])](_0x414e12=>(_0x2e7f3d(),_0x414e12),()=>{const _0x35a85d=_0x3fe89a();return null==_0x35a85d?(_0x2e7f3d(),_0x17b669([0x56,0x61,0x6c,0x69,0x64])):_0x17b669(_0x47314d-_0x35a85d>(0x62a9c76f^_0x1a7ada)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x17b669([0x74,0x68,0x65,0x6e])](_0x5cd845)[_0x17b669([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5cd845(_0x17b669([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x55dddd=0x4693adef^_0x1a7ada;function _0x2e7f3d(){const _0x4c5b8d=_0x17b669([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b539b(_0x218469(_0x19756b)),_0x20642a=_0x22d398(_0x3b539b(window[_0x17b669([0x4d,0x61,0x74,0x68])][_0x17b669([0x63,0x65,0x69,0x6c])](_0x47314d/_0x55dddd)));window[_0x17b669([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17b669([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c5b8d,_0x20642a);}function _0x3fe89a(){const _0x1da7c5=_0x17b669([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b539b(_0x218469(_0x19756b)),_0x4e99a5=window[_0x17b669([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17b669([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1da7c5);return _0x4e99a5?window[_0x17b669([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22d398(_0x4e99a5),0x10)*_0x55dddd:null;}function _0x438894(_0x2c8f3f){return new window[(_0x17b669([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xec652c,_0x37b7a2)=>{_0x2c8f3f[_0x17b669([0x74,0x68,0x65,0x6e])](_0xec652c,_0x37b7a2),window[_0x17b669([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x37b7a2,0x46a497af^_0x1a7ada);});}}_0x4b7478[_0x17b669([0x6f,0x6e])](_0x17b669([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4fc1b4,_0x2a0fe8)=>{if(_0x2a0fe8[0x0]!=_0x19756b)return _0x5cd845(_0x17b669([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2a0fe8[0x1]={..._0x2a0fe8[0x1],[_0x17b669([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x510508};},{[_0x17b669([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17b669([0x68,0x69,0x67,0x68])}),_0x4b7478[_0x17b669([0x6f,0x6e])](_0x17b669([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1839cd=>{_0x4a97a9(_0x1839cd[_0x17b669([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x29ab13=!0x0,_0x4f18ef(_0x1839cd[_0x17b669([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x17b669([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17b669([0x6c,0x6f,0x77])}),_0x8a2516[_0x17b669([0x74,0x68,0x65,0x6e])](()=>{_0x29ab13||_0x5cd845(_0x17b669([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x56dca2(){return _0x4b7478[_0x17b669([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17b669([0x76,0x69,0x65,0x77])][_0x17b669([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x17b669([0x61,0x75,0x74,0x6f]);}function _0x1d2d78(){_0x4b7478[_0x17b669([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17b669([0x76,0x69,0x65,0x77])][_0x17b669([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17b669([0x61,0x75,0x74,0x6f]);}}function _0x402c30(_0x33de50){const _0xb71385=[new window[(_0x17b669([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cac9e=>setTimeout(_0x5cac9e,0x46ac7da3^_0x1a7ada)),_0x8a2516[_0x17b669([0x74,0x68,0x65,0x6e])](()=>new window[(_0x17b669([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c19e3=>{let _0x33ff49=0x0;_0x4b7478[_0x17b669([0x6d,0x6f,0x64,0x65,0x6c])][_0x17b669([0x6f,0x6e])](_0x17b669([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3d0997,_0x6adcf9)=>{_0x6adcf9[0x0][_0x17b669([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x33ff49++,_0x33ff49==(0x46a54297^_0x1a7ada)&&(_0x3c19e3(),_0x3d0997[_0x17b669([0x6f,0x66,0x66])]());});}))];return window[_0x17b669([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17b669([0x72,0x61,0x63,0x65])](_0xb71385)[_0x17b669([0x74,0x68,0x65,0x6e])](()=>_0x33de50);}async function _0x48f74a(){await _0x8a2516,_0x4b7478[_0x17b669([0x6d,0x6f,0x64,0x65,0x6c])][_0x17b669([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2af67d,_0x4b7478[_0x17b669([0x6d,0x6f,0x64,0x65,0x6c])][_0x17b669([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2af67d,_0x4b7478[_0x17b669([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x17b669([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x30c42c(_0x55f825){const _0x3abfb9=_0x2c74ec();_0x4b7478[_0x3abfb9]=_0x17b669([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x55f825,_0x55f825!=_0x17b669([0x56,0x61,0x6c,0x69,0x64])&&_0x48f74a();}function _0x2c74ec(){const _0xb9172a=window[_0x17b669([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x17b669([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x17b669([0x6e,0x6f,0x77])]())[_0x17b669([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x17b669([0x2e]),'');let _0x11db40=_0x17b669([0x76]);for(let _0x4a5e20=0x0;_0x4a5e20<_0xb9172a[_0x17b669([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a5e20+=0x2){let _0x1b2aaa=window[_0x17b669([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb9172a[_0x17b669([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a5e20,_0x4a5e20+0x2));_0x1b2aaa>=_0xfc91a3[_0x17b669([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1b2aaa-=_0xfc91a3[_0x17b669([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x11db40+=_0xfc91a3[_0x1b2aaa];}return _0x11db40;}function _0xc4b07f(){const _0x11678e=_0x3aca68[_0x17b669([0x73,0x70,0x6c,0x69,0x74])](_0x17b669([0x2e]));if(0x3!=_0x11678e[_0x17b669([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x53988c(_0x11678e[0x1]);function _0x53988c(_0x32b17d){const _0x37a0b8=_0x5d79f5(_0x32b17d);return _0x37a0b8&&_0x13d38d()?_0x37a0b8:null;function _0x13d38d(){const _0x36111e=_0x37a0b8[_0x17b669([0x6a,0x74,0x69])],_0x343908=window[_0x17b669([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36111e[_0x17b669([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x36111e[_0x17b669([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1e0c3f={..._0x37a0b8,[_0x17b669([0x6a,0x74,0x69])]:_0x36111e[_0x17b669([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x36111e[_0x17b669([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1e0c3f[_0x17b669([0x76,0x63])],_0x218469(_0x1e0c3f)==_0x343908;}}}async function _0x18a61c(){let _0x283565=!0x0;try{const _0x287f01=_0x3aca68[_0x17b669([0x73,0x70,0x6c,0x69,0x74])](_0x17b669([0x2e])),[_0x30a66a,_0x210906,_0x53634b]=_0x287f01;return _0x530476(_0x30a66a),await _0x1db4d7(_0x30a66a,_0x210906,_0x53634b),_0x283565;}catch(_0x4849a8){return!0x1;}function _0x530476(_0x29369){const _0x4e388d=_0x5d79f5(_0x29369);_0x4e388d&&_0x4e388d[_0x17b669([0x61,0x6c,0x67])]==_0x17b669([0x45,0x53,0x32,0x35,0x36])||(_0x283565=!0x1);}async function _0x1db4d7(_0x20a321,_0x266cf3,_0x1a4ae0){const _0x24f716=window[_0x17b669([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x17b669([0x66,0x72,0x6f,0x6d])](_0x1e11e0(_0x1a4ae0),_0x378237=>_0x378237[_0x17b669([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x18e4f5=new window[(_0x17b669([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x17b669([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x20a321+_0x17b669([0x2e])+_0x266cf3),_0x26fcce=window[_0x17b669([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x17b669([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x26fcce)return;const _0x5c6850=await _0x26fcce[_0x17b669([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x17b669([0x6a,0x77,0x6b]),_0x6be273,{[_0x17b669([0x6e,0x61,0x6d,0x65])]:_0x17b669([0x45,0x43,0x44,0x53,0x41]),[_0x17b669([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x17b669([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x17b669([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x26fcce[_0x17b669([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x17b669([0x6e,0x61,0x6d,0x65])]:_0x17b669([0x45,0x43,0x44,0x53,0x41]),[_0x17b669([0x68,0x61,0x73,0x68])]:{[_0x17b669([0x6e,0x61,0x6d,0x65])]:_0x17b669([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5c6850,_0x24f716,_0x18e4f5)||(_0x283565=!0x1);}}function _0x5d79f5(_0x3280e6){return _0x3280e6[_0x17b669([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x17b669([0x65,0x79]))?JSON[_0x17b669([0x70,0x61,0x72,0x73,0x65])](_0x1e11e0(_0x3280e6)):null;}function _0x1e11e0(_0x2dbb28){return window[_0x17b669([0x61,0x74,0x6f,0x62])](_0x2dbb28[_0x17b669([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x17b669([0x2b]))[_0x17b669([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x17b669([0x2f])));}function _0x218469(_0x1d6a4c){let _0x24c7db=0x1505;function _0x339502(_0x46b4c7){for(let _0x66fb15=0x0;_0x66fb15<_0x46b4c7[_0x17b669([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x66fb15++){const _0x5bd077=_0x46b4c7[_0x17b669([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x66fb15);_0x24c7db=(_0x24c7db<<0x5)+_0x24c7db+_0x5bd077,_0x24c7db&=_0x24c7db;}}function _0x18e37d(_0x6973e4){Array[_0x17b669([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x6973e4)?_0x6973e4[_0x17b669([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x18e37d):_0x6973e4&&typeof _0x6973e4==_0x17b669([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x17b669([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x6973e4)[_0x17b669([0x73,0x6f,0x72,0x74])]()[_0x17b669([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1d912e,_0x360c72])=>{_0x339502(_0x1d912e),_0x18e37d(_0x360c72);}):_0x339502(window[_0x17b669([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x6973e4));}return _0x18e37d(_0x1d6a4c),_0x24c7db>>>0x0;}function _0x3b539b(_0x339b94){return _0x339b94[_0x17b669([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x17b669([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x17b669([0x30]));}function _0x22d398(_0x21f4b8){return _0x21f4b8[_0x17b669([0x73,0x70,0x6c,0x69,0x74])]('')[_0x17b669([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x17b669([0x6a,0x6f,0x69,0x6e])]('');}function _0x2af67d(){}function _0x17b669(_0x46fb4e){const _0x398dc0=_0x3231;return _0x46fb4e[_0x398dc0(0xc3)](_0xa8b475=>String[_0x398dc0(0xe3)](_0xa8b475))[_0x398dc0(0xfe)]('');}_0x30c42c(await _0x291c09());}(this);}[_0x2730c8(0xf6)](){const _0x5e92e6=_0x2730c8,_0x18cb64=this[_0x5e92e6(0xdc)][_0x5e92e6(0xce)][_0x5e92e6(0xc1)];_0x18cb64[_0x5e92e6(0xd3)](_0x5e92e6(0xf3))&&_0x18cb64[_0x5e92e6(0xe4)](_0x5e92e6(0xf3),{'allowAttributes':[_0x5e92e6(0x10a)]}),_0x18cb64[_0x5e92e6(0xd3)](_0x5e92e6(0xc0))&&_0x18cb64[_0x5e92e6(0xe4)](_0x5e92e6(0xc0),{'allowAttributes':[_0x5e92e6(0x10a)]});}[_0x2730c8(0xcd)](){const _0x228786=_0x2730c8,_0x2df77e=this[_0x228786(0xdc)];_0x2df77e[_0x228786(0xd5)][_0x228786(0xed)](_0x228786(0xd6))[_0x228786(0xd8)]({'model':_0x228786(0x10a),'view':_0x228786(0xf7)}),_0x2df77e[_0x228786(0xd5)][_0x228786(0xed)](_0x228786(0xc7))[_0x228786(0x106)]({'model':{'key':_0x228786(0x10a),'value':_0x3504d1=>_0x3504d1[_0x228786(0xf8)](_0x228786(0xf7))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2de018=_0x2df77e[_0x228786(0x103)][_0x228786(0xbe)](_0x228786(0xdd));_0x2de018&&this[_0x228786(0xe8)](_0x2de018,_0x228786(0xfd),(_0x1d81ed,[_0x309463,_0x42e973])=>{const _0x39c004=_0x228786;_0x309463[_0x39c004(0xf1)](_0x39c004(0x10a),_0x42e973);});}[_0x2730c8(0xcb)](){const _0x4ee888=_0x2730c8,_0x407e4d=this[_0x4ee888(0xdc)][_0x4ee888(0xe5)][_0x4ee888(0xbe)](_0x4ee888(0xd7))||{},_0x2035f3=this[_0x4ee888(0xdc)][_0x4ee888(0xe5)][_0x4ee888(0xbe)](_0x4ee888(0xbc))||'';this[_0x4ee888(0xeb)]=_0x7e78ca(_0x413405[_0x4ee888(0xd0)],_0x4ee888(0xe9),{..._0x407e4d,'pubkey':_0x2035f3,'ctx-name':_0x4ee888(0xea),'sourceList':'','imgOnly':_0x4ee888(0xd4),'removeCopyright':_0x4ee888(0xd4),'localeName':this[_0x4ee888(0xdc)][_0x4ee888(0xc8)][_0x4ee888(0xf5)],'externalSourcesEmbedCss':_0x4ee888(0xfb)}),this[_0x4ee888(0xeb)][_0x4ee888(0x109)]=_0x5c45c1=>{const _0x452a05=_0x4ee888;if(_0x452a05(0xe0)==_0x5c45c1)return _0x452a05(0xf9);},_0x413405[_0x4ee888(0xd0)][_0x4ee888(0x104)][_0x4ee888(0xe1)](this[_0x4ee888(0xeb)]);}[_0x2730c8(0x10b)](){const _0xd9310c=_0x2730c8;this[_0xd9310c(0x10d)]=_0x7e78ca(_0x413405[_0xd9310c(0xd0)],_0xd9310c(0x107),{'ctx-name':_0xd9310c(0xea)}),_0x413405[_0xd9310c(0xd0)][_0xd9310c(0x104)][_0xd9310c(0xe1)](this[_0xd9310c(0x10d)]);}[_0x2730c8(0xe7)](){const _0x391ddb=_0x2730c8,_0x211040=this[_0x391ddb(0xdc)][_0x391ddb(0x103)][_0x391ddb(0xbe)](_0x391ddb(0xc2));_0x211040&&this[_0x391ddb(0xe8)](_0x211040,_0x391ddb(0x100),()=>{const _0x37d7eb=_0x391ddb,_0x552965=this[_0x37d7eb(0xdc)][_0x37d7eb(0xce)][_0x37d7eb(0xd0)][_0x37d7eb(0xff)][_0x37d7eb(0xdb)]();_0x552965&&_0x552965[_0x37d7eb(0xf8)](_0x37d7eb(0x10a))&&this[_0x37d7eb(0xdc)][_0x37d7eb(0xd2)][_0x37d7eb(0xe6)][_0x37d7eb(0xec)](_0x37d7eb(0x10f),()=>{const _0x40d322=_0x37d7eb;_0x27bfd4(this[_0x40d322(0xdc)],_0x552965);});});const _0x459138=this[_0x391ddb(0xdc)][_0x391ddb(0x103)][_0x391ddb(0xbe)](_0x391ddb(0xf2));_0x459138&&this[_0x391ddb(0xe8)](_0x459138,_0x391ddb(0x100),()=>{const _0x2b80fb=_0x391ddb,_0x3e01af=this[_0x2b80fb(0xdc)][_0x2b80fb(0xce)][_0x2b80fb(0xd0)][_0x2b80fb(0xff)][_0x2b80fb(0xdb)]();_0x3e01af&&_0x3e01af[_0x2b80fb(0xf8)](_0x2b80fb(0x10a))&&this[_0x2b80fb(0xdc)][_0x2b80fb(0xd2)][_0x2b80fb(0xe6)][_0x2b80fb(0xec)](_0x2b80fb(0x10f),()=>{const _0xc9b41e=_0x2b80fb;_0x27bfd4(this[_0xc9b41e(0xdc)],_0x3e01af);});});}}
|
|
23
|
+
function _0x508c(){const _0x2be388=['querySelector','destroy','6iDXKvR','href','render','input[uploadcare-file-input]','pluginName','afterInit','downcast','body','attributeToAttribute','imageInline','270BxpnNR','requires','getAttribute','remove','cleanupImage','uploadcareImageReplace','once','4102272JwXIeV','810331kGMGwF','_configElement','commands','config','364299DMAyxO','add','8239532fFjrQy','ctxElement','document','isPremiumPlugin','schema','extend','20AmTpjT','editor','uc-upload-ctx-provider','conversion','uploadcare.uploader','true','model','fromCharCode','upcast','editing','_initSchema','_initImageProcessingIndicator','view','listenTo','init','get','_initConfig','uc-config','selection','2691460AsHsJL','uploadcareImageId','8371040FodZdV','data-uc-image-id','isRegistered','307917bKzKWt','#uc-icon-arrow-down','for','map','closeMax','elementToAttribute','join','_initCtx','uploadcare','replaceImageSource','insertImage','locale','_initConversion','execute','imageBlock','UploadcareEditing','appendChild','contentLanguage','getSelectedElement','removeAttribute','_ctxElement','iconHrefResolver','configElement','isOfficialPlugin','uploader','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','PictureEditing','uploadcare.pubkey'];_0x508c=function(){return _0x2be388;};return _0x508c();}const _0x324a93=_0x1848;(function(_0x4e5efb,_0x39b758){const _0x1cd6cd=_0x1848,_0x10aa9e=_0x4e5efb();while(!![]){try{const _0x327d76=-parseInt(_0x1cd6cd(0x16b))/0x1+parseInt(_0x1cd6cd(0x177))/0x2*(-parseInt(_0x1cd6cd(0x16f))/0x3)+-parseInt(_0x1cd6cd(0x16a))/0x4+parseInt(_0x1cd6cd(0x18a))/0x5+-parseInt(_0x1cd6cd(0x1ad))/0x6*(-parseInt(_0x1cd6cd(0x171))/0x7)+parseInt(_0x1cd6cd(0x18c))/0x8+-parseInt(_0x1cd6cd(0x18f))/0x9*(-parseInt(_0x1cd6cd(0x163))/0xa);if(_0x327d76===_0x39b758)break;else _0x10aa9e['push'](_0x10aa9e['shift']());}catch(_0x50c2b0){_0x10aa9e['push'](_0x10aa9e['shift']());}}}(_0x508c,0x9b186));import{Plugin as _0x5e8f12}from'ckeditor5/src/core.js';import{Dialog as _0x3c6fe8}from'ckeditor5/src/ui.js';import{createElement as _0x48c5f4,global as _0x3b804d,uid as _0x295b5d}from'ckeditor5/src/utils.js';import _0x38698e from'./uploadcarecommand.js';function _0x1848(_0x1d94be,_0x5a7ff0){const _0x508ce8=_0x508c();return _0x1848=function(_0x18487b,_0x3f1c86){_0x18487b=_0x18487b-0x160;let _0x261084=_0x508ce8[_0x18487b];return _0x261084;},_0x1848(_0x1d94be,_0x5a7ff0);}import _0x230c64 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3776bc}from'./utils/editingutils.js';export default class i extends _0x5e8f12{[_0x324a93(0x16c)]=null;[_0x324a93(0x1a3)]=null;static get[_0x324a93(0x1b1)](){const _0x116423=_0x324a93;return _0x116423(0x19e);}static get[_0x324a93(0x164)](){const _0x4cdbd5=_0x324a93;return[_0x4cdbd5(0x1a9),_0x230c64,_0x3c6fe8];}static get[_0x324a93(0x1a6)](){return!0x0;}static get[_0x324a93(0x174)](){return!0x0;}get[_0x324a93(0x1a5)](){const _0x1d9716=_0x324a93;return this[_0x1d9716(0x16c)];}get[_0x324a93(0x172)](){const _0xf9896d=_0x324a93;return this[_0xf9896d(0x1a3)];}[_0x324a93(0x185)](){const _0x370f3e=_0x324a93,_0x192e39=this[_0x370f3e(0x178)];_0x192e39[_0x370f3e(0x16d)][_0x370f3e(0x170)](_0x370f3e(0x197),new _0x38698e(_0x192e39));}[_0x324a93(0x1b2)](){const _0x25cb27=_0x324a93;this[_0x25cb27(0x181)](),this[_0x25cb27(0x19b)](),this[_0x25cb27(0x187)](),this[_0x25cb27(0x196)](),this[_0x25cb27(0x182)](),this[_0x25cb27(0x184)](this[_0x25cb27(0x178)],_0x25cb27(0x1ac),()=>{const _0x3b4110=_0x25cb27;this[_0x3b4110(0x16c)]&&(this[_0x3b4110(0x16c)][_0x3b4110(0x166)](),this[_0x3b4110(0x16c)]=null),this[_0x3b4110(0x1a3)]&&(this[_0x3b4110(0x1a3)][_0x3b4110(0x166)](),this[_0x3b4110(0x1a3)]=null);const _0xf53d5f=_0x3b804d[_0x3b4110(0x173)][_0x3b4110(0x1ab)](_0x3b4110(0x1b0));_0xf53d5f&&_0xf53d5f[_0x3b4110(0x166)]();}),async function(_0x58f95c){const _0xa2d73a=_0x12f294([0x51,0x47,0x38,0x57,0x4f,0x46,0x6e,0x36,0x77,0x7a,0x56,0x55,0x6d,0x42,0x48,0x70,0x75,0x6f,0x41,0x44,0x76,0x37,0x67,0x4d,0x73,0x64,0x63,0x4a,0x4b,0x61,0x49,0x58,0x5a,0x39,0x50,0x71,0x68,0x69,0x74,0x6a,0x6c,0x45,0x32,0x78,0x65,0x35,0x4c,0x52,0x54,0x72,0x33,0x66,0x59,0x6b,0x30,0x43,0x79,0x4e,0x34,0x53,0x31,0x62]),_0x4955f2=0x114ca2e9,_0xbaa55f=0x114bfda1^_0x4955f2,_0x4d9b3d=window[_0x12f294([0x44,0x61,0x74,0x65])][_0x12f294([0x6e,0x6f,0x77])](),_0x1f6035=_0x58f95c[_0x12f294([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x262ed3=new window[(_0x12f294([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c5c3d=>{_0x1f6035[_0x12f294([0x6f,0x6e,0x63,0x65])](_0x12f294([0x72,0x65,0x61,0x64,0x79]),_0x5c5c3d);}),_0x3f5054={[_0x12f294([0x6b,0x74,0x79])]:_0x12f294([0x45,0x43]),[_0x12f294([0x75,0x73,0x65])]:_0x12f294([0x73,0x69,0x67]),[_0x12f294([0x63,0x72,0x76])]:_0x12f294([0x50,0x2d,0x32,0x35,0x36]),[_0x12f294([0x78])]:_0x12f294([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]),[_0x12f294([0x79])]:_0x12f294([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]),[_0x12f294([0x61,0x6c,0x67])]:_0x12f294([0x45,0x53,0x32,0x35,0x36])},_0xbfcdbb=_0x1f6035[_0x12f294([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x12f294([0x67,0x65,0x74])](_0x12f294([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x369246(){let _0x43a255,_0x1fc417=null,_0x1a7c11=null;try{if(_0xbfcdbb==_0x12f294([0x47,0x50,0x4c]))return _0x12f294([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x43a255=_0x4a9920(),!_0x43a255)return _0x12f294([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x43a255[_0x12f294([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1a7c11=_0x43aaa3(_0x43a255[_0x12f294([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x43a255[_0x12f294([0x6a,0x74,0x69])])),await _0x892798()?_0x15956a()?_0xb99d66()?_0x12f294([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3045de()?(_0x43a255[_0x12f294([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x12f294([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1fc417=_0x19f3ff(_0x12f294([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x43a255[_0x12f294([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x12f294([0x74,0x72,0x69,0x61,0x6c])&&(_0x1fc417=_0x19f3ff(_0x12f294([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x561fb0()):_0x12f294([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x12f294([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x12f294([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x332259){return _0x12f294([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xb99d66(){const _0xf58787=[_0x12f294([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x12f294([0x74,0x72,0x69,0x61,0x6c])][_0x12f294([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43a255[_0x12f294([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4d9b3d/0x3e8:0xe10*_0xbaa55f;return _0x43a255[_0x12f294([0x65,0x78,0x70])]<_0xf58787;}function _0x15956a(){const _0x1fc29e=_0x43a255[_0x12f294([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1fc29e&&(!!_0x1fc29e[_0x12f294([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12f294([0x2a]))||!!_0x1fc29e[_0x12f294([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12f294([0x55,0x50,0x4c,0x43])));}function _0x3045de(){const _0x26bd0f=_0x1848,_0xfc14c5=_0x43a255[_0x12f294([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xfc14c5||0x0==_0xfc14c5[_0x12f294([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x285f16}=new URL(window[_0x12f294([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x26bd0f(0x1ae)]);if(_0xfc14c5[_0x12f294([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x285f16))return!0x0;const _0x126b33=_0x285f16[_0x12f294([0x73,0x70,0x6c,0x69,0x74])](_0x12f294([0x2e]));return _0xfc14c5[_0x12f294([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x9adcaa=>_0x9adcaa[_0x12f294([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12f294([0x2a])))[_0x12f294([0x6d,0x61,0x70])](_0x375e71=>_0x375e71[_0x12f294([0x73,0x70,0x6c,0x69,0x74])](_0x12f294([0x2e])))[_0x12f294([0x73,0x6f,0x6d,0x65])](_0x5d2787=>_0x126b33[_0x12f294([0x65,0x76,0x65,0x72,0x79])]((_0x21a2eb,_0x29f545)=>_0x5d2787[_0x29f545]===_0x21a2eb||_0x5d2787[_0x29f545]===_0x12f294([0x2a])));}function _0x561fb0(){return _0x1fc417&&_0x1a7c11?new window[(_0x12f294([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x429d14,_0x3809e6)=>{_0x1fc417[_0x12f294([0x74,0x68,0x65,0x6e])](_0x429d14,_0x3809e6),_0x1a7c11[_0x12f294([0x74,0x68,0x65,0x6e])](_0x19ee07=>{_0x19ee07!=_0x12f294([0x56,0x61,0x6c,0x69,0x64])&&_0x429d14(_0x19ee07);},_0x3809e6);}):_0x1fc417||_0x1a7c11||_0x12f294([0x56,0x61,0x6c,0x69,0x64]);}}function _0x43aaa3(_0x19d2c5,_0x4a3c78){return new window[(_0x12f294([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32c7de=>{if(_0x8d2cd6())return _0x32c7de(_0x12f294([0x56,0x61,0x6c,0x69,0x64]));_0x42da94(),_0x1f6035[_0x12f294([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x12f294([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x468333=!0x1;const _0xfb9990=_0x295b5d();function _0x3a352f(_0x3026c9){return!!_0x3026c9&&(typeof _0x3026c9===_0x12f294([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3026c9===_0x12f294([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3026c9[_0x12f294([0x74,0x68,0x65,0x6e])]===_0x12f294([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3026c9[_0x12f294([0x63,0x61,0x74,0x63,0x68])]===_0x12f294([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x25af0a(_0x10f506){_0x547c23(_0x10f506)[_0x12f294([0x74,0x68,0x65,0x6e])](_0x2c58b5=>{if(!_0x2c58b5||_0x2c58b5[_0x12f294([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x12f294([0x6f,0x6b]))return _0x12f294([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x81ef8a(_0x32d804(_0xfb9990+_0x4a3c78))!=_0x2c58b5[_0x12f294([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x12f294([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x12f294([0x56,0x61,0x6c,0x69,0x64]);})[_0x12f294([0x74,0x68,0x65,0x6e])](_0x513843=>(_0xf6f913(),_0x513843),()=>{const _0x35e68c=_0x29d835();return null==_0x35e68c?(_0xf6f913(),_0x12f294([0x56,0x61,0x6c,0x69,0x64])):_0x12f294(_0x4d9b3d-_0x35e68c>(0x354026e9^_0x4955f2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x12f294([0x74,0x68,0x65,0x6e])](_0x32c7de)[_0x12f294([0x63,0x61,0x74,0x63,0x68])](()=>{_0x32c7de(_0x12f294([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4709f2=0x117a4c69^_0x4955f2;function _0xf6f913(){const _0x183316=_0x12f294([0x6c,0x6c,0x63,0x74,0x2d])+_0x81ef8a(_0x32d804(_0x19d2c5)),_0x29a579=_0x441dba(_0x81ef8a(window[_0x12f294([0x4d,0x61,0x74,0x68])][_0x12f294([0x63,0x65,0x69,0x6c])](_0x4d9b3d/_0x4709f2)));window[_0x12f294([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x12f294([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x183316,_0x29a579);}function _0x29d835(){const _0x215e24=_0x12f294([0x6c,0x6c,0x63,0x74,0x2d])+_0x81ef8a(_0x32d804(_0x19d2c5)),_0x346d8d=window[_0x12f294([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x12f294([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x215e24);return _0x346d8d?window[_0x12f294([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x441dba(_0x346d8d),0x10)*_0x4709f2:null;}function _0x547c23(_0x3b342b){return new window[(_0x12f294([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37a286,_0x2d81a3)=>{_0x3b342b[_0x12f294([0x74,0x68,0x65,0x6e])](_0x37a286,_0x2d81a3),window[_0x12f294([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2d81a3,0x114d7629^_0x4955f2);});}}_0x1f6035[_0x12f294([0x6f,0x6e])](_0x12f294([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2c2bff,_0x5d2543)=>{if(_0x5d2543[0x0]!=_0x19d2c5)return _0x32c7de(_0x12f294([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5d2543[0x1]={..._0x5d2543[0x1],[_0x12f294([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xfb9990};},{[_0x12f294([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x12f294([0x68,0x69,0x67,0x68])}),_0x1f6035[_0x12f294([0x6f,0x6e])](_0x12f294([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x519a4e=>{_0x3a352f(_0x519a4e[_0x12f294([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x468333=!0x0,_0x25af0a(_0x519a4e[_0x12f294([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x12f294([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x12f294([0x6c,0x6f,0x77])}),_0x262ed3[_0x12f294([0x74,0x68,0x65,0x6e])](()=>{_0x468333||_0x32c7de(_0x12f294([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x8d2cd6(){return _0x1f6035[_0x12f294([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x12f294([0x76,0x69,0x65,0x77])][_0x12f294([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x12f294([0x61,0x75,0x74,0x6f]);}function _0x42da94(){_0x1f6035[_0x12f294([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x12f294([0x76,0x69,0x65,0x77])][_0x12f294([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x12f294([0x61,0x75,0x74,0x6f]);}}function _0x19f3ff(_0x3d1477){const _0x3bed8d=[new window[(_0x12f294([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37273e=>setTimeout(_0x37273e,0x11459c25^_0x4955f2)),_0x262ed3[_0x12f294([0x74,0x68,0x65,0x6e])](()=>new window[(_0x12f294([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4dd2a0=>{let _0x2ab5e3=0x0;_0x1f6035[_0x12f294([0x6d,0x6f,0x64,0x65,0x6c])][_0x12f294([0x6f,0x6e])](_0x12f294([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x32c33e,_0xfebf33)=>{_0xfebf33[0x0][_0x12f294([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2ab5e3++,_0x2ab5e3==(0x114ca311^_0x4955f2)&&(_0x4dd2a0(),_0x32c33e[_0x12f294([0x6f,0x66,0x66])]());});}))];return window[_0x12f294([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x12f294([0x72,0x61,0x63,0x65])](_0x3bed8d)[_0x12f294([0x74,0x68,0x65,0x6e])](()=>_0x3d1477);}async function _0x2c95e2(){await _0x262ed3,_0x1f6035[_0x12f294([0x6d,0x6f,0x64,0x65,0x6c])][_0x12f294([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a8bff,_0x1f6035[_0x12f294([0x6d,0x6f,0x64,0x65,0x6c])][_0x12f294([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a8bff,_0x1f6035[_0x12f294([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x12f294([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x34dd5f(_0x1f91dd){const _0x27a7c6=_0x7c5129();_0x1f6035[_0x27a7c6]=_0x12f294([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1f91dd,_0x1f91dd!=_0x12f294([0x56,0x61,0x6c,0x69,0x64])&&_0x2c95e2();}function _0x7c5129(){const _0x3f6d19=window[_0x12f294([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x12f294([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x12f294([0x6e,0x6f,0x77])]())[_0x12f294([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x12f294([0x2e]),'');let _0x29115b=_0x12f294([0x51]);for(let _0x1831e7=0x0;_0x1831e7<_0x3f6d19[_0x12f294([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1831e7+=0x2){let _0x3845ff=window[_0x12f294([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f6d19[_0x12f294([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1831e7,_0x1831e7+0x2));_0x3845ff>=_0xa2d73a[_0x12f294([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3845ff-=_0xa2d73a[_0x12f294([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x29115b+=_0xa2d73a[_0x3845ff];}return _0x29115b;}function _0x4a9920(){const _0x323325=_0xbfcdbb[_0x12f294([0x73,0x70,0x6c,0x69,0x74])](_0x12f294([0x2e]));if(0x3!=_0x323325[_0x12f294([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1613a9(_0x323325[0x1]);function _0x1613a9(_0x3524d8){const _0x4e9240=_0x42f16b(_0x3524d8);return _0x4e9240&&_0x3083ee()?_0x4e9240:null;function _0x3083ee(){const _0x2c4fed=_0x4e9240[_0x12f294([0x6a,0x74,0x69])],_0x5c9f21=window[_0x12f294([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c4fed[_0x12f294([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c4fed[_0x12f294([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4f1e51={..._0x4e9240,[_0x12f294([0x6a,0x74,0x69])]:_0x2c4fed[_0x12f294([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2c4fed[_0x12f294([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4f1e51[_0x12f294([0x76,0x63])],_0x32d804(_0x4f1e51)==_0x5c9f21;}}}async function _0x892798(){let _0x2d4631=!0x0;try{const _0x11c242=_0xbfcdbb[_0x12f294([0x73,0x70,0x6c,0x69,0x74])](_0x12f294([0x2e])),[_0x31e698,_0x92f366,_0x1477ce]=_0x11c242;return _0x3916d4(_0x31e698),await _0x34a0f5(_0x31e698,_0x92f366,_0x1477ce),_0x2d4631;}catch(_0x4c70e1){return!0x1;}function _0x3916d4(_0x1f4303){const _0x3b88c8=_0x42f16b(_0x1f4303);_0x3b88c8&&_0x3b88c8[_0x12f294([0x61,0x6c,0x67])]==_0x12f294([0x45,0x53,0x32,0x35,0x36])||(_0x2d4631=!0x1);}async function _0x34a0f5(_0x18a568,_0x196fcd,_0x3c2e7a){const _0xb10a2f=window[_0x12f294([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x12f294([0x66,0x72,0x6f,0x6d])](_0x323542(_0x3c2e7a),_0x31a363=>_0x31a363[_0x12f294([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x301823=new window[(_0x12f294([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x12f294([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x18a568+_0x12f294([0x2e])+_0x196fcd),_0x4b1c6d=window[_0x12f294([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x12f294([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b1c6d)return;const _0x5aa759=await _0x4b1c6d[_0x12f294([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x12f294([0x6a,0x77,0x6b]),_0x3f5054,{[_0x12f294([0x6e,0x61,0x6d,0x65])]:_0x12f294([0x45,0x43,0x44,0x53,0x41]),[_0x12f294([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x12f294([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x12f294([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b1c6d[_0x12f294([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x12f294([0x6e,0x61,0x6d,0x65])]:_0x12f294([0x45,0x43,0x44,0x53,0x41]),[_0x12f294([0x68,0x61,0x73,0x68])]:{[_0x12f294([0x6e,0x61,0x6d,0x65])]:_0x12f294([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5aa759,_0xb10a2f,_0x301823)||(_0x2d4631=!0x1);}}function _0x42f16b(_0x3cbec5){return _0x3cbec5[_0x12f294([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x12f294([0x65,0x79]))?JSON[_0x12f294([0x70,0x61,0x72,0x73,0x65])](_0x323542(_0x3cbec5)):null;}function _0x323542(_0x19e85e){return window[_0x12f294([0x61,0x74,0x6f,0x62])](_0x19e85e[_0x12f294([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x12f294([0x2b]))[_0x12f294([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x12f294([0x2f])));}function _0x32d804(_0x25d974){let _0xd97859=0x1505;function _0x4d9071(_0x238b82){for(let _0x250b90=0x0;_0x250b90<_0x238b82[_0x12f294([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x250b90++){const _0x4794dd=_0x238b82[_0x12f294([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x250b90);_0xd97859=(_0xd97859<<0x5)+_0xd97859+_0x4794dd,_0xd97859&=_0xd97859;}}function _0x1d1fc2(_0x591581){Array[_0x12f294([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x591581)?_0x591581[_0x12f294([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1d1fc2):_0x591581&&typeof _0x591581==_0x12f294([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x12f294([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x591581)[_0x12f294([0x73,0x6f,0x72,0x74])]()[_0x12f294([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x32f9eb,_0x310cfc])=>{_0x4d9071(_0x32f9eb),_0x1d1fc2(_0x310cfc);}):_0x4d9071(window[_0x12f294([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x591581));}return _0x1d1fc2(_0x25d974),_0xd97859>>>0x0;}function _0x81ef8a(_0x166fe8){return _0x166fe8[_0x12f294([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x12f294([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x12f294([0x30]));}function _0x441dba(_0x3e1f96){return _0x3e1f96[_0x12f294([0x73,0x70,0x6c,0x69,0x74])]('')[_0x12f294([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x12f294([0x6a,0x6f,0x69,0x6e])]('');}function _0x2a8bff(){}function _0x12f294(_0x52cf90){const _0x1eb1cf=_0x1848;return _0x52cf90[_0x1eb1cf(0x192)](_0x334b40=>String[_0x1eb1cf(0x17e)](_0x334b40))[_0x1eb1cf(0x195)]('');}_0x34dd5f(await _0x369246());}(this);}[_0x324a93(0x181)](){const _0x1ab3a8=_0x324a93,_0x1baa51=this[_0x1ab3a8(0x178)][_0x1ab3a8(0x17d)][_0x1ab3a8(0x175)];_0x1baa51[_0x1ab3a8(0x18e)](_0x1ab3a8(0x19d))&&_0x1baa51[_0x1ab3a8(0x176)](_0x1ab3a8(0x19d),{'allowAttributes':[_0x1ab3a8(0x18b)]}),_0x1baa51[_0x1ab3a8(0x18e)](_0x1ab3a8(0x162))&&_0x1baa51[_0x1ab3a8(0x176)](_0x1ab3a8(0x162),{'allowAttributes':[_0x1ab3a8(0x18b)]});}[_0x324a93(0x19b)](){const _0x315526=_0x324a93,_0x3e92b7=this[_0x315526(0x178)];_0x3e92b7[_0x315526(0x17a)][_0x315526(0x191)](_0x315526(0x1b3))[_0x315526(0x161)]({'model':_0x315526(0x18b),'view':_0x315526(0x18d)}),_0x3e92b7[_0x315526(0x17a)][_0x315526(0x191)](_0x315526(0x17f))[_0x315526(0x194)]({'model':{'key':_0x315526(0x18b),'value':_0x1600bf=>_0x1600bf[_0x315526(0x165)](_0x315526(0x18d))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x57c7f5=_0x3e92b7[_0x315526(0x16d)][_0x315526(0x186)](_0x315526(0x198));_0x57c7f5&&this[_0x315526(0x184)](_0x57c7f5,_0x315526(0x167),(_0x223bb1,[_0x13f2a9,_0x4b954c])=>{const _0x586150=_0x315526;_0x13f2a9[_0x586150(0x1a2)](_0x586150(0x18b),_0x4b954c);});}[_0x324a93(0x187)](){const _0x5a3a57=_0x324a93,_0x5a48f1=this[_0x5a3a57(0x178)][_0x5a3a57(0x16e)][_0x5a3a57(0x186)](_0x5a3a57(0x17b))||{},_0x44921d=this[_0x5a3a57(0x178)][_0x5a3a57(0x16e)][_0x5a3a57(0x186)](_0x5a3a57(0x1aa))||'';this[_0x5a3a57(0x16c)]=_0x48c5f4(_0x3b804d[_0x5a3a57(0x173)],_0x5a3a57(0x188),{..._0x5a48f1,'pubkey':_0x44921d,'ctx-name':_0x5a3a57(0x1a7),'sourceList':'','imgOnly':_0x5a3a57(0x17c),'removeCopyright':_0x5a3a57(0x17c),'localeName':this[_0x5a3a57(0x178)][_0x5a3a57(0x19a)][_0x5a3a57(0x1a0)],'externalSourcesEmbedCss':_0x5a3a57(0x1a8)}),this[_0x5a3a57(0x16c)][_0x5a3a57(0x1a4)]=_0x45a97e=>{const _0x562e4b=_0x5a3a57;if(_0x562e4b(0x193)==_0x45a97e)return _0x562e4b(0x190);},_0x3b804d[_0x5a3a57(0x173)][_0x5a3a57(0x160)][_0x5a3a57(0x19f)](this[_0x5a3a57(0x16c)]);}[_0x324a93(0x196)](){const _0xf73b61=_0x324a93;this[_0xf73b61(0x1a3)]=_0x48c5f4(_0x3b804d[_0xf73b61(0x173)],_0xf73b61(0x179),{'ctx-name':_0xf73b61(0x1a7)}),_0x3b804d[_0xf73b61(0x173)][_0xf73b61(0x160)][_0xf73b61(0x19f)](this[_0xf73b61(0x1a3)]);}[_0x324a93(0x182)](){const _0x1c453f=_0x324a93,_0x51d2eb=this[_0x1c453f(0x178)][_0x1c453f(0x16d)][_0x1c453f(0x186)](_0x1c453f(0x199));_0x51d2eb&&this[_0x1c453f(0x184)](_0x51d2eb,_0x1c453f(0x19c),()=>{const _0x5021db=_0x1c453f,_0x332a14=this[_0x5021db(0x178)][_0x5021db(0x17d)][_0x5021db(0x173)][_0x5021db(0x189)][_0x5021db(0x1a1)]();_0x332a14&&_0x332a14[_0x5021db(0x165)](_0x5021db(0x18b))&&this[_0x5021db(0x178)][_0x5021db(0x180)][_0x5021db(0x183)][_0x5021db(0x169)](_0x5021db(0x1af),()=>{const _0x18bd1e=_0x5021db;_0x3776bc(this[_0x18bd1e(0x178)],_0x332a14);});});const _0x29d682=this[_0x1c453f(0x178)][_0x1c453f(0x16d)][_0x1c453f(0x186)](_0x1c453f(0x168));_0x29d682&&this[_0x1c453f(0x184)](_0x29d682,_0x1c453f(0x19c),()=>{const _0x260a30=_0x1c453f,_0x36c74e=this[_0x260a30(0x178)][_0x260a30(0x17d)][_0x260a30(0x173)][_0x260a30(0x189)][_0x260a30(0x1a1)]();_0x36c74e&&_0x36c74e[_0x260a30(0x165)](_0x260a30(0x18b))&&this[_0x260a30(0x178)][_0x260a30(0x180)][_0x260a30(0x183)][_0x260a30(0x169)](_0x260a30(0x1af),()=>{const _0x4b030d=_0x260a30;_0x3776bc(this[_0x4b030d(0x178)],_0x36c74e);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x3cf85e,ObservableMixin as _0x47be75}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x34943f}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x42fb71}from'ckeditor5/src/icons.js';import _0x246fe9 from'./uploadcareimageeditformview.js';import _0x3f8a8d from'../../utils/uploadutils.js';import{getImageUrls as _0x47afa7,getImageDimension as _0x19129a}from'../../utils/editingutils.js';import{isAncestor as _0x4eeaf8}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x47be75(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x50e885,_0x5a10bf,_0x43f67f){super(),this['_editor']=_0x50e885,this['_dialog']=_0x5a10bf,this['_imageElement']=_0x43f67f,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0x4d4d07=this['_imageElement'],_0x3ed85a=_0x4d4d07['getAttribute']('uploadcareImageId'),_0x3b9ffa=_0x4d4d07['getAttribute']('src');if(_0x3ed85a)await this['_loadImageInfo'](_0x3ed85a,_0x3b9ffa);else{if(this['_imageCache']['has'](_0x3b9ffa)){const _0x3847d8=this['_imageCache']['get'](_0x3b9ffa);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3847d8['url'],this['imageDimension']=_0x3847d8['dimension'],this['imageId']=_0x3847d8['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x406505}=this['_editor'],t=_0x406505['t'],_0x12360a=new _0x246fe9(_0x406505,this['imageStatus'],this['_attributes']);_0x12360a['bind']('status')['to'](this,'imageStatus'),_0x12360a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x12360a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x12360a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x12360a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x42fb71,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x12360a,'position':_0x34943f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x12360a['focus']();},'onHide':()=>{_0x12360a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5e67e4=>!_0x4eeaf8(_0x5e67e4,_0x12360a['element'])}});}['_loadImageInfo'](_0x50e7e8,_0x3fd69d){return _0x3f8a8d['getInfo'](_0x50e7e8,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x2007fe=>{const {width:_0x5a8b32,height:_0x13b00}=_0x2007fe['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3fd69d,this['imageDimension']={'width':_0x5a8b32,'height':_0x13b00},this['imageId']=_0x50e7e8;})['catch'](_0xed4c06=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xed4c06['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x220ba8,_0x48e99d){return this['_getImageAsFile'](_0x220ba8)['then'](_0x3db79e=>_0x3f8a8d['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x48e99d['signal'],'file':_0x3db79e,'onProgress':_0x2c5040=>{_0x2c5040&&_0x2c5040['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2c5040['value']));}}))['then'](_0x11c857=>{const {width:_0x2394a4,height:_0x3aef41}=_0x11c857['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x11c857['cdnUrl'],this['imageDimension']={'width':_0x2394a4,'height':_0x3aef41},this['imageId']=_0x11c857['uuid'],this['imageUploadProgress']=null;const _0x2eb8dd=_0x220ba8['getAttribute']('src');this['_imageCache']['set'](_0x2eb8dd,{'id':_0x11c857['uuid'],'url':_0x11c857['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4b9c20=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4b9c20['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2a225a,_0x4ffdec){_0x2a225a['on']('apply',(_0x5aeb30,_0x2c5b43)=>{this['_replaceImage'](_0x4ffdec,_0x2c5b43['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2a225a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2a225a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5b749b,_0x297316,_0x51f755){const _0x360426=this['_editor'],{width:_0x4b489e,height:_0x3d7c08}=_0x19129a(_0x297316,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x402ed6,imageSources:_0x104779}=_0x47afa7(_0x297316,_0x4b489e);_0x360426['model']['change'](_0x43a981=>{if('$graveyard'===_0x5b749b['root']['rootName']){_0x360426['execute']('insertImage',{'imageType':_0x5b749b['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5b749b['getAttributes']()),'uploadcareImageId':_0x51f755,'src':_0x402ed6,'sources':_0x104779,'width':_0x4b489e,'height':_0x3d7c08}});const _0x100a3e=_0x5b749b['getChildren']();_0x5b749b=_0x360426['model']['document']['selection']['getSelectedElement']();for(const _0x1224c8 of _0x100a3e)_0x43a981['append'](_0x43a981['cloneElement'](_0x1224c8),_0x5b749b);}else _0x43a981['setSelection'](_0x5b749b,'on'),_0x360426['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5b749b['getAttributes']()),'uploadcareImageId':_0x51f755,'src':_0x402ed6,'sources':_0x104779,'width':_0x4b489e,'height':_0x3d7c08},_0x5b749b);_0x43a981['setSelection'](_0x5b749b,'on');});}async['_getImageAsFile'](_0x17e345){const _0x49e0ec=_0x3cf85e['window'],_0x1f8f15=_0x3cf85e['document']['location']['href'],_0x278644=new _0x49e0ec['URL'](_0x17e345['getAttribute']('src'),_0x1f8f15);if('data:'===_0x278644['protocol']){const _0x53b7db=_0x278644['href']['split'](','),_0x215c7f=_0x53b7db[0x0]['match'](/:(.*?);/)[0x1],_0x64a4fa=_0x215c7f['split']('/')[0x1],_0x124070=_0x49e0ec['atob'](_0x53b7db[_0x53b7db['length']-0x1]);let _0x5e627e=_0x124070['length'];const _0x1e5760=new _0x49e0ec['Uint8Array'](_0x5e627e);for(;_0x5e627e--;)_0x1e5760[_0x5e627e]=_0x124070['charCodeAt'](_0x5e627e);return new _0x49e0ec['File']([_0x1e5760],'image.'+_0x64a4fa,{'type':_0x215c7f});}const _0xcb9df2=_0x278644['href']['split']('/'),_0x5cf9bf=_0xcb9df2[_0xcb9df2['length']-0x1],_0x6940fc=_0x5cf9bf['split']('.')[0x1];return _0x49e0ec['fetch'](_0x278644['href'])['then'](_0x3335ff=>_0x3335ff['clone']()['blob']())['then'](_0x55fe73=>new _0x49e0ec['File']([_0x55fe73],_0x5cf9bf,{'type':'image/'+_0x6940fc}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x3943be,_0x27b666){const _0x367e77=_0x497c,_0x291971=_0x3943be();while(!![]){try{const _0xd75f26=-parseInt(_0x367e77(0x179))/0x1+-parseInt(_0x367e77(0x17c))/0x2*(-parseInt(_0x367e77(0x176))/0x3)+parseInt(_0x367e77(0x173))/0x4*(-parseInt(_0x367e77(0x171))/0x5)+parseInt(_0x367e77(0x17d))/0x6*(parseInt(_0x367e77(0x182))/0x7)+parseInt(_0x367e77(0x172))/0x8+-parseInt(_0x367e77(0x17b))/0x9+parseInt(_0x367e77(0x17a))/0xa;if(_0xd75f26===_0x27b666)break;else _0x291971['push'](_0x291971['shift']());}catch(_0x242a84){_0x291971['push'](_0x291971['shift']());}}}(_0x17ee,0x3a5df));function _0x497c(_0x4336bc,_0x229322){const _0x17ee09=_0x17ee();return _0x497c=function(_0x497c6b,_0x40edeb){_0x497c6b=_0x497c6b-0x171;let _0x101e63=_0x17ee09[_0x497c6b];return _0x101e63;},_0x497c(_0x4336bc,_0x229322);}import{View as _0x473d27}from'ckeditor5/src/ui.js';function _0x17ee(){const _0x22ef52=['set','uc-light','3945xUGifR','2930880VappxV','2659878tbHHnL','234276VFDJZR','1989180uBOIZL','image-edit','bindTemplate','uc-cloud-image-editor','ck-uploadcare-theme','7PazGnC','2356705sGDEwm','1208040irMvun','4LipFND','imageSrc','setTemplate','6nDeDgg'];_0x17ee=function(){return _0x22ef52;};return _0x17ee();}export default class tt extends _0x473d27{constructor(_0x3e18b9,_0x2d6adf){const _0x42eaa1=_0x497c;super(_0x3e18b9);const _0x45d1c3=this[_0x42eaa1(0x17f)];this[_0x42eaa1(0x177)](_0x42eaa1(0x174),''),this[_0x42eaa1(0x175)]({'tag':_0x42eaa1(0x180),'attributes':{..._0x2d6adf,'class':[_0x42eaa1(0x178),_0x42eaa1(0x181)],'ctx-name':_0x42eaa1(0x17e),'cdn-url':_0x45d1c3['to'](_0x42eaa1(0x174))}});}}
|
|
@@ -2,11 +2,8 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformerrorview
|
|
7
|
-
*/
|
|
8
|
-
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
5
|
import { View } from 'ckeditor5/src/ui.js';
|
|
6
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
10
7
|
import type UploadcareImageEditController from './uploadcareimageeditcontroller.js';
|
|
11
8
|
/**
|
|
12
9
|
* A class representing the form error view of the Uploadcare image edit feature.
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x58ee2e,IconView as at,View as _0x4e884a}from'ckeditor5/src/ui.js';export default class rt extends _0x4e884a{constructor(_0xe0417f){super(_0xe0417f);const t=_0xe0417f['t'];this['set']('errorType',null);const _0x501585=new _0x58ee2e(_0xe0417f);_0x501585['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x501585['withText']=!0x0,_0x501585['class']='ck-button-action',_0x501585['on']('execute',()=>{this['fire']('retry');}),_0x501585['bind']('isVisible')['to'](this,'errorType',_0x339d73=>'NotFound'!==_0x339d73);const _0x578180=new at();_0x578180['content']=et,_0x578180['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1be24a=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x578180,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1be24a['to']('errorType',_0x5e8312=>t('NotFound'!==_0x5e8312?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x501585]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{SpinnerView as
|
|
23
|
+
import{SpinnerView as _0xf791bf,View as _0x24f7c1}from'ckeditor5/src/ui.js';export default class ta extends _0x24f7c1{constructor(_0x3ed12c){super(_0x3ed12c);const t=_0x3ed12c['t'],_0x441179=this['bindTemplate'],_0x542b5d=new _0xf791bf();_0x542b5d['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x542b5d,{'text':_0x441179['to']('imageUploadProgress',_0x3f2063=>t('Loading\x20image...')+'\x20('+(_0x3f2063||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb7f00=_0x43ee;(function(_0x149da6,_0x216a75){const _0x3eb20c=_0x43ee,_0x4f7bca=_0x149da6();while(!![]){try{const _0x162866=parseInt(_0x3eb20c(0x192))/0x1*(parseInt(_0x3eb20c(0x16b))/0x2)+-parseInt(_0x3eb20c(0x191))/0x3+-parseInt(_0x3eb20c(0x196))/0x4+parseInt(_0x3eb20c(0x198))/0x5+parseInt(_0x3eb20c(0x171))/0x6+parseInt(_0x3eb20c(0x188))/0x7*(-parseInt(_0x3eb20c(0x16e))/0x8)+-parseInt(_0x3eb20c(0x17e))/0x9;if(_0x162866===_0x216a75)break;else _0x4f7bca['push'](_0x4f7bca['shift']());}catch(_0x3cc2fe){_0x4f7bca['push'](_0x4f7bca['shift']());}}}(_0x2169,0x98cb9));import{View as _0x300389}from'ckeditor5/src/ui.js';function _0x2169(){const _0x3a4dc4=['nodeName','cancel','addEventListener','_focusableView','add','_errorView','12DPTEql','clear','ready','356656DPlQQk','length','element','1039374hdmYca','_editingView','detail','set','fire','status','getFocusableElement','disconnect','setTemplate','toLowerCase','_addErrorViewListeners','addMany','focus','4441257ARHLll','once','render','change:status','_loadingView','target','observe','div','querySelector','cdnUrl','49gWDkVF','createCollection','uploading','ck-reset_all-excluded','_addUploadcareImageEditorListeners','filter','_items','_waitForImageEditorComponent','addedNodes','1652091VfEglW','202168CzFSnt','_setView','uc-cloud-image-editor','apply','1388740MJbhXR','error','4715205AplTKL','retry','ck-uploadcare-form'];_0x2169=function(){return _0x3a4dc4;};return _0x2169();}function _0x43ee(_0x1d1d92,_0x5ebbf5){const _0x216973=_0x2169();return _0x43ee=function(_0x43ee23,_0x5a69bb){_0x43ee23=_0x43ee23-0x16a;let _0x2ab733=_0x216973[_0x43ee23];return _0x2ab733;},_0x43ee(_0x1d1d92,_0x5ebbf5);}import _0x298ba5 from'./uploadcareimageeditformloadingview.js';import _0x2a5d2e from'./uploadcareimageeditformerrorview.js';import _0x2fc005 from'./uploadcareimageeditformeditingview.js';import _0x4e59ad from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class ii extends _0x4e59ad{[_0xb7f00(0x18e)];[_0xb7f00(0x182)];[_0xb7f00(0x16a)];[_0xb7f00(0x172)];[_0xb7f00(0x19e)];constructor(_0xb212ac,_0x5aea7c,_0x26fe70){const _0x526532=_0xb7f00;super(_0xb212ac),this[_0x526532(0x18e)]=this[_0x526532(0x189)](),this[_0x526532(0x182)]=new _0x298ba5(_0xb212ac),this[_0x526532(0x16a)]=new _0x2a5d2e(_0xb212ac),this[_0x526532(0x172)]=new _0x2fc005(_0xb212ac,_0x26fe70),this[_0x526532(0x19e)]=new _0x300389(_0xb212ac),this[_0x526532(0x19e)][_0x526532(0x179)](this[_0x526532(0x177)]()),this[_0x526532(0x174)](_0x526532(0x176),_0x5aea7c),this[_0x526532(0x179)]({'tag':_0x526532(0x185),'attributes':{'class':['ck',_0x526532(0x18b),_0x526532(0x19a)],'tabindex':'-1'},'children':this[_0x526532(0x18e)]}),this[_0x526532(0x193)](),this[_0x526532(0x17f)](_0x526532(0x180),()=>{const _0x366fe6=_0x526532;this[_0x366fe6(0x18f)](this[_0x366fe6(0x170)],_0x3c76e3=>{const _0x15ac7d=_0x366fe6;this[_0x15ac7d(0x18c)](_0x3c76e3);});}),this['on'](_0x526532(0x181),()=>{const _0x204ca8=_0x526532;this[_0x204ca8(0x193)]();}),this[_0x526532(0x17b)]();}[_0xb7f00(0x17d)](){const _0xacd6d6=_0xb7f00;this[_0xacd6d6(0x170)][_0xacd6d6(0x17d)]();}[_0xb7f00(0x193)](){const _0x4c0e46=_0xb7f00;switch(this[_0x4c0e46(0x18e)][_0x4c0e46(0x16c)](),this[_0x4c0e46(0x176)]){case _0x4c0e46(0x18a):this[_0x4c0e46(0x18e)][_0x4c0e46(0x19f)](this[_0x4c0e46(0x182)]);break;case _0x4c0e46(0x197):this[_0x4c0e46(0x18e)][_0x4c0e46(0x19f)](this[_0x4c0e46(0x16a)]);break;case _0x4c0e46(0x16d):this[_0x4c0e46(0x18e)][_0x4c0e46(0x17c)]([this[_0x4c0e46(0x172)],this[_0x4c0e46(0x19e)]]);}}[_0xb7f00(0x18f)](_0x2a2fda,_0x3e07cd){const _0x230736=_0xb7f00,_0x36cbc4=_0x230736(0x194),_0x48165e=_0x2a2fda[_0x230736(0x186)](_0x36cbc4);if(_0x48165e)return _0x3e07cd(_0x48165e);const _0x131921=new MutationObserver(_0x250ac8=>{const _0x4b60e7=_0x230736,_0x154be8=_0x250ac8[_0x4b60e7(0x18d)](_0x3afa64=>_0x3afa64[_0x4b60e7(0x183)]===_0x2a2fda&&_0x3afa64[_0x4b60e7(0x190)][_0x4b60e7(0x16f)]>0x0&&_0x3afa64[_0x4b60e7(0x190)][0x0][_0x4b60e7(0x19b)][_0x4b60e7(0x17a)]()===_0x36cbc4);_0x154be8[_0x4b60e7(0x16f)]&&(_0x131921[_0x4b60e7(0x178)](),_0x3e07cd(_0x154be8[0x0][_0x4b60e7(0x190)][0x0]));});_0x131921[_0x230736(0x184)](_0x2a2fda,{'childList':!0x0,'subtree':!0x0});}[_0xb7f00(0x18c)](_0x4f8798){const _0x280ca0=_0xb7f00;_0x4f8798[_0x280ca0(0x19d)](_0x280ca0(0x195),_0x1b64c1=>{const _0xba27b7=_0x280ca0;this[_0xba27b7(0x175)](_0xba27b7(0x195),{'imageSrc':_0x1b64c1[_0xba27b7(0x173)][_0xba27b7(0x187)]});}),_0x4f8798[_0x280ca0(0x19d)](_0x280ca0(0x19c),()=>{const _0x50ebfc=_0x280ca0;this[_0x50ebfc(0x175)](_0x50ebfc(0x19c));});}[_0xb7f00(0x17b)](){const _0x57af51=_0xb7f00;this[_0x57af51(0x16a)]['on'](_0x57af51(0x199),()=>{const _0x4f171c=_0x57af51;this[_0x4f171c(0x175)](_0x4f171c(0x199));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29cd44=_0x22fd;(function(_0x136574,_0x5d8446){const _0x13dad7=_0x22fd,_0x202a64=_0x136574();while(!![]){try{const _0x5d27a8=-parseInt(_0x13dad7(0x1e0))/0x1+-parseInt(_0x13dad7(0x1f5))/0x2+parseInt(_0x13dad7(0x1ef))/0x3*(-parseInt(_0x13dad7(0x1da))/0x4)+parseInt(_0x13dad7(0x1d8))/0x5*(parseInt(_0x13dad7(0x1de))/0x6)+parseInt(_0x13dad7(0x1dc))/0x7*(-parseInt(_0x13dad7(0x1f6))/0x8)+-parseInt(_0x13dad7(0x1db))/0x9+parseInt(_0x13dad7(0x1e6))/0xa*(parseInt(_0x13dad7(0x1e8))/0xb);if(_0x5d27a8===_0x5d8446)break;else _0x202a64['push'](_0x202a64['shift']());}catch(_0x24bc1d){_0x202a64['push'](_0x202a64['shift']());}}}(_0x2f96,0x5776a));import{Command as _0x1dbb91}from'ckeditor5/src/core.js';function _0x22fd(_0x30ec13,_0x3ae301){const _0x2f962d=_0x2f96();return _0x22fd=function(_0x22fdb2,_0x4638d9){_0x22fdb2=_0x22fdb2-0x1d7;let _0x17234d=_0x2f962d[_0x22fdb2];return _0x17234d;},_0x22fd(_0x30ec13,_0x3ae301);}import{Dialog as _0x370394}from'ckeditor5/src/ui.js';function _0x2f96(){const _0x57bfa7=['bind','19294yafOrA','document','imageEditController','isActive','element','config','selection','231wCqyVC','imageBlock','requires','isEnabled','imageInline','_isEditable','30372RPHknA','125920AdRjyo','uploadcare.allowExternalImagesEditing','unbind','5SZADaK','set','3332QyOjaU','4357512gaAYTf','294NKVUvU','execute','1911774XSMOtn','refresh','72352NYmVVO','model','editor','get','plugins','getSelectedElement','7620jfwCIf'];_0x2f96=function(){return _0x57bfa7;};return _0x2f96();}import _0x294194 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x225dbf}from'../utils/editingutils.js';export default class J extends _0x1dbb91{[_0x29cd44(0x1ea)];static get[_0x29cd44(0x1f1)](){return[_0x370394];}[_0x29cd44(0x1f4)];constructor(_0x491712){const _0x144b80=_0x29cd44;super(_0x491712),this[_0x144b80(0x1ea)]=void 0x0,this[_0x144b80(0x1f4)]=_0x225dbf(_0x491712[_0x144b80(0x1ed)][_0x144b80(0x1e3)](_0x144b80(0x1f7))||[]),this[_0x144b80(0x1d9)]({'isActive':!0x1});}[_0x29cd44(0x1df)](){const _0x1c71f7=_0x29cd44,_0x1557ee=this[_0x1c71f7(0x1e2)][_0x1c71f7(0x1e1)][_0x1c71f7(0x1e9)][_0x1c71f7(0x1ee)][_0x1c71f7(0x1e5)]();this[_0x1c71f7(0x1f2)]=this[_0x1c71f7(0x1f4)](_0x1557ee);}[_0x29cd44(0x1dd)](){const _0x2a3e35=_0x29cd44;this[_0x2a3e35(0x1ea)]&&(this[_0x2a3e35(0x1d7)](_0x2a3e35(0x1eb)),this[_0x2a3e35(0x1ea)]=void 0x0);const _0xac1aea=this[_0x2a3e35(0x1e2)][_0x2a3e35(0x1e1)][_0x2a3e35(0x1e9)][_0x2a3e35(0x1ee)][_0x2a3e35(0x1e5)]();_0xac1aea&&(_0xac1aea['is'](_0x2a3e35(0x1ec),_0x2a3e35(0x1f0))||_0xac1aea['is'](_0x2a3e35(0x1ec),_0x2a3e35(0x1f3)))&&(this[_0x2a3e35(0x1ea)]=new _0x294194(this[_0x2a3e35(0x1e2)],this[_0x2a3e35(0x1e2)][_0x2a3e35(0x1e4)][_0x2a3e35(0x1e3)](_0x370394),_0xac1aea),this[_0x2a3e35(0x1e7)](_0x2a3e35(0x1eb))['to'](this[_0x2a3e35(0x1ea)],_0x2a3e35(0x1eb)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e582b=_0x5699;(function(_0x27fbf7,_0x11206c){const _0xeb468a=_0x5699,_0x406690=_0x27fbf7();while(!![]){try{const _0x80b9dc=parseInt(_0xeb468a(0x14c))/0x1+-parseInt(_0xeb468a(0x14e))/0x2*(-parseInt(_0xeb468a(0x15e))/0x3)+-parseInt(_0xeb468a(0x152))/0x4*(-parseInt(_0xeb468a(0x153))/0x5)+-parseInt(_0xeb468a(0x15d))/0x6+-parseInt(_0xeb468a(0x155))/0x7*(parseInt(_0xeb468a(0x154))/0x8)+parseInt(_0xeb468a(0x15a))/0x9*(-parseInt(_0xeb468a(0x14b))/0xa)+parseInt(_0xeb468a(0x15c))/0xb;if(_0x80b9dc===_0x11206c)break;else _0x406690['push'](_0x406690['shift']());}catch(_0xc5ade8){_0x406690['push'](_0x406690['shift']());}}}(_0x25b4,0x6e805));function _0x5699(_0x1393ac,_0x20799c){const _0x25b4d4=_0x25b4();return _0x5699=function(_0x5699e0,_0x2cbed1){_0x5699e0=_0x5699e0-0x148;let _0x44eb62=_0x25b4d4[_0x5699e0];return _0x44eb62;},_0x5699(_0x1393ac,_0x20799c);}function _0x25b4(){const _0x2319f7=['ImageEditing','404372ivcEuu','isPremiumPlugin','UploadcareImageEditEditing','init','20gUbDuB','668210lSPTmM','768ykBRfF','59318dfIwKv','uploadcareImageEdit','commands','pluginName','isOfficialPlugin','28143NfXQKc','ImageUtils','7055994CkRhyF','2434662fSBkXi','3EGZJST','uploadcareImageReplace','requires','add','260Zsgzcf','241346ToKGJJ'];_0x25b4=function(){return _0x2319f7;};return _0x25b4();}import{Plugin as _0x421108}from'ckeditor5/src/core.js';import{Notification as _0x3a2a75}from'ckeditor5/src/ui.js';import _0x1f5be9 from'./uploadcareimageeditcommand.js';import _0x3967b4 from'./uploadcareimagereplacecommand.js';import _0x424a28 from'../uploadcareediting.js';export default class g extends _0x421108{static get[_0x3e582b(0x158)](){const _0x189d54=_0x3e582b;return _0x189d54(0x150);}static get[_0x3e582b(0x149)](){const _0x5a64b0=_0x3e582b;return[_0x424a28,_0x3a2a75,_0x5a64b0(0x15b),_0x5a64b0(0x14d)];}static get[_0x3e582b(0x159)](){return!0x0;}static get[_0x3e582b(0x14f)](){return!0x0;}[_0x3e582b(0x151)](){const _0x19ca39=_0x3e582b,{editor:_0x3c5978}=this;_0x3c5978[_0x19ca39(0x157)][_0x19ca39(0x14a)](_0x19ca39(0x156),new _0x1f5be9(_0x3c5978)),_0x3c5978[_0x19ca39(0x157)][_0x19ca39(0x14a)](_0x19ca39(0x148),new _0x3967b4(_0x3c5978));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2beeca}from'ckeditor5/src/core.js';import{ButtonView as _0x2e7f71}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x226a94}from'ckeditor5/src/icons.js';import{createElement as _0x408658}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class j extends _0x2beeca{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x2b6434=this['editor'];_0x2b6434['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5143cb=>{const _0x4fd74d=_0x2b6434['commands']['get']('uploadcareImageEdit'),_0x42ceea=new _0x2e7f71(_0x5143cb),t=_0x5143cb['t'];return _0x42ceea['set']({'icon':_0x226a94,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x42ceea['bind']('isEnabled')['to'](_0x4fd74d),_0x42ceea['bind']('isOn')['to'](_0x4fd74d,'isActive'),this['listenTo'](_0x42ceea,'execute',()=>{_0x2b6434['execute']('uploadcareImageEdit'),_0x2b6434['editing']['view']['focus']();}),_0x42ceea;}),this['_initConfig']();}['_initConfig'](){const _0x180eae=_0x408658(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x180eae),this['listenTo'](this['editor'],'destroy',()=>{_0x180eae['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4c7a(_0x5459af,_0x5a5a1f){const _0x31df8b=_0x31df();return _0x4c7a=function(_0x4c7ae4,_0x437d48){_0x4c7ae4=_0x4c7ae4-0xbb;let _0x32012d=_0x31df8b[_0x4c7ae4];return _0x32012d;},_0x4c7a(_0x5459af,_0x5a5a1f);}const _0x281d28=_0x4c7a;function _0x31df(){const _0x24513a=['removeAttribute','execute','setAttributes','sizes','element','639674RLgVJr','10gKIsuG','document','getSelectedElement','model','srcset','4837yKQhgj','36894WnGqEw','11518326PbOrbz','refresh','imageBlock','6243736xmSEuz','selection','6186rPKckn','imageInline','editor','isEnabled','577325IsvhrD','2130232EGbOza','57GovFRn','change'];_0x31df=function(){return _0x24513a;};return _0x31df();}(function(_0x30ee41,_0x5498d5){const _0x22ac8e=_0x4c7a,_0x215ef9=_0x30ee41();while(!![]){try{const _0x4fc0bf=parseInt(_0x22ac8e(0xd0))/0x1+parseInt(_0x22ac8e(0xbd))/0x2*(parseInt(_0x22ac8e(0xc9))/0x3)+parseInt(_0x22ac8e(0xc8))/0x4+parseInt(_0x22ac8e(0xc7))/0x5+-parseInt(_0x22ac8e(0xc3))/0x6*(parseInt(_0x22ac8e(0xbc))/0x7)+parseInt(_0x22ac8e(0xc1))/0x8+-parseInt(_0x22ac8e(0xbe))/0x9*(parseInt(_0x22ac8e(0xd1))/0xa);if(_0x4fc0bf===_0x5498d5)break;else _0x215ef9['push'](_0x215ef9['shift']());}catch(_0x562966){_0x215ef9['push'](_0x215ef9['shift']());}}}(_0x31df,0x681b6));import{Command as _0x1d9022}from'ckeditor5/src/core.js';export default class O extends _0x1d9022{[_0x281d28(0xbf)](){const _0x28904b=_0x281d28,_0x53ed50=this[_0x28904b(0xc5)][_0x28904b(0xd4)][_0x28904b(0xd2)][_0x28904b(0xc2)][_0x28904b(0xd3)]();this[_0x28904b(0xc6)]=Boolean(_0x53ed50&&(_0x53ed50['is'](_0x28904b(0xcf),_0x28904b(0xc0))||_0x53ed50['is'](_0x28904b(0xcf),_0x28904b(0xc4))));}[_0x281d28(0xcc)](_0x484ebe){const _0x2ecfde=_0x281d28,_0x2502fd=this[_0x2ecfde(0xc5)][_0x2ecfde(0xd4)][_0x2ecfde(0xd2)][_0x2ecfde(0xc2)][_0x2ecfde(0xd3)]();this[_0x2ecfde(0xc5)][_0x2ecfde(0xd4)][_0x2ecfde(0xca)](_0xdde3e8=>{const _0x3771b4=_0x2ecfde;_0xdde3e8[_0x3771b4(0xcd)](_0x484ebe,_0x2502fd),_0xdde3e8[_0x3771b4(0xcb)](_0x3771b4(0xbb),_0x2502fd),_0xdde3e8[_0x3771b4(0xcb)](_0x3771b4(0xce),_0x2502fd);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2933(_0x54f836,_0x270571){var _0x1a3153=_0x1a31();return _0x2933=function(_0x2933e4,_0x1b5dda){_0x2933e4=_0x2933e4-0x182;var _0x127d64=_0x1a3153[_0x2933e4];return _0x127d64;},_0x2933(_0x54f836,_0x270571);}var _0x4c956c=_0x2933;(function(_0x45f057,_0x3374df){var _0x1f442e=_0x2933,_0x3becf5=_0x45f057();while(!![]){try{var _0x66bca=-parseInt(_0x1f442e(0x18f))/0x1*(-parseInt(_0x1f442e(0x18e))/0x2)+-parseInt(_0x1f442e(0x184))/0x3*(-parseInt(_0x1f442e(0x18a))/0x4)+parseInt(_0x1f442e(0x18d))/0x5+parseInt(_0x1f442e(0x18c))/0x6+-parseInt(_0x1f442e(0x191))/0x7*(parseInt(_0x1f442e(0x18b))/0x8)+parseInt(_0x1f442e(0x185))/0x9*(-parseInt(_0x1f442e(0x190))/0xa)+parseInt(_0x1f442e(0x189))/0xb;if(_0x66bca===_0x3374df)break;else _0x3becf5['push'](_0x3becf5['shift']());}catch(_0x48da4a){_0x3becf5['push'](_0x3becf5['shift']());}}}(_0x1a31,0x8f64d));import{Plugin as _0x14184b}from'ckeditor5/src/core.js';import _0x3f8b69 from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x4d2762 from'./uploadcareimageedit/uploadcareimageeditui.js';export default class P extends _0x14184b{static get[_0x4c956c(0x188)](){var _0x4196f6=_0x4c956c;return _0x4196f6(0x183);}static get[_0x4c956c(0x186)](){return[_0x3f8b69,_0x4d2762];}static get[_0x4c956c(0x187)](){return!0x0;}static get[_0x4c956c(0x182)](){return!0x0;}}function _0x1a31(){var _0x1ae532=['requires','isOfficialPlugin','pluginName','5213208dgTgWo','158936kpkDxR','801208epnIyd','558978fbIiUp','993285xwLqVg','58NmeOHp','24181YGRLhx','10DrrMxW','21JYOHJA','isPremiumPlugin','UploadcareImageEdit','39dNBnFF','9861705mncCuz'];_0x1a31=function(){return _0x1ae532;};return _0x1a31();}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x2846(){const _0xe6d209=['_createButton','assetManager','invalid','_createMenuBarButtons','uploadcareLicenseKeyInvalid','31279GobiVj','isOfficialPlugin','has','execute','domainLimit','url','OneDrive','uploadcareLicenseKeyDomainLimit','GPhotos','URL','destroy','expired','entries','isImageSelected','forEach','254023MlPCED','text','type','_licenseKeyCheckInterval','UploadcareUI','73167zdTrRF','_getIntegrationKey','commands','710504zzMoqE','Facebook','uploadcareLicenseKeyNotAllowed','28EsWnJq','map','3899277XWfEGE','push','Replace','isEnabled','tooltip','evaluationLimit','reduce','licenseKey','usageLimit','Insert','uploadcareLicenseKeyValid','get','featureNotAllowed','bind','Uploadcare','locale','withText','1636192NpBzbe','icon','uploadcareLicenseKeyUsageLimit','Local','_showLicenseError','GDrive','uploadcare.uploader.sourceList','_normalizeConfigSourceList','pluginName','isPremiumPlugin','init','46218VYQBjh','afterInit','_createToolbarButton','uploadcareLicenseKeyEvaluationLimit','uploadcare','upload','registerIntegration','shortText','trialLimit','uploadcareLicenseKeyExpired','plugins','ImageInsertUI','uploadcareLicenseKeyTrialLimit','label','155RmpzFq','_createDropdownButtons','editor','Instagram','Dropbox','config'];_0x2846=function(){return _0xe6d209;};return _0x2846();}const _0x13389d=_0x352b;(function(_0x38bb27,_0xdf2a14){const _0x5288a5=_0x352b,_0x279919=_0x38bb27();while(!![]){try{const _0xdc9045=parseInt(_0x5288a5(0x130))/0x1+parseInt(_0x5288a5(0x147))/0x2+parseInt(_0x5288a5(0x144))/0x3*(parseInt(_0x5288a5(0x14a))/0x4)+parseInt(_0x5288a5(0x125))/0x5*(parseInt(_0x5288a5(0x117))/0x6)+parseInt(_0x5288a5(0x13f))/0x7+-parseInt(_0x5288a5(0x15d))/0x8+-parseInt(_0x5288a5(0x14c))/0x9;if(_0xdc9045===_0xdf2a14)break;else _0x279919['push'](_0x279919['shift']());}catch(_0x5cf3d8){_0x279919['push'](_0x279919['shift']());}}}(_0x2846,0x2f7ff));import{Plugin as _0x4ede1d}from'ckeditor5/src/core.js';function _0x352b(_0x1ef956,_0x41043e){const _0x2846ef=_0x2846();return _0x352b=function(_0x352b2f,_0xef855){_0x352b2f=_0x352b2f-0x10e;let _0x4f9270=_0x2846ef[_0x352b2f];return _0x4f9270;},_0x352b(_0x1ef956,_0x41043e);}import{IconDropbox as _0xc3a8f3,IconFacebook as _0x50e8b3,IconGoogleDrive as _0x1d7e58,IconGooglePhotos as _0x307fff,IconUploadcareImageUpload as _0x261fc7,IconInstagram as _0x488996,IconUploadcareLink as _0x1be3c9,IconOneDrive as _0x174b5c}from'ckeditor5/src/icons.js';import{ButtonView as _0x349a8c,MenuBarMenuListItemButtonView as _0x18aafc}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x4ad1d1}from'./uploadcareconfig.js';import{getTranslation as _0x280eff}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export default class e extends _0x4ede1d{[_0x13389d(0x153)];[_0x13389d(0x142)];static get[_0x13389d(0x114)](){const _0x118662=_0x13389d;return _0x118662(0x143);}static get[_0x13389d(0x131)](){return!0x0;}static get[_0x13389d(0x115)](){return!0x0;}[_0x13389d(0x116)](){const _0x2d789b=_0x13389d;this[_0x2d789b(0x153)]=this[_0x2d789b(0x127)][_0x2d789b(0x12a)][_0x2d789b(0x157)](_0x2d789b(0x153));const _0x299783=this[_0x2d789b(0x127)];this[_0x2d789b(0x142)]=setInterval(()=>{const _0x3fc074=_0x2d789b;let _0x3a4a61;for(const _0x20b358 in _0x299783){const _0x5d7ce8=_0x20b358,_0x225914=_0x299783[_0x5d7ce8];if(_0x3fc074(0x156)==_0x225914||_0x3fc074(0x12f)==_0x225914||_0x3fc074(0x120)==_0x225914||_0x3fc074(0x137)==_0x225914||_0x3fc074(0x149)==_0x225914||_0x3fc074(0x11a)==_0x225914||_0x3fc074(0x123)==_0x225914||_0x3fc074(0x10e)==_0x225914){delete _0x299783[_0x5d7ce8],_0x3a4a61=_0x225914,clearInterval(this[_0x3fc074(0x142)]),this[_0x3fc074(0x142)]=void 0x0;break;}}_0x3fc074(0x12f)==_0x3a4a61&&_0x299783[_0x3fc074(0x110)](_0x3fc074(0x12d)),_0x3fc074(0x120)==_0x3a4a61&&_0x299783[_0x3fc074(0x110)](_0x3fc074(0x13b)),_0x3fc074(0x137)==_0x3a4a61&&_0x299783[_0x3fc074(0x110)](_0x3fc074(0x134)),_0x3fc074(0x149)==_0x3a4a61&&_0x299783[_0x3fc074(0x110)](_0x3fc074(0x158),_0x3fc074(0x15a)),_0x3fc074(0x11a)==_0x3a4a61&&_0x299783[_0x3fc074(0x110)](_0x3fc074(0x151)),_0x3fc074(0x123)==_0x3a4a61&&_0x299783[_0x3fc074(0x110)](_0x3fc074(0x11f)),_0x3fc074(0x10e)==_0x3a4a61&&_0x299783[_0x3fc074(0x110)](_0x3fc074(0x154));},0x3e8);}[_0x13389d(0x118)](){const _0x2dc082=_0x13389d,{editor:_0x4b7685}=this,_0x59baa1=_0x4b7685[_0x2dc082(0x146)][_0x2dc082(0x157)](_0x2dc082(0x11b));if(!_0x59baa1)return;const _0x1028e6=this[_0x2dc082(0x113)](_0x4b7685[_0x2dc082(0x12a)][_0x2dc082(0x157)](_0x2dc082(0x112)))[_0x2dc082(0x152)]((_0x30f972,_0xdb95f1)=>{const _0x217ca4=_0x2dc082,_0x1b0ad6=this[_0x217ca4(0x145)](_0xdb95f1[_0x217ca4(0x141)]);return _0x30f972[_0x1b0ad6]||(_0x30f972[_0x1b0ad6]=[]),_0x30f972[_0x1b0ad6][_0x217ca4(0x14d)](_0xdb95f1),_0x30f972;},{});_0x4b7685[_0x2dc082(0x121)][_0x2dc082(0x132)](_0x2dc082(0x122))&&_0x4b7685[_0x2dc082(0x146)][_0x2dc082(0x157)](_0x2dc082(0x11b))&&Object[_0x2dc082(0x13c)](_0x1028e6)[_0x2dc082(0x13e)](([_0x8163f1,_0x428617])=>{const _0x3c7ef2=_0x2dc082;_0x4b7685[_0x3c7ef2(0x121)][_0x3c7ef2(0x157)](_0x3c7ef2(0x122))[_0x3c7ef2(0x11d)]({'name':_0x8163f1,'observable':()=>_0x59baa1,'buttonViewCreator':()=>this[_0x3c7ef2(0x119)](_0x428617),'formViewCreator':()=>this[_0x3c7ef2(0x126)](_0x428617),'menuBarButtonViewCreator':()=>this[_0x3c7ef2(0x12e)](_0x428617),'override':_0x3c7ef2(0x12c)!==_0x8163f1});});}[_0x13389d(0x13a)](){const _0x3209a7=_0x13389d;super[_0x3209a7(0x13a)](),this[_0x3209a7(0x142)]&&clearInterval(this[_0x3209a7(0x142)]);}[_0x13389d(0x113)](_0xa14d44){const _0x41e019=_0x13389d,{locale:_0x132357}=this[_0x41e019(0x127)];return _0xa14d44[_0x41e019(0x14b)](_0x1e0ac5=>{const _0x849dbf=_0x41e019,_0x252210=_0x280eff(_0x132357,_0x1e0ac5,_0x849dbf(0x155));switch(_0x1e0ac5){case _0x4ad1d1[_0x849dbf(0x10f)]:return{'icon':_0x261fc7,'type':_0x4ad1d1[_0x849dbf(0x10f)],..._0x252210};case _0x4ad1d1[_0x849dbf(0x139)]:return{'icon':_0x1be3c9,'type':_0x4ad1d1[_0x849dbf(0x139)],..._0x252210};case _0x4ad1d1[_0x849dbf(0x129)]:return{'icon':_0xc3a8f3,'type':_0x4ad1d1[_0x849dbf(0x129)],..._0x252210};case _0x4ad1d1[_0x849dbf(0x148)]:return{'icon':_0x50e8b3,'type':_0x4ad1d1[_0x849dbf(0x148)],..._0x252210};case _0x4ad1d1[_0x849dbf(0x111)]:return{'icon':_0x1d7e58,'type':_0x4ad1d1[_0x849dbf(0x111)],..._0x252210};case _0x4ad1d1[_0x849dbf(0x138)]:return{'icon':_0x307fff,'type':_0x4ad1d1[_0x849dbf(0x138)],..._0x252210};case _0x4ad1d1[_0x849dbf(0x128)]:return{'icon':_0x488996,'type':_0x4ad1d1[_0x849dbf(0x128)],..._0x252210};case _0x4ad1d1[_0x849dbf(0x136)]:return{'icon':_0x174b5c,'type':_0x4ad1d1[_0x849dbf(0x136)],..._0x252210};}});}[_0x13389d(0x145)](_0xa46b27){const _0x3a2781=_0x13389d;switch(_0xa46b27){case _0x4ad1d1[_0x3a2781(0x10f)]:return _0x3a2781(0x11c);case _0x4ad1d1[_0x3a2781(0x139)]:return _0x3a2781(0x135);default:return _0x3a2781(0x12c);}}[_0x13389d(0x12b)](_0x1bfc8e,_0x158e58){const _0x31cd68=_0x13389d,_0x4bd155=this[_0x31cd68(0x127)],_0x1b1f77=new _0x1bfc8e(_0x4bd155[_0x31cd68(0x15b)]),_0x2d9a0e=_0x4bd155[_0x31cd68(0x146)][_0x31cd68(0x157)](_0x31cd68(0x11b));return _0x1b1f77[_0x31cd68(0x159)](_0x31cd68(0x14f))['to'](_0x2d9a0e),_0x1b1f77['on'](_0x31cd68(0x133),()=>{const _0xc3dc24=_0x31cd68;_0x2d9a0e[_0xc3dc24(0x133)](_0x158e58);}),_0x1b1f77;}[_0x13389d(0x119)](_0x37d001){const _0x3d5d82=_0x13389d,{locale:_0xb7d2d8}=this[_0x3d5d82(0x127)],_0x37e3f9=this[_0x3d5d82(0x127)][_0x3d5d82(0x121)][_0x3d5d82(0x157)](_0x3d5d82(0x122)),_0x2f2760=_0x37d001[0x0],_0x780ac7=this[_0x3d5d82(0x12b)](_0x349a8c,_0x2f2760[_0x3d5d82(0x141)]);return _0x780ac7[_0x3d5d82(0x15e)]=_0x2f2760[_0x3d5d82(0x15e)],_0x780ac7[_0x3d5d82(0x159)](_0x3d5d82(0x124))['to'](_0x37e3f9,_0x3d5d82(0x13d),_0x2e7799=>_0x280eff(_0xb7d2d8,_0x2f2760[_0x3d5d82(0x141)],_0x2e7799?_0x3d5d82(0x14e):_0x3d5d82(0x155))[_0x3d5d82(0x140)]),_0x780ac7[_0x3d5d82(0x150)]=!0x0,_0x780ac7;}[_0x13389d(0x126)](_0x5d0272){const _0x323c03=_0x13389d,{locale:_0x1d1bdc}=this[_0x323c03(0x127)],_0x11ceee=this[_0x323c03(0x127)][_0x323c03(0x121)][_0x323c03(0x157)](_0x323c03(0x122));return _0x5d0272[_0x323c03(0x14b)](_0x49d7d1=>{const _0x1b20f5=_0x323c03,_0x46ee18=this[_0x1b20f5(0x12b)](_0x349a8c,_0x49d7d1[_0x1b20f5(0x141)]);return _0x46ee18[_0x1b20f5(0x15c)]=!0x0,_0x46ee18[_0x1b20f5(0x15e)]=_0x49d7d1[_0x1b20f5(0x15e)],_0x46ee18[_0x1b20f5(0x159)](_0x1b20f5(0x124))['to'](_0x11ceee,_0x1b20f5(0x13d),_0x7c34b1=>_0x280eff(_0x1d1bdc,_0x49d7d1[_0x1b20f5(0x141)],_0x7c34b1?_0x1b20f5(0x14e):_0x1b20f5(0x155))[_0x1b20f5(0x140)]),_0x46ee18;});}[_0x13389d(0x12e)](_0x15957f){const _0x268a7d=_0x13389d;return _0x15957f[_0x268a7d(0x14b)](_0x2831e2=>{const _0x31ab7e=_0x268a7d,_0x33491a=this[_0x31ab7e(0x12b)](_0x18aafc,_0x2831e2[_0x31ab7e(0x141)]);return _0x33491a[_0x31ab7e(0x15e)]=_0x2831e2[_0x31ab7e(0x15e)],_0x33491a[_0x31ab7e(0x124)]=_0x2831e2[_0x31ab7e(0x11e)],_0x33491a;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x375864}from'ckeditor5/src/core.js';import{FileRepository as _0x113a9b}from'ckeditor5/src/upload.js';import _0x2f80da from'./uploadcareediting.js';import _0x1ecba6 from'./utils/uploadutils.js';import{getImageUrls as _0x1ef5a3}from'./utils/editingutils.js';export default class p extends _0x375864{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x113a9b,_0x2f80da];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xb96aa6=this['editor'];if(!!!_0xb96aa6['config']['get']('uploadcare'))return;_0xb96aa6['plugins']['get'](_0x113a9b)['createUploadAdapter']=_0xb1eca0=>new A(_0xb1eca0,_0xb96aa6),_0xb96aa6['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x507b54,{imageElement:_0x5604ee,data:_0x3a0cc5})=>{_0xb96aa6['model']['change'](_0x5e570a=>{_0x5e570a['setAttribute']('uploadcareImageId',_0x3a0cc5['uploadcareImageId'],_0x5604ee);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x6d07b0,_0x1afa21){this['loader']=_0x6d07b0,this['editor']=_0x1afa21,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x211444=this['editor']['config']['get']('uploadcare.pubkey'),_0x3255a6=await this['loader']['file'];return _0x1ecba6['upload']({'file':_0x3255a6,'publicKey':_0x211444,'signal':this['controller']['signal'],'onProgress':_0x50cd40=>{_0x50cd40&&_0x50cd40['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x50cd40['value']);}})['then'](async _0x5ae67f=>{const {imageFallbackUrl:_0x555526,imageSources:_0x38c9e4}=_0x1ef5a3(_0x5ae67f['cdnUrl'],_0x5ae67f['imageInfo']['width']);return{'uploadcareImageId':_0x5ae67f['uuid'],'default':_0x555526,'sources':_0x38c9e4};})['catch'](()=>{const _0xf1e09d=t('Cannot\x20upload\x20file:')+('\x20'+_0x3255a6['name']+'.');return Promise['reject'](_0xf1e09d);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x403bb8}from'../uploadcareconfig.js';export function getTranslation(_0x240a84,_0x220989,_0x133fd0){const t=_0x240a84['t'],_0x30dabb=_0x240a84['t'];switch(_0x220989){case _0x403bb8['Local']:return{'text':_0x30dabb('Insert'===_0x133fd0?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x30dabb('From\x20computer')};case _0x403bb8['URL']:return{'text':'Insert'===_0x133fd0?_0x30dabb('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x30dabb('Via\x20URL')};case _0x403bb8['Dropbox']:return{'text':t('Insert'===_0x133fd0?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x403bb8['Facebook']:return{'text':t('Insert'===_0x133fd0?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x403bb8['GDrive']:return{'text':t('Insert'===_0x133fd0?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x403bb8['GPhotos']:return{'text':t('Insert'===_0x133fd0?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x403bb8['Instagram']:return{'text':t('Insert'===_0x133fd0?'Insert\x20with\x20Instagram':'Replace\x20with\x20Instagram'),'shortText':t('With\x20Instagram')};case _0x403bb8['OneDrive']:return{'text':t('Insert'===_0x133fd0?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x220989;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x17c5(_0x16178a,_0x2d2615){var _0x1b2ae9=_0x1b2a();return _0x17c5=function(_0x17c5ff,_0x38cdd7){_0x17c5ff=_0x17c5ff-0xe2;var _0x44b681=_0x1b2ae9[_0x17c5ff];return _0x44b681;},_0x17c5(_0x16178a,_0x2d2615);}var _0xc7b861=_0x17c5;(function(_0x1afb8d,_0x5c39ad){var _0x3cef80=_0x17c5,_0x4922a4=_0x1afb8d();while(!![]){try{var _0x489b86=-parseInt(_0x3cef80(0xed))/0x1*(parseInt(_0x3cef80(0xe5))/0x2)+-parseInt(_0x3cef80(0xe4))/0x3*(parseInt(_0x3cef80(0xee))/0x4)+parseInt(_0x3cef80(0xe8))/0x5+-parseInt(_0x3cef80(0xf0))/0x6*(-parseInt(_0x3cef80(0xf2))/0x7)+parseInt(_0x3cef80(0xeb))/0x8+-parseInt(_0x3cef80(0xef))/0x9+-parseInt(_0x3cef80(0xe9))/0xa*(-parseInt(_0x3cef80(0xe6))/0xb);if(_0x489b86===_0x5c39ad)break;else _0x4922a4['push'](_0x4922a4['shift']());}catch(_0x129986){_0x4922a4['push'](_0x4922a4['shift']());}}}(_0x1b2a,0x46cb7));import{FocusTracker as _0x729e63}from'ckeditor5/src/utils.js';function _0x1b2a(){var _0x314498=['bindTemplate','2963429myIzUK','focusCycler','createCollection','forwardCycle','focusTracker','fire','1075521GYmKwI','95042CalYrs','22LVRGvL','getFocusableElement','264745zWKvcy','2980520FtZFjy','true','546640HwJZWW','div','5FqTqyj','4TZDCLp','2291787RllRhL','6ULWiTy'];_0x1b2a=function(){return _0x314498;};return _0x1b2a();}import{View as _0x18bf4c,FocusCycler as _0x50bb2e}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0x18bf4c{[_0xc7b861(0xe2)];[_0xc7b861(0xf3)];constructor(_0x1c6fbb){var _0x572ab5=_0xc7b861;super(_0x1c6fbb),this[_0x572ab5(0xe2)]=new _0x729e63(),this[_0x572ab5(0xf3)]=new _0x50bb2e({'focusables':this[_0x572ab5(0xf4)](),'focusTracker':this[_0x572ab5(0xe2)]});}[_0xc7b861(0xe7)](){var _0x2c5ec9=_0xc7b861;return{'tag':_0x2c5ec9(0xec),'attributes':{'aria-hidden':_0x2c5ec9(0xea),'tabindex':'0'},'on':{'focus':this[_0x2c5ec9(0xf1)]['to'](()=>{var _0x230c7f=_0x2c5ec9;this[_0x230c7f(0xf3)][_0x230c7f(0xe3)](_0x230c7f(0xf5));})}};}}
|