@getopenpay/openpay-js 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +123 -1
- package/dist/index.es.js +355 -345
- package/dist/index.umd.js +12 -12
- package/package.json +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(ve,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("zod"),require("uuid"),require("penpal")):typeof define=="function"&&define.amd?define(["exports","zod","uuid","penpal"],i):(ve=typeof globalThis<"u"?globalThis:ve||self,i(ve.OpenPay={},ve.zod,ve.uuid,ve.penpal))})(this,function(ve,i,mn,hn){"use strict";var Hr={exports:{}},
|
|
1
|
+
(function(ve,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("zod"),require("uuid"),require("penpal")):typeof define=="function"&&define.amd?define(["exports","zod","uuid","penpal"],i):(ve=typeof globalThis<"u"?globalThis:ve||self,i(ve.OpenPay={},ve.zod,ve.uuid,ve.penpal))})(this,function(ve,i,mn,hn){"use strict";var Hr={exports:{}},Dt={exports:{}},M={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Wr;function vn(){if(Wr)return
|
|
9
|
+
*/var Wr;function vn(){if(Wr)return M;Wr=1;var c=Symbol.for("react.element"),a=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),b=Symbol.for("react.provider"),I=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),q=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),U=Symbol.iterator;function J(r){return r===null||typeof r!="object"?null:(r=U&&r[U]||r["@@iterator"],typeof r=="function"?r:null)}var Y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Z=Object.assign,ge={};function B(r,s,h){this.props=r,this.context=s,this.refs=ge,this.updater=h||Y}B.prototype.isReactComponent={},B.prototype.setState=function(r,s){if(typeof r!="object"&&typeof r!="function"&&r!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,r,s,"setState")},B.prototype.forceUpdate=function(r){this.updater.enqueueForceUpdate(this,r,"forceUpdate")};function _e(){}_e.prototype=B.prototype;function ae(r,s,h){this.props=r,this.context=s,this.refs=ge,this.updater=h||Y}var ie=ae.prototype=new _e;ie.constructor=ae,Z(ie,B.prototype),ie.isPureReactComponent=!0;var K=Array.isArray,F=Object.prototype.hasOwnProperty,V={current:null},Q={key:!0,ref:!0,__self:!0,__source:!0};function re(r,s,h){var _,E={},j=null,k=null;if(s!=null)for(_ in s.ref!==void 0&&(k=s.ref),s.key!==void 0&&(j=""+s.key),s)F.call(s,_)&&!Q.hasOwnProperty(_)&&(E[_]=s[_]);var O=arguments.length-2;if(O===1)E.children=h;else if(1<O){for(var C=Array(O),L=0;L<O;L++)C[L]=arguments[L+2];E.children=C}if(r&&r.defaultProps)for(_ in O=r.defaultProps,O)E[_]===void 0&&(E[_]=O[_]);return{$$typeof:c,type:r,key:j,ref:k,props:E,_owner:V.current}}function be(r,s){return{$$typeof:c,type:r.type,key:s,ref:r.ref,props:r.props,_owner:r._owner}}function pe(r){return typeof r=="object"&&r!==null&&r.$$typeof===c}function De(r){var s={"=":"=0",":":"=2"};return"$"+r.replace(/[=:]/g,function(h){return s[h]})}var Ee=/\/+/g;function de(r,s){return typeof r=="object"&&r!==null&&r.key!=null?De(""+r.key):s.toString(36)}function se(r,s,h,_,E){var j=typeof r;(j==="undefined"||j==="boolean")&&(r=null);var k=!1;if(r===null)k=!0;else switch(j){case"string":case"number":k=!0;break;case"object":switch(r.$$typeof){case c:case a:k=!0}}if(k)return k=r,E=E(k),r=_===""?"."+de(k,0):_,K(E)?(h="",r!=null&&(h=r.replace(Ee,"$&/")+"/"),se(E,s,h,"",function(L){return L})):E!=null&&(pe(E)&&(E=be(E,h+(!E.key||k&&k.key===E.key?"":(""+E.key).replace(Ee,"$&/")+"/")+r)),s.push(E)),1;if(k=0,_=_===""?".":_+":",K(r))for(var O=0;O<r.length;O++){j=r[O];var C=_+de(j,O);k+=se(j,s,h,C,E)}else if(C=J(r),typeof C=="function")for(r=C.call(r),O=0;!(j=r.next()).done;)j=j.value,C=_+de(j,O++),k+=se(j,s,h,C,E);else if(j==="object")throw s=String(r),Error("Objects are not valid as a React child (found: "+(s==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":s)+"). If you meant to render a collection of children, use an array instead.");return k}function H(r,s,h){if(r==null)return r;var _=[],E=0;return se(r,_,"","",function(j){return s.call(h,j,E++)}),_}function X(r){if(r._status===-1){var s=r._result;s=s(),s.then(function(h){(r._status===0||r._status===-1)&&(r._status=1,r._result=h)},function(h){(r._status===0||r._status===-1)&&(r._status=2,r._result=h)}),r._status===-1&&(r._status=0,r._result=s)}if(r._status===1)return r._result.default;throw r._result}var f={current:null},ne={transition:null},we={ReactCurrentDispatcher:f,ReactCurrentBatchConfig:ne,ReactCurrentOwner:V};function ue(){throw Error("act(...) is not supported in production builds of React.")}return M.Children={map:H,forEach:function(r,s,h){H(r,function(){s.apply(this,arguments)},h)},count:function(r){var s=0;return H(r,function(){s++}),s},toArray:function(r){return H(r,function(s){return s})||[]},only:function(r){if(!pe(r))throw Error("React.Children.only expected to receive a single React element child.");return r}},M.Component=B,M.Fragment=d,M.Profiler=g,M.PureComponent=ae,M.StrictMode=m,M.Suspense=$,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=we,M.act=ue,M.cloneElement=function(r,s,h){if(r==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+r+".");var _=Z({},r.props),E=r.key,j=r.ref,k=r._owner;if(s!=null){if(s.ref!==void 0&&(j=s.ref,k=V.current),s.key!==void 0&&(E=""+s.key),r.type&&r.type.defaultProps)var O=r.type.defaultProps;for(C in s)F.call(s,C)&&!Q.hasOwnProperty(C)&&(_[C]=s[C]===void 0&&O!==void 0?O[C]:s[C])}var C=arguments.length-2;if(C===1)_.children=h;else if(1<C){O=Array(C);for(var L=0;L<C;L++)O[L]=arguments[L+2];_.children=O}return{$$typeof:c,type:r.type,key:E,ref:j,props:_,_owner:k}},M.createContext=function(r){return r={$$typeof:I,_currentValue:r,_currentValue2:r,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},r.Provider={$$typeof:b,_context:r},r.Consumer=r},M.createElement=re,M.createFactory=function(r){var s=re.bind(null,r);return s.type=r,s},M.createRef=function(){return{current:null}},M.forwardRef=function(r){return{$$typeof:P,render:r}},M.isValidElement=pe,M.lazy=function(r){return{$$typeof:z,_payload:{_status:-1,_result:r},_init:X}},M.memo=function(r,s){return{$$typeof:q,type:r,compare:s===void 0?null:s}},M.startTransition=function(r){var s=ne.transition;ne.transition={};try{r()}finally{ne.transition=s}},M.unstable_act=ue,M.useCallback=function(r,s){return f.current.useCallback(r,s)},M.useContext=function(r){return f.current.useContext(r)},M.useDebugValue=function(){},M.useDeferredValue=function(r){return f.current.useDeferredValue(r)},M.useEffect=function(r,s){return f.current.useEffect(r,s)},M.useId=function(){return f.current.useId()},M.useImperativeHandle=function(r,s,h){return f.current.useImperativeHandle(r,s,h)},M.useInsertionEffect=function(r,s){return f.current.useInsertionEffect(r,s)},M.useLayoutEffect=function(r,s){return f.current.useLayoutEffect(r,s)},M.useMemo=function(r,s){return f.current.useMemo(r,s)},M.useReducer=function(r,s,h){return f.current.useReducer(r,s,h)},M.useRef=function(r){return f.current.useRef(r)},M.useState=function(r){return f.current.useState(r)},M.useSyncExternalStore=function(r,s,h){return f.current.useSyncExternalStore(r,s,h)},M.useTransition=function(){return f.current.useTransition()},M.version="18.3.1",M}var Ke={exports:{}};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react.development.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/Be.exports;var Kr;function gn(){return Kr||(Kr=1,function(c,a){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var d="18.3.1",m=Symbol.for("react.element"),g=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),q=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),ge=Symbol.for("react.offscreen"),K=Symbol.iterator,_e="@@iterator";function ae(e){if(e===null||typeof e!="object")return null;var t=K&&e[K]||e[_e];return typeof t=="function"?t:null}var ie={current:null},B={transition:null},F={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},V={current:null},Q={},te=null;function be(e){te=e}Q.setExtraStackFrame=function(e){te=e},Q.getCurrentStack=null,Q.getStackAddendum=function(){var e="";te&&(e+=te);var t=Q.getCurrentStack;return t&&(e+=t()||""),e};var pe=!1,Me=!1,Ee=!1,de=!1,se=!1,H={ReactCurrentDispatcher:ie,ReactCurrentBatchConfig:B,ReactCurrentOwner:V};H.ReactDebugCurrentFrame=Q,H.ReactCurrentActQueue=F;function X(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];re("warn",e,n)}}function f(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];re("error",e,n)}}function re(e,t,n){{var o=H.ReactDebugCurrentFrame,u=o.getStackAddendum();u!==""&&(t+="%s",n=n.concat([u]));var p=n.map(function(l){return String(l)});p.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,p)}}var we={};function ue(e,t){{var n=e.constructor,o=n&&(n.displayName||n.name)||"ReactClass",u=o+"."+t;if(we[u])return;f("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,o),we[u]=!0}}var r={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){ue(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,o){ue(e,"replaceState")},enqueueSetState:function(e,t,n,o){ue(e,"setState")}},s=Object.assign,h={};Object.freeze(h);function _(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||r}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};{var E={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},P=function(e,t){Object.defineProperty(_.prototype,e,{get:function(){X("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var k in E)E.hasOwnProperty(k)&&P(k,E[k])}function O(){}O.prototype=_.prototype;function C(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||r}var L=C.prototype=new O;L.constructor=C,s(L,_.prototype),L.isPureReactComponent=!0;function Nt(){var e={current:null};return Object.seal(e),e}var Ut=Array.isArray;function Ce(e){return Ut(e)}function zt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function Vt(e){try{return Ge(e),!1}catch{return!0}}function Ge(e){return""+e}function Se(e){if(Vt(e))return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",zt(e)),Ge(e)}function qt(e,t,n){var o=e.displayName;if(o)return o;var u=t.displayName||t.name||"";return u!==""?n+"("+u+")":n}function Je(e){return e.displayName||"Context"}function ee(e){if(e==null)return null;if(typeof e.tag=="number"&&f("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 b:return"Fragment";case g:return"Portal";case I:return"Profiler";case j:return"StrictMode";case U:return"Suspense";case J:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case q:var t=e;return Je(t)+".Consumer";case x:var n=e;return Je(n._context)+".Provider";case z:return qt(e,e.render,"ForwardRef");case Y:var o=e.displayName||null;return o!==null?o:ee(e.type)||"Memo";case Z:{var u=e,p=u._payload,l=u._init;try{return ee(l(p))}catch{return null}}}return null}var ye=Object.prototype.hasOwnProperty,Ze={key:!0,ref:!0,__self:!0,__source:!0},Qe,Xe,Fe;Fe={};function et(e){if(ye.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function tt(e){if(ye.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Yt(e,t){var n=function(){Qe||(Qe=!0,f("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function Ht(e,t){var n=function(){Xe||(Xe=!0,f("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}function Wt(e){if(typeof e.ref=="string"&&V.current&&e.__self&&V.current.stateNode!==e.__self){var t=ee(V.current.type);Fe[t]||(f('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,e.ref),Fe[t]=!0)}}var $e=function(e,t,n,o,u,p,l){var y={$$typeof:m,type:e,key:t,ref:n,props:l,_owner:p};return y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(y,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(y,"_source",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y};function Kt(e,t,n){var o,u={},p=null,l=null,y=null,v=null;if(t!=null){et(t)&&(l=t.ref,Wt(t)),tt(t)&&(Se(t.key),p=""+t.key),y=t.__self===void 0?null:t.__self,v=t.__source===void 0?null:t.__source;for(o in t)ye.call(t,o)&&!Ze.hasOwnProperty(o)&&(u[o]=t[o])}var w=arguments.length-2;if(w===1)u.children=n;else if(w>1){for(var S=Array(w),R=0;R<w;R++)S[R]=arguments[R+2];Object.freeze&&Object.freeze(S),u.children=S}if(e&&e.defaultProps){var T=e.defaultProps;for(o in T)u[o]===void 0&&(u[o]=T[o])}if(p||l){var A=typeof e=="function"?e.displayName||e.name||"Unknown":e;p&&Yt(u,A),l&&Ht(u,A)}return $e(e,p,l,y,v,V.current,u)}function Bt(e,t){var n=$e(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n}function Gt(e,t,n){if(e==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o,u=s({},e.props),p=e.key,l=e.ref,y=e._self,v=e._source,w=e._owner;if(t!=null){et(t)&&(l=t.ref,w=V.current),tt(t)&&(Se(t.key),p=""+t.key);var S;e.type&&e.type.defaultProps&&(S=e.type.defaultProps);for(o in t)ye.call(t,o)&&!Ze.hasOwnProperty(o)&&(t[o]===void 0&&S!==void 0?u[o]=S[o]:u[o]=t[o])}var R=arguments.length-2;if(R===1)u.children=n;else if(R>1){for(var T=Array(R),A=0;A<R;A++)T[A]=arguments[A+2];u.children=T}return $e(e.type,p,l,y,v,w,u)}function ce(e){return typeof e=="object"&&e!==null&&e.$$typeof===m}var rt=".",Jt=":";function Zt(e){var t=/[=:]/g,n={"=":"=0",":":"=2"},o=e.replace(t,function(u){return n[u]});return"$"+o}var nt=!1,Qt=/\/+/g;function ot(e){return e.replace(Qt,"$&/")}function xe(e,t){return typeof e=="object"&&e!==null&&e.key!=null?(Se(e.key),Zt(""+e.key)):t.toString(36)}function Re(e,t,n,o,u){var p=typeof e;(p==="undefined"||p==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(p){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case m:case g:l=!0}}if(l){var y=e,v=u(y),w=o===""?rt+xe(y,0):o;if(Ce(v)){var S="";w!=null&&(S=ot(w)+"/"),Re(v,t,S,"",function(Yr){return Yr})}else v!=null&&(ce(v)&&(v.key&&(!y||y.key!==v.key)&&Se(v.key),v=Bt(v,n+(v.key&&(!y||y.key!==v.key)?ot(""+v.key)+"/":"")+w)),t.push(v));return 1}var R,T,A=0,$=o===""?rt:o+Jt;if(Ce(e))for(var De=0;De<e.length;De++)R=e[De],T=$+xe(R,De),A+=Re(R,t,n,T,u);else{var We=ae(e);if(typeof We=="function"){var Pt=e;We===Pt.entries&&(nt||X("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),nt=!0);for(var Vr=We.call(Pt),It,qr=0;!(It=Vr.next()).done;)R=It.value,T=$+xe(R,qr++),A+=Re(R,t,n,T,u)}else if(p==="object"){var jt=String(e);throw new Error("Objects are not valid as a React child (found: "+(jt==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":jt)+"). If you meant to render a collection of children, use an array instead.")}}return A}function ke(e,t,n){if(e==null)return e;var o=[],u=0;return Re(e,o,"","",function(p){return t.call(n,p,u++)}),o}function Xt(e){var t=0;return ke(e,function(){t++}),t}function er(e,t,n){ke(e,function(){t.apply(this,arguments)},n)}function tr(e){return ke(e,function(t){return t})||[]}function rr(e){if(!ce(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}function nr(e){var t={$$typeof:q,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:x,_context:t};var n=!1,o=!1,u=!1;{var p={$$typeof:q,_context:t};Object.defineProperties(p,{Provider:{get:function(){return o||(o=!0,f("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(l){t.Provider=l}},_currentValue:{get:function(){return t._currentValue},set:function(l){t._currentValue=l}},_currentValue2:{get:function(){return t._currentValue2},set:function(l){t._currentValue2=l}},_threadCount:{get:function(){return t._threadCount},set:function(l){t._threadCount=l}},Consumer:{get:function(){return n||(n=!0,f("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(l){u||(X("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",l),u=!0)}}}),t.Consumer=p}return t._currentRenderer=null,t._currentRenderer2=null,t}var me=-1,Le=0,at=1,or=2;function ar(e){if(e._status===me){var t=e._result,n=t();if(n.then(function(p){if(e._status===Le||e._status===me){var l=e;l._status=at,l._result=p}},function(p){if(e._status===Le||e._status===me){var l=e;l._status=or,l._result=p}}),e._status===me){var o=e;o._status=Le,o._result=n}}if(e._status===at){var u=e._result;return u===void 0&&f(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
17
|
+
*/Ke.exports;var Br;function gn(){return Br||(Br=1,function(c,a){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var d="18.3.1",m=Symbol.for("react.element"),g=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),$=Symbol.for("react.provider"),q=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),ge=Symbol.for("react.offscreen"),B=Symbol.iterator,_e="@@iterator";function ae(e){if(e===null||typeof e!="object")return null;var t=B&&e[B]||e[_e];return typeof t=="function"?t:null}var ie={current:null},K={transition:null},F={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},V={current:null},Q={},re=null;function be(e){re=e}Q.setExtraStackFrame=function(e){re=e},Q.getCurrentStack=null,Q.getStackAddendum=function(){var e="";re&&(e+=re);var t=Q.getCurrentStack;return t&&(e+=t()||""),e};var pe=!1,De=!1,Ee=!1,de=!1,se=!1,H={ReactCurrentDispatcher:ie,ReactCurrentBatchConfig:K,ReactCurrentOwner:V};H.ReactDebugCurrentFrame=Q,H.ReactCurrentActQueue=F;function X(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];ne("warn",e,n)}}function f(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];ne("error",e,n)}}function ne(e,t,n){{var o=H.ReactDebugCurrentFrame,u=o.getStackAddendum();u!==""&&(t+="%s",n=n.concat([u]));var p=n.map(function(l){return String(l)});p.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,p)}}var we={};function ue(e,t){{var n=e.constructor,o=n&&(n.displayName||n.name)||"ReactClass",u=o+"."+t;if(we[u])return;f("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,o),we[u]=!0}}var r={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){ue(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,o){ue(e,"replaceState")},enqueueSetState:function(e,t,n,o){ue(e,"setState")}},s=Object.assign,h={};Object.freeze(h);function _(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||r}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};{var E={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},j=function(e,t){Object.defineProperty(_.prototype,e,{get:function(){X("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var k in E)E.hasOwnProperty(k)&&j(k,E[k])}function O(){}O.prototype=_.prototype;function C(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||r}var L=C.prototype=new O;L.constructor=C,s(L,_.prototype),L.isPureReactComponent=!0;function Nt(){var e={current:null};return Object.seal(e),e}var Ut=Array.isArray;function Ce(e){return Ut(e)}function zt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function Vt(e){try{return Ge(e),!1}catch{return!0}}function Ge(e){return""+e}function Se(e){if(Vt(e))return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",zt(e)),Ge(e)}function qt(e,t,n){var o=e.displayName;if(o)return o;var u=t.displayName||t.name||"";return u!==""?n+"("+u+")":n}function Je(e){return e.displayName||"Context"}function ee(e){if(e==null)return null;if(typeof e.tag=="number"&&f("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 b:return"Fragment";case g:return"Portal";case P:return"Profiler";case I:return"StrictMode";case U:return"Suspense";case J:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case q:var t=e;return Je(t)+".Consumer";case $:var n=e;return Je(n._context)+".Provider";case z:return qt(e,e.render,"ForwardRef");case Y:var o=e.displayName||null;return o!==null?o:ee(e.type)||"Memo";case Z:{var u=e,p=u._payload,l=u._init;try{return ee(l(p))}catch{return null}}}return null}var ye=Object.prototype.hasOwnProperty,Ze={key:!0,ref:!0,__self:!0,__source:!0},Qe,Xe,Fe;Fe={};function et(e){if(ye.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function tt(e){if(ye.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Yt(e,t){var n=function(){Qe||(Qe=!0,f("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function Ht(e,t){var n=function(){Xe||(Xe=!0,f("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}function Wt(e){if(typeof e.ref=="string"&&V.current&&e.__self&&V.current.stateNode!==e.__self){var t=ee(V.current.type);Fe[t]||(f('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,e.ref),Fe[t]=!0)}}var $e=function(e,t,n,o,u,p,l){var y={$$typeof:m,type:e,key:t,ref:n,props:l,_owner:p};return y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(y,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(y,"_source",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y};function Bt(e,t,n){var o,u={},p=null,l=null,y=null,v=null;if(t!=null){et(t)&&(l=t.ref,Wt(t)),tt(t)&&(Se(t.key),p=""+t.key),y=t.__self===void 0?null:t.__self,v=t.__source===void 0?null:t.__source;for(o in t)ye.call(t,o)&&!Ze.hasOwnProperty(o)&&(u[o]=t[o])}var w=arguments.length-2;if(w===1)u.children=n;else if(w>1){for(var S=Array(w),R=0;R<w;R++)S[R]=arguments[R+2];Object.freeze&&Object.freeze(S),u.children=S}if(e&&e.defaultProps){var T=e.defaultProps;for(o in T)u[o]===void 0&&(u[o]=T[o])}if(p||l){var A=typeof e=="function"?e.displayName||e.name||"Unknown":e;p&&Yt(u,A),l&&Ht(u,A)}return $e(e,p,l,y,v,V.current,u)}function Kt(e,t){var n=$e(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n}function Gt(e,t,n){if(e==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o,u=s({},e.props),p=e.key,l=e.ref,y=e._self,v=e._source,w=e._owner;if(t!=null){et(t)&&(l=t.ref,w=V.current),tt(t)&&(Se(t.key),p=""+t.key);var S;e.type&&e.type.defaultProps&&(S=e.type.defaultProps);for(o in t)ye.call(t,o)&&!Ze.hasOwnProperty(o)&&(t[o]===void 0&&S!==void 0?u[o]=S[o]:u[o]=t[o])}var R=arguments.length-2;if(R===1)u.children=n;else if(R>1){for(var T=Array(R),A=0;A<R;A++)T[A]=arguments[A+2];u.children=T}return $e(e.type,p,l,y,v,w,u)}function ce(e){return typeof e=="object"&&e!==null&&e.$$typeof===m}var rt=".",Jt=":";function Zt(e){var t=/[=:]/g,n={"=":"=0",":":"=2"},o=e.replace(t,function(u){return n[u]});return"$"+o}var nt=!1,Qt=/\/+/g;function ot(e){return e.replace(Qt,"$&/")}function xe(e,t){return typeof e=="object"&&e!==null&&e.key!=null?(Se(e.key),Zt(""+e.key)):t.toString(36)}function Re(e,t,n,o,u){var p=typeof e;(p==="undefined"||p==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(p){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case m:case g:l=!0}}if(l){var y=e,v=u(y),w=o===""?rt+xe(y,0):o;if(Ce(v)){var S="";w!=null&&(S=ot(w)+"/"),Re(v,t,S,"",function(Yr){return Yr})}else v!=null&&(ce(v)&&(v.key&&(!y||y.key!==v.key)&&Se(v.key),v=Kt(v,n+(v.key&&(!y||y.key!==v.key)?ot(""+v.key)+"/":"")+w)),t.push(v));return 1}var R,T,A=0,x=o===""?rt:o+Jt;if(Ce(e))for(var Me=0;Me<e.length;Me++)R=e[Me],T=x+xe(R,Me),A+=Re(R,t,n,T,u);else{var We=ae(e);if(typeof We=="function"){var Pt=e;We===Pt.entries&&(nt||X("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),nt=!0);for(var Vr=We.call(Pt),It,qr=0;!(It=Vr.next()).done;)R=It.value,T=x+xe(R,qr++),A+=Re(R,t,n,T,u)}else if(p==="object"){var jt=String(e);throw new Error("Objects are not valid as a React child (found: "+(jt==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":jt)+"). If you meant to render a collection of children, use an array instead.")}}return A}function ke(e,t,n){if(e==null)return e;var o=[],u=0;return Re(e,o,"","",function(p){return t.call(n,p,u++)}),o}function Xt(e){var t=0;return ke(e,function(){t++}),t}function er(e,t,n){ke(e,function(){t.apply(this,arguments)},n)}function tr(e){return ke(e,function(t){return t})||[]}function rr(e){if(!ce(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}function nr(e){var t={$$typeof:q,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:$,_context:t};var n=!1,o=!1,u=!1;{var p={$$typeof:q,_context:t};Object.defineProperties(p,{Provider:{get:function(){return o||(o=!0,f("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(l){t.Provider=l}},_currentValue:{get:function(){return t._currentValue},set:function(l){t._currentValue=l}},_currentValue2:{get:function(){return t._currentValue2},set:function(l){t._currentValue2=l}},_threadCount:{get:function(){return t._threadCount},set:function(l){t._threadCount=l}},Consumer:{get:function(){return n||(n=!0,f("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(l){u||(X("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",l),u=!0)}}}),t.Consumer=p}return t._currentRenderer=null,t._currentRenderer2=null,t}var me=-1,Le=0,at=1,or=2;function ar(e){if(e._status===me){var t=e._result,n=t();if(n.then(function(p){if(e._status===Le||e._status===me){var l=e;l._status=at,l._result=p}},function(p){if(e._status===Le||e._status===me){var l=e;l._status=or,l._result=p}}),e._status===me){var o=e;o._status=Le,o._result=n}}if(e._status===at){var u=e._result;return u===void 0&&f(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
18
18
|
|
|
19
19
|
Your code should look like:
|
|
20
20
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -22,12 +22,12 @@ Your code should look like:
|
|
|
22
22
|
Did you accidentally put curly braces around the import?`,u),"default"in u||f(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
23
23
|
|
|
24
24
|
Your code should look like:
|
|
25
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,u),u.default}else throw e._result}function ir(e){var t={_status:me,_result:e},n={$$typeof:Z,_payload:t,_init:ar};{var o,u;Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return o},set:function(p){f("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),o=p,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return u},set:function(p){f("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),u=p,Object.defineProperty(n,"propTypes",{enumerable:!0})}}})}return n}function sr(e){e!=null&&e.$$typeof===Y?f("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e!="function"?f("forwardRef requires a render function but was given %s.",e===null?"null":typeof e):e.length!==0&&e.length!==2&&f("forwardRef render functions accept exactly two parameters: props and ref. %s",e.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),e!=null&&(e.defaultProps!=null||e.propTypes!=null)&&f("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var t={$$typeof:z,render:e};{var n;Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(o){n=o,!e.name&&!e.displayName&&(e.displayName=o)}})}return t}var it;it=Symbol.for("react.module.reference");function st(e){return!!(typeof e=="string"||typeof e=="function"||e===b||e===
|
|
25
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,u),u.default}else throw e._result}function ir(e){var t={_status:me,_result:e},n={$$typeof:Z,_payload:t,_init:ar};{var o,u;Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return o},set:function(p){f("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),o=p,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return u},set:function(p){f("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),u=p,Object.defineProperty(n,"propTypes",{enumerable:!0})}}})}return n}function sr(e){e!=null&&e.$$typeof===Y?f("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e!="function"?f("forwardRef requires a render function but was given %s.",e===null?"null":typeof e):e.length!==0&&e.length!==2&&f("forwardRef render functions accept exactly two parameters: props and ref. %s",e.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),e!=null&&(e.defaultProps!=null||e.propTypes!=null)&&f("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var t={$$typeof:z,render:e};{var n;Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(o){n=o,!e.name&&!e.displayName&&(e.displayName=o)}})}return t}var it;it=Symbol.for("react.module.reference");function st(e){return!!(typeof e=="string"||typeof e=="function"||e===b||e===P||se||e===I||e===U||e===J||de||e===ge||pe||De||Ee||typeof e=="object"&&e!==null&&(e.$$typeof===Z||e.$$typeof===Y||e.$$typeof===$||e.$$typeof===q||e.$$typeof===z||e.$$typeof===it||e.getModuleId!==void 0))}function ur(e,t){st(e)||f("memo: The first argument must be a component. Instead received: %s",e===null?"null":typeof e);var n={$$typeof:Y,type:e,compare:t===void 0?null:t};{var o;Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return o},set:function(u){o=u,!e.name&&!e.displayName&&(e.displayName=u)}})}return n}function N(){var e=ie.current;return e===null&&f(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
26
26
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
27
27
|
2. You might be breaking the Rules of Hooks
|
|
28
28
|
3. You might have more than one copy of React in the same app
|
|
29
29
|
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function cr(e){var t=N();if(e._context!==void 0){var n=e._context;n.Consumer===e?f("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&f("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)}function lr(e){var t=N();return t.useState(e)}function fr(e,t,n){var o=N();return o.useReducer(e,t,n)}function pr(e){var t=N();return t.useRef(e)}function dr(e,t){var n=N();return n.useEffect(e,t)}function yr(e,t){var n=N();return n.useInsertionEffect(e,t)}function mr(e,t){var n=N();return n.useLayoutEffect(e,t)}function hr(e,t){var n=N();return n.useCallback(e,t)}function vr(e,t){var n=N();return n.useMemo(e,t)}function gr(e,t,n){var o=N();return o.useImperativeHandle(e,t,n)}function _r(e,t){{var n=N();return n.useDebugValue(e,t)}}function br(){var e=N();return e.useTransition()}function Er(e){var t=N();return t.useDeferredValue(e)}function wr(){var e=N();return e.useId()}function Cr(e,t,n){var o=N();return o.useSyncExternalStore(e,t,n)}var he=0,ut,ct,lt,ft,pt,dt,yt;function mt(){}mt.__reactDisabledLog=!0;function Sr(){{if(he===0){ut=console.log,ct=console.info,lt=console.warn,ft=console.error,pt=console.group,dt=console.groupCollapsed,yt=console.groupEnd;var e={configurable:!0,enumerable:!0,value:mt,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}he++}}function Rr(){{if(he--,he===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:s({},e,{value:ut}),info:s({},e,{value:ct}),warn:s({},e,{value:lt}),error:s({},e,{value:ft}),group:s({},e,{value:pt}),groupCollapsed:s({},e,{value:dt}),groupEnd:s({},e,{value:yt})})}he<0&&f("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ne=H.ReactCurrentDispatcher,Ue;function Oe(e,t,n){{if(Ue===void 0)try{throw Error()}catch(u){var o=u.stack.trim().match(/\n( *(at )?)/);Ue=o&&o[1]||""}return`
|
|
30
|
-
`+Ue+e}}var ze=!1,Te;{var kr=typeof WeakMap=="function"?WeakMap:Map;Te=new kr}function ht(e,t){if(!e||ze)return"";{var n=Te.get(e);if(n!==void 0)return n}var o;ze=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=Ne.current,Ne.current=null,Sr();try{if(t){var l=function(){throw Error()};if(Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(
|
|
30
|
+
`+Ue+e}}var ze=!1,Te;{var kr=typeof WeakMap=="function"?WeakMap:Map;Te=new kr}function ht(e,t){if(!e||ze)return"";{var n=Te.get(e);if(n!==void 0)return n}var o;ze=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=Ne.current,Ne.current=null,Sr();try{if(t){var l=function(){throw Error()};if(Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(x){o=x}Reflect.construct(e,[],l)}else{try{l.call()}catch(x){o=x}e.call(l.prototype)}}else{try{throw Error()}catch(x){o=x}e()}}catch(x){if(x&&o&&typeof x.stack=="string"){for(var y=x.stack.split(`
|
|
31
31
|
`),v=o.stack.split(`
|
|
32
32
|
`),w=y.length-1,S=v.length-1;w>=1&&S>=0&&y[w]!==v[S];)S--;for(;w>=1&&S>=0;w--,S--)if(y[w]!==v[S]){if(w!==1||S!==1)do if(w--,S--,S<0||y[w]!==v[S]){var R=`
|
|
33
33
|
`+y[w].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),typeof e=="function"&&Te.set(e,R),R}while(w>=1&&S>=0);break}}}finally{ze=!1,Ne.current=p,Rr(),Error.prepareStackTrace=u}var T=e?e.displayName||e.name:"",A=T?Oe(T):"";return typeof e=="function"&&Te.set(e,A),A}function Or(e,t,n){return ht(e,!1)}function Tr(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function Pe(e,t,n){if(e==null)return"";if(typeof e=="function")return ht(e,Tr(e));if(typeof e=="string")return Oe(e);switch(e){case U:return Oe("Suspense");case J:return Oe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case z:return Or(e.render);case Y:return Pe(e.type,t,n);case Z:{var o=e,u=o._payload,p=o._init;try{return Pe(p(u),t,n)}catch{}}}return""}var vt={},gt=H.ReactDebugCurrentFrame;function Ie(e){if(e){var t=e._owner,n=Pe(e.type,e._source,t?t.type:null);gt.setExtraStackFrame(n)}else gt.setExtraStackFrame(null)}function Pr(e,t,n,o,u){{var p=Function.call.bind(ye);for(var l in e)if(p(e,l)){var y=void 0;try{if(typeof e[l]!="function"){var v=Error((o||"React class")+": "+n+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}y=e[l](t,l,o,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(w){y=w}y&&!(y instanceof Error)&&(Ie(u),f("%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).",o||"React class",n,l,typeof y),Ie(null)),y instanceof Error&&!(y.message in vt)&&(vt[y.message]=!0,Ie(u),f("Failed %s type: %s",n,y.message),Ie(null))}}}function le(e){if(e){var t=e._owner,n=Pe(e.type,e._source,t?t.type:null);be(n)}else be(null)}var Ve;Ve=!1;function _t(){if(V.current){var e=ee(V.current.type);if(e)return`
|
|
@@ -36,11 +36,11 @@ Check the render method of \``+e+"`."}return""}function Ir(e){if(e!==void 0){var
|
|
|
36
36
|
|
|
37
37
|
Check your code at `+t+":"+n+"."}return""}function jr(e){return e!=null?Ir(e.__source):""}var bt={};function Ar(e){var t=_t();if(!t){var n=typeof e=="string"?e:e.displayName||e.name;n&&(t=`
|
|
38
38
|
|
|
39
|
-
Check the top-level render call using <`+n+">.")}return t}function Et(e,t){if(!(!e._store||e._store.validated||e.key!=null)){e._store.validated=!0;var n=Ar(t);if(!bt[n]){bt[n]=!0;var o="";e&&e._owner&&e._owner!==V.current&&(o=" It was passed a child from "+ee(e._owner.type)+"."),le(e),f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,o),le(null)}}}function wt(e,t){if(typeof e=="object"){if(Ce(e))for(var n=0;n<e.length;n++){var o=e[n];ce(o)&&Et(o,t)}else if(ce(e))e._store&&(e._store.validated=!0);else if(e){var u=ae(e);if(typeof u=="function"&&u!==e.entries)for(var p=u.call(e),l;!(l=p.next()).done;)ce(l.value)&&Et(l.value,t)}}}function Ct(e){{var t=e.type;if(t==null||typeof t=="string")return;var n;if(typeof t=="function")n=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===z||t.$$typeof===Y))n=t.propTypes;else return;if(n){var o=ee(t);Pr(n,e.props,"prop",o,e)}else if(t.PropTypes!==void 0&&!Ve){Ve=!0;var u=ee(t);f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function
|
|
39
|
+
Check the top-level render call using <`+n+">.")}return t}function Et(e,t){if(!(!e._store||e._store.validated||e.key!=null)){e._store.validated=!0;var n=Ar(t);if(!bt[n]){bt[n]=!0;var o="";e&&e._owner&&e._owner!==V.current&&(o=" It was passed a child from "+ee(e._owner.type)+"."),le(e),f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,o),le(null)}}}function wt(e,t){if(typeof e=="object"){if(Ce(e))for(var n=0;n<e.length;n++){var o=e[n];ce(o)&&Et(o,t)}else if(ce(e))e._store&&(e._store.validated=!0);else if(e){var u=ae(e);if(typeof u=="function"&&u!==e.entries)for(var p=u.call(e),l;!(l=p.next()).done;)ce(l.value)&&Et(l.value,t)}}}function Ct(e){{var t=e.type;if(t==null||typeof t=="string")return;var n;if(typeof t=="function")n=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===z||t.$$typeof===Y))n=t.propTypes;else return;if(n){var o=ee(t);Pr(n,e.props,"prop",o,e)}else if(t.PropTypes!==void 0&&!Ve){Ve=!0;var u=ee(t);f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Mr(e){{for(var t=Object.keys(e.props),n=0;n<t.length;n++){var o=t[n];if(o!=="children"&&o!=="key"){le(e),f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),le(null);break}}e.ref!==null&&(le(e),f("Invalid attribute `ref` supplied to `React.Fragment`."),le(null))}}function St(e,t,n){var o=st(e);if(!o){var u="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" 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=jr(t);p?u+=p:u+=_t();var l;e===null?l="null":Ce(e)?l="array":e!==void 0&&e.$$typeof===m?(l="<"+(ee(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,f("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",l,u)}var y=Bt.apply(this,arguments);if(y==null)return y;if(o)for(var v=2;v<arguments.length;v++)wt(arguments[v],e);return e===b?Mr(y):Ct(y),y}var Rt=!1;function Dr(e){var t=St.bind(null,e);return t.type=e,Rt||(Rt=!0,X("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return X("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}function Fr(e,t,n){for(var o=Gt.apply(this,arguments),u=2;u<arguments.length;u++)wt(arguments[u],o.type);return Ct(o),o}function $r(e,t){var n=K.transition;K.transition={};var o=K.transition;K.transition._updatedFibers=new Set;try{e()}finally{if(K.transition=n,n===null&&o._updatedFibers){var u=o._updatedFibers.size;u>10&&X("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),o._updatedFibers.clear()}}}var kt=!1,je=null;function xr(e){if(je===null)try{var t=("require"+Math.random()).slice(0,7),n=c&&c[t];je=n.call(c,"timers").setImmediate}catch{je=function(u){kt===!1&&(kt=!0,typeof MessageChannel>"u"&&f("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var p=new MessageChannel;p.port1.onmessage=u,p.port2.postMessage(void 0)}}return je(e)}var fe=0,Ot=!1;function Tt(e){{var t=fe;fe++,F.current===null&&(F.current=[]);var n=F.isBatchingLegacy,o;try{if(F.isBatchingLegacy=!0,o=e(),!n&&F.didScheduleLegacyUpdate){var u=F.current;u!==null&&(F.didScheduleLegacyUpdate=!1,He(u))}}catch(T){throw Ae(t),T}finally{F.isBatchingLegacy=n}if(o!==null&&typeof o=="object"&&typeof o.then=="function"){var p=o,l=!1,y={then:function(T,A){l=!0,p.then(function(x){Ae(t),fe===0?qe(x,T,A):T(x)},function(x){Ae(t),A(x)})}};return!Ot&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){l||(Ot=!0,f("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),y}else{var v=o;if(Ae(t),fe===0){var w=F.current;w!==null&&(He(w),F.current=null);var S={then:function(T,A){F.current===null?(F.current=[],qe(v,T,A)):T(v)}};return S}else{var R={then:function(T,A){T(v)}};return R}}}}function Ae(e){e!==fe-1&&f("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),fe=e}function qe(e,t,n){{var o=F.current;if(o!==null)try{He(o),xr(function(){o.length===0?(F.current=null,t(e)):qe(e,t,n)})}catch(u){n(u)}else t(e)}}var Ye=!1;function He(e){if(!Ye){Ye=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do n=n(!0);while(n!==null)}e.length=0}catch(o){throw e=e.slice(t+1),o}finally{Ye=!1}}}var Lr=St,Nr=Fr,Ur=Dr,zr={map:ke,forEach:er,count:Xt,toArray:tr,only:rr};a.Children=zr,a.Component=_,a.Fragment=b,a.Profiler=P,a.PureComponent=C,a.StrictMode=I,a.Suspense=U,a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H,a.act=Tt,a.cloneElement=Nr,a.createContext=nr,a.createElement=Lr,a.createFactory=Ur,a.createRef=Nt,a.forwardRef=sr,a.isValidElement=ce,a.lazy=ir,a.memo=ur,a.startTransition=$r,a.unstable_act=Tt,a.useCallback=hr,a.useContext=cr,a.useDebugValue=_r,a.useDeferredValue=Er,a.useEffect=dr,a.useId=wr,a.useImperativeHandle=gr,a.useInsertionEffect=yr,a.useLayoutEffect=mr,a.useMemo=vr,a.useReducer=fr,a.useRef=pr,a.useState=lr,a.useSyncExternalStore=Cr,a.useTransition=br,a.version=d,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(Ke,Ke.exports)),Ke.exports}process.env.NODE_ENV==="production"?Dt.exports=vn():Dt.exports=gn();var _n=Dt.exports,bn=_n;function Kr(c,a,d){var m=typeof a=="function";bn.useEffect(function(){var g,b=!0,I=c(function(){return b});return Promise.resolve(I).then(function(P){g=P}),function(){b=!1,m&&a(g)}},m?d:a)}Hr.exports=Kr,Hr.exports.useAsyncEffect=Kr;const En=i.z.object({type:i.z.string(),loc:i.z.array(i.z.string()),msg:i.z.string(),url:i.z.string()}),wn=i.z.array(En),Cn=i.z.object({code:i.z.string(),message:i.z.string(),path:i.z.array(i.z.string())}),Sn=i.z.array(Cn),Rn={"failed to fetch":"Connection error: please double check if you are connected to the internet, then try again"},Ft=c=>{const a=c.toLowerCase().trim();return Rn[a]??c},kn=c=>{try{return typeof JSON.parse(c)=="object"}catch{return!1}},On=c=>c.length===1?Ft(c[0].msg):`Please fix the following errors:
|
|
40
40
|
${c.map(a=>`• ${Ft(a.msg)}`).join(`
|
|
41
41
|
`)}`,Tn=c=>`Encountered the following errors:
|
|
42
42
|
${c.map(a=>`- ${a.path.join("/")}: ${a.message}`).join(`
|
|
43
|
-
`)}`,Gr=c=>{if(c instanceof Error)if(kn(c.message)){const a=JSON.parse(c.message);return wn.safeParse(a).success?On(a):Sn.safeParse(a).success?Tn(a):c.message}else return Ft(c.message);if(typeof c=="object")try{return JSON.stringify(c)}catch(a){return a+""}else return c+""},oe=i.z.string().trim().min(1,{message:"Cannot be blank"}),
|
|
43
|
+
`)}`,Gr=c=>{if(c instanceof Error)if(kn(c.message)){const a=JSON.parse(c.message);return wn.safeParse(a).success?On(a):Sn.safeParse(a).success?Tn(a):c.message}else return Ft(c.message);if(typeof c=="object")try{return JSON.stringify(c)}catch(a){return a+""}else return c+""},oe=i.z.string().trim().min(1,{message:"Cannot be blank"}),te=i.z.string().trim().optional(),$t=c=>i.z.nullable(c.optional());var Be=(c=>(c.FIRST_NAME="firstName",c.LAST_NAME="lastName",c.EMAIL="email",c.ZIP_CODE="zipCode",c.CITY="city",c.STATE="state",c.COUNTRY="country",c.ADDRESS="address",c.PHONE="phone",c.PROMOTION_CODE="promotionCode",c))(Be||{});const Jr=i.z.nativeEnum(Be);var Zr=(c=>(c.CARD_NUMBER="cardNumber",c.CARD_EXPIRY="cardExpiry",c.CARD_CVC="cardCvc",c))(Zr||{});const Qr=i.z.nativeEnum(Zr),Pn=i.z.union([Jr,Qr]),Xr=i.z.object({provider:i.z.string(),processor_name:$t(i.z.string()),metadata:$t(i.z.record(i.z.string(),i.z.any()))}),In=i.z.object({id:i.z.string()});i.z.object({cardNumber:te,expiry:te,cvc:te}),i.z.object({backgroundColor:te,color:te,fontFamily:te,fontSize:te,fontWeight:te,margin:te,padding:te,letterSpacing:te,lineHeight:te});const G=i.z.enum(["LAYOUT","LOADED","BLUR","FOCUS","CHANGE","TOKENIZE_STARTED","CHECKOUT_STARTED","PAYMENT_FLOW_STARTED","TOKENIZE_SUCCESS","CHECKOUT_SUCCESS","LOAD_ERROR","VALIDATION_ERROR","TOKENIZE_ERROR","CHECKOUT_ERROR","SETUP_PAYMENT_METHOD_SUCCESS","TOKENIZE","CHECKOUT","START_PAYMENT_FLOW"]),jn=G.extract(["TOKENIZE_STARTED","CHECKOUT_STARTED"]),An=i.z.object({type:jn}),Mn=G.extract(["BLUR","FOCUS","CHANGE"]),Dn=i.z.object({type:Mn,elementType:Qr}),Fn=G.extract(["LOAD_ERROR","TOKENIZE_ERROR","CHECKOUT_ERROR"]),$n=i.z.object({type:Fn,message:oe}),xn=G.extract(["VALIDATION_ERROR"]),Ln=i.z.object({type:xn,elementType:Pn,errors:i.z.array(i.z.string())}),Nn=i.z.object({type:i.z.literal(G.enum.LAYOUT),height:oe}),Un=i.z.object({type:i.z.literal(G.enum.LOADED),sessionId:oe,totalAmountAtoms:i.z.number(),currency:te,checkoutPaymentMethods:i.z.array(Xr)}),zn=i.z.object({type:i.z.literal(G.enum.PAYMENT_FLOW_STARTED),nextActionMetadata:i.z.record(i.z.string(),i.z.any()),paymentFlowMetadata:i.z.any().optional(),startPFMetadata:i.z.optional(i.z.record(i.z.string(),i.z.any()))}),Vn=i.z.object({type:i.z.literal(G.enum.SETUP_PAYMENT_METHOD_SUCCESS),paymentMethodId:i.z.string()}),qn=i.z.object({firstName:oe,lastName:oe,email:oe,zipCode:oe,country:oe,promotionCode:te}),Yn=G.extract(["TOKENIZE","CHECKOUT","START_PAYMENT_FLOW"]),en=i.z.object({type:Yn,sessionId:oe,checkoutPaymentMethod:Xr,paymentFlowMetadata:i.z.any().optional(),doNotUseLegacyCCFlow:i.z.boolean().optional(),existingCCPMId:te}).extend(qn.shape),Hn=i.z.object({type:i.z.literal(G.enum.TOKENIZE_SUCCESS),isReadyForCheckout:i.z.boolean()}),Wn=i.z.object({type:i.z.literal(G.enum.CHECKOUT_SUCCESS),invoiceUrls:i.z.array(i.z.string()),subscriptionIds:i.z.array(i.z.string()),customerId:i.z.string()}),Bn=i.z.discriminatedUnion("type",[An,Dn,$n,Ln,Nn,Un,en,Hn,Wn,zn,Vn]),Kn=i.z.object({payload:Bn,nonce:oe,formId:oe,elementId:oe});i.z.object({amountAtom:i.z.number(),currency:oe}),i.z.object({secure_token:i.z.string(),promotion_code:i.z.string().optional()}),i.z.object({secure_token:i.z.string(),existing_cc_pm_id:$t(i.z.string())});const Gn=i.z.object({payment_methods:i.z.array(In)}),Jn=c=>{const a={};return Object.entries(c).forEach(([d,m])=>{try{const g=Jr.parse(d);Array.isArray(m)?a[g]=m:Array.isArray(m._errors)&&(a[g]=m._errors)}catch{return}}),a},Zn={usd:"usd",brl:"brl"},xt=async c=>{for(let a=0;a<10;a++)rn()||await Qn(500);if(!rn())throw new Error("Stripe JS not found.");return new Stripe(c)},tn=async(c,a,d,m)=>{const g=await xt(c),b=Zn[d.toLowerCase().trim()];return g.paymentRequest({country:"US",currency:b,total:{label:"Total",amount:a,pending:m},requestPayerName:!0,requestPayerEmail:!0})},Qn=c=>new Promise(a=>{setTimeout(a,c)}),rn=()=>"Stripe"in window,Xn=async c=>new Promise((a,d)=>{try{c.on("paymentmethod",async m=>{a(m)}),c.on("cancel",()=>{d(new Error("Payment cancelled, please click Submit again to pay"))})}catch(m){d(m)}}),eo=c=>{const a=c==null?void 0:c.stripe_pk;if(typeof a!="string")throw new Error("Invalid: stripe_pk not passed in checkout payment method");return a},to=async(c,a)=>{const d=c.nextActionMetadata;if(!c.paymentFlowMetadata||!c.paymentFlowMetadata.stripePmId)throw new Error(`Invalid payment flow metadata format: ${JSON.stringify(c.paymentFlowMetadata)}`);if(!d.stripe_pk||!d.client_secret)throw new Error(`Invalid next action metadata format: ${JSON.stringify(d)}`);if(a.paymentMethod.id!==c.paymentFlowMetadata.stripePmId)throw new Error(`PM ID mismatch: ${a.paymentMethod.id} != ${c.paymentFlowMetadata.stripePmId}`);const m=await(await xt(d.stripe_pk)).confirmCardSetup(d.client_secret,{payment_method:c.paymentFlowMetadata.stripePmId});if(m.error)throw a.complete("fail"),new Error(`Payment failed: ${m.error.message??"unknown"}`);a.complete("success")},ro=async c=>{var a,d,m,g;const b=c.nextActionMetadata,I=await(await xt(b.stripe_pk)).confirmCardSetup(b.client_secret,{payment_method:b.stripe_pm_id}),P=(a=I.setupIntent)==null?void 0:a.status;if(P!=="succeeded")throw P==="canceled"?new Error("Payment cancelled, please click Submit again to pay"):new Error(`${((d=I.error)==null?void 0:d.message)??((g=(m=I.setupIntent)==null?void 0:m.last_setup_error)==null?void 0:g.message)??"Payment failed, please click submit again to pay."}`)},no=c=>JSON.stringify(c),nn=(c,a)=>Array.from(c.querySelectorAll("[data-opid]")??[]).reduce((d,m)=>{const g=m.getAttribute("data-opid");return g?{...d,[g]:m.value}:d},a),At=(c,a,d,m,g,b,I)=>{const P=nn(d,{type:c,sessionId:a,checkoutPaymentMethod:g,paymentFlowMetadata:I,doNotUseLegacyCCFlow:b});(g.provider==="apple_pay"||g.provider==="google_pay"||g.provider==="stripe_link")&&(P[Be.ZIP_CODE]||(P[Be.ZIP_CODE]="00000"));const $=en.safeParse(P);if($.success)return $.data;{const q=$.error.format(),z=Jn(q);for(const[U,J]of Object.entries(z))m(U,J,U);return null}},oo=c=>{try{return Kn.parse(c)}catch(a){throw a}},on=(c,a,d,m,g)=>{const b={payload:m,nonce:mn.v4(),formId:a,elementId:d};c.postMessage(JSON.stringify(b),g)};var D={};/**
|
|
44
44
|
* @license React
|
|
45
45
|
* react.production.min.js
|
|
46
46
|
*
|
|
@@ -48,7 +48,7 @@ ${c.map(a=>`- ${a.path.join("/")}: ${a.message}`).join(`
|
|
|
48
48
|
*
|
|
49
49
|
* This source code is licensed under the MIT license found in the
|
|
50
50
|
* LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/var an;function ao(){if(an)return
|
|
51
|
+
*/var an;function ao(){if(an)return D;an=1;var c=Symbol.for("react.element"),a=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),b=Symbol.for("react.provider"),I=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),q=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),U=Symbol.iterator;function J(r){return r===null||typeof r!="object"?null:(r=U&&r[U]||r["@@iterator"],typeof r=="function"?r:null)}var Y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Z=Object.assign,ge={};function B(r,s,h){this.props=r,this.context=s,this.refs=ge,this.updater=h||Y}B.prototype.isReactComponent={},B.prototype.setState=function(r,s){if(typeof r!="object"&&typeof r!="function"&&r!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,r,s,"setState")},B.prototype.forceUpdate=function(r){this.updater.enqueueForceUpdate(this,r,"forceUpdate")};function _e(){}_e.prototype=B.prototype;function ae(r,s,h){this.props=r,this.context=s,this.refs=ge,this.updater=h||Y}var ie=ae.prototype=new _e;ie.constructor=ae,Z(ie,B.prototype),ie.isPureReactComponent=!0;var K=Array.isArray,F=Object.prototype.hasOwnProperty,V={current:null},Q={key:!0,ref:!0,__self:!0,__source:!0};function re(r,s,h){var _,E={},j=null,k=null;if(s!=null)for(_ in s.ref!==void 0&&(k=s.ref),s.key!==void 0&&(j=""+s.key),s)F.call(s,_)&&!Q.hasOwnProperty(_)&&(E[_]=s[_]);var O=arguments.length-2;if(O===1)E.children=h;else if(1<O){for(var C=Array(O),L=0;L<O;L++)C[L]=arguments[L+2];E.children=C}if(r&&r.defaultProps)for(_ in O=r.defaultProps,O)E[_]===void 0&&(E[_]=O[_]);return{$$typeof:c,type:r,key:j,ref:k,props:E,_owner:V.current}}function be(r,s){return{$$typeof:c,type:r.type,key:s,ref:r.ref,props:r.props,_owner:r._owner}}function pe(r){return typeof r=="object"&&r!==null&&r.$$typeof===c}function De(r){var s={"=":"=0",":":"=2"};return"$"+r.replace(/[=:]/g,function(h){return s[h]})}var Ee=/\/+/g;function de(r,s){return typeof r=="object"&&r!==null&&r.key!=null?De(""+r.key):s.toString(36)}function se(r,s,h,_,E){var j=typeof r;(j==="undefined"||j==="boolean")&&(r=null);var k=!1;if(r===null)k=!0;else switch(j){case"string":case"number":k=!0;break;case"object":switch(r.$$typeof){case c:case a:k=!0}}if(k)return k=r,E=E(k),r=_===""?"."+de(k,0):_,K(E)?(h="",r!=null&&(h=r.replace(Ee,"$&/")+"/"),se(E,s,h,"",function(L){return L})):E!=null&&(pe(E)&&(E=be(E,h+(!E.key||k&&k.key===E.key?"":(""+E.key).replace(Ee,"$&/")+"/")+r)),s.push(E)),1;if(k=0,_=_===""?".":_+":",K(r))for(var O=0;O<r.length;O++){j=r[O];var C=_+de(j,O);k+=se(j,s,h,C,E)}else if(C=J(r),typeof C=="function")for(r=C.call(r),O=0;!(j=r.next()).done;)j=j.value,C=_+de(j,O++),k+=se(j,s,h,C,E);else if(j==="object")throw s=String(r),Error("Objects are not valid as a React child (found: "+(s==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":s)+"). If you meant to render a collection of children, use an array instead.");return k}function H(r,s,h){if(r==null)return r;var _=[],E=0;return se(r,_,"","",function(j){return s.call(h,j,E++)}),_}function X(r){if(r._status===-1){var s=r._result;s=s(),s.then(function(h){(r._status===0||r._status===-1)&&(r._status=1,r._result=h)},function(h){(r._status===0||r._status===-1)&&(r._status=2,r._result=h)}),r._status===-1&&(r._status=0,r._result=s)}if(r._status===1)return r._result.default;throw r._result}var f={current:null},ne={transition:null},we={ReactCurrentDispatcher:f,ReactCurrentBatchConfig:ne,ReactCurrentOwner:V};function ue(){throw Error("act(...) is not supported in production builds of React.")}return D.Children={map:H,forEach:function(r,s,h){H(r,function(){s.apply(this,arguments)},h)},count:function(r){var s=0;return H(r,function(){s++}),s},toArray:function(r){return H(r,function(s){return s})||[]},only:function(r){if(!pe(r))throw Error("React.Children.only expected to receive a single React element child.");return r}},D.Component=B,D.Fragment=d,D.Profiler=g,D.PureComponent=ae,D.StrictMode=m,D.Suspense=$,D.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=we,D.act=ue,D.cloneElement=function(r,s,h){if(r==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+r+".");var _=Z({},r.props),E=r.key,j=r.ref,k=r._owner;if(s!=null){if(s.ref!==void 0&&(j=s.ref,k=V.current),s.key!==void 0&&(E=""+s.key),r.type&&r.type.defaultProps)var O=r.type.defaultProps;for(C in s)F.call(s,C)&&!Q.hasOwnProperty(C)&&(_[C]=s[C]===void 0&&O!==void 0?O[C]:s[C])}var C=arguments.length-2;if(C===1)_.children=h;else if(1<C){O=Array(C);for(var L=0;L<C;L++)O[L]=arguments[L+2];_.children=O}return{$$typeof:c,type:r.type,key:E,ref:j,props:_,_owner:k}},D.createContext=function(r){return r={$$typeof:I,_currentValue:r,_currentValue2:r,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},r.Provider={$$typeof:b,_context:r},r.Consumer=r},D.createElement=re,D.createFactory=function(r){var s=re.bind(null,r);return s.type=r,s},D.createRef=function(){return{current:null}},D.forwardRef=function(r){return{$$typeof:P,render:r}},D.isValidElement=pe,D.lazy=function(r){return{$$typeof:z,_payload:{_status:-1,_result:r},_init:X}},D.memo=function(r,s){return{$$typeof:q,type:r,compare:s===void 0?null:s}},D.startTransition=function(r){var s=ne.transition;ne.transition={};try{r()}finally{ne.transition=s}},D.unstable_act=ue,D.useCallback=function(r,s){return f.current.useCallback(r,s)},D.useContext=function(r){return f.current.useContext(r)},D.useDebugValue=function(){},D.useDeferredValue=function(r){return f.current.useDeferredValue(r)},D.useEffect=function(r,s){return f.current.useEffect(r,s)},D.useId=function(){return f.current.useId()},D.useImperativeHandle=function(r,s,h){return f.current.useImperativeHandle(r,s,h)},D.useInsertionEffect=function(r,s){return f.current.useInsertionEffect(r,s)},D.useLayoutEffect=function(r,s){return f.current.useLayoutEffect(r,s)},D.useMemo=function(r,s){return f.current.useMemo(r,s)},D.useReducer=function(r,s,h){return f.current.useReducer(r,s,h)},D.useRef=function(r){return f.current.useRef(r)},D.useState=function(r){return f.current.useState(r)},D.useSyncExternalStore=function(r,s,h){return f.current.useSyncExternalStore(r,s,h)},D.useTransition=function(){return f.current.useTransition()},D.version="18.3.1",D}var Mt={exports:{}};/**
|
|
52
52
|
* @license React
|
|
53
53
|
* react.development.js
|
|
54
54
|
*
|
|
@@ -56,7 +56,7 @@ ${c.map(a=>`- ${a.path.join("/")}: ${a.message}`).join(`
|
|
|
56
56
|
*
|
|
57
57
|
* This source code is licensed under the MIT license found in the
|
|
58
58
|
* LICENSE file in the root directory of this source tree.
|
|
59
|
-
*/Dt.exports;var sn;function io(){return sn||(sn=1,function(c,a){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var d="18.3.1",m=Symbol.for("react.element"),g=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),q=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),ge=Symbol.for("react.offscreen"),K=Symbol.iterator,_e="@@iterator";function ae(e){if(e===null||typeof e!="object")return null;var t=K&&e[K]||e[_e];return typeof t=="function"?t:null}var ie={current:null},B={transition:null},F={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},V={current:null},Q={},te=null;function be(e){te=e}Q.setExtraStackFrame=function(e){te=e},Q.getCurrentStack=null,Q.getStackAddendum=function(){var e="";te&&(e+=te);var t=Q.getCurrentStack;return t&&(e+=t()||""),e};var pe=!1,Me=!1,Ee=!1,de=!1,se=!1,H={ReactCurrentDispatcher:ie,ReactCurrentBatchConfig:B,ReactCurrentOwner:V};H.ReactDebugCurrentFrame=Q,H.ReactCurrentActQueue=F;function X(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];re("warn",e,n)}}function f(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];re("error",e,n)}}function re(e,t,n){{var o=H.ReactDebugCurrentFrame,u=o.getStackAddendum();u!==""&&(t+="%s",n=n.concat([u]));var p=n.map(function(l){return String(l)});p.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,p)}}var we={};function ue(e,t){{var n=e.constructor,o=n&&(n.displayName||n.name)||"ReactClass",u=o+"."+t;if(we[u])return;f("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,o),we[u]=!0}}var r={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){ue(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,o){ue(e,"replaceState")},enqueueSetState:function(e,t,n,o){ue(e,"setState")}},s=Object.assign,h={};Object.freeze(h);function _(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||r}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};{var E={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},P=function(e,t){Object.defineProperty(_.prototype,e,{get:function(){X("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var k in E)E.hasOwnProperty(k)&&P(k,E[k])}function O(){}O.prototype=_.prototype;function C(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||r}var L=C.prototype=new O;L.constructor=C,s(L,_.prototype),L.isPureReactComponent=!0;function Nt(){var e={current:null};return Object.seal(e),e}var Ut=Array.isArray;function Ce(e){return Ut(e)}function zt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function Vt(e){try{return Ge(e),!1}catch{return!0}}function Ge(e){return""+e}function Se(e){if(Vt(e))return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",zt(e)),Ge(e)}function qt(e,t,n){var o=e.displayName;if(o)return o;var u=t.displayName||t.name||"";return u!==""?n+"("+u+")":n}function Je(e){return e.displayName||"Context"}function ee(e){if(e==null)return null;if(typeof e.tag=="number"&&f("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 b:return"Fragment";case g:return"Portal";case I:return"Profiler";case j:return"StrictMode";case U:return"Suspense";case J:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case q:var t=e;return Je(t)+".Consumer";case x:var n=e;return Je(n._context)+".Provider";case z:return qt(e,e.render,"ForwardRef");case Y:var o=e.displayName||null;return o!==null?o:ee(e.type)||"Memo";case Z:{var u=e,p=u._payload,l=u._init;try{return ee(l(p))}catch{return null}}}return null}var ye=Object.prototype.hasOwnProperty,Ze={key:!0,ref:!0,__self:!0,__source:!0},Qe,Xe,Fe;Fe={};function et(e){if(ye.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function tt(e){if(ye.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Yt(e,t){var n=function(){Qe||(Qe=!0,f("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function Ht(e,t){var n=function(){Xe||(Xe=!0,f("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}function Wt(e){if(typeof e.ref=="string"&&V.current&&e.__self&&V.current.stateNode!==e.__self){var t=ee(V.current.type);Fe[t]||(f('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,e.ref),Fe[t]=!0)}}var $e=function(e,t,n,o,u,p,l){var y={$$typeof:m,type:e,key:t,ref:n,props:l,_owner:p};return y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(y,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(y,"_source",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y};function Kt(e,t,n){var o,u={},p=null,l=null,y=null,v=null;if(t!=null){et(t)&&(l=t.ref,Wt(t)),tt(t)&&(Se(t.key),p=""+t.key),y=t.__self===void 0?null:t.__self,v=t.__source===void 0?null:t.__source;for(o in t)ye.call(t,o)&&!Ze.hasOwnProperty(o)&&(u[o]=t[o])}var w=arguments.length-2;if(w===1)u.children=n;else if(w>1){for(var S=Array(w),R=0;R<w;R++)S[R]=arguments[R+2];Object.freeze&&Object.freeze(S),u.children=S}if(e&&e.defaultProps){var T=e.defaultProps;for(o in T)u[o]===void 0&&(u[o]=T[o])}if(p||l){var A=typeof e=="function"?e.displayName||e.name||"Unknown":e;p&&Yt(u,A),l&&Ht(u,A)}return $e(e,p,l,y,v,V.current,u)}function Bt(e,t){var n=$e(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n}function Gt(e,t,n){if(e==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o,u=s({},e.props),p=e.key,l=e.ref,y=e._self,v=e._source,w=e._owner;if(t!=null){et(t)&&(l=t.ref,w=V.current),tt(t)&&(Se(t.key),p=""+t.key);var S;e.type&&e.type.defaultProps&&(S=e.type.defaultProps);for(o in t)ye.call(t,o)&&!Ze.hasOwnProperty(o)&&(t[o]===void 0&&S!==void 0?u[o]=S[o]:u[o]=t[o])}var R=arguments.length-2;if(R===1)u.children=n;else if(R>1){for(var T=Array(R),A=0;A<R;A++)T[A]=arguments[A+2];u.children=T}return $e(e.type,p,l,y,v,w,u)}function ce(e){return typeof e=="object"&&e!==null&&e.$$typeof===m}var rt=".",Jt=":";function Zt(e){var t=/[=:]/g,n={"=":"=0",":":"=2"},o=e.replace(t,function(u){return n[u]});return"$"+o}var nt=!1,Qt=/\/+/g;function ot(e){return e.replace(Qt,"$&/")}function xe(e,t){return typeof e=="object"&&e!==null&&e.key!=null?(Se(e.key),Zt(""+e.key)):t.toString(36)}function Re(e,t,n,o,u){var p=typeof e;(p==="undefined"||p==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(p){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case m:case g:l=!0}}if(l){var y=e,v=u(y),w=o===""?rt+xe(y,0):o;if(Ce(v)){var S="";w!=null&&(S=ot(w)+"/"),Re(v,t,S,"",function(Yr){return Yr})}else v!=null&&(ce(v)&&(v.key&&(!y||y.key!==v.key)&&Se(v.key),v=Bt(v,n+(v.key&&(!y||y.key!==v.key)?ot(""+v.key)+"/":"")+w)),t.push(v));return 1}var R,T,A=0,$=o===""?rt:o+Jt;if(Ce(e))for(var De=0;De<e.length;De++)R=e[De],T=$+xe(R,De),A+=Re(R,t,n,T,u);else{var We=ae(e);if(typeof We=="function"){var Pt=e;We===Pt.entries&&(nt||X("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),nt=!0);for(var Vr=We.call(Pt),It,qr=0;!(It=Vr.next()).done;)R=It.value,T=$+xe(R,qr++),A+=Re(R,t,n,T,u)}else if(p==="object"){var jt=String(e);throw new Error("Objects are not valid as a React child (found: "+(jt==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":jt)+"). If you meant to render a collection of children, use an array instead.")}}return A}function ke(e,t,n){if(e==null)return e;var o=[],u=0;return Re(e,o,"","",function(p){return t.call(n,p,u++)}),o}function Xt(e){var t=0;return ke(e,function(){t++}),t}function er(e,t,n){ke(e,function(){t.apply(this,arguments)},n)}function tr(e){return ke(e,function(t){return t})||[]}function rr(e){if(!ce(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}function nr(e){var t={$$typeof:q,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:x,_context:t};var n=!1,o=!1,u=!1;{var p={$$typeof:q,_context:t};Object.defineProperties(p,{Provider:{get:function(){return o||(o=!0,f("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(l){t.Provider=l}},_currentValue:{get:function(){return t._currentValue},set:function(l){t._currentValue=l}},_currentValue2:{get:function(){return t._currentValue2},set:function(l){t._currentValue2=l}},_threadCount:{get:function(){return t._threadCount},set:function(l){t._threadCount=l}},Consumer:{get:function(){return n||(n=!0,f("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(l){u||(X("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",l),u=!0)}}}),t.Consumer=p}return t._currentRenderer=null,t._currentRenderer2=null,t}var me=-1,Le=0,at=1,or=2;function ar(e){if(e._status===me){var t=e._result,n=t();if(n.then(function(p){if(e._status===Le||e._status===me){var l=e;l._status=at,l._result=p}},function(p){if(e._status===Le||e._status===me){var l=e;l._status=or,l._result=p}}),e._status===me){var o=e;o._status=Le,o._result=n}}if(e._status===at){var u=e._result;return u===void 0&&f(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
59
|
+
*/Mt.exports;var sn;function io(){return sn||(sn=1,function(c,a){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var d="18.3.1",m=Symbol.for("react.element"),g=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),$=Symbol.for("react.provider"),q=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),ge=Symbol.for("react.offscreen"),B=Symbol.iterator,_e="@@iterator";function ae(e){if(e===null||typeof e!="object")return null;var t=B&&e[B]||e[_e];return typeof t=="function"?t:null}var ie={current:null},K={transition:null},F={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},V={current:null},Q={},re=null;function be(e){re=e}Q.setExtraStackFrame=function(e){re=e},Q.getCurrentStack=null,Q.getStackAddendum=function(){var e="";re&&(e+=re);var t=Q.getCurrentStack;return t&&(e+=t()||""),e};var pe=!1,De=!1,Ee=!1,de=!1,se=!1,H={ReactCurrentDispatcher:ie,ReactCurrentBatchConfig:K,ReactCurrentOwner:V};H.ReactDebugCurrentFrame=Q,H.ReactCurrentActQueue=F;function X(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];ne("warn",e,n)}}function f(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];ne("error",e,n)}}function ne(e,t,n){{var o=H.ReactDebugCurrentFrame,u=o.getStackAddendum();u!==""&&(t+="%s",n=n.concat([u]));var p=n.map(function(l){return String(l)});p.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,p)}}var we={};function ue(e,t){{var n=e.constructor,o=n&&(n.displayName||n.name)||"ReactClass",u=o+"."+t;if(we[u])return;f("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,o),we[u]=!0}}var r={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){ue(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,o){ue(e,"replaceState")},enqueueSetState:function(e,t,n,o){ue(e,"setState")}},s=Object.assign,h={};Object.freeze(h);function _(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||r}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};{var E={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},j=function(e,t){Object.defineProperty(_.prototype,e,{get:function(){X("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var k in E)E.hasOwnProperty(k)&&j(k,E[k])}function O(){}O.prototype=_.prototype;function C(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||r}var L=C.prototype=new O;L.constructor=C,s(L,_.prototype),L.isPureReactComponent=!0;function Nt(){var e={current:null};return Object.seal(e),e}var Ut=Array.isArray;function Ce(e){return Ut(e)}function zt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function Vt(e){try{return Ge(e),!1}catch{return!0}}function Ge(e){return""+e}function Se(e){if(Vt(e))return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",zt(e)),Ge(e)}function qt(e,t,n){var o=e.displayName;if(o)return o;var u=t.displayName||t.name||"";return u!==""?n+"("+u+")":n}function Je(e){return e.displayName||"Context"}function ee(e){if(e==null)return null;if(typeof e.tag=="number"&&f("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 b:return"Fragment";case g:return"Portal";case P:return"Profiler";case I:return"StrictMode";case U:return"Suspense";case J:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case q:var t=e;return Je(t)+".Consumer";case $:var n=e;return Je(n._context)+".Provider";case z:return qt(e,e.render,"ForwardRef");case Y:var o=e.displayName||null;return o!==null?o:ee(e.type)||"Memo";case Z:{var u=e,p=u._payload,l=u._init;try{return ee(l(p))}catch{return null}}}return null}var ye=Object.prototype.hasOwnProperty,Ze={key:!0,ref:!0,__self:!0,__source:!0},Qe,Xe,Fe;Fe={};function et(e){if(ye.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function tt(e){if(ye.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Yt(e,t){var n=function(){Qe||(Qe=!0,f("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function Ht(e,t){var n=function(){Xe||(Xe=!0,f("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}function Wt(e){if(typeof e.ref=="string"&&V.current&&e.__self&&V.current.stateNode!==e.__self){var t=ee(V.current.type);Fe[t]||(f('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,e.ref),Fe[t]=!0)}}var $e=function(e,t,n,o,u,p,l){var y={$$typeof:m,type:e,key:t,ref:n,props:l,_owner:p};return y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(y,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(y,"_source",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y};function Bt(e,t,n){var o,u={},p=null,l=null,y=null,v=null;if(t!=null){et(t)&&(l=t.ref,Wt(t)),tt(t)&&(Se(t.key),p=""+t.key),y=t.__self===void 0?null:t.__self,v=t.__source===void 0?null:t.__source;for(o in t)ye.call(t,o)&&!Ze.hasOwnProperty(o)&&(u[o]=t[o])}var w=arguments.length-2;if(w===1)u.children=n;else if(w>1){for(var S=Array(w),R=0;R<w;R++)S[R]=arguments[R+2];Object.freeze&&Object.freeze(S),u.children=S}if(e&&e.defaultProps){var T=e.defaultProps;for(o in T)u[o]===void 0&&(u[o]=T[o])}if(p||l){var A=typeof e=="function"?e.displayName||e.name||"Unknown":e;p&&Yt(u,A),l&&Ht(u,A)}return $e(e,p,l,y,v,V.current,u)}function Kt(e,t){var n=$e(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n}function Gt(e,t,n){if(e==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o,u=s({},e.props),p=e.key,l=e.ref,y=e._self,v=e._source,w=e._owner;if(t!=null){et(t)&&(l=t.ref,w=V.current),tt(t)&&(Se(t.key),p=""+t.key);var S;e.type&&e.type.defaultProps&&(S=e.type.defaultProps);for(o in t)ye.call(t,o)&&!Ze.hasOwnProperty(o)&&(t[o]===void 0&&S!==void 0?u[o]=S[o]:u[o]=t[o])}var R=arguments.length-2;if(R===1)u.children=n;else if(R>1){for(var T=Array(R),A=0;A<R;A++)T[A]=arguments[A+2];u.children=T}return $e(e.type,p,l,y,v,w,u)}function ce(e){return typeof e=="object"&&e!==null&&e.$$typeof===m}var rt=".",Jt=":";function Zt(e){var t=/[=:]/g,n={"=":"=0",":":"=2"},o=e.replace(t,function(u){return n[u]});return"$"+o}var nt=!1,Qt=/\/+/g;function ot(e){return e.replace(Qt,"$&/")}function xe(e,t){return typeof e=="object"&&e!==null&&e.key!=null?(Se(e.key),Zt(""+e.key)):t.toString(36)}function Re(e,t,n,o,u){var p=typeof e;(p==="undefined"||p==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(p){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case m:case g:l=!0}}if(l){var y=e,v=u(y),w=o===""?rt+xe(y,0):o;if(Ce(v)){var S="";w!=null&&(S=ot(w)+"/"),Re(v,t,S,"",function(Yr){return Yr})}else v!=null&&(ce(v)&&(v.key&&(!y||y.key!==v.key)&&Se(v.key),v=Kt(v,n+(v.key&&(!y||y.key!==v.key)?ot(""+v.key)+"/":"")+w)),t.push(v));return 1}var R,T,A=0,x=o===""?rt:o+Jt;if(Ce(e))for(var Me=0;Me<e.length;Me++)R=e[Me],T=x+xe(R,Me),A+=Re(R,t,n,T,u);else{var We=ae(e);if(typeof We=="function"){var Pt=e;We===Pt.entries&&(nt||X("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),nt=!0);for(var Vr=We.call(Pt),It,qr=0;!(It=Vr.next()).done;)R=It.value,T=x+xe(R,qr++),A+=Re(R,t,n,T,u)}else if(p==="object"){var jt=String(e);throw new Error("Objects are not valid as a React child (found: "+(jt==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":jt)+"). If you meant to render a collection of children, use an array instead.")}}return A}function ke(e,t,n){if(e==null)return e;var o=[],u=0;return Re(e,o,"","",function(p){return t.call(n,p,u++)}),o}function Xt(e){var t=0;return ke(e,function(){t++}),t}function er(e,t,n){ke(e,function(){t.apply(this,arguments)},n)}function tr(e){return ke(e,function(t){return t})||[]}function rr(e){if(!ce(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}function nr(e){var t={$$typeof:q,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:$,_context:t};var n=!1,o=!1,u=!1;{var p={$$typeof:q,_context:t};Object.defineProperties(p,{Provider:{get:function(){return o||(o=!0,f("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(l){t.Provider=l}},_currentValue:{get:function(){return t._currentValue},set:function(l){t._currentValue=l}},_currentValue2:{get:function(){return t._currentValue2},set:function(l){t._currentValue2=l}},_threadCount:{get:function(){return t._threadCount},set:function(l){t._threadCount=l}},Consumer:{get:function(){return n||(n=!0,f("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(l){u||(X("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",l),u=!0)}}}),t.Consumer=p}return t._currentRenderer=null,t._currentRenderer2=null,t}var me=-1,Le=0,at=1,or=2;function ar(e){if(e._status===me){var t=e._result,n=t();if(n.then(function(p){if(e._status===Le||e._status===me){var l=e;l._status=at,l._result=p}},function(p){if(e._status===Le||e._status===me){var l=e;l._status=or,l._result=p}}),e._status===me){var o=e;o._status=Le,o._result=n}}if(e._status===at){var u=e._result;return u===void 0&&f(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
60
60
|
|
|
61
61
|
Your code should look like:
|
|
62
62
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -64,12 +64,12 @@ Your code should look like:
|
|
|
64
64
|
Did you accidentally put curly braces around the import?`,u),"default"in u||f(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
65
65
|
|
|
66
66
|
Your code should look like:
|
|
67
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,u),u.default}else throw e._result}function ir(e){var t={_status:me,_result:e},n={$$typeof:Z,_payload:t,_init:ar};{var o,u;Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return o},set:function(p){f("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),o=p,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return u},set:function(p){f("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),u=p,Object.defineProperty(n,"propTypes",{enumerable:!0})}}})}return n}function sr(e){e!=null&&e.$$typeof===Y?f("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e!="function"?f("forwardRef requires a render function but was given %s.",e===null?"null":typeof e):e.length!==0&&e.length!==2&&f("forwardRef render functions accept exactly two parameters: props and ref. %s",e.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),e!=null&&(e.defaultProps!=null||e.propTypes!=null)&&f("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var t={$$typeof:z,render:e};{var n;Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(o){n=o,!e.name&&!e.displayName&&(e.displayName=o)}})}return t}var it;it=Symbol.for("react.module.reference");function st(e){return!!(typeof e=="string"||typeof e=="function"||e===b||e===
|
|
67
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,u),u.default}else throw e._result}function ir(e){var t={_status:me,_result:e},n={$$typeof:Z,_payload:t,_init:ar};{var o,u;Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return o},set:function(p){f("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),o=p,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return u},set:function(p){f("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),u=p,Object.defineProperty(n,"propTypes",{enumerable:!0})}}})}return n}function sr(e){e!=null&&e.$$typeof===Y?f("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e!="function"?f("forwardRef requires a render function but was given %s.",e===null?"null":typeof e):e.length!==0&&e.length!==2&&f("forwardRef render functions accept exactly two parameters: props and ref. %s",e.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),e!=null&&(e.defaultProps!=null||e.propTypes!=null)&&f("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var t={$$typeof:z,render:e};{var n;Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(o){n=o,!e.name&&!e.displayName&&(e.displayName=o)}})}return t}var it;it=Symbol.for("react.module.reference");function st(e){return!!(typeof e=="string"||typeof e=="function"||e===b||e===P||se||e===I||e===U||e===J||de||e===ge||pe||De||Ee||typeof e=="object"&&e!==null&&(e.$$typeof===Z||e.$$typeof===Y||e.$$typeof===$||e.$$typeof===q||e.$$typeof===z||e.$$typeof===it||e.getModuleId!==void 0))}function ur(e,t){st(e)||f("memo: The first argument must be a component. Instead received: %s",e===null?"null":typeof e);var n={$$typeof:Y,type:e,compare:t===void 0?null:t};{var o;Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return o},set:function(u){o=u,!e.name&&!e.displayName&&(e.displayName=u)}})}return n}function N(){var e=ie.current;return e===null&&f(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
68
68
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
69
69
|
2. You might be breaking the Rules of Hooks
|
|
70
70
|
3. You might have more than one copy of React in the same app
|
|
71
71
|
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function cr(e){var t=N();if(e._context!==void 0){var n=e._context;n.Consumer===e?f("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&f("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)}function lr(e){var t=N();return t.useState(e)}function fr(e,t,n){var o=N();return o.useReducer(e,t,n)}function pr(e){var t=N();return t.useRef(e)}function dr(e,t){var n=N();return n.useEffect(e,t)}function yr(e,t){var n=N();return n.useInsertionEffect(e,t)}function mr(e,t){var n=N();return n.useLayoutEffect(e,t)}function hr(e,t){var n=N();return n.useCallback(e,t)}function vr(e,t){var n=N();return n.useMemo(e,t)}function gr(e,t,n){var o=N();return o.useImperativeHandle(e,t,n)}function _r(e,t){{var n=N();return n.useDebugValue(e,t)}}function br(){var e=N();return e.useTransition()}function Er(e){var t=N();return t.useDeferredValue(e)}function wr(){var e=N();return e.useId()}function Cr(e,t,n){var o=N();return o.useSyncExternalStore(e,t,n)}var he=0,ut,ct,lt,ft,pt,dt,yt;function mt(){}mt.__reactDisabledLog=!0;function Sr(){{if(he===0){ut=console.log,ct=console.info,lt=console.warn,ft=console.error,pt=console.group,dt=console.groupCollapsed,yt=console.groupEnd;var e={configurable:!0,enumerable:!0,value:mt,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}he++}}function Rr(){{if(he--,he===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:s({},e,{value:ut}),info:s({},e,{value:ct}),warn:s({},e,{value:lt}),error:s({},e,{value:ft}),group:s({},e,{value:pt}),groupCollapsed:s({},e,{value:dt}),groupEnd:s({},e,{value:yt})})}he<0&&f("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ne=H.ReactCurrentDispatcher,Ue;function Oe(e,t,n){{if(Ue===void 0)try{throw Error()}catch(u){var o=u.stack.trim().match(/\n( *(at )?)/);Ue=o&&o[1]||""}return`
|
|
72
|
-
`+Ue+e}}var ze=!1,Te;{var kr=typeof WeakMap=="function"?WeakMap:Map;Te=new kr}function ht(e,t){if(!e||ze)return"";{var n=Te.get(e);if(n!==void 0)return n}var o;ze=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=Ne.current,Ne.current=null,Sr();try{if(t){var l=function(){throw Error()};if(Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(
|
|
72
|
+
`+Ue+e}}var ze=!1,Te;{var kr=typeof WeakMap=="function"?WeakMap:Map;Te=new kr}function ht(e,t){if(!e||ze)return"";{var n=Te.get(e);if(n!==void 0)return n}var o;ze=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=Ne.current,Ne.current=null,Sr();try{if(t){var l=function(){throw Error()};if(Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(x){o=x}Reflect.construct(e,[],l)}else{try{l.call()}catch(x){o=x}e.call(l.prototype)}}else{try{throw Error()}catch(x){o=x}e()}}catch(x){if(x&&o&&typeof x.stack=="string"){for(var y=x.stack.split(`
|
|
73
73
|
`),v=o.stack.split(`
|
|
74
74
|
`),w=y.length-1,S=v.length-1;w>=1&&S>=0&&y[w]!==v[S];)S--;for(;w>=1&&S>=0;w--,S--)if(y[w]!==v[S]){if(w!==1||S!==1)do if(w--,S--,S<0||y[w]!==v[S]){var R=`
|
|
75
75
|
`+y[w].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),typeof e=="function"&&Te.set(e,R),R}while(w>=1&&S>=0);break}}}finally{ze=!1,Ne.current=p,Rr(),Error.prepareStackTrace=u}var T=e?e.displayName||e.name:"",A=T?Oe(T):"";return typeof e=="function"&&Te.set(e,A),A}function Or(e,t,n){return ht(e,!1)}function Tr(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function Pe(e,t,n){if(e==null)return"";if(typeof e=="function")return ht(e,Tr(e));if(typeof e=="string")return Oe(e);switch(e){case U:return Oe("Suspense");case J:return Oe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case z:return Or(e.render);case Y:return Pe(e.type,t,n);case Z:{var o=e,u=o._payload,p=o._init;try{return Pe(p(u),t,n)}catch{}}}return""}var vt={},gt=H.ReactDebugCurrentFrame;function Ie(e){if(e){var t=e._owner,n=Pe(e.type,e._source,t?t.type:null);gt.setExtraStackFrame(n)}else gt.setExtraStackFrame(null)}function Pr(e,t,n,o,u){{var p=Function.call.bind(ye);for(var l in e)if(p(e,l)){var y=void 0;try{if(typeof e[l]!="function"){var v=Error((o||"React class")+": "+n+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}y=e[l](t,l,o,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(w){y=w}y&&!(y instanceof Error)&&(Ie(u),f("%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).",o||"React class",n,l,typeof y),Ie(null)),y instanceof Error&&!(y.message in vt)&&(vt[y.message]=!0,Ie(u),f("Failed %s type: %s",n,y.message),Ie(null))}}}function le(e){if(e){var t=e._owner,n=Pe(e.type,e._source,t?t.type:null);be(n)}else be(null)}var Ve;Ve=!1;function _t(){if(V.current){var e=ee(V.current.type);if(e)return`
|
|
@@ -78,4 +78,4 @@ Check the render method of \``+e+"`."}return""}function Ir(e){if(e!==void 0){var
|
|
|
78
78
|
|
|
79
79
|
Check your code at `+t+":"+n+"."}return""}function jr(e){return e!=null?Ir(e.__source):""}var bt={};function Ar(e){var t=_t();if(!t){var n=typeof e=="string"?e:e.displayName||e.name;n&&(t=`
|
|
80
80
|
|
|
81
|
-
Check the top-level render call using <`+n+">.")}return t}function Et(e,t){if(!(!e._store||e._store.validated||e.key!=null)){e._store.validated=!0;var n=Ar(t);if(!bt[n]){bt[n]=!0;var o="";e&&e._owner&&e._owner!==V.current&&(o=" It was passed a child from "+ee(e._owner.type)+"."),le(e),f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,o),le(null)}}}function wt(e,t){if(typeof e=="object"){if(Ce(e))for(var n=0;n<e.length;n++){var o=e[n];ce(o)&&Et(o,t)}else if(ce(e))e._store&&(e._store.validated=!0);else if(e){var u=ae(e);if(typeof u=="function"&&u!==e.entries)for(var p=u.call(e),l;!(l=p.next()).done;)ce(l.value)&&Et(l.value,t)}}}function Ct(e){{var t=e.type;if(t==null||typeof t=="string")return;var n;if(typeof t=="function")n=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===z||t.$$typeof===Y))n=t.propTypes;else return;if(n){var o=ee(t);Pr(n,e.props,"prop",o,e)}else if(t.PropTypes!==void 0&&!Ve){Ve=!0;var u=ee(t);f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Dr(e){{for(var t=Object.keys(e.props),n=0;n<t.length;n++){var o=t[n];if(o!=="children"&&o!=="key"){le(e),f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),le(null);break}}e.ref!==null&&(le(e),f("Invalid attribute `ref` supplied to `React.Fragment`."),le(null))}}function St(e,t,n){var o=st(e);if(!o){var u="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" 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=jr(t);p?u+=p:u+=_t();var l;e===null?l="null":Ce(e)?l="array":e!==void 0&&e.$$typeof===m?(l="<"+(ee(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,f("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",l,u)}var y=Kt.apply(this,arguments);if(y==null)return y;if(o)for(var v=2;v<arguments.length;v++)wt(arguments[v],e);return e===b?Dr(y):Ct(y),y}var Rt=!1;function Mr(e){var t=St.bind(null,e);return t.type=e,Rt||(Rt=!0,X("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return X("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}function Fr(e,t,n){for(var o=Gt.apply(this,arguments),u=2;u<arguments.length;u++)wt(arguments[u],o.type);return Ct(o),o}function $r(e,t){var n=B.transition;B.transition={};var o=B.transition;B.transition._updatedFibers=new Set;try{e()}finally{if(B.transition=n,n===null&&o._updatedFibers){var u=o._updatedFibers.size;u>10&&X("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),o._updatedFibers.clear()}}}var kt=!1,je=null;function xr(e){if(je===null)try{var t=("require"+Math.random()).slice(0,7),n=c&&c[t];je=n.call(c,"timers").setImmediate}catch{je=function(o){kt===!1&&(kt=!0,typeof MessageChannel>"u"&&f("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var u=new MessageChannel;u.port1.onmessage=o,u.port2.postMessage(void 0)}}return je(e)}var fe=0,Ot=!1;function Tt(e){{var t=fe;fe++,F.current===null&&(F.current=[]);var n=F.isBatchingLegacy,o;try{if(F.isBatchingLegacy=!0,o=e(),!n&&F.didScheduleLegacyUpdate){var u=F.current;u!==null&&(F.didScheduleLegacyUpdate=!1,He(u))}}catch(T){throw Ae(t),T}finally{F.isBatchingLegacy=n}if(o!==null&&typeof o=="object"&&typeof o.then=="function"){var p=o,l=!1,y={then:function(T,A){l=!0,p.then(function($){Ae(t),fe===0?qe($,T,A):T($)},function($){Ae(t),A($)})}};return!Ot&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){l||(Ot=!0,f("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),y}else{var v=o;if(Ae(t),fe===0){var w=F.current;w!==null&&(He(w),F.current=null);var S={then:function(T,A){F.current===null?(F.current=[],qe(v,T,A)):T(v)}};return S}else{var R={then:function(T,A){T(v)}};return R}}}}function Ae(e){e!==fe-1&&f("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),fe=e}function qe(e,t,n){{var o=F.current;if(o!==null)try{He(o),xr(function(){o.length===0?(F.current=null,t(e)):qe(e,t,n)})}catch(u){n(u)}else t(e)}}var Ye=!1;function He(e){if(!Ye){Ye=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do n=n(!0);while(n!==null)}e.length=0}catch(o){throw e=e.slice(t+1),o}finally{Ye=!1}}}var Lr=St,Nr=Fr,Ur=Mr,zr={map:ke,forEach:er,count:Xt,toArray:tr,only:rr};a.Children=zr,a.Component=_,a.Fragment=b,a.Profiler=I,a.PureComponent=C,a.StrictMode=j,a.Suspense=U,a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H,a.act=Tt,a.cloneElement=Nr,a.createContext=nr,a.createElement=Lr,a.createFactory=Ur,a.createRef=Nt,a.forwardRef=sr,a.isValidElement=ce,a.lazy=ir,a.memo=ur,a.startTransition=$r,a.unstable_act=Tt,a.useCallback=hr,a.useContext=cr,a.useDebugValue=_r,a.useDeferredValue=Er,a.useEffect=dr,a.useId=wr,a.useImperativeHandle=gr,a.useInsertionEffect=yr,a.useLayoutEffect=mr,a.useMemo=vr,a.useReducer=fr,a.useRef=pr,a.useState=lr,a.useSyncExternalStore=Cr,a.useTransition=br,a.version=d,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(Dt,Dt.exports)),Dt.exports}process.env.NODE_ENV==="production"?ao():io();const so=async c=>{if(typeof c!="object"||!c)return!1;try{const a={type:"ping"},d=await c.send(a);if(d!==!0)throw new Error(`Expected 'true' after ping, got ${JSON.stringify(d)}`);return!0}catch{return!1}},uo=(c,a)=>!!c&&a,W=c=>i.z.nullable(c.optional());i.z.string().trim().min(1,{message:"Cannot be blank"});const co=i.z.object({cde_response_type:i.z.literal("error"),message:i.z.string()}),lo=i.z.enum(["usd","brl"]),un=i.z.object({name:i.z.string(),amount_atom_off:W(i.z.number()),percent_off:W(i.z.number()),currency:W(i.z.string()),duration:i.z.string(),duration_in_months:W(i.z.number())}),fo=i.z.object({amount_subtotal_atom:i.z.number().int(),amount_total_atom:i.z.number().int(),currency:i.z.string(),description:W(i.z.string()),price_id:i.z.string(),billing_interval:W(i.z.string()),billing_interval_count:W(i.z.number().int()),quantity:i.z.number().int()}),po=i.z.record(i.z.string(),i.z.any()),yo=i.z.object({name:i.z.string(),settings:W(po)}),mo=i.z.object({provider:i.z.string(),processor_name:W(i.z.string()),metadata:W(i.z.record(i.z.string(),i.z.any()))}),ho=i.z.object({quantity:i.z.number()}),vo=i.z.object({id:W(i.z.string()),billing_interval:W(i.z.string()),billing_interval_count:W(i.z.number().int()),subscription_items:i.z.array(ho),trial_start:W(i.z.string()),trial_end:W(i.z.string())}),cn=i.z.object({amount_atom:i.z.number()}),go=i.z.object({amount_atom:i.z.number(),amount_atom_considering_discount_applied:i.z.number(),currency:i.z.string(),discount_amount_atoms:i.z.array(cn),subscription_item_id:i.z.string()}),_o=i.z.object({coupon:un}),bo=i.z.object({currency:i.z.string(),discounts:i.z.array(_o),hosted_invoice_url:W(i.z.string()),lines:i.z.array(go),remaining_amount_atom:i.z.number(),tax_amount_atom:i.z.number(),total_amount_atom:i.z.number(),total_discount_amount_atoms:i.z.array(cn)}),ln=i.z.object({created:i.z.array(vo),invoices:i.z.array(bo)}),fn=i.z.object({preview:ln,preview_post_trial:W(ln),coupons:i.z.array(un)}),pn=i.z.object({status:i.z.literal("open"),token:i.z.string(),email:W(i.z.string()),line_items:i.z.array(fo),amount_subtotal_atom:i.z.number().int(),amount_total_atom:i.z.number().int(),brand:yo,subs_preview:W(fn),methods_available:i.z.array(mo)}),dn=i.z.discriminatedUnion("mode",[i.z.object({mode:i.z.literal("setup"),currency:i.z.nullable(i.z.undefined())}).extend(pn.shape),i.z.object({mode:i.z.enum(["payment","subscription"]),currency:lo}).extend(pn.shape)]),Eo=i.z.object({status:i.z.literal("complete")}),wo=i.z.object({status:i.z.literal("expired")});i.z.union([dn,Eo,wo]),i.z.object({logo:i.z.string(),icon:i.z.string(),primary_color:i.z.string(),secondary_color:i.z.string()}),i.z.object({invoice_urls:i.z.array(i.z.string()),subscription_ids:i.z.array(i.z.string()),customer_id:i.z.string()}),i.z.object({payment_method_id:i.z.string()}),i.z.object({id:i.z.string(),return_url:i.z.string()});const Co=i.z.object({type:i.z.string(),loc:i.z.array(i.z.string()),msg:i.z.string(),url:i.z.string()});i.z.array(Co),i.z.object({required_user_actions:i.z.array(i.z.record(i.z.string(),i.z.any()))}),i.z.object({required_user_actions:i.z.array(i.z.record(i.z.string(),i.z.any())),cc_pm_id:i.z.string()});const Lt=async(c,a,d)=>{const m=await c.send(a);if(Ro(m))throw new Error(`[cde-client] Error querying CDE: ${m.message}`);if(!So(m,d)){const g=d.safeParse(m);throw g.success?new Error("Invalid state"):g.error}return m},So=(c,a)=>a.safeParse(c).success,Ro=c=>co.safeParse(c).success,ko=async(c,a)=>await Lt(c,{type:"get_checkout_preview",payload:a},fn),yn=async c=>await Lt(c,{type:"get_prefill",payload:{}},dn),Oo=async(c,a)=>await Lt(c,{type:"confirm_payment_flow",payload:a},Gn);class To{constructor(a){this.formInstance=a,this.config=a.config,this.formId=a.formId,this.eventTargets={},this.nonces=new Set,this.tokenizedData=null,this.tokenized=0,this.connectionManager=a.getConnectionManager()}setTokenizedData(a){this.tokenizedData=a}handleMessage(a){if(a.origin!==this.formInstance.config.baseUrl||!a.source)return;const d=oo(JSON.parse(a.data));if(!this.validateEvent(d))return;const{elementId:g,payload:b}=d;switch(b.type){case"LAYOUT":this.handleLayoutEvent(b);break;case"FOCUS":this.handleFocusEvent(g);break;case"BLUR":this.handleBlurEvent(g);break;case"CHANGE":this.handleChangeEvent(g);break;case"LOADED":this.handleLoadedEvent(a.source,g,b);break;case"TOKENIZE_STARTED":break;case"CHECKOUT_STARTED":this.handleCheckoutStartedEvent();break;case"PAYMENT_FLOW_STARTED":this.handlePaymentFlowStartedEvent(b,a.source,g);break;case"TOKENIZE_SUCCESS":this.handleTokenizeSuccessEvent(a.source,g,b);break;case"CHECKOUT_SUCCESS":this.handleCheckoutSuccessEvent(b);break;case"SETUP_PAYMENT_METHOD_SUCCESS":this.handleSetupPaymentMethodSuccessEvent(b);break;case"LOAD_ERROR":this.handleLoadErrorEvent(b);break;case"VALIDATION_ERROR":this.handleValidationErrorEvent(b,g);break;case"TOKENIZE_ERROR":case"CHECKOUT_ERROR":this.handleErrorEvent(b);break}}validateEvent(a){return a.formId!==this.formInstance.formId||!a.elementId||this.nonces.has(a.nonce)?!1:(this.nonces.add(a.nonce),!0)}handleLayoutEvent(a){const d=a.height?`${a.height}px`:"100%";this.formInstance.setFormHeight(d)}handleFocusEvent(a){this.config.onFocus&&this.config.onFocus(a)}handleBlurEvent(a){this.config.onBlur&&this.config.onBlur(a)}handleChangeEvent(a){this.config.onChange&&this.config.onChange(a)}handleLoadedEvent(a,d,m){this.eventTargets[d]=a,this.formInstance.sessionId||(this.formInstance.sessionId=m.sessionId),this.config.onLoad&&this.config.onLoad(m.totalAmountAtoms,m.currency),this.formInstance.checkoutPaymentMethods=m.checkoutPaymentMethods}handleTokenizeStartedEvent(){this.formInstance.config.onCheckoutStarted&&this.formInstance.config.onCheckoutStarted()}handleCheckoutStartedEvent(){this.formInstance.config.onCheckoutStarted&&this.formInstance.config.onCheckoutStarted()}async handlePaymentFlowStartedEvent(a,d,m){var j;if(!this.tokenizedData)throw new Error("tokenizedData not populated");const g=this.connectionManager.getConnection(),b=async()=>{var q;const I=a.nextActionMetadata.type;if(I!==void 0)if(I==="stripe_3ds")await ro(a);else if(I==="stripe_payment_request"){if(!this.formInstance.getStripePm())throw new Error("Stripe PM not set");await to(a,this.formInstance.getStripePm())}else throw new Error(`Unknown next action type: ${I}`);const x=await yn(g);if(x.mode==="setup"){const{payment_methods:z}=await Oo(g,{secure_token:x.token,existing_cc_pm_id:(q=this.tokenizedData)==null?void 0:q.existingCCPMId});if(z.length!==1)throw new Error(`Expected exactly one payment method, got ${z.length}`);return this.tokenized=0,this.formInstance.checkoutFired=!1,this.formInstance.config.onSetupPaymentMethodSuccess&&this.formInstance.config.onSetupPaymentMethodSuccess(z[0].id),{proceedToCheckout:!1}}else return{proceedToCheckout:!0}};try{const{proceedToCheckout:I}=await b();if(!I)return;let x;if(this.tokenizedData.checkoutPaymentMethod.provider==="credit_card"&&(x=(j=a.startPFMetadata)==null?void 0:j.cc_pm_id,!x))throw new Error("CC PM ID not found");on(d,this.formInstance.formId,m,{...this.tokenizedData,type:"CHECKOUT",doNotUseLegacyCCFlow:!0,existingCCPMId:x},this.formInstance.config.baseUrl),this.formInstance.checkoutFired=!0,this.tokenizedData=null,this.formInstance.config.onCheckoutStarted&&this.formInstance.config.onCheckoutStarted()}catch(I){const x=Gr(I);this.formInstance.checkoutFired=!1,this.formInstance.config.onCheckoutError&&this.formInstance.config.onCheckoutError(x)}}handleTokenizeSuccessEvent(a,d,m){if(!this.tokenizedData)throw new Error("Tokenized data not found");const g=this.tokenized+1,b=g===Object.keys(this.eventTargets).length;!this.formInstance.checkoutFired&&(b||m.isReadyForCheckout)?(this.tokenizedData.type=this.tokenizedData.type===G.enum.TOKENIZE?G.enum.CHECKOUT:G.enum.START_PAYMENT_FLOW,this.postEventToFrame(a,d,this.tokenizedData),this.tokenizedData=null):this.tokenized=g}handleCheckoutSuccessEvent(a){this.formInstance.config.onCheckoutSuccess&&this.formInstance.config.onCheckoutSuccess(a.invoiceUrls,a.subscriptionIds,a.customerId)}handleSetupPaymentMethodSuccessEvent(a){this.formInstance.config.onSetupPaymentMethodSuccess&&this.formInstance.config.onSetupPaymentMethodSuccess(a.paymentMethodId)}handleLoadErrorEvent(a){this.formInstance.config.onLoadError&&this.formInstance.config.onLoadError(a.message)}handleValidationErrorEvent(a,d){this.formInstance.config.onValidationError&&this.formInstance.config.onValidationError(a.elementType,a.errors,d)}handleErrorEvent(a){var d;if(a.message==="3DS_REQUIRED"){const m=(d=this.formInstance.checkoutPaymentMethods)==null?void 0:d.find(g=>g.provider==="credit_card");if(!this.formInstance.sessionId||!this.formInstance.formTarget||!this.config.onValidationError||!m)return;for(const[g,b]of Object.entries(this.eventTargets)){if(!b)continue;const j=At(G.enum.START_PAYMENT_FLOW,this.formInstance.sessionId,document.querySelector(this.formInstance.formTarget)??document.body,this.config.onValidationError,{...m,processor_name:"stripe"},!1);if(j){this.formInstance.checkoutFired=!0,this.tokenizedData=j,this.postEventToFrame(b,g,j);break}}}else this.formInstance.checkoutFired=!1,this.formInstance.config.onCheckoutError&&this.formInstance.config.onCheckoutError(a.message)}handleFormSubmit(){var m;if(!this.formInstance.sessionId||!((m=this.formInstance.checkoutPaymentMethods)!=null&&m.length)||!this.config.onValidationError)return;const a=this.formInstance.checkoutPaymentMethods.find(g=>g.provider==="credit_card");if(!a)throw new Error("Card not available as a payment method in checkout");const d=At(G.enum.TOKENIZE,this.formInstance.sessionId,document.querySelector(this.formInstance.formTarget)??document.body,this.config.onValidationError,a,!1);if(!d)throw new Error("Error constructing tokenize data");for(const[g,b]of Object.entries(this.eventTargets))b&&this.postEventToFrame(b,g,d);this.tokenizedData=d}postEventToFrame(a,d,m){on(a,this.formId,d,m,this.config.baseUrl)}}async function Po(c){const d=await hn.connectToChild({iframe:c,debug:!0}).promise,m=await so(d);if(!uo(d,m))throw new Error("Got invalid CDE connection object");return d}class Io{constructor(){this.connections=new Map}addConnection(a,d){this.connections.set(a,d)}getConnection(){const a=this.connections.values().next().value;if(!a)throw new Error("Connection not found");return a}}async function jo(c,a,d,m,g,b){const j={apple_pay:{isLoading:!0,isAvailable:!1,startFlow:async()=>{}},google_pay:{isLoading:!0,isAvailable:!1,startFlow:async()=>{}}};for(const I of["apple_pay","google_pay"])try{const x=a.find(U=>U.provider===I&&U.processor_name==="stripe");if(!x)throw new Error(`${I} is not available as a checkout method`);const q=eo(x.metadata),z=await Ao(q,I);j[I]={isLoading:!1,isAvailable:z,startFlow:U=>Do(d,c.checkoutSecureToken,document.querySelector(c.formTarget),x,q,m,g,b,U)}}catch{j[I]={isLoading:!1,isAvailable:!1,startFlow:async()=>{}}}return j}async function Ao(c,a){const m=await tn(c,1e3,"usd"),g=await m.canMakePayment();if(m.abort(),!g)throw new Error(`Cannot make payment with ${a} for this session`);return g[a==="apple_pay"?"applePay":"googlePay"]}async function Do(c,a,d,m,g,b,j,I,x){try{const q=nn(d,{});if(!Mo(d,j,m))return;const U=(await yn(c)).mode==="setup",J=await Fo(U,x,q,c,a),Y=await tn(g,J.amountAtom,J.currency,U);await Y.canMakePayment(),Y.show();const Z=await Xn(Y);b(Z,m)}catch(q){I(Gr(q))}}function Mo(c,a,d){return!!At(G.enum.START_PAYMENT_FLOW,"dummy",c,a??(()=>{}),d,!1)}async function Fo(c,a,d,m,g){var z;if(c)return((z=a==null?void 0:a.overridePaymentRequest)==null?void 0:z.amount)??{amountAtom:0,currency:"usd"};a!=null&&a.overridePaymentRequest;const b=ne.safeParse(d[Ke.PROMOTION_CODE]);if(!b.success)throw new Error(`Unknown promo code type: ${b.error.message}`);const j=await ko(m,{secure_token:g,promotion_code:b.data}),I=new Set(j.preview.invoices.map(U=>U.currency));if(I.size!==1)throw new Error(`Expected exactly one currency, got ${I.size}`);const x=I.values().next().value;return{amountAtom:j.preview.invoices.reduce((U,J)=>U+J.remaining_amount_atom,0),currency:x}}class $o{constructor(a){this.config={...a,baseUrl:a.baseUrl??"https://cde.getopenpay.com"},this.elements=null,this.formId=`opjs-form-${window.crypto.randomUUID()}`,this.referer=window.location.origin,this.formTarget=a.formTarget??"body",this.formProperties={height:"1px"},this.sessionId=null,this.checkoutPaymentMethods=[],this.checkoutFired=!1,this.stripePm=void 0,this.paymentRequests=this.initPaymentRequests(),this.connectionManager=new Io,this.eventHandler=new To(this),window.addEventListener("message",this.eventHandler.handleMessage.bind(this.eventHandler))}getStripePm(){return this.stripePm}getConnectionManager(){return this.connectionManager}setFormHeight(a){this.formProperties.height=a,this.elements&&Object.values(this.elements).forEach(d=>{d.node.style.height=a})}initPaymentRequests(){return{apple_pay:{isLoading:!0,isAvailable:!1,startFlow:async()=>{}},google_pay:{isLoading:!0,isAvailable:!1,startFlow:async()=>{}}}}createElement(a,d={}){if(!this.config)throw new Error("OpenPay form not initialized");const m=document.createElement("iframe"),g=this.buildQueryString(d);m.name=`${a}-element`,m.src=`${this.config.baseUrl}/app/v1/${a}-element/?${g.toString()}`,m.style.border="none",m.style.width="100%";const b={type:a,node:m,mount:j=>{var I;return(I=document.querySelector(j))==null?void 0:I.appendChild(m)}};return this.elements?this.elements[a]=b:(this.elements={[a]:b},this.connectToElement(b)),b}buildQueryString(a){const d=new URLSearchParams;return d.append("referer",this.referer),d.append("formId",this.formId),a.styles&&d.append("styles",no(a.styles)),d.append("secureToken",this.config.checkoutSecureToken),d}connectToElement(a){Po(a.node).then(d=>{this.connectionManager.addConnection(a.type,d),this.initializePaymentRequests()}).catch(d=>{})}submit(){this.eventHandler.handleFormSubmit()}async onUserCompletePaymentRequestUI(a,d){if(!(!this.config.onValidationError||!this.sessionId||!this.checkoutPaymentMethods))for(const[m,g]of Object.entries(this.eventHandler.eventTargets??{})){const b={stripePmId:a.paymentMethod.id},j=At(G.enum.START_PAYMENT_FLOW,this.sessionId,document.querySelector(this.formTarget)??document.body,this.config.onValidationError,d,!1,b);if(j){this.stripePm=a,this.checkoutFired=!0,this.eventHandler.setTokenizedData(j),this.eventHandler.postEventToFrame(g,m,j);break}}}onPaymentRequestError(a){this.checkoutFired=!1,this.config.onCheckoutError&&this.config.onCheckoutError(a)}async initializePaymentRequests(){if(!this.config.checkoutSecureToken||!this.checkoutPaymentMethods||!this.formTarget)return;const a=this.connectionManager.getConnection();a&&(this.paymentRequests=await jo(this.config,this.checkoutPaymentMethods,a,this.onUserCompletePaymentRequestUI.bind(this),this.config.onValidationError,this.onPaymentRequestError.bind(this)),this.config.onPaymentRequestLoad&&this.config.onPaymentRequestLoad(this.paymentRequests))}destroy(){for(const a of Object.values(this.elements??{}))a.node.remove();window.removeEventListener("message",this.eventHandler.handleMessage.bind(this.eventHandler))}}ve.FieldName=Ke,ve.OpenPayForm=$o,Object.defineProperty(ve,Symbol.toStringTag,{value:"Module"})});
|
|
81
|
+
Check the top-level render call using <`+n+">.")}return t}function Et(e,t){if(!(!e._store||e._store.validated||e.key!=null)){e._store.validated=!0;var n=Ar(t);if(!bt[n]){bt[n]=!0;var o="";e&&e._owner&&e._owner!==V.current&&(o=" It was passed a child from "+ee(e._owner.type)+"."),le(e),f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,o),le(null)}}}function wt(e,t){if(typeof e=="object"){if(Ce(e))for(var n=0;n<e.length;n++){var o=e[n];ce(o)&&Et(o,t)}else if(ce(e))e._store&&(e._store.validated=!0);else if(e){var u=ae(e);if(typeof u=="function"&&u!==e.entries)for(var p=u.call(e),l;!(l=p.next()).done;)ce(l.value)&&Et(l.value,t)}}}function Ct(e){{var t=e.type;if(t==null||typeof t=="string")return;var n;if(typeof t=="function")n=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===z||t.$$typeof===Y))n=t.propTypes;else return;if(n){var o=ee(t);Pr(n,e.props,"prop",o,e)}else if(t.PropTypes!==void 0&&!Ve){Ve=!0;var u=ee(t);f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Mr(e){{for(var t=Object.keys(e.props),n=0;n<t.length;n++){var o=t[n];if(o!=="children"&&o!=="key"){le(e),f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),le(null);break}}e.ref!==null&&(le(e),f("Invalid attribute `ref` supplied to `React.Fragment`."),le(null))}}function St(e,t,n){var o=st(e);if(!o){var u="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" 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=jr(t);p?u+=p:u+=_t();var l;e===null?l="null":Ce(e)?l="array":e!==void 0&&e.$$typeof===m?(l="<"+(ee(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,f("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",l,u)}var y=Bt.apply(this,arguments);if(y==null)return y;if(o)for(var v=2;v<arguments.length;v++)wt(arguments[v],e);return e===b?Mr(y):Ct(y),y}var Rt=!1;function Dr(e){var t=St.bind(null,e);return t.type=e,Rt||(Rt=!0,X("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return X("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}function Fr(e,t,n){for(var o=Gt.apply(this,arguments),u=2;u<arguments.length;u++)wt(arguments[u],o.type);return Ct(o),o}function $r(e,t){var n=K.transition;K.transition={};var o=K.transition;K.transition._updatedFibers=new Set;try{e()}finally{if(K.transition=n,n===null&&o._updatedFibers){var u=o._updatedFibers.size;u>10&&X("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),o._updatedFibers.clear()}}}var kt=!1,je=null;function xr(e){if(je===null)try{var t=("require"+Math.random()).slice(0,7),n=c&&c[t];je=n.call(c,"timers").setImmediate}catch{je=function(o){kt===!1&&(kt=!0,typeof MessageChannel>"u"&&f("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var u=new MessageChannel;u.port1.onmessage=o,u.port2.postMessage(void 0)}}return je(e)}var fe=0,Ot=!1;function Tt(e){{var t=fe;fe++,F.current===null&&(F.current=[]);var n=F.isBatchingLegacy,o;try{if(F.isBatchingLegacy=!0,o=e(),!n&&F.didScheduleLegacyUpdate){var u=F.current;u!==null&&(F.didScheduleLegacyUpdate=!1,He(u))}}catch(T){throw Ae(t),T}finally{F.isBatchingLegacy=n}if(o!==null&&typeof o=="object"&&typeof o.then=="function"){var p=o,l=!1,y={then:function(T,A){l=!0,p.then(function(x){Ae(t),fe===0?qe(x,T,A):T(x)},function(x){Ae(t),A(x)})}};return!Ot&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){l||(Ot=!0,f("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),y}else{var v=o;if(Ae(t),fe===0){var w=F.current;w!==null&&(He(w),F.current=null);var S={then:function(T,A){F.current===null?(F.current=[],qe(v,T,A)):T(v)}};return S}else{var R={then:function(T,A){T(v)}};return R}}}}function Ae(e){e!==fe-1&&f("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),fe=e}function qe(e,t,n){{var o=F.current;if(o!==null)try{He(o),xr(function(){o.length===0?(F.current=null,t(e)):qe(e,t,n)})}catch(u){n(u)}else t(e)}}var Ye=!1;function He(e){if(!Ye){Ye=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do n=n(!0);while(n!==null)}e.length=0}catch(o){throw e=e.slice(t+1),o}finally{Ye=!1}}}var Lr=St,Nr=Fr,Ur=Dr,zr={map:ke,forEach:er,count:Xt,toArray:tr,only:rr};a.Children=zr,a.Component=_,a.Fragment=b,a.Profiler=P,a.PureComponent=C,a.StrictMode=I,a.Suspense=U,a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H,a.act=Tt,a.cloneElement=Nr,a.createContext=nr,a.createElement=Lr,a.createFactory=Ur,a.createRef=Nt,a.forwardRef=sr,a.isValidElement=ce,a.lazy=ir,a.memo=ur,a.startTransition=$r,a.unstable_act=Tt,a.useCallback=hr,a.useContext=cr,a.useDebugValue=_r,a.useDeferredValue=Er,a.useEffect=dr,a.useId=wr,a.useImperativeHandle=gr,a.useInsertionEffect=yr,a.useLayoutEffect=mr,a.useMemo=vr,a.useReducer=fr,a.useRef=pr,a.useState=lr,a.useSyncExternalStore=Cr,a.useTransition=br,a.version=d,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(Mt,Mt.exports)),Mt.exports}process.env.NODE_ENV==="production"?ao():io();const so=async c=>{if(typeof c!="object"||!c)return!1;try{const a={type:"ping"},d=await c.send(a);if(d!==!0)throw new Error(`Expected 'true' after ping, got ${JSON.stringify(d)}`);return!0}catch{return!1}},uo=(c,a)=>!!c&&a,W=c=>i.z.nullable(c.optional());i.z.string().trim().min(1,{message:"Cannot be blank"});const co=i.z.object({cde_response_type:i.z.literal("error"),message:i.z.string()}),lo=i.z.enum(["usd","brl"]),un=i.z.object({name:i.z.string(),amount_atom_off:W(i.z.number()),percent_off:W(i.z.number()),currency:W(i.z.string()),duration:i.z.string(),duration_in_months:W(i.z.number())}),fo=i.z.object({amount_subtotal_atom:i.z.number().int(),amount_total_atom:i.z.number().int(),currency:i.z.string(),description:W(i.z.string()),price_id:i.z.string(),billing_interval:W(i.z.string()),billing_interval_count:W(i.z.number().int()),quantity:i.z.number().int()}),po=i.z.record(i.z.string(),i.z.any()),yo=i.z.object({name:i.z.string(),settings:W(po)}),mo=i.z.object({provider:i.z.string(),processor_name:W(i.z.string()),metadata:W(i.z.record(i.z.string(),i.z.any()))}),ho=i.z.object({quantity:i.z.number()}),vo=i.z.object({id:W(i.z.string()),billing_interval:W(i.z.string()),billing_interval_count:W(i.z.number().int()),subscription_items:i.z.array(ho),trial_start:W(i.z.string()),trial_end:W(i.z.string())}),cn=i.z.object({amount_atom:i.z.number()}),go=i.z.object({amount_atom:i.z.number(),amount_atom_considering_discount_applied:i.z.number(),currency:i.z.string(),discount_amount_atoms:i.z.array(cn),subscription_item_id:i.z.string()}),_o=i.z.object({coupon:un}),bo=i.z.object({currency:i.z.string(),discounts:i.z.array(_o),hosted_invoice_url:W(i.z.string()),lines:i.z.array(go),remaining_amount_atom:i.z.number(),tax_amount_atom:i.z.number(),total_amount_atom:i.z.number(),total_discount_amount_atoms:i.z.array(cn)}),ln=i.z.object({created:i.z.array(vo),invoices:i.z.array(bo)}),fn=i.z.object({preview:ln,preview_post_trial:W(ln),coupons:i.z.array(un)}),pn=i.z.object({status:i.z.literal("open"),token:i.z.string(),email:W(i.z.string()),line_items:i.z.array(fo),amount_subtotal_atom:i.z.number().int(),amount_total_atom:i.z.number().int(),brand:yo,subs_preview:W(fn),methods_available:i.z.array(mo)}),dn=i.z.discriminatedUnion("mode",[i.z.object({mode:i.z.literal("setup"),currency:i.z.nullable(i.z.undefined())}).extend(pn.shape),i.z.object({mode:i.z.enum(["payment","subscription"]),currency:lo}).extend(pn.shape)]),Eo=i.z.object({status:i.z.literal("complete")}),wo=i.z.object({status:i.z.literal("expired")});i.z.union([dn,Eo,wo]),i.z.object({logo:i.z.string(),icon:i.z.string(),primary_color:i.z.string(),secondary_color:i.z.string()}),i.z.object({invoice_urls:i.z.array(i.z.string()),subscription_ids:i.z.array(i.z.string()),customer_id:i.z.string()}),i.z.object({payment_method_id:i.z.string()}),i.z.object({id:i.z.string(),return_url:i.z.string()});const Co=i.z.object({type:i.z.string(),loc:i.z.array(i.z.string()),msg:i.z.string(),url:i.z.string()});i.z.array(Co),i.z.object({required_user_actions:i.z.array(i.z.record(i.z.string(),i.z.any()))}),i.z.object({required_user_actions:i.z.array(i.z.record(i.z.string(),i.z.any())),cc_pm_id:i.z.string()});const Lt=async(c,a,d)=>{const m=await c.send(a);if(Ro(m))throw new Error(`[cde-client] Error querying CDE: ${m.message}`);if(!So(m,d)){const g=d.safeParse(m);throw g.success?new Error("Invalid state"):g.error}return m},So=(c,a)=>a.safeParse(c).success,Ro=c=>co.safeParse(c).success,ko=async(c,a)=>await Lt(c,{type:"get_checkout_preview",payload:a},fn),yn=async c=>await Lt(c,{type:"get_prefill",payload:{}},dn),Oo=async(c,a)=>await Lt(c,{type:"confirm_payment_flow",payload:a},Gn);class To{constructor(a){this.formInstance=a,this.config=a.config,this.formId=a.formId,this.eventTargets={},this.nonces=new Set,this.tokenizedData=null,this.tokenized=0,this.connectionManager=a.getConnectionManager()}setTokenizedData(a){this.tokenizedData=a}handleMessage(a){var P;if(!a.source)throw new Error("No source found");if(a.origin!==((P=this.formInstance.config._frameUrl)==null?void 0:P.origin))return;const d=oo(JSON.parse(a.data));if(!this.validateEvent(d))return;const{elementId:g,payload:b}=d;switch(b.type){case"LAYOUT":this.handleLayoutEvent(b);break;case"FOCUS":this.handleFocusEvent(g);break;case"BLUR":this.handleBlurEvent(g);break;case"CHANGE":this.handleChangeEvent(g);break;case"LOADED":this.handleLoadedEvent(a.source,g,b);break;case"TOKENIZE_STARTED":break;case"CHECKOUT_STARTED":this.handleCheckoutStartedEvent();break;case"PAYMENT_FLOW_STARTED":this.handlePaymentFlowStartedEvent(b,a.source,g);break;case"TOKENIZE_SUCCESS":this.handleTokenizeSuccessEvent(a.source,g,b);break;case"CHECKOUT_SUCCESS":this.handleCheckoutSuccessEvent(b);break;case"SETUP_PAYMENT_METHOD_SUCCESS":this.handleSetupPaymentMethodSuccessEvent(b);break;case"LOAD_ERROR":this.handleLoadErrorEvent(b);break;case"VALIDATION_ERROR":this.handleValidationErrorEvent(b,g);break;case"TOKENIZE_ERROR":case"CHECKOUT_ERROR":this.handleErrorEvent(b);break}}validateEvent(a){return a.formId!==this.formInstance.formId||!a.elementId||this.nonces.has(a.nonce)?!1:(this.nonces.add(a.nonce),!0)}handleLayoutEvent(a){const d=a.height?`${a.height}px`:"100%";this.formInstance.setFormHeight(d)}handleFocusEvent(a){this.config.onFocus&&this.config.onFocus(a)}handleBlurEvent(a){this.config.onBlur&&this.config.onBlur(a)}handleChangeEvent(a){this.config.onChange&&this.config.onChange(a)}handleLoadedEvent(a,d,m){this.eventTargets[d]=a,this.formInstance.sessionId||(this.formInstance.sessionId=m.sessionId),this.config.onLoad&&this.config.onLoad(m.totalAmountAtoms,m.currency),this.formInstance.checkoutPaymentMethods=m.checkoutPaymentMethods}handleTokenizeStartedEvent(){this.formInstance.config.onCheckoutStarted&&this.formInstance.config.onCheckoutStarted()}handleCheckoutStartedEvent(){this.formInstance.config.onCheckoutStarted&&this.formInstance.config.onCheckoutStarted()}async handlePaymentFlowStartedEvent(a,d,m){var I;if(!this.tokenizedData)throw new Error("tokenizedData not populated");const g=this.connectionManager.getConnection(),b=async()=>{var q;const P=a.nextActionMetadata.type;if(P!==void 0)if(P==="stripe_3ds")await ro(a);else if(P==="stripe_payment_request"){if(!this.formInstance.getStripePm())throw new Error("Stripe PM not set");await to(a,this.formInstance.getStripePm())}else throw new Error(`Unknown next action type: ${P}`);const $=await yn(g);if($.mode==="setup"){const{payment_methods:z}=await Oo(g,{secure_token:$.token,existing_cc_pm_id:(q=this.tokenizedData)==null?void 0:q.existingCCPMId});if(z.length!==1)throw new Error(`Expected exactly one payment method, got ${z.length}`);return this.tokenized=0,this.formInstance.checkoutFired=!1,this.formInstance.config.onSetupPaymentMethodSuccess&&this.formInstance.config.onSetupPaymentMethodSuccess(z[0].id),{proceedToCheckout:!1}}else return{proceedToCheckout:!0}};try{const{proceedToCheckout:P}=await b();if(!P)return;let $;if(this.tokenizedData.checkoutPaymentMethod.provider==="credit_card"&&($=(I=a.startPFMetadata)==null?void 0:I.cc_pm_id,!$))throw new Error("CC PM ID not found");on(d,this.formInstance.formId,m,{...this.tokenizedData,type:"CHECKOUT",doNotUseLegacyCCFlow:!0,existingCCPMId:$},this.formInstance.config.baseUrl),this.formInstance.checkoutFired=!0,this.tokenizedData=null,this.formInstance.config.onCheckoutStarted&&this.formInstance.config.onCheckoutStarted()}catch(P){const $=Gr(P);this.formInstance.checkoutFired=!1,this.formInstance.config.onCheckoutError&&this.formInstance.config.onCheckoutError($)}}handleTokenizeSuccessEvent(a,d,m){if(!this.tokenizedData)throw new Error("Tokenized data not found");const g=this.tokenized+1,b=g===Object.keys(this.eventTargets).length;!this.formInstance.checkoutFired&&(b||m.isReadyForCheckout)?(this.tokenizedData.type=this.tokenizedData.type===G.enum.TOKENIZE?G.enum.CHECKOUT:G.enum.START_PAYMENT_FLOW,this.postEventToFrame(a,d,this.tokenizedData),this.tokenizedData=null):this.tokenized=g}handleCheckoutSuccessEvent(a){this.formInstance.config.onCheckoutSuccess&&this.formInstance.config.onCheckoutSuccess(a.invoiceUrls,a.subscriptionIds,a.customerId)}handleSetupPaymentMethodSuccessEvent(a){this.formInstance.config.onSetupPaymentMethodSuccess&&this.formInstance.config.onSetupPaymentMethodSuccess(a.paymentMethodId)}handleLoadErrorEvent(a){this.formInstance.config.onLoadError&&this.formInstance.config.onLoadError(a.message)}handleValidationErrorEvent(a,d){this.formInstance.config.onValidationError&&this.formInstance.config.onValidationError(a.elementType,a.errors,d)}handleErrorEvent(a){var d;if(a.message==="3DS_REQUIRED"){const m=(d=this.formInstance.checkoutPaymentMethods)==null?void 0:d.find(g=>g.provider==="credit_card");if(!this.formInstance.sessionId||!this.formInstance.formTarget||!this.config.onValidationError||!m)return;for(const[g,b]of Object.entries(this.eventTargets)){if(!b)continue;const I=At(G.enum.START_PAYMENT_FLOW,this.formInstance.sessionId,document.querySelector(this.formInstance.formTarget)??document.body,this.config.onValidationError,{...m,processor_name:"stripe"},!1);if(I){this.formInstance.checkoutFired=!0,this.tokenizedData=I,this.postEventToFrame(b,g,I);break}}}else this.formInstance.checkoutFired=!1,this.formInstance.config.onCheckoutError&&this.formInstance.config.onCheckoutError(a.message)}handleFormSubmit(){var m;if(!this.formInstance.sessionId||!((m=this.formInstance.checkoutPaymentMethods)!=null&&m.length)||!this.config.onValidationError)return;const a=this.formInstance.checkoutPaymentMethods.find(g=>g.provider==="credit_card");if(!a)throw new Error("Card not available as a payment method in checkout");const d=At(G.enum.TOKENIZE,this.formInstance.sessionId,document.querySelector(this.formInstance.formTarget)??document.body,this.config.onValidationError,a,!1);if(!d)throw new Error("Error constructing tokenize data");for(const[g,b]of Object.entries(this.eventTargets))b&&this.postEventToFrame(b,g,d);this.tokenizedData=d}postEventToFrame(a,d,m){on(a,this.formId,d,m,this.config.baseUrl)}}async function Po(c){const d=await hn.connectToChild({iframe:c,debug:!0}).promise,m=await so(d);if(!uo(d,m))throw new Error("Got invalid CDE connection object");return d}class Io{constructor(){this.connections=new Map}addConnection(a,d){this.connections.set(a,d)}getConnection(){const a=this.connections.values().next().value;if(!a)throw new Error("Connection not found");return a}}async function jo(c,a,d,m,g,b){const I={apple_pay:{isLoading:!0,isAvailable:!1,startFlow:async()=>{}},google_pay:{isLoading:!0,isAvailable:!1,startFlow:async()=>{}}};for(const P of["apple_pay","google_pay"])try{const $=a.find(U=>U.provider===P&&U.processor_name==="stripe");if(!$)throw new Error(`${P} is not available as a checkout method`);const q=eo($.metadata),z=await Ao(q,P);I[P]={isLoading:!1,isAvailable:z,startFlow:U=>Mo(d,c.checkoutSecureToken,document.querySelector(c.formTarget),$,q,m,g,b,U)}}catch{I[P]={isLoading:!1,isAvailable:!1,startFlow:async()=>{}}}return I}async function Ao(c,a){const m=await tn(c,1e3,"usd"),g=await m.canMakePayment();if(m.abort(),!g)throw new Error(`Cannot make payment with ${a} for this session`);return g[a==="apple_pay"?"applePay":"googlePay"]}async function Mo(c,a,d,m,g,b,I,P,$){try{const q=nn(d,{});if(!Do(d,I,m))return;const U=(await yn(c)).mode==="setup",J=await Fo(U,$,q,c,a),Y=await tn(g,J.amountAtom,J.currency,U);await Y.canMakePayment(),Y.show();const Z=await Xn(Y);b(Z,m)}catch(q){P(Gr(q))}}function Do(c,a,d){return!!At(G.enum.START_PAYMENT_FLOW,"dummy",c,a??(()=>{}),d,!1)}async function Fo(c,a,d,m,g){var z;if(c)return((z=a==null?void 0:a.overridePaymentRequest)==null?void 0:z.amount)??{amountAtom:0,currency:"usd"};a!=null&&a.overridePaymentRequest;const b=te.safeParse(d[Be.PROMOTION_CODE]);if(!b.success)throw new Error(`Unknown promo code type: ${b.error.message}`);const I=await ko(m,{secure_token:g,promotion_code:b.data}),P=new Set(I.preview.invoices.map(U=>U.currency));if(P.size!==1)throw new Error(`Expected exactly one currency, got ${P.size}`);const $=P.values().next().value;return{amountAtom:I.preview.invoices.reduce((U,J)=>U+J.remaining_amount_atom,0),currency:$}}class $o{constructor(a){this.config={...a,baseUrl:a.baseUrl??"https://cde.getopenpay.com"},this.elements=null,this.formId=`opjs-form-${window.crypto.randomUUID()}`,this.referer=window.location.origin,this.formTarget=a.formTarget??"body",this.formProperties={height:"1px"},this.sessionId=null,this.checkoutPaymentMethods=[],this.checkoutFired=!1,this.stripePm=void 0,this.paymentRequests=this.initPaymentRequests(),this.connectionManager=new Io,this.eventHandler=new To(this);const d={version:"0.1.3"};window.ojs_version=d,window.addEventListener("message",this.eventHandler.handleMessage.bind(this.eventHandler))}getStripePm(){return this.stripePm}getConnectionManager(){return this.connectionManager}setFormHeight(a){this.formProperties.height=a,this.elements&&Object.values(this.elements).forEach(d=>{d.node.style.height=a})}initPaymentRequests(){return{apple_pay:{isLoading:!0,isAvailable:!1,startFlow:async()=>{}},google_pay:{isLoading:!0,isAvailable:!1,startFlow:async()=>{}}}}createElement(a,d={}){if(!this.config)throw new Error("OpenPay form not initialized");const m=document.createElement("iframe"),g=this.buildQueryString(d);m.name=`${a}-element`;const b=new URL(`/app/v1/${m.name}`,this.config.baseUrl);b.search=g.toString(),m.src=b.href,this.config._frameUrl=b,m.style.border="none",m.style.width="100%";const I={type:a,node:m,mount:P=>{var $;return($=document.querySelector(P))==null?void 0:$.appendChild(m)}};return this.elements?this.elements[a]=I:(this.elements={[a]:I},this.connectToElement(I)),I}buildQueryString(a){const d=new URLSearchParams;return d.append("referer",this.referer),d.append("formId",this.formId),a.styles&&d.append("styles",no(a.styles)),d.append("secureToken",this.config.checkoutSecureToken),d}connectToElement(a){Po(a.node).then(d=>{this.connectionManager.addConnection(a.type,d),this.initializePaymentRequests()}).catch(d=>{})}submit(){this.eventHandler.handleFormSubmit()}async onUserCompletePaymentRequestUI(a,d){if(!(!this.config.onValidationError||!this.sessionId||!this.checkoutPaymentMethods))for(const[m,g]of Object.entries(this.eventHandler.eventTargets??{})){const b={stripePmId:a.paymentMethod.id},I=At(G.enum.START_PAYMENT_FLOW,this.sessionId,document.querySelector(this.formTarget)??document.body,this.config.onValidationError,d,!1,b);if(I){this.stripePm=a,this.checkoutFired=!0,this.eventHandler.setTokenizedData(I),this.eventHandler.postEventToFrame(g,m,I);break}}}onPaymentRequestError(a){this.checkoutFired=!1,this.config.onCheckoutError&&this.config.onCheckoutError(a)}async initializePaymentRequests(){if(!this.config.checkoutSecureToken||!this.checkoutPaymentMethods||!this.formTarget)return;const a=this.connectionManager.getConnection();a&&(this.paymentRequests=await jo(this.config,this.checkoutPaymentMethods,a,this.onUserCompletePaymentRequestUI.bind(this),this.config.onValidationError,this.onPaymentRequestError.bind(this)),this.config.onPaymentRequestLoad&&this.config.onPaymentRequestLoad(this.paymentRequests))}destroy(){for(const a of Object.values(this.elements??{}))a.node.remove();window.removeEventListener("message",this.eventHandler.handleMessage.bind(this.eventHandler))}}ve.FieldName=Be,ve.OpenPayForm=$o,Object.defineProperty(ve,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getopenpay/openpay-js",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Accept payments through OpenPay, right on your site",
|
|
5
5
|
"author": "OpenPay <info@getopenpay.com> (https://getopenpay.com)",
|
|
6
6
|
"license": "ISC",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"dev": "tsc -p tsconfig.build.json && NODE_ENV=development vite build --mode development --watch"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"penpal": "^6.2.2",
|
|
35
34
|
"@stripe/stripe-js": "^4.3.0",
|
|
35
|
+
"penpal": "^6.2.2",
|
|
36
36
|
"uuid": "^10.0.0",
|
|
37
37
|
"zod": "^3.23.8"
|
|
38
38
|
},
|