PageSourceSearch

https://us.marytechnology.com/assets/v7-DT5vFunu.js

js marytechnology.com collected 2026-10-03 20:43:42 UTC 3,202 bytes, 3 lines download raw bytes

1import{c as e,n as t}from"./jsx-runtime-eu958idE.js";import{G as n,z as r}from"./chunk-4N6VE7H7-B4AdW6Es.js";import{a as i,c as a,l as o,n as s,r as c,s as l,t as u,u as d}from"./compare-Br3z3FUS-CFvZNSfU.js";function f(e,t,n){return r=>{if(!(t.length===0||t.some(t=>!u(r.getAll(t),e.getAll(t)))))return a("[nuqs `%s`] no change, returning previous",t.join(`,`),r),r;let i=p(e,t,n);return a(`[nuqs \`%s\`] subbed search params change
2  from %O
3  to   %O`,t.join(`,`),r,i),i}}function p(e,t,n){if(t.length===0)return e;let r=n?new URLSearchParams(e):e;for(let n of e.keys())t.includes(n)||r.delete(n);return r}var m=0;function h(e=1){m=e}function g(e=_){m=Math.max(0,m-1),!(m>0)&&e()}function _(){a(`[nuqs] Aborting queues`),c.abortAll(),i.abort().forEach(e=>c.queuedQuerySync.emit(e))}var v=`__nuqs__`;function y(e){if(e instanceof URL)return e.searchParams;if(e.startsWith(`?`))return new URLSearchParams(e);try{return new URL(e,location.origin).searchParams}catch{return new URLSearchParams(e)}}function b(e){return typeof history>`u`?!1:history.nuqs?.version&&history.nuqs.version!==`2.8.9`?(console.error(o(409),history.nuqs.version,`2.8.9`,e),!1):!history.nuqs?.adapters?.includes(e)}function x(e){history.nuqs=history.nuqs??{version:`2.8.9`,adapters:[]},history.nuqs.adapters.push(e)}function S(e,t){if(!b(t))return;let n=typeof location==`object`?location.search:``;e.on(`update`,e=>{let t=e.toString();n=t.length?`?`+t:``}),window.addEventListener(`popstate`,()=>{n=location.search,_()}),a(`[nuqs %s] Patching history (%s adapter)`,`2.8.9`,t);function r(t){g();try{if(new URL(t,location.origin).search===n)return}catch{}try{e.emit(`update`,y(t))}catch(e){console.error(e)}}let i=history.pushState,o=history.replaceState;history.pushState=function(e,t,n){i.call(history,e,``,n),n&&t!==`__nuqs__`&&r(n)},history.replaceState=function(e,t,n){o.call(history,e,``,n),n&&t!==`__nuqs__`&&r(n)},x(t)}var C=e(t(),1);function w({adapter:e,useNavigate:t,useSearchParams:n}){let r=s();function i(n){let i=t();return{searchParams:o(n),updateUrl:(0,C.useCallback)((t,n)=>{(0,C.startTransition)(()=>{r.emit(`update`,t)});let o=new URL(location.href);o.search=d(t),a(`[nuqs ${e}] Updating url: %s`,o);let s=n.history===`push`?history.pushState:history.replaceState;h(n.shallow?1:2),s.call(history,history.state,v,o),n.shallow===!1&&i({hash:o.hash,search:o.search},{replace:!0,preventScrollReset:!0,state:history.state?.usr}),n.scroll&&window.scrollTo(0,0)},[i]),autoResetQueueOnUpdate:!1}}function o(e=[]){let[t]=n(typeof location>`u`?new URLSearchParams:new URLSearchParams(location.search)),[i,a]=(0,C.useState)(()=>typeof location>`u`?p(t,e,!0):p(new URLSearchParams(location.search),e,!1));return(0,C.useEffect)(()=>{function t(){(0,C.startTransition)(()=>{a(f(new URLSearchParams(location.search),e,!1))})}function n(t){(0,C.startTransition)(()=>{a(f(t,e,!0))})}return r.on(`update`,n),window.addEventListener(`popstate`,t),()=>{r.off(`update`,n),window.removeEventListener(`popstate`,t)}},[e.join(`&`)]),i}return S(r,e),{NuqsAdapter:l(i),useOptimisticSearchParams:o}}var T=w({adapter:`react-router-v7`,useNavigate:r,useSearchParams:n}),E=T.NuqsAdapter,D=T.useOptimisticSearchParams;export{D as n,E as t};

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.