PageSourceSearch

https://tjc.sg/_next/static/chunks/08rx_ir1i~1w8.js

js tjc.sg collected 2026-10-02 02:07:32 UTC 30,242 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,161027,423862,e=>{"use strict";var t=e.i(666417),n=e.i(345370),r=e.i(331183);function o(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}e.s(["useElementSize",0,function(e,l,i=!1){let[u,a]=(0,t.useState)(()=>o(l));return(0,r.useIsoMorphicEffect)(()=>{if(!l||!e)return;let t=(0,n.disposables)();return t.requestAnimationFrame(function e(){t.requestAnimationFrame(e),a(e=>{let t=o(l);return t.width===e.width&&t.height===e.height?e:t})}),()=>{t.dispose()}},[l,e]),i?{width:`${u.width}px`,height:`${u.height}px`}:u}],161027);let l=Math.min,i=Math.max,u=Math.round,a=Math.floor,s=e=>({x:e,y:e}),f={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function p(e,t){return"function"==typeof e?e(t):e}function d(e){return e.split("-")[0]}function m(e){return e.split("-")[1]}function g(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}let y=new Set(["top","bottom"]);function v(e){return y.has(d(e))?"y":"x"}function w(e){return e.replace(/start|end/g,e=>c[e])}let x=["left","right"],b=["right","left"],R=["top","bottom"],C=["bottom","top"];function T(e){return e.replace(/left|right|bottom|top/g,e=>f[e])}function E(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 S(e,t,n){let r,{reference:o,floating:l}=e,i=v(t),u=g(v(t)),a=h(u),s=d(t),f="y"===i,c=o.x+o.width/2-l.width/2,p=o.y+o.height/2-l.height/2,y=o[a]/2-l[a]/2;switch(s){case"top":r={x:c,y:o.y-l.height};break;case"bottom":r={x:c,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:p};break;case"left":r={x:o.x-l.width,y:p};break;default:r={x:o.x,y:o.y}}switch(m(t)){case"start":r[u]-=y*(n&&f?-1:1);break;case"end":r[u]+=y*(n&&f?-1:1)}return r}let M=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:l=[],platform:i}=n,u=l.filter(Boolean),a=await (null==i.isRTL?void 0:i.isRTL(t)),s=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:c}=S(s,r,a),p=r,d={},m=0;for(let n=0;n<u.length;n++){let{name:l,fn:g}=u[n],{x:h,y:y,data:v,reset:w}=await g({x:f,y:c,initialPlacement:r,placement:p,strategy:o,middlewareData:d,rects:s,platform:i,elements:{reference:e,floating:t}});f=null!=h?h:f,c=null!=y?y:c,d={...d,[l]:{...d[l],...v}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(p=w.placement),w.rects&&(s=!0===w.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:f,y:c}=S(s,p,a)),n=-1)}return{x:f,y:c,placement:p,strategy:o,middlewareData:d}};async function F(e,t){var n,r;void 0===t&&(t={});let{x:o,y:l,platform:i,rects:u,elements:a,strategy:s}=e,{boundary:f="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:m=!1,padding:g=0}=p(t,e),h="number"!=typeof(r=g)?{top:0,right:0,bottom:0,left:0,...r}:{top:r,right:r,bottom:r,left:r},y=a[m?"floating"===d?"reference":"floating":d],v=E(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(y)))||n?y:y.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:f,rootBoundary:c,strategy:s})),w="floating"===d?{x:o,y:l,width:u.floating.width,height:u.floating.height}:u.reference,x=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await (null==i.isElement?void 0:i.isElement(x))&&await (null==i.getScale?void 0:i.getScale(x))||{x:1,y:1},R=E(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:x,strategy:s}):w);return{top:(v.top-R.top+h.top)/b.y,bottom:(R.bottom-v.bottom+h.bottom)/b.y,left:(v.left-R.left+h.left)/b.x,right:(R.right-v.right+h.right)/b.x}}let P=new Set(["left","top"]);async function L(e,t){let{placement:n,platform:r,elements:o}=e,l=await (null==r.isRTL?void 0:r.isRTL(o.floating)),i=d(n),u=m(n),a="y"===v(n),s=P.has(i)?-1:1,f=l&&a?-1:1,c=p(t,e),{mainAxis:g,crossAxis:h,alignmentAxis:y}="number"==typeof c?{mainAxis:c,crossAxis:0,alignmentAxis:null}
1:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return u&&"number"==typeof y&&(h="end"===u?-1*y:y),a?{x:h*f,y:g*s}:{x:g*s,y:h*f}}function A(){return"u">typeof window}function H(e){return D(e)?(e.nodeName||"").toLowerCase():"#document"}function O(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function k(e){var t;return null==(t=(D(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function D(e){return!!A()&&(e instanceof Node||e instanceof O(e).Node)}function B(e){return!!A()&&(e instanceof Element||e instanceof O(e).Element)}function N(e){return!!A()&&(e instanceof HTMLElement||e instanceof O(e).HTMLElement)}function W(e){return!(!A()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof O(e).ShadowRoot)}let I=new Set(["inline","contents"]);function V(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=G(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!I.has(o)}let $=new Set(["table","td","th"]),j=[":popover-open",":modal"];function q(e){return j.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let z=["transform","translate","scale","rotate","perspective"],_=["transform","translate","scale","rotate","perspective","filter"],K=["paint","layout","strict","content"];function U(e){let t=Y(),n=B(e)?G(e):e;return z.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||_.some(e=>(n.willChange||"").includes(e))||K.some(e=>(n.contain||"").includes(e))}function Y(){return!("u"<typeof CSS)&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let J=new Set(["html","body","#document"]);function X(e){return J.has(H(e))}function G(e){return O(e).getComputedStyle(e)}function Q(e){return B(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||W(e)&&e.host||k(e);return W(t)?t.host:t}function ee(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=Z(t);return X(n)?t.ownerDocument?t.ownerDocument.body:t.body:N(n)&&V(n)?n:e(n)}(e),l=o===(null==(r=e.ownerDocument)?void 0:r.body),i=O(o);if(l){let e=et(i);return t.concat(i,i.visualViewport||[],V(o)?o:[],e&&n?ee(e):[])}return t.concat(o,ee(o,[],n))}function et(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function en(e){let t=G(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=N(e),l=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=u(n)!==l||u(r)!==i;return a&&(n=l,r=i),{width:n,height:r,$:a}}function er(e){return B(e)?e:e.contextElement}function eo(e){let t=er(e);if(!N(t))return s(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:l}=en(t),i=(l?u(n.width):n.width)/r,a=(l?u(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}let el=s(0);function ei(e){let t=O(e);return Y()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:el}function eu(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let l=e.getBoundingClientRect(),i=er(e),u=s(1);t&&(r?B(r)&&(u=eo(r)):u=eo(e));let a=(void 0===(o=n)&&(o=!1),r&&(!o||r===O(i))&&o)?ei(i):s(0),f=(l.left+a.x)/u.x,c=(l.top+a.y)/u.y,p=l.width/u.x,d=l.height/u.y;if(i){let e=O(i),t=r&&B(r)?O(r):r,n=e,o=et(n);for(;o&&r&&t!==n;){let e=eo(o),t=o.getBoundingClientRect(),r=G(o),l=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;f*=e.x,c*=e.y,p*=e.x,d*=e.y,f+=l,c+=i,o=et(n=O(o))}}return E({width:p,height:d,x:f,y:c})}function ea(e,t){let n=Q(e).scrollLeft;return t?t.left+n:eu(k(e)).left+n}function es(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ea(e,n),y:n.top+t.scrollTop}}let ef=new Set(["absolute","fixed"]);function ec(e,t,n){var r;let o;if("viewport"===t)o=function(e,t){let n=O(e),r=k(e),o=n.visualViewport,l=r.clientWidth,i=r.clientHeight,u=0,a=0;if(o){l=o.width,i=o.height;let e=Y();(!e||e&&"fixed"===t)&&(u=o.offsetLeft,a=o.offsetTop)}let s=ea(r);if(s<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(r.clientWidth-t.clientWidth-o);i<=25&&(l-=i)}else s<=25&&(l+=s);return{width:l,height:i,x:u,y:a}}(e,n);else if("document"===t){let t,n,l,u,a,s,f;r=k(e),t=k(r),n=Q(r),l=r.ownerDocument.body,u=i(t.scrollWidth,t.clientWidth,l.scrollWidth,l.clientWidth),a=i(t.scrollHeight,t.clientHeight,l.scrollHeight,l.clientHeight),s=-n.scrollLeft+ea(r),f=-n.scrollTop,"rtl"===G(l).direction&&(s+=i(t.clientWidth,l.clientWidth)-u),o={width:u,height:a,x:s,y:f}}else if(B(t)){let e,r,l,i,u,a;r=(e=eu(t,!0,"fixed"===n)).top+t.clientTop,l=e.left+t.clientLeft,i=N(t)?eo(t):s(1),u=t.clientWidth*i.x,a=t.clientHeight*i.y,o={width:u,height:a,x:l*i.x,y:r*i.y}}else{let n=ei(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return E(o)}function ep(e){return"static"===G(e).position}function ed(e,t){if(!N(e)||"fixed"===G(e).position)return null;if(t)return t(e);let n=e.offsetParent;return k(e)===n&&(n=n.ownerDocument.body),n}function em(e,t){var n;let r=O(e);if(q(e))return r;if(!N(e)){let t=Z(e);for(;t&&!X(t);){if(B(t)&&!ep(t))return t;t=Z(t)}return r}let o=ed(e,t);for(;o&&(n=o,$.has(H(n)))&&ep(o);)o=ed(o,t);return o&&X(o)&&ep(o)&&!U(o)?r:o||function(e){let t=Z(e);for(;N(t)&&!X(t);){if(U(t))return t;if(q(t))break;t=Z(t)}return null}(e)||r}let eg=async function(e){let t=this.getOffsetParent||em,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=N(t),o=k(t),l="fixed"===n,i=eu(e,!0,l,t),u={scrollLeft:0,scrollTop:0},a=s(0);if(r||!r&&!l)if(("body"!==H(t)||V(o))&&(u=Q(t)),r){let e=eu(t,!0,l,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else o&&(a.x=ea(o));l&&!r&&o&&(a.x=ea(o));let f=!o||r||l?s(0):es(o,u);return{x:i.left+u.scrollLeft-a.x-f.x,y:i.top+u.scrollTop-a.y-f.y,width:i.width,height:i.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eh={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,l="fixed"===o,i=k(r),u=!!t&&q(t.floating);if(r===i||u&&l)return n;let a={scrollLeft:0,scrollTop:0},f=s(1),c=s(0),p=N(r);if((p||!p&&!l)&&(("body"!==H(r)||V(i))&&(a=Q(r)),N(r))){let e=eu(r);f=eo(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let d=!i||p||l?s(0):es(i,a);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-a.scrollLeft*f.x+c.x+d.x,y:n.y*f.y-a.scrollTop*f.y+c.y+d.y}},getDocumentElement:k,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,u=[..."clippingAncestors"===n?q(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=ee(e,[],!1).filter(e=>B(e)&&"body"!==H(e)),o=null,l="fixed"===G(e).position,i=l?Z(e):e;for(;B(i)&&!X(i);){let t=G(i),n=U(i);n||"fixed"!==t.position||(o=null),(l?!n&&!o:!n&&"static"===t.position&&!!o&&ef.has(o.position)||V(i)&&!n&&function e(t,n){let r=Z(t);return!(r===n||!B(r)||X(r))&&("fixed"===G(r).position||e(r,n))}(e,i))?r=r.filter(e=>e!==i):o=t,i=Z(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=u[0],s=u.reduce((e,n)=>{let r=ec(t,n,o);return e.top=i(r.top,e.top),e.right=l(r.right,e.right),e.bottom=l(r.bottom,e.bottom),e.left=i(r.left,e.left),e},ec(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:em,getElementRects:eg,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=en(e);return{width:t,height:n}},getScale:eo,isElement:B,isRTL:function(e){return"rtl"===G(e).direction}};function ey(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ev(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:u=!0,ancestorResize:s=!0,elementResize:f="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:p=!1}=r,d=er(e),m=u||s?[...d?ee(d):[],...ee(t)]:[];
1m.forEach(e=>{u&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let g=d&&c?function(e,t){let n,r=null,o=k(e);function u(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function s(f,c){void 0===f&&(f=!1),void 0===c&&(c=1),u();let p=e.getBoundingClientRect(),{left:d,top:m,width:g,height:h}=p;if(f||t(),!g||!h)return;let y={rootMargin:-a(m)+"px "+-a(o.clientWidth-(d+g))+"px "+-a(o.clientHeight-(m+h))+"px "+-a(d)+"px",threshold:i(0,l(1,c))||1},v=!0;function w(t){let r=t[0].intersectionRatio;if(r!==c){if(!v)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||ey(p,e.getBoundingClientRect())||s(),v=!1}try{r=new IntersectionObserver(w,{...y,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(w,y)}r.observe(e)}(!0),u}(d,n):null,h=-1,y=null;f&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===d&&y&&(y.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),d&&!p&&y.observe(d),y.observe(t));let v=p?eu(e):null;return p&&function t(){let r=eu(e);v&&!ey(v,r)&&n(),v=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{u&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==g||g(),null==(e=y)||e.disconnect(),y=null,p&&cancelAnimationFrame(o)}}var ew=e.i(5169),ex="u">typeof document?t.useLayoutEffect:function(){};function eb(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(!eb(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)&&!eb(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eR(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eC(e,t){let n=eR(e);return Math.round(t*n)/n}function eT(e){let n=t.useRef(e);return ex(()=>{n.current=e}),n}let eE=(e,t)=>{var n;return{...(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:o,y:l,placement:i,middlewareData:u}=e,a=await L(e,n);return i===(null==(t=u.offset)?void 0:t.placement)&&null!=(r=u.arrow)&&r.alignmentOffset?{}:{x:o+a.x,y:l+a.y,data:{...a,placement:i}}}}),options:[e,t]}};e.i(799960);var eS="u"<typeof Element;eS||Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,eS||Element.prototype.getRootNode;let eM={...t},eF=eM.useInsertionEffect||(e=>e());function eP(e){let n=t.useRef(()=>{});return eF(()=>{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)},[])}var eL="u">typeof document?t.useLayoutEffect:t.useEffect;let eA=!1,eH=0,eO=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+eH++,ek=eM.useId||function(){let[e,n]=t.useState(()=>eA?eO():void 0);return eL(()=>{null==e&&n(eO())},[]),t.useEffect(()=>{eA=!0},[]),e},eD=t.createContext(null),eB=t.createContext(null),eN="active",eW="selected";function eI(e,t,n){let r=new Map,o="item"===n,l=e;if(o&&e){let{[eN]:t,[eW]:n,...r}=e;l=r}return{..."floating"===n&&{tabIndex:-1,"data-floating-ui-focusable":""},...l,...t.map(t=>{let r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,l]=t;if(!(o&&[eN,eW].includes(n)))if(0===n.indexOf("on")){if(r.has(n)||r.set(n,[]),"function"==typeof l){var i;null==(i=r.get(n))||i.push(l),e[n]=function(){for(var e,t=arguments.length,o=Array(t),l=0;l<t;l++)o[l]=arguments[l];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)}}}else e[n]=l}),e),{})}}function eV(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}var e$=e.i(828422),ej=e.i(266840),eq=e.i(660471);let ez=(0,t.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});
1ez.displayName="FloatingContext";let e_=(0,t.createContext)(null);function eK(e,n,o){let l=(0,e$.useDisposables)(),i=(0,ej.useEvent)((e,t)=>{if(null==e)return[o,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[o,null];let n=eU(e,t);return[n,r=>{let o=function e(t){let n=/var\((.*)\)/.exec(t);if(n){let t=n[1].indexOf(",");if(-1===t)return[n[1]];let r=n[1].slice(0,t).trim(),o=n[1].slice(t+1).trim();return o?[r,...e(o)]:[r]}return[]}(e);{let i=o.map(e=>window.getComputedStyle(t).getPropertyValue(e));l.requestAnimationFrame(function u(){l.nextFrame(u);let a=!1;for(let[e,n]of o.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(i[e]!==r){i[e]=r,a=!0;break}}if(!a)return;let s=eU(e,t);n!==s&&(r(s),n=s)})}return l.dispose}]}return[o,null]}),u=(0,t.useMemo)(()=>i(e,n)[0],[e,n]),[a=u,s]=(0,t.useState)();return(0,r.useIsoMorphicEffect)(()=>{let[t,r]=i(e,n);if(s(t),r)return r(s)},[e,n]),a}function eU(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}e_.displayName="PlacementContext",e.s(["FloatingProvider",0,function({children:e,enabled:n=!0}){var o,a,s,f,c,y,E,S,P,L,A,H,O,k,D,N;let W,I,V,$,j,q,z,_,K,U,[Y,J]=(0,t.useState)(null),[X,G]=(0,t.useState)(0),Q=(0,t.useRef)(null),[Z,ee]=(0,t.useState)(null);A=Z,(0,r.useIsoMorphicEffect)(()=>{if(!A)return;let e=new MutationObserver(()=>{let e=window.getComputedStyle(A).maxHeight,t=parseFloat(e);if(isNaN(t))return;let n=parseInt(e);isNaN(n)||t!==n&&(A.style.maxHeight=`${Math.ceil(t)}px`)});return e.observe(A,{attributes:!0,attributeFilter:["style"]}),()=>{e.disconnect()}},[A]);let et=n&&null!==Y&&null!==Z,{to:en="bottom",gap:er=0,offset:eo=0,padding:el=0,inner:ei}=(H=Y,O=Z,W=eK(null!=(k=null==H?void 0:H.gap)?k:"var(--anchor-gap, 0)",O),I=eK(null!=(D=null==H?void 0:H.offset)?D:"var(--anchor-offset, 0)",O),V=eK(null!=(N=null==H?void 0:H.padding)?N:"var(--anchor-padding, 0)",O),{...H,gap:W,offset:I,padding:V}),[eu,ea="center"]=en.split(" ");(0,r.useIsoMorphicEffect)(()=>{et&&G(0)},[et]);let{refs:es,floatingStyles:ef,context:ec}=function(e){void 0===e&&(e={});let{nodeId:n}=e,r=function(e){var n;let{open:r=!1,onOpenChange:o,elements:l}=e,i=ek(),u=t.useRef({}),[a]=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.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==n))||[])}}}),s=null!=((null==(n=t.useContext(eD))?void 0:n.id)||null),[f,c]=t.useState(l.reference),p=eP((e,t,n)=>{u.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:n,nested:s}),null==o||o(e,t,n)}),d=t.useMemo(()=>({setPositionReference:c}),[]),m=t.useMemo(()=>({reference:f||l.reference||null,floating:l.floating||null,domReference:l.reference}),[f,l.reference,l.floating]);return t.useMemo(()=>({dataRef:u,open:r,onOpenChange:p,elements:m,events:a,floatingId:i,refs:d}),[r,p,m,a,i,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||r,l=o.elements,[i,u]=t.useState(null),[a,s]=t.useState(null),f=(null==l?void 0:l.domReference)||i,c=t.useRef(null),p=t.useContext(eB);eL(()=>{f&&(c.current=f)},[f]);let d=function(e){void 0===e&&(e={});let{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:l,elements:{reference:i,floating:u}={},transform:a=!0,whileElementsMounted:s,open:f}=e,[c,p]=t.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[d,m]=t.useState(o);eb(d,o)||m(o);let[g,h]=t.useState(null),[y,v]=t.useState(null),w=t.useCallback(e=>{e!==C.current&&(C.current=e,h(e))},[]),x=t.useCallback(e=>{e!==T.current&&(T.current=e,v(e))},[]),b=i||g,R=u||y,C=t.useRef(null),T=t.useRef(null),E=t.useRef(c),S=null!=s,F=eT(s),P=eT(l),L=eT(f),A=t.useCallback(()=>{var e,t;let o,l,i;if(!C.current||!T.current)return;let u={placement:n,strategy:r,middleware:d};P.current&&(u.platform=P.current),(e=C.current,t=T.current,o=new Map,i={...(l={platform:eh,...u}).platform,_c:o},M(e,t,{...l,platform:i})).then(e=>{let t={...e,isPositioned:!1!==L.current};H.current&&!eb(E.current,t)&&(E.current=t,ew.flushSync(()=>{p(t)}))})},[d,n,r,P,L]);ex(()=>{!1===f&&E.current.isPositioned&&(E.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[f]);let H=t.useRef(!1);ex(()=>(H.current=!0,()=>{H.current=!1}),[]),ex(()=>
1{if(b&&(C.current=b),R&&(T.current=R),b&&R){if(F.current)return F.current(b,R,A);A()}},[b,R,A,F,S]);let O=t.useMemo(()=>({reference:C,floating:T,setReference:w,setFloating:x}),[w,x]),k=t.useMemo(()=>({reference:b,floating:R}),[b,R]),D=t.useMemo(()=>{let e={position:r,left:0,top:0};if(!k.floating)return e;let t=eC(k.floating,c.x),n=eC(k.floating,c.y);return a?{...e,transform:"translate("+t+"px, "+n+"px)",...eR(k.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,a,k.floating,c.x,c.y]);return t.useMemo(()=>({...c,update:A,refs:O,elements:k,floatingStyles:D}),[c,A,O,k,D])}({...e,elements:{...l,...a&&{reference:a}}}),m=t.useCallback(e=>{let t=B(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;s(t),d.refs.setReference(t)},[d.refs]),g=t.useCallback(e=>{(B(e)||null===e)&&(c.current=e,u(e)),(B(d.refs.reference.current)||null===d.refs.reference.current||null!==e&&!B(e))&&d.refs.setReference(e)},[d.refs]),h=t.useMemo(()=>({...d.refs,setReference:g,setPositionReference:m,domReference:c}),[d.refs,g,m]),y=t.useMemo(()=>({...d.elements,domReference:f}),[d.elements,f]),v=t.useMemo(()=>({...d,...o,refs:h,elements:y,nodeId:n}),[d,h,y,n,o]);return eL(()=>{o.dataRef.current.floatingContext=v;let e=null==p?void 0:p.nodesRef.current.find(e=>e.id===n);e&&(e.context=v)}),t.useMemo(()=>({...d,context:v,refs:h,elements:y}),[d,h,y,v])}({open:et,placement:"selection"===eu?"center"===ea?"bottom":`bottom-${ea}`:"center"===ea?`${eu}`:`${eu}-${ea}`,strategy:"absolute",transform:!1,middleware:[eE({mainAxis:"selection"===eu?0:er,crossAxis:eo}),{...{name:"shift",options:s=o={padding:el},async fn(e){let{x:t,y:n,placement:r}=e,{mainAxis:o=!0,crossAxis:u=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...f}=p(s,e),c={x:t,y:n},m=await F(e,f),h=v(d(r)),y=g(h),w=c[y],x=c[h];if(o){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=w+m[e],r=w-m[t];w=i(n,l(w,r))}if(u){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",n=x+m[e],r=x-m[t];x=i(n,l(x,r))}let b=a.fn({...e,[y]:w,[h]:x});return{...b,data:{x:b.x-t,y:b.y-n,enabled:{[y]:o,[h]:u}}}}},options:[o,a]},"selection"!==eu&&{...{name:"flip",options:y=f={padding:el},async fn(e){var t,n,r,o,l,i,u,a;let s,f,c,{placement:E,middlewareData:S,rects:M,initialPlacement:P,platform:L,elements:A}=e,{mainAxis:H=!0,crossAxis:O=!0,fallbackPlacements:k,fallbackStrategy:D="bestFit",fallbackAxisSideDirection:B="none",flipAlignment:N=!0,...W}=p(y,e);if(null!=(t=S.arrow)&&t.alignmentOffset)return{};let I=d(E),V=v(P),$=d(P)===P,j=await (null==L.isRTL?void 0:L.isRTL(A.floating)),q=k||($||!N?[T(P)]:(s=T(P),[w(P),s,w(s)])),z="none"!==B;!k&&z&&q.push(...(f=m(P),c=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?b:x;return t?x:b;case"left":case"right":return t?R:C;default:return[]}}(d(P),"start"===B,j),f&&(c=c.map(e=>e+"-"+f),N&&(c=c.concat(c.map(w)))),c));let _=[P,...q],K=await F(e,W),U=[],Y=(null==(n=S.flip)?void 0:n.overflows)||[];if(H&&U.push(K[I]),O){let e,t,n,r,o=(i=E,u=M,void 0===(a=j)&&(a=!1),e=m(i),n=h(t=g(v(i))),r="x"===t?e===(a?"end":"start")?"right":"left":"start"===e?"bottom":"top",u.reference[n]>u.floating[n]&&(r=T(r)),[r,T(r)]);U.push(K[o[0]],K[o[1]])}if(Y=[...Y,{placement:E,overflows:U}],!U.every(e=>e<=0)){let e=((null==(r=S.flip)?void 0:r.index)||0)+1,t=_[e];if(t&&("alignment"!==O||V===v(t)||Y.every(e=>v(e.placement)!==V||e.overflows[0]>0)))return{data:{index:e,overflows:Y},reset:{placement:t}};let n=null==(o=Y.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(D){case"bestFit":{let e=null==(l=Y.filter(e=>{if(z){let t=v(e.placement);return t===V||"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=P}if(E!==n)return{reset:{placement:n}}}return{}}},options:[f,c]},"selection"===eu&&ei?{name:"inner",options:$={...ei,padding:el,overflowRef:Q,offset:X,minItemsVisible:4,referenceOverflowThreshold:el,onFallbackChange(e){var t,n;if(!e)return;let r=ec.elements.floating;if(!r)return;
1let o=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,l=Math.min(4,r.childElementCount),i=0,u=0;for(let e of null!=(n=null==(t=ec.elements.floating)?void 0:t.childNodes)?n:[])if(eq.isHTMLElement(e)){let t=e.offsetTop,n=t+e.clientHeight+o,a=r.scrollTop,s=a+r.clientHeight;if(t>=a&&n<=s)l--;else{u=Math.max(0,Math.min(n,s)-Math.max(t,a)),i=e.clientHeight;break}}l>=1&&G(e=>{let t=i*l-u+o;return e>=t?e:t})}},async fn(e){let{listRef:t,overflowRef:n,onFallbackChange:r,offset:o=0,index:a=0,minItemsVisible:s=4,referenceOverflowThreshold:f=0,scrollRef:c,...d}=p($,e),{rects:m,elements:{floating:g}}=e,h=t.current[a],y=(null==c?void 0:c.current)||g,v=g.clientTop||y.clientTop,w=0!==g.clientTop,x=0!==y.clientTop,b=g===y;if(!h)return{};let R={...e,...await eE(-h.offsetTop-g.clientTop-m.reference.height/2-h.offsetHeight/2-o).fn(e)},C=await F(eV(R,y.scrollHeight+v+g.clientTop),d),T=await F(R,{...d,elementContext:"reference"}),E=i(0,C.top),S=R.y+E,M=(y.scrollHeight>y.clientHeight?e=>e:u)(i(0,y.scrollHeight+(w&&b||x?2*v:0)-E-i(0,C.bottom)));if(y.style.maxHeight=M+"px",y.scrollTop=E,r){let e=y.offsetHeight<h.offsetHeight*l(s,t.current.length)-1||T.top>=-f||T.bottom>=-f;ew.flushSync(()=>r(e))}return n&&(n.current=await F(eV({...R,y:S},y.offsetHeight+v+g.clientTop),d)),{y:S}}}:null,{...{name:"size",options:P=E={padding:el,apply({availableWidth:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}},async fn(e){var t,n;let r,o,{placement:u,rects:a,platform:s,elements:f}=e,{apply:c=()=>{},...g}=p(P,e),h=await F(e,g),y=d(u),w=m(u),x="y"===v(u),{width:b,height:R}=a.floating;"top"===y||"bottom"===y?(r=y,o=w===(await (null==s.isRTL?void 0:s.isRTL(f.floating))?"start":"end")?"left":"right"):(o=y,r="end"===w?"top":"bottom");let C=R-h.top-h.bottom,T=b-h.left-h.right,E=l(R-h[r],C),S=l(b-h[o],T),M=!e.middlewareData.shift,L=E,A=S;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(A=T),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(L=C),M&&!w){let e=i(h.left,0),t=i(h.right,0),n=i(h.top,0),r=i(h.bottom,0);x?A=b-2*(0!==e||0!==t?e+t:i(h.left,h.right)):L=R-2*(0!==n||0!==r?n+r:i(h.top,h.bottom))}await c({...e,availableWidth:A,availableHeight:L});let H=await s.getDimensions(f.floating);return b!==H.width||R!==H.height?{reset:{rects:!0}}:{}}},options:[E,S]}].filter(Boolean),whileElementsMounted:ev}),[ep=eu,ed=ea]=ec.placement.split("-");"selection"===eu&&(ep="selection");let em=(0,t.useMemo)(()=>({anchor:[ep,ed].filter(Boolean).join(" ")}),[ep,ed]),{getReferenceProps:eg,getFloatingProps:ey}=(j=(L=[function(e,n){let{open:r,elements:o}
1=e,{enabled:l=!0,overflowRef:i,scrollRef:u,onChange:a}=n,s=eP(a),f=t.useRef(!1),c=t.useRef(null),p=t.useRef(null);t.useEffect(()=>{if(!l)return;function e(e){if(e.ctrlKey||!t||null==i.current)return;let n=e.deltaY,r=i.current.top>=-.5,o=i.current.bottom>=-.5,l=t.scrollHeight-t.clientHeight,u=n<0?-1:1,a=n<0?"max":"min";if(!(t.scrollHeight<=t.clientHeight))if(!r&&n>0||!o&&n<0)e.preventDefault(),ew.flushSync(()=>{s(e=>e+Math[a](n,l*u))});else{let e;/firefox/i.test((e=navigator.userAgentData)&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent)&&(t.scrollTop+=n)}}let t=(null==u?void 0:u.current)||o.floating;if(r&&t)return t.addEventListener("wheel",e),requestAnimationFrame(()=>{c.current=t.scrollTop,null!=i.current&&(p.current={...i.current})}),()=>{c.current=null,p.current=null,t.removeEventListener("wheel",e)}},[l,r,o.floating,i,u,s]);let d=t.useMemo(()=>({onKeyDown(){f.current=!0},onWheel(){f.current=!1},onPointerMove(){f.current=!1},onScroll(){let e=(null==u?void 0:u.current)||o.floating;if(i.current&&e&&f.current){if(null!==c.current){let t=e.scrollTop-c.current;(i.current.bottom<-.5&&t<-1||i.current.top<-.5&&t>1)&&ew.flushSync(()=>s(e=>e+t))}requestAnimationFrame(()=>{c.current=e.scrollTop})}}}),[o.floating,s,i,u]);return t.useMemo(()=>l?{floating:d}:{},[l,d])}(ec,{overflowRef:Q,onChange:G})]).map(e=>null==e?void 0:e.reference),q=L.map(e=>null==e?void 0:e.floating),z=L.map(e=>null==e?void 0:e.item),_=t.useCallback(e=>eI(e,L,"reference"),j),K=t.useCallback(e=>eI(e,L,"floating"),q),U=t.useCallback(e=>eI(e,L,"item"),z),t.useMemo(()=>({getReferenceProps:_,getFloatingProps:K,getItemProps:U}),[_,K,U])),eS=(0,ej.useEvent)(e=>{ee(e),es.setFloating(e)});return t.createElement(e_.Provider,{value:J},t.createElement(ez.Provider,{value:{setFloating:eS,setReference:es.setReference,styles:ef,getReferenceProps:eg,getFloatingProps:ey,slot:em}},e))},"useFloatingPanel",0,function(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let n=(0,t.useContext)(e_),o=(0,t.useMemo)(()=>e,[JSON.stringify(e,(e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t})]);(0,r.useIsoMorphicEffect)(()=>{null==n||n(null!=o?o:null)},[n,o]);let l=(0,t.useContext)(ez);return(0,t.useMemo)(()=>[l.setFloating,e?l.styles:{}],[l.setFloating,e,l.styles])},"useFloatingPanelProps",0,function(){let{getFloatingProps:e,slot:n}=(0,t.useContext)(ez);return(0,t.useCallback)((...t)=>Object.assign({},e(...t),{"data-anchor":n.anchor}),[e,n])},"useFloatingReference",0,function(){return(0,t.useContext)(ez).setReference},"useFloatingReferenceProps",0,function(){return(0,t.useContext)(ez).getReferenceProps},"useResolvedAnchor",0,function(e){return(0,t.useMemo)(()=>e?"string"==typeof e?{to:e}:e:null,[e])}],423862)}]);

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.