@ckeditor/ckeditor5-ai 47.1.0-alpha.2 → 47.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xfbbba5=_0x33d7;function _0x2944(){const _0x553cf2=['document','abort','setAvailableChecks','dismissChange','aborted','checks','getChangeElement','.ck-ai-review-mode__check-run-result','isPremiumPlugin','diffContent','replaceAll','updateChangeState','ai-review-mode-no-current-check-run','clearAllMarkers','AIConnector','title','ai-request-aborted','view','isOfficialPlugin','2906736zRRZpi','showActionsWhenResultIsReady','AIReviewModeController','reviewCheckResultDeactivated','getReviewCheckList','70SoXacc','hideChangeBalloon','ck-ai-review-mode-highlights','_logError','label','hideDiffInBalloon','addResultChanges','options','params','deactivateChange','getMarkerElementForChange','args','abortReviewStream','_onReviewModeRunLeave','stopListening','_getTranslationWithDefault','addClass','setActiveStateInResults','AIReviewModeEditing','showDiffInBalloon','pluginName','changes','getAll','isCustom','loading','12gkvWNk','reviewCheckRunUpdated','markChangeAsAccepted','forceReadyState','getActiveChanges','finished','reviewCheckResultRejected','contentInitial','data','_DESCRIPTION','getEditor','showReviewCompletedView','switchToReadOnly','changeId','markChangeAsRejected','ck-ai-review-mode-diff','start','includes','applyChange','29504oSBMNW','showGeneralErrorView','showCheckRunResults','source','closest','_aiReviewModeUi','reviewCheckResultAdded','prompt','map','leaveReviewMode','documentData','context','retryReview','model','_changeActivationSource','message','switchToEdit','subTitle','_OPTIONS_LABEL','4722632NBMAXu','restart','models','panel','status','description','reviewCheckResultReady','content','1865277KSAfiq','error-chunk','change','hasModifications','get','markChangePositionInEditorContent','rejected','isChangeActive','listenTo','656692ANZsYr','_translateReviewChecks','contentNew','processedResultsCount','result','reviewCheckResultAccepted','requires','find','leaveReviewModeResultList','showReviewCheckList','getCheckById','activateChange','domElement','_currentReviewCheckRun','error-general','translate','getDocumentData','AIReviewModeUI','showChangeBalloon','_isDiffOn','locale','_OPTIONS_DATA_','plugins','ai.reviewMode.translations','resetActiveStateInResults','showNoChangesView','sendRating','AI_REVIEW_CHECK_','_onDiffChange','editing','91xKSpqh','getRoot','ai-review-mode-source-check-not-found','showChunkErrorView','AI_MODEL_DESCRIPTION_','_aiReviewCheckList','showCheckRunResult','finishReview','length','ai-review-mode-check-run-failed','rejectChange','toggleDiff','custom','7473823nNsECf','accepted','acceptChange','setCheckResultTitle','init','removeClass','toUpperCase','reviewCheckResultActivated','emitter','changeMarkerClick','_TITLE','runReviewCheck','3848870MFYrbi','_aiConnector','config','markAllChangesAsAccepted','ready','acceptAllChanges','_aiReviewModeEditing','unmodified'];_0x2944=function(){return _0x553cf2;};return _0x2944();}(function(_0x257e76,_0x20eeda){const _0x2816b3=_0x33d7,_0x546375=_0x257e76();while(!![]){try{const _0x4e0beb=parseInt(_0x2816b3(0xf9))/0x1*(parseInt(_0x2816b3(0x15e))/0x2)+parseInt(_0x2816b3(0x12d))/0x3+-parseInt(_0x2816b3(0x182))/0x4+-parseInt(_0x2816b3(0x112))/0x5*(parseInt(_0x2816b3(0x14b))/0x6)+parseInt(_0x2816b3(0x106))/0x7+parseInt(_0x2816b3(0x171))/0x8+-parseInt(_0x2816b3(0x179))/0x9*(parseInt(_0x2816b3(0x132))/0xa);if(_0x4e0beb===_0x20eeda)break;else _0x546375['push'](_0x546375['shift']());}catch(_0x44170b){_0x546375['push'](_0x546375['shift']());}}}(_0x2944,0xc6f16));import{ContextPlugin as _0x31e8d4}from'ckeditor5/src/core.js';import{CKEditorError as _0x24e2c4,logError as _0x1bac3d,scrollAncestorsToShowTarget as _0x1a0ac5,scrollViewportToShowTarget as _0x540ebb}from'ckeditor5/src/utils.js';import{AIConnector as _0x105a04}from'../aicore/aiconnector.js';import{AIReviewCheckList as _0x36f233}from'./model/aireviewchecklist.js';import{AIReviewSystemCheckRun as _0x41eda6}from'./model/aireviewsystemcheckrun.js';import{AIReviewCustomCheckRun as _0x43d0b3}from'./model/aireviewcustomcheckrun.js';import{AIReviewModels as _0x3ce58f}from'./model/aireviewmodels.js';import{AI_REVIEW_CHECKS as _0xf08bf9}from'./aireviewcheckdefinitions.js';import{getTranslation as _0x53fc88}from'../aicore/utils/common-translations.js';function _0x33d7(_0xf89cd1,_0xc53183){const _0x29448f=_0x2944();return _0x33d7=function(_0x33d799,_0x1fb341){_0x33d799=_0x33d799-0xf5;let _0x52dbac=_0x29448f[_0x33d799];return _0x52dbac;},_0x33d7(_0xf89cd1,_0xc53183);}export class AIReviewModeController extends _0x31e8d4{[_0xfbbba5(0x113)];[_0xfbbba5(0x163)];[_0xfbbba5(0x118)];[_0xfbbba5(0xfe)];[_0xfbbba5(0x18f)];[_0xfbbba5(0x195)]=!0x1;[_0xfbbba5(0x16c)]=null;static get[_0xfbbba5(0x188)](){return[_0x105a04];}static get[_0xfbbba5(0x146)](){const _0x2b7579=_0xfbbba5;return _0x2b7579(0x12f);}static get[_0xfbbba5(0x12c)](){return!0x0;}static get[_0xfbbba5(0x122)](){return!0x0;}async[_0xfbbba5(0x10a)](){const _0x222885=_0xfbbba5;this[_0x222885(0x113)]=this[_0x222885(0x169)][_0x222885(0x198)][_0x222885(0x17d)](_0x222885(0x128)),this[_0x222885(0x163)]=this[_0x222885(0x169)][_0x222885(0x198)][_0x222885(0x17d)](_0x222885(0x193)),this[_0x222885(0x118)]=this[_0x222885(0x169)][_0x222885(0x198)][_0x222885(0x17d)](_0x222885(0x144));const _0x586e6a=this[_0x222885(0x169)][_0x222885(0x114)][_0x222885(0x17d)](_0x222885(0x199));if(_0x586e6a){for(const _0x2a8f85 of _0xf08bf9)_0x222885(0x191)===_0x2a8f85['id']&&(_0x2a8f85[_0x222885(0x139)][0x0][_0x222885(0x153)]=_0x586e6a);}const _0x54b3b3=this[_0x222885(0x183)](_0xf08bf9);this[_0x222885(0xfe)]=new _0x36f233(_0x54b3b3);const _0x355c5c=this[_0x222885(0xfe)][_0x222885(0x11f)][_0x222885(0x189)](_0x52bfcf=>_0x222885(0x105)===_0x52bfcf['id']);if(_0x355c5c){const _0x6072e5=await new _0x3ce58f({'connector':this[_0x222885(0x113)]})[_0x222885(0x148)]();_0x355c5c[_0x222885(0x173)]=_0x6072e5[_0x222885(0x166)](_0x2a2951=>({..._0x2a2951,'description':this[_0x222885(0x141)](_0x222885(0xfd)+_0x2a2951['id'][_0x222885(0x10c)](),_0x2a2951[_0x222885(0x176)])}));}this[_0x222885(0x181)](this[_0x222885(0x163)],_0x222885(0x131),()=>{const _0x440253=_0x222885;this[_0x440253(0x163)][_0x440253(0x11c)](this[_0x440253(0xfe)][_0x440253(0x11f)]);}),this[_0x222885(0x181)](this[_0x222885(0x163)],_0x222885(0x111),async(_0x32ff16,_0x5f3bb3)=>{const _0x38f756=_0x222885,_0x1994af=this[_0x38f756(0xfe)][_0x38f756(0x18c)](_0x5f3bb3['id']);if(_0x1994af){this[_0x38f756(0xf7)](this[_0x38f756(0x195)]),_0x5f3bb3[_0x38f756(0x149)]?this[_0x38f756(0x18f)]=new _0x43d0b3(_0x5f3bb3[_0x38f756(0x13d)][_0x38f756(0x165)],_0x5f3bb3[_0x38f756(0x13d)][_0x38f756(0x16b)],this[_0x38f756(0x118)][_0x38f756(0x192)](),_0x1994af,this[_0x38f756(0x113)]):this[_0x38f756(0x18f)]=new _0x41eda6(this[_0x38f756(0x118)][_0x38f756(0x192)](),_0x1994af,this[_0x38f756(0x113)],_0x5f3bb3[_0x38f756(0x13a)],_0x5f3bb3[_0x38f756(0x13d)]),this[_0x38f756(0x163)][_0x38f756(0x109)](this[_0x38f756(0x18f)][_0x38f756(0x129)],this[_0x38f756(0x18f)][_0x38f756(0x16f)]),this[_0x38f756(0x18f)]['on'](_0x38f756(0x14c),(_0x39fc83,_0x1ca956)=>{const _0x5e2f7f=_0x38f756;_0x5e2f7f(0x153)===_0x1ca956[_0x5e2f7f(0x175)]||_0x5e2f7f(0x14a)===_0x1ca956[_0x5e2f7f(0x175)]?(this[_0x5e2f7f(0x118)][_0x5e2f7f(0x157)](),this[_0x5e2f7f(0x163)][_0x5e2f7f(0x160)](_0x1ca956)):_0x5e2f7f(0x150)===_0x1ca956[_0x5e2f7f(0x175)]?this[_0x5e2f7f(0x163)][_0x5e2f7f(0x156)]():_0x5e2f7f(0x116)===_0x1ca956[_0x5e2f7f(0x175)]?this[_0x5e2f7f(0x163)][_0x5e2f7f(0x12e)]():_0x5e2f7f(0x119)===_0x1ca956[_0x5e2f7f(0x175)]?this[_0x5e2f7f(0x163)][_0x5e2f7f(0x19b)]():_0x5e2f7f(0x190)===_0x1ca956[_0x5e2f7f(0x175)]?this[_0x5e2f7f(0x163)][_0x5e2f7f(0x15f)]():_0x5e2f7f(0x17a)===_0x1ca956[_0x5e2f7f(0x175)]?this[_0x5e2f7f(0x163)][_0x5e2f7f(0xfc)]():_0x5e2f7f(0x11e)===_0x1ca956[_0x5e2f7f(0x175)]&&(this[_0x5e2f7f(0x18f)]&&this[_0x5e2f7f(0x18f)][_0x5e2f7f(0x185)]>0x0?setTimeout(()=>{const _0x230021=_0x5e2f7f;this[_0x230021(0x18f)]?.[_0x230021(0x14e)]();},0x0):this[_0x5e2f7f(0x13f)](!0x0)),_0x5e2f7f(0x116)!==_0x1ca956[_0x5e2f7f(0x175)]&&_0x5e2f7f(0x17a)!==_0x1ca956[_0x5e2f7f(0x175)]&&_0x5e2f7f(0x190)!==_0x1ca956[_0x5e2f7f(0x175)]||this[_0x5e2f7f(0x18f)]?.[_0x5e2f7f(0xf5)]();}),this[_0x38f756(0x18f)]['on'](_0x38f756(0x164),(_0x3215ce,_0x284e27)=>{const _0x5c3fb6=_0x38f756;if(!this[_0x5c3fb6(0x18f)])throw new _0x24e2c4(_0x5c3fb6(0x126),this);const _0x2e9fe4=this[_0x5c3fb6(0x118)][_0x5c3fb6(0x123)](_0x284e27[_0x5c3fb6(0x186)][_0x5c3fb6(0x152)],_0x284e27[_0x5c3fb6(0x186)][_0x5c3fb6(0x184)]);_0x284e27[_0x5c3fb6(0x161)][_0x5c3fb6(0x138)](_0x284e27[_0x5c3fb6(0x186)]['id'],_0x2e9fe4);}),this[_0x38f756(0x18f)]['on'](_0x38f756(0x177),(_0x26d8aa,_0x469b96)=>{const _0x29cedd=_0x38f756;for(const _0x416b4c of _0x469b96[_0x29cedd(0x147)])this[_0x29cedd(0x163)][_0x29cedd(0xff)](_0x416b4c);this[_0x29cedd(0x118)][_0x29cedd(0x17e)](_0x469b96[_0x29cedd(0x147)],_0x469b96[_0x29cedd(0x161)][_0x29cedd(0x168)]);}),this[_0x38f756(0x18f)]['on'](_0x38f756(0x187),(_0x4dafb9,_0x540b49)=>{const _0x42d77d=_0x38f756;this[_0x42d77d(0x163)][_0x42d77d(0x125)](_0x540b49[_0x42d77d(0x17b)]['id'],_0x42d77d(0x107));}),this[_0x38f756(0x18f)]['on'](_0x38f756(0x151),(_0x2d46a0,_0x3abe41)=>{const _0x14fae0=_0x38f756;this[_0x14fae0(0x163)][_0x14fae0(0x125)](_0x3abe41[_0x14fae0(0x17b)]['id'],_0x14fae0(0x17f));}),this[_0x38f756(0x18f)]['on'](_0x38f756(0x10d),(_0x261f67,_0x518d72)=>{const _0xea5590=_0x38f756;this[_0xea5590(0x163)][_0xea5590(0x143)](_0x518d72[_0xea5590(0x17b)]['id']);const _0x4437d0=this[_0xea5590(0x118)][_0xea5590(0x13c)](_0x518d72[_0xea5590(0x17b)]['id']);if(_0x4437d0){if(_0xea5590(0x178)===this[_0xea5590(0x16c)]){const _0x55ed1b=this[_0xea5590(0x163)][_0xea5590(0x120)](_0x518d72[_0xea5590(0x17b)]['id']);_0x55ed1b&&_0x1a0ac5(_0x55ed1b[_0xea5590(0x162)](_0xea5590(0x121))||_0x55ed1b);}else{if(_0xea5590(0x174)===this[_0xea5590(0x16c)]){const _0x27aa61={'target':_0x4437d0[_0xea5590(0x18e)],'viewportOffset':{'top':0x55,'left':0x0,'bottom':0x0,'right':0x0},'ancestorOffset':0x14,'alignToTop':!0x0};_0x540ebb(_0x27aa61);}}this[_0xea5590(0x163)][_0xea5590(0x194)](_0x518d72[_0xea5590(0x17b)],_0x4437d0[_0xea5590(0x18e)]);}}),this[_0x38f756(0x18f)]['on'](_0x38f756(0x130),()=>{const _0x4a44e1=_0x38f756;this[_0x4a44e1(0x163)][_0x4a44e1(0x19a)]();});try{await this[_0x38f756(0x18f)][_0x38f756(0x15b)]();}catch(_0x309aab){_0x309aab instanceof Error&&_0x309aab[_0x38f756(0x16d)][_0x38f756(0x15c)](_0x38f756(0x12a))||(_0x309aab instanceof _0x24e2c4?this[_0x38f756(0x135)](_0x309aab):this[_0x38f756(0x135)](new _0x24e2c4(_0x38f756(0x102),this,{'error':_0x309aab})));}}else this[_0x38f756(0x135)](new _0x24e2c4(_0x38f756(0xfb),this,{'checkId':_0x5f3bb3['id']}));}),this[_0x222885(0x181)](this[_0x222885(0x163)],_0x222885(0x167),()=>{const _0xf0b634=_0x222885;this[_0xf0b634(0x13f)]();}),this[_0x222885(0x181)](this[_0x222885(0x163)],_0x222885(0x18a),()=>{const _0x3b9ea0=_0x222885;this[_0x3b9ea0(0x13f)](!0x0);}),this[_0x222885(0x181)](this[_0x222885(0x163)],_0x222885(0x13e),()=>{const _0x45b3db=_0x222885;this[_0x45b3db(0x18f)]&&this[_0x45b3db(0x18f)][_0x45b3db(0x11b)]();}),this[_0x222885(0x181)](this[_0x222885(0x163)],_0x222885(0x100),()=>{const _0x7de960=_0x222885;this[_0x7de960(0x13f)](!0x0);}),this[_0x222885(0x181)](this[_0x222885(0x163)],_0x222885(0x117),()=>{const _0x34bd43=_0x222885;if(!this[_0x34bd43(0x18f)])return;const _0x295636=this[_0x34bd43(0x18f)][_0x34bd43(0x14f)]();_0x295636[_0x34bd43(0x101)]&&(this[_0x34bd43(0x118)][_0x34bd43(0x15d)](_0x295636[_0x34bd43(0x166)](_0x521fd4=>_0x521fd4['id'])),this[_0x34bd43(0x18f)][_0x34bd43(0x115)](),this[_0x34bd43(0x18f)][_0x34bd43(0xf5)]());}),this[_0x222885(0x181)](this[_0x222885(0x163)],_0x222885(0x108),(_0x22a32b,_0x318c4e)=>{const _0x32a579=_0x222885;this[_0x32a579(0x18f)]&&this[_0x32a579(0x18f)][_0x32a579(0x180)](_0x318c4e['id'])&&(this[_0x32a579(0x118)][_0x32a579(0x15d)]([_0x318c4e['id']]),this[_0x32a579(0x18f)][_0x32a579(0x14d)](_0x318c4e['id']),this[_0x32a579(0x163)][_0x32a579(0x133)](),this[_0x32a579(0x18f)][_0x32a579(0xf5)](_0x318c4e['id']));}),this[_0x222885(0x181)](this[_0x222885(0x163)],_0x222885(0x11d),(_0x5af31c,_0x389eda)=>{const _0x1cb251=_0x222885;this[_0x1cb251(0x18f)]&&this[_0x1cb251(0x18f)][_0x1cb251(0x180)](_0x389eda['id'])&&(this[_0x1cb251(0x118)][_0x1cb251(0x103)](_0x389eda['id']),this[_0x1cb251(0x18f)][_0x1cb251(0x159)](_0x389eda['id']),this[_0x1cb251(0x163)][_0x1cb251(0x133)](),this[_0x1cb251(0x18f)][_0x1cb251(0xf5)](_0x389eda['id']));}),this[_0x222885(0x181)](this[_0x222885(0x163)],_0x222885(0x104),(_0x48b6ca,_0x273482)=>{const _0x370e91=_0x222885;this[_0x370e91(0x195)]=_0x273482['on'],this[_0x370e91(0xf7)](this[_0x370e91(0x195)]);}),this[_0x222885(0x181)](this[_0x222885(0x163)],_0x222885(0x16a),async()=>{const _0x3dbb1d=_0x222885;this[_0x3dbb1d(0x18f)]&&await this[_0x3dbb1d(0x18f)][_0x3dbb1d(0x172)]();}),this[_0x222885(0x181)](this[_0x222885(0x163)],_0x222885(0x18d),(_0xea4168,_0x1ce93c)=>{const _0x1f83dc=_0x222885;this[_0x1f83dc(0x18f)]&&(this[_0x1f83dc(0x16c)]=_0x1f83dc(0x174),this[_0x1f83dc(0x18f)][_0x1f83dc(0x18d)](_0x1ce93c['id']));}),this[_0x222885(0x181)](this[_0x222885(0x163)],_0x222885(0x13b),()=>{const _0x5bb40c=_0x222885;this[_0x5bb40c(0x18f)]&&this[_0x5bb40c(0x18f)][_0x5bb40c(0x13b)]();}),this[_0x222885(0x181)](this[_0x222885(0x118)][_0x222885(0x10e)],_0x222885(0x10f),(_0x25a95c,_0x245895)=>{const _0x3d97c2=_0x222885;this[_0x3d97c2(0x18f)]&&(this[_0x3d97c2(0x16c)]=_0x3d97c2(0x178),this[_0x3d97c2(0x18f)][_0x3d97c2(0x18d)](_0x245895[_0x3d97c2(0x158)]));});}[_0xfbbba5(0x13f)](_0x1ca842=!0x1){const _0x194ecf=_0xfbbba5;this[_0x194ecf(0x18f)]&&(this[_0x194ecf(0x18f)][_0x194ecf(0x17c)]||this[_0x194ecf(0x18f)][_0x194ecf(0xf5)](),this[_0x194ecf(0x18f)][_0x194ecf(0x11b)](),this[_0x194ecf(0x18f)][_0x194ecf(0x140)](),this[_0x194ecf(0x18f)]=void 0x0),_0x1ca842&&this[_0x194ecf(0x163)][_0x194ecf(0x18b)](),this[_0x194ecf(0x118)][_0x194ecf(0x127)](),this[_0x194ecf(0x118)][_0x194ecf(0x16e)](),this[_0x194ecf(0x16c)]=null;const _0x4cfabd=this[_0x194ecf(0x118)][_0x194ecf(0x155)]();_0x4cfabd&&_0x4cfabd[_0x194ecf(0xf8)][_0x194ecf(0x12b)][_0x194ecf(0x17b)](_0x201eee=>{const _0x2ee258=_0x194ecf,_0x56efc2=_0x4cfabd[_0x2ee258(0xf8)][_0x2ee258(0x12b)][_0x2ee258(0x11a)][_0x2ee258(0xfa)]();_0x201eee[_0x2ee258(0x10b)](_0x2ee258(0x15a),_0x56efc2),_0x201eee[_0x2ee258(0x10b)](_0x2ee258(0x134),_0x56efc2);});}[_0xfbbba5(0xf7)](_0x557fc3){const _0x1045e3=_0xfbbba5,_0x374580=this[_0x1045e3(0x118)][_0x1045e3(0x155)]();_0x557fc3?this[_0x1045e3(0x163)][_0x1045e3(0x137)]():this[_0x1045e3(0x163)][_0x1045e3(0x145)](),_0x374580&&_0x374580[_0x1045e3(0xf8)][_0x1045e3(0x12b)][_0x1045e3(0x17b)](_0x170bd7=>{const _0x33f457=_0x1045e3,_0x4bd20b=_0x374580[_0x33f457(0xf8)][_0x33f457(0x12b)][_0x33f457(0x11a)][_0x33f457(0xfa)]();_0x170bd7[_0x33f457(0x10b)](_0x33f457(0x15a),_0x4bd20b),_0x170bd7[_0x33f457(0x10b)](_0x33f457(0x134),_0x4bd20b),_0x170bd7[_0x33f457(0x142)](_0x557fc3?_0x33f457(0x15a):_0x33f457(0x134),_0x4bd20b);});}[_0xfbbba5(0x183)](_0x3bd1a5){const _0x2ac07=_0xfbbba5;return _0x3bd1a5[_0x2ac07(0x166)](_0x5f3317=>{const _0x1c53a3=_0x2ac07,_0x3a3ad5=_0x1c53a3(0xf6)+_0x5f3317['id'][_0x1c53a3(0x10c)]()[_0x1c53a3(0x124)]('-','_'),_0x2031b1={..._0x5f3317,'title':this[_0x1c53a3(0x141)](_0x3a3ad5+_0x1c53a3(0x110),_0x5f3317[_0x1c53a3(0x129)]),'description':this[_0x1c53a3(0x141)](_0x3a3ad5+_0x1c53a3(0x154),_0x5f3317[_0x1c53a3(0x176)])};return _0x5f3317[_0x1c53a3(0x139)]&&(_0x2031b1[_0x1c53a3(0x139)]=_0x5f3317[_0x1c53a3(0x139)][_0x1c53a3(0x166)](_0x5f0978=>({..._0x5f0978,'label':this[_0x1c53a3(0x141)](_0x3a3ad5+_0x1c53a3(0x170),_0x5f0978[_0x1c53a3(0x136)]||''),'data':_0x5f0978[_0x1c53a3(0x153)]?_0x5f0978[_0x1c53a3(0x153)][_0x1c53a3(0x166)](_0x2dc705=>({..._0x2dc705,'label':this[_0x1c53a3(0x141)](_0x3a3ad5+_0x1c53a3(0x197)+_0x2dc705['id'][_0x1c53a3(0x10c)](),_0x2dc705[_0x1c53a3(0x136)])})):void 0x0}))),_0x2031b1;});}[_0xfbbba5(0x141)](_0x1b127f,_0x5101f9){const _0x5670cb=_0xfbbba5,_0x2fa4f5=this[_0x5670cb(0x169)][_0x5670cb(0x196)],_0x347295=_0x53fc88(_0x2fa4f5,_0x1b127f);return _0x347295===_0x1b127f?_0x5101f9:_0x347295;}[_0xfbbba5(0x135)](_0x19bd5d){const _0x3bcdbd=_0xfbbba5;_0x1bac3d(_0x19bd5d[_0x3bcdbd(0x16d)]),this[_0x3bcdbd(0x163)][_0x3bcdbd(0x15f)]();}}
|
|
23
|
+
const _0xd39d4c=_0x32d1;(function(_0x2f5278,_0x3eb721){const _0x1ec8bb=_0x32d1,_0x1d6697=_0x2f5278();while(!![]){try{const _0x3d859e=-parseInt(_0x1ec8bb(0x236))/0x1*(-parseInt(_0x1ec8bb(0x260))/0x2)+parseInt(_0x1ec8bb(0x1e1))/0x3*(parseInt(_0x1ec8bb(0x226))/0x4)+-parseInt(_0x1ec8bb(0x1fc))/0x5*(parseInt(_0x1ec8bb(0x272))/0x6)+parseInt(_0x1ec8bb(0x244))/0x7+parseInt(_0x1ec8bb(0x1f0))/0x8*(parseInt(_0x1ec8bb(0x20c))/0x9)+parseInt(_0x1ec8bb(0x1fd))/0xa*(parseInt(_0x1ec8bb(0x213))/0xb)+parseInt(_0x1ec8bb(0x1e5))/0xc*(-parseInt(_0x1ec8bb(0x23f))/0xd);if(_0x3d859e===_0x3eb721)break;else _0x1d6697['push'](_0x1d6697['shift']());}catch(_0x27fc47){_0x1d6697['push'](_0x1d6697['shift']());}}}(_0x2df4,0x21ffa));import{ContextPlugin as _0x14da28}from'ckeditor5/src/core.js';function _0x2df4(){const _0x55e2b0=['length','options','getAll','625772iUnNGe','showReviewCheckList','custom','_OPTIONS_LABEL','AIReviewModeController','_TITLE','status','_currentReviewCheckRun','config','emitter','showChangeBalloon','showReviewCompletedView','contentNew','requires','init','change','reviewCheckRunUpdated','editing','toggleDiff','changeId','isOfficialPlugin','ready','showDiffInBalloon','message','changes','forceReadyState','showGeneralErrorView','args','2iLAYnL','getReviewCheckList','reviewCheckResultRejected','includes','translate','showActionsWhenResultIsReady','panel','reviewCheckResultDeactivated','leaveReviewMode','accepted','showChunkErrorView','error-general','ck-ai-review-mode-highlights','error-chunk','ck-ai-review-mode-diff','clearAllMarkers','getCheckById','_translateReviewChecks','1085622XSSSmU','getDocumentData','data','AI_REVIEW_CHECK_','AIConnector','AIReviewModeEditing','isChangeActive','locale','finishReview','reviewCheckResultActivated','ai-review-mode-no-current-check-run','showNoChangesView','reviewCheckResultReady','params','updateChangeState','toUpperCase','ai-review-mode-source-check-not-found','prompt','reviewCheckResultAccepted','applyChange','ai.reviewMode.translations','getRoot','activateChange','runReviewCheck','finished','3ITrqRP','listenTo','.ck-ai-review-mode__check-run-result','get','60NqHAtO','_isDiffOn','model','source','sendRating','hideChangeBalloon','content','showCheckRunResult','abortReviewStream','subTitle','restart','19256VQopRA','_aiReviewModeEditing','AIReviewModeUI','checks','setActiveStateInResults','_OPTIONS_DATA_','replaceAll','processedResultsCount','title','markAllChangesAsAccepted','hasModifications','contentInitial','5aLINwR','2290IOEWLG','changeMarkerClick','acceptChange','getActiveChanges','result','leaveReviewModeResultList','unmodified','label','showCheckRunResults','rejected','context','_onReviewModeRunLeave','retryReview','resetActiveStateInResults','description','288kbylaT','reviewCheckResultAdded','getChangeElement','getEditor','hideDiffInBalloon','diffContent','find','7854hmREdK','_logError','abort','_changeActivationSource','AI_MODEL_DESCRIPTION_','getMarkerElementForChange','_getTranslationWithDefault','documentData','document','isPremiumPlugin','aborted','addResultChanges','plugins','addClass','isCustom','domElement','switchToEdit','setAvailableChecks','map','126908GVYfRF','dismissChange','_aiReviewModeUi','start','removeClass','_aiReviewCheckList','_onDiffChange','markChangeAsAccepted','acceptAllChanges','switchToReadOnly','pluginName','markChangePositionInEditorContent','loading','closest','view','models','112247wgdoyv','ai-request-aborted','markChangeAsRejected','setCheckResultTitle','rejectChange','ai-review-mode-check-run-failed','_aiConnector','deactivateChange','_DESCRIPTION','399633ITqkZu','stopListening'];_0x2df4=function(){return _0x55e2b0;};return _0x2df4();}function _0x32d1(_0x5e4310,_0xf1bdb3){const _0x2df45d=_0x2df4();return _0x32d1=function(_0x32d132,_0x30876d){_0x32d132=_0x32d132-0x1cf;let _0x4410d4=_0x2df45d[_0x32d132];return _0x4410d4;},_0x32d1(_0x5e4310,_0xf1bdb3);}import{CKEditorError as _0x36462e,logError as _0x232d3c,scrollAncestorsToShowTarget as _0x2ce398,scrollViewportToShowTarget as _0x25bb03}from'ckeditor5/src/utils.js';import{AIConnector as _0x523142}from'../aicore/aiconnector.js';import{AIReviewCheckList as _0x305c1d}from'./model/aireviewchecklist.js';import{AIReviewSystemCheckRun as _0x4f8a5d}from'./model/aireviewsystemcheckrun.js';import{AIReviewCustomCheckRun as _0x10437b}from'./model/aireviewcustomcheckrun.js';import{AIReviewModels as _0x2f1cf7}from'./model/aireviewmodels.js';import{AI_REVIEW_CHECKS as _0x284439}from'./aireviewcheckdefinitions.js';import{getTranslation as _0x3d44b1}from'../aicore/utils/common-translations.js';export class AIReviewModeController extends _0x14da28{[_0xd39d4c(0x23c)];[_0xd39d4c(0x228)];[_0xd39d4c(0x1f1)];[_0xd39d4c(0x22b)];[_0xd39d4c(0x24b)];[_0xd39d4c(0x1e6)]=!0x1;[_0xd39d4c(0x216)]=null;static get[_0xd39d4c(0x251)](){return[_0x523142];}static get[_0xd39d4c(0x230)](){const _0x65bb28=_0xd39d4c;return _0x65bb28(0x248);}static get[_0xd39d4c(0x258)](){return!0x0;}static get[_0xd39d4c(0x21c)](){return!0x0;}async[_0xd39d4c(0x252)](){const _0x5e295e=_0xd39d4c;this[_0x5e295e(0x23c)]=this[_0x5e295e(0x207)][_0x5e295e(0x21f)][_0x5e295e(0x1e4)](_0x5e295e(0x276)),this[_0x5e295e(0x228)]=this[_0x5e295e(0x207)][_0x5e295e(0x21f)][_0x5e295e(0x1e4)](_0x5e295e(0x1f2)),this[_0x5e295e(0x1f1)]=this[_0x5e295e(0x207)][_0x5e295e(0x21f)][_0x5e295e(0x1e4)](_0x5e295e(0x277));const _0x3a7193=this[_0x5e295e(0x207)][_0x5e295e(0x24c)][_0x5e295e(0x1e4)](_0x5e295e(0x1dc));if(_0x3a7193){for(const _0x2c1b20 of _0x284439)_0x5e295e(0x264)===_0x2c1b20['id']&&(_0x2c1b20[_0x5e295e(0x242)][0x0][_0x5e295e(0x274)]=_0x3a7193);}const _0x384733=this[_0x5e295e(0x271)](_0x284439);this[_0x5e295e(0x22b)]=new _0x305c1d(_0x384733);const _0x5076b3=this[_0x5e295e(0x22b)][_0x5e295e(0x1f3)][_0x5e295e(0x212)](_0x562202=>_0x5e295e(0x246)===_0x562202['id']);if(_0x5076b3){const _0x38cb2c=await new _0x2f1cf7({'connector':this[_0x5e295e(0x23c)]})[_0x5e295e(0x243)]();_0x5076b3[_0x5e295e(0x235)]=_0x38cb2c[_0x5e295e(0x225)](_0x13b2a7=>({..._0x13b2a7,'description':this[_0x5e295e(0x219)](_0x5e295e(0x217)+_0x13b2a7['id'][_0x5e295e(0x1d7)](),_0x13b2a7[_0x5e295e(0x20b)])}));}this[_0x5e295e(0x1e2)](this[_0x5e295e(0x228)],_0x5e295e(0x261),()=>{const _0x173016=_0x5e295e;this[_0x173016(0x228)][_0x173016(0x224)](this[_0x173016(0x22b)][_0x173016(0x1f3)]);}),this[_0x5e295e(0x1e2)](this[_0x5e295e(0x228)],_0x5e295e(0x1df),async(_0x13f6b9,_0x3b760e)=>{const _0xc2c51b=_0x5e295e,_0x243319=this[_0xc2c51b(0x22b)][_0xc2c51b(0x270)](_0x3b760e['id']);if(_0x243319){this[_0xc2c51b(0x22c)](this[_0xc2c51b(0x1e6)]),_0x3b760e[_0xc2c51b(0x221)]?this[_0xc2c51b(0x24b)]=new _0x10437b(_0x3b760e[_0xc2c51b(0x25f)][_0xc2c51b(0x1d9)],_0x3b760e[_0xc2c51b(0x25f)][_0xc2c51b(0x1e7)],this[_0xc2c51b(0x1f1)][_0xc2c51b(0x273)](),_0x243319,this[_0xc2c51b(0x23c)]):this[_0xc2c51b(0x24b)]=new _0x4f8a5d(this[_0xc2c51b(0x1f1)][_0xc2c51b(0x273)](),_0x243319,this[_0xc2c51b(0x23c)],_0x3b760e[_0xc2c51b(0x1d5)],_0x3b760e[_0xc2c51b(0x25f)]),this[_0xc2c51b(0x228)][_0xc2c51b(0x239)](this[_0xc2c51b(0x24b)][_0xc2c51b(0x1f8)],this[_0xc2c51b(0x24b)][_0xc2c51b(0x1ee)]),this[_0xc2c51b(0x24b)]['on'](_0xc2c51b(0x254),(_0x3532f2,_0x16496c)=>{const _0x21860b=_0xc2c51b;_0x21860b(0x274)===_0x16496c[_0x21860b(0x24a)]||_0x21860b(0x232)===_0x16496c[_0x21860b(0x24a)]?(this[_0x21860b(0x1f1)][_0x21860b(0x22f)](),this[_0x21860b(0x228)][_0x21860b(0x205)](_0x16496c)):_0x21860b(0x1e0)===_0x16496c[_0x21860b(0x24a)]?this[_0x21860b(0x228)][_0x21860b(0x24f)]():_0x21860b(0x259)===_0x16496c[_0x21860b(0x24a)]?this[_0x21860b(0x228)][_0x21860b(0x265)]():_0x21860b(0x203)===_0x16496c[_0x21860b(0x24a)]?this[_0x21860b(0x228)][_0x21860b(0x1d3)]():_0x21860b(0x26b)===_0x16496c[_0x21860b(0x24a)]?this[_0x21860b(0x228)][_0x21860b(0x25e)]():_0x21860b(0x26d)===_0x16496c[_0x21860b(0x24a)]?this[_0x21860b(0x228)][_0x21860b(0x26a)]():_0x21860b(0x21d)===_0x16496c[_0x21860b(0x24a)]&&(this[_0x21860b(0x24b)]&&this[_0x21860b(0x24b)][_0x21860b(0x1f7)]>0x0?setTimeout(()=>{const _0x37fa2b=_0x21860b;this[_0x37fa2b(0x24b)]?.[_0x37fa2b(0x25d)]();},0x0):this[_0x21860b(0x208)](!0x0)),_0x21860b(0x259)!==_0x16496c[_0x21860b(0x24a)]&&_0x21860b(0x26d)!==_0x16496c[_0x21860b(0x24a)]&&_0x21860b(0x26b)!==_0x16496c[_0x21860b(0x24a)]||this[_0x21860b(0x24b)]?.[_0x21860b(0x1e9)]();}),this[_0xc2c51b(0x24b)]['on'](_0xc2c51b(0x20d),(_0x58e317,_0x2e2f02)=>{const _0x492d7c=_0xc2c51b;if(!this[_0x492d7c(0x24b)])throw new _0x36462e(_0x492d7c(0x1d2),this);const _0x1b2d61=this[_0x492d7c(0x1f1)][_0x492d7c(0x211)](_0x2e2f02[_0x492d7c(0x201)][_0x492d7c(0x1fb)],_0x2e2f02[_0x492d7c(0x201)][_0x492d7c(0x250)]);_0x2e2f02[_0x492d7c(0x1e8)][_0x492d7c(0x21e)](_0x2e2f02[_0x492d7c(0x201)]['id'],_0x1b2d61);}),this[_0xc2c51b(0x24b)]['on'](_0xc2c51b(0x1d4),(_0x5a1fd8,_0x3f33a2)=>{const _0xbc30cf=_0xc2c51b;for(const _0x4160c0 of _0x3f33a2[_0xbc30cf(0x25c)])this[_0xbc30cf(0x228)][_0xbc30cf(0x1ec)](_0x4160c0);this[_0xbc30cf(0x1f1)][_0xbc30cf(0x231)](_0x3f33a2[_0xbc30cf(0x25c)],_0x3f33a2[_0xbc30cf(0x1e8)][_0xbc30cf(0x21a)]);}),this[_0xc2c51b(0x24b)]['on'](_0xc2c51b(0x1da),(_0xf45b48,_0x42b7e2)=>{const _0x4ee950=_0xc2c51b;this[_0x4ee950(0x228)][_0x4ee950(0x1d6)](_0x42b7e2[_0x4ee950(0x253)]['id'],_0x4ee950(0x269));}),this[_0xc2c51b(0x24b)]['on'](_0xc2c51b(0x262),(_0x3d38bc,_0x13ffc9)=>{const _0xe3c86f=_0xc2c51b;this[_0xe3c86f(0x228)][_0xe3c86f(0x1d6)](_0x13ffc9[_0xe3c86f(0x253)]['id'],_0xe3c86f(0x206));}),this[_0xc2c51b(0x24b)]['on'](_0xc2c51b(0x1d1),(_0x41e7f1,_0x855d09)=>{const _0x5e1fe5=_0xc2c51b;this[_0x5e1fe5(0x228)][_0x5e1fe5(0x1f4)](_0x855d09[_0x5e1fe5(0x253)]['id']);const _0x30b435=this[_0x5e1fe5(0x1f1)][_0x5e1fe5(0x218)](_0x855d09[_0x5e1fe5(0x253)]['id']);if(_0x30b435){if(_0x5e1fe5(0x1eb)===this[_0x5e1fe5(0x216)]){const _0x137cdf=this[_0x5e1fe5(0x228)][_0x5e1fe5(0x20e)](_0x855d09[_0x5e1fe5(0x253)]['id']);_0x137cdf&&_0x2ce398(_0x137cdf[_0x5e1fe5(0x233)](_0x5e1fe5(0x1e3))||_0x137cdf);}else{if(_0x5e1fe5(0x266)===this[_0x5e1fe5(0x216)]){const _0xbcc161={'target':_0x30b435[_0x5e1fe5(0x222)],'viewportOffset':{'top':0x55,'left':0x0,'bottom':0x0,'right':0x0},'ancestorOffset':0x14,'alignToTop':!0x0};_0x25bb03(_0xbcc161);}}this[_0x5e1fe5(0x228)][_0x5e1fe5(0x24e)](_0x855d09[_0x5e1fe5(0x253)],_0x30b435[_0x5e1fe5(0x222)]);}}),this[_0xc2c51b(0x24b)]['on'](_0xc2c51b(0x267),()=>{const _0x4f2658=_0xc2c51b;this[_0x4f2658(0x228)][_0x4f2658(0x20a)]();});try{await this[_0xc2c51b(0x24b)][_0xc2c51b(0x229)]();}catch(_0xb2edf0){_0xb2edf0 instanceof Error&&_0xb2edf0[_0xc2c51b(0x25b)][_0xc2c51b(0x263)](_0xc2c51b(0x237))||(_0xb2edf0 instanceof _0x36462e?this[_0xc2c51b(0x214)](_0xb2edf0):this[_0xc2c51b(0x214)](new _0x36462e(_0xc2c51b(0x23b),this,{'error':_0xb2edf0})));}}else this[_0xc2c51b(0x214)](new _0x36462e(_0xc2c51b(0x1d8),this,{'checkId':_0x3b760e['id']}));}),this[_0x5e295e(0x1e2)](this[_0x5e295e(0x228)],_0x5e295e(0x268),()=>{const _0x242167=_0x5e295e;this[_0x242167(0x208)]();}),this[_0x5e295e(0x1e2)](this[_0x5e295e(0x228)],_0x5e295e(0x202),()=>{const _0x2d9946=_0x5e295e;this[_0x2d9946(0x208)](!0x0);}),this[_0x5e295e(0x1e2)](this[_0x5e295e(0x228)],_0x5e295e(0x1ed),()=>{const _0x4847e1=_0x5e295e;this[_0x4847e1(0x24b)]&&this[_0x4847e1(0x24b)][_0x4847e1(0x215)]();}),this[_0x5e295e(0x1e2)](this[_0x5e295e(0x228)],_0x5e295e(0x1d0),()=>{const _0x8f209a=_0x5e295e;this[_0x8f209a(0x208)](!0x0);}),this[_0x5e295e(0x1e2)](this[_0x5e295e(0x228)],_0x5e295e(0x22e),()=>{const _0x329ad6=_0x5e295e;if(!this[_0x329ad6(0x24b)])return;const _0x7337bd=this[_0x329ad6(0x24b)][_0x329ad6(0x200)]();_0x7337bd[_0x329ad6(0x241)]&&(this[_0x329ad6(0x1f1)][_0x329ad6(0x1db)](_0x7337bd[_0x329ad6(0x225)](_0x401f01=>_0x401f01['id'])),this[_0x329ad6(0x24b)][_0x329ad6(0x1f9)](),this[_0x329ad6(0x24b)][_0x329ad6(0x1e9)]());}),this[_0x5e295e(0x1e2)](this[_0x5e295e(0x228)],_0x5e295e(0x1ff),(_0x428d00,_0x4f36d6)=>{const _0x3e2e2f=_0x5e295e;this[_0x3e2e2f(0x24b)]&&this[_0x3e2e2f(0x24b)][_0x3e2e2f(0x278)](_0x4f36d6['id'])&&(this[_0x3e2e2f(0x1f1)][_0x3e2e2f(0x1db)]([_0x4f36d6['id']]),this[_0x3e2e2f(0x24b)][_0x3e2e2f(0x22d)](_0x4f36d6['id']),this[_0x3e2e2f(0x228)][_0x3e2e2f(0x1ea)](),this[_0x3e2e2f(0x24b)][_0x3e2e2f(0x1e9)](_0x4f36d6['id']));}),this[_0x5e295e(0x1e2)](this[_0x5e295e(0x228)],_0x5e295e(0x227),(_0x3fe72d,_0x3853a1)=>{const _0x581dc7=_0x5e295e;this[_0x581dc7(0x24b)]&&this[_0x581dc7(0x24b)][_0x581dc7(0x278)](_0x3853a1['id'])&&(this[_0x581dc7(0x1f1)][_0x581dc7(0x23a)](_0x3853a1['id']),this[_0x581dc7(0x24b)][_0x581dc7(0x238)](_0x3853a1['id']),this[_0x581dc7(0x228)][_0x581dc7(0x1ea)](),this[_0x581dc7(0x24b)][_0x581dc7(0x1e9)](_0x3853a1['id']));}),this[_0x5e295e(0x1e2)](this[_0x5e295e(0x228)],_0x5e295e(0x256),(_0x31b5b6,_0xb683e)=>{const _0x1904cf=_0x5e295e;this[_0x1904cf(0x1e6)]=_0xb683e['on'],this[_0x1904cf(0x22c)](this[_0x1904cf(0x1e6)]);}),this[_0x5e295e(0x1e2)](this[_0x5e295e(0x228)],_0x5e295e(0x209),async()=>{const _0x1f0126=_0x5e295e;this[_0x1f0126(0x24b)]&&await this[_0x1f0126(0x24b)][_0x1f0126(0x1ef)]();}),this[_0x5e295e(0x1e2)](this[_0x5e295e(0x228)],_0x5e295e(0x1de),(_0x2dde25,_0x43ffcf)=>{const _0x4db63c=_0x5e295e;this[_0x4db63c(0x24b)]&&(this[_0x4db63c(0x216)]=_0x4db63c(0x266),this[_0x4db63c(0x24b)][_0x4db63c(0x1de)](_0x43ffcf['id']));}),this[_0x5e295e(0x1e2)](this[_0x5e295e(0x228)],_0x5e295e(0x23d),()=>{const _0x3fc4b6=_0x5e295e;this[_0x3fc4b6(0x24b)]&&this[_0x3fc4b6(0x24b)][_0x3fc4b6(0x23d)]();}),this[_0x5e295e(0x1e2)](this[_0x5e295e(0x1f1)][_0x5e295e(0x24d)],_0x5e295e(0x1fe),(_0x5d81b0,_0xfe927e)=>{const _0x1600cf=_0x5e295e;this[_0x1600cf(0x24b)]&&(this[_0x1600cf(0x216)]=_0x1600cf(0x1eb),this[_0x1600cf(0x24b)][_0x1600cf(0x1de)](_0xfe927e[_0x1600cf(0x257)]));});}[_0xd39d4c(0x208)](_0x1ab674=!0x1){const _0x2b9d48=_0xd39d4c;this[_0x2b9d48(0x24b)]&&(this[_0x2b9d48(0x24b)][_0x2b9d48(0x1fa)]||this[_0x2b9d48(0x24b)][_0x2b9d48(0x1e9)](),this[_0x2b9d48(0x24b)][_0x2b9d48(0x215)](),this[_0x2b9d48(0x24b)][_0x2b9d48(0x240)](),this[_0x2b9d48(0x24b)]=void 0x0),_0x1ab674&&this[_0x2b9d48(0x228)][_0x2b9d48(0x245)](),this[_0x2b9d48(0x1f1)][_0x2b9d48(0x26f)](),this[_0x2b9d48(0x1f1)][_0x2b9d48(0x223)](),this[_0x2b9d48(0x216)]=null;const _0x30d1e1=this[_0x2b9d48(0x1f1)][_0x2b9d48(0x20f)]();_0x30d1e1&&_0x30d1e1[_0x2b9d48(0x255)][_0x2b9d48(0x234)][_0x2b9d48(0x253)](_0xd9c2ea=>{const _0xf9491f=_0x2b9d48,_0x2f891c=_0x30d1e1[_0xf9491f(0x255)][_0xf9491f(0x234)][_0xf9491f(0x21b)][_0xf9491f(0x1dd)]();_0xd9c2ea[_0xf9491f(0x22a)](_0xf9491f(0x26e),_0x2f891c),_0xd9c2ea[_0xf9491f(0x22a)](_0xf9491f(0x26c),_0x2f891c);});}[_0xd39d4c(0x22c)](_0x109d7e){const _0x29b6b7=_0xd39d4c,_0x483d65=this[_0x29b6b7(0x1f1)][_0x29b6b7(0x20f)]();_0x109d7e?this[_0x29b6b7(0x228)][_0x29b6b7(0x210)]():this[_0x29b6b7(0x228)][_0x29b6b7(0x25a)](),_0x483d65&&_0x483d65[_0x29b6b7(0x255)][_0x29b6b7(0x234)][_0x29b6b7(0x253)](_0x1fee2c=>{const _0x14031d=_0x29b6b7,_0x171109=_0x483d65[_0x14031d(0x255)][_0x14031d(0x234)][_0x14031d(0x21b)][_0x14031d(0x1dd)]();_0x1fee2c[_0x14031d(0x22a)](_0x14031d(0x26e),_0x171109),_0x1fee2c[_0x14031d(0x22a)](_0x14031d(0x26c),_0x171109),_0x1fee2c[_0x14031d(0x220)](_0x109d7e?_0x14031d(0x26e):_0x14031d(0x26c),_0x171109);});}[_0xd39d4c(0x271)](_0x4fdc6a){const _0x28eeeb=_0xd39d4c;return _0x4fdc6a[_0x28eeeb(0x225)](_0x4f5a35=>{const _0x32f53e=_0x28eeeb,_0x5c591b=_0x32f53e(0x275)+_0x4f5a35['id'][_0x32f53e(0x1d7)]()[_0x32f53e(0x1f6)]('-','_'),_0x1ff734={..._0x4f5a35,'title':this[_0x32f53e(0x219)](_0x5c591b+_0x32f53e(0x249),_0x4f5a35[_0x32f53e(0x1f8)]),'description':this[_0x32f53e(0x219)](_0x5c591b+_0x32f53e(0x23e),_0x4f5a35[_0x32f53e(0x20b)])};return _0x4f5a35[_0x32f53e(0x242)]&&(_0x1ff734[_0x32f53e(0x242)]=_0x4f5a35[_0x32f53e(0x242)][_0x32f53e(0x225)](_0x33672e=>({..._0x33672e,'label':this[_0x32f53e(0x219)](_0x5c591b+_0x32f53e(0x247),_0x33672e[_0x32f53e(0x204)]||''),'data':_0x33672e[_0x32f53e(0x274)]?_0x33672e[_0x32f53e(0x274)][_0x32f53e(0x225)](_0x13878e=>({..._0x13878e,'label':this[_0x32f53e(0x219)](_0x5c591b+_0x32f53e(0x1f5)+_0x13878e['id'][_0x32f53e(0x1d7)](),_0x13878e[_0x32f53e(0x204)])})):void 0x0}))),_0x1ff734;});}[_0xd39d4c(0x219)](_0x58d3d5,_0x565925){const _0x9a3144=_0xd39d4c,_0x4e1da9=this[_0x9a3144(0x207)][_0x9a3144(0x1cf)],_0x516804=_0x3d44b1(_0x4e1da9,_0x58d3d5);return _0x516804===_0x58d3d5?_0x565925:_0x516804;}[_0xd39d4c(0x214)](_0x1cc540){const _0x5ff566=_0xd39d4c;_0x232d3c(_0x1cc540[_0x5ff566(0x25b)]),this[_0x5ff566(0x228)][_0x5ff566(0x25e)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xcf4cc3=_0x20fd;(function(_0x1f33a5,_0xc090ee){const _0x56869a=_0x20fd,_0x152953=_0x1f33a5();while(!![]){try{const _0x18a503=parseInt(_0x56869a(0x288))/0x1*(-parseInt(_0x56869a(0x21d))/0x2)+-parseInt(_0x56869a(0x201))/0x3+parseInt(_0x56869a(0x2a4))/0x4+-parseInt(_0x56869a(0x246))/0x5*(parseInt(_0x56869a(0x256))/0x6)+parseInt(_0x56869a(0x245))/0x7*(-parseInt(_0x56869a(0x28f))/0x8)+-parseInt(_0x56869a(0x1d7))/0x9+-parseInt(_0x56869a(0x209))/0xa*(-parseInt(_0x56869a(0x277))/0xb);if(_0x18a503===_0xc090ee)break;else _0x152953['push'](_0x152953['shift']());}catch(_0x1ceb47){_0x152953['push'](_0x152953['shift']());}}}(_0x38a9,0xa41fd));import{InsertOperation as _0x14f967,MarkerOperation as _0x2d514b,ModelDocumentFragment as _0x12da2a,ModelPosition as _0x41f9d9,ModelRange as _0x3c5abf,ModelTreeWalker as _0x16699b,transformOperationSets as _0x50fff2}from'ckeditor5/src/engine.js';import{DomEmitterMixin as _0x56fb01,EmitterMixin as _0x11a948}from'ckeditor5/src/utils.js';import{ContextPlugin as _0x542b4f}from'ckeditor5/src/core.js';import{DocumentCompare as _0x2de56c,DATA_ID_MODEL_ATTRIBUTE as _0x303dc0,DATA_ID_VIEW_ATTRIBUTE as _0x19ffec}from'ckeditor5-collaboration/src/collaboration-core.js';import{getEditorFromContext as _0x3df94b}from'../aicore/utils/geteditorfromcontext.js';import{AIEditing as _0x2f2729}from'../aicore/aiediting.js';const ue=_0xcf4cc3(0x244);function _0x38a9(){const _0x3f6392=['ck-ai_review-mode-marker_context-end','1541749KgwPSS','ck-ai_review-mode-marker_context-start','flat','_domEmitter','element','schema','_shiftOperation','howMany','add','text','split','groupId','includes','ck-ai_review-mode-marker_context-','stringify','parentElement','_eventEmitter','1BjWyDh','getRoots','createUIElement','exec','keys','suggestion:insertion:id:authorId:','createPositionAt','40uqXvrf','ai-review-mode','parent','htmlProcessor','toView','model:$text','length','_clone','name','remove-context','elements','editing','document','[data-id=\x22','data-marker-id','isAtStart','_createGetContentFn','isTouching','getChild','pluginName','getShiftedBy','4671960vJMOuD','remove-only','isInline','model','start','insertContent','markers','offsetSize','backward','markerToHighlight','suggestion:deletion:id:authorId:','className','pop','map','3391290yCyBni','clearAllMarkers','concat','removeMarker','ck-ai_review-mode-marker_hide','filter','getDiff','span','_removeChildren','applyOperation','hasClass','every','remove-text','for','data','isOfficialPlugin','getMarkerElementForChange','documentFragment','version','from','position','warn','getRange','getEditor','outerHTML','rejectChange','offset','afterInit','getDocumentData','querySelector','baseVersion','_groupAdjacentOperations','isOpening','affectsData','_changeRangeOwnerDocument','ck-ai_review-mode-marker_underline','requires','click','newRange','$markedRemove','emitter','set','575739cuhFjc','_removeAttribute','AIReviewModeEditing','sort','_translateOperationToEditorContent','operationsA','htmlWriter','attributeToAttribute','190CpVkcm','path','$textProxy','insert','parse','_getMarkersDataForGroup','enableReadOnlyMode','history','get','downcast','applyChange','view','nodes','_createGetContextFn','processor','marker','oldRange','isDocumentOperation','getHtml','hasContentAfter','882006bwhJSk','type','createRange','_changeRange','getRoot','getPath','caption','jumpTo','_sortMarkers','[data-marker-id=\x22','deleteContent','createPositionAfter','addMarker','createRawElement','$documentFragment','getOperations','_findMarkerElement','toDomElement','switchToReadOnly','batch','_appendChild','getChildren','markerName','change','createSelection','dataDowncast','target','diffContent','forward','_changePosition','ck-ai_review-mode-marker_strikethrough','hasAttribute','plugins','domConverter','_changePositionOwnerDocument','_insertMarkers','_findAdjacentContextDistance','fire','ellipsisBefore','reviewmode-','1255429mZKILt','6261485KYWljo','createText','_getOperationEnd','append','operationsIsolated','values','DocumentCompare','AIEditing','listenTo','index','markerToElement','getDomRoot','_setAttribute','viewToDom','_markers','startsWith','6pdjJuS','toData','editingDowncast','hasContentBefore','childCount','ck-ai_review-mode-marker_','ellipsisAfter','getAttribute','clone','isPremiumPlugin','suggestion-context','No\x20element\x20found\x20for\x20ID:\x20','_createGetContentUsingDataIdFn','isAtEnd','clear','context','switchToEdit','_nextDataId','createDocumentFragment','push','conversion','markChangePositionInEditorContent','disableReadOnlyMode','_getChangeContext','_changeOperationOwnerDocument','_getOperationStart','delete','end','addOperation','changeMarkerClick','innerHTML','ck-ai_review-mode-marker_add'];_0x38a9=function(){return _0x3f6392;};return _0x38a9();}function _0x20fd(_0xebb83c,_0x22f3f7){const _0x38a92c=_0x38a9();return _0x20fd=function(_0x20fdd9,_0x44b22a){_0x20fdd9=_0x20fdd9-0x1cb;let _0x1083a7=_0x38a92c[_0x20fdd9];return _0x1083a7;},_0x20fd(_0xebb83c,_0x22f3f7);}export class AIReviewModeEditing extends _0x542b4f{static get[_0xcf4cc3(0x2a2)](){const _0x5b7991=_0xcf4cc3;return _0x5b7991(0x203);}static get[_0xcf4cc3(0x1fb)](){return[_0x2de56c,_0x2f2729];}static get[_0xcf4cc3(0x1e6)](){return!0x0;}static get[_0xcf4cc3(0x25f)](){return!0x0;}[_0xcf4cc3(0x254)]=new Map();[_0xcf4cc3(0x27a)];[_0xcf4cc3(0x287)];constructor(_0x462309){const _0x36a860=_0xcf4cc3;super(_0x462309),this[_0x36a860(0x27a)]=new(_0x56fb01())(),this[_0x36a860(0x287)]=new(_0x11a948())();}get[_0xcf4cc3(0x1ff)](){const _0x136b2a=_0xcf4cc3;return this[_0x136b2a(0x287)];}[_0xcf4cc3(0x1f2)](){const _0x3d2b07=_0xcf4cc3,_0x52cc9f=_0x3df94b(this[_0x3d2b07(0x265)]);_0x52cc9f[_0x3d2b07(0x26a)][_0x3d2b07(0x1e4)](_0x3d2b07(0x258))[_0x3d2b07(0x250)]({'model':ue+_0x3d2b07(0x20c),'view':(_0x19e32a,{writer:_0x5822a3})=>{const _0x161915=_0x3d2b07,_0xb6bea=this[_0x161915(0x254)][_0x161915(0x211)](_0x19e32a[_0x161915(0x233)]),_0x10dbfa={'class':_0x161915(0x275),'data-marker-id':_0x19e32a[_0x161915(0x233)]};return _0x5822a3[_0x161915(0x28a)](_0x161915(0x1de),_0x10dbfa,function(_0x4d0221){const _0xf9ddce=_0x161915,_0x1ce31f=this[_0xf9ddce(0x22e)](_0x4d0221);return _0x1ce31f[_0xf9ddce(0x274)]=_0xb6bea?.[_0xf9ddce(0x280)]||'',_0x1ce31f;});}}),_0x52cc9f[_0x3d2b07(0x26a)][_0x3d2b07(0x1e4)](_0x3d2b07(0x258))[_0x3d2b07(0x1d2)]({'model':ue+_0x3d2b07(0x2a5),'view':_0x1ce1b4=>({'classes':_0x3d2b07(0x23b),'attributes':{'data-marker-id':_0x1ce1b4[_0x3d2b07(0x233)]}})}),_0x52cc9f[_0x3d2b07(0x26a)][_0x3d2b07(0x1e4)](_0x3d2b07(0x258))[_0x3d2b07(0x1d2)]({'model':ue+_0x3d2b07(0x298),'view':_0x41af6a=>({'classes':_0x3d2b07(0x1fa),'attributes':{'data-marker-id':_0x41af6a[_0x3d2b07(0x233)]}})}),_0x52cc9f[_0x3d2b07(0x26a)][_0x3d2b07(0x1e4)](_0x3d2b07(0x258))[_0x3d2b07(0x1d2)]({'model':ue+_0x3d2b07(0x1e3),'view':_0x4162d1=>({'classes':_0x3d2b07(0x1db),'attributes':{'data-marker-id':_0x4162d1[_0x3d2b07(0x233)]}})}),_0x52cc9f[_0x3d2b07(0x26a)][_0x3d2b07(0x1e4)](_0x3d2b07(0x236))[_0x3d2b07(0x250)]({'model':ue+_0x3d2b07(0x260),'view':(_0xbdd44b,{writer:_0x1716e6})=>_0x1716e6[_0x3d2b07(0x22a)](_0x3d2b07(0x1de),{'class':_0x3d2b07(0x284)+(_0xbdd44b[_0x3d2b07(0x1f7)]?_0x3d2b07(0x1cd):_0x3d2b07(0x271))})}),_0x52cc9f[_0x3d2b07(0x26a)][_0x3d2b07(0x1e4)](_0x3d2b07(0x212))[_0x3d2b07(0x208)]({'model':_0x303dc0,'view':_0x19ffec}),this[_0x3d2b07(0x27a)][_0x3d2b07(0x24e)](document,_0x3d2b07(0x1fc),(_0x5b9ec0,_0x350346)=>{const _0x44bef9=_0x3d2b07,_0x3f4fd3=_0x350346[_0x44bef9(0x237)],_0x4d3aba=this[_0x44bef9(0x22d)](_0x3f4fd3);if(!_0x4d3aba)return;const _0x184a16=_0x4d3aba[_0x44bef9(0x25d)](_0x44bef9(0x29d)),_0x32239a=_0x184a16[_0x44bef9(0x281)](':')[_0x44bef9(0x1d5)]()?.[_0x44bef9(0x281)]('_')[0x0];this[_0x44bef9(0x287)][_0x44bef9(0x242)](_0x44bef9(0x273),{'markerId':_0x184a16,'changeId':_0x32239a});});}[_0xcf4cc3(0x1f3)](){const _0x107068=_0xcf4cc3,_0x18de28=this[_0x107068(0x265)][_0x107068(0x23d)][_0x107068(0x211)](_0x107068(0x24d)),_0x5c86ba=_0x3df94b(this[_0x107068(0x265)]),_0x144ea0=_0x5c86ba[_0x107068(0x1cc)],_0x1ff5d8=new _0x12da2a();for(const _0x232e2b of _0x144ea0[_0x107068(0x29b)][_0x107068(0x221)]()[_0x107068(0x232)]()){const _0x551e21=_0x232e2b[_0x107068(0x296)](!0x0);_0x1ff5d8[_0x107068(0x231)](_0x551e21);}for(const _0x4ebe81 of _0x144ea0[_0x107068(0x1cf)])_0x1ff5d8[_0x107068(0x1cf)][_0x107068(0x200)](_0x4ebe81[_0x107068(0x297)],this[_0x107068(0x1f9)](_0x4ebe81[_0x107068(0x1ed)]()[_0x107068(0x25e)](),_0x1ff5d8));const _0x235eab=new _0x16699b({'ignoreElementEnd':!0x0,'startPosition':_0x144ea0[_0x107068(0x28e)](_0x1ff5d8,0x0)}),_0x4b885f=new Set(),_0x184385=new Map();for(const {item:_0x486e88}of _0x235eab){if(!_0x486e88['is'](_0x107068(0x20b)))continue;const _0x48a85c=_0x486e88[_0x107068(0x291)];if((!_0x48a85c||!_0x48a85c['is'](_0x107068(0x27b),_0x107068(0x223)))&&(_0x48a85c&&_0x48a85c['is'](_0x107068(0x27b)))){let _0x425b15=_0x48a85c[_0x107068(0x25d)](_0x303dc0);_0x425b15||(_0x425b15=_0x18de28[_0x107068(0x267)](_0x4b885f),_0x48a85c[_0x107068(0x252)](_0x303dc0,_0x425b15)),_0x4b885f[_0x107068(0x27f)](_0x425b15);let _0xb7dbdc=_0x48a85c;for(;_0xb7dbdc[_0x107068(0x291)]&&!_0xb7dbdc[_0x107068(0x291)]['is'](_0x107068(0x1e8));)_0xb7dbdc=_0xb7dbdc[_0x107068(0x291)],_0xb7dbdc[_0x107068(0x23c)](_0x303dc0)&&_0xb7dbdc[_0x107068(0x202)](_0x303dc0);_0x184385[_0x107068(0x200)](_0x425b15,{'path':_0x48a85c[_0x107068(0x222)](),'getContent':this[_0x107068(0x262)](_0xb7dbdc[_0x107068(0x296)](!0x0),_0x425b15,_0x5c86ba[_0x107068(0x1e5)])}),_0x235eab[_0x107068(0x224)](_0x144ea0[_0x107068(0x228)](_0x48a85c));}}return{'content':_0x5c86ba[_0x107068(0x1e5)][_0x107068(0x217)][_0x107068(0x257)](_0x5c86ba[_0x107068(0x1e5)][_0x107068(0x293)](_0x1ff5d8)),'version':_0x5c86ba[_0x107068(0x1cc)][_0x107068(0x29b)][_0x107068(0x1e9)],'elements':_0x184385};}[_0xcf4cc3(0x238)](_0x42daa4,_0x3f79f8){const _0x22faa6=_0xcf4cc3,_0x29a42e=_0x3df94b(this[_0x22faa6(0x265)]),_0x3ffa20=_0x29a42e[_0x22faa6(0x1e5)][_0x22faa6(0x20d)](_0x42daa4,_0x22faa6(0x22b)),_0x5b2633=_0x29a42e[_0x22faa6(0x1cc)][_0x22faa6(0x28e)](_0x3ffa20,0x0),_0x103e57=this[_0x22faa6(0x265)][_0x22faa6(0x23d)][_0x22faa6(0x211)](_0x22faa6(0x24c))[_0x22faa6(0x1dd)](_0x42daa4,_0x3f79f8,{'anchor':_0x5b2633,'markDeletions':!0x0})[_0x22faa6(0x22c)]()[_0x22faa6(0x1dc)](_0x3a2c6e=>_0x22faa6(0x20c)===_0x3a2c6e[_0x22faa6(0x21e)]||_0x22faa6(0x218)===_0x3a2c6e[_0x22faa6(0x21e)]&&_0x3a2c6e[_0x22faa6(0x297)][_0x22faa6(0x255)](_0x22faa6(0x1fe))),_0x1088b1=this[_0x22faa6(0x1f6)](_0x103e57),_0x31ab39=[];let _0xa0358d=0x0;return _0x29a42e[_0x22faa6(0x1cc)][_0x22faa6(0x234)](_0x3f0500=>{const _0x46a871=_0x22faa6;for(let _0x22e2d8=0x0;_0x22e2d8<_0x1088b1[_0x46a871(0x295)];_0x22e2d8++){const _0x4e6a47=_0x1088b1[_0x22e2d8],_0x12b328=_0x3f0500[_0x46a871(0x268)]();for(const _0x530672 of _0x3ffa20[_0x46a871(0x232)]())_0x3f0500[_0x46a871(0x249)](_0x530672[_0x46a871(0x296)](!0x0),_0x12b328);for(const _0x4c48db of _0x4e6a47[_0x46a871(0x24a)])if(_0x46a871(0x20c)===_0x4c48db[_0x46a871(0x21e)]){const _0x36d50f=_0x4c48db;_0x36d50f[_0x46a871(0x1f5)]=null,_0x36d50f[_0x46a871(0x21a)]=!0x1,this[_0x46a871(0x26e)](_0x36d50f,_0x12b328),_0x3f0500[_0x46a871(0x230)][_0x46a871(0x272)](_0x4c48db),_0x29a42e[_0x46a871(0x1cc)][_0x46a871(0x1e0)](_0x4c48db);const _0x589d71=_0x46a871(0x28d)+_0xa0358d++,_0x3d94d7=_0x29a42e[_0x46a871(0x1cc)][_0x46a871(0x21f)](_0x36d50f[_0x46a871(0x1eb)],_0x36d50f[_0x46a871(0x1eb)][_0x46a871(0x2a3)](_0x36d50f[_0x46a871(0x27e)]));_0x12b328[_0x46a871(0x1cf)][_0x46a871(0x200)](_0x589d71,_0x3d94d7);}else{if(_0x46a871(0x218)===_0x4c48db[_0x46a871(0x21e)]&&_0x4c48db[_0x46a871(0x297)][_0x46a871(0x255)](_0x46a871(0x1fe))){const _0x405fd4=_0x4c48db,_0x4fb9ae=_0x46a871(0x1d3)+_0xa0358d++;this[_0x46a871(0x26e)](_0x405fd4,_0x12b328),_0x12b328[_0x46a871(0x1cf)][_0x46a871(0x200)](_0x4fb9ae,_0x405fd4[_0x46a871(0x1fd)]);}}const _0x373a59=this[_0x46a871(0x26d)](this[_0x46a871(0x23f)](this[_0x46a871(0x26f)](_0x4e6a47[_0x46a871(0x24a)][0x0]),_0x12b328),this[_0x46a871(0x23f)](this[_0x46a871(0x248)](_0x4e6a47[_0x46a871(0x24a)][_0x4e6a47[_0x46a871(0x24a)][_0x46a871(0x295)]-0x1]),_0x12b328));_0x12b328[_0x46a871(0x1cf)][_0x46a871(0x200)](ue+_0x46a871(0x260),new _0x3c5abf(_0x373a59[_0x46a871(0x1cd)],_0x373a59[_0x46a871(0x271)])),_0x31ab39[_0x46a871(0x269)]({..._0x4e6a47,'context':this[_0x46a871(0x216)](_0x12b328,_0x29a42e[_0x46a871(0x1e5)],{'ellipsisBefore':_0x373a59[_0x46a871(0x259)],'ellipsisAfter':_0x373a59[_0x46a871(0x21c)]}),'content':this[_0x46a871(0x29f)](_0x12b328,_0x29a42e[_0x46a871(0x1e5)])});}}),_0x31ab39;}[_0xcf4cc3(0x26b)](_0x54b720,_0x58cdfd){const _0x3c4cbf=_0xcf4cc3,_0x3870ef=_0x54b720[0x0][_0x3c4cbf(0x291)]['id'],_0x5a31fe=_0x58cdfd[_0x3c4cbf(0x299)][_0x3c4cbf(0x211)](_0x3870ef);if(!_0x5a31fe)return void console[_0x3c4cbf(0x1ec)](_0x3c4cbf(0x261)+_0x3870ef);const _0x33cc6a=_0x5a31fe[_0x3c4cbf(0x20a)],_0x599ad7=_0x3df94b(this[_0x3c4cbf(0x265)]),_0x47ea92=_0x599ad7[_0x3c4cbf(0x1cc)][_0x3c4cbf(0x29b)][_0x3c4cbf(0x210)][_0x3c4cbf(0x22c)](_0x58cdfd[_0x3c4cbf(0x1e9)]),_0x3e11c8=[];for(const _0x366336 of _0x54b720){const _0x30b682=_0x366336[_0x3c4cbf(0x24a)][_0x3c4cbf(0x1d6)](_0x302910=>this[_0x3c4cbf(0x205)](_0x302910,_0x33cc6a,_0x599ad7[_0x3c4cbf(0x1cc)][_0x3c4cbf(0x29b)][_0x3c4cbf(0x289)]()[0x0]));if(!_0x30b682||!_0x30b682[_0x3c4cbf(0x295)])continue;const _0x245880=_0x30b682[_0x3c4cbf(0x1e2)](_0x3ccedb=>_0x3c4cbf(0x218)===_0x3ccedb[_0x3c4cbf(0x21e)]&&_0x3ccedb[_0x3c4cbf(0x297)][_0x3c4cbf(0x255)](_0x3c4cbf(0x1fe))),_0x33cc3f={'document':_0x599ad7[_0x3c4cbf(0x1cc)][_0x3c4cbf(0x29b)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x3a2baa=_0x50fff2(_0x30b682,_0x47ea92,_0x33cc3f)[_0x3c4cbf(0x206)];for(const _0x1ee042 of _0x3a2baa)if(_0x3c4cbf(0x20c)===_0x1ee042[_0x3c4cbf(0x21e)]){const _0x2e3f0f=_0x1ee042,_0x506b88=_0x2e3f0f[_0x3c4cbf(0x215)];let _0x45f07f='';for(const _0x421e51 of _0x506b88)_0x421e51&&_0x421e51['is'](_0x3c4cbf(0x294))&&(_0x45f07f+=_0x421e51[_0x3c4cbf(0x1e5)]);_0x3e11c8[_0x3c4cbf(0x269)]({'start':_0x2e3f0f[_0x3c4cbf(0x1eb)],'end':_0x2e3f0f[_0x3c4cbf(0x1eb)],'type':_0x3c4cbf(0x20c),'groupId':_0x366336['id'],'text':_0x45f07f});}else{if(_0x3c4cbf(0x218)===_0x1ee042[_0x3c4cbf(0x21e)]&&_0x1ee042[_0x3c4cbf(0x297)][_0x3c4cbf(0x255)](_0x3c4cbf(0x1fe))){const _0x1dc56d=_0x1ee042;let _0x4a238b=_0x3c4cbf(0x1e3);if(_0x245880){const _0xa5f90d=this[_0x3c4cbf(0x241)](_0x1dc56d[_0x3c4cbf(0x1fd)][_0x3c4cbf(0x1cd)],_0x3c4cbf(0x1d1),_0x599ad7[_0x3c4cbf(0x1cc)][_0x3c4cbf(0x27c)]),_0x63d419=this[_0x3c4cbf(0x241)](_0x1dc56d[_0x3c4cbf(0x1fd)][_0x3c4cbf(0x271)],_0x3c4cbf(0x239),_0x599ad7[_0x3c4cbf(0x1cc)][_0x3c4cbf(0x27c)]);if(_0xa5f90d||_0x63d419){const _0x42ebde=_0x1dc56d[_0x3c4cbf(0x1fd)][_0x3c4cbf(0x1cd)][_0x3c4cbf(0x2a3)](-_0xa5f90d),_0x3fce91=_0x1dc56d[_0x3c4cbf(0x1fd)][_0x3c4cbf(0x271)][_0x3c4cbf(0x2a3)](_0x63d419);_0x3e11c8[_0x3c4cbf(0x269)]({'start':_0x42ebde,'end':_0x3fce91,'groupId':_0x366336['id'],'type':_0x3c4cbf(0x298)});}else _0x4a238b=_0x3c4cbf(0x2a5);}_0x3e11c8[_0x3c4cbf(0x269)]({'start':_0x1dc56d[_0x3c4cbf(0x1fd)][_0x3c4cbf(0x1cd)],'end':_0x1dc56d[_0x3c4cbf(0x1fd)][_0x3c4cbf(0x271)],'groupId':_0x366336['id'],'type':_0x4a238b});}}}this[_0x3c4cbf(0x240)](_0x3e11c8);}[_0xcf4cc3(0x1d8)](){const _0x4387ee=_0xcf4cc3;_0x3df94b(this[_0x4387ee(0x265)])[_0x4387ee(0x1cc)][_0x4387ee(0x234)](_0x4e4820=>{const _0x149f94=_0x4387ee;for(const _0x268f3b of this[_0x149f94(0x254)][_0x149f94(0x28c)]())_0x4e4820[_0x149f94(0x1da)](_0x268f3b);}),this[_0x4387ee(0x254)][_0x4387ee(0x264)]();}[_0xcf4cc3(0x22f)](){const _0x1c9596=_0xcf4cc3;_0x3df94b(this[_0x1c9596(0x265)])[_0x1c9596(0x20f)](_0x1c9596(0x290));}[_0xcf4cc3(0x266)](){const _0x490739=_0xcf4cc3;_0x3df94b(this[_0x490739(0x265)])[_0x490739(0x26c)](_0x490739(0x290));}[_0xcf4cc3(0x213)](_0x3a1844){const _0x5a5ba5=_0xcf4cc3,_0x8a539f=_0x3df94b(this[_0x5a5ba5(0x265)]),_0x118e38=_0x8a539f[_0x5a5ba5(0x1cc)],_0x15b7ae=_0x3a1844[_0x5a5ba5(0x1d6)](_0x30c698=>this[_0x5a5ba5(0x20e)](_0x30c698))[_0x5a5ba5(0x279)]();_0x118e38[_0x5a5ba5(0x234)](_0x426c4e=>{const _0x4cb8f0=_0x5a5ba5;for(const _0x2c79c2 of _0x15b7ae){const _0x48876f=_0x8a539f[_0x4cb8f0(0x1cc)][_0x4cb8f0(0x1cf)][_0x4cb8f0(0x211)](_0x2c79c2['id']);_0x48876f&&(_0x4cb8f0(0x20c)===_0x2c79c2[_0x4cb8f0(0x21e)]?_0x118e38[_0x4cb8f0(0x1ce)](_0x426c4e[_0x4cb8f0(0x247)](_0x2c79c2[_0x4cb8f0(0x280)]||''),_0x48876f[_0x4cb8f0(0x1ed)]()[_0x4cb8f0(0x1cd)]):_0x4cb8f0(0x1e3)!==_0x2c79c2[_0x4cb8f0(0x21e)]&&_0x4cb8f0(0x2a5)!==_0x2c79c2[_0x4cb8f0(0x21e)]||_0x118e38[_0x4cb8f0(0x227)](_0x118e38[_0x4cb8f0(0x235)](_0x48876f[_0x4cb8f0(0x1ed)]())),_0x426c4e[_0x4cb8f0(0x1da)](_0x2c79c2['id']),this[_0x4cb8f0(0x254)][_0x4cb8f0(0x270)](_0x2c79c2['id']));}});}[_0xcf4cc3(0x1f0)](_0x507baf){const _0x352159=_0xcf4cc3,_0x19016d=_0x3df94b(this[_0x352159(0x265)]),_0x1a0904=this[_0x352159(0x20e)](_0x507baf);_0x19016d[_0x352159(0x1cc)][_0x352159(0x234)](_0x511227=>{const _0xcb5dd0=_0x352159;for(const _0x519995 of _0x1a0904)_0x511227[_0xcb5dd0(0x1da)](_0x519995['id']),this[_0xcb5dd0(0x254)][_0xcb5dd0(0x270)](_0x519995['id']);});}[_0xcf4cc3(0x1ee)](){const _0x1d80d1=_0xcf4cc3;return _0x3df94b(this[_0x1d80d1(0x265)]);}[_0xcf4cc3(0x1e7)](_0xb47957){const _0x5814aa=_0xcf4cc3,_0x25f005=Array[_0x5814aa(0x1ea)](this[_0x5814aa(0x254)][_0x5814aa(0x24b)]())[_0x5814aa(0x1dc)](_0xe2ede=>_0xe2ede[_0x5814aa(0x282)]===_0xb47957);if(!_0x25f005[_0x5814aa(0x295)])return null;const _0x12e45a=0x1===_0x25f005[_0x5814aa(0x295)]?_0x25f005[0x0]:this[_0x5814aa(0x225)](_0x25f005)[0x0],_0x2f0d8c=_0x3df94b(this[_0x5814aa(0x265)]),_0x94b1ad=_0x2f0d8c[_0x5814aa(0x1cc)][_0x5814aa(0x1cf)][_0x5814aa(0x211)](_0x12e45a['id']);if(!_0x94b1ad)return null;const _0x2388ae=_0x94b1ad[_0x5814aa(0x1ed)](),_0x232fd7=_0x2f0d8c[_0x5814aa(0x29a)][_0x5814aa(0x214)][_0x5814aa(0x251)]();if(!_0x232fd7||!_0x2388ae)return null;const _0x53f285=_0x232fd7[_0x5814aa(0x1f4)](_0x5814aa(0x226)+_0x12e45a['id']+'\x22]');return _0x53f285?{'modelRange':_0x2388ae,'domElement':_0x53f285}:null;}[_0xcf4cc3(0x205)](_0x260487,_0x19fec3,_0x4dcc91){const _0x5d29c8=_0xcf4cc3;if(_0x5d29c8(0x20c)===_0x260487[_0x5d29c8(0x21e)]){const _0x240b6d=_0x260487;return new _0x14f967(this[_0x5d29c8(0x23a)](_0x240b6d[_0x5d29c8(0x1eb)],_0x19fec3[_0x5d29c8(0x1d9)](_0x240b6d[_0x5d29c8(0x1eb)][_0x5d29c8(0x1f1)]),_0x4dcc91),_0x240b6d[_0x5d29c8(0x215)],_0x240b6d[_0x5d29c8(0x1f5)]);}if(_0x5d29c8(0x218)===_0x260487[_0x5d29c8(0x21e)]&&_0x260487[_0x5d29c8(0x297)][_0x5d29c8(0x255)](_0x5d29c8(0x1fe))){const _0x37d8dd=_0x260487;return new _0x2d514b(_0x37d8dd[_0x5d29c8(0x297)],_0x37d8dd[_0x5d29c8(0x219)],this[_0x5d29c8(0x220)](_0x37d8dd[_0x5d29c8(0x1fd)],_0x19fec3[_0x5d29c8(0x1d9)](_0x37d8dd[_0x5d29c8(0x1fd)][_0x5d29c8(0x1cd)][_0x5d29c8(0x1f1)]),_0x19fec3[_0x5d29c8(0x1d9)](_0x37d8dd[_0x5d29c8(0x1fd)][_0x5d29c8(0x271)][_0x5d29c8(0x1f1)]),_0x4dcc91),_0x37d8dd[_0x5d29c8(0x254)],_0x37d8dd[_0x5d29c8(0x1f8)],_0x37d8dd[_0x5d29c8(0x1f5)]);}return _0x260487;}[_0xcf4cc3(0x1f6)](_0x5d53fa){const _0x1a5298=_0xcf4cc3;if(!_0x5d53fa[_0x1a5298(0x295)])return[];const _0x5bfc0b=[];let _0x26b0ef=0x0,_0x293a5c=0x0,_0x2a87c0=[];for(let _0x2a2f48=0x0;_0x2a2f48<=_0x5d53fa[_0x1a5298(0x295)];_0x2a2f48++){const _0x4e3fff=_0x5d53fa[_0x2a2f48],_0x58e272=_0x5d53fa[_0x2a2f48-0x1];!_0x4e3fff||_0x58e272&&!this[_0x1a5298(0x248)](_0x58e272)[_0x1a5298(0x2a0)](this[_0x1a5298(0x26f)](_0x4e3fff))?(_0x5bfc0b[_0x1a5298(0x269)]({'operations':_0x2a87c0,'operationsIsolated':_0x2a87c0[_0x1a5298(0x1d6)](_0x47da75=>this[_0x1a5298(0x27d)](_0x47da75[_0x1a5298(0x25e)](),-_0x293a5c)),'groupOffset':_0x26b0ef}),_0x2a87c0=_0x4e3fff?[_0x4e3fff]:[],_0x293a5c+=_0x26b0ef,_0x26b0ef=0x0):_0x2a87c0[_0x1a5298(0x269)](_0x4e3fff),_0x4e3fff&&_0x1a5298(0x20c)===_0x4e3fff[_0x1a5298(0x21e)]&&(_0x26b0ef+=_0x4e3fff[_0x1a5298(0x27e)]);}return _0x5bfc0b;}[_0xcf4cc3(0x241)](_0x4e8633,_0x417c01,_0x3d753f,_0x219aab=0x1){const _0x1ef264=_0xcf4cc3,_0x6fe276=new _0x16699b({'startPosition':_0x4e8633,'direction':_0x417c01});let _0x4d201a=0x0;for(let _0x292abc=0x0;_0x292abc<_0x219aab;_0x292abc++){let _0x41f763=0x0,_0x47edbf=!0x1,_0x7e1e76=_0x1ef264(0x239)===_0x417c01?/^\W*\w+/:/\w+\W*$/;for(const {item:_0x4a8770}of _0x6fe276)if(_0x4a8770['is'](_0x1ef264(0x20b))){const _0x424efd=_0x7e1e76[_0x1ef264(0x28b)](_0x4a8770[_0x1ef264(0x1e5)]);if(_0x424efd&&_0x424efd[_0x1ef264(0x295)]){if(_0x41f763+=_0x1ef264(0x239)===_0x417c01?_0x424efd[_0x1ef264(0x24f)]+_0x424efd[0x0][_0x1ef264(0x295)]:_0x4a8770[_0x1ef264(0x1e5)][_0x1ef264(0x295)]-_0x424efd[_0x1ef264(0x24f)],_0x424efd[0x0][_0x1ef264(0x295)]!==_0x4a8770[_0x1ef264(0x1e5)][_0x1ef264(0x295)])break;_0x47edbf=!0x0,_0x7e1e76=_0x1ef264(0x239)===_0x417c01?/^\w+/:/\w+$/;}else{if(_0x47edbf)break;_0x41f763+=_0x4a8770[_0x1ef264(0x1d0)];}}else{if(_0x4a8770['is'](_0x1ef264(0x27b))){_0x3d753f[_0x1ef264(0x1cb)](_0x4a8770)&&!_0x47edbf&&(_0x41f763+=0x1);break;}}_0x4d201a+=_0x41f763,_0x6fe276[_0x1ef264(0x224)](_0x4e8633[_0x1ef264(0x2a3)](_0x1ef264(0x239)===_0x417c01?_0x4d201a:-_0x4d201a));}return _0x4d201a;}[_0xcf4cc3(0x26d)](_0x1196d2,_0x597fd3){const _0x2b0f14=_0xcf4cc3,_0x20f328=_0x3df94b(this[_0x2b0f14(0x265)])[_0x2b0f14(0x1cc)][_0x2b0f14(0x27c)],_0x5226f5=this[_0x2b0f14(0x241)](_0x1196d2,_0x2b0f14(0x1d1),_0x20f328,0x6),_0x429511=this[_0x2b0f14(0x241)](_0x597fd3,_0x2b0f14(0x239),_0x20f328,0x6),_0x29ce81=_0x1196d2[_0x2b0f14(0x2a3)](-_0x5226f5),_0x20537b=_0x597fd3[_0x2b0f14(0x2a3)](_0x429511);return{'start':_0x29ce81,'end':_0x20537b,'hasContentBefore':!_0x29ce81[_0x2b0f14(0x29e)],'hasContentAfter':!_0x20537b[_0x2b0f14(0x263)]};}[_0xcf4cc3(0x240)](_0x54a83d){const _0x44b29a=_0xcf4cc3,_0x5afc73=this[_0x44b29a(0x265)][_0x44b29a(0x23d)][_0x44b29a(0x211)](_0x44b29a(0x24d)),_0x5b6c65=new Set();_0x3df94b(this[_0x44b29a(0x265)])[_0x44b29a(0x1cc)][_0x44b29a(0x234)](_0x1416c4=>{const _0x4bf082=_0x44b29a;for(const _0x66fc00 of _0x54a83d){const _0x5892f3=''+ue+_0x66fc00[_0x4bf082(0x21e)]+':'+_0x66fc00[_0x4bf082(0x282)]+'_'+_0x5afc73[_0x4bf082(0x267)](_0x5b6c65);this[_0x4bf082(0x254)][_0x4bf082(0x200)](_0x5892f3,{'id':_0x5892f3,'groupId':_0x66fc00[_0x4bf082(0x282)],'type':_0x66fc00[_0x4bf082(0x21e)],'text':_0x66fc00[_0x4bf082(0x280)]}),_0x1416c4[_0x4bf082(0x229)](_0x5892f3,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x1416c4[_0x4bf082(0x21f)](_0x66fc00[_0x4bf082(0x1cd)],_0x66fc00[_0x4bf082(0x271)])});}});}[_0xcf4cc3(0x216)](_0x56ce73,_0xe65321,_0x243431){let _0x48fef8='';return()=>{const _0x21a989=_0x20fd;if(!_0x48fef8){const _0x5818f6=_0xe65321[_0x21a989(0x293)](_0x56ce73,{'showSuggestionHighlights':!0x0}),_0x1086f1=_0x5818f6[_0x21a989(0x2a1)](0x0);if(!_0x1086f1)return'';let _0x46eec9=!0x1;const _0x28328a=[];for(const _0x3e4a94 of _0x1086f1[_0x21a989(0x232)]())_0x3e4a94['is'](_0x21a989(0x27b),_0x21a989(0x1de))&&_0x3e4a94[_0x21a989(0x1e1)](_0x21a989(0x276))&&(_0x46eec9=!0x1),_0x46eec9&&_0x28328a[_0x21a989(0x269)](_0x3e4a94),_0x3e4a94['is'](_0x21a989(0x27b),_0x21a989(0x1de))&&_0x3e4a94[_0x21a989(0x1e1)](_0x21a989(0x278))&&(_0x46eec9=!0x0);_0x1086f1[_0x21a989(0x1df)](0x0,_0x1086f1[_0x21a989(0x25a)]),_0x243431?.[_0x21a989(0x243)]&&_0x1086f1[_0x21a989(0x231)]('…'),_0x1086f1[_0x21a989(0x231)](_0x28328a),_0x243431?.[_0x21a989(0x25c)]&&_0x1086f1[_0x21a989(0x231)]('…');const _0x6ddcf3=_0xe65321[_0x21a989(0x292)][_0x21a989(0x23e)][_0x21a989(0x253)](_0x5818f6),_0x16e52a=_0xe65321[_0x21a989(0x292)][_0x21a989(0x207)][_0x21a989(0x21b)](_0x6ddcf3);_0x48fef8=_0x16e52a;}return _0x48fef8;};}[_0xcf4cc3(0x29f)](_0x3ab365,_0x28e206){const _0x2d250a=_0xcf4cc3;let _0x55dad5='';return()=>(_0x55dad5||(_0x55dad5=_0x28e206[_0x2d250a(0x285)](_0x3ab365,{'showSuggestionHighlights':!0x0})),_0x55dad5);}[_0xcf4cc3(0x262)](_0x28b0ef,_0x155033,_0x35bce3){let _0x4172ac='';return()=>{const _0x2a73b5=_0x20fd;if(!_0x4172ac){const _0x48d01e=_0x35bce3[_0x2a73b5(0x293)](new _0x12da2a(_0x28b0ef)),_0x16558f=_0x35bce3[_0x2a73b5(0x292)][_0x2a73b5(0x23e)][_0x2a73b5(0x253)](_0x48d01e)[_0x2a73b5(0x1f4)](_0x2a73b5(0x29c)+_0x155033+'\x22]');_0x4172ac=_0x16558f?.[_0x2a73b5(0x1ef)]||'';}return _0x4172ac;};}[_0xcf4cc3(0x22d)](_0x284db2,_0x197ecf=0x5){const _0x5a4604=_0xcf4cc3;let _0x254b81=_0x284db2,_0xb8f5be=null;for(let _0x1f4be8=0x0;_0x1f4be8<_0x197ecf&&_0x254b81;_0x1f4be8++){if(!_0x254b81[_0x5a4604(0x1d4)]){_0x254b81=_0x254b81[_0x5a4604(0x286)];continue;}if(!(''+_0x254b81[_0x5a4604(0x1d4)])[_0x5a4604(0x283)](_0x5a4604(0x25b))){_0x254b81=_0x254b81[_0x5a4604(0x286)];continue;}if(!_0x254b81[_0x5a4604(0x25d)](_0x5a4604(0x29d)))break;_0xb8f5be=_0x254b81;break;}return _0xb8f5be;}[_0xcf4cc3(0x20e)](_0x783e5f){const _0x2d7062=_0xcf4cc3;return Array[_0x2d7062(0x1ea)](this[_0x2d7062(0x254)][_0x2d7062(0x24b)]())[_0x2d7062(0x1dc)](_0x5ab609=>_0x5ab609[_0x2d7062(0x282)]===_0x783e5f);}[_0xcf4cc3(0x26f)](_0x894b73){const _0x31ae3e=_0xcf4cc3;return _0x31ae3e(0x20c)===_0x894b73[_0x31ae3e(0x21e)]?_0x894b73[_0x31ae3e(0x1eb)]:_0x894b73[_0x31ae3e(0x1fd)][_0x31ae3e(0x1cd)];}[_0xcf4cc3(0x248)](_0x1d99cf,_0x532d90=!0x1){const _0x56a80b=_0xcf4cc3;return _0x56a80b(0x20c)===_0x1d99cf[_0x56a80b(0x21e)]?_0x532d90?_0x1d99cf[_0x56a80b(0x1eb)]:_0x1d99cf[_0x56a80b(0x1eb)][_0x56a80b(0x2a3)](_0x1d99cf[_0x56a80b(0x27e)]):_0x1d99cf[_0x56a80b(0x1fd)][_0x56a80b(0x271)];}[_0xcf4cc3(0x27d)](_0x1f1bd0,_0x248a27){const _0x7867b4=_0xcf4cc3;return _0x7867b4(0x20c)===_0x1f1bd0[_0x7867b4(0x21e)]?_0x1f1bd0[_0x7867b4(0x1eb)]=_0x1f1bd0[_0x7867b4(0x1eb)][_0x7867b4(0x2a3)](_0x248a27):_0x7867b4(0x218)===_0x1f1bd0[_0x7867b4(0x21e)]&&_0x1f1bd0[_0x7867b4(0x1fd)]&&(_0x1f1bd0[_0x7867b4(0x1fd)]=new _0x3c5abf(_0x1f1bd0[_0x7867b4(0x1fd)][_0x7867b4(0x1cd)][_0x7867b4(0x2a3)](_0x248a27),_0x1f1bd0[_0x7867b4(0x1fd)][_0x7867b4(0x271)][_0x7867b4(0x2a3)](_0x248a27))),_0x1f1bd0;}[_0xcf4cc3(0x26e)](_0x333bb9,_0x377beb){const _0x57c667=_0xcf4cc3;_0x57c667(0x20c)===_0x333bb9[_0x57c667(0x21e)]?_0x333bb9[_0x57c667(0x1eb)]=this[_0x57c667(0x23f)](_0x333bb9[_0x57c667(0x1eb)],_0x377beb):_0x57c667(0x218)===_0x333bb9[_0x57c667(0x21e)]&&_0x333bb9[_0x57c667(0x1fd)]&&(_0x333bb9[_0x57c667(0x1fd)]=this[_0x57c667(0x1f9)](_0x333bb9[_0x57c667(0x1fd)],_0x377beb));}[_0xcf4cc3(0x23f)](_0x2d4912,_0x21432b){const _0x4e43f9=_0xcf4cc3;return new _0x41f9d9(_0x21432b,_0x2d4912[_0x4e43f9(0x20a)]);}[_0xcf4cc3(0x1f9)](_0x59d0ba,_0x509405){const _0x1e6939=_0xcf4cc3;return new _0x3c5abf(this[_0x1e6939(0x23f)](_0x59d0ba[_0x1e6939(0x1cd)],_0x509405),this[_0x1e6939(0x23f)](_0x59d0ba[_0x1e6939(0x271)],_0x509405));}[_0xcf4cc3(0x23a)](_0x32b0ac,_0x5c5e47,_0x2f1980){return new _0x41f9d9(_0x2f1980,[..._0x5c5e47]);}[_0xcf4cc3(0x220)](_0x40d132,_0x1c4a25,_0x5d0b43,_0x4d0a08){const _0x3b06f0=_0xcf4cc3;return new _0x3c5abf(this[_0x3b06f0(0x23a)](_0x40d132[_0x3b06f0(0x1cd)],_0x1c4a25,_0x4d0a08),this[_0x3b06f0(0x23a)](_0x40d132[_0x3b06f0(0x271)],_0x5d0b43,_0x4d0a08));}[_0xcf4cc3(0x225)](_0x53685f){const _0x3d76cb=_0xcf4cc3,_0x51419d=_0x542356=>{const _0x54b582=_0x20fd;switch(_0x542356){case _0x54b582(0x20c):return 0x1;case _0x54b582(0x298):return 0x2;case _0x54b582(0x2a5):return 0x3;case _0x54b582(0x1e3):return 0x4;}};return _0x53685f[_0x3d76cb(0x204)]((_0x1da01b,_0x4f7117)=>_0x51419d(_0x1da01b[_0x3d76cb(0x21e)])-_0x51419d(_0x4f7117[_0x3d76cb(0x21e)]));}}
|
|
23
|
+
function _0xc1e4(){const _0x44bbf1=['ck-ai_review-mode-marker_context-end','isOfficialPlugin','ellipsisAfter','span','changeMarkerClick','remove-context','viewToDom','push','length','isInline','caption','_translateOperationToEditorContent','processor','reviewmode-','for','6WCdsow','disableReadOnlyMode','applyChange','hasContentAfter','_changePosition','4423176xMmfND','howMany','_changeRangeOwnerDocument','ck-ai_review-mode-marker_','_groupAdjacentOperations','sort','addMarker','getRoot','markerToElement','_getChangeContext','conversion','set','position','markerToHighlight','hasContentBefore','hasClass','No\x20element\x20found\x20for\x20ID:\x20','add','append','diffContent','_eventEmitter','querySelector','_findAdjacentContextDistance','attributeToAttribute','createText','switchToEdit','downcast','getAttribute','oldRange','split','start','7155846RwqcLL','toView','change','getOperations','map','$markedRemove','offset','getMarkerElementForChange','parse','element','dataDowncast','_getOperationEnd','switchToReadOnly','documentFragment','ai-review-mode','createPositionAt','operationsA','parentElement','_markers','clearAllMarkers','target','stringify','getDomRoot','createSelection','getPath','isAtEnd','_clone','$documentFragment','1rhmMgY','requires','document','innerHTML','suggestion:deletion:id:authorId:','startsWith','createPositionAfter','suggestion-context','context','getEditor','1011913XNxGQU','concat','ck-ai_review-mode-marker_underline','listenTo','_shiftOperation','delete','ck-ai_review-mode-marker_add','remove-only','getRoots','isOpening','data-marker-id','clone','enableReadOnlyMode','editing','_changeOperationOwnerDocument','ck-ai_review-mode-marker_context-','plugins','isDocumentOperation','toData','nodes','type','ck-ai_review-mode-marker_strikethrough','_createGetContentFn','isPremiumPlugin','childCount','elements','isAtStart','_getOperationStart','5568mhPcOx','model:$text','operationsIsolated','insertContent','className','suggestion:insertion:id:authorId:','_setAttribute','fire','markerName','isTouching','hasAttribute','408050XtqBMx','getShiftedBy','view','text','get','data','editingDowncast','backward','createDocumentFragment','offsetSize','ellipsisBefore','htmlWriter','version','outerHTML','pop','remove-text','getDiff','_getMarkersDataForGroup','end','forward','every','afterInit','DocumentCompare','getChild','history','schema','1826762qsxZrx','_domEmitter','markChangePositionInEditorContent','values','name','_removeAttribute','_insertMarkers','getHtml','removeMarker','keys','_sortMarkers','381riMXdG','AIEditing','_findMarkerElement','getRange','_changePositionOwnerDocument','emitter','deleteContent','ck-ai_review-mode-marker_context-start','flat','createUIElement','[data-id=\x22','index','getDocumentData','click','_createGetContextFn','batch','filter','warn','includes','_changeRange','from','_createGetContentUsingDataIdFn','ck-ai_review-mode-marker_hide','exec','markers','_nextDataId','getChildren','pluginName','clear','marker','835345XLsxlL','applyOperation','path','addOperation','AIReviewModeEditing','model','_appendChild','baseVersion','htmlProcessor','[data-marker-id=\x22','$textProxy','parent','affectsData','_removeChildren','createRange','groupId','rejectChange','domConverter','insert','newRange','jumpTo','toDomElement','createRawElement'];_0xc1e4=function(){return _0x44bbf1;};return _0xc1e4();}const _0x47bb5e=_0x2458;(function(_0x13fae,_0x5447a9){const _0x399892=_0x2458,_0x34542e=_0x13fae();while(!![]){try{const _0x19e785=-parseInt(_0x399892(0x212))/0x1*(parseInt(_0x399892(0x25d))/0x2)+-parseInt(_0x399892(0x268))/0x3*(-parseInt(_0x399892(0x238))/0x4)+-parseInt(_0x399892(0x1ac))/0x5+parseInt(_0x399892(0x1d2))/0x6*(parseInt(_0x399892(0x21c))/0x7)+parseInt(_0x399892(0x1d7))/0x8+parseInt(_0x399892(0x1f6))/0x9+parseInt(_0x399892(0x243))/0xa;if(_0x19e785===_0x5447a9)break;else _0x34542e['push'](_0x34542e['shift']());}catch(_0x3e2084){_0x34542e['push'](_0x34542e['shift']());}}}(_0xc1e4,0x99bb9));import{InsertOperation as _0x1f9eb0,MarkerOperation as _0x373e94,ModelDocumentFragment as _0x521e0c,ModelPosition as _0x4584a1,ModelRange as _0x9e9625,ModelTreeWalker as _0x5b2cf8,transformOperationSets as _0x3b87d4}from'ckeditor5/src/engine.js';import{DomEmitterMixin as _0x5be040,EmitterMixin as _0x1392f7}from'ckeditor5/src/utils.js';import{ContextPlugin as _0x503ec6}from'ckeditor5/src/core.js';import{DocumentCompare as _0x1012cc,DATA_ID_MODEL_ATTRIBUTE as _0x206552,DATA_ID_VIEW_ATTRIBUTE as _0x118397}from'ckeditor5-collaboration/src/collaboration-core.js';import{getEditorFromContext as _0x17c963}from'../aicore/utils/geteditorfromcontext.js';import{AIEditing as _0x326ce8}from'../aicore/aiediting.js';function _0x2458(_0x2879ae,_0x1029c0){const _0xc1e4d1=_0xc1e4();return _0x2458=function(_0x245801,_0x33e100){_0x245801=_0x245801-0x1a5;let _0x4ae313=_0xc1e4d1[_0x245801];return _0x4ae313;},_0x2458(_0x2879ae,_0x1029c0);}const se=_0x47bb5e(0x1d0);export class AIReviewModeEditing extends _0x503ec6{static get[_0x47bb5e(0x1a9)](){const _0x18da4a=_0x47bb5e;return _0x18da4a(0x1b0);}static get[_0x47bb5e(0x213)](){return[_0x1012cc,_0x326ce8];}static get[_0x47bb5e(0x1c4)](){return!0x0;}static get[_0x47bb5e(0x233)](){return!0x0;}[_0x47bb5e(0x208)]=new Map();[_0x47bb5e(0x25e)];[_0x47bb5e(0x1eb)];constructor(_0x411195){const _0x53f8e4=_0x47bb5e;super(_0x411195),this[_0x53f8e4(0x25e)]=new(_0x5be040())(),this[_0x53f8e4(0x1eb)]=new(_0x1392f7())();}get[_0x47bb5e(0x26d)](){const _0x2409e7=_0x47bb5e;return this[_0x2409e7(0x1eb)];}[_0x47bb5e(0x258)](){const _0x182016=_0x47bb5e,_0x38de90=_0x17c963(this[_0x182016(0x21a)]);_0x38de90[_0x182016(0x1e1)][_0x182016(0x1d1)](_0x182016(0x249))[_0x182016(0x1df)]({'model':se+_0x182016(0x1be),'view':(_0x312b38,{writer:_0x5349c0})=>{const _0x2e18d0=_0x182016,_0xd0c3f9=this[_0x2e18d0(0x208)][_0x2e18d0(0x247)](_0x312b38[_0x2e18d0(0x240)]),_0x5b399b={'class':_0x2e18d0(0x222),'data-marker-id':_0x312b38[_0x2e18d0(0x240)]};return _0x5349c0[_0x2e18d0(0x271)](_0x2e18d0(0x1c6),_0x5b399b,function(_0x3879cf){const _0x4b15ef=_0x2e18d0,_0x494132=this[_0x4b15ef(0x1c1)](_0x3879cf);return _0x494132[_0x4b15ef(0x215)]=_0xd0c3f9?.[_0x4b15ef(0x246)]||'',_0x494132;});}}),_0x38de90[_0x182016(0x1e1)][_0x182016(0x1d1)](_0x182016(0x249))[_0x182016(0x1e4)]({'model':se+_0x182016(0x223),'view':_0x1ac7a4=>({'classes':_0x182016(0x231),'attributes':{'data-marker-id':_0x1ac7a4[_0x182016(0x240)]}})}),_0x38de90[_0x182016(0x1e1)][_0x182016(0x1d1)](_0x182016(0x249))[_0x182016(0x1e4)]({'model':se+_0x182016(0x1c8),'view':_0x531cce=>({'classes':_0x182016(0x21e),'attributes':{'data-marker-id':_0x531cce[_0x182016(0x240)]}})}),_0x38de90[_0x182016(0x1e1)][_0x182016(0x1d1)](_0x182016(0x249))[_0x182016(0x1e4)]({'model':se+_0x182016(0x252),'view':_0x3f4418=>({'classes':_0x182016(0x27e),'attributes':{'data-marker-id':_0x3f4418[_0x182016(0x240)]}})}),_0x38de90[_0x182016(0x1e1)][_0x182016(0x1d1)](_0x182016(0x200))[_0x182016(0x1df)]({'model':se+_0x182016(0x219),'view':(_0x52fddf,{writer:_0x3de823})=>_0x3de823[_0x182016(0x1c2)](_0x182016(0x1c6),{'class':_0x182016(0x22b)+(_0x52fddf[_0x182016(0x225)]?_0x182016(0x1f5):_0x182016(0x255))})}),_0x38de90[_0x182016(0x1e1)][_0x182016(0x1d1)](_0x182016(0x1f1))[_0x182016(0x1ee)]({'model':_0x206552,'view':_0x118397}),this[_0x182016(0x25e)][_0x182016(0x21f)](document,_0x182016(0x275),(_0x2a8e78,_0x52027f)=>{const _0x1651cb=_0x182016,_0x43713c=_0x52027f[_0x1651cb(0x20a)],_0x3b52d3=this[_0x1651cb(0x26a)](_0x43713c);if(!_0x3b52d3)return;const _0x41b79c=_0x3b52d3[_0x1651cb(0x1f2)](_0x1651cb(0x226)),_0x434657=_0x41b79c[_0x1651cb(0x1f4)](':')[_0x1651cb(0x251)]()?.[_0x1651cb(0x1f4)]('_')[0x0];this[_0x1651cb(0x1eb)][_0x1651cb(0x23f)](_0x1651cb(0x1c7),{'markerId':_0x41b79c,'changeId':_0x434657});});}[_0x47bb5e(0x274)](){const _0x2e034b=_0x47bb5e,_0x4f3154=this[_0x2e034b(0x21a)][_0x2e034b(0x22c)][_0x2e034b(0x247)](_0x2e034b(0x269)),_0x4e72e1=_0x17c963(this[_0x2e034b(0x21a)]),_0x35dd42=_0x4e72e1[_0x2e034b(0x1b1)],_0x516c04=new _0x521e0c();for(const _0x440aae of _0x35dd42[_0x2e034b(0x214)][_0x2e034b(0x1de)]()[_0x2e034b(0x1a8)]()){const _0x47b7fd=_0x440aae[_0x2e034b(0x210)](!0x0);_0x516c04[_0x2e034b(0x1b2)](_0x47b7fd);}for(const _0x6fd914 of _0x35dd42[_0x2e034b(0x1a6)])_0x516c04[_0x2e034b(0x1a6)][_0x2e034b(0x1e2)](_0x6fd914[_0x2e034b(0x261)],this[_0x2e034b(0x1d9)](_0x6fd914[_0x2e034b(0x26b)]()[_0x2e034b(0x227)](),_0x516c04));const _0x5795bd=new _0x5b2cf8({'ignoreElementEnd':!0x0,'startPosition':_0x35dd42[_0x2e034b(0x205)](_0x516c04,0x0)}),_0x90921d=new Set(),_0x1edad7=new Map();for(const {item:_0x121ff9}of _0x5795bd){if(!_0x121ff9['is'](_0x2e034b(0x1b6)))continue;const _0x2ed15d=_0x121ff9[_0x2e034b(0x1b7)];if((!_0x2ed15d||!_0x2ed15d['is'](_0x2e034b(0x1ff),_0x2e034b(0x1cd)))&&(_0x2ed15d&&_0x2ed15d['is'](_0x2e034b(0x1ff)))){let _0xc0d50c=_0x2ed15d[_0x2e034b(0x1f2)](_0x206552);_0xc0d50c||(_0xc0d50c=_0x4f3154[_0x2e034b(0x1a7)](_0x90921d),_0x2ed15d[_0x2e034b(0x23e)](_0x206552,_0xc0d50c)),_0x90921d[_0x2e034b(0x1e8)](_0xc0d50c);let _0x110792=_0x2ed15d;for(;_0x110792[_0x2e034b(0x1b7)]&&!_0x110792[_0x2e034b(0x1b7)]['is'](_0x2e034b(0x203));)_0x110792=_0x110792[_0x2e034b(0x1b7)],_0x110792[_0x2e034b(0x242)](_0x206552)&&_0x110792[_0x2e034b(0x262)](_0x206552);_0x1edad7[_0x2e034b(0x1e2)](_0xc0d50c,{'path':_0x2ed15d[_0x2e034b(0x20e)](),'getContent':this[_0x2e034b(0x27d)](_0x110792[_0x2e034b(0x210)](!0x0),_0xc0d50c,_0x4e72e1[_0x2e034b(0x248)])}),_0x5795bd[_0x2e034b(0x1c0)](_0x35dd42[_0x2e034b(0x218)](_0x2ed15d));}}return{'content':_0x4e72e1[_0x2e034b(0x248)][_0x2e034b(0x1cf)][_0x2e034b(0x22e)](_0x4e72e1[_0x2e034b(0x248)][_0x2e034b(0x1f7)](_0x516c04)),'version':_0x4e72e1[_0x2e034b(0x1b1)][_0x2e034b(0x214)][_0x2e034b(0x24f)],'elements':_0x1edad7};}[_0x47bb5e(0x1ea)](_0x3840c2,_0x284698){const _0x3e44d5=_0x47bb5e,_0x56c2e9=_0x17c963(this[_0x3e44d5(0x21a)]),_0x2a70ff=_0x56c2e9[_0x3e44d5(0x248)][_0x3e44d5(0x1fe)](_0x3840c2,_0x3e44d5(0x211)),_0x2a023e=_0x56c2e9[_0x3e44d5(0x1b1)][_0x3e44d5(0x205)](_0x2a70ff,0x0),_0x1ff8b8=this[_0x3e44d5(0x21a)][_0x3e44d5(0x22c)][_0x3e44d5(0x247)](_0x3e44d5(0x259))[_0x3e44d5(0x253)](_0x3840c2,_0x284698,{'anchor':_0x2a023e,'markDeletions':!0x0})[_0x3e44d5(0x1f9)]()[_0x3e44d5(0x278)](_0x4116a0=>_0x3e44d5(0x1be)===_0x4116a0[_0x3e44d5(0x230)]||_0x3e44d5(0x1ab)===_0x4116a0[_0x3e44d5(0x230)]&&_0x4116a0[_0x3e44d5(0x261)][_0x3e44d5(0x217)](_0x3e44d5(0x1fb))),_0x2b8430=this[_0x3e44d5(0x1db)](_0x1ff8b8),_0x1d0d76=[];let _0x3c420d=0x0;return _0x56c2e9[_0x3e44d5(0x1b1)][_0x3e44d5(0x1f8)](_0x12560e=>{const _0x358746=_0x3e44d5;for(let _0x4351b4=0x0;_0x4351b4<_0x2b8430[_0x358746(0x1cb)];_0x4351b4++){const _0x1285fd=_0x2b8430[_0x4351b4],_0x14dc9b=_0x12560e[_0x358746(0x24b)]();for(const _0x5df8eb of _0x2a70ff[_0x358746(0x1a8)]())_0x12560e[_0x358746(0x1e9)](_0x5df8eb[_0x358746(0x210)](!0x0),_0x14dc9b);for(const _0x474ba2 of _0x1285fd[_0x358746(0x23a)])if(_0x358746(0x1be)===_0x474ba2[_0x358746(0x230)]){const _0x52c9db=_0x474ba2;_0x52c9db[_0x358746(0x1b3)]=null,_0x52c9db[_0x358746(0x22d)]=!0x1,this[_0x358746(0x22a)](_0x52c9db,_0x14dc9b),_0x12560e[_0x358746(0x277)][_0x358746(0x1af)](_0x474ba2),_0x56c2e9[_0x358746(0x1b1)][_0x358746(0x1ad)](_0x474ba2);const _0x4ed3a8=_0x358746(0x23d)+_0x3c420d++,_0x14e1d9=_0x56c2e9[_0x358746(0x1b1)][_0x358746(0x1ba)](_0x52c9db[_0x358746(0x1e3)],_0x52c9db[_0x358746(0x1e3)][_0x358746(0x244)](_0x52c9db[_0x358746(0x1d8)]));_0x14dc9b[_0x358746(0x1a6)][_0x358746(0x1e2)](_0x4ed3a8,_0x14e1d9);}else{if(_0x358746(0x1ab)===_0x474ba2[_0x358746(0x230)]&&_0x474ba2[_0x358746(0x261)][_0x358746(0x217)](_0x358746(0x1fb))){const _0x3f4309=_0x474ba2,_0x2e5b60=_0x358746(0x216)+_0x3c420d++;this[_0x358746(0x22a)](_0x3f4309,_0x14dc9b),_0x14dc9b[_0x358746(0x1a6)][_0x358746(0x1e2)](_0x2e5b60,_0x3f4309[_0x358746(0x1bf)]);}}const _0x501c6a=this[_0x358746(0x1e0)](this[_0x358746(0x26c)](this[_0x358746(0x237)](_0x1285fd[_0x358746(0x23a)][0x0]),_0x14dc9b),this[_0x358746(0x26c)](this[_0x358746(0x201)](_0x1285fd[_0x358746(0x23a)][_0x1285fd[_0x358746(0x23a)][_0x358746(0x1cb)]-0x1]),_0x14dc9b));_0x14dc9b[_0x358746(0x1a6)][_0x358746(0x1e2)](se+_0x358746(0x219),new _0x9e9625(_0x501c6a[_0x358746(0x1f5)],_0x501c6a[_0x358746(0x255)])),_0x1d0d76[_0x358746(0x1ca)]({..._0x1285fd,'context':this[_0x358746(0x276)](_0x14dc9b,_0x56c2e9[_0x358746(0x248)],{'ellipsisBefore':_0x501c6a[_0x358746(0x1e5)],'ellipsisAfter':_0x501c6a[_0x358746(0x1d5)]}),'content':this[_0x358746(0x232)](_0x14dc9b,_0x56c2e9[_0x358746(0x248)])});}}),_0x1d0d76;}[_0x47bb5e(0x25f)](_0x13e2a4,_0x574647){const _0x333a66=_0x47bb5e,_0x4dfd05=_0x13e2a4[0x0][_0x333a66(0x1b7)]['id'],_0x3eac80=_0x574647[_0x333a66(0x235)][_0x333a66(0x247)](_0x4dfd05);if(!_0x3eac80)return void console[_0x333a66(0x279)](_0x333a66(0x1e7)+_0x4dfd05);const _0xce57df=_0x3eac80[_0x333a66(0x1ae)],_0x3d6fb3=_0x17c963(this[_0x333a66(0x21a)]),_0x1ba16c=_0x3d6fb3[_0x333a66(0x1b1)][_0x333a66(0x214)][_0x333a66(0x25b)][_0x333a66(0x1f9)](_0x574647[_0x333a66(0x24f)]),_0x1dc09a=[];for(const _0xc6cd60 of _0x13e2a4){const _0x1430ab=_0xc6cd60[_0x333a66(0x23a)][_0x333a66(0x1fa)](_0x25c32b=>this[_0x333a66(0x1ce)](_0x25c32b,_0xce57df,_0x3d6fb3[_0x333a66(0x1b1)][_0x333a66(0x214)][_0x333a66(0x224)]()[0x0]));if(!_0x1430ab||!_0x1430ab[_0x333a66(0x1cb)])continue;const _0x3e844e=_0x1430ab[_0x333a66(0x257)](_0x2b25c5=>_0x333a66(0x1ab)===_0x2b25c5[_0x333a66(0x230)]&&_0x2b25c5[_0x333a66(0x261)][_0x333a66(0x217)](_0x333a66(0x1fb))),_0x232dc4={'document':_0x3d6fb3[_0x333a66(0x1b1)][_0x333a66(0x214)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x50e5f4=_0x3b87d4(_0x1430ab,_0x1ba16c,_0x232dc4)[_0x333a66(0x206)];for(const _0x1b6e02 of _0x50e5f4)if(_0x333a66(0x1be)===_0x1b6e02[_0x333a66(0x230)]){const _0x2631f5=_0x1b6e02,_0x32cbd5=_0x2631f5[_0x333a66(0x22f)];let _0x31e914='';for(const _0x256bbe of _0x32cbd5)_0x256bbe&&_0x256bbe['is'](_0x333a66(0x239))&&(_0x31e914+=_0x256bbe[_0x333a66(0x248)]);_0x1dc09a[_0x333a66(0x1ca)]({'start':_0x2631f5[_0x333a66(0x1e3)],'end':_0x2631f5[_0x333a66(0x1e3)],'type':_0x333a66(0x1be),'groupId':_0xc6cd60['id'],'text':_0x31e914});}else{if(_0x333a66(0x1ab)===_0x1b6e02[_0x333a66(0x230)]&&_0x1b6e02[_0x333a66(0x261)][_0x333a66(0x217)](_0x333a66(0x1fb))){const _0x2b0367=_0x1b6e02;let _0x2d77bc=_0x333a66(0x252);if(_0x3e844e){const _0x1de0a0=this[_0x333a66(0x1ed)](_0x2b0367[_0x333a66(0x1bf)][_0x333a66(0x1f5)],_0x333a66(0x24a),_0x3d6fb3[_0x333a66(0x1b1)][_0x333a66(0x25c)]),_0x31fd5b=this[_0x333a66(0x1ed)](_0x2b0367[_0x333a66(0x1bf)][_0x333a66(0x255)],_0x333a66(0x256),_0x3d6fb3[_0x333a66(0x1b1)][_0x333a66(0x25c)]);if(_0x1de0a0||_0x31fd5b){const _0x45ae04=_0x2b0367[_0x333a66(0x1bf)][_0x333a66(0x1f5)][_0x333a66(0x244)](-_0x1de0a0),_0x1d34ea=_0x2b0367[_0x333a66(0x1bf)][_0x333a66(0x255)][_0x333a66(0x244)](_0x31fd5b);_0x1dc09a[_0x333a66(0x1ca)]({'start':_0x45ae04,'end':_0x1d34ea,'groupId':_0xc6cd60['id'],'type':_0x333a66(0x1c8)});}else _0x2d77bc=_0x333a66(0x223);}_0x1dc09a[_0x333a66(0x1ca)]({'start':_0x2b0367[_0x333a66(0x1bf)][_0x333a66(0x1f5)],'end':_0x2b0367[_0x333a66(0x1bf)][_0x333a66(0x255)],'groupId':_0xc6cd60['id'],'type':_0x2d77bc});}}}this[_0x333a66(0x263)](_0x1dc09a);}[_0x47bb5e(0x209)](){const _0x58e33d=_0x47bb5e;_0x17c963(this[_0x58e33d(0x21a)])[_0x58e33d(0x1b1)][_0x58e33d(0x1f8)](_0x44679f=>{const _0x4999ad=_0x58e33d;for(const _0x2598a3 of this[_0x4999ad(0x208)][_0x4999ad(0x266)]())_0x44679f[_0x4999ad(0x265)](_0x2598a3);}),this[_0x58e33d(0x208)][_0x58e33d(0x1aa)]();}[_0x47bb5e(0x202)](){const _0x547984=_0x47bb5e;_0x17c963(this[_0x547984(0x21a)])[_0x547984(0x228)](_0x547984(0x204));}[_0x47bb5e(0x1f0)](){const _0x24dc30=_0x47bb5e;_0x17c963(this[_0x24dc30(0x21a)])[_0x24dc30(0x1d3)](_0x24dc30(0x204));}[_0x47bb5e(0x1d4)](_0x6afa8d){const _0xa6350=_0x47bb5e,_0x456e0d=_0x17c963(this[_0xa6350(0x21a)]),_0x13e21e=_0x456e0d[_0xa6350(0x1b1)],_0x3d9bbf=_0x6afa8d[_0xa6350(0x1fa)](_0x55e2ad=>this[_0xa6350(0x254)](_0x55e2ad))[_0xa6350(0x270)]();_0x13e21e[_0xa6350(0x1f8)](_0x30c9ed=>{const _0x48ca56=_0xa6350;for(const _0x657e2d of _0x3d9bbf){const _0x1feaa5=_0x456e0d[_0x48ca56(0x1b1)][_0x48ca56(0x1a6)][_0x48ca56(0x247)](_0x657e2d['id']);_0x1feaa5&&(_0x48ca56(0x1be)===_0x657e2d[_0x48ca56(0x230)]?_0x13e21e[_0x48ca56(0x23b)](_0x30c9ed[_0x48ca56(0x1ef)](_0x657e2d[_0x48ca56(0x246)]||''),_0x1feaa5[_0x48ca56(0x26b)]()[_0x48ca56(0x1f5)]):_0x48ca56(0x252)!==_0x657e2d[_0x48ca56(0x230)]&&_0x48ca56(0x223)!==_0x657e2d[_0x48ca56(0x230)]||_0x13e21e[_0x48ca56(0x26e)](_0x13e21e[_0x48ca56(0x20d)](_0x1feaa5[_0x48ca56(0x26b)]())),_0x30c9ed[_0x48ca56(0x265)](_0x657e2d['id']),this[_0x48ca56(0x208)][_0x48ca56(0x221)](_0x657e2d['id']));}});}[_0x47bb5e(0x1bc)](_0x59601e){const _0x2a3e62=_0x47bb5e,_0x4a1e34=_0x17c963(this[_0x2a3e62(0x21a)]),_0x19a3c2=this[_0x2a3e62(0x254)](_0x59601e);_0x4a1e34[_0x2a3e62(0x1b1)][_0x2a3e62(0x1f8)](_0x160340=>{const _0x47996e=_0x2a3e62;for(const _0x4a93df of _0x19a3c2)_0x160340[_0x47996e(0x265)](_0x4a93df['id']),this[_0x47996e(0x208)][_0x47996e(0x221)](_0x4a93df['id']);});}[_0x47bb5e(0x21b)](){const _0x25db3b=_0x47bb5e;return _0x17c963(this[_0x25db3b(0x21a)]);}[_0x47bb5e(0x1fd)](_0x3dd31f){const _0x2feb5c=_0x47bb5e,_0x41a2bc=Array[_0x2feb5c(0x27c)](this[_0x2feb5c(0x208)][_0x2feb5c(0x260)]())[_0x2feb5c(0x278)](_0x4df765=>_0x4df765[_0x2feb5c(0x1bb)]===_0x3dd31f);if(!_0x41a2bc[_0x2feb5c(0x1cb)])return null;const _0x4abb3f=0x1===_0x41a2bc[_0x2feb5c(0x1cb)]?_0x41a2bc[0x0]:this[_0x2feb5c(0x267)](_0x41a2bc)[0x0],_0x2b2d0f=_0x17c963(this[_0x2feb5c(0x21a)]),_0x3dc6f8=_0x2b2d0f[_0x2feb5c(0x1b1)][_0x2feb5c(0x1a6)][_0x2feb5c(0x247)](_0x4abb3f['id']);if(!_0x3dc6f8)return null;const _0x5359e9=_0x3dc6f8[_0x2feb5c(0x26b)](),_0x43cd97=_0x2b2d0f[_0x2feb5c(0x229)][_0x2feb5c(0x245)][_0x2feb5c(0x20c)]();if(!_0x43cd97||!_0x5359e9)return null;const _0x186ac6=_0x43cd97[_0x2feb5c(0x1ec)](_0x2feb5c(0x1b5)+_0x4abb3f['id']+'\x22]');return _0x186ac6?{'modelRange':_0x5359e9,'domElement':_0x186ac6}:null;}[_0x47bb5e(0x1ce)](_0x21b494,_0x45c210,_0x1ecb77){const _0x4c9bcd=_0x47bb5e;if(_0x4c9bcd(0x1be)===_0x21b494[_0x4c9bcd(0x230)]){const _0x40a29c=_0x21b494;return new _0x1f9eb0(this[_0x4c9bcd(0x1d6)](_0x40a29c[_0x4c9bcd(0x1e3)],_0x45c210[_0x4c9bcd(0x21d)](_0x40a29c[_0x4c9bcd(0x1e3)][_0x4c9bcd(0x1fc)]),_0x1ecb77),_0x40a29c[_0x4c9bcd(0x22f)],_0x40a29c[_0x4c9bcd(0x1b3)]);}if(_0x4c9bcd(0x1ab)===_0x21b494[_0x4c9bcd(0x230)]&&_0x21b494[_0x4c9bcd(0x261)][_0x4c9bcd(0x217)](_0x4c9bcd(0x1fb))){const _0x30f12d=_0x21b494;return new _0x373e94(_0x30f12d[_0x4c9bcd(0x261)],_0x30f12d[_0x4c9bcd(0x1f3)],this[_0x4c9bcd(0x27b)](_0x30f12d[_0x4c9bcd(0x1bf)],_0x45c210[_0x4c9bcd(0x21d)](_0x30f12d[_0x4c9bcd(0x1bf)][_0x4c9bcd(0x1f5)][_0x4c9bcd(0x1fc)]),_0x45c210[_0x4c9bcd(0x21d)](_0x30f12d[_0x4c9bcd(0x1bf)][_0x4c9bcd(0x255)][_0x4c9bcd(0x1fc)]),_0x1ecb77),_0x30f12d[_0x4c9bcd(0x208)],_0x30f12d[_0x4c9bcd(0x1b8)],_0x30f12d[_0x4c9bcd(0x1b3)]);}return _0x21b494;}[_0x47bb5e(0x1db)](_0x18da28){const _0x2f5c4b=_0x47bb5e;if(!_0x18da28[_0x2f5c4b(0x1cb)])return[];const _0x4d736e=[];let _0x28ac91=0x0,_0x19673d=0x0,_0x76ec8c=[];for(let _0x4d6059=0x0;_0x4d6059<=_0x18da28[_0x2f5c4b(0x1cb)];_0x4d6059++){const _0x590476=_0x18da28[_0x4d6059],_0x7690cf=_0x18da28[_0x4d6059-0x1];!_0x590476||_0x7690cf&&!this[_0x2f5c4b(0x201)](_0x7690cf)[_0x2f5c4b(0x241)](this[_0x2f5c4b(0x237)](_0x590476))?(_0x4d736e[_0x2f5c4b(0x1ca)]({'operations':_0x76ec8c,'operationsIsolated':_0x76ec8c[_0x2f5c4b(0x1fa)](_0x178ccf=>this[_0x2f5c4b(0x220)](_0x178ccf[_0x2f5c4b(0x227)](),-_0x19673d)),'groupOffset':_0x28ac91}),_0x76ec8c=_0x590476?[_0x590476]:[],_0x19673d+=_0x28ac91,_0x28ac91=0x0):_0x76ec8c[_0x2f5c4b(0x1ca)](_0x590476),_0x590476&&_0x2f5c4b(0x1be)===_0x590476[_0x2f5c4b(0x230)]&&(_0x28ac91+=_0x590476[_0x2f5c4b(0x1d8)]);}return _0x4d736e;}[_0x47bb5e(0x1ed)](_0xbc7fb2,_0x128b0f,_0x150c3a,_0x18e276=0x1){const _0x383d4b=_0x47bb5e,_0x5e53da=new _0x5b2cf8({'startPosition':_0xbc7fb2,'direction':_0x128b0f});let _0xf9e0ba=0x0;for(let _0x3b1568=0x0;_0x3b1568<_0x18e276;_0x3b1568++){let _0x69c991=0x0,_0x48ccfa=!0x1,_0x4305d1=_0x383d4b(0x256)===_0x128b0f?/^\W*\w+/:/\w+\W*$/;for(const {item:_0x1cdb1d}of _0x5e53da)if(_0x1cdb1d['is'](_0x383d4b(0x1b6))){const _0x37817a=_0x4305d1[_0x383d4b(0x1a5)](_0x1cdb1d[_0x383d4b(0x248)]);if(_0x37817a&&_0x37817a[_0x383d4b(0x1cb)]){if(_0x69c991+=_0x383d4b(0x256)===_0x128b0f?_0x37817a[_0x383d4b(0x273)]+_0x37817a[0x0][_0x383d4b(0x1cb)]:_0x1cdb1d[_0x383d4b(0x248)][_0x383d4b(0x1cb)]-_0x37817a[_0x383d4b(0x273)],_0x37817a[0x0][_0x383d4b(0x1cb)]!==_0x1cdb1d[_0x383d4b(0x248)][_0x383d4b(0x1cb)])break;_0x48ccfa=!0x0,_0x4305d1=_0x383d4b(0x256)===_0x128b0f?/^\w+/:/\w+$/;}else{if(_0x48ccfa)break;_0x69c991+=_0x1cdb1d[_0x383d4b(0x24c)];}}else{if(_0x1cdb1d['is'](_0x383d4b(0x1ff))){_0x150c3a[_0x383d4b(0x1cc)](_0x1cdb1d)&&!_0x48ccfa&&(_0x69c991+=0x1);break;}}_0xf9e0ba+=_0x69c991,_0x5e53da[_0x383d4b(0x1c0)](_0xbc7fb2[_0x383d4b(0x244)](_0x383d4b(0x256)===_0x128b0f?_0xf9e0ba:-_0xf9e0ba));}return _0xf9e0ba;}[_0x47bb5e(0x1e0)](_0x2b84c6,_0x3bf812){const _0x177a3e=_0x47bb5e,_0x96ad25=_0x17c963(this[_0x177a3e(0x21a)])[_0x177a3e(0x1b1)][_0x177a3e(0x25c)],_0x805014=this[_0x177a3e(0x1ed)](_0x2b84c6,_0x177a3e(0x24a),_0x96ad25,0x6),_0x8d77ed=this[_0x177a3e(0x1ed)](_0x3bf812,_0x177a3e(0x256),_0x96ad25,0x6),_0x4d62e0=_0x2b84c6[_0x177a3e(0x244)](-_0x805014),_0x39f1fc=_0x3bf812[_0x177a3e(0x244)](_0x8d77ed);return{'start':_0x4d62e0,'end':_0x39f1fc,'hasContentBefore':!_0x4d62e0[_0x177a3e(0x236)],'hasContentAfter':!_0x39f1fc[_0x177a3e(0x20f)]};}[_0x47bb5e(0x263)](_0x16afd5){const _0x54c471=_0x47bb5e,_0x31f4fd=this[_0x54c471(0x21a)][_0x54c471(0x22c)][_0x54c471(0x247)](_0x54c471(0x269)),_0x2eedeb=new Set();_0x17c963(this[_0x54c471(0x21a)])[_0x54c471(0x1b1)][_0x54c471(0x1f8)](_0x1f6be3=>{const _0x5f43f0=_0x54c471;for(const _0x2f033e of _0x16afd5){const _0x567212=''+se+_0x2f033e[_0x5f43f0(0x230)]+':'+_0x2f033e[_0x5f43f0(0x1bb)]+'_'+_0x31f4fd[_0x5f43f0(0x1a7)](_0x2eedeb);this[_0x5f43f0(0x208)][_0x5f43f0(0x1e2)](_0x567212,{'id':_0x567212,'groupId':_0x2f033e[_0x5f43f0(0x1bb)],'type':_0x2f033e[_0x5f43f0(0x230)],'text':_0x2f033e[_0x5f43f0(0x246)]}),_0x1f6be3[_0x5f43f0(0x1dd)](_0x567212,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x1f6be3[_0x5f43f0(0x1ba)](_0x2f033e[_0x5f43f0(0x1f5)],_0x2f033e[_0x5f43f0(0x255)])});}});}[_0x47bb5e(0x276)](_0x138c40,_0xea04a1,_0x25e317){let _0x1898bb='';return()=>{const _0x3be195=_0x2458;if(!_0x1898bb){const _0x7fb82e=_0xea04a1[_0x3be195(0x1f7)](_0x138c40,{'showSuggestionHighlights':!0x0}),_0x43b08b=_0x7fb82e[_0x3be195(0x25a)](0x0);if(!_0x43b08b)return'';let _0x306513=!0x1;const _0x5035b3=[];for(const _0x321e35 of _0x43b08b[_0x3be195(0x1a8)]())_0x321e35['is'](_0x3be195(0x1ff),_0x3be195(0x1c6))&&_0x321e35[_0x3be195(0x1e6)](_0x3be195(0x1c3))&&(_0x306513=!0x1),_0x306513&&_0x5035b3[_0x3be195(0x1ca)](_0x321e35),_0x321e35['is'](_0x3be195(0x1ff),_0x3be195(0x1c6))&&_0x321e35[_0x3be195(0x1e6)](_0x3be195(0x26f))&&(_0x306513=!0x0);_0x43b08b[_0x3be195(0x1b9)](0x0,_0x43b08b[_0x3be195(0x234)]),_0x25e317?.[_0x3be195(0x24d)]&&_0x43b08b[_0x3be195(0x1b2)]('…'),_0x43b08b[_0x3be195(0x1b2)](_0x5035b3),_0x25e317?.[_0x3be195(0x1c5)]&&_0x43b08b[_0x3be195(0x1b2)]('…');const _0x59fa9a=_0xea04a1[_0x3be195(0x1b4)][_0x3be195(0x1bd)][_0x3be195(0x1c9)](_0x7fb82e),_0x15de5b=_0xea04a1[_0x3be195(0x1b4)][_0x3be195(0x24e)][_0x3be195(0x264)](_0x59fa9a);_0x1898bb=_0x15de5b;}return _0x1898bb;};}[_0x47bb5e(0x232)](_0x17c28f,_0x5469e4){const _0x169984=_0x47bb5e;let _0x5181f8='';return()=>(_0x5181f8||(_0x5181f8=_0x5469e4[_0x169984(0x20b)](_0x17c28f,{'showSuggestionHighlights':!0x0})),_0x5181f8);}[_0x47bb5e(0x27d)](_0x164b1d,_0x136e13,_0x10fe00){let _0x34f3a1='';return()=>{const _0xb454e1=_0x2458;if(!_0x34f3a1){const _0x4e454d=_0x10fe00[_0xb454e1(0x1f7)](new _0x521e0c(_0x164b1d)),_0x294190=_0x10fe00[_0xb454e1(0x1b4)][_0xb454e1(0x1bd)][_0xb454e1(0x1c9)](_0x4e454d)[_0xb454e1(0x1ec)](_0xb454e1(0x272)+_0x136e13+'\x22]');_0x34f3a1=_0x294190?.[_0xb454e1(0x250)]||'';}return _0x34f3a1;};}[_0x47bb5e(0x26a)](_0x477a45,_0x2004a8=0x5){const _0x4a2cf1=_0x47bb5e;let _0x15ae8a=_0x477a45,_0x31b8ea=null;for(let _0x440483=0x0;_0x440483<_0x2004a8&&_0x15ae8a;_0x440483++){if(!_0x15ae8a[_0x4a2cf1(0x23c)]){_0x15ae8a=_0x15ae8a[_0x4a2cf1(0x207)];continue;}if(!(''+_0x15ae8a[_0x4a2cf1(0x23c)])[_0x4a2cf1(0x27a)](_0x4a2cf1(0x1da))){_0x15ae8a=_0x15ae8a[_0x4a2cf1(0x207)];continue;}if(!_0x15ae8a[_0x4a2cf1(0x1f2)](_0x4a2cf1(0x226)))break;_0x31b8ea=_0x15ae8a;break;}return _0x31b8ea;}[_0x47bb5e(0x254)](_0x1cb0ca){const _0x438b51=_0x47bb5e;return Array[_0x438b51(0x27c)](this[_0x438b51(0x208)][_0x438b51(0x260)]())[_0x438b51(0x278)](_0x45e288=>_0x45e288[_0x438b51(0x1bb)]===_0x1cb0ca);}[_0x47bb5e(0x237)](_0x9e0bd5){const _0x5b035d=_0x47bb5e;return _0x5b035d(0x1be)===_0x9e0bd5[_0x5b035d(0x230)]?_0x9e0bd5[_0x5b035d(0x1e3)]:_0x9e0bd5[_0x5b035d(0x1bf)][_0x5b035d(0x1f5)];}[_0x47bb5e(0x201)](_0x3cb5b1,_0x4100ce=!0x1){const _0xfa4993=_0x47bb5e;return _0xfa4993(0x1be)===_0x3cb5b1[_0xfa4993(0x230)]?_0x4100ce?_0x3cb5b1[_0xfa4993(0x1e3)]:_0x3cb5b1[_0xfa4993(0x1e3)][_0xfa4993(0x244)](_0x3cb5b1[_0xfa4993(0x1d8)]):_0x3cb5b1[_0xfa4993(0x1bf)][_0xfa4993(0x255)];}[_0x47bb5e(0x220)](_0x5b3018,_0x5d654f){const _0x46ccd2=_0x47bb5e;return _0x46ccd2(0x1be)===_0x5b3018[_0x46ccd2(0x230)]?_0x5b3018[_0x46ccd2(0x1e3)]=_0x5b3018[_0x46ccd2(0x1e3)][_0x46ccd2(0x244)](_0x5d654f):_0x46ccd2(0x1ab)===_0x5b3018[_0x46ccd2(0x230)]&&_0x5b3018[_0x46ccd2(0x1bf)]&&(_0x5b3018[_0x46ccd2(0x1bf)]=new _0x9e9625(_0x5b3018[_0x46ccd2(0x1bf)][_0x46ccd2(0x1f5)][_0x46ccd2(0x244)](_0x5d654f),_0x5b3018[_0x46ccd2(0x1bf)][_0x46ccd2(0x255)][_0x46ccd2(0x244)](_0x5d654f))),_0x5b3018;}[_0x47bb5e(0x22a)](_0x252cfe,_0x3c3f93){const _0x210baa=_0x47bb5e;_0x210baa(0x1be)===_0x252cfe[_0x210baa(0x230)]?_0x252cfe[_0x210baa(0x1e3)]=this[_0x210baa(0x26c)](_0x252cfe[_0x210baa(0x1e3)],_0x3c3f93):_0x210baa(0x1ab)===_0x252cfe[_0x210baa(0x230)]&&_0x252cfe[_0x210baa(0x1bf)]&&(_0x252cfe[_0x210baa(0x1bf)]=this[_0x210baa(0x1d9)](_0x252cfe[_0x210baa(0x1bf)],_0x3c3f93));}[_0x47bb5e(0x26c)](_0x8b7828,_0x1b7832){const _0x2adbfb=_0x47bb5e;return new _0x4584a1(_0x1b7832,_0x8b7828[_0x2adbfb(0x1ae)]);}[_0x47bb5e(0x1d9)](_0x20fe7,_0x4fd209){const _0x307d9a=_0x47bb5e;return new _0x9e9625(this[_0x307d9a(0x26c)](_0x20fe7[_0x307d9a(0x1f5)],_0x4fd209),this[_0x307d9a(0x26c)](_0x20fe7[_0x307d9a(0x255)],_0x4fd209));}[_0x47bb5e(0x1d6)](_0x5b4899,_0x5ee668,_0x4d14af){return new _0x4584a1(_0x4d14af,[..._0x5ee668]);}[_0x47bb5e(0x27b)](_0x170c66,_0x1bb704,_0x4ab096,_0x4d08fc){const _0x506ff4=_0x47bb5e;return new _0x9e9625(this[_0x506ff4(0x1d6)](_0x170c66[_0x506ff4(0x1f5)],_0x1bb704,_0x4d08fc),this[_0x506ff4(0x1d6)](_0x170c66[_0x506ff4(0x255)],_0x4ab096,_0x4d08fc));}[_0x47bb5e(0x267)](_0x1085a9){const _0x26b4d3=_0x47bb5e,_0x4ed1ba=_0x56f01c=>{const _0x218668=_0x2458;switch(_0x56f01c){case _0x218668(0x1be):return 0x1;case _0x218668(0x1c8):return 0x2;case _0x218668(0x223):return 0x3;case _0x218668(0x252):return 0x4;}};return _0x1085a9[_0x26b4d3(0x1dc)]((_0x213533,_0x41eb89)=>_0x4ed1ba(_0x213533[_0x26b4d3(0x230)])-_0x4ed1ba(_0x41eb89[_0x26b4d3(0x230)]));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x470493=_0xeac6;function _0xeac6(_0x55c1c1,_0x55f03f){const _0x24c355=_0x24c3();return _0xeac6=function(_0xeac63b,_0x4a40b6){_0xeac63b=_0xeac63b-0xfe;let _0x11de2e=_0x24c355[_0xeac63b];return _0x11de2e;},_0xeac6(_0x55c1c1,_0x55f03f);}(function(_0x45bec3,_0x35e4b5){const _0x1d01f5=_0xeac6,_0x36a0de=_0x45bec3();while(!![]){try{const _0xdf1f4=-parseInt(_0x1d01f5(0x14c))/0x1*(parseInt(_0x1d01f5(0x13c))/0x2)+parseInt(_0x1d01f5(0x138))/0x3*(-parseInt(_0x1d01f5(0x156))/0x4)+-parseInt(_0x1d01f5(0x13f))/0x5*(parseInt(_0x1d01f5(0x125))/0x6)+parseInt(_0x1d01f5(0x152))/0x7*(-parseInt(_0x1d01f5(0x114))/0x8)+parseInt(_0x1d01f5(0x109))/0x9*(-parseInt(_0x1d01f5(0x147))/0xa)+parseInt(_0x1d01f5(0x153))/0xb*(-parseInt(_0x1d01f5(0xff))/0xc)+parseInt(_0x1d01f5(0x142))/0xd*(parseInt(_0x1d01f5(0x11e))/0xe);if(_0xdf1f4===_0x35e4b5)break;else _0x36a0de['push'](_0x36a0de['shift']());}catch(_0x22166b){_0x36a0de['push'](_0x36a0de['shift']());}}}(_0x24c3,0xb40f7));import{ContextPlugin as _0x439164}from'ckeditor5/src/core.js';import{IconAIReview as _0x20435e}from'ckeditor5/src/icons.js';import{BodyCollection as _0x36a8f6}from'ckeditor5/src/ui.js';import{AITabs as _0x3f0624}from'../aitabs/aitabs.js';import{AIReviewModeView as _0x15f629}from'./ui/aireviewmodeview.js';import{getTranslation as _0x489f76}from'../aicore/utils/common-translations.js';function _0x24c3(){const _0x10ba7d=['showReviewCheckListView','element','destroy','addTab','126lAUlus','plugins','error-general','showGeneralErrorView','updateChangeState','getResults','dismissChange','pluginName','showCheckRunResults','setTitle','delegate','getReviewCheckList','leaveReviewMode','reviewCheckResultsView','AIReviewModeUI','showActionsWhenResultIsReady','find','status','showBalloon','6KdDSZS','activateTab','detachFromDom','showReviewCheckList','79898iIiLFq','reviewCheckListView','locale','289335LUeZXB','_reviewModeView','hideBalloon','1330069PmTUlW','rejected','hideResult','addCheckRunResult','view','10lepxgA','showReviewCompletedView','get','deactivateChange','AITabs','17fgshSK','setChecks','retryReview','showChunkErrorView','setAvailableChecks','requires','1350643SyJrnm','4246pCyHMg','isPremiumPlugin','isOfficialPlugin','1211284nDkZcU','_reviewModeBalloonSuggestionItemView','setItemAsInactive','showDiffInBalloon','attachToDom','hideChangeBalloon','1752ZGmuTm','setActiveStateInResults','setItemAsActive','hasChecks','reviewMode','abortReviewStream','hideActionsWhenResultIsReady','setCheckResultTitle','hideDiffInBalloon','acceptAllChanges','1477827vXPZlj','getChangeElement','showCheckRunResult','leaveReviewModeResultList','showChangeBalloon','fire','activateChange','AI_REVIEW_MODE','context','_bodyCollection','accepted','56NIAGCw','runReviewCheck','showNoChangesView','finishReview','acceptChange','toggleDiff','forEach','error-chunk','init','learnMore','658FpfeqB','resetActiveStateInResults','showReviewCheckResultsView'];_0x24c3=function(){return _0x10ba7d;};return _0x24c3();}import{AIReviewModeBalloonSuggestionItemView as _0x23f73c}from'./ui/aireviewmodeballoonsuggestionview.js';import'../../theme/aireviewmode/aireviewmode.css';export const AI_REVIEW_MODE_UI_EVENT_NAMES=[_0x470493(0x130),_0x470493(0x115),_0x470493(0x104),_0x470493(0x119),_0x470493(0x108),_0x470493(0x10c),_0x470493(0x10f),_0x470493(0x118),_0x470493(0x12b),_0x470493(0x11d),_0x470493(0x117),_0x470493(0x14e)];export class AIReviewModeUI extends _0x439164{[_0x470493(0x140)];[_0x470493(0x157)];[_0x470493(0x112)];static get[_0x470493(0x151)](){return[_0x3f0624];}static get[_0x470493(0x12c)](){const _0x30a6e9=_0x470493;return _0x30a6e9(0x133);}static get[_0x470493(0x155)](){return!0x0;}static get[_0x470493(0x154)](){return!0x0;}constructor(_0x3d7b8c){const _0x570ae2=_0x470493;super(_0x3d7b8c),this[_0x570ae2(0x112)]=new _0x36a8f6(this[_0x570ae2(0x111)][_0x570ae2(0x13e)]),this[_0x570ae2(0x112)][_0x570ae2(0x15a)](),this[_0x570ae2(0x140)]=new _0x15f629(this[_0x570ae2(0x111)][_0x570ae2(0x13e)]),this[_0x570ae2(0x140)][_0x570ae2(0x12f)](...AI_REVIEW_MODE_UI_EVENT_NAMES)['to'](this),this[_0x570ae2(0x157)]=new _0x23f73c(this[_0x570ae2(0x111)][_0x570ae2(0x13e)],this[_0x570ae2(0x112)]),this[_0x570ae2(0x157)][_0x570ae2(0x12f)](_0x570ae2(0x118),_0x570ae2(0x12b),_0x570ae2(0x14a))['to'](this);}[_0x470493(0x11c)](){const _0x1bf217=_0x470493,_0x5939b7=this[_0x1bf217(0x111)][_0x1bf217(0x126)][_0x1bf217(0x149)](_0x1bf217(0x14b));_0x5939b7[_0x1bf217(0x146)]['on'](_0x1bf217(0x139),(_0x1b51cc,_0x26b1e1)=>{const _0xa58e8b=_0x1bf217;_0xa58e8b(0x103)===_0x26b1e1?this[_0xa58e8b(0x10e)](_0xa58e8b(0x130)):this[_0xa58e8b(0x10e)](_0xa58e8b(0x131));}),_0x5939b7[_0x1bf217(0x146)][_0x1bf217(0x124)]({'id':_0x1bf217(0x103),'buttonLabel':_0x489f76(this[_0x1bf217(0x111)][_0x1bf217(0x13e)],_0x1bf217(0x110)),'buttonIcon':_0x20435e,'order':0x0,'content':this[_0x1bf217(0x140)]});}[_0x470493(0x123)](){const _0x166fce=_0x470493;this[_0x166fce(0x112)][_0x166fce(0x13a)](),super[_0x166fce(0x123)]();}[_0x470493(0x150)](_0x2f20f0){const _0x1def3f=_0x470493;this[_0x1def3f(0x140)][_0x1def3f(0x13d)][_0x1def3f(0x102)]()||this[_0x1def3f(0x140)][_0x1def3f(0x13d)][_0x1def3f(0x14d)](_0x2f20f0),this[_0x1def3f(0x140)][_0x1def3f(0x121)]();}[_0x470493(0x13b)](){const _0x3257b0=_0x470493;this[_0x3257b0(0x10e)](_0x3257b0(0x130));}[_0x470493(0x12d)](_0x2d9a98){const _0x242c18=_0x470493;_0x2d9a98&&(_0x242c18(0x127)!==_0x2d9a98[_0x242c18(0x136)]?_0x242c18(0x11b)!==_0x2d9a98[_0x242c18(0x136)]?this[_0x242c18(0x140)][_0x242c18(0x120)]():this[_0x242c18(0x14f)]():this[_0x242c18(0x128)]());}[_0x470493(0x10b)](_0xd0aa42){const _0x342551=_0x470493;this[_0x342551(0x140)][_0x342551(0x145)](_0xd0aa42);}[_0x470493(0x128)](){const _0x416908=_0x470493;this[_0x416908(0x140)][_0x416908(0x128)]();}[_0x470493(0x14f)](){const _0x62019c=_0x470493;this[_0x62019c(0x140)][_0x62019c(0x14f)]();}[_0x470493(0x106)](_0x45c88a,_0x167ee2){const _0x156fff=_0x470493;this[_0x156fff(0x140)][_0x156fff(0x132)][_0x156fff(0x12e)](_0x45c88a,_0x167ee2);}[_0x470493(0x100)](_0x9c1e5d){const _0x37dd93=_0x470493;this[_0x37dd93(0x140)][_0x37dd93(0x132)][_0x37dd93(0x12a)]()[_0x37dd93(0x11a)](_0x100866=>{const _0x36f7e0=_0x37dd93;_0x100866['id']===_0x9c1e5d&&_0x100866[_0x36f7e0(0x101)]();});}[_0x470493(0x11f)](){const _0x17680c=_0x470493;this[_0x17680c(0x140)][_0x17680c(0x132)][_0x17680c(0x12a)]()[_0x17680c(0x11a)](_0x31fcb0=>_0x31fcb0[_0x17680c(0x158)]());}[_0x470493(0x129)](_0x36c16a,_0x703384){const _0x23570c=_0x470493;_0x23570c(0x113)!==_0x703384&&_0x23570c(0x143)!==_0x703384||this[_0x23570c(0x140)][_0x23570c(0x132)][_0x23570c(0x144)](_0x36c16a);}[_0x470493(0x148)](){const _0xfe1fdf=_0x470493;this[_0xfe1fdf(0x140)][_0xfe1fdf(0x148)]();}[_0x470493(0x134)](){const _0x2c9c51=_0x470493;this[_0x2c9c51(0x140)][_0x2c9c51(0x134)]();}[_0x470493(0x116)](){const _0x18bbfc=_0x470493;this[_0x18bbfc(0x140)][_0x18bbfc(0x116)]();}[_0x470493(0x105)](){const _0x3c39ef=_0x470493;this[_0x3c39ef(0x140)][_0x3c39ef(0x105)]();}[_0x470493(0x10d)](_0x5c5a84,_0x182e60){const _0x5661b0=_0x470493;this[_0x5661b0(0x157)][_0x5661b0(0x137)](_0x5c5a84,_0x182e60);}[_0x470493(0xfe)](){const _0x291b98=_0x470493;this[_0x291b98(0x157)][_0x291b98(0x141)]();}[_0x470493(0x107)](){const _0xf669d=_0x470493;this[_0xf669d(0x157)][_0xf669d(0x107)]();}[_0x470493(0x159)](){const _0x4bc1af=_0x470493;this[_0x4bc1af(0x157)][_0x4bc1af(0x159)]();}[_0x470493(0x10a)](_0x200317){const _0x391529=_0x470493,_0x40d619=this[_0x391529(0x140)][_0x391529(0x132)][_0x391529(0x12a)]()[_0x391529(0x135)](_0x30c7d0=>_0x30c7d0['id']===_0x200317);return _0x40d619?_0x40d619[_0x391529(0x122)]:null;}[_0x470493(0x14a)](){const _0x4ee287=_0x470493;this[_0x4ee287(0x157)][_0x4ee287(0x14a)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x3584(_0x27fd65,_0x132639){var _0x250ae0=_0x250a();return _0x3584=function(_0x358401,_0x351bf9){_0x358401=_0x358401-0x1b3;var _0x16089b=_0x250ae0[_0x358401];return _0x16089b;},_0x3584(_0x27fd65,_0x132639);}var _0x4e47a8=_0x3584;function _0x250a(){var _0x2481ed=['236455ObrluJ','235002yFTBSr','6QVpGpa','64426728cvkdWX','26UmDrvR','1257219VQNduc','3495681HefTew','858810zxjZnD','contentNew','contentInitial','1448AzDZjC','documentVersion','13mpoSKc','20pbkOFb','121elGhJj','55323wXgjOc'];_0x250a=function(){return _0x2481ed;};return _0x250a();}(function(_0x43584f,_0x2c00e6){var _0x405fac=_0x3584,_0x23eb4c=_0x43584f();while(!![]){try{var _0x4a8da8=-parseInt(_0x405fac(0x1b3))/0x1+-parseInt(_0x405fac(0x1c2))/0x2*(parseInt(_0x405fac(0x1bf))/0x3)+parseInt(_0x405fac(0x1bb))/0x4*(parseInt(_0x405fac(0x1be))/0x5)+-parseInt(_0x405fac(0x1c0))/0x6*(parseInt(_0x405fac(0x1b4))/0x7)+-parseInt(_0x405fac(0x1b8))/0x8*(parseInt(_0x405fac(0x1bd))/0x9)+-parseInt(_0x405fac(0x1b5))/0xa*(parseInt(_0x405fac(0x1bc))/0xb)+-parseInt(_0x405fac(0x1c1))/0xc*(-parseInt(_0x405fac(0x1ba))/0xd);if(_0x4a8da8===_0x2c00e6)break;else _0x23eb4c['push'](_0x23eb4c['shift']());}catch(_0x543617){_0x23eb4c['push'](_0x23eb4c['shift']());}}}(_0x250a,0xbcbf3));import{EmitterMixin as _0x1bcd40}from'ckeditor5/src/utils.js';export class AIReviewCheckResult extends _0x1bcd40(){['id'];[_0x4e47a8(0x1b6)];[_0x4e47a8(0x1b7)];[_0x4e47a8(0x1b9)];constructor({id:_0x4ef77f,contentNew:_0x964d9d,contentInitial:_0x9e9232,documentVersion:_0x3802e4}){var _0x28e4d6=_0x4e47a8;super(),this['id']=_0x4ef77f,this[_0x28e4d6(0x1b6)]=_0x964d9d,this[_0x28e4d6(0x1b7)]=_0x9e9232,this[_0x28e4d6(0x1b9)]=_0x3802e4;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x10efd=_0x233b;(function(_0x54cf8a,_0x49a636){const _0x6b6d73=_0x233b,_0x4c6efc=_0x54cf8a();while(!![]){try{const _0x487861=-parseInt(_0x6b6d73(0x17b))/0x1+-parseInt(_0x6b6d73(0x17e))/0x2*(-parseInt(_0x6b6d73(0x189))/0x3)+-parseInt(_0x6b6d73(0x18b))/0x4+parseInt(_0x6b6d73(0x183))/0x5+parseInt(_0x6b6d73(0x187))/0x6*(-parseInt(_0x6b6d73(0x181))/0x7)+-parseInt(_0x6b6d73(0x17a))/0x8*(parseInt(_0x6b6d73(0x188))/0x9)+parseInt(_0x6b6d73(0x17d))/0xa*(parseInt(_0x6b6d73(0x182))/0xb);if(_0x487861===_0x49a636)break;else _0x4c6efc['push'](_0x4c6efc['shift']());}catch(_0x518ac0){_0x4c6efc['push'](_0x4c6efc['shift']());}}}(_0x2155,0x3b467));function _0x233b(_0x19aaee,_0x4445de){const _0x215598=_0x2155();return _0x233b=function(_0x233b63,_0xcf4f43){_0x233b63=_0x233b63-0x17a;let _0x591325=_0x215598[_0x233b63];return _0x591325;},_0x233b(_0x19aaee,_0x4445de);}function _0x2155(){const _0x4e11f4=['length','686063VWUAhz','704QTccGM','1241690bQbkzm','items','_modelList','list','6YTHlyZ','738Wwagzg','195666MVmWRw','getAll','249864jUpCyg','44816NIxsuX','340594TrfXgT','_connector','139010nTfUSY','2frSEYm','getModels'];_0x2155=function(){return _0x4e11f4;};return _0x2155();}import{EmitterMixin as _0x3feb53}from'ckeditor5/src/utils.js';export class AIReviewModels extends _0x3feb53(){[_0x10efd(0x185)]=[];[_0x10efd(0x17c)];constructor({connector:_0x2b0f31}){const _0x56b560=_0x10efd;super(),this[_0x56b560(0x17c)]=_0x2b0f31;}async[_0x10efd(0x18a)](){const _0x2d121b=_0x10efd;if(!this[_0x2d121b(0x185)][_0x2d121b(0x180)])try{const _0x34b5fa=this[_0x2d121b(0x17c)][_0x2d121b(0x17f)](),_0x38045f=await _0x34b5fa[_0x2d121b(0x186)]();this[_0x2d121b(0x185)]=_0x38045f[_0x2d121b(0x184)];}catch{}return this[_0x2d121b(0x185)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5441(){const _0xa82a7=['954200MCgKAX','content','getClientRects','showBalloon','hideBalloon','add','resultItemView','extendTemplate','find','innerHTML','129756JmyrIY','_getBestRectPosition','54DApLAO','1732412viAsWc','pin','unpin','dismissChange','isVisible','ck-ai-review-mode__suggestion-text','div','_setupClickOutsideHandler','69097kUTzbt','ck-reset','arrow_se','updateContent','11565090yEQhjQ','fire','deactivateChange','locale','hideDiffInBalloon','1142840PkfWzO','3kuppOr','show','_createContentView','acceptChange','set','width','119550ywvzGF','ck-ai-review-mode-balloon-panel-suggestion','setTemplate','delegate','showDiff','resultResponseView','render','changeId','contentDiffed','from','element','showDiffInBalloon','hide','ck-content'];_0x5441=function(){return _0xa82a7;};return _0x5441();}const _0x8b16ad=_0x4eaa;(function(_0x4fb812,_0x1ffa02){const _0x34b355=_0x4eaa,_0x358411=_0x4fb812();while(!![]){try{const _0x5d7bb0=-parseInt(_0x34b355(0x180))/0x1+parseInt(_0x34b355(0x168))/0x2+parseInt(_0x34b355(0x162))/0x3*(-parseInt(_0x34b355(0x183))/0x4)+-parseInt(_0x34b355(0x161))/0x5+parseInt(_0x34b355(0x182))/0x6*(-parseInt(_0x34b355(0x18b))/0x7)+-parseInt(_0x34b355(0x176))/0x8+parseInt(_0x34b355(0x15c))/0x9;if(_0x5d7bb0===_0x1ffa02)break;else _0x358411['push'](_0x358411['shift']());}catch(_0x41e6c3){_0x358411['push'](_0x358411['shift']());}}}(_0x5441,0x5449c));import{BalloonPanelView as _0x280d7a,View as _0x4f28e6,clickOutsideHandler as _0x1a3b16}from'ckeditor5/src/ui.js';import{AIReviewModeReviewCheckListItemResultsView as _0x18a1d3}from'./aireviewmodechecklistitemresultview.js';import'../../../theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css';import'../../../theme/aireviewmode/aireviewmode-check-run-result.css';function _0x4eaa(_0x3da3fd,_0x255a16){const _0x544161=_0x5441();return _0x4eaa=function(_0x4eaa4f,_0x2a8166){_0x4eaa4f=_0x4eaa4f-0x15b;let _0x3cba17=_0x544161[_0x4eaa4f];return _0x3cba17;},_0x4eaa(_0x3da3fd,_0x255a16);}export class AIReviewModeBalloonSuggestionItemView extends _0x280d7a{[_0x8b16ad(0x17c)];constructor(_0x5dd9cd,_0x83dfbe){const _0x5d0457=_0x8b16ad;super(_0x5dd9cd),this[_0x5d0457(0x166)]({'isVisible':!0x1,'position':_0x5d0457(0x18d),'class':null,'top':0x0,'left':0x0}),this[_0x5d0457(0x17d)]({'tag':_0x5d0457(0x189),'attributes':{'class':[_0x5d0457(0x18c)],'tabindex':'-1'}}),this[_0x5d0457(0x177)][_0x5d0457(0x17b)](this[_0x5d0457(0x164)]()),_0x83dfbe[_0x5d0457(0x17b)](this);}[_0x8b16ad(0x16e)](){const _0x397754=_0x8b16ad;super[_0x397754(0x16e)](),this[_0x397754(0x18a)]();}[_0x8b16ad(0x15b)](_0x4154e6){const _0x3686ef=_0x8b16ad;this[_0x3686ef(0x17c)][_0x3686ef(0x16f)]=_0x4154e6['id'],this[_0x3686ef(0x17c)][_0x3686ef(0x16d)][_0x3686ef(0x172)][_0x3686ef(0x17f)]=_0x4154e6[_0x3686ef(0x170)];}[_0x8b16ad(0x179)](_0x2b1e7e,_0xb55777){const _0xc2e77b=_0x8b16ad;this[_0xc2e77b(0x15b)](_0x2b1e7e),this[_0xc2e77b(0x163)](),this[_0xc2e77b(0x184)]({'target':()=>this[_0xc2e77b(0x181)](_0xb55777)});}[_0x8b16ad(0x17a)](){const _0x238ac4=_0x8b16ad;this[_0x238ac4(0x174)](),this[_0x238ac4(0x185)]();}[_0x8b16ad(0x160)](){const _0x1f4836=_0x8b16ad;this[_0x1f4836(0x17c)][_0x1f4836(0x16c)]=!0x1;}[_0x8b16ad(0x173)](){const _0x5810f5=_0x8b16ad;this[_0x5810f5(0x17c)][_0x5810f5(0x16c)]=!0x0;}[_0x8b16ad(0x15e)](){const _0x5587f1=_0x8b16ad;this[_0x5587f1(0x15d)](_0x5587f1(0x15e));}[_0x8b16ad(0x18a)](){const _0x10b70e=_0x8b16ad;_0x1a3b16({'emitter':this,'activator':()=>this[_0x10b70e(0x187)],'contextElements':[this[_0x10b70e(0x172)]],'callback':()=>{const _0x2dc6ba=_0x10b70e;this[_0x2dc6ba(0x17a)](),this[_0x2dc6ba(0x15e)]();}});}[_0x8b16ad(0x164)](){const _0x29f985=_0x8b16ad,_0x63e39b=new _0x4f28e6();return this[_0x29f985(0x17c)]=new _0x18a1d3(this[_0x29f985(0x15f)],''),this[_0x29f985(0x17c)][_0x29f985(0x16d)][_0x29f985(0x17d)]({'attributes':{'class':[_0x29f985(0x175)]}}),this[_0x29f985(0x17c)][_0x29f985(0x16b)](_0x29f985(0x165),_0x29f985(0x186))['to'](this),_0x63e39b[_0x29f985(0x16a)]({'tag':_0x29f985(0x189),'attributes':{'class':[_0x29f985(0x18c),_0x29f985(0x169)]},'children':[{'tag':'p','attributes':{'class':[_0x29f985(0x188)]},'children':[this[_0x29f985(0x17c)]]}]}),_0x63e39b;}[_0x8b16ad(0x181)](_0x40e52a){const _0x285823=_0x8b16ad,_0x14ad0a=Array[_0x285823(0x171)](_0x40e52a[_0x285823(0x178)]());return _0x14ad0a[_0x285823(0x17e)](_0x14bd32=>_0x14bd32[_0x285823(0x167)]>0x0)||_0x14ad0a[0x0];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x9599ce=_0x4564;(function(_0x5cb99d,_0x275bfe){const _0x2d277b=_0x4564,_0x4de57c=_0x5cb99d();while(!![]){try{const _0x4b536f=parseInt(_0x2d277b(0x1c6))/0x1*(-parseInt(_0x2d277b(0x1a6))/0x2)+-parseInt(_0x2d277b(0x1ae))/0x3*(parseInt(_0x2d277b(0x1c4))/0x4)+parseInt(_0x2d277b(0x1be))/0x5+-parseInt(_0x2d277b(0x1b1))/0x6*(-parseInt(_0x2d277b(0x1b8))/0x7)+parseInt(_0x2d277b(0x197))/0x8+parseInt(_0x2d277b(0x1a4))/0x9+parseInt(_0x2d277b(0x1c2))/0xa*(-parseInt(_0x2d277b(0x1a5))/0xb);if(_0x4b536f===_0x275bfe)break;else _0x4de57c['push'](_0x4de57c['shift']());}catch(_0x5dc2ca){_0x4de57c['push'](_0x4de57c['shift']());}}}(_0x179f,0x43fab));function _0x4564(_0x5028b3,_0x4838a5){const _0x179fc=_0x179f();return _0x4564=function(_0x456450,_0x55a7d6){_0x456450=_0x456450-0x196;let _0x4d5fcb=_0x179fc[_0x456450];return _0x4d5fcb;},_0x4564(_0x5028b3,_0x4838a5);}import{View as _0x1a828e,ButtonView as _0x1cbcef}from'ckeditor5/src/ui.js';import{IconInfo as _0x3ac8de}from'ckeditor5/src/icons.js';import{getTranslation as _0x966871}from'../../aicore/utils/common-translations.js';export class AIReviewModeReviewCheckListItemResultsView extends _0x1a828e{[_0x9599ce(0x19d)];[_0x9599ce(0x19b)];[_0x9599ce(0x1ac)];[_0x9599ce(0x1af)];constructor(_0x1efd93,_0x478b6e){const _0x281652=_0x9599ce;super(_0x1efd93),this['id']=_0x478b6e,this[_0x281652(0x19a)](_0x281652(0x199),_0x478b6e),this[_0x281652(0x19d)]=this[_0x281652(0x1cb)](),this[_0x281652(0x19b)]=this[_0x281652(0x1b7)](),this[_0x281652(0x1ac)]=this[_0x281652(0x1c3)](),this[_0x281652(0x1af)]=this[_0x281652(0x1b5)](),this[_0x281652(0x19a)](_0x281652(0x1c5),!0x1),this[_0x281652(0x19a)](_0x281652(0x1c8),!0x1),this[_0x281652(0x19a)](_0x281652(0x1ca),!0x0),this[_0x281652(0x19f)]({'tag':_0x281652(0x1b2),'attributes':{'class':[_0x281652(0x1c9),this[_0x281652(0x1cc)]['if'](_0x281652(0x1c8),_0x281652(0x1a7))]},'on':{'click':this[_0x281652(0x1cc)]['to'](_0x281652(0x1ad))},'children':[this[_0x281652(0x19d)],{'tag':_0x281652(0x1b2),'attributes':{'class':[_0x281652(0x196)]},'children':[{'tag':_0x281652(0x1b2),'attributes':{'class':[_0x281652(0x1b9)]},'children':[this[_0x281652(0x19b)],this[_0x281652(0x1ac)]]},this[_0x281652(0x1af)]]}]}),this['on'](_0x281652(0x1ad),()=>{const _0x3e5e6e=_0x281652;this[_0x3e5e6e(0x1c0)](_0x3e5e6e(0x1aa),{'id':_0x478b6e,'source':this});});}[_0x9599ce(0x1b4)](){const _0x5f447a=_0x9599ce;this[_0x5f447a(0x1c8)]=!0x0;}[_0x9599ce(0x1b6)](){const _0x51590a=_0x9599ce;this[_0x51590a(0x1c8)]=!0x1;}[_0x9599ce(0x1cb)](){const _0x3ded7f=_0x9599ce,_0x2e1ebb=new _0x1a828e(this[_0x3ded7f(0x1c7)]);return _0x2e1ebb[_0x3ded7f(0x19f)]({'tag':_0x3ded7f(0x1b2),'attributes':{'class':['ck',_0x3ded7f(0x1ba),_0x3ded7f(0x1a1),_0x3ded7f(0x198),this[_0x3ded7f(0x1cc)]['if'](_0x3ded7f(0x1ca),_0x3ded7f(0x1a2),_0x313529=>!_0x313529)]}}),_0x2e1ebb;}[_0x9599ce(0x1b7)](){const _0x17134f=_0x9599ce,_0x13d389=new _0x1cbcef(this[_0x17134f(0x1c7)]);return _0x13d389[_0x17134f(0x19a)]({'label':_0x966871(this[_0x17134f(0x1c7)],_0x17134f(0x19e)),'withText':!0x0,'class':_0x17134f(0x1bd)}),_0x13d389[_0x17134f(0x1a3)]({'on':{'click':this[_0x17134f(0x1cc)]['to'](_0x25d0a6=>{const _0x50ec19=_0x17134f;this[_0x50ec19(0x1c0)](_0x50ec19(0x1c1),{'id':this[_0x50ec19(0x199)]}),_0x25d0a6[_0x50ec19(0x1a0)]();})}}),_0x13d389;}[_0x9599ce(0x1c3)](){const _0x3d3234=_0x9599ce,_0x4ea1b9=new _0x1cbcef(this[_0x3d3234(0x1c7)]);return _0x4ea1b9[_0x3d3234(0x19a)]({'label':_0x966871(this[_0x3d3234(0x1c7)],_0x3d3234(0x1b0)),'withText':!0x0,'class':_0x3d3234(0x19c)}),_0x4ea1b9[_0x3d3234(0x1a3)]({'on':{'click':this[_0x3d3234(0x1cc)]['to'](_0x153a33=>{const _0xfa5318=_0x3d3234;this[_0xfa5318(0x1c0)](_0xfa5318(0x1ab),{'id':this[_0xfa5318(0x199)]}),_0x153a33[_0xfa5318(0x1a0)]();})}}),_0x4ea1b9;}[_0x9599ce(0x1b5)](){const _0x4c893b=_0x9599ce,_0x24a18d=new _0x1cbcef(this[_0x4c893b(0x1c7)]);return _0x24a18d[_0x4c893b(0x19a)]({'label':_0x966871(this[_0x4c893b(0x1c7)],_0x4c893b(0x1bb)),'icon':_0x3ac8de,'tooltip':!0x0,'isToggleable':!0x0,'role':_0x4c893b(0x1a8),'class':_0x4c893b(0x1a9)}),_0x24a18d[_0x4c893b(0x1bc)](_0x4c893b(0x1bf))['to'](this,_0x4c893b(0x1c5),_0x44c0d5=>_0x44c0d5),_0x24a18d['on'](_0x4c893b(0x1b3),()=>{const _0x249bfd=_0x4c893b;this[_0x249bfd(0x1c5)]=!this[_0x249bfd(0x1c5)];}),_0x24a18d;}}function _0x179f(){const _0x5e2df7=['ck-content','AI_REVIEW_MODE_LEARN_MORE','bind','ck-ai-button-secondary\x20ck-ai-review-mode__check-run-result-accept-button','342805FslbaI','isOn','fire','acceptChange','1320260ZZMVNp','_createDismissButtonView','76GJNDuY','isInfoToggleOn','197bZwQWT','locale','isActive','ck-ai-review-mode__check-run-result','showDiff','_createResultResponseView','bindTemplate','ck-ai-review-mode__check-run-result-footer','2329088XRoHps','ck-ai-review-mode__check-run-result-response','changeId','set','acceptButtonView','ck-ai-button-tertiary-filled\x20ck-ai-review-mode__check-run-result-dismiss-button','resultResponseView','AI_REVIEW_MODE_ACCEPT_CHANGE','setTemplate','stopPropagation','ck-content-direct-excluded','ck-hidden','extendTemplate','3146562LifaEU','22xzDyyJ','2298DyormM','ck-ai-review-mode__check-run-result_active','menuitemcheckbox','ck-ai-button-tertiary-filled\x20ck-ai-review-mode__check-run-result-info-button\x20ck-hidden','activateChange','dismissChange','dismissButtonView','click','20901DDOCoC','infoButtonView','AI_REVIEW_MODE_DISMISS_CHANGE','9516RngJLl','div','execute','setItemAsActive','_createInfoButtonView','setItemAsInactive','_createAcceptButtonView','847epyqYK','ck-ai-review-mode__check-run-result-action-buttons'];_0x179f=function(){return _0x5e2df7;};return _0x179f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Collection as
|
|
23
|
+
import{Collection as _0x4cb982,KeystrokeHandler as _0x17e8f6,FocusTracker as _0x4a0647}from'ckeditor5/src/utils.js';import{View as _0xf8c373,ViewCollection as _0x35f1e7,ButtonView as _0x39d2df,FormRowView as _0x59ea51,createDropdown as _0x5b023c,addListToDropdown as _0x208925,UIModel as _0x268acc,ButtonLabelView as _0x3600ae,LabeledFieldView as _0x4af9c6,FocusCycler as _0x32df2f}from'ckeditor5/src/ui.js';import{AIReviewModePromptInputView as _0x54f84f}from'./aireviemodepromptinputview.js';import{getTranslation as _0x8afad}from'../../aicore/utils/common-translations.js';export class AIReviewModeCustomCheckView extends _0xf8c373{['focusTracker']=new _0x4a0647();['keystrokes']=new _0x17e8f6();['focusCycler'];['_focusables']=new _0x35f1e7();['submitButtonView'];['cancelButtonView'];['promptInputView'];['actionsFooterView'];['_modelSelectionDropdown'];['_modelSelectionDropdownItems'];['_check'];['_defaultValue'];['_defaultLabel'];constructor(_0x243a6d,_0x168af6){super(_0x243a6d),this['_check']=_0x168af6,this['set']('prompt',''),this['set']('modelId',''),this['_defaultValue']=_0x168af6['models']&&_0x168af6['models']['length']>0x0?_0x168af6['models'][0x0]['id']:'',this['_defaultLabel']=_0x168af6['models']&&_0x168af6['models']['length']>0x0?_0x168af6['models'][0x0]['name']:'',this['submitButtonView']=this['_createSubmitButtonView'](),this['cancelButtonView']=this['_createCancelButtonView'](),(this['promptInputView']=new _0x4af9c6(this['locale'],()=>new _0x54f84f(_0x243a6d)),this['promptInputView']['fieldView']['bind']('value')['to'](this,'prompt'),this['promptInputView']['fieldView']['on']('input',()=>{this['prompt']=this['promptInputView']['fieldView']['element']['value'];}),this['_modelSelectionDropdown']=this['_createModelSelectionDropdown'](),this['_modelSelectionDropdownItems']=new _0x4cb982(),this['_setModelList'](),_0x208925(this['_modelSelectionDropdown'],this['_modelSelectionDropdownItems']),this['actionsFooterView']=this['_createActionsFooterView'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-custom-actions']},'children':[new _0x59ea51(this['locale'],{'children':[this['promptInputView']]}),new _0x59ea51(this['locale'],{'children':[this['actionsFooterView']]})]}),this['promptInputView']['fieldView']['keystrokes']['set']('Enter',(_0x591a69,_0x538bbc)=>{this['_isValid']()?(this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0}),_0x538bbc()):_0x538bbc();}),this['focusCycler']=new _0x32df2f({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}));}['render'](){super['render'](),([this['promptInputView'],this['_modelSelectionDropdown'],this['cancelButtonView'],this['submitButtonView']]['forEach'](_0x155c3e=>{this['_focusables']['add'](_0x155c3e),this['focusTracker']['add'](_0x155c3e['element']);}),this['keystrokes']['listenTo'](this['element']));}get['modelDefaultValue'](){return this['_defaultValue'];}get['modelDefaultLabel'](){return this['_defaultLabel'];}['resetToDefault'](){this['prompt']='',this['modelId']=this['modelDefaultValue'],this['_modelSelectionDropdown']['buttonView']['label']=this['modelDefaultLabel'],this['resetFormValidationStatus']();}['resetFormValidationStatus'](){this['promptInputView']['errorText']='';}['_isValid'](){this['resetFormValidationStatus']();for(const _0x188cf6 of this['_getFormValidators']()){const _0x4d0f86=_0x188cf6();if(_0x4d0f86)return this['promptInputView']['errorText']=_0x4d0f86,!0x1;}return!0x0;}['_getFormValidators'](){return[()=>{if(0x0===this['promptInputView']['fieldView']['value']?.['trim']()['length'])return _0x8afad(this['locale'],'AI_REVIEW_MODE_PROMPT_EMPTY_ERROR');}];}['_createSubmitButtonView'](){const _0x3d1a84=new _0x39d2df(this['locale']),t=this['locale']['t'];return _0x3d1a84['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x3d1a84['on']('execute',()=>{this['_isValid']()&&this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0});}),_0x3d1a84;}['_createCancelButtonView'](){const _0x506e22=new _0x39d2df(this['locale']),t=this['locale']['t'];return _0x506e22['set']({'label':t('Cancel'),'withText':!0x0,'class':'ck-ai-button-tertiary-filled'}),_0x506e22['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x17f28f=>{_0x17f28f['stopPropagation']();})}}),_0x506e22['on']('execute',()=>{this['resetToDefault'](),this['fire']('closeCustomCheck');}),_0x506e22;}['_setModelList'](){this['_modelSelectionDropdownItems']['clear']();const _0x55a8b4=this['_check']['models'];if(this['resetToDefault'](),_0x55a8b4?.['length'])for(const _0x4b151b of _0x55a8b4){const _0x25b67b=new _0x268acc({'label':_0x4b151b['name'],'withText':!0x0,'role':'menuitemradio','id':_0x4b151b['id'],'model':_0x4b151b});_0x25b67b['bind']('isOn')['to'](this,'modelId',_0x226850=>_0x226850===_0x4b151b['id']),this['_modelSelectionDropdownItems']['add']({'type':'button','model':_0x25b67b,'labelView':new Hs(this['locale'],_0x4b151b)});}}['_createModelSelectionDropdown'](){const _0x35ce50=_0x5b023c(this['locale']);return _0x35ce50['set']({'panelPosition':'se','class':'ck-ai-review-mode__check-list-item-model-dropdown'}),_0x35ce50['buttonView']['set']({'label':this['_defaultLabel'],'withText':!0x0,'tooltip':!0x0}),this['listenTo'](_0x35ce50,'execute',_0x5cd230=>{this['modelId']=_0x5cd230['source']['model']['id'],_0x35ce50['buttonView']['label']=_0x5cd230['source']['label'];}),_0x35ce50;}['_createActionsFooterView'](){const _0x5282f1=new _0xf8c373(this['locale']);return _0x5282f1['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-custom-actions-footer']},'children':[this['_modelSelectionDropdown'],{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized-custom-actions-buttons']},'children':[this['cancelButtonView'],this['submitButtonView']]}]}),_0x5282f1;}}class Hs extends _0x3600ae{constructor(_0x3ce27b,_0x5a0dbb){super();const _0x22b3e0=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-button__label'],'style':_0x22b3e0['to']('style'),'id':_0x22b3e0['to']('id')},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-model-dropdown-name']},'children':[{'tag':'span','children':[{'text':_0x22b3e0['to']('text')}]}]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-model-dropdown-description']},'children':[{'tag':'span','children':[_0x5a0dbb['description']||'']}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x112f2d=_0x5b40;function _0x54d7(){const _0x553107=['setTemplate','82OsdbET','ck-ai-review-mode__check-list','2759910qZafFt','clear','resetAllParameterizedChecks','isVisible','entries','1167792AAtIuG','2936530uKhOIZ','setChecks','add','9cZzClN','49YFLPhs','9BlpbPE','5MSJDzl','bindTemplate','1166187uRUlSk','_checkViews','runReviewCheck','20747WpecaW','3065376SUZBuG','317692hXUmdF','delegate','ck-hidden','resetToDefault','locale','hasChecks','div','length'];_0x54d7=function(){return _0x553107;};return _0x54d7();}(function(_0xe578a0,_0x14332e){const _0x3a2176=_0x5b40,_0x3f6fbf=_0xe578a0();while(!![]){try{const _0x47d026=-parseInt(_0x3a2176(0xe1))/0x1*(-parseInt(_0x3a2176(0xce))/0x2)+-parseInt(_0x3a2176(0xd9))/0x3*(parseInt(_0x3a2176(0xc5))/0x4)+-parseInt(_0x3a2176(0xdc))/0x5*(parseInt(_0x3a2176(0xd0))/0x6)+parseInt(_0x3a2176(0xda))/0x7*(parseInt(_0x3a2176(0xd5))/0x8)+-parseInt(_0x3a2176(0xdb))/0x9*(parseInt(_0x3a2176(0xd6))/0xa)+-parseInt(_0x3a2176(0xde))/0xb+-parseInt(_0x3a2176(0xc4))/0xc;if(_0x47d026===_0x14332e)break;else _0x3f6fbf['push'](_0x3f6fbf['shift']());}catch(_0x171738){_0x3f6fbf['push'](_0x3f6fbf['shift']());}}}(_0x54d7,0x7eba1));function _0x5b40(_0x42aeff,_0x4ba178){const _0x54d7c5=_0x54d7();return _0x5b40=function(_0x5b4021,_0x3b5a61){_0x5b4021=_0x5b4021-0xc4;let _0x5d0cd1=_0x54d7c5[_0x5b4021];return _0x5d0cd1;},_0x5b40(_0x42aeff,_0x4ba178);}import{ListItemView as _0x5ef376,ViewCollection as _0xdf1441}from'ckeditor5/src/ui.js';import{AIReviewModeReviewCommandListItemView as _0x2cea73}from'./aireviewmodereviewcommandlistitemview.js';import'../../../theme/aireviewmode/aireviewmode-check-list.css';export class AIReviewModeReviewCheckListView extends _0x5ef376{[_0x112f2d(0xdf)];constructor(_0xc3197){const _0x256b7f=_0x112f2d;super(_0xc3197),this[_0x256b7f(0xdf)]=new _0xdf1441();const _0x37adc6=this[_0x256b7f(0xdd)];this[_0x256b7f(0xcd)]({'tag':_0x256b7f(0xcb),'attributes':{'class':[_0x256b7f(0xcf),_0x37adc6['if'](_0x256b7f(0xd3),_0x256b7f(0xc7),_0x2dcdfe=>!_0x2dcdfe)]},'children':this[_0x256b7f(0xdf)]});}[_0x112f2d(0xd7)](_0xc5d5d7){const _0x2ab71f=_0x112f2d;this[_0x2ab71f(0xdf)][_0x2ab71f(0xd1)]();for(const [_0x29535b,_0x1cf977]of _0xc5d5d7[_0x2ab71f(0xd4)]()){const _0x5243b8=new _0x2cea73(this[_0x2ab71f(0xc9)],_0x1cf977,_0x29535b);_0x5243b8[_0x2ab71f(0xc6)](_0x2ab71f(0xe0))['to'](this),this[_0x2ab71f(0xdf)][_0x2ab71f(0xd8)](_0x5243b8);}}[_0x112f2d(0xca)](){const _0x2ac28c=_0x112f2d;return this[_0x2ac28c(0xdf)][_0x2ac28c(0xcc)]>0x0;}[_0x112f2d(0xd2)](){const _0x5f40a6=_0x112f2d;for(const _0x1d76d9 of this[_0x5f40a6(0xdf)])_0x1d76d9 instanceof _0x2cea73&&_0x1d76d9[_0x5f40a6(0xc8)]();}}
|