PageSourceSearch

https://www.kungalvsposten.se/_next/static/chunks/5230-adee724ea08d0b20.js

js kungalvsposten.se collected 2026-10-02 12:45:00 UTC 18,197 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5230],{1150:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(94285),o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},i=function(){return(i=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)},s={Pixel:"Pixel",Percent:"Percent"},l={unit:s.Percent,value:.8};function a(e){return"number"==typeof e?{unit:s.Percent,value:100*e}:"string"==typeof e?e.match(/^(\d*(\.\d+)?)px$/)?{unit:s.Pixel,value:parseFloat(e)}:e.match(/^(\d*(\.\d+)?)%$/)?{unit:s.Percent,value:parseFloat(e)}:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),l):(console.warn("scrollThreshold should be string or number"),l)}let u=function(e){function t(){this.constructor=r}function r(t){var r=e.call(this,t)||this;return r.lastScrollTop=0,r.actionTriggered=!1,r.startY=0,r.currentY=0,r.dragging=!1,r.maxPullDownDistance=0,r.getScrollableTarget=function(){return r.props.scrollableTarget instanceof HTMLElement?r.props.scrollableTarget:"string"==typeof r.props.scrollableTarget?document.getElementById(r.props.scrollableTarget):(null===r.props.scrollableTarget&&console.warn("You are trying to pass scrollableTarget but it is null. This might\n        happen because the element may not have been added to DOM yet.\n        See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info.\n      "),null)},r.onStart=function(e){!r.lastScrollTop&&(r.dragging=!0,e instanceof MouseEvent?r.startY=e.pageY:e instanceof TouchEvent&&(r.startY=e.touches[0].pageY),r.currentY=r.startY,r._infScroll&&(r._infScroll.style.willChange="transform",r._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},r.onMove=function(e){if(r.dragging)e instanceof MouseEvent?r.currentY=e.pageY:e instanceof TouchEvent&&(r.currentY=e.touches[0].pageY),r.currentY<r.startY||(r.currentY-r.startY>=Number(r.props.pullDownToRefreshThreshold)&&r.setState({pullToRefreshThresholdBreached:!0}),!(r.currentY-r.startY>1.5*r.maxPullDownDistance)&&r._infScroll&&(r._infScroll.style.overflow="visible",r._infScroll.style.transform="translate3d(0px, "+(r.currentY-r.startY)+"px, 0px)"))},r.onEnd=function(){r.startY=0,r.currentY=0,r.dragging=!1,r.state.pullToRefreshThresholdBreached&&(r.props.refreshFunction&&r.props.refreshFunction(),r.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame(function(){r._infScroll&&(r._infScroll.style.overflow="auto",r._infScroll.style.transform="none",r._infScroll.style.willChange="none")})},r.onScrollListener=function(e){"function"==typeof r.props.onScroll&&setTimeout(function(){return r.props.onScroll&&r.props.onScroll(e)},0);var t=r.props.height||r._scrollableNode?e.target:document.documentElement.scrollTop?document.documentElement:document.body;r.actionTriggered||((r.props.inverse?r.isElementAtTop(t,r.props.scrollThreshold):r.isElementAtBottom(t,r.props.scrollThreshold))&&r.props.hasMore&&(r.actionTriggered=!0,r.setState({showLoader:!0}),r.props.next&&r.props.next()),r.lastScrollTop=t.scrollTop)},r.state={showLoader:!1,pullToRefreshThresholdBreached:!1},r.throttledOnScrollListener=(function(e,t,r,n){var o,i=!1,s=0;function l(){o&&clearTimeout(o)}function a(){var a=this,u=Date.now()-s,c=arguments;function f(){s=Date.now(),r.apply(a,c)}i||(n&&!o&&f(),l(),void 0===n&&u>e?f():!0!==t&&(o=setTimeout(n?function(){o=void 0}:f,void 0===n?e-u:e)))}return"boolean"!=typeof t&&(n=r,r=t,t=void 0),a.cancel=function(){l(),i=!0},a})(150,r.onScrollListener).bind(r),r.onStart=r.onStart.bind(r),r.onMove=r.onMove.bind(r),r.onEnd=r.onEnd.bind(r),r}return o(r,e),r.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t),r.prototype.componentDidMount=function(){if(void 0===this.props.dataLength)throw Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');
1if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),"number"==typeof this.props.initialScrollY&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),"function"!=typeof this.props.refreshFunction))throw Error('Mandatory prop "refreshFunction" missing.\n          Pull Down To Refresh functionality will not work\n          as expected. Check README.md for usage\'')},r.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)))},r.prototype.UNSAFE_componentWillReceiveProps=function(e){this.props.dataLength!==e.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},r.prototype.isElementAtTop=function(e,t){void 0===t&&(t=.8);var r=e===document.body||e===document.documentElement?window.screen.availHeight:e.clientHeight,n=a(t);return n.unit===s.Pixel?e.scrollTop<=n.value+r-e.scrollHeight+1||0===e.scrollTop:e.scrollTop<=n.value/100+r-e.scrollHeight+1||0===e.scrollTop},r.prototype.isElementAtBottom=function(e,t){void 0===t&&(t=.8);var r=e===document.body||e===document.documentElement?window.screen.availHeight:e.clientHeight,n=a(t);return n.unit===s.Pixel?e.scrollTop+r>=e.scrollHeight-n.value:e.scrollTop+r>=n.value/100*e.scrollHeight},r.prototype.render=function(){var e=this,t=i({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),r=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),o=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return n.createElement("div",{style:o,className:"infinite-scroll-component__outerdiv"},n.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(t){return e._infScroll=t},style:t},this.props.pullDownToRefresh&&n.createElement("div",{style:{position:"relative"},ref:function(t){return e._pullDown=t}},n.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!r&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},r}(n.Component)},58775:(e,t,r)=>{"use strict";function n(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function o(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function i(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r,n=getComputedStyle(e,null);return o(n.overflowY,t)||o(n.overflowX,t)||!!(r=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e))&&(r.clientHeight<e.scrollHeight||r.clientWidth<e.scrollWidth)}return!1}function s(e,t,r,n,o,i,s,l){return i<e&&s>t||i>e&&s<t?0:i<=e&&l<=r||s>=t&&l>=r?i-e-n:s>t&&l<r||i<e&&l>r?s-t+o:0}r.d(t,{A:()=>l});var l=function(e,t){var r=window,o=t.scrollMode,l=t.block,a=t.inline,u=t.boundary,c=t.skipOverflowHiddenElements,f="function"==typeof u?u:function(e){return e!==u};if(!n(e))throw TypeError("Invalid target");for(var h,p,d=document.scrollingElement||document.documentElement,v=[],g=e;n(g)&&f(g);){if((g=null==(p=(h=g).parentElement)?h.getRootNode().host||null:p)===d){v.push(g);break}null!=g&&g===document.body&&i(g)&&!i(document.documentElement)||null!=g&&i(g,c)&&v.push(g)}
1for(var m=r.visualViewport?r.visualViewport.width:innerWidth,y=r.visualViewport?r.visualViewport.height:innerHeight,w=window.scrollX||pageXOffset,b=window.scrollY||pageYOffset,S=e.getBoundingClientRect(),E=S.height,T=S.width,_=S.top,O=S.right,M=S.bottom,x=S.left,L="start"===l||"nearest"===l?_:"end"===l?M:_+E/2,R="center"===a?x+T/2:"end"===a?O:x,D=[],Y=0;Y<v.length;Y++){var k=v[Y],A=k.getBoundingClientRect(),H=A.height,P=A.width,C=A.top,W=A.right,V=A.bottom,B=A.left;if("if-needed"===o&&_>=0&&x>=0&&M<=y&&O<=m&&_>=C&&M<=V&&x>=B&&O<=W)break;var j=getComputedStyle(k),$=parseInt(j.borderLeftWidth,10),N=parseInt(j.borderTopWidth,10),I=parseInt(j.borderRightWidth,10),z=parseInt(j.borderBottomWidth,10),F=0,U=0,X="offsetWidth"in k?k.offsetWidth-k.clientWidth-$-I:0,J="offsetHeight"in k?k.offsetHeight-k.clientHeight-N-z:0,q="offsetWidth"in k?0===k.offsetWidth?0:P/k.offsetWidth:0,G="offsetHeight"in k?0===k.offsetHeight?0:H/k.offsetHeight:0;if(d===k)F="start"===l?L:"end"===l?L-y:"nearest"===l?s(b,b+y,y,N,z,b+L,b+L+E,E):L-y/2,U="start"===a?R:"center"===a?R-m/2:"end"===a?R-m:s(w,w+m,m,$,I,w+R,w+R+T,T),F=Math.max(0,F+b),U=Math.max(0,U+w);else{F="start"===l?L-C-N:"end"===l?L-V+z+J:"nearest"===l?s(C,V,H,N,z+J,L,L+E,E):L-(C+H/2)+J/2,U="start"===a?R-B-$:"center"===a?R-(B+P/2)+X/2:"end"===a?R-W+I+X:s(B,W,P,$,I+X,R,R+T,T);var K=k.scrollLeft,Q=k.scrollTop;L+=Q-(F=Math.max(0,Math.min(Q+F/G,k.scrollHeight-H/G+J))),R+=K-(U=Math.max(0,Math.min(K+U/q,k.scrollWidth-P/q+X)))}D.push({el:k,top:F,left:U})}return D}},64757:e=>{var t="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,i){try{return function e(i,s){if(i===s)return!0;if(i&&s&&"object"==typeof i&&"object"==typeof s){var l,a,u,c;if(i.constructor!==s.constructor)return!1;if(Array.isArray(i)){if((l=i.length)!=s.length)return!1;for(a=l;0!=a--;)if(!e(i[a],s[a]))return!1;return!0}if(r&&i instanceof Map&&s instanceof Map){if(i.size!==s.size)return!1;for(c=i.entries();!(a=c.next()).done;)if(!s.has(a.value[0]))return!1;for(c=i.entries();!(a=c.next()).done;)if(!e(a.value[1],s.get(a.value[0])))return!1;return!0}if(n&&i instanceof Set&&s instanceof Set){if(i.size!==s.size)return!1;for(c=i.entries();!(a=c.next()).done;)if(!s.has(a.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(i)&&ArrayBuffer.isView(s)){if((l=i.length)!=s.length)return!1;for(a=l;0!=a--;)if(i[a]!==s[a])return!1;return!0}if(i.constructor===RegExp)return i.source===s.source&&i.flags===s.flags;if(i.valueOf!==Object.prototype.valueOf&&"function"==typeof i.valueOf&&"function"==typeof s.valueOf)return i.valueOf()===s.valueOf();if(i.toString!==Object.prototype.toString&&"function"==typeof i.toString&&"function"==typeof s.toString)return i.toString()===s.toString();if((l=(u=Object.keys(i)).length)!==Object.keys(s).length)return!1;for(a=l;0!=a--;)if(!Object.prototype.hasOwnProperty.call(s,u[a]))return!1;if(t&&i instanceof Element)return!1;for(a=l;0!=a--;)if(("_owner"!==u[a]&&"__v"!==u[a]&&"__o"!==u[a]||!i.$$typeof)&&!e(i[u[a]],s[u[a]]))return!1;return!0}return i!=i&&s!=s}(e,i)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},85073:(e,t,r)=>{"use strict";r.d(t,{Wx:()=>u});var n=r(94285),o=Object.defineProperty,i=new Map,s=new WeakMap,l=0,a=void 0;function u({threshold:e,delay:t,trackVisibility:r,rootMargin:o,root:c,triggerOnce:f,skip:h,initialInView:p,fallbackInView:d,onChange:v}={}){var g;let[m,y]=n.useState(null),w=n.useRef(),[b,S]=n.useState({inView:!!p,entry:void 0});w.current=v,n.useEffect(()=>{let n;if(!h&&m)return n=function(e,t,r={},n=a){if(void 0===window.IntersectionObserver&&void 0!==n){let o=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),()=>{}}let{id:o,observer:u,elements:c}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var r;return`${t}_${"root"===t?!(r=e.root)?"0":(s.has(r)||(l+=1,s.set(r,l.toString())),s.get(r)):e[t]}`}).toString(),r=i.get(t);if(!r){let n,o=new Map,s=new IntersectionObserver(t=>{t.forEach(t=>{var r;let i=t.isIntersecting&&n.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(r=o.get(t.target))||r.forEach(e
1=>{e(i,t)})})},e);n=s.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:s,elements:o},i.set(t,r)}return r}(r),f=c.get(e)||[];return c.has(e)||c.set(e,f),f.push(t),u.observe(e),function(){f.splice(f.indexOf(t),1),0===f.length&&(c.delete(e),u.unobserve(e)),0===c.size&&(u.disconnect(),i.delete(o))}}(m,(e,t)=>{S({inView:e,entry:t}),w.current&&w.current(e,t),t.isIntersecting&&f&&n&&(n(),n=void 0)},{root:c,rootMargin:o,threshold:e,trackVisibility:r,delay:t},d),()=>{n&&n()}},[Array.isArray(e)?e.toString():e,m,c,o,f,h,r,d,t]);let E=null==(g=b.entry)?void 0:g.target,T=n.useRef();m||!E||f||h||T.current===E||(T.current=E,S({inView:!!p,entry:void 0}));let _=[y,b.inView,b.entry];return _.ref=_[0],_.inView=_[1],_.entry=_[2],_}n.Component},92252:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>y});var n,o,i=r(94285),s=r(3197),l=function(){return(l=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)},a=function(){},u=a(),c=Object,f=function(e){return e===u},h=function(e){return"function"==typeof e},p="undefined"==typeof window||"Deno"in window?i.useEffect:i.useLayoutEffect,d=new WeakMap,v=0,g=function(e){var t,r,n=typeof e,o=e&&e.constructor,i=o==Date;if(c(e)!==e||i||o==RegExp)t=i?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=d.get(e))return t;if(t=++v+"~",d.set(e,t),o==Array){for(r=0,t="@";r<e.length;r++)t+=g(e[r])+",";d.set(e,t)}if(o==c){t="#";for(var s=c.keys(e).sort();!f(r=s.pop());)f(e[r])||(t+=r+":"+g(e[r])+",");d.set(e,t)}}return t},m=function(e){if(h(e))try{e=e()}catch(t){e=""}var t=[].concat(e),r=(e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?g(e):"")?"$swr$"+e:"";return[e,t,r]},y=(n=s.Ay,o=function(e){return function(t,r,n){var o=(0,i.useState)({})[1],s=(0,i.useRef)(!1),l=(0,i.useRef)(),a=n.cache,c=n.initialSize,d=void 0===c?1:c,v=n.revalidateAll,g=void 0!==v&&v,y=n.persistSize,w=void 0!==y&&y,b=n.revalidateFirstPage,S=void 0===b||b,E=n.revalidateOnMount,T=null;try{T=m(t?t(0,null):null)[0]}catch(e){}var _=null,O=null;T&&(_="$ctx$"+T,O="$len$"+T);var M=(0,i.useCallback)(function(){var e=a.get(O);return f(e)?d:e},[O,d]),x=(0,i.useRef)(M());p(function(){if(!s.current){s.current=!0;return}T&&a.set(O,w?x.current:d)},[T]);var L=void 0!==E&&E&&!s.current,R=e(T?"$inf$"+T:null,function(){var e,o,i,s;return e=void 0,o=void 0,i=void 0,s=function(){var e,o,i,s,u,c,h,p,d,v,y,w;return function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){var a=[i,l];if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}}(this,function(b){switch(b.label){case 0:o=(e=a.get(_)||[])[0],i=e[1],s=[],u=M(),c=null,h=0,b.label=1;
1case 1:if(!(h<u)||(d=(p=m(t(h,c)))[0],v=p[1],!d))return[3,5];if(y=a.get(d),w=g||o||f(y)||S&&!h&&!f(l.current)||L||i&&!f(i[h])&&!n.compare(i[h],y),!(r&&w))return[3,3];return[4,r.apply(void 0,v)];case 2:y=b.sent(),a.set(d,y),b.label=3;case 3:s.push(y),c=y,b.label=4;case 4:return++h,[3,1];case 5:return a.delete(_),[2,s]}})},new(i||(i=Promise))(function(t,r){function n(e){try{a(s.next(e))}catch(e){r(e)}}function l(e){try{a(s.throw(e))}catch(e){r(e)}}function a(e){var r;e.done?t(e.value):((r=e.value)instanceof i?r:new i(function(e){e(r)})).then(n,l)}a((s=s.apply(e,o||[])).next())})},n);p(function(){l.current=R.data},[R.data]);var D=(0,i.useCallback)(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[0],n=!1!==e[1];if(_){if(n)if(f(r))a.set(_,[!0]);else{var o=l.current;a.set(_,[!1,o])}return e.length?R.mutate(r,n):R.mutate()}},[_]),Y=function(e){for(var r=[],n=null,o=0;o<e;++o){var i=m(t(o,n))[0],s=i?a.get(i):u;if(f(s))return l.current;r.push(s),n=s}return r},k=(0,i.useCallback)(function(e){var t;if(O&&(h(e)?t=e(M()):"number"==typeof e&&(t=e),"number"==typeof t))return a.set(O,t),x.current=t,o({}),D(Y(t))},[O,M,D]);return{size:M(),setSize:k,mutate:D,get error(){return R.error},get data(){return R.data},get isValidating(){return R.isValidating}}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=h(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],i=r[0],s=r[1],a=r[2],u=(a.use||[]).concat(o);return n(i,s,l(l({},a),{use:u}))})}}]);

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.