@pipedream/connect-react 1.0.0-preview.20 → 1.0.0-preview.21
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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(X,T){typeof exports=="object"&&typeof module<"u"?T(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"],T):(X=typeof globalThis<"u"?globalThis:X||self,T(X["connect-react"]={},X["react/jsx-runtime"],X.React,X["@emotion/react"],X.ReactDOM))})(this,function(X,T,G,J,Zr){"use strict";var dl=X=>{throw TypeError(X)};var ho=(X,T,G)=>T.has(X)||dl("Cannot "+G);var C=(X,T,G)=>(ho(X,T,"read from private field"),G?G.call(X):T.get(X)),ee=(X,T,G)=>T.has(X)?dl("Cannot add the same private member more than once"):T instanceof WeakSet?T.add(X):T.set(X,G),Z=(X,T,G,J)=>(ho(X,T,"write to private field"),J?J.call(X,G):T.set(X,G),G),pe=(X,T,G)=>(ho(X,T,"access private method"),G);var Wr=(X,T,G,J)=>({set _(Zr){Z(X,T,Zr,G)},get _(){return C(X,T,J)}});var Wt,wt,pn,Za,fn,Et,hn,ja,Zt,Ja,gn,mn,$e,Ve,Wn,jt,nt,xt,Ya,ct,_a,dt,Ne,Jt,pt,Dt,Ua,Je,Zn,Qa,we,Ft,Pt,bn,yn,kt,In,vn,qa,He,de,jn,Me,Yt,Cn,Gt,ft,Jn,xn,An,_t,Ut,Bt,Sn,be,qn,go,mo,bo,yo,Io,vo,Co,pl,$a;function fl(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 re=fl(G);typeof document>"u"&&(globalThis.document={createElement:()=>{}});function xo({prop:e}){return T.jsx("p",{className:`pd-alert-${e.alertType}`,children:e.content})}var nn=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 $n={exports:{}};$n.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]",I="[object GeneratorFunction]",g="[object Map]",v="[object Number]",b="[object Null]",w="[object Object]",A="[object Promise]",E="[object Proxy]",P="[object RegExp]",S="[object Set]",O="[object String]",B="[object Symbol]",D="[object Undefined]",j="[object WeakMap]",L="[object ArrayBuffer]",R="[object DataView]",te="[object Float32Array]",se="[object Float64Array]",z="[object Int8Array]",U="[object Int16Array]",Q="[object Int32Array]",ce="[object Uint8Array]",ye="[object Uint8ClampedArray]",y="[object Uint16Array]",xe="[object Uint32Array]",le=/[\\^$.*+?()[\]{}|]/g,m=/^\[object .+?Constructor\]$/,me=/^(?:0|[1-9]\d*)$/,ne={};ne[te]=ne[se]=ne[z]=ne[U]=ne[Q]=ne[ce]=ne[ye]=ne[y]=ne[xe]=!0,ne[u]=ne[a]=ne[L]=ne[c]=ne[R]=ne[d]=ne[f]=ne[p]=ne[g]=ne[v]=ne[w]=ne[P]=ne[S]=ne[O]=ne[j]=!1;var fe=typeof nn=="object"&&nn&&nn.Object===Object&&nn,Pe=typeof self=="object"&&self&&self.Object===Object&&self,M=fe||Pe||Function("return this")(),W=t&&!t.nodeType&&t,q=W&&!0&&e&&!e.nodeType&&e,he=q&&q.exports===W,ke=he&&fe.process,Ye=function(){try{return ke&&ke.binding&&ke.binding("util")}catch{}}(),Qt=Ye&&Ye.isTypedArray;function wn(h,x){for(var k=-1,H=h==null?0:h.length,Ce=0,oe=[];++k<H;){var Ee=h[k];x(Ee,k,h)&&(oe[Ce++]=Ee)}return oe}function Tr(h,x){for(var k=-1,H=x.length,Ce=h.length;++k<H;)h[Ce+k]=x[k];return h}function Vr(h,x){for(var k=-1,H=h==null?0:h.length;++k<H;)if(x(h[k],k,h))return!0;return!1}function to(h,x){for(var k=-1,H=Array(h);++k<h;)H[k]=x(k);return H}function Rr(h){return function(x){return h(x)}}function Dr(h,x){return h.has(x)}function no(h,x){return h==null?void 0:h[x]}function ro(h){var x=-1,k=Array(h.size);return h.forEach(function(H,Ce){k[++x]=[Ce,H]}),k}function io(h,x){return function(k){return h(x(k))}}function oo(h){var x=-1,k=Array(h.size);return h.forEach(function(H){k[++x]=H}),k}var so=Array.prototype,F=Function.prototype,N=Object.prototype,K=M["__core-js_shared__"],ue=F.toString,ae=N.hasOwnProperty,We=function(){var h=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}(),ht=N.toString,rt=RegExp("^"+ue.call(ae).replace(le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ot=he?M.Buffer:void 0,gt=M.Symbol,Re=M.Uint8Array,It=N.propertyIsEnumerable,it=so.splice,qt=gt?gt.toStringTag:void 0,Ka=Object.getOwnPropertySymbols,Pb=Ot?Ot.isBuffer:void 0,kb=io(Object.keys,Object),uo=En(M,"DataView"),Yn=En(M,"Map"),ao=En(M,"Promise"),lo=En(M,"Set"),co=En(M,"WeakMap"),_n=En(Object,"create"),Gb=en(uo),Bb=en(Yn),Ob=en(ao),Tb=en(lo),Vb=en(co),el=gt?gt.prototype:void 0,po=el?el.valueOf:void 0;function $t(h){var x=-1,k=h==null?0:h.length;for(this.clear();++x<k;){var H=h[x];this.set(H[0],H[1])}}function Rb(){this.__data__=_n?_n(null):{},this.size=0}function Db(h){var x=this.has(h)&&delete this.__data__[h];return this.size-=x?1:0,x}function Nb(h){var x=this.__data__;if(_n){var k=x[h];return k===r?void 0:k}return ae.call(x,h)?x[h]:void 0}function Mb(h){var x=this.__data__;return _n?x[h]!==void 0:ae.call(x,h)}function Lb(h,x){var k=this.__data__;return this.size+=this.has(h)?0:1,k[h]=_n&&x===void 0?r:x,this}$t.prototype.clear=Rb,$t.prototype.delete=Db,$t.prototype.get=Nb,$t.prototype.has=Mb,$t.prototype.set=Lb;function vt(h){var x=-1,k=h==null?0:h.length;for(this.clear();++x<k;){var H=h[x];this.set(H[0],H[1])}}function Xb(){this.__data__=[],this.size=0}function zb(h){var x=this.__data__,k=Mr(x,h);if(k<0)return!1;var H=x.length-1;return k==H?x.pop():it.call(x,k,1),--this.size,!0}function Hb(h){var x=this.__data__,k=Mr(x,h);return k<0?void 0:x[k][1]}function Wb(h){return Mr(this.__data__,h)>-1}function Zb(h,x){var k=this.__data__,H=Mr(k,h);return H<0?(++this.size,k.push([h,x])):k[H][1]=x,this}vt.prototype.clear=Xb,vt.prototype.delete=zb,vt.prototype.get=Hb,vt.prototype.has=Wb,vt.prototype.set=Zb;function Kt(h){var x=-1,k=h==null?0:h.length;for(this.clear();++x<k;){var H=h[x];this.set(H[0],H[1])}}function jb(){this.size=0,this.__data__={hash:new $t,map:new(Yn||vt),string:new $t}}function Jb(h){var x=Lr(this,h).delete(h);return this.size-=x?1:0,x}function Yb(h){return Lr(this,h).get(h)}function _b(h){return Lr(this,h).has(h)}function Ub(h,x){var k=Lr(this,h),H=k.size;return k.set(h,x),this.size+=k.size==H?0:1,this}Kt.prototype.clear=jb,Kt.prototype.delete=Jb,Kt.prototype.get=Yb,Kt.prototype.has=_b,Kt.prototype.set=Ub;function Nr(h){var x=-1,k=h==null?0:h.length;for(this.__data__=new Kt;++x<k;)this.add(h[x])}function Qb(h){return this.__data__.set(h,r),this}function qb(h){return this.__data__.has(h)}Nr.prototype.add=Nr.prototype.push=Qb,Nr.prototype.has=qb;function Tt(h){var x=this.__data__=new vt(h);this.size=x.size}function $b(){this.__data__=new vt,this.size=0}function Kb(h){var x=this.__data__,k=x.delete(h);return this.size=x.size,k}function ey(h){return this.__data__.get(h)}function ty(h){return this.__data__.has(h)}function ny(h,x){var k=this.__data__;if(k instanceof vt){var H=k.__data__;if(!Yn||H.length<n-1)return H.push([h,x]),this.size=++k.size,this;k=this.__data__=new Kt(H)}return k.set(h,x),this.size=k.size,this}Tt.prototype.clear=$b,Tt.prototype.delete=Kb,Tt.prototype.get=ey,Tt.prototype.has=ty,Tt.prototype.set=ny;function ry(h,x){var k=Xr(h),H=!k&&yy(h),Ce=!k&&!H&&fo(h),oe=!k&&!H&&!Ce&&ll(h),Ee=k||H||Ce||oe,Ge=Ee?to(h.length,String):[],Oe=Ge.length;for(var Ae in h)ae.call(h,Ae)&&!(Ee&&(Ae=="length"||Ce&&(Ae=="offset"||Ae=="parent")||oe&&(Ae=="buffer"||Ae=="byteLength"||Ae=="byteOffset")||fy(Ae,Oe)))&&Ge.push(Ae);return Ge}function Mr(h,x){for(var k=h.length;k--;)if(ol(h[k][0],x))return k;return-1}function iy(h,x,k){var H=x(h);return Xr(h)?H:Tr(H,k(h))}function Un(h){return h==null?h===void 0?D:b:qt&&qt in Object(h)?dy(h):by(h)}function tl(h){return Qn(h)&&Un(h)==u}function nl(h,x,k,H,Ce){return h===x?!0:h==null||x==null||!Qn(h)&&!Qn(x)?h!==h&&x!==x:oy(h,x,k,H,nl,Ce)}function oy(h,x,k,H,Ce,oe){var Ee=Xr(h),Ge=Xr(x),Oe=Ee?a:Vt(h),Ae=Ge?a:Vt(x);Oe=Oe==u?w:Oe,Ae=Ae==u?w:Ae;var _e=Oe==w,ot=Ae==w,De=Oe==Ae;if(De&&fo(h)){if(!fo(x))return!1;Ee=!0,_e=!1}if(De&&!_e)return oe||(oe=new Tt),Ee||ll(h)?rl(h,x,k,H,Ce,oe):ly(h,x,Oe,k,H,Ce,oe);if(!(k&i)){var Ke=_e&&ae.call(h,"__wrapped__"),et=ot&&ae.call(x,"__wrapped__");if(Ke||et){var Rt=Ke?h.value():h,Ct=et?x.value():x;return oe||(oe=new Tt),Ce(Rt,Ct,k,H,oe)}}return De?(oe||(oe=new Tt),cy(h,x,k,H,Ce,oe)):!1}function sy(h){if(!al(h)||gy(h))return!1;var x=sl(h)?rt:m;return x.test(en(h))}function uy(h){return Qn(h)&&ul(h.length)&&!!ne[Un(h)]}function ay(h){if(!my(h))return kb(h);var x=[];for(var k in Object(h))ae.call(h,k)&&k!="constructor"&&x.push(k);return x}function rl(h,x,k,H,Ce,oe){var Ee=k&i,Ge=h.length,Oe=x.length;if(Ge!=Oe&&!(Ee&&Oe>Ge))return!1;var Ae=oe.get(h);if(Ae&&oe.get(x))return Ae==x;var _e=-1,ot=!0,De=k&o?new Nr:void 0;for(oe.set(h,x),oe.set(x,h);++_e<Ge;){var Ke=h[_e],et=x[_e];if(H)var Rt=Ee?H(et,Ke,_e,x,h,oe):H(Ke,et,_e,h,x,oe);if(Rt!==void 0){if(Rt)continue;ot=!1;break}if(De){if(!Vr(x,function(Ct,tn){if(!Dr(De,tn)&&(Ke===Ct||Ce(Ke,Ct,k,H,oe)))return De.push(tn)})){ot=!1;break}}else if(!(Ke===et||Ce(Ke,et,k,H,oe))){ot=!1;break}}return oe.delete(h),oe.delete(x),ot}function ly(h,x,k,H,Ce,oe,Ee){switch(k){case R:if(h.byteLength!=x.byteLength||h.byteOffset!=x.byteOffset)return!1;h=h.buffer,x=x.buffer;case L:return!(h.byteLength!=x.byteLength||!oe(new Re(h),new Re(x)));case c:case d:case v:return ol(+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 S:var Oe=H&i;if(Ge||(Ge=oo),h.size!=x.size&&!Oe)return!1;var Ae=Ee.get(h);if(Ae)return Ae==x;H|=o,Ee.set(h,x);var _e=rl(Ge(h),Ge(x),H,Ce,oe,Ee);return Ee.delete(h),_e;case B:if(po)return po.call(h)==po.call(x)}return!1}function cy(h,x,k,H,Ce,oe){var Ee=k&i,Ge=il(h),Oe=Ge.length,Ae=il(x),_e=Ae.length;if(Oe!=_e&&!Ee)return!1;for(var ot=Oe;ot--;){var De=Ge[ot];if(!(Ee?De in x:ae.call(x,De)))return!1}var Ke=oe.get(h);if(Ke&&oe.get(x))return Ke==x;var et=!0;oe.set(h,x),oe.set(x,h);for(var Rt=Ee;++ot<Oe;){De=Ge[ot];var Ct=h[De],tn=x[De];if(H)var cl=Ee?H(tn,Ct,De,x,h,oe):H(Ct,tn,De,h,x,oe);if(!(cl===void 0?Ct===tn||Ce(Ct,tn,k,H,oe):cl)){et=!1;break}Rt||(Rt=De=="constructor")}if(et&&!Rt){var zr=h.constructor,Hr=x.constructor;zr!=Hr&&"constructor"in h&&"constructor"in x&&!(typeof zr=="function"&&zr instanceof zr&&typeof Hr=="function"&&Hr instanceof Hr)&&(et=!1)}return oe.delete(h),oe.delete(x),et}function il(h){return iy(h,Cy,py)}function Lr(h,x){var k=h.__data__;return hy(x)?k[typeof x=="string"?"string":"hash"]:k.map}function En(h,x){var k=no(h,x);return sy(k)?k:void 0}function dy(h){var x=ae.call(h,qt),k=h[qt];try{h[qt]=void 0;var H=!0}catch{}var Ce=ht.call(h);return H&&(x?h[qt]=k:delete h[qt]),Ce}var py=Ka?function(h){return h==null?[]:(h=Object(h),wn(Ka(h),function(x){return It.call(h,x)}))}:xy,Vt=Un;(uo&&Vt(new uo(new ArrayBuffer(1)))!=R||Yn&&Vt(new Yn)!=g||ao&&Vt(ao.resolve())!=A||lo&&Vt(new lo)!=S||co&&Vt(new co)!=j)&&(Vt=function(h){var x=Un(h),k=x==w?h.constructor:void 0,H=k?en(k):"";if(H)switch(H){case Gb:return R;case Bb:return g;case Ob:return A;case Tb:return S;case Vb:return j}return x});function fy(h,x){return x=x??s,!!x&&(typeof h=="number"||me.test(h))&&h>-1&&h%1==0&&h<x}function hy(h){var x=typeof h;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?h!=="__proto__":h===null}function gy(h){return!!We&&We in h}function my(h){var x=h&&h.constructor,k=typeof x=="function"&&x.prototype||N;return h===k}function by(h){return ht.call(h)}function en(h){if(h!=null){try{return ue.call(h)}catch{}try{return h+""}catch{}}return""}function ol(h,x){return h===x||h!==h&&x!==x}var yy=tl(function(){return arguments}())?tl:function(h){return Qn(h)&&ae.call(h,"callee")&&!It.call(h,"callee")},Xr=Array.isArray;function Iy(h){return h!=null&&ul(h.length)&&!sl(h)}var fo=Pb||Ay;function vy(h,x){return nl(h,x)}function sl(h){if(!al(h))return!1;var x=Un(h);return x==p||x==I||x==l||x==E}function ul(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=s}function al(h){var x=typeof h;return h!=null&&(x=="object"||x=="function")}function Qn(h){return h!=null&&typeof h=="object"}var ll=Qt?Rr(Qt):uy;function Cy(h){return Iy(h)?ry(h):ay(h)}function xy(){return[]}function Ay(){return!1}e.exports=vy}($n,$n.exports);var hl=$n.exports;const gl=Ao(hl);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(){}},Nt=typeof window>"u"||"Deno"in globalThis;function Ue(){}function ml(e,t){return typeof e=="function"?e(t):e}function jr(e){return typeof e=="number"&&e>=0&&e!==1/0}function So(e,t){return Math.max(e+(t||0)-Date.now(),0)}function rn(e,t){return typeof e=="function"?e(t):e}function tt(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(!kn(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(!kn(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)=>Ur(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function kn(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!kn(e[n],t[n])):!1}function Yr(e,t){if(e===t)return e;const n=Fo(e)&&Fo(t);if(n||Ur(e)&&Ur(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]=Yr(e[c],t[c]),u[c]===e[c]&&e[c]!==void 0&&a++)}return i===s&&a===i?e:u}return t}function _r(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 Ur(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 bl(e){return new Promise(t=>{setTimeout(t,e)})}function Qr(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 Yr(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 Yr(e,t)}return t}function yl(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Il(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Kn=Symbol();function ko(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===Kn&&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===Kn?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var vl=(Za=class extends Fn{constructor(){super();ee(this,Wt);ee(this,wt);ee(this,pn);Z(this,pn,t=>{if(!Nt&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,wt)||this.setEventListener(C(this,pn))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,wt))==null||t.call(this),Z(this,wt,void 0))}setEventListener(t){var n;Z(this,pn,t),(n=C(this,wt))==null||n.call(this),Z(this,wt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){C(this,Wt)!==t&&(Z(this,Wt,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,Wt)=="boolean"?C(this,Wt):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Wt=new WeakMap,wt=new WeakMap,pn=new WeakMap,Za),qr=new vl,Cl=(ja=class extends Fn{constructor(){super();ee(this,fn,!0);ee(this,Et);ee(this,hn);Z(this,hn,t=>{if(!Nt&&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,Et)||this.setEventListener(C(this,hn))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,Et))==null||t.call(this),Z(this,Et,void 0))}setEventListener(t){var n;Z(this,hn,t),(n=C(this,Et))==null||n.call(this),Z(this,Et,t(this.setOnline.bind(this)))}setOnline(t){C(this,fn)!==t&&(Z(this,fn,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return C(this,fn)}},fn=new WeakMap,Et=new WeakMap,hn=new WeakMap,ja),er=new Cl;function $r(){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 xl(e){return Math.min(1e3*2**e,3e4)}function Go(e){return(e??"online")==="online"?er.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 Kr(e){return e instanceof Bo}function Oo(e){let t=!1,n=0,r=!1,i;const o=$r(),s=g=>{var v;r||(f(new Bo(g)),(v=e.abort)==null||v.call(e))},u=()=>{t=!0},a=()=>{t=!1},l=()=>qr.isFocused()&&(e.networkMode==="always"||er.isOnline())&&e.canRun(),c=()=>Go(e.networkMode)&&e.canRun(),d=g=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,g),i==null||i(),o.resolve(g))},f=g=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,g),i==null||i(),o.reject(g))},p=()=>new Promise(g=>{var v;i=b=>{(r||l())&&g(b)},(v=e.onPause)==null||v.call(e)}).then(()=>{var g;i=void 0,r||(g=e.onContinue)==null||g.call(e)}),I=()=>{if(r)return;let g;const v=n===0?e.initialPromise:void 0;try{g=v??e.fn()}catch(b){g=Promise.reject(b)}Promise.resolve(g).then(d).catch(b=>{var S;if(r)return;const w=e.retry??(Nt?0:3),A=e.retryDelay??xl,E=typeof A=="function"?A(n,b):A,P=w===!0||typeof w=="number"&&n<w||typeof w=="function"&&w(n,b);if(t||!P){f(b);return}n++,(S=e.onFail)==null||S.call(e,n,b),bl(E).then(()=>l()?void 0:p()).then(()=>{t?f(b):I()})})};return{promise:o,cancel:s,continue:()=>(i==null||i(),o),cancelRetry:u,continueRetry:a,canStart:c,start:()=>(c()?I():p().then(I),o)}}function Al(){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 Be=Al(),To=(Ja=class{constructor(){ee(this,Zt)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),jr(this.gcTime)&&Z(this,Zt,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Nt?1/0:5*60*1e3))}clearGcTimeout(){C(this,Zt)&&(clearTimeout(C(this,Zt)),Z(this,Zt,void 0))}},Zt=new WeakMap,Ja),Sl=(Ya=class extends To{constructor(t){super();ee(this,nt);ee(this,gn);ee(this,mn);ee(this,$e);ee(this,Ve);ee(this,Wn);ee(this,jt);Z(this,jt,!1),Z(this,Wn,t.defaultOptions),this.setOptions(t.options),this.observers=[],Z(this,$e,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Z(this,gn,wl(this.options)),this.state=t.state??C(this,gn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=C(this,Ve))==null?void 0:t.promise}setOptions(t){this.options={...C(this,Wn),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,$e).remove(this)}setData(t,n){const r=Qr(this.state.data,t,this.options);return pe(this,nt,xt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){pe(this,nt,xt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=C(this,Ve))==null?void 0:r.promise;return(i=C(this,Ve))==null||i.cancel(t),n?n.then(Ue).catch(Ue):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,gn))}isActive(){return this.observers.some(t=>tt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Kn||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,Ve))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Ve))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,$e).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,Ve)&&(C(this,jt)?C(this,Ve).cancel({revert:!0}):C(this,Ve).cancelRetry()),this.scheduleGc()),C(this,$e).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pe(this,nt,xt).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,Ve))return C(this,Ve).continueRetry(),C(this,Ve).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:()=>(Z(this,jt,!0),r.signal)})},o=()=>{const d=ko(this.options,n),f={queryKey:this.queryKey,meta:this.meta};return i(f),Z(this,jt,!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),Z(this,mn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=s.fetchOptions)==null?void 0:l.meta))&&pe(this,nt,xt).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta});const u=d=>{var f,p,I,g;Kr(d)&&d.silent||pe(this,nt,xt).call(this,{type:"error",error:d}),Kr(d)||((p=(f=C(this,$e).config).onError)==null||p.call(f,d,this),(g=(I=C(this,$e).config).onSettled)==null||g.call(I,this.state.data,d,this)),this.scheduleGc()};return Z(this,Ve,Oo({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var f,p,I,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(v){u(v);return}(p=(f=C(this,$e).config).onSuccess)==null||p.call(f,d,this),(g=(I=C(this,$e).config).onSettled)==null||g.call(I,d,this.state.error,this),this.scheduleGc()},onError:u,onFail:(d,f)=>{pe(this,nt,xt).call(this,{type:"failed",failureCount:d,error:f})},onPause:()=>{pe(this,nt,xt).call(this,{type:"pause"})},onContinue:()=>{pe(this,nt,xt).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),C(this,Ve).start()}},gn=new WeakMap,mn=new WeakMap,$e=new WeakMap,Ve=new WeakMap,Wn=new WeakMap,jt=new WeakMap,nt=new WeakSet,xt=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 Kr(i)&&i.revert&&C(this,mn)?{...C(this,mn),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),Be.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,$e).notify({query:this,type:"updated",action:t})})},Ya);function Vo(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Go(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function wl(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 El=(_a=class extends Fn{constructor(t={}){super();ee(this,ct);this.config=t,Z(this,ct,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 Sl({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){C(this,ct).has(t.queryHash)||(C(this,ct).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,ct).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,ct).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Be.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,ct).get(t)}getAll(){return[...C(this,ct).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){Be.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Be.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Be.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ct=new WeakMap,_a),Fl=(Ua=class extends To{constructor(t){super();ee(this,pt);ee(this,dt);ee(this,Ne);ee(this,Jt);this.mutationId=t.mutationId,Z(this,Ne,t.mutationCache),Z(this,dt,[]),this.state=t.state||Pl(),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,dt).includes(t)||(C(this,dt).push(t),this.clearGcTimeout(),C(this,Ne).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Z(this,dt,C(this,dt).filter(n=>n!==t)),this.scheduleGc(),C(this,Ne).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,dt).length||(this.state.status==="pending"?this.scheduleGc():C(this,Ne).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,I,g,v,b,w,A,E,P,S,O;Z(this,Jt,Oo({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(B,D)=>{pe(this,pt,Dt).call(this,{type:"failed",failureCount:B,error:D})},onPause:()=>{pe(this,pt,Dt).call(this,{type:"pause"})},onContinue:()=>{pe(this,pt,Dt).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,Ne).canRun(this)}));const n=this.state.status==="pending",r=!C(this,Jt).canStart();try{if(!n){pe(this,pt,Dt).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(i=C(this,Ne).config).onMutate)==null?void 0:o.call(i,t,this));const D=await((u=(s=this.options).onMutate)==null?void 0:u.call(s,t));D!==this.state.context&&pe(this,pt,Dt).call(this,{type:"pending",context:D,variables:t,isPaused:r})}const B=await C(this,Jt).start();return await((l=(a=C(this,Ne).config).onSuccess)==null?void 0:l.call(a,B,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,B,t,this.state.context)),await((p=(f=C(this,Ne).config).onSettled)==null?void 0:p.call(f,B,null,this.state.variables,this.state.context,this)),await((g=(I=this.options).onSettled)==null?void 0:g.call(I,B,null,t,this.state.context)),pe(this,pt,Dt).call(this,{type:"success",data:B}),B}catch(B){try{throw await((b=(v=C(this,Ne).config).onError)==null?void 0:b.call(v,B,t,this.state.context,this)),await((A=(w=this.options).onError)==null?void 0:A.call(w,B,t,this.state.context)),await((P=(E=C(this,Ne).config).onSettled)==null?void 0:P.call(E,void 0,B,this.state.variables,this.state.context,this)),await((O=(S=this.options).onSettled)==null?void 0:O.call(S,void 0,B,t,this.state.context)),B}finally{pe(this,pt,Dt).call(this,{type:"error",error:B})}}finally{C(this,Ne).runNext(this)}}},dt=new WeakMap,Ne=new WeakMap,Jt=new WeakMap,pt=new WeakSet,Dt=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),Be.batch(()=>{C(this,dt).forEach(r=>{r.onMutationUpdate(t)}),C(this,Ne).notify({mutation:this,type:"updated",action:t})})},Ua);function Pl(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var kl=(Qa=class extends Fn{constructor(t={}){super();ee(this,Je);ee(this,Zn);this.config=t,Z(this,Je,new Map),Z(this,Zn,Date.now())}build(t,n,r){const i=new Fl({mutationCache:this,mutationId:++Wr(this,Zn)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=tr(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=tr(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(tr(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(tr(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Be.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){Be.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Be.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ue))))}},Je=new WeakMap,Zn=new WeakMap,Qa);function tr(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,I;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=((I=t.state.data)==null?void 0:I.pageParams)||[];let u={pages:[],pageParams:[]},a=0;const l=async()=>{let g=!1;const v=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},b=ko(t.options,t.fetchOptions),w=async(A,E,P)=>{if(g)return Promise.reject();if(E==null&&A.pages.length)return Promise.resolve(A);const S={queryKey:t.queryKey,pageParam:E,direction:P?"backward":"forward",meta:t.options.meta};v(S);const O=await b(S),{maxPages:B}=t.options,D=P?Il:yl;return{pages:D(A.pages,O,B),pageParams:D(A.pageParams,E,B)}};if(i&&o.length){const A=i==="backward",E=A?Gl:Do,P={pages:o,pageParams:s},S=E(r,P);u=await w(P,S,A)}else{const A=e??o.length;do{const E=a===0?s[0]??r.initialPageParam:Do(r,u);if(a>0&&E==null)break;u=await w(u,E),a++}while(a<A)}return u};t.options.persister?t.fetchFn=()=>{var g,v;return(v=(g=t.options).persister)==null?void 0:v.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 Gl(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 Bl=(qa=class{constructor(e={}){ee(this,we);ee(this,Ft);ee(this,Pt);ee(this,bn);ee(this,yn);ee(this,kt);ee(this,In);ee(this,vn);Z(this,we,e.queryCache||new El),Z(this,Ft,e.mutationCache||new kl),Z(this,Pt,e.defaultOptions||{}),Z(this,bn,new Map),Z(this,yn,new Map),Z(this,kt,0)}mount(){Wr(this,kt)._++,C(this,kt)===1&&(Z(this,In,qr.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,we).onFocus())})),Z(this,vn,er.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,we).onOnline())})))}unmount(){var e,t;Wr(this,kt)._--,C(this,kt)===0&&((e=C(this,In))==null||e.call(this),Z(this,In,void 0),(t=C(this,vn))==null||t.call(this),Z(this,vn,void 0))}isFetching(e){return C(this,we).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,Ft).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,we).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,we).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(rn(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return C(this,we).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,we).get(r.queryHash),o=i==null?void 0:i.state.data,s=ml(t,o);if(s!==void 0)return C(this,we).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Be.batch(()=>C(this,we).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,we).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,we);Be.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,we),r={type:"active",...e};return Be.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Be.batch(()=>C(this,we).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Ue).catch(Ue)}invalidateQueries(e={},t={}){return Be.batch(()=>{if(C(this,we).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=Be.batch(()=>C(this,we).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(Ue)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Ue)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,we).build(this,t);return n.isStaleByTime(rn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ue).catch(Ue)}fetchInfiniteQuery(e){return e.behavior=Ro(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ue).catch(Ue)}ensureInfiniteQueryData(e){return e.behavior=Ro(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return er.isOnline()?C(this,Ft).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,we)}getMutationCache(){return C(this,Ft)}getDefaultOptions(){return C(this,Pt)}setDefaultOptions(e){Z(this,Pt,e)}setQueryDefaults(e,t){C(this,bn).set(Pn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,bn).values()];let n={};return t.forEach(r=>{kn(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){C(this,yn).set(Pn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,yn).values()];let n={};return t.forEach(r=>{kn(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,Pt).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===Kn&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,Pt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,we).clear(),C(this,Ft).clear()}},we=new WeakMap,Ft=new WeakMap,Pt=new WeakMap,bn=new WeakMap,yn=new WeakMap,kt=new WeakMap,In=new WeakMap,vn=new WeakMap,qa),Ol=($a=class extends Fn{constructor(t,n){super();ee(this,be);ee(this,He);ee(this,de);ee(this,jn);ee(this,Me);ee(this,Yt);ee(this,Cn);ee(this,Gt);ee(this,ft);ee(this,Jn);ee(this,xn);ee(this,An);ee(this,_t);ee(this,Ut);ee(this,Bt);ee(this,Sn,new Set);this.options=n,Z(this,He,t),Z(this,ft,null),Z(this,Gt,$r()),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,de).addObserver(this),No(C(this,de),this.options)?pe(this,be,qn).call(this):this.updateResult(),pe(this,be,yo).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ei(C(this,de),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ei(C(this,de),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pe(this,be,Io).call(this),pe(this,be,vo).call(this),C(this,de).removeObserver(this)}setOptions(t,n){const r=this.options,i=C(this,de);if(this.options=C(this,He).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof tt(this.options.enabled,C(this,de))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pe(this,be,Co).call(this),C(this,de).setOptions(this.options),r._defaulted&&!_r(this.options,r)&&C(this,He).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,de),observer:this});const o=this.hasListeners();o&&Mo(C(this,de),i,this.options,r)&&pe(this,be,qn).call(this),this.updateResult(n),o&&(C(this,de)!==i||tt(this.options.enabled,C(this,de))!==tt(r.enabled,C(this,de))||rn(this.options.staleTime,C(this,de))!==rn(r.staleTime,C(this,de)))&&pe(this,be,go).call(this);const s=pe(this,be,mo).call(this);o&&(C(this,de)!==i||tt(this.options.enabled,C(this,de))!==tt(r.enabled,C(this,de))||s!==C(this,Bt))&&pe(this,be,bo).call(this,s)}getOptimisticResult(t){const n=C(this,He).getQueryCache().build(C(this,He),t),r=this.createResult(n,t);return Vl(this,r)&&(Z(this,Me,r),Z(this,Cn,this.options),Z(this,Yt,C(this,de).state)),r}getCurrentResult(){return C(this,Me)}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,Sn).add(t)}getCurrentQuery(){return C(this,de)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,He).defaultQueryOptions(t),r=C(this,He).getQueryCache().build(C(this,He),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return pe(this,be,qn).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,Me)))}createResult(t,n){var B;const r=C(this,de),i=this.options,o=C(this,Me),s=C(this,Yt),u=C(this,Cn),l=t!==r?t.state:C(this,jn),{state:c}=t;let d={...c},f=!1,p;if(n._optimisticResults){const D=this.hasListeners(),j=!D&&No(t,n),L=D&&Mo(t,r,n,i);(j||L)&&(d={...d,...Vo(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:I,errorUpdatedAt:g,status:v}=d;if(n.select&&d.data!==void 0)if(o&&d.data===(s==null?void 0:s.data)&&n.select===C(this,Jn))p=C(this,xn);else try{Z(this,Jn,n.select),p=n.select(d.data),p=Qr(o==null?void 0:o.data,p,n),Z(this,xn,p),Z(this,ft,null)}catch(D){Z(this,ft,D)}else p=d.data;if(n.placeholderData!==void 0&&p===void 0&&v==="pending"){let D;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData))D=o.data;else if(D=typeof n.placeholderData=="function"?n.placeholderData((B=C(this,An))==null?void 0:B.state.data,C(this,An)):n.placeholderData,n.select&&D!==void 0)try{D=n.select(D),Z(this,ft,null)}catch(j){Z(this,ft,j)}D!==void 0&&(v="success",p=Qr(o==null?void 0:o.data,D,n),f=!0)}C(this,ft)&&(I=C(this,ft),p=C(this,xn),g=Date.now(),v="error");const b=d.fetchStatus==="fetching",w=v==="pending",A=v==="error",E=w&&b,P=p!==void 0,O={status:v,fetchStatus:d.fetchStatus,isPending:w,isSuccess:v==="success",isError:A,isInitialLoading:E,isLoading:E,data:p,dataUpdatedAt:d.dataUpdatedAt,error:I,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:b,isRefetching:b&&!w,isLoadingError:A&&!P,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:A&&P,isStale:ti(t,n),refetch:this.refetch,promise:C(this,Gt)};if(this.options.experimental_prefetchInRender){const D=R=>{O.status==="error"?R.reject(O.error):O.data!==void 0&&R.resolve(O.data)},j=()=>{const R=Z(this,Gt,O.promise=$r());D(R)},L=C(this,Gt);switch(L.status){case"pending":t.queryHash===r.queryHash&&D(L);break;case"fulfilled":(O.status==="error"||O.data!==L.value)&&j();break;case"rejected":(O.status!=="error"||O.error!==L.reason)&&j();break}}return O}updateResult(t){const n=C(this,Me),r=this.createResult(C(this,de),this.options);if(Z(this,Yt,C(this,de).state),Z(this,Cn,this.options),C(this,Yt).data!==void 0&&Z(this,An,C(this,de)),_r(r,n))return;Z(this,Me,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,Sn).size)return!0;const a=new Set(u??C(this,Sn));return this.options.throwOnError&&a.add("error"),Object.keys(C(this,Me)).some(l=>{const c=l;return C(this,Me)[c]!==n[c]&&a.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),pe(this,be,pl).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pe(this,be,yo).call(this)}},He=new WeakMap,de=new WeakMap,jn=new WeakMap,Me=new WeakMap,Yt=new WeakMap,Cn=new WeakMap,Gt=new WeakMap,ft=new WeakMap,Jn=new WeakMap,xn=new WeakMap,An=new WeakMap,_t=new WeakMap,Ut=new WeakMap,Bt=new WeakMap,Sn=new WeakMap,be=new WeakSet,qn=function(t){pe(this,be,Co).call(this);let n=C(this,de).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ue)),n},go=function(){pe(this,be,Io).call(this);const t=rn(this.options.staleTime,C(this,de));if(Nt||C(this,Me).isStale||!jr(t))return;const r=So(C(this,Me).dataUpdatedAt,t)+1;Z(this,_t,setTimeout(()=>{C(this,Me).isStale||this.updateResult()},r))},mo=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,de)):this.options.refetchInterval)??!1},bo=function(t){pe(this,be,vo).call(this),Z(this,Bt,t),!(Nt||tt(this.options.enabled,C(this,de))===!1||!jr(C(this,Bt))||C(this,Bt)===0)&&Z(this,Ut,setInterval(()=>{(this.options.refetchIntervalInBackground||qr.isFocused())&&pe(this,be,qn).call(this)},C(this,Bt)))},yo=function(){pe(this,be,go).call(this),pe(this,be,bo).call(this,pe(this,be,mo).call(this))},Io=function(){C(this,_t)&&(clearTimeout(C(this,_t)),Z(this,_t,void 0))},vo=function(){C(this,Ut)&&(clearInterval(C(this,Ut)),Z(this,Ut,void 0))},Co=function(){const t=C(this,He).getQueryCache().build(C(this,He),this.options);if(t===C(this,de))return;const n=C(this,de);Z(this,de,t),Z(this,jn,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},pl=function(t){Be.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,Me))}),C(this,He).getQueryCache().notify({query:C(this,de),type:"observerResultsUpdated"})})},$a);function Tl(e,t){return tt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function No(e,t){return Tl(e,t)||e.state.data!==void 0&&ei(e,t,t.refetchOnMount)}function ei(e,t,n){if(tt(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&ti(e,t)}return!1}function Mo(e,t,n,r){return(e!==t||tt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&ti(e,n)}function ti(e,t){return tt(t.enabled,e)!==!1&&e.isStaleByTime(rn(t.staleTime,e))}function Vl(e,t){return!_r(e.getCurrentResult(),t)}var Lo=re.createContext(void 0),Rl=e=>{const t=re.useContext(Lo);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Dl=({client:e,children:t})=>(re.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),T.jsx(Lo.Provider,{value:e,children:t})),Xo=re.createContext(!1),Nl=()=>re.useContext(Xo);Xo.Provider;function Ml(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Ll=re.createContext(Ml()),Xl=()=>re.useContext(Ll);function zl(e,t){return typeof e=="function"?e(...t):!!e}function zo(){}var Hl=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Wl=e=>{re.useEffect(()=>{e.clearReset()},[e])},Zl=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&zl(n,[e.error,r]),jl=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},Jl=(e,t)=>e.isLoading&&e.isFetching&&!t,Yl=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Ho=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function _l(e,t,n){var c,d,f,p,I;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=Rl(),i=Nl(),o=Xl(),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",jl(s),Hl(s,o),Wl(o);const u=!r.getQueryCache().get(s.queryHash),[a]=re.useState(()=>new t(r,s)),l=a.getOptimisticResult(s);if(re.useSyncExternalStore(re.useCallback(g=>{const v=i?zo:a.subscribe(Be.batchCalls(g));return a.updateResult(),v},[a,i]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),re.useEffect(()=>{a.setOptions(s,{listeners:!1})},[s,a]),Yl(s,l))throw Ho(s,a,o);if(Zl({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&&!Nt&&Jl(l,i)){const g=u?Ho(s,a,o):(I=r.getQueryCache().get(s.queryHash))==null?void 0:I.promise;g==null||g.catch(zo).finally(()=>{a.updateResult()})}return s.notifyOnChangeProps?l:a.trackResult(l)}function Mt(e,t){return _l(e,Ol)}const Wo=G.createContext(void 0),mt=()=>{const e=G.useContext(Wo);if(!e)throw new Error("Must be used inside FrontendClientProvider");return e},Ul=({children:e,client:t})=>{const n=new Bl({defaultOptions:{queries:{staleTime:36e5,refetchOnWindowFocus:!1}}});return T.jsx(Dl,{client:n,children:T.jsx(Wo.Provider,{value:t,children:e})})};function Zo(e){return typeof e=="object"&&e&&"__lv"in e?e.__lv.value:e}function Ql(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 ql(e){const t=Ql(e.value);if(!e.prop.default&&typeof t>"u")return["required"];if(!e.prop.default&&Array.isArray(t)&&!t.length)return["empty array"]}function $l(e){const t=Zo(e.value);if(t==null||typeof t>"u")return["required"]}function Kl(e){const{prop:t,value:n}=e,r=Zo(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 ec(e){const{prop:t,value:n}=e;if(!t.default&&(n==null||typeof value>"u"))return["required"]}function tc(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 nc(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=tc(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 Gn=["$.service.db","$.interface.http","$.interface.apphook","$.interface.timer"],ni=G.createContext(void 0),nr=()=>{const e=G.useContext(ni);if(!e)throw new Error("Must be used inside provider");return e},jo=({children:e,props:t})=>{const n=mt(),r=G.useId(),{component:i,configuredProps:o,propNames:s,userId:u}=t,a=i.key,[l,c]=G.useState(0),[d,f]=G.useState({}),[p,I]=G.useState(!1),[g,v]=G.useState({}),[b,w]=G.useState({});G.useEffect(()=>{w({})},[i.key]);const A=M=>b[M.name];let E=o||{};const[P,S]=G.useState(E),O=t.onUpdateConfiguredProps||S;t.onUpdateConfiguredProps||(E=P);const[B,D]=G.useState(),[j,L]=G.useState(),R={userId:u,componentId:a,configuredProps:E,dynamicPropsId:B==null?void 0:B.id},te={...R},{isFetching:se}=Mt({queryKey:["dynamicProps",te],queryFn:async()=>{var W;const{dynamicProps:M}=await n.componentReloadProps(R);return M&&((W=t.onUpdateDynamicProps)==null||W.call(t,M),D(M)),L(void 0),[]},enabled:j!=null}),[z,U]=G.useState([]);G.useEffect(()=>{ne()},[E]);let Q=(B==null?void 0:B.configurableProps)||t.component.configurable_props||[];if(s!=null&&s.length){const M=[];for(const W of Q)s.findIndex(q=>W.name===q)>=0&&M.push(W);Q=M}j!=null&&(Q=Q.slice(0,j+1));const ce=(M,W)=>{const q=[];if(M.optional||M.hidden||M.disabled||Gn.includes(M.type))return[];if(M.type==="app"){const he=d[M.name];if(he){const ke=he.extra.app;q.push(...nc({prop:M,value:W,app:ke})??[])}else q.push("field not registered")}else M.type==="boolean"?q.push(...$l({prop:M,value:W})??[]):M.type==="integer"?q.push(...Kl({prop:M,value:W})??[]):M.type==="string"?q.push(...ec({prop:M,value:W})??[]):M.type==="string[]"&&q.push(...ql({prop:M,value:W})??[]);return q},ye=M=>{let W;for(let q=0;q<Q.length;q++){const he=Q[q];if(he.hidden||he.optional&&!A(he))continue;if(M[he.name]===void 0&&W==null&&(he.type==="app"||he.remoteOptions)){W=q;break}}c(W)},y=M=>{O(M),ye(M);const W={};for(let q=0;q<Q.length;q++){const he=Q[q],ke=M[he.name],Ye=ce(he,ke);Ye.length&&(W[he.name]=Ye)}v(W)};G.useEffect(()=>{const M={};for(const W of Q){if(W.hidden||Gn.includes(W.type)||W.optional&&!A(W))continue;const q=E[W.name];q===void 0?"default"in W&&W.default!=null&&(M[W.name]=W.default):W.type==="integer"&&typeof q!="number"?delete M[W.name]:M[W.name]=q}gl(M,E)||y(M)},[Q]);const[xe,le]=G.useState(u);G.useEffect(()=>{xe!==u&&(y({}),le(u))},[u]);const m=(M,W)=>{const q=Q[M],he={...E};W===void 0?delete he[q.name]:he[q.name]=W,O(he),q.reloadProps&&L(M),(q.type==="app"||q.remoteOptions)&&ye(he);const ke=ce(q,W),Ye={...g};ke.length?Ye[q.name]=ke:delete Ye[q.name],v(Ye)},me=(M,W)=>{const q={...b};W?q[M.name]=!0:delete q[M.name];const he=Q.findIndex(ke=>ke.name===M.name);W?(o==null?void 0:o[M.name])!==void 0?m(he,o[M.name]):"default"in M&&M.default!=null&&m(he,M.default):m(he,void 0),w(q)},ne=()=>{const M=[];for(const W of Q){if(!W||W.optional||W.hidden||Gn.includes(W.type))continue;const q=E[W.name];ce(W,q).length&&M.push(W.name)}U(M)},fe=M=>{f(W=>(W[M.prop.name]=M,W))},Pe={id:r,isValid:!Object.keys(g).length,props:t,userId:u,component:i,configurableProps:Q,configuredProps:E,dynamicProps:B,dynamicPropsQueryIsFetching:se,errors:g,fields:d,optionalPropIsEnabled:A,optionalPropSetEnabled:me,propsNeedConfiguring:z,queryDisabledIdx:l,registerField:fe,setConfiguredProp:m,setSubmitting:I,submitting:p};return T.jsx(ni.Provider,{value:Pe,children:e})};function Lt(e){"@babel/helpers - typeof";return Lt=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},Lt(e)}function rc(e,t){if(Lt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Lt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jo(e){var t=rc(e,"string");return Lt(t)=="symbol"?t:t+""}function Bn(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 Yo(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?Yo(Object(n),!0).forEach(function(r){Bn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yo(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ic(e){if(Array.isArray(e))return e}function oc(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 _o(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 sc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1
|
+
(function(X,T){typeof exports=="object"&&typeof module<"u"?T(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"],T):(X=typeof globalThis<"u"?globalThis:X||self,T(X["connect-react"]={},X["react/jsx-runtime"],X.React,X["@emotion/react"],X.ReactDOM))})(this,function(X,T,G,J,Zr){"use strict";var dl=X=>{throw TypeError(X)};var ho=(X,T,G)=>T.has(X)||dl("Cannot "+G);var C=(X,T,G)=>(ho(X,T,"read from private field"),G?G.call(X):T.get(X)),ee=(X,T,G)=>T.has(X)?dl("Cannot add the same private member more than once"):T instanceof WeakSet?T.add(X):T.set(X,G),Z=(X,T,G,J)=>(ho(X,T,"write to private field"),J?J.call(X,G):T.set(X,G),G),pe=(X,T,G)=>(ho(X,T,"access private method"),G);var Wr=(X,T,G,J)=>({set _(Zr){Z(X,T,Zr,G)},get _(){return C(X,T,J)}});var Wt,wt,pn,Za,fn,Et,hn,ja,Zt,Ja,gn,mn,$e,Ve,Wn,jt,nt,xt,Ya,ct,_a,dt,Ne,Jt,pt,Dt,Ua,Je,Zn,Qa,we,Ft,Pt,bn,yn,kt,In,vn,qa,He,de,jn,Me,Yt,Cn,Gt,ft,Jn,xn,An,_t,Ut,Bt,Sn,be,qn,go,mo,bo,yo,Io,vo,Co,pl,$a;function fl(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 re=fl(G);typeof document>"u"&&(globalThis.document={createElement:()=>{}});function xo({prop:e}){return T.jsx("p",{className:`pd-alert-${e.alertType}`,children:e.content})}var nn=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 $n={exports:{}};$n.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]",I="[object GeneratorFunction]",g="[object Map]",v="[object Number]",b="[object Null]",w="[object Object]",A="[object Promise]",E="[object Proxy]",P="[object RegExp]",S="[object Set]",O="[object String]",B="[object Symbol]",D="[object Undefined]",j="[object WeakMap]",L="[object ArrayBuffer]",R="[object DataView]",te="[object Float32Array]",se="[object Float64Array]",z="[object Int8Array]",U="[object Int16Array]",Q="[object Int32Array]",ce="[object Uint8Array]",ye="[object Uint8ClampedArray]",y="[object Uint16Array]",xe="[object Uint32Array]",le=/[\\^$.*+?()[\]{}|]/g,m=/^\[object .+?Constructor\]$/,me=/^(?:0|[1-9]\d*)$/,ne={};ne[te]=ne[se]=ne[z]=ne[U]=ne[Q]=ne[ce]=ne[ye]=ne[y]=ne[xe]=!0,ne[u]=ne[a]=ne[L]=ne[c]=ne[R]=ne[d]=ne[f]=ne[p]=ne[g]=ne[v]=ne[w]=ne[P]=ne[S]=ne[O]=ne[j]=!1;var fe=typeof nn=="object"&&nn&&nn.Object===Object&&nn,Pe=typeof self=="object"&&self&&self.Object===Object&&self,M=fe||Pe||Function("return this")(),W=t&&!t.nodeType&&t,q=W&&!0&&e&&!e.nodeType&&e,he=q&&q.exports===W,ke=he&&fe.process,Ye=function(){try{return ke&&ke.binding&&ke.binding("util")}catch{}}(),Qt=Ye&&Ye.isTypedArray;function wn(h,x){for(var k=-1,H=h==null?0:h.length,Ce=0,oe=[];++k<H;){var Ee=h[k];x(Ee,k,h)&&(oe[Ce++]=Ee)}return oe}function Tr(h,x){for(var k=-1,H=x.length,Ce=h.length;++k<H;)h[Ce+k]=x[k];return h}function Vr(h,x){for(var k=-1,H=h==null?0:h.length;++k<H;)if(x(h[k],k,h))return!0;return!1}function to(h,x){for(var k=-1,H=Array(h);++k<h;)H[k]=x(k);return H}function Rr(h){return function(x){return h(x)}}function Dr(h,x){return h.has(x)}function no(h,x){return h==null?void 0:h[x]}function ro(h){var x=-1,k=Array(h.size);return h.forEach(function(H,Ce){k[++x]=[Ce,H]}),k}function io(h,x){return function(k){return h(x(k))}}function oo(h){var x=-1,k=Array(h.size);return h.forEach(function(H){k[++x]=H}),k}var so=Array.prototype,F=Function.prototype,N=Object.prototype,K=M["__core-js_shared__"],ue=F.toString,ae=N.hasOwnProperty,We=function(){var h=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}(),ht=N.toString,rt=RegExp("^"+ue.call(ae).replace(le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ot=he?M.Buffer:void 0,gt=M.Symbol,Re=M.Uint8Array,It=N.propertyIsEnumerable,it=so.splice,qt=gt?gt.toStringTag:void 0,Ka=Object.getOwnPropertySymbols,Pb=Ot?Ot.isBuffer:void 0,kb=io(Object.keys,Object),uo=En(M,"DataView"),Yn=En(M,"Map"),ao=En(M,"Promise"),lo=En(M,"Set"),co=En(M,"WeakMap"),_n=En(Object,"create"),Gb=en(uo),Bb=en(Yn),Ob=en(ao),Tb=en(lo),Vb=en(co),el=gt?gt.prototype:void 0,po=el?el.valueOf:void 0;function $t(h){var x=-1,k=h==null?0:h.length;for(this.clear();++x<k;){var H=h[x];this.set(H[0],H[1])}}function Rb(){this.__data__=_n?_n(null):{},this.size=0}function Db(h){var x=this.has(h)&&delete this.__data__[h];return this.size-=x?1:0,x}function Nb(h){var x=this.__data__;if(_n){var k=x[h];return k===r?void 0:k}return ae.call(x,h)?x[h]:void 0}function Mb(h){var x=this.__data__;return _n?x[h]!==void 0:ae.call(x,h)}function Lb(h,x){var k=this.__data__;return this.size+=this.has(h)?0:1,k[h]=_n&&x===void 0?r:x,this}$t.prototype.clear=Rb,$t.prototype.delete=Db,$t.prototype.get=Nb,$t.prototype.has=Mb,$t.prototype.set=Lb;function vt(h){var x=-1,k=h==null?0:h.length;for(this.clear();++x<k;){var H=h[x];this.set(H[0],H[1])}}function Xb(){this.__data__=[],this.size=0}function zb(h){var x=this.__data__,k=Mr(x,h);if(k<0)return!1;var H=x.length-1;return k==H?x.pop():it.call(x,k,1),--this.size,!0}function Hb(h){var x=this.__data__,k=Mr(x,h);return k<0?void 0:x[k][1]}function Wb(h){return Mr(this.__data__,h)>-1}function Zb(h,x){var k=this.__data__,H=Mr(k,h);return H<0?(++this.size,k.push([h,x])):k[H][1]=x,this}vt.prototype.clear=Xb,vt.prototype.delete=zb,vt.prototype.get=Hb,vt.prototype.has=Wb,vt.prototype.set=Zb;function Kt(h){var x=-1,k=h==null?0:h.length;for(this.clear();++x<k;){var H=h[x];this.set(H[0],H[1])}}function jb(){this.size=0,this.__data__={hash:new $t,map:new(Yn||vt),string:new $t}}function Jb(h){var x=Lr(this,h).delete(h);return this.size-=x?1:0,x}function Yb(h){return Lr(this,h).get(h)}function _b(h){return Lr(this,h).has(h)}function Ub(h,x){var k=Lr(this,h),H=k.size;return k.set(h,x),this.size+=k.size==H?0:1,this}Kt.prototype.clear=jb,Kt.prototype.delete=Jb,Kt.prototype.get=Yb,Kt.prototype.has=_b,Kt.prototype.set=Ub;function Nr(h){var x=-1,k=h==null?0:h.length;for(this.__data__=new Kt;++x<k;)this.add(h[x])}function Qb(h){return this.__data__.set(h,r),this}function qb(h){return this.__data__.has(h)}Nr.prototype.add=Nr.prototype.push=Qb,Nr.prototype.has=qb;function Tt(h){var x=this.__data__=new vt(h);this.size=x.size}function $b(){this.__data__=new vt,this.size=0}function Kb(h){var x=this.__data__,k=x.delete(h);return this.size=x.size,k}function ey(h){return this.__data__.get(h)}function ty(h){return this.__data__.has(h)}function ny(h,x){var k=this.__data__;if(k instanceof vt){var H=k.__data__;if(!Yn||H.length<n-1)return H.push([h,x]),this.size=++k.size,this;k=this.__data__=new Kt(H)}return k.set(h,x),this.size=k.size,this}Tt.prototype.clear=$b,Tt.prototype.delete=Kb,Tt.prototype.get=ey,Tt.prototype.has=ty,Tt.prototype.set=ny;function ry(h,x){var k=Xr(h),H=!k&&yy(h),Ce=!k&&!H&&fo(h),oe=!k&&!H&&!Ce&&ll(h),Ee=k||H||Ce||oe,Ge=Ee?to(h.length,String):[],Oe=Ge.length;for(var Ae in h)ae.call(h,Ae)&&!(Ee&&(Ae=="length"||Ce&&(Ae=="offset"||Ae=="parent")||oe&&(Ae=="buffer"||Ae=="byteLength"||Ae=="byteOffset")||fy(Ae,Oe)))&&Ge.push(Ae);return Ge}function Mr(h,x){for(var k=h.length;k--;)if(ol(h[k][0],x))return k;return-1}function iy(h,x,k){var H=x(h);return Xr(h)?H:Tr(H,k(h))}function Un(h){return h==null?h===void 0?D:b:qt&&qt in Object(h)?dy(h):by(h)}function tl(h){return Qn(h)&&Un(h)==u}function nl(h,x,k,H,Ce){return h===x?!0:h==null||x==null||!Qn(h)&&!Qn(x)?h!==h&&x!==x:oy(h,x,k,H,nl,Ce)}function oy(h,x,k,H,Ce,oe){var Ee=Xr(h),Ge=Xr(x),Oe=Ee?a:Vt(h),Ae=Ge?a:Vt(x);Oe=Oe==u?w:Oe,Ae=Ae==u?w:Ae;var _e=Oe==w,ot=Ae==w,De=Oe==Ae;if(De&&fo(h)){if(!fo(x))return!1;Ee=!0,_e=!1}if(De&&!_e)return oe||(oe=new Tt),Ee||ll(h)?rl(h,x,k,H,Ce,oe):ly(h,x,Oe,k,H,Ce,oe);if(!(k&i)){var Ke=_e&&ae.call(h,"__wrapped__"),et=ot&&ae.call(x,"__wrapped__");if(Ke||et){var Rt=Ke?h.value():h,Ct=et?x.value():x;return oe||(oe=new Tt),Ce(Rt,Ct,k,H,oe)}}return De?(oe||(oe=new Tt),cy(h,x,k,H,Ce,oe)):!1}function sy(h){if(!al(h)||gy(h))return!1;var x=sl(h)?rt:m;return x.test(en(h))}function uy(h){return Qn(h)&&ul(h.length)&&!!ne[Un(h)]}function ay(h){if(!my(h))return kb(h);var x=[];for(var k in Object(h))ae.call(h,k)&&k!="constructor"&&x.push(k);return x}function rl(h,x,k,H,Ce,oe){var Ee=k&i,Ge=h.length,Oe=x.length;if(Ge!=Oe&&!(Ee&&Oe>Ge))return!1;var Ae=oe.get(h);if(Ae&&oe.get(x))return Ae==x;var _e=-1,ot=!0,De=k&o?new Nr:void 0;for(oe.set(h,x),oe.set(x,h);++_e<Ge;){var Ke=h[_e],et=x[_e];if(H)var Rt=Ee?H(et,Ke,_e,x,h,oe):H(Ke,et,_e,h,x,oe);if(Rt!==void 0){if(Rt)continue;ot=!1;break}if(De){if(!Vr(x,function(Ct,tn){if(!Dr(De,tn)&&(Ke===Ct||Ce(Ke,Ct,k,H,oe)))return De.push(tn)})){ot=!1;break}}else if(!(Ke===et||Ce(Ke,et,k,H,oe))){ot=!1;break}}return oe.delete(h),oe.delete(x),ot}function ly(h,x,k,H,Ce,oe,Ee){switch(k){case R:if(h.byteLength!=x.byteLength||h.byteOffset!=x.byteOffset)return!1;h=h.buffer,x=x.buffer;case L:return!(h.byteLength!=x.byteLength||!oe(new Re(h),new Re(x)));case c:case d:case v:return ol(+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 S:var Oe=H&i;if(Ge||(Ge=oo),h.size!=x.size&&!Oe)return!1;var Ae=Ee.get(h);if(Ae)return Ae==x;H|=o,Ee.set(h,x);var _e=rl(Ge(h),Ge(x),H,Ce,oe,Ee);return Ee.delete(h),_e;case B:if(po)return po.call(h)==po.call(x)}return!1}function cy(h,x,k,H,Ce,oe){var Ee=k&i,Ge=il(h),Oe=Ge.length,Ae=il(x),_e=Ae.length;if(Oe!=_e&&!Ee)return!1;for(var ot=Oe;ot--;){var De=Ge[ot];if(!(Ee?De in x:ae.call(x,De)))return!1}var Ke=oe.get(h);if(Ke&&oe.get(x))return Ke==x;var et=!0;oe.set(h,x),oe.set(x,h);for(var Rt=Ee;++ot<Oe;){De=Ge[ot];var Ct=h[De],tn=x[De];if(H)var cl=Ee?H(tn,Ct,De,x,h,oe):H(Ct,tn,De,h,x,oe);if(!(cl===void 0?Ct===tn||Ce(Ct,tn,k,H,oe):cl)){et=!1;break}Rt||(Rt=De=="constructor")}if(et&&!Rt){var zr=h.constructor,Hr=x.constructor;zr!=Hr&&"constructor"in h&&"constructor"in x&&!(typeof zr=="function"&&zr instanceof zr&&typeof Hr=="function"&&Hr instanceof Hr)&&(et=!1)}return oe.delete(h),oe.delete(x),et}function il(h){return iy(h,Cy,py)}function Lr(h,x){var k=h.__data__;return hy(x)?k[typeof x=="string"?"string":"hash"]:k.map}function En(h,x){var k=no(h,x);return sy(k)?k:void 0}function dy(h){var x=ae.call(h,qt),k=h[qt];try{h[qt]=void 0;var H=!0}catch{}var Ce=ht.call(h);return H&&(x?h[qt]=k:delete h[qt]),Ce}var py=Ka?function(h){return h==null?[]:(h=Object(h),wn(Ka(h),function(x){return It.call(h,x)}))}:xy,Vt=Un;(uo&&Vt(new uo(new ArrayBuffer(1)))!=R||Yn&&Vt(new Yn)!=g||ao&&Vt(ao.resolve())!=A||lo&&Vt(new lo)!=S||co&&Vt(new co)!=j)&&(Vt=function(h){var x=Un(h),k=x==w?h.constructor:void 0,H=k?en(k):"";if(H)switch(H){case Gb:return R;case Bb:return g;case Ob:return A;case Tb:return S;case Vb:return j}return x});function fy(h,x){return x=x??s,!!x&&(typeof h=="number"||me.test(h))&&h>-1&&h%1==0&&h<x}function hy(h){var x=typeof h;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?h!=="__proto__":h===null}function gy(h){return!!We&&We in h}function my(h){var x=h&&h.constructor,k=typeof x=="function"&&x.prototype||N;return h===k}function by(h){return ht.call(h)}function en(h){if(h!=null){try{return ue.call(h)}catch{}try{return h+""}catch{}}return""}function ol(h,x){return h===x||h!==h&&x!==x}var yy=tl(function(){return arguments}())?tl:function(h){return Qn(h)&&ae.call(h,"callee")&&!It.call(h,"callee")},Xr=Array.isArray;function Iy(h){return h!=null&&ul(h.length)&&!sl(h)}var fo=Pb||Ay;function vy(h,x){return nl(h,x)}function sl(h){if(!al(h))return!1;var x=Un(h);return x==p||x==I||x==l||x==E}function ul(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=s}function al(h){var x=typeof h;return h!=null&&(x=="object"||x=="function")}function Qn(h){return h!=null&&typeof h=="object"}var ll=Qt?Rr(Qt):uy;function Cy(h){return Iy(h)?ry(h):ay(h)}function xy(){return[]}function Ay(){return!1}e.exports=vy}($n,$n.exports);var hl=$n.exports;const gl=Ao(hl);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(){}},Nt=typeof window>"u"||"Deno"in globalThis;function Ue(){}function ml(e,t){return typeof e=="function"?e(t):e}function jr(e){return typeof e=="number"&&e>=0&&e!==1/0}function So(e,t){return Math.max(e+(t||0)-Date.now(),0)}function rn(e,t){return typeof e=="function"?e(t):e}function tt(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(!kn(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(!kn(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)=>Ur(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function kn(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!kn(e[n],t[n])):!1}function Yr(e,t){if(e===t)return e;const n=Fo(e)&&Fo(t);if(n||Ur(e)&&Ur(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]=Yr(e[c],t[c]),u[c]===e[c]&&e[c]!==void 0&&a++)}return i===s&&a===i?e:u}return t}function _r(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 Ur(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 bl(e){return new Promise(t=>{setTimeout(t,e)})}function Qr(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 Yr(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 Yr(e,t)}return t}function yl(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Il(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Kn=Symbol();function ko(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===Kn&&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===Kn?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var vl=(Za=class extends Fn{constructor(){super();ee(this,Wt);ee(this,wt);ee(this,pn);Z(this,pn,t=>{if(!Nt&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,wt)||this.setEventListener(C(this,pn))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,wt))==null||t.call(this),Z(this,wt,void 0))}setEventListener(t){var n;Z(this,pn,t),(n=C(this,wt))==null||n.call(this),Z(this,wt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){C(this,Wt)!==t&&(Z(this,Wt,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,Wt)=="boolean"?C(this,Wt):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Wt=new WeakMap,wt=new WeakMap,pn=new WeakMap,Za),qr=new vl,Cl=(ja=class extends Fn{constructor(){super();ee(this,fn,!0);ee(this,Et);ee(this,hn);Z(this,hn,t=>{if(!Nt&&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,Et)||this.setEventListener(C(this,hn))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,Et))==null||t.call(this),Z(this,Et,void 0))}setEventListener(t){var n;Z(this,hn,t),(n=C(this,Et))==null||n.call(this),Z(this,Et,t(this.setOnline.bind(this)))}setOnline(t){C(this,fn)!==t&&(Z(this,fn,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return C(this,fn)}},fn=new WeakMap,Et=new WeakMap,hn=new WeakMap,ja),er=new Cl;function $r(){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 xl(e){return Math.min(1e3*2**e,3e4)}function Go(e){return(e??"online")==="online"?er.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 Kr(e){return e instanceof Bo}function Oo(e){let t=!1,n=0,r=!1,i;const o=$r(),s=g=>{var v;r||(f(new Bo(g)),(v=e.abort)==null||v.call(e))},u=()=>{t=!0},a=()=>{t=!1},l=()=>qr.isFocused()&&(e.networkMode==="always"||er.isOnline())&&e.canRun(),c=()=>Go(e.networkMode)&&e.canRun(),d=g=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,g),i==null||i(),o.resolve(g))},f=g=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,g),i==null||i(),o.reject(g))},p=()=>new Promise(g=>{var v;i=b=>{(r||l())&&g(b)},(v=e.onPause)==null||v.call(e)}).then(()=>{var g;i=void 0,r||(g=e.onContinue)==null||g.call(e)}),I=()=>{if(r)return;let g;const v=n===0?e.initialPromise:void 0;try{g=v??e.fn()}catch(b){g=Promise.reject(b)}Promise.resolve(g).then(d).catch(b=>{var S;if(r)return;const w=e.retry??(Nt?0:3),A=e.retryDelay??xl,E=typeof A=="function"?A(n,b):A,P=w===!0||typeof w=="number"&&n<w||typeof w=="function"&&w(n,b);if(t||!P){f(b);return}n++,(S=e.onFail)==null||S.call(e,n,b),bl(E).then(()=>l()?void 0:p()).then(()=>{t?f(b):I()})})};return{promise:o,cancel:s,continue:()=>(i==null||i(),o),cancelRetry:u,continueRetry:a,canStart:c,start:()=>(c()?I():p().then(I),o)}}function Al(){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 Be=Al(),To=(Ja=class{constructor(){ee(this,Zt)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),jr(this.gcTime)&&Z(this,Zt,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Nt?1/0:5*60*1e3))}clearGcTimeout(){C(this,Zt)&&(clearTimeout(C(this,Zt)),Z(this,Zt,void 0))}},Zt=new WeakMap,Ja),Sl=(Ya=class extends To{constructor(t){super();ee(this,nt);ee(this,gn);ee(this,mn);ee(this,$e);ee(this,Ve);ee(this,Wn);ee(this,jt);Z(this,jt,!1),Z(this,Wn,t.defaultOptions),this.setOptions(t.options),this.observers=[],Z(this,$e,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Z(this,gn,wl(this.options)),this.state=t.state??C(this,gn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=C(this,Ve))==null?void 0:t.promise}setOptions(t){this.options={...C(this,Wn),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,$e).remove(this)}setData(t,n){const r=Qr(this.state.data,t,this.options);return pe(this,nt,xt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){pe(this,nt,xt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=C(this,Ve))==null?void 0:r.promise;return(i=C(this,Ve))==null||i.cancel(t),n?n.then(Ue).catch(Ue):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,gn))}isActive(){return this.observers.some(t=>tt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Kn||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,Ve))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Ve))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,$e).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,Ve)&&(C(this,jt)?C(this,Ve).cancel({revert:!0}):C(this,Ve).cancelRetry()),this.scheduleGc()),C(this,$e).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pe(this,nt,xt).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,Ve))return C(this,Ve).continueRetry(),C(this,Ve).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:()=>(Z(this,jt,!0),r.signal)})},o=()=>{const d=ko(this.options,n),f={queryKey:this.queryKey,meta:this.meta};return i(f),Z(this,jt,!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),Z(this,mn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=s.fetchOptions)==null?void 0:l.meta))&&pe(this,nt,xt).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta});const u=d=>{var f,p,I,g;Kr(d)&&d.silent||pe(this,nt,xt).call(this,{type:"error",error:d}),Kr(d)||((p=(f=C(this,$e).config).onError)==null||p.call(f,d,this),(g=(I=C(this,$e).config).onSettled)==null||g.call(I,this.state.data,d,this)),this.scheduleGc()};return Z(this,Ve,Oo({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var f,p,I,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(v){u(v);return}(p=(f=C(this,$e).config).onSuccess)==null||p.call(f,d,this),(g=(I=C(this,$e).config).onSettled)==null||g.call(I,d,this.state.error,this),this.scheduleGc()},onError:u,onFail:(d,f)=>{pe(this,nt,xt).call(this,{type:"failed",failureCount:d,error:f})},onPause:()=>{pe(this,nt,xt).call(this,{type:"pause"})},onContinue:()=>{pe(this,nt,xt).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),C(this,Ve).start()}},gn=new WeakMap,mn=new WeakMap,$e=new WeakMap,Ve=new WeakMap,Wn=new WeakMap,jt=new WeakMap,nt=new WeakSet,xt=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 Kr(i)&&i.revert&&C(this,mn)?{...C(this,mn),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),Be.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,$e).notify({query:this,type:"updated",action:t})})},Ya);function Vo(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Go(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function wl(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 El=(_a=class extends Fn{constructor(t={}){super();ee(this,ct);this.config=t,Z(this,ct,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 Sl({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){C(this,ct).has(t.queryHash)||(C(this,ct).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,ct).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,ct).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Be.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,ct).get(t)}getAll(){return[...C(this,ct).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){Be.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Be.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Be.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ct=new WeakMap,_a),Fl=(Ua=class extends To{constructor(t){super();ee(this,pt);ee(this,dt);ee(this,Ne);ee(this,Jt);this.mutationId=t.mutationId,Z(this,Ne,t.mutationCache),Z(this,dt,[]),this.state=t.state||Pl(),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,dt).includes(t)||(C(this,dt).push(t),this.clearGcTimeout(),C(this,Ne).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Z(this,dt,C(this,dt).filter(n=>n!==t)),this.scheduleGc(),C(this,Ne).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,dt).length||(this.state.status==="pending"?this.scheduleGc():C(this,Ne).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,I,g,v,b,w,A,E,P,S,O;Z(this,Jt,Oo({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(B,D)=>{pe(this,pt,Dt).call(this,{type:"failed",failureCount:B,error:D})},onPause:()=>{pe(this,pt,Dt).call(this,{type:"pause"})},onContinue:()=>{pe(this,pt,Dt).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,Ne).canRun(this)}));const n=this.state.status==="pending",r=!C(this,Jt).canStart();try{if(!n){pe(this,pt,Dt).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(i=C(this,Ne).config).onMutate)==null?void 0:o.call(i,t,this));const D=await((u=(s=this.options).onMutate)==null?void 0:u.call(s,t));D!==this.state.context&&pe(this,pt,Dt).call(this,{type:"pending",context:D,variables:t,isPaused:r})}const B=await C(this,Jt).start();return await((l=(a=C(this,Ne).config).onSuccess)==null?void 0:l.call(a,B,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,B,t,this.state.context)),await((p=(f=C(this,Ne).config).onSettled)==null?void 0:p.call(f,B,null,this.state.variables,this.state.context,this)),await((g=(I=this.options).onSettled)==null?void 0:g.call(I,B,null,t,this.state.context)),pe(this,pt,Dt).call(this,{type:"success",data:B}),B}catch(B){try{throw await((b=(v=C(this,Ne).config).onError)==null?void 0:b.call(v,B,t,this.state.context,this)),await((A=(w=this.options).onError)==null?void 0:A.call(w,B,t,this.state.context)),await((P=(E=C(this,Ne).config).onSettled)==null?void 0:P.call(E,void 0,B,this.state.variables,this.state.context,this)),await((O=(S=this.options).onSettled)==null?void 0:O.call(S,void 0,B,t,this.state.context)),B}finally{pe(this,pt,Dt).call(this,{type:"error",error:B})}}finally{C(this,Ne).runNext(this)}}},dt=new WeakMap,Ne=new WeakMap,Jt=new WeakMap,pt=new WeakSet,Dt=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),Be.batch(()=>{C(this,dt).forEach(r=>{r.onMutationUpdate(t)}),C(this,Ne).notify({mutation:this,type:"updated",action:t})})},Ua);function Pl(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var kl=(Qa=class extends Fn{constructor(t={}){super();ee(this,Je);ee(this,Zn);this.config=t,Z(this,Je,new Map),Z(this,Zn,Date.now())}build(t,n,r){const i=new Fl({mutationCache:this,mutationId:++Wr(this,Zn)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=tr(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=tr(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(tr(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(tr(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Be.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){Be.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Be.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ue))))}},Je=new WeakMap,Zn=new WeakMap,Qa);function tr(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,I;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=((I=t.state.data)==null?void 0:I.pageParams)||[];let u={pages:[],pageParams:[]},a=0;const l=async()=>{let g=!1;const v=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},b=ko(t.options,t.fetchOptions),w=async(A,E,P)=>{if(g)return Promise.reject();if(E==null&&A.pages.length)return Promise.resolve(A);const S={queryKey:t.queryKey,pageParam:E,direction:P?"backward":"forward",meta:t.options.meta};v(S);const O=await b(S),{maxPages:B}=t.options,D=P?Il:yl;return{pages:D(A.pages,O,B),pageParams:D(A.pageParams,E,B)}};if(i&&o.length){const A=i==="backward",E=A?Gl:Do,P={pages:o,pageParams:s},S=E(r,P);u=await w(P,S,A)}else{const A=e??o.length;do{const E=a===0?s[0]??r.initialPageParam:Do(r,u);if(a>0&&E==null)break;u=await w(u,E),a++}while(a<A)}return u};t.options.persister?t.fetchFn=()=>{var g,v;return(v=(g=t.options).persister)==null?void 0:v.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 Gl(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 Bl=(qa=class{constructor(e={}){ee(this,we);ee(this,Ft);ee(this,Pt);ee(this,bn);ee(this,yn);ee(this,kt);ee(this,In);ee(this,vn);Z(this,we,e.queryCache||new El),Z(this,Ft,e.mutationCache||new kl),Z(this,Pt,e.defaultOptions||{}),Z(this,bn,new Map),Z(this,yn,new Map),Z(this,kt,0)}mount(){Wr(this,kt)._++,C(this,kt)===1&&(Z(this,In,qr.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,we).onFocus())})),Z(this,vn,er.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,we).onOnline())})))}unmount(){var e,t;Wr(this,kt)._--,C(this,kt)===0&&((e=C(this,In))==null||e.call(this),Z(this,In,void 0),(t=C(this,vn))==null||t.call(this),Z(this,vn,void 0))}isFetching(e){return C(this,we).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,Ft).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,we).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,we).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(rn(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return C(this,we).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,we).get(r.queryHash),o=i==null?void 0:i.state.data,s=ml(t,o);if(s!==void 0)return C(this,we).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Be.batch(()=>C(this,we).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,we).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,we);Be.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,we),r={type:"active",...e};return Be.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Be.batch(()=>C(this,we).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Ue).catch(Ue)}invalidateQueries(e={},t={}){return Be.batch(()=>{if(C(this,we).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=Be.batch(()=>C(this,we).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(Ue)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Ue)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,we).build(this,t);return n.isStaleByTime(rn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ue).catch(Ue)}fetchInfiniteQuery(e){return e.behavior=Ro(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ue).catch(Ue)}ensureInfiniteQueryData(e){return e.behavior=Ro(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return er.isOnline()?C(this,Ft).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,we)}getMutationCache(){return C(this,Ft)}getDefaultOptions(){return C(this,Pt)}setDefaultOptions(e){Z(this,Pt,e)}setQueryDefaults(e,t){C(this,bn).set(Pn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,bn).values()];let n={};return t.forEach(r=>{kn(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){C(this,yn).set(Pn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,yn).values()];let n={};return t.forEach(r=>{kn(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,Pt).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===Kn&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,Pt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,we).clear(),C(this,Ft).clear()}},we=new WeakMap,Ft=new WeakMap,Pt=new WeakMap,bn=new WeakMap,yn=new WeakMap,kt=new WeakMap,In=new WeakMap,vn=new WeakMap,qa),Ol=($a=class extends Fn{constructor(t,n){super();ee(this,be);ee(this,He);ee(this,de);ee(this,jn);ee(this,Me);ee(this,Yt);ee(this,Cn);ee(this,Gt);ee(this,ft);ee(this,Jn);ee(this,xn);ee(this,An);ee(this,_t);ee(this,Ut);ee(this,Bt);ee(this,Sn,new Set);this.options=n,Z(this,He,t),Z(this,ft,null),Z(this,Gt,$r()),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,de).addObserver(this),No(C(this,de),this.options)?pe(this,be,qn).call(this):this.updateResult(),pe(this,be,yo).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ei(C(this,de),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ei(C(this,de),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pe(this,be,Io).call(this),pe(this,be,vo).call(this),C(this,de).removeObserver(this)}setOptions(t,n){const r=this.options,i=C(this,de);if(this.options=C(this,He).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof tt(this.options.enabled,C(this,de))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pe(this,be,Co).call(this),C(this,de).setOptions(this.options),r._defaulted&&!_r(this.options,r)&&C(this,He).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,de),observer:this});const o=this.hasListeners();o&&Mo(C(this,de),i,this.options,r)&&pe(this,be,qn).call(this),this.updateResult(n),o&&(C(this,de)!==i||tt(this.options.enabled,C(this,de))!==tt(r.enabled,C(this,de))||rn(this.options.staleTime,C(this,de))!==rn(r.staleTime,C(this,de)))&&pe(this,be,go).call(this);const s=pe(this,be,mo).call(this);o&&(C(this,de)!==i||tt(this.options.enabled,C(this,de))!==tt(r.enabled,C(this,de))||s!==C(this,Bt))&&pe(this,be,bo).call(this,s)}getOptimisticResult(t){const n=C(this,He).getQueryCache().build(C(this,He),t),r=this.createResult(n,t);return Vl(this,r)&&(Z(this,Me,r),Z(this,Cn,this.options),Z(this,Yt,C(this,de).state)),r}getCurrentResult(){return C(this,Me)}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,Sn).add(t)}getCurrentQuery(){return C(this,de)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,He).defaultQueryOptions(t),r=C(this,He).getQueryCache().build(C(this,He),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return pe(this,be,qn).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,Me)))}createResult(t,n){var B;const r=C(this,de),i=this.options,o=C(this,Me),s=C(this,Yt),u=C(this,Cn),l=t!==r?t.state:C(this,jn),{state:c}=t;let d={...c},f=!1,p;if(n._optimisticResults){const D=this.hasListeners(),j=!D&&No(t,n),L=D&&Mo(t,r,n,i);(j||L)&&(d={...d,...Vo(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:I,errorUpdatedAt:g,status:v}=d;if(n.select&&d.data!==void 0)if(o&&d.data===(s==null?void 0:s.data)&&n.select===C(this,Jn))p=C(this,xn);else try{Z(this,Jn,n.select),p=n.select(d.data),p=Qr(o==null?void 0:o.data,p,n),Z(this,xn,p),Z(this,ft,null)}catch(D){Z(this,ft,D)}else p=d.data;if(n.placeholderData!==void 0&&p===void 0&&v==="pending"){let D;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData))D=o.data;else if(D=typeof n.placeholderData=="function"?n.placeholderData((B=C(this,An))==null?void 0:B.state.data,C(this,An)):n.placeholderData,n.select&&D!==void 0)try{D=n.select(D),Z(this,ft,null)}catch(j){Z(this,ft,j)}D!==void 0&&(v="success",p=Qr(o==null?void 0:o.data,D,n),f=!0)}C(this,ft)&&(I=C(this,ft),p=C(this,xn),g=Date.now(),v="error");const b=d.fetchStatus==="fetching",w=v==="pending",A=v==="error",E=w&&b,P=p!==void 0,O={status:v,fetchStatus:d.fetchStatus,isPending:w,isSuccess:v==="success",isError:A,isInitialLoading:E,isLoading:E,data:p,dataUpdatedAt:d.dataUpdatedAt,error:I,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:b,isRefetching:b&&!w,isLoadingError:A&&!P,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:A&&P,isStale:ti(t,n),refetch:this.refetch,promise:C(this,Gt)};if(this.options.experimental_prefetchInRender){const D=R=>{O.status==="error"?R.reject(O.error):O.data!==void 0&&R.resolve(O.data)},j=()=>{const R=Z(this,Gt,O.promise=$r());D(R)},L=C(this,Gt);switch(L.status){case"pending":t.queryHash===r.queryHash&&D(L);break;case"fulfilled":(O.status==="error"||O.data!==L.value)&&j();break;case"rejected":(O.status!=="error"||O.error!==L.reason)&&j();break}}return O}updateResult(t){const n=C(this,Me),r=this.createResult(C(this,de),this.options);if(Z(this,Yt,C(this,de).state),Z(this,Cn,this.options),C(this,Yt).data!==void 0&&Z(this,An,C(this,de)),_r(r,n))return;Z(this,Me,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,Sn).size)return!0;const a=new Set(u??C(this,Sn));return this.options.throwOnError&&a.add("error"),Object.keys(C(this,Me)).some(l=>{const c=l;return C(this,Me)[c]!==n[c]&&a.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),pe(this,be,pl).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pe(this,be,yo).call(this)}},He=new WeakMap,de=new WeakMap,jn=new WeakMap,Me=new WeakMap,Yt=new WeakMap,Cn=new WeakMap,Gt=new WeakMap,ft=new WeakMap,Jn=new WeakMap,xn=new WeakMap,An=new WeakMap,_t=new WeakMap,Ut=new WeakMap,Bt=new WeakMap,Sn=new WeakMap,be=new WeakSet,qn=function(t){pe(this,be,Co).call(this);let n=C(this,de).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ue)),n},go=function(){pe(this,be,Io).call(this);const t=rn(this.options.staleTime,C(this,de));if(Nt||C(this,Me).isStale||!jr(t))return;const r=So(C(this,Me).dataUpdatedAt,t)+1;Z(this,_t,setTimeout(()=>{C(this,Me).isStale||this.updateResult()},r))},mo=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,de)):this.options.refetchInterval)??!1},bo=function(t){pe(this,be,vo).call(this),Z(this,Bt,t),!(Nt||tt(this.options.enabled,C(this,de))===!1||!jr(C(this,Bt))||C(this,Bt)===0)&&Z(this,Ut,setInterval(()=>{(this.options.refetchIntervalInBackground||qr.isFocused())&&pe(this,be,qn).call(this)},C(this,Bt)))},yo=function(){pe(this,be,go).call(this),pe(this,be,bo).call(this,pe(this,be,mo).call(this))},Io=function(){C(this,_t)&&(clearTimeout(C(this,_t)),Z(this,_t,void 0))},vo=function(){C(this,Ut)&&(clearInterval(C(this,Ut)),Z(this,Ut,void 0))},Co=function(){const t=C(this,He).getQueryCache().build(C(this,He),this.options);if(t===C(this,de))return;const n=C(this,de);Z(this,de,t),Z(this,jn,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},pl=function(t){Be.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,Me))}),C(this,He).getQueryCache().notify({query:C(this,de),type:"observerResultsUpdated"})})},$a);function Tl(e,t){return tt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function No(e,t){return Tl(e,t)||e.state.data!==void 0&&ei(e,t,t.refetchOnMount)}function ei(e,t,n){if(tt(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&ti(e,t)}return!1}function Mo(e,t,n,r){return(e!==t||tt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&ti(e,n)}function ti(e,t){return tt(t.enabled,e)!==!1&&e.isStaleByTime(rn(t.staleTime,e))}function Vl(e,t){return!_r(e.getCurrentResult(),t)}var Lo=re.createContext(void 0),Rl=e=>{const t=re.useContext(Lo);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Dl=({client:e,children:t})=>(re.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),T.jsx(Lo.Provider,{value:e,children:t})),Xo=re.createContext(!1),Nl=()=>re.useContext(Xo);Xo.Provider;function Ml(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Ll=re.createContext(Ml()),Xl=()=>re.useContext(Ll);function zl(e,t){return typeof e=="function"?e(...t):!!e}function zo(){}var Hl=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Wl=e=>{re.useEffect(()=>{e.clearReset()},[e])},Zl=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&zl(n,[e.error,r]),jl=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},Jl=(e,t)=>e.isLoading&&e.isFetching&&!t,Yl=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Ho=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function _l(e,t,n){var c,d,f,p,I;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=Rl(),i=Nl(),o=Xl(),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",jl(s),Hl(s,o),Wl(o);const u=!r.getQueryCache().get(s.queryHash),[a]=re.useState(()=>new t(r,s)),l=a.getOptimisticResult(s);if(re.useSyncExternalStore(re.useCallback(g=>{const v=i?zo:a.subscribe(Be.batchCalls(g));return a.updateResult(),v},[a,i]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),re.useEffect(()=>{a.setOptions(s,{listeners:!1})},[s,a]),Yl(s,l))throw Ho(s,a,o);if(Zl({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&&!Nt&&Jl(l,i)){const g=u?Ho(s,a,o):(I=r.getQueryCache().get(s.queryHash))==null?void 0:I.promise;g==null||g.catch(zo).finally(()=>{a.updateResult()})}return s.notifyOnChangeProps?l:a.trackResult(l)}function Mt(e,t){return _l(e,Ol)}const Wo=G.createContext(void 0),mt=()=>{const e=G.useContext(Wo);if(!e)throw new Error("Must be used inside FrontendClientProvider");return e},Ul=({children:e,client:t})=>{const n=new Bl({defaultOptions:{queries:{staleTime:36e5,refetchOnWindowFocus:!1}}});return T.jsx(Dl,{client:n,children:T.jsx(Wo.Provider,{value:t,children:e})})};function Zo(e){return typeof e=="object"&&e&&"__lv"in e?e.__lv.value:e}function Ql(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 ql(e){const t=Ql(e.value);if(!e.prop.default&&typeof t>"u")return["required"];if(!e.prop.default&&Array.isArray(t)&&!t.length)return["empty array"]}function $l(e){const t=Zo(e.value);if(t==null||typeof t>"u")return["required"]}function Kl(e){const{prop:t,value:n}=e,r=Zo(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 ec(e){const{prop:t,value:n}=e;if(!t.default&&(n==null||typeof n>"u"))return["required"]}function tc(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 nc(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=tc(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 Gn=["$.service.db","$.interface.http","$.interface.apphook","$.interface.timer"],ni=G.createContext(void 0),nr=()=>{const e=G.useContext(ni);if(!e)throw new Error("Must be used inside provider");return e},jo=({children:e,props:t})=>{const n=mt(),r=G.useId(),{component:i,configuredProps:o,propNames:s,userId:u}=t,a=i.key,[l,c]=G.useState(0),[d,f]=G.useState({}),[p,I]=G.useState(!1),[g,v]=G.useState({}),[b,w]=G.useState({});G.useEffect(()=>{w({})},[i.key]);const A=M=>b[M.name];let E=o||{};const[P,S]=G.useState(E),O=t.onUpdateConfiguredProps||S;t.onUpdateConfiguredProps||(E=P);const[B,D]=G.useState(),[j,L]=G.useState(),R={userId:u,componentId:a,configuredProps:E,dynamicPropsId:B==null?void 0:B.id},te={...R},{isFetching:se}=Mt({queryKey:["dynamicProps",te],queryFn:async()=>{var W;const{dynamicProps:M}=await n.componentReloadProps(R);return M&&((W=t.onUpdateDynamicProps)==null||W.call(t,M),D(M)),L(void 0),[]},enabled:j!=null}),[z,U]=G.useState([]);G.useEffect(()=>{ne()},[E]);let Q=(B==null?void 0:B.configurableProps)||t.component.configurable_props||[];if(s!=null&&s.length){const M=[];for(const W of Q)s.findIndex(q=>W.name===q)>=0&&M.push(W);Q=M}j!=null&&(Q=Q.slice(0,j+1));const ce=(M,W)=>{const q=[];if(M.optional||M.hidden||M.disabled||Gn.includes(M.type))return[];if(M.type==="app"){const he=d[M.name];if(he){const ke=he.extra.app;q.push(...nc({prop:M,value:W,app:ke})??[])}else q.push("field not registered")}else M.type==="boolean"?q.push(...$l({prop:M,value:W})??[]):M.type==="integer"?q.push(...Kl({prop:M,value:W})??[]):M.type==="string"?q.push(...ec({prop:M,value:W})??[]):M.type==="string[]"&&q.push(...ql({prop:M,value:W})??[]);return q},ye=M=>{let W;for(let q=0;q<Q.length;q++){const he=Q[q];if(he.hidden||he.optional&&!A(he))continue;if(M[he.name]===void 0&&W==null&&(he.type==="app"||he.remoteOptions)){W=q;break}}c(W)},y=M=>{O(M),ye(M);const W={};for(let q=0;q<Q.length;q++){const he=Q[q],ke=M[he.name],Ye=ce(he,ke);Ye.length&&(W[he.name]=Ye)}v(W)};G.useEffect(()=>{const M={};for(const W of Q){if(W.hidden||Gn.includes(W.type)||W.optional&&!A(W))continue;const q=E[W.name];q===void 0?"default"in W&&W.default!=null&&(M[W.name]=W.default):W.type==="integer"&&typeof q!="number"?delete M[W.name]:M[W.name]=q}gl(M,E)||y(M)},[Q]);const[xe,le]=G.useState(u);G.useEffect(()=>{xe!==u&&(y({}),le(u))},[u]);const m=(M,W)=>{const q=Q[M],he={...E};W===void 0?delete he[q.name]:he[q.name]=W,O(he),q.reloadProps&&L(M),(q.type==="app"||q.remoteOptions)&&ye(he);const ke=ce(q,W),Ye={...g};ke.length?Ye[q.name]=ke:delete Ye[q.name],v(Ye)},me=(M,W)=>{const q={...b};W?q[M.name]=!0:delete q[M.name];const he=Q.findIndex(ke=>ke.name===M.name);W?(o==null?void 0:o[M.name])!==void 0?m(he,o[M.name]):"default"in M&&M.default!=null&&m(he,M.default):m(he,void 0),w(q)},ne=()=>{const M=[];for(const W of Q){if(!W||W.optional||W.hidden||Gn.includes(W.type))continue;const q=E[W.name];ce(W,q).length&&M.push(W.name)}U(M)},fe=M=>{f(W=>(W[M.prop.name]=M,W))},Pe={id:r,isValid:!Object.keys(g).length,props:t,userId:u,component:i,configurableProps:Q,configuredProps:E,dynamicProps:B,dynamicPropsQueryIsFetching:se,errors:g,fields:d,optionalPropIsEnabled:A,optionalPropSetEnabled:me,propsNeedConfiguring:z,queryDisabledIdx:l,registerField:fe,setConfiguredProp:m,setSubmitting:I,submitting:p};return T.jsx(ni.Provider,{value:Pe,children:e})};function Lt(e){"@babel/helpers - typeof";return Lt=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},Lt(e)}function rc(e,t){if(Lt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Lt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jo(e){var t=rc(e,"string");return Lt(t)=="symbol"?t:t+""}function Bn(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 Yo(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?Yo(Object(n),!0).forEach(function(r){Bn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yo(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ic(e){if(Array.isArray(e))return e}function oc(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 _o(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 sc(){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 bt(e,t){return ic(e)||oc(e,t)||_o(e,t)||sc()}function uc(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 st(e,t){if(e==null)return{};var n,r,i=uc(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 ac=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Uo(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,I=st(e,ac),g=G.useState(u!==void 0?u:n),v=bt(g,2),b=v[0],w=v[1],A=G.useState(a!==void 0?a:i),E=bt(A,2),P=E[0],S=E[1],O=G.useState(p!==void 0?p:s),B=bt(O,2),D=B[0],j=B[1],L=G.useCallback(function(ce,ye){typeof l=="function"&&l(ce,ye),j(ce)},[l]),R=G.useCallback(function(ce,ye){var y;typeof c=="function"&&(y=c(ce,ye)),w(y!==void 0?y:ce)},[c]),te=G.useCallback(function(){typeof f=="function"&&f(),S(!0)},[f]),se=G.useCallback(function(){typeof d=="function"&&d(),S(!1)},[d]),z=u!==void 0?u:b,U=a!==void 0?a:P,Q=p!==void 0?p:D;return Y(Y({},I),{},{inputValue:z,menuIsOpen:U,onChange:L,onInputChange:R,onMenuClose:se,onMenuOpen:te,value:Q})}function _(){return _=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},_.apply(null,arguments)}function lc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qo(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 cc(e,t,n){return t&&Qo(e.prototype,t),n&&Qo(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 dc(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 rr(e){return rr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},rr(e)}function qo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qo=function(){return!!e})()}function pc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fc(e,t){if(t&&(Lt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pc(e)}function hc(e){var t=qo();return function(){var n,r=rr(e);if(t){var i=rr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return fc(this,n)}}function gc(e){if(Array.isArray(e))return ri(e)}function mc(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bc(){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 on(e){return gc(e)||mc(e)||_o(e)||bc()}function yc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const Ic=Math.min,vc=Math.max,ir=Math.round,or=Math.floor,sr=e=>({x:e,y:e});function Cc(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 ur(){return typeof window<"u"}function $o(e){return es(e)?(e.nodeName||"").toLowerCase():"#document"}function yt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ko(e){var t;return(t=(es(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function es(e){return ur()?e instanceof Node||e instanceof yt(e).Node:!1}function xc(e){return ur()?e instanceof Element||e instanceof yt(e).Element:!1}function oi(e){return ur()?e instanceof HTMLElement||e instanceof yt(e).HTMLElement:!1}function ts(e){return!ur()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof yt(e).ShadowRoot}function ns(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 Ac(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Sc(e){return["html","body","#document"].includes($o(e))}function si(e){return yt(e).getComputedStyle(e)}function wc(e){if($o(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ts(e)&&e.host||Ko(e);return ts(t)?t.host:t}function rs(e){const t=wc(e);return Sc(t)?e.ownerDocument?e.ownerDocument.body:e.body:oi(t)&&ns(t)?t:rs(t)}function ar(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=rs(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=yt(i);if(o){const u=ui(s);return t.concat(s,s.visualViewport||[],ns(i)?i:[],u&&n?ar(u):[])}return t.concat(i,ar(i,[],n))}function ui(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ec(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=ir(n)!==o||ir(r)!==s;return u&&(n=o,r=s),{width:n,height:r,$:u}}function ai(e){return xc(e)?e:e.contextElement}function is(e){const t=ai(e);if(!oi(t))return sr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Ec(t);let s=(o?ir(n.width):n.width)/r,u=(o?ir(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!u||!Number.isFinite(u))&&(u=1),{x:s,y:u}}const Fc=sr(0);function Pc(e){const t=yt(e);return!Ac()||!t.visualViewport?Fc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function kc(e,t,n){return!1}function os(e,t,n,r){t===void 0&&(t=!1);const i=e.getBoundingClientRect(),o=ai(e);let s=sr(1);t&&(s=is(e));const u=kc()?Pc(o):sr(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=yt(o),p=r;let I=f,g=ui(I);for(;g&&r&&p!==I;){const v=is(g),b=g.getBoundingClientRect(),w=si(g),A=b.left+(g.clientLeft+parseFloat(w.paddingLeft))*v.x,E=b.top+(g.clientTop+parseFloat(w.paddingTop))*v.y;a*=v.x,l*=v.y,c*=v.x,d*=v.y,a+=A,l+=E,I=yt(g),g=ui(I)}}return Cc({width:c,height:d,x:a,y:l})}function Gc(e,t){let n=null,r;const i=Ko(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=or(c),I=or(i.clientWidth-(l+d)),g=or(i.clientHeight-(c+f)),v=or(l),w={rootMargin:-p+"px "+-I+"px "+-g+"px "+-v+"px",threshold:vc(0,Ic(1,a))||1};let A=!0;function E(P){const S=P[0].intersectionRatio;if(S!==a){if(!A)return s();S?s(!1,S):r=setTimeout(()=>{s(!1,1e-7)},1e3)}A=!1}try{n=new IntersectionObserver(E,{...w,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,w)}n.observe(e)}return s(!0),o}function Bc(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?ar(l):[],...ar(t)]:[];c.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),o&&b.addEventListener("resize",n)});const d=l&&u?Gc(l,n):null;let f=-1,p=null;s&&(p=new ResizeObserver(b=>{let[w]=b;w&&w.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var A;(A=p)==null||A.observe(t)})),n()}),l&&!a&&p.observe(l),p.observe(t));let I,g=a?os(e):null;a&&v();function v(){const b=os(e);g&&(b.x!==g.x||b.y!==g.y||b.width!==g.width||b.height!==g.height)&&n(),g=b,I=requestAnimationFrame(v)}return n(),()=>{var b;c.forEach(w=>{i&&w.removeEventListener("scroll",n),o&&w.removeEventListener("resize",n)}),d==null||d(),(b=p)==null||b.disconnect(),p=null,a&&cancelAnimationFrame(I)}}var li=G.useLayoutEffect,Oc=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],lr=function(){};function Tc(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Vc(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(Tc(e,s)));return o.filter(function(u){return u}).map(function(u){return String(u).trim()}).join(" ")}var cr=function(t){return Wc(t)?t.filter(Boolean):Lt(t)==="object"&&t!==null?[t]:[]},ss=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=st(t,Oc);return Y({},n)},Se=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 dr(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Rc(e){return dr(e)?window.innerHeight:e.clientHeight}function us(e){return dr(e)?window.pageYOffset:e.scrollTop}function pr(e,t){if(dr(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Dc(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 Nc(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function fr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:lr,i=us(e),o=t-i,s=10,u=0;function a(){u+=s;var l=Nc(u,i,o,n);pr(e,l),u<n?window.requestAnimationFrame(a):r(e)}a()}function as(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?pr(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&pr(e,Math.max(t.offsetTop-i,0))}function Mc(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 ls(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Lc(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var cs=!1,Xc={get passive(){return cs=!0}},hr=typeof window<"u"?window:{};hr.addEventListener&&hr.removeEventListener&&(hr.addEventListener("p",lr,Xc),hr.removeEventListener("p",lr,!1));var zc=cs;function Hc(e){return e!=null}function Wc(e){return Array.isArray(e)}function On(e,t,n){return e?t:n}function Sy(e){return e}function wy(e){return e}var Zc=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=bt(s,1),a=u[0];return!r.includes(a)});return o.reduce(function(s,u){var a=bt(u,2),l=a[0],c=a[1];return s[l]=c,s},{})},jc=["children","innerProps"],Jc=["children","innerProps"];function Yc(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,s=e.isFixedPosition,u=e.controlHeight,a=Dc(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,I=f.height,g=f.top,v=n.offsetParent.getBoundingClientRect(),b=v.top,w=s?window.innerHeight:Rc(a),A=us(a),E=parseInt(getComputedStyle(n).marginBottom,10),P=parseInt(getComputedStyle(n).marginTop,10),S=b-P,O=w-g,B=S+A,D=d-A-g,j=p-w+A+E,L=A+g-P,R=160;switch(i){case"auto":case"bottom":if(O>=I)return{placement:"bottom",maxHeight:t};if(D>=I&&!s)return o&&fr(a,j,R),{placement:"bottom",maxHeight:t};if(!s&&D>=r||s&&O>=r){o&&fr(a,j,R);var te=s?O-E:D-E;return{placement:"bottom",maxHeight:te}}if(i==="auto"||s){var se=t,z=s?S:B;return z>=r&&(se=Math.min(z-E-u,t)),{placement:"top",maxHeight:se}}if(i==="bottom")return o&&pr(a,j),{placement:"bottom",maxHeight:t};break;case"top":if(S>=I)return{placement:"top",maxHeight:t};if(B>=I&&!s)return o&&fr(a,L,R),{placement:"top",maxHeight:t};if(!s&&B>=r||s&&S>=r){var U=t;return(!s&&B>=r||s&&S>=r)&&(U=s?S-P:B-P),o&&fr(a,L,R),{placement:"top",maxHeight:U}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return l}function _c(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var ds=function(t){return t==="auto"?"bottom":t},Uc=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"},Bn(r,_c(i),"100%"),Bn(r,"position","absolute"),Bn(r,"width","100%"),Bn(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})},ps=G.createContext(null),Qc=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=G.useContext(ps)||{},c=l.setPortalPlacement,d=G.useRef(null),f=G.useState(i),p=bt(f,2),I=p[0],g=p[1],v=G.useState(null),b=bt(v,2),w=b[0],A=b[1],E=a.spacing.controlHeight;return li(function(){var P=d.current;if(P){var S=s==="fixed",O=u&&!S,B=Yc({maxHeight:i,menuEl:P,minHeight:r,placement:o,shouldScroll:O,isFixedPosition:S,controlHeight:E});g(B.maxHeight),A(B.placement),c==null||c(B.placement)}},[i,o,s,u,r,c,E]),n({ref:d,placerProps:Y(Y({},t),{},{placement:w||ds(o),maxHeight:I})})},qc=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return J.jsx("div",_({},Se(t,"menu",{menu:!0}),{ref:r},i),n)},$c=qc,Kc=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})},ed=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,o=t.isMulti;return J.jsx("div",_({},Se(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},fs=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")})},td=fs,nd=fs,rd=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,o=st(t,jc);return J.jsx("div",_({},Se(Y(Y({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},id=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,o=st(t,Jc);return J.jsx("div",_({},Se(Y(Y({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},od=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}},sd=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,o=t.innerProps,s=t.menuPlacement,u=t.menuPosition,a=G.useRef(null),l=G.useRef(null),c=G.useState(ds(s)),d=bt(c,2),f=d[0],p=d[1],I=G.useMemo(function(){return{setPortalPlacement:p}},[]),g=G.useState(null),v=bt(g,2),b=v[0],w=v[1],A=G.useCallback(function(){if(i){var O=Mc(i),B=u==="fixed"?0:window.pageYOffset,D=O[f]+B;(D!==(b==null?void 0:b.offset)||O.left!==(b==null?void 0:b.rect.left)||O.width!==(b==null?void 0:b.rect.width))&&w({offset:D,rect:O})}},[i,u,f,b==null?void 0:b.offset,b==null?void 0:b.rect.left,b==null?void 0:b.rect.width]);li(function(){A()},[A]);var E=G.useCallback(function(){typeof l.current=="function"&&(l.current(),l.current=null),i&&a.current&&(l.current=Bc(i,a.current,A,{elementResize:"ResizeObserver"in window}))},[i,A]);li(function(){E()},[E]);var P=G.useCallback(function(O){a.current=O,E()},[E]);if(!n&&u!=="fixed"||!b)return null;var S=J.jsx("div",_({ref:P},Se(Y(Y({},t),{},{offset:b.offset,position:u,rect:b.rect}),"menuPortal",{"menu-portal":!0}),o),r);return J.jsx(ps.Provider,{value:I},n?Zr.createPortal(S,n):S)},ud=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},ad=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,o=t.isRtl;return J.jsx("div",_({},Se(t,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},ld=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")})},cd=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,o=t.hasValue;return J.jsx("div",_({},Se(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},dd=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},pd=function(t){var n=t.children,r=t.innerProps;return J.jsx("div",_({},Se(t,"indicatorsContainer",{indicators:!0}),r),n)},hs,fd=["size"],hd=["innerProps","isRtl","size"];function gd(){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 md=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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYX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RhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:gd},gs=function(t){var n=t.size,r=st(t,fd);return J.jsx("svg",_({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:md},r))},ci=function(t){return J.jsx(gs,_({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"}))},ms=function(t){return J.jsx(gs,_({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"}))},bs=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}})},bd=bs,yd=function(t){var n=t.children,r=t.innerProps;return J.jsx("div",_({},Se(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||J.jsx(ms,null))},Id=bs,vd=function(t){var n=t.children,r=t.innerProps;return J.jsx("div",_({},Se(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||J.jsx(ci,null))},Cd=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})},xd=function(t){var n=t.innerProps;return J.jsx("span",_({},n,Se(t,"indicatorSeparator",{"indicator-separator":!0})))},Ad=J.keyframes(hs||(hs=yc([`
|
|
4
4
|
0%, 80%, 100% { opacity: 0; }
|