@ckeditor/ckeditor5-case-change 48.2.0-alpha.3 → 48.2.0-alpha.5

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 _0x339b1c,Plugin as _0x148a01}from'@ckeditor/ckeditor5-core/dist/index.js';import{uid as _0x1845b4,Collection as _0x17eda8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{MenuBarMenuView as _0x35735b,MenuBarMenuListView as _0x2b30f3,MenuBarMenuListItemView as _0x38e0c5,MenuBarMenuListItemButtonView as _0x428ab6,createDropdown as _0x5b9271,addListToDropdown as _0x36bfc5,UIModel as _0x1c95d5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconCaseChange as _0x2e03f6}from'@ckeditor/ckeditor5-icons/dist/index.js';class CaseChangeCommand extends _0x339b1c{['_transformCallback'];constructor(_0x1464cf,_0x214cce){super(_0x1464cf),this['_transformCallback']=_0x214cce;}['execute'](){const _0xdad493=this['editor']['model'],_0x38b889=Array['from'](this['_getAffectedRanges']()),_0x3c42e2=Array['from'](_0xdad493['document']['selection']['getRanges']());_0xdad493['change'](_0x365e24=>{for(const _0x5f0183 of _0x38b889)this['_modifyContent'](_0x5f0183,_0x365e24);_0x365e24['setSelection'](_0x3c42e2);});}['refresh'](){for(const _0x4a297b of this['_getAffectedRanges']())for(const _0x3b7438 of _0x4a297b)if(_0x3b7438['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0x4714e9=this['editor']['model'],_0x1b3e95=_0x4714e9['document']['selection'];if(_0x1b3e95['isCollapsed']){const _0x496a56=this['_findAncestorTextBlock'](_0x1b3e95['getFirstPosition']()['parent']);return _0x496a56?[_0x4714e9['createRangeIn'](_0x496a56)]:[];}return _0x1b3e95['getRanges']();}['_modifyContent'](_0x4ffa1d,_0x2a06ad){for(const _0x1a3568 of this['_getElementsAllowingText'](_0x4ffa1d)){const _0xf26aa9=this['_getElementTextContent'](_0x1a3568),_0x1c1465=this['_transformCallback'](_0xf26aa9);for(const _0x48d635 of this['_getTextNodesRangeLimited'](_0x1a3568,_0x4ffa1d))this['_replaceTextNodeData'](_0x48d635,_0x1c1465,_0x2a06ad);}}['_findAncestorTextBlock'](_0x4102fe){const _0x44d0a2=this['editor']['model']['schema'];if(_0x4102fe['is']('element')&&_0x44d0a2['checkChild'](_0x4102fe,'$text'))return _0x4102fe;const _0x77a728=_0x4102fe['parent'];return!_0x77a728||_0x44d0a2['isLimit'](_0x4102fe)?null:this['_findAncestorTextBlock'](_0x77a728);}*['_getElementsAllowingText'](_0x57d6eb){const _0x228ed2=new Set();for(const {item:_0x4eaf95}of _0x57d6eb['getWalker']()){const _0x1b2abb=this['_findAncestorTextBlock'](_0x4eaf95);_0x1b2abb&&!_0x228ed2['has'](_0x1b2abb)&&(_0x228ed2['add'](_0x1b2abb),yield _0x1b2abb);}}['_getElementTextContent'](_0x30f5fa){return Array['from'](_0x30f5fa['getChildren']())['reduce']((_0x2e764b,_0x56acec)=>_0x2e764b+(_0x56acec['is']('$text')?_0x56acec['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x1311d0,_0x5e14e3){const _0x597d5e=_0x5e14e3['getIntersection'](this['editor']['model']['createRangeIn'](_0x1311d0));if(_0x597d5e){for(const _0x36638f of _0x597d5e['getItems']())_0x36638f['is']('$textProxy')&&_0x36638f['parent']==_0x1311d0&&(yield _0x36638f);}}['_replaceTextNodeData'](_0x41718e,_0x3d6072,_0xb243a1){const _0x343a3f=_0x3d6072['substring'](_0x41718e['startOffset'],_0x41718e['endOffset']);if(_0x343a3f===_0x41718e['data'])return;const _0x769552=_0x41718e['getAttributes']();this['editor']['model']['insertContent'](_0xb243a1['createText'](_0x343a3f,_0x769552),_0xb243a1['createSelection'](_0xb243a1['createRangeOn'](_0x41718e)));}}function d(_0x55b3fa,_0x582925,..._0x582392){const t=_0x55b3fa['t'];switch(_0x582925){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',..._0x582392);default:return _0x582925;}}class CaseChangeEditing extends _0x148a01{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5858b5=this['editor'],_0x496759=_0x5858b5['locale']['contentLanguage'],_0x1a41f1=function(_0x49b52a=[]){return'function'==typeof _0x49b52a?_0x49b52a:(_0x3d497a,{wordIndex:_0x2d4f4f})=>_0x2d4f4f>0x0&&_0x49b52a['includes'](_0x3d497a);}(_0x5858b5['config']['get']('caseChange.titleCase.excludeWords')),_0x419097={'changeCaseUpper':new CaseChangeCommand(_0x5858b5,_0x1bacec=>_0x1bacec['toLocaleUpperCase'](_0x496759)),'changeCaseLower':new CaseChangeCommand(_0x5858b5,_0x34c3ba=>_0x34c3ba['toLocaleLowerCase'](_0x496759)),'changeCaseTitle':new CaseChangeCommand(_0x5858b5,_0x548823=>function(_0x87acb1,_0x2fe7e7,_0x89382e){return function(_0x2cd2ae,_0x7cb412){let _0x3e8da2='',_0x1b88d9=0x0,_0x2fe3dd=0x0;for(const _0x275bd6 of _0x2cd2ae['matchAll'](/ +/g)){const _0x20b5b1=_0x275bd6['index'],_0x34e9cf=_0x2cd2ae['substring'](_0x1b88d9,_0x20b5b1);_0x34e9cf['length']&&(_0x3e8da2+=_0x7cb412(_0x34e9cf,_0x1b88d9,_0x2fe3dd++)),_0x3e8da2+=_0x275bd6[0x0],_0x1b88d9=_0x20b5b1+_0x275bd6[0x0]['length'];}const _0x5f27af=_0x2cd2ae['substring'](_0x1b88d9);return _0x5f27af['length']&&(_0x3e8da2+=_0x7cb412(_0x5f27af,_0x1b88d9,_0x2fe3dd)),_0x3e8da2;}(_0x87acb1,(_0x2c3ef2,_0x393abe,_0x4f8557)=>{const _0x460fc6=_0x2c3ef2['toLocaleLowerCase'](_0x89382e);return _0x2fe7e7(_0x460fc6,{'charOffset':_0x393abe,'wordIndex':_0x4f8557,'blockText':_0x87acb1})?_0x460fc6:_0x460fc6['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x1a5ff2=>_0x1a5ff2['toLocaleUpperCase'](_0x89382e));});}(_0x548823,_0x1a41f1,_0x496759))};for(const [_0x525ea8,_0x357541]of Object['entries'](_0x419097))_0x5858b5['commands']['add'](_0x525ea8,_0x357541),_0x357541['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x525ea8);});this['listenTo'](_0x5858b5['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x5858b5['keystrokes']['set']('shift+f3',(_0x2d39dd,_0x57d8ff)=>{const _0x2fed41=g(this['editor']['locale']),_0x5c869a=_0x2fed41[this['_currentCommandIndex']%_0x2fed41['length']]['commandName'];_0x5858b5['execute'](_0x5c869a),this['_currentCommandIndex']++,_0x57d8ff();});}['afterInit'](){!async function(_0x414f09){const _0x1220cd=_0x3a8174([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]),_0x2b7b63=0x334129cd,_0x17fbaa=0x3346a245^_0x2b7b63,_0x139ab6=window[_0x3a8174([0x44,0x61,0x74,0x65])][_0x3a8174([0x6e,0x6f,0x77])](),_0xf4b875=_0x414f09[_0x3a8174([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3b41da=new window[(_0x3a8174([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bbda2=>{_0xf4b875[_0x3a8174([0x6f,0x6e,0x63,0x65])](_0x3a8174([0x72,0x65,0x61,0x64,0x79]),_0x4bbda2);}),_0x4e4d51={[_0x3a8174([0x6b,0x74,0x79])]:_0x3a8174([0x45,0x43]),[_0x3a8174([0x75,0x73,0x65])]:_0x3a8174([0x73,0x69,0x67]),[_0x3a8174([0x63,0x72,0x76])]:_0x3a8174([0x50,0x2d,0x32,0x35,0x36]),[_0x3a8174([0x78])]:_0x3a8174([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]),[_0x3a8174([0x79])]:_0x3a8174([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]),[_0x3a8174([0x61,0x6c,0x67])]:_0x3a8174([0x45,0x53,0x32,0x35,0x36])},_0x53ab61=_0xf4b875[_0x3a8174([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3a8174([0x67,0x65,0x74])](_0x3a8174([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3b5f1b(){let _0x505eb6,_0xaa2790=null,_0x2c47cf=null;try{if(_0x53ab61==_0x3a8174([0x47,0x50,0x4c]))return _0x3a8174([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x505eb6=_0x1e9587(),!_0x505eb6)return _0x3a8174([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x505eb6[_0x3a8174([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2c47cf=_0x4ca156(_0x505eb6[_0x3a8174([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x505eb6[_0x3a8174([0x6a,0x74,0x69])])),await _0x293d85()?_0x4809ff()?_0x4e3c2f()?_0x3a8174([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x18d68c()?(_0x505eb6[_0x3a8174([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3a8174([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xaa2790=_0x23b681(_0x3a8174([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x19132f()):_0x3a8174([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3a8174([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3a8174([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3a8174([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4e3c2f(){const _0x232f48=[_0x3a8174([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3a8174([0x74,0x72,0x69,0x61,0x6c])][_0x3a8174([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x505eb6[_0x3a8174([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x139ab6/0x3e8:0xe10*_0x17fbaa;return _0x505eb6[_0x3a8174([0x65,0x78,0x70])]<_0x232f48;}function _0x4809ff(){const _0x18b441=_0x505eb6[_0x3a8174([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x18b441&&(!!_0x18b441[_0x3a8174([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a8174([0x2a]))||(!!_0x18b441[_0x3a8174([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a8174([0x43,0x43]))||!!_0x18b441[_0x3a8174([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a8174([0x50,0x50]))));}function _0x18d68c(){const _0x15c2f8=_0x505eb6[_0x3a8174([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x15c2f8||0x0==_0x15c2f8[_0x3a8174([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x11fb2c}=new URL(window[_0x3a8174([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x15c2f8[_0x3a8174([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11fb2c))return!0x0;const _0x4642ab=_0x11fb2c[_0x3a8174([0x73,0x70,0x6c,0x69,0x74])](_0x3a8174([0x2e]));return _0x15c2f8[_0x3a8174([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b6e7a=>_0x3b6e7a[_0x3a8174([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a8174([0x2a])))[_0x3a8174([0x6d,0x61,0x70])](_0x16c0c6=>_0x16c0c6[_0x3a8174([0x73,0x70,0x6c,0x69,0x74])](_0x3a8174([0x2e])))[_0x3a8174([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e8224=>_0x2e8224[_0x3a8174([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4642ab[_0x3a8174([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3a8174([0x6d,0x61,0x70])](_0x13b52c=>Array(_0x4642ab[_0x3a8174([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x13b52c[_0x3a8174([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3a8174([0x66,0x69,0x6c,0x6c])](_0x13b52c[0x0]===_0x3a8174([0x2a])?_0x3a8174([0x2a]):'')[_0x3a8174([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x13b52c))[_0x3a8174([0x73,0x6f,0x6d,0x65])](_0x196281=>_0x4642ab[_0x3a8174([0x65,0x76,0x65,0x72,0x79])]((_0x37c489,_0x3000f2)=>_0x196281[_0x3000f2]===_0x37c489||_0x196281[_0x3000f2]===_0x3a8174([0x2a])));}function _0x19132f(){return _0xaa2790&&_0x2c47cf?new window[(_0x3a8174([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d34c0,_0x22adea)=>{_0xaa2790[_0x3a8174([0x74,0x68,0x65,0x6e])](_0x5d34c0,_0x22adea),_0x2c47cf[_0x3a8174([0x74,0x68,0x65,0x6e])](_0x4d1baa=>{_0x4d1baa!=_0x3a8174([0x56,0x61,0x6c,0x69,0x64])&&_0x5d34c0(_0x4d1baa);},_0x22adea);}):_0xaa2790||_0x2c47cf||_0x3a8174([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4ca156(_0x3c66fc,_0x177aa0){return new window[(_0x3a8174([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49459b=>{if(_0x131217())return _0x49459b(_0x3a8174([0x56,0x61,0x6c,0x69,0x64]));_0x2e6081(),_0xf4b875[_0x3a8174([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3a8174([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4c6d6e=!0x1;const _0x2947a0=_0x1845b4();function _0x52e69e(_0x2e3a1f){return!!_0x2e3a1f&&(typeof _0x2e3a1f===_0x3a8174([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2e3a1f===_0x3a8174([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2e3a1f[_0x3a8174([0x74,0x68,0x65,0x6e])]===_0x3a8174([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2e3a1f[_0x3a8174([0x63,0x61,0x74,0x63,0x68])]===_0x3a8174([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x28eb7b(_0x3b48da){_0x195f0a(_0x3b48da)[_0x3a8174([0x74,0x68,0x65,0x6e])](_0x46cba1=>{if(!_0x46cba1||_0x46cba1[_0x3a8174([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3a8174([0x6f,0x6b]))return _0x3a8174([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x407f2f(_0x233d6f(_0x2947a0+_0x177aa0))!=_0x46cba1[_0x3a8174([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3a8174([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3a8174([0x56,0x61,0x6c,0x69,0x64]);})[_0x3a8174([0x74,0x68,0x65,0x6e])](_0x2e7c76=>(_0x16d266(),_0x2e7c76),()=>{const _0x4196ab=_0xae4f18();return null==_0x4196ab?(_0x16d266(),_0x3a8174([0x56,0x61,0x6c,0x69,0x64])):_0x3a8174(_0x139ab6-_0x4196ab>(0x174dadcd^_0x2b7b63)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3a8174([0x74,0x68,0x65,0x6e])](_0x49459b)[_0x3a8174([0x63,0x61,0x74,0x63,0x68])](()=>{_0x49459b(_0x3a8174([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x47543c=0x3377c74d^_0x2b7b63;function _0x16d266(){const _0x39472a=_0x3a8174([0x6c,0x6c,0x63,0x74,0x2d])+_0x407f2f(_0x233d6f(_0x3c66fc)),_0x32c160=_0x55cf25(_0x407f2f(window[_0x3a8174([0x4d,0x61,0x74,0x68])][_0x3a8174([0x63,0x65,0x69,0x6c])](_0x139ab6/_0x47543c)));window[_0x3a8174([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3a8174([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x39472a,_0x32c160);}function _0xae4f18(){const _0x4d4908=_0x3a8174([0x6c,0x6c,0x63,0x74,0x2d])+_0x407f2f(_0x233d6f(_0x3c66fc)),_0x1f12f8=window[_0x3a8174([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3a8174([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d4908);return _0x1f12f8?window[_0x3a8174([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55cf25(_0x1f12f8),0x10)*_0x47543c:null;}function _0x195f0a(_0x386ef2){return new window[(_0x3a8174([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x509a12,_0x73d170)=>{_0x386ef2[_0x3a8174([0x74,0x68,0x65,0x6e])](_0x509a12,_0x73d170),window[_0x3a8174([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x73d170,0x3340fd0d^_0x2b7b63);});}}_0xf4b875[_0x3a8174([0x6f,0x6e])](_0x3a8174([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5d4120,_0x5c8542)=>{if(_0x5c8542[0x0]!=_0x3c66fc)return _0x49459b(_0x3a8174([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5c8542[0x1]={..._0x5c8542[0x1],[_0x3a8174([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2947a0};},{[_0x3a8174([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3a8174([0x68,0x69,0x67,0x68])}),_0xf4b875[_0x3a8174([0x6f,0x6e])](_0x3a8174([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2030c1=>{_0x52e69e(_0x2030c1[_0x3a8174([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4c6d6e=!0x0,_0x28eb7b(_0x2030c1[_0x3a8174([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3a8174([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3a8174([0x6c,0x6f,0x77])}),_0x3b41da[_0x3a8174([0x74,0x68,0x65,0x6e])](()=>{_0x4c6d6e||_0x49459b(_0x3a8174([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x131217(){return _0xf4b875[_0x3a8174([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a8174([0x76,0x69,0x65,0x77])][_0x3a8174([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3a8174([0x61,0x75,0x74,0x6f]);}function _0x2e6081(){_0xf4b875[_0x3a8174([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a8174([0x76,0x69,0x65,0x77])][_0x3a8174([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3a8174([0x61,0x75,0x74,0x6f]);}}function _0x23b681(_0x123603){const _0x51e922=[new window[(_0x3a8174([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bc05c=>setTimeout(_0x4bc05c,0x33481701^_0x2b7b63)),_0x3b41da[_0x3a8174([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3a8174([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ecf79=>{let _0x37e35a=0x0;_0xf4b875[_0x3a8174([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a8174([0x6f,0x6e])](_0x3a8174([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a95ed,_0x2cbcff)=>{_0x2cbcff[0x0][_0x3a8174([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x37e35a++,_0x37e35a==(0x33412c25^_0x2b7b63)&&(_0x4ecf79(),_0x4a95ed[_0x3a8174([0x6f,0x66,0x66])]());});}))];return window[_0x3a8174([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3a8174([0x72,0x61,0x63,0x65])](_0x51e922)[_0x3a8174([0x74,0x68,0x65,0x6e])](()=>_0x123603);}async function _0x178aa0(){await _0x3b41da,_0xf4b875[_0x3a8174([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a8174([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x6d70af,_0xf4b875[_0x3a8174([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a8174([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x6d70af,_0xf4b875[_0x3a8174([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3a8174([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xa2eab3(_0x50645a){const _0x1fe21c=_0x3ec019();_0xf4b875[_0x1fe21c]=_0x3a8174([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x50645a,_0x50645a!=_0x3a8174([0x56,0x61,0x6c,0x69,0x64])&&_0x178aa0();}function _0x3ec019(){const _0x2efbd7=window[_0x3a8174([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3a8174([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3a8174([0x6e,0x6f,0x77])]())[_0x3a8174([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3a8174([0x2e]),'');let _0x20f360=_0x3a8174([0x45]);for(let _0x297955=0x0;_0x297955<_0x2efbd7[_0x3a8174([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x297955+=0x2){let _0x376b2c=window[_0x3a8174([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2efbd7[_0x3a8174([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x297955,_0x297955+0x2));_0x376b2c>=_0x1220cd[_0x3a8174([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x376b2c-=_0x1220cd[_0x3a8174([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x20f360+=_0x1220cd[_0x376b2c];}return _0x20f360;}function _0x1e9587(){const _0x2c1f81=_0x53ab61[_0x3a8174([0x73,0x70,0x6c,0x69,0x74])](_0x3a8174([0x2e]));if(0x3!=_0x2c1f81[_0x3a8174([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x253f58(_0x2c1f81[0x1]);function _0x253f58(_0x39e9fa){const _0xa1480b=_0xf38547(_0x39e9fa);return _0xa1480b&&_0x43c208()?_0xa1480b:null;function _0x43c208(){const _0x8df3ca=_0xa1480b[_0x3a8174([0x6a,0x74,0x69])],_0x590081=window[_0x3a8174([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8df3ca[_0x3a8174([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8df3ca[_0x3a8174([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x80e8cd={..._0xa1480b,[_0x3a8174([0x6a,0x74,0x69])]:_0x8df3ca[_0x3a8174([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x8df3ca[_0x3a8174([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x80e8cd[_0x3a8174([0x76,0x63])],_0x233d6f(_0x80e8cd)==_0x590081;}}}async function _0x293d85(){let _0xc6f93f=!0x0;try{const _0x4cfbaf=_0x53ab61[_0x3a8174([0x73,0x70,0x6c,0x69,0x74])](_0x3a8174([0x2e])),[_0x457418,_0x330bd8,_0x27f000]=_0x4cfbaf;return _0x184e50(_0x457418),await _0x50946e(_0x457418,_0x330bd8,_0x27f000),_0xc6f93f;}catch{return!0x1;}function _0x184e50(_0x231844){const _0x13bd9f=_0xf38547(_0x231844);_0x13bd9f&&_0x13bd9f[_0x3a8174([0x61,0x6c,0x67])]==_0x3a8174([0x45,0x53,0x32,0x35,0x36])||(_0xc6f93f=!0x1);}async function _0x50946e(_0x4904dc,_0x51f677,_0xe7f722){const _0x3d9ef6=window[_0x3a8174([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3a8174([0x66,0x72,0x6f,0x6d])](_0x382e32(_0xe7f722),_0x1fd622=>_0x1fd622[_0x3a8174([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x61e38e=new window[(_0x3a8174([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3a8174([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4904dc+_0x3a8174([0x2e])+_0x51f677),_0x49ed25=window[_0x3a8174([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3a8174([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x49ed25)return;const _0x1ed5bd=await _0x49ed25[_0x3a8174([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3a8174([0x6a,0x77,0x6b]),_0x4e4d51,{[_0x3a8174([0x6e,0x61,0x6d,0x65])]:_0x3a8174([0x45,0x43,0x44,0x53,0x41]),[_0x3a8174([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3a8174([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3a8174([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x49ed25[_0x3a8174([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3a8174([0x6e,0x61,0x6d,0x65])]:_0x3a8174([0x45,0x43,0x44,0x53,0x41]),[_0x3a8174([0x68,0x61,0x73,0x68])]:{[_0x3a8174([0x6e,0x61,0x6d,0x65])]:_0x3a8174([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1ed5bd,_0x3d9ef6,_0x61e38e)||(_0xc6f93f=!0x1);}}function _0xf38547(_0x42e5ed){return _0x42e5ed[_0x3a8174([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3a8174([0x65,0x79]))?JSON[_0x3a8174([0x70,0x61,0x72,0x73,0x65])](_0x382e32(_0x42e5ed)):null;}function _0x382e32(_0x3b7416){return window[_0x3a8174([0x61,0x74,0x6f,0x62])](_0x3b7416[_0x3a8174([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3a8174([0x2b]))[_0x3a8174([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3a8174([0x2f])));}function _0x233d6f(_0x26634e){let _0x244286=0x1505;function _0x43348b(_0x1731ee){for(let _0x1bedb8=0x0;_0x1bedb8<_0x1731ee[_0x3a8174([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1bedb8++){const _0x563d67=_0x1731ee[_0x3a8174([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1bedb8);_0x244286=(_0x244286<<0x5)+_0x244286+_0x563d67,_0x244286&=_0x244286;}}function _0x3aee08(_0x10a153){Array[_0x3a8174([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10a153)?_0x10a153[_0x3a8174([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3aee08):_0x10a153&&typeof _0x10a153==_0x3a8174([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3a8174([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10a153)[_0x3a8174([0x73,0x6f,0x72,0x74])]()[_0x3a8174([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2e831b,_0x2185bf])=>{_0x43348b(_0x2e831b),_0x3aee08(_0x2185bf);}):_0x43348b(window[_0x3a8174([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10a153));}return _0x3aee08(_0x26634e),_0x244286>>>0x0;}function _0x407f2f(_0x9d1e87){return _0x9d1e87[_0x3a8174([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3a8174([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3a8174([0x30]));}function _0x55cf25(_0x603aa2){return _0x603aa2[_0x3a8174([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3a8174([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3a8174([0x6a,0x6f,0x69,0x6e])]('');}function _0x6d70af(){}function _0x3a8174(_0x2ca28d){return _0x2ca28d['map'](_0xd3fb35=>String['fromCharCode'](_0xd3fb35))['join']('');}_0xa2eab3(await _0x3b5f1b());}(this);}['_announceCaseChangeOperation'](_0x537196){const {ui:_0x13f746,locale:_0x411917}=this['editor'],_0x3ee4dd=g(_0x411917)['find'](_0x467ddf=>_0x467ddf['commandName']===_0x537196)['label']['toLowerCase']();_0x13f746['ariaLiveAnnouncer']['announce'](d(_0x411917,'Changed\x20case\x20to\x20%0',_0x3ee4dd));}}function g(_0x19a8c7){return[{'label':d(_0x19a8c7,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':d(_0x19a8c7,'lowercase'),'commandName':'changeCaseLower'},{'label':d(_0x19a8c7,'Title\x20Case'),'commandName':'changeCaseTitle'}];}class CaseChangeUI extends _0x148a01{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5d5d5f=this['editor'];this['_registerComponents'](),_0x5d5d5f['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':d(_0x5d5d5f['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x134d8e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4b9836;for(const _0x286c35 in _0x134d8e){const _0x5b0d3c=_0x286c35,_0x314360=_0x134d8e[_0x5b0d3c];if('caseChangeLicenseKeyValid'==_0x314360||'caseChangeLicenseKeyInvalid'==_0x314360||'caseChangeLicenseKeyExpired'==_0x314360||'caseChangeLicenseKeyDomainLimit'==_0x314360||'caseChangeLicenseKeyNotAllowed'==_0x314360||'caseChangeLicenseKeyEvaluationLimit'==_0x314360||'caseChangeLicenseKeyUsageLimit'==_0x314360){delete _0x134d8e[_0x5b0d3c],_0x4b9836=_0x314360,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x4b9836&&_0x134d8e['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x4b9836&&_0x134d8e['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x4b9836&&_0x134d8e['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x4b9836&&_0x134d8e['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x4b9836&&_0x134d8e['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x4b9836&&_0x134d8e['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x534c92=this['editor'],{itemDefinitions:_0x5b656d,commands:_0x4eade7}=this['_getListItemDefinitionsAndCommands']();_0x534c92['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x5b656d,_0x4eade7)),_0x534c92['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x5b656d,_0x4eade7));}['_createMenuBarMenuView'](_0x4ccec1,_0x2de68f){const _0xa93b90=this['editor'],_0xedaafa=_0xa93b90['locale'],_0x5c8095=new _0x35735b(_0xedaafa),_0x14c0ab=new _0x2b30f3(_0xedaafa);_0x14c0ab['set']({'ariaLabel':d(_0xedaafa,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x5c8095['buttonView']),_0x5c8095['bind']('isEnabled')['toMany'](_0x2de68f,'isEnabled',(..._0x2ee787)=>_0x2ee787['some'](_0x14e86c=>_0x14e86c));for(const _0x5c6c7e of _0x4ccec1){const _0x3b5a1e=new _0x38e0c5(_0xedaafa,_0x5c8095),_0x1d2a11=new _0x428ab6(_0xedaafa);_0x1d2a11['delegate']('execute')['to'](_0x5c8095),_0x1d2a11['bind'](...Object['keys'](_0x5c6c7e['model']))['to'](_0x5c6c7e['model']),_0x1d2a11['on']('execute',()=>{_0xa93b90['execute'](_0x5c6c7e['model']['commandName']),_0xa93b90['editing']['view']['focus']();}),_0x3b5a1e['children']['add'](_0x1d2a11),_0x14c0ab['items']['add'](_0x3b5a1e);}return _0x5c8095['panelView']['children']['add'](_0x14c0ab),_0x5c8095;}['_createDropdownView'](_0x33652f,_0x3f7fc4){const _0x27d621=this['editor'],_0x3335dc=_0x5b9271(_0x27d621['locale']);return this['_setButtonProperties'](_0x3335dc['buttonView']),_0x3335dc['buttonView']['set']({'tooltip':!0x0}),_0x3335dc['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0x36bfc5(_0x3335dc,_0x33652f,{'ariaLabel':d(_0x27d621['locale'],'Case\x20change'),'role':'menu'}),_0x3335dc['bind']('isEnabled')['toMany'](_0x3f7fc4,'isEnabled',(..._0x122737)=>_0x122737['some'](_0x110e1f=>_0x110e1f)),this['listenTo'](_0x3335dc,'execute',_0x323d53=>{_0x27d621['execute'](_0x323d53['source']['commandName']),_0x27d621['editing']['view']['focus']();}),_0x3335dc;}['_setButtonProperties'](_0x2679cc){const _0x2591a4=this['editor'];_0x2679cc['set']({'label':d(_0x2591a4['locale'],'Case\x20change'),'icon':_0x2e03f6,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x57c1e8=new _0x17eda8(),_0x2ea10b=[];for(const _0xbbdd1e of g(this['editor']['locale'])){const _0x2e8a52=this['editor']['commands']['get'](_0xbbdd1e['commandName']),_0x1be920=new _0x1c95d5({'commandName':_0xbbdd1e['commandName'],'label':_0xbbdd1e['label'],'role':'menuitemradio','withText':!0x0});_0x1be920['bind']('isEnabled')['to'](_0x2e8a52,'isEnabled'),_0x57c1e8['add']({'type':'button','model':_0x1be920}),_0x2ea10b['push'](_0x2e8a52);}return{'itemDefinitions':_0x57c1e8,'commands':_0x2ea10b};}}class CaseChange extends _0x148a01{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 _0x35ebc1,Plugin as _0x384e27}from'@ckeditor/ckeditor5-core/dist/index.js';import{uid as _0x308778,Collection as _0x2a7f93}from'@ckeditor/ckeditor5-utils/dist/index.js';import{MenuBarMenuView as _0x2d966f,MenuBarMenuListView as _0x1f4c66,MenuBarMenuListItemView as _0xf4e081,MenuBarMenuListItemButtonView as _0x51f9cb,createDropdown as _0x5424d6,addListToDropdown as _0x5c8a50,UIModel as _0x25a520}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconCaseChange as _0x57e2a7}from'@ckeditor/ckeditor5-icons/dist/index.js';class CaseChangeCommand extends _0x35ebc1{['_transformCallback'];constructor(_0x4fe398,_0x17a2bd){super(_0x4fe398),this['_transformCallback']=_0x17a2bd;}['execute'](){const _0x3ef5a0=this['editor']['model'],_0x506136=Array['from'](this['_getAffectedRanges']()),_0x22fa4b=Array['from'](_0x3ef5a0['document']['selection']['getRanges']());_0x3ef5a0['change'](_0x10574d=>{for(const _0x1bdc87 of _0x506136)this['_modifyContent'](_0x1bdc87,_0x10574d);_0x10574d['setSelection'](_0x22fa4b);});}['refresh'](){for(const _0x34e9f4 of this['_getAffectedRanges']())for(const _0x39c671 of _0x34e9f4)if(_0x39c671['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0x1f2bb0=this['editor']['model'],_0x5ca9a6=_0x1f2bb0['document']['selection'];if(_0x5ca9a6['isCollapsed']){const _0x5cfa3f=this['_findAncestorTextBlock'](_0x5ca9a6['getFirstPosition']()['parent']);return _0x5cfa3f?[_0x1f2bb0['createRangeIn'](_0x5cfa3f)]:[];}return _0x5ca9a6['getRanges']();}['_modifyContent'](_0x1d7f39,_0x15b240){for(const _0x4d7653 of this['_getElementsAllowingText'](_0x1d7f39)){const _0x4459c3=this['_getElementTextContent'](_0x4d7653),_0x27cb85=this['_transformCallback'](_0x4459c3);for(const _0x2347b2 of this['_getTextNodesRangeLimited'](_0x4d7653,_0x1d7f39))this['_replaceTextNodeData'](_0x2347b2,_0x27cb85,_0x15b240);}}['_findAncestorTextBlock'](_0x1a83d1){const _0x55fbf1=this['editor']['model']['schema'];if(_0x1a83d1['is']('element')&&_0x55fbf1['checkChild'](_0x1a83d1,'$text'))return _0x1a83d1;const _0x171047=_0x1a83d1['parent'];return!_0x171047||_0x55fbf1['isLimit'](_0x1a83d1)?null:this['_findAncestorTextBlock'](_0x171047);}*['_getElementsAllowingText'](_0x51b29c){const _0x1d3c3d=new Set();for(const {item:_0x5c5ddf}of _0x51b29c['getWalker']()){const _0x1c7491=this['_findAncestorTextBlock'](_0x5c5ddf);_0x1c7491&&!_0x1d3c3d['has'](_0x1c7491)&&(_0x1d3c3d['add'](_0x1c7491),yield _0x1c7491);}}['_getElementTextContent'](_0x17ffc1){return Array['from'](_0x17ffc1['getChildren']())['reduce']((_0x56a5de,_0x2bcda2)=>_0x56a5de+(_0x2bcda2['is']('$text')?_0x2bcda2['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x41554e,_0x621834){const _0x506c4f=_0x621834['getIntersection'](this['editor']['model']['createRangeIn'](_0x41554e));if(_0x506c4f){for(const _0x3d133b of _0x506c4f['getItems']())_0x3d133b['is']('$textProxy')&&_0x3d133b['parent']==_0x41554e&&(yield _0x3d133b);}}['_replaceTextNodeData'](_0x10b93d,_0x3b73fb,_0x378817){const _0x159b30=_0x3b73fb['substring'](_0x10b93d['startOffset'],_0x10b93d['endOffset']);if(_0x159b30===_0x10b93d['data'])return;const _0x43ad0d=_0x10b93d['getAttributes']();this['editor']['model']['insertContent'](_0x378817['createText'](_0x159b30,_0x43ad0d),_0x378817['createSelection'](_0x378817['createRangeOn'](_0x10b93d)));}}function d(_0x34fb10,_0x217585,..._0x47bf83){const t=_0x34fb10['t'];switch(_0x217585){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',..._0x47bf83);default:return _0x217585;}}class CaseChangeEditing extends _0x384e27{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1baafb=this['editor'],_0x445b8a=_0x1baafb['locale']['contentLanguage'],_0x232c15=function(_0x3b434a=[]){return'function'==typeof _0x3b434a?_0x3b434a:(_0x2c341c,{wordIndex:_0xb5c97a})=>_0xb5c97a>0x0&&_0x3b434a['includes'](_0x2c341c);}(_0x1baafb['config']['get']('caseChange.titleCase.excludeWords')),_0x3e1103={'changeCaseUpper':new CaseChangeCommand(_0x1baafb,_0x75d83d=>_0x75d83d['toLocaleUpperCase'](_0x445b8a)),'changeCaseLower':new CaseChangeCommand(_0x1baafb,_0x377607=>_0x377607['toLocaleLowerCase'](_0x445b8a)),'changeCaseTitle':new CaseChangeCommand(_0x1baafb,_0x30ede0=>function(_0x4f3837,_0x3a7c1b,_0x2106fd){return function(_0x3654bf,_0x346c1e){let _0x56a602='',_0x1b1650=0x0,_0x59a19c=0x0;for(const _0x30e552 of _0x3654bf['matchAll'](/ +/g)){const _0x59dea6=_0x30e552['index'],_0x4b7500=_0x3654bf['substring'](_0x1b1650,_0x59dea6);_0x4b7500['length']&&(_0x56a602+=_0x346c1e(_0x4b7500,_0x1b1650,_0x59a19c++)),_0x56a602+=_0x30e552[0x0],_0x1b1650=_0x59dea6+_0x30e552[0x0]['length'];}const _0xd211ac=_0x3654bf['substring'](_0x1b1650);return _0xd211ac['length']&&(_0x56a602+=_0x346c1e(_0xd211ac,_0x1b1650,_0x59a19c)),_0x56a602;}(_0x4f3837,(_0x3115a4,_0x31a5a8,_0x4913f3)=>{const _0x19f1ce=_0x3115a4['toLocaleLowerCase'](_0x2106fd);return _0x3a7c1b(_0x19f1ce,{'charOffset':_0x31a5a8,'wordIndex':_0x4913f3,'blockText':_0x4f3837})?_0x19f1ce:_0x19f1ce['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x32e48d=>_0x32e48d['toLocaleUpperCase'](_0x2106fd));});}(_0x30ede0,_0x232c15,_0x445b8a))};for(const [_0x5f183c,_0x4633b9]of Object['entries'](_0x3e1103))_0x1baafb['commands']['add'](_0x5f183c,_0x4633b9),_0x4633b9['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x5f183c);});this['listenTo'](_0x1baafb['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x1baafb['keystrokes']['set']('shift+f3',(_0x32e59f,_0x458962)=>{const _0x226ed2=g(this['editor']['locale']),_0x5afd3b=_0x226ed2[this['_currentCommandIndex']%_0x226ed2['length']]['commandName'];_0x1baafb['execute'](_0x5afd3b),this['_currentCommandIndex']++,_0x458962();});}['afterInit'](){!async function(_0x2ae5eb){const _0x4b2873=_0x57b3ec([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]),_0x2030ad=0x334129cd,_0x18106d=0x3346a275^_0x2030ad,_0x5d6507=window[_0x57b3ec([0x44,0x61,0x74,0x65])][_0x57b3ec([0x6e,0x6f,0x77])](),_0x157a58=_0x2ae5eb[_0x57b3ec([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4e97aa=new window[(_0x57b3ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36842f=>{_0x157a58[_0x57b3ec([0x6f,0x6e,0x63,0x65])](_0x57b3ec([0x72,0x65,0x61,0x64,0x79]),_0x36842f);}),_0x38dbca={[_0x57b3ec([0x6b,0x74,0x79])]:_0x57b3ec([0x45,0x43]),[_0x57b3ec([0x75,0x73,0x65])]:_0x57b3ec([0x73,0x69,0x67]),[_0x57b3ec([0x63,0x72,0x76])]:_0x57b3ec([0x50,0x2d,0x32,0x35,0x36]),[_0x57b3ec([0x78])]:_0x57b3ec([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]),[_0x57b3ec([0x79])]:_0x57b3ec([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]),[_0x57b3ec([0x61,0x6c,0x67])]:_0x57b3ec([0x45,0x53,0x32,0x35,0x36])},_0x1adbae=_0x157a58[_0x57b3ec([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x57b3ec([0x67,0x65,0x74])](_0x57b3ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x43338f(){let _0x21608a,_0xcc3ee9=null,_0xd7c41=null;try{if(_0x1adbae==_0x57b3ec([0x47,0x50,0x4c]))return _0x57b3ec([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x21608a=_0x5580f3(),!_0x21608a)return _0x57b3ec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x21608a[_0x57b3ec([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xd7c41=_0x1b84b0(_0x21608a[_0x57b3ec([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x21608a[_0x57b3ec([0x6a,0x74,0x69])])),await _0x506c4a()?_0x3c8946()?_0x475e57()?_0x57b3ec([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x13165e()?(_0x21608a[_0x57b3ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x57b3ec([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xcc3ee9=_0x27d098(_0x57b3ec([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5774cc()):_0x57b3ec([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x57b3ec([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x57b3ec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x57b3ec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x475e57(){const _0x8921bc=[_0x57b3ec([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x57b3ec([0x74,0x72,0x69,0x61,0x6c])][_0x57b3ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21608a[_0x57b3ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5d6507/0x3e8:0xe10*_0x18106d;return _0x21608a[_0x57b3ec([0x65,0x78,0x70])]<_0x8921bc;}function _0x3c8946(){const _0x370622=_0x21608a[_0x57b3ec([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x370622&&(!!_0x370622[_0x57b3ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57b3ec([0x2a]))||(!!_0x370622[_0x57b3ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57b3ec([0x43,0x43]))||!!_0x370622[_0x57b3ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57b3ec([0x50,0x50]))));}function _0x13165e(){const _0x3d8d84=_0x21608a[_0x57b3ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3d8d84||0x0==_0x3d8d84[_0x57b3ec([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xa5ff7c}=new URL(window[_0x57b3ec([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3d8d84[_0x57b3ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa5ff7c))return!0x0;const _0x375385=_0xa5ff7c[_0x57b3ec([0x73,0x70,0x6c,0x69,0x74])](_0x57b3ec([0x2e]));return _0x3d8d84[_0x57b3ec([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x385bc8=>_0x385bc8[_0x57b3ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57b3ec([0x2a])))[_0x57b3ec([0x6d,0x61,0x70])](_0x53dfe6=>_0x53dfe6[_0x57b3ec([0x73,0x70,0x6c,0x69,0x74])](_0x57b3ec([0x2e])))[_0x57b3ec([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x38ca2c=>_0x38ca2c[_0x57b3ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x375385[_0x57b3ec([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x57b3ec([0x6d,0x61,0x70])](_0xffe67b=>Array(_0x375385[_0x57b3ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xffe67b[_0x57b3ec([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x57b3ec([0x66,0x69,0x6c,0x6c])](_0xffe67b[0x0]===_0x57b3ec([0x2a])?_0x57b3ec([0x2a]):'')[_0x57b3ec([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xffe67b))[_0x57b3ec([0x73,0x6f,0x6d,0x65])](_0xd132fb=>_0x375385[_0x57b3ec([0x65,0x76,0x65,0x72,0x79])]((_0x580790,_0x55d4e8)=>_0xd132fb[_0x55d4e8]===_0x580790||_0xd132fb[_0x55d4e8]===_0x57b3ec([0x2a])));}function _0x5774cc(){return _0xcc3ee9&&_0xd7c41?new window[(_0x57b3ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x544552,_0x34ef42)=>{_0xcc3ee9[_0x57b3ec([0x74,0x68,0x65,0x6e])](_0x544552,_0x34ef42),_0xd7c41[_0x57b3ec([0x74,0x68,0x65,0x6e])](_0x574e9c=>{_0x574e9c!=_0x57b3ec([0x56,0x61,0x6c,0x69,0x64])&&_0x544552(_0x574e9c);},_0x34ef42);}):_0xcc3ee9||_0xd7c41||_0x57b3ec([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1b84b0(_0x4974f3,_0x242a72){return new window[(_0x57b3ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x339677=>{if(_0xc3039())return _0x339677(_0x57b3ec([0x56,0x61,0x6c,0x69,0x64]));_0x131495(),_0x157a58[_0x57b3ec([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x57b3ec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2542c4=!0x1;const _0xe26fc=_0x308778();function _0x38c66c(_0x2b302c){return!!_0x2b302c&&(typeof _0x2b302c===_0x57b3ec([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2b302c===_0x57b3ec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2b302c[_0x57b3ec([0x74,0x68,0x65,0x6e])]===_0x57b3ec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2b302c[_0x57b3ec([0x63,0x61,0x74,0x63,0x68])]===_0x57b3ec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x228206(_0x52f11d){_0x1d3cba(_0x52f11d)[_0x57b3ec([0x74,0x68,0x65,0x6e])](_0x4ad805=>{if(!_0x4ad805||_0x4ad805[_0x57b3ec([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x57b3ec([0x6f,0x6b]))return _0x57b3ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5f44e(_0x2b7c21(_0xe26fc+_0x242a72))!=_0x4ad805[_0x57b3ec([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x57b3ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x57b3ec([0x56,0x61,0x6c,0x69,0x64]);})[_0x57b3ec([0x74,0x68,0x65,0x6e])](_0x17f87c=>(_0x41f68b(),_0x17f87c),()=>{const _0x5084a3=_0x3ee3c7();return null==_0x5084a3?(_0x41f68b(),_0x57b3ec([0x56,0x61,0x6c,0x69,0x64])):_0x57b3ec(_0x5d6507-_0x5084a3>(0x174dadcd^_0x2030ad)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x57b3ec([0x74,0x68,0x65,0x6e])](_0x339677)[_0x57b3ec([0x63,0x61,0x74,0x63,0x68])](()=>{_0x339677(_0x57b3ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x365ade=0x3377c74d^_0x2030ad;function _0x41f68b(){const _0x4d27f3=_0x57b3ec([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f44e(_0x2b7c21(_0x4974f3)),_0x3404a=_0x43b69d(_0x5f44e(window[_0x57b3ec([0x4d,0x61,0x74,0x68])][_0x57b3ec([0x63,0x65,0x69,0x6c])](_0x5d6507/_0x365ade)));window[_0x57b3ec([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x57b3ec([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d27f3,_0x3404a);}function _0x3ee3c7(){const _0x13269b=_0x57b3ec([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f44e(_0x2b7c21(_0x4974f3)),_0x1545ca=window[_0x57b3ec([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x57b3ec([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x13269b);return _0x1545ca?window[_0x57b3ec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43b69d(_0x1545ca),0x10)*_0x365ade:null;}function _0x1d3cba(_0x49529b){return new window[(_0x57b3ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a7e53,_0x3b4c46)=>{_0x49529b[_0x57b3ec([0x74,0x68,0x65,0x6e])](_0x3a7e53,_0x3b4c46),window[_0x57b3ec([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3b4c46,0x3340fd0d^_0x2030ad);});}}_0x157a58[_0x57b3ec([0x6f,0x6e])](_0x57b3ec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x232c73,_0xd56b23)=>{if(_0xd56b23[0x0]!=_0x4974f3)return _0x339677(_0x57b3ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd56b23[0x1]={..._0xd56b23[0x1],[_0x57b3ec([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xe26fc};},{[_0x57b3ec([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x57b3ec([0x68,0x69,0x67,0x68])}),_0x157a58[_0x57b3ec([0x6f,0x6e])](_0x57b3ec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2917df=>{_0x38c66c(_0x2917df[_0x57b3ec([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2542c4=!0x0,_0x228206(_0x2917df[_0x57b3ec([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x57b3ec([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x57b3ec([0x6c,0x6f,0x77])}),_0x4e97aa[_0x57b3ec([0x74,0x68,0x65,0x6e])](()=>{_0x2542c4||_0x339677(_0x57b3ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xc3039(){return _0x157a58[_0x57b3ec([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57b3ec([0x76,0x69,0x65,0x77])][_0x57b3ec([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x57b3ec([0x61,0x75,0x74,0x6f]);}function _0x131495(){_0x157a58[_0x57b3ec([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57b3ec([0x76,0x69,0x65,0x77])][_0x57b3ec([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x57b3ec([0x61,0x75,0x74,0x6f]);}}function _0x27d098(_0x338eda){const _0x5c3a44=[new window[(_0x57b3ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x239bcb=>setTimeout(_0x239bcb,0x33481701^_0x2030ad)),_0x4e97aa[_0x57b3ec([0x74,0x68,0x65,0x6e])](()=>new window[(_0x57b3ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4189ae=>{let _0x46b781=0x0;_0x157a58[_0x57b3ec([0x6d,0x6f,0x64,0x65,0x6c])][_0x57b3ec([0x6f,0x6e])](_0x57b3ec([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x26058d,_0x48dd11)=>{_0x48dd11[0x0][_0x57b3ec([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x46b781++,_0x46b781==(0x33412c25^_0x2030ad)&&(_0x4189ae(),_0x26058d[_0x57b3ec([0x6f,0x66,0x66])]());});}))];return window[_0x57b3ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x57b3ec([0x72,0x61,0x63,0x65])](_0x5c3a44)[_0x57b3ec([0x74,0x68,0x65,0x6e])](()=>_0x338eda);}async function _0x3bb37c(){await _0x4e97aa,_0x157a58[_0x57b3ec([0x6d,0x6f,0x64,0x65,0x6c])][_0x57b3ec([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4be777,_0x157a58[_0x57b3ec([0x6d,0x6f,0x64,0x65,0x6c])][_0x57b3ec([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4be777,_0x157a58[_0x57b3ec([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x57b3ec([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3df638(_0xd9fc8b){const _0x430e62=_0x321b53();_0x157a58[_0x430e62]=_0x57b3ec([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xd9fc8b,_0xd9fc8b!=_0x57b3ec([0x56,0x61,0x6c,0x69,0x64])&&_0x3bb37c();}function _0x321b53(){const _0xc5209d=window[_0x57b3ec([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x57b3ec([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x57b3ec([0x6e,0x6f,0x77])]())[_0x57b3ec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x57b3ec([0x2e]),'');let _0x3dab88=_0x57b3ec([0x45]);for(let _0x52cdf4=0x0;_0x52cdf4<_0xc5209d[_0x57b3ec([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x52cdf4+=0x2){let _0x10a8d8=window[_0x57b3ec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc5209d[_0x57b3ec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x52cdf4,_0x52cdf4+0x2));_0x10a8d8>=_0x4b2873[_0x57b3ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x10a8d8-=_0x4b2873[_0x57b3ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3dab88+=_0x4b2873[_0x10a8d8];}return _0x3dab88;}function _0x5580f3(){const _0x59633b=_0x1adbae[_0x57b3ec([0x73,0x70,0x6c,0x69,0x74])](_0x57b3ec([0x2e]));if(0x3!=_0x59633b[_0x57b3ec([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x59db9b(_0x59633b[0x1]);function _0x59db9b(_0x3f5d2a){const _0x371de3=_0x411f59(_0x3f5d2a);return _0x371de3&&_0x1e7015()?_0x371de3:null;function _0x1e7015(){const _0x2b191d=_0x371de3[_0x57b3ec([0x6a,0x74,0x69])],_0x1a276f=window[_0x57b3ec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b191d[_0x57b3ec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b191d[_0x57b3ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1e82df={..._0x371de3,[_0x57b3ec([0x6a,0x74,0x69])]:_0x2b191d[_0x57b3ec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2b191d[_0x57b3ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1e82df[_0x57b3ec([0x76,0x63])],_0x2b7c21(_0x1e82df)==_0x1a276f;}}}async function _0x506c4a(){let _0x861670=!0x0;try{const _0x59b6fd=_0x1adbae[_0x57b3ec([0x73,0x70,0x6c,0x69,0x74])](_0x57b3ec([0x2e])),[_0xc131cd,_0x45de3b,_0x15334c]=_0x59b6fd;return _0x110b2e(_0xc131cd),await _0x1e5534(_0xc131cd,_0x45de3b,_0x15334c),_0x861670;}catch{return!0x1;}function _0x110b2e(_0x1d30ce){const _0x1a9773=_0x411f59(_0x1d30ce);_0x1a9773&&_0x1a9773[_0x57b3ec([0x61,0x6c,0x67])]==_0x57b3ec([0x45,0x53,0x32,0x35,0x36])||(_0x861670=!0x1);}async function _0x1e5534(_0x7454d6,_0x4a7bde,_0x4e8c85){const _0x4fb44c=window[_0x57b3ec([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x57b3ec([0x66,0x72,0x6f,0x6d])](_0x18166c(_0x4e8c85),_0x3b040a=>_0x3b040a[_0x57b3ec([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x362b0b=new window[(_0x57b3ec([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x57b3ec([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x7454d6+_0x57b3ec([0x2e])+_0x4a7bde),_0x14043c=window[_0x57b3ec([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x57b3ec([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x14043c)return;const _0x22584c=await _0x14043c[_0x57b3ec([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x57b3ec([0x6a,0x77,0x6b]),_0x38dbca,{[_0x57b3ec([0x6e,0x61,0x6d,0x65])]:_0x57b3ec([0x45,0x43,0x44,0x53,0x41]),[_0x57b3ec([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x57b3ec([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x57b3ec([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x14043c[_0x57b3ec([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x57b3ec([0x6e,0x61,0x6d,0x65])]:_0x57b3ec([0x45,0x43,0x44,0x53,0x41]),[_0x57b3ec([0x68,0x61,0x73,0x68])]:{[_0x57b3ec([0x6e,0x61,0x6d,0x65])]:_0x57b3ec([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x22584c,_0x4fb44c,_0x362b0b)||(_0x861670=!0x1);}}function _0x411f59(_0x2ca771){return _0x2ca771[_0x57b3ec([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x57b3ec([0x65,0x79]))?JSON[_0x57b3ec([0x70,0x61,0x72,0x73,0x65])](_0x18166c(_0x2ca771)):null;}function _0x18166c(_0x58b488){return window[_0x57b3ec([0x61,0x74,0x6f,0x62])](_0x58b488[_0x57b3ec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x57b3ec([0x2b]))[_0x57b3ec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x57b3ec([0x2f])));}function _0x2b7c21(_0x395c70){let _0x316c63=0x1505;function _0x5df3f6(_0x6df8dc){for(let _0x3fb335=0x0;_0x3fb335<_0x6df8dc[_0x57b3ec([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3fb335++){const _0x22c6a1=_0x6df8dc[_0x57b3ec([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3fb335);_0x316c63=(_0x316c63<<0x5)+_0x316c63+_0x22c6a1,_0x316c63&=_0x316c63;}}function _0x2c13b8(_0x3b6eb7){Array[_0x57b3ec([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3b6eb7)?_0x3b6eb7[_0x57b3ec([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2c13b8):_0x3b6eb7&&typeof _0x3b6eb7==_0x57b3ec([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x57b3ec([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3b6eb7)[_0x57b3ec([0x73,0x6f,0x72,0x74])]()[_0x57b3ec([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2a5078,_0x3b4753])=>{_0x5df3f6(_0x2a5078),_0x2c13b8(_0x3b4753);}):_0x5df3f6(window[_0x57b3ec([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3b6eb7));}return _0x2c13b8(_0x395c70),_0x316c63>>>0x0;}function _0x5f44e(_0x2e9876){return _0x2e9876[_0x57b3ec([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x57b3ec([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x57b3ec([0x30]));}function _0x43b69d(_0x4f72e6){return _0x4f72e6[_0x57b3ec([0x73,0x70,0x6c,0x69,0x74])]('')[_0x57b3ec([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x57b3ec([0x6a,0x6f,0x69,0x6e])]('');}function _0x4be777(){}function _0x57b3ec(_0x440965){return _0x440965['map'](_0x47d83f=>String['fromCharCode'](_0x47d83f))['join']('');}_0x3df638(await _0x43338f());}(this);}['_announceCaseChangeOperation'](_0xac69){const {ui:_0x235cdb,locale:_0x1d0829}=this['editor'],_0x5d2f12=g(_0x1d0829)['find'](_0x568617=>_0x568617['commandName']===_0xac69)['label']['toLowerCase']();_0x235cdb['ariaLiveAnnouncer']['announce'](d(_0x1d0829,'Changed\x20case\x20to\x20%0',_0x5d2f12));}}function g(_0xa7feac){return[{'label':d(_0xa7feac,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':d(_0xa7feac,'lowercase'),'commandName':'changeCaseLower'},{'label':d(_0xa7feac,'Title\x20Case'),'commandName':'changeCaseTitle'}];}class CaseChangeUI extends _0x384e27{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x9af4e8=this['editor'];this['_registerComponents'](),_0x9af4e8['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':d(_0x9af4e8['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x376242=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x292bf3;for(const _0x543b1f in _0x376242){const _0x560331=_0x543b1f,_0x12141d=_0x376242[_0x560331];if('caseChangeLicenseKeyValid'==_0x12141d||'caseChangeLicenseKeyInvalid'==_0x12141d||'caseChangeLicenseKeyExpired'==_0x12141d||'caseChangeLicenseKeyDomainLimit'==_0x12141d||'caseChangeLicenseKeyNotAllowed'==_0x12141d||'caseChangeLicenseKeyEvaluationLimit'==_0x12141d||'caseChangeLicenseKeyUsageLimit'==_0x12141d){delete _0x376242[_0x560331],_0x292bf3=_0x12141d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x292bf3&&_0x376242['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x292bf3&&_0x376242['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x292bf3&&_0x376242['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x292bf3&&_0x376242['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x292bf3&&_0x376242['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x292bf3&&_0x376242['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x23ba5b=this['editor'],{itemDefinitions:_0x3bc932,commands:_0x235d5c}=this['_getListItemDefinitionsAndCommands']();_0x23ba5b['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x3bc932,_0x235d5c)),_0x23ba5b['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x3bc932,_0x235d5c));}['_createMenuBarMenuView'](_0xed1c21,_0x4f9153){const _0x27e7f5=this['editor'],_0x3d02ee=_0x27e7f5['locale'],_0x51d3c5=new _0x2d966f(_0x3d02ee),_0x44a9a7=new _0x1f4c66(_0x3d02ee);_0x44a9a7['set']({'ariaLabel':d(_0x3d02ee,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x51d3c5['buttonView']),_0x51d3c5['bind']('isEnabled')['toMany'](_0x4f9153,'isEnabled',(..._0x2a5f37)=>_0x2a5f37['some'](_0x2db85f=>_0x2db85f));for(const _0x120387 of _0xed1c21){const _0x5d0a9a=new _0xf4e081(_0x3d02ee,_0x51d3c5),_0x5608a0=new _0x51f9cb(_0x3d02ee);_0x5608a0['delegate']('execute')['to'](_0x51d3c5),_0x5608a0['bind'](...Object['keys'](_0x120387['model']))['to'](_0x120387['model']),_0x5608a0['on']('execute',()=>{_0x27e7f5['execute'](_0x120387['model']['commandName']),_0x27e7f5['editing']['view']['focus']();}),_0x5d0a9a['children']['add'](_0x5608a0),_0x44a9a7['items']['add'](_0x5d0a9a);}return _0x51d3c5['panelView']['children']['add'](_0x44a9a7),_0x51d3c5;}['_createDropdownView'](_0x4143ef,_0x3606d6){const _0x543b51=this['editor'],_0x479ec8=_0x5424d6(_0x543b51['locale']);return this['_setButtonProperties'](_0x479ec8['buttonView']),_0x479ec8['buttonView']['set']({'tooltip':!0x0}),_0x479ec8['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0x5c8a50(_0x479ec8,_0x4143ef,{'ariaLabel':d(_0x543b51['locale'],'Case\x20change'),'role':'menu'}),_0x479ec8['bind']('isEnabled')['toMany'](_0x3606d6,'isEnabled',(..._0x38486a)=>_0x38486a['some'](_0x35e8a7=>_0x35e8a7)),this['listenTo'](_0x479ec8,'execute',_0x4b33f9=>{_0x543b51['execute'](_0x4b33f9['source']['commandName']),_0x543b51['editing']['view']['focus']();}),_0x479ec8;}['_setButtonProperties'](_0x11acb5){const _0x4b5950=this['editor'];_0x11acb5['set']({'label':d(_0x4b5950['locale'],'Case\x20change'),'icon':_0x57e2a7,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x39a297=new _0x2a7f93(),_0x5af8cd=[];for(const _0x5abc7b of g(this['editor']['locale'])){const _0x2dc29e=this['editor']['commands']['get'](_0x5abc7b['commandName']),_0x370555=new _0x25a520({'commandName':_0x5abc7b['commandName'],'label':_0x5abc7b['label'],'role':'menuitemradio','withText':!0x0});_0x370555['bind']('isEnabled')['to'](_0x2dc29e,'isEnabled'),_0x39a297['add']({'type':'button','model':_0x370555}),_0x5af8cd['push'](_0x2dc29e);}return{'itemDefinitions':_0x39a297,'commands':_0x5af8cd};}}class CaseChange extends _0x384e27{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.2.0-alpha.3",
3
+ "version": "48.2.0-alpha.5",
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.2.0-alpha.3",
40
- "@ckeditor/ckeditor5-engine": "48.2.0-alpha.3",
41
- "@ckeditor/ckeditor5-icons": "48.2.0-alpha.3",
42
- "@ckeditor/ckeditor5-ui": "48.2.0-alpha.3",
43
- "@ckeditor/ckeditor5-utils": "48.2.0-alpha.3"
39
+ "@ckeditor/ckeditor5-core": "48.2.0-alpha.5",
40
+ "@ckeditor/ckeditor5-engine": "48.2.0-alpha.5",
41
+ "@ckeditor/ckeditor5-icons": "48.2.0-alpha.5",
42
+ "@ckeditor/ckeditor5-ui": "48.2.0-alpha.5",
43
+ "@ckeditor/ckeditor5-utils": "48.2.0-alpha.5"
44
44
  },
45
45
  "files": [
46
46
  "dist",