test de déploiement du build depuis gitlab
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
3.3 KiB

import{o as e,t}from"./chunk-jRWAZmH_.js";import{n}from"./jsx-runtime-CEixWuwE.js";var r=t((e=>{var t=n();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=t.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),i=t(((e,t)=>{t.exports=r()})),a=e(n(),1),o=i();function s(e){e()}function c(){let e=null,t=null;return{clear(){e=null,t=null},notify(){s(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0,i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var l={notify(){},get:()=>[]};function u(e,t){let n,r=l,i=0,a=!1;function o(e){f();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),p())}}function s(){r.notify()}function u(){g.onStateChange&&g.onStateChange()}function d(){return a}function f(){i++,n||(n=t?t.addNestedSub(u):e.subscribe(u),r=c())}function p(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=l)}function m(){a||(a=!0,f())}function h(){a&&(a=!1,p())}let g={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:u,isSubscribed:d,trySubscribe:m,tryUnsubscribe:h,getListeners:()=>r};return g}var d=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,f=typeof navigator<`u`&&navigator.product===`ReactNative`,p=d||f?a.useLayoutEffect:a.useEffect,m=Symbol.for(`react-redux-context`),h=typeof globalThis<`u`?globalThis:{};function g(){if(!a.createContext)return{};let e=h[m]??=new Map,t=e.get(a.createContext);return t||(t=a.createContext(null),e.set(a.createContext,t)),t}var _=g();function v(e){let{children:t,context:n,serverState:r,store:i}=e,o=a.useMemo(()=>({store:i,subscription:u(i),getServerState:r?()=>r:void 0}),[i,r]),s=a.useMemo(()=>i.getState(),[i]);p(()=>{let{subscription:e}=o;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[o,s]);let c=n||_;return a.createElement(c.Provider,{value:o},t)}var y=v;function b(e=_){return function(){return a.useContext(e)}}var x=b();function S(e=_){let t=e===_?x:b(e),n=()=>{let{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var C=S();function w(e=_){let t=e===_?C:S(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var T=w(),E=(e,t)=>e===t;function D(e=_){let t=e===_?x:b(e),n=(e,n={})=>{let{equalityFn:r=E}=typeof n==`function`?{equalityFn:n}:n,{store:i,subscription:s,getServerState:c}=t();a.useRef(!0);let l=a.useCallback({[e.name](t){return e(t)}}[e.name],[e]),u=(0,o.useSyncExternalStoreWithSelector)(s.addNestedSub,i.getState,c||i.getState,l,r);return a.useDebugValue(u),u};return Object.assign(n,{withTypes:()=>n}),n}var O=D();export{T as n,O as r,y as t};