PageSourceSearch

https://vipps.no/_next/static/chunks/0o6wkaxm16ip-.js?dpl=187224eb91564477fc1da2e38f0a914c32af07b4

js vipps.no collected 2026-09-24 08:56:34 UTC 46,520 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,370359,e=>{"use strict";e.s(["ACTIVE_COMPOSITE_ITEM",0,"data-composite-item-active"])},395530,73364,e=>{"use strict";var t=e.i(15010),n=e.i(828918),r=e.i(838452),o=e.i(673553);e.s(["useCompositeItem",0,function(e={}){let{highlightItemOnHover:i,highlightedIndex:l,onHighlightedIndexChange:u}=(0,r.useCompositeRootContext)(),{ref:a,index:s}=(0,o.useCompositeListItem)(e),c=l===s,f=t.useRef(null),d=(0,n.useMergedRefs)(a,f);return{compositeProps:{tabIndex:c?0:-1,onFocus(){u(s)},onMouseMove(){let e=f.current;if(!i||!e)return;let t=e.hasAttribute("disabled")||"true"===e.ariaDisabled;c||t||e.focus()}},compositeRef:d,index:s}}],395530);var i=e.i(343084),l=e.i(229315);e.s(["getCssDimensions",0,function(e){let t=(0,l.getComputedStyle)(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=(0,l.isHTMLElement)(e),u=o?e.offsetWidth:n,a=o?e.offsetHeight:r;return((0,i.round)(n)!==u||(0,i.round)(r)!==a)&&(n=u,r=a),{width:n,height:r}}],73364)},405934,e=>{"use strict";var t=e.i(15010),n=e.i(956789),r=e.i(53687),o=e.i(590803),i=e.i(667865),l=e.i(828918),u=e.i(146376),a=e.i(673327),s=e.i(621082),c=e.i(370359),f=e.i(584446),d=e.i(838452),v=e.i(552245),m=e.i(872855),p=e.i(438232);e.s(["CompositeRoot",0,function(e){let{render:g,className:h,style:b,refs:E=n.EMPTY_ARRAY,props:y=n.EMPTY_ARRAY,state:R=n.EMPTY_OBJECT,stateAttributesMapping:w,highlightedIndex:x,onHighlightedIndexChange:C,orientation:L,grid:M,loopFocus:k,onLoop:A,enableHomeAndEndKeys:T,onMapChange:S,stopEventPropagation:I=!0,rootRef:N,disabledIndices:O,modifierKeys:P,highlightItemOnHover:D=!1,tag:_="div",...W}=e,{props:F,highlightedIndex:H,onHighlightedIndexChange:B,elementsRef:j,onMapChange:K,relayKeyboardEvent:U}=function(e){let{loopFocus:r=!0,orientation:d="both",grid:v,onLoop:m,direction:p,highlightedIndex:g,onHighlightedIndexChange:h,rootRef:b,enableHomeAndEndKeys:E=!1,stopEventPropagation:y,disabledIndices:R,modifierKeys:w=n.EMPTY_ARRAY}=e,[x,C]=t.useState(0),L=null!=v,M=t.useRef(null),k=(0,l.useMergedRefs)(M,b),A=t.useRef([]),T=t.useRef(!1),S=t.useRef(null),I=g??x,N=(0,i.useStableCallback)((e,t=!1)=>{if(S.current=A.current[e]??null,(h??C)(e),t){let t=A.current[e];(0,a.scrollIntoViewIfNeeded)(M.current,t,p,d)}}),O=(0,i.useStableCallback)(e=>{if(0===e.size)return;if(T.current){let e=A.current,t=e.indexOf(S.current);if(-1===t){let t=e[I];!t||(0,s.isListIndexDisabled)(e,I,R)?N(function(e,t){let n=-1;for(let r=0;r<e.length;r+=1){let o=e[r];if(!(!o||(0,s.isListIndexDisabled)(e,r,t))){if(o.hasAttribute(c.ACTIVE_COMPOSITE_ITEM))return r;-1===n&&(n=r)}}return Math.max(n,0)}(e,R)):S.current=t}else t!==I&&N(t);return}T.current=!0;let t=Array.from(e.keys()),n=t.find(e=>e?.hasAttribute(c.ACTIVE_COMPOSITE_ITEM))??null,r=n?e.get(n)?.index??-1:-1;if(-1!==r)N(r);else if((0,s.isListIndexDisabled)(t,I,R)){let e=(0,s.findNonDisabledListIndex)(t,{disabledIndices:R});(0,s.isIndexOutOfListBounds)(t,e)||N(e)}(0,a.scrollIntoViewIfNeeded)(M.current,n,p,d)});(0,u.useIsoLayoutEffect)(()=>{if(null==R||null!=g||!T.current)return;let e=A.current;if((0,s.isListIndexDisabled)(e,I,R)){let t=(0,s.findNonDisabledListIndex)(e,{disabledIndices:R});(0,s.isIndexOutOfListBounds)(e,t)||N(t)}},[R,g,I,A,N]);let P=(0,i.useStableCallback)((e,t,n)=>m?m(e,t,n,A):n),D=(0,i.useStableCallback)(e=>{let t=e.key===a.HOME||e.key===a.END;if(!a.COMPOSITE_KEYS.has(e.key)||!E&&t||function(e,t){for(let n of a.MODIFIER_KEYS)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}(e,w)||!M.current)return;let n="rtl"===p,i=n?a.ARROW_LEFT:a.ARROW_RIGHT,l=n?a.ARROW_RIGHT:a.ARROW_LEFT,u="vertical"===d?a.ARROW_DOWN:i,c="vertical"===d?a.ARROW_UP:l,g=(0,f.getTarget)(e.nativeEvent);if(null!=g&&(0,a.isNativeInput)(g)&&!(0,o.isElementDisabled)(g)){let t=g.selectionStart,n=g.selectionEnd,r=g.value;if(null==t||e.shiftKey||t!==n||e.key!==c&&t<r.length||e.key!==u&&t>0)return}let h=I,b=(0,s.getMinListIndex)(A,R),x=(0,s.getMaxListIndex)(A,R);null!=v&&(h=v({disabledIndices:R,elementsRef:A,event:e,highlightedIndex:I,loopFocus:r,maxIndex:x,minIndex:b,onLoop:P,orientation:d,rtl:n}));let C="vertical"!==d&&e.key===i||"horizontal"!==d&&e.key===a.ARROW_DOWN,k="vertical"!==d&&e.key===l||"horizontal"!==d&&e.key===a.ARROW_UP;E&&(e.key===a.HOME?h=b:e.key===a.END&&(h=x)),h===I&&(C||k)&&(r&&h===x&&C?(h=b,m&&(h=m(e,I,h,A))):r&&h===b&&k?(h=x,m&&(h=m(e,I,h,A))):h=(0,s.findNonDisabledListIndex)(A.current,{startingIndex:h,decrement:k,disabledIndices:R})),h===I||(0,s.isIndexOutOfListBounds)(A.current,h)||(y&&e.stopPropagation(),(L||t||C||k)&&e.preventDefault(),N(h,!0),queueMicrotask(()=>{A.current[h]?.focus()}))});return{props:{ref:k,onFocus(e){let t=M.current,n=(0,f.getTarget)(e.nativeEvent);t&&null!=n&&(0,a.isNativeInput)(n)&&n.setSelectionRange(0,n.value.length)},onKeyDown:D},highlightedIndex:I,onHighlightedIndexChange:N,elementsRef:A,onMapChange:O,relayKeyboardEvent:D}}({grid:M,loopFocus:k,onLoop:A,orientation:L,highlightedIndex:x,onHighlightedIndexChange:C,rootRef:N,stopEventPropagation:I,enableHomeAndEndKeys:T,direction:(0,m.useDirection)(),disabledIndices:O,modifierKeys:P}),q=(0,v.useRenderElement)(_,e,{state:R,ref:E,props:[F,...y,W],stateAttributesMapping:w}),Y=t.useMemo(()=>({highlightedIndex:H,onHighlightedIndexChange:B,highlightItemOnHover:D,relayKeyboardEvent:U}),[H,B,D,U]);return(0,p.jsx)(d.CompositeRootContext.Provider,{value:Y,children:(0,p.jsx)(r.CompositeList,{elementsRef:j,onMapChange:e=>{S?.(e),K(e)},children:q})})}],405934)},543489,e=>{"use strict";var t=e.i(15010),n=e.i(229315),r=(e.i(343084),'input:not([inert]):not([inert] *),select:not([inert]):not([inert] *),textarea:not([inert]):not([inert] *),a[href]:not([inert]):not([inert] *),button:not([inert]):not([inert] *),[tabindex]:not
1(slot):not([inert]):not([inert] *),audio[controls]:not([inert]):not([inert] *),video[controls]:not([inert]):not([inert] *),[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *),details>summary:first-of-type:not([inert]):not([inert] *),details:not([inert]):not([inert] *)'),o="u"<typeof Element,i=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,l=!o&&Element.prototype.getRootNode?function(e){var t;return null==e||null==(t=e.getRootNode)?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},u=function(e,t){void 0===t&&(t=!0);var n,r=null==e||null==(n=e.getAttribute)?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):u(e.parentNode))},a=function(e){var t,n=null==e||null==(t=e.getAttribute)?void 0:t.call(e,"contenteditable");return""===n||"true"===n},s=function(e,t,n){if(u(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(r));return t&&i.call(e,r)&&o.unshift(e),o=o.filter(n)},c=function(e,t,n){for(var o=[],l=Array.from(e);l.length;){var a=l.shift();if(!u(a,!1))if("SLOT"===a.tagName){var s=a.assignedElements(),f=c(s.length?s:a.children,!0,n);n.flatten?o.push.apply(o,f):o.push({scopeParent:a,candidates:f})}else{i.call(a,r)&&n.filter(a)&&(t||!e.includes(a))&&o.push(a);var d=a.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(a),v=!u(d,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(d&&v){var m=c(!0===d?a.children:d.children,!0,n);n.flatten?o.push.apply(o,m):o.push({scopeParent:a,candidates:m})}else l.unshift.apply(l,a.children)}}return o},f=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},d=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||a(e))&&!f(e)?0:e.tabIndex},v=function(e,t){var n=d(e);return n<0&&t&&!f(e)?0:n},m=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},p=function(e){return"INPUT"===e.tagName},g=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},h=function(e){if(!e.name)return!0;var t,n=e.form||l(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("u">typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=g(t,e.form);return!o||o===e},b=function(e){return p(e)&&"radio"===e.type&&!h(e)},E=function(e){var t,n,r,o,i,u,a,s=e&&l(e),c=null==(t=s)?void 0:t.host,f=!1;if(s&&s!==e)for(f=!!(null!=(n=c)&&null!=(r=n.ownerDocument)&&r.contains(c)||null!=e&&null!=(o=e.ownerDocument)&&o.contains(e));!f&&c;)f=!!(null!=(u=c=null==(i=s=l(c))?void 0:i.host)&&null!=(a=u.ownerDocument)&&a.contains(c));return f},y=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},R=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var o=i.call(e,"details>summary:first-of-type")?e.parentElement:e;if(i.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return y(e)}else{if("function"==typeof r){for(var u=e;e;){var a=e.parentElement,s=l(e);if(a&&!a.shadowRoot&&!0===r(a))return y(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host}e=u}if(E(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},w=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!i.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1},x=function(e,t){return!(t.disabled||p(t)&&"hidden"===t.type||R(t,e)||"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some(function(e){return"SUMMARY"===e.tagName})||w(t))},C=function(e,t){return!(b(t)||0>d(t))&&!!x(e,t)},L=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||!!(t>=0)},M=function(e){var t=[],n=[];
vendor: 8,388 bytes, line 1
1return e.forEach(function(e,r){var o=!!e.scopeParent,i=o?e.scopeParent:e,l=v(i,o),u=o?M(e.candidates):i;0===l?o?t.push.apply(t,u):t.push(i):n.push({documentOrder:r,tabIndex:l,item:e,isScope:o,content:u})}),n.sort(m).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},k=function(e,t){return M((t=t||{}).getShadowRoot?c([e],t.includeContainer,{filter:C.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:L}):s(e,t.includeContainer,C.bind(null,t)))},A=function(e,t){return(t=t||{}).getShadowRoot?c([e],t.includeContainer,{filter:x.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):s(e,t.includeContainer,x.bind(null,t))},T=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==i.call(e,r)&&C(t,e)};function S(){let e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function I(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function N(){return/apple/i.test(navigator.vendor)}function O(){let e=/android/i;return e.test(S())||e.test(I())}function P(){return I().includes("jsdom/")}let D="data-floating-ui-focusable";function _(e){let t=e.activeElement;for(;(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function W(e,t){if(!e||!t)return!1;let r=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&(0,n.isShadowRoot)(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function F(e){return"composedPath"in e?e.composedPath()[0]:e.target}function H(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function B(e){return(null==e?void 0:e.ownerDocument)||document}function j(e){return(0,n.isHTMLElement)(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function K(e){return!!e&&"combobox"===e.getAttribute("role")&&j(e)}function U(e){return e?e.hasAttribute(D)?e:e.querySelector("["+D+"]")||e:null}function q(e,t,n){return void 0===n&&(n=!0),e.filter(e=>{var r;return e.parentId===t&&(!n||(null==(r=e.context)?void 0:r.open))}).flatMap(t=>[t,...q(e,t.id,n)])}function Y(e,t){var n;let r=[],o=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;o;){let t=e.find(e=>e.id===o);o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}function V(e){e.preventDefault(),e.stopPropagation()}function z(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var X="u">typeof document?t.useLayoutEffect:function(){};function G(e){let n=t.useRef(e);return X(()=>{n.current=e}),n}let $={...t}.useInsertionEffect||(e=>e());function J(e){let n=t.useRef(()=>{});return $(()=>{n.current=e}),t.useCallback(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)},[])}let Q=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Z(e,t){let n=k(e,Q()),r=n.length;if(0===r)return;let o=_(B(e)),i=n.indexOf(o);return n[-1===i?1===t?0:r-1:i+t]}function ee(e){return Z(B(e).body,1)||e}function et(e){return Z(B(e).body,-1)||e}function en(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!W(n,r)}function er(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}var eo=e.i(438232),ei=e.i(488171),el=e.i(258950);let eu="active",ea="selected",es={...t},ec=!1,ef=0,ed=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+ef++,ev=es.useId||function(){let[e,n]=t.useState(()=>ec?ed():void 0);return X(()=>{null==e&&n(ed())},[]),t.useEffect(()=>{ec=!0},[]),e},em=t.createContext(null),ep=t.createContext(null),eg=()=>{var e;return(null==(e=t.useContext(em))?void 0:e.id)||null};function eh(e){return"data-floating-ui-"+e}function eb(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}let eE=eh("safe-polygon");function ey(e,t,n){if(n&&!z(n))return 0;if("number"==typeof e)return e;if("function"==typeof e){let n=e();return"number"==typeof n?n:null==n?void 0:n[t]}return null==e?void 0:e[t]}function eR(e){return"function"==typeof e?e():e}let ew=0;function ex(e,t){void 0===t&&(t={});let{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(ew);let i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():ew=requestAnimationFrame(i)}function eC(e,t){if(!e||!t)return!1;let r=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&(0,n.isShadowRoot)(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}let eL={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function eM(e){return"inert"===e?eL.inert:"aria-hidden"===e?eL["aria-hidden"]:eL.none}let ek=new WeakSet,eA={},eT=0;function eS(e,t,r){var o,i,l;let u,a,s,c,f,d,v;void 0===t&&(t=!1),void 0===r&&(r=!1);let m=((null==(o=e[0])?void 0:o.ownerDocument)||document).body;return i=e.concat(Array.from(m.querySelectorAll('[aria-live],[role="status"],output'))),l=t,u="data-floating-ui-inert",a=r?"inert":l?"aria-hidden":null,s=i.map(e=>{if(m.contains(e))return e;let t=function e(t){return t?(0,n.isShadowRoot)(t)?t.host:e(t.parentNode):null}(e);return m.contains(t)?t:null}).filter(e=>null!=e),c=new Set,f=new Set(s),d=[],eA[u]||(eA[u]=new WeakMap),v=eA[u],s.forEach(function e(t){!(!t||c.has(t))&&(c.add(t),t.parentNode&&e(t.parentNode))}),function e(t){!t||f.has(t)||[].forEach.call(t.children,t=>{if("script"!==(0,n.getNodeName)(t))if(c.has(t))e(t);else{let e=a?t.getAttribute(a):null,n=null!==e&&"false"!==e,r=eM(a),o=(r.get(t)||0)+1,i=(v.get(t)||0)+1;r.set(t,o),v.set(t,i),d.push(t),1===o&&n&&ek.add(t),1===i&&t.setAttribute(u,""),!n&&a&&t.setAttribute(a,"inert"===a?"":"true")}})}(m),c.clear(),eT++,()=>{d.forEach(e=>{let t=eM(a),n=(t.get(e)||0)-1,r=(v.get(e)||0)-1;t.set(e,n),v.set(e,r),n||(!ek.has(e)&&a&&e.removeAttribute(a),ek.delete(e)),r||e.removeAttribute(u)}),--eT||(eL.inert=new WeakMap,eL["aria-hidden"]=new WeakMap,eL.none=new WeakMap,ek=new WeakSet,eA={})}}let eI={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},eN=t.forwardRef(function(e,n){let[r,o]=t.useState();X(()=>{N()&&o("button")},[]);let i={ref:n,tabIndex:0,role:r,"aria-hidden":!r||void 0,[eh("focus-guard")]:"",style:eI};return(0,eo.jsx)("span",{...e,...i})}),eO={clipPath:"inset(50%)",position:"fixed",top:0,left:0},eP=t.createContext(null),eD=eh("portal");function e_(e){return t.useMemo(()=>t=>{e.forEach(e=>{e&&(e.current=t)})},e)}let eW=[];function eF(){eW=eW.filter(e=>{var t;return null==(t=e.deref())?void 0:t.isConnected})}function eH(){eF();let e=eW[eW.length-1];return null==e?void 0:e.deref()}function eB(e,t){var n;if(!t.current.includes("floating")&&!(null!=(n=e.getAttribute("role"))&&n.includes("dialog")))return;let r=Q(),o=A(e,r).filter(e=>{let t=e.getAttribute("data-tabindex")||"";return T(e,r)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),i=e.getAttribute("tabindex");t.current.includes("floating")||0===o.length?"0"!==i&&e.setAttribute("tabindex","0"):("-1"!==i||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}let ej=t.forwardRef(function(e,t){return(0,eo.jsx)("button",{...e,type:"button",ref:t,tabIndex:-1,style:eI})});function eK(e){return(0,n.isHTMLElement)(e.target)&&"BUTTON"===e.target.tagName}let eU={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},eq={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},eY=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function eV(){return S().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints&&N()}function ez(e,t,n){let r=new Map,o="item"===n,i=e;if(o&&e){let{[eu]:t,[ea]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,"data-floating-ui-focusable":""},...i,...t.map(t=>{let r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>
1(t&&Object.entries(t).forEach(t=>{let[n,i]=t;if(!(o&&[eu,ea].includes(n)))if(0===n.indexOf("on")){if(r.has(n)||r.set(n,[]),"function"==typeof i){var l;null==(l=r.get(n))||l.push(i),e[n]=function(){for(var e,t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)}}}else e[n]=i}),e),{})}}let eX=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function eG(e,t){let[n,r]=e,o=!1,i=t.length;for(let e=0,l=i-1;e<i;l=e++){let[i,u]=t[e]||[0,0],[a,s]=t[l]||[0,0];u>=r!=s>=r&&n<=(a-i)*(r-u)/(s-u)+i&&(o=!o)}return o}e.s(["FloatingFocusManager",0,function(e){let{context:r,children:o,disabled:i=!1,order:l=["content"],guards:u=!0,initialFocus:a=0,returnFocus:s=!0,restoreFocus:c=!1,modal:f=!0,visuallyHiddenDismiss:d=!1,closeOnFocusOut:v=!0,outsideElementsInert:m=!1,getInsideElements:p=()=>[]}=e,{open:g,onOpenChange:h,events:b,dataRef:E,elements:{domReference:y,floating:R}}=r,w=J(()=>{var e;return null==(e=E.current.floatingContext)?void 0:e.nodeId}),x=J(p),C="number"==typeof a&&a<0,L=K(y)&&C,M="u">typeof HTMLElement&&"inert"in HTMLElement.prototype,A=!M||u,S=!A||M&&m,I=G(l),N=G(a),D=G(s),H=t.useContext(ep),j=t.useContext(eP),z=t.useRef(null),$=t.useRef(null),Z=t.useRef(!1),er=t.useRef(!1),ei=t.useRef(-1),el=t.useRef(-1),eu=null!=j,ea=U(R),es=J(function(e){return void 0===e&&(e=ea),e?k(e,Q()):[]}),ec=J(e=>{let t=es(e);return I.current.map(e=>y&&"reference"===e?y:ea&&"floating"===e?ea:t).filter(Boolean).flat()});t.useEffect(()=>{if(i||!f)return;function e(e){if("Tab"===e.key){W(ea,_(B(ea)))&&0===es().length&&!L&&V(e);let t=ec(),n=F(e);"reference"===I.current[0]&&n===y&&(V(e),e.shiftKey?ex(t[t.length-1]):ex(t[1])),"floating"===I.current[1]&&n===ea&&e.shiftKey&&(V(e),ex(t[0]))}}let t=B(ea);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[i,y,ea,f,I,L,es,ec]),t.useEffect(()=>{if(!i&&R)return R.addEventListener("focusin",e),()=>{R.removeEventListener("focusin",e)};function e(e){let t=F(e),n=es().indexOf(t);-1!==n&&(ei.current=n)}},[i,R,es]),t.useEffect(()=>{if(i||!v)return;function e(){er.current=!0,setTimeout(()=>{er.current=!1})}function t(e){let t=e.relatedTarget,r=e.currentTarget,o=F(e);queueMicrotask(()=>{let i=w(),l=!(W(y,t)||W(R,t)||W(t,R)||W(null==j?void 0:j.portalNode,t)||null!=t&&t.hasAttribute(eh("focus-guard"))||H&&(q(H.nodesRef.current,i).find(e=>{var n,r;return W(null==(n=e.context)?void 0:n.elements.floating,t)||W(null==(r=e.context)?void 0:r.elements.domReference,t)})||Y(H.nodesRef.current,i).find(e=>{var n,r,o;return[null==(n=e.context)?void 0:n.elements.floating,U(null==(r=e.context)?void 0:r.elements.floating)].includes(t)||(null==(o=e.context)?void 0:o.elements.domReference)===t})));if(r===y&&ea&&eB(ea,I),c&&r!==y&&!(null!=o&&o.isConnected)&&_(B(ea))===B(ea).body){(0,n.isHTMLElement)(ea)&&ea.focus();let e=ei.current,t=es(),r=t[e]||t[t.length-1]||ea;(0,n.isHTMLElement)(r)&&r.focus()}if(E.current.insideReactTree){E.current.insideReactTree=!1;return}(L||!f)&&t&&l&&!er.current&&t!==eH()&&(Z.current=!0,h(!1,e,"focus-out"))})}let r=!!(!H&&j);function o(){eb(el),E.current.insideReactTree=!0,el.current=window.setTimeout(()=>{E.current.insideReactTree=!1})}if(R&&(0,n.isHTMLElement)(y))return y.addEventListener("focusout",t),y.addEventListener("pointerdown",e),R.addEventListener("focusout",t),r&&R.addEventListener("focusout",o,!0),()=>{y.removeEventListener("focusout",t),y.removeEventListener("pointerdown",e),R.removeEventListener("focusout",t),r&&R.removeEventListener("focusout",o,!0)}},[i,y,R,ea,f,H,j,h,v,c,es,L,w,I,E]);let ef=t.useRef(null),ed=t.useRef(null),ev=e_([ef,null==j?void 0:j.beforeInsideRef]),em=e_([ed,null==j?void 0:j.afterInsideRef]);function eg(e){return!i&&d&&f?(0,eo.jsx)(ej,{ref:"start"===e?z:$,onClick:e=>h(!1,e.nativeEvent),children:"string"==typeof d?d:"Dismiss"}):null}t.useEffect(()=>{var e,t;if(i||!R)return;let n=Array.from((null==j||null==(e=j.portalNode)?void 0:e.querySelectorAll("["+eh("portal")+"]"))||[]),r=[R,null==(t=(H?Y(H.nodesRef.current,w()):[]).find(e=>{var t;return K((null==(t=e.context)?void 0:t.elements.domReference)||null)}))||null==(t=t.context)?void 0:t.elements.domReference,...n,...x(),z.current,$.current,ef.current,ed.current,null==j?void 0:j.beforeOutsideRef.current,null==j?void 0:j.afterOutsideRef.current,I.current.includes("reference")||L?y:null].filter(e=>null!=e),o=f||L?eS(r,!S,S):eS(r);return()=>{o()}},[i,y,R,f,I,j,L,A,S,H,w,x]),X(()=>
1{if(i||!(0,n.isHTMLElement)(ea))return;let e=_(B(ea));queueMicrotask(()=>{let t=ec(ea),n=N.current,r=("number"==typeof n?t[n]:n.current)||ea,o=W(ea,e);C||o||!g||ex(r,{preventScroll:r===ea})})},[i,g,ea,C,ec,N]),X(()=>{var e;if(i||!ea)return;let t=B(ea);function r(e){let{reason:t,event:n,nested:r}=e;if(["hover","safe-polygon"].includes(t)&&"mouseleave"===n.type&&(Z.current=!0),"outside-press"===t)if(r)Z.current=!1;else if(0===n.mozInputSource&&n.isTrusted||(O()&&n.pointerType?"click"===n.type&&1===n.buttons:0===n.detail&&!n.pointerType)||!P()&&(!O()&&0===n.width&&0===n.height||O()&&1===n.width&&1===n.height&&0===n.pressure&&0===n.detail&&"mouse"===n.pointerType||n.width<1&&n.height<1&&0===n.pressure&&0===n.detail&&"touch"===n.pointerType))Z.current=!1;else{let e=!1;document.createElement("div").focus({get preventScroll(){return e=!0,!1}}),e?Z.current=!1:Z.current=!0}}e=_(t),eF(),e&&"body"!==(0,n.getNodeName)(e)&&(eW.push(new WeakRef(e)),eW.length>20&&(eW=eW.slice(-20))),b.on("openchange",r);let o=t.createElement("span");return o.setAttribute("tabindex","-1"),o.setAttribute("aria-hidden","true"),Object.assign(o.style,eI),eu&&y&&y.insertAdjacentElement("afterend",o),()=>{b.off("openchange",r);let e=_(t),i=W(R,e)||H&&q(H.nodesRef.current,w(),!1).some(t=>{var n;return W(null==(n=t.context)?void 0:n.elements.floating,e)}),l=function(){if("boolean"==typeof D.current){let e=y||eH();return e&&e.isConnected?e:o}return D.current.current||o}();queueMicrotask(()=>{let r,u=T(l,r=Q())?l:k(l,r)[0]||l;D.current&&!Z.current&&(0,n.isHTMLElement)(u)&&(u===e||e===t.body||i)&&u.focus({preventScroll:!0}),o.remove()})}},[i,R,ea,D,E,b,H,eu,y,w]),t.useEffect(()=>(queueMicrotask(()=>{Z.current=!1}),()=>{queueMicrotask(eF)}),[i]),X(()=>{if(!i&&j)return j.setFocusManagerState({modal:f,closeOnFocusOut:v,open:g,onOpenChange:h,domReference:y}),()=>{j.setFocusManagerState(null)}},[i,j,f,g,h,v,y]),X(()=>{i||ea&&eB(ea,I)},[i,ea,I]);let eE=!i&&A&&(!f||!L)&&(eu||f);return(0,eo.jsxs)(eo.Fragment,{children:[eE&&(0,eo.jsx)(eN,{"data-type":"inside",ref:ev,onFocus:e=>{if(f){let e=ec();ex("reference"===l[0]?e[0]:e[e.length-1])}else if(null!=j&&j.preserveTabOrder&&j.portalNode)if(Z.current=!1,en(e,j.portalNode)){let e=ee(y);null==e||e.focus()}else{var t;null==(t=j.beforeOutsideRef.current)||t.focus()}}}),!L&&eg("start"),o,eg("end"),eE&&(0,eo.jsx)(eN,{"data-type":"inside",ref:em,onFocus:e=>{if(f)ex(ec()[0]);else if(null!=j&&j.preserveTabOrder&&j.portalNode)if(v&&(Z.current=!0),en(e,j.portalNode)){let e=et(y);null==e||e.focus()}else{var t;null==(t=j.afterOutsideRef.current)||t.focus()}}})]})},"FloatingPortal",0,function(e){let{children:r,id:o,root:i,preserveTabOrder:l=!0}=e,u=function(e){void 0===e&&(e={});let{id:r,root:o}=e,i=ev(),l=t.useContext(eP),[u,a]=t.useState(null),s=t.useRef(null);return X(()=>()=>{null==u||u.remove(),queueMicrotask(()=>{s.current=null})},[u]),X(()=>{if(!i||s.current)return;let e=r?document.getElementById(r):null;if(!e)return;let t=document.createElement("div");t.id=i,t.setAttribute(eD,""),e.appendChild(t),s.current=t,a(t)},[r,i]),X(()=>{if(null===o||!i||s.current)return;let e=o||(null==l?void 0:l.portalNode);e&&!(0,n.isNode)(e)&&(e=e.current),e=e||document.body;let t=null;r&&((t=document.createElement("div")).id=r,e.appendChild(t));let u=document.createElement("div");u.id=i,u.setAttribute(eD,""),(e=t||e).appendChild(u),s.current=u,a(u)},[r,o,i,l]),u}({id:o,root:i}),[a,s]=t.useState(null),c=t.useRef(null),f=t.useRef(null),d=t.useRef(null),v=t.useRef(null),m=null==a?void 0:a.modal,p=null==a?void 0:a.open,g=!!a&&!a.modal&&a.open&&l&&!!(i||u);return t.useEffect(()=>{if(u&&l&&!m)return u.addEventListener("focusin",e,!0),u.addEventListener("focusout",e,!0),()=>{u.removeEventListener("focusin",e,!0),u.removeEventListener("focusout",e,!0)};function e(e){u&&en(e)&&("focusin"===e.type?er:function(e){k(e,Q()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})})(u)}},[u,l,m]),t.useEffect(()=>{!u||p||er(u)},[p,u]),(0,eo.jsxs)(eP.Provider,{value:t.useMemo(()=>({preserveTabOrder:l,beforeOutsideRef:c,afterOutsideRef:f,beforeInsideRef:d,afterInsideRef:v,portalNode:u,setFocusManagerState:s}),[l,u]),children:[g&&u&&(0,eo.jsx)(eN,{"data-type":"outside",ref:c,onFocus:e=>{if(en(e,u)){var t;
1null==(t=d.current)||t.focus()}else{let e=et(a?a.domReference:null);null==e||e.focus()}}}),g&&u&&(0,eo.jsx)("span",{"aria-owns":u.id,style:eO}),u&&ei.createPortal(r,u),g&&u&&(0,eo.jsx)(eN,{"data-type":"outside",ref:f,onFocus:e=>{if(en(e,u)){var t;null==(t=v.current)||t.focus()}else{let t=ee(a?a.domReference:null);null==t||t.focus(),(null==a?void 0:a.closeOnFocusOut)&&(null==a||a.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})},"safePolygon",0,function(e){void 0===e&&(e={});let{buffer:t=.5,blockPointerEvents:r=!1,requireIntent:o=!0}=e,i={current:-1},l=!1,u=null,a=null,s="u">typeof performance?performance.now():0,c=e=>{let{x:r,y:c,placement:f,elements:d,onClose:v,nodeId:m,tree:p}=e;return function(e){function g(){eb(i),v()}if(eb(i),!d.domReference||!d.floating||null==f||null==r||null==c)return;let{clientX:h,clientY:b}=e,E=[h,b],y="composedPath"in e?e.composedPath()[0]:e.target,R="mouseleave"===e.type,w=eC(d.floating,y),x=eC(d.domReference,y),C=d.domReference.getBoundingClientRect(),L=d.floating.getBoundingClientRect(),M=f.split("-")[0],k=r>L.right-L.width/2,A=c>L.bottom-L.height/2,T=E[0]>=C.x&&E[0]<=C.x+C.width&&E[1]>=C.y&&E[1]<=C.y+C.height,S=L.width>C.width,I=L.height>C.height,N=(S?C:L).left,O=(S?C:L).right,P=(I?C:L).top,D=(I?C:L).bottom;if(w&&(l=!0,!R))return;if(x&&(l=!1),x&&!R){l=!0;return}if(R&&(0,n.isElement)(e.relatedTarget)&&eC(d.floating,e.relatedTarget)||p&&function e(t,n,r){return void 0===r&&(r=!0),t.filter(e=>{var t;return e.parentId===n&&(!r||(null==(t=e.context)?void 0:t.open))}).flatMap(n=>[n,...e(t,n.id,r)])}(p.nodesRef.current,m).length)return;if("top"===M&&c>=C.bottom-1||"bottom"===M&&c<=C.top+1||"left"===M&&r>=C.right-1||"right"===M&&r<=C.left+1)return g();let _=[];switch(M){case"top":_=[[N,C.top+1],[N,L.bottom-1],[O,L.bottom-1],[O,C.top+1]];break;case"bottom":_=[[N,L.top+1],[N,C.bottom-1],[O,C.bottom-1],[O,L.top+1]];break;case"left":_=[[L.right-1,D],[L.right-1,P],[C.left+1,P],[C.left+1,D]];break;case"right":_=[[C.right-1,D],[C.right-1,P],[L.left+1,P],[L.left+1,D]]}if(!eG([h,b],_)){if(l&&!T)return g();if(!R&&o){let t=function(e,t){let n=performance.now(),r=n-s;if(null===u||null===a||0===r)return u=e,a=t,s=n,null;let o=e-u,i=t-a,l=Math.sqrt(o*o+i*i);return u=e,a=t,s=n,l/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return g()}eG([h,b],function(e){let[n,r]=e;switch(M){case"top":{let e=[[L.left,k||S?L.bottom-t:L.top],[L.right,k?S?L.bottom-t:L.top:L.bottom-t]];return[[S?n+t/2:k?n+4*t:n-4*t,r+t+1],[S?n-t/2:k?n+4*t:n-4*t,r+t+1],...e]}case"bottom":{let e=[[L.left,k||S?L.top+t:L.bottom],[L.right,k?S?L.top+t:L.bottom:L.top+t]];return[[S?n+t/2:k?n+4*t:n-4*t,r-t],[S?n-t/2:k?n+4*t:n-4*t,r-t],...e]}case"left":return[[A||I?L.right-t:L.left,L.top],[A?I?L.right-t:L.left:L.right-t,L.bottom],[n+t+1,I?r+t/2:A?r+4*t:r-4*t],[n+t+1,I?r-t/2:A?r+4*t:r-4*t]];case"right":{let e=[[A||I?L.left+t:L.right,L.top],[A?I?L.left+t:L.right:L.left+t,L.bottom]];return[[n-t,I?r+t/2:A?r+4*t:r-4*t],[n-t,I?r-t/2:A?r+4*t:r-4*t],...e]}}}([r,c]))?!l&&o&&(i.current=window.setTimeout(g,40)):g()}}};return c.__options={blockPointerEvents:r},c},"useClick",0,function(e,r){void 0===r&&(r={});let{open:o,onOpenChange:i,dataRef:l,elements:{domReference:u}}=e,{enabled:a=!0,event:s="click",toggle:c=!0,ignoreMouse:f=!1,keyboardHandlers:d=!0,stickIfOpen:v=!0}=r,m=t.useRef(),p=t.useRef(!1),g=t.useMemo(()=>({onPointerDown(e){m.current=e.pointerType},onMouseDown(e){let t=m.current;0!==e.button||"click"===s||z(t,!0)&&f||(o&&c&&(!l.current.openEvent||!v||"mousedown"===l.current.openEvent.type)?i(!1,e.nativeEvent,"click"):(e.preventDefault(),i(!0,e.nativeEvent,"click")))},onClick(e){let t=m.current;if("mousedown"===s&&m.current){m.current=void 0;return}z(t,!0)&&f||(o&&c&&(!l.current.openEvent||!v||"click"===l.current.openEvent.type)?i(!1,e.nativeEvent,"click"):i(!0,e.nativeEvent,"click"))},onKeyDown(e){m.current=void 0,!(e.defaultPrevented||!d||eK(e))&&(" "!==e.key||j(u)||(e.preventDefault(),p.current=!0),(0,n.isHTMLElement)(e.target)&&"A"===e.target.tagName||"Enter"!==e.key||(o&&c?i(!1,e.nativeEvent,"click"):i(!0,e.nativeEvent,"click")))},onKeyUp(e){!(e.defaultPrevented||!d||eK(e)||j(u))&&" "===e.key&&p.current&&(p.current=!1,o&&c?i(!1,e.nativeEvent,"click"):i(!0,e.nativeEvent,"click"))}}),[l,u,s,f,d,i,o,v,c]);return t.useMemo(()=>a?{reference:g}:{},[a,g])},"useDismiss",0,function(e,r){void 0===r&&(r={});let{open:o,onOpenChange:i,elements:l,dataRef:u}=e,{enabled:a=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:f="pointerdown",referencePress:d=!1,referencePressEvent:v="pointerdown",ancestorScroll:m=!1,bubbles:p,capture:g}=r,h=t.useContext(ep),b=J("function"==typeof c?c:()=>!1),E="function"==typeof c?b:c,y=t.useRef(!1),{escapeKey:R,outsidePress:w}=eY(p),{escapeKey:x,outsidePress:C}=eY(g),L=t.useRef(!1),M=J(e=>{var t;if(!o||!a||!s||"Escape"!==e.key||L.current)return;let n=null==(t=u.current.floatingContext)?void 0:t.nodeId,r=h?q(h.nodesRef.current,n):[];if(!R&&(e.stopPropagation(),r.length>0)){let e=!0;if(r.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}i(!1,"nativeEvent"in e?e.nativeEvent:e,"escape-key")}),k=J(e=>{var t;let n=()=>{var t;M(e),null==(t=F(e))||t.removeEventListener("keydown",n)};null==(t=F(e))||t.addEventListener("keydown",n)}),A=J(e=>{var t;let r=u.current.insideReactTree;u.current.insideReactTree=!1;let o=y.current;if(y.current=!1,"click"===f&&o||r||"function"==typeof E&&!E(e))return;let a=F(e),s="["+eh("inert")+"]",c=B(l.floating).querySelectorAll(s),d=(0,n.isElement)(a)?a:null;for(;d&&!(0,n.isLastTraversableNode)(d);){let e=(0,n.getParentNode)(d);if((0,n.isLastTraversableNode)(e)||!(0,n.isElement)(e))break;d=e}if(c.length&&(0,n.isElement)(a)&&!a.matches("html,body")&&!W(a,l.floating)&&Array.from(c).every(e=>!W(d,e)))return;if((0,n.isHTMLElement)(a)&&I){let t=(0,n.isLastTraversableNode)(a),r=(0,n.getComputedStyle)(a),o=/auto|scroll/,i=t||o.test(r.overflowX),l=t||o.test(r.overflowY),u=i&&a.clientWidth>0&&a.scrollWidth>a.clientWidth,s=l&&a.clientHeight>0&&a.scrollHeight>a.clientHeight,c="rtl"===r.direction,f=s&&(c?e.offsetX<=a.offsetWidth-a.clientWidth:e.offsetX>a.clientWidth),d=u&&e.offsetY>a.clientHeight;if(f||d)return}let v=null==(t=u.current.floatingContext)?void 0:t.nodeId,m=h&&q(h.nodesRef.current,v).some(t=>{var n;return H(e,null==(n=t.context)?void 0:n.elements.floating)});if(H(e,l.floating)||H(e,l.domReference)||m)return;let p=h?q(h.nodesRef.current,v):[];if(p.length>0){let e=!0;
vendor: 6,319 bytes, line 1
1if(p.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}i(!1,e,"outside-press")}),T=J(e=>{var t;let n=()=>{var t;A(e),null==(t=F(e))||t.removeEventListener(f,n)};null==(t=F(e))||t.addEventListener(f,n)});t.useEffect(()=>{if(!o||!a)return;u.current.__escapeKeyBubbles=R,u.current.__outsidePressBubbles=w;let e=-1;function t(e){i(!1,e,"ancestor-scroll")}function r(){window.clearTimeout(e),L.current=!0}function c(){e=window.setTimeout(()=>{L.current=!1},5*!!(0,n.isWebKit)())}let d=B(l.floating);s&&(d.addEventListener("keydown",x?k:M,x),d.addEventListener("compositionstart",r),d.addEventListener("compositionend",c)),E&&d.addEventListener(f,C?T:A,C);let v=[];return m&&((0,n.isElement)(l.domReference)&&(v=(0,n.getOverflowAncestors)(l.domReference)),(0,n.isElement)(l.floating)&&(v=v.concat((0,n.getOverflowAncestors)(l.floating))),!(0,n.isElement)(l.reference)&&l.reference&&l.reference.contextElement&&(v=v.concat((0,n.getOverflowAncestors)(l.reference.contextElement)))),(v=v.filter(e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)})).forEach(e=>{e.addEventListener("scroll",t)}),()=>{s&&(d.removeEventListener("keydown",x?k:M,x),d.removeEventListener("compositionstart",r),d.removeEventListener("compositionend",c)),E&&d.removeEventListener(f,C?T:A,C),v.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[u,l,s,E,f,o,i,m,a,R,w,M,x,k,A,C,T]),t.useEffect(()=>{u.current.insideReactTree=!1},[u,E,f]);let S=t.useMemo(()=>({onKeyDown:M,...d&&{[eU[v]]:e=>{i(!1,e.nativeEvent,"reference-press")},..."click"!==v&&{onClick(e){i(!1,e.nativeEvent,"reference-press")}}}}),[M,i,d,v]),I=t.useMemo(()=>{function e(e){0===e.button&&(y.current=!0)}return{onKeyDown:M,onMouseDown:e,onMouseUp:e,[eq[f]]:()=>{u.current.insideReactTree=!0}}},[M,f,u]);return t.useMemo(()=>a?{reference:S,floating:I}:{},[a,S,I])},"useFloating",0,function(e){var r,o;let{elements:i,...l}=void 0===e?{}:e,{nodeId:u}=l,a=function(e){let{open:n=!1,onOpenChange:r,elements:o}=e,i=ev(),l=t.useRef({}),[u]=t.useState(()=>{let e;return e=new Map,{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}),a=null!=eg(),[s,c]=t.useState(o.reference),f=J((e,t,n)=>{l.current.openEvent=e?t:void 0,u.emit("openchange",{open:e,event:t,reason:n,nested:a}),null==r||r(e,t,n)}),d=t.useMemo(()=>({setPositionReference:c}),[]),v=t.useMemo(()=>({reference:s||o.reference||null,floating:o.floating||null,domReference:o.reference}),[s,o.reference,o.floating]);return t.useMemo(()=>({dataRef:l,open:n,onOpenChange:f,elements:v,events:u,floatingId:i,refs:d}),[n,f,v,u,i,d])}({...l,elements:{reference:null!=(r=null==i?void 0:i.reference)?r:null,floating:null!=(o=null==i?void 0:i.floating)?o:null}}),s=l.rootContext||a,c=s.elements,[f,d]=t.useState(null),[v,m]=t.useState(null),p=(null==c?void 0:c.domReference)||f,g=t.useRef(null),h=t.useContext(ep);X(()=>{p&&(g.current=p)},[p]);let b=(0,el.useFloating)({...l,elements:{...c,...v&&{reference:v}}}),E=t.useCallback(e=>{let t=(0,n.isElement)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;m(t),b.refs.setReference(t)},[b.refs]),y=t.useCallback(e=>{((0,n.isElement)(e)||null===e)&&(g.current=e,d(e)),((0,n.isElement)(b.refs.reference.current)||null===b.refs.reference.current||null!==e&&!(0,n.isElement)(e))&&b.refs.setReference(e)},[b.refs]),R=t.useMemo(()=>({...b.refs,setReference:y,setPositionReference:E,domReference:g}),[b.refs,y,E]),w=t.useMemo(()=>({...b.elements,domReference:p}),[b.elements,p]),x=t.useMemo(()=>({...b,...s,refs:R,elements:w,nodeId:u}),[b,R,w,u,s]);return X(()=>{s.dataRef.current.floatingContext=x;let e=null==h?void 0:h.nodesRef.current.find(e=>e.id===u);e&&(e.context=x)}),t.useMemo(()=>({...b,context:x,refs:R,elements:w}),[b,R,w,x])},"useFocus",0,function(e,r){void 0===r&&(r={});let{open:o,onOpenChange:i,events:l,dataRef:u,elements:a}=e,{enabled:s=!0,visibleOnly:c=!0}=r,f=t.useRef(!1),d=t.useRef(-1),v=t.useRef(!0);t.useEffect(()=>{if(!s)return;let e=(0,n.getWindow)(a.domReference);function t(){!o&&(0,n.isHTMLElement)(a.domReference)&&a.domReference===_(B(a.domReference))&&(f.current=!0)}function r(){v.current=!0}function i(){v.current=!1}return e.addEventListener("blur",t),eV()&&(e.addEventListener("keydown",r,!0),e.addEventListener("pointerdown",i,!0)),()=>{e.removeEventListener("blur",t),eV()&&(e.removeEventListener("keydown",r,!0),e.removeEventListener("pointerdown",i,!0))}},[a.domReference,o,s]),t.useEffect(()=>{if(s)return l.on("openchange",e),()=>{l.off("openchange",e)};function e(e){let{reason:t}=e;("reference-press"===t||"escape-key"===t)&&(f.current=!0)}},[l,s]),t.useEffect(()=>()=>{eb(d)},[]);let m=t.useMemo(()=>({onMouseLeave(){f.current=!1},onFocus(e){if(f.current)return;let t=F(e.nativeEvent);if(c&&(0,n.isElement)(t)){if(eV()&&!e.relatedTarget){if(!v.current&&!j(t))return}else if(!function(e){if(!e||P())return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}(t))return}i(!0,e.nativeEvent,"focus")},onBlur(e){f.current=!1;let t=e.relatedTarget,r=e.nativeEvent,o=(0,n.isElement)(t)&&t.hasAttribute(eh("focus-guard"))&&"outside"===t.getAttribute("data-type");d.current=window.setTimeout(()=>{var e;let n=_(a.domReference?a.domReference.ownerDocument:document);!t&&n===a.domReference||W(null==(e=u.current.floatingContext)?void 0:e.refs.floating.current,n)||W(a.domReference,n)||o||i(!1,r,"focus")})}}),[u,a.domReference,i,c]);return t.useMemo(()=>s?{reference:m}:{},[s,m])},"useHover",0,function(e,r){void 0===r&&(r={});let{open:o,onOpenChange:i,dataRef:l,events:u,elements:a}=e,{enabled:s=!0,delay:c=0,handleClose:f=null,mouseOnly:d=!1,restMs:v=0,move:m=!0}=r,p=t.useContext(ep),g=eg(),h=G(f),b=G(c),E=G(o),y=G(v),R=t.useRef(),w=t.useRef(-1),x=t.useRef(),C=t.useRef(-1),L=t.useRef(!0),M=t.useRef(!1),k=t.useRef(()=>{}),A=t.useRef(!1),T=J(()=>{var e;let t=null==(e=l.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t});t.useEffect(()=>{if(s)return u.on("openchange",e),()=>{u.off("openchange",e)};function e(e){let{open:t}=e;t||(eb(w),eb(C),L.current=!0,A.current=!1)}},[s,u]),t.useEffect(()=>{if(!s||!h.current||!o)return;
1function e(e){T()&&i(!1,e,"hover")}let t=B(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[a.floating,o,i,s,h,T]);let S=t.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");let r=ey(b.current,"close",R.current);r&&!x.current?(eb(w),w.current=window.setTimeout(()=>i(!1,e,n),r)):t&&(eb(w),i(!1,e,n))},[b,i]),I=J(()=>{k.current(),x.current=void 0}),N=J(()=>{if(M.current){let e=B(a.floating).body;e.style.pointerEvents="",e.removeAttribute(eE),M.current=!1}}),O=J(()=>!!l.current.openEvent&&["click","mousedown"].includes(l.current.openEvent.type));t.useEffect(()=>{if(s&&(0,n.isElement)(a.domReference)){let n=a.domReference,i=a.floating;return o&&n.addEventListener("mouseleave",r),m&&n.addEventListener("mousemove",e,{once:!0}),n.addEventListener("mouseenter",e),n.addEventListener("mouseleave",t),i&&(i.addEventListener("mouseleave",r),i.addEventListener("mouseenter",u),i.addEventListener("mouseleave",c)),()=>{o&&n.removeEventListener("mouseleave",r),m&&n.removeEventListener("mousemove",e),n.removeEventListener("mouseenter",e),n.removeEventListener("mouseleave",t),i&&(i.removeEventListener("mouseleave",r),i.removeEventListener("mouseenter",u),i.removeEventListener("mouseleave",c))}}function e(e){if(eb(w),L.current=!1,d&&!z(R.current)||eR(y.current)>0&&!ey(b.current,"open"))return;let t=ey(b.current,"open",R.current);t?w.current=window.setTimeout(()=>{E.current||i(!0,e,"hover")},t):o||i(!0,e,"hover")}function t(e){if(O())return void N();k.current();let t=B(a.floating);if(eb(C),A.current=!1,h.current&&l.current.floatingContext){o||eb(w),x.current=h.current({...l.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){N(),I(),O()||S(e,!0,"safe-polygon")}});let n=x.current;t.addEventListener("mousemove",n),k.current=()=>{t.removeEventListener("mousemove",n)};return}"touch"===R.current&&W(a.floating,e.relatedTarget)||S(e)}function r(e){O()||l.current.floatingContext&&(null==h.current||h.current({...l.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){N(),I(),O()||S(e)}})(e))}function u(){eb(w)}function c(e){O()||S(e,!1)}},[a,s,e,d,m,S,I,N,i,o,E,p,b,h,l,O,y]),X(()=>{var e,t;if(s&&o&&null!=(e=h.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&T()){M.current=!0;let e=a.floating;if((0,n.isElement)(a.domReference)&&e){let n=B(a.floating).body;n.setAttribute(eE,"");let r=a.domReference,o=null==p||null==(t=p.nodesRef.current.find(e=>e.id===g))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}},[s,o,g,a,p,h,T]),X(()=>{o||(R.current=void 0,A.current=!1,I(),N())},[o,I,N]),t.useEffect(()=>()=>{I(),eb(w),eb(C),N()},[s,a.domReference,I,N]);let P=t.useMemo(()=>{function e(e){R.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function n(){L.current||E.current||i(!0,t,"hover")}d&&!z(R.current)||o||0===eR(y.current)||A.current&&e.movementX**2+e.movementY**2<2||(eb(C),"touch"===R.current?n():(A.current=!0,C.current=window.setTimeout(n,eR(y.current))))}}},[d,i,o,E,y]);return t.useMemo(()=>s?{reference:P}:{},[s,P])},"useInteractions",0,function(e){void 0===e&&(e=[]);let n=e.map(e=>null==e?void 0:e.reference),r=e.map(e=>null==e?void 0:e.floating),o=e.map(e=>null==e?void 0:e.item),i=t.useCallback(t=>ez(t,e,"reference"),n),l=t.useCallback(t=>ez(t,e,"floating"),r),u=t.useCallback(t=>ez(t,e,"item"),o);return t.useMemo(()=>({getReferenceProps:i,getFloatingProps:l,getItemProps:u}),[i,l,u])},"useRole",0,function(e,n){var r,o;void 0===n&&(n={});let{open:i,elements:l,floatingId:u}=e,{enabled:a=!0,role:s="dialog"}=n,c=ev(),f=(null==(r=l.domReference)?void 0:r.id)||c,d=t.useMemo(()=>{var e;return(null==(e=U(l.floating))?void 0:e.id)||u},[l.floating,u]),v=null!=(o=eX.get(s))?o:s,m=null!=eg(),p=t.useMemo(()=>"tooltip"===v||"label"===s?{["aria-"+("label"===s?"labelledby":"describedby")]:i?d:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":"alertdialog"===v?"dialog":v,"aria-controls":i?d:void 0,..."listbox"===v&&{role:"combobox"},..."menu"===v&&{id:f},..."menu"===v&&m&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}},[v,d,m,i,f,s]),g=t.useMemo(()=>
1{let e={id:d,...v&&{role:v}};return"tooltip"===v||"label"===s?e:{...e,..."menu"===v&&{"aria-labelledby":f}}},[v,d,f,s]),h=t.useCallback(e=>{let{active:t,selected:n}=e,r={role:"option",...t&&{id:d+"-fui-option"}};switch(s){case"select":case"combobox":return{...r,"aria-selected":n}}return{}},[d,s]);return t.useMemo(()=>a?{reference:p,floating:g,item:h}:{},[a,p,g,h])}],543489)},266061,e=>{"use strict";var t=e.i(438232),n=e.i(15010),r=e.i(618566);let o=(0,n.createContext)(null),i=e=>e.split("-")[0]??e;e.s(["AlternateUrlsProvider",0,({children:e,alternateUrls:i})=>{let l=(0,r.usePathname)(),[u,a]=(0,n.useState)(i??null),[s,c]=(0,n.useState)(null),f=(0,n.useRef)(null);(0,n.useEffect)(()=>{null!==f.current&&f.current!==l&&(a(null),c(null)),f.current=l},[l]);let d=(0,n.useCallback)((e,t)=>{a(e),c(t??null)},[]),v=(0,n.useMemo)(()=>({urlsByLang:(e=>{let t=new Map;if(e)for(let n of e)n.lang&&n.slug&&t.set(n.lang,n.slug);return t})(u),alternateUrls:u??[],setAlternateUrls:d,forPathname:s}),[u,d,s]);return(0,t.jsx)(o.Provider,{value:v,children:e})},"SetAlternateUrls",0,({alternateUrls:e})=>{let t=(0,n.useContext)(o),i=(0,r.usePathname)();return(0,n.useEffect)(()=>(t&&t.setAlternateUrls(e??null,i),()=>{t&&t.setAlternateUrls(null)}),[e,t,i]),null},"getSlugForLanguageWithFallback",0,(e,t,n,r)=>{let o={slug:t,lang:e};if(!n||0===n.size)return o;let l=t.split("/").filter(Boolean),u=l.length>0?l[l.length-1]:t,a=!1;for(let[,e]of n.entries())if(e===u){a=!0;break}if(!a)return o;if(r){let e=n.get(r)??n.get(i(r));if(!e||e!==u)return o}let s=e=>{if(l.length>1){let t=[...l];return t[t.length-1]=e,t.join("/")}return e},c=n.get(e);if(c)return{slug:s(c),lang:e};let f=i(e);if(f!==e){let t=n.get(f);if(t)return{slug:s(t),lang:e}}let d=e.split("-")[1]??null;if(d&&r){let t=`en-${d}`;if(t!==e){let e=n.get(t),o=n.get(r);if(e&&o&&n.size>=3)return{slug:s(e),lang:t}}}return o},"useAlternateUrls",0,()=>(0,n.useContext)(o)])}]);

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.