!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=1956)}({100: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},1956:function(e,n,t){"use strict";t.r(n);var o,r=t(100);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&&"带货"!==n.title||window.open(n.href)}),chrome.runtime.onMessage.addListener((function(e,n,t){return"GET_IFRAME_URL"===(null==e?void 0:e.action)&&t(window.location.href),!1})),function(){if(window!==window.top){var e=function(){try{chrome.runtime.sendMessage({type:"IFRAME_URL_CHANGE",url:window.location.href})}catch(e){}},n=function(n){var t=window.history[n];window.history[n]=function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];t.apply(window.history,o),e()}};n("pushState"),n("replaceState"),window.addEventListener("popstate",e),window.addEventListener("hashchange",e),e()}}(),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)}var i=null;window.addEventListener("message",(function(e){if(i&&e.data){var n=e.data,t=n.shenfuIframeHeight;("SHENFU_IFRAME_RESIZE"===n.type||t)&&t>0&&(i.style.height="".concat(t,"px"))}}))}});