@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20260124.0 → 0.0.0-nightly-20260125.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/uploadcareediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x4d25b3,Command as _0x4794c6}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4150f6,IconGooglePhotos as _0x2864b8,IconGoogleDrive as _0x463b87,IconFacebook as _0x16b761,IconDropbox as _0xc111bc,IconUploadcareLink as _0x43e6b0,IconUploadcareImageUpload as _0x561b28,IconError as _0x3cf9b7,IconUploadcareImageEdit as _0xaddb6e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3a603b,MenuBarMenuListItemButtonView as _0x52e58b,View as _0x3eb62f,FocusCycler as _0xfcfbd1,Dialog as _0x4da0c8,DialogViewPosition as _0x45ff54,SpinnerView as _0x35b370,IconView as _0xbb98e,Notification as _0x40cd31}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x140787,DomEmitterMixin as _0x19d85f,global as _0x43e1e7,getAncestors as _0x3297f0,ObservableMixin as _0x4c3ba5,uid as _0x53c1f2,createElement as _0x4b3ce8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3e2076}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5d5b65,info as _0x5b8dd6}from'@uploadcare/upload-client';import*as _0x4aed52 from'@uploadcare/file-uploader';var i=function(_0x40e205){return _0x40e205['Local']='local',_0x40e205['URL']='url',_0x40e205['Dropbox']='dropbox',_0x40e205['GDrive']='gdrive',_0x40e205['Facebook']='facebook',_0x40e205['GPhotos']='gphotos',_0x40e205['OneDrive']='onedrive',_0x40e205;}({});function _(_0x7376aa,_0x43ec35,_0x3aafc8){const t=_0x7376aa['t'],_0x10a7b2=_0x7376aa['t'];switch(_0x43ec35){case i['Local']:return{'text':_0x10a7b2('Insert'===_0x3aafc8?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x10a7b2('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3aafc8?_0x10a7b2('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x10a7b2('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3aafc8?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3aafc8?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3aafc8?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3aafc8?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3aafc8?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x43ec35;}}class e extends _0x4d25b3{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5a4388=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x27fbeb;for(const _0x7d2df6 in _0x5a4388){const _0x1950b6=_0x7d2df6,_0x32dbae=_0x5a4388[_0x1950b6];if('uploadcareLicenseKeyValid'==_0x32dbae||'uploadcareLicenseKeyInvalid'==_0x32dbae||'uploadcareLicenseKeyExpired'==_0x32dbae||'uploadcareLicenseKeyDomainLimit'==_0x32dbae||'uploadcareLicenseKeyNotAllowed'==_0x32dbae||'uploadcareLicenseKeyEvaluationLimit'==_0x32dbae||'uploadcareLicenseKeyUsageLimit'==_0x32dbae){delete _0x5a4388[_0x1950b6],_0x27fbeb=_0x32dbae,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x27fbeb&&_0x5a4388['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x27fbeb&&_0x5a4388['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x27fbeb&&_0x5a4388['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x27fbeb&&_0x5a4388['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x27fbeb&&_0x5a4388['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x27fbeb&&_0x5a4388['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xd273cb}=this,_0x25eae3=_0xd273cb['commands']['get']('uploadcare');if(!_0x25eae3)return;const _0x219030=this['_normalizeConfigSourceList'](_0xd273cb['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x384190,_0x91f4c7)=>{const _0x1a33d2=this['_getIntegrationKey'](_0x91f4c7['type']);return _0x384190[_0x1a33d2]||(_0x384190[_0x1a33d2]=[]),_0x384190[_0x1a33d2]['push'](_0x91f4c7),_0x384190;},{});_0xd273cb['plugins']['has']('ImageInsertUI')&&_0xd273cb['commands']['get']('uploadcare')&&Object['entries'](_0x219030)['forEach'](([_0x478175,_0x52d7c5])=>{_0xd273cb['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x478175,'observable':()=>_0x25eae3,'buttonViewCreator':()=>this['_createToolbarButton'](_0x52d7c5),'formViewCreator':()=>this['_createDropdownButtons'](_0x52d7c5),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x52d7c5),'override':'assetManager'!==_0x478175});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2f373c){const {locale:_0x527f2a}=this['editor'];return _0x2f373c['map'](_0x55f432=>{const _0x4b718c=_(_0x527f2a,_0x55f432,'Insert');switch(_0x55f432){case i['Local']:return{'icon':_0x561b28,'type':i['Local'],..._0x4b718c};case i['URL']:return{'icon':_0x43e6b0,'type':i['URL'],..._0x4b718c};case i['Dropbox']:return{'icon':_0xc111bc,'type':i['Dropbox'],..._0x4b718c};case i['Facebook']:return{'icon':_0x16b761,'type':i['Facebook'],..._0x4b718c};case i['GDrive']:return{'icon':_0x463b87,'type':i['GDrive'],..._0x4b718c};case i['GPhotos']:return{'icon':_0x2864b8,'type':i['GPhotos'],..._0x4b718c};case i['OneDrive']:return{'icon':_0x4150f6,'type':i['OneDrive'],..._0x4b718c};}});}['_getIntegrationKey'](_0x38b230){switch(_0x38b230){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x531336,_0x5812ce){const _0x53ec21=this['editor'],_0xb8775b=new _0x531336(_0x53ec21['locale']),_0x4fe630=_0x53ec21['commands']['get']('uploadcare');return _0xb8775b['bind']('isEnabled')['to'](_0x4fe630),_0xb8775b['on']('execute',()=>{_0x4fe630['execute'](_0x5812ce);}),_0xb8775b;}['_createToolbarButton'](_0x5808d1){const {locale:_0x533c38}=this['editor'],_0x15f3c6=this['editor']['plugins']['get']('ImageInsertUI'),_0x1e9065=_0x5808d1[0x0],_0x212ee0=this['_createButton'](_0x3a603b,_0x1e9065['type']);return _0x212ee0['icon']=_0x1e9065['icon'],_0x212ee0['bind']('label')['to'](_0x15f3c6,'isImageSelected',_0x4587fa=>_(_0x533c38,_0x1e9065['type'],_0x4587fa?'Replace':'Insert')['text']),_0x212ee0['tooltip']=!0x0,_0x212ee0;}['_createDropdownButtons'](_0x3f52d9){const {locale:_0x26f704}=this['editor'],_0x4d8669=this['editor']['plugins']['get']('ImageInsertUI');return _0x3f52d9['map'](_0x59dc8e=>{const _0x2b5b96=this['_createButton'](_0x3a603b,_0x59dc8e['type']);return _0x2b5b96['withText']=!0x0,_0x2b5b96['icon']=_0x59dc8e['icon'],_0x2b5b96['bind']('label')['to'](_0x4d8669,'isImageSelected',_0x20bb6d=>_(_0x26f704,_0x59dc8e['type'],_0x20bb6d?'Replace':'Insert')['text']),_0x2b5b96;});}['_createMenuBarButtons'](_0x508c90){return _0x508c90['map'](_0x59543d=>{const _0x45c9c4=this['_createButton'](_0x52e58b,_0x59543d['type']);return _0x45c9c4['icon']=_0x59543d['icon'],_0x45c9c4['label']=_0x59543d['shortText'],_0x45c9c4;});}}class F extends _0x3eb62f{['focusTracker'];['focusCycler'];constructor(_0x31990e){super(_0x31990e),this['focusTracker']=new _0x140787(),this['focusCycler']=new _0xfcfbd1({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x12ba44,_0x43e758){super(_0x12ba44),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader-'+_0x43e758}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x5ab701,_0x5b3c33){const _0x4dc5a5=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x169950=>_0x169950<=_0x5b3c33)['map'](_0x58dd24=>_0x5ab701['replace'](/\/$/,'')+'/-/resize/'+_0x58dd24+'x/\x20'+_0x58dd24+'w');return{'imageFallbackUrl':_0x5ab701,'imageSources':[{'srcset':_0x4dc5a5['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5b3c33+'px)\x20100vw,\x20'+_0x5b3c33+'px','type':'image/webp'}]};}function S(_0x47d6be,_0x5988f3,_0x2b2efc){const _0x46ca21=_0x47d6be['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x46ca21?parseInt(_0x46ca21[0x1],0xa):_0x5988f3,'height':_0x46ca21?parseInt(_0x46ca21[0x2],0xa):_0x2b2efc};}function p(_0x1aa0ee,_0x2efdd3){const _0x159dbe=new(_0x19d85f())(),_0x32e9bf=_0x1aa0ee['plugins']['get']('ImageUtils'),_0xbdfd78=_0x1aa0ee['editing']['mapper']['toViewElement'](_0x2efdd3),_0x1fd0d8=_0x32e9bf['findViewImgElement'](_0xbdfd78),_0x3073d2=_0x1aa0ee['editing']['view']['domConverter']['viewToDom'](_0x1fd0d8),_0x2810b3=_0x2efdd3['getAttribute']('width'),_0x5a5af2=_0x2efdd3['getAttribute']('height'),_0x2250fc='image-processing';_0x1aa0ee['editing']['view']['change'](_0x4e496e=>{_0x4e496e['addClass'](_0x2250fc,_0xbdfd78),_0x4e496e['setStyle']('aspect-ratio',_0x2810b3+'/'+_0x5a5af2,_0x1fd0d8);}),_0x159dbe['listenTo'](_0x3073d2,'load',()=>{_0x159dbe['stopListening'](_0x3073d2,'load'),_0x1aa0ee['editing']['view']['change'](_0x278a01=>{_0x278a01['removeClass'](_0x2250fc,_0xbdfd78),_0x278a01['removeStyle']('aspect-ratio',_0x1fd0d8);});});}function G(_0x11bd30){if(Array['isArray'](_0x11bd30)){const _0x38c8ee=_0x11bd30['map'](G);return _0x1447c9=>_0x38c8ee['some'](_0x2d5659=>_0x2d5659(_0x1447c9));}if('origin'==_0x11bd30){const _0x3d69ba=_0x43e1e7['window']['location']['origin'];return _0x592eac=>new URL(_0x592eac,_0x43e1e7['document']['baseURI'])['origin']==_0x3d69ba;}return'function'==typeof _0x11bd30?_0x11bd30:_0x11bd30 instanceof RegExp?_0x12a20a=>!(!_0x12a20a['match'](_0x11bd30)&&!_0x12a20a['replace'](/^https?:\/\//,'')['match'](_0x11bd30)):()=>!0x1;}function A(_0x481e38,_0x34171e){return _0x3297f0(_0x481e38['target'])['includes'](_0x34171e);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x4c3ba5(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x386761,_0x3645e8,_0x51477a){super(),this['_editor']=_0x386761,this['_editing']=_0x3645e8,this['_dialog']=_0x386761['plugins']['get'](_0x4da0c8),this['_api']=_0x3645e8['ctxElement']['getAPI'](),this['_type']=_0x51477a,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x46cc46,model:_0x35d433}=this['_editor'],_0x26cfb1=_0x35d433['document']['selection']['getSelectedElement'](),_0xb7c1fb=_0x26cfb1&&(_0x26cfb1['is']('element','imageBlock')||_0x26cfb1['is']('element','imageInline'));this['_formView']=new x(_0x46cc46,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x561b28,'title':_(_0x46cc46,this['_type'],_0xb7c1fb?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x45ff54['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3107b1=>!A(_0x3107b1,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5c8543}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x37b2ef=>{const _0x27ca9a=_0x5c8543['length'];for(const _0x6a170d of _0x5c8543){const _0x5bf2e9=_0x6a170d===_0x5c8543[_0x27ca9a-0x1],{cdnUrl:_0x3f4c18,fileInfo:_0x53ffbf}=_0x6a170d;if(!_0x3f4c18||!_0x53ffbf)continue;const {width:_0x2559c4,height:_0x2b5338}=_0x53ffbf['imageInfo'],_0x2986fd=S(_0x3f4c18,_0x2559c4,_0x2b5338),_0x495596=C(_0x3f4c18,_0x2986fd['width']),_0x4977f4={'id':_0x53ffbf['uuid'],'type':'image','attributes':{'imageDimension':_0x2986fd,..._0x495596}};this['_insertAsset'](_0x4977f4,_0x5bf2e9,_0x37b2ef);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3913da=>{'idle'===_0x3913da['detail']['status']&&!_0x3913da['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4a5135,_0x3bd6ea,_0xd9397e){const _0x1c4def=this['_editor']['model']['document']['selection'],_0x63a328=_0x1c4def['getSelectedElement'](),_0x5e9859=!(!_0x63a328||!_0x63a328['is']('element','imageInline'));_0xd9397e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4a5135,_0x5e9859),_0x3bd6ea||_0xd9397e['setSelection'](_0x1c4def['getLastPosition']());}['_insertImage'](_0x5745d6,_0x52a8b1){const _0x4635f0=this['_editor'],{imageDimension:_0xe1cc1,imageFallbackUrl:_0x3b1817,imageSources:_0x521698}=_0x5745d6['attributes'];_0x4635f0['execute']('insertImage',{'imageType':_0x52a8b1?'imageInline':null,'source':{'uploadcareImageId':_0x5745d6['id'],'src':_0x3b1817,'sources':_0x521698,..._0xe1cc1}});}}class w extends _0x4794c6{['_editing'];['_controller']=null;static get['requires'](){return[_0x4da0c8,o];}constructor(_0xac674){super(_0xac674),this['_editing']=_0xac674['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2bb2bf){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2bb2bf);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5aae06,..._0x24762b}){return _0x5d5b65(_0x5aae06,_0x24762b);}static['getInfo'](_0x13f514,_0x376c0c){return _0x5b8dd6(_0x13f514,_0x376c0c);}}class f extends _0x4d25b3{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3e2076,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x14e801=this['editor'];if(!!!_0x14e801['config']['get']('uploadcare'))return;_0x14e801['plugins']['get'](_0x3e2076)['createUploadAdapter']=_0x53e92c=>new k(_0x53e92c,_0x14e801),_0x14e801['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x13e56d,{imageElement:_0x4c78dd,data:_0x958884})=>{_0x14e801['model']['change'](_0x124e2e=>{_0x124e2e['setAttribute']('uploadcareImageId',_0x958884['uploadcareImageId'],_0x4c78dd);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x34dc39,_0x2072e1){this['loader']=_0x34dc39,this['editor']=_0x2072e1,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x19a0be=await this['loader']['file'];return j['upload']({'file':_0x19a0be,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x30606e=>{_0x30606e&&_0x30606e['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x30606e['value']);}})['then'](async _0x4ce7f0=>{const {imageFallbackUrl:_0x6bb16f,imageSources:_0x428769}=C(_0x4ce7f0['cdnUrl'],_0x4ce7f0['imageInfo']['width']);return{'uploadcareImageId':_0x4ce7f0['uuid'],'default':_0x6bb16f,'sources':_0x428769};})['catch'](()=>{const _0x1c79ba=t('Cannot\x20upload\x20file:')+('\x20'+_0x19a0be['name']+'.');return Promise['reject'](_0x1c79ba);});}['abort'](){this['controller']['abort']();}}class o extends _0x4d25b3{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4da0c8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xdd1398){super(_0xdd1398),this['ucContextId']=_0x53c1f2();}['init'](){const _0x1e233e=this['editor'];_0x1e233e['commands']['add']('uploadcare',new w(_0x1e233e));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x5263cf=_0x43e1e7['document']['querySelector']('input[uploadcare-file-input]');_0x5263cf&&_0x5263cf['remove']();}),async function(_0xf7c95f){const _0xf7db7a=_0xf066b1([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x33f5a5=0x535f8c3a,_0x162a1c=0x5358f382^_0x33f5a5,_0x78c82d=window[_0xf066b1([0x44,0x61,0x74,0x65])][_0xf066b1([0x6e,0x6f,0x77])](),_0x2e628e=_0xf7c95f[_0xf066b1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x37dbd0=new window[(_0xf066b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c341f=>{_0x2e628e[_0xf066b1([0x6f,0x6e,0x63,0x65])](_0xf066b1([0x72,0x65,0x61,0x64,0x79]),_0x1c341f);}),_0x5df489={[_0xf066b1([0x6b,0x74,0x79])]:_0xf066b1([0x45,0x43]),[_0xf066b1([0x75,0x73,0x65])]:_0xf066b1([0x73,0x69,0x67]),[_0xf066b1([0x63,0x72,0x76])]:_0xf066b1([0x50,0x2d,0x32,0x35,0x36]),[_0xf066b1([0x78])]:_0xf066b1([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0xf066b1([0x79])]:_0xf066b1([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0xf066b1([0x61,0x6c,0x67])]:_0xf066b1([0x45,0x53,0x32,0x35,0x36])},_0x512d10=_0x2e628e[_0xf066b1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xf066b1([0x67,0x65,0x74])](_0xf066b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1c5c0c(){let _0x554132,_0x322c96=null,_0x4d7ef0=null;try{if(_0x512d10==_0xf066b1([0x47,0x50,0x4c]))return _0xf066b1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x554132=_0x1d5cf1(),!_0x554132)return _0xf066b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x554132[_0xf066b1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4d7ef0=_0x5430c3(_0x554132[_0xf066b1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x554132[_0xf066b1([0x6a,0x74,0x69])])),await _0x28d133()?_0x3b0e19()?_0x2f0ccc()?_0xf066b1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x9b7b11()?(_0x554132[_0xf066b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf066b1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x322c96=_0x261b26(_0xf066b1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xa227c3()):_0xf066b1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xf066b1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xf066b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xf066b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2f0ccc(){const _0x4684c6=[_0xf066b1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xf066b1([0x74,0x72,0x69,0x61,0x6c])][_0xf066b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x554132[_0xf066b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x78c82d/0x3e8:0xe10*_0x162a1c;return _0x554132[_0xf066b1([0x65,0x78,0x70])]<_0x4684c6;}function _0x3b0e19(){const _0xd8e7a9=_0x554132[_0xf066b1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xd8e7a9&&(!!_0xd8e7a9[_0xf066b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf066b1([0x2a]))||!!_0xd8e7a9[_0xf066b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf066b1([0x55,0x50,0x4c,0x43])));}function _0x9b7b11(){const _0x480d96=_0x554132[_0xf066b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x480d96||0x0==_0x480d96[_0xf066b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x24e23e}=new URL(window[_0xf066b1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x480d96[_0xf066b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24e23e))return!0x0;const _0x3f9dc7=_0x24e23e[_0xf066b1([0x73,0x70,0x6c,0x69,0x74])](_0xf066b1([0x2e]));return _0x480d96[_0xf066b1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x57a4ab=>_0x57a4ab[_0xf066b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf066b1([0x2a])))[_0xf066b1([0x6d,0x61,0x70])](_0x574616=>_0x574616[_0xf066b1([0x73,0x70,0x6c,0x69,0x74])](_0xf066b1([0x2e])))[_0xf066b1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x229474=>_0x229474[_0xf066b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3f9dc7[_0xf066b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xf066b1([0x6d,0x61,0x70])](_0x253516=>Array(_0x3f9dc7[_0xf066b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x253516[_0xf066b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xf066b1([0x66,0x69,0x6c,0x6c])](_0x253516[0x0]===_0xf066b1([0x2a])?_0xf066b1([0x2a]):'')[_0xf066b1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x253516))[_0xf066b1([0x73,0x6f,0x6d,0x65])](_0x34cecf=>_0x3f9dc7[_0xf066b1([0x65,0x76,0x65,0x72,0x79])]((_0x309c50,_0x55a0e4)=>_0x34cecf[_0x55a0e4]===_0x309c50||_0x34cecf[_0x55a0e4]===_0xf066b1([0x2a])));}function _0xa227c3(){return _0x322c96&&_0x4d7ef0?new window[(_0xf066b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3789e5,_0x331ed7)=>{_0x322c96[_0xf066b1([0x74,0x68,0x65,0x6e])](_0x3789e5,_0x331ed7),_0x4d7ef0[_0xf066b1([0x74,0x68,0x65,0x6e])](_0x536502=>{_0x536502!=_0xf066b1([0x56,0x61,0x6c,0x69,0x64])&&_0x3789e5(_0x536502);},_0x331ed7);}):_0x322c96||_0x4d7ef0||_0xf066b1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5430c3(_0xf09309,_0x1c07ce){return new window[(_0xf066b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3350fb=>{if(_0x1fdb2e())return _0x3350fb(_0xf066b1([0x56,0x61,0x6c,0x69,0x64]));_0x5e6543(),_0x2e628e[_0xf066b1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xf066b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x32b16b=!0x1;const _0x6639d8=_0x53c1f2();function _0xbc033a(_0x14d163){return!!_0x14d163&&(typeof _0x14d163===_0xf066b1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x14d163===_0xf066b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x14d163[_0xf066b1([0x74,0x68,0x65,0x6e])]===_0xf066b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x14d163[_0xf066b1([0x63,0x61,0x74,0x63,0x68])]===_0xf066b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f9e70(_0x26bc72){_0x2b7325(_0x26bc72)[_0xf066b1([0x74,0x68,0x65,0x6e])](_0x31242e=>{if(!_0x31242e||_0x31242e[_0xf066b1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xf066b1([0x6f,0x6b]))return _0xf066b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2fcc0f(_0x533ae1(_0x6639d8+_0x1c07ce))!=_0x31242e[_0xf066b1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xf066b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xf066b1([0x56,0x61,0x6c,0x69,0x64]);})[_0xf066b1([0x74,0x68,0x65,0x6e])](_0x332a07=>(_0x1a9cec(),_0x332a07),()=>{const _0x35bcb9=_0x315c40();return null==_0x35bcb9?(_0x1a9cec(),_0xf066b1([0x56,0x61,0x6c,0x69,0x64])):_0xf066b1(_0x78c82d-_0x35bcb9>(0x7753083a^_0x33f5a5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xf066b1([0x74,0x68,0x65,0x6e])](_0x3350fb)[_0xf066b1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3350fb(_0xf066b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x217583=0x536962ba^_0x33f5a5;function _0x1a9cec(){const _0x31ae19=_0xf066b1([0x6c,0x6c,0x63,0x74,0x2d])+_0x2fcc0f(_0x533ae1(_0xf09309)),_0x1f2a1b=_0x25b8cb(_0x2fcc0f(window[_0xf066b1([0x4d,0x61,0x74,0x68])][_0xf066b1([0x63,0x65,0x69,0x6c])](_0x78c82d/_0x217583)));window[_0xf066b1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf066b1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31ae19,_0x1f2a1b);}function _0x315c40(){const _0x44a2e9=_0xf066b1([0x6c,0x6c,0x63,0x74,0x2d])+_0x2fcc0f(_0x533ae1(_0xf09309)),_0x18c31d=window[_0xf066b1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf066b1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44a2e9);return _0x18c31d?window[_0xf066b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25b8cb(_0x18c31d),0x10)*_0x217583:null;}function _0x2b7325(_0x2ed59c){return new window[(_0xf066b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3eda07,_0x2fc18f)=>{_0x2ed59c[_0xf066b1([0x74,0x68,0x65,0x6e])](_0x3eda07,_0x2fc18f),window[_0xf066b1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2fc18f,0x535e58fa^_0x33f5a5);});}}_0x2e628e[_0xf066b1([0x6f,0x6e])](_0xf066b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5e3114,_0x5806ad)=>{if(_0x5806ad[0x0]!=_0xf09309)return _0x3350fb(_0xf066b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5806ad[0x1]={..._0x5806ad[0x1],[_0xf066b1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x6639d8};},{[_0xf066b1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf066b1([0x68,0x69,0x67,0x68])}),_0x2e628e[_0xf066b1([0x6f,0x6e])](_0xf066b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x509f66=>{_0xbc033a(_0x509f66[_0xf066b1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x32b16b=!0x0,_0x2f9e70(_0x509f66[_0xf066b1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xf066b1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf066b1([0x6c,0x6f,0x77])}),_0x37dbd0[_0xf066b1([0x74,0x68,0x65,0x6e])](()=>{_0x32b16b||_0x3350fb(_0xf066b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1fdb2e(){return _0x2e628e[_0xf066b1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf066b1([0x76,0x69,0x65,0x77])][_0xf066b1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xf066b1([0x61,0x75,0x74,0x6f]);}function _0x5e6543(){_0x2e628e[_0xf066b1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf066b1([0x76,0x69,0x65,0x77])][_0xf066b1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xf066b1([0x61,0x75,0x74,0x6f]);}}function _0x261b26(_0x4d1781){const _0x917105=[new window[(_0xf066b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e19df=>setTimeout(_0x2e19df,0x5356b2f6^_0x33f5a5)),_0x37dbd0[_0xf066b1([0x74,0x68,0x65,0x6e])](()=>new window[(_0xf066b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c86f4=>{let _0x1ca970=0x0;_0x2e628e[_0xf066b1([0x6d,0x6f,0x64,0x65,0x6c])][_0xf066b1([0x6f,0x6e])](_0xf066b1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x47ec4d,_0x49eca9)=>{_0x49eca9[0x0][_0xf066b1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1ca970++,_0x1ca970==(0x535f89d2^_0x33f5a5)&&(_0x3c86f4(),_0x47ec4d[_0xf066b1([0x6f,0x66,0x66])]());});}))];return window[_0xf066b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xf066b1([0x72,0x61,0x63,0x65])](_0x917105)[_0xf066b1([0x74,0x68,0x65,0x6e])](()=>_0x4d1781);}async function _0x11ef35(){await _0x37dbd0,_0x2e628e[_0xf066b1([0x6d,0x6f,0x64,0x65,0x6c])][_0xf066b1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5863d3,_0x2e628e[_0xf066b1([0x6d,0x6f,0x64,0x65,0x6c])][_0xf066b1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5863d3,_0x2e628e[_0xf066b1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xf066b1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x17d1ef(_0x356e47){const _0x19ff13=_0x3ac4f3();_0x2e628e[_0x19ff13]=_0xf066b1([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x356e47,_0x356e47!=_0xf066b1([0x56,0x61,0x6c,0x69,0x64])&&_0x11ef35();}function _0x3ac4f3(){const _0x2d17df=window[_0xf066b1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xf066b1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xf066b1([0x6e,0x6f,0x77])]())[_0xf066b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xf066b1([0x2e]),'');let _0x6ed80f=_0xf066b1([0x68]);for(let _0xd75dc7=0x0;_0xd75dc7<_0x2d17df[_0xf066b1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd75dc7+=0x2){let _0x27c84c=window[_0xf066b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d17df[_0xf066b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xd75dc7,_0xd75dc7+0x2));_0x27c84c>=_0xf7db7a[_0xf066b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x27c84c-=_0xf7db7a[_0xf066b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x6ed80f+=_0xf7db7a[_0x27c84c];}return _0x6ed80f;}function _0x1d5cf1(){const _0x13692d=_0x512d10[_0xf066b1([0x73,0x70,0x6c,0x69,0x74])](_0xf066b1([0x2e]));if(0x3!=_0x13692d[_0xf066b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5b4666(_0x13692d[0x1]);function _0x5b4666(_0x5a40d1){const _0x1be05c=_0x309aa6(_0x5a40d1);return _0x1be05c&&_0x143a13()?_0x1be05c:null;function _0x143a13(){const _0x23f8b7=_0x1be05c[_0xf066b1([0x6a,0x74,0x69])],_0x5ec152=window[_0xf066b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23f8b7[_0xf066b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23f8b7[_0xf066b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5dbaac={..._0x1be05c,[_0xf066b1([0x6a,0x74,0x69])]:_0x23f8b7[_0xf066b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x23f8b7[_0xf066b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5dbaac[_0xf066b1([0x76,0x63])],_0x533ae1(_0x5dbaac)==_0x5ec152;}}}async function _0x28d133(){let _0x113c60=!0x0;try{const _0x2d6630=_0x512d10[_0xf066b1([0x73,0x70,0x6c,0x69,0x74])](_0xf066b1([0x2e])),[_0x1d1893,_0xe6cfc0,_0x58125]=_0x2d6630;return _0x16b54a(_0x1d1893),await _0x16a7a1(_0x1d1893,_0xe6cfc0,_0x58125),_0x113c60;}catch{return!0x1;}function _0x16b54a(_0x3bdf5b){const _0x3c1216=_0x309aa6(_0x3bdf5b);_0x3c1216&&_0x3c1216[_0xf066b1([0x61,0x6c,0x67])]==_0xf066b1([0x45,0x53,0x32,0x35,0x36])||(_0x113c60=!0x1);}async function _0x16a7a1(_0x49d6c2,_0x54153d,_0x381247){const _0x301584=window[_0xf066b1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xf066b1([0x66,0x72,0x6f,0x6d])](_0x19297b(_0x381247),_0x3f8a49=>_0x3f8a49[_0xf066b1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x47eb16=new window[(_0xf066b1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xf066b1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x49d6c2+_0xf066b1([0x2e])+_0x54153d),_0x5fe26=window[_0xf066b1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xf066b1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5fe26)return;const _0x43ebc4=await _0x5fe26[_0xf066b1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xf066b1([0x6a,0x77,0x6b]),_0x5df489,{[_0xf066b1([0x6e,0x61,0x6d,0x65])]:_0xf066b1([0x45,0x43,0x44,0x53,0x41]),[_0xf066b1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xf066b1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xf066b1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5fe26[_0xf066b1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xf066b1([0x6e,0x61,0x6d,0x65])]:_0xf066b1([0x45,0x43,0x44,0x53,0x41]),[_0xf066b1([0x68,0x61,0x73,0x68])]:{[_0xf066b1([0x6e,0x61,0x6d,0x65])]:_0xf066b1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x43ebc4,_0x301584,_0x47eb16)||(_0x113c60=!0x1);}}function _0x309aa6(_0x498d87){return _0x498d87[_0xf066b1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xf066b1([0x65,0x79]))?JSON[_0xf066b1([0x70,0x61,0x72,0x73,0x65])](_0x19297b(_0x498d87)):null;}function _0x19297b(_0x31996f){return window[_0xf066b1([0x61,0x74,0x6f,0x62])](_0x31996f[_0xf066b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xf066b1([0x2b]))[_0xf066b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xf066b1([0x2f])));}function _0x533ae1(_0x9de588){let _0x113f24=0x1505;function _0x5f5a2b(_0x33a8e4){for(let _0x571977=0x0;_0x571977<_0x33a8e4[_0xf066b1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x571977++){const _0x57eb60=_0x33a8e4[_0xf066b1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x571977);_0x113f24=(_0x113f24<<0x5)+_0x113f24+_0x57eb60,_0x113f24&=_0x113f24;}}function _0x5ae72f(_0x3a5be2){Array[_0xf066b1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3a5be2)?_0x3a5be2[_0xf066b1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5ae72f):_0x3a5be2&&typeof _0x3a5be2==_0xf066b1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xf066b1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3a5be2)[_0xf066b1([0x73,0x6f,0x72,0x74])]()[_0xf066b1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x493169,_0x254d37])=>{_0x5f5a2b(_0x493169),_0x5ae72f(_0x254d37);}):_0x5f5a2b(window[_0xf066b1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3a5be2));}return _0x5ae72f(_0x9de588),_0x113f24>>>0x0;}function _0x2fcc0f(_0x19c8f0){return _0x19c8f0[_0xf066b1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xf066b1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xf066b1([0x30]));}function _0x25b8cb(_0x300380){return _0x300380[_0xf066b1([0x73,0x70,0x6c,0x69,0x74])]('')[_0xf066b1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xf066b1([0x6a,0x6f,0x69,0x6e])]('');}function _0x5863d3(){}function _0xf066b1(_0xfe781b){return _0xfe781b['map'](_0x37e539=>String['fromCharCode'](_0x37e539))['join']('');}_0x17d1ef(await _0x1c5c0c());}(this);}['_initSchema'](){const _0x4e7c73=this['editor']['model']['schema'];_0x4e7c73['isRegistered']('imageBlock')&&_0x4e7c73['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4e7c73['isRegistered']('imageInline')&&_0x4e7c73['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5139b9=this['editor'];_0x5139b9['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5139b9['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x134ca2=>_0x134ca2['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x473332=_0x5139b9['commands']['get']('replaceImageSource');_0x473332&&this['listenTo'](_0x473332,'cleanupImage',(_0x25c368,[_0x1a699e,_0x3deb53])=>{_0x1a699e['removeAttribute']('uploadcareImageId',_0x3deb53);});}['_initConfig'](){const _0x3c01c7=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2b1511=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4b3ce8(_0x43e1e7['document'],'uc-config',{..._0x3c01c7,'pubkey':_0x2b1511,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x4af642=>{if('closeMax'==_0x4af642)return'#uc-icon-arrow-down';},_0x43e1e7['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4b3ce8(_0x43e1e7['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x43e1e7['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xbc5538=this['editor']['commands']['get']('insertImage');_0xbc5538&&this['listenTo'](_0xbc5538,'execute',()=>{const _0x2a0ac8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2a0ac8&&_0x2a0ac8['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2a0ac8);});});const _0x424430=this['editor']['commands']['get']('uploadcareImageReplace');_0x424430&&this['listenTo'](_0x424430,'execute',()=>{const _0x1e9ccb=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1e9ccb&&_0x1e9ccb['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1e9ccb);});});}}class tt extends _0x4d25b3{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1da080){super(_0x1da080),_0x1da080['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4aed52['defineComponents'](_0x4aed52),this['_defineLocale']();}['_defineLocale'](){const _0x145783=this['editor']['config']['get']('uploadcare.locale'),_0x554123=this['editor']['locale']['contentLanguage'];_0x145783&&_0x4aed52['defineLocale'](_0x554123,_0x145783);}}class ii extends _0x3eb62f{constructor(_0x158d04){super(_0x158d04);const t=_0x158d04['t'],_0x47352b=this['bindTemplate'],_0x1b4775=new _0x35b370();_0x1b4775['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x1b4775,{'text':_0x47352b['to']('imageUploadProgress',_0x31525b=>t('Loading\x20image...')+'\x20('+(_0x31525b||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x3eb62f{constructor(_0x344547){super(_0x344547);const t=_0x344547['t'];this['set']('errorType',null);const _0x2bfbce=new _0x3a603b(_0x344547);_0x2bfbce['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2bfbce['withText']=!0x0,_0x2bfbce['class']='ck-button-action',_0x2bfbce['on']('execute',()=>{this['fire']('retry');}),_0x2bfbce['bind']('isVisible')['to'](this,'errorType',_0x1f3e8a=>'NotFound'!==_0x1f3e8a);const _0x4be526=new _0xbb98e();_0x4be526['content']=_0x3cf9b7,_0x4be526['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3465e5=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x4be526,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3465e5['to']('errorType',_0xc5f507=>t('NotFound'!==_0xc5f507?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2bfbce]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x3eb62f{constructor(_0x522b05,_0x10b3f9){super(_0x522b05);const _0xf6b095=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x10b3f9,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0xf6b095['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xca88e1,_0x33652a,_0x490e03){super(_0xca88e1),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xca88e1),this['_errorView']=new ti(_0xca88e1),this['_editingView']=new ei(_0xca88e1,_0x490e03),this['_focusableView']=new _0x3eb62f(_0xca88e1),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x33652a),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x3f4fc1=>{this['_addUploadcareImageEditorListeners'](_0x3f4fc1);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x3f0b47,_0x4737d6){const _0xf5c258='uc-cloud-image-editor',_0x2b424f=_0x3f0b47['querySelector'](_0xf5c258);if(_0x2b424f)return _0x4737d6(_0x2b424f);const _0xe3f783=new MutationObserver(_0x53ec68=>{const _0x13c246=_0x53ec68['filter'](_0x2eb0f3=>_0x2eb0f3['target']===_0x3f0b47&&_0x2eb0f3['addedNodes']['length']>0x0&&_0x2eb0f3['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xf5c258);_0x13c246['length']&&(_0xe3f783['disconnect'](),_0x4737d6(_0x13c246[0x0]['addedNodes'][0x0]));});_0xe3f783['observe'](_0x3f0b47,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x52707b){_0x52707b['addEventListener']('apply',_0x204391=>{this['fire']('apply',{'imageSrc':_0x204391['detail']['cdnUrl']});}),_0x52707b['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4c3ba5(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x28c205,_0x79814c,_0x1a76e1){super(),this['_editor']=_0x28c205,this['_dialog']=_0x79814c,this['_imageElement']=_0x1a76e1,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0x382404=this['_imageElement'],_0x362efd=_0x382404['getAttribute']('uploadcareImageId'),_0x566ccc=_0x382404['getAttribute']('src');if(_0x362efd)await this['_loadImageInfo'](_0x362efd,_0x566ccc);else{if(this['_imageCache']['has'](_0x566ccc)){const _0x2eb0ca=this['_imageCache']['get'](_0x566ccc);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2eb0ca['url'],this['imageDimension']=_0x2eb0ca['dimension'],this['imageId']=_0x2eb0ca['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2e5ca6}=this['_editor'],t=_0x2e5ca6['t'],_0x54b270=new X(_0x2e5ca6,this['imageStatus'],this['_attributes']);_0x54b270['bind']('status')['to'](this,'imageStatus'),_0x54b270['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x54b270['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x54b270['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x54b270,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xaddb6e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x54b270,'position':_0x45ff54['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x54b270['focus']();},'onHide':()=>{_0x54b270['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x249601=>!A(_0x249601,_0x54b270['element'])}});}['_loadImageInfo'](_0x57ee56,_0x32cfed){return j['getInfo'](_0x57ee56,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x336ac6=>{const {width:_0xbecedf,height:_0x38c278}=_0x336ac6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x32cfed,this['imageDimension']={'width':_0xbecedf,'height':_0x38c278},this['imageId']=_0x57ee56;})['catch'](_0x5d21d5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5d21d5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xdc7fa,_0x4ed392){return this['_getImageAsFile'](_0xdc7fa)['then'](_0xf967cd=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x4ed392['signal'],'file':_0xf967cd,'onProgress':_0x2a9eed=>{_0x2a9eed&&_0x2a9eed['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2a9eed['value']));}}))['then'](_0x355c43=>{const {width:_0x19922e,height:_0x21b7d7}=_0x355c43['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x355c43['cdnUrl'],this['imageDimension']={'width':_0x19922e,'height':_0x21b7d7},this['imageId']=_0x355c43['uuid'],this['imageUploadProgress']=null;const _0xa946f5=_0xdc7fa['getAttribute']('src');this['_imageCache']['set'](_0xa946f5,{'id':_0x355c43['uuid'],'url':_0x355c43['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x18cec3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x18cec3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xd5f4ca,_0x1a7580){_0xd5f4ca['on']('apply',(_0x185da5,_0x13f213)=>{this['_replaceImage'](_0x1a7580,_0x13f213['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xd5f4ca['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xd5f4ca['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x396e6b,_0x53e7eb,_0x98200c){const _0x314014=this['_editor'],{width:_0x237dbb,height:_0x29b064}=S(_0x53e7eb,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x49abfe,imageSources:_0x2af623}=C(_0x53e7eb,_0x237dbb);_0x314014['model']['change'](_0x2b940e=>{if('$graveyard'===_0x396e6b['root']['rootName']){_0x314014['execute']('insertImage',{'imageType':_0x396e6b['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x396e6b['getAttributes']()),'uploadcareImageId':_0x98200c,'src':_0x49abfe,'sources':_0x2af623,'width':_0x237dbb,'height':_0x29b064}});const _0x497a0d=_0x396e6b['getChildren']();_0x396e6b=_0x314014['model']['document']['selection']['getSelectedElement']();for(const _0x53436d of _0x497a0d)_0x2b940e['append'](_0x2b940e['cloneElement'](_0x53436d),_0x396e6b);}else _0x2b940e['setSelection'](_0x396e6b,'on'),_0x314014['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x396e6b['getAttributes']()),'uploadcareImageId':_0x98200c,'src':_0x49abfe,'sources':_0x2af623,'width':_0x237dbb,'height':_0x29b064},_0x396e6b);_0x2b940e['setSelection'](_0x396e6b,'on');});}async['_getImageAsFile'](_0x143912){const _0x2638bb=_0x43e1e7['window'],_0x2e46b5=_0x43e1e7['document']['location']['href'],_0x3c8ba8=new _0x2638bb['URL'](_0x143912['getAttribute']('src'),_0x2e46b5);if('data:'===_0x3c8ba8['protocol']){const _0x50dc40=_0x3c8ba8['href']['split'](','),_0x3ffec9=_0x50dc40[0x0]['match'](/:(.*?);/)[0x1],_0x24059b=_0x3ffec9['split']('/')[0x1],_0x5c3826=_0x2638bb['atob'](_0x50dc40[_0x50dc40['length']-0x1]);let _0x213cf3=_0x5c3826['length'];const _0x5f5512=new _0x2638bb['Uint8Array'](_0x213cf3);for(;_0x213cf3--;)_0x5f5512[_0x213cf3]=_0x5c3826['charCodeAt'](_0x213cf3);return new _0x2638bb['File']([_0x5f5512],'image.'+_0x24059b,{'type':_0x3ffec9});}const _0x3e6f8f=_0x3c8ba8['href']['split']('/'),_0x3cf396=_0x3e6f8f[_0x3e6f8f['length']-0x1],_0x3e6fe0=_0x3cf396['split']('.')[0x1];return _0x2638bb['fetch'](_0x3c8ba8['href'])['then'](_0x59d40f=>_0x59d40f['clone']()['blob']())['then'](_0x472249=>new _0x2638bb['File']([_0x472249],_0x3cf396,{'type':'image/'+_0x3e6fe0}));}}class O extends _0x4794c6{['imageEditController'];static get['requires'](){return[_0x4da0c8];}['_isEditable'];constructor(_0x32b330){super(_0x32b330),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xdae239){const _0x4e5809=G(_0xdae239);return _0x4d31f0=>!(!_0x4d31f0||!_0x4d31f0['is']('element','imageBlock')&&!_0x4d31f0['is']('element','imageInline'))&&(!!_0x4d31f0['hasAttribute']('uploadcareImageId')||!!_0x4d31f0['hasAttribute']('src')&&_0x4e5809(_0x4d31f0['getAttribute']('src')));}(_0x32b330['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x409784=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x409784);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x499b93=this['editor']['model']['document']['selection']['getSelectedElement']();_0x499b93&&(_0x499b93['is']('element','imageBlock')||_0x499b93['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x4da0c8),_0x499b93),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x4794c6{['refresh'](){const _0x4f7494=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4f7494&&(_0x4f7494['is']('element','imageBlock')||_0x4f7494['is']('element','imageInline')));}['execute'](_0x193ad2){const _0x5ba874=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4435cc=>{_0x4435cc['setAttributes'](_0x193ad2,_0x5ba874),_0x4435cc['removeAttribute']('srcset',_0x5ba874),_0x4435cc['removeAttribute']('sizes',_0x5ba874);});}}class m extends _0x4d25b3{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x40cd31,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5eda1a}=this;_0x5eda1a['commands']['add']('uploadcareImageEdit',new O(_0x5eda1a)),_0x5eda1a['commands']['add']('uploadcareImageReplace',new R(_0x5eda1a));}}class g extends _0x4d25b3{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x3cef83=this['editor'];_0x3cef83['ui']['componentFactory']['add']('uploadcareImageEdit',_0x517c63=>{const _0x59fb6c=_0x3cef83['commands']['get']('uploadcareImageEdit'),_0x421093=new _0x3a603b(_0x517c63),t=_0x517c63['t'];return _0x421093['set']({'icon':_0xaddb6e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x421093['bind']('isEnabled')['to'](_0x59fb6c),_0x421093['bind']('isOn')['to'](_0x59fb6c,'isActive'),this['listenTo'](_0x421093,'execute',()=>{_0x3cef83['execute']('uploadcareImageEdit'),_0x3cef83['editing']['view']['focus']();}),_0x421093;}),this['_initConfig']();}['_initConfig'](){const _0x3e0a1e=_0x4b3ce8(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3e0a1e),this['listenTo'](this['editor'],'destroy',()=>{_0x3e0a1e['remove']();});}}class et extends _0x4d25b3{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x27fa93,Command as _0x45278d}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x116a1a,IconGooglePhotos as _0x257269,IconGoogleDrive as _0xb02420,IconFacebook as _0x45f0c7,IconDropbox as _0x4b4286,IconUploadcareLink as _0x1983df,IconUploadcareImageUpload as _0x3638b3,IconError as _0x2e5b40,IconUploadcareImageEdit as _0xb51fd6}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x43235,MenuBarMenuListItemButtonView as _0x863b36,View as _0xb4225f,FocusCycler as _0x36bf49,Dialog as _0x3c0f0f,DialogViewPosition as _0x40af34,SpinnerView as _0x1d0767,IconView as _0x484228,Notification as _0x5c2864}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x20bc40,DomEmitterMixin as _0x44d3cc,global as _0x1312d8,getAncestors as _0x2af2bf,ObservableMixin as _0x523aa2,uid as _0x2a9b8d,createElement as _0x184083}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xaed829}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x402ae7,info as _0xf755cb}from'@uploadcare/upload-client';import*as _0x226517 from'@uploadcare/file-uploader';var i=function(_0x4b0412){return _0x4b0412['Local']='local',_0x4b0412['URL']='url',_0x4b0412['Dropbox']='dropbox',_0x4b0412['GDrive']='gdrive',_0x4b0412['Facebook']='facebook',_0x4b0412['GPhotos']='gphotos',_0x4b0412['OneDrive']='onedrive',_0x4b0412;}({});function _(_0x428fa7,_0xc79048,_0x3eec26){const t=_0x428fa7['t'],_0x16a6d8=_0x428fa7['t'];switch(_0xc79048){case i['Local']:return{'text':_0x16a6d8('Insert'===_0x3eec26?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x16a6d8('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3eec26?_0x16a6d8('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x16a6d8('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3eec26?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3eec26?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3eec26?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3eec26?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3eec26?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xc79048;}}class e extends _0x27fa93{['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 _0x1792e3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x149b48;for(const _0x42bd64 in _0x1792e3){const _0x880371=_0x42bd64,_0x34318d=_0x1792e3[_0x880371];if('uploadcareLicenseKeyValid'==_0x34318d||'uploadcareLicenseKeyInvalid'==_0x34318d||'uploadcareLicenseKeyExpired'==_0x34318d||'uploadcareLicenseKeyDomainLimit'==_0x34318d||'uploadcareLicenseKeyNotAllowed'==_0x34318d||'uploadcareLicenseKeyEvaluationLimit'==_0x34318d||'uploadcareLicenseKeyUsageLimit'==_0x34318d){delete _0x1792e3[_0x880371],_0x149b48=_0x34318d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x149b48&&_0x1792e3['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x149b48&&_0x1792e3['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x149b48&&_0x1792e3['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x149b48&&_0x1792e3['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x149b48&&_0x1792e3['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x149b48&&_0x1792e3['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5372fc}=this,_0x37910d=_0x5372fc['commands']['get']('uploadcare');if(!_0x37910d)return;const _0x475864=this['_normalizeConfigSourceList'](_0x5372fc['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3188e6,_0x5166cf)=>{const _0x50d70c=this['_getIntegrationKey'](_0x5166cf['type']);return _0x3188e6[_0x50d70c]||(_0x3188e6[_0x50d70c]=[]),_0x3188e6[_0x50d70c]['push'](_0x5166cf),_0x3188e6;},{});_0x5372fc['plugins']['has']('ImageInsertUI')&&_0x5372fc['commands']['get']('uploadcare')&&Object['entries'](_0x475864)['forEach'](([_0x453dbd,_0x58b4b1])=>{_0x5372fc['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x453dbd,'observable':()=>_0x37910d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x58b4b1),'formViewCreator':()=>this['_createDropdownButtons'](_0x58b4b1),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x58b4b1),'override':'assetManager'!==_0x453dbd});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3793a4){const {locale:_0x1a0880}=this['editor'];return _0x3793a4['map'](_0x20470d=>{const _0x2e56f0=_(_0x1a0880,_0x20470d,'Insert');switch(_0x20470d){case i['Local']:return{'icon':_0x3638b3,'type':i['Local'],..._0x2e56f0};case i['URL']:return{'icon':_0x1983df,'type':i['URL'],..._0x2e56f0};case i['Dropbox']:return{'icon':_0x4b4286,'type':i['Dropbox'],..._0x2e56f0};case i['Facebook']:return{'icon':_0x45f0c7,'type':i['Facebook'],..._0x2e56f0};case i['GDrive']:return{'icon':_0xb02420,'type':i['GDrive'],..._0x2e56f0};case i['GPhotos']:return{'icon':_0x257269,'type':i['GPhotos'],..._0x2e56f0};case i['OneDrive']:return{'icon':_0x116a1a,'type':i['OneDrive'],..._0x2e56f0};}});}['_getIntegrationKey'](_0x166405){switch(_0x166405){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1f0cf7,_0x50bc5f){const _0x33376b=this['editor'],_0xcdc17e=new _0x1f0cf7(_0x33376b['locale']),_0x4097cd=_0x33376b['commands']['get']('uploadcare');return _0xcdc17e['bind']('isEnabled')['to'](_0x4097cd),_0xcdc17e['on']('execute',()=>{_0x4097cd['execute'](_0x50bc5f);}),_0xcdc17e;}['_createToolbarButton'](_0xf6e9af){const {locale:_0x53a007}=this['editor'],_0x176172=this['editor']['plugins']['get']('ImageInsertUI'),_0x356e9c=_0xf6e9af[0x0],_0x6dce08=this['_createButton'](_0x43235,_0x356e9c['type']);return _0x6dce08['icon']=_0x356e9c['icon'],_0x6dce08['bind']('label')['to'](_0x176172,'isImageSelected',_0x3ff6cf=>_(_0x53a007,_0x356e9c['type'],_0x3ff6cf?'Replace':'Insert')['text']),_0x6dce08['tooltip']=!0x0,_0x6dce08;}['_createDropdownButtons'](_0x59c8b6){const {locale:_0x2ddfce}=this['editor'],_0x3871e7=this['editor']['plugins']['get']('ImageInsertUI');return _0x59c8b6['map'](_0x548c27=>{const _0x4cfd9c=this['_createButton'](_0x43235,_0x548c27['type']);return _0x4cfd9c['withText']=!0x0,_0x4cfd9c['icon']=_0x548c27['icon'],_0x4cfd9c['bind']('label')['to'](_0x3871e7,'isImageSelected',_0x512b90=>_(_0x2ddfce,_0x548c27['type'],_0x512b90?'Replace':'Insert')['text']),_0x4cfd9c;});}['_createMenuBarButtons'](_0x1fcea9){return _0x1fcea9['map'](_0x52b8c3=>{const _0xdf4792=this['_createButton'](_0x863b36,_0x52b8c3['type']);return _0xdf4792['icon']=_0x52b8c3['icon'],_0xdf4792['label']=_0x52b8c3['shortText'],_0xdf4792;});}}class F extends _0xb4225f{['focusTracker'];['focusCycler'];constructor(_0x4e7343){super(_0x4e7343),this['focusTracker']=new _0x20bc40(),this['focusCycler']=new _0x36bf49({'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(_0x5c9b58,_0x1eda99){super(_0x5c9b58),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-'+_0x1eda99}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x46afc4,_0x5ec2b3){const _0x4dbf6f=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x49f3de=>_0x49f3de<=_0x5ec2b3)['map'](_0x2b255f=>_0x46afc4['replace'](/\/$/,'')+'/-/resize/'+_0x2b255f+'x/\x20'+_0x2b255f+'w');return{'imageFallbackUrl':_0x46afc4,'imageSources':[{'srcset':_0x4dbf6f['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5ec2b3+'px)\x20100vw,\x20'+_0x5ec2b3+'px','type':'image/webp'}]};}function S(_0x57024a,_0x2a508b,_0x38995f){const _0x28eb2b=_0x57024a['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x28eb2b?parseInt(_0x28eb2b[0x1],0xa):_0x2a508b,'height':_0x28eb2b?parseInt(_0x28eb2b[0x2],0xa):_0x38995f};}function p(_0x453919,_0x1657fa){const _0x251cd8=new(_0x44d3cc())(),_0x8a3438=_0x453919['plugins']['get']('ImageUtils'),_0x4ac1c2=_0x453919['editing']['mapper']['toViewElement'](_0x1657fa),_0x41710f=_0x8a3438['findViewImgElement'](_0x4ac1c2),_0x2c6c07=_0x453919['editing']['view']['domConverter']['viewToDom'](_0x41710f),_0x471b30=_0x1657fa['getAttribute']('width'),_0x12166b=_0x1657fa['getAttribute']('height'),_0x233e98='image-processing';_0x453919['editing']['view']['change'](_0x15719a=>{_0x15719a['addClass'](_0x233e98,_0x4ac1c2),_0x15719a['setStyle']('aspect-ratio',_0x471b30+'/'+_0x12166b,_0x41710f);}),_0x251cd8['listenTo'](_0x2c6c07,'load',()=>{_0x251cd8['stopListening'](_0x2c6c07,'load'),_0x453919['editing']['view']['change'](_0x5159c4=>{_0x5159c4['removeClass'](_0x233e98,_0x4ac1c2),_0x5159c4['removeStyle']('aspect-ratio',_0x41710f);});});}function G(_0x18b5b0){if(Array['isArray'](_0x18b5b0)){const _0x344f90=_0x18b5b0['map'](G);return _0x5e2204=>_0x344f90['some'](_0x29bf65=>_0x29bf65(_0x5e2204));}if('origin'==_0x18b5b0){const _0xccdad8=_0x1312d8['window']['location']['origin'];return _0x245ad7=>new URL(_0x245ad7,_0x1312d8['document']['baseURI'])['origin']==_0xccdad8;}return'function'==typeof _0x18b5b0?_0x18b5b0:_0x18b5b0 instanceof RegExp?_0x1937e6=>!(!_0x1937e6['match'](_0x18b5b0)&&!_0x1937e6['replace'](/^https?:\/\//,'')['match'](_0x18b5b0)):()=>!0x1;}function A(_0x57d107,_0x337b7d){return _0x2af2bf(_0x57d107['target'])['includes'](_0x337b7d);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x523aa2(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2e5066,_0x559454,_0x3a0c83){super(),this['_editor']=_0x2e5066,this['_editing']=_0x559454,this['_dialog']=_0x2e5066['plugins']['get'](_0x3c0f0f),this['_api']=_0x559454['ctxElement']['getAPI'](),this['_type']=_0x3a0c83,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:_0x1fcc96,model:_0x12cf7a}=this['_editor'],_0x2d974f=_0x12cf7a['document']['selection']['getSelectedElement'](),_0x5cb329=_0x2d974f&&(_0x2d974f['is']('element','imageBlock')||_0x2d974f['is']('element','imageInline'));this['_formView']=new x(_0x1fcc96,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x3638b3,'title':_(_0x1fcc96,this['_type'],_0x5cb329?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x40af34['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xc06b82=>!A(_0xc06b82,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2f4fd0}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4554cc=>{const _0x4675c2=_0x2f4fd0['length'];for(const _0x4eaf5c of _0x2f4fd0){const _0x477f57=_0x4eaf5c===_0x2f4fd0[_0x4675c2-0x1],{cdnUrl:_0x2a114d,fileInfo:_0x3ae7bd}=_0x4eaf5c;if(!_0x2a114d||!_0x3ae7bd)continue;const {width:_0x5afe95,height:_0x4291ea}=_0x3ae7bd['imageInfo'],_0x5f5c37=S(_0x2a114d,_0x5afe95,_0x4291ea),_0x46c755=C(_0x2a114d,_0x5f5c37['width']),_0x125c45={'id':_0x3ae7bd['uuid'],'type':'image','attributes':{'imageDimension':_0x5f5c37,..._0x46c755}};this['_insertAsset'](_0x125c45,_0x477f57,_0x4554cc);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5b42a0=>{'idle'===_0x5b42a0['detail']['status']&&!_0x5b42a0['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x290442,_0x28ca07,_0x202346){const _0x270e69=this['_editor']['model']['document']['selection'],_0x3e2b3e=_0x270e69['getSelectedElement'](),_0x3adf7d=!(!_0x3e2b3e||!_0x3e2b3e['is']('element','imageInline'));_0x202346['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x290442,_0x3adf7d),_0x28ca07||_0x202346['setSelection'](_0x270e69['getLastPosition']());}['_insertImage'](_0x69a0c0,_0x29df2d){const _0x449cb2=this['_editor'],{imageDimension:_0x14fed5,imageFallbackUrl:_0x3cc4ce,imageSources:_0x30cbb0}=_0x69a0c0['attributes'];_0x449cb2['execute']('insertImage',{'imageType':_0x29df2d?'imageInline':null,'source':{'uploadcareImageId':_0x69a0c0['id'],'src':_0x3cc4ce,'sources':_0x30cbb0,..._0x14fed5}});}}class w extends _0x45278d{['_editing'];['_controller']=null;static get['requires'](){return[_0x3c0f0f,o];}constructor(_0x30408c){super(_0x30408c),this['_editing']=_0x30408c['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1ace59){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1ace59);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x43f3b5,..._0x5da492}){return _0x402ae7(_0x43f3b5,_0x5da492);}static['getInfo'](_0x37a13e,_0x4a5c50){return _0xf755cb(_0x37a13e,_0x4a5c50);}}class f extends _0x27fa93{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xaed829,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5d9e86=this['editor'];if(!!!_0x5d9e86['config']['get']('uploadcare'))return;_0x5d9e86['plugins']['get'](_0xaed829)['createUploadAdapter']=_0x4257e6=>new k(_0x4257e6,_0x5d9e86),_0x5d9e86['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xb97470,{imageElement:_0x335863,data:_0x26387a})=>{_0x5d9e86['model']['change'](_0x1f84c8=>{_0x1f84c8['setAttribute']('uploadcareImageId',_0x26387a['uploadcareImageId'],_0x335863);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x7cf7ce,_0x347925){this['loader']=_0x7cf7ce,this['editor']=_0x347925,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x28a994=await this['loader']['file'];return j['upload']({'file':_0x28a994,'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':_0x8c52aa=>{_0x8c52aa&&_0x8c52aa['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x8c52aa['value']);}})['then'](async _0x1882e9=>{const {imageFallbackUrl:_0x182558,imageSources:_0x35d2e8}=C(_0x1882e9['cdnUrl'],_0x1882e9['imageInfo']['width']);return{'uploadcareImageId':_0x1882e9['uuid'],'default':_0x182558,'sources':_0x35d2e8};})['catch'](()=>{const _0x1c7455=t('Cannot\x20upload\x20file:')+('\x20'+_0x28a994['name']+'.');return Promise['reject'](_0x1c7455);});}['abort'](){this['controller']['abort']();}}class o extends _0x27fa93{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x3c0f0f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x4602b9){super(_0x4602b9),this['ucContextId']=_0x2a9b8d();}['init'](){const _0x9b145f=this['editor'];_0x9b145f['commands']['add']('uploadcare',new w(_0x9b145f));}['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 _0x48f1ab=_0x1312d8['document']['querySelector']('input[uploadcare-file-input]');_0x48f1ab&&_0x48f1ab['remove']();}),async function(_0x3bd4f7){const _0x2315c5=_0x2781af([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]),_0x1027ef=0x535f8c3a,_0x14239b=0x5358f3ea^_0x1027ef,_0xe874da=window[_0x2781af([0x44,0x61,0x74,0x65])][_0x2781af([0x6e,0x6f,0x77])](),_0x1f17c7=_0x3bd4f7[_0x2781af([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x31e215=new window[(_0x2781af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1100db=>{_0x1f17c7[_0x2781af([0x6f,0x6e,0x63,0x65])](_0x2781af([0x72,0x65,0x61,0x64,0x79]),_0x1100db);}),_0x5bfaf8={[_0x2781af([0x6b,0x74,0x79])]:_0x2781af([0x45,0x43]),[_0x2781af([0x75,0x73,0x65])]:_0x2781af([0x73,0x69,0x67]),[_0x2781af([0x63,0x72,0x76])]:_0x2781af([0x50,0x2d,0x32,0x35,0x36]),[_0x2781af([0x78])]:_0x2781af([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]),[_0x2781af([0x79])]:_0x2781af([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]),[_0x2781af([0x61,0x6c,0x67])]:_0x2781af([0x45,0x53,0x32,0x35,0x36])},_0x56cf04=_0x1f17c7[_0x2781af([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2781af([0x67,0x65,0x74])](_0x2781af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x152753(){let _0x333060,_0x47d85f=null,_0x5b863b=null;try{if(_0x56cf04==_0x2781af([0x47,0x50,0x4c]))return _0x2781af([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x333060=_0x168b9a(),!_0x333060)return _0x2781af([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x333060[_0x2781af([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5b863b=_0x1bb64b(_0x333060[_0x2781af([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x333060[_0x2781af([0x6a,0x74,0x69])])),await _0x32a4ee()?_0x1b34c9()?_0x53da4a()?_0x2781af([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x46ab35()?(_0x333060[_0x2781af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2781af([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x47d85f=_0x4d21db(_0x2781af([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c2a35()):_0x2781af([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2781af([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2781af([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2781af([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x53da4a(){const _0x6246aa=[_0x2781af([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2781af([0x74,0x72,0x69,0x61,0x6c])][_0x2781af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x333060[_0x2781af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xe874da/0x3e8:0xe10*_0x14239b;return _0x333060[_0x2781af([0x65,0x78,0x70])]<_0x6246aa;}function _0x1b34c9(){const _0x59463c=_0x333060[_0x2781af([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x59463c&&(!!_0x59463c[_0x2781af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2781af([0x2a]))||!!_0x59463c[_0x2781af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2781af([0x55,0x50,0x4c,0x43])));}function _0x46ab35(){const _0x3310ef=_0x333060[_0x2781af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3310ef||0x0==_0x3310ef[_0x2781af([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4e7ca4}=new URL(window[_0x2781af([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3310ef[_0x2781af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e7ca4))return!0x0;const _0x5e3d68=_0x4e7ca4[_0x2781af([0x73,0x70,0x6c,0x69,0x74])](_0x2781af([0x2e]));return _0x3310ef[_0x2781af([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a1b47=>_0x1a1b47[_0x2781af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2781af([0x2a])))[_0x2781af([0x6d,0x61,0x70])](_0x19ede7=>_0x19ede7[_0x2781af([0x73,0x70,0x6c,0x69,0x74])](_0x2781af([0x2e])))[_0x2781af([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x51b524=>_0x51b524[_0x2781af([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5e3d68[_0x2781af([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2781af([0x6d,0x61,0x70])](_0x38a4ce=>Array(_0x5e3d68[_0x2781af([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x38a4ce[_0x2781af([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2781af([0x66,0x69,0x6c,0x6c])](_0x38a4ce[0x0]===_0x2781af([0x2a])?_0x2781af([0x2a]):'')[_0x2781af([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x38a4ce))[_0x2781af([0x73,0x6f,0x6d,0x65])](_0x157c92=>_0x5e3d68[_0x2781af([0x65,0x76,0x65,0x72,0x79])]((_0xfeaff8,_0x4214ad)=>_0x157c92[_0x4214ad]===_0xfeaff8||_0x157c92[_0x4214ad]===_0x2781af([0x2a])));}function _0x4c2a35(){return _0x47d85f&&_0x5b863b?new window[(_0x2781af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a6dea,_0x2630fb)=>{_0x47d85f[_0x2781af([0x74,0x68,0x65,0x6e])](_0x2a6dea,_0x2630fb),_0x5b863b[_0x2781af([0x74,0x68,0x65,0x6e])](_0x5c82a0=>{_0x5c82a0!=_0x2781af([0x56,0x61,0x6c,0x69,0x64])&&_0x2a6dea(_0x5c82a0);},_0x2630fb);}):_0x47d85f||_0x5b863b||_0x2781af([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1bb64b(_0x4b64c4,_0x5442fb){return new window[(_0x2781af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23fe7c=>{if(_0x1307e9())return _0x23fe7c(_0x2781af([0x56,0x61,0x6c,0x69,0x64]));_0x3043e9(),_0x1f17c7[_0x2781af([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2781af([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2a6ba2=!0x1;const _0x289dbe=_0x2a9b8d();function _0x269a48(_0x2b6cec){return!!_0x2b6cec&&(typeof _0x2b6cec===_0x2781af([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2b6cec===_0x2781af([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2b6cec[_0x2781af([0x74,0x68,0x65,0x6e])]===_0x2781af([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2b6cec[_0x2781af([0x63,0x61,0x74,0x63,0x68])]===_0x2781af([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x595572(_0x143d8b){_0x408a84(_0x143d8b)[_0x2781af([0x74,0x68,0x65,0x6e])](_0x4ba9d6=>{if(!_0x4ba9d6||_0x4ba9d6[_0x2781af([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2781af([0x6f,0x6b]))return _0x2781af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1056bf(_0x4cc6fe(_0x289dbe+_0x5442fb))!=_0x4ba9d6[_0x2781af([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2781af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2781af([0x56,0x61,0x6c,0x69,0x64]);})[_0x2781af([0x74,0x68,0x65,0x6e])](_0x47c9d6=>(_0x426a4c(),_0x47c9d6),()=>{const _0x349e0c=_0x149351();return null==_0x349e0c?(_0x426a4c(),_0x2781af([0x56,0x61,0x6c,0x69,0x64])):_0x2781af(_0xe874da-_0x349e0c>(0x7753083a^_0x1027ef)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2781af([0x74,0x68,0x65,0x6e])](_0x23fe7c)[_0x2781af([0x63,0x61,0x74,0x63,0x68])](()=>{_0x23fe7c(_0x2781af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1af351=0x536962ba^_0x1027ef;function _0x426a4c(){const _0x216eda=_0x2781af([0x6c,0x6c,0x63,0x74,0x2d])+_0x1056bf(_0x4cc6fe(_0x4b64c4)),_0x207b7a=_0x3791ec(_0x1056bf(window[_0x2781af([0x4d,0x61,0x74,0x68])][_0x2781af([0x63,0x65,0x69,0x6c])](_0xe874da/_0x1af351)));window[_0x2781af([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2781af([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x216eda,_0x207b7a);}function _0x149351(){const _0x3c7cc5=_0x2781af([0x6c,0x6c,0x63,0x74,0x2d])+_0x1056bf(_0x4cc6fe(_0x4b64c4)),_0x28bc33=window[_0x2781af([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2781af([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c7cc5);return _0x28bc33?window[_0x2781af([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3791ec(_0x28bc33),0x10)*_0x1af351:null;}function _0x408a84(_0x1cdee1){return new window[(_0x2781af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1205d4,_0xc19361)=>{_0x1cdee1[_0x2781af([0x74,0x68,0x65,0x6e])](_0x1205d4,_0xc19361),window[_0x2781af([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc19361,0x535e58fa^_0x1027ef);});}}_0x1f17c7[_0x2781af([0x6f,0x6e])](_0x2781af([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1b5ee5,_0x1b2dd9)=>{if(_0x1b2dd9[0x0]!=_0x4b64c4)return _0x23fe7c(_0x2781af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1b2dd9[0x1]={..._0x1b2dd9[0x1],[_0x2781af([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x289dbe};},{[_0x2781af([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2781af([0x68,0x69,0x67,0x68])}),_0x1f17c7[_0x2781af([0x6f,0x6e])](_0x2781af([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1f82d4=>{_0x269a48(_0x1f82d4[_0x2781af([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2a6ba2=!0x0,_0x595572(_0x1f82d4[_0x2781af([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2781af([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2781af([0x6c,0x6f,0x77])}),_0x31e215[_0x2781af([0x74,0x68,0x65,0x6e])](()=>{_0x2a6ba2||_0x23fe7c(_0x2781af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1307e9(){return _0x1f17c7[_0x2781af([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2781af([0x76,0x69,0x65,0x77])][_0x2781af([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2781af([0x61,0x75,0x74,0x6f]);}function _0x3043e9(){_0x1f17c7[_0x2781af([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2781af([0x76,0x69,0x65,0x77])][_0x2781af([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2781af([0x61,0x75,0x74,0x6f]);}}function _0x4d21db(_0x292b18){const _0x15f721=[new window[(_0x2781af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb722b0=>setTimeout(_0xb722b0,0x5356b2f6^_0x1027ef)),_0x31e215[_0x2781af([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2781af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36b886=>{let _0x789c3e=0x0;_0x1f17c7[_0x2781af([0x6d,0x6f,0x64,0x65,0x6c])][_0x2781af([0x6f,0x6e])](_0x2781af([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4c70b5,_0x1921e5)=>{_0x1921e5[0x0][_0x2781af([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x789c3e++,_0x789c3e==(0x535f89d2^_0x1027ef)&&(_0x36b886(),_0x4c70b5[_0x2781af([0x6f,0x66,0x66])]());});}))];return window[_0x2781af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2781af([0x72,0x61,0x63,0x65])](_0x15f721)[_0x2781af([0x74,0x68,0x65,0x6e])](()=>_0x292b18);}async function _0x5e91ec(){await _0x31e215,_0x1f17c7[_0x2781af([0x6d,0x6f,0x64,0x65,0x6c])][_0x2781af([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x480202,_0x1f17c7[_0x2781af([0x6d,0x6f,0x64,0x65,0x6c])][_0x2781af([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x480202,_0x1f17c7[_0x2781af([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2781af([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x599a55(_0x1eaea9){const _0x28959f=_0x1ce065();_0x1f17c7[_0x28959f]=_0x2781af([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1eaea9,_0x1eaea9!=_0x2781af([0x56,0x61,0x6c,0x69,0x64])&&_0x5e91ec();}function _0x1ce065(){const _0x501db2=window[_0x2781af([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2781af([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2781af([0x6e,0x6f,0x77])]())[_0x2781af([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2781af([0x2e]),'');let _0x25aab7=_0x2781af([0x68]);for(let _0x154187=0x0;_0x154187<_0x501db2[_0x2781af([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x154187+=0x2){let _0x325133=window[_0x2781af([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x501db2[_0x2781af([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x154187,_0x154187+0x2));_0x325133>=_0x2315c5[_0x2781af([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x325133-=_0x2315c5[_0x2781af([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x25aab7+=_0x2315c5[_0x325133];}return _0x25aab7;}function _0x168b9a(){const _0x3f3198=_0x56cf04[_0x2781af([0x73,0x70,0x6c,0x69,0x74])](_0x2781af([0x2e]));if(0x3!=_0x3f3198[_0x2781af([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4d754e(_0x3f3198[0x1]);function _0x4d754e(_0x103049){const _0x52558c=_0x600e83(_0x103049);return _0x52558c&&_0x167f35()?_0x52558c:null;function _0x167f35(){const _0x154449=_0x52558c[_0x2781af([0x6a,0x74,0x69])],_0x4bdc88=window[_0x2781af([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x154449[_0x2781af([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x154449[_0x2781af([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x44b5ae={..._0x52558c,[_0x2781af([0x6a,0x74,0x69])]:_0x154449[_0x2781af([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x154449[_0x2781af([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x44b5ae[_0x2781af([0x76,0x63])],_0x4cc6fe(_0x44b5ae)==_0x4bdc88;}}}async function _0x32a4ee(){let _0x1ecc74=!0x0;try{const _0x16910d=_0x56cf04[_0x2781af([0x73,0x70,0x6c,0x69,0x74])](_0x2781af([0x2e])),[_0x1f45a9,_0x149c70,_0x3407f6]=_0x16910d;return _0x182dae(_0x1f45a9),await _0x481e65(_0x1f45a9,_0x149c70,_0x3407f6),_0x1ecc74;}catch{return!0x1;}function _0x182dae(_0xc0b0a1){const _0x2771ca=_0x600e83(_0xc0b0a1);_0x2771ca&&_0x2771ca[_0x2781af([0x61,0x6c,0x67])]==_0x2781af([0x45,0x53,0x32,0x35,0x36])||(_0x1ecc74=!0x1);}async function _0x481e65(_0x52d6ae,_0x53227b,_0x32106a){const _0x4254be=window[_0x2781af([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2781af([0x66,0x72,0x6f,0x6d])](_0x188981(_0x32106a),_0x38a560=>_0x38a560[_0x2781af([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5279b1=new window[(_0x2781af([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2781af([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x52d6ae+_0x2781af([0x2e])+_0x53227b),_0x54c576=window[_0x2781af([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2781af([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x54c576)return;const _0x318b59=await _0x54c576[_0x2781af([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2781af([0x6a,0x77,0x6b]),_0x5bfaf8,{[_0x2781af([0x6e,0x61,0x6d,0x65])]:_0x2781af([0x45,0x43,0x44,0x53,0x41]),[_0x2781af([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2781af([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2781af([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x54c576[_0x2781af([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2781af([0x6e,0x61,0x6d,0x65])]:_0x2781af([0x45,0x43,0x44,0x53,0x41]),[_0x2781af([0x68,0x61,0x73,0x68])]:{[_0x2781af([0x6e,0x61,0x6d,0x65])]:_0x2781af([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x318b59,_0x4254be,_0x5279b1)||(_0x1ecc74=!0x1);}}function _0x600e83(_0x29ffc1){return _0x29ffc1[_0x2781af([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2781af([0x65,0x79]))?JSON[_0x2781af([0x70,0x61,0x72,0x73,0x65])](_0x188981(_0x29ffc1)):null;}function _0x188981(_0x48eec5){return window[_0x2781af([0x61,0x74,0x6f,0x62])](_0x48eec5[_0x2781af([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2781af([0x2b]))[_0x2781af([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2781af([0x2f])));}function _0x4cc6fe(_0x1946b4){let _0x2d8928=0x1505;function _0x52a56f(_0x3f3336){for(let _0x3be4b9=0x0;_0x3be4b9<_0x3f3336[_0x2781af([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3be4b9++){const _0x13ec26=_0x3f3336[_0x2781af([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3be4b9);_0x2d8928=(_0x2d8928<<0x5)+_0x2d8928+_0x13ec26,_0x2d8928&=_0x2d8928;}}function _0x4be1af(_0x2bb282){Array[_0x2781af([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2bb282)?_0x2bb282[_0x2781af([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4be1af):_0x2bb282&&typeof _0x2bb282==_0x2781af([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2781af([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2bb282)[_0x2781af([0x73,0x6f,0x72,0x74])]()[_0x2781af([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x37c3a3,_0x5f3add])=>{_0x52a56f(_0x37c3a3),_0x4be1af(_0x5f3add);}):_0x52a56f(window[_0x2781af([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2bb282));}return _0x4be1af(_0x1946b4),_0x2d8928>>>0x0;}function _0x1056bf(_0x158c6f){return _0x158c6f[_0x2781af([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2781af([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2781af([0x30]));}function _0x3791ec(_0x2ec90f){return _0x2ec90f[_0x2781af([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2781af([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2781af([0x6a,0x6f,0x69,0x6e])]('');}function _0x480202(){}function _0x2781af(_0x1abc22){return _0x1abc22['map'](_0x2a3c6f=>String['fromCharCode'](_0x2a3c6f))['join']('');}_0x599a55(await _0x152753());}(this);}['_initSchema'](){const _0x54ade9=this['editor']['model']['schema'];_0x54ade9['isRegistered']('imageBlock')&&_0x54ade9['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x54ade9['isRegistered']('imageInline')&&_0x54ade9['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5268d0=this['editor'];_0x5268d0['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5268d0['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3befed=>_0x3befed['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x74ba2d=_0x5268d0['commands']['get']('replaceImageSource');_0x74ba2d&&this['listenTo'](_0x74ba2d,'cleanupImage',(_0x287386,[_0x11ca4a,_0x38ac30])=>{_0x11ca4a['removeAttribute']('uploadcareImageId',_0x38ac30);});}['_initConfig'](){const _0x589df1=this['editor']['config']['get']('uploadcare.uploader')||{},_0x126197=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x184083(_0x1312d8['document'],'uc-config',{..._0x589df1,'pubkey':_0x126197,'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']=_0x4b382f=>{if('closeMax'==_0x4b382f)return'#uc-icon-arrow-down';},_0x1312d8['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x184083(_0x1312d8['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1312d8['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xa32dc4=this['editor']['commands']['get']('insertImage');_0xa32dc4&&this['listenTo'](_0xa32dc4,'execute',()=>{const _0x1c907e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1c907e&&_0x1c907e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1c907e);});});const _0x222797=this['editor']['commands']['get']('uploadcareImageReplace');_0x222797&&this['listenTo'](_0x222797,'execute',()=>{const _0x328fbb=this['editor']['model']['document']['selection']['getSelectedElement']();_0x328fbb&&_0x328fbb['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x328fbb);});});}}class tt extends _0x27fa93{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5f7a9e){super(_0x5f7a9e),_0x5f7a9e['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x226517['defineComponents'](_0x226517),this['_defineLocale']();}['_defineLocale'](){const _0x263777=this['editor']['config']['get']('uploadcare.locale'),_0x5cc815=this['editor']['locale']['contentLanguage'];_0x263777&&_0x226517['defineLocale'](_0x5cc815,_0x263777);}}class ii extends _0xb4225f{constructor(_0x12a443){super(_0x12a443);const t=_0x12a443['t'],_0x11cb11=this['bindTemplate'],_0x340ca0=new _0x1d0767();_0x340ca0['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':[_0x340ca0,{'text':_0x11cb11['to']('imageUploadProgress',_0x2650a2=>t('Loading\x20image...')+'\x20('+(_0x2650a2||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 _0xb4225f{constructor(_0x5b96b4){super(_0x5b96b4);const t=_0x5b96b4['t'];this['set']('errorType',null);const _0x41773e=new _0x43235(_0x5b96b4);_0x41773e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x41773e['withText']=!0x0,_0x41773e['class']='ck-button-action',_0x41773e['on']('execute',()=>{this['fire']('retry');}),_0x41773e['bind']('isVisible')['to'](this,'errorType',_0x1e9b58=>'NotFound'!==_0x1e9b58);const _0xb28e3f=new _0x484228();_0xb28e3f['content']=_0x2e5b40,_0xb28e3f['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x25b491=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':[_0xb28e3f,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x25b491['to']('errorType',_0x4a60b3=>t('NotFound'!==_0x4a60b3?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x41773e]},{'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 _0xb4225f{constructor(_0x538acc,_0x2250e4){super(_0x538acc);const _0x3380c8=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2250e4,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3380c8['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5c8a8b,_0x45353d,_0x4078ba){super(_0x5c8a8b),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x5c8a8b),this['_errorView']=new ti(_0x5c8a8b),this['_editingView']=new ei(_0x5c8a8b,_0x4078ba),this['_focusableView']=new _0xb4225f(_0x5c8a8b),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x45353d),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'],_0x3cd74a=>{this['_addUploadcareImageEditorListeners'](_0x3cd74a);});}),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'](_0x1b2bc6,_0x3a37e8){const _0xc9406b='uc-cloud-image-editor',_0x2e4087=_0x1b2bc6['querySelector'](_0xc9406b);if(_0x2e4087)return _0x3a37e8(_0x2e4087);const _0x587005=new MutationObserver(_0xe4d7bd=>{const _0x578c19=_0xe4d7bd['filter'](_0xf8e1bb=>_0xf8e1bb['target']===_0x1b2bc6&&_0xf8e1bb['addedNodes']['length']>0x0&&_0xf8e1bb['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xc9406b);_0x578c19['length']&&(_0x587005['disconnect'](),_0x3a37e8(_0x578c19[0x0]['addedNodes'][0x0]));});_0x587005['observe'](_0x1b2bc6,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xb2f2bc){_0xb2f2bc['addEventListener']('apply',_0x55c6d4=>{this['fire']('apply',{'imageSrc':_0x55c6d4['detail']['cdnUrl']});}),_0xb2f2bc['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x523aa2(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x39c0c4,_0x4c1004,_0x3d67f0){super(),this['_editor']=_0x39c0c4,this['_dialog']=_0x4c1004,this['_imageElement']=_0x3d67f0,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 _0x370bbf=this['_imageElement'],_0x14325b=_0x370bbf['getAttribute']('uploadcareImageId'),_0x1e83b3=_0x370bbf['getAttribute']('src');if(_0x14325b)await this['_loadImageInfo'](_0x14325b,_0x1e83b3);else{if(this['_imageCache']['has'](_0x1e83b3)){const _0x43d992=this['_imageCache']['get'](_0x1e83b3);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x43d992['url'],this['imageDimension']=_0x43d992['dimension'],this['imageId']=_0x43d992['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2493b9}=this['_editor'],t=_0x2493b9['t'],_0x5bfaa5=new X(_0x2493b9,this['imageStatus'],this['_attributes']);_0x5bfaa5['bind']('status')['to'](this,'imageStatus'),_0x5bfaa5['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5bfaa5['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5bfaa5['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5bfaa5,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xb51fd6,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5bfaa5,'position':_0x40af34['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5bfaa5['focus']();},'onHide':()=>{_0x5bfaa5['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x310219=>!A(_0x310219,_0x5bfaa5['element'])}});}['_loadImageInfo'](_0x235e33,_0x13c904){return j['getInfo'](_0x235e33,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1404fa=>{const {width:_0x5ced09,height:_0x74f422}=_0x1404fa['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x13c904,this['imageDimension']={'width':_0x5ced09,'height':_0x74f422},this['imageId']=_0x235e33;})['catch'](_0x4b7d50=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4b7d50['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xf37a0d,_0xa1ec98){return this['_getImageAsFile'](_0xf37a0d)['then'](_0x2b82e6=>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':_0xa1ec98['signal'],'file':_0x2b82e6,'onProgress':_0x212152=>{_0x212152&&_0x212152['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x212152['value']));}}))['then'](_0x14a6bf=>{const {width:_0xd9034a,height:_0x5132e4}=_0x14a6bf['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x14a6bf['cdnUrl'],this['imageDimension']={'width':_0xd9034a,'height':_0x5132e4},this['imageId']=_0x14a6bf['uuid'],this['imageUploadProgress']=null;const _0x3bd727=_0xf37a0d['getAttribute']('src');this['_imageCache']['set'](_0x3bd727,{'id':_0x14a6bf['uuid'],'url':_0x14a6bf['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4b78ca=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4b78ca['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2fe830,_0x2d976b){_0x2fe830['on']('apply',(_0x3b1b4e,_0xbe63b2)=>{this['_replaceImage'](_0x2d976b,_0xbe63b2['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2fe830['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2fe830['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x100edf,_0x55a1dd,_0x1cb513){const _0x1716f3=this['_editor'],{width:_0x2ec63c,height:_0x2031e8}=S(_0x55a1dd,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x71361d,imageSources:_0x569b33}=C(_0x55a1dd,_0x2ec63c);_0x1716f3['model']['change'](_0xdfecd1=>{if('$graveyard'===_0x100edf['root']['rootName']){_0x1716f3['execute']('insertImage',{'imageType':_0x100edf['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x100edf['getAttributes']()),'uploadcareImageId':_0x1cb513,'src':_0x71361d,'sources':_0x569b33,'width':_0x2ec63c,'height':_0x2031e8}});const _0x112427=_0x100edf['getChildren']();_0x100edf=_0x1716f3['model']['document']['selection']['getSelectedElement']();for(const _0x200476 of _0x112427)_0xdfecd1['append'](_0xdfecd1['cloneElement'](_0x200476),_0x100edf);}else _0xdfecd1['setSelection'](_0x100edf,'on'),_0x1716f3['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x100edf['getAttributes']()),'uploadcareImageId':_0x1cb513,'src':_0x71361d,'sources':_0x569b33,'width':_0x2ec63c,'height':_0x2031e8},_0x100edf);_0xdfecd1['setSelection'](_0x100edf,'on');});}async['_getImageAsFile'](_0x23aa83){const _0x27d354=_0x1312d8['window'],_0x485933=_0x1312d8['document']['location']['href'],_0x436427=new _0x27d354['URL'](_0x23aa83['getAttribute']('src'),_0x485933);if('data:'===_0x436427['protocol']){const _0x316cf3=_0x436427['href']['split'](','),_0x372426=_0x316cf3[0x0]['match'](/:(.*?);/)[0x1],_0x589e21=_0x372426['split']('/')[0x1],_0x2f479d=_0x27d354['atob'](_0x316cf3[_0x316cf3['length']-0x1]);let _0x404362=_0x2f479d['length'];const _0x5a499f=new _0x27d354['Uint8Array'](_0x404362);for(;_0x404362--;)_0x5a499f[_0x404362]=_0x2f479d['charCodeAt'](_0x404362);return new _0x27d354['File']([_0x5a499f],'image.'+_0x589e21,{'type':_0x372426});}const _0x5e3368=_0x436427['href']['split']('/'),_0x4dd84f=_0x5e3368[_0x5e3368['length']-0x1],_0xa690f5=_0x4dd84f['split']('.')[0x1];return _0x27d354['fetch'](_0x436427['href'])['then'](_0x4b5a18=>_0x4b5a18['clone']()['blob']())['then'](_0x4672f6=>new _0x27d354['File']([_0x4672f6],_0x4dd84f,{'type':'image/'+_0xa690f5}));}}class O extends _0x45278d{['imageEditController'];static get['requires'](){return[_0x3c0f0f];}['_isEditable'];constructor(_0x5e3e41){super(_0x5e3e41),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x182a25){const _0x9b1287=G(_0x182a25);return _0x8e1a78=>!(!_0x8e1a78||!_0x8e1a78['is']('element','imageBlock')&&!_0x8e1a78['is']('element','imageInline'))&&(!!_0x8e1a78['hasAttribute']('uploadcareImageId')||!!_0x8e1a78['hasAttribute']('src')&&_0x9b1287(_0x8e1a78['getAttribute']('src')));}(_0x5e3e41['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x163376=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x163376);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x16470b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x16470b&&(_0x16470b['is']('element','imageBlock')||_0x16470b['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x3c0f0f),_0x16470b),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x45278d{['refresh'](){const _0x2c34f6=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2c34f6&&(_0x2c34f6['is']('element','imageBlock')||_0x2c34f6['is']('element','imageInline')));}['execute'](_0x3d94e6){const _0x1ff71e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x52febd=>{_0x52febd['setAttributes'](_0x3d94e6,_0x1ff71e),_0x52febd['removeAttribute']('srcset',_0x1ff71e),_0x52febd['removeAttribute']('sizes',_0x1ff71e);});}}class m extends _0x27fa93{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x5c2864,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xde65bd}=this;_0xde65bd['commands']['add']('uploadcareImageEdit',new O(_0xde65bd)),_0xde65bd['commands']['add']('uploadcareImageReplace',new R(_0xde65bd));}}class g extends _0x27fa93{['_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 _0x36cb6b=this['editor'];_0x36cb6b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4ebee0=>{const _0x408700=_0x36cb6b['commands']['get']('uploadcareImageEdit'),_0x20e549=new _0x43235(_0x4ebee0),t=_0x4ebee0['t'];return _0x20e549['set']({'icon':_0xb51fd6,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x20e549['bind']('isEnabled')['to'](_0x408700),_0x20e549['bind']('isOn')['to'](_0x408700,'isActive'),this['listenTo'](_0x20e549,'execute',()=>{_0x36cb6b['execute']('uploadcareImageEdit'),_0x36cb6b['editing']['view']['focus']();}),_0x20e549;}),this['_initConfig']();}['_initConfig'](){const _0x507539=_0x184083(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x507539),this['listenTo'](this['editor'],'destroy',()=>{_0x507539['remove']();});}}class et extends _0x27fa93{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/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-20260125.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-20260125.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20260125.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20260125.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20260125.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20260125.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20260125.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20260125.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20260125.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.24.5",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.3"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x2078(_0x4aaee1,_0x36c503){const _0x553653=_0x5536();return _0x2078=function(_0x207825,_0x8a4003){_0x207825=_0x207825-0x12f;let _0x3de4af=_0x553653[_0x207825];return _0x3de4af;},_0x2078(_0x4aaee1,_0x36c503);}const _0x324f42=_0x2078;(function(_0x48897,_0x106753){const _0x46b480=_0x2078,_0x154190=_0x48897();while(!![]){try{const _0x28ccce=parseInt(_0x46b480(0x153))/0x1+-parseInt(_0x46b480(0x172))/0x2+parseInt(_0x46b480(0x166))/0x3+-parseInt(_0x46b480(0x137))/0x4+-parseInt(_0x46b480(0x15c))/0x5*(-parseInt(_0x46b480(0x162))/0x6)+parseInt(_0x46b480(0x13b))/0x7+-parseInt(_0x46b480(0x12f))/0x8;if(_0x28ccce===_0x106753)break;else _0x154190['push'](_0x154190['shift']());}catch(_0x2e1f53){_0x154190['push'](_0x154190['shift']());}}}(_0x5536,0x41b01));import{Plugin as _0x8f194b}from'ckeditor5/src/core.js';import{Dialog as _0x511e94}from'ckeditor5/src/ui.js';import{createElement as _0x3b161b,global as _0x2b799c,uid as _0x15a5e9}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4231d6}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x484204}from'./uploadcareuploadadapter.js';function _0x5536(){const _0x53bdfc=['\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','listenTo','_initSchema','UploadcareEditing','uploadcare.uploader','join','uc-upload-ctx-provider','map','destroy','uploadcare','removeAttribute','ctxElement','schema','_initConversion','configElement','4477584nSDTOa','fromCharCode','closeMax','_ctxElement','imageInline','locale','contentLanguage','for','1183768jIjxMd','remove','_configElement','editor','2857302YPNxTZ','isOfficialPlugin','getSelectedElement','cleanupImage','appendChild','uploader-','afterInit','config','insertImage','uploadcare.pubkey','view','model','commands','#uc-icon-arrow-down','attributeToAttribute','_initCtx','ucContextId','get','_initImageProcessingIndicator','pluginName','data-uc-image-id','upcast','iconHrefResolver','conversion','188488wNYirn','isPremiumPlugin','init','getAttribute','uc-config','requires','extend','render','imageBlock','50115UNPqKC','replaceImageSource','_initConfig','input[uploadcare-file-input]','execute','selection','12kMGgoF','querySelector','PictureEditing','editing','1602342fRzgFu','once','document','isRegistered','uploadcareImageReplace','uploadcareImageId','true','elementToAttribute','add','downcast','href','body','52274UDLjuf'];_0x5536=function(){return _0x53bdfc;};return _0x5536();}import{showImageProcessingIndicator as _0x6312f9}from'./utils/editingutils.js';export class UploadcareEditing extends _0x8f194b{[_0x324f42(0x139)]=null;[_0x324f42(0x132)]=null;static get[_0x324f42(0x14e)](){const _0x1388d8=_0x324f42;return _0x1388d8(0x176);}static get[_0x324f42(0x158)](){const _0x4d2736=_0x324f42;return[_0x4d2736(0x164),_0x484204,_0x511e94];}static get[_0x324f42(0x13c)](){return!0x0;}static get[_0x324f42(0x154)](){return!0x0;}[_0x324f42(0x14b)];get[_0x324f42(0x181)](){const _0x3220e5=_0x324f42;return this[_0x3220e5(0x139)];}get[_0x324f42(0x17e)](){const _0xdf29dd=_0x324f42;return this[_0xdf29dd(0x132)];}constructor(_0x592624){const _0xc27b91=_0x324f42;super(_0x592624),this[_0xc27b91(0x14b)]=_0x15a5e9();}[_0x324f42(0x155)](){const _0x2525ac=_0x324f42,_0x5a3a18=this[_0x2525ac(0x13a)];_0x5a3a18[_0x2525ac(0x147)][_0x2525ac(0x16e)](_0x2525ac(0x17c),new _0x4231d6(_0x5a3a18));}[_0x324f42(0x141)](){const _0x2d1b3a=_0x324f42;this[_0x2d1b3a(0x175)](),this[_0x2d1b3a(0x180)](),this[_0x2d1b3a(0x15e)](),this[_0x2d1b3a(0x14a)](),this[_0x2d1b3a(0x14d)](),this[_0x2d1b3a(0x174)](this[_0x2d1b3a(0x13a)],_0x2d1b3a(0x17b),()=>{const _0x4f8ba2=_0x2d1b3a;this[_0x4f8ba2(0x139)]&&(this[_0x4f8ba2(0x139)][_0x4f8ba2(0x138)](),this[_0x4f8ba2(0x139)]=null),this[_0x4f8ba2(0x132)]&&(this[_0x4f8ba2(0x132)][_0x4f8ba2(0x138)](),this[_0x4f8ba2(0x132)]=null);const _0xa5f218=_0x2b799c[_0x4f8ba2(0x168)][_0x4f8ba2(0x163)](_0x4f8ba2(0x15f));_0xa5f218&&_0xa5f218[_0x4f8ba2(0x138)]();}),async function(_0x15d194){const _0x4e7bf8=_0x23d65b([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]),_0x1ce12b=0x535f8c3a,_0x26b44e=0x5358f382^_0x1ce12b,_0x7a407f=window[_0x23d65b([0x44,0x61,0x74,0x65])][_0x23d65b([0x6e,0x6f,0x77])](),_0x8f8bc3=_0x15d194[_0x23d65b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x18947e=new window[(_0x23d65b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51bfd8=>{_0x8f8bc3[_0x23d65b([0x6f,0x6e,0x63,0x65])](_0x23d65b([0x72,0x65,0x61,0x64,0x79]),_0x51bfd8);}),_0x536ffd={[_0x23d65b([0x6b,0x74,0x79])]:_0x23d65b([0x45,0x43]),[_0x23d65b([0x75,0x73,0x65])]:_0x23d65b([0x73,0x69,0x67]),[_0x23d65b([0x63,0x72,0x76])]:_0x23d65b([0x50,0x2d,0x32,0x35,0x36]),[_0x23d65b([0x78])]:_0x23d65b([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]),[_0x23d65b([0x79])]:_0x23d65b([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]),[_0x23d65b([0x61,0x6c,0x67])]:_0x23d65b([0x45,0x53,0x32,0x35,0x36])},_0x11ad5f=_0x8f8bc3[_0x23d65b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x23d65b([0x67,0x65,0x74])](_0x23d65b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x374a9b(){let _0x29355a,_0x4fc087=null,_0x576360=null;try{if(_0x11ad5f==_0x23d65b([0x47,0x50,0x4c]))return _0x23d65b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x29355a=_0x406ae6(),!_0x29355a)return _0x23d65b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x29355a[_0x23d65b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x576360=_0x49c079(_0x29355a[_0x23d65b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x29355a[_0x23d65b([0x6a,0x74,0x69])])),await _0xcde533()?_0x7c70cf()?_0x140d89()?_0x23d65b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x327116()?(_0x29355a[_0x23d65b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x23d65b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4fc087=_0x29f86f(_0x23d65b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x48f107()):_0x23d65b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x23d65b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x23d65b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x23d65b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x140d89(){const _0x4b1043=[_0x23d65b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x23d65b([0x74,0x72,0x69,0x61,0x6c])][_0x23d65b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29355a[_0x23d65b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x7a407f/0x3e8:0xe10*_0x26b44e;return _0x29355a[_0x23d65b([0x65,0x78,0x70])]<_0x4b1043;}function _0x7c70cf(){const _0x473338=_0x29355a[_0x23d65b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x473338&&(!!_0x473338[_0x23d65b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23d65b([0x2a]))||!!_0x473338[_0x23d65b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23d65b([0x55,0x50,0x4c,0x43])));}function _0x327116(){const _0x31aec8=_0x2078,_0x2c6ec7=_0x29355a[_0x23d65b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2c6ec7||0x0==_0x2c6ec7[_0x23d65b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2b9ba8}=new URL(window[_0x23d65b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x31aec8(0x170)]);if(_0x2c6ec7[_0x23d65b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b9ba8))return!0x0;const _0x39cc8f=_0x2b9ba8[_0x23d65b([0x73,0x70,0x6c,0x69,0x74])](_0x23d65b([0x2e]));return _0x2c6ec7[_0x23d65b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x89825b=>_0x89825b[_0x23d65b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23d65b([0x2a])))[_0x23d65b([0x6d,0x61,0x70])](_0x53d15e=>_0x53d15e[_0x23d65b([0x73,0x70,0x6c,0x69,0x74])](_0x23d65b([0x2e])))[_0x23d65b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x28808f=>_0x28808f[_0x23d65b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x39cc8f[_0x23d65b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23d65b([0x6d,0x61,0x70])](_0x47597a=>Array(_0x39cc8f[_0x23d65b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x47597a[_0x23d65b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23d65b([0x66,0x69,0x6c,0x6c])](_0x47597a[0x0]===_0x23d65b([0x2a])?_0x23d65b([0x2a]):'')[_0x23d65b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x47597a))[_0x23d65b([0x73,0x6f,0x6d,0x65])](_0x12fc7d=>_0x39cc8f[_0x23d65b([0x65,0x76,0x65,0x72,0x79])]((_0x4b9344,_0x1fc334)=>_0x12fc7d[_0x1fc334]===_0x4b9344||_0x12fc7d[_0x1fc334]===_0x23d65b([0x2a])));}function _0x48f107(){return _0x4fc087&&_0x576360?new window[(_0x23d65b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c78e3,_0x322ef2)=>{_0x4fc087[_0x23d65b([0x74,0x68,0x65,0x6e])](_0x5c78e3,_0x322ef2),_0x576360[_0x23d65b([0x74,0x68,0x65,0x6e])](_0x26d5b8=>{_0x26d5b8!=_0x23d65b([0x56,0x61,0x6c,0x69,0x64])&&_0x5c78e3(_0x26d5b8);},_0x322ef2);}):_0x4fc087||_0x576360||_0x23d65b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x49c079(_0x3f659b,_0x5a7310){return new window[(_0x23d65b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x380043=>{if(_0x31ffd8())return _0x380043(_0x23d65b([0x56,0x61,0x6c,0x69,0x64]));_0x2c515f(),_0x8f8bc3[_0x23d65b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x23d65b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x35364f=!0x1;const _0x44d73d=_0x15a5e9();function _0x1c7df3(_0x12f260){return!!_0x12f260&&(typeof _0x12f260===_0x23d65b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x12f260===_0x23d65b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x12f260[_0x23d65b([0x74,0x68,0x65,0x6e])]===_0x23d65b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x12f260[_0x23d65b([0x63,0x61,0x74,0x63,0x68])]===_0x23d65b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xdc6dc1(_0x1fe4df){_0x92e82d(_0x1fe4df)[_0x23d65b([0x74,0x68,0x65,0x6e])](_0x2ec2f1=>{if(!_0x2ec2f1||_0x2ec2f1[_0x23d65b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x23d65b([0x6f,0x6b]))return _0x23d65b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x6c5e81(_0x5af770(_0x44d73d+_0x5a7310))!=_0x2ec2f1[_0x23d65b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x23d65b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x23d65b([0x56,0x61,0x6c,0x69,0x64]);})[_0x23d65b([0x74,0x68,0x65,0x6e])](_0x4a434f=>(_0x40b147(),_0x4a434f),()=>{const _0x115064=_0x7a4b6f();return null==_0x115064?(_0x40b147(),_0x23d65b([0x56,0x61,0x6c,0x69,0x64])):_0x23d65b(_0x7a407f-_0x115064>(0x7753083a^_0x1ce12b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x23d65b([0x74,0x68,0x65,0x6e])](_0x380043)[_0x23d65b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x380043(_0x23d65b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x38f00b=0x536962ba^_0x1ce12b;function _0x40b147(){const _0x5ea9e5=_0x23d65b([0x6c,0x6c,0x63,0x74,0x2d])+_0x6c5e81(_0x5af770(_0x3f659b)),_0x3e0305=_0x30dec9(_0x6c5e81(window[_0x23d65b([0x4d,0x61,0x74,0x68])][_0x23d65b([0x63,0x65,0x69,0x6c])](_0x7a407f/_0x38f00b)));window[_0x23d65b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23d65b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ea9e5,_0x3e0305);}function _0x7a4b6f(){const _0x5b2bc7=_0x23d65b([0x6c,0x6c,0x63,0x74,0x2d])+_0x6c5e81(_0x5af770(_0x3f659b)),_0x4422de=window[_0x23d65b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23d65b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b2bc7);return _0x4422de?window[_0x23d65b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30dec9(_0x4422de),0x10)*_0x38f00b:null;}function _0x92e82d(_0x956265){return new window[(_0x23d65b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x265f85,_0x4a34cf)=>{_0x956265[_0x23d65b([0x74,0x68,0x65,0x6e])](_0x265f85,_0x4a34cf),window[_0x23d65b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4a34cf,0x535e58fa^_0x1ce12b);});}}_0x8f8bc3[_0x23d65b([0x6f,0x6e])](_0x23d65b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xca09f9,_0x89a7b7)=>{if(_0x89a7b7[0x0]!=_0x3f659b)return _0x380043(_0x23d65b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x89a7b7[0x1]={..._0x89a7b7[0x1],[_0x23d65b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x44d73d};},{[_0x23d65b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23d65b([0x68,0x69,0x67,0x68])}),_0x8f8bc3[_0x23d65b([0x6f,0x6e])](_0x23d65b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x33bfdd=>{_0x1c7df3(_0x33bfdd[_0x23d65b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x35364f=!0x0,_0xdc6dc1(_0x33bfdd[_0x23d65b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x23d65b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23d65b([0x6c,0x6f,0x77])}),_0x18947e[_0x23d65b([0x74,0x68,0x65,0x6e])](()=>{_0x35364f||_0x380043(_0x23d65b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x31ffd8(){return _0x8f8bc3[_0x23d65b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23d65b([0x76,0x69,0x65,0x77])][_0x23d65b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x23d65b([0x61,0x75,0x74,0x6f]);}function _0x2c515f(){_0x8f8bc3[_0x23d65b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23d65b([0x76,0x69,0x65,0x77])][_0x23d65b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x23d65b([0x61,0x75,0x74,0x6f]);}}function _0x29f86f(_0x18b35c){const _0x27d5ec=[new window[(_0x23d65b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44ab05=>setTimeout(_0x44ab05,0x5356b2f6^_0x1ce12b)),_0x18947e[_0x23d65b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x23d65b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4899c8=>{let _0x51342c=0x0;_0x8f8bc3[_0x23d65b([0x6d,0x6f,0x64,0x65,0x6c])][_0x23d65b([0x6f,0x6e])](_0x23d65b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x599a06,_0x52ee9b)=>{_0x52ee9b[0x0][_0x23d65b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x51342c++,_0x51342c==(0x535f89d2^_0x1ce12b)&&(_0x4899c8(),_0x599a06[_0x23d65b([0x6f,0x66,0x66])]());});}))];return window[_0x23d65b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x23d65b([0x72,0x61,0x63,0x65])](_0x27d5ec)[_0x23d65b([0x74,0x68,0x65,0x6e])](()=>_0x18b35c);}async function _0x68a2ca(){await _0x18947e,_0x8f8bc3[_0x23d65b([0x6d,0x6f,0x64,0x65,0x6c])][_0x23d65b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x555139,_0x8f8bc3[_0x23d65b([0x6d,0x6f,0x64,0x65,0x6c])][_0x23d65b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x555139,_0x8f8bc3[_0x23d65b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x23d65b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x355431(_0x2d1dad){const _0x516961=_0x2c8c66();_0x8f8bc3[_0x516961]=_0x23d65b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2d1dad,_0x2d1dad!=_0x23d65b([0x56,0x61,0x6c,0x69,0x64])&&_0x68a2ca();}function _0x2c8c66(){const _0x380dae=window[_0x23d65b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x23d65b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x23d65b([0x6e,0x6f,0x77])]())[_0x23d65b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x23d65b([0x2e]),'');let _0x259208=_0x23d65b([0x68]);for(let _0xcf44f3=0x0;_0xcf44f3<_0x380dae[_0x23d65b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xcf44f3+=0x2){let _0x4e8322=window[_0x23d65b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x380dae[_0x23d65b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xcf44f3,_0xcf44f3+0x2));_0x4e8322>=_0x4e7bf8[_0x23d65b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4e8322-=_0x4e7bf8[_0x23d65b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x259208+=_0x4e7bf8[_0x4e8322];}return _0x259208;}function _0x406ae6(){const _0x55ac58=_0x11ad5f[_0x23d65b([0x73,0x70,0x6c,0x69,0x74])](_0x23d65b([0x2e]));if(0x3!=_0x55ac58[_0x23d65b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x275469(_0x55ac58[0x1]);function _0x275469(_0x25b58e){const _0x26ce4f=_0x6acab3(_0x25b58e);return _0x26ce4f&&_0x2f79a3()?_0x26ce4f:null;function _0x2f79a3(){const _0x5caba2=_0x26ce4f[_0x23d65b([0x6a,0x74,0x69])],_0x292a12=window[_0x23d65b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5caba2[_0x23d65b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5caba2[_0x23d65b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x350caa={..._0x26ce4f,[_0x23d65b([0x6a,0x74,0x69])]:_0x5caba2[_0x23d65b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5caba2[_0x23d65b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x350caa[_0x23d65b([0x76,0x63])],_0x5af770(_0x350caa)==_0x292a12;}}}async function _0xcde533(){let _0x59baa6=!0x0;try{const _0x5c7b06=_0x11ad5f[_0x23d65b([0x73,0x70,0x6c,0x69,0x74])](_0x23d65b([0x2e])),[_0x9511e5,_0x1b79a3,_0x4c5401]=_0x5c7b06;return _0x4a43ff(_0x9511e5),await _0x52e370(_0x9511e5,_0x1b79a3,_0x4c5401),_0x59baa6;}catch{return!0x1;}function _0x4a43ff(_0x55c8df){const _0x31388d=_0x6acab3(_0x55c8df);_0x31388d&&_0x31388d[_0x23d65b([0x61,0x6c,0x67])]==_0x23d65b([0x45,0x53,0x32,0x35,0x36])||(_0x59baa6=!0x1);}async function _0x52e370(_0x54b489,_0x488d96,_0xc3b2fd){const _0x3bce57=window[_0x23d65b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x23d65b([0x66,0x72,0x6f,0x6d])](_0x3a4b73(_0xc3b2fd),_0x77f6cc=>_0x77f6cc[_0x23d65b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x8ab13e=new window[(_0x23d65b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x23d65b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x54b489+_0x23d65b([0x2e])+_0x488d96),_0x347797=window[_0x23d65b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x23d65b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x347797)return;const _0x43a3a1=await _0x347797[_0x23d65b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x23d65b([0x6a,0x77,0x6b]),_0x536ffd,{[_0x23d65b([0x6e,0x61,0x6d,0x65])]:_0x23d65b([0x45,0x43,0x44,0x53,0x41]),[_0x23d65b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x23d65b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x23d65b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x347797[_0x23d65b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x23d65b([0x6e,0x61,0x6d,0x65])]:_0x23d65b([0x45,0x43,0x44,0x53,0x41]),[_0x23d65b([0x68,0x61,0x73,0x68])]:{[_0x23d65b([0x6e,0x61,0x6d,0x65])]:_0x23d65b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x43a3a1,_0x3bce57,_0x8ab13e)||(_0x59baa6=!0x1);}}function _0x6acab3(_0x15999e){return _0x15999e[_0x23d65b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x23d65b([0x65,0x79]))?JSON[_0x23d65b([0x70,0x61,0x72,0x73,0x65])](_0x3a4b73(_0x15999e)):null;}function _0x3a4b73(_0x54ebc1){return window[_0x23d65b([0x61,0x74,0x6f,0x62])](_0x54ebc1[_0x23d65b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x23d65b([0x2b]))[_0x23d65b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x23d65b([0x2f])));}function _0x5af770(_0x3d247f){let _0x4f8c5b=0x1505;function _0x30e4fb(_0x18a13e){for(let _0x37d61d=0x0;_0x37d61d<_0x18a13e[_0x23d65b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x37d61d++){const _0x32d266=_0x18a13e[_0x23d65b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x37d61d);_0x4f8c5b=(_0x4f8c5b<<0x5)+_0x4f8c5b+_0x32d266,_0x4f8c5b&=_0x4f8c5b;}}function _0x5f446a(_0x42351e){Array[_0x23d65b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x42351e)?_0x42351e[_0x23d65b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5f446a):_0x42351e&&typeof _0x42351e==_0x23d65b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x23d65b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x42351e)[_0x23d65b([0x73,0x6f,0x72,0x74])]()[_0x23d65b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1d0295,_0x493f1b])=>{_0x30e4fb(_0x1d0295),_0x5f446a(_0x493f1b);}):_0x30e4fb(window[_0x23d65b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x42351e));}return _0x5f446a(_0x3d247f),_0x4f8c5b>>>0x0;}function _0x6c5e81(_0x7d6293){return _0x7d6293[_0x23d65b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x23d65b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x23d65b([0x30]));}function _0x30dec9(_0x218aa0){return _0x218aa0[_0x23d65b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x23d65b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x23d65b([0x6a,0x6f,0x69,0x6e])]('');}function _0x555139(){}function _0x23d65b(_0x3675ee){const _0x3d7f5f=_0x2078;return _0x3675ee[_0x3d7f5f(0x17a)](_0x261df0=>String[_0x3d7f5f(0x130)](_0x261df0))[_0x3d7f5f(0x178)]('');}_0x355431(await _0x374a9b());}(this);}[_0x324f42(0x175)](){const _0x582614=_0x324f42,_0x34cef5=this[_0x582614(0x13a)][_0x582614(0x146)][_0x582614(0x17f)];_0x34cef5[_0x582614(0x169)](_0x582614(0x15b))&&_0x34cef5[_0x582614(0x159)](_0x582614(0x15b),{'allowAttributes':[_0x582614(0x16b)]}),_0x34cef5[_0x582614(0x169)](_0x582614(0x133))&&_0x34cef5[_0x582614(0x159)](_0x582614(0x133),{'allowAttributes':[_0x582614(0x16b)]});}[_0x324f42(0x180)](){const _0x5241e5=_0x324f42,_0x103ad1=this[_0x5241e5(0x13a)];_0x103ad1[_0x5241e5(0x152)][_0x5241e5(0x136)](_0x5241e5(0x16f))[_0x5241e5(0x149)]({'model':_0x5241e5(0x16b),'view':_0x5241e5(0x14f)}),_0x103ad1[_0x5241e5(0x152)][_0x5241e5(0x136)](_0x5241e5(0x150))[_0x5241e5(0x16d)]({'model':{'key':_0x5241e5(0x16b),'value':_0x2c9944=>_0x2c9944[_0x5241e5(0x156)](_0x5241e5(0x14f))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4d3bad=_0x103ad1[_0x5241e5(0x147)][_0x5241e5(0x14c)](_0x5241e5(0x15d));_0x4d3bad&&this[_0x5241e5(0x174)](_0x4d3bad,_0x5241e5(0x13e),(_0x3c30d5,[_0xcddbfb,_0x1ae5f0])=>{const _0x255ed5=_0x5241e5;_0xcddbfb[_0x255ed5(0x17d)](_0x255ed5(0x16b),_0x1ae5f0);});}[_0x324f42(0x15e)](){const _0x36a09e=_0x324f42,_0x2ee6eb=this[_0x36a09e(0x13a)][_0x36a09e(0x142)][_0x36a09e(0x14c)](_0x36a09e(0x177))||{},_0x18fed1=this[_0x36a09e(0x13a)][_0x36a09e(0x142)][_0x36a09e(0x14c)](_0x36a09e(0x144))||'';this[_0x36a09e(0x139)]=_0x3b161b(_0x2b799c[_0x36a09e(0x168)],_0x36a09e(0x157),{..._0x2ee6eb,'pubkey':_0x18fed1,'ctx-name':_0x36a09e(0x140)+this[_0x36a09e(0x14b)],'sourceList':'','imgOnly':_0x36a09e(0x16c),'removeCopyright':_0x36a09e(0x16c),'localeName':this[_0x36a09e(0x13a)][_0x36a09e(0x134)][_0x36a09e(0x135)],'externalSourcesEmbedCss':_0x36a09e(0x173)}),this[_0x36a09e(0x139)][_0x36a09e(0x151)]=_0x39d85f=>{const _0x50289b=_0x36a09e;if(_0x50289b(0x131)==_0x39d85f)return _0x50289b(0x148);},_0x2b799c[_0x36a09e(0x168)][_0x36a09e(0x171)][_0x36a09e(0x13f)](this[_0x36a09e(0x139)]);}[_0x324f42(0x14a)](){const _0x278bd1=_0x324f42;this[_0x278bd1(0x132)]=_0x3b161b(_0x2b799c[_0x278bd1(0x168)],_0x278bd1(0x179),{'ctx-name':_0x278bd1(0x140)+this[_0x278bd1(0x14b)]}),_0x2b799c[_0x278bd1(0x168)][_0x278bd1(0x171)][_0x278bd1(0x13f)](this[_0x278bd1(0x132)]);}[_0x324f42(0x14d)](){const _0x167f07=_0x324f42,_0x44e6c1=this[_0x167f07(0x13a)][_0x167f07(0x147)][_0x167f07(0x14c)](_0x167f07(0x143));_0x44e6c1&&this[_0x167f07(0x174)](_0x44e6c1,_0x167f07(0x160),()=>{const _0x31d8df=_0x167f07,_0x59de13=this[_0x31d8df(0x13a)][_0x31d8df(0x146)][_0x31d8df(0x168)][_0x31d8df(0x161)][_0x31d8df(0x13d)]();_0x59de13&&_0x59de13[_0x31d8df(0x156)](_0x31d8df(0x16b))&&this[_0x31d8df(0x13a)][_0x31d8df(0x165)][_0x31d8df(0x145)][_0x31d8df(0x167)](_0x31d8df(0x15a),()=>{const _0x331665=_0x31d8df;_0x6312f9(this[_0x331665(0x13a)],_0x59de13);});});const _0x15de62=this[_0x167f07(0x13a)][_0x167f07(0x147)][_0x167f07(0x14c)](_0x167f07(0x16a));_0x15de62&&this[_0x167f07(0x174)](_0x15de62,_0x167f07(0x160),()=>{const _0x46a11e=_0x167f07,_0x190b85=this[_0x46a11e(0x13a)][_0x46a11e(0x146)][_0x46a11e(0x168)][_0x46a11e(0x161)][_0x46a11e(0x13d)]();_0x190b85&&_0x190b85[_0x46a11e(0x156)](_0x46a11e(0x16b))&&this[_0x46a11e(0x13a)][_0x46a11e(0x165)][_0x46a11e(0x145)][_0x46a11e(0x167)](_0x46a11e(0x15a),()=>{const _0xc42b7a=_0x46a11e;_0x6312f9(this[_0xc42b7a(0x13a)],_0x190b85);});});}}
|
|
23
|
+
const _0x32e166=_0x1d02;(function(_0xc191ec,_0x2b4e50){const _0xe002d=_0x1d02,_0x3e4642=_0xc191ec();while(!![]){try{const _0x2f0ea4=parseInt(_0xe002d(0x17a))/0x1+-parseInt(_0xe002d(0x1b2))/0x2+parseInt(_0xe002d(0x197))/0x3*(-parseInt(_0xe002d(0x192))/0x4)+-parseInt(_0xe002d(0x17f))/0x5+-parseInt(_0xe002d(0x17e))/0x6+parseInt(_0xe002d(0x1b3))/0x7*(-parseInt(_0xe002d(0x1a4))/0x8)+parseInt(_0xe002d(0x191))/0x9;if(_0x2f0ea4===_0x2b4e50)break;else _0x3e4642['push'](_0x3e4642['shift']());}catch(_0x215377){_0x3e4642['push'](_0x3e4642['shift']());}}}(_0x335a,0x95636));import{Plugin as _0x22474b}from'ckeditor5/src/core.js';import{Dialog as _0x44e4be}from'ckeditor5/src/ui.js';import{createElement as _0x23cd8a,global as _0x5b4106,uid as _0x569072}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x2b442c}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5d08c1}from'./uploadcareuploadadapter.js';function _0x1d02(_0x210996,_0x321366){const _0x335a7c=_0x335a();return _0x1d02=function(_0x1d02c8,_0x41aea1){_0x1d02c8=_0x1d02c8-0x170;let _0x20578e=_0x335a7c[_0x1d02c8];return _0x20578e;},_0x1d02(_0x210996,_0x321366);}function _0x335a(){const _0x40ecd1=['uploader-','appendChild','input[uploadcare-file-input]','render','true','UploadcareEditing','removeAttribute','requires','data-uc-image-id','remove','PictureEditing','extend','2383674kxuCdQ','3911943EXrGlA','imageBlock','init','uploadcareImageId','schema','uploadcare.pubkey','editing','_ctxElement','_initSchema','elementToAttribute','isOfficialPlugin','execute','closeMax','view','editor','once','querySelector','attributeToAttribute','selection','afterInit','getSelectedElement','locale','iconHrefResolver','contentLanguage','uc-config','href','cleanupImage','981561BJuKRN','_initConfig','for','ctxElement','4481232ILscTJ','263685dSgMnx','uploadcare.uploader','isRegistered','uploadcare','\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','upcast','conversion','ucContextId','add','fromCharCode','document','body','map','isPremiumPlugin','get','listenTo','config','getAttribute','28800180bjTWpl','4kaEbOi','model','destroy','imageInline','join','1381629kvxMmK','#uc-icon-arrow-down','replaceImageSource','downcast','insertImage','pluginName','_initConversion','uc-upload-ctx-provider','_initCtx','configElement','_initImageProcessingIndicator','uploadcareImageReplace','_configElement','16ZxTxjR','commands'];_0x335a=function(){return _0x40ecd1;};return _0x335a();}import{showImageProcessingIndicator as _0x44b41c}from'./utils/editingutils.js';export class UploadcareEditing extends _0x22474b{[_0x32e166(0x1a3)]=null;[_0x32e166(0x1ba)]=null;static get[_0x32e166(0x19c)](){const _0x1c4225=_0x32e166;return _0x1c4225(0x1ab);}static get[_0x32e166(0x1ad)](){const _0x32bc72=_0x32e166;return[_0x32bc72(0x1b0),_0x5d08c1,_0x44e4be];}static get[_0x32e166(0x1bd)](){return!0x0;}static get[_0x32e166(0x18c)](){return!0x0;}[_0x32e166(0x186)];get[_0x32e166(0x1a0)](){const _0x375194=_0x32e166;return this[_0x375194(0x1a3)];}get[_0x32e166(0x17d)](){const _0x505601=_0x32e166;return this[_0x505601(0x1ba)];}constructor(_0x1e1729){const _0xadb67e=_0x32e166;super(_0x1e1729),this[_0xadb67e(0x186)]=_0x569072();}[_0x32e166(0x1b5)](){const _0x2c8325=_0x32e166,_0x1aef78=this[_0x2c8325(0x1c1)];_0x1aef78[_0x2c8325(0x1a5)][_0x2c8325(0x187)](_0x2c8325(0x182),new _0x2b442c(_0x1aef78));}[_0x32e166(0x172)](){const _0xdde9ca=_0x32e166;this[_0xdde9ca(0x1bb)](),this[_0xdde9ca(0x19d)](),this[_0xdde9ca(0x17b)](),this[_0xdde9ca(0x19f)](),this[_0xdde9ca(0x1a1)](),this[_0xdde9ca(0x18e)](this[_0xdde9ca(0x1c1)],_0xdde9ca(0x194),()=>{const _0x4d5269=_0xdde9ca;this[_0x4d5269(0x1a3)]&&(this[_0x4d5269(0x1a3)][_0x4d5269(0x1af)](),this[_0x4d5269(0x1a3)]=null),this[_0x4d5269(0x1ba)]&&(this[_0x4d5269(0x1ba)][_0x4d5269(0x1af)](),this[_0x4d5269(0x1ba)]=null);const _0x541ff2=_0x5b4106[_0x4d5269(0x189)][_0x4d5269(0x1c3)](_0x4d5269(0x1a8));_0x541ff2&&_0x541ff2[_0x4d5269(0x1af)]();}),async function(_0x3fb4aa){const _0x1dabf6=_0x4870c1([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]),_0x4c1dbe=0x535f8c3a,_0x12bef3=0x5358f3ea^_0x4c1dbe,_0xde2bb1=window[_0x4870c1([0x44,0x61,0x74,0x65])][_0x4870c1([0x6e,0x6f,0x77])](),_0x3aeb86=_0x3fb4aa[_0x4870c1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xb75640=new window[(_0x4870c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28fdaa=>{_0x3aeb86[_0x4870c1([0x6f,0x6e,0x63,0x65])](_0x4870c1([0x72,0x65,0x61,0x64,0x79]),_0x28fdaa);}),_0x426ccb={[_0x4870c1([0x6b,0x74,0x79])]:_0x4870c1([0x45,0x43]),[_0x4870c1([0x75,0x73,0x65])]:_0x4870c1([0x73,0x69,0x67]),[_0x4870c1([0x63,0x72,0x76])]:_0x4870c1([0x50,0x2d,0x32,0x35,0x36]),[_0x4870c1([0x78])]:_0x4870c1([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]),[_0x4870c1([0x79])]:_0x4870c1([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]),[_0x4870c1([0x61,0x6c,0x67])]:_0x4870c1([0x45,0x53,0x32,0x35,0x36])},_0x1ec2d1=_0x3aeb86[_0x4870c1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4870c1([0x67,0x65,0x74])](_0x4870c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x585bc0(){let _0x14cd5b,_0x15af2a=null,_0x213186=null;try{if(_0x1ec2d1==_0x4870c1([0x47,0x50,0x4c]))return _0x4870c1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x14cd5b=_0x3bcad6(),!_0x14cd5b)return _0x4870c1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x14cd5b[_0x4870c1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x213186=_0x331fdb(_0x14cd5b[_0x4870c1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x14cd5b[_0x4870c1([0x6a,0x74,0x69])])),await _0x437add()?_0x210005()?_0x155ca7()?_0x4870c1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x184cea()?(_0x14cd5b[_0x4870c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4870c1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x15af2a=_0x4788a1(_0x4870c1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2be13f()):_0x4870c1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4870c1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4870c1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4870c1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x155ca7(){const _0x305a20=[_0x4870c1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4870c1([0x74,0x72,0x69,0x61,0x6c])][_0x4870c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14cd5b[_0x4870c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xde2bb1/0x3e8:0xe10*_0x12bef3;return _0x14cd5b[_0x4870c1([0x65,0x78,0x70])]<_0x305a20;}function _0x210005(){const _0x1a5370=_0x14cd5b[_0x4870c1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1a5370&&(!!_0x1a5370[_0x4870c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4870c1([0x2a]))||!!_0x1a5370[_0x4870c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4870c1([0x55,0x50,0x4c,0x43])));}function _0x184cea(){const _0x7ee2f9=_0x1d02,_0x428ed8=_0x14cd5b[_0x4870c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x428ed8||0x0==_0x428ed8[_0x4870c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x12915d}=new URL(window[_0x4870c1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x7ee2f9(0x178)]);if(_0x428ed8[_0x4870c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12915d))return!0x0;const _0x29dd78=_0x12915d[_0x4870c1([0x73,0x70,0x6c,0x69,0x74])](_0x4870c1([0x2e]));return _0x428ed8[_0x4870c1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1025a3=>_0x1025a3[_0x4870c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4870c1([0x2a])))[_0x4870c1([0x6d,0x61,0x70])](_0x314e9f=>_0x314e9f[_0x4870c1([0x73,0x70,0x6c,0x69,0x74])](_0x4870c1([0x2e])))[_0x4870c1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2fbe1a=>_0x2fbe1a[_0x4870c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x29dd78[_0x4870c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4870c1([0x6d,0x61,0x70])](_0x31463d=>Array(_0x29dd78[_0x4870c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x31463d[_0x4870c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4870c1([0x66,0x69,0x6c,0x6c])](_0x31463d[0x0]===_0x4870c1([0x2a])?_0x4870c1([0x2a]):'')[_0x4870c1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x31463d))[_0x4870c1([0x73,0x6f,0x6d,0x65])](_0x383a71=>_0x29dd78[_0x4870c1([0x65,0x76,0x65,0x72,0x79])]((_0x49431c,_0x593f5c)=>_0x383a71[_0x593f5c]===_0x49431c||_0x383a71[_0x593f5c]===_0x4870c1([0x2a])));}function _0x2be13f(){return _0x15af2a&&_0x213186?new window[(_0x4870c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53c76b,_0x31c2aa)=>{_0x15af2a[_0x4870c1([0x74,0x68,0x65,0x6e])](_0x53c76b,_0x31c2aa),_0x213186[_0x4870c1([0x74,0x68,0x65,0x6e])](_0x1ef834=>{_0x1ef834!=_0x4870c1([0x56,0x61,0x6c,0x69,0x64])&&_0x53c76b(_0x1ef834);},_0x31c2aa);}):_0x15af2a||_0x213186||_0x4870c1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x331fdb(_0xe68ac3,_0x2adca2){return new window[(_0x4870c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4aeda3=>{if(_0x92fa9b())return _0x4aeda3(_0x4870c1([0x56,0x61,0x6c,0x69,0x64]));_0x2d1efd(),_0x3aeb86[_0x4870c1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4870c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1b4767=!0x1;const _0x15200a=_0x569072();function _0x18e592(_0x562c1e){return!!_0x562c1e&&(typeof _0x562c1e===_0x4870c1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x562c1e===_0x4870c1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x562c1e[_0x4870c1([0x74,0x68,0x65,0x6e])]===_0x4870c1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x562c1e[_0x4870c1([0x63,0x61,0x74,0x63,0x68])]===_0x4870c1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4100ab(_0x5f45d4){_0x25306b(_0x5f45d4)[_0x4870c1([0x74,0x68,0x65,0x6e])](_0x1c26b1=>{if(!_0x1c26b1||_0x1c26b1[_0x4870c1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4870c1([0x6f,0x6b]))return _0x4870c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x437eb7(_0x40695d(_0x15200a+_0x2adca2))!=_0x1c26b1[_0x4870c1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4870c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4870c1([0x56,0x61,0x6c,0x69,0x64]);})[_0x4870c1([0x74,0x68,0x65,0x6e])](_0x158d1a=>(_0x54d16d(),_0x158d1a),()=>{const _0x52d3ee=_0x2f8bbc();return null==_0x52d3ee?(_0x54d16d(),_0x4870c1([0x56,0x61,0x6c,0x69,0x64])):_0x4870c1(_0xde2bb1-_0x52d3ee>(0x7753083a^_0x4c1dbe)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4870c1([0x74,0x68,0x65,0x6e])](_0x4aeda3)[_0x4870c1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4aeda3(_0x4870c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x94a022=0x536962ba^_0x4c1dbe;function _0x54d16d(){const _0x33018b=_0x4870c1([0x6c,0x6c,0x63,0x74,0x2d])+_0x437eb7(_0x40695d(_0xe68ac3)),_0x1ad2fe=_0x56e4e9(_0x437eb7(window[_0x4870c1([0x4d,0x61,0x74,0x68])][_0x4870c1([0x63,0x65,0x69,0x6c])](_0xde2bb1/_0x94a022)));window[_0x4870c1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4870c1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x33018b,_0x1ad2fe);}function _0x2f8bbc(){const _0x3acc46=_0x4870c1([0x6c,0x6c,0x63,0x74,0x2d])+_0x437eb7(_0x40695d(_0xe68ac3)),_0x545661=window[_0x4870c1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4870c1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3acc46);return _0x545661?window[_0x4870c1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56e4e9(_0x545661),0x10)*_0x94a022:null;}function _0x25306b(_0x228749){return new window[(_0x4870c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x113f59,_0x5eef4a)=>{_0x228749[_0x4870c1([0x74,0x68,0x65,0x6e])](_0x113f59,_0x5eef4a),window[_0x4870c1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5eef4a,0x535e58fa^_0x4c1dbe);});}}_0x3aeb86[_0x4870c1([0x6f,0x6e])](_0x4870c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5bdf84,_0x5972c8)=>{if(_0x5972c8[0x0]!=_0xe68ac3)return _0x4aeda3(_0x4870c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5972c8[0x1]={..._0x5972c8[0x1],[_0x4870c1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x15200a};},{[_0x4870c1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4870c1([0x68,0x69,0x67,0x68])}),_0x3aeb86[_0x4870c1([0x6f,0x6e])](_0x4870c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4b4002=>{_0x18e592(_0x4b4002[_0x4870c1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1b4767=!0x0,_0x4100ab(_0x4b4002[_0x4870c1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4870c1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4870c1([0x6c,0x6f,0x77])}),_0xb75640[_0x4870c1([0x74,0x68,0x65,0x6e])](()=>{_0x1b4767||_0x4aeda3(_0x4870c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x92fa9b(){return _0x3aeb86[_0x4870c1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4870c1([0x76,0x69,0x65,0x77])][_0x4870c1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4870c1([0x61,0x75,0x74,0x6f]);}function _0x2d1efd(){_0x3aeb86[_0x4870c1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4870c1([0x76,0x69,0x65,0x77])][_0x4870c1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4870c1([0x61,0x75,0x74,0x6f]);}}function _0x4788a1(_0x41722d){const _0x2c6423=[new window[(_0x4870c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4739c7=>setTimeout(_0x4739c7,0x5356b2f6^_0x4c1dbe)),_0xb75640[_0x4870c1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4870c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c97e4=>{let _0x594b8d=0x0;_0x3aeb86[_0x4870c1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4870c1([0x6f,0x6e])](_0x4870c1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x28e891,_0xcbc935)=>{_0xcbc935[0x0][_0x4870c1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x594b8d++,_0x594b8d==(0x535f89d2^_0x4c1dbe)&&(_0x5c97e4(),_0x28e891[_0x4870c1([0x6f,0x66,0x66])]());});}))];return window[_0x4870c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4870c1([0x72,0x61,0x63,0x65])](_0x2c6423)[_0x4870c1([0x74,0x68,0x65,0x6e])](()=>_0x41722d);}async function _0x23baf7(){await _0xb75640,_0x3aeb86[_0x4870c1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4870c1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4c0be3,_0x3aeb86[_0x4870c1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4870c1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4c0be3,_0x3aeb86[_0x4870c1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4870c1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3b56ab(_0x1bff66){const _0x3d786d=_0x36553f();_0x3aeb86[_0x3d786d]=_0x4870c1([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1bff66,_0x1bff66!=_0x4870c1([0x56,0x61,0x6c,0x69,0x64])&&_0x23baf7();}function _0x36553f(){const _0x3cb0cc=window[_0x4870c1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4870c1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4870c1([0x6e,0x6f,0x77])]())[_0x4870c1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4870c1([0x2e]),'');let _0x1e6665=_0x4870c1([0x68]);for(let _0x54910b=0x0;_0x54910b<_0x3cb0cc[_0x4870c1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x54910b+=0x2){let _0x4449ab=window[_0x4870c1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3cb0cc[_0x4870c1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x54910b,_0x54910b+0x2));_0x4449ab>=_0x1dabf6[_0x4870c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4449ab-=_0x1dabf6[_0x4870c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1e6665+=_0x1dabf6[_0x4449ab];}return _0x1e6665;}function _0x3bcad6(){const _0x392cc6=_0x1ec2d1[_0x4870c1([0x73,0x70,0x6c,0x69,0x74])](_0x4870c1([0x2e]));if(0x3!=_0x392cc6[_0x4870c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3cae1b(_0x392cc6[0x1]);function _0x3cae1b(_0x338ae3){const _0xc5f653=_0x2f72f4(_0x338ae3);return _0xc5f653&&_0x11ca0c()?_0xc5f653:null;function _0x11ca0c(){const _0x2bbe63=_0xc5f653[_0x4870c1([0x6a,0x74,0x69])],_0x41ece5=window[_0x4870c1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bbe63[_0x4870c1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2bbe63[_0x4870c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4a2805={..._0xc5f653,[_0x4870c1([0x6a,0x74,0x69])]:_0x2bbe63[_0x4870c1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2bbe63[_0x4870c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4a2805[_0x4870c1([0x76,0x63])],_0x40695d(_0x4a2805)==_0x41ece5;}}}async function _0x437add(){let _0x4de6cb=!0x0;try{const _0x1ac055=_0x1ec2d1[_0x4870c1([0x73,0x70,0x6c,0x69,0x74])](_0x4870c1([0x2e])),[_0x316817,_0x31ac2b,_0x261113]=_0x1ac055;return _0x4f105a(_0x316817),await _0x1e4090(_0x316817,_0x31ac2b,_0x261113),_0x4de6cb;}catch{return!0x1;}function _0x4f105a(_0x5c86cb){const _0x2c6c42=_0x2f72f4(_0x5c86cb);_0x2c6c42&&_0x2c6c42[_0x4870c1([0x61,0x6c,0x67])]==_0x4870c1([0x45,0x53,0x32,0x35,0x36])||(_0x4de6cb=!0x1);}async function _0x1e4090(_0x330eac,_0x29ead6,_0x575d26){const _0x3878b5=window[_0x4870c1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4870c1([0x66,0x72,0x6f,0x6d])](_0x33bbda(_0x575d26),_0x26f715=>_0x26f715[_0x4870c1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3044e2=new window[(_0x4870c1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4870c1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x330eac+_0x4870c1([0x2e])+_0x29ead6),_0x1ea1d9=window[_0x4870c1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4870c1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1ea1d9)return;const _0x3beb15=await _0x1ea1d9[_0x4870c1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4870c1([0x6a,0x77,0x6b]),_0x426ccb,{[_0x4870c1([0x6e,0x61,0x6d,0x65])]:_0x4870c1([0x45,0x43,0x44,0x53,0x41]),[_0x4870c1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4870c1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4870c1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1ea1d9[_0x4870c1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4870c1([0x6e,0x61,0x6d,0x65])]:_0x4870c1([0x45,0x43,0x44,0x53,0x41]),[_0x4870c1([0x68,0x61,0x73,0x68])]:{[_0x4870c1([0x6e,0x61,0x6d,0x65])]:_0x4870c1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3beb15,_0x3878b5,_0x3044e2)||(_0x4de6cb=!0x1);}}function _0x2f72f4(_0x717de4){return _0x717de4[_0x4870c1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4870c1([0x65,0x79]))?JSON[_0x4870c1([0x70,0x61,0x72,0x73,0x65])](_0x33bbda(_0x717de4)):null;}function _0x33bbda(_0x43b8b5){return window[_0x4870c1([0x61,0x74,0x6f,0x62])](_0x43b8b5[_0x4870c1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4870c1([0x2b]))[_0x4870c1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4870c1([0x2f])));}function _0x40695d(_0x3e5f7b){let _0x1dec12=0x1505;function _0x121dc8(_0x172a29){for(let _0x43f51f=0x0;_0x43f51f<_0x172a29[_0x4870c1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43f51f++){const _0x312ded=_0x172a29[_0x4870c1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x43f51f);_0x1dec12=(_0x1dec12<<0x5)+_0x1dec12+_0x312ded,_0x1dec12&=_0x1dec12;}}function _0x5bb058(_0x2b57c9){Array[_0x4870c1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b57c9)?_0x2b57c9[_0x4870c1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5bb058):_0x2b57c9&&typeof _0x2b57c9==_0x4870c1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4870c1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b57c9)[_0x4870c1([0x73,0x6f,0x72,0x74])]()[_0x4870c1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x145443,_0x167a6d])=>{_0x121dc8(_0x145443),_0x5bb058(_0x167a6d);}):_0x121dc8(window[_0x4870c1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b57c9));}return _0x5bb058(_0x3e5f7b),_0x1dec12>>>0x0;}function _0x437eb7(_0x20a405){return _0x20a405[_0x4870c1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4870c1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4870c1([0x30]));}function _0x56e4e9(_0x5da8c7){return _0x5da8c7[_0x4870c1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4870c1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4870c1([0x6a,0x6f,0x69,0x6e])]('');}function _0x4c0be3(){}function _0x4870c1(_0x209c3d){const _0x4e7efd=_0x1d02;return _0x209c3d[_0x4e7efd(0x18b)](_0x4a0e37=>String[_0x4e7efd(0x188)](_0x4a0e37))[_0x4e7efd(0x196)]('');}_0x3b56ab(await _0x585bc0());}(this);}[_0x32e166(0x1bb)](){const _0x55bf70=_0x32e166,_0x917e00=this[_0x55bf70(0x1c1)][_0x55bf70(0x193)][_0x55bf70(0x1b7)];_0x917e00[_0x55bf70(0x181)](_0x55bf70(0x1b4))&&_0x917e00[_0x55bf70(0x1b1)](_0x55bf70(0x1b4),{'allowAttributes':[_0x55bf70(0x1b6)]}),_0x917e00[_0x55bf70(0x181)](_0x55bf70(0x195))&&_0x917e00[_0x55bf70(0x1b1)](_0x55bf70(0x195),{'allowAttributes':[_0x55bf70(0x1b6)]});}[_0x32e166(0x19d)](){const _0x1ab0ef=_0x32e166,_0x1f1f85=this[_0x1ab0ef(0x1c1)];_0x1f1f85[_0x1ab0ef(0x185)][_0x1ab0ef(0x17c)](_0x1ab0ef(0x19a))[_0x1ab0ef(0x170)]({'model':_0x1ab0ef(0x1b6),'view':_0x1ab0ef(0x1ae)}),_0x1f1f85[_0x1ab0ef(0x185)][_0x1ab0ef(0x17c)](_0x1ab0ef(0x184))[_0x1ab0ef(0x1bc)]({'model':{'key':_0x1ab0ef(0x1b6),'value':_0xf110fb=>_0xf110fb[_0x1ab0ef(0x190)](_0x1ab0ef(0x1ae))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xddeef=_0x1f1f85[_0x1ab0ef(0x1a5)][_0x1ab0ef(0x18d)](_0x1ab0ef(0x199));_0xddeef&&this[_0x1ab0ef(0x18e)](_0xddeef,_0x1ab0ef(0x179),(_0x272199,[_0x446d18,_0x22c073])=>{const _0x1b9457=_0x1ab0ef;_0x446d18[_0x1b9457(0x1ac)](_0x1b9457(0x1b6),_0x22c073);});}[_0x32e166(0x17b)](){const _0x386136=_0x32e166,_0x20bc49=this[_0x386136(0x1c1)][_0x386136(0x18f)][_0x386136(0x18d)](_0x386136(0x180))||{},_0x59c3b5=this[_0x386136(0x1c1)][_0x386136(0x18f)][_0x386136(0x18d)](_0x386136(0x1b8))||'';this[_0x386136(0x1a3)]=_0x23cd8a(_0x5b4106[_0x386136(0x189)],_0x386136(0x177),{..._0x20bc49,'pubkey':_0x59c3b5,'ctx-name':_0x386136(0x1a6)+this[_0x386136(0x186)],'sourceList':'','imgOnly':_0x386136(0x1aa),'removeCopyright':_0x386136(0x1aa),'localeName':this[_0x386136(0x1c1)][_0x386136(0x174)][_0x386136(0x176)],'externalSourcesEmbedCss':_0x386136(0x183)}),this[_0x386136(0x1a3)][_0x386136(0x175)]=_0x423c36=>{const _0x159637=_0x386136;if(_0x159637(0x1bf)==_0x423c36)return _0x159637(0x198);},_0x5b4106[_0x386136(0x189)][_0x386136(0x18a)][_0x386136(0x1a7)](this[_0x386136(0x1a3)]);}[_0x32e166(0x19f)](){const _0x2454fd=_0x32e166;this[_0x2454fd(0x1ba)]=_0x23cd8a(_0x5b4106[_0x2454fd(0x189)],_0x2454fd(0x19e),{'ctx-name':_0x2454fd(0x1a6)+this[_0x2454fd(0x186)]}),_0x5b4106[_0x2454fd(0x189)][_0x2454fd(0x18a)][_0x2454fd(0x1a7)](this[_0x2454fd(0x1ba)]);}[_0x32e166(0x1a1)](){const _0x53b7cb=_0x32e166,_0x98d99d=this[_0x53b7cb(0x1c1)][_0x53b7cb(0x1a5)][_0x53b7cb(0x18d)](_0x53b7cb(0x19b));_0x98d99d&&this[_0x53b7cb(0x18e)](_0x98d99d,_0x53b7cb(0x1be),()=>{const _0x527527=_0x53b7cb,_0x4f005c=this[_0x527527(0x1c1)][_0x527527(0x193)][_0x527527(0x189)][_0x527527(0x171)][_0x527527(0x173)]();_0x4f005c&&_0x4f005c[_0x527527(0x190)](_0x527527(0x1b6))&&this[_0x527527(0x1c1)][_0x527527(0x1b9)][_0x527527(0x1c0)][_0x527527(0x1c2)](_0x527527(0x1a9),()=>{const _0x4a24b8=_0x527527;_0x44b41c(this[_0x4a24b8(0x1c1)],_0x4f005c);});});const _0x550716=this[_0x53b7cb(0x1c1)][_0x53b7cb(0x1a5)][_0x53b7cb(0x18d)](_0x53b7cb(0x1a2));_0x550716&&this[_0x53b7cb(0x18e)](_0x550716,_0x53b7cb(0x1be),()=>{const _0x179cec=_0x53b7cb,_0x30847a=this[_0x179cec(0x1c1)][_0x179cec(0x193)][_0x179cec(0x189)][_0x179cec(0x171)][_0x179cec(0x173)]();_0x30847a&&_0x30847a[_0x179cec(0x190)](_0x179cec(0x1b6))&&this[_0x179cec(0x1c1)][_0x179cec(0x1b9)][_0x179cec(0x1c0)][_0x179cec(0x1c2)](_0x179cec(0x1a9),()=>{const _0x14b1af=_0x179cec;_0x44b41c(this[_0x14b1af(0x1c1)],_0x30847a);});});}}
|