@ckeditor/ckeditor5-uploadcare 45.2.1 → 46.0.0-alpha.1

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 (196) hide show
  1. package/build/uploadcare.js +1 -1
  2. package/dist/index-editor.css +2 -2
  3. package/dist/index.css +2 -2
  4. package/dist/index.js +3 -3
  5. package/dist/translations/af.js +1 -1
  6. package/dist/translations/af.umd.js +1 -1
  7. package/dist/translations/ar.js +1 -1
  8. package/dist/translations/ar.umd.js +1 -1
  9. package/dist/translations/ast.js +1 -1
  10. package/dist/translations/ast.umd.js +1 -1
  11. package/dist/translations/az.js +1 -1
  12. package/dist/translations/az.umd.js +1 -1
  13. package/dist/translations/be.js +1 -1
  14. package/dist/translations/be.umd.js +1 -1
  15. package/dist/translations/bg.js +1 -1
  16. package/dist/translations/bg.umd.js +1 -1
  17. package/dist/translations/bn.js +1 -1
  18. package/dist/translations/bn.umd.js +1 -1
  19. package/dist/translations/bs.js +1 -1
  20. package/dist/translations/bs.umd.js +1 -1
  21. package/dist/translations/ca.js +1 -1
  22. package/dist/translations/ca.umd.js +1 -1
  23. package/dist/translations/cs.js +1 -1
  24. package/dist/translations/cs.umd.js +1 -1
  25. package/dist/translations/da.js +1 -1
  26. package/dist/translations/da.umd.js +1 -1
  27. package/dist/translations/de-ch.js +1 -1
  28. package/dist/translations/de-ch.umd.js +1 -1
  29. package/dist/translations/de.js +1 -1
  30. package/dist/translations/de.umd.js +1 -1
  31. package/dist/translations/el.js +1 -1
  32. package/dist/translations/el.umd.js +1 -1
  33. package/dist/translations/en-au.js +1 -1
  34. package/dist/translations/en-au.umd.js +1 -1
  35. package/dist/translations/en-gb.js +1 -1
  36. package/dist/translations/en-gb.umd.js +1 -1
  37. package/dist/translations/en.js +1 -1
  38. package/dist/translations/en.umd.js +1 -1
  39. package/dist/translations/eo.js +1 -1
  40. package/dist/translations/eo.umd.js +1 -1
  41. package/dist/translations/es-co.js +1 -1
  42. package/dist/translations/es-co.umd.js +1 -1
  43. package/dist/translations/es.js +1 -1
  44. package/dist/translations/es.umd.js +1 -1
  45. package/dist/translations/et.js +1 -1
  46. package/dist/translations/et.umd.js +1 -1
  47. package/dist/translations/eu.js +1 -1
  48. package/dist/translations/eu.umd.js +1 -1
  49. package/dist/translations/fa.js +1 -1
  50. package/dist/translations/fa.umd.js +1 -1
  51. package/dist/translations/fi.js +1 -1
  52. package/dist/translations/fi.umd.js +1 -1
  53. package/dist/translations/fr.js +1 -1
  54. package/dist/translations/fr.umd.js +1 -1
  55. package/dist/translations/gl.js +1 -1
  56. package/dist/translations/gl.umd.js +1 -1
  57. package/dist/translations/gu.js +1 -1
  58. package/dist/translations/gu.umd.js +1 -1
  59. package/dist/translations/he.js +1 -1
  60. package/dist/translations/he.umd.js +1 -1
  61. package/dist/translations/hi.js +1 -1
  62. package/dist/translations/hi.umd.js +1 -1
  63. package/dist/translations/hr.js +1 -1
  64. package/dist/translations/hr.umd.js +1 -1
  65. package/dist/translations/hu.js +1 -1
  66. package/dist/translations/hu.umd.js +1 -1
  67. package/dist/translations/hy.js +1 -1
  68. package/dist/translations/hy.umd.js +1 -1
  69. package/dist/translations/id.js +1 -1
  70. package/dist/translations/id.umd.js +1 -1
  71. package/dist/translations/it.js +1 -1
  72. package/dist/translations/it.umd.js +1 -1
  73. package/dist/translations/ja.js +1 -1
  74. package/dist/translations/ja.umd.js +1 -1
  75. package/dist/translations/jv.js +1 -1
  76. package/dist/translations/jv.umd.js +1 -1
  77. package/dist/translations/kk.js +1 -1
  78. package/dist/translations/kk.umd.js +1 -1
  79. package/dist/translations/km.js +1 -1
  80. package/dist/translations/km.umd.js +1 -1
  81. package/dist/translations/kn.js +1 -1
  82. package/dist/translations/kn.umd.js +1 -1
  83. package/dist/translations/ko.js +1 -1
  84. package/dist/translations/ko.umd.js +1 -1
  85. package/dist/translations/ku.js +1 -1
  86. package/dist/translations/ku.umd.js +1 -1
  87. package/dist/translations/lt.js +1 -1
  88. package/dist/translations/lt.umd.js +1 -1
  89. package/dist/translations/lv.js +1 -1
  90. package/dist/translations/lv.umd.js +1 -1
  91. package/dist/translations/ms.js +1 -1
  92. package/dist/translations/ms.umd.js +1 -1
  93. package/dist/translations/nb.js +1 -1
  94. package/dist/translations/nb.umd.js +1 -1
  95. package/dist/translations/ne.js +1 -1
  96. package/dist/translations/ne.umd.js +1 -1
  97. package/dist/translations/nl.js +1 -1
  98. package/dist/translations/nl.umd.js +1 -1
  99. package/dist/translations/no.js +1 -1
  100. package/dist/translations/no.umd.js +1 -1
  101. package/dist/translations/oc.js +1 -1
  102. package/dist/translations/oc.umd.js +1 -1
  103. package/dist/translations/pl.js +1 -1
  104. package/dist/translations/pl.umd.js +1 -1
  105. package/dist/translations/pt-br.js +1 -1
  106. package/dist/translations/pt-br.umd.js +1 -1
  107. package/dist/translations/pt.js +1 -1
  108. package/dist/translations/pt.umd.js +1 -1
  109. package/dist/translations/ro.js +1 -1
  110. package/dist/translations/ro.umd.js +1 -1
  111. package/dist/translations/ru.js +1 -1
  112. package/dist/translations/ru.umd.js +1 -1
  113. package/dist/translations/si.js +1 -1
  114. package/dist/translations/si.umd.js +1 -1
  115. package/dist/translations/sk.js +1 -1
  116. package/dist/translations/sk.umd.js +1 -1
  117. package/dist/translations/sl.js +1 -1
  118. package/dist/translations/sl.umd.js +1 -1
  119. package/dist/translations/sq.js +1 -1
  120. package/dist/translations/sq.umd.js +1 -1
  121. package/dist/translations/sr-latn.js +1 -1
  122. package/dist/translations/sr-latn.umd.js +1 -1
  123. package/dist/translations/sr.js +1 -1
  124. package/dist/translations/sr.umd.js +1 -1
  125. package/dist/translations/sv.js +1 -1
  126. package/dist/translations/sv.umd.js +1 -1
  127. package/dist/translations/th.js +1 -1
  128. package/dist/translations/th.umd.js +1 -1
  129. package/dist/translations/ti.js +1 -1
  130. package/dist/translations/ti.umd.js +1 -1
  131. package/dist/translations/tk.js +1 -1
  132. package/dist/translations/tk.umd.js +1 -1
  133. package/dist/translations/tr.js +1 -1
  134. package/dist/translations/tr.umd.js +1 -1
  135. package/dist/translations/tt.js +1 -1
  136. package/dist/translations/tt.umd.js +1 -1
  137. package/dist/translations/ug.js +1 -1
  138. package/dist/translations/ug.umd.js +1 -1
  139. package/dist/translations/uk.js +1 -1
  140. package/dist/translations/uk.umd.js +1 -1
  141. package/dist/translations/ur.js +1 -1
  142. package/dist/translations/ur.umd.js +1 -1
  143. package/dist/translations/uz.js +1 -1
  144. package/dist/translations/uz.umd.js +1 -1
  145. package/dist/translations/vi.js +1 -1
  146. package/dist/translations/vi.umd.js +1 -1
  147. package/dist/translations/zh-cn.js +1 -1
  148. package/dist/translations/zh-cn.umd.js +1 -1
  149. package/dist/translations/zh.js +1 -1
  150. package/dist/translations/zh.umd.js +1 -1
  151. package/package.json +11 -11
  152. package/src/augmentation.d.ts +4 -4
  153. package/src/index.d.ts +10 -8
  154. package/src/index.js +1 -1
  155. package/src/ui/uploadcarecontroller.d.ts +2 -2
  156. package/src/ui/uploadcarecontroller.js +2 -2
  157. package/src/ui/uploadcareformview.d.ts +3 -3
  158. package/src/ui/uploadcareformview.js +1 -1
  159. package/src/uploadcare.d.ts +3 -3
  160. package/src/uploadcare.js +1 -1
  161. package/src/uploadcarecommand.d.ts +2 -2
  162. package/src/uploadcarecommand.js +1 -1
  163. package/src/uploadcareconfig.d.ts +2 -3
  164. package/src/uploadcareconfig.js +1 -1
  165. package/src/uploadcareediting.d.ts +13 -3
  166. package/src/uploadcareediting.js +1 -1
  167. package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.d.ts +2 -2
  168. package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
  169. package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.d.ts +1 -1
  170. package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
  171. package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +2 -2
  172. package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
  173. package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.d.ts +1 -1
  174. package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
  175. package/src/uploadcareimageedit/ui/uploadcareimageeditformview.d.ts +3 -3
  176. package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
  177. package/src/uploadcareimageedit/uploadcareimageeditcommand.d.ts +2 -2
  178. package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
  179. package/src/uploadcareimageedit/uploadcareimageeditediting.d.ts +2 -2
  180. package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
  181. package/src/uploadcareimageedit/uploadcareimageeditui.d.ts +3 -4
  182. package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
  183. package/src/uploadcareimageedit/uploadcareimagereplacecommand.d.ts +1 -1
  184. package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
  185. package/src/uploadcareimageedit.d.ts +3 -3
  186. package/src/uploadcareimageedit.js +1 -1
  187. package/src/uploadcareui.d.ts +1 -1
  188. package/src/uploadcareui.js +1 -1
  189. package/src/uploadcareuploadadapter.d.ts +2 -2
  190. package/src/uploadcareuploadadapter.js +1 -1
  191. package/src/utils/common-translations.js +1 -1
  192. package/src/utils/dialogfocusmanagerview.d.ts +1 -1
  193. package/src/utils/dialogfocusmanagerview.js +1 -1
  194. package/src/utils/editingutils.js +1 -1
  195. package/src/utils/isancestor.js +1 -1
  196. package/src/utils/uploadutils.js +1 -1
@@ -8,7 +8,7 @@
8
8
  */
9
9
  import { Command, type Editor } from 'ckeditor5/src/core.js';
10
10
  import { Dialog } from 'ckeditor5/src/ui.js';
11
- import UploadcareEditing from './uploadcareediting.js';
11
+ import { UploadcareEditing } from './uploadcareediting.js';
12
12
  import type { UploadcareSource } from './uploadcareconfig.js';
13
13
  /**
14
14
  * The Uploadcare command. It is used by the {@link module:uploadcare/uploadcareediting~UploadcareEditing Uploadcare editing feature}
@@ -18,7 +18,7 @@ import type { UploadcareSource } from './uploadcareconfig.js';
18
18
  * editor.execute( 'uploadcare' );
19
19
  * ```
20
20
  */
