PageSourceSearch

https://www.wasurge.com/_next/static/chunks/273-1a96e03aef0bb193.js?dpl=dpl_9UMG5xsr9hwxgEqKTZoZyAWc388P

js wasurge.com collected 2026-10-02 02:51:45 UTC 36,274 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[273],{317:(e,t,n)=>{let r;n.d(t,{i3:()=>tO,UC:()=>tL,ZL:()=>tP,Kq:()=>tT,bL:()=>tA,l9:()=>tE});var o=n(2115),i=n(2556),l=n(4446),a=n(3468),u=n(1987),c=n(8946);let s=["top","right","bottom","left"],f=Math.min,d=Math.max,p=Math.round,h=Math.floor,g=e=>({x:e,y:e}),m={left:"right",right:"left",bottom:"top",top:"bottom"};function y(e,t){return"function"==typeof e?e(t):e}function x(e){return e.split("-")[0]}function v(e){return e.split("-")[1]}function w(e){return"x"===e?"y":"x"}function b(e){return"y"===e?"height":"width"}function C(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function R(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let T=["left","right"],A=["right","left"],E=["top","bottom"],P=["bottom","top"];function L(e){let t=x(e);return m[t]+e.slice(t.length)}function O(e){var t,n,r,o;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!=(o=e.left)?o:0}:{top:e,right:e,bottom:e,left:e}}function S(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function k(e,t,n){let r,{reference:o,floating:i}=e,l=C(t),a=w(C(t)),u=b(a),c=x(t),s=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,d=o[u]/2-i[u]/2;switch(c){case"top":r={x:s,y:o.y-i.height};break;case"bottom":r={x:s,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-i.width,y:f};break;default:r={x:o.x,y:o.y}}let p=v(t);return p&&(r[a]+=d*("end"===p?1:-1)*(n&&"y"===l?-1:1)),r}async function j(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:s="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=y(t,e),h=O(p),g=a[d?"floating"===f?"reference":"floating":f],m=S(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:s,strategy:u})),x="floating"===f?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,v=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),w=await (null==i.isElement?void 0:i.isElement(v))&&await (null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},b=S(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:v,strategy:u}):x);return{top:(m.top-b.top+h.top)/w.y,bottom:(b.bottom-m.bottom+h.bottom)/w.y,left:(m.left-b.left+h.left)/w.x,right:(b.right-m.right+h.right)/w.x}}let M=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:j},u=await (null==l.isRTL?void 0:l.isRTL(t)),c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:s,y:f}=k(c,r,u),d=r,p=0,h={};for(let n=0;n<i.length;n++){let g=i[n];if(!g)continue;let{name:m,fn:y}=g,{x:x,y:v,data:w,reset:b}=await y({x:s,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});s=null!=x?x:s,f=null!=v?v:f,h[m]={...h[m],...w},b&&p<50&&(p++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(c=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:s,y:f}=k(c,d,u)),n=-1)}return{x:s,y:f,placement:d,strategy:o,middlewareData:h}};function H(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function D(e){return s.some(t=>e[t]>=0)}let F=new Set(["left","top"]);async function _(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=x(n),a=v(n),u="y"===C(n),c=F.has(l)?-1:1,s=i&&u?-1:1,f=y(t,e),{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),u?{x:p*s,y:d*c}:{x:d*c,y:p*s}}function z(){return"undefined"!=typeof window}function W(e){return I(e)?(e.nodeName||"").toLowerCase():"#document"}function B(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function N(e){var t;return null==(t=(I(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function I(e){return!!z()&&(e instanceof Node||e instanceof B(e).Node)}function V(e){return!!z()&&(e instanceof Element||e instanceof B(e).Element)}function K(e){return!!z()&&(e instanceof HTMLElement||e instanceof B(e).HTMLElement)}function Y(e){return!!z()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof B(e).ShadowRoot)}function q(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function G(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let X=/transform|translate|scale|rotate|perspective|filter/,$=/paint|layout|strict|content/,Z=e=>!!e&&"none"!==e;function U(e){let t=V(e)?ee(e):e;return Z(t.transform)||Z(t.translate)||Z(t.scale)||Z(t.rotate)||Z(t.perspective)||!J()&&(Z(t.backdropFilter)||Z(t.filter))||X.test(t.willChange||"")||$.test(t.contain||"")}function J(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function Q(e){return/^(html|body|#document)$/.test(W(e))}function ee(e){return B(e).getComputedStyle(e)}function et(e){return V(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function en(e){if("html"===W(e))return e;let t=e.assignedSlot||e.parentNode||Y(e)&&e.host||N(e);return Y(t)?t.host:t}function er(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=en(t);return Q(n)?(t.ownerDocument||t).body:K(n)&&q(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=B(o);if(!i)return t.concat(o,er(o,[],n));{let e=eo(l);
1return t.concat(l,l.visualViewport||[],q(o)?o:[],e&&n?er(e):[])}}function eo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ei(e){let t=ee(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=K(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=p(n)!==i||p(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function el(e){return V(e)?e:e.contextElement}function ea(e){let t=el(e);if(!K(t))return g(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ei(t),l=(i?p(n.width):n.width)/r,a=(i?p(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let eu=g(0);function ec(e){let t=B(e);return J()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eu}function es(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=el(e),a=g(1);t&&(r?V(r)&&(a=ea(r)):a=ea(e));let u=(void 0===(o=n)&&(o=!1),r&&o&&r===B(l))?ec(l):g(0),c=(i.left+u.x)/a.x,s=(i.top+u.y)/a.y,f=i.width/a.x,d=i.height/a.y;if(l&&r){let e=B(l),t=V(r)?B(r):r,n=e,o=eo(n);for(;o&&t!==n;){let e=ea(o),t=o.getBoundingClientRect(),r=ee(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,s*=e.y,f*=e.x,d*=e.y,c+=i,s+=l,o=eo(n=B(o))}}return S({width:f,height:d,x:c,y:s})}function ef(e,t){let n=et(e).scrollLeft;return t?t.left+n:es(N(e)).left+n}function ed(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ef(e,n),y:n.top+t.scrollTop}}function ep(e,t,n){let r;if("viewport"===t||"layoutViewport"===t)r=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,o=B(e),i=N(e),l=o.visualViewport,a=i.clientWidth,u=i.clientHeight,c=0,s=0;if(l){let e=!J()||"fixed"===t;r?e||(c=-l.offsetLeft,s=-l.offsetTop):(a=l.width,u=l.height,e&&(c=l.offsetLeft,s=l.offsetTop))}if(0>=ef(i)){let e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-r),l="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;l<=25&&(a-=l)}return{width:a,height:u,x:c,y:s}}(e,n,t);else if("document"===t)r=function(e){let t=et(e),n=e.ownerDocument.body,r=d(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=d(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),i=-t.scrollLeft+ef(e),l=-t.scrollTop;return"rtl"===ee(n).direction&&(i+=d(e.clientWidth,n.clientWidth)-r),{width:r,height:o,x:i,y:l}}(N(e));else if(V(t))r=function(e,t){let n=es(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ea(e),l=e.clientWidth*i.x,a=e.clientHeight*i.y;return{width:l,height:a,x:o*i.x,y:r*i.y}}(t,n);else{let n=ec(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return S(r)}function eh(e){return"static"===ee(e).position}function eg(e,t){if(!K(e)||"fixed"===ee(e).position)return null;if(t)return t(e);let n=e.offsetParent;return N(e)===n&&(n=n.ownerDocument.body),n}function em(e,t){var n;let r=B(e);if(G(e))return r;if(!K(e)){let t=en(e);for(;t&&!Q(t);){if(V(t)&&!eh(t))return t;t=en(t)}return r}let o=eg(e,t);for(;o&&(n=o,/^(table|td|th)$/.test(W(n)))&&eh(o);)o=eg(o,t);return o&&Q(o)&&eh(o)&&!U(o)?r:o||function(e){let t=en(e);for(;K(t)&&!Q(t);){if(U(t))return t;if(G(t))break;t=en(t)}return null}(e)||r}let ey=async function(e){let t=this.getOffsetParent||em,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=K(t),o=N(t),i="fixed"===n,l=es(e,!0,i,t),a={scrollLeft:0,scrollTop:0},u=g(0);if((r||!i)&&(("body"!==W(t)||q(o))&&(a=et(t)),r)){let e=es(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}!r&&o&&(u.x=ef(o));let c=!o||r||i?g(0):ed(o,a);return{x:l.left+a.scrollLeft-u.x-c.x,y:l.top+a.scrollTop-u.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}}},ex={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=N(r),a=!!t&&G(t.floating);if(r===l||a&&i)return n;let u={scrollLeft:0,scrollTop:0},c=g(1),s=g(0),f=K(r);if((f||!i)&&(("body"!==W(r)||q(l))&&(u=et(r)),f)){let e=es(r);c=ea(r),s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}let d=!l||f||i?g(0):ed(l,u);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+s.x+d.x,y:n.y*c.y-u.scrollTop*c.y+s.y+d.y}},getDocumentElement:N,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?G(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=er(e,[],!1).filter(e=>V(e)&&"body"!==W(e)),o=null,i="fixed"===ee(e).position,l=i?en(e):e;for(;V(l)&&!Q(l);){let e=ee(l),t=U(l),n=o?o.position:i?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?o=e:r=r.filter(e=>e!==l),l=en(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=ep(t,i[0],o),a=l.top,u=l.right,c=l.bottom,s=l.left;for(let e=1;e<i.length;e++){let n=ep(t,i[e],o);a=d(n.top,a),u=f(n.right,u),c=f(n.bottom,c),s=d(n.left,s)}return{width:u-s,height:c-a,x:s,y:a}},getOffsetParent:em,getElementRects:ey,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=ei(e);return{width:t,height:n}},getScale:ea,isElement:V,isRTL:function(e){return"rtl"===ee(e).direction}};function ev(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let ew=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:u}=t,{element:c,padding:s=0}=y(e,t)||{};if(null==c)return{};let p=O(s),h={x:n,y:r},g=w(C(o)),m=b(g),x=await l.getDimensions(c),R="y"===g,T=R?"clientHeight":"clientWidth",A=i.reference[m]+i.reference[g]-h[g]-i.floating[m],E=h[g]-i.reference[g],P=await (null==l.getOffsetParent?void 0:l.getOffsetParent(c)),L=P?P[T]:0;L&&await (null==l.isElement?void 0:l.isElement(P))||(L=a.floating[T]||i.floating[m]);let S=L/2-x[m]/2-1,k=f(p[R?"top":"left"],S),j=f(p[R?"bottom":"right"],S),M=L-x[m]-j,H=L/2-
1x[m]/2+(A/2-E/2),D=d(k,f(H,M)),F=!u.arrow&&null!=v(o)&&H!==D&&i.reference[m]/2-(H<k?k:j)-x[m]/2<0,_=F?H<k?H-k:H-M:0;return{[g]:h[g]+_,data:{[g]:D,centerOffset:H-D-_,...F&&{alignmentOffset:_}},reset:F}}});var eb=n(7650),eC="undefined"!=typeof document?o.useLayoutEffect:function(){};function eR(e,t){let n,r,o;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(!eR(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!eR(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eT(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eA(e,t){let n=eT(e);return Math.round(t*n)/n}function eE(e){let t=o.useRef(e);return eC(()=>{t.current=e}),t}var eP=n(7602),eL=n(5155),eO=Object.defineProperty,eS=o.forwardRef(eO(function(e,t){let{children:n,width:r=10,height:o=5,...i}=e;return(0,eL.jsx)(eP.sG.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eL.jsx)("polygon",{points:"0,0 30,0 15,10"})})},"name",{value:"Arrow",configurable:!0})),ek=n(222),ej=n(4129);function eM(e){let[t,n]=o.useState(void 0);return(0,ej.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(0,Object.defineProperty)(eM,"name",{value:"useSize",configurable:!0});var eH=Object.defineProperty,eD=(e,t)=>eH(e,"name",{value:t,configurable:!0}),eF="Popper",[e_,ez]=(0,a.A)(eF),[eW,eB]=e_(eF),eN=eD(e=>{let{__scopePopper:t,children:n}=e,[r,i]=o.useState(null),[l,a]=o.useState(void 0);return(0,eL.jsx)(eW,{scope:t,anchor:r,onAnchorChange:i,placementState:l,setPlacementState:a,children:n})},"Popper"),eI=o.forwardRef(eD(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=eB("PopperAnchor",n),u=o.useRef(null),c=a.onAnchorChange,s=o.useCallback(e=>{u.current=e,e&&c(e)},[c]),f=(0,l.s)(t,s),d=o.useRef(null);o.useEffect(()=>{if(!r)return;let e=d.current;d.current=r.current,e!==d.current&&c(d.current)});let p=a.placementState&&eU(a.placementState),h=null==p?void 0:p[0],g=null==p?void 0:p[1];return r?null:(0,eL.jsx)(eP.sG.div,{"data-radix-popper-side":h,"data-radix-popper-align":g,...i,ref:f})},"PopperAnchor")),eV="PopperContent",[eK,eY]=e_(eV),eq=o.forwardRef(eD(function(e,t){var n,r,i,a,u,c,s,p,g,m,O,S;let{__scopePopper:k,side:j="bottom",sideOffset:z=0,align:W="center",alignOffset:I=0,arrowPadding:V=0,avoidCollisions:K=!0,collisionBoundary:Y=[],collisionPadding:q=0,sticky:G="partial",hideWhenDetached:X=!1,updatePositionStrategy:$="optimized",onPlaced:Z,...U}=e,J=eB(eV,k),[Q,ee]=o.useState(null),et=(0,l.s)(t,ee),[en,eo]=o.use
1State(null),ei=eM(en),ea=null!=(p=null==ei?void 0:ei.width)?p:0,eu=null!=(g=null==ei?void 0:ei.height)?g:0,ec="number"==typeof q?q:{top:0,right:0,bottom:0,left:0,...q},ef=Array.isArray(Y)?Y:[Y],ed=ef.length>0,ep={padding:ec,boundary:ef.filter(e$),altBoundary:ed},{refs:eh,floatingStyles:eg,placement:em,isPositioned:ey,middlewareData:eO}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:a}={},transform:u=!0,whileElementsMounted:c,open:s}=e,[f,d]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=o.useState(r);eR(p,r)||h(r);let[g,m]=o.useState(null),[y,x]=o.useState(null),v=o.useCallback(e=>{e!==R.current&&(R.current=e,m(e))},[]),w=o.useCallback(e=>{e!==T.current&&(T.current=e,x(e))},[]),b=l||g,C=a||y,R=o.useRef(null),T=o.useRef(null),A=o.useRef(f),E=null!=c,P=eE(c),L=eE(i),O=eE(s),S=o.useCallback(()=>{if(!R.current||!T.current)return;let e={placement:t,strategy:n,middleware:p};L.current&&(e.platform=L.current),((e,t,n)=>{let r=new Map,o=null!=n?n:{},i={...ex,...o.platform,_c:r};return M(e,t,{...o,platform:i})})(R.current,T.current,e).then(e=>{let t={...e,isPositioned:!1!==O.current};k.current&&!eR(A.current,t)&&(A.current=t,eb.flushSync(()=>{d(t)}))})},[p,t,n,L,O]);eC(()=>{!1===s&&A.current.isPositioned&&(A.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[s]);let k=o.useRef(!1);eC(()=>(k.current=!0,()=>{k.current=!1}),[]),eC(()=>{if(b&&(R.current=b),C&&(T.current=C),b&&C){if(P.current)return P.current(b,C,S);S()}},[b,C,S,P,E]);let j=o.useMemo(()=>({reference:R,floating:T,setReference:v,setFloating:w}),[v,w]),H=o.useMemo(()=>({reference:b,floating:C}),[b,C]),D=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!H.floating)return e;let t=eA(H.floating,f.x),r=eA(H.floating,f.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...eT(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,H.floating,f.x,f.y]);return o.useMemo(()=>({...f,update:S,refs:j,elements:H,floatingStyles:D}),[f,S,j,H,D])}({strategy:"fixed",placement:j+("center"!==W?"-"+W:""),whileElementsMounted:eD(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,s=el(e),p=i||l?[...s?er(s):[],...t?er(t):[]]:[];p.forEach(e=>{i&&e.addEventListener("scroll",n),l&&e.addEventListener("resize",n)});let g=s&&u?function(e,t,n){let r,o=null,i=N(e);function l(){var e;clearTimeout(r),null==(e=o)||e.disconnect(),o=null}function a(n,u){void 0===n&&(n=!1),void 0===u&&(u=1),l();let c=e.getBoundingClientRect(),{left:s,top:p,width:g,height:m}=c;if(n||t(),!g||!m)return;let y=h(p),x=h(i.clientWidth-(s+g)),v={rootMargin:-y+"px "+-x+"px "+-h(i.clientHeight-(p+m))+"px "+-h(s)+"px",threshold:d(0,f(1,u))||1},w=!0;function b(t){let n=t[0].intersectionRatio;if(!ev(c,e.getBoundingClientRect()))return a();if(n!==u){if(!w)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}w=!1}try{o=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(b,v)}o.observe(e)}let u=B(e),c=()=>a(n);return u.addEventListener("resize",c),a(!0),()=>{u.removeEventListener("resize",c),l()}}(s,n,l):null,m=-1,y=null;a&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===s&&y&&t&&(y.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),s&&!c&&y.observe(s),t&&y.observe(t));let x=c?es(e):null;return c&&function t(){let r=es(e);x&&!ev(x,r)&&n(),x=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==g||g(),null==(e=y)||e.disconnect(),y=null,c&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===$})},"whileElementsMounted"),elements:{reference:J.anchor},middleware:[((e,t)=>{var n;let r=(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:o,y:i,placement:l,middlewareData:a}=e,u=await _(e,n);return l===(null==(t=a.offset)?void 0:t.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}});return{name:r.name,fn:r.fn,options:[e,t]}})({mainAxis:z+eu,alignmentAxis:I}),K&&((e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:o,platform:i}=e,{mainAxis:l=!0,crossAxis:a=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=y(n,e),s={x:t,y:r},p=await i.detectOverflow(e,c),h=C(o),g=w(h),m=s[g],x=s[h],v=(e,t)=>
1d(t+p["y"===e?"top":"left"],f(t,t-p["y"===e?"bottom":"right"]));l&&(m=v(g,m)),a&&(x=v(h,x));let b=u.fn({...e,[g]:m,[h]:x});return{...b,data:{x:b.x-t,y:b.y-r,enabled:{[g]:l,[h]:a}}}}});return{name:r.name,fn:r.fn,options:[e,t]}})({mainAxis:!0,crossAxis:!1,limiter:"partial"===G?{fn:(void 0===(S=m)&&(S={}),{options:S,fn(e){var t,n,r,o;let{x:i,y:l,placement:a,rects:u,middlewareData:c}=e,{offset:s=0,mainAxis:f=!0,crossAxis:d=!0}=y(S,e),p={x:i,y:l},h=C(a),g=w(h),m=p[g],v=p[h],b=y(s,e),R="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:null!=(t=b.mainAxis)?t:0,crossAxis:null!=(n=b.crossAxis)?n:0};if(f){let e="y"===g?"height":"width",t=u.reference[g]-u.floating[e]+R.mainAxis,n=u.reference[g]+u.reference[e]-R.mainAxis;m<t?m=t:m>n&&(m=n)}if(d){let e="y"===g?"width":"height",t=F.has(x(a)),n=u.reference[h]-u.floating[e]+(t&&(null==(r=c.offset)?void 0:r[h])||0)+(t?0:R.crossAxis),i=u.reference[h]+u.reference[e]+(t?0:(null==(o=c.offset)?void 0:o[h])||0)-(t?R.crossAxis:0);v<n?v=n:v>i&&(v=i)}return{[g]:m,[h]:v}}}).fn,options:[m,O]}:void 0,...ep}),K&&((e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,o,i,l;let{placement:a,middlewareData:u,rects:c,initialPlacement:s,platform:f,elements:d}=e,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:g,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:O="none",flipAlignment:S=!0,...k}=y(n,e);if(null!=(t=u.arrow)&&t.alignmentOffset)return{};let j=x(a),M=C(s),H=x(s)===s,D=await (null==f.isRTL?void 0:f.isRTL(d.floating)),F=g||(H||!S?[L(s)]:function(e){let t=L(e);return[R(e),t,R(t)]}(s)),_="none"!==O;!g&&_&&F.push(...function(e,t,n,r){let o=v(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?A:T;return t?T:A;case"left":case"right":return t?E:P;default:return[]}}(x(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(R)))),i}(s,S,O,D));let z=[s,...F],W=await f.detectOverflow(e,k),B=[],N=(null==(r=u.flip)?void 0:r.overflows)||[];if(p&&B.push(W[j]),h){let e=function(e,t,n){void 0===n&&(n=!1);let r=v(e),o=w(C(e)),i=b(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=L(l)),[l,L(l)]}(a,c,D);B.push(W[e[0]],W[e[1]])}if(N=[...N,{placement:a,overflows:B}],!B.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=z[e];if(t&&("alignment"!==h||M===C(t)||N.every(e=>C(e.placement)!==M||e.overflows[0]>0)))return{data:{index:e,overflows:N},reset:{placement:t}};let n=null==(i=N.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(m){case"bestFit":{let e=null==(l=N.filter(e=>{if(_){let t=C(e.placement);return t===M||"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=s}if(a!==n)return{reset:{placement:n}}}return{}}});return{name:r.name,fn:r.fn,options:[e,t]}})({...ep}),((e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){let t,r,{placement:o,rects:i,platform:l,elements:a}=e,{apply:u=()=>{},...c}=y(n,e),s=await l.detectOverflow(e,c),p=x(o),h=v(o),g="y"===C(o),{width:m,height:w}=i.floating;"top"===p||"bottom"===p?(t=p,r=h===(await (null==l.isRTL?void 0:l.isRTL(a.floating))?"start":"end")?"left":"right"):(r=p,t="end"===h?"top":"bottom");let b=w-s.top-s.bottom,R=m-s.left-s.right,T=f(w-s[t],b),A=f(m-s[r],R),E=e.middlewareData.shift,P=!E,L=T,O=A;null!=E&&E.enabled.x&&(O=R),null!=E&&E.enabled.y&&(L=b),P&&!h&&(g?O=m-2*d(s.left,s.right):L=w-2*d(s.top,s.bottom)),await u({...e,availableWidth:O,availableHeight:L});let S=await l.getDimensions(a.floating);return m!==S.width||w!==S.height?{reset:{rects:!0}}:{}}});return{name:r.name,fn:r.fn,options:[e,t]}})({...ep,apply:eD(e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))},"apply")}),en&&((e,t)=>{let n,r={name:"arrow",options:n=e,fn(e){let{element:t,padding:r}="function"==typeof n?n(e):n;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?ew({element:t.current,padding:r}).fn(e):{}:t?ew({element:t,padding:r}).fn(e):{}}};return{name:r.name,fn:r.fn,options:[e,t]}})({element:en,padding:V}),eZ({arrowWidth:ea,arrowHeight:eu}),X&&((e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t,platform:r}=e,{strategy:o="referenceHidden",...i}=y(n,e);switch(o){case"referenceHidden":{let n=H(await r.detectOverflow(e,{...i,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:D(n)}}}case"escaped":{let n=H(await r.detectOverflow(e,{...i,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:D(n)}}}default:return{}}}});return{name:r.name,fn:r.fn,options:[e,t]}})({strategy:"referenceHidden",...ep,boundary:ed?ep.boundary:void 0})]}),eS=J.setPlacementState;(0,ej.N)(()=>(eS(em),()=>{eS(void 0)}),[em,eS]);let[eH,eF]=eU(em),e_=(0,ek.c)(Z);(0,ej.N)(()=>{ey&&(null==e_||e_())},[ey,e_]);let ez=null==(n=eO.arrow)?void 0:n.x,eW=null==(r=eO.arrow)?void 0:r.y,eN=(null==(i=eO.arrow)?void 0:i.centerOffset)!==0,[eI,eY]=o.useState();return(0,ej.N)(()=>{Q&&eY(window.getComputedStyle(Q).zIndex)},[Q]),(0,eL.jsx)("div",{ref:eh.setFloating,"data-radix-popper-content-wrapper":"",style:{...eg,transform:ey?eg.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eI,"--radix-popper-transform-origin":[null==(a=eO.transformOrigin)?void 0:a.x,null==(u=eO.transformOrigin)?void 0:u.y].join(" "),...(null==(c=eO.hide)?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eL.jsx)(eK,{scope:k,placedSide:eH,placedAlign:eF,onArrowChange:eo,arrowX:ez,arrowY:eW,shouldHideArrow:eN,children:(0,eL.jsx)(eP.sG.div,{"data-side":eH,"data-align":eF,...U,ref:et,style:{...U.style,animation:ey?null==(s=U.style)?void 0:s.animation:"none"}})})})},"PopperContent")),eG={top:"bottom",right:"left",bottom:"top",left:"r
1ight"},eX=o.forwardRef(eD(function(e,t){let{__scopePopper:n,...r}=e,o=eY("PopperArrow",n),i=eG[o.placedSide];return(0,eL.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]: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,eL.jsx)(eS,{...r,ref:t,style:{...r.style,display:"block"}})})},"PopperArrow"));function e$(e){return null!==e}eD(e$,"isNotNull");var eZ=eD(e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:c}=t,s=(null==(n=c.arrow)?void 0:n.centerOffset)!==0,f=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[p,h]=eU(a),g={start:"0%",center:"50%",end:"100%"}[h],m=(null!=(i=null==(r=c.arrow)?void 0:r.x)?i:0)+f/2,y=(null!=(l=null==(o=c.arrow)?void 0:o.y)?l:0)+d/2,x="",v="";return"bottom"===p?(x=s?g:"".concat(m,"px"),v="".concat(-d,"px")):"top"===p?(x=s?g:"".concat(m,"px"),v="".concat(u.floating.height+d,"px")):"right"===p?(x="".concat(-d,"px"),v=s?g:"".concat(y,"px")):"left"===p&&(x="".concat(u.floating.width+d,"px"),v=s?g:"".concat(y,"px")),{data:{x,y:v}}}}),"transformOrigin");function eU(e){let[t,n="center"]=e.split("-");return[t,n]}eD(eU,"getSideAndAlignFromPlacement");var eJ=n(5433),eQ=n(6842),e0=n(2467),e1=n(9478),e2=n(861),e5=Object.defineProperty,e7=(e,t)=>e5(e,"name",{value:t,configurable:!0}),[e4,e6]=(0,a.A)("Tooltip",[ez]),e8=ez(),e9="tooltip.open",[e3,te]=e4("TooltipProvider"),tt=e7(e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:l}=e,a=o.useRef(!0),u=o.useRef(!1),c=o.useRef(0);return o.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,eL.jsx)(e3,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:o.useCallback(()=>{r<=0||(window.clearTimeout(c.current),a.current=!1)},[r]),onClose:o.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,r))},[r]),isPointerInTransitRef:u,onPointerInTransitChange:o.useCallback(e=>{u.current=e},[]),disableHoverableContent:i,children:l})},"TooltipProvider"),tn="Tooltip",[tr,to]=e4(tn),ti=e7(e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:l,disableHoverableContent:a,delayDuration:u}=e,s=te(tn,e.__scopeTooltip),f=e8(t),[d,p]=o.useState(null),[h,g]=o.useState(void 0),m=(0,c.B)(),y=o.useRef(0),x=null!=a?a:s.disableHoverableContent,v=null!=u?u:s.delayDuration,w=o.useRef(!1),[b,C]=(0,e1.i)({prop:r,defaultProp:null!=i&&i,onChange:e7(e=>{e?(s.onOpen(),document.dispatchEvent(new CustomEvent(e9))):s.onClose(),null==l||l(e)},"onChange"),caller:tn}),R=o.useMemo(()=>b?w.current?"delayed-open":"instant-open":"closed",[b]),T=o.useCallback(()=>{window.clearTimeout(y.current),y.current=0,w.current=!1,C(!0)},[C]),A=o.useCallback(()=>{window.clearTimeout(y.current),y.current=0,C(!1)},[C]),E=o.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{w.current=!0,C(!0),y.current=0},v)},[v,C]);return o.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),(0,eL.jsx)(eN,{...f,children:(0,eL.jsx)(tr,{scope:t,contentId:null!=h?h:m,setContentId:g,open:b,stateAttribute:R,trigger:d,onTriggerChange:p,onTriggerEnter:o.useCallback(()=>{s.isOpenDelayedRef.current?E():T()},[s.isOpenDelayedRef,E,T]),onTriggerLeave:o.useCallback(()=>{x?A():(window.clearTimeout(y.current),y.current=0)},[A,x]),onOpen:T,onClose:A,disableHoverableContent:x,children:n})})},"Tooltip"),tl="TooltipTrigger",ta=o.forwardRef(e7(function(e,t){let{__scopeTooltip:n,...r}=e,a=to(tl,n),u=te(tl,n),c=e8(n),s=o.useRef(null),f=(0,l.s)(t,s,a.onTriggerChange),d=o.useRef(!1),p=o.useRef(!1),h=o.useCallback(()=>d.current=!1,[]);return o.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),(0,eL.jsx)(eI,{asChild:!0,...c,children:(0,eL.jsx)(eP.sG.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...r,ref:f,onPointerMove:(0,i.mK)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(p.current||u.isPointerInTransitRef.current||(a.onTriggerEnter(),p.current=!0))}),onPointerLeave:(0,i.mK)(e.onPointerLeave,()=>{a.onTriggerLeave(),p.current=!1}),onPointerDown:(0,i.mK)(e.onPointerDown,()=>{a.open&&a.onClose(),d.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:(0,i.mK)(e.onFocus,()=>{d.current||a.onOpen()}),onBlur:(0,i.mK)(e.onBlur,a.onClose),onClick:(0,i.mK)(e.onClick,a.onClose)})})},"TooltipTrigger")),tu="TooltipPortal",[tc,ts]=e4(tu,{forceMount:void 0}),tf=e7(e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=to(tu,t);return(0,eL.jsx)(tc,{scope:t,forceMount:n,children:(0,eL.jsx)(eQ.C,{present:n||i.open,children:(0,eL.jsx)(eJ.Z,{asChild:!0,container:o,children:r})})})},"TooltipPortal"),td="TooltipContent",tp=o.forwardRef(e7(function(e,t){let n=ts(td,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,l=to(td,e.__scopeTooltip);return(0,eL.jsx)(eQ.C,{present:r||l.open,children:l.disableHoverableContent?(0,eL.jsx)(tm,{side:o,...i,ref:t}):(0,eL.jsx)(th,{side:o,...i,ref:t})})},"TooltipContent")),th=o.forwardRef(e7(function(e,t){let n=to(td,e.__scopeTooltip),r=te(td,e.__scopeTooltip),i=o.useRef(null),a=(0,l.s)(t,i),[u,c]=o.useState(null),{trigger:s,onClose:f}=n,d=i.current,{onPointerInTransitChange:p}=r,h=o.useCallback(()=>{c(null),p(!1)},[p]),g=o.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=tx(r,n.getBoundingClientRect());c(tC([...tv(r,o),...tw(t.getBoundingClientRect())])),p(!0)},[p]);return o.useEffect(()=>()=>h(),[h]),o.useEffect(()=>{if(s&&d){let e=e7(e=>g(e,d),"handleTriggerLeave"),t=e7(e=>g(e,s),"handleContentLeave");return s.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{s.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}},[s,d,g,h]),o.useEffect(()=>{if(u){let e=e7(e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==s?void 0:s.contains(t))||(null==d?void 0:d.contains(t)),o=!tb(n,u);r?h():o&&(h(),f())},"handleTrackPointerGrace");return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[s,d,u,f,h]),(0,eL.jsx)(tm,{...e,ref:a})},"TooltipContentHoverable")),tg=(0,e0.Dc)("TooltipContent"),tm=o.forwardRef(e7(function(e,t){let{__scopeTooltip:n,children:r,"aria-label":i,id:l,onEscapeKeyDown:a,onPointerDownOutside:c,...s}=e,f=to(td,n),d=e8(n),{onClose:p}=f;o.useEffect(()=>(document.addEventListener(e9,p),()=>document.removeEventListener(e9,p)),[p]),o.useEffect(()=>{if(f.trigger){let e=e7(e=>{e.target instanceof Node&&e.target.contains(f.trigger)&&p()},"handleScroll");return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[f.trigger,p]);let{setContentId:h}=f;return(0,ej.N)(()=>(h(l),()=>{h(void 0)}),[l,h]),(0,eL.jsx)(u.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:p,children:(0,eL.jsxs)(eq,{"data-state":f.stateAttribute,role:i?void 0:"tooltip",id:i?void 0:f.contentId,...d,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,eL.jsx)(tg,{children:r}),i?(0,eL.jsx)(e2.bL,{id:f.contentId,role:"tooltip",children:i}):null]})})},"TooltipContentImpl")),ty=o.forwardRef(e7(function(e,t){let{__scopeTooltip:n,...r}=e,o=e8(n);return(0,eL.jsx)(eX,{...o,...r,ref:t})},"TooltipArrow"));function tx(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}function tv(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}function tw(e){let{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function tb(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;
1i=e++){let l=t[e],a=t[i],u=l.x,c=l.y,s=a.x,f=a.y;c>r!=f>r&&n<(s-u)*(r-c)/(f-c)+u&&(o=!o)}return o}function tC(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),tR(t)}function tR(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}e7(tx,"getExitSideFromRect"),e7(tv,"getPaddedExitPoints"),e7(tw,"getPointsFromRect"),e7(tb,"isPointInPolygon"),e7(tC,"getHull"),e7(tR,"getHullPresorted");var tT=tt,tA=ti,tE=ta,tP=tf,tL=tp,tO=ty},2529:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(1668).A)("CircleCheckBig",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},2987:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(1668).A)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},9347:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(1668).A)("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]])}}]);

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.