PageSourceSearch

https://themodernmilkman.co.uk/_next/static/chunks/37702-931f409dfff09e39.js

js themodernmilkman.co.uk collected 2026-09-25 14:57:09 UTC 18,658 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[37702],{6066:(e,t,r)=>{var n=r(98790);r.o(n,"redirect")&&r.d(t,{redirect:function(){return n.redirect}}),r.o(n,"useParams")&&r.d(t,{useParams:function(){return n.useParams}}),r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},81890:function(e,t,r){var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};Object.defineProperty(t,"__esModule",{value:!0}),t.hasCookie=t.deleteCookie=t.setCookie=t.getCookie=t.getCookies=void 0;var a=r(92711),i=function(){return"undefined"!=typeof window},u=function(e){void 0===e&&(e="");try{var t=JSON.stringify(e);return/^[\{\[]/.test(t)?t:e}catch(t){return e}};t.getCookies=function(e){if(e&&(t=e.req),!i())return t&&t.cookies?t.cookies:t&&t.headers&&t.headers.cookie?(0,a.parse)(t.headers.cookie):{};for(var t,r={},n=document.cookie?document.cookie.split("; "):[],o=0,u=n.length;o<u;o++){var c=n[o].split("="),l=c.slice(1).join("=");r[c[0]]=l}return r},t.getCookie=function(e,r){var n=(0,t.getCookies)(r)[e];if(void 0!==n)return n?n.replace(/(%[0-9A-Z]{2}
1)+/g,decodeURIComponent):n},t.setCookie=function(e,t,r){if(r){var c,l,s,p=r.req,d=r.res,f=o(r,["req","res"]);l=p,s=d,c=f}var v=(0,a.serialize)(e,u(t),n({path:"/"},c));if(i())document.cookie=v;else if(s&&l){var m=s.getHeader("Set-Cookie");if(Array.isArray(m)||(m=m?[String(m)]:[]),s.setHeader("Set-Cookie",m.concat(v)),l&&l.cookies){var h=l.cookies;""===t?delete h[e]:h[e]=u(t)}if(l&&l.headers&&l.headers.cookie){var h=(0,a.parse)(l.headers.cookie);""===t?delete h[e]:h[e]=u(t),l.headers.cookie=Object.entries(h).reduce(function(e,t){return e.concat("".concat(t[0],"=").concat(t[1],";"))},"")}}},t.deleteCookie=function(e,r){return(0,t.setCookie)(e,"",n(n({},r),{maxAge:-1}))},t.hasCookie=function(e,r){return!!e&&(0,t.getCookies)(r).hasOwnProperty(e)}},82920:(e,t,r)=>{function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){a(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,void 0):void 0}}(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,a=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw a}}}}function c(e,t){var r,n=t.replacementChars,o=t.replacement,a=t.separate,i=n,c="",l=u(e);try{for(l.s();!(r=l.n()).done;){var s,p=r.value,d=!Object.prototype.hasOwnProperty.call(o,p)&&(null===(s=o[i[0]])||void 0===s?void 0:s.test(p));(a&&p===i[0]||d)&&(i=i.slice(1),c+=p)}}catch(e){l.e(e)}finally{l.f()}return c}function l(e){return e.length>0?a({},e,/./):{}}r.d(t,{N5:()=>E});function s(e,t){for(var r=t.start,n=void 0===r?0:r,o=t.end,a=t.mask,i=t.replacement,u=t.separate,c=e.slice(n,o),l=a.slice(n,o),s="",p=0;p<l.length;p++){var d=Object.prototype.hasOwnProperty.call(i,l[p]);d&&void 0!==c[p]&&c[p]!==l[p]?s+=c[p]:d&&u&&(s+=l[p])}return s}function p(e){for(var t=e.mask,r=e.replacement,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o="string"==typeof r?l(r):r,a=["[","]","\\","/","^","$",".","|","?","*","+","(",")","{","}"],i="",u=0;u<t.length;u++){var c=Object.prototype.hasOwnProperty.call(o,t[u]),s=n?"(?!".concat(t[u],")"):"";0===u&&(i+="^"),i+=c?"".concat(s,"(").concat(o[t[u]].toString().slice(1,-1),")"):a.includes(t[u])?"\\".concat(t[u]):t[u],u===t.length-1&&(i+="$")}return i}var d=r(12115);function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
1function h(e,t){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t="function"==typeof Map?new Map:void 0;return(y=function(e){if(null===e||!function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return function(e,t,r){if(f())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&h(o,r.prototype),o}(e,arguments,m(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),h(r,e)})(e)}var b=r(47650),g=function(e){function t(e,r){var n,o,a;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),(o=t,a=[e],o=m(o),n=function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,f()?Reflect.construct(o,a||[],m(this).constructor):o.apply(this,a))).name="SyntheticChangeError",n.cause=r,n}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}(y(Error));function k(e,t){var r=t.value,n=t.selectionStart,o=t.selectionEnd;void 0!==r&&(e.value=r),void 0!==n&&void 0!==o&&e.setSelectionRange(n,o)}var w=["text","email","tel","search","url"],O=r(95155),S=["component","mask","replacement","showMask","separate","track","modify","onMask"],E=(0,d.forwardRef)(function(e,t){var r,n=e.component,a=e.mask,i=e.replacement,f=e.showMask,m=e.separate,h=e.track,y=e.modify,E=e.onMask,j=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,S),T=(r=function(){var e,t,r,n,a,i,f,v,m,h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},y=h.mask,O=void 0===y?"":y,S=h.replacement,E=void 0===S?{}:S,j=h.showMask,T=void 0!==j&&j,P=h.separate,_=void 0!==P&&P,C=h.track,x=h.modify,I=h.onMask,M="string"==typeof E?l(E):E,R=(0,d.useRef)(null);return t=(e={init:function(e){var t=e.controlled,r=e.initialValue;r=t||r?r:T?O:"";var n={mask:O,replacement:M,showMask:T,separate:_};return R.current={value:r,props:n,fallbackProps:n},{value:r}},tracking:function(e){var t,r,n,a,i,d,f=e.inputType,v=e.previousValue,m=e.addedValue,h=e.changeStart,y=e.changeEnd;if(null===R.current)throw new g("The state has not been initialized.");R.current.value!==v?R.current.props=R.current.fallbackProps:R.current.fallbackProps=R.current.props;var b=s(v,{end:h,mask:R.current.props.mask,replacement:R.current.props.replacement,separate:R.current.props.separate}),k=RegExp("[^".concat(Object.keys(R.current.props.replacement).join(""),"]"),"g"),w=R.current.props.mask.replace(k,"");b&&(b=c(b,{replacementChars:w,replacement:R.current.props.replacement,separate:R.current.props.separate}));var S=null==C?void 0:C(o(o({},"insert"===f?{inputType:f,data:m}:{inputType:f,data:null}),{},{value:v,selectionStart:h,selectionEnd:y}));if(!1===S)throw new g("Custom trekking stop.");if(null===S?m="":!0!==S&&void 0!==S&&(m=S),m&&(m=c(m,{replacementChars:w.slice(b.length),replacement:R.current.props.replacement,separate:!1})),"insert"===f&&""===m)throw new g("The character does not match the key value of the `replacement` object.");var E=s(v,{start:y,mask:R.current.props.mask,replacement:R.current.props.replacement,separate:R.current.props.separate});if(R.current.props.separate){var j=R.current.props.mask.slice(h,y).replace(k,""),P=j.length-m.length;P<0?E=E.slice(-P):P>0&&(E=j.slice(-P)+E)}E&&(E=c(E,{replacementChars:w.slice(b.length+m.length),replacement:R.current.props.replacement,separate:R.current.props.separate}));var I=b+m+E,V=null!==(d=null==x?void 0:x(I))&&void 0!==d?d:{},A=V.mask,F=void 0===A?O:A,H=V.replacement,L=void 0===H?M:H,N=V.showMask,U=void 0===N?T:N,B=V.separate,D=void 0===B?_:B;"string"==typeof L&&(L=l(L));var q=(i=function(e,t){for(var r=t.mask,n=t.replacement,o=[],a=0;a<r.length;a++){var i,u=null!==(i=e[a])&&void 0!==i?i:r[a],c=Object.prototype.hasOwnProperty.call(n,u)?"replacement":void 0!==e[a]&&e[a]!==r[a]?"input":"mask";o.push({type:c,value:u,index:a})}return o}(a=function(e,t){var r,n=t.mask,o=t.replacement,a=t.showMask,i=0,c="",l=u(n);try{for(l.s();!(r=l.n()).done;){var s=r.value;if(!a&&void 0===e[i])break;Object.prototype.hasOwnProperty.call(o,s)&&void 0!==e[i]?c+=e[i++]:c+=s}}catch(e){l.e(e)}finally{l.f()}return c}(I,{mask:r=(t={mask:F,replacement:L,showMask:U}).mask,replacement:n=t.replacement,showMask:t.showMask}),{mask:r,replacement:n}
1),{value:a,input:I,parts:i,pattern:p({mask:r,replacement:n}),isValid:RegExp(p({mask:r,replacement:n},!0)).test(a)}),z=function(e){var t,r,n,o=e.inputType,a=e.value,i=e.addedValue,u=e.beforeChangeValue,c=e.parts,l=e.replacement,s=e.separate,p=c.filter(function(e){var t=e.type;return"input"===t||s&&"replacement"===t}),d=null===(t=p[u.length+i.length-1])||void 0===t?void 0:t.index,f=null===(r=p[u.length-1])||void 0===r?void 0:r.index,v=null===(n=p[u.length+i.length])||void 0===n?void 0:n.index;if("insert"===o){if(void 0!==d)return d+1;if(void 0!==v)return v;if(void 0!==f)return f+1}if("deleteForward"===o){if(void 0!==v)return v;if(void 0!==f)return f+1}if("deleteBackward"===o){if(void 0!==f)return f+1;if(void 0!==v)return v}var m=a.split("").findIndex(function(e){return Object.prototype.hasOwnProperty.call(l,e)});return -1!==m?m:a.length}({inputType:f,value:q.value,addedValue:m,beforeChangeValue:b,parts:q.parts,replacement:L,separate:D});return R.current.value=q.value,R.current.props={mask:F,replacement:L,showMask:U,separate:D},{value:q.value,selectionStart:z,selectionEnd:z,__detail:q}},eventType:"input-mask",eventHandler:I}).init,r=e.tracking,n=e.eventType,a=e.eventHandler,i=(0,d.useRef)({timeoutId:-1,fallbackTimeoutId:-1,cachedTimeoutId:-1,start:0,end:0}),f=(0,d.useRef)(!0),v=(0,d.useRef)(null),(m=(0,d.useRef)({init:t,tracking:r,eventType:n,eventHandler:a})).current.init=t,m.current.tracking=r,m.current.eventType=n,m.current.eventHandler=a,(0,d.useMemo)(function(){var e,t,r,n,o;return e=m.current.init,r=(t={onFocus:function(){i.current.timeoutId=window.setTimeout(function e(){var t,r,n,o;f.current?(i.current.start=null!==(t=null===(r=v.current)||void 0===r?void 0:r.selectionStart)&&void 0!==t?t:0,i.current.end=null!==(n=null===(o=v.current)||void 0===o?void 0:o.selectionEnd)&&void 0!==n?n:0,i.current.timeoutId=window.setTimeout(e)):i.current.fallbackTimeoutId=window.setTimeout(e)})},onBlur:function(){window.clearTimeout(i.current.timeoutId),window.clearTimeout(i.current.fallbackTimeoutId),i.current.timeoutId=-1,i.current.fallbackTimeoutId=-1,i.current.cachedTimeoutId=-1},onInput:function(e){var t=v.current;if(null!==t)try{if(i.current.cachedTimeoutId===i.current.timeoutId)throw new g("The input selection has not been updated.");i.current.cachedTimeoutId=i.current.timeoutId;var r=t.value,n=t.selectionStart,o=t.selectionEnd;if(null===n||null===o)throw new g("The selection attributes have not been initialized.");var a,u,c,l,s,p,d=null!==(a=null===(u=t._valueTracker)||void 0===u||null===(c=u.getValue)||void 0===c?void 0:c.call(u))&&void 0!==a?a:"";if(void 0===e.inputType&&(i.current.start=0,i.current.end=d.length),n>i.current.start?p="insert":n<=i.current.start&&n<i.current.end?p="deleteBackward":n===i.current.end&&r.length<d.length&&(p="deleteForward"),void 0===p||("deleteBackward"===p||"deleteForward"===p)&&r.length>d.length)throw new g("Input type detection error.");var h="",y="",w=i.current.start,O=i.current.end;if("insert"===p)h=r.slice(i.current.start,n);else{var S=d.length-r.length;w=n,O=n+S,y=d.slice(w,O)}var E=m.current.tracking({inputType:p,previousValue:d,value:r,addedValue:h,deletedValue:y,changeStart:w,changeEnd:O,selectionStart:n,selectionEnd:o});k(t,{value:E.value,selectionStart:E.selectionStart,selectionEnd:E.selectionEnd});var j=m.current.eventType,T=m.current.eventHandler;if("string"==typeof j&&T){var P=t.value,_=t.selectionStart,C=t.selectionEnd;f.current=!1,requestAnimationFrame(function(){k(t,{value:P,selectionStart:null!=_?_:P.length,selectionEnd:null!=C?C:P.length});var e=new CustomEvent(j,{bubbles:!0,cancelable:!1,composed:!0,detail:E.__detail});t.dispatchEvent(e),b.unstable_batchedUpdates?(0,b.unstable_batchedUpdates)(T,e):T(e),f.current=!0})}null===(l=t._valueTracker)||void 0===l||null===(s=l.setValue)||void 0===s||s.call(l,d),i.current.start=E.selectionStart,i.current.end=E.selectionEnd}catch(r){var x,I,M,R,V,A,F,H,L,N,U,B=r.name,D=r.cause;if(k(t,{value:null!==(x=null!==(I=null==D||null===(M=D.__attributes)||void 0===M?void 0:M.value)&&void 0!==I?I:null===(R=t._valueTracker)||void 0===R||null===(V=R.getValue)||void 0===V?void 0:V.call(R))&&void 0!==x?x:"",selectionStart:null!==(A=null==D||null===(F=D.__attributes)||void 0===F?void 0:F.selectionStart)&&void 0!==A?A:i.current.start,selectionEnd:null!==(H=null==D||null===(L=D.__attributes)||void 0===L?void 0:L.selectionEnd)&&void 0!==H?H:i.current.end}),void 0!==(null==D||null===(N=D.__attributes)||void 0===N?void 0:N.selectionStart)&&(i.current.start=D.__attributes.selectionStart),void 0!==(null==D||null===(U=D.__attributes)||void 0===U?void 0:U.selectionEnd)&&(i.current.end=D.__attributes.selectionEnd),e.preventDefault(),e.stopPropagation(),"SyntheticChangeError"!==B)throw r}}}).onFocus,n=t.onBlur,o=t.onInput,new Proxy(v,{set:function(t,a,i){if
1("current"!==a)return!1;var u=null!==i&&w.includes(i.type);if(i!==v.current&&(null!==v.current&&(v.current.removeEventListener("focus",r),v.current.removeEventListener("blur",n),v.current.removeEventListener("input",o)),null!==i&&u)){var c,l=null!==(c=i._wrapperState)&&void 0!==c?c:{},s=l.controlled,p=l.initialValue,d=e({controlled:void 0!==s&&s,initialValue:i.value||(void 0===p?"":p)});k(i,{value:d.value}),document.activeElement===i&&r(),i.addEventListener("focus",r),i.addEventListener("blur",n),i.addEventListener("input",o)}return t[a]=i,!0}})},[])}({mask:a,replacement:i,showMask:f,separate:m,track:h,modify:y,onMask:E}),(0,d.useCallback)(function(e){r.current=e,"function"==typeof t?t(e):"object"===v(t)&&null!==t&&(t.current=e)},[r,t]));return(0,O.jsx)(n||"input",o({ref:T},j))})},92711:(e,t)=>{t.parse=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var n={},o=e.split(";"),a=(t||{}).decode||r,i=0;i<o.length;i++){var u=o[i],c=u.indexOf("=");if(!(c<0)){var l=u.substring(0,c).trim();if(void 0==n[l]){var s=u.substring(c+1,u.length).trim();'"'===s[0]&&(s=s.slice(1,-1)),n[l]=function(e,t){try{return t(e)}catch(t){return e}}(s,a)}}}return n},t.serialize=function(e,t,r){var a=r||{},i=a.encode||n;if("function"!=typeof i)throw TypeError("option encode is invalid");if(!o.test(e))throw TypeError("argument name is invalid");var u=i(t);if(u&&!o.test(u))throw TypeError("argument val is invalid");var c=e+"="+u;if(null!=a.maxAge){var l=a.maxAge-0;if(isNaN(l)||!isFinite(l))throw TypeError("option maxAge is invalid");c+="; Max-Age="+Math.floor(l)}if(a.domain){if(!o.test(a.domain))throw TypeError("option domain is invalid");c+="; Domain="+a.domain}if(a.path){if(!o.test(a.path))throw TypeError("option path is invalid");c+="; Path="+a.path}if(a.expires){if("function"!=typeof a.expires.toUTCString)throw TypeError("option expires is invali
1d");c+="; Expires="+a.expires.toUTCString()}if(a.httpOnly&&(c+="; HttpOnly"),a.secure&&(c+="; Secure"),a.sameSite)switch("string"==typeof a.sameSite?a.sameSite.toLowerCase():a.sameSite){case!0:case"strict":c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"none":c+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return c};var r=decodeURIComponent,n=encodeURIComponent,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/}}]);

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.