@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250215.0 → 0.0.0-nightly-next-20250215.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.
Files changed (403) hide show
  1. package/LICENSE.md +0 -5
  2. package/README.md +5 -16
  3. package/build/uploadcare.js +1 -2
  4. package/ckeditor5-metadata.json +1 -1
  5. package/dist/index.js +3 -3
  6. package/lang/contexts.json +3 -0
  7. package/package.json +9 -8
  8. package/src/index.js +1 -1
  9. package/src/ui/uploadcarecontroller.d.ts +2 -6
  10. package/src/ui/uploadcarecontroller.js +2 -2
  11. package/src/ui/uploadcareformview.js +1 -1
  12. package/src/uploadcare.js +1 -1
  13. package/src/uploadcarecommand.js +1 -1
  14. package/src/uploadcareconfig.d.ts +8 -9
  15. package/src/uploadcareconfig.js +1 -1
  16. package/src/uploadcareediting.js +1 -1
  17. package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
  18. package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
  19. package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +1 -4
  20. package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
  21. package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
  22. package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
  23. package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
  24. package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
  25. package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
  26. package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
  27. package/src/uploadcareimageedit.js +1 -1
  28. package/src/uploadcareui.js +1 -1
  29. package/src/uploadcareuploadadapter.js +1 -1
  30. package/src/utils/common-translations.js +1 -1
  31. package/src/utils/dialogfocusmanagerview.js +1 -1
  32. package/src/utils/editingutils.js +1 -1
  33. package/src/utils/isancestor.js +1 -1
  34. package/src/utils/uploadutils.js +1 -1
  35. package/build/translations/af.js +0 -1
  36. package/build/translations/ar.js +0 -1
  37. package/build/translations/ast.js +0 -1
  38. package/build/translations/az.js +0 -1
  39. package/build/translations/bg.js +0 -1
  40. package/build/translations/bn.js +0 -1
  41. package/build/translations/bs.js +0 -1
  42. package/build/translations/ca.js +0 -1
  43. package/build/translations/cs.js +0 -1
  44. package/build/translations/da.js +0 -1
  45. package/build/translations/de-ch.js +0 -1
  46. package/build/translations/de.js +0 -1
  47. package/build/translations/el.js +0 -1
  48. package/build/translations/en-au.js +0 -1
  49. package/build/translations/en-gb.js +0 -1
  50. package/build/translations/eo.js +0 -1
  51. package/build/translations/es-co.js +0 -1
  52. package/build/translations/es.js +0 -1
  53. package/build/translations/et.js +0 -1
  54. package/build/translations/eu.js +0 -1
  55. package/build/translations/fa.js +0 -1
  56. package/build/translations/fi.js +0 -1
  57. package/build/translations/fr.js +0 -1
  58. package/build/translations/gl.js +0 -1
  59. package/build/translations/gu.js +0 -1
  60. package/build/translations/he.js +0 -1
  61. package/build/translations/hi.js +0 -1
  62. package/build/translations/hr.js +0 -1
  63. package/build/translations/hu.js +0 -1
  64. package/build/translations/hy.js +0 -1
  65. package/build/translations/id.js +0 -1
  66. package/build/translations/it.js +0 -1
  67. package/build/translations/ja.js +0 -1
  68. package/build/translations/jv.js +0 -1
  69. package/build/translations/kk.js +0 -1
  70. package/build/translations/km.js +0 -1
  71. package/build/translations/kn.js +0 -1
  72. package/build/translations/ko.js +0 -1
  73. package/build/translations/ku.js +0 -1
  74. package/build/translations/lt.js +0 -1
  75. package/build/translations/lv.js +0 -1
  76. package/build/translations/ms.js +0 -1
  77. package/build/translations/nb.js +0 -1
  78. package/build/translations/ne.js +0 -1
  79. package/build/translations/nl.js +0 -1
  80. package/build/translations/no.js +0 -1
  81. package/build/translations/oc.js +0 -1
  82. package/build/translations/pl.js +0 -1
  83. package/build/translations/pt-br.js +0 -1
  84. package/build/translations/pt.js +0 -1
  85. package/build/translations/ro.js +0 -1
  86. package/build/translations/ru.js +0 -1
  87. package/build/translations/si.js +0 -1
  88. package/build/translations/sk.js +0 -1
  89. package/build/translations/sl.js +0 -1
  90. package/build/translations/sq.js +0 -1
  91. package/build/translations/sr-latn.js +0 -1
  92. package/build/translations/sr.js +0 -1
  93. package/build/translations/sv.js +0 -1
  94. package/build/translations/th.js +0 -1
  95. package/build/translations/ti.js +0 -1
  96. package/build/translations/tk.js +0 -1
  97. package/build/translations/tr.js +0 -1
  98. package/build/translations/tt.js +0 -1
  99. package/build/translations/ug.js +0 -1
  100. package/build/translations/uk.js +0 -1
  101. package/build/translations/ur.js +0 -1
  102. package/build/translations/uz.js +0 -1
  103. package/build/translations/vi.js +0 -1
  104. package/build/translations/zh-cn.js +0 -1
  105. package/build/translations/zh.js +0 -1
  106. package/dist/translations/af.d.ts +0 -8
  107. package/dist/translations/af.js +0 -23
  108. package/dist/translations/af.umd.js +0 -23
  109. package/dist/translations/ar.d.ts +0 -8
  110. package/dist/translations/ar.js +0 -23
  111. package/dist/translations/ar.umd.js +0 -23
  112. package/dist/translations/ast.d.ts +0 -8
  113. package/dist/translations/ast.js +0 -23
  114. package/dist/translations/ast.umd.js +0 -23
  115. package/dist/translations/az.d.ts +0 -8
  116. package/dist/translations/az.js +0 -23
  117. package/dist/translations/az.umd.js +0 -23
  118. package/dist/translations/bg.d.ts +0 -8
  119. package/dist/translations/bg.js +0 -23
  120. package/dist/translations/bg.umd.js +0 -23
  121. package/dist/translations/bn.d.ts +0 -8
  122. package/dist/translations/bn.js +0 -23
  123. package/dist/translations/bn.umd.js +0 -23
  124. package/dist/translations/bs.d.ts +0 -8
  125. package/dist/translations/bs.js +0 -23
  126. package/dist/translations/bs.umd.js +0 -23
  127. package/dist/translations/ca.d.ts +0 -8
  128. package/dist/translations/ca.js +0 -23
  129. package/dist/translations/ca.umd.js +0 -23
  130. package/dist/translations/cs.d.ts +0 -8
  131. package/dist/translations/cs.js +0 -23
  132. package/dist/translations/cs.umd.js +0 -23
  133. package/dist/translations/da.d.ts +0 -8
  134. package/dist/translations/da.js +0 -23
  135. package/dist/translations/da.umd.js +0 -23
  136. package/dist/translations/de-ch.d.ts +0 -8
  137. package/dist/translations/de-ch.js +0 -23
  138. package/dist/translations/de-ch.umd.js +0 -23
  139. package/dist/translations/de.d.ts +0 -8
  140. package/dist/translations/de.js +0 -23
  141. package/dist/translations/de.umd.js +0 -23
  142. package/dist/translations/el.d.ts +0 -8
  143. package/dist/translations/el.js +0 -23
  144. package/dist/translations/el.umd.js +0 -23
  145. package/dist/translations/en-au.d.ts +0 -8
  146. package/dist/translations/en-au.js +0 -23
  147. package/dist/translations/en-au.umd.js +0 -23
  148. package/dist/translations/en-gb.d.ts +0 -8
  149. package/dist/translations/en-gb.js +0 -23
  150. package/dist/translations/en-gb.umd.js +0 -23
  151. package/dist/translations/en.d.ts +0 -8
  152. package/dist/translations/en.js +0 -23
  153. package/dist/translations/en.umd.js +0 -23
  154. package/dist/translations/eo.d.ts +0 -8
  155. package/dist/translations/eo.js +0 -23
  156. package/dist/translations/eo.umd.js +0 -23
  157. package/dist/translations/es-co.d.ts +0 -8
  158. package/dist/translations/es-co.js +0 -23
  159. package/dist/translations/es-co.umd.js +0 -23
  160. package/dist/translations/es.d.ts +0 -8
  161. package/dist/translations/es.js +0 -23
  162. package/dist/translations/es.umd.js +0 -23
  163. package/dist/translations/et.d.ts +0 -8
  164. package/dist/translations/et.js +0 -23
  165. package/dist/translations/et.umd.js +0 -23
  166. package/dist/translations/eu.d.ts +0 -8
  167. package/dist/translations/eu.js +0 -23
  168. package/dist/translations/eu.umd.js +0 -23
  169. package/dist/translations/fa.d.ts +0 -8
  170. package/dist/translations/fa.js +0 -23
  171. package/dist/translations/fa.umd.js +0 -23
  172. package/dist/translations/fi.d.ts +0 -8
  173. package/dist/translations/fi.js +0 -23
  174. package/dist/translations/fi.umd.js +0 -23
  175. package/dist/translations/fr.d.ts +0 -8
  176. package/dist/translations/fr.js +0 -23
  177. package/dist/translations/fr.umd.js +0 -23
  178. package/dist/translations/gl.d.ts +0 -8
  179. package/dist/translations/gl.js +0 -23
  180. package/dist/translations/gl.umd.js +0 -23
  181. package/dist/translations/gu.d.ts +0 -8
  182. package/dist/translations/gu.js +0 -23
  183. package/dist/translations/gu.umd.js +0 -23
  184. package/dist/translations/he.d.ts +0 -8
  185. package/dist/translations/he.js +0 -23
  186. package/dist/translations/he.umd.js +0 -23
  187. package/dist/translations/hi.d.ts +0 -8
  188. package/dist/translations/hi.js +0 -23
  189. package/dist/translations/hi.umd.js +0 -23
  190. package/dist/translations/hr.d.ts +0 -8
  191. package/dist/translations/hr.js +0 -23
  192. package/dist/translations/hr.umd.js +0 -23
  193. package/dist/translations/hu.d.ts +0 -8
  194. package/dist/translations/hu.js +0 -23
  195. package/dist/translations/hu.umd.js +0 -23
  196. package/dist/translations/hy.d.ts +0 -8
  197. package/dist/translations/hy.js +0 -23
  198. package/dist/translations/hy.umd.js +0 -23
  199. package/dist/translations/id.d.ts +0 -8
  200. package/dist/translations/id.js +0 -23
  201. package/dist/translations/id.umd.js +0 -23
  202. package/dist/translations/it.d.ts +0 -8
  203. package/dist/translations/it.js +0 -23
  204. package/dist/translations/it.umd.js +0 -23
  205. package/dist/translations/ja.d.ts +0 -8
  206. package/dist/translations/ja.js +0 -23
  207. package/dist/translations/ja.umd.js +0 -23
  208. package/dist/translations/jv.d.ts +0 -8
  209. package/dist/translations/jv.js +0 -23
  210. package/dist/translations/jv.umd.js +0 -23
  211. package/dist/translations/kk.d.ts +0 -8
  212. package/dist/translations/kk.js +0 -23
  213. package/dist/translations/kk.umd.js +0 -23
  214. package/dist/translations/km.d.ts +0 -8
  215. package/dist/translations/km.js +0 -23
  216. package/dist/translations/km.umd.js +0 -23
  217. package/dist/translations/kn.d.ts +0 -8
  218. package/dist/translations/kn.js +0 -23
  219. package/dist/translations/kn.umd.js +0 -23
  220. package/dist/translations/ko.d.ts +0 -8
  221. package/dist/translations/ko.js +0 -23
  222. package/dist/translations/ko.umd.js +0 -23
  223. package/dist/translations/ku.d.ts +0 -8
  224. package/dist/translations/ku.js +0 -23
  225. package/dist/translations/ku.umd.js +0 -23
  226. package/dist/translations/lt.d.ts +0 -8
  227. package/dist/translations/lt.js +0 -23
  228. package/dist/translations/lt.umd.js +0 -23
  229. package/dist/translations/lv.d.ts +0 -8
  230. package/dist/translations/lv.js +0 -23
  231. package/dist/translations/lv.umd.js +0 -23
  232. package/dist/translations/ms.d.ts +0 -8
  233. package/dist/translations/ms.js +0 -23
  234. package/dist/translations/ms.umd.js +0 -23
  235. package/dist/translations/nb.d.ts +0 -8
  236. package/dist/translations/nb.js +0 -23
  237. package/dist/translations/nb.umd.js +0 -23
  238. package/dist/translations/ne.d.ts +0 -8
  239. package/dist/translations/ne.js +0 -23
  240. package/dist/translations/ne.umd.js +0 -23
  241. package/dist/translations/nl.d.ts +0 -8
  242. package/dist/translations/nl.js +0 -23
  243. package/dist/translations/nl.umd.js +0 -23
  244. package/dist/translations/no.d.ts +0 -8
  245. package/dist/translations/no.js +0 -23
  246. package/dist/translations/no.umd.js +0 -23
  247. package/dist/translations/oc.d.ts +0 -8
  248. package/dist/translations/oc.js +0 -23
  249. package/dist/translations/oc.umd.js +0 -23
  250. package/dist/translations/pl.d.ts +0 -8
  251. package/dist/translations/pl.js +0 -23
  252. package/dist/translations/pl.umd.js +0 -23
  253. package/dist/translations/pt-br.d.ts +0 -8
  254. package/dist/translations/pt-br.js +0 -23
  255. package/dist/translations/pt-br.umd.js +0 -23
  256. package/dist/translations/pt.d.ts +0 -8
  257. package/dist/translations/pt.js +0 -23
  258. package/dist/translations/pt.umd.js +0 -23
  259. package/dist/translations/ro.d.ts +0 -8
  260. package/dist/translations/ro.js +0 -23
  261. package/dist/translations/ro.umd.js +0 -23
  262. package/dist/translations/ru.d.ts +0 -8
  263. package/dist/translations/ru.js +0 -23
  264. package/dist/translations/ru.umd.js +0 -23
  265. package/dist/translations/si.d.ts +0 -8
  266. package/dist/translations/si.js +0 -23
  267. package/dist/translations/si.umd.js +0 -23
  268. package/dist/translations/sk.d.ts +0 -8
  269. package/dist/translations/sk.js +0 -23
  270. package/dist/translations/sk.umd.js +0 -23
  271. package/dist/translations/sl.d.ts +0 -8
  272. package/dist/translations/sl.js +0 -23
  273. package/dist/translations/sl.umd.js +0 -23
  274. package/dist/translations/sq.d.ts +0 -8
  275. package/dist/translations/sq.js +0 -23
  276. package/dist/translations/sq.umd.js +0 -23
  277. package/dist/translations/sr-latn.d.ts +0 -8
  278. package/dist/translations/sr-latn.js +0 -23
  279. package/dist/translations/sr-latn.umd.js +0 -23
  280. package/dist/translations/sr.d.ts +0 -8
  281. package/dist/translations/sr.js +0 -23
  282. package/dist/translations/sr.umd.js +0 -23
  283. package/dist/translations/sv.d.ts +0 -8
  284. package/dist/translations/sv.js +0 -23
  285. package/dist/translations/sv.umd.js +0 -23
  286. package/dist/translations/th.d.ts +0 -8
  287. package/dist/translations/th.js +0 -23
  288. package/dist/translations/th.umd.js +0 -23
  289. package/dist/translations/ti.d.ts +0 -8
  290. package/dist/translations/ti.js +0 -23
  291. package/dist/translations/ti.umd.js +0 -23
  292. package/dist/translations/tk.d.ts +0 -8
  293. package/dist/translations/tk.js +0 -23
  294. package/dist/translations/tk.umd.js +0 -23
  295. package/dist/translations/tr.d.ts +0 -8
  296. package/dist/translations/tr.js +0 -23
  297. package/dist/translations/tr.umd.js +0 -23
  298. package/dist/translations/tt.d.ts +0 -8
  299. package/dist/translations/tt.js +0 -23
  300. package/dist/translations/tt.umd.js +0 -23
  301. package/dist/translations/ug.d.ts +0 -8
  302. package/dist/translations/ug.js +0 -23
  303. package/dist/translations/ug.umd.js +0 -23
  304. package/dist/translations/uk.d.ts +0 -8
  305. package/dist/translations/uk.js +0 -23
  306. package/dist/translations/uk.umd.js +0 -23
  307. package/dist/translations/ur.d.ts +0 -8
  308. package/dist/translations/ur.js +0 -23
  309. package/dist/translations/ur.umd.js +0 -23
  310. package/dist/translations/uz.d.ts +0 -8
  311. package/dist/translations/uz.js +0 -23
  312. package/dist/translations/uz.umd.js +0 -23
  313. package/dist/translations/vi.d.ts +0 -8
  314. package/dist/translations/vi.js +0 -23
  315. package/dist/translations/vi.umd.js +0 -23
  316. package/dist/translations/zh-cn.d.ts +0 -8
  317. package/dist/translations/zh-cn.js +0 -23
  318. package/dist/translations/zh-cn.umd.js +0 -23
  319. package/dist/translations/zh.d.ts +0 -8
  320. package/dist/translations/zh.js +0 -23
  321. package/dist/translations/zh.umd.js +0 -23
  322. package/lang/translations/af.po +0 -100
  323. package/lang/translations/ar.po +0 -100
  324. package/lang/translations/ast.po +0 -100
  325. package/lang/translations/az.po +0 -100
  326. package/lang/translations/bg.po +0 -100
  327. package/lang/translations/bn.po +0 -100
  328. package/lang/translations/bs.po +0 -100
  329. package/lang/translations/ca.po +0 -100
  330. package/lang/translations/cs.po +0 -100
  331. package/lang/translations/da.po +0 -100
  332. package/lang/translations/de-ch.po +0 -100
  333. package/lang/translations/de.po +0 -100
  334. package/lang/translations/el.po +0 -100
  335. package/lang/translations/en-au.po +0 -100
  336. package/lang/translations/en-gb.po +0 -100
  337. package/lang/translations/en.po +0 -100
  338. package/lang/translations/eo.po +0 -100
  339. package/lang/translations/es-co.po +0 -100
  340. package/lang/translations/es.po +0 -100
  341. package/lang/translations/et.po +0 -100
  342. package/lang/translations/eu.po +0 -100
  343. package/lang/translations/fa.po +0 -100
  344. package/lang/translations/fi.po +0 -100
  345. package/lang/translations/fr.po +0 -100
  346. package/lang/translations/gl.po +0 -100
  347. package/lang/translations/gu.po +0 -100
  348. package/lang/translations/he.po +0 -100
  349. package/lang/translations/hi.po +0 -100
  350. package/lang/translations/hr.po +0 -100
  351. package/lang/translations/hu.po +0 -100
  352. package/lang/translations/hy.po +0 -100
  353. package/lang/translations/id.po +0 -100
  354. package/lang/translations/it.po +0 -100
  355. package/lang/translations/ja.po +0 -100
  356. package/lang/translations/jv.po +0 -100
  357. package/lang/translations/kk.po +0 -100
  358. package/lang/translations/km.po +0 -100
  359. package/lang/translations/kn.po +0 -100
  360. package/lang/translations/ko.po +0 -100
  361. package/lang/translations/ku.po +0 -100
  362. package/lang/translations/lt.po +0 -100
  363. package/lang/translations/lv.po +0 -100
  364. package/lang/translations/ms.po +0 -100
  365. package/lang/translations/nb.po +0 -100
  366. package/lang/translations/ne.po +0 -100
  367. package/lang/translations/nl.po +0 -100
  368. package/lang/translations/no.po +0 -100
  369. package/lang/translations/oc.po +0 -100
  370. package/lang/translations/pl.po +0 -100
  371. package/lang/translations/pt-br.po +0 -100
  372. package/lang/translations/pt.po +0 -100
  373. package/lang/translations/ro.po +0 -100
  374. package/lang/translations/ru.po +0 -100
  375. package/lang/translations/si.po +0 -100
  376. package/lang/translations/sk.po +0 -100
  377. package/lang/translations/sl.po +0 -100
  378. package/lang/translations/sq.po +0 -100
  379. package/lang/translations/sr-latn.po +0 -100
  380. package/lang/translations/sr.po +0 -100
  381. package/lang/translations/sv.po +0 -100
  382. package/lang/translations/th.po +0 -100
  383. package/lang/translations/ti.po +0 -100
  384. package/lang/translations/tk.po +0 -100
  385. package/lang/translations/tr.po +0 -100
  386. package/lang/translations/tt.po +0 -100
  387. package/lang/translations/ug.po +0 -100
  388. package/lang/translations/uk.po +0 -100
  389. package/lang/translations/ur.po +0 -100
  390. package/lang/translations/uz.po +0 -100
  391. package/lang/translations/vi.po +0 -100
  392. package/lang/translations/zh-cn.po +0 -100
  393. package/lang/translations/zh.po +0 -100
  394. package/theme/icons/dropbox.svg +0 -11
  395. package/theme/icons/error.svg +0 -1
  396. package/theme/icons/facebook.svg +0 -11
  397. package/theme/icons/google-drive.svg +0 -11
  398. package/theme/icons/google-photos.svg +0 -11
  399. package/theme/icons/image-upload.svg +0 -11
  400. package/theme/icons/link.svg +0 -11
  401. package/theme/icons/local.svg +0 -11
  402. package/theme/icons/onedrive.svg +0 -11
  403. package/theme/icons/uploadcare-image-edit.svg +0 -11
