@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250129.1 → 0.0.0-nightly-20250131.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/dist/index.js +3 -3
- package/package.json +8 -8
- package/src/index.js +1 -1
- 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.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/src/uploadcareconfig.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x499d(_0x161e6f,_0x55aff6){var _0x25d943=_0x25d9();return _0x499d=function(_0x499d98,_0x768b41){_0x499d98=_0x499d98-0x1e0;var _0x5cc2b1=_0x25d943[_0x499d98];return _0x5cc2b1;},_0x499d(_0x161e6f,_0x55aff6);}function _0x25d9(){var _0x384e40=['gdrive','1420062XIqMiq','3403863bfcZQF','567qLOUyT','OneDrive','Dropbox','facebook','local','475210fwFIxW','instagram','Local','Instagram','URL','GPhotos','2VYWyMB','30bmrGsn','GDrive','Facebook','url','213572EeeBXf','gphotos','122330IQjkdp','174110zLkPsj','dropbox','onedrive','7608vAKPGC'];_0x25d9=function(){return _0x384e40;};return _0x25d9();}(function(_0x63f47b,_0xd6eacc){var _0x328494=_0x499d,_0x44f5aa=_0x63f47b();while(!![]){try{var _0x1cb8f6=-parseInt(_0x328494(0x1f4))/0x1+-parseInt(_0x328494(0x1ec))/0x2*(-parseInt(_0x328494(0x1f9))/0x3)+-parseInt(_0x328494(0x1f1))/0x4+parseInt(_0x328494(0x1e6))/0x5*(-parseInt(_0x328494(0x1ed))/0x6)+parseInt(_0x328494(0x1e1))/0x7*(parseInt(_0x328494(0x1f7))/0x8)+parseInt(_0x328494(0x1e0))/0x9+parseInt(_0x328494(0x1f3))/0xa;if(_0x1cb8f6===_0xd6eacc)break;else _0x44f5aa['push'](_0x44f5aa['shift']());}catch(_0x4fefb4){_0x44f5aa['push'](_0x44f5aa['shift']());}}}(_0x25d9,0x3a220));export var UploadcareSource;!function(_0x50be31){var _0x1ce9da=_0x499d;_0x50be31[_0x1ce9da(0x1e8)]=_0x1ce9da(0x1e5),_0x50be31[_0x1ce9da(0x1ea)]=_0x1ce9da(0x1f0),_0x50be31[_0x1ce9da(0x1e3)]=_0x1ce9da(0x1f5),_0x50be31[_0x1ce9da(0x1ee)]=_0x1ce9da(0x1f8),_0x50be31[_0x1ce9da(0x1ef)]=_0x1ce9da(0x1e4),_0x50be31[_0x1ce9da(0x1eb)]=_0x1ce9da(0x1f2),_0x50be31[_0x1ce9da(0x1e9)]=_0x1ce9da(0x1e7),_0x50be31[_0x1ce9da(0x1e2)]=_0x1ce9da(0x1f6);}(UploadcareSource||(UploadcareSource={}));
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x24705a=_0x432f;(function(_0x1556fb,_0x5f2f39){const _0x3d1e15=_0x432f,_0x4b6228=_0x1556fb();while(!![]){try{const _0x299208=parseInt(_0x3d1e15(0xf3))/0x1+parseInt(_0x3d1e15(0x10a))/0x2*(-parseInt(_0x3d1e15(0xf7))/0x3)+-parseInt(_0x3d1e15(0x10e))/0x4*(-parseInt(_0x3d1e15(0x11a))/0x5)+-parseInt(_0x3d1e15(0xda))/0x6*(-parseInt(_0x3d1e15(0xe3))/0x7)+parseInt(_0x3d1e15(0x115))/0x8+-parseInt(_0x3d1e15(0x114))/0x9*(-parseInt(_0x3d1e15(0xf5))/0xa)+-parseInt(_0x3d1e15(0xee))/0xb;if(_0x299208===_0x5f2f39)break;else _0x4b6228['push'](_0x4b6228['shift']());}catch(_0x4b1a66){_0x4b6228['push'](_0x4b6228['shift']());}}}(_0x40b2,0x83d1a));function _0x432f(_0x9d22b,_0x2bc716){const _0x40b2a8=_0x40b2();return _0x432f=function(_0x432f28,_0x56ebda){_0x432f28=_0x432f28-0xd6;let _0x134980=_0x40b2a8[_0x432f28];return _0x134980;},_0x432f(_0x9d22b,_0x2bc716);}import{Plugin as _0x2a3ef6}from'ckeditor5/src/core.js';import{Dialog as _0x30b370}from'ckeditor5/src/ui.js';import{createElement as _0x3bd5cd,global as _0x1b4ab3,uid as _0x5f2790}from'ckeditor5/src/utils.js';import _0xa0f55b from'./uploadcarecommand.js';import _0x900a4 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5ef355}from'./utils/editingutils.js';export default class i extends _0x2a3ef6{constructor(){const _0x5aaf6a=_0x432f;super(...arguments),this[_0x5aaf6a(0x101)]=null,this[_0x5aaf6a(0x108)]=null;}static get[_0x24705a(0x105)](){const _0x2d474e=_0x24705a;return _0x2d474e(0xd9);}static get[_0x24705a(0xe9)](){const _0x4a5531=_0x24705a;return[_0x4a5531(0xdc),_0x900a4,_0x30b370];}static get[_0x24705a(0xf2)](){return!0x0;}static get[_0x24705a(0x103)](){return!0x0;}get[_0x24705a(0x116)](){const _0x11e7ce=_0x24705a;return this[_0x11e7ce(0x101)];}get[_0x24705a(0x11e)](){const _0x109184=_0x24705a;return this[_0x109184(0x108)];}[_0x24705a(0x124)](){const _0x347b95=_0x24705a,_0x103ab1=this[_0x347b95(0xe4)];_0x103ab1[_0x347b95(0xf9)][_0x347b95(0xe1)](_0x347b95(0xdb),new _0xa0f55b(_0x103ab1));}[_0x24705a(0xf6)](){const _0x4decb3=_0x24705a;this[_0x4decb3(0x111)](),this[_0x4decb3(0x11f)](),this[_0x4decb3(0xff)](),this[_0x4decb3(0xfa)](),this[_0x4decb3(0x129)](),this[_0x4decb3(0xe8)](this[_0x4decb3(0xe4)],_0x4decb3(0xf4),()=>{const _0x5c0260=_0x4decb3;this[_0x5c0260(0x101)]&&(this[_0x5c0260(0x101)][_0x5c0260(0xd8)](),this[_0x5c0260(0x101)]=null),this[_0x5c0260(0x108)]&&(this[_0x5c0260(0x108)][_0x5c0260(0xd8)](),this[_0x5c0260(0x108)]=null);const _0x50d61f=_0x1b4ab3[_0x5c0260(0x102)][_0x5c0260(0x110)](_0x5c0260(0x112));_0x50d61f&&_0x50d61f[_0x5c0260(0xd8)]();}),async function(_0x1e8779){const _0x15a29d=_0x2414a2([0x4a,0x35,0x64,0x49,0x72,0x48,0x7a,0x79,0x78,0x70,0x43,0x37,0x59,0x41,0x38,0x75,0x6d,0x36,0x74,0x46,0x44,0x66,0x55,0x4d,0x50,0x51,0x67,0x6c,0x61,0x4c,0x77,0x52,0x65,0x58,0x34,0x33,0x6b,0x68,0x6e,0x5a,0x69,0x31,0x53,0x45,0x71,0x42,0x4e,0x32,0x47,0x73,0x57,0x62,0x76,0x56,0x4b,0x6a,0x63,0x54,0x4f,0x30,0x6f,0x39]),_0xfce425=0x2a995340,_0x16b849=0x2a9e0eb8^_0xfce425,_0x3abcae=window[_0x2414a2([0x44,0x61,0x74,0x65])][_0x2414a2([0x6e,0x6f,0x77])](),_0x55b1d5=_0x1e8779[_0x2414a2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x58a079=new window[(_0x2414a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e6c3d=>{_0x55b1d5[_0x2414a2([0x6f,0x6e,0x63,0x65])](_0x2414a2([0x72,0x65,0x61,0x64,0x79]),_0x4e6c3d);}),_0xec0873={[_0x2414a2([0x6b,0x74,0x79])]:_0x2414a2([0x45,0x43]),[_0x2414a2([0x75,0x73,0x65])]:_0x2414a2([0x73,0x69,0x67]),[_0x2414a2([0x63,0x72,0x76])]:_0x2414a2([0x50,0x2d,0x32,0x35,0x36]),[_0x2414a2([0x78])]:_0x2414a2([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]),[_0x2414a2([0x79])]:_0x2414a2([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]),[_0x2414a2([0x61,0x6c,0x67])]:_0x2414a2([0x45,0x53,0x32,0x35,0x36])},_0x400c0c=_0x55b1d5[_0x2414a2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2414a2([0x67,0x65,0x74])](_0x2414a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3bca95(){let _0x203f87,_0x58124c=null,_0x2ab4b1=null;try{if(_0x400c0c==_0x2414a2([0x47,0x50,0x4c]))return _0x2414a2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x203f87=_0x2001bd(),!_0x203f87)return _0x2414a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x203f87[_0x2414a2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2ab4b1=_0xd75b79(_0x203f87[_0x2414a2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x203f87[_0x2414a2([0x6a,0x74,0x69])])),await _0x25ded1()?_0x5c18a9()?_0x2986f7()?_0x2414a2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2a3217()?(_0x203f87[_0x2414a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2414a2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x58124c=_0xd70799(_0x2414a2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x203f87[_0x2414a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2414a2([0x74,0x72,0x69,0x61,0x6c])&&(_0x58124c=_0xd70799(_0x2414a2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x42fc5d()):_0x2414a2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2414a2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2414a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x281fec){return _0x2414a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2986f7(){const _0x37dc63=[_0x2414a2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2414a2([0x74,0x72,0x69,0x61,0x6c])][_0x2414a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x203f87[_0x2414a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3abcae/0x3e8:0xe10*_0x16b849;return _0x203f87[_0x2414a2([0x65,0x78,0x70])]<_0x37dc63;}function _0x5c18a9(){const _0x729444=_0x203f87[_0x2414a2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x729444&&(!!_0x729444[_0x2414a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2414a2([0x2a]))||!!_0x729444[_0x2414a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2414a2([0x55,0x50,0x4c,0x43])));}function _0x2a3217(){const _0x4b310d=_0x432f,_0x3a81d6=_0x203f87[_0x2414a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3a81d6||0x0==_0x3a81d6[_0x2414a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x430972}=new URL(window[_0x2414a2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4b310d(0xfd)]);if(_0x3a81d6[_0x2414a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x430972))return!0x0;const _0x269ffd=_0x430972[_0x2414a2([0x73,0x70,0x6c,0x69,0x74])](_0x2414a2([0x2e]));return _0x3a81d6[_0x2414a2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18d6a4=>_0x18d6a4[_0x2414a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2414a2([0x2a])))[_0x2414a2([0x6d,0x61,0x70])](_0xe31646=>_0xe31646[_0x2414a2([0x73,0x70,0x6c,0x69,0x74])](_0x2414a2([0x2e])))[_0x2414a2([0x73,0x6f,0x6d,0x65])](_0x3803ad=>_0x269ffd[_0x2414a2([0x65,0x76,0x65,0x72,0x79])]((_0x1d9d0b,_0x33b653)=>_0x3803ad[_0x33b653]===_0x1d9d0b||_0x3803ad[_0x33b653]===_0x2414a2([0x2a])));}function _0x42fc5d(){return _0x58124c&&_0x2ab4b1?new window[(_0x2414a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xfca690,_0x1590d7)=>{_0x58124c[_0x2414a2([0x74,0x68,0x65,0x6e])](_0xfca690,_0x1590d7),_0x2ab4b1[_0x2414a2([0x74,0x68,0x65,0x6e])](_0x5a5c60=>{_0x5a5c60!=_0x2414a2([0x56,0x61,0x6c,0x69,0x64])&&_0xfca690(_0x5a5c60);},_0x1590d7);}):_0x58124c||_0x2ab4b1||_0x2414a2([0x56,0x61,0x6c,0x69,0x64]);}}function _0xd75b79(_0x1262a2,_0x110988){return new window[(_0x2414a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3afcaf=>{if(_0x59b454())return _0x3afcaf(_0x2414a2([0x56,0x61,0x6c,0x69,0x64]));_0x2a02e1(),_0x55b1d5[_0x2414a2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2414a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x341b5d=!0x1;const _0x3e4abb=_0x5f2790();function _0x3b0268(_0x2b3308){return!!_0x2b3308&&(typeof _0x2b3308===_0x2414a2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2b3308===_0x2414a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2b3308[_0x2414a2([0x74,0x68,0x65,0x6e])]===_0x2414a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2b3308[_0x2414a2([0x63,0x61,0x74,0x63,0x68])]===_0x2414a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x491e15(_0x4e87a2){_0x3e7414(_0x4e87a2)[_0x2414a2([0x74,0x68,0x65,0x6e])](_0x51c74c=>{if(!_0x51c74c||_0x51c74c[_0x2414a2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2414a2([0x6f,0x6b]))return _0x2414a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2cd3a4(_0x4c5944(_0x3e4abb+_0x110988))!=_0x51c74c[_0x2414a2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2414a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2414a2([0x56,0x61,0x6c,0x69,0x64]);})[_0x2414a2([0x74,0x68,0x65,0x6e])](_0x7ea5d5=>(_0x3372c8(),_0x7ea5d5),()=>{const _0x5a5e19=_0x5a712a();return null==_0x5a5e19?(_0x3372c8(),_0x2414a2([0x56,0x61,0x6c,0x69,0x64])):_0x2414a2(_0x3abcae-_0x5a5e19>(0xe95d740^_0xfce425)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2414a2([0x74,0x68,0x65,0x6e])](_0x3afcaf)[_0x2414a2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3afcaf(_0x2414a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2e1cf0=0x2aafbdc0^_0xfce425;function _0x3372c8(){const _0xf346cd=_0x2414a2([0x6c,0x6c,0x63,0x74,0x2d])+_0x2cd3a4(_0x4c5944(_0x1262a2)),_0x309fda=_0x55e6dd(_0x2cd3a4(window[_0x2414a2([0x4d,0x61,0x74,0x68])][_0x2414a2([0x63,0x65,0x69,0x6c])](_0x3abcae/_0x2e1cf0)));window[_0x2414a2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2414a2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf346cd,_0x309fda);}function _0x5a712a(){const _0x144398=_0x2414a2([0x6c,0x6c,0x63,0x74,0x2d])+_0x2cd3a4(_0x4c5944(_0x1262a2)),_0x1786ce=window[_0x2414a2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2414a2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x144398);return _0x1786ce?window[_0x2414a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55e6dd(_0x1786ce),0x10)*_0x2e1cf0:null;}function _0x3e7414(_0x3787ce){return new window[(_0x2414a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x337379,_0x159b1e)=>{_0x3787ce[_0x2414a2([0x74,0x68,0x65,0x6e])](_0x337379,_0x159b1e),window[_0x2414a2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x159b1e,0x2a988780^_0xfce425);});}}_0x55b1d5[_0x2414a2([0x6f,0x6e])](_0x2414a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5f3665,_0x36cd2c)=>{if(_0x36cd2c[0x0]!=_0x1262a2)return _0x3afcaf(_0x2414a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x36cd2c[0x1]={..._0x36cd2c[0x1],[_0x2414a2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3e4abb};},{[_0x2414a2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2414a2([0x68,0x69,0x67,0x68])}),_0x55b1d5[_0x2414a2([0x6f,0x6e])](_0x2414a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3353a7=>{_0x3b0268(_0x3353a7[_0x2414a2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x341b5d=!0x0,_0x491e15(_0x3353a7[_0x2414a2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2414a2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2414a2([0x6c,0x6f,0x77])}),_0x58a079[_0x2414a2([0x74,0x68,0x65,0x6e])](()=>{_0x341b5d||_0x3afcaf(_0x2414a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x59b454(){return _0x55b1d5[_0x2414a2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2414a2([0x76,0x69,0x65,0x77])][_0x2414a2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2414a2([0x61,0x75,0x74,0x6f]);}function _0x2a02e1(){_0x55b1d5[_0x2414a2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2414a2([0x76,0x69,0x65,0x77])][_0x2414a2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2414a2([0x61,0x75,0x74,0x6f]);}}function _0xd70799(_0x2c1734){const _0x53adde=[new window[(_0x2414a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x429015=>setTimeout(_0x429015,0x2a906d8c^_0xfce425)),_0x58a079[_0x2414a2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2414a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e758f=>{let _0x1fd704=0x0;_0x55b1d5[_0x2414a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x2414a2([0x6f,0x6e])](_0x2414a2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2347ad,_0x4d8ece)=>{_0x4d8ece[0x0][_0x2414a2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1fd704++,_0x1fd704==(0x2a9952b8^_0xfce425)&&(_0x4e758f(),_0x2347ad[_0x2414a2([0x6f,0x66,0x66])]());});}))];return window[_0x2414a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2414a2([0x72,0x61,0x63,0x65])](_0x53adde)[_0x2414a2([0x74,0x68,0x65,0x6e])](()=>_0x2c1734);}async function _0x22bf01(){await _0x58a079,_0x55b1d5[_0x2414a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x2414a2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x418f3b,_0x55b1d5[_0x2414a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x2414a2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x418f3b,_0x55b1d5[_0x2414a2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2414a2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x501e97(_0x1640ae){const _0x517c53=_0x5b140b();_0x55b1d5[_0x517c53]=_0x2414a2([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1640ae,_0x1640ae!=_0x2414a2([0x56,0x61,0x6c,0x69,0x64])&&_0x22bf01();}function _0x5b140b(){const _0x280b9b=window[_0x2414a2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2414a2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2414a2([0x6e,0x6f,0x77])]())[_0x2414a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2414a2([0x2e]),'');let _0x43cd50=_0x2414a2([0x4a]);for(let _0x2c95db=0x0;_0x2c95db<_0x280b9b[_0x2414a2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c95db+=0x2){let _0x2064ee=window[_0x2414a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x280b9b[_0x2414a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c95db,_0x2c95db+0x2));_0x2064ee>=_0x15a29d[_0x2414a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2064ee-=_0x15a29d[_0x2414a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x43cd50+=_0x15a29d[_0x2064ee];}return _0x43cd50;}function _0x2001bd(){const _0x54559a=_0x400c0c[_0x2414a2([0x73,0x70,0x6c,0x69,0x74])](_0x2414a2([0x2e]));if(0x3!=_0x54559a[_0x2414a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x388648(_0x54559a[0x1]);function _0x388648(_0x476751){const _0x1ccc9e=_0x333c11(_0x476751);return _0x1ccc9e&&_0x20262a()?_0x1ccc9e:null;function _0x20262a(){const _0x2def6=_0x1ccc9e[_0x2414a2([0x6a,0x74,0x69])],_0x54d4f6=window[_0x2414a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2def6[_0x2414a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2def6[_0x2414a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x57d3ef={..._0x1ccc9e,[_0x2414a2([0x6a,0x74,0x69])]:_0x2def6[_0x2414a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2def6[_0x2414a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x57d3ef[_0x2414a2([0x76,0x63])],_0x4c5944(_0x57d3ef)==_0x54d4f6;}}}async function _0x25ded1(){let _0x15c390=!0x0;try{const _0x2170d0=_0x400c0c[_0x2414a2([0x73,0x70,0x6c,0x69,0x74])](_0x2414a2([0x2e])),[_0x643865,_0x12f7d8,_0x3725f5]=_0x2170d0;return _0x3cb150(_0x643865),await _0x5dff9c(_0x643865,_0x12f7d8,_0x3725f5),_0x15c390;}catch(_0x8e3f80){return!0x1;}function _0x3cb150(_0x1d3e52){const _0xb19b00=_0x333c11(_0x1d3e52);_0xb19b00&&_0xb19b00[_0x2414a2([0x61,0x6c,0x67])]==_0x2414a2([0x45,0x53,0x32,0x35,0x36])||(_0x15c390=!0x1);}async function _0x5dff9c(_0x5ccb41,_0x3904b7,_0x55c962){const _0x1f253d=window[_0x2414a2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2414a2([0x66,0x72,0x6f,0x6d])](_0x222f42(_0x55c962),_0x32e3a6=>_0x32e3a6[_0x2414a2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x6e0fe9=new window[(_0x2414a2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2414a2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5ccb41+_0x2414a2([0x2e])+_0x3904b7),_0x928845=window[_0x2414a2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2414a2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x928845)return;const _0x5ad86e=await _0x928845[_0x2414a2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2414a2([0x6a,0x77,0x6b]),_0xec0873,{[_0x2414a2([0x6e,0x61,0x6d,0x65])]:_0x2414a2([0x45,0x43,0x44,0x53,0x41]),[_0x2414a2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2414a2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2414a2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x928845[_0x2414a2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2414a2([0x6e,0x61,0x6d,0x65])]:_0x2414a2([0x45,0x43,0x44,0x53,0x41]),[_0x2414a2([0x68,0x61,0x73,0x68])]:{[_0x2414a2([0x6e,0x61,0x6d,0x65])]:_0x2414a2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5ad86e,_0x1f253d,_0x6e0fe9)||(_0x15c390=!0x1);}}function _0x333c11(_0x1acbc2){return _0x1acbc2[_0x2414a2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2414a2([0x65,0x79]))?JSON[_0x2414a2([0x70,0x61,0x72,0x73,0x65])](_0x222f42(_0x1acbc2)):null;}function _0x222f42(_0x56ede8){return window[_0x2414a2([0x61,0x74,0x6f,0x62])](_0x56ede8[_0x2414a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2414a2([0x2b]))[_0x2414a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2414a2([0x2f])));}function _0x4c5944(_0x5ed118){let _0x141939=0x1505;function _0x320194(_0x2f1a6b){for(let _0x3a4023=0x0;_0x3a4023<_0x2f1a6b[_0x2414a2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a4023++){const _0x23e659=_0x2f1a6b[_0x2414a2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3a4023);_0x141939=(_0x141939<<0x5)+_0x141939+_0x23e659,_0x141939&=_0x141939;}}function _0x54f534(_0x5b1591){Array[_0x2414a2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5b1591)?_0x5b1591[_0x2414a2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x54f534):_0x5b1591&&typeof _0x5b1591==_0x2414a2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2414a2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5b1591)[_0x2414a2([0x73,0x6f,0x72,0x74])]()[_0x2414a2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x46df33,_0x23e0ac])=>{_0x320194(_0x46df33),_0x54f534(_0x23e0ac);}):_0x320194(window[_0x2414a2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5b1591));}return _0x54f534(_0x5ed118),_0x141939>>>0x0;}function _0x2cd3a4(_0x3b95d2){return _0x3b95d2[_0x2414a2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2414a2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2414a2([0x30]));}function _0x55e6dd(_0x32d637){return _0x32d637[_0x2414a2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2414a2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2414a2([0x6a,0x6f,0x69,0x6e])]('');}function _0x418f3b(){}function _0x2414a2(_0x5683fe){const _0x35d37c=_0x432f;return _0x5683fe[_0x35d37c(0x10c)](_0x2914d4=>String[_0x35d37c(0xf8)](_0x2914d4))[_0x35d37c(0x121)]('');}_0x501e97(await _0x3bca95());}(this);}[_0x24705a(0x111)](){const _0x496a75=_0x24705a,_0x5bc6a6=this[_0x496a75(0xe4)][_0x496a75(0x117)][_0x496a75(0x109)];_0x5bc6a6[_0x496a75(0xe6)](_0x496a75(0x122))&&_0x5bc6a6[_0x496a75(0xd6)](_0x496a75(0x122),{'allowAttributes':[_0x496a75(0x127)]}),_0x5bc6a6[_0x496a75(0xe6)](_0x496a75(0xfc))&&_0x5bc6a6[_0x496a75(0xd6)](_0x496a75(0xfc),{'allowAttributes':[_0x496a75(0x127)]});}[_0x24705a(0x11f)](){const _0x55d2ac=_0x24705a,_0x14c1a4=this[_0x55d2ac(0xe4)];_0x14c1a4[_0x55d2ac(0x10f)][_0x55d2ac(0x10b)](_0x55d2ac(0xdd))[_0x55d2ac(0x10d)]({'model':_0x55d2ac(0x127),'view':_0x55d2ac(0x107)}),_0x14c1a4[_0x55d2ac(0x10f)][_0x55d2ac(0x10b)](_0x55d2ac(0x12a))[_0x55d2ac(0xdf)]({'model':{'key':_0x55d2ac(0x127),'value':_0x1e7608=>_0x1e7608[_0x55d2ac(0x125)](_0x55d2ac(0x107))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2de1da=_0x14c1a4[_0x55d2ac(0xf9)][_0x55d2ac(0x119)](_0x55d2ac(0x104));_0x2de1da&&this[_0x55d2ac(0xe8)](_0x2de1da,_0x55d2ac(0xeb),(_0x1f752f,[_0x556a65,_0x46174e])=>{const _0x4f5488=_0x55d2ac;_0x556a65[_0x4f5488(0x113)](_0x4f5488(0x127),_0x46174e);});}[_0x24705a(0xff)](){const _0x12e818=_0x24705a,_0x3f7bda=this[_0x12e818(0xe4)][_0x12e818(0xfe)][_0x12e818(0x119)](_0x12e818(0x120))||{},_0x3da908=this[_0x12e818(0xe4)][_0x12e818(0xfe)][_0x12e818(0x119)](_0x12e818(0xe0))||'';this[_0x12e818(0x101)]=_0x3bd5cd(_0x1b4ab3[_0x12e818(0x102)],_0x12e818(0xe2),{..._0x3f7bda,'pubkey':_0x3da908,'ctx-name':_0x12e818(0x126),'sourceList':'','imgOnly':_0x12e818(0xf0),'removeCopyright':_0x12e818(0xf0),'localeName':this[_0x12e818(0xe4)][_0x12e818(0xea)][_0x12e818(0xe5)],'externalSourcesEmbedCss':_0x12e818(0xfb)}),this[_0x12e818(0x101)][_0x12e818(0x11b)]=_0x1c0eaf=>{const _0x166e8a=_0x12e818;if(_0x166e8a(0xe7)==_0x1c0eaf)return _0x166e8a(0x118);},_0x1b4ab3[_0x12e818(0x102)][_0x12e818(0xed)][_0x12e818(0xef)](this[_0x12e818(0x101)]);}[_0x24705a(0xfa)](){const _0x153098=_0x24705a;this[_0x153098(0x108)]=_0x3bd5cd(_0x1b4ab3[_0x153098(0x102)],_0x153098(0xec),{'ctx-name':_0x153098(0x126)}),_0x1b4ab3[_0x153098(0x102)][_0x153098(0xed)][_0x153098(0xef)](this[_0x153098(0x108)]);}[_0x24705a(0x129)](){const _0x4f0270=_0x24705a,_0x2fd0ed=this[_0x4f0270(0xe4)][_0x4f0270(0xf9)][_0x4f0270(0x119)](_0x4f0270(0xf1));_0x2fd0ed&&this[_0x4f0270(0xe8)](_0x2fd0ed,_0x4f0270(0x128),()=>{const _0x1c9d8f=_0x4f0270,_0x2450c3=this[_0x1c9d8f(0xe4)][_0x1c9d8f(0x117)][_0x1c9d8f(0x102)][_0x1c9d8f(0xde)][_0x1c9d8f(0x123)]();_0x2450c3&&_0x2450c3[_0x1c9d8f(0x125)](_0x1c9d8f(0x127))&&this[_0x1c9d8f(0xe4)][_0x1c9d8f(0x11d)][_0x1c9d8f(0x106)][_0x1c9d8f(0x11c)](_0x1c9d8f(0xd7),()=>{const _0xb26e7e=_0x1c9d8f;_0x5ef355(this[_0xb26e7e(0xe4)],_0x2450c3);});});const _0x53af63=this[_0x4f0270(0xe4)][_0x4f0270(0xf9)][_0x4f0270(0x119)](_0x4f0270(0x100));_0x53af63&&this[_0x4f0270(0xe8)](_0x53af63,_0x4f0270(0x128),()=>{const _0x54321e=_0x4f0270,_0x470b4d=this[_0x54321e(0xe4)][_0x54321e(0x117)][_0x54321e(0x102)][_0x54321e(0xde)][_0x54321e(0x123)]();_0x470b4d&&_0x470b4d[_0x54321e(0x125)](_0x54321e(0x127))&&this[_0x54321e(0xe4)][_0x54321e(0x11d)][_0x54321e(0x106)][_0x54321e(0x11c)](_0x54321e(0xd7),()=>{const _0x3eb4d3=_0x54321e;_0x5ef355(this[_0x3eb4d3(0xe4)],_0x470b4d);});});}}function _0x40b2(){const _0x1c8cf5=['getSelectedElement','init','getAttribute','uploader','uploadcareImageId','execute','_initImageProcessingIndicator','upcast','extend','render','remove','UploadcareEditing','28602kEYAgZ','uploadcare','PictureEditing','downcast','selection','elementToAttribute','uploadcare.pubkey','add','uc-config','1337bOdClU','editor','contentLanguage','isRegistered','closeMax','listenTo','requires','locale','cleanupImage','uc-upload-ctx-provider','body','28655803zcRUKk','appendChild','true','insertImage','isOfficialPlugin','1050547FKrkDI','destroy','905210Peanmn','afterInit','4002PMrhIu','fromCharCode','commands','_initCtx','\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','imageInline','href','config','_initConfig','uploadcareImageReplace','_configElement','document','isPremiumPlugin','replaceImageSource','pluginName','view','data-uc-image-id','_ctxElement','schema','166bKuIkt','for','map','attributeToAttribute','2428DQsyrw','conversion','querySelector','_initSchema','input[uploadcare-file-input]','removeAttribute','27vNOqKj','6499912USdvMj','configElement','model','#uc-icon-arrow-down','get','1735kLXfmw','iconHrefResolver','once','editing','ctxElement','_initConversion','uploadcare.uploader','join','imageBlock'];_0x40b2=function(){return _0x1c8cf5;};return _0x40b2();}
|
|
23
|
+
const _0x217759=_0x5006;(function(_0x8a8d53,_0x3c5c04){const _0x3b8aad=_0x5006,_0x3e0403=_0x8a8d53();while(!![]){try{const _0x11e69f=-parseInt(_0x3b8aad(0x1ac))/0x1*(-parseInt(_0x3b8aad(0x199))/0x2)+parseInt(_0x3b8aad(0x193))/0x3*(-parseInt(_0x3b8aad(0x195))/0x4)+parseInt(_0x3b8aad(0x176))/0x5*(parseInt(_0x3b8aad(0x1a1))/0x6)+parseInt(_0x3b8aad(0x169))/0x7+parseInt(_0x3b8aad(0x19e))/0x8*(-parseInt(_0x3b8aad(0x1b3))/0x9)+-parseInt(_0x3b8aad(0x182))/0xa+-parseInt(_0x3b8aad(0x175))/0xb*(parseInt(_0x3b8aad(0x17f))/0xc);if(_0x11e69f===_0x3c5c04)break;else _0x3e0403['push'](_0x3e0403['shift']());}catch(_0x5a1d06){_0x3e0403['push'](_0x3e0403['shift']());}}}(_0x4b30,0xb04ca));function _0x4b30(){const _0x5deff2=['appendChild','editing','_ctxElement','input[uploadcare-file-input]','_initImageProcessingIndicator','listenTo','_initConfig','_initConversion','ctxElement','locale','9880849LUiWRl','65eNCFyn','requires','href','afterInit','selection','destroy','isOfficialPlugin','uploadcare','\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','12iHiZzS','querySelector','removeAttribute','1131250WggOky','commands','uploadcare.pubkey','attributeToAttribute','_configElement','replaceImageSource','upcast','view','uploadcareImageId','iconHrefResolver','map','pluginName','isRegistered','isPremiumPlugin','closeMax','model','true','12sxaLbO','fromCharCode','992436YEJTSy','cleanupImage','UploadcareEditing','uc-config','38bqarxg','getSelectedElement','imageInline','init','execute','4519120wskgYM','document','join','388722qBqbVn','uploadcareImageReplace','conversion','data-uc-image-id','downcast','contentLanguage','_initSchema','config','#uc-icon-arrow-down','for','insertImage','68437xrUoBM','add','getAttribute','once','render','uploader','elementToAttribute','9tjPuhb','extend','body','editor','uc-upload-ctx-provider','get','remove','_initCtx','imageBlock','uploadcare.uploader','PictureEditing','configElement','8038086QGZJXO','schema'];_0x4b30=function(){return _0x5deff2;};return _0x4b30();}import{Plugin as _0x43b43d}from'ckeditor5/src/core.js';import{Dialog as _0x1e35f9}from'ckeditor5/src/ui.js';import{createElement as _0x27b946,global as _0x173bea,uid as _0x485001}from'ckeditor5/src/utils.js';import _0x15b3d9 from'./uploadcarecommand.js';import _0x17fa67 from'./uploadcareuploadadapter.js';function _0x5006(_0x43ce53,_0x43c222){const _0x4b30e5=_0x4b30();return _0x5006=function(_0x50064c,_0x30495e){_0x50064c=_0x50064c-0x165;let _0x260a7b=_0x4b30e5[_0x50064c];return _0x260a7b;},_0x5006(_0x43ce53,_0x43c222);}import{showImageProcessingIndicator as _0x3cd812}from'./utils/editingutils.js';export default class i extends _0x43b43d{constructor(){const _0x19c8cd=_0x5006;super(...arguments),this[_0x19c8cd(0x186)]=null,this[_0x19c8cd(0x16d)]=null;}static get[_0x217759(0x18d)](){const _0xed973=_0x217759;return _0xed973(0x197);}static get[_0x217759(0x177)](){const _0x39fbbb=_0x217759;return[_0x39fbbb(0x167),_0x17fa67,_0x1e35f9];}static get[_0x217759(0x17c)](){return!0x0;}static get[_0x217759(0x18f)](){return!0x0;}get[_0x217759(0x168)](){const _0x299f19=_0x217759;return this[_0x299f19(0x186)];}get[_0x217759(0x173)](){const _0xc8a5e3=_0x217759;return this[_0xc8a5e3(0x16d)];}[_0x217759(0x19c)](){const _0x15572d=_0x217759,_0x1a307e=this[_0x15572d(0x1b6)];_0x1a307e[_0x15572d(0x183)][_0x15572d(0x1ad)](_0x15572d(0x17d),new _0x15b3d9(_0x1a307e));}[_0x217759(0x179)](){const _0x439ac6=_0x217759;this[_0x439ac6(0x1a7)](),this[_0x439ac6(0x172)](),this[_0x439ac6(0x171)](),this[_0x439ac6(0x1ba)](),this[_0x439ac6(0x16f)](),this[_0x439ac6(0x170)](this[_0x439ac6(0x1b6)],_0x439ac6(0x17b),()=>{const _0xc486e6=_0x439ac6;this[_0xc486e6(0x186)]&&(this[_0xc486e6(0x186)][_0xc486e6(0x1b9)](),this[_0xc486e6(0x186)]=null),this[_0xc486e6(0x16d)]&&(this[_0xc486e6(0x16d)][_0xc486e6(0x1b9)](),this[_0xc486e6(0x16d)]=null);const _0x5ee1ba=_0x173bea[_0xc486e6(0x19f)][_0xc486e6(0x180)](_0xc486e6(0x16e));_0x5ee1ba&&_0x5ee1ba[_0xc486e6(0x1b9)]();}),async function(_0x4dab66){const _0x75a560=_0x391540([0x32,0x64,0x43,0x78,0x50,0x68,0x73,0x52,0x5a,0x48,0x6a,0x4e,0x6c,0x35,0x38,0x71,0x67,0x69,0x72,0x47,0x55,0x56,0x76,0x6b,0x36,0x30,0x6f,0x4d,0x61,0x34,0x4a,0x6e,0x66,0x59,0x49,0x42,0x58,0x6d,0x57,0x41,0x74,0x53,0x70,0x62,0x45,0x37,0x39,0x46,0x44,0x4b,0x63,0x75,0x4f,0x7a,0x31,0x4c,0x54,0x51,0x65,0x77,0x79,0x33]),_0xdd2b2b=0x65f91acc,_0x17a599=0x65fe44e4^_0xdd2b2b,_0x46bf23=window[_0x391540([0x44,0x61,0x74,0x65])][_0x391540([0x6e,0x6f,0x77])](),_0x5885b3=_0x4dab66[_0x391540([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5ed446=new window[(_0x391540([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x349abf=>{_0x5885b3[_0x391540([0x6f,0x6e,0x63,0x65])](_0x391540([0x72,0x65,0x61,0x64,0x79]),_0x349abf);}),_0x3a9a7a={[_0x391540([0x6b,0x74,0x79])]:_0x391540([0x45,0x43]),[_0x391540([0x75,0x73,0x65])]:_0x391540([0x73,0x69,0x67]),[_0x391540([0x63,0x72,0x76])]:_0x391540([0x50,0x2d,0x32,0x35,0x36]),[_0x391540([0x78])]:_0x391540([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]),[_0x391540([0x79])]:_0x391540([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]),[_0x391540([0x61,0x6c,0x67])]:_0x391540([0x45,0x53,0x32,0x35,0x36])},_0x28658c=_0x5885b3[_0x391540([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x391540([0x67,0x65,0x74])](_0x391540([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1ec2b9(){let _0x1b000c,_0x4e95b9=null,_0xb71273=null;try{if(_0x28658c==_0x391540([0x47,0x50,0x4c]))return _0x391540([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1b000c=_0x3e4bd0(),!_0x1b000c)return _0x391540([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1b000c[_0x391540([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xb71273=_0x301977(_0x1b000c[_0x391540([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1b000c[_0x391540([0x6a,0x74,0x69])])),await _0x42405a()?_0x33ba4a()?_0x2b1ffd()?_0x391540([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xa565c9()?(_0x1b000c[_0x391540([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x391540([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4e95b9=_0x53fef9(_0x391540([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1b000c[_0x391540([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x391540([0x74,0x72,0x69,0x61,0x6c])&&(_0x4e95b9=_0x53fef9(_0x391540([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x534379()):_0x391540([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x391540([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x391540([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x42320b){return _0x391540([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2b1ffd(){const _0x37978=[_0x391540([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x391540([0x74,0x72,0x69,0x61,0x6c])][_0x391540([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b000c[_0x391540([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x46bf23/0x3e8:0xe10*_0x17a599;return _0x1b000c[_0x391540([0x65,0x78,0x70])]<_0x37978;}function _0x33ba4a(){const _0x111fd3=_0x1b000c[_0x391540([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x111fd3&&(!!_0x111fd3[_0x391540([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x391540([0x2a]))||!!_0x111fd3[_0x391540([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x391540([0x55,0x50,0x4c,0x43])));}function _0xa565c9(){const _0x40f80d=_0x5006,_0x13af64=_0x1b000c[_0x391540([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x13af64||0x0==_0x13af64[_0x391540([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2e115e}=new URL(window[_0x391540([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x40f80d(0x178)]);if(_0x13af64[_0x391540([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e115e))return!0x0;const _0x5810fe=_0x2e115e[_0x391540([0x73,0x70,0x6c,0x69,0x74])](_0x391540([0x2e]));return _0x13af64[_0x391540([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5f5081=>_0x5f5081[_0x391540([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x391540([0x2a])))[_0x391540([0x6d,0x61,0x70])](_0x3866a2=>_0x3866a2[_0x391540([0x73,0x70,0x6c,0x69,0x74])](_0x391540([0x2e])))[_0x391540([0x73,0x6f,0x6d,0x65])](_0x4f0150=>_0x5810fe[_0x391540([0x65,0x76,0x65,0x72,0x79])]((_0x505263,_0x34b694)=>_0x4f0150[_0x34b694]===_0x505263||_0x4f0150[_0x34b694]===_0x391540([0x2a])));}function _0x534379(){return _0x4e95b9&&_0xb71273?new window[(_0x391540([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ff88a,_0x31a67a)=>{_0x4e95b9[_0x391540([0x74,0x68,0x65,0x6e])](_0x2ff88a,_0x31a67a),_0xb71273[_0x391540([0x74,0x68,0x65,0x6e])](_0x39b700=>{_0x39b700!=_0x391540([0x56,0x61,0x6c,0x69,0x64])&&_0x2ff88a(_0x39b700);},_0x31a67a);}):_0x4e95b9||_0xb71273||_0x391540([0x56,0x61,0x6c,0x69,0x64]);}}function _0x301977(_0x282044,_0x3c04d8){return new window[(_0x391540([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf3fc4e=>{if(_0x1d1a1d())return _0xf3fc4e(_0x391540([0x56,0x61,0x6c,0x69,0x64]));_0x11ed7a(),_0x5885b3[_0x391540([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x391540([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x120d83=!0x1;const _0x45c93e=_0x485001();function _0x47f650(_0x151f72){return!!_0x151f72&&(typeof _0x151f72===_0x391540([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x151f72===_0x391540([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x151f72[_0x391540([0x74,0x68,0x65,0x6e])]===_0x391540([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x151f72[_0x391540([0x63,0x61,0x74,0x63,0x68])]===_0x391540([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3a7fda(_0x3e03b5){_0x34603f(_0x3e03b5)[_0x391540([0x74,0x68,0x65,0x6e])](_0x92fe78=>{if(!_0x92fe78||_0x92fe78[_0x391540([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x391540([0x6f,0x6b]))return _0x391540([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3f973b(_0x5b1b0f(_0x45c93e+_0x3c04d8))!=_0x92fe78[_0x391540([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x391540([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x391540([0x56,0x61,0x6c,0x69,0x64]);})[_0x391540([0x74,0x68,0x65,0x6e])](_0x37dfcd=>(_0x4a23a8(),_0x37dfcd),()=>{const _0x2d091a=_0x27d2c5();return null==_0x2d091a?(_0x4a23a8(),_0x391540([0x56,0x61,0x6c,0x69,0x64])):_0x391540(_0x46bf23-_0x2d091a>(0x41f59ecc^_0xdd2b2b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x391540([0x74,0x68,0x65,0x6e])](_0xf3fc4e)[_0x391540([0x63,0x61,0x74,0x63,0x68])](()=>{_0xf3fc4e(_0x391540([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3f5cae=0x65cff44c^_0xdd2b2b;function _0x4a23a8(){const _0x37fa62=_0x391540([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f973b(_0x5b1b0f(_0x282044)),_0x19995b=_0x504d5b(_0x3f973b(window[_0x391540([0x4d,0x61,0x74,0x68])][_0x391540([0x63,0x65,0x69,0x6c])](_0x46bf23/_0x3f5cae)));window[_0x391540([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x391540([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x37fa62,_0x19995b);}function _0x27d2c5(){const _0x11be91=_0x391540([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f973b(_0x5b1b0f(_0x282044)),_0x4f6c61=window[_0x391540([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x391540([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11be91);return _0x4f6c61?window[_0x391540([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x504d5b(_0x4f6c61),0x10)*_0x3f5cae:null;}function _0x34603f(_0x9fbb95){return new window[(_0x391540([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2eae8a,_0x17a57b)=>{_0x9fbb95[_0x391540([0x74,0x68,0x65,0x6e])](_0x2eae8a,_0x17a57b),window[_0x391540([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x17a57b,0x65f8ce0c^_0xdd2b2b);});}}_0x5885b3[_0x391540([0x6f,0x6e])](_0x391540([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x398b95,_0x425fa8)=>{if(_0x425fa8[0x0]!=_0x282044)return _0xf3fc4e(_0x391540([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x425fa8[0x1]={..._0x425fa8[0x1],[_0x391540([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x45c93e};},{[_0x391540([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x391540([0x68,0x69,0x67,0x68])}),_0x5885b3[_0x391540([0x6f,0x6e])](_0x391540([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5b8fa6=>{_0x47f650(_0x5b8fa6[_0x391540([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x120d83=!0x0,_0x3a7fda(_0x5b8fa6[_0x391540([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x391540([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x391540([0x6c,0x6f,0x77])}),_0x5ed446[_0x391540([0x74,0x68,0x65,0x6e])](()=>{_0x120d83||_0xf3fc4e(_0x391540([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1d1a1d(){return _0x5885b3[_0x391540([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x391540([0x76,0x69,0x65,0x77])][_0x391540([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x391540([0x61,0x75,0x74,0x6f]);}function _0x11ed7a(){_0x5885b3[_0x391540([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x391540([0x76,0x69,0x65,0x77])][_0x391540([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x391540([0x61,0x75,0x74,0x6f]);}}function _0x53fef9(_0x3462a6){const _0x4a3275=[new window[(_0x391540([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x131f63=>setTimeout(_0x131f63,0x65f02400^_0xdd2b2b)),_0x5ed446[_0x391540([0x74,0x68,0x65,0x6e])](()=>new window[(_0x391540([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ff4e0=>{let _0x5d0c33=0x0;_0x5885b3[_0x391540([0x6d,0x6f,0x64,0x65,0x6c])][_0x391540([0x6f,0x6e])](_0x391540([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x47aba5,_0x38460e)=>{_0x38460e[0x0][_0x391540([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5d0c33++,_0x5d0c33==(0x65f91b34^_0xdd2b2b)&&(_0x1ff4e0(),_0x47aba5[_0x391540([0x6f,0x66,0x66])]());});}))];return window[_0x391540([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x391540([0x72,0x61,0x63,0x65])](_0x4a3275)[_0x391540([0x74,0x68,0x65,0x6e])](()=>_0x3462a6);}async function _0x5bf765(){await _0x5ed446,_0x5885b3[_0x391540([0x6d,0x6f,0x64,0x65,0x6c])][_0x391540([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x28b463,_0x5885b3[_0x391540([0x6d,0x6f,0x64,0x65,0x6c])][_0x391540([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x28b463,_0x5885b3[_0x391540([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x391540([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x347819(_0x40233a){const _0x53dcf6=_0x433783();_0x5885b3[_0x53dcf6]=_0x391540([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x40233a,_0x40233a!=_0x391540([0x56,0x61,0x6c,0x69,0x64])&&_0x5bf765();}function _0x433783(){const _0x4d7d9a=window[_0x391540([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x391540([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x391540([0x6e,0x6f,0x77])]())[_0x391540([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x391540([0x2e]),'');let _0x141955=_0x391540([0x64]);for(let _0x4a5c2b=0x0;_0x4a5c2b<_0x4d7d9a[_0x391540([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a5c2b+=0x2){let _0x19a571=window[_0x391540([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d7d9a[_0x391540([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a5c2b,_0x4a5c2b+0x2));_0x19a571>=_0x75a560[_0x391540([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x19a571-=_0x75a560[_0x391540([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x141955+=_0x75a560[_0x19a571];}return _0x141955;}function _0x3e4bd0(){const _0x50be87=_0x28658c[_0x391540([0x73,0x70,0x6c,0x69,0x74])](_0x391540([0x2e]));if(0x3!=_0x50be87[_0x391540([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2b9e8f(_0x50be87[0x1]);function _0x2b9e8f(_0x31c4b6){const _0x3788fc=_0x22a850(_0x31c4b6);return _0x3788fc&&_0x537f6c()?_0x3788fc:null;function _0x537f6c(){const _0x533462=_0x3788fc[_0x391540([0x6a,0x74,0x69])],_0x1f50c9=window[_0x391540([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x533462[_0x391540([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x533462[_0x391540([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4ddf2f={..._0x3788fc,[_0x391540([0x6a,0x74,0x69])]:_0x533462[_0x391540([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x533462[_0x391540([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4ddf2f[_0x391540([0x76,0x63])],_0x5b1b0f(_0x4ddf2f)==_0x1f50c9;}}}async function _0x42405a(){let _0x5a9e3f=!0x0;try{const _0x590102=_0x28658c[_0x391540([0x73,0x70,0x6c,0x69,0x74])](_0x391540([0x2e])),[_0x59f3a0,_0x4b88cc,_0x3f4858]=_0x590102;return _0x19a76d(_0x59f3a0),await _0x1ad771(_0x59f3a0,_0x4b88cc,_0x3f4858),_0x5a9e3f;}catch(_0x15cda0){return!0x1;}function _0x19a76d(_0x10c781){const _0x2aa7bd=_0x22a850(_0x10c781);_0x2aa7bd&&_0x2aa7bd[_0x391540([0x61,0x6c,0x67])]==_0x391540([0x45,0x53,0x32,0x35,0x36])||(_0x5a9e3f=!0x1);}async function _0x1ad771(_0x341560,_0x14d3dc,_0x2f191a){const _0x4ffc93=window[_0x391540([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x391540([0x66,0x72,0x6f,0x6d])](_0x582599(_0x2f191a),_0x2ef873=>_0x2ef873[_0x391540([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x530581=new window[(_0x391540([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x391540([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x341560+_0x391540([0x2e])+_0x14d3dc),_0x193771=window[_0x391540([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x391540([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x193771)return;const _0x485022=await _0x193771[_0x391540([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x391540([0x6a,0x77,0x6b]),_0x3a9a7a,{[_0x391540([0x6e,0x61,0x6d,0x65])]:_0x391540([0x45,0x43,0x44,0x53,0x41]),[_0x391540([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x391540([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x391540([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x193771[_0x391540([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x391540([0x6e,0x61,0x6d,0x65])]:_0x391540([0x45,0x43,0x44,0x53,0x41]),[_0x391540([0x68,0x61,0x73,0x68])]:{[_0x391540([0x6e,0x61,0x6d,0x65])]:_0x391540([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x485022,_0x4ffc93,_0x530581)||(_0x5a9e3f=!0x1);}}function _0x22a850(_0x53f98c){return _0x53f98c[_0x391540([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x391540([0x65,0x79]))?JSON[_0x391540([0x70,0x61,0x72,0x73,0x65])](_0x582599(_0x53f98c)):null;}function _0x582599(_0x11fc6f){return window[_0x391540([0x61,0x74,0x6f,0x62])](_0x11fc6f[_0x391540([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x391540([0x2b]))[_0x391540([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x391540([0x2f])));}function _0x5b1b0f(_0x5b33d7){let _0x50a609=0x1505;function _0x51ac44(_0x1252ff){for(let _0x14e6b3=0x0;_0x14e6b3<_0x1252ff[_0x391540([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14e6b3++){const _0x20648e=_0x1252ff[_0x391540([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x14e6b3);_0x50a609=(_0x50a609<<0x5)+_0x50a609+_0x20648e,_0x50a609&=_0x50a609;}}function _0x7bdfd3(_0x4769a3){Array[_0x391540([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4769a3)?_0x4769a3[_0x391540([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x7bdfd3):_0x4769a3&&typeof _0x4769a3==_0x391540([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x391540([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4769a3)[_0x391540([0x73,0x6f,0x72,0x74])]()[_0x391540([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x11d4ce,_0x1ecc13])=>{_0x51ac44(_0x11d4ce),_0x7bdfd3(_0x1ecc13);}):_0x51ac44(window[_0x391540([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4769a3));}return _0x7bdfd3(_0x5b33d7),_0x50a609>>>0x0;}function _0x3f973b(_0x2787f1){return _0x2787f1[_0x391540([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x391540([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x391540([0x30]));}function _0x504d5b(_0x18ba5b){return _0x18ba5b[_0x391540([0x73,0x70,0x6c,0x69,0x74])]('')[_0x391540([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x391540([0x6a,0x6f,0x69,0x6e])]('');}function _0x28b463(){}function _0x391540(_0x41feee){const _0x24d3ff=_0x5006;return _0x41feee[_0x24d3ff(0x18c)](_0x26ea0b=>String[_0x24d3ff(0x194)](_0x26ea0b))[_0x24d3ff(0x1a0)]('');}_0x347819(await _0x1ec2b9());}(this);}[_0x217759(0x1a7)](){const _0x403114=_0x217759,_0x2720c3=this[_0x403114(0x1b6)][_0x403114(0x191)][_0x403114(0x16a)];_0x2720c3[_0x403114(0x18e)](_0x403114(0x165))&&_0x2720c3[_0x403114(0x1b4)](_0x403114(0x165),{'allowAttributes':[_0x403114(0x18a)]}),_0x2720c3[_0x403114(0x18e)](_0x403114(0x19b))&&_0x2720c3[_0x403114(0x1b4)](_0x403114(0x19b),{'allowAttributes':[_0x403114(0x18a)]});}[_0x217759(0x172)](){const _0x1eefe5=_0x217759,_0x9c253d=this[_0x1eefe5(0x1b6)];_0x9c253d[_0x1eefe5(0x1a3)][_0x1eefe5(0x1aa)](_0x1eefe5(0x1a5))[_0x1eefe5(0x185)]({'model':_0x1eefe5(0x18a),'view':_0x1eefe5(0x1a4)}),_0x9c253d[_0x1eefe5(0x1a3)][_0x1eefe5(0x1aa)](_0x1eefe5(0x188))[_0x1eefe5(0x1b2)]({'model':{'key':_0x1eefe5(0x18a),'value':_0x231c0f=>_0x231c0f[_0x1eefe5(0x1ae)](_0x1eefe5(0x1a4))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x487fc1=_0x9c253d[_0x1eefe5(0x183)][_0x1eefe5(0x1b8)](_0x1eefe5(0x187));_0x487fc1&&this[_0x1eefe5(0x170)](_0x487fc1,_0x1eefe5(0x196),(_0x52c9d5,[_0x324c25,_0x4be3e5])=>{const _0x59f028=_0x1eefe5;_0x324c25[_0x59f028(0x181)](_0x59f028(0x18a),_0x4be3e5);});}[_0x217759(0x171)](){const _0x416ead=_0x217759,_0x3e3dce=this[_0x416ead(0x1b6)][_0x416ead(0x1a8)][_0x416ead(0x1b8)](_0x416ead(0x166))||{},_0x404ef8=this[_0x416ead(0x1b6)][_0x416ead(0x1a8)][_0x416ead(0x1b8)](_0x416ead(0x184))||'';this[_0x416ead(0x186)]=_0x27b946(_0x173bea[_0x416ead(0x19f)],_0x416ead(0x198),{..._0x3e3dce,'pubkey':_0x404ef8,'ctx-name':_0x416ead(0x1b1),'sourceList':'','imgOnly':_0x416ead(0x192),'removeCopyright':_0x416ead(0x192),'localeName':this[_0x416ead(0x1b6)][_0x416ead(0x174)][_0x416ead(0x1a6)],'externalSourcesEmbedCss':_0x416ead(0x17e)}),this[_0x416ead(0x186)][_0x416ead(0x18b)]=_0x3cdb93=>{const _0x54ce48=_0x416ead;if(_0x54ce48(0x190)==_0x3cdb93)return _0x54ce48(0x1a9);},_0x173bea[_0x416ead(0x19f)][_0x416ead(0x1b5)][_0x416ead(0x16b)](this[_0x416ead(0x186)]);}[_0x217759(0x1ba)](){const _0xb00d09=_0x217759;this[_0xb00d09(0x16d)]=_0x27b946(_0x173bea[_0xb00d09(0x19f)],_0xb00d09(0x1b7),{'ctx-name':_0xb00d09(0x1b1)}),_0x173bea[_0xb00d09(0x19f)][_0xb00d09(0x1b5)][_0xb00d09(0x16b)](this[_0xb00d09(0x16d)]);}[_0x217759(0x16f)](){const _0x3c4bf5=_0x217759,_0x27de68=this[_0x3c4bf5(0x1b6)][_0x3c4bf5(0x183)][_0x3c4bf5(0x1b8)](_0x3c4bf5(0x1ab));_0x27de68&&this[_0x3c4bf5(0x170)](_0x27de68,_0x3c4bf5(0x19d),()=>{const _0x34b193=_0x3c4bf5,_0x15b042=this[_0x34b193(0x1b6)][_0x34b193(0x191)][_0x34b193(0x19f)][_0x34b193(0x17a)][_0x34b193(0x19a)]();_0x15b042&&_0x15b042[_0x34b193(0x1ae)](_0x34b193(0x18a))&&this[_0x34b193(0x1b6)][_0x34b193(0x16c)][_0x34b193(0x189)][_0x34b193(0x1af)](_0x34b193(0x1b0),()=>{const _0x54b004=_0x34b193;_0x3cd812(this[_0x54b004(0x1b6)],_0x15b042);});});const _0x4eab8f=this[_0x3c4bf5(0x1b6)][_0x3c4bf5(0x183)][_0x3c4bf5(0x1b8)](_0x3c4bf5(0x1a2));_0x4eab8f&&this[_0x3c4bf5(0x170)](_0x4eab8f,_0x3c4bf5(0x19d),()=>{const _0x46dd82=_0x3c4bf5,_0x3b9c7a=this[_0x46dd82(0x1b6)][_0x46dd82(0x191)][_0x46dd82(0x19f)][_0x46dd82(0x17a)][_0x46dd82(0x19a)]();_0x3b9c7a&&_0x3b9c7a[_0x46dd82(0x1ae)](_0x46dd82(0x18a))&&this[_0x46dd82(0x1b6)][_0x46dd82(0x16c)][_0x46dd82(0x189)][_0x46dd82(0x1af)](_0x46dd82(0x1b0),()=>{const _0x17e08c=_0x46dd82;_0x3cd812(this[_0x17e08c(0x1b6)],_0x3b9c7a);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x206ffd,ObservableMixin as _0x12e069}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x2aa5c3}from'ckeditor5/src/ui.js';import _0x3f9b25 from'./uploadcareimageeditformview.js';import _0x5d9092 from'../../utils/uploadutils.js';import _0x45ee31 from'../../../theme/icons/uploadcare-image-edit.svg';import{getImageUrls as _0x21e294,getImageDimension as _0x2c2f50}from'../../utils/editingutils.js';import{isAncestor as _0x246936}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x12e069(){constructor(_0x22d332,_0x3b18e4,_0x2914f9){super(),this['_editor']=_0x22d332,this['_dialog']=_0x3b18e4,this['_imageElement']=_0x2914f9,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 _0x5a0978=this['_imageElement'],_0x2789f9=_0x5a0978['getAttribute']('uploadcareImageId'),_0x29c8d9=_0x5a0978['getAttribute']('src');if(_0x2789f9)await this['_loadImageInfo'](_0x2789f9,_0x29c8d9);else{if(this['_imageCache']['has'](_0x29c8d9)){const _0x2fbd0f=this['_imageCache']['get'](_0x29c8d9);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2fbd0f['url'],this['imageDimension']=_0x2fbd0f['dimension'],this['imageId']=_0x2fbd0f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x53c925}=this['_editor'],t=_0x53c925['t'],_0x1d7105=new _0x3f9b25(_0x53c925,this['imageStatus'],this['_attributes']);_0x1d7105['bind']('status')['to'](this,'imageStatus'),_0x1d7105['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1d7105['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1d7105['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1d7105,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x45ee31,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1d7105,'position':_0x2aa5c3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1d7105['focus']();},'onHide':()=>{_0x1d7105['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3db9da=>!_0x246936(_0x3db9da,_0x1d7105['element'])}});}['_loadImageInfo'](_0x10b7e7,_0x5de18a){return _0x5d9092['getInfo'](_0x10b7e7,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x59857f=>{const {width:_0x5a6dad,height:_0x3fcc5e}=_0x59857f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5de18a,this['imageDimension']={'width':_0x5a6dad,'height':_0x3fcc5e},this['imageId']=_0x10b7e7;})['catch'](_0x19eb98=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x19eb98['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x34d254,_0x37ebc1){return this['_getImageAsFile'](_0x34d254)['then'](_0x34bbbe=>_0x5d9092['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x37ebc1['signal'],'file':_0x34bbbe,'onProgress':_0x584325=>{_0x584325&&_0x584325['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x584325['value']));}}))['then'](_0x5f3a39=>{const {width:_0x9e9b5,height:_0x7a0eb9}=_0x5f3a39['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5f3a39['cdnUrl'],this['imageDimension']={'width':_0x9e9b5,'height':_0x7a0eb9},this['imageId']=_0x5f3a39['uuid'],this['imageUploadProgress']=null;const _0x1ebaee=_0x34d254['getAttribute']('src');this['_imageCache']['set'](_0x1ebaee,{'id':_0x5f3a39['uuid'],'url':_0x5f3a39['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2bc4c3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2bc4c3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x25b214,_0x1b095b){_0x25b214['on']('apply',(_0x2c1af8,_0x450f0d)=>{this['_replaceImage'](_0x1b095b,_0x450f0d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x25b214['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x25b214['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x561672,_0x4deb63,_0x371933){const _0x1449fa=this['_editor'],{width:_0x4a9ae9,height:_0x5839cf}=_0x2c2f50(_0x4deb63,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4f5ba0,imageSources:_0x288dc4}=_0x21e294(_0x4deb63,_0x4a9ae9);_0x1449fa['model']['change'](_0x4280ee=>{if('$graveyard'===_0x561672['root']['rootName']){_0x1449fa['execute']('insertImage',{'imageType':_0x561672['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x561672['getAttributes']()),'uploadcareImageId':_0x371933,'src':_0x4f5ba0,'sources':_0x288dc4,'width':_0x4a9ae9,'height':_0x5839cf}});const _0x2de328=_0x561672['getChildren']();_0x561672=_0x1449fa['model']['document']['selection']['getSelectedElement']();for(const _0x1f123a of _0x2de328)_0x4280ee['append'](_0x4280ee['cloneElement'](_0x1f123a),_0x561672);}else _0x4280ee['setSelection'](_0x561672,'on'),_0x1449fa['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x561672['getAttributes']()),'uploadcareImageId':_0x371933,'src':_0x4f5ba0,'sources':_0x288dc4,'width':_0x4a9ae9,'height':_0x5839cf},_0x561672);_0x4280ee['setSelection'](_0x561672,'on');});}async['_getImageAsFile'](_0x5bd8bf){const _0x265ade=_0x206ffd['window'],_0x40e7b7=_0x206ffd['document']['location']['href'],_0x320103=new _0x265ade['URL'](_0x5bd8bf['getAttribute']('src'),_0x40e7b7);if('data:'===_0x320103['protocol']){const _0x5a1c8c=_0x320103['href']['split'](','),_0x3fc81d=_0x5a1c8c[0x0]['match'](/:(.*?);/)[0x1],_0xd534ca=_0x3fc81d['split']('/')[0x1],_0x43fa78=_0x265ade['atob'](_0x5a1c8c[_0x5a1c8c['length']-0x1]);let _0x3de42f=_0x43fa78['length'];const _0x2e8b5e=new _0x265ade['Uint8Array'](_0x3de42f);for(;_0x3de42f--;)_0x2e8b5e[_0x3de42f]=_0x43fa78['charCodeAt'](_0x3de42f);return new _0x265ade['File']([_0x2e8b5e],'image.'+_0xd534ca,{'type':_0x3fc81d});}const _0x319b51=_0x320103['href']['split']('/'),_0x5e77bd=_0x319b51[_0x319b51['length']-0x1],_0x4a8a07=_0x5e77bd['split']('.')[0x1];return _0x265ade['fetch'](_0x320103['href'])['then'](_0x46de52=>_0x46de52['clone']()['blob']())['then'](_0x4d8650=>new _0x265ade['File']([_0x4d8650],_0x5e77bd,{'type':'image/'+_0x4a8a07}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x62ac4c,_0x2588f3){const _0x3c75c9=_0xf651,_0x11b041=_0x62ac4c();while(!![]){try{const _0x376bb0=parseInt(_0x3c75c9(0x7d))/0x1+-parseInt(_0x3c75c9(0x89))/0x2+parseInt(_0x3c75c9(0x87))/0x3+-parseInt(_0x3c75c9(0x82))/0x4*(-parseInt(_0x3c75c9(0x7e))/0x5)+parseInt(_0x3c75c9(0x83))/0x6+parseInt(_0x3c75c9(0x84))/0x7*(-parseInt(_0x3c75c9(0x7f))/0x8)+-parseInt(_0x3c75c9(0x8e))/0x9*(parseInt(_0x3c75c9(0x80))/0xa);if(_0x376bb0===_0x2588f3)break;else _0x11b041['push'](_0x11b041['shift']());}catch(_0xbb5394){_0x11b041['push'](_0x11b041['shift']());}}}(_0x5868,0xa5858));function _0x5868(){const _0x3cc9d6=['image-edit','ck-uploadcare-theme','setTemplate','imageSrc','9gUPHne','1069840TomSQo','30ZrhgjI','1600728JRpfru','18400990sMCjWb','bindTemplate','411496eyXkPw','5431788HooglQ','21KBxNGy','uc-light','set','3524454bOTSYG','uc-cloud-image-editor','1297704Jorhbo'];_0x5868=function(){return _0x3cc9d6;};return _0x5868();}import{View as _0x438e55}from'ckeditor5/src/ui.js';function _0xf651(_0x5487a0,_0x13f4a4){const _0x5868d9=_0x5868();return _0xf651=function(_0xf6514f,_0xc7a028){_0xf6514f=_0xf6514f-0x7d;let _0x108cdc=_0x5868d9[_0xf6514f];return _0x108cdc;},_0xf651(_0x5487a0,_0x13f4a4);}export default class tt extends _0x438e55{constructor(_0x34e775,_0x220fb3){const _0x467d1d=_0xf651;super(_0x34e775);const _0xe8167f=this[_0x467d1d(0x81)];this[_0x467d1d(0x86)](_0x467d1d(0x8d),''),this[_0x467d1d(0x8c)]({'tag':_0x467d1d(0x88),'attributes':{..._0x220fb3,'class':[_0x467d1d(0x85),_0x467d1d(0x8b)],'ctx-name':_0x467d1d(0x8a),'cdn-url':_0xe8167f['to'](_0x467d1d(0x8d))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x1ec506,IconView as et,View as _0x191c8e}from'ckeditor5/src/ui.js';import at from'../../../theme/icons/error.svg';export default class rt extends _0x191c8e{constructor(_0x3309d6){super(_0x3309d6);const t=_0x3309d6['t'];this['set']('errorType',null);const _0x18c12f=new _0x1ec506(_0x3309d6);_0x18c12f['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x18c12f['withText']=!0x0,_0x18c12f['class']='ck-button-action',_0x18c12f['on']('execute',()=>{this['fire']('retry');}),_0x18c12f['bind']('isVisible')['to'](this,'errorType',_0x5dd5a6=>'NotFound'!==_0x5dd5a6);const _0x2125d4=new et();_0x2125d4['content']=at,_0x2125d4['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x246b5d=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':[_0x2125d4,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x246b5d['to']('errorType',_0x29067c=>t('NotFound'!==_0x29067c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x18c12f]},{'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 _0x41ee6e,View as _0x48096d}from'ckeditor5/src/ui.js';export default class ta extends _0x48096d{constructor(_0xdc2336){super(_0xdc2336);const t=_0xdc2336['t'],_0x52140a=this['bindTemplate'],_0x44aefc=new _0x41ee6e();_0x44aefc['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':[_0x44aefc,{'text':_0x52140a['to']('imageUploadProgress',_0x459753=>t('Loading\x20image...')+'\x20('+(_0x459753||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
|
+
function _0x496f(_0x49cfd2,_0x23c208){const _0x148675=_0x1486();return _0x496f=function(_0x496f34,_0x370d19){_0x496f34=_0x496f34-0x170;let _0x62205=_0x148675[_0x496f34];return _0x62205;},_0x496f(_0x49cfd2,_0x23c208);}const _0x2e447b=_0x496f;(function(_0x69f9f2,_0xf936d5){const _0x2d57ae=_0x496f,_0x48b997=_0x69f9f2();while(!![]){try{const _0x9ec26b=parseInt(_0x2d57ae(0x19b))/0x1*(-parseInt(_0x2d57ae(0x170))/0x2)+-parseInt(_0x2d57ae(0x1a4))/0x3*(parseInt(_0x2d57ae(0x198))/0x4)+parseInt(_0x2d57ae(0x184))/0x5*(parseInt(_0x2d57ae(0x173))/0x6)+-parseInt(_0x2d57ae(0x1a8))/0x7*(-parseInt(_0x2d57ae(0x17c))/0x8)+-parseInt(_0x2d57ae(0x196))/0x9+-parseInt(_0x2d57ae(0x1a2))/0xa+-parseInt(_0x2d57ae(0x188))/0xb*(-parseInt(_0x2d57ae(0x182))/0xc);if(_0x9ec26b===_0xf936d5)break;else _0x48b997['push'](_0x48b997['shift']());}catch(_0xe7cb38){_0x48b997['push'](_0x48b997['shift']());}}}(_0x1486,0x48b7e));import{View as _0x18db15}from'ckeditor5/src/ui.js';import _0x3a4f86 from'./uploadcareimageeditformloadingview.js';import _0x4f5d4c from'./uploadcareimageeditformerrorview.js';import _0x3fe0b9 from'./uploadcareimageeditformeditingview.js';import _0x10ce66 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x1486(){const _0x126f74=['element','toLowerCase','cancel','4372910nyyKOg','querySelector','1510794zxoDOD','cdnUrl','ready','fire','35veFXhg','2KVJlWS','addEventListener','_addErrorViewListeners','3108qHXqJg','_addUploadcareImageEditorListeners','disconnect','length','ck-uploadcare-form','target','render','createCollection','_loadingView','610520ClEbUb','change:status','clear','set','_setView','error','41604wcuyNg','add','3985ighPjQ','uc-cloud-image-editor','filter','once','3718XyoKOy','apply','detail','nodeName','_waitForImageEditorComponent','_editingView','addedNodes','focus','setTemplate','_items','addMany','ck-reset_all-excluded','_focusableView','uploading','1953297OuoLoy','retry','4wDgNSL','_errorView','status','510491SJIwJB','observe','getFocusableElement','div'];_0x1486=function(){return _0x126f74;};return _0x1486();}export default class ii extends _0x10ce66{constructor(_0x5dbc0c,_0x3040cb,_0x4a6df7){const _0x55364c=_0x496f;super(_0x5dbc0c),this[_0x55364c(0x191)]=this[_0x55364c(0x17a)](),this[_0x55364c(0x17b)]=new _0x3a4f86(_0x5dbc0c),this[_0x55364c(0x199)]=new _0x4f5d4c(_0x5dbc0c),this[_0x55364c(0x18d)]=new _0x3fe0b9(_0x5dbc0c,_0x4a6df7),this[_0x55364c(0x194)]=new _0x18db15(_0x5dbc0c),this[_0x55364c(0x194)][_0x55364c(0x190)](this[_0x55364c(0x19d)]()),this[_0x55364c(0x17f)](_0x55364c(0x19a),_0x3040cb),this[_0x55364c(0x190)]({'tag':_0x55364c(0x19e),'attributes':{'class':['ck',_0x55364c(0x193),_0x55364c(0x177)],'tabindex':'-1'},'children':this[_0x55364c(0x191)]}),this[_0x55364c(0x180)](),this[_0x55364c(0x187)](_0x55364c(0x179),()=>{const _0x46b7d1=_0x55364c;this[_0x46b7d1(0x18c)](this[_0x46b7d1(0x19f)],_0x3109ea=>{const _0x292bd2=_0x46b7d1;this[_0x292bd2(0x174)](_0x3109ea);});}),this['on'](_0x55364c(0x17d),()=>{const _0x5b7725=_0x55364c;this[_0x5b7725(0x180)]();}),this[_0x55364c(0x172)]();}[_0x2e447b(0x18f)](){const _0x365181=_0x2e447b;this[_0x365181(0x19f)][_0x365181(0x18f)]();}[_0x2e447b(0x180)](){const _0x2a18d9=_0x2e447b;switch(this[_0x2a18d9(0x191)][_0x2a18d9(0x17e)](),this[_0x2a18d9(0x19a)]){case _0x2a18d9(0x195):this[_0x2a18d9(0x191)][_0x2a18d9(0x183)](this[_0x2a18d9(0x17b)]);break;case _0x2a18d9(0x181):this[_0x2a18d9(0x191)][_0x2a18d9(0x183)](this[_0x2a18d9(0x199)]);break;case _0x2a18d9(0x1a6):this[_0x2a18d9(0x191)][_0x2a18d9(0x192)]([this[_0x2a18d9(0x18d)],this[_0x2a18d9(0x194)]]);}}[_0x2e447b(0x18c)](_0x2a7923,_0x32e19b){const _0x4d6308=_0x2e447b,_0x530ad3=_0x4d6308(0x185),_0x28d98d=_0x2a7923[_0x4d6308(0x1a3)](_0x530ad3);if(_0x28d98d)return _0x32e19b(_0x28d98d);const _0x447bb0=new MutationObserver(_0x406867=>{const _0x15e022=_0x4d6308,_0xb1d2e8=_0x406867[_0x15e022(0x186)](_0x59dbcb=>_0x59dbcb[_0x15e022(0x178)]===_0x2a7923&&_0x59dbcb[_0x15e022(0x18e)][_0x15e022(0x176)]>0x0&&_0x59dbcb[_0x15e022(0x18e)][0x0][_0x15e022(0x18b)][_0x15e022(0x1a0)]()===_0x530ad3);_0xb1d2e8[_0x15e022(0x176)]&&(_0x447bb0[_0x15e022(0x175)](),_0x32e19b(_0xb1d2e8[0x0][_0x15e022(0x18e)][0x0]));});_0x447bb0[_0x4d6308(0x19c)](_0x2a7923,{'childList':!0x0,'subtree':!0x0});}[_0x2e447b(0x174)](_0x3ffa87){const _0x5c2d9d=_0x2e447b;_0x3ffa87[_0x5c2d9d(0x171)](_0x5c2d9d(0x189),_0x5259f7=>{const _0x56761c=_0x5c2d9d;this[_0x56761c(0x1a7)](_0x56761c(0x189),{'imageSrc':_0x5259f7[_0x56761c(0x18a)][_0x56761c(0x1a5)]});}),_0x3ffa87[_0x5c2d9d(0x171)](_0x5c2d9d(0x1a1),()=>{const _0x3ad3c1=_0x5c2d9d;this[_0x3ad3c1(0x1a7)](_0x3ad3c1(0x1a1));});}[_0x2e447b(0x172)](){const _0x145bf8=_0x2e447b;this[_0x145bf8(0x199)]['on'](_0x145bf8(0x197),()=>{const _0x2f9307=_0x145bf8;this[_0x2f9307(0x1a7)](_0x2f9307(0x197));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x11eb(){const _0x210d87=['29728170uGwzUo','imageInline','get','config','editor','element','90oDKtyq','document','10136217RFCEpp','imageBlock','221320MPSvCb','imageEditController','isEnabled','selection','model','requires','unbind','2123518bIngXK','isActive','getSelectedElement','set','execute','_isEditable','refresh','245CgYukV','bind','uploadcare.allowExternalImagesEditing','859200aEIEwP','1284dNZxRM','502727AsMJwk','plugins'];_0x11eb=function(){return _0x210d87;};return _0x11eb();}const _0x39694c=_0xa442;(function(_0x3a4489,_0x5b25a8){const _0x457ae2=_0xa442,_0x1cc33b=_0x3a4489();while(!![]){try{const _0x421f18=-parseInt(_0x457ae2(0x151))/0x1+parseInt(_0x457ae2(0x164))/0x2+parseInt(_0x457ae2(0x159))/0x3*(-parseInt(_0x457ae2(0x15d))/0x4)+-parseInt(_0x457ae2(0x14c))/0x5*(-parseInt(_0x457ae2(0x150))/0x6)+-parseInt(_0x457ae2(0x15b))/0x7+parseInt(_0x457ae2(0x14f))/0x8+parseInt(_0x457ae2(0x153))/0x9;if(_0x421f18===_0x5b25a8)break;else _0x1cc33b['push'](_0x1cc33b['shift']());}catch(_0xac5454){_0x1cc33b['push'](_0x1cc33b['shift']());}}}(_0x11eb,0xd4eb5));import{Command as _0x387b10}from'ckeditor5/src/core.js';import{Dialog as _0x98aade}from'ckeditor5/src/ui.js';import _0x4c6355 from'./ui/uploadcareimageeditcontroller.js';function _0xa442(_0x2c2b87,_0x4c2211){const _0x11eb83=_0x11eb();return _0xa442=function(_0xa44289,_0x385a24){_0xa44289=_0xa44289-0x14a;let _0x1ffa84=_0x11eb83[_0xa44289];return _0x1ffa84;},_0xa442(_0x2c2b87,_0x4c2211);}import{createEditabilityChecker as _0x6a8e25}from'../utils/editingutils.js';export default class J extends _0x387b10{static get[_0x39694c(0x162)](){return[_0x98aade];}constructor(_0x5b831c){const _0x222d17=_0x39694c;super(_0x5b831c),this[_0x222d17(0x15e)]=void 0x0,this[_0x222d17(0x14a)]=_0x6a8e25(_0x5b831c[_0x222d17(0x156)][_0x222d17(0x155)](_0x222d17(0x14e))||[]),this[_0x222d17(0x167)]({'isActive':!0x1});}[_0x39694c(0x14b)](){const _0x4d5dfe=_0x39694c,_0x3d447e=this[_0x4d5dfe(0x157)][_0x4d5dfe(0x161)][_0x4d5dfe(0x15a)][_0x4d5dfe(0x160)][_0x4d5dfe(0x166)]();this[_0x4d5dfe(0x15f)]=this[_0x4d5dfe(0x14a)](_0x3d447e);}[_0x39694c(0x168)](){const _0x4d59d0=_0x39694c;this[_0x4d59d0(0x15e)]&&(this[_0x4d59d0(0x163)](_0x4d59d0(0x165)),this[_0x4d59d0(0x15e)]=void 0x0);const _0x2737c6=this[_0x4d59d0(0x157)][_0x4d59d0(0x161)][_0x4d59d0(0x15a)][_0x4d59d0(0x160)][_0x4d59d0(0x166)]();_0x2737c6&&(_0x2737c6['is'](_0x4d59d0(0x158),_0x4d59d0(0x15c))||_0x2737c6['is'](_0x4d59d0(0x158),_0x4d59d0(0x154)))&&(this[_0x4d59d0(0x15e)]=new _0x4c6355(this[_0x4d59d0(0x157)],this[_0x4d59d0(0x157)][_0x4d59d0(0x152)][_0x4d59d0(0x155)](_0x98aade),_0x2737c6),this[_0x4d59d0(0x14d)](_0x4d59d0(0x165))['to'](this[_0x4d59d0(0x15e)],_0x4d59d0(0x165)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1eb836=_0x320e;(function(_0x305df5,_0x519804){const _0x2d2729=_0x320e,_0x318fb5=_0x305df5();while(!![]){try{const _0x4f1759=parseInt(_0x2d2729(0x16e))/0x1*(parseInt(_0x2d2729(0x16b))/0x2)+-parseInt(_0x2d2729(0x167))/0x3+-parseInt(_0x2d2729(0x178))/0x4*(parseInt(_0x2d2729(0x17b))/0x5)+-parseInt(_0x2d2729(0x17d))/0x6*(-parseInt(_0x2d2729(0x17a))/0x7)+-parseInt(_0x2d2729(0x17c))/0x8+parseInt(_0x2d2729(0x172))/0x9+-parseInt(_0x2d2729(0x170))/0xa*(-parseInt(_0x2d2729(0x16d))/0xb);if(_0x4f1759===_0x519804)break;else _0x318fb5['push'](_0x318fb5['shift']());}catch(_0x44bc11){_0x318fb5['push'](_0x318fb5['shift']());}}}(_0x3a0f,0x40e45));import{Plugin as _0x4d866f}from'ckeditor5/src/core.js';import{Notification as _0x29c7eb}from'ckeditor5/src/ui.js';function _0x3a0f(){const _0x49aa02=['uploadcareImageReplace','isOfficialPlugin','uploadcareImageEdit','2152Iayisk','init','4676YENkgV','1640jjXbLg','3125720aqxvaz','3048XRiGDq','1485120Mbcekr','UploadcareImageEditEditing','ImageEditing','commands','42BFkVRd','add','44zfsWiQ','39pGZVyQ','ImageUtils','1253830CxfUhn','isPremiumPlugin','4376889dQHONT','requires','pluginName'];_0x3a0f=function(){return _0x49aa02;};return _0x3a0f();}import _0x4c3767 from'./uploadcareimageeditcommand.js';import _0x3133b5 from'./uploadcareimagereplacecommand.js';import _0x50655c from'../uploadcareediting.js';function _0x320e(_0x361c21,_0x216a1b){const _0x3a0f11=_0x3a0f();return _0x320e=function(_0x320e49,_0xe1d349){_0x320e49=_0x320e49-0x167;let _0x26cd0c=_0x3a0f11[_0x320e49];return _0x26cd0c;},_0x320e(_0x361c21,_0x216a1b);}export default class m extends _0x4d866f{static get[_0x1eb836(0x174)](){const _0x9f9298=_0x1eb836;return _0x9f9298(0x168);}static get[_0x1eb836(0x173)](){const _0xa8df34=_0x1eb836;return[_0x50655c,_0x29c7eb,_0xa8df34(0x16f),_0xa8df34(0x169)];}static get[_0x1eb836(0x176)](){return!0x0;}static get[_0x1eb836(0x171)](){return!0x0;}[_0x1eb836(0x179)](){const _0x30994b=_0x1eb836,{editor:_0x2a470f}=this;_0x2a470f[_0x30994b(0x16a)][_0x30994b(0x16c)](_0x30994b(0x177),new _0x4c3767(_0x2a470f)),_0x2a470f[_0x30994b(0x16a)][_0x30994b(0x16c)](_0x30994b(0x175),new _0x3133b5(_0x2a470f));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3a0f15}from'ckeditor5/src/core.js';import{ButtonView as _0x3b80d2}from'ckeditor5/src/ui.js';import{createElement as _0x56dbec}from'ckeditor5/src/utils.js';import _0x330b72 from'../../theme/icons/uploadcare-image-edit.svg';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class g extends _0x3a0f15{constructor(){super(...arguments),this['_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 _0x1adde4=this['editor'];_0x1adde4['ui']['componentFactory']['add']('uploadcareImageEdit',_0x161a1f=>{const _0x32e259=_0x1adde4['commands']['get']('uploadcareImageEdit'),_0x59e40e=new _0x3b80d2(_0x161a1f),t=_0x161a1f['t'];return _0x59e40e['set']({'icon':_0x330b72,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x59e40e['bind']('isEnabled')['to'](_0x32e259),_0x59e40e['bind']('isOn')['to'](_0x32e259,'isActive'),this['listenTo'](_0x59e40e,'execute',()=>{_0x1adde4['execute']('uploadcareImageEdit'),_0x1adde4['editing']['view']['focus']();}),_0x59e40e;}),this['_initConfig']();}['_initConfig'](){const _0x2b23f7=_0x56dbec(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2b23f7),this['listenTo'](this['editor'],'destroy',()=>{_0x2b23f7['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7d7c6a=_0x4471;(function(_0x272385,_0x42ebc6){const _0x28539b=_0x4471,_0x214d5e=_0x272385();while(!![]){try{const _0x13fde2=parseInt(_0x28539b(0x18c))/0x1*(parseInt(_0x28539b(0x199))/0x2)+-parseInt(_0x28539b(0x186))/0x3*(parseInt(_0x28539b(0x198))/0x4)+parseInt(_0x28539b(0x181))/0x5*(-parseInt(_0x28539b(0x185))/0x6)+-parseInt(_0x28539b(0x190))/0x7*(parseInt(_0x28539b(0x183))/0x8)+-parseInt(_0x28539b(0x184))/0x9*(-parseInt(_0x28539b(0x196))/0xa)+parseInt(_0x28539b(0x18a))/0xb+-parseInt(_0x28539b(0x19c))/0xc*(parseInt(_0x28539b(0x180))/0xd);if(_0x13fde2===_0x42ebc6)break;else _0x214d5e['push'](_0x214d5e['shift']());}catch(_0x526ce2){_0x214d5e['push'](_0x214d5e['shift']());}}}(_0x1c70,0x2ac18));import{Command as _0x45c6f4}from'ckeditor5/src/core.js';export default class O extends _0x45c6f4{[_0x7d7c6a(0x18f)](){const _0x18432b=_0x7d7c6a,_0x41f708=this[_0x18432b(0x18d)][_0x18432b(0x18e)][_0x18432b(0x194)][_0x18432b(0x189)][_0x18432b(0x182)]();this[_0x18432b(0x193)]=Boolean(_0x41f708&&(_0x41f708['is'](_0x18432b(0x195),_0x18432b(0x191))||_0x41f708['is'](_0x18432b(0x195),_0x18432b(0x18b))));}[_0x7d7c6a(0x187)](_0x51ded6){const _0x371c3c=_0x7d7c6a,_0x4874f7=this[_0x371c3c(0x18d)][_0x371c3c(0x18e)][_0x371c3c(0x194)][_0x371c3c(0x189)][_0x371c3c(0x182)]();this[_0x371c3c(0x18d)][_0x371c3c(0x18e)][_0x371c3c(0x19a)](_0x112b37=>{const _0x3d2db0=_0x371c3c;_0x112b37[_0x3d2db0(0x19b)](_0x51ded6,_0x4874f7),_0x112b37[_0x3d2db0(0x188)](_0x3d2db0(0x197),_0x4874f7),_0x112b37[_0x3d2db0(0x188)](_0x3d2db0(0x192),_0x4874f7);});}}function _0x4471(_0x5aae75,_0x3c9b1f){const _0x1c70bc=_0x1c70();return _0x4471=function(_0x447146,_0x32ec0e){_0x447146=_0x447146-0x180;let _0x698632=_0x1c70bc[_0x447146];return _0x698632;},_0x4471(_0x5aae75,_0x3c9b1f);}function _0x1c70(){const _0x320983=['removeAttribute','selection','2289749KsohyH','imageInline','1vUZBsZ','editor','model','refresh','35bpxMkG','imageBlock','sizes','isEnabled','document','element','370EspMhP','srcset','34288UOpeUu','541074hTvHgT','change','setAttributes','516ftluyr','14261OtubmK','5imPZvX','getSelectedElement','77752fnknwl','26469ojfHQb','1488258YboqDt','24lMdVag','execute'];_0x1c70=function(){return _0x320983;};return _0x1c70();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x1e367d=_0x421f;function _0x1e9c(){var _0x54cf2e=['isOfficialPlugin','isPremiumPlugin','requires','5pjCsEF','2453088ThmCmg','401162EiGDiN','520684sHZRed','202317VfgUnd','pluginName','3388378ulNKGe','UploadcareImageEdit','5553457ZXGSww','15689448kfgyRF'];_0x1e9c=function(){return _0x54cf2e;};return _0x1e9c();}(function(_0x3b1bfd,_0x17f71e){var _0x20a05f=_0x421f,_0xe13b44=_0x3b1bfd();while(!![]){try{var _0x3a223a=-parseInt(_0x20a05f(0x18f))/0x1+-parseInt(_0x20a05f(0x186))/0x2+-parseInt(_0x20a05f(0x191))/0x3+-parseInt(_0x20a05f(0x190))/0x4*(parseInt(_0x20a05f(0x18d))/0x5)+parseInt(_0x20a05f(0x18e))/0x6+parseInt(_0x20a05f(0x188))/0x7+parseInt(_0x20a05f(0x189))/0x8;if(_0x3a223a===_0x17f71e)break;else _0xe13b44['push'](_0xe13b44['shift']());}catch(_0x351348){_0xe13b44['push'](_0xe13b44['shift']());}}}(_0x1e9c,0xd4813));import{Plugin as _0x2b8d42}from'ckeditor5/src/core.js';function _0x421f(_0x161854,_0x41b394){var _0x1e9ca0=_0x1e9c();return _0x421f=function(_0x421fca,_0x24d1e5){_0x421fca=_0x421fca-0x185;var _0x462202=_0x1e9ca0[_0x421fca];return _0x462202;},_0x421f(_0x161854,_0x41b394);}import _0x200d31 from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x346a81 from'./uploadcareimageedit/uploadcareimageeditui.js';export default class j extends _0x2b8d42{static get[_0x1e367d(0x185)](){var _0x264937=_0x1e367d;return _0x264937(0x187);}static get[_0x1e367d(0x18c)](){return[_0x200d31,_0x346a81];}static get[_0x1e367d(0x18a)](){return!0x0;}static get[_0x1e367d(0x18b)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x540957=_0x480a;(function(_0x59c125,_0x5121e6){const _0x3dec94=_0x480a,_0x5620a3=_0x59c125();while(!![]){try{const _0x47ee0c=-parseInt(_0x3dec94(0xd5))/0x1+-parseInt(_0x3dec94(0xf0))/0x2*(-parseInt(_0x3dec94(0xea))/0x3)+-parseInt(_0x3dec94(0x106))/0x4+parseInt(_0x3dec94(0xe7))/0x5+parseInt(_0x3dec94(0xfe))/0x6*(parseInt(_0x3dec94(0x100))/0x7)+parseInt(_0x3dec94(0x108))/0x8+-parseInt(_0x3dec94(0xdb))/0x9;if(_0x47ee0c===_0x5121e6)break;else _0x5620a3['push'](_0x5620a3['shift']());}catch(_0x41cc85){_0x5620a3['push'](_0x5620a3['shift']());}}}(_0x4bb1,0xf2761));import{Plugin as _0x5ec070,icons as _0x43262e}from'ckeditor5/src/core.js';function _0x480a(_0x17edce,_0x5698b0){const _0x4bb137=_0x4bb1();return _0x480a=function(_0x480a1b,_0x33c7eb){_0x480a1b=_0x480a1b-0xc3;let _0x570d8c=_0x4bb137[_0x480a1b];return _0x570d8c;},_0x480a(_0x17edce,_0x5698b0);}import{ButtonView as _0x142b03,MenuBarMenuListItemButtonView as _0x2a0d41}from'ckeditor5/src/ui.js';import _0x546f8b from'../theme/icons/dropbox.svg';import _0x1782b5 from'../theme/icons/facebook.svg';import _0x669451 from'../theme/icons/google-drive.svg';import _0x54cddb from'../theme/icons/google-photos.svg';import _0x290ee7 from'../theme/icons/instagram.svg';import _0x3c2cf6 from'../theme/icons/link.svg';import _0x48fdda from'../theme/icons/onedrive.svg';import{UploadcareSource as _0x4b9ef7}from'./uploadcareconfig.js';import{getTranslation as _0x4f0dad}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';function _0x4bb1(){const _0x1c147e=['UploadcareUI','5004904ZznWpo','Facebook','15530784HEongy','entries','evaluationLimit','expired','Uploadcare','_createButton','isImageSelected','shortText','_showLicenseError','config','registerIntegration','type','GDrive','tooltip','execute','uploadcareLicenseKeyDomainLimit','URL','_licenseKeyCheckInterval','_getIntegrationKey','plugins','usageLimit','icon','destroy','_normalizeConfigSourceList','OneDrive','forEach','GPhotos','uploadcare','upload','map','trialLimit','73492wZksGZ','Insert','featureNotAllowed','uploadcareLicenseKeyExpired','Dropbox','isEnabled','31111542gCIdUv','push','uploadcareLicenseKeyUsageLimit','get','init','text','url','isPremiumPlugin','Replace','pluginName','bind','uploadcare.uploader.sourceList','7353405GKHrBF','label','reduce','548241mmzCPP','uploadcareLicenseKeyInvalid','uploadcareLicenseKeyNotAllowed','licenseKey','assetManager','domainLimit','14biiBkK','uploadcareLicenseKeyValid','uploadcareLicenseKeyTrialLimit','ImageInsertUI','editor','_createToolbarButton','withText','_createDropdownButtons','_createMenuBarButtons','invalid','Local','commands','has','afterInit','186uUqERb','uploadcareLicenseKeyEvaluationLimit','244643UKejOG','locale','imageUpload','isOfficialPlugin','Instagram'];_0x4bb1=function(){return _0x1c147e;};return _0x4bb1();}export default class e extends _0x5ec070{static get[_0x540957(0xe4)](){const _0x1523b7=_0x540957;return _0x1523b7(0x105);}static get[_0x540957(0x103)](){return!0x0;}static get[_0x540957(0xe2)](){return!0x0;}[_0x540957(0xdf)](){const _0x2637da=_0x540957;this[_0x2637da(0xed)]=this[_0x2637da(0xf4)][_0x2637da(0x111)][_0x2637da(0xde)](_0x2637da(0xed));const _0x3f03f4=this[_0x2637da(0xf4)];this[_0x2637da(0xc7)]=setInterval(()=>{const _0x4b6854=_0x2637da;let _0x3826b4;for(const _0xec424f in _0x3f03f4){const _0x5a56a7=_0xec424f,_0x243ffc=_0x3f03f4[_0x5a56a7];if(_0x4b6854(0xf1)==_0x243ffc||_0x4b6854(0xeb)==_0x243ffc||_0x4b6854(0xd8)==_0x243ffc||_0x4b6854(0xc5)==_0x243ffc||_0x4b6854(0xec)==_0x243ffc||_0x4b6854(0xff)==_0x243ffc||_0x4b6854(0xf2)==_0x243ffc||_0x4b6854(0xdd)==_0x243ffc){delete _0x3f03f4[_0x5a56a7],_0x3826b4=_0x243ffc,clearInterval(this[_0x4b6854(0xc7)]),this[_0x4b6854(0xc7)]=void 0x0;break;}}_0x4b6854(0xeb)==_0x3826b4&&_0x3f03f4[_0x4b6854(0x110)](_0x4b6854(0xf9)),_0x4b6854(0xd8)==_0x3826b4&&_0x3f03f4[_0x4b6854(0x110)](_0x4b6854(0x10b)),_0x4b6854(0xc5)==_0x3826b4&&_0x3f03f4[_0x4b6854(0x110)](_0x4b6854(0xef)),_0x4b6854(0xec)==_0x3826b4&&_0x3f03f4[_0x4b6854(0x110)](_0x4b6854(0xd7),_0x4b6854(0x10c)),_0x4b6854(0xff)==_0x3826b4&&_0x3f03f4[_0x4b6854(0x110)](_0x4b6854(0x10a)),_0x4b6854(0xf2)==_0x3826b4&&_0x3f03f4[_0x4b6854(0x110)](_0x4b6854(0xd4)),_0x4b6854(0xdd)==_0x3826b4&&_0x3f03f4[_0x4b6854(0x110)](_0x4b6854(0xca));},0x3e8);}[_0x540957(0xfd)](){const _0x3feacd=_0x540957,{editor:_0x21c0bd}=this,_0x43f3d5=_0x21c0bd[_0x3feacd(0xfb)][_0x3feacd(0xde)](_0x3feacd(0xd1));if(!_0x43f3d5)return;const _0x482399=this[_0x3feacd(0xcd)](_0x21c0bd[_0x3feacd(0x111)][_0x3feacd(0xde)](_0x3feacd(0xe6)))[_0x3feacd(0xe9)]((_0x5dc33d,_0x1c9f09)=>{const _0x4f30dc=_0x3feacd,_0x50695d=this[_0x4f30dc(0xc8)](_0x1c9f09[_0x4f30dc(0x113)]);return _0x5dc33d[_0x50695d]||(_0x5dc33d[_0x50695d]=[]),_0x5dc33d[_0x50695d][_0x4f30dc(0xdc)](_0x1c9f09),_0x5dc33d;},{});_0x21c0bd[_0x3feacd(0xc9)][_0x3feacd(0xfc)](_0x3feacd(0xf3))&&_0x21c0bd[_0x3feacd(0xfb)][_0x3feacd(0xde)](_0x3feacd(0xd1))&&Object[_0x3feacd(0x109)](_0x482399)[_0x3feacd(0xcf)](([_0x4ddaee,_0xca0a16])=>{const _0x19e364=_0x3feacd;_0x21c0bd[_0x19e364(0xc9)][_0x19e364(0xde)](_0x19e364(0xf3))[_0x19e364(0x112)]({'name':_0x4ddaee,'observable':()=>_0x43f3d5,'buttonViewCreator':()=>this[_0x19e364(0xf5)](_0xca0a16),'formViewCreator':()=>this[_0x19e364(0xf7)](_0xca0a16),'menuBarButtonViewCreator':()=>this[_0x19e364(0xf8)](_0xca0a16),'override':_0x19e364(0xee)!==_0x4ddaee});});}[_0x540957(0xcc)](){const _0x36efd2=_0x540957;super[_0x36efd2(0xcc)](),this[_0x36efd2(0xc7)]&&clearInterval(this[_0x36efd2(0xc7)]);}[_0x540957(0xcd)](_0xa73299){const _0x1e4cc2=_0x540957,{locale:_0x33b17e}=this[_0x1e4cc2(0xf4)];return _0xa73299[_0x1e4cc2(0xd3)](_0x1a1853=>{const _0x1a4026=_0x1e4cc2,_0x2bf846=_0x4f0dad(_0x33b17e,_0x1a1853,_0x1a4026(0xd6));switch(_0x1a1853){case _0x4b9ef7[_0x1a4026(0xfa)]:return{'icon':_0x43262e[_0x1a4026(0x102)],'type':_0x4b9ef7[_0x1a4026(0xfa)],..._0x2bf846};case _0x4b9ef7[_0x1a4026(0xc6)]:return{'icon':_0x3c2cf6,'type':_0x4b9ef7[_0x1a4026(0xc6)],..._0x2bf846};case _0x4b9ef7[_0x1a4026(0xd9)]:return{'icon':_0x546f8b,'type':_0x4b9ef7[_0x1a4026(0xd9)],..._0x2bf846};case _0x4b9ef7[_0x1a4026(0x107)]:return{'icon':_0x1782b5,'type':_0x4b9ef7[_0x1a4026(0x107)],..._0x2bf846};case _0x4b9ef7[_0x1a4026(0x114)]:return{'icon':_0x669451,'type':_0x4b9ef7[_0x1a4026(0x114)],..._0x2bf846};case _0x4b9ef7[_0x1a4026(0xd0)]:return{'icon':_0x54cddb,'type':_0x4b9ef7[_0x1a4026(0xd0)],..._0x2bf846};case _0x4b9ef7[_0x1a4026(0x104)]:return{'icon':_0x290ee7,'type':_0x4b9ef7[_0x1a4026(0x104)],..._0x2bf846};case _0x4b9ef7[_0x1a4026(0xce)]:return{'icon':_0x48fdda,'type':_0x4b9ef7[_0x1a4026(0xce)],..._0x2bf846};}});}[_0x540957(0xc8)](_0x15c2f2){const _0x80d9f8=_0x540957;switch(_0x15c2f2){case _0x4b9ef7[_0x80d9f8(0xfa)]:return _0x80d9f8(0xd2);case _0x4b9ef7[_0x80d9f8(0xc6)]:return _0x80d9f8(0xe1);default:return _0x80d9f8(0xee);}}[_0x540957(0x10d)](_0x3a1d2c,_0x50d413){const _0x4cf870=_0x540957,_0xb0b463=this[_0x4cf870(0xf4)],_0x111eb7=new _0x3a1d2c(_0xb0b463[_0x4cf870(0x101)]),_0x15c045=_0xb0b463[_0x4cf870(0xfb)][_0x4cf870(0xde)](_0x4cf870(0xd1));return _0x111eb7[_0x4cf870(0xe5)](_0x4cf870(0xda))['to'](_0x15c045),_0x111eb7['on'](_0x4cf870(0xc4),()=>{const _0x1d313a=_0x4cf870;_0x15c045[_0x1d313a(0xc4)](_0x50d413);}),_0x111eb7;}[_0x540957(0xf5)](_0x22ba81){const _0x447f88=_0x540957,{locale:_0x279cb3}=this[_0x447f88(0xf4)],_0x5d8127=this[_0x447f88(0xf4)][_0x447f88(0xc9)][_0x447f88(0xde)](_0x447f88(0xf3)),_0x34602f=_0x22ba81[0x0],_0x4bec39=this[_0x447f88(0x10d)](_0x142b03,_0x34602f[_0x447f88(0x113)]);return _0x4bec39[_0x447f88(0xcb)]=_0x34602f[_0x447f88(0xcb)],_0x4bec39[_0x447f88(0xe5)](_0x447f88(0xe8))['to'](_0x5d8127,_0x447f88(0x10e),_0x1c6919=>_0x4f0dad(_0x279cb3,_0x34602f[_0x447f88(0x113)],_0x1c6919?_0x447f88(0xe3):_0x447f88(0xd6))[_0x447f88(0xe0)]),_0x4bec39[_0x447f88(0xc3)]=!0x0,_0x4bec39;}[_0x540957(0xf7)](_0x1a29b4){const _0x3474be=_0x540957,{locale:_0x1edf8c}=this[_0x3474be(0xf4)],_0x807afd=this[_0x3474be(0xf4)][_0x3474be(0xc9)][_0x3474be(0xde)](_0x3474be(0xf3));return _0x1a29b4[_0x3474be(0xd3)](_0x218c28=>{const _0x52f16d=_0x3474be,_0x5ed99c=this[_0x52f16d(0x10d)](_0x142b03,_0x218c28[_0x52f16d(0x113)]);return _0x5ed99c[_0x52f16d(0xf6)]=!0x0,_0x5ed99c[_0x52f16d(0xcb)]=_0x218c28[_0x52f16d(0xcb)],_0x5ed99c[_0x52f16d(0xe5)](_0x52f16d(0xe8))['to'](_0x807afd,_0x52f16d(0x10e),_0xb2b24e=>_0x4f0dad(_0x1edf8c,_0x218c28[_0x52f16d(0x113)],_0xb2b24e?_0x52f16d(0xe3):_0x52f16d(0xd6))[_0x52f16d(0xe0)]),_0x5ed99c;});}[_0x540957(0xf8)](_0x265c7e){const _0x3b83ff=_0x540957;return _0x265c7e[_0x3b83ff(0xd3)](_0x101985=>{const _0x14abdf=_0x3b83ff,_0x1486be=this[_0x14abdf(0x10d)](_0x2a0d41,_0x101985[_0x14abdf(0x113)]);return _0x1486be[_0x14abdf(0xcb)]=_0x101985[_0x14abdf(0xcb)],_0x1486be[_0x14abdf(0xe8)]=_0x101985[_0x14abdf(0x10f)],_0x1486be;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x4d0e7f}from'ckeditor5/src/core.js';import{FileRepository as _0x543c1c}from'ckeditor5/src/upload.js';import _0x3e2075 from'./uploadcareediting.js';import _0x5a960b from'./utils/uploadutils.js';import{getImageUrls as _0x50b9c9}from'./utils/editingutils.js';export default class f extends _0x4d0e7f{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x543c1c,_0x3e2075];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x56918d=this['editor'];if(!!!_0x56918d['config']['get']('uploadcare'))return;_0x56918d['plugins']['get'](_0x543c1c)['createUploadAdapter']=_0x441e88=>new A(_0x441e88,_0x56918d),_0x56918d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5915fa,{imageElement:_0x3fb2dc,data:_0xf31aa4})=>{_0x56918d['model']['change'](_0x2116ef=>{_0x2116ef['setAttribute']('uploadcareImageId',_0xf31aa4['uploadcareImageId'],_0x3fb2dc);});});}}class A{constructor(_0x109258,_0x17da8b){this['loader']=_0x109258,this['editor']=_0x17da8b,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4805a5=this['editor']['config']['get']('uploadcare.pubkey'),_0x38ff7b=await this['loader']['file'];return _0x5a960b['upload']({'file':_0x38ff7b,'publicKey':_0x4805a5,'signal':this['controller']['signal'],'onProgress':_0x48842b=>{_0x48842b&&_0x48842b['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x48842b['value']);}})['then'](async _0x387a44=>{const {imageFallbackUrl:_0x184beb,imageSources:_0x5221c6}=_0x50b9c9(_0x387a44['cdnUrl'],_0x387a44['imageInfo']['width']);return{'uploadcareImageId':_0x387a44['uuid'],'default':_0x184beb,'sources':_0x5221c6};})['catch'](()=>{const _0x47cbc4=t('Cannot\x20upload\x20file:')+('\x20'+_0x38ff7b['name']+'.');return Promise['reject'](_0x47cbc4);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x487c69}from'../uploadcareconfig.js';export function getTranslation(_0x26e175,_0x2419d1,_0x302ace){const t=_0x26e175['t'],_0x52589b=_0x26e175['t'];switch(_0x2419d1){case _0x487c69['Local']:return{'text':_0x52589b('Insert'===_0x302ace?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x52589b('From\x20computer')};case _0x487c69['URL']:return{'text':'Insert'===_0x302ace?_0x52589b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x52589b('Via\x20URL')};case _0x487c69['Dropbox']:return{'text':t('Insert'===_0x302ace?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x487c69['Facebook']:return{'text':t('Insert'===_0x302ace?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x487c69['GDrive']:return{'text':t('Insert'===_0x302ace?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x487c69['GPhotos']:return{'text':t('Insert'===_0x302ace?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x487c69['Instagram']:return{'text':t('Insert'===_0x302ace?'Insert\x20with\x20Instagram':'Replace\x20with\x20Instagram'),'shortText':t('With\x20Instagram')};case _0x487c69['OneDrive']:return{'text':t('Insert'===_0x302ace?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2419d1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x54e9bc=_0x6211;(function(_0x24c766,_0x1635e2){var _0x48c1ce=_0x6211,_0x244168=_0x24c766();while(!![]){try{var _0x1ac7ec=parseInt(_0x48c1ce(0x1bb))/0x1+-parseInt(_0x48c1ce(0x1c3))/0x2+-parseInt(_0x48c1ce(0x1b7))/0x3+parseInt(_0x48c1ce(0x1bd))/0x4+-parseInt(_0x48c1ce(0x1c4))/0x5+-parseInt(_0x48c1ce(0x1c6))/0x6+parseInt(_0x48c1ce(0x1c2))/0x7;if(_0x1ac7ec===_0x1635e2)break;else _0x244168['push'](_0x244168['shift']());}catch(_0x2379b3){_0x244168['push'](_0x244168['shift']());}}}(_0x4dc7,0xa998b));function _0x6211(_0x58ebdb,_0x35960f){var _0x4dc71f=_0x4dc7();return _0x6211=function(_0x62115a,_0x474c79){_0x62115a=_0x62115a-0x1b7;var _0x4ce617=_0x4dc71f[_0x62115a];return _0x4ce617;},_0x6211(_0x58ebdb,_0x35960f);}import{FocusTracker as _0x5662d1}from'ckeditor5/src/utils.js';import{View as _0x1383a8,FocusCycler as _0x5be5a2}from'ckeditor5/src/ui.js';function _0x4dc7(){var _0x1eec30=['true','div','17788kDfRCI','fire','1342488mKEBeL','getFocusableElement','focusCycler','bindTemplate','focusTracker','29846047VkFYGD','2022104ugTUcm','6404270clxaXs','forwardCycle','1723158sPDZuF','4030095qazPQy','createCollection'];_0x4dc7=function(){return _0x1eec30;};return _0x4dc7();}import'../../theme/uploadcare-form.css';export default class q extends _0x1383a8{constructor(_0x2f99d0){var _0x2ccfa0=_0x6211;super(_0x2f99d0),this[_0x2ccfa0(0x1c1)]=new _0x5662d1(),this[_0x2ccfa0(0x1bf)]=new _0x5be5a2({'focusables':this[_0x2ccfa0(0x1b8)](),'focusTracker':this[_0x2ccfa0(0x1c1)]});}[_0x54e9bc(0x1be)](){var _0x3bcbd1=_0x54e9bc;return{'tag':_0x3bcbd1(0x1ba),'attributes':{'aria-hidden':_0x3bcbd1(0x1b9),'tabindex':'0'},'on':{'focus':this[_0x3bcbd1(0x1c0)]['to'](()=>{var _0x219eec=_0x3bcbd1;this[_0x219eec(0x1bf)][_0x219eec(0x1bc)](_0x219eec(0x1c5));})}};}}
|