@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251113.0 → 0.0.0-nightly-20251114.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/build/uploadcare.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +9 -9
  150. package/src/index.js +1 -1
  151. package/src/ui/uploadcarecontroller.js +2 -2
  152. package/src/ui/uploadcareformview.js +1 -1
  153. package/src/uploadcare.js +1 -1
  154. package/src/uploadcarecommand.js +1 -1
  155. package/src/uploadcareconfig.js +1 -1
  156. package/src/uploadcareediting.js +1 -1
  157. package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
  158. package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
  159. package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
  160. package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
  161. package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
  162. package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
  163. package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
  164. package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
  165. package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
  166. package/src/uploadcareimageedit.js +1 -1
  167. package/src/uploadcareui.js +1 -1
  168. package/src/uploadcareuploadadapter.js +1 -1
  169. package/src/utils/common-translations.js +1 -1
  170. package/src/utils/dialogfocusmanagerview.js +1 -1
  171. package/src/utils/editingutils.js +1 -1
  172. package/src/utils/isancestor.js +1 -1
  173. package/src/utils/uploadutils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x35039f=_0x445c;(function(_0x209969,_0xcb8949){const _0x3c8022=_0x445c,_0x3c71e7=_0x209969();while(!![]){try{const _0x1b1369=-parseInt(_0x3c8022(0x1ea))/0x1+-parseInt(_0x3c8022(0x227))/0x2*(-parseInt(_0x3c8022(0x1f9))/0x3)+parseInt(_0x3c8022(0x224))/0x4+-parseInt(_0x3c8022(0x221))/0x5*(-parseInt(_0x3c8022(0x212))/0x6)+parseInt(_0x3c8022(0x202))/0x7+-parseInt(_0x3c8022(0x232))/0x8*(parseInt(_0x3c8022(0x1f2))/0x9)+-parseInt(_0x3c8022(0x209))/0xa;if(_0x1b1369===_0xcb8949)break;else _0x3c71e7['push'](_0x3c71e7['shift']());}catch(_0x2f0efc){_0x3c71e7['push'](_0x3c71e7['shift']());}}}(_0x2e36,0x4e6a0));function _0x2e36(){const _0xfd6317=['render','body','init','join','68082jMrhcH','for','imageBlock','destroy','isRegistered','_initCtx','replaceImageSource','ctxElement','href','appendChild','_initSchema','iconHrefResolver','elementToAttribute','model','config','40skGgaJ','get','removeAttribute','1090872scSCNd','data-uc-image-id','fromCharCode','964eiyYtb','_ctxElement','querySelector','_initImageProcessingIndicator','editor','uploader-','selection','remove','uc-upload-ctx-provider','afterInit','listenTo','8OvqVGD','_initConversion','ucContextId','uploadcare.pubkey','map','cleanupImage','contentLanguage','UploadcareEditing','add','commands','upcast','downcast','uploadcareImageReplace','90114wRAhSw','editing','uploadcare','uploadcare.uploader','imageInline','PictureEditing','#uc-icon-arrow-down','pluginName','678492xYMlJb','locale','_initConfig','schema','true','getSelectedElement','once','1347mmHqed','execute','getAttribute','closeMax','isOfficialPlugin','view','insertImage','\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','configElement','1110417DHMjGk','input[uploadcare-file-input]','document','isPremiumPlugin','attributeToAttribute','extend','uc-config','2518570hXQWyt','conversion','uploadcareImageId','requires','_configElement'];_0x2e36=function(){return _0xfd6317;};return _0x2e36();}import{Plugin as _0x34632b}from'ckeditor5/src/core.js';import{Dialog as _0x107d38}from'ckeditor5/src/ui.js';import{createElement as _0x3ef7b2,global as _0x853989,uid as _0x3f25dd}from'ckeditor5/src/utils.js';function _0x445c(_0x273b39,_0x577551){const _0x2e363a=_0x2e36();return _0x445c=function(_0x445cd5,_0x3669f7){_0x445cd5=_0x445cd5-0x1df;let _0x53bb09=_0x2e363a[_0x445cd5];return _0x53bb09;},_0x445c(_0x273b39,_0x577551);}import{UploadcareCommand as _0x3b600d}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x4f2856}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xdb944b}from'./utils/editingutils.js';export class UploadcareEditing extends _0x34632b{[_0x35039f(0x20d)]=null;[_0x35039f(0x228)]=null;static get[_0x35039f(0x1f1)](){const _0x2b885a=_0x35039f;return _0x2b885a(0x1e4);}static get[_0x35039f(0x20c)](){const _0x46556=_0x35039f;return[_0x46556(0x1ef),_0x4f2856,_0x107d38];}static get[_0x35039f(0x1fd)](){return!0x0;}static get[_0x35039f(0x205)](){return!0x0;}[_0x35039f(0x1df)];get[_0x35039f(0x201)](){const _0x2c11b7=_0x35039f;return this[_0x2c11b7(0x20d)];}get[_0x35039f(0x219)](){const _0x2c351a=_0x35039f;return this[_0x2c351a(0x228)];}constructor(_0x34c3af){const _0x25b0f1=_0x35039f;super(_0x34c3af),this[_0x25b0f1(0x1df)]=_0x3f25dd();}[_0x35039f(0x210)](){const _0x3e3d74=_0x35039f,_0x452706=this[_0x3e3d74(0x22b)];_0x452706[_0x3e3d74(0x1e6)][_0x3e3d74(0x1e5)](_0x3e3d74(0x1ec),new _0x3b600d(_0x452706));}[_0x35039f(0x230)](){const _0x51f13b=_0x35039f;this[_0x51f13b(0x21c)](),this[_0x51f13b(0x233)](),this[_0x51f13b(0x1f4)](),this[_0x51f13b(0x217)](),this[_0x51f13b(0x22a)](),this[_0x51f13b(0x231)](this[_0x51f13b(0x22b)],_0x51f13b(0x215),()=>{const _0xc712b=_0x51f13b;this[_0xc712b(0x20d)]&&(this[_0xc712b(0x20d)][_0xc712b(0x22e)](),this[_0xc712b(0x20d)]=null),this[_0xc712b(0x228)]&&(this[_0xc712b(0x228)][_0xc712b(0x22e)](),this[_0xc712b(0x228)]=null);const _0x19ad5b=_0x853989[_0xc712b(0x204)][_0xc712b(0x229)](_0xc712b(0x203));_0x19ad5b&&_0x19ad5b[_0xc712b(0x22e)]();}),async function(_0x300b4f){const _0x3c291c=_0x5ba787([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x40c80f=0x535f8c3a,_0x52556f=0x5358f4c2^_0x40c80f,_0x491921=window[_0x5ba787([0x44,0x61,0x74,0x65])][_0x5ba787([0x6e,0x6f,0x77])](),_0x3f4c95=_0x300b4f[_0x5ba787([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x52e15f=new window[(_0x5ba787([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x327f6a=>{_0x3f4c95[_0x5ba787([0x6f,0x6e,0x63,0x65])](_0x5ba787([0x72,0x65,0x61,0x64,0x79]),_0x327f6a);}),_0xa5c187={[_0x5ba787([0x6b,0x74,0x79])]:_0x5ba787([0x45,0x43]),[_0x5ba787([0x75,0x73,0x65])]:_0x5ba787([0x73,0x69,0x67]),[_0x5ba787([0x63,0x72,0x76])]:_0x5ba787([0x50,0x2d,0x32,0x35,0x36]),[_0x5ba787([0x78])]:_0x5ba787([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]),[_0x5ba787([0x79])]:_0x5ba787([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]),[_0x5ba787([0x61,0x6c,0x67])]:_0x5ba787([0x45,0x53,0x32,0x35,0x36])},_0x1eab89=_0x3f4c95[_0x5ba787([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5ba787([0x67,0x65,0x74])](_0x5ba787([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x483138(){let _0x2ae58b,_0x34da8a=null,_0x54bb54=null;try{if(_0x1eab89==_0x5ba787([0x47,0x50,0x4c]))return _0x5ba787([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2ae58b=_0x46ab37(),!_0x2ae58b)return _0x5ba787([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2ae58b[_0x5ba787([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x54bb54=_0x160b26(_0x2ae58b[_0x5ba787([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2ae58b[_0x5ba787([0x6a,0x74,0x69])])),await _0x2decd9()?_0x1edc62()?_0x8fb0a2()?_0x5ba787([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x416b44()?(_0x2ae58b[_0x5ba787([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ba787([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x34da8a=_0x22e784(_0x5ba787([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2ae58b[_0x5ba787([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ba787([0x74,0x72,0x69,0x61,0x6c])&&(_0x34da8a=_0x22e784(_0x5ba787([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x120317()):_0x5ba787([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5ba787([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5ba787([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5ba787([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x8fb0a2(){const _0x226a2a=[_0x5ba787([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5ba787([0x74,0x72,0x69,0x61,0x6c])][_0x5ba787([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ae58b[_0x5ba787([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x491921/0x3e8:0xe10*_0x52556f;return _0x2ae58b[_0x5ba787([0x65,0x78,0x70])]<_0x226a2a;}function _0x1edc62(){const _0x3d4c2e=_0x2ae58b[_0x5ba787([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3d4c2e&&(!!_0x3d4c2e[_0x5ba787([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ba787([0x2a]))||!!_0x3d4c2e[_0x5ba787([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ba787([0x55,0x50,0x4c,0x43])));}function _0x416b44(){const _0x5c053e=_0x445c,_0x5c9632=_0x2ae58b[_0x5ba787([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5c9632||0x0==_0x5c9632[_0x5ba787([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2b8d2b}=new URL(window[_0x5ba787([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5c053e(0x21a)]);if(_0x5c9632[_0x5ba787([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b8d2b))return!0x0;const _0x1a0a1e=_0x2b8d2b[_0x5ba787([0x73,0x70,0x6c,0x69,0x74])](_0x5ba787([0x2e]));return _0x5c9632[_0x5ba787([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a7796=>_0x1a7796[_0x5ba787([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ba787([0x2a])))[_0x5ba787([0x6d,0x61,0x70])](_0x4dcf47=>_0x4dcf47[_0x5ba787([0x73,0x70,0x6c,0x69,0x74])](_0x5ba787([0x2e])))[_0x5ba787([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x57377a=>_0x57377a[_0x5ba787([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1a0a1e[_0x5ba787([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ba787([0x6d,0x61,0x70])](_0x2b7c38=>Array(_0x1a0a1e[_0x5ba787([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2b7c38[_0x5ba787([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ba787([0x66,0x69,0x6c,0x6c])](_0x2b7c38[0x0]===_0x5ba787([0x2a])?_0x5ba787([0x2a]):'')[_0x5ba787([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2b7c38))[_0x5ba787([0x73,0x6f,0x6d,0x65])](_0x3d0638=>_0x1a0a1e[_0x5ba787([0x65,0x76,0x65,0x72,0x79])]((_0xd73610,_0x5baabd)=>_0x3d0638[_0x5baabd]===_0xd73610||_0x3d0638[_0x5baabd]===_0x5ba787([0x2a])));}function _0x120317(){return _0x34da8a&&_0x54bb54?new window[(_0x5ba787([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xbdf973,_0x38c01f)=>{_0x34da8a[_0x5ba787([0x74,0x68,0x65,0x6e])](_0xbdf973,_0x38c01f),_0x54bb54[_0x5ba787([0x74,0x68,0x65,0x6e])](_0x19597a=>{_0x19597a!=_0x5ba787([0x56,0x61,0x6c,0x69,0x64])&&_0xbdf973(_0x19597a);},_0x38c01f);}):_0x34da8a||_0x54bb54||_0x5ba787([0x56,0x61,0x6c,0x69,0x64]);}}function _0x160b26(_0x238764,_0x422de8){return new window[(_0x5ba787([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x221d6e=>{if(_0x50abf8())return _0x221d6e(_0x5ba787([0x56,0x61,0x6c,0x69,0x64]));_0x511a8e(),_0x3f4c95[_0x5ba787([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5ba787([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1ce5a0=!0x1;const _0x10b50a=_0x3f25dd();function _0x1ba473(_0x3bc37e){return!!_0x3bc37e&&(typeof _0x3bc37e===_0x5ba787([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3bc37e===_0x5ba787([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3bc37e[_0x5ba787([0x74,0x68,0x65,0x6e])]===_0x5ba787([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3bc37e[_0x5ba787([0x63,0x61,0x74,0x63,0x68])]===_0x5ba787([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x29ab2c(_0x2c6bdc){_0xe23493(_0x2c6bdc)[_0x5ba787([0x74,0x68,0x65,0x6e])](_0x5e9425=>{if(!_0x5e9425||_0x5e9425[_0x5ba787([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5ba787([0x6f,0x6b]))return _0x5ba787([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1387bc(_0x1990b9(_0x10b50a+_0x422de8))!=_0x5e9425[_0x5ba787([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5ba787([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5ba787([0x56,0x61,0x6c,0x69,0x64]);})[_0x5ba787([0x74,0x68,0x65,0x6e])](_0x5684ce=>(_0xf58286(),_0x5684ce),()=>{const _0x437653=_0x8e6c9a();return null==_0x437653?(_0xf58286(),_0x5ba787([0x56,0x61,0x6c,0x69,0x64])):_0x5ba787(_0x491921-_0x437653>(0x7753083a^_0x40c80f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5ba787([0x74,0x68,0x65,0x6e])](_0x221d6e)[_0x5ba787([0x63,0x61,0x74,0x63,0x68])](()=>{_0x221d6e(_0x5ba787([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x23df5c=0x536962ba^_0x40c80f;function _0xf58286(){const _0x15d363=_0x5ba787([0x6c,0x6c,0x63,0x74,0x2d])+_0x1387bc(_0x1990b9(_0x238764)),_0x504cf1=_0x4d304a(_0x1387bc(window[_0x5ba787([0x4d,0x61,0x74,0x68])][_0x5ba787([0x63,0x65,0x69,0x6c])](_0x491921/_0x23df5c)));window[_0x5ba787([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ba787([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15d363,_0x504cf1);}function _0x8e6c9a(){const _0xa70974=_0x5ba787([0x6c,0x6c,0x63,0x74,0x2d])+_0x1387bc(_0x1990b9(_0x238764)),_0x231066=window[_0x5ba787([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ba787([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa70974);return _0x231066?window[_0x5ba787([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d304a(_0x231066),0x10)*_0x23df5c:null;}function _0xe23493(_0x4ce80d){return new window[(_0x5ba787([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3bb18c,_0x523147)=>{_0x4ce80d[_0x5ba787([0x74,0x68,0x65,0x6e])](_0x3bb18c,_0x523147),window[_0x5ba787([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x523147,0x535e58fa^_0x40c80f);});}}_0x3f4c95[_0x5ba787([0x6f,0x6e])](_0x5ba787([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x255ee6,_0x30e702)=>{if(_0x30e702[0x0]!=_0x238764)return _0x221d6e(_0x5ba787([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x30e702[0x1]={..._0x30e702[0x1],[_0x5ba787([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x10b50a};},{[_0x5ba787([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ba787([0x68,0x69,0x67,0x68])}),_0x3f4c95[_0x5ba787([0x6f,0x6e])](_0x5ba787([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x30257d=>{_0x1ba473(_0x30257d[_0x5ba787([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1ce5a0=!0x0,_0x29ab2c(_0x30257d[_0x5ba787([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5ba787([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ba787([0x6c,0x6f,0x77])}),_0x52e15f[_0x5ba787([0x74,0x68,0x65,0x6e])](()=>{_0x1ce5a0||_0x221d6e(_0x5ba787([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x50abf8(){return _0x3f4c95[_0x5ba787([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ba787([0x76,0x69,0x65,0x77])][_0x5ba787([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5ba787([0x61,0x75,0x74,0x6f]);}function _0x511a8e(){_0x3f4c95[_0x5ba787([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ba787([0x76,0x69,0x65,0x77])][_0x5ba787([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5ba787([0x61,0x75,0x74,0x6f]);}}function _0x22e784(_0x2fb05a){const _0x3247e3=[new window[(_0x5ba787([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4937c1=>setTimeout(_0x4937c1,0x5356b2f6^_0x40c80f)),_0x52e15f[_0x5ba787([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5ba787([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1374f7=>{let _0xd02e22=0x0;_0x3f4c95[_0x5ba787([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ba787([0x6f,0x6e])](_0x5ba787([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3944fd,_0x241ea7)=>{_0x241ea7[0x0][_0x5ba787([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xd02e22++,_0xd02e22==(0x535f8dc2^_0x40c80f)&&(_0x1374f7(),_0x3944fd[_0x5ba787([0x6f,0x66,0x66])]());});}))];return window[_0x5ba787([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5ba787([0x72,0x61,0x63,0x65])](_0x3247e3)[_0x5ba787([0x74,0x68,0x65,0x6e])](()=>_0x2fb05a);}async function _0x5cf96f(){await _0x52e15f,_0x3f4c95[_0x5ba787([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ba787([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1c2a74,_0x3f4c95[_0x5ba787([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ba787([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1c2a74,_0x3f4c95[_0x5ba787([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5ba787([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x310787(_0x15d1cf){const _0x88a9c6=_0x47fb26();_0x3f4c95[_0x88a9c6]=_0x5ba787([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x15d1cf,_0x15d1cf!=_0x5ba787([0x56,0x61,0x6c,0x69,0x64])&&_0x5cf96f();}function _0x47fb26(){const _0x69b139=window[_0x5ba787([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5ba787([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5ba787([0x6e,0x6f,0x77])]())[_0x5ba787([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5ba787([0x2e]),'');let _0x59ded9=_0x5ba787([0x68]);for(let _0x1fa7a8=0x0;_0x1fa7a8<_0x69b139[_0x5ba787([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1fa7a8+=0x2){let _0x1f2bd3=window[_0x5ba787([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x69b139[_0x5ba787([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1fa7a8,_0x1fa7a8+0x2));_0x1f2bd3>=_0x3c291c[_0x5ba787([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1f2bd3-=_0x3c291c[_0x5ba787([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x59ded9+=_0x3c291c[_0x1f2bd3];}return _0x59ded9;}function _0x46ab37(){const _0x4a28a2=_0x1eab89[_0x5ba787([0x73,0x70,0x6c,0x69,0x74])](_0x5ba787([0x2e]));if(0x3!=_0x4a28a2[_0x5ba787([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2238ba(_0x4a28a2[0x1]);function _0x2238ba(_0x51d8e3){const _0x11002e=_0x3455af(_0x51d8e3);return _0x11002e&&_0xc9b58a()?_0x11002e:null;function _0xc9b58a(){const _0xc0f57e=_0x11002e[_0x5ba787([0x6a,0x74,0x69])],_0xbe67f8=window[_0x5ba787([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc0f57e[_0x5ba787([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc0f57e[_0x5ba787([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1fe4e3={..._0x11002e,[_0x5ba787([0x6a,0x74,0x69])]:_0xc0f57e[_0x5ba787([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xc0f57e[_0x5ba787([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1fe4e3[_0x5ba787([0x76,0x63])],_0x1990b9(_0x1fe4e3)==_0xbe67f8;}}}async function _0x2decd9(){let _0x336f2c=!0x0;try{const _0x32c2f1=_0x1eab89[_0x5ba787([0x73,0x70,0x6c,0x69,0x74])](_0x5ba787([0x2e])),[_0x25ce7a,_0x5db2e3,_0x357214]=_0x32c2f1;return _0x2d450b(_0x25ce7a),await _0x1a4c21(_0x25ce7a,_0x5db2e3,_0x357214),_0x336f2c;}catch{return!0x1;}function _0x2d450b(_0x1cbdec){const _0x2025c3=_0x3455af(_0x1cbdec);_0x2025c3&&_0x2025c3[_0x5ba787([0x61,0x6c,0x67])]==_0x5ba787([0x45,0x53,0x32,0x35,0x36])||(_0x336f2c=!0x1);}async function _0x1a4c21(_0xeda2c8,_0x2ac5d4,_0x2d9fc8){const _0x2e386a=window[_0x5ba787([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5ba787([0x66,0x72,0x6f,0x6d])](_0x2f80dd(_0x2d9fc8),_0x21693d=>_0x21693d[_0x5ba787([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x46fc61=new window[(_0x5ba787([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5ba787([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xeda2c8+_0x5ba787([0x2e])+_0x2ac5d4),_0x18e030=window[_0x5ba787([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5ba787([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x18e030)return;const _0x453419=await _0x18e030[_0x5ba787([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5ba787([0x6a,0x77,0x6b]),_0xa5c187,{[_0x5ba787([0x6e,0x61,0x6d,0x65])]:_0x5ba787([0x45,0x43,0x44,0x53,0x41]),[_0x5ba787([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5ba787([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5ba787([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x18e030[_0x5ba787([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5ba787([0x6e,0x61,0x6d,0x65])]:_0x5ba787([0x45,0x43,0x44,0x53,0x41]),[_0x5ba787([0x68,0x61,0x73,0x68])]:{[_0x5ba787([0x6e,0x61,0x6d,0x65])]:_0x5ba787([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x453419,_0x2e386a,_0x46fc61)||(_0x336f2c=!0x1);}}function _0x3455af(_0xe16b44){return _0xe16b44[_0x5ba787([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5ba787([0x65,0x79]))?JSON[_0x5ba787([0x70,0x61,0x72,0x73,0x65])](_0x2f80dd(_0xe16b44)):null;}function _0x2f80dd(_0x5ac0d0){return window[_0x5ba787([0x61,0x74,0x6f,0x62])](_0x5ac0d0[_0x5ba787([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5ba787([0x2b]))[_0x5ba787([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5ba787([0x2f])));}function _0x1990b9(_0x394876){let _0x312b7b=0x1505;function _0x11510e(_0x43ba85){for(let _0x1711e0=0x0;_0x1711e0<_0x43ba85[_0x5ba787([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1711e0++){const _0x476dc6=_0x43ba85[_0x5ba787([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1711e0);_0x312b7b=(_0x312b7b<<0x5)+_0x312b7b+_0x476dc6,_0x312b7b&=_0x312b7b;}}function _0x479eb0(_0x53f8a1){Array[_0x5ba787([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x53f8a1)?_0x53f8a1[_0x5ba787([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x479eb0):_0x53f8a1&&typeof _0x53f8a1==_0x5ba787([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5ba787([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x53f8a1)[_0x5ba787([0x73,0x6f,0x72,0x74])]()[_0x5ba787([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1c35cb,_0x4eb1e5])=>{_0x11510e(_0x1c35cb),_0x479eb0(_0x4eb1e5);}):_0x11510e(window[_0x5ba787([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x53f8a1));}return _0x479eb0(_0x394876),_0x312b7b>>>0x0;}function _0x1387bc(_0x1f47fb){return _0x1f47fb[_0x5ba787([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5ba787([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5ba787([0x30]));}function _0x4d304a(_0xa75e0b){return _0xa75e0b[_0x5ba787([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5ba787([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5ba787([0x6a,0x6f,0x69,0x6e])]('');}function _0x1c2a74(){}function _0x5ba787(_0x2d6d64){const _0x1cabb0=_0x445c;return _0x2d6d64[_0x1cabb0(0x1e1)](_0x141f3e=>String[_0x1cabb0(0x226)](_0x141f3e))[_0x1cabb0(0x211)]('');}_0x310787(await _0x483138());}(this);}[_0x35039f(0x21c)](){const _0x2dbdfc=_0x35039f,_0x47fc46=this[_0x2dbdfc(0x22b)][_0x2dbdfc(0x21f)][_0x2dbdfc(0x1f5)];_0x47fc46[_0x2dbdfc(0x216)](_0x2dbdfc(0x214))&&_0x47fc46[_0x2dbdfc(0x207)](_0x2dbdfc(0x214),{'allowAttributes':[_0x2dbdfc(0x20b)]}),_0x47fc46[_0x2dbdfc(0x216)](_0x2dbdfc(0x1ee))&&_0x47fc46[_0x2dbdfc(0x207)](_0x2dbdfc(0x1ee),{'allowAttributes':[_0x2dbdfc(0x20b)]});}[_0x35039f(0x233)](){const _0x2e71fc=_0x35039f,_0x3b9b7d=this[_0x2e71fc(0x22b)];_0x3b9b7d[_0x2e71fc(0x20a)][_0x2e71fc(0x213)](_0x2e71fc(0x1e8))[_0x2e71fc(0x206)]({'model':_0x2e71fc(0x20b),'view':_0x2e71fc(0x225)}),_0x3b9b7d[_0x2e71fc(0x20a)][_0x2e71fc(0x213)](_0x2e71fc(0x1e7))[_0x2e71fc(0x21e)]({'model':{'key':_0x2e71fc(0x20b),'value':_0x2dbea2=>_0x2dbea2[_0x2e71fc(0x1fb)](_0x2e71fc(0x225))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x51b73c=_0x3b9b7d[_0x2e71fc(0x1e6)][_0x2e71fc(0x222)](_0x2e71fc(0x218));_0x51b73c&&this[_0x2e71fc(0x231)](_0x51b73c,_0x2e71fc(0x1e2),(_0x595a5d,[_0xb6efbe,_0x4bd4c1])=>{const _0x1a0a23=_0x2e71fc;_0xb6efbe[_0x1a0a23(0x223)](_0x1a0a23(0x20b),_0x4bd4c1);});}[_0x35039f(0x1f4)](){const _0x5aa2bd=_0x35039f,_0x18f449=this[_0x5aa2bd(0x22b)][_0x5aa2bd(0x220)][_0x5aa2bd(0x222)](_0x5aa2bd(0x1ed))||{},_0x347319=this[_0x5aa2bd(0x22b)][_0x5aa2bd(0x220)][_0x5aa2bd(0x222)](_0x5aa2bd(0x1e0))||'';this[_0x5aa2bd(0x20d)]=_0x3ef7b2(_0x853989[_0x5aa2bd(0x204)],_0x5aa2bd(0x208),{..._0x18f449,'pubkey':_0x347319,'ctx-name':_0x5aa2bd(0x22c)+this[_0x5aa2bd(0x1df)],'sourceList':'','imgOnly':_0x5aa2bd(0x1f6),'removeCopyright':_0x5aa2bd(0x1f6),'localeName':this[_0x5aa2bd(0x22b)][_0x5aa2bd(0x1f3)][_0x5aa2bd(0x1e3)],'externalSourcesEmbedCss':_0x5aa2bd(0x200)}),this[_0x5aa2bd(0x20d)][_0x5aa2bd(0x21d)]=_0x8c3dbf=>{const _0x2cf453=_0x5aa2bd;if(_0x2cf453(0x1fc)==_0x8c3dbf)return _0x2cf453(0x1f0);},_0x853989[_0x5aa2bd(0x204)][_0x5aa2bd(0x20f)][_0x5aa2bd(0x21b)](this[_0x5aa2bd(0x20d)]);}[_0x35039f(0x217)](){const _0x36215c=_0x35039f;this[_0x36215c(0x228)]=_0x3ef7b2(_0x853989[_0x36215c(0x204)],_0x36215c(0x22f),{'ctx-name':_0x36215c(0x22c)+this[_0x36215c(0x1df)]}),_0x853989[_0x36215c(0x204)][_0x36215c(0x20f)][_0x36215c(0x21b)](this[_0x36215c(0x228)]);}[_0x35039f(0x22a)](){const _0x1af35a=_0x35039f,_0x13ce2d=this[_0x1af35a(0x22b)][_0x1af35a(0x1e6)][_0x1af35a(0x222)](_0x1af35a(0x1ff));_0x13ce2d&&this[_0x1af35a(0x231)](_0x13ce2d,_0x1af35a(0x1fa),()=>{const _0x22c94a=_0x1af35a,_0x4e9e8a=this[_0x22c94a(0x22b)][_0x22c94a(0x21f)][_0x22c94a(0x204)][_0x22c94a(0x22d)][_0x22c94a(0x1f7)]();_0x4e9e8a&&_0x4e9e8a[_0x22c94a(0x1fb)](_0x22c94a(0x20b))&&this[_0x22c94a(0x22b)][_0x22c94a(0x1eb)][_0x22c94a(0x1fe)][_0x22c94a(0x1f8)](_0x22c94a(0x20e),()=>{const _0x4f8ccc=_0x22c94a;_0xdb944b(this[_0x4f8ccc(0x22b)],_0x4e9e8a);});});const _0x53a7b1=this[_0x1af35a(0x22b)][_0x1af35a(0x1e6)][_0x1af35a(0x222)](_0x1af35a(0x1e9));_0x53a7b1&&this[_0x1af35a(0x231)](_0x53a7b1,_0x1af35a(0x1fa),()=>{const _0x3c686a=_0x1af35a,_0x20ef86=this[_0x3c686a(0x22b)][_0x3c686a(0x21f)][_0x3c686a(0x204)][_0x3c686a(0x22d)][_0x3c686a(0x1f7)]();_0x20ef86&&_0x20ef86[_0x3c686a(0x1fb)](_0x3c686a(0x20b))&&this[_0x3c686a(0x22b)][_0x3c686a(0x1eb)][_0x3c686a(0x1fe)][_0x3c686a(0x1f8)](_0x3c686a(0x20e),()=>{const _0x3798e6=_0x3c686a;_0xdb944b(this[_0x3798e6(0x22b)],_0x20ef86);});});}}
23
+ function _0x92b7(){const _0xd9015b=['isPremiumPlugin','appendChild','model','_initImageProcessingIndicator','uploadcareImageReplace','true','5736612ebUgvW','upcast','1306855jHTWlF','body','9224ETqhav','PictureEditing','querySelector','UploadcareEditing','iconHrefResolver','remove','configElement','uploadcare.uploader','#uc-icon-arrow-down','getSelectedElement','imageBlock','afterInit','cleanupImage','uc-config','_ctxElement','3FRXkvL','view','_initCtx','_initSchema','selection','4qZvnWq','1107QyGnfG','insertImage','588gTZdnl','imageInline','downcast','contentLanguage','6950200vikclV','559732PALgBw','isRegistered','ctxElement','commands','fromCharCode','schema','attributeToAttribute','uc-upload-ctx-provider','uploader-','ucContextId','_initConversion','isOfficialPlugin','25080YpHGnc','listenTo','pluginName','uploadcare','replaceImageSource','conversion','for','elementToAttribute','add','execute','init','removeAttribute','uploadcareImageId','document','get','locale','requires','_initConfig','input[uploadcare-file-input]','render','once','\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','editing','getAttribute','editor','map','href','closeMax','extend','4213556caTEly','_configElement','config','join','data-uc-image-id','destroy','uploadcare.pubkey'];_0x92b7=function(){return _0xd9015b;};return _0x92b7();}const _0x2983d3=_0x3655;(function(_0x4bbf0f,_0x2b0602){const _0x2817e2=_0x3655,_0x4787c1=_0x4bbf0f();while(!![]){try{const _0x1866ff=parseInt(_0x2817e2(0x167))/0x1*(-parseInt(_0x2817e2(0x15f))/0x2)+-parseInt(_0x2817e2(0x15a))/0x3*(-parseInt(_0x2817e2(0x13a))/0x4)+-parseInt(_0x2817e2(0x173))/0x5*(-parseInt(_0x2817e2(0x162))/0x6)+parseInt(_0x2817e2(0x147))/0x7+parseInt(_0x2817e2(0x14b))/0x8*(parseInt(_0x2817e2(0x160))/0x9)+-parseInt(_0x2817e2(0x166))/0xa+-parseInt(_0x2817e2(0x149))/0xb;if(_0x1866ff===_0x2b0602)break;else _0x4787c1['push'](_0x4787c1['shift']());}catch(_0x54c8c1){_0x4787c1['push'](_0x4787c1['shift']());}}}(_0x92b7,0x8be4b));import{Plugin as _0x158ffc}from'ckeditor5/src/core.js';import{Dialog as _0xc8ea3}from'ckeditor5/src/ui.js';import{createElement as _0xd0d8bf,global as _0x1a86ae,uid as _0x2da603}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x19f982}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x18e2b4}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x45e766}from'./utils/editingutils.js';function _0x3655(_0x41bcb9,_0x4ad497){const _0x92b798=_0x92b7();return _0x3655=function(_0x36554f,_0x2695d8){_0x36554f=_0x36554f-0x131;let _0xbd40aa=_0x92b798[_0x36554f];return _0xbd40aa;},_0x3655(_0x41bcb9,_0x4ad497);}export class UploadcareEditing extends _0x158ffc{[_0x2983d3(0x13b)]=null;[_0x2983d3(0x159)]=null;static get[_0x2983d3(0x175)](){const _0x428932=_0x2983d3;return _0x428932(0x14e);}static get[_0x2983d3(0x183)](){const _0x3598ce=_0x2983d3;return[_0x3598ce(0x14c),_0x18e2b4,_0xc8ea3];}static get[_0x2983d3(0x172)](){return!0x0;}static get[_0x2983d3(0x141)](){return!0x0;}[_0x2983d3(0x170)];get[_0x2983d3(0x151)](){const _0x351607=_0x2983d3;return this[_0x351607(0x13b)];}get[_0x2983d3(0x169)](){const _0x2fce50=_0x2983d3;return this[_0x2fce50(0x159)];}constructor(_0x53b05a){const _0x28a857=_0x2983d3;super(_0x53b05a),this[_0x28a857(0x170)]=_0x2da603();}[_0x2983d3(0x17d)](){const _0x30cc45=_0x2983d3,_0x548eb3=this[_0x30cc45(0x135)];_0x548eb3[_0x30cc45(0x16a)][_0x30cc45(0x17b)](_0x30cc45(0x176),new _0x19f982(_0x548eb3));}[_0x2983d3(0x156)](){const _0x4b4fd2=_0x2983d3;this[_0x4b4fd2(0x15d)](),this[_0x4b4fd2(0x171)](),this[_0x4b4fd2(0x184)](),this[_0x4b4fd2(0x15c)](),this[_0x4b4fd2(0x144)](),this[_0x4b4fd2(0x174)](this[_0x4b4fd2(0x135)],_0x4b4fd2(0x13f),()=>{const _0x227d69=_0x4b4fd2;this[_0x227d69(0x13b)]&&(this[_0x227d69(0x13b)][_0x227d69(0x150)](),this[_0x227d69(0x13b)]=null),this[_0x227d69(0x159)]&&(this[_0x227d69(0x159)][_0x227d69(0x150)](),this[_0x227d69(0x159)]=null);const _0x583df4=_0x1a86ae[_0x227d69(0x180)][_0x227d69(0x14d)](_0x227d69(0x185));_0x583df4&&_0x583df4[_0x227d69(0x150)]();}),async function(_0x4dddc8){const _0x4568cf=_0x395e96([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x44f399=0x535f8c3a,_0x49c9f7=0x5358f52a^_0x44f399,_0x4ecac3=window[_0x395e96([0x44,0x61,0x74,0x65])][_0x395e96([0x6e,0x6f,0x77])](),_0x23ccea=_0x4dddc8[_0x395e96([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x584f3f=new window[(_0x395e96([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59bc89=>{_0x23ccea[_0x395e96([0x6f,0x6e,0x63,0x65])](_0x395e96([0x72,0x65,0x61,0x64,0x79]),_0x59bc89);}),_0x36fd64={[_0x395e96([0x6b,0x74,0x79])]:_0x395e96([0x45,0x43]),[_0x395e96([0x75,0x73,0x65])]:_0x395e96([0x73,0x69,0x67]),[_0x395e96([0x63,0x72,0x76])]:_0x395e96([0x50,0x2d,0x32,0x35,0x36]),[_0x395e96([0x78])]:_0x395e96([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]),[_0x395e96([0x79])]:_0x395e96([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]),[_0x395e96([0x61,0x6c,0x67])]:_0x395e96([0x45,0x53,0x32,0x35,0x36])},_0x256ee2=_0x23ccea[_0x395e96([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x395e96([0x67,0x65,0x74])](_0x395e96([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x15e9ef(){let _0x20533d,_0x36f252=null,_0xed40c5=null;try{if(_0x256ee2==_0x395e96([0x47,0x50,0x4c]))return _0x395e96([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x20533d=_0x7accd5(),!_0x20533d)return _0x395e96([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x20533d[_0x395e96([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xed40c5=_0x37d6dc(_0x20533d[_0x395e96([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x20533d[_0x395e96([0x6a,0x74,0x69])])),await _0x30305f()?_0x4e4c36()?_0x46cf80()?_0x395e96([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4c223b()?(_0x20533d[_0x395e96([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x395e96([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x36f252=_0x58f550(_0x395e96([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x20533d[_0x395e96([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x395e96([0x74,0x72,0x69,0x61,0x6c])&&(_0x36f252=_0x58f550(_0x395e96([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x552064()):_0x395e96([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x395e96([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x395e96([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x395e96([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x46cf80(){const _0x4d05d1=[_0x395e96([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x395e96([0x74,0x72,0x69,0x61,0x6c])][_0x395e96([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20533d[_0x395e96([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4ecac3/0x3e8:0xe10*_0x49c9f7;return _0x20533d[_0x395e96([0x65,0x78,0x70])]<_0x4d05d1;}function _0x4e4c36(){const _0x246fb7=_0x20533d[_0x395e96([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x246fb7&&(!!_0x246fb7[_0x395e96([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x395e96([0x2a]))||!!_0x246fb7[_0x395e96([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x395e96([0x55,0x50,0x4c,0x43])));}function _0x4c223b(){const _0x8f1dcf=_0x3655,_0x1749d9=_0x20533d[_0x395e96([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1749d9||0x0==_0x1749d9[_0x395e96([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5a6f81}=new URL(window[_0x395e96([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x8f1dcf(0x137)]);if(_0x1749d9[_0x395e96([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a6f81))return!0x0;const _0x396a2d=_0x5a6f81[_0x395e96([0x73,0x70,0x6c,0x69,0x74])](_0x395e96([0x2e]));return _0x1749d9[_0x395e96([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e7639=>_0x1e7639[_0x395e96([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x395e96([0x2a])))[_0x395e96([0x6d,0x61,0x70])](_0x1c4f2d=>_0x1c4f2d[_0x395e96([0x73,0x70,0x6c,0x69,0x74])](_0x395e96([0x2e])))[_0x395e96([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24fa9c=>_0x24fa9c[_0x395e96([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x396a2d[_0x395e96([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x395e96([0x6d,0x61,0x70])](_0x24b554=>Array(_0x396a2d[_0x395e96([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x24b554[_0x395e96([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x395e96([0x66,0x69,0x6c,0x6c])](_0x24b554[0x0]===_0x395e96([0x2a])?_0x395e96([0x2a]):'')[_0x395e96([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x24b554))[_0x395e96([0x73,0x6f,0x6d,0x65])](_0x29020d=>_0x396a2d[_0x395e96([0x65,0x76,0x65,0x72,0x79])]((_0x53608d,_0x15e19e)=>_0x29020d[_0x15e19e]===_0x53608d||_0x29020d[_0x15e19e]===_0x395e96([0x2a])));}function _0x552064(){return _0x36f252&&_0xed40c5?new window[(_0x395e96([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2aa8d3,_0x184b08)=>{_0x36f252[_0x395e96([0x74,0x68,0x65,0x6e])](_0x2aa8d3,_0x184b08),_0xed40c5[_0x395e96([0x74,0x68,0x65,0x6e])](_0x4646a6=>{_0x4646a6!=_0x395e96([0x56,0x61,0x6c,0x69,0x64])&&_0x2aa8d3(_0x4646a6);},_0x184b08);}):_0x36f252||_0xed40c5||_0x395e96([0x56,0x61,0x6c,0x69,0x64]);}}function _0x37d6dc(_0x506372,_0x8c1306){return new window[(_0x395e96([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c48ab=>{if(_0xdfa199())return _0x2c48ab(_0x395e96([0x56,0x61,0x6c,0x69,0x64]));_0xe12577(),_0x23ccea[_0x395e96([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x395e96([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3d0e6c=!0x1;const _0x40ac26=_0x2da603();function _0x114a12(_0x4d10d7){return!!_0x4d10d7&&(typeof _0x4d10d7===_0x395e96([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4d10d7===_0x395e96([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4d10d7[_0x395e96([0x74,0x68,0x65,0x6e])]===_0x395e96([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4d10d7[_0x395e96([0x63,0x61,0x74,0x63,0x68])]===_0x395e96([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x82361f(_0x412935){_0x29fdb3(_0x412935)[_0x395e96([0x74,0x68,0x65,0x6e])](_0x4371f5=>{if(!_0x4371f5||_0x4371f5[_0x395e96([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x395e96([0x6f,0x6b]))return _0x395e96([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x220631(_0x278e8c(_0x40ac26+_0x8c1306))!=_0x4371f5[_0x395e96([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x395e96([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x395e96([0x56,0x61,0x6c,0x69,0x64]);})[_0x395e96([0x74,0x68,0x65,0x6e])](_0x4b470e=>(_0x3a3190(),_0x4b470e),()=>{const _0x22aff3=_0x2df4fb();return null==_0x22aff3?(_0x3a3190(),_0x395e96([0x56,0x61,0x6c,0x69,0x64])):_0x395e96(_0x4ecac3-_0x22aff3>(0x7753083a^_0x44f399)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x395e96([0x74,0x68,0x65,0x6e])](_0x2c48ab)[_0x395e96([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2c48ab(_0x395e96([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3273c1=0x536962ba^_0x44f399;function _0x3a3190(){const _0x2c8fdb=_0x395e96([0x6c,0x6c,0x63,0x74,0x2d])+_0x220631(_0x278e8c(_0x506372)),_0x51262e=_0x309e35(_0x220631(window[_0x395e96([0x4d,0x61,0x74,0x68])][_0x395e96([0x63,0x65,0x69,0x6c])](_0x4ecac3/_0x3273c1)));window[_0x395e96([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x395e96([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c8fdb,_0x51262e);}function _0x2df4fb(){const _0x690565=_0x395e96([0x6c,0x6c,0x63,0x74,0x2d])+_0x220631(_0x278e8c(_0x506372)),_0x2ab1c1=window[_0x395e96([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x395e96([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x690565);return _0x2ab1c1?window[_0x395e96([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x309e35(_0x2ab1c1),0x10)*_0x3273c1:null;}function _0x29fdb3(_0x44cb9b){return new window[(_0x395e96([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x274a4d,_0x618a3)=>{_0x44cb9b[_0x395e96([0x74,0x68,0x65,0x6e])](_0x274a4d,_0x618a3),window[_0x395e96([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x618a3,0x535e58fa^_0x44f399);});}}_0x23ccea[_0x395e96([0x6f,0x6e])](_0x395e96([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x14d83b,_0x5c43ba)=>{if(_0x5c43ba[0x0]!=_0x506372)return _0x2c48ab(_0x395e96([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5c43ba[0x1]={..._0x5c43ba[0x1],[_0x395e96([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x40ac26};},{[_0x395e96([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x395e96([0x68,0x69,0x67,0x68])}),_0x23ccea[_0x395e96([0x6f,0x6e])](_0x395e96([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1a6d6c=>{_0x114a12(_0x1a6d6c[_0x395e96([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3d0e6c=!0x0,_0x82361f(_0x1a6d6c[_0x395e96([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x395e96([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x395e96([0x6c,0x6f,0x77])}),_0x584f3f[_0x395e96([0x74,0x68,0x65,0x6e])](()=>{_0x3d0e6c||_0x2c48ab(_0x395e96([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xdfa199(){return _0x23ccea[_0x395e96([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x395e96([0x76,0x69,0x65,0x77])][_0x395e96([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x395e96([0x61,0x75,0x74,0x6f]);}function _0xe12577(){_0x23ccea[_0x395e96([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x395e96([0x76,0x69,0x65,0x77])][_0x395e96([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x395e96([0x61,0x75,0x74,0x6f]);}}function _0x58f550(_0x52352d){const _0xf08b5d=[new window[(_0x395e96([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14b795=>setTimeout(_0x14b795,0x5356b2f6^_0x44f399)),_0x584f3f[_0x395e96([0x74,0x68,0x65,0x6e])](()=>new window[(_0x395e96([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x203bda=>{let _0x596fd6=0x0;_0x23ccea[_0x395e96([0x6d,0x6f,0x64,0x65,0x6c])][_0x395e96([0x6f,0x6e])](_0x395e96([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1b5b0d,_0x297508)=>{_0x297508[0x0][_0x395e96([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x596fd6++,_0x596fd6==(0x535f8dc2^_0x44f399)&&(_0x203bda(),_0x1b5b0d[_0x395e96([0x6f,0x66,0x66])]());});}))];return window[_0x395e96([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x395e96([0x72,0x61,0x63,0x65])](_0xf08b5d)[_0x395e96([0x74,0x68,0x65,0x6e])](()=>_0x52352d);}async function _0x2e32d0(){await _0x584f3f,_0x23ccea[_0x395e96([0x6d,0x6f,0x64,0x65,0x6c])][_0x395e96([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x422e27,_0x23ccea[_0x395e96([0x6d,0x6f,0x64,0x65,0x6c])][_0x395e96([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x422e27,_0x23ccea[_0x395e96([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x395e96([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c0869(_0x13b493){const _0x4b403f=_0x1179ca();_0x23ccea[_0x4b403f]=_0x395e96([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x13b493,_0x13b493!=_0x395e96([0x56,0x61,0x6c,0x69,0x64])&&_0x2e32d0();}function _0x1179ca(){const _0x5225e3=window[_0x395e96([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x395e96([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x395e96([0x6e,0x6f,0x77])]())[_0x395e96([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x395e96([0x2e]),'');let _0x2af95d=_0x395e96([0x68]);for(let _0x1b8ec5=0x0;_0x1b8ec5<_0x5225e3[_0x395e96([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b8ec5+=0x2){let _0x1ec3b9=window[_0x395e96([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5225e3[_0x395e96([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b8ec5,_0x1b8ec5+0x2));_0x1ec3b9>=_0x4568cf[_0x395e96([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1ec3b9-=_0x4568cf[_0x395e96([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2af95d+=_0x4568cf[_0x1ec3b9];}return _0x2af95d;}function _0x7accd5(){const _0xed03f3=_0x256ee2[_0x395e96([0x73,0x70,0x6c,0x69,0x74])](_0x395e96([0x2e]));if(0x3!=_0xed03f3[_0x395e96([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x240b3(_0xed03f3[0x1]);function _0x240b3(_0x5dc2ad){const _0x4536c3=_0xba9404(_0x5dc2ad);return _0x4536c3&&_0x57703b()?_0x4536c3:null;function _0x57703b(){const _0x42d5a4=_0x4536c3[_0x395e96([0x6a,0x74,0x69])],_0x24451c=window[_0x395e96([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42d5a4[_0x395e96([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42d5a4[_0x395e96([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x44cbd8={..._0x4536c3,[_0x395e96([0x6a,0x74,0x69])]:_0x42d5a4[_0x395e96([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x42d5a4[_0x395e96([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x44cbd8[_0x395e96([0x76,0x63])],_0x278e8c(_0x44cbd8)==_0x24451c;}}}async function _0x30305f(){let _0x4dfe48=!0x0;try{const _0x1d45af=_0x256ee2[_0x395e96([0x73,0x70,0x6c,0x69,0x74])](_0x395e96([0x2e])),[_0x20a61a,_0x925456,_0xaddfe5]=_0x1d45af;return _0x4b1b86(_0x20a61a),await _0x2a750a(_0x20a61a,_0x925456,_0xaddfe5),_0x4dfe48;}catch{return!0x1;}function _0x4b1b86(_0x47e0a7){const _0x4eb819=_0xba9404(_0x47e0a7);_0x4eb819&&_0x4eb819[_0x395e96([0x61,0x6c,0x67])]==_0x395e96([0x45,0x53,0x32,0x35,0x36])||(_0x4dfe48=!0x1);}async function _0x2a750a(_0x4b0635,_0x1ddbbd,_0x373d57){const _0x1e3695=window[_0x395e96([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x395e96([0x66,0x72,0x6f,0x6d])](_0x3c7894(_0x373d57),_0x179244=>_0x179244[_0x395e96([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5657a6=new window[(_0x395e96([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x395e96([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4b0635+_0x395e96([0x2e])+_0x1ddbbd),_0xb70aa7=window[_0x395e96([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x395e96([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xb70aa7)return;const _0x268a77=await _0xb70aa7[_0x395e96([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x395e96([0x6a,0x77,0x6b]),_0x36fd64,{[_0x395e96([0x6e,0x61,0x6d,0x65])]:_0x395e96([0x45,0x43,0x44,0x53,0x41]),[_0x395e96([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x395e96([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x395e96([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xb70aa7[_0x395e96([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x395e96([0x6e,0x61,0x6d,0x65])]:_0x395e96([0x45,0x43,0x44,0x53,0x41]),[_0x395e96([0x68,0x61,0x73,0x68])]:{[_0x395e96([0x6e,0x61,0x6d,0x65])]:_0x395e96([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x268a77,_0x1e3695,_0x5657a6)||(_0x4dfe48=!0x1);}}function _0xba9404(_0x4158e9){return _0x4158e9[_0x395e96([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x395e96([0x65,0x79]))?JSON[_0x395e96([0x70,0x61,0x72,0x73,0x65])](_0x3c7894(_0x4158e9)):null;}function _0x3c7894(_0x5dfc44){return window[_0x395e96([0x61,0x74,0x6f,0x62])](_0x5dfc44[_0x395e96([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x395e96([0x2b]))[_0x395e96([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x395e96([0x2f])));}function _0x278e8c(_0x33d4f8){let _0x9161f3=0x1505;function _0x4e1303(_0x410722){for(let _0x4def6d=0x0;_0x4def6d<_0x410722[_0x395e96([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4def6d++){const _0x3698b0=_0x410722[_0x395e96([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4def6d);_0x9161f3=(_0x9161f3<<0x5)+_0x9161f3+_0x3698b0,_0x9161f3&=_0x9161f3;}}function _0x283a7f(_0x2c177f){Array[_0x395e96([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2c177f)?_0x2c177f[_0x395e96([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x283a7f):_0x2c177f&&typeof _0x2c177f==_0x395e96([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x395e96([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2c177f)[_0x395e96([0x73,0x6f,0x72,0x74])]()[_0x395e96([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4816c3,_0x299c23])=>{_0x4e1303(_0x4816c3),_0x283a7f(_0x299c23);}):_0x4e1303(window[_0x395e96([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2c177f));}return _0x283a7f(_0x33d4f8),_0x9161f3>>>0x0;}function _0x220631(_0x1d83f1){return _0x1d83f1[_0x395e96([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x395e96([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x395e96([0x30]));}function _0x309e35(_0x461b9d){return _0x461b9d[_0x395e96([0x73,0x70,0x6c,0x69,0x74])]('')[_0x395e96([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x395e96([0x6a,0x6f,0x69,0x6e])]('');}function _0x422e27(){}function _0x395e96(_0x331dac){const _0x36956a=_0x3655;return _0x331dac[_0x36956a(0x136)](_0x494537=>String[_0x36956a(0x16b)](_0x494537))[_0x36956a(0x13d)]('');}_0x3c0869(await _0x15e9ef());}(this);}[_0x2983d3(0x15d)](){const _0x39844c=_0x2983d3,_0x4ab262=this[_0x39844c(0x135)][_0x39844c(0x143)][_0x39844c(0x16c)];_0x4ab262[_0x39844c(0x168)](_0x39844c(0x155))&&_0x4ab262[_0x39844c(0x139)](_0x39844c(0x155),{'allowAttributes':[_0x39844c(0x17f)]}),_0x4ab262[_0x39844c(0x168)](_0x39844c(0x163))&&_0x4ab262[_0x39844c(0x139)](_0x39844c(0x163),{'allowAttributes':[_0x39844c(0x17f)]});}[_0x2983d3(0x171)](){const _0x5d2e87=_0x2983d3,_0x1f29bd=this[_0x5d2e87(0x135)];_0x1f29bd[_0x5d2e87(0x178)][_0x5d2e87(0x179)](_0x5d2e87(0x164))[_0x5d2e87(0x16d)]({'model':_0x5d2e87(0x17f),'view':_0x5d2e87(0x13e)}),_0x1f29bd[_0x5d2e87(0x178)][_0x5d2e87(0x179)](_0x5d2e87(0x148))[_0x5d2e87(0x17a)]({'model':{'key':_0x5d2e87(0x17f),'value':_0x154278=>_0x154278[_0x5d2e87(0x134)](_0x5d2e87(0x13e))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x50c1b1=_0x1f29bd[_0x5d2e87(0x16a)][_0x5d2e87(0x181)](_0x5d2e87(0x177));_0x50c1b1&&this[_0x5d2e87(0x174)](_0x50c1b1,_0x5d2e87(0x157),(_0x261e30,[_0x21d053,_0x3379ab])=>{const _0x19b5e2=_0x5d2e87;_0x21d053[_0x19b5e2(0x17e)](_0x19b5e2(0x17f),_0x3379ab);});}[_0x2983d3(0x184)](){const _0x4afd33=_0x2983d3,_0xc035cc=this[_0x4afd33(0x135)][_0x4afd33(0x13c)][_0x4afd33(0x181)](_0x4afd33(0x152))||{},_0x5bf184=this[_0x4afd33(0x135)][_0x4afd33(0x13c)][_0x4afd33(0x181)](_0x4afd33(0x140))||'';this[_0x4afd33(0x13b)]=_0xd0d8bf(_0x1a86ae[_0x4afd33(0x180)],_0x4afd33(0x158),{..._0xc035cc,'pubkey':_0x5bf184,'ctx-name':_0x4afd33(0x16f)+this[_0x4afd33(0x170)],'sourceList':'','imgOnly':_0x4afd33(0x146),'removeCopyright':_0x4afd33(0x146),'localeName':this[_0x4afd33(0x135)][_0x4afd33(0x182)][_0x4afd33(0x165)],'externalSourcesEmbedCss':_0x4afd33(0x132)}),this[_0x4afd33(0x13b)][_0x4afd33(0x14f)]=_0x2d7d23=>{const _0xffe44d=_0x4afd33;if(_0xffe44d(0x138)==_0x2d7d23)return _0xffe44d(0x153);},_0x1a86ae[_0x4afd33(0x180)][_0x4afd33(0x14a)][_0x4afd33(0x142)](this[_0x4afd33(0x13b)]);}[_0x2983d3(0x15c)](){const _0x3b3740=_0x2983d3;this[_0x3b3740(0x159)]=_0xd0d8bf(_0x1a86ae[_0x3b3740(0x180)],_0x3b3740(0x16e),{'ctx-name':_0x3b3740(0x16f)+this[_0x3b3740(0x170)]}),_0x1a86ae[_0x3b3740(0x180)][_0x3b3740(0x14a)][_0x3b3740(0x142)](this[_0x3b3740(0x159)]);}[_0x2983d3(0x144)](){const _0x551c37=_0x2983d3,_0x5ea310=this[_0x551c37(0x135)][_0x551c37(0x16a)][_0x551c37(0x181)](_0x551c37(0x161));_0x5ea310&&this[_0x551c37(0x174)](_0x5ea310,_0x551c37(0x17c),()=>{const _0x46c03a=_0x551c37,_0x3ec857=this[_0x46c03a(0x135)][_0x46c03a(0x143)][_0x46c03a(0x180)][_0x46c03a(0x15e)][_0x46c03a(0x154)]();_0x3ec857&&_0x3ec857[_0x46c03a(0x134)](_0x46c03a(0x17f))&&this[_0x46c03a(0x135)][_0x46c03a(0x133)][_0x46c03a(0x15b)][_0x46c03a(0x131)](_0x46c03a(0x186),()=>{const _0x18c11e=_0x46c03a;_0x45e766(this[_0x18c11e(0x135)],_0x3ec857);});});const _0x3c809c=this[_0x551c37(0x135)][_0x551c37(0x16a)][_0x551c37(0x181)](_0x551c37(0x145));_0x3c809c&&this[_0x551c37(0x174)](_0x3c809c,_0x551c37(0x17c),()=>{const _0x41fe03=_0x551c37,_0x509066=this[_0x41fe03(0x135)][_0x41fe03(0x143)][_0x41fe03(0x180)][_0x41fe03(0x15e)][_0x41fe03(0x154)]();_0x509066&&_0x509066[_0x41fe03(0x134)](_0x41fe03(0x17f))&&this[_0x41fe03(0x135)][_0x41fe03(0x133)][_0x41fe03(0x15b)][_0x41fe03(0x131)](_0x41fe03(0x186),()=>{const _0x5a6c6c=_0x41fe03;_0x45e766(this[_0x5a6c6c(0x135)],_0x509066);});});}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{global as _0x45e713,ObservableMixin as _0x2ac88e}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x1910ba}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5785a1}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x17f23a}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x419ee0}from'../../utils/uploadutils.js';import{getImageUrls as _0x40497d,getImageDimension as _0x27df18}from'../../utils/editingutils.js';import{isAncestor as _0x15e044}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
- _0x2ac88e(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x10c466,_0xb6f6b,_0x3bced7){super(),this['_editor']=_0x10c466,this['_dialog']=_0xb6f6b,this['_imageElement']=_0x3bced7,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 _0x22d934=this['_imageElement'],_0x4be3c7=_0x22d934['getAttribute']('uploadcareImageId'),_0x20a395=_0x22d934['getAttribute']('src');if(_0x4be3c7)await this['_loadImageInfo'](_0x4be3c7,_0x20a395);else{if(this['_imageCache']['has'](_0x20a395)){const _0x25c70c=this['_imageCache']['get'](_0x20a395);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x25c70c['url'],this['imageDimension']=_0x25c70c['dimension'],this['imageId']=_0x25c70c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x43feab}=this['_editor'],t=_0x43feab['t'],_0x4843fd=new _0x17f23a(_0x43feab,this['imageStatus'],this['_attributes']);_0x4843fd['bind']('status')['to'](this,'imageStatus'),_0x4843fd['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4843fd['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4843fd['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4843fd,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5785a1,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4843fd,'position':_0x1910ba['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4843fd['focus']();},'onHide':()=>{_0x4843fd['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5673a0=>!_0x15e044(_0x5673a0,_0x4843fd['element'])}});}['_loadImageInfo'](_0x22ae93,_0x28282c){return _0x419ee0['getInfo'](_0x22ae93,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x70c0d=>{const {width:_0x3dd631,height:_0x98c2c2}=_0x70c0d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x28282c,this['imageDimension']={'width':_0x3dd631,'height':_0x98c2c2},this['imageId']=_0x22ae93;})['catch'](_0x2a6336=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2a6336['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2d23c5,_0x484d1a){return this['_getImageAsFile'](_0x2d23c5)['then'](_0x14c199=>_0x419ee0['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x484d1a['signal'],'file':_0x14c199,'onProgress':_0x1db383=>{_0x1db383&&_0x1db383['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1db383['value']));}}))['then'](_0x1b157e=>{const {width:_0x22660f,height:_0x2579bd}=_0x1b157e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1b157e['cdnUrl'],this['imageDimension']={'width':_0x22660f,'height':_0x2579bd},this['imageId']=_0x1b157e['uuid'],this['imageUploadProgress']=null;const _0x4a04fa=_0x2d23c5['getAttribute']('src');this['_imageCache']['set'](_0x4a04fa,{'id':_0x1b157e['uuid'],'url':_0x1b157e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x113d46=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x113d46['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x19913a,_0x36974c){_0x19913a['on']('apply',(_0x267749,_0x4ebbea)=>{this['_replaceImage'](_0x36974c,_0x4ebbea['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x19913a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x19913a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3a7667,_0x55ac65,_0x15e5db){const _0x3237b9=this['_editor'],{width:_0x4cce11,height:_0xdef78d}=_0x27df18(_0x55ac65,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x31a17c,imageSources:_0x24419d}=_0x40497d(_0x55ac65,_0x4cce11);_0x3237b9['model']['change'](_0x32d91a=>{if('$graveyard'===_0x3a7667['root']['rootName']){_0x3237b9['execute']('insertImage',{'imageType':_0x3a7667['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3a7667['getAttributes']()),'uploadcareImageId':_0x15e5db,'src':_0x31a17c,'sources':_0x24419d,'width':_0x4cce11,'height':_0xdef78d}});const _0x55575d=_0x3a7667['getChildren']();_0x3a7667=_0x3237b9['model']['document']['selection']['getSelectedElement']();for(const _0x11741e of _0x55575d)_0x32d91a['append'](_0x32d91a['cloneElement'](_0x11741e),_0x3a7667);}else _0x32d91a['setSelection'](_0x3a7667,'on'),_0x3237b9['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3a7667['getAttributes']()),'uploadcareImageId':_0x15e5db,'src':_0x31a17c,'sources':_0x24419d,'width':_0x4cce11,'height':_0xdef78d},_0x3a7667);_0x32d91a['setSelection'](_0x3a7667,'on');});}async['_getImageAsFile'](_0x1ef272){const _0x2620f9=_0x45e713['window'],_0xc59ed6=_0x45e713['document']['location']['href'],_0x20fd5f=new _0x2620f9['URL'](_0x1ef272['getAttribute']('src'),_0xc59ed6);if('data:'===_0x20fd5f['protocol']){const _0x4187b5=_0x20fd5f['href']['split'](','),_0x3f26f5=_0x4187b5[0x0]['match'](/:(.*?);/)[0x1],_0x30562e=_0x3f26f5['split']('/')[0x1],_0x28b758=_0x2620f9['atob'](_0x4187b5[_0x4187b5['length']-0x1]);let _0x38c149=_0x28b758['length'];const _0x35fbc9=new _0x2620f9['Uint8Array'](_0x38c149);for(;_0x38c149--;)_0x35fbc9[_0x38c149]=_0x28b758['charCodeAt'](_0x38c149);return new _0x2620f9['File']([_0x35fbc9],'image.'+_0x30562e,{'type':_0x3f26f5});}const _0x18ce5b=_0x20fd5f['href']['split']('/'),_0xda6ba5=_0x18ce5b[_0x18ce5b['length']-0x1],_0x4cbb7e=_0xda6ba5['split']('.')[0x1];return _0x2620f9['fetch'](_0x20fd5f['href'])['then'](_0x15951f=>_0x15951f['clone']()['blob']())['then'](_0x2c9b3c=>new _0x2620f9['File']([_0x2c9b3c],_0xda6ba5,{'type':'image/'+_0x4cbb7e}));}}
23
+ import{global as _0x1862cb,ObservableMixin as _0x3cb3f5}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x44e2b7}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1b7219}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x161ac6}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x17db41}from'../../utils/uploadutils.js';import{getImageUrls as _0x1a644e,getImageDimension as _0x3b1f8d}from'../../utils/editingutils.js';import{isAncestor as _0x32fce7}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
+ _0x3cb3f5(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xcd307f,_0x368c48,_0x3657e7){super(),this['_editor']=_0xcd307f,this['_dialog']=_0x368c48,this['_imageElement']=_0x3657e7,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 _0x5131de=this['_imageElement'],_0x214aac=_0x5131de['getAttribute']('uploadcareImageId'),_0x16fd31=_0x5131de['getAttribute']('src');if(_0x214aac)await this['_loadImageInfo'](_0x214aac,_0x16fd31);else{if(this['_imageCache']['has'](_0x16fd31)){const _0x566574=this['_imageCache']['get'](_0x16fd31);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x566574['url'],this['imageDimension']=_0x566574['dimension'],this['imageId']=_0x566574['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x274bb5}=this['_editor'],t=_0x274bb5['t'],_0x4cf10a=new _0x161ac6(_0x274bb5,this['imageStatus'],this['_attributes']);_0x4cf10a['bind']('status')['to'](this,'imageStatus'),_0x4cf10a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4cf10a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4cf10a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4cf10a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1b7219,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4cf10a,'position':_0x44e2b7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4cf10a['focus']();},'onHide':()=>{_0x4cf10a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x18fae0=>!_0x32fce7(_0x18fae0,_0x4cf10a['element'])}});}['_loadImageInfo'](_0x4d24f8,_0x1f478a){return _0x17db41['getInfo'](_0x4d24f8,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1d243b=>{const {width:_0x15ee59,height:_0x499ed9}=_0x1d243b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1f478a,this['imageDimension']={'width':_0x15ee59,'height':_0x499ed9},this['imageId']=_0x4d24f8;})['catch'](_0xa37b2a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xa37b2a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x39afb8,_0x4c63b6){return this['_getImageAsFile'](_0x39afb8)['then'](_0x2ff04d=>_0x17db41['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x4c63b6['signal'],'file':_0x2ff04d,'onProgress':_0x47b7e6=>{_0x47b7e6&&_0x47b7e6['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x47b7e6['value']));}}))['then'](_0x1203d5=>{const {width:_0x3b2299,height:_0x5397e2}=_0x1203d5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1203d5['cdnUrl'],this['imageDimension']={'width':_0x3b2299,'height':_0x5397e2},this['imageId']=_0x1203d5['uuid'],this['imageUploadProgress']=null;const _0x45bd36=_0x39afb8['getAttribute']('src');this['_imageCache']['set'](_0x45bd36,{'id':_0x1203d5['uuid'],'url':_0x1203d5['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1eec54=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1eec54['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x143c0a,_0xa5da47){_0x143c0a['on']('apply',(_0xd205b9,_0x1a2218)=>{this['_replaceImage'](_0xa5da47,_0x1a2218['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x143c0a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x143c0a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x32e980,_0x2df17e,_0x2ee4df){const _0x55e634=this['_editor'],{width:_0x56f091,height:_0x4e5bd5}=_0x3b1f8d(_0x2df17e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x54d948,imageSources:_0x17e315}=_0x1a644e(_0x2df17e,_0x56f091);_0x55e634['model']['change'](_0x59ab32=>{if('$graveyard'===_0x32e980['root']['rootName']){_0x55e634['execute']('insertImage',{'imageType':_0x32e980['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x32e980['getAttributes']()),'uploadcareImageId':_0x2ee4df,'src':_0x54d948,'sources':_0x17e315,'width':_0x56f091,'height':_0x4e5bd5}});const _0x42ce4c=_0x32e980['getChildren']();_0x32e980=_0x55e634['model']['document']['selection']['getSelectedElement']();for(const _0x241aaf of _0x42ce4c)_0x59ab32['append'](_0x59ab32['cloneElement'](_0x241aaf),_0x32e980);}else _0x59ab32['setSelection'](_0x32e980,'on'),_0x55e634['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x32e980['getAttributes']()),'uploadcareImageId':_0x2ee4df,'src':_0x54d948,'sources':_0x17e315,'width':_0x56f091,'height':_0x4e5bd5},_0x32e980);_0x59ab32['setSelection'](_0x32e980,'on');});}async['_getImageAsFile'](_0x22aea9){const _0x4779f5=_0x1862cb['window'],_0x28897e=_0x1862cb['document']['location']['href'],_0x358741=new _0x4779f5['URL'](_0x22aea9['getAttribute']('src'),_0x28897e);if('data:'===_0x358741['protocol']){const _0x2b4b4a=_0x358741['href']['split'](','),_0x2e2cd8=_0x2b4b4a[0x0]['match'](/:(.*?);/)[0x1],_0x24aa90=_0x2e2cd8['split']('/')[0x1],_0x1c9dee=_0x4779f5['atob'](_0x2b4b4a[_0x2b4b4a['length']-0x1]);let _0x39df9b=_0x1c9dee['length'];const _0x9a8a63=new _0x4779f5['Uint8Array'](_0x39df9b);for(;_0x39df9b--;)_0x9a8a63[_0x39df9b]=_0x1c9dee['charCodeAt'](_0x39df9b);return new _0x4779f5['File']([_0x9a8a63],'image.'+_0x24aa90,{'type':_0x2e2cd8});}const _0x170bf7=_0x358741['href']['split']('/'),_0x4779a2=_0x170bf7[_0x170bf7['length']-0x1],_0x1523ca=_0x4779a2['split']('.')[0x1];return _0x4779f5['fetch'](_0x358741['href'])['then'](_0x5c77f5=>_0x5c77f5['clone']()['blob']())['then'](_0x2ff62d=>new _0x4779f5['File']([_0x2ff62d],_0x4779a2,{'type':'image/'+_0x1523ca}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4862(){const _0x2941c9=['788888EHVgvS','10oMeLet','setTemplate','33fFiJOb','2047130LLVKQB','5288841kuEnmY','3CTDqWg','2910952KuBveL','8187912ukLWJF','uc-light','image-edit','22JMoFgD','imageSrc','bindTemplate','20486sQZTvu','1436874nEeNYr','set','14pkXtJs','uc-cloud-image-editor','ck-uploadcare-theme'];_0x4862=function(){return _0x2941c9;};return _0x4862();}function _0x5eaf(_0x291080,_0xfb44d0){const _0x48628b=_0x4862();return _0x5eaf=function(_0x5eafb1,_0x4bd487){_0x5eafb1=_0x5eafb1-0x131;let _0x371537=_0x48628b[_0x5eafb1];return _0x371537;},_0x5eaf(_0x291080,_0xfb44d0);}(function(_0x2e6b40,_0x35ad48){const _0x53fd8d=_0x5eaf,_0x37fdfc=_0x2e6b40();while(!![]){try{const _0x570f06=parseInt(_0x53fd8d(0x133))/0x1*(-parseInt(_0x53fd8d(0x136))/0x2)+-parseInt(_0x53fd8d(0x142))/0x3*(parseInt(_0x53fd8d(0x143))/0x4)+parseInt(_0x53fd8d(0x140))/0x5+-parseInt(_0x53fd8d(0x137))/0x6+parseInt(_0x53fd8d(0x139))/0x7*(-parseInt(_0x53fd8d(0x13c))/0x8)+parseInt(_0x53fd8d(0x141))/0x9*(-parseInt(_0x53fd8d(0x13d))/0xa)+-parseInt(_0x53fd8d(0x13f))/0xb*(-parseInt(_0x53fd8d(0x144))/0xc);if(_0x570f06===_0x35ad48)break;else _0x37fdfc['push'](_0x37fdfc['shift']());}catch(_0x4241da){_0x37fdfc['push'](_0x37fdfc['shift']());}}}(_0x4862,0x74efa));import{View as _0x2bbb2f}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x2bbb2f{constructor(_0x120ad9,_0x22c1b8){const _0x417742=_0x5eaf;super(_0x120ad9);const _0x1dc540=this[_0x417742(0x135)];this[_0x417742(0x138)](_0x417742(0x134),''),this[_0x417742(0x13e)]({'tag':_0x417742(0x13a),'attributes':{..._0x22c1b8,'class':[_0x417742(0x131),_0x417742(0x13b)],'ctx-name':_0x417742(0x132),'cdn-url':_0x1dc540['to'](_0x417742(0x134))}});}}
23
+ (function(_0x2c9d62,_0x3607c1){const _0x30bbbb=_0x3d4e,_0x503e70=_0x2c9d62();while(!![]){try{const _0x42fe15=parseInt(_0x30bbbb(0x1cb))/0x1+parseInt(_0x30bbbb(0x1bc))/0x2*(parseInt(_0x30bbbb(0x1bd))/0x3)+parseInt(_0x30bbbb(0x1c0))/0x4+-parseInt(_0x30bbbb(0x1ca))/0x5*(-parseInt(_0x30bbbb(0x1c2))/0x6)+parseInt(_0x30bbbb(0x1c3))/0x7*(parseInt(_0x30bbbb(0x1c7))/0x8)+-parseInt(_0x30bbbb(0x1c4))/0x9+parseInt(_0x30bbbb(0x1c5))/0xa*(-parseInt(_0x30bbbb(0x1cc))/0xb);if(_0x42fe15===_0x3607c1)break;else _0x503e70['push'](_0x503e70['shift']());}catch(_0x335fff){_0x503e70['push'](_0x503e70['shift']());}}}(_0x2867,0x8fc1c));import{View as _0x485d9c}from'ckeditor5/src/ui.js';function _0x2867(){const _0x312979=['5GPrqZZ','86849jbBpKo','407LlnKlw','imageSrc','ck-uploadcare-theme','1015782LzxIgp','3nJCjTJ','image-edit','uc-light','2526468EqFOeh','bindTemplate','4966698OyCrnI','609uwkXTG','2313369zuwYfH','528870UfoGhp','setTemplate','68832INpfQL','set','uc-cloud-image-editor'];_0x2867=function(){return _0x312979;};return _0x2867();}function _0x3d4e(_0x2fca2c,_0x396533){const _0x286708=_0x2867();return _0x3d4e=function(_0x3d4e93,_0x4bca51){_0x3d4e93=_0x3d4e93-0x1ba;let _0x33fc39=_0x286708[_0x3d4e93];return _0x33fc39;},_0x3d4e(_0x2fca2c,_0x396533);}export class UploadcareImageEditFormEditingView extends _0x485d9c{constructor(_0x425b21,_0x3dce7e){const _0x2dbd0c=_0x3d4e;super(_0x425b21);const _0x559c69=this[_0x2dbd0c(0x1c1)];this[_0x2dbd0c(0x1c8)](_0x2dbd0c(0x1ba),''),this[_0x2dbd0c(0x1c6)]({'tag':_0x2dbd0c(0x1c9),'attributes':{..._0x3dce7e,'class':[_0x2dbd0c(0x1bf),_0x2dbd0c(0x1bb)],'ctx-name':_0x2dbd0c(0x1be),'cdn-url':_0x559c69['to'](_0x2dbd0c(0x1ba))}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{IconError as _0x13a8eb}from'ckeditor5/src/icons.js';import{ButtonView as _0xa8ffd4,IconView as _0x1330ee,View as _0x5f4f1a}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x5f4f1a{constructor(_0x5c280d){super(_0x5c280d);const t=_0x5c280d['t'];this['set']('errorType',null);const _0x28264a=new _0xa8ffd4(_0x5c280d);_0x28264a['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x28264a['withText']=!0x0,_0x28264a['class']='ck-button-action',_0x28264a['on']('execute',()=>{this['fire']('retry');}),_0x28264a['bind']('isVisible')['to'](this,'errorType',_0x2e1794=>'NotFound'!==_0x2e1794);const _0xf536c6=new _0x1330ee();_0xf536c6['content']=_0x13a8eb,_0xf536c6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x260b01=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':[_0xf536c6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x260b01['to']('errorType',_0x2125dd=>t('NotFound'!==_0x2125dd?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x28264a]},{'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 _0x4afdfa}from'ckeditor5/src/icons.js';import{ButtonView as _0x3a5f53,IconView as _0x3aa678,View as _0x2df254}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x2df254{constructor(_0x700e3c){super(_0x700e3c);const t=_0x700e3c['t'];this['set']('errorType',null);const _0x1edd8e=new _0x3a5f53(_0x700e3c);_0x1edd8e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1edd8e['withText']=!0x0,_0x1edd8e['class']='ck-button-action',_0x1edd8e['on']('execute',()=>{this['fire']('retry');}),_0x1edd8e['bind']('isVisible')['to'](this,'errorType',_0x1814cb=>'NotFound'!==_0x1814cb);const _0x486c55=new _0x3aa678();_0x486c55['content']=_0x4afdfa,_0x486c55['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xf551ae=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':[_0x486c55,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xf551ae['to']('errorType',_0x1aac93=>t('NotFound'!==_0x1aac93?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1edd8e]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{SpinnerView as _0x51632d,View as _0x19dc3f}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x19dc3f{constructor(_0x454dcb){super(_0x454dcb);const t=_0x454dcb['t'],_0x2b1f58=this['bindTemplate'],_0x2e6298=new _0x51632d();_0x2e6298['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':[_0x2e6298,{'text':_0x2b1f58['to']('imageUploadProgress',_0x581f46=>t('Loading\x20image...')+'\x20('+(_0x581f46||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 _0x435a2b,View as _0x18e3ba}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x18e3ba{constructor(_0x13dc52){super(_0x13dc52);const t=_0x13dc52['t'],_0x130bc7=this['bindTemplate'],_0x538944=new _0x435a2b();_0x538944['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':[_0x538944,{'text':_0x130bc7['to']('imageUploadProgress',_0x19878d=>t('Loading\x20image...')+'\x20('+(_0x19878d||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x415156=_0x39c3;function _0x39c3(_0x55194e,_0x595f97){const _0x1ebe02=_0x1ebe();return _0x39c3=function(_0x39c3c3,_0x314901){_0x39c3c3=_0x39c3c3-0x1c4;let _0x3a22bf=_0x1ebe02[_0x39c3c3];return _0x3a22bf;},_0x39c3(_0x55194e,_0x595f97);}(function(_0x5af018,_0x36d703){const _0x3618a2=_0x39c3,_0x38d0dc=_0x5af018();while(!![]){try{const _0x3f3c8b=parseInt(_0x3618a2(0x1c9))/0x1+parseInt(_0x3618a2(0x1dd))/0x2+parseInt(_0x3618a2(0x1cd))/0x3+-parseInt(_0x3618a2(0x1f9))/0x4+-parseInt(_0x3618a2(0x1c7))/0x5*(parseInt(_0x3618a2(0x1f6))/0x6)+-parseInt(_0x3618a2(0x1f1))/0x7+parseInt(_0x3618a2(0x1ed))/0x8*(-parseInt(_0x3618a2(0x1de))/0x9);if(_0x3f3c8b===_0x36d703)break;else _0x38d0dc['push'](_0x38d0dc['shift']());}catch(_0x13ae36){_0x38d0dc['push'](_0x38d0dc['shift']());}}}(_0x1ebe,0x5b38d));import{View as _0x5a14e6}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x274590}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x3c051c}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x44620d}from'./uploadcareimageeditformeditingview.js';function _0x1ebe(){const _0x2d81a4=['status','ready','uploading','512AlcANF','addEventListener','change:status','add','1657131GxnEMF','fire','filter','set','apply','6opGXgC','clear','_addErrorViewListeners','1142776eGwyOl','addMany','_focusableView','_items','1271255cKwkwb','length','467593qzavKA','ck-uploadcare-form','toLowerCase','createCollection','2169831TQTkaD','observe','_errorView','cancel','getFocusableElement','retry','setTemplate','once','_editingView','nodeName','detail','cdnUrl','error','querySelector','_addUploadcareImageEditorListeners','addedNodes','311994kmGWrr','27639FjWotn','_waitForImageEditorComponent','_loadingView','disconnect','uc-cloud-image-editor','ck-reset_all-excluded','_setView','focus','render','target','element','div'];_0x1ebe=function(){return _0x2d81a4;};return _0x1ebe();}import{DialogFocusManagerView as _0x657b35}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x657b35{[_0x415156(0x1c6)];[_0x415156(0x1e0)];[_0x415156(0x1cf)];[_0x415156(0x1d5)];[_0x415156(0x1c5)];constructor(_0x167c59,_0x4a63cc,_0x3f9e95){const _0x2be629=_0x415156;super(_0x167c59),this[_0x2be629(0x1c6)]=this[_0x2be629(0x1cc)](),this[_0x2be629(0x1e0)]=new _0x274590(_0x167c59),this[_0x2be629(0x1cf)]=new _0x3c051c(_0x167c59),this[_0x2be629(0x1d5)]=new _0x44620d(_0x167c59,_0x3f9e95),this[_0x2be629(0x1c5)]=new _0x5a14e6(_0x167c59),this[_0x2be629(0x1c5)][_0x2be629(0x1d3)](this[_0x2be629(0x1d1)]()),this[_0x2be629(0x1f4)](_0x2be629(0x1ea),_0x4a63cc),this[_0x2be629(0x1d3)]({'tag':_0x2be629(0x1e9),'attributes':{'class':['ck',_0x2be629(0x1e3),_0x2be629(0x1ca)],'tabindex':'-1'},'children':this[_0x2be629(0x1c6)]}),this[_0x2be629(0x1e4)](),this[_0x2be629(0x1d4)](_0x2be629(0x1e6),()=>{const _0x23232d=_0x2be629;this[_0x23232d(0x1df)](this[_0x23232d(0x1e8)],_0x50b083=>{const _0x451cc0=_0x23232d;this[_0x451cc0(0x1db)](_0x50b083);});}),this['on'](_0x2be629(0x1ef),()=>{const _0x1856f9=_0x2be629;this[_0x1856f9(0x1e4)]();}),this[_0x2be629(0x1f8)]();}[_0x415156(0x1e5)](){const _0x24dffc=_0x415156;this[_0x24dffc(0x1e8)][_0x24dffc(0x1e5)]();}[_0x415156(0x1e4)](){const _0x1a38d1=_0x415156;switch(this[_0x1a38d1(0x1c6)][_0x1a38d1(0x1f7)](),this[_0x1a38d1(0x1ea)]){case _0x1a38d1(0x1ec):this[_0x1a38d1(0x1c6)][_0x1a38d1(0x1f0)](this[_0x1a38d1(0x1e0)]);break;case _0x1a38d1(0x1d9):this[_0x1a38d1(0x1c6)][_0x1a38d1(0x1f0)](this[_0x1a38d1(0x1cf)]);break;case _0x1a38d1(0x1eb):this[_0x1a38d1(0x1c6)][_0x1a38d1(0x1c4)]([this[_0x1a38d1(0x1d5)],this[_0x1a38d1(0x1c5)]]);}}[_0x415156(0x1df)](_0x2e9e52,_0x25527c){const _0x242505=_0x415156,_0x3d6300=_0x242505(0x1e2),_0x5c7633=_0x2e9e52[_0x242505(0x1da)](_0x3d6300);if(_0x5c7633)return _0x25527c(_0x5c7633);const _0x3b9e83=new MutationObserver(_0x497c18=>{const _0x3db3f4=_0x242505,_0x3201a8=_0x497c18[_0x3db3f4(0x1f3)](_0x1272a0=>_0x1272a0[_0x3db3f4(0x1e7)]===_0x2e9e52&&_0x1272a0[_0x3db3f4(0x1dc)][_0x3db3f4(0x1c8)]>0x0&&_0x1272a0[_0x3db3f4(0x1dc)][0x0][_0x3db3f4(0x1d6)][_0x3db3f4(0x1cb)]()===_0x3d6300);_0x3201a8[_0x3db3f4(0x1c8)]&&(_0x3b9e83[_0x3db3f4(0x1e1)](),_0x25527c(_0x3201a8[0x0][_0x3db3f4(0x1dc)][0x0]));});_0x3b9e83[_0x242505(0x1ce)](_0x2e9e52,{'childList':!0x0,'subtree':!0x0});}[_0x415156(0x1db)](_0x8a4526){const _0x168c8d=_0x415156;_0x8a4526[_0x168c8d(0x1ee)](_0x168c8d(0x1f5),_0x3a0aa1=>{const _0x499cf1=_0x168c8d;this[_0x499cf1(0x1f2)](_0x499cf1(0x1f5),{'imageSrc':_0x3a0aa1[_0x499cf1(0x1d7)][_0x499cf1(0x1d8)]});}),_0x8a4526[_0x168c8d(0x1ee)](_0x168c8d(0x1d0),()=>{const _0x18cf00=_0x168c8d;this[_0x18cf00(0x1f2)](_0x18cf00(0x1d0));});}[_0x415156(0x1f8)](){const _0x34821a=_0x415156;this[_0x34821a(0x1cf)]['on'](_0x34821a(0x1d2),()=>{const _0x1ee60d=_0x34821a;this[_0x1ee60d(0x1f2)](_0x1ee60d(0x1d2));});}}
23
+ const _0x35ea99=_0x268d;(function(_0x1ac6f7,_0x2c04e3){const _0x50e32c=_0x268d,_0x37abf7=_0x1ac6f7();while(!![]){try{const _0x573cb9=parseInt(_0x50e32c(0x159))/0x1*(parseInt(_0x50e32c(0x166))/0x2)+parseInt(_0x50e32c(0x138))/0x3+parseInt(_0x50e32c(0x155))/0x4*(-parseInt(_0x50e32c(0x136))/0x5)+-parseInt(_0x50e32c(0x13c))/0x6+parseInt(_0x50e32c(0x147))/0x7+parseInt(_0x50e32c(0x14e))/0x8*(parseInt(_0x50e32c(0x15a))/0x9)+-parseInt(_0x50e32c(0x14d))/0xa;if(_0x573cb9===_0x2c04e3)break;else _0x37abf7['push'](_0x37abf7['shift']());}catch(_0x2156ab){_0x37abf7['push'](_0x37abf7['shift']());}}}(_0x2e20,0x21b89));import{View as _0x443878}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x4b8381}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x15ded6}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x2e7a14}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x2d6c99}from'../../utils/dialogfocusmanagerview.js';function _0x2e20(){const _0x56e31c=['_errorView','toLowerCase','detail','5OcUoAt','apply','405990JHfmXE','nodeName','setTemplate','querySelector','1576164mOQDwr','error','fire','_waitForImageEditorComponent','cancel','ck-uploadcare-form','clear','filter','render','_items','change:status','1492295lcwuKC','addEventListener','focus','length','disconnect','_addErrorViewListeners','2394320dCBjSc','192TluFYM','retry','addMany','element','_editingView','_loadingView','_setView','529940SrBQeS','createCollection','_addUploadcareImageEditorListeners','set','157793gDqeTv','99909MRMrKo','uc-cloud-image-editor','observe','add','ck-reset_all-excluded','target','addedNodes','div','status','_focusableView','getFocusableElement','ready','2ELpXlA','uploading','once','cdnUrl'];_0x2e20=function(){return _0x56e31c;};return _0x2e20();}function _0x268d(_0x4b22eb,_0x4c2849){const _0x2e20b7=_0x2e20();return _0x268d=function(_0x268ddb,_0x3f38a2){_0x268ddb=_0x268ddb-0x133;let _0x4e045d=_0x2e20b7[_0x268ddb];return _0x4e045d;},_0x268d(_0x4b22eb,_0x4c2849);}import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x2d6c99{[_0x35ea99(0x145)];[_0x35ea99(0x153)];[_0x35ea99(0x133)];[_0x35ea99(0x152)];[_0x35ea99(0x163)];constructor(_0x498fd5,_0x4ed0c8,_0x3c1da1){const _0x2d2c40=_0x35ea99;super(_0x498fd5),this[_0x2d2c40(0x145)]=this[_0x2d2c40(0x156)](),this[_0x2d2c40(0x153)]=new _0x4b8381(_0x498fd5),this[_0x2d2c40(0x133)]=new _0x15ded6(_0x498fd5),this[_0x2d2c40(0x152)]=new _0x2e7a14(_0x498fd5,_0x3c1da1),this[_0x2d2c40(0x163)]=new _0x443878(_0x498fd5),this[_0x2d2c40(0x163)][_0x2d2c40(0x13a)](this[_0x2d2c40(0x164)]()),this[_0x2d2c40(0x158)](_0x2d2c40(0x162),_0x4ed0c8),this[_0x2d2c40(0x13a)]({'tag':_0x2d2c40(0x161),'attributes':{'class':['ck',_0x2d2c40(0x15e),_0x2d2c40(0x141)],'tabindex':'-1'},'children':this[_0x2d2c40(0x145)]}),this[_0x2d2c40(0x154)](),this[_0x2d2c40(0x168)](_0x2d2c40(0x144),()=>{const _0x5f4e2c=_0x2d2c40;this[_0x5f4e2c(0x13f)](this[_0x5f4e2c(0x151)],_0x42b042=>{const _0x399e2f=_0x5f4e2c;this[_0x399e2f(0x157)](_0x42b042);});}),this['on'](_0x2d2c40(0x146),()=>{const _0x2348dd=_0x2d2c40;this[_0x2348dd(0x154)]();}),this[_0x2d2c40(0x14c)]();}[_0x35ea99(0x149)](){const _0x4e5ee3=_0x35ea99;this[_0x4e5ee3(0x151)][_0x4e5ee3(0x149)]();}[_0x35ea99(0x154)](){const _0x17ebaf=_0x35ea99;switch(this[_0x17ebaf(0x145)][_0x17ebaf(0x142)](),this[_0x17ebaf(0x162)]){case _0x17ebaf(0x167):this[_0x17ebaf(0x145)][_0x17ebaf(0x15d)](this[_0x17ebaf(0x153)]);break;case _0x17ebaf(0x13d):this[_0x17ebaf(0x145)][_0x17ebaf(0x15d)](this[_0x17ebaf(0x133)]);break;case _0x17ebaf(0x165):this[_0x17ebaf(0x145)][_0x17ebaf(0x150)]([this[_0x17ebaf(0x152)],this[_0x17ebaf(0x163)]]);}}[_0x35ea99(0x13f)](_0x515d0f,_0x2fd018){const _0x2647e2=_0x35ea99,_0x759f8=_0x2647e2(0x15b),_0x1a1778=_0x515d0f[_0x2647e2(0x13b)](_0x759f8);if(_0x1a1778)return _0x2fd018(_0x1a1778);const _0x2733b8=new MutationObserver(_0xa3de84=>{const _0x461c29=_0x2647e2,_0x2887ab=_0xa3de84[_0x461c29(0x143)](_0x23b49d=>_0x23b49d[_0x461c29(0x15f)]===_0x515d0f&&_0x23b49d[_0x461c29(0x160)][_0x461c29(0x14a)]>0x0&&_0x23b49d[_0x461c29(0x160)][0x0][_0x461c29(0x139)][_0x461c29(0x134)]()===_0x759f8);_0x2887ab[_0x461c29(0x14a)]&&(_0x2733b8[_0x461c29(0x14b)](),_0x2fd018(_0x2887ab[0x0][_0x461c29(0x160)][0x0]));});_0x2733b8[_0x2647e2(0x15c)](_0x515d0f,{'childList':!0x0,'subtree':!0x0});}[_0x35ea99(0x157)](_0x564a25){const _0x37a73e=_0x35ea99;_0x564a25[_0x37a73e(0x148)](_0x37a73e(0x137),_0x62acce=>{const _0x342d82=_0x37a73e;this[_0x342d82(0x13e)](_0x342d82(0x137),{'imageSrc':_0x62acce[_0x342d82(0x135)][_0x342d82(0x169)]});}),_0x564a25[_0x37a73e(0x148)](_0x37a73e(0x140),()=>{const _0xf9dc03=_0x37a73e;this[_0xf9dc03(0x13e)](_0xf9dc03(0x140));});}[_0x35ea99(0x14c)](){const _0x3a1986=_0x35ea99;this[_0x3a1986(0x133)]['on'](_0x3a1986(0x14f),()=>{const _0x6eab16=_0x3a1986;this[_0x6eab16(0x13e)](_0x6eab16(0x14f));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x459380=_0x496b;function _0x4e1a(){const _0x2117a0=['document','12UiYJXW','config','element','489924vAgEtF','946278juuxZb','unbind','getSelectedElement','set','imageInline','plugins','execute','7tWOCpi','116986WyDQQK','imageEditController','uploadcare.allowExternalImagesEditing','isEnabled','165JgVaXJ','model','refresh','requires','selection','2043552tMnpdF','873528lllGmg','20BNeJMS','isActive','bind','648570cfbTML','editor','imageBlock','15105OTewMd','_isEditable','get','28AMFyuJ'];_0x4e1a=function(){return _0x2117a0;};return _0x4e1a();}(function(_0x1efa1c,_0x1d330b){const _0x21c3c6=_0x496b,_0x1e1191=_0x1efa1c();while(!![]){try{const _0x594065=-parseInt(_0x21c3c6(0x1a1))/0x1*(-parseInt(_0x21c3c6(0x195))/0x2)+-parseInt(_0x21c3c6(0x1af))/0x3+parseInt(_0x21c3c6(0x193))/0x4*(-parseInt(_0x21c3c6(0x190))/0x5)+parseInt(_0x21c3c6(0x1ab))/0x6+-parseInt(_0x21c3c6(0x1a0))/0x7*(-parseInt(_0x21c3c6(0x1aa))/0x8)+parseInt(_0x21c3c6(0x199))/0x9*(parseInt(_0x21c3c6(0x1ac))/0xa)+-parseInt(_0x21c3c6(0x1a5))/0xb*(parseInt(_0x21c3c6(0x198))/0xc);if(_0x594065===_0x1d330b)break;else _0x1e1191['push'](_0x1e1191['shift']());}catch(_0x378370){_0x1e1191['push'](_0x1e1191['shift']());}}}(_0x4e1a,0x71282));function _0x496b(_0x6a248,_0x18e953){const _0x4e1ab1=_0x4e1a();return _0x496b=function(_0x496ba5,_0x230652){_0x496ba5=_0x496ba5-0x18e;let _0x58ae78=_0x4e1ab1[_0x496ba5];return _0x58ae78;},_0x496b(_0x6a248,_0x18e953);}import{Command as _0x59a56b}from'ckeditor5/src/core.js';import{Dialog as _0x1ff639}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x21b649}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x3f5e50}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x59a56b{[_0x459380(0x1a2)];static get[_0x459380(0x1a8)](){return[_0x1ff639];}[_0x459380(0x191)];constructor(_0x2b7b0a){const _0x111366=_0x459380;super(_0x2b7b0a),this[_0x111366(0x1a2)]=void 0x0,this[_0x111366(0x191)]=_0x3f5e50(_0x2b7b0a[_0x111366(0x196)][_0x111366(0x192)](_0x111366(0x1a3))||[]),this[_0x111366(0x19c)]({'isActive':!0x1});}[_0x459380(0x1a7)](){const _0x5f2b81=_0x459380,_0x51dbfb=this[_0x5f2b81(0x18e)][_0x5f2b81(0x1a6)][_0x5f2b81(0x194)][_0x5f2b81(0x1a9)][_0x5f2b81(0x19b)]();this[_0x5f2b81(0x1a4)]=this[_0x5f2b81(0x191)](_0x51dbfb);}[_0x459380(0x19f)](){const _0x147cb5=_0x459380;this[_0x147cb5(0x1a2)]&&(this[_0x147cb5(0x19a)](_0x147cb5(0x1ad)),this[_0x147cb5(0x1a2)]=void 0x0);const _0x3cbc27=this[_0x147cb5(0x18e)][_0x147cb5(0x1a6)][_0x147cb5(0x194)][_0x147cb5(0x1a9)][_0x147cb5(0x19b)]();_0x3cbc27&&(_0x3cbc27['is'](_0x147cb5(0x197),_0x147cb5(0x18f))||_0x3cbc27['is'](_0x147cb5(0x197),_0x147cb5(0x19d)))&&(this[_0x147cb5(0x1a2)]=new _0x21b649(this[_0x147cb5(0x18e)],this[_0x147cb5(0x18e)][_0x147cb5(0x19e)][_0x147cb5(0x192)](_0x1ff639),_0x3cbc27),this[_0x147cb5(0x1ae)](_0x147cb5(0x1ad))['to'](this[_0x147cb5(0x1a2)],_0x147cb5(0x1ad)));}}
23
+ function _0xa206(_0x414c7f,_0x2c782c){const _0x44865b=_0x4486();return _0xa206=function(_0xa2065a,_0x899980){_0xa2065a=_0xa2065a-0x1c2;let _0x29f9f0=_0x44865b[_0xa2065a];return _0x29f9f0;},_0xa206(_0x414c7f,_0x2c782c);}function _0x4486(){const _0x3029dd=['14400130evUdyp','isActive','uploadcare.allowExternalImagesEditing','bind','editor','1LkCwUb','4943981SAUWzi','3718319XCQBvG','get','model','imageInline','config','36mgYcpc','document','imageBlock','plugins','2460626RHndga','getSelectedElement','55vfcfoj','339tTGcIi','48316TRqYMn','requires','isEnabled','2087608xLwzHn','refresh','selection','unbind','imageEditController','_isEditable','set','506130mfJLyc','element','execute'];_0x4486=function(){return _0x3029dd;};return _0x4486();}const _0x15996b=_0xa206;(function(_0x41ddd0,_0x1cc21c){const _0x16fc0a=_0xa206,_0xacc241=_0x41ddd0();while(!![]){try{const _0x10ab20=-parseInt(_0x16fc0a(0x1d4))/0x1*(-parseInt(_0x16fc0a(0x1df))/0x2)+-parseInt(_0x16fc0a(0x1e2))/0x3*(parseInt(_0x16fc0a(0x1c2))/0x4)+parseInt(_0x16fc0a(0x1e1))/0x5*(parseInt(_0x16fc0a(0x1cc))/0x6)+-parseInt(_0x16fc0a(0x1d5))/0x7+-parseInt(_0x16fc0a(0x1c5))/0x8*(parseInt(_0x16fc0a(0x1db))/0x9)+parseInt(_0x16fc0a(0x1cf))/0xa+parseInt(_0x16fc0a(0x1d6))/0xb;if(_0x10ab20===_0x1cc21c)break;else _0xacc241['push'](_0xacc241['shift']());}catch(_0x579cf2){_0xacc241['push'](_0xacc241['shift']());}}}(_0x4486,0xc87fe));import{Command as _0x6b022d}from'ckeditor5/src/core.js';import{Dialog as _0x5040f0}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x56f8cc}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x1211a7}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x6b022d{[_0x15996b(0x1c9)];static get[_0x15996b(0x1c3)](){return[_0x5040f0];}[_0x15996b(0x1ca)];constructor(_0x1491f3){const _0x49ad7d=_0x15996b;super(_0x1491f3),this[_0x49ad7d(0x1c9)]=void 0x0,this[_0x49ad7d(0x1ca)]=_0x1211a7(_0x1491f3[_0x49ad7d(0x1da)][_0x49ad7d(0x1d7)](_0x49ad7d(0x1d1))||[]),this[_0x49ad7d(0x1cb)]({'isActive':!0x1});}[_0x15996b(0x1c6)](){const _0x586a6a=_0x15996b,_0x45dd11=this[_0x586a6a(0x1d3)][_0x586a6a(0x1d8)][_0x586a6a(0x1dc)][_0x586a6a(0x1c7)][_0x586a6a(0x1e0)]();this[_0x586a6a(0x1c4)]=this[_0x586a6a(0x1ca)](_0x45dd11);}[_0x15996b(0x1ce)](){const _0x5f5103=_0x15996b;this[_0x5f5103(0x1c9)]&&(this[_0x5f5103(0x1c8)](_0x5f5103(0x1d0)),this[_0x5f5103(0x1c9)]=void 0x0);const _0x3c8fce=this[_0x5f5103(0x1d3)][_0x5f5103(0x1d8)][_0x5f5103(0x1dc)][_0x5f5103(0x1c7)][_0x5f5103(0x1e0)]();_0x3c8fce&&(_0x3c8fce['is'](_0x5f5103(0x1cd),_0x5f5103(0x1dd))||_0x3c8fce['is'](_0x5f5103(0x1cd),_0x5f5103(0x1d9)))&&(this[_0x5f5103(0x1c9)]=new _0x56f8cc(this[_0x5f5103(0x1d3)],this[_0x5f5103(0x1d3)][_0x5f5103(0x1de)][_0x5f5103(0x1d7)](_0x5040f0),_0x3c8fce),this[_0x5f5103(0x1d2)](_0x5f5103(0x1d0))['to'](this[_0x5f5103(0x1c9)],_0x5f5103(0x1d0)));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x558d30=_0x4d91;(function(_0x44fce7,_0x1231af){const _0xc1531c=_0x4d91,_0x4c8bbd=_0x44fce7();while(!![]){try{const _0x506af2=parseInt(_0xc1531c(0x1f5))/0x1*(parseInt(_0xc1531c(0x1fc))/0x2)+parseInt(_0xc1531c(0x1e8))/0x3*(parseInt(_0xc1531c(0x1e9))/0x4)+-parseInt(_0xc1531c(0x1f2))/0x5*(parseInt(_0xc1531c(0x1ea))/0x6)+-parseInt(_0xc1531c(0x1f8))/0x7+-parseInt(_0xc1531c(0x1ef))/0x8+-parseInt(_0xc1531c(0x1f6))/0x9*(-parseInt(_0xc1531c(0x1f4))/0xa)+parseInt(_0xc1531c(0x1f3))/0xb;if(_0x506af2===_0x1231af)break;else _0x4c8bbd['push'](_0x4c8bbd['shift']());}catch(_0x452c71){_0x4c8bbd['push'](_0x4c8bbd['shift']());}}}(_0x5d98,0x915ca));import{Plugin as _0x109bcf}from'ckeditor5/src/core.js';import{Notification as _0x7443b6}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x2096ad}from'./uploadcareimageeditcommand.js';function _0x5d98(){const _0x2204a9=['3641840uKKtZV','53293XRWUVx','9yztmDC','UploadcareImageEditEditing','4039028rGEuwi','init','uploadcareImageEdit','ImageUtils','20ZcQUMS','add','commands','5478jtICRz','2504tQuAts','6OEoYCL','isPremiumPlugin','requires','pluginName','isOfficialPlugin','8841872SLkUUQ','ImageEditing','uploadcareImageReplace','4819485ZpXdpD','13214817wMedUy'];_0x5d98=function(){return _0x2204a9;};return _0x5d98();}function _0x4d91(_0x28b304,_0x983c9b){const _0x5d9838=_0x5d98();return _0x4d91=function(_0x4d91f9,_0x542c7d){_0x4d91f9=_0x4d91f9-0x1e8;let _0x25277a=_0x5d9838[_0x4d91f9];return _0x25277a;},_0x4d91(_0x28b304,_0x983c9b);}import{UploadcareImageReplaceCommand as _0x12bbc0}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x3f97fb}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x109bcf{static get[_0x558d30(0x1ed)](){const _0x3ac405=_0x558d30;return _0x3ac405(0x1f7);}static get[_0x558d30(0x1ec)](){const _0x29d7af=_0x558d30;return[_0x3f97fb,_0x7443b6,_0x29d7af(0x1fb),_0x29d7af(0x1f0)];}static get[_0x558d30(0x1ee)](){return!0x0;}static get[_0x558d30(0x1eb)](){return!0x0;}[_0x558d30(0x1f9)](){const _0x2ed7b4=_0x558d30,{editor:_0x28ac94}=this;_0x28ac94[_0x2ed7b4(0x1fe)][_0x2ed7b4(0x1fd)](_0x2ed7b4(0x1fa),new _0x2096ad(_0x28ac94)),_0x28ac94[_0x2ed7b4(0x1fe)][_0x2ed7b4(0x1fd)](_0x2ed7b4(0x1f1),new _0x12bbc0(_0x28ac94));}}
23
+ const _0x179477=_0x3eb8;function _0x3eb8(_0x2fa6c5,_0x378ade){const _0x2a0839=_0x2a08();return _0x3eb8=function(_0x3eb829,_0x56d8d5){_0x3eb829=_0x3eb829-0x1a1;let _0x4ed9c7=_0x2a0839[_0x3eb829];return _0x4ed9c7;},_0x3eb8(_0x2fa6c5,_0x378ade);}(function(_0x15cc19,_0x592c44){const _0x29d2d6=_0x3eb8,_0x42be6e=_0x15cc19();while(!![]){try{const _0x4df7f6=parseInt(_0x29d2d6(0x1a1))/0x1*(parseInt(_0x29d2d6(0x1ae))/0x2)+-parseInt(_0x29d2d6(0x1b2))/0x3*(parseInt(_0x29d2d6(0x1a9))/0x4)+parseInt(_0x29d2d6(0x1a5))/0x5+-parseInt(_0x29d2d6(0x1a7))/0x6+-parseInt(_0x29d2d6(0x1b6))/0x7*(parseInt(_0x29d2d6(0x1af))/0x8)+parseInt(_0x29d2d6(0x1b3))/0x9*(parseInt(_0x29d2d6(0x1a2))/0xa)+parseInt(_0x29d2d6(0x1ac))/0xb;if(_0x4df7f6===_0x592c44)break;else _0x42be6e['push'](_0x42be6e['shift']());}catch(_0x14d195){_0x42be6e['push'](_0x42be6e['shift']());}}}(_0x2a08,0x87f78));import{Plugin as _0x4a7b08}from'ckeditor5/src/core.js';import{Notification as _0x561b9a}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x108576}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x5724d7}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x336a54}from'../uploadcareediting.js';function _0x2a08(){const _0x32e059=['5417355HmcIxl','init','6649272IGzIHR','pluginName','16AYXWKJ','isPremiumPlugin','requires','2840783PXrhkK','isOfficialPlugin','14346cVhneX','48LGmhSS','commands','uploadcareImageEdit','189855RZLkcB','4733523izgaIE','uploadcareImageReplace','ImageEditing','602077qdyccZ','add','79QcCCXq','10RJKLXR','UploadcareImageEditEditing','ImageUtils'];_0x2a08=function(){return _0x32e059;};return _0x2a08();}export class UploadcareImageEditEditing extends _0x4a7b08{static get[_0x179477(0x1a8)](){const _0x3aa23e=_0x179477;return _0x3aa23e(0x1a3);}static get[_0x179477(0x1ab)](){const _0x270106=_0x179477;return[_0x336a54,_0x561b9a,_0x270106(0x1a4),_0x270106(0x1b5)];}static get[_0x179477(0x1ad)](){return!0x0;}static get[_0x179477(0x1aa)](){return!0x0;}[_0x179477(0x1a6)](){const _0x276fd1=_0x179477,{editor:_0xa22395}=this;_0xa22395[_0x276fd1(0x1b0)][_0x276fd1(0x1b7)](_0x276fd1(0x1b1),new _0x108576(_0xa22395)),_0xa22395[_0x276fd1(0x1b0)][_0x276fd1(0x1b7)](_0x276fd1(0x1b4),new _0x5724d7(_0xa22395));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x22efda}from'ckeditor5/src/core.js';import{ButtonView as _0x35a042}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2958ae}from'ckeditor5/src/icons.js';import{createElement as _0x29d62a}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x22efda{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x2c2c93=this['editor'];_0x2c2c93['ui']['componentFactory']['add']('uploadcareImageEdit',_0xab4e5d=>{const _0x139764=_0x2c2c93['commands']['get']('uploadcareImageEdit'),_0x1038aa=new _0x35a042(_0xab4e5d),t=_0xab4e5d['t'];return _0x1038aa['set']({'icon':_0x2958ae,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1038aa['bind']('isEnabled')['to'](_0x139764),_0x1038aa['bind']('isOn')['to'](_0x139764,'isActive'),this['listenTo'](_0x1038aa,'execute',()=>{_0x2c2c93['execute']('uploadcareImageEdit'),_0x2c2c93['editing']['view']['focus']();}),_0x1038aa;}),this['_initConfig']();}['_initConfig'](){const _0x22ce16=_0x29d62a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x22ce16),this['listenTo'](this['editor'],'destroy',()=>{_0x22ce16['remove']();});}}
23
+ import{Plugin as _0x3799e7}from'ckeditor5/src/core.js';import{ButtonView as _0x407a2c}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x19447e}from'ckeditor5/src/icons.js';import{createElement as _0x5c04f}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x3799e7{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x42c0af=this['editor'];_0x42c0af['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5aa6bb=>{const _0x2e5be8=_0x42c0af['commands']['get']('uploadcareImageEdit'),_0x233a3a=new _0x407a2c(_0x5aa6bb),t=_0x5aa6bb['t'];return _0x233a3a['set']({'icon':_0x19447e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x233a3a['bind']('isEnabled')['to'](_0x2e5be8),_0x233a3a['bind']('isOn')['to'](_0x2e5be8,'isActive'),this['listenTo'](_0x233a3a,'execute',()=>{_0x42c0af['execute']('uploadcareImageEdit'),_0x42c0af['editing']['view']['focus']();}),_0x233a3a;}),this['_initConfig']();}['_initConfig'](){const _0x5c11b8=_0x5c04f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5c11b8),this['listenTo'](this['editor'],'destroy',()=>{_0x5c11b8['remove']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x9fb020=_0x12e1;(function(_0x5c8ca6,_0x18eeb1){const _0x556851=_0x12e1,_0x5475e3=_0x5c8ca6();while(!![]){try{const _0x210c2a=parseInt(_0x556851(0xb9))/0x1*(parseInt(_0x556851(0xa3))/0x2)+parseInt(_0x556851(0xb6))/0x3*(-parseInt(_0x556851(0xb4))/0x4)+-parseInt(_0x556851(0xa8))/0x5*(-parseInt(_0x556851(0xa1))/0x6)+parseInt(_0x556851(0xa0))/0x7*(parseInt(_0x556851(0xa9))/0x8)+-parseInt(_0x556851(0xbb))/0x9*(parseInt(_0x556851(0xab))/0xa)+-parseInt(_0x556851(0xb8))/0xb+parseInt(_0x556851(0xac))/0xc*(parseInt(_0x556851(0xa2))/0xd);if(_0x210c2a===_0x18eeb1)break;else _0x5475e3['push'](_0x5475e3['shift']());}catch(_0x40d973){_0x5475e3['push'](_0x5475e3['shift']());}}}(_0x8267,0xf3f58));function _0x12e1(_0x163de7,_0xa2f232){const _0x82670f=_0x8267();return _0x12e1=function(_0x12e117,_0x3d6bca){_0x12e117=_0x12e117-0x9f;let _0x50d343=_0x82670f[_0x12e117];return _0x50d343;},_0x12e1(_0x163de7,_0xa2f232);}function _0x8267(){const _0x53229c=['model','9982430jgBKLz','24EpVYcR','getSelectedElement','srcset','refresh','element','execute','sizes','isEnabled','1138372ZBpkvS','imageBlock','3vPMPln','imageInline','6458606LaammE','908icFZVV','selection','9GkjEBl','document','12180329zTvqGd','788430QbZAju','1672892jsGHJt','1052QcsARh','editor','setAttributes','change','removeAttribute','15wOVGpn','8dIHgDg'];_0x8267=function(){return _0x53229c;};return _0x8267();}import{Command as _0x4dc7ae}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x4dc7ae{[_0x9fb020(0xaf)](){const _0x534566=_0x9fb020,_0x27b94d=this[_0x534566(0xa4)][_0x534566(0xaa)][_0x534566(0x9f)][_0x534566(0xba)][_0x534566(0xad)]();this[_0x534566(0xb3)]=Boolean(_0x27b94d&&(_0x27b94d['is'](_0x534566(0xb0),_0x534566(0xb5))||_0x27b94d['is'](_0x534566(0xb0),_0x534566(0xb7))));}[_0x9fb020(0xb1)](_0x3aa698){const _0x4fef4d=_0x9fb020,_0x5e74d7=this[_0x4fef4d(0xa4)][_0x4fef4d(0xaa)][_0x4fef4d(0x9f)][_0x4fef4d(0xba)][_0x4fef4d(0xad)]();this[_0x4fef4d(0xa4)][_0x4fef4d(0xaa)][_0x4fef4d(0xa6)](_0x2b5aef=>{const _0x45faf9=_0x4fef4d;_0x2b5aef[_0x45faf9(0xa5)](_0x3aa698,_0x5e74d7),_0x2b5aef[_0x45faf9(0xa7)](_0x45faf9(0xae),_0x5e74d7),_0x2b5aef[_0x45faf9(0xa7)](_0x45faf9(0xb2),_0x5e74d7);});}}
23
+ const _0x410e1a=_0x117b;(function(_0xdab90d,_0x3fe9aa){const _0x555dbc=_0x117b,_0x50276e=_0xdab90d();while(!![]){try{const _0x331a9a=-parseInt(_0x555dbc(0x17f))/0x1+parseInt(_0x555dbc(0x172))/0x2+parseInt(_0x555dbc(0x16d))/0x3+parseInt(_0x555dbc(0x179))/0x4*(parseInt(_0x555dbc(0x176))/0x5)+-parseInt(_0x555dbc(0x171))/0x6*(-parseInt(_0x555dbc(0x17d))/0x7)+parseInt(_0x555dbc(0x17a))/0x8*(parseInt(_0x555dbc(0x174))/0x9)+-parseInt(_0x555dbc(0x180))/0xa;if(_0x331a9a===_0x3fe9aa)break;else _0x50276e['push'](_0x50276e['shift']());}catch(_0x39430f){_0x50276e['push'](_0x50276e['shift']());}}}(_0x471c,0x6f0f2));function _0x117b(_0x154410,_0x127d54){const _0x471cbb=_0x471c();return _0x117b=function(_0x117b93,_0x46017f){_0x117b93=_0x117b93-0x167;let _0x243f1f=_0x471cbb[_0x117b93];return _0x243f1f;},_0x117b(_0x154410,_0x127d54);}import{Command as _0x1f11cf}from'ckeditor5/src/core.js';function _0x471c(){const _0x2e616e=['isEnabled','595445awnmXz','13833890Hwnbdt','imageInline','setAttributes','sizes','removeAttribute','refresh','imageBlock','1700331dRJUjy','change','selection','document','2897496rmyIFC','51536lzrFnX','element','150795QIElZP','execute','5ZfOwad','editor','model','3288444qTMhPx','256ssbSJy','srcset','getSelectedElement','7Eoqyvb'];_0x471c=function(){return _0x2e616e;};return _0x471c();}export class UploadcareImageReplaceCommand extends _0x1f11cf{[_0x410e1a(0x16b)](){const _0x2bede6=_0x410e1a,_0x1ecb49=this[_0x2bede6(0x177)][_0x2bede6(0x178)][_0x2bede6(0x170)][_0x2bede6(0x16f)][_0x2bede6(0x17c)]();this[_0x2bede6(0x17e)]=Boolean(_0x1ecb49&&(_0x1ecb49['is'](_0x2bede6(0x173),_0x2bede6(0x16c))||_0x1ecb49['is'](_0x2bede6(0x173),_0x2bede6(0x167))));}[_0x410e1a(0x175)](_0x2617b0){const _0x149d07=_0x410e1a,_0x3b7d6a=this[_0x149d07(0x177)][_0x149d07(0x178)][_0x149d07(0x170)][_0x149d07(0x16f)][_0x149d07(0x17c)]();this[_0x149d07(0x177)][_0x149d07(0x178)][_0x149d07(0x16e)](_0x9909d4=>{const _0x2c2787=_0x149d07;_0x9909d4[_0x2c2787(0x168)](_0x2617b0,_0x3b7d6a),_0x9909d4[_0x2c2787(0x16a)](_0x2c2787(0x17b),_0x3b7d6a),_0x9909d4[_0x2c2787(0x16a)](_0x2c2787(0x169),_0x3b7d6a);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x52741c=_0x4976;(function(_0x135d27,_0xc5339a){var _0x561f82=_0x4976,_0x11f62b=_0x135d27();while(!![]){try{var _0x1b00fc=-parseInt(_0x561f82(0xfc))/0x1+parseInt(_0x561f82(0x106))/0x2+parseInt(_0x561f82(0x107))/0x3*(parseInt(_0x561f82(0x101))/0x4)+parseInt(_0x561f82(0x105))/0x5+-parseInt(_0x561f82(0x10b))/0x6*(-parseInt(_0x561f82(0x109))/0x7)+parseInt(_0x561f82(0x103))/0x8*(parseInt(_0x561f82(0xfd))/0x9)+-parseInt(_0x561f82(0x104))/0xa*(parseInt(_0x561f82(0xff))/0xb);if(_0x1b00fc===_0xc5339a)break;else _0x11f62b['push'](_0x11f62b['shift']());}catch(_0x5a67c7){_0x11f62b['push'](_0x11f62b['shift']());}}}(_0x4660,0x1878f));import{Plugin as _0x2ea697}from'ckeditor5/src/core.js';function _0x4660(){var _0x356781=['6NIrRYQ','12195ymwAeG','63NEhqwc','isPremiumPlugin','1118414kKJhBT','isOfficialPlugin','88jhXSDF','UploadcareImageEdit','60280wufQeS','40FkbYHu','475145FLyemm','385222yejYDK','14904cWqjDA','pluginName','486143OLfuYl','requires'];_0x4660=function(){return _0x356781;};return _0x4660();}import{UploadcareImageEditEditing as _0x3e97b1}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0xeee969}from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x4976(_0x30cc33,_0x4a52b6){var _0x4660a7=_0x4660();return _0x4976=function(_0x49760f,_0x48e70a){_0x49760f=_0x49760f-0xfc;var _0x3b442b=_0x4660a7[_0x49760f];return _0x3b442b;},_0x4976(_0x30cc33,_0x4a52b6);}export class UploadcareImageEdit extends _0x2ea697{static get[_0x52741c(0x108)](){var _0x807d45=_0x52741c;return _0x807d45(0x102);}static get[_0x52741c(0x10a)](){return[_0x3e97b1,_0xeee969];}static get[_0x52741c(0x100)](){return!0x0;}static get[_0x52741c(0xfe)](){return!0x0;}}
23
+ var _0x4c113e=_0x2b5b;(function(_0x3ba144,_0x446820){var _0x1eca9e=_0x2b5b,_0x4e9f35=_0x3ba144();while(!![]){try{var _0x24fbc6=parseInt(_0x1eca9e(0xf1))/0x1+parseInt(_0x1eca9e(0xef))/0x2*(parseInt(_0x1eca9e(0xe9))/0x3)+-parseInt(_0x1eca9e(0xf3))/0x4+-parseInt(_0x1eca9e(0xe5))/0x5*(parseInt(_0x1eca9e(0xf0))/0x6)+-parseInt(_0x1eca9e(0xed))/0x7+parseInt(_0x1eca9e(0xe7))/0x8+parseInt(_0x1eca9e(0xec))/0x9*(-parseInt(_0x1eca9e(0xea))/0xa);if(_0x24fbc6===_0x446820)break;else _0x4e9f35['push'](_0x4e9f35['shift']());}catch(_0x2cb492){_0x4e9f35['push'](_0x4e9f35['shift']());}}}(_0x3dd1,0x4af71));function _0x3dd1(){var _0x4e4023=['195456yFresh','426469Xyyxct','requires','1256436dVmIGv','25lwLsDy','UploadcareImageEdit','4903600KVyUlo','isPremiumPlugin','228411bgueVH','90heAFgt','pluginName','2007ArmtmB','2839480YAjySV','isOfficialPlugin','4jZvfgY'];_0x3dd1=function(){return _0x4e4023;};return _0x3dd1();}function _0x2b5b(_0x9c6bb,_0x5debfe){var _0x3dd1e3=_0x3dd1();return _0x2b5b=function(_0x2b5ba1,_0x3e2923){_0x2b5ba1=_0x2b5ba1-0xe5;var _0x5513e8=_0x3dd1e3[_0x2b5ba1];return _0x5513e8;},_0x2b5b(_0x9c6bb,_0x5debfe);}import{Plugin as _0x17b7bd}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x627aae}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x404a7a}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x17b7bd{static get[_0x4c113e(0xeb)](){var _0x30585b=_0x4c113e;return _0x30585b(0xe6);}static get[_0x4c113e(0xf2)](){return[_0x627aae,_0x404a7a];}static get[_0x4c113e(0xee)](){return!0x0;}static get[_0x4c113e(0xe8)](){return!0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4cae(_0x17f966,_0x595f06){const _0xb5384d=_0xb538();return _0x4cae=function(_0x4caeef,_0x3e3952){_0x4caeef=_0x4caeef-0x1ef;let _0x349ea9=_0xb5384d[_0x4caeef];return _0x349ea9;},_0x4cae(_0x17f966,_0x595f06);}const _0x418854=_0x4cae;(function(_0x5f061b,_0x58116c){const _0x45cc7c=_0x4cae,_0xc5f158=_0x5f061b();while(!![]){try{const _0x2186bc=-parseInt(_0x45cc7c(0x23f))/0x1*(parseInt(_0x45cc7c(0x1fe))/0x2)+parseInt(_0x45cc7c(0x206))/0x3*(-parseInt(_0x45cc7c(0x1ef))/0x4)+-parseInt(_0x45cc7c(0x222))/0x5+parseInt(_0x45cc7c(0x218))/0x6+-parseInt(_0x45cc7c(0x224))/0x7+parseInt(_0x45cc7c(0x21e))/0x8*(-parseInt(_0x45cc7c(0x1f0))/0x9)+parseInt(_0x45cc7c(0x1fc))/0xa;if(_0x2186bc===_0x58116c)break;else _0xc5f158['push'](_0xc5f158['shift']());}catch(_0x3c37ab){_0xc5f158['push'](_0xc5f158['shift']());}}}(_0xb538,0x6e943));import{Plugin as _0x393b8c}from'ckeditor5/src/core.js';import{IconDropbox as _0x3f27d7,IconFacebook as _0x2b16ec,IconGoogleDrive as _0x3a5c7d,IconGooglePhotos as _0x5199b6,IconUploadcareImageUpload as _0x209c65,IconUploadcareLink as _0x3be958,IconOneDrive as _0x213289}from'ckeditor5/src/icons.js';import{ButtonView as _0x47d67f,MenuBarMenuListItemButtonView as _0x1d3382}from'ckeditor5/src/ui.js';import{UploadcareSource as _0xc61d86}from'./uploadcareconfig.js';import{getTranslation as _0x2503a6}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';function _0xb538(){const _0x3e3926=['uploadcareLicenseKeyTrialLimit','40iNHZyw','Dropbox','_getIntegrationKey','Local','175195pbjkic','tooltip','4424546mzJoXP','locale','plugins','uploadcareLicenseKeyDomainLimit','licenseKey','uploadcareLicenseKeyUsageLimit','commands','url','_showLicenseError','destroy','_createToolbarButton','uploadcareLicenseKeyValid','Facebook','_createMenuBarButtons','uploadcare.uploader.sourceList','text','_normalizeConfigSourceList','_licenseKeyCheckInterval','ImageInsertUI','has','pluginName','withText','map','init','Replace','GDrive','GPhotos','590659CZgddp','4wlWJzZ','1149048LuHMjP','label','execute','afterInit','assetManager','push','editor','uploadcareLicenseKeyExpired','shortText','uploadcareLicenseKeyInvalid','isImageSelected','_createButton','29321170JGnzgK','registerIntegration','2NaVpsm','type','trialLimit','isPremiumPlugin','get','Insert','icon','config','2291964SOKWZg','_createDropdownButtons','uploadcareLicenseKeyEvaluationLimit','UploadcareUI','bind','usageLimit','entries','URL','isEnabled','Uploadcare','isOfficialPlugin','invalid','featureNotAllowed','uploadcareLicenseKeyNotAllowed','upload','uploadcare','OneDrive','reduce','1085628ZzVbZy','forEach','domainLimit','evaluationLimit','expired'];_0xb538=function(){return _0x3e3926;};return _0xb538();}import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x393b8c{[_0x418854(0x228)];[_0x418854(0x235)];static get[_0x418854(0x238)](){const _0x58e200=_0x418854;return _0x58e200(0x209);}static get[_0x418854(0x210)](){return!0x0;}static get[_0x418854(0x201)](){return!0x0;}[_0x418854(0x23b)](){const _0x23eeb6=_0x418854;this[_0x23eeb6(0x228)]=this[_0x23eeb6(0x1f6)][_0x23eeb6(0x205)][_0x23eeb6(0x202)](_0x23eeb6(0x228));const _0x124553=this[_0x23eeb6(0x1f6)];this[_0x23eeb6(0x235)]=setInterval(()=>{const _0x206d40=_0x23eeb6;let _0x51a0a0;for(const _0x3fd01c in _0x124553){const _0x47fd9e=_0x3fd01c,_0x46b2e5=_0x124553[_0x47fd9e];if(_0x206d40(0x22f)==_0x46b2e5||_0x206d40(0x1f9)==_0x46b2e5||_0x206d40(0x1f7)==_0x46b2e5||_0x206d40(0x227)==_0x46b2e5||_0x206d40(0x213)==_0x46b2e5||_0x206d40(0x208)==_0x46b2e5||_0x206d40(0x21d)==_0x46b2e5||_0x206d40(0x229)==_0x46b2e5){delete _0x124553[_0x47fd9e],_0x51a0a0=_0x46b2e5,clearInterval(this[_0x206d40(0x235)]),this[_0x206d40(0x235)]=void 0x0;break;}}_0x206d40(0x1f9)==_0x51a0a0&&_0x124553[_0x206d40(0x22c)](_0x206d40(0x211)),_0x206d40(0x1f7)==_0x51a0a0&&_0x124553[_0x206d40(0x22c)](_0x206d40(0x21c)),_0x206d40(0x227)==_0x51a0a0&&_0x124553[_0x206d40(0x22c)](_0x206d40(0x21a)),_0x206d40(0x213)==_0x51a0a0&&_0x124553[_0x206d40(0x22c)](_0x206d40(0x212),_0x206d40(0x20f)),_0x206d40(0x208)==_0x51a0a0&&_0x124553[_0x206d40(0x22c)](_0x206d40(0x21b)),_0x206d40(0x21d)==_0x51a0a0&&_0x124553[_0x206d40(0x22c)](_0x206d40(0x200)),_0x206d40(0x229)==_0x51a0a0&&_0x124553[_0x206d40(0x22c)](_0x206d40(0x20b));},0x3e8);}[_0x418854(0x1f3)](){const _0x5c25dd=_0x418854,{editor:_0x52beb1}=this,_0x87eccb=_0x52beb1[_0x5c25dd(0x22a)][_0x5c25dd(0x202)](_0x5c25dd(0x215));if(!_0x87eccb)return;const _0x2cf2ab=this[_0x5c25dd(0x234)](_0x52beb1[_0x5c25dd(0x205)][_0x5c25dd(0x202)](_0x5c25dd(0x232)))[_0x5c25dd(0x217)]((_0x49f4ea,_0x4f109a)=>{const _0x45f190=_0x5c25dd,_0x1d964d=this[_0x45f190(0x220)](_0x4f109a[_0x45f190(0x1ff)]);return _0x49f4ea[_0x1d964d]||(_0x49f4ea[_0x1d964d]=[]),_0x49f4ea[_0x1d964d][_0x45f190(0x1f5)](_0x4f109a),_0x49f4ea;},{});_0x52beb1[_0x5c25dd(0x226)][_0x5c25dd(0x237)](_0x5c25dd(0x236))&&_0x52beb1[_0x5c25dd(0x22a)][_0x5c25dd(0x202)](_0x5c25dd(0x215))&&Object[_0x5c25dd(0x20c)](_0x2cf2ab)[_0x5c25dd(0x219)](([_0x19b8f9,_0x9bdf47])=>{const _0xed49f8=_0x5c25dd;_0x52beb1[_0xed49f8(0x226)][_0xed49f8(0x202)](_0xed49f8(0x236))[_0xed49f8(0x1fd)]({'name':_0x19b8f9,'observable':()=>_0x87eccb,'buttonViewCreator':()=>this[_0xed49f8(0x22e)](_0x9bdf47),'formViewCreator':()=>this[_0xed49f8(0x207)](_0x9bdf47),'menuBarButtonViewCreator':()=>this[_0xed49f8(0x231)](_0x9bdf47),'override':_0xed49f8(0x1f4)!==_0x19b8f9});});}[_0x418854(0x22d)](){const _0x4ba00c=_0x418854;super[_0x4ba00c(0x22d)](),this[_0x4ba00c(0x235)]&&clearInterval(this[_0x4ba00c(0x235)]);}[_0x418854(0x234)](_0x2a1c9f){const _0x2a64f4=_0x418854,{locale:_0x164c9a}=this[_0x2a64f4(0x1f6)];return _0x2a1c9f[_0x2a64f4(0x23a)](_0x35f012=>{const _0xc3d229=_0x2a64f4,_0x3ff5ef=_0x2503a6(_0x164c9a,_0x35f012,_0xc3d229(0x203));switch(_0x35f012){case _0xc61d86[_0xc3d229(0x221)]:return{'icon':_0x209c65,'type':_0xc61d86[_0xc3d229(0x221)],..._0x3ff5ef};case _0xc61d86[_0xc3d229(0x20d)]:return{'icon':_0x3be958,'type':_0xc61d86[_0xc3d229(0x20d)],..._0x3ff5ef};case _0xc61d86[_0xc3d229(0x21f)]:return{'icon':_0x3f27d7,'type':_0xc61d86[_0xc3d229(0x21f)],..._0x3ff5ef};case _0xc61d86[_0xc3d229(0x230)]:return{'icon':_0x2b16ec,'type':_0xc61d86[_0xc3d229(0x230)],..._0x3ff5ef};case _0xc61d86[_0xc3d229(0x23d)]:return{'icon':_0x3a5c7d,'type':_0xc61d86[_0xc3d229(0x23d)],..._0x3ff5ef};case _0xc61d86[_0xc3d229(0x23e)]:return{'icon':_0x5199b6,'type':_0xc61d86[_0xc3d229(0x23e)],..._0x3ff5ef};case _0xc61d86[_0xc3d229(0x216)]:return{'icon':_0x213289,'type':_0xc61d86[_0xc3d229(0x216)],..._0x3ff5ef};}});}[_0x418854(0x220)](_0xcd740){const _0x5c871f=_0x418854;switch(_0xcd740){case _0xc61d86[_0x5c871f(0x221)]:return _0x5c871f(0x214);case _0xc61d86[_0x5c871f(0x20d)]:return _0x5c871f(0x22b);default:return _0x5c871f(0x1f4);}}[_0x418854(0x1fb)](_0x2b8e6b,_0x5d8961){const _0x2e8cb4=_0x418854,_0x2ff7d3=this[_0x2e8cb4(0x1f6)],_0x449f3f=new _0x2b8e6b(_0x2ff7d3[_0x2e8cb4(0x225)]),_0x4b60c7=_0x2ff7d3[_0x2e8cb4(0x22a)][_0x2e8cb4(0x202)](_0x2e8cb4(0x215));return _0x449f3f[_0x2e8cb4(0x20a)](_0x2e8cb4(0x20e))['to'](_0x4b60c7),_0x449f3f['on'](_0x2e8cb4(0x1f2),()=>{const _0x240517=_0x2e8cb4;_0x4b60c7[_0x240517(0x1f2)](_0x5d8961);}),_0x449f3f;}[_0x418854(0x22e)](_0x1148f9){const _0x310603=_0x418854,{locale:_0x49a228}=this[_0x310603(0x1f6)],_0x3232ed=this[_0x310603(0x1f6)][_0x310603(0x226)][_0x310603(0x202)](_0x310603(0x236)),_0x4990a0=_0x1148f9[0x0],_0x32c564=this[_0x310603(0x1fb)](_0x47d67f,_0x4990a0[_0x310603(0x1ff)]);return _0x32c564[_0x310603(0x204)]=_0x4990a0[_0x310603(0x204)],_0x32c564[_0x310603(0x20a)](_0x310603(0x1f1))['to'](_0x3232ed,_0x310603(0x1fa),_0x33d726=>_0x2503a6(_0x49a228,_0x4990a0[_0x310603(0x1ff)],_0x33d726?_0x310603(0x23c):_0x310603(0x203))[_0x310603(0x233)]),_0x32c564[_0x310603(0x223)]=!0x0,_0x32c564;}[_0x418854(0x207)](_0x5c6abb){const _0x377010=_0x418854,{locale:_0x327b89}=this[_0x377010(0x1f6)],_0x171765=this[_0x377010(0x1f6)][_0x377010(0x226)][_0x377010(0x202)](_0x377010(0x236));return _0x5c6abb[_0x377010(0x23a)](_0x2b49a2=>{const _0x23b0c8=_0x377010,_0x39a79a=this[_0x23b0c8(0x1fb)](_0x47d67f,_0x2b49a2[_0x23b0c8(0x1ff)]);return _0x39a79a[_0x23b0c8(0x239)]=!0x0,_0x39a79a[_0x23b0c8(0x204)]=_0x2b49a2[_0x23b0c8(0x204)],_0x39a79a[_0x23b0c8(0x20a)](_0x23b0c8(0x1f1))['to'](_0x171765,_0x23b0c8(0x1fa),_0x25ae22=>_0x2503a6(_0x327b89,_0x2b49a2[_0x23b0c8(0x1ff)],_0x25ae22?_0x23b0c8(0x23c):_0x23b0c8(0x203))[_0x23b0c8(0x233)]),_0x39a79a;});}[_0x418854(0x231)](_0x1cb513){const _0x11215b=_0x418854;return _0x1cb513[_0x11215b(0x23a)](_0x49d7f7=>{const _0x2b9632=_0x11215b,_0x2393a2=this[_0x2b9632(0x1fb)](_0x1d3382,_0x49d7f7[_0x2b9632(0x1ff)]);return _0x2393a2[_0x2b9632(0x204)]=_0x49d7f7[_0x2b9632(0x204)],_0x2393a2[_0x2b9632(0x1f1)]=_0x49d7f7[_0x2b9632(0x1f8)],_0x2393a2;});}}
23
+ const _0x3becff=_0x1649;(function(_0x1f7a17,_0x13a502){const _0x1b9c36=_0x1649,_0x1168f0=_0x1f7a17();while(!![]){try{const _0x177dc4=-parseInt(_0x1b9c36(0x1f0))/0x1+parseInt(_0x1b9c36(0x20e))/0x2*(parseInt(_0x1b9c36(0x1fb))/0x3)+parseInt(_0x1b9c36(0x22c))/0x4+parseInt(_0x1b9c36(0x216))/0x5*(-parseInt(_0x1b9c36(0x20c))/0x6)+parseInt(_0x1b9c36(0x23b))/0x7+parseInt(_0x1b9c36(0x20b))/0x8*(parseInt(_0x1b9c36(0x1fc))/0x9)+-parseInt(_0x1b9c36(0x214))/0xa*(parseInt(_0x1b9c36(0x219))/0xb);if(_0x177dc4===_0x13a502)break;else _0x1168f0['push'](_0x1168f0['shift']());}catch(_0xd266ea){_0x1168f0['push'](_0x1168f0['shift']());}}}(_0xa697,0x6487d));function _0x1649(_0x356b56,_0x4eaebf){const _0xa6970=_0xa697();return _0x1649=function(_0x16497a,_0x4b0ccb){_0x16497a=_0x16497a-0x1eb;let _0x5d1e7e=_0xa6970[_0x16497a];return _0x5d1e7e;},_0x1649(_0x356b56,_0x4eaebf);}import{Plugin as _0xa917c8}from'ckeditor5/src/core.js';function _0xa697(){const _0x36d73f=['url','uploadcareLicenseKeyValid','reduce','init','uploadcareLicenseKeyEvaluationLimit','config','310400bwIcQT','text','Facebook','isEnabled','URL','isPremiumPlugin','uploadcare','bind','Replace','trialLimit','execute','2358QItFxq','9JPfeTx','usageLimit','type','map','GPhotos','uploadcareLicenseKeyExpired','domainLimit','uploadcareLicenseKeyTrialLimit','forEach','_createButton','plugins','locale','Uploadcare','_createMenuBarButtons','OneDrive','1369808noMnDy','37956sjIRzo','get','1554QcWoZg','_licenseKeyCheckInterval','icon','uploadcareLicenseKeyInvalid','afterInit','uploadcareLicenseKeyNotAllowed','120xoHEfB','has','235TlKina','GDrive','invalid','985974ahYYuW','upload','_createDropdownButtons','withText','_getIntegrationKey','tooltip','uploadcareLicenseKeyUsageLimit','shortText','evaluationLimit','uploadcare.uploader.sourceList','_createToolbarButton','isOfficialPlugin','editor','entries','destroy','push','_showLicenseError','uploadcareLicenseKeyDomainLimit','pluginName','3125944iXPZxF','registerIntegration','Local','featureNotAllowed','Dropbox','_normalizeConfigSourceList','commands','isImageSelected','label','expired','Insert','ImageInsertUI','assetManager','licenseKey','UploadcareUI','3721683JcdYQR'];_0xa697=function(){return _0x36d73f;};return _0xa697();}import{IconDropbox as _0x1b6b03,IconFacebook as _0x5ab925,IconGoogleDrive as _0x190b7e,IconGooglePhotos as _0x3007ea,IconUploadcareImageUpload as _0x4cecf3,IconUploadcareLink as _0x307a00,IconOneDrive as _0xc27c76}from'ckeditor5/src/icons.js';import{ButtonView as _0x28c12f,MenuBarMenuListItemButtonView as _0x3953d9}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x1e5f8d}from'./uploadcareconfig.js';import{getTranslation as _0x363917}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0xa917c8{[_0x3becff(0x239)];[_0x3becff(0x20f)];static get[_0x3becff(0x22b)](){const _0x58f035=_0x3becff;return _0x58f035(0x23a);}static get[_0x3becff(0x224)](){return!0x0;}static get[_0x3becff(0x1f5)](){return!0x0;}[_0x3becff(0x1ed)](){const _0x3f9180=_0x3becff;this[_0x3f9180(0x239)]=this[_0x3f9180(0x225)][_0x3f9180(0x1ef)][_0x3f9180(0x20d)](_0x3f9180(0x239));const _0x428125=this[_0x3f9180(0x225)];this[_0x3f9180(0x20f)]=setInterval(()=>{const _0x27da63=_0x3f9180;let _0x411c29;for(const _0x29c2e4 in _0x428125){const _0x2ed78b=_0x29c2e4,_0x1f067d=_0x428125[_0x2ed78b];if(_0x27da63(0x1eb)==_0x1f067d||_0x27da63(0x211)==_0x1f067d||_0x27da63(0x201)==_0x1f067d||_0x27da63(0x22a)==_0x1f067d||_0x27da63(0x213)==_0x1f067d||_0x27da63(0x1ee)==_0x1f067d||_0x27da63(0x203)==_0x1f067d||_0x27da63(0x21f)==_0x1f067d){delete _0x428125[_0x2ed78b],_0x411c29=_0x1f067d,clearInterval(this[_0x27da63(0x20f)]),this[_0x27da63(0x20f)]=void 0x0;break;}}_0x27da63(0x211)==_0x411c29&&_0x428125[_0x27da63(0x229)](_0x27da63(0x218)),_0x27da63(0x201)==_0x411c29&&_0x428125[_0x27da63(0x229)](_0x27da63(0x235)),_0x27da63(0x22a)==_0x411c29&&_0x428125[_0x27da63(0x229)](_0x27da63(0x202)),_0x27da63(0x213)==_0x411c29&&_0x428125[_0x27da63(0x229)](_0x27da63(0x22f),_0x27da63(0x208)),_0x27da63(0x1ee)==_0x411c29&&_0x428125[_0x27da63(0x229)](_0x27da63(0x221)),_0x27da63(0x203)==_0x411c29&&_0x428125[_0x27da63(0x229)](_0x27da63(0x1f9)),_0x27da63(0x21f)==_0x411c29&&_0x428125[_0x27da63(0x229)](_0x27da63(0x1fd));},0x3e8);}[_0x3becff(0x212)](){const _0x554a76=_0x3becff,{editor:_0x5011f4}=this,_0x3ea0cc=_0x5011f4[_0x554a76(0x232)][_0x554a76(0x20d)](_0x554a76(0x1f6));if(!_0x3ea0cc)return;const _0x2055e4=this[_0x554a76(0x231)](_0x5011f4[_0x554a76(0x1ef)][_0x554a76(0x20d)](_0x554a76(0x222)))[_0x554a76(0x1ec)]((_0x3295e6,_0x593ab8)=>{const _0x471c0c=_0x554a76,_0x40eeca=this[_0x471c0c(0x21d)](_0x593ab8[_0x471c0c(0x1fe)]);return _0x3295e6[_0x40eeca]||(_0x3295e6[_0x40eeca]=[]),_0x3295e6[_0x40eeca][_0x471c0c(0x228)](_0x593ab8),_0x3295e6;},{});_0x5011f4[_0x554a76(0x206)][_0x554a76(0x215)](_0x554a76(0x237))&&_0x5011f4[_0x554a76(0x232)][_0x554a76(0x20d)](_0x554a76(0x1f6))&&Object[_0x554a76(0x226)](_0x2055e4)[_0x554a76(0x204)](([_0x259589,_0x24593a])=>{const _0x47590b=_0x554a76;_0x5011f4[_0x47590b(0x206)][_0x47590b(0x20d)](_0x47590b(0x237))[_0x47590b(0x22d)]({'name':_0x259589,'observable':()=>_0x3ea0cc,'buttonViewCreator':()=>this[_0x47590b(0x223)](_0x24593a),'formViewCreator':()=>this[_0x47590b(0x21b)](_0x24593a),'menuBarButtonViewCreator':()=>this[_0x47590b(0x209)](_0x24593a),'override':_0x47590b(0x238)!==_0x259589});});}[_0x3becff(0x227)](){const _0x23bb8a=_0x3becff;super[_0x23bb8a(0x227)](),this[_0x23bb8a(0x20f)]&&clearInterval(this[_0x23bb8a(0x20f)]);}[_0x3becff(0x231)](_0x18b9e2){const _0x53bd5a=_0x3becff,{locale:_0xc4a382}=this[_0x53bd5a(0x225)];return _0x18b9e2[_0x53bd5a(0x1ff)](_0x5e3ad2=>{const _0x92827c=_0x53bd5a,_0x51c756=_0x363917(_0xc4a382,_0x5e3ad2,_0x92827c(0x236));switch(_0x5e3ad2){case _0x1e5f8d[_0x92827c(0x22e)]:return{'icon':_0x4cecf3,'type':_0x1e5f8d[_0x92827c(0x22e)],..._0x51c756};case _0x1e5f8d[_0x92827c(0x1f4)]:return{'icon':_0x307a00,'type':_0x1e5f8d[_0x92827c(0x1f4)],..._0x51c756};case _0x1e5f8d[_0x92827c(0x230)]:return{'icon':_0x1b6b03,'type':_0x1e5f8d[_0x92827c(0x230)],..._0x51c756};case _0x1e5f8d[_0x92827c(0x1f2)]:return{'icon':_0x5ab925,'type':_0x1e5f8d[_0x92827c(0x1f2)],..._0x51c756};case _0x1e5f8d[_0x92827c(0x217)]:return{'icon':_0x190b7e,'type':_0x1e5f8d[_0x92827c(0x217)],..._0x51c756};case _0x1e5f8d[_0x92827c(0x200)]:return{'icon':_0x3007ea,'type':_0x1e5f8d[_0x92827c(0x200)],..._0x51c756};case _0x1e5f8d[_0x92827c(0x20a)]:return{'icon':_0xc27c76,'type':_0x1e5f8d[_0x92827c(0x20a)],..._0x51c756};}});}[_0x3becff(0x21d)](_0x41c0a8){const _0x38357b=_0x3becff;switch(_0x41c0a8){case _0x1e5f8d[_0x38357b(0x22e)]:return _0x38357b(0x21a);case _0x1e5f8d[_0x38357b(0x1f4)]:return _0x38357b(0x23c);default:return _0x38357b(0x238);}}[_0x3becff(0x205)](_0x151807,_0x30f0cc){const _0x11f0e7=_0x3becff,_0x113052=this[_0x11f0e7(0x225)],_0x5095e8=new _0x151807(_0x113052[_0x11f0e7(0x207)]),_0xd8558d=_0x113052[_0x11f0e7(0x232)][_0x11f0e7(0x20d)](_0x11f0e7(0x1f6));return _0x5095e8[_0x11f0e7(0x1f7)](_0x11f0e7(0x1f3))['to'](_0xd8558d),_0x5095e8['on'](_0x11f0e7(0x1fa),()=>{const _0x3f59bd=_0x11f0e7;_0xd8558d[_0x3f59bd(0x1fa)](_0x30f0cc);}),_0x5095e8;}[_0x3becff(0x223)](_0x4794b6){const _0x5a795c=_0x3becff,{locale:_0x5e872d}=this[_0x5a795c(0x225)],_0x2ba112=this[_0x5a795c(0x225)][_0x5a795c(0x206)][_0x5a795c(0x20d)](_0x5a795c(0x237)),_0x44c988=_0x4794b6[0x0],_0x58d627=this[_0x5a795c(0x205)](_0x28c12f,_0x44c988[_0x5a795c(0x1fe)]);return _0x58d627[_0x5a795c(0x210)]=_0x44c988[_0x5a795c(0x210)],_0x58d627[_0x5a795c(0x1f7)](_0x5a795c(0x234))['to'](_0x2ba112,_0x5a795c(0x233),_0x441a73=>_0x363917(_0x5e872d,_0x44c988[_0x5a795c(0x1fe)],_0x441a73?_0x5a795c(0x1f8):_0x5a795c(0x236))[_0x5a795c(0x1f1)]),_0x58d627[_0x5a795c(0x21e)]=!0x0,_0x58d627;}[_0x3becff(0x21b)](_0x4307ec){const _0x52a177=_0x3becff,{locale:_0x4398f5}=this[_0x52a177(0x225)],_0x58f56d=this[_0x52a177(0x225)][_0x52a177(0x206)][_0x52a177(0x20d)](_0x52a177(0x237));return _0x4307ec[_0x52a177(0x1ff)](_0x44033d=>{const _0x57bc9e=_0x52a177,_0x47977d=this[_0x57bc9e(0x205)](_0x28c12f,_0x44033d[_0x57bc9e(0x1fe)]);return _0x47977d[_0x57bc9e(0x21c)]=!0x0,_0x47977d[_0x57bc9e(0x210)]=_0x44033d[_0x57bc9e(0x210)],_0x47977d[_0x57bc9e(0x1f7)](_0x57bc9e(0x234))['to'](_0x58f56d,_0x57bc9e(0x233),_0x14e9c0=>_0x363917(_0x4398f5,_0x44033d[_0x57bc9e(0x1fe)],_0x14e9c0?_0x57bc9e(0x1f8):_0x57bc9e(0x236))[_0x57bc9e(0x1f1)]),_0x47977d;});}[_0x3becff(0x209)](_0x5ee06f){const _0x2b9ebc=_0x3becff;return _0x5ee06f[_0x2b9ebc(0x1ff)](_0x140cce=>{const _0x253e10=_0x2b9ebc,_0x192cc4=this[_0x253e10(0x205)](_0x3953d9,_0x140cce[_0x253e10(0x1fe)]);return _0x192cc4[_0x253e10(0x210)]=_0x140cce[_0x253e10(0x210)],_0x192cc4[_0x253e10(0x234)]=_0x140cce[_0x253e10(0x220)],_0x192cc4;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x71bb65}from'ckeditor5/src/core.js';import{FileRepository as _0x573e76}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x2c6951}from'./uploadcareediting.js';import{UploadUtils as _0x30dc46}from'./utils/uploadutils.js';import{getImageUrls as _0x325b52}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x71bb65{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x573e76,_0x2c6951];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x24e56a=this['editor'];if(!!!_0x24e56a['config']['get']('uploadcare'))return;_0x24e56a['plugins']['get'](_0x573e76)['createUploadAdapter']=_0x4655e0=>new k(_0x4655e0,_0x24e56a),_0x24e56a['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1f6430,{imageElement:_0x1016f8,data:_0x149056})=>{_0x24e56a['model']['change'](_0x4e76d9=>{_0x4e76d9['setAttribute']('uploadcareImageId',_0x149056['uploadcareImageId'],_0x1016f8);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x4f6d21,_0x1ebc8a){this['loader']=_0x4f6d21,this['editor']=_0x1ebc8a,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x41b04b=await this['loader']['file'];return _0x30dc46['upload']({'file':_0x41b04b,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x41c99d=>{_0x41c99d&&_0x41c99d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x41c99d['value']);}})['then'](async _0x1faf03=>{const {imageFallbackUrl:_0x17f555,imageSources:_0x542da0}=_0x325b52(_0x1faf03['cdnUrl'],_0x1faf03['imageInfo']['width']);return{'uploadcareImageId':_0x1faf03['uuid'],'default':_0x17f555,'sources':_0x542da0};})['catch'](()=>{const _0xd49c7b=t('Cannot\x20upload\x20file:')+('\x20'+_0x41b04b['name']+'.');return Promise['reject'](_0xd49c7b);});}['abort'](){this['controller']['abort']();}}
23
+ import{Plugin as _0x23037a}from'ckeditor5/src/core.js';import{FileRepository as _0x2a8861}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x2456ef}from'./uploadcareediting.js';import{UploadUtils as _0x2fbacd}from'./utils/uploadutils.js';import{getImageUrls as _0x14ecbe}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x23037a{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2a8861,_0x2456ef];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x32a0ea=this['editor'];if(!!!_0x32a0ea['config']['get']('uploadcare'))return;_0x32a0ea['plugins']['get'](_0x2a8861)['createUploadAdapter']=_0x4ab77b=>new k(_0x4ab77b,_0x32a0ea),_0x32a0ea['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5b2f4e,{imageElement:_0x503168,data:_0x1c4329})=>{_0x32a0ea['model']['change'](_0x4cb0bb=>{_0x4cb0bb['setAttribute']('uploadcareImageId',_0x1c4329['uploadcareImageId'],_0x503168);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x451836,_0x56d943){this['loader']=_0x451836,this['editor']=_0x56d943,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x57355b=await this['loader']['file'];return _0x2fbacd['upload']({'file':_0x57355b,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x5dbfa7=>{_0x5dbfa7&&_0x5dbfa7['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5dbfa7['value']);}})['then'](async _0x10e1da=>{const {imageFallbackUrl:_0x402e6,imageSources:_0x20e454}=_0x14ecbe(_0x10e1da['cdnUrl'],_0x10e1da['imageInfo']['width']);return{'uploadcareImageId':_0x10e1da['uuid'],'default':_0x402e6,'sources':_0x20e454};})['catch'](()=>{const _0x449fcf=t('Cannot\x20upload\x20file:')+('\x20'+_0x57355b['name']+'.');return Promise['reject'](_0x449fcf);});}['abort'](){this['controller']['abort']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{UploadcareSource as _0x302793}from'../uploadcareconfig.js';export function getTranslation(_0x3d49bc,_0x55ca80,_0x46ecab){const t=_0x3d49bc['t'],_0x228442=_0x3d49bc['t'];switch(_0x55ca80){case _0x302793['Local']:return{'text':_0x228442('Insert'===_0x46ecab?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x228442('From\x20computer')};case _0x302793['URL']:return{'text':'Insert'===_0x46ecab?_0x228442('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x228442('Via\x20URL')};case _0x302793['Dropbox']:return{'text':t('Insert'===_0x46ecab?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x302793['Facebook']:return{'text':t('Insert'===_0x46ecab?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x302793['GDrive']:return{'text':t('Insert'===_0x46ecab?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x302793['GPhotos']:return{'text':t('Insert'===_0x46ecab?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x302793['OneDrive']:return{'text':t('Insert'===_0x46ecab?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x55ca80;}}
23
+ import{UploadcareSource as _0x510787}from'../uploadcareconfig.js';export function getTranslation(_0x4d7343,_0xf39a5,_0x1ea021){const t=_0x4d7343['t'],_0x32e30b=_0x4d7343['t'];switch(_0xf39a5){case _0x510787['Local']:return{'text':_0x32e30b('Insert'===_0x1ea021?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x32e30b('From\x20computer')};case _0x510787['URL']:return{'text':'Insert'===_0x1ea021?_0x32e30b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x32e30b('Via\x20URL')};case _0x510787['Dropbox']:return{'text':t('Insert'===_0x1ea021?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x510787['Facebook']:return{'text':t('Insert'===_0x1ea021?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x510787['GDrive']:return{'text':t('Insert'===_0x1ea021?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x510787['GPhotos']:return{'text':t('Insert'===_0x1ea021?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x510787['OneDrive']:return{'text':t('Insert'===_0x1ea021?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xf39a5;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x59506f=_0x17d2;function _0x1bdf(){var _0x4c7d9a=['6tPjTXR','5717160LVSlEX','getFocusableElement','10yEOHbS','6188415FgERvd','9297386USofWx','div','bindTemplate','createCollection','23365899UrKHnV','true','focusCycler','491773FpjtwZ','203982OGlKhQ','962404hpPxjE','focusTracker','forwardCycle','9jmULtt','fire'];_0x1bdf=function(){return _0x4c7d9a;};return _0x1bdf();}(function(_0x442d5f,_0x54f66d){var _0x58bede=_0x17d2,_0x2adcee=_0x442d5f();while(!![]){try{var _0x6871c2=parseInt(_0x58bede(0x13a))/0x1+-parseInt(_0x58bede(0x13b))/0x2*(parseInt(_0x58bede(0x12c))/0x3)+-parseInt(_0x58bede(0x13c))/0x4+parseInt(_0x58bede(0x132))/0x5*(-parseInt(_0x58bede(0x12e))/0x6)+-parseInt(_0x58bede(0x133))/0x7+parseInt(_0x58bede(0x12f))/0x8+-parseInt(_0x58bede(0x137))/0x9*(-parseInt(_0x58bede(0x131))/0xa);if(_0x6871c2===_0x54f66d)break;else _0x2adcee['push'](_0x2adcee['shift']());}catch(_0x5529c9){_0x2adcee['push'](_0x2adcee['shift']());}}}(_0x1bdf,0xa87fe));function _0x17d2(_0x4046a5,_0x591a0e){var _0x1bdf98=_0x1bdf();return _0x17d2=function(_0x17d227,_0x153171){_0x17d227=_0x17d227-0x12c;var _0x3281c4=_0x1bdf98[_0x17d227];return _0x3281c4;},_0x17d2(_0x4046a5,_0x591a0e);}import{FocusTracker as _0x2c674c}from'ckeditor5/src/utils.js';import{View as _0x56cb31,FocusCycler as _0x5f4b69}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x56cb31{[_0x59506f(0x13d)];[_0x59506f(0x139)];constructor(_0x223354){var _0x3f3705=_0x59506f;super(_0x223354),this[_0x3f3705(0x13d)]=new _0x2c674c(),this[_0x3f3705(0x139)]=new _0x5f4b69({'focusables':this[_0x3f3705(0x136)](),'focusTracker':this[_0x3f3705(0x13d)]});}[_0x59506f(0x130)](){var _0x29715a=_0x59506f;return{'tag':_0x29715a(0x134),'attributes':{'aria-hidden':_0x29715a(0x138),'tabindex':'0'},'on':{'focus':this[_0x29715a(0x135)]['to'](()=>{var _0x19c74f=_0x29715a;this[_0x19c74f(0x139)][_0x19c74f(0x12d)](_0x19c74f(0x13e));})}};}}
23
+ var _0xdf4473=_0x4963;(function(_0x218ff9,_0x461cae){var _0xa8d150=_0x4963,_0x21d85c=_0x218ff9();while(!![]){try{var _0x15a043=-parseInt(_0xa8d150(0xfb))/0x1*(-parseInt(_0xa8d150(0xff))/0x2)+-parseInt(_0xa8d150(0x102))/0x3*(-parseInt(_0xa8d150(0x106))/0x4)+-parseInt(_0xa8d150(0xf6))/0x5*(-parseInt(_0xa8d150(0xfd))/0x6)+parseInt(_0xa8d150(0xfe))/0x7*(parseInt(_0xa8d150(0x103))/0x8)+-parseInt(_0xa8d150(0x101))/0x9+-parseInt(_0xa8d150(0xf5))/0xa+parseInt(_0xa8d150(0xf8))/0xb*(-parseInt(_0xa8d150(0x104))/0xc);if(_0x15a043===_0x461cae)break;else _0x21d85c['push'](_0x21d85c['shift']());}catch(_0x8666e7){_0x21d85c['push'](_0x21d85c['shift']());}}}(_0x1c13,0x7ec50));function _0x4963(_0x3c7ac1,_0x3dad84){var _0x1c130f=_0x1c13();return _0x4963=function(_0x4963e3,_0x44a5dc){_0x4963e3=_0x4963e3-0xf3;var _0xa12a2a=_0x1c130f[_0x4963e3];return _0xa12a2a;},_0x4963(_0x3c7ac1,_0x3dad84);}function _0x1c13(){var _0xc0889a=['84PTcyCt','22NVKPVw','focusCycler','1518147CBMJnN','3NzQAHd','331720INyuWb','2324892dWSyhP','bindTemplate','1758236GYLYLL','true','div','createCollection','286010EFvLWy','546285qWDRDt','getFocusableElement','22YuOBlp','forwardCycle','focusTracker','5238BnfXVu','fire','6YqOoIL'];_0x1c13=function(){return _0xc0889a;};return _0x1c13();}import{FocusTracker as _0xf5eccc}from'ckeditor5/src/utils.js';import{View as _0x4e29f6,FocusCycler as _0x389458}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x4e29f6{[_0xdf4473(0xfa)];[_0xdf4473(0x100)];constructor(_0x10f751){var _0x4bd615=_0xdf4473;super(_0x10f751),this[_0x4bd615(0xfa)]=new _0xf5eccc(),this[_0x4bd615(0x100)]=new _0x389458({'focusables':this[_0x4bd615(0xf4)](),'focusTracker':this[_0x4bd615(0xfa)]});}[_0xdf4473(0xf7)](){var _0x283c03=_0xdf4473;return{'tag':_0x283c03(0xf3),'attributes':{'aria-hidden':_0x283c03(0x107),'tabindex':'0'},'on':{'focus':this[_0x283c03(0x105)]['to'](()=>{var _0x1bdee0=_0x283c03;this[_0x1bdee0(0x100)][_0x1bdee0(0xfc)](_0x1bdee0(0xf9));})}};}}