1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,91199,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},8633,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return m},MiddlewareNotFoundError:function(){return _},MissingStaticPage:function(){return w},NormalizeError:function(){return y},PageNotFoundError:function(){return v},SP:function(){return h},ST:function(){return p},WEB_VITALS:function(){return o},execOnce:function(){return s},getDisplayName:function(){return c},getLocationOrigin:function(){return d},getURL:function(){return u},isAbsoluteUrl:function(){return l},isResSent:function(){return f},loadGetInitialProps:function(){return b},normalizeRepeatedSlashes:function(){return g},stringifyError:function(){return x}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=["CLS","FCP","FID","INP","LCP","TTFB"];function s(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>a.test(e);function d(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=d();return e.substring(t.length)}function c(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function g(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function b(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await b(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${c(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let h="u">typeof performance,p=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class m extends Error{}class y extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class w extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class _ extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function x(e){return JSON.stringify({message:e.message,stack:e.stack})}},88476,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return l},searchParamsToUrlQuery:function(){return o},urlQueryToSearchParams:function(){return a}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});function o(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function s(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function a(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,s(e));else t.set(r,s(n));return t}function l(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},41814,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={cancelIdleCallback:function(){return s},requestIdleCallback:function(){return o}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},s="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
1dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},24042,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ESCAPE_REGEX:function(){return s},htmlEscapeAttributeString:function(){return u},htmlEscapeJsonString:function(){return d}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},s=/[&><\u2028\u2029]/g,a={"&":"&",'"':""","'":"'","<":"<",">":">"},l=/[&"'<>]/g;function d(e){return e.replace(s,e=>o[e])}function u(e){return e.replace(l,e=>a[e])}},28237,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return w},handleClientScriptLoad:function(){return m},initScriptLoader:function(){return y}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=e.r(81258),s=e.r(44066),a=e.r(76172),l=o._(e.r(87640)),d=s._(e.r(96505)),u=e.r(76663),c=e.r(66795),f=e.r(41814),g=e.r(24042),b=new Map,h=new Set,p=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:i=null,dangerouslySetInnerHTML:o,children:s="",strategy:a="afterInteractive",onError:d,stylesheets:u}=e,f=r||t;if(f&&h.has(f))return;if(b.has(t)){h.add(f),b.get(t).then(n,d);return}let g=()=>{i&&i(),h.add(f)},p=document.createElement("script"),m=new Promise((e,t)=>{p.addEventListener("load",function(t){e(),n&&n.call(this,t),g()}),p.addEventListener("error",function(e){t(e)})}).catch(function(e){d&&d(e)});o?(p.innerHTML=o.__html||"",g()):s?(p.textContent="string"==typeof s?s:Array.isArray(s)?s.join(""):"",g()):t&&(p.src=t,b.set(t,m)),(0,c.setAttributesFromProps)(p,e),"worker"===a&&p.setAttribute("type","text/partytown"),p.setAttribute("data-nscript",a),u&&(e=>{if(l.default.preinit)return e.forEach(e=>{l.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(u),document.body.appendChild(p)};function m(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>p(e))}):p(e)}function y(e){e.forEach(m),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");h.add(t)})}function v(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:i=null,strategy:o="afterInteractive",onError:s,stylesheets:c,...b}=e,{updateScripts:m,scripts:y,getIsSsr:v,appDir:w,nonce:_}=(0,d.useContext)(u.HeadManagerContext);_=b.nonce||_;let x=(0,d.useRef)(!1);(0,d.useEffect)(()=>{let e=t||r;x.current||(i&&e&&h.has(e)&&i(),x.current=!0)},[i,t,r]);let E=(0,d.useRef)(!1);if((0,d.useEffect)(()=>{if(!E.current){if("afterInteractive"===o)p(e);else"lazyOnload"===o&&("complete"===document.readyState?(0,f.requestIdleCallback)(()=>p(e)):window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>p(e))}));E.current=!0}},[e,o]),("beforeInteractive"===o||"worker"===o)&&(m?(y[o]=(y[o]||[]).concat([{id:t,src:r,onLoad:n,onReady:i,onError:s,...b,nonce:_}]),m(y)):v&&v()?h.add(t||r):v&&!v()&&p({...e,nonce:_})),w){if(c&&c.forEach(e=>{l.default.preinit(e,{as:"style"})}),"beforeInteractive"===o)if(!r)return b.dangerouslySetInnerHTML&&(b.children=b.dangerouslySetInnerHTML.__html,delete b.dangerouslySetInnerHTML),(0,a.jsx)("script",{nonce:_,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,g.htmlEscapeJsonString)(JSON.stringify([0,{...b,id:t}]))})`}});else return l.default.preload(r,b.integrity?{as:"script",integrity:b.integrity,nonce:_,crossOrigin:b.crossOrigin}:{as:"script",nonce:_,crossOrigin:b.crossOrigin}),(0,a.jsx)("script",{nonce:_,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,g.htmlEscapeJsonString)(JSON.stringify([r,{...b,id:t}]))})`}});"afterInteractive"===o&&r&&l.default.preload(r,b.integrity?{as:"script",integrity:b.integrity,nonce:_,crossOrigin:b.crossOrigin}:{as:"script",nonce:_,crossOrigin:b.crossOrigin})}return null}Object.defineProperty(v,"__nextScript",{value:!0});let w=v;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
1dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},24791,(e,t,r)=>{t.exports=e.r(28237)},18146,(e,t,r)=>{t.exports=e.r(38624)},92669,77417,55665,e=>{"use strict";e.s(["getRoundingMethod",0,function(e){return t=>{let r=(e?Math[e]:Math.trunc)(t);return 0===r?0:r}}],92669);let t=Symbol.for("constructDateFrom");e.s(["constructFromSymbol",0,t,"millisecondsInHour",0,36e5,"millisecondsInMinute",0,6e4],77417),e.s(["constructFrom",0,function(e,r){return"function"==typeof e?e(r):e&&"object"==typeof e&&t in e?e[t](r):e instanceof Date?new e.constructor(r):new Date(r)}],55665)},69770,50576,e=>{"use strict";var t=e.i(92669),r=e.i(55665);function n(e,...t){let i=r.constructFrom.bind(null,e||t.find(e=>"object"==typeof e));return t.map(i)}e.s(["normalizeDates",0,n],50576);var i=e.i(77417);e.s(["differenceInHours",0,function(e,r,o){let[s,a]=n(o?.in,e,r),l=(s-a)/i.millisecondsInHour;return(0,t.getRoundingMethod)(o?.roundingMethod)(l)}],69770)},33521,95053,34657,e=>{"use strict";var t=e.i(92669),r=e.i(77417),n=e.i(55665);function i(e,t){return(0,n.constructFrom)(t||e,e)}e.s(["toDate",0,i],95053),e.s(["differenceInMinutes",0,function(e,n,o){let s=(i(e)-i(n))/r.millisecondsInMinute;return(0,t.getRoundingMethod)(o?.roundingMethod)(s)}],33521),e.s(["constructNow",0,function(e){return(0,n.constructFrom)(e,Date.now())}],34657)},27965,e=>{"use strict";var t=e.i(69770),r=e.i(33521),n=e.i(55665),i=e.i(34657),o=e.i(50576);let s=(e,t)=>{let r=Intl.DateTimeFormat("sv-SE",t).format;return"string"==typeof e&&(e=new Date(e)),r(e)};e.s(["formatDate",0,s,"formatPublishDate",0,(e,a)=>{let l=new Date(e),d=new Date,u=Math.abs((0,t.differenceInHours)(l,d)),c=Math.abs((0,r.differenceInMinutes)(l,d)),f={day:"numeric",month:a?.shrinkMonths?"short":"long",...function(e,t){let[r,n]=(0,o.normalizeDates)(void 0,e,t);return r.getFullYear()===n.getFullYear()}((0,n.constructFrom)(l,l),(0,i.constructNow)(l))?{}:{year:"numeric"}};return u>12?s(l,f):u?u+`${a?.shrinkTime?" tim":" timmar sedan"}`:c?c+`${a?.shrinkTime?" min":" minuter sedan"}`:"nu"},"isBetweenDates",0,(e,t,r)=>{let n=t&&new Date(t),i=r&&new Date(r);return(!n||e>=n)&&(!i||e<i)}],27965)},18854,e=>{"use strict";var t=e.i(76172),r=e.i(96505),n=e.i(18146);let i={product:"land",brand:"land"},o={lantbruk:{product:"lantbruk",brand:"lantbruk"},skogsbruk:{product:"skogsbruk",brand:"skogsbruk"},opinion:{product:"land",brand:"opinion"},idag:{product:"land",brand:"idag"},"fran-lrf":{product:"land",brand:"lantbruk"}},s=(0,r.createContext)(i);e.s(["ThemeProductProvider",0,({children:e,theme:r})=>{let a=(0,n.usePathname)().split("/")[1],l=r??o[a]??i;return(0,t.jsx)(s.Provider,{value:l,children:e})},"useThemeProduct",0,()=>(0,r.useContext)(s)])},33556,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function({html:e,height:t=null,width:r=null,children:o,dataNtpc:s=""}){return(0,i.useEffect)(()=>{s&&performance.mark("mark_feature_usage",{detail:{feature:`next-third-parties-${s}`}})},[s]),(0,n.jsxs)(n.Fragment,{children:[o,e?(0,n.jsx)("div",{style:{height:null!=t?`${t}px`:"auto",width:null!=r?`${r}px`:"auto"},"data-ntpc":s,dangerouslySetInnerHTML:{__html:e}}):null]})};let n=e.r(76172),i=e.r(96505)},25055,(e,t,r)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.sendGTMEvent=void 0,r.GoogleTagManager=function(e){let{gtmId:t,gtmScriptUrl:r,dataLayerName:n="dataLayer",auth:l,preview:d,dataLayer:u,nonce:c}=e;a=n;let f=new URL(r||"https://www.googletagmanager.com/gtm.js");return t&&f.searchParams.set("id",t),"dataLayer"!==n&&f.searchParams.set("l",n),l&&f.searchParams.set("gtm_auth",l),d&&(f.searchParams.set("gtm_preview",d),f.searchParams.set("gtm_cookies_win","x")),(0,o.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:` 2 (function(w,l){ 3 w[l]=w[l]||[]; 4 w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'}); 5 ${u?`w[l].push(${JSON.stringify(u)})`:""} 6 })(window,'${n}');`},nonce:c}),(0,i.jsx)(s.default,{id:"_next-gtm","data-ntpc":"GTM",src:f.href,nonce:c})]})};let i=e.r(76172),o=e.r(96505),s=n(e.r(24791)),a="dataLayer";r.sendGTMEvent=(e,t)=>
6{let r=t||a;window[r]=window[r]||[],window[r].push(e)}},63162,(e,t,r)=>{"use strict";let n;var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.GoogleAnalytics=function(e){let{gaId:t,debugMode:r,dataLayerName:i="dataLayer",nonce:l}=e;return void 0===n&&(n=i),(0,s.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:` 7 window['${i}'] = window['${i}'] || []; 8 function gtag(){window['${i}'].push(arguments);} 9 gtag('js', new Date()); 10 11 gtag('config', '${t}' ${r?",{ 'debug_mode': true }":""});`},nonce:l}),(0,o.jsx)(a.default,{id:"_next-ga",src:`https://www.googletagmanager.com/gtag/js?id=${t}`,nonce:l})]})},r.sendGAEvent=function(){void 0===n?console.warn("@next/third-parties: GA has not been initialized"):window[n]?window[n].push(arguments):console.warn(`@next/third-parties: GA dataLayer ${n} does not exist`)};let o=e.r(76172),s=e.r(96505),a=i(e.r(24791))},23447,e=>{"use strict";var t=e.i(76172);let r={sm:"text-xs font-semibold py-1.5 px-3",md:"text-sm font-semibold py-2 px-4",lg:"text-md font-semibold py-2.5 px-4",xl:"text-lg font-semibold py-3 px-4.5"},n={sm:"[&_svg]:size-[var(--icon-buttons-sm)]",md:"[&_svg]:size-[var(--icon-buttons-md)]",lg:"[&_svg]:size-[var(--icon-buttons-lg)]",xl:"[&_svg]:size-[var(--icon-buttons-xl)]"},i={"land-secondary":{disabled:"bg-yellow-200 text-white border-yellow-200",filled:"bg-yellow-500 text-red-500 hover:bg-yellow-600 focus-visible:outline-yellow-200 disabled:bg-yellow-200",hollow:"border-1 border-yellow-500 text-yellow-500 bg-white hover:bg-yellow-500 hover:text-white focus-visible:outline-yellow-200 disabled:border-yellow-200 disabled:text-yellow-200",pill:"bg-yellow-200 text-black hover:underline focus-visible:outline-yellow-400"},land:{disabled:"bg-red-200 text-white border-red-200",filled:"bg-red-500 text-white hover:bg-red-600 focus-visible:outline-red-200 disabled:bg-red-200",hollow:"border-1 border-red-500 text-red-500 bg-white hover:bg-red-500 hover:text-white focus-visible:outline-red-200 disabled:border-red-200 disabled:text-red-200",pill:"bg-yellow-200 text-black hover:underline focus-visible:outline-yellow-400"},lantbruk:{disabled:"bg-red-200 text-white border-red-200",filled:"bg-red-600 text-white hover:bg-red-700 focus-visible:outline-red-300 disabled:bg-red-200",hollow:"border-1 border-red-600 text-red-600 bg-white hover:bg-red-600 hover:text-white focus-visible:outline-red-300 disabled:border-red-200 disabled:text-red-200",pill:"border border-red-600 text-red-600 hover:bg-red-100 focus-visible:outline-red-300"},skogsbruk:{disabled:"bg-green-200 text-white border-green-200",filled:"bg-green-500 text-white hover:bg-green-600 focus-visible:outline-green-200 disabled:bg-green-100 disabled:border-green-100 disabled:text-grey-300",hollow:"border-1 border-green-500 text-green-500 bg-white hover:bg-green-500 hover:text-white focus-visible:outline-green-200 disabled:border-green-100 disabled:text-grey-300",pill:"bg-green-100 text-green-500 hover:underline focus-visible:outline-green-200"},opinion:{disabled:"bg-orange-200 text-white border-orange-200",filled:"bg-orange-500 text-white hover:bg-orange-600 focus-visible:outline-orange-200 disabled:bg-orange-100 disabled:border-orange-100 disabled:text-grey-300",hollow:"border-1 border-orange-500 text-orange-500 bg-white hover:bg-orange-500 hover:text-white focus-visible:outline-orange-200 disabled:border-orange-100 disabled:text-grey-300",pill:"bg-orange-100 text-orange-500 hover:underline focus-visible:outline-orange-200"},idag:{disabled:"bg-yellow-100 text-white border-yellow-100",filled:"bg-yellow-200 hover:bg-yellow-500 focus-visible:outline-yellow-500 disabled:bg-yellow-100 disabled:border-yellow-100 disabled:text-grey-300",hollow:"border-1 border-yellow-400 bg-white hover:bg-yellow-400 focus-visible:outline-yellow-500 disabled:border-yellow-100 disabled:text-grey-300",pill:"bg-yellow-100 text-yellow-400 hover:underline focus-visible:outline-yellow-500"},lrf:{disabled:"bg-lrf-green-100 text-white border-lrf-green-200 font-lrf-sans",filled:"border-1 border-lrf-green-200 bg-lrf-green-200 text-white hover:bg-white hover:text-lrf-green-300 focus-visible:outline-lrf-blue-200 disabled:bg-lrf-green-100 disabled:text-grey-300 font-lrf-sans",hollow:"border-1 border-lrf-green-100 rounded-tl-0 bg-lrf-green-100 text-lrf-green-300 hover:bg-white hover:text-lrf-green-300 focus-visible:outline-lrf-blue-200 disabled:bg-lrf-green-100 disabled:border-lrf-green-100 disabled:text-grey-300 font-lrf-sans",pill:"bg-lrf-yellow-200 text-lrf-green-300 hover:underline focus-visible:outline-lrf-blue-200 font-lrf-sans"},"landshopping-primary":{disabled:"bg-green-200 text-white border-green-200",filled:"bg-landsh
11opping-green-100 text-white hover:bg-landshopping-green-200 focus-visible:outline-green-200 disabled:bg-green-200",hollow:"border-1 border-landshopping-green-100 text-landshopping-green-100 bg-white hover:bg-landshopping-green-100 hover:text-white focus-visible:outline-green-200 disabled:border-green-200 disabled:text-green-200",pill:"bg-green-100 text-landshopping-green-100 hover:underline focus-visible:outline-green-200"},"lantmannen-primary":{disabled:"bg-grey-700 text-black border-grey-700",filled:"bg-[#C81421] text-white hover:bg-[#A80411] focus-visible:outline-[#222222]",hollow:"border-1 border-[#222222] text-[#222222] bg-white hover:bg-[#222222] hover:text-white focus-visible:outline-grey-700",pill:"bg-[#C81421] text-white hover:underline focus-visible:outline-green-200"},"atl-primary":{disabled:"bg-grey-700 text-black border-grey-700",filled:"bg-[#cd4d00] text-white hover:bg-[#E4572E] focus-visible:outline-[#E4572E]",hollow:"border-1 border-[#dbf0f6] text-[#00354E] bg-white hover:bg-[##dbf0f6] hover:text-black focus-visible:outline-grey-700",pill:"bg-[#cd4d00] text-white hover:underline focus-visible:outline-orange-200"}},o={square:"rounded-md",rounded:"rounded-full",circle:"rounded-full p-2 aspect-square",squiggly:"rounded-tl-lg rounded-br-lg"},s=e=>{let{brand:t,disabled:s,isHollow:a,isPill:l,size:d,shape:u}=e;return["inline-flex items-center justify-center not-disabled:cursor-pointer","circle"===u?"":r[d??"md"],n[d??"md"],i[t??"land"][s?"disabled":a?"hollow":l?"pill":"filled"],o[u??"rounded"]].filter(Boolean).join(" ")};e.s(["Button",0,({children:e,className:r,brand:n="land",shape:i="rounded",size:o="md",isHollow:a=!1,isPill:l=!1,isDecorative:d=!1,onClick:u,...c})=>{let f=[r,s({brand:n,size:o,isHollow:a,isPill:l,shape:i,onClick:u})].join(" ");return(0,t.jsx)(d?"span":"button",{className:f,onClick:u,...c,children:e})},"getButtonClasses",0,s])},34551,e=>{"use strict";var t=e.i(96505);e.s(["useIntersection",0,function(e,r=.1){let[n,i]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{let t=e.current;if(!t)return;let n=new IntersectionObserver(([e])=>{let t=e.boundingClientRect,r=e.isIntersecting&&t.width>0&&t.height>0;i(r),r&&n.disconnect()},{threshold:r});return n.observe(t),()=>n.disconnect()},[e,r]),n}])},62445,3482,43351,3352,e=>{"use strict";e.i(24290);let t="land";class r extends Error{status;code;constructor(e,t){super(`UGC request failed (${e}): ${t}`),this.status=e,this.code=t,this.name="UgcError"}}async function n(e,i={}){let{method:o="GET",query:s,body:a}=i,l=new URL(`https://lmid.land.se${e}`);if(l.searchParams.set("site",t),s)for(let[e,t]of Object.entries(s))null!=t&&l.searchParams.set(e,String(t));let d=await fetch(l.toString(),{method:o,credentials:"include",headers:{Authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp0cnVlLCJpYXQiOjE2OTc0NjE1MzN9.YejJ9OdouopD2C3AF_wJLi-QM_GphUE-bBRR7bt7pzg",Accept:"application/json",...a?{"Content-Type":"application/json"}:{}},body:a?JSON.stringify({site:t,...a}):void 0});if(!d.ok){let e=d.statusText;try{let t=await d.json();t?.msg&&(e=t.msg)}catch{}throw new r(d.status,e)}if(204===d.status)return;let u=await d.text();return u?JSON.parse(u):void 0}let i={get:async()=>(await n("/ugc/display-name")).data.displayName,set:async e=>(await n("/ugc/display-name",{method:"POST",body:{displayName:e}})).data.displayName};async function o(e){if(0===e.length)return[];let t=new FormData;for(let r of e)t.append("files",r);let n=await fetch("/api/ugc/upload",{method:"POST",body:t});if(!n.ok){let e=n.statusText;try{let t=await n.json();t?.code&&(e=t.code)}catch{}throw new r(n.status,e)}return(await n.json()).images.map(e=>e.url)}e.s(["UgcError",0,r,"displayName",0,i,"ugc",0,{comments:{list:async e=>n(e.public?"/ugc/public/comments":"/ugc/comments",{query:{targetId:e.targetId,cursor:e.cursor,limit:e.limit}}),counts:async e=>(await n("/ugc/comments/counts",{query:{targetType:e.targetType,targetIds:e.targetIds.join(",")}})).data,create:async e=>(await n("/ugc/comments",{method:"POST",body:{targetType:e.targetType,targetId:e.targetId,body:e.body,parentId:e.parentId??null,images:e.images}})).data,async remove(e){await n("/ugc/comments",{method:"DELETE",body:{commentId:e.commentId}})}},reactions:{list:async e=>(await n("/ugc/reactions",{query:{targetType:e?.targetType,targetIds:e?.targetIds?.length?e.targetIds.join(","):void 0}})).data,toggle:async e=>(await n("/ugc/reactions",{method:"POST",body:{targetType:e.targetType,targetId:e.targetId,type:e.type}})).data,counts:async e=>(await n("/ugc/reactions/counts",{query:{targetType:e.targetType,targetIds:e.targetIds.join(",")}})).data},posts:{feed:async e=>n(e?.public?"/ugc/public/posts":"/ugc/posts",{query:{from:e?.from,to:e?.to,tag:e?.tag,cursor:e?.cursor,limit:e?.limit}}),async single(e){let t=e.public?"/ugc/public/posts/single":"/ugc/posts/single";return(await n(t,{query:{id:e.id}})).data},create:async e=>(await n("/ugc/posts",{method:"POST",body:{title:e.title,body:e.body,images:e.images,tags:e.tags}})).data,edit:async e=>(await n("/ugc/posts",{method:"PUT",body:{postId:e.postId,title:e.title,body:e.body,images:e.images,tags:e.tags}})).data},bans:{async mine(){let e=await n("/ugc/ban");return e?"data"in e?e.data:e:null}},mittland:{get:async()=>(await n("/ugc/mittland")).data},displayName:i}],3482),e.s(["MAX_UPLOAD_BYTES",0,5242880,"uploadImages",0,o],43351);let s={NOT_CONFIGURED:"Bilduppladdning är inte tillgänglig just nu. Försök igen sen
11are.",FILE_TOO_LARGE:"Bilder får vara max 5 MB.",TOO_MANY_FILES:"Du har bifogat för många bilder.",NOT_AN_IMAGE:"Endast bildfiler kan bifogas.",UPLOAD_FAILED:"Bilden kunde inte laddas upp. Försök igen.",TOO_MANY_PENDING:"Du har för många inlägg som väntar på granskning.",BANNED:"Du kan inte publicera just nu.",UNAUTHORIZED:"Du behöver vara inloggad.",DISPLAY_NAME_REQUIRED:"Du behöver välja ett namn för att publicera.",INVALID_DISPLAY_NAME:"Namnet är ogiltigt. Välj ett annat.",DISPLAY_NAME_TAKEN:"Namnet är upptaget. Välj ett annat."};e.s(["ugcErrorMessage",0,function(e){return s[e instanceof r?e.code:""]??"Något gick fel. Försök igen."}],3352),e.s([],62445)},54846,e=>{"use strict";var t=e.i(18146),r=e.i(96505);function n({pageType:e,pageTitle:i,pageCategory:o,pageAttributes:s}){let a=(0,t.usePathname)();(0,r.useEffect)(()=>{if(window.googletag){let t=window.googletag||{cmd:[]};t.cmd.push(function(){t.pubads().setTargeting("pageType",e),t.pubads().setTargeting("pageTitle",i||""),t.pubads().setTargeting("pageCategory",o||""),t.pubads().setTargeting("pageAttributes",s?.toString()||"")})}},[e,i,o,s,a])}let i=[],o=null;function s(){if(o=null,0===i.length)return;let e=i;if(i=[],!window.loadAds)return;let t=Array.from(new Set(e)).filter(e=>document.getElementById(e));0!==t.length&&window.loadAds(t)}function a(){null==o&&(o=setTimeout(s,10))}let l=!1;e.s(["AdLoader",0,function(){let e=(0,t.usePathname)();return(0,r.useEffect)(()=>{l?l=!1:window.relevantDigital?.destroySlots&&window.relevantDigital.destroySlots(),a()},[e]),null},"AdTargeting",0,function(e){return n(e),null},"queueAdId",0,function(e){i.push(e),a()},"suppressNextAdDestroy",0,function(){l=!0},"useAdTargeting",0,n])},86981,26414,e=>{"use strict";var t=e.i(76172),r=e.i(96505),n=e.i(18146);let i={lantbruk:{panorama:{desktopId:"2239268"},panorama2:{desktopId:"2239278"},midscroll:{mobileId:"2239280"},mobile:{mobileId:"2239275"},mobile2:{mobileId:"2239276"},module:{desktopId:"2239269"},module2:{desktopId:"2239270"},insider2:{desktopId:"2239273"},insider22:{desktopId:"2239281"},insider23sticky:{desktopId:"2239274"},insider3:{desktopId:"2239271"},insider32sticky:{desktopId:"2239272"},topscroll:{desktopId:"2239279"},topscroll2:{mobileId:"2239277"},longread:{desktopId:"2239286"},mobileArticle:{mobileId:"2239284"},mobileArticle2:{mobileId:"2239285"},mobileCategory:{mobileId:"2239282"},mobileCategory2:{mobileId:"2239283"}},skogsbruk:{panorama:{desktopId:"2239297"},panorama2:{desktopId:"2239307"},midscroll:{mobileId:"2239309"},mobile:{mobileId:"2239304"},mobile2:{mobileId:"2239305"},module:{desktopId:"2239298"},module2:{desktopId:"2239299"},insider2:{desktopId:"2239302"},insider22:{desktopId:"2239310"},insider23sticky:{desktopId:"2239303"},insider3:{desktopId:"2239300"},insider32sticky:{desktopId:"2239301"},topscroll:{desktopId:"2239308"},topscroll2:{mobileId:"2239306"},longread:{desktopId:"2239315"},mobileArticle:{mobileId:"2239313"},mobileCategory:{mobileId:"2239311"},mobileArticle2:{mobileId:"2239314"},mobileCategory2:{mobileId:"2239312"}}};var o=function(){if("u">typeof Map)return Map;function e(e,t){var r=-1;return e.some(function(e,n){return e[0]===t&&(r=n,!0)}),r}function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var r=e(this.__entries__,t),n=this.__entries__[r];return n&&n[1]},t.prototype.set=function(t,r){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=r:this.__entries__.push([t,r])},t.prototype.delete=function(t){var r=this.__entries__,n=e(r,t);~n&&r.splice(n,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var r=0,n=this.__entries__;r<n.length;r++){var i=n[r];e.call(t,i[1],i[0])}},t}(),s="u">typeof window&&"u">typeof document&&window.document===document,a=e.g.Math===Math?e.g:"u">typeof self&&self.Math===Math?self:"u">typeof window&&window.Math===Math?window:Function("return this")(),l="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(a):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},d=["top","right","bottom","left","width","height","size","weight"],u="u">typeof MutationObserver,c=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e){var t=!1,r=!1,n=0;function i(){t&&(t=!1,e()),r&&s()}function o(){l(i)}function s(){var e=Date.now();if(t){if(e-n<2)return;r=!0}else t=!0,r=!1,setTimeout(o,20);n=e}return s}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,r=t.indexOf(e);~r&&t.splice(r,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){s&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){s&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=void 0===t?"":t;d.some(function(e){return!!~r.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=ne
11w e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},g=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||a},b=y(0,0,0,0);function h(e){return parseFloat(e)||0}function p(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(t,r){return t+h(e["border-"+r+"-width"])},0)}var m="u">typeof SVGGraphicsElement?function(e){return e instanceof g(e).SVGGraphicsElement}:function(e){return e instanceof g(e).SVGElement&&"function"==typeof e.getBBox};function y(e,t,r,n){return{x:e,y:t,width:r,height:n}}var v=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=function(e){if(!s)return b;if(m(e)){var t;return y(0,0,(t=e.getBBox()).width,t.height)}return function(e){var t,r=e.clientWidth,n=e.clientHeight;if(!r&&!n)return b;var i=g(e).getComputedStyle(e),o=function(e){for(var t={},r=0,n=["top","right","bottom","left"];r<n.length;r++){var i=n[r],o=e["padding-"+i];t[i]=h(o)}return t}(i),s=o.left+o.right,a=o.top+o.bottom,l=h(i.width),d=h(i.height);if("border-box"===i.boxSizing&&(Math.round(l+s)!==r&&(l-=p(i,"left","right")+s),Math.round(d+a)!==n&&(d-=p(i,"top","bottom")+a)),(t=e)!==g(t).document.documentElement){var u=Math.round(l+s)-r,c=Math.round(d+a)-n;1!==Math.abs(u)&&(l-=u),1!==Math.abs(c)&&(d-=c)}return y(o.left,o.top,l,d)}(e)}(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),w=function(e,t){var r,n,i,o,s,a=(r=t.x,n=t.y,i=t.width,o=t.height,f(s=Object.create(("u">typeof DOMRectReadOnly?DOMRectReadOnly:Object).prototype),{x:r,y:n,width:i,height:o,top:n,right:r+i,bottom:o+n,left:r}),s);f(this,{target:e,contentRect:a})},_=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new o,"function"!=typeof e)throw TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if(!("u"<typeof Element)&&Element instanceof Object){if(!(e instanceof g(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new v(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if(!("u"<typeof Element)&&Element instanceof Object){if(!(e instanceof g(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new w(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),x="u">typeof WeakMap?new WeakMap:new o,E=function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var r=new _(t,c.getInstance(),this);x.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){E.prototype[e]=function(){var t;return(t=x.get(this))[e].apply(t,arguments)}});var I=void 0!==a.ResizeObserver?a.ResizeObserver:E,k=e.i(54846),O=e.i(18854),T=e.i(34551);function M(){let[e,t]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e=()=>t(window.innerWidth<768);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e}e.s(["useIsMobile",0,M],26414);let A={land:"before:bg-bg-land",lantbruk:"before:bg-bg-llb",skogsbruk:"before:bg-bg-lsb",opinion:"before:bg-bg-lop"};function j({adId:e,proadType:n}){return(0,r.useEffect)(()=>{(0,k.queueAdId)(e)},[e]),(0,t.jsx)("div",{id:e,"data-ad-unit-id":`/14604472/land_se/${n}`})}function P({brand:e,adType:n,primaryCategorySlug:o}){let s=(0,r.useRef)(null),a=(0,r.useRef)(!1);return(0,r.useEffect)(()=>
11{if(!a.current&&s.current){let t=i[e][n];!function(e,t){var r;let n;if(!e||"object"!=typeof e||!("mobileId"in t||"desktopId"in t))throw Error("Missing parameters");let i=window.innerWidth<768?"mobileId"in t&&t.mobileId||void 0:"desktopId"in t&&t.desktopId||void 0;if(void 0===i)return;!function(e=!1){let t="adform-script-id";if(!document.getElementById(t)){let r,n=document.createElement("script");n.id=t,n.src="//s1.adform.net/banners/scripts/adx.js",n.async=!0,n.defer=!0,e||((r=document.createElement("script")).id="adform-second-script-id",r.type="text/javascript",r.innerHTML=`var adformtag = adformtag || []; 12 adformtag.push(function () { 13 adformtag.setRequestLimit(5) 14 adformtag.addRequestGroup([1005013, 1005039, 1005042, 1005035, 1005037]) 15 });`,r.style.outline="none");let i=document.getElementsByTagName("head")[0];!document.getElementById(t)&&(i.appendChild(n),r&&i.append(r))}}(t.skipAdFormTagScript);let o=document.createElement("script"),s=document.createElement("div"),a=document.createElement("div");o.dataset.adfscript=`adx.adform.net/adx/?mid=${i}`,t?.category&&(o.dataset.adfscript+=`&mkv=category:${t?.category}`),s.classList.add("ad-content"),s.appendChild(o),a.classList.add("ad-inner-wrapper"),a.id=`adwrapper_${Math.random().toString(36).substring(2,15)}`,a.appendChild(s),e.classList.add("ad-wrapper"),e.appendChild(a),t.size&&(e.classList.add("with-size"),s.style.width=t.size.width+"px"),t.shouldResize&&(r=t.size,(n=new I(()=>{!function(e,t,r){let n=e.querySelector("iframe");if(!n||n&&n.offsetWidth<=1)return;let i=n?.offsetWidth||r?.width||0,o=t.offsetWidth/i,s="scale("+(o=isNaN(o)||o>1?1:o)+")";e.style.transform=s,e.style.transformOrigin="left top";let a=e.offsetHeight,l=a>45?0:(r?.height||0)+15,d=(a+l)*o;t.parentElement&&(t.parentElement.style.height=(d>45?d:0)+"px")}(a,e,r)})).observe(s),n.observe(document.body))}(s.current,{...t,category:o,shouldResize:!0}),a.current=!0}},[n,o]),(0,t.jsx)("div",{ref:s})}let S=["/mitt-land*","/spel","/etidningen","/resor/landresor*","/resor/a/*","/nyhetsbrev","/native/*"],N=r.default.memo(({adeliveryConfig:e,proadConfig:i,primaryCategorySlug:o,sticky:s=!1,adIndex:a,minHeight:l})=>{let{product:d,brand:u}=(0,O.useThemeProduct)(),c=(0,n.usePathname)(),f=M(),g=(0,r.useRef)(null),b=(0,T.useIntersection)(g),h=(0,r.useId)();if(S.some(e=>e.endsWith("*")?c.startsWith(e.slice(0,-1)):e===c))return null;let p="opinion"===u?"lantbruk":"lantbruk"===d||"skogsbruk"===d?d:void 0,m=null!=a&&a>0,y=p?f?m&&e?.mobileFallback||e?.mobile:m&&e?.desktopFallback||e?.desktop:void 0,v=y?void 0:f?i?.mobile:i?.desktop,w=`ad-${v}-${h.replace(/:/g,"")}`;return(0,t.jsxs)("div",{ref:g,style:{minHeight:l??1},className:`relative mx-auto has-[iframe]:clear-both has-[iframe]:my-4 max-w-full has-[iframe]:border-t has-[iframe]:border-grey-200 has-[iframe]:pt-2 has-[iframe]:before:content-["ANNONS"] before:absolute before:-top-[6px] before:z-1 before:left-0 before:pr-2 before:text-[8px] before:text-grey-500 print:hidden ${A[d]||"before:bg-bg-land"} ${s?"sticky top-2":""}`,children:[v&&(0,t.jsx)(j,{adId:w,proadType:v}),y&&p&&b&&(0,t.jsx)(P,{brand:p,adType:y,primaryCategorySlug:o})]})});N.displayName="Ad",e.s(["Ad",0,N,"default",0,N],86981)}]);
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.