@ckeditor/ckeditor5-ai 47.7.0 → 47.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- 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/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/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.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/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- 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/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/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/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.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/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.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/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- 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/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c3c83=_0x2625;(function(_0x471002,_0x52d03c){const _0x58c873=_0x2625,_0x22fc65=_0x471002();while(!![]){try{const _0x2f67fb=-parseInt(_0x58c873(0xec))/0x1*(-parseInt(_0x58c873(0xd6))/0x2)+parseInt(_0x58c873(0xf7))/0x3*(parseInt(_0x58c873(0x112))/0x4)+parseInt(_0x58c873(0xee))/0x5*(parseInt(_0x58c873(0xed))/0x6)+-parseInt(_0x58c873(0xe5))/0x7*(-parseInt(_0x58c873(0xfb))/0x8)+-parseInt(_0x58c873(0x11f))/0x9*(parseInt(_0x58c873(0x101))/0xa)+-parseInt(_0x58c873(0xe6))/0xb*(-parseInt(_0x58c873(0x100))/0xc)+-parseInt(_0x58c873(0xd0))/0xd;if(_0x2f67fb===_0x52d03c)break;else _0x22fc65['push'](_0x22fc65['shift']());}catch(_0x2885be){_0x22fc65['push'](_0x22fc65['shift']());}}}(_0x3c7c,0xd6dcd));import{CKEditorError as _0x3dd36a,EmitterMixin as _0x4cdfdd,uid as _0x29bb63}from'ckeditor5/src/utils.js';import{AIReply as _0x50ba68}from'./aireply.js';function _0x3c7c(){const _0x4cb7a4=['stopListening','sendRequest','createReply','message-metadata','60aloEAP','14479890GRDCtR','resetWebSearchState','attributes','_isReasoning','mcp-tool-result','getReply','resetReasoningState','getDocumentContext','appendContent','type','replies','source','action-metadata','replyCreated','replyChangeGroupStateUpdated','destroy','textDelta','266796JYrJvz','event','start','getStream','editor','text','isStopped','webSearchFinished','fire','modification','data','conversation-title','web-search','9GxmyCe','_handleToolNotificationData','abortController','reasoningStarted','actionCallId','modification-delta','parse','webSearchStarted','_finalizeInteraction','replyContentUpdated','mcp-tool-notification','12876279bbseSJ','interactionCreated','reasoningFinished','abort','_handleToolResultData','toolName','83396ILVxcT','push','length','interactionStopped','toolDataReceived','forEach','splice','currentReply','reasoning','interactionStarted','callId','interactionDestroyed','find','stop','isDestroyed','1775137vYPeYg','869539IJjvgt','currentRequest','content','interactionFinished','connector','conversationTitle','1WKliod','8124CyCMrr','5615sASbZC','text-delta','_isWebSearching','messageId','done','delegate','setConversationTitle','notification','sources','27gEmabm','result','error','ai-chat-interaction-error','24nVwwmj'];_0x3c7c=function(){return _0x4cb7a4;};return _0x3c7c();}export const AI_MODEL_EVENT_NAMES=[_0x2c3c83(0xd1),_0x2c3c83(0xdf),_0x2c3c83(0xd9),_0x2c3c83(0xe9),_0x2c3c83(0xe1),_0x2c3c83(0x10e),_0x2c3c83(0x128),_0x2c3c83(0x10f),_0x2c3c83(0xf4),_0x2c3c83(0x126),_0x2c3c83(0x119),_0x2c3c83(0x122),_0x2c3c83(0xd2),_0x2c3c83(0xda),_0x2c3c83(0xf9)];function _0x2625(_0x1642d4,_0x2a10d3){const _0x3c7cea=_0x3c7c();return _0x2625=function(_0x2625d5,_0x2653e3){_0x2625d5=_0x2625d5-0xcf;let _0x3dbbb3=_0x3c7cea[_0x2625d5];return _0x3dbbb3;},_0x2625(_0x1642d4,_0x2a10d3);}export class AIInteraction extends _0x4cdfdd(){['id'];[_0x2c3c83(0x10b)]=[];[_0x2c3c83(0xdd)];[_0x2c3c83(0xf1)];[_0x2c3c83(0x123)];[_0x2c3c83(0xe7)];[_0x2c3c83(0xea)];[_0x2c3c83(0x118)]=!0x1;[_0x2c3c83(0xe4)]=!0x1;[_0x2c3c83(0x116)];[_0x2c3c83(0x104)]=!0x1;[_0x2c3c83(0xf0)]=!0x1;constructor({connector:_0x2db034,editor:_0x2d2a40}){const _0x445c0d=_0x2c3c83;super(),this['id']=_0x29bb63(),this[_0x445c0d(0xea)]=_0x2db034,this[_0x445c0d(0x118)]=!0x0,this[_0x445c0d(0x116)]=_0x2d2a40;}async[_0x2c3c83(0x114)](){const _0x2ed870=_0x2c3c83,_0x2dcecb=[];let _0x55d2d8,_0x15b399,_0x565ccc;this[_0x2ed870(0x118)]=!0x1;try{this[_0x2ed870(0xe7)]=await this[_0x2ed870(0xfd)](),this[_0x2ed870(0x11a)](_0x2ed870(0xdf),this);const _0x540a58=await this[_0x2ed870(0xe7)][_0x2ed870(0x115)]();for await(const _0x219aa5 of _0x540a58){if(this[_0x2ed870(0x118)])return;if(_0x2ed870(0xf9)==_0x219aa5[_0x2ed870(0x113)])return void this[_0x2ed870(0x11a)](_0x2ed870(0xf9),{'error':new _0x3dd36a(_0x2ed870(0xfa),this)});switch(_0x219aa5[_0x2ed870(0x113)]){case _0x2ed870(0xff):this[_0x2ed870(0xf1)]=_0x219aa5[_0x2ed870(0x11c)][_0x2ed870(0xf1)];break;case _0x2ed870(0x10d):this[_0x2ed870(0x123)]=_0x219aa5[_0x2ed870(0x11c)][_0x2ed870(0xe0)];break;case _0x2ed870(0x11d):this[_0x2ed870(0xf4)](_0x219aa5[_0x2ed870(0x11c)][_0x2ed870(0xeb)],!0x0);break;case _0x2ed870(0x10c):_0x2dcecb[_0x2ed870(0xd7)](_0x219aa5[_0x2ed870(0x11c)][_0x2ed870(0x10c)]);break;case _0x2ed870(0x11e):this[_0x2ed870(0xf0)]||(this[_0x2ed870(0xf0)]=!0x0,this[_0x2ed870(0x11a)](_0x2ed870(0x126),this));break;case _0x2ed870(0xde):this[_0x2ed870(0x104)]||(this[_0x2ed870(0x104)]=!0x0,this[_0x2ed870(0x11a)](_0x2ed870(0x122),this));break;case _0x2ed870(0x124):case _0x2ed870(0xef):this[_0x2ed870(0x107)](),this[_0x2ed870(0x102)](),_0x55d2d8=_0x2ed870(0x124)==_0x219aa5[_0x2ed870(0x113)]?_0x2ed870(0x11b):_0x2ed870(0x117),_0x15b399=_0x2ed870(0x124)==_0x219aa5[_0x2ed870(0x113)]?_0x219aa5[_0x2ed870(0x11c)]['id']:void 0x0,this[_0x2ed870(0xdd)]&&this[_0x2ed870(0xdd)][_0x2ed870(0x10a)]!=_0x55d2d8&&(this[_0x2ed870(0xdd)][_0x2ed870(0xf2)](),this[_0x2ed870(0xdd)]=void 0x0),this[_0x2ed870(0xdd)]||(this[_0x2ed870(0xdd)]=this[_0x2ed870(0xfe)]({'type':_0x55d2d8,'interactionId':this['id'],'id':_0x15b399}),_0x2ed870(0x11b)==_0x55d2d8&&(this[_0x2ed870(0xdd)][_0x2ed870(0xf6)]=_0x2dcecb[_0x2ed870(0xdc)](0x0))),this[_0x2ed870(0xdd)][_0x2ed870(0x109)](_0x219aa5[_0x2ed870(0x11c)][_0x2ed870(0x111)]);break;case _0x2ed870(0x105):_0x565ccc=JSON[_0x2ed870(0x125)](_0x219aa5[_0x2ed870(0x11c)][_0x2ed870(0xf8)]),this[_0x2ed870(0xd4)]({'toolName':_0x219aa5[_0x2ed870(0x11c)][_0x2ed870(0xd5)],'data':_0x565ccc[_0x2ed870(0x11c)],'attributes':_0x565ccc[_0x2ed870(0x103)]});break;case _0x2ed870(0xcf):this[_0x2ed870(0x120)]({'toolName':_0x219aa5[_0x2ed870(0x11c)][_0x2ed870(0xd5)],'data':_0x219aa5[_0x2ed870(0x11c)][_0x2ed870(0x11c)]});}}}finally{this[_0x2ed870(0x118)]||(this[_0x2ed870(0xdd)]&&_0x2dcecb[_0x2ed870(0xd8)]>0x0&&(this[_0x2ed870(0xdd)][_0x2ed870(0xf6)]=_0x2dcecb[_0x2ed870(0xdc)](0x0)),this[_0x2ed870(0x127)](),this[_0x2ed870(0x11a)](_0x2ed870(0xe9),this));}}[_0x2c3c83(0xe3)](){const _0x1af031=_0x2c3c83;this[_0x1af031(0x118)]||(this[_0x1af031(0x127)](),this[_0x1af031(0x11a)](_0x1af031(0xd9),this));}[_0x2c3c83(0x106)](_0x2f6530){const _0x4eb827=_0x2c3c83;return this[_0x4eb827(0x10b)][_0x4eb827(0xe2)](_0x5a489f=>_0x5a489f['id']===_0x2f6530);}[_0x2c3c83(0x110)](){const _0x205f27=_0x2c3c83;this[_0x205f27(0xe4)]||(this[_0x205f27(0xe3)](),this[_0x205f27(0x10b)][_0x205f27(0xdb)](_0x55c352=>_0x55c352[_0x205f27(0x110)]()),this[_0x205f27(0x10b)]=[],this[_0x205f27(0xe4)]=!0x0,this[_0x205f27(0x11a)](_0x205f27(0xe1),this),this[_0x205f27(0xfc)]());}[_0x2c3c83(0xfe)](_0x20a610){const _0x42e5c8=_0x2c3c83,_0x58f950=new _0x50ba68({'editor':this[_0x42e5c8(0x116)],'documentContextContent':this[_0x42e5c8(0x108)]()?.[_0x42e5c8(0xe8)],..._0x20a610});return this[_0x42e5c8(0x10b)][_0x42e5c8(0xd7)](_0x58f950),_0x58f950[_0x42e5c8(0xf3)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x42e5c8(0x11a)](_0x42e5c8(0x10e),_0x58f950),_0x58f950;}[_0x2c3c83(0xf4)](_0x490fee,_0x16ae2d=!0x1){const _0x55b36a=_0x2c3c83;this[_0x55b36a(0x11a)](_0x55b36a(0xf4),_0x490fee,_0x16ae2d);}[_0x2c3c83(0x102)](){const _0x57a747=_0x2c3c83;this[_0x57a747(0xf0)]&&(this[_0x57a747(0xf0)]=!0x1,this[_0x57a747(0x11a)](_0x57a747(0x119),this));}[_0x2c3c83(0x107)](){const _0x26ab29=_0x2c3c83;this[_0x26ab29(0x104)]&&(this[_0x26ab29(0x104)]=!0x1,this[_0x26ab29(0x11a)](_0x26ab29(0xd2),this));}[_0x2c3c83(0xd4)](_0x1dab88){const _0x53e77f=_0x2c3c83;this[_0x53e77f(0x11a)](_0x53e77f(0xda),{'type':_0x53e77f(0xf8),'toolName':_0x1dab88[_0x53e77f(0xd5)],'data':structuredClone(_0x1dab88[_0x53e77f(0x11c)]||{}),'attributes':structuredClone(_0x1dab88[_0x53e77f(0x103)]||{})},this);}[_0x2c3c83(0x120)](_0x1c2c07){const _0x2648c2=_0x2c3c83;this[_0x2648c2(0x11a)](_0x2648c2(0xda),{'type':_0x2648c2(0xf5),'toolName':_0x1c2c07[_0x2648c2(0xd5)],'data':structuredClone(_0x1c2c07[_0x2648c2(0x11c)])},this);}[_0x2c3c83(0x127)](){const _0x362c03=_0x2c3c83;this[_0x362c03(0x118)]=!0x0,this[_0x362c03(0xe7)]&&this[_0x362c03(0xe7)][_0x362c03(0x121)][_0x362c03(0xd3)](),this[_0x362c03(0xdd)]&&this[_0x362c03(0xdd)][_0x362c03(0xf2)](),this[_0x362c03(0xe7)]=this[_0x362c03(0xdd)]=void 0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x135a61=_0x518c;(function(_0x4d20cf,_0x4e3198){const _0xda861f=_0x518c,_0x5d06bd=_0x4d20cf();while(!![]){try{const _0x51c628=-parseInt(_0xda861f(0x1b2))/0x1*(-parseInt(_0xda861f(0x1b1))/0x2)+-parseInt(_0xda861f(0x1db))/0x3*(parseInt(_0xda861f(0x1d5))/0x4)+parseInt(_0xda861f(0x1cb))/0x5+-parseInt(_0xda861f(0x1bf))/0x6*(-parseInt(_0xda861f(0x1df))/0x7)+parseInt(_0xda861f(0x1d3))/0x8+parseInt(_0xda861f(0x1d0))/0x9*(-parseInt(_0xda861f(0x1d7))/0xa)+parseInt(_0xda861f(0x1d8))/0xb*(parseInt(_0xda861f(0x1bc))/0xc);if(_0x51c628===_0x4e3198)break;else _0x5d06bd['push'](_0x5d06bd['shift']());}catch(_0x539d96){_0x5d06bd['push'](_0x5d06bd['shift']());}}}(_0x3a52,0xd06c4));import{EmitterMixin as _0x67ec71,logWarning as _0x2d5c19,logError as _0x2e804f}from'ckeditor5/src/utils.js';import{getTranslation as _0x29ab86}from'../utils/common-translations.js';export class AIModels extends _0x67ec71(){[_0x135a61(0x1d6)];[_0x135a61(0x1c3)];[_0x135a61(0x1c4)];[_0x135a61(0x1e1)]=[];[_0x135a61(0x1b6)]=null;constructor({connector:_0x16e9c6,config:_0x47d943,locale:_0x791a75}){const _0x3ef872=_0x135a61;super(),this[_0x3ef872(0x1d6)]=_0x16e9c6,this[_0x3ef872(0x1c3)]=_0x47d943,this[_0x3ef872(0x1c4)]=_0x791a75;}get[_0x135a61(0x1dc)](){const _0x42401b=_0x135a61;return this[_0x42401b(0x1c3)]?.[_0x42401b(0x1ba)];}get[_0x135a61(0x1cc)](){const _0x24845a=_0x135a61;return this[_0x24845a(0x1c3)]?.[_0x24845a(0x1d4)];}async[_0x135a61(0x1c5)](){const _0x251754=_0x135a61;return this[_0x251754(0x1b6)]||(this[_0x251754(0x1b6)]=this[_0x251754(0x1e3)]()),this[_0x251754(0x1b6)];}async[_0x135a61(0x1e0)](){const _0x20e616=_0x135a61,_0x500d04=await this[_0x20e616(0x1c5)]();let _0x266f85;return _0x266f85=this[_0x20e616(0x1dc)]?this[_0x20e616(0x1d2)](_0x500d04,this[_0x20e616(0x1dc)]):_0x500d04[_0x20e616(0x1b7)](_0x32b97e=>_0x32b97e[_0x20e616(0x1c6)]),_0x266f85;}async[_0x135a61(0x1de)](_0x499a7e){const _0x296285=_0x135a61,_0x2618ca=await this[_0x296285(0x1c5)]();if(!_0x2618ca[_0x296285(0x1c2)])return null;if(_0x499a7e){const _0x24d4ce=this[_0x296285(0x1cf)](_0x2618ca,_0x499a7e);if(_0x24d4ce)return _0x24d4ce;_0x2d5c19(_0x296285(0x1e4),{'modelId':_0x499a7e,'fallBackModelId':this[_0x296285(0x1cc)]});}return this[_0x296285(0x1ce)]();}async[_0x135a61(0x1ce)](){const _0x16536c=_0x135a61,_0x11ae51=await this[_0x16536c(0x1e0)]();if(!_0x11ae51[_0x16536c(0x1c2)])return null;if(this[_0x16536c(0x1cc)]){const _0x1ce657=this[_0x16536c(0x1cf)](_0x11ae51,this[_0x16536c(0x1cc)]);if(_0x1ce657)return _0x1ce657;_0x2d5c19(_0x16536c(0x1d9),{'defaultModelId':this[_0x16536c(0x1cc)],'fallBackModelId':_0x11ae51[0x0]['id']});}return _0x11ae51[0x0];}async[_0x135a61(0x1b3)](_0x37c757){const _0xafa0e0=_0x135a61;return(await this[_0xafa0e0(0x1e0)]())[_0xafa0e0(0x1bb)](_0x545fab=>_0x545fab[_0xafa0e0(0x1e5)]===_0x37c757[_0xafa0e0(0x1e5)]&&_0x545fab[_0xafa0e0(0x1b4)]===_0x37c757[_0xafa0e0(0x1b4)]);}async[_0x135a61(0x1e3)](){const _0x6176df=_0x135a61;if(!this[_0x6176df(0x1e1)][_0x6176df(0x1c2)])try{const _0x297980=this[_0x6176df(0x1c4)][_0x6176df(0x1bd)]||'en',_0x3e0960=this[_0x6176df(0x1d6)][_0x6176df(0x1b0)](_0x297980),_0x58ee42=await _0x3e0960[_0x6176df(0x1c1)]();this[_0x6176df(0x1e1)]=_0x58ee42[_0x6176df(0x1c9)][_0x6176df(0x1dd)](_0x42e340=>vi(_0x42e340)?{..._0x42e340,'name':_0x29ab86(this[_0x6176df(0x1c4)],_0x6176df(0x1cd))}:_0x42e340);}catch(_0x5664e7){throw _0x2e804f(_0x6176df(0x1b8),{'error':_0x5664e7}),_0x5664e7;}return[...this[_0x6176df(0x1e1)]];}[_0x135a61(0x1d2)](_0x4633ac,_0x30e754){const _0x4e48e3=_0x135a61;let _0x2528c4;if(_0x30e754){_0x2528c4=[];const _0x565b73=new Set(),_0x2a2c1d=_0x4e48e3(0x1ca)==typeof _0x30e754?[_0x30e754[_0x4e48e3(0x1e2)]()]:_0x30e754[_0x4e48e3(0x1dd)](_0x59d88b=>_0x59d88b[_0x4e48e3(0x1e2)]());for(const _0x56761d of _0x2a2c1d)for(const _0x160396 of _0x4633ac)!_0x565b73[_0x4e48e3(0x1da)](_0x160396['id'])&&this[_0x4e48e3(0x1be)](_0x160396,_0x56761d)&&(_0x2528c4[_0x4e48e3(0x1d1)](_0x160396),_0x565b73[_0x4e48e3(0x1c8)](_0x160396['id']));}else _0x2528c4=_0x4633ac;return _0x2528c4;}[_0x135a61(0x1be)](_0x14a380,_0x2b5b4e){const _0x562b19=_0x135a61,_0x2c2261=_0x14a380['id'][_0x562b19(0x1e2)](),_0x436e32=_0x14a380[_0x562b19(0x1e5)][_0x562b19(0x1e2)](),_0xa4f271=_0x14a380[_0x562b19(0x1b4)][_0x562b19(0x1e2)]();return _0x2c2261===_0x2b5b4e||_0x436e32===_0x2b5b4e||vi(_0x14a380)&&_0x562b19(0x1c7)===_0x2b5b4e||_0xa4f271===_0x2b5b4e||_0x2c2261[_0x562b19(0x1b9)](_0x2b5b4e);}[_0x135a61(0x1cf)](_0x49c681,_0x3a30dc){const _0x38333f=_0x135a61;return _0x49c681[_0x38333f(0x1c0)](_0x2d746b=>vi(_0x2d746b)&&_0x38333f(0x1c7)===_0x3a30dc?_0x2d746b:_0x2d746b['id']===_0x3a30dc)||null;}}function _0x518c(_0x4a46f7,_0x123305){const _0x3a52cc=_0x3a52();return _0x518c=function(_0x518cf7,_0x4d87e7){_0x518cf7=_0x518cf7-0x1b0;let _0x2df6d1=_0x3a52cc[_0x518cf7];return _0x2df6d1;},_0x518c(_0x4a46f7,_0x123305);}function vi(_0x9d6a09){const _0x3931d2=_0x135a61;return _0x9d6a09['id'][_0x3931d2(0x1b9)](_0x3931d2(0x1b5));}function _0x3a52(){const _0x2a39c6=['27XSaDKq','push','_filterModels','1323832mnoXBi','defaultModelId','48Hxqrmn','_connector','557380BICAIK','5951TcPkzc','ai-chat-default-model-id-unrecognized','has','333534gGLmjQ','_availableModels','map','getModel','1982897IwEXZD','getAvailableModels','_modelList','toLocaleLowerCase','_retrieveModels','ai-chat-model-id-unrecognized','name','getModels','1997074PhOYuR','1FEmyWJ','isAvailable','provider','agent','_modelsRequest','filter','ai-models-unable-to-retrieve','startsWith','displayedModels','some','19128BGqnQx','uiLanguage','_isMatchingFilter','6mtsSHn','find','list','length','_config','_locale','getAll','recommended','auto','add','items','string','227045XSMeTE','_defaultModelId','AI_MODEL_NAME_AUTO','getDefault','_getModelById'];_0x3a52=function(){return _0x2a39c6;};return _0x3a52();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x98a7d4=_0x2cb8;(function(_0x5567e7,_0x2a504e){const _0x7ff649=_0x2cb8,_0x47de50=_0x5567e7();while(!![]){try{const _0x198971=parseInt(_0x7ff649(0x18f))/0x1*(parseInt(_0x7ff649(0x18c))/0x2)+-parseInt(_0x7ff649(0x188))/0x3+-parseInt(_0x7ff649(0x1c3))/0x4+parseInt(_0x7ff649(0x1b6))/0x5*(parseInt(_0x7ff649(0x195))/0x6)+-parseInt(_0x7ff649(0x1bb))/0x7+parseInt(_0x7ff649(0x19b))/0x8+parseInt(_0x7ff649(0x189))/0x9*(parseInt(_0x7ff649(0x183))/0xa);if(_0x198971===_0x2a504e)break;else _0x47de50['push'](_0x47de50['shift']());}catch(_0x38b5ca){_0x47de50['push'](_0x47de50['shift']());}}}(_0x2dfc,0xe9290));import{CKEditorError as _0x4f73e3,ObservableMixin as _0x21ce37,uid as _0x3f1202}from'ckeditor5/src/utils.js';import{Element as _0xc4ca4d,findAll as _0x3b7524,getAttribute as _0x557fb1,getParents as _0x57c1c2,Document as _0x569f7f,parse as _0x39900c,Text as _0x8afc4b}from'../utils/htmlparser.js';function _0x2cb8(_0x289dd2,_0x492702){const _0x2dfc3d=_0x2dfc();return _0x2cb8=function(_0x2cb80c,_0x1395b6){_0x2cb80c=_0x2cb80c-0x182;let _0x530648=_0x2dfc3d[_0x2cb80c];return _0x530648;},_0x2cb8(_0x289dd2,_0x492702);}import{AIResponseParser as _0x688cbf}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0xe2b1a4}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x567f52}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x34eeac}from'../utils/common-translations.js';function _0x2dfc(){const _0x4f7032=['content','withDiff','5MVAYEF','aiResponseApplier','cloneNode','new','getContentParts','7113127qwLPpw','AI_SUGGESTION_CONTENT_PART_REMOVED','includes','_getDifferentChangeGroups','newNodeIds','indexOf','index','modification','2984516tgxkCY','editor','data-id','interactionId','ai-reply-get-content-parts-group-not-found','destroy','length','modifiedNodeIds','cachedSuggestionContentParts','find','areActionsDisabled','stopListening','_setCachedContentParts','node','convertMarkdownToHTML','context','11990zWZxPG','fire','unshift','modified','aiResponseParser','916920Ozwhkb','5877kVDRHm','done','changes','121942ZpxWEr','replyContentUpdated','setChangeGroupState','10yJljSF','changeGroups','every','parsedContent','merge','locale','4750776XtqkUr','_getCachedContentParts','type','color:\x20#808080;\x20font-style:\x20italic','splice','withoutDiff','6708008tOivMK','state','replyChangeGroupStateUpdated','appendContent','parseAndNormalizeHTML','ai-get-editor-from-context-no-editor','sources','nextSibling','removedNodeIds','updateChangeGroups','previousSibling','forEach','map','isDone','filter','set','removed','documentContextContent','change:content','parsedMergedContent','push','pending','data-unstable','span','onContentChange'];_0x2dfc=function(){return _0x4f7032;};return _0x2dfc();}import{cloneDeep as _0x453908}from'es-toolkit';export class AIReply extends _0x21ce37(){['id'];[_0x98a7d4(0x1c6)];[_0x98a7d4(0x197)];[_0x98a7d4(0x1a1)]=[];[_0x98a7d4(0x192)]=new _0x569f7f([]);[_0x98a7d4(0x1ae)]=new _0x569f7f([]);[_0x98a7d4(0x190)]=[];[_0x98a7d4(0x1cd)]=!0x1;[_0x98a7d4(0x1ac)];[_0x98a7d4(0x187)];[_0x98a7d4(0x1b7)];[_0x98a7d4(0x1c4)];[_0x98a7d4(0x1cb)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x160f51,content:_0x337513='',isDone:_0x5399ba=!0x1,interactionId:_0x289d5c,areActionsDisabled:_0x576edc,documentContextContent:_0xf9ca2d,editor:_0x5b8411,id:_0x392a85}){const _0x1adaa4=_0x98a7d4;super(),this['id']=_0x392a85||_0x3f1202(),this[_0x1adaa4(0x1c6)]=_0x289d5c,this[_0x1adaa4(0x197)]=_0x160f51,this[_0x1adaa4(0x1cd)]=!!_0x576edc,this[_0x1adaa4(0x1c4)]=_0x5b8411,this[_0x1adaa4(0x187)]=new _0x688cbf(),this[_0x1adaa4(0x1b7)]=new _0xe2b1a4(),this[_0x1adaa4(0x1ac)]=_0x39900c(_0xf9ca2d||''),this[_0x1adaa4(0x1aa)](_0x1adaa4(0x1a8),_0x5399ba),this['on'](_0x1adaa4(0x1ad),()=>{const _0x3f5870=_0x1adaa4;this[_0x3f5870(0x1b3)]();}),this[_0x1adaa4(0x1aa)](_0x1adaa4(0x1b4),_0x337513);}[_0x98a7d4(0x19e)](_0x462d27){const _0x284c90=_0x98a7d4;this[_0x284c90(0x1aa)](_0x284c90(0x1b4),this[_0x284c90(0x1b4)]+_0x462d27);}[_0x98a7d4(0x18a)](){const _0x431043=_0x98a7d4;this[_0x431043(0x1a8)]||(this[_0x431043(0x1aa)](_0x431043(0x1a8),!0x0),this[_0x431043(0x1b3)]());}[_0x98a7d4(0x1c8)](){const _0x537edf=_0x98a7d4;this[_0x537edf(0x1ce)]();}[_0x98a7d4(0x18e)](_0x2d920a,_0x185340){const _0x5338b5=_0x98a7d4;this[_0x5338b5(0x190)][_0x2d920a][_0x5338b5(0x19c)]=_0x185340,this[_0x5338b5(0x184)](_0x5338b5(0x19d),{'reply':this,'index':_0x2d920a,'state':_0x185340});}[_0x98a7d4(0x1ba)]({showDiff:_0x527370,groupIndex:_0x1d7286}){const _0x3c5327=_0x98a7d4;if(!this[_0x3c5327(0x1c4)])throw new _0x4f73e3(_0x3c5327(0x1a0),null,{'aiReply':this});const _0x26e771=this[_0x3c5327(0x196)](_0x527370,_0x1d7286);if(_0x26e771)return _0x26e771;let _0x548a22=[];if(void 0x0===_0x1d7286)_0x548a22=this[_0x3c5327(0x190)];else{const _0x45cf60=this[_0x3c5327(0x190)][_0x3c5327(0x1cc)](({index:_0x52b40d})=>_0x52b40d===_0x1d7286);if(!_0x45cf60)throw new _0x4f73e3(_0x3c5327(0x1c7),null,{'aiReply':this,'groupIndex':_0x1d7286});_0x548a22=[_0x45cf60];}const _0x18afb6=_0x567f52({'editor':this[_0x3c5327(0x1c4)],'showDiff':_0x527370,'changeGroups':_0x548a22,'documentContextContent':this[_0x3c5327(0x1ac)]});return this[_0x3c5327(0x1cf)](_0x527370,_0x18afb6),_0x18afb6;}[_0x98a7d4(0x196)](_0x1e6a68,_0x416c18){const _0x1e95e6=_0x98a7d4,_0x30a5c4=_0x1e6a68?_0x1e95e6(0x1b5):_0x1e95e6(0x19a);if(!this[_0x1e95e6(0x1cb)][_0x30a5c4][_0x1e95e6(0x1c9)])return null;const _0x532f39=this[_0x1e95e6(0x1cb)][_0x30a5c4];if(void 0x0===_0x416c18)return _0x532f39[_0x1e95e6(0x1c9)]>0x0&&_0x532f39[_0x1e95e6(0x1c9)]!==this[_0x1e95e6(0x190)][_0x1e95e6(0x1c9)]?(this[_0x1e95e6(0x1cf)](_0x1e6a68,null),null):_0x453908(_0x532f39);{const _0x368efc=_0x532f39[_0x1e95e6(0x1cc)](({index:_0x1112ea})=>_0x1112ea===_0x416c18);if(_0x368efc)return[_0x453908(_0x368efc)];}return null;}[_0x98a7d4(0x1cf)](_0x3f1a71,_0x1d18ea){const _0x175e0d=_0x98a7d4,_0x149d3a=_0x3f1a71?_0x175e0d(0x1b5):_0x175e0d(0x19a);_0x1d18ea?_0x1d18ea[_0x175e0d(0x1a6)](_0xaf53c8=>{const _0x254116=_0x175e0d,_0x963c52=this[_0x254116(0x1cb)][_0x149d3a],_0x2a6bb3=_0x963c52[_0x254116(0x1cc)](({index:_0x4c1ef7})=>_0x4c1ef7===_0xaf53c8[_0x254116(0x1c1)]);if(_0x2a6bb3){const _0x38b12b=_0x963c52[_0x254116(0x1c0)](_0x2a6bb3);_0x963c52[_0x254116(0x199)](_0x38b12b,0x1,_0xaf53c8);}else _0x963c52[_0x254116(0x1af)](_0xaf53c8);}):this[_0x175e0d(0x1cb)][_0x149d3a][_0x175e0d(0x1c9)]=0x0;}[_0x98a7d4(0x1b3)](){const _0x2ee3af=_0x98a7d4;if(_0x2ee3af(0x1c2)===this[_0x2ee3af(0x197)]){this[_0x2ee3af(0x192)]=this[_0x2ee3af(0x187)][_0x2ee3af(0x19f)](this[_0x2ee3af(0x1b4)]);const _0x6e5afc=this[_0x2ee3af(0x190)];this[_0x2ee3af(0x1a4)]();const _0x3cd658=this[_0x2ee3af(0x1be)](_0x6e5afc,this[_0x2ee3af(0x190)]);(_0x3cd658[_0x2ee3af(0x1c9)]||this[_0x2ee3af(0x1a8)])&&(this[_0x2ee3af(0x184)](_0x2ee3af(0x18d),this,_0x3cd658),this[_0x2ee3af(0x1cb)][_0x2ee3af(0x1b5)][_0x2ee3af(0x1c9)]=this[_0x2ee3af(0x1cb)][_0x2ee3af(0x19a)][_0x2ee3af(0x1c9)]=0x0);}else this[_0x2ee3af(0x192)]=this[_0x2ee3af(0x187)][_0x2ee3af(0x1d1)](this[_0x2ee3af(0x1b4)]),this[_0x2ee3af(0x184)](_0x2ee3af(0x18d),this);}[_0x98a7d4(0x1be)](_0x46c341,_0x3a0e2e){const _0x1d4320=_0x98a7d4,_0x5dc30d=[];for(const _0x55d2a3 of _0x3a0e2e){const _0x50be5f=_0x46c341[_0x55d2a3[_0x1d4320(0x1c1)]];_0x50be5f?_0x50be5f[_0x1d4320(0x18b)][_0x1d4320(0x1c9)]!==_0x55d2a3[_0x1d4320(0x18b)][_0x1d4320(0x1c9)]?_0x5dc30d[_0x1d4320(0x1af)](_0x55d2a3):_0x50be5f[_0x1d4320(0x18b)][_0x1d4320(0x1a6)]((_0x1b1245,_0xd72e99)=>{const _0x34b4a4=_0x1d4320,_0x23e9ce=_0x55d2a3[_0x34b4a4(0x18b)][_0xd72e99];_0x1b1245['id']!==_0x23e9ce['id']&&_0x5dc30d[_0x34b4a4(0x1af)](_0x55d2a3);}):_0x5dc30d[_0x1d4320(0x1af)](_0x55d2a3);}return _0x5dc30d;}[_0x98a7d4(0x1a4)](){const _0x4e2e47=_0x98a7d4,_0x306f6b=new _0xc4ca4d('p',{},[new _0xc4ca4d(_0x4e2e47(0x1b2),{'style':_0x4e2e47(0x198)},[new _0x8afc4b(_0x34eeac(this[_0x4e2e47(0x1c4)][_0x4e2e47(0x194)],_0x4e2e47(0x1bc)))])]),_0x5e306d=this[_0x4e2e47(0x1b7)][_0x4e2e47(0x193)](this[_0x4e2e47(0x192)],this[_0x4e2e47(0x1ac)][_0x4e2e47(0x1b8)](!0x0),{'markUnstableElements':!this[_0x4e2e47(0x1a8)],'replaceRemovedWith':_0x306f6b,'cutAfterLastChange':!this[_0x4e2e47(0x1a8)]});if(!_0x5e306d[_0x4e2e47(0x1ca)][_0x4e2e47(0x1c9)]&&!this[_0x4e2e47(0x1a8)])return;this[_0x4e2e47(0x1ae)]=_0x5e306d[_0x4e2e47(0x192)];let _0x3492fb=[];if(_0x3b7524(_0x315dae=>{const _0x4b91f8=_0x4e2e47,_0xdacb72=_0x557fb1(_0x315dae,_0x4b91f8(0x1c5));if(!_0xdacb72||!_0x39d3ff(_0xdacb72))return!0x1;const _0x119c66=[_0x315dae,..._0x57c1c2(_0x315dae)]['at'](-0x2);if(_0x315dae!=_0x119c66){const _0x444bf4=_0x557fb1(_0x119c66,_0x4b91f8(0x1c5));_0x39d3ff(_0x444bf4)||(_0x3492fb[_0x4b91f8(0x1af)]({'node':_0x119c66,'id':_0x444bf4,'type':_0x4b91f8(0x186)}),_0x5e306d[_0x4b91f8(0x1ca)][_0x4b91f8(0x1af)](_0x444bf4));}else _0x5e306d[_0x4b91f8(0x1ca)][_0x4b91f8(0x1bd)](_0xdacb72)?_0x3492fb[_0x4b91f8(0x1af)]({'node':_0x315dae,'type':_0x4b91f8(0x186),'id':_0xdacb72}):_0x5e306d[_0x4b91f8(0x1bf)][_0x4b91f8(0x1bd)](_0xdacb72)?_0x3492fb[_0x4b91f8(0x1af)]({'node':_0x315dae,'type':_0x4b91f8(0x1b9),'id':_0xdacb72,'anchorId':_0x557fb1(_0x315dae[_0x4b91f8(0x1a5)],_0x4b91f8(0x1c5))}):_0x3492fb[_0x4b91f8(0x1af)]({'node':_0x315dae,'type':_0x4b91f8(0x1ab),'id':_0xdacb72});return!0x0;},this[_0x4e2e47(0x1ae)]),_0x3492fb=_0x3492fb[_0x4e2e47(0x1a9)](({node:_0x9b1d5f})=>[..._0x57c1c2(_0x9b1d5f),_0x9b1d5f][_0x4e2e47(0x191)](_0x1e49d3=>!_0x557fb1(_0x1e49d3,_0x4e2e47(0x1b1)))),0x0==_0x3492fb[_0x4e2e47(0x1c9)])return;const _0x16966f=[[_0x3492fb[0x0]]];for(let _0x5e9a94=0x1;_0x5e9a94<_0x3492fb[_0x4e2e47(0x1c9)];_0x5e9a94++){const _0x423ba8=_0x16966f[_0x16966f[_0x4e2e47(0x1c9)]-0x1],_0x336e3b=_0x423ba8[_0x423ba8[_0x4e2e47(0x1c9)]-0x1];_0x3492fb[_0x5e9a94][_0x4e2e47(0x1d0)][_0x4e2e47(0x1a5)]==_0x336e3b[_0x4e2e47(0x1d0)]&&_0x4e2e47(0x186)!=_0x3492fb[_0x5e9a94][_0x4e2e47(0x197)]&&_0x4e2e47(0x186)!=_0x336e3b[_0x4e2e47(0x197)]?_0x423ba8[_0x4e2e47(0x1af)](_0x3492fb[_0x5e9a94]):_0x16966f[_0x4e2e47(0x1af)]([_0x3492fb[_0x5e9a94]]);}for(const _0x202146 of _0x16966f){const _0x431176=_0x202146[0x0],_0x5a57c9=_0x202146[_0x202146[_0x4e2e47(0x1c9)]-0x1],_0x391186=_0x4e0a96(_0x431176[_0x4e2e47(0x1d0)][_0x4e2e47(0x1a5)]);_0x391186&&_0x202146[_0x4e2e47(0x185)](_0x391186);const _0x4ef788=_0x4e0a96(_0x5a57c9[_0x4e2e47(0x1d0)][_0x4e2e47(0x1a2)]);_0x4ef788&&_0x202146[_0x4e2e47(0x1af)](_0x4ef788);}function _0x39d3ff(_0x27497f){const _0x227283=_0x4e2e47;return _0x5e306d[_0x227283(0x1ca)][_0x227283(0x1bd)](_0x27497f)||_0x5e306d[_0x227283(0x1bf)][_0x227283(0x1bd)](_0x27497f)||_0x5e306d[_0x227283(0x1a3)][_0x227283(0x1bd)](_0x27497f);}function _0x4e0a96(_0x2d91f7){const _0x1a332a=_0x4e2e47;if(_0x2d91f7&&_0x557fb1(_0x2d91f7,_0x1a332a(0x1c5))&&!_0x557fb1(_0x2d91f7,_0x1a332a(0x1b1))){const _0x2952fa=_0x557fb1(_0x2d91f7,_0x1a332a(0x1c5));if(!_0x39d3ff(_0x2952fa))return{'node':_0x2d91f7,'type':_0x1a332a(0x182),'id':_0x2952fa};}return null;}this[_0x4e2e47(0x190)]=_0x16966f[_0x4e2e47(0x1a7)]((_0x48ddfc,_0x3eeee1)=>({'changes':_0x48ddfc,'state':_0x4e2e47(0x1b0),'index':_0x3eeee1}));}}
|
|
23
|
+
const _0x5c3c72=_0x3e23;(function(_0x236525,_0x1ba40b){const _0x3502fe=_0x3e23,_0x1631df=_0x236525();while(!![]){try{const _0x1baf7b=parseInt(_0x3502fe(0x1f7))/0x1*(-parseInt(_0x3502fe(0x1e8))/0x2)+parseInt(_0x3502fe(0x1f2))/0x3+-parseInt(_0x3502fe(0x205))/0x4*(-parseInt(_0x3502fe(0x226))/0x5)+-parseInt(_0x3502fe(0x217))/0x6*(parseInt(_0x3502fe(0x1ed))/0x7)+-parseInt(_0x3502fe(0x1fa))/0x8+-parseInt(_0x3502fe(0x22c))/0x9+parseInt(_0x3502fe(0x22e))/0xa;if(_0x1baf7b===_0x1ba40b)break;else _0x1631df['push'](_0x1631df['shift']());}catch(_0x224e89){_0x1631df['push'](_0x1631df['shift']());}}}(_0x4c25,0x8b4b6));import{CKEditorError as _0x360105,ObservableMixin as _0x1b0615,uid as _0x2a5b6b}from'ckeditor5/src/utils.js';import{Element as _0x93cc4b,findAll as _0x831b50,getAttribute as _0x4545cc,getParents as _0x5f3f2e,Document as _0x6084b0,parse as _0x8b3cfd,Text as _0x9d1f39}from'../utils/htmlparser.js';function _0x3e23(_0x326c37,_0x10918e){const _0x4c252e=_0x4c25();return _0x3e23=function(_0x3e23f3,_0x42b580){_0x3e23f3=_0x3e23f3-0x1e7;let _0xef7afd=_0x4c252e[_0x3e23f3];return _0xef7afd;},_0x3e23(_0x326c37,_0x10918e);}import{AIResponseParser as _0x54e9f7}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x235b2d}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x16db5a}from'../utils/getsuggestionpartsfromreply.js';function _0x4c25(){const _0x1026d1=['_getCachedContentParts','type','changeGroups','indexOf','convertMarkdownToHTML','push','parsedMergedContent','splice','1091288oLnXZB','withoutDiff','find','changes','setChangeGroupState','889GWbTHf','ai-reply-get-content-parts-group-not-found','ai-get-editor-from-context-no-editor','includes','interactionId','1829238IEnAnk','_getDifferentChangeGroups','data-id','aiResponseParser','index','2aZVazP','cachedSuggestionContentParts','modification','4016864DRRRgR','span','editor','data-unstable','areActionsDisabled','color:\x20#808080;\x20font-style:\x20italic','fire','new','withDiff','parsedContent','content','1301188DuFikE','modified','stopListening','done','context','nextSibling','sources','replyContentUpdated','removed','change:content','map','merge','newNodeIds','forEach','AI_SUGGESTION_CONTENT_PART_REMOVED','onContentChange','locale','previousSibling','15798bzOkQg','set','isDone','parseAndNormalizeHTML','node','updateChangeGroups','filter','replyChangeGroupStateUpdated','appendContent','destroy','documentContextContent','length','_setCachedContentParts','aiResponseApplier','modifiedNodeIds','5eSpdgx','pending','removedNodeIds','every','cloneNode','state','4518981QJGUqx','unshift','20654030kbTZJC','getContentParts'];_0x4c25=function(){return _0x1026d1;};return _0x4c25();}import{getTranslation as _0x46b3ef}from'../utils/common-translations.js';import{cloneDeep as _0x1f2152}from'es-toolkit';export class AIReply extends _0x1b0615(){['id'];[_0x5c3c72(0x1f1)];[_0x5c3c72(0x231)];[_0x5c3c72(0x20b)]=[];[_0x5c3c72(0x203)]=new _0x6084b0([]);[_0x5c3c72(0x236)]=new _0x6084b0([]);[_0x5c3c72(0x232)]=[];[_0x5c3c72(0x1fe)]=!0x1;[_0x5c3c72(0x221)];[_0x5c3c72(0x1f5)];[_0x5c3c72(0x224)];[_0x5c3c72(0x1fc)];[_0x5c3c72(0x1f8)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x50362b,content:_0x28305e='',isDone:_0x31ae27=!0x1,interactionId:_0x2ffe1c,areActionsDisabled:_0x42460a,documentContextContent:_0x434543,editor:_0xdc3966,id:_0xbebcb3}){const _0x653db5=_0x5c3c72;super(),this['id']=_0xbebcb3||_0x2a5b6b(),this[_0x653db5(0x1f1)]=_0x2ffe1c,this[_0x653db5(0x231)]=_0x50362b,this[_0x653db5(0x1fe)]=!!_0x42460a,this[_0x653db5(0x1fc)]=_0xdc3966,this[_0x653db5(0x1f5)]=new _0x54e9f7(),this[_0x653db5(0x224)]=new _0x235b2d(),this[_0x653db5(0x221)]=_0x8b3cfd(_0x434543||''),this[_0x653db5(0x218)](_0x653db5(0x219),_0x31ae27),this['on'](_0x653db5(0x20e),()=>{const _0x14e3c2=_0x653db5;this[_0x14e3c2(0x214)]();}),this[_0x653db5(0x218)](_0x653db5(0x204),_0x28305e);}[_0x5c3c72(0x21f)](_0x27c58d){const _0x4d5890=_0x5c3c72;this[_0x4d5890(0x218)](_0x4d5890(0x204),this[_0x4d5890(0x204)]+_0x27c58d);}[_0x5c3c72(0x208)](){const _0x41781b=_0x5c3c72;this[_0x41781b(0x219)]||(this[_0x41781b(0x218)](_0x41781b(0x219),!0x0),this[_0x41781b(0x214)]());}[_0x5c3c72(0x220)](){const _0x4d5ccc=_0x5c3c72;this[_0x4d5ccc(0x207)]();}[_0x5c3c72(0x1ec)](_0x9bcf58,_0x1b4747){const _0x1634ed=_0x5c3c72;this[_0x1634ed(0x232)][_0x9bcf58][_0x1634ed(0x22b)]=_0x1b4747,this[_0x1634ed(0x200)](_0x1634ed(0x21e),{'reply':this,'index':_0x9bcf58,'state':_0x1b4747});}[_0x5c3c72(0x22f)]({showDiff:_0xdfc91b,groupIndex:_0x216775}){const _0x299b43=_0x5c3c72;if(!this[_0x299b43(0x1fc)])throw new _0x360105(_0x299b43(0x1ef),null,{'aiReply':this});const _0x1b3b3a=this[_0x299b43(0x230)](_0xdfc91b,_0x216775);if(_0x1b3b3a)return _0x1b3b3a;let _0x1d8a1f=[];if(void 0x0===_0x216775)_0x1d8a1f=this[_0x299b43(0x232)];else{const _0x5c0f25=this[_0x299b43(0x232)][_0x299b43(0x1ea)](({index:_0x135a0f})=>_0x135a0f===_0x216775);if(!_0x5c0f25)throw new _0x360105(_0x299b43(0x1ee),null,{'aiReply':this,'groupIndex':_0x216775});_0x1d8a1f=[_0x5c0f25];}const _0x597825=_0x16db5a({'editor':this[_0x299b43(0x1fc)],'showDiff':_0xdfc91b,'changeGroups':_0x1d8a1f,'documentContextContent':this[_0x299b43(0x221)]});return this[_0x299b43(0x223)](_0xdfc91b,_0x597825),_0x597825;}[_0x5c3c72(0x230)](_0x15f6d5,_0x57d0ea){const _0x2e8d0b=_0x5c3c72,_0x4d153c=_0x15f6d5?_0x2e8d0b(0x202):_0x2e8d0b(0x1e9);if(!this[_0x2e8d0b(0x1f8)][_0x4d153c][_0x2e8d0b(0x222)])return null;const _0x2ed3c0=this[_0x2e8d0b(0x1f8)][_0x4d153c];if(void 0x0===_0x57d0ea)return _0x2ed3c0[_0x2e8d0b(0x222)]>0x0&&_0x2ed3c0[_0x2e8d0b(0x222)]!==this[_0x2e8d0b(0x232)][_0x2e8d0b(0x222)]?(this[_0x2e8d0b(0x223)](_0x15f6d5,null),null):_0x1f2152(_0x2ed3c0);{const _0x3ca7a8=_0x2ed3c0[_0x2e8d0b(0x1ea)](({index:_0x299fee})=>_0x299fee===_0x57d0ea);if(_0x3ca7a8)return[_0x1f2152(_0x3ca7a8)];}return null;}[_0x5c3c72(0x223)](_0x10784d,_0x187e6a){const _0x12ecdf=_0x5c3c72,_0xba5f7f=_0x10784d?_0x12ecdf(0x202):_0x12ecdf(0x1e9);_0x187e6a?_0x187e6a[_0x12ecdf(0x212)](_0x3f4ea2=>{const _0x384e6c=_0x12ecdf,_0x4a50d7=this[_0x384e6c(0x1f8)][_0xba5f7f],_0x38a516=_0x4a50d7[_0x384e6c(0x1ea)](({index:_0x17fcfa})=>_0x17fcfa===_0x3f4ea2[_0x384e6c(0x1f6)]);if(_0x38a516){const _0x599860=_0x4a50d7[_0x384e6c(0x233)](_0x38a516);_0x4a50d7[_0x384e6c(0x1e7)](_0x599860,0x1,_0x3f4ea2);}else _0x4a50d7[_0x384e6c(0x235)](_0x3f4ea2);}):this[_0x12ecdf(0x1f8)][_0xba5f7f][_0x12ecdf(0x222)]=0x0;}[_0x5c3c72(0x214)](){const _0x48bbf3=_0x5c3c72;if(_0x48bbf3(0x1f9)===this[_0x48bbf3(0x231)]){this[_0x48bbf3(0x203)]=this[_0x48bbf3(0x1f5)][_0x48bbf3(0x21a)](this[_0x48bbf3(0x204)]);const _0x7948f1=this[_0x48bbf3(0x232)];this[_0x48bbf3(0x21c)]();const _0x44c5e0=this[_0x48bbf3(0x1f3)](_0x7948f1,this[_0x48bbf3(0x232)]);(_0x44c5e0[_0x48bbf3(0x222)]||this[_0x48bbf3(0x219)])&&(this[_0x48bbf3(0x200)](_0x48bbf3(0x20c),this,_0x44c5e0),this[_0x48bbf3(0x1f8)][_0x48bbf3(0x202)][_0x48bbf3(0x222)]=this[_0x48bbf3(0x1f8)][_0x48bbf3(0x1e9)][_0x48bbf3(0x222)]=0x0);}else this[_0x48bbf3(0x203)]=this[_0x48bbf3(0x1f5)][_0x48bbf3(0x234)](this[_0x48bbf3(0x204)]),this[_0x48bbf3(0x200)](_0x48bbf3(0x20c),this);}[_0x5c3c72(0x1f3)](_0x584572,_0x31c22d){const _0x435294=_0x5c3c72,_0x43ec5b=[];for(const _0x32f0f7 of _0x31c22d){const _0x46ef9a=_0x584572[_0x32f0f7[_0x435294(0x1f6)]];_0x46ef9a?_0x46ef9a[_0x435294(0x1eb)][_0x435294(0x222)]!==_0x32f0f7[_0x435294(0x1eb)][_0x435294(0x222)]?_0x43ec5b[_0x435294(0x235)](_0x32f0f7):_0x46ef9a[_0x435294(0x1eb)][_0x435294(0x212)]((_0x3289ca,_0x272341)=>{const _0x2146fe=_0x435294,_0x61f204=_0x32f0f7[_0x2146fe(0x1eb)][_0x272341];_0x3289ca['id']!==_0x61f204['id']&&_0x43ec5b[_0x2146fe(0x235)](_0x32f0f7);}):_0x43ec5b[_0x435294(0x235)](_0x32f0f7);}return _0x43ec5b;}[_0x5c3c72(0x21c)](){const _0x2065bd=_0x5c3c72,_0x2f7d41=new _0x93cc4b('p',{},[new _0x93cc4b(_0x2065bd(0x1fb),{'style':_0x2065bd(0x1ff)},[new _0x9d1f39(_0x46b3ef(this[_0x2065bd(0x1fc)][_0x2065bd(0x215)],_0x2065bd(0x213)))])]),_0x2e0528=this[_0x2065bd(0x224)][_0x2065bd(0x210)](this[_0x2065bd(0x203)],this[_0x2065bd(0x221)][_0x2065bd(0x22a)](!0x0),{'markUnstableElements':!this[_0x2065bd(0x219)],'replaceRemovedWith':_0x2f7d41,'cutAfterLastChange':!this[_0x2065bd(0x219)]});if(!_0x2e0528[_0x2065bd(0x225)][_0x2065bd(0x222)]&&!this[_0x2065bd(0x219)])return;this[_0x2065bd(0x236)]=_0x2e0528[_0x2065bd(0x203)];let _0x300518=[];if(_0x831b50(_0x25d184=>{const _0x42e284=_0x2065bd,_0x1f7b72=_0x4545cc(_0x25d184,_0x42e284(0x1f4));if(!_0x1f7b72||!_0x40b08c(_0x1f7b72))return!0x1;const _0x497b7f=[_0x25d184,..._0x5f3f2e(_0x25d184)]['at'](-0x2);if(_0x25d184!=_0x497b7f){const _0x558316=_0x4545cc(_0x497b7f,_0x42e284(0x1f4));_0x40b08c(_0x558316)||(_0x300518[_0x42e284(0x235)]({'node':_0x497b7f,'id':_0x558316,'type':_0x42e284(0x206)}),_0x2e0528[_0x42e284(0x225)][_0x42e284(0x235)](_0x558316));}else _0x2e0528[_0x42e284(0x225)][_0x42e284(0x1f0)](_0x1f7b72)?_0x300518[_0x42e284(0x235)]({'node':_0x25d184,'type':_0x42e284(0x206),'id':_0x1f7b72}):_0x2e0528[_0x42e284(0x211)][_0x42e284(0x1f0)](_0x1f7b72)?_0x300518[_0x42e284(0x235)]({'node':_0x25d184,'type':_0x42e284(0x201),'id':_0x1f7b72,'anchorId':_0x4545cc(_0x25d184[_0x42e284(0x216)],_0x42e284(0x1f4))}):_0x300518[_0x42e284(0x235)]({'node':_0x25d184,'type':_0x42e284(0x20d),'id':_0x1f7b72});return!0x0;},this[_0x2065bd(0x236)]),_0x300518=_0x300518[_0x2065bd(0x21d)](({node:_0x5111b0})=>[..._0x5f3f2e(_0x5111b0),_0x5111b0][_0x2065bd(0x229)](_0x523588=>!_0x4545cc(_0x523588,_0x2065bd(0x1fd)))),0x0==_0x300518[_0x2065bd(0x222)])return;const _0x5b8f92=[[_0x300518[0x0]]];for(let _0x54cc00=0x1;_0x54cc00<_0x300518[_0x2065bd(0x222)];_0x54cc00++){const _0x4a5645=_0x5b8f92[_0x5b8f92[_0x2065bd(0x222)]-0x1],_0x575733=_0x4a5645[_0x4a5645[_0x2065bd(0x222)]-0x1];_0x300518[_0x54cc00][_0x2065bd(0x21b)][_0x2065bd(0x216)]==_0x575733[_0x2065bd(0x21b)]&&_0x2065bd(0x206)!=_0x300518[_0x54cc00][_0x2065bd(0x231)]&&_0x2065bd(0x206)!=_0x575733[_0x2065bd(0x231)]?_0x4a5645[_0x2065bd(0x235)](_0x300518[_0x54cc00]):_0x5b8f92[_0x2065bd(0x235)]([_0x300518[_0x54cc00]]);}for(const _0x308fc1 of _0x5b8f92){const _0x1d7a86=_0x308fc1[0x0],_0x279c22=_0x308fc1[_0x308fc1[_0x2065bd(0x222)]-0x1],_0x2f8391=_0x12d626(_0x1d7a86[_0x2065bd(0x21b)][_0x2065bd(0x216)]);_0x2f8391&&_0x308fc1[_0x2065bd(0x22d)](_0x2f8391);const _0x28ce5b=_0x12d626(_0x279c22[_0x2065bd(0x21b)][_0x2065bd(0x20a)]);_0x28ce5b&&_0x308fc1[_0x2065bd(0x235)](_0x28ce5b);}function _0x40b08c(_0x38b71d){const _0x12c17c=_0x2065bd;return _0x2e0528[_0x12c17c(0x225)][_0x12c17c(0x1f0)](_0x38b71d)||_0x2e0528[_0x12c17c(0x211)][_0x12c17c(0x1f0)](_0x38b71d)||_0x2e0528[_0x12c17c(0x228)][_0x12c17c(0x1f0)](_0x38b71d);}function _0x12d626(_0x1affff){const _0x1257e7=_0x2065bd;if(_0x1affff&&_0x4545cc(_0x1affff,_0x1257e7(0x1f4))&&!_0x4545cc(_0x1affff,_0x1257e7(0x1fd))){const _0x500bf8=_0x4545cc(_0x1affff,_0x1257e7(0x1f4));if(!_0x40b08c(_0x500bf8))return{'node':_0x1affff,'type':_0x1257e7(0x209),'id':_0x500bf8};}return null;}this[_0x2065bd(0x232)]=_0x5b8f92[_0x2065bd(0x20f)]((_0x2c09b8,_0x1400b4)=>({'changes':_0x2c09b8,'state':_0x2065bd(0x227),'index':_0x1400b4}));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
_0x4134ed(){[_0x2cd79d(0xfe)];[_0x2cd79d(0x10f)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x2cd79d(0xf0)]=new Set();constructor(_0x3ee483){const _0xbcd9e9=_0x2cd79d;super(),this[_0xbcd9e9(0xfe)]=_0x3ee483||_0x393d5b;}[_0x2cd79d(0xe9)](_0x1efb4e,_0x3c0741,_0x3faf57){const _0x7c060c=_0x2cd79d,_0x46af8e=_0x43e495(_0x1efb4e);if(0x0===_0x3c0741[_0x7c060c(0x117)][_0x7c060c(0x114)]){const _0x44cf02=[];return _0x3e8e80(_0x7c060c(0xf8),_0x7c060c(0xef),_0x46af8e)[_0x7c060c(0xf7)](_0x3bce19=>{const _0xd3b0c4=_0x7c060c,_0x1caaf4=this[_0xd3b0c4(0xfe)]();_0x4bce9b(_0x3bce19,_0xd3b0c4(0xf8),_0x1caaf4),_0x44cf02[_0xd3b0c4(0x101)](_0x1caaf4);}),this[_0x7c060c(0xfc)](_0x46af8e),{'parsedContent':_0x46af8e,'newNodeIds':_0x44cf02,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x3faf57&&_0x3faf57[_0x7c060c(0xeb)]&&this[_0x7c060c(0x110)](_0x46af8e),this[_0x7c060c(0x10f)][_0x7c060c(0xe0)]=[],this[_0x7c060c(0x10f)][_0x7c060c(0xe3)]=[],this[_0x7c060c(0x10f)][_0x7c060c(0x118)]=[],this[_0x7c060c(0x10f)][_0x7c060c(0xf6)]=[],this[_0x7c060c(0x10f)][_0x7c060c(0x10e)]=null,this[_0x7c060c(0xf0)]=new Set(_0x3e8e80(_0x7c060c(0xf8),null,_0x3c0741)[_0x7c060c(0x10c)](_0x18ed8a=>_0x3a322e(_0x18ed8a,_0x7c060c(0xf8)))[_0x7c060c(0x10b)](_0x1552e2=>!!_0x1552e2));let _0x5e12b=-0x1,_0x3eb34a=!0x1;const _0x24f84c=_0x46af8e[_0x7c060c(0x117)],_0x50f34b=Array[_0x7c060c(0xdd)](_0x24f84c)[_0x7c060c(0x10b)](_0x5bf04a=>!(0x3===_0x5bf04a[_0x7c060c(0xe5)]&&''===_0x40eb07(_0x5bf04a)[_0x7c060c(0x106)]())),_0x52c3e3=_0x50f34b[_0x7c060c(0x114)];for(let _0x2e18cb=0x0;_0x2e18cb<_0x52c3e3;_0x2e18cb++){const _0x438e49=_0x50f34b[_0x2e18cb],_0x37dc40=_0x50f34b[_0x2e18cb+0x1];if(this[_0x7c060c(0xfd)](_0x438e49)){if(-0x1===_0x5e12b&&(_0x5e12b=_0x2e18cb),this[_0x7c060c(0xe6)](_0x438e49),!this[_0x7c060c(0xfd)](_0x37dc40)){const [_0x40b01e,_0x53f330]=this[_0x7c060c(0xd9)](_0x438e49,_0x3eb34a,_0x3c0741);if(_0x40b01e){const _0x80e68c=Array[_0x7c060c(0xdd)](_0x50f34b)[_0x7c060c(0x104)](_0x5e12b,_0x2e18cb+0x1);this[_0x7c060c(0x11b)](_0x40b01e,_0x80e68c,_0x53f330),_0x5e12b=-0x1;}}}else{if(this[_0x7c060c(0x113)](_0x438e49))_0x3eb34a=!0x0;else{if(this[_0x7c060c(0xec)](_0x438e49)){const _0x1a7ba6=_0x3a322e(_0x438e49,_0x7c060c(0xf8));if(_0x1a7ba6&&this[_0x7c060c(0xf0)][_0x7c060c(0x102)](_0x1a7ba6)){const _0x18ec3d=_0x37d6af(_0x7c060c(0xf8),_0x1a7ba6,_0x3c0741);this[_0x7c060c(0x109)](_0x18ec3d,_0x438e49);}if(this[_0x7c060c(0x10f)][_0x7c060c(0x118)][_0x7c060c(0x11a)](_0x1a7ba6)){const _0x3e9352=this[_0x7c060c(0x10f)][_0x7c060c(0x118)][_0x7c060c(0x11c)](_0x1a7ba6);this[_0x7c060c(0x10f)][_0x7c060c(0x118)][_0x7c060c(0x105)](_0x3e9352,0x1);}}else{if(this[_0x7c060c(0xe4)](_0x438e49)){const _0x553670=_0x3a322e(_0x438e49,_0x7c060c(0xf8));this[_0x7c060c(0x10f)][_0x7c060c(0xe3)][_0x7c060c(0x11a)](_0x553670)||this[_0x7c060c(0xed)](_0x438e49);}}}}}for(const _0x49e71c of this[_0x7c060c(0x10f)][_0x7c060c(0x118)]){const _0x2bb218=_0x37d6af(_0x7c060c(0xf8),_0x49e71c,_0x3c0741);if(_0x2bb218){if(_0x3faf57&&_0x3faf57[_0x7c060c(0xe2)]){this[_0x7c060c(0x10f)][_0x7c060c(0x10e)]=_0x49e71c;const _0x26fc62=_0x3faf57[_0x7c060c(0xe2)][_0x7c060c(0xf1)](!0x0);_0x4bce9b(_0x26fc62,_0x7c060c(0xf8),_0x49e71c),_0x4bce9b(_0x26fc62,_0x7c060c(0x120),_0x7c060c(0x119)),_0x1122de(_0x2bb218,_0x26fc62);}else _0x59786a(_0x2bb218);}}if(_0x3e8e80(_0x7c060c(0x112),null,_0x3c0741)[_0x7c060c(0xf7)](_0x54a439=>{const _0x9626e7=_0x7c060c,_0x39b380=_0x3a322e(_0x54a439,_0x9626e7(0x112)),_0x10ceba=_0x37d6af(_0x9626e7(0xf8),_0x39b380,_0x3c0741);_0x10ceba&&_0x3d4200(_0x10ceba,_0x54a439);}),_0x3e8e80(_0x7c060c(0xf8),_0x7c060c(0xef),_0x3c0741)[_0x7c060c(0xf7)](_0x2895f5=>{const _0xc6444d=_0x7c060c,_0x4f0cd3=this[_0xc6444d(0xf5)](_0x2895f5);_0x4bce9b(_0x2895f5,_0xc6444d(0xf8),_0x4f0cd3),this[_0xc6444d(0x10f)][_0xc6444d(0xe0)][_0xc6444d(0x101)](_0x4f0cd3);}),this[_0x7c060c(0xfc)](_0x3c0741),_0x3faf57&&_0x3faf57[_0x7c060c(0xeb)]&&this[_0x7c060c(0xde)](_0x3c0741,_0x3faf57[_0x7c060c(0xf9)]||0x0),_0x3faf57&&_0x3faf57[_0x7c060c(0x111)]&&this[_0x7c060c(0x10f)][_0x7c060c(0x10e)]){let _0x655e77=_0x37d6af(_0x7c060c(0xf8),this[_0x7c060c(0x10f)][_0x7c060c(0x10e)],_0x3c0741);for(;_0x655e77;)_0x18a5dd(_0x655e77),_0x655e77=_0x655e77[_0x7c060c(0xdb)];}return{'parsedContent':_0x3c0741,'newNodeIds':this[_0x7c060c(0x10f)][_0x7c060c(0xe0)],'modifiedNodeIds':this[_0x7c060c(0x10f)][_0x7c060c(0xe3)],'removedNodeIds':this[_0x7c060c(0x10f)][_0x7c060c(0x118)]};}[_0x2cd79d(0x11b)](_0x345d26,_0x2232b0,_0x1b3c43){const _0x4250d1=_0x2cd79d;for(const _0xc17e8c of _0x2232b0){const _0x14f2ad=this[_0x4250d1(0xf5)](_0xc17e8c);_0x4bce9b(_0xc17e8c,_0x4250d1(0xf8),_0x14f2ad),this[_0x4250d1(0x10f)][_0x4250d1(0xe0)][_0x4250d1(0x101)](_0x14f2ad),this[_0x4250d1(0x10f)][_0x4250d1(0x10e)]=_0x14f2ad;}const _0xb90da7=_0x4250d1(0x115)===_0x1b3c43||_0x4250d1(0x11e)===_0x1b3c43?_0x2232b0[_0x4250d1(0x11f)]():_0x2232b0;for(const _0x7ccfc2 of _0xb90da7)_0x4ee6a2(_0x345d26,_0x7ccfc2,_0x1b3c43);}[_0x2cd79d(0x109)](_0x290b48,_0x5b0f93){const _0x3870c4=_0x2cd79d;if(!_0x290b48)return;if(_0x404f37(_0x290b48,_0x5b0f93))return;const _0x30702e=this[_0x3870c4(0xf5)](_0x290b48);_0x4bce9b(_0x5b0f93,_0x3870c4(0xf8),_0x30702e),this[_0x3870c4(0x10f)][_0x3870c4(0xe3)][_0x3870c4(0x101)](_0x30702e),this[_0x3870c4(0x10f)][_0x3870c4(0x10e)]=_0x30702e,_0x1122de(_0x290b48,_0x5b0f93[_0x3870c4(0xf1)](!0x0));}[_0x2cd79d(0xd9)](_0x1475c7,_0x4d5d83,_0x168573){const _0x217fa6=_0x2cd79d,_0x11d50d=this[_0x217fa6(0xda)](_0x1475c7,!0x1);if(_0x11d50d){const _0x14d871=this[_0x217fa6(0xdf)](_0x11d50d),_0x577332=_0x37d6af(_0x217fa6(0xf8),_0x14d871,_0x168573);if(_0x577332)return[_0x577332,_0x217fa6(0x11e)];this[_0x217fa6(0x10f)][_0x217fa6(0xf6)][_0x217fa6(0x101)](_0x14d871);}const _0x57638c=this[_0x217fa6(0xee)](_0x1475c7,!0x1);if(_0x57638c){const _0x283270=this[_0x217fa6(0xdf)](_0x57638c),_0x10acf8=_0x37d6af(_0x217fa6(0xf8),_0x283270,_0x168573);if(_0x10acf8)return[_0x10acf8,_0x217fa6(0x116)];this[_0x217fa6(0x10f)][_0x217fa6(0xf6)][_0x217fa6(0x101)](_0x283270);}return _0x4d5d83?_0x1475c7[_0x217fa6(0x103)]?this[_0x217fa6(0x107)](_0x1475c7,_0x168573):[_0x168573[_0x217fa6(0x117)][_0x168573[_0x217fa6(0x117)][_0x217fa6(0x114)]-0x1],_0x217fa6(0x11e)]:[_0x168573[_0x217fa6(0x117)][0x0],_0x217fa6(0x116)];}[_0x2cd79d(0x107)](_0xb2f8d5,_0x374233){const _0x2cc91c=_0x2cd79d,_0x2b3943=[],_0x3c01bd=this[_0x2cc91c(0xda)](_0xb2f8d5,!0x0);if(_0x3c01bd){const _0x5934c7=this[_0x2cc91c(0xdf)](_0x3c01bd),_0x43f434=_0x37d6af(_0x2cc91c(0xf8),_0x5934c7,_0x374233);_0x43f434&&_0x2b3943[_0x2cc91c(0x101)]([_0x43f434,_0x2cc91c(0x11e)]);}const _0x2da2b2=this[_0x2cc91c(0xee)](_0xb2f8d5,!0x0);if(_0x2da2b2){const _0x5ae065=this[_0x2cc91c(0xdf)](_0x2da2b2),_0x1df23c=_0x37d6af(_0x2cc91c(0xf8),_0x5ae065,_0x374233);_0x1df23c&&_0x2b3943[_0x2cc91c(0x101)]([_0x1df23c,_0x2cc91c(0x116)]);}if(_0x2b3943[_0x2cc91c(0x114)]>0x1)return _0x5546a3(_0x2b3943[0x0][0x0])<=_0x5546a3(_0x2b3943[0x1][0x0])?_0x2b3943[0x0]:_0x2b3943[0x1];return 0x1===_0x2b3943[_0x2cc91c(0x114)]?_0x2b3943[0x0]:[_0x374233[_0x2cc91c(0xf2)],_0x2cc91c(0x11e)];}[_0x2cd79d(0xee)](_0x56ef4a,_0x3b6233){const _0x164a0f=_0x2cd79d;let _0x19a039=_0x56ef4a[_0x164a0f(0x103)],_0x547ed3=null,_0x4f5bb8=!0x1;for(;_0x19a039;){if(_0x14d468(_0x19a039)){if(this[_0x164a0f(0xe4)](_0x19a039)&&(_0x547ed3=_0x19a039),this[_0x164a0f(0x113)](_0x19a039)&&_0x3b6233&&!_0x4f5bb8){_0x4f5bb8=!0x0,_0x19a039=_0x19a039[_0x164a0f(0x103)];continue;}break;}const _0x23e0a9=_0x3a322e(_0x19a039,_0x164a0f(0xf8));if(_0x23e0a9&&_0x164a0f(0xef)!==_0x23e0a9&&this[_0x164a0f(0xf0)][_0x164a0f(0x102)](_0x23e0a9)){_0x547ed3=_0x19a039;break;}_0x19a039=_0x19a039[_0x164a0f(0x103)];}return _0x547ed3;}[_0x2cd79d(0xda)](_0x196a83,_0x4d24ac){const _0x109111=_0x2cd79d;let _0x622d75=_0x196a83[_0x109111(0x100)],_0x3f1f15=null,_0x3bd115=!0x1;for(;_0x622d75;){if(_0x14d468(_0x622d75)){if(this[_0x109111(0xe4)](_0x622d75)&&(_0x3f1f15=_0x622d75),this[_0x109111(0x113)](_0x622d75)&&_0x4d24ac&&!_0x3bd115){_0x3bd115=!0x0,_0x622d75=_0x622d75[_0x109111(0x100)];continue;}break;}const _0x38d21b=_0x3a322e(_0x622d75,_0x109111(0xf8));if(_0x38d21b&&_0x109111(0xef)!==_0x38d21b&&this[_0x109111(0xf0)][_0x109111(0x102)](_0x38d21b)){_0x3f1f15=_0x622d75;break;}_0x622d75=_0x622d75[_0x109111(0x100)];}return _0x3f1f15;}[_0x2cd79d(0xe6)](_0x1ae3eb){const _0x9c3f37=_0x2cd79d;_0x1b8a05(_0x1ae3eb)&&_0x3e8e80(_0x9c3f37(0xf8),null,_0x1ae3eb)[_0x9c3f37(0xf7)](_0xf5487b=>{const _0x24d8e6=_0x9c3f37;if(this[_0x24d8e6(0xec)](_0xf5487b)&&!this[_0x24d8e6(0xe7)](_0xf5487b)){const _0x17c0ba=_0x3a322e(_0xf5487b,_0x24d8e6(0xf8));_0x4bce9b(_0xf5487b,_0x24d8e6(0x112),_0x17c0ba),_0x4bce9b(_0xf5487b,_0x24d8e6(0xf8),null);}});}[_0x2cd79d(0xdf)](_0x459592){const _0x349444=_0x2cd79d;if(!_0x459592)return null;if(_0x1b8a05(_0x459592))return _0x3a322e(_0x459592,_0x349444(0xf8));if(_0x14d468(_0x459592)){const _0xc914c7=_0x40eb07(_0x459592)[_0x349444(0xe1)](/removed[\s*-]data-id="([^"]+)"/);if(_0xc914c7&&_0xc914c7[0x1])return _0xc914c7[0x1];}return null;}[_0x2cd79d(0xed)](_0x3fb61a){const _0x58a5d7=_0x2cd79d;if(_0x14d468(_0x3fb61a)){const _0x2b238b=_0x40eb07(_0x3fb61a)[_0x58a5d7(0xe1)](/removed[\s*-]data-id="([^"]+)"/);_0x2b238b&&_0x2b238b[0x1]&&this[_0x58a5d7(0x10f)][_0x58a5d7(0x118)][_0x58a5d7(0x101)](_0x2b238b[0x1]);}}[_0x2cd79d(0xf5)](_0x43ac64){const _0x3a3782=_0x2cd79d;return this[_0x3a3782(0xec)](_0x43ac64)?_0x3a322e(_0x43ac64,_0x3a3782(0xf8)):this[_0x3a3782(0xfe)]();}[_0x2cd79d(0xfc)](_0x1eb367){const _0x21853c=_0x2cd79d;_0x2c09d0(_0x1eb367)[_0x21853c(0x10b)](_0x5de079=>this[_0x21853c(0xe4)](_0x5de079)||this[_0x21853c(0x113)](_0x5de079))[_0x21853c(0xf7)](_0x5f4000=>{_0x59786a(_0x5f4000);});}[_0x2cd79d(0x110)](_0x51c38b){const _0x391bf8=_0x2cd79d,_0x576229=_0x51c38b[_0x391bf8(0x117)],_0x2da2b9=_0x576229[_0x576229[_0x391bf8(0x114)]-0x1];_0x2da2b9&&_0x1b8a05(_0x2da2b9)&&_0x4bce9b(_0x2da2b9,_0x391bf8(0x108),_0x391bf8(0x119));}[_0x2cd79d(0xde)](_0x2b8d23,_0x2c6882){const _0x161b0b=_0x2cd79d,_0x4d6d3a=_0x37d6af(_0x161b0b(0x108),_0x161b0b(0x119),_0x2b8d23);if(!_0x4d6d3a)return;const _0x5d996f=_0x263565(_0x4d6d3a)[_0x161b0b(0x104)](0x0,-0x1),_0x17a138=_0x5d996f[_0x161b0b(0x114)];let _0x532522=_0x4d6d3a;if(_0x17a138>_0x2c6882){let _0x3fc356=_0x17a138,_0x1b7d0c=null;for(;_0x3fc356>_0x2c6882&&_0x3fc356>=0x0;)_0x3fc356--,_0x1b7d0c=_0x5d996f[_0x3fc356];_0x1b7d0c&&(_0x532522=_0x1b7d0c,_0x4bce9b(_0x4d6d3a,_0x161b0b(0x108),null),_0x4bce9b(_0x1b7d0c,_0x161b0b(0x108),_0x161b0b(0x119)));}else{if(_0x17a138<_0x2c6882){let _0x1b6600=_0x17a138,_0x5a587f=_0x4d6d3a;for(;_0x1b6600<_0x2c6882;){const _0x21308a=_0x5a587f[_0x161b0b(0x117)][_0x161b0b(0x10b)](_0x3931a4=>_0x1b8a05(_0x3931a4));if(0x0===_0x21308a[_0x161b0b(0x114)])break;_0x1b6600++,_0x5a587f=_0x21308a[_0x21308a[_0x161b0b(0x114)]-0x1];}_0x5a587f&&(_0x532522=_0x5a587f,_0x4bce9b(_0x4d6d3a,_0x161b0b(0x108),null),_0x4bce9b(_0x5a587f,_0x161b0b(0x108),_0x161b0b(0x119)));}}let _0xbe69b5=_0x532522;for(;_0xbe69b5;){for(;_0xbe69b5[_0x161b0b(0x103)];)_0xbe69b5=_0xbe69b5[_0x161b0b(0x103)],_0x1b8a05(_0xbe69b5)&&_0x4bce9b(_0xbe69b5,_0x161b0b(0x108),_0x161b0b(0x119));_0xbe69b5=_0xbe69b5[_0x161b0b(0xdb)];}}[_0x2cd79d(0xfd)](_0x3cc4b8){const _0x80d90e=_0x2cd79d;return Boolean(_0x80d90e(0xef)===_0x3a322e(_0x3cc4b8,_0x80d90e(0xf8)));}[_0x2cd79d(0xec)](_0xecfd4e){const _0x10c61c=_0x2cd79d;return Boolean((_0x3a322e(_0xecfd4e,_0x10c61c(0xf8))||'')[_0x10c61c(0x114)]>0x0&&_0x10c61c(0xef)!==_0x3a322e(_0xecfd4e,_0x10c61c(0xf8)));}[_0x2cd79d(0xe4)](_0x2866a1){const _0x4d4d0d=_0x2cd79d;return!!_0x2866a1&&Boolean(_0x14d468(_0x2866a1)&&_0x40eb07(_0x2866a1)[_0x4d4d0d(0xe1)](/removed[\s*-]data-id="[^"]+"/));}[_0x2cd79d(0xe7)](_0x352302){const _0x54b730=_0x2cd79d;let _0x5cc604=_0x352302[_0x54b730(0xdb)];for(;_0x5cc604;){if(_0x3a322e(_0x5cc604,_0x54b730(0x112)))return!0x0;_0x5cc604=_0x5cc604[_0x54b730(0xdb)];}return!0x1;}[_0x2cd79d(0x113)](_0x4941e8){const _0xd28efd=_0x2cd79d;return Boolean(_0x14d468(_0x4941e8)&&_0x40eb07(_0x4941e8)[_0xd28efd(0xe1)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
23
|
+
const _0x1c3e92=_0x5c10;(function(_0x21550e,_0x2538f8){const _0x4f2fe8=_0x5c10,_0x55d0ba=_0x21550e();while(!![]){try{const _0x296126=-parseInt(_0x4f2fe8(0x170))/0x1+-parseInt(_0x4f2fe8(0x15f))/0x2+-parseInt(_0x4f2fe8(0x166))/0x3+-parseInt(_0x4f2fe8(0x154))/0x4*(-parseInt(_0x4f2fe8(0x14b))/0x5)+parseInt(_0x4f2fe8(0x174))/0x6+-parseInt(_0x4f2fe8(0x186))/0x7*(parseInt(_0x4f2fe8(0x185))/0x8)+parseInt(_0x4f2fe8(0x179))/0x9;if(_0x296126===_0x2538f8)break;else _0x55d0ba['push'](_0x55d0ba['shift']());}catch(_0x345435){_0x55d0ba['push'](_0x55d0ba['shift']());}}}(_0x204d,0x576f7));function _0x5c10(_0x476ae6,_0x5e9d06){const _0x204d6d=_0x204d();return _0x5c10=function(_0x5c109f,_0x5cdbaf){_0x5c109f=_0x5c109f-0x14a;let _0x47f12b=_0x204d6d[_0x5c109f];return _0x47f12b;},_0x5c10(_0x476ae6,_0x5e9d06);}import{ObservableMixin as _0x391279,uid as _0x1767a6}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x2a28f8,findByAttribute as _0x36afba,getAttribute as _0x2113e3,isComment as _0x5e308f,isTag as _0x488098,insertElement as _0x5572c9,moveElement as _0xd3589,removeElement as _0x54eeb6,replaceElement as _0xb034e7,serialize as _0x4886da,setAttribute as _0x537175,clone as _0x5b0453,findAllComments as _0x47c108,getParents as _0x16be54,getNodeNestingLevel as _0x37c381,areNodesSame as _0xd005d6,removeElementsAfter as _0xc23d58}from'../utils/htmlparser.js';function _0x204d(){const _0x551adf=['has','new-element','28972pvlzdH','_touchedNodesState','from','_markWrappedElements','_markUnstableElements','_existingDataIds','_insertNodes','183075zZFvvu','_hasWrappedParent','includes','_isExistingContentComment','modifiedIds','_findFallbackReferenceNode','markUnstableElements','afterbegin','lastTouchedId','_getUid','588033Durphd','childNodes','_findNextElementWithDataId','indexOf','1411128pAxWIq','_isExistingNode','removedIds','_isNewNode','trim','6122889gdUnBY','invalidIds','markUnstableElementsDepth','_replaceNode','data-wrapped-id','replaceRemovedWith','nextSibling','parentNode','_markLastTagElementUnstable','merge','true','_storeDeletedElementIds','8mhpEkN','558565wpIdsU','_removeSpecialComments','afterend','splice','cloneNode','forEach','reverse','data-id','previousSibling','slice','push','65hTERrI','nodeType','_getNodeDataId','length','match','newIds','lastChild','filter','data-removed','57220FlUZeM','_isDelNode','data-unstable','beforebegin','map','_findReferenceNode','_findPrevElementWithDataId','_generateUid','cutAfterLastChange'];_0x204d=function(){return _0x551adf;};return _0x204d();}export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x391279(){[_0x1c3e92(0x15b)];[_0x1c3e92(0x160)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x1c3e92(0x164)]=new Set();constructor(_0x34ca27){const _0x1d3e8b=_0x1c3e92;super(),this[_0x1d3e8b(0x15b)]=_0x34ca27||_0x1767a6;}[_0x1c3e92(0x182)](_0x598072,_0x2c6bd8,_0xb9a2cb){const _0x4804fa=_0x1c3e92,_0x2bd91a=_0x5b0453(_0x598072);if(0x0===_0x2c6bd8[_0x4804fa(0x171)][_0x4804fa(0x14e)]){const _0x37aa58=[];return _0x2a28f8(_0x4804fa(0x18d),_0x4804fa(0x15e),_0x2bd91a)[_0x4804fa(0x18b)](_0x268597=>{const _0xb9ff68=_0x4804fa,_0x4f76d4=this[_0xb9ff68(0x15b)]();_0x537175(_0x268597,_0xb9ff68(0x18d),_0x4f76d4),_0x37aa58[_0xb9ff68(0x14a)](_0x4f76d4);}),this[_0x4804fa(0x187)](_0x2bd91a),{'parsedContent':_0x2bd91a,'newNodeIds':_0x37aa58,'modifiedNodeIds':[],'removedNodeIds':[]};}_0xb9a2cb&&_0xb9a2cb[_0x4804fa(0x16c)]&&this[_0x4804fa(0x181)](_0x2bd91a),this[_0x4804fa(0x160)][_0x4804fa(0x150)]=[],this[_0x4804fa(0x160)][_0x4804fa(0x16a)]=[],this[_0x4804fa(0x160)][_0x4804fa(0x176)]=[],this[_0x4804fa(0x160)][_0x4804fa(0x17a)]=[],this[_0x4804fa(0x160)][_0x4804fa(0x16e)]=null,this[_0x4804fa(0x164)]=new Set(_0x2a28f8(_0x4804fa(0x18d),null,_0x2c6bd8)[_0x4804fa(0x158)](_0x2badf3=>_0x2113e3(_0x2badf3,_0x4804fa(0x18d)))[_0x4804fa(0x152)](_0x48c5e1=>!!_0x48c5e1));let _0x2e57fd=-0x1,_0x4e097c=!0x1;const _0x242725=_0x2bd91a[_0x4804fa(0x171)],_0x3a73fa=Array[_0x4804fa(0x161)](_0x242725)[_0x4804fa(0x152)](_0x4a3bce=>!(0x3===_0x4a3bce[_0x4804fa(0x14c)]&&''===_0x4886da(_0x4a3bce)[_0x4804fa(0x178)]())),_0x4d7f08=_0x3a73fa[_0x4804fa(0x14e)];for(let _0x8cb1b=0x0;_0x8cb1b<_0x4d7f08;_0x8cb1b++){const _0x1bb44f=_0x3a73fa[_0x8cb1b],_0x766322=_0x3a73fa[_0x8cb1b+0x1];if(this[_0x4804fa(0x177)](_0x1bb44f)){if(-0x1===_0x2e57fd&&(_0x2e57fd=_0x8cb1b),this[_0x4804fa(0x162)](_0x1bb44f),!this[_0x4804fa(0x177)](_0x766322)){const [_0x9530c,_0x12e136]=this[_0x4804fa(0x159)](_0x1bb44f,_0x4e097c,_0x2c6bd8);if(_0x9530c){const _0x1a5059=Array[_0x4804fa(0x161)](_0x3a73fa)[_0x4804fa(0x18f)](_0x2e57fd,_0x8cb1b+0x1);this[_0x4804fa(0x165)](_0x9530c,_0x1a5059,_0x12e136),_0x2e57fd=-0x1;}}}else{if(this[_0x4804fa(0x169)](_0x1bb44f))_0x4e097c=!0x0;else{if(this[_0x4804fa(0x175)](_0x1bb44f)){const _0x2b6e66=_0x2113e3(_0x1bb44f,_0x4804fa(0x18d));if(_0x2b6e66&&this[_0x4804fa(0x164)][_0x4804fa(0x15d)](_0x2b6e66)){const _0xa74636=_0x36afba(_0x4804fa(0x18d),_0x2b6e66,_0x2c6bd8);this[_0x4804fa(0x17c)](_0xa74636,_0x1bb44f);}if(this[_0x4804fa(0x160)][_0x4804fa(0x176)][_0x4804fa(0x168)](_0x2b6e66)){const _0x416991=this[_0x4804fa(0x160)][_0x4804fa(0x176)][_0x4804fa(0x173)](_0x2b6e66);this[_0x4804fa(0x160)][_0x4804fa(0x176)][_0x4804fa(0x189)](_0x416991,0x1);}}else{if(this[_0x4804fa(0x155)](_0x1bb44f)){const _0x18fab9=_0x2113e3(_0x1bb44f,_0x4804fa(0x18d));this[_0x4804fa(0x160)][_0x4804fa(0x16a)][_0x4804fa(0x168)](_0x18fab9)||this[_0x4804fa(0x184)](_0x1bb44f);}}}}}for(const _0xf55913 of this[_0x4804fa(0x160)][_0x4804fa(0x176)]){const _0x59c59b=_0x36afba(_0x4804fa(0x18d),_0xf55913,_0x2c6bd8);if(_0x59c59b){if(_0xb9a2cb&&_0xb9a2cb[_0x4804fa(0x17e)]){this[_0x4804fa(0x160)][_0x4804fa(0x16e)]=_0xf55913;const _0x3815e1=_0xb9a2cb[_0x4804fa(0x17e)][_0x4804fa(0x18a)](!0x0);_0x537175(_0x3815e1,_0x4804fa(0x18d),_0xf55913),_0x537175(_0x3815e1,_0x4804fa(0x153),_0x4804fa(0x183)),_0xb034e7(_0x59c59b,_0x3815e1);}else _0x54eeb6(_0x59c59b);}}if(_0x2a28f8(_0x4804fa(0x17d),null,_0x2c6bd8)[_0x4804fa(0x18b)](_0x1cb942=>{const _0x1d4cdc=_0x4804fa,_0x58facf=_0x2113e3(_0x1cb942,_0x1d4cdc(0x17d)),_0x38082b=_0x36afba(_0x1d4cdc(0x18d),_0x58facf,_0x2c6bd8);_0x38082b&&_0xd3589(_0x38082b,_0x1cb942);}),_0x2a28f8(_0x4804fa(0x18d),_0x4804fa(0x15e),_0x2c6bd8)[_0x4804fa(0x18b)](_0x58d67f=>{const _0x41835a=_0x4804fa,_0xd93a07=this[_0x41835a(0x16f)](_0x58d67f);_0x537175(_0x58d67f,_0x41835a(0x18d),_0xd93a07),this[_0x41835a(0x160)][_0x41835a(0x150)][_0x41835a(0x14a)](_0xd93a07);}),this[_0x4804fa(0x187)](_0x2c6bd8),_0xb9a2cb&&_0xb9a2cb[_0x4804fa(0x16c)]&&this[_0x4804fa(0x163)](_0x2c6bd8,_0xb9a2cb[_0x4804fa(0x17b)]||0x0),_0xb9a2cb&&_0xb9a2cb[_0x4804fa(0x15c)]&&this[_0x4804fa(0x160)][_0x4804fa(0x16e)]){let _0x1eeba9=_0x36afba(_0x4804fa(0x18d),this[_0x4804fa(0x160)][_0x4804fa(0x16e)],_0x2c6bd8);for(;_0x1eeba9;)_0xc23d58(_0x1eeba9),_0x1eeba9=_0x1eeba9[_0x4804fa(0x180)];}return{'parsedContent':_0x2c6bd8,'newNodeIds':this[_0x4804fa(0x160)][_0x4804fa(0x150)],'modifiedNodeIds':this[_0x4804fa(0x160)][_0x4804fa(0x16a)],'removedNodeIds':this[_0x4804fa(0x160)][_0x4804fa(0x176)]};}[_0x1c3e92(0x165)](_0x167a5c,_0x337734,_0x3b5b55){const _0x1ff7c2=_0x1c3e92;for(const _0x2f1dbd of _0x337734){const _0xde745b=this[_0x1ff7c2(0x16f)](_0x2f1dbd);_0x537175(_0x2f1dbd,_0x1ff7c2(0x18d),_0xde745b),this[_0x1ff7c2(0x160)][_0x1ff7c2(0x150)][_0x1ff7c2(0x14a)](_0xde745b),this[_0x1ff7c2(0x160)][_0x1ff7c2(0x16e)]=_0xde745b;}const _0x2396b8=_0x1ff7c2(0x16d)===_0x3b5b55||_0x1ff7c2(0x188)===_0x3b5b55?_0x337734[_0x1ff7c2(0x18c)]():_0x337734;for(const _0x25dfd5 of _0x2396b8)_0x5572c9(_0x167a5c,_0x25dfd5,_0x3b5b55);}[_0x1c3e92(0x17c)](_0x5a9370,_0x193a77){const _0x5b5db1=_0x1c3e92;if(!_0x5a9370)return;if(_0xd005d6(_0x5a9370,_0x193a77))return;const _0x1bcc5c=this[_0x5b5db1(0x16f)](_0x5a9370);_0x537175(_0x193a77,_0x5b5db1(0x18d),_0x1bcc5c),this[_0x5b5db1(0x160)][_0x5b5db1(0x16a)][_0x5b5db1(0x14a)](_0x1bcc5c),this[_0x5b5db1(0x160)][_0x5b5db1(0x16e)]=_0x1bcc5c,_0xb034e7(_0x5a9370,_0x193a77[_0x5b5db1(0x18a)](!0x0));}[_0x1c3e92(0x159)](_0x2afdf3,_0x5b2cc1,_0x2e5658){const _0x50f716=_0x1c3e92,_0x59877c=this[_0x50f716(0x15a)](_0x2afdf3,!0x1);if(_0x59877c){const _0x3570a1=this[_0x50f716(0x14d)](_0x59877c),_0x5bdbaa=_0x36afba(_0x50f716(0x18d),_0x3570a1,_0x2e5658);if(_0x5bdbaa)return[_0x5bdbaa,_0x50f716(0x188)];this[_0x50f716(0x160)][_0x50f716(0x17a)][_0x50f716(0x14a)](_0x3570a1);}const _0xa08218=this[_0x50f716(0x172)](_0x2afdf3,!0x1);if(_0xa08218){const _0x50209d=this[_0x50f716(0x14d)](_0xa08218),_0x53022a=_0x36afba(_0x50f716(0x18d),_0x50209d,_0x2e5658);if(_0x53022a)return[_0x53022a,_0x50f716(0x157)];this[_0x50f716(0x160)][_0x50f716(0x17a)][_0x50f716(0x14a)](_0x50209d);}return _0x5b2cc1?_0x2afdf3[_0x50f716(0x17f)]?this[_0x50f716(0x16b)](_0x2afdf3,_0x2e5658):[_0x2e5658[_0x50f716(0x171)][_0x2e5658[_0x50f716(0x171)][_0x50f716(0x14e)]-0x1],_0x50f716(0x188)]:[_0x2e5658[_0x50f716(0x171)][0x0],_0x50f716(0x157)];}[_0x1c3e92(0x16b)](_0x14f6e9,_0x22da3b){const _0x21f6dd=_0x1c3e92,_0x2d74e0=[],_0x274c50=this[_0x21f6dd(0x15a)](_0x14f6e9,!0x0);if(_0x274c50){const _0x5b007b=this[_0x21f6dd(0x14d)](_0x274c50),_0x2ff4f3=_0x36afba(_0x21f6dd(0x18d),_0x5b007b,_0x22da3b);_0x2ff4f3&&_0x2d74e0[_0x21f6dd(0x14a)]([_0x2ff4f3,_0x21f6dd(0x188)]);}const _0x81a53e=this[_0x21f6dd(0x172)](_0x14f6e9,!0x0);if(_0x81a53e){const _0x4d9742=this[_0x21f6dd(0x14d)](_0x81a53e),_0x17ef7e=_0x36afba(_0x21f6dd(0x18d),_0x4d9742,_0x22da3b);_0x17ef7e&&_0x2d74e0[_0x21f6dd(0x14a)]([_0x17ef7e,_0x21f6dd(0x157)]);}if(_0x2d74e0[_0x21f6dd(0x14e)]>0x1)return _0x37c381(_0x2d74e0[0x0][0x0])<=_0x37c381(_0x2d74e0[0x1][0x0])?_0x2d74e0[0x0]:_0x2d74e0[0x1];return 0x1===_0x2d74e0[_0x21f6dd(0x14e)]?_0x2d74e0[0x0]:[_0x22da3b[_0x21f6dd(0x151)],_0x21f6dd(0x188)];}[_0x1c3e92(0x172)](_0x48d2f0,_0x53fd5e){const _0x398c78=_0x1c3e92;let _0x3c25d0=_0x48d2f0[_0x398c78(0x17f)],_0x2f684d=null,_0x1cfa73=!0x1;for(;_0x3c25d0;){if(_0x5e308f(_0x3c25d0)){if(this[_0x398c78(0x155)](_0x3c25d0)&&(_0x2f684d=_0x3c25d0),this[_0x398c78(0x169)](_0x3c25d0)&&_0x53fd5e&&!_0x1cfa73){_0x1cfa73=!0x0,_0x3c25d0=_0x3c25d0[_0x398c78(0x17f)];continue;}break;}const _0x60a5e6=_0x2113e3(_0x3c25d0,_0x398c78(0x18d));if(_0x60a5e6&&_0x398c78(0x15e)!==_0x60a5e6&&this[_0x398c78(0x164)][_0x398c78(0x15d)](_0x60a5e6)){_0x2f684d=_0x3c25d0;break;}_0x3c25d0=_0x3c25d0[_0x398c78(0x17f)];}return _0x2f684d;}[_0x1c3e92(0x15a)](_0x4a0138,_0x5f5006){const _0x1ed63b=_0x1c3e92;let _0x5e088e=_0x4a0138[_0x1ed63b(0x18e)],_0x1691fc=null,_0x27f47b=!0x1;for(;_0x5e088e;){if(_0x5e308f(_0x5e088e)){if(this[_0x1ed63b(0x155)](_0x5e088e)&&(_0x1691fc=_0x5e088e),this[_0x1ed63b(0x169)](_0x5e088e)&&_0x5f5006&&!_0x27f47b){_0x27f47b=!0x0,_0x5e088e=_0x5e088e[_0x1ed63b(0x18e)];continue;}break;}const _0x5b82dc=_0x2113e3(_0x5e088e,_0x1ed63b(0x18d));if(_0x5b82dc&&_0x1ed63b(0x15e)!==_0x5b82dc&&this[_0x1ed63b(0x164)][_0x1ed63b(0x15d)](_0x5b82dc)){_0x1691fc=_0x5e088e;break;}_0x5e088e=_0x5e088e[_0x1ed63b(0x18e)];}return _0x1691fc;}[_0x1c3e92(0x162)](_0x4905ae){const _0x29f786=_0x1c3e92;_0x488098(_0x4905ae)&&_0x2a28f8(_0x29f786(0x18d),null,_0x4905ae)[_0x29f786(0x18b)](_0x23c2d0=>{const _0x20c355=_0x29f786;if(this[_0x20c355(0x175)](_0x23c2d0)&&!this[_0x20c355(0x167)](_0x23c2d0)){const _0x288596=_0x2113e3(_0x23c2d0,_0x20c355(0x18d));_0x537175(_0x23c2d0,_0x20c355(0x17d),_0x288596),_0x537175(_0x23c2d0,_0x20c355(0x18d),null);}});}[_0x1c3e92(0x14d)](_0x432a71){const _0x1caa4f=_0x1c3e92;if(!_0x432a71)return null;if(_0x488098(_0x432a71))return _0x2113e3(_0x432a71,_0x1caa4f(0x18d));if(_0x5e308f(_0x432a71)){const _0x181eb7=_0x4886da(_0x432a71)[_0x1caa4f(0x14f)](/removed[\s*-]data-id="([^"]+)"/);if(_0x181eb7&&_0x181eb7[0x1])return _0x181eb7[0x1];}return null;}[_0x1c3e92(0x184)](_0x5e7b1c){const _0x25a9f4=_0x1c3e92;if(_0x5e308f(_0x5e7b1c)){const _0x14a06c=_0x4886da(_0x5e7b1c)[_0x25a9f4(0x14f)](/removed[\s*-]data-id="([^"]+)"/);_0x14a06c&&_0x14a06c[0x1]&&this[_0x25a9f4(0x160)][_0x25a9f4(0x176)][_0x25a9f4(0x14a)](_0x14a06c[0x1]);}}[_0x1c3e92(0x16f)](_0x33aff1){const _0xa4da5=_0x1c3e92;return this[_0xa4da5(0x175)](_0x33aff1)?_0x2113e3(_0x33aff1,_0xa4da5(0x18d)):this[_0xa4da5(0x15b)]();}[_0x1c3e92(0x187)](_0x19f6b4){const _0x1ebb52=_0x1c3e92;_0x47c108(_0x19f6b4)[_0x1ebb52(0x152)](_0x295107=>this[_0x1ebb52(0x155)](_0x295107)||this[_0x1ebb52(0x169)](_0x295107))[_0x1ebb52(0x18b)](_0x2d1bf2=>{_0x54eeb6(_0x2d1bf2);});}[_0x1c3e92(0x181)](_0x1952e5){const _0x5eb363=_0x1c3e92,_0x260e0b=_0x1952e5[_0x5eb363(0x171)],_0x1280ce=_0x260e0b[_0x260e0b[_0x5eb363(0x14e)]-0x1];_0x1280ce&&_0x488098(_0x1280ce)&&_0x537175(_0x1280ce,_0x5eb363(0x156),_0x5eb363(0x183));}[_0x1c3e92(0x163)](_0x27ce2d,_0x5ced1c){const _0x11a1a2=_0x1c3e92,_0x150755=_0x36afba(_0x11a1a2(0x156),_0x11a1a2(0x183),_0x27ce2d);if(!_0x150755)return;const _0x5a30a6=_0x16be54(_0x150755)[_0x11a1a2(0x18f)](0x0,-0x1),_0x1a35bb=_0x5a30a6[_0x11a1a2(0x14e)];let _0x596e69=_0x150755;if(_0x1a35bb>_0x5ced1c){let _0x2dfc3b=_0x1a35bb,_0x2589f3=null;for(;_0x2dfc3b>_0x5ced1c&&_0x2dfc3b>=0x0;)_0x2dfc3b--,_0x2589f3=_0x5a30a6[_0x2dfc3b];_0x2589f3&&(_0x596e69=_0x2589f3,_0x537175(_0x150755,_0x11a1a2(0x156),null),_0x537175(_0x2589f3,_0x11a1a2(0x156),_0x11a1a2(0x183)));}else{if(_0x1a35bb<_0x5ced1c){let _0x514c88=_0x1a35bb,_0x9c46e9=_0x150755;for(;_0x514c88<_0x5ced1c;){const _0x3894b7=_0x9c46e9[_0x11a1a2(0x171)][_0x11a1a2(0x152)](_0x2d32e1=>_0x488098(_0x2d32e1));if(0x0===_0x3894b7[_0x11a1a2(0x14e)])break;_0x514c88++,_0x9c46e9=_0x3894b7[_0x3894b7[_0x11a1a2(0x14e)]-0x1];}_0x9c46e9&&(_0x596e69=_0x9c46e9,_0x537175(_0x150755,_0x11a1a2(0x156),null),_0x537175(_0x9c46e9,_0x11a1a2(0x156),_0x11a1a2(0x183)));}}let _0x2cfb1c=_0x596e69;for(;_0x2cfb1c;){for(;_0x2cfb1c[_0x11a1a2(0x17f)];)_0x2cfb1c=_0x2cfb1c[_0x11a1a2(0x17f)],_0x488098(_0x2cfb1c)&&_0x537175(_0x2cfb1c,_0x11a1a2(0x156),_0x11a1a2(0x183));_0x2cfb1c=_0x2cfb1c[_0x11a1a2(0x180)];}}[_0x1c3e92(0x177)](_0x26e31c){const _0x2f4c6f=_0x1c3e92;return Boolean(_0x2f4c6f(0x15e)===_0x2113e3(_0x26e31c,_0x2f4c6f(0x18d)));}[_0x1c3e92(0x175)](_0x55654b){const _0x299c57=_0x1c3e92;return Boolean((_0x2113e3(_0x55654b,_0x299c57(0x18d))||'')[_0x299c57(0x14e)]>0x0&&_0x299c57(0x15e)!==_0x2113e3(_0x55654b,_0x299c57(0x18d)));}[_0x1c3e92(0x155)](_0x1021ae){const _0x3ae5d0=_0x1c3e92;return!!_0x1021ae&&Boolean(_0x5e308f(_0x1021ae)&&_0x4886da(_0x1021ae)[_0x3ae5d0(0x14f)](/removed[\s*-]data-id="[^"]+"/));}[_0x1c3e92(0x167)](_0x4318de){const _0x10eb32=_0x1c3e92;let _0x4bcfe6=_0x4318de[_0x10eb32(0x180)];for(;_0x4bcfe6;){if(_0x2113e3(_0x4bcfe6,_0x10eb32(0x17d)))return!0x0;_0x4bcfe6=_0x4bcfe6[_0x10eb32(0x180)];}return!0x1;}[_0x1c3e92(0x169)](_0x1bb3cd){const _0x54475e=_0x1c3e92;return Boolean(_0x5e308f(_0x1bb3cd)&&_0x4886da(_0x1bb3cd)[_0x54475e(0x14f)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
function _0x4ba0(_0x51cbb7,_0x993866){const _0x3ec7fc=_0x3ec7();return _0x4ba0=function(_0x4ba049,_0x4597d0){_0x4ba049=_0x4ba049-0x1c2;let _0x5eb23a=_0x3ec7fc[_0x4ba049];return _0x5eb23a;},_0x4ba0(_0x51cbb7,_0x993866);}const _0x25ba56=_0x4ba0;(function(_0x5b0a08,_0x335574){const _0x381700=_0x4ba0,_0x488562=_0x5b0a08();while(!![]){try{const _0x34e2cc=parseInt(_0x381700(0x1d1))/0x1*(parseInt(_0x381700(0x1cc))/0x2)+-parseInt(_0x381700(0x1d3))/0x3*(parseInt(_0x381700(0x1ca))/0x4)+-parseInt(_0x381700(0x1c8))/0x5+parseInt(_0x381700(0x1cf))/0x6*(parseInt(_0x381700(0x1c5))/0x7)+parseInt(_0x381700(0x1c9))/0x8+-parseInt(_0x381700(0x1d5))/0x9+parseInt(_0x381700(0x1d4))/0xa*(parseInt(_0x381700(0x1c4))/0xb);if(_0x34e2cc===_0x335574)break;else _0x488562['push'](_0x488562['shift']());}catch(_0x2e74b6){_0x488562['push'](_0x488562['shift']());}}}(_0x3ec7,0x26b8b));import{ObservableMixin as _0x40d2a8}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x83ad29}from'@ckeditor/ckeditor5-markdown-gfm';function _0x3ec7(){const _0x138aef=['children','1222170OhHgDm','225232RnINNh','272NPToqH','<dummy>','140XcbZJc','</dummy>','replace','390834JAJGkE','_parseHTML','1179VFUZep','convertMarkdownToHTML','2217QYzdLA','489970TQKmZo','1175868qpgEVQ','parseAndNormalizeHTML','parse','77kEZExB','14JrUiTG','_m2html'];_0x3ec7=function(){return _0x138aef;};return _0x3ec7();}import{parse as _0x22d7c4}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x40d2a8(){[_0x25ba56(0x1c6)];constructor(){const _0x101561=_0x25ba56;super(),this[_0x101561(0x1c6)]=new _0x83ad29();}[_0x25ba56(0x1d2)](_0x221f00){const _0x1129b7=_0x25ba56,_0x194885=this[_0x1129b7(0x1c6)][_0x1129b7(0x1c3)](_0x221f00);return this[_0x1129b7(0x1c2)](_0x194885);}[_0x25ba56(0x1c2)](_0x9f03f1){const _0xd82966=_0x25ba56;return this[_0xd82966(0x1d0)](_0x9f03f1);}[_0x25ba56(0x1d0)](_0x4e0ac3){const _0x2fdc0d=_0x25ba56,_0x29b7ca=_0x4e0ac3[_0x2fdc0d(0x1ce)](/^\t+/gm,'\x20')[_0x2fdc0d(0x1ce)](/\n*/g,'')[_0x2fdc0d(0x1ce)](/\s+/g,'\x20')[_0x2fdc0d(0x1ce)](/<[^>]*?$/g,''),_0x39aeea=_0x22d7c4(_0x2fdc0d(0x1cb)+_0x29b7ca+_0x2fdc0d(0x1cd));return _0x39aeea[_0x2fdc0d(0x1c7)]=_0x39aeea[_0x2fdc0d(0x1c7)][0x0][_0x2fdc0d(0x1c7)],_0x39aeea;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x203c(_0x37b60a,_0x1731e6){var _0x21eb91=_0x21eb();return _0x203c=function(_0x203c25,_0x4cb9e4){_0x203c25=_0x203c25-0xac;var _0x5b315d=_0x21eb91[_0x203c25];return _0x5b315d;},_0x203c(_0x37b60a,_0x1731e6);}(function(_0x4b23c6,_0x19905f){var _0x3251d2=_0x203c,_0x3cb6e1=_0x4b23c6();while(!![]){try{var _0x47a472=-parseInt(_0x3251d2(0xb3))/0x1+-parseInt(_0x3251d2(0xac))/0x2*(-parseInt(_0x3251d2(0xb2))/0x3)+-parseInt(_0x3251d2(0xb9))/0x4*(parseInt(_0x3251d2(0xb7))/0x5)+-parseInt(_0x3251d2(0xad))/0x6+parseInt(_0x3251d2(0xb6))/0x7*(parseInt(_0x3251d2(0xb0))/0x8)+-parseInt(_0x3251d2(0xb4))/0x9+parseInt(_0x3251d2(0xba))/0xa*(parseInt(_0x3251d2(0xae))/0xb);if(_0x47a472===_0x19905f)break;else _0x3cb6e1['push'](_0x3cb6e1['shift']());}catch(_0xeecd4e){_0x3cb6e1['push'](_0x3cb6e1['shift']());}}}(_0x21eb,0x65189));import{View as _0x1c35d7}from'ckeditor5/src/ui.js';import{getTranslation as _0x75f4f5}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';export class AIDisclaimerView extends _0x1c35d7{constructor(_0x249b14){var _0x485555=_0x203c;super(_0x249b14),this[_0x485555(0xb1)]({'tag':_0x485555(0xb5),'attributes':{'class':['ck',_0x485555(0xb8)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x485555(0xbb)]},'children':[{'text':_0x75f4f5(_0x249b14,_0x485555(0xaf))}]}]});}}function _0x21eb(){var _0x4d2abb=['1526906FpVoiw','253026YwAXgj','11iAPamQ','AI_DISCLAIMER_TEXT','8VduTiD','setTemplate','3wvLNxT','303175LMmDfn','6467733uChpdz','div','5246101NdbsZB','3200635NuwIoQ','ck-ai-disclaimer','4bzkzJf','6053030sSNuMy','ck-ai-disclaimer__content'];_0x21eb=function(){return _0x4d2abb;};return _0x21eb();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x50237c=_0x3546;(function(_0x8a05e5,_0x3218a5){const _0x24a52b=_0x3546,_0x4d10b8=_0x8a05e5();while(!![]){try{const _0x45f844=-parseInt(_0x24a52b(0xd9))/0x1+parseInt(_0x24a52b(0xbd))/0x2+parseInt(_0x24a52b(0xce))/0x3*(parseInt(_0x24a52b(0xda))/0x4)+parseInt(_0x24a52b(0xcf))/0x5*(-parseInt(_0x24a52b(0xdd))/0x6)+parseInt(_0x24a52b(0xc6))/0x7+-parseInt(_0x24a52b(0xc2))/0x8+parseInt(_0x24a52b(0xcc))/0x9*(-parseInt(_0x24a52b(0xb9))/0xa);if(_0x45f844===_0x3218a5)break;else _0x4d10b8['push'](_0x4d10b8['shift']());}catch(_0x2a25ee){_0x4d10b8['push'](_0x4d10b8['shift']());}}}(_0x26de,0x7053a));import{View as _0x5baba4}from'ckeditor5/src/ui.js';import'../../../theme/common/aiskeleton.css';export class AISkeletonView extends _0x5baba4{constructor(_0x442668,_0x3f5b8a){const _0x2eb246=_0x3546;super(_0x442668),this[_0x2eb246(0xd5)]({'tag':_0x2eb246(0xc9),'attributes':{'class':['ck',_0x2eb246(0xc8)]},'children':this[_0x2eb246(0xb7)](_0x3f5b8a)});}[_0x50237c(0xb7)](_0xe8b511){const _0x280737=_0x50237c,_0x4effa9=['ck',_0x280737(0xc4)];return _0xe8b511[_0x280737(0xdc)](_0x1cedd9=>{const _0x372d4a=_0x280737;let _0x443ede='';switch(_0x1cedd9[_0x372d4a(0xc5)][_0x372d4a(0xd0)]){case _0x372d4a(0xcb):_0x443ede=_0x372d4a(0xd4);break;case _0x372d4a(0xd8):_0x443ede=_0x372d4a(0xb6);break;case _0x372d4a(0xbc):_0x443ede=_0x372d4a(0xcd);}return{'tag':_0x1cedd9[_0x372d4a(0xc0)],'attributes':{'class':[..._0x4effa9,_0x1cedd9[_0x372d4a(0xc5)][_0x372d4a(0xbf)]?_0x1cedd9[_0x372d4a(0xc5)][_0x372d4a(0xbf)]:''],'style':_0x372d4a(0xc1)+_0x1cedd9[_0x372d4a(0xc5)][_0x372d4a(0xc3)]+_0x372d4a(0xd3)+_0x1cedd9[_0x372d4a(0xc5)][_0x372d4a(0xba)]+';'+_0x443ede}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x50237c(0xc9),'attributes':{'width':_0x50237c(0xde),'height':_0x50237c(0xca),'align':_0x50237c(0xcb)}},{'tag':_0x50237c(0xc9),'attributes':{'width':_0x50237c(0xd2),'height':_0x50237c(0xd7),'align':_0x50237c(0xcb)}},{'tag':_0x50237c(0xc9),'attributes':{'width':_0x50237c(0xde),'height':_0x50237c(0xd6),'align':_0x50237c(0xcb)}},{'tag':_0x50237c(0xc9),'attributes':{'width':_0x50237c(0xbe),'height':_0x50237c(0xd7),'align':_0x50237c(0xcb)}},{'tag':_0x50237c(0xc9),'attributes':{'width':_0x50237c(0xde),'height':_0x50237c(0xb8),'align':_0x50237c(0xcb)}},{'tag':_0x50237c(0xc9),'attributes':{'width':_0x50237c(0xd2),'height':_0x50237c(0xd7),'align':_0x50237c(0xcb)}},{'tag':_0x50237c(0xc9),'attributes':{'width':_0x50237c(0xde),'height':_0x50237c(0xd6),'align':_0x50237c(0xcb)}}],'aiHistory':ta(0x5,_0x50237c(0xde),_0x50237c(0xd1),_0x50237c(0xcb)),'aiChatResources':ta(0x8,_0x50237c(0xde),_0x50237c(0xdb),_0x50237c(0xcb)),'aiReviewChecks':[{'tag':_0x50237c(0xc9),'attributes':{'width':_0x50237c(0xc7),'height':_0x50237c(0xdb),'align':_0x50237c(0xbc)}},{'tag':_0x50237c(0xc9),'attributes':{'width':_0x50237c(0xde),'height':_0x50237c(0xdb),'align':_0x50237c(0xbc)}},{'tag':_0x50237c(0xc9),'attributes':{'width':_0x50237c(0xc7),'height':_0x50237c(0xdb),'align':_0x50237c(0xbc)}}]};function _0x26de(){const _0x52d5a5=['830522cvnYbg','150px','class','tag','width:\x20','64288xRSESl','width','ck-ai-skeleton__item','attributes','1983394YvzWSH','128px','ck-ai-skeleton','div','72px','right','40338UKhnPz','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','111LaDTGV','24390ogEnZb','align','44px','250px',';\x20height:\x20','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','setTemplate','88px','40px','center','189729eYPHFK','68776Ddxgma','24px','map','138dQfckL','100%','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','_createSkeletonItems','140px','1260PUsYaP','height','fill','left'];_0x26de=function(){return _0x52d5a5;};return _0x26de();}function _0x3546(_0x3d2b9f,_0x5239cb){const _0x26de83=_0x26de();return _0x3546=function(_0x354649,_0x3d7f11){_0x354649=_0x354649-0xb6;let _0x427ea7=_0x26de83[_0x354649];return _0x427ea7;},_0x3546(_0x3d2b9f,_0x5239cb);}function ta(_0x5d03e0,_0x13c76e,_0x39d3d2,_0x2c4d12){const _0x5ef660=_0x50237c;return new Array(_0x5d03e0)[_0x5ef660(0xbb)](null)[_0x5ef660(0xdc)](()=>({'tag':_0x5ef660(0xc9),'attributes':{'width':_0x13c76e,'height':_0x39d3d2,'align':_0x2c4d12}}));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2e6414,_0x4f5463){const _0xcba03a=_0xa85e,_0x5dfa40=_0x2e6414();while(!![]){try{const _0x47b9e1=-parseInt(_0xcba03a(0xfa))/0x1*(-parseInt(_0xcba03a(0xf8))/0x2)+parseInt(_0xcba03a(0xf0))/0x3+parseInt(_0xcba03a(0xfd))/0x4*(parseInt(_0xcba03a(0xf9))/0x5)+-parseInt(_0xcba03a(0xf5))/0x6+parseInt(_0xcba03a(0xfc))/0x7*(parseInt(_0xcba03a(0xff))/0x8)+parseInt(_0xcba03a(0xf6))/0x9*(-parseInt(_0xcba03a(0xf2))/0xa)+parseInt(_0xcba03a(0xfb))/0xb*(-parseInt(_0xcba03a(0xf1))/0xc);if(_0x47b9e1===_0x4f5463)break;else _0x5dfa40['push'](_0x5dfa40['shift']());}catch(_0x5bb371){_0x5dfa40['push'](_0x5dfa40['shift']());}}}(_0x1b9b,0xb7933));function _0xa85e(_0x3f76ae,_0x33360a){const _0x1b9b18=_0x1b9b();return _0xa85e=function(_0xa85e2d,_0x3cbf8c){_0xa85e2d=_0xa85e2d-0xf0;let _0x1ad0c9=_0x1b9b18[_0xa85e2d];return _0x1ad0c9;},_0xa85e(_0x3f76ae,_0x33360a);}import{SpinnerView as _0x533839}from'ckeditor5/src/ui.js';import'../../../theme/common/aispinner.css';export class AISpinnerView extends _0x533839{constructor(_0x3b0cde=void 0x0){const _0x56a427=_0xa85e;super();const _0x2c8205=_0x3b0cde?_0x56a427(0xf3)+_0x3b0cde:'';this[_0x56a427(0xfe)]({'tag':_0x56a427(0xf7),'attributes':{'class':[_0x56a427(0xf4),_0x2c8205]}});}}function _0x1b9b(){const _0x1a30a2=['9375jWWltB','2145pclkyI','52646nuebyO','14VUzVFH','1040poJVDD','extendTemplate','5435528zhROmo','4069116JfqaOP','4956bAbdBn','50630GuQgrR','ck-ai-spinner_','ck-ai-spinner','7601136xXfQbJ','711gECrfr','span','1112yqSZJM'];_0x1b9b=function(){return _0x1a30a2;};return _0x1b9b();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e7f82=_0x8a2e;(function(_0xe7790d,_0x3a5677){const _0x4c38f1=_0x8a2e,_0x258ba3=_0xe7790d();while(!![]){try{const _0x3637c7=parseInt(_0x4c38f1(0x211))/0x1*(parseInt(_0x4c38f1(0x210))/0x2)+parseInt(_0x4c38f1(0x1ff))/0x3*(parseInt(_0x4c38f1(0x1e4))/0x4)+-parseInt(_0x4c38f1(0x1f6))/0x5+parseInt(_0x4c38f1(0x1fd))/0x6+-parseInt(_0x4c38f1(0x1f2))/0x7+parseInt(_0x4c38f1(0x1ef))/0x8+parseInt(_0x4c38f1(0x208))/0x9;if(_0x3637c7===_0x3a5677)break;else _0x258ba3['push'](_0x258ba3['shift']());}catch(_0x3b933b){_0x258ba3['push'](_0x258ba3['shift']());}}}(_0x5357,0x85785));import{ButtonView as _0xfda6a1,IconView as _0x193aa7,ToolbarView as _0x3c174f}from'ckeditor5/src/ui.js';import{IconCheck as _0x9ec518,IconCopy as _0x590be6,IconShowChangesOff as _0x97fc32,IconShowChangesOn as _0x5a2d47,IconThumbDown as _0x3a5621,IconThumbUp as _0x2d2567}from'@ckeditor/ckeditor5-icons';function _0x8a2e(_0x3e4af4,_0x5494c7){const _0x535798=_0x5357();return _0x8a2e=function(_0x8a2eb5,_0x56f05c){_0x8a2eb5=_0x8a2eb5-0x1dd;let _0x480ecf=_0x535798[_0x8a2eb5];return _0x480ecf;},_0x8a2e(_0x3e4af4,_0x5494c7);}import{getTranslation as _0x252ab9}from'../../utils/common-translations.js';function _0x5357(){const _0x587ad4=['ck-ai-mini-toolbar\x20ck-hidden','_config','ck-ai-mini-toolbar','addMany','284460MwkPOr','_setupShowChangesButton','1941276JglkqG','copyButton','bind','dislike','dislikeButton','likeButton','showDislike','add','ck-ai-mini-toolbar-copy-button','2191104PFmfPR','class','AI_SUGGESTION_BUTTON_SHOW_CHANGES','fire','full','AI_MINI_TOOLBAR_DISLIKE','items','toggleShowChangesEnabled','4682KiDOfw','409erovHr','ck-ai-button-tertiary','AI_MINI_TOOLBAR_COPY','isShowChangesOn','_setupRatingButtons','_setupCopyButton','showChangesButton','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','4BJjylf','length','toggleShowChanges','showLike','extendTemplate','icon','showCopy','isOn','like','AI_MINI_TOOLBAR_LIKE','isEnabled','3828760OwqryK','set','customView','5891053GCLDai','locale','execute','children','4928750gRnZOZ','ck-ai-mini-toolbar-copy-button__check-mark','showChanges'];_0x5357=function(){return _0x587ad4;};return _0x5357();}import'../../../../theme/aichat/aiminitoolbar.css';export class AIMiniToolbarView extends _0x3c174f{[_0x3e7f82(0x200)];[_0x3e7f82(0x204)];[_0x3e7f82(0x203)];[_0x3e7f82(0x1e2)];[_0x3e7f82(0x1fa)];constructor(_0x13038e,_0x1edfd6={}){const _0x2c9884=_0x3e7f82;super(_0x13038e),this[_0x2c9884(0x1f0)](_0x2c9884(0x1ee),!0x0),this[_0x2c9884(0x1f0)](_0x2c9884(0x1df),!0x1),this[_0x2c9884(0x1fa)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x1edfd6};const _0x50bac6=!(this[_0x2c9884(0x1fa)][_0x2c9884(0x1ea)]||this[_0x2c9884(0x1fa)][_0x2c9884(0x1f8)]||this[_0x2c9884(0x1fa)][_0x2c9884(0x1e7)]||this[_0x2c9884(0x1fa)][_0x2c9884(0x205)]||this[_0x2c9884(0x1fa)][_0x2c9884(0x1f1)]?.[_0x2c9884(0x1e5)]);this[_0x2c9884(0x209)]=_0x50bac6?_0x2c9884(0x1f9):_0x2c9884(0x1fb),this[_0x2c9884(0x1fa)][_0x2c9884(0x1ea)]&&(this[_0x2c9884(0x1e1)](),this[_0x2c9884(0x20e)][_0x2c9884(0x206)](this[_0x2c9884(0x200)])),this[_0x2c9884(0x1fa)][_0x2c9884(0x1f8)]&&(this[_0x2c9884(0x1fe)](),this[_0x2c9884(0x20e)][_0x2c9884(0x206)](this[_0x2c9884(0x1e2)])),this[_0x2c9884(0x1e0)](),this[_0x2c9884(0x1fa)][_0x2c9884(0x1e7)]&&this[_0x2c9884(0x20e)][_0x2c9884(0x206)](this[_0x2c9884(0x204)]),this[_0x2c9884(0x1fa)][_0x2c9884(0x205)]&&this[_0x2c9884(0x20e)][_0x2c9884(0x206)](this[_0x2c9884(0x203)]),this[_0x2c9884(0x1fa)][_0x2c9884(0x1f1)]&&this[_0x2c9884(0x20e)][_0x2c9884(0x1fc)](this[_0x2c9884(0x1fa)][_0x2c9884(0x1f1)]);}[_0x3e7f82(0x20f)](_0x4a815e){const _0x56a0f8=_0x3e7f82;this[_0x56a0f8(0x1e2)][_0x56a0f8(0x1ee)]=_0x4a815e;}[_0x3e7f82(0x1e0)](){const _0x582053=_0x3e7f82;this[_0x582053(0x204)]=new _0xfda6a1(this[_0x582053(0x1f3)]),this[_0x582053(0x204)][_0x582053(0x1f0)]({'icon':_0x2d2567,'label':_0x252ab9(this[_0x582053(0x1f3)],_0x582053(0x1ed)),'tooltip':!0x0}),this[_0x582053(0x204)][_0x582053(0x201)](_0x582053(0x1ee))['to'](this),this[_0x582053(0x204)]['on'](_0x582053(0x1f4),()=>{const _0x3e9a9b=_0x582053;this[_0x3e9a9b(0x20b)](_0x3e9a9b(0x1ec));}),this[_0x582053(0x203)]=new _0xfda6a1(this[_0x582053(0x1f3)]),this[_0x582053(0x203)][_0x582053(0x1f0)]({'icon':_0x3a5621,'label':_0x252ab9(this[_0x582053(0x1f3)],_0x582053(0x20d)),'tooltip':!0x0}),this[_0x582053(0x203)][_0x582053(0x201)](_0x582053(0x1ee))['to'](this),this[_0x582053(0x203)]['on'](_0x582053(0x1f4),()=>{const _0x860bf2=_0x582053;this[_0x860bf2(0x20b)](_0x860bf2(0x202));});}[_0x3e7f82(0x1e1)](){const _0x57372b=_0x3e7f82;this[_0x57372b(0x200)]=new _0xfda6a1(this[_0x57372b(0x1f3)]),this[_0x57372b(0x200)][_0x57372b(0x1f0)]({'icon':_0x590be6,'label':_0x252ab9(this[_0x57372b(0x1f3)],_0x57372b(0x1de)),'class':_0x57372b(0x207),'tooltip':!0x0}),this[_0x57372b(0x200)][_0x57372b(0x201)](_0x57372b(0x1ee))['to'](this);const _0x558330=new _0x193aa7();_0x558330[_0x57372b(0x1f0)]({'content':_0x9ec518}),_0x558330[_0x57372b(0x1e8)]({'attributes':{'class':[_0x57372b(0x1f7)]}}),this[_0x57372b(0x200)]['on'](_0x57372b(0x1f4),()=>{const _0x5a00ef=_0x57372b;this[_0x5a00ef(0x200)][_0x5a00ef(0x209)]=_0x5a00ef(0x1e3),setTimeout(()=>{const _0x59d38d=_0x5a00ef;this[_0x59d38d(0x200)][_0x59d38d(0x209)]=_0x59d38d(0x207);},0x7d0);}),this[_0x57372b(0x200)][_0x57372b(0x1f5)][_0x57372b(0x206)](_0x558330);}[_0x3e7f82(0x1fe)](){const _0x54e2d4=_0x3e7f82;this[_0x54e2d4(0x1e2)]=new _0xfda6a1(this[_0x54e2d4(0x1f3)]),this[_0x54e2d4(0x1e2)][_0x54e2d4(0x1f0)]({'icon':_0x97fc32,'label':_0x252ab9(this[_0x54e2d4(0x1f3)],_0x54e2d4(0x20a)),'withText':_0x54e2d4(0x20c)==this[_0x54e2d4(0x1fa)][_0x54e2d4(0x1f8)],'tooltip':_0x54e2d4(0x20c)!=this[_0x54e2d4(0x1fa)][_0x54e2d4(0x1f8)],'class':_0x54e2d4(0x1dd)}),this[_0x54e2d4(0x1e2)][_0x54e2d4(0x201)](_0x54e2d4(0x1eb))['to'](this,_0x54e2d4(0x1df)),this[_0x54e2d4(0x1e2)][_0x54e2d4(0x201)](_0x54e2d4(0x1ee))['to'](this),this[_0x54e2d4(0x1e2)][_0x54e2d4(0x201)](_0x54e2d4(0x1e9))['to'](this,_0x54e2d4(0x1df),_0x11e647=>_0x11e647?_0x5a2d47:_0x97fc32),this[_0x54e2d4(0x1e2)]['on'](_0x54e2d4(0x1f4),()=>{const _0x3253d7=_0x54e2d4;this[_0x3253d7(0x20b)](_0x3253d7(0x1e6));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d0bf9=_0x32a9;(function(_0x5b465d,_0x18c3bc){const _0x10e69c=_0x32a9,_0xb34c77=_0x5b465d();while(!![]){try{const _0x2f782c=-parseInt(_0x10e69c(0x165))/0x1+parseInt(_0x10e69c(0x164))/0x2+-parseInt(_0x10e69c(0x155))/0x3+-parseInt(_0x10e69c(0x149))/0x4+-parseInt(_0x10e69c(0x144))/0x5+-parseInt(_0x10e69c(0x13e))/0x6*(parseInt(_0x10e69c(0x137))/0x7)+parseInt(_0x10e69c(0x139))/0x8;if(_0x2f782c===_0x18c3bc)break;else _0xb34c77['push'](_0xb34c77['shift']());}catch(_0x31684e){_0xb34c77['push'](_0xb34c77['shift']());}}}(_0x283b,0xc2676));import{View as _0x1c0086}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x20af5f}from'./aisuggestioncontentpartview.js';function _0x32a9(_0x1c270a,_0x158a69){const _0x283be2=_0x283b();return _0x32a9=function(_0x32a9c3,_0x73bf5){_0x32a9c3=_0x32a9c3-0x122;let _0x281694=_0x283be2[_0x32a9c3];return _0x281694;},_0x32a9(_0x1c270a,_0x158a69);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x4cec36}from'../../utils/eventnames.js';function _0x283b(){const _0x3af05c=['isVisible','ck-ai-suggestion__body__content-parts','delegate','empty-parts-warning','set','abort','isEnabled','partDefinition','findIndex','availableActions','bind','_updateContentPartsPromiseQueue','_availableActions','_switchButtonLabelsPlurality','setContent','updateContent','hasNonEmptyParts','pending','enqueue','length','bodyCollection','488180jTPDgq','areActionsDisabled','18513048JrQLjH','AI_SUGGESTION_NO_PARTS_WARNING','div','_actionsView','warning','6guslVw','updateSources','markAsDone','_emptyPartsWarningView','addEventListener','updateVisibility','6078930RnVsMK','_children','filter','_sourcesView','queueEmptyPromise','1951720LVPAah','getPartView','setTemplate','index','hasPendingParts','updatePartState','partsCount','AI_SUGGESTION_EMPTY_PART_WARNING','locale','push','isActive','createCollection','1918629jlZgXi','_showUnchangedParts','find','forEach','hasChanges','state','add','ck-ai-suggestion__body','_cachedContentParts','some','from','isTrackChangesOn','_areActionsDisabled','addSource','setPartActive','3123184jkUUdn','666446CuZWBg','updateContentParts'];_0x283b=function(){return _0x3af05c;};return _0x283b();}import{PromiseQueue as _0x47d4c1}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x353521}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x284fc8}from'../../utils/common-translations.js';import{AIChatFeedSuggestionItemActionsView as _0x2ccf8c}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0x4ab3f2}from'./aiwebsourcesview.js';export class AISuggestionBodyView extends _0x1c0086{[_0x2d0bf9(0x13c)];[_0x2d0bf9(0x147)];[_0x2d0bf9(0x145)];[_0x2d0bf9(0x161)];[_0x2d0bf9(0x156)];[_0x2d0bf9(0x12d)];[_0x2d0bf9(0x141)];[_0x2d0bf9(0x12e)];[_0x2d0bf9(0x15d)]=[];constructor(_0x497c7a,_0x4510c7){const _0x2574fd=_0x2d0bf9;super(_0x497c7a);const {areActionsDisabled:_0x4dab9d,showUnchangedParts:_0x5acd75,availableActions:_0xa4ec24}=_0x4510c7;this[_0x2574fd(0x161)]=_0x4dab9d,this[_0x2574fd(0x156)]=_0x5acd75,this[_0x2574fd(0x12e)]=_0xa4ec24,this[_0x2574fd(0x126)](_0x2574fd(0x14d),!0x1),this[_0x2574fd(0x126)](_0x2574fd(0x160),!0x1),this[_0x2574fd(0x145)]=this[_0x2574fd(0x154)](),this[_0x2574fd(0x12d)]=new _0x47d4c1(),this[_0x2574fd(0x141)]=new _0x353521({'id':_0x2574fd(0x125),'initialContent':_0x284fc8(_0x497c7a,_0x2574fd(0x150)),'level':_0x2574fd(0x13d)}),this[_0x2574fd(0x141)][_0x2574fd(0x122)]=!0x1,this[_0x2574fd(0x13c)]=new _0x2ccf8c(_0x497c7a,_0x4510c7[_0x2574fd(0x12b)],this[_0x2574fd(0x161)]),this[_0x2574fd(0x13c)][_0x2574fd(0x12c)](_0x2574fd(0x160))['to'](this),this[_0x2574fd(0x147)]=new _0x4ab3f2(this[_0x2574fd(0x151)],_0x4510c7[_0x2574fd(0x136)]),_0x4510c7[_0x2574fd(0x138)]?this[_0x2574fd(0x13c)][_0x2574fd(0x128)]=!0x1:this[_0x2574fd(0x13c)][_0x2574fd(0x12c)](_0x2574fd(0x128))['to'](this,_0x2574fd(0x14d)),this[_0x2574fd(0x13c)][_0x2574fd(0x124)](..._0x4cec36)['to'](this),this[_0x2574fd(0x14b)]({'tag':_0x2574fd(0x13b),'attributes':{'class':['ck',_0x2574fd(0x15c)]},'children':[{'tag':_0x2574fd(0x13b),'attributes':{'class':['ck',_0x2574fd(0x123)]},'children':this[_0x2574fd(0x145)]},this[_0x2574fd(0x141)],this[_0x2574fd(0x13c)],this[_0x2574fd(0x147)]]});}get[_0x2d0bf9(0x14f)](){const _0x1a7500=_0x2d0bf9;return this[_0x1a7500(0x145)][_0x1a7500(0x135)];}async[_0x2d0bf9(0x166)]({parts:_0x2c3e62,renderingStrategy:_0x216d27,abortSignal:_0xa5a25c}){const _0x566fe8=_0x2d0bf9;this[_0x566fe8(0x145)][_0x566fe8(0x135)]?_0x2c3e62[_0x566fe8(0x158)](_0x458548=>{const _0x37cfaa=_0x566fe8,_0x526696=this[_0x37cfaa(0x15d)][_0x37cfaa(0x12a)](_0x1283b4=>_0x1283b4[_0x37cfaa(0x14c)]==_0x458548[_0x37cfaa(0x14c)]);-0x1===_0x526696?this[_0x37cfaa(0x15d)][_0x37cfaa(0x152)](_0x458548):this[_0x37cfaa(0x15d)][_0x526696]=_0x458548;}):this[_0x566fe8(0x15d)]=_0x2c3e62;const _0x455db5=this[_0x566fe8(0x156)]?_0x2c3e62:_0x2c3e62[_0x566fe8(0x146)](_0x44e40b=>_0x44e40b[_0x566fe8(0x159)]);this[_0x566fe8(0x13c)][_0x566fe8(0x12f)](_0x455db5[_0x566fe8(0x135)]>0x1);for(const _0x2a8a63 of _0x455db5)this[_0x566fe8(0x12d)][_0x566fe8(0x134)](async _0x587a5c=>{const _0x4f2a20=_0x566fe8;let _0x36d4f3=this[_0x4f2a20(0x14a)](_0x2a8a63[_0x4f2a20(0x14c)]);_0x36d4f3||(_0x36d4f3=new _0x20af5f(this[_0x4f2a20(0x151)],{'part':_0x2a8a63,'uiIndex':this[_0x4f2a20(0x145)][_0x4f2a20(0x135)]+0x1,'areActionsDisabled':this[_0x4f2a20(0x161)],'availableActions':this[_0x4f2a20(0x12e)]}),_0x36d4f3[_0x4f2a20(0x124)](..._0x4cec36)['to'](this),this[_0x4f2a20(0x145)][_0x4f2a20(0x15b)](_0x36d4f3),this[_0x4f2a20(0x14d)]=!0x0),await _0x36d4f3[_0x4f2a20(0x131)]({'part':_0x2a8a63,'renderingStrategy':_0x216d27,'showUnchangedParts':this[_0x4f2a20(0x156)],'abortSignal':_0x587a5c}),_0x36d4f3[_0x4f2a20(0x140)]();});return _0xa5a25c?.[_0x566fe8(0x142)](_0x566fe8(0x127),()=>{const _0x248b03=_0x566fe8;this[_0x248b03(0x12d)][_0x248b03(0x127)]();}),this[_0x566fe8(0x12d)][_0x566fe8(0x148)];}[_0x2d0bf9(0x14e)](_0x2597e1,_0x1963b5){const _0xf62863=_0x2d0bf9,_0x47d4f3=this[_0xf62863(0x14a)](_0x2597e1);_0x47d4f3&&(_0x47d4f3[_0xf62863(0x15a)]=_0x1963b5),this[_0xf62863(0x14d)]=_0xf62863(0x133)==_0x1963b5||Array[_0xf62863(0x15f)](this[_0xf62863(0x145)])[_0xf62863(0x15e)](_0xbcf0e8=>_0xf62863(0x133)==_0xbcf0e8[_0xf62863(0x15a)]);}[_0x2d0bf9(0x163)](_0x1b8575,_0x29889d){const _0x385f99=_0x2d0bf9;if(!0x1===_0x1b8575){for(const _0x4e4d81 of this[_0x385f99(0x145)])_0x4e4d81[_0x385f99(0x153)]=!0x1;}else{const _0xee5b17=this[_0x385f99(0x14a)](_0x1b8575);_0xee5b17&&(_0xee5b17[_0x385f99(0x153)]=_0x29889d);}}[_0x2d0bf9(0x13f)](_0x4bdd29){const _0x540fed=_0x2d0bf9;_0x4bdd29[_0x540fed(0x158)](_0x142b8e=>this[_0x540fed(0x147)][_0x540fed(0x162)](_0x142b8e)),this[_0x540fed(0x147)][_0x540fed(0x122)]=!0x0;}[_0x2d0bf9(0x14a)](_0x55e507){const _0x524047=_0x2d0bf9;return this[_0x524047(0x145)][_0x524047(0x157)](_0x29992b=>_0x29992b[_0x524047(0x129)][_0x524047(0x14c)]==_0x55e507)??null;}[_0x2d0bf9(0x140)](){const _0x4bfd4a=_0x2d0bf9;if(!this[_0x4bfd4a(0x156)]){const _0x3299fe=!this[_0x4bfd4a(0x15d)][_0x4bfd4a(0x157)](({hasChanges:_0x268568})=>_0x268568),_0x4ba9e7=!!this[_0x4bfd4a(0x15d)][_0x4bfd4a(0x157)](({hasChanges:_0xef9df})=>!_0xef9df);this[_0x4bfd4a(0x141)][_0x4bfd4a(0x122)]=0x0==this[_0x4bfd4a(0x145)][_0x4bfd4a(0x135)]||_0x4ba9e7,_0x3299fe?this[_0x4bfd4a(0x141)][_0x4bfd4a(0x130)](_0x284fc8(this[_0x4bfd4a(0x151)],_0x4bfd4a(0x13a))):this[_0x4bfd4a(0x141)][_0x4bfd4a(0x130)](_0x284fc8(this[_0x4bfd4a(0x151)],_0x4bfd4a(0x150)));}this[_0x4bfd4a(0x145)][_0x4bfd4a(0x158)](_0x1667ba=>_0x1667ba[_0x4bfd4a(0x140)]()),this[_0x4bfd4a(0x13c)][_0x4bfd4a(0x143)](this[_0x4bfd4a(0x132)]);}get[_0x2d0bf9(0x132)](){const _0x34077b=_0x2d0bf9;return this[_0x34077b(0x145)][_0x34077b(0x146)](_0x1cb512=>_0x1cb512[_0x34077b(0x129)][_0x34077b(0x159)])[_0x34077b(0x135)]>0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2c90c3=_0x1bc0;(function(_0xea125f,_0x36407c){const _0x3ab68f=_0x1bc0,_0x457f7d=_0xea125f();while(!![]){try{const _0xe97715=parseInt(_0x3ab68f(0x168))/0x1+parseInt(_0x3ab68f(0x16f))/0x2*(parseInt(_0x3ab68f(0x161))/0x3)+-parseInt(_0x3ab68f(0x177))/0x4+-parseInt(_0x3ab68f(0x15e))/0x5*(parseInt(_0x3ab68f(0x16b))/0x6)+parseInt(_0x3ab68f(0x172))/0x7+-parseInt(_0x3ab68f(0x171))/0x8+parseInt(_0x3ab68f(0x17c))/0x9*(parseInt(_0x3ab68f(0x16e))/0xa);if(_0xe97715===_0x36407c)break;else _0x457f7d['push'](_0x457f7d['shift']());}catch(_0xc08893){_0x457f7d['push'](_0x457f7d['shift']());}}}(_0x4cb0,0xedc4d));function _0x4cb0(){const _0x262d63=['toggleShowChanges','56442BUDKuy','markAsDone','isTrackChangesOn','292870ybMvts','415186pjvJYB','setTemplate','1028184hMGzpS','3398136aOOQSN','fire','updateContent','bodyView','children','5817144IeyuSG','areChangesVisible','updateContentParts','ck-rounded-corners','isShowChangesToggleVisible','9mpSSAG','div','isOn','createCollection','125tnTLXG','delegate','add','15wWHaSb','bind','updateSources','set','ck-ai-suggestion__container','toggleSuggestionDisplayMode','headerView','1239185vQhhtL','hasNonEmptyParts'];_0x4cb0=function(){return _0x262d63;};return _0x4cb0();}import{View as _0x2dedfd}from'ckeditor5/src/ui.js';import{AISuggestionHeaderView as _0x5c3d5a}from'./aisuggestionheaderview.js';function _0x1bc0(_0x461522,_0x442e40){const _0x4cb008=_0x4cb0();return _0x1bc0=function(_0x1bc0a6,_0x1a4346){_0x1bc0a6=_0x1bc0a6-0x15b;let _0x35ac2b=_0x4cb008[_0x1bc0a6];return _0x35ac2b;},_0x1bc0(_0x461522,_0x442e40);}import{AISuggestionBodyView as _0x429704}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x300168}from'../../utils/eventnames.js';import'../../../../theme/aichat/aisuggestioncontainer.css';export class AISuggestionContainerView extends _0x2dedfd{[_0x2c90c3(0x175)];[_0x2c90c3(0x176)];[_0x2c90c3(0x167)];constructor(_0x5b6f97,_0x4c7b5a,_0x1f9fc7){const _0x546cf0=_0x2c90c3;super(_0x5b6f97);const {showDiff:_0x53cd2f,areActionsDisabled:_0x5b6d77,showUnchangedParts:_0x1b47e2,availableActions:_0x1ce059}=_0x4c7b5a;this[_0x546cf0(0x164)](_0x546cf0(0x16d),!0x1),this[_0x546cf0(0x164)](_0x546cf0(0x178),!0x1),this[_0x546cf0(0x176)]=this[_0x546cf0(0x15d)](),this[_0x546cf0(0x167)]=new _0x5c3d5a(_0x5b6f97,{'showDiff':_0x53cd2f}),this[_0x546cf0(0x167)]['on'](_0x546cf0(0x16a),(_0x3a6bf2,_0x4affff)=>{const _0xc03748=_0x546cf0;this[_0xc03748(0x178)]=_0x4affff[_0xc03748(0x15c)],this[_0xc03748(0x173)](_0xc03748(0x166),{'showDiff':_0x4affff[_0xc03748(0x15c)]});}),this[_0x546cf0(0x176)][_0x546cf0(0x160)](this[_0x546cf0(0x167)]),this[_0x546cf0(0x175)]=new _0x429704(_0x5b6f97,{'areActionsDisabled':_0x5b6d77,'showUnchangedParts':!!_0x1b47e2,'availableActions':_0x1ce059,'bodyCollection':_0x1f9fc7}),this[_0x546cf0(0x175)][_0x546cf0(0x15f)](..._0x300168)['to'](this),this[_0x546cf0(0x175)][_0x546cf0(0x162)](_0x546cf0(0x16d))['to'](this),this[_0x546cf0(0x176)][_0x546cf0(0x160)](this[_0x546cf0(0x175)]),this[_0x546cf0(0x170)]({'tag':_0x546cf0(0x15b),'attributes':{'class':['ck',_0x546cf0(0x165),_0x546cf0(0x17a)]},'children':this[_0x546cf0(0x176)]});}async[_0x2c90c3(0x174)](_0x425996){const _0x148739=_0x2c90c3;await this[_0x148739(0x175)][_0x148739(0x179)](_0x425996);}[_0x2c90c3(0x163)](_0x66c6a0){const _0x517d95=_0x2c90c3;this[_0x517d95(0x175)][_0x517d95(0x163)](_0x66c6a0);}[_0x2c90c3(0x16c)](){const _0x6d345c=_0x2c90c3;this[_0x6d345c(0x175)][_0x6d345c(0x16c)](),this[_0x6d345c(0x167)]&&(this[_0x6d345c(0x167)][_0x6d345c(0x17b)]=this[_0x6d345c(0x175)][_0x6d345c(0x169)]);}}
|