@ckeditor/ckeditor5-ai 47.0.0 → 47.1.0-alpha.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/ckeditor5-metadata.json +9 -2
- package/dist/index-editor.css +119 -34
- package/dist/index.css +144 -35
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/contexts.json +5 -0
- 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/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- 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/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.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.d.ts +3 -3
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +6 -0
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.d.ts +2 -4
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.d.ts +11 -4
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.d.ts +9 -0
- 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/aichat/utils/scrollmanager.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/aiconfig.d.ts +4 -0
- 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/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.d.ts +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/aispinner.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/common-translations.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/eventnames.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.d.ts +2 -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.d.ts +2 -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/aireviewcheckdefinitions.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.d.ts +3 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +6 -0
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +31 -3
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +5 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +7 -5
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +3 -0
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +4 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +27 -3
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +13 -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.d.ts +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/aitabsmainview.d.ts +4 -0
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.d.ts +5 -0
- package/src/errors.js +23 -0
- package/src/index.js +1 -1
- package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +4 -0
- package/theme/aichat/aichat-controls/model-unavailable-message.css +39 -0
- package/theme/aichat/aichat-controls.css +1 -0
- package/theme/aichat/aichat.css +0 -1
- package/theme/aichat/aichatfeed.css +9 -0
- package/theme/aichat/aisuggestioncontainer.css +7 -1
- package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +4 -0
- package/theme/aireviewmode/aireviewmode-check-list.css +4 -0
- package/theme/aireviewmode/aireviewmode-check-run-result.css +25 -19
- package/theme/aireviewmode/aireviewmode-check-run.css +35 -7
- package/theme/aitabs/aitabsview.css +2 -2
- package/theme/aitabs/tabs/tabsview.css +13 -3
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +0 -16
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +0 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4f8f35=_0x5692;(function(_0x5bce9d,_0x3dac87){const _0x27ba95=_0x5692,_0x5c7e96=_0x5bce9d();while(!![]){try{const _0x1b369b=parseInt(_0x27ba95(0x10e))/0x1+-parseInt(_0x27ba95(0xbb))/0x2*(-parseInt(_0x27ba95(0x10c))/0x3)+-parseInt(_0x27ba95(0xbe))/0x4*(-parseInt(_0x27ba95(0xe1))/0x5)+-parseInt(_0x27ba95(0xfe))/0x6+parseInt(_0x27ba95(0x12d))/0x7+parseInt(_0x27ba95(0xe2))/0x8+-parseInt(_0x27ba95(0xb8))/0x9*(parseInt(_0x27ba95(0x11c))/0xa);if(_0x1b369b===_0x3dac87)break;else _0x5c7e96['push'](_0x5c7e96['shift']());}catch(_0x477aa7){_0x5c7e96['push'](_0x5c7e96['shift']());}}}(_0x8d79,0x45a6c));import{ContextPlugin as _0x29da1c}from'ckeditor5/src/core.js';import{CKEditorError as _0xfb4bf1,logError as _0x95418e,scrollAncestorsToShowTarget as _0x26e1c5,scrollViewportToShowTarget as _0x527fba}from'ckeditor5/src/utils.js';function _0x8d79(){const _0x47ba7c=['isPremiumPlugin','addClass','upsertCustomAIReviewRating','_logError','panel','isCustom','init','showReviewCheckList','translate','label','replaceAll','deactivateChange','changeId','plugins','content','callId','ck-ai-review-mode-highlights','title','message','applyChange','reviewCheckResultActivated','rejectChange','result','getChangeElement','showChunkErrorView','options','addResultChanges','toUpperCase','_DESCRIPTION','length','_onReviewModeRunLeave','_currentReviewCheckRun','AIConnector','map','getRoot','AIReviewModeEditing','document','_aiReviewCheckList','domElement','AIReviewModeController','setAvailableChecks','_TITLE','aireviewmode-no-current-check-run','ready','getCheckById','rejected','error-general','ck-ai-review-mode-diff','restart','acceptAllChanges','684OKwmsc','switchToEdit','getActiveChanges','4DKhIYO','reviewCheckResultAdded','reviewCheckResultRejected','4arTwUU','view','totalCount','getAcceptedChangesCount','split','pluginName','contentNew','switchToReadOnly','markAllChangesAsAccepted','contentInitial','AI_REVIEW_CHECK_','context','ai-request-aborted','prompt','requires','_aiReviewModeEditing','_OPTIONS_LABEL','custom','hideChangeBalloon','changeMarkerClick','.ck-ai-review-mode__check-run-result','updateChangeState','diffContent','AI_MODEL_DESCRIPTION_','_aiConnector','isChangeActive','dismissChange','find','description','showActionsWhenResultIsReady','showCheckRunResult','processedResultsCount','accepted','changes','ai.reviewMode.translations','2199095hlsXCe','2306960ouZqMW','model','models','setCheckResultTitle','_translateReviewChecks','editing','isOfficialPlugin','setActiveStateInResults','_OPTIONS_DATA_','_changeActivationSource','loading','activateChange','status','AIReviewModeUI','_aiReviewModeUi','leaveReviewModeResultList','reviewCheckResultDeactivated','aireviewmode-check-run-failed','removeClass','markChangePositionInEditorContent','reviewCheckResultAccepted','clearAllMarkers','showCheckRunResults','reviewCheckRunUpdated','_isDiffOn','error-chunk','getEditor','_updateRatings','1690512qDgIcO','getAll','change','abortReviewStream','locale','aborted','reviewCheckResultReady','closest','getDocumentData','forceReadyState','start','params','args','includes','40743MuasKo','aireviewmode-source-check-not-found','499647lGNXcx','reviewName','finished','showReviewCompletedView','_onDiffChange','resetActiveStateInResults','source','listenTo','stopListening','_getTranslationWithDefault','checks','markChangeAsAccepted','emitter','runReviewCheck','114330oasUFR','getReviewCheckList','finishReview','retryReview','getMarkerElementForChange','data','toggleDiff','leaveReviewMode','upsertAIReviewRating','abort','showNoChangesView','acceptChange','config','markChangeAsRejected','showGeneralErrorView','get','unmodified','1266678HtyZnL','documentData','getTotalChangesCount','showChangeBalloon'];_0x8d79=function(){return _0x47ba7c;};return _0x8d79();}import{AIConnector as _0x5355f3}from'../aicore/aiconnector.js';import{AIReviewCheckList as _0x516c49}from'./model/aireviewchecklist.js';import{AIReviewSystemCheckRun as _0x4807e6}from'./model/aireviewsystemcheckrun.js';import{AIReviewCustomCheckRun as _0x316a10}from'./model/aireviewcustomcheckrun.js';import{AIReviewModels as _0x3f2538}from'./model/aireviewmodels.js';import{AI_REVIEW_CHECKS as _0x233201}from'./aireviewcheckdefinitions.js';import{getTranslation as _0x3bf48d}from'../aicore/utils/common-translations.js';function _0x5692(_0xad4c08,_0x1d0bf8){const _0x8d798a=_0x8d79();return _0x5692=function(_0x56922d,_0xc39cbe){_0x56922d=_0x56922d-0x89;let _0x14b0dd=_0x8d798a[_0x56922d];return _0x14b0dd;},_0x5692(_0xad4c08,_0x1d0bf8);}export class AIReviewModeController extends _0x29da1c{[_0x4f8f35(0xd6)];[_0x4f8f35(0xf0)];[_0x4f8f35(0xcd)];[_0x4f8f35(0xab)];[_0x4f8f35(0xa5)];[_0x4f8f35(0xfa)]=!0x1;[_0x4f8f35(0xeb)]=null;static get[_0x4f8f35(0xcc)](){return[_0x5355f3];}static get[_0x4f8f35(0xc3)](){const _0x1c1a46=_0x4f8f35;return _0x1c1a46(0xad);}static get[_0x4f8f35(0xe8)](){return!0x0;}static get[_0x4f8f35(0x131)](){return!0x0;}async[_0x4f8f35(0x8c)](){const _0x3e1b8a=_0x4f8f35;this[_0x3e1b8a(0xd6)]=this[_0x3e1b8a(0xc9)][_0x3e1b8a(0x93)][_0x3e1b8a(0x12b)](_0x3e1b8a(0xa6)),this[_0x3e1b8a(0xf0)]=this[_0x3e1b8a(0xc9)][_0x3e1b8a(0x93)][_0x3e1b8a(0x12b)](_0x3e1b8a(0xef)),this[_0x3e1b8a(0xcd)]=this[_0x3e1b8a(0xc9)][_0x3e1b8a(0x93)][_0x3e1b8a(0x12b)](_0x3e1b8a(0xa9));const _0x58347f=this[_0x3e1b8a(0xc9)][_0x3e1b8a(0x128)][_0x3e1b8a(0x12b)](_0x3e1b8a(0xe0));if(_0x58347f){for(const _0x1ba940 of _0x233201)_0x3e1b8a(0x8e)===_0x1ba940['id']&&(_0x1ba940[_0x3e1b8a(0x9f)][0x0][_0x3e1b8a(0x121)]=_0x58347f);}const _0x48ed57=this[_0x3e1b8a(0xe6)](_0x233201);this[_0x3e1b8a(0xab)]=new _0x516c49(_0x48ed57);const _0x15c5ba=this[_0x3e1b8a(0xab)][_0x3e1b8a(0x118)][_0x3e1b8a(0xd9)](_0xc35627=>_0x3e1b8a(0xcf)===_0xc35627['id']);if(_0x15c5ba){const _0x1288a4=await new _0x3f2538({'connector':this[_0x3e1b8a(0xd6)]})[_0x3e1b8a(0xff)]();_0x15c5ba[_0x3e1b8a(0xe4)]=_0x1288a4[_0x3e1b8a(0xa7)](_0x32256a=>({..._0x32256a,'description':this[_0x3e1b8a(0x117)](_0x3e1b8a(0xd5)+_0x32256a['id'][_0x3e1b8a(0xa1)](),_0x32256a[_0x3e1b8a(0xda)])}));}this[_0x3e1b8a(0x115)](this[_0x3e1b8a(0xf0)],_0x3e1b8a(0x11d),()=>{const _0x106b07=_0x3e1b8a;this[_0x106b07(0xf0)][_0x106b07(0xae)](this[_0x106b07(0xab)][_0x106b07(0x118)]);}),this[_0x3e1b8a(0x115)](this[_0x3e1b8a(0xf0)],_0x3e1b8a(0x11b),async(_0x2177ed,_0x3467cc)=>{const _0x248bd6=_0x3e1b8a,_0x366a52=this[_0x248bd6(0xab)][_0x248bd6(0xb2)](_0x3467cc['id']);if(_0x366a52){this[_0x248bd6(0x112)](this[_0x248bd6(0xfa)]),_0x3467cc[_0x248bd6(0x8b)]?this[_0x248bd6(0xa5)]=new _0x316a10(_0x3467cc[_0x248bd6(0x10a)][_0x248bd6(0xcb)],_0x3467cc[_0x248bd6(0x10a)][_0x248bd6(0xe3)],this[_0x248bd6(0xcd)][_0x248bd6(0x106)](),_0x366a52,this[_0x248bd6(0xd6)]):this[_0x248bd6(0xa5)]=new _0x4807e6(this[_0x248bd6(0xcd)][_0x248bd6(0x106)](),_0x366a52,this[_0x248bd6(0xd6)],_0x3467cc[_0x248bd6(0x109)],_0x3467cc[_0x248bd6(0x10a)]),this[_0x248bd6(0xf0)][_0x248bd6(0xe5)](this[_0x248bd6(0xa5)][_0x248bd6(0x97)]),this[_0x248bd6(0xa5)]['on'](_0x248bd6(0xf9),(_0x360a9e,_0x3f4b79)=>{const _0x2921b9=_0x248bd6;_0x2921b9(0x121)===_0x3f4b79[_0x2921b9(0xee)]||_0x2921b9(0xec)===_0x3f4b79[_0x2921b9(0xee)]?(this[_0x2921b9(0xcd)][_0x2921b9(0xc5)](),this[_0x2921b9(0xf0)][_0x2921b9(0xf8)](_0x3f4b79)):_0x2921b9(0x110)===_0x3f4b79[_0x2921b9(0xee)]?this[_0x2921b9(0xf0)][_0x2921b9(0x111)]():_0x2921b9(0xb1)===_0x3f4b79[_0x2921b9(0xee)]?this[_0x2921b9(0xf0)][_0x2921b9(0xdb)]():_0x2921b9(0x12c)===_0x3f4b79[_0x2921b9(0xee)]?this[_0x2921b9(0xf0)][_0x2921b9(0x126)]():_0x2921b9(0xb4)===_0x3f4b79[_0x2921b9(0xee)]?this[_0x2921b9(0xf0)][_0x2921b9(0x12a)]():_0x2921b9(0xfb)===_0x3f4b79[_0x2921b9(0xee)]?this[_0x2921b9(0xf0)][_0x2921b9(0x9e)]():_0x2921b9(0x103)===_0x3f4b79[_0x2921b9(0xee)]&&(this[_0x2921b9(0xa5)]&&this[_0x2921b9(0xa5)][_0x2921b9(0xdd)]>0x0?setTimeout(()=>{const _0x53a1b4=_0x2921b9;this[_0x53a1b4(0xa5)]?.[_0x53a1b4(0x107)]();},0x0):this[_0x2921b9(0xa4)](!0x0));}),this[_0x248bd6(0xa5)]['on'](_0x248bd6(0xbc),(_0x26bf2c,_0xb74d26)=>{const _0x3c7eb4=_0x248bd6;if(!this[_0x3c7eb4(0xa5)])throw new _0xfb4bf1(_0x3c7eb4(0xb0),this);const _0x524d61=this[_0x3c7eb4(0xcd)][_0x3c7eb4(0xd4)](_0xb74d26[_0x3c7eb4(0x9c)][_0x3c7eb4(0xc7)],_0xb74d26[_0x3c7eb4(0x9c)][_0x3c7eb4(0xc4)]);_0xb74d26[_0x3c7eb4(0x114)][_0x3c7eb4(0xa0)](_0xb74d26[_0x3c7eb4(0x9c)]['id'],_0x524d61);}),this[_0x248bd6(0xa5)]['on'](_0x248bd6(0x104),(_0x4c208b,_0x55517b)=>{const _0x50791a=_0x248bd6;for(const _0x56968d of _0x55517b[_0x50791a(0xdf)])this[_0x50791a(0xf0)][_0x50791a(0xdc)](_0x56968d);this[_0x50791a(0xcd)][_0x50791a(0xf5)](_0x55517b[_0x50791a(0xdf)],_0x55517b[_0x50791a(0x114)][_0x50791a(0x12e)]);}),this[_0x248bd6(0xa5)]['on'](_0x248bd6(0xf6),(_0x40eea9,_0x29ca48)=>{const _0xd85fb9=_0x248bd6;this[_0xd85fb9(0xf0)][_0xd85fb9(0xd3)](_0x29ca48[_0xd85fb9(0x100)]['id'],_0xd85fb9(0xde));}),this[_0x248bd6(0xa5)]['on'](_0x248bd6(0xbd),(_0x2be0ac,_0x3076c3)=>{const _0x3cabbb=_0x248bd6;this[_0x3cabbb(0xf0)][_0x3cabbb(0xd3)](_0x3076c3[_0x3cabbb(0x100)]['id'],_0x3cabbb(0xb3));}),this[_0x248bd6(0xa5)]['on'](_0x248bd6(0x9a),(_0x22b115,_0x251b92)=>{const _0xd9294=_0x248bd6;this[_0xd9294(0xf0)][_0xd9294(0xe9)](_0x251b92[_0xd9294(0x100)]['id']);const _0x32278c=this[_0xd9294(0xcd)][_0xd9294(0x120)](_0x251b92[_0xd9294(0x100)]['id']);if(_0x32278c){if(_0xd9294(0x94)===this[_0xd9294(0xeb)]){const _0x16891d=this[_0xd9294(0xf0)][_0xd9294(0x9d)](_0x251b92[_0xd9294(0x100)]['id']);_0x16891d&&_0x26e1c5(_0x16891d[_0xd9294(0x105)](_0xd9294(0xd2))||_0x16891d);}else{if(_0xd9294(0x8a)===this[_0xd9294(0xeb)]){const _0x1dbc52={'target':_0x32278c[_0xd9294(0xac)],'viewportOffset':{'top':0x55,'left':0x0,'bottom':0x0,'right':0x0},'ancestorOffset':0x14,'alignToTop':!0x0};_0x527fba(_0x1dbc52);}}this[_0xd9294(0xf0)][_0xd9294(0x130)](_0x251b92[_0xd9294(0x100)],_0x32278c[_0xd9294(0xac)]);}}),this[_0x248bd6(0xa5)]['on'](_0x248bd6(0xf2),()=>{const _0x23f5d0=_0x248bd6;this[_0x23f5d0(0xf0)][_0x23f5d0(0x113)]();});try{await this[_0x248bd6(0xa5)][_0x248bd6(0x108)]();}catch(_0x348efd){_0x348efd instanceof Error&&_0x348efd[_0x248bd6(0x98)][_0x248bd6(0x10b)](_0x248bd6(0xca))||(_0x348efd instanceof _0xfb4bf1?this[_0x248bd6(0x89)](_0x348efd):this[_0x248bd6(0x89)](new _0xfb4bf1(_0x248bd6(0xf3),this,{'error':_0x348efd})));}}else this[_0x248bd6(0x89)](new _0xfb4bf1(_0x248bd6(0x10d),this,{'checkId':_0x3467cc['id']}));}),this[_0x3e1b8a(0x115)](this[_0x3e1b8a(0xf0)],_0x3e1b8a(0x123),()=>{const _0x3db7c0=_0x3e1b8a;this[_0x3db7c0(0xa4)]();}),this[_0x3e1b8a(0x115)](this[_0x3e1b8a(0xf0)],_0x3e1b8a(0xf1),()=>{const _0x1d20ad=_0x3e1b8a;this[_0x1d20ad(0xa4)](!0x0);}),this[_0x3e1b8a(0x115)](this[_0x3e1b8a(0xf0)],_0x3e1b8a(0x101),()=>{const _0x15e687=_0x3e1b8a;this[_0x15e687(0xa5)]&&this[_0x15e687(0xa5)][_0x15e687(0x125)]();}),this[_0x3e1b8a(0x115)](this[_0x3e1b8a(0xf0)],_0x3e1b8a(0x11e),()=>{const _0x35c57b=_0x3e1b8a;this[_0x35c57b(0xa4)](!0x0);}),this[_0x3e1b8a(0x115)](this[_0x3e1b8a(0xf0)],_0x3e1b8a(0xb7),()=>{const _0x300360=_0x3e1b8a;if(!this[_0x300360(0xa5)])return;const _0x50783d=this[_0x300360(0xa5)][_0x300360(0xba)]();_0x50783d[_0x300360(0xa3)]&&(this[_0x300360(0xcd)][_0x300360(0x99)](_0x50783d[_0x300360(0xa7)](_0x3e1343=>_0x3e1343['id'])),this[_0x300360(0xa5)][_0x300360(0xc6)](),this[_0x300360(0xfd)]());}),this[_0x3e1b8a(0x115)](this[_0x3e1b8a(0xf0)],_0x3e1b8a(0x127),(_0x9537c8,_0x440ad2)=>{const _0x334557=_0x3e1b8a;if(!this[_0x334557(0xa5)]||!this[_0x334557(0xa5)][_0x334557(0xd7)](_0x440ad2['id']))return;this[_0x334557(0xcd)][_0x334557(0x99)]([_0x440ad2['id']]),this[_0x334557(0xa5)][_0x334557(0x119)](_0x440ad2['id']),this[_0x334557(0xf0)][_0x334557(0xd0)]();const _0x4d28ce=_0x440ad2['id'][_0x334557(0xc2)]('-');this[_0x334557(0xfd)](_0x4d28ce[0x0]);}),this[_0x3e1b8a(0x115)](this[_0x3e1b8a(0xf0)],_0x3e1b8a(0xd8),(_0xa30855,_0xfefd1f)=>{const _0x135c65=_0x3e1b8a;if(!this[_0x135c65(0xa5)]||!this[_0x135c65(0xa5)][_0x135c65(0xd7)](_0xfefd1f['id']))return;this[_0x135c65(0xcd)][_0x135c65(0x9b)](_0xfefd1f['id']),this[_0x135c65(0xa5)][_0x135c65(0x129)](_0xfefd1f['id']),this[_0x135c65(0xf0)][_0x135c65(0xd0)]();const _0x155fe5=_0xfefd1f['id'][_0x135c65(0xc2)]('-');this[_0x135c65(0xfd)](_0x155fe5[0x0]);}),this[_0x3e1b8a(0x115)](this[_0x3e1b8a(0xf0)],_0x3e1b8a(0x122),(_0x255891,_0x1f5b2b)=>{const _0x1c21a6=_0x3e1b8a;this[_0x1c21a6(0xfa)]=_0x1f5b2b['on'],this[_0x1c21a6(0x112)](this[_0x1c21a6(0xfa)]);}),this[_0x3e1b8a(0x115)](this[_0x3e1b8a(0xf0)],_0x3e1b8a(0x11f),async()=>{const _0x1dc873=_0x3e1b8a;this[_0x1dc873(0xa5)]&&await this[_0x1dc873(0xa5)][_0x1dc873(0xb6)]();}),this[_0x3e1b8a(0x115)](this[_0x3e1b8a(0xf0)],_0x3e1b8a(0xed),(_0x36ff88,_0x43a242)=>{const _0x283e99=_0x3e1b8a;this[_0x283e99(0xa5)]&&(this[_0x283e99(0xeb)]=_0x283e99(0x8a),this[_0x283e99(0xa5)][_0x283e99(0xed)](_0x43a242['id']));}),this[_0x3e1b8a(0x115)](this[_0x3e1b8a(0xf0)],_0x3e1b8a(0x91),()=>{const _0x27bcef=_0x3e1b8a;this[_0x27bcef(0xa5)]&&this[_0x27bcef(0xa5)][_0x27bcef(0x91)]();}),this[_0x3e1b8a(0x115)](this[_0x3e1b8a(0xcd)][_0x3e1b8a(0x11a)],_0x3e1b8a(0xd1),(_0x52c054,_0x5bec96)=>{const _0x583c24=_0x3e1b8a;this[_0x583c24(0xa5)]&&(this[_0x583c24(0xeb)]=_0x583c24(0x94),this[_0x583c24(0xa5)][_0x583c24(0xed)](_0x5bec96[_0x583c24(0x92)]));});}[_0x4f8f35(0xfd)](_0x2327cb){const _0x1e1e0e=_0x4f8f35;if(!this[_0x1e1e0e(0xa5)])return;const _0x47dd8d={'positiveCount':this[_0x1e1e0e(0xa5)][_0x1e1e0e(0xc1)](),'totalCount':this[_0x1e1e0e(0xa5)][_0x1e1e0e(0x12f)]()};if(0x0===_0x47dd8d[_0x1e1e0e(0xc0)])return;const _0x256823=this[_0x1e1e0e(0xa5)][_0x1e1e0e(0x95)];if(this[_0x1e1e0e(0xa5)]instanceof _0x4807e6){const _0x34174f=this[_0x1e1e0e(0xa5)][_0x1e1e0e(0x10f)];this[_0x1e1e0e(0xd6)][_0x1e1e0e(0x124)](_0x34174f,_0x256823,_0x47dd8d,_0x2327cb);}else this[_0x1e1e0e(0xa5)]instanceof _0x316a10&&this[_0x1e1e0e(0xd6)][_0x1e1e0e(0x133)](_0x256823,_0x47dd8d,_0x2327cb);}[_0x4f8f35(0xa4)](_0x4d180f=!0x1){const _0x3dea10=_0x4f8f35;this[_0x3dea10(0xa5)]&&(this[_0x3dea10(0xfd)](),this[_0x3dea10(0xa5)][_0x3dea10(0x125)](),this[_0x3dea10(0xa5)][_0x3dea10(0x116)](),this[_0x3dea10(0xa5)]=void 0x0),_0x4d180f&&this[_0x3dea10(0xf0)][_0x3dea10(0x8d)](),this[_0x3dea10(0xcd)][_0x3dea10(0xf7)](),this[_0x3dea10(0xcd)][_0x3dea10(0xb9)](),this[_0x3dea10(0xeb)]=null;const _0x43f559=this[_0x3dea10(0xcd)][_0x3dea10(0xfc)]();_0x43f559&&_0x43f559[_0x3dea10(0xe7)][_0x3dea10(0xbf)][_0x3dea10(0x100)](_0x245d1a=>{const _0x41481c=_0x3dea10,_0x3559c=_0x43f559[_0x41481c(0xe7)][_0x41481c(0xbf)][_0x41481c(0xaa)][_0x41481c(0xa8)]();_0x245d1a[_0x41481c(0xf4)](_0x41481c(0xb5),_0x3559c),_0x245d1a[_0x41481c(0xf4)](_0x41481c(0x96),_0x3559c);});}[_0x4f8f35(0x112)](_0x33a742){const _0x2d2495=_0x4f8f35,_0x5c39e0=this[_0x2d2495(0xcd)][_0x2d2495(0xfc)]();_0x5c39e0&&_0x5c39e0[_0x2d2495(0xe7)][_0x2d2495(0xbf)][_0x2d2495(0x100)](_0x73fb2a=>{const _0x43207a=_0x2d2495,_0x4b6b8d=_0x5c39e0[_0x43207a(0xe7)][_0x43207a(0xbf)][_0x43207a(0xaa)][_0x43207a(0xa8)]();_0x73fb2a[_0x43207a(0xf4)](_0x43207a(0xb5),_0x4b6b8d),_0x73fb2a[_0x43207a(0xf4)](_0x43207a(0x96),_0x4b6b8d),_0x73fb2a[_0x43207a(0x132)](_0x33a742?_0x43207a(0xb5):_0x43207a(0x96),_0x4b6b8d);});}[_0x4f8f35(0xe6)](_0x31192a){const _0x5551d8=_0x4f8f35;return _0x31192a[_0x5551d8(0xa7)](_0x3d2b06=>{const _0x130691=_0x5551d8,_0x2082fc=_0x130691(0xc8)+_0x3d2b06['id'][_0x130691(0xa1)]()[_0x130691(0x90)]('-','_'),_0x337f15={..._0x3d2b06,'title':this[_0x130691(0x117)](_0x2082fc+_0x130691(0xaf),_0x3d2b06[_0x130691(0x97)]),'description':this[_0x130691(0x117)](_0x2082fc+_0x130691(0xa2),_0x3d2b06[_0x130691(0xda)])};return _0x3d2b06[_0x130691(0x9f)]&&(_0x337f15[_0x130691(0x9f)]=_0x3d2b06[_0x130691(0x9f)][_0x130691(0xa7)](_0x36302d=>({..._0x36302d,'label':this[_0x130691(0x117)](_0x2082fc+_0x130691(0xce),_0x36302d[_0x130691(0x8f)]||''),'data':_0x36302d[_0x130691(0x121)]?_0x36302d[_0x130691(0x121)][_0x130691(0xa7)](_0xa4c123=>({..._0xa4c123,'label':this[_0x130691(0x117)](_0x2082fc+_0x130691(0xea)+_0xa4c123['id'][_0x130691(0xa1)](),_0xa4c123[_0x130691(0x8f)])})):void 0x0}))),_0x337f15;});}[_0x4f8f35(0x117)](_0x4e782d,_0xe88a0c){const _0xe6234f=_0x4f8f35,_0x3e471a=this[_0xe6234f(0xc9)][_0xe6234f(0x102)],_0x44bfbf=_0x3bf48d(_0x3e471a,_0x4e782d);return _0x44bfbf===_0x4e782d?_0xe88a0c:_0x44bfbf;}[_0x4f8f35(0x89)](_0x56e1a0){const _0x234c6d=_0x4f8f35;_0x95418e(_0x56e1a0[_0x234c6d(0x98)]),this[_0x234c6d(0xf0)][_0x234c6d(0x12a)]();}}
|
|
23
|
+
const _0x2748bb=_0x1224;(function(_0x4edaf8,_0x3a6c2d){const _0x2b8f5c=_0x1224,_0x1d69f9=_0x4edaf8();while(!![]){try{const _0x555bcd=parseInt(_0x2b8f5c(0x126))/0x1+parseInt(_0x2b8f5c(0x125))/0x2*(-parseInt(_0x2b8f5c(0xd7))/0x3)+parseInt(_0x2b8f5c(0xe4))/0x4+parseInt(_0x2b8f5c(0xe0))/0x5+parseInt(_0x2b8f5c(0x15d))/0x6+parseInt(_0x2b8f5c(0x13c))/0x7+-parseInt(_0x2b8f5c(0x109))/0x8*(parseInt(_0x2b8f5c(0x150))/0x9);if(_0x555bcd===_0x3a6c2d)break;else _0x1d69f9['push'](_0x1d69f9['shift']());}catch(_0x44b22a){_0x1d69f9['push'](_0x1d69f9['shift']());}}}(_0x4c74,0xf0212));import{ContextPlugin as _0x1a8b5f}from'ckeditor5/src/core.js';import{CKEditorError as _0x316ead,logError as _0x40ad5d,scrollAncestorsToShowTarget as _0x3fd812,scrollViewportToShowTarget as _0x4fedac}from'ckeditor5/src/utils.js';function _0x1224(_0x435ae4,_0x22d0de){const _0x4c7480=_0x4c74();return _0x1224=function(_0x1224e4,_0x20434c){_0x1224e4=_0x1224e4-0xd1;let _0x229324=_0x4c7480[_0x1224e4];return _0x229324;},_0x1224(_0x435ae4,_0x22d0de);}import{AIConnector as _0x9373e1}from'../aicore/aiconnector.js';import{AIReviewCheckList as _0x298c0d}from'./model/aireviewchecklist.js';import{AIReviewSystemCheckRun as _0x46612c}from'./model/aireviewsystemcheckrun.js';function _0x4c74(){const _0x197a35=['showCheckRunResult','context','abortReviewStream','isOfficialPlugin','hideDiffInBalloon','reviewCheckResultReady','get','AI_MODEL_DESCRIPTION_','ai.reviewMode.translations','_aiConnector','init','find','getMarkerElementForChange','params','retryReview','_changeActivationSource','source','title','setAvailableChecks','13824168OKcfYA','switchToEdit','config','error-chunk','_TITLE','map','deactivateChange','content','AIReviewModeController','includes','sendRating','removeClass','reviewCheckRunUpdated','start','changeMarkerClick','isCustom','data','reviewCheckResultDeactivated','showDiffInBalloon','model','showReviewCompletedView','showNoChangesView','restart','view','showCheckRunResults','result','AIReviewModeUI','processedResultsCount','968XVZiYW','626065ScjaQg','changeId','getDocumentData','reviewCheckResultActivated','toggleDiff','replaceAll','activateChange','_aiReviewModeUi','AIReviewModeEditing','emitter','custom','getActiveChanges','acceptAllChanges','panel','ai-review-mode-check-run-failed','addClass','changes','unmodified','isPremiumPlugin','reviewCheckResultAdded','aborted','ck-ai-review-mode-highlights','5652290tWGRGU','getEditor','getRoot','setActiveStateInResults','updateChangeState','hasModifications','markAllChangesAsAccepted','loading','_DESCRIPTION','forceReadyState','_aiReviewModeEditing','getCheckById','getAll','_OPTIONS_DATA_','AI_REVIEW_CHECK_','locale','_isDiffOn','options','error-general','clearAllMarkers','9OUtXyP','acceptChange','label','leaveReviewMode','_currentReviewCheckRun','_OPTIONS_LABEL','diffContent','description','_onReviewModeRunLeave','markChangePositionInEditorContent','args','documentData','applyChange','7170oPjtdG','message','markChangeAsRejected','document','showActionsWhenResultIsReady','abort','ready','length','getChangeElement','_logError','showChunkErrorView','isChangeActive','setCheckResultTitle','translate','AIConnector','stopListening','status','pluginName','_getTranslationWithDefault','models','domElement','leaveReviewModeResultList','reviewCheckResultRejected','requires','subTitle','.ck-ai-review-mode__check-run-result','listenTo','finishReview','_translateReviewChecks','ai-review-mode-no-current-check-run','addResultChanges','finished','6027TsatQd','accepted','editing','ck-ai-review-mode-diff','contentInitial','checks','change','contentNew','showGeneralErrorView','3106410iquNJr','toUpperCase','prompt','rejected','6511740cRwcpA','showReviewCheckList','ai-request-aborted','resetActiveStateInResults','closest','switchToReadOnly','showChangeBalloon','runReviewCheck','_onDiffChange','reviewCheckResultAccepted','ai-review-mode-source-check-not-found','markChangeAsAccepted','getReviewCheckList','rejectChange','_aiReviewCheckList','plugins','dismissChange','hideChangeBalloon'];_0x4c74=function(){return _0x197a35;};return _0x4c74();}import{AIReviewCustomCheckRun as _0x3589b4}from'./model/aireviewcustomcheckrun.js';import{AIReviewModels as _0x512e68}from'./model/aireviewmodels.js';import{AI_REVIEW_CHECKS as _0x38c917}from'./aireviewcheckdefinitions.js';import{getTranslation as _0x289bd0}from'../aicore/utils/common-translations.js';export class AIReviewModeController extends _0x1a8b5f{[_0x2748bb(0xff)];[_0x2748bb(0x12d)];[_0x2748bb(0x146)];[_0x2748bb(0xf2)];[_0x2748bb(0x154)];[_0x2748bb(0x14c)]=!0x1;[_0x2748bb(0x105)]=null;static get[_0x2748bb(0x174)](){return[_0x9373e1];}static get[_0x2748bb(0x16e)](){const _0x400662=_0x2748bb;return _0x400662(0x111);}static get[_0x2748bb(0xf9)](){return!0x0;}static get[_0x2748bb(0x138)](){return!0x0;}async[_0x2748bb(0x100)](){const _0x409734=_0x2748bb;this[_0x409734(0xff)]=this[_0x409734(0xf7)][_0x409734(0xf3)][_0x409734(0xfc)](_0x409734(0x16b)),this[_0x409734(0x12d)]=this[_0x409734(0xf7)][_0x409734(0xf3)][_0x409734(0xfc)](_0x409734(0x123)),this[_0x409734(0x146)]=this[_0x409734(0xf7)][_0x409734(0xf3)][_0x409734(0xfc)](_0x409734(0x12e));const _0x1214ab=this[_0x409734(0xf7)][_0x409734(0x10b)][_0x409734(0xfc)](_0x409734(0xfe));if(_0x1214ab){for(const _0x403a8a of _0x38c917)_0x409734(0x16a)===_0x403a8a['id']&&(_0x403a8a[_0x409734(0x14d)][0x0][_0x409734(0x119)]=_0x1214ab);}const _0x590b17=this[_0x409734(0xd3)](_0x38c917);this[_0x409734(0xf2)]=new _0x298c0d(_0x590b17);const _0x334303=this[_0x409734(0xf2)][_0x409734(0xdc)][_0x409734(0x101)](_0x510788=>_0x409734(0x130)===_0x510788['id']);if(_0x334303){const _0x13f04a=await new _0x512e68({'connector':this[_0x409734(0xff)]})[_0x409734(0x148)]();_0x334303[_0x409734(0x170)]=_0x13f04a[_0x409734(0x10e)](_0x130db4=>({..._0x130db4,'description':this[_0x409734(0x16f)](_0x409734(0xfd)+_0x130db4['id'][_0x409734(0xe1)](),_0x130db4[_0x409734(0x157)])}));}this[_0x409734(0xd1)](this[_0x409734(0x12d)],_0x409734(0xf0),()=>{const _0x5dde77=_0x409734;this[_0x5dde77(0x12d)][_0x5dde77(0x108)](this[_0x5dde77(0xf2)][_0x5dde77(0xdc)]);}),this[_0x409734(0xd1)](this[_0x409734(0x12d)],_0x409734(0xeb),async(_0x4a1507,_0x5a17cd)=>{const _0x2833ca=_0x409734,_0x5d7b03=this[_0x2833ca(0xf2)][_0x2833ca(0x147)](_0x5a17cd['id']);if(_0x5d7b03){this[_0x2833ca(0xec)](this[_0x2833ca(0x14c)]),_0x5a17cd[_0x2833ca(0x118)]?this[_0x2833ca(0x154)]=new _0x3589b4(_0x5a17cd[_0x2833ca(0x15a)][_0x2833ca(0xe2)],_0x5a17cd[_0x2833ca(0x15a)][_0x2833ca(0x11c)],this[_0x2833ca(0x146)][_0x2833ca(0x128)](),_0x5d7b03,this[_0x2833ca(0xff)]):this[_0x2833ca(0x154)]=new _0x46612c(this[_0x2833ca(0x146)][_0x2833ca(0x128)](),_0x5d7b03,this[_0x2833ca(0xff)],_0x5a17cd[_0x2833ca(0x103)],_0x5a17cd[_0x2833ca(0x15a)]),this[_0x2833ca(0x12d)][_0x2833ca(0x169)](this[_0x2833ca(0x154)][_0x2833ca(0x107)],this[_0x2833ca(0x154)][_0x2833ca(0x175)]),this[_0x2833ca(0x154)]['on'](_0x2833ca(0x115),(_0x1387ff,_0x4d7c1c)=>{const _0x554302=_0x2833ca;_0x554302(0x119)===_0x4d7c1c[_0x554302(0x16d)]||_0x554302(0x143)===_0x4d7c1c[_0x554302(0x16d)]?(this[_0x554302(0x146)][_0x554302(0xe9)](),this[_0x554302(0x12d)][_0x554302(0x121)](_0x4d7c1c)):_0x554302(0xd6)===_0x4d7c1c[_0x554302(0x16d)]?this[_0x554302(0x12d)][_0x554302(0x11d)]():_0x554302(0x163)===_0x4d7c1c[_0x554302(0x16d)]?this[_0x554302(0x12d)][_0x554302(0x161)]():_0x554302(0x137)===_0x4d7c1c[_0x554302(0x16d)]?this[_0x554302(0x12d)][_0x554302(0x11e)]():_0x554302(0x14e)===_0x4d7c1c[_0x554302(0x16d)]?this[_0x554302(0x12d)][_0x554302(0xdf)]():_0x554302(0x10c)===_0x4d7c1c[_0x554302(0x16d)]?this[_0x554302(0x12d)][_0x554302(0x167)]():_0x554302(0x13a)===_0x4d7c1c[_0x554302(0x16d)]&&(this[_0x554302(0x154)]&&this[_0x554302(0x154)][_0x554302(0x124)]>0x0?setTimeout(()=>{const _0x139d18=_0x554302;this[_0x139d18(0x154)]?.[_0x139d18(0x145)]();},0x0):this[_0x554302(0x158)](!0x0)),_0x554302(0x163)!==_0x4d7c1c[_0x554302(0x16d)]&&_0x554302(0x10c)!==_0x4d7c1c[_0x554302(0x16d)]&&_0x554302(0x14e)!==_0x4d7c1c[_0x554302(0x16d)]||this[_0x554302(0x154)]?.[_0x554302(0x113)]();}),this[_0x2833ca(0x154)]['on'](_0x2833ca(0x139),(_0x28913e,_0x361474)=>{const _0x37f2d2=_0x2833ca;if(!this[_0x37f2d2(0x154)])throw new _0x316ead(_0x37f2d2(0xd4),this);const _0x1aea3b=this[_0x37f2d2(0x146)][_0x37f2d2(0x156)](_0x361474[_0x37f2d2(0x122)][_0x37f2d2(0xdb)],_0x361474[_0x37f2d2(0x122)][_0x37f2d2(0xde)]);_0x361474[_0x37f2d2(0x106)][_0x37f2d2(0xd5)](_0x361474[_0x37f2d2(0x122)]['id'],_0x1aea3b);}),this[_0x2833ca(0x154)]['on'](_0x2833ca(0xfb),(_0x184a1b,_0x26114b)=>{const _0x7017e2=_0x2833ca;for(const _0x13acd2 of _0x26114b[_0x7017e2(0x136)])this[_0x7017e2(0x12d)][_0x7017e2(0xf6)](_0x13acd2);this[_0x7017e2(0x146)][_0x7017e2(0x159)](_0x26114b[_0x7017e2(0x136)],_0x26114b[_0x7017e2(0x106)][_0x7017e2(0x15b)]);}),this[_0x2833ca(0x154)]['on'](_0x2833ca(0xed),(_0x34979b,_0x37cf7c)=>{const _0x4ba84c=_0x2833ca;this[_0x4ba84c(0x12d)][_0x4ba84c(0x140)](_0x37cf7c[_0x4ba84c(0xdd)]['id'],_0x4ba84c(0xd8));}),this[_0x2833ca(0x154)]['on'](_0x2833ca(0x173),(_0x5bad9b,_0x5bc37b)=>{const _0x339bce=_0x2833ca;this[_0x339bce(0x12d)][_0x339bce(0x140)](_0x5bc37b[_0x339bce(0xdd)]['id'],_0x339bce(0xe3));}),this[_0x2833ca(0x154)]['on'](_0x2833ca(0x129),(_0x4682e3,_0x3fcdb3)=>{const _0x22cf85=_0x2833ca;this[_0x22cf85(0x12d)][_0x22cf85(0x13f)](_0x3fcdb3[_0x22cf85(0xdd)]['id']);const _0x34fc13=this[_0x22cf85(0x146)][_0x22cf85(0x102)](_0x3fcdb3[_0x22cf85(0xdd)]['id']);if(_0x34fc13){if(_0x22cf85(0x110)===this[_0x22cf85(0x105)]){const _0x2327e9=this[_0x22cf85(0x12d)][_0x22cf85(0x165)](_0x3fcdb3[_0x22cf85(0xdd)]['id']);_0x2327e9&&_0x3fd812(_0x2327e9[_0x22cf85(0xe8)](_0x22cf85(0x176))||_0x2327e9);}else{if(_0x22cf85(0x133)===this[_0x22cf85(0x105)]){const _0x108d1c={'target':_0x34fc13[_0x22cf85(0x171)],'viewportOffset':{'top':0x55,'left':0x0,'bottom':0x0,'right':0x0},'ancestorOffset':0x14,'alignToTop':!0x0};_0x4fedac(_0x108d1c);}}this[_0x22cf85(0x12d)][_0x22cf85(0xea)](_0x3fcdb3[_0x22cf85(0xdd)],_0x34fc13[_0x22cf85(0x171)]);}}),this[_0x2833ca(0x154)]['on'](_0x2833ca(0x11a),()=>{const _0x5932dd=_0x2833ca;this[_0x5932dd(0x12d)][_0x5932dd(0xe7)]();});try{await this[_0x2833ca(0x154)][_0x2833ca(0x116)]();}catch(_0x3d13fd){_0x3d13fd instanceof Error&&_0x3d13fd[_0x2833ca(0x15e)][_0x2833ca(0x112)](_0x2833ca(0xe6))||(_0x3d13fd instanceof _0x316ead?this[_0x2833ca(0x166)](_0x3d13fd):this[_0x2833ca(0x166)](new _0x316ead(_0x2833ca(0x134),this,{'error':_0x3d13fd})));}}else this[_0x2833ca(0x166)](new _0x316ead(_0x2833ca(0xee),this,{'checkId':_0x5a17cd['id']}));}),this[_0x409734(0xd1)](this[_0x409734(0x12d)],_0x409734(0x153),()=>{const _0x5767be=_0x409734;this[_0x5767be(0x158)]();}),this[_0x409734(0xd1)](this[_0x409734(0x12d)],_0x409734(0x172),()=>{const _0x3e29c4=_0x409734;this[_0x3e29c4(0x158)](!0x0);}),this[_0x409734(0xd1)](this[_0x409734(0x12d)],_0x409734(0xf8),()=>{const _0x339cab=_0x409734;this[_0x339cab(0x154)]&&this[_0x339cab(0x154)][_0x339cab(0x162)]();}),this[_0x409734(0xd1)](this[_0x409734(0x12d)],_0x409734(0xd2),()=>{const _0x66ba6=_0x409734;this[_0x66ba6(0x158)](!0x0);}),this[_0x409734(0xd1)](this[_0x409734(0x12d)],_0x409734(0x132),()=>{const _0x5cfb6e=_0x409734;if(!this[_0x5cfb6e(0x154)])return;const _0x48b891=this[_0x5cfb6e(0x154)][_0x5cfb6e(0x131)]();_0x48b891[_0x5cfb6e(0x164)]&&(this[_0x5cfb6e(0x146)][_0x5cfb6e(0x15c)](_0x48b891[_0x5cfb6e(0x10e)](_0x3d0b20=>_0x3d0b20['id'])),this[_0x5cfb6e(0x154)][_0x5cfb6e(0x142)](),this[_0x5cfb6e(0x154)][_0x5cfb6e(0x113)]());}),this[_0x409734(0xd1)](this[_0x409734(0x12d)],_0x409734(0x151),(_0xadee5f,_0x1232dd)=>{const _0x2d11dd=_0x409734;this[_0x2d11dd(0x154)]&&this[_0x2d11dd(0x154)][_0x2d11dd(0x168)](_0x1232dd['id'])&&(this[_0x2d11dd(0x146)][_0x2d11dd(0x15c)]([_0x1232dd['id']]),this[_0x2d11dd(0x154)][_0x2d11dd(0xef)](_0x1232dd['id']),this[_0x2d11dd(0x12d)][_0x2d11dd(0xf5)](),this[_0x2d11dd(0x154)][_0x2d11dd(0x113)](_0x1232dd['id']));}),this[_0x409734(0xd1)](this[_0x409734(0x12d)],_0x409734(0xf4),(_0x4872f3,_0x2cf149)=>{const _0x581dba=_0x409734;this[_0x581dba(0x154)]&&this[_0x581dba(0x154)][_0x581dba(0x168)](_0x2cf149['id'])&&(this[_0x581dba(0x146)][_0x581dba(0xf1)](_0x2cf149['id']),this[_0x581dba(0x154)][_0x581dba(0x15f)](_0x2cf149['id']),this[_0x581dba(0x12d)][_0x581dba(0xf5)](),this[_0x581dba(0x154)][_0x581dba(0x113)](_0x2cf149['id']));}),this[_0x409734(0xd1)](this[_0x409734(0x12d)],_0x409734(0x12a),(_0x57394a,_0x8ce857)=>{const _0x3cbe40=_0x409734;this[_0x3cbe40(0x14c)]=_0x8ce857['on'],this[_0x3cbe40(0xec)](this[_0x3cbe40(0x14c)]);}),this[_0x409734(0xd1)](this[_0x409734(0x12d)],_0x409734(0x104),async()=>{const _0x17cc87=_0x409734;this[_0x17cc87(0x154)]&&await this[_0x17cc87(0x154)][_0x17cc87(0x11f)]();}),this[_0x409734(0xd1)](this[_0x409734(0x12d)],_0x409734(0x12c),(_0x302fcf,_0x28be97)=>{const _0x1c270e=_0x409734;this[_0x1c270e(0x154)]&&(this[_0x1c270e(0x105)]=_0x1c270e(0x133),this[_0x1c270e(0x154)][_0x1c270e(0x12c)](_0x28be97['id']));}),this[_0x409734(0xd1)](this[_0x409734(0x12d)],_0x409734(0x10f),()=>{const _0x340f9f=_0x409734;this[_0x340f9f(0x154)]&&this[_0x340f9f(0x154)][_0x340f9f(0x10f)]();}),this[_0x409734(0xd1)](this[_0x409734(0x146)][_0x409734(0x12f)],_0x409734(0x117),(_0x2454e7,_0x1abb8d)=>{const _0x41b2ca=_0x409734;this[_0x41b2ca(0x154)]&&(this[_0x41b2ca(0x105)]=_0x41b2ca(0x110),this[_0x41b2ca(0x154)][_0x41b2ca(0x12c)](_0x1abb8d[_0x41b2ca(0x127)]));});}[_0x2748bb(0x158)](_0x1cb816=!0x1){const _0x9c4294=_0x2748bb;this[_0x9c4294(0x154)]&&(this[_0x9c4294(0x154)][_0x9c4294(0x141)]||this[_0x9c4294(0x154)][_0x9c4294(0x113)](),this[_0x9c4294(0x154)][_0x9c4294(0x162)](),this[_0x9c4294(0x154)][_0x9c4294(0x16c)](),this[_0x9c4294(0x154)]=void 0x0),_0x1cb816&&this[_0x9c4294(0x12d)][_0x9c4294(0xe5)](),this[_0x9c4294(0x146)][_0x9c4294(0x14f)](),this[_0x9c4294(0x146)][_0x9c4294(0x10a)](),this[_0x9c4294(0x105)]=null;const _0x5041a9=this[_0x9c4294(0x146)][_0x9c4294(0x13d)]();_0x5041a9&&_0x5041a9[_0x9c4294(0xd9)][_0x9c4294(0x120)][_0x9c4294(0xdd)](_0x58c070=>{const _0x5c9352=_0x9c4294,_0x3fd39f=_0x5041a9[_0x5c9352(0xd9)][_0x5c9352(0x120)][_0x5c9352(0x160)][_0x5c9352(0x13e)]();_0x58c070[_0x5c9352(0x114)](_0x5c9352(0xda),_0x3fd39f),_0x58c070[_0x5c9352(0x114)](_0x5c9352(0x13b),_0x3fd39f);});}[_0x2748bb(0xec)](_0x2cdbba){const _0x107692=_0x2748bb,_0x344fc8=this[_0x107692(0x146)][_0x107692(0x13d)]();_0x2cdbba?this[_0x107692(0x12d)][_0x107692(0xfa)]():this[_0x107692(0x12d)][_0x107692(0x11b)](),_0x344fc8&&_0x344fc8[_0x107692(0xd9)][_0x107692(0x120)][_0x107692(0xdd)](_0x4ace91=>{const _0x585474=_0x107692,_0x3394e2=_0x344fc8[_0x585474(0xd9)][_0x585474(0x120)][_0x585474(0x160)][_0x585474(0x13e)]();_0x4ace91[_0x585474(0x114)](_0x585474(0xda),_0x3394e2),_0x4ace91[_0x585474(0x114)](_0x585474(0x13b),_0x3394e2),_0x4ace91[_0x585474(0x135)](_0x2cdbba?_0x585474(0xda):_0x585474(0x13b),_0x3394e2);});}[_0x2748bb(0xd3)](_0x58754d){const _0x4be755=_0x2748bb;return _0x58754d[_0x4be755(0x10e)](_0xa2c8ec=>{const _0x175e86=_0x4be755,_0x1fd4ad=_0x175e86(0x14a)+_0xa2c8ec['id'][_0x175e86(0xe1)]()[_0x175e86(0x12b)]('-','_'),_0x21e928={..._0xa2c8ec,'title':this[_0x175e86(0x16f)](_0x1fd4ad+_0x175e86(0x10d),_0xa2c8ec[_0x175e86(0x107)]),'description':this[_0x175e86(0x16f)](_0x1fd4ad+_0x175e86(0x144),_0xa2c8ec[_0x175e86(0x157)])};return _0xa2c8ec[_0x175e86(0x14d)]&&(_0x21e928[_0x175e86(0x14d)]=_0xa2c8ec[_0x175e86(0x14d)][_0x175e86(0x10e)](_0x486d50=>({..._0x486d50,'label':this[_0x175e86(0x16f)](_0x1fd4ad+_0x175e86(0x155),_0x486d50[_0x175e86(0x152)]||''),'data':_0x486d50[_0x175e86(0x119)]?_0x486d50[_0x175e86(0x119)][_0x175e86(0x10e)](_0x3bcf12=>({..._0x3bcf12,'label':this[_0x175e86(0x16f)](_0x1fd4ad+_0x175e86(0x149)+_0x3bcf12['id'][_0x175e86(0xe1)](),_0x3bcf12[_0x175e86(0x152)])})):void 0x0}))),_0x21e928;});}[_0x2748bb(0x16f)](_0x5096b4,_0x3e8364){const _0x3cea0c=_0x2748bb,_0x286c0e=this[_0x3cea0c(0xf7)][_0x3cea0c(0x14b)],_0x5ef58a=_0x289bd0(_0x286c0e,_0x5096b4);return _0x5ef58a===_0x5096b4?_0x3e8364:_0x5ef58a;}[_0x2748bb(0x166)](_0xcce46c){const _0x5814ed=_0x2748bb;_0x40ad5d(_0xcce46c[_0x5814ed(0x15e)]),this[_0x5814ed(0x12d)][_0x5814ed(0xdf)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x123953=_0x2a39;(function(_0x568f11,_0x456a80){const _0x4edbdf=_0x2a39,_0x3cdd04=_0x568f11();while(!![]){try{const _0xcbebf6=parseInt(_0x4edbdf(0x1c2))/0x1*(-parseInt(_0x4edbdf(0x15b))/0x2)+parseInt(_0x4edbdf(0x1be))/0x3+parseInt(_0x4edbdf(0x16b))/0x4*(parseInt(_0x4edbdf(0x128))/0x5)+-parseInt(_0x4edbdf(0x165))/0x6*(parseInt(_0x4edbdf(0x1a9))/0x7)+parseInt(_0x4edbdf(0x1b7))/0x8+parseInt(_0x4edbdf(0x19f))/0x9+-parseInt(_0x4edbdf(0x1ad))/0xa*(parseInt(_0x4edbdf(0x107))/0xb);if(_0xcbebf6===_0x456a80)break;else _0x3cdd04['push'](_0x3cdd04['shift']());}catch(_0x5f179e){_0x3cdd04['push'](_0x3cdd04['shift']());}}}(_0x18d0,0xe1ac8));import{InsertOperation as _0x3431e1,MarkerOperation as _0xe11a51,ModelDocumentFragment as _0xc0592a,ModelPosition as _0x2287c7,ModelRange as _0x497f26,ModelTreeWalker as _0x2c68a3,transformOperationSets as _0x4a4c7a}from'ckeditor5/src/engine.js';import{DomEmitterMixin as _0x36ed9f,EmitterMixin as _0x9e41f2}from'ckeditor5/src/utils.js';import{ContextPlugin as _0x478e2f}from'ckeditor5/src/core.js';import{DocumentCompare as _0x2df776,DATA_ID_MODEL_ATTRIBUTE as _0x107eb4,DATA_ID_VIEW_ATTRIBUTE as _0x18843b}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x18d0(){const _0x4e2f78=['delete','_eventEmitter','parentElement','suggestion:insertion:id:authorId:','text','marker','createPositionAt','createText','for','documentFragment','_getOperationEnd','offset','deleteContent','domConverter','keys','createDocumentFragment','$textProxy','[data-marker-id=\x22','_getOperationStart','getChildren','_changeOperationOwnerDocument','getAttribute','end','enableReadOnlyMode','_sortMarkers','_appendChild','target','values','start','markers','startsWith','getDiff','_setAttribute','ck-ai_review-mode-marker_strikethrough','hasContentAfter','remove-text','isPremiumPlugin','insertContent','13276MBNNYX','click','childCount','markChangePositionInEditorContent','viewToDom','suggestion-context','set','every','element','append','12YsuSxg','isInline','_translateOperationToEditorContent','backward','concat','ck-ai_review-mode-marker_hide','316kkvyRT','flat','downcast','innerHTML','map','from','index','htmlProcessor','data-marker-id','jumpTo','view','getOperations','clone','processor','type','_changePositionOwnerDocument','_createGetContentUsingDataIdFn','_groupAdjacentOperations','get','_removeChildren','ck-ai_review-mode-marker_','AIEditing','baseVersion','name','addMarker','switchToReadOnly','model','afterInit','reviewmode-','_getMarkersDataForGroup','_createGetContentFn','isAtEnd','insert','isTouching','suggestion:deletion:id:authorId:','pluginName','markerToElement','_removeAttribute','[data-id=\x22','addOperation','parse','switchToEdit','attributeToAttribute','_getChangeContext','clearAllMarkers','remove-context','getEditor','getHtml','schema','elements','getRoot','model:$text','12633255FXdLWM','isOfficialPlugin','_domEmitter','history','ellipsisBefore','span','caption','DocumentCompare','plugins','createRange','2084362KNphvh','applyOperation','fire','$documentFragment','533870NTJfeP','getPath','operationsIsolated','forward','hasContentBefore','hasAttribute','editing','clear','listenTo','_nextDataId','13766408cjUpzW','removeMarker','getDomRoot','position','requires','path','change','2192484HlOMfW','push','createRawElement','newRange','73TJZNRO','filter','_clone','data','_shiftOperation','split','getChild','ck-ai_review-mode-marker_add','$markedRemove','howMany','_findAdjacentContextDistance','AIReviewModeEditing','No\x20element\x20found\x20for\x20ID:\x20','applyChange','document','toData','createUIElement','markerToHighlight','remove-only','dataDowncast','getRoots','querySelector','exec','getMarkerElementForChange','getRange','ck-ai_review-mode-marker_context-','className','conversion','_changeRangeOwnerDocument','parent','context','ellipsisAfter','737amTdDw','warn','version','outerHTML','ck-ai_review-mode-marker_underline','markerName','hasClass','groupId','operationsA','ck-ai_review-mode-marker_context-start','editingDowncast','createSelection','disableReadOnlyMode','sort','changeMarkerClick','batch','stringify','isAtStart','isOpening','add','rejectChange','getShiftedBy','nodes','getDocumentData','htmlWriter','length','_createGetContextFn','ai-review-mode','diffContent','offsetSize','createPositionAfter','_findMarkerElement','affectsData','109245EmXOSu','toDomElement','emitter','_changeRange','pop','_changePosition','oldRange','ck-ai_review-mode-marker_context-end','isDocumentOperation','_insertMarkers','includes','toView','_markers'];_0x18d0=function(){return _0x4e2f78;};return _0x18d0();}import{getEditorFromContext as _0x1f85bf}from'../aicore/utils/geteditorfromcontext.js';import{AIEditing as _0x49b0e3}from'../aicore/aiediting.js';function _0x2a39(_0x22a65a,_0x2f0721){const _0x18d0ca=_0x18d0();return _0x2a39=function(_0x2a39bd,_0x218911){_0x2a39bd=_0x2a39bd-0xfa;let _0x1ba3a6=_0x18d0ca[_0x2a39bd];return _0x1ba3a6;},_0x2a39(_0x22a65a,_0x2f0721);}const ue=_0x123953(0x187);export class AIReviewModeEditing extends _0x478e2f{static get[_0x123953(0x18e)](){const _0x5858ad=_0x123953;return _0x5858ad(0x1cd);}static get[_0x123953(0x1bb)](){return[_0x2df776,_0x49b0e3];}static get[_0x123953(0x1a0)](){return!0x0;}static get[_0x123953(0x159)](){return!0x0;}[_0x123953(0x134)]=new Map();[_0x123953(0x1a1)];[_0x123953(0x136)];constructor(_0x1111e2){const _0x433c73=_0x123953;super(_0x1111e2),this[_0x433c73(0x1a1)]=new(_0x36ed9f())(),this[_0x433c73(0x136)]=new(_0x9e41f2())();}get[_0x123953(0x12a)](){const _0x4ad453=_0x123953;return this[_0x4ad453(0x136)];}[_0x123953(0x186)](){const _0x322328=_0x123953,_0x329d70=_0x1f85bf(this[_0x322328(0x105)]);_0x329d70[_0x322328(0x102)][_0x322328(0x13d)](_0x322328(0x111))[_0x322328(0x18f)]({'model':ue+_0x322328(0x18b),'view':(_0x394ffe,{writer:_0x550792})=>{const _0x453068=_0x322328,_0x5e5069=this[_0x453068(0x134)][_0x453068(0x17d)](_0x394ffe[_0x453068(0x10c)]),_0x73c560={'class':_0x453068(0x1c9),'data-marker-id':_0x394ffe[_0x453068(0x10c)]};return _0x550792[_0x453068(0x1d2)](_0x453068(0x1a4),_0x73c560,function(_0x4b1309){const _0x1469c7=_0x453068,_0xf210d2=this[_0x1469c7(0x129)](_0x4b1309);return _0xf210d2[_0x1469c7(0x16e)]=_0x5e5069?.[_0x1469c7(0x139)]||'',_0xf210d2;});}}),_0x329d70[_0x322328(0x102)][_0x322328(0x13d)](_0x322328(0x111))[_0x322328(0x1d3)]({'model':ue+_0x322328(0x1d4),'view':_0x37888b=>({'classes':_0x322328(0x156),'attributes':{'data-marker-id':_0x37888b[_0x322328(0x10c)]}})}),_0x329d70[_0x322328(0x102)][_0x322328(0x13d)](_0x322328(0x111))[_0x322328(0x1d3)]({'model':ue+_0x322328(0x198),'view':_0x23670d=>({'classes':_0x322328(0x10b),'attributes':{'data-marker-id':_0x23670d[_0x322328(0x10c)]}})}),_0x329d70[_0x322328(0x102)][_0x322328(0x13d)](_0x322328(0x111))[_0x322328(0x1d3)]({'model':ue+_0x322328(0x158),'view':_0x3e5a4b=>({'classes':_0x322328(0x16a),'attributes':{'data-marker-id':_0x3e5a4b[_0x322328(0x10c)]}})}),_0x329d70[_0x322328(0x102)][_0x322328(0x13d)](_0x322328(0xfa))[_0x322328(0x18f)]({'model':ue+_0x322328(0x160),'view':(_0x290c85,{writer:_0x12385d})=>_0x12385d[_0x322328(0x1c0)](_0x322328(0x1a4),{'class':_0x322328(0x100)+(_0x290c85[_0x322328(0x119)]?_0x322328(0x151):_0x322328(0x14b))})}),_0x329d70[_0x322328(0x102)][_0x322328(0x13d)](_0x322328(0x16d))[_0x322328(0x195)]({'model':_0x107eb4,'view':_0x18843b}),this[_0x322328(0x1a1)][_0x322328(0x1b5)](document,_0x322328(0x15c),(_0x4e1bcc,_0x3d9c2d)=>{const _0x4a47b6=_0x322328,_0x302abb=_0x3d9c2d[_0x4a47b6(0x14f)],_0x9e382c=this[_0x4a47b6(0x126)](_0x302abb);if(!_0x9e382c)return;const _0xff5aa0=_0x9e382c[_0x4a47b6(0x14a)](_0x4a47b6(0x173)),_0x5eade1=_0xff5aa0[_0x4a47b6(0x1c7)](':')[_0x4a47b6(0x12c)]()?.[_0x4a47b6(0x1c7)]('_')[0x0];this[_0x4a47b6(0x136)][_0x4a47b6(0x1ab)](_0x4a47b6(0x115),{'markerId':_0xff5aa0,'changeId':_0x5eade1});});}[_0x123953(0x11e)](){const _0x431efc=_0x123953,_0x14d64a=this[_0x431efc(0x105)][_0x431efc(0x1a7)][_0x431efc(0x17d)](_0x431efc(0x180)),_0x17b4fa=_0x1f85bf(this[_0x431efc(0x105)]),_0x6c7f72=_0x17b4fa[_0x431efc(0x185)],_0x4a9ab2=new _0xc0592a();for(const _0xeeff98 of _0x6c7f72[_0x431efc(0x1d0)][_0x431efc(0x19d)]()[_0x431efc(0x148)]()){const _0x54e9ba=_0xeeff98[_0x431efc(0x1c4)](!0x0);_0x4a9ab2[_0x431efc(0x14e)](_0x54e9ba);}for(const _0x444820 of _0x6c7f72[_0x431efc(0x152)])_0x4a9ab2[_0x431efc(0x152)][_0x431efc(0x161)](_0x444820[_0x431efc(0x182)],this[_0x431efc(0x103)](_0x444820[_0x431efc(0xff)]()[_0x431efc(0x177)](),_0x4a9ab2));const _0x4ebe17=new _0x2c68a3({'ignoreElementEnd':!0x0,'startPosition':_0x6c7f72[_0x431efc(0x13b)](_0x4a9ab2,0x0)}),_0x23800c=new Set(),_0xe74556=new Map();for(const {item:_0x2da069}of _0x4ebe17){if(!_0x2da069['is'](_0x431efc(0x145)))continue;const _0x3d2b1c=_0x2da069[_0x431efc(0x104)];if((!_0x3d2b1c||!_0x3d2b1c['is'](_0x431efc(0x163),_0x431efc(0x1a5)))&&(_0x3d2b1c&&_0x3d2b1c['is'](_0x431efc(0x163)))){let _0x3cea81=_0x3d2b1c[_0x431efc(0x14a)](_0x107eb4);_0x3cea81||(_0x3cea81=_0x14d64a[_0x431efc(0x1b6)](_0x23800c),_0x3d2b1c[_0x431efc(0x155)](_0x107eb4,_0x3cea81)),_0x23800c[_0x431efc(0x11a)](_0x3cea81);let _0x1aa0a2=_0x3d2b1c;for(;_0x1aa0a2[_0x431efc(0x104)]&&!_0x1aa0a2[_0x431efc(0x104)]['is'](_0x431efc(0x13e));)_0x1aa0a2=_0x1aa0a2[_0x431efc(0x104)],_0x1aa0a2[_0x431efc(0x1b2)](_0x107eb4)&&_0x1aa0a2[_0x431efc(0x190)](_0x107eb4);_0xe74556[_0x431efc(0x161)](_0x3cea81,{'path':_0x3d2b1c[_0x431efc(0x1ae)](),'getContent':this[_0x431efc(0x17b)](_0x1aa0a2[_0x431efc(0x1c4)](!0x0),_0x3cea81,_0x17b4fa[_0x431efc(0x1c5)])}),_0x4ebe17[_0x431efc(0x174)](_0x6c7f72[_0x431efc(0x125)](_0x3d2b1c));}}return{'content':_0x17b4fa[_0x431efc(0x1c5)][_0x431efc(0x178)][_0x431efc(0x1d1)](_0x17b4fa[_0x431efc(0x1c5)][_0x431efc(0x133)](_0x4a9ab2)),'version':_0x17b4fa[_0x431efc(0x185)][_0x431efc(0x1d0)][_0x431efc(0x109)],'elements':_0xe74556};}[_0x123953(0x123)](_0x1b180d,_0x53aa8d){const _0x53406d=_0x123953,_0x4f115e=_0x1f85bf(this[_0x53406d(0x105)]),_0x7cbf9c=_0x4f115e[_0x53406d(0x1c5)][_0x53406d(0x193)](_0x1b180d,_0x53406d(0x1ac)),_0x5c84e0=_0x4f115e[_0x53406d(0x185)][_0x53406d(0x13b)](_0x7cbf9c,0x0),_0x210f29=this[_0x53406d(0x105)][_0x53406d(0x1a7)][_0x53406d(0x17d)](_0x53406d(0x1a6))[_0x53406d(0x154)](_0x1b180d,_0x53aa8d,{'anchor':_0x5c84e0,'markDeletions':!0x0})[_0x53406d(0x176)]()[_0x53406d(0x1c3)](_0x1e4d10=>_0x53406d(0x18b)===_0x1e4d10[_0x53406d(0x179)]||_0x53406d(0x13a)===_0x1e4d10[_0x53406d(0x179)]&&_0x1e4d10[_0x53406d(0x182)][_0x53406d(0x153)](_0x53406d(0x1ca))),_0x82bfa4=this[_0x53406d(0x17c)](_0x210f29),_0x20529c=[];let _0x759a47=0x0;return _0x4f115e[_0x53406d(0x185)][_0x53406d(0x1bd)](_0x1c92cf=>{const _0x50c15d=_0x53406d;for(let _0x20402b=0x0;_0x20402b<_0x82bfa4[_0x50c15d(0x120)];_0x20402b++){const _0x1f6ce4=_0x82bfa4[_0x20402b],_0x485896=_0x1c92cf[_0x50c15d(0x144)]();for(const _0x16a918 of _0x7cbf9c[_0x50c15d(0x148)]())_0x1c92cf[_0x50c15d(0x164)](_0x16a918[_0x50c15d(0x1c4)](!0x0),_0x485896);for(const _0xda5e6a of _0x1f6ce4[_0x50c15d(0x1af)])if(_0x50c15d(0x18b)===_0xda5e6a[_0x50c15d(0x179)]){const _0x572b5e=_0xda5e6a;_0x572b5e[_0x50c15d(0x181)]=null,_0x572b5e[_0x50c15d(0x130)]=!0x1,this[_0x50c15d(0x149)](_0x572b5e,_0x485896),_0x1c92cf[_0x50c15d(0x116)][_0x50c15d(0x192)](_0xda5e6a),_0x4f115e[_0x50c15d(0x185)][_0x50c15d(0x1aa)](_0xda5e6a);const _0x5c2ff2=_0x50c15d(0x138)+_0x759a47++,_0x3f9f5e=_0x4f115e[_0x50c15d(0x185)][_0x50c15d(0x1a8)](_0x572b5e[_0x50c15d(0x1ba)],_0x572b5e[_0x50c15d(0x1ba)][_0x50c15d(0x11c)](_0x572b5e[_0x50c15d(0x1cb)]));_0x485896[_0x50c15d(0x152)][_0x50c15d(0x161)](_0x5c2ff2,_0x3f9f5e);}else{if(_0x50c15d(0x13a)===_0xda5e6a[_0x50c15d(0x179)]&&_0xda5e6a[_0x50c15d(0x182)][_0x50c15d(0x153)](_0x50c15d(0x1ca))){const _0xba3280=_0xda5e6a,_0x451ef1=_0x50c15d(0x18d)+_0x759a47++;this[_0x50c15d(0x149)](_0xba3280,_0x485896),_0x485896[_0x50c15d(0x152)][_0x50c15d(0x161)](_0x451ef1,_0xba3280[_0x50c15d(0x1c1)]);}}const _0xa2e385=this[_0x50c15d(0x196)](this[_0x50c15d(0x17a)](this[_0x50c15d(0x147)](_0x1f6ce4[_0x50c15d(0x1af)][0x0]),_0x485896),this[_0x50c15d(0x17a)](this[_0x50c15d(0x13f)](_0x1f6ce4[_0x50c15d(0x1af)][_0x1f6ce4[_0x50c15d(0x1af)][_0x50c15d(0x120)]-0x1]),_0x485896));_0x485896[_0x50c15d(0x152)][_0x50c15d(0x161)](ue+_0x50c15d(0x160),new _0x497f26(_0xa2e385[_0x50c15d(0x151)],_0xa2e385[_0x50c15d(0x14b)])),_0x20529c[_0x50c15d(0x1bf)]({..._0x1f6ce4,'context':this[_0x50c15d(0x121)](_0x485896,_0x4f115e[_0x50c15d(0x1c5)],{'ellipsisBefore':_0xa2e385[_0x50c15d(0x1b1)],'ellipsisAfter':_0xa2e385[_0x50c15d(0x157)]}),'content':this[_0x50c15d(0x189)](_0x485896,_0x4f115e[_0x50c15d(0x1c5)])});}}),_0x20529c;}[_0x123953(0x15e)](_0x44a39f,_0x3e56c2){const _0x1a9056=_0x123953,_0x11a217=_0x44a39f[0x0][_0x1a9056(0x104)]['id'],_0x33e4e1=_0x3e56c2[_0x1a9056(0x19c)][_0x1a9056(0x17d)](_0x11a217);if(!_0x33e4e1)return void console[_0x1a9056(0x108)](_0x1a9056(0x1ce)+_0x11a217);const _0x3f0b08=_0x33e4e1[_0x1a9056(0x1bc)],_0x1d2a9b=_0x1f85bf(this[_0x1a9056(0x105)]),_0x3209ac=_0x1d2a9b[_0x1a9056(0x185)][_0x1a9056(0x1d0)][_0x1a9056(0x1a2)][_0x1a9056(0x176)](_0x3e56c2[_0x1a9056(0x109)]),_0x314cf2=[];for(const _0x632dd1 of _0x44a39f){const _0x345295=_0x632dd1[_0x1a9056(0x1af)][_0x1a9056(0x16f)](_0x59236b=>this[_0x1a9056(0x167)](_0x59236b,_0x3f0b08,_0x1d2a9b[_0x1a9056(0x185)][_0x1a9056(0x1d0)][_0x1a9056(0xfb)]()[0x0]));if(!_0x345295||!_0x345295[_0x1a9056(0x120)])continue;const _0x164a72=_0x345295[_0x1a9056(0x162)](_0x415f3c=>_0x1a9056(0x13a)===_0x415f3c[_0x1a9056(0x179)]&&_0x415f3c[_0x1a9056(0x182)][_0x1a9056(0x153)](_0x1a9056(0x1ca))),_0x39ab55={'document':_0x1d2a9b[_0x1a9056(0x185)][_0x1a9056(0x1d0)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x13f952=_0x4a4c7a(_0x345295,_0x3209ac,_0x39ab55)[_0x1a9056(0x10f)];for(const _0x2e0bae of _0x13f952)if(_0x1a9056(0x18b)===_0x2e0bae[_0x1a9056(0x179)]){const _0x5cf928=_0x2e0bae,_0x5ef96a=_0x5cf928[_0x1a9056(0x11d)];let _0x228094='';for(const _0x36fa42 of _0x5ef96a)_0x36fa42&&_0x36fa42['is'](_0x1a9056(0x19e))&&(_0x228094+=_0x36fa42[_0x1a9056(0x1c5)]);_0x314cf2[_0x1a9056(0x1bf)]({'start':_0x5cf928[_0x1a9056(0x1ba)],'end':_0x5cf928[_0x1a9056(0x1ba)],'type':_0x1a9056(0x18b),'groupId':_0x632dd1['id'],'text':_0x228094});}else{if(_0x1a9056(0x13a)===_0x2e0bae[_0x1a9056(0x179)]&&_0x2e0bae[_0x1a9056(0x182)][_0x1a9056(0x153)](_0x1a9056(0x1ca))){const _0x3dec8d=_0x2e0bae;let _0x19904d=_0x1a9056(0x158);if(_0x164a72){const _0x475b42=this[_0x1a9056(0x1cc)](_0x3dec8d[_0x1a9056(0x1c1)][_0x1a9056(0x151)],_0x1a9056(0x168),_0x1d2a9b[_0x1a9056(0x185)][_0x1a9056(0x19b)]),_0x54959d=this[_0x1a9056(0x1cc)](_0x3dec8d[_0x1a9056(0x1c1)][_0x1a9056(0x14b)],_0x1a9056(0x1b0),_0x1d2a9b[_0x1a9056(0x185)][_0x1a9056(0x19b)]);if(_0x475b42||_0x54959d){const _0x4d73bd=_0x3dec8d[_0x1a9056(0x1c1)][_0x1a9056(0x151)][_0x1a9056(0x11c)](-_0x475b42),_0x583676=_0x3dec8d[_0x1a9056(0x1c1)][_0x1a9056(0x14b)][_0x1a9056(0x11c)](_0x54959d);_0x314cf2[_0x1a9056(0x1bf)]({'start':_0x4d73bd,'end':_0x583676,'groupId':_0x632dd1['id'],'type':_0x1a9056(0x198)});}else _0x19904d=_0x1a9056(0x1d4);}_0x314cf2[_0x1a9056(0x1bf)]({'start':_0x3dec8d[_0x1a9056(0x1c1)][_0x1a9056(0x151)],'end':_0x3dec8d[_0x1a9056(0x1c1)][_0x1a9056(0x14b)],'groupId':_0x632dd1['id'],'type':_0x19904d});}}}this[_0x1a9056(0x131)](_0x314cf2);}[_0x123953(0x197)](){const _0x5289a9=_0x123953;_0x1f85bf(this[_0x5289a9(0x105)])[_0x5289a9(0x185)][_0x5289a9(0x1bd)](_0x3199b0=>{const _0x4837f3=_0x5289a9;for(const _0x59f455 of this[_0x4837f3(0x134)][_0x4837f3(0x143)]())_0x3199b0[_0x4837f3(0x1b8)](_0x59f455);}),this[_0x5289a9(0x134)][_0x5289a9(0x1b4)]();}[_0x123953(0x184)](){const _0x308953=_0x123953;_0x1f85bf(this[_0x308953(0x105)])[_0x308953(0x14c)](_0x308953(0x122));}[_0x123953(0x194)](){const _0x177e46=_0x123953;_0x1f85bf(this[_0x177e46(0x105)])[_0x177e46(0x113)](_0x177e46(0x122));}[_0x123953(0x1cf)](_0x462c83){const _0x31e7aa=_0x123953,_0x1bd19e=_0x1f85bf(this[_0x31e7aa(0x105)]),_0x416d05=_0x1bd19e[_0x31e7aa(0x185)],_0x340fb4=_0x462c83[_0x31e7aa(0x16f)](_0x5902e7=>this[_0x31e7aa(0x188)](_0x5902e7))[_0x31e7aa(0x16c)]();_0x416d05[_0x31e7aa(0x1bd)](_0x53d234=>{const _0x378a8d=_0x31e7aa;for(const _0x2a07f7 of _0x340fb4){const _0x3f7a57=_0x1bd19e[_0x378a8d(0x185)][_0x378a8d(0x152)][_0x378a8d(0x17d)](_0x2a07f7['id']);_0x3f7a57&&(_0x378a8d(0x18b)===_0x2a07f7[_0x378a8d(0x179)]?_0x416d05[_0x378a8d(0x15a)](_0x53d234[_0x378a8d(0x13c)](_0x2a07f7[_0x378a8d(0x139)]||''),_0x3f7a57[_0x378a8d(0xff)]()[_0x378a8d(0x151)]):_0x378a8d(0x158)!==_0x2a07f7[_0x378a8d(0x179)]&&_0x378a8d(0x1d4)!==_0x2a07f7[_0x378a8d(0x179)]||_0x416d05[_0x378a8d(0x141)](_0x416d05[_0x378a8d(0x112)](_0x3f7a57[_0x378a8d(0xff)]())),_0x53d234[_0x378a8d(0x1b8)](_0x2a07f7['id']),this[_0x378a8d(0x134)][_0x378a8d(0x135)](_0x2a07f7['id']));}});}[_0x123953(0x11b)](_0x4dc8bc){const _0x4e84a5=_0x123953,_0x18444b=_0x1f85bf(this[_0x4e84a5(0x105)]),_0x3d2c45=this[_0x4e84a5(0x188)](_0x4dc8bc);_0x18444b[_0x4e84a5(0x185)][_0x4e84a5(0x1bd)](_0x3fa874=>{const _0xe8cfa5=_0x4e84a5;for(const _0x32c1c7 of _0x3d2c45)_0x3fa874[_0xe8cfa5(0x1b8)](_0x32c1c7['id']),this[_0xe8cfa5(0x134)][_0xe8cfa5(0x135)](_0x32c1c7['id']);});}[_0x123953(0x199)](){const _0x2dbef9=_0x123953;return _0x1f85bf(this[_0x2dbef9(0x105)]);}[_0x123953(0xfe)](_0x465cec){const _0x4d190a=_0x123953,_0x720c67=Array[_0x4d190a(0x170)](this[_0x4d190a(0x134)][_0x4d190a(0x150)]())[_0x4d190a(0x1c3)](_0x357731=>_0x357731[_0x4d190a(0x10e)]===_0x465cec);if(!_0x720c67[_0x4d190a(0x120)])return null;const _0x1081a2=0x1===_0x720c67[_0x4d190a(0x120)]?_0x720c67[0x0]:this[_0x4d190a(0x14d)](_0x720c67)[0x0],_0x3424d7=_0x1f85bf(this[_0x4d190a(0x105)]),_0x404be2=_0x3424d7[_0x4d190a(0x185)][_0x4d190a(0x152)][_0x4d190a(0x17d)](_0x1081a2['id']);if(!_0x404be2)return null;const _0x23cac9=_0x404be2[_0x4d190a(0xff)](),_0x425efc=_0x3424d7[_0x4d190a(0x1b3)][_0x4d190a(0x175)][_0x4d190a(0x1b9)]();if(!_0x425efc||!_0x23cac9)return null;const _0x1fd354=_0x425efc[_0x4d190a(0xfc)](_0x4d190a(0x146)+_0x1081a2['id']+'\x22]');return _0x1fd354?{'modelRange':_0x23cac9,'domElement':_0x1fd354}:null;}[_0x123953(0x167)](_0x2843ee,_0x4359bb,_0x266377){const _0x32929c=_0x123953;if(_0x32929c(0x18b)===_0x2843ee[_0x32929c(0x179)]){const _0x29cc08=_0x2843ee;return new _0x3431e1(this[_0x32929c(0x12d)](_0x29cc08[_0x32929c(0x1ba)],_0x4359bb[_0x32929c(0x169)](_0x29cc08[_0x32929c(0x1ba)][_0x32929c(0x140)]),_0x266377),_0x29cc08[_0x32929c(0x11d)],_0x29cc08[_0x32929c(0x181)]);}if(_0x32929c(0x13a)===_0x2843ee[_0x32929c(0x179)]&&_0x2843ee[_0x32929c(0x182)][_0x32929c(0x153)](_0x32929c(0x1ca))){const _0x311822=_0x2843ee;return new _0xe11a51(_0x311822[_0x32929c(0x182)],_0x311822[_0x32929c(0x12e)],this[_0x32929c(0x12b)](_0x311822[_0x32929c(0x1c1)],_0x4359bb[_0x32929c(0x169)](_0x311822[_0x32929c(0x1c1)][_0x32929c(0x151)][_0x32929c(0x140)]),_0x4359bb[_0x32929c(0x169)](_0x311822[_0x32929c(0x1c1)][_0x32929c(0x14b)][_0x32929c(0x140)]),_0x266377),_0x311822[_0x32929c(0x134)],_0x311822[_0x32929c(0x127)],_0x311822[_0x32929c(0x181)]);}return _0x2843ee;}[_0x123953(0x17c)](_0x4ea586){const _0xeff732=_0x123953;if(!_0x4ea586[_0xeff732(0x120)])return[];const _0x5d6783=[];let _0xaa7e3f=0x0,_0x2ef483=0x0,_0x58db99=[];for(let _0x28ac4d=0x0;_0x28ac4d<=_0x4ea586[_0xeff732(0x120)];_0x28ac4d++){const _0x118360=_0x4ea586[_0x28ac4d],_0x221757=_0x4ea586[_0x28ac4d-0x1];!_0x118360||_0x221757&&!this[_0xeff732(0x13f)](_0x221757)[_0xeff732(0x18c)](this[_0xeff732(0x147)](_0x118360))?(_0x5d6783[_0xeff732(0x1bf)]({'operations':_0x58db99,'operationsIsolated':_0x58db99[_0xeff732(0x16f)](_0x17549a=>this[_0xeff732(0x1c6)](_0x17549a[_0xeff732(0x177)](),-_0x2ef483)),'groupOffset':_0xaa7e3f}),_0x58db99=_0x118360?[_0x118360]:[],_0x2ef483+=_0xaa7e3f,_0xaa7e3f=0x0):_0x58db99[_0xeff732(0x1bf)](_0x118360),_0x118360&&_0xeff732(0x18b)===_0x118360[_0xeff732(0x179)]&&(_0xaa7e3f+=_0x118360[_0xeff732(0x1cb)]);}return _0x5d6783;}[_0x123953(0x1cc)](_0x350da2,_0x25d10d,_0x334396,_0x4e98ae=0x1){const _0x5d73fb=_0x123953,_0x34ff74=new _0x2c68a3({'startPosition':_0x350da2,'direction':_0x25d10d});let _0x14009a=0x0;for(let _0x481ee6=0x0;_0x481ee6<_0x4e98ae;_0x481ee6++){let _0x1c338f=0x0,_0x474c89=!0x1,_0x2afd39=_0x5d73fb(0x1b0)===_0x25d10d?/^\W*\w+/:/\w+\W*$/;for(const {item:_0x350aba}of _0x34ff74)if(_0x350aba['is'](_0x5d73fb(0x145))){const _0x2d9a52=_0x2afd39[_0x5d73fb(0xfd)](_0x350aba[_0x5d73fb(0x1c5)]);if(_0x2d9a52&&_0x2d9a52[_0x5d73fb(0x120)]){if(_0x1c338f+=_0x5d73fb(0x1b0)===_0x25d10d?_0x2d9a52[_0x5d73fb(0x171)]+_0x2d9a52[0x0][_0x5d73fb(0x120)]:_0x350aba[_0x5d73fb(0x1c5)][_0x5d73fb(0x120)]-_0x2d9a52[_0x5d73fb(0x171)],_0x2d9a52[0x0][_0x5d73fb(0x120)]!==_0x350aba[_0x5d73fb(0x1c5)][_0x5d73fb(0x120)])break;_0x474c89=!0x0,_0x2afd39=_0x5d73fb(0x1b0)===_0x25d10d?/^\w+/:/\w+$/;}else{if(_0x474c89)break;_0x1c338f+=_0x350aba[_0x5d73fb(0x124)];}}else{if(_0x350aba['is'](_0x5d73fb(0x163))){_0x334396[_0x5d73fb(0x166)](_0x350aba)&&!_0x474c89&&(_0x1c338f+=0x1);break;}}_0x14009a+=_0x1c338f,_0x34ff74[_0x5d73fb(0x174)](_0x350da2[_0x5d73fb(0x11c)](_0x5d73fb(0x1b0)===_0x25d10d?_0x14009a:-_0x14009a));}return _0x14009a;}[_0x123953(0x196)](_0x484f80,_0x276c3d){const _0x20cdc8=_0x123953,_0x387f59=_0x1f85bf(this[_0x20cdc8(0x105)])[_0x20cdc8(0x185)][_0x20cdc8(0x19b)],_0x442e26=this[_0x20cdc8(0x1cc)](_0x484f80,_0x20cdc8(0x168),_0x387f59,0x6),_0x212716=this[_0x20cdc8(0x1cc)](_0x276c3d,_0x20cdc8(0x1b0),_0x387f59,0x6),_0x13bb23=_0x484f80[_0x20cdc8(0x11c)](-_0x442e26),_0x23e0e1=_0x276c3d[_0x20cdc8(0x11c)](_0x212716);return{'start':_0x13bb23,'end':_0x23e0e1,'hasContentBefore':!_0x13bb23[_0x20cdc8(0x118)],'hasContentAfter':!_0x23e0e1[_0x20cdc8(0x18a)]};}[_0x123953(0x131)](_0x166d14){const _0x42edf9=_0x123953,_0x51532d=this[_0x42edf9(0x105)][_0x42edf9(0x1a7)][_0x42edf9(0x17d)](_0x42edf9(0x180)),_0xf02397=new Set();_0x1f85bf(this[_0x42edf9(0x105)])[_0x42edf9(0x185)][_0x42edf9(0x1bd)](_0x4859d3=>{const _0x358c42=_0x42edf9;for(const _0x38ffce of _0x166d14){const _0x3104a8=''+ue+_0x38ffce[_0x358c42(0x179)]+':'+_0x38ffce[_0x358c42(0x10e)]+'_'+_0x51532d[_0x358c42(0x1b6)](_0xf02397);this[_0x358c42(0x134)][_0x358c42(0x161)](_0x3104a8,{'id':_0x3104a8,'groupId':_0x38ffce[_0x358c42(0x10e)],'type':_0x38ffce[_0x358c42(0x179)],'text':_0x38ffce[_0x358c42(0x139)]}),_0x4859d3[_0x358c42(0x183)](_0x3104a8,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x4859d3[_0x358c42(0x1a8)](_0x38ffce[_0x358c42(0x151)],_0x38ffce[_0x358c42(0x14b)])});}});}[_0x123953(0x121)](_0x5bae54,_0x22322d,_0x5b2693){let _0x444ed7='';return()=>{const _0x4a4b49=_0x2a39;if(!_0x444ed7){const _0x5dcd62=_0x22322d[_0x4a4b49(0x133)](_0x5bae54,{'showSuggestionHighlights':!0x0}),_0x60ebdf=_0x5dcd62[_0x4a4b49(0x1c8)](0x0);if(!_0x60ebdf)return'';let _0x4edbd0=!0x1;const _0x5c5791=[];for(const _0x3225fc of _0x60ebdf[_0x4a4b49(0x148)]())_0x3225fc['is'](_0x4a4b49(0x163),_0x4a4b49(0x1a4))&&_0x3225fc[_0x4a4b49(0x10d)](_0x4a4b49(0x12f))&&(_0x4edbd0=!0x1),_0x4edbd0&&_0x5c5791[_0x4a4b49(0x1bf)](_0x3225fc),_0x3225fc['is'](_0x4a4b49(0x163),_0x4a4b49(0x1a4))&&_0x3225fc[_0x4a4b49(0x10d)](_0x4a4b49(0x110))&&(_0x4edbd0=!0x0);_0x60ebdf[_0x4a4b49(0x17e)](0x0,_0x60ebdf[_0x4a4b49(0x15d)]),_0x5b2693?.[_0x4a4b49(0x1a3)]&&_0x60ebdf[_0x4a4b49(0x14e)]('…'),_0x60ebdf[_0x4a4b49(0x14e)](_0x5c5791),_0x5b2693?.[_0x4a4b49(0x106)]&&_0x60ebdf[_0x4a4b49(0x14e)]('…');const _0x2aa550=_0x22322d[_0x4a4b49(0x172)][_0x4a4b49(0x142)][_0x4a4b49(0x15f)](_0x5dcd62),_0x3a791a=_0x22322d[_0x4a4b49(0x172)][_0x4a4b49(0x11f)][_0x4a4b49(0x19a)](_0x2aa550);_0x444ed7=_0x3a791a;}return _0x444ed7;};}[_0x123953(0x189)](_0x5fe4d5,_0x4b538d){const _0x5f11cf=_0x123953;let _0x31c0a4='';return()=>(_0x31c0a4||(_0x31c0a4=_0x4b538d[_0x5f11cf(0x117)](_0x5fe4d5,{'showSuggestionHighlights':!0x0})),_0x31c0a4);}[_0x123953(0x17b)](_0x1eea51,_0x5a3668,_0x3781f0){let _0x3c43f8='';return()=>{const _0x27a33a=_0x2a39;if(!_0x3c43f8){const _0x416ad6=_0x3781f0[_0x27a33a(0x133)](new _0xc0592a(_0x1eea51)),_0x93bb22=_0x3781f0[_0x27a33a(0x172)][_0x27a33a(0x142)][_0x27a33a(0x15f)](_0x416ad6)[_0x27a33a(0xfc)](_0x27a33a(0x191)+_0x5a3668+'\x22]');_0x3c43f8=_0x93bb22?.[_0x27a33a(0x10a)]||'';}return _0x3c43f8;};}[_0x123953(0x126)](_0x25fefe,_0x5af8c5=0x5){const _0x44b6b7=_0x123953;let _0xf4c155=_0x25fefe,_0x528d0=null;for(let _0x266eeb=0x0;_0x266eeb<_0x5af8c5&&_0xf4c155;_0x266eeb++){if(!_0xf4c155[_0x44b6b7(0x101)]){_0xf4c155=_0xf4c155[_0x44b6b7(0x137)];continue;}if(!(''+_0xf4c155[_0x44b6b7(0x101)])[_0x44b6b7(0x132)](_0x44b6b7(0x17f))){_0xf4c155=_0xf4c155[_0x44b6b7(0x137)];continue;}if(!_0xf4c155[_0x44b6b7(0x14a)](_0x44b6b7(0x173)))break;_0x528d0=_0xf4c155;break;}return _0x528d0;}[_0x123953(0x188)](_0x1ce440){const _0x6fb83e=_0x123953;return Array[_0x6fb83e(0x170)](this[_0x6fb83e(0x134)][_0x6fb83e(0x150)]())[_0x6fb83e(0x1c3)](_0x3a5c01=>_0x3a5c01[_0x6fb83e(0x10e)]===_0x1ce440);}[_0x123953(0x147)](_0x5ad1a6){const _0x7f53ef=_0x123953;return _0x7f53ef(0x18b)===_0x5ad1a6[_0x7f53ef(0x179)]?_0x5ad1a6[_0x7f53ef(0x1ba)]:_0x5ad1a6[_0x7f53ef(0x1c1)][_0x7f53ef(0x151)];}[_0x123953(0x13f)](_0x61b915,_0x565f9d=!0x1){const _0x508200=_0x123953;return _0x508200(0x18b)===_0x61b915[_0x508200(0x179)]?_0x565f9d?_0x61b915[_0x508200(0x1ba)]:_0x61b915[_0x508200(0x1ba)][_0x508200(0x11c)](_0x61b915[_0x508200(0x1cb)]):_0x61b915[_0x508200(0x1c1)][_0x508200(0x14b)];}[_0x123953(0x1c6)](_0x25cb20,_0x31f7b6){const _0x56bd42=_0x123953;return _0x56bd42(0x18b)===_0x25cb20[_0x56bd42(0x179)]?_0x25cb20[_0x56bd42(0x1ba)]=_0x25cb20[_0x56bd42(0x1ba)][_0x56bd42(0x11c)](_0x31f7b6):_0x56bd42(0x13a)===_0x25cb20[_0x56bd42(0x179)]&&_0x25cb20[_0x56bd42(0x1c1)]&&(_0x25cb20[_0x56bd42(0x1c1)]=new _0x497f26(_0x25cb20[_0x56bd42(0x1c1)][_0x56bd42(0x151)][_0x56bd42(0x11c)](_0x31f7b6),_0x25cb20[_0x56bd42(0x1c1)][_0x56bd42(0x14b)][_0x56bd42(0x11c)](_0x31f7b6))),_0x25cb20;}[_0x123953(0x149)](_0x15e7f3,_0xacd663){const _0x38574c=_0x123953;_0x38574c(0x18b)===_0x15e7f3[_0x38574c(0x179)]?_0x15e7f3[_0x38574c(0x1ba)]=this[_0x38574c(0x17a)](_0x15e7f3[_0x38574c(0x1ba)],_0xacd663):_0x38574c(0x13a)===_0x15e7f3[_0x38574c(0x179)]&&_0x15e7f3[_0x38574c(0x1c1)]&&(_0x15e7f3[_0x38574c(0x1c1)]=this[_0x38574c(0x103)](_0x15e7f3[_0x38574c(0x1c1)],_0xacd663));}[_0x123953(0x17a)](_0x454a86,_0x47d4d5){const _0x3239a4=_0x123953;return new _0x2287c7(_0x47d4d5,_0x454a86[_0x3239a4(0x1bc)]);}[_0x123953(0x103)](_0x1357ed,_0x2ca166){const _0x27b2b1=_0x123953;return new _0x497f26(this[_0x27b2b1(0x17a)](_0x1357ed[_0x27b2b1(0x151)],_0x2ca166),this[_0x27b2b1(0x17a)](_0x1357ed[_0x27b2b1(0x14b)],_0x2ca166));}[_0x123953(0x12d)](_0x369f7c,_0x1b2be8,_0x7d31ed){return new _0x2287c7(_0x7d31ed,[..._0x1b2be8]);}[_0x123953(0x12b)](_0x204bed,_0x738efd,_0x56cef5,_0x1d14c2){const _0x402234=_0x123953;return new _0x497f26(this[_0x402234(0x12d)](_0x204bed[_0x402234(0x151)],_0x738efd,_0x1d14c2),this[_0x402234(0x12d)](_0x204bed[_0x402234(0x14b)],_0x56cef5,_0x1d14c2));}[_0x123953(0x14d)](_0x37fb5e){const _0x3e1140=_0x123953,_0x1e290d=_0x59b255=>{const _0x56976a=_0x2a39;switch(_0x59b255){case _0x56976a(0x18b):return 0x1;case _0x56976a(0x198):return 0x2;case _0x56976a(0x1d4):return 0x3;case _0x56976a(0x158):return 0x4;}};return _0x37fb5e[_0x3e1140(0x114)]((_0x1f05ce,_0x330597)=>_0x1e290d(_0x1f05ce[_0x3e1140(0x179)])-_0x1e290d(_0x330597[_0x3e1140(0x179)]));}}
|
|
23
|
+
const _0x3fe4f6=_0x595c;(function(_0x187fda,_0x363e86){const _0x1aea45=_0x595c,_0x28b295=_0x187fda();while(!![]){try{const _0x5f00d7=-parseInt(_0x1aea45(0x104))/0x1+parseInt(_0x1aea45(0xb3))/0x2+-parseInt(_0x1aea45(0x11c))/0x3*(parseInt(_0x1aea45(0xfa))/0x4)+-parseInt(_0x1aea45(0x116))/0x5*(parseInt(_0x1aea45(0xfc))/0x6)+-parseInt(_0x1aea45(0x83))/0x7*(-parseInt(_0x1aea45(0x98))/0x8)+-parseInt(_0x1aea45(0x148))/0x9*(parseInt(_0x1aea45(0x90))/0xa)+parseInt(_0x1aea45(0xc1))/0xb*(parseInt(_0x1aea45(0xe9))/0xc);if(_0x5f00d7===_0x363e86)break;else _0x28b295['push'](_0x28b295['shift']());}catch(_0x5e1489){_0x28b295['push'](_0x28b295['shift']());}}}(_0x4f61,0x36a3b));import{InsertOperation as _0x45d087,MarkerOperation as _0x1892dc,ModelDocumentFragment as _0x33afe0,ModelPosition as _0x5d4b2f,ModelRange as _0x2ea32e,ModelTreeWalker as _0x47e8ed,transformOperationSets as _0x25af43}from'ckeditor5/src/engine.js';import{DomEmitterMixin as _0x40fd5d,EmitterMixin as _0x4ec5c9}from'ckeditor5/src/utils.js';import{ContextPlugin as _0xe18ca9}from'ckeditor5/src/core.js';import{DocumentCompare as _0x57c3da,DATA_ID_MODEL_ATTRIBUTE as _0x494f8c,DATA_ID_VIEW_ATTRIBUTE as _0x28a690}from'ckeditor5-collaboration/src/collaboration-core.js';import{getEditorFromContext as _0x5b0a84}from'../aicore/utils/geteditorfromcontext.js';function _0x4f61(){const _0xc92c83=['parent','36zkcFno','name','createUIElement','_appendChild','documentFragment','isAtStart','_changeOperationOwnerDocument','enableReadOnlyMode','199016OzlgGT','add','isInline','_changeRangeOwnerDocument','addMarker','_groupAdjacentOperations','every','parse','_getMarkersDataForGroup','conversion','get','baseVersion','DocumentCompare','flat','No\x20element\x20found\x20for\x20ID:\x20','insertContent','editing','suggestion:insertion:id:authorId:','187470UkdWHY','startsWith','markerToHighlight','stringify','getRoots','ck-ai_review-mode-marker_context-','9cvwYHh','_changePositionOwnerDocument','createPositionAt','createPositionAfter','createDocumentFragment','isPremiumPlugin','toView','_changePosition','markerToElement','createText','target','push','isOpening','isAtEnd','AIReviewModeEditing','_changeRange','remove-context','AIEditing','clearAllMarkers','delete','_eventEmitter','pluginName','offset','values','_setAttribute','_domEmitter','[data-marker-id=\x22','batch','toData','outerHTML','innerHTML','_getOperationStart','offsetSize','remove-text','ck-ai_review-mode-marker_hide','ck-ai_review-mode-marker_add','remove-only','$documentFragment','schema','_createGetContentUsingDataIdFn','requires','createRange','elements','getShiftedBy','3297744YaBQwB','split','pop','getChildren','index','getRange','data','_removeChildren','className','listenTo','dataDowncast','set','childCount','map','length','append','isOfficialPlugin','keys','_markers','switchToReadOnly','for','querySelector','document','56cwWFzp','hasContentBefore','ck-ai_review-mode-marker_underline','caption','hasClass','getDocumentData','clear','ck-ai_review-mode-marker_strikethrough','filter','_createGetContextFn','removeMarker','sort','view','10RntoIc','domConverter','hasContentAfter','howMany','element','getEditor','_getOperationEnd','insert','112960FWDAFh','changeMarkerClick','addOperation','_findMarkerElement','nodes','[data-id=\x22','end','groupId','disableReadOnlyMode','start','getDomRoot','oldRange','isTouching','ellipsisBefore','span','afterInit','jumpTo','createSelection','ck-ai_review-mode-marker_context-start','text','emitter','toDomElement','clone','_insertMarkers','path','ellipsisAfter','_clone','710212XcXRta','viewToDom','fire','applyOperation','marker','context','markers','concat','change','position','operationsA','htmlProcessor','operationsIsolated','ck-ai_review-mode-marker_','11ITZbPd','downcast','getRoot','_removeAttribute','forward','getAttribute','version','diffContent','markChangePositionInEditorContent','ck-ai_review-mode-marker_context-end','model:$text','model','suggestion-context','attributeToAttribute','editingDowncast','type','_findAdjacentContextDistance','suggestion:deletion:id:authorId:','htmlWriter','getOperations','from','includes','createRawElement','switchToEdit','click','newRange','affectsData','getChild','getPath','reviewmode-','warn','_sortMarkers','$textProxy','exec','data-marker-id','_shiftOperation','ai-review-mode','isDocumentOperation','history','processor','10659288zlTWbo','backward','hasAttribute','_nextDataId','deleteContent','_getChangeContext','applyChange','_createGetContentFn','plugins','getMarkerElementForChange','parentElement','rejectChange','_translateOperationToEditorContent','getDiff','getHtml','markerName','$markedRemove','456188zSmZhb'];_0x4f61=function(){return _0xc92c83;};return _0x4f61();}import{AIEditing as _0x1c9927}from'../aicore/aiediting.js';function _0x595c(_0x44b9df,_0x1aec67){const _0x4f610f=_0x4f61();return _0x595c=function(_0x595cc9,_0x1f672c){_0x595cc9=_0x595cc9-0x83;let _0x45350a=_0x4f610f[_0x595cc9];return _0x45350a;},_0x595c(_0x44b9df,_0x1aec67);}const ae=_0x3fe4f6(0xde);export class AIReviewModeEditing extends _0xe18ca9{static get[_0x3fe4f6(0x131)](){const _0x5198f2=_0x3fe4f6;return _0x5198f2(0x12a);}static get[_0x3fe4f6(0x144)](){return[_0x57c3da,_0x1c9927];}static get[_0x3fe4f6(0x158)](){return!0x0;}static get[_0x3fe4f6(0x121)](){return!0x0;}[_0x3fe4f6(0x15a)]=new Map();[_0x3fe4f6(0x135)];[_0x3fe4f6(0x130)];constructor(_0x1a4676){const _0x1b9306=_0x3fe4f6;super(_0x1a4676),this[_0x1b9306(0x135)]=new(_0x40fd5d())(),this[_0x1b9306(0x130)]=new(_0x4ec5c9())();}get[_0x3fe4f6(0xac)](){const _0x7ef37f=_0x3fe4f6;return this[_0x7ef37f(0x130)];}[_0x3fe4f6(0xa7)](){const _0x141689=_0x3fe4f6,_0x470c81=_0x5b0a84(this[_0x141689(0xb8)]);_0x470c81[_0x141689(0x10d)][_0x141689(0x15c)](_0x141689(0xcf))[_0x141689(0x124)]({'model':ae+_0x141689(0x97),'view':(_0x2790fe,{writer:_0x192a9a})=>{const _0x403d03=_0x141689,_0x1f5fec=this[_0x403d03(0x15a)][_0x403d03(0x10e)](_0x2790fe[_0x403d03(0xf8)]),_0x3a69c6={'class':_0x403d03(0x13f),'data-marker-id':_0x2790fe[_0x403d03(0xf8)]};return _0x192a9a[_0x403d03(0xfe)](_0x403d03(0xa6),_0x3a69c6,function(_0x164e6a){const _0x1c1d41=_0x403d03,_0xf0410f=this[_0x1c1d41(0xad)](_0x164e6a);return _0xf0410f[_0x1c1d41(0x13a)]=_0x1f5fec?.[_0x1c1d41(0xab)]||'',_0xf0410f;});}}),_0x470c81[_0x141689(0x10d)][_0x141689(0x15c)](_0x141689(0xcf))[_0x141689(0x118)]({'model':ae+_0x141689(0x140),'view':_0x23a231=>({'classes':_0x141689(0x8a),'attributes':{'data-marker-id':_0x23a231[_0x141689(0xf8)]}})}),_0x470c81[_0x141689(0x10d)][_0x141689(0x15c)](_0x141689(0xcf))[_0x141689(0x118)]({'model':ae+_0x141689(0x12c),'view':_0x4faa62=>({'classes':_0x141689(0x85),'attributes':{'data-marker-id':_0x4faa62[_0x141689(0xf8)]}})}),_0x470c81[_0x141689(0x10d)][_0x141689(0x15c)](_0x141689(0xcf))[_0x141689(0x118)]({'model':ae+_0x141689(0x13d),'view':_0x65117a=>({'classes':_0x141689(0x13e),'attributes':{'data-marker-id':_0x65117a[_0x141689(0xf8)]}})}),_0x470c81[_0x141689(0x10d)][_0x141689(0x15c)](_0x141689(0x152))[_0x141689(0x124)]({'model':ae+_0x141689(0xcd),'view':(_0x1ba834,{writer:_0x4c0f16})=>_0x4c0f16[_0x141689(0xd7)](_0x141689(0xa6),{'class':_0x141689(0x11b)+(_0x1ba834[_0x141689(0x128)]?_0x141689(0xa1):_0x141689(0x9e))})}),_0x470c81[_0x141689(0x10d)][_0x141689(0x15c)](_0x141689(0xc2))[_0x141689(0xce)]({'model':_0x494f8c,'view':_0x28a690}),this[_0x141689(0x135)][_0x141689(0x151)](document,_0x141689(0xd9),(_0xdbd8ed,_0x318caf)=>{const _0x5ea45c=_0x141689,_0xbd4bc6=_0x318caf[_0x5ea45c(0x126)],_0x562160=this[_0x5ea45c(0x9b)](_0xbd4bc6);if(!_0x562160)return;const _0x4a8421=_0x562160[_0x5ea45c(0xc6)](_0x5ea45c(0xe3)),_0x13b2f0=_0x4a8421[_0x5ea45c(0x149)](':')[_0x5ea45c(0x14a)]()?.[_0x5ea45c(0x149)]('_')[0x0];this[_0x5ea45c(0x130)][_0x5ea45c(0xb5)](_0x5ea45c(0x99),{'markerId':_0x4a8421,'changeId':_0x13b2f0});});}[_0x3fe4f6(0x88)](){const _0x4edde1=_0x3fe4f6,_0x44c9b3=this[_0x4edde1(0xb8)][_0x4edde1(0xf1)][_0x4edde1(0x10e)](_0x4edde1(0x12d)),_0x2058ed=_0x5b0a84(this[_0x4edde1(0xb8)]),_0x2c54d9=_0x2058ed[_0x4edde1(0xcc)],_0x522865=new _0x33afe0();for(const _0x11c11d of _0x2c54d9[_0x4edde1(0x15e)][_0x4edde1(0xc3)]()[_0x4edde1(0x14b)]()){const _0x16e821=_0x11c11d[_0x4edde1(0xb2)](!0x0);_0x522865[_0x4edde1(0xff)](_0x16e821);}for(const _0x4a7a60 of _0x2c54d9[_0x4edde1(0xb9)])_0x522865[_0x4edde1(0xb9)][_0x4edde1(0x153)](_0x4a7a60[_0x4edde1(0xfd)],this[_0x4edde1(0x107)](_0x4a7a60[_0x4edde1(0x14d)]()[_0x4edde1(0xae)](),_0x522865));const _0x175e40=new _0x47e8ed({'ignoreElementEnd':!0x0,'startPosition':_0x2c54d9[_0x4edde1(0x11e)](_0x522865,0x0)}),_0x5e4898=new Set(),_0x3bce35=new Map();for(const {item:_0x5e9b41}of _0x175e40){if(!_0x5e9b41['is'](_0x4edde1(0xe1)))continue;const _0x32c409=_0x5e9b41[_0x4edde1(0xfb)];if((!_0x32c409||!_0x32c409['is'](_0x4edde1(0x94),_0x4edde1(0x86)))&&(_0x32c409&&_0x32c409['is'](_0x4edde1(0x94)))){let _0x3863ae=_0x32c409[_0x4edde1(0xc6)](_0x494f8c);_0x3863ae||(_0x3863ae=_0x44c9b3[_0x4edde1(0xec)](_0x5e4898),_0x32c409[_0x4edde1(0x134)](_0x494f8c,_0x3863ae)),_0x5e4898[_0x4edde1(0x105)](_0x3863ae);let _0xe00b3a=_0x32c409;for(;_0xe00b3a[_0x4edde1(0xfb)]&&!_0xe00b3a[_0x4edde1(0xfb)]['is'](_0x4edde1(0x100));)_0xe00b3a=_0xe00b3a[_0x4edde1(0xfb)],_0xe00b3a[_0x4edde1(0xeb)](_0x494f8c)&&_0xe00b3a[_0x4edde1(0xc4)](_0x494f8c);_0x3bce35[_0x4edde1(0x153)](_0x3863ae,{'path':_0x32c409[_0x4edde1(0xdd)](),'getContent':this[_0x4edde1(0x143)](_0xe00b3a[_0x4edde1(0xb2)](!0x0),_0x3863ae,_0x2058ed[_0x4edde1(0x14e)])}),_0x175e40[_0x4edde1(0xa8)](_0x2c54d9[_0x4edde1(0x11f)](_0x32c409));}}return{'content':_0x2058ed[_0x4edde1(0x14e)][_0x4edde1(0xe8)][_0x4edde1(0x138)](_0x2058ed[_0x4edde1(0x14e)][_0x4edde1(0x122)](_0x522865)),'version':_0x2058ed[_0x4edde1(0xcc)][_0x4edde1(0x15e)][_0x4edde1(0xc7)],'elements':_0x3bce35};}[_0x3fe4f6(0xc8)](_0x1d5a94,_0x5bf4af){const _0x16c680=_0x3fe4f6,_0x56d71f=_0x5b0a84(this[_0x16c680(0xb8)]),_0x2f884c=_0x56d71f[_0x16c680(0x14e)][_0x16c680(0x10b)](_0x1d5a94,_0x16c680(0x141)),_0x347422=_0x56d71f[_0x16c680(0xcc)][_0x16c680(0x11e)](_0x2f884c,0x0),_0x431cdf=this[_0x16c680(0xb8)][_0x16c680(0xf1)][_0x16c680(0x10e)](_0x16c680(0x110))[_0x16c680(0xf6)](_0x1d5a94,_0x5bf4af,{'anchor':_0x347422,'markDeletions':!0x0})[_0x16c680(0xd4)]()[_0x16c680(0x8b)](_0x60b48e=>_0x16c680(0x97)===_0x60b48e[_0x16c680(0xd0)]||_0x16c680(0xb7)===_0x60b48e[_0x16c680(0xd0)]&&_0x60b48e[_0x16c680(0xfd)][_0x16c680(0x117)](_0x16c680(0xf9))),_0x16a854=this[_0x16c680(0x109)](_0x431cdf),_0x1fb34f=[];let _0x5306bd=0x0;return _0x56d71f[_0x16c680(0xcc)][_0x16c680(0xbb)](_0x44d36b=>{const _0x56e70f=_0x16c680;for(let _0x45d745=0x0;_0x45d745<_0x16a854[_0x56e70f(0x156)];_0x45d745++){const _0x69bd1d=_0x16a854[_0x45d745],_0x5ea24e=_0x44d36b[_0x56e70f(0x120)]();for(const _0x1a0cfa of _0x2f884c[_0x56e70f(0x14b)]())_0x44d36b[_0x56e70f(0x157)](_0x1a0cfa[_0x56e70f(0xb2)](!0x0),_0x5ea24e);for(const _0x161f18 of _0x69bd1d[_0x56e70f(0xbf)])if(_0x56e70f(0x97)===_0x161f18[_0x56e70f(0xd0)]){const _0x5b05a2=_0x161f18;_0x5b05a2[_0x56e70f(0x10f)]=null,_0x5b05a2[_0x56e70f(0xe6)]=!0x1,this[_0x56e70f(0x102)](_0x5b05a2,_0x5ea24e),_0x44d36b[_0x56e70f(0x137)][_0x56e70f(0x9a)](_0x161f18),_0x56d71f[_0x56e70f(0xcc)][_0x56e70f(0xb6)](_0x161f18);const _0x2aba70=_0x56e70f(0x115)+_0x5306bd++,_0x45d883=_0x56d71f[_0x56e70f(0xcc)][_0x56e70f(0x145)](_0x5b05a2[_0x56e70f(0xbc)],_0x5b05a2[_0x56e70f(0xbc)][_0x56e70f(0x147)](_0x5b05a2[_0x56e70f(0x93)]));_0x5ea24e[_0x56e70f(0xb9)][_0x56e70f(0x153)](_0x2aba70,_0x45d883);}else{if(_0x56e70f(0xb7)===_0x161f18[_0x56e70f(0xd0)]&&_0x161f18[_0x56e70f(0xfd)][_0x56e70f(0x117)](_0x56e70f(0xf9))){const _0x25d09e=_0x161f18,_0x37bbe5=_0x56e70f(0xd2)+_0x5306bd++;this[_0x56e70f(0x102)](_0x25d09e,_0x5ea24e),_0x5ea24e[_0x56e70f(0xb9)][_0x56e70f(0x153)](_0x37bbe5,_0x25d09e[_0x56e70f(0xda)]);}}const _0x5767a3=this[_0x56e70f(0xee)](this[_0x56e70f(0x11d)](this[_0x56e70f(0x13b)](_0x69bd1d[_0x56e70f(0xbf)][0x0]),_0x5ea24e),this[_0x56e70f(0x11d)](this[_0x56e70f(0x96)](_0x69bd1d[_0x56e70f(0xbf)][_0x69bd1d[_0x56e70f(0xbf)][_0x56e70f(0x156)]-0x1]),_0x5ea24e));_0x5ea24e[_0x56e70f(0xb9)][_0x56e70f(0x153)](ae+_0x56e70f(0xcd),new _0x2ea32e(_0x5767a3[_0x56e70f(0xa1)],_0x5767a3[_0x56e70f(0x9e)])),_0x1fb34f[_0x56e70f(0x127)]({..._0x69bd1d,'context':this[_0x56e70f(0x8c)](_0x5ea24e,_0x56d71f[_0x56e70f(0x14e)],{'ellipsisBefore':_0x5767a3[_0x56e70f(0x84)],'ellipsisAfter':_0x5767a3[_0x56e70f(0x92)]}),'content':this[_0x56e70f(0xf0)](_0x5ea24e,_0x56d71f[_0x56e70f(0x14e)])});}}),_0x1fb34f;}[_0x3fe4f6(0xc9)](_0x2a0bc2,_0x28cc9f){const _0x54279d=_0x3fe4f6,_0x16f3be=_0x2a0bc2[0x0][_0x54279d(0xfb)]['id'],_0x46c3b2=_0x28cc9f[_0x54279d(0x146)][_0x54279d(0x10e)](_0x16f3be);if(!_0x46c3b2)return void console[_0x54279d(0xdf)](_0x54279d(0x112)+_0x16f3be);const _0x3391dc=_0x46c3b2[_0x54279d(0xb0)],_0xfcfcbb=_0x5b0a84(this[_0x54279d(0xb8)]),_0x1c4812=_0xfcfcbb[_0x54279d(0xcc)][_0x54279d(0x15e)][_0x54279d(0xe7)][_0x54279d(0xd4)](_0x28cc9f[_0x54279d(0xc7)]),_0x3da8a3=[];for(const _0x1d4865 of _0x2a0bc2){const _0x3ff99d=_0x1d4865[_0x54279d(0xbf)][_0x54279d(0x155)](_0x14ab28=>this[_0x54279d(0xf5)](_0x14ab28,_0x3391dc,_0xfcfcbb[_0x54279d(0xcc)][_0x54279d(0x15e)][_0x54279d(0x11a)]()[0x0]));if(!_0x3ff99d||!_0x3ff99d[_0x54279d(0x156)])continue;const _0x32ba7e=_0x3ff99d[_0x54279d(0x10a)](_0x1f1ca3=>_0x54279d(0xb7)===_0x1f1ca3[_0x54279d(0xd0)]&&_0x1f1ca3[_0x54279d(0xfd)][_0x54279d(0x117)](_0x54279d(0xf9))),_0x5b726b={'document':_0xfcfcbb[_0x54279d(0xcc)][_0x54279d(0x15e)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x565d3c=_0x25af43(_0x3ff99d,_0x1c4812,_0x5b726b)[_0x54279d(0xbd)];for(const _0x6c9943 of _0x565d3c)if(_0x54279d(0x97)===_0x6c9943[_0x54279d(0xd0)]){const _0x508628=_0x6c9943,_0x2d1ce8=_0x508628[_0x54279d(0x9c)];let _0x9cceaa='';for(const _0x48a30a of _0x2d1ce8)_0x48a30a&&_0x48a30a['is'](_0x54279d(0xcb))&&(_0x9cceaa+=_0x48a30a[_0x54279d(0x14e)]);_0x3da8a3[_0x54279d(0x127)]({'start':_0x508628[_0x54279d(0xbc)],'end':_0x508628[_0x54279d(0xbc)],'type':_0x54279d(0x97),'groupId':_0x1d4865['id'],'text':_0x9cceaa});}else{if(_0x54279d(0xb7)===_0x6c9943[_0x54279d(0xd0)]&&_0x6c9943[_0x54279d(0xfd)][_0x54279d(0x117)](_0x54279d(0xf9))){const _0x18fbcb=_0x6c9943;let _0x2b16c4=_0x54279d(0x13d);if(_0x32ba7e){const _0x5e98a2=this[_0x54279d(0xd1)](_0x18fbcb[_0x54279d(0xda)][_0x54279d(0xa1)],_0x54279d(0xea),_0xfcfcbb[_0x54279d(0xcc)][_0x54279d(0x142)]),_0xddee5a=this[_0x54279d(0xd1)](_0x18fbcb[_0x54279d(0xda)][_0x54279d(0x9e)],_0x54279d(0xc5),_0xfcfcbb[_0x54279d(0xcc)][_0x54279d(0x142)]);if(_0x5e98a2||_0xddee5a){const _0x2b3150=_0x18fbcb[_0x54279d(0xda)][_0x54279d(0xa1)][_0x54279d(0x147)](-_0x5e98a2),_0x11df76=_0x18fbcb[_0x54279d(0xda)][_0x54279d(0x9e)][_0x54279d(0x147)](_0xddee5a);_0x3da8a3[_0x54279d(0x127)]({'start':_0x2b3150,'end':_0x11df76,'groupId':_0x1d4865['id'],'type':_0x54279d(0x12c)});}else _0x2b16c4=_0x54279d(0x140);}_0x3da8a3[_0x54279d(0x127)]({'start':_0x18fbcb[_0x54279d(0xda)][_0x54279d(0xa1)],'end':_0x18fbcb[_0x54279d(0xda)][_0x54279d(0x9e)],'groupId':_0x1d4865['id'],'type':_0x2b16c4});}}}this[_0x54279d(0xaf)](_0x3da8a3);}[_0x3fe4f6(0x12e)](){const _0x896650=_0x3fe4f6;_0x5b0a84(this[_0x896650(0xb8)])[_0x896650(0xcc)][_0x896650(0xbb)](_0x473d68=>{const _0x38097c=_0x896650;for(const _0x9ab4f1 of this[_0x38097c(0x15a)][_0x38097c(0x159)]())_0x473d68[_0x38097c(0x8d)](_0x9ab4f1);}),this[_0x896650(0x15a)][_0x896650(0x89)]();}[_0x3fe4f6(0x15b)](){const _0x3ffbea=_0x3fe4f6;_0x5b0a84(this[_0x3ffbea(0xb8)])[_0x3ffbea(0x103)](_0x3ffbea(0xe5));}[_0x3fe4f6(0xd8)](){const _0x599d78=_0x3fe4f6;_0x5b0a84(this[_0x599d78(0xb8)])[_0x599d78(0xa0)](_0x599d78(0xe5));}[_0x3fe4f6(0xef)](_0x40e3b0){const _0x1ef65f=_0x3fe4f6,_0x2e207c=_0x5b0a84(this[_0x1ef65f(0xb8)]),_0xdac449=_0x2e207c[_0x1ef65f(0xcc)],_0x2ee28d=_0x40e3b0[_0x1ef65f(0x155)](_0x391836=>this[_0x1ef65f(0x10c)](_0x391836))[_0x1ef65f(0x111)]();_0xdac449[_0x1ef65f(0xbb)](_0x32af94=>{const _0x23e74c=_0x1ef65f;for(const _0x332500 of _0x2ee28d){const _0x37a739=_0x2e207c[_0x23e74c(0xcc)][_0x23e74c(0xb9)][_0x23e74c(0x10e)](_0x332500['id']);_0x37a739&&(_0x23e74c(0x97)===_0x332500[_0x23e74c(0xd0)]?_0xdac449[_0x23e74c(0x113)](_0x32af94[_0x23e74c(0x125)](_0x332500[_0x23e74c(0xab)]||''),_0x37a739[_0x23e74c(0x14d)]()[_0x23e74c(0xa1)]):_0x23e74c(0x13d)!==_0x332500[_0x23e74c(0xd0)]&&_0x23e74c(0x140)!==_0x332500[_0x23e74c(0xd0)]||_0xdac449[_0x23e74c(0xed)](_0xdac449[_0x23e74c(0xa9)](_0x37a739[_0x23e74c(0x14d)]())),_0x32af94[_0x23e74c(0x8d)](_0x332500['id']),this[_0x23e74c(0x15a)][_0x23e74c(0x12f)](_0x332500['id']));}});}[_0x3fe4f6(0xf4)](_0x49b951){const _0xf5fe6c=_0x3fe4f6,_0x342367=_0x5b0a84(this[_0xf5fe6c(0xb8)]),_0x4e3ab4=this[_0xf5fe6c(0x10c)](_0x49b951);_0x342367[_0xf5fe6c(0xcc)][_0xf5fe6c(0xbb)](_0x3a0ad0=>{const _0x1403bf=_0xf5fe6c;for(const _0xd72dba of _0x4e3ab4)_0x3a0ad0[_0x1403bf(0x8d)](_0xd72dba['id']),this[_0x1403bf(0x15a)][_0x1403bf(0x12f)](_0xd72dba['id']);});}[_0x3fe4f6(0x95)](){const _0x22cf8c=_0x3fe4f6;return _0x5b0a84(this[_0x22cf8c(0xb8)]);}[_0x3fe4f6(0xf2)](_0x3cc7bc){const _0x4ecf3d=_0x3fe4f6,_0x430933=Array[_0x4ecf3d(0xd5)](this[_0x4ecf3d(0x15a)][_0x4ecf3d(0x133)]())[_0x4ecf3d(0x8b)](_0x44bf82=>_0x44bf82[_0x4ecf3d(0x9f)]===_0x3cc7bc);if(!_0x430933[_0x4ecf3d(0x156)])return null;const _0x374cac=0x1===_0x430933[_0x4ecf3d(0x156)]?_0x430933[0x0]:this[_0x4ecf3d(0xe0)](_0x430933)[0x0],_0x3cb3e9=_0x5b0a84(this[_0x4ecf3d(0xb8)]),_0x403b5c=_0x3cb3e9[_0x4ecf3d(0xcc)][_0x4ecf3d(0xb9)][_0x4ecf3d(0x10e)](_0x374cac['id']);if(!_0x403b5c)return null;const _0x499866=_0x403b5c[_0x4ecf3d(0x14d)](),_0x431b4e=_0x3cb3e9[_0x4ecf3d(0x114)][_0x4ecf3d(0x8f)][_0x4ecf3d(0xa2)]();if(!_0x431b4e||!_0x499866)return null;const _0x29e2d6=_0x431b4e[_0x4ecf3d(0x15d)](_0x4ecf3d(0x136)+_0x374cac['id']+'\x22]');return _0x29e2d6?{'modelRange':_0x499866,'domElement':_0x29e2d6}:null;}[_0x3fe4f6(0xf5)](_0x32f0a6,_0x3966d9,_0x5c3c47){const _0x132510=_0x3fe4f6;if(_0x132510(0x97)===_0x32f0a6[_0x132510(0xd0)]){const _0x1f5d4a=_0x32f0a6;return new _0x45d087(this[_0x132510(0x123)](_0x1f5d4a[_0x132510(0xbc)],_0x3966d9[_0x132510(0xba)](_0x1f5d4a[_0x132510(0xbc)][_0x132510(0x132)]),_0x5c3c47),_0x1f5d4a[_0x132510(0x9c)],_0x1f5d4a[_0x132510(0x10f)]);}if(_0x132510(0xb7)===_0x32f0a6[_0x132510(0xd0)]&&_0x32f0a6[_0x132510(0xfd)][_0x132510(0x117)](_0x132510(0xf9))){const _0x1eebb5=_0x32f0a6;return new _0x1892dc(_0x1eebb5[_0x132510(0xfd)],_0x1eebb5[_0x132510(0xa3)],this[_0x132510(0x12b)](_0x1eebb5[_0x132510(0xda)],_0x3966d9[_0x132510(0xba)](_0x1eebb5[_0x132510(0xda)][_0x132510(0xa1)][_0x132510(0x132)]),_0x3966d9[_0x132510(0xba)](_0x1eebb5[_0x132510(0xda)][_0x132510(0x9e)][_0x132510(0x132)]),_0x5c3c47),_0x1eebb5[_0x132510(0x15a)],_0x1eebb5[_0x132510(0xdb)],_0x1eebb5[_0x132510(0x10f)]);}return _0x32f0a6;}[_0x3fe4f6(0x109)](_0x32d40c){const _0x35c4b9=_0x3fe4f6;if(!_0x32d40c[_0x35c4b9(0x156)])return[];const _0x41477a=[];let _0x16726b=0x0,_0x50e634=0x0,_0x404d69=[];for(let _0x198f0d=0x0;_0x198f0d<=_0x32d40c[_0x35c4b9(0x156)];_0x198f0d++){const _0x2a46f4=_0x32d40c[_0x198f0d],_0x5b6ada=_0x32d40c[_0x198f0d-0x1];!_0x2a46f4||_0x5b6ada&&!this[_0x35c4b9(0x96)](_0x5b6ada)[_0x35c4b9(0xa4)](this[_0x35c4b9(0x13b)](_0x2a46f4))?(_0x41477a[_0x35c4b9(0x127)]({'operations':_0x404d69,'operationsIsolated':_0x404d69[_0x35c4b9(0x155)](_0x3e5310=>this[_0x35c4b9(0xe4)](_0x3e5310[_0x35c4b9(0xae)](),-_0x50e634)),'groupOffset':_0x16726b}),_0x404d69=_0x2a46f4?[_0x2a46f4]:[],_0x50e634+=_0x16726b,_0x16726b=0x0):_0x404d69[_0x35c4b9(0x127)](_0x2a46f4),_0x2a46f4&&_0x35c4b9(0x97)===_0x2a46f4[_0x35c4b9(0xd0)]&&(_0x16726b+=_0x2a46f4[_0x35c4b9(0x93)]);}return _0x41477a;}[_0x3fe4f6(0xd1)](_0x1740e6,_0x160513,_0x17ab82,_0x10337d=0x1){const _0x28e6d4=_0x3fe4f6,_0x37c2c2=new _0x47e8ed({'startPosition':_0x1740e6,'direction':_0x160513});let _0x163287=0x0;for(let _0x2bcbaf=0x0;_0x2bcbaf<_0x10337d;_0x2bcbaf++){let _0x74bde0=0x0,_0x195b6e=!0x1,_0x497409=_0x28e6d4(0xc5)===_0x160513?/^\W*\w+/:/\w+\W*$/;for(const {item:_0x5db49e}of _0x37c2c2)if(_0x5db49e['is'](_0x28e6d4(0xe1))){const _0x5d8cbd=_0x497409[_0x28e6d4(0xe2)](_0x5db49e[_0x28e6d4(0x14e)]);if(_0x5d8cbd&&_0x5d8cbd[_0x28e6d4(0x156)]){if(_0x74bde0+=_0x28e6d4(0xc5)===_0x160513?_0x5d8cbd[_0x28e6d4(0x14c)]+_0x5d8cbd[0x0][_0x28e6d4(0x156)]:_0x5db49e[_0x28e6d4(0x14e)][_0x28e6d4(0x156)]-_0x5d8cbd[_0x28e6d4(0x14c)],_0x5d8cbd[0x0][_0x28e6d4(0x156)]!==_0x5db49e[_0x28e6d4(0x14e)][_0x28e6d4(0x156)])break;_0x195b6e=!0x0,_0x497409=_0x28e6d4(0xc5)===_0x160513?/^\w+/:/\w+$/;}else{if(_0x195b6e)break;_0x74bde0+=_0x5db49e[_0x28e6d4(0x13c)];}}else{if(_0x5db49e['is'](_0x28e6d4(0x94))){_0x17ab82[_0x28e6d4(0x106)](_0x5db49e)&&!_0x195b6e&&(_0x74bde0+=0x1);break;}}_0x163287+=_0x74bde0,_0x37c2c2[_0x28e6d4(0xa8)](_0x1740e6[_0x28e6d4(0x147)](_0x28e6d4(0xc5)===_0x160513?_0x163287:-_0x163287));}return _0x163287;}[_0x3fe4f6(0xee)](_0x2e7919,_0x5e9e7a){const _0x46c60a=_0x3fe4f6,_0x2cca9b=_0x5b0a84(this[_0x46c60a(0xb8)])[_0x46c60a(0xcc)][_0x46c60a(0x142)],_0x2f1823=this[_0x46c60a(0xd1)](_0x2e7919,_0x46c60a(0xea),_0x2cca9b,0x6),_0x499dd7=this[_0x46c60a(0xd1)](_0x5e9e7a,_0x46c60a(0xc5),_0x2cca9b,0x6),_0x2d0670=_0x2e7919[_0x46c60a(0x147)](-_0x2f1823),_0x440ee0=_0x5e9e7a[_0x46c60a(0x147)](_0x499dd7);return{'start':_0x2d0670,'end':_0x440ee0,'hasContentBefore':!_0x2d0670[_0x46c60a(0x101)],'hasContentAfter':!_0x440ee0[_0x46c60a(0x129)]};}[_0x3fe4f6(0xaf)](_0x13c8f5){const _0x4420ec=_0x3fe4f6,_0x15c063=this[_0x4420ec(0xb8)][_0x4420ec(0xf1)][_0x4420ec(0x10e)](_0x4420ec(0x12d)),_0x5874cc=new Set();_0x5b0a84(this[_0x4420ec(0xb8)])[_0x4420ec(0xcc)][_0x4420ec(0xbb)](_0x215ceb=>{const _0x148833=_0x4420ec;for(const _0x4d4202 of _0x13c8f5){const _0x2c3cb9=''+ae+_0x4d4202[_0x148833(0xd0)]+':'+_0x4d4202[_0x148833(0x9f)]+'_'+_0x15c063[_0x148833(0xec)](_0x5874cc);this[_0x148833(0x15a)][_0x148833(0x153)](_0x2c3cb9,{'id':_0x2c3cb9,'groupId':_0x4d4202[_0x148833(0x9f)],'type':_0x4d4202[_0x148833(0xd0)],'text':_0x4d4202[_0x148833(0xab)]}),_0x215ceb[_0x148833(0x108)](_0x2c3cb9,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x215ceb[_0x148833(0x145)](_0x4d4202[_0x148833(0xa1)],_0x4d4202[_0x148833(0x9e)])});}});}[_0x3fe4f6(0x8c)](_0x2f28b0,_0x407503,_0x2e2f94){let _0x24830b='';return()=>{const _0x57f9b2=_0x595c;if(!_0x24830b){const _0x2b1c57=_0x407503[_0x57f9b2(0x122)](_0x2f28b0,{'showSuggestionHighlights':!0x0}),_0x42c72a=_0x2b1c57[_0x57f9b2(0xdc)](0x0);if(!_0x42c72a)return'';let _0x43b4ad=!0x1;const _0x1eca89=[];for(const _0x1488a2 of _0x42c72a[_0x57f9b2(0x14b)]())_0x1488a2['is'](_0x57f9b2(0x94),_0x57f9b2(0xa6))&&_0x1488a2[_0x57f9b2(0x87)](_0x57f9b2(0xca))&&(_0x43b4ad=!0x1),_0x43b4ad&&_0x1eca89[_0x57f9b2(0x127)](_0x1488a2),_0x1488a2['is'](_0x57f9b2(0x94),_0x57f9b2(0xa6))&&_0x1488a2[_0x57f9b2(0x87)](_0x57f9b2(0xaa))&&(_0x43b4ad=!0x0);_0x42c72a[_0x57f9b2(0x14f)](0x0,_0x42c72a[_0x57f9b2(0x154)]),_0x2e2f94?.[_0x57f9b2(0xa5)]&&_0x42c72a[_0x57f9b2(0xff)]('…'),_0x42c72a[_0x57f9b2(0xff)](_0x1eca89),_0x2e2f94?.[_0x57f9b2(0xb1)]&&_0x42c72a[_0x57f9b2(0xff)]('…');const _0xeaa543=_0x407503[_0x57f9b2(0xbe)][_0x57f9b2(0x91)][_0x57f9b2(0xb4)](_0x2b1c57),_0x15f98b=_0x407503[_0x57f9b2(0xbe)][_0x57f9b2(0xd3)][_0x57f9b2(0xf7)](_0xeaa543);_0x24830b=_0x15f98b;}return _0x24830b;};}[_0x3fe4f6(0xf0)](_0x429c1f,_0x31b283){const _0x2bc699=_0x3fe4f6;let _0x307669='';return()=>(_0x307669||(_0x307669=_0x31b283[_0x2bc699(0x119)](_0x429c1f,{'showSuggestionHighlights':!0x0})),_0x307669);}[_0x3fe4f6(0x143)](_0xeac566,_0x4ba036,_0x5c0c6a){let _0x38f3e8='';return()=>{const _0x27a3ef=_0x595c;if(!_0x38f3e8){const _0x202d8f=_0x5c0c6a[_0x27a3ef(0x122)](new _0x33afe0(_0xeac566)),_0x5b032a=_0x5c0c6a[_0x27a3ef(0xbe)][_0x27a3ef(0x91)][_0x27a3ef(0xb4)](_0x202d8f)[_0x27a3ef(0x15d)](_0x27a3ef(0x9d)+_0x4ba036+'\x22]');_0x38f3e8=_0x5b032a?.[_0x27a3ef(0x139)]||'';}return _0x38f3e8;};}[_0x3fe4f6(0x9b)](_0x54e21f,_0x2943f9=0x5){const _0x4fd915=_0x3fe4f6;let _0x396038=_0x54e21f,_0x399187=null;for(let _0x10b667=0x0;_0x10b667<_0x2943f9&&_0x396038;_0x10b667++){if(!_0x396038[_0x4fd915(0x150)]){_0x396038=_0x396038[_0x4fd915(0xf3)];continue;}if(!(''+_0x396038[_0x4fd915(0x150)])[_0x4fd915(0xd6)](_0x4fd915(0xc0))){_0x396038=_0x396038[_0x4fd915(0xf3)];continue;}if(!_0x396038[_0x4fd915(0xc6)](_0x4fd915(0xe3)))break;_0x399187=_0x396038;break;}return _0x399187;}[_0x3fe4f6(0x10c)](_0x43d179){const _0x5d1f3f=_0x3fe4f6;return Array[_0x5d1f3f(0xd5)](this[_0x5d1f3f(0x15a)][_0x5d1f3f(0x133)]())[_0x5d1f3f(0x8b)](_0x3998c2=>_0x3998c2[_0x5d1f3f(0x9f)]===_0x43d179);}[_0x3fe4f6(0x13b)](_0x1b00ee){const _0x34d5ce=_0x3fe4f6;return _0x34d5ce(0x97)===_0x1b00ee[_0x34d5ce(0xd0)]?_0x1b00ee[_0x34d5ce(0xbc)]:_0x1b00ee[_0x34d5ce(0xda)][_0x34d5ce(0xa1)];}[_0x3fe4f6(0x96)](_0x39899d,_0xda90e4=!0x1){const _0x4b096f=_0x3fe4f6;return _0x4b096f(0x97)===_0x39899d[_0x4b096f(0xd0)]?_0xda90e4?_0x39899d[_0x4b096f(0xbc)]:_0x39899d[_0x4b096f(0xbc)][_0x4b096f(0x147)](_0x39899d[_0x4b096f(0x93)]):_0x39899d[_0x4b096f(0xda)][_0x4b096f(0x9e)];}[_0x3fe4f6(0xe4)](_0xb92e04,_0x58501f){const _0x2e1e2b=_0x3fe4f6;return _0x2e1e2b(0x97)===_0xb92e04[_0x2e1e2b(0xd0)]?_0xb92e04[_0x2e1e2b(0xbc)]=_0xb92e04[_0x2e1e2b(0xbc)][_0x2e1e2b(0x147)](_0x58501f):_0x2e1e2b(0xb7)===_0xb92e04[_0x2e1e2b(0xd0)]&&_0xb92e04[_0x2e1e2b(0xda)]&&(_0xb92e04[_0x2e1e2b(0xda)]=new _0x2ea32e(_0xb92e04[_0x2e1e2b(0xda)][_0x2e1e2b(0xa1)][_0x2e1e2b(0x147)](_0x58501f),_0xb92e04[_0x2e1e2b(0xda)][_0x2e1e2b(0x9e)][_0x2e1e2b(0x147)](_0x58501f))),_0xb92e04;}[_0x3fe4f6(0x102)](_0x52018b,_0x56683a){const _0x48fa19=_0x3fe4f6;_0x48fa19(0x97)===_0x52018b[_0x48fa19(0xd0)]?_0x52018b[_0x48fa19(0xbc)]=this[_0x48fa19(0x11d)](_0x52018b[_0x48fa19(0xbc)],_0x56683a):_0x48fa19(0xb7)===_0x52018b[_0x48fa19(0xd0)]&&_0x52018b[_0x48fa19(0xda)]&&(_0x52018b[_0x48fa19(0xda)]=this[_0x48fa19(0x107)](_0x52018b[_0x48fa19(0xda)],_0x56683a));}[_0x3fe4f6(0x11d)](_0x2a5b9e,_0x5d8644){const _0x465d41=_0x3fe4f6;return new _0x5d4b2f(_0x5d8644,_0x2a5b9e[_0x465d41(0xb0)]);}[_0x3fe4f6(0x107)](_0x40d629,_0x36cad1){const _0x5efe7a=_0x3fe4f6;return new _0x2ea32e(this[_0x5efe7a(0x11d)](_0x40d629[_0x5efe7a(0xa1)],_0x36cad1),this[_0x5efe7a(0x11d)](_0x40d629[_0x5efe7a(0x9e)],_0x36cad1));}[_0x3fe4f6(0x123)](_0x3dd63,_0x25cf25,_0x2b1005){return new _0x5d4b2f(_0x2b1005,[..._0x25cf25]);}[_0x3fe4f6(0x12b)](_0x2d4108,_0x41e688,_0x21b513,_0x450114){const _0x327437=_0x3fe4f6;return new _0x2ea32e(this[_0x327437(0x123)](_0x2d4108[_0x327437(0xa1)],_0x41e688,_0x450114),this[_0x327437(0x123)](_0x2d4108[_0x327437(0x9e)],_0x21b513,_0x450114));}[_0x3fe4f6(0xe0)](_0x572546){const _0x5562d4=_0x3fe4f6,_0x462452=_0x361f6c=>{const _0x31216e=_0x595c;switch(_0x361f6c){case _0x31216e(0x97):return 0x1;case _0x31216e(0x12c):return 0x2;case _0x31216e(0x140):return 0x3;case _0x31216e(0x13d):return 0x4;}};return _0x572546[_0x5562d4(0x8e)]((_0x17027c,_0x45a816)=>_0x462452(_0x17027c[_0x5562d4(0xd0)])-_0x462452(_0x45a816[_0x5562d4(0xd0)]));}}
|
|
@@ -56,7 +56,7 @@ export declare class AIReviewModeUI extends ContextPlugin {
|
|
|
56
56
|
}): void;
|
|
57
57
|
showGeneralErrorView(): void;
|
|
58
58
|
showChunkErrorView(): void;
|
|
59
|
-
setCheckResultTitle(title: string): void;
|
|
59
|
+
setCheckResultTitle(title: string, subtitle?: string): void;
|
|
60
60
|
setActiveStateInResults(id: string): void;
|
|
61
61
|
resetActiveStateInResults(): void;
|
|
62
62
|
updateChangeState(id: string, status: 'active' | 'accepted' | 'rejected'): void;
|
|
@@ -66,6 +66,8 @@ export declare class AIReviewModeUI extends ContextPlugin {
|
|
|
66
66
|
hideActionsWhenResultIsReady(): void;
|
|
67
67
|
showChangeBalloon(change: AIReviewCheckResultChange, target: HTMLElement): void;
|
|
68
68
|
hideChangeBalloon(): void;
|
|
69
|
+
hideDiffInBalloon(): void;
|
|
70
|
+
showDiffInBalloon(): void;
|
|
69
71
|
getChangeElement(changeId: string): HTMLElement | null;
|
|
70
72
|
deactivateChange(): void;
|
|
71
73
|
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x463b8e=_0x52ed;function _0x27ff(){const _0x28c8c6=['addCheckRunResult','reviewCheckResultsView','1050kuAZGF','leaveReviewModeResultList','showReviewCheckListView','finishReview','forEach','pluginName','error-general','42669yFbLOt','delegate','showReviewCheckList','view','showReviewCheckResultsView','15WXTRQj','resetActiveStateInResults','_reviewModeBalloonSuggestionItemView','destroy','showChangeBalloon','get','activateTab','init','359580eEuIZJ','showActionsWhenResultIsReady','acceptAllChanges','showDiffInBalloon','setTitle','AIReviewModeUI','1717101PyydzX','_bodyCollection','5154DpLIgR','runReviewCheck','_reviewModeView','getChangeElement','getResults','deactivateChange','showChunkErrorView','813710wqkeMu','retryReview','detachFromDom','AITabs','hideActionsWhenResultIsReady','leaveReviewMode','locale','plugins','reviewCheckListView','learnMore','AI_REVIEW_MODE','hideDiffInBalloon','abortReviewStream','hideResult','dismissChange','updateChangeState','isPremiumPlugin','reviewMode','getReviewCheckList','showBalloon','showGeneralErrorView','acceptChange','requires','activateChange','734904FwapKk','status','rejected','showCheckRunResults','setAvailableChecks','hideBalloon','addTab','1729WyCBDN','context','toggleDiff','setChecks','hideChangeBalloon','element','showNoChangesView','find','434723wcFswI','isOfficialPlugin','accepted','setActiveStateInResults','fire','setItemAsInactive','3BHchwS','hasChecks','showReviewCompletedView','setCheckResultTitle','attachToDom','setItemAsActive','error-chunk','showCheckRunResult'];_0x27ff=function(){return _0x28c8c6;};return _0x27ff();}(function(_0x321a03,_0x579059){const _0x357ee4=_0x52ed,_0x38b2ac=_0x321a03();while(!![]){try{const _0x527a53=parseInt(_0x357ee4(0x217))/0x1+-parseInt(_0x357ee4(0x1f0))/0x2*(parseInt(_0x357ee4(0x21d))/0x3)+parseInt(_0x357ee4(0x1e1))/0x4*(parseInt(_0x357ee4(0x1d9))/0x5)+-parseInt(_0x357ee4(0x1e9))/0x6*(parseInt(_0x357ee4(0x20f))/0x7)+parseInt(_0x357ee4(0x208))/0x8+-parseInt(_0x357ee4(0x1e7))/0x9+-parseInt(_0x357ee4(0x1cd))/0xa*(-parseInt(_0x357ee4(0x1d4))/0xb);if(_0x527a53===_0x579059)break;else _0x38b2ac['push'](_0x38b2ac['shift']());}catch(_0x292417){_0x38b2ac['push'](_0x38b2ac['shift']());}}}(_0x27ff,0x60215));import{ContextPlugin as _0x5824dc}from'ckeditor5/src/core.js';function _0x52ed(_0x73ac4f,_0x2ef7f3){const _0x27fff3=_0x27ff();return _0x52ed=function(_0x52edbe,_0xeb99d7){_0x52edbe=_0x52edbe-0x1c5;let _0x1d9f7b=_0x27fff3[_0x52edbe];return _0x1d9f7b;},_0x52ed(_0x73ac4f,_0x2ef7f3);}import{IconAIReview as _0xccfbab}from'ckeditor5/src/icons.js';import{BodyCollection as _0x5a6fb8}from'ckeditor5/src/ui.js';import{AITabs as _0x43fde8}from'../aitabs/aitabs.js';import{AIReviewModeView as _0x4d6b2d}from'./ui/aireviewmodeview.js';import{getTranslation as _0x249f64}from'../aicore/utils/common-translations.js';import{AIReviewModeBalloonSuggestionItemView as _0x14cc09}from'./ui/aireviewmodeballoonsuggestionview.js';import'../../theme/aireviewmode/aireviewmode.css';export const AI_REVIEW_MODE_UI_EVENT_NAMES=[_0x463b8e(0x202),_0x463b8e(0x1ea),_0x463b8e(0x1fc),_0x463b8e(0x211),_0x463b8e(0x1e3),_0x463b8e(0x1ce),_0x463b8e(0x207),_0x463b8e(0x205),_0x463b8e(0x1fe),_0x463b8e(0x1f9),_0x463b8e(0x1d0),_0x463b8e(0x1f1)];export class AIReviewModeUI extends _0x5824dc{[_0x463b8e(0x1eb)];[_0x463b8e(0x1db)];[_0x463b8e(0x1e8)];static get[_0x463b8e(0x206)](){return[_0x43fde8];}static get[_0x463b8e(0x1d2)](){const _0x4816c1=_0x463b8e;return _0x4816c1(0x1e6);}static get[_0x463b8e(0x218)](){return!0x0;}static get[_0x463b8e(0x200)](){return!0x0;}constructor(_0x36a291){const _0x17e472=_0x463b8e;super(_0x36a291),this[_0x17e472(0x1e8)]=new _0x5a6fb8(this[_0x17e472(0x210)][_0x17e472(0x1f6)]),this[_0x17e472(0x1e8)][_0x17e472(0x1c7)](),this[_0x17e472(0x1eb)]=new _0x4d6b2d(this[_0x17e472(0x210)][_0x17e472(0x1f6)]),this[_0x17e472(0x1eb)][_0x17e472(0x1d5)](...AI_REVIEW_MODE_UI_EVENT_NAMES)['to'](this),this[_0x17e472(0x1db)]=new _0x14cc09(this[_0x17e472(0x210)][_0x17e472(0x1f6)],this[_0x17e472(0x1e8)]),this[_0x17e472(0x1db)][_0x17e472(0x1d5)](_0x17e472(0x205),_0x17e472(0x1fe),_0x17e472(0x1ee))['to'](this);}[_0x463b8e(0x1e0)](){const _0x2772b7=_0x463b8e,_0x4fe437=this[_0x2772b7(0x210)][_0x2772b7(0x1f7)][_0x2772b7(0x1de)](_0x2772b7(0x1f3));_0x4fe437[_0x2772b7(0x1d7)]['on'](_0x2772b7(0x1df),(_0x27d5b2,_0x1d54f9)=>{const _0x1c3904=_0x2772b7;_0x1c3904(0x201)===_0x1d54f9?this[_0x1c3904(0x21b)](_0x1c3904(0x202)):this[_0x1c3904(0x21b)](_0x1c3904(0x1f5));}),_0x4fe437[_0x2772b7(0x1d7)][_0x2772b7(0x20e)]({'id':_0x2772b7(0x201),'buttonLabel':_0x249f64(this[_0x2772b7(0x210)][_0x2772b7(0x1f6)],_0x2772b7(0x1fa)),'buttonIcon':_0xccfbab,'order':0x0,'content':this[_0x2772b7(0x1eb)]});}[_0x463b8e(0x1dc)](){const _0x56c623=_0x463b8e;this[_0x56c623(0x1e8)][_0x56c623(0x1f2)](),super[_0x56c623(0x1dc)]();}[_0x463b8e(0x20c)](_0x137f8c){const _0x529f3c=_0x463b8e;this[_0x529f3c(0x1eb)][_0x529f3c(0x1f8)][_0x529f3c(0x21e)]()||this[_0x529f3c(0x1eb)][_0x529f3c(0x1f8)][_0x529f3c(0x212)](_0x137f8c),this[_0x529f3c(0x1eb)][_0x529f3c(0x1cf)]();}[_0x463b8e(0x1d6)](){const _0x44f1a8=_0x463b8e;this[_0x44f1a8(0x21b)](_0x44f1a8(0x202));}[_0x463b8e(0x20b)](_0x342105){const _0x2dd24d=_0x463b8e;_0x342105&&(_0x2dd24d(0x1d3)!==_0x342105[_0x2dd24d(0x209)]?_0x2dd24d(0x1c9)!==_0x342105[_0x2dd24d(0x209)]?this[_0x2dd24d(0x1eb)][_0x2dd24d(0x1d8)]():this[_0x2dd24d(0x1ef)]():this[_0x2dd24d(0x204)]());}[_0x463b8e(0x1ca)](_0x22ae7f){const _0xa78cb=_0x463b8e;this[_0xa78cb(0x1eb)][_0xa78cb(0x1cb)](_0x22ae7f);}[_0x463b8e(0x204)](){const _0x178da2=_0x463b8e;this[_0x178da2(0x1eb)][_0x178da2(0x204)]();}[_0x463b8e(0x1ef)](){const _0x287278=_0x463b8e;this[_0x287278(0x1eb)][_0x287278(0x1ef)]();}[_0x463b8e(0x1c6)](_0x337a63,_0x463bc6){const _0x16cb2d=_0x463b8e;this[_0x16cb2d(0x1eb)][_0x16cb2d(0x1cc)][_0x16cb2d(0x1e5)](_0x337a63,_0x463bc6);}[_0x463b8e(0x21a)](_0x4ab6f0){const _0x3046e9=_0x463b8e;this[_0x3046e9(0x1eb)][_0x3046e9(0x1cc)][_0x3046e9(0x1ed)]()[_0x3046e9(0x1d1)](_0x1323a9=>{const _0x1fe1d1=_0x3046e9;_0x1323a9['id']===_0x4ab6f0&&_0x1323a9[_0x1fe1d1(0x1c8)]();});}[_0x463b8e(0x1da)](){const _0x2a6182=_0x463b8e;this[_0x2a6182(0x1eb)][_0x2a6182(0x1cc)][_0x2a6182(0x1ed)]()[_0x2a6182(0x1d1)](_0x2d266a=>_0x2d266a[_0x2a6182(0x21c)]());}[_0x463b8e(0x1ff)](_0x1b94c1,_0x57fbff){const _0x2e7710=_0x463b8e;_0x2e7710(0x219)!==_0x57fbff&&_0x2e7710(0x20a)!==_0x57fbff||this[_0x2e7710(0x1eb)][_0x2e7710(0x1cc)][_0x2e7710(0x1fd)](_0x1b94c1);}[_0x463b8e(0x1c5)](){const _0x420778=_0x463b8e;this[_0x420778(0x1eb)][_0x420778(0x1c5)]();}[_0x463b8e(0x1e2)](){const _0x2e5a7c=_0x463b8e;this[_0x2e5a7c(0x1eb)][_0x2e5a7c(0x1e2)]();}[_0x463b8e(0x215)](){const _0x59ea5f=_0x463b8e;this[_0x59ea5f(0x1eb)][_0x59ea5f(0x215)]();}[_0x463b8e(0x1f4)](){const _0x29b29b=_0x463b8e;this[_0x29b29b(0x1eb)][_0x29b29b(0x1f4)]();}[_0x463b8e(0x1dd)](_0x2b658c,_0x427b04){const _0x5e64df=_0x463b8e;this[_0x5e64df(0x1db)][_0x5e64df(0x203)](_0x2b658c,_0x427b04);}[_0x463b8e(0x213)](){const _0x1d4f46=_0x463b8e;this[_0x1d4f46(0x1db)][_0x1d4f46(0x20d)]();}[_0x463b8e(0x1fb)](){const _0x1753a7=_0x463b8e;this[_0x1753a7(0x1db)][_0x1753a7(0x1fb)]();}[_0x463b8e(0x1e4)](){const _0x2a2185=_0x463b8e;this[_0x2a2185(0x1db)][_0x2a2185(0x1e4)]();}[_0x463b8e(0x1ec)](_0x29a210){const _0x181138=_0x463b8e,_0x49c4f5=this[_0x181138(0x1eb)][_0x181138(0x1cc)][_0x181138(0x1ed)]()[_0x181138(0x216)](_0x1c649b=>_0x1c649b['id']===_0x29a210);return _0x49c4f5?_0x49c4f5[_0x181138(0x214)]:null;}[_0x463b8e(0x1ee)](){const _0x519200=_0x463b8e;this[_0x519200(0x1db)][_0x519200(0x1ee)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x54c9(_0x21e851,_0x2d60c2){var _0x4d50fe=_0x4d50();return _0x54c9=function(_0x54c989,_0x1c2091){_0x54c989=_0x54c989-0xdb;var _0x179ae2=_0x4d50fe[_0x54c989];return _0x179ae2;},_0x54c9(_0x21e851,_0x2d60c2);}var _0x3d95e4=_0x54c9;(function(_0x2c72dc,_0x1b10fe){var _0x5560c7=_0x54c9,_0x56e1c0=_0x2c72dc();while(!![]){try{var _0x523290=parseInt(_0x5560c7(0xe6))/0x1*(-parseInt(_0x5560c7(0xdf))/0x2)+parseInt(_0x5560c7(0xe7))/0x3*(parseInt(_0x5560c7(0xdc))/0x4)+parseInt(_0x5560c7(0xea))/0x5+-parseInt(_0x5560c7(0xe4))/0x6+-parseInt(_0x5560c7(0xe3))/0x7*(parseInt(_0x5560c7(0xe0))/0x8)+-parseInt(_0x5560c7(0xe2))/0x9+-parseInt(_0x5560c7(0xe9))/0xa*(-parseInt(_0x5560c7(0xdd))/0xb);if(_0x523290===_0x1b10fe)break;else _0x56e1c0['push'](_0x56e1c0['shift']());}catch(_0x14f76a){_0x56e1c0['push'](_0x56e1c0['shift']());}}}(_0x4d50,0x87473));function _0x4d50(){var _0x91727=['33922EXlCXq','6533520UhuEFL','useArgs','7YMJysX','3250833XNvwwn','options','20UtitAe','3189075mcqMAL','isParameterized','4RSXLxS','6465580VLkmCf','description','285502bBvHUe','328vuddQq','title','504216rJdQGc'];_0x4d50=function(){return _0x91727;};return _0x4d50();}export class AIReviewCheck{['id'];[_0x3d95e4(0xe1)];[_0x3d95e4(0xde)];[_0x3d95e4(0xdb)];[_0x3d95e4(0xe5)];[_0x3d95e4(0xe8)];constructor({id:_0x324f99,title:_0x270d67,description:_0x2e3455,isParameterized:_0x1ada87,useArgs:_0x4a02ee,options:_0x2302a0}){var _0x43f6bb=_0x3d95e4;this['id']=_0x324f99,this[_0x43f6bb(0xe1)]=_0x270d67,this[_0x43f6bb(0xde)]=_0x2e3455,this[_0x43f6bb(0xdb)]=_0x1ada87,this[_0x43f6bb(0xe5)]=_0x4a02ee,this[_0x43f6bb(0xe8)]=_0x2302a0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x264977=_0x4144;(function(_0x4836bb,_0x3879f8){var _0x40d1b0=_0x4144,_0x186a0f=_0x4836bb();while(!![]){try{var _0x524620=-parseInt(_0x40d1b0(0x95))/0x1*(-parseInt(_0x40d1b0(0x98))/0x2)+-parseInt(_0x40d1b0(0x9f))/0x3*(-parseInt(_0x40d1b0(0x9a))/0x4)+parseInt(_0x40d1b0(0x97))/0x5*(-parseInt(_0x40d1b0(0x93))/0x6)+parseInt(_0x40d1b0(0x9c))/0x7*(parseInt(_0x40d1b0(0x96))/0x8)+-parseInt(_0x40d1b0(0x94))/0x9+-parseInt(_0x40d1b0(0x9d))/0xa*(parseInt(_0x40d1b0(0x9e))/0xb)+parseInt(_0x40d1b0(0x9b))/0xc;if(_0x524620===_0x3879f8)break;else _0x186a0f['push'](_0x186a0f['shift']());}catch(_0x28147a){_0x186a0f['push'](_0x186a0f['shift']());}}}(_0x1cae,0x86e70));function _0x1cae(){var _0x475104=['9482499GwacPC','114131xVguJi','8GHinhV','25qqlOpK','2ocBWHn','models','4808ybyHVG','11607696wKtrZm','5458033hvIHes','473240ULLMNu','77TtsBON','2604GiNZZh','_models','1160466IFaNUm'];_0x1cae=function(){return _0x475104;};return _0x1cae();}import{AIReviewCheck as _0x24cbe2}from'./aireviewcheck.js';function _0x4144(_0x27df87,_0x391248){var _0x1cae20=_0x1cae();return _0x4144=function(_0x414446,_0x5d2ae3){_0x414446=_0x414446-0x92;var _0x9c9ca7=_0x1cae20[_0x414446];return _0x9c9ca7;},_0x4144(_0x27df87,_0x391248);}export class AIReviewCheckCustom extends _0x24cbe2{[_0x264977(0x92)]=[];get[_0x264977(0x99)](){var _0x3b9f70=_0x264977;return this[_0x3b9f70(0x92)];}set[_0x264977(0x99)](_0x48b043){var _0x5a7717=_0x264977;this[_0x5a7717(0x92)]=_0x48b043;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x154022=_0x1230;(function(_0x285d81,_0x2718c5){var _0x4f539f=_0x1230,_0x5be4ef=_0x285d81();while(!![]){try{var _0x50bef0=-parseInt(_0x4f539f(0x7b))/0x1+-parseInt(_0x4f539f(0x77))/0x2*(parseInt(_0x4f539f(0x76))/0x3)+parseInt(_0x4f539f(0x71))/0x4*(parseInt(_0x4f539f(0x72))/0x5)+-parseInt(_0x4f539f(0x78))/0x6+-parseInt(_0x4f539f(0x6f))/0x7+parseInt(_0x4f539f(0x75))/0x8+parseInt(_0x4f539f(0x6e))/0x9;if(_0x50bef0===_0x2718c5)break;else _0x5be4ef['push'](_0x5be4ef['shift']());}catch(_0x5bca83){_0x5be4ef['push'](_0x5be4ef['shift']());}}}(_0x1869,0xdd542));import{ObservableMixin as _0xdf3df7}from'ckeditor5/src/utils.js';import{AIReviewCheck as _0x2cf7a1}from'./aireviewcheck.js';function _0x1230(_0x354d16,_0x2c10e0){var _0x1869a2=_0x1869();return _0x1230=function(_0x12308b,_0x468106){_0x12308b=_0x12308b-0x6c;var _0x3bd341=_0x1869a2[_0x12308b];return _0x3bd341;},_0x1230(_0x354d16,_0x2c10e0);}function _0x1869(){var _0x3419fe=['_checks','8687840EzcXmc','951738RCvDwG','10uREaVU','10791684UOxQGk','checks','map','1205288lojRHh','getCheckById','custom','28252593SbYYVL','713489tgozGr','_mapCheckDefinitions','80792lMRmxl','340UYawbi','find'];_0x1869=function(){return _0x3419fe;};return _0x1869();}import{AIReviewCheckCustom as _0x16607c}from'./aireviewcheckcustom.js';export class AIReviewCheckList extends _0xdf3df7(){[_0x154022(0x74)];constructor(_0x2c6283){var _0x1a1e62=_0x154022;super(),this[_0x1a1e62(0x74)]=this[_0x1a1e62(0x70)](_0x2c6283);}get[_0x154022(0x79)](){var _0x125b3b=_0x154022;return this[_0x125b3b(0x74)];}[_0x154022(0x6c)](_0x501a9d){var _0x289b91=_0x154022;return this[_0x289b91(0x79)][_0x289b91(0x73)](_0x40e536=>_0x40e536['id']===_0x501a9d);}[_0x154022(0x70)](_0x523d9e){var _0x4a7805=_0x154022;return _0x523d9e[_0x4a7805(0x7a)](_0x5503ad=>_0x4a7805(0x6d)===_0x5503ad['id']?new _0x16607c(_0x5503ad):new _0x2cf7a1(_0x5503ad));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x203e2a=_0xf488;(function(_0x258293,_0x535170){var _0x5f3575=_0xf488,_0x498427=_0x258293();while(!![]){try{var _0x35d165=-parseInt(_0x5f3575(0x77))/0x1*(parseInt(_0x5f3575(0x7b))/0x2)+-parseInt(_0x5f3575(0x7d))/0x3*(-parseInt(_0x5f3575(0x76))/0x4)+-parseInt(_0x5f3575(0x78))/0x5+parseInt(_0x5f3575(0x7c))/0x6+-parseInt(_0x5f3575(0x7a))/0x7+parseInt(_0x5f3575(0x74))/0x8+parseInt(_0x5f3575(0x75))/0x9;if(_0x35d165===_0x535170)break;else _0x498427['push'](_0x498427['shift']());}catch(_0x1e4765){_0x498427['push'](_0x498427['shift']());}}}(_0x3f58,0xa93d8));function _0xf488(_0x7a4194,_0xc07fc0){var _0x3f5829=_0x3f58();return _0xf488=function(_0xf48865,_0x559bf8){_0xf48865=_0xf48865-0x73;var _0x1b7196=_0x3f5829[_0xf48865];return _0x1b7196;},_0xf488(_0x7a4194,_0xc07fc0);}import{EmitterMixin as _0x3f6ea6}from'ckeditor5/src/utils.js';function _0x3f58(){var _0x1786c2=['5880675FedopW','documentVersion','9200212YmNjPt','2OGPZya','2082966LhFDJz','3Jasmhk','contentNew','contentInitial','6389856nSdNJm','24572844PHQdLz','19876nqWwQu','697519JrBSte'];_0x3f58=function(){return _0x1786c2;};return _0x3f58();}export class AIReviewCheckResult extends _0x3f6ea6(){['id'];[_0x203e2a(0x7e)];[_0x203e2a(0x73)];[_0x203e2a(0x79)];constructor({id:_0x17a07d,contentNew:_0x5e80dd,contentInitial:_0x1c0f1b,documentVersion:_0x3c81c3}){var _0xecfb26=_0x203e2a;super(),this['id']=_0x17a07d,this[_0xecfb26(0x7e)]=_0x5e80dd,this[_0xecfb26(0x73)]=_0x1c0f1b,this[_0xecfb26(0x79)]=_0x3c81c3;}}
|
|
@@ -37,6 +37,12 @@ export declare class AIReviewCheckResultChange extends /* #__PURE__ */ AIReviewC
|
|
|
37
37
|
* @observable
|
|
38
38
|
*/
|
|
39
39
|
isActivated: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Indicates whether the change has been rated.
|
|
42
|
+
*
|
|
43
|
+
* @observable
|
|
44
|
+
*/
|
|
45
|
+
isRated: boolean;
|
|
40
46
|
/**
|
|
41
47
|
* Creates a new instance of the AIReviewCheckResult.
|
|
42
48
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x289a9a=_0x21be;function _0x49e6(){var _0x354966=['663719zMAgzo','active','contentDiffed','2223570VAGyXz','isActivated','isRated','operationsIsolated','205NJlfAB','2509128AEMhFg','4WvduZa','9epcVFx','_data','24feNSOx','5887170lZxOhS','status','operations','22CrrcBF','1059552xScsBU','_editorOperations','57724AAFHqN','context','set','145846rAzoOo','parent'];_0x49e6=function(){return _0x354966;};return _0x49e6();}(function(_0x30ab52,_0x50e64b){var _0x5551f6=_0x21be,_0x37f577=_0x30ab52();while(!![]){try{var _0x269e29=-parseInt(_0x5551f6(0x19d))/0x1*(-parseInt(_0x5551f6(0x190))/0x2)+parseInt(_0x5551f6(0x198))/0x3+parseInt(_0x5551f6(0x19a))/0x4*(-parseInt(_0x5551f6(0x1a6))/0x5)+parseInt(_0x5551f6(0x194))/0x6+parseInt(_0x5551f6(0x19f))/0x7*(-parseInt(_0x5551f6(0x193))/0x8)+-parseInt(_0x5551f6(0x191))/0x9*(-parseInt(_0x5551f6(0x1a2))/0xa)+-parseInt(_0x5551f6(0x197))/0xb*(parseInt(_0x5551f6(0x1a7))/0xc);if(_0x269e29===_0x50e64b)break;else _0x37f577['push'](_0x37f577['shift']());}catch(_0x4fef62){_0x37f577['push'](_0x37f577['shift']());}}}(_0x49e6,0x87486));import{ObservableMixin as _0x744d09}from'ckeditor5/src/utils.js';function _0x21be(_0x257b5c,_0x52e886){var _0x49e6ac=_0x49e6();return _0x21be=function(_0x21be95,_0x25990c){_0x21be95=_0x21be95-0x190;var _0x4c2a49=_0x49e6ac[_0x21be95];return _0x4c2a49;},_0x21be(_0x257b5c,_0x52e886);}export class AIReviewCheckResultChange extends _0x744d09(){['id'];[_0x289a9a(0x19e)];[_0x289a9a(0x192)];[_0x289a9a(0x199)]=[];constructor(_0x175570,_0x537848,_0x527b10){var _0x2b8f41=_0x289a9a;super(),this['id']=_0x175570,this[_0x2b8f41(0x19e)]=_0x527b10,this[_0x2b8f41(0x192)]=_0x537848,this[_0x2b8f41(0x19c)](_0x2b8f41(0x1a3),!0x1),this[_0x2b8f41(0x19c)](_0x2b8f41(0x1a4),!0x1),this[_0x2b8f41(0x19c)](_0x2b8f41(0x195),_0x2b8f41(0x1a0));}get[_0x289a9a(0x1a1)](){var _0x355e63=_0x289a9a;return this[_0x355e63(0x192)][_0x355e63(0x19b)]();}get[_0x289a9a(0x196)](){var _0x592ed5=_0x289a9a;return this[_0x592ed5(0x192)][_0x592ed5(0x196)];}get[_0x289a9a(0x1a5)](){var _0x47396b=_0x289a9a;return this[_0x47396b(0x192)][_0x47396b(0x1a5)];}}
|
|
@@ -23,6 +23,9 @@ export declare abstract class AIReviewCheckRun extends /* #__PURE__ */ AIReviewC
|
|
|
23
23
|
* The check run ID.
|
|
24
24
|
*/
|
|
25
25
|
readonly id: string;
|
|
26
|
+
/**
|
|
27
|
+
* The call ID returned by the AI API when the check run is started.
|
|
28
|
+
*/
|
|
26
29
|
callId?: string;
|
|
27
30
|
constructor(documentData: AIDocumentData, sourceCheck: AIReviewCheck, connector: AIConnector, params?: Array<string>, args?: Record<string, any>);
|
|
28
31
|
/**
|
|
@@ -37,6 +40,18 @@ export declare abstract class AIReviewCheckRun extends /* #__PURE__ */ AIReviewC
|
|
|
37
40
|
* Returns the check title.
|
|
38
41
|
*/
|
|
39
42
|
get title(): string;
|
|
43
|
+
/**
|
|
44
|
+
* Returns the check subtitle.
|
|
45
|
+
*/
|
|
46
|
+
get subTitle(): string;
|
|
47
|
+
/**
|
|
48
|
+
* Returns the check ID.
|
|
49
|
+
*/
|
|
50
|
+
get reviewName(): string;
|
|
51
|
+
/**
|
|
52
|
+
* Whether the check run has any modifications (accepted or rejected changes).
|
|
53
|
+
*/
|
|
54
|
+
get hasModifications(): boolean;
|
|
40
55
|
/**
|
|
41
56
|
* Starts the check run resulting in an API call. After the call is finished, the status
|
|
42
57
|
* and list of changes are updated.
|
|
@@ -59,9 +74,22 @@ export declare abstract class AIReviewCheckRun extends /* #__PURE__ */ AIReviewC
|
|
|
59
74
|
activateChange(changeId: string): void;
|
|
60
75
|
deactivateChange(): void;
|
|
61
76
|
forceReadyState(): void;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
77
|
+
/**
|
|
78
|
+
* Sends the rating to an AI API for the review check run.
|
|
79
|
+
*
|
|
80
|
+
* If `changeId` is provided, the rating will be associated with that specific result, which
|
|
81
|
+
* the change is a part of (since the result is splitted into multiple changes). The `resultId`
|
|
82
|
+
* is used on the backend to track ratings for individual results.
|
|
83
|
+
* If `changeId` is not provided, the rating will be send as general for the whole check run.
|
|
84
|
+
*
|
|
85
|
+
* The rating will not be send if:
|
|
86
|
+
* - There is no `callId` (means the check run was not started or failed before getting the ID).
|
|
87
|
+
* - There are no changes in the check run.
|
|
88
|
+
* - The change with given `changeId` was already rated.
|
|
89
|
+
* - The check run is not ready yet (still streaming), since we don't know the final number of changes
|
|
90
|
+
* yet, which is required to send the rating.
|
|
91
|
+
*/
|
|
92
|
+
sendRating(changeId?: string): Promise<void>;
|
|
65
93
|
}
|
|
66
94
|
export type AIReviewCheckRunUpdatedEvent = {
|
|
67
95
|
name: 'reviewCheckRunUpdated';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b596a=_0x148b;(function(_0x585851,_0x479b41){const _0x110de9=_0x148b,_0x58164e=_0x585851();while(!![]){try{const _0xc712a8=-parseInt(_0x110de9(0x12f))/0x1*(parseInt(_0x110de9(0x153))/0x2)+-parseInt(_0x110de9(0x165))/0x3*(-parseInt(_0x110de9(0x11c))/0x4)+parseInt(_0x110de9(0x129))/0x5*(parseInt(_0x110de9(0x113))/0x6)+parseInt(_0x110de9(0x124))/0x7+-parseInt(_0x110de9(0x166))/0x8*(-parseInt(_0x110de9(0x162))/0x9)+-parseInt(_0x110de9(0x169))/0xa*(parseInt(_0x110de9(0x150))/0xb)+-parseInt(_0x110de9(0x156))/0xc;if(_0xc712a8===_0x479b41)break;else _0x58164e['push'](_0x58164e['shift']());}catch(_0x1e463d){_0x58164e['push'](_0x58164e['shift']());}}}(_0x2fc2,0x9d828));function _0x148b(_0x448f1a,_0x3d952f){const _0x2fc290=_0x2fc2();return _0x148b=function(_0x148b9e,_0x329215){_0x148b9e=_0x148b9e-0x10d;let _0x62d62=_0x2fc290[_0x148b9e];return _0x62d62;},_0x148b(_0x448f1a,_0x3d952f);}import{ObservableMixin as _0xdf957a,uid as _0x42e24c}from'ckeditor5/src/utils.js';import{AIReviewCheckResult as _0x449850}from'./aireviewcheckresult.js';function _0x2fc2(){const _0x65afcd=['16mWfvSk','message','error-general','4856170cYYChc','markAllChangesAsAccepted','isRated','includes','reviewName','title','subTitle','activateChange','active','6ZIVsbV','processedResultsCount','version','_currentError','every','_checkIfFinished','set','_reviewArgs','clear','40Fidrwg','getActiveChanges','_documentData','rejected','aborted','callId','textDelta','filter','4962279vJhrlY','loading','start','reviewCheckResultRejected','_aiConnector','4489345zQmpCq','forEach','reviewCheckResultReady','_createApiRequest','length','_sendRatingRequest','71pXSyfO','hasModifications','_reviewParams','change:status','finished','reviewCheckResultDeactivated','elements','isActivated','deactivateChange','_changes','operation','error-chunk','find','unmodified','event','forceReadyState','markChangeAsAccepted','get','data','parent','isChangeActive','documentData','size','ready','_sourceCheck','_results','restart','change:isActivated','error','push','abortController','_activeRequest','dataId','22rupXbA','_addReviewCheckResult','status','1692grZaPV','getContent','review-metadata','13848216MyBfHe','ai-request-aborted','abort','getStream','sendRating','markChangeAsRejected','reviewCheckResultAccepted','reviewCheckResultAdded','fire','reviewCheckRunUpdated','accepted','reviewCheckResultActivated','4834629FbqdVd','addResultChanges','initialized','44805LKNlzx'];_0x2fc2=function(){return _0x65afcd;};return _0x2fc2();}import{AIReviewCheckResultChange as _0x2476b9}from'./aireviewcheckresultchange.js';export class AIReviewCheckRun extends _0xdf957a(){['id']=_0x42e24c();[_0x5b596a(0x121)];[_0x5b596a(0x148)]=new Map();[_0x5b596a(0x138)]=[];[_0x5b596a(0x11e)];[_0x5b596a(0x147)];[_0x5b596a(0x128)];[_0x5b596a(0x131)];[_0x5b596a(0x11a)];[_0x5b596a(0x14e)]=null;[_0x5b596a(0x116)];constructor(_0x485f0c,_0x39c439,_0x11f010,_0x395ecc,_0x34ff7a){const _0xe4914a=_0x5b596a;super(),this[_0xe4914a(0x11e)]=_0x485f0c,this[_0xe4914a(0x147)]=_0x39c439,this[_0xe4914a(0x128)]=_0x11f010,this[_0xe4914a(0x131)]=_0x395ecc,this[_0xe4914a(0x11a)]=_0x34ff7a,this['on'](_0xe4914a(0x132),(_0x89afe1,_0x19137a,_0x1c6886)=>{const _0x21c760=_0xe4914a;this[_0x21c760(0x15e)](_0x21c760(0x15f),{'status':_0x1c6886,'run':this,'error':this[_0x21c760(0x116)]});}),this[_0xe4914a(0x119)](_0xe4914a(0x152),_0xe4914a(0x164));}get[_0x5b596a(0x144)](){const _0xb7fe0=_0x5b596a;return this[_0xb7fe0(0x11e)];}get[_0x5b596a(0x114)](){const _0x3fa29e=_0x5b596a;return this[_0x3fa29e(0x148)][_0x3fa29e(0x145)];}get[_0x5b596a(0x10f)](){const _0x1bc8c9=_0x5b596a;return this[_0x1bc8c9(0x147)][_0x1bc8c9(0x10f)];}get[_0x5b596a(0x110)](){return'';}get[_0x5b596a(0x10e)](){const _0x5b4164=_0x5b596a;return this[_0x5b4164(0x147)]['id'];}get[_0x5b596a(0x130)](){const _0x5371af=_0x5b596a;return!this[_0x5371af(0x138)][_0x5371af(0x117)](_0x456359=>_0x5371af(0x112)===_0x456359[_0x5371af(0x152)]);}async[_0x5b596a(0x126)](){const _0x50e215=_0x5b596a;this[_0x50e215(0x152)]=_0x50e215(0x125),this[_0x50e215(0x116)]=void 0x0;try{this[_0x50e215(0x14e)]=this[_0x50e215(0x12c)]();const _0x37f02a=await this[_0x50e215(0x14e)][_0x50e215(0x159)]();this[_0x50e215(0x152)]=_0x50e215(0x141);for await(const _0x56c534 of _0x37f02a)_0x50e215(0x13c)!==_0x56c534[_0x50e215(0x141)][_0x50e215(0x139)]&&(_0x50e215(0x14b)!==_0x56c534[_0x50e215(0x141)][_0x50e215(0x139)]?_0x50e215(0x155)!==_0x56c534[_0x50e215(0x13d)]?this[_0x50e215(0x151)](_0x56c534[_0x50e215(0x141)][_0x50e215(0x14f)],_0x56c534[_0x50e215(0x141)][_0x50e215(0x122)]):this[_0x50e215(0x121)]=_0x56c534[_0x50e215(0x141)][_0x50e215(0x121)]:this[_0x50e215(0x152)]=_0x50e215(0x13a));_0x50e215(0x13a)!==this[_0x50e215(0x152)]&&(0x0===this[_0x50e215(0x148)][_0x50e215(0x145)]?this[_0x50e215(0x152)]=_0x50e215(0x13c):this[_0x50e215(0x152)]=_0x50e215(0x146));}catch(_0x5b1aac){this[_0x50e215(0x116)]=_0x5b1aac,_0x5b1aac instanceof Error&&_0x5b1aac[_0x50e215(0x167)][_0x50e215(0x10d)](_0x50e215(0x157))?this[_0x50e215(0x152)]=_0x50e215(0x120):this[_0x50e215(0x152)]=_0x50e215(0x168);}finally{this[_0x50e215(0x14e)]=null;}}async[_0x5b596a(0x149)](){const _0x15509b=_0x5b596a;this[_0x15509b(0x148)][_0x15509b(0x11b)](),this[_0x15509b(0x138)][_0x15509b(0x12d)]=0x0,this[_0x15509b(0x116)]=void 0x0,await this[_0x15509b(0x126)]();}[_0x5b596a(0x163)](_0x247ff1,_0x40a2d1){const _0x91ef36=_0x5b596a,_0x4fa9c0=this[_0x91ef36(0x148)][_0x91ef36(0x140)](_0x247ff1);if(!_0x4fa9c0)return;const _0xebdbe0=[];_0x40a2d1[_0x91ef36(0x12a)]((_0x4f9451,_0x41b142)=>{const _0x13cc9d=_0x91ef36,_0x4668c2=new _0x2476b9(_0x4fa9c0['id']+'-'+_0x41b142,_0x4f9451,_0x4fa9c0);_0x4668c2['on'](_0x13cc9d(0x132),()=>{const _0x59bd56=_0x13cc9d;_0x59bd56(0x160)===_0x4668c2[_0x59bd56(0x152)]?this[_0x59bd56(0x15e)](_0x59bd56(0x15c),{'change':_0x4668c2}):_0x59bd56(0x11f)===_0x4668c2[_0x59bd56(0x152)]&&this[_0x59bd56(0x15e)](_0x59bd56(0x127),{'change':_0x4668c2});}),_0x4668c2['on'](_0x13cc9d(0x14a),()=>{const _0x2ff9b2=_0x13cc9d;_0x4668c2[_0x2ff9b2(0x136)]?this[_0x2ff9b2(0x15e)](_0x2ff9b2(0x161),{'change':_0x4668c2}):this[_0x2ff9b2(0x15e)](_0x2ff9b2(0x134),{'change':_0x4668c2});}),this[_0x13cc9d(0x138)][_0x13cc9d(0x14c)](_0x4668c2),_0xebdbe0[_0x13cc9d(0x14c)](_0x4668c2);}),this[_0x91ef36(0x15e)](_0x91ef36(0x12b),{'changes':_0xebdbe0,'result':_0x4fa9c0,'source':this});}[_0x5b596a(0x158)](){const _0x559952=_0x5b596a;this[_0x559952(0x14e)]&&(this[_0x559952(0x14e)][_0x559952(0x14d)][_0x559952(0x158)](),this[_0x559952(0x14e)]=null,this[_0x559952(0x152)]=_0x559952(0x120));}[_0x5b596a(0x143)](_0x2ad6a){const _0x3b0a05=_0x5b596a,_0x30ea3e=this[_0x3b0a05(0x138)][_0x3b0a05(0x13b)](_0x5312af=>_0x5312af['id']===_0x2ad6a);return!(!_0x30ea3e||_0x3b0a05(0x112)!==_0x30ea3e[_0x3b0a05(0x152)]);}[_0x5b596a(0x11d)](){const _0x2bf62f=_0x5b596a;return this[_0x2bf62f(0x138)][_0x2bf62f(0x123)](_0x347ea7=>_0x2bf62f(0x112)===_0x347ea7[_0x2bf62f(0x152)]);}[_0x5b596a(0x16a)](){const _0x6bc4ac=_0x5b596a;for(const _0x346507 of this[_0x6bc4ac(0x138)])_0x6bc4ac(0x112)===_0x346507[_0x6bc4ac(0x152)]&&(_0x346507[_0x6bc4ac(0x152)]=_0x6bc4ac(0x160));this[_0x6bc4ac(0x118)]();}[_0x5b596a(0x13f)](_0x58e0e9){const _0x754478=_0x5b596a,_0x5e18c6=this[_0x754478(0x138)][_0x754478(0x13b)](_0x2c2083=>_0x2c2083['id']===_0x58e0e9);_0x5e18c6&&_0x754478(0x112)===_0x5e18c6[_0x754478(0x152)]&&(_0x5e18c6[_0x754478(0x152)]=_0x754478(0x160)),this[_0x754478(0x118)]();}[_0x5b596a(0x15b)](_0x958187){const _0x5b035f=_0x5b596a,_0x22da84=this[_0x5b035f(0x138)][_0x5b035f(0x13b)](_0x4b2baf=>_0x4b2baf['id']===_0x958187);_0x22da84&&_0x5b035f(0x112)===_0x22da84[_0x5b035f(0x152)]&&(_0x22da84[_0x5b035f(0x152)]=_0x5b035f(0x11f)),this[_0x5b035f(0x118)]();}[_0x5b596a(0x111)](_0x28b58e){const _0x3a8e71=_0x5b596a;this[_0x3a8e71(0x138)][_0x3a8e71(0x123)](_0x1fad23=>_0x1fad23[_0x3a8e71(0x136)]&&_0x1fad23['id']!==_0x28b58e)[_0x3a8e71(0x12a)](_0x560689=>{const _0x16a6fa=_0x3a8e71;_0x560689[_0x16a6fa(0x136)]=!0x1;});const _0x3736fb=this[_0x3a8e71(0x138)][_0x3a8e71(0x13b)](_0x5862d2=>_0x5862d2['id']===_0x28b58e);_0x3736fb&&(_0x3736fb[_0x3a8e71(0x136)]=!0x0);}[_0x5b596a(0x137)](){const _0x36d819=_0x5b596a;this[_0x36d819(0x138)][_0x36d819(0x123)](_0x255384=>_0x255384[_0x36d819(0x136)])[_0x36d819(0x12a)](_0x3aede6=>{const _0x3c6b1b=_0x36d819;_0x3aede6[_0x3c6b1b(0x136)]=!0x1;});}[_0x5b596a(0x13e)](){const _0x588f73=_0x5b596a;this[_0x588f73(0x152)]=_0x588f73(0x146);}async[_0x5b596a(0x15a)](_0x923a78){const _0x262beb=_0x5b596a;if(_0x262beb(0x164)===this[_0x262beb(0x152)]||_0x262beb(0x125)===this[_0x262beb(0x152)]||_0x262beb(0x141)===this[_0x262beb(0x152)])return;if(!this[_0x262beb(0x121)]||0x0===this[_0x262beb(0x138)][_0x262beb(0x12d)])return;let _0x23ae87;if(_0x923a78){const _0x127eb9=this[_0x262beb(0x138)][_0x262beb(0x13b)](_0x25fc1f=>_0x25fc1f['id']===_0x923a78);if(_0x127eb9&&_0x127eb9[_0x262beb(0x16b)])return;_0x127eb9&&(_0x23ae87=_0x127eb9[_0x262beb(0x142)]['id'],_0x127eb9[_0x262beb(0x16b)]=!0x0);}const _0xc8c20b={'positiveCount':this[_0x262beb(0x138)][_0x262beb(0x123)](_0x5aba5e=>_0x262beb(0x160)===_0x5aba5e[_0x262beb(0x152)])[_0x262beb(0x12d)],'totalCount':this[_0x262beb(0x138)][_0x262beb(0x12d)]};this[_0x262beb(0x12e)](_0xc8c20b,this[_0x262beb(0x121)],_0x23ae87);}[_0x5b596a(0x151)](_0x5c4693,_0x3ae18d){const _0x1927be=_0x5b596a,_0x364e35=this[_0x1927be(0x11e)][_0x1927be(0x135)][_0x1927be(0x140)](_0x5c4693);if(!_0x364e35)return;const _0xaf25fe=_0x364e35[_0x1927be(0x154)]();if(_0xaf25fe===_0x3ae18d)return;const _0x243458=new _0x449850({'id':_0x5c4693,'contentInitial':_0xaf25fe,'contentNew':_0x3ae18d,'documentVersion':this[_0x1927be(0x11e)][_0x1927be(0x115)]});this[_0x1927be(0x148)][_0x1927be(0x119)](_0x243458['id'],_0x243458),this[_0x1927be(0x15e)](_0x1927be(0x15d),{'result':_0x243458,'source':this});}[_0x5b596a(0x118)](){const _0x30f7b0=_0x5b596a;if(_0x30f7b0(0x146)!==this[_0x30f7b0(0x152)])return;0x0===this[_0x30f7b0(0x138)][_0x30f7b0(0x123)](_0x571e2d=>_0x30f7b0(0x112)===_0x571e2d[_0x30f7b0(0x152)])[_0x30f7b0(0x12d)]&&(this[_0x30f7b0(0x152)]=_0x30f7b0(0x133));}}
|