@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251224.0 → 0.0.0-nightly-20251225.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x59c0a1,Command as _0x1fef53}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x586b2a,IconGooglePhotos as _0x42bb90,IconGoogleDrive as _0x21dcaf,IconFacebook as _0x4d4a6a,IconDropbox as _0x5bbb70,IconUploadcareLink as _0xfc3f1e,IconUploadcareImageUpload as _0x4b48cd,IconError as _0x5dd3d6,IconUploadcareImageEdit as _0x3a9f96}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x14eb05,MenuBarMenuListItemButtonView as _0x31f07c,View as _0x4c689a,FocusCycler as _0xb80fa9,Dialog as _0x3c3d21,DialogViewPosition as _0x3e0798,SpinnerView as _0xe3c2e4,IconView as _0x389bbd,Notification as _0x35664b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xa0d7ac,DomEmitterMixin as _0x1743d3,global as _0x44bbcf,getAncestors as _0x46cd46,ObservableMixin as _0x56a17e,uid as _0x494f20,createElement as _0x35ab70}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x486e33}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x21151a,info as _0x1e4976}from'@uploadcare/upload-client';import*as _0x183d2c from'@uploadcare/file-uploader';var i=function(_0x35a248){return _0x35a248['Local']='local',_0x35a248['URL']='url',_0x35a248['Dropbox']='dropbox',_0x35a248['GDrive']='gdrive',_0x35a248['Facebook']='facebook',_0x35a248['GPhotos']='gphotos',_0x35a248['OneDrive']='onedrive',_0x35a248;}({});function _(_0x7f4082,_0x25cf7f,_0xcda0fb){const t=_0x7f4082['t'],_0x3c4974=_0x7f4082['t'];switch(_0x25cf7f){case i['Local']:return{'text':_0x3c4974('Insert'===_0xcda0fb?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3c4974('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xcda0fb?_0x3c4974('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3c4974('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xcda0fb?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xcda0fb?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xcda0fb?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xcda0fb?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xcda0fb?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x25cf7f;}}class e extends _0x59c0a1{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x969d8e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x22da8c;for(const _0x175caf in _0x969d8e){const _0x103892=_0x175caf,_0x23e662=_0x969d8e[_0x103892];if('uploadcareLicenseKeyValid'==_0x23e662||'uploadcareLicenseKeyInvalid'==_0x23e662||'uploadcareLicenseKeyExpired'==_0x23e662||'uploadcareLicenseKeyDomainLimit'==_0x23e662||'uploadcareLicenseKeyNotAllowed'==_0x23e662||'uploadcareLicenseKeyEvaluationLimit'==_0x23e662||'uploadcareLicenseKeyTrialLimit'==_0x23e662||'uploadcareLicenseKeyUsageLimit'==_0x23e662){delete _0x969d8e[_0x103892],_0x22da8c=_0x23e662,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x22da8c&&_0x969d8e['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x22da8c&&_0x969d8e['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x22da8c&&_0x969d8e['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x22da8c&&_0x969d8e['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x22da8c&&_0x969d8e['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x22da8c&&_0x969d8e['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x22da8c&&_0x969d8e['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x264efa}=this,_0x12e96d=_0x264efa['commands']['get']('uploadcare');if(!_0x12e96d)return;const _0xeaabd5=this['_normalizeConfigSourceList'](_0x264efa['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x9595fc,_0x4e0100)=>{const _0x4aa26c=this['_getIntegrationKey'](_0x4e0100['type']);return _0x9595fc[_0x4aa26c]||(_0x9595fc[_0x4aa26c]=[]),_0x9595fc[_0x4aa26c]['push'](_0x4e0100),_0x9595fc;},{});_0x264efa['plugins']['has']('ImageInsertUI')&&_0x264efa['commands']['get']('uploadcare')&&Object['entries'](_0xeaabd5)['forEach'](([_0x38b203,_0x42c2e0])=>{_0x264efa['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x38b203,'observable':()=>_0x12e96d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x42c2e0),'formViewCreator':()=>this['_createDropdownButtons'](_0x42c2e0),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x42c2e0),'override':'assetManager'!==_0x38b203});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2b4fe5){const {locale:_0xfbf10f}=this['editor'];return _0x2b4fe5['map'](_0x2f73a8=>{const _0x38730b=_(_0xfbf10f,_0x2f73a8,'Insert');switch(_0x2f73a8){case i['Local']:return{'icon':_0x4b48cd,'type':i['Local'],..._0x38730b};case i['URL']:return{'icon':_0xfc3f1e,'type':i['URL'],..._0x38730b};case i['Dropbox']:return{'icon':_0x5bbb70,'type':i['Dropbox'],..._0x38730b};case i['Facebook']:return{'icon':_0x4d4a6a,'type':i['Facebook'],..._0x38730b};case i['GDrive']:return{'icon':_0x21dcaf,'type':i['GDrive'],..._0x38730b};case i['GPhotos']:return{'icon':_0x42bb90,'type':i['GPhotos'],..._0x38730b};case i['OneDrive']:return{'icon':_0x586b2a,'type':i['OneDrive'],..._0x38730b};}});}['_getIntegrationKey'](_0x19f086){switch(_0x19f086){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x33b8f8,_0x4e6598){const _0x43e23c=this['editor'],_0x51f891=new _0x33b8f8(_0x43e23c['locale']),_0x46d4bd=_0x43e23c['commands']['get']('uploadcare');return _0x51f891['bind']('isEnabled')['to'](_0x46d4bd),_0x51f891['on']('execute',()=>{_0x46d4bd['execute'](_0x4e6598);}),_0x51f891;}['_createToolbarButton'](_0xf6b7e8){const {locale:_0x264c2d}=this['editor'],_0x462fef=this['editor']['plugins']['get']('ImageInsertUI'),_0x5ce462=_0xf6b7e8[0x0],_0x224e39=this['_createButton'](_0x14eb05,_0x5ce462['type']);return _0x224e39['icon']=_0x5ce462['icon'],_0x224e39['bind']('label')['to'](_0x462fef,'isImageSelected',_0x30f83e=>_(_0x264c2d,_0x5ce462['type'],_0x30f83e?'Replace':'Insert')['text']),_0x224e39['tooltip']=!0x0,_0x224e39;}['_createDropdownButtons'](_0x37d65a){const {locale:_0x3f7f1d}=this['editor'],_0x54aafa=this['editor']['plugins']['get']('ImageInsertUI');return _0x37d65a['map'](_0x4a9b9d=>{const _0x184bf5=this['_createButton'](_0x14eb05,_0x4a9b9d['type']);return _0x184bf5['withText']=!0x0,_0x184bf5['icon']=_0x4a9b9d['icon'],_0x184bf5['bind']('label')['to'](_0x54aafa,'isImageSelected',_0x258d04=>_(_0x3f7f1d,_0x4a9b9d['type'],_0x258d04?'Replace':'Insert')['text']),_0x184bf5;});}['_createMenuBarButtons'](_0x3c1a4b){return _0x3c1a4b['map'](_0x19774e=>{const _0x3a1acf=this['_createButton'](_0x31f07c,_0x19774e['type']);return _0x3a1acf['icon']=_0x19774e['icon'],_0x3a1acf['label']=_0x19774e['shortText'],_0x3a1acf;});}}class F extends _0x4c689a{['focusTracker'];['focusCycler'];constructor(_0x31b22a){super(_0x31b22a),this['focusTracker']=new _0xa0d7ac(),this['focusCycler']=new _0xb80fa9({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x3cca2b,_0xedd24a){super(_0x3cca2b),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader-'+_0xedd24a}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x477bb3,_0x5ecf6f){const _0xbbf79d=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xa366e2=>_0xa366e2<=_0x5ecf6f)['map'](_0x5e45d0=>_0x477bb3['replace'](/\/$/,'')+'/-/resize/'+_0x5e45d0+'x/\x20'+_0x5e45d0+'w');return{'imageFallbackUrl':_0x477bb3,'imageSources':[{'srcset':_0xbbf79d['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5ecf6f+'px)\x20100vw,\x20'+_0x5ecf6f+'px','type':'image/webp'}]};}function S(_0x18d714,_0x30a401,_0x423824){const _0xf0f46f=_0x18d714['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xf0f46f?parseInt(_0xf0f46f[0x1],0xa):_0x30a401,'height':_0xf0f46f?parseInt(_0xf0f46f[0x2],0xa):_0x423824};}function p(_0x5aee6f,_0x19f8dc){const _0x2170d9=new(_0x1743d3())(),_0x1cdc76=_0x5aee6f['plugins']['get']('ImageUtils'),_0x1415fa=_0x5aee6f['editing']['mapper']['toViewElement'](_0x19f8dc),_0x1e852a=_0x1cdc76['findViewImgElement'](_0x1415fa),_0x105638=_0x5aee6f['editing']['view']['domConverter']['viewToDom'](_0x1e852a),_0x9c1764=_0x19f8dc['getAttribute']('width'),_0x49ca28=_0x19f8dc['getAttribute']('height'),_0x426273='image-processing';_0x5aee6f['editing']['view']['change'](_0x42ae6c=>{_0x42ae6c['addClass'](_0x426273,_0x1415fa),_0x42ae6c['setStyle']('aspect-ratio',_0x9c1764+'/'+_0x49ca28,_0x1e852a);}),_0x2170d9['listenTo'](_0x105638,'load',()=>{_0x2170d9['stopListening'](_0x105638,'load'),_0x5aee6f['editing']['view']['change'](_0x40e37c=>{_0x40e37c['removeClass'](_0x426273,_0x1415fa),_0x40e37c['removeStyle']('aspect-ratio',_0x1e852a);});});}function z(_0x2d8e1c){if(Array['isArray'](_0x2d8e1c)){const _0x201578=_0x2d8e1c['map'](z);return _0x4b03f1=>_0x201578['some'](_0x119263=>_0x119263(_0x4b03f1));}if('origin'==_0x2d8e1c){const _0x34b6b5=_0x44bbcf['window']['location']['origin'];return _0x5f03b8=>new URL(_0x5f03b8,_0x44bbcf['document']['baseURI'])['origin']==_0x34b6b5;}return'function'==typeof _0x2d8e1c?_0x2d8e1c:_0x2d8e1c instanceof RegExp?_0x5d5f4b=>!(!_0x5d5f4b['match'](_0x2d8e1c)&&!_0x5d5f4b['replace'](/^https?:\/\//,'')['match'](_0x2d8e1c)):()=>!0x1;}function A(_0x482c10,_0x1570e8){return _0x46cd46(_0x482c10['target'])['includes'](_0x1570e8);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x56a17e(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x391bf9,_0x5e8011,_0x2eb7f2){super(),this['_editor']=_0x391bf9,this['_editing']=_0x5e8011,this['_dialog']=_0x391bf9['plugins']['get'](_0x3c3d21),this['_api']=_0x5e8011['ctxElement']['getAPI'](),this['_type']=_0x2eb7f2,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x45f7e8,model:_0x11a0bf}=this['_editor'],_0x4ea519=_0x11a0bf['document']['selection']['getSelectedElement'](),_0x2352f6=_0x4ea519&&(_0x4ea519['is']('element','imageBlock')||_0x4ea519['is']('element','imageInline'));this['_formView']=new x(_0x45f7e8,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4b48cd,'title':_(_0x45f7e8,this['_type'],_0x2352f6?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3e0798['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1a9e4f=>!A(_0x1a9e4f,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x32ac42}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2f1e3d=>{const _0xef39ab=_0x32ac42['length'];for(const _0x41f93a of _0x32ac42){const _0x24d800=_0x41f93a===_0x32ac42[_0xef39ab-0x1],{cdnUrl:_0xcde798,fileInfo:_0x3c2fff}=_0x41f93a;if(!_0xcde798||!_0x3c2fff)continue;const {width:_0x579a1e,height:_0x10551a}=_0x3c2fff['imageInfo'],_0x2deaf5=S(_0xcde798,_0x579a1e,_0x10551a),_0x18f003=C(_0xcde798,_0x2deaf5['width']),_0x3280c9={'id':_0x3c2fff['uuid'],'type':'image','attributes':{'imageDimension':_0x2deaf5,..._0x18f003}};this['_insertAsset'](_0x3280c9,_0x24d800,_0x2f1e3d);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x450da9=>{'idle'===_0x450da9['detail']['status']&&!_0x450da9['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x235a2e,_0x432ddf,_0x32c92f){const _0x35ed91=this['_editor']['model']['document']['selection'],_0x331f97=_0x35ed91['getSelectedElement'](),_0x2ea38f=!(!_0x331f97||!_0x331f97['is']('element','imageInline'));_0x32c92f['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x235a2e,_0x2ea38f),_0x432ddf||_0x32c92f['setSelection'](_0x35ed91['getLastPosition']());}['_insertImage'](_0x454b9e,_0x384b95){const _0x531a40=this['_editor'],{imageDimension:_0x3f712,imageFallbackUrl:_0x39ec18,imageSources:_0x1217f6}=_0x454b9e['attributes'];_0x531a40['execute']('insertImage',{'imageType':_0x384b95?'imageInline':null,'source':{'uploadcareImageId':_0x454b9e['id'],'src':_0x39ec18,'sources':_0x1217f6,..._0x3f712}});}}class w extends _0x1fef53{['_editing'];['_controller']=null;static get['requires'](){return[_0x3c3d21,o];}constructor(_0x128c4d){super(_0x128c4d),this['_editing']=_0x128c4d['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x49eea2){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x49eea2);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x27147c,..._0x2a9480}){return _0x21151a(_0x27147c,_0x2a9480);}static['getInfo'](_0x25e211,_0x5c43f4){return _0x1e4976(_0x25e211,_0x5c43f4);}}class f extends _0x59c0a1{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x486e33,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x30790d=this['editor'];if(!!!_0x30790d['config']['get']('uploadcare'))return;_0x30790d['plugins']['get'](_0x486e33)['createUploadAdapter']=_0x98b1eb=>new k(_0x98b1eb,_0x30790d),_0x30790d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x26cf42,{imageElement:_0x2fa16e,data:_0x4f6465})=>{_0x30790d['model']['change'](_0x456dcc=>{_0x456dcc['setAttribute']('uploadcareImageId',_0x4f6465['uploadcareImageId'],_0x2fa16e);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x82248d,_0x5f0b81){this['loader']=_0x82248d,this['editor']=_0x5f0b81,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x53ae2f=await this['loader']['file'];return j['upload']({'file':_0x53ae2f,'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':_0x402c96=>{_0x402c96&&_0x402c96['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x402c96['value']);}})['then'](async _0x2741f1=>{const {imageFallbackUrl:_0x512149,imageSources:_0xa6b012}=C(_0x2741f1['cdnUrl'],_0x2741f1['imageInfo']['width']);return{'uploadcareImageId':_0x2741f1['uuid'],'default':_0x512149,'sources':_0xa6b012};})['catch'](()=>{const _0x1c5d57=t('Cannot\x20upload\x20file:')+('\x20'+_0x53ae2f['name']+'.');return Promise['reject'](_0x1c5d57);});}['abort'](){this['controller']['abort']();}}class o extends _0x59c0a1{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x3c3d21];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3003a2){super(_0x3003a2),this['ucContextId']=_0x494f20();}['init'](){const _0x28dc6c=this['editor'];_0x28dc6c['commands']['add']('uploadcare',new w(_0x28dc6c));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x234e90=_0x44bbcf['document']['querySelector']('input[uploadcare-file-input]');_0x234e90&&_0x234e90['remove']();}),async function(_0x314475){const _0x584a3a=_0x1a5ff4([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]),_0x2bcf1c=0x535f8c3a,_0x5214a3=0x5358f0ea^_0x2bcf1c,_0x57f9a2=window[_0x1a5ff4([0x44,0x61,0x74,0x65])][_0x1a5ff4([0x6e,0x6f,0x77])](),_0x1e2032=_0x314475[_0x1a5ff4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x88a313=new window[(_0x1a5ff4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2850fe=>{_0x1e2032[_0x1a5ff4([0x6f,0x6e,0x63,0x65])](_0x1a5ff4([0x72,0x65,0x61,0x64,0x79]),_0x2850fe);}),_0x21ca60={[_0x1a5ff4([0x6b,0x74,0x79])]:_0x1a5ff4([0x45,0x43]),[_0x1a5ff4([0x75,0x73,0x65])]:_0x1a5ff4([0x73,0x69,0x67]),[_0x1a5ff4([0x63,0x72,0x76])]:_0x1a5ff4([0x50,0x2d,0x32,0x35,0x36]),[_0x1a5ff4([0x78])]:_0x1a5ff4([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]),[_0x1a5ff4([0x79])]:_0x1a5ff4([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]),[_0x1a5ff4([0x61,0x6c,0x67])]:_0x1a5ff4([0x45,0x53,0x32,0x35,0x36])},_0x211f3f=_0x1e2032[_0x1a5ff4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1a5ff4([0x67,0x65,0x74])](_0x1a5ff4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x13ddde(){let _0x375d2b,_0x46959d=null,_0x480c6c=null;try{if(_0x211f3f==_0x1a5ff4([0x47,0x50,0x4c]))return _0x1a5ff4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x375d2b=_0x922472(),!_0x375d2b)return _0x1a5ff4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x375d2b[_0x1a5ff4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x480c6c=_0x292895(_0x375d2b[_0x1a5ff4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x375d2b[_0x1a5ff4([0x6a,0x74,0x69])])),await _0x5cae64()?_0x4d9d66()?_0x41ae51()?_0x1a5ff4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x43e802()?(_0x375d2b[_0x1a5ff4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1a5ff4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x46959d=_0x12cc43(_0x1a5ff4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x375d2b[_0x1a5ff4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1a5ff4([0x74,0x72,0x69,0x61,0x6c])&&(_0x46959d=_0x12cc43(_0x1a5ff4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x56641c()):_0x1a5ff4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1a5ff4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1a5ff4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1a5ff4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x41ae51(){const _0x17ca28=[_0x1a5ff4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1a5ff4([0x74,0x72,0x69,0x61,0x6c])][_0x1a5ff4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x375d2b[_0x1a5ff4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x57f9a2/0x3e8:0xe10*_0x5214a3;return _0x375d2b[_0x1a5ff4([0x65,0x78,0x70])]<_0x17ca28;}function _0x4d9d66(){const _0x391e56=_0x375d2b[_0x1a5ff4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x391e56&&(!!_0x391e56[_0x1a5ff4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a5ff4([0x2a]))||!!_0x391e56[_0x1a5ff4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a5ff4([0x55,0x50,0x4c,0x43])));}function _0x43e802(){const _0x3fb90f=_0x375d2b[_0x1a5ff4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3fb90f||0x0==_0x3fb90f[_0x1a5ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x9d9a96}=new URL(window[_0x1a5ff4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3fb90f[_0x1a5ff4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9d9a96))return!0x0;const _0x2e8952=_0x9d9a96[_0x1a5ff4([0x73,0x70,0x6c,0x69,0x74])](_0x1a5ff4([0x2e]));return _0x3fb90f[_0x1a5ff4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e5e1e=>_0x5e5e1e[_0x1a5ff4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a5ff4([0x2a])))[_0x1a5ff4([0x6d,0x61,0x70])](_0x273bce=>_0x273bce[_0x1a5ff4([0x73,0x70,0x6c,0x69,0x74])](_0x1a5ff4([0x2e])))[_0x1a5ff4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd9ed71=>_0xd9ed71[_0x1a5ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2e8952[_0x1a5ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1a5ff4([0x6d,0x61,0x70])](_0x492daa=>Array(_0x2e8952[_0x1a5ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x492daa[_0x1a5ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1a5ff4([0x66,0x69,0x6c,0x6c])](_0x492daa[0x0]===_0x1a5ff4([0x2a])?_0x1a5ff4([0x2a]):'')[_0x1a5ff4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x492daa))[_0x1a5ff4([0x73,0x6f,0x6d,0x65])](_0x29af46=>_0x2e8952[_0x1a5ff4([0x65,0x76,0x65,0x72,0x79])]((_0x4e28c9,_0x45bb6d)=>_0x29af46[_0x45bb6d]===_0x4e28c9||_0x29af46[_0x45bb6d]===_0x1a5ff4([0x2a])));}function _0x56641c(){return _0x46959d&&_0x480c6c?new window[(_0x1a5ff4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1782f9,_0x594dba)=>{_0x46959d[_0x1a5ff4([0x74,0x68,0x65,0x6e])](_0x1782f9,_0x594dba),_0x480c6c[_0x1a5ff4([0x74,0x68,0x65,0x6e])](_0x1cc2bb=>{_0x1cc2bb!=_0x1a5ff4([0x56,0x61,0x6c,0x69,0x64])&&_0x1782f9(_0x1cc2bb);},_0x594dba);}):_0x46959d||_0x480c6c||_0x1a5ff4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x292895(_0x1bc42b,_0x32076a){return new window[(_0x1a5ff4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x507280=>{if(_0x6f3baf())return _0x507280(_0x1a5ff4([0x56,0x61,0x6c,0x69,0x64]));_0xf5cab6(),_0x1e2032[_0x1a5ff4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1a5ff4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x36b834=!0x1;const _0x2b2171=_0x494f20();function _0xc97eb4(_0xd5ebe3){return!!_0xd5ebe3&&(typeof _0xd5ebe3===_0x1a5ff4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xd5ebe3===_0x1a5ff4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xd5ebe3[_0x1a5ff4([0x74,0x68,0x65,0x6e])]===_0x1a5ff4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xd5ebe3[_0x1a5ff4([0x63,0x61,0x74,0x63,0x68])]===_0x1a5ff4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2ef619(_0x1ed820){_0x45b2b6(_0x1ed820)[_0x1a5ff4([0x74,0x68,0x65,0x6e])](_0x1664d7=>{if(!_0x1664d7||_0x1664d7[_0x1a5ff4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1a5ff4([0x6f,0x6b]))return _0x1a5ff4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5600de(_0x548a6f(_0x2b2171+_0x32076a))!=_0x1664d7[_0x1a5ff4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1a5ff4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1a5ff4([0x56,0x61,0x6c,0x69,0x64]);})[_0x1a5ff4([0x74,0x68,0x65,0x6e])](_0x147c73=>(_0x5bb62d(),_0x147c73),()=>{const _0xf54901=_0xd15716();return null==_0xf54901?(_0x5bb62d(),_0x1a5ff4([0x56,0x61,0x6c,0x69,0x64])):_0x1a5ff4(_0x57f9a2-_0xf54901>(0x7753083a^_0x2bcf1c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1a5ff4([0x74,0x68,0x65,0x6e])](_0x507280)[_0x1a5ff4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x507280(_0x1a5ff4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x440318=0x536962ba^_0x2bcf1c;function _0x5bb62d(){const _0x5ff76e=_0x1a5ff4([0x6c,0x6c,0x63,0x74,0x2d])+_0x5600de(_0x548a6f(_0x1bc42b)),_0x4af003=_0x4407c6(_0x5600de(window[_0x1a5ff4([0x4d,0x61,0x74,0x68])][_0x1a5ff4([0x63,0x65,0x69,0x6c])](_0x57f9a2/_0x440318)));window[_0x1a5ff4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a5ff4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ff76e,_0x4af003);}function _0xd15716(){const _0x4b3084=_0x1a5ff4([0x6c,0x6c,0x63,0x74,0x2d])+_0x5600de(_0x548a6f(_0x1bc42b)),_0x5787d8=window[_0x1a5ff4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a5ff4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b3084);return _0x5787d8?window[_0x1a5ff4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4407c6(_0x5787d8),0x10)*_0x440318:null;}function _0x45b2b6(_0x34b50d){return new window[(_0x1a5ff4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d63a0,_0x414618)=>{_0x34b50d[_0x1a5ff4([0x74,0x68,0x65,0x6e])](_0x5d63a0,_0x414618),window[_0x1a5ff4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x414618,0x535e58fa^_0x2bcf1c);});}}_0x1e2032[_0x1a5ff4([0x6f,0x6e])](_0x1a5ff4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1d4e86,_0x462795)=>{if(_0x462795[0x0]!=_0x1bc42b)return _0x507280(_0x1a5ff4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x462795[0x1]={..._0x462795[0x1],[_0x1a5ff4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2b2171};},{[_0x1a5ff4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a5ff4([0x68,0x69,0x67,0x68])}),_0x1e2032[_0x1a5ff4([0x6f,0x6e])](_0x1a5ff4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4b3eec=>{_0xc97eb4(_0x4b3eec[_0x1a5ff4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x36b834=!0x0,_0x2ef619(_0x4b3eec[_0x1a5ff4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1a5ff4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a5ff4([0x6c,0x6f,0x77])}),_0x88a313[_0x1a5ff4([0x74,0x68,0x65,0x6e])](()=>{_0x36b834||_0x507280(_0x1a5ff4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x6f3baf(){return _0x1e2032[_0x1a5ff4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a5ff4([0x76,0x69,0x65,0x77])][_0x1a5ff4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1a5ff4([0x61,0x75,0x74,0x6f]);}function _0xf5cab6(){_0x1e2032[_0x1a5ff4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a5ff4([0x76,0x69,0x65,0x77])][_0x1a5ff4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1a5ff4([0x61,0x75,0x74,0x6f]);}}function _0x12cc43(_0x19bd6a){const _0x533855=[new window[(_0x1a5ff4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34a1e8=>setTimeout(_0x34a1e8,0x5356b2f6^_0x2bcf1c)),_0x88a313[_0x1a5ff4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1a5ff4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50c31b=>{let _0x516353=0x0;_0x1e2032[_0x1a5ff4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a5ff4([0x6f,0x6e])](_0x1a5ff4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xabda1e,_0x457f52)=>{_0x457f52[0x0][_0x1a5ff4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x516353++,_0x516353==(0x535f89d2^_0x2bcf1c)&&(_0x50c31b(),_0xabda1e[_0x1a5ff4([0x6f,0x66,0x66])]());});}))];return window[_0x1a5ff4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1a5ff4([0x72,0x61,0x63,0x65])](_0x533855)[_0x1a5ff4([0x74,0x68,0x65,0x6e])](()=>_0x19bd6a);}async function _0xc3939(){await _0x88a313,_0x1e2032[_0x1a5ff4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a5ff4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xa9a257,_0x1e2032[_0x1a5ff4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a5ff4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xa9a257,_0x1e2032[_0x1a5ff4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1a5ff4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x45562d(_0x2445ce){const _0x6d15c4=_0x1dc677();_0x1e2032[_0x6d15c4]=_0x1a5ff4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2445ce,_0x2445ce!=_0x1a5ff4([0x56,0x61,0x6c,0x69,0x64])&&_0xc3939();}function _0x1dc677(){const _0x5c4db0=window[_0x1a5ff4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1a5ff4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1a5ff4([0x6e,0x6f,0x77])]())[_0x1a5ff4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1a5ff4([0x2e]),'');let _0x2b567e=_0x1a5ff4([0x68]);for(let _0x3ea5d7=0x0;_0x3ea5d7<_0x5c4db0[_0x1a5ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ea5d7+=0x2){let _0xb2c80b=window[_0x1a5ff4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c4db0[_0x1a5ff4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ea5d7,_0x3ea5d7+0x2));_0xb2c80b>=_0x584a3a[_0x1a5ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb2c80b-=_0x584a3a[_0x1a5ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b567e+=_0x584a3a[_0xb2c80b];}return _0x2b567e;}function _0x922472(){const _0xc9bc1a=_0x211f3f[_0x1a5ff4([0x73,0x70,0x6c,0x69,0x74])](_0x1a5ff4([0x2e]));if(0x3!=_0xc9bc1a[_0x1a5ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x54239b(_0xc9bc1a[0x1]);function _0x54239b(_0x469552){const _0x2d582e=_0x924206(_0x469552);return _0x2d582e&&_0x43c1ec()?_0x2d582e:null;function _0x43c1ec(){const _0x5883cb=_0x2d582e[_0x1a5ff4([0x6a,0x74,0x69])],_0x411751=window[_0x1a5ff4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5883cb[_0x1a5ff4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5883cb[_0x1a5ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2069f9={..._0x2d582e,[_0x1a5ff4([0x6a,0x74,0x69])]:_0x5883cb[_0x1a5ff4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5883cb[_0x1a5ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2069f9[_0x1a5ff4([0x76,0x63])],_0x548a6f(_0x2069f9)==_0x411751;}}}async function _0x5cae64(){let _0x53b365=!0x0;try{const _0x28f837=_0x211f3f[_0x1a5ff4([0x73,0x70,0x6c,0x69,0x74])](_0x1a5ff4([0x2e])),[_0x2475a5,_0x33996e,_0x45e721]=_0x28f837;return _0x23f775(_0x2475a5),await _0x3bb51f(_0x2475a5,_0x33996e,_0x45e721),_0x53b365;}catch{return!0x1;}function _0x23f775(_0x55ded0){const _0x305904=_0x924206(_0x55ded0);_0x305904&&_0x305904[_0x1a5ff4([0x61,0x6c,0x67])]==_0x1a5ff4([0x45,0x53,0x32,0x35,0x36])||(_0x53b365=!0x1);}async function _0x3bb51f(_0x3b584f,_0x6c4c50,_0x2885d8){const _0x5e42e0=window[_0x1a5ff4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1a5ff4([0x66,0x72,0x6f,0x6d])](_0x60ae59(_0x2885d8),_0x5813ab=>_0x5813ab[_0x1a5ff4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x38f7cd=new window[(_0x1a5ff4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1a5ff4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3b584f+_0x1a5ff4([0x2e])+_0x6c4c50),_0x26d545=window[_0x1a5ff4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1a5ff4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x26d545)return;const _0x4bc57c=await _0x26d545[_0x1a5ff4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1a5ff4([0x6a,0x77,0x6b]),_0x21ca60,{[_0x1a5ff4([0x6e,0x61,0x6d,0x65])]:_0x1a5ff4([0x45,0x43,0x44,0x53,0x41]),[_0x1a5ff4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1a5ff4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1a5ff4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x26d545[_0x1a5ff4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1a5ff4([0x6e,0x61,0x6d,0x65])]:_0x1a5ff4([0x45,0x43,0x44,0x53,0x41]),[_0x1a5ff4([0x68,0x61,0x73,0x68])]:{[_0x1a5ff4([0x6e,0x61,0x6d,0x65])]:_0x1a5ff4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4bc57c,_0x5e42e0,_0x38f7cd)||(_0x53b365=!0x1);}}function _0x924206(_0x108388){return _0x108388[_0x1a5ff4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1a5ff4([0x65,0x79]))?JSON[_0x1a5ff4([0x70,0x61,0x72,0x73,0x65])](_0x60ae59(_0x108388)):null;}function _0x60ae59(_0x5802c9){return window[_0x1a5ff4([0x61,0x74,0x6f,0x62])](_0x5802c9[_0x1a5ff4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1a5ff4([0x2b]))[_0x1a5ff4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1a5ff4([0x2f])));}function _0x548a6f(_0x27a546){let _0x434f1a=0x1505;function _0x1edad5(_0x3e5f0a){for(let _0x371397=0x0;_0x371397<_0x3e5f0a[_0x1a5ff4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x371397++){const _0x4d1c75=_0x3e5f0a[_0x1a5ff4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x371397);_0x434f1a=(_0x434f1a<<0x5)+_0x434f1a+_0x4d1c75,_0x434f1a&=_0x434f1a;}}function _0x358122(_0x590def){Array[_0x1a5ff4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x590def)?_0x590def[_0x1a5ff4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x358122):_0x590def&&typeof _0x590def==_0x1a5ff4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1a5ff4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x590def)[_0x1a5ff4([0x73,0x6f,0x72,0x74])]()[_0x1a5ff4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3e7fb2,_0x174a48])=>{_0x1edad5(_0x3e7fb2),_0x358122(_0x174a48);}):_0x1edad5(window[_0x1a5ff4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x590def));}return _0x358122(_0x27a546),_0x434f1a>>>0x0;}function _0x5600de(_0x594ff4){return _0x594ff4[_0x1a5ff4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1a5ff4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1a5ff4([0x30]));}function _0x4407c6(_0x4c6c33){return _0x4c6c33[_0x1a5ff4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1a5ff4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1a5ff4([0x6a,0x6f,0x69,0x6e])]('');}function _0xa9a257(){}function _0x1a5ff4(_0x4a2b3d){return _0x4a2b3d['map'](_0x5e352c=>String['fromCharCode'](_0x5e352c))['join']('');}_0x45562d(await _0x13ddde());}(this);}['_initSchema'](){const _0x34bd46=this['editor']['model']['schema'];_0x34bd46['isRegistered']('imageBlock')&&_0x34bd46['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x34bd46['isRegistered']('imageInline')&&_0x34bd46['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x115b85=this['editor'];_0x115b85['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x115b85['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x12253d=>_0x12253d['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xbe89e1=_0x115b85['commands']['get']('replaceImageSource');_0xbe89e1&&this['listenTo'](_0xbe89e1,'cleanupImage',(_0x53b455,[_0x39b190,_0x1e2b01])=>{_0x39b190['removeAttribute']('uploadcareImageId',_0x1e2b01);});}['_initConfig'](){const _0x483712=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4753d3=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x35ab70(_0x44bbcf['document'],'uc-config',{..._0x483712,'pubkey':_0x4753d3,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x3564f3=>{if('closeMax'==_0x3564f3)return'#uc-icon-arrow-down';},_0x44bbcf['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x35ab70(_0x44bbcf['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x44bbcf['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x192e44=this['editor']['commands']['get']('insertImage');_0x192e44&&this['listenTo'](_0x192e44,'execute',()=>{const _0x543043=this['editor']['model']['document']['selection']['getSelectedElement']();_0x543043&&_0x543043['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x543043);});});const _0x1a9f6f=this['editor']['commands']['get']('uploadcareImageReplace');_0x1a9f6f&&this['listenTo'](_0x1a9f6f,'execute',()=>{const _0x199771=this['editor']['model']['document']['selection']['getSelectedElement']();_0x199771&&_0x199771['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x199771);});});}}class tt extends _0x59c0a1{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x284d89){super(_0x284d89),_0x284d89['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x183d2c['defineComponents'](_0x183d2c),this['_defineLocale']();}['_defineLocale'](){const _0x22e00f=this['editor']['config']['get']('uploadcare.locale'),_0x16bb74=this['editor']['locale']['contentLanguage'];_0x22e00f&&_0x183d2c['defineLocale'](_0x16bb74,_0x22e00f);}}class ii extends _0x4c689a{constructor(_0x498c20){super(_0x498c20);const t=_0x498c20['t'],_0x3d70e4=this['bindTemplate'],_0x4d73da=new _0xe3c2e4();_0x4d73da['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':[_0x4d73da,{'text':_0x3d70e4['to']('imageUploadProgress',_0x5104cb=>t('Loading\x20image...')+'\x20('+(_0x5104cb||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x4c689a{constructor(_0x4d865c){super(_0x4d865c);const t=_0x4d865c['t'];this['set']('errorType',null);const _0x5bcee4=new _0x14eb05(_0x4d865c);_0x5bcee4['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5bcee4['withText']=!0x0,_0x5bcee4['class']='ck-button-action',_0x5bcee4['on']('execute',()=>{this['fire']('retry');}),_0x5bcee4['bind']('isVisible')['to'](this,'errorType',_0x362dfb=>'NotFound'!==_0x362dfb);const _0x43301c=new _0x389bbd();_0x43301c['content']=_0x5dd3d6,_0x43301c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2b321b=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':[_0x43301c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2b321b['to']('errorType',_0x431341=>t('NotFound'!==_0x431341?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5bcee4]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x4c689a{constructor(_0x511e6d,_0x49827c){super(_0x511e6d);const _0x433085=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x49827c,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x433085['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x529511,_0x4679c8,_0x13faa2){super(_0x529511),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x529511),this['_errorView']=new ti(_0x529511),this['_editingView']=new ei(_0x529511,_0x13faa2),this['_focusableView']=new _0x4c689a(_0x529511),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4679c8),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x26c802=>{this['_addUploadcareImageEditorListeners'](_0x26c802);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x33bb03,_0x60f828){const _0x18bdfa='uc-cloud-image-editor',_0x56b1a1=_0x33bb03['querySelector'](_0x18bdfa);if(_0x56b1a1)return _0x60f828(_0x56b1a1);const _0x2afc89=new MutationObserver(_0x5aea93=>{const _0x4a30a0=_0x5aea93['filter'](_0x478f92=>_0x478f92['target']===_0x33bb03&&_0x478f92['addedNodes']['length']>0x0&&_0x478f92['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x18bdfa);_0x4a30a0['length']&&(_0x2afc89['disconnect'](),_0x60f828(_0x4a30a0[0x0]['addedNodes'][0x0]));});_0x2afc89['observe'](_0x33bb03,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2f8fd7){_0x2f8fd7['addEventListener']('apply',_0x40d0af=>{this['fire']('apply',{'imageSrc':_0x40d0af['detail']['cdnUrl']});}),_0x2f8fd7['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x56a17e(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x39dc9c,_0x18a00a,_0x10634d){super(),this['_editor']=_0x39dc9c,this['_dialog']=_0x18a00a,this['_imageElement']=_0x10634d,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 _0x508d55=this['_imageElement'],_0x13d87a=_0x508d55['getAttribute']('uploadcareImageId'),_0x11d053=_0x508d55['getAttribute']('src');if(_0x13d87a)await this['_loadImageInfo'](_0x13d87a,_0x11d053);else{if(this['_imageCache']['has'](_0x11d053)){const _0x4f2b65=this['_imageCache']['get'](_0x11d053);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4f2b65['url'],this['imageDimension']=_0x4f2b65['dimension'],this['imageId']=_0x4f2b65['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xc7f750}=this['_editor'],t=_0xc7f750['t'],_0xa498f9=new X(_0xc7f750,this['imageStatus'],this['_attributes']);_0xa498f9['bind']('status')['to'](this,'imageStatus'),_0xa498f9['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xa498f9['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xa498f9['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xa498f9,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3a9f96,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xa498f9,'position':_0x3e0798['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xa498f9['focus']();},'onHide':()=>{_0xa498f9['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x41cb42=>!A(_0x41cb42,_0xa498f9['element'])}});}['_loadImageInfo'](_0x1a1603,_0x4ea96f){return j['getInfo'](_0x1a1603,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3ac5cf=>{const {width:_0x25b92d,height:_0x501ed1}=_0x3ac5cf['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4ea96f,this['imageDimension']={'width':_0x25b92d,'height':_0x501ed1},this['imageId']=_0x1a1603;})['catch'](_0x5c5807=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5c5807['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x25b789,_0x598871){return this['_getImageAsFile'](_0x25b789)['then'](_0x3758f5=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x598871['signal'],'file':_0x3758f5,'onProgress':_0x276142=>{_0x276142&&_0x276142['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x276142['value']));}}))['then'](_0x4e3147=>{const {width:_0x588e2e,height:_0x27d778}=_0x4e3147['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4e3147['cdnUrl'],this['imageDimension']={'width':_0x588e2e,'height':_0x27d778},this['imageId']=_0x4e3147['uuid'],this['imageUploadProgress']=null;const _0x44a86c=_0x25b789['getAttribute']('src');this['_imageCache']['set'](_0x44a86c,{'id':_0x4e3147['uuid'],'url':_0x4e3147['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3e87f4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3e87f4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4605f1,_0x4ed4e1){_0x4605f1['on']('apply',(_0x10d600,_0x59a755)=>{this['_replaceImage'](_0x4ed4e1,_0x59a755['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4605f1['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4605f1['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x269abf,_0x18dba2,_0x3f7a59){const _0x59739b=this['_editor'],{width:_0x25fed7,height:_0x371e2a}=S(_0x18dba2,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2787c4,imageSources:_0x3e9fff}=C(_0x18dba2,_0x25fed7);_0x59739b['model']['change'](_0x2272e3=>{if('$graveyard'===_0x269abf['root']['rootName']){_0x59739b['execute']('insertImage',{'imageType':_0x269abf['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x269abf['getAttributes']()),'uploadcareImageId':_0x3f7a59,'src':_0x2787c4,'sources':_0x3e9fff,'width':_0x25fed7,'height':_0x371e2a}});const _0x397151=_0x269abf['getChildren']();_0x269abf=_0x59739b['model']['document']['selection']['getSelectedElement']();for(const _0x13bb88 of _0x397151)_0x2272e3['append'](_0x2272e3['cloneElement'](_0x13bb88),_0x269abf);}else _0x2272e3['setSelection'](_0x269abf,'on'),_0x59739b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x269abf['getAttributes']()),'uploadcareImageId':_0x3f7a59,'src':_0x2787c4,'sources':_0x3e9fff,'width':_0x25fed7,'height':_0x371e2a},_0x269abf);_0x2272e3['setSelection'](_0x269abf,'on');});}async['_getImageAsFile'](_0xe01985){const _0x3cb405=_0x44bbcf['window'],_0xfa76a7=_0x44bbcf['document']['location']['href'],_0x24d47f=new _0x3cb405['URL'](_0xe01985['getAttribute']('src'),_0xfa76a7);if('data:'===_0x24d47f['protocol']){const _0x50217d=_0x24d47f['href']['split'](','),_0x21b27f=_0x50217d[0x0]['match'](/:(.*?);/)[0x1],_0x5a34e2=_0x21b27f['split']('/')[0x1],_0x15f01a=_0x3cb405['atob'](_0x50217d[_0x50217d['length']-0x1]);let _0x4e77d3=_0x15f01a['length'];const _0x4abb44=new _0x3cb405['Uint8Array'](_0x4e77d3);for(;_0x4e77d3--;)_0x4abb44[_0x4e77d3]=_0x15f01a['charCodeAt'](_0x4e77d3);return new _0x3cb405['File']([_0x4abb44],'image.'+_0x5a34e2,{'type':_0x21b27f});}const _0x1a89e5=_0x24d47f['href']['split']('/'),_0x3ae4b4=_0x1a89e5[_0x1a89e5['length']-0x1],_0x141449=_0x3ae4b4['split']('.')[0x1];return _0x3cb405['fetch'](_0x24d47f['href'])['then'](_0x5b2563=>_0x5b2563['clone']()['blob']())['then'](_0xa5ea23=>new _0x3cb405['File']([_0xa5ea23],_0x3ae4b4,{'type':'image/'+_0x141449}));}}class Q extends _0x1fef53{['imageEditController'];static get['requires'](){return[_0x3c3d21];}['_isEditable'];constructor(_0x475fa6){super(_0x475fa6),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x128353){const _0x416fbf=z(_0x128353);return _0x2118c5=>!(!_0x2118c5||!_0x2118c5['is']('element','imageBlock')&&!_0x2118c5['is']('element','imageInline'))&&(!!_0x2118c5['hasAttribute']('uploadcareImageId')||!!_0x2118c5['hasAttribute']('src')&&_0x416fbf(_0x2118c5['getAttribute']('src')));}(_0x475fa6['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x34f3f3=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x34f3f3);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5c2f13=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5c2f13&&(_0x5c2f13['is']('element','imageBlock')||_0x5c2f13['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x3c3d21),_0x5c2f13),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x1fef53{['refresh'](){const _0x440e93=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x440e93&&(_0x440e93['is']('element','imageBlock')||_0x440e93['is']('element','imageInline')));}['execute'](_0x3ad10e){const _0x48b297=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xf5eb89=>{_0xf5eb89['setAttributes'](_0x3ad10e,_0x48b297),_0xf5eb89['removeAttribute']('srcset',_0x48b297),_0xf5eb89['removeAttribute']('sizes',_0x48b297);});}}class m extends _0x59c0a1{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x35664b,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1b1221}=this;_0x1b1221['commands']['add']('uploadcareImageEdit',new Q(_0x1b1221)),_0x1b1221['commands']['add']('uploadcareImageReplace',new V(_0x1b1221));}}class g extends _0x59c0a1{['_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 _0x7c52e0=this['editor'];_0x7c52e0['ui']['componentFactory']['add']('uploadcareImageEdit',_0x13c197=>{const _0x1b691e=_0x7c52e0['commands']['get']('uploadcareImageEdit'),_0x4c5a10=new _0x14eb05(_0x13c197),t=_0x13c197['t'];return _0x4c5a10['set']({'icon':_0x3a9f96,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4c5a10['bind']('isEnabled')['to'](_0x1b691e),_0x4c5a10['bind']('isOn')['to'](_0x1b691e,'isActive'),this['listenTo'](_0x4c5a10,'execute',()=>{_0x7c52e0['execute']('uploadcareImageEdit'),_0x7c52e0['editing']['view']['focus']();}),_0x4c5a10;}),this['_initConfig']();}['_initConfig'](){const _0x335dce=_0x35ab70(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x335dce),this['listenTo'](this['editor'],'destroy',()=>{_0x335dce['remove']();});}}class et extends _0x59c0a1{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x1b3829,Command as _0x249e8e}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x5d8f1c,IconGooglePhotos as _0x31b286,IconGoogleDrive as _0xef5885,IconFacebook as _0x1b9f08,IconDropbox as _0x223513,IconUploadcareLink as _0x4c4788,IconUploadcareImageUpload as _0xdddccd,IconError as _0x520dc8,IconUploadcareImageEdit as _0x4fcded}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x51727c,MenuBarMenuListItemButtonView as _0x1d005b,View as _0x52e260,FocusCycler as _0x4fefb2,Dialog as _0xa099cb,DialogViewPosition as _0x18bb53,SpinnerView as _0x346673,IconView as _0xeca87b,Notification as _0x29da43}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x519499,DomEmitterMixin as _0x1583f7,global as _0x26140e,getAncestors as _0x7c5489,ObservableMixin as _0x3c83f0,uid as _0x4fe74c,createElement as _0x1dc68e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x493b6c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1f63da,info as _0x5a972b}from'@uploadcare/upload-client';import*as _0x3f2e00 from'@uploadcare/file-uploader';var i=function(_0x47e837){return _0x47e837['Local']='local',_0x47e837['URL']='url',_0x47e837['Dropbox']='dropbox',_0x47e837['GDrive']='gdrive',_0x47e837['Facebook']='facebook',_0x47e837['GPhotos']='gphotos',_0x47e837['OneDrive']='onedrive',_0x47e837;}({});function _(_0x343f15,_0x12df5c,_0x67db76){const t=_0x343f15['t'],_0x389dc6=_0x343f15['t'];switch(_0x12df5c){case i['Local']:return{'text':_0x389dc6('Insert'===_0x67db76?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x389dc6('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x67db76?_0x389dc6('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x389dc6('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x67db76?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x67db76?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x67db76?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x67db76?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x67db76?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x12df5c;}}class e extends _0x1b3829{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5324fb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x52baff;for(const _0x581055 in _0x5324fb){const _0x2c3310=_0x581055,_0x5f5a87=_0x5324fb[_0x2c3310];if('uploadcareLicenseKeyValid'==_0x5f5a87||'uploadcareLicenseKeyInvalid'==_0x5f5a87||'uploadcareLicenseKeyExpired'==_0x5f5a87||'uploadcareLicenseKeyDomainLimit'==_0x5f5a87||'uploadcareLicenseKeyNotAllowed'==_0x5f5a87||'uploadcareLicenseKeyEvaluationLimit'==_0x5f5a87||'uploadcareLicenseKeyTrialLimit'==_0x5f5a87||'uploadcareLicenseKeyUsageLimit'==_0x5f5a87){delete _0x5324fb[_0x2c3310],_0x52baff=_0x5f5a87,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x52baff&&_0x5324fb['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x52baff&&_0x5324fb['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x52baff&&_0x5324fb['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x52baff&&_0x5324fb['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x52baff&&_0x5324fb['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x52baff&&_0x5324fb['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x52baff&&_0x5324fb['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x3c6e8b}=this,_0x455e57=_0x3c6e8b['commands']['get']('uploadcare');if(!_0x455e57)return;const _0x124733=this['_normalizeConfigSourceList'](_0x3c6e8b['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x27710e,_0x37b161)=>{const _0x29c9cb=this['_getIntegrationKey'](_0x37b161['type']);return _0x27710e[_0x29c9cb]||(_0x27710e[_0x29c9cb]=[]),_0x27710e[_0x29c9cb]['push'](_0x37b161),_0x27710e;},{});_0x3c6e8b['plugins']['has']('ImageInsertUI')&&_0x3c6e8b['commands']['get']('uploadcare')&&Object['entries'](_0x124733)['forEach'](([_0x5f5ae5,_0x5dd357])=>{_0x3c6e8b['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5f5ae5,'observable':()=>_0x455e57,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5dd357),'formViewCreator':()=>this['_createDropdownButtons'](_0x5dd357),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5dd357),'override':'assetManager'!==_0x5f5ae5});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x343658){const {locale:_0x1c7d14}=this['editor'];return _0x343658['map'](_0x1e8d78=>{const _0x5dab72=_(_0x1c7d14,_0x1e8d78,'Insert');switch(_0x1e8d78){case i['Local']:return{'icon':_0xdddccd,'type':i['Local'],..._0x5dab72};case i['URL']:return{'icon':_0x4c4788,'type':i['URL'],..._0x5dab72};case i['Dropbox']:return{'icon':_0x223513,'type':i['Dropbox'],..._0x5dab72};case i['Facebook']:return{'icon':_0x1b9f08,'type':i['Facebook'],..._0x5dab72};case i['GDrive']:return{'icon':_0xef5885,'type':i['GDrive'],..._0x5dab72};case i['GPhotos']:return{'icon':_0x31b286,'type':i['GPhotos'],..._0x5dab72};case i['OneDrive']:return{'icon':_0x5d8f1c,'type':i['OneDrive'],..._0x5dab72};}});}['_getIntegrationKey'](_0x3ca47e){switch(_0x3ca47e){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x48c42f,_0x966109){const _0x361049=this['editor'],_0x5d9d4f=new _0x48c42f(_0x361049['locale']),_0x433d7d=_0x361049['commands']['get']('uploadcare');return _0x5d9d4f['bind']('isEnabled')['to'](_0x433d7d),_0x5d9d4f['on']('execute',()=>{_0x433d7d['execute'](_0x966109);}),_0x5d9d4f;}['_createToolbarButton'](_0xd6fe01){const {locale:_0x3dda22}=this['editor'],_0x52bf96=this['editor']['plugins']['get']('ImageInsertUI'),_0xed4982=_0xd6fe01[0x0],_0x4fb9bd=this['_createButton'](_0x51727c,_0xed4982['type']);return _0x4fb9bd['icon']=_0xed4982['icon'],_0x4fb9bd['bind']('label')['to'](_0x52bf96,'isImageSelected',_0x41c6aa=>_(_0x3dda22,_0xed4982['type'],_0x41c6aa?'Replace':'Insert')['text']),_0x4fb9bd['tooltip']=!0x0,_0x4fb9bd;}['_createDropdownButtons'](_0x3fbc5f){const {locale:_0x205560}=this['editor'],_0x489e61=this['editor']['plugins']['get']('ImageInsertUI');return _0x3fbc5f['map'](_0x4f0508=>{const _0x2543df=this['_createButton'](_0x51727c,_0x4f0508['type']);return _0x2543df['withText']=!0x0,_0x2543df['icon']=_0x4f0508['icon'],_0x2543df['bind']('label')['to'](_0x489e61,'isImageSelected',_0x5a7972=>_(_0x205560,_0x4f0508['type'],_0x5a7972?'Replace':'Insert')['text']),_0x2543df;});}['_createMenuBarButtons'](_0x372f94){return _0x372f94['map'](_0x2a8a0d=>{const _0x33f435=this['_createButton'](_0x1d005b,_0x2a8a0d['type']);return _0x33f435['icon']=_0x2a8a0d['icon'],_0x33f435['label']=_0x2a8a0d['shortText'],_0x33f435;});}}class V extends _0x52e260{['focusTracker'];['focusCycler'];constructor(_0x31684c){super(_0x31684c),this['focusTracker']=new _0x519499(),this['focusCycler']=new _0x4fefb2({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class E extends V{constructor(_0x19626a,_0xde8fa4){super(_0x19626a),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader-'+_0xde8fa4}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x3ae564,_0x97d8f1){const _0x4c3b85=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2bacf0=>_0x2bacf0<=_0x97d8f1)['map'](_0x3875db=>_0x3ae564['replace'](/\/$/,'')+'/-/resize/'+_0x3875db+'x/\x20'+_0x3875db+'w');return{'imageFallbackUrl':_0x3ae564,'imageSources':[{'srcset':_0x4c3b85['join'](',\x20'),'sizes':'(max-width:\x20'+_0x97d8f1+'px)\x20100vw,\x20'+_0x97d8f1+'px','type':'image/webp'}]};}function M(_0x5afec2,_0x304f1,_0x3553b6){const _0x311020=_0x5afec2['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x311020?parseInt(_0x311020[0x1],0xa):_0x304f1,'height':_0x311020?parseInt(_0x311020[0x2],0xa):_0x3553b6};}function p(_0x20778d,_0x1df79c){const _0x193451=new(_0x1583f7())(),_0x78737c=_0x20778d['plugins']['get']('ImageUtils'),_0x295813=_0x20778d['editing']['mapper']['toViewElement'](_0x1df79c),_0x1563ca=_0x78737c['findViewImgElement'](_0x295813),_0x4f0efb=_0x20778d['editing']['view']['domConverter']['viewToDom'](_0x1563ca),_0x3b320b=_0x1df79c['getAttribute']('width'),_0x555391=_0x1df79c['getAttribute']('height'),_0xfe7b7e='image-processing';_0x20778d['editing']['view']['change'](_0x4be537=>{_0x4be537['addClass'](_0xfe7b7e,_0x295813),_0x4be537['setStyle']('aspect-ratio',_0x3b320b+'/'+_0x555391,_0x1563ca);}),_0x193451['listenTo'](_0x4f0efb,'load',()=>{_0x193451['stopListening'](_0x4f0efb,'load'),_0x20778d['editing']['view']['change'](_0x2c5d29=>{_0x2c5d29['removeClass'](_0xfe7b7e,_0x295813),_0x2c5d29['removeStyle']('aspect-ratio',_0x1563ca);});});}function z(_0x131910){if(Array['isArray'](_0x131910)){const _0x66e76a=_0x131910['map'](z);return _0x5872b1=>_0x66e76a['some'](_0x2b8294=>_0x2b8294(_0x5872b1));}if('origin'==_0x131910){const _0x360f5c=_0x26140e['window']['location']['origin'];return _0x2661fc=>new URL(_0x2661fc,_0x26140e['document']['baseURI'])['origin']==_0x360f5c;}return'function'==typeof _0x131910?_0x131910:_0x131910 instanceof RegExp?_0x4b4fab=>!(!_0x4b4fab['match'](_0x131910)&&!_0x4b4fab['replace'](/^https?:\/\//,'')['match'](_0x131910)):()=>!0x1;}function O(_0x114c54,_0x2f5964){return _0x7c5489(_0x114c54['target'])['includes'](_0x2f5964);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3c83f0(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x39b0d1,_0x4ef2ad,_0x217fd7){super(),this['_editor']=_0x39b0d1,this['_editing']=_0x4ef2ad,this['_dialog']=_0x39b0d1['plugins']['get'](_0xa099cb),this['_api']=_0x4ef2ad['ctxElement']['getAPI'](),this['_type']=_0x217fd7,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x3bb2c7,model:_0x3cc408}=this['_editor'],_0x431c65=_0x3cc408['document']['selection']['getSelectedElement'](),_0x39af10=_0x431c65&&(_0x431c65['is']('element','imageBlock')||_0x431c65['is']('element','imageInline'));this['_formView']=new E(_0x3bb2c7,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0xdddccd,'title':_(_0x3bb2c7,this['_type'],_0x39af10?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x18bb53['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x525508=>!O(_0x525508,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x40622a}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3e7c86=>{const _0x5bcbed=_0x40622a['length'];for(const _0x21a65a of _0x40622a){const _0x3aed3a=_0x21a65a===_0x40622a[_0x5bcbed-0x1],{cdnUrl:_0x5890f5,fileInfo:_0x4258e4}=_0x21a65a;if(!_0x5890f5||!_0x4258e4)continue;const {width:_0x398a5e,height:_0x3571c3}=_0x4258e4['imageInfo'],_0x54edfd=M(_0x5890f5,_0x398a5e,_0x3571c3),_0x12a70a=C(_0x5890f5,_0x54edfd['width']),_0x581f48={'id':_0x4258e4['uuid'],'type':'image','attributes':{'imageDimension':_0x54edfd,..._0x12a70a}};this['_insertAsset'](_0x581f48,_0x3aed3a,_0x3e7c86);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xaa0f97=>{'idle'===_0xaa0f97['detail']['status']&&!_0xaa0f97['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x49cef3,_0x141e31,_0x4df0d4){const _0x517eb7=this['_editor']['model']['document']['selection'],_0x4c71ea=_0x517eb7['getSelectedElement'](),_0x13f8c6=!(!_0x4c71ea||!_0x4c71ea['is']('element','imageInline'));_0x4df0d4['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x49cef3,_0x13f8c6),_0x141e31||_0x4df0d4['setSelection'](_0x517eb7['getLastPosition']());}['_insertImage'](_0x48d1fd,_0x2378ca){const _0x34a663=this['_editor'],{imageDimension:_0x50d4f5,imageFallbackUrl:_0x98b0a8,imageSources:_0x272303}=_0x48d1fd['attributes'];_0x34a663['execute']('insertImage',{'imageType':_0x2378ca?'imageInline':null,'source':{'uploadcareImageId':_0x48d1fd['id'],'src':_0x98b0a8,'sources':_0x272303,..._0x50d4f5}});}}class w extends _0x249e8e{['_editing'];['_controller']=null;static get['requires'](){return[_0xa099cb,o];}constructor(_0xc92d21){super(_0xc92d21),this['_editing']=_0xc92d21['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x24cb27){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x24cb27);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x4bb5c5,..._0x592beb}){return _0x1f63da(_0x4bb5c5,_0x592beb);}static['getInfo'](_0x72ef9f,_0x5b15e1){return _0x5a972b(_0x72ef9f,_0x5b15e1);}}class f extends _0x1b3829{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x493b6c,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x112dd4=this['editor'];if(!!!_0x112dd4['config']['get']('uploadcare'))return;_0x112dd4['plugins']['get'](_0x493b6c)['createUploadAdapter']=_0x368e4c=>new k(_0x368e4c,_0x112dd4),_0x112dd4['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x207b03,{imageElement:_0x9cda77,data:_0x1d2b27})=>{_0x112dd4['model']['change'](_0x26cdbf=>{_0x26cdbf['setAttribute']('uploadcareImageId',_0x1d2b27['uploadcareImageId'],_0x9cda77);});});}}class k{['loader'];['editor'];['controller'];constructor(_0xf22b1a,_0x164e93){this['loader']=_0xf22b1a,this['editor']=_0x164e93,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x26d9e4=await this['loader']['file'];return j['upload']({'file':_0x26d9e4,'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':_0x25895b=>{_0x25895b&&_0x25895b['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x25895b['value']);}})['then'](async _0x135bb3=>{const {imageFallbackUrl:_0x4de49f,imageSources:_0x3c9da5}=C(_0x135bb3['cdnUrl'],_0x135bb3['imageInfo']['width']);return{'uploadcareImageId':_0x135bb3['uuid'],'default':_0x4de49f,'sources':_0x3c9da5};})['catch'](()=>{const _0x3229f2=t('Cannot\x20upload\x20file:')+('\x20'+_0x26d9e4['name']+'.');return Promise['reject'](_0x3229f2);});}['abort'](){this['controller']['abort']();}}class o extends _0x1b3829{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0xa099cb];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x633404){super(_0x633404),this['ucContextId']=_0x4fe74c();}['init'](){const _0xf906df=this['editor'];_0xf906df['commands']['add']('uploadcare',new w(_0xf906df));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0xddcb78=_0x26140e['document']['querySelector']('input[uploadcare-file-input]');_0xddcb78&&_0xddcb78['remove']();}),async function(_0x43e83a){const _0x4424d7=_0x3b8d80([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]),_0x1ffa40=0x535f8c3a,_0x4a7616=0x5358f0d2^_0x1ffa40,_0x242b98=window[_0x3b8d80([0x44,0x61,0x74,0x65])][_0x3b8d80([0x6e,0x6f,0x77])](),_0x1898b3=_0x43e83a[_0x3b8d80([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x285aba=new window[(_0x3b8d80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a23db=>{_0x1898b3[_0x3b8d80([0x6f,0x6e,0x63,0x65])](_0x3b8d80([0x72,0x65,0x61,0x64,0x79]),_0x3a23db);}),_0x18fb1e={[_0x3b8d80([0x6b,0x74,0x79])]:_0x3b8d80([0x45,0x43]),[_0x3b8d80([0x75,0x73,0x65])]:_0x3b8d80([0x73,0x69,0x67]),[_0x3b8d80([0x63,0x72,0x76])]:_0x3b8d80([0x50,0x2d,0x32,0x35,0x36]),[_0x3b8d80([0x78])]:_0x3b8d80([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]),[_0x3b8d80([0x79])]:_0x3b8d80([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]),[_0x3b8d80([0x61,0x6c,0x67])]:_0x3b8d80([0x45,0x53,0x32,0x35,0x36])},_0x4a8888=_0x1898b3[_0x3b8d80([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b8d80([0x67,0x65,0x74])](_0x3b8d80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4622f1(){let _0xf05f5e,_0x6ab3ce=null,_0x5e6c89=null;try{if(_0x4a8888==_0x3b8d80([0x47,0x50,0x4c]))return _0x3b8d80([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xf05f5e=_0x5b043e(),!_0xf05f5e)return _0x3b8d80([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xf05f5e[_0x3b8d80([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5e6c89=_0x5f0082(_0xf05f5e[_0x3b8d80([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xf05f5e[_0x3b8d80([0x6a,0x74,0x69])])),await _0x26ee49()?_0x2e6c27()?_0x482b6e()?_0x3b8d80([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x455153()?(_0xf05f5e[_0x3b8d80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b8d80([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x6ab3ce=_0x1e656b(_0x3b8d80([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xf05f5e[_0x3b8d80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b8d80([0x74,0x72,0x69,0x61,0x6c])&&(_0x6ab3ce=_0x1e656b(_0x3b8d80([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x243578()):_0x3b8d80([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b8d80([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b8d80([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3b8d80([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x482b6e(){const _0x1b50f8=[_0x3b8d80([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b8d80([0x74,0x72,0x69,0x61,0x6c])][_0x3b8d80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf05f5e[_0x3b8d80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x242b98/0x3e8:0xe10*_0x4a7616;return _0xf05f5e[_0x3b8d80([0x65,0x78,0x70])]<_0x1b50f8;}function _0x2e6c27(){const _0xd5bcc1=_0xf05f5e[_0x3b8d80([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xd5bcc1&&(!!_0xd5bcc1[_0x3b8d80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b8d80([0x2a]))||!!_0xd5bcc1[_0x3b8d80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b8d80([0x55,0x50,0x4c,0x43])));}function _0x455153(){const _0x37ca06=_0xf05f5e[_0x3b8d80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x37ca06||0x0==_0x37ca06[_0x3b8d80([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x175255}=new URL(window[_0x3b8d80([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x37ca06[_0x3b8d80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x175255))return!0x0;const _0x4c023b=_0x175255[_0x3b8d80([0x73,0x70,0x6c,0x69,0x74])](_0x3b8d80([0x2e]));return _0x37ca06[_0x3b8d80([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4d031a=>_0x4d031a[_0x3b8d80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b8d80([0x2a])))[_0x3b8d80([0x6d,0x61,0x70])](_0x33fcc2=>_0x33fcc2[_0x3b8d80([0x73,0x70,0x6c,0x69,0x74])](_0x3b8d80([0x2e])))[_0x3b8d80([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2c2e80=>_0x2c2e80[_0x3b8d80([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4c023b[_0x3b8d80([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b8d80([0x6d,0x61,0x70])](_0x33d907=>Array(_0x4c023b[_0x3b8d80([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x33d907[_0x3b8d80([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b8d80([0x66,0x69,0x6c,0x6c])](_0x33d907[0x0]===_0x3b8d80([0x2a])?_0x3b8d80([0x2a]):'')[_0x3b8d80([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x33d907))[_0x3b8d80([0x73,0x6f,0x6d,0x65])](_0xf62373=>_0x4c023b[_0x3b8d80([0x65,0x76,0x65,0x72,0x79])]((_0x4d9457,_0x42cfa2)=>_0xf62373[_0x42cfa2]===_0x4d9457||_0xf62373[_0x42cfa2]===_0x3b8d80([0x2a])));}function _0x243578(){return _0x6ab3ce&&_0x5e6c89?new window[(_0x3b8d80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1dff0d,_0x58f6c9)=>{_0x6ab3ce[_0x3b8d80([0x74,0x68,0x65,0x6e])](_0x1dff0d,_0x58f6c9),_0x5e6c89[_0x3b8d80([0x74,0x68,0x65,0x6e])](_0x391878=>{_0x391878!=_0x3b8d80([0x56,0x61,0x6c,0x69,0x64])&&_0x1dff0d(_0x391878);},_0x58f6c9);}):_0x6ab3ce||_0x5e6c89||_0x3b8d80([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5f0082(_0x3930d8,_0x2a599f){return new window[(_0x3b8d80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c5922=>{if(_0x537de2())return _0x5c5922(_0x3b8d80([0x56,0x61,0x6c,0x69,0x64]));_0x1a98fc(),_0x1898b3[_0x3b8d80([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b8d80([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2650e7=!0x1;const _0x1441e6=_0x4fe74c();function _0x47a46a(_0x31c235){return!!_0x31c235&&(typeof _0x31c235===_0x3b8d80([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x31c235===_0x3b8d80([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x31c235[_0x3b8d80([0x74,0x68,0x65,0x6e])]===_0x3b8d80([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x31c235[_0x3b8d80([0x63,0x61,0x74,0x63,0x68])]===_0x3b8d80([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x56b4c1(_0xa8dba9){_0x2d2ee7(_0xa8dba9)[_0x3b8d80([0x74,0x68,0x65,0x6e])](_0x4ef0e6=>{if(!_0x4ef0e6||_0x4ef0e6[_0x3b8d80([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b8d80([0x6f,0x6b]))return _0x3b8d80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb6fe6(_0x495f8f(_0x1441e6+_0x2a599f))!=_0x4ef0e6[_0x3b8d80([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b8d80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b8d80([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b8d80([0x74,0x68,0x65,0x6e])](_0x3dd3a2=>(_0x3b640d(),_0x3dd3a2),()=>{const _0x40074e=_0x2fe3f0();return null==_0x40074e?(_0x3b640d(),_0x3b8d80([0x56,0x61,0x6c,0x69,0x64])):_0x3b8d80(_0x242b98-_0x40074e>(0x7753083a^_0x1ffa40)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b8d80([0x74,0x68,0x65,0x6e])](_0x5c5922)[_0x3b8d80([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5c5922(_0x3b8d80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x16f2b1=0x536962ba^_0x1ffa40;function _0x3b640d(){const _0x296ec7=_0x3b8d80([0x6c,0x6c,0x63,0x74,0x2d])+_0xb6fe6(_0x495f8f(_0x3930d8)),_0x6ee908=_0x16715c(_0xb6fe6(window[_0x3b8d80([0x4d,0x61,0x74,0x68])][_0x3b8d80([0x63,0x65,0x69,0x6c])](_0x242b98/_0x16f2b1)));window[_0x3b8d80([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b8d80([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x296ec7,_0x6ee908);}function _0x2fe3f0(){const _0x26c239=_0x3b8d80([0x6c,0x6c,0x63,0x74,0x2d])+_0xb6fe6(_0x495f8f(_0x3930d8)),_0x59b7d6=window[_0x3b8d80([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b8d80([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26c239);return _0x59b7d6?window[_0x3b8d80([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16715c(_0x59b7d6),0x10)*_0x16f2b1:null;}function _0x2d2ee7(_0x2a8488){return new window[(_0x3b8d80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d69ea,_0x18954b)=>{_0x2a8488[_0x3b8d80([0x74,0x68,0x65,0x6e])](_0x1d69ea,_0x18954b),window[_0x3b8d80([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x18954b,0x535e58fa^_0x1ffa40);});}}_0x1898b3[_0x3b8d80([0x6f,0x6e])](_0x3b8d80([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5c84c0,_0x2f5115)=>{if(_0x2f5115[0x0]!=_0x3930d8)return _0x5c5922(_0x3b8d80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2f5115[0x1]={..._0x2f5115[0x1],[_0x3b8d80([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1441e6};},{[_0x3b8d80([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b8d80([0x68,0x69,0x67,0x68])}),_0x1898b3[_0x3b8d80([0x6f,0x6e])](_0x3b8d80([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3b3639=>{_0x47a46a(_0x3b3639[_0x3b8d80([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2650e7=!0x0,_0x56b4c1(_0x3b3639[_0x3b8d80([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b8d80([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b8d80([0x6c,0x6f,0x77])}),_0x285aba[_0x3b8d80([0x74,0x68,0x65,0x6e])](()=>{_0x2650e7||_0x5c5922(_0x3b8d80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x537de2(){return _0x1898b3[_0x3b8d80([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b8d80([0x76,0x69,0x65,0x77])][_0x3b8d80([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b8d80([0x61,0x75,0x74,0x6f]);}function _0x1a98fc(){_0x1898b3[_0x3b8d80([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b8d80([0x76,0x69,0x65,0x77])][_0x3b8d80([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b8d80([0x61,0x75,0x74,0x6f]);}}function _0x1e656b(_0x7ce3a7){const _0x134c4a=[new window[(_0x3b8d80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fb65c=>setTimeout(_0x3fb65c,0x5356b2f6^_0x1ffa40)),_0x285aba[_0x3b8d80([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b8d80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x475cba=>{let _0x146cd5=0x0;_0x1898b3[_0x3b8d80([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b8d80([0x6f,0x6e])](_0x3b8d80([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3b281f,_0x975aa0)=>{_0x975aa0[0x0][_0x3b8d80([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x146cd5++,_0x146cd5==(0x535f89d2^_0x1ffa40)&&(_0x475cba(),_0x3b281f[_0x3b8d80([0x6f,0x66,0x66])]());});}))];return window[_0x3b8d80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b8d80([0x72,0x61,0x63,0x65])](_0x134c4a)[_0x3b8d80([0x74,0x68,0x65,0x6e])](()=>_0x7ce3a7);}async function _0x139f7b(){await _0x285aba,_0x1898b3[_0x3b8d80([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b8d80([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2725a5,_0x1898b3[_0x3b8d80([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b8d80([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2725a5,_0x1898b3[_0x3b8d80([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b8d80([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x10c1d7(_0x585eaa){const _0x2aafd6=_0x5f1530();_0x1898b3[_0x2aafd6]=_0x3b8d80([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x585eaa,_0x585eaa!=_0x3b8d80([0x56,0x61,0x6c,0x69,0x64])&&_0x139f7b();}function _0x5f1530(){const _0x287322=window[_0x3b8d80([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b8d80([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b8d80([0x6e,0x6f,0x77])]())[_0x3b8d80([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b8d80([0x2e]),'');let _0x2f2c36=_0x3b8d80([0x68]);for(let _0x86f1d9=0x0;_0x86f1d9<_0x287322[_0x3b8d80([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x86f1d9+=0x2){let _0xff50c8=window[_0x3b8d80([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x287322[_0x3b8d80([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x86f1d9,_0x86f1d9+0x2));_0xff50c8>=_0x4424d7[_0x3b8d80([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xff50c8-=_0x4424d7[_0x3b8d80([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2f2c36+=_0x4424d7[_0xff50c8];}return _0x2f2c36;}function _0x5b043e(){const _0x53d448=_0x4a8888[_0x3b8d80([0x73,0x70,0x6c,0x69,0x74])](_0x3b8d80([0x2e]));if(0x3!=_0x53d448[_0x3b8d80([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x57685c(_0x53d448[0x1]);function _0x57685c(_0x698713){const _0x5dce61=_0x537341(_0x698713);return _0x5dce61&&_0x3450c3()?_0x5dce61:null;function _0x3450c3(){const _0x39e836=_0x5dce61[_0x3b8d80([0x6a,0x74,0x69])],_0x32fba5=window[_0x3b8d80([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39e836[_0x3b8d80([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x39e836[_0x3b8d80([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4b2fe5={..._0x5dce61,[_0x3b8d80([0x6a,0x74,0x69])]:_0x39e836[_0x3b8d80([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x39e836[_0x3b8d80([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4b2fe5[_0x3b8d80([0x76,0x63])],_0x495f8f(_0x4b2fe5)==_0x32fba5;}}}async function _0x26ee49(){let _0x2cb39a=!0x0;try{const _0x4b37cf=_0x4a8888[_0x3b8d80([0x73,0x70,0x6c,0x69,0x74])](_0x3b8d80([0x2e])),[_0x2b9516,_0x2059fa,_0xbb2d02]=_0x4b37cf;return _0x52bea5(_0x2b9516),await _0x2c9009(_0x2b9516,_0x2059fa,_0xbb2d02),_0x2cb39a;}catch{return!0x1;}function _0x52bea5(_0x33dddd){const _0xf994f0=_0x537341(_0x33dddd);_0xf994f0&&_0xf994f0[_0x3b8d80([0x61,0x6c,0x67])]==_0x3b8d80([0x45,0x53,0x32,0x35,0x36])||(_0x2cb39a=!0x1);}async function _0x2c9009(_0x5d3744,_0x209b4f,_0x396cd4){const _0x1fca65=window[_0x3b8d80([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b8d80([0x66,0x72,0x6f,0x6d])](_0x4bb6d2(_0x396cd4),_0x1b362d=>_0x1b362d[_0x3b8d80([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x24717f=new window[(_0x3b8d80([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b8d80([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5d3744+_0x3b8d80([0x2e])+_0x209b4f),_0x3bd683=window[_0x3b8d80([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b8d80([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3bd683)return;const _0x64618d=await _0x3bd683[_0x3b8d80([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b8d80([0x6a,0x77,0x6b]),_0x18fb1e,{[_0x3b8d80([0x6e,0x61,0x6d,0x65])]:_0x3b8d80([0x45,0x43,0x44,0x53,0x41]),[_0x3b8d80([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b8d80([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b8d80([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3bd683[_0x3b8d80([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b8d80([0x6e,0x61,0x6d,0x65])]:_0x3b8d80([0x45,0x43,0x44,0x53,0x41]),[_0x3b8d80([0x68,0x61,0x73,0x68])]:{[_0x3b8d80([0x6e,0x61,0x6d,0x65])]:_0x3b8d80([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x64618d,_0x1fca65,_0x24717f)||(_0x2cb39a=!0x1);}}function _0x537341(_0x5c373f){return _0x5c373f[_0x3b8d80([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b8d80([0x65,0x79]))?JSON[_0x3b8d80([0x70,0x61,0x72,0x73,0x65])](_0x4bb6d2(_0x5c373f)):null;}function _0x4bb6d2(_0x4116f8){return window[_0x3b8d80([0x61,0x74,0x6f,0x62])](_0x4116f8[_0x3b8d80([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b8d80([0x2b]))[_0x3b8d80([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b8d80([0x2f])));}function _0x495f8f(_0x4cc3ef){let _0x44b74e=0x1505;function _0x27f459(_0x1ac4d6){for(let _0x21f46a=0x0;_0x21f46a<_0x1ac4d6[_0x3b8d80([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x21f46a++){const _0x3946ab=_0x1ac4d6[_0x3b8d80([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x21f46a);_0x44b74e=(_0x44b74e<<0x5)+_0x44b74e+_0x3946ab,_0x44b74e&=_0x44b74e;}}function _0x2ab8bd(_0x2fc960){Array[_0x3b8d80([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2fc960)?_0x2fc960[_0x3b8d80([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ab8bd):_0x2fc960&&typeof _0x2fc960==_0x3b8d80([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b8d80([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2fc960)[_0x3b8d80([0x73,0x6f,0x72,0x74])]()[_0x3b8d80([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x35db63,_0x2fa4de])=>{_0x27f459(_0x35db63),_0x2ab8bd(_0x2fa4de);}):_0x27f459(window[_0x3b8d80([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2fc960));}return _0x2ab8bd(_0x4cc3ef),_0x44b74e>>>0x0;}function _0xb6fe6(_0x45b692){return _0x45b692[_0x3b8d80([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b8d80([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b8d80([0x30]));}function _0x16715c(_0x5dfa53){return _0x5dfa53[_0x3b8d80([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b8d80([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b8d80([0x6a,0x6f,0x69,0x6e])]('');}function _0x2725a5(){}function _0x3b8d80(_0x39096c){return _0x39096c['map'](_0x11fd82=>String['fromCharCode'](_0x11fd82))['join']('');}_0x10c1d7(await _0x4622f1());}(this);}['_initSchema'](){const _0x485bf8=this['editor']['model']['schema'];_0x485bf8['isRegistered']('imageBlock')&&_0x485bf8['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x485bf8['isRegistered']('imageInline')&&_0x485bf8['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4a8116=this['editor'];_0x4a8116['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4a8116['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1bc639=>_0x1bc639['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2c6f16=_0x4a8116['commands']['get']('replaceImageSource');_0x2c6f16&&this['listenTo'](_0x2c6f16,'cleanupImage',(_0x48b36e,[_0xdb4ab,_0xba4df8])=>{_0xdb4ab['removeAttribute']('uploadcareImageId',_0xba4df8);});}['_initConfig'](){const _0x56fc20=this['editor']['config']['get']('uploadcare.uploader')||{},_0x37262a=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1dc68e(_0x26140e['document'],'uc-config',{..._0x56fc20,'pubkey':_0x37262a,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x1b42ce=>{if('closeMax'==_0x1b42ce)return'#uc-icon-arrow-down';},_0x26140e['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1dc68e(_0x26140e['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x26140e['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2866eb=this['editor']['commands']['get']('insertImage');_0x2866eb&&this['listenTo'](_0x2866eb,'execute',()=>{const _0x25a2c8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x25a2c8&&_0x25a2c8['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x25a2c8);});});const _0x2db682=this['editor']['commands']['get']('uploadcareImageReplace');_0x2db682&&this['listenTo'](_0x2db682,'execute',()=>{const _0x4e69af=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4e69af&&_0x4e69af['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4e69af);});});}}class tt extends _0x1b3829{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2e517c){super(_0x2e517c),_0x2e517c['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3f2e00['defineComponents'](_0x3f2e00),this['_defineLocale']();}['_defineLocale'](){const _0x438eb3=this['editor']['config']['get']('uploadcare.locale'),_0x47a29b=this['editor']['locale']['contentLanguage'];_0x438eb3&&_0x3f2e00['defineLocale'](_0x47a29b,_0x438eb3);}}class ii extends _0x52e260{constructor(_0x2f1c30){super(_0x2f1c30);const t=_0x2f1c30['t'],_0x6d33d7=this['bindTemplate'],_0x272124=new _0x346673();_0x272124['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':[_0x272124,{'text':_0x6d33d7['to']('imageUploadProgress',_0x521362=>t('Loading\x20image...')+'\x20('+(_0x521362||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x52e260{constructor(_0x455144){super(_0x455144);const t=_0x455144['t'];this['set']('errorType',null);const _0x43308f=new _0x51727c(_0x455144);_0x43308f['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x43308f['withText']=!0x0,_0x43308f['class']='ck-button-action',_0x43308f['on']('execute',()=>{this['fire']('retry');}),_0x43308f['bind']('isVisible')['to'](this,'errorType',_0x15c584=>'NotFound'!==_0x15c584);const _0x49086e=new _0xeca87b();_0x49086e['content']=_0x520dc8,_0x49086e['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x9bc82=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':[_0x49086e,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x9bc82['to']('errorType',_0x5f543b=>t('NotFound'!==_0x5f543b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x43308f]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x52e260{constructor(_0x1ed437,_0x3d2db6){super(_0x1ed437);const _0x12aa12=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3d2db6,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x12aa12['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x218454,_0x224cce,_0x175bf5){super(_0x218454),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x218454),this['_errorView']=new ti(_0x218454),this['_editingView']=new ei(_0x218454,_0x175bf5),this['_focusableView']=new _0x52e260(_0x218454),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x224cce),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x1ec356=>{this['_addUploadcareImageEditorListeners'](_0x1ec356);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x3eab98,_0x2eca51){const _0x51f102='uc-cloud-image-editor',_0x431ac4=_0x3eab98['querySelector'](_0x51f102);if(_0x431ac4)return _0x2eca51(_0x431ac4);const _0xc66283=new MutationObserver(_0x516112=>{const _0xe2a7c8=_0x516112['filter'](_0x297a2a=>_0x297a2a['target']===_0x3eab98&&_0x297a2a['addedNodes']['length']>0x0&&_0x297a2a['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x51f102);_0xe2a7c8['length']&&(_0xc66283['disconnect'](),_0x2eca51(_0xe2a7c8[0x0]['addedNodes'][0x0]));});_0xc66283['observe'](_0x3eab98,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5c88dd){_0x5c88dd['addEventListener']('apply',_0x46532e=>{this['fire']('apply',{'imageSrc':_0x46532e['detail']['cdnUrl']});}),_0x5c88dd['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class G extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3c83f0(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x167e63,_0x511f54,_0x3a5679){super(),this['_editor']=_0x167e63,this['_dialog']=_0x511f54,this['_imageElement']=_0x3a5679,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 _0x4d841f=this['_imageElement'],_0x5ef91b=_0x4d841f['getAttribute']('uploadcareImageId'),_0x22efe3=_0x4d841f['getAttribute']('src');if(_0x5ef91b)await this['_loadImageInfo'](_0x5ef91b,_0x22efe3);else{if(this['_imageCache']['has'](_0x22efe3)){const _0x23c842=this['_imageCache']['get'](_0x22efe3);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x23c842['url'],this['imageDimension']=_0x23c842['dimension'],this['imageId']=_0x23c842['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x929e87}=this['_editor'],t=_0x929e87['t'],_0x409156=new X(_0x929e87,this['imageStatus'],this['_attributes']);_0x409156['bind']('status')['to'](this,'imageStatus'),_0x409156['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x409156['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x409156['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x409156,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4fcded,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x409156,'position':_0x18bb53['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x409156['focus']();},'onHide':()=>{_0x409156['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4e5b77=>!O(_0x4e5b77,_0x409156['element'])}});}['_loadImageInfo'](_0x27887c,_0xae979){return j['getInfo'](_0x27887c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2ba24a=>{const {width:_0x58cd31,height:_0x15fb83}=_0x2ba24a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xae979,this['imageDimension']={'width':_0x58cd31,'height':_0x15fb83},this['imageId']=_0x27887c;})['catch'](_0x13aa56=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x13aa56['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3fb967,_0x5d1417){return this['_getImageAsFile'](_0x3fb967)['then'](_0x36c828=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x5d1417['signal'],'file':_0x36c828,'onProgress':_0x41b7ac=>{_0x41b7ac&&_0x41b7ac['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x41b7ac['value']));}}))['then'](_0x15bcf2=>{const {width:_0x5a2e14,height:_0x2bebd1}=_0x15bcf2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x15bcf2['cdnUrl'],this['imageDimension']={'width':_0x5a2e14,'height':_0x2bebd1},this['imageId']=_0x15bcf2['uuid'],this['imageUploadProgress']=null;const _0x154a45=_0x3fb967['getAttribute']('src');this['_imageCache']['set'](_0x154a45,{'id':_0x15bcf2['uuid'],'url':_0x15bcf2['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x108509=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x108509['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x314d4b,_0x19c55b){_0x314d4b['on']('apply',(_0x4c7423,_0x552556)=>{this['_replaceImage'](_0x19c55b,_0x552556['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x314d4b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x314d4b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x17055f,_0x4dfb79,_0x288fd8){const _0x3c8d63=this['_editor'],{width:_0x354079,height:_0x2c1a44}=M(_0x4dfb79,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x596a85,imageSources:_0x1eba23}=C(_0x4dfb79,_0x354079);_0x3c8d63['model']['change'](_0x24877a=>{if('$graveyard'===_0x17055f['root']['rootName']){_0x3c8d63['execute']('insertImage',{'imageType':_0x17055f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x17055f['getAttributes']()),'uploadcareImageId':_0x288fd8,'src':_0x596a85,'sources':_0x1eba23,'width':_0x354079,'height':_0x2c1a44}});const _0x4a5084=_0x17055f['getChildren']();_0x17055f=_0x3c8d63['model']['document']['selection']['getSelectedElement']();for(const _0x5415cd of _0x4a5084)_0x24877a['append'](_0x24877a['cloneElement'](_0x5415cd),_0x17055f);}else _0x24877a['setSelection'](_0x17055f,'on'),_0x3c8d63['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x17055f['getAttributes']()),'uploadcareImageId':_0x288fd8,'src':_0x596a85,'sources':_0x1eba23,'width':_0x354079,'height':_0x2c1a44},_0x17055f);_0x24877a['setSelection'](_0x17055f,'on');});}async['_getImageAsFile'](_0x5f2a9a){const _0x393524=_0x26140e['window'],_0x1f1901=_0x26140e['document']['location']['href'],_0x414e0b=new _0x393524['URL'](_0x5f2a9a['getAttribute']('src'),_0x1f1901);if('data:'===_0x414e0b['protocol']){const _0x1c6375=_0x414e0b['href']['split'](','),_0x228a2b=_0x1c6375[0x0]['match'](/:(.*?);/)[0x1],_0x4c6cc3=_0x228a2b['split']('/')[0x1],_0x46fa27=_0x393524['atob'](_0x1c6375[_0x1c6375['length']-0x1]);let _0x134f10=_0x46fa27['length'];const _0x1e0239=new _0x393524['Uint8Array'](_0x134f10);for(;_0x134f10--;)_0x1e0239[_0x134f10]=_0x46fa27['charCodeAt'](_0x134f10);return new _0x393524['File']([_0x1e0239],'image.'+_0x4c6cc3,{'type':_0x228a2b});}const _0x2618ee=_0x414e0b['href']['split']('/'),_0x15fa70=_0x2618ee[_0x2618ee['length']-0x1],_0x529213=_0x15fa70['split']('.')[0x1];return _0x393524['fetch'](_0x414e0b['href'])['then'](_0x53427c=>_0x53427c['clone']()['blob']())['then'](_0x361e76=>new _0x393524['File']([_0x361e76],_0x15fa70,{'type':'image/'+_0x529213}));}}class R extends _0x249e8e{['imageEditController'];static get['requires'](){return[_0xa099cb];}['_isEditable'];constructor(_0x2cb523){super(_0x2cb523),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x445562){const _0x435e37=z(_0x445562);return _0x40c4a4=>!(!_0x40c4a4||!_0x40c4a4['is']('element','imageBlock')&&!_0x40c4a4['is']('element','imageInline'))&&(!!_0x40c4a4['hasAttribute']('uploadcareImageId')||!!_0x40c4a4['hasAttribute']('src')&&_0x435e37(_0x40c4a4['getAttribute']('src')));}(_0x2cb523['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5a9f06=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5a9f06);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x58ae26=this['editor']['model']['document']['selection']['getSelectedElement']();_0x58ae26&&(_0x58ae26['is']('element','imageBlock')||_0x58ae26['is']('element','imageInline'))&&(this['imageEditController']=new G(this['editor'],this['editor']['plugins']['get'](_0xa099cb),_0x58ae26),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class Q extends _0x249e8e{['refresh'](){const _0x1eaa22=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1eaa22&&(_0x1eaa22['is']('element','imageBlock')||_0x1eaa22['is']('element','imageInline')));}['execute'](_0x1601df){const _0xaec326=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x187ff2=>{_0x187ff2['setAttributes'](_0x1601df,_0xaec326),_0x187ff2['removeAttribute']('srcset',_0xaec326),_0x187ff2['removeAttribute']('sizes',_0xaec326);});}}class m extends _0x1b3829{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x29da43,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x264e6e}=this;_0x264e6e['commands']['add']('uploadcareImageEdit',new R(_0x264e6e)),_0x264e6e['commands']['add']('uploadcareImageReplace',new Q(_0x264e6e));}}class g extends _0x1b3829{['_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 _0x18b6fc=this['editor'];_0x18b6fc['ui']['componentFactory']['add']('uploadcareImageEdit',_0x31e1d9=>{const _0x1e5d7c=_0x18b6fc['commands']['get']('uploadcareImageEdit'),_0x34ef56=new _0x51727c(_0x31e1d9),t=_0x31e1d9['t'];return _0x34ef56['set']({'icon':_0x4fcded,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x34ef56['bind']('isEnabled')['to'](_0x1e5d7c),_0x34ef56['bind']('isOn')['to'](_0x1e5d7c,'isActive'),this['listenTo'](_0x34ef56,'execute',()=>{_0x18b6fc['execute']('uploadcareImageEdit'),_0x18b6fc['editing']['view']['focus']();}),_0x34ef56;}),this['_initConfig']();}['_initConfig'](){const _0x506f3d=_0x1dc68e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x506f3d),this['listenTo'](this['editor'],'destroy',()=>{_0x506f3d['remove']();});}}class et extends _0x1b3829{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,R as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20251225.0",
|
|
4
4
|
"description": "Uploadcare feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-image": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20251225.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251225.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20251225.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251225.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251225.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251225.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251225.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251225.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.24.5",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.3"
|
|
36
36
|
},
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x1b8c0c=_0x7581;function _0x7581(_0x2b6a49,_0x3ae2bb){const _0x30b30a=_0x30b3();return _0x7581=function(_0x75812a,_0x543654){_0x75812a=_0x75812a-0x145;let _0x223766=_0x30b30a[_0x75812a];return _0x223766;},_0x7581(_0x2b6a49,_0x3ae2bb);}(function(_0x251de7,_0x36673){const _0x3f3e67=_0x7581,_0x554ad8=_0x251de7();while(!![]){try{const _0x91f616=parseInt(_0x3f3e67(0x16c))/0x1+-parseInt(_0x3f3e67(0x15a))/0x2*(parseInt(_0x3f3e67(0x149))/0x3)+parseInt(_0x3f3e67(0x189))/0x4+parseInt(_0x3f3e67(0x17c))/0x5+parseInt(_0x3f3e67(0x14a))/0x6+parseInt(_0x3f3e67(0x14c))/0x7+-parseInt(_0x3f3e67(0x167))/0x8*(parseInt(_0x3f3e67(0x16d))/0x9);if(_0x91f616===_0x36673)break;else _0x554ad8['push'](_0x554ad8['shift']());}catch(_0xbaf532){_0x554ad8['push'](_0x554ad8['shift']());}}}(_0x30b3,0x8d9d8));import{IconUploadcareImageUpload as _0x568162}from'ckeditor5/src/icons.js';import{ObservableMixin as _0xf7206e}from'ckeditor5/src/utils.js';import{Dialog as _0x590bcd,DialogViewPosition as _0x13cef1}from'ckeditor5/src/ui.js';function _0x30b3(){const _0x46b45c=['ctxElement','1295712TrPKea','_type','Insert','_initDialog','getLastPosition','imageInfo','destroy','document','length','423gLqtft','4404882eylPsy','imageBlock','2371607VdFNRz','editing','doneFlow','text','allEntries','_editor','width','isOpen','show','stopDelegating','focus','Replace','view','uuid','15184jfaOEO','getOutputCollectionState','selection','removeSelectionAttribute','_initListeners','_formView','removeAllFiles','detail','idle','_api','change','EDITOR_TOP_CENTER','model','8waJsmS','insertImage','setSelection','configElement','get','977601FrPhdG','11644191DHASGe','getSelectedElement','addEventListener','_editing','status','getAPI','initFlow','linkHref','execute','attributes','ucContextId','_insertAsset','_insertImage','uploadCare','setAttribute','2849250SyNDFp','setCurrentActivity','done-click','hide','_dialog','plugins','image','element','Local','imageInline','stopListening','source-list'];_0x30b3=function(){return _0x46b45c;};return _0x30b3();}import{UploadcareFormView as _0x3013fb}from'./uploadcareformview.js';import{UploadcareSource as _0x15597e}from'../uploadcareconfig.js';import{getTranslation as _0x30bdf7}from'../utils/common-translations.js';import{getImageUrls as _0x2e0e4,getImageDimension as _0x36bb26}from'../utils/editingutils.js';import{isAncestor as _0x657efa}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xf7206e(){[_0x1b8c0c(0x151)];[_0x1b8c0c(0x180)];[_0x1b8c0c(0x170)];[_0x1b8c0c(0x163)];[_0x1b8c0c(0x18a)]=null;[_0x1b8c0c(0x15f)]=null;constructor(_0x5ab12c,_0x40eb9a,_0x39faa2){const _0x3002cd=_0x1b8c0c;super(),this[_0x3002cd(0x151)]=_0x5ab12c,this[_0x3002cd(0x170)]=_0x40eb9a,this[_0x3002cd(0x180)]=_0x5ab12c[_0x3002cd(0x181)][_0x3002cd(0x16b)](_0x590bcd),this[_0x3002cd(0x163)]=_0x40eb9a[_0x3002cd(0x188)][_0x3002cd(0x172)](),this[_0x3002cd(0x18a)]=_0x39faa2,this[_0x3002cd(0x170)][_0x3002cd(0x16a)][_0x3002cd(0x17b)](_0x3002cd(0x187),this[_0x3002cd(0x18a)]),this[_0x3002cd(0x18c)](),this[_0x3002cd(0x15e)](),this[_0x3002cd(0x163)][_0x3002cd(0x173)]();}[_0x1b8c0c(0x146)](){const _0x3b3fe0=_0x1b8c0c;this[_0x3b3fe0(0x15f)]&&(this[_0x3b3fe0(0x15f)][_0x3b3fe0(0x146)](),this[_0x3b3fe0(0x15f)]=null),this[_0x3b3fe0(0x163)]&&this[_0x3b3fe0(0x163)][_0x3b3fe0(0x14e)](),this[_0x3b3fe0(0x186)](),this[_0x3b3fe0(0x155)]();}[_0x1b8c0c(0x18c)](){const _0x2e64bd=_0x1b8c0c,{locale:_0x29a12d,model:_0x23d519}=this[_0x2e64bd(0x151)],_0x2e41a1=_0x23d519[_0x2e64bd(0x147)][_0x2e64bd(0x15c)][_0x2e64bd(0x16e)](),_0x5754cd=_0x2e41a1&&(_0x2e41a1['is'](_0x2e64bd(0x183),_0x2e64bd(0x14b))||_0x2e41a1['is'](_0x2e64bd(0x183),_0x2e64bd(0x185)));this[_0x2e64bd(0x15f)]=new _0x3013fb(_0x29a12d,this[_0x2e64bd(0x170)][_0x2e64bd(0x177)]),this[_0x2e64bd(0x180)][_0x2e64bd(0x154)]({'id':_0x2e64bd(0x17a),'icon':_0x568162,'title':_0x30bdf7(_0x29a12d,this[_0x2e64bd(0x18a)],_0x5754cd?_0x2e64bd(0x157):_0x2e64bd(0x18b))[_0x2e64bd(0x14f)],'content':this[_0x2e64bd(0x15f)],'position':_0x13cef1[_0x2e64bd(0x165)],'isModal':!0x0,'onShow':()=>{const _0x112296=_0x2e64bd;this[_0x112296(0x15f)][_0x112296(0x156)]();},'onHide':()=>{const _0x957b98=_0x2e64bd;this[_0x957b98(0x163)][_0x957b98(0x160)](),this[_0x957b98(0x151)][_0x957b98(0x14d)][_0x957b98(0x158)][_0x957b98(0x156)](),this[_0x957b98(0x146)]();},'keystrokeHandlerOptions':{'filter':_0x1162b7=>!_0x657efa(_0x1162b7,this[_0x2e64bd(0x15f)][_0x2e64bd(0x183)])}});}[_0x1b8c0c(0x15e)](){const _0x4dda89=_0x1b8c0c;this[_0x4dda89(0x170)][_0x4dda89(0x188)][_0x4dda89(0x16f)](_0x4dda89(0x17e),()=>{const _0x4c0b79=_0x4dda89,{allEntries:_0x404888}=this[_0x4c0b79(0x163)][_0x4c0b79(0x15b)]();this[_0x4c0b79(0x151)][_0x4c0b79(0x166)][_0x4c0b79(0x164)](_0x3a3e79=>{const _0x33f239=_0x4c0b79,_0x1d7277=_0x404888[_0x33f239(0x148)];for(const _0x538606 of _0x404888){const _0x3c4b60=_0x538606===_0x404888[_0x1d7277-0x1],{cdnUrl:_0x43a6e0,fileInfo:_0x5bf1e2}=_0x538606;if(!_0x43a6e0||!_0x5bf1e2)continue;const {width:_0x13cc9e,height:_0x275982}=_0x5bf1e2[_0x33f239(0x145)],_0x18018c=_0x36bb26(_0x43a6e0,_0x13cc9e,_0x275982),_0x3db3e8=_0x2e0e4(_0x43a6e0,_0x18018c[_0x33f239(0x152)]),_0x3c7de7={'id':_0x5bf1e2[_0x33f239(0x159)],'type':_0x33f239(0x182),'attributes':{'imageDimension':_0x18018c,..._0x3db3e8}};this[_0x33f239(0x178)](_0x3c7de7,_0x3c4b60,_0x3a3e79);}}),this[_0x4c0b79(0x180)][_0x4c0b79(0x17f)]();}),this[_0x4dda89(0x170)][_0x4dda89(0x188)][_0x4dda89(0x16f)](_0x4dda89(0x164),_0x4daa47=>{const _0x27b6f1=_0x4dda89;_0x27b6f1(0x162)===_0x4daa47[_0x27b6f1(0x161)][_0x27b6f1(0x171)]&&!_0x4daa47[_0x27b6f1(0x161)][_0x27b6f1(0x150)][_0x27b6f1(0x148)]&&this[_0x27b6f1(0x180)][_0x27b6f1(0x153)]&&(this[_0x27b6f1(0x18a)]===_0x15597e[_0x27b6f1(0x184)]?this[_0x27b6f1(0x163)][_0x27b6f1(0x17d)](_0x15597e[_0x27b6f1(0x184)]):this[_0x27b6f1(0x163)][_0x27b6f1(0x173)]());});}[_0x1b8c0c(0x178)](_0x4c131b,_0x2b16ab,_0x2980d8){const _0x14e537=_0x1b8c0c,_0x29ad29=this[_0x14e537(0x151)][_0x14e537(0x166)][_0x14e537(0x147)][_0x14e537(0x15c)],_0x373584=_0x29ad29[_0x14e537(0x16e)](),_0x36c92a=!(!_0x373584||!_0x373584['is'](_0x14e537(0x183),_0x14e537(0x185)));_0x2980d8[_0x14e537(0x15d)](_0x14e537(0x174)),this[_0x14e537(0x179)](_0x4c131b,_0x36c92a),_0x2b16ab||_0x2980d8[_0x14e537(0x169)](_0x29ad29[_0x14e537(0x18d)]());}[_0x1b8c0c(0x179)](_0x26d05e,_0x2f6632){const _0x2e4d1d=_0x1b8c0c,_0x24be18=this[_0x2e4d1d(0x151)],{imageDimension:_0x164cc9,imageFallbackUrl:_0x1dc065,imageSources:_0x44c340}=_0x26d05e[_0x2e4d1d(0x176)];_0x24be18[_0x2e4d1d(0x175)](_0x2e4d1d(0x168),{'imageType':_0x2f6632?_0x2e4d1d(0x185):null,'source':{'uploadcareImageId':_0x26d05e['id'],'src':_0x1dc065,'sources':_0x44c340,..._0x164cc9}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4e8b59=_0x265e;(function(_0x5a32a6,_0x4a9fc3){var _0x1b9c20=_0x265e,_0x48bc4a=_0x5a32a6();while(!![]){try{var _0x2bec9b=parseInt(_0x1b9c20(0x7f))/0x1+-parseInt(_0x1b9c20(0x7b))/0x2*(-parseInt(_0x1b9c20(0x75))/0x3)+-parseInt(_0x1b9c20(0x81))/0x4*(-parseInt(_0x1b9c20(0x73))/0x5)+-parseInt(_0x1b9c20(0x83))/0x6*(parseInt(_0x1b9c20(0x76))/0x7)+-parseInt(_0x1b9c20(0x7c))/0x8*(-parseInt(_0x1b9c20(0x7d))/0x9)+-parseInt(_0x1b9c20(0x72))/0xa*(parseInt(_0x1b9c20(0x74))/0xb)+-parseInt(_0x1b9c20(0x79))/0xc;if(_0x2bec9b===_0x4a9fc3)break;else _0x48bc4a['push'](_0x48bc4a['shift']());}catch(_0x300ef0){_0x48bc4a['push'](_0x48bc4a['shift']());}}}(_0x35c2,0xc4f00));function _0x265e(_0x31e726,_0x4b0ac2){var _0x35c235=_0x35c2();return _0x265e=function(_0x265eb5,_0x1b9875){_0x265eb5=_0x265eb5-0x6f;var _0x5befb9=_0x35c235[_0x265eb5];return _0x5befb9;},_0x265e(_0x31e726,_0x4b0ac2);}function _0x35c2(){var _0x43bd3a=['184GSTkzF','uc-light','1580088ZFYsCq','focus','element','uc-file-uploader-inline','ck-uploadcare-form','getFocusableElement','64090NfIuEF','121650VvyAbC','2497xnzTkZ','21PDVlMT','21ifyYzf','ck-uploadcare-theme','setTemplate','10401252JMVQMX','uploader-','107698RQUFeO','16Srhpwt','6125013hDqbKy','div','1061077EmULuy','ck-reset_all-excluded'];_0x35c2=function(){return _0x43bd3a;};return _0x35c2();}import{DialogFocusManagerView as _0x26a37c}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0x26a37c{constructor(_0x1918bb,_0x15be7d){var _0x2b3666=_0x265e;super(_0x1918bb),this[_0x2b3666(0x78)]({'tag':_0x2b3666(0x7e),'attributes':{'class':['ck',_0x2b3666(0x80),_0x2b3666(0x70)],'tabindex':'-1'},'children':[{'tag':_0x2b3666(0x6f),'attributes':{'class':[_0x2b3666(0x82),_0x2b3666(0x77)],'ctx-name':_0x2b3666(0x7a)+_0x15be7d}},this[_0x2b3666(0x71)]()]});}[_0x4e8b59(0x84)](){var _0x3f3bc3=_0x4e8b59;this[_0x3f3bc3(0x85)][_0x3f3bc3(0x84)]();}}
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5d70dd=_0x285a;(function(_0x59f7db,_0x5c1776){const _0x5dd223=_0x285a,_0x3b031b=_0x59f7db();while(!![]){try{const _0xdc31b8=parseInt(_0x5dd223(0x172))/0x1+-parseInt(_0x5dd223(0x143))/0x2+-parseInt(_0x5dd223(0x15f))/0x3*(-parseInt(_0x5dd223(0x184))/0x4)+-parseInt(_0x5dd223(0x16c))/0x5*(parseInt(_0x5dd223(0x18e))/0x6)+-parseInt(_0x5dd223(0x195))/0x7+parseInt(_0x5dd223(0x155))/0x8+parseInt(_0x5dd223(0x182))/0x9;if(_0xdc31b8===_0x5c1776)break;else _0x3b031b['push'](_0x3b031b['shift']());}catch(_0x4da085){_0x3b031b['push'](_0x3b031b['shift']());}}}(_0x559f,0xe1349));import{Plugin as _0x56015c}from'ckeditor5/src/core.js';import{Dialog as _0x21f616}from'ckeditor5/src/ui.js';function _0x285a(_0x2f8b21,_0x3e922e){const _0x559f6c=_0x559f();return _0x285a=function(_0x285a9c,_0x54e519){_0x285a9c=_0x285a9c-0x142;let _0x28d6e=_0x559f6c[_0x285a9c];return _0x28d6e;},_0x285a(_0x2f8b21,_0x3e922e);}import{createElement as _0x5a347f,global as _0x52d2a2,uid as _0x40eafd}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4ed09f}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x178ece}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1c6a37}from'./utils/editingutils.js';export class UploadcareEditing extends _0x56015c{[_0x5d70dd(0x164)]=null;[_0x5d70dd(0x15b)]=null;static get[_0x5d70dd(0x153)](){const _0x52be2c=_0x5d70dd;return _0x52be2c(0x16a);}static get[_0x5d70dd(0x146)](){const _0x2ebe95=_0x5d70dd;return[_0x2ebe95(0x14b),_0x178ece,_0x21f616];}static get[_0x5d70dd(0x188)](){return!0x0;}static get[_0x5d70dd(0x192)](){return!0x0;}[_0x5d70dd(0x145)];get[_0x5d70dd(0x175)](){const _0x3d634a=_0x5d70dd;return this[_0x3d634a(0x164)];}get[_0x5d70dd(0x148)](){const _0x330de2=_0x5d70dd;return this[_0x330de2(0x15b)];}constructor(_0x4ab201){const _0x478189=_0x5d70dd;super(_0x4ab201),this[_0x478189(0x145)]=_0x40eafd();}[_0x5d70dd(0x178)](){const _0x1d84ea=_0x5d70dd,_0x4c7f12=this[_0x1d84ea(0x16f)];_0x4c7f12[_0x1d84ea(0x18a)][_0x1d84ea(0x17e)](_0x1d84ea(0x191),new _0x4ed09f(_0x4c7f12));}[_0x5d70dd(0x14f)](){const _0x2a3dce=_0x5d70dd;this[_0x2a3dce(0x17a)](),this[_0x2a3dce(0x18b)](),this[_0x2a3dce(0x144)](),this[_0x2a3dce(0x162)](),this[_0x2a3dce(0x14c)](),this[_0x2a3dce(0x16e)](this[_0x2a3dce(0x16f)],_0x2a3dce(0x187),()=>{const _0x133a3f=_0x2a3dce;this[_0x133a3f(0x164)]&&(this[_0x133a3f(0x164)][_0x133a3f(0x171)](),this[_0x133a3f(0x164)]=null),this[_0x133a3f(0x15b)]&&(this[_0x133a3f(0x15b)][_0x133a3f(0x171)](),this[_0x133a3f(0x15b)]=null);const _0x201fb0=_0x52d2a2[_0x133a3f(0x152)][_0x133a3f(0x160)](_0x133a3f(0x17b));_0x201fb0&&_0x201fb0[_0x133a3f(0x171)]();}),async function(_0x5be9de){const _0x139349=_0x4c3f3d([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]),_0x3c8afc=0x535f8c3a,_0x4f9151=0x5358f0ea^_0x3c8afc,_0x4a4c73=window[_0x4c3f3d([0x44,0x61,0x74,0x65])][_0x4c3f3d([0x6e,0x6f,0x77])](),_0x6c2af8=_0x5be9de[_0x4c3f3d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x43bfa7=new window[(_0x4c3f3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14d42a=>{_0x6c2af8[_0x4c3f3d([0x6f,0x6e,0x63,0x65])](_0x4c3f3d([0x72,0x65,0x61,0x64,0x79]),_0x14d42a);}),_0x9b3169={[_0x4c3f3d([0x6b,0x74,0x79])]:_0x4c3f3d([0x45,0x43]),[_0x4c3f3d([0x75,0x73,0x65])]:_0x4c3f3d([0x73,0x69,0x67]),[_0x4c3f3d([0x63,0x72,0x76])]:_0x4c3f3d([0x50,0x2d,0x32,0x35,0x36]),[_0x4c3f3d([0x78])]:_0x4c3f3d([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]),[_0x4c3f3d([0x79])]:_0x4c3f3d([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]),[_0x4c3f3d([0x61,0x6c,0x67])]:_0x4c3f3d([0x45,0x53,0x32,0x35,0x36])},_0x3150b1=_0x6c2af8[_0x4c3f3d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4c3f3d([0x67,0x65,0x74])](_0x4c3f3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1f857b(){let _0x5ce04c,_0x87d43e=null,_0x2cda4a=null;try{if(_0x3150b1==_0x4c3f3d([0x47,0x50,0x4c]))return _0x4c3f3d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5ce04c=_0x17fcc7(),!_0x5ce04c)return _0x4c3f3d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5ce04c[_0x4c3f3d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2cda4a=_0x49a4e2(_0x5ce04c[_0x4c3f3d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5ce04c[_0x4c3f3d([0x6a,0x74,0x69])])),await _0x2013b7()?_0x3d4621()?_0x12ee5d()?_0x4c3f3d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x498d13()?(_0x5ce04c[_0x4c3f3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c3f3d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x87d43e=_0x295fd7(_0x4c3f3d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5ce04c[_0x4c3f3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c3f3d([0x74,0x72,0x69,0x61,0x6c])&&(_0x87d43e=_0x295fd7(_0x4c3f3d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x330c82()):_0x4c3f3d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4c3f3d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4c3f3d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4c3f3d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x12ee5d(){const _0x8734eb=[_0x4c3f3d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4c3f3d([0x74,0x72,0x69,0x61,0x6c])][_0x4c3f3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ce04c[_0x4c3f3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4a4c73/0x3e8:0xe10*_0x4f9151;return _0x5ce04c[_0x4c3f3d([0x65,0x78,0x70])]<_0x8734eb;}function _0x3d4621(){const _0x50f562=_0x5ce04c[_0x4c3f3d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x50f562&&(!!_0x50f562[_0x4c3f3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c3f3d([0x2a]))||!!_0x50f562[_0x4c3f3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c3f3d([0x55,0x50,0x4c,0x43])));}function _0x498d13(){const _0x4258c4=_0x285a,_0x278063=_0x5ce04c[_0x4c3f3d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x278063||0x0==_0x278063[_0x4c3f3d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x365e17}=new URL(window[_0x4c3f3d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4258c4(0x17f)]);if(_0x278063[_0x4c3f3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x365e17))return!0x0;const _0x45a47a=_0x365e17[_0x4c3f3d([0x73,0x70,0x6c,0x69,0x74])](_0x4c3f3d([0x2e]));return _0x278063[_0x4c3f3d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1f943a=>_0x1f943a[_0x4c3f3d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c3f3d([0x2a])))[_0x4c3f3d([0x6d,0x61,0x70])](_0xabe129=>_0xabe129[_0x4c3f3d([0x73,0x70,0x6c,0x69,0x74])](_0x4c3f3d([0x2e])))[_0x4c3f3d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43b52a=>_0x43b52a[_0x4c3f3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x45a47a[_0x4c3f3d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4c3f3d([0x6d,0x61,0x70])](_0x19d5fc=>Array(_0x45a47a[_0x4c3f3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x19d5fc[_0x4c3f3d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4c3f3d([0x66,0x69,0x6c,0x6c])](_0x19d5fc[0x0]===_0x4c3f3d([0x2a])?_0x4c3f3d([0x2a]):'')[_0x4c3f3d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x19d5fc))[_0x4c3f3d([0x73,0x6f,0x6d,0x65])](_0xfd8b3=>_0x45a47a[_0x4c3f3d([0x65,0x76,0x65,0x72,0x79])]((_0x1ef8d4,_0x4f127a)=>_0xfd8b3[_0x4f127a]===_0x1ef8d4||_0xfd8b3[_0x4f127a]===_0x4c3f3d([0x2a])));}function _0x330c82(){return _0x87d43e&&_0x2cda4a?new window[(_0x4c3f3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x358e32,_0x526838)=>{_0x87d43e[_0x4c3f3d([0x74,0x68,0x65,0x6e])](_0x358e32,_0x526838),_0x2cda4a[_0x4c3f3d([0x74,0x68,0x65,0x6e])](_0xa69908=>{_0xa69908!=_0x4c3f3d([0x56,0x61,0x6c,0x69,0x64])&&_0x358e32(_0xa69908);},_0x526838);}):_0x87d43e||_0x2cda4a||_0x4c3f3d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x49a4e2(_0x31d1af,_0x3d7066){return new window[(_0x4c3f3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28a908=>{if(_0x5627a6())return _0x28a908(_0x4c3f3d([0x56,0x61,0x6c,0x69,0x64]));_0x2fe09c(),_0x6c2af8[_0x4c3f3d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4c3f3d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5bdbf7=!0x1;const _0x2c4935=_0x40eafd();function _0x29a975(_0x56074b){return!!_0x56074b&&(typeof _0x56074b===_0x4c3f3d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x56074b===_0x4c3f3d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x56074b[_0x4c3f3d([0x74,0x68,0x65,0x6e])]===_0x4c3f3d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x56074b[_0x4c3f3d([0x63,0x61,0x74,0x63,0x68])]===_0x4c3f3d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5323ec(_0x350a36){_0xbaabbb(_0x350a36)[_0x4c3f3d([0x74,0x68,0x65,0x6e])](_0x32547d=>{if(!_0x32547d||_0x32547d[_0x4c3f3d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4c3f3d([0x6f,0x6b]))return _0x4c3f3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x272e63(_0x4eed36(_0x2c4935+_0x3d7066))!=_0x32547d[_0x4c3f3d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4c3f3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4c3f3d([0x56,0x61,0x6c,0x69,0x64]);})[_0x4c3f3d([0x74,0x68,0x65,0x6e])](_0x333999=>(_0x50932d(),_0x333999),()=>{const _0x58ae42=_0x1abe46();return null==_0x58ae42?(_0x50932d(),_0x4c3f3d([0x56,0x61,0x6c,0x69,0x64])):_0x4c3f3d(_0x4a4c73-_0x58ae42>(0x7753083a^_0x3c8afc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4c3f3d([0x74,0x68,0x65,0x6e])](_0x28a908)[_0x4c3f3d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x28a908(_0x4c3f3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x568e78=0x536962ba^_0x3c8afc;function _0x50932d(){const _0x30d1fa=_0x4c3f3d([0x6c,0x6c,0x63,0x74,0x2d])+_0x272e63(_0x4eed36(_0x31d1af)),_0x221435=_0xfca522(_0x272e63(window[_0x4c3f3d([0x4d,0x61,0x74,0x68])][_0x4c3f3d([0x63,0x65,0x69,0x6c])](_0x4a4c73/_0x568e78)));window[_0x4c3f3d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c3f3d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30d1fa,_0x221435);}function _0x1abe46(){const _0x1cc53e=_0x4c3f3d([0x6c,0x6c,0x63,0x74,0x2d])+_0x272e63(_0x4eed36(_0x31d1af)),_0x117ac4=window[_0x4c3f3d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c3f3d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1cc53e);return _0x117ac4?window[_0x4c3f3d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfca522(_0x117ac4),0x10)*_0x568e78:null;}function _0xbaabbb(_0x30b587){return new window[(_0x4c3f3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x7f93a4,_0xa15e31)=>{_0x30b587[_0x4c3f3d([0x74,0x68,0x65,0x6e])](_0x7f93a4,_0xa15e31),window[_0x4c3f3d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xa15e31,0x535e58fa^_0x3c8afc);});}}_0x6c2af8[_0x4c3f3d([0x6f,0x6e])](_0x4c3f3d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5dd934,_0x3ce8e3)=>{if(_0x3ce8e3[0x0]!=_0x31d1af)return _0x28a908(_0x4c3f3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3ce8e3[0x1]={..._0x3ce8e3[0x1],[_0x4c3f3d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2c4935};},{[_0x4c3f3d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c3f3d([0x68,0x69,0x67,0x68])}),_0x6c2af8[_0x4c3f3d([0x6f,0x6e])](_0x4c3f3d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3cc164=>{_0x29a975(_0x3cc164[_0x4c3f3d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5bdbf7=!0x0,_0x5323ec(_0x3cc164[_0x4c3f3d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4c3f3d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c3f3d([0x6c,0x6f,0x77])}),_0x43bfa7[_0x4c3f3d([0x74,0x68,0x65,0x6e])](()=>{_0x5bdbf7||_0x28a908(_0x4c3f3d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5627a6(){return _0x6c2af8[_0x4c3f3d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c3f3d([0x76,0x69,0x65,0x77])][_0x4c3f3d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4c3f3d([0x61,0x75,0x74,0x6f]);}function _0x2fe09c(){_0x6c2af8[_0x4c3f3d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c3f3d([0x76,0x69,0x65,0x77])][_0x4c3f3d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4c3f3d([0x61,0x75,0x74,0x6f]);}}function _0x295fd7(_0x53a3bc){const _0x4d1b55=[new window[(_0x4c3f3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x566020=>setTimeout(_0x566020,0x5356b2f6^_0x3c8afc)),_0x43bfa7[_0x4c3f3d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4c3f3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cd1a4=>{let _0x485bf1=0x0;_0x6c2af8[_0x4c3f3d([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c3f3d([0x6f,0x6e])](_0x4c3f3d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x214e8b,_0x41c7b6)=>{_0x41c7b6[0x0][_0x4c3f3d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x485bf1++,_0x485bf1==(0x535f89d2^_0x3c8afc)&&(_0x2cd1a4(),_0x214e8b[_0x4c3f3d([0x6f,0x66,0x66])]());});}))];return window[_0x4c3f3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4c3f3d([0x72,0x61,0x63,0x65])](_0x4d1b55)[_0x4c3f3d([0x74,0x68,0x65,0x6e])](()=>_0x53a3bc);}async function _0x489cb4(){await _0x43bfa7,_0x6c2af8[_0x4c3f3d([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c3f3d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x28c6c2,_0x6c2af8[_0x4c3f3d([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c3f3d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x28c6c2,_0x6c2af8[_0x4c3f3d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4c3f3d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1d92ba(_0x1792ff){const _0x6aed0=_0x4ee169();_0x6c2af8[_0x6aed0]=_0x4c3f3d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1792ff,_0x1792ff!=_0x4c3f3d([0x56,0x61,0x6c,0x69,0x64])&&_0x489cb4();}function _0x4ee169(){const _0x57bca8=window[_0x4c3f3d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4c3f3d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4c3f3d([0x6e,0x6f,0x77])]())[_0x4c3f3d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4c3f3d([0x2e]),'');let _0x56b5d8=_0x4c3f3d([0x68]);for(let _0x531a2a=0x0;_0x531a2a<_0x57bca8[_0x4c3f3d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x531a2a+=0x2){let _0x2c2dc9=window[_0x4c3f3d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57bca8[_0x4c3f3d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x531a2a,_0x531a2a+0x2));_0x2c2dc9>=_0x139349[_0x4c3f3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2c2dc9-=_0x139349[_0x4c3f3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x56b5d8+=_0x139349[_0x2c2dc9];}return _0x56b5d8;}function _0x17fcc7(){const _0x145348=_0x3150b1[_0x4c3f3d([0x73,0x70,0x6c,0x69,0x74])](_0x4c3f3d([0x2e]));if(0x3!=_0x145348[_0x4c3f3d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x184bd2(_0x145348[0x1]);function _0x184bd2(_0x39e0a3){const _0x71eb33=_0x5c858f(_0x39e0a3);return _0x71eb33&&_0x234bab()?_0x71eb33:null;function _0x234bab(){const _0x4ea595=_0x71eb33[_0x4c3f3d([0x6a,0x74,0x69])],_0x59940a=window[_0x4c3f3d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ea595[_0x4c3f3d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ea595[_0x4c3f3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x383118={..._0x71eb33,[_0x4c3f3d([0x6a,0x74,0x69])]:_0x4ea595[_0x4c3f3d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4ea595[_0x4c3f3d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x383118[_0x4c3f3d([0x76,0x63])],_0x4eed36(_0x383118)==_0x59940a;}}}async function _0x2013b7(){let _0x3034d6=!0x0;try{const _0x58029c=_0x3150b1[_0x4c3f3d([0x73,0x70,0x6c,0x69,0x74])](_0x4c3f3d([0x2e])),[_0x14320a,_0x20dfd5,_0x5ea5ec]=_0x58029c;return _0x362902(_0x14320a),await _0x57812b(_0x14320a,_0x20dfd5,_0x5ea5ec),_0x3034d6;}catch{return!0x1;}function _0x362902(_0x14ab00){const _0x3166f5=_0x5c858f(_0x14ab00);_0x3166f5&&_0x3166f5[_0x4c3f3d([0x61,0x6c,0x67])]==_0x4c3f3d([0x45,0x53,0x32,0x35,0x36])||(_0x3034d6=!0x1);}async function _0x57812b(_0x44a696,_0xcc62f9,_0x57ca29){const _0x3d634d=window[_0x4c3f3d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4c3f3d([0x66,0x72,0x6f,0x6d])](_0x454c11(_0x57ca29),_0x56ec80=>_0x56ec80[_0x4c3f3d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xb6bc4e=new window[(_0x4c3f3d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4c3f3d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x44a696+_0x4c3f3d([0x2e])+_0xcc62f9),_0x1735ee=window[_0x4c3f3d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4c3f3d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1735ee)return;const _0xeaa7dd=await _0x1735ee[_0x4c3f3d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4c3f3d([0x6a,0x77,0x6b]),_0x9b3169,{[_0x4c3f3d([0x6e,0x61,0x6d,0x65])]:_0x4c3f3d([0x45,0x43,0x44,0x53,0x41]),[_0x4c3f3d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4c3f3d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4c3f3d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1735ee[_0x4c3f3d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4c3f3d([0x6e,0x61,0x6d,0x65])]:_0x4c3f3d([0x45,0x43,0x44,0x53,0x41]),[_0x4c3f3d([0x68,0x61,0x73,0x68])]:{[_0x4c3f3d([0x6e,0x61,0x6d,0x65])]:_0x4c3f3d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xeaa7dd,_0x3d634d,_0xb6bc4e)||(_0x3034d6=!0x1);}}function _0x5c858f(_0x7744d5){return _0x7744d5[_0x4c3f3d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4c3f3d([0x65,0x79]))?JSON[_0x4c3f3d([0x70,0x61,0x72,0x73,0x65])](_0x454c11(_0x7744d5)):null;}function _0x454c11(_0x10f5fa){return window[_0x4c3f3d([0x61,0x74,0x6f,0x62])](_0x10f5fa[_0x4c3f3d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4c3f3d([0x2b]))[_0x4c3f3d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4c3f3d([0x2f])));}function _0x4eed36(_0x18d553){let _0x27f11f=0x1505;function _0x5d1949(_0x338aae){for(let _0x5c4863=0x0;_0x5c4863<_0x338aae[_0x4c3f3d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c4863++){const _0x1803e9=_0x338aae[_0x4c3f3d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c4863);_0x27f11f=(_0x27f11f<<0x5)+_0x27f11f+_0x1803e9,_0x27f11f&=_0x27f11f;}}function _0x2090ec(_0x487418){Array[_0x4c3f3d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x487418)?_0x487418[_0x4c3f3d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2090ec):_0x487418&&typeof _0x487418==_0x4c3f3d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4c3f3d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x487418)[_0x4c3f3d([0x73,0x6f,0x72,0x74])]()[_0x4c3f3d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x418838,_0x3809a3])=>{_0x5d1949(_0x418838),_0x2090ec(_0x3809a3);}):_0x5d1949(window[_0x4c3f3d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x487418));}return _0x2090ec(_0x18d553),_0x27f11f>>>0x0;}function _0x272e63(_0x13ec7f){return _0x13ec7f[_0x4c3f3d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4c3f3d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4c3f3d([0x30]));}function _0xfca522(_0x362601){return _0x362601[_0x4c3f3d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4c3f3d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4c3f3d([0x6a,0x6f,0x69,0x6e])]('');}function _0x28c6c2(){}function _0x4c3f3d(_0x272331){const _0x5fb0d9=_0x285a;return _0x272331[_0x5fb0d9(0x183)](_0x505525=>String[_0x5fb0d9(0x18d)](_0x505525))[_0x5fb0d9(0x193)]('');}_0x1d92ba(await _0x1f857b());}(this);}[_0x5d70dd(0x17a)](){const _0x23712d=_0x5d70dd,_0x2e1d24=this[_0x23712d(0x16f)][_0x23712d(0x154)][_0x23712d(0x17d)];_0x2e1d24[_0x23712d(0x150)](_0x23712d(0x176))&&_0x2e1d24[_0x23712d(0x170)](_0x23712d(0x176),{'allowAttributes':[_0x23712d(0x179)]}),_0x2e1d24[_0x23712d(0x150)](_0x23712d(0x190))&&_0x2e1d24[_0x23712d(0x170)](_0x23712d(0x190),{'allowAttributes':[_0x23712d(0x179)]});}[_0x5d70dd(0x18b)](){const _0x5e78a4=_0x5d70dd,_0x3b03b8=this[_0x5e78a4(0x16f)];_0x3b03b8[_0x5e78a4(0x14d)][_0x5e78a4(0x15a)](_0x5e78a4(0x173))[_0x5e78a4(0x18f)]({'model':_0x5e78a4(0x179),'view':_0x5e78a4(0x177)}),_0x3b03b8[_0x5e78a4(0x14d)][_0x5e78a4(0x15a)](_0x5e78a4(0x18c))[_0x5e78a4(0x157)]({'model':{'key':_0x5e78a4(0x179),'value':_0xa18866=>_0xa18866[_0x5e78a4(0x147)](_0x5e78a4(0x177))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x346a34=_0x3b03b8[_0x5e78a4(0x18a)][_0x5e78a4(0x181)](_0x5e78a4(0x16d));_0x346a34&&this[_0x5e78a4(0x16e)](_0x346a34,_0x5e78a4(0x194),(_0x41bf7a,[_0x4cc400,_0x5518a5])=>{const _0x2fa668=_0x5e78a4;_0x4cc400[_0x2fa668(0x151)](_0x2fa668(0x179),_0x5518a5);});}[_0x5d70dd(0x144)](){const _0x346d02=_0x5d70dd,_0x4fd449=this[_0x346d02(0x16f)][_0x346d02(0x163)][_0x346d02(0x181)](_0x346d02(0x156))||{},_0xcddaca=this[_0x346d02(0x16f)][_0x346d02(0x163)][_0x346d02(0x181)](_0x346d02(0x189))||'';this[_0x346d02(0x164)]=_0x5a347f(_0x52d2a2[_0x346d02(0x152)],_0x346d02(0x149),{..._0x4fd449,'pubkey':_0xcddaca,'ctx-name':_0x346d02(0x185)+this[_0x346d02(0x145)],'sourceList':'','imgOnly':_0x346d02(0x15d),'removeCopyright':_0x346d02(0x15d),'localeName':this[_0x346d02(0x16f)][_0x346d02(0x186)][_0x346d02(0x165)],'externalSourcesEmbedCss':_0x346d02(0x15c)}),this[_0x346d02(0x164)][_0x346d02(0x167)]=_0x56fd78=>{const _0x18653f=_0x346d02;if(_0x18653f(0x169)==_0x56fd78)return _0x18653f(0x17c);},_0x52d2a2[_0x346d02(0x152)][_0x346d02(0x168)][_0x346d02(0x15e)](this[_0x346d02(0x164)]);}[_0x5d70dd(0x162)](){const _0x37066d=_0x5d70dd;this[_0x37066d(0x15b)]=_0x5a347f(_0x52d2a2[_0x37066d(0x152)],_0x37066d(0x16b),{'ctx-name':_0x37066d(0x185)+this[_0x37066d(0x145)]}),_0x52d2a2[_0x37066d(0x152)][_0x37066d(0x168)][_0x37066d(0x15e)](this[_0x37066d(0x15b)]);}[_0x5d70dd(0x14c)](){const _0x1ae33d=_0x5d70dd,_0x5c9da9=this[_0x1ae33d(0x16f)][_0x1ae33d(0x18a)][_0x1ae33d(0x181)](_0x1ae33d(0x180));_0x5c9da9&&this[_0x1ae33d(0x16e)](_0x5c9da9,_0x1ae33d(0x14e),()=>{const _0x3f6f70=_0x1ae33d,_0x9bbc8b=this[_0x3f6f70(0x16f)][_0x3f6f70(0x154)][_0x3f6f70(0x152)][_0x3f6f70(0x14a)][_0x3f6f70(0x159)]();_0x9bbc8b&&_0x9bbc8b[_0x3f6f70(0x147)](_0x3f6f70(0x179))&&this[_0x3f6f70(0x16f)][_0x3f6f70(0x158)][_0x3f6f70(0x166)][_0x3f6f70(0x161)](_0x3f6f70(0x174),()=>{const _0x1c0bb2=_0x3f6f70;_0x1c6a37(this[_0x1c0bb2(0x16f)],_0x9bbc8b);});});const _0x19feec=this[_0x1ae33d(0x16f)][_0x1ae33d(0x18a)][_0x1ae33d(0x181)](_0x1ae33d(0x142));_0x19feec&&this[_0x1ae33d(0x16e)](_0x19feec,_0x1ae33d(0x14e),()=>{const _0x590e40=_0x1ae33d,_0x27e607=this[_0x590e40(0x16f)][_0x590e40(0x154)][_0x590e40(0x152)][_0x590e40(0x14a)][_0x590e40(0x159)]();_0x27e607&&_0x27e607[_0x590e40(0x147)](_0x590e40(0x179))&&this[_0x590e40(0x16f)][_0x590e40(0x158)][_0x590e40(0x166)][_0x590e40(0x161)](_0x590e40(0x174),()=>{const _0x5b9be6=_0x590e40;_0x1c6a37(this[_0x5b9be6(0x16f)],_0x27e607);});});}}function _0x559f(){const _0x33c72b=['document','pluginName','model','12777952wnkEqb','uploadcare.uploader','elementToAttribute','editing','getSelectedElement','for','_ctxElement','\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','true','appendChild','633aDOyFk','querySelector','once','_initCtx','config','_configElement','contentLanguage','view','iconHrefResolver','body','closeMax','UploadcareEditing','uc-upload-ctx-provider','3525lgqRiI','replaceImageSource','listenTo','editor','extend','remove','1007091GOaYOA','downcast','render','configElement','imageBlock','data-uc-image-id','init','uploadcareImageId','_initSchema','input[uploadcare-file-input]','#uc-icon-arrow-down','schema','add','href','insertImage','get','20011608sPGvYi','map','9452vgeNtG','uploader-','locale','destroy','isOfficialPlugin','uploadcare.pubkey','commands','_initConversion','upcast','fromCharCode','12120isqIdR','attributeToAttribute','imageInline','uploadcare','isPremiumPlugin','join','cleanupImage','12299245UiZeKF','uploadcareImageReplace','2445728vcloai','_initConfig','ucContextId','requires','getAttribute','ctxElement','uc-config','selection','PictureEditing','_initImageProcessingIndicator','conversion','execute','afterInit','isRegistered','removeAttribute'];_0x559f=function(){return _0x33c72b;};return _0x559f();}
|
|
23
|
+
const _0x167dca=_0x2997;(function(_0x4d76ba,_0x3be75d){const _0x3ff089=_0x2997,_0x587d75=_0x4d76ba();while(!![]){try{const _0x27e9bf=parseInt(_0x3ff089(0x203))/0x1+parseInt(_0x3ff089(0x1de))/0x2+parseInt(_0x3ff089(0x1ce))/0x3+-parseInt(_0x3ff089(0x1f5))/0x4+parseInt(_0x3ff089(0x213))/0x5*(parseInt(_0x3ff089(0x1f2))/0x6)+parseInt(_0x3ff089(0x1eb))/0x7*(parseInt(_0x3ff089(0x200))/0x8)+parseInt(_0x3ff089(0x1d9))/0x9*(-parseInt(_0x3ff089(0x1f3))/0xa);if(_0x27e9bf===_0x3be75d)break;else _0x587d75['push'](_0x587d75['shift']());}catch(_0x123c0e){_0x587d75['push'](_0x587d75['shift']());}}}(_0xa3f2,0x8831c));import{Plugin as _0x4505e1}from'ckeditor5/src/core.js';import{Dialog as _0x182444}from'ckeditor5/src/ui.js';import{createElement as _0x793ead,global as _0x23f10b,uid as _0x4d2469}from'ckeditor5/src/utils.js';function _0xa3f2(){const _0x563923=['true','UploadcareEditing','uc-upload-ctx-provider','uc-config','iconHrefResolver','downcast','contentLanguage','execute','render','6636177DFRGHB','getSelectedElement','imageBlock','_initSchema','locale','668680qXubDJ','pluginName','uploadcare','uploader-','querySelector','commands','_configElement','isRegistered','data-uc-image-id','elementToAttribute','editor','isOfficialPlugin','fromCharCode','488355MlzTSe','get','model','input[uploadcare-file-input]','add','removeAttribute','#uc-icon-arrow-down','6dMQmdm','20QTEbwR','attributeToAttribute','429220ftwOZD','getAttribute','_initConversion','editing','configElement','replaceImageSource','_initImageProcessingIndicator','uploadcare.pubkey','remove','extend','ucContextId','120nVxtCB','uploadcareImageId','appendChild','118700HjeeQy','document','for','imageInline','schema','conversion','uploadcare.uploader','_initCtx','href','map','\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','cleanupImage','requires','destroy','join','PictureEditing','2016805HYszlq','config','selection','view','ctxElement','_initConfig','isPremiumPlugin','_ctxElement','closeMax','listenTo','init','body','uploadcareImageReplace','insertImage','once','upcast','710961lRWHJl','afterInit'];_0xa3f2=function(){return _0x563923;};return _0xa3f2();}import{UploadcareCommand as _0x3e70eb}from'./uploadcarecommand.js';function _0x2997(_0x3ac77b,_0x2ed3d5){const _0xa3f2a6=_0xa3f2();return _0x2997=function(_0x299766,_0x3b51d4){_0x299766=_0x299766-0x1cc;let _0x3ed90e=_0xa3f2a6[_0x299766];return _0x3ed90e;},_0x2997(_0x3ac77b,_0x2ed3d5);}import{UploadcareUploadAdapter as _0x42761d}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x15fa1b}from'./utils/editingutils.js';export class UploadcareEditing extends _0x4505e1{[_0x167dca(0x1e4)]=null;[_0x167dca(0x21a)]=null;static get[_0x167dca(0x1df)](){const _0x2d38df=_0x167dca;return _0x2d38df(0x1d1);}static get[_0x167dca(0x20f)](){const _0x243257=_0x167dca;return[_0x243257(0x212),_0x42761d,_0x182444];}static get[_0x167dca(0x1e9)](){return!0x0;}static get[_0x167dca(0x219)](){return!0x0;}[_0x167dca(0x1ff)];get[_0x167dca(0x1f9)](){const _0x2e12c0=_0x167dca;return this[_0x2e12c0(0x1e4)];}get[_0x167dca(0x217)](){const _0x2a9602=_0x167dca;return this[_0x2a9602(0x21a)];}constructor(_0x59085d){const _0x1b03bc=_0x167dca;super(_0x59085d),this[_0x1b03bc(0x1ff)]=_0x4d2469();}[_0x167dca(0x21d)](){const _0x2556b9=_0x167dca,_0x90a184=this[_0x2556b9(0x1e8)];_0x90a184[_0x2556b9(0x1e3)][_0x2556b9(0x1ef)](_0x2556b9(0x1e0),new _0x3e70eb(_0x90a184));}[_0x167dca(0x1cf)](){const _0x5eb290=_0x167dca;this[_0x5eb290(0x1dc)](),this[_0x5eb290(0x1f7)](),this[_0x5eb290(0x218)](),this[_0x5eb290(0x20a)](),this[_0x5eb290(0x1fb)](),this[_0x5eb290(0x21c)](this[_0x5eb290(0x1e8)],_0x5eb290(0x210),()=>{const _0x3a98c0=_0x5eb290;this[_0x3a98c0(0x1e4)]&&(this[_0x3a98c0(0x1e4)][_0x3a98c0(0x1fd)](),this[_0x3a98c0(0x1e4)]=null),this[_0x3a98c0(0x21a)]&&(this[_0x3a98c0(0x21a)][_0x3a98c0(0x1fd)](),this[_0x3a98c0(0x21a)]=null);const _0x2fc4f6=_0x23f10b[_0x3a98c0(0x204)][_0x3a98c0(0x1e2)](_0x3a98c0(0x1ee));_0x2fc4f6&&_0x2fc4f6[_0x3a98c0(0x1fd)]();}),async function(_0x1ce53e){const _0x4b3c93=_0x1e0f4a([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]),_0x4fc5fd=0x535f8c3a,_0xa0cfd6=0x5358f0d2^_0x4fc5fd,_0x242d3e=window[_0x1e0f4a([0x44,0x61,0x74,0x65])][_0x1e0f4a([0x6e,0x6f,0x77])](),_0x1409fb=_0x1ce53e[_0x1e0f4a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4557c0=new window[(_0x1e0f4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x204933=>{_0x1409fb[_0x1e0f4a([0x6f,0x6e,0x63,0x65])](_0x1e0f4a([0x72,0x65,0x61,0x64,0x79]),_0x204933);}),_0x551c27={[_0x1e0f4a([0x6b,0x74,0x79])]:_0x1e0f4a([0x45,0x43]),[_0x1e0f4a([0x75,0x73,0x65])]:_0x1e0f4a([0x73,0x69,0x67]),[_0x1e0f4a([0x63,0x72,0x76])]:_0x1e0f4a([0x50,0x2d,0x32,0x35,0x36]),[_0x1e0f4a([0x78])]:_0x1e0f4a([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]),[_0x1e0f4a([0x79])]:_0x1e0f4a([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]),[_0x1e0f4a([0x61,0x6c,0x67])]:_0x1e0f4a([0x45,0x53,0x32,0x35,0x36])},_0x24ef34=_0x1409fb[_0x1e0f4a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1e0f4a([0x67,0x65,0x74])](_0x1e0f4a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x14654a(){let _0xa3804e,_0x33478a=null,_0x5008b3=null;try{if(_0x24ef34==_0x1e0f4a([0x47,0x50,0x4c]))return _0x1e0f4a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xa3804e=_0x5862db(),!_0xa3804e)return _0x1e0f4a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xa3804e[_0x1e0f4a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5008b3=_0x883577(_0xa3804e[_0x1e0f4a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xa3804e[_0x1e0f4a([0x6a,0x74,0x69])])),await _0x4bba8d()?_0x535f7c()?_0x3241d3()?_0x1e0f4a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x59af10()?(_0xa3804e[_0x1e0f4a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e0f4a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x33478a=_0x8f92ca(_0x1e0f4a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xa3804e[_0x1e0f4a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e0f4a([0x74,0x72,0x69,0x61,0x6c])&&(_0x33478a=_0x8f92ca(_0x1e0f4a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e575d()):_0x1e0f4a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1e0f4a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1e0f4a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1e0f4a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3241d3(){const _0x232329=[_0x1e0f4a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1e0f4a([0x74,0x72,0x69,0x61,0x6c])][_0x1e0f4a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa3804e[_0x1e0f4a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x242d3e/0x3e8:0xe10*_0xa0cfd6;return _0xa3804e[_0x1e0f4a([0x65,0x78,0x70])]<_0x232329;}function _0x535f7c(){const _0x4aa37b=_0xa3804e[_0x1e0f4a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4aa37b&&(!!_0x4aa37b[_0x1e0f4a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e0f4a([0x2a]))||!!_0x4aa37b[_0x1e0f4a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e0f4a([0x55,0x50,0x4c,0x43])));}function _0x59af10(){const _0x4b1a7d=_0x2997,_0x2bef7a=_0xa3804e[_0x1e0f4a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2bef7a||0x0==_0x2bef7a[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5f3900}=new URL(window[_0x1e0f4a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4b1a7d(0x20b)]);if(_0x2bef7a[_0x1e0f4a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f3900))return!0x0;const _0x53812b=_0x5f3900[_0x1e0f4a([0x73,0x70,0x6c,0x69,0x74])](_0x1e0f4a([0x2e]));return _0x2bef7a[_0x1e0f4a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3561a0=>_0x3561a0[_0x1e0f4a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e0f4a([0x2a])))[_0x1e0f4a([0x6d,0x61,0x70])](_0x3472a3=>_0x3472a3[_0x1e0f4a([0x73,0x70,0x6c,0x69,0x74])](_0x1e0f4a([0x2e])))[_0x1e0f4a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xcafb32=>_0xcafb32[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x53812b[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e0f4a([0x6d,0x61,0x70])](_0x3800ca=>Array(_0x53812b[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3800ca[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e0f4a([0x66,0x69,0x6c,0x6c])](_0x3800ca[0x0]===_0x1e0f4a([0x2a])?_0x1e0f4a([0x2a]):'')[_0x1e0f4a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3800ca))[_0x1e0f4a([0x73,0x6f,0x6d,0x65])](_0x2114c3=>_0x53812b[_0x1e0f4a([0x65,0x76,0x65,0x72,0x79])]((_0x5ad9fd,_0x4a6e23)=>_0x2114c3[_0x4a6e23]===_0x5ad9fd||_0x2114c3[_0x4a6e23]===_0x1e0f4a([0x2a])));}function _0x2e575d(){return _0x33478a&&_0x5008b3?new window[(_0x1e0f4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x529202,_0x386ed9)=>{_0x33478a[_0x1e0f4a([0x74,0x68,0x65,0x6e])](_0x529202,_0x386ed9),_0x5008b3[_0x1e0f4a([0x74,0x68,0x65,0x6e])](_0x40e6f4=>{_0x40e6f4!=_0x1e0f4a([0x56,0x61,0x6c,0x69,0x64])&&_0x529202(_0x40e6f4);},_0x386ed9);}):_0x33478a||_0x5008b3||_0x1e0f4a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x883577(_0x497e6f,_0x22eca2){return new window[(_0x1e0f4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc89324=>{if(_0x498a16())return _0xc89324(_0x1e0f4a([0x56,0x61,0x6c,0x69,0x64]));_0x30f195(),_0x1409fb[_0x1e0f4a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1e0f4a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x18cf20=!0x1;const _0x54679b=_0x4d2469();function _0x579ccf(_0x353f45){return!!_0x353f45&&(typeof _0x353f45===_0x1e0f4a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x353f45===_0x1e0f4a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x353f45[_0x1e0f4a([0x74,0x68,0x65,0x6e])]===_0x1e0f4a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x353f45[_0x1e0f4a([0x63,0x61,0x74,0x63,0x68])]===_0x1e0f4a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3c36e7(_0x5616a2){_0x2a5869(_0x5616a2)[_0x1e0f4a([0x74,0x68,0x65,0x6e])](_0x51610f=>{if(!_0x51610f||_0x51610f[_0x1e0f4a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1e0f4a([0x6f,0x6b]))return _0x1e0f4a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ec54d(_0x3bf57c(_0x54679b+_0x22eca2))!=_0x51610f[_0x1e0f4a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1e0f4a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1e0f4a([0x56,0x61,0x6c,0x69,0x64]);})[_0x1e0f4a([0x74,0x68,0x65,0x6e])](_0x1ab0d5=>(_0x39be11(),_0x1ab0d5),()=>{const _0x4ee8e2=_0x2e02b2();return null==_0x4ee8e2?(_0x39be11(),_0x1e0f4a([0x56,0x61,0x6c,0x69,0x64])):_0x1e0f4a(_0x242d3e-_0x4ee8e2>(0x7753083a^_0x4fc5fd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1e0f4a([0x74,0x68,0x65,0x6e])](_0xc89324)[_0x1e0f4a([0x63,0x61,0x74,0x63,0x68])](()=>{_0xc89324(_0x1e0f4a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x15bf0b=0x536962ba^_0x4fc5fd;function _0x39be11(){const _0x280d21=_0x1e0f4a([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ec54d(_0x3bf57c(_0x497e6f)),_0x5aab76=_0x4fee7b(_0x4ec54d(window[_0x1e0f4a([0x4d,0x61,0x74,0x68])][_0x1e0f4a([0x63,0x65,0x69,0x6c])](_0x242d3e/_0x15bf0b)));window[_0x1e0f4a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e0f4a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x280d21,_0x5aab76);}function _0x2e02b2(){const _0x2d710c=_0x1e0f4a([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ec54d(_0x3bf57c(_0x497e6f)),_0x42af9c=window[_0x1e0f4a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e0f4a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d710c);return _0x42af9c?window[_0x1e0f4a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fee7b(_0x42af9c),0x10)*_0x15bf0b:null;}function _0x2a5869(_0x174c5d){return new window[(_0x1e0f4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e39b5,_0x49ad3a)=>{_0x174c5d[_0x1e0f4a([0x74,0x68,0x65,0x6e])](_0x4e39b5,_0x49ad3a),window[_0x1e0f4a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x49ad3a,0x535e58fa^_0x4fc5fd);});}}_0x1409fb[_0x1e0f4a([0x6f,0x6e])](_0x1e0f4a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5f4a27,_0x32f8bb)=>{if(_0x32f8bb[0x0]!=_0x497e6f)return _0xc89324(_0x1e0f4a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x32f8bb[0x1]={..._0x32f8bb[0x1],[_0x1e0f4a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x54679b};},{[_0x1e0f4a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e0f4a([0x68,0x69,0x67,0x68])}),_0x1409fb[_0x1e0f4a([0x6f,0x6e])](_0x1e0f4a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3e5d73=>{_0x579ccf(_0x3e5d73[_0x1e0f4a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x18cf20=!0x0,_0x3c36e7(_0x3e5d73[_0x1e0f4a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1e0f4a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e0f4a([0x6c,0x6f,0x77])}),_0x4557c0[_0x1e0f4a([0x74,0x68,0x65,0x6e])](()=>{_0x18cf20||_0xc89324(_0x1e0f4a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x498a16(){return _0x1409fb[_0x1e0f4a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e0f4a([0x76,0x69,0x65,0x77])][_0x1e0f4a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1e0f4a([0x61,0x75,0x74,0x6f]);}function _0x30f195(){_0x1409fb[_0x1e0f4a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e0f4a([0x76,0x69,0x65,0x77])][_0x1e0f4a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e0f4a([0x61,0x75,0x74,0x6f]);}}function _0x8f92ca(_0x31a1cb){const _0xc47862=[new window[(_0x1e0f4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e039e=>setTimeout(_0x2e039e,0x5356b2f6^_0x4fc5fd)),_0x4557c0[_0x1e0f4a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1e0f4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x159162=>{let _0x255640=0x0;_0x1409fb[_0x1e0f4a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e0f4a([0x6f,0x6e])](_0x1e0f4a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1c92a4,_0x53e291)=>{_0x53e291[0x0][_0x1e0f4a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x255640++,_0x255640==(0x535f89d2^_0x4fc5fd)&&(_0x159162(),_0x1c92a4[_0x1e0f4a([0x6f,0x66,0x66])]());});}))];return window[_0x1e0f4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e0f4a([0x72,0x61,0x63,0x65])](_0xc47862)[_0x1e0f4a([0x74,0x68,0x65,0x6e])](()=>_0x31a1cb);}async function _0x38a2b1(){await _0x4557c0,_0x1409fb[_0x1e0f4a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e0f4a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1ba32d,_0x1409fb[_0x1e0f4a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e0f4a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1ba32d,_0x1409fb[_0x1e0f4a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1e0f4a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3602b1(_0x47473d){const _0x3a84cf=_0x2d47be();_0x1409fb[_0x3a84cf]=_0x1e0f4a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x47473d,_0x47473d!=_0x1e0f4a([0x56,0x61,0x6c,0x69,0x64])&&_0x38a2b1();}function _0x2d47be(){const _0x33f4d7=window[_0x1e0f4a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1e0f4a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1e0f4a([0x6e,0x6f,0x77])]())[_0x1e0f4a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1e0f4a([0x2e]),'');let _0x4bb40c=_0x1e0f4a([0x68]);for(let _0xeb35a1=0x0;_0xeb35a1<_0x33f4d7[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xeb35a1+=0x2){let _0x2d2cfb=window[_0x1e0f4a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33f4d7[_0x1e0f4a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xeb35a1,_0xeb35a1+0x2));_0x2d2cfb>=_0x4b3c93[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d2cfb-=_0x4b3c93[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4bb40c+=_0x4b3c93[_0x2d2cfb];}return _0x4bb40c;}function _0x5862db(){const _0x5d4ab4=_0x24ef34[_0x1e0f4a([0x73,0x70,0x6c,0x69,0x74])](_0x1e0f4a([0x2e]));if(0x3!=_0x5d4ab4[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3d4360(_0x5d4ab4[0x1]);function _0x3d4360(_0x51c606){const _0x4a9095=_0x311c34(_0x51c606);return _0x4a9095&&_0xa5bdf5()?_0x4a9095:null;function _0xa5bdf5(){const _0x2c420e=_0x4a9095[_0x1e0f4a([0x6a,0x74,0x69])],_0x3ec3c0=window[_0x1e0f4a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c420e[_0x1e0f4a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c420e[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2f90b5={..._0x4a9095,[_0x1e0f4a([0x6a,0x74,0x69])]:_0x2c420e[_0x1e0f4a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2c420e[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2f90b5[_0x1e0f4a([0x76,0x63])],_0x3bf57c(_0x2f90b5)==_0x3ec3c0;}}}async function _0x4bba8d(){let _0x1c378e=!0x0;try{const _0x2f2c28=_0x24ef34[_0x1e0f4a([0x73,0x70,0x6c,0x69,0x74])](_0x1e0f4a([0x2e])),[_0x54d693,_0x1daabe,_0x24278e]=_0x2f2c28;return _0x21e7c1(_0x54d693),await _0x16b70a(_0x54d693,_0x1daabe,_0x24278e),_0x1c378e;}catch{return!0x1;}function _0x21e7c1(_0x339736){const _0x1358f4=_0x311c34(_0x339736);_0x1358f4&&_0x1358f4[_0x1e0f4a([0x61,0x6c,0x67])]==_0x1e0f4a([0x45,0x53,0x32,0x35,0x36])||(_0x1c378e=!0x1);}async function _0x16b70a(_0x2e7504,_0x2e606a,_0x417deb){const _0x2ff0eb=window[_0x1e0f4a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1e0f4a([0x66,0x72,0x6f,0x6d])](_0x5773aa(_0x417deb),_0x108c52=>_0x108c52[_0x1e0f4a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2fec87=new window[(_0x1e0f4a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1e0f4a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2e7504+_0x1e0f4a([0x2e])+_0x2e606a),_0xe1471b=window[_0x1e0f4a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1e0f4a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xe1471b)return;const _0x319588=await _0xe1471b[_0x1e0f4a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1e0f4a([0x6a,0x77,0x6b]),_0x551c27,{[_0x1e0f4a([0x6e,0x61,0x6d,0x65])]:_0x1e0f4a([0x45,0x43,0x44,0x53,0x41]),[_0x1e0f4a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1e0f4a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1e0f4a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xe1471b[_0x1e0f4a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1e0f4a([0x6e,0x61,0x6d,0x65])]:_0x1e0f4a([0x45,0x43,0x44,0x53,0x41]),[_0x1e0f4a([0x68,0x61,0x73,0x68])]:{[_0x1e0f4a([0x6e,0x61,0x6d,0x65])]:_0x1e0f4a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x319588,_0x2ff0eb,_0x2fec87)||(_0x1c378e=!0x1);}}function _0x311c34(_0x4fd6dc){return _0x4fd6dc[_0x1e0f4a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1e0f4a([0x65,0x79]))?JSON[_0x1e0f4a([0x70,0x61,0x72,0x73,0x65])](_0x5773aa(_0x4fd6dc)):null;}function _0x5773aa(_0x5e6046){return window[_0x1e0f4a([0x61,0x74,0x6f,0x62])](_0x5e6046[_0x1e0f4a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1e0f4a([0x2b]))[_0x1e0f4a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1e0f4a([0x2f])));}function _0x3bf57c(_0x55e79a){let _0x5b5f7c=0x1505;function _0x2b95f8(_0x3df032){for(let _0x56d5fe=0x0;_0x56d5fe<_0x3df032[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56d5fe++){const _0x2d43ef=_0x3df032[_0x1e0f4a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x56d5fe);_0x5b5f7c=(_0x5b5f7c<<0x5)+_0x5b5f7c+_0x2d43ef,_0x5b5f7c&=_0x5b5f7c;}}function _0x522402(_0x3f4375){Array[_0x1e0f4a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3f4375)?_0x3f4375[_0x1e0f4a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x522402):_0x3f4375&&typeof _0x3f4375==_0x1e0f4a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1e0f4a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3f4375)[_0x1e0f4a([0x73,0x6f,0x72,0x74])]()[_0x1e0f4a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xcf8176,_0x2b0a51])=>{_0x2b95f8(_0xcf8176),_0x522402(_0x2b0a51);}):_0x2b95f8(window[_0x1e0f4a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3f4375));}return _0x522402(_0x55e79a),_0x5b5f7c>>>0x0;}function _0x4ec54d(_0x502a4f){return _0x502a4f[_0x1e0f4a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1e0f4a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1e0f4a([0x30]));}function _0x4fee7b(_0x228180){return _0x228180[_0x1e0f4a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1e0f4a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1e0f4a([0x6a,0x6f,0x69,0x6e])]('');}function _0x1ba32d(){}function _0x1e0f4a(_0x23b08e){const _0x46d537=_0x2997;return _0x23b08e[_0x46d537(0x20c)](_0x1b0c2a=>String[_0x46d537(0x1ea)](_0x1b0c2a))[_0x46d537(0x211)]('');}_0x3602b1(await _0x14654a());}(this);}[_0x167dca(0x1dc)](){const _0x12002b=_0x167dca,_0x103b69=this[_0x12002b(0x1e8)][_0x12002b(0x1ed)][_0x12002b(0x207)];_0x103b69[_0x12002b(0x1e5)](_0x12002b(0x1db))&&_0x103b69[_0x12002b(0x1fe)](_0x12002b(0x1db),{'allowAttributes':[_0x12002b(0x201)]}),_0x103b69[_0x12002b(0x1e5)](_0x12002b(0x206))&&_0x103b69[_0x12002b(0x1fe)](_0x12002b(0x206),{'allowAttributes':[_0x12002b(0x201)]});}[_0x167dca(0x1f7)](){const _0x308d8c=_0x167dca,_0x27bca1=this[_0x308d8c(0x1e8)];_0x27bca1[_0x308d8c(0x208)][_0x308d8c(0x205)](_0x308d8c(0x1d5))[_0x308d8c(0x1f4)]({'model':_0x308d8c(0x201),'view':_0x308d8c(0x1e6)}),_0x27bca1[_0x308d8c(0x208)][_0x308d8c(0x205)](_0x308d8c(0x1cd))[_0x308d8c(0x1e7)]({'model':{'key':_0x308d8c(0x201),'value':_0x8d81cf=>_0x8d81cf[_0x308d8c(0x1f6)](_0x308d8c(0x1e6))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x7be80d=_0x27bca1[_0x308d8c(0x1e3)][_0x308d8c(0x1ec)](_0x308d8c(0x1fa));_0x7be80d&&this[_0x308d8c(0x21c)](_0x7be80d,_0x308d8c(0x20e),(_0x2a373a,[_0x3660b6,_0x4fec51])=>{const _0xbc4340=_0x308d8c;_0x3660b6[_0xbc4340(0x1f0)](_0xbc4340(0x201),_0x4fec51);});}[_0x167dca(0x218)](){const _0x594c53=_0x167dca,_0x37ee2e=this[_0x594c53(0x1e8)][_0x594c53(0x214)][_0x594c53(0x1ec)](_0x594c53(0x209))||{},_0x481714=this[_0x594c53(0x1e8)][_0x594c53(0x214)][_0x594c53(0x1ec)](_0x594c53(0x1fc))||'';this[_0x594c53(0x1e4)]=_0x793ead(_0x23f10b[_0x594c53(0x204)],_0x594c53(0x1d3),{..._0x37ee2e,'pubkey':_0x481714,'ctx-name':_0x594c53(0x1e1)+this[_0x594c53(0x1ff)],'sourceList':'','imgOnly':_0x594c53(0x1d0),'removeCopyright':_0x594c53(0x1d0),'localeName':this[_0x594c53(0x1e8)][_0x594c53(0x1dd)][_0x594c53(0x1d6)],'externalSourcesEmbedCss':_0x594c53(0x20d)}),this[_0x594c53(0x1e4)][_0x594c53(0x1d4)]=_0x5b04ba=>{const _0x1c67ee=_0x594c53;if(_0x1c67ee(0x21b)==_0x5b04ba)return _0x1c67ee(0x1f1);},_0x23f10b[_0x594c53(0x204)][_0x594c53(0x21e)][_0x594c53(0x202)](this[_0x594c53(0x1e4)]);}[_0x167dca(0x20a)](){const _0x1c741d=_0x167dca;this[_0x1c741d(0x21a)]=_0x793ead(_0x23f10b[_0x1c741d(0x204)],_0x1c741d(0x1d2),{'ctx-name':_0x1c741d(0x1e1)+this[_0x1c741d(0x1ff)]}),_0x23f10b[_0x1c741d(0x204)][_0x1c741d(0x21e)][_0x1c741d(0x202)](this[_0x1c741d(0x21a)]);}[_0x167dca(0x1fb)](){const _0x2eaafa=_0x167dca,_0x5d6ea1=this[_0x2eaafa(0x1e8)][_0x2eaafa(0x1e3)][_0x2eaafa(0x1ec)](_0x2eaafa(0x220));_0x5d6ea1&&this[_0x2eaafa(0x21c)](_0x5d6ea1,_0x2eaafa(0x1d7),()=>{const _0x3f3654=_0x2eaafa,_0x284308=this[_0x3f3654(0x1e8)][_0x3f3654(0x1ed)][_0x3f3654(0x204)][_0x3f3654(0x215)][_0x3f3654(0x1da)]();_0x284308&&_0x284308[_0x3f3654(0x1f6)](_0x3f3654(0x201))&&this[_0x3f3654(0x1e8)][_0x3f3654(0x1f8)][_0x3f3654(0x216)][_0x3f3654(0x1cc)](_0x3f3654(0x1d8),()=>{const _0x3d1aac=_0x3f3654;_0x15fa1b(this[_0x3d1aac(0x1e8)],_0x284308);});});const _0xb1b5e8=this[_0x2eaafa(0x1e8)][_0x2eaafa(0x1e3)][_0x2eaafa(0x1ec)](_0x2eaafa(0x21f));_0xb1b5e8&&this[_0x2eaafa(0x21c)](_0xb1b5e8,_0x2eaafa(0x1d7),()=>{const _0x1bbf2d=_0x2eaafa,_0x4d893e=this[_0x1bbf2d(0x1e8)][_0x1bbf2d(0x1ed)][_0x1bbf2d(0x204)][_0x1bbf2d(0x215)][_0x1bbf2d(0x1da)]();_0x4d893e&&_0x4d893e[_0x1bbf2d(0x1f6)](_0x1bbf2d(0x201))&&this[_0x1bbf2d(0x1e8)][_0x1bbf2d(0x1f8)][_0x1bbf2d(0x216)][_0x1bbf2d(0x1cc)](_0x1bbf2d(0x1d8),()=>{const _0x225be7=_0x1bbf2d;_0x15fa1b(this[_0x225be7(0x1e8)],_0x4d893e);});});}}
|