@obb871001/api-integration-sdk 1.0.15 → 1.0.18
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.cjs +10 -10
- package/dist/index.js +266 -230
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@tanstack/react-query")
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const dr=require("@tanstack/react-query"),C=require("react"),vr=require("axios"),Q=C.createContext(null),xe=()=>{const c=C.useContext(Q);if(!c)throw new Error("useApiContext must be used within ApiProvider");return c},pr=()=>{const{client:c}=xe(),v=C.useCallback(async d=>{const{mac_address:p="",app_version:o="",anydesk_id:m=""}=d,{data:y}=await c.post("/cash-register/login",{mac_address:p,app_version:o,anydesk_id:m});return y},[c]),_=C.useCallback(async()=>{const{data:d}=await c.get("/getMemberInfo");return d},[c]),R=C.useCallback(async()=>{const{data:d}=await c.get("/getGameList");return d},[c]),T=C.useCallback(async()=>{const{data:d}=await c.get("/getNowCurrencyExchange");return d},[c]),P=C.useCallback(async()=>{const{data:d}=await c.get("/getFavoriteGame");return d},[c]);return{machineLoginApi:v,userInfoApi:_,userGameListApi:R,userFavoriteGameApi:P,userCurrencyExchangeApi:T}},yr=()=>{const{userInfoApi:c}=pr(),{data:v,isFetching:_}=dr.useQueries({queries:[{queryKey:["getMemberInfo"],queryFn:c,refetchInterval:5e4}]});return{data:v,isFetching:_}};var V={exports:{}},$={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.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
|
|
9
|
+
*/var we;function gr(){if(we)return $;we=1;var c=C,v=Symbol.for("react.element"),_=Symbol.for("react.fragment"),R=Object.prototype.hasOwnProperty,T=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,P={key:!0,ref:!0,__self:!0,__source:!0};function d(p,o,m){var y,w={},x=null,Y=null;m!==void 0&&(x=""+m),o.key!==void 0&&(x=""+o.key),o.ref!==void 0&&(Y=o.ref);for(y in o)R.call(o,y)&&!P.hasOwnProperty(y)&&(w[y]=o[y]);if(p&&p.defaultProps)for(y in o=p.defaultProps,o)w[y]===void 0&&(w[y]=o[y]);return{$$typeof:v,type:p,key:x,ref:Y,props:w,_owner:T.current}}return $.Fragment=_,$.jsx=d,$.jsxs=d,$}var W={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,17 +14,17 @@
|
|
|
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
|
-
*/var
|
|
18
|
-
`+
|
|
19
|
-
`),
|
|
20
|
-
`),l=a.length-1,
|
|
21
|
-
`+a[l].replace(" at new "," at ");return e.displayName&&
|
|
17
|
+
*/var Pe;function hr(){return Pe||(Pe=1,process.env.NODE_ENV!=="production"&&(function(){var c=C,v=Symbol.for("react.element"),_=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),p=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),Y=Symbol.for("react.offscreen"),Z=Symbol.iterator,Se="@@iterator";function je(e){if(e===null||typeof e!="object")return null;var r=Z&&e[Z]||e[Se];return typeof r=="function"?r:null}var k=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];ke("error",e,t)}}function ke(e,r,t){{var n=k.ReactDebugCurrentFrame,u=n.getStackAddendum();u!==""&&(r+="%s",t=t.concat([u]));var s=t.map(function(i){return String(i)});s.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,s)}}var Ae=!1,Fe=!1,De=!1,Ie=!1,$e=!1,ee;ee=Symbol.for("react.module.reference");function We(e){return!!(typeof e=="string"||typeof e=="function"||e===R||e===P||$e||e===T||e===m||e===y||Ie||e===Y||Ae||Fe||De||typeof e=="object"&&e!==null&&(e.$$typeof===x||e.$$typeof===w||e.$$typeof===d||e.$$typeof===p||e.$$typeof===o||e.$$typeof===ee||e.getModuleId!==void 0))}function Ye(e,r,t){var n=e.displayName;if(n)return n;var u=r.displayName||r.name||"";return u!==""?t+"("+u+")":t}function re(e){return e.displayName||"Context"}function O(e){if(e==null)return null;if(typeof e.tag=="number"&&g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case _:return"Portal";case P:return"Profiler";case T:return"StrictMode";case m:return"Suspense";case y:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p:var r=e;return re(r)+".Consumer";case d:var t=e;return re(t._context)+".Provider";case o:return Ye(e,e.render,"ForwardRef");case w:var n=e.displayName||null;return n!==null?n:O(e.type)||"Memo";case x:{var u=e,s=u._payload,i=u._init;try{return O(i(s))}catch{return null}}}return null}var S=Object.assign,D=0,te,ne,ae,ie,oe,ue,se;function ce(){}ce.__reactDisabledLog=!0;function Le(){{if(D===0){te=console.log,ne=console.info,ae=console.warn,ie=console.error,oe=console.group,ue=console.groupCollapsed,se=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ce,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}D++}}function Me(){{if(D--,D===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:S({},e,{value:te}),info:S({},e,{value:ne}),warn:S({},e,{value:ae}),error:S({},e,{value:ie}),group:S({},e,{value:oe}),groupCollapsed:S({},e,{value:ue}),groupEnd:S({},e,{value:se})})}D<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var N=k.ReactCurrentDispatcher,J;function L(e,r,t){{if(J===void 0)try{throw Error()}catch(u){var n=u.stack.trim().match(/\n( *(at )?)/);J=n&&n[1]||""}return`
|
|
18
|
+
`+J+e}}var B=!1,M;{var Ue=typeof WeakMap=="function"?WeakMap:Map;M=new Ue}function le(e,r){if(!e||B)return"";{var t=M.get(e);if(t!==void 0)return t}var n;B=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var s;s=N.current,N.current=null,Le();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(b){n=b}Reflect.construct(e,[],i)}else{try{i.call()}catch(b){n=b}e.call(i.prototype)}}else{try{throw Error()}catch(b){n=b}e()}}catch(b){if(b&&n&&typeof b.stack=="string"){for(var a=b.stack.split(`
|
|
19
|
+
`),h=n.stack.split(`
|
|
20
|
+
`),l=a.length-1,f=h.length-1;l>=1&&f>=0&&a[l]!==h[f];)f--;for(;l>=1&&f>=0;l--,f--)if(a[l]!==h[f]){if(l!==1||f!==1)do if(l--,f--,f<0||a[l]!==h[f]){var E=`
|
|
21
|
+
`+a[l].replace(" at new "," at ");return e.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",e.displayName)),typeof e=="function"&&M.set(e,E),E}while(l>=1&&f>=0);break}}}finally{B=!1,N.current=s,Me(),Error.prepareStackTrace=u}var F=e?e.displayName||e.name:"",j=F?L(F):"";return typeof e=="function"&&M.set(e,j),j}function qe(e,r,t){return le(e,!1)}function Ve(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,t){if(e==null)return"";if(typeof e=="function")return le(e,Ve(e));if(typeof e=="string")return L(e);switch(e){case m:return L("Suspense");case y:return L("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case o:return qe(e.render);case w:return U(e.type,r,t);case x:{var n=e,u=n._payload,s=n._init;try{return U(s(u),r,t)}catch{}}}return""}var I=Object.prototype.hasOwnProperty,fe={},de=k.ReactDebugCurrentFrame;function q(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);de.setExtraStackFrame(t)}else de.setExtraStackFrame(null)}function Ne(e,r,t,n,u){{var s=Function.call.bind(I);for(var i in e)if(s(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var h=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(l){a=l}a&&!(a instanceof Error)&&(q(u),g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),q(null)),a instanceof Error&&!(a.message in fe)&&(fe[a.message]=!0,q(u),g("Failed %s type: %s",t,a.message),q(null))}}}var Je=Array.isArray;function G(e){return Je(e)}function Be(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Ge(e){try{return ve(e),!1}catch{return!0}}function ve(e){return""+e}function pe(e){if(Ge(e))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Be(e)),ve(e)}var ye=k.ReactCurrentOwner,Ke={key:!0,ref:!0,__self:!0,__source:!0},ge,he;function ze(e){if(I.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Xe(e){if(I.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function He(e,r){typeof e.ref=="string"&&ye.current}function Qe(e,r){{var t=function(){ge||(ge=!0,g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function Ze(e,r){{var t=function(){he||(he=!0,g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var er=function(e,r,t,n,u,s,i){var a={$$typeof:v,type:e,key:r,ref:t,props:i,_owner:s};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function rr(e,r,t,n,u){{var s,i={},a=null,h=null;t!==void 0&&(pe(t),a=""+t),Xe(r)&&(pe(r.key),a=""+r.key),ze(r)&&(h=r.ref,He(r,u));for(s in r)I.call(r,s)&&!Ke.hasOwnProperty(s)&&(i[s]=r[s]);if(e&&e.defaultProps){var l=e.defaultProps;for(s in l)i[s]===void 0&&(i[s]=l[s])}if(a||h){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&Qe(i,f),h&&Ze(i,f)}return er(e,a,h,u,n,ye.current,i)}}var K=k.ReactCurrentOwner,be=k.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);be.setExtraStackFrame(t)}else be.setExtraStackFrame(null)}var z;z=!1;function X(e){return typeof e=="object"&&e!==null&&e.$$typeof===v}function Ee(){{if(K.current){var e=O(K.current.type);if(e)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+e+"`."}return""}}function
|
|
23
|
+
Check the render method of \``+e+"`."}return""}}function tr(e){return""}var _e={};function nr(e){{var r=Ee();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+t+">.")}return r}}function
|
|
25
|
+
Check the top-level render call using <`+t+">.")}return r}}function me(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=nr(r);if(_e[t])return;_e[t]=!0;var n="";e&&e._owner&&e._owner!==K.current&&(n=" It was passed a child from "+O(e._owner.type)+"."),A(e),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),A(null)}}function Re(e,r){{if(typeof e!="object")return;if(G(e))for(var t=0;t<e.length;t++){var n=e[t];X(n)&&me(n,r)}else if(X(e))e._store&&(e._store.validated=!0);else if(e){var u=je(e);if(typeof u=="function"&&u!==e.entries)for(var s=u.call(e),i;!(i=s.next()).done;)X(i.value)&&me(i.value,r)}}}function ar(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===o||r.$$typeof===w))t=r.propTypes;else return;if(t){var n=O(r);Ne(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!z){z=!0;var u=O(r);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ir(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){A(e),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),A(null);break}}e.ref!==null&&(A(e),g("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}var Ce={};function Te(e,r,t,n,u,s){{var i=We(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var h=tr();h?a+=h:a+=Ee();var l;e===null?l="null":G(e)?l="array":e!==void 0&&e.$$typeof===v?(l="<"+(O(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",l,a)}var f=rr(e,r,t,u,s);if(f==null)return f;if(i){var E=r.children;if(E!==void 0)if(n)if(G(E)){for(var F=0;F<E.length;F++)Re(E[F],e);Object.freeze&&Object.freeze(E)}else g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Re(E,e)}if(I.call(r,"key")){var j=O(e),b=Object.keys(r).filter(function(fr){return fr!=="key"}),H=b.length>0?"{key: someKey, "+b.join(": ..., ")+": ...}":"{key: someKey}";if(!Ce[j+H]){var lr=b.length>0?"{"+b.join(": ..., ")+": ...}":"{}";g(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,
|
|
30
|
+
<%s key={someKey} {...props} />`,H,j,lr,j),Ce[j+H]=!0}}return e===R?ir(f):ar(f),f}}function or(e,r,t){return Te(e,r,t,!0)}function ur(e,r,t){return Te(e,r,t,!1)}var sr=ur,cr=or;W.Fragment=R,W.jsx=sr,W.jsxs=cr})()),W}var Oe;function br(){return Oe||(Oe=1,process.env.NODE_ENV==="production"?V.exports=gr():V.exports=hr()),V.exports}var Er=br();function _r({baseURL:c,getToken:v,timeoutMs:_=15e3,axiosInstance:R,currency:T,lng:P,onError:d}={}){const p=R??vr.create({baseURL:c,timeout:_,headers:{"Content-Type":"application/json"}});return p.interceptors.request.use(async o=>{if(v){const m=await v();m&&(o.headers=o.headers||{},o.headers.Authorization=`Bearer ${m}`)}return o}),p.interceptors.request.use(o=>{o.headers.Currency=T,o.headers["currency-code"]=T,o.headers.lang=P}),p.interceptors.response.use(o=>o,o=>d?d(o,{instance:p}):Promise.reject(o)),p}function mr({children:c,...v}){const _=C.useMemo(()=>_r(v),[v]);return Er.jsx(Q.Provider,{value:{client:_},children:c})}exports.ApiCtx=Q;exports.ApiProvider=mr;exports.useApiContext=xe;exports.usePeriodicDataUpdater=yr;
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,55 @@
|
|
|
1
|
-
import "@tanstack/react-query";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
if (!
|
|
1
|
+
import { useQueries as dr } from "@tanstack/react-query";
|
|
2
|
+
import Pe, { createContext as vr, useContext as pr, useCallback as I, useMemo as hr } from "react";
|
|
3
|
+
import yr from "axios";
|
|
4
|
+
const xe = vr(null), gr = () => {
|
|
5
|
+
const c = pr(xe);
|
|
6
|
+
if (!c)
|
|
7
7
|
throw new Error("useApiContext must be used within ApiProvider");
|
|
8
|
-
return
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
return c;
|
|
9
|
+
}, mr = () => {
|
|
10
|
+
const { client: c } = gr(), v = I(
|
|
11
|
+
async (d) => {
|
|
12
|
+
const { mac_address: p = "", app_version: o = "", anydesk_id: _ = "" } = d, { data: h } = await c.post("/cash-register/login", {
|
|
13
|
+
mac_address: p,
|
|
14
|
+
app_version: o,
|
|
15
|
+
anydesk_id: _
|
|
16
|
+
});
|
|
17
|
+
return h;
|
|
18
|
+
},
|
|
19
|
+
[c]
|
|
20
|
+
), E = I(async () => {
|
|
21
|
+
const { data: d } = await c.get("/getMemberInfo");
|
|
22
|
+
return d;
|
|
23
|
+
}, [c]), R = I(async () => {
|
|
24
|
+
const { data: d } = await c.get("/getGameList");
|
|
25
|
+
return d;
|
|
26
|
+
}, [c]), T = I(async () => {
|
|
27
|
+
const { data: d } = await c.get("/getNowCurrencyExchange");
|
|
28
|
+
return d;
|
|
29
|
+
}, [c]), w = I(async () => {
|
|
30
|
+
const { data: d } = await c.get("/getFavoriteGame");
|
|
31
|
+
return d;
|
|
32
|
+
}, [c]);
|
|
33
|
+
return {
|
|
34
|
+
machineLoginApi: v,
|
|
35
|
+
userInfoApi: E,
|
|
36
|
+
userGameListApi: R,
|
|
37
|
+
userFavoriteGameApi: w,
|
|
38
|
+
userCurrencyExchangeApi: T
|
|
39
|
+
};
|
|
40
|
+
}, Pr = () => {
|
|
41
|
+
const { userInfoApi: c } = mr(), { data: v, isFetching: E } = dr({
|
|
42
|
+
queries: [
|
|
43
|
+
{
|
|
44
|
+
queryKey: ["getMemberInfo"],
|
|
45
|
+
queryFn: c,
|
|
46
|
+
refetchInterval: 5e4
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
});
|
|
50
|
+
return { data: v, isFetching: E };
|
|
12
51
|
};
|
|
13
|
-
var
|
|
52
|
+
var q = { exports: {} }, $ = {};
|
|
14
53
|
/**
|
|
15
54
|
* @license React
|
|
16
55
|
* react-jsx-runtime.production.min.js
|
|
@@ -21,20 +60,20 @@ var U = { exports: {} }, I = {};
|
|
|
21
60
|
* LICENSE file in the root directory of this source tree.
|
|
22
61
|
*/
|
|
23
62
|
var Ce;
|
|
24
|
-
function
|
|
25
|
-
if (Ce) return
|
|
63
|
+
function br() {
|
|
64
|
+
if (Ce) return $;
|
|
26
65
|
Ce = 1;
|
|
27
|
-
var
|
|
28
|
-
function
|
|
29
|
-
var h,
|
|
30
|
-
_ !== void 0 && (
|
|
31
|
-
for (h in
|
|
32
|
-
if (p && p.defaultProps) for (h in
|
|
33
|
-
return { $$typeof:
|
|
66
|
+
var c = Pe, v = Symbol.for("react.element"), E = Symbol.for("react.fragment"), R = Object.prototype.hasOwnProperty, T = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, w = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
67
|
+
function d(p, o, _) {
|
|
68
|
+
var h, C = {}, P = null, Y = null;
|
|
69
|
+
_ !== void 0 && (P = "" + _), o.key !== void 0 && (P = "" + o.key), o.ref !== void 0 && (Y = o.ref);
|
|
70
|
+
for (h in o) R.call(o, h) && !w.hasOwnProperty(h) && (C[h] = o[h]);
|
|
71
|
+
if (p && p.defaultProps) for (h in o = p.defaultProps, o) C[h] === void 0 && (C[h] = o[h]);
|
|
72
|
+
return { $$typeof: v, type: p, key: P, ref: Y, props: C, _owner: T.current };
|
|
34
73
|
}
|
|
35
|
-
return
|
|
74
|
+
return $.Fragment = E, $.jsx = d, $.jsxs = d, $;
|
|
36
75
|
}
|
|
37
|
-
var
|
|
76
|
+
var W = {};
|
|
38
77
|
/**
|
|
39
78
|
* @license React
|
|
40
79
|
* react-jsx-runtime.development.js
|
|
@@ -44,18 +83,18 @@ var $ = {};
|
|
|
44
83
|
* This source code is licensed under the MIT license found in the
|
|
45
84
|
* LICENSE file in the root directory of this source tree.
|
|
46
85
|
*/
|
|
47
|
-
var
|
|
48
|
-
function
|
|
49
|
-
return
|
|
50
|
-
var
|
|
86
|
+
var we;
|
|
87
|
+
function Er() {
|
|
88
|
+
return we || (we = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
89
|
+
var c = Pe, v = Symbol.for("react.element"), E = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), T = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), p = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), Y = Symbol.for("react.offscreen"), Q = Symbol.iterator, Se = "@@iterator";
|
|
51
90
|
function je(e) {
|
|
52
91
|
if (e === null || typeof e != "object")
|
|
53
92
|
return null;
|
|
54
|
-
var r =
|
|
93
|
+
var r = Q && e[Q] || e[Se];
|
|
55
94
|
return typeof r == "function" ? r : null;
|
|
56
95
|
}
|
|
57
|
-
var j =
|
|
58
|
-
function
|
|
96
|
+
var j = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
97
|
+
function y(e) {
|
|
59
98
|
{
|
|
60
99
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
61
100
|
t[n - 1] = arguments[n];
|
|
@@ -64,48 +103,48 @@ function yr() {
|
|
|
64
103
|
}
|
|
65
104
|
function ke(e, r, t) {
|
|
66
105
|
{
|
|
67
|
-
var n = j.ReactDebugCurrentFrame,
|
|
68
|
-
|
|
106
|
+
var n = j.ReactDebugCurrentFrame, u = n.getStackAddendum();
|
|
107
|
+
u !== "" && (r += "%s", t = t.concat([u]));
|
|
69
108
|
var s = t.map(function(i) {
|
|
70
109
|
return String(i);
|
|
71
110
|
});
|
|
72
111
|
s.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, s);
|
|
73
112
|
}
|
|
74
113
|
}
|
|
75
|
-
var Ae = !1,
|
|
76
|
-
|
|
114
|
+
var Ae = !1, Fe = !1, De = !1, Ie = !1, $e = !1, Z;
|
|
115
|
+
Z = Symbol.for("react.module.reference");
|
|
77
116
|
function We(e) {
|
|
78
|
-
return !!(typeof e == "string" || typeof e == "function" || e === R || e ===
|
|
117
|
+
return !!(typeof e == "string" || typeof e == "function" || e === R || e === w || $e || e === T || e === _ || e === h || Ie || e === Y || Ae || Fe || De || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === C || e.$$typeof === d || e.$$typeof === p || e.$$typeof === o || // This needs to include all possible module reference object
|
|
79
118
|
// types supported by any Flight configuration anywhere since
|
|
80
119
|
// we don't know which Flight build this will end up being used
|
|
81
120
|
// with.
|
|
82
|
-
e.$$typeof ===
|
|
121
|
+
e.$$typeof === Z || e.getModuleId !== void 0));
|
|
83
122
|
}
|
|
84
123
|
function Ye(e, r, t) {
|
|
85
124
|
var n = e.displayName;
|
|
86
125
|
if (n)
|
|
87
126
|
return n;
|
|
88
|
-
var
|
|
89
|
-
return
|
|
127
|
+
var u = r.displayName || r.name || "";
|
|
128
|
+
return u !== "" ? t + "(" + u + ")" : t;
|
|
90
129
|
}
|
|
91
130
|
function ee(e) {
|
|
92
131
|
return e.displayName || "Context";
|
|
93
132
|
}
|
|
94
|
-
function
|
|
133
|
+
function O(e) {
|
|
95
134
|
if (e == null)
|
|
96
135
|
return null;
|
|
97
|
-
if (typeof e.tag == "number" &&
|
|
136
|
+
if (typeof e.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
98
137
|
return e.displayName || e.name || null;
|
|
99
138
|
if (typeof e == "string")
|
|
100
139
|
return e;
|
|
101
140
|
switch (e) {
|
|
102
141
|
case R:
|
|
103
142
|
return "Fragment";
|
|
104
|
-
case
|
|
143
|
+
case E:
|
|
105
144
|
return "Portal";
|
|
106
|
-
case
|
|
145
|
+
case w:
|
|
107
146
|
return "Profiler";
|
|
108
|
-
case
|
|
147
|
+
case T:
|
|
109
148
|
return "StrictMode";
|
|
110
149
|
case _:
|
|
111
150
|
return "Suspense";
|
|
@@ -117,18 +156,18 @@ function yr() {
|
|
|
117
156
|
case p:
|
|
118
157
|
var r = e;
|
|
119
158
|
return ee(r) + ".Consumer";
|
|
120
|
-
case
|
|
159
|
+
case d:
|
|
121
160
|
var t = e;
|
|
122
161
|
return ee(t._context) + ".Provider";
|
|
123
|
-
case
|
|
162
|
+
case o:
|
|
124
163
|
return Ye(e, e.render, "ForwardRef");
|
|
125
|
-
case
|
|
164
|
+
case C:
|
|
126
165
|
var n = e.displayName || null;
|
|
127
|
-
return n !== null ? n :
|
|
128
|
-
case
|
|
129
|
-
var
|
|
166
|
+
return n !== null ? n : O(e.type) || "Memo";
|
|
167
|
+
case P: {
|
|
168
|
+
var u = e, s = u._payload, i = u._init;
|
|
130
169
|
try {
|
|
131
|
-
return
|
|
170
|
+
return O(i(s));
|
|
132
171
|
} catch {
|
|
133
172
|
return null;
|
|
134
173
|
}
|
|
@@ -136,13 +175,13 @@ function yr() {
|
|
|
136
175
|
}
|
|
137
176
|
return null;
|
|
138
177
|
}
|
|
139
|
-
var x = Object.assign,
|
|
178
|
+
var x = Object.assign, F = 0, re, te, ne, ae, ie, oe, ue;
|
|
140
179
|
function se() {
|
|
141
180
|
}
|
|
142
181
|
se.__reactDisabledLog = !0;
|
|
143
182
|
function Le() {
|
|
144
183
|
{
|
|
145
|
-
if (
|
|
184
|
+
if (F === 0) {
|
|
146
185
|
re = console.log, te = console.info, ne = console.warn, ae = console.error, ie = console.group, oe = console.groupCollapsed, ue = console.groupEnd;
|
|
147
186
|
var e = {
|
|
148
187
|
configurable: !0,
|
|
@@ -160,12 +199,12 @@ function yr() {
|
|
|
160
199
|
groupEnd: e
|
|
161
200
|
});
|
|
162
201
|
}
|
|
163
|
-
|
|
202
|
+
F++;
|
|
164
203
|
}
|
|
165
204
|
}
|
|
166
|
-
function
|
|
205
|
+
function Me() {
|
|
167
206
|
{
|
|
168
|
-
if (
|
|
207
|
+
if (F--, F === 0) {
|
|
169
208
|
var e = {
|
|
170
209
|
configurable: !0,
|
|
171
210
|
enumerable: !0,
|
|
@@ -195,39 +234,39 @@ function yr() {
|
|
|
195
234
|
})
|
|
196
235
|
});
|
|
197
236
|
}
|
|
198
|
-
|
|
237
|
+
F < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
199
238
|
}
|
|
200
239
|
}
|
|
201
|
-
var N = j.ReactCurrentDispatcher,
|
|
202
|
-
function
|
|
240
|
+
var N = j.ReactCurrentDispatcher, J;
|
|
241
|
+
function L(e, r, t) {
|
|
203
242
|
{
|
|
204
|
-
if (
|
|
243
|
+
if (J === void 0)
|
|
205
244
|
try {
|
|
206
245
|
throw Error();
|
|
207
|
-
} catch (
|
|
208
|
-
var n =
|
|
209
|
-
|
|
246
|
+
} catch (u) {
|
|
247
|
+
var n = u.stack.trim().match(/\n( *(at )?)/);
|
|
248
|
+
J = n && n[1] || "";
|
|
210
249
|
}
|
|
211
250
|
return `
|
|
212
|
-
` +
|
|
251
|
+
` + J + e;
|
|
213
252
|
}
|
|
214
253
|
}
|
|
215
|
-
var
|
|
254
|
+
var B = !1, M;
|
|
216
255
|
{
|
|
217
|
-
var
|
|
218
|
-
|
|
256
|
+
var Ue = typeof WeakMap == "function" ? WeakMap : Map;
|
|
257
|
+
M = new Ue();
|
|
219
258
|
}
|
|
220
|
-
function
|
|
221
|
-
if (!e ||
|
|
259
|
+
function ce(e, r) {
|
|
260
|
+
if (!e || B)
|
|
222
261
|
return "";
|
|
223
262
|
{
|
|
224
|
-
var t =
|
|
263
|
+
var t = M.get(e);
|
|
225
264
|
if (t !== void 0)
|
|
226
265
|
return t;
|
|
227
266
|
}
|
|
228
267
|
var n;
|
|
229
|
-
|
|
230
|
-
var
|
|
268
|
+
B = !0;
|
|
269
|
+
var u = Error.prepareStackTrace;
|
|
231
270
|
Error.prepareStackTrace = void 0;
|
|
232
271
|
var s;
|
|
233
272
|
s = N.current, N.current = null, Le();
|
|
@@ -243,116 +282,116 @@ function yr() {
|
|
|
243
282
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
244
283
|
try {
|
|
245
284
|
Reflect.construct(i, []);
|
|
246
|
-
} catch (
|
|
247
|
-
n =
|
|
285
|
+
} catch (m) {
|
|
286
|
+
n = m;
|
|
248
287
|
}
|
|
249
288
|
Reflect.construct(e, [], i);
|
|
250
289
|
} else {
|
|
251
290
|
try {
|
|
252
291
|
i.call();
|
|
253
|
-
} catch (
|
|
254
|
-
n =
|
|
292
|
+
} catch (m) {
|
|
293
|
+
n = m;
|
|
255
294
|
}
|
|
256
295
|
e.call(i.prototype);
|
|
257
296
|
}
|
|
258
297
|
} else {
|
|
259
298
|
try {
|
|
260
299
|
throw Error();
|
|
261
|
-
} catch (
|
|
262
|
-
n =
|
|
300
|
+
} catch (m) {
|
|
301
|
+
n = m;
|
|
263
302
|
}
|
|
264
303
|
e();
|
|
265
304
|
}
|
|
266
|
-
} catch (
|
|
267
|
-
if (
|
|
268
|
-
for (var a =
|
|
269
|
-
`),
|
|
270
|
-
`), l = a.length - 1,
|
|
271
|
-
|
|
272
|
-
for (; l >= 1 &&
|
|
273
|
-
if (a[l] !==
|
|
274
|
-
if (l !== 1 ||
|
|
305
|
+
} catch (m) {
|
|
306
|
+
if (m && n && typeof m.stack == "string") {
|
|
307
|
+
for (var a = m.stack.split(`
|
|
308
|
+
`), g = n.stack.split(`
|
|
309
|
+
`), l = a.length - 1, f = g.length - 1; l >= 1 && f >= 0 && a[l] !== g[f]; )
|
|
310
|
+
f--;
|
|
311
|
+
for (; l >= 1 && f >= 0; l--, f--)
|
|
312
|
+
if (a[l] !== g[f]) {
|
|
313
|
+
if (l !== 1 || f !== 1)
|
|
275
314
|
do
|
|
276
|
-
if (l--,
|
|
277
|
-
var
|
|
315
|
+
if (l--, f--, f < 0 || a[l] !== g[f]) {
|
|
316
|
+
var b = `
|
|
278
317
|
` + a[l].replace(" at new ", " at ");
|
|
279
|
-
return e.displayName &&
|
|
318
|
+
return e.displayName && b.includes("<anonymous>") && (b = b.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, b), b;
|
|
280
319
|
}
|
|
281
|
-
while (l >= 1 &&
|
|
320
|
+
while (l >= 1 && f >= 0);
|
|
282
321
|
break;
|
|
283
322
|
}
|
|
284
323
|
}
|
|
285
324
|
} finally {
|
|
286
|
-
|
|
325
|
+
B = !1, N.current = s, Me(), Error.prepareStackTrace = u;
|
|
287
326
|
}
|
|
288
|
-
var A = e ? e.displayName || e.name : "",
|
|
289
|
-
return typeof e == "function" &&
|
|
327
|
+
var A = e ? e.displayName || e.name : "", S = A ? L(A) : "";
|
|
328
|
+
return typeof e == "function" && M.set(e, S), S;
|
|
290
329
|
}
|
|
291
|
-
function
|
|
292
|
-
return
|
|
330
|
+
function Ve(e, r, t) {
|
|
331
|
+
return ce(e, !1);
|
|
293
332
|
}
|
|
294
|
-
function
|
|
333
|
+
function qe(e) {
|
|
295
334
|
var r = e.prototype;
|
|
296
335
|
return !!(r && r.isReactComponent);
|
|
297
336
|
}
|
|
298
|
-
function
|
|
337
|
+
function U(e, r, t) {
|
|
299
338
|
if (e == null)
|
|
300
339
|
return "";
|
|
301
340
|
if (typeof e == "function")
|
|
302
|
-
return
|
|
341
|
+
return ce(e, qe(e));
|
|
303
342
|
if (typeof e == "string")
|
|
304
|
-
return
|
|
343
|
+
return L(e);
|
|
305
344
|
switch (e) {
|
|
306
345
|
case _:
|
|
307
|
-
return
|
|
346
|
+
return L("Suspense");
|
|
308
347
|
case h:
|
|
309
|
-
return
|
|
348
|
+
return L("SuspenseList");
|
|
310
349
|
}
|
|
311
350
|
if (typeof e == "object")
|
|
312
351
|
switch (e.$$typeof) {
|
|
313
|
-
case
|
|
314
|
-
return
|
|
315
|
-
case
|
|
316
|
-
return
|
|
317
|
-
case
|
|
318
|
-
var n = e,
|
|
352
|
+
case o:
|
|
353
|
+
return Ve(e.render);
|
|
354
|
+
case C:
|
|
355
|
+
return U(e.type, r, t);
|
|
356
|
+
case P: {
|
|
357
|
+
var n = e, u = n._payload, s = n._init;
|
|
319
358
|
try {
|
|
320
|
-
return
|
|
359
|
+
return U(s(u), r, t);
|
|
321
360
|
} catch {
|
|
322
361
|
}
|
|
323
362
|
}
|
|
324
363
|
}
|
|
325
364
|
return "";
|
|
326
365
|
}
|
|
327
|
-
var
|
|
328
|
-
function
|
|
366
|
+
var D = Object.prototype.hasOwnProperty, le = {}, fe = j.ReactDebugCurrentFrame;
|
|
367
|
+
function V(e) {
|
|
329
368
|
if (e) {
|
|
330
|
-
var r = e._owner, t =
|
|
369
|
+
var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
|
|
331
370
|
fe.setExtraStackFrame(t);
|
|
332
371
|
} else
|
|
333
372
|
fe.setExtraStackFrame(null);
|
|
334
373
|
}
|
|
335
|
-
function
|
|
374
|
+
function Ne(e, r, t, n, u) {
|
|
336
375
|
{
|
|
337
|
-
var s = Function.call.bind(
|
|
376
|
+
var s = Function.call.bind(D);
|
|
338
377
|
for (var i in e)
|
|
339
378
|
if (s(e, i)) {
|
|
340
379
|
var a = void 0;
|
|
341
380
|
try {
|
|
342
381
|
if (typeof e[i] != "function") {
|
|
343
|
-
var
|
|
344
|
-
throw
|
|
382
|
+
var g = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
383
|
+
throw g.name = "Invariant Violation", g;
|
|
345
384
|
}
|
|
346
385
|
a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
347
386
|
} catch (l) {
|
|
348
387
|
a = l;
|
|
349
388
|
}
|
|
350
|
-
a && !(a instanceof Error) && (
|
|
389
|
+
a && !(a instanceof Error) && (V(u), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), V(null)), a instanceof Error && !(a.message in le) && (le[a.message] = !0, V(u), y("Failed %s type: %s", t, a.message), V(null));
|
|
351
390
|
}
|
|
352
391
|
}
|
|
353
392
|
}
|
|
354
393
|
var Je = Array.isArray;
|
|
355
|
-
function
|
|
394
|
+
function G(e) {
|
|
356
395
|
return Je(e);
|
|
357
396
|
}
|
|
358
397
|
function Be(e) {
|
|
@@ -361,7 +400,7 @@ function yr() {
|
|
|
361
400
|
return t;
|
|
362
401
|
}
|
|
363
402
|
}
|
|
364
|
-
function
|
|
403
|
+
function Ge(e) {
|
|
365
404
|
try {
|
|
366
405
|
return de(e), !1;
|
|
367
406
|
} catch {
|
|
@@ -372,17 +411,17 @@ function yr() {
|
|
|
372
411
|
return "" + e;
|
|
373
412
|
}
|
|
374
413
|
function ve(e) {
|
|
375
|
-
if (
|
|
376
|
-
return
|
|
414
|
+
if (Ge(e))
|
|
415
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(e)), de(e);
|
|
377
416
|
}
|
|
378
|
-
var pe = j.ReactCurrentOwner,
|
|
417
|
+
var pe = j.ReactCurrentOwner, Ke = {
|
|
379
418
|
key: !0,
|
|
380
419
|
ref: !0,
|
|
381
420
|
__self: !0,
|
|
382
421
|
__source: !0
|
|
383
422
|
}, he, ye;
|
|
384
|
-
function
|
|
385
|
-
if (
|
|
423
|
+
function ze(e) {
|
|
424
|
+
if (D.call(e, "ref")) {
|
|
386
425
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
387
426
|
if (r && r.isReactWarning)
|
|
388
427
|
return !1;
|
|
@@ -390,7 +429,7 @@ function yr() {
|
|
|
390
429
|
return e.ref !== void 0;
|
|
391
430
|
}
|
|
392
431
|
function Xe(e) {
|
|
393
|
-
if (
|
|
432
|
+
if (D.call(e, "key")) {
|
|
394
433
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
395
434
|
if (r && r.isReactWarning)
|
|
396
435
|
return !1;
|
|
@@ -400,10 +439,10 @@ function yr() {
|
|
|
400
439
|
function He(e, r) {
|
|
401
440
|
typeof e.ref == "string" && pe.current;
|
|
402
441
|
}
|
|
403
|
-
function
|
|
442
|
+
function Qe(e, r) {
|
|
404
443
|
{
|
|
405
444
|
var t = function() {
|
|
406
|
-
he || (he = !0,
|
|
445
|
+
he || (he = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
407
446
|
};
|
|
408
447
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
409
448
|
get: t,
|
|
@@ -411,10 +450,10 @@ function yr() {
|
|
|
411
450
|
});
|
|
412
451
|
}
|
|
413
452
|
}
|
|
414
|
-
function
|
|
453
|
+
function Ze(e, r) {
|
|
415
454
|
{
|
|
416
455
|
var t = function() {
|
|
417
|
-
ye || (ye = !0,
|
|
456
|
+
ye || (ye = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
418
457
|
};
|
|
419
458
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
420
459
|
get: t,
|
|
@@ -422,10 +461,10 @@ function yr() {
|
|
|
422
461
|
});
|
|
423
462
|
}
|
|
424
463
|
}
|
|
425
|
-
var er = function(e, r, t, n,
|
|
464
|
+
var er = function(e, r, t, n, u, s, i) {
|
|
426
465
|
var a = {
|
|
427
466
|
// This tag allows us to uniquely identify this as a React Element
|
|
428
|
-
$$typeof:
|
|
467
|
+
$$typeof: v,
|
|
429
468
|
// Built-in properties that belong on the element
|
|
430
469
|
type: e,
|
|
431
470
|
key: r,
|
|
@@ -448,44 +487,44 @@ function yr() {
|
|
|
448
487
|
configurable: !1,
|
|
449
488
|
enumerable: !1,
|
|
450
489
|
writable: !1,
|
|
451
|
-
value:
|
|
490
|
+
value: u
|
|
452
491
|
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
453
492
|
};
|
|
454
|
-
function rr(e, r, t, n,
|
|
493
|
+
function rr(e, r, t, n, u) {
|
|
455
494
|
{
|
|
456
|
-
var s, i = {}, a = null,
|
|
457
|
-
t !== void 0 && (ve(t), a = "" + t), Xe(r) && (ve(r.key), a = "" + r.key),
|
|
495
|
+
var s, i = {}, a = null, g = null;
|
|
496
|
+
t !== void 0 && (ve(t), a = "" + t), Xe(r) && (ve(r.key), a = "" + r.key), ze(r) && (g = r.ref, He(r, u));
|
|
458
497
|
for (s in r)
|
|
459
|
-
|
|
498
|
+
D.call(r, s) && !Ke.hasOwnProperty(s) && (i[s] = r[s]);
|
|
460
499
|
if (e && e.defaultProps) {
|
|
461
500
|
var l = e.defaultProps;
|
|
462
501
|
for (s in l)
|
|
463
502
|
i[s] === void 0 && (i[s] = l[s]);
|
|
464
503
|
}
|
|
465
|
-
if (a ||
|
|
466
|
-
var
|
|
467
|
-
a &&
|
|
504
|
+
if (a || g) {
|
|
505
|
+
var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
506
|
+
a && Qe(i, f), g && Ze(i, f);
|
|
468
507
|
}
|
|
469
|
-
return er(e, a,
|
|
508
|
+
return er(e, a, g, u, n, pe.current, i);
|
|
470
509
|
}
|
|
471
510
|
}
|
|
472
|
-
var K = j.ReactCurrentOwner,
|
|
511
|
+
var K = j.ReactCurrentOwner, ge = j.ReactDebugCurrentFrame;
|
|
473
512
|
function k(e) {
|
|
474
513
|
if (e) {
|
|
475
|
-
var r = e._owner, t =
|
|
476
|
-
|
|
514
|
+
var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
|
|
515
|
+
ge.setExtraStackFrame(t);
|
|
477
516
|
} else
|
|
478
|
-
|
|
517
|
+
ge.setExtraStackFrame(null);
|
|
479
518
|
}
|
|
480
519
|
var z;
|
|
481
520
|
z = !1;
|
|
482
|
-
function
|
|
483
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
521
|
+
function X(e) {
|
|
522
|
+
return typeof e == "object" && e !== null && e.$$typeof === v;
|
|
484
523
|
}
|
|
485
|
-
function
|
|
524
|
+
function me() {
|
|
486
525
|
{
|
|
487
526
|
if (K.current) {
|
|
488
|
-
var e =
|
|
527
|
+
var e = O(K.current.type);
|
|
489
528
|
if (e)
|
|
490
529
|
return `
|
|
491
530
|
|
|
@@ -497,10 +536,10 @@ Check the render method of \`` + e + "`.";
|
|
|
497
536
|
function tr(e) {
|
|
498
537
|
return "";
|
|
499
538
|
}
|
|
500
|
-
var
|
|
539
|
+
var be = {};
|
|
501
540
|
function nr(e) {
|
|
502
541
|
{
|
|
503
|
-
var r =
|
|
542
|
+
var r = me();
|
|
504
543
|
if (!r) {
|
|
505
544
|
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
506
545
|
t && (r = `
|
|
@@ -510,35 +549,35 @@ Check the top-level render call using <` + t + ">.");
|
|
|
510
549
|
return r;
|
|
511
550
|
}
|
|
512
551
|
}
|
|
513
|
-
function
|
|
552
|
+
function Ee(e, r) {
|
|
514
553
|
{
|
|
515
554
|
if (!e._store || e._store.validated || e.key != null)
|
|
516
555
|
return;
|
|
517
556
|
e._store.validated = !0;
|
|
518
557
|
var t = nr(r);
|
|
519
|
-
if (
|
|
558
|
+
if (be[t])
|
|
520
559
|
return;
|
|
521
|
-
|
|
560
|
+
be[t] = !0;
|
|
522
561
|
var n = "";
|
|
523
|
-
e && e._owner && e._owner !== K.current && (n = " It was passed a child from " +
|
|
562
|
+
e && e._owner && e._owner !== K.current && (n = " It was passed a child from " + O(e._owner.type) + "."), k(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), k(null);
|
|
524
563
|
}
|
|
525
564
|
}
|
|
526
|
-
function
|
|
565
|
+
function _e(e, r) {
|
|
527
566
|
{
|
|
528
567
|
if (typeof e != "object")
|
|
529
568
|
return;
|
|
530
|
-
if (
|
|
569
|
+
if (G(e))
|
|
531
570
|
for (var t = 0; t < e.length; t++) {
|
|
532
571
|
var n = e[t];
|
|
533
|
-
|
|
572
|
+
X(n) && Ee(n, r);
|
|
534
573
|
}
|
|
535
|
-
else if (
|
|
574
|
+
else if (X(e))
|
|
536
575
|
e._store && (e._store.validated = !0);
|
|
537
576
|
else if (e) {
|
|
538
|
-
var
|
|
539
|
-
if (typeof
|
|
540
|
-
for (var s =
|
|
541
|
-
|
|
577
|
+
var u = je(e);
|
|
578
|
+
if (typeof u == "function" && u !== e.entries)
|
|
579
|
+
for (var s = u.call(e), i; !(i = s.next()).done; )
|
|
580
|
+
X(i.value) && Ee(i.value, r);
|
|
542
581
|
}
|
|
543
582
|
}
|
|
544
583
|
}
|
|
@@ -550,21 +589,21 @@ Check the top-level render call using <` + t + ">.");
|
|
|
550
589
|
var t;
|
|
551
590
|
if (typeof r == "function")
|
|
552
591
|
t = r.propTypes;
|
|
553
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
592
|
+
else if (typeof r == "object" && (r.$$typeof === o || // Note: Memo only checks outer props here.
|
|
554
593
|
// Inner props are checked in the reconciler.
|
|
555
|
-
r.$$typeof ===
|
|
594
|
+
r.$$typeof === C))
|
|
556
595
|
t = r.propTypes;
|
|
557
596
|
else
|
|
558
597
|
return;
|
|
559
598
|
if (t) {
|
|
560
|
-
var n =
|
|
561
|
-
|
|
599
|
+
var n = O(r);
|
|
600
|
+
Ne(t, e.props, "prop", n, e);
|
|
562
601
|
} else if (r.PropTypes !== void 0 && !z) {
|
|
563
602
|
z = !0;
|
|
564
|
-
var
|
|
565
|
-
|
|
603
|
+
var u = O(r);
|
|
604
|
+
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
|
|
566
605
|
}
|
|
567
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
606
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
568
607
|
}
|
|
569
608
|
}
|
|
570
609
|
function ir(e) {
|
|
@@ -572,56 +611,56 @@ Check the top-level render call using <` + t + ">.");
|
|
|
572
611
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
573
612
|
var n = r[t];
|
|
574
613
|
if (n !== "children" && n !== "key") {
|
|
575
|
-
k(e),
|
|
614
|
+
k(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), k(null);
|
|
576
615
|
break;
|
|
577
616
|
}
|
|
578
617
|
}
|
|
579
|
-
e.ref !== null && (k(e),
|
|
618
|
+
e.ref !== null && (k(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
|
|
580
619
|
}
|
|
581
620
|
}
|
|
582
|
-
var
|
|
583
|
-
function Te(e, r, t, n,
|
|
621
|
+
var Re = {};
|
|
622
|
+
function Te(e, r, t, n, u, s) {
|
|
584
623
|
{
|
|
585
624
|
var i = We(e);
|
|
586
625
|
if (!i) {
|
|
587
626
|
var a = "";
|
|
588
627
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
589
|
-
var
|
|
590
|
-
|
|
628
|
+
var g = tr();
|
|
629
|
+
g ? a += g : a += me();
|
|
591
630
|
var l;
|
|
592
|
-
e === null ? l = "null" :
|
|
631
|
+
e === null ? l = "null" : G(e) ? l = "array" : e !== void 0 && e.$$typeof === v ? (l = "<" + (O(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l, a);
|
|
593
632
|
}
|
|
594
|
-
var
|
|
595
|
-
if (
|
|
596
|
-
return
|
|
633
|
+
var f = rr(e, r, t, u, s);
|
|
634
|
+
if (f == null)
|
|
635
|
+
return f;
|
|
597
636
|
if (i) {
|
|
598
|
-
var
|
|
599
|
-
if (
|
|
637
|
+
var b = r.children;
|
|
638
|
+
if (b !== void 0)
|
|
600
639
|
if (n)
|
|
601
|
-
if (
|
|
602
|
-
for (var A = 0; A <
|
|
603
|
-
|
|
604
|
-
Object.freeze && Object.freeze(
|
|
640
|
+
if (G(b)) {
|
|
641
|
+
for (var A = 0; A < b.length; A++)
|
|
642
|
+
_e(b[A], e);
|
|
643
|
+
Object.freeze && Object.freeze(b);
|
|
605
644
|
} else
|
|
606
|
-
|
|
645
|
+
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
607
646
|
else
|
|
608
|
-
|
|
647
|
+
_e(b, e);
|
|
609
648
|
}
|
|
610
|
-
if (
|
|
611
|
-
var
|
|
649
|
+
if (D.call(r, "key")) {
|
|
650
|
+
var S = O(e), m = Object.keys(r).filter(function(fr) {
|
|
612
651
|
return fr !== "key";
|
|
613
|
-
}),
|
|
614
|
-
if (!
|
|
615
|
-
var
|
|
616
|
-
|
|
652
|
+
}), H = m.length > 0 ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
653
|
+
if (!Re[S + H]) {
|
|
654
|
+
var lr = m.length > 0 ? "{" + m.join(": ..., ") + ": ...}" : "{}";
|
|
655
|
+
y(`A props object containing a "key" prop is being spread into JSX:
|
|
617
656
|
let props = %s;
|
|
618
657
|
<%s {...props} />
|
|
619
658
|
React keys must be passed directly to JSX without using spread:
|
|
620
659
|
let props = %s;
|
|
621
|
-
<%s key={someKey} {...props} />`,
|
|
660
|
+
<%s key={someKey} {...props} />`, H, S, lr, S), Re[S + H] = !0;
|
|
622
661
|
}
|
|
623
662
|
}
|
|
624
|
-
return e === R ? ir(
|
|
663
|
+
return e === R ? ir(f) : ar(f), f;
|
|
625
664
|
}
|
|
626
665
|
}
|
|
627
666
|
function or(e, r, t) {
|
|
@@ -630,52 +669,49 @@ React keys must be passed directly to JSX without using spread:
|
|
|
630
669
|
function ur(e, r, t) {
|
|
631
670
|
return Te(e, r, t, !1);
|
|
632
671
|
}
|
|
633
|
-
var sr = ur,
|
|
634
|
-
|
|
635
|
-
})()),
|
|
672
|
+
var sr = ur, cr = or;
|
|
673
|
+
W.Fragment = R, W.jsx = sr, W.jsxs = cr;
|
|
674
|
+
})()), W;
|
|
636
675
|
}
|
|
637
|
-
var
|
|
638
|
-
function
|
|
639
|
-
return
|
|
676
|
+
var Oe;
|
|
677
|
+
function _r() {
|
|
678
|
+
return Oe || (Oe = 1, process.env.NODE_ENV === "production" ? q.exports = br() : q.exports = Er()), q.exports;
|
|
640
679
|
}
|
|
641
|
-
var
|
|
642
|
-
function
|
|
643
|
-
baseURL:
|
|
644
|
-
getToken:
|
|
645
|
-
timeoutMs:
|
|
680
|
+
var Rr = _r();
|
|
681
|
+
function Tr({
|
|
682
|
+
baseURL: c,
|
|
683
|
+
getToken: v,
|
|
684
|
+
timeoutMs: E = 15e3,
|
|
646
685
|
axiosInstance: R,
|
|
647
|
-
currency:
|
|
648
|
-
lng:
|
|
649
|
-
onError:
|
|
686
|
+
currency: T,
|
|
687
|
+
lng: w,
|
|
688
|
+
onError: d
|
|
650
689
|
} = {}) {
|
|
651
|
-
const p = R ??
|
|
652
|
-
baseURL:
|
|
653
|
-
timeout:
|
|
690
|
+
const p = R ?? yr.create({
|
|
691
|
+
baseURL: c,
|
|
692
|
+
timeout: E,
|
|
654
693
|
headers: { "Content-Type": "application/json" }
|
|
655
694
|
});
|
|
656
|
-
return p.interceptors.request.use(async (
|
|
657
|
-
if (
|
|
658
|
-
const _ = await
|
|
659
|
-
_ && (
|
|
660
|
-
}
|
|
661
|
-
return
|
|
662
|
-
}), p.interceptors.request.use((
|
|
663
|
-
|
|
695
|
+
return p.interceptors.request.use(async (o) => {
|
|
696
|
+
if (v) {
|
|
697
|
+
const _ = await v();
|
|
698
|
+
_ && (o.headers = o.headers || {}, o.headers.Authorization = `Bearer ${_}`);
|
|
699
|
+
}
|
|
700
|
+
return o;
|
|
701
|
+
}), p.interceptors.request.use((o) => {
|
|
702
|
+
o.headers.Currency = T, o.headers["currency-code"] = T, o.headers.lang = w;
|
|
664
703
|
}), p.interceptors.response.use(
|
|
665
|
-
(
|
|
666
|
-
(
|
|
704
|
+
(o) => o,
|
|
705
|
+
(o) => d ? d(o, { instance: p }) : Promise.reject(o)
|
|
667
706
|
), p;
|
|
668
707
|
}
|
|
669
|
-
function
|
|
670
|
-
const
|
|
671
|
-
|
|
672
|
-
// 其他 API 相關狀態...
|
|
673
|
-
}, R = vr(() => Rr(E), [E]);
|
|
674
|
-
return /* @__PURE__ */ Er.jsx(H.Provider, { value: { client: R, ...C }, children: b });
|
|
708
|
+
function xr({ children: c, ...v }) {
|
|
709
|
+
const E = hr(() => Tr(v), [v]);
|
|
710
|
+
return /* @__PURE__ */ Rr.jsx(xe.Provider, { value: { client: E }, children: c });
|
|
675
711
|
}
|
|
676
712
|
export {
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
713
|
+
xe as ApiCtx,
|
|
714
|
+
xr as ApiProvider,
|
|
715
|
+
gr as useApiContext,
|
|
716
|
+
Pr as usePeriodicDataUpdater
|
|
681
717
|
};
|