@ckeditor/ckeditor5-uploadcare 45.2.1-alpha.5 → 45.2.1-alpha.6
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 _0x579796,Command as _0x340d8a}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x529583,IconGooglePhotos as _0x382352,IconGoogleDrive as _0x567afd,IconFacebook as _0x4a6f6e,IconDropbox as _0x4da3c9,IconUploadcareLink as _0x13f462,IconUploadcareImageUpload as _0x413fd5,IconError as et,IconUploadcareImageEdit as _0x2ffd7f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4bb153,MenuBarMenuListItemButtonView as _0x1e1f2d,View as _0xc240f8,FocusCycler as _0x5d8915,Dialog as _0x4cdc5f,DialogViewPosition as _0x3ee01f,SpinnerView as _0xd33dee,IconView as at,Notification as _0x2d95ff}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x28a107,DomEmitterMixin as _0x29e78e,global as _0xaf2c9f,getAncestors as _0x266d27,ObservableMixin as _0x27d4f2,createElement as _0x55a0d5,uid as _0x7f619a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x237d9b}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x33677d,info as _0x234785}from'@uploadcare/upload-client';import*as _0x1afe7e from'@uploadcare/file-uploader';var o=function(_0x46147d){return _0x46147d['Local']='local',_0x46147d['URL']='url',_0x46147d['Dropbox']='dropbox',_0x46147d['GDrive']='gdrive',_0x46147d['Facebook']='facebook',_0x46147d['GPhotos']='gphotos',_0x46147d['OneDrive']='onedrive',_0x46147d;}({});function _(_0x4bad40,_0x589bbd,_0x558aa2){const t=_0x4bad40['t'],_0x591cdc=_0x4bad40['t'];switch(_0x589bbd){case o['Local']:return{'text':_0x591cdc('Insert'===_0x558aa2?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x591cdc('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x558aa2?_0x591cdc('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x591cdc('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x558aa2?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x558aa2?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x558aa2?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x558aa2?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x558aa2?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x589bbd;}}class e extends _0x579796{['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 _0x5c1fa8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xedf14a;for(const _0x4dfd46 in _0x5c1fa8){const _0x4fff3f=_0x4dfd46,_0xf83363=_0x5c1fa8[_0x4fff3f];if('uploadcareLicenseKeyValid'==_0xf83363||'uploadcareLicenseKeyInvalid'==_0xf83363||'uploadcareLicenseKeyExpired'==_0xf83363||'uploadcareLicenseKeyDomainLimit'==_0xf83363||'uploadcareLicenseKeyNotAllowed'==_0xf83363||'uploadcareLicenseKeyEvaluationLimit'==_0xf83363||'uploadcareLicenseKeyTrialLimit'==_0xf83363||'uploadcareLicenseKeyUsageLimit'==_0xf83363){delete _0x5c1fa8[_0x4fff3f],_0xedf14a=_0xf83363,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xedf14a&&_0x5c1fa8['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xedf14a&&_0x5c1fa8['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xedf14a&&_0x5c1fa8['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xedf14a&&_0x5c1fa8['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xedf14a&&_0x5c1fa8['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0xedf14a&&_0x5c1fa8['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0xedf14a&&_0x5c1fa8['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x8fb0af}=this,_0x5c8910=_0x8fb0af['commands']['get']('uploadcare');if(!_0x5c8910)return;const _0x5b1b7b=this['_normalizeConfigSourceList'](_0x8fb0af['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x34d32a,_0x51bcd3)=>{const _0x2ac7fd=this['_getIntegrationKey'](_0x51bcd3['type']);return _0x34d32a[_0x2ac7fd]||(_0x34d32a[_0x2ac7fd]=[]),_0x34d32a[_0x2ac7fd]['push'](_0x51bcd3),_0x34d32a;},{});_0x8fb0af['plugins']['has']('ImageInsertUI')&&_0x8fb0af['commands']['get']('uploadcare')&&Object['entries'](_0x5b1b7b)['forEach'](([_0x43212d,_0x34fc23])=>{_0x8fb0af['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x43212d,'observable':()=>_0x5c8910,'buttonViewCreator':()=>this['_createToolbarButton'](_0x34fc23),'formViewCreator':()=>this['_createDropdownButtons'](_0x34fc23),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x34fc23),'override':'assetManager'!==_0x43212d});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xf0967c){const {locale:_0x5bfa63}=this['editor'];return _0xf0967c['map'](_0x3eee33=>{const _0x539443=_(_0x5bfa63,_0x3eee33,'Insert');switch(_0x3eee33){case o['Local']:return{'icon':_0x413fd5,'type':o['Local'],..._0x539443};case o['URL']:return{'icon':_0x13f462,'type':o['URL'],..._0x539443};case o['Dropbox']:return{'icon':_0x4da3c9,'type':o['Dropbox'],..._0x539443};case o['Facebook']:return{'icon':_0x4a6f6e,'type':o['Facebook'],..._0x539443};case o['GDrive']:return{'icon':_0x567afd,'type':o['GDrive'],..._0x539443};case o['GPhotos']:return{'icon':_0x382352,'type':o['GPhotos'],..._0x539443};case o['OneDrive']:return{'icon':_0x529583,'type':o['OneDrive'],..._0x539443};}});}['_getIntegrationKey'](_0x768d2e){switch(_0x768d2e){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x24754d,_0x1afab){const _0x2a86eb=this['editor'],_0x2de029=new _0x24754d(_0x2a86eb['locale']),_0x3ec816=_0x2a86eb['commands']['get']('uploadcare');return _0x2de029['bind']('isEnabled')['to'](_0x3ec816),_0x2de029['on']('execute',()=>{_0x3ec816['execute'](_0x1afab);}),_0x2de029;}['_createToolbarButton'](_0x65e00d){const {locale:_0x9bd996}=this['editor'],_0x10e364=this['editor']['plugins']['get']('ImageInsertUI'),_0x3387d7=_0x65e00d[0x0],_0x2228b2=this['_createButton'](_0x4bb153,_0x3387d7['type']);return _0x2228b2['icon']=_0x3387d7['icon'],_0x2228b2['bind']('label')['to'](_0x10e364,'isImageSelected',_0x335ddc=>_(_0x9bd996,_0x3387d7['type'],_0x335ddc?'Replace':'Insert')['text']),_0x2228b2['tooltip']=!0x0,_0x2228b2;}['_createDropdownButtons'](_0x557d00){const {locale:_0x4f7f66}=this['editor'],_0xbcc1c0=this['editor']['plugins']['get']('ImageInsertUI');return _0x557d00['map'](_0x5e19d0=>{const _0x5babfc=this['_createButton'](_0x4bb153,_0x5e19d0['type']);return _0x5babfc['withText']=!0x0,_0x5babfc['icon']=_0x5e19d0['icon'],_0x5babfc['bind']('label')['to'](_0xbcc1c0,'isImageSelected',_0x12a237=>_(_0x4f7f66,_0x5e19d0['type'],_0x12a237?'Replace':'Insert')['text']),_0x5babfc;});}['_createMenuBarButtons'](_0x5bb425){return _0x5bb425['map'](_0x210d83=>{const _0x82fcc1=this['_createButton'](_0x1e1f2d,_0x210d83['type']);return _0x82fcc1['icon']=_0x210d83['icon'],_0x82fcc1['label']=_0x210d83['shortText'],_0x82fcc1;});}}class q extends _0xc240f8{['focusTracker'];['focusCycler'];constructor(_0x447810){super(_0x447810),this['focusTracker']=new _0x28a107(),this['focusCycler']=new _0x5d8915({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x5af942){super(_0x5af942),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x49325f,_0x7a97f7){const _0x1ff01e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x21dac7=>_0x21dac7<=_0x7a97f7)['map'](_0x110c52=>_0x49325f['replace'](/\/$/,'')+'/-/resize/'+_0x110c52+'x/\x20'+_0x110c52+'w');return{'imageFallbackUrl':_0x49325f,'imageSources':[{'srcset':_0x1ff01e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x7a97f7+'px)\x20100vw,\x20'+_0x7a97f7+'px','type':'image/webp'}]};}function A(_0x3a83cd,_0x3e9e70,_0xbc7700){const _0x451511=_0x3a83cd['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x451511?parseInt(_0x451511[0x1],0xa):_0x3e9e70,'height':_0x451511?parseInt(_0x451511[0x2],0xa):_0xbc7700};}function m(_0x268212,_0x45ce90){const _0x233902=Object['create'](_0x29e78e),_0x209b96=_0x268212['plugins']['get']('ImageUtils'),_0x40f9a9=_0x268212['editing']['mapper']['toViewElement'](_0x45ce90),_0x487af6=_0x209b96['findViewImgElement'](_0x40f9a9),_0x3a2cc5=_0x268212['editing']['view']['domConverter']['viewToDom'](_0x487af6),_0x4d0191=_0x45ce90['getAttribute']('width'),_0x26d91d=_0x45ce90['getAttribute']('height'),_0x5b6922='image-processing';_0x268212['editing']['view']['change'](_0x474fdb=>{_0x474fdb['addClass'](_0x5b6922,_0x40f9a9),_0x474fdb['setStyle']('aspect-ratio',_0x4d0191+'/'+_0x26d91d,_0x487af6);}),_0x233902['listenTo'](_0x3a2cc5,'load',()=>{_0x233902['stopListening'](_0x3a2cc5,'load'),_0x268212['editing']['view']['change'](_0x4435f1=>{_0x4435f1['removeClass'](_0x5b6922,_0x40f9a9),_0x4435f1['removeStyle']('aspect-ratio',_0x487af6);});});}function V(_0x241a59){if(Array['isArray'](_0x241a59)){const _0x2a746c=_0x241a59['map'](V);return _0x101773=>_0x2a746c['some'](_0x2f6e12=>_0x2f6e12(_0x101773));}if('origin'==_0x241a59){const _0x518f06=_0xaf2c9f['window']['location']['origin'];return _0x3f91a9=>new URL(_0x3f91a9,_0xaf2c9f['document']['baseURI'])['origin']==_0x518f06;}return'function'==typeof _0x241a59?_0x241a59:_0x241a59 instanceof RegExp?_0x2023df=>!(!_0x2023df['match'](_0x241a59)&&!_0x2023df['replace'](/^https?:\/\//,'')['match'](_0x241a59)):()=>!0x1;}function F(_0x52b47d,_0x394828){return _0x266d27(_0x52b47d['target'])['includes'](_0x394828);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x27d4f2(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x59fbe5,_0x41baad,_0x334239){super(),this['_editor']=_0x59fbe5,this['_editing']=_0x41baad,this['_dialog']=_0x59fbe5['plugins']['get'](_0x4cdc5f),this['_api']=_0x41baad['ctxElement']['getAPI'](),this['_type']=_0x334239,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:_0x3cfe31,model:_0xdfc247}=this['_editor'],_0x6103dc=_0xdfc247['document']['selection']['getSelectedElement'](),_0x47c161=_0x6103dc&&(_0x6103dc['is']('element','imageBlock')||_0x6103dc['is']('element','imageInline'));this['_formView']=new S(_0x3cfe31),this['_dialog']['show']({'id':'uploadCare','icon':_0x413fd5,'title':_(_0x3cfe31,this['_type'],_0x47c161?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3ee01f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4054d5=>!F(_0x4054d5,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x52f589}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x57b692=>{const _0xe20ce7=_0x52f589['length'];for(const _0x25f436 of _0x52f589){const _0x3a5df4=_0x25f436===_0x52f589[_0xe20ce7-0x1],{cdnUrl:_0x3aee25,fileInfo:_0x3205e3}=_0x25f436;if(!_0x3aee25||!_0x3205e3)continue;const {width:_0x43df6c,height:_0x31d45f}=_0x3205e3['imageInfo'],_0xe1fc98=A(_0x3aee25,_0x43df6c,_0x31d45f),_0x26dc33=E(_0x3aee25,_0xe1fc98['width']),_0x2e70ed={'id':_0x3205e3['uuid'],'type':'image','attributes':{'imageDimension':_0xe1fc98,..._0x26dc33}};this['_insertAsset'](_0x2e70ed,_0x3a5df4,_0x57b692);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x19f8d8=>{'idle'===_0x19f8d8['detail']['status']&&!_0x19f8d8['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x173ba7,_0x73382b,_0x382203){const _0x4be0bf=this['_editor']['model']['document']['selection'],_0x54f336=_0x4be0bf['getSelectedElement'](),_0x29afc7=!(!_0x54f336||!_0x54f336['is']('element','imageInline'));_0x382203['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x173ba7,_0x29afc7),_0x73382b||_0x382203['setSelection'](_0x4be0bf['getLastPosition']());}['_insertImage'](_0x5a717c,_0x970a49){const _0x279e18=this['_editor'],{imageDimension:_0x59f810,imageFallbackUrl:_0x50b021,imageSources:_0x54edea}=_0x5a717c['attributes'];_0x279e18['execute']('insertImage',{'imageType':_0x970a49?'imageInline':null,'source':{'uploadcareImageId':_0x5a717c['id'],'src':_0x50b021,'sources':_0x54edea,..._0x59f810}});}}class n extends _0x340d8a{['_editing'];['_controller']=null;static get['requires'](){return[_0x4cdc5f,i];}constructor(_0x26a0e3){super(_0x26a0e3),this['_editing']=_0x26a0e3['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x592711){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x592711);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x1f620e,publicKey:_0x4e9476,signal:_0xabaf99,onProgress:_0xc47b9a}){return _0x33677d(_0x1f620e,{'publicKey':_0x4e9476,'store':'auto','signal':_0xabaf99,'onProgress':_0xc47b9a});}static['getInfo'](_0x59a6b7,_0x3740c3){return _0x234785(_0x59a6b7,_0x3740c3);}}class p extends _0x579796{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x237d9b,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x30cfde=this['editor'];if(!!!_0x30cfde['config']['get']('uploadcare'))return;_0x30cfde['plugins']['get'](_0x237d9b)['createUploadAdapter']=_0x20879f=>new x(_0x20879f,_0x30cfde),_0x30cfde['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x449c3a,{imageElement:_0x2a7641,data:_0x56b70d})=>{_0x30cfde['model']['change'](_0xb388b1=>{_0xb388b1['setAttribute']('uploadcareImageId',_0x56b70d['uploadcareImageId'],_0x2a7641);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x386a56,_0x1111db){this['loader']=_0x386a56,this['editor']=_0x1111db,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x31263=this['editor']['config']['get']('uploadcare.pubkey'),_0x5b1c9f=await this['loader']['file'];return C['upload']({'file':_0x5b1c9f,'publicKey':_0x31263,'signal':this['controller']['signal'],'onProgress':_0x1e9df0=>{_0x1e9df0&&_0x1e9df0['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1e9df0['value']);}})['then'](async _0x5401a4=>{const {imageFallbackUrl:_0x1225e6,imageSources:_0x2a0736}=E(_0x5401a4['cdnUrl'],_0x5401a4['imageInfo']['width']);return{'uploadcareImageId':_0x5401a4['uuid'],'default':_0x1225e6,'sources':_0x2a0736};})['catch'](()=>{const _0x52b59e=t('Cannot\x20upload\x20file:')+('\x20'+_0x5b1c9f['name']+'.');return Promise['reject'](_0x52b59e);});}['abort'](){this['controller']['abort']();}}class i extends _0x579796{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x4cdc5f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x579dcc=this['editor'];_0x579dcc['commands']['add']('uploadcare',new n(_0x579dcc));}['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 _0xf80514=_0xaf2c9f['document']['querySelector']('input[uploadcare-file-input]');_0xf80514&&_0xf80514['remove']();}),async function(_0x59ffe4){const _0xfd757=_0x490e25([0x70,0x37,0x33,0x64,0x50,0x79,0x58,0x4f,0x36,0x6e,0x55,0x6d,0x73,0x6a,0x4a,0x6f,0x34,0x71,0x46,0x53,0x5a,0x45,0x77,0x62,0x38,0x69,0x39,0x44,0x63,0x54,0x41,0x66,0x42,0x78,0x43,0x4c,0x57,0x30,0x49,0x72,0x7a,0x61,0x31,0x6b,0x59,0x47,0x4d,0x48,0x76,0x56,0x51,0x52,0x75,0x74,0x68,0x65,0x35,0x32,0x4b,0x6c,0x4e,0x67]),_0x50571b=0xb91ab79,_0x3ce57a=0xb96c049^_0x50571b,_0x2a9525=window[_0x490e25([0x44,0x61,0x74,0x65])][_0x490e25([0x6e,0x6f,0x77])](),_0x1cb853=_0x59ffe4[_0x490e25([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3db0be=new window[(_0x490e25([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11c923=>{_0x1cb853[_0x490e25([0x6f,0x6e,0x63,0x65])](_0x490e25([0x72,0x65,0x61,0x64,0x79]),_0x11c923);}),_0x2f000f={[_0x490e25([0x6b,0x74,0x79])]:_0x490e25([0x45,0x43]),[_0x490e25([0x75,0x73,0x65])]:_0x490e25([0x73,0x69,0x67]),[_0x490e25([0x63,0x72,0x76])]:_0x490e25([0x50,0x2d,0x32,0x35,0x36]),[_0x490e25([0x78])]:_0x490e25([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]),[_0x490e25([0x79])]:_0x490e25([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]),[_0x490e25([0x61,0x6c,0x67])]:_0x490e25([0x45,0x53,0x32,0x35,0x36])},_0x39f2a2=_0x1cb853[_0x490e25([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x490e25([0x67,0x65,0x74])](_0x490e25([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xcdbe66(){let _0x1a72e7,_0x10d092=null,_0x299cce=null;try{if(_0x39f2a2==_0x490e25([0x47,0x50,0x4c]))return _0x490e25([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1a72e7=_0x55d9d0(),!_0x1a72e7)return _0x490e25([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1a72e7[_0x490e25([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x299cce=_0x1d3ea0(_0x1a72e7[_0x490e25([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1a72e7[_0x490e25([0x6a,0x74,0x69])])),await _0x5d693a()?_0x2e585d()?_0x1ab5db()?_0x490e25([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x442ec3()?(_0x1a72e7[_0x490e25([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x490e25([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x10d092=_0x4a7cfc(_0x490e25([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1a72e7[_0x490e25([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x490e25([0x74,0x72,0x69,0x61,0x6c])&&(_0x10d092=_0x4a7cfc(_0x490e25([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4a39b6()):_0x490e25([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x490e25([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x490e25([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x490e25([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1ab5db(){const _0x5bc617=[_0x490e25([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x490e25([0x74,0x72,0x69,0x61,0x6c])][_0x490e25([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a72e7[_0x490e25([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2a9525/0x3e8:0xe10*_0x3ce57a;return _0x1a72e7[_0x490e25([0x65,0x78,0x70])]<_0x5bc617;}function _0x2e585d(){const _0x34ea4d=_0x1a72e7[_0x490e25([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x34ea4d&&(!!_0x34ea4d[_0x490e25([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x490e25([0x2a]))||!!_0x34ea4d[_0x490e25([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x490e25([0x55,0x50,0x4c,0x43])));}function _0x442ec3(){const _0x2afc6a=_0x1a72e7[_0x490e25([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2afc6a||0x0==_0x2afc6a[_0x490e25([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x235031}=new URL(window[_0x490e25([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2afc6a[_0x490e25([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x235031))return!0x0;const _0x2d3340=_0x235031[_0x490e25([0x73,0x70,0x6c,0x69,0x74])](_0x490e25([0x2e]));return _0x2afc6a[_0x490e25([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x223d7f=>_0x223d7f[_0x490e25([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x490e25([0x2a])))[_0x490e25([0x6d,0x61,0x70])](_0x2e8eac=>_0x2e8eac[_0x490e25([0x73,0x70,0x6c,0x69,0x74])](_0x490e25([0x2e])))[_0x490e25([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f9976=>_0x2f9976[_0x490e25([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2d3340[_0x490e25([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x490e25([0x6d,0x61,0x70])](_0x462198=>Array(_0x2d3340[_0x490e25([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x462198[_0x490e25([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x490e25([0x66,0x69,0x6c,0x6c])](_0x462198[0x0]===_0x490e25([0x2a])?_0x490e25([0x2a]):'')[_0x490e25([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x462198))[_0x490e25([0x73,0x6f,0x6d,0x65])](_0x451e0b=>_0x2d3340[_0x490e25([0x65,0x76,0x65,0x72,0x79])]((_0xba8dda,_0xa1c03b)=>_0x451e0b[_0xa1c03b]===_0xba8dda||_0x451e0b[_0xa1c03b]===_0x490e25([0x2a])));}function _0x4a39b6(){return _0x10d092&&_0x299cce?new window[(_0x490e25([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3af68f,_0x105b02)=>{_0x10d092[_0x490e25([0x74,0x68,0x65,0x6e])](_0x3af68f,_0x105b02),_0x299cce[_0x490e25([0x74,0x68,0x65,0x6e])](_0x3a166c=>{_0x3a166c!=_0x490e25([0x56,0x61,0x6c,0x69,0x64])&&_0x3af68f(_0x3a166c);},_0x105b02);}):_0x10d092||_0x299cce||_0x490e25([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1d3ea0(_0x56ccd5,_0x671f24){return new window[(_0x490e25([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x566167=>{if(_0x2c5902())return _0x566167(_0x490e25([0x56,0x61,0x6c,0x69,0x64]));_0x460686(),_0x1cb853[_0x490e25([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x490e25([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x57dc69=!0x1;const _0x58ce12=_0x7f619a();function _0x2cb1d9(_0x4b74ea){return!!_0x4b74ea&&(typeof _0x4b74ea===_0x490e25([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4b74ea===_0x490e25([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4b74ea[_0x490e25([0x74,0x68,0x65,0x6e])]===_0x490e25([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4b74ea[_0x490e25([0x63,0x61,0x74,0x63,0x68])]===_0x490e25([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xb9be64(_0x1d19d8){_0x514317(_0x1d19d8)[_0x490e25([0x74,0x68,0x65,0x6e])](_0x5294d2=>{if(!_0x5294d2||_0x5294d2[_0x490e25([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x490e25([0x6f,0x6b]))return _0x490e25([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4bf692(_0x5c356c(_0x58ce12+_0x671f24))!=_0x5294d2[_0x490e25([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x490e25([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x490e25([0x56,0x61,0x6c,0x69,0x64]);})[_0x490e25([0x74,0x68,0x65,0x6e])](_0x5e1e6f=>(_0x24142c(),_0x5e1e6f),()=>{const _0x2cc83f=_0x1a5900();return null==_0x2cc83f?(_0x24142c(),_0x490e25([0x56,0x61,0x6c,0x69,0x64])):_0x490e25(_0x2a9525-_0x2cc83f>(0x2f9d2f79^_0x50571b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x490e25([0x74,0x68,0x65,0x6e])](_0x566167)[_0x490e25([0x63,0x61,0x74,0x63,0x68])](()=>{_0x566167(_0x490e25([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3e28f7=0xba745f9^_0x50571b;function _0x24142c(){const _0x37028b=_0x490e25([0x6c,0x6c,0x63,0x74,0x2d])+_0x4bf692(_0x5c356c(_0x56ccd5)),_0x43cb57=_0x4fed9b(_0x4bf692(window[_0x490e25([0x4d,0x61,0x74,0x68])][_0x490e25([0x63,0x65,0x69,0x6c])](_0x2a9525/_0x3e28f7)));window[_0x490e25([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x490e25([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x37028b,_0x43cb57);}function _0x1a5900(){const _0x48d0c0=_0x490e25([0x6c,0x6c,0x63,0x74,0x2d])+_0x4bf692(_0x5c356c(_0x56ccd5)),_0x1320c4=window[_0x490e25([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x490e25([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48d0c0);return _0x1320c4?window[_0x490e25([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fed9b(_0x1320c4),0x10)*_0x3e28f7:null;}function _0x514317(_0x33cbe5){return new window[(_0x490e25([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c6d69,_0x4df7cc)=>{_0x33cbe5[_0x490e25([0x74,0x68,0x65,0x6e])](_0x2c6d69,_0x4df7cc),window[_0x490e25([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4df7cc,0xb907fb9^_0x50571b);});}}_0x1cb853[_0x490e25([0x6f,0x6e])](_0x490e25([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x21aa61,_0x1295eb)=>{if(_0x1295eb[0x0]!=_0x56ccd5)return _0x566167(_0x490e25([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1295eb[0x1]={..._0x1295eb[0x1],[_0x490e25([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x58ce12};},{[_0x490e25([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x490e25([0x68,0x69,0x67,0x68])}),_0x1cb853[_0x490e25([0x6f,0x6e])](_0x490e25([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3d858c=>{_0x2cb1d9(_0x3d858c[_0x490e25([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x57dc69=!0x0,_0xb9be64(_0x3d858c[_0x490e25([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x490e25([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x490e25([0x6c,0x6f,0x77])}),_0x3db0be[_0x490e25([0x74,0x68,0x65,0x6e])](()=>{_0x57dc69||_0x566167(_0x490e25([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c5902(){return _0x1cb853[_0x490e25([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x490e25([0x76,0x69,0x65,0x77])][_0x490e25([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x490e25([0x61,0x75,0x74,0x6f]);}function _0x460686(){_0x1cb853[_0x490e25([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x490e25([0x76,0x69,0x65,0x77])][_0x490e25([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x490e25([0x61,0x75,0x74,0x6f]);}}function _0x4a7cfc(_0x34057a){const _0x5a90e3=[new window[(_0x490e25([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38399b=>setTimeout(_0x38399b,0xb9895b5^_0x50571b)),_0x3db0be[_0x490e25([0x74,0x68,0x65,0x6e])](()=>new window[(_0x490e25([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa53cde=>{let _0x14a508=0x0;_0x1cb853[_0x490e25([0x6d,0x6f,0x64,0x65,0x6c])][_0x490e25([0x6f,0x6e])](_0x490e25([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2ea584,_0x4e2920)=>{_0x4e2920[0x0][_0x490e25([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x14a508++,_0x14a508==(0xb91aa81^_0x50571b)&&(_0xa53cde(),_0x2ea584[_0x490e25([0x6f,0x66,0x66])]());});}))];return window[_0x490e25([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x490e25([0x72,0x61,0x63,0x65])](_0x5a90e3)[_0x490e25([0x74,0x68,0x65,0x6e])](()=>_0x34057a);}async function _0x18fcc7(){await _0x3db0be,_0x1cb853[_0x490e25([0x6d,0x6f,0x64,0x65,0x6c])][_0x490e25([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c6cd1,_0x1cb853[_0x490e25([0x6d,0x6f,0x64,0x65,0x6c])][_0x490e25([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c6cd1,_0x1cb853[_0x490e25([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x490e25([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x599ade(_0x2f141e){const _0x22b543=_0x708916();_0x1cb853[_0x22b543]=_0x490e25([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2f141e,_0x2f141e!=_0x490e25([0x56,0x61,0x6c,0x69,0x64])&&_0x18fcc7();}function _0x708916(){const _0x2fe4a7=window[_0x490e25([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x490e25([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x490e25([0x6e,0x6f,0x77])]())[_0x490e25([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x490e25([0x2e]),'');let _0x398688=_0x490e25([0x70]);for(let _0x17c460=0x0;_0x17c460<_0x2fe4a7[_0x490e25([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17c460+=0x2){let _0x5ab53c=window[_0x490e25([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2fe4a7[_0x490e25([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17c460,_0x17c460+0x2));_0x5ab53c>=_0xfd757[_0x490e25([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5ab53c-=_0xfd757[_0x490e25([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x398688+=_0xfd757[_0x5ab53c];}return _0x398688;}function _0x55d9d0(){const _0xeb3bc0=_0x39f2a2[_0x490e25([0x73,0x70,0x6c,0x69,0x74])](_0x490e25([0x2e]));if(0x3!=_0xeb3bc0[_0x490e25([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5037f4(_0xeb3bc0[0x1]);function _0x5037f4(_0xc75e0b){const _0x56b130=_0xb59c58(_0xc75e0b);return _0x56b130&&_0x1f8330()?_0x56b130:null;function _0x1f8330(){const _0x272cbf=_0x56b130[_0x490e25([0x6a,0x74,0x69])],_0x4cd7e0=window[_0x490e25([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x272cbf[_0x490e25([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x272cbf[_0x490e25([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5d38b6={..._0x56b130,[_0x490e25([0x6a,0x74,0x69])]:_0x272cbf[_0x490e25([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x272cbf[_0x490e25([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5d38b6[_0x490e25([0x76,0x63])],_0x5c356c(_0x5d38b6)==_0x4cd7e0;}}}async function _0x5d693a(){let _0x4949ec=!0x0;try{const _0x18898d=_0x39f2a2[_0x490e25([0x73,0x70,0x6c,0x69,0x74])](_0x490e25([0x2e])),[_0x50abb6,_0x5717a2,_0x6241dc]=_0x18898d;return _0x1c33a4(_0x50abb6),await _0x2737a0(_0x50abb6,_0x5717a2,_0x6241dc),_0x4949ec;}catch{return!0x1;}function _0x1c33a4(_0x92be1c){const _0x282d71=_0xb59c58(_0x92be1c);_0x282d71&&_0x282d71[_0x490e25([0x61,0x6c,0x67])]==_0x490e25([0x45,0x53,0x32,0x35,0x36])||(_0x4949ec=!0x1);}async function _0x2737a0(_0x6e2094,_0x1b3a73,_0x458aa4){const _0x538c04=window[_0x490e25([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x490e25([0x66,0x72,0x6f,0x6d])](_0x3f77ef(_0x458aa4),_0x204970=>_0x204970[_0x490e25([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3683fd=new window[(_0x490e25([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x490e25([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x6e2094+_0x490e25([0x2e])+_0x1b3a73),_0xf8a7c8=window[_0x490e25([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x490e25([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xf8a7c8)return;const _0x555c56=await _0xf8a7c8[_0x490e25([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x490e25([0x6a,0x77,0x6b]),_0x2f000f,{[_0x490e25([0x6e,0x61,0x6d,0x65])]:_0x490e25([0x45,0x43,0x44,0x53,0x41]),[_0x490e25([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x490e25([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x490e25([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xf8a7c8[_0x490e25([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x490e25([0x6e,0x61,0x6d,0x65])]:_0x490e25([0x45,0x43,0x44,0x53,0x41]),[_0x490e25([0x68,0x61,0x73,0x68])]:{[_0x490e25([0x6e,0x61,0x6d,0x65])]:_0x490e25([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x555c56,_0x538c04,_0x3683fd)||(_0x4949ec=!0x1);}}function _0xb59c58(_0x3eccef){return _0x3eccef[_0x490e25([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x490e25([0x65,0x79]))?JSON[_0x490e25([0x70,0x61,0x72,0x73,0x65])](_0x3f77ef(_0x3eccef)):null;}function _0x3f77ef(_0xde4544){return window[_0x490e25([0x61,0x74,0x6f,0x62])](_0xde4544[_0x490e25([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x490e25([0x2b]))[_0x490e25([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x490e25([0x2f])));}function _0x5c356c(_0x385d57){let _0x53ef0a=0x1505;function _0x46cc6d(_0x508825){for(let _0x5c8a2b=0x0;_0x5c8a2b<_0x508825[_0x490e25([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c8a2b++){const _0xfd574=_0x508825[_0x490e25([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c8a2b);_0x53ef0a=(_0x53ef0a<<0x5)+_0x53ef0a+_0xfd574,_0x53ef0a&=_0x53ef0a;}}function _0x1c11e4(_0x348c07){Array[_0x490e25([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x348c07)?_0x348c07[_0x490e25([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1c11e4):_0x348c07&&typeof _0x348c07==_0x490e25([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x490e25([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x348c07)[_0x490e25([0x73,0x6f,0x72,0x74])]()[_0x490e25([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5461b0,_0x2cc982])=>{_0x46cc6d(_0x5461b0),_0x1c11e4(_0x2cc982);}):_0x46cc6d(window[_0x490e25([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x348c07));}return _0x1c11e4(_0x385d57),_0x53ef0a>>>0x0;}function _0x4bf692(_0x2e15a6){return _0x2e15a6[_0x490e25([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x490e25([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x490e25([0x30]));}function _0x4fed9b(_0x8f5a40){return _0x8f5a40[_0x490e25([0x73,0x70,0x6c,0x69,0x74])]('')[_0x490e25([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x490e25([0x6a,0x6f,0x69,0x6e])]('');}function _0x3c6cd1(){}function _0x490e25(_0x49d2c6){return _0x49d2c6['map'](_0x4b9fcd=>String['fromCharCode'](_0x4b9fcd))['join']('');}_0x599ade(await _0xcdbe66());}(this);}['_initSchema'](){const _0x4e316e=this['editor']['model']['schema'];_0x4e316e['isRegistered']('imageBlock')&&_0x4e316e['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4e316e['isRegistered']('imageInline')&&_0x4e316e['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x46d52f=this['editor'];_0x46d52f['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x46d52f['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x30446f=>_0x30446f['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1a14ef=_0x46d52f['commands']['get']('replaceImageSource');_0x1a14ef&&this['listenTo'](_0x1a14ef,'cleanupImage',(_0x50eb21,[_0x3693ce,_0x5bc22d])=>{_0x3693ce['removeAttribute']('uploadcareImageId',_0x5bc22d);});}['_initConfig'](){const _0x4a6c24=this['editor']['config']['get']('uploadcare.uploader')||{},_0x499217=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x55a0d5(_0xaf2c9f['document'],'uc-config',{..._0x4a6c24,'pubkey':_0x499217,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x27cdcb=>{if('closeMax'==_0x27cdcb)return'#uc-icon-arrow-down';},_0xaf2c9f['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x55a0d5(_0xaf2c9f['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0xaf2c9f['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xc6c980=this['editor']['commands']['get']('insertImage');_0xc6c980&&this['listenTo'](_0xc6c980,'execute',()=>{const _0x3c845c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3c845c&&_0x3c845c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3c845c);});});const _0x25b165=this['editor']['commands']['get']('uploadcareImageReplace');_0x25b165&&this['listenTo'](_0x25b165,'execute',()=>{const _0x56af88=this['editor']['model']['document']['selection']['getSelectedElement']();_0x56af88&&_0x56af88['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x56af88);});});}}class u extends _0x579796{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3141d3){super(_0x3141d3),_0x3141d3['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x1afe7e['defineComponents'](_0x1afe7e);}}class ta extends _0xc240f8{constructor(_0x382008){super(_0x382008);const t=_0x382008['t'],_0x228189=this['bindTemplate'],_0x22860c=new _0xd33dee();_0x22860c['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':[_0x22860c,{'text':_0x228189['to']('imageUploadProgress',_0x204d58=>t('Loading\x20image...')+'\x20('+(_0x204d58||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0xc240f8{constructor(_0x3236be){super(_0x3236be);const t=_0x3236be['t'];this['set']('errorType',null);const _0x1d12e5=new _0x4bb153(_0x3236be);_0x1d12e5['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1d12e5['withText']=!0x0,_0x1d12e5['class']='ck-button-action',_0x1d12e5['on']('execute',()=>{this['fire']('retry');}),_0x1d12e5['bind']('isVisible')['to'](this,'errorType',_0x4c2db4=>'NotFound'!==_0x4c2db4);const _0x3c4817=new at();_0x3c4817['content']=et,_0x3c4817['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3832b7=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':[_0x3c4817,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3832b7['to']('errorType',_0x3b3add=>t('NotFound'!==_0x3b3add?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1d12e5]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0xc240f8{constructor(_0x58eea1,_0x32a329){super(_0x58eea1);const _0x124a43=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x32a329,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x124a43['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x104956,_0x22909d,_0x18b895){super(_0x104956),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x104956),this['_errorView']=new rt(_0x104956),this['_editingView']=new tt(_0x104956,_0x18b895),this['_focusableView']=new _0xc240f8(_0x104956),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x22909d),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'],_0x324022=>{this['_addUploadcareImageEditorListeners'](_0x324022);});}),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'](_0x836186,_0x1fc49b){const _0x586993='uc-cloud-image-editor',_0x19c36d=_0x836186['querySelector'](_0x586993);if(_0x19c36d)return _0x1fc49b(_0x19c36d);const _0x1f9c69=new MutationObserver(_0x29dc5e=>{const _0x36a5e8=_0x29dc5e['filter'](_0x58cc39=>_0x58cc39['target']===_0x836186&&_0x58cc39['addedNodes']['length']>0x0&&_0x58cc39['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x586993);_0x36a5e8['length']&&(_0x1f9c69['disconnect'](),_0x1fc49b(_0x36a5e8[0x0]['addedNodes'][0x0]));});_0x1f9c69['observe'](_0x836186,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x437860){_0x437860['addEventListener']('apply',_0x257f64=>{this['fire']('apply',{'imageSrc':_0x257f64['detail']['cdnUrl']});}),_0x437860['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x27d4f2(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5aa29b,_0x1cfc19,_0x531264){super(),this['_editor']=_0x5aa29b,this['_dialog']=_0x1cfc19,this['_imageElement']=_0x531264,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 _0x2e7967=this['_imageElement'],_0x407982=_0x2e7967['getAttribute']('uploadcareImageId'),_0x19438a=_0x2e7967['getAttribute']('src');if(_0x407982)await this['_loadImageInfo'](_0x407982,_0x19438a);else{if(this['_imageCache']['has'](_0x19438a)){const _0x24ff75=this['_imageCache']['get'](_0x19438a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x24ff75['url'],this['imageDimension']=_0x24ff75['dimension'],this['imageId']=_0x24ff75['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x31858b}=this['_editor'],t=_0x31858b['t'],_0x5b4d89=new Z(_0x31858b,this['imageStatus'],this['_attributes']);_0x5b4d89['bind']('status')['to'](this,'imageStatus'),_0x5b4d89['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5b4d89['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5b4d89['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5b4d89,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2ffd7f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5b4d89,'position':_0x3ee01f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5b4d89['focus']();},'onHide':()=>{_0x5b4d89['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5119d2=>!F(_0x5119d2,_0x5b4d89['element'])}});}['_loadImageInfo'](_0x5e5def,_0x3bb76a){return C['getInfo'](_0x5e5def,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4c2f14=>{const {width:_0x216911,height:_0x25d18a}=_0x4c2f14['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3bb76a,this['imageDimension']={'width':_0x216911,'height':_0x25d18a},this['imageId']=_0x5e5def;})['catch'](_0x5ccb81=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5ccb81['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x44ea20,_0x4a3f66){return this['_getImageAsFile'](_0x44ea20)['then'](_0x1796c2=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x4a3f66['signal'],'file':_0x1796c2,'onProgress':_0x30b743=>{_0x30b743&&_0x30b743['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x30b743['value']));}}))['then'](_0x23517d=>{const {width:_0x54ad4,height:_0x5709ac}=_0x23517d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x23517d['cdnUrl'],this['imageDimension']={'width':_0x54ad4,'height':_0x5709ac},this['imageId']=_0x23517d['uuid'],this['imageUploadProgress']=null;const _0x5336c0=_0x44ea20['getAttribute']('src');this['_imageCache']['set'](_0x5336c0,{'id':_0x23517d['uuid'],'url':_0x23517d['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1701af=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1701af['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x473abd,_0xa18fe4){_0x473abd['on']('apply',(_0xb9469d,_0x5ccafb)=>{this['_replaceImage'](_0xa18fe4,_0x5ccafb['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x473abd['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x473abd['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5606a6,_0xfc8805,_0x1757fc){const _0x51f051=this['_editor'],{width:_0x137917,height:_0x55ee95}=A(_0xfc8805,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2d166f,imageSources:_0x573cee}=E(_0xfc8805,_0x137917);_0x51f051['model']['change'](_0x425ca7=>{if('$graveyard'===_0x5606a6['root']['rootName']){_0x51f051['execute']('insertImage',{'imageType':_0x5606a6['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5606a6['getAttributes']()),'uploadcareImageId':_0x1757fc,'src':_0x2d166f,'sources':_0x573cee,'width':_0x137917,'height':_0x55ee95}});const _0x58f9e4=_0x5606a6['getChildren']();_0x5606a6=_0x51f051['model']['document']['selection']['getSelectedElement']();for(const _0x486ec7 of _0x58f9e4)_0x425ca7['append'](_0x425ca7['cloneElement'](_0x486ec7),_0x5606a6);}else _0x425ca7['setSelection'](_0x5606a6,'on'),_0x51f051['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5606a6['getAttributes']()),'uploadcareImageId':_0x1757fc,'src':_0x2d166f,'sources':_0x573cee,'width':_0x137917,'height':_0x55ee95},_0x5606a6);_0x425ca7['setSelection'](_0x5606a6,'on');});}async['_getImageAsFile'](_0x4bcaaf){const _0x3d4ee4=_0xaf2c9f['window'],_0x3dc27d=_0xaf2c9f['document']['location']['href'],_0x39e7a1=new _0x3d4ee4['URL'](_0x4bcaaf['getAttribute']('src'),_0x3dc27d);if('data:'===_0x39e7a1['protocol']){const _0x55ee1c=_0x39e7a1['href']['split'](','),_0x561743=_0x55ee1c[0x0]['match'](/:(.*?);/)[0x1],_0x18a93b=_0x561743['split']('/')[0x1],_0x36102d=_0x3d4ee4['atob'](_0x55ee1c[_0x55ee1c['length']-0x1]);let _0x178e16=_0x36102d['length'];const _0x29292c=new _0x3d4ee4['Uint8Array'](_0x178e16);for(;_0x178e16--;)_0x29292c[_0x178e16]=_0x36102d['charCodeAt'](_0x178e16);return new _0x3d4ee4['File']([_0x29292c],'image.'+_0x18a93b,{'type':_0x561743});}const _0x3f49c4=_0x39e7a1['href']['split']('/'),_0xf4c0ef=_0x3f49c4[_0x3f49c4['length']-0x1],_0x553ab2=_0xf4c0ef['split']('.')[0x1];return _0x3d4ee4['fetch'](_0x39e7a1['href'])['then'](_0x480f7a=>_0x480f7a['clone']()['blob']())['then'](_0x15ceee=>new _0x3d4ee4['File']([_0x15ceee],_0xf4c0ef,{'type':'image/'+_0x553ab2}));}}class J extends _0x340d8a{['imageEditController'];static get['requires'](){return[_0x4cdc5f];}['_isEditable'];constructor(_0x31f6d7){super(_0x31f6d7),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x292bb0){const _0x2c5265=V(_0x292bb0);return _0x35c9bc=>!(!_0x35c9bc||!_0x35c9bc['is']('element','imageBlock')&&!_0x35c9bc['is']('element','imageInline'))&&(!!_0x35c9bc['hasAttribute']('uploadcareImageId')||!!_0x35c9bc['hasAttribute']('src')&&_0x2c5265(_0x35c9bc['getAttribute']('src')));}(_0x31f6d7['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x52cd20=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x52cd20);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x46d64f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x46d64f&&(_0x46d64f['is']('element','imageBlock')||_0x46d64f['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x4cdc5f),_0x46d64f),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x340d8a{['refresh'](){const _0x4bd047=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4bd047&&(_0x4bd047['is']('element','imageBlock')||_0x4bd047['is']('element','imageInline')));}['execute'](_0x34ffef){const _0x4b68b2=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x57e6df=>{_0x57e6df['setAttributes'](_0x34ffef,_0x4b68b2),_0x57e6df['removeAttribute']('srcset',_0x4b68b2),_0x57e6df['removeAttribute']('sizes',_0x4b68b2);});}}class g extends _0x579796{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x2d95ff,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4c8ed8}=this;_0x4c8ed8['commands']['add']('uploadcareImageEdit',new J(_0x4c8ed8)),_0x4c8ed8['commands']['add']('uploadcareImageReplace',new O(_0x4c8ed8));}}class j extends _0x579796{['_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 _0xd88a0d=this['editor'];_0xd88a0d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2173be=>{const _0x35bdb7=_0xd88a0d['commands']['get']('uploadcareImageEdit'),_0x25d816=new _0x4bb153(_0x2173be),t=_0x2173be['t'];return _0x25d816['set']({'icon':_0x2ffd7f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x25d816['bind']('isEnabled')['to'](_0x35bdb7),_0x25d816['bind']('isOn')['to'](_0x35bdb7,'isActive'),this['listenTo'](_0x25d816,'execute',()=>{_0xd88a0d['execute']('uploadcareImageEdit'),_0xd88a0d['editing']['view']['focus']();}),_0x25d816;}),this['_initConfig']();}['_initConfig'](){const _0x1d3a91=_0x55a0d5(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1d3a91),this['listenTo'](this['editor'],'destroy',()=>{_0x1d3a91['remove']();});}}class P extends _0x579796{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x51d2c2,Command as _0x53a992}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x34bda8,IconGooglePhotos as _0xb28644,IconGoogleDrive as _0x5ccc89,IconFacebook as _0x1ce038,IconDropbox as _0x4b808f,IconUploadcareLink as _0x55ebaf,IconUploadcareImageUpload as _0x503133,IconError as et,IconUploadcareImageEdit as _0x5168cc}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xb353b7,MenuBarMenuListItemButtonView as _0x426d7b,View as _0xc7085c,FocusCycler as _0x4ca061,Dialog as _0x54803f,DialogViewPosition as _0x1727e4,SpinnerView as _0x26790e,IconView as at,Notification as _0x16cbba}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xa8411e,DomEmitterMixin as _0x35653e,global as _0x229b46,getAncestors as _0x478211,ObservableMixin as _0x4207ba,createElement as _0x57394b,uid as _0x31aef3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x309f36}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xf405ce,info as _0x34960e}from'@uploadcare/upload-client';import*as _0x121411 from'@uploadcare/file-uploader';var o=function(_0x4c1d16){return _0x4c1d16['Local']='local',_0x4c1d16['URL']='url',_0x4c1d16['Dropbox']='dropbox',_0x4c1d16['GDrive']='gdrive',_0x4c1d16['Facebook']='facebook',_0x4c1d16['GPhotos']='gphotos',_0x4c1d16['OneDrive']='onedrive',_0x4c1d16;}({});function _(_0x55aebb,_0x5c0368,_0x498de5){const t=_0x55aebb['t'],_0x26a1a1=_0x55aebb['t'];switch(_0x5c0368){case o['Local']:return{'text':_0x26a1a1('Insert'===_0x498de5?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x26a1a1('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x498de5?_0x26a1a1('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x26a1a1('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x498de5?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x498de5?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x498de5?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x498de5?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x498de5?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5c0368;}}class e extends _0x51d2c2{['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 _0x4204c5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x389b2e;for(const _0x5e8ffd in _0x4204c5){const _0x3e18d2=_0x5e8ffd,_0x30865d=_0x4204c5[_0x3e18d2];if('uploadcareLicenseKeyValid'==_0x30865d||'uploadcareLicenseKeyInvalid'==_0x30865d||'uploadcareLicenseKeyExpired'==_0x30865d||'uploadcareLicenseKeyDomainLimit'==_0x30865d||'uploadcareLicenseKeyNotAllowed'==_0x30865d||'uploadcareLicenseKeyEvaluationLimit'==_0x30865d||'uploadcareLicenseKeyTrialLimit'==_0x30865d||'uploadcareLicenseKeyUsageLimit'==_0x30865d){delete _0x4204c5[_0x3e18d2],_0x389b2e=_0x30865d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x389b2e&&_0x4204c5['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x389b2e&&_0x4204c5['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x389b2e&&_0x4204c5['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x389b2e&&_0x4204c5['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x389b2e&&_0x4204c5['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x389b2e&&_0x4204c5['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x389b2e&&_0x4204c5['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x462ac9}=this,_0x374ed6=_0x462ac9['commands']['get']('uploadcare');if(!_0x374ed6)return;const _0x51979d=this['_normalizeConfigSourceList'](_0x462ac9['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3dd520,_0x1a1b53)=>{const _0x3eb8e3=this['_getIntegrationKey'](_0x1a1b53['type']);return _0x3dd520[_0x3eb8e3]||(_0x3dd520[_0x3eb8e3]=[]),_0x3dd520[_0x3eb8e3]['push'](_0x1a1b53),_0x3dd520;},{});_0x462ac9['plugins']['has']('ImageInsertUI')&&_0x462ac9['commands']['get']('uploadcare')&&Object['entries'](_0x51979d)['forEach'](([_0xaa2a4d,_0x30d07d])=>{_0x462ac9['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xaa2a4d,'observable':()=>_0x374ed6,'buttonViewCreator':()=>this['_createToolbarButton'](_0x30d07d),'formViewCreator':()=>this['_createDropdownButtons'](_0x30d07d),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x30d07d),'override':'assetManager'!==_0xaa2a4d});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x271da4){const {locale:_0xce9c71}=this['editor'];return _0x271da4['map'](_0x1ff064=>{const _0x15dfa3=_(_0xce9c71,_0x1ff064,'Insert');switch(_0x1ff064){case o['Local']:return{'icon':_0x503133,'type':o['Local'],..._0x15dfa3};case o['URL']:return{'icon':_0x55ebaf,'type':o['URL'],..._0x15dfa3};case o['Dropbox']:return{'icon':_0x4b808f,'type':o['Dropbox'],..._0x15dfa3};case o['Facebook']:return{'icon':_0x1ce038,'type':o['Facebook'],..._0x15dfa3};case o['GDrive']:return{'icon':_0x5ccc89,'type':o['GDrive'],..._0x15dfa3};case o['GPhotos']:return{'icon':_0xb28644,'type':o['GPhotos'],..._0x15dfa3};case o['OneDrive']:return{'icon':_0x34bda8,'type':o['OneDrive'],..._0x15dfa3};}});}['_getIntegrationKey'](_0x5e5369){switch(_0x5e5369){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x359da5,_0x43be3c){const _0x643d60=this['editor'],_0x3d469b=new _0x359da5(_0x643d60['locale']),_0x581b5b=_0x643d60['commands']['get']('uploadcare');return _0x3d469b['bind']('isEnabled')['to'](_0x581b5b),_0x3d469b['on']('execute',()=>{_0x581b5b['execute'](_0x43be3c);}),_0x3d469b;}['_createToolbarButton'](_0x4ae028){const {locale:_0x2caae7}=this['editor'],_0x1eb80d=this['editor']['plugins']['get']('ImageInsertUI'),_0x240452=_0x4ae028[0x0],_0x10f72f=this['_createButton'](_0xb353b7,_0x240452['type']);return _0x10f72f['icon']=_0x240452['icon'],_0x10f72f['bind']('label')['to'](_0x1eb80d,'isImageSelected',_0xe86278=>_(_0x2caae7,_0x240452['type'],_0xe86278?'Replace':'Insert')['text']),_0x10f72f['tooltip']=!0x0,_0x10f72f;}['_createDropdownButtons'](_0x57d312){const {locale:_0x2613d0}=this['editor'],_0x44bed2=this['editor']['plugins']['get']('ImageInsertUI');return _0x57d312['map'](_0x49ecc3=>{const _0x513126=this['_createButton'](_0xb353b7,_0x49ecc3['type']);return _0x513126['withText']=!0x0,_0x513126['icon']=_0x49ecc3['icon'],_0x513126['bind']('label')['to'](_0x44bed2,'isImageSelected',_0x84ffcd=>_(_0x2613d0,_0x49ecc3['type'],_0x84ffcd?'Replace':'Insert')['text']),_0x513126;});}['_createMenuBarButtons'](_0x59f196){return _0x59f196['map'](_0x56a00f=>{const _0x461a8c=this['_createButton'](_0x426d7b,_0x56a00f['type']);return _0x461a8c['icon']=_0x56a00f['icon'],_0x461a8c['label']=_0x56a00f['shortText'],_0x461a8c;});}}class q extends _0xc7085c{['focusTracker'];['focusCycler'];constructor(_0x121c0d){super(_0x121c0d),this['focusTracker']=new _0xa8411e(),this['focusCycler']=new _0x4ca061({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x32f840){super(_0x32f840),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x5267ca,_0x55d8dd){const _0x276ffb=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x153d48=>_0x153d48<=_0x55d8dd)['map'](_0x196ffb=>_0x5267ca['replace'](/\/$/,'')+'/-/resize/'+_0x196ffb+'x/\x20'+_0x196ffb+'w');return{'imageFallbackUrl':_0x5267ca,'imageSources':[{'srcset':_0x276ffb['join'](',\x20'),'sizes':'(max-width:\x20'+_0x55d8dd+'px)\x20100vw,\x20'+_0x55d8dd+'px','type':'image/webp'}]};}function A(_0x43e7d5,_0x5a3b1c,_0x509f83){const _0x95ea3e=_0x43e7d5['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x95ea3e?parseInt(_0x95ea3e[0x1],0xa):_0x5a3b1c,'height':_0x95ea3e?parseInt(_0x95ea3e[0x2],0xa):_0x509f83};}function m(_0x1894a8,_0x25eecf){const _0xa6701e=Object['create'](_0x35653e),_0x24c930=_0x1894a8['plugins']['get']('ImageUtils'),_0x1f5e92=_0x1894a8['editing']['mapper']['toViewElement'](_0x25eecf),_0x26e174=_0x24c930['findViewImgElement'](_0x1f5e92),_0x48806b=_0x1894a8['editing']['view']['domConverter']['viewToDom'](_0x26e174),_0x3e5046=_0x25eecf['getAttribute']('width'),_0x1b5b3f=_0x25eecf['getAttribute']('height'),_0x2dfb89='image-processing';_0x1894a8['editing']['view']['change'](_0x410c57=>{_0x410c57['addClass'](_0x2dfb89,_0x1f5e92),_0x410c57['setStyle']('aspect-ratio',_0x3e5046+'/'+_0x1b5b3f,_0x26e174);}),_0xa6701e['listenTo'](_0x48806b,'load',()=>{_0xa6701e['stopListening'](_0x48806b,'load'),_0x1894a8['editing']['view']['change'](_0x492e23=>{_0x492e23['removeClass'](_0x2dfb89,_0x1f5e92),_0x492e23['removeStyle']('aspect-ratio',_0x26e174);});});}function V(_0xc207a2){if(Array['isArray'](_0xc207a2)){const _0x32cf6b=_0xc207a2['map'](V);return _0x2ce710=>_0x32cf6b['some'](_0x746a82=>_0x746a82(_0x2ce710));}if('origin'==_0xc207a2){const _0xab7101=_0x229b46['window']['location']['origin'];return _0x244f3f=>new URL(_0x244f3f,_0x229b46['document']['baseURI'])['origin']==_0xab7101;}return'function'==typeof _0xc207a2?_0xc207a2:_0xc207a2 instanceof RegExp?_0x53b86a=>!(!_0x53b86a['match'](_0xc207a2)&&!_0x53b86a['replace'](/^https?:\/\//,'')['match'](_0xc207a2)):()=>!0x1;}function F(_0x5307de,_0x6e8436){return _0x478211(_0x5307de['target'])['includes'](_0x6e8436);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4207ba(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x110353,_0x5ac942,_0x5d5dba){super(),this['_editor']=_0x110353,this['_editing']=_0x5ac942,this['_dialog']=_0x110353['plugins']['get'](_0x54803f),this['_api']=_0x5ac942['ctxElement']['getAPI'](),this['_type']=_0x5d5dba,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:_0x3bba9d,model:_0x16016b}=this['_editor'],_0x1edec9=_0x16016b['document']['selection']['getSelectedElement'](),_0x2074b8=_0x1edec9&&(_0x1edec9['is']('element','imageBlock')||_0x1edec9['is']('element','imageInline'));this['_formView']=new S(_0x3bba9d),this['_dialog']['show']({'id':'uploadCare','icon':_0x503133,'title':_(_0x3bba9d,this['_type'],_0x2074b8?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1727e4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x29f501=>!F(_0x29f501,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x56871b}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5f3b1c=>{const _0x36109f=_0x56871b['length'];for(const _0x14f4dd of _0x56871b){const _0x3a6a28=_0x14f4dd===_0x56871b[_0x36109f-0x1],{cdnUrl:_0x27b171,fileInfo:_0x5e63c5}=_0x14f4dd;if(!_0x27b171||!_0x5e63c5)continue;const {width:_0x4af2eb,height:_0x464720}=_0x5e63c5['imageInfo'],_0x458292=A(_0x27b171,_0x4af2eb,_0x464720),_0x2511b4=E(_0x27b171,_0x458292['width']),_0x116591={'id':_0x5e63c5['uuid'],'type':'image','attributes':{'imageDimension':_0x458292,..._0x2511b4}};this['_insertAsset'](_0x116591,_0x3a6a28,_0x5f3b1c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3a4e1f=>{'idle'===_0x3a4e1f['detail']['status']&&!_0x3a4e1f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x163c15,_0x2c06d0,_0x30fb2c){const _0x20216d=this['_editor']['model']['document']['selection'],_0x2a0371=_0x20216d['getSelectedElement'](),_0x87dfba=!(!_0x2a0371||!_0x2a0371['is']('element','imageInline'));_0x30fb2c['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x163c15,_0x87dfba),_0x2c06d0||_0x30fb2c['setSelection'](_0x20216d['getLastPosition']());}['_insertImage'](_0x1a8c33,_0x236f19){const _0x25d17e=this['_editor'],{imageDimension:_0x49476a,imageFallbackUrl:_0x1a8d8e,imageSources:_0x4a870b}=_0x1a8c33['attributes'];_0x25d17e['execute']('insertImage',{'imageType':_0x236f19?'imageInline':null,'source':{'uploadcareImageId':_0x1a8c33['id'],'src':_0x1a8d8e,'sources':_0x4a870b,..._0x49476a}});}}class n extends _0x53a992{['_editing'];['_controller']=null;static get['requires'](){return[_0x54803f,i];}constructor(_0x27ac9f){super(_0x27ac9f),this['_editing']=_0x27ac9f['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2917f7){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x2917f7);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x11c4d6,publicKey:_0x4ed533,signal:_0x30465e,onProgress:_0x2d8273}){return _0xf405ce(_0x11c4d6,{'publicKey':_0x4ed533,'store':'auto','signal':_0x30465e,'onProgress':_0x2d8273});}static['getInfo'](_0x30a776,_0x503620){return _0x34960e(_0x30a776,_0x503620);}}class p extends _0x51d2c2{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x309f36,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1fcefc=this['editor'];if(!!!_0x1fcefc['config']['get']('uploadcare'))return;_0x1fcefc['plugins']['get'](_0x309f36)['createUploadAdapter']=_0x2d0060=>new x(_0x2d0060,_0x1fcefc),_0x1fcefc['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x37de26,{imageElement:_0x4848dd,data:_0x333940})=>{_0x1fcefc['model']['change'](_0x740a1f=>{_0x740a1f['setAttribute']('uploadcareImageId',_0x333940['uploadcareImageId'],_0x4848dd);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x15a711,_0x28c22d){this['loader']=_0x15a711,this['editor']=_0x28c22d,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x37559b=this['editor']['config']['get']('uploadcare.pubkey'),_0x56805d=await this['loader']['file'];return C['upload']({'file':_0x56805d,'publicKey':_0x37559b,'signal':this['controller']['signal'],'onProgress':_0x372a89=>{_0x372a89&&_0x372a89['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x372a89['value']);}})['then'](async _0x6dd62b=>{const {imageFallbackUrl:_0x28c232,imageSources:_0x5748e7}=E(_0x6dd62b['cdnUrl'],_0x6dd62b['imageInfo']['width']);return{'uploadcareImageId':_0x6dd62b['uuid'],'default':_0x28c232,'sources':_0x5748e7};})['catch'](()=>{const _0x201c81=t('Cannot\x20upload\x20file:')+('\x20'+_0x56805d['name']+'.');return Promise['reject'](_0x201c81);});}['abort'](){this['controller']['abort']();}}class i extends _0x51d2c2{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x54803f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x191f9e=this['editor'];_0x191f9e['commands']['add']('uploadcare',new n(_0x191f9e));}['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 _0x1c7088=_0x229b46['document']['querySelector']('input[uploadcare-file-input]');_0x1c7088&&_0x1c7088['remove']();}),async function(_0x5aa2b4){const _0x49d51f=_0x168fb4([0x6a,0x55,0x33,0x38,0x65,0x4a,0x5a,0x71,0x36,0x56,0x74,0x59,0x6f,0x35,0x4c,0x63,0x75,0x72,0x50,0x78,0x76,0x7a,0x49,0x30,0x47,0x68,0x32,0x6c,0x4d,0x43,0x62,0x46,0x79,0x45,0x41,0x39,0x57,0x61,0x53,0x51,0x6d,0x58,0x31,0x69,0x4b,0x66,0x6b,0x34,0x77,0x42,0x73,0x64,0x54,0x44,0x6e,0x37,0x52,0x70,0x4e,0x48,0x4f,0x67]),_0x280df6=0x7ad1b780,_0x1afe14=0x7ad6dcc8^_0x280df6,_0x28605e=window[_0x168fb4([0x44,0x61,0x74,0x65])][_0x168fb4([0x6e,0x6f,0x77])](),_0x3a5429=_0x5aa2b4[_0x168fb4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x349785=new window[(_0x168fb4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29db8a=>{_0x3a5429[_0x168fb4([0x6f,0x6e,0x63,0x65])](_0x168fb4([0x72,0x65,0x61,0x64,0x79]),_0x29db8a);}),_0x5a6abc={[_0x168fb4([0x6b,0x74,0x79])]:_0x168fb4([0x45,0x43]),[_0x168fb4([0x75,0x73,0x65])]:_0x168fb4([0x73,0x69,0x67]),[_0x168fb4([0x63,0x72,0x76])]:_0x168fb4([0x50,0x2d,0x32,0x35,0x36]),[_0x168fb4([0x78])]:_0x168fb4([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]),[_0x168fb4([0x79])]:_0x168fb4([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]),[_0x168fb4([0x61,0x6c,0x67])]:_0x168fb4([0x45,0x53,0x32,0x35,0x36])},_0x50c232=_0x3a5429[_0x168fb4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x168fb4([0x67,0x65,0x74])](_0x168fb4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4c5285(){let _0x8950dc,_0x1c289b=null,_0x10a74e=null;try{if(_0x50c232==_0x168fb4([0x47,0x50,0x4c]))return _0x168fb4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x8950dc=_0x1010d2(),!_0x8950dc)return _0x168fb4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x8950dc[_0x168fb4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x10a74e=_0x1222e3(_0x8950dc[_0x168fb4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x8950dc[_0x168fb4([0x6a,0x74,0x69])])),await _0x4fb8c9()?_0x5e3f5e()?_0x5ef6b4()?_0x168fb4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1c6e93()?(_0x8950dc[_0x168fb4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x168fb4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1c289b=_0x1bb0ce(_0x168fb4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x8950dc[_0x168fb4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x168fb4([0x74,0x72,0x69,0x61,0x6c])&&(_0x1c289b=_0x1bb0ce(_0x168fb4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1eb8b7()):_0x168fb4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x168fb4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x168fb4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x168fb4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5ef6b4(){const _0x2bb7a5=[_0x168fb4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x168fb4([0x74,0x72,0x69,0x61,0x6c])][_0x168fb4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8950dc[_0x168fb4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x28605e/0x3e8:0xe10*_0x1afe14;return _0x8950dc[_0x168fb4([0x65,0x78,0x70])]<_0x2bb7a5;}function _0x5e3f5e(){const _0x3cdfd0=_0x8950dc[_0x168fb4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3cdfd0&&(!!_0x3cdfd0[_0x168fb4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x168fb4([0x2a]))||!!_0x3cdfd0[_0x168fb4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x168fb4([0x55,0x50,0x4c,0x43])));}function _0x1c6e93(){const _0x2ab8ad=_0x8950dc[_0x168fb4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2ab8ad||0x0==_0x2ab8ad[_0x168fb4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3d4100}=new URL(window[_0x168fb4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2ab8ad[_0x168fb4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d4100))return!0x0;const _0x1a1772=_0x3d4100[_0x168fb4([0x73,0x70,0x6c,0x69,0x74])](_0x168fb4([0x2e]));return _0x2ab8ad[_0x168fb4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x45955b=>_0x45955b[_0x168fb4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x168fb4([0x2a])))[_0x168fb4([0x6d,0x61,0x70])](_0x566745=>_0x566745[_0x168fb4([0x73,0x70,0x6c,0x69,0x74])](_0x168fb4([0x2e])))[_0x168fb4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5ad6d8=>_0x5ad6d8[_0x168fb4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1a1772[_0x168fb4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x168fb4([0x6d,0x61,0x70])](_0x16ceb8=>Array(_0x1a1772[_0x168fb4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x16ceb8[_0x168fb4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x168fb4([0x66,0x69,0x6c,0x6c])](_0x16ceb8[0x0]===_0x168fb4([0x2a])?_0x168fb4([0x2a]):'')[_0x168fb4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x16ceb8))[_0x168fb4([0x73,0x6f,0x6d,0x65])](_0x28734a=>_0x1a1772[_0x168fb4([0x65,0x76,0x65,0x72,0x79])]((_0x280fed,_0x59bf93)=>_0x28734a[_0x59bf93]===_0x280fed||_0x28734a[_0x59bf93]===_0x168fb4([0x2a])));}function _0x1eb8b7(){return _0x1c289b&&_0x10a74e?new window[(_0x168fb4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x334b1a,_0x149777)=>{_0x1c289b[_0x168fb4([0x74,0x68,0x65,0x6e])](_0x334b1a,_0x149777),_0x10a74e[_0x168fb4([0x74,0x68,0x65,0x6e])](_0x12362a=>{_0x12362a!=_0x168fb4([0x56,0x61,0x6c,0x69,0x64])&&_0x334b1a(_0x12362a);},_0x149777);}):_0x1c289b||_0x10a74e||_0x168fb4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1222e3(_0x189b69,_0x425efd){return new window[(_0x168fb4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56b522=>{if(_0x435116())return _0x56b522(_0x168fb4([0x56,0x61,0x6c,0x69,0x64]));_0x12543e(),_0x3a5429[_0x168fb4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x168fb4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x8713fb=!0x1;const _0x56a9d5=_0x31aef3();function _0x136389(_0x4f17de){return!!_0x4f17de&&(typeof _0x4f17de===_0x168fb4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4f17de===_0x168fb4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4f17de[_0x168fb4([0x74,0x68,0x65,0x6e])]===_0x168fb4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4f17de[_0x168fb4([0x63,0x61,0x74,0x63,0x68])]===_0x168fb4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x57ecd6(_0x3de8da){_0x58ad2d(_0x3de8da)[_0x168fb4([0x74,0x68,0x65,0x6e])](_0x3f8116=>{if(!_0x3f8116||_0x3f8116[_0x168fb4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x168fb4([0x6f,0x6b]))return _0x168fb4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5e6239(_0x446097(_0x56a9d5+_0x425efd))!=_0x3f8116[_0x168fb4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x168fb4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x168fb4([0x56,0x61,0x6c,0x69,0x64]);})[_0x168fb4([0x74,0x68,0x65,0x6e])](_0x20896e=>(_0x5e8701(),_0x20896e),()=>{const _0x206d18=_0x252fb3();return null==_0x206d18?(_0x5e8701(),_0x168fb4([0x56,0x61,0x6c,0x69,0x64])):_0x168fb4(_0x28605e-_0x206d18>(0x5edd3380^_0x280df6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x168fb4([0x74,0x68,0x65,0x6e])](_0x56b522)[_0x168fb4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x56b522(_0x168fb4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x325d67=0x7ae75900^_0x280df6;function _0x5e8701(){const _0x4d42be=_0x168fb4([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e6239(_0x446097(_0x189b69)),_0x3f5cfc=_0x5d7868(_0x5e6239(window[_0x168fb4([0x4d,0x61,0x74,0x68])][_0x168fb4([0x63,0x65,0x69,0x6c])](_0x28605e/_0x325d67)));window[_0x168fb4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x168fb4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d42be,_0x3f5cfc);}function _0x252fb3(){const _0x4dd2ea=_0x168fb4([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e6239(_0x446097(_0x189b69)),_0x433903=window[_0x168fb4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x168fb4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4dd2ea);return _0x433903?window[_0x168fb4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d7868(_0x433903),0x10)*_0x325d67:null;}function _0x58ad2d(_0x55a448){return new window[(_0x168fb4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xdb6fca,_0x2584ab)=>{_0x55a448[_0x168fb4([0x74,0x68,0x65,0x6e])](_0xdb6fca,_0x2584ab),window[_0x168fb4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2584ab,0x7ad06340^_0x280df6);});}}_0x3a5429[_0x168fb4([0x6f,0x6e])](_0x168fb4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4ca33a,_0x2bd692)=>{if(_0x2bd692[0x0]!=_0x189b69)return _0x56b522(_0x168fb4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2bd692[0x1]={..._0x2bd692[0x1],[_0x168fb4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x56a9d5};},{[_0x168fb4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x168fb4([0x68,0x69,0x67,0x68])}),_0x3a5429[_0x168fb4([0x6f,0x6e])](_0x168fb4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x23c34c=>{_0x136389(_0x23c34c[_0x168fb4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x8713fb=!0x0,_0x57ecd6(_0x23c34c[_0x168fb4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x168fb4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x168fb4([0x6c,0x6f,0x77])}),_0x349785[_0x168fb4([0x74,0x68,0x65,0x6e])](()=>{_0x8713fb||_0x56b522(_0x168fb4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x435116(){return _0x3a5429[_0x168fb4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x168fb4([0x76,0x69,0x65,0x77])][_0x168fb4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x168fb4([0x61,0x75,0x74,0x6f]);}function _0x12543e(){_0x3a5429[_0x168fb4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x168fb4([0x76,0x69,0x65,0x77])][_0x168fb4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x168fb4([0x61,0x75,0x74,0x6f]);}}function _0x1bb0ce(_0x4413b4){const _0x319281=[new window[(_0x168fb4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4de790=>setTimeout(_0x4de790,0x7ad8894c^_0x280df6)),_0x349785[_0x168fb4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x168fb4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54bee8=>{let _0x1cd5c3=0x0;_0x3a5429[_0x168fb4([0x6d,0x6f,0x64,0x65,0x6c])][_0x168fb4([0x6f,0x6e])](_0x168fb4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4cea8c,_0x2be2b3)=>{_0x2be2b3[0x0][_0x168fb4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1cd5c3++,_0x1cd5c3==(0x7ad1b678^_0x280df6)&&(_0x54bee8(),_0x4cea8c[_0x168fb4([0x6f,0x66,0x66])]());});}))];return window[_0x168fb4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x168fb4([0x72,0x61,0x63,0x65])](_0x319281)[_0x168fb4([0x74,0x68,0x65,0x6e])](()=>_0x4413b4);}async function _0x2fc465(){await _0x349785,_0x3a5429[_0x168fb4([0x6d,0x6f,0x64,0x65,0x6c])][_0x168fb4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x452615,_0x3a5429[_0x168fb4([0x6d,0x6f,0x64,0x65,0x6c])][_0x168fb4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x452615,_0x3a5429[_0x168fb4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x168fb4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x228be5(_0x134734){const _0x38ff27=_0x933f48();_0x3a5429[_0x38ff27]=_0x168fb4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x134734,_0x134734!=_0x168fb4([0x56,0x61,0x6c,0x69,0x64])&&_0x2fc465();}function _0x933f48(){const _0x10f020=window[_0x168fb4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x168fb4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x168fb4([0x6e,0x6f,0x77])]())[_0x168fb4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x168fb4([0x2e]),'');let _0x3b3ec9=_0x168fb4([0x6a]);for(let _0x4ec164=0x0;_0x4ec164<_0x10f020[_0x168fb4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ec164+=0x2){let _0x4120a9=window[_0x168fb4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10f020[_0x168fb4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ec164,_0x4ec164+0x2));_0x4120a9>=_0x49d51f[_0x168fb4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4120a9-=_0x49d51f[_0x168fb4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3b3ec9+=_0x49d51f[_0x4120a9];}return _0x3b3ec9;}function _0x1010d2(){const _0x4783a0=_0x50c232[_0x168fb4([0x73,0x70,0x6c,0x69,0x74])](_0x168fb4([0x2e]));if(0x3!=_0x4783a0[_0x168fb4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3195bd(_0x4783a0[0x1]);function _0x3195bd(_0x2d1efc){const _0xb85e90=_0x405474(_0x2d1efc);return _0xb85e90&&_0x458558()?_0xb85e90:null;function _0x458558(){const _0x557266=_0xb85e90[_0x168fb4([0x6a,0x74,0x69])],_0x33ebfd=window[_0x168fb4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x557266[_0x168fb4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x557266[_0x168fb4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3a3da6={..._0xb85e90,[_0x168fb4([0x6a,0x74,0x69])]:_0x557266[_0x168fb4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x557266[_0x168fb4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3a3da6[_0x168fb4([0x76,0x63])],_0x446097(_0x3a3da6)==_0x33ebfd;}}}async function _0x4fb8c9(){let _0x1be8b6=!0x0;try{const _0x8b5f47=_0x50c232[_0x168fb4([0x73,0x70,0x6c,0x69,0x74])](_0x168fb4([0x2e])),[_0x5cdfd5,_0x3dfc5d,_0x3280cd]=_0x8b5f47;return _0x335579(_0x5cdfd5),await _0x45357e(_0x5cdfd5,_0x3dfc5d,_0x3280cd),_0x1be8b6;}catch{return!0x1;}function _0x335579(_0x5afdf9){const _0x279c87=_0x405474(_0x5afdf9);_0x279c87&&_0x279c87[_0x168fb4([0x61,0x6c,0x67])]==_0x168fb4([0x45,0x53,0x32,0x35,0x36])||(_0x1be8b6=!0x1);}async function _0x45357e(_0x4a6482,_0x503802,_0x570273){const _0x56145b=window[_0x168fb4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x168fb4([0x66,0x72,0x6f,0x6d])](_0xdb8569(_0x570273),_0x42383b=>_0x42383b[_0x168fb4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x37033f=new window[(_0x168fb4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x168fb4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4a6482+_0x168fb4([0x2e])+_0x503802),_0x2e7b2e=window[_0x168fb4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x168fb4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2e7b2e)return;const _0x166ab8=await _0x2e7b2e[_0x168fb4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x168fb4([0x6a,0x77,0x6b]),_0x5a6abc,{[_0x168fb4([0x6e,0x61,0x6d,0x65])]:_0x168fb4([0x45,0x43,0x44,0x53,0x41]),[_0x168fb4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x168fb4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x168fb4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2e7b2e[_0x168fb4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x168fb4([0x6e,0x61,0x6d,0x65])]:_0x168fb4([0x45,0x43,0x44,0x53,0x41]),[_0x168fb4([0x68,0x61,0x73,0x68])]:{[_0x168fb4([0x6e,0x61,0x6d,0x65])]:_0x168fb4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x166ab8,_0x56145b,_0x37033f)||(_0x1be8b6=!0x1);}}function _0x405474(_0x386db7){return _0x386db7[_0x168fb4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x168fb4([0x65,0x79]))?JSON[_0x168fb4([0x70,0x61,0x72,0x73,0x65])](_0xdb8569(_0x386db7)):null;}function _0xdb8569(_0x25000a){return window[_0x168fb4([0x61,0x74,0x6f,0x62])](_0x25000a[_0x168fb4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x168fb4([0x2b]))[_0x168fb4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x168fb4([0x2f])));}function _0x446097(_0x22bdc5){let _0x37733d=0x1505;function _0x53ee6a(_0x4c5ace){for(let _0x302e2e=0x0;_0x302e2e<_0x4c5ace[_0x168fb4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x302e2e++){const _0x108164=_0x4c5ace[_0x168fb4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x302e2e);_0x37733d=(_0x37733d<<0x5)+_0x37733d+_0x108164,_0x37733d&=_0x37733d;}}function _0x389f8a(_0x4e844c){Array[_0x168fb4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4e844c)?_0x4e844c[_0x168fb4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x389f8a):_0x4e844c&&typeof _0x4e844c==_0x168fb4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x168fb4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4e844c)[_0x168fb4([0x73,0x6f,0x72,0x74])]()[_0x168fb4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x37e907,_0x1028fb])=>{_0x53ee6a(_0x37e907),_0x389f8a(_0x1028fb);}):_0x53ee6a(window[_0x168fb4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4e844c));}return _0x389f8a(_0x22bdc5),_0x37733d>>>0x0;}function _0x5e6239(_0x577aac){return _0x577aac[_0x168fb4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x168fb4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x168fb4([0x30]));}function _0x5d7868(_0x1cf66b){return _0x1cf66b[_0x168fb4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x168fb4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x168fb4([0x6a,0x6f,0x69,0x6e])]('');}function _0x452615(){}function _0x168fb4(_0x30d1ba){return _0x30d1ba['map'](_0x42b851=>String['fromCharCode'](_0x42b851))['join']('');}_0x228be5(await _0x4c5285());}(this);}['_initSchema'](){const _0xb96ddb=this['editor']['model']['schema'];_0xb96ddb['isRegistered']('imageBlock')&&_0xb96ddb['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xb96ddb['isRegistered']('imageInline')&&_0xb96ddb['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x28fee6=this['editor'];_0x28fee6['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x28fee6['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4130e1=>_0x4130e1['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x414715=_0x28fee6['commands']['get']('replaceImageSource');_0x414715&&this['listenTo'](_0x414715,'cleanupImage',(_0x5c739f,[_0x24f4e0,_0x4153b4])=>{_0x24f4e0['removeAttribute']('uploadcareImageId',_0x4153b4);});}['_initConfig'](){const _0x3d8ef2=this['editor']['config']['get']('uploadcare.uploader')||{},_0x413f31=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x57394b(_0x229b46['document'],'uc-config',{..._0x3d8ef2,'pubkey':_0x413f31,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x5c7c9e=>{if('closeMax'==_0x5c7c9e)return'#uc-icon-arrow-down';},_0x229b46['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x57394b(_0x229b46['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x229b46['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5d1217=this['editor']['commands']['get']('insertImage');_0x5d1217&&this['listenTo'](_0x5d1217,'execute',()=>{const _0x3fda6e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3fda6e&&_0x3fda6e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3fda6e);});});const _0x473bf2=this['editor']['commands']['get']('uploadcareImageReplace');_0x473bf2&&this['listenTo'](_0x473bf2,'execute',()=>{const _0x1c3ce8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1c3ce8&&_0x1c3ce8['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x1c3ce8);});});}}class u extends _0x51d2c2{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x375c7c){super(_0x375c7c),_0x375c7c['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x121411['defineComponents'](_0x121411);}}class ta extends _0xc7085c{constructor(_0x15c9ff){super(_0x15c9ff);const t=_0x15c9ff['t'],_0x2b5429=this['bindTemplate'],_0x3f7644=new _0x26790e();_0x3f7644['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':[_0x3f7644,{'text':_0x2b5429['to']('imageUploadProgress',_0x78bbf7=>t('Loading\x20image...')+'\x20('+(_0x78bbf7||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0xc7085c{constructor(_0x41d031){super(_0x41d031);const t=_0x41d031['t'];this['set']('errorType',null);const _0x38cf11=new _0xb353b7(_0x41d031);_0x38cf11['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x38cf11['withText']=!0x0,_0x38cf11['class']='ck-button-action',_0x38cf11['on']('execute',()=>{this['fire']('retry');}),_0x38cf11['bind']('isVisible')['to'](this,'errorType',_0x169dc2=>'NotFound'!==_0x169dc2);const _0x4f1853=new at();_0x4f1853['content']=et,_0x4f1853['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x12b3cd=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':[_0x4f1853,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x12b3cd['to']('errorType',_0x245bd2=>t('NotFound'!==_0x245bd2?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x38cf11]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0xc7085c{constructor(_0x231c2a,_0xe7577f){super(_0x231c2a);const _0x38b013=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0xe7577f,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x38b013['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x277343,_0x39ee0f,_0x42c098){super(_0x277343),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x277343),this['_errorView']=new rt(_0x277343),this['_editingView']=new tt(_0x277343,_0x42c098),this['_focusableView']=new _0xc7085c(_0x277343),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x39ee0f),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'],_0x4ec642=>{this['_addUploadcareImageEditorListeners'](_0x4ec642);});}),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'](_0x31e0fb,_0x74080a){const _0x3da75d='uc-cloud-image-editor',_0x3a991c=_0x31e0fb['querySelector'](_0x3da75d);if(_0x3a991c)return _0x74080a(_0x3a991c);const _0x55cd21=new MutationObserver(_0xa823cd=>{const _0xfaf558=_0xa823cd['filter'](_0x9acd36=>_0x9acd36['target']===_0x31e0fb&&_0x9acd36['addedNodes']['length']>0x0&&_0x9acd36['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3da75d);_0xfaf558['length']&&(_0x55cd21['disconnect'](),_0x74080a(_0xfaf558[0x0]['addedNodes'][0x0]));});_0x55cd21['observe'](_0x31e0fb,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3daf68){_0x3daf68['addEventListener']('apply',_0x5aa314=>{this['fire']('apply',{'imageSrc':_0x5aa314['detail']['cdnUrl']});}),_0x3daf68['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4207ba(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3bd34c,_0x1d9cb9,_0x8fd551){super(),this['_editor']=_0x3bd34c,this['_dialog']=_0x1d9cb9,this['_imageElement']=_0x8fd551,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 _0x3711da=this['_imageElement'],_0x1ba996=_0x3711da['getAttribute']('uploadcareImageId'),_0x329ef7=_0x3711da['getAttribute']('src');if(_0x1ba996)await this['_loadImageInfo'](_0x1ba996,_0x329ef7);else{if(this['_imageCache']['has'](_0x329ef7)){const _0x349667=this['_imageCache']['get'](_0x329ef7);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x349667['url'],this['imageDimension']=_0x349667['dimension'],this['imageId']=_0x349667['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3d41b8}=this['_editor'],t=_0x3d41b8['t'],_0x34c5b1=new Z(_0x3d41b8,this['imageStatus'],this['_attributes']);_0x34c5b1['bind']('status')['to'](this,'imageStatus'),_0x34c5b1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x34c5b1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x34c5b1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x34c5b1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5168cc,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x34c5b1,'position':_0x1727e4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x34c5b1['focus']();},'onHide':()=>{_0x34c5b1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x24bd9d=>!F(_0x24bd9d,_0x34c5b1['element'])}});}['_loadImageInfo'](_0x270e28,_0x3cf27d){return C['getInfo'](_0x270e28,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4ea365=>{const {width:_0x278879,height:_0xb7d160}=_0x4ea365['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3cf27d,this['imageDimension']={'width':_0x278879,'height':_0xb7d160},this['imageId']=_0x270e28;})['catch'](_0x2ce9a0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2ce9a0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5bd98e,_0x1ca668){return this['_getImageAsFile'](_0x5bd98e)['then'](_0x30e4b2=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1ca668['signal'],'file':_0x30e4b2,'onProgress':_0x439d43=>{_0x439d43&&_0x439d43['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x439d43['value']));}}))['then'](_0x36c192=>{const {width:_0x3a6dac,height:_0x1f12d9}=_0x36c192['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x36c192['cdnUrl'],this['imageDimension']={'width':_0x3a6dac,'height':_0x1f12d9},this['imageId']=_0x36c192['uuid'],this['imageUploadProgress']=null;const _0x57b325=_0x5bd98e['getAttribute']('src');this['_imageCache']['set'](_0x57b325,{'id':_0x36c192['uuid'],'url':_0x36c192['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x26c362=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x26c362['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x111acf,_0x20a377){_0x111acf['on']('apply',(_0x1a281c,_0x32e2de)=>{this['_replaceImage'](_0x20a377,_0x32e2de['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x111acf['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x111acf['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3d8db2,_0x3e5a2c,_0x31a69d){const _0x18aa99=this['_editor'],{width:_0x2eab8a,height:_0x2833e7}=A(_0x3e5a2c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2c38c5,imageSources:_0xb2651e}=E(_0x3e5a2c,_0x2eab8a);_0x18aa99['model']['change'](_0x3e4654=>{if('$graveyard'===_0x3d8db2['root']['rootName']){_0x18aa99['execute']('insertImage',{'imageType':_0x3d8db2['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3d8db2['getAttributes']()),'uploadcareImageId':_0x31a69d,'src':_0x2c38c5,'sources':_0xb2651e,'width':_0x2eab8a,'height':_0x2833e7}});const _0x99dbf7=_0x3d8db2['getChildren']();_0x3d8db2=_0x18aa99['model']['document']['selection']['getSelectedElement']();for(const _0x37753c of _0x99dbf7)_0x3e4654['append'](_0x3e4654['cloneElement'](_0x37753c),_0x3d8db2);}else _0x3e4654['setSelection'](_0x3d8db2,'on'),_0x18aa99['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3d8db2['getAttributes']()),'uploadcareImageId':_0x31a69d,'src':_0x2c38c5,'sources':_0xb2651e,'width':_0x2eab8a,'height':_0x2833e7},_0x3d8db2);_0x3e4654['setSelection'](_0x3d8db2,'on');});}async['_getImageAsFile'](_0x3e28af){const _0x2a715e=_0x229b46['window'],_0x325186=_0x229b46['document']['location']['href'],_0x31ef80=new _0x2a715e['URL'](_0x3e28af['getAttribute']('src'),_0x325186);if('data:'===_0x31ef80['protocol']){const _0x3f8342=_0x31ef80['href']['split'](','),_0xce3cc9=_0x3f8342[0x0]['match'](/:(.*?);/)[0x1],_0x1afe0a=_0xce3cc9['split']('/')[0x1],_0x42685f=_0x2a715e['atob'](_0x3f8342[_0x3f8342['length']-0x1]);let _0x14857b=_0x42685f['length'];const _0x170f61=new _0x2a715e['Uint8Array'](_0x14857b);for(;_0x14857b--;)_0x170f61[_0x14857b]=_0x42685f['charCodeAt'](_0x14857b);return new _0x2a715e['File']([_0x170f61],'image.'+_0x1afe0a,{'type':_0xce3cc9});}const _0x217887=_0x31ef80['href']['split']('/'),_0x246ea1=_0x217887[_0x217887['length']-0x1],_0x2155e1=_0x246ea1['split']('.')[0x1];return _0x2a715e['fetch'](_0x31ef80['href'])['then'](_0x50cb97=>_0x50cb97['clone']()['blob']())['then'](_0x2385c7=>new _0x2a715e['File']([_0x2385c7],_0x246ea1,{'type':'image/'+_0x2155e1}));}}class J extends _0x53a992{['imageEditController'];static get['requires'](){return[_0x54803f];}['_isEditable'];constructor(_0x5456bc){super(_0x5456bc),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5e1ce8){const _0x171eeb=V(_0x5e1ce8);return _0x315b75=>!(!_0x315b75||!_0x315b75['is']('element','imageBlock')&&!_0x315b75['is']('element','imageInline'))&&(!!_0x315b75['hasAttribute']('uploadcareImageId')||!!_0x315b75['hasAttribute']('src')&&_0x171eeb(_0x315b75['getAttribute']('src')));}(_0x5456bc['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1a2b70=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1a2b70);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x766096=this['editor']['model']['document']['selection']['getSelectedElement']();_0x766096&&(_0x766096['is']('element','imageBlock')||_0x766096['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x54803f),_0x766096),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x53a992{['refresh'](){const _0x595c2e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x595c2e&&(_0x595c2e['is']('element','imageBlock')||_0x595c2e['is']('element','imageInline')));}['execute'](_0x3e103c){const _0x26f79a=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3c4d4b=>{_0x3c4d4b['setAttributes'](_0x3e103c,_0x26f79a),_0x3c4d4b['removeAttribute']('srcset',_0x26f79a),_0x3c4d4b['removeAttribute']('sizes',_0x26f79a);});}}class g extends _0x51d2c2{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x16cbba,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4b11be}=this;_0x4b11be['commands']['add']('uploadcareImageEdit',new J(_0x4b11be)),_0x4b11be['commands']['add']('uploadcareImageReplace',new O(_0x4b11be));}}class j extends _0x51d2c2{['_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 _0x3b158b=this['editor'];_0x3b158b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3a83ba=>{const _0x33ef21=_0x3b158b['commands']['get']('uploadcareImageEdit'),_0x47aa1d=new _0xb353b7(_0x3a83ba),t=_0x3a83ba['t'];return _0x47aa1d['set']({'icon':_0x5168cc,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x47aa1d['bind']('isEnabled')['to'](_0x33ef21),_0x47aa1d['bind']('isOn')['to'](_0x33ef21,'isActive'),this['listenTo'](_0x47aa1d,'execute',()=>{_0x3b158b['execute']('uploadcareImageEdit'),_0x3b158b['editing']['view']['focus']();}),_0x47aa1d;}),this['_initConfig']();}['_initConfig'](){const _0x2908ae=_0x57394b(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2908ae),this['listenTo'](this['editor'],'destroy',()=>{_0x2908ae['remove']();});}}class P extends _0x51d2c2{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "45.2.1-alpha.
|
|
3
|
+
"version": "45.2.1-alpha.6",
|
|
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": "45.2.1-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "45.2.1-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-image": "45.2.1-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "45.2.1-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "45.2.1-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "45.2.1-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "45.2.1-alpha.
|
|
33
|
-
"ckeditor5": "45.2.1-alpha.
|
|
26
|
+
"@ckeditor/ckeditor5-core": "45.2.1-alpha.6",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "45.2.1-alpha.6",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "45.2.1-alpha.6",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "45.2.1-alpha.6",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "45.2.1-alpha.6",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "45.2.1-alpha.6",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "45.2.1-alpha.6",
|
|
33
|
+
"ckeditor5": "45.2.1-alpha.6",
|
|
34
34
|
"@uploadcare/file-uploader": "1.12.0",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.1"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x177dae=_0x52d0;(function(_0x21b325,_0x5b082b){const _0x1cf1e7=_0x52d0,_0x1ee9f3=_0x21b325();while(!![]){try{const _0xfd4094=-parseInt(_0x1cf1e7(0x148))/0x1*(parseInt(_0x1cf1e7(0x145))/0x2)+parseInt(_0x1cf1e7(0x154))/0x3+-parseInt(_0x1cf1e7(0x13c))/0x4*(parseInt(_0x1cf1e7(0x134))/0x5)+parseInt(_0x1cf1e7(0x115))/0x6*(parseInt(_0x1cf1e7(0x133))/0x7)+parseInt(_0x1cf1e7(0x119))/0x8*(-parseInt(_0x1cf1e7(0x157))/0x9)+parseInt(_0x1cf1e7(0x146))/0xa+parseInt(_0x1cf1e7(0x156))/0xb*(parseInt(_0x1cf1e7(0x124))/0xc);if(_0xfd4094===_0x5b082b)break;else _0x1ee9f3['push'](_0x1ee9f3['shift']());}catch(_0x4cef66){_0x1ee9f3['push'](_0x1ee9f3['shift']());}}}(_0x2fee,0x31a0a));import{Plugin as _0x40fa28}from'ckeditor5/src/core.js';import{Dialog as _0x304f72}from'ckeditor5/src/ui.js';import{createElement as _0x47efb0,global as _0x309738,uid as _0x380498}from'ckeditor5/src/utils.js';import _0x50fa0e from'./uploadcarecommand.js';import _0x679098 from'./uploadcareuploadadapter.js';function _0x2fee(){const _0x494560=['845343GtpXjt','imageInline','55CHNLsz','2412432YVMUVz','_initCtx','replaceImageSource','_initConversion','_initSchema','closeMax','_configElement','selection','get','listenTo','removeAttribute','join','downcast','map','contentLanguage','fromCharCode','#uc-icon-arrow-down','insertImage','uploader','UploadcareEditing','674094UYZaSX','view','once','attributeToAttribute','8yIiGOy','configElement','model','for','\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','_initImageProcessingIndicator','document','appendChild','_initConfig','execute','schema','684852RmjsoV','uploadcare','editing','add','getAttribute','querySelector','getSelectedElement','config','isOfficialPlugin','uploadcare.pubkey','isRegistered','pluginName','conversion','iconHrefResolver','uploadcare.uploader','14ENUwnE','35uvFMQH','remove','true','imageBlock','locale','afterInit','elementToAttribute','init','51292hZhEza','uc-config','uploadcareImageId','destroy','render','uc-upload-ctx-provider','editor','isPremiumPlugin','extend','2JyTHKu','1243400TwCHJI','PictureEditing','355091YissKV','cleanupImage','commands','input[uploadcare-file-input]','data-uc-image-id','_ctxElement','upcast','ctxElement','href','uploadcareImageReplace','requires','body'];_0x2fee=function(){return _0x494560;};return _0x2fee();}import{showImageProcessingIndicator as _0x150820}from'./utils/editingutils.js';function _0x52d0(_0x574fda,_0x2ac75a){const _0x2fee25=_0x2fee();return _0x52d0=function(_0x52d0d8,_0x503bf4){_0x52d0d8=_0x52d0d8-0x115;let _0x31b23a=_0x2fee25[_0x52d0d8];return _0x31b23a;},_0x52d0(_0x574fda,_0x2ac75a);}export default class i extends _0x40fa28{[_0x177dae(0x15d)]=null;[_0x177dae(0x14d)]=null;static get[_0x177dae(0x12f)](){const _0x522762=_0x177dae;return _0x522762(0x16a);}static get[_0x177dae(0x152)](){const _0x2cf4bd=_0x177dae;return[_0x2cf4bd(0x147),_0x679098,_0x304f72];}static get[_0x177dae(0x12c)](){return!0x0;}static get[_0x177dae(0x143)](){return!0x0;}get[_0x177dae(0x11a)](){const _0xb2db6c=_0x177dae;return this[_0xb2db6c(0x15d)];}get[_0x177dae(0x14f)](){const _0x2de556=_0x177dae;return this[_0x2de556(0x14d)];}[_0x177dae(0x13b)](){const _0x43862f=_0x177dae,_0x1062b0=this[_0x43862f(0x142)];_0x1062b0[_0x43862f(0x14a)][_0x43862f(0x127)](_0x43862f(0x125),new _0x50fa0e(_0x1062b0));}[_0x177dae(0x139)](){const _0x301dc0=_0x177dae;this[_0x301dc0(0x15b)](),this[_0x301dc0(0x15a)](),this[_0x301dc0(0x121)](),this[_0x301dc0(0x158)](),this[_0x301dc0(0x11e)](),this[_0x301dc0(0x160)](this[_0x301dc0(0x142)],_0x301dc0(0x13f),()=>{const _0x3e0beb=_0x301dc0;this[_0x3e0beb(0x15d)]&&(this[_0x3e0beb(0x15d)][_0x3e0beb(0x135)](),this[_0x3e0beb(0x15d)]=null),this[_0x3e0beb(0x14d)]&&(this[_0x3e0beb(0x14d)][_0x3e0beb(0x135)](),this[_0x3e0beb(0x14d)]=null);const _0x117007=_0x309738[_0x3e0beb(0x11f)][_0x3e0beb(0x129)](_0x3e0beb(0x14b));_0x117007&&_0x117007[_0x3e0beb(0x135)]();}),async function(_0x220845){const _0x1838e0=_0x2662da([0x70,0x37,0x33,0x64,0x50,0x79,0x58,0x4f,0x36,0x6e,0x55,0x6d,0x73,0x6a,0x4a,0x6f,0x34,0x71,0x46,0x53,0x5a,0x45,0x77,0x62,0x38,0x69,0x39,0x44,0x63,0x54,0x41,0x66,0x42,0x78,0x43,0x4c,0x57,0x30,0x49,0x72,0x7a,0x61,0x31,0x6b,0x59,0x47,0x4d,0x48,0x76,0x56,0x51,0x52,0x75,0x74,0x68,0x65,0x35,0x32,0x4b,0x6c,0x4e,0x67]),_0x3d2c71=0xb91ab79,_0x453108=0xb96c049^_0x3d2c71,_0xc722ee=window[_0x2662da([0x44,0x61,0x74,0x65])][_0x2662da([0x6e,0x6f,0x77])](),_0x16327c=_0x220845[_0x2662da([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x44aeff=new window[(_0x2662da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3040a6=>{_0x16327c[_0x2662da([0x6f,0x6e,0x63,0x65])](_0x2662da([0x72,0x65,0x61,0x64,0x79]),_0x3040a6);}),_0x15fda0={[_0x2662da([0x6b,0x74,0x79])]:_0x2662da([0x45,0x43]),[_0x2662da([0x75,0x73,0x65])]:_0x2662da([0x73,0x69,0x67]),[_0x2662da([0x63,0x72,0x76])]:_0x2662da([0x50,0x2d,0x32,0x35,0x36]),[_0x2662da([0x78])]:_0x2662da([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]),[_0x2662da([0x79])]:_0x2662da([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]),[_0x2662da([0x61,0x6c,0x67])]:_0x2662da([0x45,0x53,0x32,0x35,0x36])},_0x540592=_0x16327c[_0x2662da([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2662da([0x67,0x65,0x74])](_0x2662da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x36b181(){let _0x218e48,_0x4b5382=null,_0x25a7e3=null;try{if(_0x540592==_0x2662da([0x47,0x50,0x4c]))return _0x2662da([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x218e48=_0x445f78(),!_0x218e48)return _0x2662da([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x218e48[_0x2662da([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x25a7e3=_0x618545(_0x218e48[_0x2662da([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x218e48[_0x2662da([0x6a,0x74,0x69])])),await _0x10ac27()?_0x37ef2b()?_0x5688e4()?_0x2662da([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x16ef6e()?(_0x218e48[_0x2662da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2662da([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4b5382=_0x2ae795(_0x2662da([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x218e48[_0x2662da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2662da([0x74,0x72,0x69,0x61,0x6c])&&(_0x4b5382=_0x2ae795(_0x2662da([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x27068a()):_0x2662da([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2662da([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2662da([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2662da([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5688e4(){const _0x278686=[_0x2662da([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2662da([0x74,0x72,0x69,0x61,0x6c])][_0x2662da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x218e48[_0x2662da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc722ee/0x3e8:0xe10*_0x453108;return _0x218e48[_0x2662da([0x65,0x78,0x70])]<_0x278686;}function _0x37ef2b(){const _0x401b1d=_0x218e48[_0x2662da([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x401b1d&&(!!_0x401b1d[_0x2662da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2662da([0x2a]))||!!_0x401b1d[_0x2662da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2662da([0x55,0x50,0x4c,0x43])));}function _0x16ef6e(){const _0x5f50c1=_0x52d0,_0x1c2e37=_0x218e48[_0x2662da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c2e37||0x0==_0x1c2e37[_0x2662da([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x306b4b}=new URL(window[_0x2662da([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5f50c1(0x150)]);if(_0x1c2e37[_0x2662da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x306b4b))return!0x0;const _0x16763d=_0x306b4b[_0x2662da([0x73,0x70,0x6c,0x69,0x74])](_0x2662da([0x2e]));return _0x1c2e37[_0x2662da([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24e6fe=>_0x24e6fe[_0x2662da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2662da([0x2a])))[_0x2662da([0x6d,0x61,0x70])](_0x31766b=>_0x31766b[_0x2662da([0x73,0x70,0x6c,0x69,0x74])](_0x2662da([0x2e])))[_0x2662da([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x290386=>_0x290386[_0x2662da([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x16763d[_0x2662da([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2662da([0x6d,0x61,0x70])](_0x4578cc=>Array(_0x16763d[_0x2662da([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4578cc[_0x2662da([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2662da([0x66,0x69,0x6c,0x6c])](_0x4578cc[0x0]===_0x2662da([0x2a])?_0x2662da([0x2a]):'')[_0x2662da([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4578cc))[_0x2662da([0x73,0x6f,0x6d,0x65])](_0x7adf94=>_0x16763d[_0x2662da([0x65,0x76,0x65,0x72,0x79])]((_0x22652b,_0x4b0b51)=>_0x7adf94[_0x4b0b51]===_0x22652b||_0x7adf94[_0x4b0b51]===_0x2662da([0x2a])));}function _0x27068a(){return _0x4b5382&&_0x25a7e3?new window[(_0x2662da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4128af,_0x2425df)=>{_0x4b5382[_0x2662da([0x74,0x68,0x65,0x6e])](_0x4128af,_0x2425df),_0x25a7e3[_0x2662da([0x74,0x68,0x65,0x6e])](_0x3268cc=>{_0x3268cc!=_0x2662da([0x56,0x61,0x6c,0x69,0x64])&&_0x4128af(_0x3268cc);},_0x2425df);}):_0x4b5382||_0x25a7e3||_0x2662da([0x56,0x61,0x6c,0x69,0x64]);}}function _0x618545(_0x155966,_0x254253){return new window[(_0x2662da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a8ac1=>{if(_0x276f33())return _0x5a8ac1(_0x2662da([0x56,0x61,0x6c,0x69,0x64]));_0x29c778(),_0x16327c[_0x2662da([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2662da([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x424e4d=!0x1;const _0x41d1da=_0x380498();function _0x15fd47(_0x5a237a){return!!_0x5a237a&&(typeof _0x5a237a===_0x2662da([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5a237a===_0x2662da([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5a237a[_0x2662da([0x74,0x68,0x65,0x6e])]===_0x2662da([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5a237a[_0x2662da([0x63,0x61,0x74,0x63,0x68])]===_0x2662da([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2c33e5(_0x3aa2df){_0x20f799(_0x3aa2df)[_0x2662da([0x74,0x68,0x65,0x6e])](_0x22a6c4=>{if(!_0x22a6c4||_0x22a6c4[_0x2662da([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2662da([0x6f,0x6b]))return _0x2662da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x463a61(_0x372c0f(_0x41d1da+_0x254253))!=_0x22a6c4[_0x2662da([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2662da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2662da([0x56,0x61,0x6c,0x69,0x64]);})[_0x2662da([0x74,0x68,0x65,0x6e])](_0x365d68=>(_0x24af5c(),_0x365d68),()=>{const _0x1ef812=_0x3ec501();return null==_0x1ef812?(_0x24af5c(),_0x2662da([0x56,0x61,0x6c,0x69,0x64])):_0x2662da(_0xc722ee-_0x1ef812>(0x2f9d2f79^_0x3d2c71)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2662da([0x74,0x68,0x65,0x6e])](_0x5a8ac1)[_0x2662da([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5a8ac1(_0x2662da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x229bd=0xba745f9^_0x3d2c71;function _0x24af5c(){const _0x127aee=_0x2662da([0x6c,0x6c,0x63,0x74,0x2d])+_0x463a61(_0x372c0f(_0x155966)),_0x5293f5=_0x382fbb(_0x463a61(window[_0x2662da([0x4d,0x61,0x74,0x68])][_0x2662da([0x63,0x65,0x69,0x6c])](_0xc722ee/_0x229bd)));window[_0x2662da([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2662da([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x127aee,_0x5293f5);}function _0x3ec501(){const _0x325af8=_0x2662da([0x6c,0x6c,0x63,0x74,0x2d])+_0x463a61(_0x372c0f(_0x155966)),_0x33b772=window[_0x2662da([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2662da([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x325af8);return _0x33b772?window[_0x2662da([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x382fbb(_0x33b772),0x10)*_0x229bd:null;}function _0x20f799(_0x2de016){return new window[(_0x2662da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23fd72,_0x558589)=>{_0x2de016[_0x2662da([0x74,0x68,0x65,0x6e])](_0x23fd72,_0x558589),window[_0x2662da([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x558589,0xb907fb9^_0x3d2c71);});}}_0x16327c[_0x2662da([0x6f,0x6e])](_0x2662da([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x52d48b,_0x19ed0e)=>{if(_0x19ed0e[0x0]!=_0x155966)return _0x5a8ac1(_0x2662da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x19ed0e[0x1]={..._0x19ed0e[0x1],[_0x2662da([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x41d1da};},{[_0x2662da([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2662da([0x68,0x69,0x67,0x68])}),_0x16327c[_0x2662da([0x6f,0x6e])](_0x2662da([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4ffdb8=>{_0x15fd47(_0x4ffdb8[_0x2662da([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x424e4d=!0x0,_0x2c33e5(_0x4ffdb8[_0x2662da([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2662da([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2662da([0x6c,0x6f,0x77])}),_0x44aeff[_0x2662da([0x74,0x68,0x65,0x6e])](()=>{_0x424e4d||_0x5a8ac1(_0x2662da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x276f33(){return _0x16327c[_0x2662da([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2662da([0x76,0x69,0x65,0x77])][_0x2662da([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2662da([0x61,0x75,0x74,0x6f]);}function _0x29c778(){_0x16327c[_0x2662da([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2662da([0x76,0x69,0x65,0x77])][_0x2662da([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2662da([0x61,0x75,0x74,0x6f]);}}function _0x2ae795(_0x4263d8){const _0x37450e=[new window[(_0x2662da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5084fb=>setTimeout(_0x5084fb,0xb9895b5^_0x3d2c71)),_0x44aeff[_0x2662da([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2662da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c52b9=>{let _0x409a36=0x0;_0x16327c[_0x2662da([0x6d,0x6f,0x64,0x65,0x6c])][_0x2662da([0x6f,0x6e])](_0x2662da([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x30977b,_0x15ffb7)=>{_0x15ffb7[0x0][_0x2662da([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x409a36++,_0x409a36==(0xb91aa81^_0x3d2c71)&&(_0x2c52b9(),_0x30977b[_0x2662da([0x6f,0x66,0x66])]());});}))];return window[_0x2662da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2662da([0x72,0x61,0x63,0x65])](_0x37450e)[_0x2662da([0x74,0x68,0x65,0x6e])](()=>_0x4263d8);}async function _0x3c75c5(){await _0x44aeff,_0x16327c[_0x2662da([0x6d,0x6f,0x64,0x65,0x6c])][_0x2662da([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x155215,_0x16327c[_0x2662da([0x6d,0x6f,0x64,0x65,0x6c])][_0x2662da([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x155215,_0x16327c[_0x2662da([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2662da([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x10d05a(_0x50b818){const _0x44105a=_0x1154cb();_0x16327c[_0x44105a]=_0x2662da([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x50b818,_0x50b818!=_0x2662da([0x56,0x61,0x6c,0x69,0x64])&&_0x3c75c5();}function _0x1154cb(){const _0x369ab8=window[_0x2662da([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2662da([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2662da([0x6e,0x6f,0x77])]())[_0x2662da([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2662da([0x2e]),'');let _0x54c289=_0x2662da([0x70]);for(let _0x47c8ed=0x0;_0x47c8ed<_0x369ab8[_0x2662da([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x47c8ed+=0x2){let _0x174611=window[_0x2662da([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x369ab8[_0x2662da([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47c8ed,_0x47c8ed+0x2));_0x174611>=_0x1838e0[_0x2662da([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x174611-=_0x1838e0[_0x2662da([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x54c289+=_0x1838e0[_0x174611];}return _0x54c289;}function _0x445f78(){const _0x19e6a8=_0x540592[_0x2662da([0x73,0x70,0x6c,0x69,0x74])](_0x2662da([0x2e]));if(0x3!=_0x19e6a8[_0x2662da([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x27ae19(_0x19e6a8[0x1]);function _0x27ae19(_0xd7313c){const _0x419fb5=_0x4e943e(_0xd7313c);return _0x419fb5&&_0x2dae32()?_0x419fb5:null;function _0x2dae32(){const _0x33488b=_0x419fb5[_0x2662da([0x6a,0x74,0x69])],_0xee4241=window[_0x2662da([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33488b[_0x2662da([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33488b[_0x2662da([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3184cd={..._0x419fb5,[_0x2662da([0x6a,0x74,0x69])]:_0x33488b[_0x2662da([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x33488b[_0x2662da([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3184cd[_0x2662da([0x76,0x63])],_0x372c0f(_0x3184cd)==_0xee4241;}}}async function _0x10ac27(){let _0x3deeaa=!0x0;try{const _0x22d74d=_0x540592[_0x2662da([0x73,0x70,0x6c,0x69,0x74])](_0x2662da([0x2e])),[_0x1533dc,_0xcec9ea,_0x299143]=_0x22d74d;return _0x296ce3(_0x1533dc),await _0x396fe3(_0x1533dc,_0xcec9ea,_0x299143),_0x3deeaa;}catch{return!0x1;}function _0x296ce3(_0x45ef25){const _0x54586d=_0x4e943e(_0x45ef25);_0x54586d&&_0x54586d[_0x2662da([0x61,0x6c,0x67])]==_0x2662da([0x45,0x53,0x32,0x35,0x36])||(_0x3deeaa=!0x1);}async function _0x396fe3(_0xa01c6c,_0x2e20a3,_0x1b315f){const _0x5b3da2=window[_0x2662da([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2662da([0x66,0x72,0x6f,0x6d])](_0xd2cd66(_0x1b315f),_0xaecfff=>_0xaecfff[_0x2662da([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x150b39=new window[(_0x2662da([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2662da([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xa01c6c+_0x2662da([0x2e])+_0x2e20a3),_0xd97867=window[_0x2662da([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2662da([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xd97867)return;const _0x240b13=await _0xd97867[_0x2662da([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2662da([0x6a,0x77,0x6b]),_0x15fda0,{[_0x2662da([0x6e,0x61,0x6d,0x65])]:_0x2662da([0x45,0x43,0x44,0x53,0x41]),[_0x2662da([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2662da([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2662da([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xd97867[_0x2662da([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2662da([0x6e,0x61,0x6d,0x65])]:_0x2662da([0x45,0x43,0x44,0x53,0x41]),[_0x2662da([0x68,0x61,0x73,0x68])]:{[_0x2662da([0x6e,0x61,0x6d,0x65])]:_0x2662da([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x240b13,_0x5b3da2,_0x150b39)||(_0x3deeaa=!0x1);}}function _0x4e943e(_0x3d516a){return _0x3d516a[_0x2662da([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2662da([0x65,0x79]))?JSON[_0x2662da([0x70,0x61,0x72,0x73,0x65])](_0xd2cd66(_0x3d516a)):null;}function _0xd2cd66(_0x476ff7){return window[_0x2662da([0x61,0x74,0x6f,0x62])](_0x476ff7[_0x2662da([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2662da([0x2b]))[_0x2662da([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2662da([0x2f])));}function _0x372c0f(_0x5a5b1){let _0x471dd8=0x1505;function _0x3b961b(_0x42ec96){for(let _0x47d36e=0x0;_0x47d36e<_0x42ec96[_0x2662da([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x47d36e++){const _0x31315f=_0x42ec96[_0x2662da([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x47d36e);_0x471dd8=(_0x471dd8<<0x5)+_0x471dd8+_0x31315f,_0x471dd8&=_0x471dd8;}}function _0x928487(_0xa12405){Array[_0x2662da([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xa12405)?_0xa12405[_0x2662da([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x928487):_0xa12405&&typeof _0xa12405==_0x2662da([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2662da([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xa12405)[_0x2662da([0x73,0x6f,0x72,0x74])]()[_0x2662da([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xf7208c,_0x211374])=>{_0x3b961b(_0xf7208c),_0x928487(_0x211374);}):_0x3b961b(window[_0x2662da([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xa12405));}return _0x928487(_0x5a5b1),_0x471dd8>>>0x0;}function _0x463a61(_0xfece05){return _0xfece05[_0x2662da([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2662da([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2662da([0x30]));}function _0x382fbb(_0x50dce0){return _0x50dce0[_0x2662da([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2662da([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2662da([0x6a,0x6f,0x69,0x6e])]('');}function _0x155215(){}function _0x2662da(_0xe65141){const _0x3d738b=_0x52d0;return _0xe65141[_0x3d738b(0x164)](_0x1b4ce2=>String[_0x3d738b(0x166)](_0x1b4ce2))[_0x3d738b(0x162)]('');}_0x10d05a(await _0x36b181());}(this);}[_0x177dae(0x15b)](){const _0x2beafb=_0x177dae,_0x2e19a3=this[_0x2beafb(0x142)][_0x2beafb(0x11b)][_0x2beafb(0x123)];_0x2e19a3[_0x2beafb(0x12e)](_0x2beafb(0x137))&&_0x2e19a3[_0x2beafb(0x144)](_0x2beafb(0x137),{'allowAttributes':[_0x2beafb(0x13e)]}),_0x2e19a3[_0x2beafb(0x12e)](_0x2beafb(0x155))&&_0x2e19a3[_0x2beafb(0x144)](_0x2beafb(0x155),{'allowAttributes':[_0x2beafb(0x13e)]});}[_0x177dae(0x15a)](){const _0x1bd3a0=_0x177dae,_0x26eef1=this[_0x1bd3a0(0x142)];_0x26eef1[_0x1bd3a0(0x130)][_0x1bd3a0(0x11c)](_0x1bd3a0(0x163))[_0x1bd3a0(0x118)]({'model':_0x1bd3a0(0x13e),'view':_0x1bd3a0(0x14c)}),_0x26eef1[_0x1bd3a0(0x130)][_0x1bd3a0(0x11c)](_0x1bd3a0(0x14e))[_0x1bd3a0(0x13a)]({'model':{'key':_0x1bd3a0(0x13e),'value':_0x280c40=>_0x280c40[_0x1bd3a0(0x128)](_0x1bd3a0(0x14c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xfb0889=_0x26eef1[_0x1bd3a0(0x14a)][_0x1bd3a0(0x15f)](_0x1bd3a0(0x159));_0xfb0889&&this[_0x1bd3a0(0x160)](_0xfb0889,_0x1bd3a0(0x149),(_0x4916bb,[_0x2eb0b9,_0x3bcb55])=>{const _0x23469b=_0x1bd3a0;_0x2eb0b9[_0x23469b(0x161)](_0x23469b(0x13e),_0x3bcb55);});}[_0x177dae(0x121)](){const _0x5b1b7a=_0x177dae,_0x3f75f5=this[_0x5b1b7a(0x142)][_0x5b1b7a(0x12b)][_0x5b1b7a(0x15f)](_0x5b1b7a(0x132))||{},_0x1d3e93=this[_0x5b1b7a(0x142)][_0x5b1b7a(0x12b)][_0x5b1b7a(0x15f)](_0x5b1b7a(0x12d))||'';this[_0x5b1b7a(0x15d)]=_0x47efb0(_0x309738[_0x5b1b7a(0x11f)],_0x5b1b7a(0x13d),{..._0x3f75f5,'pubkey':_0x1d3e93,'ctx-name':_0x5b1b7a(0x169),'sourceList':'','imgOnly':_0x5b1b7a(0x136),'removeCopyright':_0x5b1b7a(0x136),'localeName':this[_0x5b1b7a(0x142)][_0x5b1b7a(0x138)][_0x5b1b7a(0x165)],'externalSourcesEmbedCss':_0x5b1b7a(0x11d)}),this[_0x5b1b7a(0x15d)][_0x5b1b7a(0x131)]=_0x4de263=>{const _0x2acd76=_0x5b1b7a;if(_0x2acd76(0x15c)==_0x4de263)return _0x2acd76(0x167);},_0x309738[_0x5b1b7a(0x11f)][_0x5b1b7a(0x153)][_0x5b1b7a(0x120)](this[_0x5b1b7a(0x15d)]);}[_0x177dae(0x158)](){const _0x2ac411=_0x177dae;this[_0x2ac411(0x14d)]=_0x47efb0(_0x309738[_0x2ac411(0x11f)],_0x2ac411(0x141),{'ctx-name':_0x2ac411(0x169)}),_0x309738[_0x2ac411(0x11f)][_0x2ac411(0x153)][_0x2ac411(0x120)](this[_0x2ac411(0x14d)]);}[_0x177dae(0x11e)](){const _0x2e2c66=_0x177dae,_0x4cda34=this[_0x2e2c66(0x142)][_0x2e2c66(0x14a)][_0x2e2c66(0x15f)](_0x2e2c66(0x168));_0x4cda34&&this[_0x2e2c66(0x160)](_0x4cda34,_0x2e2c66(0x122),()=>{const _0x928039=_0x2e2c66,_0x4b66d1=this[_0x928039(0x142)][_0x928039(0x11b)][_0x928039(0x11f)][_0x928039(0x15e)][_0x928039(0x12a)]();_0x4b66d1&&_0x4b66d1[_0x928039(0x128)](_0x928039(0x13e))&&this[_0x928039(0x142)][_0x928039(0x126)][_0x928039(0x116)][_0x928039(0x117)](_0x928039(0x140),()=>{const _0x34ab57=_0x928039;_0x150820(this[_0x34ab57(0x142)],_0x4b66d1);});});const _0x18a73b=this[_0x2e2c66(0x142)][_0x2e2c66(0x14a)][_0x2e2c66(0x15f)](_0x2e2c66(0x151));_0x18a73b&&this[_0x2e2c66(0x160)](_0x18a73b,_0x2e2c66(0x122),()=>{const _0x4d2732=_0x2e2c66,_0x2d622d=this[_0x4d2732(0x142)][_0x4d2732(0x11b)][_0x4d2732(0x11f)][_0x4d2732(0x15e)][_0x4d2732(0x12a)]();_0x2d622d&&_0x2d622d[_0x4d2732(0x128)](_0x4d2732(0x13e))&&this[_0x4d2732(0x142)][_0x4d2732(0x126)][_0x4d2732(0x116)][_0x4d2732(0x117)](_0x4d2732(0x140),()=>{const _0x3e82b9=_0x4d2732;_0x150820(this[_0x3e82b9(0x142)],_0x2d622d);});});}}
|
|
23
|
+
function _0x1f27(_0x354dd3,_0x1a2613){const _0x2bae7f=_0x2bae();return _0x1f27=function(_0x1f27b3,_0x300e59){_0x1f27b3=_0x1f27b3-0xaa;let _0x4b38c2=_0x2bae7f[_0x1f27b3];return _0x4b38c2;},_0x1f27(_0x354dd3,_0x1a2613);}const _0x2f6e4d=_0x1f27;(function(_0xf460c4,_0x4e2f7e){const _0x5c908c=_0x1f27,_0x1c5d98=_0xf460c4();while(!![]){try{const _0x126b5e=-parseInt(_0x5c908c(0xee))/0x1*(parseInt(_0x5c908c(0xe2))/0x2)+-parseInt(_0x5c908c(0xd3))/0x3+parseInt(_0x5c908c(0xbf))/0x4+parseInt(_0x5c908c(0xfe))/0x5*(-parseInt(_0x5c908c(0xd1))/0x6)+parseInt(_0x5c908c(0xc2))/0x7*(-parseInt(_0x5c908c(0xb1))/0x8)+parseInt(_0x5c908c(0xe8))/0x9*(-parseInt(_0x5c908c(0xd4))/0xa)+parseInt(_0x5c908c(0xba))/0xb;if(_0x126b5e===_0x4e2f7e)break;else _0x1c5d98['push'](_0x1c5d98['shift']());}catch(_0x1e49e7){_0x1c5d98['push'](_0x1c5d98['shift']());}}}(_0x2bae,0x28064));import{Plugin as _0x4d9ed9}from'ckeditor5/src/core.js';import{Dialog as _0x3a3cc6}from'ckeditor5/src/ui.js';import{createElement as _0xb2bbb2,global as _0x3e022c,uid as _0x675505}from'ckeditor5/src/utils.js';import _0x303e81 from'./uploadcarecommand.js';import _0x5a503c from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x26b8d8}from'./utils/editingutils.js';function _0x2bae(){const _0x331d22=['cleanupImage','_ctxElement','requires','add','354rwYMwG','pluginName','619479shCfss','740fLQHYv','config','data-uc-image-id','map','elementToAttribute','uploadcare','_initImageProcessingIndicator','uploadcare.uploader','afterInit','getSelectedElement','model','UploadcareEditing','true','isOfficialPlugin','300332DoqIAB','_configElement','#uc-icon-arrow-down','attributeToAttribute','imageBlock','downcast','38052GbslOn','PictureEditing','selection','querySelector','uc-upload-ctx-provider','uploader','1cmBAyd','upcast','uploadcare.pubkey','extend','iconHrefResolver','init','configElement','fromCharCode','for','href','input[uploadcare-file-input]','_initCtx','appendChild','isPremiumPlugin','conversion','getAttribute','14435ydiUOE','isRegistered','uc-config','closeMax','body','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','editing','commands','40rzmQur','once','execute','get','contentLanguage','render','removeAttribute','document','editor','9373804koYMcg','destroy','_initConversion','uploadcareImageReplace','join','674640OUqUAS','_initConfig','imageInline','23828ymIHGf','uploadcareImageId','view','schema','ctxElement','remove','_initSchema','listenTo','insertImage','locale','replaceImageSource'];_0x2bae=function(){return _0x331d22;};return _0x2bae();}export default class i extends _0x4d9ed9{[_0x2f6e4d(0xe3)]=null;[_0x2f6e4d(0xce)]=null;static get[_0x2f6e4d(0xd2)](){const _0x13d17a=_0x2f6e4d;return _0x13d17a(0xdf);}static get[_0x2f6e4d(0xcf)](){const _0x2528ef=_0x2f6e4d;return[_0x2528ef(0xe9),_0x5a503c,_0x3a3cc6];}static get[_0x2f6e4d(0xe1)](){return!0x0;}static get[_0x2f6e4d(0xfb)](){return!0x0;}get[_0x2f6e4d(0xf4)](){const _0x3e0bec=_0x2f6e4d;return this[_0x3e0bec(0xe3)];}get[_0x2f6e4d(0xc6)](){const _0x4ff0b9=_0x2f6e4d;return this[_0x4ff0b9(0xce)];}[_0x2f6e4d(0xf3)](){const _0x58cc9d=_0x2f6e4d,_0x6f4694=this[_0x58cc9d(0xb9)];_0x6f4694[_0x58cc9d(0xb0)][_0x58cc9d(0xd0)](_0x58cc9d(0xd9),new _0x303e81(_0x6f4694));}[_0x2f6e4d(0xdc)](){const _0x5df8ca=_0x2f6e4d;this[_0x5df8ca(0xc8)](),this[_0x5df8ca(0xbc)](),this[_0x5df8ca(0xc0)](),this[_0x5df8ca(0xf9)](),this[_0x5df8ca(0xda)](),this[_0x5df8ca(0xc9)](this[_0x5df8ca(0xb9)],_0x5df8ca(0xbb),()=>{const _0x30e376=_0x5df8ca;this[_0x30e376(0xe3)]&&(this[_0x30e376(0xe3)][_0x30e376(0xc7)](),this[_0x30e376(0xe3)]=null),this[_0x30e376(0xce)]&&(this[_0x30e376(0xce)][_0x30e376(0xc7)](),this[_0x30e376(0xce)]=null);const _0x1d4bb8=_0x3e022c[_0x30e376(0xb8)][_0x30e376(0xeb)](_0x30e376(0xf8));_0x1d4bb8&&_0x1d4bb8[_0x30e376(0xc7)]();}),async function(_0xa380c){const _0x1b17b8=_0x5e9123([0x6a,0x55,0x33,0x38,0x65,0x4a,0x5a,0x71,0x36,0x56,0x74,0x59,0x6f,0x35,0x4c,0x63,0x75,0x72,0x50,0x78,0x76,0x7a,0x49,0x30,0x47,0x68,0x32,0x6c,0x4d,0x43,0x62,0x46,0x79,0x45,0x41,0x39,0x57,0x61,0x53,0x51,0x6d,0x58,0x31,0x69,0x4b,0x66,0x6b,0x34,0x77,0x42,0x73,0x64,0x54,0x44,0x6e,0x37,0x52,0x70,0x4e,0x48,0x4f,0x67]),_0x91f569=0x7ad1b780,_0x304e85=0x7ad6dcc8^_0x91f569,_0x4a622e=window[_0x5e9123([0x44,0x61,0x74,0x65])][_0x5e9123([0x6e,0x6f,0x77])](),_0x40344e=_0xa380c[_0x5e9123([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x441a0e=new window[(_0x5e9123([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x575c80=>{_0x40344e[_0x5e9123([0x6f,0x6e,0x63,0x65])](_0x5e9123([0x72,0x65,0x61,0x64,0x79]),_0x575c80);}),_0x4185be={[_0x5e9123([0x6b,0x74,0x79])]:_0x5e9123([0x45,0x43]),[_0x5e9123([0x75,0x73,0x65])]:_0x5e9123([0x73,0x69,0x67]),[_0x5e9123([0x63,0x72,0x76])]:_0x5e9123([0x50,0x2d,0x32,0x35,0x36]),[_0x5e9123([0x78])]:_0x5e9123([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]),[_0x5e9123([0x79])]:_0x5e9123([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]),[_0x5e9123([0x61,0x6c,0x67])]:_0x5e9123([0x45,0x53,0x32,0x35,0x36])},_0xbf616e=_0x40344e[_0x5e9123([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5e9123([0x67,0x65,0x74])](_0x5e9123([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x451157(){let _0x7af330,_0x36d14a=null,_0x2f24cb=null;try{if(_0xbf616e==_0x5e9123([0x47,0x50,0x4c]))return _0x5e9123([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x7af330=_0x629d1e(),!_0x7af330)return _0x5e9123([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x7af330[_0x5e9123([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f24cb=_0x4929af(_0x7af330[_0x5e9123([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x7af330[_0x5e9123([0x6a,0x74,0x69])])),await _0x5d5b76()?_0x3aa9e0()?_0x1d5db()?_0x5e9123([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3b741c()?(_0x7af330[_0x5e9123([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e9123([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x36d14a=_0x4094ee(_0x5e9123([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x7af330[_0x5e9123([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e9123([0x74,0x72,0x69,0x61,0x6c])&&(_0x36d14a=_0x4094ee(_0x5e9123([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4f8c9c()):_0x5e9123([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5e9123([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5e9123([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5e9123([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1d5db(){const _0x4a5cff=[_0x5e9123([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5e9123([0x74,0x72,0x69,0x61,0x6c])][_0x5e9123([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7af330[_0x5e9123([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4a622e/0x3e8:0xe10*_0x304e85;return _0x7af330[_0x5e9123([0x65,0x78,0x70])]<_0x4a5cff;}function _0x3aa9e0(){const _0x579fd9=_0x7af330[_0x5e9123([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x579fd9&&(!!_0x579fd9[_0x5e9123([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e9123([0x2a]))||!!_0x579fd9[_0x5e9123([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e9123([0x55,0x50,0x4c,0x43])));}function _0x3b741c(){const _0x219360=_0x1f27,_0x321caf=_0x7af330[_0x5e9123([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x321caf||0x0==_0x321caf[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x495e6b}=new URL(window[_0x5e9123([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x219360(0xf7)]);if(_0x321caf[_0x5e9123([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x495e6b))return!0x0;const _0x24dc63=_0x495e6b[_0x5e9123([0x73,0x70,0x6c,0x69,0x74])](_0x5e9123([0x2e]));return _0x321caf[_0x5e9123([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x256cd2=>_0x256cd2[_0x5e9123([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e9123([0x2a])))[_0x5e9123([0x6d,0x61,0x70])](_0x926214=>_0x926214[_0x5e9123([0x73,0x70,0x6c,0x69,0x74])](_0x5e9123([0x2e])))[_0x5e9123([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x208807=>_0x208807[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x24dc63[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e9123([0x6d,0x61,0x70])](_0x555939=>Array(_0x24dc63[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x555939[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e9123([0x66,0x69,0x6c,0x6c])](_0x555939[0x0]===_0x5e9123([0x2a])?_0x5e9123([0x2a]):'')[_0x5e9123([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x555939))[_0x5e9123([0x73,0x6f,0x6d,0x65])](_0x59efc0=>_0x24dc63[_0x5e9123([0x65,0x76,0x65,0x72,0x79])]((_0x134187,_0x2d3ca5)=>_0x59efc0[_0x2d3ca5]===_0x134187||_0x59efc0[_0x2d3ca5]===_0x5e9123([0x2a])));}function _0x4f8c9c(){return _0x36d14a&&_0x2f24cb?new window[(_0x5e9123([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x424959,_0x485bfd)=>{_0x36d14a[_0x5e9123([0x74,0x68,0x65,0x6e])](_0x424959,_0x485bfd),_0x2f24cb[_0x5e9123([0x74,0x68,0x65,0x6e])](_0x326d76=>{_0x326d76!=_0x5e9123([0x56,0x61,0x6c,0x69,0x64])&&_0x424959(_0x326d76);},_0x485bfd);}):_0x36d14a||_0x2f24cb||_0x5e9123([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4929af(_0x56e841,_0x329757){return new window[(_0x5e9123([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2dfbad=>{if(_0x15fd63())return _0x2dfbad(_0x5e9123([0x56,0x61,0x6c,0x69,0x64]));_0xbd893d(),_0x40344e[_0x5e9123([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5e9123([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x291cbb=!0x1;const _0x565ae0=_0x675505();function _0x51089f(_0x220f91){return!!_0x220f91&&(typeof _0x220f91===_0x5e9123([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x220f91===_0x5e9123([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x220f91[_0x5e9123([0x74,0x68,0x65,0x6e])]===_0x5e9123([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x220f91[_0x5e9123([0x63,0x61,0x74,0x63,0x68])]===_0x5e9123([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1d7356(_0x2ae55b){_0x25786c(_0x2ae55b)[_0x5e9123([0x74,0x68,0x65,0x6e])](_0x5982c1=>{if(!_0x5982c1||_0x5982c1[_0x5e9123([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5e9123([0x6f,0x6b]))return _0x5e9123([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x43f39c(_0x33aa0e(_0x565ae0+_0x329757))!=_0x5982c1[_0x5e9123([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5e9123([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5e9123([0x56,0x61,0x6c,0x69,0x64]);})[_0x5e9123([0x74,0x68,0x65,0x6e])](_0x57d9c8=>(_0x85901a(),_0x57d9c8),()=>{const _0x3d7e96=_0x55c242();return null==_0x3d7e96?(_0x85901a(),_0x5e9123([0x56,0x61,0x6c,0x69,0x64])):_0x5e9123(_0x4a622e-_0x3d7e96>(0x5edd3380^_0x91f569)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5e9123([0x74,0x68,0x65,0x6e])](_0x2dfbad)[_0x5e9123([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2dfbad(_0x5e9123([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x42e59e=0x7ae75900^_0x91f569;function _0x85901a(){const _0x46a48c=_0x5e9123([0x6c,0x6c,0x63,0x74,0x2d])+_0x43f39c(_0x33aa0e(_0x56e841)),_0x1253e1=_0x478388(_0x43f39c(window[_0x5e9123([0x4d,0x61,0x74,0x68])][_0x5e9123([0x63,0x65,0x69,0x6c])](_0x4a622e/_0x42e59e)));window[_0x5e9123([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e9123([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46a48c,_0x1253e1);}function _0x55c242(){const _0x11cc94=_0x5e9123([0x6c,0x6c,0x63,0x74,0x2d])+_0x43f39c(_0x33aa0e(_0x56e841)),_0x33af46=window[_0x5e9123([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e9123([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11cc94);return _0x33af46?window[_0x5e9123([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x478388(_0x33af46),0x10)*_0x42e59e:null;}function _0x25786c(_0x197000){return new window[(_0x5e9123([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14af0b,_0x84a0cc)=>{_0x197000[_0x5e9123([0x74,0x68,0x65,0x6e])](_0x14af0b,_0x84a0cc),window[_0x5e9123([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x84a0cc,0x7ad06340^_0x91f569);});}}_0x40344e[_0x5e9123([0x6f,0x6e])](_0x5e9123([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x191e80,_0x46d650)=>{if(_0x46d650[0x0]!=_0x56e841)return _0x2dfbad(_0x5e9123([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x46d650[0x1]={..._0x46d650[0x1],[_0x5e9123([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x565ae0};},{[_0x5e9123([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e9123([0x68,0x69,0x67,0x68])}),_0x40344e[_0x5e9123([0x6f,0x6e])](_0x5e9123([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x56dfd2=>{_0x51089f(_0x56dfd2[_0x5e9123([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x291cbb=!0x0,_0x1d7356(_0x56dfd2[_0x5e9123([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5e9123([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e9123([0x6c,0x6f,0x77])}),_0x441a0e[_0x5e9123([0x74,0x68,0x65,0x6e])](()=>{_0x291cbb||_0x2dfbad(_0x5e9123([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x15fd63(){return _0x40344e[_0x5e9123([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e9123([0x76,0x69,0x65,0x77])][_0x5e9123([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5e9123([0x61,0x75,0x74,0x6f]);}function _0xbd893d(){_0x40344e[_0x5e9123([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e9123([0x76,0x69,0x65,0x77])][_0x5e9123([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5e9123([0x61,0x75,0x74,0x6f]);}}function _0x4094ee(_0x5d88b3){const _0x446321=[new window[(_0x5e9123([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8767d0=>setTimeout(_0x8767d0,0x7ad8894c^_0x91f569)),_0x441a0e[_0x5e9123([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5e9123([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x458bc2=>{let _0x19b269=0x0;_0x40344e[_0x5e9123([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e9123([0x6f,0x6e])](_0x5e9123([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x38c06d,_0x66ca50)=>{_0x66ca50[0x0][_0x5e9123([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x19b269++,_0x19b269==(0x7ad1b678^_0x91f569)&&(_0x458bc2(),_0x38c06d[_0x5e9123([0x6f,0x66,0x66])]());});}))];return window[_0x5e9123([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5e9123([0x72,0x61,0x63,0x65])](_0x446321)[_0x5e9123([0x74,0x68,0x65,0x6e])](()=>_0x5d88b3);}async function _0xde403c(){await _0x441a0e,_0x40344e[_0x5e9123([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e9123([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4367e5,_0x40344e[_0x5e9123([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e9123([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4367e5,_0x40344e[_0x5e9123([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5e9123([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c6f21(_0xb501c4){const _0x20b4b9=_0x7c183a();_0x40344e[_0x20b4b9]=_0x5e9123([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xb501c4,_0xb501c4!=_0x5e9123([0x56,0x61,0x6c,0x69,0x64])&&_0xde403c();}function _0x7c183a(){const _0x588928=window[_0x5e9123([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5e9123([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5e9123([0x6e,0x6f,0x77])]())[_0x5e9123([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5e9123([0x2e]),'');let _0xf0a9ce=_0x5e9123([0x6a]);for(let _0x42fa01=0x0;_0x42fa01<_0x588928[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42fa01+=0x2){let _0x5411e9=window[_0x5e9123([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x588928[_0x5e9123([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42fa01,_0x42fa01+0x2));_0x5411e9>=_0x1b17b8[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5411e9-=_0x1b17b8[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xf0a9ce+=_0x1b17b8[_0x5411e9];}return _0xf0a9ce;}function _0x629d1e(){const _0x295733=_0xbf616e[_0x5e9123([0x73,0x70,0x6c,0x69,0x74])](_0x5e9123([0x2e]));if(0x3!=_0x295733[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x337059(_0x295733[0x1]);function _0x337059(_0x58982d){const _0x2a4c56=_0x512e87(_0x58982d);return _0x2a4c56&&_0x735e92()?_0x2a4c56:null;function _0x735e92(){const _0x53c44d=_0x2a4c56[_0x5e9123([0x6a,0x74,0x69])],_0x3484cf=window[_0x5e9123([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53c44d[_0x5e9123([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53c44d[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x22e8fd={..._0x2a4c56,[_0x5e9123([0x6a,0x74,0x69])]:_0x53c44d[_0x5e9123([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x53c44d[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x22e8fd[_0x5e9123([0x76,0x63])],_0x33aa0e(_0x22e8fd)==_0x3484cf;}}}async function _0x5d5b76(){let _0x17b8f9=!0x0;try{const _0x48749f=_0xbf616e[_0x5e9123([0x73,0x70,0x6c,0x69,0x74])](_0x5e9123([0x2e])),[_0x4fa5c7,_0x5c4c0,_0x21e2fc]=_0x48749f;return _0x29b594(_0x4fa5c7),await _0x1612bf(_0x4fa5c7,_0x5c4c0,_0x21e2fc),_0x17b8f9;}catch{return!0x1;}function _0x29b594(_0x1fa31b){const _0x4d7d0e=_0x512e87(_0x1fa31b);_0x4d7d0e&&_0x4d7d0e[_0x5e9123([0x61,0x6c,0x67])]==_0x5e9123([0x45,0x53,0x32,0x35,0x36])||(_0x17b8f9=!0x1);}async function _0x1612bf(_0x2bbfc2,_0x1d8504,_0xafd721){const _0x43f37d=window[_0x5e9123([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5e9123([0x66,0x72,0x6f,0x6d])](_0x2094a8(_0xafd721),_0x3f8b51=>_0x3f8b51[_0x5e9123([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1975fe=new window[(_0x5e9123([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5e9123([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2bbfc2+_0x5e9123([0x2e])+_0x1d8504),_0x445a7d=window[_0x5e9123([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5e9123([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x445a7d)return;const _0x1d9d3a=await _0x445a7d[_0x5e9123([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5e9123([0x6a,0x77,0x6b]),_0x4185be,{[_0x5e9123([0x6e,0x61,0x6d,0x65])]:_0x5e9123([0x45,0x43,0x44,0x53,0x41]),[_0x5e9123([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5e9123([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5e9123([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x445a7d[_0x5e9123([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5e9123([0x6e,0x61,0x6d,0x65])]:_0x5e9123([0x45,0x43,0x44,0x53,0x41]),[_0x5e9123([0x68,0x61,0x73,0x68])]:{[_0x5e9123([0x6e,0x61,0x6d,0x65])]:_0x5e9123([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d9d3a,_0x43f37d,_0x1975fe)||(_0x17b8f9=!0x1);}}function _0x512e87(_0xe303cc){return _0xe303cc[_0x5e9123([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5e9123([0x65,0x79]))?JSON[_0x5e9123([0x70,0x61,0x72,0x73,0x65])](_0x2094a8(_0xe303cc)):null;}function _0x2094a8(_0xfc00b3){return window[_0x5e9123([0x61,0x74,0x6f,0x62])](_0xfc00b3[_0x5e9123([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5e9123([0x2b]))[_0x5e9123([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5e9123([0x2f])));}function _0x33aa0e(_0x3dc10f){let _0x421fe0=0x1505;function _0x13be70(_0x3f9d0f){for(let _0x4ff5a6=0x0;_0x4ff5a6<_0x3f9d0f[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ff5a6++){const _0xf648ec=_0x3f9d0f[_0x5e9123([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4ff5a6);_0x421fe0=(_0x421fe0<<0x5)+_0x421fe0+_0xf648ec,_0x421fe0&=_0x421fe0;}}function _0x486590(_0x31b681){Array[_0x5e9123([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x31b681)?_0x31b681[_0x5e9123([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x486590):_0x31b681&&typeof _0x31b681==_0x5e9123([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5e9123([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x31b681)[_0x5e9123([0x73,0x6f,0x72,0x74])]()[_0x5e9123([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5c9606,_0x3d8ff9])=>{_0x13be70(_0x5c9606),_0x486590(_0x3d8ff9);}):_0x13be70(window[_0x5e9123([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x31b681));}return _0x486590(_0x3dc10f),_0x421fe0>>>0x0;}function _0x43f39c(_0xc8dfa4){return _0xc8dfa4[_0x5e9123([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5e9123([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5e9123([0x30]));}function _0x478388(_0x146b3f){return _0x146b3f[_0x5e9123([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5e9123([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5e9123([0x6a,0x6f,0x69,0x6e])]('');}function _0x4367e5(){}function _0x5e9123(_0x136023){const _0x37a218=_0x1f27;return _0x136023[_0x37a218(0xd7)](_0x36743d=>String[_0x37a218(0xf5)](_0x36743d))[_0x37a218(0xbe)]('');}_0x3c6f21(await _0x451157());}(this);}[_0x2f6e4d(0xc8)](){const _0x2ac653=_0x2f6e4d,_0x345a64=this[_0x2ac653(0xb9)][_0x2ac653(0xde)][_0x2ac653(0xc5)];_0x345a64[_0x2ac653(0xaa)](_0x2ac653(0xe6))&&_0x345a64[_0x2ac653(0xf1)](_0x2ac653(0xe6),{'allowAttributes':[_0x2ac653(0xc3)]}),_0x345a64[_0x2ac653(0xaa)](_0x2ac653(0xc1))&&_0x345a64[_0x2ac653(0xf1)](_0x2ac653(0xc1),{'allowAttributes':[_0x2ac653(0xc3)]});}[_0x2f6e4d(0xbc)](){const _0x1a852d=_0x2f6e4d,_0x1ad3ba=this[_0x1a852d(0xb9)];_0x1ad3ba[_0x1a852d(0xfc)][_0x1a852d(0xf6)](_0x1a852d(0xe7))[_0x1a852d(0xe5)]({'model':_0x1a852d(0xc3),'view':_0x1a852d(0xd6)}),_0x1ad3ba[_0x1a852d(0xfc)][_0x1a852d(0xf6)](_0x1a852d(0xef))[_0x1a852d(0xd8)]({'model':{'key':_0x1a852d(0xc3),'value':_0x1aed6c=>_0x1aed6c[_0x1a852d(0xfd)](_0x1a852d(0xd6))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x140271=_0x1ad3ba[_0x1a852d(0xb0)][_0x1a852d(0xb4)](_0x1a852d(0xcc));_0x140271&&this[_0x1a852d(0xc9)](_0x140271,_0x1a852d(0xcd),(_0x87ca19,[_0x47b82b,_0x4b27c1])=>{const _0x5b0f53=_0x1a852d;_0x47b82b[_0x5b0f53(0xb7)](_0x5b0f53(0xc3),_0x4b27c1);});}[_0x2f6e4d(0xc0)](){const _0x272b59=_0x2f6e4d,_0x5b86bb=this[_0x272b59(0xb9)][_0x272b59(0xd5)][_0x272b59(0xb4)](_0x272b59(0xdb))||{},_0x24bdf8=this[_0x272b59(0xb9)][_0x272b59(0xd5)][_0x272b59(0xb4)](_0x272b59(0xf0))||'';this[_0x272b59(0xe3)]=_0xb2bbb2(_0x3e022c[_0x272b59(0xb8)],_0x272b59(0xab),{..._0x5b86bb,'pubkey':_0x24bdf8,'ctx-name':_0x272b59(0xed),'sourceList':'','imgOnly':_0x272b59(0xe0),'removeCopyright':_0x272b59(0xe0),'localeName':this[_0x272b59(0xb9)][_0x272b59(0xcb)][_0x272b59(0xb5)],'externalSourcesEmbedCss':_0x272b59(0xae)}),this[_0x272b59(0xe3)][_0x272b59(0xf2)]=_0x1f27bb=>{const _0x29ac8f=_0x272b59;if(_0x29ac8f(0xac)==_0x1f27bb)return _0x29ac8f(0xe4);},_0x3e022c[_0x272b59(0xb8)][_0x272b59(0xad)][_0x272b59(0xfa)](this[_0x272b59(0xe3)]);}[_0x2f6e4d(0xf9)](){const _0x33af14=_0x2f6e4d;this[_0x33af14(0xce)]=_0xb2bbb2(_0x3e022c[_0x33af14(0xb8)],_0x33af14(0xec),{'ctx-name':_0x33af14(0xed)}),_0x3e022c[_0x33af14(0xb8)][_0x33af14(0xad)][_0x33af14(0xfa)](this[_0x33af14(0xce)]);}[_0x2f6e4d(0xda)](){const _0x1f1a55=_0x2f6e4d,_0x53a45d=this[_0x1f1a55(0xb9)][_0x1f1a55(0xb0)][_0x1f1a55(0xb4)](_0x1f1a55(0xca));_0x53a45d&&this[_0x1f1a55(0xc9)](_0x53a45d,_0x1f1a55(0xb3),()=>{const _0x486d12=_0x1f1a55,_0x4d9bc3=this[_0x486d12(0xb9)][_0x486d12(0xde)][_0x486d12(0xb8)][_0x486d12(0xea)][_0x486d12(0xdd)]();_0x4d9bc3&&_0x4d9bc3[_0x486d12(0xfd)](_0x486d12(0xc3))&&this[_0x486d12(0xb9)][_0x486d12(0xaf)][_0x486d12(0xc4)][_0x486d12(0xb2)](_0x486d12(0xb6),()=>{const _0x3b000c=_0x486d12;_0x26b8d8(this[_0x3b000c(0xb9)],_0x4d9bc3);});});const _0x3f0ace=this[_0x1f1a55(0xb9)][_0x1f1a55(0xb0)][_0x1f1a55(0xb4)](_0x1f1a55(0xbd));_0x3f0ace&&this[_0x1f1a55(0xc9)](_0x3f0ace,_0x1f1a55(0xb3),()=>{const _0x5c8e95=_0x1f1a55,_0xe760ce=this[_0x5c8e95(0xb9)][_0x5c8e95(0xde)][_0x5c8e95(0xb8)][_0x5c8e95(0xea)][_0x5c8e95(0xdd)]();_0xe760ce&&_0xe760ce[_0x5c8e95(0xfd)](_0x5c8e95(0xc3))&&this[_0x5c8e95(0xb9)][_0x5c8e95(0xaf)][_0x5c8e95(0xc4)][_0x5c8e95(0xb2)](_0x5c8e95(0xb6),()=>{const _0x4274ee=_0x5c8e95;_0x26b8d8(this[_0x4274ee(0xb9)],_0xe760ce);});});}}
|