"use strict";((factory,window,document)=>{if(typeofdefine==="function"&&define.amd){define(["jquery","datatables.net","markjs"],jQuery=>{returnfactory(window,document,jQuery);});}elseif(typeofexports==="object"){require("datatables.net");require("markjs");factory(window,document,require("jquery"));}else{factory(window,document,jQuery);}})((window,document,$)=>{classMark_DataTables{constructor(dtInstance,options){if(typeof$.fn.mark!=="function"||typeof$.fn.unmark!=="function"){thrownewError("jquery.mark.js is necessary for datatables.mark.js");}this.instance=dtInstance;this.options=typeofoptions==="object"?options:{};this.intervalThreshold=49;this.intervalMs=300;this.initMarkListener();}initMarkListener(){constev="draw.dt.dth column-visibility.dt.dth column-reorder.dt.dth";letintvl=null;this.instance.on(ev,()=>{constrows=this.instance.rows({filter:"applied",page:"current"}).nodes().length;if(rows>this.intervalThreshold){clearTimeout(intvl);intvl=setTimeout(()=>{this.mark();},this.intervalMs);}else{this.mark();}});this.instance.on("destroy",()=>{this.instance.off(ev);});this.mark();}mark(){constglobalSearch=this.instance.search();$(this.instance.table().body()).unmark(this.options);this.instance.columns({search:"applied",page:"current"}).nodes().each((nodes,colIndex)=>{constcolumnSearch=this.instance.column(colIndex).search(),searchVal=columnSearch||globalSearch;if(searchVal){nodes.forEach(node=>{$(node).mark(searchVal,this.options);});}});}}$(document).on("init.dt.dth",(event,settings)=>{if(event.namespace!=="dt"){return;}constdtInstance=$.fn.dataTable.Api(settings);letoptions=null;if(dtInstance.init().mark){options=dtInstance.init().mark;}elseif($.fn.dataTable.defaults.mark){options=$.fn.dataTable.defaults.mark;}if(options===null){return;}newMark_DataTables(dtInstance,options);});},window,document);