1"use strict";(self.webpackChunkgatsby_starter_hello_world=self.webpackChunkgatsby_starter_hello_world||[]).push([[348],{8689:function(e,t,n){var r;n.d(t,{ie:function(){return w},we:function(){return y}});var o=n(6540),l=n(6984),s=n(4848),u=n(6635),i=(n(961),n(4743));const c="ArrowLeft",f="ArrowRight",a="ArrowUp",d="ArrowDown";const g=[c,f],h=[a,d],m={...r||(r=n.t(o,2))};let p=!1,v=0;const x=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+v++;const R=m.useId||function(){const[e,t]=o.useState(()=>p?x():void 0);return(0,l.OS)(()=>{null==e&&t(x())},[]),o.useEffect(()=>{p=!0},[]),e};const w=o.forwardRef(function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:i,shift:c}},width:f=14,height:a=7,tipRadius:d=0,strokeWidth:g=0,staticOffset:h,stroke:m,d:p,style:{transform:v,...x}={},...w}=e;const C=R(),[S,k]=o.useState(!1);if((0,l.OS)(()=>{if(!r)return;"rtl"===(0,u.L9)(r).direction&&k(!0)},[r]),!r)return null;const[b,M]=n.split("-"),y="top"===b||"bottom"===b;let O=h;(y&&null!=c&&c.x||!y&&null!=c&&c.y)&&(O=null);const j=2*g,_=j/2,E=f/2*(d/-8+1),q=a/2*d/4,A=!!p,I=O&&"end"===M?"bottom":"top";let P=O&&"end"===M?"right":"left";O&&S&&(P="end"===M?"left":"right");const B=null!=(null==i?void 0:i.x)?O||i.x:"",L=null!=(null==i?void 0:i.y)?O||i.y:"",D=p||"M0,0 H"+f+" L"+(f-E)+","+(a-q)+" Q"+f/2+","+a+" "+E+","+(a-q)+" Z",W={top:A?"rotate(180deg)":"",left:A?"rotate(90deg)":"rotate(-90deg)",bottom:A?"":"rotate(180deg)",right:A?"rotate(-90deg)":"rotate(90deg)"}[b];return(0,s.jsxs)("svg",{...w,"aria-hidden":!0,ref:t,width:A?f:f+j,height:f,viewBox:"0 0 "+f+" "+(a>f?a:f),style:{position:"absolute",pointerEvents:"none",[P]:B,[I]:L,[b]:y||A?"100%":"calc(100% - "+j/2+"px)",transform:[W,v].filter(e=>!!e).join(" "),...x},children:[j>0&&(0,s.jsx)("path",{clipPath:"url(#"+C+")",fill:"none",stroke:m,strokeWidth:j+(p?0:1),d:D}),(0,s.jsx)("path",{stroke:j&&!p?w.fill:"none",d:D}),(0,s.jsx)("clipPath",{id:C,children:(0,s.jsx)("rect",{x:-_,y:_*(A?-1:1),width:f+j,height:f})})]})});function C(){const e=new Map;return{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)}}}const S=o.createContext(null),k=o.createContext(null),b=()=>{var e;return(null==(e=o.useContext(S))?void 0:e.id)||null},M=()=>o.useContext(k);function y(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,s=R(),u=o.useRef({}),[i]=o.useState(()=>C()),c=null!=b(),[f,a]=o.useState(r.reference),d=(0,l.Jt)((e,t,r)=>{u.current.openEvent=e?t:void 0,i.emit("openchange",{open:e,event:t,reason:r,nested:c}),null==n||n(e,t,r)}),g=o.useMemo(()=>({setPositionReference:a}),[]),h=o.useMemo(()=>({reference:f||r.reference||null,floating:r.floating||null,domReference:r.reference}),[f,r.reference,r.floating]);return o.useMemo(()=>({dataRef:u,open:t,onOpenChange:d,elements:h,events:i,floatingId:s,refs:g}),[t,d,h,i,s,g])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,s=r.elements,[c,f]=o.useState(null),[a,d]=o.useState(null),g=(null==s?void 0:s.domReference)||c,h=o.useRef(null),m=M();(0,l.OS)(()=>{g&&(h.current=g)},[g]);const p=(0,i.we)({...e,elements:{...s,...a&&{reference:a}}}),v=o.useCallback(e=>{const t=(0,u.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;d(t),p.refs.setReference(t)},[p.refs]),x=o.useCallback(e=>{((0,u.vq)(e)||null===e)&&(h.current=e,f(e)),((0,u.vq)(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!(0,u.vq)(e))&&p.refs.setReference(e)},[p.refs]),w=o.useMemo(()=>({...p.refs,setReference:x,setPositionReference:v,domReference:h}),[p.refs,x,v]),S=o.useMemo(()=>({...p.elements,domReference:g}),[p.elements,g]),k=o.useMemo(()=>({...p,...r,refs:w,elements:S,nodeId:t}),[p,w,S,t,r]);return(0,l.OS)(()=>{r.dataRef.current.floatingContext=k;const e=null==m?void 0:m.nodesRef.current.find(e=>e.id===t);e&&(e.context=k)}),o.useMemo(()=>({...p,context:k,refs:w,elements:S}),[p,w,S,k])}}}]); 2//# sourceMappingURL=5c0b189e-bf7eb46a87473c00757b.js.map
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.