"use strict";(self.webpackChunkflow_web_extension=self.webpackChunkflow_web_extension||[]).push([["58348"],{696493:function(e,s,n){n.d(s,{M:()=>i});class i{on(e,s){var n;this.listeners[e]||(this.listeners[e]=[]),s&&(null===(n=this.listeners[e])||void 0===n||n.push(s))}off(e,s){if(this.listeners[e]){var n,i,t=null===(n=this.listeners[e])||void 0===n?void 0:n.filter(e=>e!==s);this.listeners[e]=[],t&&(null===(i=this.listeners[e])||void 0===i||i.push(...t))}}get(e){return this.listeners[e]||[]}constructor(){this.listeners={}}}},487826:function(e,s,n){n.r(s),n.d(s,{ReadDocumentMessageLifeCyclePlugin:()=>a});var i=n(771197),t=n(159574),r=n(65379),o=n(41139),l=n(298662),u=new(n(696493)).M;class a{onMessageReceivingUpdate(e,s){var n,{meta_infos:i,is_finish:l}=s;return l&&!(0,t.Z)(i)&&o.k.persist.info({eventName:"flow_pdf_page_anchor_counter",meta:{anchor_nums:(null==i?void 0:i.filter(e=>e.type===r.MetaType.DocumentRef).length)||0,message_id:s.message_id,inner_log_id:null===(n=s.ext)||void 0===n?void 0:n.inner_log_id}}),s}processMessageBefore(e,s){return(0,i._)(function*(){for(var n of u.get("processMessageBefore"))s=yield n(e,s);return s})()}constructor(){this.pluginIdentifier=l._}}}}]);
//# sourceMappingURL=58348.js.map