Launch Week Day 5: Introducing Reachability for PHP.Learn More
Socket
Book a DemoSign in
Socket

react-router-prompt

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-router-prompt - npm Package Compare versions

Comparing version
0.5.3
to
0.5.4-beta.1
+9
-9
./dist/react-router-prompt.umd.cjs

@@ -1,2 +0,2 @@

(function(b,w){typeof exports=="object"&&typeof module<"u"?module.exports=w(require("react"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["react","react-router-dom"],w):(b=typeof globalThis<"u"?globalThis:b||self,b.ReactRouterPrompt=w(b.require$$0,b.reactRouterDom))})(this,function(b,w){"use strict";var B={},Pe={get exports(){return B},set exports(c){B=c}},F={};/**
(function(E,R){typeof exports=="object"&&typeof module<"u"?R(exports,require("react"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-router-dom"],R):(E=typeof globalThis<"u"?globalThis:E||self,R(E.ReactRouterPrompt={},E.require$$0,E.reactRouterDom))})(this,function(E,R,Q){"use strict";var B={},je={get exports(){return B},set exports(s){B=s}},F={};/**
* @license React

@@ -9,3 +9,3 @@ * react-jsx-runtime.production.min.js

* LICENSE file in the root directory of this source tree.
*/var Q;function Se(){if(Q)return F;Q=1;var c=b,l=Symbol.for("react.element"),y=Symbol.for("react.fragment"),g=Object.prototype.hasOwnProperty,x=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,O={key:!0,ref:!0,__self:!0,__source:!0};function C(R,d,k){var m,h={},P=null,L=null;k!==void 0&&(P=""+k),d.key!==void 0&&(P=""+d.key),d.ref!==void 0&&(L=d.ref);for(m in d)g.call(d,m)&&!O.hasOwnProperty(m)&&(h[m]=d[m]);if(R&&R.defaultProps)for(m in d=R.defaultProps,d)h[m]===void 0&&(h[m]=d[m]);return{$$typeof:l,type:R,key:P,ref:L,props:h,_owner:x.current}}return F.Fragment=y,F.jsx=C,F.jsxs=C,F}var I={};/**
*/var ee;function ke(){if(ee)return F;ee=1;var s=R,c=Symbol.for("react.element"),b=Symbol.for("react.fragment"),y=Object.prototype.hasOwnProperty,j=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,P={key:!0,ref:!0,__self:!0,__source:!0};function O(_,d,k){var m,h={},S=null,L=null;k!==void 0&&(S=""+k),d.key!==void 0&&(S=""+d.key),d.ref!==void 0&&(L=d.ref);for(m in d)y.call(d,m)&&!P.hasOwnProperty(m)&&(h[m]=d[m]);if(_&&_.defaultProps)for(m in d=_.defaultProps,d)h[m]===void 0&&(h[m]=d[m]);return{$$typeof:c,type:_,key:S,ref:L,props:h,_owner:j.current}}return F.Fragment=b,F.jsx=O,F.jsxs=O,F}var I={};/**
* @license React

@@ -18,12 +18,12 @@ * react-jsx-runtime.development.js

* LICENSE file in the root directory of this source tree.
*/var ee;function we(){return ee||(ee=1,process.env.NODE_ENV!=="production"&&function(){var c=b,l=Symbol.for("react.element"),y=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),R=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),re=Symbol.iterator,Ae="@@iterator";function De(e){if(e===null||typeof e!="object")return null;var r=re&&e[re]||e[Ae];return typeof r=="function"?r:null}var j=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Fe("error",e,t)}}function Fe(e,r,t){{var n=j.ReactDebugCurrentFrame,i=n.getStackAddendum();i!==""&&(r+="%s",t=t.concat([i]));var u=t.map(function(o){return String(o)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var Ie=!1,We=!1,Ye=!1,Le=!1,Ne=!1,te;te=Symbol.for("react.module.reference");function Ve(e){return!!(typeof e=="string"||typeof e=="function"||e===g||e===O||Ne||e===x||e===k||e===m||Le||e===L||Ie||We||Ye||typeof e=="object"&&e!==null&&(e.$$typeof===P||e.$$typeof===h||e.$$typeof===C||e.$$typeof===R||e.$$typeof===d||e.$$typeof===te||e.getModuleId!==void 0))}function Ue(e,r,t){var n=e.displayName;if(n)return n;var i=r.displayName||r.name||"";return i!==""?t+"("+i+")":t}function ne(e){return e.displayName||"Context"}function _(e){if(e==null)return null;if(typeof e.tag=="number"&&v("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 g:return"Fragment";case y:return"Portal";case O:return"Profiler";case x:return"StrictMode";case k:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case R:var r=e;return ne(r)+".Consumer";case C:var t=e;return ne(t._context)+".Provider";case d:return Ue(e,e.render,"ForwardRef");case h:var n=e.displayName||null;return n!==null?n:_(e.type)||"Memo";case P:{var i=e,u=i._payload,o=i._init;try{return _(o(u))}catch{return null}}}return null}var S=Object.assign,W=0,ae,oe,ie,ue,se,fe,ce;function le(){}le.__reactDisabledLog=!0;function Me(){{if(W===0){ae=console.log,oe=console.info,ie=console.warn,ue=console.error,se=console.group,fe=console.groupCollapsed,ce=console.groupEnd;var e={configurable:!0,enumerable:!0,value:le,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}W++}}function $e(){{if(W--,W===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:S({},e,{value:ae}),info:S({},e,{value:oe}),warn:S({},e,{value:ie}),error:S({},e,{value:ue}),group:S({},e,{value:se}),groupCollapsed:S({},e,{value:fe}),groupEnd:S({},e,{value:ce})})}W<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=j.ReactCurrentDispatcher,G;function N(e,r,t){{if(G===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);G=n&&n[1]||""}return`
`+G+e}}var q=!1,V;{var Be=typeof WeakMap=="function"?WeakMap:Map;V=new Be}function de(e,r){if(!e||q)return"";{var t=V.get(e);if(t!==void 0)return t}var n;q=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=J.current,J.current=null,Me();try{if(r){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(T){n=T}Reflect.construct(e,[],o)}else{try{o.call()}catch(T){n=T}e.call(o.prototype)}}else{try{throw Error()}catch(T){n=T}e()}}catch(T){if(T&&n&&typeof T.stack=="string"){for(var a=T.stack.split(`
*/var re;function xe(){return re||(re=1,process.env.NODE_ENV!=="production"&&function(){var s=R,c=Symbol.for("react.element"),b=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),_=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),ae=Symbol.iterator,De="@@iterator";function Fe(e){if(e===null||typeof e!="object")return null;var r=ae&&e[ae]||e[De];return typeof r=="function"?r:null}var x=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Ie("error",e,t)}}function Ie(e,r,t){{var n=x.ReactDebugCurrentFrame,i=n.getStackAddendum();i!==""&&(r+="%s",t=t.concat([i]));var u=t.map(function(o){return String(o)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var We=!1,Ye=!1,Le=!1,Me=!1,Ne=!1,oe;oe=Symbol.for("react.module.reference");function Ve(e){return!!(typeof e=="string"||typeof e=="function"||e===y||e===P||Ne||e===j||e===k||e===m||Me||e===L||We||Ye||Le||typeof e=="object"&&e!==null&&(e.$$typeof===S||e.$$typeof===h||e.$$typeof===O||e.$$typeof===_||e.$$typeof===d||e.$$typeof===oe||e.getModuleId!==void 0))}function Ue(e,r,t){var n=e.displayName;if(n)return n;var i=r.displayName||r.name||"";return i!==""?t+"("+i+")":t}function ie(e){return e.displayName||"Context"}function T(e){if(e==null)return null;if(typeof e.tag=="number"&&v("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 y:return"Fragment";case b:return"Portal";case P:return"Profiler";case j:return"StrictMode";case k:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var r=e;return ie(r)+".Consumer";case O:var t=e;return ie(t._context)+".Provider";case d:return Ue(e,e.render,"ForwardRef");case h:var n=e.displayName||null;return n!==null?n:T(e.type)||"Memo";case S:{var i=e,u=i._payload,o=i._init;try{return T(o(u))}catch{return null}}}return null}var w=Object.assign,W=0,ue,se,fe,le,ce,de,ve;function pe(){}pe.__reactDisabledLog=!0;function $e(){{if(W===0){ue=console.log,se=console.info,fe=console.warn,le=console.error,ce=console.group,de=console.groupCollapsed,ve=console.groupEnd;var e={configurable:!0,enumerable:!0,value:pe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}W++}}function Be(){{if(W--,W===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:w({},e,{value:ue}),info:w({},e,{value:se}),warn:w({},e,{value:fe}),error:w({},e,{value:le}),group:w({},e,{value:ce}),groupCollapsed:w({},e,{value:de}),groupEnd:w({},e,{value:ve})})}W<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=x.ReactCurrentDispatcher,G;function M(e,r,t){{if(G===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);G=n&&n[1]||""}return`
`+G+e}}var q=!1,N;{var Je=typeof WeakMap=="function"?WeakMap:Map;N=new Je}function me(e,r){if(!e||q)return"";{var t=N.get(e);if(t!==void 0)return t}var n;q=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=J.current,J.current=null,$e();try{if(r){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(C){n=C}Reflect.construct(e,[],o)}else{try{o.call()}catch(C){n=C}e.call(o.prototype)}}else{try{throw Error()}catch(C){n=C}e()}}catch(C){if(C&&n&&typeof C.stack=="string"){for(var a=C.stack.split(`
`),p=n.stack.split(`
`),s=a.length-1,f=p.length-1;s>=1&&f>=0&&a[s]!==p[f];)f--;for(;s>=1&&f>=0;s--,f--)if(a[s]!==p[f]){if(s!==1||f!==1)do if(s--,f--,f<0||a[s]!==p[f]){var E=`
`+a[s].replace(" at new "," at ");return e.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",e.displayName)),typeof e=="function"&&V.set(e,E),E}while(s>=1&&f>=0);break}}}finally{q=!1,J.current=u,$e(),Error.prepareStackTrace=i}var D=e?e.displayName||e.name:"",Oe=D?N(D):"";return typeof e=="function"&&V.set(e,Oe),Oe}function Je(e,r,t){return de(e,!1)}function Ge(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,t){if(e==null)return"";if(typeof e=="function")return de(e,Ge(e));if(typeof e=="string")return N(e);switch(e){case k:return N("Suspense");case m:return N("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return Je(e.render);case h:return U(e.type,r,t);case P:{var n=e,i=n._payload,u=n._init;try{return U(u(i),r,t)}catch{}}}return""}var M=Object.prototype.hasOwnProperty,ve={},pe=j.ReactDebugCurrentFrame;function $(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);pe.setExtraStackFrame(t)}else pe.setExtraStackFrame(null)}function qe(e,r,t,n,i){{var u=Function.call.bind(M);for(var o in e)if(u(e,o)){var a=void 0;try{if(typeof e[o]!="function"){var p=Error((n||"React class")+": "+t+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}a=e[o](r,o,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&($(i),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,o,typeof a),$(null)),a instanceof Error&&!(a.message in ve)&&(ve[a.message]=!0,$(i),v("Failed %s type: %s",t,a.message),$(null))}}}var ze=Array.isArray;function z(e){return ze(e)}function Ke(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function He(e){try{return me(e),!1}catch{return!0}}function me(e){return""+e}function be(e){if(He(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ke(e)),me(e)}var Y=j.ReactCurrentOwner,Xe={key:!0,ref:!0,__self:!0,__source:!0},ye,ge,K;K={};function Ze(e){if(M.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Qe(e){if(M.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function er(e,r){if(typeof e.ref=="string"&&Y.current&&r&&Y.current.stateNode!==r){var t=_(Y.current.type);K[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',_(Y.current.type),e.ref),K[t]=!0)}}function rr(e,r){{var t=function(){ye||(ye=!0,v("%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 tr(e,r){{var t=function(){ge||(ge=!0,v("%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 nr=function(e,r,t,n,i,u,o){var a={$$typeof:l,type:e,key:r,ref:t,props:o,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function ar(e,r,t,n,i){{var u,o={},a=null,p=null;t!==void 0&&(be(t),a=""+t),Qe(r)&&(be(r.key),a=""+r.key),Ze(r)&&(p=r.ref,er(r,i));for(u in r)M.call(r,u)&&!Xe.hasOwnProperty(u)&&(o[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)o[u]===void 0&&(o[u]=s[u])}if(a||p){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&rr(o,f),p&&tr(o,f)}return nr(e,a,p,i,n,Y.current,o)}}var H=j.ReactCurrentOwner,Ee=j.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(t)}else Ee.setExtraStackFrame(null)}var X;X=!1;function Z(e){return typeof e=="object"&&e!==null&&e.$$typeof===l}function Re(){{if(H.current){var e=_(H.current.type);if(e)return`
`),f=a.length-1,l=p.length-1;f>=1&&l>=0&&a[f]!==p[l];)l--;for(;f>=1&&l>=0;f--,l--)if(a[f]!==p[l]){if(f!==1||l!==1)do if(f--,l--,l<0||a[f]!==p[l]){var g=`
`+a[f].replace(" at new "," at ");return e.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",e.displayName)),typeof e=="function"&&N.set(e,g),g}while(f>=1&&l>=0);break}}}finally{q=!1,J.current=u,Be(),Error.prepareStackTrace=i}var D=e?e.displayName||e.name:"",we=D?M(D):"";return typeof e=="function"&&N.set(e,we),we}function Ge(e,r,t){return me(e,!1)}function qe(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function V(e,r,t){if(e==null)return"";if(typeof e=="function")return me(e,qe(e));if(typeof e=="string")return M(e);switch(e){case k:return M("Suspense");case m:return M("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return Ge(e.render);case h:return V(e.type,r,t);case S:{var n=e,i=n._payload,u=n._init;try{return V(u(i),r,t)}catch{}}}return""}var U=Object.prototype.hasOwnProperty,be={},ye=x.ReactDebugCurrentFrame;function $(e){if(e){var r=e._owner,t=V(e.type,e._source,r?r.type:null);ye.setExtraStackFrame(t)}else ye.setExtraStackFrame(null)}function ze(e,r,t,n,i){{var u=Function.call.bind(U);for(var o in e)if(u(e,o)){var a=void 0;try{if(typeof e[o]!="function"){var p=Error((n||"React class")+": "+t+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}a=e[o](r,o,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(f){a=f}a&&!(a instanceof Error)&&($(i),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,o,typeof a),$(null)),a instanceof Error&&!(a.message in be)&&(be[a.message]=!0,$(i),v("Failed %s type: %s",t,a.message),$(null))}}}var Ke=Array.isArray;function z(e){return Ke(e)}function He(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Xe(e){try{return ge(e),!1}catch{return!0}}function ge(e){return""+e}function Ee(e){if(Xe(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",He(e)),ge(e)}var Y=x.ReactCurrentOwner,Ze={key:!0,ref:!0,__self:!0,__source:!0},Re,_e,K;K={};function Qe(e){if(U.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function er(e){if(U.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function rr(e,r){if(typeof e.ref=="string"&&Y.current&&r&&Y.current.stateNode!==r){var t=T(Y.current.type);K[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',T(Y.current.type),e.ref),K[t]=!0)}}function tr(e,r){{var t=function(){Re||(Re=!0,v("%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 nr(e,r){{var t=function(){_e||(_e=!0,v("%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 ar=function(e,r,t,n,i,u,o){var a={$$typeof:c,type:e,key:r,ref:t,props:o,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function or(e,r,t,n,i){{var u,o={},a=null,p=null;t!==void 0&&(Ee(t),a=""+t),er(r)&&(Ee(r.key),a=""+r.key),Qe(r)&&(p=r.ref,rr(r,i));for(u in r)U.call(r,u)&&!Ze.hasOwnProperty(u)&&(o[u]=r[u]);if(e&&e.defaultProps){var f=e.defaultProps;for(u in f)o[u]===void 0&&(o[u]=f[u])}if(a||p){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&tr(o,l),p&&nr(o,l)}return ar(e,a,p,i,n,Y.current,o)}}var H=x.ReactCurrentOwner,he=x.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,t=V(e.type,e._source,r?r.type:null);he.setExtraStackFrame(t)}else he.setExtraStackFrame(null)}var X;X=!1;function Z(e){return typeof e=="object"&&e!==null&&e.$$typeof===c}function Te(){{if(H.current){var e=T(H.current.type);if(e)return`
Check the render method of \``+e+"`."}return""}}function or(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
Check the render method of \``+e+"`."}return""}}function ir(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
Check your code at `+r+":"+t+"."}return""}}var he={};function ir(e){{var r=Re();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
Check your code at `+r+":"+t+"."}return""}}var Ce={};function ur(e){{var r=Te();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
Check the top-level render call using <`+t+">.")}return r}}function _e(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ir(r);if(he[t])return;he[t]=!0;var n="";e&&e._owner&&e._owner!==H.current&&(n=" It was passed a child from "+_(e._owner.type)+"."),A(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),A(null)}}function Te(e,r){{if(typeof e!="object")return;if(z(e))for(var t=0;t<e.length;t++){var n=e[t];Z(n)&&_e(n,r)}else if(Z(e))e._store&&(e._store.validated=!0);else if(e){var i=De(e);if(typeof i=="function"&&i!==e.entries)for(var u=i.call(e),o;!(o=u.next()).done;)Z(o.value)&&_e(o.value,r)}}}function ur(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===h))t=r.propTypes;else return;if(t){var n=_(r);qe(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!X){X=!0;var i=_(r);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}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 sr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){A(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),A(null);break}}e.ref!==null&&(A(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}function Ce(e,r,t,n,i,u){{var o=Ve(e);if(!o){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" 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 p=or(i);p?a+=p:a+=Re();var s;e===null?s="null":z(e)?s="array":e!==void 0&&e.$$typeof===l?(s="<"+(_(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=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",s,a)}var f=ar(e,r,t,i,u);if(f==null)return f;if(o){var E=r.children;if(E!==void 0)if(n)if(z(E)){for(var D=0;D<E.length;D++)Te(E[D],e);Object.freeze&&Object.freeze(E)}else v("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 Te(E,e)}return e===g?sr(f):ur(f),f}}function fr(e,r,t){return Ce(e,r,t,!0)}function cr(e,r,t){return Ce(e,r,t,!1)}var lr=cr,dr=fr;I.Fragment=g,I.jsx=lr,I.jsxs=dr}()),I}(function(c){process.env.NODE_ENV==="production"?c.exports=Se():c.exports=we()})(Pe);function xe(c){const l=w.unstable_useBlocker(c);return b.useEffect(()=>{l.state==="blocked"&&!c&&l.reset()},[l,c]),w.useBeforeUnload(b.useCallback(y=>{c&&(y.preventDefault(),y.returnValue="Changes that you made may not be saved.")},[c]),{capture:!0}),l}const ke=c=>{const l=xe(c),y=()=>{l.state==="blocked"&&l.reset()},g=()=>{l.state==="blocked"&&setTimeout(l.proceed,0)};return{isActive:l.state==="blocked",onConfirm:g,resetConfirmation:y}};function je({when:c,children:l,beforeCancel:y,beforeConfirm:g}){const{isActive:x,onConfirm:O,resetConfirmation:C}=ke(c),R=b.useCallback(async()=>{g&&await g(),O()},[g,O]),d=b.useCallback(async()=>{y&&await y(),C()},[y,C]);return x?B.jsx("div",{children:l({isActive:!0,onConfirm:R,onCancel:d})}):null}return je});
Check the top-level render call using <`+t+">.")}return r}}function Oe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ur(r);if(Ce[t])return;Ce[t]=!0;var n="";e&&e._owner&&e._owner!==H.current&&(n=" It was passed a child from "+T(e._owner.type)+"."),A(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),A(null)}}function Pe(e,r){{if(typeof e!="object")return;if(z(e))for(var t=0;t<e.length;t++){var n=e[t];Z(n)&&Oe(n,r)}else if(Z(e))e._store&&(e._store.validated=!0);else if(e){var i=Fe(e);if(typeof i=="function"&&i!==e.entries)for(var u=i.call(e),o;!(o=u.next()).done;)Z(o.value)&&Oe(o.value,r)}}}function sr(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===h))t=r.propTypes;else return;if(t){var n=T(r);ze(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!X){X=!0;var i=T(r);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}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 fr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){A(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),A(null);break}}e.ref!==null&&(A(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}function Se(e,r,t,n,i,u){{var o=Ve(e);if(!o){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" 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 p=ir(i);p?a+=p:a+=Te();var f;e===null?f="null":z(e)?f="array":e!==void 0&&e.$$typeof===c?(f="<"+(T(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):f=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",f,a)}var l=or(e,r,t,i,u);if(l==null)return l;if(o){var g=r.children;if(g!==void 0)if(n)if(z(g)){for(var D=0;D<g.length;D++)Pe(g[D],e);Object.freeze&&Object.freeze(g)}else v("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 Pe(g,e)}return e===y?fr(l):sr(l),l}}function lr(e,r,t){return Se(e,r,t,!0)}function cr(e,r,t){return Se(e,r,t,!1)}var dr=cr,vr=lr;I.Fragment=y,I.jsx=dr,I.jsxs=vr}()),I}(function(s){process.env.NODE_ENV==="production"?s.exports=ke():s.exports=xe()})(je);function te(s){const c=Q.unstable_useBlocker(s);return R.useEffect(()=>{c.state==="blocked"&&!s&&c.reset()},[c,s]),Q.useBeforeUnload(R.useCallback(b=>{(typeof s=="boolean"&&s===!0||typeof s=="function"&&s())&&(b.preventDefault(),b.returnValue="Changes that you made may not be saved.")},[s]),{capture:!0}),c}const ne=s=>{const c=te(s),b=()=>{c.state==="blocked"&&c.reset()},y=()=>{c.state==="blocked"&&setTimeout(c.proceed,0)};return{isActive:c.state==="blocked",onConfirm:y,resetConfirmation:b}};function Ae({when:s,children:c,beforeCancel:b,beforeConfirm:y}){const{isActive:j,onConfirm:P,resetConfirmation:O}=ne(s),_=R.useCallback(async()=>{y&&await y(),P()},[y,P]),d=R.useCallback(async()=>{b&&await b(),O()},[b,O]);return j?B.jsx("div",{children:c({isActive:!0,onConfirm:_,onCancel:d})}):null}E.default=Ae,E.useConfirm=ne,E.usePrompt=te,Object.defineProperties(E,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
import React from "react";
import { unstable_BlockerFunction as BlockerFunction } from "react-router-dom";
import useConfirm from "./hooks/use-confirm";
import usePrompt from "./hooks/use-prompt";
type ReactRouterPromptProps = {

@@ -32,1 +34,2 @@ when: boolean | BlockerFunction;

export default ReactRouterPrompt;
export { useConfirm, usePrompt };

@@ -7,4 +7,4 @@ import Oe, { useEffect as ur, useCallback as H } from "react";

},
set exports(l) {
X = l;
set exports(s) {
X = s;
}

@@ -26,4 +26,4 @@ }, F = {};

Te = 1;
var l = Oe, c = Symbol.for("react.element"), b = Symbol.for("react.fragment"), g = Object.prototype.hasOwnProperty, S = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, C = { key: !0, ref: !0, __self: !0, __source: !0 };
function T(y, d, w) {
var s = Oe, c = Symbol.for("react.element"), b = Symbol.for("react.fragment"), g = Object.prototype.hasOwnProperty, S = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, C = { key: !0, ref: !0, __self: !0, __source: !0 };
function T(E, d, w) {
var m, R = {}, O = null, $ = null;

@@ -33,6 +33,6 @@ w !== void 0 && (O = "" + w), d.key !== void 0 && (O = "" + d.key), d.ref !== void 0 && ($ = d.ref);

g.call(d, m) && !C.hasOwnProperty(m) && (R[m] = d[m]);
if (y && y.defaultProps)
for (m in d = y.defaultProps, d)
if (E && E.defaultProps)
for (m in d = E.defaultProps, d)
R[m] === void 0 && (R[m] = d[m]);
return { $$typeof: c, type: y, key: O, ref: $, props: R, _owner: S.current };
return { $$typeof: c, type: E, key: O, ref: $, props: R, _owner: S.current };
}

@@ -54,3 +54,3 @@ return F.Fragment = b, F.jsx = T, F.jsxs = T, F;

return Ce || (Ce = 1, process.env.NODE_ENV !== "production" && function() {
var l = Oe, c = Symbol.for("react.element"), b = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), T = Symbol.for("react.provider"), y = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), Z = Symbol.iterator, Pe = "@@iterator";
var s = Oe, c = Symbol.for("react.element"), b = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), T = Symbol.for("react.provider"), E = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), Z = Symbol.iterator, Pe = "@@iterator";
function Se(e) {

@@ -62,3 +62,3 @@ if (e === null || typeof e != "object")

}
var x = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
var x = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function v(e) {

@@ -84,3 +84,3 @@ {

function Fe(e) {
return !!(typeof e == "string" || typeof e == "function" || e === g || e === C || De || e === S || e === w || e === m || Ae || e === $ || xe || je || ke || typeof e == "object" && e !== null && (e.$$typeof === O || e.$$typeof === R || e.$$typeof === T || e.$$typeof === y || e.$$typeof === d || // This needs to include all possible module reference object
return !!(typeof e == "string" || typeof e == "function" || e === g || e === C || De || e === S || e === w || e === m || Ae || e === $ || xe || je || ke || typeof e == "object" && e !== null && (e.$$typeof === O || e.$$typeof === R || e.$$typeof === T || e.$$typeof === E || e.$$typeof === d || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since

@@ -124,3 +124,3 @@ // we don't know which Flight build this will end up being used

switch (e.$$typeof) {
case y:
case E:
var r = e;

@@ -278,14 +278,14 @@ return ee(r) + ".Consumer";

`), p = n.stack.split(`
`), s = a.length - 1, f = p.length - 1; s >= 1 && f >= 0 && a[s] !== p[f]; )
f--;
for (; s >= 1 && f >= 0; s--, f--)
if (a[s] !== p[f]) {
if (s !== 1 || f !== 1)
`), f = a.length - 1, l = p.length - 1; f >= 1 && l >= 0 && a[f] !== p[l]; )
l--;
for (; f >= 1 && l >= 0; f--, l--)
if (a[f] !== p[l]) {
if (f !== 1 || l !== 1)
do
if (s--, f--, f < 0 || a[s] !== p[f]) {
var E = `
` + a[s].replace(" at new ", " at ");
return e.displayName && E.includes("<anonymous>") && (E = E.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, E), E;
if (f--, l--, l < 0 || a[f] !== p[l]) {
var y = `
` + a[f].replace(" at new ", " at ");
return e.displayName && y.includes("<anonymous>") && (y = y.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, y), y;
}
while (s >= 1 && f >= 0);
while (f >= 1 && l >= 0);
break;

@@ -356,4 +356,4 @@ }

a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (s) {
a = s;
} catch (f) {
a = f;
}

@@ -475,9 +475,9 @@ a && !(a instanceof Error) && (V(i), 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, o, typeof a), V(null)), a instanceof Error && !(a.message in le) && (le[a.message] = !0, V(i), v("Failed %s type: %s", t, a.message), V(null));

if (e && e.defaultProps) {
var s = e.defaultProps;
for (u in s)
o[u] === void 0 && (o[u] = s[u]);
var f = e.defaultProps;
for (u in f)
o[u] === void 0 && (o[u] = f[u]);
}
if (a || p) {
var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
a && Ke(o, f), p && He(o, f);
var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
a && Ke(o, l), p && He(o, l);
}

@@ -523,3 +523,3 @@ return Xe(e, a, p, i, n, D.current, o);

}
var Ee = {};
var ye = {};
function er(e) {

@@ -537,3 +537,3 @@ {

}
function ye(e, r) {
function Ee(e, r) {
{

@@ -544,5 +544,5 @@ if (!e._store || e._store.validated || e.key != null)

var t = er(r);
if (Ee[t])
if (ye[t])
return;
Ee[t] = !0;
ye[t] = !0;
var n = "";

@@ -559,3 +559,3 @@ e && e._owner && e._owner !== G.current && (n = " It was passed a child from " + _(e._owner.type) + "."), j(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), j(null);

var n = e[t];
K(n) && ye(n, r);
K(n) && Ee(n, r);
}

@@ -568,3 +568,3 @@ else if (K(e))

for (var u = i.call(e), o; !(o = u.next()).done; )
K(o.value) && ye(o.value, r);
K(o.value) && Ee(o.value, r);
}

@@ -618,22 +618,22 @@ }

p ? a += p : a += ge();
var s;
e === null ? s = "null" : q(e) ? s = "array" : e !== void 0 && e.$$typeof === c ? (s = "<" + (_(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = 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", s, a);
var f;
e === null ? f = "null" : q(e) ? f = "array" : e !== void 0 && e.$$typeof === c ? (f = "<" + (_(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : f = 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", f, a);
}
var f = Ze(e, r, t, i, u);
if (f == null)
return f;
var l = Ze(e, r, t, i, u);
if (l == null)
return l;
if (o) {
var E = r.children;
if (E !== void 0)
var y = r.children;
if (y !== void 0)
if (n)
if (q(E)) {
for (var k = 0; k < E.length; k++)
Re(E[k], e);
Object.freeze && Object.freeze(E);
if (q(y)) {
for (var k = 0; k < y.length; k++)
Re(y[k], e);
Object.freeze && Object.freeze(y);
} else
v("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
Re(E, e);
Re(y, e);
}
return e === g ? tr(f) : rr(f), f;
return e === g ? tr(l) : rr(l), l;
}

@@ -651,15 +651,16 @@ }

}
(function(l) {
process.env.NODE_ENV === "production" ? l.exports = cr() : l.exports = dr();
(function(s) {
process.env.NODE_ENV === "production" ? s.exports = cr() : s.exports = dr();
})(lr);
function vr(l) {
const c = sr(l);
function vr(s) {
const c = sr(s);
return ur(() => {
c.state === "blocked" && !l && c.reset();
}, [c, l]), fr(
c.state === "blocked" && !s && c.reset();
}, [c, s]), fr(
H(
(b) => {
l && (b.preventDefault(), b.returnValue = "Changes that you made may not be saved.");
(typeof s == "boolean" && s === !0 || // @ts-ignore Reload case -- No location present
typeof s == "function" && s()) && (b.preventDefault(), b.returnValue = "Changes that you made may not be saved.");
},
[l]
[s]
),

@@ -669,4 +670,4 @@ { capture: !0 }

}
const pr = (l) => {
const c = vr(l), b = () => {
const pr = (s) => {
const c = vr(s), b = () => {
c.state === "blocked" && c.reset();

@@ -683,3 +684,3 @@ }, g = () => {

function gr({
when: l,
when: s,
children: c,

@@ -689,3 +690,3 @@ beforeCancel: b,

}) {
const { isActive: S, onConfirm: C, resetConfirmation: T } = pr(l), y = H(async () => {
const { isActive: S, onConfirm: C, resetConfirmation: T } = pr(s), E = H(async () => {
g && await g(), C();

@@ -697,3 +698,3 @@ }, [g, C]), d = H(async () => {

isActive: !0,
onConfirm: y,
onConfirm: E,
onCancel: d

@@ -703,3 +704,5 @@ }) }) : null;

export {
gr as default
gr as default,
pr as useConfirm,
vr as usePrompt
};

@@ -1,2 +0,2 @@

(function(b,w){typeof exports=="object"&&typeof module<"u"?module.exports=w(require("react"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["react","react-router-dom"],w):(b=typeof globalThis<"u"?globalThis:b||self,b.ReactRouterPrompt=w(b.require$$0,b.reactRouterDom))})(this,function(b,w){"use strict";var B={},Pe={get exports(){return B},set exports(c){B=c}},F={};/**
(function(E,R){typeof exports=="object"&&typeof module<"u"?R(exports,require("react"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-router-dom"],R):(E=typeof globalThis<"u"?globalThis:E||self,R(E.ReactRouterPrompt={},E.require$$0,E.reactRouterDom))})(this,function(E,R,Q){"use strict";var B={},je={get exports(){return B},set exports(s){B=s}},F={};/**
* @license React

@@ -9,3 +9,3 @@ * react-jsx-runtime.production.min.js

* LICENSE file in the root directory of this source tree.
*/var Q;function Se(){if(Q)return F;Q=1;var c=b,l=Symbol.for("react.element"),y=Symbol.for("react.fragment"),g=Object.prototype.hasOwnProperty,x=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,O={key:!0,ref:!0,__self:!0,__source:!0};function C(R,d,k){var m,h={},P=null,L=null;k!==void 0&&(P=""+k),d.key!==void 0&&(P=""+d.key),d.ref!==void 0&&(L=d.ref);for(m in d)g.call(d,m)&&!O.hasOwnProperty(m)&&(h[m]=d[m]);if(R&&R.defaultProps)for(m in d=R.defaultProps,d)h[m]===void 0&&(h[m]=d[m]);return{$$typeof:l,type:R,key:P,ref:L,props:h,_owner:x.current}}return F.Fragment=y,F.jsx=C,F.jsxs=C,F}var I={};/**
*/var ee;function ke(){if(ee)return F;ee=1;var s=R,c=Symbol.for("react.element"),b=Symbol.for("react.fragment"),y=Object.prototype.hasOwnProperty,j=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,P={key:!0,ref:!0,__self:!0,__source:!0};function O(_,d,k){var m,h={},S=null,L=null;k!==void 0&&(S=""+k),d.key!==void 0&&(S=""+d.key),d.ref!==void 0&&(L=d.ref);for(m in d)y.call(d,m)&&!P.hasOwnProperty(m)&&(h[m]=d[m]);if(_&&_.defaultProps)for(m in d=_.defaultProps,d)h[m]===void 0&&(h[m]=d[m]);return{$$typeof:c,type:_,key:S,ref:L,props:h,_owner:j.current}}return F.Fragment=b,F.jsx=O,F.jsxs=O,F}var I={};/**
* @license React

@@ -18,12 +18,12 @@ * react-jsx-runtime.development.js

* LICENSE file in the root directory of this source tree.
*/var ee;function we(){return ee||(ee=1,process.env.NODE_ENV!=="production"&&function(){var c=b,l=Symbol.for("react.element"),y=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),R=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),re=Symbol.iterator,Ae="@@iterator";function De(e){if(e===null||typeof e!="object")return null;var r=re&&e[re]||e[Ae];return typeof r=="function"?r:null}var j=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Fe("error",e,t)}}function Fe(e,r,t){{var n=j.ReactDebugCurrentFrame,i=n.getStackAddendum();i!==""&&(r+="%s",t=t.concat([i]));var u=t.map(function(o){return String(o)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var Ie=!1,We=!1,Ye=!1,Le=!1,Ne=!1,te;te=Symbol.for("react.module.reference");function Ve(e){return!!(typeof e=="string"||typeof e=="function"||e===g||e===O||Ne||e===x||e===k||e===m||Le||e===L||Ie||We||Ye||typeof e=="object"&&e!==null&&(e.$$typeof===P||e.$$typeof===h||e.$$typeof===C||e.$$typeof===R||e.$$typeof===d||e.$$typeof===te||e.getModuleId!==void 0))}function Ue(e,r,t){var n=e.displayName;if(n)return n;var i=r.displayName||r.name||"";return i!==""?t+"("+i+")":t}function ne(e){return e.displayName||"Context"}function _(e){if(e==null)return null;if(typeof e.tag=="number"&&v("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 g:return"Fragment";case y:return"Portal";case O:return"Profiler";case x:return"StrictMode";case k:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case R:var r=e;return ne(r)+".Consumer";case C:var t=e;return ne(t._context)+".Provider";case d:return Ue(e,e.render,"ForwardRef");case h:var n=e.displayName||null;return n!==null?n:_(e.type)||"Memo";case P:{var i=e,u=i._payload,o=i._init;try{return _(o(u))}catch{return null}}}return null}var S=Object.assign,W=0,ae,oe,ie,ue,se,fe,ce;function le(){}le.__reactDisabledLog=!0;function Me(){{if(W===0){ae=console.log,oe=console.info,ie=console.warn,ue=console.error,se=console.group,fe=console.groupCollapsed,ce=console.groupEnd;var e={configurable:!0,enumerable:!0,value:le,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}W++}}function $e(){{if(W--,W===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:S({},e,{value:ae}),info:S({},e,{value:oe}),warn:S({},e,{value:ie}),error:S({},e,{value:ue}),group:S({},e,{value:se}),groupCollapsed:S({},e,{value:fe}),groupEnd:S({},e,{value:ce})})}W<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=j.ReactCurrentDispatcher,G;function N(e,r,t){{if(G===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);G=n&&n[1]||""}return`
`+G+e}}var q=!1,V;{var Be=typeof WeakMap=="function"?WeakMap:Map;V=new Be}function de(e,r){if(!e||q)return"";{var t=V.get(e);if(t!==void 0)return t}var n;q=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=J.current,J.current=null,Me();try{if(r){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(T){n=T}Reflect.construct(e,[],o)}else{try{o.call()}catch(T){n=T}e.call(o.prototype)}}else{try{throw Error()}catch(T){n=T}e()}}catch(T){if(T&&n&&typeof T.stack=="string"){for(var a=T.stack.split(`
*/var re;function xe(){return re||(re=1,process.env.NODE_ENV!=="production"&&function(){var s=R,c=Symbol.for("react.element"),b=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),_=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),ae=Symbol.iterator,De="@@iterator";function Fe(e){if(e===null||typeof e!="object")return null;var r=ae&&e[ae]||e[De];return typeof r=="function"?r:null}var x=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Ie("error",e,t)}}function Ie(e,r,t){{var n=x.ReactDebugCurrentFrame,i=n.getStackAddendum();i!==""&&(r+="%s",t=t.concat([i]));var u=t.map(function(o){return String(o)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var We=!1,Ye=!1,Le=!1,Me=!1,Ne=!1,oe;oe=Symbol.for("react.module.reference");function Ve(e){return!!(typeof e=="string"||typeof e=="function"||e===y||e===P||Ne||e===j||e===k||e===m||Me||e===L||We||Ye||Le||typeof e=="object"&&e!==null&&(e.$$typeof===S||e.$$typeof===h||e.$$typeof===O||e.$$typeof===_||e.$$typeof===d||e.$$typeof===oe||e.getModuleId!==void 0))}function Ue(e,r,t){var n=e.displayName;if(n)return n;var i=r.displayName||r.name||"";return i!==""?t+"("+i+")":t}function ie(e){return e.displayName||"Context"}function T(e){if(e==null)return null;if(typeof e.tag=="number"&&v("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 y:return"Fragment";case b:return"Portal";case P:return"Profiler";case j:return"StrictMode";case k:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var r=e;return ie(r)+".Consumer";case O:var t=e;return ie(t._context)+".Provider";case d:return Ue(e,e.render,"ForwardRef");case h:var n=e.displayName||null;return n!==null?n:T(e.type)||"Memo";case S:{var i=e,u=i._payload,o=i._init;try{return T(o(u))}catch{return null}}}return null}var w=Object.assign,W=0,ue,se,fe,le,ce,de,ve;function pe(){}pe.__reactDisabledLog=!0;function $e(){{if(W===0){ue=console.log,se=console.info,fe=console.warn,le=console.error,ce=console.group,de=console.groupCollapsed,ve=console.groupEnd;var e={configurable:!0,enumerable:!0,value:pe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}W++}}function Be(){{if(W--,W===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:w({},e,{value:ue}),info:w({},e,{value:se}),warn:w({},e,{value:fe}),error:w({},e,{value:le}),group:w({},e,{value:ce}),groupCollapsed:w({},e,{value:de}),groupEnd:w({},e,{value:ve})})}W<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=x.ReactCurrentDispatcher,G;function M(e,r,t){{if(G===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);G=n&&n[1]||""}return`
`+G+e}}var q=!1,N;{var Je=typeof WeakMap=="function"?WeakMap:Map;N=new Je}function me(e,r){if(!e||q)return"";{var t=N.get(e);if(t!==void 0)return t}var n;q=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=J.current,J.current=null,$e();try{if(r){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(C){n=C}Reflect.construct(e,[],o)}else{try{o.call()}catch(C){n=C}e.call(o.prototype)}}else{try{throw Error()}catch(C){n=C}e()}}catch(C){if(C&&n&&typeof C.stack=="string"){for(var a=C.stack.split(`
`),p=n.stack.split(`
`),s=a.length-1,f=p.length-1;s>=1&&f>=0&&a[s]!==p[f];)f--;for(;s>=1&&f>=0;s--,f--)if(a[s]!==p[f]){if(s!==1||f!==1)do if(s--,f--,f<0||a[s]!==p[f]){var E=`
`+a[s].replace(" at new "," at ");return e.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",e.displayName)),typeof e=="function"&&V.set(e,E),E}while(s>=1&&f>=0);break}}}finally{q=!1,J.current=u,$e(),Error.prepareStackTrace=i}var D=e?e.displayName||e.name:"",Oe=D?N(D):"";return typeof e=="function"&&V.set(e,Oe),Oe}function Je(e,r,t){return de(e,!1)}function Ge(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,t){if(e==null)return"";if(typeof e=="function")return de(e,Ge(e));if(typeof e=="string")return N(e);switch(e){case k:return N("Suspense");case m:return N("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return Je(e.render);case h:return U(e.type,r,t);case P:{var n=e,i=n._payload,u=n._init;try{return U(u(i),r,t)}catch{}}}return""}var M=Object.prototype.hasOwnProperty,ve={},pe=j.ReactDebugCurrentFrame;function $(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);pe.setExtraStackFrame(t)}else pe.setExtraStackFrame(null)}function qe(e,r,t,n,i){{var u=Function.call.bind(M);for(var o in e)if(u(e,o)){var a=void 0;try{if(typeof e[o]!="function"){var p=Error((n||"React class")+": "+t+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}a=e[o](r,o,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&($(i),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,o,typeof a),$(null)),a instanceof Error&&!(a.message in ve)&&(ve[a.message]=!0,$(i),v("Failed %s type: %s",t,a.message),$(null))}}}var ze=Array.isArray;function z(e){return ze(e)}function Ke(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function He(e){try{return me(e),!1}catch{return!0}}function me(e){return""+e}function be(e){if(He(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ke(e)),me(e)}var Y=j.ReactCurrentOwner,Xe={key:!0,ref:!0,__self:!0,__source:!0},ye,ge,K;K={};function Ze(e){if(M.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Qe(e){if(M.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function er(e,r){if(typeof e.ref=="string"&&Y.current&&r&&Y.current.stateNode!==r){var t=_(Y.current.type);K[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',_(Y.current.type),e.ref),K[t]=!0)}}function rr(e,r){{var t=function(){ye||(ye=!0,v("%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 tr(e,r){{var t=function(){ge||(ge=!0,v("%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 nr=function(e,r,t,n,i,u,o){var a={$$typeof:l,type:e,key:r,ref:t,props:o,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function ar(e,r,t,n,i){{var u,o={},a=null,p=null;t!==void 0&&(be(t),a=""+t),Qe(r)&&(be(r.key),a=""+r.key),Ze(r)&&(p=r.ref,er(r,i));for(u in r)M.call(r,u)&&!Xe.hasOwnProperty(u)&&(o[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)o[u]===void 0&&(o[u]=s[u])}if(a||p){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&rr(o,f),p&&tr(o,f)}return nr(e,a,p,i,n,Y.current,o)}}var H=j.ReactCurrentOwner,Ee=j.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(t)}else Ee.setExtraStackFrame(null)}var X;X=!1;function Z(e){return typeof e=="object"&&e!==null&&e.$$typeof===l}function Re(){{if(H.current){var e=_(H.current.type);if(e)return`
`),f=a.length-1,l=p.length-1;f>=1&&l>=0&&a[f]!==p[l];)l--;for(;f>=1&&l>=0;f--,l--)if(a[f]!==p[l]){if(f!==1||l!==1)do if(f--,l--,l<0||a[f]!==p[l]){var g=`
`+a[f].replace(" at new "," at ");return e.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",e.displayName)),typeof e=="function"&&N.set(e,g),g}while(f>=1&&l>=0);break}}}finally{q=!1,J.current=u,Be(),Error.prepareStackTrace=i}var D=e?e.displayName||e.name:"",we=D?M(D):"";return typeof e=="function"&&N.set(e,we),we}function Ge(e,r,t){return me(e,!1)}function qe(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function V(e,r,t){if(e==null)return"";if(typeof e=="function")return me(e,qe(e));if(typeof e=="string")return M(e);switch(e){case k:return M("Suspense");case m:return M("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return Ge(e.render);case h:return V(e.type,r,t);case S:{var n=e,i=n._payload,u=n._init;try{return V(u(i),r,t)}catch{}}}return""}var U=Object.prototype.hasOwnProperty,be={},ye=x.ReactDebugCurrentFrame;function $(e){if(e){var r=e._owner,t=V(e.type,e._source,r?r.type:null);ye.setExtraStackFrame(t)}else ye.setExtraStackFrame(null)}function ze(e,r,t,n,i){{var u=Function.call.bind(U);for(var o in e)if(u(e,o)){var a=void 0;try{if(typeof e[o]!="function"){var p=Error((n||"React class")+": "+t+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}a=e[o](r,o,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(f){a=f}a&&!(a instanceof Error)&&($(i),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,o,typeof a),$(null)),a instanceof Error&&!(a.message in be)&&(be[a.message]=!0,$(i),v("Failed %s type: %s",t,a.message),$(null))}}}var Ke=Array.isArray;function z(e){return Ke(e)}function He(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Xe(e){try{return ge(e),!1}catch{return!0}}function ge(e){return""+e}function Ee(e){if(Xe(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",He(e)),ge(e)}var Y=x.ReactCurrentOwner,Ze={key:!0,ref:!0,__self:!0,__source:!0},Re,_e,K;K={};function Qe(e){if(U.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function er(e){if(U.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function rr(e,r){if(typeof e.ref=="string"&&Y.current&&r&&Y.current.stateNode!==r){var t=T(Y.current.type);K[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',T(Y.current.type),e.ref),K[t]=!0)}}function tr(e,r){{var t=function(){Re||(Re=!0,v("%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 nr(e,r){{var t=function(){_e||(_e=!0,v("%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 ar=function(e,r,t,n,i,u,o){var a={$$typeof:c,type:e,key:r,ref:t,props:o,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function or(e,r,t,n,i){{var u,o={},a=null,p=null;t!==void 0&&(Ee(t),a=""+t),er(r)&&(Ee(r.key),a=""+r.key),Qe(r)&&(p=r.ref,rr(r,i));for(u in r)U.call(r,u)&&!Ze.hasOwnProperty(u)&&(o[u]=r[u]);if(e&&e.defaultProps){var f=e.defaultProps;for(u in f)o[u]===void 0&&(o[u]=f[u])}if(a||p){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&tr(o,l),p&&nr(o,l)}return ar(e,a,p,i,n,Y.current,o)}}var H=x.ReactCurrentOwner,he=x.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,t=V(e.type,e._source,r?r.type:null);he.setExtraStackFrame(t)}else he.setExtraStackFrame(null)}var X;X=!1;function Z(e){return typeof e=="object"&&e!==null&&e.$$typeof===c}function Te(){{if(H.current){var e=T(H.current.type);if(e)return`
Check the render method of \``+e+"`."}return""}}function or(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
Check the render method of \``+e+"`."}return""}}function ir(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
Check your code at `+r+":"+t+"."}return""}}var he={};function ir(e){{var r=Re();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
Check your code at `+r+":"+t+"."}return""}}var Ce={};function ur(e){{var r=Te();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
Check the top-level render call using <`+t+">.")}return r}}function _e(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ir(r);if(he[t])return;he[t]=!0;var n="";e&&e._owner&&e._owner!==H.current&&(n=" It was passed a child from "+_(e._owner.type)+"."),A(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),A(null)}}function Te(e,r){{if(typeof e!="object")return;if(z(e))for(var t=0;t<e.length;t++){var n=e[t];Z(n)&&_e(n,r)}else if(Z(e))e._store&&(e._store.validated=!0);else if(e){var i=De(e);if(typeof i=="function"&&i!==e.entries)for(var u=i.call(e),o;!(o=u.next()).done;)Z(o.value)&&_e(o.value,r)}}}function ur(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===h))t=r.propTypes;else return;if(t){var n=_(r);qe(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!X){X=!0;var i=_(r);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}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 sr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){A(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),A(null);break}}e.ref!==null&&(A(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}function Ce(e,r,t,n,i,u){{var o=Ve(e);if(!o){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" 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 p=or(i);p?a+=p:a+=Re();var s;e===null?s="null":z(e)?s="array":e!==void 0&&e.$$typeof===l?(s="<"+(_(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=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",s,a)}var f=ar(e,r,t,i,u);if(f==null)return f;if(o){var E=r.children;if(E!==void 0)if(n)if(z(E)){for(var D=0;D<E.length;D++)Te(E[D],e);Object.freeze&&Object.freeze(E)}else v("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 Te(E,e)}return e===g?sr(f):ur(f),f}}function fr(e,r,t){return Ce(e,r,t,!0)}function cr(e,r,t){return Ce(e,r,t,!1)}var lr=cr,dr=fr;I.Fragment=g,I.jsx=lr,I.jsxs=dr}()),I}(function(c){process.env.NODE_ENV==="production"?c.exports=Se():c.exports=we()})(Pe);function xe(c){const l=w.unstable_useBlocker(c);return b.useEffect(()=>{l.state==="blocked"&&!c&&l.reset()},[l,c]),w.useBeforeUnload(b.useCallback(y=>{c&&(y.preventDefault(),y.returnValue="Changes that you made may not be saved.")},[c]),{capture:!0}),l}const ke=c=>{const l=xe(c),y=()=>{l.state==="blocked"&&l.reset()},g=()=>{l.state==="blocked"&&setTimeout(l.proceed,0)};return{isActive:l.state==="blocked",onConfirm:g,resetConfirmation:y}};function je({when:c,children:l,beforeCancel:y,beforeConfirm:g}){const{isActive:x,onConfirm:O,resetConfirmation:C}=ke(c),R=b.useCallback(async()=>{g&&await g(),O()},[g,O]),d=b.useCallback(async()=>{y&&await y(),C()},[y,C]);return x?B.jsx("div",{children:l({isActive:!0,onConfirm:R,onCancel:d})}):null}return je});
Check the top-level render call using <`+t+">.")}return r}}function Oe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ur(r);if(Ce[t])return;Ce[t]=!0;var n="";e&&e._owner&&e._owner!==H.current&&(n=" It was passed a child from "+T(e._owner.type)+"."),A(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),A(null)}}function Pe(e,r){{if(typeof e!="object")return;if(z(e))for(var t=0;t<e.length;t++){var n=e[t];Z(n)&&Oe(n,r)}else if(Z(e))e._store&&(e._store.validated=!0);else if(e){var i=Fe(e);if(typeof i=="function"&&i!==e.entries)for(var u=i.call(e),o;!(o=u.next()).done;)Z(o.value)&&Oe(o.value,r)}}}function sr(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===h))t=r.propTypes;else return;if(t){var n=T(r);ze(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!X){X=!0;var i=T(r);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}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 fr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){A(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),A(null);break}}e.ref!==null&&(A(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}function Se(e,r,t,n,i,u){{var o=Ve(e);if(!o){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" 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 p=ir(i);p?a+=p:a+=Te();var f;e===null?f="null":z(e)?f="array":e!==void 0&&e.$$typeof===c?(f="<"+(T(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):f=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",f,a)}var l=or(e,r,t,i,u);if(l==null)return l;if(o){var g=r.children;if(g!==void 0)if(n)if(z(g)){for(var D=0;D<g.length;D++)Pe(g[D],e);Object.freeze&&Object.freeze(g)}else v("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 Pe(g,e)}return e===y?fr(l):sr(l),l}}function lr(e,r,t){return Se(e,r,t,!0)}function cr(e,r,t){return Se(e,r,t,!1)}var dr=cr,vr=lr;I.Fragment=y,I.jsx=dr,I.jsxs=vr}()),I}(function(s){process.env.NODE_ENV==="production"?s.exports=ke():s.exports=xe()})(je);function te(s){const c=Q.unstable_useBlocker(s);return R.useEffect(()=>{c.state==="blocked"&&!s&&c.reset()},[c,s]),Q.useBeforeUnload(R.useCallback(b=>{(typeof s=="boolean"&&s===!0||typeof s=="function"&&s())&&(b.preventDefault(),b.returnValue="Changes that you made may not be saved.")},[s]),{capture:!0}),c}const ne=s=>{const c=te(s),b=()=>{c.state==="blocked"&&c.reset()},y=()=>{c.state==="blocked"&&setTimeout(c.proceed,0)};return{isActive:c.state==="blocked",onConfirm:y,resetConfirmation:b}};function Ae({when:s,children:c,beforeCancel:b,beforeConfirm:y}){const{isActive:j,onConfirm:P,resetConfirmation:O}=ne(s),_=R.useCallback(async()=>{y&&await y(),P()},[y,P]),d=R.useCallback(async()=>{b&&await b(),O()},[b,O]);return j?B.jsx("div",{children:c({isActive:!0,onConfirm:_,onCancel:d})}):null}E.default=Ae,E.useConfirm=ne,E.usePrompt=te,Object.defineProperties(E,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
{
"name": "react-router-prompt",
"version": "0.5.3",
"version": "0.5.4-beta.1",
"description": "React Router Navigation Prompt for v6",

@@ -5,0 +5,0 @@ "type": "module",