1 line
21 KiB
JavaScript
1 line
21 KiB
JavaScript
var e,t;"function"==typeof(e=globalThis.define)&&(t=e,e=null),function(t,n,r,s,i){var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},o="function"==typeof a[s]&&a[s],c=o.cache||{},l="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function m(e,n){if(!c[e]){if(!t[e]){var r="function"==typeof a[s]&&a[s];if(!n&&r)return r(e,!0);if(o)return o(e,!0);if(l&&"string"==typeof e)return l(e);var i=Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}g.resolve=function(n){var r=t[e][1][n];return null!=r?r:n},g.cache={};var d=c[e]=new m.Module(e);t[e][0].call(d.exports,g,d,d.exports,this)}return c[e].exports;function g(e){var t=g.resolve(e);return!1===t?{}:m(t)}}m.isParcelRequire=!0,m.Module=function(e){this.id=e,this.bundle=m,this.exports={}},m.modules=t,m.cache=c,m.parent=o,m.register=function(e,n){t[e]=[function(e,t){t.exports=n},{}]},Object.defineProperty(m,"root",{get:function(){return a[s]}}),a[s]=m;for(var d=0;d<n.length;d++)m(n[d]);if(r){var g=m(r);"object"==typeof exports&&"undefined"!=typeof module?module.exports=g:"function"==typeof e&&e.amd?e(function(){return g}):i&&(this[i]=g)}}({"7WzvT":[function(e,t,n){var r=e("~libs/react-fiber-main-handler"),s=e("~services/offer-list-toolbar/message-handler");window.addEventListener("message",s.handleOfferListToolbarMessage),window.addEventListener("message",r.handleGetReactFiberDataMessage)},{"~libs/react-fiber-main-handler":"eZTcZ","~services/offer-list-toolbar/message-handler":"aL9Fz"}],eZTcZ:[function(e,t,n){var r=e("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"GET_REACT_FIBER_DATA_MSG",()=>a),r.export(n,"handleGetReactFiberDataMessage",()=>o);var s=e("./dom"),i=e("./post-message");let a="get-react-fiber-data";function o(e){let t;let n=e.data;if(!(0,i.isPostMessageChannelValid)(n)||n.name!==a)return;let r=n.payload;try{let e=document.querySelector(r.selector);e&&(t=(0,s.getDataFromReactInstance)(e,{instanceKeys:r.instanceKeys,dataPaths:r.dataPaths}))}catch(e){console.warn("[handleGetReactFiberDataMessage] error:",e)}let o=Date.now(),c=`${a}_FINISH`,l=(0,i.getPostMessageChannelSign)(n.id,c,o,t);window.postMessage({id:n.id,name:c,sign:l,timestamp:o,payload:t},e.origin||"*")}},{"./dom":"ivfBQ","./post-message":"apn74","@parcel/transformer-js/src/esmodule-helpers.js":"f6DG4"}],ivfBQ:[function(e,t,n){var r=e("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"getCSSSelector",()=>function e(t){if(!t||!(t instanceof Element))return"";if(t===document.documentElement)return"html";if(t.id)return`#${CSS.escape(t.id)}`;let n="";return t.parentElement&&(n=e(t.parentElement))&&(n+=" > "),n+function(e){let t=e.parentElement,n=Array.from(t?.children||[]);if(!t||n.length<=1)return e.nodeName.toLowerCase();let r=Array.from(e.classList).map(e=>`.${CSS.escape(e)}`).join(""),s=-1,i=!0,a=!!r;return(n.some((t,n)=>{if(-1!==s&&!i&&!a)return!0;if(t===e&&(s=n),t!==e){t.nodeName===e.nodeName&&(i=!1);try{r&&t.matches(r)&&(a=!1)}catch(e){console.log(e)}}}),i)?e.nodeName.toLowerCase():a?e.nodeName.toLowerCase()+r:e.nodeName.toLowerCase()+`:nth-child(${s+1})`}(t)}),r.export(n,"myCreateElement",()=>c),r.export(n,"getDataFromReactInstance",()=>m),r.export(n,"getDataFromReactInstanceAsync",()=>d),r.export(n,"showToast",()=>g),r.export(n,"getNestedValue",()=>p),r.export(n,"injectCssStyle",()=>u),r.export(n,"injectShadowCssStyle",()=>f);var s=e("~common/images"),i=e("./post-message"),a=e("./react-fiber-main-handler"),o=e("./utils");function c(e,t){let n=document.createElement(e),{className:r,style:s,events:i,children:a,dataset:o,...c}=t||{};if(r&&(Array.isArray(r)?n.className=r.filter(e=>!!e).join(" "):n.className=r),c)for(let t in c)if("className"===t)n.className=c[t];else if("htmlFor"===t)"htmlFor"in n&&n.setAttribute("for",c[t]);else if(t in n)try{n[t]=c[t]}catch(n){console.warn(`\u5728 <${e}> \u5143\u7d20\u4e0a\u8bbe\u7f6e\u5c5e\u6027 '${t}' \u5931\u8d25:`,n)}else n.setAttribute(t,c[t]);if("img"===e&&"referrerPolicy"in n&&!("referrerPolicy"in c)&&(n.referrerPolicy="no-referrer"),Object.assign(n.style,s||{}),i)for(let e in i)n.addEventListener(e,i[e]);if(o)for(let e in o)n.dataset[e]=o[e];return a?.forEach(e=>{"string"==typeof e?n.appendChild(document.createTextNode(e)):e instanceof HTMLElement&&n.appendChild(e)}),n}let l=["^__reactInternalInstance","^__reactFiber"];function m(e,t){try{let n;if(!e||!(e instanceof Element))return;let r=[...t.instanceKeys||[],...l].map(e=>new RegExp(e)),s=Object.keys(e).length,i=Object.keys(e).sort((e,t)=>{let n=r.findIndex(t=>t.test(e)),i=r.findIndex(e=>e.test(t));return(-1===n?s:n)-(-1===i?s:i)});return i?.some(s=>{let i=r.some(e=>{if(e.test(s))return!0});if(!i)return;let a=e?.[s];return t.dataPaths?.some(e=>{let t=o.getValueByPath(a,e);if(null!=t)return n=t,!0})}),n}catch(e){console.error(e);return}}async function d(e,t){if(!e||!(e instanceof Element))return;let n=`data-mm-fiber-${Date.now()}-${Math.random().toString(36).slice(2)}`;e.setAttribute(n,"1");let r=new i.PostMessageChannel;try{let e=await r.sendMessage({name:a.GET_REACT_FIBER_DATA_MSG,request:{selector:`[${n}]`,instanceKeys:t.instanceKeys||[],dataPaths:t.dataPaths||[]}},{timeout:1e3});return e.success?e.data:void 0}finally{r.destroy(),e.removeAttribute(n)}}function g(e){let t=document.createElement("div"),n=document.createElement("span");n.innerText=e.message;let r=document.createElement("img");switch(r.style.height="18px",r.style.width="18px",r.style.marginRight="12px",r.referrerPolicy="no-referrer",e.type){case"success":r.src=s.IMAGE.IconSuccess;break;case"error":r.src=s.IMAGE.IconError;break;case"warning":r.src=s.IMAGE.IconWarning;break;default:r.src=s.IMAGE.IconInfo}t.append(r,n),t.style.position="fixed",t.style.display="flex",t.style.justifyContent="center",t.style.alignItems="center",t.style.top="40%",t.style.left="50%",t.style.transform="translateX(-50%)",t.style.padding="16px",t.style.backgroundColor="#333",t.style.color="#fff",t.style.borderRadius="5px",t.style.minWidth="250px",t.style.textAlign="center",t.style.zIndex="9999",t.style.opacity="0",t.style.transition="opacity 0.3s, visibility 0.3s",t.style.visibility="hidden",document.body.appendChild(t);let i=setTimeout(()=>{t.style.opacity="1",t.style.visibility="visible"},100),a=setTimeout(()=>{t.style.opacity="0",t.style.visibility="hidden",setTimeout(()=>{document.body.contains(t)&&document.body.removeChild(t),i=null,a=null},300)},3e3);return Object.assign(t.style,e.extraStyle||{}),()=>{null!==i&&(clearTimeout(i),i=null),null!==a&&(clearTimeout(a),a=null),document.body.contains(t)&&document.body.removeChild(t)}}let p=(e,t)=>{if(!t||"object"!=typeof e||null===e)return null;let n=t.replace(/\[(\d+)\]/g,".$1").split(".");return n.reduce((e,t)=>{if(null!=e){let n=e[t];return n&&n instanceof Node&&n.nodeType===Node.COMMENT_NODE?"firstChild"===t?n.nextSibling:n.previousSibling:n}return null},e)};function u(e,t){if(!e||t&&document.querySelector(`style#${t}`))return;let n=document.createElement("style");n.innerHTML=e,t&&(n.id=t),document.head.append(n)}function f(e,t){if(!e)return;let n=document.createElement("style");n.textContent=e,n.setAttribute("data-styled",""),t.append(n)}},{"~common/images":"jjMCF","./post-message":"apn74","./react-fiber-main-handler":"eZTcZ","./utils":"7nCx4","@parcel/transformer-js/src/esmodule-helpers.js":"f6DG4"}],jjMCF:[function(e,t,n){var r=e("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"IMAGE",()=>s);let s={IconFolder:"https://img.alicdn.com/imgextra/i1/O1CN01Z70DtQ1xzSzevyLmc_!!6000000006514-55-tps-48-48.svg",IconSpecWarning:"https://img.alicdn.com/imgextra/i3/O1CN01tbUAE71gLInE30yDc_!!6000000004125-2-tps-48-48.png",IconChartSelect:"https://img.alicdn.com/imgextra/i4/O1CN01q2RnEZ27zbGaDPJtb_!!6000000007868-2-tps-36-36.png",IconChartSelected:"https://img.alicdn.com/imgextra/i2/O1CN01kTluCb1FcFpHjytp2_!!6000000000507-2-tps-48-48.png",IconZip:"https://img.alicdn.com/imgextra/i2/O1CN01PDnFQb23ekmBKOmWA_!!6000000007281-55-tps-200-200.svg",SwitchIcon:"https://img.alicdn.com/imgextra/i1/O1CN01ABegcn1ZlgIHxSTNc_!!6000000003235-55-tps-64-64.svg",IconBackBlue:"https://img.alicdn.com/imgextra/i4/O1CN01JrIJSM1LoW7nrNZmh_!!6000000001346-55-tps-10-10.svg",IconBackNew:"https://img.alicdn.com/imgextra/i4/O1CN01HGsw3C28czKQsEkZS_!!6000000007954-55-tps-14-14.svg",IconSearchBg:"https://img.alicdn.com/imgextra/i1/O1CN01JcJfdl1p04yuuDybA_!!6000000005297-2-tps-368-311.png",IconEvaluation1:"https://img.alicdn.com/imgextra/i3/O1CN01vWOFek1e8MMtNGYIh_!!6000000003826-2-tps-90-21.png",IconEvaluation2:"https://img.alicdn.com/imgextra/i4/O1CN01pBLdkK1KIcvt9PZfY_!!6000000001141-2-tps-102-30.png",IconOperationOpen:"https://img.alicdn.com/imgextra/i1/O1CN01iZMcRj1tf4tmkujSk_!!6000000005928-2-tps-48-48.png",IconOperationTopActive:"https://img.alicdn.com/imgextra/i4/O1CN01TJfBVV1fr4eUwCq75_!!6000000004059-2-tps-48-48.png",IconOperationTop:"https://img.alicdn.com/imgextra/i4/O1CN01yC5ccb1wVrmTRB07P_!!6000000006314-2-tps-48-48.png",IconDelete:"https://img.alicdn.com/imgextra/i3/O1CN01D6u2TW25meqJfDP5q_!!6000000007569-2-tps-72-72.png",IconDeleteHover:"https://img.alicdn.com/imgextra/i2/O1CN01btreNs24MinaKeqNu_!!6000000007377-2-tps-72-72.png",IconClose:"https://img.alicdn.com/imgextra/i3/O1CN01YyvmJM1XHnDSQI3vz_!!6000000002899-55-tps-24-24.svg",IconFold:"https://img.alicdn.com/imgextra/i2/O1CN01eWKFeq1s7M7aTzlFH_!!6000000005719-55-tps-17-9.svg",IconDownload:"https://img.alicdn.com/imgextra/i3/O1CN01KFm21X1ErXQaZEbXY_!!6000000000405-55-tps-48-48.svg",IconBackRed:"https://img.alicdn.com/imgextra/i3/O1CN01Yf3Hih1lZZCvCfhYU_!!6000000004833-55-tps-12-12.svg",PanelClose:"https://img.alicdn.com/imgextra/i2/O1CN01kCbGsq1D7uLtZyg82_!!6000000000170-55-tps-24-24.svg",IconLoading:"https://img.alicdn.com/imgextra/i3/O1CN01C2J8kd1UmWwwbUMwv_!!6000000002560-55-tps-48-48.svg",GuideLogo:"https://img.alicdn.com/imgextra/i4/O1CN01CpSENy1o8UdkIPx8G_!!6000000005180-2-tps-427-58.png",IconFindSameGoodsLogo:"https://img.alicdn.com/imgextra/i4/O1CN01FJSq8O1af6FApmOGx_!!6000000003356-55-tps-35-36.svg",IconDZ:"https://img.alicdn.com/imgextra/i2/O1CN015RnE6g1o9rpY6WMVY_!!6000000005183-2-tps-36-36.png",IconFK:"https://img.alicdn.com/imgextra/i2/O1CN01hZ4utY24oCYvEKF0Q_!!6000000007437-2-tps-36-36.png",IconFJ:"https://img.alicdn.com/imgextra/i2/O1CN01VO8S0k1MjJEpZGiaI_!!6000000001470-2-tps-36-36.png",IconXX:"https://img.alicdn.com/imgextra/i1/O1CN01KRtVBY1KwTOGAdK2m_!!6000000001228-2-tps-36-36.png",IconZX:"https://img.alicdn.com/imgextra/i3/O1CN01MrHGnh23HOZpAmyF3_!!6000000007230-2-tps-36-36.png",IconTitleSearch:"https://gw.alicdn.com/imgextra/i2/O1CN011AMRWp1wyGKyiNJPN_!!6000000006376-55-tps-23-23.svg",IconHoverTitleSearch:"https://gw.alicdn.com/imgextra/i1/O1CN01yCGdFW1lmOIZwkznt_!!6000000004861-55-tps-48-48.svg",IconHoverChaiCi:"https://gw.alicdn.com/imgextra/i2/O1CN01yJtyaJ1fcPyngaftZ_!!6000000004027-55-tps-48-48.svg",DingTalkQrCode:"https://img.alicdn.com/imgextra/i3/O1CN01TEntxG1nlaqtgKaDD_!!6000000005130-0-tps-864-814.jpg",SuccessIcon:"https://img.alicdn.com/imgextra/i2/O1CN01GNJjWn1Kq3rNcXiYk_!!6000000001214-2-tps-200-200.png",SuccessIconNoBorder:"https://img.alicdn.com/imgextra/i4/O1CN01I3404d1ddfqoBlRFg_!!6000000003759-55-tps-200-200.svg",IconSuccess:"https://img.alicdn.com/imgextra/i2/O1CN01GNJjWn1Kq3rNcXiYk_!!6000000001214-2-tps-200-200.png",IconWarning:"https://img.alicdn.com/imgextra/i4/O1CN015HOfwY1LN2NfYxbI8_!!6000000001286-2-tps-48-48.png",IconInfo:"https://img.alicdn.com/imgextra/i2/O1CN016gvryS1nBrxqwL8rc_!!6000000005052-2-tps-48-48.png",IconError:"https://img.alicdn.com/imgextra/i3/O1CN01NBn14x1f9Z2r5mJKj_!!6000000003964-2-tps-48-48.png",IconTrend:"https://img.alicdn.com/imgextra/i3/O1CN01t88w421Dd3Iv5n869_!!6000000000238-55-tps-200-200.svg",IconSearch:"https://img.alicdn.com/imgextra/i2/O1CN01Uju3s71qjFg8BXDcz_!!6000000005531-2-tps-48-48.png",orderLogisticsBarLogo:"https://gw.alicdn.com/imgextra/i1/O1CN01v7ZGgQ1ZaEPzEGPl1_!!6000000003210-2-tps-80-60.png",UpdateVersionImage:"https://img.alicdn.com/imgextra/i2/O1CN01fsZ0mf1zz7vrLhB1w_!!6000000006784-2-tps-1470-1440.png",IconHoverCopy:"https://gw.alicdn.com/imgextra/i4/O1CN01VAX9FG1gPsnkELNdD_!!6000000004135-55-tps-200-200.svg",IconArrowDown:"https://img.alicdn.com/imgextra/i3/O1CN019t75v51JR2cMOvl5f_!!6000000001024-2-tps-48-48.png",IconArrowUp:"https://img.alicdn.com/imgextra/i2/O1CN01B8Oui81RWYJImw3Xy_!!6000000002119-2-tps-48-48.png",IconSwap:"https://img.alicdn.com/imgextra/i4/O1CN01wRnmMt1Kk6kP6THtV_!!6000000001201-2-tps-48-48.png",IconClosePng:"https://img.alicdn.com/imgextra/i3/O1CN01lfp0rf1Yo8rFs3T8N_!!6000000003105-2-tps-54-54.png",IconClose_White:"https://img.alicdn.com/imgextra/i3/O1CN01lZDr8b1Q2UjWNNU93_!!6000000001918-2-tps-32-32.png",IconOperationLogo:"https://gw.alicdn.com/imgextra/i3/O1CN01Kh2uBT1Sohfuu463D_!!6000000002294-55-tps-33-31.svg",IconAILogo:"https://gw.alicdn.com/imgextra/i3/O1CN01OgjNU925ZNR04UUBQ_!!6000000007540-55-tps-23-14.svg",IconAILogoWhite:"https://gw.alicdn.com/imgextra/i1/O1CN01PP7w2i1XQ2QL9Juqo_!!6000000002917-55-tps-23-14.svg"}},{"@parcel/transformer-js/src/esmodule-helpers.js":"f6DG4"}],f6DG4:[function(e,t,n){n.interopDefault=function(e){return e&&e.__esModule?e:{default:e}},n.defineInteropFlag=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.exportAll=function(e,t){return Object.keys(e).forEach(function(n){"default"===n||"__esModule"===n||t.hasOwnProperty(n)||Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}})}),t},n.export=function(e,t,n){Object.defineProperty(e,t,{enumerable:!0,get:n})}},{}],apn74:[function(e,t,n){var r=e("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"PostMessageChannel",()=>i),r.export(n,"getPostMessageChannelSign",()=>a),r.export(n,"isPostMessageChannelValid",()=>o);var s=e("./md5");class i{constructor(){this.pendingMessages=new Map,this.handleMessage=this.handleMessage.bind(this),window.addEventListener("message",this.handleMessage)}sendMessage(e,t){let n=this.generateUniqueId(),r=Date.now(),s=a(n,e.name,r,e.request),i={id:n,name:e.name,sign:s,timestamp:r,payload:e.request},o=t?.timeout||1e4;return new Promise(r=>{this.pendingMessages.set(n,{name:e.name,resolve:r}),window.postMessage(i,t?.targetOrigin||"*"),setTimeout(()=>{this.pendingMessages.has(n)&&(this.pendingMessages.delete(n),r({success:!1,message:`Request timed out after ${o}ms: ${e.name} ${JSON.stringify(e.request)}`}))},o)})}handleMessage(e){let t=e.data;if(!o(t))return;let n=this.pendingMessages.get(t.id);if(n){if(t.name!==`${n.name}_FINISH`)return;n.resolve({success:!0,data:t.payload}),this.pendingMessages.delete(t.id)}}generateUniqueId(){return`${Date.now()}-${Math.random().toString(36).substring(2)}`}destroy(){window.removeEventListener("message",this.handleMessage),this.pendingMessages.forEach(e=>{e.resolve?.({success:!1,message:"MessageChannel destroyed before response received"})}),this.pendingMessages.clear()}}function a(e,t,n,r){return(0,s.md5)(e+"&"+t+"&"+n+"&"+JSON.stringify(r))}function o(e){if(!e||!e.id||!e.name||!e.sign)return!1;let t=a(e.id,e.name,e.timestamp,e.payload);return t===e.sign}},{"./md5":"cCkMv","@parcel/transformer-js/src/esmodule-helpers.js":"f6DG4"}],cCkMv:[function(e,t,n){var r=e("@parcel/transformer-js/src/esmodule-helpers.js");function s(e){let t,n,r,s,i,a,o,c,l;function m(e,t){return e<<t|e>>>32-t}function d(e,t){let n,r,s,i,a;return(s=2147483648&e,i=2147483648&t,n=1073741824&e,r=1073741824&t,a=(1073741823&e)+(1073741823&t),n&r)?2147483648^a^s^i:n|r?1073741824&a?3221225472^a^s^i:1073741824^a^s^i:a^s^i}function g(e,t,n,r,s,i,a){return e=d(e,d(d(t&n|~t&r,s),a)),d(m(e,i),t)}function p(e,t,n,r,s,i,a){return e=d(e,d(d(t&r|n&~r,s),a)),d(m(e,i),t)}function u(e,t,n,r,s,i,a){return e=d(e,d(d(t^n^r,s),a)),d(m(e,i),t)}function f(e,t,n,r,s,i,a){return e=d(e,d(d(n^(t|~r),s),a)),d(m(e,i),t)}function h(e){let t,n="",r="";for(t=0;t<=3;t++)n+=(r="0"+(e>>>8*t&255).toString(16)).substr(r.length-2,2);return n}let y=[];for(t=0,y=function(e){let t;let n=e.length,r=n+8,s=((r-r%64)/64+1)*16,i=Array(s-1),a=0,o=0;for(;o<n;)t=(o-o%4)/4,a=o%4*8,i[t]=i[t]|e.charCodeAt(o)<<a,o++;return t=(o-o%4)/4,a=o%4*8,i[t]=i[t]|128<<a,i[s-2]=n<<3,i[s-1]=n>>>29,i}(e=function(e){e=e.replace(/\r\n/g,"\n");let t="";for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):r>127&&r<2048?t+=String.fromCharCode(r>>6|192)+String.fromCharCode(63&r|128):t+=String.fromCharCode(r>>12|224)+String.fromCharCode(r>>6&63|128)+String.fromCharCode(63&r|128)}return t}(e)),a=1732584193,o=4023233417,c=2562383102,l=271733878;t<y.length;t+=16)n=a,r=o,s=c,i=l,a=g(a,o,c,l,y[t+0],7,3614090360),l=g(l,a,o,c,y[t+1],12,3905402710),c=g(c,l,a,o,y[t+2],17,606105819),o=g(o,c,l,a,y[t+3],22,3250441966),a=g(a,o,c,l,y[t+4],7,4118548399),l=g(l,a,o,c,y[t+5],12,1200080426),c=g(c,l,a,o,y[t+6],17,2821735955),o=g(o,c,l,a,y[t+7],22,4249261313),a=g(a,o,c,l,y[t+8],7,1770035416),l=g(l,a,o,c,y[t+9],12,2336552879),c=g(c,l,a,o,y[t+10],17,4294925233),o=g(o,c,l,a,y[t+11],22,2304563134),a=g(a,o,c,l,y[t+12],7,1804603682),l=g(l,a,o,c,y[t+13],12,4254626195),c=g(c,l,a,o,y[t+14],17,2792965006),o=g(o,c,l,a,y[t+15],22,1236535329),a=p(a,o,c,l,y[t+1],5,4129170786),l=p(l,a,o,c,y[t+6],9,3225465664),c=p(c,l,a,o,y[t+11],14,643717713),o=p(o,c,l,a,y[t+0],20,3921069994),a=p(a,o,c,l,y[t+5],5,3593408605),l=p(l,a,o,c,y[t+10],9,38016083),c=p(c,l,a,o,y[t+15],14,3634488961),o=p(o,c,l,a,y[t+4],20,3889429448),a=p(a,o,c,l,y[t+9],5,568446438),l=p(l,a,o,c,y[t+14],9,3275163606),c=p(c,l,a,o,y[t+3],14,4107603335),o=p(o,c,l,a,y[t+8],20,1163531501),a=p(a,o,c,l,y[t+13],5,2850285829),l=p(l,a,o,c,y[t+2],9,4243563512),c=p(c,l,a,o,y[t+7],14,1735328473),o=p(o,c,l,a,y[t+12],20,2368359562),a=u(a,o,c,l,y[t+5],4,4294588738),l=u(l,a,o,c,y[t+8],11,2272392833),c=u(c,l,a,o,y[t+11],16,1839030562),o=u(o,c,l,a,y[t+14],23,4259657740),a=u(a,o,c,l,y[t+1],4,2763975236),l=u(l,a,o,c,y[t+4],11,1272893353),c=u(c,l,a,o,y[t+7],16,4139469664),o=u(o,c,l,a,y[t+10],23,3200236656),a=u(a,o,c,l,y[t+13],4,681279174),l=u(l,a,o,c,y[t+0],11,3936430074),c=u(c,l,a,o,y[t+3],16,3572445317),o=u(o,c,l,a,y[t+6],23,76029189),a=u(a,o,c,l,y[t+9],4,3654602809),l=u(l,a,o,c,y[t+12],11,3873151461),c=u(c,l,a,o,y[t+15],16,530742520),o=u(o,c,l,a,y[t+2],23,3299628645),a=f(a,o,c,l,y[t+0],6,4096336452),l=f(l,a,o,c,y[t+7],10,1126891415),c=f(c,l,a,o,y[t+14],15,2878612391),o=f(o,c,l,a,y[t+5],21,4237533241),a=f(a,o,c,l,y[t+12],6,1700485571),l=f(l,a,o,c,y[t+3],10,2399980690),c=f(c,l,a,o,y[t+10],15,4293915773),o=f(o,c,l,a,y[t+1],21,2240044497),a=f(a,o,c,l,y[t+8],6,1873313359),l=f(l,a,o,c,y[t+15],10,4264355552),c=f(c,l,a,o,y[t+6],15,2734768916),o=f(o,c,l,a,y[t+13],21,1309151649),a=f(a,o,c,l,y[t+4],6,4149444226),l=f(l,a,o,c,y[t+11],10,3174756917),c=f(c,l,a,o,y[t+2],15,718787259),o=f(o,c,l,a,y[t+9],21,3951481745),a=d(a,n),o=d(o,r),c=d(c,s),l=d(l,i);let C=h(a)+h(o)+h(c)+h(l);return C.toLowerCase()}r.defineInteropFlag(n),r.export(n,"md5",()=>s)},{"@parcel/transformer-js/src/esmodule-helpers.js":"f6DG4"}],"7nCx4":[function(e,t,n){var r=e("@parcel/transformer-js/src/esmodule-helpers.js");function s(e){return new Promise(t=>{e||t({success:!1,message:"\u6ca1\u6709\u8981\u590d\u5236\u7684\u5185\u5bb9"});let n=()=>{try{let n=document.createElement("textarea");n.style.display="none",n.value=e,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n),t({success:!0})}catch(e){console.warn("\u590d\u5236\u5931\u8d25",e),t({success:!1,message:"\u590d\u5236\u5931\u8d25"})}};navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(e).then(()=>{t({success:!0})}).catch(()=>n()):n()})}function i(e,t){try{let n=t.split("."),r=e;for(let e=0;e<n.length;e++)r=r?.[n[e]];return r}catch{return}}r.defineInteropFlag(n),r.export(n,"copyTextToClipboard",()=>s),r.export(n,"getValueByPath",()=>i)},{"@parcel/transformer-js/src/esmodule-helpers.js":"f6DG4"}],aL9Fz:[function(e,t,n){var r=e("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"handleOfferListToolbarMessage",()=>a);var s=e("~libs/dom"),i=e("~libs/post-message");function a(e){let t;let n=e.data;if(!(0,i.isPostMessageChannelValid)(n))return;switch(n.name){case"get-offer-id":t=function(e){try{let t=document.querySelector(e.selector),n=(0,s.getDataFromReactInstance)(t,{instanceKeys:e.instanceKeys,dataPaths:e.dataPaths});if(n)return`${n}`;return}catch(e){console.warn("getOfferId error:",e);return}}(n.payload);break;case"get-member-id":t=function(e){try{let t=e.global||[];for(let e of t){if(!e.dataKey)continue;let t=window[e.dataKey];if(t&&"string"==typeof t)for(let n of e.matchRegexps||[]){let e=t.match(new RegExp(n));if(e?.[1])return e[1]}}let n=e.instance?.selector;if(n){let t=document.querySelector(n);if(t)return(0,s.getDataFromReactInstance)(t,{instanceKeys:e.instance?.instanceKeys,dataPaths:e.instance?.dataPaths})}return}catch(e){console.warn("getOfferId error:",e);return}}(n.payload);break;default:return}let r=Date.now(),a=n.name+"_FINISH",o=(0,i.getPostMessageChannelSign)(n.id,a,r,t),c={id:n.id,name:a,sign:o,timestamp:r,payload:t};window.postMessage(c,e.origin)}},{"~libs/dom":"ivfBQ","~libs/post-message":"apn74","@parcel/transformer-js/src/esmodule-helpers.js":"f6DG4"}]},["7WzvT"],"7WzvT","parcelRequireaa81"),globalThis.define=t; |