@ckeditor/ckeditor5-case-change 48.0.0-alpha.2 → 48.0.0-alpha.3
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/dist/index.js +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as _0x260125,Plugin as _0x4680ec}from'@ckeditor/ckeditor5-core/dist/index.js';import{uid as _0x4bd852,Collection as _0x167387}from'@ckeditor/ckeditor5-utils/dist/index.js';import{MenuBarMenuView as _0x3145cf,MenuBarMenuListView as _0x533512,MenuBarMenuListItemView as _0x4c82d8,MenuBarMenuListItemButtonView as _0x54ca5a,createDropdown as _0x23b6ad,addListToDropdown as _0x1d8138,UIModel as _0xbb23c7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconCaseChange as _0x40297f}from'@ckeditor/ckeditor5-icons/dist/index.js';class d extends _0x260125{['_transformCallback'];constructor(_0x4dc563,_0x102001){super(_0x4dc563),this['_transformCallback']=_0x102001;}['execute'](){const _0x20c438=this['editor']['model'],_0x2b52df=Array['from'](this['_getAffectedRanges']()),_0x15b8da=Array['from'](_0x20c438['document']['selection']['getRanges']());_0x20c438['change'](_0x39f054=>{for(const _0x403a26 of _0x2b52df)this['_modifyContent'](_0x403a26,_0x39f054);_0x39f054['setSelection'](_0x15b8da);});}['refresh'](){for(const _0x4858a8 of this['_getAffectedRanges']())for(const _0x34d16c of _0x4858a8)if(_0x34d16c['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0x174cc0=this['editor']['model'],_0x1401a5=_0x174cc0['document']['selection'];if(_0x1401a5['isCollapsed']){const _0x11d06d=this['_findAncestorTextBlock'](_0x1401a5['getFirstPosition']()['parent']);return _0x11d06d?[_0x174cc0['createRangeIn'](_0x11d06d)]:[];}return _0x1401a5['getRanges']();}['_modifyContent'](_0x5ee7a9,_0x4bbafc){for(const _0x5069bc of this['_getElementsAllowingText'](_0x5ee7a9)){const _0x2c4ca8=this['_getElementTextContent'](_0x5069bc),_0xd5fd47=this['_transformCallback'](_0x2c4ca8);for(const _0x142edd of this['_getTextNodesRangeLimited'](_0x5069bc,_0x5ee7a9))this['_replaceTextNodeData'](_0x142edd,_0xd5fd47,_0x4bbafc);}}['_findAncestorTextBlock'](_0x428e7b){const _0x78e480=this['editor']['model']['schema'];if(_0x428e7b['is']('element')&&_0x78e480['checkChild'](_0x428e7b,'$text'))return _0x428e7b;const _0x55a83d=_0x428e7b['parent'];return!_0x55a83d||_0x78e480['isLimit'](_0x428e7b)?null:this['_findAncestorTextBlock'](_0x55a83d);}*['_getElementsAllowingText'](_0x2e321d){const _0x2b99f=new Set();for(const {item:_0x47debf}of _0x2e321d['getWalker']()){const _0x5f0c40=this['_findAncestorTextBlock'](_0x47debf);_0x5f0c40&&!_0x2b99f['has'](_0x5f0c40)&&(_0x2b99f['add'](_0x5f0c40),yield _0x5f0c40);}}['_getElementTextContent'](_0x5355b7){return Array['from'](_0x5355b7['getChildren']())['reduce']((_0x23e3e9,_0x3ccf43)=>_0x23e3e9+(_0x3ccf43['is']('$text')?_0x3ccf43['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x247c1d,_0x4b4dc5){const _0x5983cd=_0x4b4dc5['getIntersection'](this['editor']['model']['createRangeIn'](_0x247c1d));if(_0x5983cd){for(const _0x2d89c0 of _0x5983cd['getItems']())_0x2d89c0['is']('$textProxy')&&_0x2d89c0['parent']==_0x247c1d&&(yield _0x2d89c0);}}['_replaceTextNodeData'](_0x3dff79,_0x15b479,_0x434e14){const _0x7a0dea=_0x15b479['substring'](_0x3dff79['startOffset'],_0x3dff79['endOffset']);if(_0x7a0dea===_0x3dff79['data'])return;const _0x2f5da8=_0x3dff79['getAttributes']();this['editor']['model']['insertContent'](_0x434e14['createText'](_0x7a0dea,_0x2f5da8),_0x434e14['createSelection'](_0x434e14['createRangeOn'](_0x3dff79)));}}function w(_0x58b54f,_0x3a5d75,..._0x41ef64){const t=_0x58b54f['t'];switch(_0x3a5d75){case'Case\x20change':return t('Case\x20change');case'UPPERCASE':return t('UPPERCASE');case'lowercase':return t('lowercase');case'Title\x20Case':return t('Title\x20Case');case'Change\x20text\x20case':return t('Change\x20text\x20case');case'Changed\x20case\x20to\x20%0':return t('Changed\x20case\x20to\x20%0',..._0x41ef64);default:return _0x3a5d75;}}class g extends _0x4680ec{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x45ad04=this['editor'],_0x52a4d0=_0x45ad04['locale']['contentLanguage'],_0x2fa4b4=function(_0x3e4753=[]){return'function'==typeof _0x3e4753?_0x3e4753:(_0x3f5328,{wordIndex:_0x44a3b1})=>_0x44a3b1>0x0&&_0x3e4753['includes'](_0x3f5328);}(_0x45ad04['config']['get']('caseChange.titleCase.excludeWords')),_0x5f1b41={'changeCaseUpper':new d(_0x45ad04,_0x45f61a=>_0x45f61a['toLocaleUpperCase'](_0x52a4d0)),'changeCaseLower':new d(_0x45ad04,_0x41f9d6=>_0x41f9d6['toLocaleLowerCase'](_0x52a4d0)),'changeCaseTitle':new d(_0x45ad04,_0x4e3fb0=>function(_0x119f98,_0x1e39db,_0x4e70dd){return function(_0x182e6b,_0x1ea956){let _0x308c96='',_0x839a52=0x0,_0x3efec5=0x0;for(const _0x3ab6db of _0x182e6b['matchAll'](/ +/g)){const _0x2c700e=_0x3ab6db['index'],_0x56f07d=_0x182e6b['substring'](_0x839a52,_0x2c700e);_0x56f07d['length']&&(_0x308c96+=_0x1ea956(_0x56f07d,_0x839a52,_0x3efec5++)),_0x308c96+=_0x3ab6db[0x0],_0x839a52=_0x2c700e+_0x3ab6db[0x0]['length'];}const _0x48f4de=_0x182e6b['substring'](_0x839a52);return _0x48f4de['length']&&(_0x308c96+=_0x1ea956(_0x48f4de,_0x839a52,_0x3efec5)),_0x308c96;}(_0x119f98,(_0x2889c4,_0x4a1fd8,_0x1a2019)=>{const _0x3b6a07=_0x2889c4['toLocaleLowerCase'](_0x4e70dd);return _0x1e39db(_0x3b6a07,{'charOffset':_0x4a1fd8,'wordIndex':_0x1a2019,'blockText':_0x119f98})?_0x3b6a07:_0x3b6a07['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x5c400e=>_0x5c400e['toLocaleUpperCase'](_0x4e70dd));});}(_0x4e3fb0,_0x2fa4b4,_0x52a4d0))};for(const [_0x114116,_0x3dfff6]of Object['entries'](_0x5f1b41))_0x45ad04['commands']['add'](_0x114116,_0x3dfff6),_0x3dfff6['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x114116);});this['listenTo'](_0x45ad04['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x45ad04['keystrokes']['set']('shift+f3',(_0x291e04,_0x367799)=>{const _0x1852f4=m(this['editor']['locale']),_0x522622=_0x1852f4[this['_currentCommandIndex']%_0x1852f4['length']]['commandName'];_0x45ad04['execute'](_0x522622),this['_currentCommandIndex']++,_0x367799();});}['afterInit'](){!async function(_0x1b2325){const _0x2f8dff=_0xcf4d4a([0x45,0x4d,0x44,0x53,0x33,0x64,0x73,0x4c,0x6f,0x4a,0x59,0x30,0x6e,0x62,0x65,0x39,0x63,0x6d,0x6c,0x43,0x72,0x58,0x79,0x61,0x5a,0x38,0x7a,0x70,0x50,0x71,0x4e,0x36,0x6a,0x78,0x54,0x68,0x66,0x37,0x67,0x77,0x42,0x69,0x32,0x4b,0x46,0x4f,0x56,0x55,0x57,0x52,0x41,0x47,0x31,0x34,0x48,0x51,0x49,0x6b,0x75,0x74,0x35,0x76]),_0x496b2d=0x334129cd,_0x2b757e=0x3346ad35^_0x496b2d,_0x2f27fa=window[_0xcf4d4a([0x44,0x61,0x74,0x65])][_0xcf4d4a([0x6e,0x6f,0x77])](),_0x32faa3=_0x1b2325[_0xcf4d4a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2eb1ad=new window[(_0xcf4d4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa59a2=>{_0x32faa3[_0xcf4d4a([0x6f,0x6e,0x63,0x65])](_0xcf4d4a([0x72,0x65,0x61,0x64,0x79]),_0xa59a2);}),_0x4d022d={[_0xcf4d4a([0x6b,0x74,0x79])]:_0xcf4d4a([0x45,0x43]),[_0xcf4d4a([0x75,0x73,0x65])]:_0xcf4d4a([0x73,0x69,0x67]),[_0xcf4d4a([0x63,0x72,0x76])]:_0xcf4d4a([0x50,0x2d,0x32,0x35,0x36]),[_0xcf4d4a([0x78])]:_0xcf4d4a([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]),[_0xcf4d4a([0x79])]:_0xcf4d4a([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]),[_0xcf4d4a([0x61,0x6c,0x67])]:_0xcf4d4a([0x45,0x53,0x32,0x35,0x36])},_0x4d5c63=_0x32faa3[_0xcf4d4a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xcf4d4a([0x67,0x65,0x74])](_0xcf4d4a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x15ab1c(){let _0x5e0d42,_0x30843d=null,_0xabc55b=null;try{if(_0x4d5c63==_0xcf4d4a([0x47,0x50,0x4c]))return _0xcf4d4a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5e0d42=_0x3cd982(),!_0x5e0d42)return _0xcf4d4a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5e0d42[_0xcf4d4a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xabc55b=_0x717476(_0x5e0d42[_0xcf4d4a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5e0d42[_0xcf4d4a([0x6a,0x74,0x69])])),await _0xc85f40()?_0x13fad1()?_0x212a56()?_0xcf4d4a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x44d2a2()?(_0x5e0d42[_0xcf4d4a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xcf4d4a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x30843d=_0x1bbf6d(_0xcf4d4a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x36edfe()):_0xcf4d4a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xcf4d4a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xcf4d4a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xcf4d4a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x212a56(){const _0x24bd1e=[_0xcf4d4a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xcf4d4a([0x74,0x72,0x69,0x61,0x6c])][_0xcf4d4a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e0d42[_0xcf4d4a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2f27fa/0x3e8:0xe10*_0x2b757e;return _0x5e0d42[_0xcf4d4a([0x65,0x78,0x70])]<_0x24bd1e;}function _0x13fad1(){const _0x5607d2=_0x5e0d42[_0xcf4d4a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5607d2&&(!!_0x5607d2[_0xcf4d4a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcf4d4a([0x2a]))||(!!_0x5607d2[_0xcf4d4a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcf4d4a([0x43,0x43]))||!!_0x5607d2[_0xcf4d4a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcf4d4a([0x50,0x50]))));}function _0x44d2a2(){const _0x479331=_0x5e0d42[_0xcf4d4a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x479331||0x0==_0x479331[_0xcf4d4a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x55d386}=new URL(window[_0xcf4d4a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x479331[_0xcf4d4a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55d386))return!0x0;const _0x27c2ec=_0x55d386[_0xcf4d4a([0x73,0x70,0x6c,0x69,0x74])](_0xcf4d4a([0x2e]));return _0x479331[_0xcf4d4a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d7e5a=>_0x5d7e5a[_0xcf4d4a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcf4d4a([0x2a])))[_0xcf4d4a([0x6d,0x61,0x70])](_0x274a0e=>_0x274a0e[_0xcf4d4a([0x73,0x70,0x6c,0x69,0x74])](_0xcf4d4a([0x2e])))[_0xcf4d4a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f2c0b=>_0x2f2c0b[_0xcf4d4a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x27c2ec[_0xcf4d4a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xcf4d4a([0x6d,0x61,0x70])](_0x5a7c1c=>Array(_0x27c2ec[_0xcf4d4a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5a7c1c[_0xcf4d4a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xcf4d4a([0x66,0x69,0x6c,0x6c])](_0x5a7c1c[0x0]===_0xcf4d4a([0x2a])?_0xcf4d4a([0x2a]):'')[_0xcf4d4a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5a7c1c))[_0xcf4d4a([0x73,0x6f,0x6d,0x65])](_0x171961=>_0x27c2ec[_0xcf4d4a([0x65,0x76,0x65,0x72,0x79])]((_0x2f8ffb,_0x1c88db)=>_0x171961[_0x1c88db]===_0x2f8ffb||_0x171961[_0x1c88db]===_0xcf4d4a([0x2a])));}function _0x36edfe(){return _0x30843d&&_0xabc55b?new window[(_0xcf4d4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e9dcd,_0x262b27)=>{_0x30843d[_0xcf4d4a([0x74,0x68,0x65,0x6e])](_0x1e9dcd,_0x262b27),_0xabc55b[_0xcf4d4a([0x74,0x68,0x65,0x6e])](_0x348bde=>{_0x348bde!=_0xcf4d4a([0x56,0x61,0x6c,0x69,0x64])&&_0x1e9dcd(_0x348bde);},_0x262b27);}):_0x30843d||_0xabc55b||_0xcf4d4a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x717476(_0x2b8f2f,_0x4bbaa6){return new window[(_0xcf4d4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56a04d=>{if(_0x3c82e3())return _0x56a04d(_0xcf4d4a([0x56,0x61,0x6c,0x69,0x64]));_0x9aaa7a(),_0x32faa3[_0xcf4d4a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xcf4d4a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2d7227=!0x1;const _0x209dac=_0x4bd852();function _0x350371(_0x37bdbc){return!!_0x37bdbc&&(typeof _0x37bdbc===_0xcf4d4a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x37bdbc===_0xcf4d4a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x37bdbc[_0xcf4d4a([0x74,0x68,0x65,0x6e])]===_0xcf4d4a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x37bdbc[_0xcf4d4a([0x63,0x61,0x74,0x63,0x68])]===_0xcf4d4a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3e1783(_0x4b4e02){_0x5355cf(_0x4b4e02)[_0xcf4d4a([0x74,0x68,0x65,0x6e])](_0x5f98e6=>{if(!_0x5f98e6||_0x5f98e6[_0xcf4d4a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xcf4d4a([0x6f,0x6b]))return _0xcf4d4a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x43fd2(_0xf26142(_0x209dac+_0x4bbaa6))!=_0x5f98e6[_0xcf4d4a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xcf4d4a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xcf4d4a([0x56,0x61,0x6c,0x69,0x64]);})[_0xcf4d4a([0x74,0x68,0x65,0x6e])](_0x1b508b=>(_0x133bcd(),_0x1b508b),()=>{const _0x19c3ea=_0x44b53d();return null==_0x19c3ea?(_0x133bcd(),_0xcf4d4a([0x56,0x61,0x6c,0x69,0x64])):_0xcf4d4a(_0x2f27fa-_0x19c3ea>(0x174dadcd^_0x496b2d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xcf4d4a([0x74,0x68,0x65,0x6e])](_0x56a04d)[_0xcf4d4a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x56a04d(_0xcf4d4a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3c4dee=0x3377c74d^_0x496b2d;function _0x133bcd(){const _0x581f9e=_0xcf4d4a([0x6c,0x6c,0x63,0x74,0x2d])+_0x43fd2(_0xf26142(_0x2b8f2f)),_0x2ad8fc=_0x14db75(_0x43fd2(window[_0xcf4d4a([0x4d,0x61,0x74,0x68])][_0xcf4d4a([0x63,0x65,0x69,0x6c])](_0x2f27fa/_0x3c4dee)));window[_0xcf4d4a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xcf4d4a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x581f9e,_0x2ad8fc);}function _0x44b53d(){const _0x43085a=_0xcf4d4a([0x6c,0x6c,0x63,0x74,0x2d])+_0x43fd2(_0xf26142(_0x2b8f2f)),_0x534482=window[_0xcf4d4a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xcf4d4a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43085a);return _0x534482?window[_0xcf4d4a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14db75(_0x534482),0x10)*_0x3c4dee:null;}function _0x5355cf(_0x2d9de5){return new window[(_0xcf4d4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2908f8,_0x25a720)=>{_0x2d9de5[_0xcf4d4a([0x74,0x68,0x65,0x6e])](_0x2908f8,_0x25a720),window[_0xcf4d4a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x25a720,0x3340fd0d^_0x496b2d);});}}_0x32faa3[_0xcf4d4a([0x6f,0x6e])](_0xcf4d4a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x561554,_0x5b5bf6)=>{if(_0x5b5bf6[0x0]!=_0x2b8f2f)return _0x56a04d(_0xcf4d4a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5b5bf6[0x1]={..._0x5b5bf6[0x1],[_0xcf4d4a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x209dac};},{[_0xcf4d4a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xcf4d4a([0x68,0x69,0x67,0x68])}),_0x32faa3[_0xcf4d4a([0x6f,0x6e])](_0xcf4d4a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x24c305=>{_0x350371(_0x24c305[_0xcf4d4a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2d7227=!0x0,_0x3e1783(_0x24c305[_0xcf4d4a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xcf4d4a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xcf4d4a([0x6c,0x6f,0x77])}),_0x2eb1ad[_0xcf4d4a([0x74,0x68,0x65,0x6e])](()=>{_0x2d7227||_0x56a04d(_0xcf4d4a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3c82e3(){return _0x32faa3[_0xcf4d4a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xcf4d4a([0x76,0x69,0x65,0x77])][_0xcf4d4a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xcf4d4a([0x61,0x75,0x74,0x6f]);}function _0x9aaa7a(){_0x32faa3[_0xcf4d4a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xcf4d4a([0x76,0x69,0x65,0x77])][_0xcf4d4a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xcf4d4a([0x61,0x75,0x74,0x6f]);}}function _0x1bbf6d(_0x1c83f9){const _0x5c9a21=[new window[(_0xcf4d4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23d141=>setTimeout(_0x23d141,0x33481701^_0x496b2d)),_0x2eb1ad[_0xcf4d4a([0x74,0x68,0x65,0x6e])](()=>new window[(_0xcf4d4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x244c2d=>{let _0x3643ce=0x0;_0x32faa3[_0xcf4d4a([0x6d,0x6f,0x64,0x65,0x6c])][_0xcf4d4a([0x6f,0x6e])](_0xcf4d4a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x180f9f,_0xb81765)=>{_0xb81765[0x0][_0xcf4d4a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3643ce++,_0x3643ce==(0x33412c25^_0x496b2d)&&(_0x244c2d(),_0x180f9f[_0xcf4d4a([0x6f,0x66,0x66])]());});}))];return window[_0xcf4d4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xcf4d4a([0x72,0x61,0x63,0x65])](_0x5c9a21)[_0xcf4d4a([0x74,0x68,0x65,0x6e])](()=>_0x1c83f9);}async function _0x1d4ce5(){await _0x2eb1ad,_0x32faa3[_0xcf4d4a([0x6d,0x6f,0x64,0x65,0x6c])][_0xcf4d4a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x209ac3,_0x32faa3[_0xcf4d4a([0x6d,0x6f,0x64,0x65,0x6c])][_0xcf4d4a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x209ac3,_0x32faa3[_0xcf4d4a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xcf4d4a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x20a1d8(_0x37a106){const _0x29f159=_0x5b59f3();_0x32faa3[_0x29f159]=_0xcf4d4a([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x37a106,_0x37a106!=_0xcf4d4a([0x56,0x61,0x6c,0x69,0x64])&&_0x1d4ce5();}function _0x5b59f3(){const _0x12cb64=window[_0xcf4d4a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xcf4d4a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xcf4d4a([0x6e,0x6f,0x77])]())[_0xcf4d4a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xcf4d4a([0x2e]),'');let _0x2132b8=_0xcf4d4a([0x45]);for(let _0x534dc5=0x0;_0x534dc5<_0x12cb64[_0xcf4d4a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x534dc5+=0x2){let _0x2ba651=window[_0xcf4d4a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12cb64[_0xcf4d4a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x534dc5,_0x534dc5+0x2));_0x2ba651>=_0x2f8dff[_0xcf4d4a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ba651-=_0x2f8dff[_0xcf4d4a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2132b8+=_0x2f8dff[_0x2ba651];}return _0x2132b8;}function _0x3cd982(){const _0x3ea233=_0x4d5c63[_0xcf4d4a([0x73,0x70,0x6c,0x69,0x74])](_0xcf4d4a([0x2e]));if(0x3!=_0x3ea233[_0xcf4d4a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x397567(_0x3ea233[0x1]);function _0x397567(_0x380817){const _0x5d5e31=_0x147759(_0x380817);return _0x5d5e31&&_0x4a0f77()?_0x5d5e31:null;function _0x4a0f77(){const _0x3dd7fe=_0x5d5e31[_0xcf4d4a([0x6a,0x74,0x69])],_0x23c784=window[_0xcf4d4a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3dd7fe[_0xcf4d4a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3dd7fe[_0xcf4d4a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x33bd6f={..._0x5d5e31,[_0xcf4d4a([0x6a,0x74,0x69])]:_0x3dd7fe[_0xcf4d4a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3dd7fe[_0xcf4d4a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x33bd6f[_0xcf4d4a([0x76,0x63])],_0xf26142(_0x33bd6f)==_0x23c784;}}}async function _0xc85f40(){let _0x21a41b=!0x0;try{const _0x58fbfb=_0x4d5c63[_0xcf4d4a([0x73,0x70,0x6c,0x69,0x74])](_0xcf4d4a([0x2e])),[_0x34ede3,_0x2dc297,_0x2a9750]=_0x58fbfb;return _0x3d45f1(_0x34ede3),await _0x224bc8(_0x34ede3,_0x2dc297,_0x2a9750),_0x21a41b;}catch{return!0x1;}function _0x3d45f1(_0x483639){const _0x52b309=_0x147759(_0x483639);_0x52b309&&_0x52b309[_0xcf4d4a([0x61,0x6c,0x67])]==_0xcf4d4a([0x45,0x53,0x32,0x35,0x36])||(_0x21a41b=!0x1);}async function _0x224bc8(_0x34cb1d,_0x38db77,_0x27bf92){const _0x7d2bcd=window[_0xcf4d4a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xcf4d4a([0x66,0x72,0x6f,0x6d])](_0x16c5d7(_0x27bf92),_0x5869ea=>_0x5869ea[_0xcf4d4a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5bf054=new window[(_0xcf4d4a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xcf4d4a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x34cb1d+_0xcf4d4a([0x2e])+_0x38db77),_0x116fe9=window[_0xcf4d4a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xcf4d4a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x116fe9)return;const _0x40d469=await _0x116fe9[_0xcf4d4a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xcf4d4a([0x6a,0x77,0x6b]),_0x4d022d,{[_0xcf4d4a([0x6e,0x61,0x6d,0x65])]:_0xcf4d4a([0x45,0x43,0x44,0x53,0x41]),[_0xcf4d4a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xcf4d4a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xcf4d4a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x116fe9[_0xcf4d4a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xcf4d4a([0x6e,0x61,0x6d,0x65])]:_0xcf4d4a([0x45,0x43,0x44,0x53,0x41]),[_0xcf4d4a([0x68,0x61,0x73,0x68])]:{[_0xcf4d4a([0x6e,0x61,0x6d,0x65])]:_0xcf4d4a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x40d469,_0x7d2bcd,_0x5bf054)||(_0x21a41b=!0x1);}}function _0x147759(_0x28a673){return _0x28a673[_0xcf4d4a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xcf4d4a([0x65,0x79]))?JSON[_0xcf4d4a([0x70,0x61,0x72,0x73,0x65])](_0x16c5d7(_0x28a673)):null;}function _0x16c5d7(_0x44d857){return window[_0xcf4d4a([0x61,0x74,0x6f,0x62])](_0x44d857[_0xcf4d4a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xcf4d4a([0x2b]))[_0xcf4d4a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xcf4d4a([0x2f])));}function _0xf26142(_0x5298c6){let _0x4707ac=0x1505;function _0x2acc65(_0x14e544){for(let _0x1f409f=0x0;_0x1f409f<_0x14e544[_0xcf4d4a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f409f++){const _0xbe71ff=_0x14e544[_0xcf4d4a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f409f);_0x4707ac=(_0x4707ac<<0x5)+_0x4707ac+_0xbe71ff,_0x4707ac&=_0x4707ac;}}function _0x35dea4(_0x3ea860){Array[_0xcf4d4a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3ea860)?_0x3ea860[_0xcf4d4a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x35dea4):_0x3ea860&&typeof _0x3ea860==_0xcf4d4a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xcf4d4a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3ea860)[_0xcf4d4a([0x73,0x6f,0x72,0x74])]()[_0xcf4d4a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x19bd73,_0x38ed11])=>{_0x2acc65(_0x19bd73),_0x35dea4(_0x38ed11);}):_0x2acc65(window[_0xcf4d4a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3ea860));}return _0x35dea4(_0x5298c6),_0x4707ac>>>0x0;}function _0x43fd2(_0x4d525e){return _0x4d525e[_0xcf4d4a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xcf4d4a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xcf4d4a([0x30]));}function _0x14db75(_0x5146a7){return _0x5146a7[_0xcf4d4a([0x73,0x70,0x6c,0x69,0x74])]('')[_0xcf4d4a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xcf4d4a([0x6a,0x6f,0x69,0x6e])]('');}function _0x209ac3(){}function _0xcf4d4a(_0x5d2f8e){return _0x5d2f8e['map'](_0x266bb4=>String['fromCharCode'](_0x266bb4))['join']('');}_0x20a1d8(await _0x15ab1c());}(this);}['_announceCaseChangeOperation'](_0x391a90){const {ui:_0x400bb4,locale:_0x33dc02}=this['editor'],_0x3d45d2=m(_0x33dc02)['find'](_0x2acad2=>_0x2acad2['commandName']===_0x391a90)['label']['toLowerCase']();_0x400bb4['ariaLiveAnnouncer']['announce'](w(_0x33dc02,'Changed\x20case\x20to\x20%0',_0x3d45d2));}}function m(_0x1bc9e2){return[{'label':w(_0x1bc9e2,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':w(_0x1bc9e2,'lowercase'),'commandName':'changeCaseLower'},{'label':w(_0x1bc9e2,'Title\x20Case'),'commandName':'changeCaseTitle'}];}class C extends _0x4680ec{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2c0b24=this['editor'];this['_registerComponents'](),_0x2c0b24['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':w(_0x2c0b24['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x212668=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x560a9e;for(const _0x229dbc in _0x212668){const _0x2d85b4=_0x229dbc,_0x5353cc=_0x212668[_0x2d85b4];if('caseChangeLicenseKeyValid'==_0x5353cc||'caseChangeLicenseKeyInvalid'==_0x5353cc||'caseChangeLicenseKeyExpired'==_0x5353cc||'caseChangeLicenseKeyDomainLimit'==_0x5353cc||'caseChangeLicenseKeyNotAllowed'==_0x5353cc||'caseChangeLicenseKeyEvaluationLimit'==_0x5353cc||'caseChangeLicenseKeyUsageLimit'==_0x5353cc){delete _0x212668[_0x2d85b4],_0x560a9e=_0x5353cc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x560a9e&&_0x212668['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x560a9e&&_0x212668['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x560a9e&&_0x212668['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x560a9e&&_0x212668['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x560a9e&&_0x212668['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x560a9e&&_0x212668['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x54f1d5=this['editor'],{itemDefinitions:_0x76c61c,commands:_0x355efe}=this['_getListItemDefinitionsAndCommands']();_0x54f1d5['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x76c61c,_0x355efe)),_0x54f1d5['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x76c61c,_0x355efe));}['_createMenuBarMenuView'](_0x239d4a,_0x145814){const _0x535e53=this['editor'],_0x421a6c=_0x535e53['locale'],_0x5a6084=new _0x3145cf(_0x421a6c),_0x38cf40=new _0x533512(_0x421a6c);_0x38cf40['set']({'ariaLabel':w(_0x421a6c,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x5a6084['buttonView']),_0x5a6084['bind']('isEnabled')['toMany'](_0x145814,'isEnabled',(..._0x144cb0)=>_0x144cb0['some'](_0xd8207c=>_0xd8207c));for(const _0x18c47e of _0x239d4a){const _0x51eb37=new _0x4c82d8(_0x421a6c,_0x5a6084),_0x13d1f7=new _0x54ca5a(_0x421a6c);_0x13d1f7['delegate']('execute')['to'](_0x5a6084),_0x13d1f7['bind'](...Object['keys'](_0x18c47e['model']))['to'](_0x18c47e['model']),_0x13d1f7['on']('execute',()=>{_0x535e53['execute'](_0x18c47e['model']['commandName']),_0x535e53['editing']['view']['focus']();}),_0x51eb37['children']['add'](_0x13d1f7),_0x38cf40['items']['add'](_0x51eb37);}return _0x5a6084['panelView']['children']['add'](_0x38cf40),_0x5a6084;}['_createDropdownView'](_0x32e98a,_0x4d6ac1){const _0x161d58=this['editor'],_0xbc9663=_0x23b6ad(_0x161d58['locale']);return this['_setButtonProperties'](_0xbc9663['buttonView']),_0xbc9663['buttonView']['set']({'tooltip':!0x0}),_0xbc9663['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0x1d8138(_0xbc9663,_0x32e98a,{'ariaLabel':w(_0x161d58['locale'],'Case\x20change'),'role':'menu'}),_0xbc9663['bind']('isEnabled')['toMany'](_0x4d6ac1,'isEnabled',(..._0x4abee8)=>_0x4abee8['some'](_0x327101=>_0x327101)),this['listenTo'](_0xbc9663,'execute',_0x235456=>{_0x161d58['execute'](_0x235456['source']['commandName']),_0x161d58['editing']['view']['focus']();}),_0xbc9663;}['_setButtonProperties'](_0xc5e230){const _0x24c861=this['editor'];_0xc5e230['set']({'label':w(_0x24c861['locale'],'Case\x20change'),'icon':_0x40297f,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x4055d2=new _0x167387(),_0x1b4c9a=[];for(const _0x48dd4c of m(this['editor']['locale'])){const _0x209666=this['editor']['commands']['get'](_0x48dd4c['commandName']),_0x4fa5a9=new _0xbb23c7({'commandName':_0x48dd4c['commandName'],'label':_0x48dd4c['label'],'role':'menuitemradio','withText':!0x0});_0x4fa5a9['bind']('isEnabled')['to'](_0x209666,'isEnabled'),_0x4055d2['add']({'type':'button','model':_0x4fa5a9}),_0x1b4c9a['push'](_0x209666);}return{'itemDefinitions':_0x4055d2,'commands':_0x1b4c9a};}}class y extends _0x4680ec{static get['requires'](){return[g,C];}static get['pluginName'](){return'CaseChange';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{y as CaseChange,d as CaseChangeCommand,g as CaseChangeEditing,C as CaseChangeUI};
|
|
23
|
+
import{Command as _0x11b13d,Plugin as _0x218328}from'@ckeditor/ckeditor5-core/dist/index.js';import{uid as _0x1837c3,Collection as _0xcf3d04}from'@ckeditor/ckeditor5-utils/dist/index.js';import{MenuBarMenuView as _0x5ba7f7,MenuBarMenuListView as _0x100fda,MenuBarMenuListItemView as _0x1a3e4d,MenuBarMenuListItemButtonView as _0x23a75e,createDropdown as _0xe9b40d,addListToDropdown as _0x20060b,UIModel as _0x3763f9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconCaseChange as _0x7f8c59}from'@ckeditor/ckeditor5-icons/dist/index.js';class d extends _0x11b13d{['_transformCallback'];constructor(_0x11af89,_0x53e3bb){super(_0x11af89),this['_transformCallback']=_0x53e3bb;}['execute'](){const _0x518999=this['editor']['model'],_0x413c3=Array['from'](this['_getAffectedRanges']()),_0x2408ff=Array['from'](_0x518999['document']['selection']['getRanges']());_0x518999['change'](_0x5e32a1=>{for(const _0x3d2e35 of _0x413c3)this['_modifyContent'](_0x3d2e35,_0x5e32a1);_0x5e32a1['setSelection'](_0x2408ff);});}['refresh'](){for(const _0x443719 of this['_getAffectedRanges']())for(const _0x450796 of _0x443719)if(_0x450796['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0x44ec3c=this['editor']['model'],_0x42e656=_0x44ec3c['document']['selection'];if(_0x42e656['isCollapsed']){const _0x571a8c=this['_findAncestorTextBlock'](_0x42e656['getFirstPosition']()['parent']);return _0x571a8c?[_0x44ec3c['createRangeIn'](_0x571a8c)]:[];}return _0x42e656['getRanges']();}['_modifyContent'](_0x431f74,_0xe149d5){for(const _0x5f471 of this['_getElementsAllowingText'](_0x431f74)){const _0x5d07a2=this['_getElementTextContent'](_0x5f471),_0x127195=this['_transformCallback'](_0x5d07a2);for(const _0x4a074c of this['_getTextNodesRangeLimited'](_0x5f471,_0x431f74))this['_replaceTextNodeData'](_0x4a074c,_0x127195,_0xe149d5);}}['_findAncestorTextBlock'](_0x3fde3d){const _0x35828c=this['editor']['model']['schema'];if(_0x3fde3d['is']('element')&&_0x35828c['checkChild'](_0x3fde3d,'$text'))return _0x3fde3d;const _0x4909ac=_0x3fde3d['parent'];return!_0x4909ac||_0x35828c['isLimit'](_0x3fde3d)?null:this['_findAncestorTextBlock'](_0x4909ac);}*['_getElementsAllowingText'](_0x1411ca){const _0x490976=new Set();for(const {item:_0x532333}of _0x1411ca['getWalker']()){const _0x4158f3=this['_findAncestorTextBlock'](_0x532333);_0x4158f3&&!_0x490976['has'](_0x4158f3)&&(_0x490976['add'](_0x4158f3),yield _0x4158f3);}}['_getElementTextContent'](_0x382b66){return Array['from'](_0x382b66['getChildren']())['reduce']((_0x1d7c93,_0xc1d994)=>_0x1d7c93+(_0xc1d994['is']('$text')?_0xc1d994['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x4e962d,_0x4dfeb0){const _0x38e9be=_0x4dfeb0['getIntersection'](this['editor']['model']['createRangeIn'](_0x4e962d));if(_0x38e9be){for(const _0x3e0f4a of _0x38e9be['getItems']())_0x3e0f4a['is']('$textProxy')&&_0x3e0f4a['parent']==_0x4e962d&&(yield _0x3e0f4a);}}['_replaceTextNodeData'](_0x31ae7c,_0x25af63,_0x5074a4){const _0x4a966b=_0x25af63['substring'](_0x31ae7c['startOffset'],_0x31ae7c['endOffset']);if(_0x4a966b===_0x31ae7c['data'])return;const _0x3bbdea=_0x31ae7c['getAttributes']();this['editor']['model']['insertContent'](_0x5074a4['createText'](_0x4a966b,_0x3bbdea),_0x5074a4['createSelection'](_0x5074a4['createRangeOn'](_0x31ae7c)));}}function w(_0x13e73d,_0x32a6b2,..._0x254710){const t=_0x13e73d['t'];switch(_0x32a6b2){case'Case\x20change':return t('Case\x20change');case'UPPERCASE':return t('UPPERCASE');case'lowercase':return t('lowercase');case'Title\x20Case':return t('Title\x20Case');case'Change\x20text\x20case':return t('Change\x20text\x20case');case'Changed\x20case\x20to\x20%0':return t('Changed\x20case\x20to\x20%0',..._0x254710);default:return _0x32a6b2;}}class g extends _0x218328{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5bdb32=this['editor'],_0x3073f0=_0x5bdb32['locale']['contentLanguage'],_0x158995=function(_0x2237f7=[]){return'function'==typeof _0x2237f7?_0x2237f7:(_0x2c5cfe,{wordIndex:_0x31ae8d})=>_0x31ae8d>0x0&&_0x2237f7['includes'](_0x2c5cfe);}(_0x5bdb32['config']['get']('caseChange.titleCase.excludeWords')),_0x4485bc={'changeCaseUpper':new d(_0x5bdb32,_0x1d5978=>_0x1d5978['toLocaleUpperCase'](_0x3073f0)),'changeCaseLower':new d(_0x5bdb32,_0x1f515e=>_0x1f515e['toLocaleLowerCase'](_0x3073f0)),'changeCaseTitle':new d(_0x5bdb32,_0x528b28=>function(_0x5949d4,_0x47e2d3,_0x3fa1dc){return function(_0x13f851,_0x4a4dbb){let _0x47883d='',_0xa40415=0x0,_0x477de2=0x0;for(const _0x5ed010 of _0x13f851['matchAll'](/ +/g)){const _0x27eaa8=_0x5ed010['index'],_0x1766be=_0x13f851['substring'](_0xa40415,_0x27eaa8);_0x1766be['length']&&(_0x47883d+=_0x4a4dbb(_0x1766be,_0xa40415,_0x477de2++)),_0x47883d+=_0x5ed010[0x0],_0xa40415=_0x27eaa8+_0x5ed010[0x0]['length'];}const _0x133973=_0x13f851['substring'](_0xa40415);return _0x133973['length']&&(_0x47883d+=_0x4a4dbb(_0x133973,_0xa40415,_0x477de2)),_0x47883d;}(_0x5949d4,(_0x15b5a3,_0x520872,_0x209696)=>{const _0x534079=_0x15b5a3['toLocaleLowerCase'](_0x3fa1dc);return _0x47e2d3(_0x534079,{'charOffset':_0x520872,'wordIndex':_0x209696,'blockText':_0x5949d4})?_0x534079:_0x534079['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x16ad70=>_0x16ad70['toLocaleUpperCase'](_0x3fa1dc));});}(_0x528b28,_0x158995,_0x3073f0))};for(const [_0x5d9fe0,_0x488a4e]of Object['entries'](_0x4485bc))_0x5bdb32['commands']['add'](_0x5d9fe0,_0x488a4e),_0x488a4e['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x5d9fe0);});this['listenTo'](_0x5bdb32['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x5bdb32['keystrokes']['set']('shift+f3',(_0xfeff3e,_0x59f1d8)=>{const _0x1e2a6a=m(this['editor']['locale']),_0x170629=_0x1e2a6a[this['_currentCommandIndex']%_0x1e2a6a['length']]['commandName'];_0x5bdb32['execute'](_0x170629),this['_currentCommandIndex']++,_0x59f1d8();});}['afterInit'](){!async function(_0x15594c){const _0x409cf8=_0x2d24a3([0x45,0x4d,0x44,0x53,0x33,0x64,0x73,0x4c,0x6f,0x4a,0x59,0x30,0x6e,0x62,0x65,0x39,0x63,0x6d,0x6c,0x43,0x72,0x58,0x79,0x61,0x5a,0x38,0x7a,0x70,0x50,0x71,0x4e,0x36,0x6a,0x78,0x54,0x68,0x66,0x37,0x67,0x77,0x42,0x69,0x32,0x4b,0x46,0x4f,0x56,0x55,0x57,0x52,0x41,0x47,0x31,0x34,0x48,0x51,0x49,0x6b,0x75,0x74,0x35,0x76]),_0x59a520=0x334129cd,_0x2c1648=0x3346acdd^_0x59a520,_0x1f6fd2=window[_0x2d24a3([0x44,0x61,0x74,0x65])][_0x2d24a3([0x6e,0x6f,0x77])](),_0x2b859b=_0x15594c[_0x2d24a3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4ab3b3=new window[(_0x2d24a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4aa311=>{_0x2b859b[_0x2d24a3([0x6f,0x6e,0x63,0x65])](_0x2d24a3([0x72,0x65,0x61,0x64,0x79]),_0x4aa311);}),_0x5c773b={[_0x2d24a3([0x6b,0x74,0x79])]:_0x2d24a3([0x45,0x43]),[_0x2d24a3([0x75,0x73,0x65])]:_0x2d24a3([0x73,0x69,0x67]),[_0x2d24a3([0x63,0x72,0x76])]:_0x2d24a3([0x50,0x2d,0x32,0x35,0x36]),[_0x2d24a3([0x78])]:_0x2d24a3([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]),[_0x2d24a3([0x79])]:_0x2d24a3([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]),[_0x2d24a3([0x61,0x6c,0x67])]:_0x2d24a3([0x45,0x53,0x32,0x35,0x36])},_0x1593ed=_0x2b859b[_0x2d24a3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2d24a3([0x67,0x65,0x74])](_0x2d24a3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x8e9ea(){let _0x5b3d4e,_0x233d6c=null,_0x9fae69=null;try{if(_0x1593ed==_0x2d24a3([0x47,0x50,0x4c]))return _0x2d24a3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5b3d4e=_0x2f0d4c(),!_0x5b3d4e)return _0x2d24a3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5b3d4e[_0x2d24a3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x9fae69=_0x983c49(_0x5b3d4e[_0x2d24a3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5b3d4e[_0x2d24a3([0x6a,0x74,0x69])])),await _0x5b324b()?_0x211e58()?_0x297869()?_0x2d24a3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x14da14()?(_0x5b3d4e[_0x2d24a3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2d24a3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x233d6c=_0x15c97c(_0x2d24a3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xd1a6af()):_0x2d24a3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2d24a3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2d24a3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2d24a3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x297869(){const _0x247b20=[_0x2d24a3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2d24a3([0x74,0x72,0x69,0x61,0x6c])][_0x2d24a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b3d4e[_0x2d24a3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1f6fd2/0x3e8:0xe10*_0x2c1648;return _0x5b3d4e[_0x2d24a3([0x65,0x78,0x70])]<_0x247b20;}function _0x211e58(){const _0x5d7184=_0x5b3d4e[_0x2d24a3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5d7184&&(!!_0x5d7184[_0x2d24a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d24a3([0x2a]))||(!!_0x5d7184[_0x2d24a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d24a3([0x43,0x43]))||!!_0x5d7184[_0x2d24a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d24a3([0x50,0x50]))));}function _0x14da14(){const _0x35ded1=_0x5b3d4e[_0x2d24a3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x35ded1||0x0==_0x35ded1[_0x2d24a3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4e8051}=new URL(window[_0x2d24a3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x35ded1[_0x2d24a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e8051))return!0x0;const _0x365bdb=_0x4e8051[_0x2d24a3([0x73,0x70,0x6c,0x69,0x74])](_0x2d24a3([0x2e]));return _0x35ded1[_0x2d24a3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x322efc=>_0x322efc[_0x2d24a3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d24a3([0x2a])))[_0x2d24a3([0x6d,0x61,0x70])](_0x10fded=>_0x10fded[_0x2d24a3([0x73,0x70,0x6c,0x69,0x74])](_0x2d24a3([0x2e])))[_0x2d24a3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x83cdc0=>_0x83cdc0[_0x2d24a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x365bdb[_0x2d24a3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2d24a3([0x6d,0x61,0x70])](_0x225021=>Array(_0x365bdb[_0x2d24a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x225021[_0x2d24a3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2d24a3([0x66,0x69,0x6c,0x6c])](_0x225021[0x0]===_0x2d24a3([0x2a])?_0x2d24a3([0x2a]):'')[_0x2d24a3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x225021))[_0x2d24a3([0x73,0x6f,0x6d,0x65])](_0x2a60ac=>_0x365bdb[_0x2d24a3([0x65,0x76,0x65,0x72,0x79])]((_0x23567c,_0x46d9bb)=>_0x2a60ac[_0x46d9bb]===_0x23567c||_0x2a60ac[_0x46d9bb]===_0x2d24a3([0x2a])));}function _0xd1a6af(){return _0x233d6c&&_0x9fae69?new window[(_0x2d24a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38a486,_0x5eb30c)=>{_0x233d6c[_0x2d24a3([0x74,0x68,0x65,0x6e])](_0x38a486,_0x5eb30c),_0x9fae69[_0x2d24a3([0x74,0x68,0x65,0x6e])](_0x1ed2e6=>{_0x1ed2e6!=_0x2d24a3([0x56,0x61,0x6c,0x69,0x64])&&_0x38a486(_0x1ed2e6);},_0x5eb30c);}):_0x233d6c||_0x9fae69||_0x2d24a3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x983c49(_0x17aace,_0x2453cc){return new window[(_0x2d24a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2dceda=>{if(_0x14db0f())return _0x2dceda(_0x2d24a3([0x56,0x61,0x6c,0x69,0x64]));_0x324cc6(),_0x2b859b[_0x2d24a3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2d24a3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c3d27=!0x1;const _0x542a3b=_0x1837c3();function _0x59d4e7(_0x47df42){return!!_0x47df42&&(typeof _0x47df42===_0x2d24a3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x47df42===_0x2d24a3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x47df42[_0x2d24a3([0x74,0x68,0x65,0x6e])]===_0x2d24a3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x47df42[_0x2d24a3([0x63,0x61,0x74,0x63,0x68])]===_0x2d24a3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46aedf(_0x5e4707){_0x1090a5(_0x5e4707)[_0x2d24a3([0x74,0x68,0x65,0x6e])](_0x4b2918=>{if(!_0x4b2918||_0x4b2918[_0x2d24a3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2d24a3([0x6f,0x6b]))return _0x2d24a3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x93f793(_0xf125e7(_0x542a3b+_0x2453cc))!=_0x4b2918[_0x2d24a3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2d24a3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2d24a3([0x56,0x61,0x6c,0x69,0x64]);})[_0x2d24a3([0x74,0x68,0x65,0x6e])](_0x5a0f98=>(_0x5d21da(),_0x5a0f98),()=>{const _0x36de18=_0x5c5749();return null==_0x36de18?(_0x5d21da(),_0x2d24a3([0x56,0x61,0x6c,0x69,0x64])):_0x2d24a3(_0x1f6fd2-_0x36de18>(0x174dadcd^_0x59a520)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2d24a3([0x74,0x68,0x65,0x6e])](_0x2dceda)[_0x2d24a3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2dceda(_0x2d24a3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5bf04f=0x3377c74d^_0x59a520;function _0x5d21da(){const _0x5d92e1=_0x2d24a3([0x6c,0x6c,0x63,0x74,0x2d])+_0x93f793(_0xf125e7(_0x17aace)),_0x200c99=_0x52d3f0(_0x93f793(window[_0x2d24a3([0x4d,0x61,0x74,0x68])][_0x2d24a3([0x63,0x65,0x69,0x6c])](_0x1f6fd2/_0x5bf04f)));window[_0x2d24a3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2d24a3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d92e1,_0x200c99);}function _0x5c5749(){const _0x25a9e5=_0x2d24a3([0x6c,0x6c,0x63,0x74,0x2d])+_0x93f793(_0xf125e7(_0x17aace)),_0xd8a65a=window[_0x2d24a3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2d24a3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25a9e5);return _0xd8a65a?window[_0x2d24a3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52d3f0(_0xd8a65a),0x10)*_0x5bf04f:null;}function _0x1090a5(_0x454781){return new window[(_0x2d24a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14e5ea,_0x10a4bb)=>{_0x454781[_0x2d24a3([0x74,0x68,0x65,0x6e])](_0x14e5ea,_0x10a4bb),window[_0x2d24a3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x10a4bb,0x3340fd0d^_0x59a520);});}}_0x2b859b[_0x2d24a3([0x6f,0x6e])](_0x2d24a3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3e31ef,_0x3ccc8e)=>{if(_0x3ccc8e[0x0]!=_0x17aace)return _0x2dceda(_0x2d24a3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3ccc8e[0x1]={..._0x3ccc8e[0x1],[_0x2d24a3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x542a3b};},{[_0x2d24a3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2d24a3([0x68,0x69,0x67,0x68])}),_0x2b859b[_0x2d24a3([0x6f,0x6e])](_0x2d24a3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x15e4ca=>{_0x59d4e7(_0x15e4ca[_0x2d24a3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c3d27=!0x0,_0x46aedf(_0x15e4ca[_0x2d24a3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2d24a3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2d24a3([0x6c,0x6f,0x77])}),_0x4ab3b3[_0x2d24a3([0x74,0x68,0x65,0x6e])](()=>{_0x2c3d27||_0x2dceda(_0x2d24a3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x14db0f(){return _0x2b859b[_0x2d24a3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d24a3([0x76,0x69,0x65,0x77])][_0x2d24a3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2d24a3([0x61,0x75,0x74,0x6f]);}function _0x324cc6(){_0x2b859b[_0x2d24a3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d24a3([0x76,0x69,0x65,0x77])][_0x2d24a3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2d24a3([0x61,0x75,0x74,0x6f]);}}function _0x15c97c(_0x14aece){const _0x1221b2=[new window[(_0x2d24a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cb8c3=>setTimeout(_0x2cb8c3,0x33481701^_0x59a520)),_0x4ab3b3[_0x2d24a3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2d24a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19a83b=>{let _0x4ff0bd=0x0;_0x2b859b[_0x2d24a3([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d24a3([0x6f,0x6e])](_0x2d24a3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x52e181,_0x5dd7ff)=>{_0x5dd7ff[0x0][_0x2d24a3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4ff0bd++,_0x4ff0bd==(0x33412c25^_0x59a520)&&(_0x19a83b(),_0x52e181[_0x2d24a3([0x6f,0x66,0x66])]());});}))];return window[_0x2d24a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2d24a3([0x72,0x61,0x63,0x65])](_0x1221b2)[_0x2d24a3([0x74,0x68,0x65,0x6e])](()=>_0x14aece);}async function _0x52a951(){await _0x4ab3b3,_0x2b859b[_0x2d24a3([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d24a3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x7c1b11,_0x2b859b[_0x2d24a3([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d24a3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x7c1b11,_0x2b859b[_0x2d24a3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2d24a3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5f4ddd(_0x2ee89f){const _0x84c01a=_0x4aa548();_0x2b859b[_0x84c01a]=_0x2d24a3([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2ee89f,_0x2ee89f!=_0x2d24a3([0x56,0x61,0x6c,0x69,0x64])&&_0x52a951();}function _0x4aa548(){const _0xba8492=window[_0x2d24a3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2d24a3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2d24a3([0x6e,0x6f,0x77])]())[_0x2d24a3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2d24a3([0x2e]),'');let _0x51b8b9=_0x2d24a3([0x45]);for(let _0x52c784=0x0;_0x52c784<_0xba8492[_0x2d24a3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x52c784+=0x2){let _0x5e207a=window[_0x2d24a3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xba8492[_0x2d24a3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x52c784,_0x52c784+0x2));_0x5e207a>=_0x409cf8[_0x2d24a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5e207a-=_0x409cf8[_0x2d24a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x51b8b9+=_0x409cf8[_0x5e207a];}return _0x51b8b9;}function _0x2f0d4c(){const _0x1c0490=_0x1593ed[_0x2d24a3([0x73,0x70,0x6c,0x69,0x74])](_0x2d24a3([0x2e]));if(0x3!=_0x1c0490[_0x2d24a3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4bec0c(_0x1c0490[0x1]);function _0x4bec0c(_0x5f596b){const _0x44485d=_0x14b442(_0x5f596b);return _0x44485d&&_0x43ca26()?_0x44485d:null;function _0x43ca26(){const _0x321e2f=_0x44485d[_0x2d24a3([0x6a,0x74,0x69])],_0x53d465=window[_0x2d24a3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x321e2f[_0x2d24a3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x321e2f[_0x2d24a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5146ef={..._0x44485d,[_0x2d24a3([0x6a,0x74,0x69])]:_0x321e2f[_0x2d24a3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x321e2f[_0x2d24a3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5146ef[_0x2d24a3([0x76,0x63])],_0xf125e7(_0x5146ef)==_0x53d465;}}}async function _0x5b324b(){let _0x5a5c84=!0x0;try{const _0x461133=_0x1593ed[_0x2d24a3([0x73,0x70,0x6c,0x69,0x74])](_0x2d24a3([0x2e])),[_0x1dfe2c,_0x2ffdf4,_0xe3b79f]=_0x461133;return _0x2bda92(_0x1dfe2c),await _0x80b673(_0x1dfe2c,_0x2ffdf4,_0xe3b79f),_0x5a5c84;}catch{return!0x1;}function _0x2bda92(_0x3e3c8a){const _0x4abc95=_0x14b442(_0x3e3c8a);_0x4abc95&&_0x4abc95[_0x2d24a3([0x61,0x6c,0x67])]==_0x2d24a3([0x45,0x53,0x32,0x35,0x36])||(_0x5a5c84=!0x1);}async function _0x80b673(_0x503ff4,_0x5660e8,_0x5bcd91){const _0x2155cb=window[_0x2d24a3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2d24a3([0x66,0x72,0x6f,0x6d])](_0x2ae25f(_0x5bcd91),_0x364be7=>_0x364be7[_0x2d24a3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xb9905b=new window[(_0x2d24a3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2d24a3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x503ff4+_0x2d24a3([0x2e])+_0x5660e8),_0x16e79a=window[_0x2d24a3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2d24a3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x16e79a)return;const _0x35558d=await _0x16e79a[_0x2d24a3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2d24a3([0x6a,0x77,0x6b]),_0x5c773b,{[_0x2d24a3([0x6e,0x61,0x6d,0x65])]:_0x2d24a3([0x45,0x43,0x44,0x53,0x41]),[_0x2d24a3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2d24a3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2d24a3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x16e79a[_0x2d24a3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2d24a3([0x6e,0x61,0x6d,0x65])]:_0x2d24a3([0x45,0x43,0x44,0x53,0x41]),[_0x2d24a3([0x68,0x61,0x73,0x68])]:{[_0x2d24a3([0x6e,0x61,0x6d,0x65])]:_0x2d24a3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x35558d,_0x2155cb,_0xb9905b)||(_0x5a5c84=!0x1);}}function _0x14b442(_0x47bcad){return _0x47bcad[_0x2d24a3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2d24a3([0x65,0x79]))?JSON[_0x2d24a3([0x70,0x61,0x72,0x73,0x65])](_0x2ae25f(_0x47bcad)):null;}function _0x2ae25f(_0x3992ec){return window[_0x2d24a3([0x61,0x74,0x6f,0x62])](_0x3992ec[_0x2d24a3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2d24a3([0x2b]))[_0x2d24a3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2d24a3([0x2f])));}function _0xf125e7(_0x10f80f){let _0x500fa7=0x1505;function _0x2bd439(_0xc312cb){for(let _0x374a23=0x0;_0x374a23<_0xc312cb[_0x2d24a3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x374a23++){const _0x2980c3=_0xc312cb[_0x2d24a3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x374a23);_0x500fa7=(_0x500fa7<<0x5)+_0x500fa7+_0x2980c3,_0x500fa7&=_0x500fa7;}}function _0x1d5312(_0x2072c0){Array[_0x2d24a3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2072c0)?_0x2072c0[_0x2d24a3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1d5312):_0x2072c0&&typeof _0x2072c0==_0x2d24a3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2d24a3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2072c0)[_0x2d24a3([0x73,0x6f,0x72,0x74])]()[_0x2d24a3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3da3dd,_0x1124e9])=>{_0x2bd439(_0x3da3dd),_0x1d5312(_0x1124e9);}):_0x2bd439(window[_0x2d24a3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2072c0));}return _0x1d5312(_0x10f80f),_0x500fa7>>>0x0;}function _0x93f793(_0x34c860){return _0x34c860[_0x2d24a3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2d24a3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2d24a3([0x30]));}function _0x52d3f0(_0x2b3fdf){return _0x2b3fdf[_0x2d24a3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2d24a3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2d24a3([0x6a,0x6f,0x69,0x6e])]('');}function _0x7c1b11(){}function _0x2d24a3(_0x175135){return _0x175135['map'](_0x2cd935=>String['fromCharCode'](_0x2cd935))['join']('');}_0x5f4ddd(await _0x8e9ea());}(this);}['_announceCaseChangeOperation'](_0x231c79){const {ui:_0x295cec,locale:_0x21ff6b}=this['editor'],_0x345370=m(_0x21ff6b)['find'](_0xc5ad9=>_0xc5ad9['commandName']===_0x231c79)['label']['toLowerCase']();_0x295cec['ariaLiveAnnouncer']['announce'](w(_0x21ff6b,'Changed\x20case\x20to\x20%0',_0x345370));}}function m(_0x5a1494){return[{'label':w(_0x5a1494,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':w(_0x5a1494,'lowercase'),'commandName':'changeCaseLower'},{'label':w(_0x5a1494,'Title\x20Case'),'commandName':'changeCaseTitle'}];}class C extends _0x218328{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4754df=this['editor'];this['_registerComponents'](),_0x4754df['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':w(_0x4754df['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3ac5b8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2cc8be;for(const _0x4ef122 in _0x3ac5b8){const _0x1121fb=_0x4ef122,_0x3739d3=_0x3ac5b8[_0x1121fb];if('caseChangeLicenseKeyValid'==_0x3739d3||'caseChangeLicenseKeyInvalid'==_0x3739d3||'caseChangeLicenseKeyExpired'==_0x3739d3||'caseChangeLicenseKeyDomainLimit'==_0x3739d3||'caseChangeLicenseKeyNotAllowed'==_0x3739d3||'caseChangeLicenseKeyEvaluationLimit'==_0x3739d3||'caseChangeLicenseKeyUsageLimit'==_0x3739d3){delete _0x3ac5b8[_0x1121fb],_0x2cc8be=_0x3739d3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x2cc8be&&_0x3ac5b8['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x2cc8be&&_0x3ac5b8['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x2cc8be&&_0x3ac5b8['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x2cc8be&&_0x3ac5b8['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x2cc8be&&_0x3ac5b8['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x2cc8be&&_0x3ac5b8['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x147b1a=this['editor'],{itemDefinitions:_0x1ebe2b,commands:_0x31f4f8}=this['_getListItemDefinitionsAndCommands']();_0x147b1a['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x1ebe2b,_0x31f4f8)),_0x147b1a['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x1ebe2b,_0x31f4f8));}['_createMenuBarMenuView'](_0x1b4fe0,_0x15615a){const _0x27ce33=this['editor'],_0x3f78f5=_0x27ce33['locale'],_0x475b11=new _0x5ba7f7(_0x3f78f5),_0x5f5d41=new _0x100fda(_0x3f78f5);_0x5f5d41['set']({'ariaLabel':w(_0x3f78f5,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x475b11['buttonView']),_0x475b11['bind']('isEnabled')['toMany'](_0x15615a,'isEnabled',(..._0x3a9add)=>_0x3a9add['some'](_0x127984=>_0x127984));for(const _0x1537d7 of _0x1b4fe0){const _0x22c3e3=new _0x1a3e4d(_0x3f78f5,_0x475b11),_0x331c09=new _0x23a75e(_0x3f78f5);_0x331c09['delegate']('execute')['to'](_0x475b11),_0x331c09['bind'](...Object['keys'](_0x1537d7['model']))['to'](_0x1537d7['model']),_0x331c09['on']('execute',()=>{_0x27ce33['execute'](_0x1537d7['model']['commandName']),_0x27ce33['editing']['view']['focus']();}),_0x22c3e3['children']['add'](_0x331c09),_0x5f5d41['items']['add'](_0x22c3e3);}return _0x475b11['panelView']['children']['add'](_0x5f5d41),_0x475b11;}['_createDropdownView'](_0x234207,_0x13f53b){const _0x2f8e33=this['editor'],_0x36eded=_0xe9b40d(_0x2f8e33['locale']);return this['_setButtonProperties'](_0x36eded['buttonView']),_0x36eded['buttonView']['set']({'tooltip':!0x0}),_0x36eded['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0x20060b(_0x36eded,_0x234207,{'ariaLabel':w(_0x2f8e33['locale'],'Case\x20change'),'role':'menu'}),_0x36eded['bind']('isEnabled')['toMany'](_0x13f53b,'isEnabled',(..._0x53c491)=>_0x53c491['some'](_0x58d222=>_0x58d222)),this['listenTo'](_0x36eded,'execute',_0x1e3644=>{_0x2f8e33['execute'](_0x1e3644['source']['commandName']),_0x2f8e33['editing']['view']['focus']();}),_0x36eded;}['_setButtonProperties'](_0x27608b){const _0x28dbd1=this['editor'];_0x27608b['set']({'label':w(_0x28dbd1['locale'],'Case\x20change'),'icon':_0x7f8c59,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x498bf3=new _0xcf3d04(),_0x48d430=[];for(const _0x22b6fd of m(this['editor']['locale'])){const _0x2090d5=this['editor']['commands']['get'](_0x22b6fd['commandName']),_0x4dc7d5=new _0x3763f9({'commandName':_0x22b6fd['commandName'],'label':_0x22b6fd['label'],'role':'menuitemradio','withText':!0x0});_0x4dc7d5['bind']('isEnabled')['to'](_0x2090d5,'isEnabled'),_0x498bf3['add']({'type':'button','model':_0x4dc7d5}),_0x48d430['push'](_0x2090d5);}return{'itemDefinitions':_0x498bf3,'commands':_0x48d430};}}class y extends _0x218328{static get['requires'](){return[g,C];}static get['pluginName'](){return'CaseChange';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{y as CaseChange,d as CaseChangeCommand,g as CaseChangeEditing,C as CaseChangeUI};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-case-change",
|
|
3
|
-
"version": "48.0.0-alpha.
|
|
3
|
+
"version": "48.0.0-alpha.3",
|
|
4
4
|
"description": "Case change feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"./package.json": "./package.json"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@ckeditor/ckeditor5-core": "48.0.0-alpha.
|
|
40
|
-
"@ckeditor/ckeditor5-engine": "48.0.0-alpha.
|
|
41
|
-
"@ckeditor/ckeditor5-icons": "48.0.0-alpha.
|
|
42
|
-
"@ckeditor/ckeditor5-ui": "48.0.0-alpha.
|
|
43
|
-
"@ckeditor/ckeditor5-utils": "48.0.0-alpha.
|
|
39
|
+
"@ckeditor/ckeditor5-core": "48.0.0-alpha.3",
|
|
40
|
+
"@ckeditor/ckeditor5-engine": "48.0.0-alpha.3",
|
|
41
|
+
"@ckeditor/ckeditor5-icons": "48.0.0-alpha.3",
|
|
42
|
+
"@ckeditor/ckeditor5-ui": "48.0.0-alpha.3",
|
|
43
|
+
"@ckeditor/ckeditor5-utils": "48.0.0-alpha.3"
|
|
44
44
|
},
|
|
45
45
|
"files": [
|
|
46
46
|
"dist",
|