import{s as a}from"./chunk-LvLJmgfZ.js";import{t as c}from"./react-Bj1aDYRI.js";var o=Object.prototype.hasOwnProperty;function u(t,r,n){for(n of t.keys())if(i(n,r))return n}function i(t,r){var n,e,f;if(t===r)return!0;if(t&&r&&(n=t.constructor)===r.constructor){if(n===Date)return t.getTime()===r.getTime();if(n===RegExp)return t.toString()===r.toString();if(n===Array){if((e=t.length)===r.length)for(;e--&&i(t[e],r[e]););return e===-1}if(n===Set){if(t.size!==r.size)return!1;for(e of t)if(f=e,f&&typeof f=="object"&&(f=u(r,f),!f)||!r.has(f))return!1;return!0}if(n===Map){if(t.size!==r.size)return!1;for(e of t)if(f=e[0],f&&typeof f=="object"&&(f=u(r,f),!f)||!i(e[1],r.get(f)))return!1;return!0}if(n===ArrayBuffer)t=new Uint8Array(t),r=new Uint8Array(r);else if(n===DataView){if((e=t.byteLength)===r.byteLength)for(;e--&&t.getInt8(e)===r.getInt8(e););return e===-1}if(ArrayBuffer.isView(t)){if((e=t.byteLength)===r.byteLength)for(;e--&&t[e]===r[e];);return e===-1}if(!n||typeof t=="object"){for(n in e=0,t)if(o.call(t,n)&&++e&&!o.call(r,n)||!(n in r)||!i(t[n],r[n]))return!1;return Object.keys(r).length===e}}return t!==t&&r!==r}var s=a(c(),1);function y(t){let r=s.useRef(t);return i(t,r.current)||(r.current=t),r.current}export{y as t};
