1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6296],{71443:(e,n,t)=>{t.d(n,{A:()=>m});var i=t(22043),r=t(95155),s=t(65229),o=t(12115),a=t(47650),l=50;function c(){var e=l;return l+=10,e}var u=0,d="",f=[];function m(e){var n=e.isOpen,t=e.handleClose,l=e.children,m=e.title,x=e.subtitle,b=e.icon,v=e.ariaLabel,h=e.ariaLabelledBy,p=e.maxWidth,g=e.className,k=e.closeOnEscape,w=void 0===k||k,y=e.closeOnBackdrop,j=(0,i._)((0,o.useState)(!1),2),C=j[0],_=j[1],N=(0,i._)((0,o.useState)(c),1)[0],E=(0,o.useRef)(null),S=(0,o.useRef)(null),T=(0,o.useId)(),A=(0,o.useRef)(t),z=(0,o.useRef)(w);return((0,o.useEffect)(function(){A.current=t,z.current=w},[t,w]),(0,o.useEffect)(function(){_(!0)},[]),(0,o.useEffect)(function(){var e;if(n&&C)return S.current=document.activeElement,null==(e=E.current)||e.focus(),0===u&&(d=document.body.style.overflow,document.body.style.overflow="hidden"),u++,f.push(N),function(){var e;0===(u=Math.max(0,u-1))&&(document.body.style.overflow=d),f=f.filter(function(e){return e!==N}),null==(e=S.current)||e.focus()}},[n,C,N]),(0,o.useEffect)(function(){if(n){var e=function(e){if(f[f.length-1]!==N)return;if(z.current&&"Escape"===e.key)return void A.current("escape");if("Tab"===e.key){var n=E.current;if(n){var t=Array.from(n.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])'));if(0!==t.length){var i=t[0],r=t[t.length-1];e.shiftKey&&document.activeElement===i?(e.preventDefault(),r.focus()):e.shiftKey||document.activeElement!==r||(e.preventDefault(),i.focus())}}}};return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}}},[n,N]),n&&C)?(0,a.createPortal)((0,r.jsxs)("div",{className:"fixed inset-0 flex items-start justify-center overflow-y-auto px-4 py-[8vh]",style:{zIndex:N},children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-black/70 backdrop-blur-sm","aria-hidden":"true",onClick:void 0===y||y?function(){return t("backdrop")}:void 0}),(0,r.jsxs)("div",{ref:E,role:"dialog","aria-modal":"true","aria-labelledby":null!=h?h:m?T:void 0,"aria-label":h||m?void 0:v,tabIndex:-1,className:"relative rounded-[22px] bg-ink-900 border border-ink-line overflow-hidden w-full ".concat(void 0===p?"max-w-xl":p," max-h-[90vh] flex flex-col shadow-[0_28px_70px_-24px_rgba(0,0,0,.85)] animate-ink-enter motion-reduce:animate-none ").concat(void 0===g?"":g),children:[m&&(0,r.jsxs)("div",{className:"relative flex-shrink-0",children:[(0,r.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 bg-[radial-gradient(130%_160%_at_8%_-60%,rgba(255,153,0,.20),transparent_62%)]"}),(0,r.jsxs)("div",{className:"relative flex items-center gap-3 px-4 pb-3 pt-4 sm:px-5",children:[b&&(0,r.jsx)("span",{className:"grid h-10 w-10 flex-shrink-0 place-items-center rounded-full border border-accent/30 bg-accent/10 text-accent-hi shadow-[0_0_18px_-6px_rgba(255,153,0,.7)]",children:b}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsx)("h2",{id:T,className:"text-[17px] font-extrabold leading-tight tracking-[-0.01em] text-ink-t1",children:m}),x&&(0,r.jsx)("p",{className:"truncate text-[12.5px] leading-snug text-ink-t3",children:x})]}),(0,r.jsx)("button",{type:"button","aria-label":"Close",onClick:function(){return t()},className:"grid h-9 w-9 flex-shrink-0 place-items-center rounded-full border border-ink-line bg-ink-800/70 text-ink-t2 transition-colors hover:border-ink-line-2 hover:bg-ink-750 hover:text-ink-t1 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent",children:(0,r.jsx)(s.A,{size:18})})]}),(0,r.jsx)("div",{"aria-hidden":"true",className:"h-px bg-gradient-to-r from-transparent via-accent/30 to-transparent"})]}),l]})]}),document.body):null}},77579:(e,n,t)=>{t.d(n,{ConfirmProvider:()=>v,S:()=>h});var i=t(61975),r=t(82732),s=t(45849),o=t(22043),a=t(71450),l=t(95155),c=t(12115),u=t(71360),d=t(52056),f=t(20908),m=t(23327),x=t(71443),b=(0,c.createContext)(void 0);function v(e){var n=e.children,t=(0,o._)((0,c.useState)(null),2),x=t[0],v=t[1],h=(0,o._)((0,c.useState)(null),2),g=h[0],k=h[1],w=(0,c.useCallback)(function(){v(null),k(null)},[]),y=(0,c.useCallback)(function(e){return new Promise(function(n){v((0,s._)((0,r._)({},e),{isVisible:!0,isLoading:!1})),k({resolve:n})})},[]),j=(0,c.useCallback)(function(){return(0,i._)(function(){return(0,a.YH)(this,function(e){switch(e.label){case 0:if(!x||!g)return[2];v(function(e){return e?(0,s._)((0,r._)({},e),{isLoading:!0}):null}),e.label=1;case 1:if(e.trys.push([1,4,5,6]),!x.onConfirm)return[3,3];return[4,x.onConfirm()];case 2:e.sent(),e.label=3;case 3:return g.resolve(!0),[3,6];case 4:return e.sent(),g.resolve(!1),[3,6];case 5:return w(),[7];case 6:return[2]}})})()},[x,g,w]),C=(0,c.useCallback)(function(){x&&g&&(x.onCancel&&x.onCancel(),g.resolve(!1),w())},[x,g,w]),_=(0,c.useCallback)(function(e,n,t){return y({type:"danger",title:e,message:n,
1confirmText:null!=t?t:"Delete",confirmButtonStyle:"danger",icon:(0,l.jsx)(u.A,{size:18})})},[y]),N=(0,c.useCallback)(function(e,n,t){return y({type:"warning",title:e,message:n,confirmText:null!=t?t:"Proceed",confirmButtonStyle:"warning",icon:(0,l.jsx)(d.A,{size:18})})},[y]),E=(0,c.useCallback)(function(e,n,t){return y({type:"question",title:e,message:n,confirmText:null!=t?t:"Yes",confirmButtonStyle:"primary",icon:(0,l.jsx)(f.A,{size:18})})},[y]),S=(0,c.useCallback)(function(e,n,t){return y({type:"info",title:e,message:n,confirmText:null!=t?t:"OK",confirmButtonStyle:"primary",icon:(0,l.jsx)(m.A,{size:18})})},[y]);return(0,l.jsxs)(b.Provider,{value:{showConfirm:y,danger:_,warning:N,question:E,info:S},children:[n,x&&(0,l.jsx)(p,{dialog:x,onConfirm:j,onCancel:C})]})}function h(){var e=(0,c.useContext)(b);if(void 0===e)throw Error("useConfirm must be used within a ConfirmProvider");return e}function p(e){var n,t,i,r=e.dialog,s=e.onConfirm,o=e.onCancel,a=function(e){switch(e){case"danger":return"bg-bad text-ink-t1 hover:brightness-110";case"warning":case"primary":return"bg-accent text-ink-950 hover:brightness-95"}}(null!=(n=r.confirmButtonStyle)?n:"primary");return(0,l.jsxs)(x.A,{isOpen:!0,handleClose:o,title:r.title,icon:r.icon,maxWidth:"max-w-md",closeOnBackdrop:!r.isLoading,closeOnEscape:!r.isLoading,children:[(0,l.jsx)("div",{className:"p-5 pt-1",children:r.message&&(0,l.jsx)("p",{className:"text-sm text-ink-t2",children:r.message})}),(0,l.jsxs)("div",{className:"flex justify-end gap-3 px-5 pb-5",children:[(0,l.jsx)("button",{onClick:o,disabled:r.isLoading,className:"px-4 py-2 text-sm font-semibold text-ink-t2 bg-ink-800 hover:bg-ink-750 rounded-lg disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer transition-colors duration-200",children:null!=(t=r.cancelText)?t:"Cancel"}),(0,l.jsxs)("button",{onClick:s,disabled:r.isLoading,className:"px-4 py-2 text-sm font-semibold rounded-lg disabled:opacity-50 flex items-center transition-colors duration-200 disabled:cursor-not-allowed cursor-pointer ".concat(a),children:[r.isLoading&&(0,l.jsx)("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin mr-2"}),null!=(i=r.confirmText)?i:"Confirm"]})]})]})}},91130:(e,n,t)=>{t.d(n,{ToastProvider:()=>h,d:()=>p});var i=t(82732),r=t(45849),s=t(22043),o=t(45377),a=t(95155),l=t(12115),c=t(42529),u=t(78874),d=t(6132),f=t(23327),m=t(65229),x={success:"bg-live/13 text-live",error:"bg-bad/13 text-bad",warning:"bg-warn/13 text-warn",info:"bg-info/13 text-info"},b={success:(0,a.jsx)(c.A,{size:20}),error:(0,a.jsx)(u.A,{size:20}),warning:(0,a.jsx)(d.A,{size:20}),info:(0,a.jsx)(f.A,{size:20})},v=(0,l.createContext)(void 0);function h(e){var n=e.children,t=(0,s._)((0,l.useState)([]),2),c=t[0],u=t[1],d=(0,l.useCallback)(function(e){u(function(n){return n.filter(function(n){return n.id!==e})})},[]),f=(0,l.useCallback)(function(e){var n,t=Math.random().toString(36).substring(2)+Date.now().toString(36);u(function(n){return(0,o._)(n).concat([(0,r._)((0,i._)({},e),{id:t})])}),setTimeout(function(){d(t)},null!=(n=e.duration)?n:5e3)},[d]),m=(0,l.useCallback)(function(e,n,t){f({type:"success",title:e,message:n,duration:t})},[f]),x=(0,l.useCallback)(function(e,n,t){f({type:"error",title:e,message:n,duration:t})},[f]),b=(0,l.useCallback)(function(e,n,t){f({type:"warning",title:e,message:n,duration:t})},[f]),h=(0,l.useCallback)(function(e,n,t){f({type:"info",title:e,message:n,duration:t})},[f]);return(0,a.jsxs)(v.Provider,{value:{showToast:f,removeToast:d,showSuccess:m,showError:x,showWarning:b,showInfo:h},children:[n,(0,a.jsx)(g,{toasts:c,removeToast:d})]})}function p(){var e=(0,l.useContext)(v);if(void 0===e)throw Error("useToast must be used within a ToastProvider");return e}function g(e){var n=e.toasts,t=e.removeToast;return 0===n.length?null:(0,a.jsx)("div",{className:"fixed bottom-4 right-4 z-[9999] flex flex-col gap-2",children:n.map(function(e){return(0,a.jsx)(k,{toast:e,onRemove:function(){return t(e.id)}},e.id)})})}function k(e){var n=e.toast,t=e.onRemove;return(0,a.jsxs)("div",{className:"flex items-center gap-3 rounded-2xl border border-ink-line bg-ink-900 p-4 shadow-ink-lg max-w-md min-w-[320px] animate-ink-enter motion-reduce:animate-none",children:[(0,a.jsx)("div",{className:"flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-full ".concat(x[n.type]),children:b[n.type]}),(0,a.jsxs)("div",{className:"flex-1 min-w-0 pt-0.5",children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-ink-t1",children:n.title}),n.message&&(0,a.jsx)("p",{className:"text-sm mt-1 text-ink-t3",children:n.message})]}),(0,a.jsx)("button",{onClick:t,"aria-label":"Dismiss",className:"flex-shrink-0 rounded-full p-1 text-ink-t3 transition-colors duration-200 hover:bg-ink-750 hover:text-ink-t1 focu
1s-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent",children:(0,a.jsx)(m.A,{size:16})})]})}}}]);
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.