!function(e){var n={};function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:o})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)t.d(o,r,function(n){return e[n]}.bind(null,r));return o},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=1926)}({107:function(e,n,t){"use strict";t.d(n,"b",(function(){return r})),t.d(n,"a",(function(){return a}));var o=chrome.runtime.getManifest().__nwjs_app,r=!o,a=o},1926:function(e,n,t){"use strict";t.r(n);var o,r=t(107);if(o=document.querySelector("#js_index_menu"),r.b&&window.top!==window&&o&&(o.onclick=function(e){var n=e.target.closest("a");!n||"广告主"!==n.title&&"流量主"!==n.title||window.open(n.href)}),window.addEventListener("message",(function(e){if("get-cross-iframe-url"===e.data.type){var n=e.data.reqId,t=window.location.href;e.source.postMessage({type:"cross-iframe-url-response",reqId:n,payload:{url:t}},e.origin)}})),chrome.runtime.onMessage.addListener((function(e,n,t){return"getPageData"===e.action&&((o=e.expression,new Promise((function(e){var n="shenfu_".concat(Date.now(),"_").concat(Math.random()),t=function t(o){var r,a;"SHENFU_PAGE_DATA"===(null===(r=o.data)||void 0===r?void 0:r.type)&&(null===(a=o.data)||void 0===a?void 0:a.id)===n&&(window.removeEventListener("message",t),e(o.data.data))};window.addEventListener("message",t);var r=document.createElement("script");r.textContent="\n      (function() {\n        try {\n          const data = ".concat(o,";\n          window.postMessage({\n            type: 'SHENFU_PAGE_DATA',\n            id: '").concat(n,"',\n            data: data || null\n          }, '*');\n        } catch(e) {\n          window.postMessage({\n            type: 'SHENFU_PAGE_DATA',\n            id: '").concat(n,"',\n            data: null,\n            error: e.message\n          }, '*');\n        }\n      })();\n    "),document.head.appendChild(r),r.remove(),setTimeout((function(){window.removeEventListener("message",t),e(null)}),3e3)}))).then((function(e){t({success:!0,data:e})})),!0);var o})),"mp.weixin.qq.com"===window.location.host){var a=function(){try{var e=new URL(window.location.href).searchParams.get("token");e&&/^\d+$/.test(e)&&chrome.runtime.sendMessage({event:"token.active",data:{token:e}})}catch(e){console.error("[ContentScript] Failed to sync active token:",e)}};a(),window.addEventListener("focus",a)}}});