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

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 _0x516b6b,Plugin as _0x1d678f}from'@ckeditor/ckeditor5-core/dist/index.js';import{uid as _0x4e2784,Collection as _0x3c2c72}from'@ckeditor/ckeditor5-utils/dist/index.js';import{MenuBarMenuView as _0x5a6e6c,MenuBarMenuListView as _0x5b8430,MenuBarMenuListItemView as _0x2e0d88,MenuBarMenuListItemButtonView as _0xe9f8dd,createDropdown as _0x1683f1,addListToDropdown as _0x2b2ecc,UIModel as _0x2e1396}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconCaseChange as _0x3dd34d}from'@ckeditor/ckeditor5-icons/dist/index.js';class CaseChangeCommand extends _0x516b6b{['_transformCallback'];constructor(_0x472178,_0xd812ec){super(_0x472178),this['_transformCallback']=_0xd812ec;}['execute'](){const _0xa0fb68=this['editor']['model'],_0x5bd0b3=Array['from'](this['_getAffectedRanges']()),_0x4c2141=Array['from'](_0xa0fb68['document']['selection']['getRanges']());_0xa0fb68['change'](_0x4b32a1=>{for(const _0x1158d3 of _0x5bd0b3)this['_modifyContent'](_0x1158d3,_0x4b32a1);_0x4b32a1['setSelection'](_0x4c2141);});}['refresh'](){for(const _0x37690 of this['_getAffectedRanges']())for(const _0x4e7537 of _0x37690)if(_0x4e7537['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0x590f73=this['editor']['model'],_0x560e22=_0x590f73['document']['selection'];if(_0x560e22['isCollapsed']){const _0x41582c=this['_findAncestorTextBlock'](_0x560e22['getFirstPosition']()['parent']);return _0x41582c?[_0x590f73['createRangeIn'](_0x41582c)]:[];}return _0x560e22['getRanges']();}['_modifyContent'](_0x4c2962,_0x1366cd){for(const _0xd5fd4e of this['_getElementsAllowingText'](_0x4c2962)){const _0x4673ff=this['_getElementTextContent'](_0xd5fd4e),_0x4e3528=this['_transformCallback'](_0x4673ff);for(const _0x336768 of this['_getTextNodesRangeLimited'](_0xd5fd4e,_0x4c2962))this['_replaceTextNodeData'](_0x336768,_0x4e3528,_0x1366cd);}}['_findAncestorTextBlock'](_0x5a7a40){const _0xc8426d=this['editor']['model']['schema'];if(_0x5a7a40['is']('element')&&_0xc8426d['checkChild'](_0x5a7a40,'$text'))return _0x5a7a40;const _0x3aebd8=_0x5a7a40['parent'];return!_0x3aebd8||_0xc8426d['isLimit'](_0x5a7a40)?null:this['_findAncestorTextBlock'](_0x3aebd8);}*['_getElementsAllowingText'](_0x55401b){const _0x4c51f9=new Set();for(const {item:_0x23e2f4}of _0x55401b['getWalker']()){const _0x16ca11=this['_findAncestorTextBlock'](_0x23e2f4);_0x16ca11&&!_0x4c51f9['has'](_0x16ca11)&&(_0x4c51f9['add'](_0x16ca11),yield _0x16ca11);}}['_getElementTextContent'](_0x23ff77){return Array['from'](_0x23ff77['getChildren']())['reduce']((_0x1ac310,_0x2fe142)=>_0x1ac310+(_0x2fe142['is']('$text')?_0x2fe142['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0xdcfaf6,_0x5fcf2e){const _0x474294=_0x5fcf2e['getIntersection'](this['editor']['model']['createRangeIn'](_0xdcfaf6));if(_0x474294){for(const _0x2e586c of _0x474294['getItems']())_0x2e586c['is']('$textProxy')&&_0x2e586c['parent']==_0xdcfaf6&&(yield _0x2e586c);}}['_replaceTextNodeData'](_0x1cd7f4,_0x5ead51,_0x1640f7){const _0x3f3ecd=_0x5ead51['substring'](_0x1cd7f4['startOffset'],_0x1cd7f4['endOffset']);if(_0x3f3ecd===_0x1cd7f4['data'])return;const _0x4bc0c3=_0x1cd7f4['getAttributes']();this['editor']['model']['insertContent'](_0x1640f7['createText'](_0x3f3ecd,_0x4bc0c3),_0x1640f7['createSelection'](_0x1640f7['createRangeOn'](_0x1cd7f4)));}}function d(_0x1e5c83,_0x884001,..._0x2d642d){const t=_0x1e5c83['t'];switch(_0x884001){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',..._0x2d642d);default:return _0x884001;}}class CaseChangeEditing extends _0x1d678f{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x48878d=this['editor'],_0xbbaf02=_0x48878d['locale']['contentLanguage'],_0x1c2412=function(_0x3ba736=[]){return'function'==typeof _0x3ba736?_0x3ba736:(_0x1e9e8c,{wordIndex:_0x209e85})=>_0x209e85>0x0&&_0x3ba736['includes'](_0x1e9e8c);}(_0x48878d['config']['get']('caseChange.titleCase.excludeWords')),_0x225bb0={'changeCaseUpper':new CaseChangeCommand(_0x48878d,_0x2ea3e7=>_0x2ea3e7['toLocaleUpperCase'](_0xbbaf02)),'changeCaseLower':new CaseChangeCommand(_0x48878d,_0x5d2c88=>_0x5d2c88['toLocaleLowerCase'](_0xbbaf02)),'changeCaseTitle':new CaseChangeCommand(_0x48878d,_0x37656d=>function(_0x4d4601,_0x428f5c,_0x16b035){return function(_0x2ec872,_0x226802){let _0x1a59cd='',_0x2aff88=0x0,_0x495046=0x0;for(const _0x193eac of _0x2ec872['matchAll'](/ +/g)){const _0x15aced=_0x193eac['index'],_0x1cdab1=_0x2ec872['substring'](_0x2aff88,_0x15aced);_0x1cdab1['length']&&(_0x1a59cd+=_0x226802(_0x1cdab1,_0x2aff88,_0x495046++)),_0x1a59cd+=_0x193eac[0x0],_0x2aff88=_0x15aced+_0x193eac[0x0]['length'];}const _0x356793=_0x2ec872['substring'](_0x2aff88);return _0x356793['length']&&(_0x1a59cd+=_0x226802(_0x356793,_0x2aff88,_0x495046)),_0x1a59cd;}(_0x4d4601,(_0x276d37,_0x19e8ed,_0x335736)=>{const _0x58a7ea=_0x276d37['toLocaleLowerCase'](_0x16b035);return _0x428f5c(_0x58a7ea,{'charOffset':_0x19e8ed,'wordIndex':_0x335736,'blockText':_0x4d4601})?_0x58a7ea:_0x58a7ea['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x54d629=>_0x54d629['toLocaleUpperCase'](_0x16b035));});}(_0x37656d,_0x1c2412,_0xbbaf02))};for(const [_0x16b733,_0x180248]of Object['entries'](_0x225bb0))_0x48878d['commands']['add'](_0x16b733,_0x180248),_0x180248['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x16b733);});this['listenTo'](_0x48878d['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x48878d['keystrokes']['set']('shift+f3',(_0x5a1038,_0x904283)=>{const _0x179d6f=g(this['editor']['locale']),_0x246cc3=_0x179d6f[this['_currentCommandIndex']%_0x179d6f['length']]['commandName'];_0x48878d['execute'](_0x246cc3),this['_currentCommandIndex']++,_0x904283();});}['afterInit'](){!async function(_0x13d703){const _0x44ac10=_0x35ac9c([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]),_0x149759=0x334129cd,_0x434e59=0x3346a3f5^_0x149759,_0x25b83c=window[_0x35ac9c([0x44,0x61,0x74,0x65])][_0x35ac9c([0x6e,0x6f,0x77])](),_0xde5e8d=_0x13d703[_0x35ac9c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5ac334=new window[(_0x35ac9c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfcc679=>{_0xde5e8d[_0x35ac9c([0x6f,0x6e,0x63,0x65])](_0x35ac9c([0x72,0x65,0x61,0x64,0x79]),_0xfcc679);}),_0x5c614b={[_0x35ac9c([0x6b,0x74,0x79])]:_0x35ac9c([0x45,0x43]),[_0x35ac9c([0x75,0x73,0x65])]:_0x35ac9c([0x73,0x69,0x67]),[_0x35ac9c([0x63,0x72,0x76])]:_0x35ac9c([0x50,0x2d,0x32,0x35,0x36]),[_0x35ac9c([0x78])]:_0x35ac9c([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]),[_0x35ac9c([0x79])]:_0x35ac9c([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]),[_0x35ac9c([0x61,0x6c,0x67])]:_0x35ac9c([0x45,0x53,0x32,0x35,0x36])},_0x140bff=_0xde5e8d[_0x35ac9c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x35ac9c([0x67,0x65,0x74])](_0x35ac9c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x24079a(){let _0x353e10,_0x427b4f=null,_0x87a89a=null;try{if(_0x140bff==_0x35ac9c([0x47,0x50,0x4c]))return _0x35ac9c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x353e10=_0x4093e2(),!_0x353e10)return _0x35ac9c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x353e10[_0x35ac9c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x87a89a=_0x9d35ee(_0x353e10[_0x35ac9c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x353e10[_0x35ac9c([0x6a,0x74,0x69])])),await _0x44d1d3()?_0x11949b()?_0x3b1167()?_0x35ac9c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x32a4ec()?(_0x353e10[_0x35ac9c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x35ac9c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x427b4f=_0x29d950(_0x35ac9c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x41776b()):_0x35ac9c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x35ac9c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x35ac9c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x35ac9c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3b1167(){const _0xd66a28=[_0x35ac9c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x35ac9c([0x74,0x72,0x69,0x61,0x6c])][_0x35ac9c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x353e10[_0x35ac9c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x25b83c/0x3e8:0xe10*_0x434e59;return _0x353e10[_0x35ac9c([0x65,0x78,0x70])]<_0xd66a28;}function _0x11949b(){const _0x143423=_0x353e10[_0x35ac9c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x143423&&(!!_0x143423[_0x35ac9c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35ac9c([0x2a]))||(!!_0x143423[_0x35ac9c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35ac9c([0x43,0x43]))||!!_0x143423[_0x35ac9c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35ac9c([0x50,0x50]))));}function _0x32a4ec(){const _0x5c8f4f=_0x353e10[_0x35ac9c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5c8f4f||0x0==_0x5c8f4f[_0x35ac9c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2e055c}=new URL(window[_0x35ac9c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5c8f4f[_0x35ac9c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e055c))return!0x0;const _0x21b036=_0x2e055c[_0x35ac9c([0x73,0x70,0x6c,0x69,0x74])](_0x35ac9c([0x2e]));return _0x5c8f4f[_0x35ac9c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc8f429=>_0xc8f429[_0x35ac9c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35ac9c([0x2a])))[_0x35ac9c([0x6d,0x61,0x70])](_0x1cff02=>_0x1cff02[_0x35ac9c([0x73,0x70,0x6c,0x69,0x74])](_0x35ac9c([0x2e])))[_0x35ac9c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x53a9b7=>_0x53a9b7[_0x35ac9c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x21b036[_0x35ac9c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x35ac9c([0x6d,0x61,0x70])](_0x147888=>Array(_0x21b036[_0x35ac9c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x147888[_0x35ac9c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x35ac9c([0x66,0x69,0x6c,0x6c])](_0x147888[0x0]===_0x35ac9c([0x2a])?_0x35ac9c([0x2a]):'')[_0x35ac9c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x147888))[_0x35ac9c([0x73,0x6f,0x6d,0x65])](_0x2e57d7=>_0x21b036[_0x35ac9c([0x65,0x76,0x65,0x72,0x79])]((_0x389fba,_0x2347ad)=>_0x2e57d7[_0x2347ad]===_0x389fba||_0x2e57d7[_0x2347ad]===_0x35ac9c([0x2a])));}function _0x41776b(){return _0x427b4f&&_0x87a89a?new window[(_0x35ac9c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5378bd,_0x1a286b)=>{_0x427b4f[_0x35ac9c([0x74,0x68,0x65,0x6e])](_0x5378bd,_0x1a286b),_0x87a89a[_0x35ac9c([0x74,0x68,0x65,0x6e])](_0x37166e=>{_0x37166e!=_0x35ac9c([0x56,0x61,0x6c,0x69,0x64])&&_0x5378bd(_0x37166e);},_0x1a286b);}):_0x427b4f||_0x87a89a||_0x35ac9c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x9d35ee(_0x501e51,_0x38f7fa){return new window[(_0x35ac9c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8229ce=>{if(_0x83c06c())return _0x8229ce(_0x35ac9c([0x56,0x61,0x6c,0x69,0x64]));_0x14f6fc(),_0xde5e8d[_0x35ac9c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x35ac9c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3fe8cf=!0x1;const _0x45e47e=_0x4e2784();function _0x11715e(_0x1d3523){return!!_0x1d3523&&(typeof _0x1d3523===_0x35ac9c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1d3523===_0x35ac9c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1d3523[_0x35ac9c([0x74,0x68,0x65,0x6e])]===_0x35ac9c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1d3523[_0x35ac9c([0x63,0x61,0x74,0x63,0x68])]===_0x35ac9c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x15ee67(_0x296a8f){_0xbb4ddf(_0x296a8f)[_0x35ac9c([0x74,0x68,0x65,0x6e])](_0x185fa4=>{if(!_0x185fa4||_0x185fa4[_0x35ac9c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x35ac9c([0x6f,0x6b]))return _0x35ac9c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5ddded(_0x594cc6(_0x45e47e+_0x38f7fa))!=_0x185fa4[_0x35ac9c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x35ac9c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x35ac9c([0x56,0x61,0x6c,0x69,0x64]);})[_0x35ac9c([0x74,0x68,0x65,0x6e])](_0x24212f=>(_0x4a6a01(),_0x24212f),()=>{const _0x22eeca=_0x1abbc3();return null==_0x22eeca?(_0x4a6a01(),_0x35ac9c([0x56,0x61,0x6c,0x69,0x64])):_0x35ac9c(_0x25b83c-_0x22eeca>(0x174dadcd^_0x149759)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x35ac9c([0x74,0x68,0x65,0x6e])](_0x8229ce)[_0x35ac9c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x8229ce(_0x35ac9c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3e0df5=0x3377c74d^_0x149759;function _0x4a6a01(){const _0x1c2046=_0x35ac9c([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ddded(_0x594cc6(_0x501e51)),_0xd2d4be=_0x459d29(_0x5ddded(window[_0x35ac9c([0x4d,0x61,0x74,0x68])][_0x35ac9c([0x63,0x65,0x69,0x6c])](_0x25b83c/_0x3e0df5)));window[_0x35ac9c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x35ac9c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c2046,_0xd2d4be);}function _0x1abbc3(){const _0x57301f=_0x35ac9c([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ddded(_0x594cc6(_0x501e51)),_0x1bd9e8=window[_0x35ac9c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x35ac9c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57301f);return _0x1bd9e8?window[_0x35ac9c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x459d29(_0x1bd9e8),0x10)*_0x3e0df5:null;}function _0xbb4ddf(_0xb8f940){return new window[(_0x35ac9c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1dde9c,_0x29c6ec)=>{_0xb8f940[_0x35ac9c([0x74,0x68,0x65,0x6e])](_0x1dde9c,_0x29c6ec),window[_0x35ac9c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29c6ec,0x3340fd0d^_0x149759);});}}_0xde5e8d[_0x35ac9c([0x6f,0x6e])](_0x35ac9c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1d85f0,_0x44c186)=>{if(_0x44c186[0x0]!=_0x501e51)return _0x8229ce(_0x35ac9c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x44c186[0x1]={..._0x44c186[0x1],[_0x35ac9c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x45e47e};},{[_0x35ac9c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x35ac9c([0x68,0x69,0x67,0x68])}),_0xde5e8d[_0x35ac9c([0x6f,0x6e])](_0x35ac9c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3b4496=>{_0x11715e(_0x3b4496[_0x35ac9c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3fe8cf=!0x0,_0x15ee67(_0x3b4496[_0x35ac9c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x35ac9c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x35ac9c([0x6c,0x6f,0x77])}),_0x5ac334[_0x35ac9c([0x74,0x68,0x65,0x6e])](()=>{_0x3fe8cf||_0x8229ce(_0x35ac9c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x83c06c(){return _0xde5e8d[_0x35ac9c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x35ac9c([0x76,0x69,0x65,0x77])][_0x35ac9c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x35ac9c([0x61,0x75,0x74,0x6f]);}function _0x14f6fc(){_0xde5e8d[_0x35ac9c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x35ac9c([0x76,0x69,0x65,0x77])][_0x35ac9c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x35ac9c([0x61,0x75,0x74,0x6f]);}}function _0x29d950(_0x528000){const _0x5af44d=[new window[(_0x35ac9c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d9b0d=>setTimeout(_0x3d9b0d,0x33481701^_0x149759)),_0x5ac334[_0x35ac9c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x35ac9c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x351f98=>{let _0x32bcaa=0x0;_0xde5e8d[_0x35ac9c([0x6d,0x6f,0x64,0x65,0x6c])][_0x35ac9c([0x6f,0x6e])](_0x35ac9c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x8b9289,_0x8956eb)=>{_0x8956eb[0x0][_0x35ac9c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x32bcaa++,_0x32bcaa==(0x33412c25^_0x149759)&&(_0x351f98(),_0x8b9289[_0x35ac9c([0x6f,0x66,0x66])]());});}))];return window[_0x35ac9c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x35ac9c([0x72,0x61,0x63,0x65])](_0x5af44d)[_0x35ac9c([0x74,0x68,0x65,0x6e])](()=>_0x528000);}async function _0x2ab8ef(){await _0x5ac334,_0xde5e8d[_0x35ac9c([0x6d,0x6f,0x64,0x65,0x6c])][_0x35ac9c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x39621a,_0xde5e8d[_0x35ac9c([0x6d,0x6f,0x64,0x65,0x6c])][_0x35ac9c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x39621a,_0xde5e8d[_0x35ac9c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x35ac9c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x235460(_0x9ef730){const _0x2254e7=_0x49f99d();_0xde5e8d[_0x2254e7]=_0x35ac9c([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x9ef730,_0x9ef730!=_0x35ac9c([0x56,0x61,0x6c,0x69,0x64])&&_0x2ab8ef();}function _0x49f99d(){const _0x13b2de=window[_0x35ac9c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x35ac9c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x35ac9c([0x6e,0x6f,0x77])]())[_0x35ac9c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x35ac9c([0x2e]),'');let _0x2aa89c=_0x35ac9c([0x45]);for(let _0x5ca2da=0x0;_0x5ca2da<_0x13b2de[_0x35ac9c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ca2da+=0x2){let _0x3839bd=window[_0x35ac9c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13b2de[_0x35ac9c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ca2da,_0x5ca2da+0x2));_0x3839bd>=_0x44ac10[_0x35ac9c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3839bd-=_0x44ac10[_0x35ac9c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2aa89c+=_0x44ac10[_0x3839bd];}return _0x2aa89c;}function _0x4093e2(){const _0x5a6681=_0x140bff[_0x35ac9c([0x73,0x70,0x6c,0x69,0x74])](_0x35ac9c([0x2e]));if(0x3!=_0x5a6681[_0x35ac9c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x134fde(_0x5a6681[0x1]);function _0x134fde(_0x2c66de){const _0x5396d4=_0xcd2b0d(_0x2c66de);return _0x5396d4&&_0x23ac6c()?_0x5396d4:null;function _0x23ac6c(){const _0x35b0fd=_0x5396d4[_0x35ac9c([0x6a,0x74,0x69])],_0x5ca4fc=window[_0x35ac9c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35b0fd[_0x35ac9c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35b0fd[_0x35ac9c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xfd3ea5={..._0x5396d4,[_0x35ac9c([0x6a,0x74,0x69])]:_0x35b0fd[_0x35ac9c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x35b0fd[_0x35ac9c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xfd3ea5[_0x35ac9c([0x76,0x63])],_0x594cc6(_0xfd3ea5)==_0x5ca4fc;}}}async function _0x44d1d3(){let _0x150082=!0x0;try{const _0x47b93f=_0x140bff[_0x35ac9c([0x73,0x70,0x6c,0x69,0x74])](_0x35ac9c([0x2e])),[_0x400cd6,_0x3e2ec9,_0xb51fa9]=_0x47b93f;return _0x31fdc3(_0x400cd6),await _0x1440ba(_0x400cd6,_0x3e2ec9,_0xb51fa9),_0x150082;}catch{return!0x1;}function _0x31fdc3(_0x37190d){const _0x1cb3e5=_0xcd2b0d(_0x37190d);_0x1cb3e5&&_0x1cb3e5[_0x35ac9c([0x61,0x6c,0x67])]==_0x35ac9c([0x45,0x53,0x32,0x35,0x36])||(_0x150082=!0x1);}async function _0x1440ba(_0x3a2697,_0x7353ca,_0x361582){const _0x517ea5=window[_0x35ac9c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x35ac9c([0x66,0x72,0x6f,0x6d])](_0x137c79(_0x361582),_0x5ad385=>_0x5ad385[_0x35ac9c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5809f4=new window[(_0x35ac9c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x35ac9c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a2697+_0x35ac9c([0x2e])+_0x7353ca),_0x316aa7=window[_0x35ac9c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x35ac9c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x316aa7)return;const _0x2b220e=await _0x316aa7[_0x35ac9c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x35ac9c([0x6a,0x77,0x6b]),_0x5c614b,{[_0x35ac9c([0x6e,0x61,0x6d,0x65])]:_0x35ac9c([0x45,0x43,0x44,0x53,0x41]),[_0x35ac9c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x35ac9c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x35ac9c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x316aa7[_0x35ac9c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x35ac9c([0x6e,0x61,0x6d,0x65])]:_0x35ac9c([0x45,0x43,0x44,0x53,0x41]),[_0x35ac9c([0x68,0x61,0x73,0x68])]:{[_0x35ac9c([0x6e,0x61,0x6d,0x65])]:_0x35ac9c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2b220e,_0x517ea5,_0x5809f4)||(_0x150082=!0x1);}}function _0xcd2b0d(_0x46ed57){return _0x46ed57[_0x35ac9c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x35ac9c([0x65,0x79]))?JSON[_0x35ac9c([0x70,0x61,0x72,0x73,0x65])](_0x137c79(_0x46ed57)):null;}function _0x137c79(_0x361288){return window[_0x35ac9c([0x61,0x74,0x6f,0x62])](_0x361288[_0x35ac9c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x35ac9c([0x2b]))[_0x35ac9c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x35ac9c([0x2f])));}function _0x594cc6(_0x3b7346){let _0x19d1fb=0x1505;function _0x20a931(_0x1214a){for(let _0x316278=0x0;_0x316278<_0x1214a[_0x35ac9c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x316278++){const _0x124c89=_0x1214a[_0x35ac9c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x316278);_0x19d1fb=(_0x19d1fb<<0x5)+_0x19d1fb+_0x124c89,_0x19d1fb&=_0x19d1fb;}}function _0x378330(_0x380d7c){Array[_0x35ac9c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x380d7c)?_0x380d7c[_0x35ac9c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x378330):_0x380d7c&&typeof _0x380d7c==_0x35ac9c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x35ac9c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x380d7c)[_0x35ac9c([0x73,0x6f,0x72,0x74])]()[_0x35ac9c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4b6318,_0x23cba9])=>{_0x20a931(_0x4b6318),_0x378330(_0x23cba9);}):_0x20a931(window[_0x35ac9c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x380d7c));}return _0x378330(_0x3b7346),_0x19d1fb>>>0x0;}function _0x5ddded(_0x3379a6){return _0x3379a6[_0x35ac9c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x35ac9c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x35ac9c([0x30]));}function _0x459d29(_0x4bd2a8){return _0x4bd2a8[_0x35ac9c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x35ac9c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x35ac9c([0x6a,0x6f,0x69,0x6e])]('');}function _0x39621a(){}function _0x35ac9c(_0x4aec54){return _0x4aec54['map'](_0x34a082=>String['fromCharCode'](_0x34a082))['join']('');}_0x235460(await _0x24079a());}(this);}['_announceCaseChangeOperation'](_0x4d3727){const {ui:_0x1e54aa,locale:_0x1d3ff5}=this['editor'],_0x4c1493=g(_0x1d3ff5)['find'](_0x407cda=>_0x407cda['commandName']===_0x4d3727)['label']['toLowerCase']();_0x1e54aa['ariaLiveAnnouncer']['announce'](d(_0x1d3ff5,'Changed\x20case\x20to\x20%0',_0x4c1493));}}function g(_0x2f06bb){return[{'label':d(_0x2f06bb,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':d(_0x2f06bb,'lowercase'),'commandName':'changeCaseLower'},{'label':d(_0x2f06bb,'Title\x20Case'),'commandName':'changeCaseTitle'}];}class CaseChangeUI extends _0x1d678f{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2a09a3=this['editor'];this['_registerComponents'](),_0x2a09a3['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':d(_0x2a09a3['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x356c05=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xce43a6;for(const _0x33a425 in _0x356c05){const _0x3fe624=_0x33a425,_0x5d3cf8=_0x356c05[_0x3fe624];if('caseChangeLicenseKeyValid'==_0x5d3cf8||'caseChangeLicenseKeyInvalid'==_0x5d3cf8||'caseChangeLicenseKeyExpired'==_0x5d3cf8||'caseChangeLicenseKeyDomainLimit'==_0x5d3cf8||'caseChangeLicenseKeyNotAllowed'==_0x5d3cf8||'caseChangeLicenseKeyEvaluationLimit'==_0x5d3cf8||'caseChangeLicenseKeyUsageLimit'==_0x5d3cf8){delete _0x356c05[_0x3fe624],_0xce43a6=_0x5d3cf8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0xce43a6&&_0x356c05['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0xce43a6&&_0x356c05['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0xce43a6&&_0x356c05['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0xce43a6&&_0x356c05['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0xce43a6&&_0x356c05['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0xce43a6&&_0x356c05['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x44d58a=this['editor'],{itemDefinitions:_0x218c52,commands:_0x3f7597}=this['_getListItemDefinitionsAndCommands']();_0x44d58a['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x218c52,_0x3f7597)),_0x44d58a['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x218c52,_0x3f7597));}['_createMenuBarMenuView'](_0x41d48f,_0x170dd4){const _0x304e95=this['editor'],_0x1df01e=_0x304e95['locale'],_0x18a6f2=new _0x5a6e6c(_0x1df01e),_0x1d508c=new _0x5b8430(_0x1df01e);_0x1d508c['set']({'ariaLabel':d(_0x1df01e,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x18a6f2['buttonView']),_0x18a6f2['bind']('isEnabled')['toMany'](_0x170dd4,'isEnabled',(..._0x3aac89)=>_0x3aac89['some'](_0x1ccbfa=>_0x1ccbfa));for(const _0x3ac095 of _0x41d48f){const _0x271003=new _0x2e0d88(_0x1df01e,_0x18a6f2),_0x44ee02=new _0xe9f8dd(_0x1df01e);_0x44ee02['delegate']('execute')['to'](_0x18a6f2),_0x44ee02['bind'](...Object['keys'](_0x3ac095['model']))['to'](_0x3ac095['model']),_0x44ee02['on']('execute',()=>{_0x304e95['execute'](_0x3ac095['model']['commandName']),_0x304e95['editing']['view']['focus']();}),_0x271003['children']['add'](_0x44ee02),_0x1d508c['items']['add'](_0x271003);}return _0x18a6f2['panelView']['children']['add'](_0x1d508c),_0x18a6f2;}['_createDropdownView'](_0xa635b1,_0x51ce6d){const _0x276a53=this['editor'],_0xe1bf95=_0x1683f1(_0x276a53['locale']);return this['_setButtonProperties'](_0xe1bf95['buttonView']),_0xe1bf95['buttonView']['set']({'tooltip':!0x0}),_0xe1bf95['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0x2b2ecc(_0xe1bf95,_0xa635b1,{'ariaLabel':d(_0x276a53['locale'],'Case\x20change'),'role':'menu'}),_0xe1bf95['bind']('isEnabled')['toMany'](_0x51ce6d,'isEnabled',(..._0x41f635)=>_0x41f635['some'](_0x2eed8c=>_0x2eed8c)),this['listenTo'](_0xe1bf95,'execute',_0x5bbc12=>{_0x276a53['execute'](_0x5bbc12['source']['commandName']),_0x276a53['editing']['view']['focus']();}),_0xe1bf95;}['_setButtonProperties'](_0x1ce123){const _0x4dc5a2=this['editor'];_0x1ce123['set']({'label':d(_0x4dc5a2['locale'],'Case\x20change'),'icon':_0x3dd34d,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x5ab3c6=new _0x3c2c72(),_0x4027f5=[];for(const _0x568b82 of g(this['editor']['locale'])){const _0x51edde=this['editor']['commands']['get'](_0x568b82['commandName']),_0x3b42c1=new _0x2e1396({'commandName':_0x568b82['commandName'],'label':_0x568b82['label'],'role':'menuitemradio','withText':!0x0});_0x3b42c1['bind']('isEnabled')['to'](_0x51edde,'isEnabled'),_0x5ab3c6['add']({'type':'button','model':_0x3b42c1}),_0x4027f5['push'](_0x51edde);}return{'itemDefinitions':_0x5ab3c6,'commands':_0x4027f5};}}class CaseChange extends _0x1d678f{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.1",
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.1",
40
+ "@ckeditor/ckeditor5-engine": "48.8.1-alpha.1",
41
+ "@ckeditor/ckeditor5-icons": "48.8.1-alpha.1",
42
+ "@ckeditor/ckeditor5-ui": "48.8.1-alpha.1",
43
+ "@ckeditor/ckeditor5-utils": "48.8.1-alpha.1"
44
44
  },
45
45
  "files": [
46
46
  "dist",