@ckeditor/ckeditor5-case-change 48.8.1-alpha.0 → 48.8.1-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x5ef3ec,Plugin as _0x1c56e0}from'@ckeditor/ckeditor5-core/dist/index.js';import{uid as _0x3e7364,Collection as _0x3d9cf7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{MenuBarMenuView as _0x2a7fba,MenuBarMenuListView as _0x551f1d,MenuBarMenuListItemView as _0x5b938f,MenuBarMenuListItemButtonView as _0x34000b,createDropdown as _0x2a9ce7,addListToDropdown as _0x311e43,UIModel as _0x1d9e27}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconCaseChange as _0x209893}from'@ckeditor/ckeditor5-icons/dist/index.js';class CaseChangeCommand extends _0x5ef3ec{['_transformCallback'];constructor(_0x9fafd1,_0x47e19e){super(_0x9fafd1),this['_transformCallback']=_0x47e19e;}['execute'](){const _0x3d998b=this['editor']['model'],_0x3238b0=Array['from'](this['_getAffectedRanges']()),_0x490973=Array['from'](_0x3d998b['document']['selection']['getRanges']());_0x3d998b['change'](_0x73177=>{for(const _0x347af6 of _0x3238b0)this['_modifyContent'](_0x347af6,_0x73177);_0x73177['setSelection'](_0x490973);});}['refresh'](){for(const _0x36259a of this['_getAffectedRanges']())for(const _0x287d51 of _0x36259a)if(_0x287d51['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0x49f06e=this['editor']['model'],_0xb23821=_0x49f06e['document']['selection'];if(_0xb23821['isCollapsed']){const _0x470e75=this['_findAncestorTextBlock'](_0xb23821['getFirstPosition']()['parent']);return _0x470e75?[_0x49f06e['createRangeIn'](_0x470e75)]:[];}return _0xb23821['getRanges']();}['_modifyContent'](_0x6b331c,_0x4042ab){for(const _0x564611 of this['_getElementsAllowingText'](_0x6b331c)){const _0x2561b1=this['_getElementTextContent'](_0x564611),_0x9629d1=this['_transformCallback'](_0x2561b1);for(const _0x552587 of this['_getTextNodesRangeLimited'](_0x564611,_0x6b331c))this['_replaceTextNodeData'](_0x552587,_0x9629d1,_0x4042ab);}}['_findAncestorTextBlock'](_0x5a61c7){const _0x3948af=this['editor']['model']['schema'];if(_0x5a61c7['is']('element')&&_0x3948af['checkChild'](_0x5a61c7,'$text'))return _0x5a61c7;const _0x42119a=_0x5a61c7['parent'];return!_0x42119a||_0x3948af['isLimit'](_0x5a61c7)?null:this['_findAncestorTextBlock'](_0x42119a);}*['_getElementsAllowingText'](_0x438c2f){const _0x3a56db=new Set();for(const {item:_0x38ebc8}of _0x438c2f['getWalker']()){const _0x4396ae=this['_findAncestorTextBlock'](_0x38ebc8);_0x4396ae&&!_0x3a56db['has'](_0x4396ae)&&(_0x3a56db['add'](_0x4396ae),yield _0x4396ae);}}['_getElementTextContent'](_0x4f6ed5){return Array['from'](_0x4f6ed5['getChildren']())['reduce']((_0x1e95bd,_0x27b595)=>_0x1e95bd+(_0x27b595['is']('$text')?_0x27b595['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x394c65,_0x2b6595){const _0x3fc7b9=_0x2b6595['getIntersection'](this['editor']['model']['createRangeIn'](_0x394c65));if(_0x3fc7b9){for(const _0x110f78 of _0x3fc7b9['getItems']())_0x110f78['is']('$textProxy')&&_0x110f78['parent']==_0x394c65&&(yield _0x110f78);}}['_replaceTextNodeData'](_0x3be9e2,_0x28b401,_0x269162){const _0x253435=_0x28b401['substring'](_0x3be9e2['startOffset'],_0x3be9e2['endOffset']);if(_0x253435===_0x3be9e2['data'])return;const _0x27172e=_0x3be9e2['getAttributes']();this['editor']['model']['insertContent'](_0x269162['createText'](_0x253435,_0x27172e),_0x269162['createSelection'](_0x269162['createRangeOn'](_0x3be9e2)));}}function d(_0x45107d,_0x5d643b,..._0x3d1b7d){const t=_0x45107d['t'];switch(_0x5d643b){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',..._0x3d1b7d);default:return _0x5d643b;}}class CaseChangeEditing extends _0x1c56e0{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1f73a8=this['editor'],_0x3f55ec=_0x1f73a8['locale']['contentLanguage'],_0x4d3499=function(_0x1ffc9c=[]){return'function'==typeof _0x1ffc9c?_0x1ffc9c:(_0x3e59bf,{wordIndex:_0x59e35d})=>_0x59e35d>0x0&&_0x1ffc9c['includes'](_0x3e59bf);}(_0x1f73a8['config']['get']('caseChange.titleCase.excludeWords')),_0x48bab5={'changeCaseUpper':new CaseChangeCommand(_0x1f73a8,_0x2365cd=>_0x2365cd['toLocaleUpperCase'](_0x3f55ec)),'changeCaseLower':new CaseChangeCommand(_0x1f73a8,_0x1f1396=>_0x1f1396['toLocaleLowerCase'](_0x3f55ec)),'changeCaseTitle':new CaseChangeCommand(_0x1f73a8,_0x4117c3=>function(_0x90e8fd,_0x5bc963,_0xdd4b6a){return function(_0x32ee13,_0x52f8c2){let _0x32ea12='',_0x4c3be3=0x0,_0x4c78da=0x0;for(const _0x164fe0 of _0x32ee13['matchAll'](/ +/g)){const _0x2b8c8f=_0x164fe0['index'],_0x388c69=_0x32ee13['substring'](_0x4c3be3,_0x2b8c8f);_0x388c69['length']&&(_0x32ea12+=_0x52f8c2(_0x388c69,_0x4c3be3,_0x4c78da++)),_0x32ea12+=_0x164fe0[0x0],_0x4c3be3=_0x2b8c8f+_0x164fe0[0x0]['length'];}const _0x34f526=_0x32ee13['substring'](_0x4c3be3);return _0x34f526['length']&&(_0x32ea12+=_0x52f8c2(_0x34f526,_0x4c3be3,_0x4c78da)),_0x32ea12;}(_0x90e8fd,(_0x1c8514,_0x3944ac,_0x94b4ad)=>{const _0x5ef87f=_0x1c8514['toLocaleLowerCase'](_0xdd4b6a);return _0x5bc963(_0x5ef87f,{'charOffset':_0x3944ac,'wordIndex':_0x94b4ad,'blockText':_0x90e8fd})?_0x5ef87f:_0x5ef87f['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x399afc=>_0x399afc['toLocaleUpperCase'](_0xdd4b6a));});}(_0x4117c3,_0x4d3499,_0x3f55ec))};for(const [_0x4d9e37,_0x415f03]of Object['entries'](_0x48bab5))_0x1f73a8['commands']['add'](_0x4d9e37,_0x415f03),_0x415f03['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x4d9e37);});this['listenTo'](_0x1f73a8['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x1f73a8['keystrokes']['set']('shift+f3',(_0x50c695,_0x2011e5)=>{const _0x478748=g(this['editor']['locale']),_0x14f38c=_0x478748[this['_currentCommandIndex']%_0x478748['length']]['commandName'];_0x1f73a8['execute'](_0x14f38c),this['_currentCommandIndex']++,_0x2011e5();});}['afterInit'](){!async function(_0x265d87){const _0x3b6fdc=_0x489094([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]),_0x19d765=0x334129cd,_0x4a7e64=0x3346a3ed^_0x19d765,_0x4bd81a=window[_0x489094([0x44,0x61,0x74,0x65])][_0x489094([0x6e,0x6f,0x77])](),_0x4728a0=_0x265d87[_0x489094([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2da03=new window[(_0x489094([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31866f=>{_0x4728a0[_0x489094([0x6f,0x6e,0x63,0x65])](_0x489094([0x72,0x65,0x61,0x64,0x79]),_0x31866f);}),_0x5136d5={[_0x489094([0x6b,0x74,0x79])]:_0x489094([0x45,0x43]),[_0x489094([0x75,0x73,0x65])]:_0x489094([0x73,0x69,0x67]),[_0x489094([0x63,0x72,0x76])]:_0x489094([0x50,0x2d,0x32,0x35,0x36]),[_0x489094([0x78])]:_0x489094([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]),[_0x489094([0x79])]:_0x489094([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]),[_0x489094([0x61,0x6c,0x67])]:_0x489094([0x45,0x53,0x32,0x35,0x36])},_0x2bd9c0=_0x4728a0[_0x489094([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x489094([0x67,0x65,0x74])](_0x489094([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x549f19(){let _0x349c80,_0x1915bd=null,_0x1379b9=null;try{if(_0x2bd9c0==_0x489094([0x47,0x50,0x4c]))return _0x489094([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x349c80=_0x563f45(),!_0x349c80)return _0x489094([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x349c80[_0x489094([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1379b9=_0x3c6e23(_0x349c80[_0x489094([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x349c80[_0x489094([0x6a,0x74,0x69])])),await _0x13ebf7()?_0x1d4a30()?_0x48e575()?_0x489094([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x29ba5d()?(_0x349c80[_0x489094([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x489094([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1915bd=_0x4e5a33(_0x489094([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3947be()):_0x489094([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x489094([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x489094([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x489094([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x48e575(){const _0x4e791b=[_0x489094([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x489094([0x74,0x72,0x69,0x61,0x6c])][_0x489094([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x349c80[_0x489094([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4bd81a/0x3e8:0xe10*_0x4a7e64;return _0x349c80[_0x489094([0x65,0x78,0x70])]<_0x4e791b;}function _0x1d4a30(){const _0x339f51=_0x349c80[_0x489094([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x339f51&&(!!_0x339f51[_0x489094([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x489094([0x2a]))||(!!_0x339f51[_0x489094([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x489094([0x43,0x43]))||!!_0x339f51[_0x489094([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x489094([0x50,0x50]))));}function _0x29ba5d(){const _0x3113ac=_0x349c80[_0x489094([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3113ac||0x0==_0x3113ac[_0x489094([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5a8c33}=new URL(window[_0x489094([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3113ac[_0x489094([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a8c33))return!0x0;const _0x64d077=_0x5a8c33[_0x489094([0x73,0x70,0x6c,0x69,0x74])](_0x489094([0x2e]));return _0x3113ac[_0x489094([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x324623=>_0x324623[_0x489094([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x489094([0x2a])))[_0x489094([0x6d,0x61,0x70])](_0x12a3c7=>_0x12a3c7[_0x489094([0x73,0x70,0x6c,0x69,0x74])](_0x489094([0x2e])))[_0x489094([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x418b55=>_0x418b55[_0x489094([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x64d077[_0x489094([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x489094([0x6d,0x61,0x70])](_0x5782cb=>Array(_0x64d077[_0x489094([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5782cb[_0x489094([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x489094([0x66,0x69,0x6c,0x6c])](_0x5782cb[0x0]===_0x489094([0x2a])?_0x489094([0x2a]):'')[_0x489094([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5782cb))[_0x489094([0x73,0x6f,0x6d,0x65])](_0x17fc8a=>_0x64d077[_0x489094([0x65,0x76,0x65,0x72,0x79])]((_0x56dc30,_0x396b33)=>_0x17fc8a[_0x396b33]===_0x56dc30||_0x17fc8a[_0x396b33]===_0x489094([0x2a])));}function _0x3947be(){return _0x1915bd&&_0x1379b9?new window[(_0x489094([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x116483,_0x25ecee)=>{_0x1915bd[_0x489094([0x74,0x68,0x65,0x6e])](_0x116483,_0x25ecee),_0x1379b9[_0x489094([0x74,0x68,0x65,0x6e])](_0x31529d=>{_0x31529d!=_0x489094([0x56,0x61,0x6c,0x69,0x64])&&_0x116483(_0x31529d);},_0x25ecee);}):_0x1915bd||_0x1379b9||_0x489094([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3c6e23(_0x49f99f,_0x2af719){return new window[(_0x489094([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fd11b=>{if(_0x2b79cf())return _0x2fd11b(_0x489094([0x56,0x61,0x6c,0x69,0x64]));_0x15f28c(),_0x4728a0[_0x489094([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x489094([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x25a412=!0x1;const _0x40f14b=_0x3e7364();function _0x2f609e(_0x19ef3f){return!!_0x19ef3f&&(typeof _0x19ef3f===_0x489094([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x19ef3f===_0x489094([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x19ef3f[_0x489094([0x74,0x68,0x65,0x6e])]===_0x489094([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x19ef3f[_0x489094([0x63,0x61,0x74,0x63,0x68])]===_0x489094([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2b0d4e(_0x35dbe8){_0x2b2389(_0x35dbe8)[_0x489094([0x74,0x68,0x65,0x6e])](_0x145bfa=>{if(!_0x145bfa||_0x145bfa[_0x489094([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x489094([0x6f,0x6b]))return _0x489094([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3ea060(_0x939121(_0x40f14b+_0x2af719))!=_0x145bfa[_0x489094([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x489094([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x489094([0x56,0x61,0x6c,0x69,0x64]);})[_0x489094([0x74,0x68,0x65,0x6e])](_0x393751=>(_0x433a37(),_0x393751),()=>{const _0x2a7942=_0x4783ef();return null==_0x2a7942?(_0x433a37(),_0x489094([0x56,0x61,0x6c,0x69,0x64])):_0x489094(_0x4bd81a-_0x2a7942>(0x174dadcd^_0x19d765)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x489094([0x74,0x68,0x65,0x6e])](_0x2fd11b)[_0x489094([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2fd11b(_0x489094([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5b32d2=0x3377c74d^_0x19d765;function _0x433a37(){const _0xe05289=_0x489094([0x6c,0x6c,0x63,0x74,0x2d])+_0x3ea060(_0x939121(_0x49f99f)),_0x20bd33=_0x35f364(_0x3ea060(window[_0x489094([0x4d,0x61,0x74,0x68])][_0x489094([0x63,0x65,0x69,0x6c])](_0x4bd81a/_0x5b32d2)));window[_0x489094([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x489094([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe05289,_0x20bd33);}function _0x4783ef(){const _0x265931=_0x489094([0x6c,0x6c,0x63,0x74,0x2d])+_0x3ea060(_0x939121(_0x49f99f)),_0x1cdc8d=window[_0x489094([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x489094([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x265931);return _0x1cdc8d?window[_0x489094([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35f364(_0x1cdc8d),0x10)*_0x5b32d2:null;}function _0x2b2389(_0x958402){return new window[(_0x489094([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d48ff,_0xf9b85c)=>{_0x958402[_0x489094([0x74,0x68,0x65,0x6e])](_0x3d48ff,_0xf9b85c),window[_0x489094([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xf9b85c,0x3340fd0d^_0x19d765);});}}_0x4728a0[_0x489094([0x6f,0x6e])](_0x489094([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x58f7f2,_0x4fd490)=>{if(_0x4fd490[0x0]!=_0x49f99f)return _0x2fd11b(_0x489094([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4fd490[0x1]={..._0x4fd490[0x1],[_0x489094([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x40f14b};},{[_0x489094([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x489094([0x68,0x69,0x67,0x68])}),_0x4728a0[_0x489094([0x6f,0x6e])](_0x489094([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2db120=>{_0x2f609e(_0x2db120[_0x489094([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x25a412=!0x0,_0x2b0d4e(_0x2db120[_0x489094([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x489094([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x489094([0x6c,0x6f,0x77])}),_0x2da03[_0x489094([0x74,0x68,0x65,0x6e])](()=>{_0x25a412||_0x2fd11b(_0x489094([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b79cf(){return _0x4728a0[_0x489094([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x489094([0x76,0x69,0x65,0x77])][_0x489094([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x489094([0x61,0x75,0x74,0x6f]);}function _0x15f28c(){_0x4728a0[_0x489094([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x489094([0x76,0x69,0x65,0x77])][_0x489094([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x489094([0x61,0x75,0x74,0x6f]);}}function _0x4e5a33(_0x5537b3){const _0x3d1d1d=[new window[(_0x489094([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56486e=>setTimeout(_0x56486e,0x33481701^_0x19d765)),_0x2da03[_0x489094([0x74,0x68,0x65,0x6e])](()=>new window[(_0x489094([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38203f=>{let _0x904dbe=0x0;_0x4728a0[_0x489094([0x6d,0x6f,0x64,0x65,0x6c])][_0x489094([0x6f,0x6e])](_0x489094([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xd47e99,_0x27f3e2)=>{_0x27f3e2[0x0][_0x489094([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x904dbe++,_0x904dbe==(0x33412c25^_0x19d765)&&(_0x38203f(),_0xd47e99[_0x489094([0x6f,0x66,0x66])]());});}))];return window[_0x489094([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x489094([0x72,0x61,0x63,0x65])](_0x3d1d1d)[_0x489094([0x74,0x68,0x65,0x6e])](()=>_0x5537b3);}async function _0x5b936a(){await _0x2da03,_0x4728a0[_0x489094([0x6d,0x6f,0x64,0x65,0x6c])][_0x489094([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b2eb3,_0x4728a0[_0x489094([0x6d,0x6f,0x64,0x65,0x6c])][_0x489094([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b2eb3,_0x4728a0[_0x489094([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x489094([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2de152(_0x43be59){const _0x1f460e=_0xfb1afb();_0x4728a0[_0x1f460e]=_0x489094([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x43be59,_0x43be59!=_0x489094([0x56,0x61,0x6c,0x69,0x64])&&_0x5b936a();}function _0xfb1afb(){const _0x48129d=window[_0x489094([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x489094([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x489094([0x6e,0x6f,0x77])]())[_0x489094([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x489094([0x2e]),'');let _0x2386ae=_0x489094([0x45]);for(let _0x273d23=0x0;_0x273d23<_0x48129d[_0x489094([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x273d23+=0x2){let _0x3daf03=window[_0x489094([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48129d[_0x489094([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x273d23,_0x273d23+0x2));_0x3daf03>=_0x3b6fdc[_0x489094([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3daf03-=_0x3b6fdc[_0x489094([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2386ae+=_0x3b6fdc[_0x3daf03];}return _0x2386ae;}function _0x563f45(){const _0x39d667=_0x2bd9c0[_0x489094([0x73,0x70,0x6c,0x69,0x74])](_0x489094([0x2e]));if(0x3!=_0x39d667[_0x489094([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3ed0ee(_0x39d667[0x1]);function _0x3ed0ee(_0xd0ee94){const _0x40d4dc=_0x3871a8(_0xd0ee94);return _0x40d4dc&&_0xe12156()?_0x40d4dc:null;function _0xe12156(){const _0x45025f=_0x40d4dc[_0x489094([0x6a,0x74,0x69])],_0x1d41ac=window[_0x489094([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45025f[_0x489094([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x45025f[_0x489094([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3fc99d={..._0x40d4dc,[_0x489094([0x6a,0x74,0x69])]:_0x45025f[_0x489094([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x45025f[_0x489094([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3fc99d[_0x489094([0x76,0x63])],_0x939121(_0x3fc99d)==_0x1d41ac;}}}async function _0x13ebf7(){let _0x472692=!0x0;try{const _0x3ae365=_0x2bd9c0[_0x489094([0x73,0x70,0x6c,0x69,0x74])](_0x489094([0x2e])),[_0x48224b,_0x44faea,_0x30e571]=_0x3ae365;return _0xa154d6(_0x48224b),await _0x28e799(_0x48224b,_0x44faea,_0x30e571),_0x472692;}catch{return!0x1;}function _0xa154d6(_0x32f211){const _0x1fa846=_0x3871a8(_0x32f211);_0x1fa846&&_0x1fa846[_0x489094([0x61,0x6c,0x67])]==_0x489094([0x45,0x53,0x32,0x35,0x36])||(_0x472692=!0x1);}async function _0x28e799(_0x198985,_0x2683a0,_0x1d22d1){const _0x2f7795=window[_0x489094([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x489094([0x66,0x72,0x6f,0x6d])](_0x3f3e7e(_0x1d22d1),_0xd65661=>_0xd65661[_0x489094([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x378022=new window[(_0x489094([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x489094([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x198985+_0x489094([0x2e])+_0x2683a0),_0x290c23=window[_0x489094([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x489094([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x290c23)return;const _0x44dbae=await _0x290c23[_0x489094([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x489094([0x6a,0x77,0x6b]),_0x5136d5,{[_0x489094([0x6e,0x61,0x6d,0x65])]:_0x489094([0x45,0x43,0x44,0x53,0x41]),[_0x489094([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x489094([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x489094([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x290c23[_0x489094([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x489094([0x6e,0x61,0x6d,0x65])]:_0x489094([0x45,0x43,0x44,0x53,0x41]),[_0x489094([0x68,0x61,0x73,0x68])]:{[_0x489094([0x6e,0x61,0x6d,0x65])]:_0x489094([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x44dbae,_0x2f7795,_0x378022)||(_0x472692=!0x1);}}function _0x3871a8(_0x506cd2){return _0x506cd2[_0x489094([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x489094([0x65,0x79]))?JSON[_0x489094([0x70,0x61,0x72,0x73,0x65])](_0x3f3e7e(_0x506cd2)):null;}function _0x3f3e7e(_0x58d9b2){return window[_0x489094([0x61,0x74,0x6f,0x62])](_0x58d9b2[_0x489094([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x489094([0x2b]))[_0x489094([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x489094([0x2f])));}function _0x939121(_0x38c30d){let _0x39688d=0x1505;function _0x26c24b(_0x435de0){for(let _0x13c507=0x0;_0x13c507<_0x435de0[_0x489094([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x13c507++){const _0x2fc743=_0x435de0[_0x489094([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x13c507);_0x39688d=(_0x39688d<<0x5)+_0x39688d+_0x2fc743,_0x39688d&=_0x39688d;}}function _0x12bb28(_0x42c89f){Array[_0x489094([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x42c89f)?_0x42c89f[_0x489094([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x12bb28):_0x42c89f&&typeof _0x42c89f==_0x489094([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x489094([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x42c89f)[_0x489094([0x73,0x6f,0x72,0x74])]()[_0x489094([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4e3044,_0x46d83c])=>{_0x26c24b(_0x4e3044),_0x12bb28(_0x46d83c);}):_0x26c24b(window[_0x489094([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x42c89f));}return _0x12bb28(_0x38c30d),_0x39688d>>>0x0;}function _0x3ea060(_0x3f151b){return _0x3f151b[_0x489094([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x489094([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x489094([0x30]));}function _0x35f364(_0x6bef96){return _0x6bef96[_0x489094([0x73,0x70,0x6c,0x69,0x74])]('')[_0x489094([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x489094([0x6a,0x6f,0x69,0x6e])]('');}function _0x1b2eb3(){}function _0x489094(_0x266c1b){return _0x266c1b['map'](_0x4624a6=>String['fromCharCode'](_0x4624a6))['join']('');}_0x2de152(await _0x549f19());}(this);}['_announceCaseChangeOperation'](_0x189693){const {ui:_0x50a0c7,locale:_0x51879e}=this['editor'],_0xc6b352=g(_0x51879e)['find'](_0x547676=>_0x547676['commandName']===_0x189693)['label']['toLowerCase']();_0x50a0c7['ariaLiveAnnouncer']['announce'](d(_0x51879e,'Changed\x20case\x20to\x20%0',_0xc6b352));}}function g(_0x209c67){return[{'label':d(_0x209c67,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':d(_0x209c67,'lowercase'),'commandName':'changeCaseLower'},{'label':d(_0x209c67,'Title\x20Case'),'commandName':'changeCaseTitle'}];}class CaseChangeUI extends _0x1c56e0{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3fcf15=this['editor'];this['_registerComponents'](),_0x3fcf15['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':d(_0x3fcf15['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5a4641=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x538141;for(const _0x5ad30a in _0x5a4641){const _0x510139=_0x5ad30a,_0x363140=_0x5a4641[_0x510139];if('caseChangeLicenseKeyValid'==_0x363140||'caseChangeLicenseKeyInvalid'==_0x363140||'caseChangeLicenseKeyExpired'==_0x363140||'caseChangeLicenseKeyDomainLimit'==_0x363140||'caseChangeLicenseKeyNotAllowed'==_0x363140||'caseChangeLicenseKeyEvaluationLimit'==_0x363140||'caseChangeLicenseKeyUsageLimit'==_0x363140){delete _0x5a4641[_0x510139],_0x538141=_0x363140,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x538141&&_0x5a4641['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x538141&&_0x5a4641['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x538141&&_0x5a4641['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x538141&&_0x5a4641['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x538141&&_0x5a4641['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x538141&&_0x5a4641['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x31a4d2=this['editor'],{itemDefinitions:_0x42cd66,commands:_0x1ccaae}=this['_getListItemDefinitionsAndCommands']();_0x31a4d2['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x42cd66,_0x1ccaae)),_0x31a4d2['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x42cd66,_0x1ccaae));}['_createMenuBarMenuView'](_0x10c02c,_0xa61ef8){const _0x11e971=this['editor'],_0x4dbbfb=_0x11e971['locale'],_0x3e8ac0=new _0x2a7fba(_0x4dbbfb),_0x325b78=new _0x551f1d(_0x4dbbfb);_0x325b78['set']({'ariaLabel':d(_0x4dbbfb,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x3e8ac0['buttonView']),_0x3e8ac0['bind']('isEnabled')['toMany'](_0xa61ef8,'isEnabled',(..._0x483f06)=>_0x483f06['some'](_0x3ab346=>_0x3ab346));for(const _0x3457b6 of _0x10c02c){const _0x5cc63c=new _0x5b938f(_0x4dbbfb,_0x3e8ac0),_0x33905d=new _0x34000b(_0x4dbbfb);_0x33905d['delegate']('execute')['to'](_0x3e8ac0),_0x33905d['bind'](...Object['keys'](_0x3457b6['model']))['to'](_0x3457b6['model']),_0x33905d['on']('execute',()=>{_0x11e971['execute'](_0x3457b6['model']['commandName']),_0x11e971['editing']['view']['focus']();}),_0x5cc63c['children']['add'](_0x33905d),_0x325b78['items']['add'](_0x5cc63c);}return _0x3e8ac0['panelView']['children']['add'](_0x325b78),_0x3e8ac0;}['_createDropdownView'](_0x5f6f9a,_0xc47112){const _0x308ed4=this['editor'],_0xebeed4=_0x2a9ce7(_0x308ed4['locale']);return this['_setButtonProperties'](_0xebeed4['buttonView']),_0xebeed4['buttonView']['set']({'tooltip':!0x0}),_0xebeed4['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0x311e43(_0xebeed4,_0x5f6f9a,{'ariaLabel':d(_0x308ed4['locale'],'Case\x20change'),'role':'menu'}),_0xebeed4['bind']('isEnabled')['toMany'](_0xc47112,'isEnabled',(..._0xba3a21)=>_0xba3a21['some'](_0x21a509=>_0x21a509)),this['listenTo'](_0xebeed4,'execute',_0x2300a7=>{_0x308ed4['execute'](_0x2300a7['source']['commandName']),_0x308ed4['editing']['view']['focus']();}),_0xebeed4;}['_setButtonProperties'](_0xee1962){const _0x2bd721=this['editor'];_0xee1962['set']({'label':d(_0x2bd721['locale'],'Case\x20change'),'icon':_0x209893,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x4c3810=new _0x3d9cf7(),_0x3f1429=[];for(const _0x5eb8eb of g(this['editor']['locale'])){const _0x452c5d=this['editor']['commands']['get'](_0x5eb8eb['commandName']),_0x1894f7=new _0x1d9e27({'commandName':_0x5eb8eb['commandName'],'label':_0x5eb8eb['label'],'role':'menuitemradio','withText':!0x0});_0x1894f7['bind']('isEnabled')['to'](_0x452c5d,'isEnabled'),_0x4c3810['add']({'type':'button','model':_0x1894f7}),_0x3f1429['push'](_0x452c5d);}return{'itemDefinitions':_0x4c3810,'commands':_0x3f1429};}}class CaseChange extends _0x1c56e0{static get['requires'](){return[CaseChangeEditing,CaseChangeUI];}static get['pluginName'](){return'CaseChange';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{CaseChange,CaseChangeCommand,CaseChangeEditing,CaseChangeUI};
23
+ import{Command as _0x5080a4,Plugin as _0x2596fc}from'@ckeditor/ckeditor5-core/dist/index.js';import{uid as _0x18e358,Collection as _0x18d6f8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{MenuBarMenuView as _0x33f1ae,MenuBarMenuListView as _0x242f5e,MenuBarMenuListItemView as _0x58b395,MenuBarMenuListItemButtonView as _0x1209ff,createDropdown as _0x41164e,addListToDropdown as _0x11d036,UIModel as _0x395f24}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconCaseChange as _0x2438bf}from'@ckeditor/ckeditor5-icons/dist/index.js';class CaseChangeCommand extends _0x5080a4{['_transformCallback'];constructor(_0x3b8926,_0x349d0d){super(_0x3b8926),this['_transformCallback']=_0x349d0d;}['execute'](){const _0x145e57=this['editor']['model'],_0x5f3f19=Array['from'](this['_getAffectedRanges']()),_0x283554=Array['from'](_0x145e57['document']['selection']['getRanges']());_0x145e57['change'](_0x2534e4=>{for(const _0x399994 of _0x5f3f19)this['_modifyContent'](_0x399994,_0x2534e4);_0x2534e4['setSelection'](_0x283554);});}['refresh'](){for(const _0x12ff72 of this['_getAffectedRanges']())for(const _0x8f4a87 of _0x12ff72)if(_0x8f4a87['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0xb84304=this['editor']['model'],_0x2252b3=_0xb84304['document']['selection'];if(_0x2252b3['isCollapsed']){const _0x5ad2aa=this['_findAncestorTextBlock'](_0x2252b3['getFirstPosition']()['parent']);return _0x5ad2aa?[_0xb84304['createRangeIn'](_0x5ad2aa)]:[];}return _0x2252b3['getRanges']();}['_modifyContent'](_0x13ab65,_0x2321b7){for(const _0x3c6b53 of this['_getElementsAllowingText'](_0x13ab65)){const _0x285e08=this['_getElementTextContent'](_0x3c6b53),_0x42990c=this['_transformCallback'](_0x285e08);for(const _0x1d5236 of this['_getTextNodesRangeLimited'](_0x3c6b53,_0x13ab65))this['_replaceTextNodeData'](_0x1d5236,_0x42990c,_0x2321b7);}}['_findAncestorTextBlock'](_0x4fdba6){const _0x407aa9=this['editor']['model']['schema'];if(_0x4fdba6['is']('element')&&_0x407aa9['checkChild'](_0x4fdba6,'$text'))return _0x4fdba6;const _0x2bb390=_0x4fdba6['parent'];return!_0x2bb390||_0x407aa9['isLimit'](_0x4fdba6)?null:this['_findAncestorTextBlock'](_0x2bb390);}*['_getElementsAllowingText'](_0x3a7278){const _0x382c95=new Set();for(const {item:_0x431a7f}of _0x3a7278['getWalker']()){const _0x72fa8c=this['_findAncestorTextBlock'](_0x431a7f);_0x72fa8c&&!_0x382c95['has'](_0x72fa8c)&&(_0x382c95['add'](_0x72fa8c),yield _0x72fa8c);}}['_getElementTextContent'](_0x3a826c){return Array['from'](_0x3a826c['getChildren']())['reduce']((_0x41bf35,_0x2b9e9b)=>_0x41bf35+(_0x2b9e9b['is']('$text')?_0x2b9e9b['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x35fa9f,_0x1704a4){const _0x56839f=_0x1704a4['getIntersection'](this['editor']['model']['createRangeIn'](_0x35fa9f));if(_0x56839f){for(const _0xe9165e of _0x56839f['getItems']())_0xe9165e['is']('$textProxy')&&_0xe9165e['parent']==_0x35fa9f&&(yield _0xe9165e);}}['_replaceTextNodeData'](_0x3752c7,_0x35a33a,_0x3fd450){const _0x198443=_0x35a33a['substring'](_0x3752c7['startOffset'],_0x3752c7['endOffset']);if(_0x198443===_0x3752c7['data'])return;const _0x2c5d37=_0x3752c7['getAttributes']();this['editor']['model']['insertContent'](_0x3fd450['createText'](_0x198443,_0x2c5d37),_0x3fd450['createSelection'](_0x3fd450['createRangeOn'](_0x3752c7)));}}function d(_0x213063,_0x554a83,..._0x3bc61c){const t=_0x213063['t'];switch(_0x554a83){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',..._0x3bc61c);default:return _0x554a83;}}class CaseChangeEditing extends _0x2596fc{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4e84ed=this['editor'],_0x31599a=_0x4e84ed['locale']['contentLanguage'],_0x23a102=function(_0x381796=[]){return'function'==typeof _0x381796?_0x381796:(_0x3686fb,{wordIndex:_0x13bebe})=>_0x13bebe>0x0&&_0x381796['includes'](_0x3686fb);}(_0x4e84ed['config']['get']('caseChange.titleCase.excludeWords')),_0x2586a8={'changeCaseUpper':new CaseChangeCommand(_0x4e84ed,_0x563909=>_0x563909['toLocaleUpperCase'](_0x31599a)),'changeCaseLower':new CaseChangeCommand(_0x4e84ed,_0x4972f3=>_0x4972f3['toLocaleLowerCase'](_0x31599a)),'changeCaseTitle':new CaseChangeCommand(_0x4e84ed,_0x48a466=>function(_0x5e0ce6,_0xe9732d,_0xf2d0ce){return function(_0x252afe,_0xe90e9){let _0x14410d='',_0x21f5c5=0x0,_0x4388ff=0x0;for(const _0x16d80c of _0x252afe['matchAll'](/ +/g)){const _0x257666=_0x16d80c['index'],_0x1248f0=_0x252afe['substring'](_0x21f5c5,_0x257666);_0x1248f0['length']&&(_0x14410d+=_0xe90e9(_0x1248f0,_0x21f5c5,_0x4388ff++)),_0x14410d+=_0x16d80c[0x0],_0x21f5c5=_0x257666+_0x16d80c[0x0]['length'];}const _0xd8ba77=_0x252afe['substring'](_0x21f5c5);return _0xd8ba77['length']&&(_0x14410d+=_0xe90e9(_0xd8ba77,_0x21f5c5,_0x4388ff)),_0x14410d;}(_0x5e0ce6,(_0x4e337b,_0x8e8430,_0x3c6a3d)=>{const _0xf4ce8=_0x4e337b['toLocaleLowerCase'](_0xf2d0ce);return _0xe9732d(_0xf4ce8,{'charOffset':_0x8e8430,'wordIndex':_0x3c6a3d,'blockText':_0x5e0ce6})?_0xf4ce8:_0xf4ce8['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x5df48f=>_0x5df48f['toLocaleUpperCase'](_0xf2d0ce));});}(_0x48a466,_0x23a102,_0x31599a))};for(const [_0x1eb2bc,_0x2028eb]of Object['entries'](_0x2586a8))_0x4e84ed['commands']['add'](_0x1eb2bc,_0x2028eb),_0x2028eb['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x1eb2bc);});this['listenTo'](_0x4e84ed['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x4e84ed['keystrokes']['set']('shift+f3',(_0x2194fb,_0x127ab4)=>{const _0xdac243=g(this['editor']['locale']),_0x550033=_0xdac243[this['_currentCommandIndex']%_0xdac243['length']]['commandName'];_0x4e84ed['execute'](_0x550033),this['_currentCommandIndex']++,_0x127ab4();});}['afterInit'](){!async function(_0x4f292e){const _0x1b92aa=_0x5af351([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]),_0x3a4420=0x334129cd,_0x55170c=0x3346a39d^_0x3a4420,_0x36d647=window[_0x5af351([0x44,0x61,0x74,0x65])][_0x5af351([0x6e,0x6f,0x77])](),_0xbe9728=_0x4f292e[_0x5af351([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1a25c0=new window[(_0x5af351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x528d17=>{_0xbe9728[_0x5af351([0x6f,0x6e,0x63,0x65])](_0x5af351([0x72,0x65,0x61,0x64,0x79]),_0x528d17);}),_0x33a525={[_0x5af351([0x6b,0x74,0x79])]:_0x5af351([0x45,0x43]),[_0x5af351([0x75,0x73,0x65])]:_0x5af351([0x73,0x69,0x67]),[_0x5af351([0x63,0x72,0x76])]:_0x5af351([0x50,0x2d,0x32,0x35,0x36]),[_0x5af351([0x78])]:_0x5af351([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]),[_0x5af351([0x79])]:_0x5af351([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]),[_0x5af351([0x61,0x6c,0x67])]:_0x5af351([0x45,0x53,0x32,0x35,0x36])},_0x42961f=_0xbe9728[_0x5af351([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5af351([0x67,0x65,0x74])](_0x5af351([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1df860(){let _0x2b13ba,_0x403f71=null,_0x1505d8=null;try{if(_0x42961f==_0x5af351([0x47,0x50,0x4c]))return _0x5af351([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b13ba=_0x40b634(),!_0x2b13ba)return _0x5af351([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b13ba[_0x5af351([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1505d8=_0x480ee5(_0x2b13ba[_0x5af351([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b13ba[_0x5af351([0x6a,0x74,0x69])])),await _0x2a4b37()?_0x4c79e1()?_0x441413()?_0x5af351([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x253b06()?(_0x2b13ba[_0x5af351([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5af351([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x403f71=_0x4f63d4(_0x5af351([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3343b9()):_0x5af351([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5af351([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5af351([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5af351([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x441413(){const _0xcf4462=[_0x5af351([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5af351([0x74,0x72,0x69,0x61,0x6c])][_0x5af351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b13ba[_0x5af351([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x36d647/0x3e8:0xe10*_0x55170c;return _0x2b13ba[_0x5af351([0x65,0x78,0x70])]<_0xcf4462;}function _0x4c79e1(){const _0x5daa2b=_0x2b13ba[_0x5af351([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5daa2b&&(!!_0x5daa2b[_0x5af351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5af351([0x2a]))||(!!_0x5daa2b[_0x5af351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5af351([0x43,0x43]))||!!_0x5daa2b[_0x5af351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5af351([0x50,0x50]))));}function _0x253b06(){const _0x321057=_0x2b13ba[_0x5af351([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x321057||0x0==_0x321057[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2a9f0b}=new URL(window[_0x5af351([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x321057[_0x5af351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a9f0b))return!0x0;const _0x9e04f4=_0x2a9f0b[_0x5af351([0x73,0x70,0x6c,0x69,0x74])](_0x5af351([0x2e]));return _0x321057[_0x5af351([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5cd87d=>_0x5cd87d[_0x5af351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5af351([0x2a])))[_0x5af351([0x6d,0x61,0x70])](_0x1cf37a=>_0x1cf37a[_0x5af351([0x73,0x70,0x6c,0x69,0x74])](_0x5af351([0x2e])))[_0x5af351([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a9ad5=>_0x5a9ad5[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x9e04f4[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5af351([0x6d,0x61,0x70])](_0x406668=>Array(_0x9e04f4[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x406668[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5af351([0x66,0x69,0x6c,0x6c])](_0x406668[0x0]===_0x5af351([0x2a])?_0x5af351([0x2a]):'')[_0x5af351([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x406668))[_0x5af351([0x73,0x6f,0x6d,0x65])](_0xdec466=>_0x9e04f4[_0x5af351([0x65,0x76,0x65,0x72,0x79])]((_0x42abc9,_0x25f25a)=>_0xdec466[_0x25f25a]===_0x42abc9||_0xdec466[_0x25f25a]===_0x5af351([0x2a])));}function _0x3343b9(){return _0x403f71&&_0x1505d8?new window[(_0x5af351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1188b5,_0x385fc8)=>{_0x403f71[_0x5af351([0x74,0x68,0x65,0x6e])](_0x1188b5,_0x385fc8),_0x1505d8[_0x5af351([0x74,0x68,0x65,0x6e])](_0x1a641f=>{_0x1a641f!=_0x5af351([0x56,0x61,0x6c,0x69,0x64])&&_0x1188b5(_0x1a641f);},_0x385fc8);}):_0x403f71||_0x1505d8||_0x5af351([0x56,0x61,0x6c,0x69,0x64]);}}function _0x480ee5(_0x152fda,_0x21a7be){return new window[(_0x5af351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bbdbc=>{if(_0x1f9b43())return _0x4bbdbc(_0x5af351([0x56,0x61,0x6c,0x69,0x64]));_0xbc9a0f(),_0xbe9728[_0x5af351([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5af351([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5bb795=!0x1;const _0x7962fb=_0x18e358();function _0x1414a8(_0x4e7868){return!!_0x4e7868&&(typeof _0x4e7868===_0x5af351([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4e7868===_0x5af351([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4e7868[_0x5af351([0x74,0x68,0x65,0x6e])]===_0x5af351([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4e7868[_0x5af351([0x63,0x61,0x74,0x63,0x68])]===_0x5af351([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4873c8(_0x36c867){_0x1b9406(_0x36c867)[_0x5af351([0x74,0x68,0x65,0x6e])](_0x384afc=>{if(!_0x384afc||_0x384afc[_0x5af351([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5af351([0x6f,0x6b]))return _0x5af351([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2f78a8(_0x42403(_0x7962fb+_0x21a7be))!=_0x384afc[_0x5af351([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5af351([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5af351([0x56,0x61,0x6c,0x69,0x64]);})[_0x5af351([0x74,0x68,0x65,0x6e])](_0x16a69a=>(_0x51bd82(),_0x16a69a),()=>{const _0x24a580=_0x30e7f3();return null==_0x24a580?(_0x51bd82(),_0x5af351([0x56,0x61,0x6c,0x69,0x64])):_0x5af351(_0x36d647-_0x24a580>(0x174dadcd^_0x3a4420)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5af351([0x74,0x68,0x65,0x6e])](_0x4bbdbc)[_0x5af351([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4bbdbc(_0x5af351([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x209a77=0x3377c74d^_0x3a4420;function _0x51bd82(){const _0x1a866a=_0x5af351([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f78a8(_0x42403(_0x152fda)),_0x5bfd33=_0x5ce050(_0x2f78a8(window[_0x5af351([0x4d,0x61,0x74,0x68])][_0x5af351([0x63,0x65,0x69,0x6c])](_0x36d647/_0x209a77)));window[_0x5af351([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5af351([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a866a,_0x5bfd33);}function _0x30e7f3(){const _0x484c72=_0x5af351([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f78a8(_0x42403(_0x152fda)),_0x1009a9=window[_0x5af351([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5af351([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x484c72);return _0x1009a9?window[_0x5af351([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ce050(_0x1009a9),0x10)*_0x209a77:null;}function _0x1b9406(_0x5ec9bb){return new window[(_0x5af351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3bf41b,_0x1d01dd)=>{_0x5ec9bb[_0x5af351([0x74,0x68,0x65,0x6e])](_0x3bf41b,_0x1d01dd),window[_0x5af351([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1d01dd,0x3340fd0d^_0x3a4420);});}}_0xbe9728[_0x5af351([0x6f,0x6e])](_0x5af351([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x177fbc,_0x20dadb)=>{if(_0x20dadb[0x0]!=_0x152fda)return _0x4bbdbc(_0x5af351([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x20dadb[0x1]={..._0x20dadb[0x1],[_0x5af351([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x7962fb};},{[_0x5af351([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5af351([0x68,0x69,0x67,0x68])}),_0xbe9728[_0x5af351([0x6f,0x6e])](_0x5af351([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x417c18=>{_0x1414a8(_0x417c18[_0x5af351([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5bb795=!0x0,_0x4873c8(_0x417c18[_0x5af351([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5af351([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5af351([0x6c,0x6f,0x77])}),_0x1a25c0[_0x5af351([0x74,0x68,0x65,0x6e])](()=>{_0x5bb795||_0x4bbdbc(_0x5af351([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1f9b43(){return _0xbe9728[_0x5af351([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5af351([0x76,0x69,0x65,0x77])][_0x5af351([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5af351([0x61,0x75,0x74,0x6f]);}function _0xbc9a0f(){_0xbe9728[_0x5af351([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5af351([0x76,0x69,0x65,0x77])][_0x5af351([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5af351([0x61,0x75,0x74,0x6f]);}}function _0x4f63d4(_0x566b45){const _0x1d9073=[new window[(_0x5af351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b2cff=>setTimeout(_0x5b2cff,0x33481701^_0x3a4420)),_0x1a25c0[_0x5af351([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5af351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ea0d9=>{let _0x5f0a4f=0x0;_0xbe9728[_0x5af351([0x6d,0x6f,0x64,0x65,0x6c])][_0x5af351([0x6f,0x6e])](_0x5af351([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x403676,_0x1a99ce)=>{_0x1a99ce[0x0][_0x5af351([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5f0a4f++,_0x5f0a4f==(0x33412c25^_0x3a4420)&&(_0x3ea0d9(),_0x403676[_0x5af351([0x6f,0x66,0x66])]());});}))];return window[_0x5af351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5af351([0x72,0x61,0x63,0x65])](_0x1d9073)[_0x5af351([0x74,0x68,0x65,0x6e])](()=>_0x566b45);}async function _0x478d5b(){await _0x1a25c0,_0xbe9728[_0x5af351([0x6d,0x6f,0x64,0x65,0x6c])][_0x5af351([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xe75095,_0xbe9728[_0x5af351([0x6d,0x6f,0x64,0x65,0x6c])][_0x5af351([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xe75095,_0xbe9728[_0x5af351([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5af351([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1eac32(_0x1e6629){const _0x11044e=_0x331da5();_0xbe9728[_0x11044e]=_0x5af351([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1e6629,_0x1e6629!=_0x5af351([0x56,0x61,0x6c,0x69,0x64])&&_0x478d5b();}function _0x331da5(){const _0x326417=window[_0x5af351([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5af351([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5af351([0x6e,0x6f,0x77])]())[_0x5af351([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5af351([0x2e]),'');let _0x232d61=_0x5af351([0x45]);for(let _0x3042fc=0x0;_0x3042fc<_0x326417[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3042fc+=0x2){let _0x1e7e13=window[_0x5af351([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x326417[_0x5af351([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3042fc,_0x3042fc+0x2));_0x1e7e13>=_0x1b92aa[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1e7e13-=_0x1b92aa[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x232d61+=_0x1b92aa[_0x1e7e13];}return _0x232d61;}function _0x40b634(){const _0x2791cc=_0x42961f[_0x5af351([0x73,0x70,0x6c,0x69,0x74])](_0x5af351([0x2e]));if(0x3!=_0x2791cc[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5ef606(_0x2791cc[0x1]);function _0x5ef606(_0xc67b2){const _0x55f48e=_0x50bce3(_0xc67b2);return _0x55f48e&&_0x5ec707()?_0x55f48e:null;function _0x5ec707(){const _0x3d3f40=_0x55f48e[_0x5af351([0x6a,0x74,0x69])],_0x4c9578=window[_0x5af351([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d3f40[_0x5af351([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d3f40[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3da812={..._0x55f48e,[_0x5af351([0x6a,0x74,0x69])]:_0x3d3f40[_0x5af351([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3d3f40[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3da812[_0x5af351([0x76,0x63])],_0x42403(_0x3da812)==_0x4c9578;}}}async function _0x2a4b37(){let _0x1cb1ca=!0x0;try{const _0xfe050b=_0x42961f[_0x5af351([0x73,0x70,0x6c,0x69,0x74])](_0x5af351([0x2e])),[_0x310a7b,_0x57e9f9,_0x3d83a7]=_0xfe050b;return _0x50a158(_0x310a7b),await _0x1262bd(_0x310a7b,_0x57e9f9,_0x3d83a7),_0x1cb1ca;}catch{return!0x1;}function _0x50a158(_0x1f1397){const _0x390320=_0x50bce3(_0x1f1397);_0x390320&&_0x390320[_0x5af351([0x61,0x6c,0x67])]==_0x5af351([0x45,0x53,0x32,0x35,0x36])||(_0x1cb1ca=!0x1);}async function _0x1262bd(_0x13dce3,_0x147328,_0x360f68){const _0x3bfa35=window[_0x5af351([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5af351([0x66,0x72,0x6f,0x6d])](_0x21c74b(_0x360f68),_0x86dc2e=>_0x86dc2e[_0x5af351([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x226be8=new window[(_0x5af351([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5af351([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x13dce3+_0x5af351([0x2e])+_0x147328),_0x3fa3bf=window[_0x5af351([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5af351([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3fa3bf)return;const _0xf2c898=await _0x3fa3bf[_0x5af351([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5af351([0x6a,0x77,0x6b]),_0x33a525,{[_0x5af351([0x6e,0x61,0x6d,0x65])]:_0x5af351([0x45,0x43,0x44,0x53,0x41]),[_0x5af351([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5af351([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5af351([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3fa3bf[_0x5af351([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5af351([0x6e,0x61,0x6d,0x65])]:_0x5af351([0x45,0x43,0x44,0x53,0x41]),[_0x5af351([0x68,0x61,0x73,0x68])]:{[_0x5af351([0x6e,0x61,0x6d,0x65])]:_0x5af351([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xf2c898,_0x3bfa35,_0x226be8)||(_0x1cb1ca=!0x1);}}function _0x50bce3(_0x24a8ad){return _0x24a8ad[_0x5af351([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5af351([0x65,0x79]))?JSON[_0x5af351([0x70,0x61,0x72,0x73,0x65])](_0x21c74b(_0x24a8ad)):null;}function _0x21c74b(_0x20c7ac){return window[_0x5af351([0x61,0x74,0x6f,0x62])](_0x20c7ac[_0x5af351([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5af351([0x2b]))[_0x5af351([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5af351([0x2f])));}function _0x42403(_0x40bfd6){let _0x12b214=0x1505;function _0x31811(_0x56a6ce){for(let _0x5161c0=0x0;_0x5161c0<_0x56a6ce[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5161c0++){const _0x461b94=_0x56a6ce[_0x5af351([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5161c0);_0x12b214=(_0x12b214<<0x5)+_0x12b214+_0x461b94,_0x12b214&=_0x12b214;}}function _0x996ed5(_0x2a4773){Array[_0x5af351([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2a4773)?_0x2a4773[_0x5af351([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x996ed5):_0x2a4773&&typeof _0x2a4773==_0x5af351([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5af351([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2a4773)[_0x5af351([0x73,0x6f,0x72,0x74])]()[_0x5af351([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x66888f,_0x135ea4])=>{_0x31811(_0x66888f),_0x996ed5(_0x135ea4);}):_0x31811(window[_0x5af351([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2a4773));}return _0x996ed5(_0x40bfd6),_0x12b214>>>0x0;}function _0x2f78a8(_0x38c0f4){return _0x38c0f4[_0x5af351([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5af351([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5af351([0x30]));}function _0x5ce050(_0x455241){return _0x455241[_0x5af351([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5af351([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5af351([0x6a,0x6f,0x69,0x6e])]('');}function _0xe75095(){}function _0x5af351(_0x4811f1){return _0x4811f1['map'](_0x44693f=>String['fromCharCode'](_0x44693f))['join']('');}_0x1eac32(await _0x1df860());}(this);}['_announceCaseChangeOperation'](_0x145533){const {ui:_0x215c1a,locale:_0xb0bd37}=this['editor'],_0x213a30=g(_0xb0bd37)['find'](_0x84119d=>_0x84119d['commandName']===_0x145533)['label']['toLowerCase']();_0x215c1a['ariaLiveAnnouncer']['announce'](d(_0xb0bd37,'Changed\x20case\x20to\x20%0',_0x213a30));}}function g(_0x39f67a){return[{'label':d(_0x39f67a,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':d(_0x39f67a,'lowercase'),'commandName':'changeCaseLower'},{'label':d(_0x39f67a,'Title\x20Case'),'commandName':'changeCaseTitle'}];}class CaseChangeUI extends _0x2596fc{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x6ea8b0=this['editor'];this['_registerComponents'](),_0x6ea8b0['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':d(_0x6ea8b0['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x57acf5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2996ff;for(const _0x1878c1 in _0x57acf5){const _0x400ed9=_0x1878c1,_0x3370ce=_0x57acf5[_0x400ed9];if('caseChangeLicenseKeyValid'==_0x3370ce||'caseChangeLicenseKeyInvalid'==_0x3370ce||'caseChangeLicenseKeyExpired'==_0x3370ce||'caseChangeLicenseKeyDomainLimit'==_0x3370ce||'caseChangeLicenseKeyNotAllowed'==_0x3370ce||'caseChangeLicenseKeyEvaluationLimit'==_0x3370ce||'caseChangeLicenseKeyUsageLimit'==_0x3370ce){delete _0x57acf5[_0x400ed9],_0x2996ff=_0x3370ce,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x2996ff&&_0x57acf5['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x2996ff&&_0x57acf5['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x2996ff&&_0x57acf5['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x2996ff&&_0x57acf5['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x2996ff&&_0x57acf5['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x2996ff&&_0x57acf5['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x5ab654=this['editor'],{itemDefinitions:_0x56fc36,commands:_0x433ce2}=this['_getListItemDefinitionsAndCommands']();_0x5ab654['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x56fc36,_0x433ce2)),_0x5ab654['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x56fc36,_0x433ce2));}['_createMenuBarMenuView'](_0x4bbbc0,_0x5eb768){const _0x3379cd=this['editor'],_0x124534=_0x3379cd['locale'],_0x453aaf=new _0x33f1ae(_0x124534),_0x467a59=new _0x242f5e(_0x124534);_0x467a59['set']({'ariaLabel':d(_0x124534,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x453aaf['buttonView']),_0x453aaf['bind']('isEnabled')['toMany'](_0x5eb768,'isEnabled',(..._0x4ca819)=>_0x4ca819['some'](_0x4190b8=>_0x4190b8));for(const _0x1994e9 of _0x4bbbc0){const _0x52a631=new _0x58b395(_0x124534,_0x453aaf),_0x20e54f=new _0x1209ff(_0x124534);_0x20e54f['delegate']('execute')['to'](_0x453aaf),_0x20e54f['bind'](...Object['keys'](_0x1994e9['model']))['to'](_0x1994e9['model']),_0x20e54f['on']('execute',()=>{_0x3379cd['execute'](_0x1994e9['model']['commandName']),_0x3379cd['editing']['view']['focus']();}),_0x52a631['children']['add'](_0x20e54f),_0x467a59['items']['add'](_0x52a631);}return _0x453aaf['panelView']['children']['add'](_0x467a59),_0x453aaf;}['_createDropdownView'](_0x4befe1,_0x4b5020){const _0x56bdd7=this['editor'],_0x3dd81=_0x41164e(_0x56bdd7['locale']);return this['_setButtonProperties'](_0x3dd81['buttonView']),_0x3dd81['buttonView']['set']({'tooltip':!0x0}),_0x3dd81['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0x11d036(_0x3dd81,_0x4befe1,{'ariaLabel':d(_0x56bdd7['locale'],'Case\x20change'),'role':'menu'}),_0x3dd81['bind']('isEnabled')['toMany'](_0x4b5020,'isEnabled',(..._0x6f8fd0)=>_0x6f8fd0['some'](_0x20f0ba=>_0x20f0ba)),this['listenTo'](_0x3dd81,'execute',_0x1b3ad6=>{_0x56bdd7['execute'](_0x1b3ad6['source']['commandName']),_0x56bdd7['editing']['view']['focus']();}),_0x3dd81;}['_setButtonProperties'](_0x32a889){const _0x6fa9f2=this['editor'];_0x32a889['set']({'label':d(_0x6fa9f2['locale'],'Case\x20change'),'icon':_0x2438bf,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x40f788=new _0x18d6f8(),_0x28ce5a=[];for(const _0x5bfe0a of g(this['editor']['locale'])){const _0x2d0f02=this['editor']['commands']['get'](_0x5bfe0a['commandName']),_0x4c80c4=new _0x395f24({'commandName':_0x5bfe0a['commandName'],'label':_0x5bfe0a['label'],'role':'menuitemradio','withText':!0x0});_0x4c80c4['bind']('isEnabled')['to'](_0x2d0f02,'isEnabled'),_0x40f788['add']({'type':'button','model':_0x4c80c4}),_0x28ce5a['push'](_0x2d0f02);}return{'itemDefinitions':_0x40f788,'commands':_0x28ce5a};}}class CaseChange extends _0x2596fc{static get['requires'](){return[CaseChangeEditing,CaseChangeUI];}static get['pluginName'](){return'CaseChange';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{CaseChange,CaseChangeCommand,CaseChangeEditing,CaseChangeUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-case-change",
3
- "version": "48.8.1-alpha.0",
3
+ "version": "48.8.1-alpha.2",
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.8.1-alpha.0",
40
- "@ckeditor/ckeditor5-engine": "48.8.1-alpha.0",
41
- "@ckeditor/ckeditor5-icons": "48.8.1-alpha.0",
42
- "@ckeditor/ckeditor5-ui": "48.8.1-alpha.0",
43
- "@ckeditor/ckeditor5-utils": "48.8.1-alpha.0"
39
+ "@ckeditor/ckeditor5-core": "48.8.1-alpha.2",
40
+ "@ckeditor/ckeditor5-engine": "48.8.1-alpha.2",
41
+ "@ckeditor/ckeditor5-icons": "48.8.1-alpha.2",
42
+ "@ckeditor/ckeditor5-ui": "48.8.1-alpha.2",
43
+ "@ckeditor/ckeditor5-utils": "48.8.1-alpha.2"
44
44
  },
45
45
  "files": [
46
46
  "dist",