@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20260123.0 → 0.0.0-nightly-20260124.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/translations/af.js +1 -0
- package/build/translations/ar.js +1 -0
- package/build/translations/ast.js +1 -0
- package/build/translations/az.js +1 -0
- package/build/translations/be.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/bs.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de-ch.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/en-gb.js +1 -0
- package/build/translations/eo.js +1 -0
- package/build/translations/es-co.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/eu.js +1 -0
- package/build/translations/fa.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/gu.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/hy.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/jv.js +1 -0
- package/build/translations/kk.js +1 -0
- package/build/translations/km.js +1 -0
- package/build/translations/kn.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/ku.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nb.js +1 -0
- package/build/translations/ne.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/oc.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/si.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sl.js +1 -0
- package/build/translations/sq.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/ti.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/tt.js +1 -0
- package/build/translations/ug.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/ur.js +1 -0
- package/build/translations/uz.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/build/uploadcare.js +5 -0
- package/ckeditor5-metadata.json +2 -2
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/contexts.json +24 -0
- package/lang/translations/af.po +100 -0
- package/lang/translations/ar.po +100 -0
- package/lang/translations/ast.po +100 -0
- package/lang/translations/az.po +100 -0
- package/lang/translations/be.po +100 -0
- package/lang/translations/bg.po +100 -0
- package/lang/translations/bn.po +100 -0
- package/lang/translations/bs.po +100 -0
- package/lang/translations/ca.po +100 -0
- package/lang/translations/cs.po +100 -0
- package/lang/translations/da.po +100 -0
- package/lang/translations/de-ch.po +100 -0
- package/lang/translations/de.po +100 -0
- package/lang/translations/el.po +100 -0
- package/lang/translations/en-au.po +100 -0
- package/lang/translations/en-gb.po +100 -0
- package/lang/translations/en.po +100 -0
- package/lang/translations/eo.po +100 -0
- package/lang/translations/es-co.po +100 -0
- package/lang/translations/es.po +100 -0
- package/lang/translations/et.po +100 -0
- package/lang/translations/eu.po +100 -0
- package/lang/translations/fa.po +100 -0
- package/lang/translations/fi.po +100 -0
- package/lang/translations/fr.po +100 -0
- package/lang/translations/gl.po +100 -0
- package/lang/translations/gu.po +100 -0
- package/lang/translations/he.po +100 -0
- package/lang/translations/hi.po +100 -0
- package/lang/translations/hr.po +100 -0
- package/lang/translations/hu.po +100 -0
- package/lang/translations/hy.po +100 -0
- package/lang/translations/id.po +100 -0
- package/lang/translations/it.po +100 -0
- package/lang/translations/ja.po +100 -0
- package/lang/translations/jv.po +100 -0
- package/lang/translations/kk.po +100 -0
- package/lang/translations/km.po +100 -0
- package/lang/translations/kn.po +100 -0
- package/lang/translations/ko.po +100 -0
- package/lang/translations/ku.po +100 -0
- package/lang/translations/lt.po +100 -0
- package/lang/translations/lv.po +100 -0
- package/lang/translations/ms.po +100 -0
- package/lang/translations/nb.po +100 -0
- package/lang/translations/ne.po +100 -0
- package/lang/translations/nl.po +100 -0
- package/lang/translations/no.po +100 -0
- package/lang/translations/oc.po +100 -0
- package/lang/translations/pl.po +100 -0
- package/lang/translations/pt-br.po +100 -0
- package/lang/translations/pt.po +100 -0
- package/lang/translations/ro.po +100 -0
- package/lang/translations/ru.po +100 -0
- package/lang/translations/si.po +100 -0
- package/lang/translations/sk.po +100 -0
- package/lang/translations/sl.po +100 -0
- package/lang/translations/sq.po +100 -0
- package/lang/translations/sr-latn.po +100 -0
- package/lang/translations/sr.po +100 -0
- package/lang/translations/sv.po +100 -0
- package/lang/translations/th.po +100 -0
- package/lang/translations/ti.po +100 -0
- package/lang/translations/tk.po +100 -0
- package/lang/translations/tr.po +100 -0
- package/lang/translations/tt.po +100 -0
- package/lang/translations/ug.po +100 -0
- package/lang/translations/uk.po +100 -0
- package/lang/translations/ur.po +100 -0
- package/lang/translations/uz.po +100 -0
- package/lang/translations/vi.po +100 -0
- package/lang/translations/zh-cn.po +100 -0
- package/lang/translations/zh.po +100 -0
- package/package.json +46 -23
- package/src/augmentation.js +23 -0
- package/src/index.js +23 -0
- package/{dist → src}/ui/uploadcarecontroller.d.ts +3 -3
- package/src/ui/uploadcarecontroller.js +24 -0
- package/{dist → src}/ui/uploadcareformview.d.ts +1 -1
- package/src/ui/uploadcareformview.js +23 -0
- package/{dist → src}/uploadcare.d.ts +1 -1
- package/src/uploadcare.js +23 -0
- package/{dist → src}/uploadcarecommand.d.ts +2 -2
- package/src/uploadcarecommand.js +23 -0
- package/{dist → src}/uploadcareconfig.d.ts +1 -1
- package/src/uploadcareconfig.js +23 -0
- package/{dist → src}/uploadcareediting.d.ts +2 -2
- package/src/uploadcareediting.js +23 -0
- package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditcontroller.d.ts +5 -5
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +24 -0
- package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformeditingview.d.ts +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +23 -0
- package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +23 -0
- package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformloadingview.d.ts +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +23 -0
- package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformview.d.ts +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +23 -0
- package/{dist → src}/uploadcareimageedit/uploadcareimageeditcommand.d.ts +2 -2
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +23 -0
- package/{dist → src}/uploadcareimageedit/uploadcareimageeditediting.d.ts +2 -2
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +23 -0
- package/{dist → src}/uploadcareimageedit/uploadcareimageeditui.d.ts +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +23 -0
- package/{dist → src}/uploadcareimageedit/uploadcareimagereplacecommand.d.ts +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +23 -0
- package/{dist → src}/uploadcareimageedit.d.ts +1 -1
- package/src/uploadcareimageedit.js +23 -0
- package/{dist → src}/uploadcareui.d.ts +1 -1
- package/src/uploadcareui.js +23 -0
- package/{dist → src}/uploadcareuploadadapter.d.ts +2 -2
- package/src/uploadcareuploadadapter.js +23 -0
- package/src/utils/common-translations.js +23 -0
- package/{dist → src}/utils/dialogfocusmanagerview.d.ts +2 -2
- package/src/utils/dialogfocusmanagerview.js +23 -0
- package/src/utils/editingutils.js +23 -0
- package/src/utils/isancestor.js +23 -0
- package/src/utils/uploadutils.js +23 -0
- package/theme/uploadcare-form.css +201 -0
- package/theme/uploadcare-theme.css +20 -0
- package/theme/uploadcareimageedit.css +64 -0
- /package/{dist → src}/augmentation.d.ts +0 -0
- /package/{dist → src}/index.d.ts +0 -0
- /package/{dist → src}/utils/common-translations.d.ts +0 -0
- /package/{dist → src}/utils/editingutils.d.ts +0 -0
- /package/{dist → src}/utils/isancestor.d.ts +0 -0
- /package/{dist → src}/utils/uploadutils.d.ts +0 -0
package/ckeditor5-metadata.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"className": "Uploadcare",
|
|
6
6
|
"description": "Allows inserting images into the rich-text editor content and to the Uploadcare cloud.",
|
|
7
7
|
"docs": "",
|
|
8
|
-
"path": "src/uploadcare.
|
|
8
|
+
"path": "src/uploadcare.js",
|
|
9
9
|
"requires": [
|
|
10
10
|
[
|
|
11
11
|
"ImageBlock",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"className": "UploadcareImageEdit",
|
|
32
32
|
"description": "Allows editing images.",
|
|
33
33
|
"docs": "",
|
|
34
|
-
"path": "src/uploadcareimageedit.
|
|
34
|
+
"path": "src/uploadcareimageedit.js",
|
|
35
35
|
"requires": [
|
|
36
36
|
"Uploadcare"
|
|
37
37
|
],
|
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x241860,Command as _0x5980df}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x56b118,IconGooglePhotos as _0x28a282,IconGoogleDrive as _0x346120,IconFacebook as _0x40bfe7,IconDropbox as _0x2fe8b2,IconUploadcareLink as _0x50a565,IconUploadcareImageUpload as _0x865cf3,IconError as _0x41012d,IconUploadcareImageEdit as _0x182a19}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x261f0d,MenuBarMenuListItemButtonView as _0x297525,View as _0x3f8953,FocusCycler as _0x28ac56,Dialog as _0x1814e4,DialogViewPosition as _0x1bf303,SpinnerView as _0x14287f,IconView as _0x22bbeb,Notification as _0x5107b8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x16d64c,DomEmitterMixin as _0x3fe8f8,global as _0xca5948,getAncestors as _0x417cbe,ObservableMixin as _0xcab798,uid as _0x594f4b,createElement as _0x224752}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x336a6a}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x277534,info as _0x3e696}from'@uploadcare/upload-client';import*as _0x2e6e5a from'@uploadcare/file-uploader';var S=function(_0xbb1ca2){return _0xbb1ca2['Local']='local',_0xbb1ca2['URL']='url',_0xbb1ca2['Dropbox']='dropbox',_0xbb1ca2['GDrive']='gdrive',_0xbb1ca2['Facebook']='facebook',_0xbb1ca2['GPhotos']='gphotos',_0xbb1ca2['OneDrive']='onedrive',_0xbb1ca2;}({});function T(_0x37fd25,_0x20f1aa,_0x38003a){const t=_0x37fd25['t'],_0x19ffc4=_0x37fd25['t'];switch(_0x20f1aa){case S['Local']:return{'text':_0x19ffc4('Insert'===_0x38003a?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x19ffc4('From\x20computer')};case S['URL']:return{'text':'Insert'===_0x38003a?_0x19ffc4('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x19ffc4('Via\x20URL')};case S['Dropbox']:return{'text':t('Insert'===_0x38003a?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case S['Facebook']:return{'text':t('Insert'===_0x38003a?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case S['GDrive']:return{'text':t('Insert'===_0x38003a?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case S['GPhotos']:return{'text':t('Insert'===_0x38003a?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case S['OneDrive']:return{'text':t('Insert'===_0x38003a?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x20f1aa;}}class A extends _0x241860{['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 _0x5f3f5c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x439b8c;for(const _0x7e6aa3 in _0x5f3f5c){const _0x3374d3=_0x7e6aa3,_0x33480b=_0x5f3f5c[_0x3374d3];if('uploadcareLicenseKeyValid'==_0x33480b||'uploadcareLicenseKeyInvalid'==_0x33480b||'uploadcareLicenseKeyExpired'==_0x33480b||'uploadcareLicenseKeyDomainLimit'==_0x33480b||'uploadcareLicenseKeyNotAllowed'==_0x33480b||'uploadcareLicenseKeyEvaluationLimit'==_0x33480b||'uploadcareLicenseKeyUsageLimit'==_0x33480b){delete _0x5f3f5c[_0x3374d3],_0x439b8c=_0x33480b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x439b8c&&_0x5f3f5c['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x439b8c&&_0x5f3f5c['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x439b8c&&_0x5f3f5c['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x439b8c&&_0x5f3f5c['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x439b8c&&_0x5f3f5c['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x439b8c&&_0x5f3f5c['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2c6dc7}=this,_0x37ab8a=_0x2c6dc7['commands']['get']('uploadcare');if(!_0x37ab8a)return;const _0x321f14=this['_normalizeConfigSourceList'](_0x2c6dc7['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2fbde4,_0x1ec259)=>{const _0x378233=this['_getIntegrationKey'](_0x1ec259['type']);return _0x2fbde4[_0x378233]||(_0x2fbde4[_0x378233]=[]),_0x2fbde4[_0x378233]['push'](_0x1ec259),_0x2fbde4;},{});_0x2c6dc7['plugins']['has']('ImageInsertUI')&&_0x2c6dc7['commands']['get']('uploadcare')&&Object['entries'](_0x321f14)['forEach'](([_0x6ecfe1,_0x5a78ca])=>{_0x2c6dc7['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x6ecfe1,'observable':()=>_0x37ab8a,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5a78ca),'formViewCreator':()=>this['_createDropdownButtons'](_0x5a78ca),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5a78ca),'override':'assetManager'!==_0x6ecfe1});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x11e8a6){const {locale:_0x50be12}=this['editor'];return _0x11e8a6['map'](_0x5818fd=>{const _0x10f7a7=T(_0x50be12,_0x5818fd,'Insert');switch(_0x5818fd){case S['Local']:return{'icon':_0x865cf3,'type':S['Local'],..._0x10f7a7};case S['URL']:return{'icon':_0x50a565,'type':S['URL'],..._0x10f7a7};case S['Dropbox']:return{'icon':_0x2fe8b2,'type':S['Dropbox'],..._0x10f7a7};case S['Facebook']:return{'icon':_0x40bfe7,'type':S['Facebook'],..._0x10f7a7};case S['GDrive']:return{'icon':_0x346120,'type':S['GDrive'],..._0x10f7a7};case S['GPhotos']:return{'icon':_0x28a282,'type':S['GPhotos'],..._0x10f7a7};case S['OneDrive']:return{'icon':_0x56b118,'type':S['OneDrive'],..._0x10f7a7};}});}['_getIntegrationKey'](_0x16c60f){switch(_0x16c60f){case S['Local']:return'upload';case S['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x45032a,_0x223d09){const _0x37ab8c=this['editor'],_0xcae66d=new _0x45032a(_0x37ab8c['locale']),_0x131e79=_0x37ab8c['commands']['get']('uploadcare');return _0xcae66d['bind']('isEnabled')['to'](_0x131e79),_0xcae66d['on']('execute',()=>{_0x131e79['execute'](_0x223d09);}),_0xcae66d;}['_createToolbarButton'](_0x249c0d){const {locale:_0x12bb1b}=this['editor'],_0x35b8cb=this['editor']['plugins']['get']('ImageInsertUI'),_0x26c45e=_0x249c0d[0x0],_0x1d7b12=this['_createButton'](_0x261f0d,_0x26c45e['type']);return _0x1d7b12['icon']=_0x26c45e['icon'],_0x1d7b12['bind']('label')['to'](_0x35b8cb,'isImageSelected',_0x2928e4=>T(_0x12bb1b,_0x26c45e['type'],_0x2928e4?'Replace':'Insert')['text']),_0x1d7b12['tooltip']=!0x0,_0x1d7b12;}['_createDropdownButtons'](_0x383cd9){const {locale:_0x37faaf}=this['editor'],_0x31da71=this['editor']['plugins']['get']('ImageInsertUI');return _0x383cd9['map'](_0x4567d3=>{const _0x1ea454=this['_createButton'](_0x261f0d,_0x4567d3['type']);return _0x1ea454['withText']=!0x0,_0x1ea454['icon']=_0x4567d3['icon'],_0x1ea454['bind']('label')['to'](_0x31da71,'isImageSelected',_0x2ec670=>T(_0x37faaf,_0x4567d3['type'],_0x2ec670?'Replace':'Insert')['text']),_0x1ea454;});}['_createMenuBarButtons'](_0x22466b){return _0x22466b['map'](_0x9df313=>{const _0x219c71=this['_createButton'](_0x297525,_0x9df313['type']);return _0x219c71['icon']=_0x9df313['icon'],_0x219c71['label']=_0x9df313['shortText'],_0x219c71;});}}class K extends _0x3f8953{['focusTracker'];['focusCycler'];constructor(_0x20cfc3){super(_0x20cfc3),this['focusTracker']=new _0x16d64c(),this['focusCycler']=new _0x28ac56({'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 O extends K{constructor(_0x290538,_0x4025ed){super(_0x290538),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-'+_0x4025ed}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function D(_0x2a959a,_0x3855d6){const _0x53dff1=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x273536=>_0x273536<=_0x3855d6)['map'](_0x1ed43d=>_0x2a959a['replace'](/\/$/,'')+'/-/resize/'+_0x1ed43d+'x/\x20'+_0x1ed43d+'w');return{'imageFallbackUrl':_0x2a959a,'imageSources':[{'srcset':_0x53dff1['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3855d6+'px)\x20100vw,\x20'+_0x3855d6+'px','type':'image/webp'}]};}function F(_0x421547,_0x464e85,_0x556cbc){const _0x51c5ac=_0x421547['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x51c5ac?parseInt(_0x51c5ac[0x1],0xa):_0x464e85,'height':_0x51c5ac?parseInt(_0x51c5ac[0x2],0xa):_0x556cbc};}function $(_0x12b653,_0x3cd668){const _0x1d09fb=new(_0x3fe8f8())(),_0x5871a1=_0x12b653['plugins']['get']('ImageUtils'),_0x31826f=_0x12b653['editing']['mapper']['toViewElement'](_0x3cd668),_0x30a7f2=_0x5871a1['findViewImgElement'](_0x31826f),_0x5df969=_0x12b653['editing']['view']['domConverter']['viewToDom'](_0x30a7f2),_0x3f88d5=_0x3cd668['getAttribute']('width'),_0xa7968=_0x3cd668['getAttribute']('height'),_0x5020d8='image-processing';_0x12b653['editing']['view']['change'](_0x474837=>{_0x474837['addClass'](_0x5020d8,_0x31826f),_0x474837['setStyle']('aspect-ratio',_0x3f88d5+'/'+_0xa7968,_0x30a7f2);}),_0x1d09fb['listenTo'](_0x5df969,'load',()=>{_0x1d09fb['stopListening'](_0x5df969,'load'),_0x12b653['editing']['view']['change'](_0x363212=>{_0x363212['removeClass'](_0x5020d8,_0x31826f),_0x363212['removeStyle']('aspect-ratio',_0x30a7f2);});});}function B(_0x39dc6f){if(Array['isArray'](_0x39dc6f)){const _0x173dbe=_0x39dc6f['map'](B);return _0xa0ed26=>_0x173dbe['some'](_0x32603a=>_0x32603a(_0xa0ed26));}if('origin'==_0x39dc6f){const _0x38f176=_0xca5948['window']['location']['origin'];return _0x29c168=>new URL(_0x29c168,_0xca5948['document']['baseURI'])['origin']==_0x38f176;}return'function'==typeof _0x39dc6f?_0x39dc6f:_0x39dc6f instanceof RegExp?_0x3f2692=>!(!_0x3f2692['match'](_0x39dc6f)&&!_0x3f2692['replace'](/^https?:\/\//,'')['match'](_0x39dc6f)):()=>!0x1;}function V(_0x199547,_0x1ca8d3){return _0x417cbe(_0x199547['target'])['includes'](_0x1ca8d3);}class j extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0xcab798(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x407fe7,_0x1dbba0,_0x13a013){super(),this['_editor']=_0x407fe7,this['_editing']=_0x1dbba0,this['_dialog']=_0x407fe7['plugins']['get'](_0x1814e4),this['_api']=_0x1dbba0['ctxElement']['getAPI'](),this['_type']=_0x13a013,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:_0x397031,model:_0x5edfc3}=this['_editor'],_0xce2da4=_0x5edfc3['document']['selection']['getSelectedElement'](),_0x2eeb9e=_0xce2da4&&(_0xce2da4['is']('element','imageBlock')||_0xce2da4['is']('element','imageInline'));this['_formView']=new O(_0x397031,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x865cf3,'title':T(_0x397031,this['_type'],_0x2eeb9e?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1bf303['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x32cd68=>!V(_0x32cd68,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x43e98f}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x27e96c=>{const _0x5d566b=_0x43e98f['length'];for(const _0x1cb1c5 of _0x43e98f){const _0x2be608=_0x1cb1c5===_0x43e98f[_0x5d566b-0x1],{cdnUrl:_0x5854d5,fileInfo:_0x563ef1}=_0x1cb1c5;if(!_0x5854d5||!_0x563ef1)continue;const {width:_0x351c23,height:_0x3e1485}=_0x563ef1['imageInfo'],_0x503b1a=F(_0x5854d5,_0x351c23,_0x3e1485),_0x477adc=D(_0x5854d5,_0x503b1a['width']),_0x56e4d3={'id':_0x563ef1['uuid'],'type':'image','attributes':{'imageDimension':_0x503b1a,..._0x477adc}};this['_insertAsset'](_0x56e4d3,_0x2be608,_0x27e96c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x133931=>{'idle'===_0x133931['detail']['status']&&!_0x133931['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===S['Local']?this['_api']['setCurrentActivity'](S['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2b658c,_0x4b5b98,_0x1192ed){const _0x41b9c3=this['_editor']['model']['document']['selection'],_0x31b276=_0x41b9c3['getSelectedElement'](),_0x3f5680=!(!_0x31b276||!_0x31b276['is']('element','imageInline'));_0x1192ed['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2b658c,_0x3f5680),_0x4b5b98||_0x1192ed['setSelection'](_0x41b9c3['getLastPosition']());}['_insertImage'](_0xdd668d,_0xdd06ce){const _0x4589da=this['_editor'],{imageDimension:_0x102322,imageFallbackUrl:_0x2f6403,imageSources:_0x1e62c1}=_0xdd668d['attributes'];_0x4589da['execute']('insertImage',{'imageType':_0xdd06ce?'imageInline':null,'source':{'uploadcareImageId':_0xdd668d['id'],'src':_0x2f6403,'sources':_0x1e62c1,..._0x102322}});}}class M extends _0x5980df{['_editing'];['_controller']=null;static get['requires'](){return[_0x1814e4,z];}constructor(_0x1a950e){super(_0x1a950e),this['_editing']=_0x1a950e['plugins']['get'](z);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xa0de2){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new j(this['editor'],this['_editing'],_0xa0de2);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class q{static['upload']({file:_0x57ef9d,..._0x2aac51}){return _0x277534(_0x57ef9d,_0x2aac51);}static['getInfo'](_0x585fd3,_0x12e9a2){return _0x3e696(_0x585fd3,_0x12e9a2);}}class W extends _0x241860{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x336a6a,z];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x120ac8=this['editor'];if(!!!_0x120ac8['config']['get']('uploadcare'))return;_0x120ac8['plugins']['get'](_0x336a6a)['createUploadAdapter']=_0x21c7b6=>new G(_0x21c7b6,_0x120ac8),_0x120ac8['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4ab459,{imageElement:_0x4a534e,data:_0x2f5aed})=>{_0x120ac8['model']['change'](_0x574d34=>{_0x574d34['setAttribute']('uploadcareImageId',_0x2f5aed['uploadcareImageId'],_0x4a534e);});});}}class G{['loader'];['editor'];['controller'];constructor(_0xcf39ee,_0x2376da){this['loader']=_0xcf39ee,this['editor']=_0x2376da,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x32919a=await this['loader']['file'];return q['upload']({'file':_0x32919a,'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':_0x264a8d=>{_0x264a8d&&_0x264a8d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x264a8d['value']);}})['then'](async _0x398072=>{const {imageFallbackUrl:_0x510b73,imageSources:_0x203958}=D(_0x398072['cdnUrl'],_0x398072['imageInfo']['width']);return{'uploadcareImageId':_0x398072['uuid'],'default':_0x510b73,'sources':_0x203958};})['catch'](()=>{const _0x287345=t('Cannot\x20upload\x20file:')+('\x20'+_0x32919a['name']+'.');return Promise['reject'](_0x287345);});}['abort'](){this['controller']['abort']();}}class z extends _0x241860{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',W,_0x1814e4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x10145f){super(_0x10145f),this['ucContextId']=_0x594f4b();}['init'](){const _0x517423=this['editor'];_0x517423['commands']['add']('uploadcare',new M(_0x517423));}['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 _0x3b1355=_0xca5948['document']['querySelector']('input[uploadcare-file-input]');_0x3b1355&&_0x3b1355['remove']();}),async function(_0x1cd53e){const _0x1eaef3=_0x3d7ac2([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]),_0xb48f91=0x535f8c3a,_0x30477a=0x5358f39a^_0xb48f91,_0x3944ca=window[_0x3d7ac2([0x44,0x61,0x74,0x65])][_0x3d7ac2([0x6e,0x6f,0x77])](),_0xc73475=_0x1cd53e[_0x3d7ac2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4c4695=new window[(_0x3d7ac2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ab5ec=>{_0xc73475[_0x3d7ac2([0x6f,0x6e,0x63,0x65])](_0x3d7ac2([0x72,0x65,0x61,0x64,0x79]),_0x3ab5ec);}),_0xe5fdd1={[_0x3d7ac2([0x6b,0x74,0x79])]:_0x3d7ac2([0x45,0x43]),[_0x3d7ac2([0x75,0x73,0x65])]:_0x3d7ac2([0x73,0x69,0x67]),[_0x3d7ac2([0x63,0x72,0x76])]:_0x3d7ac2([0x50,0x2d,0x32,0x35,0x36]),[_0x3d7ac2([0x78])]:_0x3d7ac2([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]),[_0x3d7ac2([0x79])]:_0x3d7ac2([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]),[_0x3d7ac2([0x61,0x6c,0x67])]:_0x3d7ac2([0x45,0x53,0x32,0x35,0x36])},_0x387cf9=_0xc73475[_0x3d7ac2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3d7ac2([0x67,0x65,0x74])](_0x3d7ac2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3ce13c(){let _0x13ba1d,_0x57ca5e=null,_0x5e6ced=null;try{if(_0x387cf9==_0x3d7ac2([0x47,0x50,0x4c]))return _0x3d7ac2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x13ba1d=_0x23e08c(),!_0x13ba1d)return _0x3d7ac2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x13ba1d[_0x3d7ac2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5e6ced=_0x13f418(_0x13ba1d[_0x3d7ac2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x13ba1d[_0x3d7ac2([0x6a,0x74,0x69])])),await _0x37d719()?_0x501ba6()?_0x2106dc()?_0x3d7ac2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x831416()?(_0x13ba1d[_0x3d7ac2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d7ac2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x57ca5e=_0x356c77(_0x3d7ac2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2340b4()):_0x3d7ac2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3d7ac2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3d7ac2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3d7ac2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2106dc(){const _0x18e04b=[_0x3d7ac2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3d7ac2([0x74,0x72,0x69,0x61,0x6c])][_0x3d7ac2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13ba1d[_0x3d7ac2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3944ca/0x3e8:0xe10*_0x30477a;return _0x13ba1d[_0x3d7ac2([0x65,0x78,0x70])]<_0x18e04b;}function _0x501ba6(){const _0xa7d97c=_0x13ba1d[_0x3d7ac2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xa7d97c&&(!!_0xa7d97c[_0x3d7ac2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d7ac2([0x2a]))||!!_0xa7d97c[_0x3d7ac2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d7ac2([0x55,0x50,0x4c,0x43])));}function _0x831416(){const _0x59705d=_0x13ba1d[_0x3d7ac2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x59705d||0x0==_0x59705d[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5ab59e}=new URL(window[_0x3d7ac2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x59705d[_0x3d7ac2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ab59e))return!0x0;const _0xa9335e=_0x5ab59e[_0x3d7ac2([0x73,0x70,0x6c,0x69,0x74])](_0x3d7ac2([0x2e]));return _0x59705d[_0x3d7ac2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x295c5c=>_0x295c5c[_0x3d7ac2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d7ac2([0x2a])))[_0x3d7ac2([0x6d,0x61,0x70])](_0x20a930=>_0x20a930[_0x3d7ac2([0x73,0x70,0x6c,0x69,0x74])](_0x3d7ac2([0x2e])))[_0x3d7ac2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x161857=>_0x161857[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xa9335e[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d7ac2([0x6d,0x61,0x70])](_0x703071=>Array(_0xa9335e[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x703071[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d7ac2([0x66,0x69,0x6c,0x6c])](_0x703071[0x0]===_0x3d7ac2([0x2a])?_0x3d7ac2([0x2a]):'')[_0x3d7ac2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x703071))[_0x3d7ac2([0x73,0x6f,0x6d,0x65])](_0xfa2980=>_0xa9335e[_0x3d7ac2([0x65,0x76,0x65,0x72,0x79])]((_0x434b6f,_0x4123b3)=>_0xfa2980[_0x4123b3]===_0x434b6f||_0xfa2980[_0x4123b3]===_0x3d7ac2([0x2a])));}function _0x2340b4(){return _0x57ca5e&&_0x5e6ced?new window[(_0x3d7ac2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x15050d,_0x98d4be)=>{_0x57ca5e[_0x3d7ac2([0x74,0x68,0x65,0x6e])](_0x15050d,_0x98d4be),_0x5e6ced[_0x3d7ac2([0x74,0x68,0x65,0x6e])](_0x1dd5c4=>{_0x1dd5c4!=_0x3d7ac2([0x56,0x61,0x6c,0x69,0x64])&&_0x15050d(_0x1dd5c4);},_0x98d4be);}):_0x57ca5e||_0x5e6ced||_0x3d7ac2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x13f418(_0x395c12,_0x1fc9b9){return new window[(_0x3d7ac2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15376f=>{if(_0x4ec4ec())return _0x15376f(_0x3d7ac2([0x56,0x61,0x6c,0x69,0x64]));_0x49218d(),_0xc73475[_0x3d7ac2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3d7ac2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1da788=!0x1;const _0x29a2f5=_0x594f4b();function _0x28086f(_0xa4f7dd){return!!_0xa4f7dd&&(typeof _0xa4f7dd===_0x3d7ac2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xa4f7dd===_0x3d7ac2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xa4f7dd[_0x3d7ac2([0x74,0x68,0x65,0x6e])]===_0x3d7ac2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xa4f7dd[_0x3d7ac2([0x63,0x61,0x74,0x63,0x68])]===_0x3d7ac2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4e57f0(_0x42e0c8){_0x21fc8f(_0x42e0c8)[_0x3d7ac2([0x74,0x68,0x65,0x6e])](_0xb1a904=>{if(!_0xb1a904||_0xb1a904[_0x3d7ac2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3d7ac2([0x6f,0x6b]))return _0x3d7ac2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a53a0(_0x41ee62(_0x29a2f5+_0x1fc9b9))!=_0xb1a904[_0x3d7ac2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3d7ac2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3d7ac2([0x56,0x61,0x6c,0x69,0x64]);})[_0x3d7ac2([0x74,0x68,0x65,0x6e])](_0x1c57c8=>(_0x574a2a(),_0x1c57c8),()=>{const _0x28a6d9=_0x5929c8();return null==_0x28a6d9?(_0x574a2a(),_0x3d7ac2([0x56,0x61,0x6c,0x69,0x64])):_0x3d7ac2(_0x3944ca-_0x28a6d9>(0x7753083a^_0xb48f91)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3d7ac2([0x74,0x68,0x65,0x6e])](_0x15376f)[_0x3d7ac2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x15376f(_0x3d7ac2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1872b8=0x536962ba^_0xb48f91;function _0x574a2a(){const _0x14b12e=_0x3d7ac2([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a53a0(_0x41ee62(_0x395c12)),_0x42101e=_0xba9b5(_0x2a53a0(window[_0x3d7ac2([0x4d,0x61,0x74,0x68])][_0x3d7ac2([0x63,0x65,0x69,0x6c])](_0x3944ca/_0x1872b8)));window[_0x3d7ac2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d7ac2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14b12e,_0x42101e);}function _0x5929c8(){const _0x522968=_0x3d7ac2([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a53a0(_0x41ee62(_0x395c12)),_0x1e4f93=window[_0x3d7ac2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d7ac2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x522968);return _0x1e4f93?window[_0x3d7ac2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xba9b5(_0x1e4f93),0x10)*_0x1872b8:null;}function _0x21fc8f(_0x455796){return new window[(_0x3d7ac2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c014e,_0x1135c1)=>{_0x455796[_0x3d7ac2([0x74,0x68,0x65,0x6e])](_0x3c014e,_0x1135c1),window[_0x3d7ac2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1135c1,0x535e58fa^_0xb48f91);});}}_0xc73475[_0x3d7ac2([0x6f,0x6e])](_0x3d7ac2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2dcc3b,_0x4317c5)=>{if(_0x4317c5[0x0]!=_0x395c12)return _0x15376f(_0x3d7ac2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4317c5[0x1]={..._0x4317c5[0x1],[_0x3d7ac2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x29a2f5};},{[_0x3d7ac2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d7ac2([0x68,0x69,0x67,0x68])}),_0xc73475[_0x3d7ac2([0x6f,0x6e])](_0x3d7ac2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x562274=>{_0x28086f(_0x562274[_0x3d7ac2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1da788=!0x0,_0x4e57f0(_0x562274[_0x3d7ac2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3d7ac2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d7ac2([0x6c,0x6f,0x77])}),_0x4c4695[_0x3d7ac2([0x74,0x68,0x65,0x6e])](()=>{_0x1da788||_0x15376f(_0x3d7ac2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4ec4ec(){return _0xc73475[_0x3d7ac2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d7ac2([0x76,0x69,0x65,0x77])][_0x3d7ac2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3d7ac2([0x61,0x75,0x74,0x6f]);}function _0x49218d(){_0xc73475[_0x3d7ac2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d7ac2([0x76,0x69,0x65,0x77])][_0x3d7ac2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d7ac2([0x61,0x75,0x74,0x6f]);}}function _0x356c77(_0x2a8584){const _0x35c2d1=[new window[(_0x3d7ac2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5498c5=>setTimeout(_0x5498c5,0x5356b2f6^_0xb48f91)),_0x4c4695[_0x3d7ac2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3d7ac2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x351629=>{let _0x3f870f=0x0;_0xc73475[_0x3d7ac2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d7ac2([0x6f,0x6e])](_0x3d7ac2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1ef6c0,_0x498082)=>{_0x498082[0x0][_0x3d7ac2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3f870f++,_0x3f870f==(0x535f89d2^_0xb48f91)&&(_0x351629(),_0x1ef6c0[_0x3d7ac2([0x6f,0x66,0x66])]());});}))];return window[_0x3d7ac2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d7ac2([0x72,0x61,0x63,0x65])](_0x35c2d1)[_0x3d7ac2([0x74,0x68,0x65,0x6e])](()=>_0x2a8584);}async function _0x56c70a(){await _0x4c4695,_0xc73475[_0x3d7ac2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d7ac2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x51e464,_0xc73475[_0x3d7ac2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d7ac2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x51e464,_0xc73475[_0x3d7ac2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3d7ac2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x517faa(_0x4acd19){const _0x41d9c5=_0x544991();_0xc73475[_0x41d9c5]=_0x3d7ac2([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4acd19,_0x4acd19!=_0x3d7ac2([0x56,0x61,0x6c,0x69,0x64])&&_0x56c70a();}function _0x544991(){const _0x512849=window[_0x3d7ac2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3d7ac2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3d7ac2([0x6e,0x6f,0x77])]())[_0x3d7ac2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3d7ac2([0x2e]),'');let _0x598ca8=_0x3d7ac2([0x68]);for(let _0x32f214=0x0;_0x32f214<_0x512849[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x32f214+=0x2){let _0x17ce05=window[_0x3d7ac2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x512849[_0x3d7ac2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32f214,_0x32f214+0x2));_0x17ce05>=_0x1eaef3[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x17ce05-=_0x1eaef3[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x598ca8+=_0x1eaef3[_0x17ce05];}return _0x598ca8;}function _0x23e08c(){const _0x9b3cdf=_0x387cf9[_0x3d7ac2([0x73,0x70,0x6c,0x69,0x74])](_0x3d7ac2([0x2e]));if(0x3!=_0x9b3cdf[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1d31d1(_0x9b3cdf[0x1]);function _0x1d31d1(_0x5e54cd){const _0x4901f1=_0x58a067(_0x5e54cd);return _0x4901f1&&_0x447405()?_0x4901f1:null;function _0x447405(){const _0x49bcf8=_0x4901f1[_0x3d7ac2([0x6a,0x74,0x69])],_0x40dc7a=window[_0x3d7ac2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49bcf8[_0x3d7ac2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49bcf8[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x11ef6c={..._0x4901f1,[_0x3d7ac2([0x6a,0x74,0x69])]:_0x49bcf8[_0x3d7ac2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x49bcf8[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x11ef6c[_0x3d7ac2([0x76,0x63])],_0x41ee62(_0x11ef6c)==_0x40dc7a;}}}async function _0x37d719(){let _0xea3638=!0x0;try{const _0x48e79e=_0x387cf9[_0x3d7ac2([0x73,0x70,0x6c,0x69,0x74])](_0x3d7ac2([0x2e])),[_0xb4debb,_0x4f144b,_0x3305cb]=_0x48e79e;return _0x1ea033(_0xb4debb),await _0x4d189e(_0xb4debb,_0x4f144b,_0x3305cb),_0xea3638;}catch{return!0x1;}function _0x1ea033(_0x10af7c){const _0x593437=_0x58a067(_0x10af7c);_0x593437&&_0x593437[_0x3d7ac2([0x61,0x6c,0x67])]==_0x3d7ac2([0x45,0x53,0x32,0x35,0x36])||(_0xea3638=!0x1);}async function _0x4d189e(_0x2b800b,_0x1d2087,_0x345987){const _0x2d5e96=window[_0x3d7ac2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3d7ac2([0x66,0x72,0x6f,0x6d])](_0x26c2bf(_0x345987),_0x22b3b7=>_0x22b3b7[_0x3d7ac2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x12cf1f=new window[(_0x3d7ac2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3d7ac2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2b800b+_0x3d7ac2([0x2e])+_0x1d2087),_0xb87415=window[_0x3d7ac2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3d7ac2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xb87415)return;const _0x42acdf=await _0xb87415[_0x3d7ac2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3d7ac2([0x6a,0x77,0x6b]),_0xe5fdd1,{[_0x3d7ac2([0x6e,0x61,0x6d,0x65])]:_0x3d7ac2([0x45,0x43,0x44,0x53,0x41]),[_0x3d7ac2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3d7ac2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3d7ac2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xb87415[_0x3d7ac2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3d7ac2([0x6e,0x61,0x6d,0x65])]:_0x3d7ac2([0x45,0x43,0x44,0x53,0x41]),[_0x3d7ac2([0x68,0x61,0x73,0x68])]:{[_0x3d7ac2([0x6e,0x61,0x6d,0x65])]:_0x3d7ac2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x42acdf,_0x2d5e96,_0x12cf1f)||(_0xea3638=!0x1);}}function _0x58a067(_0xe81b16){return _0xe81b16[_0x3d7ac2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3d7ac2([0x65,0x79]))?JSON[_0x3d7ac2([0x70,0x61,0x72,0x73,0x65])](_0x26c2bf(_0xe81b16)):null;}function _0x26c2bf(_0x2f3b58){return window[_0x3d7ac2([0x61,0x74,0x6f,0x62])](_0x2f3b58[_0x3d7ac2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3d7ac2([0x2b]))[_0x3d7ac2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3d7ac2([0x2f])));}function _0x41ee62(_0x17d0b5){let _0x139685=0x1505;function _0x32478f(_0x5144c4){for(let _0x43fa4a=0x0;_0x43fa4a<_0x5144c4[_0x3d7ac2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43fa4a++){const _0x536388=_0x5144c4[_0x3d7ac2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x43fa4a);_0x139685=(_0x139685<<0x5)+_0x139685+_0x536388,_0x139685&=_0x139685;}}function _0x1b8729(_0x36cc4c){Array[_0x3d7ac2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x36cc4c)?_0x36cc4c[_0x3d7ac2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1b8729):_0x36cc4c&&typeof _0x36cc4c==_0x3d7ac2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3d7ac2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x36cc4c)[_0x3d7ac2([0x73,0x6f,0x72,0x74])]()[_0x3d7ac2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc47248,_0x689d36])=>{_0x32478f(_0xc47248),_0x1b8729(_0x689d36);}):_0x32478f(window[_0x3d7ac2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x36cc4c));}return _0x1b8729(_0x17d0b5),_0x139685>>>0x0;}function _0x2a53a0(_0x45f3ea){return _0x45f3ea[_0x3d7ac2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3d7ac2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3d7ac2([0x30]));}function _0xba9b5(_0x5f91ea){return _0x5f91ea[_0x3d7ac2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3d7ac2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3d7ac2([0x6a,0x6f,0x69,0x6e])]('');}function _0x51e464(){}function _0x3d7ac2(_0x3fc916){return _0x3fc916['map'](_0x27eeb2=>String['fromCharCode'](_0x27eeb2))['join']('');}_0x517faa(await _0x3ce13c());}(this);}['_initSchema'](){const _0x6186c5=this['editor']['model']['schema'];_0x6186c5['isRegistered']('imageBlock')&&_0x6186c5['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x6186c5['isRegistered']('imageInline')&&_0x6186c5['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3322cb=this['editor'];_0x3322cb['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3322cb['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x431221=>_0x431221['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x110c29=_0x3322cb['commands']['get']('replaceImageSource');_0x110c29&&this['listenTo'](_0x110c29,'cleanupImage',(_0x5d4b4d,[_0x5e3451,_0x496112])=>{_0x5e3451['removeAttribute']('uploadcareImageId',_0x496112);});}['_initConfig'](){const _0x483622=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3b1715=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x224752(_0xca5948['document'],'uc-config',{..._0x483622,'pubkey':_0x3b1715,'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']=_0x4cb384=>{if('closeMax'==_0x4cb384)return'#uc-icon-arrow-down';},_0xca5948['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x224752(_0xca5948['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0xca5948['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x59cece=this['editor']['commands']['get']('insertImage');_0x59cece&&this['listenTo'](_0x59cece,'execute',()=>{const _0xb2736a=this['editor']['model']['document']['selection']['getSelectedElement']();_0xb2736a&&_0xb2736a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0xb2736a);});});const _0x4d275e=this['editor']['commands']['get']('uploadcareImageReplace');_0x4d275e&&this['listenTo'](_0x4d275e,'execute',()=>{const _0x43adc5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x43adc5&&_0x43adc5['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0x43adc5);});});}}class H extends _0x241860{static get['requires'](){return[z,A];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x28c318){super(_0x28c318),_0x28c318['config']['define']('uploadcare.uploader.sourceList',[S['Local'],S['URL']]),_0x2e6e5a['defineComponents'](_0x2e6e5a),this['_defineLocale']();}['_defineLocale'](){const _0x54b758=this['editor']['config']['get']('uploadcare.locale'),_0xf73086=this['editor']['locale']['contentLanguage'];_0x54b758&&_0x2e6e5a['defineLocale'](_0xf73086,_0x54b758);}}class J extends _0x3f8953{constructor(_0x2342f1){super(_0x2342f1);const t=_0x2342f1['t'],_0x392240=this['bindTemplate'],_0x39b6a3=new _0x14287f();_0x39b6a3['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':[_0x39b6a3,{'text':_0x392240['to']('imageUploadProgress',_0x1b96ac=>t('Loading\x20image...')+'\x20('+(_0x1b96ac||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 Z extends _0x3f8953{constructor(_0x27655d){super(_0x27655d);const t=_0x27655d['t'];this['set']('errorType',null);const _0x183af5=new _0x261f0d(_0x27655d);_0x183af5['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x183af5['withText']=!0x0,_0x183af5['class']='ck-button-action',_0x183af5['on']('execute',()=>{this['fire']('retry');}),_0x183af5['bind']('isVisible')['to'](this,'errorType',_0x750e2=>'NotFound'!==_0x750e2);const _0x9bd710=new _0x22bbeb();_0x9bd710['content']=_0x41012d,_0x9bd710['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1d9e3f=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':[_0x9bd710,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1d9e3f['to']('errorType',_0x4307df=>t('NotFound'!==_0x4307df?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x183af5]},{'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 Q extends _0x3f8953{constructor(_0x24a030,_0x481898){super(_0x24a030);const _0x2c8e01=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x481898,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2c8e01['to']('imageSrc')}});}}class X extends K{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x56b62d,_0x26859f,_0xcc0555){super(_0x56b62d),this['_items']=this['createCollection'](),this['_loadingView']=new J(_0x56b62d),this['_errorView']=new Z(_0x56b62d),this['_editingView']=new Q(_0x56b62d,_0xcc0555),this['_focusableView']=new _0x3f8953(_0x56b62d),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x26859f),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'],_0xaf4c9e=>{this['_addUploadcareImageEditorListeners'](_0xaf4c9e);});}),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'](_0x455524,_0x3d06fd){const _0xa973a0='uc-cloud-image-editor',_0x58aab9=_0x455524['querySelector'](_0xa973a0);if(_0x58aab9)return _0x3d06fd(_0x58aab9);const _0x476c47=new MutationObserver(_0x57b547=>{const _0x19ebbc=_0x57b547['filter'](_0x50afe9=>_0x50afe9['target']===_0x455524&&_0x50afe9['addedNodes']['length']>0x0&&_0x50afe9['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xa973a0);_0x19ebbc['length']&&(_0x476c47['disconnect'](),_0x3d06fd(_0x19ebbc[0x0]['addedNodes'][0x0]));});_0x476c47['observe'](_0x455524,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3dabc2){_0x3dabc2['addEventListener']('apply',_0x1fc269=>{this['fire']('apply',{'imageSrc':_0x1fc269['detail']['cdnUrl']});}),_0x3dabc2['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class Y extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xcab798(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x48c3e6,_0x237515,_0x3cac1d){super(),this['_editor']=_0x48c3e6,this['_dialog']=_0x237515,this['_imageElement']=_0x3cac1d,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 _0x160b46=this['_imageElement'],_0x18d485=_0x160b46['getAttribute']('uploadcareImageId'),_0x412952=_0x160b46['getAttribute']('src');if(_0x18d485)await this['_loadImageInfo'](_0x18d485,_0x412952);else{if(this['_imageCache']['has'](_0x412952)){const _0x186877=this['_imageCache']['get'](_0x412952);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x186877['url'],this['imageDimension']=_0x186877['dimension'],this['imageId']=_0x186877['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xc0f60}=this['_editor'],t=_0xc0f60['t'],_0x2bda46=new X(_0xc0f60,this['imageStatus'],this['_attributes']);_0x2bda46['bind']('status')['to'](this,'imageStatus'),_0x2bda46['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2bda46['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2bda46['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2bda46,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x182a19,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2bda46,'position':_0x1bf303['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2bda46['focus']();},'onHide':()=>{_0x2bda46['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3a1a1b=>!V(_0x3a1a1b,_0x2bda46['element'])}});}['_loadImageInfo'](_0x1c704a,_0x1745be){return q['getInfo'](_0x1c704a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x24edcb=>{const {width:_0x3f80d8,height:_0x5710f9}=_0x24edcb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1745be,this['imageDimension']={'width':_0x3f80d8,'height':_0x5710f9},this['imageId']=_0x1c704a;})['catch'](_0x14f6d5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x14f6d5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1698b8,_0x23f9d2){return this['_getImageAsFile'](_0x1698b8)['then'](_0x55558d=>q['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':_0x23f9d2['signal'],'file':_0x55558d,'onProgress':_0x48fcd4=>{_0x48fcd4&&_0x48fcd4['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x48fcd4['value']));}}))['then'](_0x5d6524=>{const {width:_0x98fdbd,height:_0x5b1392}=_0x5d6524['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5d6524['cdnUrl'],this['imageDimension']={'width':_0x98fdbd,'height':_0x5b1392},this['imageId']=_0x5d6524['uuid'],this['imageUploadProgress']=null;const _0x4b5938=_0x1698b8['getAttribute']('src');this['_imageCache']['set'](_0x4b5938,{'id':_0x5d6524['uuid'],'url':_0x5d6524['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x45956f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x45956f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x548d11,_0x325dcb){_0x548d11['on']('apply',(_0x5ef6b9,_0x10e39f)=>{this['_replaceImage'](_0x325dcb,_0x10e39f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x548d11['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x548d11['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x16fb5e,_0x323bc8,_0x422136){const _0x141c23=this['_editor'],{width:_0x3fb69e,height:_0x2e6be9}=F(_0x323bc8,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x57601e,imageSources:_0x557c58}=D(_0x323bc8,_0x3fb69e);_0x141c23['model']['change'](_0x4e612f=>{if('$graveyard'===_0x16fb5e['root']['rootName']){_0x141c23['execute']('insertImage',{'imageType':_0x16fb5e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x16fb5e['getAttributes']()),'uploadcareImageId':_0x422136,'src':_0x57601e,'sources':_0x557c58,'width':_0x3fb69e,'height':_0x2e6be9}});const _0x4e6ac6=_0x16fb5e['getChildren']();_0x16fb5e=_0x141c23['model']['document']['selection']['getSelectedElement']();for(const _0x425584 of _0x4e6ac6)_0x4e612f['append'](_0x4e612f['cloneElement'](_0x425584),_0x16fb5e);}else _0x4e612f['setSelection'](_0x16fb5e,'on'),_0x141c23['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x16fb5e['getAttributes']()),'uploadcareImageId':_0x422136,'src':_0x57601e,'sources':_0x557c58,'width':_0x3fb69e,'height':_0x2e6be9},_0x16fb5e);_0x4e612f['setSelection'](_0x16fb5e,'on');});}async['_getImageAsFile'](_0x31cb39){const _0x271010=_0xca5948['window'],_0x1f5435=_0xca5948['document']['location']['href'],_0x1df65e=new _0x271010['URL'](_0x31cb39['getAttribute']('src'),_0x1f5435);if('data:'===_0x1df65e['protocol']){const _0x39ca79=_0x1df65e['href']['split'](','),_0x15f1da=_0x39ca79[0x0]['match'](/:(.*?);/)[0x1],_0x21e834=_0x15f1da['split']('/')[0x1],_0x3c5f10=_0x271010['atob'](_0x39ca79[_0x39ca79['length']-0x1]);let _0x19d422=_0x3c5f10['length'];const _0x273966=new _0x271010['Uint8Array'](_0x19d422);for(;_0x19d422--;)_0x273966[_0x19d422]=_0x3c5f10['charCodeAt'](_0x19d422);return new _0x271010['File']([_0x273966],'image.'+_0x21e834,{'type':_0x15f1da});}const _0x418bbf=_0x1df65e['href']['split']('/'),_0x5bdec3=_0x418bbf[_0x418bbf['length']-0x1],_0x233842=_0x5bdec3['split']('.')[0x1];return _0x271010['fetch'](_0x1df65e['href'])['then'](_0x10faab=>_0x10faab['clone']()['blob']())['then'](_0x58e693=>new _0x271010['File']([_0x58e693],_0x5bdec3,{'type':'image/'+_0x233842}));}}class tt extends _0x5980df{['imageEditController'];static get['requires'](){return[_0x1814e4];}['_isEditable'];constructor(_0x48d231){super(_0x48d231),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x205ec2){const _0xd1f1eb=B(_0x205ec2);return _0xec4e91=>!(!_0xec4e91||!_0xec4e91['is']('element','imageBlock')&&!_0xec4e91['is']('element','imageInline'))&&(!!_0xec4e91['hasAttribute']('uploadcareImageId')||!!_0xec4e91['hasAttribute']('src')&&_0xd1f1eb(_0xec4e91['getAttribute']('src')));}(_0x48d231['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x19b75a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x19b75a);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x16263f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x16263f&&(_0x16263f['is']('element','imageBlock')||_0x16263f['is']('element','imageInline'))&&(this['imageEditController']=new Y(this['editor'],this['editor']['plugins']['get'](_0x1814e4),_0x16263f),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class et extends _0x5980df{['refresh'](){const _0x34512b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x34512b&&(_0x34512b['is']('element','imageBlock')||_0x34512b['is']('element','imageInline')));}['execute'](_0xc6c543){const _0x157b71=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x531475=>{_0x531475['setAttributes'](_0xc6c543,_0x157b71),_0x531475['removeAttribute']('srcset',_0x157b71),_0x531475['removeAttribute']('sizes',_0x157b71);});}}class it extends _0x241860{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[z,_0x5107b8,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3caa92}=this;_0x3caa92['commands']['add']('uploadcareImageEdit',new tt(_0x3caa92)),_0x3caa92['commands']['add']('uploadcareImageReplace',new et(_0x3caa92));}}class st extends _0x241860{['_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 _0x4f117d=this['editor'];_0x4f117d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x37a67b=>{const _0x2ccc45=_0x4f117d['commands']['get']('uploadcareImageEdit'),_0xe20106=new _0x261f0d(_0x37a67b),t=_0x37a67b['t'];return _0xe20106['set']({'icon':_0x182a19,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xe20106['bind']('isEnabled')['to'](_0x2ccc45),_0xe20106['bind']('isOn')['to'](_0x2ccc45,'isActive'),this['listenTo'](_0xe20106,'execute',()=>{_0x4f117d['execute']('uploadcareImageEdit'),_0x4f117d['editing']['view']['focus']();}),_0xe20106;}),this['_initConfig']();}['_initConfig'](){const _0x28e0db=_0x224752(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x28e0db),this['listenTo'](this['editor'],'destroy',()=>{_0x28e0db['remove']();});}}class nt extends _0x241860{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[it,st];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{H as Uploadcare,M as UploadcareCommand,z as UploadcareEditing,nt as UploadcareImageEdit,tt as UploadcareImageEditCommand,it as UploadcareImageEditEditing,st as UploadcareImageEditUI,A as UploadcareUI,W as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x4d25b3,Command as _0x4794c6}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4150f6,IconGooglePhotos as _0x2864b8,IconGoogleDrive as _0x463b87,IconFacebook as _0x16b761,IconDropbox as _0xc111bc,IconUploadcareLink as _0x43e6b0,IconUploadcareImageUpload as _0x561b28,IconError as _0x3cf9b7,IconUploadcareImageEdit as _0xaddb6e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3a603b,MenuBarMenuListItemButtonView as _0x52e58b,View as _0x3eb62f,FocusCycler as _0xfcfbd1,Dialog as _0x4da0c8,DialogViewPosition as _0x45ff54,SpinnerView as _0x35b370,IconView as _0xbb98e,Notification as _0x40cd31}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x140787,DomEmitterMixin as _0x19d85f,global as _0x43e1e7,getAncestors as _0x3297f0,ObservableMixin as _0x4c3ba5,uid as _0x53c1f2,createElement as _0x4b3ce8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3e2076}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5d5b65,info as _0x5b8dd6}from'@uploadcare/upload-client';import*as _0x4aed52 from'@uploadcare/file-uploader';var i=function(_0x40e205){return _0x40e205['Local']='local',_0x40e205['URL']='url',_0x40e205['Dropbox']='dropbox',_0x40e205['GDrive']='gdrive',_0x40e205['Facebook']='facebook',_0x40e205['GPhotos']='gphotos',_0x40e205['OneDrive']='onedrive',_0x40e205;}({});function _(_0x7376aa,_0x43ec35,_0x3aafc8){const t=_0x7376aa['t'],_0x10a7b2=_0x7376aa['t'];switch(_0x43ec35){case i['Local']:return{'text':_0x10a7b2('Insert'===_0x3aafc8?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x10a7b2('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3aafc8?_0x10a7b2('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x10a7b2('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3aafc8?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3aafc8?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3aafc8?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3aafc8?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3aafc8?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x43ec35;}}class e extends _0x4d25b3{['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 _0x5a4388=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x27fbeb;for(const _0x7d2df6 in _0x5a4388){const _0x1950b6=_0x7d2df6,_0x32dbae=_0x5a4388[_0x1950b6];if('uploadcareLicenseKeyValid'==_0x32dbae||'uploadcareLicenseKeyInvalid'==_0x32dbae||'uploadcareLicenseKeyExpired'==_0x32dbae||'uploadcareLicenseKeyDomainLimit'==_0x32dbae||'uploadcareLicenseKeyNotAllowed'==_0x32dbae||'uploadcareLicenseKeyEvaluationLimit'==_0x32dbae||'uploadcareLicenseKeyUsageLimit'==_0x32dbae){delete _0x5a4388[_0x1950b6],_0x27fbeb=_0x32dbae,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x27fbeb&&_0x5a4388['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x27fbeb&&_0x5a4388['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x27fbeb&&_0x5a4388['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x27fbeb&&_0x5a4388['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x27fbeb&&_0x5a4388['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x27fbeb&&_0x5a4388['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xd273cb}=this,_0x25eae3=_0xd273cb['commands']['get']('uploadcare');if(!_0x25eae3)return;const _0x219030=this['_normalizeConfigSourceList'](_0xd273cb['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x384190,_0x91f4c7)=>{const _0x1a33d2=this['_getIntegrationKey'](_0x91f4c7['type']);return _0x384190[_0x1a33d2]||(_0x384190[_0x1a33d2]=[]),_0x384190[_0x1a33d2]['push'](_0x91f4c7),_0x384190;},{});_0xd273cb['plugins']['has']('ImageInsertUI')&&_0xd273cb['commands']['get']('uploadcare')&&Object['entries'](_0x219030)['forEach'](([_0x478175,_0x52d7c5])=>{_0xd273cb['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x478175,'observable':()=>_0x25eae3,'buttonViewCreator':()=>this['_createToolbarButton'](_0x52d7c5),'formViewCreator':()=>this['_createDropdownButtons'](_0x52d7c5),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x52d7c5),'override':'assetManager'!==_0x478175});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2f373c){const {locale:_0x527f2a}=this['editor'];return _0x2f373c['map'](_0x55f432=>{const _0x4b718c=_(_0x527f2a,_0x55f432,'Insert');switch(_0x55f432){case i['Local']:return{'icon':_0x561b28,'type':i['Local'],..._0x4b718c};case i['URL']:return{'icon':_0x43e6b0,'type':i['URL'],..._0x4b718c};case i['Dropbox']:return{'icon':_0xc111bc,'type':i['Dropbox'],..._0x4b718c};case i['Facebook']:return{'icon':_0x16b761,'type':i['Facebook'],..._0x4b718c};case i['GDrive']:return{'icon':_0x463b87,'type':i['GDrive'],..._0x4b718c};case i['GPhotos']:return{'icon':_0x2864b8,'type':i['GPhotos'],..._0x4b718c};case i['OneDrive']:return{'icon':_0x4150f6,'type':i['OneDrive'],..._0x4b718c};}});}['_getIntegrationKey'](_0x38b230){switch(_0x38b230){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x531336,_0x5812ce){const _0x53ec21=this['editor'],_0xb8775b=new _0x531336(_0x53ec21['locale']),_0x4fe630=_0x53ec21['commands']['get']('uploadcare');return _0xb8775b['bind']('isEnabled')['to'](_0x4fe630),_0xb8775b['on']('execute',()=>{_0x4fe630['execute'](_0x5812ce);}),_0xb8775b;}['_createToolbarButton'](_0x5808d1){const {locale:_0x533c38}=this['editor'],_0x15f3c6=this['editor']['plugins']['get']('ImageInsertUI'),_0x1e9065=_0x5808d1[0x0],_0x212ee0=this['_createButton'](_0x3a603b,_0x1e9065['type']);return _0x212ee0['icon']=_0x1e9065['icon'],_0x212ee0['bind']('label')['to'](_0x15f3c6,'isImageSelected',_0x4587fa=>_(_0x533c38,_0x1e9065['type'],_0x4587fa?'Replace':'Insert')['text']),_0x212ee0['tooltip']=!0x0,_0x212ee0;}['_createDropdownButtons'](_0x3f52d9){const {locale:_0x26f704}=this['editor'],_0x4d8669=this['editor']['plugins']['get']('ImageInsertUI');return _0x3f52d9['map'](_0x59dc8e=>{const _0x2b5b96=this['_createButton'](_0x3a603b,_0x59dc8e['type']);return _0x2b5b96['withText']=!0x0,_0x2b5b96['icon']=_0x59dc8e['icon'],_0x2b5b96['bind']('label')['to'](_0x4d8669,'isImageSelected',_0x20bb6d=>_(_0x26f704,_0x59dc8e['type'],_0x20bb6d?'Replace':'Insert')['text']),_0x2b5b96;});}['_createMenuBarButtons'](_0x508c90){return _0x508c90['map'](_0x59543d=>{const _0x45c9c4=this['_createButton'](_0x52e58b,_0x59543d['type']);return _0x45c9c4['icon']=_0x59543d['icon'],_0x45c9c4['label']=_0x59543d['shortText'],_0x45c9c4;});}}class F extends _0x3eb62f{['focusTracker'];['focusCycler'];constructor(_0x31990e){super(_0x31990e),this['focusTracker']=new _0x140787(),this['focusCycler']=new _0xfcfbd1({'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(_0x12ba44,_0x43e758){super(_0x12ba44),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-'+_0x43e758}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x5ab701,_0x5b3c33){const _0x4dc5a5=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x169950=>_0x169950<=_0x5b3c33)['map'](_0x58dd24=>_0x5ab701['replace'](/\/$/,'')+'/-/resize/'+_0x58dd24+'x/\x20'+_0x58dd24+'w');return{'imageFallbackUrl':_0x5ab701,'imageSources':[{'srcset':_0x4dc5a5['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5b3c33+'px)\x20100vw,\x20'+_0x5b3c33+'px','type':'image/webp'}]};}function S(_0x47d6be,_0x5988f3,_0x2b2efc){const _0x46ca21=_0x47d6be['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x46ca21?parseInt(_0x46ca21[0x1],0xa):_0x5988f3,'height':_0x46ca21?parseInt(_0x46ca21[0x2],0xa):_0x2b2efc};}function p(_0x1aa0ee,_0x2efdd3){const _0x159dbe=new(_0x19d85f())(),_0x32e9bf=_0x1aa0ee['plugins']['get']('ImageUtils'),_0xbdfd78=_0x1aa0ee['editing']['mapper']['toViewElement'](_0x2efdd3),_0x1fd0d8=_0x32e9bf['findViewImgElement'](_0xbdfd78),_0x3073d2=_0x1aa0ee['editing']['view']['domConverter']['viewToDom'](_0x1fd0d8),_0x2810b3=_0x2efdd3['getAttribute']('width'),_0x5a5af2=_0x2efdd3['getAttribute']('height'),_0x2250fc='image-processing';_0x1aa0ee['editing']['view']['change'](_0x4e496e=>{_0x4e496e['addClass'](_0x2250fc,_0xbdfd78),_0x4e496e['setStyle']('aspect-ratio',_0x2810b3+'/'+_0x5a5af2,_0x1fd0d8);}),_0x159dbe['listenTo'](_0x3073d2,'load',()=>{_0x159dbe['stopListening'](_0x3073d2,'load'),_0x1aa0ee['editing']['view']['change'](_0x278a01=>{_0x278a01['removeClass'](_0x2250fc,_0xbdfd78),_0x278a01['removeStyle']('aspect-ratio',_0x1fd0d8);});});}function G(_0x11bd30){if(Array['isArray'](_0x11bd30)){const _0x38c8ee=_0x11bd30['map'](G);return _0x1447c9=>_0x38c8ee['some'](_0x2d5659=>_0x2d5659(_0x1447c9));}if('origin'==_0x11bd30){const _0x3d69ba=_0x43e1e7['window']['location']['origin'];return _0x592eac=>new URL(_0x592eac,_0x43e1e7['document']['baseURI'])['origin']==_0x3d69ba;}return'function'==typeof _0x11bd30?_0x11bd30:_0x11bd30 instanceof RegExp?_0x12a20a=>!(!_0x12a20a['match'](_0x11bd30)&&!_0x12a20a['replace'](/^https?:\/\//,'')['match'](_0x11bd30)):()=>!0x1;}function A(_0x481e38,_0x34171e){return _0x3297f0(_0x481e38['target'])['includes'](_0x34171e);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4c3ba5(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x386761,_0x3645e8,_0x51477a){super(),this['_editor']=_0x386761,this['_editing']=_0x3645e8,this['_dialog']=_0x386761['plugins']['get'](_0x4da0c8),this['_api']=_0x3645e8['ctxElement']['getAPI'](),this['_type']=_0x51477a,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:_0x46cc46,model:_0x35d433}=this['_editor'],_0x26cfb1=_0x35d433['document']['selection']['getSelectedElement'](),_0xb7c1fb=_0x26cfb1&&(_0x26cfb1['is']('element','imageBlock')||_0x26cfb1['is']('element','imageInline'));this['_formView']=new x(_0x46cc46,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x561b28,'title':_(_0x46cc46,this['_type'],_0xb7c1fb?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x45ff54['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3107b1=>!A(_0x3107b1,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5c8543}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x37b2ef=>{const _0x27ca9a=_0x5c8543['length'];for(const _0x6a170d of _0x5c8543){const _0x5bf2e9=_0x6a170d===_0x5c8543[_0x27ca9a-0x1],{cdnUrl:_0x3f4c18,fileInfo:_0x53ffbf}=_0x6a170d;if(!_0x3f4c18||!_0x53ffbf)continue;const {width:_0x2559c4,height:_0x2b5338}=_0x53ffbf['imageInfo'],_0x2986fd=S(_0x3f4c18,_0x2559c4,_0x2b5338),_0x495596=C(_0x3f4c18,_0x2986fd['width']),_0x4977f4={'id':_0x53ffbf['uuid'],'type':'image','attributes':{'imageDimension':_0x2986fd,..._0x495596}};this['_insertAsset'](_0x4977f4,_0x5bf2e9,_0x37b2ef);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3913da=>{'idle'===_0x3913da['detail']['status']&&!_0x3913da['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4a5135,_0x3bd6ea,_0xd9397e){const _0x1c4def=this['_editor']['model']['document']['selection'],_0x63a328=_0x1c4def['getSelectedElement'](),_0x5e9859=!(!_0x63a328||!_0x63a328['is']('element','imageInline'));_0xd9397e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4a5135,_0x5e9859),_0x3bd6ea||_0xd9397e['setSelection'](_0x1c4def['getLastPosition']());}['_insertImage'](_0x5745d6,_0x52a8b1){const _0x4635f0=this['_editor'],{imageDimension:_0xe1cc1,imageFallbackUrl:_0x3b1817,imageSources:_0x521698}=_0x5745d6['attributes'];_0x4635f0['execute']('insertImage',{'imageType':_0x52a8b1?'imageInline':null,'source':{'uploadcareImageId':_0x5745d6['id'],'src':_0x3b1817,'sources':_0x521698,..._0xe1cc1}});}}class w extends _0x4794c6{['_editing'];['_controller']=null;static get['requires'](){return[_0x4da0c8,o];}constructor(_0xac674){super(_0xac674),this['_editing']=_0xac674['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2bb2bf){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2bb2bf);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5aae06,..._0x24762b}){return _0x5d5b65(_0x5aae06,_0x24762b);}static['getInfo'](_0x13f514,_0x376c0c){return _0x5b8dd6(_0x13f514,_0x376c0c);}}class f extends _0x4d25b3{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3e2076,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x14e801=this['editor'];if(!!!_0x14e801['config']['get']('uploadcare'))return;_0x14e801['plugins']['get'](_0x3e2076)['createUploadAdapter']=_0x53e92c=>new k(_0x53e92c,_0x14e801),_0x14e801['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x13e56d,{imageElement:_0x4c78dd,data:_0x958884})=>{_0x14e801['model']['change'](_0x124e2e=>{_0x124e2e['setAttribute']('uploadcareImageId',_0x958884['uploadcareImageId'],_0x4c78dd);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x34dc39,_0x2072e1){this['loader']=_0x34dc39,this['editor']=_0x2072e1,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x19a0be=await this['loader']['file'];return j['upload']({'file':_0x19a0be,'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':_0x30606e=>{_0x30606e&&_0x30606e['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x30606e['value']);}})['then'](async _0x4ce7f0=>{const {imageFallbackUrl:_0x6bb16f,imageSources:_0x428769}=C(_0x4ce7f0['cdnUrl'],_0x4ce7f0['imageInfo']['width']);return{'uploadcareImageId':_0x4ce7f0['uuid'],'default':_0x6bb16f,'sources':_0x428769};})['catch'](()=>{const _0x1c79ba=t('Cannot\x20upload\x20file:')+('\x20'+_0x19a0be['name']+'.');return Promise['reject'](_0x1c79ba);});}['abort'](){this['controller']['abort']();}}class o extends _0x4d25b3{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4da0c8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xdd1398){super(_0xdd1398),this['ucContextId']=_0x53c1f2();}['init'](){const _0x1e233e=this['editor'];_0x1e233e['commands']['add']('uploadcare',new w(_0x1e233e));}['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 _0x5263cf=_0x43e1e7['document']['querySelector']('input[uploadcare-file-input]');_0x5263cf&&_0x5263cf['remove']();}),async function(_0xf7c95f){const _0xf7db7a=_0xf066b1([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]),_0x33f5a5=0x535f8c3a,_0x162a1c=0x5358f382^_0x33f5a5,_0x78c82d=window[_0xf066b1([0x44,0x61,0x74,0x65])][_0xf066b1([0x6e,0x6f,0x77])](),_0x2e628e=_0xf7c95f[_0xf066b1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x37dbd0=new window[(_0xf066b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c341f=>{_0x2e628e[_0xf066b1([0x6f,0x6e,0x63,0x65])](_0xf066b1([0x72,0x65,0x61,0x64,0x79]),_0x1c341f);}),_0x5df489={[_0xf066b1([0x6b,0x74,0x79])]:_0xf066b1([0x45,0x43]),[_0xf066b1([0x75,0x73,0x65])]:_0xf066b1([0x73,0x69,0x67]),[_0xf066b1([0x63,0x72,0x76])]:_0xf066b1([0x50,0x2d,0x32,0x35,0x36]),[_0xf066b1([0x78])]:_0xf066b1([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]),[_0xf066b1([0x79])]:_0xf066b1([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]),[_0xf066b1([0x61,0x6c,0x67])]:_0xf066b1([0x45,0x53,0x32,0x35,0x36])},_0x512d10=_0x2e628e[_0xf066b1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xf066b1([0x67,0x65,0x74])](_0xf066b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1c5c0c(){let _0x554132,_0x322c96=null,_0x4d7ef0=null;try{if(_0x512d10==_0xf066b1([0x47,0x50,0x4c]))return _0xf066b1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x554132=_0x1d5cf1(),!_0x554132)return _0xf066b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x554132[_0xf066b1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4d7ef0=_0x5430c3(_0x554132[_0xf066b1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x554132[_0xf066b1([0x6a,0x74,0x69])])),await _0x28d133()?_0x3b0e19()?_0x2f0ccc()?_0xf066b1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x9b7b11()?(_0x554132[_0xf066b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf066b1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x322c96=_0x261b26(_0xf066b1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xa227c3()):_0xf066b1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xf066b1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xf066b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xf066b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2f0ccc(){const _0x4684c6=[_0xf066b1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xf066b1([0x74,0x72,0x69,0x61,0x6c])][_0xf066b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x554132[_0xf066b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x78c82d/0x3e8:0xe10*_0x162a1c;return _0x554132[_0xf066b1([0x65,0x78,0x70])]<_0x4684c6;}function _0x3b0e19(){const _0xd8e7a9=_0x554132[_0xf066b1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xd8e7a9&&(!!_0xd8e7a9[_0xf066b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf066b1([0x2a]))||!!_0xd8e7a9[_0xf066b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf066b1([0x55,0x50,0x4c,0x43])));}function _0x9b7b11(){const _0x480d96=_0x554132[_0xf066b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x480d96||0x0==_0x480d96[_0xf066b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x24e23e}=new URL(window[_0xf066b1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x480d96[_0xf066b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24e23e))return!0x0;const _0x3f9dc7=_0x24e23e[_0xf066b1([0x73,0x70,0x6c,0x69,0x74])](_0xf066b1([0x2e]));return _0x480d96[_0xf066b1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x57a4ab=>_0x57a4ab[_0xf066b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf066b1([0x2a])))[_0xf066b1([0x6d,0x61,0x70])](_0x574616=>_0x574616[_0xf066b1([0x73,0x70,0x6c,0x69,0x74])](_0xf066b1([0x2e])))[_0xf066b1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x229474=>_0x229474[_0xf066b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3f9dc7[_0xf066b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xf066b1([0x6d,0x61,0x70])](_0x253516=>Array(_0x3f9dc7[_0xf066b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x253516[_0xf066b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xf066b1([0x66,0x69,0x6c,0x6c])](_0x253516[0x0]===_0xf066b1([0x2a])?_0xf066b1([0x2a]):'')[_0xf066b1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x253516))[_0xf066b1([0x73,0x6f,0x6d,0x65])](_0x34cecf=>_0x3f9dc7[_0xf066b1([0x65,0x76,0x65,0x72,0x79])]((_0x309c50,_0x55a0e4)=>_0x34cecf[_0x55a0e4]===_0x309c50||_0x34cecf[_0x55a0e4]===_0xf066b1([0x2a])));}function _0xa227c3(){return _0x322c96&&_0x4d7ef0?new window[(_0xf066b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3789e5,_0x331ed7)=>{_0x322c96[_0xf066b1([0x74,0x68,0x65,0x6e])](_0x3789e5,_0x331ed7),_0x4d7ef0[_0xf066b1([0x74,0x68,0x65,0x6e])](_0x536502=>{_0x536502!=_0xf066b1([0x56,0x61,0x6c,0x69,0x64])&&_0x3789e5(_0x536502);},_0x331ed7);}):_0x322c96||_0x4d7ef0||_0xf066b1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5430c3(_0xf09309,_0x1c07ce){return new window[(_0xf066b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3350fb=>{if(_0x1fdb2e())return _0x3350fb(_0xf066b1([0x56,0x61,0x6c,0x69,0x64]));_0x5e6543(),_0x2e628e[_0xf066b1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xf066b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x32b16b=!0x1;const _0x6639d8=_0x53c1f2();function _0xbc033a(_0x14d163){return!!_0x14d163&&(typeof _0x14d163===_0xf066b1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x14d163===_0xf066b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x14d163[_0xf066b1([0x74,0x68,0x65,0x6e])]===_0xf066b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x14d163[_0xf066b1([0x63,0x61,0x74,0x63,0x68])]===_0xf066b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f9e70(_0x26bc72){_0x2b7325(_0x26bc72)[_0xf066b1([0x74,0x68,0x65,0x6e])](_0x31242e=>{if(!_0x31242e||_0x31242e[_0xf066b1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xf066b1([0x6f,0x6b]))return _0xf066b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2fcc0f(_0x533ae1(_0x6639d8+_0x1c07ce))!=_0x31242e[_0xf066b1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xf066b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xf066b1([0x56,0x61,0x6c,0x69,0x64]);})[_0xf066b1([0x74,0x68,0x65,0x6e])](_0x332a07=>(_0x1a9cec(),_0x332a07),()=>{const _0x35bcb9=_0x315c40();return null==_0x35bcb9?(_0x1a9cec(),_0xf066b1([0x56,0x61,0x6c,0x69,0x64])):_0xf066b1(_0x78c82d-_0x35bcb9>(0x7753083a^_0x33f5a5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xf066b1([0x74,0x68,0x65,0x6e])](_0x3350fb)[_0xf066b1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3350fb(_0xf066b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x217583=0x536962ba^_0x33f5a5;function _0x1a9cec(){const _0x31ae19=_0xf066b1([0x6c,0x6c,0x63,0x74,0x2d])+_0x2fcc0f(_0x533ae1(_0xf09309)),_0x1f2a1b=_0x25b8cb(_0x2fcc0f(window[_0xf066b1([0x4d,0x61,0x74,0x68])][_0xf066b1([0x63,0x65,0x69,0x6c])](_0x78c82d/_0x217583)));window[_0xf066b1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf066b1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31ae19,_0x1f2a1b);}function _0x315c40(){const _0x44a2e9=_0xf066b1([0x6c,0x6c,0x63,0x74,0x2d])+_0x2fcc0f(_0x533ae1(_0xf09309)),_0x18c31d=window[_0xf066b1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf066b1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44a2e9);return _0x18c31d?window[_0xf066b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25b8cb(_0x18c31d),0x10)*_0x217583:null;}function _0x2b7325(_0x2ed59c){return new window[(_0xf066b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3eda07,_0x2fc18f)=>{_0x2ed59c[_0xf066b1([0x74,0x68,0x65,0x6e])](_0x3eda07,_0x2fc18f),window[_0xf066b1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2fc18f,0x535e58fa^_0x33f5a5);});}}_0x2e628e[_0xf066b1([0x6f,0x6e])](_0xf066b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5e3114,_0x5806ad)=>{if(_0x5806ad[0x0]!=_0xf09309)return _0x3350fb(_0xf066b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5806ad[0x1]={..._0x5806ad[0x1],[_0xf066b1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x6639d8};},{[_0xf066b1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf066b1([0x68,0x69,0x67,0x68])}),_0x2e628e[_0xf066b1([0x6f,0x6e])](_0xf066b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x509f66=>{_0xbc033a(_0x509f66[_0xf066b1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x32b16b=!0x0,_0x2f9e70(_0x509f66[_0xf066b1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xf066b1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf066b1([0x6c,0x6f,0x77])}),_0x37dbd0[_0xf066b1([0x74,0x68,0x65,0x6e])](()=>{_0x32b16b||_0x3350fb(_0xf066b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1fdb2e(){return _0x2e628e[_0xf066b1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf066b1([0x76,0x69,0x65,0x77])][_0xf066b1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xf066b1([0x61,0x75,0x74,0x6f]);}function _0x5e6543(){_0x2e628e[_0xf066b1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf066b1([0x76,0x69,0x65,0x77])][_0xf066b1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xf066b1([0x61,0x75,0x74,0x6f]);}}function _0x261b26(_0x4d1781){const _0x917105=[new window[(_0xf066b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e19df=>setTimeout(_0x2e19df,0x5356b2f6^_0x33f5a5)),_0x37dbd0[_0xf066b1([0x74,0x68,0x65,0x6e])](()=>new window[(_0xf066b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c86f4=>{let _0x1ca970=0x0;_0x2e628e[_0xf066b1([0x6d,0x6f,0x64,0x65,0x6c])][_0xf066b1([0x6f,0x6e])](_0xf066b1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x47ec4d,_0x49eca9)=>{_0x49eca9[0x0][_0xf066b1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1ca970++,_0x1ca970==(0x535f89d2^_0x33f5a5)&&(_0x3c86f4(),_0x47ec4d[_0xf066b1([0x6f,0x66,0x66])]());});}))];return window[_0xf066b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xf066b1([0x72,0x61,0x63,0x65])](_0x917105)[_0xf066b1([0x74,0x68,0x65,0x6e])](()=>_0x4d1781);}async function _0x11ef35(){await _0x37dbd0,_0x2e628e[_0xf066b1([0x6d,0x6f,0x64,0x65,0x6c])][_0xf066b1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5863d3,_0x2e628e[_0xf066b1([0x6d,0x6f,0x64,0x65,0x6c])][_0xf066b1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5863d3,_0x2e628e[_0xf066b1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xf066b1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x17d1ef(_0x356e47){const _0x19ff13=_0x3ac4f3();_0x2e628e[_0x19ff13]=_0xf066b1([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x356e47,_0x356e47!=_0xf066b1([0x56,0x61,0x6c,0x69,0x64])&&_0x11ef35();}function _0x3ac4f3(){const _0x2d17df=window[_0xf066b1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xf066b1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xf066b1([0x6e,0x6f,0x77])]())[_0xf066b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xf066b1([0x2e]),'');let _0x6ed80f=_0xf066b1([0x68]);for(let _0xd75dc7=0x0;_0xd75dc7<_0x2d17df[_0xf066b1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd75dc7+=0x2){let _0x27c84c=window[_0xf066b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d17df[_0xf066b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xd75dc7,_0xd75dc7+0x2));_0x27c84c>=_0xf7db7a[_0xf066b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x27c84c-=_0xf7db7a[_0xf066b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x6ed80f+=_0xf7db7a[_0x27c84c];}return _0x6ed80f;}function _0x1d5cf1(){const _0x13692d=_0x512d10[_0xf066b1([0x73,0x70,0x6c,0x69,0x74])](_0xf066b1([0x2e]));if(0x3!=_0x13692d[_0xf066b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5b4666(_0x13692d[0x1]);function _0x5b4666(_0x5a40d1){const _0x1be05c=_0x309aa6(_0x5a40d1);return _0x1be05c&&_0x143a13()?_0x1be05c:null;function _0x143a13(){const _0x23f8b7=_0x1be05c[_0xf066b1([0x6a,0x74,0x69])],_0x5ec152=window[_0xf066b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23f8b7[_0xf066b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23f8b7[_0xf066b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5dbaac={..._0x1be05c,[_0xf066b1([0x6a,0x74,0x69])]:_0x23f8b7[_0xf066b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x23f8b7[_0xf066b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5dbaac[_0xf066b1([0x76,0x63])],_0x533ae1(_0x5dbaac)==_0x5ec152;}}}async function _0x28d133(){let _0x113c60=!0x0;try{const _0x2d6630=_0x512d10[_0xf066b1([0x73,0x70,0x6c,0x69,0x74])](_0xf066b1([0x2e])),[_0x1d1893,_0xe6cfc0,_0x58125]=_0x2d6630;return _0x16b54a(_0x1d1893),await _0x16a7a1(_0x1d1893,_0xe6cfc0,_0x58125),_0x113c60;}catch{return!0x1;}function _0x16b54a(_0x3bdf5b){const _0x3c1216=_0x309aa6(_0x3bdf5b);_0x3c1216&&_0x3c1216[_0xf066b1([0x61,0x6c,0x67])]==_0xf066b1([0x45,0x53,0x32,0x35,0x36])||(_0x113c60=!0x1);}async function _0x16a7a1(_0x49d6c2,_0x54153d,_0x381247){const _0x301584=window[_0xf066b1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xf066b1([0x66,0x72,0x6f,0x6d])](_0x19297b(_0x381247),_0x3f8a49=>_0x3f8a49[_0xf066b1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x47eb16=new window[(_0xf066b1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xf066b1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x49d6c2+_0xf066b1([0x2e])+_0x54153d),_0x5fe26=window[_0xf066b1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xf066b1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5fe26)return;const _0x43ebc4=await _0x5fe26[_0xf066b1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xf066b1([0x6a,0x77,0x6b]),_0x5df489,{[_0xf066b1([0x6e,0x61,0x6d,0x65])]:_0xf066b1([0x45,0x43,0x44,0x53,0x41]),[_0xf066b1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xf066b1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xf066b1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5fe26[_0xf066b1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xf066b1([0x6e,0x61,0x6d,0x65])]:_0xf066b1([0x45,0x43,0x44,0x53,0x41]),[_0xf066b1([0x68,0x61,0x73,0x68])]:{[_0xf066b1([0x6e,0x61,0x6d,0x65])]:_0xf066b1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x43ebc4,_0x301584,_0x47eb16)||(_0x113c60=!0x1);}}function _0x309aa6(_0x498d87){return _0x498d87[_0xf066b1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xf066b1([0x65,0x79]))?JSON[_0xf066b1([0x70,0x61,0x72,0x73,0x65])](_0x19297b(_0x498d87)):null;}function _0x19297b(_0x31996f){return window[_0xf066b1([0x61,0x74,0x6f,0x62])](_0x31996f[_0xf066b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xf066b1([0x2b]))[_0xf066b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xf066b1([0x2f])));}function _0x533ae1(_0x9de588){let _0x113f24=0x1505;function _0x5f5a2b(_0x33a8e4){for(let _0x571977=0x0;_0x571977<_0x33a8e4[_0xf066b1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x571977++){const _0x57eb60=_0x33a8e4[_0xf066b1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x571977);_0x113f24=(_0x113f24<<0x5)+_0x113f24+_0x57eb60,_0x113f24&=_0x113f24;}}function _0x5ae72f(_0x3a5be2){Array[_0xf066b1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3a5be2)?_0x3a5be2[_0xf066b1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5ae72f):_0x3a5be2&&typeof _0x3a5be2==_0xf066b1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xf066b1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3a5be2)[_0xf066b1([0x73,0x6f,0x72,0x74])]()[_0xf066b1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x493169,_0x254d37])=>{_0x5f5a2b(_0x493169),_0x5ae72f(_0x254d37);}):_0x5f5a2b(window[_0xf066b1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3a5be2));}return _0x5ae72f(_0x9de588),_0x113f24>>>0x0;}function _0x2fcc0f(_0x19c8f0){return _0x19c8f0[_0xf066b1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xf066b1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xf066b1([0x30]));}function _0x25b8cb(_0x300380){return _0x300380[_0xf066b1([0x73,0x70,0x6c,0x69,0x74])]('')[_0xf066b1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xf066b1([0x6a,0x6f,0x69,0x6e])]('');}function _0x5863d3(){}function _0xf066b1(_0xfe781b){return _0xfe781b['map'](_0x37e539=>String['fromCharCode'](_0x37e539))['join']('');}_0x17d1ef(await _0x1c5c0c());}(this);}['_initSchema'](){const _0x4e7c73=this['editor']['model']['schema'];_0x4e7c73['isRegistered']('imageBlock')&&_0x4e7c73['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4e7c73['isRegistered']('imageInline')&&_0x4e7c73['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5139b9=this['editor'];_0x5139b9['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5139b9['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x134ca2=>_0x134ca2['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x473332=_0x5139b9['commands']['get']('replaceImageSource');_0x473332&&this['listenTo'](_0x473332,'cleanupImage',(_0x25c368,[_0x1a699e,_0x3deb53])=>{_0x1a699e['removeAttribute']('uploadcareImageId',_0x3deb53);});}['_initConfig'](){const _0x3c01c7=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2b1511=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4b3ce8(_0x43e1e7['document'],'uc-config',{..._0x3c01c7,'pubkey':_0x2b1511,'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']=_0x4af642=>{if('closeMax'==_0x4af642)return'#uc-icon-arrow-down';},_0x43e1e7['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4b3ce8(_0x43e1e7['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x43e1e7['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xbc5538=this['editor']['commands']['get']('insertImage');_0xbc5538&&this['listenTo'](_0xbc5538,'execute',()=>{const _0x2a0ac8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2a0ac8&&_0x2a0ac8['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2a0ac8);});});const _0x424430=this['editor']['commands']['get']('uploadcareImageReplace');_0x424430&&this['listenTo'](_0x424430,'execute',()=>{const _0x1e9ccb=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1e9ccb&&_0x1e9ccb['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1e9ccb);});});}}class tt extends _0x4d25b3{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1da080){super(_0x1da080),_0x1da080['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4aed52['defineComponents'](_0x4aed52),this['_defineLocale']();}['_defineLocale'](){const _0x145783=this['editor']['config']['get']('uploadcare.locale'),_0x554123=this['editor']['locale']['contentLanguage'];_0x145783&&_0x4aed52['defineLocale'](_0x554123,_0x145783);}}class ii extends _0x3eb62f{constructor(_0x158d04){super(_0x158d04);const t=_0x158d04['t'],_0x47352b=this['bindTemplate'],_0x1b4775=new _0x35b370();_0x1b4775['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':[_0x1b4775,{'text':_0x47352b['to']('imageUploadProgress',_0x31525b=>t('Loading\x20image...')+'\x20('+(_0x31525b||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 _0x3eb62f{constructor(_0x344547){super(_0x344547);const t=_0x344547['t'];this['set']('errorType',null);const _0x2bfbce=new _0x3a603b(_0x344547);_0x2bfbce['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2bfbce['withText']=!0x0,_0x2bfbce['class']='ck-button-action',_0x2bfbce['on']('execute',()=>{this['fire']('retry');}),_0x2bfbce['bind']('isVisible')['to'](this,'errorType',_0x1f3e8a=>'NotFound'!==_0x1f3e8a);const _0x4be526=new _0xbb98e();_0x4be526['content']=_0x3cf9b7,_0x4be526['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3465e5=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':[_0x4be526,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3465e5['to']('errorType',_0xc5f507=>t('NotFound'!==_0xc5f507?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2bfbce]},{'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 _0x3eb62f{constructor(_0x522b05,_0x10b3f9){super(_0x522b05);const _0xf6b095=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x10b3f9,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0xf6b095['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xca88e1,_0x33652a,_0x490e03){super(_0xca88e1),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xca88e1),this['_errorView']=new ti(_0xca88e1),this['_editingView']=new ei(_0xca88e1,_0x490e03),this['_focusableView']=new _0x3eb62f(_0xca88e1),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x33652a),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'],_0x3f4fc1=>{this['_addUploadcareImageEditorListeners'](_0x3f4fc1);});}),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'](_0x3f0b47,_0x4737d6){const _0xf5c258='uc-cloud-image-editor',_0x2b424f=_0x3f0b47['querySelector'](_0xf5c258);if(_0x2b424f)return _0x4737d6(_0x2b424f);const _0xe3f783=new MutationObserver(_0x53ec68=>{const _0x13c246=_0x53ec68['filter'](_0x2eb0f3=>_0x2eb0f3['target']===_0x3f0b47&&_0x2eb0f3['addedNodes']['length']>0x0&&_0x2eb0f3['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xf5c258);_0x13c246['length']&&(_0xe3f783['disconnect'](),_0x4737d6(_0x13c246[0x0]['addedNodes'][0x0]));});_0xe3f783['observe'](_0x3f0b47,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x52707b){_0x52707b['addEventListener']('apply',_0x204391=>{this['fire']('apply',{'imageSrc':_0x204391['detail']['cdnUrl']});}),_0x52707b['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4c3ba5(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x28c205,_0x79814c,_0x1a76e1){super(),this['_editor']=_0x28c205,this['_dialog']=_0x79814c,this['_imageElement']=_0x1a76e1,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 _0x382404=this['_imageElement'],_0x362efd=_0x382404['getAttribute']('uploadcareImageId'),_0x566ccc=_0x382404['getAttribute']('src');if(_0x362efd)await this['_loadImageInfo'](_0x362efd,_0x566ccc);else{if(this['_imageCache']['has'](_0x566ccc)){const _0x2eb0ca=this['_imageCache']['get'](_0x566ccc);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2eb0ca['url'],this['imageDimension']=_0x2eb0ca['dimension'],this['imageId']=_0x2eb0ca['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2e5ca6}=this['_editor'],t=_0x2e5ca6['t'],_0x54b270=new X(_0x2e5ca6,this['imageStatus'],this['_attributes']);_0x54b270['bind']('status')['to'](this,'imageStatus'),_0x54b270['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x54b270['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x54b270['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x54b270,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xaddb6e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x54b270,'position':_0x45ff54['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x54b270['focus']();},'onHide':()=>{_0x54b270['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x249601=>!A(_0x249601,_0x54b270['element'])}});}['_loadImageInfo'](_0x57ee56,_0x32cfed){return j['getInfo'](_0x57ee56,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x336ac6=>{const {width:_0xbecedf,height:_0x38c278}=_0x336ac6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x32cfed,this['imageDimension']={'width':_0xbecedf,'height':_0x38c278},this['imageId']=_0x57ee56;})['catch'](_0x5d21d5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5d21d5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xdc7fa,_0x4ed392){return this['_getImageAsFile'](_0xdc7fa)['then'](_0xf967cd=>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':_0x4ed392['signal'],'file':_0xf967cd,'onProgress':_0x2a9eed=>{_0x2a9eed&&_0x2a9eed['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2a9eed['value']));}}))['then'](_0x355c43=>{const {width:_0x19922e,height:_0x21b7d7}=_0x355c43['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x355c43['cdnUrl'],this['imageDimension']={'width':_0x19922e,'height':_0x21b7d7},this['imageId']=_0x355c43['uuid'],this['imageUploadProgress']=null;const _0xa946f5=_0xdc7fa['getAttribute']('src');this['_imageCache']['set'](_0xa946f5,{'id':_0x355c43['uuid'],'url':_0x355c43['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x18cec3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x18cec3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xd5f4ca,_0x1a7580){_0xd5f4ca['on']('apply',(_0x185da5,_0x13f213)=>{this['_replaceImage'](_0x1a7580,_0x13f213['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xd5f4ca['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xd5f4ca['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x396e6b,_0x53e7eb,_0x98200c){const _0x314014=this['_editor'],{width:_0x237dbb,height:_0x29b064}=S(_0x53e7eb,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x49abfe,imageSources:_0x2af623}=C(_0x53e7eb,_0x237dbb);_0x314014['model']['change'](_0x2b940e=>{if('$graveyard'===_0x396e6b['root']['rootName']){_0x314014['execute']('insertImage',{'imageType':_0x396e6b['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x396e6b['getAttributes']()),'uploadcareImageId':_0x98200c,'src':_0x49abfe,'sources':_0x2af623,'width':_0x237dbb,'height':_0x29b064}});const _0x497a0d=_0x396e6b['getChildren']();_0x396e6b=_0x314014['model']['document']['selection']['getSelectedElement']();for(const _0x53436d of _0x497a0d)_0x2b940e['append'](_0x2b940e['cloneElement'](_0x53436d),_0x396e6b);}else _0x2b940e['setSelection'](_0x396e6b,'on'),_0x314014['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x396e6b['getAttributes']()),'uploadcareImageId':_0x98200c,'src':_0x49abfe,'sources':_0x2af623,'width':_0x237dbb,'height':_0x29b064},_0x396e6b);_0x2b940e['setSelection'](_0x396e6b,'on');});}async['_getImageAsFile'](_0x143912){const _0x2638bb=_0x43e1e7['window'],_0x2e46b5=_0x43e1e7['document']['location']['href'],_0x3c8ba8=new _0x2638bb['URL'](_0x143912['getAttribute']('src'),_0x2e46b5);if('data:'===_0x3c8ba8['protocol']){const _0x50dc40=_0x3c8ba8['href']['split'](','),_0x3ffec9=_0x50dc40[0x0]['match'](/:(.*?);/)[0x1],_0x24059b=_0x3ffec9['split']('/')[0x1],_0x5c3826=_0x2638bb['atob'](_0x50dc40[_0x50dc40['length']-0x1]);let _0x213cf3=_0x5c3826['length'];const _0x5f5512=new _0x2638bb['Uint8Array'](_0x213cf3);for(;_0x213cf3--;)_0x5f5512[_0x213cf3]=_0x5c3826['charCodeAt'](_0x213cf3);return new _0x2638bb['File']([_0x5f5512],'image.'+_0x24059b,{'type':_0x3ffec9});}const _0x3e6f8f=_0x3c8ba8['href']['split']('/'),_0x3cf396=_0x3e6f8f[_0x3e6f8f['length']-0x1],_0x3e6fe0=_0x3cf396['split']('.')[0x1];return _0x2638bb['fetch'](_0x3c8ba8['href'])['then'](_0x59d40f=>_0x59d40f['clone']()['blob']())['then'](_0x472249=>new _0x2638bb['File']([_0x472249],_0x3cf396,{'type':'image/'+_0x3e6fe0}));}}class O extends _0x4794c6{['imageEditController'];static get['requires'](){return[_0x4da0c8];}['_isEditable'];constructor(_0x32b330){super(_0x32b330),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xdae239){const _0x4e5809=G(_0xdae239);return _0x4d31f0=>!(!_0x4d31f0||!_0x4d31f0['is']('element','imageBlock')&&!_0x4d31f0['is']('element','imageInline'))&&(!!_0x4d31f0['hasAttribute']('uploadcareImageId')||!!_0x4d31f0['hasAttribute']('src')&&_0x4e5809(_0x4d31f0['getAttribute']('src')));}(_0x32b330['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x409784=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x409784);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x499b93=this['editor']['model']['document']['selection']['getSelectedElement']();_0x499b93&&(_0x499b93['is']('element','imageBlock')||_0x499b93['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x4da0c8),_0x499b93),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x4794c6{['refresh'](){const _0x4f7494=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4f7494&&(_0x4f7494['is']('element','imageBlock')||_0x4f7494['is']('element','imageInline')));}['execute'](_0x193ad2){const _0x5ba874=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4435cc=>{_0x4435cc['setAttributes'](_0x193ad2,_0x5ba874),_0x4435cc['removeAttribute']('srcset',_0x5ba874),_0x4435cc['removeAttribute']('sizes',_0x5ba874);});}}class m extends _0x4d25b3{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x40cd31,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5eda1a}=this;_0x5eda1a['commands']['add']('uploadcareImageEdit',new O(_0x5eda1a)),_0x5eda1a['commands']['add']('uploadcareImageReplace',new R(_0x5eda1a));}}class g extends _0x4d25b3{['_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 _0x3cef83=this['editor'];_0x3cef83['ui']['componentFactory']['add']('uploadcareImageEdit',_0x517c63=>{const _0x59fb6c=_0x3cef83['commands']['get']('uploadcareImageEdit'),_0x421093=new _0x3a603b(_0x517c63),t=_0x517c63['t'];return _0x421093['set']({'icon':_0xaddb6e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x421093['bind']('isEnabled')['to'](_0x59fb6c),_0x421093['bind']('isOn')['to'](_0x59fb6c,'isActive'),this['listenTo'](_0x421093,'execute',()=>{_0x3cef83['execute']('uploadcareImageEdit'),_0x3cef83['editing']['view']['focus']();}),_0x421093;}),this['_initConfig']();}['_initConfig'](){const _0x3e0a1e=_0x4b3ce8(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3e0a1e),this['listenTo'](this['editor'],'destroy',()=>{_0x3e0a1e['remove']();});}}class et extends _0x4d25b3{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};
|
package/dist/translations/af.js
CHANGED
|
@@ -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':_0xeecad6=>0x1!=_0xeecad6}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3f012d=>{const {af:{dictionary:_0x54ab54,getPluralForm:_0x4787e4}}={'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':_0x277588=>0x1!=_0x277588}};_0x3f012d['af']||={'dictionary':{},'getPluralForm':null},_0x3f012d['af']['dictionary']=Object['assign'](_0x3f012d['af']['dictionary'],_0x54ab54),_0x3f012d['af']['getPluralForm']=_0x4787e4;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ar.js
CHANGED
|
@@ -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':_0x137de7=>0x0==_0x137de7?0x0:0x1==_0x137de7?0x1:0x2==_0x137de7?0x2:_0x137de7%0x64>=0x3&&_0x137de7%0x64<=0xa?0x3:_0x137de7%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x45a915=>{const {ar:{dictionary:_0x407aa6,getPluralForm:_0x258343}}={'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':_0x3474f8=>0x0==_0x3474f8?0x0:0x1==_0x3474f8?0x1:0x2==_0x3474f8?0x2:_0x3474f8%0x64>=0x3&&_0x3474f8%0x64<=0xa?0x3:_0x3474f8%0x64>=0xb?0x4:0x5}};_0x45a915['ar']||={'dictionary':{},'getPluralForm':null},_0x45a915['ar']['dictionary']=Object['assign'](_0x45a915['ar']['dictionary'],_0x407aa6),_0x45a915['ar']['getPluralForm']=_0x258343;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ast.js
CHANGED
|
@@ -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':_0x3e1ca3=>0x1!=_0x3e1ca3}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x45f534=>{const {ast:{dictionary:_0x5d12d7,getPluralForm:_0x1d2922}}={'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':_0x52da92=>0x1!=_0x52da92}};_0x45f534['ast']||={'dictionary':{},'getPluralForm':null},_0x45f534['ast']['dictionary']=Object['assign'](_0x45f534['ast']['dictionary'],_0x5d12d7),_0x45f534['ast']['getPluralForm']=_0x1d2922;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/az.js
CHANGED
|
@@ -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':_0x485955=>0x1!=_0x485955}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x21a3e0=>{const {az:{dictionary:_0x5b8169,getPluralForm:_0x5dad3f}}={'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':_0xc0441=>0x1!=_0xc0441}};_0x21a3e0['az']||={'dictionary':{},'getPluralForm':null},_0x21a3e0['az']['dictionary']=Object['assign'](_0x21a3e0['az']['dictionary'],_0x5b8169),_0x21a3e0['az']['getPluralForm']=_0x5dad3f;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/be.js
CHANGED
|
@@ -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':_0x785318=>_0x785318%0xa==0x1&&_0x785318%0x64!=0xb?0x0:_0x785318%0xa>=0x2&&_0x785318%0xa<=0x4&&(_0x785318%0x64<0xa||_0x785318%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x30acef=>{const {be:{dictionary:_0xb8f984,getPluralForm:_0x3bcbb4}}={'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':_0x1ec90c=>_0x1ec90c%0xa==0x1&&_0x1ec90c%0x64!=0xb?0x0:_0x1ec90c%0xa>=0x2&&_0x1ec90c%0xa<=0x4&&(_0x1ec90c%0x64<0xa||_0x1ec90c%0x64>=0x14)?0x1:0x2}};_0x30acef['be']||={'dictionary':{},'getPluralForm':null},_0x30acef['be']['dictionary']=Object['assign'](_0x30acef['be']['dictionary'],_0xb8f984),_0x30acef['be']['getPluralForm']=_0x3bcbb4;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bg.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bg':{'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през\x20URL','Edit\x20Image\x20(Uploadcare)':'Редактиране\x20на\x20изображението','Loading\x20image...':'Изображението\x20се\x20зарежда...','Unable\x20to\x20load':'Не\x20може\x20да\x20зареди','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Не\x20успяхме\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може\x20да\x20е\x20премахнат.'},'getPluralForm':
|
|
23
|
+
export default{'bg':{'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през\x20URL','Edit\x20Image\x20(Uploadcare)':'Редактиране\x20на\x20изображението','Loading\x20image...':'Изображението\x20се\x20зарежда...','Unable\x20to\x20load':'Не\x20може\x20да\x20зареди','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Не\x20успяхме\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може\x20да\x20е\x20премахнат.'},'getPluralForm':_0x2689b6=>0x1!=_0x2689b6}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x139616=>{const {bg:{dictionary:_0x4b6896,getPluralForm:_0x513d53}}={'bg':{'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през\x20URL','Edit\x20Image\x20(Uploadcare)':'Редактиране\x20на\x20изображението','Loading\x20image...':'Изображението\x20се\x20зарежда...','Unable\x20to\x20load':'Не\x20може\x20да\x20зареди','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Не\x20успяхме\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може\x20да\x20е\x20премахнат.'},'getPluralForm':_0x47f06a=>0x1!=_0x47f06a}};_0x139616['bg']||={'dictionary':{},'getPluralForm':null},_0x139616['bg']['dictionary']=Object['assign'](_0x139616['bg']['dictionary'],_0x4b6896),_0x139616['bg']['getPluralForm']=_0x513d53;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bn.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bn':{'dictionary':{'Insert\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Dropbox':'Dropbox\x20দিয়ে','Insert\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Facebook':'Facebook\x20দিয়ে','Insert\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে','Insert\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে','Insert\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20OneDrive':'OneDrive\x20দিয়ে','Replace\x20via\x20URL':'URL\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','Edit\x20Image\x20(Uploadcare)':'ছবি\x20এডিট\x20করুন','Loading\x20image...':'ছবি\x20লোড\x20হচ্ছে...','Unable\x20to\x20load':'লোড\x20করা\x20যাচ্ছে\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চেষ্টা\x20করুন','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'ছবিটি\x20পাওয়া\x20যায়নি।\x20এর\x20উৎস\x20হয়তো\x20মুছে\x20ফেলা\x20হয়েছে।'},'getPluralForm':
|
|
23
|
+
export default{'bn':{'dictionary':{'Insert\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Dropbox':'Dropbox\x20দিয়ে','Insert\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Facebook':'Facebook\x20দিয়ে','Insert\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে','Insert\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে','Insert\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20OneDrive':'OneDrive\x20দিয়ে','Replace\x20via\x20URL':'URL\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','Edit\x20Image\x20(Uploadcare)':'ছবি\x20এডিট\x20করুন','Loading\x20image...':'ছবি\x20লোড\x20হচ্ছে...','Unable\x20to\x20load':'লোড\x20করা\x20যাচ্ছে\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চেষ্টা\x20করুন','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'ছবিটি\x20পাওয়া\x20যায়নি।\x20এর\x20উৎস\x20হয়তো\x20মুছে\x20ফেলা\x20হয়েছে।'},'getPluralForm':_0x241d40=>0x1!=_0x241d40}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x450dfb=>{const {bn:{dictionary:_0xe590c3,getPluralForm:_0x3dc36f}}={'bn':{'dictionary':{'Insert\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Dropbox':'Dropbox\x20দিয়ে','Insert\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Facebook':'Facebook\x20দিয়ে','Insert\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে','Insert\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে','Insert\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20OneDrive':'OneDrive\x20দিয়ে','Replace\x20via\x20URL':'URL\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','Edit\x20Image\x20(Uploadcare)':'ছবি\x20এডিট\x20করুন','Loading\x20image...':'ছবি\x20লোড\x20হচ্ছে...','Unable\x20to\x20load':'লোড\x20করা\x20যাচ্ছে\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চেষ্টা\x20করুন','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'ছবিটি\x20পাওয়া\x20যায়নি।\x20এর\x20উৎস\x20হয়তো\x20মুছে\x20ফেলা\x20হয়েছে।'},'getPluralForm':_0x2858dd=>0x1!=_0x2858dd}};_0x450dfb['bn']||={'dictionary':{},'getPluralForm':null},_0x450dfb['bn']['dictionary']=Object['assign'](_0x450dfb['bn']['dictionary'],_0xe590c3),_0x450dfb['bn']['getPluralForm']=_0x3dc36f;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bs.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bs':{'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{'bs':{'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':_0x57fd12=>_0x57fd12%0xa==0x1&&_0x57fd12%0x64!=0xb?0x0:_0x57fd12%0xa>=0x2&&_0x57fd12%0xa<=0x4&&(_0x57fd12%0x64<0xa||_0x57fd12%0x64>=0x14)?0x1:0x2}};
|