"use strict";const SPHINX_HIGHLIGHT_ENABLED=!0,_highlight=(e,t,n,s)=>{if(e.nodeType===Node.TEXT_NODE){{const i=e.nodeValue,o=e.parentNode,a=i.toLowerCase().indexOf(n);if(a>=0&&!o.classList.contains(s)&&!o.classList.contains("nohighlight")){let r;const c=o.closest("body, svg, foreignObject"),l=c&&c.matches("svg");l?r=document.createElementNS("http://www.w3.org/2000/svg","tspan"):(r=document.createElement("span"),r.classList.add(s)),r.appendChild(document.createTextNode(i.substr(a,n.length)));const d=document.createTextNode(i.substr(a+n.length));if(o.insertBefore(r,o.insertBefore(d,e.nextSibling)),e.nodeValue=i.substr(0,a),_highlight(d,t,n,s),l){const e=document.createElementNS("http://www.w3.org/2000/svg","rect"),n=o.getBBox();e.x.baseVal.value=n.x,e.y.baseVal.value=n.y,e.width.baseVal.value=n.width,e.height.baseVal.value=n.height,e.setAttribute("class",s),t.push({parent:o,target:e})}}}}else e.matches&&!e.matches("button, select, textarea")&&e.childNodes.forEach(e=>_highlight(e,t,n,s))},_highlightText=(e,t,n)=>{let s=[];_highlight(e,s,t,n),s.forEach(e=>e.parent.insertAdjacentElement("beforebegin",e.target))},SphinxHighlight={highlightSearchWords:()=>{if(!SPHINX_HIGHLIGHT_ENABLED)return;const e=new URL(window.location),o=localStorage.getItem("sphinx_highlight_terms")||e.searchParams.get("highlight")||"";localStorage.removeItem("sphinx_highlight_terms"),e.searchParams.delete("highlight"),window.history.replaceState({},"",e);const t=o.toLowerCase().split(/\s+/).filter(e=>e);if(t.length===0)return;const n=document.querySelectorAll("div.body"),i=n.length?n[0]:document.querySelector("body");window.setTimeout(()=>{t.forEach(e=>_highlightText(i,e,"highlighted"))},10);const s=document.getElementById("searchbox");if(s===null)return;s.appendChild(document.createRange().createContextualFragment('<p class="highlight-link"><a href="javascript:SphinxHighlight.hideSearchWords()">'+_("Hide Search Matches")+"</a></p>"))},hideSearchWords:()=>{document.querySelectorAll("#searchbox .highlight-link").forEach(e=>e.remove()),document.querySelectorAll("span.highlighted").forEach(e=>e.classList.remove("highlighted")),localStorage.removeItem("sphinx_highlight_terms")},initEscapeListener:()=>{if(!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS)return;document.addEventListener("keydown",e=>{if(BLACKLISTED_KEY_CONTROL_ELEMENTS.has(document.activeElement.tagName))return;if(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey)return;DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS&&e.key==="Escape"&&(SphinxHighlight.hideSearchWords(),e.preventDefault())})}};_ready(()=>{typeof Search=="undefined"&&SphinxHighlight.highlightSearchWords(),SphinxHighlight.initEscapeListener()})