1import{aw as e}from"./9dba8418.ogFVeXB5.js";function t(e,t,n){const r=e.targetMerchandiseLines?.[0]?.stableId;return r&&t?.stableIdToShopId.get(r)||n}function n({line:n,method:r,localShopId:o,marketDrivenShippingEnabled:i,remoteShopsConfigMap:a,remoteMerchandiseDetails:s}){const u=e(r);if(!u)return;const h=t(n,s,o);return function({lineShopId:t,localShopId:n,marketDrivenShippingEnabled:r,remoteShopsConfigMap:o,method:i}){if(t===n)return r;const a=o?.get(t);return a?a.marketDrivenShippingEnabled:!!i&&Boolean(e(i))}({lineShopId:h,localShopId:o,marketDrivenShippingEnabled:i,remoteShopsConfigMap:a,method:r})?`${h}:${u}`:void 0}var r=(e=>(e.Light="LIGHT",e.Dark="DARK",e))(r||{});const o=[90,49,244],i=[255,255,255];function a(e){const t=e.map(e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return.2126*t[0]+.7152*t[1]+.0722*t[2]}function s(e,t){const n=a(e),r=a(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function u(e){let t=e,n="rgba(255, 255, 255, 1)";for(;t;){const e=getComputedStyle(t).backgroundColor;if(e){const t=l(e);if(t[3]&&t[3]>.1){n=e;break}}t=t.parentElement}return n}function h(e){let t=i;if(e.startsWith("#"))t=function(e){let t=0,n=0,r=0;return 4===e.length?(t=Number(`0x${e[1]}${e[1]}`),n=Number(`0x${e[2]}${e[2]}`),r=Number(`0x${e[3]}${e[3]}`)):7===e.length&&(t=Number(`0x${e[1]}${e[2]}`),n=Number(`0x${e[3]}${e[4]}`),r=Number(`0x${e[5]}${e[6]}`)),[t,n,r]}(e);else if(e.startsWith("rgb")&&(t=l(e),4===t.length&&t[3]<=.043&&t.slice(0,3).every(e=>0===e)))return r.Light;return s(t,o)>s(t,i)?r.Light:r.Dark}function l(e){const t=(e.match(/(\d+\.\d+|\d+)/g)||[]).map(Number);for(;t.length<4;)t.push(1);return t}export{r as T,u as g,h as p,n as r,t as s};
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.