@ckeditor/ckeditor5-case-change 48.1.0-alpha.7 → 48.1.0-alpha.8

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 _0x570d57,Plugin as _0x2d75e1}from'@ckeditor/ckeditor5-core/dist/index.js';import{uid as _0x7c5039,Collection as _0x377ff1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{MenuBarMenuView as _0x5a5e4c,MenuBarMenuListView as _0x57efb6,MenuBarMenuListItemView as _0x422638,MenuBarMenuListItemButtonView as _0x549e45,createDropdown as _0x201917,addListToDropdown as _0x2af9d1,UIModel as _0x538635}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconCaseChange as _0x26fa84}from'@ckeditor/ckeditor5-icons/dist/index.js';class d extends _0x570d57{['_transformCallback'];constructor(_0x558411,_0x1b695f){super(_0x558411),this['_transformCallback']=_0x1b695f;}['execute'](){const _0xaf2e47=this['editor']['model'],_0x358877=Array['from'](this['_getAffectedRanges']()),_0x51ddb7=Array['from'](_0xaf2e47['document']['selection']['getRanges']());_0xaf2e47['change'](_0xb11094=>{for(const _0x5c8891 of _0x358877)this['_modifyContent'](_0x5c8891,_0xb11094);_0xb11094['setSelection'](_0x51ddb7);});}['refresh'](){for(const _0x497a27 of this['_getAffectedRanges']())for(const _0x5489db of _0x497a27)if(_0x5489db['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0x38abfa=this['editor']['model'],_0x564c28=_0x38abfa['document']['selection'];if(_0x564c28['isCollapsed']){const _0x5c0680=this['_findAncestorTextBlock'](_0x564c28['getFirstPosition']()['parent']);return _0x5c0680?[_0x38abfa['createRangeIn'](_0x5c0680)]:[];}return _0x564c28['getRanges']();}['_modifyContent'](_0xfb03e3,_0x486699){for(const _0x241b21 of this['_getElementsAllowingText'](_0xfb03e3)){const _0x236433=this['_getElementTextContent'](_0x241b21),_0x5d2060=this['_transformCallback'](_0x236433);for(const _0x3a9e32 of this['_getTextNodesRangeLimited'](_0x241b21,_0xfb03e3))this['_replaceTextNodeData'](_0x3a9e32,_0x5d2060,_0x486699);}}['_findAncestorTextBlock'](_0x501944){const _0x141c6d=this['editor']['model']['schema'];if(_0x501944['is']('element')&&_0x141c6d['checkChild'](_0x501944,'$text'))return _0x501944;const _0x4b448c=_0x501944['parent'];return!_0x4b448c||_0x141c6d['isLimit'](_0x501944)?null:this['_findAncestorTextBlock'](_0x4b448c);}*['_getElementsAllowingText'](_0x4953e7){const _0x2d7807=new Set();for(const {item:_0xbceceb}of _0x4953e7['getWalker']()){const _0x3a3e0a=this['_findAncestorTextBlock'](_0xbceceb);_0x3a3e0a&&!_0x2d7807['has'](_0x3a3e0a)&&(_0x2d7807['add'](_0x3a3e0a),yield _0x3a3e0a);}}['_getElementTextContent'](_0x4228f5){return Array['from'](_0x4228f5['getChildren']())['reduce']((_0x7222fb,_0x50c2e2)=>_0x7222fb+(_0x50c2e2['is']('$text')?_0x50c2e2['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x2a84d9,_0x475774){const _0x320df1=_0x475774['getIntersection'](this['editor']['model']['createRangeIn'](_0x2a84d9));if(_0x320df1){for(const _0x3f6a00 of _0x320df1['getItems']())_0x3f6a00['is']('$textProxy')&&_0x3f6a00['parent']==_0x2a84d9&&(yield _0x3f6a00);}}['_replaceTextNodeData'](_0x43be6e,_0x354cea,_0x852225){const _0x40f185=_0x354cea['substring'](_0x43be6e['startOffset'],_0x43be6e['endOffset']);if(_0x40f185===_0x43be6e['data'])return;const _0x205adc=_0x43be6e['getAttributes']();this['editor']['model']['insertContent'](_0x852225['createText'](_0x40f185,_0x205adc),_0x852225['createSelection'](_0x852225['createRangeOn'](_0x43be6e)));}}function w(_0x2376fd,_0x2faee9,..._0x4b6cea){const t=_0x2376fd['t'];switch(_0x2faee9){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',..._0x4b6cea);default:return _0x2faee9;}}class g extends _0x2d75e1{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1aa139=this['editor'],_0x116bae=_0x1aa139['locale']['contentLanguage'],_0x4916fd=function(_0x2358ef=[]){return'function'==typeof _0x2358ef?_0x2358ef:(_0x441e58,{wordIndex:_0x43607d})=>_0x43607d>0x0&&_0x2358ef['includes'](_0x441e58);}(_0x1aa139['config']['get']('caseChange.titleCase.excludeWords')),_0x44d2f6={'changeCaseUpper':new d(_0x1aa139,_0x22875d=>_0x22875d['toLocaleUpperCase'](_0x116bae)),'changeCaseLower':new d(_0x1aa139,_0x1b5913=>_0x1b5913['toLocaleLowerCase'](_0x116bae)),'changeCaseTitle':new d(_0x1aa139,_0x11dc0b=>function(_0x850512,_0x55256d,_0x29957f){return function(_0x3f5e2d,_0x50a906){let _0x556e3d='',_0xe42f3f=0x0,_0x387740=0x0;for(const _0x72eedd of _0x3f5e2d['matchAll'](/ +/g)){const _0x8f627c=_0x72eedd['index'],_0x35ea72=_0x3f5e2d['substring'](_0xe42f3f,_0x8f627c);_0x35ea72['length']&&(_0x556e3d+=_0x50a906(_0x35ea72,_0xe42f3f,_0x387740++)),_0x556e3d+=_0x72eedd[0x0],_0xe42f3f=_0x8f627c+_0x72eedd[0x0]['length'];}const _0x31da0d=_0x3f5e2d['substring'](_0xe42f3f);return _0x31da0d['length']&&(_0x556e3d+=_0x50a906(_0x31da0d,_0xe42f3f,_0x387740)),_0x556e3d;}(_0x850512,(_0x25ddb8,_0x559c4c,_0x25bbb1)=>{const _0x268cb0=_0x25ddb8['toLocaleLowerCase'](_0x29957f);return _0x55256d(_0x268cb0,{'charOffset':_0x559c4c,'wordIndex':_0x25bbb1,'blockText':_0x850512})?_0x268cb0:_0x268cb0['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x18436a=>_0x18436a['toLocaleUpperCase'](_0x29957f));});}(_0x11dc0b,_0x4916fd,_0x116bae))};for(const [_0xb4a4a8,_0x129e54]of Object['entries'](_0x44d2f6))_0x1aa139['commands']['add'](_0xb4a4a8,_0x129e54),_0x129e54['on']('execute',()=>{this['_announceCaseChangeOperation'](_0xb4a4a8);});this['listenTo'](_0x1aa139['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x1aa139['keystrokes']['set']('shift+f3',(_0x4a6e42,_0x13b4c8)=>{const _0x52aea4=m(this['editor']['locale']),_0x337b13=_0x52aea4[this['_currentCommandIndex']%_0x52aea4['length']]['commandName'];_0x1aa139['execute'](_0x337b13),this['_currentCommandIndex']++,_0x13b4c8();});}['afterInit'](){!async function(_0xff2546){const _0x4f8ca9=_0x3a5e97([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]),_0x447f02=0x334129cd,_0x4528aa=0x3346a015^_0x447f02,_0x3245f2=window[_0x3a5e97([0x44,0x61,0x74,0x65])][_0x3a5e97([0x6e,0x6f,0x77])](),_0x1666a9=_0xff2546[_0x3a5e97([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x443659=new window[(_0x3a5e97([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29d59b=>{_0x1666a9[_0x3a5e97([0x6f,0x6e,0x63,0x65])](_0x3a5e97([0x72,0x65,0x61,0x64,0x79]),_0x29d59b);}),_0x3d92f8={[_0x3a5e97([0x6b,0x74,0x79])]:_0x3a5e97([0x45,0x43]),[_0x3a5e97([0x75,0x73,0x65])]:_0x3a5e97([0x73,0x69,0x67]),[_0x3a5e97([0x63,0x72,0x76])]:_0x3a5e97([0x50,0x2d,0x32,0x35,0x36]),[_0x3a5e97([0x78])]:_0x3a5e97([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]),[_0x3a5e97([0x79])]:_0x3a5e97([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]),[_0x3a5e97([0x61,0x6c,0x67])]:_0x3a5e97([0x45,0x53,0x32,0x35,0x36])},_0x39e2c0=_0x1666a9[_0x3a5e97([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3a5e97([0x67,0x65,0x74])](_0x3a5e97([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4627f7(){let _0x4c9618,_0x2b956f=null,_0x1bc0e0=null;try{if(_0x39e2c0==_0x3a5e97([0x47,0x50,0x4c]))return _0x3a5e97([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c9618=_0x23df4d(),!_0x4c9618)return _0x3a5e97([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c9618[_0x3a5e97([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1bc0e0=_0x180e7e(_0x4c9618[_0x3a5e97([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c9618[_0x3a5e97([0x6a,0x74,0x69])])),await _0x3a4185()?_0x59e86a()?_0x522203()?_0x3a5e97([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x507955()?(_0x4c9618[_0x3a5e97([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3a5e97([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2b956f=_0x2c55b8(_0x3a5e97([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x32ba16()):_0x3a5e97([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3a5e97([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3a5e97([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3a5e97([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x522203(){const _0x5df65c=[_0x3a5e97([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3a5e97([0x74,0x72,0x69,0x61,0x6c])][_0x3a5e97([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c9618[_0x3a5e97([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3245f2/0x3e8:0xe10*_0x4528aa;return _0x4c9618[_0x3a5e97([0x65,0x78,0x70])]<_0x5df65c;}function _0x59e86a(){const _0x13765e=_0x4c9618[_0x3a5e97([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x13765e&&(!!_0x13765e[_0x3a5e97([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a5e97([0x2a]))||(!!_0x13765e[_0x3a5e97([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a5e97([0x43,0x43]))||!!_0x13765e[_0x3a5e97([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a5e97([0x50,0x50]))));}function _0x507955(){const _0x2206b3=_0x4c9618[_0x3a5e97([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2206b3||0x0==_0x2206b3[_0x3a5e97([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3276dc}=new URL(window[_0x3a5e97([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2206b3[_0x3a5e97([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3276dc))return!0x0;const _0x32948b=_0x3276dc[_0x3a5e97([0x73,0x70,0x6c,0x69,0x74])](_0x3a5e97([0x2e]));return _0x2206b3[_0x3a5e97([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d422d=>_0x5d422d[_0x3a5e97([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a5e97([0x2a])))[_0x3a5e97([0x6d,0x61,0x70])](_0x229be3=>_0x229be3[_0x3a5e97([0x73,0x70,0x6c,0x69,0x74])](_0x3a5e97([0x2e])))[_0x3a5e97([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4268ff=>_0x4268ff[_0x3a5e97([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x32948b[_0x3a5e97([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3a5e97([0x6d,0x61,0x70])](_0x519f1b=>Array(_0x32948b[_0x3a5e97([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x519f1b[_0x3a5e97([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3a5e97([0x66,0x69,0x6c,0x6c])](_0x519f1b[0x0]===_0x3a5e97([0x2a])?_0x3a5e97([0x2a]):'')[_0x3a5e97([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x519f1b))[_0x3a5e97([0x73,0x6f,0x6d,0x65])](_0x2c096e=>_0x32948b[_0x3a5e97([0x65,0x76,0x65,0x72,0x79])]((_0x42808d,_0x1ea50d)=>_0x2c096e[_0x1ea50d]===_0x42808d||_0x2c096e[_0x1ea50d]===_0x3a5e97([0x2a])));}function _0x32ba16(){return _0x2b956f&&_0x1bc0e0?new window[(_0x3a5e97([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18b615,_0x165e4c)=>{_0x2b956f[_0x3a5e97([0x74,0x68,0x65,0x6e])](_0x18b615,_0x165e4c),_0x1bc0e0[_0x3a5e97([0x74,0x68,0x65,0x6e])](_0x5e7481=>{_0x5e7481!=_0x3a5e97([0x56,0x61,0x6c,0x69,0x64])&&_0x18b615(_0x5e7481);},_0x165e4c);}):_0x2b956f||_0x1bc0e0||_0x3a5e97([0x56,0x61,0x6c,0x69,0x64]);}}function _0x180e7e(_0x441673,_0x1d21ad){return new window[(_0x3a5e97([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x505e0a=>{if(_0xb3723d())return _0x505e0a(_0x3a5e97([0x56,0x61,0x6c,0x69,0x64]));_0xe5bd9e(),_0x1666a9[_0x3a5e97([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3a5e97([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x10468b=!0x1;const _0x897962=_0x7c5039();function _0x22d068(_0x5584b0){return!!_0x5584b0&&(typeof _0x5584b0===_0x3a5e97([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5584b0===_0x3a5e97([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5584b0[_0x3a5e97([0x74,0x68,0x65,0x6e])]===_0x3a5e97([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5584b0[_0x3a5e97([0x63,0x61,0x74,0x63,0x68])]===_0x3a5e97([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x599d0(_0x452236){_0x2bc1ef(_0x452236)[_0x3a5e97([0x74,0x68,0x65,0x6e])](_0x526142=>{if(!_0x526142||_0x526142[_0x3a5e97([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3a5e97([0x6f,0x6b]))return _0x3a5e97([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x245522(_0x2e0dd4(_0x897962+_0x1d21ad))!=_0x526142[_0x3a5e97([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3a5e97([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3a5e97([0x56,0x61,0x6c,0x69,0x64]);})[_0x3a5e97([0x74,0x68,0x65,0x6e])](_0x40146a=>(_0x49a967(),_0x40146a),()=>{const _0x47738c=_0x38bf6c();return null==_0x47738c?(_0x49a967(),_0x3a5e97([0x56,0x61,0x6c,0x69,0x64])):_0x3a5e97(_0x3245f2-_0x47738c>(0x174dadcd^_0x447f02)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3a5e97([0x74,0x68,0x65,0x6e])](_0x505e0a)[_0x3a5e97([0x63,0x61,0x74,0x63,0x68])](()=>{_0x505e0a(_0x3a5e97([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x42154a=0x3377c74d^_0x447f02;function _0x49a967(){const _0x27a4e1=_0x3a5e97([0x6c,0x6c,0x63,0x74,0x2d])+_0x245522(_0x2e0dd4(_0x441673)),_0x431e42=_0x2dc901(_0x245522(window[_0x3a5e97([0x4d,0x61,0x74,0x68])][_0x3a5e97([0x63,0x65,0x69,0x6c])](_0x3245f2/_0x42154a)));window[_0x3a5e97([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3a5e97([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27a4e1,_0x431e42);}function _0x38bf6c(){const _0x5e495d=_0x3a5e97([0x6c,0x6c,0x63,0x74,0x2d])+_0x245522(_0x2e0dd4(_0x441673)),_0x58e201=window[_0x3a5e97([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3a5e97([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e495d);return _0x58e201?window[_0x3a5e97([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2dc901(_0x58e201),0x10)*_0x42154a:null;}function _0x2bc1ef(_0x4f7d15){return new window[(_0x3a5e97([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f862e,_0x5e1311)=>{_0x4f7d15[_0x3a5e97([0x74,0x68,0x65,0x6e])](_0x1f862e,_0x5e1311),window[_0x3a5e97([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5e1311,0x3340fd0d^_0x447f02);});}}_0x1666a9[_0x3a5e97([0x6f,0x6e])](_0x3a5e97([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x445bdc,_0xbcc635)=>{if(_0xbcc635[0x0]!=_0x441673)return _0x505e0a(_0x3a5e97([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xbcc635[0x1]={..._0xbcc635[0x1],[_0x3a5e97([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x897962};},{[_0x3a5e97([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3a5e97([0x68,0x69,0x67,0x68])}),_0x1666a9[_0x3a5e97([0x6f,0x6e])](_0x3a5e97([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x43ab76=>{_0x22d068(_0x43ab76[_0x3a5e97([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x10468b=!0x0,_0x599d0(_0x43ab76[_0x3a5e97([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3a5e97([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3a5e97([0x6c,0x6f,0x77])}),_0x443659[_0x3a5e97([0x74,0x68,0x65,0x6e])](()=>{_0x10468b||_0x505e0a(_0x3a5e97([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xb3723d(){return _0x1666a9[_0x3a5e97([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a5e97([0x76,0x69,0x65,0x77])][_0x3a5e97([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3a5e97([0x61,0x75,0x74,0x6f]);}function _0xe5bd9e(){_0x1666a9[_0x3a5e97([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a5e97([0x76,0x69,0x65,0x77])][_0x3a5e97([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3a5e97([0x61,0x75,0x74,0x6f]);}}function _0x2c55b8(_0xb285){const _0x1791bb=[new window[(_0x3a5e97([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x513bad=>setTimeout(_0x513bad,0x33481701^_0x447f02)),_0x443659[_0x3a5e97([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3a5e97([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3eb6c5=>{let _0x5e2138=0x0;_0x1666a9[_0x3a5e97([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a5e97([0x6f,0x6e])](_0x3a5e97([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1207c7,_0x3f7b7d)=>{_0x3f7b7d[0x0][_0x3a5e97([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5e2138++,_0x5e2138==(0x33412c25^_0x447f02)&&(_0x3eb6c5(),_0x1207c7[_0x3a5e97([0x6f,0x66,0x66])]());});}))];return window[_0x3a5e97([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3a5e97([0x72,0x61,0x63,0x65])](_0x1791bb)[_0x3a5e97([0x74,0x68,0x65,0x6e])](()=>_0xb285);}async function _0x512a9e(){await _0x443659,_0x1666a9[_0x3a5e97([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a5e97([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xa02bd0,_0x1666a9[_0x3a5e97([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a5e97([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xa02bd0,_0x1666a9[_0x3a5e97([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3a5e97([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1dd6e8(_0x3ade44){const _0x37cfe3=_0x52e7f2();_0x1666a9[_0x37cfe3]=_0x3a5e97([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3ade44,_0x3ade44!=_0x3a5e97([0x56,0x61,0x6c,0x69,0x64])&&_0x512a9e();}function _0x52e7f2(){const _0x492fea=window[_0x3a5e97([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3a5e97([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3a5e97([0x6e,0x6f,0x77])]())[_0x3a5e97([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3a5e97([0x2e]),'');let _0xea4593=_0x3a5e97([0x45]);for(let _0x30060a=0x0;_0x30060a<_0x492fea[_0x3a5e97([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30060a+=0x2){let _0x34ec3f=window[_0x3a5e97([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x492fea[_0x3a5e97([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30060a,_0x30060a+0x2));_0x34ec3f>=_0x4f8ca9[_0x3a5e97([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x34ec3f-=_0x4f8ca9[_0x3a5e97([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xea4593+=_0x4f8ca9[_0x34ec3f];}return _0xea4593;}function _0x23df4d(){const _0x1324c1=_0x39e2c0[_0x3a5e97([0x73,0x70,0x6c,0x69,0x74])](_0x3a5e97([0x2e]));if(0x3!=_0x1324c1[_0x3a5e97([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x561232(_0x1324c1[0x1]);function _0x561232(_0x56fa23){const _0x393b9b=_0x2aa663(_0x56fa23);return _0x393b9b&&_0x353969()?_0x393b9b:null;function _0x353969(){const _0x467eff=_0x393b9b[_0x3a5e97([0x6a,0x74,0x69])],_0x474005=window[_0x3a5e97([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x467eff[_0x3a5e97([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x467eff[_0x3a5e97([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x21d77f={..._0x393b9b,[_0x3a5e97([0x6a,0x74,0x69])]:_0x467eff[_0x3a5e97([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x467eff[_0x3a5e97([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x21d77f[_0x3a5e97([0x76,0x63])],_0x2e0dd4(_0x21d77f)==_0x474005;}}}async function _0x3a4185(){let _0x3e2ef0=!0x0;try{const _0x42815e=_0x39e2c0[_0x3a5e97([0x73,0x70,0x6c,0x69,0x74])](_0x3a5e97([0x2e])),[_0x2f46cc,_0x259cca,_0x580c19]=_0x42815e;return _0x1ac51f(_0x2f46cc),await _0x554c88(_0x2f46cc,_0x259cca,_0x580c19),_0x3e2ef0;}catch{return!0x1;}function _0x1ac51f(_0x67b637){const _0x5e61b8=_0x2aa663(_0x67b637);_0x5e61b8&&_0x5e61b8[_0x3a5e97([0x61,0x6c,0x67])]==_0x3a5e97([0x45,0x53,0x32,0x35,0x36])||(_0x3e2ef0=!0x1);}async function _0x554c88(_0x1e43a5,_0x7c9140,_0xbb120d){const _0x4422cd=window[_0x3a5e97([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3a5e97([0x66,0x72,0x6f,0x6d])](_0x17c7c0(_0xbb120d),_0x49ee82=>_0x49ee82[_0x3a5e97([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x21d709=new window[(_0x3a5e97([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3a5e97([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1e43a5+_0x3a5e97([0x2e])+_0x7c9140),_0x7ada75=window[_0x3a5e97([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3a5e97([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x7ada75)return;const _0x2cbc2f=await _0x7ada75[_0x3a5e97([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3a5e97([0x6a,0x77,0x6b]),_0x3d92f8,{[_0x3a5e97([0x6e,0x61,0x6d,0x65])]:_0x3a5e97([0x45,0x43,0x44,0x53,0x41]),[_0x3a5e97([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3a5e97([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3a5e97([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x7ada75[_0x3a5e97([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3a5e97([0x6e,0x61,0x6d,0x65])]:_0x3a5e97([0x45,0x43,0x44,0x53,0x41]),[_0x3a5e97([0x68,0x61,0x73,0x68])]:{[_0x3a5e97([0x6e,0x61,0x6d,0x65])]:_0x3a5e97([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2cbc2f,_0x4422cd,_0x21d709)||(_0x3e2ef0=!0x1);}}function _0x2aa663(_0xe4a716){return _0xe4a716[_0x3a5e97([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3a5e97([0x65,0x79]))?JSON[_0x3a5e97([0x70,0x61,0x72,0x73,0x65])](_0x17c7c0(_0xe4a716)):null;}function _0x17c7c0(_0xb63876){return window[_0x3a5e97([0x61,0x74,0x6f,0x62])](_0xb63876[_0x3a5e97([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3a5e97([0x2b]))[_0x3a5e97([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3a5e97([0x2f])));}function _0x2e0dd4(_0x17e289){let _0x10fb90=0x1505;function _0x5b3d1d(_0xfbbd90){for(let _0x23a797=0x0;_0x23a797<_0xfbbd90[_0x3a5e97([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23a797++){const _0x35b6d3=_0xfbbd90[_0x3a5e97([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x23a797);_0x10fb90=(_0x10fb90<<0x5)+_0x10fb90+_0x35b6d3,_0x10fb90&=_0x10fb90;}}function _0x1efbc1(_0x3d03f1){Array[_0x3a5e97([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3d03f1)?_0x3d03f1[_0x3a5e97([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1efbc1):_0x3d03f1&&typeof _0x3d03f1==_0x3a5e97([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3a5e97([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3d03f1)[_0x3a5e97([0x73,0x6f,0x72,0x74])]()[_0x3a5e97([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xaaf0a7,_0x3c9a4e])=>{_0x5b3d1d(_0xaaf0a7),_0x1efbc1(_0x3c9a4e);}):_0x5b3d1d(window[_0x3a5e97([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3d03f1));}return _0x1efbc1(_0x17e289),_0x10fb90>>>0x0;}function _0x245522(_0x5f47a4){return _0x5f47a4[_0x3a5e97([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3a5e97([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3a5e97([0x30]));}function _0x2dc901(_0x193625){return _0x193625[_0x3a5e97([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3a5e97([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3a5e97([0x6a,0x6f,0x69,0x6e])]('');}function _0xa02bd0(){}function _0x3a5e97(_0x1acf3d){return _0x1acf3d['map'](_0x325d0f=>String['fromCharCode'](_0x325d0f))['join']('');}_0x1dd6e8(await _0x4627f7());}(this);}['_announceCaseChangeOperation'](_0x17bfc1){const {ui:_0x981340,locale:_0x54998b}=this['editor'],_0x3bb931=m(_0x54998b)['find'](_0x508b2d=>_0x508b2d['commandName']===_0x17bfc1)['label']['toLowerCase']();_0x981340['ariaLiveAnnouncer']['announce'](w(_0x54998b,'Changed\x20case\x20to\x20%0',_0x3bb931));}}function m(_0x2fca1c){return[{'label':w(_0x2fca1c,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':w(_0x2fca1c,'lowercase'),'commandName':'changeCaseLower'},{'label':w(_0x2fca1c,'Title\x20Case'),'commandName':'changeCaseTitle'}];}class C extends _0x2d75e1{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x23319d=this['editor'];this['_registerComponents'](),_0x23319d['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':w(_0x23319d['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1059eb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x33ec76;for(const _0x6d55f4 in _0x1059eb){const _0x3c48f6=_0x6d55f4,_0x53a70d=_0x1059eb[_0x3c48f6];if('caseChangeLicenseKeyValid'==_0x53a70d||'caseChangeLicenseKeyInvalid'==_0x53a70d||'caseChangeLicenseKeyExpired'==_0x53a70d||'caseChangeLicenseKeyDomainLimit'==_0x53a70d||'caseChangeLicenseKeyNotAllowed'==_0x53a70d||'caseChangeLicenseKeyEvaluationLimit'==_0x53a70d||'caseChangeLicenseKeyUsageLimit'==_0x53a70d){delete _0x1059eb[_0x3c48f6],_0x33ec76=_0x53a70d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x33ec76&&_0x1059eb['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x33ec76&&_0x1059eb['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x33ec76&&_0x1059eb['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x33ec76&&_0x1059eb['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x33ec76&&_0x1059eb['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x33ec76&&_0x1059eb['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x18f022=this['editor'],{itemDefinitions:_0x9f701c,commands:_0x427279}=this['_getListItemDefinitionsAndCommands']();_0x18f022['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x9f701c,_0x427279)),_0x18f022['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x9f701c,_0x427279));}['_createMenuBarMenuView'](_0x2eb55a,_0x340690){const _0x36349c=this['editor'],_0x714149=_0x36349c['locale'],_0x562799=new _0x5a5e4c(_0x714149),_0x39bdab=new _0x57efb6(_0x714149);_0x39bdab['set']({'ariaLabel':w(_0x714149,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x562799['buttonView']),_0x562799['bind']('isEnabled')['toMany'](_0x340690,'isEnabled',(..._0x51a0fe)=>_0x51a0fe['some'](_0xf5f3c3=>_0xf5f3c3));for(const _0x491dc1 of _0x2eb55a){const _0x38508b=new _0x422638(_0x714149,_0x562799),_0x3b33d0=new _0x549e45(_0x714149);_0x3b33d0['delegate']('execute')['to'](_0x562799),_0x3b33d0['bind'](...Object['keys'](_0x491dc1['model']))['to'](_0x491dc1['model']),_0x3b33d0['on']('execute',()=>{_0x36349c['execute'](_0x491dc1['model']['commandName']),_0x36349c['editing']['view']['focus']();}),_0x38508b['children']['add'](_0x3b33d0),_0x39bdab['items']['add'](_0x38508b);}return _0x562799['panelView']['children']['add'](_0x39bdab),_0x562799;}['_createDropdownView'](_0x383eb5,_0x23b579){const _0x3b4fa4=this['editor'],_0x23020e=_0x201917(_0x3b4fa4['locale']);return this['_setButtonProperties'](_0x23020e['buttonView']),_0x23020e['buttonView']['set']({'tooltip':!0x0}),_0x23020e['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0x2af9d1(_0x23020e,_0x383eb5,{'ariaLabel':w(_0x3b4fa4['locale'],'Case\x20change'),'role':'menu'}),_0x23020e['bind']('isEnabled')['toMany'](_0x23b579,'isEnabled',(..._0x2efd8d)=>_0x2efd8d['some'](_0x153e7e=>_0x153e7e)),this['listenTo'](_0x23020e,'execute',_0x33887a=>{_0x3b4fa4['execute'](_0x33887a['source']['commandName']),_0x3b4fa4['editing']['view']['focus']();}),_0x23020e;}['_setButtonProperties'](_0x5672e0){const _0x620031=this['editor'];_0x5672e0['set']({'label':w(_0x620031['locale'],'Case\x20change'),'icon':_0x26fa84,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x279e96=new _0x377ff1(),_0x213858=[];for(const _0x5c8cc9 of m(this['editor']['locale'])){const _0x1787b0=this['editor']['commands']['get'](_0x5c8cc9['commandName']),_0x50c71d=new _0x538635({'commandName':_0x5c8cc9['commandName'],'label':_0x5c8cc9['label'],'role':'menuitemradio','withText':!0x0});_0x50c71d['bind']('isEnabled')['to'](_0x1787b0,'isEnabled'),_0x279e96['add']({'type':'button','model':_0x50c71d}),_0x213858['push'](_0x1787b0);}return{'itemDefinitions':_0x279e96,'commands':_0x213858};}}class y extends _0x2d75e1{static get['requires'](){return[g,C];}static get['pluginName'](){return'CaseChange';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{y as CaseChange,d as CaseChangeCommand,g as CaseChangeEditing,C as CaseChangeUI};
23
+ import{Command as _0x429def,Plugin as _0x5a581a}from'@ckeditor/ckeditor5-core/dist/index.js';import{uid as _0x46c776,Collection as _0xe034cc}from'@ckeditor/ckeditor5-utils/dist/index.js';import{MenuBarMenuView as _0x36f6b0,MenuBarMenuListView as _0x281e57,MenuBarMenuListItemView as _0x10095,MenuBarMenuListItemButtonView as _0x341275,createDropdown as _0x4adaa3,addListToDropdown as _0x1c35a1,UIModel as _0x69c941}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconCaseChange as _0x5d95a5}from'@ckeditor/ckeditor5-icons/dist/index.js';class d extends _0x429def{['_transformCallback'];constructor(_0x542c36,_0x42528b){super(_0x542c36),this['_transformCallback']=_0x42528b;}['execute'](){const _0x5c68b6=this['editor']['model'],_0x5b75a2=Array['from'](this['_getAffectedRanges']()),_0x3759ac=Array['from'](_0x5c68b6['document']['selection']['getRanges']());_0x5c68b6['change'](_0x16cb40=>{for(const _0x5ed027 of _0x5b75a2)this['_modifyContent'](_0x5ed027,_0x16cb40);_0x16cb40['setSelection'](_0x3759ac);});}['refresh'](){for(const _0x296f56 of this['_getAffectedRanges']())for(const _0x4f467d of _0x296f56)if(_0x4f467d['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0x281873=this['editor']['model'],_0x4205b7=_0x281873['document']['selection'];if(_0x4205b7['isCollapsed']){const _0x535f4f=this['_findAncestorTextBlock'](_0x4205b7['getFirstPosition']()['parent']);return _0x535f4f?[_0x281873['createRangeIn'](_0x535f4f)]:[];}return _0x4205b7['getRanges']();}['_modifyContent'](_0x4f6e13,_0x1565f4){for(const _0xd2f1c5 of this['_getElementsAllowingText'](_0x4f6e13)){const _0x4ee674=this['_getElementTextContent'](_0xd2f1c5),_0x1a4138=this['_transformCallback'](_0x4ee674);for(const _0x3065a7 of this['_getTextNodesRangeLimited'](_0xd2f1c5,_0x4f6e13))this['_replaceTextNodeData'](_0x3065a7,_0x1a4138,_0x1565f4);}}['_findAncestorTextBlock'](_0x275874){const _0x2c1c42=this['editor']['model']['schema'];if(_0x275874['is']('element')&&_0x2c1c42['checkChild'](_0x275874,'$text'))return _0x275874;const _0x3ab48c=_0x275874['parent'];return!_0x3ab48c||_0x2c1c42['isLimit'](_0x275874)?null:this['_findAncestorTextBlock'](_0x3ab48c);}*['_getElementsAllowingText'](_0x4f734e){const _0x325f49=new Set();for(const {item:_0x39af7b}of _0x4f734e['getWalker']()){const _0x547d64=this['_findAncestorTextBlock'](_0x39af7b);_0x547d64&&!_0x325f49['has'](_0x547d64)&&(_0x325f49['add'](_0x547d64),yield _0x547d64);}}['_getElementTextContent'](_0x313001){return Array['from'](_0x313001['getChildren']())['reduce']((_0x4f9746,_0x274622)=>_0x4f9746+(_0x274622['is']('$text')?_0x274622['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x32749b,_0x47d3bb){const _0x428305=_0x47d3bb['getIntersection'](this['editor']['model']['createRangeIn'](_0x32749b));if(_0x428305){for(const _0x3e6f33 of _0x428305['getItems']())_0x3e6f33['is']('$textProxy')&&_0x3e6f33['parent']==_0x32749b&&(yield _0x3e6f33);}}['_replaceTextNodeData'](_0x21dd3c,_0x180830,_0x58fb30){const _0x3a8737=_0x180830['substring'](_0x21dd3c['startOffset'],_0x21dd3c['endOffset']);if(_0x3a8737===_0x21dd3c['data'])return;const _0x126192=_0x21dd3c['getAttributes']();this['editor']['model']['insertContent'](_0x58fb30['createText'](_0x3a8737,_0x126192),_0x58fb30['createSelection'](_0x58fb30['createRangeOn'](_0x21dd3c)));}}function w(_0x2e9b0c,_0x467291,..._0x218aaa){const t=_0x2e9b0c['t'];switch(_0x467291){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',..._0x218aaa);default:return _0x467291;}}class g extends _0x5a581a{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4f5ce4=this['editor'],_0x2bdac4=_0x4f5ce4['locale']['contentLanguage'],_0x31c04b=function(_0x4bc138=[]){return'function'==typeof _0x4bc138?_0x4bc138:(_0x1db840,{wordIndex:_0x2e6b05})=>_0x2e6b05>0x0&&_0x4bc138['includes'](_0x1db840);}(_0x4f5ce4['config']['get']('caseChange.titleCase.excludeWords')),_0x309f10={'changeCaseUpper':new d(_0x4f5ce4,_0x5b4231=>_0x5b4231['toLocaleUpperCase'](_0x2bdac4)),'changeCaseLower':new d(_0x4f5ce4,_0x23f056=>_0x23f056['toLocaleLowerCase'](_0x2bdac4)),'changeCaseTitle':new d(_0x4f5ce4,_0x3266cf=>function(_0x448942,_0x239549,_0x472da1){return function(_0x48763e,_0x5025e0){let _0x5503fb='',_0x15f661=0x0,_0x5db8d3=0x0;for(const _0x42e865 of _0x48763e['matchAll'](/ +/g)){const _0x4a8d3a=_0x42e865['index'],_0x159c19=_0x48763e['substring'](_0x15f661,_0x4a8d3a);_0x159c19['length']&&(_0x5503fb+=_0x5025e0(_0x159c19,_0x15f661,_0x5db8d3++)),_0x5503fb+=_0x42e865[0x0],_0x15f661=_0x4a8d3a+_0x42e865[0x0]['length'];}const _0x1ce5b7=_0x48763e['substring'](_0x15f661);return _0x1ce5b7['length']&&(_0x5503fb+=_0x5025e0(_0x1ce5b7,_0x15f661,_0x5db8d3)),_0x5503fb;}(_0x448942,(_0x34a0a6,_0x41c40f,_0x2af795)=>{const _0xfa4c3f=_0x34a0a6['toLocaleLowerCase'](_0x472da1);return _0x239549(_0xfa4c3f,{'charOffset':_0x41c40f,'wordIndex':_0x2af795,'blockText':_0x448942})?_0xfa4c3f:_0xfa4c3f['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x252a22=>_0x252a22['toLocaleUpperCase'](_0x472da1));});}(_0x3266cf,_0x31c04b,_0x2bdac4))};for(const [_0x40cbe3,_0x145547]of Object['entries'](_0x309f10))_0x4f5ce4['commands']['add'](_0x40cbe3,_0x145547),_0x145547['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x40cbe3);});this['listenTo'](_0x4f5ce4['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x4f5ce4['keystrokes']['set']('shift+f3',(_0x51ffa4,_0x24a3fd)=>{const _0xc64f15=m(this['editor']['locale']),_0x1d1ff4=_0xc64f15[this['_currentCommandIndex']%_0xc64f15['length']]['commandName'];_0x4f5ce4['execute'](_0x1d1ff4),this['_currentCommandIndex']++,_0x24a3fd();});}['afterInit'](){!async function(_0x3d777c){const _0x11c1b=_0x2348b4([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]),_0x320bdc=0x334129cd,_0x471df3=0x3346a03d^_0x320bdc,_0x6322=window[_0x2348b4([0x44,0x61,0x74,0x65])][_0x2348b4([0x6e,0x6f,0x77])](),_0x1a8227=_0x3d777c[_0x2348b4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x26bdaf=new window[(_0x2348b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5249fe=>{_0x1a8227[_0x2348b4([0x6f,0x6e,0x63,0x65])](_0x2348b4([0x72,0x65,0x61,0x64,0x79]),_0x5249fe);}),_0x35bae1={[_0x2348b4([0x6b,0x74,0x79])]:_0x2348b4([0x45,0x43]),[_0x2348b4([0x75,0x73,0x65])]:_0x2348b4([0x73,0x69,0x67]),[_0x2348b4([0x63,0x72,0x76])]:_0x2348b4([0x50,0x2d,0x32,0x35,0x36]),[_0x2348b4([0x78])]:_0x2348b4([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]),[_0x2348b4([0x79])]:_0x2348b4([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]),[_0x2348b4([0x61,0x6c,0x67])]:_0x2348b4([0x45,0x53,0x32,0x35,0x36])},_0x5ee3df=_0x1a8227[_0x2348b4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2348b4([0x67,0x65,0x74])](_0x2348b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x29b5a0(){let _0x219541,_0x1a79f5=null,_0x1e2864=null;try{if(_0x5ee3df==_0x2348b4([0x47,0x50,0x4c]))return _0x2348b4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x219541=_0x5a6e7e(),!_0x219541)return _0x2348b4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x219541[_0x2348b4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e2864=_0x400278(_0x219541[_0x2348b4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x219541[_0x2348b4([0x6a,0x74,0x69])])),await _0x3a7a22()?_0x11d9b6()?_0x52306d()?_0x2348b4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x43d402()?(_0x219541[_0x2348b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2348b4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1a79f5=_0x3a2f1e(_0x2348b4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x391594()):_0x2348b4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2348b4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2348b4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2348b4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x52306d(){const _0x21ea9d=[_0x2348b4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2348b4([0x74,0x72,0x69,0x61,0x6c])][_0x2348b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x219541[_0x2348b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x6322/0x3e8:0xe10*_0x471df3;return _0x219541[_0x2348b4([0x65,0x78,0x70])]<_0x21ea9d;}function _0x11d9b6(){const _0x2ed1bb=_0x219541[_0x2348b4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2ed1bb&&(!!_0x2ed1bb[_0x2348b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2348b4([0x2a]))||(!!_0x2ed1bb[_0x2348b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2348b4([0x43,0x43]))||!!_0x2ed1bb[_0x2348b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2348b4([0x50,0x50]))));}function _0x43d402(){const _0x353ee0=_0x219541[_0x2348b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x353ee0||0x0==_0x353ee0[_0x2348b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xfc315a}=new URL(window[_0x2348b4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x353ee0[_0x2348b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfc315a))return!0x0;const _0x44c47c=_0xfc315a[_0x2348b4([0x73,0x70,0x6c,0x69,0x74])](_0x2348b4([0x2e]));return _0x353ee0[_0x2348b4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x45e73e=>_0x45e73e[_0x2348b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2348b4([0x2a])))[_0x2348b4([0x6d,0x61,0x70])](_0x4ce8b7=>_0x4ce8b7[_0x2348b4([0x73,0x70,0x6c,0x69,0x74])](_0x2348b4([0x2e])))[_0x2348b4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd502ad=>_0xd502ad[_0x2348b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x44c47c[_0x2348b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2348b4([0x6d,0x61,0x70])](_0x395805=>Array(_0x44c47c[_0x2348b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x395805[_0x2348b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2348b4([0x66,0x69,0x6c,0x6c])](_0x395805[0x0]===_0x2348b4([0x2a])?_0x2348b4([0x2a]):'')[_0x2348b4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x395805))[_0x2348b4([0x73,0x6f,0x6d,0x65])](_0x3b2fc9=>_0x44c47c[_0x2348b4([0x65,0x76,0x65,0x72,0x79])]((_0x584ef3,_0x47bdf3)=>_0x3b2fc9[_0x47bdf3]===_0x584ef3||_0x3b2fc9[_0x47bdf3]===_0x2348b4([0x2a])));}function _0x391594(){return _0x1a79f5&&_0x1e2864?new window[(_0x2348b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f7554,_0x1028f3)=>{_0x1a79f5[_0x2348b4([0x74,0x68,0x65,0x6e])](_0x4f7554,_0x1028f3),_0x1e2864[_0x2348b4([0x74,0x68,0x65,0x6e])](_0x204c8a=>{_0x204c8a!=_0x2348b4([0x56,0x61,0x6c,0x69,0x64])&&_0x4f7554(_0x204c8a);},_0x1028f3);}):_0x1a79f5||_0x1e2864||_0x2348b4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x400278(_0x4eb217,_0x4ffbe7){return new window[(_0x2348b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b89dc=>{if(_0x1af476())return _0x3b89dc(_0x2348b4([0x56,0x61,0x6c,0x69,0x64]));_0x11aaf8(),_0x1a8227[_0x2348b4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2348b4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3fed71=!0x1;const _0x543efa=_0x46c776();function _0x1da3f9(_0x49cb7e){return!!_0x49cb7e&&(typeof _0x49cb7e===_0x2348b4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x49cb7e===_0x2348b4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x49cb7e[_0x2348b4([0x74,0x68,0x65,0x6e])]===_0x2348b4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x49cb7e[_0x2348b4([0x63,0x61,0x74,0x63,0x68])]===_0x2348b4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x43abf4(_0x416174){_0x1a561c(_0x416174)[_0x2348b4([0x74,0x68,0x65,0x6e])](_0x2f57e7=>{if(!_0x2f57e7||_0x2f57e7[_0x2348b4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2348b4([0x6f,0x6b]))return _0x2348b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x34bd04(_0x446779(_0x543efa+_0x4ffbe7))!=_0x2f57e7[_0x2348b4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2348b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2348b4([0x56,0x61,0x6c,0x69,0x64]);})[_0x2348b4([0x74,0x68,0x65,0x6e])](_0x256642=>(_0x36f76f(),_0x256642),()=>{const _0x4b6813=_0xd6a295();return null==_0x4b6813?(_0x36f76f(),_0x2348b4([0x56,0x61,0x6c,0x69,0x64])):_0x2348b4(_0x6322-_0x4b6813>(0x174dadcd^_0x320bdc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2348b4([0x74,0x68,0x65,0x6e])](_0x3b89dc)[_0x2348b4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3b89dc(_0x2348b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x32455c=0x3377c74d^_0x320bdc;function _0x36f76f(){const _0x4f40d4=_0x2348b4([0x6c,0x6c,0x63,0x74,0x2d])+_0x34bd04(_0x446779(_0x4eb217)),_0x26dca0=_0x6dc96f(_0x34bd04(window[_0x2348b4([0x4d,0x61,0x74,0x68])][_0x2348b4([0x63,0x65,0x69,0x6c])](_0x6322/_0x32455c)));window[_0x2348b4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2348b4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f40d4,_0x26dca0);}function _0xd6a295(){const _0x54088a=_0x2348b4([0x6c,0x6c,0x63,0x74,0x2d])+_0x34bd04(_0x446779(_0x4eb217)),_0x12dad3=window[_0x2348b4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2348b4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54088a);return _0x12dad3?window[_0x2348b4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6dc96f(_0x12dad3),0x10)*_0x32455c:null;}function _0x1a561c(_0x5e86f5){return new window[(_0x2348b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x41b202,_0x53f21e)=>{_0x5e86f5[_0x2348b4([0x74,0x68,0x65,0x6e])](_0x41b202,_0x53f21e),window[_0x2348b4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x53f21e,0x3340fd0d^_0x320bdc);});}}_0x1a8227[_0x2348b4([0x6f,0x6e])](_0x2348b4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1a0fd7,_0xaad516)=>{if(_0xaad516[0x0]!=_0x4eb217)return _0x3b89dc(_0x2348b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xaad516[0x1]={..._0xaad516[0x1],[_0x2348b4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x543efa};},{[_0x2348b4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2348b4([0x68,0x69,0x67,0x68])}),_0x1a8227[_0x2348b4([0x6f,0x6e])](_0x2348b4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x165c8c=>{_0x1da3f9(_0x165c8c[_0x2348b4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3fed71=!0x0,_0x43abf4(_0x165c8c[_0x2348b4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2348b4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2348b4([0x6c,0x6f,0x77])}),_0x26bdaf[_0x2348b4([0x74,0x68,0x65,0x6e])](()=>{_0x3fed71||_0x3b89dc(_0x2348b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1af476(){return _0x1a8227[_0x2348b4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2348b4([0x76,0x69,0x65,0x77])][_0x2348b4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2348b4([0x61,0x75,0x74,0x6f]);}function _0x11aaf8(){_0x1a8227[_0x2348b4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2348b4([0x76,0x69,0x65,0x77])][_0x2348b4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2348b4([0x61,0x75,0x74,0x6f]);}}function _0x3a2f1e(_0x65648f){const _0xa26c51=[new window[(_0x2348b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36ff24=>setTimeout(_0x36ff24,0x33481701^_0x320bdc)),_0x26bdaf[_0x2348b4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2348b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xebd50d=>{let _0x367951=0x0;_0x1a8227[_0x2348b4([0x6d,0x6f,0x64,0x65,0x6c])][_0x2348b4([0x6f,0x6e])](_0x2348b4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3cabf7,_0x4b3adc)=>{_0x4b3adc[0x0][_0x2348b4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x367951++,_0x367951==(0x33412c25^_0x320bdc)&&(_0xebd50d(),_0x3cabf7[_0x2348b4([0x6f,0x66,0x66])]());});}))];return window[_0x2348b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2348b4([0x72,0x61,0x63,0x65])](_0xa26c51)[_0x2348b4([0x74,0x68,0x65,0x6e])](()=>_0x65648f);}async function _0x50f9d5(){await _0x26bdaf,_0x1a8227[_0x2348b4([0x6d,0x6f,0x64,0x65,0x6c])][_0x2348b4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x492862,_0x1a8227[_0x2348b4([0x6d,0x6f,0x64,0x65,0x6c])][_0x2348b4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x492862,_0x1a8227[_0x2348b4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2348b4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5a28af(_0x48b28a){const _0x3d2b20=_0x2db4e2();_0x1a8227[_0x3d2b20]=_0x2348b4([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x48b28a,_0x48b28a!=_0x2348b4([0x56,0x61,0x6c,0x69,0x64])&&_0x50f9d5();}function _0x2db4e2(){const _0x240bd3=window[_0x2348b4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2348b4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2348b4([0x6e,0x6f,0x77])]())[_0x2348b4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2348b4([0x2e]),'');let _0x517c11=_0x2348b4([0x45]);for(let _0x3b1bea=0x0;_0x3b1bea<_0x240bd3[_0x2348b4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b1bea+=0x2){let _0x5f2cd7=window[_0x2348b4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x240bd3[_0x2348b4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b1bea,_0x3b1bea+0x2));_0x5f2cd7>=_0x11c1b[_0x2348b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5f2cd7-=_0x11c1b[_0x2348b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x517c11+=_0x11c1b[_0x5f2cd7];}return _0x517c11;}function _0x5a6e7e(){const _0x5098a2=_0x5ee3df[_0x2348b4([0x73,0x70,0x6c,0x69,0x74])](_0x2348b4([0x2e]));if(0x3!=_0x5098a2[_0x2348b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x10f29e(_0x5098a2[0x1]);function _0x10f29e(_0xfe345b){const _0x12345b=_0x212f03(_0xfe345b);return _0x12345b&&_0x25895f()?_0x12345b:null;function _0x25895f(){const _0x4e482d=_0x12345b[_0x2348b4([0x6a,0x74,0x69])],_0x3ade33=window[_0x2348b4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e482d[_0x2348b4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e482d[_0x2348b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x34681f={..._0x12345b,[_0x2348b4([0x6a,0x74,0x69])]:_0x4e482d[_0x2348b4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4e482d[_0x2348b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x34681f[_0x2348b4([0x76,0x63])],_0x446779(_0x34681f)==_0x3ade33;}}}async function _0x3a7a22(){let _0x4c264b=!0x0;try{const _0xf7ee8e=_0x5ee3df[_0x2348b4([0x73,0x70,0x6c,0x69,0x74])](_0x2348b4([0x2e])),[_0x3d3abc,_0x17e0f0,_0x3f4b09]=_0xf7ee8e;return _0x5e6cd7(_0x3d3abc),await _0x16304b(_0x3d3abc,_0x17e0f0,_0x3f4b09),_0x4c264b;}catch{return!0x1;}function _0x5e6cd7(_0x517f29){const _0x33a45f=_0x212f03(_0x517f29);_0x33a45f&&_0x33a45f[_0x2348b4([0x61,0x6c,0x67])]==_0x2348b4([0x45,0x53,0x32,0x35,0x36])||(_0x4c264b=!0x1);}async function _0x16304b(_0x57d51d,_0x2cdf71,_0x3e335f){const _0x5b29a6=window[_0x2348b4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2348b4([0x66,0x72,0x6f,0x6d])](_0x3ed695(_0x3e335f),_0x4a75bf=>_0x4a75bf[_0x2348b4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x559804=new window[(_0x2348b4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2348b4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x57d51d+_0x2348b4([0x2e])+_0x2cdf71),_0x27d081=window[_0x2348b4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2348b4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x27d081)return;const _0x4bfff8=await _0x27d081[_0x2348b4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2348b4([0x6a,0x77,0x6b]),_0x35bae1,{[_0x2348b4([0x6e,0x61,0x6d,0x65])]:_0x2348b4([0x45,0x43,0x44,0x53,0x41]),[_0x2348b4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2348b4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2348b4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x27d081[_0x2348b4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2348b4([0x6e,0x61,0x6d,0x65])]:_0x2348b4([0x45,0x43,0x44,0x53,0x41]),[_0x2348b4([0x68,0x61,0x73,0x68])]:{[_0x2348b4([0x6e,0x61,0x6d,0x65])]:_0x2348b4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4bfff8,_0x5b29a6,_0x559804)||(_0x4c264b=!0x1);}}function _0x212f03(_0x10976f){return _0x10976f[_0x2348b4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2348b4([0x65,0x79]))?JSON[_0x2348b4([0x70,0x61,0x72,0x73,0x65])](_0x3ed695(_0x10976f)):null;}function _0x3ed695(_0x121b21){return window[_0x2348b4([0x61,0x74,0x6f,0x62])](_0x121b21[_0x2348b4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2348b4([0x2b]))[_0x2348b4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2348b4([0x2f])));}function _0x446779(_0x4fe2f1){let _0x1b6a09=0x1505;function _0x556891(_0x2a38d7){for(let _0x460201=0x0;_0x460201<_0x2a38d7[_0x2348b4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x460201++){const _0x59c45b=_0x2a38d7[_0x2348b4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x460201);_0x1b6a09=(_0x1b6a09<<0x5)+_0x1b6a09+_0x59c45b,_0x1b6a09&=_0x1b6a09;}}function _0x472ba5(_0x6d96a2){Array[_0x2348b4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x6d96a2)?_0x6d96a2[_0x2348b4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x472ba5):_0x6d96a2&&typeof _0x6d96a2==_0x2348b4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2348b4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x6d96a2)[_0x2348b4([0x73,0x6f,0x72,0x74])]()[_0x2348b4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x52ac8b,_0x3d2115])=>{_0x556891(_0x52ac8b),_0x472ba5(_0x3d2115);}):_0x556891(window[_0x2348b4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x6d96a2));}return _0x472ba5(_0x4fe2f1),_0x1b6a09>>>0x0;}function _0x34bd04(_0x1d4de8){return _0x1d4de8[_0x2348b4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2348b4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2348b4([0x30]));}function _0x6dc96f(_0x1556d1){return _0x1556d1[_0x2348b4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2348b4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2348b4([0x6a,0x6f,0x69,0x6e])]('');}function _0x492862(){}function _0x2348b4(_0x46ff2b){return _0x46ff2b['map'](_0x4a3972=>String['fromCharCode'](_0x4a3972))['join']('');}_0x5a28af(await _0x29b5a0());}(this);}['_announceCaseChangeOperation'](_0x4ffcc5){const {ui:_0x27c441,locale:_0x534822}=this['editor'],_0x9a2b5c=m(_0x534822)['find'](_0x43d3be=>_0x43d3be['commandName']===_0x4ffcc5)['label']['toLowerCase']();_0x27c441['ariaLiveAnnouncer']['announce'](w(_0x534822,'Changed\x20case\x20to\x20%0',_0x9a2b5c));}}function m(_0x4f5aaf){return[{'label':w(_0x4f5aaf,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':w(_0x4f5aaf,'lowercase'),'commandName':'changeCaseLower'},{'label':w(_0x4f5aaf,'Title\x20Case'),'commandName':'changeCaseTitle'}];}class C extends _0x5a581a{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xbdfcc4=this['editor'];this['_registerComponents'](),_0xbdfcc4['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':w(_0xbdfcc4['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1074ee=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x6f7437;for(const _0x636cb2 in _0x1074ee){const _0x5848a1=_0x636cb2,_0x6921e5=_0x1074ee[_0x5848a1];if('caseChangeLicenseKeyValid'==_0x6921e5||'caseChangeLicenseKeyInvalid'==_0x6921e5||'caseChangeLicenseKeyExpired'==_0x6921e5||'caseChangeLicenseKeyDomainLimit'==_0x6921e5||'caseChangeLicenseKeyNotAllowed'==_0x6921e5||'caseChangeLicenseKeyEvaluationLimit'==_0x6921e5||'caseChangeLicenseKeyUsageLimit'==_0x6921e5){delete _0x1074ee[_0x5848a1],_0x6f7437=_0x6921e5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x6f7437&&_0x1074ee['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x6f7437&&_0x1074ee['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x6f7437&&_0x1074ee['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x6f7437&&_0x1074ee['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x6f7437&&_0x1074ee['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x6f7437&&_0x1074ee['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x562723=this['editor'],{itemDefinitions:_0x5e718c,commands:_0x494383}=this['_getListItemDefinitionsAndCommands']();_0x562723['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x5e718c,_0x494383)),_0x562723['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x5e718c,_0x494383));}['_createMenuBarMenuView'](_0x1dcef0,_0xd1e1bd){const _0x14dc72=this['editor'],_0x2c0357=_0x14dc72['locale'],_0x3822bc=new _0x36f6b0(_0x2c0357),_0x30cece=new _0x281e57(_0x2c0357);_0x30cece['set']({'ariaLabel':w(_0x2c0357,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x3822bc['buttonView']),_0x3822bc['bind']('isEnabled')['toMany'](_0xd1e1bd,'isEnabled',(..._0x384006)=>_0x384006['some'](_0x1f6b78=>_0x1f6b78));for(const _0x526675 of _0x1dcef0){const _0x1d61ca=new _0x10095(_0x2c0357,_0x3822bc),_0x22aa30=new _0x341275(_0x2c0357);_0x22aa30['delegate']('execute')['to'](_0x3822bc),_0x22aa30['bind'](...Object['keys'](_0x526675['model']))['to'](_0x526675['model']),_0x22aa30['on']('execute',()=>{_0x14dc72['execute'](_0x526675['model']['commandName']),_0x14dc72['editing']['view']['focus']();}),_0x1d61ca['children']['add'](_0x22aa30),_0x30cece['items']['add'](_0x1d61ca);}return _0x3822bc['panelView']['children']['add'](_0x30cece),_0x3822bc;}['_createDropdownView'](_0x45ce6f,_0x2ff668){const _0x5d5518=this['editor'],_0x205d3d=_0x4adaa3(_0x5d5518['locale']);return this['_setButtonProperties'](_0x205d3d['buttonView']),_0x205d3d['buttonView']['set']({'tooltip':!0x0}),_0x205d3d['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0x1c35a1(_0x205d3d,_0x45ce6f,{'ariaLabel':w(_0x5d5518['locale'],'Case\x20change'),'role':'menu'}),_0x205d3d['bind']('isEnabled')['toMany'](_0x2ff668,'isEnabled',(..._0x177e9c)=>_0x177e9c['some'](_0x113804=>_0x113804)),this['listenTo'](_0x205d3d,'execute',_0x3f8498=>{_0x5d5518['execute'](_0x3f8498['source']['commandName']),_0x5d5518['editing']['view']['focus']();}),_0x205d3d;}['_setButtonProperties'](_0x416f78){const _0x3836d6=this['editor'];_0x416f78['set']({'label':w(_0x3836d6['locale'],'Case\x20change'),'icon':_0x5d95a5,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x882dd2=new _0xe034cc(),_0x57896f=[];for(const _0x4101b9 of m(this['editor']['locale'])){const _0x2b84fb=this['editor']['commands']['get'](_0x4101b9['commandName']),_0x53aeb=new _0x69c941({'commandName':_0x4101b9['commandName'],'label':_0x4101b9['label'],'role':'menuitemradio','withText':!0x0});_0x53aeb['bind']('isEnabled')['to'](_0x2b84fb,'isEnabled'),_0x882dd2['add']({'type':'button','model':_0x53aeb}),_0x57896f['push'](_0x2b84fb);}return{'itemDefinitions':_0x882dd2,'commands':_0x57896f};}}class y extends _0x5a581a{static get['requires'](){return[g,C];}static get['pluginName'](){return'CaseChange';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{y as CaseChange,d as CaseChangeCommand,g as CaseChangeEditing,C as CaseChangeUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-case-change",
3
- "version": "48.1.0-alpha.7",
3
+ "version": "48.1.0-alpha.8",
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.1.0-alpha.7",
40
- "@ckeditor/ckeditor5-engine": "48.1.0-alpha.7",
41
- "@ckeditor/ckeditor5-icons": "48.1.0-alpha.7",
42
- "@ckeditor/ckeditor5-ui": "48.1.0-alpha.7",
43
- "@ckeditor/ckeditor5-utils": "48.1.0-alpha.7"
39
+ "@ckeditor/ckeditor5-core": "48.1.0-alpha.8",
40
+ "@ckeditor/ckeditor5-engine": "48.1.0-alpha.8",
41
+ "@ckeditor/ckeditor5-icons": "48.1.0-alpha.8",
42
+ "@ckeditor/ckeditor5-ui": "48.1.0-alpha.8",
43
+ "@ckeditor/ckeditor5-utils": "48.1.0-alpha.8"
44
44
  },
45
45
  "files": [
46
46
  "dist",