1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,52907,e=>{e.q("/_next/static/media/whatsapp.12955a0cz519p.png")},87486,e=>{"use strict";var t=e.i(43476),r=e.i(932),i=e.i(25913),n=e.i(75157);let s=(0,i.cva)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});e.s(["Badge",0,function(e){let i,a,o,c,u,l=(0,r.c)(10);return l[0]!==e?({className:i,variant:o,...a}=e,l[0]=e,l[1]=i,l[2]=a,l[3]=o):(i=l[1],a=l[2],o=l[3]),l[4]!==i||l[5]!==o?(c=(0,n.cn)(s({variant:o}),i),l[4]=i,l[5]=o,l[6]=c):c=l[6],l[7]!==a||l[8]!==c?(u=(0,t.jsx)("div",{className:c,...a}),l[7]=a,l[8]=c,l[9]=u):u=l[9],u}])},43432,e=>{"use strict";let t=(0,e.i(75254).default)("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);e.s(["Phone",0,t],43432)},78583,e=>{"use strict";let t=(0,e.i(75254).default)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);e.s(["FileText",0,t],78583)},1928,e=>{"use strict";let t=(0,e.i(75254).default)("shopping-cart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);e.s(["ShoppingCart",0,t],1928)},99023,e=>{"use strict";let t=(0,e.i(75254).default)("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);e.s(["Minus",0,t],99023)},56634,70457,e=>{"use strict";var t=e.i(43476),r=e.i(932),i=e.i(57688);let n={src:e.i(52907).default,width:800,height:800,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAhElEQVR42n3OMQ5EQBTG8ckeYLddotpi1aISiYKMXqcgUYnSUTQKhSuJiFs4xPiPiIxG8ZtM3vtm3hNKKfHkOOZtEv3S2ZBI4ejaFRjW3rbGT/0d3wH+3AtqjhlIaORo8IJLTZqBmKKPEi2kfmQGQr6taHjI9Dg91lzyx2IR4pN1W/LJDkLUkb6vZYVLAAAAAElFTkSuQmCC"};e.s(["WhatsAppIcon",0,function(e){let s,a=(0,r.c)(2),{className:o}=e;return a[0]!==o?(s=(0,t.jsx)(i.default,{src:n,alt:"WhatsApp",width:24,height:24,className:o}),a[0]=o,a[1]=s):s=a[1],s}],56634),e.i(46880);var s=e.i(29573),a=e.i(87766);let o="6a4664c0c633f70f42310ed0";e.s(["getProductCanonicalPath",0,function(e){let t=(0,a.resolveProductLinkSlug)(e);return!function(e){if(!e)return!1;if("hasCancerConfig"in e&&!0===e.hasCancerConfig)return!0;if("categoryId"in e&&e.categoryId){let t=e.categoryId;if("string"==typeof t&&t.trim().toLowerCase()===o||Array.isArray(t)&&t.some(e=>String(e).trim().toLowerCase()===o))return!0}let t=(("categorySlug"in e?e.categorySlug:void 0)||"").toLowerCase().trim();if("anti-cancer"===t||"anti_cancer"===t||"cancer-medicines"===t||"oncology"===t)return!0;let r=(("category"in e?e.category:void 0)||"").toLowerCase().trim();return"anti cancer"===r||"anti-cancer"===r||"oncology"===r||"cancer medicines"===r}(e)?s.ROUTES.PRODUCT(t):s.ROUTES.CANCER_PRODUCT(t)}],70457)},1178,(e,t,r)=>{let i;{let e=e=>function(){throw Error(`\`${e}\` is only available in a Server Component.`)};i={unstable_cache:function(e){return"function"!=typeof e?e:function(){return e.apply(this,arguments)}},unstable_noStore:function(){},updateTag:e("updateTag"),revalidateTag:e("revalidateTag"),revalidatePath:e("revalidatePath"),refresh:e("refresh"),cacheLife:e("cacheLife"),cacheTag:e("cacheTag")}}let n=!1,s=!1;i.unstable_cacheLife=function(){return n||(n=!0,console.error(Error("`unstable_cacheLife` was recently stabilized and should be imported as `cacheLife`. The `unstable` prefixed form will be removed in a future version of Next.js."))),i.cacheLife.apply(this,arguments)},i.unstable_cacheTag=function(){return s||(s=!0,console.error(Error("`unstable_cacheTag` was recently stabilized and should be imported as `cacheTag`. The `unstable` prefixed form will be removed in a future version of Next.js."))),i.cacheTag.apply(this,arguments)},t.exports=i,r.unstable_cache=i.unstable_cache,r.revalidatePath=i.revalidatePath,r.revalidateTag=i.revalidateTag,r.updateTag=i.updateTag,r.unstable_noStore=i.unstable_noStore,r.cacheLife=i.cacheLife,r.unstable_cacheLife=i.unstable_cacheLife,r.cacheTag=i.cacheTag,r.unstable_cacheTag=i.unstable_cacheTag,r.refresh=i.refresh},38585,e=>{"use strict";var t=e.i(71645),r=e.i(1178),i=e.i(20658),n=e.i(69534),s=e.i(62035),a=e.i(43898),o=e.i(70214),c=e.i(46683),u=e.i(87766),l=e.i(44627),h=e.i(56460);function d(e,t=""){return"string"==typeof e?e.trim()||t:null==e?t:String(e).trim()||t}function f(e,t=0){let r=Number(e);return Number.isFinite(r)?r:t}function p(e){let t=!0===e.showPrice,r={inStock:!0===e.inStock,showPrice:t,hasCancerConfig:!0===e.hasCancerConfig,ranking:null!=e.ranking?f(e.ranking,0):null};if(t){let t=f(e.mrp,0),i=f(e.price??e.sellingPrice,0),n=f(e.discount??e.discountPercentage,0);r.mrp=t,r.price=i,r.sellingPrice=f(e.sellingPrice??e.price,i),r.discount=n,r.discountPercentage=n}return r}function g(e){let t=d(e.displayName||e.name,"Unknown Product"),r=d(e.id||e._id,crypto.randomUUID()),i=(0,u.resolveProductLinkSlug)({slug:d(e.slug||e.url),name:t,displayName:d(e.displayName)}),n=function(e){let t=Array.isArray(e.displayImagesUrl)?e.displayImagesUrl.map(e=>
1(0,o.resolveMediaUrl)(d(e))).filter(Boolean):[];if(t.length>0)return t;let r=(0,o.resolveMediaUrl)(d(e.imageUrl));return r?[r]:[]}(e),s=(0,c.resolvePrescriptionFields)(e),a=!0===e.showPrice,l=a?f(e.mrp,0):0,h=a?f(e.price??e.sellingPrice,0):0,p=a?f(e.discount??e.discountPercentage,0):0;return{id:r,_id:d(e._id||e.id,r),productType:0,slug:i,name:t,displayName:d(e.displayName,t),manufacturer:d(e.manufacturer,"Vyloo"),packaging:d(e.packaging,"Pack"),productForm:d(e.productForm,"Tablet"),imageUrl:n[0]??(0,o.getProductImagePlaceholderUrl)(),displayImagesUrl:n,mrp:l,price:h,sellingPrice:a?f(e.sellingPrice??e.price,h):0,discount:p,discountPercentage:p,rating:f(e.star??e.rating,0),orderCount:f(e.orderCount,0),inStock:!0!==e.isNotForSale&&!0!==e.isBanned&&!0!==e.isDiscontinued&&!0===e.inStock,prescriptionRequired:s.prescriptionRequired,prescriptionRequiredLabel:s.prescriptionRequiredLabel,requiresPrescription:s.requiresPrescription,showPrice:a,hasCancerConfig:!0===e.hasCancerConfig,ranking:null!=e.ranking?f(e.ranking,0):null,isNotForSale:!0===e.isNotForSale,isBanned:!0===e.isBanned,isDiscontinued:!0===e.isDiscontinued}}function y(e){return{id:d(e._id||e.id),displayName:d(e.displayName,"Subcategory"),imageUrl:(0,o.resolveMediaUrl)(d(e.imageUrl))}}let m={async fetchPageDetails(){let e=await (0,n.appPost)("getCancerPageDetails",{}),t=e.category;if(!t||"object"!=typeof t)throw Error("Anti-Cancer category doesn't exist!");let r=Array.isArray(e.subCategories)?e.subCategories.filter(e=>!!e&&"object"==typeof e).map(y).filter(e=>e.id):[];return{category:{id:d(t._id||t.id),displayName:d(t.displayName,"Anti Cancer"),name:d(t.name,"anti-cancer"),description:d(t.description),imageUrl:(0,o.resolveMediaUrl)(d(t.imageUrl)),priority:f(t.priority,0)},subCategories:r,productType:0}},async fetchProductList(e){let t=Math.max(1,e?.page??1),r=Math.min(50,Math.max(1,e?.size??20)),i=e?.subCategoryId?.trim(),s=await (0,n.appPost)("getCancerProductList",{page:t,size:r,...i?{subCategoryId:i}:{}}),o=(Array.isArray(s.products)?s.products:[]).filter(e=>!!e&&"object"==typeof e).map(g),c=(0,a.parsePaginatedMeta)(s,t,r,o.length);return{items:o,page:c.page,size:c.size,total:c.total,totalPages:c.totalPages,hasNext:c.hasNext,hasPrev:c.hasPrev}},async fetchProductDetails(e){let t=e.trim();return t?m.fetchProductBySlugOrId({productId:t}):{medicine:null,cancerCatalog:p({})}},async fetchProductBySlugOrId(e){let t=(e.slug||"").trim().toLowerCase(),r=(e.productId||"").trim();if(!t&&!r)return b();if(v.test(r.trim()))return S(r);if(!t)return b();let i=await C(t);if(i?.medicine)return i;let n=await O(t);return n?S(n):b()}},v=/^[0-9a-f]{24}$/i;function b(){return{medicine:null,cancerCatalog:p({})}}async function S(e){try{let t=await (0,n.appPost)("getCancerProductDetails",{productId:e});return w(t)}catch{return b()}}let P="unknown";async function C(e){if("unsupported"===P)return null;try{let t=await (0,n.appPost)("getCancerProductDetails",{slug:e});P="supported";let r=w(t);return r.medicine?.id&&A.set(e,r.medicine.id),r}catch(e){return function(e){if(!(e instanceof s.ApiError))return!1;let t=("object"==typeof e.body&&e.body&&"message"in e.body?String(e.body.message??""):e.message).toLowerCase();return t.includes("should not exist")||t.includes("property slug")||t.includes("whitelist")||t.includes("forbid")}(e)&&(P="unsupported"),null}}function w(e){let t,r,n,s,a,o,c=e.product;if(!c||"object"!=typeof c)return b();let u=p(e.cancerCatalog&&"object"==typeof e.cancerCatalog?e.cancerCatalog:{});return{medicine:(t=g({...c,inStock:u.inStock,showPrice:u.showPrice,...u.showPrice?{mrp:u.mrp,price:u.price,sellingPrice:u.sellingPrice,discount:u.discount,discountPercentage:u.discountPercentage}:{}}),r=Array.isArray(c.uses)?c.uses:[],n=Array.isArray(c.sideEffects)?c.sideEffects:[],s=Array.isArray(c.faqs)?c.faqs.map(e=>({question:d(e.question),answer:d(e.answer)})).filter(e=>e.question&&e.answer):[],a=Array.isArray(c.keyIngredients)?c.keyIngredients.map(e=>d(e)).filter(Boolean):[],o=(0,l.enrichMedicineIdentityFields)({name:t.name,strength:d(c.strength),form:t.productForm,genericName:(0,l.isHumanProductLabel)(d(c.genericName))?d(c.genericName):"",keyIngredients:a}),{id:t.id,productType:0,slug:t.slug,name:t.name,genericName:o.genericName,manufacturer:t.manufacturer,strength:o.strength,packaging:t.packaging,form:o.form||t.productForm,mrp:t.mrp,price:t.price,discount:t.discountPercentage,rating:t.rating,reviewCount:f(c.reviewCount??c.orderCount,0),inStock:!t.isNotForSale&&!t.isBanned&&!t.isDiscontinued&&u.inStock,prescriptionRequired:t.requiresPrescription,isNotForSale:t.isNotForSale,isBanned:t.isBanned,isDiscontinued:t.isDiscontinued,deliveryDays:1,category:"Anti Cancer",categorySlug:"anti-cancer",imageUrl:t.imageUrl,...t.displayImagesUrl.length>0?{galleryImageUrls:t.displayImagesUrl}:{},description:d(c.productDescription||c.productIntroduction),uses:r,benefits:[],howItWorks:d(c.productIntroduction),howToUse:d(c.howToUse),sideEffects:n,keyIngredients:a,storage:d(c.storage),safetyAdvice:(0,i.mapDomainSafetyAdvice)(c.safetyAdvice),factBox:(0,i.mapDomainFactBox)(c.factBox),missedDose:d(c.ifMissedDose),overdose:"",drugInteractions:[],substitutes:[],faqs:s,seoContent:c.seoContent??null}),cancerCatalog:u}}let A=new Map;async function T(e){let t=e.trim().toLowerCase();if(!t)return null;let r=A.get(t);if(r)return r;let n=t.replace(/-/g," ").trim(),s=e=>{for(let r of e){if(r.id)for(let e of[void 0,r.slug,(0,h.slugify)(r.displayName),(0,h.slugify)(r.name)].filter(
1Boolean))A.has(e)||A.set(e,r.id);if(t&&(r.slug===t||(0,h.slugify)(r.displayName)===t||(0,h.slugify)(r.name)===t))return A.set(t,r.id),r.id}return null};try{let[e,t]=await Promise.all([m.fetchProductList({page:1,size:50}).catch(()=>null),i.catalogApi.fetchSearchResults({query:n,page:1,size:24,brands:[],forms:[],categories:[],concerns:[],rxOnly:!1,inStockOnly:!1,discountMin:0,ratingMin:0,priceRange:[0,1e4],sortBy:"relevance",productType:2}).catch(()=>null)]),r=e?s(e.items):null;if(r)return r;let a=t?s(t.items):null;if(a)return a}catch{}try{for(let e=2;e<=3;e+=1){let t=await m.fetchProductList({page:e,size:50}),r=s(t.items);if(r)return r;if(!t.hasNext)break}}catch{return null}return A.get(t)??null}let O=(0,r.unstable_cache)(async e=>T(e),["cancer-product-slug-to-id"],{revalidate:3600});async function k(){return i.catalogApi.fetchHomePopularRails()}async function U(){return i.catalogApi.fetchCategories()}async function F(){return i.catalogApi.fetchHealthConcerns()}async function L(){return i.catalogApi.fetchOffers()}async function M(){return i.catalogApi.fetchBrands()}async function I(e,t){return i.catalogApi.fetchBrandsPage(e,t)}async function E(e){return i.catalogApi.fetchSearchResults(e)}async function R(e){return i.catalogApi.fetchSearchSuggestions(e)}async function D(e){return i.catalogApi.fetchProduct(e)}async function j(e,t){return i.catalogApi.fetchCategoryPage(e,t)}async function x(e=1,t=4,r=8){return i.catalogApi.fetchSubcategoryProductBlocks(e,t,r)}async function q(e,t){let r=Math.max(1,t?.page??1),n=Math.max(1,t?.size??20),s=(0,i.normalizeCatalogProductType)(t?.productType,0),o=await i.catalogApi.fetchProductListOfSubCategory({subCategoryId:e,page:r,size:n,productType:s}),c=o.productList;if(1===r&&0===c.length&&0===s){let t=await i.catalogApi.fetchProductListOfSubCategory({subCategoryId:e,page:r,size:n,productType:1});t.productList.length>0&&(o=t,c=t.productList,s=1)}let u=(0,a.parsePaginatedMeta)(o,r,n,c.length);return{subCategoryId:e,productType:(0,i.normalizeCatalogProductType)(o.productType,s),items:c,page:u.page,size:u.size,total:u.total,totalPages:u.totalPages,hasNext:u.hasNext,hasPrev:u.hasPrev}}async function N(e,t=1,r=20){return i.catalogApi.fetchProductsByManufacturer({manufacturer:e,page:t,size:r})}async function B(){return m.fetchPageDetails()}async function _(e){return m.fetchProductList(e)}async function K(e){return m.fetchProductDetails(e)}async function z(e){return m.fetchProductBySlugOrId({slug:e})}let H=(0,r.unstable_cache)(async e=>i.catalogApi.fetchProduct(e),["product-by-slug-v3"],{revalidate:604800}),Q=(0,r.unstable_cache)(async e=>m.fetchProductBySlugOrId({slug:e}),["cancer-product-by-slug-v3"],{revalidate:604800});(0,t.cache)(async e=>H(e.trim().toLowerCase())),(0,t.cache)(j),(0,t.cache)(B),(0,t.cache)(K),(0,t.cache)(async e=>Q(e.trim().toLowerCase())),e.s(["QUERY_KEYS",0,{medicines:["medicines"],medicine:e=>["medicines",e],search:e=>["search",e],category:(e,t)=>["category",e,t??1],categories:["categories"],healthConcerns:["healthConcerns"],offers:["offers"],reviews:e=>["reviews",e],substitutes:e=>["substitutes",...e],home:["home"],homePopularRails:e=>["home","popularRails",e],homeDeals:e=>["home","deals",e],popularMedicines:["medicines","popular"],popularOtc:["medicines","popularOtc"],dealsOfDay:["medicines","deals"],brands:["brands"],brandsPage:(e,t)=>["brands","page",e,"size",t],flashSaleMedicines:["medicines","flashSale"],subcategoryProductBlocks:["catalog","subcategoryBlocks"],subcategory:(e,t,r)=>["subcategory",e,t,r??1],brandProducts:(e,t)=>["brand",e,t??1],cancerPage:["cancer","pageDetails"],cancerList:(e,t)=>["cancer","list",e??"all",t??1],cancerProduct:e=>["cancer","product",e]},"fetchBrandProductsPage",0,N,"fetchBrands",0,M,"fetchBrandsPage",0,I,"fetchCancerProductBySlug",0,z,"fetchCancerProductList",0,_,"fetchCategories",0,U,"fetchCategoryPage",0,j,"fetchHealthConcerns",0,F,"fetchHomePopularRails",0,k,"fetchOffers",0,L,"fetchProduct",0,D,"fetchSearchResults",0,E,"fetchSearchSuggestions",0,R,"fetchSubcategoryPage",0,q,"fetchSubcategoryProductBlocks",0,x],38585)},12598,e=>{"use strict";var t=e.i(71645),r=e.i(43476),i=t.createContext(void 0);e.s(["QueryClientProvider",0,({client:e,children:n})=>(t.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,r.jsx)(i.Provider,{value:e,children:n})),"useQueryClient",0,e=>{let r=t.useContext(i);if(e)return e;if(!r)throw Error("No QueryClient set, use QueryClientProvider to set one");return r}])},40143,e=>{"use strict";let t,r,i,n,s,a;var o=e.i(80166).systemSetTimeoutZero,c=(t=[],r=0,i=e=>{e()},n=e=>{e()},s=o,{batch:e=>{let a;r++;try{a=e()}finally{let e;--r||(e=t,t=[],e.length&&s(()=>{n(()=>
1{e.forEach(e=>{i(e)})})}))}return a},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a=e=>{r?t.push(e):s(()=>{i(e)})},setNotifyFunction:e=>{i=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{s=e}});e.s(["notifyManager",0,c])},75555,15823,e=>{"use strict";var t=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};e.s(["Subscribable",0,t],15823);var r=new class extends t{#e;#t;#r;constructor(){super(),this.#r=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}};e.s(["focusManager",0,r],75555)},14448,e=>{"use strict";var t=e.i(15823),r=new class extends t.Subscribable{#i=!0;#t;#r;constructor(){super(),this.#r=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#i!==e&&(this.#i=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#i}};e.s(["onlineManager",0,r])},19273,80166,93803,e=>{"use strict";e.i(47167);var t={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},r=new class{#n=t;#s=!1;setTimeoutProvider(e){this.#n=e}setTimeout(e,t){return this.#n.setTimeout(e,t)}clearTimeout(e){this.#n.clearTimeout(e)}setInterval(e,t){return this.#n.setInterval(e,t)}clearInterval(e){this.#n.clearInterval(e)}};e.s(["systemSetTimeoutZero",0,function(e){setTimeout(e,0)},"timeoutManager",0,r],80166);var i="u"<typeof window||"Deno"in globalThis;function n(){}function s(e,t){return(t?.queryKeyHashFn||a)(e)}function a(e){return JSON.stringify(e,(e,t)=>l(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function o(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(r=>o(e[r],t[r]))}var c=Object.prototype.hasOwnProperty;function u(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function l(e){if(!h(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!h(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function h(e){return"[object Object]"===Object.prototype.toString.call(e)}var d=Symbol();e.s(["addConsumeAwareSignal",0,function(e,t,r){let i,n=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),n||(n=!0,i.aborted?r():i.addEventListener("abort",r,{once:!0})),i)}),e},"addToEnd",0,function(e,t,r=0){let i=[...e,t];return r&&i.length>r?i.slice(1):i},"addToStart",0,function(e,t,r=0){let i=[t,...e];return r&&i.length>r?i.slice(0,-1):i},"ensureQueryFn",0,function(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==d?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))},"functionalUpdate",0,function(e,t){return"function"==typeof e?e(t):e},"hashKey",0,a,"hashQueryKeyByOptions",0,s,"isServer",0,i,"isValidTimeout",0,function(e){return"number"==typeof e&&e>=0&&e!==1/0},"matchMutation",0,function(e,t){let{exact:r,status:i,predicate:n,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(r){if(a(t.options.mutationKey)!==a(s))return!1}else if(!o(t.options.mutationKey,s))return!1}return(!i||t.state.status===i)&&(!n||!!n(t))},"matchQuery",0,function(e,t){let{type:r="all",exact:i,fetchStatus:n,predicate:a,queryKey:c,stale:u}=e;if(c){if(i){if(t.queryHash!==s(c,t.options))return!1}else if(!o(t.queryKey,c))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof u||t.isStale()===u)&&(!n||n===t.state.fetchStatus)&&(!a||!!a(t))},"noop",0,n,"partialMatchKey",0,o,"replaceData",0,function(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?function e(t,r,i=0){if(t===r)return t;if(i>500)return r;let n=u(t)&&u(r);if(!n&&!(l(t)&&l(r)))return r;let s=(n?t:Object.keys(t)).length,a=n?r:Object.keys(r),o=a.length,h=n?Array(o):{},d=0;for(let u=0;u<o;u++){let o=n?u:a[u],l=t[o],f=r[o];if(l===f){h[o]=l,(n?u<s:c.call(t,o))&&d++;continue}if(null===l||null===f||"object"!=typeof l||"object"!=typeof f){h[o]=f;continue}let p=e(l,f,i+1);h[o]=p,p===l&&d++}return s===o&&d===s?t:h}(e,t):t},"resolveEnabled",0,function(e,t){return"function"==typeof e?e(t):e},"resolveStaleTime",0,function(e,t){return"function"==typeof e?e(t):e},"shallowEqualObjects",0,function(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0},"shouldThrowError",0,function(e,t){return"function"==typeof e?e(...t):!!e},"skipToken",0,d,"sleep",0,function(e){return new Promise(t=>{r.setTimeout(t,e)})},"timeUntilStale",0,function(e,t){return Math.max(e+(t||0)-Date.now(),0)}],19273),e.s(["pendingThenable",0,function(){let e,t,r=new Promise((r,i)=>{e=r,t=i});function i(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{i({status:"fulfilled",value:t}),e(t)},r.reject=e=>{i({status:"rejected",reason:e}),t(e)},r},"tryResolveSync",0,function(e){let t;if(e.then(e=>(t=e,e),n)?.catch(n),void 0!==t)return{data:t}}],93803)},73911,e=>{"use strict";let t;var r=e.i(19273),i=(t=()=>r.isServer,{isServer:()=>t(),setIsServer(e){t=e}});e.s(["environmentManager",0,i])},86491,36553,88587,e=>{"use strict";e.i(47167);var t=e.i(19273),r=e.i(40143),i=e.i(75555),n=e.i(14448),s=e.i(93803),a=e.i(73911);function o(e){return Math.min(1e3*2**e,3e4)}function c(e){return(e??"online")!=="online"||n.onlineManager.isOnline()}
1var u=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function l(e){let r,l=!1,h=0,d=(0,s.pendingThenable)(),f=()=>i.focusManager.isFocused()&&("always"===e.networkMode||n.onlineManager.isOnline())&&e.canRun(),p=()=>c(e.networkMode)&&e.canRun(),g=e=>{"pending"===d.status&&(r?.(),d.resolve(e))},y=e=>{"pending"===d.status&&(r?.(),d.reject(e))},m=()=>new Promise(t=>{r=e=>{("pending"!==d.status||f())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,"pending"===d.status&&e.onContinue?.()}),v=()=>{let r;if("pending"!==d.status)return;let i=0===h?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(g).catch(r=>{if("pending"!==d.status)return;let i=e.retry??3*!a.environmentManager.isServer(),n=e.retryDelay??o,s="function"==typeof n?n(h,r):n,c=!0===i||"number"==typeof i&&h<i||"function"==typeof i&&i(h,r);l||!c?y(r):(h++,e.onFail?.(h,r),(0,t.sleep)(s).then(()=>f()?void 0:m()).then(()=>{l?y(r):v()}))})};return{promise:d,status:()=>d.status,cancel:t=>{if("pending"===d.status){let r=new u(t);y(r),e.onCancel?.(r)}},continue:()=>(r?.(),d),cancelRetry:()=>{l=!0},continueRetry:()=>{l=!1},canStart:p,start:()=>(p()?v():m().then(v),d)}}e.s(["CancelledError",0,u,"canFetch",0,c,"createRetryer",0,l],36553);var h=e.i(80166),d=class{#a;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,t.isValidTimeout)(this.gcTime)&&(this.#a=h.timeoutManager.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(a.environmentManager.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#a&&(h.timeoutManager.clearTimeout(this.#a),this.#a=void 0)}};e.s(["Removable",0,d],88587);var f=class extends d{#o;#c;#u;#l;#h;#d;#f;constructor(e){super(),this.#f=!1,this.#d=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#l=e.client,this.#u=this.#l.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#o=y(this.options),this.state=e.state??this.#o,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#h?.promise}setOptions(e){if(this.options={...this.#d,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=y(this.options);void 0!==e.data&&(this.setState(g(e.data,e.dataUpdatedAt)),this.#o=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#u.remove(this)}setData(e,r){let i=(0,t.replaceData)(this.state.data,e,this.options);return this.#p({data:i,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),i}setState(e,t){this.#p({type:"setState",state:e,setStateOptions:t})}cancel(e){let r=this.#h?.promise;return this.#h?.cancel(e),r?r.then(t.noop).catch(t.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#o}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==(0,t.resolveEnabled)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===t.skipToken||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,t.resolveStaleTime)(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,t.timeUntilStale)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#h?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#h?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#u.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#h&&(this.#f||this.#g()?this.#h.cancel({revert:!0}):this.#h.cancelRetry()),this.scheduleGc()),this.#u.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#g(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#p({type:"invalidate"})}async fetch(e,r){let i;if("idle"!==this.state.fetchStatus&&this.#h?.status()!=="rejected"){if(void 0!==this.state.data&&r?.cancelRefetch)this.cancel({silent:!0});else if(this.#h)return this.#h.continueRetry(),this.#h.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#f=!0,n.signal)}
1)},a=()=>{let e,i=(0,t.ensureQueryFn)(this.options,r),n=(s(e={client:this.#l,queryKey:this.queryKey,meta:this.meta}),e);return(this.#f=!1,this.options.persister)?this.options.persister(i,n,this):i(n)},o=(s(i={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:a}),i);this.options.behavior?.onFetch(o,this),this.#c=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#p({type:"fetch",meta:o.fetchOptions?.meta}),this.#h=l({initialPromise:r?.initialPromise,fn:o.fetchFn,onCancel:e=>{e instanceof u&&e.revert&&this.setState({...this.#c,fetchStatus:"idle"}),n.abort()},onFail:(e,t)=>{this.#p({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#p({type:"pause"})},onContinue:()=>{this.#p({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{let e=await this.#h.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#u.config.onSuccess?.(e,this),this.#u.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof u){if(e.silent)return this.#h.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#p({type:"error",error:e}),this.#u.config.onError?.(e,this),this.#u.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#p(e){let t=t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...p(t.data,this.options),fetchMeta:e.meta??null};case"success":let r={...t,...g(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#c=e.manual?r:void 0,r;case"error":let i=e.error;return{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),r.notifyManager.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#u.notify({query:this,type:"updated",action:e})})}};function p(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:c(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function g(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function y(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,i=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}e.s(["Query",0,f,"fetchState",0,p],86491)}]);
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.