@ckeditor/ckeditor5-uploadcare 0.0.0-internal-20251218.0 → 0.0.0-internal-20260121.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/LICENSE.md +2 -2
- package/README.md +1 -1
- package/build/uploadcare.js +3 -3
- package/dist/index-content.css +1 -1
- package/dist/index-editor.css +41 -79
- package/dist/index.css +95 -85
- package/dist/index.js +4 -4
- package/dist/translations/af.d.ts +1 -1
- package/dist/translations/af.js +2 -2
- package/dist/translations/af.umd.js +2 -2
- package/dist/translations/ar.d.ts +1 -1
- package/dist/translations/ar.js +2 -2
- package/dist/translations/ar.umd.js +2 -2
- package/dist/translations/ast.d.ts +1 -1
- package/dist/translations/ast.js +2 -2
- package/dist/translations/ast.umd.js +2 -2
- package/dist/translations/az.d.ts +1 -1
- package/dist/translations/az.js +2 -2
- package/dist/translations/az.umd.js +2 -2
- package/dist/translations/be.d.ts +1 -1
- package/dist/translations/be.js +2 -2
- package/dist/translations/be.umd.js +2 -2
- package/dist/translations/bg.d.ts +1 -1
- package/dist/translations/bg.js +2 -2
- package/dist/translations/bg.umd.js +2 -2
- package/dist/translations/bn.d.ts +1 -1
- package/dist/translations/bn.js +2 -2
- package/dist/translations/bn.umd.js +2 -2
- package/dist/translations/bs.d.ts +1 -1
- package/dist/translations/bs.js +2 -2
- package/dist/translations/bs.umd.js +2 -2
- package/dist/translations/ca.d.ts +1 -1
- package/dist/translations/ca.js +2 -2
- package/dist/translations/ca.umd.js +2 -2
- package/dist/translations/cs.d.ts +1 -1
- package/dist/translations/cs.js +2 -2
- package/dist/translations/cs.umd.js +2 -2
- package/dist/translations/da.d.ts +1 -1
- package/dist/translations/da.js +2 -2
- package/dist/translations/da.umd.js +2 -2
- package/dist/translations/de-ch.d.ts +1 -1
- package/dist/translations/de-ch.js +2 -2
- package/dist/translations/de-ch.umd.js +2 -2
- package/dist/translations/de.d.ts +1 -1
- package/dist/translations/de.js +2 -2
- package/dist/translations/de.umd.js +2 -2
- package/dist/translations/el.d.ts +1 -1
- package/dist/translations/el.js +2 -2
- package/dist/translations/el.umd.js +2 -2
- package/dist/translations/en-au.d.ts +1 -1
- package/dist/translations/en-au.js +2 -2
- package/dist/translations/en-au.umd.js +2 -2
- package/dist/translations/en-gb.d.ts +1 -1
- package/dist/translations/en-gb.js +2 -2
- package/dist/translations/en-gb.umd.js +2 -2
- package/dist/translations/en.d.ts +1 -1
- package/dist/translations/en.js +2 -2
- package/dist/translations/en.umd.js +2 -2
- package/dist/translations/eo.d.ts +1 -1
- package/dist/translations/eo.js +2 -2
- package/dist/translations/eo.umd.js +2 -2
- package/dist/translations/es-co.d.ts +1 -1
- package/dist/translations/es-co.js +2 -2
- package/dist/translations/es-co.umd.js +2 -2
- package/dist/translations/es.d.ts +1 -1
- package/dist/translations/es.js +2 -2
- package/dist/translations/es.umd.js +2 -2
- package/dist/translations/et.d.ts +1 -1
- package/dist/translations/et.js +2 -2
- package/dist/translations/et.umd.js +2 -2
- package/dist/translations/eu.d.ts +1 -1
- package/dist/translations/eu.js +2 -2
- package/dist/translations/eu.umd.js +2 -2
- package/dist/translations/fa.d.ts +1 -1
- package/dist/translations/fa.js +2 -2
- package/dist/translations/fa.umd.js +2 -2
- package/dist/translations/fi.d.ts +1 -1
- package/dist/translations/fi.js +2 -2
- package/dist/translations/fi.umd.js +2 -2
- package/dist/translations/fr.d.ts +1 -1
- package/dist/translations/fr.js +2 -2
- package/dist/translations/fr.umd.js +2 -2
- package/dist/translations/gl.d.ts +1 -1
- package/dist/translations/gl.js +2 -2
- package/dist/translations/gl.umd.js +2 -2
- package/dist/translations/gu.d.ts +1 -1
- package/dist/translations/gu.js +2 -2
- package/dist/translations/gu.umd.js +2 -2
- package/dist/translations/he.d.ts +1 -1
- package/dist/translations/he.js +2 -2
- package/dist/translations/he.umd.js +2 -2
- package/dist/translations/hi.d.ts +1 -1
- package/dist/translations/hi.js +2 -2
- package/dist/translations/hi.umd.js +2 -2
- package/dist/translations/hr.d.ts +1 -1
- package/dist/translations/hr.js +2 -2
- package/dist/translations/hr.umd.js +2 -2
- package/dist/translations/hu.d.ts +1 -1
- package/dist/translations/hu.js +2 -2
- package/dist/translations/hu.umd.js +2 -2
- package/dist/translations/hy.d.ts +1 -1
- package/dist/translations/hy.js +2 -2
- package/dist/translations/hy.umd.js +2 -2
- package/dist/translations/id.d.ts +1 -1
- package/dist/translations/id.js +2 -2
- package/dist/translations/id.umd.js +2 -2
- package/dist/translations/it.d.ts +1 -1
- package/dist/translations/it.js +2 -2
- package/dist/translations/it.umd.js +2 -2
- package/dist/translations/ja.d.ts +1 -1
- package/dist/translations/ja.js +2 -2
- package/dist/translations/ja.umd.js +2 -2
- package/dist/translations/jv.d.ts +1 -1
- package/dist/translations/jv.js +2 -2
- package/dist/translations/jv.umd.js +2 -2
- package/dist/translations/kk.d.ts +1 -1
- package/dist/translations/kk.js +2 -2
- package/dist/translations/kk.umd.js +2 -2
- package/dist/translations/km.d.ts +1 -1
- package/dist/translations/km.js +2 -2
- package/dist/translations/km.umd.js +2 -2
- package/dist/translations/kn.d.ts +1 -1
- package/dist/translations/kn.js +2 -2
- package/dist/translations/kn.umd.js +2 -2
- package/dist/translations/ko.d.ts +1 -1
- package/dist/translations/ko.js +2 -2
- package/dist/translations/ko.umd.js +2 -2
- package/dist/translations/ku.d.ts +1 -1
- package/dist/translations/ku.js +2 -2
- package/dist/translations/ku.umd.js +2 -2
- package/dist/translations/lt.d.ts +1 -1
- package/dist/translations/lt.js +2 -2
- package/dist/translations/lt.umd.js +2 -2
- package/dist/translations/lv.d.ts +1 -1
- package/dist/translations/lv.js +2 -2
- package/dist/translations/lv.umd.js +2 -2
- package/dist/translations/ms.d.ts +1 -1
- package/dist/translations/ms.js +2 -2
- package/dist/translations/ms.umd.js +2 -2
- package/dist/translations/nb.d.ts +1 -1
- package/dist/translations/nb.js +2 -2
- package/dist/translations/nb.umd.js +2 -2
- package/dist/translations/ne.d.ts +1 -1
- package/dist/translations/ne.js +2 -2
- package/dist/translations/ne.umd.js +2 -2
- package/dist/translations/nl.d.ts +1 -1
- package/dist/translations/nl.js +2 -2
- package/dist/translations/nl.umd.js +2 -2
- package/dist/translations/no.d.ts +1 -1
- package/dist/translations/no.js +2 -2
- package/dist/translations/no.umd.js +2 -2
- package/dist/translations/oc.d.ts +1 -1
- package/dist/translations/oc.js +2 -2
- package/dist/translations/oc.umd.js +2 -2
- package/dist/translations/pl.d.ts +1 -1
- package/dist/translations/pl.js +2 -2
- package/dist/translations/pl.umd.js +2 -2
- package/dist/translations/pt-br.d.ts +1 -1
- package/dist/translations/pt-br.js +2 -2
- package/dist/translations/pt-br.umd.js +2 -2
- package/dist/translations/pt.d.ts +1 -1
- package/dist/translations/pt.js +2 -2
- package/dist/translations/pt.umd.js +2 -2
- package/dist/translations/ro.d.ts +1 -1
- package/dist/translations/ro.js +2 -2
- package/dist/translations/ro.umd.js +2 -2
- package/dist/translations/ru.d.ts +1 -1
- package/dist/translations/ru.js +2 -2
- package/dist/translations/ru.umd.js +2 -2
- package/dist/translations/si.d.ts +1 -1
- package/dist/translations/si.js +2 -2
- package/dist/translations/si.umd.js +2 -2
- package/dist/translations/sk.d.ts +1 -1
- package/dist/translations/sk.js +2 -2
- package/dist/translations/sk.umd.js +2 -2
- package/dist/translations/sl.d.ts +1 -1
- package/dist/translations/sl.js +2 -2
- package/dist/translations/sl.umd.js +2 -2
- package/dist/translations/sq.d.ts +1 -1
- package/dist/translations/sq.js +2 -2
- package/dist/translations/sq.umd.js +2 -2
- package/dist/translations/sr-latn.d.ts +1 -1
- package/dist/translations/sr-latn.js +2 -2
- package/dist/translations/sr-latn.umd.js +2 -2
- package/dist/translations/sr.d.ts +1 -1
- package/dist/translations/sr.js +2 -2
- package/dist/translations/sr.umd.js +2 -2
- package/dist/translations/sv.d.ts +1 -1
- package/dist/translations/sv.js +2 -2
- package/dist/translations/sv.umd.js +2 -2
- package/dist/translations/th.d.ts +1 -1
- package/dist/translations/th.js +2 -2
- package/dist/translations/th.umd.js +2 -2
- package/dist/translations/ti.d.ts +1 -1
- package/dist/translations/ti.js +2 -2
- package/dist/translations/ti.umd.js +2 -2
- package/dist/translations/tk.d.ts +1 -1
- package/dist/translations/tk.js +2 -2
- package/dist/translations/tk.umd.js +2 -2
- package/dist/translations/tr.d.ts +1 -1
- package/dist/translations/tr.js +2 -2
- package/dist/translations/tr.umd.js +2 -2
- package/dist/translations/tt.d.ts +1 -1
- package/dist/translations/tt.js +2 -2
- package/dist/translations/tt.umd.js +2 -2
- package/dist/translations/ug.d.ts +1 -1
- package/dist/translations/ug.js +2 -2
- package/dist/translations/ug.umd.js +2 -2
- package/dist/translations/uk.d.ts +1 -1
- package/dist/translations/uk.js +2 -2
- package/dist/translations/uk.umd.js +2 -2
- package/dist/translations/ur.d.ts +1 -1
- package/dist/translations/ur.js +2 -2
- package/dist/translations/ur.umd.js +2 -2
- package/dist/translations/uz.d.ts +1 -1
- package/dist/translations/uz.js +2 -2
- package/dist/translations/uz.umd.js +2 -2
- package/dist/translations/vi.d.ts +1 -1
- package/dist/translations/vi.js +2 -2
- package/dist/translations/vi.umd.js +2 -2
- package/dist/translations/zh-cn.d.ts +1 -1
- package/dist/translations/zh-cn.js +2 -2
- package/dist/translations/zh-cn.umd.js +2 -2
- package/dist/translations/zh.d.ts +1 -1
- package/dist/translations/zh.js +2 -2
- package/dist/translations/zh.umd.js +2 -2
- package/lang/translations/af.po +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/ast.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/be.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/bs.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en-gb.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/eo.po +1 -1
- package/lang/translations/es-co.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/eu.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/gu.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/hy.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/jv.po +1 -1
- package/lang/translations/kk.po +1 -1
- package/lang/translations/km.po +1 -1
- package/lang/translations/kn.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/ku.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nb.po +1 -1
- package/lang/translations/ne.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/oc.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/si.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sl.po +1 -1
- package/lang/translations/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/ti.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/uz.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +10 -10
- package/src/augmentation.d.ts +1 -1
- package/src/augmentation.js +1 -1
- package/src/index.d.ts +1 -1
- package/src/index.js +2 -2
- package/src/ui/uploadcarecontroller.d.ts +1 -1
- package/src/ui/uploadcarecontroller.js +3 -3
- package/src/ui/uploadcareformview.d.ts +1 -1
- package/src/ui/uploadcareformview.js +2 -2
- package/src/uploadcare.d.ts +1 -1
- package/src/uploadcare.js +2 -2
- package/src/uploadcarecommand.d.ts +1 -1
- package/src/uploadcarecommand.js +2 -2
- package/src/uploadcareconfig.d.ts +1 -1
- package/src/uploadcareconfig.js +2 -2
- package/src/uploadcareediting.d.ts +1 -1
- package/src/uploadcareediting.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.d.ts +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +3 -3
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.d.ts +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.d.ts +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.d.ts +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +2 -2
- package/src/uploadcareimageedit/uploadcareimageeditcommand.d.ts +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +2 -2
- package/src/uploadcareimageedit/uploadcareimageeditediting.d.ts +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +2 -2
- package/src/uploadcareimageedit/uploadcareimageeditui.d.ts +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +2 -2
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.d.ts +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +2 -2
- package/src/uploadcareimageedit.d.ts +1 -1
- package/src/uploadcareimageedit.js +2 -2
- package/src/uploadcareui.d.ts +1 -1
- package/src/uploadcareui.js +2 -2
- package/src/uploadcareuploadadapter.d.ts +1 -1
- package/src/uploadcareuploadadapter.js +2 -2
- package/src/utils/common-translations.d.ts +1 -1
- package/src/utils/common-translations.js +2 -2
- package/src/utils/dialogfocusmanagerview.d.ts +1 -1
- package/src/utils/dialogfocusmanagerview.js +2 -2
- package/src/utils/editingutils.d.ts +1 -1
- package/src/utils/editingutils.js +2 -2
- package/src/utils/isancestor.d.ts +1 -1
- package/src/utils/isancestor.js +2 -2
- package/src/utils/uploadutils.d.ts +1 -1
- package/src/utils/uploadutils.js +2 -2
- package/theme/uploadcare-form.css +5 -2
- package/theme/uploadcare-theme.css +1 -1
- package/theme/uploadcareimageedit.css +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x13c8f3,Command as _0x332752}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1c5b20,IconGooglePhotos as _0x3af568,IconGoogleDrive as _0x251263,IconFacebook as _0x1c7e5d,IconDropbox as _0x2a6b09,IconUploadcareLink as _0x5162de,IconUploadcareImageUpload as _0x3dace1,IconError as _0x1639cc,IconUploadcareImageEdit as _0x327887}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x538ecb,MenuBarMenuListItemButtonView as _0x168012,View as _0x212904,FocusCycler as _0x3ac7f2,Dialog as _0xb06da8,DialogViewPosition as _0x539d28,SpinnerView as _0x238fc7,IconView as _0x10a779,Notification as _0xdc8daa}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x304ffc,DomEmitterMixin as _0x4dbb18,global as _0x593370,getAncestors as _0x4231c9,ObservableMixin as _0x2b8bff,uid as _0x48ff0b,createElement as _0x4ab736}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x37d4c1}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5c281c,info as _0x4f675d}from'@uploadcare/upload-client';import*as _0x3af135 from'@uploadcare/file-uploader';var i=function(_0x15fdbe){return _0x15fdbe['Local']='local',_0x15fdbe['URL']='url',_0x15fdbe['Dropbox']='dropbox',_0x15fdbe['GDrive']='gdrive',_0x15fdbe['Facebook']='facebook',_0x15fdbe['GPhotos']='gphotos',_0x15fdbe['OneDrive']='onedrive',_0x15fdbe;}({});function _(_0x2cbd63,_0x2238cf,_0x395176){const t=_0x2cbd63['t'],_0x66cdbc=_0x2cbd63['t'];switch(_0x2238cf){case i['Local']:return{'text':_0x66cdbc('Insert'===_0x395176?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x66cdbc('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x395176?_0x66cdbc('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x66cdbc('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x395176?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x395176?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x395176?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x395176?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x395176?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2238cf;}}class e extends _0x13c8f3{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5d9b39=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x16a674;for(const _0x145012 in _0x5d9b39){const _0x336a9a=_0x145012,_0x1dd6c0=_0x5d9b39[_0x336a9a];if('uploadcareLicenseKeyValid'==_0x1dd6c0||'uploadcareLicenseKeyInvalid'==_0x1dd6c0||'uploadcareLicenseKeyExpired'==_0x1dd6c0||'uploadcareLicenseKeyDomainLimit'==_0x1dd6c0||'uploadcareLicenseKeyNotAllowed'==_0x1dd6c0||'uploadcareLicenseKeyEvaluationLimit'==_0x1dd6c0||'uploadcareLicenseKeyTrialLimit'==_0x1dd6c0||'uploadcareLicenseKeyUsageLimit'==_0x1dd6c0){delete _0x5d9b39[_0x336a9a],_0x16a674=_0x1dd6c0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x16a674&&_0x5d9b39['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x16a674&&_0x5d9b39['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x16a674&&_0x5d9b39['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x16a674&&_0x5d9b39['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x16a674&&_0x5d9b39['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x16a674&&_0x5d9b39['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x16a674&&_0x5d9b39['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x271083}=this,_0x5398dd=_0x271083['commands']['get']('uploadcare');if(!_0x5398dd)return;const _0x5de15f=this['_normalizeConfigSourceList'](_0x271083['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4ec7fd,_0x3be88f)=>{const _0x438bcc=this['_getIntegrationKey'](_0x3be88f['type']);return _0x4ec7fd[_0x438bcc]||(_0x4ec7fd[_0x438bcc]=[]),_0x4ec7fd[_0x438bcc]['push'](_0x3be88f),_0x4ec7fd;},{});_0x271083['plugins']['has']('ImageInsertUI')&&_0x271083['commands']['get']('uploadcare')&&Object['entries'](_0x5de15f)['forEach'](([_0x50a467,_0x30f96d])=>{_0x271083['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x50a467,'observable':()=>_0x5398dd,'buttonViewCreator':()=>this['_createToolbarButton'](_0x30f96d),'formViewCreator':()=>this['_createDropdownButtons'](_0x30f96d),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x30f96d),'override':'assetManager'!==_0x50a467});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x521ee9){const {locale:_0x11e581}=this['editor'];return _0x521ee9['map'](_0x59dead=>{const _0x437e3b=_(_0x11e581,_0x59dead,'Insert');switch(_0x59dead){case i['Local']:return{'icon':_0x3dace1,'type':i['Local'],..._0x437e3b};case i['URL']:return{'icon':_0x5162de,'type':i['URL'],..._0x437e3b};case i['Dropbox']:return{'icon':_0x2a6b09,'type':i['Dropbox'],..._0x437e3b};case i['Facebook']:return{'icon':_0x1c7e5d,'type':i['Facebook'],..._0x437e3b};case i['GDrive']:return{'icon':_0x251263,'type':i['GDrive'],..._0x437e3b};case i['GPhotos']:return{'icon':_0x3af568,'type':i['GPhotos'],..._0x437e3b};case i['OneDrive']:return{'icon':_0x1c5b20,'type':i['OneDrive'],..._0x437e3b};}});}['_getIntegrationKey'](_0x37deda){switch(_0x37deda){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1cf27a,_0x1c284d){const _0x3116c2=this['editor'],_0x537046=new _0x1cf27a(_0x3116c2['locale']),_0x5f25e3=_0x3116c2['commands']['get']('uploadcare');return _0x537046['bind']('isEnabled')['to'](_0x5f25e3),_0x537046['on']('execute',()=>{_0x5f25e3['execute'](_0x1c284d);}),_0x537046;}['_createToolbarButton'](_0x3c3c75){const {locale:_0x3283f1}=this['editor'],_0x48d0a9=this['editor']['plugins']['get']('ImageInsertUI'),_0x41a84e=_0x3c3c75[0x0],_0x334b73=this['_createButton'](_0x538ecb,_0x41a84e['type']);return _0x334b73['icon']=_0x41a84e['icon'],_0x334b73['bind']('label')['to'](_0x48d0a9,'isImageSelected',_0xd65488=>_(_0x3283f1,_0x41a84e['type'],_0xd65488?'Replace':'Insert')['text']),_0x334b73['tooltip']=!0x0,_0x334b73;}['_createDropdownButtons'](_0xf3c441){const {locale:_0xf6e4c5}=this['editor'],_0xd5c5d3=this['editor']['plugins']['get']('ImageInsertUI');return _0xf3c441['map'](_0x29a357=>{const _0x3b195b=this['_createButton'](_0x538ecb,_0x29a357['type']);return _0x3b195b['withText']=!0x0,_0x3b195b['icon']=_0x29a357['icon'],_0x3b195b['bind']('label')['to'](_0xd5c5d3,'isImageSelected',_0x1234b6=>_(_0xf6e4c5,_0x29a357['type'],_0x1234b6?'Replace':'Insert')['text']),_0x3b195b;});}['_createMenuBarButtons'](_0xc3c806){return _0xc3c806['map'](_0x20c68f=>{const _0x146878=this['_createButton'](_0x168012,_0x20c68f['type']);return _0x146878['icon']=_0x20c68f['icon'],_0x146878['label']=_0x20c68f['shortText'],_0x146878;});}}class F extends _0x212904{['focusTracker'];['focusCycler'];constructor(_0x5daaad){super(_0x5daaad),this['focusTracker']=new _0x304ffc(),this['focusCycler']=new _0x3ac7f2({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x112fd4,_0x4313b3){super(_0x112fd4),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader-'+_0x4313b3}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x5e8993,_0x84cb6c){const _0x214737=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1610f6=>_0x1610f6<=_0x84cb6c)['map'](_0x62c512=>_0x5e8993['replace'](/\/$/,'')+'/-/resize/'+_0x62c512+'x/\x20'+_0x62c512+'w');return{'imageFallbackUrl':_0x5e8993,'imageSources':[{'srcset':_0x214737['join'](',\x20'),'sizes':'(max-width:\x20'+_0x84cb6c+'px)\x20100vw,\x20'+_0x84cb6c+'px','type':'image/webp'}]};}function S(_0x7cf71e,_0x1a642e,_0x11439b){const _0x3c024e=_0x7cf71e['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3c024e?parseInt(_0x3c024e[0x1],0xa):_0x1a642e,'height':_0x3c024e?parseInt(_0x3c024e[0x2],0xa):_0x11439b};}function p(_0x3ce08b,_0xfba1a1){const _0x625c8d=new(_0x4dbb18())(),_0x3ac3f6=_0x3ce08b['plugins']['get']('ImageUtils'),_0x150c8b=_0x3ce08b['editing']['mapper']['toViewElement'](_0xfba1a1),_0x22ef4d=_0x3ac3f6['findViewImgElement'](_0x150c8b),_0x49f85f=_0x3ce08b['editing']['view']['domConverter']['viewToDom'](_0x22ef4d),_0x5d577d=_0xfba1a1['getAttribute']('width'),_0x34f951=_0xfba1a1['getAttribute']('height'),_0x13e5ac='image-processing';_0x3ce08b['editing']['view']['change'](_0xf7aff7=>{_0xf7aff7['addClass'](_0x13e5ac,_0x150c8b),_0xf7aff7['setStyle']('aspect-ratio',_0x5d577d+'/'+_0x34f951,_0x22ef4d);}),_0x625c8d['listenTo'](_0x49f85f,'load',()=>{_0x625c8d['stopListening'](_0x49f85f,'load'),_0x3ce08b['editing']['view']['change'](_0x115721=>{_0x115721['removeClass'](_0x13e5ac,_0x150c8b),_0x115721['removeStyle']('aspect-ratio',_0x22ef4d);});});}function G(_0x292f17){if(Array['isArray'](_0x292f17)){const _0x549d8c=_0x292f17['map'](G);return _0x2a81c1=>_0x549d8c['some'](_0x5647a2=>_0x5647a2(_0x2a81c1));}if('origin'==_0x292f17){const _0x19e6d0=_0x593370['window']['location']['origin'];return _0x357a71=>new URL(_0x357a71,_0x593370['document']['baseURI'])['origin']==_0x19e6d0;}return'function'==typeof _0x292f17?_0x292f17:_0x292f17 instanceof RegExp?_0x455fb1=>!(!_0x455fb1['match'](_0x292f17)&&!_0x455fb1['replace'](/^https?:\/\//,'')['match'](_0x292f17)):()=>!0x1;}function A(_0x270b9e,_0x447e32){return _0x4231c9(_0x270b9e['target'])['includes'](_0x447e32);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x2b8bff(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x56d729,_0x54b443,_0x285c1c){super(),this['_editor']=_0x56d729,this['_editing']=_0x54b443,this['_dialog']=_0x56d729['plugins']['get'](_0xb06da8),this['_api']=_0x54b443['ctxElement']['getAPI'](),this['_type']=_0x285c1c,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x391903,model:_0x2bd95b}=this['_editor'],_0x4e2b40=_0x2bd95b['document']['selection']['getSelectedElement'](),_0x23f3b8=_0x4e2b40&&(_0x4e2b40['is']('element','imageBlock')||_0x4e2b40['is']('element','imageInline'));this['_formView']=new x(_0x391903,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x3dace1,'title':_(_0x391903,this['_type'],_0x23f3b8?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x539d28['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x442ffb=>!A(_0x442ffb,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x32a4db}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1e05b3=>{const _0x12f215=_0x32a4db['length'];for(const _0x4cfb28 of _0x32a4db){const _0xdeecc0=_0x4cfb28===_0x32a4db[_0x12f215-0x1],{cdnUrl:_0x160b66,fileInfo:_0x2eaf7e}=_0x4cfb28;if(!_0x160b66||!_0x2eaf7e)continue;const {width:_0x12b956,height:_0x5316e3}=_0x2eaf7e['imageInfo'],_0x1ccca8=S(_0x160b66,_0x12b956,_0x5316e3),_0x31469c=C(_0x160b66,_0x1ccca8['width']),_0x1cc901={'id':_0x2eaf7e['uuid'],'type':'image','attributes':{'imageDimension':_0x1ccca8,..._0x31469c}};this['_insertAsset'](_0x1cc901,_0xdeecc0,_0x1e05b3);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1cada6=>{'idle'===_0x1cada6['detail']['status']&&!_0x1cada6['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x56ed97,_0x2ceacc,_0x433fb1){const _0xe15034=this['_editor']['model']['document']['selection'],_0x55e753=_0xe15034['getSelectedElement'](),_0xff9fa6=!(!_0x55e753||!_0x55e753['is']('element','imageInline'));_0x433fb1['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x56ed97,_0xff9fa6),_0x2ceacc||_0x433fb1['setSelection'](_0xe15034['getLastPosition']());}['_insertImage'](_0x4e9369,_0x9c75ff){const _0x2b2505=this['_editor'],{imageDimension:_0x51b25c,imageFallbackUrl:_0x3ac0fc,imageSources:_0x1e3768}=_0x4e9369['attributes'];_0x2b2505['execute']('insertImage',{'imageType':_0x9c75ff?'imageInline':null,'source':{'uploadcareImageId':_0x4e9369['id'],'src':_0x3ac0fc,'sources':_0x1e3768,..._0x51b25c}});}}class w extends _0x332752{['_editing'];['_controller']=null;static get['requires'](){return[_0xb06da8,o];}constructor(_0x139d7c){super(_0x139d7c),this['_editing']=_0x139d7c['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x44dbd6){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x44dbd6);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x49a93b,..._0x428682}){return _0x5c281c(_0x49a93b,_0x428682);}static['getInfo'](_0x254747,_0x1c1b69){return _0x4f675d(_0x254747,_0x1c1b69);}}class f extends _0x13c8f3{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x37d4c1,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5903c6=this['editor'];if(!!!_0x5903c6['config']['get']('uploadcare'))return;_0x5903c6['plugins']['get'](_0x37d4c1)['createUploadAdapter']=_0x29e9d8=>new k(_0x29e9d8,_0x5903c6),_0x5903c6['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1c0004,{imageElement:_0x2442eb,data:_0x509b9d})=>{_0x5903c6['model']['change'](_0x1e2ed3=>{_0x1e2ed3['setAttribute']('uploadcareImageId',_0x509b9d['uploadcareImageId'],_0x2442eb);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x3d3015,_0x26f27b){this['loader']=_0x3d3015,this['editor']=_0x26f27b,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1ca84a=await this['loader']['file'];return j['upload']({'file':_0x1ca84a,'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':_0x196902=>{_0x196902&&_0x196902['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x196902['value']);}})['then'](async _0x1b6245=>{const {imageFallbackUrl:_0x4f4f6b,imageSources:_0x27cced}=C(_0x1b6245['cdnUrl'],_0x1b6245['imageInfo']['width']);return{'uploadcareImageId':_0x1b6245['uuid'],'default':_0x4f4f6b,'sources':_0x27cced};})['catch'](()=>{const _0x3e939a=t('Cannot\x20upload\x20file:')+('\x20'+_0x1ca84a['name']+'.');return Promise['reject'](_0x3e939a);});}['abort'](){this['controller']['abort']();}}class o extends _0x13c8f3{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0xb06da8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x239e70){super(_0x239e70),this['ucContextId']=_0x48ff0b();}['init'](){const _0x198c8c=this['editor'];_0x198c8c['commands']['add']('uploadcare',new w(_0x198c8c));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x8f5c6f=_0x593370['document']['querySelector']('input[uploadcare-file-input]');_0x8f5c6f&&_0x8f5c6f['remove']();}),async function(_0x5cde54){const _0x4d6214=_0x4a01ea([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]),_0x51f122=0x535f8c3a,_0x2072fd=0x5358f07a^_0x51f122,_0x1a5b94=window[_0x4a01ea([0x44,0x61,0x74,0x65])][_0x4a01ea([0x6e,0x6f,0x77])](),_0x5e26ac=_0x5cde54[_0x4a01ea([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xaf6dcb=new window[(_0x4a01ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27176d=>{_0x5e26ac[_0x4a01ea([0x6f,0x6e,0x63,0x65])](_0x4a01ea([0x72,0x65,0x61,0x64,0x79]),_0x27176d);}),_0x1333d7={[_0x4a01ea([0x6b,0x74,0x79])]:_0x4a01ea([0x45,0x43]),[_0x4a01ea([0x75,0x73,0x65])]:_0x4a01ea([0x73,0x69,0x67]),[_0x4a01ea([0x63,0x72,0x76])]:_0x4a01ea([0x50,0x2d,0x32,0x35,0x36]),[_0x4a01ea([0x78])]:_0x4a01ea([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]),[_0x4a01ea([0x79])]:_0x4a01ea([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]),[_0x4a01ea([0x61,0x6c,0x67])]:_0x4a01ea([0x45,0x53,0x32,0x35,0x36])},_0x4501ac=_0x5e26ac[_0x4a01ea([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4a01ea([0x67,0x65,0x74])](_0x4a01ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x15270c(){let _0x181881,_0x860f36=null,_0x3e79a5=null;try{if(_0x4501ac==_0x4a01ea([0x47,0x50,0x4c]))return _0x4a01ea([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x181881=_0x3727a1(),!_0x181881)return _0x4a01ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x181881[_0x4a01ea([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3e79a5=_0x26b37b(_0x181881[_0x4a01ea([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x181881[_0x4a01ea([0x6a,0x74,0x69])])),await _0x517c4d()?_0xc3106f()?_0x32c2f3()?_0x4a01ea([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x506671()?(_0x181881[_0x4a01ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4a01ea([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x860f36=_0x3d9d2e(_0x4a01ea([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x181881[_0x4a01ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4a01ea([0x74,0x72,0x69,0x61,0x6c])&&(_0x860f36=_0x3d9d2e(_0x4a01ea([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x272fb7()):_0x4a01ea([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4a01ea([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4a01ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4a01ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x32c2f3(){const _0x56e2d3=[_0x4a01ea([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4a01ea([0x74,0x72,0x69,0x61,0x6c])][_0x4a01ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x181881[_0x4a01ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1a5b94/0x3e8:0xe10*_0x2072fd;return _0x181881[_0x4a01ea([0x65,0x78,0x70])]<_0x56e2d3;}function _0xc3106f(){const _0x3f41e5=_0x181881[_0x4a01ea([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3f41e5&&(!!_0x3f41e5[_0x4a01ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a01ea([0x2a]))||!!_0x3f41e5[_0x4a01ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a01ea([0x55,0x50,0x4c,0x43])));}function _0x506671(){const _0x1c68e8=_0x181881[_0x4a01ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c68e8||0x0==_0x1c68e8[_0x4a01ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x56b18f}=new URL(window[_0x4a01ea([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1c68e8[_0x4a01ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56b18f))return!0x0;const _0x234661=_0x56b18f[_0x4a01ea([0x73,0x70,0x6c,0x69,0x74])](_0x4a01ea([0x2e]));return _0x1c68e8[_0x4a01ea([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x16773b=>_0x16773b[_0x4a01ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a01ea([0x2a])))[_0x4a01ea([0x6d,0x61,0x70])](_0x41a772=>_0x41a772[_0x4a01ea([0x73,0x70,0x6c,0x69,0x74])](_0x4a01ea([0x2e])))[_0x4a01ea([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2a3db2=>_0x2a3db2[_0x4a01ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x234661[_0x4a01ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4a01ea([0x6d,0x61,0x70])](_0x5cd9b5=>Array(_0x234661[_0x4a01ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5cd9b5[_0x4a01ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4a01ea([0x66,0x69,0x6c,0x6c])](_0x5cd9b5[0x0]===_0x4a01ea([0x2a])?_0x4a01ea([0x2a]):'')[_0x4a01ea([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5cd9b5))[_0x4a01ea([0x73,0x6f,0x6d,0x65])](_0x298881=>_0x234661[_0x4a01ea([0x65,0x76,0x65,0x72,0x79])]((_0x21475b,_0x275ede)=>_0x298881[_0x275ede]===_0x21475b||_0x298881[_0x275ede]===_0x4a01ea([0x2a])));}function _0x272fb7(){return _0x860f36&&_0x3e79a5?new window[(_0x4a01ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x507971,_0x5df001)=>{_0x860f36[_0x4a01ea([0x74,0x68,0x65,0x6e])](_0x507971,_0x5df001),_0x3e79a5[_0x4a01ea([0x74,0x68,0x65,0x6e])](_0x5f0d98=>{_0x5f0d98!=_0x4a01ea([0x56,0x61,0x6c,0x69,0x64])&&_0x507971(_0x5f0d98);},_0x5df001);}):_0x860f36||_0x3e79a5||_0x4a01ea([0x56,0x61,0x6c,0x69,0x64]);}}function _0x26b37b(_0xd776a8,_0x2949ef){return new window[(_0x4a01ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x104a2a=>{if(_0x216d7c())return _0x104a2a(_0x4a01ea([0x56,0x61,0x6c,0x69,0x64]));_0x414806(),_0x5e26ac[_0x4a01ea([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4a01ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x6b893d=!0x1;const _0x438800=_0x48ff0b();function _0x8ace1(_0x47cb24){return!!_0x47cb24&&(typeof _0x47cb24===_0x4a01ea([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x47cb24===_0x4a01ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x47cb24[_0x4a01ea([0x74,0x68,0x65,0x6e])]===_0x4a01ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x47cb24[_0x4a01ea([0x63,0x61,0x74,0x63,0x68])]===_0x4a01ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x38edd3(_0x2967de){_0x521f69(_0x2967de)[_0x4a01ea([0x74,0x68,0x65,0x6e])](_0x456f5e=>{if(!_0x456f5e||_0x456f5e[_0x4a01ea([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4a01ea([0x6f,0x6b]))return _0x4a01ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x46c90b(_0x2921c5(_0x438800+_0x2949ef))!=_0x456f5e[_0x4a01ea([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4a01ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4a01ea([0x56,0x61,0x6c,0x69,0x64]);})[_0x4a01ea([0x74,0x68,0x65,0x6e])](_0x4da701=>(_0x1aff97(),_0x4da701),()=>{const _0x19709f=_0x31a186();return null==_0x19709f?(_0x1aff97(),_0x4a01ea([0x56,0x61,0x6c,0x69,0x64])):_0x4a01ea(_0x1a5b94-_0x19709f>(0x7753083a^_0x51f122)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4a01ea([0x74,0x68,0x65,0x6e])](_0x104a2a)[_0x4a01ea([0x63,0x61,0x74,0x63,0x68])](()=>{_0x104a2a(_0x4a01ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x38a3b3=0x536962ba^_0x51f122;function _0x1aff97(){const _0x1f74d7=_0x4a01ea([0x6c,0x6c,0x63,0x74,0x2d])+_0x46c90b(_0x2921c5(_0xd776a8)),_0x3cf3a9=_0x8dcd40(_0x46c90b(window[_0x4a01ea([0x4d,0x61,0x74,0x68])][_0x4a01ea([0x63,0x65,0x69,0x6c])](_0x1a5b94/_0x38a3b3)));window[_0x4a01ea([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4a01ea([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f74d7,_0x3cf3a9);}function _0x31a186(){const _0x51e2af=_0x4a01ea([0x6c,0x6c,0x63,0x74,0x2d])+_0x46c90b(_0x2921c5(_0xd776a8)),_0x31653a=window[_0x4a01ea([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4a01ea([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51e2af);return _0x31653a?window[_0x4a01ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8dcd40(_0x31653a),0x10)*_0x38a3b3:null;}function _0x521f69(_0x5148cb){return new window[(_0x4a01ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5be525,_0x30af97)=>{_0x5148cb[_0x4a01ea([0x74,0x68,0x65,0x6e])](_0x5be525,_0x30af97),window[_0x4a01ea([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x30af97,0x535e58fa^_0x51f122);});}}_0x5e26ac[_0x4a01ea([0x6f,0x6e])](_0x4a01ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x50eff6,_0xd4ecef)=>{if(_0xd4ecef[0x0]!=_0xd776a8)return _0x104a2a(_0x4a01ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd4ecef[0x1]={..._0xd4ecef[0x1],[_0x4a01ea([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x438800};},{[_0x4a01ea([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4a01ea([0x68,0x69,0x67,0x68])}),_0x5e26ac[_0x4a01ea([0x6f,0x6e])](_0x4a01ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2694e2=>{_0x8ace1(_0x2694e2[_0x4a01ea([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x6b893d=!0x0,_0x38edd3(_0x2694e2[_0x4a01ea([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4a01ea([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4a01ea([0x6c,0x6f,0x77])}),_0xaf6dcb[_0x4a01ea([0x74,0x68,0x65,0x6e])](()=>{_0x6b893d||_0x104a2a(_0x4a01ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x216d7c(){return _0x5e26ac[_0x4a01ea([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4a01ea([0x76,0x69,0x65,0x77])][_0x4a01ea([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4a01ea([0x61,0x75,0x74,0x6f]);}function _0x414806(){_0x5e26ac[_0x4a01ea([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4a01ea([0x76,0x69,0x65,0x77])][_0x4a01ea([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4a01ea([0x61,0x75,0x74,0x6f]);}}function _0x3d9d2e(_0x6af17f){const _0x356c84=[new window[(_0x4a01ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x176909=>setTimeout(_0x176909,0x5356b2f6^_0x51f122)),_0xaf6dcb[_0x4a01ea([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4a01ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34905e=>{let _0x5c85ac=0x0;_0x5e26ac[_0x4a01ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a01ea([0x6f,0x6e])](_0x4a01ea([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x11ee89,_0x4895d5)=>{_0x4895d5[0x0][_0x4a01ea([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5c85ac++,_0x5c85ac==(0x535f8dc2^_0x51f122)&&(_0x34905e(),_0x11ee89[_0x4a01ea([0x6f,0x66,0x66])]());});}))];return window[_0x4a01ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4a01ea([0x72,0x61,0x63,0x65])](_0x356c84)[_0x4a01ea([0x74,0x68,0x65,0x6e])](()=>_0x6af17f);}async function _0x5b690c(){await _0xaf6dcb,_0x5e26ac[_0x4a01ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a01ea([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x15c214,_0x5e26ac[_0x4a01ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a01ea([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x15c214,_0x5e26ac[_0x4a01ea([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4a01ea([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5e8e07(_0x40dec7){const _0x341bfe=_0x1273c6();_0x5e26ac[_0x341bfe]=_0x4a01ea([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x40dec7,_0x40dec7!=_0x4a01ea([0x56,0x61,0x6c,0x69,0x64])&&_0x5b690c();}function _0x1273c6(){const _0x7e49f=window[_0x4a01ea([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4a01ea([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4a01ea([0x6e,0x6f,0x77])]())[_0x4a01ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4a01ea([0x2e]),'');let _0x372b22=_0x4a01ea([0x68]);for(let _0x33f974=0x0;_0x33f974<_0x7e49f[_0x4a01ea([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33f974+=0x2){let _0xa036aa=window[_0x4a01ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7e49f[_0x4a01ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33f974,_0x33f974+0x2));_0xa036aa>=_0x4d6214[_0x4a01ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xa036aa-=_0x4d6214[_0x4a01ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x372b22+=_0x4d6214[_0xa036aa];}return _0x372b22;}function _0x3727a1(){const _0x16ff5b=_0x4501ac[_0x4a01ea([0x73,0x70,0x6c,0x69,0x74])](_0x4a01ea([0x2e]));if(0x3!=_0x16ff5b[_0x4a01ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x40dda9(_0x16ff5b[0x1]);function _0x40dda9(_0x1fa909){const _0x4dd238=_0x1b12e1(_0x1fa909);return _0x4dd238&&_0x503653()?_0x4dd238:null;function _0x503653(){const _0x5606a8=_0x4dd238[_0x4a01ea([0x6a,0x74,0x69])],_0x3f18e3=window[_0x4a01ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5606a8[_0x4a01ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5606a8[_0x4a01ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x23537e={..._0x4dd238,[_0x4a01ea([0x6a,0x74,0x69])]:_0x5606a8[_0x4a01ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5606a8[_0x4a01ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x23537e[_0x4a01ea([0x76,0x63])],_0x2921c5(_0x23537e)==_0x3f18e3;}}}async function _0x517c4d(){let _0x2a96e8=!0x0;try{const _0x256352=_0x4501ac[_0x4a01ea([0x73,0x70,0x6c,0x69,0x74])](_0x4a01ea([0x2e])),[_0x264418,_0x35fdcb,_0xcb26f1]=_0x256352;return _0x55eaeb(_0x264418),await _0x5b0c0a(_0x264418,_0x35fdcb,_0xcb26f1),_0x2a96e8;}catch{return!0x1;}function _0x55eaeb(_0x41d88b){const _0x584d36=_0x1b12e1(_0x41d88b);_0x584d36&&_0x584d36[_0x4a01ea([0x61,0x6c,0x67])]==_0x4a01ea([0x45,0x53,0x32,0x35,0x36])||(_0x2a96e8=!0x1);}async function _0x5b0c0a(_0x2a8f9d,_0xce6770,_0x2dbe6f){const _0x5e1171=window[_0x4a01ea([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4a01ea([0x66,0x72,0x6f,0x6d])](_0x2392ff(_0x2dbe6f),_0x22923e=>_0x22923e[_0x4a01ea([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5872e9=new window[(_0x4a01ea([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4a01ea([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2a8f9d+_0x4a01ea([0x2e])+_0xce6770),_0x148c0d=window[_0x4a01ea([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4a01ea([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x148c0d)return;const _0x12621e=await _0x148c0d[_0x4a01ea([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4a01ea([0x6a,0x77,0x6b]),_0x1333d7,{[_0x4a01ea([0x6e,0x61,0x6d,0x65])]:_0x4a01ea([0x45,0x43,0x44,0x53,0x41]),[_0x4a01ea([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4a01ea([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4a01ea([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x148c0d[_0x4a01ea([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4a01ea([0x6e,0x61,0x6d,0x65])]:_0x4a01ea([0x45,0x43,0x44,0x53,0x41]),[_0x4a01ea([0x68,0x61,0x73,0x68])]:{[_0x4a01ea([0x6e,0x61,0x6d,0x65])]:_0x4a01ea([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x12621e,_0x5e1171,_0x5872e9)||(_0x2a96e8=!0x1);}}function _0x1b12e1(_0x560b12){return _0x560b12[_0x4a01ea([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4a01ea([0x65,0x79]))?JSON[_0x4a01ea([0x70,0x61,0x72,0x73,0x65])](_0x2392ff(_0x560b12)):null;}function _0x2392ff(_0x2b56f0){return window[_0x4a01ea([0x61,0x74,0x6f,0x62])](_0x2b56f0[_0x4a01ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4a01ea([0x2b]))[_0x4a01ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4a01ea([0x2f])));}function _0x2921c5(_0x5d29df){let _0x32d2b4=0x1505;function _0x3f71b8(_0x336e10){for(let _0x544d6b=0x0;_0x544d6b<_0x336e10[_0x4a01ea([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x544d6b++){const _0x3b647f=_0x336e10[_0x4a01ea([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x544d6b);_0x32d2b4=(_0x32d2b4<<0x5)+_0x32d2b4+_0x3b647f,_0x32d2b4&=_0x32d2b4;}}function _0x1f77ae(_0x1fbb1d){Array[_0x4a01ea([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1fbb1d)?_0x1fbb1d[_0x4a01ea([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1f77ae):_0x1fbb1d&&typeof _0x1fbb1d==_0x4a01ea([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4a01ea([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1fbb1d)[_0x4a01ea([0x73,0x6f,0x72,0x74])]()[_0x4a01ea([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x47fadc,_0x28f814])=>{_0x3f71b8(_0x47fadc),_0x1f77ae(_0x28f814);}):_0x3f71b8(window[_0x4a01ea([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1fbb1d));}return _0x1f77ae(_0x5d29df),_0x32d2b4>>>0x0;}function _0x46c90b(_0x565925){return _0x565925[_0x4a01ea([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4a01ea([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4a01ea([0x30]));}function _0x8dcd40(_0x576330){return _0x576330[_0x4a01ea([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4a01ea([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4a01ea([0x6a,0x6f,0x69,0x6e])]('');}function _0x15c214(){}function _0x4a01ea(_0x43c342){return _0x43c342['map'](_0x298529=>String['fromCharCode'](_0x298529))['join']('');}_0x5e8e07(await _0x15270c());}(this);}['_initSchema'](){const _0x194548=this['editor']['model']['schema'];_0x194548['isRegistered']('imageBlock')&&_0x194548['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x194548['isRegistered']('imageInline')&&_0x194548['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5ef2f4=this['editor'];_0x5ef2f4['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5ef2f4['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x33bb7e=>_0x33bb7e['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x43c047=_0x5ef2f4['commands']['get']('replaceImageSource');_0x43c047&&this['listenTo'](_0x43c047,'cleanupImage',(_0x2c44ed,[_0x472ab9,_0x85d167])=>{_0x472ab9['removeAttribute']('uploadcareImageId',_0x85d167);});}['_initConfig'](){const _0x423d64=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1e68d9=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4ab736(_0x593370['document'],'uc-config',{..._0x423d64,'pubkey':_0x1e68d9,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\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'}),this['_configElement']['iconHrefResolver']=_0x17cb75=>{if('closeMax'==_0x17cb75)return'#uc-icon-arrow-down';},_0x593370['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4ab736(_0x593370['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x593370['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x54574f=this['editor']['commands']['get']('insertImage');_0x54574f&&this['listenTo'](_0x54574f,'execute',()=>{const _0x2a8f6a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2a8f6a&&_0x2a8f6a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2a8f6a);});});const _0x36fd1b=this['editor']['commands']['get']('uploadcareImageReplace');_0x36fd1b&&this['listenTo'](_0x36fd1b,'execute',()=>{const _0x53f773=this['editor']['model']['document']['selection']['getSelectedElement']();_0x53f773&&_0x53f773['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x53f773);});});}}class tt extends _0x13c8f3{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2cb270){super(_0x2cb270),_0x2cb270['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3af135['defineComponents'](_0x3af135),this['_defineLocale']();}['_defineLocale'](){const _0x20aacf=this['editor']['config']['get']('uploadcare.locale'),_0x21a5f1=this['editor']['locale']['contentLanguage'];_0x20aacf&&_0x3af135['defineLocale'](_0x21a5f1,_0x20aacf);}}class ii extends _0x212904{constructor(_0x4cc09e){super(_0x4cc09e);const t=_0x4cc09e['t'],_0x3dd428=this['bindTemplate'],_0x3aa2ab=new _0x238fc7();_0x3aa2ab['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':[_0x3aa2ab,{'text':_0x3dd428['to']('imageUploadProgress',_0x2e0d2d=>t('Loading\x20image...')+'\x20('+(_0x2e0d2d||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'}]}]}]});}}class ti extends _0x212904{constructor(_0xe50202){super(_0xe50202);const t=_0xe50202['t'];this['set']('errorType',null);const _0x42eb8b=new _0x538ecb(_0xe50202);_0x42eb8b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x42eb8b['withText']=!0x0,_0x42eb8b['class']='ck-button-action',_0x42eb8b['on']('execute',()=>{this['fire']('retry');}),_0x42eb8b['bind']('isVisible')['to'](this,'errorType',_0x4089b1=>'NotFound'!==_0x4089b1);const _0x58c33f=new _0x10a779();_0x58c33f['content']=_0x1639cc,_0x58c33f['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1e7cd0=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':[_0x58c33f,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1e7cd0['to']('errorType',_0x14c263=>t('NotFound'!==_0x14c263?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x42eb8b]},{'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'}]}]}]});}}class ei extends _0x212904{constructor(_0x2aa247,_0x1ac47f){super(_0x2aa247);const _0x442ed6=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1ac47f,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x442ed6['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1779d1,_0x550127,_0x418083){super(_0x1779d1),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1779d1),this['_errorView']=new ti(_0x1779d1),this['_editingView']=new ei(_0x1779d1,_0x418083),this['_focusableView']=new _0x212904(_0x1779d1),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x550127),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x2f46c4=>{this['_addUploadcareImageEditorListeners'](_0x2f46c4);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x4e8b48,_0x156731){const _0x4635ae='uc-cloud-image-editor',_0x212771=_0x4e8b48['querySelector'](_0x4635ae);if(_0x212771)return _0x156731(_0x212771);const _0x64612a=new MutationObserver(_0x393aa8=>{const _0xe90d93=_0x393aa8['filter'](_0x2d9509=>_0x2d9509['target']===_0x4e8b48&&_0x2d9509['addedNodes']['length']>0x0&&_0x2d9509['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4635ae);_0xe90d93['length']&&(_0x64612a['disconnect'](),_0x156731(_0xe90d93[0x0]['addedNodes'][0x0]));});_0x64612a['observe'](_0x4e8b48,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1dde02){_0x1dde02['addEventListener']('apply',_0x56583f=>{this['fire']('apply',{'imageSrc':_0x56583f['detail']['cdnUrl']});}),_0x1dde02['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x2b8bff(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4c4d92,_0x2d5ef2,_0x4cbdcd){super(),this['_editor']=_0x4c4d92,this['_dialog']=_0x2d5ef2,this['_imageElement']=_0x4cbdcd,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 _0x20dadd=this['_imageElement'],_0x1f8a80=_0x20dadd['getAttribute']('uploadcareImageId'),_0x557530=_0x20dadd['getAttribute']('src');if(_0x1f8a80)await this['_loadImageInfo'](_0x1f8a80,_0x557530);else{if(this['_imageCache']['has'](_0x557530)){const _0x337928=this['_imageCache']['get'](_0x557530);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x337928['url'],this['imageDimension']=_0x337928['dimension'],this['imageId']=_0x337928['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x412267}=this['_editor'],t=_0x412267['t'],_0x9327cc=new X(_0x412267,this['imageStatus'],this['_attributes']);_0x9327cc['bind']('status')['to'](this,'imageStatus'),_0x9327cc['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x9327cc['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x9327cc['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x9327cc,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x327887,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x9327cc,'position':_0x539d28['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x9327cc['focus']();},'onHide':()=>{_0x9327cc['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4f535c=>!A(_0x4f535c,_0x9327cc['element'])}});}['_loadImageInfo'](_0x2815dd,_0x58d0e3){return j['getInfo'](_0x2815dd,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x48345c=>{const {width:_0x196e00,height:_0xd446e9}=_0x48345c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x58d0e3,this['imageDimension']={'width':_0x196e00,'height':_0xd446e9},this['imageId']=_0x2815dd;})['catch'](_0x328221=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x328221['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4c5926,_0x2a687d){return this['_getImageAsFile'](_0x4c5926)['then'](_0x56bd00=>j['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':_0x2a687d['signal'],'file':_0x56bd00,'onProgress':_0x590acb=>{_0x590acb&&_0x590acb['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x590acb['value']));}}))['then'](_0x502864=>{const {width:_0x36fc5f,height:_0x53b0d7}=_0x502864['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x502864['cdnUrl'],this['imageDimension']={'width':_0x36fc5f,'height':_0x53b0d7},this['imageId']=_0x502864['uuid'],this['imageUploadProgress']=null;const _0x2d1064=_0x4c5926['getAttribute']('src');this['_imageCache']['set'](_0x2d1064,{'id':_0x502864['uuid'],'url':_0x502864['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2a2e2a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2a2e2a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5161f3,_0x13dddb){_0x5161f3['on']('apply',(_0x3a13ac,_0x21829c)=>{this['_replaceImage'](_0x13dddb,_0x21829c['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5161f3['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5161f3['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4c7948,_0x5a7b69,_0x3c6699){const _0x2a2c94=this['_editor'],{width:_0x15f720,height:_0x5db0d9}=S(_0x5a7b69,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4fc7f7,imageSources:_0x4b7b67}=C(_0x5a7b69,_0x15f720);_0x2a2c94['model']['change'](_0x47afe5=>{if('$graveyard'===_0x4c7948['root']['rootName']){_0x2a2c94['execute']('insertImage',{'imageType':_0x4c7948['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4c7948['getAttributes']()),'uploadcareImageId':_0x3c6699,'src':_0x4fc7f7,'sources':_0x4b7b67,'width':_0x15f720,'height':_0x5db0d9}});const _0x42a725=_0x4c7948['getChildren']();_0x4c7948=_0x2a2c94['model']['document']['selection']['getSelectedElement']();for(const _0x2e0bf2 of _0x42a725)_0x47afe5['append'](_0x47afe5['cloneElement'](_0x2e0bf2),_0x4c7948);}else _0x47afe5['setSelection'](_0x4c7948,'on'),_0x2a2c94['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4c7948['getAttributes']()),'uploadcareImageId':_0x3c6699,'src':_0x4fc7f7,'sources':_0x4b7b67,'width':_0x15f720,'height':_0x5db0d9},_0x4c7948);_0x47afe5['setSelection'](_0x4c7948,'on');});}async['_getImageAsFile'](_0x48e7c6){const _0x5ef9fc=_0x593370['window'],_0x85d92b=_0x593370['document']['location']['href'],_0x1a166e=new _0x5ef9fc['URL'](_0x48e7c6['getAttribute']('src'),_0x85d92b);if('data:'===_0x1a166e['protocol']){const _0x3b1dd6=_0x1a166e['href']['split'](','),_0x7c9d5d=_0x3b1dd6[0x0]['match'](/:(.*?);/)[0x1],_0x3ff1a5=_0x7c9d5d['split']('/')[0x1],_0x19e3aa=_0x5ef9fc['atob'](_0x3b1dd6[_0x3b1dd6['length']-0x1]);let _0x3c2615=_0x19e3aa['length'];const _0x4adc3c=new _0x5ef9fc['Uint8Array'](_0x3c2615);for(;_0x3c2615--;)_0x4adc3c[_0x3c2615]=_0x19e3aa['charCodeAt'](_0x3c2615);return new _0x5ef9fc['File']([_0x4adc3c],'image.'+_0x3ff1a5,{'type':_0x7c9d5d});}const _0x1233a6=_0x1a166e['href']['split']('/'),_0x31f9b8=_0x1233a6[_0x1233a6['length']-0x1],_0x1cfeb5=_0x31f9b8['split']('.')[0x1];return _0x5ef9fc['fetch'](_0x1a166e['href'])['then'](_0x6d1388=>_0x6d1388['clone']()['blob']())['then'](_0x517386=>new _0x5ef9fc['File']([_0x517386],_0x31f9b8,{'type':'image/'+_0x1cfeb5}));}}class O extends _0x332752{['imageEditController'];static get['requires'](){return[_0xb06da8];}['_isEditable'];constructor(_0xa66a44){super(_0xa66a44),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2d4326){const _0x9f2e82=G(_0x2d4326);return _0x5a2ed3=>!(!_0x5a2ed3||!_0x5a2ed3['is']('element','imageBlock')&&!_0x5a2ed3['is']('element','imageInline'))&&(!!_0x5a2ed3['hasAttribute']('uploadcareImageId')||!!_0x5a2ed3['hasAttribute']('src')&&_0x9f2e82(_0x5a2ed3['getAttribute']('src')));}(_0xa66a44['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x395205=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x395205);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x43dec0=this['editor']['model']['document']['selection']['getSelectedElement']();_0x43dec0&&(_0x43dec0['is']('element','imageBlock')||_0x43dec0['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0xb06da8),_0x43dec0),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x332752{['refresh'](){const _0x3e13a5=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3e13a5&&(_0x3e13a5['is']('element','imageBlock')||_0x3e13a5['is']('element','imageInline')));}['execute'](_0x427b90){const _0x1d6ac8=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x55aa64=>{_0x55aa64['setAttributes'](_0x427b90,_0x1d6ac8),_0x55aa64['removeAttribute']('srcset',_0x1d6ac8),_0x55aa64['removeAttribute']('sizes',_0x1d6ac8);});}}class m extends _0x13c8f3{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0xdc8daa,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4c46b1}=this;_0x4c46b1['commands']['add']('uploadcareImageEdit',new O(_0x4c46b1)),_0x4c46b1['commands']['add']('uploadcareImageReplace',new R(_0x4c46b1));}}class g extends _0x13c8f3{['_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 _0x897419=this['editor'];_0x897419['ui']['componentFactory']['add']('uploadcareImageEdit',_0x208a9c=>{const _0x15423f=_0x897419['commands']['get']('uploadcareImageEdit'),_0x3a8c16=new _0x538ecb(_0x208a9c),t=_0x208a9c['t'];return _0x3a8c16['set']({'icon':_0x327887,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3a8c16['bind']('isEnabled')['to'](_0x15423f),_0x3a8c16['bind']('isOn')['to'](_0x15423f,'isActive'),this['listenTo'](_0x3a8c16,'execute',()=>{_0x897419['execute']('uploadcareImageEdit'),_0x897419['editing']['view']['focus']();}),_0x3a8c16;}),this['_initConfig']();}['_initConfig'](){const _0x32fc87=_0x4ab736(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x32fc87),this['listenTo'](this['editor'],'destroy',()=>{_0x32fc87['remove']();});}}class et extends _0x13c8f3{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x506e2c,Command as _0x40ce2d}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x43215d,IconGooglePhotos as _0x97faf5,IconGoogleDrive as _0x3abdd8,IconFacebook as _0x54fb0c,IconDropbox as _0x59de78,IconUploadcareLink as _0x534b43,IconUploadcareImageUpload as _0x34a7ef,IconError as _0x573a7c,IconUploadcareImageEdit as _0x1864b1}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x207fe5,MenuBarMenuListItemButtonView as _0x3780a1,View as _0x2af9c1,FocusCycler as _0x213b7d,Dialog as _0x33f5b7,DialogViewPosition as _0x200239,SpinnerView as _0x511d6e,IconView as _0x5c35a9,Notification as _0x28fc60}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2589d0,DomEmitterMixin as _0x4df0d3,global as _0x2bc079,getAncestors as _0x31ed08,ObservableMixin as _0x2eeb3f,uid as _0x96132e,createElement as _0x4561dd}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x12cbbb}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x616d4c,info as _0x4b1fdd}from'@uploadcare/upload-client';import*as _0x58df0b from'@uploadcare/file-uploader';var i=function(_0x38de49){return _0x38de49['Local']='local',_0x38de49['URL']='url',_0x38de49['Dropbox']='dropbox',_0x38de49['GDrive']='gdrive',_0x38de49['Facebook']='facebook',_0x38de49['GPhotos']='gphotos',_0x38de49['OneDrive']='onedrive',_0x38de49;}({});function _(_0x110b72,_0x3acbb8,_0x40647e){const t=_0x110b72['t'],_0x34e346=_0x110b72['t'];switch(_0x3acbb8){case i['Local']:return{'text':_0x34e346('Insert'===_0x40647e?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x34e346('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x40647e?_0x34e346('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x34e346('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x40647e?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x40647e?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x40647e?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x40647e?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x40647e?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3acbb8;}}class e extends _0x506e2c{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x53e039=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x15ab56;for(const _0x502043 in _0x53e039){const _0x1e115d=_0x502043,_0x3c1802=_0x53e039[_0x1e115d];if('uploadcareLicenseKeyValid'==_0x3c1802||'uploadcareLicenseKeyInvalid'==_0x3c1802||'uploadcareLicenseKeyExpired'==_0x3c1802||'uploadcareLicenseKeyDomainLimit'==_0x3c1802||'uploadcareLicenseKeyNotAllowed'==_0x3c1802||'uploadcareLicenseKeyEvaluationLimit'==_0x3c1802||'uploadcareLicenseKeyUsageLimit'==_0x3c1802){delete _0x53e039[_0x1e115d],_0x15ab56=_0x3c1802,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x15ab56&&_0x53e039['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x15ab56&&_0x53e039['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x15ab56&&_0x53e039['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x15ab56&&_0x53e039['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x15ab56&&_0x53e039['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x15ab56&&_0x53e039['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x26217e}=this,_0xdae832=_0x26217e['commands']['get']('uploadcare');if(!_0xdae832)return;const _0x243a7c=this['_normalizeConfigSourceList'](_0x26217e['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x417c88,_0x194c3c)=>{const _0x3fdcd8=this['_getIntegrationKey'](_0x194c3c['type']);return _0x417c88[_0x3fdcd8]||(_0x417c88[_0x3fdcd8]=[]),_0x417c88[_0x3fdcd8]['push'](_0x194c3c),_0x417c88;},{});_0x26217e['plugins']['has']('ImageInsertUI')&&_0x26217e['commands']['get']('uploadcare')&&Object['entries'](_0x243a7c)['forEach'](([_0x102d6e,_0x2ab483])=>{_0x26217e['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x102d6e,'observable':()=>_0xdae832,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2ab483),'formViewCreator':()=>this['_createDropdownButtons'](_0x2ab483),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2ab483),'override':'assetManager'!==_0x102d6e});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x14b270){const {locale:_0x5f46a4}=this['editor'];return _0x14b270['map'](_0x1eebae=>{const _0x18287a=_(_0x5f46a4,_0x1eebae,'Insert');switch(_0x1eebae){case i['Local']:return{'icon':_0x34a7ef,'type':i['Local'],..._0x18287a};case i['URL']:return{'icon':_0x534b43,'type':i['URL'],..._0x18287a};case i['Dropbox']:return{'icon':_0x59de78,'type':i['Dropbox'],..._0x18287a};case i['Facebook']:return{'icon':_0x54fb0c,'type':i['Facebook'],..._0x18287a};case i['GDrive']:return{'icon':_0x3abdd8,'type':i['GDrive'],..._0x18287a};case i['GPhotos']:return{'icon':_0x97faf5,'type':i['GPhotos'],..._0x18287a};case i['OneDrive']:return{'icon':_0x43215d,'type':i['OneDrive'],..._0x18287a};}});}['_getIntegrationKey'](_0x27ff02){switch(_0x27ff02){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x146a1e,_0xae71af){const _0x2bd029=this['editor'],_0x45afe6=new _0x146a1e(_0x2bd029['locale']),_0x28b67b=_0x2bd029['commands']['get']('uploadcare');return _0x45afe6['bind']('isEnabled')['to'](_0x28b67b),_0x45afe6['on']('execute',()=>{_0x28b67b['execute'](_0xae71af);}),_0x45afe6;}['_createToolbarButton'](_0x1cb163){const {locale:_0x2acd19}=this['editor'],_0x29f3ef=this['editor']['plugins']['get']('ImageInsertUI'),_0x4ba404=_0x1cb163[0x0],_0x150eaf=this['_createButton'](_0x207fe5,_0x4ba404['type']);return _0x150eaf['icon']=_0x4ba404['icon'],_0x150eaf['bind']('label')['to'](_0x29f3ef,'isImageSelected',_0x6108e0=>_(_0x2acd19,_0x4ba404['type'],_0x6108e0?'Replace':'Insert')['text']),_0x150eaf['tooltip']=!0x0,_0x150eaf;}['_createDropdownButtons'](_0x1cb116){const {locale:_0x2868de}=this['editor'],_0x158f86=this['editor']['plugins']['get']('ImageInsertUI');return _0x1cb116['map'](_0x2cca20=>{const _0x2fb414=this['_createButton'](_0x207fe5,_0x2cca20['type']);return _0x2fb414['withText']=!0x0,_0x2fb414['icon']=_0x2cca20['icon'],_0x2fb414['bind']('label')['to'](_0x158f86,'isImageSelected',_0x52d113=>_(_0x2868de,_0x2cca20['type'],_0x52d113?'Replace':'Insert')['text']),_0x2fb414;});}['_createMenuBarButtons'](_0x20d5f1){return _0x20d5f1['map'](_0x780619=>{const _0x74978=this['_createButton'](_0x3780a1,_0x780619['type']);return _0x74978['icon']=_0x780619['icon'],_0x74978['label']=_0x780619['shortText'],_0x74978;});}}class F extends _0x2af9c1{['focusTracker'];['focusCycler'];constructor(_0x3979c6){super(_0x3979c6),this['focusTracker']=new _0x2589d0(),this['focusCycler']=new _0x213b7d({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x2c5ccd,_0x2e2758){super(_0x2c5ccd),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader-'+_0x2e2758}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x29aa84,_0xe6210b){const _0x2fb68f=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x89bf13=>_0x89bf13<=_0xe6210b)['map'](_0x388e3b=>_0x29aa84['replace'](/\/$/,'')+'/-/resize/'+_0x388e3b+'x/\x20'+_0x388e3b+'w');return{'imageFallbackUrl':_0x29aa84,'imageSources':[{'srcset':_0x2fb68f['join'](',\x20'),'sizes':'(max-width:\x20'+_0xe6210b+'px)\x20100vw,\x20'+_0xe6210b+'px','type':'image/webp'}]};}function S(_0x48e183,_0x1380c3,_0x22b72c){const _0x44e6d3=_0x48e183['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x44e6d3?parseInt(_0x44e6d3[0x1],0xa):_0x1380c3,'height':_0x44e6d3?parseInt(_0x44e6d3[0x2],0xa):_0x22b72c};}function p(_0x226b13,_0x3890eb){const _0x3c9c7d=new(_0x4df0d3())(),_0x455d8f=_0x226b13['plugins']['get']('ImageUtils'),_0x9191f4=_0x226b13['editing']['mapper']['toViewElement'](_0x3890eb),_0x3383da=_0x455d8f['findViewImgElement'](_0x9191f4),_0x8125ca=_0x226b13['editing']['view']['domConverter']['viewToDom'](_0x3383da),_0x453f37=_0x3890eb['getAttribute']('width'),_0x3b5cd3=_0x3890eb['getAttribute']('height'),_0x2696f8='image-processing';_0x226b13['editing']['view']['change'](_0x442d7a=>{_0x442d7a['addClass'](_0x2696f8,_0x9191f4),_0x442d7a['setStyle']('aspect-ratio',_0x453f37+'/'+_0x3b5cd3,_0x3383da);}),_0x3c9c7d['listenTo'](_0x8125ca,'load',()=>{_0x3c9c7d['stopListening'](_0x8125ca,'load'),_0x226b13['editing']['view']['change'](_0xba29fe=>{_0xba29fe['removeClass'](_0x2696f8,_0x9191f4),_0xba29fe['removeStyle']('aspect-ratio',_0x3383da);});});}function G(_0x885576){if(Array['isArray'](_0x885576)){const _0x4d4d9d=_0x885576['map'](G);return _0x42bccf=>_0x4d4d9d['some'](_0x4ed78e=>_0x4ed78e(_0x42bccf));}if('origin'==_0x885576){const _0x42d9db=_0x2bc079['window']['location']['origin'];return _0x21231f=>new URL(_0x21231f,_0x2bc079['document']['baseURI'])['origin']==_0x42d9db;}return'function'==typeof _0x885576?_0x885576:_0x885576 instanceof RegExp?_0x583e9d=>!(!_0x583e9d['match'](_0x885576)&&!_0x583e9d['replace'](/^https?:\/\//,'')['match'](_0x885576)):()=>!0x1;}function A(_0x553290,_0x136966){return _0x31ed08(_0x553290['target'])['includes'](_0x136966);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2eeb3f(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x80863f,_0xd623e1,_0x164c6b){super(),this['_editor']=_0x80863f,this['_editing']=_0xd623e1,this['_dialog']=_0x80863f['plugins']['get'](_0x33f5b7),this['_api']=_0xd623e1['ctxElement']['getAPI'](),this['_type']=_0x164c6b,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x5ae05f,model:_0x47a8d8}=this['_editor'],_0x275db6=_0x47a8d8['document']['selection']['getSelectedElement'](),_0x238ce5=_0x275db6&&(_0x275db6['is']('element','imageBlock')||_0x275db6['is']('element','imageInline'));this['_formView']=new x(_0x5ae05f,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x34a7ef,'title':_(_0x5ae05f,this['_type'],_0x238ce5?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x200239['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3f9a3b=>!A(_0x3f9a3b,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3faf9c}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xe32561=>{const _0x4337f3=_0x3faf9c['length'];for(const _0x41b5c0 of _0x3faf9c){const _0x1e0437=_0x41b5c0===_0x3faf9c[_0x4337f3-0x1],{cdnUrl:_0x5ed0c8,fileInfo:_0x5731a2}=_0x41b5c0;if(!_0x5ed0c8||!_0x5731a2)continue;const {width:_0x1f283e,height:_0x216e8f}=_0x5731a2['imageInfo'],_0x38c65e=S(_0x5ed0c8,_0x1f283e,_0x216e8f),_0x291b28=C(_0x5ed0c8,_0x38c65e['width']),_0x2176c7={'id':_0x5731a2['uuid'],'type':'image','attributes':{'imageDimension':_0x38c65e,..._0x291b28}};this['_insertAsset'](_0x2176c7,_0x1e0437,_0xe32561);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x61e443=>{'idle'===_0x61e443['detail']['status']&&!_0x61e443['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3fe5ec,_0x2cac0a,_0x11006b){const _0x5c9deb=this['_editor']['model']['document']['selection'],_0x1a5833=_0x5c9deb['getSelectedElement'](),_0x508d19=!(!_0x1a5833||!_0x1a5833['is']('element','imageInline'));_0x11006b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3fe5ec,_0x508d19),_0x2cac0a||_0x11006b['setSelection'](_0x5c9deb['getLastPosition']());}['_insertImage'](_0x221acf,_0x1cf26e){const _0x3b5e73=this['_editor'],{imageDimension:_0x26b165,imageFallbackUrl:_0x48e8da,imageSources:_0x2a58db}=_0x221acf['attributes'];_0x3b5e73['execute']('insertImage',{'imageType':_0x1cf26e?'imageInline':null,'source':{'uploadcareImageId':_0x221acf['id'],'src':_0x48e8da,'sources':_0x2a58db,..._0x26b165}});}}class w extends _0x40ce2d{['_editing'];['_controller']=null;static get['requires'](){return[_0x33f5b7,o];}constructor(_0x403506){super(_0x403506),this['_editing']=_0x403506['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x393b97){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x393b97);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5f50ad,..._0x52fb1c}){return _0x616d4c(_0x5f50ad,_0x52fb1c);}static['getInfo'](_0xb4c055,_0x550298){return _0x4b1fdd(_0xb4c055,_0x550298);}}class f extends _0x506e2c{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x12cbbb,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1639cd=this['editor'];if(!!!_0x1639cd['config']['get']('uploadcare'))return;_0x1639cd['plugins']['get'](_0x12cbbb)['createUploadAdapter']=_0x6eb1d4=>new k(_0x6eb1d4,_0x1639cd),_0x1639cd['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xc43382,{imageElement:_0x1cf66f,data:_0xeb4497})=>{_0x1639cd['model']['change'](_0x411ae4=>{_0x411ae4['setAttribute']('uploadcareImageId',_0xeb4497['uploadcareImageId'],_0x1cf66f);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x3c49fd,_0xff0d9c){this['loader']=_0x3c49fd,this['editor']=_0xff0d9c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3fcd39=await this['loader']['file'];return j['upload']({'file':_0x3fcd39,'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':_0x49dec9=>{_0x49dec9&&_0x49dec9['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x49dec9['value']);}})['then'](async _0x223d21=>{const {imageFallbackUrl:_0x2cba70,imageSources:_0x9da4f1}=C(_0x223d21['cdnUrl'],_0x223d21['imageInfo']['width']);return{'uploadcareImageId':_0x223d21['uuid'],'default':_0x2cba70,'sources':_0x9da4f1};})['catch'](()=>{const _0x4fe053=t('Cannot\x20upload\x20file:')+('\x20'+_0x3fcd39['name']+'.');return Promise['reject'](_0x4fe053);});}['abort'](){this['controller']['abort']();}}class o extends _0x506e2c{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x33f5b7];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3f1167){super(_0x3f1167),this['ucContextId']=_0x96132e();}['init'](){const _0x678b33=this['editor'];_0x678b33['commands']['add']('uploadcare',new w(_0x678b33));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x1ffde1=_0x2bc079['document']['querySelector']('input[uploadcare-file-input]');_0x1ffde1&&_0x1ffde1['remove']();}),async function(_0xd1abe6){const _0x4ddf3a=_0x20c1e0([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]),_0x34ebf3=0x535f8c3a,_0x308faa=0x5358f34a^_0x34ebf3,_0x5ac603=window[_0x20c1e0([0x44,0x61,0x74,0x65])][_0x20c1e0([0x6e,0x6f,0x77])](),_0x4f4acd=_0xd1abe6[_0x20c1e0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x402cfd=new window[(_0x20c1e0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f6b0e=>{_0x4f4acd[_0x20c1e0([0x6f,0x6e,0x63,0x65])](_0x20c1e0([0x72,0x65,0x61,0x64,0x79]),_0x3f6b0e);}),_0x6a3c7={[_0x20c1e0([0x6b,0x74,0x79])]:_0x20c1e0([0x45,0x43]),[_0x20c1e0([0x75,0x73,0x65])]:_0x20c1e0([0x73,0x69,0x67]),[_0x20c1e0([0x63,0x72,0x76])]:_0x20c1e0([0x50,0x2d,0x32,0x35,0x36]),[_0x20c1e0([0x78])]:_0x20c1e0([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]),[_0x20c1e0([0x79])]:_0x20c1e0([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]),[_0x20c1e0([0x61,0x6c,0x67])]:_0x20c1e0([0x45,0x53,0x32,0x35,0x36])},_0x248bff=_0x4f4acd[_0x20c1e0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x20c1e0([0x67,0x65,0x74])](_0x20c1e0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2e64ab(){let _0x15d74a,_0x4fa6b0=null,_0x10b4de=null;try{if(_0x248bff==_0x20c1e0([0x47,0x50,0x4c]))return _0x20c1e0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x15d74a=_0x239aa8(),!_0x15d74a)return _0x20c1e0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x15d74a[_0x20c1e0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x10b4de=_0x5f5409(_0x15d74a[_0x20c1e0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x15d74a[_0x20c1e0([0x6a,0x74,0x69])])),await _0xc9ee16()?_0x5eddd7()?_0x2f8b23()?_0x20c1e0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1bd16c()?(_0x15d74a[_0x20c1e0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20c1e0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4fa6b0=_0x1aa0d9(_0x20c1e0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5c08f2()):_0x20c1e0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x20c1e0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x20c1e0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x20c1e0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2f8b23(){const _0x1a4cf=[_0x20c1e0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x20c1e0([0x74,0x72,0x69,0x61,0x6c])][_0x20c1e0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15d74a[_0x20c1e0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5ac603/0x3e8:0xe10*_0x308faa;return _0x15d74a[_0x20c1e0([0x65,0x78,0x70])]<_0x1a4cf;}function _0x5eddd7(){const _0x4bac02=_0x15d74a[_0x20c1e0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4bac02&&(!!_0x4bac02[_0x20c1e0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20c1e0([0x2a]))||!!_0x4bac02[_0x20c1e0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20c1e0([0x55,0x50,0x4c,0x43])));}function _0x1bd16c(){const _0x282f34=_0x15d74a[_0x20c1e0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x282f34||0x0==_0x282f34[_0x20c1e0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3aecf5}=new URL(window[_0x20c1e0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x282f34[_0x20c1e0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3aecf5))return!0x0;const _0x4c2b3a=_0x3aecf5[_0x20c1e0([0x73,0x70,0x6c,0x69,0x74])](_0x20c1e0([0x2e]));return _0x282f34[_0x20c1e0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ede96=>_0x4ede96[_0x20c1e0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20c1e0([0x2a])))[_0x20c1e0([0x6d,0x61,0x70])](_0x25b412=>_0x25b412[_0x20c1e0([0x73,0x70,0x6c,0x69,0x74])](_0x20c1e0([0x2e])))[_0x20c1e0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a214e=>_0x1a214e[_0x20c1e0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4c2b3a[_0x20c1e0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x20c1e0([0x6d,0x61,0x70])](_0x42c86f=>Array(_0x4c2b3a[_0x20c1e0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x42c86f[_0x20c1e0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x20c1e0([0x66,0x69,0x6c,0x6c])](_0x42c86f[0x0]===_0x20c1e0([0x2a])?_0x20c1e0([0x2a]):'')[_0x20c1e0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x42c86f))[_0x20c1e0([0x73,0x6f,0x6d,0x65])](_0x51ca8e=>_0x4c2b3a[_0x20c1e0([0x65,0x76,0x65,0x72,0x79])]((_0x1d5ecb,_0x24cd34)=>_0x51ca8e[_0x24cd34]===_0x1d5ecb||_0x51ca8e[_0x24cd34]===_0x20c1e0([0x2a])));}function _0x5c08f2(){return _0x4fa6b0&&_0x10b4de?new window[(_0x20c1e0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3016aa,_0x26b89d)=>{_0x4fa6b0[_0x20c1e0([0x74,0x68,0x65,0x6e])](_0x3016aa,_0x26b89d),_0x10b4de[_0x20c1e0([0x74,0x68,0x65,0x6e])](_0x2a527d=>{_0x2a527d!=_0x20c1e0([0x56,0x61,0x6c,0x69,0x64])&&_0x3016aa(_0x2a527d);},_0x26b89d);}):_0x4fa6b0||_0x10b4de||_0x20c1e0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5f5409(_0xd8a66e,_0x1b13a1){return new window[(_0x20c1e0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11822e=>{if(_0x4f79b3())return _0x11822e(_0x20c1e0([0x56,0x61,0x6c,0x69,0x64]));_0x336937(),_0x4f4acd[_0x20c1e0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x20c1e0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4d7712=!0x1;const _0x255137=_0x96132e();function _0x1f6d99(_0x40fff6){return!!_0x40fff6&&(typeof _0x40fff6===_0x20c1e0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x40fff6===_0x20c1e0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x40fff6[_0x20c1e0([0x74,0x68,0x65,0x6e])]===_0x20c1e0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x40fff6[_0x20c1e0([0x63,0x61,0x74,0x63,0x68])]===_0x20c1e0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3afb59(_0x253ba2){_0x3d2dbd(_0x253ba2)[_0x20c1e0([0x74,0x68,0x65,0x6e])](_0x56d291=>{if(!_0x56d291||_0x56d291[_0x20c1e0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x20c1e0([0x6f,0x6b]))return _0x20c1e0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1dd2d0(_0x5c8ffd(_0x255137+_0x1b13a1))!=_0x56d291[_0x20c1e0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x20c1e0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x20c1e0([0x56,0x61,0x6c,0x69,0x64]);})[_0x20c1e0([0x74,0x68,0x65,0x6e])](_0x3033fb=>(_0x179020(),_0x3033fb),()=>{const _0xd1434=_0x3196a2();return null==_0xd1434?(_0x179020(),_0x20c1e0([0x56,0x61,0x6c,0x69,0x64])):_0x20c1e0(_0x5ac603-_0xd1434>(0x7753083a^_0x34ebf3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x20c1e0([0x74,0x68,0x65,0x6e])](_0x11822e)[_0x20c1e0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x11822e(_0x20c1e0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2ce550=0x536962ba^_0x34ebf3;function _0x179020(){const _0x58cfbf=_0x20c1e0([0x6c,0x6c,0x63,0x74,0x2d])+_0x1dd2d0(_0x5c8ffd(_0xd8a66e)),_0x47d2ba=_0x332080(_0x1dd2d0(window[_0x20c1e0([0x4d,0x61,0x74,0x68])][_0x20c1e0([0x63,0x65,0x69,0x6c])](_0x5ac603/_0x2ce550)));window[_0x20c1e0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20c1e0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58cfbf,_0x47d2ba);}function _0x3196a2(){const _0x2d75dd=_0x20c1e0([0x6c,0x6c,0x63,0x74,0x2d])+_0x1dd2d0(_0x5c8ffd(_0xd8a66e)),_0x542f7e=window[_0x20c1e0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20c1e0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d75dd);return _0x542f7e?window[_0x20c1e0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x332080(_0x542f7e),0x10)*_0x2ce550:null;}function _0x3d2dbd(_0x5be6f3){return new window[(_0x20c1e0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d7dd6,_0x44d7cc)=>{_0x5be6f3[_0x20c1e0([0x74,0x68,0x65,0x6e])](_0x4d7dd6,_0x44d7cc),window[_0x20c1e0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x44d7cc,0x535e58fa^_0x34ebf3);});}}_0x4f4acd[_0x20c1e0([0x6f,0x6e])](_0x20c1e0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1fd363,_0x8e8e19)=>{if(_0x8e8e19[0x0]!=_0xd8a66e)return _0x11822e(_0x20c1e0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x8e8e19[0x1]={..._0x8e8e19[0x1],[_0x20c1e0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x255137};},{[_0x20c1e0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20c1e0([0x68,0x69,0x67,0x68])}),_0x4f4acd[_0x20c1e0([0x6f,0x6e])](_0x20c1e0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x370513=>{_0x1f6d99(_0x370513[_0x20c1e0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4d7712=!0x0,_0x3afb59(_0x370513[_0x20c1e0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x20c1e0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20c1e0([0x6c,0x6f,0x77])}),_0x402cfd[_0x20c1e0([0x74,0x68,0x65,0x6e])](()=>{_0x4d7712||_0x11822e(_0x20c1e0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4f79b3(){return _0x4f4acd[_0x20c1e0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20c1e0([0x76,0x69,0x65,0x77])][_0x20c1e0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x20c1e0([0x61,0x75,0x74,0x6f]);}function _0x336937(){_0x4f4acd[_0x20c1e0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20c1e0([0x76,0x69,0x65,0x77])][_0x20c1e0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20c1e0([0x61,0x75,0x74,0x6f]);}}function _0x1aa0d9(_0x414c4a){const _0x36219b=[new window[(_0x20c1e0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2651bc=>setTimeout(_0x2651bc,0x5356b2f6^_0x34ebf3)),_0x402cfd[_0x20c1e0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x20c1e0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f2fa5=>{let _0xe3b41=0x0;_0x4f4acd[_0x20c1e0([0x6d,0x6f,0x64,0x65,0x6c])][_0x20c1e0([0x6f,0x6e])](_0x20c1e0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x20a292,_0x13d0bf)=>{_0x13d0bf[0x0][_0x20c1e0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xe3b41++,_0xe3b41==(0x535f89d2^_0x34ebf3)&&(_0x2f2fa5(),_0x20a292[_0x20c1e0([0x6f,0x66,0x66])]());});}))];return window[_0x20c1e0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20c1e0([0x72,0x61,0x63,0x65])](_0x36219b)[_0x20c1e0([0x74,0x68,0x65,0x6e])](()=>_0x414c4a);}async function _0x51bc79(){await _0x402cfd,_0x4f4acd[_0x20c1e0([0x6d,0x6f,0x64,0x65,0x6c])][_0x20c1e0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x30d7f3,_0x4f4acd[_0x20c1e0([0x6d,0x6f,0x64,0x65,0x6c])][_0x20c1e0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x30d7f3,_0x4f4acd[_0x20c1e0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x20c1e0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x249090(_0x159d4d){const _0x4ba50c=_0x50400f();_0x4f4acd[_0x4ba50c]=_0x20c1e0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x159d4d,_0x159d4d!=_0x20c1e0([0x56,0x61,0x6c,0x69,0x64])&&_0x51bc79();}function _0x50400f(){const _0x3ee8a2=window[_0x20c1e0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x20c1e0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x20c1e0([0x6e,0x6f,0x77])]())[_0x20c1e0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x20c1e0([0x2e]),'');let _0x4ec271=_0x20c1e0([0x68]);for(let _0x59bd5a=0x0;_0x59bd5a<_0x3ee8a2[_0x20c1e0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x59bd5a+=0x2){let _0x64dfa5=window[_0x20c1e0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ee8a2[_0x20c1e0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59bd5a,_0x59bd5a+0x2));_0x64dfa5>=_0x4ddf3a[_0x20c1e0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x64dfa5-=_0x4ddf3a[_0x20c1e0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4ec271+=_0x4ddf3a[_0x64dfa5];}return _0x4ec271;}function _0x239aa8(){const _0x5d24d7=_0x248bff[_0x20c1e0([0x73,0x70,0x6c,0x69,0x74])](_0x20c1e0([0x2e]));if(0x3!=_0x5d24d7[_0x20c1e0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x174c5b(_0x5d24d7[0x1]);function _0x174c5b(_0x85723e){const _0x375363=_0x2db548(_0x85723e);return _0x375363&&_0x2af20b()?_0x375363:null;function _0x2af20b(){const _0x47a6d6=_0x375363[_0x20c1e0([0x6a,0x74,0x69])],_0x489e44=window[_0x20c1e0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47a6d6[_0x20c1e0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47a6d6[_0x20c1e0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x460228={..._0x375363,[_0x20c1e0([0x6a,0x74,0x69])]:_0x47a6d6[_0x20c1e0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x47a6d6[_0x20c1e0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x460228[_0x20c1e0([0x76,0x63])],_0x5c8ffd(_0x460228)==_0x489e44;}}}async function _0xc9ee16(){let _0x5cb017=!0x0;try{const _0x3e24e9=_0x248bff[_0x20c1e0([0x73,0x70,0x6c,0x69,0x74])](_0x20c1e0([0x2e])),[_0x3af28a,_0x13b4ca,_0x2e0e26]=_0x3e24e9;return _0x2fb13b(_0x3af28a),await _0x4bde3f(_0x3af28a,_0x13b4ca,_0x2e0e26),_0x5cb017;}catch{return!0x1;}function _0x2fb13b(_0xf7bc5e){const _0x45122f=_0x2db548(_0xf7bc5e);_0x45122f&&_0x45122f[_0x20c1e0([0x61,0x6c,0x67])]==_0x20c1e0([0x45,0x53,0x32,0x35,0x36])||(_0x5cb017=!0x1);}async function _0x4bde3f(_0x320d11,_0x4907bc,_0x1ba684){const _0x3ebeaa=window[_0x20c1e0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x20c1e0([0x66,0x72,0x6f,0x6d])](_0x10c202(_0x1ba684),_0x380842=>_0x380842[_0x20c1e0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x28d9d1=new window[(_0x20c1e0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x20c1e0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x320d11+_0x20c1e0([0x2e])+_0x4907bc),_0x9c158=window[_0x20c1e0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x20c1e0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x9c158)return;const _0x4d4d88=await _0x9c158[_0x20c1e0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x20c1e0([0x6a,0x77,0x6b]),_0x6a3c7,{[_0x20c1e0([0x6e,0x61,0x6d,0x65])]:_0x20c1e0([0x45,0x43,0x44,0x53,0x41]),[_0x20c1e0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x20c1e0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x20c1e0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x9c158[_0x20c1e0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x20c1e0([0x6e,0x61,0x6d,0x65])]:_0x20c1e0([0x45,0x43,0x44,0x53,0x41]),[_0x20c1e0([0x68,0x61,0x73,0x68])]:{[_0x20c1e0([0x6e,0x61,0x6d,0x65])]:_0x20c1e0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4d4d88,_0x3ebeaa,_0x28d9d1)||(_0x5cb017=!0x1);}}function _0x2db548(_0xc8a58c){return _0xc8a58c[_0x20c1e0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x20c1e0([0x65,0x79]))?JSON[_0x20c1e0([0x70,0x61,0x72,0x73,0x65])](_0x10c202(_0xc8a58c)):null;}function _0x10c202(_0xc95f41){return window[_0x20c1e0([0x61,0x74,0x6f,0x62])](_0xc95f41[_0x20c1e0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x20c1e0([0x2b]))[_0x20c1e0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x20c1e0([0x2f])));}function _0x5c8ffd(_0x46e674){let _0x571e8d=0x1505;function _0x350c7c(_0x20d939){for(let _0x471057=0x0;_0x471057<_0x20d939[_0x20c1e0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x471057++){const _0x54b9b8=_0x20d939[_0x20c1e0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x471057);_0x571e8d=(_0x571e8d<<0x5)+_0x571e8d+_0x54b9b8,_0x571e8d&=_0x571e8d;}}function _0x51adc7(_0x1d48a0){Array[_0x20c1e0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1d48a0)?_0x1d48a0[_0x20c1e0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x51adc7):_0x1d48a0&&typeof _0x1d48a0==_0x20c1e0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x20c1e0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1d48a0)[_0x20c1e0([0x73,0x6f,0x72,0x74])]()[_0x20c1e0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b28a6,_0x106a35])=>{_0x350c7c(_0x5b28a6),_0x51adc7(_0x106a35);}):_0x350c7c(window[_0x20c1e0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1d48a0));}return _0x51adc7(_0x46e674),_0x571e8d>>>0x0;}function _0x1dd2d0(_0x292775){return _0x292775[_0x20c1e0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x20c1e0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x20c1e0([0x30]));}function _0x332080(_0x27ae51){return _0x27ae51[_0x20c1e0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x20c1e0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x20c1e0([0x6a,0x6f,0x69,0x6e])]('');}function _0x30d7f3(){}function _0x20c1e0(_0xb31da7){return _0xb31da7['map'](_0x2ac10b=>String['fromCharCode'](_0x2ac10b))['join']('');}_0x249090(await _0x2e64ab());}(this);}['_initSchema'](){const _0x4ebed3=this['editor']['model']['schema'];_0x4ebed3['isRegistered']('imageBlock')&&_0x4ebed3['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4ebed3['isRegistered']('imageInline')&&_0x4ebed3['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2a4960=this['editor'];_0x2a4960['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2a4960['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5b8769=>_0x5b8769['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x221739=_0x2a4960['commands']['get']('replaceImageSource');_0x221739&&this['listenTo'](_0x221739,'cleanupImage',(_0x3b0e16,[_0x59659b,_0x3dfd90])=>{_0x59659b['removeAttribute']('uploadcareImageId',_0x3dfd90);});}['_initConfig'](){const _0x127c94=this['editor']['config']['get']('uploadcare.uploader')||{},_0x59de76=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4561dd(_0x2bc079['document'],'uc-config',{..._0x127c94,'pubkey':_0x59de76,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\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'}),this['_configElement']['iconHrefResolver']=_0x1be806=>{if('closeMax'==_0x1be806)return'#uc-icon-arrow-down';},_0x2bc079['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4561dd(_0x2bc079['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x2bc079['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1cffe0=this['editor']['commands']['get']('insertImage');_0x1cffe0&&this['listenTo'](_0x1cffe0,'execute',()=>{const _0xe385a8=this['editor']['model']['document']['selection']['getSelectedElement']();_0xe385a8&&_0xe385a8['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xe385a8);});});const _0x53ee9b=this['editor']['commands']['get']('uploadcareImageReplace');_0x53ee9b&&this['listenTo'](_0x53ee9b,'execute',()=>{const _0x2b7b29=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2b7b29&&_0x2b7b29['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2b7b29);});});}}class tt extends _0x506e2c{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x38bff3){super(_0x38bff3),_0x38bff3['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x58df0b['defineComponents'](_0x58df0b),this['_defineLocale']();}['_defineLocale'](){const _0x3fcf58=this['editor']['config']['get']('uploadcare.locale'),_0x38d2a3=this['editor']['locale']['contentLanguage'];_0x3fcf58&&_0x58df0b['defineLocale'](_0x38d2a3,_0x3fcf58);}}class ii extends _0x2af9c1{constructor(_0x551ad2){super(_0x551ad2);const t=_0x551ad2['t'],_0x2b1c86=this['bindTemplate'],_0x17302e=new _0x511d6e();_0x17302e['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':[_0x17302e,{'text':_0x2b1c86['to']('imageUploadProgress',_0x343b81=>t('Loading\x20image...')+'\x20('+(_0x343b81||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'}]}]}]});}}class ti extends _0x2af9c1{constructor(_0x155bb8){super(_0x155bb8);const t=_0x155bb8['t'];this['set']('errorType',null);const _0x193311=new _0x207fe5(_0x155bb8);_0x193311['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x193311['withText']=!0x0,_0x193311['class']='ck-button-action',_0x193311['on']('execute',()=>{this['fire']('retry');}),_0x193311['bind']('isVisible')['to'](this,'errorType',_0x45de65=>'NotFound'!==_0x45de65);const _0x128c3c=new _0x5c35a9();_0x128c3c['content']=_0x573a7c,_0x128c3c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x25fd90=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':[_0x128c3c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x25fd90['to']('errorType',_0xb342f6=>t('NotFound'!==_0xb342f6?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x193311]},{'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'}]}]}]});}}class ei extends _0x2af9c1{constructor(_0x84d094,_0x14ab3e){super(_0x84d094);const _0x4e64d1=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x14ab3e,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4e64d1['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1586be,_0x210a58,_0x88ace2){super(_0x1586be),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1586be),this['_errorView']=new ti(_0x1586be),this['_editingView']=new ei(_0x1586be,_0x88ace2),this['_focusableView']=new _0x2af9c1(_0x1586be),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x210a58),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x38e99c=>{this['_addUploadcareImageEditorListeners'](_0x38e99c);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x3433ad,_0x16148d){const _0x2b1b57='uc-cloud-image-editor',_0x378155=_0x3433ad['querySelector'](_0x2b1b57);if(_0x378155)return _0x16148d(_0x378155);const _0x4896d9=new MutationObserver(_0x2f6177=>{const _0x3a6657=_0x2f6177['filter'](_0x46ef65=>_0x46ef65['target']===_0x3433ad&&_0x46ef65['addedNodes']['length']>0x0&&_0x46ef65['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2b1b57);_0x3a6657['length']&&(_0x4896d9['disconnect'](),_0x16148d(_0x3a6657[0x0]['addedNodes'][0x0]));});_0x4896d9['observe'](_0x3433ad,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x548cf0){_0x548cf0['addEventListener']('apply',_0x20419e=>{this['fire']('apply',{'imageSrc':_0x20419e['detail']['cdnUrl']});}),_0x548cf0['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2eeb3f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3ffe11,_0x3638b3,_0x5327cc){super(),this['_editor']=_0x3ffe11,this['_dialog']=_0x3638b3,this['_imageElement']=_0x5327cc,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 _0x12be23=this['_imageElement'],_0x1ea633=_0x12be23['getAttribute']('uploadcareImageId'),_0xe877a=_0x12be23['getAttribute']('src');if(_0x1ea633)await this['_loadImageInfo'](_0x1ea633,_0xe877a);else{if(this['_imageCache']['has'](_0xe877a)){const _0x1eb807=this['_imageCache']['get'](_0xe877a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1eb807['url'],this['imageDimension']=_0x1eb807['dimension'],this['imageId']=_0x1eb807['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x38f42c}=this['_editor'],t=_0x38f42c['t'],_0x262e9f=new X(_0x38f42c,this['imageStatus'],this['_attributes']);_0x262e9f['bind']('status')['to'](this,'imageStatus'),_0x262e9f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x262e9f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x262e9f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x262e9f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1864b1,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x262e9f,'position':_0x200239['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x262e9f['focus']();},'onHide':()=>{_0x262e9f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x132db9=>!A(_0x132db9,_0x262e9f['element'])}});}['_loadImageInfo'](_0x2711f1,_0x1b3188){return j['getInfo'](_0x2711f1,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x4c2572=>{const {width:_0x5601c2,height:_0x369894}=_0x4c2572['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1b3188,this['imageDimension']={'width':_0x5601c2,'height':_0x369894},this['imageId']=_0x2711f1;})['catch'](_0x323f03=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x323f03['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3b02e0,_0x4fd03a){return this['_getImageAsFile'](_0x3b02e0)['then'](_0x1a805a=>j['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':_0x4fd03a['signal'],'file':_0x1a805a,'onProgress':_0x4c7d0a=>{_0x4c7d0a&&_0x4c7d0a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4c7d0a['value']));}}))['then'](_0x2d9e8c=>{const {width:_0x1af33e,height:_0x590f11}=_0x2d9e8c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2d9e8c['cdnUrl'],this['imageDimension']={'width':_0x1af33e,'height':_0x590f11},this['imageId']=_0x2d9e8c['uuid'],this['imageUploadProgress']=null;const _0x461910=_0x3b02e0['getAttribute']('src');this['_imageCache']['set'](_0x461910,{'id':_0x2d9e8c['uuid'],'url':_0x2d9e8c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x30a0d5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x30a0d5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1f4323,_0x1506a3){_0x1f4323['on']('apply',(_0x41c4e2,_0x507ac8)=>{this['_replaceImage'](_0x1506a3,_0x507ac8['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1f4323['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1f4323['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x52c64e,_0x4c5890,_0x5ec0a9){const _0x2788d8=this['_editor'],{width:_0x84345a,height:_0x2069c9}=S(_0x4c5890,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x98637c,imageSources:_0x216546}=C(_0x4c5890,_0x84345a);_0x2788d8['model']['change'](_0x1bcaf4=>{if('$graveyard'===_0x52c64e['root']['rootName']){_0x2788d8['execute']('insertImage',{'imageType':_0x52c64e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x52c64e['getAttributes']()),'uploadcareImageId':_0x5ec0a9,'src':_0x98637c,'sources':_0x216546,'width':_0x84345a,'height':_0x2069c9}});const _0x41f1c7=_0x52c64e['getChildren']();_0x52c64e=_0x2788d8['model']['document']['selection']['getSelectedElement']();for(const _0x131230 of _0x41f1c7)_0x1bcaf4['append'](_0x1bcaf4['cloneElement'](_0x131230),_0x52c64e);}else _0x1bcaf4['setSelection'](_0x52c64e,'on'),_0x2788d8['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x52c64e['getAttributes']()),'uploadcareImageId':_0x5ec0a9,'src':_0x98637c,'sources':_0x216546,'width':_0x84345a,'height':_0x2069c9},_0x52c64e);_0x1bcaf4['setSelection'](_0x52c64e,'on');});}async['_getImageAsFile'](_0x4efba1){const _0x2e7934=_0x2bc079['window'],_0x37ac03=_0x2bc079['document']['location']['href'],_0x383327=new _0x2e7934['URL'](_0x4efba1['getAttribute']('src'),_0x37ac03);if('data:'===_0x383327['protocol']){const _0x19cdfb=_0x383327['href']['split'](','),_0x5a9647=_0x19cdfb[0x0]['match'](/:(.*?);/)[0x1],_0x2097e6=_0x5a9647['split']('/')[0x1],_0x3bf5c=_0x2e7934['atob'](_0x19cdfb[_0x19cdfb['length']-0x1]);let _0xcd36c9=_0x3bf5c['length'];const _0x485c56=new _0x2e7934['Uint8Array'](_0xcd36c9);for(;_0xcd36c9--;)_0x485c56[_0xcd36c9]=_0x3bf5c['charCodeAt'](_0xcd36c9);return new _0x2e7934['File']([_0x485c56],'image.'+_0x2097e6,{'type':_0x5a9647});}const _0x9c2a5b=_0x383327['href']['split']('/'),_0x282fe=_0x9c2a5b[_0x9c2a5b['length']-0x1],_0x442d0b=_0x282fe['split']('.')[0x1];return _0x2e7934['fetch'](_0x383327['href'])['then'](_0x3eb86a=>_0x3eb86a['clone']()['blob']())['then'](_0x527d3e=>new _0x2e7934['File']([_0x527d3e],_0x282fe,{'type':'image/'+_0x442d0b}));}}class O extends _0x40ce2d{['imageEditController'];static get['requires'](){return[_0x33f5b7];}['_isEditable'];constructor(_0x1d1fb2){super(_0x1d1fb2),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3828d3){const _0x33527b=G(_0x3828d3);return _0x295563=>!(!_0x295563||!_0x295563['is']('element','imageBlock')&&!_0x295563['is']('element','imageInline'))&&(!!_0x295563['hasAttribute']('uploadcareImageId')||!!_0x295563['hasAttribute']('src')&&_0x33527b(_0x295563['getAttribute']('src')));}(_0x1d1fb2['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3ca85b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3ca85b);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x440439=this['editor']['model']['document']['selection']['getSelectedElement']();_0x440439&&(_0x440439['is']('element','imageBlock')||_0x440439['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x33f5b7),_0x440439),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x40ce2d{['refresh'](){const _0x187c5c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x187c5c&&(_0x187c5c['is']('element','imageBlock')||_0x187c5c['is']('element','imageInline')));}['execute'](_0x43c893){const _0x415b90=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x57a44d=>{_0x57a44d['setAttributes'](_0x43c893,_0x415b90),_0x57a44d['removeAttribute']('srcset',_0x415b90),_0x57a44d['removeAttribute']('sizes',_0x415b90);});}}class m extends _0x506e2c{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x28fc60,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x461938}=this;_0x461938['commands']['add']('uploadcareImageEdit',new O(_0x461938)),_0x461938['commands']['add']('uploadcareImageReplace',new R(_0x461938));}}class g extends _0x506e2c{['_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 _0x1c68ea=this['editor'];_0x1c68ea['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2868ad=>{const _0x39b77c=_0x1c68ea['commands']['get']('uploadcareImageEdit'),_0x18fd36=new _0x207fe5(_0x2868ad),t=_0x2868ad['t'];return _0x18fd36['set']({'icon':_0x1864b1,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x18fd36['bind']('isEnabled')['to'](_0x39b77c),_0x18fd36['bind']('isOn')['to'](_0x39b77c,'isActive'),this['listenTo'](_0x18fd36,'execute',()=>{_0x1c68ea['execute']('uploadcareImageEdit'),_0x1c68ea['editing']['view']['focus']();}),_0x18fd36;}),this['_initConfig']();}['_initConfig'](){const _0x316be4=_0x4561dd(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x316be4),this['listenTo'](this['editor'],'destroy',()=>{_0x316be4['remove']();});}}class et extends _0x506e2c{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
|
package/dist/translations/af.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x40338a=>0x1!=_0x40338a}};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4d99ea=>{const {af:{dictionary:_0x18c07e,getPluralForm:_0x3fb293}}={'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x35ab59=>0x1!=_0x35ab59}};_0x4d99ea['af']||={'dictionary':{},'getPluralForm':null},_0x4d99ea['af']['dictionary']=Object['assign'](_0x4d99ea['af']['dictionary'],_0x18c07e),_0x4d99ea['af']['getPluralForm']=_0x3fb293;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
|
package/dist/translations/ar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':
|
|
23
|
+
export default{'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':_0x3cf67c=>0x0==_0x3cf67c?0x0:0x1==_0x3cf67c?0x1:0x2==_0x3cf67c?0x2:_0x3cf67c%0x64>=0x3&&_0x3cf67c%0x64<=0xa?0x3:_0x3cf67c%0x64>=0xb?0x4:0x5}};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1ed521=>{const {ar:{dictionary:_0x3b5d37,getPluralForm:_0x3c2273}}={'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':_0x35ccdc=>0x0==_0x35ccdc?0x0:0x1==_0x35ccdc?0x1:0x2==_0x35ccdc?0x2:_0x35ccdc%0x64>=0x3&&_0x35ccdc%0x64<=0xa?0x3:_0x35ccdc%0x64>=0xb?0x4:0x5}};_0x1ed521['ar']||={'dictionary':{},'getPluralForm':null},_0x1ed521['ar']['dictionary']=Object['assign'](_0x1ed521['ar']['dictionary'],_0x3b5d37),_0x1ed521['ar']['getPluralForm']=_0x3c2273;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
|
package/dist/translations/ast.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x174634=>0x1!=_0x174634}};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x82724c=>{const {ast:{dictionary:_0x452770,getPluralForm:_0x44ef90}}={'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x53ad4d=>0x1!=_0x53ad4d}};_0x82724c['ast']||={'dictionary':{},'getPluralForm':null},_0x82724c['ast']['dictionary']=Object['assign'](_0x82724c['ast']['dictionary'],_0x452770),_0x82724c['ast']['getPluralForm']=_0x44ef90;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
|
package/dist/translations/az.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x3586f3=>0x1!=_0x3586f3}};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4a8173=>{const {az:{dictionary:_0x36c368,getPluralForm:_0x183613}}={'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x918b1a=>0x1!=_0x918b1a}};_0x4a8173['az']||={'dictionary':{},'getPluralForm':null},_0x4a8173['az']['dictionary']=Object['assign'](_0x4a8173['az']['dictionary'],_0x36c368),_0x4a8173['az']['getPluralForm']=_0x183613;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
|
package/dist/translations/be.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x2b8f14=>_0x2b8f14%0xa==0x1&&_0x2b8f14%0x64!=0xb?0x0:_0x2b8f14%0xa>=0x2&&_0x2b8f14%0xa<=0x4&&(_0x2b8f14%0x64<0xa||_0x2b8f14%0x64>=0x14)?0x1:0x2}};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x35f526=>{const {be:{dictionary:_0x30bcbd,getPluralForm:_0x19648f}}={'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x2f30dd=>_0x2f30dd%0xa==0x1&&_0x2f30dd%0x64!=0xb?0x0:_0x2f30dd%0xa>=0x2&&_0x2f30dd%0xa<=0x4&&(_0x2f30dd%0x64<0xa||_0x2f30dd%0x64>=0x14)?0x1:0x2}};_0x35f526['be']||={'dictionary':{},'getPluralForm':null},_0x35f526['be']['dictionary']=Object['assign'](_0x35f526['be']['dictionary'],_0x30bcbd),_0x35f526['be']['getPluralForm']=_0x19648f;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
|