Files
create-better-t-stack/apps/web/.open-next/assets/_next/static/chunks/697-7bce5e7cfa4dacf2.js
2025-07-13 14:09:49 +05:30

1 line
20 KiB
JavaScript

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[697],{11511:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(98516).A)("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]])},12555:(e,t,n)=>{n.d(t,{i3:()=>J,UC:()=>Z,ZL:()=>X,Kq:()=>V,bL:()=>W,l9:()=>G});var r=n(7620),l=n(12710),a=n(93608),o=n(62402),i=n(79088),u=n(62104),s=n(4354),c=n(79455),d=n(69312),p=n(37460),f=n(34977),h=n(73284),y=n(54568),m=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),v=r.forwardRef((e,t)=>(0,y.jsx)(p.sG.span,{...e,ref:t,style:{...m,...e.style}}));v.displayName="VisuallyHidden";var[g,b]=(0,o.A)("Tooltip",[s.Bk]),w=(0,s.Bk)(),x="TooltipProvider",k="tooltip.open",[O,M]=g(x),N=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:l=300,disableHoverableContent:a=!1,children:o}=e,i=r.useRef(!0),u=r.useRef(!1),s=r.useRef(0);return r.useEffect(()=>{let e=s.current;return()=>window.clearTimeout(e)},[]),(0,y.jsx)(O,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:r.useCallback(()=>{window.clearTimeout(s.current),i.current=!1},[]),onClose:r.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(()=>i.current=!0,l)},[l]),isPointerInTransitRef:u,onPointerInTransitChange:r.useCallback(e=>{u.current=e},[]),disableHoverableContent:a,children:o})};N.displayName=x;var T="Tooltip",[j,E]=g(T),C=e=>{let{__scopeTooltip:t,children:n,open:l,defaultOpen:a,onOpenChange:o,disableHoverableContent:i,delayDuration:c}=e,d=M(T,e.__scopeTooltip),p=w(t),[f,m]=r.useState(null),v=(0,u.B)(),g=r.useRef(0),b=null!=i?i:d.disableHoverableContent,x=null!=c?c:d.delayDuration,O=r.useRef(!1),[N,E]=(0,h.i)({prop:l,defaultProp:null!=a&&a,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(k))):d.onClose(),null==o||o(e)},caller:T}),C=r.useMemo(()=>N?O.current?"delayed-open":"instant-open":"closed",[N]),S=r.useCallback(()=>{window.clearTimeout(g.current),g.current=0,O.current=!1,E(!0)},[E]),A=r.useCallback(()=>{window.clearTimeout(g.current),g.current=0,E(!1)},[E]),R=r.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{O.current=!0,E(!0),g.current=0},x)},[x,E]);return r.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),(0,y.jsx)(s.bL,{...p,children:(0,y.jsx)(j,{scope:t,contentId:v,open:N,stateAttribute:C,trigger:f,onTriggerChange:m,onTriggerEnter:r.useCallback(()=>{d.isOpenDelayedRef.current?R():S()},[d.isOpenDelayedRef,R,S]),onTriggerLeave:r.useCallback(()=>{b?A():(window.clearTimeout(g.current),g.current=0)},[A,b]),onOpen:S,onClose:A,disableHoverableContent:b,children:n})})};C.displayName=T;var S="TooltipTrigger",A=r.forwardRef((e,t)=>{let{__scopeTooltip:n,...o}=e,i=E(S,n),u=M(S,n),c=w(n),d=r.useRef(null),f=(0,a.s)(t,d,i.onTriggerChange),h=r.useRef(!1),m=r.useRef(!1),v=r.useCallback(()=>h.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),(0,y.jsx)(s.Mz,{asChild:!0,...c,children:(0,y.jsx)(p.sG.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...o,ref:f,onPointerMove:(0,l.m)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(m.current||u.isPointerInTransitRef.current||(i.onTriggerEnter(),m.current=!0))}),onPointerLeave:(0,l.m)(e.onPointerLeave,()=>{i.onTriggerLeave(),m.current=!1}),onPointerDown:(0,l.m)(e.onPointerDown,()=>{i.open&&i.onClose(),h.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:(0,l.m)(e.onFocus,()=>{h.current||i.onOpen()}),onBlur:(0,l.m)(e.onBlur,i.onClose),onClick:(0,l.m)(e.onClick,i.onClose)})})});A.displayName=S;var R="TooltipPortal",[q,z]=g(R,{forceMount:void 0}),L=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:l}=e,a=E(R,t);return(0,y.jsx)(q,{scope:t,forceMount:n,children:(0,y.jsx)(d.C,{present:n||a.open,children:(0,y.jsx)(c.Z,{asChild:!0,container:l,children:r})})})};L.displayName=R;var I="TooltipContent",P=r.forwardRef((e,t)=>{let n=z(I,e.__scopeTooltip),{forceMount:r=n.forceMount,side:l="top",...a}=e,o=E(I,e.__scopeTooltip);return(0,y.jsx)(d.C,{present:r||o.open,children:o.disableHoverableContent?(0,y.jsx)(Y,{side:l,...a,ref:t}):(0,y.jsx)(D,{side:l,...a,ref:t})})}),D=r.forwardRef((e,t)=>{let n=E(I,e.__scopeTooltip),l=M(I,e.__scopeTooltip),o=r.useRef(null),i=(0,a.s)(t,o),[u,s]=r.useState(null),{trigger:c,onClose:d}=n,p=o.current,{onPointerInTransitChange:f}=l,h=r.useCallback(()=>{s(null),f(!1)},[f]),m=r.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},l=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),l=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,l,a)){case a:return"left";case l:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(r,n.getBoundingClientRect());s(function(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)),function(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)}(t)}([...function(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}(r,l),...function(e){let{top:t,right:n,bottom:r,left:l}=e;return[{x:l,y:t},{x:n,y:t},{x:n,y:r},{x:l,y:r}]}(t.getBoundingClientRect())])),f(!0)},[f]);return r.useEffect(()=>()=>h(),[h]),r.useEffect(()=>{if(c&&p){let e=e=>m(e,p),t=e=>m(e,c);return c.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}},[c,p,m,h]),r.useEffect(()=>{if(u){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==c?void 0:c.contains(t))||(null==p?void 0:p.contains(t)),l=!function(e,t){let{x:n,y:r}=e,l=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],i=t[a],u=o.x,s=o.y,c=i.x,d=i.y;s>r!=d>r&&n<(c-u)*(r-s)/(d-s)+u&&(l=!l)}return l}(n,u);r?h():l&&(h(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,p,u,d,h]),(0,y.jsx)(Y,{...e,ref:i})}),[U,_]=g(T,{isInside:!1}),F=(0,f.Dc)("TooltipContent"),Y=r.forwardRef((e,t)=>{let{__scopeTooltip:n,children:l,"aria-label":a,onEscapeKeyDown:o,onPointerDownOutside:u,...c}=e,d=E(I,n),p=w(n),{onClose:f}=d;return r.useEffect(()=>(document.addEventListener(k,f),()=>document.removeEventListener(k,f)),[f]),r.useEffect(()=>{if(d.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(d.trigger))&&f()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[d.trigger,f]),(0,y.jsx)(i.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:f,children:(0,y.jsxs)(s.UC,{"data-state":d.stateAttribute,...p,...c,ref:t,style:{...c.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,y.jsx)(F,{children:l}),(0,y.jsx)(U,{scope:n,isInside:!0,children:(0,y.jsx)(v,{id:d.contentId,role:"tooltip",children:a||l})})]})})});P.displayName=I;var B="TooltipArrow",H=r.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,l=w(n);return _(B,n).isInside?null:(0,y.jsx)(s.i3,{...l,...r,ref:t})});H.displayName=B;var V=N,W=C,G=A,X=L,Z=P,J=H},15597:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(98516).A)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},17338:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(98516).A)("clipboard-copy",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]])},28855:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(98516).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},60392:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(98516).A)("settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},62104:(e,t,n)=>{n.d(t,{B:()=>u});var r,l=n(7620),a=n(58463),o=(r||(r=n.t(l,2)))[" useId ".trim().toString()]||(()=>void 0),i=0;function u(e){let[t,n]=l.useState(o());return(0,a.N)(()=>{e||n(e=>e??String(i++))},[e]),e||(t?`radix-${t}`:"")}},63545:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(98516).A)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},69312:(e,t,n)=>{n.d(t,{C:()=>o});var r=n(7620),l=n(93608),a=n(58463),o=e=>{let{present:t,children:n}=e,o=function(e){var t,n;let[l,o]=r.useState(),u=r.useRef(null),s=r.useRef(e),c=r.useRef("none"),[d,p]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=i(u.current);c.current="mounted"===d?e:"none"},[d]),(0,a.N)(()=>{let t=u.current,n=s.current;if(n!==e){let r=c.current,l=i(t);e?p("MOUNT"):"none"===l||(null==t?void 0:t.display)==="none"?p("UNMOUNT"):n&&r!==l?p("ANIMATION_OUT"):p("UNMOUNT"),s.current=e}},[e,p]),(0,a.N)(()=>{if(l){var e;let t,n=null!=(e=l.ownerDocument.defaultView)?e:window,r=e=>{let r=i(u.current).includes(e.animationName);if(e.target===l&&r&&(p("ANIMATION_END"),!s.current)){let e=l.style.animationFillMode;l.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===l.style.animationFillMode&&(l.style.animationFillMode=e)})}},a=e=>{e.target===l&&(c.current=i(u.current))};return l.addEventListener("animationstart",a),l.addEventListener("animationcancel",r),l.addEventListener("animationend",r),()=>{n.clearTimeout(t),l.removeEventListener("animationstart",a),l.removeEventListener("animationcancel",r),l.removeEventListener("animationend",r)}}p("ANIMATION_END")},[l,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{u.current=e?getComputedStyle(e):null,o(e)},[])}}(t),u="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),s=(0,l.s)(o.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,l=r&&"isReactWarning"in r&&r.isReactWarning;return l?e.ref:(l=(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(u));return"function"==typeof n||o.isPresent?r.cloneElement(u,{ref:s}):null};function i(e){return(null==e?void 0:e.animationName)||"none"}o.displayName="Presence"},70537:(e,t,n)=>{n.d(t,{IN:()=>v,tU:()=>f,Oq:()=>m,ab:()=>w});var r=n(97200);function l(e,t,n){try{return e(t)}catch(e){return(0,r.R8)("[nuqs] Error while parsing value `%s`: %O"+(n?" (for key `%s`)":""),t,e,n),null}}var a=function(){if("undefined"==typeof window||!window.GestureEvent)return 50;try{let e=navigator.userAgent?.match(/version\/([\d\.]+) safari/i);return parseFloat(e[1])>=17?120:320}catch{return 320}}(),o=new Map,i={history:"replace",scroll:!1,shallow:!0,throttleMs:a},u=new Set,s=0,c=null,d=n(7620);function p(e){function t(t){if(void 0===t)return null;let n="";if(Array.isArray(t)){if(void 0===t[0])return null;n=t[0]}return"string"==typeof t&&(n=t),l(e.parse,n)}return{eq:(e,t)=>e===t,...e,parseServerSide:t,withDefault(e){return{...this,defaultValue:e,parseServerSide(n){var r;return null!=(r=t(n))?r:e}}},withOptions(e){return{...this,...e}}}}var f=p({parse:e=>e,serialize:e=>"".concat(e)}),h=p({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:t},serialize:e=>Math.round(e).toFixed()});function y(e,t){return e.valueOf()===t.valueOf()}function m(e){return p({parse:t=>e.includes(t)?t:null,serialize:e=>e.toString()})}function v(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",",r=null!=(t=e.eq)?t:(e,t)=>e===t,a=encodeURIComponent(n);return p({parse:t=>""===t?[]:t.split(n).map((t,r)=>l(e.parse,t.replaceAll(a,n),"[".concat(r,"]"))).filter(e=>null!=e),serialize:t=>t.map(t=>(e.serialize?e.serialize(t):String(t)).replaceAll(n,a)).join(n),eq:(e,t)=>e===t||e.length===t.length&&e.every((e,n)=>r(e,t[n]))})}p({parse:e=>{let t=h.parse(e);return null===t?null:t-1},serialize:e=>h.serialize(e+1)}),p({parse:e=>{let t=parseInt(e,16);return Number.isNaN(t)?null:t},serialize:e=>{let t=Math.round(e).toString(16);return t.padStart(t.length+t.length%2,"0")}}),p({parse:e=>{let t=parseFloat(e);return Number.isNaN(t)?null:t},serialize:e=>e.toString()}),p({parse:e=>"true"===e,serialize:e=>e?"true":"false"}),p({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:new Date(t)},serialize:e=>e.valueOf().toString(),eq:y}),p({parse:e=>{let t=new Date(e);return Number.isNaN(t.valueOf())?null:t},serialize:e=>e.toISOString(),eq:y}),p({parse:e=>{let t=new Date(e.slice(0,10));return Number.isNaN(t.valueOf())?null:t},serialize:e=>e.toISOString().slice(0,10),eq:y});var g=function(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(e){e(n)}),(r=e.get("*"))&&r.slice().map(function(e){e(t,n)})}}}(),b={};function w(e){let{history:t="replace",scroll:n=!1,shallow:l=!0,throttleMs:p=a,clearOnDefault:f=!0,startTransition:h,urlKeys:y=b}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},m=Object.keys(e).join(","),v=(0,d.useMemo)(()=>Object.fromEntries(Object.keys(e).map(e=>{var t;return[e,null!=(t=y[e])?t:e]})),[m,JSON.stringify(y)]),w=(0,r.V7)(),O=w.searchParams,M=(0,d.useRef)({}),N=(0,d.useMemo)(()=>Object.fromEntries(Object.keys(e).map(t=>{var n;return[t,null!=(n=e[t].defaultValue)?n:null]})),[Object.values(e).map(e=>{let{defaultValue:t}=e;return t}).join(",")]),[T,j]=(0,d.useState)(()=>x(e,y,null!=O?O:new URLSearchParams).state),E=(0,d.useRef)(T);if((0,r.Yz)("[nuq+ `%s`] render - state: %O, iSP: %s",m,T,O),Object.keys(M.current).join("&")!==Object.values(v).join("&")){let{state:t,hasChanged:n}=x(e,y,O,M.current,E.current);n&&(E.current=t,j(t)),M.current=Object.fromEntries(Object.values(v).map(e=>{var t;return[e,null!=(t=null==O?void 0:O.get(e))?t:null]}))}(0,d.useEffect)(()=>{let{state:t,hasChanged:n}=x(e,y,O,M.current,E.current);n&&(E.current=t,j(t))},[Object.values(v).map(e=>"".concat(e,"=").concat(null==O?void 0:O.get(e))).join("&")]),(0,d.useEffect)(()=>{let t=Object.keys(e).reduce((t,n)=>(t[n]=t=>{var l,a;let{state:o,query:i}=t,{defaultValue:u}=e[n],s=v[n];E.current={...E.current,[n]:null!=(l=null!=o?o:u)?l:null},M.current[s]=i,(0,r.Yz)("[nuq+ `%s`] Cross-hook key sync %s: %O (default: %O). Resolved: %O",m,s,o,u,E.current),a=E.current,(0,r.Yz)("[nuq+ `%s`] updateInternalState %O",m,a),E.current=a,j(a)},t),{});for(let n of Object.keys(e)){let e=v[n];(0,r.Yz)("[nuq+ `%s`] Subscribing to sync for `%s`",m,e),g.on(e,t[n])}return()=>{for(let n of Object.keys(e)){let e=v[n];(0,r.Yz)("[nuq+ `%s`] Unsubscribing to sync for `%s`",m,e),g.off(e,t[n])}}},[m,v]);let C=(0,d.useCallback)(function(d){var y,b,x,O,M,T,j,C,S,A,R,q,z,L,I;let P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},D=Object.fromEntries(Object.keys(e).map(e=>[e,null])),U="function"==typeof d?null!=(y=d(k(E.current,N)))?y:D:null!=d?d:D;for(let[s,c]of((0,r.Yz)("[nuq+ `%s`] setState: %O",m,U),Object.entries(U))){let d=e[s],y=v[s];if(!d)continue;(null!=(x=null!=(b=P.clearOnDefault)?b:d.clearOnDefault)?x:f)&&null!==c&&void 0!==d.defaultValue&&(null!=(O=d.eq)?O:(e,t)=>e===t)(c,d.defaultValue)&&(c=null);let m=function(e,t,n,l){let s=null===t?null:n(t);return(0,r.Yz)("[nuqs queue] Enqueueing %s=%s %O",e,s,l),o.set(e,s),"push"===l.history&&(i.history="push"),l.scroll&&(i.scroll=!0),!1===l.shallow&&(i.shallow=!1),l.startTransition&&u.add(l.startTransition),i.throttleMs=Math.max(l.throttleMs??a,Number.isFinite(i.throttleMs)?i.throttleMs:0),s}(y,c,null!=(M=d.serialize)?M:String,{history:null!=(j=null!=(T=P.history)?T:d.history)?j:t,shallow:null!=(S=null!=(C=P.shallow)?C:d.shallow)?S:l,scroll:null!=(R=null!=(A=P.scroll)?A:d.scroll)?R:n,throttleMs:null!=(z=null!=(q=P.throttleMs)?q:d.throttleMs)?z:p,startTransition:null!=(I=null!=(L=P.startTransition)?L:d.startTransition)?I:h});g.emit(y,{state:c,query:m})}return function({getSearchParamsSnapshot:e=function(){return new URLSearchParams(location.search)},updateUrl:t,rateLimitFactor:n=1}){return null===c&&(c=new Promise((l,d)=>{if(!Number.isFinite(i.throttleMs)){(0,r.Yz)("[nuqs queue] Skipping flush due to throttleMs=Infinity"),l(e()),setTimeout(()=>{c=null},0);return}function p(){s=performance.now();let[n,p]=function({updateUrl:e,getSearchParamsSnapshot:t}){let n=t();if(0===o.size)return[n,null];let l=Array.from(o.entries()),s={...i},c=Array.from(u);for(let[e,t]of(o.clear(),u.clear(),i.history="replace",i.scroll=!1,i.shallow=!0,i.throttleMs=a,(0,r.Yz)("[nuqs queue] Flushing queue %O with options %O",l,s),l))null===t?n.delete(e):n.set(e,t);try{return function(e,t){let n=r=>{if(r===e.length)return t();let l=e[r];if(!l)throw Error("Invalid transition function");l(()=>n(r+1))};n(0)}(c,()=>{e(n,{history:s.history,scroll:s.scroll,shallow:s.shallow})}),[n,null]}catch(e){return console.error((0,r.z3)(429),l.map(([e])=>e).join(),e),[n,e]}}({updateUrl:t,getSearchParamsSnapshot:e});null===p?l(n):d(n),c=null}setTimeout(function(){let e=performance.now()-s,t=i.throttleMs,l=n*Math.max(0,Math.min(t,t-e));(0,r.Yz)("[nuqs queue] Scheduling flush in %f ms. Throttled at %f ms",l,t),0===l?p():setTimeout(p,l)},0)})),c}(w)},[m,t,l,n,p,h,v,w.updateUrl,w.getSearchParamsSnapshot,w.rateLimitFactor,N]);return[(0,d.useMemo)(()=>k(T,N),[T,N]),C]}function x(e,t,n,r,a){let i=!1,u=Object.keys(e).reduce((u,s)=>{var c,d,p,f;let h=null!=(c=null==t?void 0:t[s])?c:s,{parse:y}=e[s],m=o.get(h),v=void 0===m?null!=(d=null==n?void 0:n.get(h))?d:null:m;if(r&&a&&(null!=(p=r[h])?p:null)===v)return u[s]=null!=(f=a[s])?f:null,u;i=!0;let g=null===v?null:l(y,v,s);return u[s]=null!=g?g:null,r&&(r[h]=v),u},{});if(!i){let t=Object.keys(e),n=Object.keys(null!=a?a:{});i=t.length!==n.length||t.some(e=>!n.includes(e))}return{state:u,hasChanged:i}}function k(e,t){return Object.fromEntries(Object.keys(e).map(n=>{var r,l;return[n,null!=(l=null!=(r=e[n])?r:t[n])?l:null]}))}},80090:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(98516).A)("shuffle",[["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22",key:"1ailkh"}],["path",{d:"M2 6h1.972a4 4 0 0 1 3.6 2.2",key:"km57vx"}],["path",{d:"M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45",key:"os18l9"}]])},80645:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(98516).A)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])}}]);