1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="e6a7aab3-8b7c-4277-a826-04167ccbd5fb",e._sentryDebugIdIdentifier="sentry-dbid-e6a7aab3-8b7c-4277-a826-04167ccbd5fb")}catch(e){}}(),(self.webpackChunkpk_shopify_theme=self.webpackChunkpk_shopify_theme||[]).push([[842],{37793:(e,r)=>{r.createCanvas=function(e,r){return Object.assign(document.createElement("canvas"),{width:e,height:r})},r.createImageData=function(e,r,n){switch(arguments.length){case 0:return new ImageData;case 1:return new ImageData(e);case 2:return new ImageData(e,r);default:return new ImageData(e,r,n)}},r.loadImage=function(e,r){return new Promise((function(n,t){const o=Object.assign(document.createElement("img"),r);function i(){o.onload=null,o.onerror=null}o.onload=function(){i(),n(o)},o.onerror=function(){i(),t(new Error('Failed to load the image "'+e+'"'))},o.src=e}))}},57614:function(e,r,n){var t,o,i,a=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw new Error("Unable to resolve global `this`")},u=function(){const e=function(){if("object"==typeof globalThis&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return a()}try{return __global__||a()}finally{delete Object.prototype.__global__}}();return void 0!==e.process&&e.process.versions&&e.process.versions.node};!function(){"use strict";o=[],void 0===(i="function"==typeof(t=function(){var e,r,t;function o(e,n){if(u())return r.createCanvas(e,n);var t=document.createElement("canvas");return t.width=e,t.height=n,t}u()?(r=n(37793),e=r.Image,t=r.loadImage):e=Image;var i={},a=i,s=function(r){var n,s,f,l,g,h=1,c={red:255,green:0,blue:255,alpha:255},d={r:0,g:0,b:0,a:0},b={flat:function(e,r){e[r]=c.red,e[r+1]=c.green,e[r+2]=c.blue,e[r+3]=c.alpha},movement:function(e,r,n,t){e[r]=(t.r*(c.red/255)+c.red)/2,e[r+1]=(t.g*(c.green/255)+c.green)/2,e[r+2]=(t.b*(c.blue/255)+c.blue)/2,e[r+3]=t.a},flatDifferenceIntensity:function(e,r,n,t){e[r]=c.red,e[r+1]=c.green,e[r+2]=c.blue,e[r+3]=M(n,t)},movementDifferenceIntensity:function(e,r,n,t){var o=M(n,t)/255*.8;e[r]=(1-o)*(t.r*(c.red/255))+o*c.red,e[r+1]=(1-o)*(t.g*(c.green/255))+o*c.green,e[r+2]=(1-o)*(t.b*(c.blue/255))+o*c.blue,e[r+3]=t.a},diffOnly:function(e,r,n,t){e[r]=t.r,e[r+1]=t.g,e[r+2]=t.b,e[r+3]=t.a}},p=b.flat,m=1200,v=!0,w={},y=[],x=[],I={red:16,green:16,blue:16,alpha:16,minBrightness:16,maxBrightness:240},B=!1,D=!1,T=!1,C=!1;function M(e,r){return(Math.abs(e.r-r.r)+Math.abs(e.g-r.g)+Math.abs(e.b-r.b))/3}function _(e,r,n,t,o){return e>(o.left||0)&&e<(o.right||n)&&r>(o.top||0)&&r<(o.bottom||t)}function k(){var e,r=x.length;for(e=0;e<r;e++)"function"==typeof x[e]&&x[e](w)}function S(e,r,n){var t,o;for(t=0;t<e;t++)for(o=0;o<r;o++)n(t,o)}function E(e,r){var n=e.width,t=e.height;T&&1===y.length&&(n=y[0].width,t=y[0].height);var i,a=o(n,t);a.getContext("2d").drawImage(e,0,0,n,t),i=a.getContext("2d").getImageData(0,0,n,t),y.push(i),r(i,n,t)}function O(r,n){var o,i=new e;i.setAttribute||(i.setAttribute=function(){}),v&&i.setAttribute("crossorigin","anonymous"),i.onerror=function(e){i.onload=null,i.onerror=null;const t=e?e+"":"Unknown error";y.push({error:`Failed to load image '${r}'. ${t}`}),n()},i.onload=function(){i.onload=null,i.onerror=null,E(i,n)}
1,"string"==typeof r?(i.src=r,!u()&&i.complete&&i.naturalWidth>0&&i.onload()):void 0!==r.data&&"number"==typeof r.width&&"number"==typeof r.height?(y.push(r),n(r,r.width,r.height)):"undefined"!=typeof Buffer&&r instanceof Buffer?t(r).then((function(e){i.onload=null,i.onerror=null,E(e,n)})).catch((function(e){y.push({error:e?e+"":"Image load error."}),n()})):((o=new FileReader).onload=function(e){i.src=e.target.result},o.readAsDataURL(r))}function A(e,r,n){var t=Math.abs(e-r);return void 0!==e&&void 0!==r&&(e===r||t<I[n])}function P(e,r){var n=A(e.a,r.a,"alpha");return A(e.brightness,r.brightness,"minBrightness")&&n}function j(e,r,n){return.3*e+.59*r+.11*n}function R(e,r){var n=e.r===r.r,t=e.g===r.g,o=e.b===r.b;return n&&t&&o}function N(e,r,n,t,o,i){var a,u,s,f,l=0,g=0,h=0;for(L(e),a=-1;a<=1;a++)for(u=-1;u<=1;u++)if(0===a&&0===u);else{if(!z(d,r,4*((t+u)*i+(o+a))))continue;if(F(d),L(d),s=e,f=d,Math.abs(s.brightness-f.brightness)>I.maxBrightness&&l++,R(e,d)&&h++,Math.abs(d.h-e.h)>.3&&g++,g>1||l>1)return!0}return h<2}function U(e,r,t){"diffOnly"!==n&&(e[r]=t.brightness,e[r+1]=t.brightness,e[r+2]=t.brightness,e[r+3]=t.a*h)}function z(e,r,n){return r.length>n&&(e.r=r[n],e.g=r[n+1],e.b=r[n+2],e.a=r[n+3],!0)}function F(e){e.brightness=j(e.r,e.g,e.b)}function L(e){e.h=function(e,r,n){var t,o,i=e/255,a=r/255,u=n/255,s=Math.max(i,a,u),f=Math.min(i,a,u);if(s===f)t=0;else switch(o=s-f,s){case i:t=(a-u)/o+(a<u?6:0);break;case a:t=(u-i)/o+2;break;case u:t=(i-a)/o+4;break;default:t/=6}return t}(e.r,e.g,e.b)}function W(e,r,t,i){var a,u,c,d,b=e.data,v=r.data;C||(a=o(t,i),u=a.getContext("2d"),c=u.createImageData(t,i),d=c.data);var y,x=0,I={top:i,left:t,bottom:0,right:0},T=function(e,r){I.left=Math.min(e,I.left),I.right=Math.max(e,I.right),I.top=Math.min(r,I.top),I.bottom=Math.max(r,I.bottom)},k=Date.now();m&&B&&(t>m||i>m)&&(y=6);var E={r:0,g:0,b:0,a:0},O={r:0,g:0,b:0,a:0},j=!1;S(t,i,(function(e,r){if(!j&&(!y||r%y!=0&&e%y!=0)){var o=4*(r*t+e);if(z(E,b,o)&&z(O,v,o)){var a=function(e,r,n,t,o){var i,a,u,g=!0;if(s instanceof Array)for(a=!1,i=0;i<s.length;i++)if(_(e,r,n,t,s[i])){a=!0;break}if(f instanceof Array)for(u=!0,i=0;i<f.length;i++)if(_(e,r,n,t,f[i])){u=!1;break}return l?0!==M(o,l):void 0===a&&void 0===u||(!1!==a||!0!==u)&&(!0!==a&&!0!==u||(g=!0),!1!==a&&!1!==u||(g=!1),g)}(e,r,t,i,O);if(D)return F(E),F(O),void(P(E,O)||!a?C||U(d,o,O):(C||p(d,o,E,O),x++,T(e,r)));m=A((u=E).r,(c=O).r,"red"),w=A(u.g,c.g,"green"),I=A(u.b,c.b,"blue"),k=A(u.a,c.a,"alpha"),m&&w&&I&&k||!a?C||function(e,r,t){"diffOnly"!==n&&(e[r]=t.r,e[r+1]=t.g,e[r+2]=t.b,e[r+3]=t.a*h)}(d,o,E):B&&(F(E),F(O),N(E,b,0,r,e,t)||N(O,v,0,r,e,t))&&(P(E,O)||!a)?C||U(d,o,O):(C||p(d,o,E,O),x++,T(e,r)),C&&x/(i*t)*100>g&&(j=!0)}}var u,c,m,w,I,k})),w.rawMisMatchPercentage=x/(i*t)*100,w.misMatchPercentage=w.rawMisMatchPercentage.toFixed(2),w.diffBounds=I,w.analysisTime=Date.now()-k,w.getImageDataUrl=function(e){if(C)throw Error("No diff image available - ran in compareOnly mode");var r=0;return e&&(r=function(e,r,n){var t=2;r.font="12px sans-serif";var o=r.measureText(e).width+2*t,i=22;return o>n.width&&(n.width=o),n.height+=i,r.fillStyle="#666",r.fillRect(0,0,n.width,i-4),r.fillStyle="#fff",r.fillRect(0,i-4,n.width,4),r.fillStyle="#fff",r.textBaseline="top",r.font="12px sans-serif",r.fillText(e,t,1),i}(e,u,a)),u.putImageData(c,0,r),a.toDataURL("image/png")},!C&&a.toBuffer&&(w.getBuffer=function(n){if(n){var t=a.width+2;a.width=3*t,u.putImageData(e,0,0),u.putImageData(r,t,0),u.putImageData(c,2*t,0)}else u.putImageData(c,0,0);return a.toBuffer()})}function $(e,r,n){var t;return e.height<n||e.width<r?((t=o(r,n).getContext("2d")).putImageData(e,0,0),t.getImageData(0,0,r,n)):e}function q(e){var r;if(e.errorColor)for(r in e.errorColor)e.errorColor.hasOwnProperty(r)&&(c[r]=void 0===e.errorColor[r]?c[r]:e.errorColor[r]);e.errorType&&b[e.errorType]&&(p=b[e.errorType],n=e.errorType),e.errorPixel&&"function"==typeof e.errorPixel&&(p=e.errorPixel),h=isNaN(Number(e.transparency))?h:e.transparency,void 0!==e.largeImageThreshold&&(m=e.largeImageThreshold),void 0!==e.useCrossOrigin&&(v=e.useCrossOrigin),void 0!==e.boundingBox&&
1(s=[e.boundingBox]),void 0!==e.ignoredBox&&(f=[e.ignoredBox]),void 0!==e.boundingBoxes&&(s=e.boundingBoxes),void 0!==e.ignoredBoxes&&(f=e.ignoredBoxes),void 0!==e.ignoreAreasColoredWith&&(l=e.ignoreAreasColoredWith)}function G(e){var n,t="function"==typeof e;t||(n=e);var o={setReturnEarlyThreshold:function(e){return e&&(C=!0,g=e),o},scaleToSameSize:function(){return T=!0,t&&e(),o},useOriginalSize:function(){return T=!1,t&&e(),o},ignoreNothing:function(){return I.red=0,I.green=0,I.blue=0,I.alpha=0,I.minBrightness=0,I.maxBrightness=255,B=!1,D=!1,t&&e(),o},ignoreLess:function(){return I.red=16,I.green=16,I.blue=16,I.alpha=16,I.minBrightness=16,I.maxBrightness=240,B=!1,D=!1,t&&e(),o},ignoreAntialiasing:function(){return I.red=32,I.green=32,I.blue=32,I.alpha=32,I.minBrightness=64,I.maxBrightness=96,B=!0,D=!1,t&&e(),o},ignoreColors:function(){return I.alpha=16,I.minBrightness=16,I.maxBrightness=240,B=!1,D=!0,t&&e(),o},ignoreAlpha:function(){return I.red=16,I.green=16,I.blue=16,I.alpha=255,I.minBrightness=16,I.maxBrightness=240,B=!1,D=!1,t&&e(),o},repaint:function(){return t&&e(),o},outputSettings:function(e){return q(e),o},onComplete:function(e){x.push(e);var t=function(){!function(e,r){function n(){var e,r;if(2===y.length){if(y[0].error||y[1].error)return(w={}).error=y[0].error?y[0].error:y[1].error,void k();e=y[0].width>y[1].width?y[0].width:y[1].width,r=y[0].height>y[1].height?y[0].height:y[1].height,y[0].width===y[1].width&&y[0].height===y[1].height?w.isSameDimensions=!0:w.isSameDimensions=!1,w.dimensionDifference={width:y[0].width-y[1].width,height:y[0].height-y[1].height},W($(y[0],e,r),$(y[1],e,r),e,r),k()}}a!==i&&q(a),y=[],O(e,n),O(r,n)}(r,n)};return t(),G(t)},setupCustomTolerance:function(e){for(var r in I)e.hasOwnProperty(r)&&(I[r]=e[r])}};return o}var H={onComplete:function(e){x.push(e),O(r,(function(e,r,n){!function(e,r,n){var t=0,o=0,i=0,a=0,u=0,s=0,f=0,l=0;S(r,n,(function(n,g){var h=4*(g*r+n),c=e[h],d=e[h+1],b=e[h+2],p=e[h+3],m=j(c,d,b);c===d&&c===b&&p&&(0===c?l++:255===c&&f++),t++,o+=c/255*100,i+=d/255*100,a+=b/255*100,u+=(255-p)/255*100,s+=m/255*100})),w.red=Math.floor(o/t),w.green=Math.floor(i/t),w.blue=Math.floor(a/t),w.alpha=Math.floor(u/t),w.brightness=Math.floor(s/t),w.white=Math.floor(f/t*100),w.black=Math.floor(l/t*100),k()}(e.data,r,n)}))},compareTo:function(e){return G(e)},outputSettings:function(e){return q(e),H}};return H};function f(e,r,n){switch(r){case"nothing":e.ignoreNothing();break;case"less":e.ignoreLess();break;case"antialiasing":e.ignoreAntialiasing();break;case"colors":e.ignoreColors();break;case"alpha":e.ignoreAlpha();break;default:throw new Error("Invalid ignore: "+r)}e.setupCustomTolerance(n)}return s.compare=function(e,r,n,t){var o,i;"function"==typeof n?(o=n,i={}):(o=t,i=n||{});var a,u=s(e);i.output&&u.outputSettings(i.output),a=u.compareTo(r),i.returnEarlyThreshold&&a.setReturnEarlyThreshold(i.returnEarlyThreshold),i.scaleToSameSize&&a.scaleToSameSize();var l=i.tolerance||{};"string"==typeof i.ignore?f(a,i.ignore,l):i.ignore&&i.ignore.forEach&&i.ignore.forEach((function(e){f(a,e,l)})),a.onComplete((function(e){e.error?o(e.error):o(null,e)}))},s.outputSettings=function(e){return a=e,s},s})?t.apply(r,o):t)||(e.exports=i)}()},66723:(e,r,n)=>{"use strict";n.r(r),n.d(r,{getDiff:()=>o});var t=n(57614);const o=(e,r,n)=>{const o={ignore:"antialiasing",returnEarlyThreshold:n};return new Promise(((n,i)=>{(0,t.compare)(e,r,o,((e,r)=>{e?i(e):n(r)}))}))}}}]); 2//# sourceMappingURL=compareImages.worker.chunk.e9508894a8f753cdbe12.min.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.