PageSourceSearch

https://www.systembolaget.se/_next/static/chunks/1c_pwjaisntvj.js

js systembolaget.se collected 2026-10-02 04:13:41 UTC 33,550 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,195600,536394,95963,126477,e=>{"use strict";let t,n=["top","right","bottom","left"],r=n.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),i=Math.min,o=Math.max,l=Math.round,a=Math.floor,s=e=>({x:e,y:e}),f={left:"right",right:"left",bottom:"top",top:"bottom"};function c(e,t){return"function"==typeof e?e(t):e}function u(e){return e.split("-")[0]}function d(e){return e.split("-")[1]}function p(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}function m(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function g(e,t,n){void 0===n&&(n=!1);let r=d(e),i=p(m(e)),o=h(i),l="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=R(l)),[l,R(l)]}function x(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let w=["left","right"],y=["right","left"],v=["top","bottom"],b=["bottom","top"];function R(e){let t=u(e);return f[t]+e.slice(t.length)}function A(e){var t,n,r,i;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(i=e.left)?i:0}:{top:e,right:e,bottom:e,left:e}}function C(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function S(e,t,n){let r,{reference:i,floating:o}=e,l=m(t),a=p(m(t)),s=h(a),f=u(t),c=i.x+i.width/2-o.width/2,g=i.y+i.height/2-o.height/2,x=i[s]/2-o[s]/2;switch(f){case"top":r={x:c,y:i.y-o.height};break;case"bottom":r={x:c,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:g};break;case"left":r={x:i.x-o.width,y:g};break;default:r={x:i.x,y:i.y}}let w=d(t);return w&&(r[a]+=x*("end"===w?1:-1)*(n&&"y"===l?-1:1)),r}async function T(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:l,elements:a,strategy:s}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=c(t,e),m=A(h),g=a[p?"floating"===d?"reference":"floating":d],x=C(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:f,rootBoundary:u,strategy:s})),w="floating"===d?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,y=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),v=await (null==o.isElement?void 0:o.isElement(y))&&await (null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},b=C(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:y,strategy:s}):w);return{top:(x.top-b.top+m.top)/v.y,bottom:(b.bottom-x.bottom+m.bottom)/v.y,left:(x.left-b.left+m.left)/v.x,right:(b.right-x.right+m.right)/v.x}}let L=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:T},s=await (null==l.isRTL?void 0:l.isRTL(t)),f=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:u}=S(f,r,s),d=r,p=0,h={};for(let n=0;n<o.length;n++){let m=o[n];if(!m)continue;let{name:g,fn:x}=m,{x:w,y:y,data:v,reset:b}=await x({x:c,y:u,initialPlacement:r,placement:d,strategy:i,middlewareData:h,rects:f,platform:a,elements:{reference:e,floating:t}});c=null!=w?w:c,u=null!=y?y:u,h[g]={...h[g],...v},b&&p<50&&(p++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(f=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):b.rects),{x:c,y:u}=S(f,d,s)),n=-1)}return{x:c,y:u,placement:d,strategy:i,middlewareData:h}};function O(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function P(e){return n.some(t=>e[t]>=0)}function E(e){let t=i(...e.map(e=>e.left)),n=i(...e.map(e=>e.top));return{x:t,y:n,width:o(...e.map(e=>e.right))-t,height:o(...e.map(e=>e.bottom))-n}}let j=new Set(["left","top"]);async function D(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),l=u(n),a=d(n),s="y"===m(n),f=j.has(l)?-1:1,p=o&&s?-1:1,h=c(t,e),{mainAxis:g,crossAxis:x,alignmentAxis:w}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}
1:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&"number"==typeof w&&(x="end"===a?-1*w:w),s?{x:x*p,y:g*f}:{x:g*f,y:x*p}}function N(){return"u">typeof window}function H(e){return F(e)?(e.nodeName||"").toLowerCase():"#document"}function z(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function k(e){var t;return null==(t=(F(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function F(e){return!!N()&&(e instanceof Node||e instanceof z(e).Node)}function W(e){return!!N()&&(e instanceof Element||e instanceof z(e).Element)}function B(e){return!!N()&&(e instanceof HTMLElement||e instanceof z(e).HTMLElement)}function M(e){return!(!N()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof z(e).ShadowRoot)}function $(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function V(e){return/^(table|td|th)$/.test(H(e))}function I(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let _=/transform|translate|scale|rotate|perspective|filter/,Y=/paint|layout|strict|content/,U=e=>!!e&&"none"!==e;function X(e){let t=W(e)?J(e):e;return U(t.transform)||U(t.translate)||U(t.scale)||U(t.rotate)||U(t.perspective)||!q()&&(U(t.backdropFilter)||U(t.filter))||_.test(t.willChange||"")||Y.test(t.contain||"")}function K(e){let t=Z(e);for(;B(t)&&!G(t);){if(X(t))return t;if(I(t))break;t=Z(t)}return null}function q(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function G(e){return/^(html|body|#document)$/.test(H(e))}function J(e){return z(e).getComputedStyle(e)}function Q(e){return W(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Z(e){if("html"===H(e))return e;let t=e.assignedSlot||e.parentNode||M(e)&&e.host||k(e);return M(t)?t.host:t}function ee(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=Z(t);return G(n)?(t.ownerDocument||t).body:B(n)&&$(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),l=z(i);if(!o)return t.concat(i,ee(i,[],n));{let e=et(l);return t.concat(l,l.visualViewport||[],$(i)?i:[],e&&n?ee(e):[])}}function et(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function en(e){let t=J(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=B(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=l(n)!==o||l(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function er(e){return W(e)?e:e.contextElement}function ei(e){let t=er(e);if(!B(t))return s(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=en(t),a=(o?l(n.width):n.width)/r,f=(o?l(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),f&&Number.isFinite(f)||(f=1),{x:a,y:f}}e.s(["getComputedStyle",0,J,"getContainingBlock",0,K,"getDocumentElement",0,k,"getFrameElement",0,et,"getNodeName",0,H,"getNodeScroll",0,Q,"getOverflowAncestors",0,ee,"getParentNode",0,Z,"getWindow",0,z,"isContainingBlock",0,X,"isElement",0,W,"isHTMLElement",0,B,"isLastTraversableNode",0,G,"isOverflowElement",0,$,"isTableElement",0,V,"isTopLayer",0,I,"isWebKit",0,q],536394);let eo=s(0);function el(e){let t=z(e);return q()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eo}function ea(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),l=er(e),a=s(1);t&&(r?W(r)&&(a=ei(r)):a=ei(e));let f=(void 0===(i=n)&&(i=!1),r&&i&&r===z(l))?el(l):s(0),c=(o.left+f.x)/a.x,u=(o.top+f.y)/a.y,d=o.width/a.x,p=o.height/a.y;if(l&&r){let e=z(l),t=W(r)?z(r):r,n=e,i=et(n);for(;i&&t!==n;){let e=ei(i),t=i.getBoundingClientRect(),r=J(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,d*=e.x,p*=e.y,c+=o,u+=l,i=et(n=z(i))}}return C({width:d,height:p,x:c,y:u})}function es(e,t){let n=Q(e).scrollLeft;return t?t.left+n:ea(k(e)).left+n}function ef(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-es(e,n),y:n.top+t.scrollTop}}function ec(e,t,n){var r;let i;if("viewport"===t||"layoutViewport"===t)i=function(e,t,n){void 0===n&&(n="viewport");
1let r="layoutViewport"===n,i=z(e),o=k(e),l=i.visualViewport,a=o.clientWidth,s=o.clientHeight,f=0,c=0;if(l){let e=!q()||"fixed"===t;r?e||(f=-l.offsetLeft,c=-l.offsetTop):(a=l.width,s=l.height,e&&(f=l.offsetLeft,c=l.offsetTop))}if(0>=es(o)){let e=o.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(o.clientWidth-t.clientWidth-r),l="stable both-edges"===getComputedStyle(o).scrollbarGutter?i/2:i;l<=25&&(a-=l)}return{width:a,height:s,x:f,y:c}}(e,n,t);else if("document"===t){let t,n,l,a,s,f;t=Q(r=k(e)),n=r.ownerDocument.body,l=o(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),a=o(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight),s=-t.scrollLeft+es(r),f=-t.scrollTop,"rtl"===J(n).direction&&(s+=o(r.clientWidth,n.clientWidth)-l),i={width:l,height:a,x:s,y:f}}else if(W(t)){let e,r,o,l,a,s;r=(e=ea(t,!0,"fixed"===n)).top+t.clientTop,o=e.left+t.clientLeft,l=ei(t),a=t.clientWidth*l.x,s=t.clientHeight*l.y,i={width:a,height:s,x:o*l.x,y:r*l.y}}else{let n=el(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return C(i)}function eu(e){return"static"===J(e).position}function ed(e,t){if(!B(e)||"fixed"===J(e).position)return null;if(t)return t(e);let n=e.offsetParent;return k(e)===n&&(n=n.ownerDocument.body),n}function ep(e,t){let n=z(e);if(I(e))return n;if(!B(e)){let t=Z(e);for(;t&&!G(t);){if(W(t)&&!eu(t))return t;t=Z(t)}return n}let r=ed(e,t);for(;r&&V(r)&&eu(r);)r=ed(r,t);return r&&G(r)&&eu(r)&&!X(r)?n:r||K(e)||n}let eh=async function(e){let t=this.getOffsetParent||ep,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=B(t),i=k(t),o="fixed"===n,l=ea(e,!0,o,t),a={scrollLeft:0,scrollTop:0},f=s(0);if((r||!o)&&(("body"!==H(t)||$(i))&&(a=Q(t)),r)){let e=ea(t,!0,o,t);f.x=e.x+t.clientLeft,f.y=e.y+t.clientTop}!r&&i&&(f.x=es(i));let c=!i||r||o?s(0):ef(i,a);return{x:l.left+a.scrollLeft-f.x-c.x,y:l.top+a.scrollTop-f.y-c.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},em={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,l=k(r),a=!!t&&I(t.floating);if(r===l||a&&o)return n;let f={scrollLeft:0,scrollTop:0},c=s(1),u=s(0),d=B(r);if((d||!o)&&(("body"!==H(r)||$(l))&&(f=Q(r)),d)){let e=ea(r);c=ei(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let p=!l||d||o?s(0):ef(l,f);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-f.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-f.scrollTop*c.y+u.y+p.y}},getDocumentElement:k,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:l}=e,a=[..."clippingAncestors"===n?I(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=ee(e,[],!1).filter(e=>W(e)&&"body"!==H(e)),i=null,o="fixed"===J(e).position,l=o?Z(e):e;for(;W(l)&&!G(l);){let e=J(l),t=X(l),n=i?i.position:o?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?i=e:r=r.filter(e=>e!==l),l=Z(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=ec(t,a[0],l),f=s.top,c=s.right,u=s.bottom,d=s.left;for(let e=1;e<a.length;e++){let n=ec(t,a[e],l);f=o(n.top,f),c=i(n.right,c),u=i(n.bottom,u),d=o(n.left,d)}return{width:c-d,height:u-f,x:d,y:f}},getOffsetParent:ep,getElementRects:eh,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=en(e);return{width:t,height:n}},getScale:ei,isElement:W,isRTL:function(e){return"rtl"===J(e).direction}};function eg(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let ex=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:o,placement:l,middlewareData:a}=t,s=await D(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+s.x,y:o+s.y,data:{...s,placement:l}}}}},ew=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:l,platform:a}=t,{mainAxis:s=!0,crossAxis:f=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...d}=c(e,t),h={x:n,y:r},g=await a.detectOverflow(t,d),x=m(l),w=p(x),y=h[w],v=h[x],b=(e,t)=>o(t+g["y"===e?"top":"left"],i(t,t-g["y"===e?"bottom":"right"]));s&&(y=b(w,y)),f&&(v=b(x,v));let R=u.fn({...t,[w]:y,[x]:v});return{...R,data:{x:R.x-n,y:R.y-r,enabled:{[w]:s,[x]:f}}}}}},ey=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o,l;let a,s,f,{placement:p,middlewareData:h,rects:A,initialPlacement:C,platform:S,elements:T}=t,{mainAxis:L=!0,crossAxis:O=!0,fallbackPlacements:P,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:j="none",flipAlignment:D=!0,...N}=c(e,t);if(null!=(n=h.arrow)&&n.alignmentOffset)return{};let H=u(p),z=m(C),k=u(C)===C,F=await (null==S.isRTL?void 0:S.isRTL(T.floating)),W=P||(k||!D?[R(C)]:(a=R(C),[x(C),a,x(a)])),B="none"!==j;!P&&B&&W.push(...(s=d(C),f=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?y:w;return t?w:y;case"left":case"right":return t?v:b;default:return[]}}(u(C),"start"===j,F),s&&(f=f.map(e=>e+"-"+s),D&&(f=f.concat(f.map(x)))),f));let M=[C,...W],$=await S.detectOverflow(t,N),V=[],I=(null==(r=h.flip)?void 0:r.overflows)||[];if(L&&V.push($[H]),O){let e=g(p,A,F);V.push($[e[0]],$[e[1]])}if(I=[...I,{placement:p,overflows:V}],!V.every(e=>e<=0)){let e=((null==(i=h.flip)?void 0:i.index)||0)+1,t=M[e];if(t&&("alignment"!==O||z===m(t)||I.every(e=>m(e.placement)!==z||e.overflows[0]>0)))return{data:{index:e,overflows:I},reset:{placement:t}};let n=null==(o=I.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(E){case"bestFit":{let e=null==(l=I.filter(e=>{if(B){let t=m(e.placement);return t===z||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=C}if(p!==n)return{reset:{placement:n}}}return{}}}},ev=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,r,{placement:l,rects:a,platform:s,elements:f}=t,{apply:p=()=>{},...h}=c(e,t),g=await s.detectOverflow(t,h),x=u(l),w=d(l),y="y"===m(l),{width:v,height:b}=a.floating;"top"===x||"bottom"===x?(n=x,r=w===(await (null==s.isRTL?void 0:s.isRTL(f.floating))?"start":"end")?"left":"right"):(r=x,n="end"===w?"top":"bottom");let R=b-g.top-g.bottom,A=v-g.left-g.right,C=i(b-g[n],R),S=i(v-g[r],A),T=t.middlewareData.shift,L=!T,O=C,P=S;null!=T&&T.enabled.x&&(P=A),null!=T&&T.enabled.y&&(O=R),L&&!w&&(y?P=v-2*o(g.left,g.right):O=b-2*o(g.top,g.bottom)),await p({...t,availableWidth:P,availableHeight:O});let E=await s.getDimensions(f.floating);return v!==E.width||b!==E.height?{reset:{rects:!0}}:{}}}},eb=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i="referenceHidden",...o}=c(e,t);switch(i){case"referenceHidden":{let e=O(await r.detectOverflow(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:P(e)}}}case"escaped":{let e=O(await r.detectOverflow(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:P(e)}}}default:return{}}}}},eR=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:l,rects:a,platform:s,elements:f,middlewareData:u}=t,{element:g,padding:x=0}=c(e,t)||{};if(null==g)return{};let w=A(x),y={x:n,y:r},v=p(m(l)),b=h(v),R=await s.getDimensions(g),C="y"===v,S=C?"clientHeight":"clientWidth",T=a.reference[b]+a.reference[v]-y[v]-a.floating[b],L=y[v]-a.reference[v],O=await (null==s.getOffsetParent?void 0:s.getOffsetParent(g)),P=O?O[S]:0;P&&await (null==s.isElement?void 0:s.isElement(O))||(P=f.floating[S]||a.floating[b]);let E=P/2-R[b]/2-1,j=i(w[C?"top":"left"],E),D=i(w[C?"bottom":"right"],E),N=P-R[b]-D,H=P/2-R[b]/2+(T/2-L/2),z=o(j,i(H,N)),k=!u.arrow&&null!=d(l)&&H!==z&&a.reference[b]/2-(H<j?j:D)-R[b]/2<0,F=k?H<j?H-j:H-N:0;return{[v]:y[v]+F,data:{[v]:z,centerOffset:H-z-F,...k&&{alignmentOffset:F}},reset:k}}}),eA=function(e){return void 0===e&&(e={}),{options:e,fn(t){var n,r,i,o;let{x:l,y:a,placement:s,rects:f,middlewareData:d}=t,{offset:h=0,mainAxis:g=!0,crossAxis:x=!0}=c(e,t),w={x:l,y:a},y=m(s),v=p(y),b=w[v],R=w[y],A=c(h,t),C="number"==typeof A?{mainAxis:A,crossAxis:0}:{mainAxis:null!=(n=A.mainAxis)?n:0,crossAxis:null!=(r=A.crossAxis)?r:0};if(g){let e="y"===v?"height":"width",t=f.reference[v]-f.floating[e]+C.mainAxis,n=f.reference[v]+f.reference[e]-C.mainAxis;b<t?b=t:b>n&&(b=n)}if(x){let e="y"===v?"width":"height",t=j.has(u(s)),n=f.reference[y]-f.floating[e]+(t&&(null==(i=d.offset)?void 0:i[y])||0)+(t?0:C.crossAxis),r=f.reference[y]+f.reference[e]+(t?0:(null==(o=d.offset)?void 0:o[y])||0)-(t?C.crossAxis:0);R<n?R=n:R>r&&(R=r)}return{[v]:b,[y]:R}}}},eC=(e,t,n)=>{let r=new Map,i=null!=n?n:{},o={...em,...i.platform,_c:r};return L(e,t,{...i,platform:o})};e.s(["arrow",0,eR,"autoPlacement",0,function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,i,o,l;let{rects:a,middlewareData:s,placement:f,platform:p,elements:h}=t,{crossAxis:m=!1,alignment:w,allowedPlacements:y=r,autoAlignment:v=!0,...b}=c(e,t),R=void 0!==w||y===r?((l=w||null)?[...y.filter(e=>d(e)===l),...y.filter(e=>d(e)!==l)]:y.filter(e=>u(e)===e)).filter(e=>!l||d(e)===l||!!v&&x(e)!==e):y,A=(null==(n=s.autoPlacement)?void 0:n.index)||0,C=R[A];if(null==C)return{};if(f!==C)return{reset:{placement:R[0]}};let S=await p.detectOverflow(t,b),T=g(C,a,await (null==p.isRTL?void 0:p.isRTL(h.floating))),L=[S[u(C)],S[T[0]],S[T[1]]],O=[...(null==(i=s.autoPlacement)?void 0:i.overflows)||[],{placement:C,overflows:L}],P=R[A+1];if(P)return{data:{index:A+1,overflows:O},reset:{placement:P}};let E=O.map(e=>{let t=d(e.placement);return[e.placement,t&&m?e.overflows.slice(0,2).reduce((e,t)=>
1e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),j=(null==(o=E.filter(e=>e[2].slice(0,d(e[0])?2:3).every(e=>e<=0))[0])?void 0:o[0])||E[0][0];return j!==f?{data:{index:A+1,overflows:O},reset:{placement:j}}:{}}}},"autoUpdate",0,function(e,t,n,r){let l;void 0===r&&(r={});let{ancestorScroll:s=!0,ancestorResize:f=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,p=er(e),h=s||f?[...p?ee(p):[],...t?ee(t):[]]:[];h.forEach(e=>{s&&e.addEventListener("scroll",n),f&&e.addEventListener("resize",n)});let m=p&&u?function(e,t,n){let r,l=null,s=k(e);function f(){var e;clearTimeout(r),null==(e=l)||e.disconnect(),l=null}function c(n,u){void 0===n&&(n=!1),void 0===u&&(u=1),f();let d=e.getBoundingClientRect(),{left:p,top:h,width:m,height:g}=d;if(n||t(),!m||!g)return;let x={rootMargin:-a(h)+"px "+-a(s.clientWidth-(p+m))+"px "+-a(s.clientHeight-(h+g))+"px "+-a(p)+"px",threshold:o(0,i(1,u))||1},w=!0;function y(t){let n=t[0].intersectionRatio;if(!eg(d,e.getBoundingClientRect()))return c();if(n!==u){if(!w)return c();n?c(!1,n):r=setTimeout(()=>{c(!1,1e-7)},1e3)}w=!1}try{l=new IntersectionObserver(y,{...x,root:s.ownerDocument})}catch(e){l=new IntersectionObserver(y,x)}l.observe(e)}let u=z(e),d=()=>c(n);return u.addEventListener("resize",d),c(!0),()=>{u.removeEventListener("resize",d),f()}}(p,n,f):null,g=-1,x=null;c&&(x=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&x&&t&&(x.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=x)||e.observe(t)})),n()}),p&&!d&&x.observe(p),t&&x.observe(t));let w=d?ea(e):null;return d&&function t(){let r=ea(e);w&&!eg(w,r)&&n(),w=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;h.forEach(e=>{s&&e.removeEventListener("scroll",n),f&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=x)||e.disconnect(),x=null,d&&cancelAnimationFrame(l)}},"computePosition",0,eC,"flip",0,ey,"hide",0,eb,"inline",0,function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:n,elements:r,rects:l,platform:a,strategy:s}=t,{padding:f=2,x:d,y:p}=c(e,t),h=Array.from(await (null==a.getClientRects?void 0:a.getClientRects(r.reference))||[]);if(!h.length)return{};let g=function(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>C(E(e)))}(h),x=C(E(h)),w=A(f),y=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===g.length&&(g[0].left>g[1].right||g[1].left>g[0].right)&&null!=d&&null!=p)return g.find(e=>d>e.left-w.left&&d<e.right+w.right&&p>e.top-w.top&&p<e.bottom+w.bottom)||x;if(g.length>=2){if("y"===m(n)){let e=g[0],t=g[g.length-1],r="top"===u(n),i=e.top,o=t.bottom,l=r?e.left:t.left;return C({x:l,y:i,width:(r?e.right:t.right)-l,height:o-i})}let e="left"===u(n),t=o(...g.map(e=>e.right)),r=i(...g.map(e=>e.left)),l=g.filter(n=>e?n.left===r:n.right===t),a=l[0].top;return C({x:r,y:a,width:t-r,height:l[l.length-1].bottom-a})}return x}},floating:r.floating,strategy:s});return l.reference.x!==y.reference.x||l.reference.y!==y.reference.y||l.reference.width!==y.reference.width||l.reference.height!==y.reference.height?{reset:{rects:y}}:{}}}},"limitShift",0,eA,"offset",0,ex,"shift",0,ew,"size",0,ev],95963);var eS=e.i(191788),eT=e.i(730943),eL="u">typeof document?eS.useLayoutEffect:function(){};function eO(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eO(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!eO(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eP(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eE(e,t){let n=eP(e);return Math.round(t*n)/n}function ej(e){let t=eS.useRef(e);return eL(()=>{t.current=e}),t}e.s(["arrow",0,(e,t)=>{let n={name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eR({element:n.current,padding:r}).fn(t):{}:n?eR({element:n,padding:r}).fn(t):{}}};return{name:n.name,fn:n.fn,options:[e,t]}},"flip",0,(e,t)=>{let n=ey(e);return{name:n.name,fn:n.fn,options:[e,t]}},"hide",0,(e,t)=>{let n=eb(e);return{name:n.name,fn:n.fn,options:[e,t]}},"limitShift",0,(e,t)=>({fn:eA(e).fn,options:[e,t]}),"offset",0,(e,t)=>{let n=ex(e);return{name:n.name,fn:n.fn,options:[e,t]}},"shift",0,(e,t)=>{let n=ew(e);return{name:n.name,fn:n.fn,options:[e,t]}},"size",0,(e,t)=>{let n=ev(e);return{name:n.name,fn:n.fn,options:[e,t]}},"useFloating",0,function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:l}={},transform:a=!0,whileElementsMounted:s,open:f}=e,[c,u]=eS.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=eS.useState(r);eO(d,r)||p(r);let[h,m]=eS.useState(null),[g,x]=eS.useState(null),w=eS.useCallback(e=>
vendor: 1,085 bytes, line 1
1{e!==R.current&&(R.current=e,m(e))},[]),y=eS.useCallback(e=>{e!==A.current&&(A.current=e,x(e))},[]),v=o||h,b=l||g,R=eS.useRef(null),A=eS.useRef(null),C=eS.useRef(c),S=null!=s,T=ej(s),L=ej(i),O=ej(f),P=eS.useCallback(()=>{if(!R.current||!A.current)return;let e={placement:t,strategy:n,middleware:d};L.current&&(e.platform=L.current),eC(R.current,A.current,e).then(e=>{let t={...e,isPositioned:!1!==O.current};E.current&&!eO(C.current,t)&&(C.current=t,eT.flushSync(()=>{u(t)}))})},[d,t,n,L,O]);eL(()=>{!1===f&&C.current.isPositioned&&(C.current.isPositioned=!1,u(e=>({...e,isPositioned:!1})))},[f]);let E=eS.useRef(!1);eL(()=>(E.current=!0,()=>{E.current=!1}),[]),eL(()=>{if(v&&(R.current=v),b&&(A.current=b),v&&b){if(T.current)return T.current(v,b,P);P()}},[v,b,P,T,S]);let j=eS.useMemo(()=>({reference:R,floating:A,setReference:w,setFloating:y}),[w,y]),D=eS.useMemo(()=>({reference:v,floating:b}),[v,b]),N=eS.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=eE(D.floating,c.x),r=eE(D.floating,c.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...eP(
1D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,D.floating,c.x,c.y]);return eS.useMemo(()=>({...c,update:P,refs:j,elements:D,floatingStyles:N}),[c,P,j,D,N])}],195600);var eD=e.i(674534),eN=e.i(391398),eH=eS.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,eN.jsx)(eD.Primitive.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eN.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eH.displayName="Arrow",e.s(["Root",0,eH],126477)},746359,e=>{"use strict";var t=e.i(191788),n=e.i(195600),r=e.i(95963),i=e.i(126477),o=e.i(357006),l=e.i(479293),a=e.i(674534),s=e.i(998657),f=e.i(776833),c=e.i(474864),u=e.i(391398),d="Popper",[p,h]=(0,l.createContextScope)(d),[m,g]=p(d),x=e=>{let{__scopePopper:n,children:r}=e,[i,o]=t.useState(null),[l,a]=t.useState(void 0);return(0,u.jsx)(m,{scope:n,anchor:i,onAnchorChange:o,placementState:l,setPlacementState:a,children:r})};x.displayName=d;var w="PopperAnchor",y=t.forwardRef((e,n)=>{let{__scopePopper:r,virtualRef:i,...l}=e,s=g(w,r),f=t.useRef(null),c=s.onAnchorChange,d=t.useCallback(e=>{f.current=e,e&&c(e)},[c]),p=(0,o.useComposedRefs)(n,d),h=t.useRef(null);t.useEffect(()=>{if(!i)return;let e=h.current;h.current=i.current,e!==h.current&&c(h.current)});let m=s.placementState&&P(s.placementState),x=m?.[0],y=m?.[1];return i?null:(0,u.jsx)(a.Primitive.div,{"data-radix-popper-side":x,"data-radix-popper-align":y,...l,ref:p})});y.displayName=w;var v="PopperContent",[b,R]=p(v),A=t.forwardRef((e,i)=>{let{__scopePopper:l,side:d="bottom",sideOffset:p=0,align:h="center",alignOffset:m=0,arrowPadding:x=0,avoidCollisions:w=!0,collisionBoundary:y,collisionPadding:R=0,sticky:A="partial",hideWhenDetached:C=!1,updatePositionStrategy:S="optimized",onPlaced:T,...E}=e,j=g(v,l),[D,N]=t.useState(null),H=(0,o.useComposedRefs)(i,e=>N(e)),[z,k]=t.useState(null),F=(0,c.useSize)(z),W=F?.width??0,B=F?.height??0,M="number"==typeof R?R:{top:0,right:0,bottom:0,left:0,...R},$=y?Array.isArray(y)?y:[y]:void 0,V=void 0!==$&&$.length>0,I={padding:M,boundary:$?.filter(L),altBoundary:V},{refs:_,floatingStyles:Y,placement:U,isPositioned:X,middlewareData:K}=(0,n.useFloating)({strategy:"fixed",placement:d+("center"!==h?"-"+h:""),whileElementsMounted:(...e)=>(0,r.autoUpdate)(...e,{animationFrame:"always"===S}),elements:{reference:j.anchor},middleware:[(0,n.offset)({mainAxis:p+B,alignmentAxis:m}),w&&(0,n.shift)({mainAxis:!0,crossAxis:!1,limiter:"partial"===A?(0,n.limitShift)():void 0,...I}),w&&(0,n.flip)({...I}),(0,n.size)({...I,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:o}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${r}px`),l.setProperty("--radix-popper-anchor-width",`${i}px`),l.setProperty("--radix-popper-anchor-height",`${o}px`)}}),z&&(0,n.arrow)({element:z,padding:x}),O({arrowWidth:W,arrowHeight:B}),C&&(0,n.hide)({strategy:"referenceHidden",...I})]}),q=j.setPlacementState;(0,f.useLayoutEffect)(()=>(q(U),()=>{q(void 0)}),[U,q]);let[G,J]=P(U),Q=(0,s.useCallbackRef)(T);(0,f.useLayoutEffect)(()=>{X&&Q?.()},[X,Q]);let Z=K.arrow?.x,ee=K.arrow?.y,et=K.arrow?.centerOffset!==0,[en,er]=t.useState();return(0,f.useLayoutEffect)(()=>{D&&er(window.getComputedStyle(D).zIndex)},[D]),(0,u.jsx)("div",{ref:_.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:X?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:en,"--radix-popper-transform-origin":[K.transformOrigin?.x,K.transformOrigin?.y].join(" "),...K.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,u.jsx)(b,{scope:l,placedSide:G,placedAlign:J,onArrowChange:k,arrowX:Z,arrowY:ee,shouldHideArrow:et,children:(0,u.jsx)(a.Primitive.div,{"data-side":G,"data-align":J,...E,ref:H,style:{...E.style,animation:X?void 0:"none"}})})})});A.displayName=v;var C="PopperArrow",S={top:"bottom",right:"left",bottom:"top",left:"right"},T=t.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=R(C,n),l=S[o.placedSide];return(0,u.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,u.jsx)(i.Root,{...r,ref:t,style:{...r.style,display:"block"}})})});function L(e){return null!==e}T.displayName=C;var O=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,l=o?0:e.arrowWidth,a=o?0:e.arrowHeight,[s,f]=P(n),c={start:"0%",center:"50%",end:"100%"}[f],u=(i.arrow?.x??0)+l/2,d=(i.arrow?.y??0)+a/2,p="",h="";return"bottom"===s?(p=o?c:`${u}px`,h=`${-a}px`):"top"===s?(p=o?c:`${u}px`,h=`${r.floating.height+a}px`):"right"===s?(p=`${-a}px`,h=o?c:`${d}px`):"left"===s&&(p=`${r.floating.width+a}px`,h=o?c:`${d}px`),{data:{x:p,y:h}}}});function P(e){let[t,n="center"]=e.split("-");return[t,n]}e.s(["Anchor",0,y,"Arrow",0,T,"Content",0,A,"Root",0,x,"createPopperScope",0,h])},474864,e=>{"use strict";var t=e.i(191788),n=e.i(776833);e.s(["useSize",0,function(e){let[r,i]=t.useState(void 0);return(0,n.useLayoutEffect)(()=>
1{if(e){i({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,r;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,r=t.blockSize}else n=e.offsetWidth,r=e.offsetHeight;i({width:n,height:r})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}i(void 0)},[e]),r}])},853035,290568,e=>{"use strict";var t=e.i(391398),n=e.i(914586),r=e.i(135598),i=e.i(386547);function o({...e}){return(0,t.jsx)(r.Portal,{"data-slot":"dialog-portal",...e})}function l({...e}){return(0,t.jsx)(r.Close,{"data-slot":"dialog-close",...e})}function a({className:e,...n}){return(0,t.jsx)(r.Overlay,{"data-slot":"dialog-overlay",className:(0,i.cn)("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-[100000001] bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",e),...n})}function s({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"dialog-header",className:(0,i.cn)("flex items-center gap-2 px-6 py-4 text-left",e),...n})}function f({className:e,...n}){return(0,t.jsx)(r.Title,{"data-slot":"dialog-title",className:(0,i.cn)("sans-strong-250 text-foreground leading-none",e),...n})}e.s(["Dialog",0,function({...e}){return(0,t.jsx)(r.Root,{"data-slot":"dialog",...e})},"DialogClose",0,l,"DialogContent",0,function({className:e,children:n,...l}){return(0,t.jsxs)(o,{"data-slot":"dialog-portal",children:[(0,t.jsx)(a,{}),(0,t.jsx)(r.Content,{"data-slot":"dialog-content",className:(0,i.cn)("fixed z-[100000001] flex flex-col rounded-2xl bg-background shadow-lg","h-auto max-h-[90vh] w-[calc(100%-24px)] md:w-[480px]","fixed top-[50%] left-[50%] translate-x-[-50%] translate-y-[-50%] duration-200","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=open]:animate-in",e),...l,children:n})]})},"DialogDescription",0,function({className:e,...n}){return(0,t.jsx)(r.Description,{"data-slot":"dialog-description",className:(0,i.cn)("text-muted-foreground text-sm",e),...n})},"DialogFooter",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"dialog-footer",className:(0,i.cn)("flex w-full flex-col gap-2 p-6 md:justify-end",e),...n})},"DialogHeader",0,s,"DialogOverlay",0,a,"DialogTitle",0,f,"DialogTrigger",0,function({...e}){return(0,t.jsx)(r.Trigger,{"data-slot":"dialog-trigger","aria-haspopup":"dialog",...e})}],290568);var c=e.i(727528),u=e.i(335955);function d({children:e,className:n}){return(0,t.jsx)("div",{className:(0,i.cn)("scrollbar-thin flex w-full flex-1 flex-col overflow-y-auto px-6 md:max-h-[498px]",n),children:e})}e.s(["DialogContentHeader",0,function({heading:e,className:r,hideCloseButton:o}){return(0,t.jsxs)(s,{className:(0,i.cn)("justify-between",r),children:[(0,t.jsx)(f,{children:e}),!o&&(0,t.jsx)(l,{asChild:!0,children:(0,t.jsx)(n.Button,{variant:"white-default",size:"icon-md",icon:(0,t.jsx)(u.CloseIcon,{}),text:"Stäng"})})]})},"DialogContentWrapper",0,d,"DrawerContentHeader",0,function({heading:e,className:n,onBack:r}){return(0,t.jsx)(c.DrawerHeader,{className:(0,i.cn)("w-full justify-between",n),onBack:r,children:e?(0,t.jsx)(c.DrawerTitle,{className:"grow text-center",children:e}):(0,t.jsx)(c.DrawerTitle,{className:"sr-only",children:"Drawer"})})},"DrawerContentWrapper",0,function({children:e,className:n}){return(0,t.jsx)(d,{className:(0,i.cn)("p-6 md:max-h-full",n),children:e})}],853035)}]);

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.