1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2671,3538,7002],{1934:(e,t,r)=>{"use strict";r.d(t,{v:()=>o});var n=r(12115);let i=e=>{let t,r=new Set,n=(e,n)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,a={setState:n,getState:i,getInitialState:()=>o,subscribe:e=>(r.add(e),()=>r.delete(e))},o=t=e(n,i,a);return a},a=e=>{let t=e?i(e):i,r=e=>(function(e,t=e=>e){let r=n.useSyncExternalStore(e.subscribe,n.useCallback(()=>t(e.getState()),[e,t]),n.useCallback(()=>t(e.getInitialState()),[e,t]));return n.useDebugValue(r),r})(t,e);return Object.assign(r,t),r},o=e=>e?a(e):a},9339:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={callServer:function(){return a.callServer},createServerReference:function(){return l.createServerReference},findSourceMapURL:function(){return o.findSourceMapURL}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(77304),o=r(4060),l=r(77197)},12671:(e,t,r)=>{"use strict";r.r(t),r.d(t,{clearAuthCookies:()=>u,storeAuthResponse:()=>c});var n=r(37002),i=r(29407),a=r(15217),o=r(9339);let l=(0,o.createServerReference)("605184426151aede205c446d456b2a1e9fb7125f07",o.callServer,void 0,o.findSourceMapURL,"setRefreshToken"),s=(0,o.createServerReference)("00a193cb2facb4a0f2b4d4e9ff6c9f13669c5b58b4",o.callServer,void 0,o.findSourceMapURL,"deleteRefreshToken");async function c(e,t=!1){try{let r=n.useGlobalStore.getState(),o=[];e.Token&&(t||r.setField(n.X.Token,e.Token),(0,a.setClientCookie)(i.F.TOKEN,e.Token,7)),e.AccessTokenExpiresAt&&(t||r.setField(n.X.TokenExpiresAt,e.AccessTokenExpiresAt),(0,a.setClientCookie)(i.F.TOKEN_EXPIRES_AT,e.AccessTokenExpiresAt,30)),e.RefreshToken&&o.push(l(e.RefreshToken));let s=r.giftingPlace,c=r.giftingDate;e.User&&(s&&c||(s&&(e.User.GiftingPlace=s),c&&(e.User.GiftingDate=c)),t||r.setField(n.X.CurrentUser,e.User),(0,a.setClientCookie)(i.F.USER_DATA,e.User,30)),e.User?.GiftingPlace&&!s&&(t||r.setField(n.X.GiftingPlace,e.User.GiftingPlace),(0,a.setClientCookie)(i.F.GIFTING_PLACE,e.User.GiftingPlace,30)),e.User?.GiftingDate&&!c&&(t||r.setField(n.X.GiftingDate,e.User.GiftingDate),(0,a.setClientCookie)(i.F.GIFTING_DATE,e.User.GiftingDate,30)),e.User?.Currency&&(t||r.setField(n.X.Currency,e.User.Currency),(0,a.setClientCookie)(i.F.CURRENCY,e.User.Currency,30)),await Promise.all(o)}catch(e){throw console.error("Failed to store auth response:",e),e}}async function u(){try{n.useGlobalStore.getState().clearAll(),(0,a.LH)(),await s()}catch(e){console.error("Failed to clear auth cookies:",e)}}},15217:(e,t,r)=>{"use strict";r.d(t,{LH:()=>l,ok:()=>o,setClientCookie:()=>a});var n=r(82849),i=r(29407);function a(e,t,r){n.A.set(e,"string"==typeof t?t:JSON.stringify(t),{expires:r,sameSite:"Lax",secure:!0})}function o(e){let t=n.A.get(e);if(void 0===t)return null;try{return JSON.parse(t)}catch{return t}}function l(){for(let e of[i.F.TOKEN,i.F.TOKEN_EXPIRES_AT,i.F.USER_DATA,i.F.GIFTING_PLACE,i.F.CURRENCY])n.A.remove(e,{sameSite:"Lax"})}},29407:(e,t,r)=>{"use strict";r.d(t,{F:()=>n});class n{static{this.TOKEN="access_token"}static{this.USER_DATA="user_data"}static{this.GIFTING_PLACE="giftingPlace"}static{this.IS_GIFTING_PLACE_BY_SYSTEM="giftingPlaceBySystem"}static{this.GIFTING_DATE="giftingDate"}static{this.CURRENCY="currency"}static{this.TOKEN_EXPIRES_AT="token_expires_at"}static{this.REFERRAL_TRAIL="referral_trial"}static{this.LANGUAGE="locale_language"}static{this.CHAT_AUTO_TRANSLATE="chat_auto_translate"}}},31910:(e,t,r)=>{"use strict";function n(e,t){if(t){if(!e)return e;if("string"==typeof e)return`${e}${e.includes("?")?"&":"?"}inref=${t}`}return e}r.d(t,{B:()=>n})},37002:(e,t,r)=>{"use strict";r.d(t,{X:()=>o,useGlobalStore:()=>l});var n=r(1934),i=r(15217),a=r(29407);let o={Token:"token",TokenExpiresAt:"token_expires_at",CurrentUser:"current_user",GiftingPlace:"giftingPlace",GiftingDate:"giftingDate",Currency:"currency",IsHydrated:"isHydrated"},l=(0,n.v)(e=>({[o.IsHydrated]:!1,[o.Token]:null,[o.TokenExpiresAt]:null,[o.CurrentUser]:null,[o.GiftingPlace]:null,[o.GiftingDate]:null,[o.Currency]:null,
1setField:(t,r,n=!0)=>{if(e({[t]:r}),n)switch(t){case o.GiftingPlace:(0,i.setClientCookie)(a.F.GIFTING_PLACE,r,30);break;case o.GiftingDate:(0,i.setClientCookie)(a.F.GIFTING_DATE,r,30);break;case o.Currency:(0,i.setClientCookie)(a.F.CURRENCY,r,30);break;case o.CurrentUser:(0,i.setClientCookie)(a.F.USER_DATA,r,7);break;case o.Token:(0,i.setClientCookie)(a.F.TOKEN,r,7);break;case o.TokenExpiresAt:(0,i.setClientCookie)(a.F.TOKEN_EXPIRES_AT,r,30)}},hydrate:t=>e({...t,[o.IsHydrated]:!0}),clearAll:()=>e({[o.Token]:null,[o.TokenExpiresAt]:null,[o.CurrentUser]:null,[o.GiftingPlace]:null,[o.GiftingDate]:null,[o.Currency]:null})}))},41455:(e,t,r)=>{"use strict";r.d(t,{Hm:()=>u,N_:()=>a,V2:()=>o,a8:()=>s,rd:()=>c});var n=r(82430),i=r(46597);let{Link:a,redirect:o,permanentRedirect:l,usePathname:s,useRouter:c,getPathname:u}=(0,n.A)(i.DT)},46597:(e,t,r)=>{"use strict";r.d(t,{DT:()=>a,_g:()=>l});var n=r(93474),i=r(29407);let a=(0,n.A)({locales:["en","ar","ur","hi","zh","fr","es","de","pt","ru","tr","id","tl","ja","ko","it","nl","pl","th","vi","bn","ms"],defaultLocale:"en",localePrefix:"as-needed",localeDetection:!1,localeCookie:{name:i.F.LANGUAGE,maxAge:31536e3,sameSite:"lax",path:"/"},alternateLinks:!1}),o=["ar","ur"];function l(e){return o.includes(e)?"rtl":"ltr"}},63538:(e,t,r)=>{Promise.resolve().then(r.bind(r,81566)),Promise.resolve().then(r.bind(r,12671)),Promise.resolve().then(r.bind(r,15217)),Promise.resolve().then(r.bind(r,76558)),Promise.resolve().then(r.bind(r,91930))},81566:(e,t,r)=>{"use strict";r.d(t,{TrackingLink:()=>o});var n=r(95155),i=r(41455);r(12115);var a=r(31910);function o({inRefId:e,href:t,onClick:r,replace:l,scroll:s,locale:c,target:u,...f}){let d=(0,i.rd)();return(0,n.jsx)(i.N_,{href:t,onClick:n=>{r?.(n),!e||!t||n.defaultPrevented||0!==n.button||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||u&&"_self"!==u||(n.preventDefault(),(l?d.replace:d.push)("string"==typeof t?(0,a.B)(t,e):{...t,query:{..."object"==typeof t.query?t.query:{},inref:e}},{...c?{locale:c}:{},...!1===s?{scroll:!1}:{}}))},replace:l,scroll:s,locale:c,target:u,...f})}},82430:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(73321),i=r(12115),a=r.t(i,2),o=r(11697),l=a["use".trim()],s=r(92651),c=r(76558),u=r(6144),f=r(95155),d=r(9780);function p(e){let{Link:t,config:r,getPathname:a,...p}=function(e,t){var r,a,o;let d={...r=t||{},localePrefix:"object"==typeof(o=r.localePrefix)?o:{mode:o||"always"},localeCookie:!!((a=r.localeCookie)??1)&&{name:"NEXT_LOCALE",sameSite:"lax",..."object"==typeof a&&a},localeDetection:r.localeDetection??!0,alternateLinks:r.alternateLinks??!0},p=d.pathnames,h=(0,i.forwardRef)(function({href:t,locale:r,...n},i){let a,o;"object"==typeof t?(a=t.pathname,o=t.params):a=t;let u=(0,s._x)(t),h=e(),k=(0,s.yL)(h)?l(h):h,g=u?C({locale:r||k,href:null==p?a:{pathname:a,params:o},forcePrefix:null!=r||void 0}):a;return(0,f.jsx)(c.default,{ref:i,href:"object"==typeof t?{...t,pathname:g}:g,locale:r,localeCookie:d.localeCookie,...n})});function C(e){let t,{forcePrefix:r,href:n,locale:i}=e;return null==p?"object"==typeof n?(t=n.pathname,n.query&&(t+=(0,u.Zn)(n.query))):t=n:t=(0,u.FP)({locale:i,...(0,u.TK)(n),pathnames:d.pathnames}),(0,u.x3)(t,i,d,r)}function k(e){return function(t,...r){return e(C(t),...r)}}return{config:d,Link:h,redirect:k(n.redirect),permanentRedirect:k(n.permanentRedirect),getPathname:C}}(o.Ym,e);return{...p,Link:t,usePathname:function(){let e,t,a=(e=(0,n.usePathname)(),t=(0,o.Ym)(),(0,i.useMemo)(()=>{if(!e)return e;let n=e,i=(0,s.XP)(t,r.localePrefix);if((0,s.wO)(i,e))n=(0,s.MY)(e,i);else if("never"!==r.localePrefix.mode&&r.localePrefix.prefixes){let r=(0,s.bL)(t);(0,s.wO)(r,e)&&(n=(0,s.MY)(e,r))}return n},[r.localePrefix,t,e])),l=(0,o.Ym)();return(0,i.useMemo)(()=>a&&r.pathnames?(0,u.aM)(l,a,r.pathnames):a,[l,a])},useRouter:function(){let e=(0,n.useRouter)(),t=(0,o.Ym)(),l=(0,n.usePathname)();return(0,i.useMemo)(()=>{function n(e){return function(n,i){let{locale:o,...s}=i||{},c=[a({href:n,locale:o||t,forcePrefix:null!=o||void 0})];Object.keys(s).length>0&&c.push(s),(0,d.A)(r.localeCookie,l,t,o),e(...c)}}return{...e,push:n(e.push),replace:n(e.replace),prefetch:n(e.prefetch)}},[t,l,e])},getPathname:a}}},82849:(e,t,r)=>{"use strict";function n(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)"__proto__"!==n&&(e[n]=r[n])}return e}r.d(t,{A:()=>i});var i=function e(t,r){function i(e,i,a){if("u">typeof document){"number"==typeof(a=n({},r,a)).expires&&(a.expires=new Date(Date.now()+864e5*a.expires)),a.expires&&(a.expires=a.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decode
1URIComponent).replace(/[()]/g,escape);var o="";for(var l in a)a[l]&&(o+="; "+l,!0!==a[l]&&(o+="="+a[l].split(";")[0]));return document.cookie=e+"="+t.write(i,e)+o}}return Object.create({set:i,get:function(e){if("u">typeof document&&(!arguments.length||e)){for(var r=document.cookie?document.cookie.split("; "):[],n={},i=0;i<r.length;i++){var a=r[i].split("="),o=a.slice(1).join("=");try{var l=decodeURIComponent(a[0]);if(l in n||(n[l]=t.read(o,l)),e===l)break}catch(e){}}return e?n[e]:n}},remove:function(e,t){i(e,"",n({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,n({},this.attributes,t))},withConverter:function(t){return e(n({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},91930:(e,t,r)=>{"use strict";r.d(t,{default:()=>a});var n=r(11697),i=r(95155);function a({locale:e,...t}){if(!e)throw Error(void 0);return(0,i.jsx)(n.Dk,{locale:e,...t})}},93474:(e,t,r)=>{"use strict";function n(e){return e}r.d(t,{A:()=>n})}}]);
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.