21
- export default class UploadcareCommand extends Command {
21
+ export declare class UploadcareCommand extends Command {
22
22
  /**
23
23
  * @inheritDoc
24
24
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x49a30a=_0x275e;(function(_0x675168,_0x2f1e77){var _0x53d1ce=_0x275e,_0x397c6d=_0x675168();while(!![]){try{var _0x53bc62=parseInt(_0x53d1ce(0x140))/0x1*(-parseInt(_0x53d1ce(0x145))/0x2)+parseInt(_0x53d1ce(0x138))/0x3*(parseInt(_0x53d1ce(0x13c))/0x4)+parseInt(_0x53d1ce(0x14d))/0x5+-parseInt(_0x53d1ce(0x135))/0x6*(parseInt(_0x53d1ce(0x137))/0x7)+-parseInt(_0x53d1ce(0x141))/0x8*(-parseInt(_0x53d1ce(0x13b))/0x9)+-parseInt(_0x53d1ce(0x14b))/0xa*(-parseInt(_0x53d1ce(0x147))/0xb)+-parseInt(_0x53d1ce(0x139))/0xc*(parseInt(_0x53d1ce(0x14e))/0xd);if(_0x53bc62===_0x2f1e77)break;else _0x397c6d['push'](_0x397c6d['shift']());}catch(_0x5755d9){_0x397c6d['push'](_0x397c6d['shift']());}}}(_0x2a7f,0x8f891));import{Command as _0x3444fd}from'ckeditor5/src/core.js';import{Dialog as _0x211969}from'ckeditor5/src/ui.js';import _0x4e3030 from'./uploadcareediting.js';function _0x2a7f(){var _0x3343c2=['58662oFXdIJ','2304228iHfFPt','isEnabled','get','editor','63870GcazAN','416wWLNse','requires','_controller','commands','2RTfQOb','plugins','209XhoVgE','_editing','_checkEnabled','destroy','535770cbThco','refresh','3522065dDdhHm','429mOyRaV','1140waFAiH','insertImage','511dhRaeE','6PtBtJA','926460pnzUnM','execute'];_0x2a7f=function(){return _0x3343c2;};return _0x2a7f();}function _0x275e(_0x5c8b90,_0x52d59d){var _0x2a7fd8=_0x2a7f();return _0x275e=function(_0x275e67,_0x1ccf57){_0x275e67=_0x275e67-0x135;var _0x98b66f=_0x2a7fd8[_0x275e67];return _0x98b66f;},_0x275e(_0x5c8b90,_0x52d59d);}import _0x48304c from'./ui/uploadcarecontroller.js';export default class n extends _0x3444fd{[_0x49a30a(0x148)];[_0x49a30a(0x143)]=null;static get[_0x49a30a(0x142)](){return[_0x211969,_0x4e3030];}constructor(_0x2a5ce2){var _0x1d855b=_0x49a30a;super(_0x2a5ce2),this[_0x1d855b(0x148)]=_0x2a5ce2[_0x1d855b(0x146)][_0x1d855b(0x13e)](_0x4e3030);}[_0x49a30a(0x14c)](){var _0xe86d45=_0x49a30a;this[_0xe86d45(0x13d)]=this[_0xe86d45(0x149)]();}[_0x49a30a(0x13a)](_0x19ffbe){var _0x31e2b5=_0x49a30a;this[_0x31e2b5(0x143)]&&(this[_0x31e2b5(0x143)][_0x31e2b5(0x14a)](),this[_0x31e2b5(0x143)]=null),this[_0x31e2b5(0x143)]=new _0x48304c(this[_0x31e2b5(0x13f)],this[_0x31e2b5(0x148)],_0x19ffbe);}[_0x49a30a(0x149)](){var _0x15d89f=_0x49a30a;return this[_0x15d89f(0x13f)][_0x15d89f(0x144)][_0x15d89f(0x13e)](_0x15d89f(0x136))[_0x15d89f(0x13d)];}}
23
+ function _0x2ba6(_0xe760e0,_0x105d26){var _0x23ddc8=_0x23dd();return _0x2ba6=function(_0x2ba649,_0x2cf2a3){_0x2ba649=_0x2ba649-0x14f;var _0x32b06d=_0x23ddc8[_0x2ba649];return _0x32b06d;},_0x2ba6(_0xe760e0,_0x105d26);}var _0x1a8beb=_0x2ba6;(function(_0x57946f,_0x394a73){var _0x1d7ee3=_0x2ba6,_0x2b6126=_0x57946f();while(!![]){try{var _0x124621=parseInt(_0x1d7ee3(0x165))/0x1*(parseInt(_0x1d7ee3(0x156))/0x2)+parseInt(_0x1d7ee3(0x15c))/0x3+parseInt(_0x1d7ee3(0x153))/0x4*(parseInt(_0x1d7ee3(0x167))/0x5)+parseInt(_0x1d7ee3(0x15e))/0x6+parseInt(_0x1d7ee3(0x166))/0x7*(parseInt(_0x1d7ee3(0x152))/0x8)+parseInt(_0x1d7ee3(0x159))/0x9*(-parseInt(_0x1d7ee3(0x154))/0xa)+-parseInt(_0x1d7ee3(0x157))/0xb*(parseInt(_0x1d7ee3(0x151))/0xc);if(_0x124621===_0x394a73)break;else _0x2b6126['push'](_0x2b6126['shift']());}catch(_0x335e8a){_0x2b6126['push'](_0x2b6126['shift']());}}}(_0x23dd,0x6e636));import{Command as _0x4ded2a}from'ckeditor5/src/core.js';import{Dialog as _0x323ea7}from'ckeditor5/src/ui.js';function _0x23dd(){var _0x2c6a9a=['8037612CdnPwN','execute','isEnabled','1176471Lnuotk','insertImage','1524624luKpHM','commands','get','_checkEnabled','requires','refresh','editor','47675LpwwBz','344624gWiHOC','95qSdKrS','destroy','plugins','2436novbIZ','96gPAuNU','39496ajUQKR','10FIxkFU','_editing','4pZvzPO','9471jSuTnZ','_controller'];_0x23dd=function(){return _0x2c6a9a;};return _0x23dd();}import{UploadcareEditing as _0x3a8bea}from'./uploadcareediting.js';import{UploadcareController as _0x4d9b8a}from'./ui/uploadcarecontroller.js';export class UploadcareCommand extends _0x4ded2a{[_0x1a8beb(0x155)];[_0x1a8beb(0x158)]=null;static get[_0x1a8beb(0x162)](){return[_0x323ea7,_0x3a8bea];}constructor(_0x534aa2){var _0x26d21a=_0x1a8beb;super(_0x534aa2),this[_0x26d21a(0x155)]=_0x534aa2[_0x26d21a(0x150)][_0x26d21a(0x160)](_0x3a8bea);}[_0x1a8beb(0x163)](){var _0x53a63e=_0x1a8beb;this[_0x53a63e(0x15b)]=this[_0x53a63e(0x161)]();}[_0x1a8beb(0x15a)](_0x42c6df){var _0xd923ac=_0x1a8beb;this[_0xd923ac(0x158)]&&(this[_0xd923ac(0x158)][_0xd923ac(0x14f)](),this[_0xd923ac(0x158)]=null),this[_0xd923ac(0x158)]=new _0x4d9b8a(this[_0xd923ac(0x164)],this[_0xd923ac(0x155)],_0x42c6df);}[_0x1a8beb(0x161)](){var _0x182b2a=_0x1a8beb;return this[_0x182b2a(0x164)][_0x182b2a(0x15f)][_0x182b2a(0x160)](_0x182b2a(0x15d))[_0x182b2a(0x15b)];}}
@@ -114,7 +114,7 @@ export interface UploadcareConfig {
114
114
  *
115
115
  * You can find detailed information in the [Uploadcare documentation](https://uploadcare.com/docs/file-uploader/options/).
116
116
  */
117
- export interface UploadcareUploaderConfig extends Partial<Omit<ConfigType, ExcludedKeys | 'sourceList'>> {
117
+ export interface UploadcareUploaderConfig extends Partial<Omit<ConfigType, UploadcareExcludedKeys | 'sourceList'>> {
118
118
  /**
119
119
  * Comma-separated list of file sources.
120
120
  *
@@ -135,7 +135,7 @@ export interface UploadcareEditorConfig {
135
135
  /**
136
136
  * All not supported config options.
137
137
  */
138
- type ExcludedKeys = 'imgOnly' | 'removeCopyright' | 'localeName' | 'confirmUpload' | 'cameraMirror' | 'cameraCapture' | 'showEmptyList';
138
+ export type UploadcareExcludedKeys = 'imgOnly' | 'removeCopyright' | 'localeName' | 'confirmUpload' | 'cameraMirror' | 'cameraCapture' | 'showEmptyList';
139
139
  /**
140
140
  * Definition of all available upload sources.
141
141
  */
@@ -225,4 +225,3 @@ export interface UploadcareAssetImageAttributesDefinition {
225
225
  height: number;
226
226
  };
227
227
  }
228
- export {};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2e3c(_0x5c2210,_0x3855bb){var _0x1eefbf=_0x1eef();return _0x2e3c=function(_0x2e3cbe,_0x6ba38e){_0x2e3cbe=_0x2e3cbe-0x106;var _0x11e39a=_0x1eefbf[_0x2e3cbe];return _0x11e39a;},_0x2e3c(_0x5c2210,_0x3855bb);}(function(_0x1422be,_0xae47b5){var _0x415002=_0x2e3c,_0x2ee75f=_0x1422be();while(!![]){try{var _0x11826f=parseInt(_0x415002(0x10f))/0x1+parseInt(_0x415002(0x107))/0x2*(parseInt(_0x415002(0x109))/0x3)+parseInt(_0x415002(0x11d))/0x4+-parseInt(_0x415002(0x119))/0x5*(parseInt(_0x415002(0x110))/0x6)+parseInt(_0x415002(0x115))/0x7*(-parseInt(_0x415002(0x112))/0x8)+-parseInt(_0x415002(0x108))/0x9*(-parseInt(_0x415002(0x113))/0xa)+-parseInt(_0x415002(0x106))/0xb;if(_0x11826f===_0xae47b5)break;else _0x2ee75f['push'](_0x2ee75f['shift']());}catch(_0x50736c){_0x2ee75f['push'](_0x2ee75f['shift']());}}}(_0x1eef,0xa0d4a));function _0x1eef(){var _0x15c93c=['GPhotos','gdrive','gphotos','4567768IEosIh','facebook','5047229rJKUzT','70AZjjre','333EtJCKg','50259CFiGHs','onedrive','OneDrive','Facebook','Dropbox','dropbox','289978LeGqbj','12WCAqVN','url','40OVVORZ','136020aSuwMU','GDrive','1783082KdfOdM','Local','URL','local','325795nnaaPD'];_0x1eef=function(){return _0x15c93c;};return _0x1eef();}export var UploadcareSource;!function(_0x3cd651){var _0x33d5a4=_0x2e3c;_0x3cd651[_0x33d5a4(0x116)]=_0x33d5a4(0x118),_0x3cd651[_0x33d5a4(0x117)]=_0x33d5a4(0x111),_0x3cd651[_0x33d5a4(0x10d)]=_0x33d5a4(0x10e),_0x3cd651[_0x33d5a4(0x114)]=_0x33d5a4(0x11b),_0x3cd651[_0x33d5a4(0x10c)]=_0x33d5a4(0x11e),_0x3cd651[_0x33d5a4(0x11a)]=_0x33d5a4(0x11c),_0x3cd651[_0x33d5a4(0x10b)]=_0x33d5a4(0x10a);}(UploadcareSource||(UploadcareSource={}));
23
+ function _0xd0f3(){var _0x1babc1=['1414399CthCwA','1074677qWKyyi','dropbox','URL','local','OneDrive','GDrive','GPhotos','gphotos','url','41772740AULZNq','239544TYHqUA','8176624GRbxZL','Local','7917798DnONXF','25aongxu','16868Tokxgy','561SNpfoC','onedrive','9ALUmZZ','Facebook','gdrive','facebook','Dropbox'];_0xd0f3=function(){return _0x1babc1;};return _0xd0f3();}(function(_0x47ce6a,_0x58981a){var _0x7a5d0f=_0x2d2d,_0x14255f=_0x47ce6a();while(!![]){try{var _0x1ad7b8=parseInt(_0x7a5d0f(0x119))/0x1+-parseInt(_0x7a5d0f(0x110))/0x2*(parseInt(_0x7a5d0f(0x111))/0x3)+-parseInt(_0x7a5d0f(0x123))/0x4*(parseInt(_0x7a5d0f(0x10f))/0x5)+-parseInt(_0x7a5d0f(0x126))/0x6+-parseInt(_0x7a5d0f(0x118))/0x7+-parseInt(_0x7a5d0f(0x124))/0x8*(parseInt(_0x7a5d0f(0x113))/0x9)+parseInt(_0x7a5d0f(0x122))/0xa;if(_0x1ad7b8===_0x58981a)break;else _0x14255f['push'](_0x14255f['shift']());}catch(_0x340512){_0x14255f['push'](_0x14255f['shift']());}}}(_0xd0f3,0xcb06b));export var UploadcareSource;function _0x2d2d(_0x31104a,_0x54a837){var _0xd0f344=_0xd0f3();return _0x2d2d=function(_0x2d2d16,_0x346f1c){_0x2d2d16=_0x2d2d16-0x10f;var _0x346761=_0xd0f344[_0x2d2d16];return _0x346761;},_0x2d2d(_0x31104a,_0x54a837);}!function(_0x5bc36d){var _0x345a70=_0x2d2d;_0x5bc36d[_0x345a70(0x125)]=_0x345a70(0x11c),_0x5bc36d[_0x345a70(0x11b)]=_0x345a70(0x121),_0x5bc36d[_0x345a70(0x117)]=_0x345a70(0x11a),_0x5bc36d[_0x345a70(0x11e)]=_0x345a70(0x115),_0x5bc36d[_0x345a70(0x114)]=_0x345a70(0x116),_0x5bc36d[_0x345a70(0x11f)]=_0x345a70(0x120),_0x5bc36d[_0x345a70(0x11d)]=_0x345a70(0x112);}(UploadcareSource||(UploadcareSource={}));
@@ -6,14 +6,14 @@
6
6
  * @module uploadcare/uploadcareediting
7
7
  * @publicApi
8
8
  */
9
- import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
10
10
  import { Dialog } from 'ckeditor5/src/ui.js';
11
- import UploadcareUploadAdapter from './uploadcareuploadadapter.js';
11
+ import { UploadcareUploadAdapter } from './uploadcareuploadadapter.js';
12
12
  import type { UploaderBlock } from '@uploadcare/file-uploader';
13
13
  /**
14
14
  * The Uploadcare editing feature. It introduces the {@link module:uploadcare/uploadcarecommand~UploadcareCommand command}.
15
15
  */
16
- export default class UploadcareEditing extends Plugin {
16
+ export declare class UploadcareEditing extends Plugin {
17
17
  /**
18
18
  * @inheritDoc
19
19
  */
@@ -30,6 +30,12 @@ export default class UploadcareEditing extends Plugin {
30
30
  * @inheritDoc
31
31
  */
32
32
  static get isPremiumPlugin(): true;
33
+ /**
34
+ * A unique ID used to make the `ctx-name` property distinct.
35
+ *
36
+ * This ID ensures that each editor instance references to a different Uploadcare web components.
37
+ */
38
+ ucContextId: string;
33
39
  /**
34
40
  * Returns the DOM element that represents the Uploadcare config web component.
35
41
  */
@@ -38,6 +44,10 @@ export default class UploadcareEditing extends Plugin {
38
44
  * Returns the DOM element associated with the Uploadcare context web component.
39
45
  */
40
46
  get ctxElement(): UploaderBlock | null;
47
+ /**
48
+ * @inheritDoc
49
+ */
50
+ constructor(editor: Editor);
41
51
  /**
42
52
  * @inheritDoc
43
53
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2bfd6b=_0x11a5;(function(_0x4e4a2e,_0x4b9840){const _0x3e9765=_0x11a5,_0x2081ce=_0x4e4a2e();while(!![]){try{const _0x587c6d=-parseInt(_0x3e9765(0x1be))/0x1*(parseInt(_0x3e9765(0x1b8))/0x2)+-parseInt(_0x3e9765(0x173))/0x3+parseInt(_0x3e9765(0x17e))/0x4+-parseInt(_0x3e9765(0x1b5))/0x5+parseInt(_0x3e9765(0x176))/0x6+parseInt(_0x3e9765(0x1b2))/0x7*(-parseInt(_0x3e9765(0x1a7))/0x8)+-parseInt(_0x3e9765(0x1ab))/0x9*(-parseInt(_0x3e9765(0x1a2))/0xa);if(_0x587c6d===_0x4b9840)break;else _0x2081ce['push'](_0x2081ce['shift']());}catch(_0x19acb3){_0x2081ce['push'](_0x2081ce['shift']());}}}(_0x3d4f,0x4b83d));function _0x11a5(_0x538b29,_0x25f3da){const _0x3d4fe1=_0x3d4f();return _0x11a5=function(_0x11a580,_0x5360d4){_0x11a580=_0x11a580-0x173;let _0x5e9065=_0x3d4fe1[_0x11a580];return _0x5e9065;},_0x11a5(_0x538b29,_0x25f3da);}import{Plugin as _0x5f4777}from'ckeditor5/src/core.js';import{Dialog as _0x4e28ec}from'ckeditor5/src/ui.js';import{createElement as _0x54e12a,global as _0xfb71fa,uid as _0x568d30}from'ckeditor5/src/utils.js';import _0x35c950 from'./uploadcarecommand.js';import _0x6f3e93 from'./uploadcareuploadadapter.js';function _0x3d4f(){const _0x3fcc57=['add','uploadcare.uploader','map','PictureEditing','_initCtx','once','get','insertImage','data-uc-image-id','selection','view','uploadcareImageId','isOfficialPlugin','uploader','getAttribute','_initConfig','pluginName','isRegistered','uploadcare','listenTo','uc-config','editing','_ctxElement','execute','locale','attributeToAttribute','elementToAttribute','removeAttribute','remove','contentLanguage','642310amwmRB','body','imageBlock','querySelector','_configElement','144wAnCvB','schema','destroy','_initImageProcessingIndicator','207gnynYY','requires','href','true','uc-upload-ctx-provider','_initConversion','conversion','152705ofgmRq','uploadcareImageReplace','uploadcare.pubkey','1860860PcrdHI','for','ctxElement','50HliJnz','getSelectedElement','document','appendChild','downcast','fromCharCode','24415WscsVn','extend','commands','cleanupImage','editor','UploadcareEditing','join','afterInit','\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','1291239EbPEof','config','_initSchema','2418948CMUFvR','#uc-icon-arrow-down','upcast','replaceImageSource','imageInline','input[uploadcare-file-input]','render','iconHrefResolver','937872QZIKkx','init','isPremiumPlugin','configElement','closeMax','model'];_0x3d4f=function(){return _0x3fcc57;};return _0x3d4f();}import{showImageProcessingIndicator as _0x3428e6}from'./utils/editingutils.js';export default class i extends _0x5f4777{[_0x2bfd6b(0x1a6)]=null;[_0x2bfd6b(0x19a)]=null;static get[_0x2bfd6b(0x194)](){const _0x44f329=_0x2bfd6b;return _0x44f329(0x1c3);}static get[_0x2bfd6b(0x1ac)](){const _0x3d1e7c=_0x2bfd6b;return[_0x3d1e7c(0x187),_0x6f3e93,_0x4e28ec];}static get[_0x2bfd6b(0x190)](){return!0x0;}static get[_0x2bfd6b(0x180)](){return!0x0;}get[_0x2bfd6b(0x181)](){const _0x1561b4=_0x2bfd6b;return this[_0x1561b4(0x1a6)];}get[_0x2bfd6b(0x1b7)](){const _0xa7eef1=_0x2bfd6b;return this[_0xa7eef1(0x19a)];}[_0x2bfd6b(0x17f)](){const _0x1be466=_0x2bfd6b,_0x19a5ae=this[_0x1be466(0x1c2)];_0x19a5ae[_0x1be466(0x1c0)][_0x1be466(0x184)](_0x1be466(0x196),new _0x35c950(_0x19a5ae));}[_0x2bfd6b(0x1c5)](){const _0x269ee5=_0x2bfd6b;this[_0x269ee5(0x175)](),this[_0x269ee5(0x1b0)](),this[_0x269ee5(0x193)](),this[_0x269ee5(0x188)](),this[_0x269ee5(0x1aa)](),this[_0x269ee5(0x197)](this[_0x269ee5(0x1c2)],_0x269ee5(0x1a9),()=>{const _0x225f32=_0x269ee5;this[_0x225f32(0x1a6)]&&(this[_0x225f32(0x1a6)][_0x225f32(0x1a0)](),this[_0x225f32(0x1a6)]=null),this[_0x225f32(0x19a)]&&(this[_0x225f32(0x19a)][_0x225f32(0x1a0)](),this[_0x225f32(0x19a)]=null);const _0x997d28=_0xfb71fa[_0x225f32(0x1ba)][_0x225f32(0x1a5)](_0x225f32(0x17b));_0x997d28&&_0x997d28[_0x225f32(0x1a0)]();}),async function(_0x3bc2ec){const _0x43d4e0=_0x28888a([0x66,0x33,0x71,0x67,0x68,0x61,0x36,0x4c,0x49,0x6b,0x37,0x4e,0x78,0x44,0x70,0x6a,0x55,0x73,0x30,0x77,0x6d,0x75,0x64,0x6f,0x31,0x4f,0x32,0x57,0x79,0x6e,0x6c,0x45,0x56,0x42,0x34,0x4d,0x53,0x4a,0x47,0x7a,0x72,0x59,0x69,0x58,0x5a,0x65,0x38,0x4b,0x48,0x50,0x62,0x52,0x46,0x63,0x39,0x76,0x35,0x51,0x74,0x54,0x41,0x43]),_0x317afa=0x6eda3144,_0x2af27d=0x6edd5aec^_0x317afa,_0x51c641=window[_0x28888a([0x44,0x61,0x74,0x65])][_0x28888a([0x6e,0x6f,0x77])](),_0x3c497f=_0x3bc2ec[_0x28888a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5454e0=new window[(_0x28888a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x554328=>{_0x3c497f[_0x28888a([0x6f,0x6e,0x63,0x65])](_0x28888a([0x72,0x65,0x61,0x64,0x79]),_0x554328);}),_0x11795a={[_0x28888a([0x6b,0x74,0x79])]:_0x28888a([0x45,0x43]),[_0x28888a([0x75,0x73,0x65])]:_0x28888a([0x73,0x69,0x67]),[_0x28888a([0x63,0x72,0x76])]:_0x28888a([0x50,0x2d,0x32,0x35,0x36]),[_0x28888a([0x78])]:_0x28888a([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]),[_0x28888a([0x79])]:_0x28888a([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]),[_0x28888a([0x61,0x6c,0x67])]:_0x28888a([0x45,0x53,0x32,0x35,0x36])},_0x4713a0=_0x3c497f[_0x28888a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x28888a([0x67,0x65,0x74])](_0x28888a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3b513a(){let _0x4d49df,_0xa0548d=null,_0x40214a=null;try{if(_0x4713a0==_0x28888a([0x47,0x50,0x4c]))return _0x28888a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4d49df=_0x485d02(),!_0x4d49df)return _0x28888a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4d49df[_0x28888a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x40214a=_0x1f823f(_0x4d49df[_0x28888a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4d49df[_0x28888a([0x6a,0x74,0x69])])),await _0x40b97e()?_0x34e8bf()?_0x55d99e()?_0x28888a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2832e3()?(_0x4d49df[_0x28888a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x28888a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xa0548d=_0x420582(_0x28888a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4d49df[_0x28888a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x28888a([0x74,0x72,0x69,0x61,0x6c])&&(_0xa0548d=_0x420582(_0x28888a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ec28d()):_0x28888a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x28888a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x28888a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x28888a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x55d99e(){const _0x39d947=[_0x28888a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x28888a([0x74,0x72,0x69,0x61,0x6c])][_0x28888a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d49df[_0x28888a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x51c641/0x3e8:0xe10*_0x2af27d;return _0x4d49df[_0x28888a([0x65,0x78,0x70])]<_0x39d947;}function _0x34e8bf(){const _0x3c314f=_0x4d49df[_0x28888a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3c314f&&(!!_0x3c314f[_0x28888a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28888a([0x2a]))||!!_0x3c314f[_0x28888a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28888a([0x55,0x50,0x4c,0x43])));}function _0x2832e3(){const _0x520276=_0x11a5,_0x5b1ab9=_0x4d49df[_0x28888a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5b1ab9||0x0==_0x5b1ab9[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x57d0dc}=new URL(window[_0x28888a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x520276(0x1ad)]);if(_0x5b1ab9[_0x28888a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57d0dc))return!0x0;const _0x19a82c=_0x57d0dc[_0x28888a([0x73,0x70,0x6c,0x69,0x74])](_0x28888a([0x2e]));return _0x5b1ab9[_0x28888a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x38aa1a=>_0x38aa1a[_0x28888a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28888a([0x2a])))[_0x28888a([0x6d,0x61,0x70])](_0x1206db=>_0x1206db[_0x28888a([0x73,0x70,0x6c,0x69,0x74])](_0x28888a([0x2e])))[_0x28888a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11d686=>_0x11d686[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x19a82c[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x28888a([0x6d,0x61,0x70])](_0x4286be=>Array(_0x19a82c[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4286be[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x28888a([0x66,0x69,0x6c,0x6c])](_0x4286be[0x0]===_0x28888a([0x2a])?_0x28888a([0x2a]):'')[_0x28888a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4286be))[_0x28888a([0x73,0x6f,0x6d,0x65])](_0x5399c1=>_0x19a82c[_0x28888a([0x65,0x76,0x65,0x72,0x79])]((_0x6df013,_0x4e808d)=>_0x5399c1[_0x4e808d]===_0x6df013||_0x5399c1[_0x4e808d]===_0x28888a([0x2a])));}function _0x5ec28d(){return _0xa0548d&&_0x40214a?new window[(_0x28888a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x702e32,_0x46a173)=>{_0xa0548d[_0x28888a([0x74,0x68,0x65,0x6e])](_0x702e32,_0x46a173),_0x40214a[_0x28888a([0x74,0x68,0x65,0x6e])](_0x15c14b=>{_0x15c14b!=_0x28888a([0x56,0x61,0x6c,0x69,0x64])&&_0x702e32(_0x15c14b);},_0x46a173);}):_0xa0548d||_0x40214a||_0x28888a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1f823f(_0x2dde52,_0x267adc){return new window[(_0x28888a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2058a7=>{if(_0x2dc615())return _0x2058a7(_0x28888a([0x56,0x61,0x6c,0x69,0x64]));_0x3a728a(),_0x3c497f[_0x28888a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x28888a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5caa09=!0x1;const _0xa2bdc6=_0x568d30();function _0x1a3d6c(_0x6435e8){return!!_0x6435e8&&(typeof _0x6435e8===_0x28888a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x6435e8===_0x28888a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x6435e8[_0x28888a([0x74,0x68,0x65,0x6e])]===_0x28888a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x6435e8[_0x28888a([0x63,0x61,0x74,0x63,0x68])]===_0x28888a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5679d3(_0x159eab){_0x5a6bb5(_0x159eab)[_0x28888a([0x74,0x68,0x65,0x6e])](_0x227ada=>{if(!_0x227ada||_0x227ada[_0x28888a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x28888a([0x6f,0x6b]))return _0x28888a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5ee240(_0x5943c5(_0xa2bdc6+_0x267adc))!=_0x227ada[_0x28888a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x28888a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x28888a([0x56,0x61,0x6c,0x69,0x64]);})[_0x28888a([0x74,0x68,0x65,0x6e])](_0x228ac7=>(_0x1ecdf3(),_0x228ac7),()=>{const _0x29edd9=_0x32b982();return null==_0x29edd9?(_0x1ecdf3(),_0x28888a([0x56,0x61,0x6c,0x69,0x64])):_0x28888a(_0x51c641-_0x29edd9>(0x4ad6b544^_0x317afa)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x28888a([0x74,0x68,0x65,0x6e])](_0x2058a7)[_0x28888a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2058a7(_0x28888a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x38be1a=0x6eecdfc4^_0x317afa;function _0x1ecdf3(){const _0x4dc3e7=_0x28888a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ee240(_0x5943c5(_0x2dde52)),_0x2092d4=_0x4b68dd(_0x5ee240(window[_0x28888a([0x4d,0x61,0x74,0x68])][_0x28888a([0x63,0x65,0x69,0x6c])](_0x51c641/_0x38be1a)));window[_0x28888a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x28888a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4dc3e7,_0x2092d4);}function _0x32b982(){const _0x5611c3=_0x28888a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ee240(_0x5943c5(_0x2dde52)),_0x262ec9=window[_0x28888a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x28888a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5611c3);return _0x262ec9?window[_0x28888a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b68dd(_0x262ec9),0x10)*_0x38be1a:null;}function _0x5a6bb5(_0x43a20c){return new window[(_0x28888a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44ad58,_0x435053)=>{_0x43a20c[_0x28888a([0x74,0x68,0x65,0x6e])](_0x44ad58,_0x435053),window[_0x28888a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x435053,0x6edbe584^_0x317afa);});}}_0x3c497f[_0x28888a([0x6f,0x6e])](_0x28888a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4234f4,_0x14887c)=>{if(_0x14887c[0x0]!=_0x2dde52)return _0x2058a7(_0x28888a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x14887c[0x1]={..._0x14887c[0x1],[_0x28888a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xa2bdc6};},{[_0x28888a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x28888a([0x68,0x69,0x67,0x68])}),_0x3c497f[_0x28888a([0x6f,0x6e])](_0x28888a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x13c76e=>{_0x1a3d6c(_0x13c76e[_0x28888a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5caa09=!0x0,_0x5679d3(_0x13c76e[_0x28888a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x28888a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x28888a([0x6c,0x6f,0x77])}),_0x5454e0[_0x28888a([0x74,0x68,0x65,0x6e])](()=>{_0x5caa09||_0x2058a7(_0x28888a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2dc615(){return _0x3c497f[_0x28888a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28888a([0x76,0x69,0x65,0x77])][_0x28888a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x28888a([0x61,0x75,0x74,0x6f]);}function _0x3a728a(){_0x3c497f[_0x28888a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28888a([0x76,0x69,0x65,0x77])][_0x28888a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x28888a([0x61,0x75,0x74,0x6f]);}}function _0x420582(_0x53e06f){const _0x4e69c9=[new window[(_0x28888a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x467220=>setTimeout(_0x467220,0x6ed30f88^_0x317afa)),_0x5454e0[_0x28888a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x28888a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc9aa3c=>{let _0x4aa4a7=0x0;_0x3c497f[_0x28888a([0x6d,0x6f,0x64,0x65,0x6c])][_0x28888a([0x6f,0x6e])](_0x28888a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2b1ac6,_0x4f2fde)=>{_0x4f2fde[0x0][_0x28888a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4aa4a7++,_0x4aa4a7==(0x6eda30bc^_0x317afa)&&(_0xc9aa3c(),_0x2b1ac6[_0x28888a([0x6f,0x66,0x66])]());});}))];return window[_0x28888a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x28888a([0x72,0x61,0x63,0x65])](_0x4e69c9)[_0x28888a([0x74,0x68,0x65,0x6e])](()=>_0x53e06f);}async function _0x2b5754(){await _0x5454e0,_0x3c497f[_0x28888a([0x6d,0x6f,0x64,0x65,0x6c])][_0x28888a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x41f6e5,_0x3c497f[_0x28888a([0x6d,0x6f,0x64,0x65,0x6c])][_0x28888a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x41f6e5,_0x3c497f[_0x28888a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x28888a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x417e00(_0x5b1092){const _0x19a317=_0x3d1565();_0x3c497f[_0x19a317]=_0x28888a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5b1092,_0x5b1092!=_0x28888a([0x56,0x61,0x6c,0x69,0x64])&&_0x2b5754();}function _0x3d1565(){const _0x3b0d20=window[_0x28888a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x28888a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x28888a([0x6e,0x6f,0x77])]())[_0x28888a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x28888a([0x2e]),'');let _0x25c486=_0x28888a([0x66]);for(let _0x515912=0x0;_0x515912<_0x3b0d20[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x515912+=0x2){let _0x36126e=window[_0x28888a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b0d20[_0x28888a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x515912,_0x515912+0x2));_0x36126e>=_0x43d4e0[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x36126e-=_0x43d4e0[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x25c486+=_0x43d4e0[_0x36126e];}return _0x25c486;}function _0x485d02(){const _0x1e0624=_0x4713a0[_0x28888a([0x73,0x70,0x6c,0x69,0x74])](_0x28888a([0x2e]));if(0x3!=_0x1e0624[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x531f2e(_0x1e0624[0x1]);function _0x531f2e(_0x4cb5c1){const _0x3c694f=_0x281c30(_0x4cb5c1);return _0x3c694f&&_0x74b386()?_0x3c694f:null;function _0x74b386(){const _0x173a5e=_0x3c694f[_0x28888a([0x6a,0x74,0x69])],_0x133a9e=window[_0x28888a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x173a5e[_0x28888a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x173a5e[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x259da6={..._0x3c694f,[_0x28888a([0x6a,0x74,0x69])]:_0x173a5e[_0x28888a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x173a5e[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x259da6[_0x28888a([0x76,0x63])],_0x5943c5(_0x259da6)==_0x133a9e;}}}async function _0x40b97e(){let _0x2925da=!0x0;try{const _0x5d3701=_0x4713a0[_0x28888a([0x73,0x70,0x6c,0x69,0x74])](_0x28888a([0x2e])),[_0x2e260c,_0x171741,_0x139c22]=_0x5d3701;return _0x3a2f10(_0x2e260c),await _0x467950(_0x2e260c,_0x171741,_0x139c22),_0x2925da;}catch{return!0x1;}function _0x3a2f10(_0x58a02d){const _0x3dd774=_0x281c30(_0x58a02d);_0x3dd774&&_0x3dd774[_0x28888a([0x61,0x6c,0x67])]==_0x28888a([0x45,0x53,0x32,0x35,0x36])||(_0x2925da=!0x1);}async function _0x467950(_0x1578ae,_0x32dfa7,_0x4f4dbf){const _0x40ac4a=window[_0x28888a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x28888a([0x66,0x72,0x6f,0x6d])](_0x22c0c4(_0x4f4dbf),_0x4a5e3c=>_0x4a5e3c[_0x28888a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x50ad0c=new window[(_0x28888a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x28888a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1578ae+_0x28888a([0x2e])+_0x32dfa7),_0x14e556=window[_0x28888a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x28888a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x14e556)return;const _0x21ff3e=await _0x14e556[_0x28888a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x28888a([0x6a,0x77,0x6b]),_0x11795a,{[_0x28888a([0x6e,0x61,0x6d,0x65])]:_0x28888a([0x45,0x43,0x44,0x53,0x41]),[_0x28888a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x28888a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x28888a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x14e556[_0x28888a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x28888a([0x6e,0x61,0x6d,0x65])]:_0x28888a([0x45,0x43,0x44,0x53,0x41]),[_0x28888a([0x68,0x61,0x73,0x68])]:{[_0x28888a([0x6e,0x61,0x6d,0x65])]:_0x28888a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x21ff3e,_0x40ac4a,_0x50ad0c)||(_0x2925da=!0x1);}}function _0x281c30(_0x2bd14b){return _0x2bd14b[_0x28888a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x28888a([0x65,0x79]))?JSON[_0x28888a([0x70,0x61,0x72,0x73,0x65])](_0x22c0c4(_0x2bd14b)):null;}function _0x22c0c4(_0x40d071){return window[_0x28888a([0x61,0x74,0x6f,0x62])](_0x40d071[_0x28888a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x28888a([0x2b]))[_0x28888a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x28888a([0x2f])));}function _0x5943c5(_0x2ee5f1){let _0x560044=0x1505;function _0x39521d(_0x31f246){for(let _0x4f63ae=0x0;_0x4f63ae<_0x31f246[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f63ae++){const _0x498963=_0x31f246[_0x28888a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4f63ae);_0x560044=(_0x560044<<0x5)+_0x560044+_0x498963,_0x560044&=_0x560044;}}function _0x7c3cb7(_0xbc78d){Array[_0x28888a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xbc78d)?_0xbc78d[_0x28888a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x7c3cb7):_0xbc78d&&typeof _0xbc78d==_0x28888a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x28888a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xbc78d)[_0x28888a([0x73,0x6f,0x72,0x74])]()[_0x28888a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x42b474,_0x4087a1])=>{_0x39521d(_0x42b474),_0x7c3cb7(_0x4087a1);}):_0x39521d(window[_0x28888a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xbc78d));}return _0x7c3cb7(_0x2ee5f1),_0x560044>>>0x0;}function _0x5ee240(_0x503ca5){return _0x503ca5[_0x28888a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x28888a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x28888a([0x30]));}function _0x4b68dd(_0x18a31f){return _0x18a31f[_0x28888a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x28888a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x28888a([0x6a,0x6f,0x69,0x6e])]('');}function _0x41f6e5(){}function _0x28888a(_0x21762a){const _0x1ee132=_0x11a5;return _0x21762a[_0x1ee132(0x186)](_0x270e95=>String[_0x1ee132(0x1bd)](_0x270e95))[_0x1ee132(0x1c4)]('');}_0x417e00(await _0x3b513a());}(this);}[_0x2bfd6b(0x175)](){const _0x17b747=_0x2bfd6b,_0x983c87=this[_0x17b747(0x1c2)][_0x17b747(0x183)][_0x17b747(0x1a8)];_0x983c87[_0x17b747(0x195)](_0x17b747(0x1a4))&&_0x983c87[_0x17b747(0x1bf)](_0x17b747(0x1a4),{'allowAttributes':[_0x17b747(0x18f)]}),_0x983c87[_0x17b747(0x195)](_0x17b747(0x17a))&&_0x983c87[_0x17b747(0x1bf)](_0x17b747(0x17a),{'allowAttributes':[_0x17b747(0x18f)]});}[_0x2bfd6b(0x1b0)](){const _0x5a9f61=_0x2bfd6b,_0x63a913=this[_0x5a9f61(0x1c2)];_0x63a913[_0x5a9f61(0x1b1)][_0x5a9f61(0x1b6)](_0x5a9f61(0x1bc))[_0x5a9f61(0x19d)]({'model':_0x5a9f61(0x18f),'view':_0x5a9f61(0x18c)}),_0x63a913[_0x5a9f61(0x1b1)][_0x5a9f61(0x1b6)](_0x5a9f61(0x178))[_0x5a9f61(0x19e)]({'model':{'key':_0x5a9f61(0x18f),'value':_0x4bda45=>_0x4bda45[_0x5a9f61(0x192)](_0x5a9f61(0x18c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x163899=_0x63a913[_0x5a9f61(0x1c0)][_0x5a9f61(0x18a)](_0x5a9f61(0x179));_0x163899&&this[_0x5a9f61(0x197)](_0x163899,_0x5a9f61(0x1c1),(_0x89eac5,[_0x2e060e,_0x326314])=>{const _0xaff74e=_0x5a9f61;_0x2e060e[_0xaff74e(0x19f)](_0xaff74e(0x18f),_0x326314);});}[_0x2bfd6b(0x193)](){const _0xe89564=_0x2bfd6b,_0x4686c7=this[_0xe89564(0x1c2)][_0xe89564(0x174)][_0xe89564(0x18a)](_0xe89564(0x185))||{},_0x2325de=this[_0xe89564(0x1c2)][_0xe89564(0x174)][_0xe89564(0x18a)](_0xe89564(0x1b4))||'';this[_0xe89564(0x1a6)]=_0x54e12a(_0xfb71fa[_0xe89564(0x1ba)],_0xe89564(0x198),{..._0x4686c7,'pubkey':_0x2325de,'ctx-name':_0xe89564(0x191),'sourceList':'','imgOnly':_0xe89564(0x1ae),'removeCopyright':_0xe89564(0x1ae),'localeName':this[_0xe89564(0x1c2)][_0xe89564(0x19c)][_0xe89564(0x1a1)],'externalSourcesEmbedCss':_0xe89564(0x1c6)}),this[_0xe89564(0x1a6)][_0xe89564(0x17d)]=_0x33da96=>{const _0x1b38a4=_0xe89564;if(_0x1b38a4(0x182)==_0x33da96)return _0x1b38a4(0x177);},_0xfb71fa[_0xe89564(0x1ba)][_0xe89564(0x1a3)][_0xe89564(0x1bb)](this[_0xe89564(0x1a6)]);}[_0x2bfd6b(0x188)](){const _0x15e9b8=_0x2bfd6b;this[_0x15e9b8(0x19a)]=_0x54e12a(_0xfb71fa[_0x15e9b8(0x1ba)],_0x15e9b8(0x1af),{'ctx-name':_0x15e9b8(0x191)}),_0xfb71fa[_0x15e9b8(0x1ba)][_0x15e9b8(0x1a3)][_0x15e9b8(0x1bb)](this[_0x15e9b8(0x19a)]);}[_0x2bfd6b(0x1aa)](){const _0x4f312e=_0x2bfd6b,_0x844971=this[_0x4f312e(0x1c2)][_0x4f312e(0x1c0)][_0x4f312e(0x18a)](_0x4f312e(0x18b));_0x844971&&this[_0x4f312e(0x197)](_0x844971,_0x4f312e(0x19b),()=>{const _0x4ee586=_0x4f312e,_0x4a0be4=this[_0x4ee586(0x1c2)][_0x4ee586(0x183)][_0x4ee586(0x1ba)][_0x4ee586(0x18d)][_0x4ee586(0x1b9)]();_0x4a0be4&&_0x4a0be4[_0x4ee586(0x192)](_0x4ee586(0x18f))&&this[_0x4ee586(0x1c2)][_0x4ee586(0x199)][_0x4ee586(0x18e)][_0x4ee586(0x189)](_0x4ee586(0x17c),()=>{const _0x5ed043=_0x4ee586;_0x3428e6(this[_0x5ed043(0x1c2)],_0x4a0be4);});});const _0x12afaa=this[_0x4f312e(0x1c2)][_0x4f312e(0x1c0)][_0x4f312e(0x18a)](_0x4f312e(0x1b3));_0x12afaa&&this[_0x4f312e(0x197)](_0x12afaa,_0x4f312e(0x19b),()=>{const _0x26edad=_0x4f312e,_0x1d93a4=this[_0x26edad(0x1c2)][_0x26edad(0x183)][_0x26edad(0x1ba)][_0x26edad(0x18d)][_0x26edad(0x1b9)]();_0x1d93a4&&_0x1d93a4[_0x26edad(0x192)](_0x26edad(0x18f))&&this[_0x26edad(0x1c2)][_0x26edad(0x199)][_0x26edad(0x18e)][_0x26edad(0x189)](_0x26edad(0x17c),()=>{const _0x86ec77=_0x26edad;_0x3428e6(this[_0x86ec77(0x1c2)],_0x1d93a4);});});}}
23
+ function _0x443d(_0x4c40ac,_0x34a653){const _0x4041df=_0x4041();return _0x443d=function(_0x443d4f,_0x477b47){_0x443d4f=_0x443d4f-0x78;let _0x45325d=_0x4041df[_0x443d4f];return _0x45325d;},_0x443d(_0x4c40ac,_0x34a653);}const _0x2f2343=_0x443d;(function(_0x5ef178,_0x4201e3){const _0x96c687=_0x443d,_0x642b05=_0x5ef178();while(!![]){try{const _0x4fa1d9=parseInt(_0x96c687(0x78))/0x1+parseInt(_0x96c687(0xbb))/0x2+-parseInt(_0x96c687(0xc6))/0x3+-parseInt(_0x96c687(0x9a))/0x4+-parseInt(_0x96c687(0x8c))/0x5*(parseInt(_0x96c687(0x94))/0x6)+parseInt(_0x96c687(0xc2))/0x7+-parseInt(_0x96c687(0xba))/0x8*(-parseInt(_0x96c687(0xa5))/0x9);if(_0x4fa1d9===_0x4201e3)break;else _0x642b05['push'](_0x642b05['shift']());}catch(_0x289a0c){_0x642b05['push'](_0x642b05['shift']());}}}(_0x4041,0x496c3));import{Plugin as _0x395e63}from'ckeditor5/src/core.js';import{Dialog as _0x2561ec}from'ckeditor5/src/ui.js';import{createElement as _0x28d7c9,global as _0x1385ef,uid as _0x1f9812}from'ckeditor5/src/utils.js';function _0x4041(){const _0x2457e5=['_configElement','upcast','pluginName','1174785ueHVIZ','isPremiumPlugin','downcast','view','isRegistered','imageInline','schema','join','6stOcHO','get','execute','querySelector','fromCharCode','input[uploadcare-file-input]','1031000osOnDd','commands','editing','getAttribute','render','add','_initConfig','elementToAttribute','_initConversion','uploadcare.uploader','closeMax','267147iheSvG','attributeToAttribute','locale','UploadcareEditing','replaceImageSource','selection','remove','extend','uploadcare.pubkey','\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','insertImage','data-uc-image-id','config','uploadcareImageId','href','removeAttribute','uploadcareImageReplace','ucContextId','conversion','_ctxElement','_initCtx','24cdUVBM','518658CDVRxf','#uc-icon-arrow-down','true','ctxElement','once','uploader-','requires','2014495peREWz','body','isOfficialPlugin','uc-config','1157580qmEJgL','uploadcare','init','getSelectedElement','afterInit','contentLanguage','543143VMONIl','uc-upload-ctx-provider','cleanupImage','iconHrefResolver','configElement','listenTo','model','PictureEditing','map','imageBlock','_initSchema','for','editor','_initImageProcessingIndicator','document','appendChild','destroy'];_0x4041=function(){return _0x2457e5;};return _0x4041();}import{UploadcareCommand as _0x473e80}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x260760}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5a3cb3}from'./utils/editingutils.js';export class UploadcareEditing extends _0x395e63{[_0x2f2343(0x89)]=null;[_0x2f2343(0xb8)]=null;static get[_0x2f2343(0x8b)](){const _0xb9990=_0x2f2343;return _0xb9990(0xa8);}static get[_0x2f2343(0xc1)](){const _0x534c2c=_0x2f2343;return[_0x534c2c(0x7f),_0x260760,_0x2561ec];}static get[_0x2f2343(0xc4)](){return!0x0;}static get[_0x2f2343(0x8d)](){return!0x0;}[_0x2f2343(0xb6)];get[_0x2f2343(0x7c)](){const _0x5305ad=_0x2f2343;return this[_0x5305ad(0x89)];}get[_0x2f2343(0xbe)](){const _0x55985c=_0x2f2343;return this[_0x55985c(0xb8)];}constructor(_0x2808c8){const _0x7e4d4d=_0x2f2343;super(_0x2808c8),this[_0x7e4d4d(0xb6)]=_0x1f9812();}[_0x2f2343(0xc8)](){const _0x1dc930=_0x2f2343,_0x5d4970=this[_0x1dc930(0x84)];_0x5d4970[_0x1dc930(0x9b)][_0x1dc930(0x9f)](_0x1dc930(0xc7),new _0x473e80(_0x5d4970));}[_0x2f2343(0xca)](){const _0x4b8477=_0x2f2343;this[_0x4b8477(0x82)](),this[_0x4b8477(0xa2)](),this[_0x4b8477(0xa0)](),this[_0x4b8477(0xb9)](),this[_0x4b8477(0x85)](),this[_0x4b8477(0x7d)](this[_0x4b8477(0x84)],_0x4b8477(0x88),()=>{const _0x207ceb=_0x4b8477;this[_0x207ceb(0x89)]&&(this[_0x207ceb(0x89)][_0x207ceb(0xab)](),this[_0x207ceb(0x89)]=null),this[_0x207ceb(0xb8)]&&(this[_0x207ceb(0xb8)][_0x207ceb(0xab)](),this[_0x207ceb(0xb8)]=null);const _0x162dc1=_0x1385ef[_0x207ceb(0x86)][_0x207ceb(0x97)](_0x207ceb(0x99));_0x162dc1&&_0x162dc1[_0x207ceb(0xab)]();}),async function(_0x4314cf){const _0x2911b0=_0x4eaea9([0x35,0x64,0x66,0x76,0x56,0x32,0x5a,0x46,0x49,0x6d,0x47,0x4a,0x37,0x4d,0x57,0x63,0x4f,0x36,0x6c,0x65,0x48,0x74,0x50,0x71,0x6b,0x62,0x75,0x51,0x53,0x68,0x69,0x54,0x30,0x6e,0x44,0x45,0x41,0x4e,0x77,0x73,0x6a,0x33,0x70,0x38,0x43,0x78,0x72,0x31,0x61,0x52,0x42,0x67,0x55,0x4b,0x4c,0x7a,0x59,0x6f,0x58,0x34,0x79,0x39]),_0x468d14=0x2cc1038,_0x29dad3=0x2cb7c50^_0x468d14,_0x405d14=window[_0x4eaea9([0x44,0x61,0x74,0x65])][_0x4eaea9([0x6e,0x6f,0x77])](),_0x1e99ad=_0x4314cf[_0x4eaea9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2ebfe0=new window[(_0x4eaea9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8286be=>{_0x1e99ad[_0x4eaea9([0x6f,0x6e,0x63,0x65])](_0x4eaea9([0x72,0x65,0x61,0x64,0x79]),_0x8286be);}),_0x23e53c={[_0x4eaea9([0x6b,0x74,0x79])]:_0x4eaea9([0x45,0x43]),[_0x4eaea9([0x75,0x73,0x65])]:_0x4eaea9([0x73,0x69,0x67]),[_0x4eaea9([0x63,0x72,0x76])]:_0x4eaea9([0x50,0x2d,0x32,0x35,0x36]),[_0x4eaea9([0x78])]:_0x4eaea9([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]),[_0x4eaea9([0x79])]:_0x4eaea9([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]),[_0x4eaea9([0x61,0x6c,0x67])]:_0x4eaea9([0x45,0x53,0x32,0x35,0x36])},_0xaecd84=_0x1e99ad[_0x4eaea9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4eaea9([0x67,0x65,0x74])](_0x4eaea9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1abb15(){let _0x54916c,_0x420049=null,_0x5dc828=null;try{if(_0xaecd84==_0x4eaea9([0x47,0x50,0x4c]))return _0x4eaea9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x54916c=_0x35d121(),!_0x54916c)return _0x4eaea9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x54916c[_0x4eaea9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5dc828=_0x23b6a0(_0x54916c[_0x4eaea9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x54916c[_0x4eaea9([0x6a,0x74,0x69])])),await _0x265377()?_0x4697ca()?_0x1caba2()?_0x4eaea9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4b24b3()?(_0x54916c[_0x4eaea9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4eaea9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x420049=_0x1bad6b(_0x4eaea9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x54916c[_0x4eaea9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4eaea9([0x74,0x72,0x69,0x61,0x6c])&&(_0x420049=_0x1bad6b(_0x4eaea9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x8064fd()):_0x4eaea9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4eaea9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4eaea9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4eaea9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1caba2(){const _0x356924=[_0x4eaea9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4eaea9([0x74,0x72,0x69,0x61,0x6c])][_0x4eaea9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54916c[_0x4eaea9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x405d14/0x3e8:0xe10*_0x29dad3;return _0x54916c[_0x4eaea9([0x65,0x78,0x70])]<_0x356924;}function _0x4697ca(){const _0x3aef3c=_0x54916c[_0x4eaea9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3aef3c&&(!!_0x3aef3c[_0x4eaea9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4eaea9([0x2a]))||!!_0x3aef3c[_0x4eaea9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4eaea9([0x55,0x50,0x4c,0x43])));}function _0x4b24b3(){const _0x4ce0ac=_0x443d,_0x62f0dd=_0x54916c[_0x4eaea9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x62f0dd||0x0==_0x62f0dd[_0x4eaea9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2f6949}=new URL(window[_0x4eaea9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4ce0ac(0xb3)]);if(_0x62f0dd[_0x4eaea9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f6949))return!0x0;const _0x3153e2=_0x2f6949[_0x4eaea9([0x73,0x70,0x6c,0x69,0x74])](_0x4eaea9([0x2e]));return _0x62f0dd[_0x4eaea9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3be20d=>_0x3be20d[_0x4eaea9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4eaea9([0x2a])))[_0x4eaea9([0x6d,0x61,0x70])](_0x45e5f3=>_0x45e5f3[_0x4eaea9([0x73,0x70,0x6c,0x69,0x74])](_0x4eaea9([0x2e])))[_0x4eaea9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1614d7=>_0x1614d7[_0x4eaea9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3153e2[_0x4eaea9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4eaea9([0x6d,0x61,0x70])](_0x120fd0=>Array(_0x3153e2[_0x4eaea9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x120fd0[_0x4eaea9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4eaea9([0x66,0x69,0x6c,0x6c])](_0x120fd0[0x0]===_0x4eaea9([0x2a])?_0x4eaea9([0x2a]):'')[_0x4eaea9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x120fd0))[_0x4eaea9([0x73,0x6f,0x6d,0x65])](_0x3fa84d=>_0x3153e2[_0x4eaea9([0x65,0x76,0x65,0x72,0x79])]((_0x1b8036,_0x52aa4f)=>_0x3fa84d[_0x52aa4f]===_0x1b8036||_0x3fa84d[_0x52aa4f]===_0x4eaea9([0x2a])));}function _0x8064fd(){return _0x420049&&_0x5dc828?new window[(_0x4eaea9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x532bb1,_0x1dcd58)=>{_0x420049[_0x4eaea9([0x74,0x68,0x65,0x6e])](_0x532bb1,_0x1dcd58),_0x5dc828[_0x4eaea9([0x74,0x68,0x65,0x6e])](_0x453ee3=>{_0x453ee3!=_0x4eaea9([0x56,0x61,0x6c,0x69,0x64])&&_0x532bb1(_0x453ee3);},_0x1dcd58);}):_0x420049||_0x5dc828||_0x4eaea9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x23b6a0(_0xc89668,_0x5977f9){return new window[(_0x4eaea9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c61ef=>{if(_0x525d63())return _0x2c61ef(_0x4eaea9([0x56,0x61,0x6c,0x69,0x64]));_0x3cbbdf(),_0x1e99ad[_0x4eaea9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4eaea9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x42bf11=!0x1;const _0x5dd6bb=_0x1f9812();function _0x54b732(_0xc7b277){return!!_0xc7b277&&(typeof _0xc7b277===_0x4eaea9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xc7b277===_0x4eaea9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xc7b277[_0x4eaea9([0x74,0x68,0x65,0x6e])]===_0x4eaea9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xc7b277[_0x4eaea9([0x63,0x61,0x74,0x63,0x68])]===_0x4eaea9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3e08f5(_0x675e85){_0x2625bf(_0x675e85)[_0x4eaea9([0x74,0x68,0x65,0x6e])](_0x186cc2=>{if(!_0x186cc2||_0x186cc2[_0x4eaea9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4eaea9([0x6f,0x6b]))return _0x4eaea9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xc24630(_0x9997e9(_0x5dd6bb+_0x5977f9))!=_0x186cc2[_0x4eaea9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4eaea9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4eaea9([0x56,0x61,0x6c,0x69,0x64]);})[_0x4eaea9([0x74,0x68,0x65,0x6e])](_0x225a54=>(_0x55e287(),_0x225a54),()=>{const _0x577139=_0x27eac5();return null==_0x577139?(_0x55e287(),_0x4eaea9([0x56,0x61,0x6c,0x69,0x64])):_0x4eaea9(_0x405d14-_0x577139>(0x26c09438^_0x468d14)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4eaea9([0x74,0x68,0x65,0x6e])](_0x2c61ef)[_0x4eaea9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2c61ef(_0x4eaea9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x46a49b=0x2fafeb8^_0x468d14;function _0x55e287(){const _0x597c17=_0x4eaea9([0x6c,0x6c,0x63,0x74,0x2d])+_0xc24630(_0x9997e9(_0xc89668)),_0x5f75be=_0xb6041(_0xc24630(window[_0x4eaea9([0x4d,0x61,0x74,0x68])][_0x4eaea9([0x63,0x65,0x69,0x6c])](_0x405d14/_0x46a49b)));window[_0x4eaea9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4eaea9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x597c17,_0x5f75be);}function _0x27eac5(){const _0x59204a=_0x4eaea9([0x6c,0x6c,0x63,0x74,0x2d])+_0xc24630(_0x9997e9(_0xc89668)),_0x392404=window[_0x4eaea9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4eaea9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59204a);return _0x392404?window[_0x4eaea9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb6041(_0x392404),0x10)*_0x46a49b:null;}function _0x2625bf(_0x2714a9){return new window[(_0x4eaea9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31ba7a,_0x3eb9eb)=>{_0x2714a9[_0x4eaea9([0x74,0x68,0x65,0x6e])](_0x31ba7a,_0x3eb9eb),window[_0x4eaea9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3eb9eb,0x2cdc4f8^_0x468d14);});}}_0x1e99ad[_0x4eaea9([0x6f,0x6e])](_0x4eaea9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x455807,_0x39c9a0)=>{if(_0x39c9a0[0x0]!=_0xc89668)return _0x2c61ef(_0x4eaea9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x39c9a0[0x1]={..._0x39c9a0[0x1],[_0x4eaea9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5dd6bb};},{[_0x4eaea9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4eaea9([0x68,0x69,0x67,0x68])}),_0x1e99ad[_0x4eaea9([0x6f,0x6e])](_0x4eaea9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x38b125=>{_0x54b732(_0x38b125[_0x4eaea9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x42bf11=!0x0,_0x3e08f5(_0x38b125[_0x4eaea9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4eaea9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4eaea9([0x6c,0x6f,0x77])}),_0x2ebfe0[_0x4eaea9([0x74,0x68,0x65,0x6e])](()=>{_0x42bf11||_0x2c61ef(_0x4eaea9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x525d63(){return _0x1e99ad[_0x4eaea9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4eaea9([0x76,0x69,0x65,0x77])][_0x4eaea9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4eaea9([0x61,0x75,0x74,0x6f]);}function _0x3cbbdf(){_0x1e99ad[_0x4eaea9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4eaea9([0x76,0x69,0x65,0x77])][_0x4eaea9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4eaea9([0x61,0x75,0x74,0x6f]);}}function _0x1bad6b(_0x592829){const _0x126cf7=[new window[(_0x4eaea9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcf02f1=>setTimeout(_0xcf02f1,0x2c52ef4^_0x468d14)),_0x2ebfe0[_0x4eaea9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4eaea9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x315a7c=>{let _0x37c59b=0x0;_0x1e99ad[_0x4eaea9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4eaea9([0x6f,0x6e])](_0x4eaea9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5d94fe,_0xe2361c)=>{_0xe2361c[0x0][_0x4eaea9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x37c59b++,_0x37c59b==(0x2cc11c0^_0x468d14)&&(_0x315a7c(),_0x5d94fe[_0x4eaea9([0x6f,0x66,0x66])]());});}))];return window[_0x4eaea9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4eaea9([0x72,0x61,0x63,0x65])](_0x126cf7)[_0x4eaea9([0x74,0x68,0x65,0x6e])](()=>_0x592829);}async function _0x4c3d80(){await _0x2ebfe0,_0x1e99ad[_0x4eaea9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4eaea9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4e7cb7,_0x1e99ad[_0x4eaea9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4eaea9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4e7cb7,_0x1e99ad[_0x4eaea9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4eaea9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4408c8(_0x59f041){const _0x29ead2=_0x3376c6();_0x1e99ad[_0x29ead2]=_0x4eaea9([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x59f041,_0x59f041!=_0x4eaea9([0x56,0x61,0x6c,0x69,0x64])&&_0x4c3d80();}function _0x3376c6(){const _0x48149e=window[_0x4eaea9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4eaea9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4eaea9([0x6e,0x6f,0x77])]())[_0x4eaea9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4eaea9([0x2e]),'');let _0x169e45=_0x4eaea9([0x64]);for(let _0x55cba2=0x0;_0x55cba2<_0x48149e[_0x4eaea9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55cba2+=0x2){let _0x26a4c8=window[_0x4eaea9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48149e[_0x4eaea9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x55cba2,_0x55cba2+0x2));_0x26a4c8>=_0x2911b0[_0x4eaea9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x26a4c8-=_0x2911b0[_0x4eaea9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x169e45+=_0x2911b0[_0x26a4c8];}return _0x169e45;}function _0x35d121(){const _0x2e0417=_0xaecd84[_0x4eaea9([0x73,0x70,0x6c,0x69,0x74])](_0x4eaea9([0x2e]));if(0x3!=_0x2e0417[_0x4eaea9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3d48e4(_0x2e0417[0x1]);function _0x3d48e4(_0x1d77b1){const _0x11c220=_0x1ad6e8(_0x1d77b1);return _0x11c220&&_0x1a81a9()?_0x11c220:null;function _0x1a81a9(){const _0x44e606=_0x11c220[_0x4eaea9([0x6a,0x74,0x69])],_0x8ae4a5=window[_0x4eaea9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44e606[_0x4eaea9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44e606[_0x4eaea9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x16ed76={..._0x11c220,[_0x4eaea9([0x6a,0x74,0x69])]:_0x44e606[_0x4eaea9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x44e606[_0x4eaea9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x16ed76[_0x4eaea9([0x76,0x63])],_0x9997e9(_0x16ed76)==_0x8ae4a5;}}}async function _0x265377(){let _0x1ad1a5=!0x0;try{const _0x10646e=_0xaecd84[_0x4eaea9([0x73,0x70,0x6c,0x69,0x74])](_0x4eaea9([0x2e])),[_0x7cd701,_0x5ce640,_0x1ed8eb]=_0x10646e;return _0x458814(_0x7cd701),await _0x36a174(_0x7cd701,_0x5ce640,_0x1ed8eb),_0x1ad1a5;}catch{return!0x1;}function _0x458814(_0x36e27c){const _0x49430d=_0x1ad6e8(_0x36e27c);_0x49430d&&_0x49430d[_0x4eaea9([0x61,0x6c,0x67])]==_0x4eaea9([0x45,0x53,0x32,0x35,0x36])||(_0x1ad1a5=!0x1);}async function _0x36a174(_0x1aa3fa,_0x366761,_0x2893f0){const _0x7870fd=window[_0x4eaea9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4eaea9([0x66,0x72,0x6f,0x6d])](_0x425ecb(_0x2893f0),_0x86a9f3=>_0x86a9f3[_0x4eaea9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3bce07=new window[(_0x4eaea9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4eaea9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1aa3fa+_0x4eaea9([0x2e])+_0x366761),_0x1a5430=window[_0x4eaea9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4eaea9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1a5430)return;const _0x1d4459=await _0x1a5430[_0x4eaea9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4eaea9([0x6a,0x77,0x6b]),_0x23e53c,{[_0x4eaea9([0x6e,0x61,0x6d,0x65])]:_0x4eaea9([0x45,0x43,0x44,0x53,0x41]),[_0x4eaea9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4eaea9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4eaea9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1a5430[_0x4eaea9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4eaea9([0x6e,0x61,0x6d,0x65])]:_0x4eaea9([0x45,0x43,0x44,0x53,0x41]),[_0x4eaea9([0x68,0x61,0x73,0x68])]:{[_0x4eaea9([0x6e,0x61,0x6d,0x65])]:_0x4eaea9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d4459,_0x7870fd,_0x3bce07)||(_0x1ad1a5=!0x1);}}function _0x1ad6e8(_0x4cfeda){return _0x4cfeda[_0x4eaea9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4eaea9([0x65,0x79]))?JSON[_0x4eaea9([0x70,0x61,0x72,0x73,0x65])](_0x425ecb(_0x4cfeda)):null;}function _0x425ecb(_0x5f2290){return window[_0x4eaea9([0x61,0x74,0x6f,0x62])](_0x5f2290[_0x4eaea9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4eaea9([0x2b]))[_0x4eaea9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4eaea9([0x2f])));}function _0x9997e9(_0x23c7a8){let _0x1779cd=0x1505;function _0x4a4a0c(_0x44b870){for(let _0x3bab80=0x0;_0x3bab80<_0x44b870[_0x4eaea9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3bab80++){const _0x2580e3=_0x44b870[_0x4eaea9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3bab80);_0x1779cd=(_0x1779cd<<0x5)+_0x1779cd+_0x2580e3,_0x1779cd&=_0x1779cd;}}function _0x20e84d(_0x47f593){Array[_0x4eaea9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x47f593)?_0x47f593[_0x4eaea9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x20e84d):_0x47f593&&typeof _0x47f593==_0x4eaea9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4eaea9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x47f593)[_0x4eaea9([0x73,0x6f,0x72,0x74])]()[_0x4eaea9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x65c0ac,_0x365fec])=>{_0x4a4a0c(_0x65c0ac),_0x20e84d(_0x365fec);}):_0x4a4a0c(window[_0x4eaea9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x47f593));}return _0x20e84d(_0x23c7a8),_0x1779cd>>>0x0;}function _0xc24630(_0x332676){return _0x332676[_0x4eaea9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4eaea9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4eaea9([0x30]));}function _0xb6041(_0x3371ef){return _0x3371ef[_0x4eaea9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4eaea9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4eaea9([0x6a,0x6f,0x69,0x6e])]('');}function _0x4e7cb7(){}function _0x4eaea9(_0x3bc91c){const _0x112c5b=_0x443d;return _0x3bc91c[_0x112c5b(0x80)](_0x52d720=>String[_0x112c5b(0x98)](_0x52d720))[_0x112c5b(0x93)]('');}_0x4408c8(await _0x1abb15());}(this);}[_0x2f2343(0x82)](){const _0x3af244=_0x2f2343,_0x588303=this[_0x3af244(0x84)][_0x3af244(0x7e)][_0x3af244(0x92)];_0x588303[_0x3af244(0x90)](_0x3af244(0x81))&&_0x588303[_0x3af244(0xac)](_0x3af244(0x81),{'allowAttributes':[_0x3af244(0xb2)]}),_0x588303[_0x3af244(0x90)](_0x3af244(0x91))&&_0x588303[_0x3af244(0xac)](_0x3af244(0x91),{'allowAttributes':[_0x3af244(0xb2)]});}[_0x2f2343(0xa2)](){const _0x1d8219=_0x2f2343,_0xdf0ea1=this[_0x1d8219(0x84)];_0xdf0ea1[_0x1d8219(0xb7)][_0x1d8219(0x83)](_0x1d8219(0x8e))[_0x1d8219(0xa6)]({'model':_0x1d8219(0xb2),'view':_0x1d8219(0xb0)}),_0xdf0ea1[_0x1d8219(0xb7)][_0x1d8219(0x83)](_0x1d8219(0x8a))[_0x1d8219(0xa1)]({'model':{'key':_0x1d8219(0xb2),'value':_0x15fc8a=>_0x15fc8a[_0x1d8219(0x9d)](_0x1d8219(0xb0))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xba27dd=_0xdf0ea1[_0x1d8219(0x9b)][_0x1d8219(0x95)](_0x1d8219(0xa9));_0xba27dd&&this[_0x1d8219(0x7d)](_0xba27dd,_0x1d8219(0x7a),(_0x54756c,[_0x3a73bb,_0x3a1892])=>{const _0x43ea06=_0x1d8219;_0x3a73bb[_0x43ea06(0xb4)](_0x43ea06(0xb2),_0x3a1892);});}[_0x2f2343(0xa0)](){const _0x726bf=_0x2f2343,_0x111503=this[_0x726bf(0x84)][_0x726bf(0xb1)][_0x726bf(0x95)](_0x726bf(0xa3))||{},_0x26fc95=this[_0x726bf(0x84)][_0x726bf(0xb1)][_0x726bf(0x95)](_0x726bf(0xad))||'';this[_0x726bf(0x89)]=_0x28d7c9(_0x1385ef[_0x726bf(0x86)],_0x726bf(0xc5),{..._0x111503,'pubkey':_0x26fc95,'ctx-name':_0x726bf(0xc0)+this[_0x726bf(0xb6)],'sourceList':'','imgOnly':_0x726bf(0xbd),'removeCopyright':_0x726bf(0xbd),'localeName':this[_0x726bf(0x84)][_0x726bf(0xa7)][_0x726bf(0xcb)],'externalSourcesEmbedCss':_0x726bf(0xae)}),this[_0x726bf(0x89)][_0x726bf(0x7b)]=_0x258c02=>{const _0x1aeca1=_0x726bf;if(_0x1aeca1(0xa4)==_0x258c02)return _0x1aeca1(0xbc);},_0x1385ef[_0x726bf(0x86)][_0x726bf(0xc3)][_0x726bf(0x87)](this[_0x726bf(0x89)]);}[_0x2f2343(0xb9)](){const _0x1d5805=_0x2f2343;this[_0x1d5805(0xb8)]=_0x28d7c9(_0x1385ef[_0x1d5805(0x86)],_0x1d5805(0x79),{'ctx-name':_0x1d5805(0xc0)+this[_0x1d5805(0xb6)]}),_0x1385ef[_0x1d5805(0x86)][_0x1d5805(0xc3)][_0x1d5805(0x87)](this[_0x1d5805(0xb8)]);}[_0x2f2343(0x85)](){const _0x45e676=_0x2f2343,_0x4b0990=this[_0x45e676(0x84)][_0x45e676(0x9b)][_0x45e676(0x95)](_0x45e676(0xaf));_0x4b0990&&this[_0x45e676(0x7d)](_0x4b0990,_0x45e676(0x96),()=>{const _0x2fbde4=_0x45e676,_0x37cff6=this[_0x2fbde4(0x84)][_0x2fbde4(0x7e)][_0x2fbde4(0x86)][_0x2fbde4(0xaa)][_0x2fbde4(0xc9)]();_0x37cff6&&_0x37cff6[_0x2fbde4(0x9d)](_0x2fbde4(0xb2))&&this[_0x2fbde4(0x84)][_0x2fbde4(0x9c)][_0x2fbde4(0x8f)][_0x2fbde4(0xbf)](_0x2fbde4(0x9e),()=>{const _0x4f3507=_0x2fbde4;_0x5a3cb3(this[_0x4f3507(0x84)],_0x37cff6);});});const _0x141d20=this[_0x45e676(0x84)][_0x45e676(0x9b)][_0x45e676(0x95)](_0x45e676(0xb5));_0x141d20&&this[_0x45e676(0x7d)](_0x141d20,_0x45e676(0x96),()=>{const _0x2f2772=_0x45e676,_0x50442d=this[_0x2f2772(0x84)][_0x2f2772(0x7e)][_0x2f2772(0x86)][_0x2f2772(0xaa)][_0x2f2772(0xc9)]();_0x50442d&&_0x50442d[_0x2f2772(0x9d)](_0x2f2772(0xb2))&&this[_0x2f2772(0x84)][_0x2f2772(0x9c)][_0x2f2772(0x8f)][_0x2f2772(0xbf)](_0x2f2772(0x9e),()=>{const _0x2bb706=_0x2f2772;_0x5a3cb3(this[_0x2bb706(0x84)],_0x50442d);});});}}
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { type Dialog } from 'ckeditor5/src/ui.js';
6
6
  import type { Editor } from 'ckeditor5/src/core.js';
7
- import type { Element as ModelElement } from 'ckeditor5/src/engine.js';
7
+ import type { ModelElement } from 'ckeditor5/src/engine.js';
8
8
  declare const UploadcareImageEditController_base: {
9
9
  new (): import("ckeditor5/src/utils.js").Observable;
10
10
  prototype: import("ckeditor5/src/utils.js").Observable;
@@ -15,7 +15,7 @@ declare const UploadcareImageEditController_base: {
15
15
  * It manages the dialog and all the related actions during dialog instance lifecycle. It is bound to a dialog instance
16
16
  * and an active image element and destroyed when dialog instance is closed.
17
17
  */
18
- export default class UploadcareImageEditController extends /* #__PURE__ -- @preserve */ UploadcareImageEditController_base {
18
+ export declare class UploadcareImageEditController extends /* #__PURE__ -- @preserve */ UploadcareImageEditController_base {
19
19
  /**
20
20
  * Whenever the controller is active and dialog UI visible.
21
21
  *
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{global as _0x2601db,ObservableMixin as _0x2c5ab2}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x56c49e}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x506f4d}from'ckeditor5/src/icons.js';import _0x192992 from'./uploadcareimageeditformview.js';import _0x27df8c from'../../utils/uploadutils.js';import{getImageUrls as _0x77e28b,getImageDimension as _0x54dd09}from'../../utils/editingutils.js';import{isAncestor as _0x2e84d6}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
24
- _0x2c5ab2(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1e6893,_0x404c24,_0x318e91){super(),this['_editor']=_0x1e6893,this['_dialog']=_0x404c24,this['_imageElement']=_0x318e91,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 _0x453bea=this['_imageElement'],_0x14c347=_0x453bea['getAttribute']('uploadcareImageId'),_0x557e54=_0x453bea['getAttribute']('src');if(_0x14c347)await this['_loadImageInfo'](_0x14c347,_0x557e54);else{if(this['_imageCache']['has'](_0x557e54)){const _0x36dc73=this['_imageCache']['get'](_0x557e54);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x36dc73['url'],this['imageDimension']=_0x36dc73['dimension'],this['imageId']=_0x36dc73['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xa8e0b}=this['_editor'],t=_0xa8e0b['t'],_0x51b483=new _0x192992(_0xa8e0b,this['imageStatus'],this['_attributes']);_0x51b483['bind']('status')['to'](this,'imageStatus'),_0x51b483['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x51b483['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x51b483['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x51b483,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x506f4d,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x51b483,'position':_0x56c49e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x51b483['focus']();},'onHide':()=>{_0x51b483['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x46ad81=>!_0x2e84d6(_0x46ad81,_0x51b483['element'])}});}['_loadImageInfo'](_0x2b11b8,_0xe92c4){return _0x27df8c['getInfo'](_0x2b11b8,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4ef9b8=>{const {width:_0x44f6e9,height:_0x3c8189}=_0x4ef9b8['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xe92c4,this['imageDimension']={'width':_0x44f6e9,'height':_0x3c8189},this['imageId']=_0x2b11b8;})['catch'](_0x97ea3c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x97ea3c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3dff53,_0x503cf9){return this['_getImageAsFile'](_0x3dff53)['then'](_0x5f539f=>_0x27df8c['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x503cf9['signal'],'file':_0x5f539f,'onProgress':_0x5bd72a=>{_0x5bd72a&&_0x5bd72a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5bd72a['value']));}}))['then'](_0x2496ae=>{const {width:_0x23db42,height:_0x2fd6fc}=_0x2496ae['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2496ae['cdnUrl'],this['imageDimension']={'width':_0x23db42,'height':_0x2fd6fc},this['imageId']=_0x2496ae['uuid'],this['imageUploadProgress']=null;const _0x9130b0=_0x3dff53['getAttribute']('src');this['_imageCache']['set'](_0x9130b0,{'id':_0x2496ae['uuid'],'url':_0x2496ae['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x26cb47=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x26cb47['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3e8600,_0x4341d1){_0x3e8600['on']('apply',(_0x3c2403,_0x2b494a)=>{this['_replaceImage'](_0x4341d1,_0x2b494a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3e8600['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3e8600['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x336376,_0x12d4df,_0x43d9ec){const _0xe57b02=this['_editor'],{width:_0x1a2825,height:_0x25d9d5}=_0x54dd09(_0x12d4df,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x295acd,imageSources:_0x148f04}=_0x77e28b(_0x12d4df,_0x1a2825);_0xe57b02['model']['change'](_0x481df9=>{if('$graveyard'===_0x336376['root']['rootName']){_0xe57b02['execute']('insertImage',{'imageType':_0x336376['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x336376['getAttributes']()),'uploadcareImageId':_0x43d9ec,'src':_0x295acd,'sources':_0x148f04,'width':_0x1a2825,'height':_0x25d9d5}});const _0x230000=_0x336376['getChildren']();_0x336376=_0xe57b02['model']['document']['selection']['getSelectedElement']();for(const _0x2809fa of _0x230000)_0x481df9['append'](_0x481df9['cloneElement'](_0x2809fa),_0x336376);}else _0x481df9['setSelection'](_0x336376,'on'),_0xe57b02['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x336376['getAttributes']()),'uploadcareImageId':_0x43d9ec,'src':_0x295acd,'sources':_0x148f04,'width':_0x1a2825,'height':_0x25d9d5},_0x336376);_0x481df9['setSelection'](_0x336376,'on');});}async['_getImageAsFile'](_0x26a329){const _0xe9f692=_0x2601db['window'],_0x407762=_0x2601db['document']['location']['href'],_0x3ba2de=new _0xe9f692['URL'](_0x26a329['getAttribute']('src'),_0x407762);if('data:'===_0x3ba2de['protocol']){const _0x9810ea=_0x3ba2de['href']['split'](','),_0x5b0e4f=_0x9810ea[0x0]['match'](/:(.*?);/)[0x1],_0x3bb9b2=_0x5b0e4f['split']('/')[0x1],_0x80d84b=_0xe9f692['atob'](_0x9810ea[_0x9810ea['length']-0x1]);let _0x51ee97=_0x80d84b['length'];const _0x3b70be=new _0xe9f692['Uint8Array'](_0x51ee97);for(;_0x51ee97--;)_0x3b70be[_0x51ee97]=_0x80d84b['charCodeAt'](_0x51ee97);return new _0xe9f692['File']([_0x3b70be],'image.'+_0x3bb9b2,{'type':_0x5b0e4f});}const _0x41afe0=_0x3ba2de['href']['split']('/'),_0x264869=_0x41afe0[_0x41afe0['length']-0x1],_0x1d22d4=_0x264869['split']('.')[0x1];return _0xe9f692['fetch'](_0x3ba2de['href'])['then'](_0x344e54=>_0x344e54['clone']()['blob']())['then'](_0x4df0a3=>new _0xe9f692['File']([_0x4df0a3],_0x264869,{'type':'image/'+_0x1d22d4}));}}
23
+ import{global as _0x51dc04,ObservableMixin as _0x2349ed}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0xf3b447}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0xddbf62}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x28d07e}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x1f7eaa}from'../../utils/uploadutils.js';import{getImageUrls as _0x1a467d,getImageDimension as _0x45234f}from'../../utils/editingutils.js';import{isAncestor as _0x5b5667}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
+ _0x2349ed(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5196cb,_0x4c0c00,_0xa70bcf){super(),this['_editor']=_0x5196cb,this['_dialog']=_0x4c0c00,this['_imageElement']=_0xa70bcf,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 _0x5c4403=this['_imageElement'],_0x578079=_0x5c4403['getAttribute']('uploadcareImageId'),_0x15d34e=_0x5c4403['getAttribute']('src');if(_0x578079)await this['_loadImageInfo'](_0x578079,_0x15d34e);else{if(this['_imageCache']['has'](_0x15d34e)){const _0x3cfd31=this['_imageCache']['get'](_0x15d34e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3cfd31['url'],this['imageDimension']=_0x3cfd31['dimension'],this['imageId']=_0x3cfd31['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3f67d6}=this['_editor'],t=_0x3f67d6['t'],_0x49b227=new _0x28d07e(_0x3f67d6,this['imageStatus'],this['_attributes']);_0x49b227['bind']('status')['to'](this,'imageStatus'),_0x49b227['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x49b227['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x49b227['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x49b227,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xddbf62,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x49b227,'position':_0xf3b447['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x49b227['focus']();},'onHide':()=>{_0x49b227['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x476309=>!_0x5b5667(_0x476309,_0x49b227['element'])}});}['_loadImageInfo'](_0x134649,_0x419bfd){return _0x1f7eaa['getInfo'](_0x134649,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x2b32b6=>{const {width:_0x5e1d1e,height:_0x5643cd}=_0x2b32b6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x419bfd,this['imageDimension']={'width':_0x5e1d1e,'height':_0x5643cd},this['imageId']=_0x134649;})['catch'](_0x4c763f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4c763f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2194ac,_0x422879){return this['_getImageAsFile'](_0x2194ac)['then'](_0xb0bc1=>_0x1f7eaa['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x422879['signal'],'file':_0xb0bc1,'onProgress':_0x12fb10=>{_0x12fb10&&_0x12fb10['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x12fb10['value']));}}))['then'](_0x5e53e6=>{const {width:_0x42fdf0,height:_0x198394}=_0x5e53e6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5e53e6['cdnUrl'],this['imageDimension']={'width':_0x42fdf0,'height':_0x198394},this['imageId']=_0x5e53e6['uuid'],this['imageUploadProgress']=null;const _0x5194e3=_0x2194ac['getAttribute']('src');this['_imageCache']['set'](_0x5194e3,{'id':_0x5e53e6['uuid'],'url':_0x5e53e6['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x465e37=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x465e37['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x29857d,_0x1740b5){_0x29857d['on']('apply',(_0x1675cf,_0x4f1e7f)=>{this['_replaceImage'](_0x1740b5,_0x4f1e7f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x29857d['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x29857d['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5198f5,_0x485f30,_0x1fd27b){const _0x23f1b6=this['_editor'],{width:_0x44820c,height:_0x4af203}=_0x45234f(_0x485f30,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x27336a,imageSources:_0x26ec86}=_0x1a467d(_0x485f30,_0x44820c);_0x23f1b6['model']['change'](_0x1d76f9=>{if('$graveyard'===_0x5198f5['root']['rootName']){_0x23f1b6['execute']('insertImage',{'imageType':_0x5198f5['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5198f5['getAttributes']()),'uploadcareImageId':_0x1fd27b,'src':_0x27336a,'sources':_0x26ec86,'width':_0x44820c,'height':_0x4af203}});const _0x529e11=_0x5198f5['getChildren']();_0x5198f5=_0x23f1b6['model']['document']['selection']['getSelectedElement']();for(const _0x688b9b of _0x529e11)_0x1d76f9['append'](_0x1d76f9['cloneElement'](_0x688b9b),_0x5198f5);}else _0x1d76f9['setSelection'](_0x5198f5,'on'),_0x23f1b6['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5198f5['getAttributes']()),'uploadcareImageId':_0x1fd27b,'src':_0x27336a,'sources':_0x26ec86,'width':_0x44820c,'height':_0x4af203},_0x5198f5);_0x1d76f9['setSelection'](_0x5198f5,'on');});}async['_getImageAsFile'](_0x314bc9){const _0x40864c=_0x51dc04['window'],_0x349360=_0x51dc04['document']['location']['href'],_0x1e8760=new _0x40864c['URL'](_0x314bc9['getAttribute']('src'),_0x349360);if('data:'===_0x1e8760['protocol']){const _0x1e56de=_0x1e8760['href']['split'](','),_0x1c0502=_0x1e56de[0x0]['match'](/:(.*?);/)[0x1],_0x4162f9=_0x1c0502['split']('/')[0x1],_0x5c73a7=_0x40864c['atob'](_0x1e56de[_0x1e56de['length']-0x1]);let _0x100a8d=_0x5c73a7['length'];const _0x2ac197=new _0x40864c['Uint8Array'](_0x100a8d);for(;_0x100a8d--;)_0x2ac197[_0x100a8d]=_0x5c73a7['charCodeAt'](_0x100a8d);return new _0x40864c['File']([_0x2ac197],'image.'+_0x4162f9,{'type':_0x1c0502});}const _0x493bdf=_0x1e8760['href']['split']('/'),_0x2f3e17=_0x493bdf[_0x493bdf['length']-0x1],_0x3186c6=_0x2f3e17['split']('.')[0x1];return _0x40864c['fetch'](_0x1e8760['href'])['then'](_0x337abd=>_0x337abd['clone']()['blob']())['then'](_0x1ca245=>new _0x40864c['File']([_0x1ca245],_0x2f3e17,{'type':'image/'+_0x3186c6}));}}
@@ -11,7 +11,7 @@ import type { UploadcareEditorConfig } from '../../uploadcareconfig.js';
11
11
  /**
12
12
  * A class representing the form editing view of the Uploadcare image edit feature.
13
13
  */
14
- export default class UploadcareImageEditFormEditingView extends View {
14
+ export declare class UploadcareImageEditFormEditingView extends View {
15
15
  /**
16
16
  * Image source URL.
17
17
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xf733(_0x8a7a38,_0x3f538){const _0x2cacc9=_0x2cac();return _0xf733=function(_0xf7335f,_0x31ffb4){_0xf7335f=_0xf7335f-0x98;let _0x5bebee=_0x2cacc9[_0xf7335f];return _0x5bebee;},_0xf733(_0x8a7a38,_0x3f538);}function _0x2cac(){const _0x44c24e=['249pXCWdO','2042181jkvWLx','uc-cloud-image-editor','image-edit','718795MfREki','39948dTrgwW','ck-uploadcare-theme','255438VYoOix','set','setTemplate','imageSrc','bindTemplate','uc-light','505352eFJdAg','761200napgKy','80aSncvR','15jiEijW','5114MXrLHK','8hqwdCD'];_0x2cac=function(){return _0x44c24e;};return _0x2cac();}(function(_0x4de92d,_0x3ce5d5){const _0x24f441=_0xf733,_0x9cce52=_0x4de92d();while(!![]){try{const _0x312397=parseInt(_0x24f441(0xa6))/0x1+parseInt(_0x24f441(0x9d))/0x2*(parseInt(_0x24f441(0x9f))/0x3)+parseInt(_0x24f441(0x99))/0x4+-parseInt(_0x24f441(0x9c))/0x5*(parseInt(_0x24f441(0xa4))/0x6)+-parseInt(_0x24f441(0xa3))/0x7+-parseInt(_0x24f441(0x9e))/0x8*(-parseInt(_0x24f441(0xa0))/0x9)+parseInt(_0x24f441(0x9b))/0xa*(-parseInt(_0x24f441(0x9a))/0xb);if(_0x312397===_0x3ce5d5)break;else _0x9cce52['push'](_0x9cce52['shift']());}catch(_0x1ed535){_0x9cce52['push'](_0x9cce52['shift']());}}}(_0x2cac,0x23511));import{View as _0x33448b}from'ckeditor5/src/ui.js';export default class tt extends _0x33448b{constructor(_0x47b226,_0x1de777){const _0x8a30fc=_0xf733;super(_0x47b226);const _0x26a8e2=this[_0x8a30fc(0xaa)];this[_0x8a30fc(0xa7)](_0x8a30fc(0xa9),''),this[_0x8a30fc(0xa8)]({'tag':_0x8a30fc(0xa1),'attributes':{..._0x1de777,'class':[_0x8a30fc(0x98),_0x8a30fc(0xa5)],'ctx-name':_0x8a30fc(0xa2),'cdn-url':_0x26a8e2['to'](_0x8a30fc(0xa9))}});}}
23
+ function _0x1990(_0xca638d,_0x4d656f){const _0x13ee28=_0x13ee();return _0x1990=function(_0x1990a9,_0x102a7d){_0x1990a9=_0x1990a9-0xbc;let _0x236b69=_0x13ee28[_0x1990a9];return _0x236b69;},_0x1990(_0xca638d,_0x4d656f);}function _0x13ee(){const _0x6612d1=['ck-uploadcare-theme','33HeRHJU','set','setTemplate','uc-light','1921507bWEbXR','159575VaFGNu','576GYOwNP','image-edit','bindTemplate','180nYlvbR','uc-cloud-image-editor','17520178Nbtttd','9916HBPkoU','154CBTrYg','206612rIDWcV','12595PhEwxO','16zMLLOS','5376lVEQJr','imageSrc','21610WpyQFD'];_0x13ee=function(){return _0x6612d1;};return _0x13ee();}(function(_0x26cfab,_0x46904c){const _0x554dcb=_0x1990,_0x1fc91b=_0x26cfab();while(!![]){try{const _0x14295c=parseInt(_0x554dcb(0xc7))/0x1*(-parseInt(_0x554dcb(0xc8))/0x2)+-parseInt(_0x554dcb(0xd0))/0x3*(-parseInt(_0x554dcb(0xc9))/0x4)+parseInt(_0x554dcb(0xc0))/0x5*(parseInt(_0x554dcb(0xc4))/0x6)+parseInt(_0x554dcb(0xbf))/0x7*(parseInt(_0x554dcb(0xcb))/0x8)+-parseInt(_0x554dcb(0xc1))/0x9*(-parseInt(_0x554dcb(0xce))/0xa)+parseInt(_0x554dcb(0xca))/0xb*(parseInt(_0x554dcb(0xcc))/0xc)+-parseInt(_0x554dcb(0xc6))/0xd;if(_0x14295c===_0x46904c)break;else _0x1fc91b['push'](_0x1fc91b['shift']());}catch(_0x6b8aa9){_0x1fc91b['push'](_0x1fc91b['shift']());}}}(_0x13ee,0x96105));import{View as _0x3e1a05}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x3e1a05{constructor(_0x25c3ef,_0x14a16b){const _0x135dbf=_0x1990;super(_0x25c3ef);const _0x269083=this[_0x135dbf(0xc3)];this[_0x135dbf(0xbc)](_0x135dbf(0xcd),''),this[_0x135dbf(0xbd)]({'tag':_0x135dbf(0xc5),'attributes':{..._0x14a16b,'class':[_0x135dbf(0xbe),_0x135dbf(0xcf)],'ctx-name':_0x135dbf(0xc2),'cdn-url':_0x269083['to'](_0x135dbf(0xcd))}});}}
@@ -4,11 +4,11 @@
4
4
  */
5
5
  import { View } from 'ckeditor5/src/ui.js';
6
6
  import type { Locale } from 'ckeditor5/src/utils.js';
7
- import type UploadcareImageEditController from './uploadcareimageeditcontroller.js';
7
+ import { type UploadcareImageEditController } from './uploadcareimageeditcontroller.js';
8
8
  /**
9
9
  * A class representing the form error view of the Uploadcare image edit feature.
10
10
  */
11
- export default class UploadcareImageEditFormErrorView extends View {
11
+ export declare class UploadcareImageEditFormErrorView extends View {
12
12
  /**
13
13
  * The image upload error details.
14
14
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x2fc7ff,IconView as at,View as _0x313e60}from'ckeditor5/src/ui.js';export default class rt extends _0x313e60{constructor(_0x305a70){super(_0x305a70);const t=_0x305a70['t'];this['set']('errorType',null);const _0x48903e=new _0x2fc7ff(_0x305a70);_0x48903e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x48903e['withText']=!0x0,_0x48903e['class']='ck-button-action',_0x48903e['on']('execute',()=>{this['fire']('retry');}),_0x48903e['bind']('isVisible')['to'](this,'errorType',_0x487660=>'NotFound'!==_0x487660);const _0x2c67ee=new at();_0x2c67ee['content']=et,_0x2c67ee['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x59b86e=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':[_0x2c67ee,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x59b86e['to']('errorType',_0x274893=>t('NotFound'!==_0x274893?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x48903e]},{'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'}]}]}]});}}
23
+ import{IconError as _0x5108b7}from'ckeditor5/src/icons.js';import{ButtonView as _0x13b706,IconView as _0x354806,View as _0x4d5c16}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x4d5c16{constructor(_0x442471){super(_0x442471);const t=_0x442471['t'];this['set']('errorType',null);const _0x352cc3=new _0x13b706(_0x442471);_0x352cc3['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x352cc3['withText']=!0x0,_0x352cc3['class']='ck-button-action',_0x352cc3['on']('execute',()=>{this['fire']('retry');}),_0x352cc3['bind']('isVisible')['to'](this,'errorType',_0x2bc823=>'NotFound'!==_0x2bc823);const _0x158cf6=new _0x354806();_0x158cf6['content']=_0x5108b7,_0x158cf6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x514be3=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':[_0x158cf6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x514be3['to']('errorType',_0x4c95b3=>t('NotFound'!==_0x4c95b3?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x352cc3]},{'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'}]}]}]});}}
@@ -10,7 +10,7 @@ import { View } from 'ckeditor5/src/ui.js';
10
10
  /**
11
11
  * A class representing the form loading view of the Uploadcare image edit feature.
12
12
  */
13
- export default class UploadcareImageEditFormLoadingView extends View {
13
+ export declare class UploadcareImageEditFormLoadingView extends View {
14
14
  /**
15
15
  * The image upload progress.
16
16
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{SpinnerView as _0x570bce,View as _0x3a6a3d}from'ckeditor5/src/ui.js';export default class ta extends _0x3a6a3d{constructor(_0x57de0e){super(_0x57de0e);const t=_0x57de0e['t'],_0x376a71=this['bindTemplate'],_0x34a678=new _0x570bce();_0x34a678['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':[_0x34a678,{'text':_0x376a71['to']('imageUploadProgress',_0x1ae215=>t('Loading\x20image...')+'\x20('+(_0x1ae215||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'}]}]}]});}}
23
+ import{SpinnerView as _0x9e786,View as _0x215e63}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x215e63{constructor(_0x43cfc4){super(_0x43cfc4);const t=_0x43cfc4['t'],_0x3dc3db=this['bindTemplate'],_0x323146=new _0x9e786();_0x323146['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':[_0x323146,{'text':_0x3dc3db['to']('imageUploadProgress',_0x550333=>t('Loading\x20image...')+'\x20('+(_0x550333||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'}]}]}]});}}
@@ -6,14 +6,14 @@
6
6
  * @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformview
7
7
  */
8
8
  import { type Locale } from 'ckeditor5/src/utils.js';
9
- import type UploadcareImageEditController from './uploadcareimageeditcontroller.js';
10
- import DialogFocusManagerView from '../../utils/dialogfocusmanagerview.js';
9
+ import { type UploadcareImageEditController } from './uploadcareimageeditcontroller.js';
10
+ import { DialogFocusManagerView } from '../../utils/dialogfocusmanagerview.js';
11
11
  import type { UploadcareEditorConfig } from '../../uploadcareconfig.js';
12
12
  import '../../../theme/uploadcare-form.css';
13
13
  /**
14
14
  * A class representing the form view of the Uploadcare image edit feature.
15
15
  */
16
- export default class UploadcareImageEditFormView extends DialogFocusManagerView {
16
+ export declare class UploadcareImageEditFormView extends DialogFocusManagerView {
17
17
  /**
18
18
  * Status of the image passed to the view;
19
19
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x35d8b6=_0x4cf1;function _0x471b(){const _0x2d697c=['5107928qNAqdM','_editingView','3189610AXKfsq','add','nodeName','1935052uudsJA','status','fire','_addErrorViewListeners','getFocusableElement','detail','querySelector','toLowerCase','uc-cloud-image-editor','target','4956637QRKqRg','focus','div','_waitForImageEditorComponent','cancel','uploading','disconnect','693252Dpfygo','filter','ck-uploadcare-form','addMany','error','once','clear','cdnUrl','change:status','1yWEnml','_errorView','observe','setTemplate','element','454413aViQKV','ck-reset_all-excluded','_focusableView','_loadingView','_items','addedNodes','ready','229202KalTBj','_addUploadcareImageEditorListeners','set','_setView','length','addEventListener','retry','createCollection','apply','render'];_0x471b=function(){return _0x2d697c;};return _0x471b();}(function(_0x2401b5,_0x202207){const _0x8143f6=_0x4cf1,_0x32da15=_0x2401b5();while(!![]){try{const _0x16d896=-parseInt(_0x8143f6(0x17b))/0x1*(parseInt(_0x8143f6(0x152))/0x2)+parseInt(_0x8143f6(0x180))/0x3+-parseInt(_0x8143f6(0x161))/0x4+-parseInt(_0x8143f6(0x15e))/0x5+parseInt(_0x8143f6(0x172))/0x6+parseInt(_0x8143f6(0x16b))/0x7+parseInt(_0x8143f6(0x15c))/0x8;if(_0x16d896===_0x202207)break;else _0x32da15['push'](_0x32da15['shift']());}catch(_0x1aed71){_0x32da15['push'](_0x32da15['shift']());}}}(_0x471b,0x5c1dd));import{View as _0x585519}from'ckeditor5/src/ui.js';import _0x57260e from'./uploadcareimageeditformloadingview.js';import _0x47b3b0 from'./uploadcareimageeditformerrorview.js';import _0x1ea2e2 from'./uploadcareimageeditformeditingview.js';import _0x1bc3ad from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x4cf1(_0x187f10,_0x1da811){const _0x471bce=_0x471b();return _0x4cf1=function(_0x4cf124,_0x2e86c4){_0x4cf124=_0x4cf124-0x151;let _0x2f5308=_0x471bce[_0x4cf124];return _0x2f5308;},_0x4cf1(_0x187f10,_0x1da811);}export default class Z extends _0x1bc3ad{[_0x35d8b6(0x184)];[_0x35d8b6(0x183)];[_0x35d8b6(0x17c)];[_0x35d8b6(0x15d)];[_0x35d8b6(0x182)];constructor(_0x3397c3,_0x2e7c35,_0x1b22e){const _0x300a67=_0x35d8b6;super(_0x3397c3),this[_0x300a67(0x184)]=this[_0x300a67(0x159)](),this[_0x300a67(0x183)]=new _0x57260e(_0x3397c3),this[_0x300a67(0x17c)]=new _0x47b3b0(_0x3397c3),this[_0x300a67(0x15d)]=new _0x1ea2e2(_0x3397c3,_0x1b22e),this[_0x300a67(0x182)]=new _0x585519(_0x3397c3),this[_0x300a67(0x182)][_0x300a67(0x17e)](this[_0x300a67(0x165)]()),this[_0x300a67(0x154)](_0x300a67(0x162),_0x2e7c35),this[_0x300a67(0x17e)]({'tag':_0x300a67(0x16d),'attributes':{'class':['ck',_0x300a67(0x181),_0x300a67(0x174)],'tabindex':'-1'},'children':this[_0x300a67(0x184)]}),this[_0x300a67(0x155)](),this[_0x300a67(0x177)](_0x300a67(0x15b),()=>{const _0x345f3a=_0x300a67;this[_0x345f3a(0x16e)](this[_0x345f3a(0x17f)],_0x10dc8f=>{const _0x1c5981=_0x345f3a;this[_0x1c5981(0x153)](_0x10dc8f);});}),this['on'](_0x300a67(0x17a),()=>{const _0x4c4a96=_0x300a67;this[_0x4c4a96(0x155)]();}),this[_0x300a67(0x164)]();}[_0x35d8b6(0x16c)](){const _0x4a0321=_0x35d8b6;this[_0x4a0321(0x17f)][_0x4a0321(0x16c)]();}[_0x35d8b6(0x155)](){const _0x6cb142=_0x35d8b6;switch(this[_0x6cb142(0x184)][_0x6cb142(0x178)](),this[_0x6cb142(0x162)]){case _0x6cb142(0x170):this[_0x6cb142(0x184)][_0x6cb142(0x15f)](this[_0x6cb142(0x183)]);break;case _0x6cb142(0x176):this[_0x6cb142(0x184)][_0x6cb142(0x15f)](this[_0x6cb142(0x17c)]);break;case _0x6cb142(0x151):this[_0x6cb142(0x184)][_0x6cb142(0x175)]([this[_0x6cb142(0x15d)],this[_0x6cb142(0x182)]]);}}[_0x35d8b6(0x16e)](_0x75626e,_0x3a1089){const _0x48baaa=_0x35d8b6,_0x4eb2ea=_0x48baaa(0x169),_0x1a83a1=_0x75626e[_0x48baaa(0x167)](_0x4eb2ea);if(_0x1a83a1)return _0x3a1089(_0x1a83a1);const _0x196f7b=new MutationObserver(_0x29eb8d=>{const _0x3b119e=_0x48baaa,_0x2b9713=_0x29eb8d[_0x3b119e(0x173)](_0x4e1090=>_0x4e1090[_0x3b119e(0x16a)]===_0x75626e&&_0x4e1090[_0x3b119e(0x185)][_0x3b119e(0x156)]>0x0&&_0x4e1090[_0x3b119e(0x185)][0x0][_0x3b119e(0x160)][_0x3b119e(0x168)]()===_0x4eb2ea);_0x2b9713[_0x3b119e(0x156)]&&(_0x196f7b[_0x3b119e(0x171)](),_0x3a1089(_0x2b9713[0x0][_0x3b119e(0x185)][0x0]));});_0x196f7b[_0x48baaa(0x17d)](_0x75626e,{'childList':!0x0,'subtree':!0x0});}[_0x35d8b6(0x153)](_0x519e68){const _0x49a210=_0x35d8b6;_0x519e68[_0x49a210(0x157)](_0x49a210(0x15a),_0x3aa602=>{const _0x5e447a=_0x49a210;this[_0x5e447a(0x163)](_0x5e447a(0x15a),{'imageSrc':_0x3aa602[_0x5e447a(0x166)][_0x5e447a(0x179)]});}),_0x519e68[_0x49a210(0x157)](_0x49a210(0x16f),()=>{const _0x302cd6=_0x49a210;this[_0x302cd6(0x163)](_0x302cd6(0x16f));});}[_0x35d8b6(0x164)](){const _0x32f465=_0x35d8b6;this[_0x32f465(0x17c)]['on'](_0x32f465(0x158),()=>{const _0x5e9cee=_0x32f465;this[_0x5e9cee(0x163)](_0x5e9cee(0x158));});}}
23
+ const _0x59a6fc=_0x52f3;(function(_0x7edc9a,_0x1d7ed5){const _0x40cd6d=_0x52f3,_0x49d185=_0x7edc9a();while(!![]){try{const _0x229b36=parseInt(_0x40cd6d(0x131))/0x1+parseInt(_0x40cd6d(0x135))/0x2+-parseInt(_0x40cd6d(0x120))/0x3+parseInt(_0x40cd6d(0x124))/0x4+-parseInt(_0x40cd6d(0x12c))/0x5+-parseInt(_0x40cd6d(0x14b))/0x6*(parseInt(_0x40cd6d(0x143))/0x7)+parseInt(_0x40cd6d(0x125))/0x8;if(_0x229b36===_0x1d7ed5)break;else _0x49d185['push'](_0x49d185['shift']());}catch(_0x30d9ed){_0x49d185['push'](_0x49d185['shift']());}}}(_0x42e0,0x4172d));function _0x52f3(_0x326242,_0x55c888){const _0x42e04d=_0x42e0();return _0x52f3=function(_0x52f365,_0x194d76){_0x52f365=_0x52f365-0x11d;let _0x1dfb5d=_0x42e04d[_0x52f365];return _0x1dfb5d;},_0x52f3(_0x326242,_0x55c888);}import{View as _0x679a8a}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x7d78ed}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x28963c}from'./uploadcareimageeditformerrorview.js';function _0x42e0(){const _0x5c999b=['ck-uploadcare-form','_setView','getFocusableElement','_waitForImageEditorComponent','_focusableView','detail','setTemplate','_errorView','once','448566vCrCvT','render','clear','focus','136012TUNJRJ','6396760QUEHKA','status','nodeName','_editingView','querySelector','ready','filter','2463250PYMkTw','_items','target','length','cancel','299594sgKcdv','set','createCollection','_addUploadcareImageEditorListeners','600478wweqcl','apply','_addErrorViewListeners','change:status','addedNodes','error','addMany','disconnect','element','fire','uc-cloud-image-editor','addEventListener','observe','uploading','110978hvQEKJ','add','ck-reset_all-excluded','cdnUrl','div','_loadingView','retry','toLowerCase','198edhmOp'];_0x42e0=function(){return _0x5c999b;};return _0x42e0();}import{UploadcareImageEditFormEditingView as _0xf2be65}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x2d658d}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x2d658d{[_0x59a6fc(0x12d)];[_0x59a6fc(0x148)];[_0x59a6fc(0x11e)];[_0x59a6fc(0x128)];[_0x59a6fc(0x150)];constructor(_0x10f9a9,_0x1384a0,_0x4a8b97){const _0x413b87=_0x59a6fc;super(_0x10f9a9),this[_0x413b87(0x12d)]=this[_0x413b87(0x133)](),this[_0x413b87(0x148)]=new _0x7d78ed(_0x10f9a9),this[_0x413b87(0x11e)]=new _0x28963c(_0x10f9a9),this[_0x413b87(0x128)]=new _0xf2be65(_0x10f9a9,_0x4a8b97),this[_0x413b87(0x150)]=new _0x679a8a(_0x10f9a9),this[_0x413b87(0x150)][_0x413b87(0x11d)](this[_0x413b87(0x14e)]()),this[_0x413b87(0x132)](_0x413b87(0x126),_0x1384a0),this[_0x413b87(0x11d)]({'tag':_0x413b87(0x147),'attributes':{'class':['ck',_0x413b87(0x145),_0x413b87(0x14c)],'tabindex':'-1'},'children':this[_0x413b87(0x12d)]}),this[_0x413b87(0x14d)](),this[_0x413b87(0x11f)](_0x413b87(0x121),()=>{const _0x3d3714=_0x413b87;this[_0x3d3714(0x14f)](this[_0x3d3714(0x13d)],_0x43c4bf=>{const _0x2a2a23=_0x3d3714;this[_0x2a2a23(0x134)](_0x43c4bf);});}),this['on'](_0x413b87(0x138),()=>{const _0x330250=_0x413b87;this[_0x330250(0x14d)]();}),this[_0x413b87(0x137)]();}[_0x59a6fc(0x123)](){const _0x9d7244=_0x59a6fc;this[_0x9d7244(0x13d)][_0x9d7244(0x123)]();}[_0x59a6fc(0x14d)](){const _0x3dc901=_0x59a6fc;switch(this[_0x3dc901(0x12d)][_0x3dc901(0x122)](),this[_0x3dc901(0x126)]){case _0x3dc901(0x142):this[_0x3dc901(0x12d)][_0x3dc901(0x144)](this[_0x3dc901(0x148)]);break;case _0x3dc901(0x13a):this[_0x3dc901(0x12d)][_0x3dc901(0x144)](this[_0x3dc901(0x11e)]);break;case _0x3dc901(0x12a):this[_0x3dc901(0x12d)][_0x3dc901(0x13b)]([this[_0x3dc901(0x128)],this[_0x3dc901(0x150)]]);}}[_0x59a6fc(0x14f)](_0x134465,_0x43c299){const _0x4070cc=_0x59a6fc,_0x506d04=_0x4070cc(0x13f),_0x87a986=_0x134465[_0x4070cc(0x129)](_0x506d04);if(_0x87a986)return _0x43c299(_0x87a986);const _0x292e59=new MutationObserver(_0xbbb66c=>{const _0x20ecc3=_0x4070cc,_0x424e0c=_0xbbb66c[_0x20ecc3(0x12b)](_0x199aae=>_0x199aae[_0x20ecc3(0x12e)]===_0x134465&&_0x199aae[_0x20ecc3(0x139)][_0x20ecc3(0x12f)]>0x0&&_0x199aae[_0x20ecc3(0x139)][0x0][_0x20ecc3(0x127)][_0x20ecc3(0x14a)]()===_0x506d04);_0x424e0c[_0x20ecc3(0x12f)]&&(_0x292e59[_0x20ecc3(0x13c)](),_0x43c299(_0x424e0c[0x0][_0x20ecc3(0x139)][0x0]));});_0x292e59[_0x4070cc(0x141)](_0x134465,{'childList':!0x0,'subtree':!0x0});}[_0x59a6fc(0x134)](_0x52148c){const _0x1fc033=_0x59a6fc;_0x52148c[_0x1fc033(0x140)](_0x1fc033(0x136),_0x241891=>{const _0x59432d=_0x1fc033;this[_0x59432d(0x13e)](_0x59432d(0x136),{'imageSrc':_0x241891[_0x59432d(0x151)][_0x59432d(0x146)]});}),_0x52148c[_0x1fc033(0x140)](_0x1fc033(0x130),()=>{const _0x5cf331=_0x1fc033;this[_0x5cf331(0x13e)](_0x5cf331(0x130));});}[_0x59a6fc(0x137)](){const _0x4f7bd9=_0x59a6fc;this[_0x4f7bd9(0x11e)]['on'](_0x4f7bd9(0x149),()=>{const _0x3f5847=_0x4f7bd9;this[_0x3f5847(0x13e)](_0x3f5847(0x149));});}}
@@ -8,7 +8,7 @@
8
8
  */
9
9
  import { Command, type Editor } from 'ckeditor5/src/core.js';
10
10
  import { Dialog } from 'ckeditor5/src/ui.js';
11
- import UploadcareImageEditController from './ui/uploadcareimageeditcontroller.js';
11
+ import { UploadcareImageEditController } from './ui/uploadcareimageeditcontroller.js';
12
12
  /**
13
13
  * The Uploadcare edit image command.
14
14
  *
@@ -18,7 +18,7 @@ import UploadcareImageEditController from './ui/uploadcareimageeditcontroller.js
18
18
  * editor.execute( 'uploadcareImageEdit' );
19
19
  * ```
20
20
  */
21
- export default class UploadcareImageEditCommand extends Command {
21
+ export declare class UploadcareImageEditCommand extends Command {
22
22
  /**
23
23
  * Whenever the controller is active and dialog UI visible.
24
24
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x128991=_0x11a1;(function(_0xd3f7c2,_0x457452){const _0x7da2f8=_0x11a1,_0x42477d=_0xd3f7c2();while(!![]){try{const _0x20e290=parseInt(_0x7da2f8(0xb5))/0x1+parseInt(_0x7da2f8(0xb6))/0x2+parseInt(_0x7da2f8(0xa8))/0x3*(-parseInt(_0x7da2f8(0xa9))/0x4)+-parseInt(_0x7da2f8(0xbe))/0x5+parseInt(_0x7da2f8(0xb3))/0x6+parseInt(_0x7da2f8(0xa2))/0x7+-parseInt(_0x7da2f8(0xb2))/0x8*(-parseInt(_0x7da2f8(0xbc))/0x9);if(_0x20e290===_0x457452)break;else _0x42477d['push'](_0x42477d['shift']());}catch(_0x172cc0){_0x42477d['push'](_0x42477d['shift']());}}}(_0x4383,0xb0605));import{Command as _0xb991c4}from'ckeditor5/src/core.js';function _0x11a1(_0x1aed54,_0x4c191c){const _0x43830d=_0x4383();return _0x11a1=function(_0x11a11c,_0x4c6c37){_0x11a11c=_0x11a11c-0xa2;let _0x79dd51=_0x43830d[_0x11a11c];return _0x79dd51;},_0x11a1(_0x1aed54,_0x4c191c);}import{Dialog as _0x54d3d2}from'ckeditor5/src/ui.js';import _0x44ad55 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x4d5377}from'../utils/editingutils.js';export default class J extends _0xb991c4{[_0x128991(0xad)];static get[_0x128991(0xa7)](){return[_0x54d3d2];}[_0x128991(0xba)];constructor(_0x2455ca){const _0x982803=_0x128991;super(_0x2455ca),this[_0x982803(0xad)]=void 0x0,this[_0x982803(0xba)]=_0x4d5377(_0x2455ca[_0x982803(0xb7)][_0x982803(0xa4)](_0x982803(0xab))||[]),this[_0x982803(0xac)]({'isActive':!0x1});}[_0x128991(0xbb)](){const _0x1d0e4f=_0x128991,_0x5d8eea=this[_0x1d0e4f(0xb9)][_0x1d0e4f(0xaa)][_0x1d0e4f(0xbd)][_0x1d0e4f(0xb0)][_0x1d0e4f(0xae)]();this[_0x1d0e4f(0xaf)]=this[_0x1d0e4f(0xba)](_0x5d8eea);}[_0x128991(0xa6)](){const _0x42c1ce=_0x128991;this[_0x42c1ce(0xad)]&&(this[_0x42c1ce(0xa3)](_0x42c1ce(0xbf)),this[_0x42c1ce(0xad)]=void 0x0);const _0x4aa209=this[_0x42c1ce(0xb9)][_0x42c1ce(0xaa)][_0x42c1ce(0xbd)][_0x42c1ce(0xb0)][_0x42c1ce(0xae)]();_0x4aa209&&(_0x4aa209['is'](_0x42c1ce(0xb4),_0x42c1ce(0xa5))||_0x4aa209['is'](_0x42c1ce(0xb4),_0x42c1ce(0xb8)))&&(this[_0x42c1ce(0xad)]=new _0x44ad55(this[_0x42c1ce(0xb9)],this[_0x42c1ce(0xb9)][_0x42c1ce(0xb1)][_0x42c1ce(0xa4)](_0x54d3d2),_0x4aa209),this[_0x42c1ce(0xc0)](_0x42c1ce(0xbf))['to'](this[_0x42c1ce(0xad)],_0x42c1ce(0xbf)));}}function _0x4383(){const _0x5d1ca3=['6124517IDtPRk','unbind','get','imageBlock','execute','requires','3bWGgDo','3947448XrnmVZ','model','uploadcare.allowExternalImagesEditing','set','imageEditController','getSelectedElement','isEnabled','selection','plugins','56608OXUvyD','2545500JePQmQ','element','397687DTtNNU','2451138Lrbmze','config','imageInline','editor','_isEditable','refresh','72NfaVwT','document','6348730IJvvYV','isActive','bind'];_0x4383=function(){return _0x5d1ca3;};return _0x4383();}
23
+ const _0x96f480=_0x3bde;function _0x3bde(_0x36a94a,_0x3684b4){const _0x4f8611=_0x4f86();return _0x3bde=function(_0x3bde36,_0x57c2c8){_0x3bde36=_0x3bde36-0x167;let _0x8bbb5f=_0x4f8611[_0x3bde36];return _0x8bbb5f;},_0x3bde(_0x36a94a,_0x3684b4);}(function(_0x496442,_0x12b38d){const _0x929b37=_0x3bde,_0x5c44a1=_0x496442();while(!![]){try{const _0x23d5af=-parseInt(_0x929b37(0x167))/0x1*(-parseInt(_0x929b37(0x172))/0x2)+parseInt(_0x929b37(0x178))/0x3*(parseInt(_0x929b37(0x184))/0x4)+-parseInt(_0x929b37(0x176))/0x5*(parseInt(_0x929b37(0x177))/0x6)+-parseInt(_0x929b37(0x16d))/0x7*(-parseInt(_0x929b37(0x179))/0x8)+-parseInt(_0x929b37(0x17d))/0x9*(parseInt(_0x929b37(0x16a))/0xa)+-parseInt(_0x929b37(0x182))/0xb*(-parseInt(_0x929b37(0x17b))/0xc)+-parseInt(_0x929b37(0x16f))/0xd;if(_0x23d5af===_0x12b38d)break;else _0x5c44a1['push'](_0x5c44a1['shift']());}catch(_0x307414){_0x5c44a1['push'](_0x5c44a1['shift']());}}}(_0x4f86,0x685f6));function _0x4f86(){const _0x3f2f15=['1090tlAFdN','uploadcare.allowExternalImagesEditing','element','195503iJpXso','set','8299811XIKjLO','execute','imageBlock','6866HRjPmK','plugins','refresh','isEnabled','800245pNsNIC','6CDHopp','3MAbnPl','96LgDazJ','imageInline','2196XLrrya','model','35289sTQysx','editor','getSelectedElement','isActive','requires','24299yjhcrg','document','950796PCXcay','selection','_isEditable','get','unbind','imageEditController','197jgfUcs','config','bind'];_0x4f86=function(){return _0x3f2f15;};return _0x4f86();}import{Command as _0x5d33a2}from'ckeditor5/src/core.js';import{Dialog as _0x2456e9}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x1f0231}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x370009}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x5d33a2{[_0x96f480(0x189)];static get[_0x96f480(0x181)](){return[_0x2456e9];}[_0x96f480(0x186)];constructor(_0x5640cf){const _0x46969b=_0x96f480;super(_0x5640cf),this[_0x46969b(0x189)]=void 0x0,this[_0x46969b(0x186)]=_0x370009(_0x5640cf[_0x46969b(0x168)][_0x46969b(0x187)](_0x46969b(0x16b))||[]),this[_0x46969b(0x16e)]({'isActive':!0x1});}[_0x96f480(0x174)](){const _0x32caef=_0x96f480,_0x24c0a=this[_0x32caef(0x17e)][_0x32caef(0x17c)][_0x32caef(0x183)][_0x32caef(0x185)][_0x32caef(0x17f)]();this[_0x32caef(0x175)]=this[_0x32caef(0x186)](_0x24c0a);}[_0x96f480(0x170)](){const _0x1974b4=_0x96f480;this[_0x1974b4(0x189)]&&(this[_0x1974b4(0x188)](_0x1974b4(0x180)),this[_0x1974b4(0x189)]=void 0x0);const _0x2eec5c=this[_0x1974b4(0x17e)][_0x1974b4(0x17c)][_0x1974b4(0x183)][_0x1974b4(0x185)][_0x1974b4(0x17f)]();_0x2eec5c&&(_0x2eec5c['is'](_0x1974b4(0x16c),_0x1974b4(0x171))||_0x2eec5c['is'](_0x1974b4(0x16c),_0x1974b4(0x17a)))&&(this[_0x1974b4(0x189)]=new _0x1f0231(this[_0x1974b4(0x17e)],this[_0x1974b4(0x17e)][_0x1974b4(0x173)][_0x1974b4(0x187)](_0x2456e9),_0x2eec5c),this[_0x1974b4(0x169)](_0x1974b4(0x180))['to'](this[_0x1974b4(0x189)],_0x1974b4(0x180)));}}
@@ -8,13 +8,13 @@
8
8
  */
9
9
  import { Plugin } from 'ckeditor5/src/core.js';
10
10
  import { Notification } from 'ckeditor5/src/ui.js';
11
- import UploadcareEditing from '../uploadcareediting.js';
11
+ import { UploadcareEditing } from '../uploadcareediting.js';
12
12
  /**
13
13
  * The Uploadcare image editing plugin.
14
14
  *
15
15
  * It complements the {@link module:uploadcare/uploadcare~Uploadcare Uploadcare feature} by adding editing capabilities for uploaded images.
16
16
  */
17
- export default class UploadcareImageEditEditing extends Plugin {
17
+ export declare class UploadcareImageEditEditing extends Plugin {
18
18
  /**
19
19
  * @inheritDoc
20
20
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1033b8=_0x4898;(function(_0x3aae6f,_0x401ca2){const _0x2a1cd7=_0x4898,_0xe87ce4=_0x3aae6f();while(!![]){try{const _0x3b9d0d=-parseInt(_0x2a1cd7(0x185))/0x1*(parseInt(_0x2a1cd7(0x18c))/0x2)+parseInt(_0x2a1cd7(0x186))/0x3+parseInt(_0x2a1cd7(0x193))/0x4*(-parseInt(_0x2a1cd7(0x191))/0x5)+parseInt(_0x2a1cd7(0x188))/0x6*(-parseInt(_0x2a1cd7(0x18d))/0x7)+-parseInt(_0x2a1cd7(0x17b))/0x8*(-parseInt(_0x2a1cd7(0x18b))/0x9)+parseInt(_0x2a1cd7(0x189))/0xa*(-parseInt(_0x2a1cd7(0x17d))/0xb)+-parseInt(_0x2a1cd7(0x18e))/0xc*(-parseInt(_0x2a1cd7(0x182))/0xd);if(_0x3b9d0d===_0x401ca2)break;else _0xe87ce4['push'](_0xe87ce4['shift']());}catch(_0x47380a){_0xe87ce4['push'](_0xe87ce4['shift']());}}}(_0x3489,0x51234));import{Plugin as _0x294cd6}from'ckeditor5/src/core.js';function _0x4898(_0x529328,_0x4850d7){const _0x3489cd=_0x3489();return _0x4898=function(_0x489889,_0xed1c0c){_0x489889=_0x489889-0x17b;let _0x4d6a75=_0x3489cd[_0x489889];return _0x4d6a75;},_0x4898(_0x529328,_0x4850d7);}import{Notification as _0x2b8725}from'ckeditor5/src/ui.js';import _0x3b487f from'./uploadcareimageeditcommand.js';function _0x3489(){const _0x100676=['uploadcareImageReplace','ImageUtils','91bLIjPH','ImageEditing','pluginName','3ngFnLv','364539wgxMjy','isPremiumPlugin','241782yvmRVs','770FvoTeX','requires','3586104bOVeZD','234008bfirzj','63wRCHic','1911264vAnLwb','isOfficialPlugin','UploadcareImageEditEditing','9195afRKnj','init','1048swqweg','8IdXpWy','uploadcareImageEdit','15290SPxTpJ','add','commands'];_0x3489=function(){return _0x100676;};return _0x3489();}import _0x2b0834 from'./uploadcareimagereplacecommand.js';import _0xcacfc1 from'../uploadcareediting.js';export default class g extends _0x294cd6{static get[_0x1033b8(0x184)](){const _0x90435=_0x1033b8;return _0x90435(0x190);}static get[_0x1033b8(0x18a)](){const _0x3ad054=_0x1033b8;return[_0xcacfc1,_0x2b8725,_0x3ad054(0x181),_0x3ad054(0x183)];}static get[_0x1033b8(0x18f)](){return!0x0;}static get[_0x1033b8(0x187)](){return!0x0;}[_0x1033b8(0x192)](){const _0x39ab9f=_0x1033b8,{editor:_0x4ffc05}=this;_0x4ffc05[_0x39ab9f(0x17f)][_0x39ab9f(0x17e)](_0x39ab9f(0x17c),new _0x3b487f(_0x4ffc05)),_0x4ffc05[_0x39ab9f(0x17f)][_0x39ab9f(0x17e)](_0x39ab9f(0x180),new _0x2b0834(_0x4ffc05));}}
23
+ function _0x1117(_0x50e7b1,_0x387aa0){const _0xd4a88d=_0xd4a8();return _0x1117=function(_0x1117f0,_0x525776){_0x1117f0=_0x1117f0-0x91;let _0x72a325=_0xd4a88d[_0x1117f0];return _0x72a325;},_0x1117(_0x50e7b1,_0x387aa0);}function _0xd4a8(){const _0x396f18=['ImageEditing','isPremiumPlugin','ImageUtils','1318980YXsLrC','8WhHfiT','2048080MmELTG','isOfficialPlugin','9881662nFfkbt','commands','uploadcareImageEdit','requires','pluginName','457920ReTjXR','init','UploadcareImageEditEditing','uploadcareImageReplace','add','2346124TtQchz','3347130nvHkcf','842991fOkZrw'];_0xd4a8=function(){return _0x396f18;};return _0xd4a8();}const _0x175ea0=_0x1117;(function(_0x31c622,_0xbf93ec){const _0x1dc59c=_0x1117,_0x59b16a=_0x31c622();while(!![]){try{const _0x3e91fb=-parseInt(_0x1dc59c(0x9a))/0x1+parseInt(_0x1dc59c(0x91))/0x2+parseInt(_0x1dc59c(0xa1))/0x3+-parseInt(_0x1dc59c(0x9f))/0x4+-parseInt(_0x1dc59c(0x93))/0x5+-parseInt(_0x1dc59c(0xa0))/0x6+-parseInt(_0x1dc59c(0x95))/0x7*(-parseInt(_0x1dc59c(0x92))/0x8);if(_0x3e91fb===_0xbf93ec)break;else _0x59b16a['push'](_0x59b16a['shift']());}catch(_0x2c1056){_0x59b16a['push'](_0x59b16a['shift']());}}}(_0xd4a8,0x53107));import{Plugin as _0x45ba1d}from'ckeditor5/src/core.js';import{Notification as _0x50b0f6}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x4d4f3e}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x2a148a}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x2e27ba}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x45ba1d{static get[_0x175ea0(0x99)](){const _0x45dfbb=_0x175ea0;return _0x45dfbb(0x9c);}static get[_0x175ea0(0x98)](){const _0x56eda2=_0x175ea0;return[_0x2e27ba,_0x50b0f6,_0x56eda2(0xa4),_0x56eda2(0xa2)];}static get[_0x175ea0(0x94)](){return!0x0;}static get[_0x175ea0(0xa3)](){return!0x0;}[_0x175ea0(0x9b)](){const _0x3ea663=_0x175ea0,{editor:_0x53c7bd}=this;_0x53c7bd[_0x3ea663(0x96)][_0x3ea663(0x9e)](_0x3ea663(0x97),new _0x4d4f3e(_0x53c7bd)),_0x53c7bd[_0x3ea663(0x96)][_0x3ea663(0x9e)](_0x3ea663(0x9d),new _0x2a148a(_0x53c7bd));}}