react-semaphor 0.0.565 → 0.0.566

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.
@@ -4,7 +4,7 @@ var ir = (t) => {
4
4
  var La = (t, a, n) => a.has(t) || ir("Cannot " + n);
5
5
  var we = (t, a, n) => (La(t, a, "read from private field"), n ? n.call(t) : a.get(t)), dn = (t, a, n) => a.has(t) ? ir("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(t) : a.set(t, n), un = (t, a, n, r) => (La(t, a, "write to private field"), r ? r.call(t, n) : a.set(t, n), n), mn = (t, a, n) => (La(t, a, "access private method"), n);
6
6
  import { jsxs as s, jsx as e, Fragment as ne } from "react/jsx-runtime";
7
- import { E as Oi, F as Ai, G as or, H as Ii, I as _r, J as Ge, K as Ri, L as zi, M as J, N as cs, w as W, A as xt, O as Te, P as Jt, Q as Vr, R as V, T as ze, U as Kt, V as Wt, W as Qt, X as Zt, Y as Z, Z as je, _ as pn, $ as Nn, a0 as Cn, a1 as ce, a2 as wn, a3 as jr, a4 as fn, a5 as Fi, a6 as cr, a7 as Ur, a8 as H, a9 as ds, aa as Ie, ab as Li, ac as ge, ad as ye, ae as ve, af as xe, ag as Ut, ah as Bt, ai as te, aj as Br, ak as it, al as ot, am as Pi, an as tn, ao as Dt, ap as _t, aq as Be, ar as qe, as as Ye, at, au as us, av as Gn, aw as Hn, ax as $r, ay as bt, az as gn, aA as Sn, aB as Qe, aC as Ne, aD as We, aE as ms, aF as _i, aG as ma, aH as qr, aI as tt, aJ as Yr, aK as yn, aL as hs, aM as Gr, aN as Re, aO as le, aP as Ce, aQ as kn, aR as ct, aS as Dn, aT as Vi, aU as Vt, aV as rt, aW as Jn, aX as Mn, aY as Ln, aZ as ps, a_ as Pn, a$ as dt, b0 as nn, b1 as Kn, b2 as Wn, b3 as Hr, b4 as an, b5 as fs, b6 as gs, b7 as ys, b8 as vs, b9 as Tn, ba as Qn, bb as Jr, bc as xs, bd as wa, be as bs, bf as ji, bg as Ns, bh as Ui, bi as Bi, bj as sn, bk as rn, bl as Le, bm as At, bn as Kr, C as se, bo as Xt, B as M, bp as Wr, bq as Qr, br as Zr, bs as Xr, bt as el, bu as tl, bv as nl, bw as al, bx as $i, by as qi, bz as ha, bA as Cs, bB as Yi, bC as Gi, bD as Hi, bE as sl, bF as ws, bG as En, bH as Zn, bI as Xn, bJ as ea, bK as ta, bL as $t, bM as On, bN as Rt, v as ut, bO as Ss, m as rl, l as ll, f as nt, bP as Ji, g as pt, bQ as Ki, h as en, j as ft, k as Wi, bR as Qi, bS as Zi, bT as zt, bU as It, bV as il, bW as Xi, e as ol, bX as _n, bY as Mt, bZ as eo, b_ as Ha, b$ as ks, c0 as na, c1 as yt, c2 as cl, r as pa, q as dr, c3 as Fe, c4 as oa, c5 as dl, c6 as to, c7 as no, c8 as ao, c9 as ul, ca as so, cb as Sa, cc as ro, cd as vn, ce as lo, cf as Ja, cg as Tt, ch as Ve, ci as Et, cj as io, ck as oo, cl as co, cm as uo, cn as mo, co as Pa, cp as ho, cq as ur, cr as po, cs as mr, ct as fo, cu as go, cv as yo, cw as vo, cx as Ds, cy as xo, cz as ml, cA as Ms, cB as bo, cC as hl, cD as ca, cE as pl, cF as No, cG as Co, cH as fa, cI as wo, cJ as fl, cK as So, cL as ko, cM as hr, cN as Do, cO as aa, cP as Ts, cQ as gl, cR as Mo, cS as To, cT as Eo, cU as yl, cV as Es, cW as vl, cX as Oo, cY as pr, cZ as ka, c_ as Da, c$ as Ma, d0 as Ao, d1 as Io, d2 as Ro, d3 as zo, d4 as Nt, d5 as Se, d6 as ke, d7 as De, d8 as Fo, d9 as Lo, da as Po, db as _o, s as Vo, dc as fr, dd as xl, de as jo, df as Uo, dg as Bo, dh as bl, di as Os, dj as An, dk as As, dl as Ft, dm as $o, dn as Ta, dp as Nl, dq as qo, dr as Yo, ds as Go, dt as Ho, du as Jo, dv as gr, dw as Ko, dx as Wo, dy as Qo, dz as Zo, dA as Xo, dB as ec, dC as tc, dD as Cl, dE as nc, dF as ac, dG as sc, dH as rc, dI as lc, dJ as Is, dK as _a, dL as yr, dM as ic, dN as oc, dO as Ka, dP as st, dQ as Ea, dR as cc, dS as dc, dT as vr, dU as uc, dV as Wa, dW as wl, dX as Rs, dY as mc, dZ as hc, d_ as Vn, d$ as Qa, e0 as pc, e1 as fc, e2 as Za, e3 as Xa, e4 as ga, e5 as xn, e6 as jn, e7 as gc, e8 as yc, e9 as Sl, ea as vc, eb as xc, S as bc, ec as Nc, ed as Cc, ee as wc } from "./index-CEZuyo_5.js";
7
+ import { E as Oi, F as Ai, G as or, H as Ii, I as _r, J as Ge, K as Ri, L as zi, M as J, N as cs, w as W, A as xt, O as Te, P as Jt, Q as Vr, R as V, T as ze, U as Kt, V as Wt, W as Qt, X as Zt, Y as Z, Z as je, _ as pn, $ as Nn, a0 as Cn, a1 as ce, a2 as wn, a3 as jr, a4 as fn, a5 as Fi, a6 as cr, a7 as Ur, a8 as H, a9 as ds, aa as Ie, ab as Li, ac as ge, ad as ye, ae as ve, af as xe, ag as Ut, ah as Bt, ai as te, aj as Br, ak as it, al as ot, am as Pi, an as tn, ao as Dt, ap as _t, aq as Be, ar as qe, as as Ye, at, au as us, av as Gn, aw as Hn, ax as $r, ay as bt, az as gn, aA as Sn, aB as Qe, aC as Ne, aD as We, aE as ms, aF as _i, aG as ma, aH as qr, aI as tt, aJ as Yr, aK as yn, aL as hs, aM as Gr, aN as Re, aO as le, aP as Ce, aQ as kn, aR as ct, aS as Dn, aT as Vi, aU as Vt, aV as rt, aW as Jn, aX as Mn, aY as Ln, aZ as ps, a_ as Pn, a$ as dt, b0 as nn, b1 as Kn, b2 as Wn, b3 as Hr, b4 as an, b5 as fs, b6 as gs, b7 as ys, b8 as vs, b9 as Tn, ba as Qn, bb as Jr, bc as xs, bd as wa, be as bs, bf as ji, bg as Ns, bh as Ui, bi as Bi, bj as sn, bk as rn, bl as Le, bm as At, bn as Kr, C as se, bo as Xt, B as M, bp as Wr, bq as Qr, br as Zr, bs as Xr, bt as el, bu as tl, bv as nl, bw as al, bx as $i, by as qi, bz as ha, bA as Cs, bB as Yi, bC as Gi, bD as Hi, bE as sl, bF as ws, bG as En, bH as Zn, bI as Xn, bJ as ea, bK as ta, bL as $t, bM as On, bN as Rt, v as ut, bO as Ss, m as rl, l as ll, f as nt, bP as Ji, g as pt, bQ as Ki, h as en, j as ft, k as Wi, bR as Qi, bS as Zi, bT as zt, bU as It, bV as il, bW as Xi, e as ol, bX as _n, bY as Mt, bZ as eo, b_ as Ha, b$ as ks, c0 as na, c1 as yt, c2 as cl, r as pa, q as dr, c3 as Fe, c4 as oa, c5 as dl, c6 as to, c7 as no, c8 as ao, c9 as ul, ca as so, cb as Sa, cc as ro, cd as vn, ce as lo, cf as Ja, cg as Tt, ch as Ve, ci as Et, cj as io, ck as oo, cl as co, cm as uo, cn as mo, co as Pa, cp as ho, cq as ur, cr as po, cs as mr, ct as fo, cu as go, cv as yo, cw as vo, cx as Ds, cy as xo, cz as ml, cA as Ms, cB as bo, cC as hl, cD as ca, cE as pl, cF as No, cG as Co, cH as fa, cI as wo, cJ as fl, cK as So, cL as ko, cM as hr, cN as Do, cO as aa, cP as Ts, cQ as gl, cR as Mo, cS as To, cT as Eo, cU as yl, cV as Es, cW as vl, cX as Oo, cY as pr, cZ as ka, c_ as Da, c$ as Ma, d0 as Ao, d1 as Io, d2 as Ro, d3 as zo, d4 as Nt, d5 as Se, d6 as ke, d7 as De, d8 as Fo, d9 as Lo, da as Po, db as _o, s as Vo, dc as fr, dd as xl, de as jo, df as Uo, dg as Bo, dh as bl, di as Os, dj as An, dk as As, dl as Ft, dm as $o, dn as Ta, dp as Nl, dq as qo, dr as Yo, ds as Go, dt as Ho, du as Jo, dv as gr, dw as Ko, dx as Wo, dy as Qo, dz as Zo, dA as Xo, dB as ec, dC as tc, dD as Cl, dE as nc, dF as ac, dG as sc, dH as rc, dI as lc, dJ as Is, dK as _a, dL as yr, dM as ic, dN as oc, dO as Ka, dP as st, dQ as Ea, dR as cc, dS as dc, dT as vr, dU as uc, dV as Wa, dW as wl, dX as Rs, dY as mc, dZ as hc, d_ as Vn, d$ as Qa, e0 as pc, e1 as fc, e2 as Za, e3 as Xa, e4 as ga, e5 as xn, e6 as jn, e7 as gc, e8 as yc, e9 as Sl, ea as vc, eb as xc, S as bc, ec as Nc, ed as Cc, ee as wc } from "./index-BoSWZtuJ.js";
8
8
  import * as He from "react";
9
9
  import Oe, { useState as j, useCallback as me, useEffect as Me, useRef as lt, useMemo as Ue, Suspense as kl, useContext as Sc } from "react";
10
10
  import "react-dom";
@@ -1,4 +1,4 @@
1
- "use strict";var rt=t=>{throw TypeError(t)};var ps=(t,a,n)=>a.has(t)||rt("Cannot "+n);var re=(t,a,n)=>(ps(t,a,"read from private field"),n?n.call(t):a.get(t)),Fe=(t,a,n)=>a.has(t)?rt("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(t):a.set(t,n),Be=(t,a,n,r)=>(ps(t,a,"write to private field"),r?r.call(t,n):a.set(t,n),n),ze=(t,a,n)=>(ps(t,a,"access private method"),n);const e=require("react/jsx-runtime"),s=require("./index-DAHFzWxM.js"),I=require("react");require("react-dom");function On(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(a,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return a.default=t,Object.freeze(a)}const ue=On(I);var Ce,Se,de,je,ye,es,Ss,St,Rn=(St=class extends s.Subscribable{constructor(a,n){super();Fe(this,ye);Fe(this,Ce);Fe(this,Se);Fe(this,de);Fe(this,je);Be(this,Ce,a),this.setOptions(n),this.bindMethods(),ze(this,ye,es).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(a){var r;const n=this.options;this.options=re(this,Ce).defaultMutationOptions(a),s.shallowEqualObjects(this.options,n)||re(this,Ce).getMutationCache().notify({type:"observerOptionsUpdated",mutation:re(this,de),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&s.hashKey(n.mutationKey)!==s.hashKey(this.options.mutationKey)?this.reset():((r=re(this,de))==null?void 0:r.state.status)==="pending"&&re(this,de).setOptions(this.options)}onUnsubscribe(){var a;this.hasListeners()||(a=re(this,de))==null||a.removeObserver(this)}onMutationUpdate(a){ze(this,ye,es).call(this),ze(this,ye,Ss).call(this,a)}getCurrentResult(){return re(this,Se)}reset(){var a;(a=re(this,de))==null||a.removeObserver(this),Be(this,de,void 0),ze(this,ye,es).call(this),ze(this,ye,Ss).call(this)}mutate(a,n){var r;return Be(this,je,n),(r=re(this,de))==null||r.removeObserver(this),Be(this,de,re(this,Ce).getMutationCache().build(re(this,Ce),this.options)),re(this,de).addObserver(this),re(this,de).execute(a)}},Ce=new WeakMap,Se=new WeakMap,de=new WeakMap,je=new WeakMap,ye=new WeakSet,es=function(){var n;const a=((n=re(this,de))==null?void 0:n.state)??s.getDefaultState();Be(this,Se,{...a,isPending:a.status==="pending",isSuccess:a.status==="success",isError:a.status==="error",isIdle:a.status==="idle",mutate:this.mutate,reset:this.reset})},Ss=function(a){s.notifyManager.batch(()=>{var n,r,o,i,c,l,d,m;if(re(this,je)&&this.hasListeners()){const u=re(this,Se).variables,h=re(this,Se).context;(a==null?void 0:a.type)==="success"?((r=(n=re(this,je)).onSuccess)==null||r.call(n,a.data,u,h),(i=(o=re(this,je)).onSettled)==null||i.call(o,a.data,null,u,h)):(a==null?void 0:a.type)==="error"&&((l=(c=re(this,je)).onError)==null||l.call(c,a.error,u,h),(m=(d=re(this,je)).onSettled)==null||m.call(d,void 0,a.error,u,h))}this.listeners.forEach(u=>{u(re(this,Se))})})},St);function Le(t,a){const n=s.useQueryClient(),[r]=ue.useState(()=>new Rn(n,t));ue.useEffect(()=>{r.setOptions(t)},[r,t]);const o=ue.useSyncExternalStore(ue.useCallback(c=>r.subscribe(s.notifyManager.batchCalls(c)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=ue.useCallback((c,l)=>{r.mutate(c,l).catch(s.noop)},[r]);if(o.error&&s.shouldThrowError(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}/**
1
+ "use strict";var rt=t=>{throw TypeError(t)};var ps=(t,a,n)=>a.has(t)||rt("Cannot "+n);var re=(t,a,n)=>(ps(t,a,"read from private field"),n?n.call(t):a.get(t)),Fe=(t,a,n)=>a.has(t)?rt("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(t):a.set(t,n),Be=(t,a,n,r)=>(ps(t,a,"write to private field"),r?r.call(t,n):a.set(t,n),n),ze=(t,a,n)=>(ps(t,a,"access private method"),n);const e=require("react/jsx-runtime"),s=require("./index-C4zmqaQZ.js"),I=require("react");require("react-dom");function On(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(a,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return a.default=t,Object.freeze(a)}const ue=On(I);var Ce,Se,de,je,ye,es,Ss,St,Rn=(St=class extends s.Subscribable{constructor(a,n){super();Fe(this,ye);Fe(this,Ce);Fe(this,Se);Fe(this,de);Fe(this,je);Be(this,Ce,a),this.setOptions(n),this.bindMethods(),ze(this,ye,es).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(a){var r;const n=this.options;this.options=re(this,Ce).defaultMutationOptions(a),s.shallowEqualObjects(this.options,n)||re(this,Ce).getMutationCache().notify({type:"observerOptionsUpdated",mutation:re(this,de),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&s.hashKey(n.mutationKey)!==s.hashKey(this.options.mutationKey)?this.reset():((r=re(this,de))==null?void 0:r.state.status)==="pending"&&re(this,de).setOptions(this.options)}onUnsubscribe(){var a;this.hasListeners()||(a=re(this,de))==null||a.removeObserver(this)}onMutationUpdate(a){ze(this,ye,es).call(this),ze(this,ye,Ss).call(this,a)}getCurrentResult(){return re(this,Se)}reset(){var a;(a=re(this,de))==null||a.removeObserver(this),Be(this,de,void 0),ze(this,ye,es).call(this),ze(this,ye,Ss).call(this)}mutate(a,n){var r;return Be(this,je,n),(r=re(this,de))==null||r.removeObserver(this),Be(this,de,re(this,Ce).getMutationCache().build(re(this,Ce),this.options)),re(this,de).addObserver(this),re(this,de).execute(a)}},Ce=new WeakMap,Se=new WeakMap,de=new WeakMap,je=new WeakMap,ye=new WeakSet,es=function(){var n;const a=((n=re(this,de))==null?void 0:n.state)??s.getDefaultState();Be(this,Se,{...a,isPending:a.status==="pending",isSuccess:a.status==="success",isError:a.status==="error",isIdle:a.status==="idle",mutate:this.mutate,reset:this.reset})},Ss=function(a){s.notifyManager.batch(()=>{var n,r,o,i,c,l,d,m;if(re(this,je)&&this.hasListeners()){const u=re(this,Se).variables,h=re(this,Se).context;(a==null?void 0:a.type)==="success"?((r=(n=re(this,je)).onSuccess)==null||r.call(n,a.data,u,h),(i=(o=re(this,je)).onSettled)==null||i.call(o,a.data,null,u,h)):(a==null?void 0:a.type)==="error"&&((l=(c=re(this,je)).onError)==null||l.call(c,a.error,u,h),(m=(d=re(this,je)).onSettled)==null||m.call(d,void 0,a.error,u,h))}this.listeners.forEach(u=>{u(re(this,Se))})})},St);function Le(t,a){const n=s.useQueryClient(),[r]=ue.useState(()=>new Rn(n,t));ue.useEffect(()=>{r.setOptions(t)},[r,t]);const o=ue.useSyncExternalStore(ue.useCallback(c=>r.subscribe(s.notifyManager.batchCalls(c)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=ue.useCallback((c,l)=>{r.mutate(c,l).catch(s.noop)},[r]);if(o.error&&s.shouldThrowError(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.