@feverus/react-custom-cursor
Advanced tools
Comparing version
@@ -1,2 +0,2 @@ | ||
import ze, { useRef as Y, useState as W, useEffect as Ne, createContext as dr, useContext as vr } from "react"; | ||
import ze, { useRef as Y, useState as W, useEffect as Se, createContext as dr, useContext as vr } from "react"; | ||
var le = { exports: {} }, U = {}; | ||
@@ -18,11 +18,11 @@ /** | ||
var E = ze, p = Symbol.for("react.element"), y = Symbol.for("react.fragment"), h = Object.prototype.hasOwnProperty, I = E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, b = { key: !0, ref: !0, __self: !0, __source: !0 }; | ||
function T(g, f, x) { | ||
var d, _ = {}, j = null, A = null; | ||
x !== void 0 && (j = "" + x), f.key !== void 0 && (j = "" + f.key), f.ref !== void 0 && (A = f.ref); | ||
function T(g, f, _) { | ||
var d, x = {}, j = null, A = null; | ||
_ !== void 0 && (j = "" + _), f.key !== void 0 && (j = "" + f.key), f.ref !== void 0 && (A = f.ref); | ||
for (d in f) | ||
h.call(f, d) && !b.hasOwnProperty(d) && (_[d] = f[d]); | ||
h.call(f, d) && !b.hasOwnProperty(d) && (x[d] = f[d]); | ||
if (g && g.defaultProps) | ||
for (d in f = g.defaultProps, f) | ||
_[d] === void 0 && (_[d] = f[d]); | ||
return { $$typeof: p, type: g, key: j, ref: A, props: _, _owner: I.current }; | ||
x[d] === void 0 && (x[d] = f[d]); | ||
return { $$typeof: p, type: g, key: j, ref: A, props: x, _owner: I.current }; | ||
} | ||
@@ -44,4 +44,4 @@ return U.Fragment = y, U.jsx = T, U.jsxs = T, U; | ||
return ke || (ke = 1, process.env.NODE_ENV !== "production" && function() { | ||
var E = ze, p = Symbol.for("react.element"), y = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), T = Symbol.for("react.provider"), g = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), Q = Symbol.iterator, V = "@@iterator"; | ||
function N(e) { | ||
var E = ze, p = Symbol.for("react.element"), y = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), T = Symbol.for("react.provider"), g = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), Q = Symbol.iterator, V = "@@iterator"; | ||
function S(e) { | ||
if (e === null || typeof e != "object") | ||
@@ -52,3 +52,3 @@ return null; | ||
} | ||
var C = E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
var R = E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
function v(e) { | ||
@@ -58,23 +58,23 @@ { | ||
t[n - 1] = arguments[n]; | ||
B("error", e, t); | ||
q("error", e, t); | ||
} | ||
} | ||
function B(e, r, t) { | ||
function q(e, r, t) { | ||
{ | ||
var n = C.ReactDebugCurrentFrame, u = n.getStackAddendum(); | ||
u !== "" && (r += "%s", t = t.concat([u])); | ||
var s = t.map(function(i) { | ||
var n = R.ReactDebugCurrentFrame, s = n.getStackAddendum(); | ||
s !== "" && (r += "%s", t = t.concat([s])); | ||
var u = t.map(function(i) { | ||
return String(i); | ||
}); | ||
s.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, s); | ||
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u); | ||
} | ||
} | ||
var J = !1, a = !1, P = !1, ee = !1, re = !1, G; | ||
G = Symbol.for("react.module.reference"); | ||
var B = !1, a = !1, P = !1, ee = !1, re = !1, J; | ||
J = Symbol.for("react.module.reference"); | ||
function Fe(e) { | ||
return !!(typeof e == "string" || typeof e == "function" || e === h || e === b || re || e === I || e === x || e === d || ee || e === A || J || a || P || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === _ || e.$$typeof === T || e.$$typeof === g || e.$$typeof === f || // This needs to include all possible module reference object | ||
return !!(typeof e == "string" || typeof e == "function" || e === h || e === b || re || e === I || e === _ || e === d || ee || e === A || B || a || P || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === x || e.$$typeof === T || e.$$typeof === g || e.$$typeof === f || // This needs to include all possible module reference object | ||
// types supported by any Flight configuration anywhere since | ||
// we don't know which Flight build this will end up being used | ||
// with. | ||
e.$$typeof === G || e.getModuleId !== void 0)); | ||
e.$$typeof === J || e.getModuleId !== void 0)); | ||
} | ||
@@ -85,4 +85,4 @@ function Ye(e, r, t) { | ||
return n; | ||
var u = r.displayName || r.name || ""; | ||
return u !== "" ? t + "(" + u + ")" : t; | ||
var s = r.displayName || r.name || ""; | ||
return s !== "" ? t + "(" + s + ")" : t; | ||
} | ||
@@ -92,3 +92,3 @@ function fe(e) { | ||
} | ||
function w(e) { | ||
function C(e) { | ||
if (e == null) | ||
@@ -109,3 +109,3 @@ return null; | ||
return "StrictMode"; | ||
case x: | ||
case _: | ||
return "Suspense"; | ||
@@ -125,9 +125,9 @@ case d: | ||
return Ye(e, e.render, "ForwardRef"); | ||
case _: | ||
case x: | ||
var n = e.displayName || null; | ||
return n !== null ? n : w(e.type) || "Memo"; | ||
return n !== null ? n : C(e.type) || "Memo"; | ||
case j: { | ||
var u = e, s = u._payload, i = u._init; | ||
var s = e, u = s._payload, i = s._init; | ||
try { | ||
return w(i(s)); | ||
return C(i(u)); | ||
} catch { | ||
@@ -140,3 +140,3 @@ return null; | ||
} | ||
var S = Object.assign, z = 0, de, ve, ge, pe, ye, me, Ee; | ||
var N = Object.assign, z = 0, de, ve, ge, pe, ye, me, Ee; | ||
function he() { | ||
@@ -177,21 +177,21 @@ } | ||
Object.defineProperties(console, { | ||
log: S({}, e, { | ||
log: N({}, e, { | ||
value: de | ||
}), | ||
info: S({}, e, { | ||
info: N({}, e, { | ||
value: ve | ||
}), | ||
warn: S({}, e, { | ||
warn: N({}, e, { | ||
value: ge | ||
}), | ||
error: S({}, e, { | ||
error: N({}, e, { | ||
value: pe | ||
}), | ||
group: S({}, e, { | ||
group: N({}, e, { | ||
value: ye | ||
}), | ||
groupCollapsed: S({}, e, { | ||
groupCollapsed: N({}, e, { | ||
value: me | ||
}), | ||
groupEnd: S({}, e, { | ||
groupEnd: N({}, e, { | ||
value: Ee | ||
@@ -204,4 +204,4 @@ }) | ||
} | ||
var te = C.ReactCurrentDispatcher, ne; | ||
function q(e, r, t) { | ||
var te = R.ReactCurrentDispatcher, ne; | ||
function G(e, r, t) { | ||
{ | ||
@@ -211,4 +211,4 @@ if (ne === void 0) | ||
throw Error(); | ||
} catch (u) { | ||
var n = u.stack.trim().match(/\n( *(at )?)/); | ||
} catch (s) { | ||
var n = s.stack.trim().match(/\n( *(at )?)/); | ||
ne = n && n[1] || ""; | ||
@@ -235,6 +235,6 @@ } | ||
ae = !0; | ||
var u = Error.prepareStackTrace; | ||
var s = Error.prepareStackTrace; | ||
Error.prepareStackTrace = void 0; | ||
var s; | ||
s = te.current, te.current = null, We(); | ||
var u; | ||
u = te.current, te.current = null, We(); | ||
try { | ||
@@ -252,4 +252,4 @@ if (r) { | ||
Reflect.construct(i, []); | ||
} catch (R) { | ||
n = R; | ||
} catch (w) { | ||
n = w; | ||
} | ||
@@ -260,4 +260,4 @@ Reflect.construct(e, [], i); | ||
i.call(); | ||
} catch (R) { | ||
n = R; | ||
} catch (w) { | ||
n = w; | ||
} | ||
@@ -269,10 +269,10 @@ e.call(i.prototype); | ||
throw Error(); | ||
} catch (R) { | ||
n = R; | ||
} catch (w) { | ||
n = w; | ||
} | ||
e(); | ||
} | ||
} catch (R) { | ||
if (R && n && typeof R.stack == "string") { | ||
for (var o = R.stack.split(` | ||
} catch (w) { | ||
if (w && n && typeof w.stack == "string") { | ||
for (var o = w.stack.split(` | ||
`), m = n.stack.split(` | ||
@@ -295,6 +295,6 @@ `), c = o.length - 1, l = m.length - 1; c >= 1 && l >= 0 && o[c] !== m[l]; ) | ||
} finally { | ||
ae = !1, te.current = s, Ue(), Error.prepareStackTrace = u; | ||
ae = !1, te.current = u, Ue(), Error.prepareStackTrace = s; | ||
} | ||
var L = e ? e.displayName || e.name : "", Se = L ? q(L) : ""; | ||
return typeof e == "function" && Z.set(e, Se), Se; | ||
var L = e ? e.displayName || e.name : "", Ne = L ? G(L) : ""; | ||
return typeof e == "function" && Z.set(e, Ne), Ne; | ||
} | ||
@@ -314,8 +314,8 @@ function Qe(e, r, t) { | ||
if (typeof e == "string") | ||
return q(e); | ||
return G(e); | ||
switch (e) { | ||
case x: | ||
return q("Suspense"); | ||
case _: | ||
return G("Suspense"); | ||
case d: | ||
return q("SuspenseList"); | ||
return G("SuspenseList"); | ||
} | ||
@@ -326,8 +326,8 @@ if (typeof e == "object") | ||
return Qe(e.render); | ||
case _: | ||
case x: | ||
return H(e.type, r, t); | ||
case j: { | ||
var n = e, u = n._payload, s = n._init; | ||
var n = e, s = n._payload, u = n._init; | ||
try { | ||
return H(s(u), r, t); | ||
return H(u(s), r, t); | ||
} catch { | ||
@@ -339,15 +339,15 @@ } | ||
} | ||
var X = Object.prototype.hasOwnProperty, Te = {}, xe = C.ReactDebugCurrentFrame; | ||
var X = Object.prototype.hasOwnProperty, Te = {}, _e = R.ReactDebugCurrentFrame; | ||
function K(e) { | ||
if (e) { | ||
var r = e._owner, t = H(e.type, e._source, r ? r.type : null); | ||
xe.setExtraStackFrame(t); | ||
_e.setExtraStackFrame(t); | ||
} else | ||
xe.setExtraStackFrame(null); | ||
_e.setExtraStackFrame(null); | ||
} | ||
function Be(e, r, t, n, u) { | ||
function qe(e, r, t, n, s) { | ||
{ | ||
var s = Function.call.bind(X); | ||
var u = Function.call.bind(X); | ||
for (var i in e) | ||
if (s(e, i)) { | ||
if (u(e, i)) { | ||
var o = void 0; | ||
@@ -363,11 +363,11 @@ try { | ||
} | ||
o && !(o instanceof Error) && (K(u), v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof o), K(null)), o instanceof Error && !(o.message in Te) && (Te[o.message] = !0, K(u), v("Failed %s type: %s", t, o.message), K(null)); | ||
o && !(o instanceof Error) && (K(s), v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof o), K(null)), o instanceof Error && !(o.message in Te) && (Te[o.message] = !0, K(s), v("Failed %s type: %s", t, o.message), K(null)); | ||
} | ||
} | ||
} | ||
var Je = Array.isArray; | ||
var Be = Array.isArray; | ||
function oe(e) { | ||
return Je(e); | ||
return Be(e); | ||
} | ||
function Ge(e) { | ||
function Je(e) { | ||
{ | ||
@@ -378,5 +378,5 @@ var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object"; | ||
} | ||
function qe(e) { | ||
function Ge(e) { | ||
try { | ||
return _e(e), !1; | ||
return xe(e), !1; | ||
} catch { | ||
@@ -386,10 +386,10 @@ return !0; | ||
} | ||
function _e(e) { | ||
function xe(e) { | ||
return "" + e; | ||
} | ||
function je(e) { | ||
if (qe(e)) | ||
return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ge(e)), _e(e); | ||
if (Ge(e)) | ||
return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), xe(e); | ||
} | ||
var F = C.ReactCurrentOwner, Ze = { | ||
var F = R.ReactCurrentOwner, Ze = { | ||
key: !0, | ||
@@ -419,4 +419,4 @@ ref: !0, | ||
if (typeof e.ref == "string" && F.current && r && F.current.stateNode !== r) { | ||
var t = w(F.current.type); | ||
ie[t] || (v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', w(F.current.type), e.ref), ie[t] = !0); | ||
var t = C(F.current.type); | ||
ie[t] || (v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', C(F.current.type), e.ref), ie[t] = !0); | ||
} | ||
@@ -446,3 +446,3 @@ } | ||
} | ||
var tr = function(e, r, t, n, u, s, i) { | ||
var tr = function(e, r, t, n, s, u, i) { | ||
var o = { | ||
@@ -457,3 +457,3 @@ // This tag allows us to uniquely identify this as a React Element | ||
// Record the component responsible for creating this element. | ||
_owner: s | ||
_owner: u | ||
}; | ||
@@ -474,15 +474,15 @@ return o._store = {}, Object.defineProperty(o._store, "validated", { | ||
writable: !1, | ||
value: u | ||
value: s | ||
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o; | ||
}; | ||
function nr(e, r, t, n, u) { | ||
function nr(e, r, t, n, s) { | ||
{ | ||
var s, i = {}, o = null, m = null; | ||
t !== void 0 && (je(t), o = "" + t), Xe(r) && (je(r.key), o = "" + r.key), He(r) && (m = r.ref, Ke(r, u)); | ||
for (s in r) | ||
X.call(r, s) && !Ze.hasOwnProperty(s) && (i[s] = r[s]); | ||
var u, i = {}, o = null, m = null; | ||
t !== void 0 && (je(t), o = "" + t), Xe(r) && (je(r.key), o = "" + r.key), He(r) && (m = r.ref, Ke(r, s)); | ||
for (u in r) | ||
X.call(r, u) && !Ze.hasOwnProperty(u) && (i[u] = r[u]); | ||
if (e && e.defaultProps) { | ||
var c = e.defaultProps; | ||
for (s in c) | ||
i[s] === void 0 && (i[s] = c[s]); | ||
for (u in c) | ||
i[u] === void 0 && (i[u] = c[u]); | ||
} | ||
@@ -493,6 +493,6 @@ if (o || m) { | ||
} | ||
return tr(e, o, m, u, n, F.current, i); | ||
return tr(e, o, m, s, n, F.current, i); | ||
} | ||
} | ||
var ue = C.ReactCurrentOwner, Ie = C.ReactDebugCurrentFrame; | ||
var se = R.ReactCurrentOwner, Ie = R.ReactDebugCurrentFrame; | ||
function k(e) { | ||
@@ -505,11 +505,11 @@ if (e) { | ||
} | ||
var se; | ||
se = !1; | ||
var ue; | ||
ue = !1; | ||
function ce(e) { | ||
return typeof e == "object" && e !== null && e.$$typeof === p; | ||
} | ||
function we() { | ||
function Ce() { | ||
{ | ||
if (ue.current) { | ||
var e = w(ue.current.type); | ||
if (se.current) { | ||
var e = C(se.current.type); | ||
if (e) | ||
@@ -534,6 +534,6 @@ return ` | ||
} | ||
var Re = {}; | ||
var we = {}; | ||
function or(e) { | ||
{ | ||
var r = we(); | ||
var r = Ce(); | ||
if (!r) { | ||
@@ -548,3 +548,3 @@ var t = typeof e == "string" ? e : e.displayName || e.name; | ||
} | ||
function Ce(e, r) { | ||
function Re(e, r) { | ||
{ | ||
@@ -555,7 +555,7 @@ if (!e._store || e._store.validated || e.key != null) | ||
var t = or(r); | ||
if (Re[t]) | ||
if (we[t]) | ||
return; | ||
Re[t] = !0; | ||
we[t] = !0; | ||
var n = ""; | ||
e && e._owner && e._owner !== ue.current && (n = " It was passed a child from " + w(e._owner.type) + "."), k(e), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), k(null); | ||
e && e._owner && e._owner !== se.current && (n = " It was passed a child from " + C(e._owner.type) + "."), k(e), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), k(null); | ||
} | ||
@@ -570,3 +570,3 @@ } | ||
var n = e[t]; | ||
ce(n) && Ce(n, r); | ||
ce(n) && Re(n, r); | ||
} | ||
@@ -576,6 +576,6 @@ else if (ce(e)) | ||
else if (e) { | ||
var u = N(e); | ||
if (typeof u == "function" && u !== e.entries) | ||
for (var s = u.call(e), i; !(i = s.next()).done; ) | ||
ce(i.value) && Ce(i.value, r); | ||
var s = S(e); | ||
if (typeof s == "function" && s !== e.entries) | ||
for (var u = s.call(e), i; !(i = u.next()).done; ) | ||
ce(i.value) && Re(i.value, r); | ||
} | ||
@@ -594,3 +594,3 @@ } | ||
// Inner props are checked in the reconciler. | ||
r.$$typeof === _)) | ||
r.$$typeof === x)) | ||
t = r.propTypes; | ||
@@ -600,8 +600,8 @@ else | ||
if (t) { | ||
var n = w(r); | ||
Be(t, e.props, "prop", n, e); | ||
} else if (r.PropTypes !== void 0 && !se) { | ||
se = !0; | ||
var u = w(r); | ||
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown"); | ||
var n = C(r); | ||
qe(t, e.props, "prop", n, e); | ||
} else if (r.PropTypes !== void 0 && !ue) { | ||
ue = !0; | ||
var s = C(r); | ||
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown"); | ||
} | ||
@@ -611,3 +611,3 @@ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); | ||
} | ||
function ur(e) { | ||
function sr(e) { | ||
{ | ||
@@ -624,3 +624,3 @@ for (var r = Object.keys(e.props), t = 0; t < r.length; t++) { | ||
} | ||
function Ae(e, r, t, n, u, s) { | ||
function Ae(e, r, t, n, s, u) { | ||
{ | ||
@@ -631,8 +631,8 @@ var i = Fe(e); | ||
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); | ||
var m = ar(u); | ||
m ? o += m : o += we(); | ||
var m = ar(s); | ||
m ? o += m : o += Ce(); | ||
var c; | ||
e === null ? c = "null" : oe(e) ? c = "array" : e !== void 0 && e.$$typeof === p ? (c = "<" + (w(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : c = typeof e, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", c, o); | ||
e === null ? c = "null" : oe(e) ? c = "array" : e !== void 0 && e.$$typeof === p ? (c = "<" + (C(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : c = typeof e, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", c, o); | ||
} | ||
var l = nr(e, r, t, u, s); | ||
var l = nr(e, r, t, s, u); | ||
if (l == null) | ||
@@ -653,6 +653,6 @@ return l; | ||
} | ||
return e === h ? ur(l) : ir(l), l; | ||
return e === h ? sr(l) : ir(l), l; | ||
} | ||
} | ||
function sr(e, r, t) { | ||
function ur(e, r, t) { | ||
return Ae(e, r, t, !0); | ||
@@ -663,3 +663,3 @@ } | ||
} | ||
var lr = cr, fr = sr; | ||
var lr = cr, fr = ur; | ||
$.Fragment = h, $.jsx = lr, $.jsxs = fr; | ||
@@ -671,4 +671,4 @@ }()), $; | ||
const yr = (E, p) => { | ||
const y = Y(null), [h, I] = W(!1), [b, T] = W(!1), [g, f] = W([0, 0]), [x, d] = W(0), [_, j] = W(!1), A = Y([0, 0]), Q = Y([0, 0]), V = Y([0, 0]), N = Y(void 0), C = () => { | ||
d(x + (Math.random() - 0.5) * 6); | ||
const y = Y(null), [h, I] = W(!1), [b, T] = W(!1), [g, f] = W([0, 0]), [_, d] = W(0), [x, j] = W(!1), A = Y([0, 0]), Q = Y([0, 0]), V = Y([0, 0]), S = Y(void 0), R = () => { | ||
d(_ + (Math.random() - 0.5) * 6); | ||
}, v = () => { | ||
@@ -678,15 +678,15 @@ var P; | ||
a && (A.current = [a == null ? void 0 : a.x, a == null ? void 0 : a.y], Q.current = [a == null ? void 0 : a.width, a == null ? void 0 : a.height], V.current = [(a == null ? void 0 : a.x) + (a == null ? void 0 : a.width) / 2, (a == null ? void 0 : a.y) + (a == null ? void 0 : a.height) / 2]), E && E(!0), I(!0), T(!1); | ||
}, B = () => { | ||
clearTimeout(N.current), E && E(!1), I(!1); | ||
}, J = (a) => { | ||
const [P, ee] = A.current, [re, G] = V.current; | ||
p === !0 && d(Math.atan2(a.clientY - G, a.clientX - re)), p === "onMove" && d(x + 0.01), f([a.clientX - P, a.clientY - ee]); | ||
}, q = () => { | ||
clearTimeout(S.current), E && E(!1), I(!1); | ||
}, B = (a) => { | ||
const [P, ee] = A.current, [re, J] = V.current; | ||
p === !0 && d(Math.atan2(a.clientY - J, a.clientX - re)), p === "onMove" && d(_ + 0.01), f([a.clientX - P, a.clientY - ee]); | ||
}; | ||
return Ne(() => { | ||
clearTimeout(N.current), h && p === "auto" && (N.current = setTimeout(C, 1e3)); | ||
return Se(() => { | ||
clearTimeout(S.current), h && p === "auto" && (S.current = setTimeout(R, 1e3)); | ||
const a = y.current; | ||
return a && (a.addEventListener("mouseenter", v), a.addEventListener("mouseleave", B), a.addEventListener("mousemove", J)), () => { | ||
clearTimeout(N.current), a && (a.removeEventListener("mouseenter", v), a.removeEventListener("mouseleave", B), a.removeEventListener("mousemove", J)); | ||
return a && (a.addEventListener("mouseenter", v), a.addEventListener("mouseleave", q), a.addEventListener("mousemove", B)), () => { | ||
clearTimeout(S.current), a && (a.removeEventListener("mouseenter", v), a.removeEventListener("mouseleave", q), a.removeEventListener("mousemove", B)); | ||
}; | ||
}, [x, h]), Ne(() => (setTimeout(b ? () => j(!0) : () => j(!1), 200), () => { | ||
}, [_, h]), Se(() => (setTimeout(b ? () => j(!0) : () => j(!1), 200), () => { | ||
j(!1); | ||
@@ -698,7 +698,7 @@ }), [b]), [ | ||
g, | ||
_, | ||
x, | ||
_, | ||
(a) => T(a) | ||
]; | ||
}, mr = "_active_1p2fx_1", Er = "_cursorWrapper_1p2fx_10", hr = "_cursor_1p2fx_10", Mr = "_show_1p2fx_1", Tr = "_forCenter_1p2fx_28", xr = "_shell_1p2fx_34", _r = "_unmounting_1p2fx_38", jr = "_smooth_1p2fx_42", O = { | ||
}, mr = "_active_sc2qf_1", Er = "_cursorWrapper_sc2qf_10", hr = "_cursor_sc2qf_10", Mr = "_show_sc2qf_1", Tr = "_forCenter_sc2qf_33", _r = "_shell_sc2qf_42", xr = "_unmounting_sc2qf_46", jr = "_smooth_sc2qf_50", O = { | ||
active: mr, | ||
@@ -709,4 +709,4 @@ cursorWrapper: Er, | ||
forCenter: Tr, | ||
shell: xr, | ||
unmounting: _r, | ||
shell: _r, | ||
unmounting: xr, | ||
smooth: jr | ||
@@ -728,3 +728,3 @@ }, br = ({ cursor: E, x: p, y, angle: h, scale: I, unmounting: b, rotating: T }) => { | ||
}, Le = dr(null); | ||
function Cr({ | ||
function Rr({ | ||
children: E, | ||
@@ -739,5 +739,5 @@ cursor: p = "Кастомный курсор", | ||
g, | ||
[f, x], | ||
[f, _], | ||
d, | ||
_, | ||
x, | ||
j | ||
@@ -752,3 +752,3 @@ ] = yr(I, y); | ||
/* @__PURE__ */ M.jsx(Le.Provider, { value: j, children: E }), | ||
T && !_ && /* @__PURE__ */ M.jsx( | ||
T && !x && /* @__PURE__ */ M.jsx( | ||
br, | ||
@@ -758,3 +758,3 @@ { | ||
x: f, | ||
y: x, | ||
y: _, | ||
angle: y ? d : 0, | ||
@@ -774,4 +774,4 @@ scale: h, | ||
style: { | ||
width: "64px", | ||
height: "64px", | ||
width: "100px", | ||
height: "100px", | ||
backgroundImage: `url(${Dr})`, | ||
@@ -781,3 +781,3 @@ backgroundSize: "contain" | ||
} | ||
), Ir = "_text_1qg3d_1", wr = { | ||
), Ir = "_text_1qg3d_1", Cr = { | ||
text: Ir | ||
@@ -797,13 +797,11 @@ }, Ar = ({ | ||
children: [ | ||
/* @__PURE__ */ M.jsx("defs", { children: /* @__PURE__ */ M.jsx("path", { d: `M243.2, 382.4c-74.8, \r | ||
0-135.5-60.7-135.5-135.5s60.7-135.5,135.5-135.5s135.5, 60.7, 135.5,\r | ||
135.5 S318, 382.4, 243.2, 382.4z`, id: "textcircle" }) }), | ||
/* @__PURE__ */ M.jsx("defs", { children: /* @__PURE__ */ M.jsx("path", { d: "M250 440C145.114 440 60 354.886 60 250C60 145.114 145.114 60 250 60C354.886 60 440 145.114 440 250C440 354.886 345.351 440 240.465 440H250Z", id: "textcircle" }) }), | ||
/* @__PURE__ */ M.jsx( | ||
"circle", | ||
{ | ||
cx: "250", | ||
cy: "250", | ||
r: "155", | ||
cx: "249.5", | ||
cy: "249.5", | ||
r: "200", | ||
fill: "transparent", | ||
strokeWidth: "100", | ||
strokeWidth: "80", | ||
stroke: y, | ||
@@ -813,6 +811,6 @@ id: "background" | ||
), | ||
/* @__PURE__ */ M.jsx("text", { dy: "0", className: wr.text, fill: p, children: /* @__PURE__ */ M.jsx("textPath", { xlinkHref: "#textcircle", children: E }) }) | ||
/* @__PURE__ */ M.jsx("text", { dy: "0", className: Cr.text, fill: p, children: /* @__PURE__ */ M.jsx("textPath", { xlinkHref: "#textcircle", children: E }) }) | ||
] | ||
} | ||
), Sr = /* @__PURE__ */ M.jsx( | ||
), Nr = /* @__PURE__ */ M.jsx( | ||
"div", | ||
@@ -831,5 +829,5 @@ { | ||
Ar as CircleWithText, | ||
Cr as CustomCursor, | ||
Sr as LaserDot, | ||
Rr as CustomCursor, | ||
Nr as LaserDot, | ||
Or as RotatingArrow | ||
}; |
@@ -1,2 +0,2 @@ | ||
(function(C,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],l):(C=typeof globalThis<"u"?globalThis:C||self,l(C.ReactCustomCursors={},C.React))})(this,function(C,l){"use strict";var ee={exports:{}},W={};/** | ||
(function(R,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],l):(R=typeof globalThis<"u"?globalThis:R||self,l(R.ReactCustomCursors={},R.React))})(this,function(R,l){"use strict";var ee={exports:{}},W={};/** | ||
* @license React | ||
@@ -9,3 +9,3 @@ * react-jsx-runtime.production.min.js | ||
* LICENSE file in the root directory of this source tree. | ||
*/var fe;function Le(){if(fe)return W;fe=1;var M=l,y=Symbol.for("react.element"),h=Symbol.for("react.fragment"),T=Object.prototype.hasOwnProperty,R=M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,D={key:!0,ref:!0,__self:!0,__source:!0};function x(p,d,_){var v,j={},b=null,N=null;_!==void 0&&(b=""+_),d.key!==void 0&&(b=""+d.key),d.ref!==void 0&&(N=d.ref);for(v in d)T.call(d,v)&&!D.hasOwnProperty(v)&&(j[v]=d[v]);if(p&&p.defaultProps)for(v in d=p.defaultProps,d)j[v]===void 0&&(j[v]=d[v]);return{$$typeof:y,type:p,key:b,ref:N,props:j,_owner:R.current}}return W.Fragment=h,W.jsx=x,W.jsxs=x,W}var Y={};/** | ||
*/var fe;function Le(){if(fe)return W;fe=1;var M=l,y=Symbol.for("react.element"),h=Symbol.for("react.fragment"),T=Object.prototype.hasOwnProperty,C=M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,D={key:!0,ref:!0,__self:!0,__source:!0};function _(p,d,x){var v,j={},b=null,N=null;x!==void 0&&(b=""+x),d.key!==void 0&&(b=""+d.key),d.ref!==void 0&&(N=d.ref);for(v in d)T.call(d,v)&&!D.hasOwnProperty(v)&&(j[v]=d[v]);if(p&&p.defaultProps)for(v in d=p.defaultProps,d)j[v]===void 0&&(j[v]=d[v]);return{$$typeof:y,type:p,key:b,ref:N,props:j,_owner:C.current}}return W.Fragment=h,W.jsx=_,W.jsxs=_,W}var Y={};/** | ||
* @license React | ||
@@ -18,7 +18,7 @@ * react-jsx-runtime.development.js | ||
* LICENSE file in the root directory of this source tree. | ||
*/var de;function ze(){return de||(de=1,process.env.NODE_ENV!=="production"&&function(){var M=l,y=Symbol.for("react.element"),h=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),p=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),N=Symbol.for("react.offscreen"),V=Symbol.iterator,B="@@iterator";function k(e){if(e===null||typeof e!="object")return null;var r=V&&e[V]||e[B];return typeof r=="function"?r:null}var S=M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];J("error",e,t)}}function J(e,r,t){{var n=S.ReactDebugCurrentFrame,s=n.getStackAddendum();s!==""&&(r+="%s",t=t.concat([s]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var G=!1,a=!1,L=!1,re=!1,te=!1,Z;Z=Symbol.for("react.module.reference");function Ge(e){return!!(typeof e=="string"||typeof e=="function"||e===T||e===D||te||e===R||e===_||e===v||re||e===N||G||a||L||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===j||e.$$typeof===x||e.$$typeof===p||e.$$typeof===d||e.$$typeof===Z||e.getModuleId!==void 0))}function Ze(e,r,t){var n=e.displayName;if(n)return n;var s=r.displayName||r.name||"";return s!==""?t+"("+s+")":t}function ge(e){return e.displayName||"Context"}function w(e){if(e==null)return null;if(typeof e.tag=="number"&&g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case h:return"Portal";case D:return"Profiler";case R:return"StrictMode";case _:return"Suspense";case v:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p:var r=e;return ge(r)+".Consumer";case x:var t=e;return ge(t._context)+".Provider";case d:return Ze(e,e.render,"ForwardRef");case j:var n=e.displayName||null;return n!==null?n:w(e.type)||"Memo";case b:{var s=e,u=s._payload,i=s._init;try{return w(i(u))}catch{return null}}}return null}var P=Object.assign,U=0,pe,ye,he,me,Ee,Me,Te;function xe(){}xe.__reactDisabledLog=!0;function He(){{if(U===0){pe=console.log,ye=console.info,he=console.warn,me=console.error,Ee=console.group,Me=console.groupCollapsed,Te=console.groupEnd;var e={configurable:!0,enumerable:!0,value:xe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}U++}}function Xe(){{if(U--,U===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:P({},e,{value:pe}),info:P({},e,{value:ye}),warn:P({},e,{value:he}),error:P({},e,{value:me}),group:P({},e,{value:Ee}),groupCollapsed:P({},e,{value:Me}),groupEnd:P({},e,{value:Te})})}U<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ne=S.ReactCurrentDispatcher,ae;function H(e,r,t){{if(ae===void 0)try{throw Error()}catch(s){var n=s.stack.trim().match(/\n( *(at )?)/);ae=n&&n[1]||""}return` | ||
`+ae+e}}var oe=!1,X;{var Ke=typeof WeakMap=="function"?WeakMap:Map;X=new Ke}function _e(e,r){if(!e||oe)return"";{var t=X.get(e);if(t!==void 0)return t}var n;oe=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=ne.current,ne.current=null,He();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(O){n=O}Reflect.construct(e,[],i)}else{try{i.call()}catch(O){n=O}e.call(i.prototype)}}else{try{throw Error()}catch(O){n=O}e()}}catch(O){if(O&&n&&typeof O.stack=="string"){for(var o=O.stack.split(` | ||
*/var de;function ze(){return de||(de=1,process.env.NODE_ENV!=="production"&&function(){var M=l,y=Symbol.for("react.element"),h=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),p=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),N=Symbol.for("react.offscreen"),V=Symbol.iterator,B="@@iterator";function k(e){if(e===null||typeof e!="object")return null;var r=V&&e[V]||e[B];return typeof r=="function"?r:null}var S=M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];J("error",e,t)}}function J(e,r,t){{var n=S.ReactDebugCurrentFrame,s=n.getStackAddendum();s!==""&&(r+="%s",t=t.concat([s]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var G=!1,a=!1,L=!1,re=!1,te=!1,Z;Z=Symbol.for("react.module.reference");function Ge(e){return!!(typeof e=="string"||typeof e=="function"||e===T||e===D||te||e===C||e===x||e===v||re||e===N||G||a||L||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===j||e.$$typeof===_||e.$$typeof===p||e.$$typeof===d||e.$$typeof===Z||e.getModuleId!==void 0))}function Ze(e,r,t){var n=e.displayName;if(n)return n;var s=r.displayName||r.name||"";return s!==""?t+"("+s+")":t}function ge(e){return e.displayName||"Context"}function w(e){if(e==null)return null;if(typeof e.tag=="number"&&g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case h:return"Portal";case D:return"Profiler";case C:return"StrictMode";case x:return"Suspense";case v:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p:var r=e;return ge(r)+".Consumer";case _:var t=e;return ge(t._context)+".Provider";case d:return Ze(e,e.render,"ForwardRef");case j:var n=e.displayName||null;return n!==null?n:w(e.type)||"Memo";case b:{var s=e,u=s._payload,i=s._init;try{return w(i(u))}catch{return null}}}return null}var P=Object.assign,U=0,pe,ye,he,me,Ee,Me,Te;function _e(){}_e.__reactDisabledLog=!0;function He(){{if(U===0){pe=console.log,ye=console.info,he=console.warn,me=console.error,Ee=console.group,Me=console.groupCollapsed,Te=console.groupEnd;var e={configurable:!0,enumerable:!0,value:_e,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}U++}}function Xe(){{if(U--,U===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:P({},e,{value:pe}),info:P({},e,{value:ye}),warn:P({},e,{value:he}),error:P({},e,{value:me}),group:P({},e,{value:Ee}),groupCollapsed:P({},e,{value:Me}),groupEnd:P({},e,{value:Te})})}U<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ne=S.ReactCurrentDispatcher,ae;function H(e,r,t){{if(ae===void 0)try{throw Error()}catch(s){var n=s.stack.trim().match(/\n( *(at )?)/);ae=n&&n[1]||""}return` | ||
`+ae+e}}var oe=!1,X;{var Ke=typeof WeakMap=="function"?WeakMap:Map;X=new Ke}function xe(e,r){if(!e||oe)return"";{var t=X.get(e);if(t!==void 0)return t}var n;oe=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=ne.current,ne.current=null,He();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(O){n=O}Reflect.construct(e,[],i)}else{try{i.call()}catch(O){n=O}e.call(i.prototype)}}else{try{throw Error()}catch(O){n=O}e()}}catch(O){if(O&&n&&typeof O.stack=="string"){for(var o=O.stack.split(` | ||
`),m=n.stack.split(` | ||
`),c=o.length-1,f=m.length-1;c>=1&&f>=0&&o[c]!==m[f];)f--;for(;c>=1&&f>=0;c--,f--)if(o[c]!==m[f]){if(c!==1||f!==1)do if(c--,f--,f<0||o[c]!==m[f]){var I=` | ||
`+o[c].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),typeof e=="function"&&X.set(e,I),I}while(c>=1&&f>=0);break}}}finally{oe=!1,ne.current=u,Xe(),Error.prepareStackTrace=s}var F=e?e.displayName||e.name:"",ke=F?H(F):"";return typeof e=="function"&&X.set(e,ke),ke}function $e(e,r,t){return _e(e,!1)}function qe(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function K(e,r,t){if(e==null)return"";if(typeof e=="function")return _e(e,qe(e));if(typeof e=="string")return H(e);switch(e){case _:return H("Suspense");case v:return H("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return $e(e.render);case j:return K(e.type,r,t);case b:{var n=e,s=n._payload,u=n._init;try{return K(u(s),r,t)}catch{}}}return""}var $=Object.prototype.hasOwnProperty,je={},be=S.ReactDebugCurrentFrame;function q(e){if(e){var r=e._owner,t=K(e.type,e._source,r?r.type:null);be.setExtraStackFrame(t)}else be.setExtraStackFrame(null)}function er(e,r,t,n,s){{var u=Function.call.bind($);for(var i in e)if(u(e,i)){var o=void 0;try{if(typeof e[i]!="function"){var m=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}o=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(c){o=c}o&&!(o instanceof Error)&&(q(s),g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof o),q(null)),o instanceof Error&&!(o.message in je)&&(je[o.message]=!0,q(s),g("Failed %s type: %s",t,o.message),q(null))}}}var rr=Array.isArray;function ie(e){return rr(e)}function tr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function nr(e){try{return De(e),!1}catch{return!0}}function De(e){return""+e}function Ie(e){if(nr(e))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",tr(e)),De(e)}var Q=S.ReactCurrentOwner,ar={key:!0,ref:!0,__self:!0,__source:!0},Re,Ce,se;se={};function or(e){if($.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function ir(e){if($.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function sr(e,r){if(typeof e.ref=="string"&&Q.current&&r&&Q.current.stateNode!==r){var t=w(Q.current.type);se[t]||(g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',w(Q.current.type),e.ref),se[t]=!0)}}function ur(e,r){{var t=function(){Re||(Re=!0,g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function cr(e,r){{var t=function(){Ce||(Ce=!0,g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var lr=function(e,r,t,n,s,u,i){var o={$$typeof:y,type:e,key:r,ref:t,props:i,_owner:u};return o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(o,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(o,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o};function fr(e,r,t,n,s){{var u,i={},o=null,m=null;t!==void 0&&(Ie(t),o=""+t),ir(r)&&(Ie(r.key),o=""+r.key),or(r)&&(m=r.ref,sr(r,s));for(u in r)$.call(r,u)&&!ar.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var c=e.defaultProps;for(u in c)i[u]===void 0&&(i[u]=c[u])}if(o||m){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;o&&ur(i,f),m&&cr(i,f)}return lr(e,o,m,s,n,Q.current,i)}}var ue=S.ReactCurrentOwner,we=S.ReactDebugCurrentFrame;function z(e){if(e){var r=e._owner,t=K(e.type,e._source,r?r.type:null);we.setExtraStackFrame(t)}else we.setExtraStackFrame(null)}var ce;ce=!1;function le(e){return typeof e=="object"&&e!==null&&e.$$typeof===y}function Oe(){{if(ue.current){var e=w(ue.current.type);if(e)return` | ||
`+o[c].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),typeof e=="function"&&X.set(e,I),I}while(c>=1&&f>=0);break}}}finally{oe=!1,ne.current=u,Xe(),Error.prepareStackTrace=s}var F=e?e.displayName||e.name:"",ke=F?H(F):"";return typeof e=="function"&&X.set(e,ke),ke}function qe(e,r,t){return xe(e,!1)}function $e(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function K(e,r,t){if(e==null)return"";if(typeof e=="function")return xe(e,$e(e));if(typeof e=="string")return H(e);switch(e){case x:return H("Suspense");case v:return H("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return qe(e.render);case j:return K(e.type,r,t);case b:{var n=e,s=n._payload,u=n._init;try{return K(u(s),r,t)}catch{}}}return""}var q=Object.prototype.hasOwnProperty,je={},be=S.ReactDebugCurrentFrame;function $(e){if(e){var r=e._owner,t=K(e.type,e._source,r?r.type:null);be.setExtraStackFrame(t)}else be.setExtraStackFrame(null)}function er(e,r,t,n,s){{var u=Function.call.bind(q);for(var i in e)if(u(e,i)){var o=void 0;try{if(typeof e[i]!="function"){var m=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}o=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(c){o=c}o&&!(o instanceof Error)&&($(s),g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof o),$(null)),o instanceof Error&&!(o.message in je)&&(je[o.message]=!0,$(s),g("Failed %s type: %s",t,o.message),$(null))}}}var rr=Array.isArray;function ie(e){return rr(e)}function tr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function nr(e){try{return De(e),!1}catch{return!0}}function De(e){return""+e}function Ie(e){if(nr(e))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",tr(e)),De(e)}var Q=S.ReactCurrentOwner,ar={key:!0,ref:!0,__self:!0,__source:!0},Ce,Re,se;se={};function or(e){if(q.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function ir(e){if(q.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function sr(e,r){if(typeof e.ref=="string"&&Q.current&&r&&Q.current.stateNode!==r){var t=w(Q.current.type);se[t]||(g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',w(Q.current.type),e.ref),se[t]=!0)}}function ur(e,r){{var t=function(){Ce||(Ce=!0,g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function cr(e,r){{var t=function(){Re||(Re=!0,g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var lr=function(e,r,t,n,s,u,i){var o={$$typeof:y,type:e,key:r,ref:t,props:i,_owner:u};return o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(o,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(o,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o};function fr(e,r,t,n,s){{var u,i={},o=null,m=null;t!==void 0&&(Ie(t),o=""+t),ir(r)&&(Ie(r.key),o=""+r.key),or(r)&&(m=r.ref,sr(r,s));for(u in r)q.call(r,u)&&!ar.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var c=e.defaultProps;for(u in c)i[u]===void 0&&(i[u]=c[u])}if(o||m){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;o&&ur(i,f),m&&cr(i,f)}return lr(e,o,m,s,n,Q.current,i)}}var ue=S.ReactCurrentOwner,we=S.ReactDebugCurrentFrame;function z(e){if(e){var r=e._owner,t=K(e.type,e._source,r?r.type:null);we.setExtraStackFrame(t)}else we.setExtraStackFrame(null)}var ce;ce=!1;function le(e){return typeof e=="object"&&e!==null&&e.$$typeof===y}function Oe(){{if(ue.current){var e=w(ue.current.type);if(e)return` | ||
@@ -29,4 +29,2 @@ Check the render method of \``+e+"`."}return""}}function dr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return` | ||
Check the top-level render call using <`+t+">.")}return r}}function Se(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=vr(r);if(Ae[t])return;Ae[t]=!0;var n="";e&&e._owner&&e._owner!==ue.current&&(n=" It was passed a child from "+w(e._owner.type)+"."),z(e),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),z(null)}}function Ne(e,r){{if(typeof e!="object")return;if(ie(e))for(var t=0;t<e.length;t++){var n=e[t];le(n)&&Se(n,r)}else if(le(e))e._store&&(e._store.validated=!0);else if(e){var s=k(e);if(typeof s=="function"&&s!==e.entries)for(var u=s.call(e),i;!(i=u.next()).done;)le(i.value)&&Se(i.value,r)}}}function gr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===d||r.$$typeof===j))t=r.propTypes;else return;if(t){var n=w(r);er(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!ce){ce=!0;var s=w(r);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",s||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function pr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){z(e),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),z(null);break}}e.ref!==null&&(z(e),g("Invalid attribute `ref` supplied to `React.Fragment`."),z(null))}}function Pe(e,r,t,n,s,u){{var i=Ge(e);if(!i){var o="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var m=dr(s);m?o+=m:o+=Oe();var c;e===null?c="null":ie(e)?c="array":e!==void 0&&e.$$typeof===y?(c="<"+(w(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):c=typeof e,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",c,o)}var f=fr(e,r,t,s,u);if(f==null)return f;if(i){var I=r.children;if(I!==void 0)if(n)if(ie(I)){for(var F=0;F<I.length;F++)Ne(I[F],e);Object.freeze&&Object.freeze(I)}else g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ne(I,e)}return e===T?pr(f):gr(f),f}}function yr(e,r,t){return Pe(e,r,t,!0)}function hr(e,r,t){return Pe(e,r,t,!1)}var mr=hr,Er=yr;Y.Fragment=T,Y.jsx=mr,Y.jsxs=Er}()),Y}process.env.NODE_ENV==="production"?ee.exports=Le():ee.exports=ze();var E=ee.exports;const Fe=(M,y)=>{const h=l.useRef(null),[T,R]=l.useState(!1),[D,x]=l.useState(!1),[p,d]=l.useState([0,0]),[_,v]=l.useState(0),[j,b]=l.useState(!1),N=l.useRef([0,0]),V=l.useRef([0,0]),B=l.useRef([0,0]),k=l.useRef(void 0),S=()=>{v(_+(Math.random()-.5)*6)},g=()=>{var L;const a=(L=h.current)==null?void 0:L.getBoundingClientRect();a&&(N.current=[a==null?void 0:a.x,a==null?void 0:a.y],V.current=[a==null?void 0:a.width,a==null?void 0:a.height],B.current=[(a==null?void 0:a.x)+(a==null?void 0:a.width)/2,(a==null?void 0:a.y)+(a==null?void 0:a.height)/2]),M&&M(!0),R(!0),x(!1)},J=()=>{clearTimeout(k.current),M&&M(!1),R(!1)},G=a=>{const[L,re]=N.current,[te,Z]=B.current;y===!0&&v(Math.atan2(a.clientY-Z,a.clientX-te)),y==="onMove"&&v(_+.01),d([a.clientX-L,a.clientY-re])};return l.useEffect(()=>{clearTimeout(k.current),T&&y==="auto"&&(k.current=setTimeout(S,1e3));const a=h.current;return a&&(a.addEventListener("mouseenter",g),a.addEventListener("mouseleave",J),a.addEventListener("mousemove",G)),()=>{clearTimeout(k.current),a&&(a.removeEventListener("mouseenter",g),a.removeEventListener("mouseleave",J),a.removeEventListener("mousemove",G))}},[_,T]),l.useEffect(()=>(setTimeout(D?()=>b(!0):()=>b(!1),200),()=>{b(!1)}),[D]),[h,T,D,p,_,j,a=>x(a)]},A={active:"_active_1p2fx_1",cursorWrapper:"_cursorWrapper_1p2fx_10",cursor:"_cursor_1p2fx_10",show:"_show_1p2fx_1",forCenter:"_forCenter_1p2fx_28",shell:"_shell_1p2fx_34",unmounting:"_unmounting_1p2fx_38",smooth:"_smooth_1p2fx_42"},We=({cursor:M,x:y,y:h,angle:T,scale:R,unmounting:D,rotating:x})=>{let p=A.cursorWrapper;return D&&(p=p+" "+A.unmounting),x==="auto"&&(p=p+" "+A.smooth),E.jsx("div",{className:p,style:{left:y,top:h,transform:`rotate(${T}rad) scale(${R})`},children:E.jsx("div",{className:A.cursor,children:E.jsx("div",{className:A.forCenter,children:M})})})},ve=l.createContext(null);function Ye({children:M,cursor:y="Кастомный курсор",rotating:h=!1,scale:T=1}){const R=l.useContext(ve),[D,x,p,[d,_],v,j,b]=Fe(R,h);return E.jsxs("div",{ref:D,className:x?A.shell+" "+A.active:A.shell,children:[E.jsx(ve.Provider,{value:b,children:M}),x&&!j&&E.jsx(We,{cursor:y,x:d,y:_,angle:h?v:0,scale:T,unmounting:p,rotating:h})]})}const Ue="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjI1MTIgMTEuNDY4MUwxNC44MjI2IDkuMjExMThDMTQuOTg0MyA5LjA3NDE0IDE1LjIwMDggOC45OTgzMSAxNS40MjU1IDkuMDAwMDNDMTUuNjUwMiA5LjAwMTc0IDE1Ljg2NTIgOS4wODA4NiAxNi4wMjQyIDkuMjIwMzVDMTYuMTgzMSA5LjM1OTgzIDE2LjI3MzIgOS41NDg1MiAxNi4yNzUyIDkuNzQ1NzdDMTYuMjc3MSA5Ljk0MzAzIDE2LjE5MDcgMTAuMTMzMSAxNi4wMzQ2IDEwLjI3NDlMMTQuOTI2MyAxMS4yNDc3TDIzLjE0MjkgMTEuMjQ3N0MyMy4zNzAyIDExLjI0NzcgMjMuNTg4MiAxMS4zMjY5IDIzLjc0ODkgMTEuNDY4QzIzLjkwOTcgMTEuNjA5MSAyNCAxMS44MDA1IDI0IDEyQzI0IDEyLjE5OTUgMjMuOTA5NyAxMi4zOTA5IDIzLjc0ODkgMTIuNTMyQzIzLjU4ODIgMTIuNjczIDIzLjM3MDIgMTIuNzUyMyAyMy4xNDI5IDEyLjc1MjNMMTQuOTI2MyAxMi43NTIzTDE2LjAzNDYgMTMuNzI1QzE2LjE5MDcgMTMuODY2OSAxNi4yNzcxIDE0LjA1NyAxNi4yNzUyIDE0LjI1NDJDMTYuMjczMiAxNC40NTE1IDE2LjE4MzEgMTQuNjQwMiAxNi4wMjQyIDE0Ljc3OTdDMTUuODY1MiAxNC45MTkxIDE1LjY1MDIgMTQuOTk4MyAxNS40MjU1IDE1QzE1LjIwMDggMTUuMDAxNyAxNC45ODQzIDE0LjkyNTkgMTQuODIyNiAxNC43ODg4TDEyLjI1MTIgMTIuNTMxOUMxMi4wOTA1IDEyLjM5MDggMTIuMDAwMiAxMi4xOTk1IDEyLjAwMDIgMTJDMTIuMDAwMiAxMS44MDA1IDEyLjA5MDUgMTEuNjA5MiAxMi4yNTEyIDExLjQ2ODFaIiBmaWxsPSJibGFjayIvPgo8L3N2Zz4K",Qe=E.jsx("div",{style:{width:"64px",height:"64px",backgroundImage:`url(${Ue})`,backgroundSize:"contain"}}),Ve={text:"_text_1qg3d_1"},Be=({text:M="...",color:y="black",donutColor:h="#eeeeee90"})=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 500 500",width:"100",height:"100",children:[E.jsx("defs",{children:E.jsx("path",{d:`M243.2, 382.4c-74.8, \r | ||
0-135.5-60.7-135.5-135.5s60.7-135.5,135.5-135.5s135.5, 60.7, 135.5,\r | ||
135.5 S318, 382.4, 243.2, 382.4z`,id:"textcircle"})}),E.jsx("circle",{cx:"250",cy:"250",r:"155",fill:"transparent",strokeWidth:"100",stroke:h,id:"background"}),E.jsx("text",{dy:"0",className:Ve.text,fill:y,children:E.jsx("textPath",{xlinkHref:"#textcircle",children:M})})]}),Je=E.jsx("div",{style:{borderRadius:"50%",width:"10px",height:"10px",backgroundColor:"red",opacity:"50%"}});C.CircleWithText=Be,C.CustomCursor=Ye,C.LaserDot=Je,C.RotatingArrow=Qe,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})}); | ||
Check the top-level render call using <`+t+">.")}return r}}function Se(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=vr(r);if(Ae[t])return;Ae[t]=!0;var n="";e&&e._owner&&e._owner!==ue.current&&(n=" It was passed a child from "+w(e._owner.type)+"."),z(e),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),z(null)}}function Ne(e,r){{if(typeof e!="object")return;if(ie(e))for(var t=0;t<e.length;t++){var n=e[t];le(n)&&Se(n,r)}else if(le(e))e._store&&(e._store.validated=!0);else if(e){var s=k(e);if(typeof s=="function"&&s!==e.entries)for(var u=s.call(e),i;!(i=u.next()).done;)le(i.value)&&Se(i.value,r)}}}function gr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===d||r.$$typeof===j))t=r.propTypes;else return;if(t){var n=w(r);er(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!ce){ce=!0;var s=w(r);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",s||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function pr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){z(e),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),z(null);break}}e.ref!==null&&(z(e),g("Invalid attribute `ref` supplied to `React.Fragment`."),z(null))}}function Pe(e,r,t,n,s,u){{var i=Ge(e);if(!i){var o="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var m=dr(s);m?o+=m:o+=Oe();var c;e===null?c="null":ie(e)?c="array":e!==void 0&&e.$$typeof===y?(c="<"+(w(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):c=typeof e,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",c,o)}var f=fr(e,r,t,s,u);if(f==null)return f;if(i){var I=r.children;if(I!==void 0)if(n)if(ie(I)){for(var F=0;F<I.length;F++)Ne(I[F],e);Object.freeze&&Object.freeze(I)}else g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ne(I,e)}return e===T?pr(f):gr(f),f}}function yr(e,r,t){return Pe(e,r,t,!0)}function hr(e,r,t){return Pe(e,r,t,!1)}var mr=hr,Er=yr;Y.Fragment=T,Y.jsx=mr,Y.jsxs=Er}()),Y}process.env.NODE_ENV==="production"?ee.exports=Le():ee.exports=ze();var E=ee.exports;const Fe=(M,y)=>{const h=l.useRef(null),[T,C]=l.useState(!1),[D,_]=l.useState(!1),[p,d]=l.useState([0,0]),[x,v]=l.useState(0),[j,b]=l.useState(!1),N=l.useRef([0,0]),V=l.useRef([0,0]),B=l.useRef([0,0]),k=l.useRef(void 0),S=()=>{v(x+(Math.random()-.5)*6)},g=()=>{var L;const a=(L=h.current)==null?void 0:L.getBoundingClientRect();a&&(N.current=[a==null?void 0:a.x,a==null?void 0:a.y],V.current=[a==null?void 0:a.width,a==null?void 0:a.height],B.current=[(a==null?void 0:a.x)+(a==null?void 0:a.width)/2,(a==null?void 0:a.y)+(a==null?void 0:a.height)/2]),M&&M(!0),C(!0),_(!1)},J=()=>{clearTimeout(k.current),M&&M(!1),C(!1)},G=a=>{const[L,re]=N.current,[te,Z]=B.current;y===!0&&v(Math.atan2(a.clientY-Z,a.clientX-te)),y==="onMove"&&v(x+.01),d([a.clientX-L,a.clientY-re])};return l.useEffect(()=>{clearTimeout(k.current),T&&y==="auto"&&(k.current=setTimeout(S,1e3));const a=h.current;return a&&(a.addEventListener("mouseenter",g),a.addEventListener("mouseleave",J),a.addEventListener("mousemove",G)),()=>{clearTimeout(k.current),a&&(a.removeEventListener("mouseenter",g),a.removeEventListener("mouseleave",J),a.removeEventListener("mousemove",G))}},[x,T]),l.useEffect(()=>(setTimeout(D?()=>b(!0):()=>b(!1),200),()=>{b(!1)}),[D]),[h,T,D,p,x,j,a=>_(a)]},A={active:"_active_sc2qf_1",cursorWrapper:"_cursorWrapper_sc2qf_10",cursor:"_cursor_sc2qf_10",show:"_show_sc2qf_1",forCenter:"_forCenter_sc2qf_33",shell:"_shell_sc2qf_42",unmounting:"_unmounting_sc2qf_46",smooth:"_smooth_sc2qf_50"},We=({cursor:M,x:y,y:h,angle:T,scale:C,unmounting:D,rotating:_})=>{let p=A.cursorWrapper;return D&&(p=p+" "+A.unmounting),_==="auto"&&(p=p+" "+A.smooth),E.jsx("div",{className:p,style:{left:y,top:h,transform:`rotate(${T}rad) scale(${C})`},children:E.jsx("div",{className:A.cursor,children:E.jsx("div",{className:A.forCenter,children:M})})})},ve=l.createContext(null);function Ye({children:M,cursor:y="Кастомный курсор",rotating:h=!1,scale:T=1}){const C=l.useContext(ve),[D,_,p,[d,x],v,j,b]=Fe(C,h);return E.jsxs("div",{ref:D,className:_?A.shell+" "+A.active:A.shell,children:[E.jsx(ve.Provider,{value:b,children:M}),_&&!j&&E.jsx(We,{cursor:y,x:d,y:x,angle:h?v:0,scale:T,unmounting:p,rotating:h})]})}const Ue="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyLjI1MTIgMTEuNDY4MUwxNC44MjI2IDkuMjExMThDMTQuOTg0MyA5LjA3NDE0IDE1LjIwMDggOC45OTgzMSAxNS40MjU1IDkuMDAwMDNDMTUuNjUwMiA5LjAwMTc0IDE1Ljg2NTIgOS4wODA4NiAxNi4wMjQyIDkuMjIwMzVDMTYuMTgzMSA5LjM1OTgzIDE2LjI3MzIgOS41NDg1MiAxNi4yNzUyIDkuNzQ1NzdDMTYuMjc3MSA5Ljk0MzAzIDE2LjE5MDcgMTAuMTMzMSAxNi4wMzQ2IDEwLjI3NDlMMTQuOTI2MyAxMS4yNDc3TDIzLjE0MjkgMTEuMjQ3N0MyMy4zNzAyIDExLjI0NzcgMjMuNTg4MiAxMS4zMjY5IDIzLjc0ODkgMTEuNDY4QzIzLjkwOTcgMTEuNjA5MSAyNCAxMS44MDA1IDI0IDEyQzI0IDEyLjE5OTUgMjMuOTA5NyAxMi4zOTA5IDIzLjc0ODkgMTIuNTMyQzIzLjU4ODIgMTIuNjczIDIzLjM3MDIgMTIuNzUyMyAyMy4xNDI5IDEyLjc1MjNMMTQuOTI2MyAxMi43NTIzTDE2LjAzNDYgMTMuNzI1QzE2LjE5MDcgMTMuODY2OSAxNi4yNzcxIDE0LjA1NyAxNi4yNzUyIDE0LjI1NDJDMTYuMjczMiAxNC40NTE1IDE2LjE4MzEgMTQuNjQwMiAxNi4wMjQyIDE0Ljc3OTdDMTUuODY1MiAxNC45MTkxIDE1LjY1MDIgMTQuOTk4MyAxNS40MjU1IDE1QzE1LjIwMDggMTUuMDAxNyAxNC45ODQzIDE0LjkyNTkgMTQuODIyNiAxNC43ODg4TDEyLjI1MTIgMTIuNTMxOUMxMi4wOTA1IDEyLjM5MDggMTIuMDAwMiAxMi4xOTk1IDEyLjAwMDIgMTJDMTIuMDAwMiAxMS44MDA1IDEyLjA5MDUgMTEuNjA5MiAxMi4yNTEyIDExLjQ2ODFaIiBmaWxsPSJibGFjayIvPgo8L3N2Zz4K",Qe=E.jsx("div",{style:{width:"100px",height:"100px",backgroundImage:`url(${Ue})`,backgroundSize:"contain"}}),Ve={text:"_text_1qg3d_1"},Be=({text:M="...",color:y="black",donutColor:h="#eeeeee90"})=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 500 500",width:"100",height:"100",children:[E.jsx("defs",{children:E.jsx("path",{d:"M250 440C145.114 440 60 354.886 60 250C60 145.114 145.114 60 250 60C354.886 60 440 145.114 440 250C440 354.886 345.351 440 240.465 440H250Z",id:"textcircle"})}),E.jsx("circle",{cx:"249.5",cy:"249.5",r:"200",fill:"transparent",strokeWidth:"80",stroke:h,id:"background"}),E.jsx("text",{dy:"0",className:Ve.text,fill:y,children:E.jsx("textPath",{xlinkHref:"#textcircle",children:M})})]}),Je=E.jsx("div",{style:{borderRadius:"50%",width:"10px",height:"10px",backgroundColor:"red",opacity:"50%"}});R.CircleWithText=Be,R.CustomCursor=Ye,R.LaserDot=Je,R.RotatingArrow=Qe,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})}); |
{ | ||
"name": "@feverus/react-custom-cursor", | ||
"private": false, | ||
"version": "0.1.0", | ||
"version": "0.1.2", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
52331
0.3%929
-0.32%