/** * Searches for a previous sibling element that has a nested child element matching the provided search predicate. * The search starts from the given element and proceeds to its previous siblings, diving deep into each sibling's descendants. * * @param {HTMLElement} element - The starting element to begin the search from. * @param {(el: HTMLElement) => boolean} searchPredicate - A predicate function that checks if an element matches the desired condition. * @returns {HTMLElement | null} - The matching nested child element, or null if no matching element is found. * * @example * // HTML structure: * //