1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4424],{6230:function(e){e.exports="object"==typeof self?self.FormData:window.FormData},10861:function(e,t,n){var a,s=(a=n(17673))&&"object"==typeof a&&"default"in a?a.default:a,r=/https?|ftp|gopher|file/;function o(e){"string"==typeof e&&(e=j(e));var t=function(e,t,n){var a=e.auth,s=e.hostname,r=e.protocol||"",o=e.pathname||"",i=e.hash||"",c=e.query||"",l=!1;a=a?encodeURIComponent(a).replace(/%3A/i,":")+"@":"",e.host?l=a+e.host:s&&(l=a+(~s.indexOf(":")?"["+s+"]":s),e.port&&(l+=":"+e.port)),c&&"object"==typeof c&&(c=t.encode(c));var u=e.search||c&&"?"+c||"";return r&&":"!==r.substr(-1)&&(r+=":"),e.slashes||(!r||n.test(r))&&!1!==l?(l="//"+(l||""),o&&"/"!==o[0]&&(o="/"+o)):l||(l=""),i&&"#"!==i[0]&&(i="#"+i),u&&"?"!==u[0]&&(u="?"+u),{protocol:r,host:l,pathname:o=o.replace(/[?#]/g,encodeURIComponent),search:u=u.replace("#","%23"),hash:i}}(e,s,r);return""+t.protocol+t.host+t.pathname+t.search+t.hash}var i="http://",c="w.w",l=i+c,u=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,d=/https?|ftp|gopher|file/;function p(e,t){var n="string"==typeof e?j(e):e;e="object"==typeof e?o(e):e;var a=j(t),s="";n.protocol&&!n.slashes&&(s=n.protocol,e=e.replace(n.protocol,""),s+="/"===t[0]||"/"===e[0]?"/":""),s&&a.protocol&&(s="",a.slashes||(s=a.protocol,t=t.replace(a.protocol,"")));var r=e.match(u);r&&!a.protocol&&(e=e.substr((s=r[1]+(r[2]||"")).length),/^\/\/[^/]/.test(t)&&(s=s.slice(0,-1)));var c=new URL(e,l+"/"),p=new URL(t,c).toString().replace(l,""),h=a.protocol||n.protocol;return h+=n.slashes||a.slashes?"//":"",!s&&h?p=p.replace(i,h):s&&(p=p.replace(i,"")),d.test(p)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==p.slice(-1)||(p=p.slice(0,-1)),s&&(p=s+("/"===p[0]?p.substr(1):p)),p}function h(){}h.prototype.parse=j,h.prototype.format=o,h.prototype.resolve=p,h.prototype.resolveObject=p;var f=/^https?|ftp|gopher|file/,m=/^(.*?)([#?].*)/,v=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,g=/^([a-z0-9.+-]*:)?\/\/\/*/i,x=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function j(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),e&&"object"==typeof e&&e instanceof h)return e;var a=(e=e.trim()).match(m);e=a?a[1].replace(/\\/g,"/")+a[2]:e.replace(/\\/g,"/"),x.test(e)&&"/"!==e.slice(-1)&&(e+="/");var r=!/(^javascript)/.test(e)&&e.match(v),i=g.test(e),u="";r&&(f.test(r[1])||(u=r[1].toLowerCase(),e=""+r[2]+r[3]),r[2]||(i=!1,f.test(r[1])?(u=r[1],e=""+r[3]):e="//"+r[3]),3!==r[2].length&&1!==r[2].length||(u=r[1],e="/"+r[3]));var d,p=(a?a[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),j=p&&p[1],y=new h,b="",w="";try{d=new URL(e)}catch(s){b=s,u||n||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(w="/",e=e.substr(1));try{d=new URL(e,l)}catch(e){return y.protocol=u,y.href=u,y}}y.slashes=i&&!w,y.host=d.host===c?"":d.host,y.hostname=d.hostname===c?"":d.hostname.replace(/(\[|\])/g,""),y.protocol=b?u||null:d.protocol,y.search=d.search.replace(/\\/g,"%5C"),y.hash=d.hash.replace(/\\/g,"%5C");var _=e.split("#");!y.search&&~_[0].indexOf("?")&&(y.search="?"),y.hash||""!==_[1]||(y.hash="#"),y.query=t?s.decode(d.search.substr(1)):y.search.substr(1),y.pathname=w+(r?function(e){return e.replace(/['^|`]/g,(function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()})).replace(/((?:%[0-9A-F]{2})+)/g,(function(e,t){try{return decodeURIComponent(t).split("").map((function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()})).join("")}catch(e){return t}}))}(d.pathname):d.pathname),"about:"===y.protocol&&"blank"===y.pathname&&(y.protocol="",y.pathname=""),b&&"/"!==e[0]&&(y.pathname=y.pathname.substr(1)),u&&!f.test(u)&&"/"!==e.slice(-1)&&"/"===y.pathname&&(y.pathname=""),y.path=y.pathname+y.search,y.auth=[d.username,d.password].map(decodeURIComponent).filter(Boolean).join(":"),y.port=d.port,j&&!y.host.endsWith(j)&&(y.host+=j,y.port=j.slice(1)),y.href=w?""+y.pathname+y.search+y.hash:o(y);var k=/^(file)/.test(y.href)?["host","hostname"]:[];return Object.keys(y).forEach((function(e){~k.indexOf(e)||(y[e]=y[e]||null)})),y}t.parse=j,t.format=o,t.resolve=p,t.resolveObject=function(e,t){return j(p(e,t))},t.Url=h},70041:function(e,t,n){"use strict";var a=n(85893);t.Z=function(e){var t=e.showIcon,n=void 0===t||t,s=e.message,r=void 0===s?"":s;
1return(0,a.jsx)("div",{className:"overlayBackgroundDark",children:(0,a.jsxs)("div",{className:"dialog-window",children:[1==n&&(0,a.jsx)("span",{className:"icon",children:(0,a.jsx)("i",{className:"fa fa-info-circle"})}),(0,a.jsx)("p",{dangerouslySetInnerHTML:{__html:r}})]})})}},78202:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return E},default:function(){return M}});var a=n(85893),s=n(809),r=n.n(s),o=n(92447),i=n(67294),c=n(11163),l=n(86337),u=n(7145),d=n.n(u),p=n(25675),h=n(33271),f=n(18847),m=n(97366),v=n(66437),g=n(23259),x=n(57768),j=n(70041),y=n(68641),b=n(95465),w={src:"/_next/static/image/public/images/svg/icon-clicked.d8649125f184e5d43d8d499972f415fd.svg",height:31,width:26},_={src:"/_next/static/image/public/images/svg/icon-report.1657667337cae9d3d4e3426cd321fd9f.svg",height:28,width:25},k={src:"/_next/static/image/public/images/svg/icon-convert.27a1be813aed9db4340be32159a5bd2a.svg",height:23,width:20},C={src:"/_next/static/image/public/images/svg/crown-grey.a47aea8cda44e7064779e0a5cb6fb0c0.svg",height:18,width:20},N=n(39704),T=n(42517),S=n(2714),I=n(12573),R=n(48633),A=n(44586),Z=n(30381),P=n.n(Z),U=n(84059),D=n(11752),O=n(58533),L=(0,D.default)().publicRuntimeConfig.cookiesConstant,E=!0,M=function(e){var t=(0,T.$G)(["common","account"]).t,s=(0,N.I0)(),u=((0,c.useRouter)(),e.privateAccessToken),Z=e.preferenceParams,D=e.isLoggedIn,E=e.siteLangs,M=e.isRequiredCompleteProfile,Y=e.cId,F=(0,i.useState)(!0),z=F[0],B=F[1],q=(0,i.useState)(null),J=q[0],G=q[1],$=(0,i.useState)(null),H=$[0],K=$[1],V=(0,i.useState)(null),W=V[0],X=V[1],Q=(0,i.useContext)(l.n),ee=(0,i.useState)(null),te=(ee[0],ee[1]),ne=(0,i.useState)(null),ae=ne[0],se=ne[1],re=(0,i.useState)(""),oe=re[0],ie=re[1],ce=(0,i.useState)(null),le=ce[0],ue=ce[1],de=(0,i.useState)([]),pe=de[0],he=de[1],fe=(0,i.useState)(null),me=fe[0],ve=fe[1],ge=(0,i.useState)(""),xe=ge[0],je=ge[1],ye=(0,i.useState)(!0),be=ye[0],we=ye[1],_e=(0,i.useState)({PageNum:1,TotalPerPage:25,AffiliateId:0}),ke=_e[0],Ce=_e[1];(0,i.useEffect)((function(){var e=!0;if(!0===e&&null!=Q.webAccessData){var n=Q.webAccessData;te(n),X(null),!0===M&&X(t("account:msg_account_incomplete"))}return function(){e=!1}}),[Q]),(0,i.useEffect)((function(){var e=!0;return!0===e&&(!0===D?se(u):window.location.href="/account/signin/"),function(){e=!1}}),[]),(0,i.useEffect)((function(){function e(){return(e=(0,o.Z)(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,B(!0),K(null),e.next=5,s((0,S.Ai)(ae));case 5:t=e.sent,G(t),B(!1),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),e.t0.message.includes("401")?Ie():e.t0.message.includes("500")?window.location.href="/500/":(B(!1),K(e.t0.message));case 13:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}function t(){return(t=(0,o.Z)(r().mark((function e(t){var n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,ue(null),B(!0),K(null),je(""),e.next=7,s((0,S.F)(ae,{affiliateId:t}));case 7:n=e.sent,ue(n),je(null===n||void 0===n?void 0:n.Link),B(!1),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(0),B(!1),K(e.t0.message);case 17:case"end":return e.stop()}}),e,null,[[0,13]])})))).apply(this,arguments)}if(null!=ae&&null!=Z&&parseInt(Y)>0){var n=d()(ke,{AffiliateId:{$set:parseInt(Y)}});Ce(n);var a="zh-HK"==(null===E||void 0===E?void 0:E.lang)?"/":"/".concat(null===E||void 0===E?void 0:E.lang,"/");ve(a),function(){e.apply(this,arguments)}(),function(e){t.apply(this,arguments)}(Y)}return function(){}}),[ae,Z,Y]),(0,i.useEffect)((function(){function e(){return(e=(0,o.Z)(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,he([]),B(!0),K(null),e.next=6,s((0,S.DR)(ae,ke));case 6:t=e.sent,he(t),t.DataTotalPage>=ke.PageNum+1?we(!0):we(!1),B(!1),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(0),B(!1),K(e.t0.message);case 16:case"end":return e.stop()}}),e,null,[[0,12]])})))).apply(this,arguments)}return null!==le&&function(){e.apply(this,arguments)}(),function(){}}),[le]);var Ne=(0,i.useCallback)((0,o.Z)(r().mark((function e(){var t,n,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=d()(ke,{PageNum:{$set:ke.PageNum+1}}),we(!1),e.prev=2,e.next=5,s((0,S.DR)(u,t));case 5:n=e.sent,Ce(t),a=pe.concat(n.Data),he(a),n.DataTotalPage>=ke.PageNum+1?we(!0):we(!1),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),K(e.t0.message);case 15:case"end":return e.stop()}}),e,null,[[2,12]])}))),[pe]);function Te(){return Se.apply(this,arguments)}function Se(){return(Se=(0,o.Z)(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,s(I.GK());case 3:(t=e.sent).length>0&&(t[0].isError||window.localStorage.setItem("userPublicToken",null!==t[0].data?JSON.stringify(t[0].data):"")),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log("renewPublicToken",e.t0.message);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))).apply(this,arguments)}function Ie(){return Re.apply(this,arguments)}function Re(){return(Re=(0,o.Z)(r().mark((function e(){var t,n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return B(!0),t=JSON.stringify({myCart:[]}),n=JSON.stringify({myBuyLaterCart:[]}),window.localStorage.setItem("_cartSession",t),window.localStorage.setItem("_cartBuyLaterSession",n),window.localStorage.removeItem("_deliveryLoc"),Ae(),e.t0=Promise,e.next=8,Te();case 8:e.t1=e.sent,e.t2=[e.t1],e.t0.all.call(e.t0,e.t2).then((function(e){console.log("Promise Done",e),setTimeout((function(){(0,R.w7)({callbackUrl:"/"})}),1500)}));case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Ae=function(){var e=(0,o.Z)(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:document.cookie="".concat(L.cookiesAuth_accessToken,"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/"),document.cookie="".concat(L.cookiesAuth_tokenType,"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/"),document.cookie="".concat(L.cookiesAuth_expires,"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/"),document.cookie="".concat(L.cookiesAuth_isLogin,"=0;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/"),document.cookie="".concat(L.cookiesAuth_refreshToken,"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/");case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,i.useEffect)((function(){return oe.length>0&&setTimeout((function(){ie("")}),1500),function(){}}),[oe]);var Ze;return(0,i.useEffect)((function(){return null!==J&&!1===(null===J||void 0===J?void 0:J.affiliate)&&(window.location.href="/account/"),function(){}}),[J]),(0,a.jsxs)(a.Fragment,{children:[null!==W&&(0,a.jsx)(v.Z,{showTitle:!1,customStyle:y.ty,customBodyStyle:{height:"100%"},isOpen:!0,shouldCloseOnOverlayClick:!1,onRequestClose:function(){X(null)},title:t("common:alert_heading_info"),children:(0,a.jsxs)("div",{className:"message-modal-container",children:[(0,a.jsx)("p",{style:{textAlign:"center"},dangerouslySetInnerHTML:{__html:W}}),(0,a.jsxs)("div",{style:{marginTop:40},children:[(0,a.jsx)(g.Z,{buttonStyle:{textTransform:"uppercase",marginBottom:20},title:t("btn_continue"),onClick:function(){window.location.href="".concat("zh-HK"==(null===E||void 0===E?void 0:E.lang)?"/":"/".concat(null===E||void 0===E?void 0:E.lang,"/"),"account/complete-profile/")}}),(0,a.jsx)(x.Z,{title:t("btn_logout"),onClick:Ie})]})]})}),null!==H&&!H.includes("401")&&(0,a.jsx)(v.Z,{customStyle:y.fW,isOpen:!0,onRequestClose:function(){H.includes("401")?Ie():K(null)},title:t("common:modal_header_error"),children:(0,a.jsxs)("div",{className:"message-modal-container",children:[(0,a.jsx)("p",{children:H}),(0,a.jsx)("div",{style:{marginTop:40},children:(0,a.jsx)(g.Z,{buttonStyle:{textTransform:"uppercase"},title:t("btn_ok"),onClick:function(){H.includes("401")?Ie():K(null)}})})]})}
1),!0===z&&(0,a.jsx)("div",{className:"overlayBackground",children:(0,a.jsx)(h.Z,{})}),oe.length>0&&(0,a.jsx)(j.Z,{showIcon:!0,message:oe}),null!=J&&""!==me&&null!=le&&(0,a.jsx)("div",{className:"account-container main",children:(0,a.jsx)("div",{className:"container",children:(0,a.jsxs)("div",{className:"main-container",children:[(0,a.jsxs)("div",{className:"main-profile-container",children:[(0,a.jsx)(m.Z,{locale:E,profileData:J,privateToken:u}),(0,a.jsx)(f.Z,{isAffiliate:J.affiliate,privateTokenData:u,activeMenu:7,onLogoutPress:Ie})]}),null===W&&(0,a.jsxs)("div",{className:"main-affiliate-container",children:[(0,a.jsxs)("a",{className:"back-to-link",onClick:function(){window.location.href="".concat(me,"account/affiliate-program/")},children:[(0,a.jsx)("i",{className:"fa fa-arrow-left"})," ",t("label_back")]}),(0,a.jsxs)("div",{className:"affiliate-info-container",children:[(0,a.jsxs)("div",{className:"affiliate-info-dt-status",children:[(0,a.jsx)("h2",{children:null===le||void 0===le?void 0:le.Name}),""!==le.AvailableFrom&&null!==le.AvailableFrom&&(0,a.jsx)("span",{children:P()(le.AvailableFrom).format("ddd, YYYY-MM-DD")}),""!==le.AvailableTo&&null!==le.AvailableTo&&(0,a.jsxs)(a.Fragment,{children:["\xa0\xa0-\xa0",(0,a.jsx)("span",{children:P()(le.AvailableTo).format("ddd, YYYY-MM-DD")})]}),(0,a.jsx)("div",{className:"campaign-status-info",children:(0,a.jsx)("span",{className:"status_".concat(le.Type),children:(Ze=le.Type,1===Ze?t("status_on_going"):2===Ze?t("status_upcoming"):3===Ze?t("status_expired"):void 0)})}),(0,a.jsxs)("div",{className:"affiliate-desc",children:[(0,a.jsx)("p",{children:t("account:msg_get_reward_from_affiliate_link")}),(0,a.jsxs)("div",{className:"affiliate-desc-link",children:[(0,a.jsx)("span",{children:xe}),(0,a.jsx)("a",{onClick:function(){navigator.clipboard.writeText(xe),ie(t("message_copied_successfully"))},style:{marginLeft:10,position:"absolute"},children:(0,a.jsx)(p.default,{src:b.Z,width:20,height:20})})]})]})]}),(0,a.jsxs)("div",{className:"affiliate-info-qr",children:[(0,a.jsx)(U.ZP,{id:"qr-gen",value:xe,size:150,level:"H",includeMargin:!0}),(0,a.jsx)(x.Z,{title:t("label_download"),onClick:function(){var e=n(10861).parse(xe,!0).pathname.replace("/afid/",""),t=document.getElementById("qr-gen").toDataURL("image/png").replace("image/png","image/octet-stream"),a=document.createElement("a");a.href=t,a.download="".concat(e,".png"),document.body.appendChild(a),a.click(),document.body.removeChild(a)}})]})]}),(0,a.jsx)("div",{className:"affiliate-info-container",children:(0,a.jsx)("div",{className:"affiliate-info-statistics",children:(0,a.jsxs)("table",{cellPadding:0,cellSpacing:0,children:[(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,a.jsx)(p.default,{src:w,width:30,height:35})}),(0,a.jsx)("td",{children:(0,a.jsx)(p.default,{src:_,width:30,height:35})}),(0,a.jsx)("td",{children:(0,a.jsx)(p.default,{src:k,width:30,height:35})})]}),(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:t("account:label_links_clicked")}),(0,a.jsx)("td",{children:t("account:label_completed_orders")}),(0,a.jsx)("td",{children:t("account:label_conversion_rate")})]}),(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:le.LinksClickedCount}),(0,a.jsx)("td",{children:le.CompletedOrderCount}),(0,a.jsxs)("td",{children:[le.ConversionRate,"%"]})]})]})})}),(0,a.jsx)("div",{className:"affiliate-info-container point-section",children:(0,a.jsxs)("div",{className:"point-section-container",children:[(0,a.jsx)("div",{className:"icon",children:(0,a.jsx)(p.default,{src:C,width:20,height:18})}),(0,a.jsx)("span",{className:"msg",children:t("account:msg_total_earned_in_campaign")}),(0,a.jsx)("span",{className:"point-section-ttl-points",children:le.TotalPoints})]})}),(0,a.jsx)("div",{className:"affiliate-info-container last",children:(0,a.jsxs)("div",{className:"point-history-section",children:[(0,a.jsx)("h3",{children:t("account:label_point_history")}),(0,a.jsx)(a.Fragment,{children:pe.length>0&&(0,a.jsx)(O.Z,{dataLength:null===pe||void 0===pe?void 0:pe.length,next:Ne,hasMore:be,loader:(0,a.jsx)(h.Z,{}),children:(0,a.jsx)("ul",{className:"point-history-list",children:pe.map((function(e,t){return function(e,t){var n=P()(e.Date).format("YYYY-MM-DD");return(0,a.jsxs)("li",{children:[(0,a.jsx)("div",{children:(0,a.jsx)("span",{children:n})}),(0,a.jsx)("div",{children:(0,a.jsxs)("span",{className:"point-value",children:["(",e.Points,")"]})})]},"".concat((0,A.Z)(),"_").concat(t))}(e,t)}))})})})]})})]})]})})})]})}}
1,77430:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/affiliate-program/[...campaign]",function(){return n(78202)}])},95465:function(e,t){"use strict";t.Z={src:"/_next/static/image/public/images/svg/icons-16-px-copy.eeae18bb4c83fda78ff6dc2c008addc6.svg",height:24,width:24}},62587:function(e){"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,a,s){n=n||"&",a=a||"=";var r={};if("string"!==typeof e||0===e.length)return r;var o=/\+/g;e=e.split(n);var i=1e3;s&&"number"===typeof s.maxKeys&&(i=s.maxKeys);var c=e.length;i>0&&c>i&&(c=i);for(var l=0;l<c;++l){var u,d,p,h,f=e[l].replace(o,"%20"),m=f.indexOf(a);m>=0?(u=f.substr(0,m),d=f.substr(m+1)):(u=f,d=""),p=decodeURIComponent(u),h=decodeURIComponent(d),t(r,p)?Array.isArray(r[p])?r[p].push(h):r[p]=[r[p],h]:r[p]=h}return r}},12361:function(e){"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,a,s){return n=n||"&",a=a||"=",null===e&&(e=void 0),"object"===typeof e?Object.keys(e).map((function(s){var r=encodeURIComponent(t(s))+a;return Array.isArray(e[s])?e[s].map((function(e){return r+encodeURIComponent(t(e))})).join(n):r+encodeURIComponent(t(e[s]))})).filter(Boolean).join(n):s?encodeURIComponent(t(s))+a+encodeURIComponent(t(e)):""}},17673:function(e,t,n){"use strict";t.decode=t.parse=n(62587),t.encode=t.stringify=n(12361)},44586:function(e,t,n){"use strict";var a;n.d(t,{Z:function(){return d}});var s=new Uint8Array(16);function r(){if(!a&&!(a="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(s)}var o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var i=function(e){return"string"===typeof e&&o.test(e)},c=[],l=0;l<256;++l)c.push((l+256).toString(16).substr(1));var u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase();if(!i(n))throw TypeError("Stringified UUID is invalid");return n};var d=function(e,t,n){var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){n=n||0;for(var s=0;s<16;++s)t[n+s]=a[s];return t}return u(a)}}},function(e){e.O(0,[9756,4059,2714,5216,14,9774,2888,179],(function(){return t=77430,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.