@@ -39,7 +39,7 @@
39
39
  {
40
40
  "name": "uploadcareImageEdit",
41
41
  "type": "Button",
42
- "iconPath": "theme/icons/uploadcare-image-edit.svg"
42
+ "iconPath": "@ckeditor/ckeditor5-icons/theme/icons/uploadcare-image-edit.svg"
43
43
  }
44
44
  ]
45
45
  }
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x1000b4,icons as _0x1491d4,Command as _0x1184db}from'@ckeditor/ckeditor5-core/dist/index.js';import{ButtonView as _0x451f3a,MenuBarMenuListItemButtonView as _0x24a2c4,View as _0x593192,FocusCycler as _0x267b4c,Dialog as _0x378809,DialogViewPosition as _0x1b21cf,SpinnerView as _0x217bec,IconView as et,Notification as _0xfea4bb}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x46e4ba,DomEmitterMixin as _0x4d112c,global as _0x42503d,getAncestors as _0x4cddc8,ObservableMixin as _0x1abb5c,createElement as _0x529766,uid as _0x4b5527}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2b1c85}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x113003,info as _0xafd01}from'@uploadcare/upload-client';import*as _0x3ec060 from'@uploadcare/file-uploader';var o=function(_0x376148){return _0x376148['Local']='local',_0x376148['URL']='url',_0x376148['Dropbox']='dropbox',_0x376148['GDrive']='gdrive',_0x376148['Facebook']='facebook',_0x376148['GPhotos']='gphotos',_0x376148['OneDrive']='onedrive',_0x376148;}({});function _(_0x26164b,_0x1f8078,_0x5d8ba7){const t=_0x26164b['t'],_0x388e97=_0x26164b['t'];switch(_0x1f8078){case o['Local']:return{'text':_0x388e97('Insert'===_0x5d8ba7?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x388e97('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x5d8ba7?_0x388e97('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x388e97('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x5d8ba7?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x5d8ba7?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x5d8ba7?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x5d8ba7?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x5d8ba7?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1f8078;}}class e extends _0x1000b4{['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 _0x296b94=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3b7dd8;for(const _0x29eeee in _0x296b94){const _0x240c15=_0x29eeee,_0x1b0875=_0x296b94[_0x240c15];if('uploadcareLicenseKeyValid'==_0x1b0875||'uploadcareLicenseKeyInvalid'==_0x1b0875||'uploadcareLicenseKeyExpired'==_0x1b0875||'uploadcareLicenseKeyDomainLimit'==_0x1b0875||'uploadcareLicenseKeyNotAllowed'==_0x1b0875||'uploadcareLicenseKeyEvaluationLimit'==_0x1b0875||'uploadcareLicenseKeyTrialLimit'==_0x1b0875||'uploadcareLicenseKeyUsageLimit'==_0x1b0875){delete _0x296b94[_0x240c15],_0x3b7dd8=_0x1b0875,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3b7dd8&&_0x296b94['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3b7dd8&&_0x296b94['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3b7dd8&&_0x296b94['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3b7dd8&&_0x296b94['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3b7dd8&&_0x296b94['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3b7dd8&&_0x296b94['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3b7dd8&&_0x296b94['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x43623b}=this,_0x41a73f=_0x43623b['commands']['get']('uploadcare');if(!_0x41a73f)return;const _0x3f39b7=this['_normalizeConfigSourceList'](_0x43623b['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3a3972,_0x819526)=>{const _0x4f1cd3=this['_getIntegrationKey'](_0x819526['type']);return _0x3a3972[_0x4f1cd3]||(_0x3a3972[_0x4f1cd3]=[]),_0x3a3972[_0x4f1cd3]['push'](_0x819526),_0x3a3972;},{});_0x43623b['plugins']['has']('ImageInsertUI')&&_0x43623b['commands']['get']('uploadcare')&&Object['entries'](_0x3f39b7)['forEach'](([_0x1a7863,_0x278298])=>{_0x43623b['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1a7863,'observable':()=>_0x41a73f,'buttonViewCreator':()=>this['_createToolbarButton'](_0x278298),'formViewCreator':()=>this['_createDropdownButtons'](_0x278298),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x278298),'override':'assetManager'!==_0x1a7863});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x336246){const {locale:_0x125ff9}=this['editor'];return _0x336246['map'](_0x5be420=>{const _0x159ce7=_(_0x125ff9,_0x5be420,'Insert');switch(_0x5be420){case o['Local']:return{'icon':_0x1491d4['imageUpload'],'type':o['Local'],..._0x159ce7};case o['URL']:return{'icon':'<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M12.748\x202a4.622\x204.622\x200\x200\x200-3.174\x201.362L8.02\x204.915a.783.783\x200\x200\x200\x20.002\x201.11.786.786\x200\x200\x200\x201.11\x200l1.55-1.553c1.185-1.185\x203.024-1.195\x204.116-.104l.851.854c1.092\x201.091\x201.083\x202.927-.101\x204.11l-1.555\x201.554a.787.787\x200\x200\x200\x20.557\x201.34.78.78\x200\x200\x200\x20.553-.23l1.554-1.552c1.758-1.757\x201.838-4.597.102-6.332l-.854-.853A4.31\x204.31\x200\x200\x200\x2012.748\x202Zm-.488\x204.973a.78.78\x200\x200\x200-.553.23L7.2\x2011.71l-.004.002a.784.784\x200\x200\x200\x201.11\x201.107l.003-.002\x204.504-4.505a.785.785\x200\x200\x200-.554-1.339Zm-6.79.815a.791.791\x200\x200\x200-.554.234L3.36\x209.573c-1.757\x201.758-1.836\x204.597-.101\x206.332l.853.852c1.736\x201.734\x204.572\x201.655\x206.33-.102l1.547-1.547.006-.008a.777.777\x200\x200\x200\x20.244-.554.782.782\x200\x200\x200-.799-.797.774.774\x200\x200\x200-.56.248l-1.545\x201.547c-1.184\x201.184-3.021\x201.195-4.113.104l-.854-.854c-1.091-1.091-1.083-2.927.102-4.111l1.552-1.555a.787.787\x200\x200\x200\x20.233-.555.79.79\x200\x200\x200-.06-.3.793.793\x200\x200\x200-.173-.253s-.104-.14-.183-.185c-.051-.03-.133-.047-.37-.047Z\x22/></svg>\x0a','type':o['URL'],..._0x159ce7};case o['Dropbox']:return{'icon':'<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M5.972\x203.115A.746.746\x200\x200\x201\x206.374\x203c.14\x200\x20.28.037.402.115l3.229\x202.059\x203.228-2.057a.75.75\x200\x200\x201\x20.805\x200l3.629\x202.31h.002a.757.757\x200\x200\x201\x200\x201.264h-.002L15.034\x208.37l2.633\x201.678h.002a.756.756\x200\x200\x201\x200\x201.262h-.002l-3.63\x202.312a.746.746\x200\x200\x201-.161.076c.234.08.409.275.482.5a.75.75\x200\x200\x201-.322.854l-3.629\x202.308a.75.75\x200\x200\x201-.805\x200l-3.63-2.31a.75.75\x200\x200\x201-.229-1.031l.076-.122h.022a.746.746\x200\x200\x201\x20.32-.189.75.75\x200\x200\x201-.19-.086l-3.63-2.312a.756.756\x200\x200\x201\x200-1.264l2.632-1.678-2.632-1.676a.757.757\x200\x200\x201\x200-1.263l3.63-2.313Zm2.64\x202.946L6.374\x204.635\x204.136\x206.06l2.238\x201.423\x202.238-1.423Zm7.262\x200-2.236-1.426-2.239\x201.426\x202.237\x201.423\x202.238-1.423Zm-3.637\x202.306-2.232-1.422-2.233\x201.422\x202.235\x201.422\x202.23-1.422Zm-3.625\x202.31L6.374\x209.253l-2.238\x201.426\x202.238\x201.424\x202.238-1.424Zm7.262\x200-2.236-1.425-2.239\x201.426\x202.237\x201.424\x202.238-1.424Zm-2.64\x202.944-3.23-2.056-3.228\x202.056a.75.75\x200\x200\x201-.185.084.724.724\x200\x200\x201\x20.185.08l3.229\x202.057\x203.226-2.055a.827.827\x200\x200\x201\x20.18-.084.746.746\x200\x200\x201-.178-.082Z\x22/></svg>\x0a','type':o['Dropbox'],..._0x159ce7};case o['Facebook']:return{'icon':'<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M10.01\x202C5.59\x202\x202\x205.59\x202\x2010.01a8.011\x208.011\x200\x200\x200\x206.775\x207.914.754.754\x200\x200\x200\x20.598-.17.75.75\x200\x200\x200\x20.262-.565v-5.02a.745.745\x200\x200\x200-.22-.524.745.745\x200\x200\x200-.526-.221H7.77v-.627H8.89a.745.745\x200\x200\x200\x20.525-.22c.14-.14.22-.329.22-.526V8.324c0-.466.122-1.083.524-1.48.33-.326\x201.017-.6\x202.332-.43v.408c-.152.012-.305.017-.457.04-.335.048-.662.136-.943.326-.313.21-.497.505-.59.804-.093.3-.107.602-.107.88v1.18a.746.746\x200\x200\x200\x20.744.746h1.158l-.098.63h-1.06a.744.744\x200\x200\x200-.744.744v5.017a.752.752\x200\x200\x200\x20.26.567c.081.07.177.119.28.148a.75.75\x200\x200\x200\x20.319.022A8.012\x208.012\x200\x200\x200\x2010.01\x202Zm0\x201.486a6.52\x206.52\x200\x200\x201\x206.521\x206.524c0\x202.945-1.973\x205.386-4.65\x206.197v-3.291h.951a.749.749\x200\x200\x200\x20.736-.63l.332-2.12a.742.742\x200\x200\x200-.17-.6.745.745\x200\x200\x200-.564-.26h-1.285V8.87c0-.252.024-.384.039-.433.003-.008.002-.012.002-.016.016-.011.104-.055.326-.088a7\x207\x200\x200\x201\x20.984-.05.746.746\x200\x200\x200\x20.528-.218c.14-.139.217-.33.217-.527V5.76a.747.747\x200\x200\x200-.586-.729c-2.04-.438-3.433-.083-4.278.75-.818.807-.968\x201.884-.968\x202.543v.983H7.027a.744.744\x200\x200\x200-.525.22.743.743\x200\x200\x200-.219.526v2.119c0\x20.197.08.386.219.525.14.14.328.221.525.221h1.118v3.291c-2.681-.809-4.659-3.25-4.659-6.197a6.523\x206.523\x200\x200\x201\x206.524-6.526Z\x22/></svg>\x0a','type':o['Facebook'],..._0x159ce7};case o['GDrive']:return{'icon':'<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M7.666\x203a.736.736\x200\x200\x200-.371.1.748.748\x200\x200\x200-.275.267l-4.918\x208.397a.743.743\x200\x200\x200-.006.744l2.46\x204.318a.747.747\x200\x200\x200\x20.65.377h9.606a.754.754\x200\x200\x200\x20.65-.377l2.46-4.318a.74.74\x200\x200\x200\x20.002-.735l-4.688-8.392a.754.754\x200\x200\x200-.654-.38H7.666Zm1.285\x201.492h3.195l3.854\x206.9h-3.1l-3.949-6.9Zm-1.293.742L9.223\x207.97l-4.016\x206.988-1.6-2.813\x204.051-6.91Zm2.424\x204.237\x201.098\x201.922H8.977l1.105-1.922ZM8.12\x2012.885h7.87L14.38\x2015.71H6.494l1.625-2.826Z\x22/></svg>\x0a','type':o['GDrive'],..._0x159ce7};case o['GPhotos']:return{'icon':'<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M9.258\x203.082c0-.594.486-1.082\x201.08-1.082a4.38\x204.38\x200\x200\x201\x204.239\x205.489c-.18.688-.633\x201.245-1.109\x201.767h3.468c.595\x200\x201.082.488\x201.082\x201.082a4.382\x204.382\x200\x200\x201-5.49\x204.24v-.001c-.689-.18-1.246-.633-1.768-1.109v3.468c0\x20.595-.487\x201.082-1.082\x201.082a4.384\x204.384\x200\x200\x201-4.111-2.866\x204.382\x204.382\x200\x200\x201-.125-2.624c.18-.689.632-1.246\x201.108-1.768H3.082A1.085\x201.085\x200\x200\x201\x202\x209.68a4.382\x204.382\x200\x200\x201\x205.49-4.238c.69.18\x201.246.632\x201.768\x201.108V3.082Zm3.164\x201.32c-.435-.46-1.043-.667-1.662-.767v5.49c.619-.1\x201.227-.307\x201.662-.766a2.875\x202.875\x200\x200\x200\x200-3.958ZM7.21\x206.918a2.876\x202.876\x200\x200\x200-2.93.789c-.396.423-.569.983-.658\x201.55h5.56c-.045-.295-.091-.59-.224-.859a2.879\x202.879\x200\x200\x200-1.748-1.48Zm9.254\x203.841h-5.653l.013.1c.012.098.025.197.053.292a2.873\x202.873\x200\x200\x200\x204.862\x201.158\x202.87\x202.87\x200\x200\x200\x20.398-.54v-.001c.111-.195.2-.403.263-.619.026-.092.038-.188.05-.283l.014-.107Zm-8.872\x204.86c.437.459\x201.045.666\x201.665.766V10.89c-1.369.222-2.456\x201.314-2.456\x202.747\x200\x20.738.283\x201.447.791\x201.981Z\x22/></svg>\x0a','type':o['GPhotos'],..._0x159ce7};case o['OneDrive']:return{'icon':'<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M10.223\x205.001a5.277\x205.277\x200\x200\x200-4.408\x202.258c-3.224.423-4.908\x204.123-3.032\x206.814l.004.008.002.004c.48.627\x201.712\x201.84\x203.588\x201.84h7.936c.667\x200\x201.32-.179\x201.894-.522a3.838\x203.838\x200\x200\x200\x201.381-1.46v-.005c1.13-2.16-.133-4.777-2.488-5.298-.617-1.853-2.177-3.242-4.111-3.565a5.273\x205.273\x200\x200\x200-.766-.074Zm-.092\x201.5c.078\x200\x20.154.001.23.008.077.004.154.014.231.021l.226.035a5.203\x205.203\x200\x200\x201\x20.45.116\x203.31\x203.31\x200\x200\x201\x20.433.166\x204.079\x204.079\x200\x200\x201\x20.606.348\x204.195\x204.195\x200\x200\x201\x20.37.293\x203.54\x203.54\x200\x200\x201\x20.33.348\x203.517\x203.517\x200\x200\x201\x20.505.778\x203.182\x203.182\x200\x200\x200-.42.117c-.082.03-.164.06-.244.094l-1.49.627-2.686-1.61a4.39\x204.39\x200\x200\x200-1.002-.445c.015-.01.032-.026.047-.039a3.744\x203.744\x200\x200\x201\x20.4-.289\x203.713\x203.713\x200\x200\x201\x20.424-.23\x203.02\x203.02\x200\x200\x201\x20.219-.094c.074-.03.15-.053.225-.076a3.77\x203.77\x200\x200\x201\x20.222-.06c.077-.02.157-.035.233-.05.075-.015.15-.025.228-.033.077-.007.154-.015.233-.02.078-.003.154-.005.23-.005Zm-3.8\x202.193h.003c.54.001\x201.111.156\x201.551.428l1.783\x201.07-5.867\x202.471c-.535-1.29-.15-2.788\x201.059-3.537l.007-.004c.441-.271.946-.42\x201.463-.428Zm7.974\x201.33.152.008c.086.008.173.018.258.033a1.956\x201.956\x200\x200\x201\x20.477.145\x202.179\x202.179\x200\x200\x201\x20.918.756c.046.066.09.133.127.2a2.284\x202.284\x200\x200\x201\x20.269.919c.004.081.008.165.002.248-.003.055-.012.111-.02.166l-3.507-2.102.459-.193.015-.008a2.118\x202.118\x200\x200\x201\x20.41-.125\x202.297\x202.297\x200\x200\x201\x20.44-.047Zm-3.008\x201.112\x204.506\x202.699a2.217\x202.217\x200\x200\x201-.338.26\x202.228\x202.228\x200\x200\x201-.668.275c-.078.019-.157.03-.24.04-.081.007-.164.015-.246.015H6.373c-.057\x200-.113-.001-.168-.004a1.904\x201.904\x200\x200\x201-.164-.016l-.154-.023c-.051-.008-.102-.014-.15-.026a2.942\x202.942\x200\x200\x201-.77-.3\x202.889\x202.889\x200\x200\x201-.21-.133c-.012-.008-.019-.016-.03-.024l6.57-2.763Z\x22/></svg>\x0a','type':o['OneDrive'],..._0x159ce7};}});}['_getIntegrationKey'](_0x388f58){switch(_0x388f58){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x69c698,_0x5a05e7){const _0x1c8946=this['editor'],_0xea9fcb=new _0x69c698(_0x1c8946['locale']),_0x7a100c=_0x1c8946['commands']['get']('uploadcare');return _0xea9fcb['bind']('isEnabled')['to'](_0x7a100c),_0xea9fcb['on']('execute',()=>{_0x7a100c['execute'](_0x5a05e7);}),_0xea9fcb;}['_createToolbarButton'](_0x370103){const {locale:_0x2d6dc9}=this['editor'],_0x41783c=this['editor']['plugins']['get']('ImageInsertUI'),_0x3b0b1b=_0x370103[0x0],_0x3ff5be=this['_createButton'](_0x451f3a,_0x3b0b1b['type']);return _0x3ff5be['icon']=_0x3b0b1b['icon'],_0x3ff5be['bind']('label')['to'](_0x41783c,'isImageSelected',_0x1c3965=>_(_0x2d6dc9,_0x3b0b1b['type'],_0x1c3965?'Replace':'Insert')['text']),_0x3ff5be['tooltip']=!0x0,_0x3ff5be;}['_createDropdownButtons'](_0x305e0b){const {locale:_0x2388bc}=this['editor'],_0x119eb7=this['editor']['plugins']['get']('ImageInsertUI');return _0x305e0b['map'](_0x4f2cdd=>{const _0xa2d92a=this['_createButton'](_0x451f3a,_0x4f2cdd['type']);return _0xa2d92a['withText']=!0x0,_0xa2d92a['icon']=_0x4f2cdd['icon'],_0xa2d92a['bind']('label')['to'](_0x119eb7,'isImageSelected',_0x9cfe07=>_(_0x2388bc,_0x4f2cdd['type'],_0x9cfe07?'Replace':'Insert')['text']),_0xa2d92a;});}['_createMenuBarButtons'](_0x334a7f){return _0x334a7f['map'](_0x304574=>{const _0x35bb7d=this['_createButton'](_0x24a2c4,_0x304574['type']);return _0x35bb7d['icon']=_0x304574['icon'],_0x35bb7d['label']=_0x304574['shortText'],_0x35bb7d;});}}class q extends _0x593192{['focusTracker'];['focusCycler'];constructor(_0x3e8b62){super(_0x3e8b62),this['focusTracker']=new _0x46e4ba(),this['focusCycler']=new _0x267b4c({'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 S extends q{constructor(_0xc66848){super(_0xc66848),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'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x2cfac9,_0x15925a){const _0x21a859=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1874f3=>_0x1874f3<=_0x15925a)['map'](_0x36f13e=>_0x2cfac9['replace'](/\/$/,'')+'/-/resize/'+_0x36f13e+'x/\x20'+_0x36f13e+'w');return{'imageFallbackUrl':_0x2cfac9,'imageSources':[{'srcset':_0x21a859['join'](',\x20'),'sizes':'(max-width:\x20'+_0x15925a+'px)\x20100vw,\x20'+_0x15925a+'px','type':'image/webp'}]};}function A(_0x26c985,_0x22c8b0,_0x2abfca){const _0x39880d=_0x26c985['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x39880d?parseInt(_0x39880d[0x1],0xa):_0x22c8b0,'height':_0x39880d?parseInt(_0x39880d[0x2],0xa):_0x2abfca};}function p(_0xb30301,_0x7d100d){const _0x1e1bbc=Object['create'](_0x4d112c),_0x21685d=_0xb30301['plugins']['get']('ImageUtils'),_0x566c6a=_0xb30301['editing']['mapper']['toViewElement'](_0x7d100d),_0x5ea5e8=_0x21685d['findViewImgElement'](_0x566c6a),_0x238d78=_0xb30301['editing']['view']['domConverter']['viewToDom'](_0x5ea5e8),_0x3f6681=_0x7d100d['getAttribute']('width'),_0x4b419f=_0x7d100d['getAttribute']('height'),_0x59cb2f='image-processing';_0xb30301['editing']['view']['change'](_0x3de6b8=>{_0x3de6b8['addClass'](_0x59cb2f,_0x566c6a),_0x3de6b8['setStyle']('aspect-ratio',_0x3f6681+'/'+_0x4b419f,_0x5ea5e8);}),_0x1e1bbc['listenTo'](_0x238d78,'load',()=>{_0x1e1bbc['stopListening'](_0x238d78,'load'),_0xb30301['editing']['view']['change'](_0x256617=>{_0x256617['removeClass'](_0x59cb2f,_0x566c6a),_0x256617['removeStyle']('aspect-ratio',_0x5ea5e8);});});}function V(_0x5b015a){if(Array['isArray'](_0x5b015a)){const _0x140e11=_0x5b015a['map'](V);return _0x37fb12=>_0x140e11['some'](_0x334931=>_0x334931(_0x37fb12));}if('origin'==_0x5b015a){const _0x4c9445=_0x42503d['window']['location']['origin'];return _0x300999=>new URL(_0x300999,_0x42503d['document']['baseURI'])['origin']==_0x4c9445;}return'function'==typeof _0x5b015a?_0x5b015a:_0x5b015a instanceof RegExp?_0x3e2ddc=>!(!_0x3e2ddc['match'](_0x5b015a)&&!_0x3e2ddc['replace'](/^https?:\/\//,'')['match'](_0x5b015a)):()=>!0x1;}function F(_0x343b41,_0x3f453c){return _0x4cddc8(_0x343b41['target'])['includes'](_0x3f453c);}class h extends/* #__PURE__ -- @preserve */
24
- _0x1abb5c(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2e3a9e,_0x447c76,_0x1212ab){super(),this['_editor']=_0x2e3a9e,this['_editing']=_0x447c76,this['_dialog']=_0x2e3a9e['plugins']['get'](_0x378809),this['_api']=_0x447c76['ctxElement']['getAPI'](),this['_type']=_0x1212ab,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:_0x10d832,model:_0x2dc737}=this['_editor'],_0x179c3b=_0x2dc737['document']['selection']['getSelectedElement'](),_0x4a3275=_0x179c3b&&(_0x179c3b['is']('element','imageBlock')||_0x179c3b['is']('element','imageInline'));this['_formView']=new S(_0x10d832),this['_dialog']['show']({'id':'uploadCare','icon':_0x1491d4['imageUpload'],'title':_(_0x10d832,this['_type'],_0x4a3275?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1b21cf['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3f2a49=>!F(_0x3f2a49,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x318905}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1d7ca8=>{const _0xcb5a24=_0x318905['length'];for(const _0x3f5767 of _0x318905){const _0xfd61e5=_0x3f5767===_0x318905[_0xcb5a24-0x1],{cdnUrl:_0x179cc2,fileInfo:_0x1c019b}=_0x3f5767;if(!_0x179cc2||!_0x1c019b)continue;const {width:_0x2e39b2,height:_0x3f7dfb}=_0x1c019b['imageInfo'],_0x22fd14=A(_0x179cc2,_0x2e39b2,_0x3f7dfb),_0x1e92dd=C(_0x179cc2,_0x22fd14['width']),_0x310026={'id':_0x1c019b['uuid'],'type':'image','attributes':{'imageDimension':_0x22fd14,..._0x1e92dd}};this['_insertAsset'](_0x310026,_0xfd61e5,_0x1d7ca8);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x25b26a=>{'idle'===_0x25b26a['detail']['status']&&!_0x25b26a['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1ff660,_0x4c47ff,_0x5a049c){const _0x1ff351=this['_editor']['model']['document']['selection'],_0xe1251a=_0x1ff351['getSelectedElement'](),_0x348625=!(!_0xe1251a||!_0xe1251a['is']('element','imageInline'));_0x5a049c['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1ff660,_0x348625),_0x4c47ff||_0x5a049c['setSelection'](_0x1ff351['getLastPosition']());}['_insertImage'](_0x3adb38,_0x2c49f9){const _0x5b9560=this['_editor'],{imageDimension:_0x511685,imageFallbackUrl:_0x3abb32,imageSources:_0x396c98}=_0x3adb38['attributes'];_0x5b9560['execute']('insertImage',{'imageType':_0x2c49f9?'imageInline':null,'source':{'uploadcareImageId':_0x3adb38['id'],'src':_0x3abb32,'sources':_0x396c98,..._0x511685}});}}class l extends _0x1184db{['_editing'];['_controller']=null;static get['requires'](){return[_0x378809,i];}constructor(_0x15d4fa){super(_0x15d4fa),this['_editing']=_0x15d4fa['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4c8390){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new h(this['editor'],this['_editing'],_0x4c8390);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class k{static['upload']({file:_0x1af24f,publicKey:_0x4abf62,signal:_0x129c46,onProgress:_0x3aacea}){return _0x113003(_0x1af24f,{'publicKey':_0x4abf62,'store':'auto','signal':_0x129c46,'onProgress':_0x3aacea});}static['getInfo'](_0x31e265,_0x6fba92){return _0xafd01(_0x31e265,_0x6fba92);}}class f extends _0x1000b4{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2b1c85,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3b81b6=this['editor'];if(!!!_0x3b81b6['config']['get']('uploadcare'))return;_0x3b81b6['plugins']['get'](_0x2b1c85)['createUploadAdapter']=_0x1d8857=>new E(_0x1d8857,_0x3b81b6),_0x3b81b6['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4eddc5,{imageElement:_0x5cdd3c,data:_0x5d52f8})=>{_0x3b81b6['model']['change'](_0x59639f=>{_0x59639f['setAttribute']('uploadcareImageId',_0x5d52f8['uploadcareImageId'],_0x5cdd3c);});});}}class E{['loader'];['editor'];['controller'];constructor(_0x459a0c,_0x3931fc){this['loader']=_0x459a0c,this['editor']=_0x3931fc,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1e6404=this['editor']['config']['get']('uploadcare.pubkey'),_0x2dbc86=await this['loader']['file'];return k['upload']({'file':_0x2dbc86,'publicKey':_0x1e6404,'signal':this['controller']['signal'],'onProgress':_0x55ba27=>{_0x55ba27&&_0x55ba27['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x55ba27['value']);}})['then'](async _0x1723ab=>{const {imageFallbackUrl:_0x2d73ee,imageSources:_0x46a3c2}=C(_0x1723ab['cdnUrl'],_0x1723ab['imageInfo']['width']);return{'uploadcareImageId':_0x1723ab['uuid'],'default':_0x2d73ee,'sources':_0x46a3c2};})['catch'](()=>{const _0x409fea=t('Cannot\x20upload\x20file:')+('\x20'+_0x2dbc86['name']+'.');return Promise['reject'](_0x409fea);});}['abort'](){this['controller']['abort']();}}class i extends _0x1000b4{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x378809];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x9d7569=this['editor'];_0x9d7569['commands']['add']('uploadcare',new l(_0x9d7569));}['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 _0x46c7e5=_0x42503d['document']['querySelector']('input[uploadcare-file-input]');_0x46c7e5&&_0x46c7e5['remove']();}),async function(_0x1dcb4a){const _0x1325e8=_0x5a204f([0x65,0x4c,0x62,0x57,0x66,0x6a,0x53,0x5a,0x68,0x38,0x37,0x42,0x6b,0x7a,0x43,0x52,0x58,0x61,0x34,0x32,0x74,0x4f,0x46,0x6c,0x56,0x75,0x72,0x44,0x73,0x70,0x77,0x6d,0x31,0x64,0x79,0x78,0x67,0x30,0x4d,0x63,0x47,0x51,0x6e,0x59,0x41,0x48,0x4a,0x76,0x36,0x39,0x49,0x4b,0x4e,0x69,0x54,0x45,0x33,0x50,0x35,0x71,0x55,0x6f]),_0x49893d=0x1b1b28f2,_0x5adad4=0x1b1c7762^_0x49893d,_0x498d70=window[_0x5a204f([0x44,0x61,0x74,0x65])][_0x5a204f([0x6e,0x6f,0x77])](),_0x1be612=_0x1dcb4a[_0x5a204f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5b10c2=new window[(_0x5a204f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4341c2=>{_0x1be612[_0x5a204f([0x6f,0x6e,0x63,0x65])](_0x5a204f([0x72,0x65,0x61,0x64,0x79]),_0x4341c2);}),_0x5105c6={[_0x5a204f([0x6b,0x74,0x79])]:_0x5a204f([0x45,0x43]),[_0x5a204f([0x75,0x73,0x65])]:_0x5a204f([0x73,0x69,0x67]),[_0x5a204f([0x63,0x72,0x76])]:_0x5a204f([0x50,0x2d,0x32,0x35,0x36]),[_0x5a204f([0x78])]:_0x5a204f([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]),[_0x5a204f([0x79])]:_0x5a204f([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]),[_0x5a204f([0x61,0x6c,0x67])]:_0x5a204f([0x45,0x53,0x32,0x35,0x36])},_0x246de3=_0x1be612[_0x5a204f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5a204f([0x67,0x65,0x74])](_0x5a204f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x71d148(){let _0x3805a7,_0xc17272=null,_0x454921=null;try{if(_0x246de3==_0x5a204f([0x47,0x50,0x4c]))return _0x5a204f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3805a7=_0x280d05(),!_0x3805a7)return _0x5a204f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3805a7[_0x5a204f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x454921=_0xa2a520(_0x3805a7[_0x5a204f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3805a7[_0x5a204f([0x6a,0x74,0x69])])),await _0x2f6220()?_0x55488f()?_0x2969af()?_0x5a204f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x524d6e()?(_0x3805a7[_0x5a204f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a204f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xc17272=_0xea042a(_0x5a204f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3805a7[_0x5a204f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a204f([0x74,0x72,0x69,0x61,0x6c])&&(_0xc17272=_0xea042a(_0x5a204f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4f845c()):_0x5a204f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5a204f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5a204f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x547375){return _0x5a204f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2969af(){const _0x11ecd1=[_0x5a204f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5a204f([0x74,0x72,0x69,0x61,0x6c])][_0x5a204f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3805a7[_0x5a204f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x498d70/0x3e8:0xe10*_0x5adad4;return _0x3805a7[_0x5a204f([0x65,0x78,0x70])]<_0x11ecd1;}function _0x55488f(){const _0x5d55cd=_0x3805a7[_0x5a204f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5d55cd&&(!!_0x5d55cd[_0x5a204f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a204f([0x2a]))||!!_0x5d55cd[_0x5a204f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a204f([0x55,0x50,0x4c,0x43])));}function _0x524d6e(){const _0x3d2676=_0x3805a7[_0x5a204f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3d2676||0x0==_0x3d2676[_0x5a204f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1dda5c}=new URL(window[_0x5a204f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3d2676[_0x5a204f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1dda5c))return!0x0;const _0x6d8d4f=_0x1dda5c[_0x5a204f([0x73,0x70,0x6c,0x69,0x74])](_0x5a204f([0x2e]));return _0x3d2676[_0x5a204f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5dbc1e=>_0x5dbc1e[_0x5a204f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a204f([0x2a])))[_0x5a204f([0x6d,0x61,0x70])](_0x571440=>_0x571440[_0x5a204f([0x73,0x70,0x6c,0x69,0x74])](_0x5a204f([0x2e])))[_0x5a204f([0x73,0x6f,0x6d,0x65])](_0x2af452=>_0x6d8d4f[_0x5a204f([0x65,0x76,0x65,0x72,0x79])]((_0x1d9237,_0x274556)=>_0x2af452[_0x274556]===_0x1d9237||_0x2af452[_0x274556]===_0x5a204f([0x2a])));}function _0x4f845c(){return _0xc17272&&_0x454921?new window[(_0x5a204f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x24710e,_0x20d050)=>{_0xc17272[_0x5a204f([0x74,0x68,0x65,0x6e])](_0x24710e,_0x20d050),_0x454921[_0x5a204f([0x74,0x68,0x65,0x6e])](_0x5d4c57=>{_0x5d4c57!=_0x5a204f([0x56,0x61,0x6c,0x69,0x64])&&_0x24710e(_0x5d4c57);},_0x20d050);}):_0xc17272||_0x454921||_0x5a204f([0x56,0x61,0x6c,0x69,0x64]);}}function _0xa2a520(_0xc323c5,_0x5025a8){return new window[(_0x5a204f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a207c=>{if(_0x382c4f())return _0x4a207c(_0x5a204f([0x56,0x61,0x6c,0x69,0x64]));_0x2ae249(),_0x1be612[_0x5a204f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5a204f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x303f28=!0x1;const _0x455695=_0x4b5527();function _0x1441be(_0x59ca75){return!!_0x59ca75&&(typeof _0x59ca75===_0x5a204f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x59ca75===_0x5a204f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x59ca75[_0x5a204f([0x74,0x68,0x65,0x6e])]===_0x5a204f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x59ca75[_0x5a204f([0x63,0x61,0x74,0x63,0x68])]===_0x5a204f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x25d552(_0x414afd){_0x5ea9ee(_0x414afd)[_0x5a204f([0x74,0x68,0x65,0x6e])](_0x4f6c5c=>{if(!_0x4f6c5c||_0x4f6c5c[_0x5a204f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5a204f([0x6f,0x6b]))return _0x5a204f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x40b5b0(_0x3e37ff(_0x455695+_0x5025a8))!=_0x4f6c5c[_0x5a204f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5a204f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5a204f([0x56,0x61,0x6c,0x69,0x64]);})[_0x5a204f([0x74,0x68,0x65,0x6e])](_0x10d57c=>(_0x1e10d0(),_0x10d57c),()=>{const _0x128b7a=_0x2008ff();return null==_0x128b7a?(_0x1e10d0(),_0x5a204f([0x56,0x61,0x6c,0x69,0x64])):_0x5a204f(_0x498d70-_0x128b7a>(0x3f17acf2^_0x49893d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5a204f([0x74,0x68,0x65,0x6e])](_0x4a207c)[_0x5a204f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4a207c(_0x5a204f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x39ed93=0x1b2dc672^_0x49893d;function _0x1e10d0(){const _0x3bae21=_0x5a204f([0x6c,0x6c,0x63,0x74,0x2d])+_0x40b5b0(_0x3e37ff(_0xc323c5)),_0x2f5926=_0x759208(_0x40b5b0(window[_0x5a204f([0x4d,0x61,0x74,0x68])][_0x5a204f([0x63,0x65,0x69,0x6c])](_0x498d70/_0x39ed93)));window[_0x5a204f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a204f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3bae21,_0x2f5926);}function _0x2008ff(){const _0x1ce641=_0x5a204f([0x6c,0x6c,0x63,0x74,0x2d])+_0x40b5b0(_0x3e37ff(_0xc323c5)),_0x69511f=window[_0x5a204f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a204f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ce641);return _0x69511f?window[_0x5a204f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x759208(_0x69511f),0x10)*_0x39ed93:null;}function _0x5ea9ee(_0x5578e6){return new window[(_0x5a204f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x376e9b,_0x590be7)=>{_0x5578e6[_0x5a204f([0x74,0x68,0x65,0x6e])](_0x376e9b,_0x590be7),window[_0x5a204f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x590be7,0x1b1afc32^_0x49893d);});}}_0x1be612[_0x5a204f([0x6f,0x6e])](_0x5a204f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3dc003,_0x46077d)=>{if(_0x46077d[0x0]!=_0xc323c5)return _0x4a207c(_0x5a204f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x46077d[0x1]={..._0x46077d[0x1],[_0x5a204f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x455695};},{[_0x5a204f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a204f([0x68,0x69,0x67,0x68])}),_0x1be612[_0x5a204f([0x6f,0x6e])](_0x5a204f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x27c21b=>{_0x1441be(_0x27c21b[_0x5a204f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x303f28=!0x0,_0x25d552(_0x27c21b[_0x5a204f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5a204f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a204f([0x6c,0x6f,0x77])}),_0x5b10c2[_0x5a204f([0x74,0x68,0x65,0x6e])](()=>{_0x303f28||_0x4a207c(_0x5a204f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x382c4f(){return _0x1be612[_0x5a204f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a204f([0x76,0x69,0x65,0x77])][_0x5a204f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5a204f([0x61,0x75,0x74,0x6f]);}function _0x2ae249(){_0x1be612[_0x5a204f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a204f([0x76,0x69,0x65,0x77])][_0x5a204f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5a204f([0x61,0x75,0x74,0x6f]);}}function _0xea042a(_0x51cb1a){const _0x57e8ea=[new window[(_0x5a204f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x156439=>setTimeout(_0x156439,0x1b12163e^_0x49893d)),_0x5b10c2[_0x5a204f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5a204f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56f5de=>{let _0x2d9167=0x0;_0x1be612[_0x5a204f([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a204f([0x6f,0x6e])](_0x5a204f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x31b323,_0x23ac7f)=>{_0x23ac7f[0x0][_0x5a204f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2d9167++,_0x2d9167==(0x1b1b290a^_0x49893d)&&(_0x56f5de(),_0x31b323[_0x5a204f([0x6f,0x66,0x66])]());});}))];return window[_0x5a204f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5a204f([0x72,0x61,0x63,0x65])](_0x57e8ea)[_0x5a204f([0x74,0x68,0x65,0x6e])](()=>_0x51cb1a);}async function _0x2ba8fe(){await _0x5b10c2,_0x1be612[_0x5a204f([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a204f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x21f68f,_0x1be612[_0x5a204f([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a204f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x21f68f,_0x1be612[_0x5a204f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5a204f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1e896b(_0x183e48){const _0x1b55b7=_0x5f38a7();_0x1be612[_0x1b55b7]=_0x5a204f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x183e48,_0x183e48!=_0x5a204f([0x56,0x61,0x6c,0x69,0x64])&&_0x2ba8fe();}function _0x5f38a7(){const _0x407941=window[_0x5a204f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5a204f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5a204f([0x6e,0x6f,0x77])]())[_0x5a204f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5a204f([0x2e]),'');let _0x592de5=_0x5a204f([0x65]);for(let _0x37fa83=0x0;_0x37fa83<_0x407941[_0x5a204f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x37fa83+=0x2){let _0x395778=window[_0x5a204f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x407941[_0x5a204f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x37fa83,_0x37fa83+0x2));_0x395778>=_0x1325e8[_0x5a204f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x395778-=_0x1325e8[_0x5a204f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x592de5+=_0x1325e8[_0x395778];}return _0x592de5;}function _0x280d05(){const _0x2ff100=_0x246de3[_0x5a204f([0x73,0x70,0x6c,0x69,0x74])](_0x5a204f([0x2e]));if(0x3!=_0x2ff100[_0x5a204f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2e6054(_0x2ff100[0x1]);function _0x2e6054(_0x793bb){const _0x1474a7=_0x3b7052(_0x793bb);return _0x1474a7&&_0x683905()?_0x1474a7:null;function _0x683905(){const _0x37a3f2=_0x1474a7[_0x5a204f([0x6a,0x74,0x69])],_0xde237a=window[_0x5a204f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37a3f2[_0x5a204f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x37a3f2[_0x5a204f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x42dbfd={..._0x1474a7,[_0x5a204f([0x6a,0x74,0x69])]:_0x37a3f2[_0x5a204f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x37a3f2[_0x5a204f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x42dbfd[_0x5a204f([0x76,0x63])],_0x3e37ff(_0x42dbfd)==_0xde237a;}}}async function _0x2f6220(){let _0x316328=!0x0;try{const _0x303ae8=_0x246de3[_0x5a204f([0x73,0x70,0x6c,0x69,0x74])](_0x5a204f([0x2e])),[_0x8a71fc,_0x53be11,_0x3509a6]=_0x303ae8;return _0x24585d(_0x8a71fc),await _0x416b82(_0x8a71fc,_0x53be11,_0x3509a6),_0x316328;}catch(_0x1f1a94){return!0x1;}function _0x24585d(_0x410c7f){const _0x59bb5a=_0x3b7052(_0x410c7f);_0x59bb5a&&_0x59bb5a[_0x5a204f([0x61,0x6c,0x67])]==_0x5a204f([0x45,0x53,0x32,0x35,0x36])||(_0x316328=!0x1);}async function _0x416b82(_0x18cd09,_0xf3726,_0xe1f22c){const _0x22215d=window[_0x5a204f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5a204f([0x66,0x72,0x6f,0x6d])](_0xec3bc6(_0xe1f22c),_0x583902=>_0x583902[_0x5a204f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4c1d4a=new window[(_0x5a204f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5a204f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x18cd09+_0x5a204f([0x2e])+_0xf3726),_0x7b54d5=window[_0x5a204f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5a204f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x7b54d5)return;const _0x5f0056=await _0x7b54d5[_0x5a204f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5a204f([0x6a,0x77,0x6b]),_0x5105c6,{[_0x5a204f([0x6e,0x61,0x6d,0x65])]:_0x5a204f([0x45,0x43,0x44,0x53,0x41]),[_0x5a204f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5a204f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5a204f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x7b54d5[_0x5a204f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5a204f([0x6e,0x61,0x6d,0x65])]:_0x5a204f([0x45,0x43,0x44,0x53,0x41]),[_0x5a204f([0x68,0x61,0x73,0x68])]:{[_0x5a204f([0x6e,0x61,0x6d,0x65])]:_0x5a204f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5f0056,_0x22215d,_0x4c1d4a)||(_0x316328=!0x1);}}function _0x3b7052(_0x1c605b){return _0x1c605b[_0x5a204f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5a204f([0x65,0x79]))?JSON[_0x5a204f([0x70,0x61,0x72,0x73,0x65])](_0xec3bc6(_0x1c605b)):null;}function _0xec3bc6(_0x1dd9af){return window[_0x5a204f([0x61,0x74,0x6f,0x62])](_0x1dd9af[_0x5a204f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5a204f([0x2b]))[_0x5a204f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5a204f([0x2f])));}function _0x3e37ff(_0x32da5b){let _0x39e079=0x1505;function _0x5d327c(_0x121d11){for(let _0x23e47f=0x0;_0x23e47f<_0x121d11[_0x5a204f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23e47f++){const _0x46a199=_0x121d11[_0x5a204f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x23e47f);_0x39e079=(_0x39e079<<0x5)+_0x39e079+_0x46a199,_0x39e079&=_0x39e079;}}function _0xfae0b6(_0x3dfd82){Array[_0x5a204f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3dfd82)?_0x3dfd82[_0x5a204f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xfae0b6):_0x3dfd82&&typeof _0x3dfd82==_0x5a204f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5a204f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3dfd82)[_0x5a204f([0x73,0x6f,0x72,0x74])]()[_0x5a204f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x229dbd,_0x5f1f25])=>{_0x5d327c(_0x229dbd),_0xfae0b6(_0x5f1f25);}):_0x5d327c(window[_0x5a204f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3dfd82));}return _0xfae0b6(_0x32da5b),_0x39e079>>>0x0;}function _0x40b5b0(_0x43a813){return _0x43a813[_0x5a204f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5a204f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5a204f([0x30]));}function _0x759208(_0x253258){return _0x253258[_0x5a204f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5a204f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5a204f([0x6a,0x6f,0x69,0x6e])]('');}function _0x21f68f(){}function _0x5a204f(_0x509dfe){return _0x509dfe['map'](_0x583548=>String['fromCharCode'](_0x583548))['join']('');}_0x1e896b(await _0x71d148());}(this);}['_initSchema'](){const _0x320ec5=this['editor']['model']['schema'];_0x320ec5['isRegistered']('imageBlock')&&_0x320ec5['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x320ec5['isRegistered']('imageInline')&&_0x320ec5['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x25c059=this['editor'];_0x25c059['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x25c059['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3454cd=>_0x3454cd['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x59104d=_0x25c059['commands']['get']('replaceImageSource');_0x59104d&&this['listenTo'](_0x59104d,'cleanupImage',(_0x1dfa8a,[_0x1b111b,_0x382551])=>{_0x1b111b['removeAttribute']('uploadcareImageId',_0x382551);});}['_initConfig'](){const _0x538ef1=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4702e5=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x529766(_0x42503d['document'],'uc-config',{..._0x538ef1,'pubkey':_0x4702e5,'ctx-name':'uploader','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']=_0x1dfdc9=>{if('closeMax'==_0x1dfdc9)return'#uc-icon-arrow-down';},_0x42503d['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x529766(_0x42503d['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x42503d['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x358f54=this['editor']['commands']['get']('insertImage');_0x358f54&&this['listenTo'](_0x358f54,'execute',()=>{const _0x1e0d84=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1e0d84&&_0x1e0d84['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1e0d84);});});const _0x3ef5f7=this['editor']['commands']['get']('uploadcareImageReplace');_0x3ef5f7&&this['listenTo'](_0x3ef5f7,'execute',()=>{const _0x2d9731=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2d9731&&_0x2d9731['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2d9731);});});}}class u extends _0x1000b4{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2767cb){super(_0x2767cb),_0x2767cb['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x3ec060['defineComponents'](_0x3ec060);}}class ta extends _0x593192{constructor(_0x4bf096){super(_0x4bf096);const t=_0x4bf096['t'],_0x2e3812=this['bindTemplate'],_0x5aa5d7=new _0x217bec();_0x5aa5d7['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':[_0x5aa5d7,{'text':_0x2e3812['to']('imageUploadProgress',_0x422ca0=>t('Loading\x20image...')+'\x20('+(_0x422ca0||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 rt extends _0x593192{constructor(_0x309d0d){super(_0x309d0d);const t=_0x309d0d['t'];this['set']('errorType',null);const _0x3de4e5=new _0x451f3a(_0x309d0d);_0x3de4e5['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3de4e5['withText']=!0x0,_0x3de4e5['class']='ck-button-action',_0x3de4e5['on']('execute',()=>{this['fire']('retry');}),_0x3de4e5['bind']('isVisible')['to'](this,'errorType',_0x373adc=>'NotFound'!==_0x373adc);const _0x52d72a=new et();_0x52d72a['content']='<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M9.9\x204.385a1.2\x201.2\x200\x200\x200-.44.44h.002l-5.284\x209.15a1.2\x201.2\x200\x200\x200\x201.04\x201.8h10.564a1.2\x201.2\x200\x200\x200\x201.04-1.8l-5.282-9.15a1.2\x201.2\x200\x200\x200-1.64-.44Zm.05\x208.363a.301.301\x200\x200\x201\x20.115-.023h.9a.301.301\x200\x200\x201\x20.3.3v.9a.3.3\x200\x200\x201-.3.3h-.9a.3.3\x200\x200\x201-.3-.3v-.9a.3.3\x200\x200\x201\x20.185-.277Zm-.185-4.723a.3.3\x200\x200\x201\x20.3-.3h.9a.3.3\x200\x200\x201\x20.3.3v3.4a.3.3\x200\x200\x201-.3.3h-.9a.301.301\x200\x200\x201-.3-.3v-3.4Z\x22/></svg>\x0a',_0x52d72a['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5e5f92=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':[_0x52d72a,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5e5f92['to']('errorType',_0xef480e=>t('NotFound'!==_0xef480e?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3de4e5]},{'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 tt extends _0x593192{constructor(_0x466a25,_0x544bff){super(_0x466a25);const _0x1c5458=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x544bff,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1c5458['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x69d35c,_0x4cc340,_0x19e6c4){super(_0x69d35c),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x69d35c),this['_errorView']=new rt(_0x69d35c),this['_editingView']=new tt(_0x69d35c,_0x19e6c4),this['_focusableView']=new _0x593192(_0x69d35c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4cc340),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'],_0x4e3da8=>{this['_addUploadcareImageEditorListeners'](_0x4e3da8);});}),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'](_0x344448,_0x36b3be){const _0x5089bf='uc-cloud-image-editor',_0x480a49=_0x344448['querySelector'](_0x5089bf);if(_0x480a49)return _0x36b3be(_0x480a49);const _0x130a26=new MutationObserver(_0x167ac5=>{const _0xda0fde=_0x167ac5['filter'](_0x36d485=>_0x36d485['target']===_0x344448&&_0x36d485['addedNodes']['length']>0x0&&_0x36d485['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5089bf);_0xda0fde['length']&&(_0x130a26['disconnect'](),_0x36b3be(_0xda0fde[0x0]['addedNodes'][0x0]));});_0x130a26['observe'](_0x344448,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x160541){_0x160541['addEventListener']('apply',_0xb205c3=>{this['fire']('apply',{'imageSrc':_0xb205c3['detail']['cdnUrl']});}),_0x160541['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}var M='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M1.201\x201C.538\x201\x200\x201.47\x200\x202.1v14.363c0\x20.64.534\x201.037\x201.186\x201.037H5.06l5.058-5.078L6.617\x209.15a.696.696\x200\x200\x200-.957-.033L1.5\x2013.6V2.5h15v4.354a3.478\x203.478\x200\x200\x201\x201.5.049V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.713\x202.803a2.147\x202.147\x200\x200\x200-2.049\x201.992\x202.14\x202.14\x200\x200\x200\x201.28\x202.096\x202.13\x202.13\x200\x200\x200\x202.642-3.11\x202.129\x202.129\x200\x200\x200-1.873-.978ZM8.089\x2017.635v2.388h2.389l7.046-7.046-2.39-2.39-7.045\x207.048Zm11.282-6.507a.637.637\x200\x200\x200\x20.139-.692.603.603\x200\x200\x200-.139-.205l-1.49-1.488a.63.63\x200\x200\x200-.899\x200l-1.166\x201.163\x202.39\x202.39\x201.165-1.168Z\x22/></svg>\x0a';class z extends/* #__PURE__ -- @preserve */
25
- _0x1abb5c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3bb43a,_0x28da01,_0x406d21){super(),this['_editor']=_0x3bb43a,this['_dialog']=_0x28da01,this['_imageElement']=_0x406d21,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 _0x1d42a0=this['_imageElement'],_0x275ef7=_0x1d42a0['getAttribute']('uploadcareImageId'),_0xb22a5c=_0x1d42a0['getAttribute']('src');if(_0x275ef7)await this['_loadImageInfo'](_0x275ef7,_0xb22a5c);else{if(this['_imageCache']['has'](_0xb22a5c)){const _0x422c1f=this['_imageCache']['get'](_0xb22a5c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x422c1f['url'],this['imageDimension']=_0x422c1f['dimension'],this['imageId']=_0x422c1f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x158976}=this['_editor'],t=_0x158976['t'],_0x4a2008=new Z(_0x158976,this['imageStatus'],this['_attributes']);_0x4a2008['bind']('status')['to'](this,'imageStatus'),_0x4a2008['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4a2008['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4a2008['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4a2008,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':M,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4a2008,'position':_0x1b21cf['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4a2008['focus']();},'onHide':()=>{_0x4a2008['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5d3c35=>!F(_0x5d3c35,_0x4a2008['element'])}});}['_loadImageInfo'](_0x3a8b38,_0x19dee0){return k['getInfo'](_0x3a8b38,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1575b7=>{const {width:_0x24f845,height:_0x404df8}=_0x1575b7['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x19dee0,this['imageDimension']={'width':_0x24f845,'height':_0x404df8},this['imageId']=_0x3a8b38;})['catch'](_0x2934b5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2934b5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x920ff6,_0x461b1a){return this['_getImageAsFile'](_0x920ff6)['then'](_0x5460a1=>k['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x461b1a['signal'],'file':_0x5460a1,'onProgress':_0x4930bb=>{_0x4930bb&&_0x4930bb['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4930bb['value']));}}))['then'](_0x237382=>{const {width:_0x574c54,height:_0x1e3a2a}=_0x237382['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x237382['cdnUrl'],this['imageDimension']={'width':_0x574c54,'height':_0x1e3a2a},this['imageId']=_0x237382['uuid'],this['imageUploadProgress']=null;const _0x5b6cf7=_0x920ff6['getAttribute']('src');this['_imageCache']['set'](_0x5b6cf7,{'id':_0x237382['uuid'],'url':_0x237382['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xef88=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xef88['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xbb5ee7,_0x712615){_0xbb5ee7['on']('apply',(_0x36f966,_0x141f17)=>{this['_replaceImage'](_0x712615,_0x141f17['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xbb5ee7['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xbb5ee7['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x467d42,_0x53b267,_0x2bfd0b){const _0xfc39bd=this['_editor'],{width:_0x2631b8,height:_0x161c95}=A(_0x53b267,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x418a41,imageSources:_0x30ebbf}=C(_0x53b267,_0x2631b8);_0xfc39bd['model']['change'](_0x3f8699=>{if('$graveyard'===_0x467d42['root']['rootName']){_0xfc39bd['execute']('insertImage',{'imageType':_0x467d42['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x467d42['getAttributes']()),'uploadcareImageId':_0x2bfd0b,'src':_0x418a41,'sources':_0x30ebbf,'width':_0x2631b8,'height':_0x161c95}});const _0x41807d=_0x467d42['getChildren']();_0x467d42=_0xfc39bd['model']['document']['selection']['getSelectedElement']();for(const _0x3f1626 of _0x41807d)_0x3f8699['append'](_0x3f8699['cloneElement'](_0x3f1626),_0x467d42);}else _0x3f8699['setSelection'](_0x467d42,'on'),_0xfc39bd['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x467d42['getAttributes']()),'uploadcareImageId':_0x2bfd0b,'src':_0x418a41,'sources':_0x30ebbf,'width':_0x2631b8,'height':_0x161c95},_0x467d42);_0x3f8699['setSelection'](_0x467d42,'on');});}async['_getImageAsFile'](_0x20e86a){const _0xdbf885=_0x42503d['window'],_0x287854=_0x42503d['document']['location']['href'],_0x3a98f9=new _0xdbf885['URL'](_0x20e86a['getAttribute']('src'),_0x287854);if('data:'===_0x3a98f9['protocol']){const _0x377217=_0x3a98f9['href']['split'](','),_0x360b3c=_0x377217[0x0]['match'](/:(.*?);/)[0x1],_0x4dd372=_0x360b3c['split']('/')[0x1],_0x2f5240=_0xdbf885['atob'](_0x377217[_0x377217['length']-0x1]);let _0x51ede3=_0x2f5240['length'];const _0x3cd0ff=new _0xdbf885['Uint8Array'](_0x51ede3);for(;_0x51ede3--;)_0x3cd0ff[_0x51ede3]=_0x2f5240['charCodeAt'](_0x51ede3);return new _0xdbf885['File']([_0x3cd0ff],'image.'+_0x4dd372,{'type':_0x360b3c});}const _0x267cf5=_0x3a98f9['href']['split']('/'),_0x2beaad=_0x267cf5[_0x267cf5['length']-0x1],_0x23d8c3=_0x2beaad['split']('.')[0x1];return _0xdbf885['fetch'](_0x3a98f9['href'])['then'](_0x419c4c=>_0x419c4c['clone']()['blob']())['then'](_0x33eb4f=>new _0xdbf885['File']([_0x33eb4f],_0x2beaad,{'type':'image/'+_0x23d8c3}));}}class J extends _0x1184db{['imageEditController'];static get['requires'](){return[_0x378809];}['_isEditable'];constructor(_0x423855){super(_0x423855),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x426f76){const _0xd2b4cf=V(_0x426f76);return _0x46dd81=>!(!_0x46dd81||!_0x46dd81['is']('element','imageBlock')&&!_0x46dd81['is']('element','imageInline'))&&(!!_0x46dd81['hasAttribute']('uploadcareImageId')||!!_0x46dd81['hasAttribute']('src')&&_0xd2b4cf(_0x46dd81['getAttribute']('src')));}(_0x423855['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4103f9=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4103f9);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x397fbb=this['editor']['model']['document']['selection']['getSelectedElement']();_0x397fbb&&(_0x397fbb['is']('element','imageBlock')||_0x397fbb['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x378809),_0x397fbb),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x1184db{['refresh'](){const _0x17d64c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x17d64c&&(_0x17d64c['is']('element','imageBlock')||_0x17d64c['is']('element','imageInline')));}['execute'](_0x5c7c77){const _0x6aede6=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5471b3=>{_0x5471b3['setAttributes'](_0x5c7c77,_0x6aede6),_0x5471b3['removeAttribute']('srcset',_0x6aede6),_0x5471b3['removeAttribute']('sizes',_0x6aede6);});}}class m extends _0x1000b4{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0xfea4bb,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x16edd2}=this;_0x16edd2['commands']['add']('uploadcareImageEdit',new J(_0x16edd2)),_0x16edd2['commands']['add']('uploadcareImageReplace',new O(_0x16edd2));}}class g extends _0x1000b4{['_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 _0x2e9f0c=this['editor'];_0x2e9f0c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4c8b22=>{const _0x1b9ad7=_0x2e9f0c['commands']['get']('uploadcareImageEdit'),_0x4825b8=new _0x451f3a(_0x4c8b22),t=_0x4c8b22['t'];return _0x4825b8['set']({'icon':M,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4825b8['bind']('isEnabled')['to'](_0x1b9ad7),_0x4825b8['bind']('isOn')['to'](_0x1b9ad7,'isActive'),this['listenTo'](_0x4825b8,'execute',()=>{_0x2e9f0c['execute']('uploadcareImageEdit'),_0x2e9f0c['editing']['view']['focus']();}),_0x4825b8;}),this['_initConfig']();}['_initConfig'](){const _0xa40e5c=_0x529766(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xa40e5c),this['listenTo'](this['editor'],'destroy',()=>{_0xa40e5c['remove']();});}}class j extends _0x1000b4{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,j as UploadcareImageEdit,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI};
23
+ import{Plugin as _0x4bf305,Command as _0x5e2484}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1202e4,IconInstagram as _0x208c70,IconGooglePhotos as _0x1929cd,IconGoogleDrive as _0x442ab8,IconFacebook as _0x1d832f,IconDropbox as _0x3b709d,IconUploadcareLink as _0x1aa68d,IconUploadcareImageUpload as _0x344b8f,IconError as et,IconUploadcareImageEdit as _0x1aa9d8}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x5789be,MenuBarMenuListItemButtonView as _0x8b0644,View as _0x230fa2,FocusCycler as _0x17f0db,Dialog as _0x31776d,DialogViewPosition as _0x3a764c,SpinnerView as _0x139bce,IconView as at,Notification as _0x4ff535}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3d7490,DomEmitterMixin as _0x4a6713,global as _0xf500a3,getAncestors as _0x112b85,ObservableMixin as _0x5ce219,createElement as _0x1bd771,uid as _0x2701a3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x196fe4}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4073fa,info as _0x4ff86c}from'@uploadcare/upload-client';import*as _0x512567 from'@uploadcare/file-uploader';var o=function(_0x21d1e4){return _0x21d1e4['Local']='local',_0x21d1e4['URL']='url',_0x21d1e4['Dropbox']='dropbox',_0x21d1e4['GDrive']='gdrive',_0x21d1e4['Facebook']='facebook',_0x21d1e4['GPhotos']='gphotos',_0x21d1e4['Instagram']='instagram',_0x21d1e4['OneDrive']='onedrive',_0x21d1e4;}({});function x(_0x28b38c,_0x4a28c2,_0x7056b6){const t=_0x28b38c['t'],_0x27aac9=_0x28b38c['t'];switch(_0x4a28c2){case o['Local']:return{'text':_0x27aac9('Insert'===_0x7056b6?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x27aac9('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x7056b6?_0x27aac9('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x27aac9('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x7056b6?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x7056b6?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x7056b6?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x7056b6?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['Instagram']:return{'text':t('Insert'===_0x7056b6?'Insert\x20with\x20Instagram':'Replace\x20with\x20Instagram'),'shortText':t('With\x20Instagram')};case o['OneDrive']:return{'text':t('Insert'===_0x7056b6?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4a28c2;}}class e extends _0x4bf305{['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 _0x4d91f3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xcb919a;for(const _0x127440 in _0x4d91f3){const _0x2e37d8=_0x127440,_0x1d87cc=_0x4d91f3[_0x2e37d8];if('uploadcareLicenseKeyValid'==_0x1d87cc||'uploadcareLicenseKeyInvalid'==_0x1d87cc||'uploadcareLicenseKeyExpired'==_0x1d87cc||'uploadcareLicenseKeyDomainLimit'==_0x1d87cc||'uploadcareLicenseKeyNotAllowed'==_0x1d87cc||'uploadcareLicenseKeyEvaluationLimit'==_0x1d87cc||'uploadcareLicenseKeyTrialLimit'==_0x1d87cc||'uploadcareLicenseKeyUsageLimit'==_0x1d87cc){delete _0x4d91f3[_0x2e37d8],_0xcb919a=_0x1d87cc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xcb919a&&_0x4d91f3['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xcb919a&&_0x4d91f3['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xcb919a&&_0x4d91f3['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xcb919a&&_0x4d91f3['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xcb919a&&_0x4d91f3['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0xcb919a&&_0x4d91f3['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0xcb919a&&_0x4d91f3['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5a100a}=this,_0x6534eb=_0x5a100a['commands']['get']('uploadcare');if(!_0x6534eb)return;const _0x20b107=this['_normalizeConfigSourceList'](_0x5a100a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x84f43b,_0x2356d4)=>{const _0x181e87=this['_getIntegrationKey'](_0x2356d4['type']);return _0x84f43b[_0x181e87]||(_0x84f43b[_0x181e87]=[]),_0x84f43b[_0x181e87]['push'](_0x2356d4),_0x84f43b;},{});_0x5a100a['plugins']['has']('ImageInsertUI')&&_0x5a100a['commands']['get']('uploadcare')&&Object['entries'](_0x20b107)['forEach'](([_0x541a53,_0x18a32e])=>{_0x5a100a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x541a53,'observable':()=>_0x6534eb,'buttonViewCreator':()=>this['_createToolbarButton'](_0x18a32e),'formViewCreator':()=>this['_createDropdownButtons'](_0x18a32e),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x18a32e),'override':'assetManager'!==_0x541a53});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x49e0e3){const {locale:_0x3fafc8}=this['editor'];return _0x49e0e3['map'](_0x1a21b8=>{const _0xe6a9c=x(_0x3fafc8,_0x1a21b8,'Insert');switch(_0x1a21b8){case o['Local']:return{'icon':_0x344b8f,'type':o['Local'],..._0xe6a9c};case o['URL']:return{'icon':_0x1aa68d,'type':o['URL'],..._0xe6a9c};case o['Dropbox']:return{'icon':_0x3b709d,'type':o['Dropbox'],..._0xe6a9c};case o['Facebook']:return{'icon':_0x1d832f,'type':o['Facebook'],..._0xe6a9c};case o['GDrive']:return{'icon':_0x442ab8,'type':o['GDrive'],..._0xe6a9c};case o['GPhotos']:return{'icon':_0x1929cd,'type':o['GPhotos'],..._0xe6a9c};case o['Instagram']:return{'icon':_0x208c70,'type':o['Instagram'],..._0xe6a9c};case o['OneDrive']:return{'icon':_0x1202e4,'type':o['OneDrive'],..._0xe6a9c};}});}['_getIntegrationKey'](_0xff165c){switch(_0xff165c){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x43b86f,_0x3e667c){const _0xeefef7=this['editor'],_0x4256d1=new _0x43b86f(_0xeefef7['locale']),_0x1cc011=_0xeefef7['commands']['get']('uploadcare');return _0x4256d1['bind']('isEnabled')['to'](_0x1cc011),_0x4256d1['on']('execute',()=>{_0x1cc011['execute'](_0x3e667c);}),_0x4256d1;}['_createToolbarButton'](_0xc6f44f){const {locale:_0x25d0ab}=this['editor'],_0x53f015=this['editor']['plugins']['get']('ImageInsertUI'),_0x411092=_0xc6f44f[0x0],_0x59d631=this['_createButton'](_0x5789be,_0x411092['type']);return _0x59d631['icon']=_0x411092['icon'],_0x59d631['bind']('label')['to'](_0x53f015,'isImageSelected',_0x5a9f8d=>x(_0x25d0ab,_0x411092['type'],_0x5a9f8d?'Replace':'Insert')['text']),_0x59d631['tooltip']=!0x0,_0x59d631;}['_createDropdownButtons'](_0x1a4eca){const {locale:_0x5de993}=this['editor'],_0x12be8e=this['editor']['plugins']['get']('ImageInsertUI');return _0x1a4eca['map'](_0x147dac=>{const _0x4536b1=this['_createButton'](_0x5789be,_0x147dac['type']);return _0x4536b1['withText']=!0x0,_0x4536b1['icon']=_0x147dac['icon'],_0x4536b1['bind']('label')['to'](_0x12be8e,'isImageSelected',_0x1e3638=>x(_0x5de993,_0x147dac['type'],_0x1e3638?'Replace':'Insert')['text']),_0x4536b1;});}['_createMenuBarButtons'](_0x45652e){return _0x45652e['map'](_0x3d5cb0=>{const _0x23056c=this['_createButton'](_0x8b0644,_0x3d5cb0['type']);return _0x23056c['icon']=_0x3d5cb0['icon'],_0x23056c['label']=_0x3d5cb0['shortText'],_0x23056c;});}}class q extends _0x230fa2{['focusTracker'];['focusCycler'];constructor(_0x1389e2){super(_0x1389e2),this['focusTracker']=new _0x3d7490(),this['focusCycler']=new _0x17f0db({'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 S extends q{constructor(_0x4a7f4c){super(_0x4a7f4c),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'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x3eccb2,_0x442fd2){const _0x4e35e9=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x199616=>_0x199616<=_0x442fd2)['map'](_0x48f0f6=>_0x3eccb2['replace'](/\/$/,'')+'/-/resize/'+_0x48f0f6+'x/\x20'+_0x48f0f6+'w');return{'imageFallbackUrl':_0x3eccb2,'imageSources':[{'srcset':_0x4e35e9['join'](',\x20'),'sizes':'(max-width:\x20'+_0x442fd2+'px)\x20100vw,\x20'+_0x442fd2+'px','type':'image/webp'}]};}function F(_0x26d061,_0x19ba7f,_0x39b3a1){const _0x721a32=_0x26d061['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x721a32?parseInt(_0x721a32[0x1],0xa):_0x19ba7f,'height':_0x721a32?parseInt(_0x721a32[0x2],0xa):_0x39b3a1};}function m(_0x114d61,_0x2be40b){const _0x5e5c3a=Object['create'](_0x4a6713),_0xb78c93=_0x114d61['plugins']['get']('ImageUtils'),_0x1779c0=_0x114d61['editing']['mapper']['toViewElement'](_0x2be40b),_0xee27f7=_0xb78c93['findViewImgElement'](_0x1779c0),_0x46272a=_0x114d61['editing']['view']['domConverter']['viewToDom'](_0xee27f7),_0x333490=_0x2be40b['getAttribute']('width'),_0x4db4af=_0x2be40b['getAttribute']('height'),_0x3c41fa='image-processing';_0x114d61['editing']['view']['change'](_0x5153fc=>{_0x5153fc['addClass'](_0x3c41fa,_0x1779c0),_0x5153fc['setStyle']('aspect-ratio',_0x333490+'/'+_0x4db4af,_0xee27f7);}),_0x5e5c3a['listenTo'](_0x46272a,'load',()=>{_0x5e5c3a['stopListening'](_0x46272a,'load'),_0x114d61['editing']['view']['change'](_0x613c1=>{_0x613c1['removeClass'](_0x3c41fa,_0x1779c0),_0x613c1['removeStyle']('aspect-ratio',_0xee27f7);});});}function R(_0x9b2ff1){if(Array['isArray'](_0x9b2ff1)){const _0x2b8607=_0x9b2ff1['map'](R);return _0x114092=>_0x2b8607['some'](_0x23dfe1=>_0x23dfe1(_0x114092));}if('origin'==_0x9b2ff1){const _0x403f6c=_0xf500a3['window']['location']['origin'];return _0x2f857a=>new URL(_0x2f857a,_0xf500a3['document']['baseURI'])['origin']==_0x403f6c;}return'function'==typeof _0x9b2ff1?_0x9b2ff1:_0x9b2ff1 instanceof RegExp?_0x47dd27=>!(!_0x47dd27['match'](_0x9b2ff1)&&!_0x47dd27['replace'](/^https?:\/\//,'')['match'](_0x9b2ff1)):()=>!0x1;}function M(_0x482b6e,_0x352090){return _0x112b85(_0x482b6e['target'])['includes'](_0x352090);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x5ce219(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x258503,_0x464e55,_0x4d86d2){super(),this['_editor']=_0x258503,this['_editing']=_0x464e55,this['_dialog']=_0x258503['plugins']['get'](_0x31776d),this['_api']=_0x464e55['ctxElement']['getAPI'](),this['_type']=_0x4d86d2,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:_0x11327c,model:_0xc312f9}=this['_editor'],_0x40c8b7=_0xc312f9['document']['selection']['getSelectedElement'](),_0x3749a3=_0x40c8b7&&(_0x40c8b7['is']('element','imageBlock')||_0x40c8b7['is']('element','imageInline'));this['_formView']=new S(_0x11327c),this['_dialog']['show']({'id':'uploadCare','icon':_0x344b8f,'title':x(_0x11327c,this['_type'],_0x3749a3?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3a764c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xfefe69=>!M(_0xfefe69,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1ac3fe}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2655ad=>{const _0x348828=_0x1ac3fe['length'];for(const _0x488632 of _0x1ac3fe){const _0x246a4a=_0x488632===_0x1ac3fe[_0x348828-0x1],{cdnUrl:_0x503a34,fileInfo:_0x251baf}=_0x488632;if(!_0x503a34||!_0x251baf)continue;const {width:_0x1b7934,height:_0x2f21f9}=_0x251baf['imageInfo'],_0x1189a7=F(_0x503a34,_0x1b7934,_0x2f21f9),_0x24f36e=E(_0x503a34,_0x1189a7['width']),_0x5465c7={'id':_0x251baf['uuid'],'type':'image','attributes':{'imageDimension':_0x1189a7,..._0x24f36e}};this['_insertAsset'](_0x5465c7,_0x246a4a,_0x2655ad);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x36e487=>{'idle'===_0x36e487['detail']['status']&&!_0x36e487['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x14f6e0,_0x185353,_0x5033a9){const _0x310ba4=this['_editor']['model']['document']['selection'],_0x3fb81f=_0x310ba4['getSelectedElement'](),_0x18614b=!(!_0x3fb81f||!_0x3fb81f['is']('element','imageInline'));_0x5033a9['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x14f6e0,_0x18614b),_0x185353||_0x5033a9['setSelection'](_0x310ba4['getLastPosition']());}['_insertImage'](_0x191186,_0xf69811){const _0x15a126=this['_editor'],{imageDimension:_0x19d8a5,imageFallbackUrl:_0x246e99,imageSources:_0xed1a1b}=_0x191186['attributes'];_0x15a126['execute']('insertImage',{'imageType':_0xf69811?'imageInline':null,'source':{'uploadcareImageId':_0x191186['id'],'src':_0x246e99,'sources':_0xed1a1b,..._0x19d8a5}});}}class n extends _0x5e2484{['_editing'];['_controller']=null;static get['requires'](){return[_0x31776d,i];}constructor(_0x1cfff6){super(_0x1cfff6),this['_editing']=_0x1cfff6['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2a1bf3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x2a1bf3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x3745e6,publicKey:_0x770d,signal:_0x4ba38a,onProgress:_0x450134}){return _0x4073fa(_0x3745e6,{'publicKey':_0x770d,'store':'auto','signal':_0x4ba38a,'onProgress':_0x450134});}static['getInfo'](_0x48d678,_0x287008){return _0x4ff86c(_0x48d678,_0x287008);}}class p extends _0x4bf305{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x196fe4,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xe20a5b=this['editor'];if(!!!_0xe20a5b['config']['get']('uploadcare'))return;_0xe20a5b['plugins']['get'](_0x196fe4)['createUploadAdapter']=_0x39338d=>new A(_0x39338d,_0xe20a5b),_0xe20a5b['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x8cbf68,{imageElement:_0x68cc9f,data:_0x1906b2})=>{_0xe20a5b['model']['change'](_0x29bc41=>{_0x29bc41['setAttribute']('uploadcareImageId',_0x1906b2['uploadcareImageId'],_0x68cc9f);});});}}class A{['loader'];['editor'];['controller'];constructor(_0xe44a7d,_0x425507){this['loader']=_0xe44a7d,this['editor']=_0x425507,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2245d6=this['editor']['config']['get']('uploadcare.pubkey'),_0x539028=await this['loader']['file'];return C['upload']({'file':_0x539028,'publicKey':_0x2245d6,'signal':this['controller']['signal'],'onProgress':_0x415a10=>{_0x415a10&&_0x415a10['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x415a10['value']);}})['then'](async _0x25930b=>{const {imageFallbackUrl:_0x3192ee,imageSources:_0x3a3c35}=E(_0x25930b['cdnUrl'],_0x25930b['imageInfo']['width']);return{'uploadcareImageId':_0x25930b['uuid'],'default':_0x3192ee,'sources':_0x3a3c35};})['catch'](()=>{const _0x4c7e7f=t('Cannot\x20upload\x20file:')+('\x20'+_0x539028['name']+'.');return Promise['reject'](_0x4c7e7f);});}['abort'](){this['controller']['abort']();}}class i extends _0x4bf305{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x31776d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x2a34c3=this['editor'];_0x2a34c3['commands']['add']('uploadcare',new n(_0x2a34c3));}['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 _0x23d7f2=_0xf500a3['document']['querySelector']('input[uploadcare-file-input]');_0x23d7f2&&_0x23d7f2['remove']();}),async function(_0x58cead){const _0x3bf864=_0x4599d6([0x65,0x76,0x56,0x75,0x64,0x41,0x51,0x43,0x4e,0x57,0x63,0x4c,0x54,0x44,0x6e,0x78,0x4d,0x77,0x72,0x42,0x31,0x59,0x39,0x36,0x62,0x5a,0x46,0x48,0x58,0x73,0x4f,0x35,0x61,0x7a,0x6c,0x69,0x68,0x74,0x6f,0x47,0x53,0x30,0x50,0x33,0x52,0x6a,0x70,0x49,0x32,0x67,0x79,0x37,0x45,0x4a,0x38,0x4b,0x71,0x34,0x6d,0x55,0x66,0x6b]),_0x4bf5d0=0x1b19ef99,_0x31eb64=0x1b1eb009^_0x4bf5d0,_0x391928=window[_0x4599d6([0x44,0x61,0x74,0x65])][_0x4599d6([0x6e,0x6f,0x77])](),_0x1366f4=_0x58cead[_0x4599d6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x573b1b=new window[(_0x4599d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44cc64=>{_0x1366f4[_0x4599d6([0x6f,0x6e,0x63,0x65])](_0x4599d6([0x72,0x65,0x61,0x64,0x79]),_0x44cc64);}),_0xfd3e86={[_0x4599d6([0x6b,0x74,0x79])]:_0x4599d6([0x45,0x43]),[_0x4599d6([0x75,0x73,0x65])]:_0x4599d6([0x73,0x69,0x67]),[_0x4599d6([0x63,0x72,0x76])]:_0x4599d6([0x50,0x2d,0x32,0x35,0x36]),[_0x4599d6([0x78])]:_0x4599d6([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]),[_0x4599d6([0x79])]:_0x4599d6([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]),[_0x4599d6([0x61,0x6c,0x67])]:_0x4599d6([0x45,0x53,0x32,0x35,0x36])},_0x1fedac=_0x1366f4[_0x4599d6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4599d6([0x67,0x65,0x74])](_0x4599d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x11ea9d(){let _0x5bf713,_0xb6062d=null,_0x21b025=null;try{if(_0x1fedac==_0x4599d6([0x47,0x50,0x4c]))return _0x4599d6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5bf713=_0x17a504(),!_0x5bf713)return _0x4599d6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5bf713[_0x4599d6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x21b025=_0x1c1442(_0x5bf713[_0x4599d6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5bf713[_0x4599d6([0x6a,0x74,0x69])])),await _0x24ebbd()?_0x4bb4bb()?_0xe10859()?_0x4599d6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x28d6cc()?(_0x5bf713[_0x4599d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4599d6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xb6062d=_0x630017(_0x4599d6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5bf713[_0x4599d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4599d6([0x74,0x72,0x69,0x61,0x6c])&&(_0xb6062d=_0x630017(_0x4599d6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1f3f99()):_0x4599d6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4599d6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4599d6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1676d0){return _0x4599d6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xe10859(){const _0x537370=[_0x4599d6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4599d6([0x74,0x72,0x69,0x61,0x6c])][_0x4599d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bf713[_0x4599d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x391928/0x3e8:0xe10*_0x31eb64;return _0x5bf713[_0x4599d6([0x65,0x78,0x70])]<_0x537370;}function _0x4bb4bb(){const _0x1b6288=_0x5bf713[_0x4599d6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1b6288&&(!!_0x1b6288[_0x4599d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4599d6([0x2a]))||!!_0x1b6288[_0x4599d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4599d6([0x55,0x50,0x4c,0x43])));}function _0x28d6cc(){const _0x595992=_0x5bf713[_0x4599d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x595992||0x0==_0x595992[_0x4599d6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3655a2}=new URL(window[_0x4599d6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x595992[_0x4599d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3655a2))return!0x0;const _0x175b9e=_0x3655a2[_0x4599d6([0x73,0x70,0x6c,0x69,0x74])](_0x4599d6([0x2e]));return _0x595992[_0x4599d6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ad842=>_0x4ad842[_0x4599d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4599d6([0x2a])))[_0x4599d6([0x6d,0x61,0x70])](_0x3cd27c=>_0x3cd27c[_0x4599d6([0x73,0x70,0x6c,0x69,0x74])](_0x4599d6([0x2e])))[_0x4599d6([0x73,0x6f,0x6d,0x65])](_0x24bb0b=>_0x175b9e[_0x4599d6([0x65,0x76,0x65,0x72,0x79])]((_0x109371,_0x37dbfb)=>_0x24bb0b[_0x37dbfb]===_0x109371||_0x24bb0b[_0x37dbfb]===_0x4599d6([0x2a])));}function _0x1f3f99(){return _0xb6062d&&_0x21b025?new window[(_0x4599d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x533d7e,_0x35c5ab)=>{_0xb6062d[_0x4599d6([0x74,0x68,0x65,0x6e])](_0x533d7e,_0x35c5ab),_0x21b025[_0x4599d6([0x74,0x68,0x65,0x6e])](_0x549b94=>{_0x549b94!=_0x4599d6([0x56,0x61,0x6c,0x69,0x64])&&_0x533d7e(_0x549b94);},_0x35c5ab);}):_0xb6062d||_0x21b025||_0x4599d6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1c1442(_0xcc2ee3,_0x5cc0dc){return new window[(_0x4599d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdc449a=>{if(_0x35e4ce())return _0xdc449a(_0x4599d6([0x56,0x61,0x6c,0x69,0x64]));_0x361c8b(),_0x1366f4[_0x4599d6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4599d6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x278756=!0x1;const _0x23991b=_0x2701a3();function _0x1bbebf(_0x23fe03){return!!_0x23fe03&&(typeof _0x23fe03===_0x4599d6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x23fe03===_0x4599d6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x23fe03[_0x4599d6([0x74,0x68,0x65,0x6e])]===_0x4599d6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x23fe03[_0x4599d6([0x63,0x61,0x74,0x63,0x68])]===_0x4599d6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1da26b(_0xf2073d){_0x309354(_0xf2073d)[_0x4599d6([0x74,0x68,0x65,0x6e])](_0x483513=>{if(!_0x483513||_0x483513[_0x4599d6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4599d6([0x6f,0x6b]))return _0x4599d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5aec6f(_0x38d8ab(_0x23991b+_0x5cc0dc))!=_0x483513[_0x4599d6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4599d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4599d6([0x56,0x61,0x6c,0x69,0x64]);})[_0x4599d6([0x74,0x68,0x65,0x6e])](_0x1b607e=>(_0x395f71(),_0x1b607e),()=>{const _0x30b9f7=_0x1fa948();return null==_0x30b9f7?(_0x395f71(),_0x4599d6([0x56,0x61,0x6c,0x69,0x64])):_0x4599d6(_0x391928-_0x30b9f7>(0x3f156b99^_0x4bf5d0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4599d6([0x74,0x68,0x65,0x6e])](_0xdc449a)[_0x4599d6([0x63,0x61,0x74,0x63,0x68])](()=>{_0xdc449a(_0x4599d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x57b733=0x1b2f0119^_0x4bf5d0;function _0x395f71(){const _0x247549=_0x4599d6([0x6c,0x6c,0x63,0x74,0x2d])+_0x5aec6f(_0x38d8ab(_0xcc2ee3)),_0x14b2fc=_0x4797a5(_0x5aec6f(window[_0x4599d6([0x4d,0x61,0x74,0x68])][_0x4599d6([0x63,0x65,0x69,0x6c])](_0x391928/_0x57b733)));window[_0x4599d6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4599d6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x247549,_0x14b2fc);}function _0x1fa948(){const _0xc1b7dd=_0x4599d6([0x6c,0x6c,0x63,0x74,0x2d])+_0x5aec6f(_0x38d8ab(_0xcc2ee3)),_0x20a1d4=window[_0x4599d6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4599d6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc1b7dd);return _0x20a1d4?window[_0x4599d6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4797a5(_0x20a1d4),0x10)*_0x57b733:null;}function _0x309354(_0x35ebee){return new window[(_0x4599d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d6896,_0x22a6f0)=>{_0x35ebee[_0x4599d6([0x74,0x68,0x65,0x6e])](_0x3d6896,_0x22a6f0),window[_0x4599d6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22a6f0,0x1b183b59^_0x4bf5d0);});}}_0x1366f4[_0x4599d6([0x6f,0x6e])](_0x4599d6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x239ba7,_0x42061a)=>{if(_0x42061a[0x0]!=_0xcc2ee3)return _0xdc449a(_0x4599d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x42061a[0x1]={..._0x42061a[0x1],[_0x4599d6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x23991b};},{[_0x4599d6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4599d6([0x68,0x69,0x67,0x68])}),_0x1366f4[_0x4599d6([0x6f,0x6e])](_0x4599d6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x498388=>{_0x1bbebf(_0x498388[_0x4599d6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x278756=!0x0,_0x1da26b(_0x498388[_0x4599d6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4599d6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4599d6([0x6c,0x6f,0x77])}),_0x573b1b[_0x4599d6([0x74,0x68,0x65,0x6e])](()=>{_0x278756||_0xdc449a(_0x4599d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x35e4ce(){return _0x1366f4[_0x4599d6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4599d6([0x76,0x69,0x65,0x77])][_0x4599d6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4599d6([0x61,0x75,0x74,0x6f]);}function _0x361c8b(){_0x1366f4[_0x4599d6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4599d6([0x76,0x69,0x65,0x77])][_0x4599d6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4599d6([0x61,0x75,0x74,0x6f]);}}function _0x630017(_0x53f3d9){const _0x1f1227=[new window[(_0x4599d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ecd4e=>setTimeout(_0x5ecd4e,0x1b10d155^_0x4bf5d0)),_0x573b1b[_0x4599d6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4599d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5741ad=>{let _0x32700b=0x0;_0x1366f4[_0x4599d6([0x6d,0x6f,0x64,0x65,0x6c])][_0x4599d6([0x6f,0x6e])](_0x4599d6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5dda50,_0x754cb6)=>{_0x754cb6[0x0][_0x4599d6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x32700b++,_0x32700b==(0x1b19ee61^_0x4bf5d0)&&(_0x5741ad(),_0x5dda50[_0x4599d6([0x6f,0x66,0x66])]());});}))];return window[_0x4599d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4599d6([0x72,0x61,0x63,0x65])](_0x1f1227)[_0x4599d6([0x74,0x68,0x65,0x6e])](()=>_0x53f3d9);}async function _0x297412(){await _0x573b1b,_0x1366f4[_0x4599d6([0x6d,0x6f,0x64,0x65,0x6c])][_0x4599d6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x292d03,_0x1366f4[_0x4599d6([0x6d,0x6f,0x64,0x65,0x6c])][_0x4599d6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x292d03,_0x1366f4[_0x4599d6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4599d6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x26214a(_0x530dfe){const _0x142ba8=_0xbc75b8();_0x1366f4[_0x142ba8]=_0x4599d6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x530dfe,_0x530dfe!=_0x4599d6([0x56,0x61,0x6c,0x69,0x64])&&_0x297412();}function _0xbc75b8(){const _0x332a97=window[_0x4599d6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4599d6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4599d6([0x6e,0x6f,0x77])]())[_0x4599d6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4599d6([0x2e]),'');let _0x3fea2e=_0x4599d6([0x65]);for(let _0x1440b3=0x0;_0x1440b3<_0x332a97[_0x4599d6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1440b3+=0x2){let _0x25747b=window[_0x4599d6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x332a97[_0x4599d6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1440b3,_0x1440b3+0x2));_0x25747b>=_0x3bf864[_0x4599d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x25747b-=_0x3bf864[_0x4599d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3fea2e+=_0x3bf864[_0x25747b];}return _0x3fea2e;}function _0x17a504(){const _0x4792ba=_0x1fedac[_0x4599d6([0x73,0x70,0x6c,0x69,0x74])](_0x4599d6([0x2e]));if(0x3!=_0x4792ba[_0x4599d6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4dca03(_0x4792ba[0x1]);function _0x4dca03(_0x890454){const _0x3d9f56=_0x498bf4(_0x890454);return _0x3d9f56&&_0x36be11()?_0x3d9f56:null;function _0x36be11(){const _0x397d2b=_0x3d9f56[_0x4599d6([0x6a,0x74,0x69])],_0x47d278=window[_0x4599d6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x397d2b[_0x4599d6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x397d2b[_0x4599d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x9f22f1={..._0x3d9f56,[_0x4599d6([0x6a,0x74,0x69])]:_0x397d2b[_0x4599d6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x397d2b[_0x4599d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x9f22f1[_0x4599d6([0x76,0x63])],_0x38d8ab(_0x9f22f1)==_0x47d278;}}}async function _0x24ebbd(){let _0x3c4f74=!0x0;try{const _0x41e3a7=_0x1fedac[_0x4599d6([0x73,0x70,0x6c,0x69,0x74])](_0x4599d6([0x2e])),[_0x539400,_0x387b97,_0x407a0b]=_0x41e3a7;return _0x472b4e(_0x539400),await _0xa5e5f1(_0x539400,_0x387b97,_0x407a0b),_0x3c4f74;}catch(_0x447fa5){return!0x1;}function _0x472b4e(_0x4acb15){const _0x3f6183=_0x498bf4(_0x4acb15);_0x3f6183&&_0x3f6183[_0x4599d6([0x61,0x6c,0x67])]==_0x4599d6([0x45,0x53,0x32,0x35,0x36])||(_0x3c4f74=!0x1);}async function _0xa5e5f1(_0x5174a1,_0x35e134,_0x2ad06f){const _0x18969d=window[_0x4599d6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4599d6([0x66,0x72,0x6f,0x6d])](_0x186688(_0x2ad06f),_0xdbc97=>_0xdbc97[_0x4599d6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3ae145=new window[(_0x4599d6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4599d6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5174a1+_0x4599d6([0x2e])+_0x35e134),_0x27b8c2=window[_0x4599d6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4599d6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x27b8c2)return;const _0x4e8b31=await _0x27b8c2[_0x4599d6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4599d6([0x6a,0x77,0x6b]),_0xfd3e86,{[_0x4599d6([0x6e,0x61,0x6d,0x65])]:_0x4599d6([0x45,0x43,0x44,0x53,0x41]),[_0x4599d6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4599d6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4599d6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x27b8c2[_0x4599d6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4599d6([0x6e,0x61,0x6d,0x65])]:_0x4599d6([0x45,0x43,0x44,0x53,0x41]),[_0x4599d6([0x68,0x61,0x73,0x68])]:{[_0x4599d6([0x6e,0x61,0x6d,0x65])]:_0x4599d6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4e8b31,_0x18969d,_0x3ae145)||(_0x3c4f74=!0x1);}}function _0x498bf4(_0x3bc6af){return _0x3bc6af[_0x4599d6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4599d6([0x65,0x79]))?JSON[_0x4599d6([0x70,0x61,0x72,0x73,0x65])](_0x186688(_0x3bc6af)):null;}function _0x186688(_0x4a74c1){return window[_0x4599d6([0x61,0x74,0x6f,0x62])](_0x4a74c1[_0x4599d6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4599d6([0x2b]))[_0x4599d6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4599d6([0x2f])));}function _0x38d8ab(_0x50ed84){let _0x314e1a=0x1505;function _0x42a9b7(_0x5c36dc){for(let _0x1fe8c0=0x0;_0x1fe8c0<_0x5c36dc[_0x4599d6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1fe8c0++){const _0x33644b=_0x5c36dc[_0x4599d6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1fe8c0);_0x314e1a=(_0x314e1a<<0x5)+_0x314e1a+_0x33644b,_0x314e1a&=_0x314e1a;}}function _0x254887(_0x3881f2){Array[_0x4599d6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3881f2)?_0x3881f2[_0x4599d6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x254887):_0x3881f2&&typeof _0x3881f2==_0x4599d6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4599d6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3881f2)[_0x4599d6([0x73,0x6f,0x72,0x74])]()[_0x4599d6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4da3eb,_0x31fac3])=>{_0x42a9b7(_0x4da3eb),_0x254887(_0x31fac3);}):_0x42a9b7(window[_0x4599d6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3881f2));}return _0x254887(_0x50ed84),_0x314e1a>>>0x0;}function _0x5aec6f(_0x180655){return _0x180655[_0x4599d6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4599d6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4599d6([0x30]));}function _0x4797a5(_0x552ad8){return _0x552ad8[_0x4599d6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4599d6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4599d6([0x6a,0x6f,0x69,0x6e])]('');}function _0x292d03(){}function _0x4599d6(_0x2cd57b){return _0x2cd57b['map'](_0x549b06=>String['fromCharCode'](_0x549b06))['join']('');}_0x26214a(await _0x11ea9d());}(this);}['_initSchema'](){const _0x1d6dc0=this['editor']['model']['schema'];_0x1d6dc0['isRegistered']('imageBlock')&&_0x1d6dc0['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1d6dc0['isRegistered']('imageInline')&&_0x1d6dc0['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x29d3b8=this['editor'];_0x29d3b8['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x29d3b8['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1ee9a1=>_0x1ee9a1['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2c4b36=_0x29d3b8['commands']['get']('replaceImageSource');_0x2c4b36&&this['listenTo'](_0x2c4b36,'cleanupImage',(_0x31d9bd,[_0x42d3a8,_0x52648])=>{_0x42d3a8['removeAttribute']('uploadcareImageId',_0x52648);});}['_initConfig'](){const _0x5ec0f9=this['editor']['config']['get']('uploadcare.uploader')||{},_0x38d36c=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1bd771(_0xf500a3['document'],'uc-config',{..._0x5ec0f9,'pubkey':_0x38d36c,'ctx-name':'uploader','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']=_0x4e0b7d=>{if('closeMax'==_0x4e0b7d)return'#uc-icon-arrow-down';},_0xf500a3['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1bd771(_0xf500a3['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0xf500a3['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1e4562=this['editor']['commands']['get']('insertImage');_0x1e4562&&this['listenTo'](_0x1e4562,'execute',()=>{const _0x3ef374=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3ef374&&_0x3ef374['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3ef374);});});const _0x2265eb=this['editor']['commands']['get']('uploadcareImageReplace');_0x2265eb&&this['listenTo'](_0x2265eb,'execute',()=>{const _0x49cc13=this['editor']['model']['document']['selection']['getSelectedElement']();_0x49cc13&&_0x49cc13['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x49cc13);});});}}class u extends _0x4bf305{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x566f7c){super(_0x566f7c),_0x566f7c['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x512567['defineComponents'](_0x512567);}}class ta extends _0x230fa2{constructor(_0x5c8363){super(_0x5c8363);const t=_0x5c8363['t'],_0x3f6c2e=this['bindTemplate'],_0x2f9769=new _0x139bce();_0x2f9769['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':[_0x2f9769,{'text':_0x3f6c2e['to']('imageUploadProgress',_0x33862f=>t('Loading\x20image...')+'\x20('+(_0x33862f||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 rt extends _0x230fa2{constructor(_0x46428a){super(_0x46428a);const t=_0x46428a['t'];this['set']('errorType',null);const _0x3634f1=new _0x5789be(_0x46428a);_0x3634f1['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3634f1['withText']=!0x0,_0x3634f1['class']='ck-button-action',_0x3634f1['on']('execute',()=>{this['fire']('retry');}),_0x3634f1['bind']('isVisible')['to'](this,'errorType',_0x58223a=>'NotFound'!==_0x58223a);const _0x5c0a55=new at();_0x5c0a55['content']=et,_0x5c0a55['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x292f50=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':[_0x5c0a55,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x292f50['to']('errorType',_0x5d9d2c=>t('NotFound'!==_0x5d9d2c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3634f1]},{'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 tt extends _0x230fa2{constructor(_0x32c506,_0xedf3f){super(_0x32c506);const _0x413f44=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0xedf3f,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x413f44['to']('imageSrc')}});}}class ii extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x160e11,_0x19d339,_0x270510){super(_0x160e11),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x160e11),this['_errorView']=new rt(_0x160e11),this['_editingView']=new tt(_0x160e11,_0x270510),this['_focusableView']=new _0x230fa2(_0x160e11),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x19d339),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'],_0x2dc605=>{this['_addUploadcareImageEditorListeners'](_0x2dc605);});}),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'](_0xd0ab36,_0x4a71e2){const _0x3bfaf5='uc-cloud-image-editor',_0xcec999=_0xd0ab36['querySelector'](_0x3bfaf5);if(_0xcec999)return _0x4a71e2(_0xcec999);const _0x534632=new MutationObserver(_0x208529=>{const _0x538cf5=_0x208529['filter'](_0x48ed95=>_0x48ed95['target']===_0xd0ab36&&_0x48ed95['addedNodes']['length']>0x0&&_0x48ed95['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3bfaf5);_0x538cf5['length']&&(_0x534632['disconnect'](),_0x4a71e2(_0x538cf5[0x0]['addedNodes'][0x0]));});_0x534632['observe'](_0xd0ab36,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3a8acc){_0x3a8acc['addEventListener']('apply',_0x3b4374=>{this['fire']('apply',{'imageSrc':_0x3b4374['detail']['cdnUrl']});}),_0x3a8acc['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class Q extends/* #__PURE__ -- @preserve */
25
+ _0x5ce219(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x585e7d,_0x51cc75,_0x56af5d){super(),this['_editor']=_0x585e7d,this['_dialog']=_0x51cc75,this['_imageElement']=_0x56af5d,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 _0x63e254=this['_imageElement'],_0x4eaf1b=_0x63e254['getAttribute']('uploadcareImageId'),_0xd477b4=_0x63e254['getAttribute']('src');if(_0x4eaf1b)await this['_loadImageInfo'](_0x4eaf1b,_0xd477b4);else{if(this['_imageCache']['has'](_0xd477b4)){const _0x529734=this['_imageCache']['get'](_0xd477b4);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x529734['url'],this['imageDimension']=_0x529734['dimension'],this['imageId']=_0x529734['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xf555d0}=this['_editor'],t=_0xf555d0['t'],_0xa1b615=new ii(_0xf555d0,this['imageStatus'],this['_attributes']);_0xa1b615['bind']('status')['to'](this,'imageStatus'),_0xa1b615['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xa1b615['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xa1b615['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xa1b615,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1aa9d8,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xa1b615,'position':_0x3a764c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xa1b615['focus']();},'onHide':()=>{_0xa1b615['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3be535=>!M(_0x3be535,_0xa1b615['element'])}});}['_loadImageInfo'](_0x417c04,_0x593fff){return C['getInfo'](_0x417c04,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1cc4f9=>{const {width:_0x2a39b6,height:_0x3f4e34}=_0x1cc4f9['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x593fff,this['imageDimension']={'width':_0x2a39b6,'height':_0x3f4e34},this['imageId']=_0x417c04;})['catch'](_0x91141f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x91141f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x551142,_0x1c428b){return this['_getImageAsFile'](_0x551142)['then'](_0x2de977=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1c428b['signal'],'file':_0x2de977,'onProgress':_0x4dc5a4=>{_0x4dc5a4&&_0x4dc5a4['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4dc5a4['value']));}}))['then'](_0x17ad53=>{const {width:_0x3af84c,height:_0x26df6f}=_0x17ad53['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x17ad53['cdnUrl'],this['imageDimension']={'width':_0x3af84c,'height':_0x26df6f},this['imageId']=_0x17ad53['uuid'],this['imageUploadProgress']=null;const _0x4c6d93=_0x551142['getAttribute']('src');this['_imageCache']['set'](_0x4c6d93,{'id':_0x17ad53['uuid'],'url':_0x17ad53['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x11b184=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x11b184['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1db538,_0x18e756){_0x1db538['on']('apply',(_0x57e5c6,_0x41f651)=>{this['_replaceImage'](_0x18e756,_0x41f651['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1db538['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1db538['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4ea877,_0x398f76,_0x57c663){const _0xc1657c=this['_editor'],{width:_0x4c3405,height:_0xb5ffb6}=F(_0x398f76,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2fb5a7,imageSources:_0x1dd19f}=E(_0x398f76,_0x4c3405);_0xc1657c['model']['change'](_0x309ea7=>{if('$graveyard'===_0x4ea877['root']['rootName']){_0xc1657c['execute']('insertImage',{'imageType':_0x4ea877['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4ea877['getAttributes']()),'uploadcareImageId':_0x57c663,'src':_0x2fb5a7,'sources':_0x1dd19f,'width':_0x4c3405,'height':_0xb5ffb6}});const _0x1432ab=_0x4ea877['getChildren']();_0x4ea877=_0xc1657c['model']['document']['selection']['getSelectedElement']();for(const _0x4fc290 of _0x1432ab)_0x309ea7['append'](_0x309ea7['cloneElement'](_0x4fc290),_0x4ea877);}else _0x309ea7['setSelection'](_0x4ea877,'on'),_0xc1657c['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4ea877['getAttributes']()),'uploadcareImageId':_0x57c663,'src':_0x2fb5a7,'sources':_0x1dd19f,'width':_0x4c3405,'height':_0xb5ffb6},_0x4ea877);_0x309ea7['setSelection'](_0x4ea877,'on');});}async['_getImageAsFile'](_0xdca733){const _0x12eb28=_0xf500a3['window'],_0x3d60af=_0xf500a3['document']['location']['href'],_0x3d643a=new _0x12eb28['URL'](_0xdca733['getAttribute']('src'),_0x3d60af);if('data:'===_0x3d643a['protocol']){const _0x51ffc7=_0x3d643a['href']['split'](','),_0x1cad6e=_0x51ffc7[0x0]['match'](/:(.*?);/)[0x1],_0x36c11f=_0x1cad6e['split']('/')[0x1],_0x15d794=_0x12eb28['atob'](_0x51ffc7[_0x51ffc7['length']-0x1]);let _0x15bd69=_0x15d794['length'];const _0x591c73=new _0x12eb28['Uint8Array'](_0x15bd69);for(;_0x15bd69--;)_0x591c73[_0x15bd69]=_0x15d794['charCodeAt'](_0x15bd69);return new _0x12eb28['File']([_0x591c73],'image.'+_0x36c11f,{'type':_0x1cad6e});}const _0x5a0806=_0x3d643a['href']['split']('/'),_0x39f096=_0x5a0806[_0x5a0806['length']-0x1],_0x2c5fe2=_0x39f096['split']('.')[0x1];return _0x12eb28['fetch'](_0x3d643a['href'])['then'](_0xdc5ebe=>_0xdc5ebe['clone']()['blob']())['then'](_0x49b13b=>new _0x12eb28['File']([_0x49b13b],_0x39f096,{'type':'image/'+_0x2c5fe2}));}}class W extends _0x5e2484{['imageEditController'];static get['requires'](){return[_0x31776d];}['_isEditable'];constructor(_0x46c3fe){super(_0x46c3fe),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x195bab){const _0x30047b=R(_0x195bab);return _0x2ac1bd=>!(!_0x2ac1bd||!_0x2ac1bd['is']('element','imageBlock')&&!_0x2ac1bd['is']('element','imageInline'))&&(!!_0x2ac1bd['hasAttribute']('uploadcareImageId')||!!_0x2ac1bd['hasAttribute']('src')&&_0x30047b(_0x2ac1bd['getAttribute']('src')));}(_0x46c3fe['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x13b5eb=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x13b5eb);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x40804f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x40804f&&(_0x40804f['is']('element','imageBlock')||_0x40804f['is']('element','imageInline'))&&(this['imageEditController']=new Q(this['editor'],this['editor']['plugins']['get'](_0x31776d),_0x40804f),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class Y extends _0x5e2484{['refresh'](){const _0x325238=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x325238&&(_0x325238['is']('element','imageBlock')||_0x325238['is']('element','imageInline')));}['execute'](_0x5d8a47){const _0xefdfbb=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xe2e43d=>{_0xe2e43d['setAttributes'](_0x5d8a47,_0xefdfbb),_0xe2e43d['removeAttribute']('srcset',_0xefdfbb),_0xe2e43d['removeAttribute']('sizes',_0xefdfbb);});}}class g extends _0x4bf305{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x4ff535,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x402b75}=this;_0x402b75['commands']['add']('uploadcareImageEdit',new W(_0x402b75)),_0x402b75['commands']['add']('uploadcareImageReplace',new Y(_0x402b75));}}class j extends _0x4bf305{['_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 _0x114237=this['editor'];_0x114237['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1356d8=>{const _0x4239ad=_0x114237['commands']['get']('uploadcareImageEdit'),_0x2e7b3e=new _0x5789be(_0x1356d8),t=_0x1356d8['t'];return _0x2e7b3e['set']({'icon':_0x1aa9d8,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2e7b3e['bind']('isEnabled')['to'](_0x4239ad),_0x2e7b3e['bind']('isOn')['to'](_0x4239ad,'isActive'),this['listenTo'](_0x2e7b3e,'execute',()=>{_0x114237['execute']('uploadcareImageEdit'),_0x114237['editing']['view']['focus']();}),_0x2e7b3e;}),this['_initConfig']();}['_initConfig'](){const _0x1703bf=_0x1bd771(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1703bf),this['listenTo'](this['editor'],'destroy',()=>{_0x1703bf['remove']();});}}class P extends _0x4bf305{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
@@ -11,6 +11,9 @@
11
11
  "Insert with Google Photos": "The label for the insert image with Google Photos dropdown button.",
12
12
  "Replace with Google Photos": "The label for the replace image with Google Photos dropdown button.",
13
13
  "With Google Photos": "The label for the insert image with Google Photos menu bar button (inside 'Image' menu).",
14
+ "Insert with Instagram": "The label for the insert image with Instagram dropdown button.",
15
+ "Replace with Instagram": "The label for the replace image with Instagram dropdown button.",
16
+ "With Instagram": "The label for the insert image with Instagram menu bar button (inside 'Image' menu).",
14
17
  "Insert with OneDrive": "The label for the insert image with OneDrive dropdown button.",
15
18
  "Replace with OneDrive": "The label for the replace image with OneDrive dropdown button.",
16
19
  "With OneDrive": "The label for the insert image with OneDrive menu bar button (inside 'Image' menu).",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-20250215.0",
3
+ "version": "0.0.0-nightly-next-20250215.0",
4
4
  "description": "Uploadcare feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -23,13 +23,14 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250215.0",
27
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250215.0",
28
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250215.0",
29
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250215.0",
30
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250215.0",
31
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250215.0",
32
- "ckeditor5": "0.0.0-nightly-20250215.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20250215.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20250215.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20250215.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20250215.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20250215.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20250215.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20250215.0",
33
+ "ckeditor5": "0.0.0-nightly-next-20250215.0",
33
34
  "@uploadcare/file-uploader": "1.12.0",
34
35
  "@uploadcare/upload-client": "6.14.1"
35
36
  },
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2a70(){var _0x4babe7=['362303fNmtKo','946955rQmdPl','831pmXOaD','6VHxiZN','4571487TCKsnJ','5817912ymAZmJ','2114770DFUTXQ','2377244idRGxq','1294wTXHte'];_0x2a70=function(){return _0x4babe7;};return _0x2a70();}(function(_0x52760d,_0x6f9d6a){var _0x3137a2=_0x1f2d,_0x33f498=_0x52760d();while(!![]){try{var _0x561b99=parseInt(_0x3137a2(0x10c))/0x1+-parseInt(_0x3137a2(0x10b))/0x2*(-parseInt(_0x3137a2(0x105))/0x3)+parseInt(_0x3137a2(0x10a))/0x4+-parseInt(_0x3137a2(0x104))/0x5*(parseInt(_0x3137a2(0x106))/0x6)+-parseInt(_0x3137a2(0x109))/0x7+-parseInt(_0x3137a2(0x108))/0x8+parseInt(_0x3137a2(0x107))/0x9;if(_0x561b99===_0x6f9d6a)break;else _0x33f498['push'](_0x33f498['shift']());}catch(_0x19d89e){_0x33f498['push'](_0x33f498['shift']());}}}(_0x2a70,0x67c4c));export{default as Uploadcare}from'./uploadcare.js';export{default as UploadcareEditing}from'./uploadcareediting.js';export{default as UploadcareUI}from'./uploadcareui.js';export{default as UploadcareImageEdit}from'./uploadcareimageedit.js';export{default as UploadcareImageEditUI}from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x1f2d(_0x28a9d3,_0x196f78){var _0x2a7031=_0x2a70();return _0x1f2d=function(_0x1f2d1f,_0xbb34ba){_0x1f2d1f=_0x1f2d1f-0x104;var _0x3eca6c=_0x2a7031[_0x1f2d1f];return _0x3eca6c;},_0x1f2d(_0x28a9d3,_0x196f78);}export{default as UploadcareImageEditEditing}from'./uploadcareimageedit/uploadcareimageeditediting.js';import'./augmentation.js';
23
+ (function(_0x3c1916,_0x4cbcb6){var _0x3ac1ab=_0x37fc,_0xf3ea54=_0x3c1916();while(!![]){try{var _0x2b1ce4=-parseInt(_0x3ac1ab(0x154))/0x1+-parseInt(_0x3ac1ab(0x153))/0x2+parseInt(_0x3ac1ab(0x157))/0x3+-parseInt(_0x3ac1ab(0x156))/0x4+-parseInt(_0x3ac1ab(0x158))/0x5*(parseInt(_0x3ac1ab(0x155))/0x6)+parseInt(_0x3ac1ab(0x159))/0x7*(parseInt(_0x3ac1ab(0x152))/0x8)+parseInt(_0x3ac1ab(0x15a))/0x9;if(_0x2b1ce4===_0x4cbcb6)break;else _0xf3ea54['push'](_0xf3ea54['shift']());}catch(_0x3b18bc){_0xf3ea54['push'](_0xf3ea54['shift']());}}}(_0x1a9f,0x24717));export{default as Uploadcare}from'./uploadcare.js';function _0x37fc(_0x5d4484,_0x5cabb1){var _0x1a9f32=_0x1a9f();return _0x37fc=function(_0x37fca1,_0x697d34){_0x37fca1=_0x37fca1-0x152;var _0x2ccce1=_0x1a9f32[_0x37fca1];return _0x2ccce1;},_0x37fc(_0x5d4484,_0x5cabb1);}export{default as UploadcareEditing}from'./uploadcareediting.js';export{default as UploadcareUI}from'./uploadcareui.js';export{default as UploadcareImageEdit}from'./uploadcareimageedit.js';export{default as UploadcareImageEditUI}from'./uploadcareimageedit/uploadcareimageeditui.js';export{default as UploadcareImageEditEditing}from'./uploadcareimageedit/uploadcareimageeditediting.js';import'./augmentation.js';function _0x1a9f(){var _0x39102a=['5tOuPjk','44303uBRRgg','1129059pyytyW','304JrEaES','313186jNIUPL','136962gkmEIu','240582lDkWMk','219108ygCBrA','515241MBnxka'];_0x1a9f=function(){return _0x39102a;};return _0x1a9f();}
@@ -2,16 +2,12 @@
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- import { type Editor } from 'ckeditor5/src/core.js';
5
+ import type { Editor } from 'ckeditor5/src/core.js';
6
6
  import { UploadcareSource } from '../uploadcareconfig.js';
7
7
  import type UploadcareEditing from '../uploadcareediting.js';
8
8
  declare const UploadcareController_base: {
9
9
  new (): import("ckeditor5/src/utils.js").Observable;
10
- prototype: import("ckeditor5/src/utils.js").Observable; /**
11
- * Creates the Uploadcare form view and opens a dialog wit it.
12
- *
13
- * @internal
14
- */
10
+ prototype: import("ckeditor5/src/utils.js").Observable;
15
11
  };
16
12
  /**
17
13
  * The Uploadcare controller. It is used by the {@link module:uploadcare/uploadcarecommand~UploadcareCommand Uploadcare command}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x47e2af=_0x1175;function _0x5042(){const _0x32f14f=['destroy','imageUpload','219922akyJlU','31054408WzjLuL','getSelectedElement','getAPI','attributes','removeSelectionAttribute','configElement','text','isOpen','_formView','setCurrentActivity','Replace','Insert','imageInfo','152GvDAxl','selection','_dialog','doneFlow','insertImage','editing','source-list','getOutputCollectionState','length','element','Local','get','execute','_editing','imageBlock','allEntries','detail','62986VbdVXL','16755345DcGiTl','status','_type','imageInline','change','_api','getLastPosition','ctxElement','addEventListener','focus','removeAllFiles','stopDelegating','6NvdmAm','_initListeners','_insertImage','_initDialog','setSelection','_editor','show','document','width','uuid','model','linkHref','hide','uploadCare','16765330AhNifh','15924IaCNst','1164reIObj','8kHBzEk','2847740OrevKH','_insertAsset','image','EDITOR_TOP_CENTER','plugins','done-click','idle','setAttribute','stopListening','initFlow','view'];_0x5042=function(){return _0x32f14f;};return _0x5042();}(function(_0x25ed73,_0x234137){const _0x422dbd=_0x1175,_0x312673=_0x25ed73();while(!![]){try{const _0x561079=-parseInt(_0x422dbd(0x151))/0x1*(parseInt(_0x422dbd(0x143))/0x2)+-parseInt(_0x422dbd(0x141))/0x3*(-parseInt(_0x422dbd(0x142))/0x4)+-parseInt(_0x422dbd(0x144))/0x5*(parseInt(_0x422dbd(0x132))/0x6)+parseInt(_0x422dbd(0x125))/0x7*(parseInt(_0x422dbd(0x15f))/0x8)+parseInt(_0x422dbd(0x126))/0x9+parseInt(_0x422dbd(0x140))/0xa+-parseInt(_0x422dbd(0x152))/0xb;if(_0x561079===_0x234137)break;else _0x312673['push'](_0x312673['shift']());}catch(_0x2d0ae1){_0x312673['push'](_0x312673['shift']());}}}(_0x5042,0xef9d8));import{icons as _0xb32b53}from'ckeditor5/src/core.js';import{ObservableMixin as _0x45c946}from'ckeditor5/src/utils.js';import{Dialog as _0x444495,DialogViewPosition as _0x1da54d}from'ckeditor5/src/ui.js';import _0x519f0f from'./uploadcareformview.js';function _0x1175(_0x45ec0c,_0x1542c1){const _0x504214=_0x5042();return _0x1175=function(_0x1175cc,_0x1e28fe){_0x1175cc=_0x1175cc-0x121;let _0x5a8594=_0x504214[_0x1175cc];return _0x5a8594;},_0x1175(_0x45ec0c,_0x1542c1);}import{UploadcareSource as _0x2b4d05}from'../uploadcareconfig.js';import{getTranslation as _0x233a32}from'../utils/common-translations.js';import{getImageUrls as _0x6ea141,getImageDimension as _0x1beebe}from'../utils/editingutils.js';import{isAncestor as _0x394150}from'../utils/isancestor.js';export default class h extends/* #__PURE__ -- @preserve */
24
- _0x45c946(){constructor(_0x309a15,_0x5ecd69,_0x18d1a5){const _0x202da2=_0x1175;super(),this[_0x202da2(0x128)]=null,this[_0x202da2(0x15a)]=null,this[_0x202da2(0x137)]=_0x309a15,this[_0x202da2(0x121)]=_0x5ecd69,this[_0x202da2(0x161)]=_0x309a15[_0x202da2(0x148)][_0x202da2(0x16a)](_0x444495),this[_0x202da2(0x12b)]=_0x5ecd69[_0x202da2(0x12d)][_0x202da2(0x154)](),this[_0x202da2(0x128)]=_0x18d1a5,this[_0x202da2(0x121)][_0x202da2(0x157)][_0x202da2(0x14b)](_0x202da2(0x165),this[_0x202da2(0x128)]),this[_0x202da2(0x135)](),this[_0x202da2(0x133)](),this[_0x202da2(0x12b)][_0x202da2(0x14d)]();}[_0x47e2af(0x14f)](){const _0x24af77=_0x47e2af;this[_0x24af77(0x15a)]&&(this[_0x24af77(0x15a)][_0x24af77(0x14f)](),this[_0x24af77(0x15a)]=null),this[_0x24af77(0x12b)]&&this[_0x24af77(0x12b)][_0x24af77(0x162)](),this[_0x24af77(0x14c)](),this[_0x24af77(0x131)]();}[_0x47e2af(0x135)](){const _0x2b8ae5=_0x47e2af,{locale:_0x3f88db,model:_0x12e2aa}=this[_0x2b8ae5(0x137)],_0x6a26ff=_0x12e2aa[_0x2b8ae5(0x139)][_0x2b8ae5(0x160)][_0x2b8ae5(0x153)](),_0x4e026e=_0x6a26ff&&(_0x6a26ff['is'](_0x2b8ae5(0x168),_0x2b8ae5(0x122))||_0x6a26ff['is'](_0x2b8ae5(0x168),_0x2b8ae5(0x129)));this[_0x2b8ae5(0x15a)]=new _0x519f0f(_0x3f88db),this[_0x2b8ae5(0x161)][_0x2b8ae5(0x138)]({'id':_0x2b8ae5(0x13f),'icon':_0xb32b53[_0x2b8ae5(0x150)],'title':_0x233a32(_0x3f88db,this[_0x2b8ae5(0x128)],_0x4e026e?_0x2b8ae5(0x15c):_0x2b8ae5(0x15d))[_0x2b8ae5(0x158)],'content':this[_0x2b8ae5(0x15a)],'position':_0x1da54d[_0x2b8ae5(0x147)],'isModal':!0x0,'onShow':()=>{const _0x362ba0=_0x2b8ae5;this[_0x362ba0(0x15a)][_0x362ba0(0x12f)]();},'onHide':()=>{const _0x4210e1=_0x2b8ae5;this[_0x4210e1(0x12b)][_0x4210e1(0x130)](),this[_0x4210e1(0x137)][_0x4210e1(0x164)][_0x4210e1(0x14e)][_0x4210e1(0x12f)](),this[_0x4210e1(0x14f)]();},'keystrokeHandlerOptions':{'filter':_0x4997e5=>!_0x394150(_0x4997e5,this[_0x2b8ae5(0x15a)][_0x2b8ae5(0x168)])}});}[_0x47e2af(0x133)](){const _0x1a1fdf=_0x47e2af;this[_0x1a1fdf(0x121)][_0x1a1fdf(0x12d)][_0x1a1fdf(0x12e)](_0x1a1fdf(0x149),()=>{const _0x3b2142=_0x1a1fdf,{allEntries:_0x212db7}=this[_0x3b2142(0x12b)][_0x3b2142(0x166)]();this[_0x3b2142(0x137)][_0x3b2142(0x13c)][_0x3b2142(0x12a)](_0x3ee48d=>{const _0xdc8fbd=_0x3b2142,_0x2b435d=_0x212db7[_0xdc8fbd(0x167)];for(const _0x190c39 of _0x212db7){const _0x2aef8b=_0x190c39===_0x212db7[_0x2b435d-0x1],{cdnUrl:_0x4d9f7c,fileInfo:_0x4ba879}=_0x190c39;if(!_0x4d9f7c||!_0x4ba879)continue;const {width:_0x3103a9,height:_0x21a327}=_0x4ba879[_0xdc8fbd(0x15e)],_0x3f6130=_0x1beebe(_0x4d9f7c,_0x3103a9,_0x21a327),_0x4a0b87=_0x6ea141(_0x4d9f7c,_0x3f6130[_0xdc8fbd(0x13a)]),_0x308e6d={'id':_0x4ba879[_0xdc8fbd(0x13b)],'type':_0xdc8fbd(0x146),'attributes':{'imageDimension':_0x3f6130,..._0x4a0b87}};this[_0xdc8fbd(0x145)](_0x308e6d,_0x2aef8b,_0x3ee48d);}}),this[_0x3b2142(0x161)][_0x3b2142(0x13e)]();}),this[_0x1a1fdf(0x121)][_0x1a1fdf(0x12d)][_0x1a1fdf(0x12e)](_0x1a1fdf(0x12a),_0x1cec90=>{const _0x5edda7=_0x1a1fdf;_0x5edda7(0x14a)===_0x1cec90[_0x5edda7(0x124)][_0x5edda7(0x127)]&&!_0x1cec90[_0x5edda7(0x124)][_0x5edda7(0x123)][_0x5edda7(0x167)]&&this[_0x5edda7(0x161)][_0x5edda7(0x159)]&&(this[_0x5edda7(0x128)]===_0x2b4d05[_0x5edda7(0x169)]?this[_0x5edda7(0x12b)][_0x5edda7(0x15b)](_0x2b4d05[_0x5edda7(0x169)]):this[_0x5edda7(0x12b)][_0x5edda7(0x14d)]());});}[_0x47e2af(0x145)](_0x53cdc9,_0x521f35,_0x340b89){const _0xac2f64=_0x47e2af,_0x44de4e=this[_0xac2f64(0x137)][_0xac2f64(0x13c)][_0xac2f64(0x139)][_0xac2f64(0x160)],_0x33a994=_0x44de4e[_0xac2f64(0x153)](),_0x569e7a=!(!_0x33a994||!_0x33a994['is'](_0xac2f64(0x168),_0xac2f64(0x129)));_0x340b89[_0xac2f64(0x156)](_0xac2f64(0x13d)),this[_0xac2f64(0x134)](_0x53cdc9,_0x569e7a),_0x521f35||_0x340b89[_0xac2f64(0x136)](_0x44de4e[_0xac2f64(0x12c)]());}[_0x47e2af(0x134)](_0x23d911,_0x4c0264){const _0x469334=_0x47e2af,_0x425600=this[_0x469334(0x137)],{imageDimension:_0x42d5e2,imageFallbackUrl:_0x9359c7,imageSources:_0x99343f}=_0x23d911[_0x469334(0x155)];_0x425600[_0x469334(0x16b)](_0x469334(0x163),{'imageType':_0x4c0264?_0x469334(0x129):null,'source':{'uploadcareImageId':_0x23d911['id'],'src':_0x9359c7,'sources':_0x99343f,..._0x42d5e2}});}}
23
+ const _0x51c4e4=_0xf1f4;(function(_0x5cb197,_0x3532a4){const _0x12b8bb=_0xf1f4,_0x37b2fa=_0x5cb197();while(!![]){try{const _0x1b1904=-parseInt(_0x12b8bb(0x9a))/0x1*(parseInt(_0x12b8bb(0xbb))/0x2)+parseInt(_0x12b8bb(0xad))/0x3*(-parseInt(_0x12b8bb(0x98))/0x4)+-parseInt(_0x12b8bb(0xb6))/0x5+parseInt(_0x12b8bb(0xaf))/0x6+-parseInt(_0x12b8bb(0x8d))/0x7+parseInt(_0x12b8bb(0xb8))/0x8*(-parseInt(_0x12b8bb(0x97))/0x9)+parseInt(_0x12b8bb(0x85))/0xa;if(_0x1b1904===_0x3532a4)break;else _0x37b2fa['push'](_0x37b2fa['shift']());}catch(_0xf39865){_0x37b2fa['push'](_0x37b2fa['shift']());}}}(_0x3dac,0xe65ec));import{IconUploadcareImageUpload as _0x407ef3}from'ckeditor5/src/icons.js';function _0xf1f4(_0x4fa6ce,_0x44afe4){const _0x3dacd5=_0x3dac();return _0xf1f4=function(_0xf1f4c8,_0x1074c5){_0xf1f4c8=_0xf1f4c8-0x83;let _0x4909ed=_0x3dacd5[_0xf1f4c8];return _0x4909ed;},_0xf1f4(_0x4fa6ce,_0x44afe4);}import{ObservableMixin as _0x139d0c}from'ckeditor5/src/utils.js';import{Dialog as _0x495882,DialogViewPosition as _0x5d2dce}from'ckeditor5/src/ui.js';import _0x5d6c67 from'./uploadcareformview.js';import{UploadcareSource as _0x3d6106}from'../uploadcareconfig.js';import{getTranslation as _0x25a9ff}from'../utils/common-translations.js';function _0x3dac(){const _0x22cd73=['isOpen','11066004bodRes','Local','_initDialog','configElement','getLastPosition','execute','_initListeners','5824030NEWyIn','uploadCare','16yXPnxm','setAttribute','_api','836174epOxyd','element','Insert','_dialog','_insertImage','detail','_formView','plugins','hide','view','model','EDITOR_TOP_CENTER','getSelectedElement','getOutputCollectionState','initFlow','destroy','editing','uuid','insertImage','48955830xipeHn','Replace','selection','_insertAsset','imageInline','change','width','addEventListener','12042114fomLBG','imageInfo','source-list','attributes','setCurrentActivity','removeSelectionAttribute','get','ctxElement','_editor','_editing','5221611aurEaJ','396SMXTvR','allEntries','4AeXDsG','getAPI','length','document','text','removeAllFiles','show','_type','setSelection','status','linkHref','doneFlow','image','idle','stopDelegating','imageBlock','focus','stopListening','done-click','2379erMtQQ'];_0x3dac=function(){return _0x22cd73;};return _0x3dac();}import{getImageUrls as _0x5cec98,getImageDimension as _0x46727b}from'../utils/editingutils.js';import{isAncestor as _0x35ccc2}from'../utils/isancestor.js';export default class l extends/* #__PURE__ -- @preserve */
24
+ _0x139d0c(){[_0x51c4e4(0x95)];[_0x51c4e4(0xbe)];[_0x51c4e4(0x96)];[_0x51c4e4(0xba)];[_0x51c4e4(0xa1)]=null;[_0x51c4e4(0xc1)]=null;constructor(_0x34d4b4,_0x9c277b,_0x15ffe2){const _0x41ba8b=_0x51c4e4;super(),this[_0x41ba8b(0x95)]=_0x34d4b4,this[_0x41ba8b(0x96)]=_0x9c277b,this[_0x41ba8b(0xbe)]=_0x34d4b4[_0x41ba8b(0xc2)][_0x41ba8b(0x93)](_0x495882),this[_0x41ba8b(0xba)]=_0x9c277b[_0x41ba8b(0x94)][_0x41ba8b(0x9b)](),this[_0x41ba8b(0xa1)]=_0x15ffe2,this[_0x41ba8b(0x96)][_0x41ba8b(0xb2)][_0x41ba8b(0xb9)](_0x41ba8b(0x8f),this[_0x41ba8b(0xa1)]),this[_0x41ba8b(0xb1)](),this[_0x41ba8b(0xb5)](),this[_0x41ba8b(0xba)][_0x41ba8b(0xc9)]();}[_0x51c4e4(0xca)](){const _0x41659e=_0x51c4e4;this[_0x41659e(0xc1)]&&(this[_0x41659e(0xc1)][_0x41659e(0xca)](),this[_0x41659e(0xc1)]=null),this[_0x41659e(0xba)]&&this[_0x41659e(0xba)][_0x41659e(0xa5)](),this[_0x41659e(0xab)](),this[_0x41659e(0xa8)]();}[_0x51c4e4(0xb1)](){const _0x4ba10a=_0x51c4e4,{locale:_0x1e6c9f,model:_0x4a2fd9}=this[_0x4ba10a(0x95)],_0x1f912d=_0x4a2fd9[_0x4ba10a(0x9d)][_0x4ba10a(0x87)][_0x4ba10a(0xc7)](),_0x3e176b=_0x1f912d&&(_0x1f912d['is'](_0x4ba10a(0xbc),_0x4ba10a(0xa9))||_0x1f912d['is'](_0x4ba10a(0xbc),_0x4ba10a(0x89)));this[_0x4ba10a(0xc1)]=new _0x5d6c67(_0x1e6c9f),this[_0x4ba10a(0xbe)][_0x4ba10a(0xa0)]({'id':_0x4ba10a(0xb7),'icon':_0x407ef3,'title':_0x25a9ff(_0x1e6c9f,this[_0x4ba10a(0xa1)],_0x3e176b?_0x4ba10a(0x86):_0x4ba10a(0xbd))[_0x4ba10a(0x9e)],'content':this[_0x4ba10a(0xc1)],'position':_0x5d2dce[_0x4ba10a(0xc6)],'isModal':!0x0,'onShow':()=>{const _0x55f2b5=_0x4ba10a;this[_0x55f2b5(0xc1)][_0x55f2b5(0xaa)]();},'onHide':()=>{const _0x34897f=_0x4ba10a;this[_0x34897f(0xba)][_0x34897f(0x9f)](),this[_0x34897f(0x95)][_0x34897f(0xcb)][_0x34897f(0xc4)][_0x34897f(0xaa)](),this[_0x34897f(0xca)]();},'keystrokeHandlerOptions':{'filter':_0x1e157c=>!_0x35ccc2(_0x1e157c,this[_0x4ba10a(0xc1)][_0x4ba10a(0xbc)])}});}[_0x51c4e4(0xb5)](){const _0x3aff57=_0x51c4e4;this[_0x3aff57(0x96)][_0x3aff57(0x94)][_0x3aff57(0x8c)](_0x3aff57(0xac),()=>{const _0x49fd69=_0x3aff57,{allEntries:_0x64f2de}=this[_0x49fd69(0xba)][_0x49fd69(0xc8)]();this[_0x49fd69(0x95)][_0x49fd69(0xc5)][_0x49fd69(0x8a)](_0x217754=>{const _0x521b38=_0x49fd69,_0x91557e=_0x64f2de[_0x521b38(0x9c)];for(const _0x48b886 of _0x64f2de){const _0x5b9bdb=_0x48b886===_0x64f2de[_0x91557e-0x1],{cdnUrl:_0x4837f6,fileInfo:_0x35665e}=_0x48b886;if(!_0x4837f6||!_0x35665e)continue;const {width:_0xc605a5,height:_0x32813e}=_0x35665e[_0x521b38(0x8e)],_0x4fc7ed=_0x46727b(_0x4837f6,_0xc605a5,_0x32813e),_0x237d7f=_0x5cec98(_0x4837f6,_0x4fc7ed[_0x521b38(0x8b)]),_0x27c162={'id':_0x35665e[_0x521b38(0x83)],'type':_0x521b38(0xa6),'attributes':{'imageDimension':_0x4fc7ed,..._0x237d7f}};this[_0x521b38(0x88)](_0x27c162,_0x5b9bdb,_0x217754);}}),this[_0x49fd69(0xbe)][_0x49fd69(0xc3)]();}),this[_0x3aff57(0x96)][_0x3aff57(0x94)][_0x3aff57(0x8c)](_0x3aff57(0x8a),_0x5ce1fb=>{const _0xe340ba=_0x3aff57;_0xe340ba(0xa7)===_0x5ce1fb[_0xe340ba(0xc0)][_0xe340ba(0xa3)]&&!_0x5ce1fb[_0xe340ba(0xc0)][_0xe340ba(0x99)][_0xe340ba(0x9c)]&&this[_0xe340ba(0xbe)][_0xe340ba(0xae)]&&(this[_0xe340ba(0xa1)]===_0x3d6106[_0xe340ba(0xb0)]?this[_0xe340ba(0xba)][_0xe340ba(0x91)](_0x3d6106[_0xe340ba(0xb0)]):this[_0xe340ba(0xba)][_0xe340ba(0xc9)]());});}[_0x51c4e4(0x88)](_0x50535c,_0x5cf8fc,_0x1d3233){const _0x3984ce=_0x51c4e4,_0x361bce=this[_0x3984ce(0x95)][_0x3984ce(0xc5)][_0x3984ce(0x9d)][_0x3984ce(0x87)],_0x4b0963=_0x361bce[_0x3984ce(0xc7)](),_0x1d501c=!(!_0x4b0963||!_0x4b0963['is'](_0x3984ce(0xbc),_0x3984ce(0x89)));_0x1d3233[_0x3984ce(0x92)](_0x3984ce(0xa4)),this[_0x3984ce(0xbf)](_0x50535c,_0x1d501c),_0x5cf8fc||_0x1d3233[_0x3984ce(0xa2)](_0x361bce[_0x3984ce(0xb3)]());}[_0x51c4e4(0xbf)](_0x1f7d48,_0x28ff20){const _0x11cc98=_0x51c4e4,_0x3d4043=this[_0x11cc98(0x95)],{imageDimension:_0x4c80a6,imageFallbackUrl:_0x2ece4a,imageSources:_0x13470e}=_0x1f7d48[_0x11cc98(0x90)];_0x3d4043[_0x11cc98(0xb4)](_0x11cc98(0x84),{'imageType':_0x28ff20?_0x11cc98(0x89):null,'source':{'uploadcareImageId':_0x1f7d48['id'],'src':_0x2ece4a,'sources':_0x13470e,..._0x4c80a6}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3c66a6=_0x43df;function _0x43df(_0x160ac4,_0x110303){var _0x5546cc=_0x5546();return _0x43df=function(_0x43dfb1,_0x4650a3){_0x43dfb1=_0x43dfb1-0x197;var _0x25c196=_0x5546cc[_0x43dfb1];return _0x25c196;},_0x43df(_0x160ac4,_0x110303);}(function(_0x3da192,_0x55ced5){var _0x576bae=_0x43df,_0x3acc75=_0x3da192();while(!![]){try{var _0x1f4d80=parseInt(_0x576bae(0x1a6))/0x1+-parseInt(_0x576bae(0x19f))/0x2+parseInt(_0x576bae(0x1a1))/0x3+parseInt(_0x576bae(0x1a9))/0x4*(-parseInt(_0x576bae(0x19a))/0x5)+-parseInt(_0x576bae(0x197))/0x6*(parseInt(_0x576bae(0x1aa))/0x7)+-parseInt(_0x576bae(0x1a4))/0x8+-parseInt(_0x576bae(0x1a0))/0x9*(-parseInt(_0x576bae(0x1a2))/0xa);if(_0x1f4d80===_0x55ced5)break;else _0x3acc75['push'](_0x3acc75['shift']());}catch(_0x3471c8){_0x3acc75['push'](_0x3acc75['shift']());}}}(_0x5546,0xf0434));function _0x5546(){var _0x5a343a=['10262930eMgXcj','div','4666328WPdnZi','ck-uploadcare-theme','393638yYhrBR','ck-uploadcare-form','uploader','7420OkvQRv','226002skAdjp','element','228uSQGqy','focus','setTemplate','275zVuRpy','uc-light','ck-reset_all-excluded','uc-file-uploader-inline','getFocusableElement','3125314pmSKRk','27TYZfoA','2959320sxccEq'];_0x5546=function(){return _0x5a343a;};return _0x5546();}import _0x5cb705 from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';export default class S extends _0x5cb705{constructor(_0x34aeab){var _0x352afe=_0x43df;super(_0x34aeab),this[_0x352afe(0x199)]({'tag':_0x352afe(0x1a3),'attributes':{'class':['ck',_0x352afe(0x19c),_0x352afe(0x1a7)],'tabindex':'-1'},'children':[{'tag':_0x352afe(0x19d),'attributes':{'class':[_0x352afe(0x19b),_0x352afe(0x1a5)],'ctx-name':_0x352afe(0x1a8)}},this[_0x352afe(0x19e)]()]});}[_0x3c66a6(0x198)](){var _0x528d60=_0x3c66a6;this[_0x528d60(0x1ab)][_0x528d60(0x198)]();}}
23
+ var _0x361dfc=_0x1b97;function _0x1b97(_0x2499e6,_0x43dad8){var _0x282b7f=_0x282b();return _0x1b97=function(_0x1b97c0,_0x196ad4){_0x1b97c0=_0x1b97c0-0x134;var _0x102128=_0x282b7f[_0x1b97c0];return _0x102128;},_0x1b97(_0x2499e6,_0x43dad8);}(function(_0x2a6584,_0x29cade){var _0x346160=_0x1b97,_0x738fc4=_0x2a6584();while(!![]){try{var _0x3ff758=-parseInt(_0x346160(0x144))/0x1+parseInt(_0x346160(0x140))/0x2*(-parseInt(_0x346160(0x137))/0x3)+parseInt(_0x346160(0x138))/0x4+-parseInt(_0x346160(0x13b))/0x5*(-parseInt(_0x346160(0x149))/0x6)+-parseInt(_0x346160(0x143))/0x7*(-parseInt(_0x346160(0x148))/0x8)+parseInt(_0x346160(0x145))/0x9+parseInt(_0x346160(0x134))/0xa*(-parseInt(_0x346160(0x142))/0xb);if(_0x3ff758===_0x29cade)break;else _0x738fc4['push'](_0x738fc4['shift']());}catch(_0x41ee00){_0x738fc4['push'](_0x738fc4['shift']());}}}(_0x282b,0x78735));import _0x528393 from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';export default class S extends _0x528393{constructor(_0x4f3416){var _0x5b28bb=_0x1b97;super(_0x4f3416),this[_0x5b28bb(0x135)]({'tag':_0x5b28bb(0x13c),'attributes':{'class':['ck',_0x5b28bb(0x141),_0x5b28bb(0x139)],'tabindex':'-1'},'children':[{'tag':_0x5b28bb(0x13d),'attributes':{'class':[_0x5b28bb(0x13e),_0x5b28bb(0x13f)],'ctx-name':_0x5b28bb(0x136)}},this[_0x5b28bb(0x147)]()]});}[_0x361dfc(0x13a)](){var _0x561499=_0x361dfc;this[_0x561499(0x146)][_0x561499(0x13a)]();}}function _0x282b(){var _0xe68726=['uc-file-uploader-inline','uc-light','ck-uploadcare-theme','62vSPGAK','ck-reset_all-excluded','55jmbezH','6013TePHYL','165070hgePCl','5675382iRYVXr','element','getFocusableElement','1352ADTxOG','60IoEdkT','232970nvhxIo','setTemplate','uploader','46581VRIYHt','1657992FJZkJF','ck-uploadcare-form','focus','32995BkZeTY','div'];_0x282b=function(){return _0xe68726;};return _0x282b();}
package/src/uploadcare.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x487dd5=_0x4303;(function(_0x397392,_0x7ce41e){var _0x56ed36=_0x4303,_0x84d776=_0x397392();while(!![]){try{var _0x49db60=-parseInt(_0x56ed36(0x1bd))/0x1+-parseInt(_0x56ed36(0x1b6))/0x2+parseInt(_0x56ed36(0x1c3))/0x3*(parseInt(_0x56ed36(0x1be))/0x4)+parseInt(_0x56ed36(0x1b5))/0x5+-parseInt(_0x56ed36(0x1bb))/0x6+-parseInt(_0x56ed36(0x1b9))/0x7*(parseInt(_0x56ed36(0x1b8))/0x8)+parseInt(_0x56ed36(0x1bc))/0x9;if(_0x49db60===_0x7ce41e)break;else _0x84d776['push'](_0x84d776['shift']());}catch(_0x2ff854){_0x84d776['push'](_0x84d776['shift']());}}}(_0x5075,0xcec87));import{Plugin as _0x42291a}from'ckeditor5/src/core.js';import _0x49b0a0 from'./uploadcareui.js';function _0x5075(){var _0x4c0d0f=['pluginName','defineComponents','define','isPremiumPlugin','uploadcare.uploader.sourceList','7309445GTgvkp','1726330ohiyzN','Uploadcare','10341848VcDNHQ','7wFasdz','URL','7327830gEZFeP','32481297obddqQ','952898SucCbt','42464KUiUjl','Local','requires','isOfficialPlugin','config','30bvwCmy'];_0x5075=function(){return _0x4c0d0f;};return _0x5075();}function _0x4303(_0x3d72d3,_0x294a74){var _0x50756b=_0x5075();return _0x4303=function(_0x43031d,_0x2fc25a){_0x43031d=_0x43031d-0x1b0;var _0x1ed55c=_0x50756b[_0x43031d];return _0x1ed55c;},_0x4303(_0x3d72d3,_0x294a74);}import _0x45bfe1 from'./uploadcareediting.js';import{UploadcareSource as _0x4fa08b}from'./uploadcareconfig.js';import*as _0xfac536 from'@uploadcare/file-uploader';export default class u extends _0x42291a{static get[_0x487dd5(0x1c0)](){return[_0x45bfe1,_0x49b0a0];}static get[_0x487dd5(0x1b0)](){var _0x4a8fc3=_0x487dd5;return _0x4a8fc3(0x1b7);}static get[_0x487dd5(0x1c1)](){return!0x0;}static get[_0x487dd5(0x1b3)](){return!0x0;}constructor(_0xfd3924){var _0x185fcb=_0x487dd5;super(_0xfd3924),_0xfd3924[_0x185fcb(0x1c2)][_0x185fcb(0x1b2)](_0x185fcb(0x1b4),[_0x4fa08b[_0x185fcb(0x1bf)],_0x4fa08b[_0x185fcb(0x1ba)]]),_0xfac536[_0x185fcb(0x1b1)](_0xfac536);}}
23
+ var _0x49d007=_0x510c;(function(_0x1bca22,_0x2d8689){var _0x287689=_0x510c,_0x17c0e7=_0x1bca22();while(!![]){try{var _0x265938=-parseInt(_0x287689(0x18e))/0x1+-parseInt(_0x287689(0x198))/0x2+parseInt(_0x287689(0x18b))/0x3+parseInt(_0x287689(0x191))/0x4+parseInt(_0x287689(0x18a))/0x5*(parseInt(_0x287689(0x187))/0x6)+parseInt(_0x287689(0x196))/0x7+parseInt(_0x287689(0x185))/0x8*(-parseInt(_0x287689(0x194))/0x9);if(_0x265938===_0x2d8689)break;else _0x17c0e7['push'](_0x17c0e7['shift']());}catch(_0x4c5051){_0x17c0e7['push'](_0x17c0e7['shift']());}}}(_0x30f3,0xec5e9));function _0x30f3(){var _0x5f331f=['define','63jXRXBs','requires','10929184FRbyNK','isPremiumPlugin','98894FIjBZH','4612040PHmjMz','uploadcare.uploader.sourceList','108bbFiMI','config','isOfficialPlugin','412095qmkTGi','4675356yZDsnJ','Local','defineComponents','196211JxSHWe','Uploadcare','URL','2584224FoIFDY','pluginName'];_0x30f3=function(){return _0x5f331f;};return _0x30f3();}import{Plugin as _0x399c4c}from'ckeditor5/src/core.js';import _0x57e4d0 from'./uploadcareui.js';import _0x30e9fc from'./uploadcareediting.js';import{UploadcareSource as _0x18c8f9}from'./uploadcareconfig.js';function _0x510c(_0x5a58cd,_0x5ec27c){var _0x30f3d2=_0x30f3();return _0x510c=function(_0x510cb9,_0x1b24e2){_0x510cb9=_0x510cb9-0x185;var _0x43267e=_0x30f3d2[_0x510cb9];return _0x43267e;},_0x510c(_0x5a58cd,_0x5ec27c);}import*as _0x39ba26 from'@uploadcare/file-uploader';export default class u extends _0x399c4c{static get[_0x49d007(0x195)](){return[_0x30e9fc,_0x57e4d0];}static get[_0x49d007(0x192)](){var _0x5dea0d=_0x49d007;return _0x5dea0d(0x18f);}static get[_0x49d007(0x189)](){return!0x0;}static get[_0x49d007(0x197)](){return!0x0;}constructor(_0xfadc6d){var _0x106986=_0x49d007;super(_0xfadc6d),_0xfadc6d[_0x106986(0x188)][_0x106986(0x193)](_0x106986(0x186),[_0x18c8f9[_0x106986(0x18c)],_0x18c8f9[_0x106986(0x190)]]),_0x39ba26[_0x106986(0x18d)](_0x39ba26);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5064f1=_0x349a;(function(_0x404c75,_0x1fb209){var _0x51446c=_0x349a,_0x4c9ebb=_0x404c75();while(!![]){try{var _0x14a552=-parseInt(_0x51446c(0x1c4))/0x1+-parseInt(_0x51446c(0x1cd))/0x2+-parseInt(_0x51446c(0x1d7))/0x3+parseInt(_0x51446c(0x1d5))/0x4+-parseInt(_0x51446c(0x1d0))/0x5+-parseInt(_0x51446c(0x1d1))/0x6+parseInt(_0x51446c(0x1d3))/0x7*(parseInt(_0x51446c(0x1cc))/0x8);if(_0x14a552===_0x1fb209)break;else _0x4c9ebb['push'](_0x4c9ebb['shift']());}catch(_0x490b7a){_0x4c9ebb['push'](_0x4c9ebb['shift']());}}}(_0x1fbd,0x736e8));import{Command as _0x1b6b62}from'ckeditor5/src/core.js';import{Dialog as _0x4bc290}from'ckeditor5/src/ui.js';import _0x3fffcd from'./uploadcareediting.js';function _0x349a(_0x2d8f49,_0x26729e){var _0x1fbd39=_0x1fbd();return _0x349a=function(_0x349a4e,_0x9736d1){_0x349a4e=_0x349a4e-0x1c4;var _0x3933ca=_0x1fbd39[_0x349a4e];return _0x3933ca;},_0x349a(_0x2d8f49,_0x26729e);}import _0x3b5b1e from'./ui/uploadcarecontroller.js';export default class l extends _0x1b6b62{static get[_0x5064f1(0x1cb)](){return[_0x4bc290,_0x3fffcd];}constructor(_0x15abba){var _0x3aaa07=_0x5064f1;super(_0x15abba),this[_0x3aaa07(0x1d4)]=null,this[_0x3aaa07(0x1d2)]=_0x15abba[_0x3aaa07(0x1c5)][_0x3aaa07(0x1d8)](_0x3fffcd);}[_0x5064f1(0x1d6)](){var _0x5ac895=_0x5064f1;this[_0x5ac895(0x1c6)]=this[_0x5ac895(0x1cf)]();}[_0x5064f1(0x1c7)](_0x43d713){var _0x34ca00=_0x5064f1;this[_0x34ca00(0x1d4)]&&(this[_0x34ca00(0x1d4)][_0x34ca00(0x1ca)](),this[_0x34ca00(0x1d4)]=null),this[_0x34ca00(0x1d4)]=new _0x3b5b1e(this[_0x34ca00(0x1c9)],this[_0x34ca00(0x1d2)],_0x43d713);}[_0x5064f1(0x1cf)](){var _0x1a16cb=_0x5064f1;return this[_0x1a16cb(0x1c9)][_0x1a16cb(0x1ce)][_0x1a16cb(0x1d8)](_0x1a16cb(0x1c8))[_0x1a16cb(0x1c6)];}}function _0x1fbd(){var _0x4a0dbe=['_editing','749EFSLEy','_controller','2103968vBmHOA','refresh','1253934Ljbkhn','get','613438aOqZSa','plugins','isEnabled','execute','insertImage','editor','destroy','requires','228136brmYgu','1090768RGmOTe','commands','_checkEnabled','3594165PEhieF','4853220nZYrLH'];_0x1fbd=function(){return _0x4a0dbe;};return _0x1fbd();}
23
+ var _0x4be543=_0x5994;(function(_0x5a957b,_0x10171c){var _0x2653a3=_0x5994,_0x37100e=_0x5a957b();while(!![]){try{var _0x2e0d06=parseInt(_0x2653a3(0x146))/0x1+-parseInt(_0x2653a3(0x134))/0x2*(-parseInt(_0x2653a3(0x13a))/0x3)+parseInt(_0x2653a3(0x138))/0x4*(parseInt(_0x2653a3(0x142))/0x5)+-parseInt(_0x2653a3(0x13e))/0x6+parseInt(_0x2653a3(0x135))/0x7*(-parseInt(_0x2653a3(0x133))/0x8)+parseInt(_0x2653a3(0x143))/0x9*(-parseInt(_0x2653a3(0x144))/0xa)+parseInt(_0x2653a3(0x149))/0xb;if(_0x2e0d06===_0x10171c)break;else _0x37100e['push'](_0x37100e['shift']());}catch(_0x9ca7a5){_0x37100e['push'](_0x37100e['shift']());}}}(_0x5a44,0x2b508));function _0x5a44(){var _0x10a836=['refresh','destroy','441648bXHQNJ','editor','_controller','execute','5XWiLMT','9QpLSWV','3258890wvIJMZ','isEnabled','314399LtXWHA','insertImage','_editing','1123661CIJrdS','plugins','8mNkgqb','88850JlLcFn','2245495FSjUuO','commands','get','680692jxApxz','_checkEnabled','21EBjeGa','requires'];_0x5a44=function(){return _0x10a836;};return _0x5a44();}import{Command as _0x1c176e}from'ckeditor5/src/core.js';function _0x5994(_0x2ed0ff,_0x57a9b0){var _0x5a449a=_0x5a44();return _0x5994=function(_0x599457,_0x37697a){_0x599457=_0x599457-0x132;var _0x3d8d39=_0x5a449a[_0x599457];return _0x3d8d39;},_0x5994(_0x2ed0ff,_0x57a9b0);}import{Dialog as _0x30c7f6}from'ckeditor5/src/ui.js';import _0xf3e3cd from'./uploadcareediting.js';import _0x130161 from'./ui/uploadcarecontroller.js';export default class n extends _0x1c176e{[_0x4be543(0x148)];[_0x4be543(0x140)]=null;static get[_0x4be543(0x13b)](){return[_0x30c7f6,_0xf3e3cd];}constructor(_0x2a37b3){var _0x1eedfd=_0x4be543;super(_0x2a37b3),this[_0x1eedfd(0x148)]=_0x2a37b3[_0x1eedfd(0x132)][_0x1eedfd(0x137)](_0xf3e3cd);}[_0x4be543(0x13c)](){var _0x5864ca=_0x4be543;this[_0x5864ca(0x145)]=this[_0x5864ca(0x139)]();}[_0x4be543(0x141)](_0x49e811){var _0x421c60=_0x4be543;this[_0x421c60(0x140)]&&(this[_0x421c60(0x140)][_0x421c60(0x13d)](),this[_0x421c60(0x140)]=null),this[_0x421c60(0x140)]=new _0x130161(this[_0x421c60(0x13f)],this[_0x421c60(0x148)],_0x49e811);}[_0x4be543(0x139)](){var _0x23804d=_0x4be543;return this[_0x23804d(0x13f)][_0x23804d(0x136)][_0x23804d(0x137)](_0x23804d(0x147))[_0x23804d(0x145)];}}