PageSourceSearch

https://my.tigsipay.com/assets/react-redux-b23cb2d1.js

js tigsipay.com collected 2026-10-02 00:34:35 UTC 7,796 bytes, 5 lines download raw bytes

1import{r as ue}from"./react-dom-db3eb397.js";import{r as a,a as E}from"./react-18a3c9df.js";import{h as ne}from"./hoist-non-react-statics-1a5798cc.js";import{r as we}from"./react-is-e5978b8b.js";import{a as ce,_ as L,g as ge}from"./@babel-e89a8ea1.js";import{w as xe,s as Pe}from"./use-sync-external-store-00b82fdb.js";function Me(e){e()}let ie=Me;const Oe=e=>ie=e,Re=()=>ie,C=a.createContext(null);function ae(){return a.useContext(C)}const le=()=>{throw new Error("uSES not initialized!")};let fe=le;const Ee=e=>{fe=e},Ne=(e,t)=>e===t;function de(e=C){const t=e===C?ae:()=>a.useContext(e);return function(o,s=Ne){const{store:n,subscription:l,getServerState:c}=t(),i=fe(l.addNestedSub,n.getState,c||n.getState,o,s);return a.useDebugValue(i),i}}const ve=de(),Fe=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function _e(e,t,r,o,{areStatesEqual:s,areOwnPropsEqual:n,areStatePropsEqual:l}){let c=!1,i,u,f,d,p;function N(b,h){return i=b,u=h,f=e(i,u),d=t(o,u),p=r(f,d,u),c=!0,p}function O(){return f=e(i,u),t.dependsOnOwnProps&&(d=t(o,u)),p=r(f,d,u),p}function $(){return e.dependsOnOwnProps&&(f=e(i,u)),t.dependsOnOwnProps&&(d=t(o,u)),p=r(f,d,u),p}function S(){const b=e(i,u),h=!l(b,f);return f=b,h&&(p=r(f,d,u)),p}function R(b,h){const x=!n(h,u),W=!s(b,i,h,u);return i=b,u=h,x&&W?O():x?$():W?S():p}return function(h,x){return c?R(h,x):N(h,x)}}function ke(e,t){let{initMapStateToProps:r,initMapDispatchToProps:o,initMergeProps:s}=t,n=ce(t,Fe);const l=r(e,n),c=o(e,n),i=s(e,n);return _e(l,c,i,e,n)}function Ue(e,t){const r={};for(const o in e){const s=e[o];typeof s=="function"&&(r[o]=(...n)=>t(s(...n)))}return r}function G(e){return function(r){const o=e(r);function s(){return o}return s.dependsOnOwnProps=!1,s}}function re(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function pe(e,t){return function(o,{displayName:s}){const n=function(c,i){return n.dependsOnOwnProps?n.mapToProps(c,i):n.mapToProps(c,void 0)};return n.dependsOnOwnProps=!0,n.mapToProps=function(c,i){n.mapToProps=e,n.dependsOnOwnProps=re(e);let u=n(c,i);return typeof u=="function"&&(n.mapToProps=u,n.dependsOnOwnProps=re(u),u=n(c,i)),u},n}}function J(e,t){return(r,o)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${o.wrappedComponentName}.`)}}function $e(e){return e&&typeof e=="object"?G(t=>Ue(e,t)):e?typeof e=="function"?pe(e):J(e,"mapDispatchToProps"):G(t=>({dispatch:t}))}function Be(e){return e?typeof e=="function"?pe(e):J(e,"mapStateToProps"):G(()=>({}))}function Ie(e,t,r){return L({},r,e,t)}function Le(e){return function(r,{displayName:o,areMergedPropsEqual:s}){let n=!1,l;return function(i,u,f){const d=e(i,u,f);return n?s(d,l)||(l=d):(n=!0,l=d),l}}}function Ae(e){return e?typeof e=="function"?Le(e):J(e,"mergeProps"):()=>Ie}function Ve(){const e=Re();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let o=t;for(;o;)o.callback(),o=o.next})},get(){let o=[],s=t;for(;s;)o.push(s),s=s.next;return o},subscribe(o){let s=!0,n=r={callback:o,next:null,prev:r};return n.prev?n.prev.next=n:t=n,function(){!s||t===null||(s=!1,n.next?n.next.prev=n.prev:r=n.prev,n.prev?n.prev.next=n.next:t=n.next)}}}}const oe={notify(){},get:()=>[]};function Se(e,t){let r,o=oe;function s(d){return i(),o.subscribe(d)}function n(){o.notify()}function l(){f.onStateChange&&f.onStateChange()}function c(){return!!r}function i(){r||(r=t?t.addNestedSub(l):e.subscribe(l),o=Ve())}function u(){r&&(r(),r=void 0,o.clear(),o=oe)}const f={addNestedSub:s,notifyNestedSubs:n,handleChangeWrapper:l,isSubscribed:c,trySubscribe:i,tryUnsubscribe:u,getListeners:()=>o};return f}const We=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",V=We?a.useLayoutEffect:a.useEffect;function se(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function A(e,t){if(se(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(let s=0;s<r.length;s++)if(!Object.prototype.hasOwnProperty.call(t,r[s])||!se(e[r[s]],t[r[s]]))return!1;return!0}const qe=["reactReduxForwardedRef"];let be=le;const ze=e=>{be=e}
1,He=[null,null];function Te(e,t,r){V(()=>e(...t),r)}function De(e,t,r,o,s,n){e.current=o,r.current=!1,s.current&&(s.current=null,n())}function Ye(e,t,r,o,s,n,l,c,i,u,f){if(!e)return()=>{};let d=!1,p=null;const N=()=>{if(d||!c.current)return;const $=t.getState();let S,R;try{S=o($,s.current)}catch(b){R=b,p=b}R||(p=null),S===n.current?l.current||u():(n.current=S,i.current=S,l.current=!0,f())};return r.onStateChange=N,r.trySubscribe(),N(),()=>{if(d=!0,r.tryUnsubscribe(),r.onStateChange=null,p)throw p}}function je(e,t){return e===t}function Ge(e,t,r,{pure:o,areStatesEqual:s=je,areOwnPropsEqual:n=A,areStatePropsEqual:l=A,areMergedPropsEqual:c=A,forwardRef:i=!1,context:u=C}={}){const f=u,d=Be(e),p=$e(t),N=Ae(r),O=!!e;return S=>{const R=S.displayName||S.name||"Component",b=`Connect(${R})`,h={shouldHandleStateChanges:O,displayName:b,wrappedComponentName:R,WrappedComponent:S,initMapStateToProps:d,initMapDispatchToProps:p,initMergeProps:N,areStatesEqual:s,areStatePropsEqual:l,areOwnPropsEqual:n,areMergedPropsEqual:c};function x(m){const[w,q,P]=a.useMemo(()=>{const{reactReduxForwardedRef:y}=m,U=ce(m,qe);return[m.context,y,U]},[m]),v=a.useMemo(()=>w&&w.Consumer&&we.isContextConsumer(E.createElement(w.Consumer,null))?w:f,[w,f]),g=a.useContext(v),F=!!m.store&&!!m.store.getState&&!!m.store.dispatch,Ce=!!g&&!!g.store,M=F?m.store:g.store,Q=Ce?g.getServerState:M.getState,z=a.useMemo(()=>ke(M.dispatch,h),[M]),[_,X]=a.useMemo(()=>{if(!O)return He;const y=Se(M,F?void 0:g.subscription),U=y.notifyNestedSubs.bind(y);return[y,U]},[M,F,g]),Z=a.useMemo(()=>F?g:L({},g,{subscription:_}),[F,g,_]),H=a.useRef(),T=a.useRef(P),k=a.useRef(),ee=a.useRef(!1);a.useRef(!1);const D=a.useRef(!1),Y=a.useRef();V(()=>(D.current=!0,()=>{D.current=!1}),[]);const te=a.useMemo(()=>()=>k.current&&P===T.current?k.current:z(M.getState(),P),[M,P]),me=a.useMemo(()=>U=>_?Ye(O,M,_,z,T,H,ee,D,k,X,U):()=>{},[_]);Te(De,[T,H,ee,P,k,X]);let I;try{I=be(me,te,Q?()=>z(Q(),P):te)}catch(y){throw Y.current&&(y.message+=`
2The error may be correlated with this previous error:
3${Y.current.stack}
4
5`),y}V(()=>{Y.current=void 0,k.current=void 0,H.current=I});const j=a.useMemo(()=>E.createElement(S,L({},I,{ref:q})),[q,S,I]);return a.useMemo(()=>O?E.createElement(v.Provider,{value:Z},j):j,[v,j,Z])}const B=E.memo(x);if(B.WrappedComponent=S,B.displayName=x.displayName=b,i){const w=E.forwardRef(function(P,v){return E.createElement(B,L({},P,{reactReduxForwardedRef:v}))});return w.displayName=b,w.WrappedComponent=S,ne(w,S)}return ne(B,S)}}function Je({store:e,context:t,children:r,serverState:o}){const s=a.useMemo(()=>{const c=Se(e);return{store:e,subscription:c,getServerState:o?()=>o:void 0}},[e,o]),n=a.useMemo(()=>e.getState(),[e]);V(()=>{const{subscription:c}=s;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),n!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[s,n]);const l=t||C;return E.createElement(l.Provider,{value:s},r)}function K(e=C){const t=e===C?ae:()=>a.useContext(e);return function(){const{store:o}=t();return o}}const he=K();function ye(e=C){const t=e===C?he:K(e);return function(){return t().dispatch}}const Ke=ye();Ee(xe.useSyncExternalStoreWithSelector);ze(Pe.useSyncExternalStore);Oe(ue.unstable_batchedUpdates);const Qe=Object.freeze(Object.defineProperty({__proto__:null,Provider:Je,ReactReduxContext:C,batch:ue.unstable_batchedUpdates,connect:Ge,createDispatchHook:ye,createSelectorHook:de,createStoreHook:K,shallowEqual:A,useDispatch:Ke,useSelector:ve,useStore:he},Symbol.toStringTag,{value:"Module"})),st=ge(Qe);export{Je as P,ve as a,he as b,st as r,A as s,Ke as u};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.