PageSourceSearch

https://cdn.shopify.com/shopifycloud/world/brochure/production-homepage/assets/entry.client-DKNOCwou.js

js shopify.com collected 2026-09-24 03:04:46 UTC 18,179 bytes, 2 lines download raw bytes

1import{C as e,I as t,N as n,P as r,S as i,T as a,_ as o,b as s,c,d as l,f as u,g as d,h as f,i as ee,m as te,o as ne,p as re,t as ie,v as ae,w as oe,x as p,y as m}from"./chunk-62JRHF6Z-D3Q3NlnB.js";import{t as h}from"./react-dom-CaAuFBL-.js";import{a as g,r as _,t as v}from"./jsx-runtime-Cvx0fZjB.js";import{r as y,t as se}from"./documentInlineStylesheet-D3gcTLE2.js";var ce=r((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),b=t(n(),1);ce(),[...ee],new TextEncoder,b.Component;function le({state:t,routes:n,getRouteInfo:r,location:i,basename:a,isSpaMode:o}){let s={...t,loaderData:{...t.loaderData}},c=e(n,i,a);if(c)for(let e of c){let t=e.route.id,n=r(t);oe(t,n.clientLoader,n.hasLoader,o)&&(n.hasHydrateFallback||!n.hasLoader)?delete s.loaderData[t]:n.hasLoader||(s.loaderData[t]=null)}return s}var ue=t(h(),1);function de(e){return b.createElement(c,{flushSync:ue.flushSync,...e})}var x=null,S=null;function fe(){if(!x&&window.__reactRouterContext&&window.__reactRouterManifest&&window.__reactRouterRouteModules){if(window.__reactRouterManifest.sri===!0){let e=document.querySelector(`script[rr-importmap]`);if(e?.textContent)try{window.__reactRouterManifest.sri=JSON.parse(e.textContent).integrity}catch(e){console.error(`Failed to parse import map`,e)}}x={context:window.__reactRouterContext,manifest:window.__reactRouterManifest,routeModules:window.__reactRouterRouteModules,stateDecodingPromise:void 0,router:void 0,routerInitialized:!1}}}function pe({getContext:e,instrumentations:t}){if(fe(),!x)throw Error("You must be using the SSR features of React Router in order to skip passing a `router` prop to `<RouterProvider>`");let n=x;if(!x.stateDecodingPromise){let e=x.context.stream;s(e,`No stream found for single fetch decoding`),x.context.stream=void 0,x.stateDecodingPromise=d(e,window).then(e=>{x.context.state=e.value,n.stateDecodingPromise.value=!0}).catch(e=>{n.stateDecodingPromise.error=e})}if(x.stateDecodingPromise.error)throw x.stateDecodingPromise.error;if(!x.stateDecodingPromise.value)throw x.stateDecodingPromise;let r=u(x.manifest.routes,x.routeModules,x.context.state,x.context.ssr,x.context.isSpaMode),a;if(x.context.isSpaMode){let{loaderData:e}=x.context.state;x.manifest.routes.root?.hasLoader&&e&&`root`in e&&(a={loaderData:{root:e.root}})}else a=le({state:x.context.state,routes:r,getRouteInfo:e=>({clientLoader:x.routeModules[e]?.clientLoader,hasLoader:x.manifest.routes[e]?.hasLoader===!0,hasHydrateFallback:x.routeModules[e]?.HydrateFallback!=null}),location:window.location,basename:window.__reactRouterContext?.basename,isSpaMode:x.context.isSpaMode});window.history.state&&window.history.state.masked&&window.history.replaceState({...window.history.state,masked:void 0},``);let c=f({routes:r,history:l(),basename:x.context.basename,getContext:e,hydrationData:a,hydrationRouteProperties:m,instrumentations:t,mapRouteProperties:i,future:{v8_passThroughRequests:x.context.future.v8_passThroughRequests},dataStrategy:ae(()=>c,x.manifest,x.routeModules,x.context.ssr,x.context.basename,x.context.future.v8_trailingSlashAwareDataRequests),patchRoutesOnNavigation:o(()=>c,x.manifest,x.routeModules,x.context.ssr,x.context.routeDiscovery,x.context.isSpaMode,x.context.basename)});return x.router=c,c.state.initialized&&(x.routerInitialized=!0,c.initialize()),c.createRoutesForHMR=re,window.__reactRouterDataRouter=c,c}function me(e){S||=pe({getContext:e.getContext,instrumentations:e.instrumentations});let[t,n]=b.useState(void 0);b.useEffect(()=>{},[]),b.useEffect(()=>{},[t]);let[r,i]=b.useState(S.state.location);return b.useLayoutEffect(()=>{x&&x.router&&!x.routerInitialized&&(x.routerInitialized=!0,x.router.initialize())},[]),b.useLayoutEffect(()=>{if(x&&x.router)return x.router.subscribe(e=>{e.location!==r&&i(e.location)})},[r]),s(x,`ssrInfo unavailable for HydratedRouter`),a(S,x.manifest,x.routeModules,x.context.ssr,x.context.routeDiscovery,x.context.isSpaMode),b.createElement(b.Fragment,null,b.createElement(ie.Provider,{value:{manifest:x.manifest,routeModules:x.routeModules,future:x.context.future,criticalCss:t,ssr:x.context.ssr,isSpaMode:x.context.
1isSpaMode,routeDiscovery:x.context.routeDiscovery}},b.createElement(ne,{location:r},b.createElement(de,{router:S,useTransitions:e.useTransitions,onError:e.onError}))),b.createElement(b.Fragment,null))}te();var he=r((e=>{var t=h();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot}))();function C(e,t){window.requestIdleCallback?window.requestIdleCallback(e,t):window.setTimeout(e,t?.timeout??1)}var w={vite:`sv`,lazy:`sl`},T=`rc`,ge=1e4,_e=3,E=e=>{let t=window.location.hash.match(RegExp(`${e}(\\d+)`));return t?Number(t[1]):0},D=e=>{let t=E(w[e]),n=E(T),r=Date.now(),i=(!t||t+ge<r)&&n<_e;if(i){let t=window.location.hash.replace(/sv\d+/g,``).replace(/sl\d+/g,``).replace(/rc\d+/g,``);window.location.hash=`${t}${w[e]}${r}${T}${n+1}`,window.location.reload()}return i},O=e=>/Cannot read properties of undefined \(reading 'default'\)/.test(e)||e.includes(`evaluating 'e._result.default'`)||e.includes(`e._result is undefined`)||e.includes(`can't access property "default" of undefined`),k=e=>e.filename?.includes(`/shopifycloud/world/brochure/`)||e.error?.stack?.includes(`/shopifycloud/world/brochure/`),A=!1,j=(e,t)=>O(e)?A?!0:!t||!D(`lazy`)?!1:(A=!0,queueMicrotask(()=>{A=!1}),!0):!1,M=!1,N=e=>O(e)?M?!0:(M=!0,queueMicrotask(()=>{M=!1}),!1):!1,P=()=>{window.addEventListener(`vite:preloadError`,e=>{D(`vite`)&&e.preventDefault()}),window.addEventListener(`error`,e=>{j(e.message,!!k(e))})},F=60*1024,I=2*1024,L=`…[truncated]`,R=e=>typeof TextEncoder<`u`?new TextEncoder().encode(e).byteLength:e.length*3,z=(e,t)=>{if(R(e)<=t)return e;let n=Math.max(0,t-R(L)),r=e.slice(0,n);for(;r.length>0&&R(r)>n;)r=r.slice(0,-1);return r+L},B=e=>!!e&&typeof e==`object`&&!Array.isArray(e);function ve(e){let t=JSON.stringify(e)??`null`;if(R(t)<=F)return t;if(!B(e))return JSON.stringify({payloadTruncated:`true`,originalPayloadBytes:String(R(t))});let n=R(t),r={...e};if(B(r.extraMetadata)){let e={...r.extraMetadata,payloadTruncated:`true`,originalPayloadBytes:String(n)};r.extraMetadata=e;let i=Object.keys(e).filter(t=>typeof e[t]==`string`&&t!==`payloadTruncated`&&t!==`originalPayloadBytes`).sort((t,n)=>e[n].length-e[t].length);for(let n of i){if(t=JSON.stringify(r),R(t)<=F)return t;e[n]=z(e[n],I)}}return t=JSON.stringify(r),R(t)<=F||typeof r.stack==`string`&&(r.stack=z(r.stack,I),t=JSON.stringify(r),R(t)<=F)?t:JSON.stringify({url:typeof r.url==`string`?z(r.url,2048):`unknown`,message:typeof r.message==`string`?z(r.message,I):`Unknown error`,errorClass:typeof r.errorClass==`string`?r.errorClass:`Error`,extraMetadata:{payloadTruncated:`true`,originalPayloadBytes:String(n)}})}var ye=e=>String(e).includes(`this.#window.fetch`);function be(e,t){let n=ve(t);typeof navigator<`u`&&navigator.sendBeacon&&(ye(navigator.sendBeacon)||navigator.sendBeacon(e,n))||typeof fetch<`u`&&fetch(e,{method:`POST`,body:n,headers:{"Content-Type":`application/json`},keepalive:!0}).catch(()=>{})}function xe(e){return typeof e==`object`&&!!e&&e.__brochureNotFoundPage===!0}var Se=`Object.getOwnPropertyDescriptor [as _getOwnPropertyDescriptor]`,Ce=e=>e instanceof Error?e.message===`Maximum call stack size exceeded`&&typeof e.stack==`string`&&e.stack.includes(Se):!1;function we(e){return e instanceof Error&&Object.getPrototypeOf(e)===Error.prototype&&e.name===`Error`&&e.message===`Unexpected Server Error`&&(e.stack===void 0||e.stack===``)}var Te=[Ie,De,Ce,we,Oe,Fe,Ee];function Ee(e){return p(e)&&e.status===404&&xe(e.data)}function De(e){let t=e instanceof Error?e.message:String(e);return t.includes(`The object can not be found here`)||t.includes(`The operation would yield an incorrect node tree`)}function Oe(e){if(e==null)return!0;if(typeof e!=`object`)return!1;if(e instanceof Error){let{message:t,stack:n}=e;return t===`Script error.`||t===`Script error`?!0:t===``&&(n==null||n===``)}return!1}var V=500,ke=20;function Ae(e){if(p(e))return`ErrorResponse`;try{let t=e.constructor;return typeof t==`function`&&t.name?t.name:`Object`}catch{return`Object`}}function je(e){if(!(`data`in e)||e.data===void 0||e.data===null)return;if(typeof e.data==`string`)return e.data.length===0?void 0:e.data.length>V?`${e.data.slice(0,V)}…`:e.data;if(typeof e.data!=`object`)return e.data;let t;try{t=JSON.stringify(e.data).length}catch{return}if(t!==0)return t>V?`[truncated: ${t} bytes]`:e.data}function Me(e){try{let t=Object.keys(e);return t.length>0?t.slice(0,ke).join(`,`):void 0}catch{return}}function Ne(e){if(e instanceof Error&&e.message||typeof e!=`object`||!e)return null;let t=e,n={shape:Ae(t)};typeof t.status==`number`&&(n.status=t.status),typeof t.statusText==`string`&&t.statusText.length>0&&(n.statusText=t.statusText);let r=je(t);r!==void 0&&(n.data=r);let i=Me(t);return i!==void 0&&(n.ownProperties=i),n}function Pe(e){let t=e?.message;if(typeof t==`string`&&t.length>0)return{message:t,diagnostics:null};let n=Ne(e);if(n){let e=[];
1if(n.shape&&e.push(n.shape),typeof n.status==`number`&&e.push(String(n.status)),n.statusText&&e.push(n.statusText),e.length>0)return{message:e.join(` `),diagnostics:n}}return{message:`Unknown error`,diagnostics:n}}function Fe(e){if(typeof e!=`object`||!e)return!1;let{status:t,data:n}=e;return t===429&&typeof n==`string`&&n.includes(`used Cloudflare to restrict access`)}function Ie(e){if(!(e instanceof TypeError)||e.message!==`Failed to fetch`)return!1;try{let e=navigator.userAgent||``,t=navigator.userAgentData;return navigator.webdriver===!0||/HeadlessChrome/i.test(e)||/bot|spider|crawler|crawling/i.test(e)||/MSIE\s?[67]\.0/i.test(e)||t?.brands?.some(e=>/HeadlessChrome/i.test(e.brand))===!0}catch{return!1}}function Le(e,t){if(Te.some(t=>t(e)))return;let n=e,{message:r,diagnostics:i}=Pe(e),a=n?.stack||`Unknown stack`,o=typeof window<`u`&&window.location?.href?window.location.href:`unknown`;be(g,{url:o,pageViewToken:``,message:r,stack:a,errorClass:n?.name||`Error`,extraMetadata:{url:o,...t,...i?{nonErrorDiagnostics:i}:{}}})}function Re(){let e=window.__preHydrationData;return e?{observerInjected:(e.injectedElements??[]).join(` | `),observerRemoved:(e.removedElements??[]).join(` | `),observerAttrChanged:(e.attributesChanged??[]).join(` | `)}:{}}function ze(){let e=window;typeof e.__stopPreHydrationMonitor==`function`&&e.__stopPreHydrationMonitor()}var Be=new Set([`lang`,`dir`,`class`]),Ve=new Set([`class`,`style`]),H=20,He=new Set([`SCRIPT`,`IFRAME`,`OBJECT`,`EMBED`]);function U(e,t=120){return e.length>t?`${e.slice(0,t)}...`:e}function W(e){return!!e&&(e.includes(`shopify.com`)||e.includes(`shopifycloud`))}function G(e){let t=e.nodeName,n=e.id?`#${e.id}`:``,r=e.getAttribute(`src`),i=e.getAttribute(`href`),a=e.getAttribute(`type`),o=[];return r?o.push(`src=${U(r)}`):i&&o.push(`href=${U(i)}`),a&&o.push(`type=${a}`),`${t}${n}${o.length>0?`[${o.join(`,`)}]`:``}`}function K(e,t){let n=[];for(let r of Array.from(e.attributes))t.has(r.name)||n.push(`${r.name}=${U(r.value)}`);return n}function Ue(){if(!document.head)return[];let e=[];for(let t of Array.from(document.head.children)){if(e.length>=H)break;let n=t.getAttribute(`src`),r=t.getAttribute(`href`);if(W(n)||W(r))continue;let i=t.nodeName,a=i===`STYLE`&&!t.getAttribute(`data-vite-dev-id`)&&!W(t.textContent),o=i===`SCRIPT`&&n&&!W(n);(a||o)&&e.push(G(t))}return e}function We(){if(!document.body)return[];let e=[];for(let t of Array.from(document.body.children)){if(e.length>=H)break;let n=t.nodeName;if(He.has(n)){let n=t.getAttribute(`src`)||t.getAttribute(`data`);(!n||!W(n))&&e.push(G(t))}n.includes(`-`)&&e.push(G(t))}return e}function Ge(){let e=[],t=document.querySelectorAll(`*`);for(let n of Array.from(t)){if(e.length>=H)break;n.tagName.includes(`-`)&&e.push(G(n))}return e}function Ke(){if(!document.documentElement)return{snapshotExtraHtmlAttrs:``,snapshotExtraBodyAttrs:``,snapshotExtraRootElements:``,snapshotExtraHeadElements:``,snapshotExtraBodyElements:``,snapshotCustomElements:``};let e=[];for(let t of Array.from(document.documentElement.parentNode?.children??[]))t!==document.documentElement&&e.push(t.nodeName);return{snapshotExtraHtmlAttrs:K(document.documentElement,Be).join(` | `),snapshotExtraBodyAttrs:document.body?K(document.body,Ve).join(` | `):``,snapshotExtraRootElements:e.join(` | `),snapshotExtraHeadElements:Ue().join(` | `),snapshotExtraBodyElements:We().join(` | `),snapshotCustomElements:Ge().join(` | `)}}var qe=2e3,Je=`...`,Ye=[{code:`301`,unminified:/Too many re-renders/i},{code:`185`,unminified:/Maximum update depth exceeded/i}];function Xe(e){if(e instanceof Error||typeof e==`object`&&e&&`message`in e&&typeof e.message==`string`)return e.message;try{return String(e)}catch{return``}}function Ze(e){let t=Xe(e);for(let{code:e,unminified:n}of Ye)if(t.includes(`Minified React error #${e}`)||n.test(t))return e;return null}function Qe(e,t){let n=Ze(e);if(!n)return{};let r={reactErrorCode:n},i=t?.componentStack;return typeof i==`string`&&i.length>0&&(r.reactComponentStack=i.length>2e3?`${i.slice(0,qe-3)}${Je}`:i),r}var $e=/No route matches URL "([^"]+)"/,q=`generated`,J=`page`;function Y(e){try{return decodeURIComponent(e)}catch{return e}}function X(e){try{return Y(new URL(e,window.location.origin).pathname)}catch{return Y(e.split(/[?#]/)[0]||`/`)}}function et(e){return/^[a-z]{2}(?:-[a-z]{2})?$/i.test(e)}
1function tt(e){let t=X(e).split(`/`).filter(Boolean),n=!!(t[0]&&et(t[0]));return{hasLocalePrefix:n,segments:t,routeSegments:n?t.slice(1):t}}function Z(e){return e.length===0?`/`:`/${e.join(`/`)}`}function nt(e){return Z(e.segments.map((t,n)=>n===0&&e.hasLocalePrefix?`:locale`:/^\d+$/.test(t)?`:number`:`:segment`))}function Q(e,t){return Z([...e.hasLocalePrefix?[`:locale`]:[],...t])}function rt(e){return e.length>=3&&e[1]===q}function it(e){let t=e.length-2;return t>=1&&e[t]===J&&/^\d+$/.test(e[t+1])}function $(e){let t=tt(e);return rt(t.routeSegments)?{routeFamily:`generated-tools`,pathPattern:Q(t,[`:toolsSegment`,q,`:urlToPdf`])}:it(t.routeSegments)?{routeFamily:`pagination`,pathPattern:Q(t,[...t.routeSegments.slice(0,-2).map(()=>`:segment`),J,`:page`])}:{routeFamily:`unclassified`,pathPattern:nt(t)}}function at(e){if(!p(e)||e.status!==404)return;let t=e,n=[t.data,t.error].map(e=>{if(e instanceof Error)return e.message;if(typeof e==`string`)return e}).filter(e=>!!e);for(let e of n){let t=e.match($e);if(t?.[1])return X(t[1])}}function ot(e){if(e.searchParams.has(`paths`))return{param:`paths`,paths:(e.searchParams.get(`paths`)??``).split(`,`).map(e=>e.trim()).filter(Boolean).map(X)};let t=e.searchParams.getAll(`p`);return t.length>0?{param:`p`,paths:t.filter(Boolean).map(X)}:{param:`missing`,paths:[]}}function st(e){let t=performance.getEntriesByType(`resource`),n,r=`missing`;for(let i=t.length-1;i>=0;i--){let a=t[i],o;try{o=new URL(a.name,window.location.origin)}catch{continue}if(o.origin!==window.location.origin||o.pathname!==`/__manifest`)continue;let{param:s,paths:c}=ot(o);if(n||(n=a,r=s),c.includes(e))return{entry:a,matchedPath:!0,param:s}}return{entry:n,matchedPath:!1,param:r}}function ct(e){return{routeMissManifestResponseStatus:String(e.responseStatus??`unknown`)}}function lt(e){let{entry:t,matchedPath:n,param:r}=st(e);return t?{routeMissManifestRequest:n?`matched-path`:`present-without-path-match`,routeMissManifestParam:r,...ct(t)}:{routeMissManifestRequest:`not-found`}}function ut(e,t){let n=at(e);if(!n)return{};let r=$(n);return{routeErrorKind:`react-router-route-miss`,routeMissRouteFamily:r.routeFamily,routeMissPathPattern:r.pathPattern,routeMissCurrentPathMatchesMissedPath:String(t?X(t)===n:!1),...lt(n)}}var dt=v(),ft=`Unable to decode turbo-stream response`;function pt(e){let t=performance.getEntriesByType(`resource`),n;for(let r=t.length-1;r>=0;r--){let i=t[r],a;try{a=new URL(i.name,window.location.origin)}catch{continue}if(a.origin!==window.location.origin||!_(a))continue;if(!n&&(n=i,!e))break;let o;try{o=decodeURIComponent(a.pathname)}catch{continue}let s;if(s=o===`/_root.data`?`/`:o.replace(/\.data$/,``),e&&s===e)return{dataEntry:n,matchedEntry:i}}return{dataEntry:n,matchedEntry:void 0}}function mt(e){let t=e.responseStatus;return t!==void 0&&t!==200?!1:e.transferSize>0&&e.encodedBodySize===0&&e.decodedBodySize===0}function ht(e,t,n){let r=`not-found`;return t?r=t.name:e&&!n?r=`no-location`:e&&(r=`no-match`),{turboStreamError:`true`,referrer:document.referrer||`none`,failedDataRequest:r,...y(),transferSize:String(t?.transferSize??-1),encodedBodySize:String(t?.encodedBodySize??-1),decodedBodySize:String(t?.decodedBodySize??-1)}}function gt(){let e=globalThis,t=e.window!==void 0&&e.document!==void 0&&typeof e.document.createElement==`function`,n=typeof e.Response==`function`,r=typeof e.ReadableStream==`function`,i=typeof e.TextDecoder==`function`,a=n&&e.Response.prototype&&`body`in e.Response.prototype;return{supported:t&&n&&r&&i&&a,hasDOM:t,hasResponse:n,hasReadableStream:r,hasTextDecoder:i,hasResponseBody:a}}function _t(){let{hash:e,href:t,pathname:n,search:r}=window.location,i=n.replace(/\/{2,}/g,`/`);if(i===n)return!1;let a=new URL(t,window.location.origin);return a.pathname=i,a.search=r,a.hash=e,window.location.replace(a.toString()),!0}function vt(){if(_t())return;let e=gt(),t={},n=!0,r=(r,{location:i,pattern:a,errorInfo:o})=>{let s=r instanceof Error?r.message:String(r);if(j(s,(r instanceof Error?r.stack??``:``).includes(`/shopifycloud/world/brochure/`))||N(s))return;let c=s.includes(ft),l={};if(c){let{dataEntry:e,matchedEntry:t}=pt(i?.pathname);if(t&&mt(t))return;l=ht(e,t,i?.pathname)}let u=ut(r,i?.pathname);Le(r,{componentName:`HydratedRouter`,sectionName:`entry.client`,errorBoundary:`true`,route:a||u.routeMissPathPattern||i?.pathname||`unknown`,hydrationSupported:String(e.supported),hydrationHasDOM:String(e.hasDOM),hydrationHasResponse:String(e.hasResponse),hydrationHasReadableStream:String(e.hasReadableStream),hydrationHasTextDecoder:String(e.hasTextDecoder),hydrationHasResponseBody:String(e.hasResponseBody),...l,...u,...Qe(r,o),...n?t:{},...Ke()})};async function i(){try{se()}catch{}try{t=Re()}catch{}try{ze()}catch{}(0,b.startTransition)(()=>{(0,he.hydrateRoot)(document,(0,dt.jsx)(me,{onError:r}))}),C(()=>{n=!1})}C(i),P()}vt();
2//# sourceMappingURL=entry.client-DKNOCwou.js.map

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.