import{a as e,r as t,t as n}from"./useStore-CusP06SD.js";function r(e){return e[e.length-1]}function i(e){return typeof e==`function`}function a(e,t){return i(e)?e(t):e}var o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,c=()=>Object.create(null),l=(e,t)=>u(e,t,c);function u(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;let i=t,a=m(e)&&m(i);if(!a&&!(f(e)&&f(i)))return i;let s=a?e:d(e);if(!s)return i;let c=a?i:d(i);if(!c)return i;let l=s.length,p=c.length,h=a?Array(p):n(),g=0;for(let t=0;t<p;t++){let s=a?t:c[t],d=e[s],f=i[s];if(d===f){h[s]=d,(a?t<l:o.call(e,s))&&g++;continue}if(d===null||f===null||typeof d!=`object`||typeof f!=`object`){h[s]=f;continue}let p=u(d,f,n,r+1);h[s]=p,p===d&&g++}return l===p&&g===l?e:h}function d(e){let t=Object.getOwnPropertyNames(e);for(let n of t)if(!s.call(e,n))return!1;let n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;let r=t;for(let t of n){if(!s.call(e,t))return!1;r.push(t)}return r}function f(e){if(!p(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!p(n)||!n.hasOwnProperty(`isPrototypeOf`))}function p(e){return Object.prototype.toString.call(e)===`[object Object]`}function m(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function h(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!h(e[r],t[r],n))return!1;return!0}if(f(e)&&f(t)){let r=n?.ignoreUndefined??!0;if(n?.partial){for(let i in t)if((!r||t[i]!==void 0)&&!h(e[i],t[i],n))return!1;return!0}let i=0;if(!r)i=Object.keys(e).length;else for(let t in e)e[t]!==void 0&&i++;let a=0;for(let o in t)if((!r||t[o]!==void 0)&&(a++,a>i||!h(e[o],t[o],n)))return!1;return i===a}return!1}function g(e){let t,n,r=new Promise((e,r)=>{t=e,n=r});return r.status=`pending`,r.resolve=n=>{r.status=`resolved`,r.value=n,t(n),e?.(n)},r.reject=e=>{r.status=`rejected`,n(e)},r}function _(e){return typeof e?.message==`string`?e.message.startsWith(`Failed to fetch dynamically imported module`)||e.message.startsWith(`error loading dynamically imported module`)||e.message.startsWith(`Importing a module script failed`):!1}function v(e){return!!(e&&typeof e==`object`&&typeof e.then==`function`)}function y(e){return e.replace(/[\x00-\x1f\x7f]/g,``)}function b(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return y(t)}var x=[`http:`,`https:`,`mailto:`,`tel:`];function S(e,t){if(!e)return!1;try{let n=new URL(e);return!t.has(n.protocol)}catch{return!1}}var C={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},w=/[&><\u2028\u2029]/g;function T(e){return e.replace(w,e=>C[e])}function E(e){if(!e||!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith(`//`))return{path:e,handledProtocolRelativeURL:!1};let t=/%25|%5C/gi,n=0,r=``,i;for(;(i=t.exec(e))!==null;)r+=b(e.slice(n,i.index))+i[0],n=t.lastIndex;r+=b(n?e.slice(n):e);let a=!1;return r.startsWith(`//`)&&(a=!0,r=`/`+r.replace(/^\/+/,``)),{path:r,handledProtocolRelativeURL:a}}function D(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}var O=e(t(),1),k=O.createContext(null),A=!0;function j(e,t){if(!A){if(e)return;var n=`Warning: `+t;typeof console<`u`&&console.warn(n);try{throw Error(n)}catch{}}}function M(e){let t=O.useContext(k);return j(!((e?.warn??!0)&&!t),`useRouter must be used inside a <RouterProvider> component!`),t}function N(e){let t=M({warn:e?.router===void 0}),r=e?.router||t,i=(0,O.useRef)(void 0);return n(r.__store,t=>{if(e?.select){if(e.structuralSharing??r.options.defaultStructuralSharing){let n=u(i.current,e.select(t));return i.current=n,n}return e.select(t)}return t})}export{u as _,x as a,h as c,a as d,S as f,l as g,r as h,k as i,D as l,v as m,M as n,g as o,_ as p,j as r,E as s,N as t,T as u};