@pipedream/connect-react 1.0.0-preview.11 → 1.0.0-preview.12
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/connect-react.es.js
CHANGED
|
@@ -2257,12 +2257,10 @@ function Oc(e) {
|
|
|
2257
2257
|
const i = r.emitValue;
|
|
2258
2258
|
typeof i == "object" && i && "__lv" in i ? n.push(i.__lv.value) : n.push(i);
|
|
2259
2259
|
} else
|
|
2260
|
-
|
|
2260
|
+
return [];
|
|
2261
2261
|
return n;
|
|
2262
2262
|
}
|
|
2263
|
-
|
|
2264
|
-
throw "unexpected value";
|
|
2265
|
-
return e;
|
|
2263
|
+
return Array.isArray(e) ? e : [];
|
|
2266
2264
|
}
|
|
2267
2265
|
function Tc(e) {
|
|
2268
2266
|
const t = Oc(e.value);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(X,R){typeof exports=="object"&&typeof module<"u"?R(exports,require("react/jsx-runtime"),require("react"),require("@emotion/react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","@emotion/react","react-dom"],R):(X=typeof globalThis<"u"?globalThis:X||self,R(X["connect-react"]={},X["react/jsx-runtime"],X.React,X["@emotion/react"],X.ReactDOM))})(this,function(X,R,B,j,Wr){"use strict";var ll=X=>{throw TypeError(X)};var ho=(X,R,B)=>R.has(X)||ll("Cannot "+B);var C=(X,R,B)=>(ho(X,R,"read from private field"),B?B.call(X):R.get(X)),K=(X,R,B)=>R.has(X)?ll("Cannot add the same private member more than once"):R instanceof WeakSet?R.add(X):R.set(X,B),W=(X,R,B,j)=>(ho(X,R,"write to private field"),j?j.call(X,B):R.set(X,B),B),ce=(X,R,B)=>(ho(X,R,"access private method"),B);var Hr=(X,R,B,j)=>({set _(Wr){W(X,R,Wr,B)},get _(){return C(X,R,j)}});var Ht,St,dn,Ha,pn,wt,fn,Wa,Wt,Za,hn,gn,qe,Te,zn,Zt,tt,Ct,ja,lt,Ja,ct,De,jt,dt,Rt,Ya,Je,Hn,_a,Se,Et,Ft,mn,bn,Pt,yn,In,Ua,ze,ae,Wn,Ne,Jt,vn,Gt,pt,Zn,Cn,xn,Yt,_t,kt,An,ge,Un,go,mo,bo,yo,Io,vo,Co,cl,Qa;function dl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const te=dl(B);typeof document>"u"&&(globalThis.document={createElement:()=>{}});function xo({prop:e}){return R.jsx("p",{className:`pd-alert-${e.alertType}`,children:e.content})}var tn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ao(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qn={exports:{}};Qn.exports,function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,s=9007199254740991,u="[object Arguments]",a="[object Array]",l="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",m="[object GeneratorFunction]",g="[object Map]",I="[object Number]",v="[object Null]",E="[object Object]",w="[object Promise]",S="[object Proxy]",P="[object RegExp]",A="[object Set]",O="[object String]",k="[object Symbol]",V="[object Undefined]",Z="[object WeakMap]",M="[object ArrayBuffer]",D="[object DataView]",re="[object Float32Array]",ue="[object Float64Array]",J="[object Int8Array]",_="[object Int16Array]",de="[object Int32Array]",me="[object Uint8Array]",Ce="[object Uint8ClampedArray]",y="[object Uint16Array]",Fe="[object Uint32Array]",le=/[\\^$.*+?()[\]{}|]/g,b=/^\[object .+?Constructor\]$/,Ie=/^(?:0|[1-9]\d*)$/,ee={};ee[re]=ee[ue]=ee[J]=ee[_]=ee[de]=ee[me]=ee[Ce]=ee[y]=ee[Fe]=!0,ee[u]=ee[a]=ee[M]=ee[c]=ee[D]=ee[d]=ee[f]=ee[p]=ee[g]=ee[I]=ee[E]=ee[P]=ee[A]=ee[O]=ee[Z]=!1;var pe=typeof tn=="object"&&tn&&tn.Object===Object&&tn,z=typeof self=="object"&&self&&self.Object===Object&&self,L=pe||z||Function("return this")(),U=t&&!t.nodeType&&t,fe=U&&!0&&e&&!e.nodeType&&e,Pe=fe&&fe.exports===U,Me=Pe&&pe.process,Sn=function(){try{return Me&&Me.binding&&Me.binding("util")}catch{}}(),Ut=Sn&&Sn.isTypedArray;function wn(h,x){for(var G=-1,H=h==null?0:h.length,ve=0,ie=[];++G<H;){var we=h[G];x(we,G,h)&&(ie[ve++]=we)}return ie}function Or(h,x){for(var G=-1,H=x.length,ve=h.length;++G<H;)h[ve+G]=x[G];return h}function Tr(h,x){for(var G=-1,H=h==null?0:h.length;++G<H;)if(x(h[G],G,h))return!0;return!1}function to(h,x){for(var G=-1,H=Array(h);++G<h;)H[G]=x(G);return H}function Vr(h){return function(x){return h(x)}}function Rr(h,x){return h.has(x)}function no(h,x){return h==null?void 0:h[x]}function ro(h){var x=-1,G=Array(h.size);return h.forEach(function(H,ve){G[++x]=[ve,H]}),G}function io(h,x){return function(G){return h(x(G))}}function oo(h){var x=-1,G=Array(h.size);return h.forEach(function(H){G[++x]=H}),G}var so=Array.prototype,F=Function.prototype,N=Object.prototype,$=L["__core-js_shared__"],oe=F.toString,se=N.hasOwnProperty,He=function(){var h=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}(),ft=N.toString,nt=RegExp("^"+oe.call(se).replace(le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bt=Pe?L.Buffer:void 0,ht=L.Symbol,Ve=L.Uint8Array,yt=N.propertyIsEnumerable,rt=so.splice,Qt=ht?ht.toStringTag:void 0,qa=Object.getOwnPropertySymbols,Eb=Bt?Bt.isBuffer:void 0,Fb=io(Object.keys,Object),uo=En(L,"DataView"),jn=En(L,"Map"),ao=En(L,"Promise"),lo=En(L,"Set"),co=En(L,"WeakMap"),Jn=En(Object,"create"),Pb=Kt(uo),Gb=Kt(jn),kb=Kt(ao),Bb=Kt(lo),Ob=Kt(co),$a=ht?ht.prototype:void 0,po=$a?$a.valueOf:void 0;function qt(h){var x=-1,G=h==null?0:h.length;for(this.clear();++x<G;){var H=h[x];this.set(H[0],H[1])}}function Tb(){this.__data__=Jn?Jn(null):{},this.size=0}function Vb(h){var x=this.has(h)&&delete this.__data__[h];return this.size-=x?1:0,x}function Rb(h){var x=this.__data__;if(Jn){var G=x[h];return G===r?void 0:G}return se.call(x,h)?x[h]:void 0}function Db(h){var x=this.__data__;return Jn?x[h]!==void 0:se.call(x,h)}function Nb(h,x){var G=this.__data__;return this.size+=this.has(h)?0:1,G[h]=Jn&&x===void 0?r:x,this}qt.prototype.clear=Tb,qt.prototype.delete=Vb,qt.prototype.get=Rb,qt.prototype.has=Db,qt.prototype.set=Nb;function It(h){var x=-1,G=h==null?0:h.length;for(this.clear();++x<G;){var H=h[x];this.set(H[0],H[1])}}function Mb(){this.__data__=[],this.size=0}function Lb(h){var x=this.__data__,G=Nr(x,h);if(G<0)return!1;var H=x.length-1;return G==H?x.pop():rt.call(x,G,1),--this.size,!0}function Xb(h){var x=this.__data__,G=Nr(x,h);return G<0?void 0:x[G][1]}function zb(h){return Nr(this.__data__,h)>-1}function Hb(h,x){var G=this.__data__,H=Nr(G,h);return H<0?(++this.size,G.push([h,x])):G[H][1]=x,this}It.prototype.clear=Mb,It.prototype.delete=Lb,It.prototype.get=Xb,It.prototype.has=zb,It.prototype.set=Hb;function $t(h){var x=-1,G=h==null?0:h.length;for(this.clear();++x<G;){var H=h[x];this.set(H[0],H[1])}}function Wb(){this.size=0,this.__data__={hash:new qt,map:new(jn||It),string:new qt}}function Zb(h){var x=Mr(this,h).delete(h);return this.size-=x?1:0,x}function jb(h){return Mr(this,h).get(h)}function Jb(h){return Mr(this,h).has(h)}function Yb(h,x){var G=Mr(this,h),H=G.size;return G.set(h,x),this.size+=G.size==H?0:1,this}$t.prototype.clear=Wb,$t.prototype.delete=Zb,$t.prototype.get=jb,$t.prototype.has=Jb,$t.prototype.set=Yb;function Dr(h){var x=-1,G=h==null?0:h.length;for(this.__data__=new $t;++x<G;)this.add(h[x])}function _b(h){return this.__data__.set(h,r),this}function Ub(h){return this.__data__.has(h)}Dr.prototype.add=Dr.prototype.push=_b,Dr.prototype.has=Ub;function Ot(h){var x=this.__data__=new It(h);this.size=x.size}function Qb(){this.__data__=new It,this.size=0}function qb(h){var x=this.__data__,G=x.delete(h);return this.size=x.size,G}function $b(h){return this.__data__.get(h)}function Kb(h){return this.__data__.has(h)}function ey(h,x){var G=this.__data__;if(G instanceof It){var H=G.__data__;if(!jn||H.length<n-1)return H.push([h,x]),this.size=++G.size,this;G=this.__data__=new $t(H)}return G.set(h,x),this.size=G.size,this}Ot.prototype.clear=Qb,Ot.prototype.delete=qb,Ot.prototype.get=$b,Ot.prototype.has=Kb,Ot.prototype.set=ey;function ty(h,x){var G=Lr(h),H=!G&&my(h),ve=!G&&!H&&fo(h),ie=!G&&!H&&!ve&&ul(h),we=G||H||ve||ie,Ge=we?to(h.length,String):[],Be=Ge.length;for(var xe in h)se.call(h,xe)&&!(we&&(xe=="length"||ve&&(xe=="offset"||xe=="parent")||ie&&(xe=="buffer"||xe=="byteLength"||xe=="byteOffset")||dy(xe,Be)))&&Ge.push(xe);return Ge}function Nr(h,x){for(var G=h.length;G--;)if(rl(h[G][0],x))return G;return-1}function ny(h,x,G){var H=x(h);return Lr(h)?H:Or(H,G(h))}function Yn(h){return h==null?h===void 0?V:v:Qt&&Qt in Object(h)?ly(h):gy(h)}function Ka(h){return _n(h)&&Yn(h)==u}function el(h,x,G,H,ve){return h===x?!0:h==null||x==null||!_n(h)&&!_n(x)?h!==h&&x!==x:ry(h,x,G,H,el,ve)}function ry(h,x,G,H,ve,ie){var we=Lr(h),Ge=Lr(x),Be=we?a:Tt(h),xe=Ge?a:Tt(x);Be=Be==u?E:Be,xe=xe==u?E:xe;var Ye=Be==E,it=xe==E,Re=Be==xe;if(Re&&fo(h)){if(!fo(x))return!1;we=!0,Ye=!1}if(Re&&!Ye)return ie||(ie=new Ot),we||ul(h)?tl(h,x,G,H,ve,ie):uy(h,x,Be,G,H,ve,ie);if(!(G&i)){var $e=Ye&&se.call(h,"__wrapped__"),Ke=it&&se.call(x,"__wrapped__");if($e||Ke){var Vt=$e?h.value():h,vt=Ke?x.value():x;return ie||(ie=new Ot),ve(Vt,vt,G,H,ie)}}return Re?(ie||(ie=new Ot),ay(h,x,G,H,ve,ie)):!1}function iy(h){if(!sl(h)||fy(h))return!1;var x=il(h)?nt:b;return x.test(Kt(h))}function oy(h){return _n(h)&&ol(h.length)&&!!ee[Yn(h)]}function sy(h){if(!hy(h))return Fb(h);var x=[];for(var G in Object(h))se.call(h,G)&&G!="constructor"&&x.push(G);return x}function tl(h,x,G,H,ve,ie){var we=G&i,Ge=h.length,Be=x.length;if(Ge!=Be&&!(we&&Be>Ge))return!1;var xe=ie.get(h);if(xe&&ie.get(x))return xe==x;var Ye=-1,it=!0,Re=G&o?new Dr:void 0;for(ie.set(h,x),ie.set(x,h);++Ye<Ge;){var $e=h[Ye],Ke=x[Ye];if(H)var Vt=we?H(Ke,$e,Ye,x,h,ie):H($e,Ke,Ye,h,x,ie);if(Vt!==void 0){if(Vt)continue;it=!1;break}if(Re){if(!Tr(x,function(vt,en){if(!Rr(Re,en)&&($e===vt||ve($e,vt,G,H,ie)))return Re.push(en)})){it=!1;break}}else if(!($e===Ke||ve($e,Ke,G,H,ie))){it=!1;break}}return ie.delete(h),ie.delete(x),it}function uy(h,x,G,H,ve,ie,we){switch(G){case D:if(h.byteLength!=x.byteLength||h.byteOffset!=x.byteOffset)return!1;h=h.buffer,x=x.buffer;case M:return!(h.byteLength!=x.byteLength||!ie(new Ve(h),new Ve(x)));case c:case d:case I:return rl(+h,+x);case f:return h.name==x.name&&h.message==x.message;case P:case O:return h==x+"";case g:var Ge=ro;case A:var Be=H&i;if(Ge||(Ge=oo),h.size!=x.size&&!Be)return!1;var xe=we.get(h);if(xe)return xe==x;H|=o,we.set(h,x);var Ye=tl(Ge(h),Ge(x),H,ve,ie,we);return we.delete(h),Ye;case k:if(po)return po.call(h)==po.call(x)}return!1}function ay(h,x,G,H,ve,ie){var we=G&i,Ge=nl(h),Be=Ge.length,xe=nl(x),Ye=xe.length;if(Be!=Ye&&!we)return!1;for(var it=Be;it--;){var Re=Ge[it];if(!(we?Re in x:se.call(x,Re)))return!1}var $e=ie.get(h);if($e&&ie.get(x))return $e==x;var Ke=!0;ie.set(h,x),ie.set(x,h);for(var Vt=we;++it<Be;){Re=Ge[it];var vt=h[Re],en=x[Re];if(H)var al=we?H(en,vt,Re,x,h,ie):H(vt,en,Re,h,x,ie);if(!(al===void 0?vt===en||ve(vt,en,G,H,ie):al)){Ke=!1;break}Vt||(Vt=Re=="constructor")}if(Ke&&!Vt){var Xr=h.constructor,zr=x.constructor;Xr!=zr&&"constructor"in h&&"constructor"in x&&!(typeof Xr=="function"&&Xr instanceof Xr&&typeof zr=="function"&&zr instanceof zr)&&(Ke=!1)}return ie.delete(h),ie.delete(x),Ke}function nl(h){return ny(h,Iy,cy)}function Mr(h,x){var G=h.__data__;return py(x)?G[typeof x=="string"?"string":"hash"]:G.map}function En(h,x){var G=no(h,x);return iy(G)?G:void 0}function ly(h){var x=se.call(h,Qt),G=h[Qt];try{h[Qt]=void 0;var H=!0}catch{}var ve=ft.call(h);return H&&(x?h[Qt]=G:delete h[Qt]),ve}var cy=qa?function(h){return h==null?[]:(h=Object(h),wn(qa(h),function(x){return yt.call(h,x)}))}:vy,Tt=Yn;(uo&&Tt(new uo(new ArrayBuffer(1)))!=D||jn&&Tt(new jn)!=g||ao&&Tt(ao.resolve())!=w||lo&&Tt(new lo)!=A||co&&Tt(new co)!=Z)&&(Tt=function(h){var x=Yn(h),G=x==E?h.constructor:void 0,H=G?Kt(G):"";if(H)switch(H){case Pb:return D;case Gb:return g;case kb:return w;case Bb:return A;case Ob:return Z}return x});function dy(h,x){return x=x??s,!!x&&(typeof h=="number"||Ie.test(h))&&h>-1&&h%1==0&&h<x}function py(h){var x=typeof h;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?h!=="__proto__":h===null}function fy(h){return!!He&&He in h}function hy(h){var x=h&&h.constructor,G=typeof x=="function"&&x.prototype||N;return h===G}function gy(h){return ft.call(h)}function Kt(h){if(h!=null){try{return oe.call(h)}catch{}try{return h+""}catch{}}return""}function rl(h,x){return h===x||h!==h&&x!==x}var my=Ka(function(){return arguments}())?Ka:function(h){return _n(h)&&se.call(h,"callee")&&!yt.call(h,"callee")},Lr=Array.isArray;function by(h){return h!=null&&ol(h.length)&&!il(h)}var fo=Eb||Cy;function yy(h,x){return el(h,x)}function il(h){if(!sl(h))return!1;var x=Yn(h);return x==p||x==m||x==l||x==S}function ol(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=s}function sl(h){var x=typeof h;return h!=null&&(x=="object"||x=="function")}function _n(h){return h!=null&&typeof h=="object"}var ul=Ut?Vr(Ut):oy;function Iy(h){return by(h)?ty(h):sy(h)}function vy(){return[]}function Cy(){return!1}e.exports=yy}(Qn,Qn.exports);var pl=Qn.exports;const fl=Ao(pl);var Fn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Dt=typeof window>"u"||"Deno"in globalThis;function _e(){}function hl(e,t){return typeof e=="function"?e(t):e}function Zr(e){return typeof e=="number"&&e>=0&&e!==1/0}function So(e,t){return Math.max(e+(t||0)-Date.now(),0)}function nn(e,t){return typeof e=="function"?e(t):e}function et(e,t){return typeof e=="function"?e(t):e}function wo(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:u}=e;if(s){if(r){if(t.queryHash!==jr(s,t.options))return!1}else if(!Gn(t.queryKey,s))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||i&&i!==t.state.fetchStatus||o&&!o(t))}function Eo(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Pn(t.options.mutationKey)!==Pn(o))return!1}else if(!Gn(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function jr(e,t){return((t==null?void 0:t.queryKeyHashFn)||Pn)(e)}function Pn(e){return JSON.stringify(e,(t,n)=>_r(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Gn(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Gn(e[n],t[n])):!1}function Jr(e,t){if(e===t)return e;const n=Fo(e)&&Fo(t);if(n||_r(e)&&_r(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),s=o.length,u=n?[]:{};let a=0;for(let l=0;l<s;l++){const c=n?l:o[l];(!n&&r.includes(c)||n)&&e[c]===void 0&&t[c]===void 0?(u[c]=void 0,a++):(u[c]=Jr(e[c],t[c]),u[c]===e[c]&&e[c]!==void 0&&a++)}return i===s&&a===i?e:u}return t}function Yr(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Fo(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function _r(e){if(!Po(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Po(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Po(e){return Object.prototype.toString.call(e)==="[object Object]"}function gl(e){return new Promise(t=>{setTimeout(t,e)})}function Ur(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return Jr(e,t)}catch(r){console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`)}return Jr(e,t)}return t}function ml(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function bl(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var qn=Symbol();function Go(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===qn&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===qn?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var yl=(Ha=class extends Fn{constructor(){super();K(this,Ht);K(this,St);K(this,dn);W(this,dn,t=>{if(!Dt&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,St)||this.setEventListener(C(this,dn))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,St))==null||t.call(this),W(this,St,void 0))}setEventListener(t){var n;W(this,dn,t),(n=C(this,St))==null||n.call(this),W(this,St,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){C(this,Ht)!==t&&(W(this,Ht,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,Ht)=="boolean"?C(this,Ht):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ht=new WeakMap,St=new WeakMap,dn=new WeakMap,Ha),Qr=new yl,Il=(Wa=class extends Fn{constructor(){super();K(this,pn,!0);K(this,wt);K(this,fn);W(this,fn,t=>{if(!Dt&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,wt)||this.setEventListener(C(this,fn))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,wt))==null||t.call(this),W(this,wt,void 0))}setEventListener(t){var n;W(this,fn,t),(n=C(this,wt))==null||n.call(this),W(this,wt,t(this.setOnline.bind(this)))}setOnline(t){C(this,pn)!==t&&(W(this,pn,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return C(this,pn)}},pn=new WeakMap,wt=new WeakMap,fn=new WeakMap,Wa),$n=new Il;function qr(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function vl(e){return Math.min(1e3*2**e,3e4)}function ko(e){return(e??"online")==="online"?$n.isOnline():!0}var Bo=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function $r(e){return e instanceof Bo}function Oo(e){let t=!1,n=0,r=!1,i;const o=qr(),s=g=>{var I;r||(f(new Bo(g)),(I=e.abort)==null||I.call(e))},u=()=>{t=!0},a=()=>{t=!1},l=()=>Qr.isFocused()&&(e.networkMode==="always"||$n.isOnline())&&e.canRun(),c=()=>ko(e.networkMode)&&e.canRun(),d=g=>{var I;r||(r=!0,(I=e.onSuccess)==null||I.call(e,g),i==null||i(),o.resolve(g))},f=g=>{var I;r||(r=!0,(I=e.onError)==null||I.call(e,g),i==null||i(),o.reject(g))},p=()=>new Promise(g=>{var I;i=v=>{(r||l())&&g(v)},(I=e.onPause)==null||I.call(e)}).then(()=>{var g;i=void 0,r||(g=e.onContinue)==null||g.call(e)}),m=()=>{if(r)return;let g;const I=n===0?e.initialPromise:void 0;try{g=I??e.fn()}catch(v){g=Promise.reject(v)}Promise.resolve(g).then(d).catch(v=>{var A;if(r)return;const E=e.retry??(Dt?0:3),w=e.retryDelay??vl,S=typeof w=="function"?w(n,v):w,P=E===!0||typeof E=="number"&&n<E||typeof E=="function"&&E(n,v);if(t||!P){f(v);return}n++,(A=e.onFail)==null||A.call(e,n,v),gl(S).then(()=>l()?void 0:p()).then(()=>{t?f(v):m()})})};return{promise:o,cancel:s,continue:()=>(i==null||i(),o),cancelRetry:u,continueRetry:a,canStart:c,start:()=>(c()?m():p().then(m),o)}}function Cl(){let e=[],t=0,n=u=>{u()},r=u=>{u()},i=u=>setTimeout(u,0);const o=u=>{t?e.push(u):i(()=>{n(u)})},s=()=>{const u=e;e=[],u.length&&i(()=>{r(()=>{u.forEach(a=>{n(a)})})})};return{batch:u=>{let a;t++;try{a=u()}finally{t--,t||s()}return a},batchCalls:u=>(...a)=>{o(()=>{u(...a)})},schedule:o,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{i=u}}}var ke=Cl(),To=(Za=class{constructor(){K(this,Wt)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Zr(this.gcTime)&&W(this,Wt,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Dt?1/0:5*60*1e3))}clearGcTimeout(){C(this,Wt)&&(clearTimeout(C(this,Wt)),W(this,Wt,void 0))}},Wt=new WeakMap,Za),xl=(ja=class extends To{constructor(t){super();K(this,tt);K(this,hn);K(this,gn);K(this,qe);K(this,Te);K(this,zn);K(this,Zt);W(this,Zt,!1),W(this,zn,t.defaultOptions),this.setOptions(t.options),this.observers=[],W(this,qe,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,W(this,hn,Al(this.options)),this.state=t.state??C(this,hn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=C(this,Te))==null?void 0:t.promise}setOptions(t){this.options={...C(this,zn),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,qe).remove(this)}setData(t,n){const r=Ur(this.state.data,t,this.options);return ce(this,tt,Ct).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ce(this,tt,Ct).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=C(this,Te))==null?void 0:r.promise;return(i=C(this,Te))==null||i.cancel(t),n?n.then(_e).catch(_e):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,hn))}isActive(){return this.observers.some(t=>et(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===qn||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!So(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Te))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Te))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,qe).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,Te)&&(C(this,Zt)?C(this,Te).cancel({revert:!0}):C(this,Te).cancelRetry()),this.scheduleGc()),C(this,qe).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ce(this,tt,Ct).call(this,{type:"invalidate"})}fetch(t,n){var a,l,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,Te))return C(this,Te).continueRetry(),C(this,Te).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(W(this,Zt,!0),r.signal)})},o=()=>{const d=Go(this.options,n),f={queryKey:this.queryKey,meta:this.meta};return i(f),W(this,Zt,!1),this.options.persister?this.options.persister(d,f,this):d(f)},s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(s),(a=this.options.behavior)==null||a.onFetch(s,this),W(this,gn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=s.fetchOptions)==null?void 0:l.meta))&&ce(this,tt,Ct).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta});const u=d=>{var f,p,m,g;$r(d)&&d.silent||ce(this,tt,Ct).call(this,{type:"error",error:d}),$r(d)||((p=(f=C(this,qe).config).onError)==null||p.call(f,d,this),(g=(m=C(this,qe).config).onSettled)==null||g.call(m,this.state.data,d,this)),this.scheduleGc()};return W(this,Te,Oo({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var f,p,m,g;if(d===void 0){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(I){u(I);return}(p=(f=C(this,qe).config).onSuccess)==null||p.call(f,d,this),(g=(m=C(this,qe).config).onSettled)==null||g.call(m,d,this.state.error,this),this.scheduleGc()},onError:u,onFail:(d,f)=>{ce(this,tt,Ct).call(this,{type:"failed",failureCount:d,error:f})},onPause:()=>{ce(this,tt,Ct).call(this,{type:"pause"})},onContinue:()=>{ce(this,tt,Ct).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),C(this,Te).start()}},hn=new WeakMap,gn=new WeakMap,qe=new WeakMap,Te=new WeakMap,zn=new WeakMap,Zt=new WeakMap,tt=new WeakSet,Ct=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Vo(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return $r(i)&&i.revert&&C(this,gn)?{...C(this,gn),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ke.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,qe).notify({query:this,type:"updated",action:t})})},ja);function Vo(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ko(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Al(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Sl=(Ja=class extends Fn{constructor(t={}){super();K(this,lt);this.config=t,W(this,lt,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??jr(i,n);let s=this.get(o);return s||(s=new xl({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){C(this,lt).has(t.queryHash)||(C(this,lt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,lt).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,lt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ke.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,lt).get(t)}getAll(){return[...C(this,lt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>wo(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>wo(t,r)):n}notify(t){ke.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ke.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ke.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},lt=new WeakMap,Ja),wl=(Ya=class extends To{constructor(t){super();K(this,dt);K(this,ct);K(this,De);K(this,jt);this.mutationId=t.mutationId,W(this,De,t.mutationCache),W(this,ct,[]),this.state=t.state||El(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,ct).includes(t)||(C(this,ct).push(t),this.clearGcTimeout(),C(this,De).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){W(this,ct,C(this,ct).filter(n=>n!==t)),this.scheduleGc(),C(this,De).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,ct).length||(this.state.status==="pending"?this.scheduleGc():C(this,De).remove(this))}continue(){var t;return((t=C(this,jt))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,s,u,a,l,c,d,f,p,m,g,I,v,E,w,S,P,A,O;W(this,jt,Oo({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(k,V)=>{ce(this,dt,Rt).call(this,{type:"failed",failureCount:k,error:V})},onPause:()=>{ce(this,dt,Rt).call(this,{type:"pause"})},onContinue:()=>{ce(this,dt,Rt).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,De).canRun(this)}));const n=this.state.status==="pending",r=!C(this,jt).canStart();try{if(!n){ce(this,dt,Rt).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(i=C(this,De).config).onMutate)==null?void 0:o.call(i,t,this));const V=await((u=(s=this.options).onMutate)==null?void 0:u.call(s,t));V!==this.state.context&&ce(this,dt,Rt).call(this,{type:"pending",context:V,variables:t,isPaused:r})}const k=await C(this,jt).start();return await((l=(a=C(this,De).config).onSuccess)==null?void 0:l.call(a,k,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,k,t,this.state.context)),await((p=(f=C(this,De).config).onSettled)==null?void 0:p.call(f,k,null,this.state.variables,this.state.context,this)),await((g=(m=this.options).onSettled)==null?void 0:g.call(m,k,null,t,this.state.context)),ce(this,dt,Rt).call(this,{type:"success",data:k}),k}catch(k){try{throw await((v=(I=C(this,De).config).onError)==null?void 0:v.call(I,k,t,this.state.context,this)),await((w=(E=this.options).onError)==null?void 0:w.call(E,k,t,this.state.context)),await((P=(S=C(this,De).config).onSettled)==null?void 0:P.call(S,void 0,k,this.state.variables,this.state.context,this)),await((O=(A=this.options).onSettled)==null?void 0:O.call(A,void 0,k,t,this.state.context)),k}finally{ce(this,dt,Rt).call(this,{type:"error",error:k})}}finally{C(this,De).runNext(this)}}},ct=new WeakMap,De=new WeakMap,jt=new WeakMap,dt=new WeakSet,Rt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ke.batch(()=>{C(this,ct).forEach(r=>{r.onMutationUpdate(t)}),C(this,De).notify({mutation:this,type:"updated",action:t})})},Ya);function El(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Fl=(_a=class extends Fn{constructor(t={}){super();K(this,Je);K(this,Hn);this.config=t,W(this,Je,new Map),W(this,Hn,Date.now())}build(t,n,r){const i=new wl({mutationCache:this,mutationId:++Hr(this,Hn)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=Kn(t),r=C(this,Je).get(n)??[];r.push(t),C(this,Je).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Kn(t);if(C(this,Je).has(n)){const i=(r=C(this,Je).get(n))==null?void 0:r.filter(o=>o!==t);i&&(i.length===0?C(this,Je).delete(n):C(this,Je).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=C(this,Je).get(Kn(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=C(this,Je).get(Kn(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){ke.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...C(this,Je).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Eo(n,r))}findAll(t={}){return this.getAll().filter(n=>Eo(t,n))}notify(t){ke.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ke.batch(()=>Promise.all(t.map(n=>n.continue().catch(_e))))}},Je=new WeakMap,Hn=new WeakMap,_a);function Kn(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Ro(e){return{onFetch:(t,n)=>{var c,d,f,p,m;const r=t.options,i=(f=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,o=((p=t.state.data)==null?void 0:p.pages)||[],s=((m=t.state.data)==null?void 0:m.pageParams)||[];let u={pages:[],pageParams:[]},a=0;const l=async()=>{let g=!1;const I=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},v=Go(t.options,t.fetchOptions),E=async(w,S,P)=>{if(g)return Promise.reject();if(S==null&&w.pages.length)return Promise.resolve(w);const A={queryKey:t.queryKey,pageParam:S,direction:P?"backward":"forward",meta:t.options.meta};I(A);const O=await v(A),{maxPages:k}=t.options,V=P?bl:ml;return{pages:V(w.pages,O,k),pageParams:V(w.pageParams,S,k)}};if(i&&o.length){const w=i==="backward",S=w?Pl:Do,P={pages:o,pageParams:s},A=S(r,P);u=await E(P,A,w)}else{const w=e??o.length;do{const S=a===0?s[0]??r.initialPageParam:Do(r,u);if(a>0&&S==null)break;u=await E(u,S),a++}while(a<w)}return u};t.options.persister?t.fetchFn=()=>{var g,I;return(I=(g=t.options).persister)==null?void 0:I.call(g,l,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function Do(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Pl(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Gl=(Ua=class{constructor(e={}){K(this,Se);K(this,Et);K(this,Ft);K(this,mn);K(this,bn);K(this,Pt);K(this,yn);K(this,In);W(this,Se,e.queryCache||new Sl),W(this,Et,e.mutationCache||new Fl),W(this,Ft,e.defaultOptions||{}),W(this,mn,new Map),W(this,bn,new Map),W(this,Pt,0)}mount(){Hr(this,Pt)._++,C(this,Pt)===1&&(W(this,yn,Qr.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,Se).onFocus())})),W(this,In,$n.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,Se).onOnline())})))}unmount(){var e,t;Hr(this,Pt)._--,C(this,Pt)===0&&((e=C(this,yn))==null||e.call(this),W(this,yn,void 0),(t=C(this,In))==null||t.call(this),W(this,In,void 0))}isFetching(e){return C(this,Se).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,Et).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,Se).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=C(this,Se).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(nn(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return C(this,Se).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=C(this,Se).get(r.queryHash),o=i==null?void 0:i.state.data,s=hl(t,o);if(s!==void 0)return C(this,Se).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return ke.batch(()=>C(this,Se).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,Se).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,Se);ke.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,Se),r={type:"active",...e};return ke.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=ke.batch(()=>C(this,Se).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(_e).catch(_e)}invalidateQueries(e={},t={}){return ke.batch(()=>{if(C(this,Se).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=ke.batch(()=>C(this,Se).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(_e)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(_e)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,Se).build(this,t);return n.isStaleByTime(nn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(_e).catch(_e)}fetchInfiniteQuery(e){return e.behavior=Ro(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(_e).catch(_e)}ensureInfiniteQueryData(e){return e.behavior=Ro(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return $n.isOnline()?C(this,Et).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,Se)}getMutationCache(){return C(this,Et)}getDefaultOptions(){return C(this,Ft)}setDefaultOptions(e){W(this,Ft,e)}setQueryDefaults(e,t){C(this,mn).set(Pn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,mn).values()];let n={};return t.forEach(r=>{Gn(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){C(this,bn).set(Pn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,bn).values()];let n={};return t.forEach(r=>{Gn(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,Ft).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=jr(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===qn&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,Ft).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,Se).clear(),C(this,Et).clear()}},Se=new WeakMap,Et=new WeakMap,Ft=new WeakMap,mn=new WeakMap,bn=new WeakMap,Pt=new WeakMap,yn=new WeakMap,In=new WeakMap,Ua),kl=(Qa=class extends Fn{constructor(t,n){super();K(this,ge);K(this,ze);K(this,ae);K(this,Wn);K(this,Ne);K(this,Jt);K(this,vn);K(this,Gt);K(this,pt);K(this,Zn);K(this,Cn);K(this,xn);K(this,Yt);K(this,_t);K(this,kt);K(this,An,new Set);this.options=n,W(this,ze,t),W(this,pt,null),W(this,Gt,qr()),this.options.experimental_prefetchInRender||C(this,Gt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,ae).addObserver(this),No(C(this,ae),this.options)?ce(this,ge,Un).call(this):this.updateResult(),ce(this,ge,yo).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Kr(C(this,ae),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Kr(C(this,ae),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ce(this,ge,Io).call(this),ce(this,ge,vo).call(this),C(this,ae).removeObserver(this)}setOptions(t,n){const r=this.options,i=C(this,ae);if(this.options=C(this,ze).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof et(this.options.enabled,C(this,ae))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ce(this,ge,Co).call(this),C(this,ae).setOptions(this.options),r._defaulted&&!Yr(this.options,r)&&C(this,ze).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,ae),observer:this});const o=this.hasListeners();o&&Mo(C(this,ae),i,this.options,r)&&ce(this,ge,Un).call(this),this.updateResult(n),o&&(C(this,ae)!==i||et(this.options.enabled,C(this,ae))!==et(r.enabled,C(this,ae))||nn(this.options.staleTime,C(this,ae))!==nn(r.staleTime,C(this,ae)))&&ce(this,ge,go).call(this);const s=ce(this,ge,mo).call(this);o&&(C(this,ae)!==i||et(this.options.enabled,C(this,ae))!==et(r.enabled,C(this,ae))||s!==C(this,kt))&&ce(this,ge,bo).call(this,s)}getOptimisticResult(t){const n=C(this,ze).getQueryCache().build(C(this,ze),t),r=this.createResult(n,t);return Ol(this,r)&&(W(this,Ne,r),W(this,vn,this.options),W(this,Jt,C(this,ae).state)),r}getCurrentResult(){return C(this,Ne)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){C(this,An).add(t)}getCurrentQuery(){return C(this,ae)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,ze).defaultQueryOptions(t),r=C(this,ze).getQueryCache().build(C(this,ze),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return ce(this,ge,Un).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,Ne)))}createResult(t,n){var k;const r=C(this,ae),i=this.options,o=C(this,Ne),s=C(this,Jt),u=C(this,vn),l=t!==r?t.state:C(this,Wn),{state:c}=t;let d={...c},f=!1,p;if(n._optimisticResults){const V=this.hasListeners(),Z=!V&&No(t,n),M=V&&Mo(t,r,n,i);(Z||M)&&(d={...d,...Vo(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:m,errorUpdatedAt:g,status:I}=d;if(n.select&&d.data!==void 0)if(o&&d.data===(s==null?void 0:s.data)&&n.select===C(this,Zn))p=C(this,Cn);else try{W(this,Zn,n.select),p=n.select(d.data),p=Ur(o==null?void 0:o.data,p,n),W(this,Cn,p),W(this,pt,null)}catch(V){W(this,pt,V)}else p=d.data;if(n.placeholderData!==void 0&&p===void 0&&I==="pending"){let V;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData))V=o.data;else if(V=typeof n.placeholderData=="function"?n.placeholderData((k=C(this,xn))==null?void 0:k.state.data,C(this,xn)):n.placeholderData,n.select&&V!==void 0)try{V=n.select(V),W(this,pt,null)}catch(Z){W(this,pt,Z)}V!==void 0&&(I="success",p=Ur(o==null?void 0:o.data,V,n),f=!0)}C(this,pt)&&(m=C(this,pt),p=C(this,Cn),g=Date.now(),I="error");const v=d.fetchStatus==="fetching",E=I==="pending",w=I==="error",S=E&&v,P=p!==void 0,O={status:I,fetchStatus:d.fetchStatus,isPending:E,isSuccess:I==="success",isError:w,isInitialLoading:S,isLoading:S,data:p,dataUpdatedAt:d.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!E,isLoadingError:w&&!P,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:w&&P,isStale:ei(t,n),refetch:this.refetch,promise:C(this,Gt)};if(this.options.experimental_prefetchInRender){const V=D=>{O.status==="error"?D.reject(O.error):O.data!==void 0&&D.resolve(O.data)},Z=()=>{const D=W(this,Gt,O.promise=qr());V(D)},M=C(this,Gt);switch(M.status){case"pending":t.queryHash===r.queryHash&&V(M);break;case"fulfilled":(O.status==="error"||O.data!==M.value)&&Z();break;case"rejected":(O.status!=="error"||O.error!==M.reason)&&Z();break}}return O}updateResult(t){const n=C(this,Ne),r=this.createResult(C(this,ae),this.options);if(W(this,Jt,C(this,ae).state),W(this,vn,this.options),C(this,Jt).data!==void 0&&W(this,xn,C(this,ae)),Yr(r,n))return;W(this,Ne,r);const i={},o=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,u=typeof s=="function"?s():s;if(u==="all"||!u&&!C(this,An).size)return!0;const a=new Set(u??C(this,An));return this.options.throwOnError&&a.add("error"),Object.keys(C(this,Ne)).some(l=>{const c=l;return C(this,Ne)[c]!==n[c]&&a.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),ce(this,ge,cl).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ce(this,ge,yo).call(this)}},ze=new WeakMap,ae=new WeakMap,Wn=new WeakMap,Ne=new WeakMap,Jt=new WeakMap,vn=new WeakMap,Gt=new WeakMap,pt=new WeakMap,Zn=new WeakMap,Cn=new WeakMap,xn=new WeakMap,Yt=new WeakMap,_t=new WeakMap,kt=new WeakMap,An=new WeakMap,ge=new WeakSet,Un=function(t){ce(this,ge,Co).call(this);let n=C(this,ae).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(_e)),n},go=function(){ce(this,ge,Io).call(this);const t=nn(this.options.staleTime,C(this,ae));if(Dt||C(this,Ne).isStale||!Zr(t))return;const r=So(C(this,Ne).dataUpdatedAt,t)+1;W(this,Yt,setTimeout(()=>{C(this,Ne).isStale||this.updateResult()},r))},mo=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,ae)):this.options.refetchInterval)??!1},bo=function(t){ce(this,ge,vo).call(this),W(this,kt,t),!(Dt||et(this.options.enabled,C(this,ae))===!1||!Zr(C(this,kt))||C(this,kt)===0)&&W(this,_t,setInterval(()=>{(this.options.refetchIntervalInBackground||Qr.isFocused())&&ce(this,ge,Un).call(this)},C(this,kt)))},yo=function(){ce(this,ge,go).call(this),ce(this,ge,bo).call(this,ce(this,ge,mo).call(this))},Io=function(){C(this,Yt)&&(clearTimeout(C(this,Yt)),W(this,Yt,void 0))},vo=function(){C(this,_t)&&(clearInterval(C(this,_t)),W(this,_t,void 0))},Co=function(){const t=C(this,ze).getQueryCache().build(C(this,ze),this.options);if(t===C(this,ae))return;const n=C(this,ae);W(this,ae,t),W(this,Wn,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},cl=function(t){ke.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,Ne))}),C(this,ze).getQueryCache().notify({query:C(this,ae),type:"observerResultsUpdated"})})},Qa);function Bl(e,t){return et(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function No(e,t){return Bl(e,t)||e.state.data!==void 0&&Kr(e,t,t.refetchOnMount)}function Kr(e,t,n){if(et(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&ei(e,t)}return!1}function Mo(e,t,n,r){return(e!==t||et(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&ei(e,n)}function ei(e,t){return et(t.enabled,e)!==!1&&e.isStaleByTime(nn(t.staleTime,e))}function Ol(e,t){return!Yr(e.getCurrentResult(),t)}var Lo=te.createContext(void 0),Tl=e=>{const t=te.useContext(Lo);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Vl=({client:e,children:t})=>(te.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),R.jsx(Lo.Provider,{value:e,children:t})),Xo=te.createContext(!1),Rl=()=>te.useContext(Xo);Xo.Provider;function Dl(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Nl=te.createContext(Dl()),Ml=()=>te.useContext(Nl);function Ll(e,t){return typeof e=="function"?e(...t):!!e}function zo(){}var Xl=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},zl=e=>{te.useEffect(()=>{e.clearReset()},[e])},Hl=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Ll(n,[e.error,r]),Wl=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},Zl=(e,t)=>e.isLoading&&e.isFetching&&!t,jl=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Ho=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Jl(e,t,n){var c,d,f,p,m;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=Tl(),i=Rl(),o=Ml(),s=r.defaultQueryOptions(e);(d=(c=r.getDefaultOptions().queries)==null?void 0:c._experimental_beforeQuery)==null||d.call(c,s),s._optimisticResults=i?"isRestoring":"optimistic",Wl(s),Xl(s,o),zl(o);const u=!r.getQueryCache().get(s.queryHash),[a]=te.useState(()=>new t(r,s)),l=a.getOptimisticResult(s);if(te.useSyncExternalStore(te.useCallback(g=>{const I=i?zo:a.subscribe(ke.batchCalls(g));return a.updateResult(),I},[a,i]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),te.useEffect(()=>{a.setOptions(s,{listeners:!1})},[s,a]),jl(s,l))throw Ho(s,a,o);if(Hl({result:l,errorResetBoundary:o,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw l.error;if((p=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||p.call(f,s,l),s.experimental_prefetchInRender&&!Dt&&Zl(l,i)){const g=u?Ho(s,a,o):(m=r.getQueryCache().get(s.queryHash))==null?void 0:m.promise;g==null||g.catch(zo).finally(()=>{a.updateResult()})}return s.notifyOnChangeProps?l:a.trackResult(l)}function Nt(e,t){return Jl(e,kl)}const Wo=B.createContext(void 0),gt=()=>{const e=B.useContext(Wo);if(!e)throw new Error("Must be used inside FrontendClientProvider");return e},Yl=({children:e,client:t})=>{const n=new Gl({defaultOptions:{queries:{staleTime:36e5,refetchOnWindowFocus:!1}}});return R.jsx(Vl,{client:n,children:R.jsx(Wo.Provider,{value:t,children:e})})};function ti(e){return typeof e=="object"&&e&&"__lv"in e?e.__lv.value:e}function _l(e){if(typeof e=="object"&&e&&"selectedOptions"in e&&Array.isArray(e.selectedOptions)){const t=e.selectedOptions,n=[];for(const r of t)if(typeof r=="object"&&r&&"emitValue"in r){const i=r.emitValue;typeof i=="object"&&i&&"__lv"in i?n.push(i.__lv.value):n.push(i)}else throw"unexpected value";return n}if(!Array.isArray(e))throw"unexpected value";return e}function Ul(e){const t=_l(e.value);if(!e.prop.default&&typeof t>"u")return["required"];if(!e.prop.default&&Array.isArray(t)&&!t.length)return["empty array"]}function Ql(e){const t=ti(e.value);if(t==null||typeof t>"u")return["required"]}function ql(e){const{prop:t,value:n}=e,r=ti(n);if(!t.default&&(r==null||typeof r>"u"))return["required"];const i=typeof r=="number"?r:parseInt(String(r));if(Number.isNaN(i))return["not a number"];const o=[];return typeof t.min=="number"&&i<t.min&&o.push("number too small"),typeof t.max=="number"&&i>t.max&&o.push("number too big"),o}function $l(e){const t=ti(e.value);if(!e.prop.default){if(typeof t>"u"||t==null)return["required"];if(!String(t).length)return["string must not be empty"]}}function Kl(e){const t=e.auth_type==="oauth",n=JSON.parse(e.custom_fields_json||"[]");if("extracted_custom_fields_names"in e&&e.extracted_custom_fields_names){const r=(e.extracted_custom_fields_names||[]).map(i=>({name:i}));n.push(...r)}return n.map(r=>({...r,optional:r.optional||t}))}function ec(e){const{app:t,value:n}=e;if(!t)return["app field not registered"];if(!n)return["no app configured"];if(typeof n!="object")return["not an app"];const r=n;if("authProvisionId"in r&&!r.authProvisionId&&t.auth_type){const i=[];if(t.auth_type==="oauth"&&!r.oauth_access_token&&i.push("missing oauth token"),t.auth_type==="oauth"||t.auth_type==="keys"){const o=Kl(t),s=r;for(const u of o)!u.optional&&!s[u.name]&&i.push(`missing custom field: ${u.name}`)}return t.auth_type!=="none"&&i.push("no auth provision configured"),i}}const ni=B.createContext(void 0),er=()=>{const e=B.useContext(ni);if(!e)throw new Error("Must be used inside provider");return e},Zo=({children:e,props:t})=>{const n=gt(),r=B.useId(),{component:i,configuredProps:o,propNames:s,userId:u}=t,a=i.key,[l,c]=B.useState(0),[d,f]=B.useState({}),[p,m]=B.useState(!1),[g,I]=B.useState({}),[v,E]=B.useState({});B.useEffect(()=>{E({})},[i]);const w=z=>v[z.name];let S=o||{};const[P,A]=B.useState(S),O=t.onUpdateConfiguredProps||A;t.onUpdateConfiguredProps||(S=P);const[k,V]=B.useState(),[Z,M]=B.useState(),D={userId:u,componentId:a,configuredProps:S,dynamicPropsId:k==null?void 0:k.id},{isFetching:re}=Nt({queryKey:["dynamicProps"],queryFn:async()=>{const{dynamicProps:z}=await n.componentReloadProps(D);return z&&V(z),M(void 0),[]},enabled:Z!=null}),[ue,J]=B.useState([]);B.useEffect(()=>{Ie()},[S]);let _=(k==null?void 0:k.configurableProps)||t.component.configurable_props||[];if(s!=null&&s.length){const z=[];for(const L of _)s.findIndex(U=>L.name===U)>=0&&z.push(L);_=z}Z!=null&&(_=_.slice(0,Z+1));const de=(z,L)=>{const U=[];if(z.optional||z.hidden||z.disabled)return[];if(z.type==="app"){const fe=d[z.name];if(fe){const Pe=fe.extra.app;U.push(...ec({prop:z,value:L,app:Pe})??[])}else U.push("field not registered")}else z.type==="boolean"?U.push(...Ql({prop:z,value:L})??[]):z.type==="integer"?U.push(...ql({prop:z,value:L})??[]):z.type==="string"?U.push(...$l({prop:z,value:L})??[]):z.type==="string[]"&&U.push(...Ul({prop:z,value:L})??[]);return U},me=z=>{let L;for(let U=0;U<_.length;U++){const fe=_[U];if(fe.hidden||fe.optional&&!w(fe))continue;if(z[fe.name]===void 0&&L==null&&(fe.type==="app"||fe.remoteOptions)){L=U;break}}c(L)},Ce=z=>{O(z),me(z);const L={};for(let U=0;U<_.length;U++){const fe=_[U],Pe=z[fe.name],Me=de(fe,Pe);Me.length&&(L[fe.name]=Me)}I(L)};B.useEffect(()=>{const z={};for(const L of _){if(L.hidden||L.optional&&!w(L))continue;const U=S[L.name];U===void 0?"default"in L&&L.default!=null&&(z[L.name]=L.default):L.type==="integer"&&typeof U!="number"?delete z[L.name]:z[L.name]=U}fl(z,S)||Ce(z)},[_]);const[y,Fe]=B.useState(u);B.useEffect(()=>{y!==u&&(Ce({}),Fe(u))},[u]);const le=(z,L)=>{const U=_[z],fe={...S};L===void 0?delete fe[U.name]:fe[U.name]=L,O(fe),U.reloadProps&&M(z),(U.type==="app"||U.remoteOptions)&&me(fe);const Pe=de(U,L),Me={...g};Pe.length?Me[U.name]=Pe:delete Me[U.name],I(Me)},b=(z,L)=>{const U={...v};L?U[z.name]=!0:delete U[z.name];const fe=_.findIndex(Pe=>Pe.name===z.name);L?"default"in z&&z.default!=null&&le(fe,z.default):le(fe,void 0),E(U)},Ie=()=>{const z=[];for(const L of _){if(!L||L.optional||L.hidden)continue;const U=S[L.name];de(L,U).length&&z.push(L.name)}J(z)},ee=z=>{f(L=>(L[z.prop.name]=z,L))},pe={id:r,isValid:!Object.keys(g).length,props:t,userId:u,component:i,configurableProps:_,configuredProps:S,dynamicProps:k,dynamicPropsQueryIsFetching:re,errors:g,fields:d,optionalPropIsEnabled:w,optionalPropSetEnabled:b,propsNeedConfiguring:ue,queryDisabledIdx:l,registerField:ee,setConfiguredProp:le,setSubmitting:m,submitting:p};return R.jsx(ni.Provider,{value:pe,children:e})};function Mt(e){"@babel/helpers - typeof";return Mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mt(e)}function tc(e,t){if(Mt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Mt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jo(e){var t=tc(e,"string");return Mt(t)=="symbol"?t:t+""}function kn(e,t,n){return(t=jo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jo(Object(n),!0).forEach(function(r){kn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jo(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nc(e){if(Array.isArray(e))return e}function rc(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,u=[],a=!0,l=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);a=!0);}catch(c){l=!0,i=c}finally{try{if(!a&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return u}}function ri(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Yo(e,t){if(e){if(typeof e=="string")return ri(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ri(e,t):void 0}}function ic(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1
|
+
(function(X,R){typeof exports=="object"&&typeof module<"u"?R(exports,require("react/jsx-runtime"),require("react"),require("@emotion/react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","@emotion/react","react-dom"],R):(X=typeof globalThis<"u"?globalThis:X||self,R(X["connect-react"]={},X["react/jsx-runtime"],X.React,X["@emotion/react"],X.ReactDOM))})(this,function(X,R,B,j,Wr){"use strict";var ll=X=>{throw TypeError(X)};var ho=(X,R,B)=>R.has(X)||ll("Cannot "+B);var C=(X,R,B)=>(ho(X,R,"read from private field"),B?B.call(X):R.get(X)),K=(X,R,B)=>R.has(X)?ll("Cannot add the same private member more than once"):R instanceof WeakSet?R.add(X):R.set(X,B),W=(X,R,B,j)=>(ho(X,R,"write to private field"),j?j.call(X,B):R.set(X,B),B),ce=(X,R,B)=>(ho(X,R,"access private method"),B);var Hr=(X,R,B,j)=>({set _(Wr){W(X,R,Wr,B)},get _(){return C(X,R,j)}});var Ht,St,dn,Ha,pn,wt,fn,Wa,Wt,Za,hn,gn,qe,Te,zn,Zt,tt,Ct,ja,lt,Ja,ct,De,jt,dt,Rt,Ya,Je,Hn,_a,Se,Et,Ft,mn,bn,Pt,yn,In,Ua,ze,ae,Wn,Ne,Jt,vn,Gt,pt,Zn,Cn,xn,Yt,_t,kt,An,ge,Un,go,mo,bo,yo,Io,vo,Co,cl,Qa;function dl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const te=dl(B);typeof document>"u"&&(globalThis.document={createElement:()=>{}});function xo({prop:e}){return R.jsx("p",{className:`pd-alert-${e.alertType}`,children:e.content})}var tn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ao(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qn={exports:{}};Qn.exports,function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,s=9007199254740991,u="[object Arguments]",a="[object Array]",l="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",m="[object GeneratorFunction]",g="[object Map]",I="[object Number]",v="[object Null]",E="[object Object]",w="[object Promise]",S="[object Proxy]",P="[object RegExp]",A="[object Set]",O="[object String]",k="[object Symbol]",V="[object Undefined]",Z="[object WeakMap]",M="[object ArrayBuffer]",D="[object DataView]",re="[object Float32Array]",ue="[object Float64Array]",J="[object Int8Array]",_="[object Int16Array]",de="[object Int32Array]",me="[object Uint8Array]",Ce="[object Uint8ClampedArray]",y="[object Uint16Array]",Fe="[object Uint32Array]",le=/[\\^$.*+?()[\]{}|]/g,b=/^\[object .+?Constructor\]$/,Ie=/^(?:0|[1-9]\d*)$/,ee={};ee[re]=ee[ue]=ee[J]=ee[_]=ee[de]=ee[me]=ee[Ce]=ee[y]=ee[Fe]=!0,ee[u]=ee[a]=ee[M]=ee[c]=ee[D]=ee[d]=ee[f]=ee[p]=ee[g]=ee[I]=ee[E]=ee[P]=ee[A]=ee[O]=ee[Z]=!1;var pe=typeof tn=="object"&&tn&&tn.Object===Object&&tn,z=typeof self=="object"&&self&&self.Object===Object&&self,L=pe||z||Function("return this")(),U=t&&!t.nodeType&&t,fe=U&&!0&&e&&!e.nodeType&&e,Pe=fe&&fe.exports===U,Me=Pe&&pe.process,Sn=function(){try{return Me&&Me.binding&&Me.binding("util")}catch{}}(),Ut=Sn&&Sn.isTypedArray;function wn(h,x){for(var G=-1,H=h==null?0:h.length,ve=0,ie=[];++G<H;){var we=h[G];x(we,G,h)&&(ie[ve++]=we)}return ie}function Or(h,x){for(var G=-1,H=x.length,ve=h.length;++G<H;)h[ve+G]=x[G];return h}function Tr(h,x){for(var G=-1,H=h==null?0:h.length;++G<H;)if(x(h[G],G,h))return!0;return!1}function to(h,x){for(var G=-1,H=Array(h);++G<h;)H[G]=x(G);return H}function Vr(h){return function(x){return h(x)}}function Rr(h,x){return h.has(x)}function no(h,x){return h==null?void 0:h[x]}function ro(h){var x=-1,G=Array(h.size);return h.forEach(function(H,ve){G[++x]=[ve,H]}),G}function io(h,x){return function(G){return h(x(G))}}function oo(h){var x=-1,G=Array(h.size);return h.forEach(function(H){G[++x]=H}),G}var so=Array.prototype,F=Function.prototype,N=Object.prototype,$=L["__core-js_shared__"],oe=F.toString,se=N.hasOwnProperty,He=function(){var h=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}(),ft=N.toString,nt=RegExp("^"+oe.call(se).replace(le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bt=Pe?L.Buffer:void 0,ht=L.Symbol,Ve=L.Uint8Array,yt=N.propertyIsEnumerable,rt=so.splice,Qt=ht?ht.toStringTag:void 0,qa=Object.getOwnPropertySymbols,Eb=Bt?Bt.isBuffer:void 0,Fb=io(Object.keys,Object),uo=En(L,"DataView"),jn=En(L,"Map"),ao=En(L,"Promise"),lo=En(L,"Set"),co=En(L,"WeakMap"),Jn=En(Object,"create"),Pb=Kt(uo),Gb=Kt(jn),kb=Kt(ao),Bb=Kt(lo),Ob=Kt(co),$a=ht?ht.prototype:void 0,po=$a?$a.valueOf:void 0;function qt(h){var x=-1,G=h==null?0:h.length;for(this.clear();++x<G;){var H=h[x];this.set(H[0],H[1])}}function Tb(){this.__data__=Jn?Jn(null):{},this.size=0}function Vb(h){var x=this.has(h)&&delete this.__data__[h];return this.size-=x?1:0,x}function Rb(h){var x=this.__data__;if(Jn){var G=x[h];return G===r?void 0:G}return se.call(x,h)?x[h]:void 0}function Db(h){var x=this.__data__;return Jn?x[h]!==void 0:se.call(x,h)}function Nb(h,x){var G=this.__data__;return this.size+=this.has(h)?0:1,G[h]=Jn&&x===void 0?r:x,this}qt.prototype.clear=Tb,qt.prototype.delete=Vb,qt.prototype.get=Rb,qt.prototype.has=Db,qt.prototype.set=Nb;function It(h){var x=-1,G=h==null?0:h.length;for(this.clear();++x<G;){var H=h[x];this.set(H[0],H[1])}}function Mb(){this.__data__=[],this.size=0}function Lb(h){var x=this.__data__,G=Nr(x,h);if(G<0)return!1;var H=x.length-1;return G==H?x.pop():rt.call(x,G,1),--this.size,!0}function Xb(h){var x=this.__data__,G=Nr(x,h);return G<0?void 0:x[G][1]}function zb(h){return Nr(this.__data__,h)>-1}function Hb(h,x){var G=this.__data__,H=Nr(G,h);return H<0?(++this.size,G.push([h,x])):G[H][1]=x,this}It.prototype.clear=Mb,It.prototype.delete=Lb,It.prototype.get=Xb,It.prototype.has=zb,It.prototype.set=Hb;function $t(h){var x=-1,G=h==null?0:h.length;for(this.clear();++x<G;){var H=h[x];this.set(H[0],H[1])}}function Wb(){this.size=0,this.__data__={hash:new qt,map:new(jn||It),string:new qt}}function Zb(h){var x=Mr(this,h).delete(h);return this.size-=x?1:0,x}function jb(h){return Mr(this,h).get(h)}function Jb(h){return Mr(this,h).has(h)}function Yb(h,x){var G=Mr(this,h),H=G.size;return G.set(h,x),this.size+=G.size==H?0:1,this}$t.prototype.clear=Wb,$t.prototype.delete=Zb,$t.prototype.get=jb,$t.prototype.has=Jb,$t.prototype.set=Yb;function Dr(h){var x=-1,G=h==null?0:h.length;for(this.__data__=new $t;++x<G;)this.add(h[x])}function _b(h){return this.__data__.set(h,r),this}function Ub(h){return this.__data__.has(h)}Dr.prototype.add=Dr.prototype.push=_b,Dr.prototype.has=Ub;function Ot(h){var x=this.__data__=new It(h);this.size=x.size}function Qb(){this.__data__=new It,this.size=0}function qb(h){var x=this.__data__,G=x.delete(h);return this.size=x.size,G}function $b(h){return this.__data__.get(h)}function Kb(h){return this.__data__.has(h)}function ey(h,x){var G=this.__data__;if(G instanceof It){var H=G.__data__;if(!jn||H.length<n-1)return H.push([h,x]),this.size=++G.size,this;G=this.__data__=new $t(H)}return G.set(h,x),this.size=G.size,this}Ot.prototype.clear=Qb,Ot.prototype.delete=qb,Ot.prototype.get=$b,Ot.prototype.has=Kb,Ot.prototype.set=ey;function ty(h,x){var G=Lr(h),H=!G&&my(h),ve=!G&&!H&&fo(h),ie=!G&&!H&&!ve&&ul(h),we=G||H||ve||ie,Ge=we?to(h.length,String):[],Be=Ge.length;for(var xe in h)se.call(h,xe)&&!(we&&(xe=="length"||ve&&(xe=="offset"||xe=="parent")||ie&&(xe=="buffer"||xe=="byteLength"||xe=="byteOffset")||dy(xe,Be)))&&Ge.push(xe);return Ge}function Nr(h,x){for(var G=h.length;G--;)if(rl(h[G][0],x))return G;return-1}function ny(h,x,G){var H=x(h);return Lr(h)?H:Or(H,G(h))}function Yn(h){return h==null?h===void 0?V:v:Qt&&Qt in Object(h)?ly(h):gy(h)}function Ka(h){return _n(h)&&Yn(h)==u}function el(h,x,G,H,ve){return h===x?!0:h==null||x==null||!_n(h)&&!_n(x)?h!==h&&x!==x:ry(h,x,G,H,el,ve)}function ry(h,x,G,H,ve,ie){var we=Lr(h),Ge=Lr(x),Be=we?a:Tt(h),xe=Ge?a:Tt(x);Be=Be==u?E:Be,xe=xe==u?E:xe;var Ye=Be==E,it=xe==E,Re=Be==xe;if(Re&&fo(h)){if(!fo(x))return!1;we=!0,Ye=!1}if(Re&&!Ye)return ie||(ie=new Ot),we||ul(h)?tl(h,x,G,H,ve,ie):uy(h,x,Be,G,H,ve,ie);if(!(G&i)){var $e=Ye&&se.call(h,"__wrapped__"),Ke=it&&se.call(x,"__wrapped__");if($e||Ke){var Vt=$e?h.value():h,vt=Ke?x.value():x;return ie||(ie=new Ot),ve(Vt,vt,G,H,ie)}}return Re?(ie||(ie=new Ot),ay(h,x,G,H,ve,ie)):!1}function iy(h){if(!sl(h)||fy(h))return!1;var x=il(h)?nt:b;return x.test(Kt(h))}function oy(h){return _n(h)&&ol(h.length)&&!!ee[Yn(h)]}function sy(h){if(!hy(h))return Fb(h);var x=[];for(var G in Object(h))se.call(h,G)&&G!="constructor"&&x.push(G);return x}function tl(h,x,G,H,ve,ie){var we=G&i,Ge=h.length,Be=x.length;if(Ge!=Be&&!(we&&Be>Ge))return!1;var xe=ie.get(h);if(xe&&ie.get(x))return xe==x;var Ye=-1,it=!0,Re=G&o?new Dr:void 0;for(ie.set(h,x),ie.set(x,h);++Ye<Ge;){var $e=h[Ye],Ke=x[Ye];if(H)var Vt=we?H(Ke,$e,Ye,x,h,ie):H($e,Ke,Ye,h,x,ie);if(Vt!==void 0){if(Vt)continue;it=!1;break}if(Re){if(!Tr(x,function(vt,en){if(!Rr(Re,en)&&($e===vt||ve($e,vt,G,H,ie)))return Re.push(en)})){it=!1;break}}else if(!($e===Ke||ve($e,Ke,G,H,ie))){it=!1;break}}return ie.delete(h),ie.delete(x),it}function uy(h,x,G,H,ve,ie,we){switch(G){case D:if(h.byteLength!=x.byteLength||h.byteOffset!=x.byteOffset)return!1;h=h.buffer,x=x.buffer;case M:return!(h.byteLength!=x.byteLength||!ie(new Ve(h),new Ve(x)));case c:case d:case I:return rl(+h,+x);case f:return h.name==x.name&&h.message==x.message;case P:case O:return h==x+"";case g:var Ge=ro;case A:var Be=H&i;if(Ge||(Ge=oo),h.size!=x.size&&!Be)return!1;var xe=we.get(h);if(xe)return xe==x;H|=o,we.set(h,x);var Ye=tl(Ge(h),Ge(x),H,ve,ie,we);return we.delete(h),Ye;case k:if(po)return po.call(h)==po.call(x)}return!1}function ay(h,x,G,H,ve,ie){var we=G&i,Ge=nl(h),Be=Ge.length,xe=nl(x),Ye=xe.length;if(Be!=Ye&&!we)return!1;for(var it=Be;it--;){var Re=Ge[it];if(!(we?Re in x:se.call(x,Re)))return!1}var $e=ie.get(h);if($e&&ie.get(x))return $e==x;var Ke=!0;ie.set(h,x),ie.set(x,h);for(var Vt=we;++it<Be;){Re=Ge[it];var vt=h[Re],en=x[Re];if(H)var al=we?H(en,vt,Re,x,h,ie):H(vt,en,Re,h,x,ie);if(!(al===void 0?vt===en||ve(vt,en,G,H,ie):al)){Ke=!1;break}Vt||(Vt=Re=="constructor")}if(Ke&&!Vt){var Xr=h.constructor,zr=x.constructor;Xr!=zr&&"constructor"in h&&"constructor"in x&&!(typeof Xr=="function"&&Xr instanceof Xr&&typeof zr=="function"&&zr instanceof zr)&&(Ke=!1)}return ie.delete(h),ie.delete(x),Ke}function nl(h){return ny(h,Iy,cy)}function Mr(h,x){var G=h.__data__;return py(x)?G[typeof x=="string"?"string":"hash"]:G.map}function En(h,x){var G=no(h,x);return iy(G)?G:void 0}function ly(h){var x=se.call(h,Qt),G=h[Qt];try{h[Qt]=void 0;var H=!0}catch{}var ve=ft.call(h);return H&&(x?h[Qt]=G:delete h[Qt]),ve}var cy=qa?function(h){return h==null?[]:(h=Object(h),wn(qa(h),function(x){return yt.call(h,x)}))}:vy,Tt=Yn;(uo&&Tt(new uo(new ArrayBuffer(1)))!=D||jn&&Tt(new jn)!=g||ao&&Tt(ao.resolve())!=w||lo&&Tt(new lo)!=A||co&&Tt(new co)!=Z)&&(Tt=function(h){var x=Yn(h),G=x==E?h.constructor:void 0,H=G?Kt(G):"";if(H)switch(H){case Pb:return D;case Gb:return g;case kb:return w;case Bb:return A;case Ob:return Z}return x});function dy(h,x){return x=x??s,!!x&&(typeof h=="number"||Ie.test(h))&&h>-1&&h%1==0&&h<x}function py(h){var x=typeof h;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?h!=="__proto__":h===null}function fy(h){return!!He&&He in h}function hy(h){var x=h&&h.constructor,G=typeof x=="function"&&x.prototype||N;return h===G}function gy(h){return ft.call(h)}function Kt(h){if(h!=null){try{return oe.call(h)}catch{}try{return h+""}catch{}}return""}function rl(h,x){return h===x||h!==h&&x!==x}var my=Ka(function(){return arguments}())?Ka:function(h){return _n(h)&&se.call(h,"callee")&&!yt.call(h,"callee")},Lr=Array.isArray;function by(h){return h!=null&&ol(h.length)&&!il(h)}var fo=Eb||Cy;function yy(h,x){return el(h,x)}function il(h){if(!sl(h))return!1;var x=Yn(h);return x==p||x==m||x==l||x==S}function ol(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=s}function sl(h){var x=typeof h;return h!=null&&(x=="object"||x=="function")}function _n(h){return h!=null&&typeof h=="object"}var ul=Ut?Vr(Ut):oy;function Iy(h){return by(h)?ty(h):sy(h)}function vy(){return[]}function Cy(){return!1}e.exports=yy}(Qn,Qn.exports);var pl=Qn.exports;const fl=Ao(pl);var Fn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Dt=typeof window>"u"||"Deno"in globalThis;function _e(){}function hl(e,t){return typeof e=="function"?e(t):e}function Zr(e){return typeof e=="number"&&e>=0&&e!==1/0}function So(e,t){return Math.max(e+(t||0)-Date.now(),0)}function nn(e,t){return typeof e=="function"?e(t):e}function et(e,t){return typeof e=="function"?e(t):e}function wo(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:u}=e;if(s){if(r){if(t.queryHash!==jr(s,t.options))return!1}else if(!Gn(t.queryKey,s))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||i&&i!==t.state.fetchStatus||o&&!o(t))}function Eo(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Pn(t.options.mutationKey)!==Pn(o))return!1}else if(!Gn(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function jr(e,t){return((t==null?void 0:t.queryKeyHashFn)||Pn)(e)}function Pn(e){return JSON.stringify(e,(t,n)=>_r(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Gn(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Gn(e[n],t[n])):!1}function Jr(e,t){if(e===t)return e;const n=Fo(e)&&Fo(t);if(n||_r(e)&&_r(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),s=o.length,u=n?[]:{};let a=0;for(let l=0;l<s;l++){const c=n?l:o[l];(!n&&r.includes(c)||n)&&e[c]===void 0&&t[c]===void 0?(u[c]=void 0,a++):(u[c]=Jr(e[c],t[c]),u[c]===e[c]&&e[c]!==void 0&&a++)}return i===s&&a===i?e:u}return t}function Yr(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Fo(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function _r(e){if(!Po(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Po(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Po(e){return Object.prototype.toString.call(e)==="[object Object]"}function gl(e){return new Promise(t=>{setTimeout(t,e)})}function Ur(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return Jr(e,t)}catch(r){console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`)}return Jr(e,t)}return t}function ml(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function bl(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var qn=Symbol();function Go(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===qn&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===qn?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var yl=(Ha=class extends Fn{constructor(){super();K(this,Ht);K(this,St);K(this,dn);W(this,dn,t=>{if(!Dt&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,St)||this.setEventListener(C(this,dn))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,St))==null||t.call(this),W(this,St,void 0))}setEventListener(t){var n;W(this,dn,t),(n=C(this,St))==null||n.call(this),W(this,St,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){C(this,Ht)!==t&&(W(this,Ht,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,Ht)=="boolean"?C(this,Ht):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ht=new WeakMap,St=new WeakMap,dn=new WeakMap,Ha),Qr=new yl,Il=(Wa=class extends Fn{constructor(){super();K(this,pn,!0);K(this,wt);K(this,fn);W(this,fn,t=>{if(!Dt&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,wt)||this.setEventListener(C(this,fn))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,wt))==null||t.call(this),W(this,wt,void 0))}setEventListener(t){var n;W(this,fn,t),(n=C(this,wt))==null||n.call(this),W(this,wt,t(this.setOnline.bind(this)))}setOnline(t){C(this,pn)!==t&&(W(this,pn,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return C(this,pn)}},pn=new WeakMap,wt=new WeakMap,fn=new WeakMap,Wa),$n=new Il;function qr(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function vl(e){return Math.min(1e3*2**e,3e4)}function ko(e){return(e??"online")==="online"?$n.isOnline():!0}var Bo=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function $r(e){return e instanceof Bo}function Oo(e){let t=!1,n=0,r=!1,i;const o=qr(),s=g=>{var I;r||(f(new Bo(g)),(I=e.abort)==null||I.call(e))},u=()=>{t=!0},a=()=>{t=!1},l=()=>Qr.isFocused()&&(e.networkMode==="always"||$n.isOnline())&&e.canRun(),c=()=>ko(e.networkMode)&&e.canRun(),d=g=>{var I;r||(r=!0,(I=e.onSuccess)==null||I.call(e,g),i==null||i(),o.resolve(g))},f=g=>{var I;r||(r=!0,(I=e.onError)==null||I.call(e,g),i==null||i(),o.reject(g))},p=()=>new Promise(g=>{var I;i=v=>{(r||l())&&g(v)},(I=e.onPause)==null||I.call(e)}).then(()=>{var g;i=void 0,r||(g=e.onContinue)==null||g.call(e)}),m=()=>{if(r)return;let g;const I=n===0?e.initialPromise:void 0;try{g=I??e.fn()}catch(v){g=Promise.reject(v)}Promise.resolve(g).then(d).catch(v=>{var A;if(r)return;const E=e.retry??(Dt?0:3),w=e.retryDelay??vl,S=typeof w=="function"?w(n,v):w,P=E===!0||typeof E=="number"&&n<E||typeof E=="function"&&E(n,v);if(t||!P){f(v);return}n++,(A=e.onFail)==null||A.call(e,n,v),gl(S).then(()=>l()?void 0:p()).then(()=>{t?f(v):m()})})};return{promise:o,cancel:s,continue:()=>(i==null||i(),o),cancelRetry:u,continueRetry:a,canStart:c,start:()=>(c()?m():p().then(m),o)}}function Cl(){let e=[],t=0,n=u=>{u()},r=u=>{u()},i=u=>setTimeout(u,0);const o=u=>{t?e.push(u):i(()=>{n(u)})},s=()=>{const u=e;e=[],u.length&&i(()=>{r(()=>{u.forEach(a=>{n(a)})})})};return{batch:u=>{let a;t++;try{a=u()}finally{t--,t||s()}return a},batchCalls:u=>(...a)=>{o(()=>{u(...a)})},schedule:o,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{i=u}}}var ke=Cl(),To=(Za=class{constructor(){K(this,Wt)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Zr(this.gcTime)&&W(this,Wt,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Dt?1/0:5*60*1e3))}clearGcTimeout(){C(this,Wt)&&(clearTimeout(C(this,Wt)),W(this,Wt,void 0))}},Wt=new WeakMap,Za),xl=(ja=class extends To{constructor(t){super();K(this,tt);K(this,hn);K(this,gn);K(this,qe);K(this,Te);K(this,zn);K(this,Zt);W(this,Zt,!1),W(this,zn,t.defaultOptions),this.setOptions(t.options),this.observers=[],W(this,qe,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,W(this,hn,Al(this.options)),this.state=t.state??C(this,hn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=C(this,Te))==null?void 0:t.promise}setOptions(t){this.options={...C(this,zn),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,qe).remove(this)}setData(t,n){const r=Ur(this.state.data,t,this.options);return ce(this,tt,Ct).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ce(this,tt,Ct).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=C(this,Te))==null?void 0:r.promise;return(i=C(this,Te))==null||i.cancel(t),n?n.then(_e).catch(_e):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,hn))}isActive(){return this.observers.some(t=>et(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===qn||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!So(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Te))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Te))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,qe).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,Te)&&(C(this,Zt)?C(this,Te).cancel({revert:!0}):C(this,Te).cancelRetry()),this.scheduleGc()),C(this,qe).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ce(this,tt,Ct).call(this,{type:"invalidate"})}fetch(t,n){var a,l,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,Te))return C(this,Te).continueRetry(),C(this,Te).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(W(this,Zt,!0),r.signal)})},o=()=>{const d=Go(this.options,n),f={queryKey:this.queryKey,meta:this.meta};return i(f),W(this,Zt,!1),this.options.persister?this.options.persister(d,f,this):d(f)},s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(s),(a=this.options.behavior)==null||a.onFetch(s,this),W(this,gn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=s.fetchOptions)==null?void 0:l.meta))&&ce(this,tt,Ct).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta});const u=d=>{var f,p,m,g;$r(d)&&d.silent||ce(this,tt,Ct).call(this,{type:"error",error:d}),$r(d)||((p=(f=C(this,qe).config).onError)==null||p.call(f,d,this),(g=(m=C(this,qe).config).onSettled)==null||g.call(m,this.state.data,d,this)),this.scheduleGc()};return W(this,Te,Oo({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var f,p,m,g;if(d===void 0){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(I){u(I);return}(p=(f=C(this,qe).config).onSuccess)==null||p.call(f,d,this),(g=(m=C(this,qe).config).onSettled)==null||g.call(m,d,this.state.error,this),this.scheduleGc()},onError:u,onFail:(d,f)=>{ce(this,tt,Ct).call(this,{type:"failed",failureCount:d,error:f})},onPause:()=>{ce(this,tt,Ct).call(this,{type:"pause"})},onContinue:()=>{ce(this,tt,Ct).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),C(this,Te).start()}},hn=new WeakMap,gn=new WeakMap,qe=new WeakMap,Te=new WeakMap,zn=new WeakMap,Zt=new WeakMap,tt=new WeakSet,Ct=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Vo(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return $r(i)&&i.revert&&C(this,gn)?{...C(this,gn),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ke.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,qe).notify({query:this,type:"updated",action:t})})},ja);function Vo(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ko(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Al(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Sl=(Ja=class extends Fn{constructor(t={}){super();K(this,lt);this.config=t,W(this,lt,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??jr(i,n);let s=this.get(o);return s||(s=new xl({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){C(this,lt).has(t.queryHash)||(C(this,lt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,lt).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,lt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ke.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,lt).get(t)}getAll(){return[...C(this,lt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>wo(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>wo(t,r)):n}notify(t){ke.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ke.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ke.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},lt=new WeakMap,Ja),wl=(Ya=class extends To{constructor(t){super();K(this,dt);K(this,ct);K(this,De);K(this,jt);this.mutationId=t.mutationId,W(this,De,t.mutationCache),W(this,ct,[]),this.state=t.state||El(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,ct).includes(t)||(C(this,ct).push(t),this.clearGcTimeout(),C(this,De).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){W(this,ct,C(this,ct).filter(n=>n!==t)),this.scheduleGc(),C(this,De).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,ct).length||(this.state.status==="pending"?this.scheduleGc():C(this,De).remove(this))}continue(){var t;return((t=C(this,jt))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,s,u,a,l,c,d,f,p,m,g,I,v,E,w,S,P,A,O;W(this,jt,Oo({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(k,V)=>{ce(this,dt,Rt).call(this,{type:"failed",failureCount:k,error:V})},onPause:()=>{ce(this,dt,Rt).call(this,{type:"pause"})},onContinue:()=>{ce(this,dt,Rt).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,De).canRun(this)}));const n=this.state.status==="pending",r=!C(this,jt).canStart();try{if(!n){ce(this,dt,Rt).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(i=C(this,De).config).onMutate)==null?void 0:o.call(i,t,this));const V=await((u=(s=this.options).onMutate)==null?void 0:u.call(s,t));V!==this.state.context&&ce(this,dt,Rt).call(this,{type:"pending",context:V,variables:t,isPaused:r})}const k=await C(this,jt).start();return await((l=(a=C(this,De).config).onSuccess)==null?void 0:l.call(a,k,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,k,t,this.state.context)),await((p=(f=C(this,De).config).onSettled)==null?void 0:p.call(f,k,null,this.state.variables,this.state.context,this)),await((g=(m=this.options).onSettled)==null?void 0:g.call(m,k,null,t,this.state.context)),ce(this,dt,Rt).call(this,{type:"success",data:k}),k}catch(k){try{throw await((v=(I=C(this,De).config).onError)==null?void 0:v.call(I,k,t,this.state.context,this)),await((w=(E=this.options).onError)==null?void 0:w.call(E,k,t,this.state.context)),await((P=(S=C(this,De).config).onSettled)==null?void 0:P.call(S,void 0,k,this.state.variables,this.state.context,this)),await((O=(A=this.options).onSettled)==null?void 0:O.call(A,void 0,k,t,this.state.context)),k}finally{ce(this,dt,Rt).call(this,{type:"error",error:k})}}finally{C(this,De).runNext(this)}}},ct=new WeakMap,De=new WeakMap,jt=new WeakMap,dt=new WeakSet,Rt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ke.batch(()=>{C(this,ct).forEach(r=>{r.onMutationUpdate(t)}),C(this,De).notify({mutation:this,type:"updated",action:t})})},Ya);function El(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Fl=(_a=class extends Fn{constructor(t={}){super();K(this,Je);K(this,Hn);this.config=t,W(this,Je,new Map),W(this,Hn,Date.now())}build(t,n,r){const i=new wl({mutationCache:this,mutationId:++Hr(this,Hn)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=Kn(t),r=C(this,Je).get(n)??[];r.push(t),C(this,Je).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Kn(t);if(C(this,Je).has(n)){const i=(r=C(this,Je).get(n))==null?void 0:r.filter(o=>o!==t);i&&(i.length===0?C(this,Je).delete(n):C(this,Je).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=C(this,Je).get(Kn(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=C(this,Je).get(Kn(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){ke.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...C(this,Je).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Eo(n,r))}findAll(t={}){return this.getAll().filter(n=>Eo(t,n))}notify(t){ke.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ke.batch(()=>Promise.all(t.map(n=>n.continue().catch(_e))))}},Je=new WeakMap,Hn=new WeakMap,_a);function Kn(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Ro(e){return{onFetch:(t,n)=>{var c,d,f,p,m;const r=t.options,i=(f=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,o=((p=t.state.data)==null?void 0:p.pages)||[],s=((m=t.state.data)==null?void 0:m.pageParams)||[];let u={pages:[],pageParams:[]},a=0;const l=async()=>{let g=!1;const I=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},v=Go(t.options,t.fetchOptions),E=async(w,S,P)=>{if(g)return Promise.reject();if(S==null&&w.pages.length)return Promise.resolve(w);const A={queryKey:t.queryKey,pageParam:S,direction:P?"backward":"forward",meta:t.options.meta};I(A);const O=await v(A),{maxPages:k}=t.options,V=P?bl:ml;return{pages:V(w.pages,O,k),pageParams:V(w.pageParams,S,k)}};if(i&&o.length){const w=i==="backward",S=w?Pl:Do,P={pages:o,pageParams:s},A=S(r,P);u=await E(P,A,w)}else{const w=e??o.length;do{const S=a===0?s[0]??r.initialPageParam:Do(r,u);if(a>0&&S==null)break;u=await E(u,S),a++}while(a<w)}return u};t.options.persister?t.fetchFn=()=>{var g,I;return(I=(g=t.options).persister)==null?void 0:I.call(g,l,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function Do(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Pl(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Gl=(Ua=class{constructor(e={}){K(this,Se);K(this,Et);K(this,Ft);K(this,mn);K(this,bn);K(this,Pt);K(this,yn);K(this,In);W(this,Se,e.queryCache||new Sl),W(this,Et,e.mutationCache||new Fl),W(this,Ft,e.defaultOptions||{}),W(this,mn,new Map),W(this,bn,new Map),W(this,Pt,0)}mount(){Hr(this,Pt)._++,C(this,Pt)===1&&(W(this,yn,Qr.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,Se).onFocus())})),W(this,In,$n.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,Se).onOnline())})))}unmount(){var e,t;Hr(this,Pt)._--,C(this,Pt)===0&&((e=C(this,yn))==null||e.call(this),W(this,yn,void 0),(t=C(this,In))==null||t.call(this),W(this,In,void 0))}isFetching(e){return C(this,Se).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,Et).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,Se).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=C(this,Se).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(nn(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return C(this,Se).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=C(this,Se).get(r.queryHash),o=i==null?void 0:i.state.data,s=hl(t,o);if(s!==void 0)return C(this,Se).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return ke.batch(()=>C(this,Se).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,Se).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,Se);ke.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,Se),r={type:"active",...e};return ke.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=ke.batch(()=>C(this,Se).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(_e).catch(_e)}invalidateQueries(e={},t={}){return ke.batch(()=>{if(C(this,Se).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=ke.batch(()=>C(this,Se).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(_e)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(_e)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,Se).build(this,t);return n.isStaleByTime(nn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(_e).catch(_e)}fetchInfiniteQuery(e){return e.behavior=Ro(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(_e).catch(_e)}ensureInfiniteQueryData(e){return e.behavior=Ro(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return $n.isOnline()?C(this,Et).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,Se)}getMutationCache(){return C(this,Et)}getDefaultOptions(){return C(this,Ft)}setDefaultOptions(e){W(this,Ft,e)}setQueryDefaults(e,t){C(this,mn).set(Pn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,mn).values()];let n={};return t.forEach(r=>{Gn(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){C(this,bn).set(Pn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,bn).values()];let n={};return t.forEach(r=>{Gn(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,Ft).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=jr(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===qn&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,Ft).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,Se).clear(),C(this,Et).clear()}},Se=new WeakMap,Et=new WeakMap,Ft=new WeakMap,mn=new WeakMap,bn=new WeakMap,Pt=new WeakMap,yn=new WeakMap,In=new WeakMap,Ua),kl=(Qa=class extends Fn{constructor(t,n){super();K(this,ge);K(this,ze);K(this,ae);K(this,Wn);K(this,Ne);K(this,Jt);K(this,vn);K(this,Gt);K(this,pt);K(this,Zn);K(this,Cn);K(this,xn);K(this,Yt);K(this,_t);K(this,kt);K(this,An,new Set);this.options=n,W(this,ze,t),W(this,pt,null),W(this,Gt,qr()),this.options.experimental_prefetchInRender||C(this,Gt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,ae).addObserver(this),No(C(this,ae),this.options)?ce(this,ge,Un).call(this):this.updateResult(),ce(this,ge,yo).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Kr(C(this,ae),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Kr(C(this,ae),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ce(this,ge,Io).call(this),ce(this,ge,vo).call(this),C(this,ae).removeObserver(this)}setOptions(t,n){const r=this.options,i=C(this,ae);if(this.options=C(this,ze).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof et(this.options.enabled,C(this,ae))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ce(this,ge,Co).call(this),C(this,ae).setOptions(this.options),r._defaulted&&!Yr(this.options,r)&&C(this,ze).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,ae),observer:this});const o=this.hasListeners();o&&Mo(C(this,ae),i,this.options,r)&&ce(this,ge,Un).call(this),this.updateResult(n),o&&(C(this,ae)!==i||et(this.options.enabled,C(this,ae))!==et(r.enabled,C(this,ae))||nn(this.options.staleTime,C(this,ae))!==nn(r.staleTime,C(this,ae)))&&ce(this,ge,go).call(this);const s=ce(this,ge,mo).call(this);o&&(C(this,ae)!==i||et(this.options.enabled,C(this,ae))!==et(r.enabled,C(this,ae))||s!==C(this,kt))&&ce(this,ge,bo).call(this,s)}getOptimisticResult(t){const n=C(this,ze).getQueryCache().build(C(this,ze),t),r=this.createResult(n,t);return Ol(this,r)&&(W(this,Ne,r),W(this,vn,this.options),W(this,Jt,C(this,ae).state)),r}getCurrentResult(){return C(this,Ne)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){C(this,An).add(t)}getCurrentQuery(){return C(this,ae)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,ze).defaultQueryOptions(t),r=C(this,ze).getQueryCache().build(C(this,ze),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return ce(this,ge,Un).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,Ne)))}createResult(t,n){var k;const r=C(this,ae),i=this.options,o=C(this,Ne),s=C(this,Jt),u=C(this,vn),l=t!==r?t.state:C(this,Wn),{state:c}=t;let d={...c},f=!1,p;if(n._optimisticResults){const V=this.hasListeners(),Z=!V&&No(t,n),M=V&&Mo(t,r,n,i);(Z||M)&&(d={...d,...Vo(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:m,errorUpdatedAt:g,status:I}=d;if(n.select&&d.data!==void 0)if(o&&d.data===(s==null?void 0:s.data)&&n.select===C(this,Zn))p=C(this,Cn);else try{W(this,Zn,n.select),p=n.select(d.data),p=Ur(o==null?void 0:o.data,p,n),W(this,Cn,p),W(this,pt,null)}catch(V){W(this,pt,V)}else p=d.data;if(n.placeholderData!==void 0&&p===void 0&&I==="pending"){let V;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData))V=o.data;else if(V=typeof n.placeholderData=="function"?n.placeholderData((k=C(this,xn))==null?void 0:k.state.data,C(this,xn)):n.placeholderData,n.select&&V!==void 0)try{V=n.select(V),W(this,pt,null)}catch(Z){W(this,pt,Z)}V!==void 0&&(I="success",p=Ur(o==null?void 0:o.data,V,n),f=!0)}C(this,pt)&&(m=C(this,pt),p=C(this,Cn),g=Date.now(),I="error");const v=d.fetchStatus==="fetching",E=I==="pending",w=I==="error",S=E&&v,P=p!==void 0,O={status:I,fetchStatus:d.fetchStatus,isPending:E,isSuccess:I==="success",isError:w,isInitialLoading:S,isLoading:S,data:p,dataUpdatedAt:d.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!E,isLoadingError:w&&!P,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:w&&P,isStale:ei(t,n),refetch:this.refetch,promise:C(this,Gt)};if(this.options.experimental_prefetchInRender){const V=D=>{O.status==="error"?D.reject(O.error):O.data!==void 0&&D.resolve(O.data)},Z=()=>{const D=W(this,Gt,O.promise=qr());V(D)},M=C(this,Gt);switch(M.status){case"pending":t.queryHash===r.queryHash&&V(M);break;case"fulfilled":(O.status==="error"||O.data!==M.value)&&Z();break;case"rejected":(O.status!=="error"||O.error!==M.reason)&&Z();break}}return O}updateResult(t){const n=C(this,Ne),r=this.createResult(C(this,ae),this.options);if(W(this,Jt,C(this,ae).state),W(this,vn,this.options),C(this,Jt).data!==void 0&&W(this,xn,C(this,ae)),Yr(r,n))return;W(this,Ne,r);const i={},o=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,u=typeof s=="function"?s():s;if(u==="all"||!u&&!C(this,An).size)return!0;const a=new Set(u??C(this,An));return this.options.throwOnError&&a.add("error"),Object.keys(C(this,Ne)).some(l=>{const c=l;return C(this,Ne)[c]!==n[c]&&a.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),ce(this,ge,cl).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ce(this,ge,yo).call(this)}},ze=new WeakMap,ae=new WeakMap,Wn=new WeakMap,Ne=new WeakMap,Jt=new WeakMap,vn=new WeakMap,Gt=new WeakMap,pt=new WeakMap,Zn=new WeakMap,Cn=new WeakMap,xn=new WeakMap,Yt=new WeakMap,_t=new WeakMap,kt=new WeakMap,An=new WeakMap,ge=new WeakSet,Un=function(t){ce(this,ge,Co).call(this);let n=C(this,ae).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(_e)),n},go=function(){ce(this,ge,Io).call(this);const t=nn(this.options.staleTime,C(this,ae));if(Dt||C(this,Ne).isStale||!Zr(t))return;const r=So(C(this,Ne).dataUpdatedAt,t)+1;W(this,Yt,setTimeout(()=>{C(this,Ne).isStale||this.updateResult()},r))},mo=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,ae)):this.options.refetchInterval)??!1},bo=function(t){ce(this,ge,vo).call(this),W(this,kt,t),!(Dt||et(this.options.enabled,C(this,ae))===!1||!Zr(C(this,kt))||C(this,kt)===0)&&W(this,_t,setInterval(()=>{(this.options.refetchIntervalInBackground||Qr.isFocused())&&ce(this,ge,Un).call(this)},C(this,kt)))},yo=function(){ce(this,ge,go).call(this),ce(this,ge,bo).call(this,ce(this,ge,mo).call(this))},Io=function(){C(this,Yt)&&(clearTimeout(C(this,Yt)),W(this,Yt,void 0))},vo=function(){C(this,_t)&&(clearInterval(C(this,_t)),W(this,_t,void 0))},Co=function(){const t=C(this,ze).getQueryCache().build(C(this,ze),this.options);if(t===C(this,ae))return;const n=C(this,ae);W(this,ae,t),W(this,Wn,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},cl=function(t){ke.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,Ne))}),C(this,ze).getQueryCache().notify({query:C(this,ae),type:"observerResultsUpdated"})})},Qa);function Bl(e,t){return et(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function No(e,t){return Bl(e,t)||e.state.data!==void 0&&Kr(e,t,t.refetchOnMount)}function Kr(e,t,n){if(et(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&ei(e,t)}return!1}function Mo(e,t,n,r){return(e!==t||et(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&ei(e,n)}function ei(e,t){return et(t.enabled,e)!==!1&&e.isStaleByTime(nn(t.staleTime,e))}function Ol(e,t){return!Yr(e.getCurrentResult(),t)}var Lo=te.createContext(void 0),Tl=e=>{const t=te.useContext(Lo);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Vl=({client:e,children:t})=>(te.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),R.jsx(Lo.Provider,{value:e,children:t})),Xo=te.createContext(!1),Rl=()=>te.useContext(Xo);Xo.Provider;function Dl(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Nl=te.createContext(Dl()),Ml=()=>te.useContext(Nl);function Ll(e,t){return typeof e=="function"?e(...t):!!e}function zo(){}var Xl=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},zl=e=>{te.useEffect(()=>{e.clearReset()},[e])},Hl=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Ll(n,[e.error,r]),Wl=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},Zl=(e,t)=>e.isLoading&&e.isFetching&&!t,jl=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Ho=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Jl(e,t,n){var c,d,f,p,m;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=Tl(),i=Rl(),o=Ml(),s=r.defaultQueryOptions(e);(d=(c=r.getDefaultOptions().queries)==null?void 0:c._experimental_beforeQuery)==null||d.call(c,s),s._optimisticResults=i?"isRestoring":"optimistic",Wl(s),Xl(s,o),zl(o);const u=!r.getQueryCache().get(s.queryHash),[a]=te.useState(()=>new t(r,s)),l=a.getOptimisticResult(s);if(te.useSyncExternalStore(te.useCallback(g=>{const I=i?zo:a.subscribe(ke.batchCalls(g));return a.updateResult(),I},[a,i]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),te.useEffect(()=>{a.setOptions(s,{listeners:!1})},[s,a]),jl(s,l))throw Ho(s,a,o);if(Hl({result:l,errorResetBoundary:o,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw l.error;if((p=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||p.call(f,s,l),s.experimental_prefetchInRender&&!Dt&&Zl(l,i)){const g=u?Ho(s,a,o):(m=r.getQueryCache().get(s.queryHash))==null?void 0:m.promise;g==null||g.catch(zo).finally(()=>{a.updateResult()})}return s.notifyOnChangeProps?l:a.trackResult(l)}function Nt(e,t){return Jl(e,kl)}const Wo=B.createContext(void 0),gt=()=>{const e=B.useContext(Wo);if(!e)throw new Error("Must be used inside FrontendClientProvider");return e},Yl=({children:e,client:t})=>{const n=new Gl({defaultOptions:{queries:{staleTime:36e5,refetchOnWindowFocus:!1}}});return R.jsx(Vl,{client:n,children:R.jsx(Wo.Provider,{value:t,children:e})})};function ti(e){return typeof e=="object"&&e&&"__lv"in e?e.__lv.value:e}function _l(e){if(typeof e=="object"&&e&&"selectedOptions"in e&&Array.isArray(e.selectedOptions)){const t=e.selectedOptions,n=[];for(const r of t)if(typeof r=="object"&&r&&"emitValue"in r){const i=r.emitValue;typeof i=="object"&&i&&"__lv"in i?n.push(i.__lv.value):n.push(i)}else return[];return n}return Array.isArray(e)?e:[]}function Ul(e){const t=_l(e.value);if(!e.prop.default&&typeof t>"u")return["required"];if(!e.prop.default&&Array.isArray(t)&&!t.length)return["empty array"]}function Ql(e){const t=ti(e.value);if(t==null||typeof t>"u")return["required"]}function ql(e){const{prop:t,value:n}=e,r=ti(n);if(!t.default&&(r==null||typeof r>"u"))return["required"];const i=typeof r=="number"?r:parseInt(String(r));if(Number.isNaN(i))return["not a number"];const o=[];return typeof t.min=="number"&&i<t.min&&o.push("number too small"),typeof t.max=="number"&&i>t.max&&o.push("number too big"),o}function $l(e){const t=ti(e.value);if(!e.prop.default){if(typeof t>"u"||t==null)return["required"];if(!String(t).length)return["string must not be empty"]}}function Kl(e){const t=e.auth_type==="oauth",n=JSON.parse(e.custom_fields_json||"[]");if("extracted_custom_fields_names"in e&&e.extracted_custom_fields_names){const r=(e.extracted_custom_fields_names||[]).map(i=>({name:i}));n.push(...r)}return n.map(r=>({...r,optional:r.optional||t}))}function ec(e){const{app:t,value:n}=e;if(!t)return["app field not registered"];if(!n)return["no app configured"];if(typeof n!="object")return["not an app"];const r=n;if("authProvisionId"in r&&!r.authProvisionId&&t.auth_type){const i=[];if(t.auth_type==="oauth"&&!r.oauth_access_token&&i.push("missing oauth token"),t.auth_type==="oauth"||t.auth_type==="keys"){const o=Kl(t),s=r;for(const u of o)!u.optional&&!s[u.name]&&i.push(`missing custom field: ${u.name}`)}return t.auth_type!=="none"&&i.push("no auth provision configured"),i}}const ni=B.createContext(void 0),er=()=>{const e=B.useContext(ni);if(!e)throw new Error("Must be used inside provider");return e},Zo=({children:e,props:t})=>{const n=gt(),r=B.useId(),{component:i,configuredProps:o,propNames:s,userId:u}=t,a=i.key,[l,c]=B.useState(0),[d,f]=B.useState({}),[p,m]=B.useState(!1),[g,I]=B.useState({}),[v,E]=B.useState({});B.useEffect(()=>{E({})},[i]);const w=z=>v[z.name];let S=o||{};const[P,A]=B.useState(S),O=t.onUpdateConfiguredProps||A;t.onUpdateConfiguredProps||(S=P);const[k,V]=B.useState(),[Z,M]=B.useState(),D={userId:u,componentId:a,configuredProps:S,dynamicPropsId:k==null?void 0:k.id},{isFetching:re}=Nt({queryKey:["dynamicProps"],queryFn:async()=>{const{dynamicProps:z}=await n.componentReloadProps(D);return z&&V(z),M(void 0),[]},enabled:Z!=null}),[ue,J]=B.useState([]);B.useEffect(()=>{Ie()},[S]);let _=(k==null?void 0:k.configurableProps)||t.component.configurable_props||[];if(s!=null&&s.length){const z=[];for(const L of _)s.findIndex(U=>L.name===U)>=0&&z.push(L);_=z}Z!=null&&(_=_.slice(0,Z+1));const de=(z,L)=>{const U=[];if(z.optional||z.hidden||z.disabled)return[];if(z.type==="app"){const fe=d[z.name];if(fe){const Pe=fe.extra.app;U.push(...ec({prop:z,value:L,app:Pe})??[])}else U.push("field not registered")}else z.type==="boolean"?U.push(...Ql({prop:z,value:L})??[]):z.type==="integer"?U.push(...ql({prop:z,value:L})??[]):z.type==="string"?U.push(...$l({prop:z,value:L})??[]):z.type==="string[]"&&U.push(...Ul({prop:z,value:L})??[]);return U},me=z=>{let L;for(let U=0;U<_.length;U++){const fe=_[U];if(fe.hidden||fe.optional&&!w(fe))continue;if(z[fe.name]===void 0&&L==null&&(fe.type==="app"||fe.remoteOptions)){L=U;break}}c(L)},Ce=z=>{O(z),me(z);const L={};for(let U=0;U<_.length;U++){const fe=_[U],Pe=z[fe.name],Me=de(fe,Pe);Me.length&&(L[fe.name]=Me)}I(L)};B.useEffect(()=>{const z={};for(const L of _){if(L.hidden||L.optional&&!w(L))continue;const U=S[L.name];U===void 0?"default"in L&&L.default!=null&&(z[L.name]=L.default):L.type==="integer"&&typeof U!="number"?delete z[L.name]:z[L.name]=U}fl(z,S)||Ce(z)},[_]);const[y,Fe]=B.useState(u);B.useEffect(()=>{y!==u&&(Ce({}),Fe(u))},[u]);const le=(z,L)=>{const U=_[z],fe={...S};L===void 0?delete fe[U.name]:fe[U.name]=L,O(fe),U.reloadProps&&M(z),(U.type==="app"||U.remoteOptions)&&me(fe);const Pe=de(U,L),Me={...g};Pe.length?Me[U.name]=Pe:delete Me[U.name],I(Me)},b=(z,L)=>{const U={...v};L?U[z.name]=!0:delete U[z.name];const fe=_.findIndex(Pe=>Pe.name===z.name);L?"default"in z&&z.default!=null&&le(fe,z.default):le(fe,void 0),E(U)},Ie=()=>{const z=[];for(const L of _){if(!L||L.optional||L.hidden)continue;const U=S[L.name];de(L,U).length&&z.push(L.name)}J(z)},ee=z=>{f(L=>(L[z.prop.name]=z,L))},pe={id:r,isValid:!Object.keys(g).length,props:t,userId:u,component:i,configurableProps:_,configuredProps:S,dynamicProps:k,dynamicPropsQueryIsFetching:re,errors:g,fields:d,optionalPropIsEnabled:w,optionalPropSetEnabled:b,propsNeedConfiguring:ue,queryDisabledIdx:l,registerField:ee,setConfiguredProp:le,setSubmitting:m,submitting:p};return R.jsx(ni.Provider,{value:pe,children:e})};function Mt(e){"@babel/helpers - typeof";return Mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mt(e)}function tc(e,t){if(Mt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Mt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jo(e){var t=tc(e,"string");return Mt(t)=="symbol"?t:t+""}function kn(e,t,n){return(t=jo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jo(Object(n),!0).forEach(function(r){kn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jo(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nc(e){if(Array.isArray(e))return e}function rc(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,u=[],a=!0,l=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);a=!0);}catch(c){l=!0,i=c}finally{try{if(!a&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return u}}function ri(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Yo(e,t){if(e){if(typeof e=="string")return ri(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ri(e,t):void 0}}function ic(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mt(e,t){return nc(e)||rc(e,t)||Yo(e,t)||ic()}function oc(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function ot(e,t){if(e==null)return{};var n,r,i=oc(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var sc=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function _o(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,o=e.defaultValue,s=o===void 0?null:o,u=e.inputValue,a=e.menuIsOpen,l=e.onChange,c=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,p=e.value,m=ot(e,sc),g=B.useState(u!==void 0?u:n),I=mt(g,2),v=I[0],E=I[1],w=B.useState(a!==void 0?a:i),S=mt(w,2),P=S[0],A=S[1],O=B.useState(p!==void 0?p:s),k=mt(O,2),V=k[0],Z=k[1],M=B.useCallback(function(me,Ce){typeof l=="function"&&l(me,Ce),Z(me)},[l]),D=B.useCallback(function(me,Ce){var y;typeof c=="function"&&(y=c(me,Ce)),E(y!==void 0?y:me)},[c]),re=B.useCallback(function(){typeof f=="function"&&f(),A(!0)},[f]),ue=B.useCallback(function(){typeof d=="function"&&d(),A(!1)},[d]),J=u!==void 0?u:v,_=a!==void 0?a:P,de=p!==void 0?p:V;return Y(Y({},m),{},{inputValue:J,menuIsOpen:_,onChange:M,onInputChange:D,onMenuClose:ue,onMenuOpen:re,value:de})}function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q.apply(null,arguments)}function uc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jo(r.key),r)}}function ac(e,t,n){return t&&Uo(e.prototype,t),n&&Uo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ii(e,t){return ii=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ii(e,t)}function lc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ii(e,t)}function tr(e){return tr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},tr(e)}function Qo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qo=function(){return!!e})()}function cc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dc(e,t){if(t&&(Mt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cc(e)}function pc(e){var t=Qo();return function(){var n,r=tr(e);if(t){var i=tr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return dc(this,n)}}function fc(e){if(Array.isArray(e))return ri(e)}function hc(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gc(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rn(e){return fc(e)||hc(e)||Yo(e)||gc()}function mc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const bc=Math.min,yc=Math.max,nr=Math.round,rr=Math.floor,ir=e=>({x:e,y:e});function Ic(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function or(){return typeof window<"u"}function qo(e){return Ko(e)?(e.nodeName||"").toLowerCase():"#document"}function bt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function $o(e){var t;return(t=(Ko(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ko(e){return or()?e instanceof Node||e instanceof bt(e).Node:!1}function vc(e){return or()?e instanceof Element||e instanceof bt(e).Element:!1}function oi(e){return or()?e instanceof HTMLElement||e instanceof bt(e).HTMLElement:!1}function es(e){return!or()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof bt(e).ShadowRoot}function ts(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=si(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Cc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function xc(e){return["html","body","#document"].includes(qo(e))}function si(e){return bt(e).getComputedStyle(e)}function Ac(e){if(qo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||es(e)&&e.host||$o(e);return es(t)?t.host:t}function ns(e){const t=Ac(e);return xc(t)?e.ownerDocument?e.ownerDocument.body:e.body:oi(t)&&ts(t)?t:ns(t)}function sr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=ns(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=bt(i);if(o){const u=ui(s);return t.concat(s,s.visualViewport||[],ts(i)?i:[],u&&n?sr(u):[])}return t.concat(i,sr(i,[],n))}function ui(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Sc(e){const t=si(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=oi(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,u=nr(n)!==o||nr(r)!==s;return u&&(n=o,r=s),{width:n,height:r,$:u}}function ai(e){return vc(e)?e:e.contextElement}function rs(e){const t=ai(e);if(!oi(t))return ir(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Sc(t);let s=(o?nr(n.width):n.width)/r,u=(o?nr(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!u||!Number.isFinite(u))&&(u=1),{x:s,y:u}}const wc=ir(0);function Ec(e){const t=bt(e);return!Cc()||!t.visualViewport?wc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Fc(e,t,n){return!1}function is(e,t,n,r){t===void 0&&(t=!1);const i=e.getBoundingClientRect(),o=ai(e);let s=ir(1);t&&(s=rs(e));const u=Fc()?Ec(o):ir(0);let a=(i.left+u.x)/s.x,l=(i.top+u.y)/s.y,c=i.width/s.x,d=i.height/s.y;if(o){const f=bt(o),p=r;let m=f,g=ui(m);for(;g&&r&&p!==m;){const I=rs(g),v=g.getBoundingClientRect(),E=si(g),w=v.left+(g.clientLeft+parseFloat(E.paddingLeft))*I.x,S=v.top+(g.clientTop+parseFloat(E.paddingTop))*I.y;a*=I.x,l*=I.y,c*=I.x,d*=I.y,a+=w,l+=S,m=bt(g),g=ui(m)}}return Ic({width:c,height:d,x:a,y:l})}function Pc(e,t){let n=null,r;const i=$o(e);function o(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function s(u,a){u===void 0&&(u=!1),a===void 0&&(a=1),o();const{left:l,top:c,width:d,height:f}=e.getBoundingClientRect();if(u||t(),!d||!f)return;const p=rr(c),m=rr(i.clientWidth-(l+d)),g=rr(i.clientHeight-(c+f)),I=rr(l),E={rootMargin:-p+"px "+-m+"px "+-g+"px "+-I+"px",threshold:yc(0,bc(1,a))||1};let w=!0;function S(P){const A=P[0].intersectionRatio;if(A!==a){if(!w)return s();A?s(!1,A):r=setTimeout(()=>{s(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(S,{...E,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,E)}n.observe(e)}return s(!0),o}function Gc(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,l=ai(e),c=i||o?[...l?sr(l):[],...sr(t)]:[];c.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),o&&v.addEventListener("resize",n)});const d=l&&u?Pc(l,n):null;let f=-1,p=null;s&&(p=new ResizeObserver(v=>{let[E]=v;E&&E.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(t)})),n()}),l&&!a&&p.observe(l),p.observe(t));let m,g=a?is(e):null;a&&I();function I(){const v=is(e);g&&(v.x!==g.x||v.y!==g.y||v.width!==g.width||v.height!==g.height)&&n(),g=v,m=requestAnimationFrame(I)}return n(),()=>{var v;c.forEach(E=>{i&&E.removeEventListener("scroll",n),o&&E.removeEventListener("resize",n)}),d==null||d(),(v=p)==null||v.disconnect(),p=null,a&&cancelAnimationFrame(m)}}var li=B.useLayoutEffect,kc=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],ur=function(){};function Bc(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Oc(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var s in t)t.hasOwnProperty(s)&&t[s]&&o.push("".concat(Bc(e,s)));return o.filter(function(u){return u}).map(function(u){return String(u).trim()}).join(" ")}var ar=function(t){return zc(t)?t.filter(Boolean):Mt(t)==="object"&&t!==null?[t]:[]},os=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=ot(t,kc);return Y({},n)},Ae=function(t,n,r){var i=t.cx,o=t.getStyles,s=t.getClassNames,u=t.className;return{css:o(n,t),className:i(r??{},s(n,t),u)}};function lr(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Tc(e){return lr(e)?window.innerHeight:e.clientHeight}function ss(e){return lr(e)?window.pageYOffset:e.scrollTop}function cr(e,t){if(lr(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Vc(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function Rc(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function dr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:ur,i=ss(e),o=t-i,s=10,u=0;function a(){u+=s;var l=Rc(u,i,o,n);cr(e,l),u<n?window.requestAnimationFrame(a):r(e)}a()}function us(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?cr(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&cr(e,Math.max(t.offsetTop-i,0))}function Dc(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function as(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Nc(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var ls=!1,Mc={get passive(){return ls=!0}},pr=typeof window<"u"?window:{};pr.addEventListener&&pr.removeEventListener&&(pr.addEventListener("p",ur,Mc),pr.removeEventListener("p",ur,!1));var Lc=ls;function Xc(e){return e!=null}function zc(e){return Array.isArray(e)}function Bn(e,t,n){return e?t:n}function xy(e){return e}function Ay(e){return e}var Hc=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=Object.entries(t).filter(function(s){var u=mt(s,1),a=u[0];return!r.includes(a)});return o.reduce(function(s,u){var a=mt(u,2),l=a[0],c=a[1];return s[l]=c,s},{})},Wc=["children","innerProps"],Zc=["children","innerProps"];function jc(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,s=e.isFixedPosition,u=e.controlHeight,a=Vc(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c=a.getBoundingClientRect(),d=c.height,f=n.getBoundingClientRect(),p=f.bottom,m=f.height,g=f.top,I=n.offsetParent.getBoundingClientRect(),v=I.top,E=s?window.innerHeight:Tc(a),w=ss(a),S=parseInt(getComputedStyle(n).marginBottom,10),P=parseInt(getComputedStyle(n).marginTop,10),A=v-P,O=E-g,k=A+w,V=d-w-g,Z=p-E+w+S,M=w+g-P,D=160;switch(i){case"auto":case"bottom":if(O>=m)return{placement:"bottom",maxHeight:t};if(V>=m&&!s)return o&&dr(a,Z,D),{placement:"bottom",maxHeight:t};if(!s&&V>=r||s&&O>=r){o&&dr(a,Z,D);var re=s?O-S:V-S;return{placement:"bottom",maxHeight:re}}if(i==="auto"||s){var ue=t,J=s?A:k;return J>=r&&(ue=Math.min(J-S-u,t)),{placement:"top",maxHeight:ue}}if(i==="bottom")return o&&cr(a,Z),{placement:"bottom",maxHeight:t};break;case"top":if(A>=m)return{placement:"top",maxHeight:t};if(k>=m&&!s)return o&&dr(a,M,D),{placement:"top",maxHeight:t};if(!s&&k>=r||s&&A>=r){var _=t;return(!s&&k>=r||s&&A>=r)&&(_=s?A-P:k-P),o&&dr(a,M,D),{placement:"top",maxHeight:_}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return l}function Jc(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var cs=function(t){return t==="auto"?"bottom":t},Yc=function(t,n){var r,i=t.placement,o=t.theme,s=o.borderRadius,u=o.spacing,a=o.colors;return Y((r={label:"menu"},kn(r,Jc(i),"100%"),kn(r,"position","absolute"),kn(r,"width","100%"),kn(r,"zIndex",1),r),n?{}:{backgroundColor:a.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:u.menuGutter,marginTop:u.menuGutter})},ds=B.createContext(null),_c=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,s=t.menuPosition,u=t.menuShouldScrollIntoView,a=t.theme,l=B.useContext(ds)||{},c=l.setPortalPlacement,d=B.useRef(null),f=B.useState(i),p=mt(f,2),m=p[0],g=p[1],I=B.useState(null),v=mt(I,2),E=v[0],w=v[1],S=a.spacing.controlHeight;return li(function(){var P=d.current;if(P){var A=s==="fixed",O=u&&!A,k=jc({maxHeight:i,menuEl:P,minHeight:r,placement:o,shouldScroll:O,isFixedPosition:A,controlHeight:S});g(k.maxHeight),w(k.placement),c==null||c(k.placement)}},[i,o,s,u,r,c,S]),n({ref:d,placerProps:Y(Y({},t),{},{placement:E||cs(o),maxHeight:m})})},Uc=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return j.jsx("div",Q({},Ae(t,"menu",{menu:!0}),{ref:r},i),n)},Qc=Uc,qc=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return Y({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},$c=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,o=t.isMulti;return j.jsx("div",Q({},Ae(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},ps=function(t,n){var r=t.theme,i=r.spacing.baseUnit,o=r.colors;return Y({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},Kc=ps,ed=ps,td=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,o=ot(t,Wc);return j.jsx("div",Q({},Ae(Y(Y({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},nd=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,o=ot(t,Zc);return j.jsx("div",Q({},Ae(Y(Y({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},rd=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},id=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,o=t.innerProps,s=t.menuPlacement,u=t.menuPosition,a=B.useRef(null),l=B.useRef(null),c=B.useState(cs(s)),d=mt(c,2),f=d[0],p=d[1],m=B.useMemo(function(){return{setPortalPlacement:p}},[]),g=B.useState(null),I=mt(g,2),v=I[0],E=I[1],w=B.useCallback(function(){if(i){var O=Dc(i),k=u==="fixed"?0:window.pageYOffset,V=O[f]+k;(V!==(v==null?void 0:v.offset)||O.left!==(v==null?void 0:v.rect.left)||O.width!==(v==null?void 0:v.rect.width))&&E({offset:V,rect:O})}},[i,u,f,v==null?void 0:v.offset,v==null?void 0:v.rect.left,v==null?void 0:v.rect.width]);li(function(){w()},[w]);var S=B.useCallback(function(){typeof l.current=="function"&&(l.current(),l.current=null),i&&a.current&&(l.current=Gc(i,a.current,w,{elementResize:"ResizeObserver"in window}))},[i,w]);li(function(){S()},[S]);var P=B.useCallback(function(O){a.current=O,S()},[S]);if(!n&&u!=="fixed"||!v)return null;var A=j.jsx("div",Q({ref:P},Ae(Y(Y({},t),{},{offset:v.offset,position:u,rect:v.rect}),"menuPortal",{"menu-portal":!0}),o),r);return j.jsx(ds.Provider,{value:m},n?Wr.createPortal(A,n):A)},od=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},sd=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,o=t.isRtl;return j.jsx("div",Q({},Ae(t,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},ud=function(t,n){var r=t.theme.spacing,i=t.isMulti,o=t.hasValue,s=t.selectProps.controlShouldRenderValue;return Y({alignItems:"center",display:i&&o&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},ad=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,o=t.hasValue;return j.jsx("div",Q({},Ae(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},ld=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},cd=function(t){var n=t.children,r=t.innerProps;return j.jsx("div",Q({},Ae(t,"indicatorsContainer",{indicators:!0}),r),n)},fs,dd=["size"],pd=["innerProps","isRtl","size"];function fd(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var hd=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc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dyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:fd},hs=function(t){var n=t.size,r=ot(t,dd);return j.jsx("svg",Q({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:hd},r))},ci=function(t){return j.jsx(hs,Q({size:20},t),j.jsx("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},gs=function(t){return j.jsx(hs,Q({size:20},t),j.jsx("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},ms=function(t,n){var r=t.isFocused,i=t.theme,o=i.spacing.baseUnit,s=i.colors;return Y({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?s.neutral60:s.neutral20,padding:o*2,":hover":{color:r?s.neutral80:s.neutral40}})},gd=ms,md=function(t){var n=t.children,r=t.innerProps;return j.jsx("div",Q({},Ae(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||j.jsx(gs,null))},bd=ms,yd=function(t){var n=t.children,r=t.innerProps;return j.jsx("div",Q({},Ae(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||j.jsx(ci,null))},Id=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing.baseUnit,s=i.colors;return Y({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?s.neutral10:s.neutral20,marginBottom:o*2,marginTop:o*2})},vd=function(t){var n=t.innerProps;return j.jsx("span",Q({},n,Ae(t,"indicatorSeparator",{"indicator-separator":!0})))},Cd=j.keyframes(fs||(fs=mc([`
|
|
4
4
|
0%, 80%, 100% { opacity: 0; }
|