PageSourceSearch

https://www.dkny.com/cdn/shopifycloud/checkout-web/assets/c1/2c1ab0fe-legacy.cq3Fzm9_.js

js dkny.com collected 2026-10-02 02:50:59 UTC 148,290 bytes, 1 lines download raw bytes

1!function(){const e=["form"],t=["currencyDisplay"],n=["event","handler"],r=["children","router","href","onClick"],o=["createMessenger"];function i(e,t,n){a(e,t),t.set(e,n)}function a(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function s(e,t){return e.get(c(e,t))}function u(e,t,n){return e.set(c(e,t),n),n}function c(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function f(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){d(i,r,o,a,s,"next",e)}function s(e){d(i,r,o,a,s,"throw",e)}a(void 0)}))}}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}System.register([],(function(d,h){"use strict";return{execute:function(){d({$:Hr,A:Pe,D:function(e){function t(t){var n=dr({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=yr,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t},F:it,G:function(e,t){var n,r,o={},i=e;for(var a in i){var s=i[a];null!=s&&(o[(n=a,r=void 0,r=n.match(/^var\((.*)\)$/),r?r[1]:n)]=s)}return Object.defineProperty(o,"toString",{value:function(){return Object.keys(this).map((e=>"".concat(e,":").concat(this[e]))).join(";")},writable:!1}),o},N:Ce,O:Mo,P:function(e,t){me.useDebugValue&&me.useDebugValue(t?t(e):e)},Q:mr,R:du,S:j,T:Te,U:function(e){throw new Gr(`Received unexpected value ${JSON.stringify(e)} in an exhaustive switch/conditional block`)},V:no,W:function(e,t){return`${e}${"number"==typeof t?String(t):`${t[0].toUpperCase()}${t.substring(1)}`}`},X:ce,Z:qr,_:xe,a:function(e){throw new Gr(`Received unexpected value ${JSON.stringify(e)} in an exhaustive switch/conditional block`)},a0:function({initialDelay:e=Yr,maxAttempts:t=Jr}={}){return Te((()=>{let n=Xr(e,t);return{next:()=>n.next(),reset:()=>{n=Xr(e,t)}}}),[e,t])},a1:hr,a2:B,a3:function(e){const t=function(e){return"undefined"==typeof window||"string"!=typeof e?void 0:new URL(e,window.location.href)}(e);function n(n={}){let{createMessenger:r=Nu}=n,i=l(n,o);if(t){const e=ku(r(t),i),{call:n}=e;return $u.set(n,e),n}if("function"==typeof e)return new Proxy({},{get:(t,n)=>f((function*(...t){return(yield e())[n](...t)}))});if("undefined"==typeof window)return new Proxy({},{get:(e,t)=>()=>{throw new Error("You can’t call a method on a worker on the server.")}});throw new Error("Could not create a suitable fallback")}return Reflect.defineProperty(n,"url",{value:t}),n},a4:hu,a5:function(e,t){const n=Ou(e);return null==n||n.expose(t),null!=n},a6:function(e){const t=Ou(e);return null==t||t.terminate(),$u.delete(e),null!=t},a7:function(e){var t=At(e);return"current"in t||Object.defineProperty(t,"current",ao),t},a8:ku,a9:function(e,{terminate:t=!0,targetOrigin:n="*"}={}){var r;if("undefined"==typeof window)throw new Error("You can only run fromIframe() in a browser context, but no window was found.");const o=new WeakMap;let i;function a(t){t.source===e.contentWindow&&t.data===Tu&&(window.removeEventListener("message",a),i())}null===(r=e.contentWindow)||void 0===r||r.postMessage(Tu,n);const s=new Promise((e=>{i=e,window.addEventListener("message",a)}));return{postMessage:(t,r)=>f((function*(){var o;yield s,null===(o=e.contentWindow)||void 0===o||o.postMessage(t,n,r)}))(),addEventListener(t,n){const r=t=>{t.source===e.contentWindow&&n(t)};o.set(n,r),self.addEventListener(t,r)},removeEventListener(e,t){const n=o.get(t);null!=n&&(o.delete(t),self.removeEventListener(e,n))},terminate(){window.removeEventListener("message",a),t&&e.remove()}}},aA:function(e){const t=Pe(!1);t.current||(t.current=!0,zu((()=>{Promise.resolve(e()).catch((()=>{}))})))},aB:function(e){return Co.test(e)},aC:Pn,aE:Kn,aF:Wn,aG:qn,aH:Hn,aI:function(){return function(){const e=pn();return vn(e)?"":e.region||""}()},aJ:function(){const e=pn();return e&&e.sale_of_data_region||!1},aK:function(){const e=pn();return!!e&&("boolean"==typeof e.display_banner&&e.display_banner)},aL:function(){const e={},t={m:yn(Lt.MARKETING),a:yn(Lt.ANALYTICS),p:yn(Lt.PREFERENCES),s:yn(Lt.SALE_OF_DATA)};for(const n of Object.keys(t))e[_n(n)]=mn(t[n]);return e},aM:function(){return function(){const e=pn();
1if(!vn(e)&&e.cus)return Object.entries(e.cus).map((([e,t])=>({key:decodeURIComponent(e),value:decodeURIComponent(t)})))}()},aN:function(e,t){if(Ut())throw new Error("setTrackingConsent is not supported in Node.js environments. This function requires browser APIs (XHR, cookies, window) and can only be called client-side.");const n=new Xt;if(En()&&n.produce("setTrackingConsent",Sn),function(e){if("boolean"!=typeof e&&"object"!=typeof e)throw new Dt(`setTrackingConsent received an invalid argument of type "${typeof e}". Expected an object with consent keys. Example: setTrackingConsent({ analytics: true, marketing: false }). See ${jn} for documentation.`);if("object"==typeof e){const t=Object.keys(e);if(0===t.length)throw new Dt(`The submitted consent object is empty. Expected at least one consent key: ${Un}. Example: setTrackingConsent({ analytics: true, marketing: false }). See ${jn} for documentation.`);for(const e of t)if(!Fn.includes(e))throw new Dt(`The submitted consent object contains an invalid key: "${e}". Valid keys are: ${Un}. Example: setTrackingConsent({ analytics: true, marketing: false }). See ${jn} for documentation.`)}}(e),void 0!==t&&"function"!=typeof t)throw new Dt(`setTrackingConsent received an invalid callback of type "${typeof t}". The second argument must be a function if provided. Example: setTrackingConsent({ analytics: true }, (error, result) => { ... }). See ${jn} for documentation.`);const r=function(e){if(!e)return null;try{return Bn()?document.referrer:""}catch(t){return""}}(e.analytics),o=function(e){if(!e)return null;if(!Bn())return"/";try{return window.location.pathname+window.location.search}catch(t){return"/"}}(e.analytics);return function(e,t,n,r={}){const o=Qt().consentDomain||t.granular_consent.checkoutRootDomain||window.location.host,i=()=>function(e,t,n,r){const o=t.granular_consent;let i="",a={};if(o.customerAccountRequestInfo)i=o.customerAccountRequestInfo.url,a=o.customerAccountRequestInfo.headers;else{const t=Qt(),r=o.storefrontAccessToken||t.storefrontAccessToken||function(){try{const t=document.documentElement.querySelector("#shopify-features"),n="Could not find liquid access token";if(!t)return void qt.warn(n);const r=t.textContent;if(!r)return void qt.warn(n);let o;try{o=JSON.parse(r).accessToken}catch(e){return void qt.warn(n)}return o||void qt.warn(n)}catch(t){return void qt.warn("Could not find liquid access token")}}();i=`${/^(localhost|127\.0\.0\.1)(:|$)/.test(e)?"http:":"https:"}//${e}/api/unstable/graphql.json`;const s=o.isExtensionToken?"Shopify-Storefront-Extension-Token":"x-shopify-storefront-access-token";a=r?{[s]:r}:{},n&&(a=p(p({},a),n()))}const s={headers:p(p(p({"content-type":"application/json"},!0===Qt().asyncConsent&&new URL(i).origin===window.location.origin&&{[Mn]:"1"}),a),jt()?{"x-test-payload":JSON.stringify(t)}:{}),body:JSON.stringify(Rn(t)),method:"POST"};let u;try{u=fetch(i,s)}catch(ea){u=Promise.reject(ea)}return u.then((e=>{try{null==r||r(e)}catch(t){}if(e.ok)return e.json();{const t=new Error("Server error");throw t.cause={status:e.status},t}}))}(o,t,r.getVisitorTokenHeaders,r.onResponse).then((e=>{var o,i;const a=null==e||null===(o=e.data)||void 0===o?void 0:o.consentManagement;if(!a){var s;const t=(null!==(s=null==e?void 0:e.errors)&&void 0!==s?s:[]).map((e=>null==e?void 0:e.message)).filter(Boolean).join("; ");throw new Error(t?`GraphQL error: ${t}`:"GraphQL response missing consentManagement")}const u=a.cookies.cookieDomain,c=a.cookies.trackingConsentCookie,l=a.cookies.shopifyUnique,d=a.cookies.shopifyVisit,f=null!==(i=a.customerAccountUrl)&&void 0!==i?i:"";if(c&&function(e){Wt(window,"Shopify","customerPrivacy").cachedConsent=e}(c),Nn("_shopify_y",l),Nn("_shopify_s",d),function(e){return e.granular_consent.headlessStorefront}(t)&&!an()){const e=31536e6,n=t.granular_consent,r=u||n.checkoutRootDomain||window.location.hostname,o=n.storefrontRootDomain||u||window.location.hostname;Zt(Vt,r,e,c),o!==r&&Zt(Vt,o,e,c)}var h,p;return!1!==r.emitEvents&&(h=t,p={[It.PREFERENCES]:wn(),[It.ANALYTICS]:En(),[It.MARKETING]:bn(),[It.SALE_OF_DATA]:An()},void 0!==h.granular_consent&&fn(p)),function(e,t){if(!e)return;const n=function(e){const t=new URL(e,window.location.origin),n=On(e)?$n(t):$n(t).replace(window.location.origin,""),r=document.querySelectorAll(`a[href^="${n}"]`),o=document.querySelectorAll(`a[href*="${window.location.hostname}/customer_authentication"]`),i=new Set,a=[];for(let s=0;s<r.length;s++)i.has(r[s])||(i.add(r[s]),a.push(r[s]));for(let s=0;s<o.length;s++)i.has(o[s])||(i.add(o[s]),a.push(o[s]));return a}(e);if(n.length)for(let r=0;r<n.length;r++){const o=n[r],i=o.getAttribute("href");if(!i)continue;const a=new URL(i,window.location.origin);a.searchParams.set("_cs",t);const s=On(e)?a.toString():a.toString().replace(window.location.origin,"");o.setAttribute("href",s)}}(f,c),void 0!==n&&n(null,e),e})).catch((e=>{var t;const r="Error while setting storefront API consent: "+e.message,o=null===(t=e.cause)||void 0===t?void 0:t.status,i={error:r};
1if(void 0!==o&&(i.statusCode=o),void 0===n)throw i;n(i)}));if(!0!==Qt().asyncConsent)return i();const a=In=In?In.then(i,i):i(),s=()=>{In===a&&(In=void 0)};return a.then(s,s),a}(0,p(p({granular_consent:e},null!==r&&{referrer:r}),null!==o&&{landing_page:o}),t)},aO:function(e){var t,n;(function(e){Ut()?cn=e:Wt(window,"Shopify","customerPrivacy").injectedConsent=e})(e),Ut()||(null!==(t=window.Shopify)&&void 0!==t&&null!==(n=t.customerPrivacy)&&void 0!==n&&n.cachedConsent&&(window.Shopify.customerPrivacy.cachedConsent=void 0),fn({[It.PREFERENCES]:wn(),[It.ANALYTICS]:En(),[It.MARKETING]:bn(),[It.SALE_OF_DATA]:An()}))},aQ:function({url:e,method:t="POST",credentials:n,headers:r,source:o,explicitSearchParams:i={},onResult:a,onError:s,fetch:u=globalThis.fetch}){return function(){var c=f((function*(c){var l;const d=performance.now(),f=new Headers("function"==typeof r?r(c):r);if(c.additionalHeaders)for(const[e,t]of Object.entries(c.additionalHeaders))f.set(e,t);const h="function"==typeof t?t(c):t,v=null!==(l="function"==typeof o?o(c):o)&&void 0!==l?l:"GET"!==h;f.has("Content-Type")||f.set("Content-Type","application/json"),f.has("Accept")||f.set("Accept","application/json"),f.set("Shopify-Checkout-Client","checkout-web/1.0");const m={method:h,headers:f,credentials:n,redirect:"manual",signal:c.signal},_=new URL("function"==typeof e?e(c):e);if(c.query.name&&_.searchParams.set("operationName",c.query.name),i&&Object.entries(i).forEach((([e,t])=>{_.searchParams.set(e,t)})),"GET"===h)c.variables&&"{}"!==JSON.stringify(c.variables)&&_.searchParams.set("variables",JSON.stringify(c.variables)),v?_.searchParams.set("query",c.query.source):_.searchParams.set("id",c.query.id),_.search.includes(";")&&(_.search=_.search.replace(/;/g,"%3B"));else{const e={variables:c.variables,operationName:c.query.name};v?e.query=c.query.source:e.id=c.query.id,m.body=JSON.stringify(e)}const y=new Request(_,m),g=yield u(y).catch((e=>e));try{var w;if(g instanceof Error)throw new co(g);if(!g.ok){if(400===g.status)throw new ho(g,c.query.name);throw new fo(g,c.query.name)}const e=null!==(w=g.headers.get("Content-Type"))&&void 0!==w?w:"missing";if(!e.includes("application/json"))throw new po(g,e,(yield g.text()).substring(0,200),c.query.name);let t;try{t=yield g.json()}catch(E){throw new vo(g,_.toString(),c.query.name,E)}const{data:n,errors:r}=t;let o;o=null!=r&&r.length>0?{data:void 0,error:new so(r)}:null==n?{data:void 0,error:new so([{name:"NoDataError",message:"No data returned by GraphQL"}],"GraphQLExecutionError::NoDataReturned")}:{data:n,error:void 0};const i=performance.now();return null==a||a(p(p({},c),{},{request:y,response:g,result:o,start:d,end:i,duration:i-d})),o}catch(E){const e=performance.now(),t=E instanceof fo||E instanceof po?E.response:void 0;throw null==s||s(p(p({},c),{},{request:y,response:t,error:E,start:d,end:e,duration:e-d})),E}}));return function(e){return c.apply(this,arguments)}}()},aR:function e(...t){const n={};return t.forEach((t=>{Object.keys(t).forEach((r=>{n[r]?"string"==typeof t[r]?n[r]=t[r]:n[r]=e(n[r],t[r]):n[r]=t[r]}))})),n},aX:function(e,{metadata:t}={}){let n=window.onerror;window.onerror=(r,o,i,a,s)=>{s&&e.notify(s,{severityType:"unhandledException",handled:!1,metadata:t}),"function"==typeof n&&n.apply(window.onerror,[r,o,i,a,s])}},aY:function(e,{metadata:t}={}){window.addEventListener("unhandledrejection",(n=>{n.reason&&n.reason instanceof Error&&n.reason.stack&&!(n.reason instanceof zi)&&e.notify(n.reason,{severityType:"unhandledPromiseRejection",handled:!1,metadata:t})}))},ac:function(e){const t=new Map;return Vo(e,((e,n)=>t.set(e,n))),t},ad:function({targetOrigin:e="*"}={}){if("undefined"==typeof self||null==self.parent)throw new Error("This does not appear to be a child iframe, because there is no parent window.");const{parent:t}=self,n=()=>t.postMessage(Tu,e);window.addEventListener("message",(e=>{e.source===t&&"complete"===document.readyState&&e.data===Tu&&n()})),"complete"===document.readyState?n():document.addEventListener("readystatechange",(()=>{"complete"===document.readyState&&n()}));const r=new WeakMap;return{postMessage(n,r){t.postMessage(n,e,r)},addEventListener(e,n){const o=e=>{e.source===t&&n(e)};r.set(n,o),self.addEventListener(e,o)},removeEventListener(e,t){const n=r.get(t);null!=n&&(r.delete(t),self.removeEventListener(e,n))}}},af:function(){var e=Ae(le++,11);if(!e.__){for(var t=de.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}
1,ag:zr,ah:Vr,ai:Dr,al:function(e){var t=Ae(le++,10),n=Se();return t.__=e,de.componentDidCatch||(de.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},as:ue,at:se,au:F,av:function(e,t,n){pe=6,xe((function(){if("function"==typeof e){var n=e(t());return function(){e(null),n&&"function"==typeof n&&n()}}if(e)return e.current=t(),function(){return e.current=null}}),null==n?n:n.concat(e))},aw:zu,ax:Gu,ay:function(){const e=new Set,t=new Map,n=new Map;let r=null,o="unmounted";const i={id:qu,kind:Uu,children:[],version:0},a=new Map([[qu,i]]),s=function({mount:e,insertChild:t,removeChild:n,updateProps:r,updateText:o}){const i=new Map([[Mu,e],[Iu,n],[Ru,t],[Fu,r],[Lu,o]]);return(e,...t)=>i.get(e)(...t)}({mount:e=>{const n=a.get(qu),r=e.map((e=>Wu(e,Hu)));n.version+=1,n.children=r,o="mounted";for(const t of r)du(t),c(t);u(n).then((()=>{!function(){const e=t.get("mount");if(e)for(const t of e)t()}()}))},insertChild:(e,t,n,r)=>{const o=a.get(null!=e?e:qu),{children:i}=o;let s,l;if(e===r?s=o:!1!==r&&(s=a.get(null!=r?r:qu)),s){const t=n.id,o=s.children,i=o.findIndex((e=>e.id===t)),[a]=o.splice(i,1);l=a,e!==r&&(s.version+=1,u(s))}else l=Wu(n,Hu),du(l),c(l);t===i.length?i.push(l):i.splice(t,0,l),o.version+=1,u(o)},removeChild:(e,t)=>{const n=a.get(null!=e?e:qu),{children:r}=n,[o]=r.splice(t,1);o&&(n.version+=1,l(o),u(n).then((()=>{hu(o)})))},updateProps:(e,t)=>{const n=a.get(e),r=p({},n.props);du(t),Object.keys(t).forEach((e=>{const n=t[e],o=r[e];Gu(o)&&l(o),Ku(n)&&c(Wu(n,Hu))})),Object.assign(n.props,t),n.version+=1,u(n).then((()=>{for(const e of Object.keys(t))hu(r[e])}))},updateText:(e,t)=>
1{const n=a.get(e);n.text=t,n.version+=1,u(n)}});return{get state(){return o},receive:s,attached:{root:i,get({id:e}){var t;return null!==(t=a.get(e))&&void 0!==t?t:null},subscribe({id:e},t){let r=n.get(e);return null==r&&(r=new Set,n.set(e,r)),r.add(t),()=>{const r=n.get(e);r&&(r.delete(t),0===r.size&&n.delete(e))}}},flush:function(){var e;return null!==(e=r)&&void 0!==e?e:Promise.resolve()},on(e,n){let r=t.get(e);return null==r&&(r=new Set,t.set(e,r)),r.add(n),()=>{const r=t.get(e);r&&(r.delete(n),0===r.size&&t.delete(e))}}};function u(t){var o;return r=null!==(o=r)&&void 0!==o?o:new Promise((t=>{setTimeout((()=>{const o=[...e];r=null,e.clear();for(const e of o){const t=n.get(e.id);if(t)for(const n of t)n(e)}t()}),0)})),e.add(t),r}function c(e){if(a.set(e.id,e),e.kind===ju&&"props"in e){const{props:t={}}=e;Object.keys(t).forEach((e=>{const n=t[e];Gu(n)&&c(n)}))}if("children"in e)for(const t of e.children)c(t)}function l(e){if(a.delete(e.id),e.kind===ju&&"props"in e){const{props:t={}}=e;Object.keys(t).forEach((e=>{const n=t[e];Gu(n)&&l(n)}))}if("children"in e)for(const t of e.children)l(t)}},b2:function(e,t){var n,r;const o=function(e,{isShopPayActive:t,isShopPayExternal:n}){var r;return t?n?e.match(cr):null!==(r=e.match(sr))&&void 0!==r?r:e.match(ur):e.match(ar)}(e.pathname,t);if(!o)return;const{shopId:i,sourceType:a,sourceId:s,route:u,locale:c}=null!==(n=o.groups)&&void 0!==n?n:{};let l;var d;"o"!==a||(d=s)&&/^[a-f0-9]{32}$/i.test(d)||(l=`gid://shopify/Order/${s}`);const f={type:a,id:null!=l?l:s},h=i?{id:i}:void 0,p=null!==(r=e.searchParams.get("locale"))&&void 0!==r?r:void 0;let v;return lr(p)?v=p:lr(c)&&(v=c),{shop:h,source:f,route:`/${null!=u?u:""}`,locale:v,shopPaySimulated:"sim"===f.type&&e.searchParams.has("shop_pay_sim")}},b3:function(e){return function(){var t,n,r=function(){var e=qe;return qe=[],function(){var t=qe;return qe&&e&&(e=e.concat(qe)),qe=e,t}}();try{n=e.apply(void 0,[].slice.call(arguments))}catch(e){throw qe=void 0,e}finally{t=r()}return vt(n),n[Symbol.dispose]=dt((function(){if(t)for(var e=0;e<t.length;e++)t[e].dispose();t=void 0})),n}},b4:function(e){var t=Te((function(){return e()}),[]);return ke((function(){return t[Symbol.dispose]}),[t]),t},b5:function(){return{current:null}},b7:function(e){return{postMessage:(...t)=>e.postMessage(...t),addEventListener:(...t)=>e.addEventListener(...t),removeEventListener:(...t)=>e.removeEventListener(...t),terminate(){e.close()}}},b8:Sr,ba:function(e){let{children:t,router:n,href:o,onClick:i}=e,a=l(e,r);return Kr("a",p(p({href:n.resolve(o).href,onClick:e=>{null==i||i(e),e.defaultPrevented||e.shiftKey||e.ctrlKey||e.metaKey||(e.preventDefault(),n.navigate(o))}},a),{},{children:t}))},bb:function(e,t){return null!=Ga(e,t)},bd:Oo,be:function(e,t){return function(e){var t;const n=null!==(t=Ne($s))&&void 0!==t?t:void 0;ke((()=>{if(null!=n)return n.registerRoutes(e)}),[n,e])}(t),Kr(Du,{routes:t,router:e})},bf:function e(t,n){se(t,n,e)},bg:function(e){return!!e.__k&&(se(null,e),!0)},bh:function(e,t){if(!Ut())try{const n=Pn(e),r=Pn(t);if(!n&&!r)return;const o=new URLSearchParams,i={"content-type":"application/json"};n&&(o.set("_y",n),i[Vn]=n),r&&(o.set("_s",r),i[Jn]=r);const{protocol:a,host:s}=function(){const e=Qt().consentDomain||window.location.host;return{protocol:/^(localhost|127\.0\.0\.1)(:|$)/.test(e)?"http:":"https:",host:e}}(),u=`${a}//${s}/api/${zn}/graphql.json?${o.toString()}`;let c;try{c=fetch(u,{headers:i,body:JSON.stringify({query:Gn,variables:{}}),method:"POST",mode:"cors",credentials:"include"})}catch(ea){c=Promise.reject(ea)}c.then((e=>Yn(e)),(()=>Yn(void 0)))}catch(n){}},c:xo,d:function({id:e,load:t,displayName:n,suspense:r=!0,suspenseName:o,renderLoading:i=tu,renderError:a=ou,useError:s,usePreload:u,usePrefetch:c}){const l=function({id:e,load:t}){let n,r,o=!0;const i=null==e?void 0:e(),a=new Set;return{get id(){return i},get resolved(){return n},resolve:(s=f((function*(e){var t;const n=null===(t=null==e?void 0:e.cacheErrors)||void 0===t||t;return r?o||(o=n):(o=n,r=function(){return u.apply(this,arguments)}()),r})),function(e){return s.apply(this,arguments)}),subscribe:e=>(a.add(e),()=>{a.delete(e)})};var s;function u(){return u=f((function*(){let e=!1;try{return n=function(e){if(null==e)return null;const t="object"==typeof e&&"default"in e?e.default:e;return null==t?null:t}(yield t()),e=!0,c(),n}catch(i){const e=i instanceof Error?i:void 0;return o&&(n=e,c()),e}finally{e||(r=void 0,o=!0)}})),u.apply(this,arguments)}function c(){for(const e of a)e(n)}}({id:e,load:t}),d=null!=n?n:function(e){var t;if(!e)return nu;const n=ru.exec(e);return null!==(t=null==n?void 0:n[1])&&void 0!==t?t:nu}(l.id);function h(e){const{resolved:t,load:n,loading:o,error:u}=Zs(l,{scripts:"immediate",styles:"immediate",suspense:r});if(null==s||s(u,e),u)return Kr(j,{children:a(u)});let c=null;const d=t?Kr(t,p({},e)):null;return r?d:(c=o?i(e):d,Kr(j,{children:[c,o&&Kr(iu,{load:n})]}))}function v(e){var t;if(!r)return Kr(h,p({},e));const n=null!==(t=i(e))&&void 0!==t?t:null,a="function"==typeof o?o(e):o;return void 0===a?Kr(Sr,{fallback:n,children:Kr(h,p({},e))}):Kr(Xs,{name:a,fallback:n,children:Kr(h,p({},e))})}function m(e){const{load:t}=Zs(l,{styles:"eventually",scripts:"eventually",cacheErrors:!1}),n=null==u?void 0:u(e);return De((()=>{var e;return t(),null!==(e=null==n?void 0:n())&&void 0!==e?e:eu}),[t,n])}function _(e){const{load:t}=Zs(l,{styles:"soon",scripts:"soon",cacheErrors:!1}),n=null==c?void 0:c(e);return De((()=>{var e;return t(),null!==(e=null==n?void 0:n())&&void 0!==e?e:eu}),[t,n])}function y(e){const t=m(e);return ke((()=>t()),[t]),null}function g(e){const t=_(e);return ke((()=>t()),[t]),null}h.displayName=`Suspender(${d})`,v.displayName=`Async(${d})`,y.displayName=`Async.Preload(${n})`,g.displayName=`Async.Prefetch(${n})`;const w=v;return Reflect.defineProperty(w,"load",{value:()=>l.resolve(),writable:!1}),Reflect.defineProperty(w,"preload",{value:()=>l.resolve({cacheErrors:!1}),writable:!1}),Reflect.defineProperty(w,"Preload",{value:y,writable:!1}),Reflect.defineProperty(w,"Prefetch",{value:g,writable:!1}),Reflect.defineProperty(w,"usePreload",{value:m,writable:!1}),Reflect.defineProperty(w,"usePrefetch",{value:_,writable:!1}),Reflect.defineProperty(w,"useLoadState",{value:function(){const e=hr(l.subscribe,(()=>l.resolved));return e instanceof Error?"failed":null==e?"loading":"loaded"},writable:!1}),w},e:At,f:We,g:function(e,t){var n=Pe(e);return n.current=e,ht.__$f|=4,Te((function(){return it((function(){return n.current()}),t)}),[])},h:ke,i:Gs,j:lt,k:oo,l:Se,m:function(e){var t=At(e);return t.name="useLiveSignal",t.peek()!==e&&(t.value=e),t},n:Be,o:Qe,p:function(e,t){var n=Pe(e);n.current=e,ke((function(){return lt((function(){return this.N=xt,n.current()}),t)}),[])},q:De,r:function(e){return eo.apply(this,arguments)},s:io,u:Kr,x:Ne,y:et});var h,_,y,g,w,E,b,A,S,C,k,x,P,T,D,N,$={},O=[],M=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,R=Array.isArray;function I(e,t){for(var n in t)e[n]=t[n];return e}function L(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function F(e,t,n){var r,o,i,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?h.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return U(e,a,r,o,null)}function U(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++y:o,__i:-1,__u:0};return null==o&&null!=_.vnode&&_.vnode(i),i}function j(e){return e.children}function B(e,t){this.props=e,this.context=t}function q(e,t){if(null==t)return e.__?q(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?q(e):null}function H(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,r=[],o=[],i=I({},t);i.__v=t.__v+1,_.vnode&&_.vnode(i),ee(e.__P,i,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,r,null==n?q(t):n,!!(32&t.__u),o),i.__v=t.__v,i.__.__k[i.__i]=i,ne(r,i,o),t.__e=t.__=null,i.__e!=n&&W(i)}}function W(e){if(null!=(e=e.__)&&null!=e.__c)return e.__e=e.__c.base=null,e.__k.some((function(t){if(null!=t&&null!=t.__e)return e.__e=e.__c.base=t.__e})),W(e)}function K(e){(!e.__d&&(e.__d=!0)&&w.push(e)&&!G.__r++||E!=_.debounceRendering)&&((E=_.debounceRendering)||b)(G)}function G(){try{for(var e,t=1;w.length;)w.length>t&&w.sort(A),e=w.shift(),t=w.length,H(e)}finally{w.length=G.__r=0}}function z(e,t,n,r,o,i,a,s,u,c,l){var d,f,h,p,v,m,_,y=r&&r.__k||O,g=t.length;for(u=function(e,t,n,r,o){var i,a,s,u,c,l=n.length,d=l,f=0;for(e.__k=new Array(o),i=0;i<o;i++)null!=(a=t[i])&&"boolean"!=typeof a&&"function"!=typeof a?("string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?a=e.__k[i]=U(null,a,null,null,null):R(a)?a=e.__k[i]=U(j,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?a=e.__k[i]=U(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):e.__k[i]=a,u=i+f,a.__=e,a.__b=e.__b+1,s=null,-1!=(c=a.__i=Y(a,n,u,d))&&(d--,(s=n[c])&&(s.__u|=2)),null==s||null==s.__v?(-1==c&&(o>
vendor: 4,252 bytes, line 1
1l?f--:o<l&&f++),"function"!=typeof a.type&&(a.__u|=4)):c!=u&&(c==u-1?f--:c==u+1?f++:(c>u?f--:f++,a.__u|=4))):e.__k[i]=null;if(d)for(i=0;i<l;i++)null!=(s=n[i])&&!(2&s.__u)&&(s.__e==r&&(r=q(s)),ie(s,s));return r}(n,t,y,u,g),d=0;d<g;d++)null!=(h=n.__k[d])&&(f=-1!=h.__i&&y[h.__i]||$,h.__i=d,m=ee(e,h,f,o,i,a,s,u,c,l),p=h.__e,h.ref&&f.ref!=h.ref&&(f.ref&&oe(f.ref,null,h),l.push(h.ref,h.__c||p,h)),null==v&&null!=p&&(v=p),(_=!!(4&h.__u))||f.__k===h.__k?(u=V(h,u,e,_),_&&f.__e&&(f.__e=null)):"function"==typeof h.type&&void 0!==m?u=m:p&&(u=p.nextSibling),h.__u&=-7);return n.__e=v,u}function V(e,t,n,r){var o,i;if("function"==typeof e.type){for(o=e.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=e,t=V(o[i],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=q(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function J(e,t){return t=t||[],null==e||"boolean"==typeof e||(R(e)?e.some((function(e){J(e,t)})):t.push(e)),t}function Y(e,t,n,r){var o,i,a,s=e.key,u=e.type,c=t[n],l=null!=c&&!(2&c.__u);if(null===c&&null==s||l&&s==c.key&&u==c.type)return n;if(r>(l?1:0))for(o=n-1,i=n+1;o>=0||i<t.length;)if(null!=(c=t[a=o>=0?o--:i++])&&!(2&c.__u)&&s==c.key&&u==c.type)return a;return-1}function Z(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||M.test(t)?n:n+"px"}function X(e,t,n,r,o){var i,a;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Z(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||Z(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])i=t!=(t=t.replace(x,"$1")),a=t.toLowerCase(),t=a in e||"onFocusOut"==t||"onFocusIn"==t?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n[k]=r[k]:(n[k]=P,e.addEventListener(t,i?D:T,i)):e.removeEventListener(t,i?D:T,i);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function Q(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t[C])t[C]=P++;else if(t[C]<n[k])return;return n(_.event?_.event(t):t)}}}function ee(e,t,n,r,o,i,a,s,u,c){var l,d,f,p,v,m,y,g,w,E,b,A,S,C,k,x,P=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(u=!!(32&n.__u),i=[s=t.__e=n.__e]),(l=_.__b)&&l(t);e:if("function"==typeof P){d=a.length;try{if(w=t.props,E=P.prototype&&P.prototype.render,b=(l=P.contextType)&&r[l.__c],A=l?b?b.props.value:l.__:r,n.__c?g=(f=t.__c=n.__c).__=f.__E:(E?t.__c=f=new P(w,A):(t.__c=f=new B(w,A),f.constructor=P,f.render=ae),b&&b.sub(f),f.state||(f.state={}),f.__n=r,p=f.__d=!0,f.__h=[],f._sb=[]),E&&null==f.__s&&(f.__s=f.state),E&&null!=P.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=I({},f.__s)),I(f.__s,P.getDerivedStateFromProps(w,f.__s))),v=f.props,m=f.state,f.__v=t,p)E&&null==P.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),E&&null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(E&&null==P.getDerivedStateFromProps&&w!==v&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(w,A),t.__v==n.__v||!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(w,f.__s,A)){t.__v!=n.__v&&(f.props=w,f.state=f.__s,f.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some((function(e){e&&(e.__=t)})),O.push.apply(f.__h,f._sb),f._sb=[],f.__h.length&&a.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(w,f.__s,A),E&&null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(v,m,y)}))}if(f.context=A,f.props=w,f.__P=e,f.__e=!1,S=_.__r,C=0,E)f.state=f.__s,f.__d=!1,S&&S(t),l=f.render(f.props,f.state,f.context),O.push.apply(f.__h,f._sb),f._sb=[];else do{f.__d=!1,S&&S(t),l=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++C<25);f.state=f.__s,null!=f.getChildContext&&(r=I(I({},r),f.getChildContext())),E&&!p&&null!=f.getSnapshotBeforeUpdate&&(y=f.getSnapshotBeforeUpdate(v,m)),k=null!=l&&l.type===j&&null==l.key?re(l.props.children):l,s=z(e,R(k)?k:[k],t,n,r,o,i,a,s,u,c),f.base
vendor: 4,808 bytes, line 1
1=t.__e,t.__u&=-161,f.__h.length&&a.push(f),g&&(f.__E=f.__=null)}catch(e){if(a.length=d,t.__v=null,u||null!=i){if(e.then){for(t.__u|=u?160:128;s&&8==s.nodeType&&s.nextSibling;)s=s.nextSibling;null!=i&&(i[i.indexOf(s)]=null),t.__e=s}else if(null!=i)for(x=i.length;x--;)L(i[x])}else t.__e=n.__e;null==t.__k&&(t.__k=n.__k||[]),e.then||te(t),_.__e(e,t,n)}}else null==i&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=function(e,t,n,r,o,i,a,s,u){var c,l,d,f,p,v,m,y=n.props||$,g=t.props,w=t.type;if("svg"==w?o="http://www.w3.org/2000/svg":"math"==w?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=i)for(c=0;c<i.length;c++)if((p=i[c])&&"setAttribute"in p==!!w&&(w?p.localName==w:3==p.nodeType)){e=p,i[c]=null;break}if(null==e){if(null==w)return document.createTextNode(g);e=document.createElementNS(o,w,g.is&&g),s&&(_.__m&&_.__m(t,i),s=!1),i=null}if(null==w)y===g||s&&e.data==g||(e.data=g);else{if(i="textarea"==w&&null!=g.defaultValue?null:i&&h.call(e.childNodes),!s&&null!=i)for(y={},c=0;c<e.attributes.length;c++)y[(p=e.attributes[c]).name]=p.value;for(c in y)p=y[c],"dangerouslySetInnerHTML"==c?d=p:"children"==c||c in g||"value"==c&&"defaultValue"in g||"checked"==c&&"defaultChecked"in g||X(e,c,null,p,o);for(c in g)p=g[c],"children"==c?f=p:"dangerouslySetInnerHTML"==c?l=p:"value"==c?v=p:"checked"==c?m=p:s&&"function"!=typeof p||y[c]===p||X(e,c,p,y[c],o);if(l)s||d&&(l.__html==d.__html||l.__html==e.innerHTML)||(e.innerHTML=l.__html),t.__k=[];else if(d&&(e.innerHTML=""),z("template"==t.type?e.content:e,R(f)?f:[f],t,n,r,"foreignObject"==w?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&q(n,0),s,u),null!=i)for(c=i.length;c--;)L(i[c]);s&&"textarea"!=w||(c="value","progress"==w&&null==v?e.removeAttribute("value"):null!=v&&(v!==e[c]||"progress"==w&&!v||"option"==w&&v!=y[c])&&X(e,c,v,y[c],o),c="checked",null!=m&&m!=e[c]&&X(e,c,m,y[c],o))}return e}(n.__e,t,n,r,o,i,a,u,c);return(l=_.diffed)&&l(t),128&t.__u?void 0:s}function te(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(te))}function ne(e,t,n){for(var r=0;r<n.length;r++)oe(n[r],n[++r],n[++r]);_.__c&&_.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){_.__e(e,t.__v)}}))}function re(e){return"object"!=typeof e||null==e||e.__b>0?e:R(e)?e.map(re):void 0!==e.constructor?null:I({},e)}function oe(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(e){_.__e(e,n)}}function ie(e,t,n){var r,o;if(_.unmount&&_.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||oe(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){_.__e(e,t)}r.base=r.__P=r.__n=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&ie(r[o],t,n||"function"!=typeof e.type);n||L(e.__e),e.__c=e.__=e.__e=void 0}function ae(e,t,n){return this.constructor(e,n)}function se(e,t,n){var r,o,i,a;t==document&&(t=document.documentElement),_.__&&_.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],a=[],ee(t,e=(!r&&n||t).__k=F(j,null,[e]),o||$,$,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?h.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),ne(i,e,a),e.props.children=null}function ue(e,t,n){var r,o,i,a,s=I({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=void 0===t[i]&&null!=a?a[i]:t[i];return arguments.length>2&&(s.children=arguments.length>3?h.call(arguments,2):n),U(e.type,s,r||e.key,o||e.ref,null)}function ce(e){function t(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach((function(e){e.__e=!0,K(e)}))},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+N++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}d({b6:_,ae:g}),h=O.slice,d("b6",_={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}}),y=0,d("ae",g=function(e){return null!=e&&void 0===e.constructor}),B.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=I({},this.state),"function"==typeof e&&(e=e(I({},n),this.props)),e&&I(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),K(this))},B.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),K(this))},B.prototype.render=j,w=[],b="function"==typeof Promise?Promise.prototype.then.bind(Prom
1ise.resolve()):setTimeout,A=function(e,t){return e.__v.__b-t.__v.__b},G.__r=0,S=Math.random().toString(8),C="__d"+S,k="__a"+S,x=/(PointerCapture)$|Capture$/i,P=0,T=Q(!1),D=Q(!0),N=0;var le,de,fe,he,pe=0,ve=[],me=_,_e=me.__b,ye=me.__r,ge=me.diffed,we=me.__c,Ee=me.unmount,be=me.__;function Ae(e,t){me.__h&&me.__h(de,e,pe||t),pe=0;var n=de.__H||(de.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Se(e){return pe=1,Ce(Fe,e)}function Ce(e,t,n){var r=Ae(le++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Fe(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=de,!de.__f)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=!1,a=r.__c.props!==e;if(r.__c.__H.__.some((function(e){if(e.__N){o=!0;var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),i){var s=i.call(this,e,t,n);return o?s||a:s}return!o||a};de.__f=!0;var i=de.shouldComponentUpdate,a=de.componentWillUpdate;de.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,o(e,t,n),i=r}a&&a.call(this,e,t,n)},de.shouldComponentUpdate=o}return r.__N||r.__}function ke(e,t){var n=Ae(le++,3);!me.__s&&Le(n.__H,t)&&(n.__=e,n.u=t,de.__H.__h.push(n))}function xe(e,t){var n=Ae(le++,4);!me.__s&&Le(n.__H,t)&&(n.__=e,n.u=t,de.__h.push(n))}function Pe(e){return pe=5,Te((function(){return{current:e}}),[])}function Te(e,t){var n=Ae(le++,7);return Le(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function De(e,t){return pe=8,Te((function(){return e}),t)}function Ne(e){var t=de.context[e.__c],n=Ae(le++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(de)),t.props.value):e.__}function $e(){for(var e;e=ve.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(Re),t.__h.some(Ie),t.__h=[]}catch(qe){t.__h=[],me.__e(qe,e.__v)}}}me.__b=function(e){de=null,_e&&_e(e)},me.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),be&&be(e,t)},me.__r=function(e){ye&&ye(e),le=0;var t=(de=e.__c).__H;t&&(fe===de?(t.__h=[],de.__h=[],t.__.some((function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0}))):(t.__h.some(Re),t.__h.some(Ie),t.__h=[],le=0)),fe=de},me.diffed=function(e){ge&&ge(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ve.push(t)&&he===me.requestAnimationFrame||((he=me.requestAnimationFrame)||Me)($e)),t.__H.__.some((function(e){e.u&&(e.__H=e.u,e.u=void 0)}))),fe=de=null},me.__c=function(e,t){t.some((function(e){try{e.__h.some(Re),e.__h=e.__h.filter((function(e){return!e.__||Ie(e)}))}catch(qe){t.some((function(e){e.__h&&(e.__h=[])})),t=[],me.__e(qe,e.__v)}})),we&&we(e,t)},me.unmount=function(e){Ee&&Ee(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some((function(e){try{Re(e)}catch(e){t=e}})),n.__H=void 0,t&&me.__e(t,n.__v))};var Oe="function"==typeof requestAnimationFrame;function Me(e){var t,n=function(){clearTimeout(r),Oe&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Oe&&(t=requestAnimationFrame(n))}function Re(e){var t=de,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),de=t}function Ie(e){var t=de;e.__c=e.__(),de=t}function Le(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Fe(e,t){return"function"==typeof t?t(e):t}var Ue=Symbol.for("preact-signals");function je(){if(Ge>1)Ge--;else{var e,t=!1;for(function(){var e=Ye;for(Ye=void 0;void 0!==e;){var t=e.S;if(t.v===e.v)for(var n=t.t;void 0!==n;n=n.x)n.i===e.i&&(n.i=t.i);e=e.o}}();void 0!==Ke;){var n=Ke;for(Ke=void 0,ze++;void 0!==n;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&tt(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(ze=0,Ge--,t)throw e}}function Be(e){if(Ge>0)return e();Je=++Ve,Ge++;try{return e()}finally{je()}}var qe,He=void 0;function We(e){var t=He,n=qe;He=void 0,qe=void 0;try{return e()}finally{He=t,qe=n}}var Ke=void 0,Ge=0,ze=0,Ve=0,Je=0,Ye=void 0,Ze=0;function Xe(e){if(void 0!==He){var t=e.n;if(void 0===t||t.t!==He)return t={i:0,S:e,p:He.s,n:void 0,t:He,e:void 0,x:void 0,r:t},void 0!==He.s&&(He.s.n=t),He.s=t,e.n=t,32&He.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=He.s,t.n=void 0,He.s.n=t,He.s=t),t}}function Qe(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function et(e,t){return new Qe(e,t)}function tt(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function nt(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function rt(e){for(var t=e.s,n=void 0;void 0!==t;){var r=t.p;-1===t.i?(t.S.U(t),void 0!==r&&(r.n=t.n),void 0!==t.n&&(t.n.p=r)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=r}e.s=n}function ot(e,t){Qe.call(this,void 0,t),this.x=e,this.s=void 0,this.g=Ze-1,this.f=4}function it(e,t){return new ot(e,t)}function at(e){var t=e.m;if(e.m=void 0,"function"==typeof t){Ge++;var n=He;He=void 0;try{t()}catch(je){throw e.f&=-2,e.f|=8,st(e),je}finally{He=n,je()}}}function st(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,at(e)}function ut(e){if(He!==this)throw new Error("Out-of-order effect");
1rt(this),He=e,this.f&=-2,8&this.f&&st(this),je()}function ct(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name,qe&&qe.push(this)}function lt(e,t){var n=new ct(e,t);try{n.c()}catch(e){throw n.d(),e}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}function dt(e){return function(){var t=arguments,n=this;return Be((function(){return We((function(){return e.apply(n,[].slice.call(t))}))}))}}Qe.prototype.brand=Ue,Qe.prototype.h=function(){return!0},Qe.prototype.S=function(e){var t=this,n=this.t;n!==e&&void 0===e.e&&(e.x=n,this.t=e,void 0!==n?n.e=e:We((function(){var e;null==(e=t.W)||e.call(t)})))},Qe.prototype.U=function(e){var t=this;if(void 0!==this.t){var n=e.e,r=e.x;void 0!==n&&(n.x=r,e.e=void 0),void 0!==r&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,void 0===r&&We((function(){var e;null==(e=t.Z)||e.call(t)})))}},Qe.prototype.subscribe=function(e){var t=this;return lt((function(){var n=t.value;We((function(){return e(n)}))}),{name:"sub"})},Qe.prototype.valueOf=function(){return this.value},Qe.prototype.toString=function(){return this.value+""},Qe.prototype.toJSON=function(){return this.value},Qe.prototype.peek=function(){var e=this;return We((function(){return e.value}))},Object.defineProperty(Qe.prototype,"value",{get:function(){var e=Xe(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(ze>100)throw new Error("Cycle detected");!function(e){0!==Ge&&0===ze&&e.l!==Je&&(e.l=Je,Ye={S:e,v:e.v,i:e.i,o:Ye})}(this),this.v=e,this.i++,Ze++,Ge++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{je()}}}}),ot.prototype=new Qe,ot.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===Ze)return!0;if(this.g=Ze,this.f|=1,this.i>0&&!tt(this))return this.f&=-2,!0;var e=He;try{nt(this),He=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return He=e,rt(this),this.f&=-2,!0},ot.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}Qe.prototype.S.call(this,e)},ot.prototype.U=function(e){if(void 0!==this.t&&(Qe.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},ot.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(ot.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Xe(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),ct.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.m=t)}finally{e()}},ct.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,at(this),nt(this),Ge++;var e=He;return He=this,ut.bind(this,e)},ct.prototype.N=function(){2&this.f||(this.f|=2,this.u=Ke,Ke=this)},ct.prototype.d=function(){this.f|=8,1&this.f||st(this)},ct.prototype.dispose=function(){this.d()};var ft,ht,pt,vt=function(e){for(var t in e){var n=e[t];"function"==typeof n?e[t]=dt(n):"object"!=typeof n||null===n||"brand"in n||vt(n)}},mt="undefined"!=typeof window&&!!window.__PREACT_SIGNALS_DEVTOOLS__,_t=[],yt=[];function gt(e,t){_[e]=t.bind(null,_[e]||function(){})}function wt(e){if(pt){var t=pt;pt=void 0,t()}pt=e&&e.S()}function Et(e){var t=this,n=e.data,r=At(n);r.name="ReactiveDom",r.value=n;var o=Te((function(){for(var e=t,n=t.__v;n=n.__;)if(n.__c){n.__c.__$f|=4;break}var o=it((function(){var e=r.value.value;return 0===e?0:!0===e?"":e||""})),i=it((function(){return!Array.isArray(o.value)&&!g(o.value)})),a=lt((function(){if(this.N=Tt,i.value){var t=o.value;e.__v&&e.__v.__e&&3===e.__v.__e.nodeType&&(e.__v.__e.data=t)}})),s=t.__$u.d;return t.__$u.d=function(){a(),s.call(this)},[i,o]}),[]),i=o[0],a=o[1];return i.value?a.peek():a.value}function bt(e,t,n,r){var o=t in e&&void 0===e.ownerSVGElement,i=et(n);return{o:function(e,t){i.value=e,r=t},d:lt((function(){this.N=Tt;var n=i.value.value;r[t]!==n&&(r[t]=n,o?e[t]=n:null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}))}}function At(e,t){return Te((function(){return et(e,t)}),[])}lt((function(){ft=this.N}))(),Et.displayName="ReactiveTextNode",Object.defineProperties(Qe.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Et},props:{configurable:!0,get:function(){var e=this;return{data:{get value(){return e.value}}}}},__b:{configurable:!0,value:1}}),gt("__b",(function(e,t){if("string"==typeof t.type){var n,r=t.props;for(var o in r)if("children"!==o){var i=r[o];i instanceof Qe&&(n||(t.__np=n={}),n[o]=i,r[o]=i.peek())}}e(t)})),gt("__r",(function(e,t){if(e(t),t.type!==j){wt();var n,r=t.__c;r&&(r.__$f&=-2,void 0===(n=r.__$u)&&(r.__$u=n=function(e,t){var n;return lt((function(){n=this}),{name:t}),n.c=e,n}((function(){var e;mt&&(null==(e=n.y)||e.call(n)),r.__$f|=1,r.setState({})}
1),"function"==typeof t.type?t.type.displayName||t.type.name:""))),ht=r,wt(n)}})),gt("__e",(function(e,t,n,r){wt(),ht=void 0,e(t,n,r)})),gt("diffed",(function(e,t){var n;if(wt(),ht=void 0,"string"==typeof t.type&&(n=t.__e)){var r=t.__np,o=t.props,i=n.U;if(i)for(var a in i){var s=i[a];void 0===s||r&&a in r||(s.d(),i[a]=void 0)}if(r)for(var u in i||(i={},n.U=i),r){var c=i[u],l=r[u];void 0===c?(c=bt(n,u,l,o),i[u]=c):c.o(l,o)}}e(t)})),gt("unmount",(function(e,t){if("string"==typeof t.type){var n=t.__e;if(n){var r=n.U;if(r)for(var o in n.U=void 0,r){var i=r[o];i&&i.d()}}var a=t.__np;if(a){var s=t.props;for(var u in a)s[u]=a[u]}t.__np=void 0}else{var c=t.__c;if(c){var l=c.__$u;l&&(c.__$u=void 0,l.d())}}e(t)})),gt("__h",(function(e,t,n,r){r<3&&(t.__$f|=2),e(t,n,r)})),B.prototype.shouldComponentUpdate=function(e,t){if(this.__R)return!0;var n=this.__$u,r=n&&void 0!==n.s;for(var o in t)return!0;if(this.__f||"boolean"==typeof this.u&&!0===this.u){var i=2&this.__$f;if(!(r||i||4&this.__$f))return!0;if(1&this.__$f)return!0}else{if(!(r||4&this.__$f))return!0;if(3&this.__$f)return!0}for(var a in e)if("__source"!==a&&e[a]!==this.props[a])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};var St="undefined"==typeof requestAnimationFrame?setTimeout:function(e){var t=function(){clearTimeout(n),cancelAnimationFrame(r),e()},n=setTimeout(t,35),r=requestAnimationFrame(t)},Ct=function(e){queueMicrotask((function(){queueMicrotask(e)}))};function kt(){Be((function(){for(var e;e=_t.shift();)ft.call(e)}))}function xt(){1===_t.push(this)&&(_.requestAnimationFrame||St)(kt)}function Pt(){Be((function(){for(var e;e=yt.shift();)ft.call(e)}))}function Tt(){1===yt.push(this)&&(_.requestAnimationFrame||Ct)(Pt)}class Dt extends TypeError{constructor(e){super(e),this.name="ConsentValidationError",Object.setPrototypeOf(this,Dt.prototype)}}const Nt=d("aD",{TRACKING_ACCEPTED:"trackingConsentAccepted",TRACKING_DECLINED:"trackingConsentDeclined",MARKETING_ACCEPTED:"firstPartyMarketingConsentAccepted",SALE_OF_DATA_ACCEPTED:"thirdPartyMarketingConsentAccepted",ANALYTICS_ACCEPTED:"analyticsConsentAccepted",PREFERENCES_ACCEPTED:"preferencesConsentAccepted",MARKETING_DECLINED:"firstPartyMarketingConsentDeclined",SALE_OF_DATA_DECLINED:"thirdPartyMarketingConsentDeclined",ANALYTICS_DECLINED:"analyticsConsentDeclined",PREFERENCES_DECLINED:"preferencesConsentDeclined",CONSENT_COLLECTED:"visitorConsentCollected"}),$t="2.1",Ot="3",Mt={ACCEPTED:"yes",DECLINED:"no",NO_VALUE:""},Rt={NO_VALUE:"",ACCEPTED:"1",DECLINED:"0"},It={PREFERENCES:"p",ANALYTICS:"a",MARKETING:"m",SALE_OF_DATA:"t"},Lt={MARKETING:"m",ANALYTICS:"a",PREFERENCES:"p",SALE_OF_DATA:"s"},Ft={MARKETING:"marketing",ANALYTICS:"analytics",PREFERENCES:"preferences",SALE_OF_DATA:"sale_of_data",EMAIL:"email"},Ut=()=>"undefined"==typeof window,jt=()=>"undefined"!=typeof __CtaTestEnv__&&"true"===__CtaTestEnv__;class Bt{}Bt.warn=e=>{jt()||console.warn(e)},Bt.error=e=>{jt()||console.error(e)},Bt.info=e=>{jt()||console.info(e)},Bt.debug=e=>{jt()||console.debug(e)},Bt.trace=e=>{jt()||console.trace(e)};const qt=Bt;function Ht(e,t){if(null===e)return"null";if(Array.isArray(e))return`[${e.map((e=>Ht(e,!0))).join(",")}]`;if("object"==typeof e){let n=[];for(const t in e)e.hasOwnProperty(t)&&void 0!==e[t]&&""!==e[t]&&n.push(`${t}:${Ht(e[t],!0)}`);const r=n.join(",");return t?`{${r}}`:r}return"string"==typeof e?JSON.stringify(e):`${e}`}function Wt(e,...t){if(0===t.length)return e;const n=t[0];return e[n]||(e[n]={}),Wt(e[n],...t.slice(1))}function Kt(e){try{return decodeURIComponent(e)}catch(ea){return""}}function Gt(){if(!Ut())return window}function zt(){try{return"undefined"!=typeof PerformanceServerTiming}catch(e){return!1}}const Vt="_tracking_consent";function Jt(e,t=!1){const n=function(){try{return document.cookie}catch(e){return!1}}()?document.cookie.split("; "):[];for(let r=0;r<n.length;r++){const[t,o]=n[r].split("=");if(e===Kt(t))return Kt(o)}if(t&&"_tracking_consent"===e&&!window.localStorage.getItem("tracking_consent_fetched")){if(jt())return;return console.debug("_tracking_consent missing"),function(e="/"){const t=new XMLHttpRequest;t.open("HEAD",e,!1),t.withCredentials=!0,t.send()}(),window.localStorage.setItem("tracking_consent_fetched","true"),Jt(e,!1)}}function Yt(e){return e===encodeURIComponent(Kt(e))}function Zt(e,t,n,r){if(!Yt(r))throw new TypeError("Cookie value is not correctly URI encoded.");if(!Yt(e))throw new TypeError("Cookie name is not correctly URI encoded.");let o=`${e}=${r}`;o+=";
1 path=/",t&&(o+=`; domain=${t}`),o+=`; expires=${new Date((new Date).getTime()+n).toUTCString()}`,document.cookie=o}let Xt=class e{constructor(){if(e.instance)return e.instance;e.instance=this}produce(e,t){if(!Ut())try{const n={schema_id:"customer_privacy_api_events/2.0",payload:{shop_domain:window.location.host,method_name:e,call_details:t||null}},r={accept:"*/*","accept-language":"en-GB,en-US;q=0.9,en;q=0.8","content-type":"application/json; charset=utf-8","x-monorail-edge-event-created-at-ms":String(Date.now()),"x-monorail-edge-event-sent-at-ms":String(Date.now())};if(!window.location.host.endsWith("spin.dev"))return fetch("https://monorail-edge.shopifysvc.com/v1/produce",{headers:r,body:JSON.stringify(n),method:"POST",mode:"cors",credentials:"omit"}).catch((()=>{}));console.log("Monorail event from consent API:",r,n)}catch(ea){}}};function Qt(){var e,t;return Ut()?{}:(null===(e=window.Shopify)||void 0===e||null===(t=e.customerPrivacy)||void 0===t?void 0:t.config)||{}}Xt.instance=void 0;const en="_cmp";function tn(e=en){let t;if(t=an()&&nn((()=>function(e=en){var t,n;const r=null===(t=performance)||void 0===t||null===(n=t.getEntriesByType)||void 0===n?void 0:n.call(t,"resource");let o=rn[e];for(let i=r.length-1;i>=0;i--){let t=on(r[i],e);if(t){o=t;break}}return rn[e]=o,o}(e)))||nn((()=>function(e=en){var t,n;if(!sn()&&!function(){try{const e=performance.getEntriesByType("navigation")[0].serverTiming;return!!e&&0!=e.length}catch(e){return!1}}()){const e=new Xt;let t="failed_to_fetch";try{t=navigator.userAgent}catch(i){}e.produce("navigationServerTiming",JSON.stringify({failed:!0,userAgent:t,apiSupported:zt()})),sn()||(Wt(Gt(),"Shopify","customerPrivacy").serverTimingSupportVerified=!0)}const r=null===(t=performance)||void 0===t||null===(n=t.getEntriesByType)||void 0===n?void 0:n.call(t,"navigation");if(!r)return;const o=r.map((t=>on(t,e))).find((e=>e));if(o&&e===en)try{sessionStorage.setItem("consentHeader",o)}catch(a){}return o}(e))),!t){if(e!==en)return;let t;try{t=sessionStorage.getItem("consentHeader")}catch(n){}return t||void 0}try{t=decodeURIComponent(t)}catch(r){}return t}function nn(e){try{return e()}catch(t){return}}const rn={};function on(e,t=en){var n,r;if(e)return null===(n=e.serverTiming)||void 0===n||null===(r=n.find((e=>e.name==t)))||void 0===r?void 0:r.description}function an(){var e,t;const n=Gt();return!0===(null==n||null===(e=n.Shopify)||void 0===e||null===(t=e.customerPrivacy)||void 0===t?void 0:t.backendConsentEnabled)||!0===Qt().asyncVisitorState}function sn(){var e,t;const n=Gt();return null==n||null===(e=n.Shopify)||void 0===e||null===(t=e.customerPrivacy)||void 0===t?void 0:t.serverTimingSupportVerified}const un="_cs";let cn;function ln(){if(Ut())return cn;{var e,t;const n=(null===(e=window.Shopify)||void 0===e||null===(t=e.customerPrivacy)||void 0===t?void 0:t.injectedConsent)||Qt().injectedConsent;return n?Kt(n):void 0}}function dn(e,t){if(!Ut())try{document.dispatchEvent(new CustomEvent(e,{detail:t||{}}))}catch(ea){console.error(`[Shopify Customer Privacy] Error in event listener for "${e}":`,ea)}}function fn(e){!function(e){const t=function(){var e;if(!Ut())return null===(e=window.Shopify)||void 0===e?void 0:e.customerPrivacy}();t&&(t.consentStatus=e)}("loaded");const t=e[It.MARKETING],n=e[It.SALE_OF_DATA],r=e[It.ANALYTICS],o=e[It.PREFERENCES];!0===t?dn(Nt.MARKETING_ACCEPTED):!1===t&&dn(Nt.MARKETING_DECLINED),!0===n?dn(Nt.SALE_OF_DATA_ACCEPTED):!1===n&&dn(Nt.SALE_OF_DATA_DECLINED),!0===r?dn(Nt.ANALYTICS_ACCEPTED):!1===r&&dn(Nt.ANALYTICS_DECLINED),!0===o?dn(Nt.PREFERENCES_ACCEPTED):!1===o&&dn(Nt.PREFERENCES_DECLINED);const i=function(e){return{marketingAllowed:e[It.MARKETING],saleOfDataAllowed:e[It.SALE_OF_DATA],analyticsAllowed:e[It.ANALYTICS],preferencesAllowed:e[It.PREFERENCES],firstPartyMarketingAllowed:e[It.MARKETING],thirdPartyMarketingAllowed:e[It.SALE_OF_DATA]}}(e);dn(Nt.CONSENT_COLLECTED,i);const a=[r,o,t,n];a.every((e=>!0===e))&&dn(Nt.TRACKING_ACCEPTED),a.every((e=>!1===e))&&dn(Nt.TRACKING_DECLINED)}function hn(){let e;if(e=Ut()?ln():function(){var e,t;const n=null===(e=window.Shopify)||void 0===e||null===(t=e.customerPrivacy)||void 0===t?void 0:t.cachedConsent;return n?Kt(n):void 0}()||ln()||new URLSearchParams(window.location.search).get(un)||Jt(Vt)||tn(),void 0!==e)return function(e){if("%"==e.slice(0,1))try{e=decodeURIComponent(e)}catch(n){}const t=e.slice(0,1);return"{"==t?function(e){var t;let n;try{n=JSON.parse(e)}catch(r){return}if(n.v===$t&&null!==(t=n.con)&&void 0!==t&&t.CMP)return n}(e):"3"==t?function(e){const t=e.slice(1).split("_"),[n,r,o,i,a]=t;let s,u;try{s=t[5]?JSON.parse(t.slice(5).join("_")):void 0}catch(d){}if(a){const e=a.replace(/\*/g,"/").replace(/-/g,"+"),t=atob(e);let n="";for(let r=0;r<t.length;r++){const e=t.charCodeAt(r).toString(16);n+=1===e.length?"0"+e:e}u=[8,13,18,23].reduce(((e,t)=>e.slice(0,t)+"-"+e.slice(t)),n)}function c(e){const t=n.split(".")[0];return t.includes(e.toLowerCase())?Rt.DECLINED:t.includes(e.toUpperCase())?Rt.ACCEPTED:Rt.NO_VALUE}function l(e){return n.includes(e.replace("t","s").toUpperCase())}return{v:Ot,con:{CMP:{[Lt.ANALYTICS]:c(Lt.ANALYTICS),[Lt.PREFERENCES]:c(Lt.PREFERENCES),[Lt.MARKETING]:c(Lt.MARKETING),[Lt.SALE_OF_DATA]:c(Lt.SALE_OF_DATA)}},region:r||"",cus:s,purposes:{[It.ANALYTICS]:l(It.ANALYTICS),[It.PREFERENCES]:l(It.PREFERENCES),[It.MARKETING]:l(It.MARKETING),[It.SALE_OF_DATA]:l(It.SALE_OF_DATA)},sale_of_data_region:"t"==i,display_banner:"t"==o,consent_id:u}}(e):void 0}(e)}function pn(){try{let e=hn();if(!e)return;return e}catch(e){return}}function vn(e=null){return null===e&&(e=pn()),void 0===e}function mn(e){switch(e){case Rt.ACCEPTED:return Mt.ACCEPTED;case Rt.DECLINED:return Mt.DECLINED;default:return Mt.NO_VALUE}}function _n(e){switch(e){case Lt.ANALYTICS:return Ft.ANALYTICS;case Lt.MARKETING:return Ft.MARKETING;case Lt.PREFERENCES:return Ft.PREFERENCES;case Lt.SALE_OF_DATA:return Ft.SALE_OF_DATA}}function yn(e){const t=pn();if(!t)return Rt.NO_VALUE;const n=t.con.CMP;return n?n[e]:Rt.NO_VALUE}function gn(e){const t=pn();if(!t||!t.purposes)return!0;const n=t.purposes[e];return"boolean"!=typeof n||n}function wn(){return gn(It.PREFERENCES)}function En(){return gn(It.ANALYTICS)}function bn(){return gn(It.MARKETING)}function An(){return gn(It.SALE_OF_DATA)}const Sn="v0.2",Cn=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[0-9a-f]{4}-[0-9a-f]{12}$/,kn="00000000-0000-0000-0000-000000000000",xn="00000000-0000-0000-5000-000000000000";function Pn(e,t){if("string"!=typeof e)return;if(!function(e){return!!e&&Cn.test(e.trim().toLowerCase())}(e))return;const n=e.trim();if(n===kn)return;if(n===xn)return;const r=null==t||"string"==typeof t&&""===t.trim()?NaN:Number(t);return Number.isFinite(r)&&Date.now()>r?void 0:n}const Tn=31536e6,Dn=18e5;function Nn(e,t){const n=Gt();if(!n)return;const r=Wt(n,"Shopify","customerPrivacy","cachedToken");if(t){const n="_shopify_s"===e?Dn:Tn;r[e]=t,r[e+"_expires_at"]=Date.now()+n}else delete r[e],delete r[e+"_expires_at"]}function $n(e){return`${e.origin}${t=e.pathname,t.replace(/\/$/,"")}`;var t}function On(e){return e.startsWith("http://")||e.startsWith("https://")}const Mn="Shopify-Storefront-Consent-Management";function Rn(e){const t=e.granular_consent;return{query:`query { consentManagement { cookies(${Ht(p(p({visitorConsent:p({marketing:t.marketing,analytics:t.analytics,preferences:t.preferences,saleOfData:t.sale_of_data},t.metafields&&{metafields:t.metafields})},t.email&&{visitorEmail:t.email}),{},{origReferrer:e.referrer,landingPage:e.landing_page}))}) { trackingConsentCookie cookieDomain landingPageCookie origReferrerCookie shopifyUnique shopifyVisit } customerAccountUrl } }`,variables:{}}}let In;const Ln=[Ft.MARKETING,Ft.ANALYTICS,Ft.PREFERENCES,Ft.SALE_OF_DATA],Fn=[...Ln,Ft.EMAIL,"rootDomain","checkoutRootDomain","storefrontRootDomain","storefrontAccessToken","headlessStorefront","isExtensionToken","metafields","customerAccountRequestInfo"],Un=Ln.map((e=>`"${e}"`)).join(", "),jn="https://shopify.dev/docs/api/customer-privacy";function Bn(){try{if(""===document.referrer)return!0;const e=document.createElement("a");return e.href=document.referrer,window.location.hostname!=e.hostname}catch(e){return!0}}function qn(){return bn()}function Hn(){return En()}function Wn(){return wn()}function Kn(){return An()}const Gn="query { consentManagement { cookies(visitorConsent:{}) { cookieDomain } } }
1",zn="unstable",Vn="X-Shopify-UniqueToken",Jn="X-Shopify-VisitToken";function Yn(e){return Zn.apply(this,arguments)}function Zn(){return(Zn=f((function*(e){try{var t;if(!(Math.random()<.01))return;let r=null;if(e)try{const t=yield e.json();r=Array.isArray(null==t?void 0:t.errors)&&t.errors.length>0}catch(n){}!function(e,t,n){(new Xt).produce("persistOutcome",JSON.stringify({ok:e,status:t,graphqlErrors:n,sampleRate:.01}))}(!(null==e||!e.ok),null!==(t=null==e?void 0:e.status)&&void 0!==t?t:null,r)}catch(r){}}))).apply(this,arguments)}const Xn="uc",Qn=["ac","ah","ba","bin","c","cn","co","do","e","md","o","pc","sh","sim",Xn],er="(?<language>[a-z]{2,3}|zh-hans|zh-hant)(?:-(?<region>[a-zA-Z0-9]+))?",tr=new RegExp(`^${er}$`),nr=`/(?<sourceId>[a-zA-Z0-9=\\-_]+)(?:/(?<locale>${er}))?(?:/(?<route>[^/]+))?`;function rr(e){return`(?<sourceType>${e.join("|")})${nr}`}const or=rr(Qn.filter((e=>e!==Xn))),ir=rr([Xn]),ar=new RegExp(`^/checkouts/${or}/?$`),sr=new RegExp(`^/checkout/(?<shopId>[0-9]+)/${or}/?$`),ur=new RegExp(`^/checkouts/${ir}/?$`),cr=new RegExp("^/checkout/(?<shopId>[0-9]+)/(?<sourceType>spe)(?:/(?<sourceId>[a-zA-Z0-9=\\-_]+)?)?(?:/(?<route>[^/]+)?)?/?$");function lr(e){return!!e&&tr.test(e)}function dr(e,t){for(var n in t)e[n]=t[n];return e}function fr(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function hr(e,t){var n=t(),r=Se({t:{__:n,u:t}}),o=r[0].t,i=r[1];return xe((function(){o.__=n,o.u=t,pr(o)&&i({t:o})}),[e,n,t]),ke((function(){return pr(o)&&i({t:o}),e((function(){pr(o)&&i({t:o})}))}),[e]),n}function pr(e){try{return!((t=e.__)===(n=e.u())&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}var t,n}function vr(e,t){this.props=e,this.context=t}function mr(e,t){function n(e){var n=this.props.ref;return n!=e.ref&&n&&("function"==typeof n?n(null):n.current=null),t?!t(this.props,e)||n!=e.ref:fr(this.props,e)}function r(t){return this.shouldComponentUpdate=n,F(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.__f=r.prototype.isReactComponent=!0,r.type=e,r}(vr.prototype=new B).isPureReactComponent=!0,vr.prototype.shouldComponentUpdate=function(e,t){return fr(this.props,e)||fr(this.state,t)};var _r=_.__b;_.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),_r&&_r(e)};var yr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,gr=function(e,t){return null==e?null:J(J(e).map(t))},wr=(d("Y",{map:gr,forEach:gr,count:function(e){return e?J(e).length:0},only:function(e){var t=J(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:J}),_.__e);_.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k||[]),o.__c(e,t);wr(e,t,n,r)};var Er=_.unmount;function br(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=dr({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return br(e,t,n)}))),e}function Ar(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Ar(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Sr(){this.__u=0,this.o=null,this.__b=null}function Cr(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function kr(){this.i=null,this.l=null}_.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Er&&Er(e)},(Sr.prototype=new B).__c=function(e,t){var n=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(n);var o=Cr(r.__v),i=!1,a=function(){i||r.__z||(i=!0,n.__R=null,o?o(u):u())};n.__R=a;var s=n.__P;n.__P=null;var u=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Ar(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.__P=s,t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},Sr.prototype.componentWillUnmount=function(){this.o=[]},Sr.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=br(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&F(j,null,e.fallback);return o&&(o.__u&=-33),[F(j,null,t.__a?null:e.children),o]};var xr=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function Pr(e){return this.getChildContext=function(){return e.context},e.children}function Tr(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){se(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;null!==r&&!r.__m&&null!==r.__;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},namespaceURI:n.namespaceURI,insertBefore:function(e,n){this.childNodes.push(e),t.h.insertBefore(e,n)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}}
1se(F(Pr,{context:t.context},e.__v),t.v)}function Dr(e,t){var n=F(Tr,{__v:e,h:t});return n.containerInfo=t,n}(kr.prototype=new B).__a=function(e){var t=this,n=Cr(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),xr(t,e,r)):o()};n?n(i):i()}},kr.prototype.render=function(e){this.i=null,this.l=new Map;var t=J(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},kr.prototype.componentDidUpdate=kr.prototype.componentDidMount=function(){var e=this;this.l.forEach((function(t,n){xr(e,n,t)}))};var Nr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,$r=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Or=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Mr=/[A-Z0-9]/g,Rr="undefined"!=typeof document,Ir=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};B.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(B.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Lr=_.event;_.event=function(e){return Lr&&(e=Lr(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var Fr={configurable:!0,get:function(){return this.class}},Ur=_.vnode;_.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},o=-1==n.indexOf("-");for(var i in t){var a=t[i];if(!("value"===i&&"defaultValue"in t&&null==a||Rr&&"children"===i&&"noscript"===n||"class"===i||"className"===i)){var s=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===a?a="":"translate"===s&&"no"===a?a=!1:"o"===s[0]&&"n"===s[1]?"ondoubleclick"===s?i="ondblclick":"onchange"!==s||"input"!==n&&"textarea"!==n||Ir(t.type)?"onfocus"===s?i="onfocusin":"onblur"===s?i="onfocusout":Or.test(i)&&(i=s):s=i="oninput":o&&$r.test(i)?i=i.replace(Mr,"-$&").toLowerCase():null===a&&(a=void 0),"oninput"===s&&r[i=s]&&(i="oninputCapture"),r[i]=a}}"select"==n&&(r.multiple&&Array.isArray(r.value)&&(r.value=J(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),null!=r.defaultValue&&(r.value=J(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value})))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",Fr)):t.className&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=Nr,Ur&&Ur(e)};var jr=_.__r;_.__r=function(e){jr&&jr(e),e.__c};var Br=_.diffed;function qr(e){return!!e&&e.$$typeof===Nr}function Hr(e){return qr(e)?ue.apply(null,arguments):e}_.diffed=function(e){Br&&Br(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value)};var Wr=0;function Kr(e,t,n,r,o,i){t||(t={});var a,s,u=t;if("ref"in u)for(s in u={},t)"ref"==s?a=t[s]:u[s]=t[s];var c={type:e,props:u,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Wr,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof e&&(a=e.defaultProps))for(s in a)void 0===u[s]&&(u[s]=a[s]);return _.vnode&&_.vnode(c),c}class Gr extends Error{constructor(){super(...arguments),this.name="TypescriptAssertionError"}}function zr({id:e},t){return`${e}${JSON.stringify(t?Vr(t):{})}`}function Vr(e){const t={};for(const n of Object.keys(e).sort(((e,t)=>e.localeCompare(t))))t[n]=e[n];return t}d("b",(()=>e=>e));const Jr=10,Yr=2;function Zr(e,t=Yr){return 1e3*Math.min(Math.pow(t,e),60)+Math.floor(100*Math.random())}function*Xr(e=Yr,t=Jr){for(let n=1;n<=t;n++)yield Zr(n,e)}
1class Qr extends Error{constructor(){super(...arguments),this.name="RetryError"}}function eo(){return(eo=f((function*(e,{shouldRetry:t=to,maxAttempts:n=3,initialRetryDelay:r}={}){let o;for(let a=1;a<=n;a++){a>1&&(yield no(Zr(a-1,r)));try{return yield e()}catch(i){if(o=i,!t(i))break;console.warn(`Failed to execute action on attempt ${a} of ${n}.`)}}if(o instanceof Error)throw o;throw new Qr("Failed to execute action after retrying.",{cause:o})}))).apply(this,arguments)}function to(e){return null!=e}function no(e){return new Promise((t=>setTimeout(t,Math.max(e,0))))}var ro=function(e){return"function"==typeof e.children?e.children(e.v,e.i?e.i.value:void 0):e.children};function oo(e){var t="function"==typeof e.when?e.when():e.when.value;if(!t){var n=e.fallback;return"function"==typeof n?n():n||null}return F(ro,{v:t,children:e.children})}function io(e){var t=Te((function(){return new Map}),[]),n="function"==typeof e.each?e.each():e.each,r=n instanceof Qe?n.value:n;if(!r.length)return e.fallback||null;var o=new Set(t.keys()),i=r.map((function(n,r){o.delete(n);var i=t.get(n);if(i)i.i.peek()!==r&&(i.i.value=r);else{var a=et(r),s=e.getKey?e.getKey(n,r):r;i={vnode:F(ro,{key:s,v:n,i:a,children:e.children}),i:a},t.set(n,i)}return i.vnode}));return o.forEach((function(e){t.delete(e)})),F(j,null,i)}ro.displayName="Item",oo.displayName="Show",io.displayName="For";var ao={configurable:!0,get:function(){return this.value},set:function(e){this.value=e}};class so extends Error{constructor(e,t){const n=JSON.stringify(e.map((({message:e})=>e)),null,2);super(`GraphQL execution failed with errors: ${n}`),this.errors=e,this.name="GraphQLExecutionError",this.groupingHash=null!=t?t:function(e){var t;const n=[{pattern:/syntax error/i,hash:"graphql_parsing_error"},{pattern:/No operation named/i,hash:"graphql_missing_operation_error"},{pattern:/Variable.*geolocation\.countryCode/i,hash:"invalid_country_code_error"},{pattern:/Variable.*coordinates\.(latitude|longitude)/i,hash:"invalid_coordinates_error"},{pattern:/Variable.*was provided invalid value/i,hash:"invalid_variable_error"},{pattern:/Cannot target merchandise with stableId/i,hash:"merchandise_stable_id_error"},{pattern:/Cannot return null for non-nullable field CreditCard/i,hash:"credit_card_field_error"},{pattern:/doesn't exist on type/i,hash:"graphql_undefined_field_error"},{pattern:/isn't a defined input type/i,hash:"graphql_undefined_input_type_error"},{pattern:/could not be composed from extendedFields/i,hash:"address_composition_error"},{pattern:/Invalid query string parameter/i,hash:"invalid_query_string_parameter_error"},{pattern:/Cannot return null for non-nullable field/i,hash:"graphql_non_nullable_field_error"}].find((({pattern:t})=>t.test(e)));return null!==(t=null==n?void 0:n.hash)&&void 0!==t?t:"generic_graphql_execution_error"}(n)}}d("J",so);const uo=d("b9","GraphQL fetch failed with network failure:");class co extends Error{constructor(e){super(`${uo} ${e.message}`),this.error=e,this.name="GraphQLFetchNetworkError"}}d("L",co);
1class lo extends Error{constructor(e){super(e),this.message=e,this.name="GraphQLFetchHttpBaseError"}getGroupingHash(e){const t=null!=e?e:"UNKNOWN NAME";return[this.name,t].join(":")}}class fo extends lo{constructor(e,t){super(`GraphQL query [${null!=t?t:"UNKNOWN NAME"}] fetch failed with status: ${e.status}`),this.response=e,this.queryName=t,this.name="GraphQLFetchHttpStatusError",this.groupingHash=this.getGroupingHash(t)}}d("M",fo);class ho extends fo{constructor(e,t){super(e,t),this.response=e,this.queryName=t,this.name="GraphQLFetchHttpBadRequestError",this.groupingHash=this.getGroupingHash(t)}}class po extends lo{constructor(e,t,n,r){super(`GraphQL UnsupportedContentType ${t}: ${n}`),this.response=e,this.contentType=t,this.contentPreview=n,this.queryName=r,this.name="GraphQLFetchHttpContentTypeError",this.groupingHash=this.getGroupingHash(r)}}d("H",po);class vo extends lo{constructor(e,t,n,r){const o=r?` (${r.constructor.name}: ${r.message})`:"";super(`GraphQL JSON parse error for query [${null!=n?n:"UNKNOWN NAME"}]: status ${e.status}, url ${t}${o}`),this.response=e,this.requestUrl=t,this.queryName=n,this.name="GraphQLFetchJsonParseError",this.groupingHash=this.getGroupingHash(n)}}d("I",vo);
1class mo extends Error{constructor(){super(...arguments),this.name="CheckoutGraphQLError"}}function _o(e){return"function"==typeof e?e():e}function yo(e){return e?Object.keys(e).sort().map((t=>`${t}=${e[t]}`)).join("&"):""}d("aP",class{constructor(e,t=new Map,{timing:n}={}){this.cache=t,this.timings=[],this.inflight=new Map,this.cacheWriteSequence=new Map,this.fetch=n?function(e,t,n){return function(){var r=f((function*(r){const o=performance.now();try{return yield e(r)}finally{var i;n({clientName:t,operationName:null!==(i=r.query.name)&&void 0!==i?i:r.query.id,startedAt:o,duration:Math.max(0,performance.now()-o)})}}));return function(e){return r.apply(this,arguments)}}()}(e,n.clientName,(e=>this.timings.push(e))):e}read(e,t){return this.cache.get("string"==typeof e?e:zr(e))}extract(){return Object.fromEntries(this.cache.entries())}mutate(e,{variables:t}={}){return this.run(e,{variables:t})}staticQuery(e,t={}){return this.internalQuery(e,t)}get reactiveEffectsEnabled(){return!0}query(e,t={}){var n,r;const o=et(void 0),i=et(!1),a=et(void 0),s=et(!1);let u,c,l=0,d=Promise.resolve({});const f=null===(n=t.cache)||void 0===n||n,h=()=>{const e=(null!=l?l:0)+1;return l=e,e},p=(e,t)=>{t===l&&(e.error?(a.value=e.error,o.value=void 0):(a.value=void 0,o.value=e.data),i.value=!1)},v=n=>{var r,o,a;if(null===l)return Promise.resolve({});const u=h();c=yo(n.additionalHeaders);const d=(null!==(r=t.getCacheKey)&&void 0!==r?r:zr)(e,n.variables),v=!n.forceNetwork&&(null!==(o=n.cache)&&void 0!==o?o:f)&&!this.inflight.has(d)&&this.cache.has(d),m=this.internalQuery(e,{variables:n.variables,cache:null!==(a=n.cache)&&void 0!==a?a:f,getCacheKey:t.getCacheKey,additionalHeaders:n.additionalHeaders,forceNetwork:n.forceNetwork});return s.value=v,m instanceof Promise?(i.value=!0,m.then((e=>(p(e,u),e)))):(p(m,u),Promise.resolve(m))};if(this.reactiveEffectsEnabled)u=lt((()=>{var e;if(null!==(e=_o(t.skip))&&void 0!==e&&e)return h(),void(i.value=!1);const n=_o(t.variables),r=_o(t.additionalHeaders),o=yo(r);d=v({variables:n,cache:f,additionalHeaders:r,forceNetwork:void 0!==c&&o!==c})}));else if(null===(r=_o(t.skip))||void 0===r||!r){var m;const n=(null!==(m=t.getCacheKey)&&void 0!==m?m:zr)(e,_o(t.variables)),r=f?this.read(n):void 0;null==r?i.value=!0:(o.value=r,s.value=!0,d=Promise.resolve({data:r}))}const _=()=>{var e;null!==l&&(l=null,null===(e=u)||void 0===e||e())};lt((()=>()=>_()));const y={data:o,loading:i,error:a,isFromCache:s,refetch(e){var n;return d=v({variables:null!==(n=null==e?void 0:e.variables)&&void 0!==n?n:_o(t.variables),cache:!1,additionalHeaders:_o(t.additionalHeaders),forceNetwork:!(null!=e&&e.deduplicate)}),y},[Symbol.dispose]:_,then:(e,t)=>d.then(e,t)};return y}internalQuery(e,{cache:t=!0,variables:n,getCacheKey:r,skip:o=!1,additionalHeaders:i,forceNetwork:a=!1}={}){var s,u=this;const c=(null!=r?r:zr)(e,n);if(o)return{data:this.cache.get(c)};if(!a){if(this.inflight.has(c))return this.inflight.get(c);if(t&&this.cache.has(c))return{data:this.cache.get(c)}}const l=(null!==(s=this.cacheWriteSequence.get(c))&&void 0!==s?s:0)+1;this.cacheWriteSequence.set(c,l);const d=f((function*(){try{const t=yield u.run(e,{variables:n},i);return t.error||u.cacheWriteSequence.get(c)!==l||u.cache.set(c,t.data),t}finally{u.cacheWriteSequence.get(c)===l&&u.inflight.delete(c)}}))();return this.inflight.set(c,d),d}run(e){var t=this;return f((function*(e,{variables:n}={},r){try{const o=yield t.fetch(p({query:e,variables:null!=n?n:{}},r&&{additionalHeaders:r})),{data:i,error:a}=o;return i?{data:i}:{error:a}}catch(o){return{error:o instanceof Error?o:new mo}}})).apply(this,arguments)}});const go={"America/Indiana":"America/Indiana/Indianapolis","America/Argentina":"America/Argentina/Buenos_Aires","Asia/Chongqing":"Asia/Shanghai","Asia/Istanbul":"Europe/Istanbul","Australia/ACT":"Australia/Sydney","Australia/LHI":"Australia/Lord_Howe","Australia/North":"Australia/Darwin","Australia/NSW":"Australia/Sydney","Australia/Queensland":"Australia/Brisbane","Australia/South":"Australia/Adelaide","Australia/Tasmania":"Australia/Hobart","Australia/Victoria":"Australia/Melbourne","Australia/West":"Australia/Perth","Brazil/Acre":"America/Rio_Branco","Brazil/DeNoronha":"America/Noronha","Brazil/East":"America/Sao_Paulo","Brazil/West":"America/Manaus","Canada
1/Atlantic":"America/Halifax","Canada/Central":"America/Winnipeg","Canada/Eastern":"America/Toronto","Canada/Mountain":"America/Edmonton","Canada/Newfoundland":"America/St_Johns","Canada/Pacific":"America/Vancouver","Canada/Saskatchewan":"America/Regina","Canada/Yukon":"America/Whitehorse","Chile/Continental":"America/Santiago","Chile/EasterIsland":"Pacific/Easter",Cuba:"America/Havana",Egypt:"Africa/Cairo",Eire:"Europe/Dublin","Europe/Kyiv":"Europe/Kiev","Etc/Greenwich":"Etc/GMT","Etc/UCT":"UTC","Etc/Universal":"UTC","Etc/Zulu":"UTC",GB:"Europe/London","GB-Eire":"Europe/London","GMT+0":"Etc/GMT",GMT0:"Etc/GMT","GMT−0":"Etc/GMT",Greenwich:"Etc/GMT",Hongkong:"Asia/Hong_Kong",Iceland:"Atlantic/Reykjavik",Iran:"Asia/Tehran",Israel:"Asia/Jerusalem",Jamaica:"America/Jamaica",Japan:"Asia/Tokyo",Kwajalein:"Pacific/Kwajalein",Libya:"Africa/Tripoli","Mexico/BajaNorte":"America/Tijuana","Mexico/BajaSur":"America/Mazatlan","Mexico/General":"America/Mexico_City",Navajo:"America/Denver",NZ:"Pacific/Auckland","NZ-CHAT":"Pacific/Chatham",Poland:"Europe/Warsaw",Portugal:"Europe/Lisbon",PRC:"Asia/Shanghai",ROC:"Asia/Taipei",ROK:"Asia/Seoul",Singapore:"Asia/Singapore",Turkey:"Europe/Istanbul",UCT:"UTC",Universal:"UTC","US/Alaska":"America/Anchorage","US/Aleutian":"America/Adak","US/Arizona":"America/Phoenix","US/Central":"America/Chicago","US/Eastern":"America/New_York","US/East-Indiana":"America/Indiana/Indianapolis","US/Hawaii":"Pacific/Honolulu","US/Indiana-Starke":"America/Indiana/Knox","US/Michigan":"America/Detroit","US/Mountain":"America/Denver","US/Pacific":"America/Los_Angeles","US/Pacific-New":"America/Los_Angeles","US/Samoa":"Pacific/Pago_Pago","W-SU":"Europe/Moscow",Zulu:"UTC"},wo=new Map;function Eo(e,t){const n=null!=t&&t.timeZone?(r=t.timeZone,Object.keys(go).some((e=>e===r))?go[r]:r):void 0;var r;const o=function(e,t={}){return`${Array.isArray(e)?e.sort().join("-"):e}-${JSON.stringify(t)}`}(e,p(p({},t),{},{timeZone:n}));if(wo.has(o))return wo.get(o);const i=new Intl.DateTimeFormat(e,p(p({},t),{},{timeZone:n}));return wo.set(o,i),i}const bo=Intl.DateTimeFormat("en",{hour:"numeric"}),Ao=void 0===bo.resolvedOptions?void 0:bo.resolvedOptions(),So=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]),Co=/(?:[\u0591-\u05C7\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0604\u0606-\u060B\u060D-\u061A\u061C-\u061E\u0620-\u063F\u0641-\u064A\u0656-\u066F\u0671-\u06DC\u06DE-\u070D\u070F-\u074A\u074D-\u07B1\u07C0-\u07FA\u07FD-\u082D\u0830-\u083E\u0840-\u085B\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u0897-\u08E1\u08E3-\u08FF\uFB1D-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD40-\uFD8F\uFD92-\uFDC7\uFDCF\uFDF0-\uFDFF\uFE70-\uFE74\uFE76-\uFEFC]|\uD803[\uDE60-\uDE7E\uDEC2-\uDEC4\uDEFC-\uDEFF]|\uD83A[\uDD00-\uDD4B\uDD50-\uDD59\uDD5E\uDD5F]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB\uDEF0\uDEF1])/,ko=2;function xo(e){var t;return null!==(t=Po.get(e))&&void 0!==t?t:ko}const Po=new Map([["BHD",3],["BIF",0],["BYR",0],["CLF",4],["CLP",0],["DJF",0],["GNF",0],["HUF",2],["IQD",3],["ISK",0],["JOD",3],["JPY",0],["KMF",0],["KRW",0],["KWD",3],["LYD",3],["MGA",2],["MRO",5],["OMR",3],["PYG",0],["RWF",0],["TND",3],["UGX",0],["VND",0],["VUV",0],["XAF",0],["XAG",0],["XAU",0],["XBA",0],["XBB",0],["XBC",0],["XBD",0],["XDR",0],["XOF",0],["XPD",0],["XPF",0],["XPT",0],["XTS",0]]);function To(e){return e.replace(/\s*[A-Z]{3}\s*/g,"")}function Do(e,t={},n){const r="he"===n.locale.split("-")[0],o=e<0||Object.is(e,-0),i=Mo(t.currency||n.currency||"",n),a=Ro(n,t),s=To(n.numberFormatter(p({style:"currency",maximumFractionDigits:a,minimumFractionDigits:a,currencyDisplay:"code"},t)).format(t.spacedMinusSign&&!r?Math.abs(e):e)),u=i.prefixed&&/^[A-Za-z]+$/.test(i.symbol)?" ":"",c=i.prefixed?`${i.symbol}${u}${s}`:`${s} ${i.symbol}
1`,l=t.spacedMinusSign?"− ":"-";return o&&r?c.replace("−","-").replace("-",l):o?`${l}${c.replace("-","").replace("−","")}`:c}function No(e,t={},n){const r=Do(e,t,n),o=t.currency||n.currency||"";return Oo(o,r)?r:`${r} ${o}`}const $o={SRD:{symbol:"SRD",prefixed:!0,explicit:!0},TRY:{symbol:"TL",prefixed:!1,explicit:!0},CHF:{symbol:"CHF",explicit:!0},KGS:{symbol:"лв",prefixed:!0}};function Oo(e,t){var n;return!0===(null===(n=$o[e])||void 0===n?void 0:n.explicit)||null!=t&&t.includes(e)}function Mo(e,t){const n=e||t.currency,r=$o[n];if(void 0!==(null==r?void 0:r.prefixed))return{symbol:r.symbol,prefixed:r.prefixed};const o=n.substring(0,2),i=Io(t),a=t.numberFormatter({currency:n,style:"currency",currencyDisplay:"narrowSymbol",maximumFractionDigits:i,minimumFractionDigits:i}).format(0).replace(/[\u200E\u200F]/g,""),s=t.numberFormatter({currency:n,style:"currency",currencyDisplay:"code",maximumFractionDigits:i,minimumFractionDigits:i}).format(0).replace(/[\u200E\u200F]/g,"");if(r&&a!==s)return{symbol:r.symbol,prefixed:s.startsWith(n)};if(a===s){const e=s.replace(n,"").trim();return{symbol:s.replace(e,"").trimStart(),prefixed:s.startsWith(n)}}const u=s.replace(n,"").trim(),c=a.replace(u,"").trimStart(),l=a.startsWith(c);return{symbol:c.replace(o,""),prefixed:l}}function Ro(e,t={}){return"IQD"===(t.currency||e.currency||"").toUpperCase()&&void 0===t.precision&&void 0===t.minimumFractionDigits&&void 0===t.maximumFractionDigits?0:Io(e,t)}function Io(e,t={}){let n=t.precision;return void 0===n&&(n=xo((t.currency||e.currency||"").toUpperCase())),n}const Lo=(e,t)=>e&&t?`${t}${e}`:"",Fo=(e,t,n)=>e?Lo(n,t):n||"",Uo=new Map([["ko",Fo],["ja",(e,t,n)=>e?Lo(n,t):t?`${t}様`:""],["zh-CN",Fo],["zh-TW",Fo]]),jo=new RegExp("^(?<language>[a-z]{2,3})(?:-(?<region>[a-zA-Z0-9]+))?$");class Bo{constructor(e,t){this.language=e,this.region=t}toString(){return this.region?`${this.language}-${this.region}`:this.language}}const qo="latn",Ho=`-u-nu-${qo}`;function Wo(e){try{const t=new Intl.Locale(e);return new Intl.Locale(t.baseName,{numberingSystem:qo}).toString()}catch(t){return function(e){return e.includes("-u-nu-")?e.replace(/-u-nu-[a-z0-9]+/i,Ho):`${e}${Ho}`}(e)}}const Ko="count",Go="scope",zo=".";function Vo(e,t,n){Object.keys(e).forEach((r=>{const o=e[r],i=n?`${n}.${r}`:r;null!=o&&("string"==typeof o?t(i,o):Vo(o,t,i))}))}function Jo(e,t,n){Object.keys(e).forEach((r=>{const o=e[r],i=n?`${n}.${r}`:r;null!=o&&(t(i,o),"string"!=typeof o&&Jo(o,t,i))}))}function Yo(e){const t=new Map;return Jo(e,((e,n)=>t.set(e,n))),t}function Zo(){return`${Xo()}-${Xo()}-${Xo()}-${Xo()}`}function Xo(){return Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)}class Qo extends Error{constructor(e,t){super(`The value for "${e}" was not a string. Found ${JSON.stringify(t)} instead.`),this.name="TranslationNotStringError"}}class ei extends Error{constructor(e,t,n){super(`The key "${t}" is not a valid replacement for "${e}".`),this.rawTranslation=n,this.name="MissingReplacementError"}}const ti=/(%{([^}]*)})|({{([^}]*)}})/g,ni=/((?:%{([^}]*)}|{{([^}]*)}})[….,!?;:)'"’”]?)/g,ri=/(href="%{([^}]*)}")|(href="{{([^}]*)}}")/g,oi={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ii="data-replacement-index";function ai(e){return String(e).replace(/[&<>"']/g,(e=>oi[e]))}const si=["…",".",",","!","?",";",":",")","'",'"',"’","”"];function ui({i18n:e,rawTranslation:t,replacements:n,translationKey:r,noWrapElementReplacements:o}){const i=[];let a=t;try{a=t.replace(ri,(e=>{const o=e.startsWith('href="%')?e.substring(8,e.length-2).trim():e.substring(8,e.length-3).trim();if(o in n)return`href="${ai(n[o])}"`;throw new ei(r,o,t)})).replace(ti,(e=>{const a="%"===e.slice(0,1)?e.substring(2,e.length-1):e.substring(2,e.length-2).trim();if(a in n){if(!qr(n[a]))return ai(n[a]);i.push(n[a]);const e=o?' style="white-space: nowrap;"':"";return`<span ${ii}="${i.length-1}"${e}></span>`}throw new ei(r,a,t)}))}catch(u){var s;u instanceof Error&&(null===(s=e.onError)||void 0===s||s.call(e,u))}return Kr(ci,{translation:a,portals:i})}function ci({translation:e,portals:t=[]}){const n=Pe(null),[r,o]=Se([]);return xe((()=>{const e=n.current;o(e?Array.from(e.querySelectorAll(`[${ii}]`)):[])}),[e]),Kr(j,{children:[Kr("span",{ref:n,dangerouslySetInnerHTML:{__html:e}}),t.map(((e,t)=>{const n=r[t];return n?Dr(e,n):null}))]})}function li(e){var t;if(e)return null===(t=e.match(/^([a-z]{2,3})(?:[-_].*)?$/i))||void 0===t?void 0:t[1]}function di(e,t={}){try{return new Intl.PluralRules(e,t)}catch(n){const r=li(e);if(!r)throw n;return new Intl.PluralRules(r,t)}}function fi(e){try{if(new Intl.DateTimeFormat(void 0,{timeZone:e}))return!0}catch(t){return!1}return!1}function hi(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}d("az",class{constructor(e,t){var n,r;this.pluralRules=function(e,t){const n=new WeakMap,r=new Map,o=[];return function(...i){if("undefined"==typeof window)return e.apply(this,i);
1const a=1===i.length&&"object"==typeof i[0]&&!t;let s;s=a?i[0]:t&&t instanceof Function?t(...i):i[0];const u=a?n:r;if(u.has(s))return u.get(s);const c=e.apply(this,i);if(a)n.set(s,c);else if(r.set(s,c),o.push(s),r.size>50){const e=o[0];r.delete(e),o.shift()}return c}}(di,((e,t={})=>`${e}${JSON.stringify(t)}`)),this.numberFormats=new Map,this.translations=Yo(t),this.locale=function(e="en"){var t,n;const r=function(e){var t,n;if(!e)return null;const r=e.match(jo);return r?new Bo(null===(t=r.groups)||void 0===t?void 0:t.language,null===(n=r.groups)||void 0===n?void 0:n.region):null}(e);return null!==(t=null!==(n=null==r?void 0:r.toString())&&void 0!==n?n:li(e))&&void 0!==t?t:"en"}(e.locale),this.localeDirection=null!==(n=e.direction)&&void 0!==n?n:function(e){const t=e.split("-")[0].toLowerCase();return t&&So.has(t)?"rtl":"ltr"}(this.locale),this.currency=e.currency&&function(e){try{return new Intl.NumberFormat(void 0,{style:"currency",currency:e}).format(123),!0}catch(t){return!1}}(e.currency)?e.currency:"USD";const o=e.fallbackTimeZone&&fi(e.fallbackTimeZone)?e.fallbackTimeZone:void 0;this.timeZone=fi(e.timeZone)?e.timeZone:o,this.onError=e.onError,this.uuid=null!==(r=e.uuid)&&void 0!==r?r:Zo,this.formattingLocale=Wo(this.locale)}numberFormatter(e={}){const n=function(e,t={}){return`${e}${JSON.stringify(t)}`}(this.formattingLocale,e);if(this.numberFormats.has(n))return this.numberFormats.get(n);let r;try{const t=new Intl.NumberFormat(this.formattingLocale,e);return this.numberFormats.set(n,t),t}catch(c){r=c}const{currencyDisplay:o}=e,i=l(e,t),a=li(this.locale),s=a?Wo(a):void 0,u=[];o&&u.push({locale:this.formattingLocale,options:i}),s&&s!==this.formattingLocale&&(u.push({locale:s,options:e}),o&&u.push({locale:s,options:i}));for(const{locale:t,options:l}of u)try{const e=new Intl.NumberFormat(t,l);return this.numberFormats.set(n,e),e}catch(c){r=c;continue}throw r}formatCurrency(t,n){return function(t,n,r={}){let{form:o}=r,i=l(r,e);switch(o){case"auto":return function(e,t={},n){return null==t.currency||null==n.currency||t.currency===n.currency?Do(e,t,n):No(e,t,n)}(n,i,t);case"explicit":return No(n,i,t);case"name":return function(e,t={},n){const r=t.currency||n.currency,o=Ro(n,t);return n.numberFormatter(p(p({maximumFractionDigits:o,minimumFractionDigits:o},t),{},{style:"currency",currency:r,currencyDisplay:"name"})).format(e)}(n,i,t);case"plain":return function(e,t={},n){const r=Io(n,t);return To(n.numberFormatter(p({style:"currency",useGrouping:!1,maximumFractionDigits:r,minimumFractionDigits:r,currencyDisplay:"code"},t)).format(e))}(n,i,t);default:return Do(n,i,t)}}(this,t,n)}formatDate(e,t){return function(e,t,n={}){if(null!=Ao&&!1===n.hour12&&null!=Ao.hourCycle&&(n.hour12=void 0,n.hourCycle="h23"),null!=n.timeZone&&"Etc/GMT+12"===n.timeZone){const r=new Date(e.valueOf()-432e5);return Eo(t,p(p({},n),{},{timeZone:"UTC"})).format(r)}return Eo(t,n).format(e)}(e,this.formattingLocale,p({timeZone:this.timeZone},t))}formatName(e,t,n){return function(e,t,n,r){const o=e.includes("-")&&"zh-CN"!==e&&"zh-TW"!==e?e.split("-")[0].toLowerCase():e,i=Boolean(r&&t&&n),a=Uo.get(o);return a?a(i,n,t):i?`${t} ${n}`:t||""}(this.locale,e,t,n)}translate(e,t,n){return function(e,t,n,r){let o=!!t.endsWith("_html")||void 0,i=!1;var a,s;"object"==typeof r&&(o=null!==(a=r.dangerouslySetInnerHTML)&&void 0!==a?a:o,i=null!==(s=r.noWrapElementReplacements)&&void 0!==s&&s);try{if("object"==typeof n&&Boolean(Object.keys(n).length)){const r=function(e,t,n){let r;return r=function(e){return Go in e&&"string"==typeof e[Go]}(n)?function(e,t,n){const r=n[Go],o=t+zo+r,i=e.translations.get(o),a="string"==typeof i?i:null==i?void 0:i[r];if("string"!=typeof a)throw new Qo(o,a);return{translation:a,key:o,replacements:n}}(e,t,n):function(e){return Ko in e&&"number"==typeof e[Ko]}(n)?function(e,t,n){const r=n[Ko],o=e.pluralRules(e.locale).select(r),i=e.pluralRules(e.locale).resolvedOptions().pluralCategories,a=e.numberFormatter().format(r),s=t+zo+o;let u=e.translations.get(s);if(u||i.includes("other")&&e.translations.has(`${t}${zo}other`)&&(u=e.translations.get(`${t}${zo}other`)),"string"!=typeof u)throw new Qo(s,u);return{translation:u,key:s,replacements:p(p({},n),{},{[Ko]:a})}}
1(e,t,n):function(e,t,n){const r=e.translations.get(t);if("string"!=typeof r)throw new Qo(t,r);return{translation:r,key:t,replacements:n}}(e,t,n),{translation:r.translation,replacements:r.replacements,key:r.key}}(e,t,n);return function(e,t,n,r,o,i){return o?Kr(ui,{i18n:e,rawTranslation:t,replacements:n,translationKey:r,noWrapElementReplacements:i}):function(e){return Object.values(e).every((e=>!qr(e)))}(n)?function(e,t,n){return e.replace(ti,(r=>{let o;if(o="%"===r.slice(0,1)?r.substring(2,r.length-1).trim():r.substring(2,r.length-2).trim(),o in t)return t[o];throw new ei(n,o,e)}))}(t,n,r):function(e,t,n,r){return e.split(r?ni:ti).filter((e=>Boolean(e))).reduce(((o,i)=>{if(o.nextExtryIsReplacementKey){const a=i.trim();if(!(a in t))throw new ei(n,a,e);const s=o.matchIndex+1,u=function(e,t,n,r){const o=t.slice(-1),i=r&&si.includes(o);if(!qr(e))return i?`${e}${o}`:e;const a=Hr(e,{key:n});return i?Kr("span",{style:{whiteSpace:"nowrap"},children:[a,o]}):a}(t[a],o.previousEntry,s,r);return{nextExtryIsReplacementKey:!1,matchIndex:s,splitTranslationWithReplacements:[...o.splitTranslationWithReplacements,u],previousEntry:i}}return i.match(ti)?p(p({},o),{},{nextExtryIsReplacementKey:!0,previousEntry:i}):p(p({},o),{},{nextExtryIsReplacementKey:!1,splitTranslationWithReplacements:[...o.splitTranslationWithReplacements,i],previousEntry:i})}),{nextExtryIsReplacementKey:!1,matchIndex:0,splitTranslationWithReplacements:[],previousEntry:""}).splitTranslationWithReplacements}(t,n,r,i)}(e,r.translation,r.replacements,r.key,o,i)}return o?function(e,t){const n=e.translations.get(t);if("string"!=typeof n)throw new Qo(t,n);return Kr(ci,{translation:n})}(e,t):function(e,t){const n=e.translations.get(t);if(n&&"string"==typeof n)return n;throw new Qo(t,n)}(e,t)}catch(c){if(c instanceof ei)return c.rawTranslation;var u;if(c instanceof Error)return null===(u=e.onError)||void 0===u||u.call(e,c),`I18n Error: ${c.message}`}}(this,e,t,n)}});var pi=0;function vi(e){return"__private_"+pi+++"_"+e}function mi(e){return Object.entries(e).map((([e,t])=>({key:e,value:{stringValue:String(t)}})))}function _i(e){if(Array.isArray(e))return{arrayValue:{values:e.map((e=>_i(e)))}};switch(typeof e){case"boolean":return{boolValue:Boolean(e)};case"number":return{doubleValue:Number(e)};default:return{stringValue:String(e)}}}const yi=function(){const e=[0];for(let t=0;t<12;t++){const n=Math.floor(5*Math.pow(2,t));e.push(n)}return e}();function gi(e){return"number"==typeof e&&Number.isFinite(e)}function wi(e,t,n){throw new Error(`[OpenTelemetry] Invalid ${e} "${t}": value must be a finite number, got ${null===n?"null":typeof n}`)}var Ei=vi("exporter"),bi=vi("attributes"),Ai=vi("metrics"),Si=vi("logs");d("ab",class{constructor({exporter:e,attributes:t}){Object.defineProperty(this,Ei,{writable:!0,value:void 0}),Object.defineProperty(this,bi,{writable:!0,value:void 0}),Object.defineProperty(this,Ai,{writable:!0,value:[]}),Object.defineProperty(this,Si,{writable:!0,value:[]}),hi(this,Ei)[Ei]=e,hi(this,bi)[bi]=null!=t?t:{}}addAttributes(e){hi(this,bi)[bi]=p(p({},hi(this,bi)[bi]),e)}histogram({name:e,value:t,unit:n,description:r,bounds:o,attributes:i,scale:a,requiresKeepalive:s}){gi(t)||wi("histogram",e,t);const u=1e6*Date.now();o?hi(this,Ai)[Ai].push({name:e,type:"histogram",value:t,unit:n,description:r,timeUnixNano:u,attributes:i,bounds:o,requiresKeepalive:s}):hi(this,Ai)[Ai].push({name:e,type:"exponential_histogram",value:t,unit:n,description:r,timeUnixNano:u,attributes:i,scale:a,requiresKeepalive:s})}counter({name:e,value:t,unit:n,description:r,attributes:o,requiresKeepalive:i}){gi(t)||wi("counter",e,t);const a=1e6*Date.now();hi(this,Ai)[Ai].push({name:e,type:"counter",value:t,unit:n,description:r,timeUnixNano:a,attributes:o,requiresKeepalive:i})}gauge({name:e,value:t,unit:n,description:r,attributes:o,requiresKeepalive:i}){gi(t)||wi("gauge",e,t);const a=1e6*Date.now();hi(this,Ai)[Ai].push({name:e,type:"gauge",value:t,unit:n,description:r,timeUnixNano:a,attributes:o,requiresKeepalive:i})}log({body:e,attributes:t,requiresKeepalive:n}){const r=1e6*Date.now();hi(this,Si)[Si].push({timeUnixNano:r,body:e,attributes:t,requiresKeepalive:n})}exportMetrics(){var e=this;
1return f((function*(){hi(e,Ai)[Ai].forEach((t=>{t.attributes=p(p({},hi(e,bi)[bi]),t.attributes)}));const t=hi(e,Ai)[Ai];hi(e,Ai)[Ai]=[],yield e.exportByKeepalive(t,((t,n)=>hi(e,Ei)[Ei].exportMetrics(e.aggregateMetrics(t),n)))}))()}exportLogs(){var e=this;return f((function*(){const t=hi(e,Si)[Si];hi(e,Si)[Si]=[],yield e.exportByKeepalive(t,((t,n)=>hi(e,Ei)[Ei].exportLogs(e.formatLogs(t),n)))}))()}aggregateMetrics(e){const t={};return e.forEach((e=>{switch(e.type){case"histogram":!function(e,t){var n;const{name:r,value:o,unit:i,description:a,timeUnixNano:s,attributes:u}=t,c=null!==(n=t.bounds)&&void 0!==n?n:yi,l=new Array(c.length+1).fill(0);e[r]||(e[r]={name:r,unit:i||"1",description:a,histogram:{aggregationTemporality:1,dataPoints:[]}});for(let d=0;d<l.length;d++){const e=c[d];if(void 0===e)l[d]=1;else if(o<=e){l[d]=1;break}}e[r].histogram.dataPoints.push({startTimeUnixNano:s,timeUnixNano:s,count:1,sum:o,min:o,max:o,bucketCounts:l,explicitBounds:c,attributes:mi(null!=u?u:{})})}(t,e);break;case"exponential_histogram":!function(e,t){const{name:n,value:r,unit:o,description:i,timeUnixNano:a,attributes:s,scale:u}=t;e[n]||(e[n]={name:n,unit:o||"1",description:i,exponentialHistogram:{aggregationTemporality:1,dataPoints:[]}});const c=r<=0?0:r,l=u||3,d=Math.pow(2,l)/Math.log(2),f=Math.ceil(Math.log(r)*d)-1,h=r<=0?1:0,p={offset:r>0?f:0,bucketCounts:r>0?[1]:[]};e[n].exponentialHistogram.dataPoints.push({attributes:mi(null!=s?s:{}),startTimeUnixNano:a,timeUnixNano:a,count:1,sum:c,scale:l,zeroCount:h,positive:p,negative:{offset:0,bucketCounts:[]},min:c,max:c,zeroThreshold:0})}(t,e);break;case"counter":!function(e,t){const{name:n,value:r,unit:o,description:i,timeUnixNano:a,attributes:s}=t;e[n]||(e[n]={name:n,unit:o||"1",description:i,sum:{aggregationTemporality:1,isMonotonic:!0,dataPoints:[]}}),e[n].sum.dataPoints.push({startTimeUnixNano:a,timeUnixNano:a,asDouble:r,attributes:mi(null!=s?s:{})})}(t,e);break;case"gauge":!function(e,t){const{name:n,value:r,unit:o,description:i,timeUnixNano:a,attributes:s}=t;e[n]||(e[n]={name:n,unit:o||"1",description:i,gauge:{dataPoints:[]}}),e[n].gauge.dataPoints.push({startTimeUnixNano:a,timeUnixNano:a,asDouble:r,attributes:mi(null!=s?s:{})})}(t,e)}})),Object.values(t)}exportByKeepalive(e,t){return f((function*(){if(0===e.length)return;const n=[],r=[];e.forEach((e=>{var t;null===(t=e.requiresKeepalive)||void 0===t||t?n.push(e):r.push(e)}));const o=[n.length>0?t(n,{keepalive:!0}):void 0,r.length>0?t(r,{keepalive:!1}):void 0].filter((e=>void 0!==e));yield Promise.all(o)}))()}formatLogs(e){return e.map((e=>{const t={timeUnixNano:e.timeUnixNano,observedTimeUnixNano:e.timeUnixNano,attributes:(n=p(p({},hi(this,bi)[bi]),e.attributes),Object.entries(n).map((([e,t])=>({key:e,value:_i(t)}))))};var n;return e.body&&(t.body={stringValue:e.body}),t}))}});var Ci=vi("url"),ki=vi("serviceName"),xi=vi("logger"),Pi=vi("fetchFn"),Ti=vi("maxPayloadSizeBytes"),Di=vi("retry");function Ni(e){const t=Oi(e);if(t<=1)return;const n=Math.ceil(t/2);return[$i(e,0,n),$i(e,n,t)]}function $i(e,t,n){switch(!0){case"exponentialHistogram"in e:return p(p({},e),{},{exponentialHistogram:p(p({},e.exponentialHistogram),{},{dataPoints:e.exponentialHistogram.dataPoints.slice(t,n)})});case"histogram"in e:return p(p({},e),{},{histogram:p(p({},e.histogram),{},{dataPoints:e.histogram.dataPoints.slice(t,n)})});case"gauge"in e:return p(p({},e),{},{gauge:p(p({},e.gauge),{},{dataPoints:e.gauge.dataPoints.slice(t,n)})});case"sum"in e:return p(p({},e),{},{sum:p(p({},e.sum),{},{dataPoints:e.sum.dataPoints.slice(t,n)})});default:return Mi(e)}}function Oi(e){switch(!0){case"exponentialHistogram"in e:return e.exponentialHistogram.dataPoints.length;case"histogram"in e:return e.histogram.dataPoints.length;case"gauge"in e:return e.gauge.dataPoints.length;case"sum"in e:return e.sum.dataPoints.length;default:return Mi(e)}}function Mi(e){throw new Error(`Unhandled metric type: ${JSON.stringify(e)}`)}d("aa",class{constructor(e,t,n){var r;Object.defineProperty(this,Ci,{writable:!0,value:void 0}),Object.defineProperty(this,ki,{writable:!0,value:void 0}),Object.defineProperty(this,xi,{writable:!0,value:void 0}),Object.defineProperty(this,Pi,{writable:!0,value:void 0}),Object.defineProperty(this,Ti,{writable:!0,value:void 0}),Object.defineProperty(this,Di,{writable:!0,value:void 0}),hi(this,Ci)[Ci]=e.replace(/\/v1\/(logs|metrics|traces)\/?$/,""),hi(this,ki)[ki]=t,hi(this,xi)[xi]=null==n?void 0:n.logger,hi(this,Pi)[Pi]=null==n?void 0:n.fetchFn,hi(this,Ti)[Ti]=null!==(r=null==n?void 0:n.maxPayloadSizeBytes)&&void 0!==r?r:51200,hi(this,Di)[Di]=null==n?void 0:n.retry}exportMetrics(e,t){var n=this;return f((function*(){var r;const o=null===(r=null==t?void 0:t.keepalive)||void 0===r||r;yield n.exportBatches("/v1/metrics",[...e],(e=>({resourceMetrics:[{resource:{attributes:[{key:"service.name",value:{stringValue:hi(n,ki)[ki]}}]},scopeMetrics:[{scope:{name:"open-telemetry-mini-client",version:"1.1.0",attributes:[]},metrics:e}]}]})),o,{splitEntry:Ni,describeEntry:e=>
1({metricName:e.name,dataPointCount:Oi(e)})})}))()}exportLogs(e,t){var n=this;return f((function*(){var r;const o=null===(r=null==t?void 0:t.keepalive)||void 0===r||r;yield n.exportBatches("/v1/logs",[...e],(e=>({resourceLogs:[{resource:{attributes:[{key:"service.name",value:{stringValue:hi(n,ki)[ki]}}]},scopeLogs:[{scope:{name:"open-telemetry-mini-client",version:"1.1.0",attributes:[]},logRecords:e}]}]})),o)}))()}exportTo(e,t,n){var r=this;return f((function*(){yield r.exportSerializedWithRetry(r.serializeBody(e),t,n)}))()}serializeBody(e){const t=JSON.stringify(e),n=(new TextEncoder).encode(t).length;if(n>hi(this,Ti)[Ti])throw new Ii(n,hi(this,Ti)[Ti]);return{body:e,jsonBody:t}}exportSerializedTo(e,t,n){var r=this;return f((function*({body:e,jsonBody:t},n,o){var i;const a=yield r.exporterFetch()(`${hi(r,Ci)[Ci]}${n}`,{method:"POST",keepalive:o,headers:{"Content-Type":"application/json"},body:t});if(null===(i=hi(r,xi)[xi])||void 0===i||i.log({status:a.status}),!a.ok){if(400===a.status){const e=yield a.text();throw new Ri(`Invalid OpenTelemetry Data: ${e}`)}if(429===a.status||503===a.status){const t=yield a.text(),n=a.headers.get("Retry-After"),r=n?{seconds:Number(n)}:void 0;throw new Ri("Server did not accept data",{errorData:t,retryAfter:r,body:e})}if(401===a.status||403===a.status){const t=yield a.text();throw new Li(`Authentication failed: ${a.status} ${401===a.status?"Unauthorized":"Forbidden"}`,{errorData:t,body:e})}throw new Ri(`Server responded with ${a.status}`)}})).apply(this,arguments)}exportSerializedWithRetry(e,t,n){var r=this;return f((function*(){const o=()=>r.exportSerializedTo(e,t,n);yield hi(r,Di)[Di]?hi(r,Di)[Di](o):o()}))()}exporterFetch(){return hi(this,Pi)[Pi]||fetch}exportBatches(e,t,n,r,o){var i=this;return f((function*(){const a=i.serializedBatches(t,n,o);for(const t of a)yield i.exportSerializedWithRetry(t,e,r)}))()}serializedBatches(e,t,n){if(0===e.length)return[];try{return[this.serializeBody(t(e))]}catch(i){var r;if(!(i instanceof Ii))throw i;if(e.length>1){const r=Math.ceil(e.length/2);return[...this.serializedBatches(e.slice(0,r),t,n),...this.serializedBatches(e.slice(r),t,n)]}const a=e[0];if(void 0===a)throw i;const s=null==n||null===(r=n.splitEntry)||void 0===r?void 0:r.call(n,a);var o;if(!s)throw i.metricDetails=null==n||null===(o=n.describeEntry)||void 0===o?void 0:o.call(n,a),i;return[...this.serializedBatches([s[0]],t,n),...this.serializedBatches([s[1]],t,n)]}}});class Ri extends Error{constructor(e,t){super(e),this.metadata=void 0,this.name="OpenTelemetryClientError",this.metadata=t}}d("aj",Ri);class Ii extends Error{constructor(e,t){const n="number"==typeof e&&void 0!==t;super(n?`Payload size ${e} exceeds ${t} bytes`:String(e)),this.name="PayloadTooLargeError",this.payloadSizeBytes=void 0,this.payloadSizeLimitBytes=void 0,this.metricDetails=void 0,n&&(this.payloadSizeBytes=e,this.payloadSizeLimitBytes=t)}}
1class Li extends Error{constructor(e,t){super(e),this.name="AuthenticationFailedError",this.metadata=void 0,this.name="AuthenticationFailedError",this.metadata=t}}function Fi(e){return Ui(e).map((e=>e instanceof Error?e:new ji(`[${typeof e}] ${function(e){if("function"==typeof e)return`${e.name||"anonymous"}`;if("string"!=typeof e)try{var t;return null!==(t=JSON.stringify(e))&&void 0!==t?t:typeof e}catch(n){}return`${e}`}(e).slice(0,10240)}`)))}function Ui(e,t=0){return t>=20?[e,"Truncated cause stack"]:e instanceof Error&&e.cause?[e,...Ui(e.cause,t+1)]:[e]}var ji=class extends Error{constructor(...e){super(...e),v(this,"name","BugsnagInvalidError")}},Bi=/^\s*at .*(\S+:\d+|\(native\))/m,qi=/^(eval@)?(\[native code])?$/;function Hi(e){if(-1===e.indexOf(":"))return[e];let t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[t[1],t[2]?Number(t[2]):void 0,t[3]?Number(t[3]):void 0]}function Wi(e,t){let n=function(e){return e.stack?e.stack.match(Bi)?function(e){return e.stack.split("\n").filter((e=>!!e.match(Bi))).map((e=>{let t=e.replace(/^\s+/,"").replace(/^.*?\s+/,""),n=t.match(/ (\(.+\)$)/);t=n?t.replace(n[0],""):t;let r=Hi(n?n[1]:t);return{method:n&&t||void 0,file:["eval","<anonymous>"].indexOf(r[0])>-1?void 0:r[0],lineNumber:r[1],columnNumber:r[2]}}))}(e):function(e){return e.stack.split("\n").filter((e=>!e.match(qi))).map((e=>{if(-1===e.indexOf("@")&&-1===e.indexOf(":"))return{method:e};let t=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=e.match(t),r=n&&n[1]?n[1]:void 0,o=Hi(e.replace(t,""));return{method:r,file:o[0],lineNumber:o[1],columnNumber:o[2]}}))}(e):[]}(t).map((t=>{var n,r,o,i;let a=null===(n=t.file)||void 0===n?void 0:n.includes(e);return{method:null!==(r=t.method)&&void 0!==r?r:"",file:null!==(o=t.file)&&void 0!==o?o:"",lineNumber:null!==(i=t.lineNumber)&&void 0!==i?i:0,columnNumber:t.columnNumber,inProject:a}}));if(t instanceof ji){let e=n.findIndex((e=>e.method.endsWith("notify")));e>-1&&(n=n.slice(e+1))}return n}d("ak",class{constructor(e){var t,n,r;v(this,"breadcrumbs",[]),v(this,"apiKey",void 0),v(this,"plugins",void 0),v(this,"appId",void 0),v(this,"appType",void 0),v(this,"appVersion",void 0),v(this,"releaseStage",void 0),v(this,"locale",void 0),v(this,"userAgent",void 0),v(this,"metadata",void 0),v(this,"persistedMetadata",void 0),v(this,"onError",void 0),v(this,"onPostErrorListeners",[]),v(this,"endpoints",void 0),v(this,"session",void 0),this.apiKey=e.apiKey,this.appType=e.appType,this.appId=e.appId,this.appVersion=e.appVersion,this.releaseStage=e.releaseStage,this.locale=e.locale,this.userAgent=e.userAgent,this.metadata=e.metadata,this.onError=e.onError,this.persistedMetadata={},this.endpoints=null!==(t=e.endpoints)&&void 0!==t?t:{notify:"https://error-analytics-production.shopifysvc.com",sessions:"https://error-analytics-sessions-production.shopifysvc.com/observeonly"},this.plugins=null!==(n=e.plugins)&&void 0!==n?n:[],this.plugins.forEach((e=>e.load(this))),this.leaveBreadcrumb("Bugsnag started",void 0,"state"),(null===(r=e.withSessionTracking)||void 0===r||r)&&(this.session={id:this.getRandomUUID(),startedAt:(new Date).toISOString(),events:{handled:0,unhandled:0}},this.startSession())}addMetadata(e){for(let t of Object.keys(e))this.persistedMetadata[t]=e[t]}getSessionId(){var e;return null===(e=this.session)||void 0===e?void 0:e.id}leaveBreadcrumb(e,t,n="manual"){this.breadcrumbs.push({name:e,metaData:t,type:n,timestamp:(new Date).toISOString()})}notify(e,{errorClass:t,severity:n,severityType:r,handled:o=!0,metadata:i,context:a,groupingHash:s}={}){var u,c;let l=Fi(e),d=p(p(p({},this.metadata),this.persistedMetadata),i),f=this.buildBugsnagEvent(l,{errorClass:t,severityType:r,handled:o,severity:n,metadata:d,context:a,groupingHash:s});if((null===(u=null===(c=this.onError)||void 0===c?void 0:c.call(this,f,e))||void 0===u||u)&&"development"!==this.releaseStage){this.updateAndAppendSessionInformation(f);let t=this.sendToBugsnag(f);return this.onPostErrorListeners.forEach((t=>t(f,e))),t}return Promise.resolve()}addOnPostError(e){this.onPostErrorListeners.push(e)}updateAndAppendSessionInformation(e){this.session&&(e.unhandled?this.session.events.unhandled++:this.session.events.handled++,e.session=this.session)}buildBugsnagEvent(e,{errorClass:t,severity:n="error",severityType:r="handledException",handled:o,metadata:i={},context:a,groupingHash:s}){let u=(new Date).toISOString(),{breadcrumbs:c,appId:l,appType:d,appVersion:f,releaseStage:h,locale:p,userAgent:v}=this,m=e.map(((e,n)=>({errorClass:0===n&&null!=t?t:e.name,stacktrace:Wi(l,e),message:e.message,type:"browserjs"})));return{payloadVersion:"5",exceptions:m,severity:n,severityReason:{type:r},unhandled:!o,app:{id:l,type:d,version:f,releaseStage:h},device:{time:u,locale:p,userAgent:v},breadcrumbs:c,context:a,metaData:i,groupingHash:s}}startSession(){var e=this;return f((function*(){if("development"===e.releaseStage)return void console.log("Skipping error logging session tracking in development mode");let{apiKey:t}=e,n={notifier:{name:"Bugsnag JavaScript",version:"7.22.2",url:"https://github.com/bugsnag/bugsnag-js"},app:{version:e.appVersion,releaseStage:e.releaseStage,type:e.appType}
1,device:{id:e.appId,locale:e.locale,userAgent:e.userAgent},sessions:[e.session]};try{var r,o;yield fetch(e.endpoints.sessions,{method:"POST",headers:{"Content-Type":"application/json","Bugsnag-Api-Key":t,"Bugsnag-Payload-Version":"5","Bugsnag-Sent-At":null!==(r=null===(o=e.session)||void 0===o?void 0:o.startedAt)&&void 0!==r?r:(new Date).toISOString()},body:JSON.stringify(Gi(n))})}catch(qe){console.warn("[bugsnag-light] failed to start session"),console.warn(qe)}}))()}sendToBugsnag(e){var t=this;return f((function*(){let{apiKey:n}=t,r={apiKey:n,notifier:{name:"Bugsnag JavaScript",version:"7.22.2",url:"https://github.com/bugsnag/bugsnag-js"},events:[e]};try{yield fetch(t.endpoints.notify,{method:"POST",headers:{"Content-Type":"application/json","Bugsnag-Api-Key":n,"Bugsnag-Payload-Version":"5","Bugsnag-Sent-At":e.device.time},body:JSON.stringify(Gi(r))})}catch(aa){console.warn("[bugsnag-light] failed to send an event"),console.warn(aa)}}))()}getRandomUUID(){try{return crypto.randomUUID()}catch(e){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}}});var Ki=50;function Gi(e,t=new Set,n=0){if(null===e||"object"!=typeof e)return e;if(n>=Ki)return"[MaxDepth]";if(t.has(e))return"[Circular]";let r=new Set(t);if(r.add(e),Array.isArray(e))return e.map((e=>Gi(e,r,n+1)));let o={};for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=Gi(e[i],r,n+1));return o}var zi=class e extends Error{constructor(t,n){super(t,n),v(this,"reason",void 0),this.name="BreadcrumbsPluginFetchError",Object.setPrototypeOf(this,e.prototype)}};function Vi(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function Ji(e){var t;let n=e.tagName;if(e.id&&(n+=`#${e.id}`),null!==(t=e.className)&&void 0!==t&&t.length&&(n+=`.${e.className.replace(/ /g,".")}`),!self.document.querySelectorAll)return n;try{if(1===self.document.querySelectorAll(n).length)return n}catch(r){return n}return e.parentNode&&e.parentNode.childNodes.length>1&&(n+=`:nth-child(${Array.from(e.parentNode.children).indexOf(e)+1})`),1===self.document.querySelectorAll(n).length?n:e.parentElement?`${Ji(e.parentElement)} > ${n}`:n}function Yi(e){try{let t=new URL(e);return`${t.pathname}${t.search}${t.hash}`}catch(t){return e}}function Zi(e){try{return e.history.state}catch(t){return{}}}function Xi({fn:e,leaveBreadcrumb:t,target:n,win:r}){let o=n[e];n[e]=(i,a,s)=>{t(`History ${e}`,function({win:e,state:t,title:n,url:r}){let o=Yi(e.location.href);return{title:n,state:t,prevState:Zi(e),to:r||o,from:o}}({win:r,state:i,title:a,url:s}),"navigation"),o.apply(n,[i,a,s])}}function Qi({message:e,url:t,leaveBreadcrumb:n,breadcrumbMetadata:r}){t.startsWith("https://notify.bugsnag")||n(e,r,"request")}d("aS",{load(e){e.addOnPostError((t=>{e.leaveBreadcrumb(t.exceptions[0].errorClass,{errorClass:t.exceptions[0].errorClass,errorMessage:t.exceptions[0].message,severity:t.severity},"error")}))}}),d("aT",{load(e){"addEventListener"in self&&self.addEventListener("click",(t=>{let n="[hidden]";try{let e=function(e){return Vi(e)&&e.nodeType===Node.ELEMENT_NODE}(t.target)?t.target:null;n=e?Ji(e):"(Non-Element Target)"}catch(o){}let r=function(){try{return window.self===window.top?"in-top-window":"in-same-origin-iframe"}catch(e){return"in-cross-origin-iframe"}}();e.leaveBreadcrumb("UI click",{targetSelector:n,targetFrame:r},"user")}),!0)}}),d("aU",{load(e){let t=["log","debug","info","warn","error"].filter((e=>typeof console<"u"&&"function"==typeof console[e]));for(let n of t){let t=console[n];console[n]=(...r)=>{e.leaveBreadcrumb("Console output",r.reduce(((e,t,n)=>{let r="[Unknown value]";try{r=String(t)}catch(o){}if("[object Object]"===r)try{r=JSON.stringify(t)}catch(i){}return e[`[${n}]`]=r,e}),{severity:n}),"log"),t.apply(console,r)}}}}),d("aV",{load(e){var t;if(!("addEventListener"in self))return;let n=t=>()=>e.leaveBreadcrumb(t,void 0,"navigation");self.addEventListener("pagehide",n("Page hidden"),!0),self.addEventListener("pageshow",n("Page shown"),!0),self.addEventListener("load",(()=>{self.addEventListener("popstate",n("Navigated back"),!0)}),!0),null!==(t=self.document)&&void 0!==t&&t.addEventListener("DOMContentLoaded",n("DOMContentLoaded"),!0),self.location&&self.addEventListener("hashchange",(t=>e.leaveBreadcrumb("Hash changed",{from:t.oldURL&&Yi(t.oldURL),to:Yi(t.oldURL?t.newURL:self.location.href),state:t.oldURL&&Zi(self)},"navigation")),!0);let r=e.leaveBreadcrumb.bind(e);self.history&&self instanceof Window&&("function"==typeof self.history.replaceState&&Xi({fn:"replaceState",target:self.history,leaveBreadcrumb:r,win:self}),"function"==typeof self.history.pushState&&Xi({fn:"pushState",target:self.history,leaveBreadcrumb:r,win:self}))}}),d("aW",{load(e){if(!("fetch"in self))return;let t=self.fetch;self.fetch=function(n,r){let o,i="GET";!function(e){return e instanceof Request||Vi(e)&&"url"in e}(n)?o=n.toString():(o=n.url,i=n.method),r&&"string"==typeof r.method&&r.method.length&&(i=r.method);let a=e.leaveBreadcrumb.bind(e);return new Promise(((e,s)=>{t(n,r).then((t=>{var n;let r=null===(n=t.headers)||void 0===n?void 0:n.get("x-request-id");Qi({message:"fetch() "+(t.status>=400?"failed":"succeeded"),url:o,leaveBreadcrumb:a,breadcrumbMetadata:p({request:`${i} ${o}`,status:t.status},r&&{requestId:r})}),e(t)}
vendor: 4,407 bytes, line 1
1)).catch((e=>{Qi({message:"fetch() error",url:o,leaveBreadcrumb:a,breadcrumbMetadata:{error:null==e?void 0:e.message,request:`${i} ${o}`}}),s(new zi(null==e?void 0:e.message,{cause:e}))}))}))}}});var ea,ta=-1,na=function(e){addEventListener("pageshow",(function(t){t.persisted&&(ta=t.timeStamp,e(t))}),!0)},ra=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},oa=function(){var e=ra();return e&&e.activationStart||0},ia=function(e,t){var n=ra(),r="navigate";return ta>=0?r="back-forward-cache":n&&(document.prerendering||oa()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},aa=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},sa=function(e,t,n,r){var o,i;return function(a){t.value>=0&&(a||r)&&((i=t.value-(o||0))||void 0===o)&&(o=t.value,t.delta=i,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t))}},ua=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},ca=function(e){document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&e()}))},la=function(e){var t=!1;return function(){t||(e(),t=!0)}},da=-1,fa=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},ha=function(e){"hidden"===document.visibilityState&&da>-1&&(da="visibilitychange"===e.type?e.timeStamp:0,va())},pa=function(){addEventListener("visibilitychange",ha,!0),addEventListener("prerenderingchange",ha,!0)},va=function(){removeEventListener("visibilitychange",ha,!0),removeEventListener("prerenderingchange",ha,!0)},ma=function(){return da<0&&(da=fa(),pa(),na((function(){setTimeout((function(){da=fa(),pa()}),0)}))),{get firstHiddenTime(){return da}}},_a=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},ya=[1800,3e3],ga=[.1,.25],wa=0,Ea=1/0,ba=0,Aa=function(e){e.forEach((function(e){e.interactionId&&(Ea=Math.min(Ea,e.interactionId),ba=Math.max(ba,e.interactionId),wa=ba?(ba-Ea)/7+1:0)}))},Sa=function(){return ea?wa:performance.interactionCount||0},Ca=function(){"interactionCount"in performance||ea||(ea=aa("event",Aa,{type:"event",buffered:!0,durationThreshold:0}))},ka=[],xa=new Map,Pa=0,Ta=[],Da=function(e){if(Ta.forEach((function(t){return t(e)})),e.interactionId||"first-input"===e.entryType){var t=ka[ka.length-1],n=xa.get(e.interactionId);if(n||ka.length<10||e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};xa.set(r.id,r),ka.push(r)}ka.sort((function(e,t){return t.latency-e.latency})),ka.length>10&&ka.splice(10).forEach((function(e){return xa.delete(e.id)}))}}},Na=function(e){var t=self.requestIdleCallback||self.setTimeout,n=-1;return e=la(e),"hidden"===document.visibilityState?e():(n=t(e),ca(e)),n},$a=[200,500],Oa=[2500,4e3],Ma={};d({a$:function(e,t){t=t||{},function(e,t){t=t||{},_a((function(){var n,r=ma(),o=ia("FCP"),i=aa("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(i.disconnect(),e.startTime<r.firstHiddenTime&&(o.value=Math.max(e.startTime-oa(),0),o.entries.push(e),n(!0)))}))}));i&&(n=sa(e,o,ya,t.reportAllChanges),na((function(r){o=ia("FCP"),n=sa(e,o,ya,t.reportAllChanges),ua((function(){o.value=performance.now()-r.timeStamp,n(!0)}))})))}))}(la((function(){var n,r=ia("CLS",0),o=0,i=[],a=function(e){e.forEach((function(e){if(!e.hadRecentInput){var t=i[0],n=i[i.length-1];o&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,i.push(e)):(o=e.value,i=[e])}})),o>r.value&&(r.value=o,r.entries=i,n())},s=aa("layout-shift",a);s&&(n=sa(e,r,ga,t.reportAllChanges),ca((function(){a(s.takeRecords()),n(!0)})),na((function(){o=0,r=ia("CLS",0),n=sa(e,r,ga,t.reportAllChanges),ua((function(){return n()}))})),setTimeout(n,0))}
1)))},aZ:function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},_a((function(){var n;Ca();var r,o=ia("INP"),i=function(e){Na((function(){e.forEach(Da);var t=function(){var e=Math.min(ka.length-1,Math.floor((Sa()-Pa)/50));return ka[e]}();t&&t.latency!==o.value&&(o.value=t.latency,o.entries=t.entries,r())}))},a=aa("event",i,{durationThreshold:null!==(n=t.durationThreshold)&&void 0!==n?n:40});r=sa(e,o,$a,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),ca((function(){i(a.takeRecords()),r(!0)})),na((function(){Pa=Sa(),ka.length=0,xa.clear(),o=ia("INP"),r=sa(e,o,$a,t.reportAllChanges)})))})))},a_:function(e,t){t=t||{},_a((function(){var n,r=ma(),o=ia("LCP"),i=function(e){t.reportAllChanges||(e=e.slice(-1)),e.forEach((function(e){e.startTime<r.firstHiddenTime&&(o.value=Math.max(e.startTime-oa(),0),o.entries=[e],n())}))},a=aa("largest-contentful-paint",i);if(a){n=sa(e,o,Oa,t.reportAllChanges);var s=la((function(){Ma[o.id]||(i(a.takeRecords()),a.disconnect(),Ma[o.id]=!0,n(!0))}));["keydown","click"].forEach((function(e){addEventListener(e,(function(){return Na(s)}),{once:!0,capture:!0})})),ca(s),na((function(r){o=ia("LCP"),n=sa(e,o,Oa,t.reportAllChanges),ua((function(){o.value=performance.now()-r.timeStamp,Ma[o.id]=!0,n(!0)}))}))}}))}});class Ra{constructor(e){this.to=e}}class Ia extends Error{constructor(){super(...arguments),this.name="NavigationError"}}function La(e,t,n,r){Object.defineProperty(e,"state",{value:t,writable:!1});const o=Ga(e,r);Object.defineProperty(e,"prefix",{value:o,writable:!1});const i=Wa(e.pathname.replace(null!=o?o:"",""));return Object.defineProperty(e,"normalizedPath",{value:i,writable:!1}),Object.defineProperty(e,"key",{value:n,writable:!1}),e}function Fa(e,t){if(e instanceof URL){if(e.origin!==t.origin)throw new Ia(`You can’t perform a client side navigation to ${e.href} from ${t.href}`);return new URL(e.href)}if("object"==typeof e){const{pathname:n,search:r,hash:o}=e,i=null!=n?n:t.pathname,a=function(e){return null==e?"":"string"==typeof e?ja("?",e):e instanceof URLSearchParams?ja("?",e.toString()):ja("?",Object.keys(e).reduce(((t,n)=>`${t}${n}=${encodeURIComponent(e[n])}`),""))}(r),s=ja("#",o);return new URL(Ua(`${i}${a}${s}`,t.prefix),t.href)}return"function"==typeof e?Fa(e(t),t):new URL(Ua(e,t.prefix),qa(t.href))}function Ua(e,t){return t&&0===e.indexOf("/")?`${qa(t)}${e.slice(1)}`:e}function ja(e,t=""){return 0===t.length||t[0]===e?t:`${e}${t}`}function Ba(){return`${String(Date.now())}${Math.random()}`}function qa(e){return 0===e.length?"/":"/"===e[e.length-1]?e:`${e}/`}function Ha(e){return 1===e.length?e:"/"===e[e.length-1]?e.slice(0,-1):e}function Wa(e){return"/"===e[0]?Ha(e):`/${Ha(e)}`}function Ka(e,t,n,r){const o=function(e,t,n=""){var r;const o=null!==(r=Ga(e,t))&&void 0!==r?r:"",i=n?`${o}${n}`:o,a="/"===(s=Ha(e.pathname.replace(i,"")))[0]?s.slice(1):s;var s;return{previousMatchedPathPrefix:n,remainderRelative:a,remainderAbsolute:`${qa(n)}${a}`}}(e,t,r);if(null==n)return{matched:Ha(o.remainderAbsolute)};if("function"==typeof n){if(!n(e))return;return{matched:Ha(o.remainderAbsolute)}}if("string"==typeof n){const e=Ha(n);if("/"===e)return"/"===o.remainderAbsolute?{matched:e,nextMatchedPathPrefix:e}:void 0;if("/"===e[0]){if(!o.remainderAbsolute.startsWith(e))return;return{matched:e,nextMatchedPathPrefix:e}}if(!o.remainderRelative.startsWith(e))return;return{matched:e,nextMatchedPathPrefix:`${o.previousMatchedPathPrefix}${Wa(e)}`}}if(n instanceof RegExp){const e=o.remainderRelative.match(n);if(null!=e&&0===e.index)return{matched:Ha(e[0]),nextMatchedPathPrefix:`${o.previousMatchedPathPrefix}${Wa(e[0])}`};const t=o.remainderAbsolute.match(n);if(null==t||0!==t.index)return;const r=Ha(t[0]);return{matched:r,nextMatchedPathPrefix:r}}}function Ga(e,t){if(!t)return;if("string"==typeof t)return 0===e.pathname.indexOf(t)?Ha(t):void 0;const n=new RegExp(t.source).exec(e.pathname);return null!=n&&0===n.index?Ha(n[0]):void 0}const za="_key";var Va=new WeakMap,Ja=new WeakMap,Ya=new WeakMap,Za=new WeakMap,Xa=new WeakMap,Qa=new WeakMap,es=new WeakMap,ts=new WeakMap,ns=new WeakSet;function rs(e,t){e.pathname!==t.pathname&&"undefined"!=typeof window&&(null!=s(es,this)&&window.cancelAnimationFrame(s(es,this)),u(es,this,window.requestAnimationFrame((()=>{u(es,this,void 0),document.body.focus()}))))}function os(e,t,n=!1){return[...s(Ya,this)].some((r=>r(e,t,n)))}function is(e,t){var n,r;const o=null!==(n=window.history.state)&&void 0!==n?n:{},{[za]:i}=o,a=l(o,[za].map(m));return La(new URL(window.location.href),a,null!==(r=null!=i?i:t)&&void 0!==r?r:B
1a(),e)}d("b0",class{constructor(e,{prefix:t,state:n}={}){!function(e,t){a(e,t),t.add(e)}(this,ns),i(this,Va,void 0),i(this,Ja,void 0),i(this,Ya,new Set),i(this,Za,new Set),i(this,Xa,!1),i(this,Qa,void 0),i(this,es,void 0),i(this,ts,(()=>{var e,t;const n=s(Va,this).value;if(n.pathname===window.location.pathname){const e=window.location.hash;if(null==e?void 0:e.slice(1))return}const r=s(Ja,this)[0],o=is(this.prefix,r),i=s(Ja,this).lastIndexOf(null!==(e=null===(t=window.history.state)||void 0===t?void 0:t[za])&&void 0!==e?e:r),a=s(Ja,this).lastIndexOf(n.key)-i;if(!s(Xa,this)&&c(ns,this,os).call(this,o,(()=>{a&&(u(Xa,this,!0),this.go(a))}),!0))return u(Xa,this,!0),void this.go(-a);u(Xa,this,!1),s(Va,this).value=o,c(ns,this,rs).call(this,n,o)})),this.prefix=t,u(Va,this,et(e?La(e,null!=n?n:{},Ba(),t):is(t))),this.currentUrl=s(Va,this),u(Ja,this,[s(Va,this).value.key]),"undefined"!=typeof window&&window.addEventListener("popstate",s(ts,this))}currentUrlMatches(e){return null!=Ka(s(Va,this).value,this.prefix,e)}navigate(e,{state:t={},replace:n=!1}={}){const r=s(Va,this).value,o=Fa(e,r);for(const u of s(Za,this))u(r,o);const i=Ba(),a=La(o,t,i,this.prefix),l=p(p({},t),{},{[za]:i});if(!s(Xa,this)&&c(ns,this,os).call(this,a,(()=>{u(Xa,this,!0),this.navigate(a,{replace:n})})))return;u(Xa,this,!1);const d=`${(f=a).pathname}${f.search}${f.hash}`;var f;try{history[n?"replaceState":"pushState"](l,"",d)}catch(m){return void window.location[n?"replace":"assign"](d)}const h=s(Ja,this).lastIndexOf(r.key);n?s(Ja,this).splice(h,1,i):s(Ja,this).splice(h+1,s(Ja,this).length-h-1,i);const v=is(this.prefix,i);s(Va,this).value=v,c(ns,this,rs).call(this,r,v)}redirect(e){if(null==e)return;const t=s(Va,this).value,n=Fa(e,t);if("undefined"==typeof window)throw new Ra(n);const r=t.key;if(null!=s(Qa,this))return s(Qa,this).to=n,void(s(Qa,this).fromNavigationKey=r);u(Qa,this,{to:n,fromNavigationKey:r}),window.requestAnimationFrame((()=>{const e=s(Qa,this);u(Qa,this,void 0),null!=e&&s(Va,this).value.key===e.fromNavigationKey&&this.navigate(e.to,{replace:!0})}))}beforeNavigate(e){return s(Za,this).add(e),()=>{s(Za,this).delete(e)}}block(e=()=>!0){return s(Ya,this).add(e),()=>{s(Ya,this).delete(e)}}go(e){window.history.go(e)}back(e=-1){this.go(e)}forward(e=1){this.go(e)}resolve(e){return Fa(e,s(Va,this).value)}});const as="http://localhost:8082",ss="https://monorail-edge.shopifysvc.com",us="/v1/produce";function cs(e){return void 0!==e.schemaId}class ls{constructor(e){this.producer=e}do(e,t){return cs(e)?this.producer.produce(e):this.producer.produceBatch(e)}}function ds(){if("undefined"!=typeof crypto&&crypto&&"function"==typeof crypto.randomUUID)return crypto.randomUUID();const e=new Array(36);for(let t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",e.map((e=>e.toString(16))).join("")}function fs(e,t=!0){return e&&Object.keys(e).length&&t?Object.keys(e).map((t=>({[hs(t)]:e[t]}))).reduce(((e,t)=>p(p({},e),t))):e}function hs(e){return e.split(/(?=[A-Z])/).join("_").toLowerCase()}function ps(e){return e.events.map((e=>{let t=!0,n=!0;return e&&e.options&&Object.prototype.hasOwnProperty.call(e.options,"convertEventCase")&&(t=Boolean(e.options.convertEventCase)),e&&e.options&&Object.prototype.hasOwnProperty.call(e.options,"convertMetaDataCase")&&(n=Boolean(e.options.convertMetaDataCase)),p({schema_id:e.schemaId,payload:fs(e.payload,t)},e.metadata&&{metadata:fs(e.metadata,n)})}))}class vs extends Error{constructor(e){super(`Error producing to the Monorail Edge. Response received: ${JSON.stringify(e)}`),v(this,"name","MonorailUnableToProduceError"),this.response=e,Object.setPrototypeOf(this,vs.prototype)}}d("aq",vs);class ms extends Error{constructor(e){super(`Response not from Monorail Edge. Response received: ${JSON.stringify(e)}`),v(this,"name","MonorailInterceptedProduceError"),this.response=e,Object.setPrototypeOf(this,ms.prototype)}}class _s extends Error{constructor(e){super(`Error producing to the Monorail Edge. Response received: ${JSON.stringify(e)}`),v(this,"name","MonorailBatchProduceError"),Object.setPrototypeOf(this,_s.prototype),this.response=e}}
1class ys extends Error{constructor(e,t){super(`Error completing request. A network failure may have prevented the request from completing. Error: ${e}. Schemas: ${Array.from(new Set(t)).join(", ")}`),v(this,"name","MonorailRequestError"),Object.setPrototypeOf(this,ys.prototype)}}d("ap",ys);class gs extends Error{constructor(e,t){super(`Error reading response from Monorail Edge. Status: ${t||"unknown"}. Error: ${(null==e?void 0:e.message)||"Unknown error"}`),v(this,"name","MonorailResponseReadError"),this.error=e,this.status=t,Object.setPrototypeOf(this,gs.prototype)}}d("ao",gs);class ws{static withEndpoint(e){return new ws(`https://${new URL(e).hostname}`)}constructor(e=as,t={}){var n,r;if(this.edgeDomain=e,this.optionsOrKeepalive=t,"boolean"==typeof t)return this.keepalive=t,void(this.detectInterceptedErrorEnabled=!1);this.keepalive=null!==(n=t.keepalive)&&void 0!==n&&n,this.detectInterceptedErrorEnabled=null!==(r=t.detectInterceptedErrorEnabled)&&void 0!==r&&r}produceBatch(e){var t=this;return f((function*(){const n={events:ps(e),metadata:fs(e.metadata)};let r,o;try{var i,a;r=yield fetch(t.produceBatchEndpoint(),{method:"post",headers:Es(e.metadata),body:JSON.stringify(n),keepalive:null!==(i=null===(a=e.options)||void 0===a?void 0:a.keepalive)&&void 0!==i?i:t.resolveKeepaliveFromEvents(e.events)})}catch(s){throw new ys(s,e.events.map((e=>e.schemaId)))}if(207===r.status){const e=yield r.json();throw new _s(e)}try{o=yield r.text()}catch(s){throw new gs(s,r.status)}if(!r.ok){if(!Boolean(r.headers.get("x-request-id"))&&t.detectInterceptedErrorEnabled)throw new ms({status:r.status,message:o});throw new vs({status:r.status,message:o})}return{status:r.status}}))()}produce(e){var t=this;return f((function*(){let n,r,o=!0;e&&e.options&&Object.prototype.hasOwnProperty.call(e.options,"convertEventCase")&&(o=Boolean(e.options.convertEventCase));try{var i,a;n=yield function(e){return bs.apply(this,arguments)}({endpoint:t.produceEndpoint(),keepalive:null!==(i=null===(a=e.options)||void 0===a?void 0:a.keepalive)&&void 0!==i?i:t.keepalive,event:p(p({},e),{},{payload:fs(e.payload,o)})})}catch(s){throw new ys(s,[e.schemaId])}if(!n)throw new vs({message:"No response from edge"});try{r=yield n.text()}catch(s){throw new gs(s,n.status)}if(!n.ok){if(!Boolean(n.headers.get("x-request-id"))&&t.detectInterceptedErrorEnabled)throw new ms({status:n.status,message:r});throw new vs({status:n.status,message:r})}return{status:n.status}}))()}resolveKeepaliveFromEvents(e){for(const n of e){var t;if(!0===(null===(t=n.options)||void 0===t?void 0:t.keepalive))return!0}return this.keepalive}produceBatchEndpoint(){return this.edgeDomain+"/unstable/produce_batch"}produceEndpoint(){return this.edgeDomain+us}}function Es(e){const t={"Content-Type":"application/json; charset=utf-8","X-Monorail-Edge-Event-Created-At-Ms":(e&&e.eventCreatedAtMs||Date.now()).toString(),"X-Monorail-Edge-Event-Sent-At-Ms":Date.now().toString(),"X-Monorail-Edge-Client-Message-Id":(e&&e.clientMessageId||ds()).toString()};return e&&e.userAgent&&(t["User-Agent"]=e.userAgent),e&&e.remoteIp&&(t["X-Forwarded-For"]=e.remoteIp),e&&e.deviceInstallId&&(t["X-Monorail-Edge-Device-Install-Id"]=e.deviceInstallId),e&&e.client&&(t["X-Monorail-Edge-Client"]=e.client),e&&e.clientOs&&(t["X-Monorail-Edge-Client-OS"]=e.clientOs),t}function bs(){return(bs=f((function*({endpoint:e,event:t,keepalive:n}){var r,o,i,a,s;const u=t.metadata?{clientMessageId:null===(r=t.metadata)||void 0===r?void 0:r.clientMessageId,eventCreatedAtMs:null===(o=t.metadata)||void 0===o?void 0:o.eventCreatedAtMs,consent:null===(i=t.metadata)||void 0===i?void 0:i.consent,consent_provider:null===(a=t.metadata)||void 0===a?void 0:a.consent_provider,consent_version:null===(s=t.metadata)||void 0===s?void 0:s.consent_version}:void 0;return fetch(null!=e?e:ss+us,{method:"post",headers:Es(t.metadata),body:JSON.stringify({schema_id:t.schemaId,payload:t.payload,metadata:u&&fs(u,!0)}),keepalive:n})}))).apply(this,arguments)}class As{static printWelcomeMessage(e){console.log(`%c👋 from Monorail%c\n\nWe've noticed that you're${e?"":" not"} running in debug mode. As such, we will ${e?"produce":"not produce"}
1 Monorail events to the console. \n\nIf you want Monorail events to ${e?"stop":"start"} appearing here, %cset debugMode=${(!e).toString()}%c, for the Monorail Log Producer in your code.`,"font-size: large;","font-size: normal;","font-weight: bold;","font-weight: normal;")}constructor(e){this.sendToConsole=e,e&&As.printWelcomeMessage(e)}produce(e){var t=this;return f((function*(){return t.sendToConsole&&console.log("Monorail event produced",e),new Promise((t=>{t(e)}))}))()}produceBatch(e){return this.sendToConsole&&console.log("Monorail Batch event produced",e),new Promise((t=>{t(e)}))}}class Ss{static createLogProducer(e){return new Ss(new As(e.debugMode),e.middleware||[])}static createHttpProducerWithEndpoint(e,t=[]){return new Ss(ws.withEndpoint(e),t)}static createHttpProducer(e){return new Ss(e.production?new ws(ss,e.options):new ws(as,e.options),e.middleware||[])}static buildMiddlewareChain(e,t=0){return t===e.length?this.identityFn:n=>e[t].do(n,this.buildMiddlewareChain(e,t+1))}constructor(e,t){this.producer=e,this.middleware=t,this.executeChain=Ss.buildMiddlewareChain(this.middleware.concat(new ls(e)))}produce(e){return e.metadata=p({eventCreatedAtMs:Date.now(),clientMessageId:ds()},e.metadata),this.executeChain(e)}produceBatch(e){return this.executeChain(e)}}d("ar",Ss);class Cs{constructor(e){this.version=e.version}}d("b1",Cs),d("an",class{constructor(e,t=()=>!1){if(v(this,"eventsAwaitingConsent",[]),null==e||!e.provider)throw new ks("ConsentTrackingMiddleware requires an instance of ConsentTrackingProvider");this.isStrictlyNecessary=t,this.provider=e.provider}do(e,t){var n=this;return f((function*(){if(cs(e)){const r=yield n.provider.annotateEvent(e);return n.isConsentGivenForEmission(r)?(yield n.processBufferedEvents(t),t(r)):n.isStrictlyNecessary(r)?t(r):(n.eventsAwaitingConsent.push(e),Promise.resolve({status:0,message:"Consent not granted and event not marked strictly necessary, event not sent"}))}{if(n.isConsentGivenForEmission(yield n.provider.annotateEvent(e.events[0]))){yield n.processBufferedEvents(t);const r=yield Promise.all(e.events.map((e=>n.provider.annotateEvent(e))));return t(p(p({},e),{},{events:r}))}const r=e.events.filter((e=>!!n.isStrictlyNecessary(e)||(n.eventsAwaitingConsent.push(e),!1)));if(r.length>0){const o=yield Promise.all(r.map((e=>n.provider.annotateEvent(e))));return t(p(p({},e),{},{events:o}))}return Promise.resolve({status:0,message:"Consent not granted for any event, and no event marked strictly necessary, event batch not sent"})}}))()}isConsentGivenForEmission(e){var t;const n=null===(t=e.metadata)||void 0===t?void 0:t.consent,r=this.provider.getRequiredConsentForEmission();return Boolean(Array.isArray(n)&&n.some((e=>r.includes(e))))}processBufferedEvents(e){var t=this;return f((function*(){if(0===t.eventsAwaitingConsent.length)return;const n=t.eventsAwaitingConsent;t.eventsAwaitingConsent=[];const r=yield Promise.all(n.map((e=>t.provider.annotateEvent(e))));yield e({events:r})}))()}});class ks extends Error{constructor(e){super(e),Object.setPrototypeOf(this,ks.prototype)}}const xs="__quiltRouterScroll",Ps={},Ts="undefined"==typeof window?()=>{}:xe;function Ds(){return!0}function Ns(){}const $s=ce(null);class Os extends Error{constructor(){super(...arguments),this.name="PrefetcherError"}}function Ms(e){return null==e?"":"string"==typeof e?e:e instanceof RegExp?e.source:e.toString()}function Rs(e,t,n){if(0===n.length)return"";let r,o="";for(const a of n){const n=Ka(e,t.prefix,a,r);if(null==n)return!1;var i;r=null!==(i=n.nextMatchedPathPrefix)&&void 0!==i?i:r,o=n.matched}return o}function Is(e){let{event:t,handler:r}=e;return function(e,t,{target:n,once:r,passive:o,capture:i}={}){ke((()=>{const a=n||window,s=function(){if(null!==Fs)return Fs;try{const e=Object.defineProperty({},"once",{get(){Fs=!0}});document.addEventListener("test",Us,e)}catch(e){Fs=!1}return document.removeEventListener("test",Us),Fs}(),u=function(){if(null!==Ls)return Ls;try{const e=Object.defineProperty({},"passive",{get(){Ls=!0}});document.addEventListener("test",Us,e)}catch(e){Ls=!1}return document.removeEventListener("test",Us),Ls}(),c=r&&!s?function(e,t,n){return function(r){n(r),e.removeEventListener(t,n)}}(a,e,t):t;return s||u?(a.addEventListener(e,c,{once:r,passive:o,capture:i}),()=>{a.removeEventListener(e,c,{capture:i})}):(a.addEventListener(e,c,i),()=>{a.removeEventListener(e,c,i)})}),[e,t,n,r,o,i])}(t,r,l(e,n)),null}let Ls=null,Fs=null;function Us(){}const js=mr((function({router:e,children:t}){const n=Te((()=>function(e){let t=0;const n=new Set,r=new Set;return{registerRoutes(e){const n=new Set,o=new Set;function a(e,i=[]){const{children:s,match:u,renderPrefetch:c}=e,l=u?[...i,u]:i;if(null!=c){const e=l.map(Ms).join(",");if(o.has(e))throw new Os(`Duplicate prefetch registration for match chain "${e}"`);o.add(e);const i={id:"Prefetch"+t++,matches:l,render:c};n.add(i),r.add(i)}if(null!=s)for(const t of s)a(t,l)}for(const t of e)a(t);return n.size>0&&i(),()=>{if(0!==n.size){for(const e of n)r.delete(e);n.clear(),i()}}},getMatches:o,listenForMatch(e,t){function r(){t(o(e))}return n.add(r),()=>{n.delete(r)}}};function o(t){const n=[];for(const o of r){const r=Rs(t,e,o.matches);
1"string"==typeof r&&n.push({id:o.id,matched:r,render:o.render})}return n}function i(){for(const e of n)e()}}(e)),[e]),[r,o]=Se(null),[i,a]=Se([]),s=Pe(null),u=Pe(null),{current:c}=Pe("undefined"==typeof navigator||!("connection"in navigator)||!(null!==(l=navigator.connection)&&void 0!==l&&l.saveData));var l;ke((()=>{if(null!=r)return n.listenForMatch(r,a)}),[n,r]);const d=()=>{null!=s.current&&(window.clearTimeout(s.current),s.current=null,u.current=null)},f=De((({target:e})=>{if(null==e)return;const t=qs(e);if(null!=t){if(s.current){if(Bs(t,u.current))return;d()}u.current=t,s.current=window.setTimeout((()=>{d(),o(t),a(n.getMatches(t))}),150)}}),[n]),h=De((({target:e,relatedTarget:t})=>{if(null==e)return void d();if(null==r&&null==s.current)return;const n=qs(e),i=t&&qs(t);null!=s.current&&Bs(n,u.current)&&!Bs(i,u.current)&&d(),Bs(n,r)&&!Bs(i,r)&&(o(null),a([]))}),[r]),p=De((({target:e})=>{if(d(),null==e)return;const t=qs(e);null!=t&&(o(t),a(n.getMatches(t)))}),[n]),v=r?Kr("div",{style:{visibility:"hidden"},children:i.map((({id:e,matched:t,render:n})=>Kr("div",{children:n({url:r,matched:t})},e)))}):null,m=c?Kr(j,{children:[Kr(Is,{passive:!0,event:"mouseover",handler:f}),Kr(Is,{passive:!0,event:"focusin",handler:f}),Kr(Is,{passive:!0,event:"mouseout",handler:h}),Kr(Is,{passive:!0,event:"focusout",handler:h})]}):null;return Kr(j,{children:[Kr($s.Provider,{value:n,children:t}),Kr(Is,{passive:!0,event:"mousedown",handler:p}),m,v]})}));function Bs(e,t){return null==e&&e===t||null!=e&&null!=t&&e.href===t.href}function qs(e){if(!(e instanceof HTMLElement))return;const t=e.closest("[href], [data-href]");if(null==t||!(t instanceof HTMLElement))return;const n=t.getAttribute("href")||t.getAttribute("data-href");try{return n?new URL(n,window.location.href):void 0}catch(r){return}}function Hs({router:e}){return function(e,{id:t="__default",manual:n=!1,include:r=Ds,persist:o="sessionStorage"}={}){const i=e.currentUrl.value,a=Pe(null),s=Pe(),u=Pe(),c=Te((()=>"memory"===o?Ps:(()=>{try{var e;return JSON.parse(null!==(e=sessionStorage.getItem(xs))&&void 0!==e?e:"{}")}catch(t){return{}}})()),[o]),l=De((()=>{var e;const n=null!==(e=a.current)&&void 0!==e?e:document.documentElement;if(!r(i))return Ns;let l=c[i.key];if(l){const e=l[t];null==e?(l[t]=0,d(0)):d(e)}else l={[t]:0},c[i.key]=l,d(0);return f(),()=>{l[t]=n.scrollTop,f(),null!=u.current&&(window.cancelAnimationFrame(u.current),u.current=void 0)};function d(e){u.current=window.requestAnimationFrame((()=>{n.scrollTop=e,u.current=void 0}))}function f(){var e,t;"sessionStorage"===o&&(null!=(t=s.current)&&("function"==typeof window.cancelIdleCallback?window.cancelIdleCallback(t):"number"==typeof t&&window.clearTimeout(t)),s.current=(e=()=>{try{sessionStorage.setItem(xs,JSON.stringify(c))}catch(e){}},"function"==typeof window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,0)))}}),[i.normalizedPath]);Ts((()=>{if(!n)return l()}),[l])}(e),null}function Ws({router:e}){return function(e){const t=e.currentUrl.value;ke((()=>{if("undefined"==typeof window)return;const e=t.hash;if(!e||e.length<=1)return;const n=e.substring(1),r=document.getElementById(n);r&&window.requestAnimationFrame((()=>{r.scrollIntoView()}))}),[t.hash])}(e),null}d("bc",mr((function({children:e,router:t}){return Kr(js,{router:t,children:[e,Kr(Hs,{router:t}),Kr(Ws,{router:t})]})})));const Ks={}.hasOwnProperty;function Gs(...e){let t="";for(const n of e)n&&(t=Vs(t,zs(n)));return t}function zs(e){if("string"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return Gs(...e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();let t="";for(const n in e)Ks.call(e,n)&&e[n]&&(t=Vs(t,n));return t}function Vs(e,t){return t?e?`${e} ${t}`:t:e}const Js=ce(null),Ys=ce(null);function Zs(e,{scripts:t,styles:n,suspense:r,cacheErrors:o=!0}={}){const{id:i}=e,a=De((()=>e.resolve({cacheErrors:o})),[e,o]),{snapshot:s,subscribe:u}=Te((()=>({snapshot:()=>e.resolved,subscribe:t=>e.subscribe(t)})),[e]),c=hr(u,s);if(function(e,{scripts:t,styles:n}={}){const r=Ne(Ys);!function(o,i){const a=Ne(Js);null==a||a.perform((()=>{r&&e&&r.markAsUsed(e,{scripts:t,styles:n})}),i,void 0)}(0,null==r?void 0:r.serverAction)}(i,{scripts:t,styles:n}),r&&null==c)throw"undefined"==typeof window?new Promise((e=>{setTimeout((()=>{e(a())}),10)})):new Promise((e=>{setTimeout(f((function*(){e(yield a())})),0)}));return c instanceof Error?{id:i,resolved:null,error:c,loading:!1,load:a}:{id:i,resolved:c,error:null,loading:null==c,load:a}}function Xs({name:e,fallback:t,children:n}){const r=Te((()=>e?function(e){return`S${t=e,0===t.length?"0":Array.from(t,(e=>e.codePointAt(0).toString(36))).join("_")}`;var t}(e):void 0),[e]);return void 0===r?Kr(Sr,{fallback:t,children:n}):Kr(Qs,{namespace:r,fallback:t,children:n},r)}class Qs extends B{render(){const e=this.__v;var t;return e&&(null!==(t=this.mask)&&void 0!==t||(this.mask=[this.props.namespace,0]),e.__m=this.mask),Kr(Sr,{fallback:this.props.fallback,
1children:this.props.children})}}function eu(){}function tu(){return null}const nu="Component",ru=/([^/]*)\.\w+$/;function ou(e){return null}function iu({load:e}){return ke((()=>{e()}),[e]),null}const au=Symbol.for("RemoteUi::Retain"),su=Symbol.for("RemoteUi::Release"),uu=Symbol.for("RemoteUi::RetainedBy");class cu{constructor(){this.memoryManaged=new Set}add(e){this.memoryManaged.add(e),e[uu].add(this),e[au]()}release(){for(const e of this.memoryManaged)e[uu].delete(this),e[su]();this.memoryManaged.clear()}}function lu(e){return Boolean(e&&e[au]&&e[su])}function du(e,{deep:t=!0}={}){return fu(e,t,new Map)}function fu(e,t,n){const r=n.get(e);if(null!=r)return r;const o=lu(e);if(o&&e[au](),n.set(e,o),t){if(Array.isArray(e)){const r=e.reduce(((e,r)=>fu(r,t,n)||e),o);return n.set(e,r),r}if(vu(e)){const r=Object.keys(e).reduce(((r,o)=>fu(e[o],t,n)||r),o);return n.set(e,r),r}}return n.set(e,o),o}function hu(e,{deep:t=!0}={}){return pu(e,t,new Map)}function pu(e,t,n){const r=n.get(e);if(null!=r)return r;const o=lu(e);if(o&&e[su](),n.set(e,o),t){if(Array.isArray(e)){const r=e.reduce(((e,r)=>pu(r,t,n)||e),o);return n.set(e,r),r}if(vu(e)){const r=Object.keys(e).reduce(((r,o)=>pu(e[o],t,n)||r),o);return n.set(e,r),r}}return o}function vu(e){if(null==e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);return null==t||t===Object.prototype}const mu="_@f",_u="_@fn";function yu(e){var t;const n="undefined"!=typeof self&&self.name||(null===(t=globalThis.location)||void 0===t?void 0:t.origin)||"unknown",r=e.uuid();let o=null;const i=new Map,a=new Map,s=new Map,u=new Map;return{encode:function t(n,r=new Map){if(null==n)return[n];const o=r.get(n);if(o)return o;if("object"==typeof n){if(Array.isArray(n)){r.set(n,[void 0]);const e=[],o=[n.map((n=>{const[o,i=[]]=t(n,r);return e.push(...i),o})),e];return r.set(n,o),o}if(vu(n)){r.set(n,[void 0]);const e=[],o=[Object.keys(n).reduce(((o,i)=>{const[a,s=[]]=t(n[i],r);return e.push(...s),p(p({},o),{},{[i]:a})}),{}),e];return r.set(n,o),o}}if("function"==typeof n){if(i.has(n)){const e=i.get(n),t=[{[mu]:e}];return r.set(n,t),t}const t=e.uuid();i.set(n,t),a.set(t,n);const o=[{[mu]:t,[_u]:n.name||String(n).slice(0,100)}];return r.set(n,o),o}const s=[n];return r.set(n,s),s},decode:c,call:(e,t)=>f((function*(){const i=new cu,s=a.get(e);if(null==s){const t=u.get(e)||"unknown",i=new Error(`[${n}] You attempted to call a function that was already released. (function: ${t}, endpoint: ${r}${null!=o?`, endpoint terminated ${Date.now()-o}ms ago`:""})`);throw i.name="RemoteFunctionReleasedError",i}try{const e=lu(s)?[i,...s[uu]]:[i];return yield s(...c(t,e))}finally{i.release()}}))(),release(e){const t=a.get(e);t&&(a.delete(e),i.delete(t),u.set(e,t.name||"unknown"))},terminate(){o=Date.now(),i.clear(),a.clear(),s.clear(),u.clear()}};function c(t,i){if("object"==typeof t){if(null==t)return t;if(Array.isArray(t))return t.map((e=>c(e,i)));if(mu in t){const a=t[mu];if(s.has(a))return s.get(a);let u=0,c=!1,l=null;const d=()=>{u-=1,0===u&&(c=!0,l=Date.now(),s.delete(a),e.release(a))},f=()=>{u+=1},h=new Set(i),p=_u in t&&t[_u]||"unknown",v=(...t)=>{if(c){const e=new Error(`[${n}] You attempted to call a function that was already released. (function: ${p}, endpoint: ${r}${null!=l?`, released ${Date.now()-l}ms ago`:""}, retained by ${h.size})`);throw e.name="RemoteFunctionReleasedError",e}if(!s.has(a)){const e=new Error(`[${n}] You attempted to call a function that was already revoked. (function: ${p}, endpoint: ${r}${null!=o?`, endpoint terminated ${Date.now()-o}ms ago`:""}, retained by ${h.size})`);throw e.name="RemoteFunctionRevokedError",e}return e.call(a,t)};Object.defineProperties(v,{[su]:{value:d,writable:!1},[au]:{value:f,writable:!1},[uu]:{value:h,writable:!1}});for(const e of h)e.add(v);return s.set(a,v),v}if(vu(t))return Object.keys(t).reduce(((e,n)=>p(p({},e),{},{[n]:c(t[n],i)})),{})}return t}}const gu=0,wu=1,Eu=2,bu=3,Au=5,Su=6;class Cu extends Error{constructor(e){const{callId:t,error:n,result:r}=e;super(`No resolver found for call ID: ${t}${n?` Error: ${String(n)}`:""}${null==r?"":` Result: ${JSON.stringify(r)}`}`),this.callId=void 0,this.error=void 0,this.result=void 0,this.groupingHash="RemoteUI::MissingResolverError",this.name="MissingResolverError",this.callId=t,this.error=n,this.result=r}}function ku(e,{uuid:t=xu,createEncoder:n=yu,callable:r}={}){let o=!1,i=e;const a=new Map,s=new Map,u=function(e,t){let n;if(null==t){if("function"!=typeof Proxy)throw new Error("You must pass an array of callable methods in environments without Proxies.");const t=new Map;n=new Proxy({},{get(n,r){if(t.has(r))return t.get(r);const o=e(r);return t.set(r,o),o}})}else{n={};for(const r of t)Object.defineProperty(n,r,{value:e(r),writable:!1,
1configurable:!0,enumerable:!0})}return n}(p,r),c=n({uuid:t,release(e){l(bu,[e])},call(e,n,r){const o=t(),i=v(o,r),[a,s]=c.encode(n);return l(Au,[o,e,a],s),i}});return i.addEventListener("message",d),{call:u,replace(e){const t=i;i=e,t.removeEventListener("message",d),e.addEventListener("message",d)},expose(e){for(const t of Object.keys(e)){const n=e[t];"function"==typeof n?a.set(t,n):a.delete(t)}},callable(...e){if(null!=r)for(const t of e)Object.defineProperty(u,t,{value:p(t),writable:!1,configurable:!0,enumerable:!0})},terminate(){l(Eu,void 0),m(),i.terminate&&i.terminate()}};function l(e,t,n){o||i.postMessage(t?[e,t]:[e],n)}function d(e){return h.apply(this,arguments)}function h(){return h=f((function*(e){if(o)return;const{data:t}=e;var n;if(n=t,Array.isArray(n)&&"number"==typeof n[0]&&(null==n[1]||Array.isArray(n[1])))switch(t[0]){case Eu:m();break;case gu:{const e=new cu,[n,o,i]=t[1],s=a.get(o);try{if(null==s)throw new Error(`No '${o}' method is exposed on this endpoint`);const[t,r]=c.encode(yield s(...c.decode(i,[e])));l(wu,[n,void 0,t],r)}catch(r){const{name:e,message:t,stack:o}=r;throw l(wu,[n,{name:e,message:t,stack:o}]),r}finally{e.release()}break}case wu:{const[e,n,r]=t[1],o=s.get(e);if(null==o)throw new Cu({callId:e,error:n,result:r});o(...t[1]),s.delete(e);break}case bu:{const[e]=t[1];c.release(e);break}case Su:{const[e,n,r]=t[1],o=s.get(e);if(null==o)throw new Cu({callId:e,error:n,result:r});o(...t[1]),s.delete(e);break}case Au:{const[e,n,o]=t[1];try{const t=yield c.call(n,o),[r,i]=c.encode(t);l(Su,[e,void 0,r],i)}catch(r){const{name:t,message:n,stack:o}=r;throw l(Su,[e,{name:t,message:n,stack:o}]),r}break}}})),h.apply(this,arguments)}function p(e){return(...n)=>{if(o)return Promise.reject(new Error("You attempted to call a function on a terminated web worker."));if("string"!=typeof e&&"number"!=typeof e)return Promise.reject(new Error(`Can’t call a symbol method on a remote endpoint: ${e.toString()}`));const r=t(),i=v(r),[a,s]=c.encode(n);return l(gu,[r,e,a],s),i}}function v(e,t){return new Promise(((n,r)=>{s.set(e,((e,o,i)=>{if(null==o)n(i&&c.decode(i,t));else{const e=new Error;Object.assign(e,o),r(e)}}))}))}function m(){var e;o=!0,a.clear(),s.clear(),null===(e=c.terminate)||void 0===e||e.call(c),i.removeEventListener("message",d)}}function xu(){return`${Pu()}-${Pu()}-${Pu()}-${Pu()}`}function Pu(){return Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)}const Tu="remote-ui::ready";const Du=mr((function e({routes:t,router:n,parentMatchedPath:r}){let o;for(const h of t){const e=Ka(n.currentUrl.value,n.prefix,h.match,r);if(null!=e){o=p(p({},e),{},{route:h});break}}if(null==o)return null;const{route:i,nextMatchedPathPrefix:a,matched:s}=o,{render:u,redirect:c,children:l}=i,d=null!=a?a:r;let f=null;return u?f=u({url:n.currentUrl.value,matched:s,children:l&&Kr(e,{routes:l,router:n,parentMatchedPath:d})}):l?f=Kr(e,{routes:l,router:n,parentMatchedPath:d}):c&&n.redirect(c),f}));function Nu(e){const t=URL.createObjectURL(new Blob([`importScripts(${JSON.stringify(e.href)})`])),n=new Worker(t),r=n.terminate.bind(n);return n.terminate=()=>{URL.revokeObjectURL(t),r()},n}const $u=new WeakMap;function Ou(e){return $u.get(e)}const Mu=d("B",0),Ru=d("z",1),Iu=d("w",2),Lu=d("v",3),Fu=d("t",4),Uu=0,ju=d("C",1),Bu=(d("E",2),d("K",3)),qu=Symbol("RootId");function Hu(e){return e.version=0,e}function Wu(e,t){if(e.kind!==Bu&&e.kind!==ju||e.children.forEach((e=>Wu(e,t))),e.kind===ju&&"props"in e){const{props:n}=e;for(const e of Object.keys(n)){const r=n[e];Ku(r)&&(n[e]=Wu(r,t))}}return t(e)}function Ku(e){return function(e){return null!=e&&e.kind===Bu}(e)&&"id"in e&&"children"in e}function Gu(e){return Ku(e)&&"version"in e}function zu(e){"undefined"!=typeof window&&("function"==typeof window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,0))}d("am",class extends Cs{annotateEvent(e){var t=this;return f((function*(){return Promise.resolve(function(e,t){if("v1"===t){const n=function(){const e=[];return Hn()&&e.push("analytics"),qn()&&e.push("marketing"),Kn()&&e.push("sale_of_data"),Wn()&&e.push("preferences"),e}();return p(p({},e),{},{metadata:p(p({},null==e?void 0:e.metadata),{},{consent:n,consent_provider:"consent-tracking-api",consent_version:t})})}throw new Vu(t||"unknown")}(e,t.version))}))()}getRequiredConsentForEmission(){if("v1"===this.version)return["anal
1ytics","marketing"];throw new Vu(this.version||"unknown")}});class Vu extends Error{constructor(e){super(`Version ${e} is not supported by the consent-tracking-api provider`),this.name="MonorailConsentTrackingApiProviderVersionError",Object.setPrototypeOf(this,Vu.prototype)}}}}}))}();

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.