const _F_P=_F_Pv;const _F_Y=new Set(["ADDRESS","ARTICLE","ASIDE","BLOCKQUOTE","DD","DIV","DT","FIELDSET","FIGCAPTION","FOOTER","FORM","H1","H2","H3","H4","H5","H6","HEADER","LI","MAIN","NAV","P","PRE","SECTION","TD","TH"]);const _F_N=new Map([["SUP",["^\\[[0-9]+\\]$"]],["SUB",["^\\[[0-9]+\\]$"]],["IMG",[]],["STYLE",[]]]);const _F_R=[["<img [^>]+?>",""]];const _F_T=new Set(["INPUT"]);const _F_H=new Set([]);let _F_doc=document;let _F_win=window;let _F_fra;function _F__h(e){if(e.style.display=="none"||e.style.visibility=="hidden")return true;const s=_F_win.getComputedStyle(e);return s["visibility"]=="hidden"||s["display"]=="none"}function _F__test(e){return e.tagName&&_F_Y.has(e.tagName)&&e.innerText.trim().length>0&&!_F__h(e)}function _F__tn(e){for(let n of e.childNodes){switch(n.nodeType){case Node.TEXT_NODE:if(n.textContent.trim().length>0)return true;break}}}function _F__elem(e){while(e&&!_F__test(e))e=e.parentNode;if(e){const p=e.parentNode;if(p&&_F__test(p)&&_F__tn(p))return p;return e}}function _F__qs(e){if(e.id){return`#${e.id}`}const path=[];let e1=e;while(e1.tagName!=="BODY"){const p=e1.parentElement;if(!p){return null}const ts={};let b=false;for(let c of p.children){const tag=c.tagName;const count=ts[tag]||0;ts[tag]=count+1;if(c===e1){b=true;break}}if(!b){return null}const c=ts[e1.tagName];const t=e1.tagName.toLowerCase();path.push(`${t}:nth-of-type(${c})`);e1=p}path.push("body");return path.reverse().join(" > ")}function _F__q(qs){return _F_doc.querySelector(qs)}function _F__it_t(v){return _F_doc.createTreeWalker(v,NodeFilter.SHOW_TEXT)}function _F__it_e(v){return _F_doc.createTreeWalker(v,NodeFilter.SHOW_ELEMENT)}function _F__it_te(v){return _F_doc.createTreeWalker(v,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT)}function _F__n_0(n){if(n.nodeName){const a=_F_N.get(n.nodeName);if(a){if(a.length>0){for(let p of a)if(new RegExp(p,"ig").test(n.textContent.trim()))return true}else return true}}return false}function _F__n(n){while(n&&!_F__n_0(n))n=n.parentNode;return n?true:false}function _F__tp(r){const i=_F__it_te(r);while(i.nextNode()){const n=i.currentNode;switch(n.nodeType){case Node.TEXT_NODE:if(n.textContent.trim().length>0)return true;break;case Node.ELEMENT_NODE:if(!_F__h(n)&&!_F__n(n)&&n.textContent.trim().length>0)return true;break}}}function _F__bt(e){return e.textContent}function _F__t(df){if(_F__tp(df)){let a=[];const i=_F__it_e(df);while(i.nextNode()){const n=i.currentNode;switch(n.nodeType){case Node.ELEMENT_NODE:if(_F__h(n)||_F__n_0(n))a.push(n);break}}for(let e of a)e.parentNode.removeChild(e)}let s="";const i=_F__it_te(df);function t(s){let m=0,n=s.length-1;while(m<=n&&s[m]=="\n")++m;while(n>m&&s[n]=="\n")--n;return s.substring(m,n+1)}while(i.nextNode()){const n=i.currentNode;switch(n.nodeType){case Node.TEXT_NODE:s+=t(n.textContent);break;case Node.ELEMENT_NODE:if(n.tagName==="BR")s+=`\n`;break}}for(let v of _F_R){const[p,r]=v;const re=new RegExp(p,"i");const s1=s.replace(re,r);if(s1.length>0)s=s1}return s}function _F__range(e,p,l){const r=e.ownerDocument.createRange();const i=_F__it_t(e);while(i.nextNode()){const n=i.currentNode;const t=n.textContent;const v=t.length;if(v>p){r.setStart(n,p);let q=p+l;if(v>=q){r.setEnd(n,q);break}else{q-=v;while(i.nextNode()){const n=i.currentNode;const t=n.textContent;const v=t.length;if(v>=q){r.setEnd(n,q);break}else q-=v}break}}else p-=v}return r}function _F__rts(e,p,l){const r=_F__range(e,p,l);if(r.startContainer!=r.endContainer||r.startOffset!=r.endOffset)return{r:r,brt:r.getBoundingClientRect(),rts:r.getClientRects()};return{r:r,brt:e.getBoundingClientRect()}}let _F__lhl;function _F__chl(){if(_F__lhl){const{e,v}=_F__lhl;if(e){e.innerHTML=v}_F__lhl=undefined}}function _F__hlt(e){if(_F_H.has(e.tagName)){return false}for(let c of e.children){if(_F_Y.has(c.tagName)){return false}else{if(!_F__hlt(c)){return false}}}return true}function _F__hl(qs,rs,ti,d){_F__chl();const e=_F__q(qs);if(e&&rs.length>ti){if(_F__hlt(e)){const[p,l]=rs[ti];const v=_F__range(e,p,l);if(v){_F__lhl={e:e,v:e.innerHTML};const n=e.ownerDocument.createElement("SPAN");n.style.cssText=d?"color:#666666;background-color:#666666;":"color:#000000;background-color:#faf082;";const df=v.extractContents();if(df)n.innerText=_F__t(df);v.insertNode(n)}}}}function _F__ti(qs,rs,pt){function f(x,y,rt){return x>=rt.x&&x<=rt.x+rt.width&&y>=rt.y&&y<=rt.y+rt.height}const e=_F__q(qs);if(!e)return;const[x,y]=pt;for(let ti=0;ti<rs.length;ti++){const[p,l]=rs[ti];const v=_F__rts(e,p,l);if(!v)continue;const rts=v.rts;if(rts&&rts.length>0){for(let rt of rts)if(f(x,y,rt))return ti}else{const rt=v.brt;if(rt&&f(x,y,rt))return ti}}}function _F__d(qs,rs,ti){_F__chl();const e=_F__q(qs);if(ti<rs.length){const[p,l]=rs[ti];const{brt:rt,r}=_F__rts(e,p,l);if(rt){const df=r.cloneContents();const text=_F__t(df);let{scrollX:sx,scrollY:sy}=_F_win;if(_F_fra){const fr=_F_fra.getBoundingClientRect();sx+=fr.x}return JSON.stringify({sx:sx,sy:sy,x:rt.x,y:rt.y,w:rt.width,h:rt.height,text:text})}}}function _F__preve(e){function f(e){if(_F__test(e)&&_F__tn(e))return e;let c=e.lastElementChild;while(c){const e1=f(c);if(e1)return e1;c=c.previousElementSibling}if(_F__test(e))return e}if(e){let e1=e.previousElementSibling;while(e1){const e2=f(e1);if(e2)return e2;e1=e1.previousElementSibling}return _F__preve(e.parentElement)}}function _F__nexte(e){function f(e){if(_F__test(e)&&_F__tn(e))return e;let c=e.firstElementChild;while(c){const e1=f(c);if(e1)return e1;c=c.nextElementSibling}if(_F__test(e))return e}if(e){let e1=e.nextElementSibling;while(e1){const e2=f(e1);if(e2)return e2;e1=e1.nextElementSibling}return _F__nexte(e.parentElement)}}function _F__titest0(e,rs,ti){if(rs.length<=ti)return false;const[p,l]=rs[ti];const v=_F__rts(e,p,l);const rt=v.brt;return rt.width>=2&&rt.height>=2}function _F__titest(qs,rs,ti){const e=_F__q(qs);if(e)return _F__titest0(e,rs,ti)}function _F__prev(qs,rs,ti){const e=_F__q(qs);if(e){if(ti>0){const ti1=ti-1;if(_F__titest0(e,rs,ti1)){const type="p_ti";const d={type:type,ti:ti1};return JSON.stringify(d)}else return _F__prev(qs,rs,ti1)}else{const e1=_F__preve(e);if(e1){const qs1=_F__qs(e1);const type="p_e";const text=_F__bt(e1);return JSON.stringify({type:type,qs:qs1,text:text})}}}return JSON.stringify({type:"p_n"})}function _F__next(qs,rs,ti){const e=_F__q(qs);if(e){if(ti+1<rs.length){const ti1=ti+1;if(_F__titest0(e,rs,ti1)){const type="n_ti";const d={type:type,ti:ti1};return JSON.stringify(d)}else return _F__next(qs,rs,ti1)}else{const e1=_F__nexte(e);if(e1){const qs1=_F__qs(e1);const type="n_e";const text=_F__bt(e1);return JSON.stringify({type:type,qs:qs1,text:text})}}}return JSON.stringify({type:"n_n"})}function _F__track0(x,y){const{scrollX:sx,scrollY:sy}=_F_win;const e0=_F_doc.elementFromPoint(x,y);if(e0){if(!_F_T.has(e0.tagName)){const e=_F__elem(e0);if(e){const qs=_F__qs(e);const text=_F__bt(e);const p={x:x,y:y};return{qs:qs,text:text,sx:sx,sy:sy,p:p}}}}const p={x:x,y:y};return{sx:sx,sy:sy,p:p}}function _F__track(x,y){return JSON.stringify(_F__track0(x,y))}(()=>{function set(w,f){_F_win=w;_F_doc=w.document;_F_fra=f}function sync(w,f){const d=w.document;d.addEventListener("click",e=>{set(w,f);const s=d.getSelection();const stype=s.type;if(_F_P==="mac"){if(stype!=="Caret"||e.x>w.innerWidth-25||e.y>w.innerHeight-25)return}const v=_F__track0(e.x,e.y);window.webkit.messageHandlers._F_.postMessage(JSON.stringify({...v,type:"click",stype:stype}))});d.addEventListener("dblclick",e=>{set(w);const p={x:e.x,y:e.y};window.webkit.messageHandlers._F_.postMessage(JSON.stringify({type:"dblclick",p:p}))})}function conn(){const fs=document.getElementsByTagName("iframe");for(let f of fs){if(f.contentWindow._F_){continue}f.contentWindow._F_=true;sync(f.contentWindow,f)}}document.addEventListener("scroll",e=>{conn()});conn();sync(window)})();