@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251024.0 → 0.0.0-nightly-20251026.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/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.d.ts +1 -1
- 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.d.ts +54 -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
|
-
|
|
23
|
+
(function(_0x36bec7,_0x4cd4cf){var _0x1d3bb5=_0x62da,_0x18d662=_0x36bec7();while(!![]){try{var _0x3cda44=parseInt(_0x1d3bb5(0x187))/0x1+parseInt(_0x1d3bb5(0x190))/0x2+-parseInt(_0x1d3bb5(0x17f))/0x3*(parseInt(_0x1d3bb5(0x17e))/0x4)+parseInt(_0x1d3bb5(0x18e))/0x5*(-parseInt(_0x1d3bb5(0x192))/0x6)+-parseInt(_0x1d3bb5(0x181))/0x7+-parseInt(_0x1d3bb5(0x180))/0x8*(parseInt(_0x1d3bb5(0x195))/0x9)+-parseInt(_0x1d3bb5(0x18a))/0xa*(-parseInt(_0x1d3bb5(0x189))/0xb);if(_0x3cda44===_0x4cd4cf)break;else _0x18d662['push'](_0x18d662['shift']());}catch(_0x3ce3c2){_0x18d662['push'](_0x18d662['shift']());}}}(_0x358b,0xe61b5));export var UploadcareSource;function _0x62da(_0x250cbe,_0x49db87){var _0x358b82=_0x358b();return _0x62da=function(_0x62da44,_0x424587){_0x62da44=_0x62da44-0x17e;var _0x3ffe00=_0x358b82[_0x62da44];return _0x3ffe00;},_0x62da(_0x250cbe,_0x49db87);}!function(_0x2fbb45){var _0x3cb03a=_0x62da;_0x2fbb45[_0x3cb03a(0x193)]=_0x3cb03a(0x191),_0x2fbb45[_0x3cb03a(0x18f)]=_0x3cb03a(0x182),_0x2fbb45[_0x3cb03a(0x18b)]=_0x3cb03a(0x18c),_0x2fbb45[_0x3cb03a(0x196)]=_0x3cb03a(0x18d),_0x2fbb45[_0x3cb03a(0x183)]=_0x3cb03a(0x184),_0x2fbb45[_0x3cb03a(0x188)]=_0x3cb03a(0x186),_0x2fbb45[_0x3cb03a(0x185)]=_0x3cb03a(0x194);}(UploadcareSource||(UploadcareSource={}));function _0x358b(){var _0x3f610a=['Facebook','facebook','OneDrive','gphotos','913852NRPrfX','GPhotos','33891nAjnuo','11320YeysdD','Dropbox','dropbox','gdrive','125375NVAPFc','URL','1635740ORLfWd','local','252fwoDLs','Local','onedrive','866835hxFylo','GDrive','4uNvqWc','2802039ETjoFB','40vkxzEg','12657113IiWuOV','url'];_0x358b=function(){return _0x3f610a;};return _0x358b();}
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x454e5b=_0x415b;(function(_0xe5849c,_0xf7ecce){const _0x599dab=_0x415b,_0x6d878e=_0xe5849c();while(!![]){try{const _0x3f3605=parseInt(_0x599dab(0x23c))/0x1*(parseInt(_0x599dab(0x210))/0x2)+-parseInt(_0x599dab(0x223))/0x3*(parseInt(_0x599dab(0x20c))/0x4)+parseInt(_0x599dab(0x1fa))/0x5*(parseInt(_0x599dab(0x227))/0x6)+parseInt(_0x599dab(0x22b))/0x7+parseInt(_0x599dab(0x1f5))/0x8+parseInt(_0x599dab(0x20b))/0x9*(parseInt(_0x599dab(0x207))/0xa)+parseInt(_0x599dab(0x214))/0xb*(-parseInt(_0x599dab(0x201))/0xc);if(_0x3f3605===_0xf7ecce)break;else _0x6d878e['push'](_0x6d878e['shift']());}catch(_0x3cc1c6){_0x6d878e['push'](_0x6d878e['shift']());}}}(_0x2272,0x24683));import{Plugin as _0x2f28bb}from'ckeditor5/src/core.js';function _0x2272(){const _0x53d95d=['imageInline','body','querySelector','uploader-','_configElement','data-uc-image-id','uploadcare','model','replaceImageSource','contentLanguage','80322JOcMzH','execute','PictureEditing','_ctxElement','410094fRzUeU','uploadcare.pubkey','_initSchema','get','1584646lsATqU','schema','removeAttribute','init','ctxElement','afterInit','downcast','locale','document','true','editor','cleanupImage','isOfficialPlugin','uc-config','isPremiumPlugin','map','#uc-icon-arrow-down','176815odslVf','requires','closeMax','for','conversion','isRegistered','getSelectedElement','href','_initConversion','_initImageProcessingIndicator','extend','destroy','view','listenTo','uploadcare.uploader','editing','972992IAFZwK','fromCharCode','uc-upload-ctx-provider','ucContextId','pluginName','15lVDmfR','input[uploadcare-file-input]','join','remove','uploadcareImageId','appendChild','\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','3810108xBdWZk','_initConfig','attributeToAttribute','render','commands','getAttribute','40SZvHfb','config','selection','upcast','10143DXgdiE','40dseIrP','elementToAttribute','iconHrefResolver','add','2REqTYm','_initCtx','insertImage','configElement','11EYjHaA','once','UploadcareEditing','uploadcareImageReplace','imageBlock'];_0x2272=function(){return _0x53d95d;};return _0x2272();}import{Dialog as _0x5c5204}from'ckeditor5/src/ui.js';import{createElement as _0x4f7aa0,global as _0x2edb97,uid as _0x3de82b}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x2a3f36}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x37ebbe}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x47d065}from'./utils/editingutils.js';function _0x415b(_0x1e90e8,_0x33e46d){const _0x2272a2=_0x2272();return _0x415b=function(_0x415bd2,_0x3adde7){_0x415bd2=_0x415bd2-0x1e9;let _0x2b9ae6=_0x2272a2[_0x415bd2];return _0x2b9ae6;},_0x415b(_0x1e90e8,_0x33e46d);}export class UploadcareEditing extends _0x2f28bb{[_0x454e5b(0x21d)]=null;[_0x454e5b(0x226)]=null;static get[_0x454e5b(0x1f9)](){const _0x806f53=_0x454e5b;return _0x806f53(0x216);}static get[_0x454e5b(0x23d)](){const _0x44afde=_0x454e5b;return[_0x44afde(0x225),_0x37ebbe,_0x5c5204];}static get[_0x454e5b(0x237)](){return!0x0;}static get[_0x454e5b(0x239)](){return!0x0;}[_0x454e5b(0x1f8)];get[_0x454e5b(0x213)](){const _0x54f5e0=_0x454e5b;return this[_0x54f5e0(0x21d)];}get[_0x454e5b(0x22f)](){const _0x44c825=_0x454e5b;return this[_0x44c825(0x226)];}constructor(_0x4d6d04){const _0x134db6=_0x454e5b;super(_0x4d6d04),this[_0x134db6(0x1f8)]=_0x3de82b();}[_0x454e5b(0x22e)](){const _0x1a5835=_0x454e5b,_0x210d7a=this[_0x1a5835(0x235)];_0x210d7a[_0x1a5835(0x205)][_0x1a5835(0x20f)](_0x1a5835(0x21f),new _0x2a3f36(_0x210d7a));}[_0x454e5b(0x230)](){const _0x3e443d=_0x454e5b;this[_0x3e443d(0x229)](),this[_0x3e443d(0x1ed)](),this[_0x3e443d(0x202)](),this[_0x3e443d(0x211)](),this[_0x3e443d(0x1ee)](),this[_0x3e443d(0x1f2)](this[_0x3e443d(0x235)],_0x3e443d(0x1f0),()=>{const _0x10901b=_0x3e443d;this[_0x10901b(0x21d)]&&(this[_0x10901b(0x21d)][_0x10901b(0x1fd)](),this[_0x10901b(0x21d)]=null),this[_0x10901b(0x226)]&&(this[_0x10901b(0x226)][_0x10901b(0x1fd)](),this[_0x10901b(0x226)]=null);const _0x54a7a5=_0x2edb97[_0x10901b(0x233)][_0x10901b(0x21b)](_0x10901b(0x1fb));_0x54a7a5&&_0x54a7a5[_0x10901b(0x1fd)]();}),async function(_0x2fc18d){const _0x15afbd=_0xc35d53([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x19794e=0x535f8c3a,_0x2a5fc4=0x5358fb22^_0x19794e,_0x3f6917=window[_0xc35d53([0x44,0x61,0x74,0x65])][_0xc35d53([0x6e,0x6f,0x77])](),_0x278b64=_0x2fc18d[_0xc35d53([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x352b1a=new window[(_0xc35d53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ece88=>{_0x278b64[_0xc35d53([0x6f,0x6e,0x63,0x65])](_0xc35d53([0x72,0x65,0x61,0x64,0x79]),_0x3ece88);}),_0x392870={[_0xc35d53([0x6b,0x74,0x79])]:_0xc35d53([0x45,0x43]),[_0xc35d53([0x75,0x73,0x65])]:_0xc35d53([0x73,0x69,0x67]),[_0xc35d53([0x63,0x72,0x76])]:_0xc35d53([0x50,0x2d,0x32,0x35,0x36]),[_0xc35d53([0x78])]:_0xc35d53([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]),[_0xc35d53([0x79])]:_0xc35d53([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]),[_0xc35d53([0x61,0x6c,0x67])]:_0xc35d53([0x45,0x53,0x32,0x35,0x36])},_0x3f6124=_0x278b64[_0xc35d53([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xc35d53([0x67,0x65,0x74])](_0xc35d53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x51818d(){let _0x58e227,_0x28b8bd=null,_0x4c58de=null;try{if(_0x3f6124==_0xc35d53([0x47,0x50,0x4c]))return _0xc35d53([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x58e227=_0xf4b003(),!_0x58e227)return _0xc35d53([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x58e227[_0xc35d53([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4c58de=_0x116675(_0x58e227[_0xc35d53([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x58e227[_0xc35d53([0x6a,0x74,0x69])])),await _0x24090c()?_0x5ea64c()?_0x369c6c()?_0xc35d53([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4e91c2()?(_0x58e227[_0xc35d53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xc35d53([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x28b8bd=_0x1b6c90(_0xc35d53([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x58e227[_0xc35d53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xc35d53([0x74,0x72,0x69,0x61,0x6c])&&(_0x28b8bd=_0x1b6c90(_0xc35d53([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2bfaee()):_0xc35d53([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xc35d53([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xc35d53([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xc35d53([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x369c6c(){const _0x29847c=[_0xc35d53([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xc35d53([0x74,0x72,0x69,0x61,0x6c])][_0xc35d53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58e227[_0xc35d53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3f6917/0x3e8:0xe10*_0x2a5fc4;return _0x58e227[_0xc35d53([0x65,0x78,0x70])]<_0x29847c;}function _0x5ea64c(){const _0x1b051a=_0x58e227[_0xc35d53([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1b051a&&(!!_0x1b051a[_0xc35d53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc35d53([0x2a]))||!!_0x1b051a[_0xc35d53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc35d53([0x55,0x50,0x4c,0x43])));}function _0x4e91c2(){const _0xc0118c=_0x415b,_0x540fd2=_0x58e227[_0xc35d53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x540fd2||0x0==_0x540fd2[_0xc35d53([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2ec56b}=new URL(window[_0xc35d53([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xc0118c(0x1ec)]);if(_0x540fd2[_0xc35d53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ec56b))return!0x0;const _0x3069d6=_0x2ec56b[_0xc35d53([0x73,0x70,0x6c,0x69,0x74])](_0xc35d53([0x2e]));return _0x540fd2[_0xc35d53([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3c9809=>_0x3c9809[_0xc35d53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc35d53([0x2a])))[_0xc35d53([0x6d,0x61,0x70])](_0x35f64c=>_0x35f64c[_0xc35d53([0x73,0x70,0x6c,0x69,0x74])](_0xc35d53([0x2e])))[_0xc35d53([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x58f4ea=>_0x58f4ea[_0xc35d53([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3069d6[_0xc35d53([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xc35d53([0x6d,0x61,0x70])](_0x2e41a2=>Array(_0x3069d6[_0xc35d53([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2e41a2[_0xc35d53([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xc35d53([0x66,0x69,0x6c,0x6c])](_0x2e41a2[0x0]===_0xc35d53([0x2a])?_0xc35d53([0x2a]):'')[_0xc35d53([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2e41a2))[_0xc35d53([0x73,0x6f,0x6d,0x65])](_0x176e4b=>_0x3069d6[_0xc35d53([0x65,0x76,0x65,0x72,0x79])]((_0x5d2c55,_0x3611f7)=>_0x176e4b[_0x3611f7]===_0x5d2c55||_0x176e4b[_0x3611f7]===_0xc35d53([0x2a])));}function _0x2bfaee(){return _0x28b8bd&&_0x4c58de?new window[(_0xc35d53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x25b416,_0x36c714)=>{_0x28b8bd[_0xc35d53([0x74,0x68,0x65,0x6e])](_0x25b416,_0x36c714),_0x4c58de[_0xc35d53([0x74,0x68,0x65,0x6e])](_0x3fa50f=>{_0x3fa50f!=_0xc35d53([0x56,0x61,0x6c,0x69,0x64])&&_0x25b416(_0x3fa50f);},_0x36c714);}):_0x28b8bd||_0x4c58de||_0xc35d53([0x56,0x61,0x6c,0x69,0x64]);}}function _0x116675(_0x5a40d6,_0x57882b){return new window[(_0xc35d53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd8eb53=>{if(_0xc4a286())return _0xd8eb53(_0xc35d53([0x56,0x61,0x6c,0x69,0x64]));_0x45c01d(),_0x278b64[_0xc35d53([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xc35d53([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1aba81=!0x1;const _0x405f4a=_0x3de82b();function _0x4878d4(_0x15ea76){return!!_0x15ea76&&(typeof _0x15ea76===_0xc35d53([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x15ea76===_0xc35d53([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x15ea76[_0xc35d53([0x74,0x68,0x65,0x6e])]===_0xc35d53([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x15ea76[_0xc35d53([0x63,0x61,0x74,0x63,0x68])]===_0xc35d53([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x55dea3(_0x567d3c){_0x1b7b31(_0x567d3c)[_0xc35d53([0x74,0x68,0x65,0x6e])](_0x567870=>{if(!_0x567870||_0x567870[_0xc35d53([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xc35d53([0x6f,0x6b]))return _0xc35d53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x59c394(_0x3150dd(_0x405f4a+_0x57882b))!=_0x567870[_0xc35d53([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xc35d53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xc35d53([0x56,0x61,0x6c,0x69,0x64]);})[_0xc35d53([0x74,0x68,0x65,0x6e])](_0x51ef8f=>(_0x3e6e34(),_0x51ef8f),()=>{const _0x9b61e=_0x19bead();return null==_0x9b61e?(_0x3e6e34(),_0xc35d53([0x56,0x61,0x6c,0x69,0x64])):_0xc35d53(_0x3f6917-_0x9b61e>(0x7753083a^_0x19794e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xc35d53([0x74,0x68,0x65,0x6e])](_0xd8eb53)[_0xc35d53([0x63,0x61,0x74,0x63,0x68])](()=>{_0xd8eb53(_0xc35d53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4768f5=0x536962ba^_0x19794e;function _0x3e6e34(){const _0xb0dab5=_0xc35d53([0x6c,0x6c,0x63,0x74,0x2d])+_0x59c394(_0x3150dd(_0x5a40d6)),_0x51ed06=_0x4b1faa(_0x59c394(window[_0xc35d53([0x4d,0x61,0x74,0x68])][_0xc35d53([0x63,0x65,0x69,0x6c])](_0x3f6917/_0x4768f5)));window[_0xc35d53([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc35d53([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb0dab5,_0x51ed06);}function _0x19bead(){const _0x5a34ce=_0xc35d53([0x6c,0x6c,0x63,0x74,0x2d])+_0x59c394(_0x3150dd(_0x5a40d6)),_0xd92365=window[_0xc35d53([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc35d53([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a34ce);return _0xd92365?window[_0xc35d53([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b1faa(_0xd92365),0x10)*_0x4768f5:null;}function _0x1b7b31(_0x1fada9){return new window[(_0xc35d53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2de63d,_0x3f2e96)=>{_0x1fada9[_0xc35d53([0x74,0x68,0x65,0x6e])](_0x2de63d,_0x3f2e96),window[_0xc35d53([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3f2e96,0x535e58fa^_0x19794e);});}}_0x278b64[_0xc35d53([0x6f,0x6e])](_0xc35d53([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2443ed,_0x4c80d1)=>{if(_0x4c80d1[0x0]!=_0x5a40d6)return _0xd8eb53(_0xc35d53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4c80d1[0x1]={..._0x4c80d1[0x1],[_0xc35d53([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x405f4a};},{[_0xc35d53([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc35d53([0x68,0x69,0x67,0x68])}),_0x278b64[_0xc35d53([0x6f,0x6e])](_0xc35d53([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x579aa5=>{_0x4878d4(_0x579aa5[_0xc35d53([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1aba81=!0x0,_0x55dea3(_0x579aa5[_0xc35d53([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xc35d53([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc35d53([0x6c,0x6f,0x77])}),_0x352b1a[_0xc35d53([0x74,0x68,0x65,0x6e])](()=>{_0x1aba81||_0xd8eb53(_0xc35d53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xc4a286(){return _0x278b64[_0xc35d53([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc35d53([0x76,0x69,0x65,0x77])][_0xc35d53([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xc35d53([0x61,0x75,0x74,0x6f]);}function _0x45c01d(){_0x278b64[_0xc35d53([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc35d53([0x76,0x69,0x65,0x77])][_0xc35d53([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xc35d53([0x61,0x75,0x74,0x6f]);}}function _0x1b6c90(_0x574554){const _0x3253d9=[new window[(_0xc35d53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34c376=>setTimeout(_0x34c376,0x5356b2f6^_0x19794e)),_0x352b1a[_0xc35d53([0x74,0x68,0x65,0x6e])](()=>new window[(_0xc35d53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9a77af=>{let _0x1ae84b=0x0;_0x278b64[_0xc35d53([0x6d,0x6f,0x64,0x65,0x6c])][_0xc35d53([0x6f,0x6e])](_0xc35d53([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x551745,_0x18a2f2)=>{_0x18a2f2[0x0][_0xc35d53([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1ae84b++,_0x1ae84b==(0x535f8dc2^_0x19794e)&&(_0x9a77af(),_0x551745[_0xc35d53([0x6f,0x66,0x66])]());});}))];return window[_0xc35d53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xc35d53([0x72,0x61,0x63,0x65])](_0x3253d9)[_0xc35d53([0x74,0x68,0x65,0x6e])](()=>_0x574554);}async function _0x3e1131(){await _0x352b1a,_0x278b64[_0xc35d53([0x6d,0x6f,0x64,0x65,0x6c])][_0xc35d53([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2927f9,_0x278b64[_0xc35d53([0x6d,0x6f,0x64,0x65,0x6c])][_0xc35d53([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2927f9,_0x278b64[_0xc35d53([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xc35d53([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x426ebc(_0x3bbe55){const _0x3205f2=_0x17c9f2();_0x278b64[_0x3205f2]=_0xc35d53([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3bbe55,_0x3bbe55!=_0xc35d53([0x56,0x61,0x6c,0x69,0x64])&&_0x3e1131();}function _0x17c9f2(){const _0x223e84=window[_0xc35d53([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xc35d53([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xc35d53([0x6e,0x6f,0x77])]())[_0xc35d53([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xc35d53([0x2e]),'');let _0x2d8486=_0xc35d53([0x68]);for(let _0x33b368=0x0;_0x33b368<_0x223e84[_0xc35d53([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33b368+=0x2){let _0x4bb755=window[_0xc35d53([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x223e84[_0xc35d53([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33b368,_0x33b368+0x2));_0x4bb755>=_0x15afbd[_0xc35d53([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4bb755-=_0x15afbd[_0xc35d53([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2d8486+=_0x15afbd[_0x4bb755];}return _0x2d8486;}function _0xf4b003(){const _0x30aaaa=_0x3f6124[_0xc35d53([0x73,0x70,0x6c,0x69,0x74])](_0xc35d53([0x2e]));if(0x3!=_0x30aaaa[_0xc35d53([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5ccbbd(_0x30aaaa[0x1]);function _0x5ccbbd(_0x497e6f){const _0x4215ac=_0x19b1fa(_0x497e6f);return _0x4215ac&&_0x2cee91()?_0x4215ac:null;function _0x2cee91(){const _0x359bf2=_0x4215ac[_0xc35d53([0x6a,0x74,0x69])],_0x47cb63=window[_0xc35d53([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x359bf2[_0xc35d53([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x359bf2[_0xc35d53([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4ec8a3={..._0x4215ac,[_0xc35d53([0x6a,0x74,0x69])]:_0x359bf2[_0xc35d53([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x359bf2[_0xc35d53([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4ec8a3[_0xc35d53([0x76,0x63])],_0x3150dd(_0x4ec8a3)==_0x47cb63;}}}async function _0x24090c(){let _0x3fe88c=!0x0;try{const _0x9625fc=_0x3f6124[_0xc35d53([0x73,0x70,0x6c,0x69,0x74])](_0xc35d53([0x2e])),[_0x160a76,_0x5d31ae,_0x38f1a7]=_0x9625fc;return _0x470308(_0x160a76),await _0x438896(_0x160a76,_0x5d31ae,_0x38f1a7),_0x3fe88c;}catch{return!0x1;}function _0x470308(_0x498c7f){const _0x365a80=_0x19b1fa(_0x498c7f);_0x365a80&&_0x365a80[_0xc35d53([0x61,0x6c,0x67])]==_0xc35d53([0x45,0x53,0x32,0x35,0x36])||(_0x3fe88c=!0x1);}async function _0x438896(_0x37ce53,_0x498f1d,_0x472c4e){const _0x569103=window[_0xc35d53([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xc35d53([0x66,0x72,0x6f,0x6d])](_0x45ab95(_0x472c4e),_0x138b7b=>_0x138b7b[_0xc35d53([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x35abe0=new window[(_0xc35d53([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xc35d53([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x37ce53+_0xc35d53([0x2e])+_0x498f1d),_0x2a11a0=window[_0xc35d53([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xc35d53([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2a11a0)return;const _0x11a7a1=await _0x2a11a0[_0xc35d53([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xc35d53([0x6a,0x77,0x6b]),_0x392870,{[_0xc35d53([0x6e,0x61,0x6d,0x65])]:_0xc35d53([0x45,0x43,0x44,0x53,0x41]),[_0xc35d53([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xc35d53([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xc35d53([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2a11a0[_0xc35d53([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xc35d53([0x6e,0x61,0x6d,0x65])]:_0xc35d53([0x45,0x43,0x44,0x53,0x41]),[_0xc35d53([0x68,0x61,0x73,0x68])]:{[_0xc35d53([0x6e,0x61,0x6d,0x65])]:_0xc35d53([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x11a7a1,_0x569103,_0x35abe0)||(_0x3fe88c=!0x1);}}function _0x19b1fa(_0x571a66){return _0x571a66[_0xc35d53([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xc35d53([0x65,0x79]))?JSON[_0xc35d53([0x70,0x61,0x72,0x73,0x65])](_0x45ab95(_0x571a66)):null;}function _0x45ab95(_0x117445){return window[_0xc35d53([0x61,0x74,0x6f,0x62])](_0x117445[_0xc35d53([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xc35d53([0x2b]))[_0xc35d53([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xc35d53([0x2f])));}function _0x3150dd(_0x19241e){let _0x3d71f0=0x1505;function _0x15637a(_0xe8fd3){for(let _0x285733=0x0;_0x285733<_0xe8fd3[_0xc35d53([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x285733++){const _0x3d752a=_0xe8fd3[_0xc35d53([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x285733);_0x3d71f0=(_0x3d71f0<<0x5)+_0x3d71f0+_0x3d752a,_0x3d71f0&=_0x3d71f0;}}function _0x509bb0(_0x56f8f0){Array[_0xc35d53([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x56f8f0)?_0x56f8f0[_0xc35d53([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x509bb0):_0x56f8f0&&typeof _0x56f8f0==_0xc35d53([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xc35d53([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x56f8f0)[_0xc35d53([0x73,0x6f,0x72,0x74])]()[_0xc35d53([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2f5a33,_0x31bd6a])=>{_0x15637a(_0x2f5a33),_0x509bb0(_0x31bd6a);}):_0x15637a(window[_0xc35d53([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x56f8f0));}return _0x509bb0(_0x19241e),_0x3d71f0>>>0x0;}function _0x59c394(_0x115d16){return _0x115d16[_0xc35d53([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xc35d53([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xc35d53([0x30]));}function _0x4b1faa(_0x59e44f){return _0x59e44f[_0xc35d53([0x73,0x70,0x6c,0x69,0x74])]('')[_0xc35d53([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xc35d53([0x6a,0x6f,0x69,0x6e])]('');}function _0x2927f9(){}function _0xc35d53(_0x407039){const _0x1487f4=_0x415b;return _0x407039[_0x1487f4(0x23a)](_0x286b13=>String[_0x1487f4(0x1f6)](_0x286b13))[_0x1487f4(0x1fc)]('');}_0x426ebc(await _0x51818d());}(this);}[_0x454e5b(0x229)](){const _0x3bffcd=_0x454e5b,_0x5920e4=this[_0x3bffcd(0x235)][_0x3bffcd(0x220)][_0x3bffcd(0x22c)];_0x5920e4[_0x3bffcd(0x1ea)](_0x3bffcd(0x218))&&_0x5920e4[_0x3bffcd(0x1ef)](_0x3bffcd(0x218),{'allowAttributes':[_0x3bffcd(0x1fe)]}),_0x5920e4[_0x3bffcd(0x1ea)](_0x3bffcd(0x219))&&_0x5920e4[_0x3bffcd(0x1ef)](_0x3bffcd(0x219),{'allowAttributes':[_0x3bffcd(0x1fe)]});}[_0x454e5b(0x1ed)](){const _0x132c0f=_0x454e5b,_0x3f0818=this[_0x132c0f(0x235)];_0x3f0818[_0x132c0f(0x1e9)][_0x132c0f(0x23f)](_0x132c0f(0x231))[_0x132c0f(0x203)]({'model':_0x132c0f(0x1fe),'view':_0x132c0f(0x21e)}),_0x3f0818[_0x132c0f(0x1e9)][_0x132c0f(0x23f)](_0x132c0f(0x20a))[_0x132c0f(0x20d)]({'model':{'key':_0x132c0f(0x1fe),'value':_0x3f326f=>_0x3f326f[_0x132c0f(0x206)](_0x132c0f(0x21e))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2b534e=_0x3f0818[_0x132c0f(0x205)][_0x132c0f(0x22a)](_0x132c0f(0x221));_0x2b534e&&this[_0x132c0f(0x1f2)](_0x2b534e,_0x132c0f(0x236),(_0x3e0b59,[_0x3e941d,_0x60fc01])=>{const _0xc5f8e6=_0x132c0f;_0x3e941d[_0xc5f8e6(0x22d)](_0xc5f8e6(0x1fe),_0x60fc01);});}[_0x454e5b(0x202)](){const _0x5bc3d4=_0x454e5b,_0x41ccf9=this[_0x5bc3d4(0x235)][_0x5bc3d4(0x208)][_0x5bc3d4(0x22a)](_0x5bc3d4(0x1f3))||{},_0x630e3=this[_0x5bc3d4(0x235)][_0x5bc3d4(0x208)][_0x5bc3d4(0x22a)](_0x5bc3d4(0x228))||'';this[_0x5bc3d4(0x21d)]=_0x4f7aa0(_0x2edb97[_0x5bc3d4(0x233)],_0x5bc3d4(0x238),{..._0x41ccf9,'pubkey':_0x630e3,'ctx-name':_0x5bc3d4(0x21c)+this[_0x5bc3d4(0x1f8)],'sourceList':'','imgOnly':_0x5bc3d4(0x234),'removeCopyright':_0x5bc3d4(0x234),'localeName':this[_0x5bc3d4(0x235)][_0x5bc3d4(0x232)][_0x5bc3d4(0x222)],'externalSourcesEmbedCss':_0x5bc3d4(0x200)}),this[_0x5bc3d4(0x21d)][_0x5bc3d4(0x20e)]=_0x26b37a=>{const _0x2e4828=_0x5bc3d4;if(_0x2e4828(0x23e)==_0x26b37a)return _0x2e4828(0x23b);},_0x2edb97[_0x5bc3d4(0x233)][_0x5bc3d4(0x21a)][_0x5bc3d4(0x1ff)](this[_0x5bc3d4(0x21d)]);}[_0x454e5b(0x211)](){const _0x30a2ed=_0x454e5b;this[_0x30a2ed(0x226)]=_0x4f7aa0(_0x2edb97[_0x30a2ed(0x233)],_0x30a2ed(0x1f7),{'ctx-name':_0x30a2ed(0x21c)+this[_0x30a2ed(0x1f8)]}),_0x2edb97[_0x30a2ed(0x233)][_0x30a2ed(0x21a)][_0x30a2ed(0x1ff)](this[_0x30a2ed(0x226)]);}[_0x454e5b(0x1ee)](){const _0x18b50d=_0x454e5b,_0x20afde=this[_0x18b50d(0x235)][_0x18b50d(0x205)][_0x18b50d(0x22a)](_0x18b50d(0x212));_0x20afde&&this[_0x18b50d(0x1f2)](_0x20afde,_0x18b50d(0x224),()=>{const _0x55e138=_0x18b50d,_0x1a956e=this[_0x55e138(0x235)][_0x55e138(0x220)][_0x55e138(0x233)][_0x55e138(0x209)][_0x55e138(0x1eb)]();_0x1a956e&&_0x1a956e[_0x55e138(0x206)](_0x55e138(0x1fe))&&this[_0x55e138(0x235)][_0x55e138(0x1f4)][_0x55e138(0x1f1)][_0x55e138(0x215)](_0x55e138(0x204),()=>{const _0xa55d96=_0x55e138;_0x47d065(this[_0xa55d96(0x235)],_0x1a956e);});});const _0x594fa7=this[_0x18b50d(0x235)][_0x18b50d(0x205)][_0x18b50d(0x22a)](_0x18b50d(0x217));_0x594fa7&&this[_0x18b50d(0x1f2)](_0x594fa7,_0x18b50d(0x224),()=>{const _0x98a6f2=_0x18b50d,_0x5a69ed=this[_0x98a6f2(0x235)][_0x98a6f2(0x220)][_0x98a6f2(0x233)][_0x98a6f2(0x209)][_0x98a6f2(0x1eb)]();_0x5a69ed&&_0x5a69ed[_0x98a6f2(0x206)](_0x98a6f2(0x1fe))&&this[_0x98a6f2(0x235)][_0x98a6f2(0x1f4)][_0x98a6f2(0x1f1)][_0x98a6f2(0x215)](_0x98a6f2(0x204),()=>{const _0x255772=_0x98a6f2;_0x47d065(this[_0x255772(0x235)],_0x5a69ed);});});}}
|
|
23
|
+
const _0x20d38c=_0x304c;(function(_0x68e25f,_0x3fdd09){const _0x4e877a=_0x304c,_0x42d2c7=_0x68e25f();while(!![]){try{const _0x38f2fe=parseInt(_0x4e877a(0x189))/0x1*(-parseInt(_0x4e877a(0x187))/0x2)+parseInt(_0x4e877a(0x16a))/0x3+parseInt(_0x4e877a(0x152))/0x4*(-parseInt(_0x4e877a(0x16d))/0x5)+parseInt(_0x4e877a(0x181))/0x6+-parseInt(_0x4e877a(0x183))/0x7+-parseInt(_0x4e877a(0x185))/0x8+parseInt(_0x4e877a(0x159))/0x9;if(_0x38f2fe===_0x3fdd09)break;else _0x42d2c7['push'](_0x42d2c7['shift']());}catch(_0x2ee3e0){_0x42d2c7['push'](_0x42d2c7['shift']());}}}(_0x20e6,0x95398));import{Plugin as _0x13c12a}from'ckeditor5/src/core.js';import{Dialog as _0x4d203b}from'ckeditor5/src/ui.js';import{createElement as _0x487672,global as _0x24d2b8,uid as _0x1db159}from'ckeditor5/src/utils.js';function _0x20e6(){const _0x11aef9=['isOfficialPlugin','add','uploadcareImageReplace','UploadcareEditing','editor','insertImage','4BowtHI','for','afterInit','elementToAttribute','downcast','document','ctxElement','11484846VqYuQv','querySelector','_ctxElement','href','uc-upload-ctx-provider','get','uploadcare','selection','join','data-uc-image-id','destroy','uploadcare.uploader','_initConfig','commands','closeMax','_initConversion','input[uploadcare-file-input]','2489394cmfkVN','getAttribute','attributeToAttribute','1338035dzUUFd','pluginName','execute','fromCharCode','_initImageProcessingIndicator','#uc-icon-arrow-down','view','_initSchema','uploadcareImageId','uploadcare.pubkey','map','render','requires','upcast','PictureEditing','isRegistered','iconHrefResolver','_initCtx','model','replaceImageSource','2074020JoKLbf','config','8070209dGIVCy','uc-config','1255728MOMKSI','conversion','1138jmjgyy','cleanupImage','462pXZOFa','appendChild','imageBlock','once','locale','isPremiumPlugin','editing','removeAttribute','schema','configElement','getSelectedElement','remove','ucContextId','_configElement','contentLanguage','body','imageInline','init','true','extend','uploader-','listenTo','\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'];_0x20e6=function(){return _0x11aef9;};return _0x20e6();}import{UploadcareCommand as _0xd39bef}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x1dc4ec}from'./uploadcareuploadadapter.js';function _0x304c(_0x56e2c4,_0x92b9a9){const _0x20e617=_0x20e6();return _0x304c=function(_0x304c89,_0x2e2f43){_0x304c89=_0x304c89-0x140;let _0xacafa=_0x20e617[_0x304c89];return _0xacafa;},_0x304c(_0x56e2c4,_0x92b9a9);}import{showImageProcessingIndicator as _0x6f07c2}from'./utils/editingutils.js';export class UploadcareEditing extends _0x13c12a{[_0x20d38c(0x142)]=null;[_0x20d38c(0x15b)]=null;static get[_0x20d38c(0x16e)](){const _0x5e9995=_0x20d38c;return _0x5e9995(0x14f);}static get[_0x20d38c(0x179)](){const _0x1c38a1=_0x20d38c;return[_0x1c38a1(0x17b),_0x1dc4ec,_0x4d203b];}static get[_0x20d38c(0x14c)](){return!0x0;}static get[_0x20d38c(0x18e)](){return!0x0;}[_0x20d38c(0x141)];get[_0x20d38c(0x192)](){const _0x55bf65=_0x20d38c;return this[_0x55bf65(0x142)];}get[_0x20d38c(0x158)](){const _0x359b57=_0x20d38c;return this[_0x359b57(0x15b)];}constructor(_0x4a1251){const _0x318f15=_0x20d38c;super(_0x4a1251),this[_0x318f15(0x141)]=_0x1db159();}[_0x20d38c(0x146)](){const _0x44a8cd=_0x20d38c,_0xdd93e3=this[_0x44a8cd(0x150)];_0xdd93e3[_0x44a8cd(0x166)][_0x44a8cd(0x14d)](_0x44a8cd(0x15f),new _0xd39bef(_0xdd93e3));}[_0x20d38c(0x154)](){const _0x168a6c=_0x20d38c;this[_0x168a6c(0x174)](),this[_0x168a6c(0x168)](),this[_0x168a6c(0x165)](),this[_0x168a6c(0x17e)](),this[_0x168a6c(0x171)](),this[_0x168a6c(0x14a)](this[_0x168a6c(0x150)],_0x168a6c(0x163),()=>{const _0x388338=_0x168a6c;this[_0x388338(0x142)]&&(this[_0x388338(0x142)][_0x388338(0x140)](),this[_0x388338(0x142)]=null),this[_0x388338(0x15b)]&&(this[_0x388338(0x15b)][_0x388338(0x140)](),this[_0x388338(0x15b)]=null);const _0x1c83da=_0x24d2b8[_0x388338(0x157)][_0x388338(0x15a)](_0x388338(0x169));_0x1c83da&&_0x1c83da[_0x388338(0x140)]();}),async function(_0x57ccc9){const _0x391144=_0x4c4066([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x1843ab=0x535f8c3a,_0x5bd844=0x5358fb72^_0x1843ab,_0x3351ab=window[_0x4c4066([0x44,0x61,0x74,0x65])][_0x4c4066([0x6e,0x6f,0x77])](),_0x13bbe6=_0x57ccc9[_0x4c4066([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1787e8=new window[(_0x4c4066([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46a7d6=>{_0x13bbe6[_0x4c4066([0x6f,0x6e,0x63,0x65])](_0x4c4066([0x72,0x65,0x61,0x64,0x79]),_0x46a7d6);}),_0x779d64={[_0x4c4066([0x6b,0x74,0x79])]:_0x4c4066([0x45,0x43]),[_0x4c4066([0x75,0x73,0x65])]:_0x4c4066([0x73,0x69,0x67]),[_0x4c4066([0x63,0x72,0x76])]:_0x4c4066([0x50,0x2d,0x32,0x35,0x36]),[_0x4c4066([0x78])]:_0x4c4066([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]),[_0x4c4066([0x79])]:_0x4c4066([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]),[_0x4c4066([0x61,0x6c,0x67])]:_0x4c4066([0x45,0x53,0x32,0x35,0x36])},_0x28a79c=_0x13bbe6[_0x4c4066([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4c4066([0x67,0x65,0x74])](_0x4c4066([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2190e4(){let _0x5dacac,_0x4eac9d=null,_0x3f6737=null;try{if(_0x28a79c==_0x4c4066([0x47,0x50,0x4c]))return _0x4c4066([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5dacac=_0x5ae13a(),!_0x5dacac)return _0x4c4066([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5dacac[_0x4c4066([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3f6737=_0x27604d(_0x5dacac[_0x4c4066([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5dacac[_0x4c4066([0x6a,0x74,0x69])])),await _0x528627()?_0x73d87a()?_0xe9576a()?_0x4c4066([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x34cbce()?(_0x5dacac[_0x4c4066([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c4066([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4eac9d=_0xe352ca(_0x4c4066([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5dacac[_0x4c4066([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c4066([0x74,0x72,0x69,0x61,0x6c])&&(_0x4eac9d=_0xe352ca(_0x4c4066([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c19a5()):_0x4c4066([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4c4066([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4c4066([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4c4066([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xe9576a(){const _0xf19c87=[_0x4c4066([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4c4066([0x74,0x72,0x69,0x61,0x6c])][_0x4c4066([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5dacac[_0x4c4066([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3351ab/0x3e8:0xe10*_0x5bd844;return _0x5dacac[_0x4c4066([0x65,0x78,0x70])]<_0xf19c87;}function _0x73d87a(){const _0x4ca674=_0x5dacac[_0x4c4066([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4ca674&&(!!_0x4ca674[_0x4c4066([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c4066([0x2a]))||!!_0x4ca674[_0x4c4066([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c4066([0x55,0x50,0x4c,0x43])));}function _0x34cbce(){const _0x2e493b=_0x304c,_0x2fc1d9=_0x5dacac[_0x4c4066([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2fc1d9||0x0==_0x2fc1d9[_0x4c4066([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x459132}=new URL(window[_0x4c4066([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2e493b(0x15c)]);if(_0x2fc1d9[_0x4c4066([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x459132))return!0x0;const _0x4ff329=_0x459132[_0x4c4066([0x73,0x70,0x6c,0x69,0x74])](_0x4c4066([0x2e]));return _0x2fc1d9[_0x4c4066([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c500a=>_0x1c500a[_0x4c4066([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c4066([0x2a])))[_0x4c4066([0x6d,0x61,0x70])](_0x4ba513=>_0x4ba513[_0x4c4066([0x73,0x70,0x6c,0x69,0x74])](_0x4c4066([0x2e])))[_0x4c4066([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x435b8f=>_0x435b8f[_0x4c4066([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4ff329[_0x4c4066([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4c4066([0x6d,0x61,0x70])](_0x3c7ef4=>Array(_0x4ff329[_0x4c4066([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3c7ef4[_0x4c4066([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4c4066([0x66,0x69,0x6c,0x6c])](_0x3c7ef4[0x0]===_0x4c4066([0x2a])?_0x4c4066([0x2a]):'')[_0x4c4066([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3c7ef4))[_0x4c4066([0x73,0x6f,0x6d,0x65])](_0x9c47ed=>_0x4ff329[_0x4c4066([0x65,0x76,0x65,0x72,0x79])]((_0x1ecd53,_0x5dac60)=>_0x9c47ed[_0x5dac60]===_0x1ecd53||_0x9c47ed[_0x5dac60]===_0x4c4066([0x2a])));}function _0x4c19a5(){return _0x4eac9d&&_0x3f6737?new window[(_0x4c4066([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2229ff,_0x3dc7e6)=>{_0x4eac9d[_0x4c4066([0x74,0x68,0x65,0x6e])](_0x2229ff,_0x3dc7e6),_0x3f6737[_0x4c4066([0x74,0x68,0x65,0x6e])](_0x32a18e=>{_0x32a18e!=_0x4c4066([0x56,0x61,0x6c,0x69,0x64])&&_0x2229ff(_0x32a18e);},_0x3dc7e6);}):_0x4eac9d||_0x3f6737||_0x4c4066([0x56,0x61,0x6c,0x69,0x64]);}}function _0x27604d(_0x6c722d,_0x22ca95){return new window[(_0x4c4066([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12a589=>{if(_0x567a57())return _0x12a589(_0x4c4066([0x56,0x61,0x6c,0x69,0x64]));_0x5a9320(),_0x13bbe6[_0x4c4066([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4c4066([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x986044=!0x1;const _0x2a97d1=_0x1db159();function _0x37a1e2(_0x343575){return!!_0x343575&&(typeof _0x343575===_0x4c4066([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x343575===_0x4c4066([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x343575[_0x4c4066([0x74,0x68,0x65,0x6e])]===_0x4c4066([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x343575[_0x4c4066([0x63,0x61,0x74,0x63,0x68])]===_0x4c4066([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x20866f(_0x2fa5ca){_0x544fd(_0x2fa5ca)[_0x4c4066([0x74,0x68,0x65,0x6e])](_0x4631ff=>{if(!_0x4631ff||_0x4631ff[_0x4c4066([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4c4066([0x6f,0x6b]))return _0x4c4066([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x12a6fb(_0x46f529(_0x2a97d1+_0x22ca95))!=_0x4631ff[_0x4c4066([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4c4066([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4c4066([0x56,0x61,0x6c,0x69,0x64]);})[_0x4c4066([0x74,0x68,0x65,0x6e])](_0x31d7d4=>(_0x27786b(),_0x31d7d4),()=>{const _0x1b4b92=_0x52aa52();return null==_0x1b4b92?(_0x27786b(),_0x4c4066([0x56,0x61,0x6c,0x69,0x64])):_0x4c4066(_0x3351ab-_0x1b4b92>(0x7753083a^_0x1843ab)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4c4066([0x74,0x68,0x65,0x6e])](_0x12a589)[_0x4c4066([0x63,0x61,0x74,0x63,0x68])](()=>{_0x12a589(_0x4c4066([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x106306=0x536962ba^_0x1843ab;function _0x27786b(){const _0x2faf2b=_0x4c4066([0x6c,0x6c,0x63,0x74,0x2d])+_0x12a6fb(_0x46f529(_0x6c722d)),_0x2c5f27=_0x31307d(_0x12a6fb(window[_0x4c4066([0x4d,0x61,0x74,0x68])][_0x4c4066([0x63,0x65,0x69,0x6c])](_0x3351ab/_0x106306)));window[_0x4c4066([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c4066([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2faf2b,_0x2c5f27);}function _0x52aa52(){const _0x4d97e5=_0x4c4066([0x6c,0x6c,0x63,0x74,0x2d])+_0x12a6fb(_0x46f529(_0x6c722d)),_0x3954c1=window[_0x4c4066([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c4066([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d97e5);return _0x3954c1?window[_0x4c4066([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31307d(_0x3954c1),0x10)*_0x106306:null;}function _0x544fd(_0x56a727){return new window[(_0x4c4066([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1bf156,_0x2810dd)=>{_0x56a727[_0x4c4066([0x74,0x68,0x65,0x6e])](_0x1bf156,_0x2810dd),window[_0x4c4066([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2810dd,0x535e58fa^_0x1843ab);});}}_0x13bbe6[_0x4c4066([0x6f,0x6e])](_0x4c4066([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x23a726,_0xeee4e1)=>{if(_0xeee4e1[0x0]!=_0x6c722d)return _0x12a589(_0x4c4066([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xeee4e1[0x1]={..._0xeee4e1[0x1],[_0x4c4066([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2a97d1};},{[_0x4c4066([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c4066([0x68,0x69,0x67,0x68])}),_0x13bbe6[_0x4c4066([0x6f,0x6e])](_0x4c4066([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4138b1=>{_0x37a1e2(_0x4138b1[_0x4c4066([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x986044=!0x0,_0x20866f(_0x4138b1[_0x4c4066([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4c4066([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c4066([0x6c,0x6f,0x77])}),_0x1787e8[_0x4c4066([0x74,0x68,0x65,0x6e])](()=>{_0x986044||_0x12a589(_0x4c4066([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x567a57(){return _0x13bbe6[_0x4c4066([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c4066([0x76,0x69,0x65,0x77])][_0x4c4066([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4c4066([0x61,0x75,0x74,0x6f]);}function _0x5a9320(){_0x13bbe6[_0x4c4066([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c4066([0x76,0x69,0x65,0x77])][_0x4c4066([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4c4066([0x61,0x75,0x74,0x6f]);}}function _0xe352ca(_0x59788e){const _0x4cd7c7=[new window[(_0x4c4066([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48f733=>setTimeout(_0x48f733,0x5356b2f6^_0x1843ab)),_0x1787e8[_0x4c4066([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4c4066([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x75c6f0=>{let _0x212127=0x0;_0x13bbe6[_0x4c4066([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c4066([0x6f,0x6e])](_0x4c4066([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3dc8a5,_0x4d4efc)=>{_0x4d4efc[0x0][_0x4c4066([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x212127++,_0x212127==(0x535f8dc2^_0x1843ab)&&(_0x75c6f0(),_0x3dc8a5[_0x4c4066([0x6f,0x66,0x66])]());});}))];return window[_0x4c4066([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4c4066([0x72,0x61,0x63,0x65])](_0x4cd7c7)[_0x4c4066([0x74,0x68,0x65,0x6e])](()=>_0x59788e);}async function _0x4cd2e4(){await _0x1787e8,_0x13bbe6[_0x4c4066([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c4066([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5e0f86,_0x13bbe6[_0x4c4066([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c4066([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5e0f86,_0x13bbe6[_0x4c4066([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4c4066([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x24ab86(_0x1b9c87){const _0x31ecfe=_0x49acb6();_0x13bbe6[_0x31ecfe]=_0x4c4066([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1b9c87,_0x1b9c87!=_0x4c4066([0x56,0x61,0x6c,0x69,0x64])&&_0x4cd2e4();}function _0x49acb6(){const _0x1e8ee4=window[_0x4c4066([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4c4066([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4c4066([0x6e,0x6f,0x77])]())[_0x4c4066([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4c4066([0x2e]),'');let _0x1edac9=_0x4c4066([0x68]);for(let _0x3b9e42=0x0;_0x3b9e42<_0x1e8ee4[_0x4c4066([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b9e42+=0x2){let _0x446c3d=window[_0x4c4066([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e8ee4[_0x4c4066([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b9e42,_0x3b9e42+0x2));_0x446c3d>=_0x391144[_0x4c4066([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x446c3d-=_0x391144[_0x4c4066([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1edac9+=_0x391144[_0x446c3d];}return _0x1edac9;}function _0x5ae13a(){const _0xe93634=_0x28a79c[_0x4c4066([0x73,0x70,0x6c,0x69,0x74])](_0x4c4066([0x2e]));if(0x3!=_0xe93634[_0x4c4066([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x40c2d7(_0xe93634[0x1]);function _0x40c2d7(_0x3f0c1a){const _0x5223b6=_0x4a8be2(_0x3f0c1a);return _0x5223b6&&_0x437e25()?_0x5223b6:null;function _0x437e25(){const _0x36c9f4=_0x5223b6[_0x4c4066([0x6a,0x74,0x69])],_0xc201b6=window[_0x4c4066([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36c9f4[_0x4c4066([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x36c9f4[_0x4c4066([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x181d87={..._0x5223b6,[_0x4c4066([0x6a,0x74,0x69])]:_0x36c9f4[_0x4c4066([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x36c9f4[_0x4c4066([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x181d87[_0x4c4066([0x76,0x63])],_0x46f529(_0x181d87)==_0xc201b6;}}}async function _0x528627(){let _0x1a7981=!0x0;try{const _0x2ee6e8=_0x28a79c[_0x4c4066([0x73,0x70,0x6c,0x69,0x74])](_0x4c4066([0x2e])),[_0x1f7022,_0x3d96eb,_0x3479a5]=_0x2ee6e8;return _0x27215e(_0x1f7022),await _0x4b9986(_0x1f7022,_0x3d96eb,_0x3479a5),_0x1a7981;}catch{return!0x1;}function _0x27215e(_0x582efe){const _0x289b42=_0x4a8be2(_0x582efe);_0x289b42&&_0x289b42[_0x4c4066([0x61,0x6c,0x67])]==_0x4c4066([0x45,0x53,0x32,0x35,0x36])||(_0x1a7981=!0x1);}async function _0x4b9986(_0x293ae8,_0x867e9e,_0x59a437){const _0x1afbc9=window[_0x4c4066([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4c4066([0x66,0x72,0x6f,0x6d])](_0xd86bc9(_0x59a437),_0xfdba95=>_0xfdba95[_0x4c4066([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x451152=new window[(_0x4c4066([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4c4066([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x293ae8+_0x4c4066([0x2e])+_0x867e9e),_0x6801d4=window[_0x4c4066([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4c4066([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x6801d4)return;const _0xe52a3f=await _0x6801d4[_0x4c4066([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4c4066([0x6a,0x77,0x6b]),_0x779d64,{[_0x4c4066([0x6e,0x61,0x6d,0x65])]:_0x4c4066([0x45,0x43,0x44,0x53,0x41]),[_0x4c4066([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4c4066([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4c4066([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x6801d4[_0x4c4066([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4c4066([0x6e,0x61,0x6d,0x65])]:_0x4c4066([0x45,0x43,0x44,0x53,0x41]),[_0x4c4066([0x68,0x61,0x73,0x68])]:{[_0x4c4066([0x6e,0x61,0x6d,0x65])]:_0x4c4066([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xe52a3f,_0x1afbc9,_0x451152)||(_0x1a7981=!0x1);}}function _0x4a8be2(_0x4ad229){return _0x4ad229[_0x4c4066([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4c4066([0x65,0x79]))?JSON[_0x4c4066([0x70,0x61,0x72,0x73,0x65])](_0xd86bc9(_0x4ad229)):null;}function _0xd86bc9(_0xfe5acf){return window[_0x4c4066([0x61,0x74,0x6f,0x62])](_0xfe5acf[_0x4c4066([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4c4066([0x2b]))[_0x4c4066([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4c4066([0x2f])));}function _0x46f529(_0x3eccd0){let _0x48d627=0x1505;function _0x1a2f76(_0x145f59){for(let _0xdea47=0x0;_0xdea47<_0x145f59[_0x4c4066([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xdea47++){const _0x11d480=_0x145f59[_0x4c4066([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xdea47);_0x48d627=(_0x48d627<<0x5)+_0x48d627+_0x11d480,_0x48d627&=_0x48d627;}}function _0x1a74ff(_0x21b4e7){Array[_0x4c4066([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x21b4e7)?_0x21b4e7[_0x4c4066([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1a74ff):_0x21b4e7&&typeof _0x21b4e7==_0x4c4066([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4c4066([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x21b4e7)[_0x4c4066([0x73,0x6f,0x72,0x74])]()[_0x4c4066([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x489137,_0x45e757])=>{_0x1a2f76(_0x489137),_0x1a74ff(_0x45e757);}):_0x1a2f76(window[_0x4c4066([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x21b4e7));}return _0x1a74ff(_0x3eccd0),_0x48d627>>>0x0;}function _0x12a6fb(_0x5e7191){return _0x5e7191[_0x4c4066([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4c4066([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4c4066([0x30]));}function _0x31307d(_0xb1d7f2){return _0xb1d7f2[_0x4c4066([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4c4066([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4c4066([0x6a,0x6f,0x69,0x6e])]('');}function _0x5e0f86(){}function _0x4c4066(_0x420c8d){const _0x33d23e=_0x304c;return _0x420c8d[_0x33d23e(0x177)](_0x23ae95=>String[_0x33d23e(0x170)](_0x23ae95))[_0x33d23e(0x161)]('');}_0x24ab86(await _0x2190e4());}(this);}[_0x20d38c(0x174)](){const _0x115d78=_0x20d38c,_0xa14793=this[_0x115d78(0x150)][_0x115d78(0x17f)][_0x115d78(0x191)];_0xa14793[_0x115d78(0x17c)](_0x115d78(0x18b))&&_0xa14793[_0x115d78(0x148)](_0x115d78(0x18b),{'allowAttributes':[_0x115d78(0x175)]}),_0xa14793[_0x115d78(0x17c)](_0x115d78(0x145))&&_0xa14793[_0x115d78(0x148)](_0x115d78(0x145),{'allowAttributes':[_0x115d78(0x175)]});}[_0x20d38c(0x168)](){const _0x419cda=_0x20d38c,_0x462a92=this[_0x419cda(0x150)];_0x462a92[_0x419cda(0x186)][_0x419cda(0x153)](_0x419cda(0x156))[_0x419cda(0x16c)]({'model':_0x419cda(0x175),'view':_0x419cda(0x162)}),_0x462a92[_0x419cda(0x186)][_0x419cda(0x153)](_0x419cda(0x17a))[_0x419cda(0x155)]({'model':{'key':_0x419cda(0x175),'value':_0x186ec2=>_0x186ec2[_0x419cda(0x16b)](_0x419cda(0x162))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x50d325=_0x462a92[_0x419cda(0x166)][_0x419cda(0x15e)](_0x419cda(0x180));_0x50d325&&this[_0x419cda(0x14a)](_0x50d325,_0x419cda(0x188),(_0x1f4c9b,[_0x22d3fb,_0x1c20a6])=>{const _0x216648=_0x419cda;_0x22d3fb[_0x216648(0x190)](_0x216648(0x175),_0x1c20a6);});}[_0x20d38c(0x165)](){const _0x354cf9=_0x20d38c,_0x38a375=this[_0x354cf9(0x150)][_0x354cf9(0x182)][_0x354cf9(0x15e)](_0x354cf9(0x164))||{},_0x1ca5bf=this[_0x354cf9(0x150)][_0x354cf9(0x182)][_0x354cf9(0x15e)](_0x354cf9(0x176))||'';this[_0x354cf9(0x142)]=_0x487672(_0x24d2b8[_0x354cf9(0x157)],_0x354cf9(0x184),{..._0x38a375,'pubkey':_0x1ca5bf,'ctx-name':_0x354cf9(0x149)+this[_0x354cf9(0x141)],'sourceList':'','imgOnly':_0x354cf9(0x147),'removeCopyright':_0x354cf9(0x147),'localeName':this[_0x354cf9(0x150)][_0x354cf9(0x18d)][_0x354cf9(0x143)],'externalSourcesEmbedCss':_0x354cf9(0x14b)}),this[_0x354cf9(0x142)][_0x354cf9(0x17d)]=_0x6d28fe=>{const _0x14eb92=_0x354cf9;if(_0x14eb92(0x167)==_0x6d28fe)return _0x14eb92(0x172);},_0x24d2b8[_0x354cf9(0x157)][_0x354cf9(0x144)][_0x354cf9(0x18a)](this[_0x354cf9(0x142)]);}[_0x20d38c(0x17e)](){const _0x2e4f4b=_0x20d38c;this[_0x2e4f4b(0x15b)]=_0x487672(_0x24d2b8[_0x2e4f4b(0x157)],_0x2e4f4b(0x15d),{'ctx-name':_0x2e4f4b(0x149)+this[_0x2e4f4b(0x141)]}),_0x24d2b8[_0x2e4f4b(0x157)][_0x2e4f4b(0x144)][_0x2e4f4b(0x18a)](this[_0x2e4f4b(0x15b)]);}[_0x20d38c(0x171)](){const _0x1846e9=_0x20d38c,_0x476d40=this[_0x1846e9(0x150)][_0x1846e9(0x166)][_0x1846e9(0x15e)](_0x1846e9(0x151));_0x476d40&&this[_0x1846e9(0x14a)](_0x476d40,_0x1846e9(0x16f),()=>{const _0x43f398=_0x1846e9,_0x2e0ea5=this[_0x43f398(0x150)][_0x43f398(0x17f)][_0x43f398(0x157)][_0x43f398(0x160)][_0x43f398(0x193)]();_0x2e0ea5&&_0x2e0ea5[_0x43f398(0x16b)](_0x43f398(0x175))&&this[_0x43f398(0x150)][_0x43f398(0x18f)][_0x43f398(0x173)][_0x43f398(0x18c)](_0x43f398(0x178),()=>{const _0x529f60=_0x43f398;_0x6f07c2(this[_0x529f60(0x150)],_0x2e0ea5);});});const _0x14df4c=this[_0x1846e9(0x150)][_0x1846e9(0x166)][_0x1846e9(0x15e)](_0x1846e9(0x14e));_0x14df4c&&this[_0x1846e9(0x14a)](_0x14df4c,_0x1846e9(0x16f),()=>{const _0x4a1f10=_0x1846e9,_0x39d5b4=this[_0x4a1f10(0x150)][_0x4a1f10(0x17f)][_0x4a1f10(0x157)][_0x4a1f10(0x160)][_0x4a1f10(0x193)]();_0x39d5b4&&_0x39d5b4[_0x4a1f10(0x16b)](_0x4a1f10(0x175))&&this[_0x4a1f10(0x150)][_0x4a1f10(0x18f)][_0x4a1f10(0x173)][_0x4a1f10(0x18c)](_0x4a1f10(0x178),()=>{const _0xb02949=_0x4a1f10;_0x6f07c2(this[_0xb02949(0x150)],_0x39d5b4);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0xeb627d,ObservableMixin as _0x56fb47}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x265462}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x28321d}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x38dd4b}from'./uploadcareimageeditformview.js';import{UploadUtils as _0xaecc35}from'../../utils/uploadutils.js';import{getImageUrls as _0x3f749b,getImageDimension as _0x10d985}from'../../utils/editingutils.js';import{isAncestor as _0x54a4c9}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x56fb47(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x517c0c,_0x27c0d9,_0x46e197){super(),this['_editor']=_0x517c0c,this['_dialog']=_0x27c0d9,this['_imageElement']=_0x46e197,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 _0x4cc53b=this['_imageElement'],_0x320b32=_0x4cc53b['getAttribute']('uploadcareImageId'),_0x21cceb=_0x4cc53b['getAttribute']('src');if(_0x320b32)await this['_loadImageInfo'](_0x320b32,_0x21cceb);else{if(this['_imageCache']['has'](_0x21cceb)){const _0x4c6900=this['_imageCache']['get'](_0x21cceb);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4c6900['url'],this['imageDimension']=_0x4c6900['dimension'],this['imageId']=_0x4c6900['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3cf66d}=this['_editor'],t=_0x3cf66d['t'],_0x28373f=new _0x38dd4b(_0x3cf66d,this['imageStatus'],this['_attributes']);_0x28373f['bind']('status')['to'](this,'imageStatus'),_0x28373f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x28373f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x28373f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x28373f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x28321d,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x28373f,'position':_0x265462['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x28373f['focus']();},'onHide':()=>{_0x28373f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3ac594=>!_0x54a4c9(_0x3ac594,_0x28373f['element'])}});}['_loadImageInfo'](_0x5e9c1c,_0x3df9aa){return _0xaecc35['getInfo'](_0x5e9c1c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x202cce=>{const {width:_0x4d357b,height:_0x3ec9d7}=_0x202cce['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3df9aa,this['imageDimension']={'width':_0x4d357b,'height':_0x3ec9d7},this['imageId']=_0x5e9c1c;})['catch'](_0x5c596a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5c596a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x556ff8,_0x24edcb){return this['_getImageAsFile'](_0x556ff8)['then'](_0x398417=>_0xaecc35['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x24edcb['signal'],'file':_0x398417,'onProgress':_0x1e16be=>{_0x1e16be&&_0x1e16be['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1e16be['value']));}}))['then'](_0x354a1d=>{const {width:_0x1f911a,height:_0x142cc2}=_0x354a1d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x354a1d['cdnUrl'],this['imageDimension']={'width':_0x1f911a,'height':_0x142cc2},this['imageId']=_0x354a1d['uuid'],this['imageUploadProgress']=null;const _0x28696c=_0x556ff8['getAttribute']('src');this['_imageCache']['set'](_0x28696c,{'id':_0x354a1d['uuid'],'url':_0x354a1d['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x48b737=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x48b737['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x12f725,_0x21bd28){_0x12f725['on']('apply',(_0x21229f,_0x1627b8)=>{this['_replaceImage'](_0x21bd28,_0x1627b8['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x12f725['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x12f725['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x55a5f6,_0x58257e,_0x3bcda1){const _0x5b0baf=this['_editor'],{width:_0x8f44e0,height:_0x31be12}=_0x10d985(_0x58257e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x9f433a,imageSources:_0x4c5acb}=_0x3f749b(_0x58257e,_0x8f44e0);_0x5b0baf['model']['change'](_0x4964b6=>{if('$graveyard'===_0x55a5f6['root']['rootName']){_0x5b0baf['execute']('insertImage',{'imageType':_0x55a5f6['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x55a5f6['getAttributes']()),'uploadcareImageId':_0x3bcda1,'src':_0x9f433a,'sources':_0x4c5acb,'width':_0x8f44e0,'height':_0x31be12}});const _0x299b6e=_0x55a5f6['getChildren']();_0x55a5f6=_0x5b0baf['model']['document']['selection']['getSelectedElement']();for(const _0x197e54 of _0x299b6e)_0x4964b6['append'](_0x4964b6['cloneElement'](_0x197e54),_0x55a5f6);}else _0x4964b6['setSelection'](_0x55a5f6,'on'),_0x5b0baf['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x55a5f6['getAttributes']()),'uploadcareImageId':_0x3bcda1,'src':_0x9f433a,'sources':_0x4c5acb,'width':_0x8f44e0,'height':_0x31be12},_0x55a5f6);_0x4964b6['setSelection'](_0x55a5f6,'on');});}async['_getImageAsFile'](_0x1eb363){const _0x24d3c1=_0xeb627d['window'],_0x51ae59=_0xeb627d['document']['location']['href'],_0x381ba0=new _0x24d3c1['URL'](_0x1eb363['getAttribute']('src'),_0x51ae59);if('data:'===_0x381ba0['protocol']){const _0x346c05=_0x381ba0['href']['split'](','),_0x1eba2b=_0x346c05[0x0]['match'](/:(.*?);/)[0x1],_0x5a9c4a=_0x1eba2b['split']('/')[0x1],_0x4be6b3=_0x24d3c1['atob'](_0x346c05[_0x346c05['length']-0x1]);let _0x4bb7f7=_0x4be6b3['length'];const _0x238d65=new _0x24d3c1['Uint8Array'](_0x4bb7f7);for(;_0x4bb7f7--;)_0x238d65[_0x4bb7f7]=_0x4be6b3['charCodeAt'](_0x4bb7f7);return new _0x24d3c1['File']([_0x238d65],'image.'+_0x5a9c4a,{'type':_0x1eba2b});}const _0x45536e=_0x381ba0['href']['split']('/'),_0x50ab99=_0x45536e[_0x45536e['length']-0x1],_0x172e31=_0x50ab99['split']('.')[0x1];return _0x24d3c1['fetch'](_0x381ba0['href'])['then'](_0x47dfe5=>_0x47dfe5['clone']()['blob']())['then'](_0x4756d6=>new _0x24d3c1['File']([_0x4756d6],_0x50ab99,{'type':'image/'+_0x172e31}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x1c2eb2,_0x447ecc){const _0x2544c7=_0x5f03,_0xcfa9f=_0x1c2eb2();while(!![]){try{const _0xc7adc1=parseInt(_0x2544c7(0x8c))/0x1*(parseInt(_0x2544c7(0x8f))/0x2)+parseInt(_0x2544c7(0x89))/0x3*(parseInt(_0x2544c7(0x88))/0x4)+-parseInt(_0x2544c7(0x84))/0x5+-parseInt(_0x2544c7(0x7f))/0x6+parseInt(_0x2544c7(0x82))/0x7+parseInt(_0x2544c7(0x90))/0x8*(parseInt(_0x2544c7(0x8e))/0x9)+parseInt(_0x2544c7(0x80))/0xa;if(_0xc7adc1===_0x447ecc)break;else _0xcfa9f['push'](_0xcfa9f['shift']());}catch(_0x3083d9){_0xcfa9f['push'](_0xcfa9f['shift']());}}}(_0x1b94,0x3222e));import{View as _0x2ea7b3}from'ckeditor5/src/ui.js';function _0x1b94(){const _0x407f43=['1279BoBZuf','set','9uJvGJP','278FfMNkJ','2577512mnHngO','1869096gXKutJ','34940mpDTvT','bindTemplate','1152403RoJdDN','imageSrc','2028125gKYbBt','ck-uploadcare-theme','uc-cloud-image-editor','setTemplate','436iPoPaY','7002YppYYY','image-edit','uc-light'];_0x1b94=function(){return _0x407f43;};return _0x1b94();}function _0x5f03(_0x22d648,_0xa89778){const _0x1b9412=_0x1b94();return _0x5f03=function(_0x5f0384,_0x4056c0){_0x5f0384=_0x5f0384-0x7f;let _0x33052d=_0x1b9412[_0x5f0384];return _0x33052d;},_0x5f03(_0x22d648,_0xa89778);}export class UploadcareImageEditFormEditingView extends _0x2ea7b3{constructor(_0x1ab160,_0x31443f){const _0x57ad27=_0x5f03;super(_0x1ab160);const _0xa24544=this[_0x57ad27(0x81)];this[_0x57ad27(0x8d)](_0x57ad27(0x83),''),this[_0x57ad27(0x87)]({'tag':_0x57ad27(0x86),'attributes':{..._0x31443f,'class':[_0x57ad27(0x8b),_0x57ad27(0x85)],'ctx-name':_0x57ad27(0x8a),'cdn-url':_0xa24544['to'](_0x57ad27(0x83))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x392538}from'ckeditor5/src/icons.js';import{ButtonView as _0xa77314,IconView as _0x36c76d,View as _0x3cdcbe}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x3cdcbe{constructor(_0x5a1829){super(_0x5a1829);const t=_0x5a1829['t'];this['set']('errorType',null);const _0x5c228e=new _0xa77314(_0x5a1829);_0x5c228e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5c228e['withText']=!0x0,_0x5c228e['class']='ck-button-action',_0x5c228e['on']('execute',()=>{this['fire']('retry');}),_0x5c228e['bind']('isVisible')['to'](this,'errorType',_0x1f9517=>'NotFound'!==_0x1f9517);const _0x57f43b=new _0x36c76d();_0x57f43b['content']=_0x392538,_0x57f43b['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x87704f=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':[_0x57f43b,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x87704f['to']('errorType',_0x497cec=>t('NotFound'!==_0x497cec?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5c228e]},{'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 _0xb33290,View as _0x5567a1}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x5567a1{constructor(_0x76fa93){super(_0x76fa93);const t=_0x76fa93['t'],_0x178dc4=this['bindTemplate'],_0x4ab08b=new _0xb33290();_0x4ab08b['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':[_0x4ab08b,{'text':_0x178dc4['to']('imageUploadProgress',_0x5c50c0=>t('Loading\x20image...')+'\x20('+(_0x5c50c0||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
|
-
|
|
23
|
+
const _0xa72918=_0x4dd1;(function(_0x123a16,_0x47eda7){const _0x2802ce=_0x4dd1,_0xd9037d=_0x123a16();while(!![]){try{const _0x5e4329=-parseInt(_0x2802ce(0x1aa))/0x1+parseInt(_0x2802ce(0x18b))/0x2*(-parseInt(_0x2802ce(0x195))/0x3)+-parseInt(_0x2802ce(0x184))/0x4*(parseInt(_0x2802ce(0x175))/0x5)+-parseInt(_0x2802ce(0x188))/0x6*(-parseInt(_0x2802ce(0x190))/0x7)+parseInt(_0x2802ce(0x19a))/0x8*(-parseInt(_0x2802ce(0x1a7))/0x9)+parseInt(_0x2802ce(0x1a4))/0xa*(parseInt(_0x2802ce(0x19f))/0xb)+parseInt(_0x2802ce(0x1a0))/0xc;if(_0x5e4329===_0x47eda7)break;else _0xd9037d['push'](_0xd9037d['shift']());}catch(_0x47bc24){_0xd9037d['push'](_0xd9037d['shift']());}}}(_0xf717,0xa8a8e));import{View as _0x98438d}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x1949ac}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x4ad166}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x87f6ab}from'./uploadcareimageeditformeditingview.js';function _0x4dd1(_0xd01fce,_0x17dcec){const _0xf717db=_0xf717();return _0x4dd1=function(_0x4dd1ad,_0x5328c6){_0x4dd1ad=_0x4dd1ad-0x175;let _0x1bac2c=_0xf717db[_0x4dd1ad];return _0x1bac2c;},_0x4dd1(_0xd01fce,_0x17dcec);}import{DialogFocusManagerView as _0x323cc1}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x323cc1{[_0xa72918(0x18f)];[_0xa72918(0x1a9)];[_0xa72918(0x186)];[_0xa72918(0x196)];[_0xa72918(0x19d)];constructor(_0x10a6cf,_0x55dbc5,_0x56325b){const _0x309445=_0xa72918;super(_0x10a6cf),this[_0x309445(0x18f)]=this[_0x309445(0x1a1)](),this[_0x309445(0x1a9)]=new _0x1949ac(_0x10a6cf),this[_0x309445(0x186)]=new _0x4ad166(_0x10a6cf),this[_0x309445(0x196)]=new _0x87f6ab(_0x10a6cf,_0x56325b),this[_0x309445(0x19d)]=new _0x98438d(_0x10a6cf),this[_0x309445(0x19d)][_0x309445(0x189)](this[_0x309445(0x1a3)]()),this[_0x309445(0x181)](_0x309445(0x194),_0x55dbc5),this[_0x309445(0x189)]({'tag':_0x309445(0x19e),'attributes':{'class':['ck',_0x309445(0x18d),_0x309445(0x182)],'tabindex':'-1'},'children':this[_0x309445(0x18f)]}),this[_0x309445(0x1ab)](),this[_0x309445(0x1a8)](_0x309445(0x198),()=>{const _0x1071c3=_0x309445;this[_0x1071c3(0x179)](this[_0x1071c3(0x187)],_0xee0088=>{const _0xb37b94=_0x1071c3;this[_0xb37b94(0x17a)](_0xee0088);});}),this['on'](_0x309445(0x178),()=>{const _0x1a513a=_0x309445;this[_0x1a513a(0x1ab)]();}),this[_0x309445(0x18a)]();}[_0xa72918(0x183)](){const _0xa37019=_0xa72918;this[_0xa37019(0x187)][_0xa37019(0x183)]();}[_0xa72918(0x1ab)](){const _0x5af5c2=_0xa72918;switch(this[_0x5af5c2(0x18f)][_0x5af5c2(0x19c)](),this[_0x5af5c2(0x194)]){case _0x5af5c2(0x1a2):this[_0x5af5c2(0x18f)][_0x5af5c2(0x1a6)](this[_0x5af5c2(0x1a9)]);break;case _0x5af5c2(0x1ac):this[_0x5af5c2(0x18f)][_0x5af5c2(0x1a6)](this[_0x5af5c2(0x186)]);break;case _0x5af5c2(0x176):this[_0x5af5c2(0x18f)][_0x5af5c2(0x192)]([this[_0x5af5c2(0x196)],this[_0x5af5c2(0x19d)]]);}}[_0xa72918(0x179)](_0x24fb79,_0x1c98f5){const _0x590ac8=_0xa72918,_0x287329=_0x590ac8(0x1ad),_0x4b87af=_0x24fb79[_0x590ac8(0x185)](_0x287329);if(_0x4b87af)return _0x1c98f5(_0x4b87af);const _0x23a0b7=new MutationObserver(_0x34c795=>{const _0x1646ba=_0x590ac8,_0x5db49e=_0x34c795[_0x1646ba(0x17e)](_0xb0ceb8=>_0xb0ceb8[_0x1646ba(0x191)]===_0x24fb79&&_0xb0ceb8[_0x1646ba(0x17d)][_0x1646ba(0x193)]>0x0&&_0xb0ceb8[_0x1646ba(0x17d)][0x0][_0x1646ba(0x1a5)][_0x1646ba(0x17f)]()===_0x287329);_0x5db49e[_0x1646ba(0x193)]&&(_0x23a0b7[_0x1646ba(0x18e)](),_0x1c98f5(_0x5db49e[0x0][_0x1646ba(0x17d)][0x0]));});_0x23a0b7[_0x590ac8(0x177)](_0x24fb79,{'childList':!0x0,'subtree':!0x0});}[_0xa72918(0x17a)](_0x1d97e0){const _0x217ba5=_0xa72918;_0x1d97e0[_0x217ba5(0x17b)](_0x217ba5(0x19b),_0x39935c=>{const _0x476728=_0x217ba5;this[_0x476728(0x17c)](_0x476728(0x19b),{'imageSrc':_0x39935c[_0x476728(0x197)][_0x476728(0x18c)]});}),_0x1d97e0[_0x217ba5(0x17b)](_0x217ba5(0x180),()=>{const _0x38f4f9=_0x217ba5;this[_0x38f4f9(0x17c)](_0x38f4f9(0x180));});}[_0xa72918(0x18a)](){const _0x191f8a=_0xa72918;this[_0x191f8a(0x186)]['on'](_0x191f8a(0x199),()=>{const _0x3d1ef9=_0x191f8a;this[_0x3d1ef9(0x17c)](_0x3d1ef9(0x199));});}}function _0xf717(){const _0x1ee5e3=['361356bVuevC','setTemplate','_addErrorViewListeners','7142xqUGLV','cdnUrl','ck-reset_all-excluded','disconnect','_items','133JGKcuq','target','addMany','length','status','204oCapYu','_editingView','detail','render','retry','1688nGAVsZ','apply','clear','_focusableView','div','4763ILeSwe','7482204WLMhjU','createCollection','uploading','getFocusableElement','19210dLeWkz','nodeName','add','43353SGfxqK','once','_loadingView','145702AwZdHD','_setView','error','uc-cloud-image-editor','5YTROCv','ready','observe','change:status','_waitForImageEditorComponent','_addUploadcareImageEditorListeners','addEventListener','fire','addedNodes','filter','toLowerCase','cancel','set','ck-uploadcare-form','focus','2015428eBowjV','querySelector','_errorView','element'];_0xf717=function(){return _0x1ee5e3;};return _0xf717();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5274bf=_0x1d29;(function(_0x3a0388,_0x260a09){const _0x1ca073=_0x1d29,_0x126b40=_0x3a0388();while(!![]){try{const _0x1c41e2=parseInt(_0x1ca073(0x1ab))/0x1*(parseInt(_0x1ca073(0x19b))/0x2)+parseInt(_0x1ca073(0x190))/0x3+parseInt(_0x1ca073(0x192))/0x4*(-parseInt(_0x1ca073(0x199))/0x5)+-parseInt(_0x1ca073(0x193))/0x6*(-parseInt(_0x1ca073(0x1a8))/0x7)+-parseInt(_0x1ca073(0x191))/0x8+-parseInt(_0x1ca073(0x1a1))/0x9+parseInt(_0x1ca073(0x196))/0xa*(parseInt(_0x1ca073(0x1a0))/0xb);if(_0x1c41e2===_0x260a09)break;else _0x126b40['push'](_0x126b40['shift']());}catch(_0x17dda1){_0x126b40['push'](_0x126b40['shift']());}}}(_0x1f87,0x4b8f2));import{Command as _0x38df83}from'ckeditor5/src/core.js';import{Dialog as _0x513e60}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x11d8c5}from'./ui/uploadcareimageeditcontroller.js';function _0x1d29(_0x8c0b22,_0x31fde6){const _0x1f8727=_0x1f87();return _0x1d29=function(_0x1d2913,_0x27a027){_0x1d2913=_0x1d2913-0x18c;let _0xb623cd=_0x1f8727[_0x1d2913];return _0xb623cd;},_0x1d29(_0x8c0b22,_0x31fde6);}import{createEditabilityChecker as _0x113f77}from'../utils/editingutils.js';function _0x1f87(){const _0x2c37ec=['set','_isEditable','5ckbGrw','selection','2086XFjSFz','imageEditController','element','uploadcare.allowExternalImagesEditing','bind','2590951wZwhoO','1881306CeOOWW','plugins','requires','isActive','refresh','unbind','document','91847EpClXl','getSelectedElement','imageInline','291ChTGCs','isEnabled','imageBlock','model','config','get','263556UBixMu','4741472YZHWeZ','1941512Rnimcq','228dSPqqg','execute','editor','30ViaBnf'];_0x1f87=function(){return _0x2c37ec;};return _0x1f87();}export class UploadcareImageEditCommand extends _0x38df83{[_0x5274bf(0x19c)];static get[_0x5274bf(0x1a3)](){return[_0x513e60];}[_0x5274bf(0x198)];constructor(_0x3f7f6d){const _0x336240=_0x5274bf;super(_0x3f7f6d),this[_0x336240(0x19c)]=void 0x0,this[_0x336240(0x198)]=_0x113f77(_0x3f7f6d[_0x336240(0x18e)][_0x336240(0x18f)](_0x336240(0x19e))||[]),this[_0x336240(0x197)]({'isActive':!0x1});}[_0x5274bf(0x1a5)](){const _0x4e08ea=_0x5274bf,_0x31430e=this[_0x4e08ea(0x195)][_0x4e08ea(0x18d)][_0x4e08ea(0x1a7)][_0x4e08ea(0x19a)][_0x4e08ea(0x1a9)]();this[_0x4e08ea(0x1ac)]=this[_0x4e08ea(0x198)](_0x31430e);}[_0x5274bf(0x194)](){const _0x363349=_0x5274bf;this[_0x363349(0x19c)]&&(this[_0x363349(0x1a6)](_0x363349(0x1a4)),this[_0x363349(0x19c)]=void 0x0);const _0x227baa=this[_0x363349(0x195)][_0x363349(0x18d)][_0x363349(0x1a7)][_0x363349(0x19a)][_0x363349(0x1a9)]();_0x227baa&&(_0x227baa['is'](_0x363349(0x19d),_0x363349(0x18c))||_0x227baa['is'](_0x363349(0x19d),_0x363349(0x1aa)))&&(this[_0x363349(0x19c)]=new _0x11d8c5(this[_0x363349(0x195)],this[_0x363349(0x195)][_0x363349(0x1a2)][_0x363349(0x18f)](_0x513e60),_0x227baa),this[_0x363349(0x19f)](_0x363349(0x1a4))['to'](this[_0x363349(0x19c)],_0x363349(0x1a4)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x52b0(_0x3f46b3,_0x1b1db6){const _0x5d09ac=_0x5d09();return _0x52b0=function(_0x52b001,_0xfb5189){_0x52b001=_0x52b001-0x1df;let _0x15280c=_0x5d09ac[_0x52b001];return _0x15280c;},_0x52b0(_0x3f46b3,_0x1b1db6);}const _0x55ae22=_0x52b0;(function(_0x3044dc,_0x327a6b){const _0x458020=_0x52b0,_0x17674b=_0x3044dc();while(!![]){try{const _0x497121=parseInt(_0x458020(0x1ef))/0x1*(-parseInt(_0x458020(0x1e3))/0x2)+parseInt(_0x458020(0x1ea))/0x3*(parseInt(_0x458020(0x1e0))/0x4)+-parseInt(_0x458020(0x1e4))/0x5+parseInt(_0x458020(0x1e7))/0x6+-parseInt(_0x458020(0x1e9))/0x7*(-parseInt(_0x458020(0x1f4))/0x8)+-parseInt(_0x458020(0x1e6))/0x9+parseInt(_0x458020(0x1df))/0xa;if(_0x497121===_0x327a6b)break;else _0x17674b['push'](_0x17674b['shift']());}catch(_0x20bab4){_0x17674b['push'](_0x17674b['shift']());}}}(_0x5d09,0x7499b));import{Plugin as _0x4c1c7b}from'ckeditor5/src/core.js';import{Notification as _0x1e6744}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x35fe7f}from'./uploadcareimageeditcommand.js';function _0x5d09(){const _0x508d81=['ImageEditing','6804414rrJSfH','3521124gnYwFR','commands','528283vqrGGh','2358579rmOvbf','uploadcareImageReplace','isPremiumPlugin','UploadcareImageEditEditing','ImageUtils','23RHvOqE','init','isOfficialPlugin','add','uploadcareImageEdit','24bFALug','6994530TZgSyo','4sAfckA','pluginName','requires','32862fCHBeu','3436765TnAjCE'];_0x5d09=function(){return _0x508d81;};return _0x5d09();}import{UploadcareImageReplaceCommand as _0x21bb9e}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x72460e}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x4c1c7b{static get[_0x55ae22(0x1e1)](){const _0x223b82=_0x55ae22;return _0x223b82(0x1ed);}static get[_0x55ae22(0x1e2)](){const _0x1bf2a1=_0x55ae22;return[_0x72460e,_0x1e6744,_0x1bf2a1(0x1ee),_0x1bf2a1(0x1e5)];}static get[_0x55ae22(0x1f1)](){return!0x0;}static get[_0x55ae22(0x1ec)](){return!0x0;}[_0x55ae22(0x1f0)](){const _0x2aa8a4=_0x55ae22,{editor:_0x467281}=this;_0x467281[_0x2aa8a4(0x1e8)][_0x2aa8a4(0x1f2)](_0x2aa8a4(0x1f3),new _0x35fe7f(_0x467281)),_0x467281[_0x2aa8a4(0x1e8)][_0x2aa8a4(0x1f2)](_0x2aa8a4(0x1eb),new _0x21bb9e(_0x467281));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1953fe}from'ckeditor5/src/core.js';import{ButtonView as _0x560b5b}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x196c8e}from'ckeditor5/src/icons.js';import{createElement as _0x2c5b2e}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x1953fe{['_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 _0x58c946=this['editor'];_0x58c946['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4352fa=>{const _0x14aa93=_0x58c946['commands']['get']('uploadcareImageEdit'),_0x53ecfc=new _0x560b5b(_0x4352fa),t=_0x4352fa['t'];return _0x53ecfc['set']({'icon':_0x196c8e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x53ecfc['bind']('isEnabled')['to'](_0x14aa93),_0x53ecfc['bind']('isOn')['to'](_0x14aa93,'isActive'),this['listenTo'](_0x53ecfc,'execute',()=>{_0x58c946['execute']('uploadcareImageEdit'),_0x58c946['editing']['view']['focus']();}),_0x53ecfc;}),this['_initConfig']();}['_initConfig'](){const _0x47b6e2=_0x2c5b2e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x47b6e2),this['listenTo'](this['editor'],'destroy',()=>{_0x47b6e2['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c49e0=_0x182b;(function(_0x321929,_0x246e84){const _0x2484b6=_0x182b,_0x431d80=_0x321929();while(!![]){try{const _0x5883be=-parseInt(_0x2484b6(0x177))/0x1+-parseInt(_0x2484b6(0x17e))/0x2*(-parseInt(_0x2484b6(0x167))/0x3)+-parseInt(_0x2484b6(0x16f))/0x4+parseInt(_0x2484b6(0x171))/0x5*(-parseInt(_0x2484b6(0x178))/0x6)+parseInt(_0x2484b6(0x175))/0x7+-parseInt(_0x2484b6(0x176))/0x8+parseInt(_0x2484b6(0x179))/0x9*(parseInt(_0x2484b6(0x172))/0xa);if(_0x5883be===_0x246e84)break;else _0x431d80['push'](_0x431d80['shift']());}catch(_0x5eb22e){_0x431d80['push'](_0x431d80['shift']());}}}(_0x52d5,0x98a5d));import{Command as _0xd263b6}from'ckeditor5/src/core.js';function _0x182b(_0x2d0ad4,_0x1ce88a){const _0x52d5cd=_0x52d5();return _0x182b=function(_0x182b64,_0x301cc7){_0x182b64=_0x182b64-0x165;let _0x2da5f3=_0x52d5cd[_0x182b64];return _0x2da5f3;},_0x182b(_0x2d0ad4,_0x1ce88a);}function _0x52d5(){const _0x2399c5=['1830362vYEoVm','model','refresh','3dDOHhT','execute','change','element','isEnabled','removeAttribute','srcset','imageInline','3960324vRmjxk','sizes','850KGNLkj','11689960htpULo','imageBlock','setAttributes','1081388yRindh','1251280cjfIda','444655QMTUcw','786gGwirl','9AYxrKO','document','getSelectedElement','editor','selection'];_0x52d5=function(){return _0x2399c5;};return _0x52d5();}export class UploadcareImageReplaceCommand extends _0xd263b6{[_0x4c49e0(0x166)](){const _0x47e908=_0x4c49e0,_0x2e92b6=this[_0x47e908(0x17c)][_0x47e908(0x165)][_0x47e908(0x17a)][_0x47e908(0x17d)][_0x47e908(0x17b)]();this[_0x47e908(0x16b)]=Boolean(_0x2e92b6&&(_0x2e92b6['is'](_0x47e908(0x16a),_0x47e908(0x173))||_0x2e92b6['is'](_0x47e908(0x16a),_0x47e908(0x16e))));}[_0x4c49e0(0x168)](_0x17ca66){const _0x487b71=_0x4c49e0,_0x5a6eff=this[_0x487b71(0x17c)][_0x487b71(0x165)][_0x487b71(0x17a)][_0x487b71(0x17d)][_0x487b71(0x17b)]();this[_0x487b71(0x17c)][_0x487b71(0x165)][_0x487b71(0x169)](_0x8bdf1c=>{const _0xf3b913=_0x487b71;_0x8bdf1c[_0xf3b913(0x174)](_0x17ca66,_0x5a6eff),_0x8bdf1c[_0xf3b913(0x16c)](_0xf3b913(0x16d),_0x5a6eff),_0x8bdf1c[_0xf3b913(0x16c)](_0xf3b913(0x170),_0x5a6eff);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x46ef72=_0x1a88;function _0x208c(){var _0x25f38f=['5995566IkKZrZ','isOfficialPlugin','488615ugaXYw','3005JisVtq','pluginName','isPremiumPlugin','11346850GTgIay','3178260ejfofq','1301992jwBWpk','requires','UploadcareImageEdit','6IHPPCC','7gWuldY','4748rUamkS','209614yLFOPU'];_0x208c=function(){return _0x25f38f;};return _0x208c();}function _0x1a88(_0x36cd56,_0x5d062a){var _0x208c02=_0x208c();return _0x1a88=function(_0x1a881a,_0x3ca948){_0x1a881a=_0x1a881a-0x148;var _0x23a54c=_0x208c02[_0x1a881a];return _0x23a54c;},_0x1a88(_0x36cd56,_0x5d062a);}(function(_0x250c77,_0x32a61f){var _0x122a6b=_0x1a88,_0x109ab8=_0x250c77();while(!![]){try{var _0x3042e3=parseInt(_0x122a6b(0x154))/0x1+parseInt(_0x122a6b(0x151))/0x2*(parseInt(_0x122a6b(0x14e))/0x3)+-parseInt(_0x122a6b(0x150))/0x4*(-parseInt(_0x122a6b(0x155))/0x5)+-parseInt(_0x122a6b(0x14a))/0x6*(parseInt(_0x122a6b(0x14f))/0x7)+parseInt(_0x122a6b(0x14b))/0x8+parseInt(_0x122a6b(0x152))/0x9+-parseInt(_0x122a6b(0x149))/0xa;if(_0x3042e3===_0x32a61f)break;else _0x109ab8['push'](_0x109ab8['shift']());}catch(_0x451012){_0x109ab8['push'](_0x109ab8['shift']());}}}(_0x208c,0x8ca90));import{Plugin as _0x3bafd6}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x19f9fd}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x10c2d8}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x3bafd6{static get[_0x46ef72(0x156)](){var _0x1ff893=_0x46ef72;return _0x1ff893(0x14d);}static get[_0x46ef72(0x14c)](){return[_0x19f9fd,_0x10c2d8];}static get[_0x46ef72(0x153)](){return!0x0;}static get[_0x46ef72(0x148)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x36290a=_0x1e42;function _0x55b1(){const _0x379a08=['UploadcareUI','uploadcareLicenseKeyNotAllowed','OneDrive','_showLicenseError','registerIntegration','isImageSelected','invalid','has','17444mScfQX','uploadcareLicenseKeyTrialLimit','289016vJVtTF','expired','featureNotAllowed','url','942auuRfP','isEnabled','evaluationLimit','pluginName','map','commands','1877505nLcCUH','_normalizeConfigSourceList','usageLimit','uploadcareLicenseKeyDomainLimit','Insert','1047660uUZlum','_licenseKeyCheckInterval','966552sVQRQU','Uploadcare','URL','icon','reduce','isPremiumPlugin','config','shortText','tooltip','entries','afterInit','assetManager','Facebook','uploadcareLicenseKeyValid','_createButton','editor','destroy','uploadcareLicenseKeyInvalid','28153PFjklc','trialLimit','_createToolbarButton','withText','text','uploadcareLicenseKeyUsageLimit','upload','_createMenuBarButtons','forEach','uploadcareLicenseKeyEvaluationLimit','GDrive','label','licenseKey','_getIntegrationKey','locale','Dropbox','_createDropdownButtons','domainLimit','GPhotos','bind','uploadcareLicenseKeyExpired','391085gdCxDO','uploadcare','uploadcare.uploader.sourceList','plugins','isOfficialPlugin','type','ImageInsertUI','get','execute','Local','push','Replace','init'];_0x55b1=function(){return _0x379a08;};return _0x55b1();}(function(_0x5a48d3,_0x36d93f){const _0x6555=_0x1e42,_0x3b2b13=_0x5a48d3();while(!![]){try{const _0xc6baff=parseInt(_0x6555(0x1b4))/0x1+-parseInt(_0x6555(0x1a0))/0x2+parseInt(_0x6555(0x19b))/0x3+-parseInt(_0x6555(0x1a2))/0x4+parseInt(_0x6555(0x17a))/0x5+parseInt(_0x6555(0x195))/0x6*(parseInt(_0x6555(0x18f))/0x7)+-parseInt(_0x6555(0x191))/0x8;if(_0xc6baff===_0x36d93f)break;else _0x3b2b13['push'](_0x3b2b13['shift']());}catch(_0x41f1b0){_0x3b2b13['push'](_0x3b2b13['shift']());}}}(_0x55b1,0x4e93e));import{Plugin as _0x16c7f0}from'ckeditor5/src/core.js';import{IconDropbox as _0x4b62a7,IconFacebook as _0x547951,IconGoogleDrive as _0x35eaff,IconGooglePhotos as _0x20f7c3,IconUploadcareImageUpload as _0x1dd56c,IconUploadcareLink as _0x5ccfbd,IconOneDrive as _0x1e6798}from'ckeditor5/src/icons.js';import{ButtonView as _0x290d75,MenuBarMenuListItemButtonView as _0x56d961}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x1cc560}from'./uploadcareconfig.js';import{getTranslation as _0x564855}from'./utils/common-translations.js';function _0x1e42(_0x5e83fb,_0x5c6480){const _0x55b169=_0x55b1();return _0x1e42=function(_0x1e42aa,_0x5770de){_0x1e42aa=_0x1e42aa-0x16c;let _0x380372=_0x55b169[_0x1e42aa];return _0x380372;},_0x1e42(_0x5e83fb,_0x5c6480);}import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x16c7f0{[_0x36290a(0x171)];[_0x36290a(0x1a1)];static get[_0x36290a(0x198)](){const _0x28ea3a=_0x36290a;return _0x28ea3a(0x187);}static get[_0x36290a(0x17e)](){return!0x0;}static get[_0x36290a(0x1a7)](){return!0x0;}[_0x36290a(0x186)](){const _0x1bd279=_0x36290a;this[_0x1bd279(0x171)]=this[_0x1bd279(0x1b1)][_0x1bd279(0x1a8)][_0x1bd279(0x181)](_0x1bd279(0x171));const _0x9ccd2=this[_0x1bd279(0x1b1)];this[_0x1bd279(0x1a1)]=setInterval(()=>{const _0x16292f=_0x1bd279;let _0x1ff8c0;for(const _0x1b84ac in _0x9ccd2){const _0x41f094=_0x1b84ac,_0x230bd8=_0x9ccd2[_0x41f094];if(_0x16292f(0x1af)==_0x230bd8||_0x16292f(0x1b3)==_0x230bd8||_0x16292f(0x179)==_0x230bd8||_0x16292f(0x19e)==_0x230bd8||_0x16292f(0x188)==_0x230bd8||_0x16292f(0x16e)==_0x230bd8||_0x16292f(0x190)==_0x230bd8||_0x16292f(0x1b9)==_0x230bd8){delete _0x9ccd2[_0x41f094],_0x1ff8c0=_0x230bd8,clearInterval(this[_0x16292f(0x1a1)]),this[_0x16292f(0x1a1)]=void 0x0;break;}}_0x16292f(0x1b3)==_0x1ff8c0&&_0x9ccd2[_0x16292f(0x18a)](_0x16292f(0x18d)),_0x16292f(0x179)==_0x1ff8c0&&_0x9ccd2[_0x16292f(0x18a)](_0x16292f(0x192)),_0x16292f(0x19e)==_0x1ff8c0&&_0x9ccd2[_0x16292f(0x18a)](_0x16292f(0x176)),_0x16292f(0x188)==_0x1ff8c0&&_0x9ccd2[_0x16292f(0x18a)](_0x16292f(0x193),_0x16292f(0x1a3)),_0x16292f(0x16e)==_0x1ff8c0&&_0x9ccd2[_0x16292f(0x18a)](_0x16292f(0x197)),_0x16292f(0x190)==_0x1ff8c0&&_0x9ccd2[_0x16292f(0x18a)](_0x16292f(0x1b5)),_0x16292f(0x1b9)==_0x1ff8c0&&_0x9ccd2[_0x16292f(0x18a)](_0x16292f(0x19d));},0x3e8);}[_0x36290a(0x1ac)](){const _0x3fb093=_0x36290a,{editor:_0x179a2c}=this,_0xffcc09=_0x179a2c[_0x3fb093(0x19a)][_0x3fb093(0x181)](_0x3fb093(0x17b));if(!_0xffcc09)return;const _0x8ff349=this[_0x3fb093(0x19c)](_0x179a2c[_0x3fb093(0x1a8)][_0x3fb093(0x181)](_0x3fb093(0x17c)))[_0x3fb093(0x1a6)]((_0x5501b7,_0x1f5620)=>{const _0x1eddc7=_0x3fb093,_0x3d322f=this[_0x1eddc7(0x172)](_0x1f5620[_0x1eddc7(0x17f)]);return _0x5501b7[_0x3d322f]||(_0x5501b7[_0x3d322f]=[]),_0x5501b7[_0x3d322f][_0x1eddc7(0x184)](_0x1f5620),_0x5501b7;},{});_0x179a2c[_0x3fb093(0x17d)][_0x3fb093(0x18e)](_0x3fb093(0x180))&&_0x179a2c[_0x3fb093(0x19a)][_0x3fb093(0x181)](_0x3fb093(0x17b))&&Object[_0x3fb093(0x1ab)](_0x8ff349)[_0x3fb093(0x16d)](([_0x4e61c3,_0x544d7b])=>{const _0x2e9886=_0x3fb093;_0x179a2c[_0x2e9886(0x17d)][_0x2e9886(0x181)](_0x2e9886(0x180))[_0x2e9886(0x18b)]({'name':_0x4e61c3,'observable':()=>_0xffcc09,'buttonViewCreator':()=>this[_0x2e9886(0x1b6)](_0x544d7b),'formViewCreator':()=>this[_0x2e9886(0x175)](_0x544d7b),'menuBarButtonViewCreator':()=>this[_0x2e9886(0x16c)](_0x544d7b),'override':_0x2e9886(0x1ad)!==_0x4e61c3});});}[_0x36290a(0x1b2)](){const _0x2c1f37=_0x36290a;super[_0x2c1f37(0x1b2)](),this[_0x2c1f37(0x1a1)]&&clearInterval(this[_0x2c1f37(0x1a1)]);}[_0x36290a(0x19c)](_0x55fe2d){const _0x13d27b=_0x36290a,{locale:_0x28fceb}=this[_0x13d27b(0x1b1)];return _0x55fe2d[_0x13d27b(0x199)](_0x509de2=>{const _0x42f1bf=_0x13d27b,_0xb72eb9=_0x564855(_0x28fceb,_0x509de2,_0x42f1bf(0x19f));switch(_0x509de2){case _0x1cc560[_0x42f1bf(0x183)]:return{'icon':_0x1dd56c,'type':_0x1cc560[_0x42f1bf(0x183)],..._0xb72eb9};case _0x1cc560[_0x42f1bf(0x1a4)]:return{'icon':_0x5ccfbd,'type':_0x1cc560[_0x42f1bf(0x1a4)],..._0xb72eb9};case _0x1cc560[_0x42f1bf(0x174)]:return{'icon':_0x4b62a7,'type':_0x1cc560[_0x42f1bf(0x174)],..._0xb72eb9};case _0x1cc560[_0x42f1bf(0x1ae)]:return{'icon':_0x547951,'type':_0x1cc560[_0x42f1bf(0x1ae)],..._0xb72eb9};case _0x1cc560[_0x42f1bf(0x16f)]:return{'icon':_0x35eaff,'type':_0x1cc560[_0x42f1bf(0x16f)],..._0xb72eb9};case _0x1cc560[_0x42f1bf(0x177)]:return{'icon':_0x20f7c3,'type':_0x1cc560[_0x42f1bf(0x177)],..._0xb72eb9};case _0x1cc560[_0x42f1bf(0x189)]:return{'icon':_0x1e6798,'type':_0x1cc560[_0x42f1bf(0x189)],..._0xb72eb9};}});}[_0x36290a(0x172)](_0x1d4ed9){const _0x5075bb=_0x36290a;switch(_0x1d4ed9){case _0x1cc560[_0x5075bb(0x183)]:return _0x5075bb(0x1ba);case _0x1cc560[_0x5075bb(0x1a4)]:return _0x5075bb(0x194);default:return _0x5075bb(0x1ad);}}[_0x36290a(0x1b0)](_0x24a71f,_0x24c932){const _0xbd6924=_0x36290a,_0x36e318=this[_0xbd6924(0x1b1)],_0xc510da=new _0x24a71f(_0x36e318[_0xbd6924(0x173)]),_0x35735b=_0x36e318[_0xbd6924(0x19a)][_0xbd6924(0x181)](_0xbd6924(0x17b));return _0xc510da[_0xbd6924(0x178)](_0xbd6924(0x196))['to'](_0x35735b),_0xc510da['on'](_0xbd6924(0x182),()=>{const _0x14d44a=_0xbd6924;_0x35735b[_0x14d44a(0x182)](_0x24c932);}),_0xc510da;}[_0x36290a(0x1b6)](_0x1f3876){const _0x3b60f3=_0x36290a,{locale:_0xdff5dc}=this[_0x3b60f3(0x1b1)],_0x5db595=this[_0x3b60f3(0x1b1)][_0x3b60f3(0x17d)][_0x3b60f3(0x181)](_0x3b60f3(0x180)),_0x38b898=_0x1f3876[0x0],_0x246678=this[_0x3b60f3(0x1b0)](_0x290d75,_0x38b898[_0x3b60f3(0x17f)]);return _0x246678[_0x3b60f3(0x1a5)]=_0x38b898[_0x3b60f3(0x1a5)],_0x246678[_0x3b60f3(0x178)](_0x3b60f3(0x170))['to'](_0x5db595,_0x3b60f3(0x18c),_0x1f936c=>_0x564855(_0xdff5dc,_0x38b898[_0x3b60f3(0x17f)],_0x1f936c?_0x3b60f3(0x185):_0x3b60f3(0x19f))[_0x3b60f3(0x1b8)]),_0x246678[_0x3b60f3(0x1aa)]=!0x0,_0x246678;}[_0x36290a(0x175)](_0x1c29f0){const _0x611894=_0x36290a,{locale:_0x5d89a}=this[_0x611894(0x1b1)],_0x56393f=this[_0x611894(0x1b1)][_0x611894(0x17d)][_0x611894(0x181)](_0x611894(0x180));return _0x1c29f0[_0x611894(0x199)](_0x35c146=>{const _0x316828=_0x611894,_0x10e915=this[_0x316828(0x1b0)](_0x290d75,_0x35c146[_0x316828(0x17f)]);return _0x10e915[_0x316828(0x1b7)]=!0x0,_0x10e915[_0x316828(0x1a5)]=_0x35c146[_0x316828(0x1a5)],_0x10e915[_0x316828(0x178)](_0x316828(0x170))['to'](_0x56393f,_0x316828(0x18c),_0x4a5168=>_0x564855(_0x5d89a,_0x35c146[_0x316828(0x17f)],_0x4a5168?_0x316828(0x185):_0x316828(0x19f))[_0x316828(0x1b8)]),_0x10e915;});}[_0x36290a(0x16c)](_0x72dae4){const _0x95cca1=_0x36290a;return _0x72dae4[_0x95cca1(0x199)](_0x283bbb=>{const _0x18cf3c=_0x95cca1,_0x266db9=this[_0x18cf3c(0x1b0)](_0x56d961,_0x283bbb[_0x18cf3c(0x17f)]);return _0x266db9[_0x18cf3c(0x1a5)]=_0x283bbb[_0x18cf3c(0x1a5)],_0x266db9[_0x18cf3c(0x170)]=_0x283bbb[_0x18cf3c(0x1a9)],_0x266db9;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5b8fa4}from'ckeditor5/src/core.js';import{FileRepository as _0x53d01b}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x32aca2}from'./uploadcareediting.js';import{UploadUtils as _0x783c4a}from'./utils/uploadutils.js';import{getImageUrls as _0x10b79b}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x5b8fa4{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x53d01b,_0x32aca2];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xd73e25=this['editor'];if(!!!_0xd73e25['config']['get']('uploadcare'))return;_0xd73e25['plugins']['get'](_0x53d01b)['createUploadAdapter']=_0x36f607=>new k(_0x36f607,_0xd73e25),_0xd73e25['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x200778,{imageElement:_0x167d38,data:_0x2118c8})=>{_0xd73e25['model']['change'](_0x523ec8=>{_0x523ec8['setAttribute']('uploadcareImageId',_0x2118c8['uploadcareImageId'],_0x167d38);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x5cb169,_0x2c969c){this['loader']=_0x5cb169,this['editor']=_0x2c969c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x37402e=await this['loader']['file'];return _0x783c4a['upload']({'file':_0x37402e,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x4276a4=>{_0x4276a4&&_0x4276a4['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4276a4['value']);}})['then'](async _0x1ae2cc=>{const {imageFallbackUrl:_0x13b8a3,imageSources:_0x1414c4}=_0x10b79b(_0x1ae2cc['cdnUrl'],_0x1ae2cc['imageInfo']['width']);return{'uploadcareImageId':_0x1ae2cc['uuid'],'default':_0x13b8a3,'sources':_0x1414c4};})['catch'](()=>{const _0x5313ae=t('Cannot\x20upload\x20file:')+('\x20'+_0x37402e['name']+'.');return Promise['reject'](_0x5313ae);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x3bfc1}from'../uploadcareconfig.js';export function getTranslation(_0x47f579,_0x3212d8,_0x2e26cb){const t=_0x47f579['t'],_0x13d2ca=_0x47f579['t'];switch(_0x3212d8){case _0x3bfc1['Local']:return{'text':_0x13d2ca('Insert'===_0x2e26cb?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x13d2ca('From\x20computer')};case _0x3bfc1['URL']:return{'text':'Insert'===_0x2e26cb?_0x13d2ca('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x13d2ca('Via\x20URL')};case _0x3bfc1['Dropbox']:return{'text':t('Insert'===_0x2e26cb?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x3bfc1['Facebook']:return{'text':t('Insert'===_0x2e26cb?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x3bfc1['GDrive']:return{'text':t('Insert'===_0x2e26cb?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x3bfc1['GPhotos']:return{'text':t('Insert'===_0x2e26cb?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x3bfc1['OneDrive']:return{'text':t('Insert'===_0x2e26cb?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3212d8;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0xc92c(_0x1b9be4,_0x572838){var _0xe0b48a=_0xe0b4();return _0xc92c=function(_0xc92c9a,_0x507e14){_0xc92c9a=_0xc92c9a-0xb7;var _0x19a810=_0xe0b48a[_0xc92c9a];return _0x19a810;},_0xc92c(_0x1b9be4,_0x572838);}var _0x368d3e=_0xc92c;(function(_0x4558e8,_0x2a4b0e){var _0x1901e6=_0xc92c,_0x46e97e=_0x4558e8();while(!![]){try{var _0xec1682=-parseInt(_0x1901e6(0xc5))/0x1+-parseInt(_0x1901e6(0xbe))/0x2*(-parseInt(_0x1901e6(0xb9))/0x3)+parseInt(_0x1901e6(0xc9))/0x4*(parseInt(_0x1901e6(0xc6))/0x5)+-parseInt(_0x1901e6(0xbf))/0x6*(-parseInt(_0x1901e6(0xca))/0x7)+-parseInt(_0x1901e6(0xb7))/0x8+parseInt(_0x1901e6(0xbd))/0x9+-parseInt(_0x1901e6(0xc2))/0xa*(parseInt(_0x1901e6(0xba))/0xb);if(_0xec1682===_0x2a4b0e)break;else _0x46e97e['push'](_0x46e97e['shift']());}catch(_0x12224f){_0x46e97e['push'](_0x46e97e['shift']());}}}(_0xe0b4,0x4beea));function _0xe0b4(){var _0x21df6a=['3975216bssIuU','fire','1646031YsvsAI','5318951gcJPnT','focusCycler','bindTemplate','2541204TulYZg','2pNFMJJ','48TlBmnE','getFocusableElement','true','10UHUkba','forwardCycle','createCollection','134855YugCZs','9965MytHQD','focusTracker','div','172jgygfW','445886dGHubY'];_0xe0b4=function(){return _0x21df6a;};return _0xe0b4();}import{FocusTracker as _0x5f526a}from'ckeditor5/src/utils.js';import{View as _0x4b83b7,FocusCycler as _0x1ec68e}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x4b83b7{[_0x368d3e(0xc7)];[_0x368d3e(0xbb)];constructor(_0x7dd129){var _0x358d0a=_0x368d3e;super(_0x7dd129),this[_0x358d0a(0xc7)]=new _0x5f526a(),this[_0x358d0a(0xbb)]=new _0x1ec68e({'focusables':this[_0x358d0a(0xc4)](),'focusTracker':this[_0x358d0a(0xc7)]});}[_0x368d3e(0xc0)](){var _0x238d78=_0x368d3e;return{'tag':_0x238d78(0xc8),'attributes':{'aria-hidden':_0x238d78(0xc1),'tabindex':'0'},'on':{'focus':this[_0x238d78(0xbc)]['to'](()=>{var _0x5e2f5d=_0x238d78;this[_0x5e2f5d(0xbb)][_0x5e2f5d(0xb8)](_0x5e2f5d(0xc3));})}};}}
|