(()=>{"use strict";const t="LION_GMAPS_SEARCH_DATA",e=[/^\/search/,/^\/maps\/preview\//,/^\/batchexecute/,/^\/maps\/rpc/,/^\/maps\/place/,/\/\/www\.google\.com\/search/,/^https?:\/\/[^/]+\/search/],s=[/\.(js|css|png|jpg|jpeg|svg|woff2?|ico|mp4|webp|gif)(\?|$)/i,/\/vt\//,/googleads|doubleclick/,/\/gen_204/],n=t=>{if(!t)return!1;for(const e of s)if(e.test(t))return!1;for(const s of e)if(s.test(t))return!0;return!1},o=(e,s)=>{if(!("string"!=typeof s||s.length<40))try{window.postMessage({type:t,url:e,body:s},"*")}catch(t){}};!function(){const t=window;if(t.__LION_GMAPS_HOOK_INSTALLED__)return;t.__LION_GMAPS_HOOK_INSTALLED__=!0;const e=XMLHttpRequest.prototype.open,s=XMLHttpRequest.prototype.send,i=new WeakMap;if(XMLHttpRequest.prototype.open=function(t,s,n,o,r){try{i.set(this,"string"==typeof s?s:s.toString())}catch{}return arguments.length<=2?e.call(this,t,s):e.call(this,t,s,!!n,o??null,r??null)},XMLHttpRequest.prototype.send=function(t){try{this.addEventListener("readystatechange",()=>{if(4!==this.readyState)return;const t=i.get(this)||"",e=n(t);if(t&&/\/vt\//.test(t),e)try{let e=null;const s=this.responseType;if(""===s||"text"===s)e=this.responseText;else if("json"===s&&null!=this.response)e=JSON.stringify(this.response);else if(null!=this.response&&"string"==typeof this.response)e=this.response;else if(null!=this.response)try{e=JSON.stringify(this.response)}catch{}e&&o(t,e)}catch(t){}})}catch{}return s.call(this,t??null)},"function"==typeof window.fetch){const t=window.fetch.bind(window);window.fetch=async function(e,s){const i=await t(e,s);try{const t="string"==typeof e?e:e instanceof URL?e.toString():e.url||"",s=n(t);t&&/\/vt\//.test(t),s&&i.clone().text().then(e=>o(t,e)).catch(()=>{})}catch{}return i}}}()})();