@camstack/addon-admin-ui 0.1.14 → 0.1.16
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/assets/__mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.mjs-CeLhKMin.js +1 -0
- package/dist/assets/__mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.mjs_commonjs-proxy-DXPQtD9p.js +1 -0
- package/dist/assets/__mfe_internal__admin_ui_host__loadShare___mf_0_trpc_mf_1_client__loadShare__.mjs-DIkg6-MH.js +6 -0
- package/dist/assets/__mfe_internal__admin_ui_host__loadShare___mf_0_trpc_mf_1_client__loadShare__.mjs_commonjs-proxy-WD2WouMQ.js +1 -0
- package/dist/assets/__mfe_internal__admin_ui_host__loadShare___mf_0_trpc_mf_1_react_mf_2_query__loadShare__.mjs-OcRSBqRe.js +1 -0
- package/dist/assets/__mfe_internal__admin_ui_host__loadShare___mf_0_trpc_mf_1_react_mf_2_query__loadShare__.mjs_commonjs-proxy-GvBGLFI2.js +1 -0
- package/dist/assets/__mfe_internal__admin_ui_host__loadShare__react__loadShare__.mjs-Dl4u0xYE.js +9 -0
- package/dist/assets/__mfe_internal__admin_ui_host__loadShare__react__loadShare__.mjs_commonjs-proxy-CSyOECfO.js +1 -0
- package/dist/assets/__mfe_internal__admin_ui_host__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs-C_6K4VBY.js +9 -0
- package/dist/assets/__mfe_internal__admin_ui_host__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs_commonjs-proxy-DrLZNXOX.js +1 -0
- package/dist/assets/__mfe_internal__admin_ui_host__loadShare__react_mf_2_dom__loadShare__.mjs-CzO_Esxm.js +9 -0
- package/dist/assets/__mfe_internal__admin_ui_host__loadShare__react_mf_2_dom__loadShare__.mjs_commonjs-proxy-xw6c6JeS.js +1 -0
- package/dist/assets/__mfe_internal__admin_ui_host__loadShare__react_mf_2_dom_mf_1_client__loadShare__.mjs-DNpf5SLz.js +25 -0
- package/dist/assets/__mfe_internal__admin_ui_host__loadShare__react_mf_2_dom_mf_1_client__loadShare__.mjs_commonjs-proxy-BEKtiDI3.js +1 -0
- package/dist/assets/_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-DlquBRmD.js +1 -0
- package/dist/assets/auth-records-BEfan3dC.js +1 -0
- package/dist/assets/capability-router-map-B3jHfbHt.js +1 -0
- package/dist/assets/devices-CVfa8e_5.js +1 -0
- package/dist/assets/hostInit-Bq0J4U4L.js +1 -0
- package/dist/assets/index-B3BmQjhl.js +1 -0
- package/dist/assets/index-BYRl5bfb.js +1 -0
- package/dist/assets/index-Bftw8yZ0.js +80 -0
- package/dist/assets/index-BqEwAQt-.js +1098 -0
- package/dist/assets/index-ByDDdVKJ.css +1 -0
- package/dist/assets/index-C5--Sp9A.js +80 -0
- package/dist/assets/index-CJH_U_aT.js +1 -0
- package/dist/assets/index-CLnkxPD7.js +1 -0
- package/dist/assets/index-gZlh9vZc.js +1 -0
- package/dist/assets/index-o6URf7uT.js +1 -0
- package/dist/assets/index-otlbS_ZJ.js +1 -0
- package/dist/assets/preload-helper-BlTxHScW.js +1 -0
- package/dist/assets/remoteEntry-qFyESaJr.js +1 -0
- package/dist/assets/schemas-XgIEoUz3.js +64 -0
- package/dist/assets/virtualExposes-_ivNhQLP.js +1 -0
- package/dist/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-cGbq1Btt.js +8 -0
- package/dist/index.html +9 -14
- package/dist/mf-entry-bootstrap-0.js +17 -0
- package/dist/server/addon.js +17 -42
- package/dist/server/addon.js.map +1 -1
- package/dist/sw.js +1 -1
- package/dist/workbox-9c191d2f.js +1 -0
- package/package.json +13 -7
- package/dist/assets/index-B2uWw-6M.js +0 -603
- package/dist/assets/index-QE1phGlM.css +0 -1
- package/dist/server/addon.d.ts +0 -11
- package/dist/vendor/react-dom-client.mjs +0 -4
- package/dist/vendor/react-dom.mjs +0 -7
- package/dist/vendor/react-jsx-runtime.mjs +0 -24
- package/dist/vendor/react.mjs +0 -16
- package/dist/workbox-b20fbdff.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as de,c as D,d as ye,e as V,f as De,g as N,h as q,i as te}from"./__mfe_internal__admin_ui_host__loadShare__react__loadShare__.mjs-Dl4u0xYE.js";import{c as Ie}from"./__mfe_internal__admin_ui_host__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs-C_6K4VBY.js";function ct(e,t){for(var s=0;s<t.length;s++){const r=t[s];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const n=Object.getOwnPropertyDescriptor(r,i);n&&Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var T=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(){}},lt=class extends T{#t;#e;#s;constructor(){super(),this.#s=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#s=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},J=new lt,ft={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},dt=class{#t=ft;#e=!1;setTimeoutProvider(e){this.#t=e}setTimeout(e,t){return this.#t.setTimeout(e,t)}clearTimeout(e){this.#t.clearTimeout(e)}setInterval(e,t){return this.#t.setInterval(e,t)}clearInterval(e){this.#t.clearInterval(e)}},E=new dt;function yt(e){setTimeout(e,0)}var Te=typeof window>"u"||"Deno"in globalThis;function b(){}function pt(e,t){return typeof e=="function"?e(t):e}function se(e){return typeof e=="number"&&e>=0&&e!==1/0}function qe(e,t){return Math.max(e+(t||0)-Date.now(),0)}function F(e,t){return typeof e=="function"?e(t):e}function O(e,t){return typeof e=="function"?e(t):e}function re(e,t){const{type:s="all",exact:r,fetchStatus:i,predicate:n,queryKey:a,stale:u}=e;if(a){if(r){if(t.queryHash!==pe(a,t.options))return!1}else if(!A(t.queryKey,a))return!1}if(s!=="all"){const o=t.isActive();if(s==="active"&&!o||s==="inactive"&&o)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||i&&i!==t.state.fetchStatus||n&&!n(t))}function ie(e,t){const{exact:s,status:r,predicate:i,mutationKey:n}=e;if(n){if(!t.options.mutationKey)return!1;if(s){if(I(t.options.mutationKey)!==I(n))return!1}else if(!A(t.options.mutationKey,n))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function pe(e,t){return(t?.queryKeyHashFn||I)(e)}function I(e){return JSON.stringify(e,(t,s)=>ne(s)?Object.keys(s).sort().reduce((r,i)=>(r[i]=s[i],r),{}):s)}function A(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(s=>A(e[s],t[s])):!1}var mt=Object.prototype.hasOwnProperty;function H(e,t,s=0){if(e===t)return e;if(s>500)return t;const r=Qe(e)&&Qe(t);if(!r&&!(ne(e)&&ne(t)))return t;const n=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),u=a.length,o=r?new Array(u):{};let c=0;for(let h=0;h<u;h++){const d=r?h:a[h],l=e[d],p=t[d];if(l===p){o[d]=l,(r?h<n:mt.call(e,d))&&c++;continue}if(l===null||p===null||typeof l!="object"||typeof p!="object"){o[d]=p;continue}const v=H(l,p,s+1);o[d]=v,v===l&&c++}return n===u&&c===n?e:o}function U(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(e[s]!==t[s])return!1;return!0}function Qe(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ne(e){if(!Pe(e))return!1;const t=e.constructor;if(t===void 0)return!0;const s=t.prototype;return!(!Pe(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Pe(e){return Object.prototype.toString.call(e)==="[object Object]"}function vt(e){return new Promise(t=>{E.setTimeout(t,e)})}function ae(e,t,s){return typeof s.structuralSharing=="function"?s.structuralSharing(e,t):s.structuralSharing!==!1?H(e,t):t}function gt(e){return e}function Ae(e,t,s=0){const r=[...e,t];return s&&r.length>s?r.slice(1):r}function _t(e,t,s=0){const r=[t,...e];return s&&r.length>s?r.slice(0,-1):r}var Z=Symbol();function xe(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Z?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function X(e,t){return typeof e=="function"?e(...t):!!e}function ke(e,t,s){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r||(r=!0,i.aborted?s():i.addEventListener("abort",s,{once:!0})),i)}),e}var x=(()=>{let e=()=>Te;return{isServer(){return e()},setIsServer(t){e=t}}})();function oe(){let e,t;const s=new Promise((i,n)=>{e=i,t=n});s.status="pending",s.catch(()=>{});function r(i){Object.assign(s,i),delete s.resolve,delete s.reject}return s.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},s.reject=i=>{r({status:"rejected",reason:i}),t(i)},s}function bt(e){let t;if(e.then(s=>(t=s,s),b)?.catch(b),t!==void 0)return{data:t}}function je(e){return e}function Ot(e){return{mutationKey:e.options.mutationKey,state:e.state,...e.options.scope&&{scope:e.options.scope},...e.meta&&{meta:e.meta}}}function St(e,t,s){const r=()=>{const i=e.promise?.then(t).catch(n=>s(n)?Promise.reject(new Error("redacted")):Promise.reject(n));return i?.catch(b),i};return{dehydratedAt:Date.now(),state:{...e.state,...e.state.data!==void 0&&{data:t(e.state.data)}},queryKey:e.queryKey,queryHash:e.queryHash,...e.state.status==="pending"&&{promise:r()},...e.meta&&{meta:e.meta},...e.queryType&&{queryType:e.queryType}}}function Ue(e){return e.state.isPaused}function Ke(e){return e.state.status==="success"}function Qt(e){return!0}function Pt(e,t={}){const s=t.shouldDehydrateMutation??e.getDefaultOptions().dehydrate?.shouldDehydrateMutation??Ue,r=e.getMutationCache().getAll().flatMap(o=>s(o)?[Ot(o)]:[]),i=t.shouldDehydrateQuery??e.getDefaultOptions().dehydrate?.shouldDehydrateQuery??Ke,n=t.shouldRedactErrors??e.getDefaultOptions().dehydrate?.shouldRedactErrors??Qt,a=t.serializeData??e.getDefaultOptions().dehydrate?.serializeData??je,u=e.getQueryCache().getAll().flatMap(o=>i(o)?[St(o,a,n)]:[]);return{mutations:r,queries:u}}function ue(e,t,s){if(typeof t!="object"||t===null)return;const r=e.getMutationCache(),i=e.getQueryCache(),n=s?.defaultOptions?.deserializeData??e.getDefaultOptions().hydrate?.deserializeData??je,a=t.mutations||[],u=t.queries||[];a.forEach(({state:o,...c})=>{r.build(e,{...e.getDefaultOptions().hydrate?.mutations,...s?.defaultOptions?.mutations,...c},o)}),u.forEach(({queryKey:o,state:c,queryHash:h,meta:d,promise:l,dehydratedAt:p,queryType:v})=>{const f=l?bt(l):void 0,y=c.data===void 0?f?.data:c.data,m=y===void 0?y:n(y);let _=i.get(h);const Q=_?.state.status==="pending",P=_?.state.fetchStatus==="fetching";if(_){const C=f&&p!==void 0&&p>_.state.dataUpdatedAt;if(c.dataUpdatedAt>_.state.dataUpdatedAt||C){const{fetchStatus:B,...R}=c;_.setState({...R,data:m,...c.status==="pending"&&m!==void 0&&{status:"success",...!P&&{fetchStatus:"idle"}}})}}else _=i.build(e,{...e.getDefaultOptions().hydrate?.queries,...s?.defaultOptions?.queries,queryKey:o,queryHash:h,meta:d,_type:v},{...c,data:m,fetchStatus:"idle",status:c.status==="pending"&&m!==void 0?"success":c.status});l&&!f&&!Q&&!P&&(p===void 0||p>_.state.dataUpdatedAt)&&_.fetch(void 0,{initialPromise:Promise.resolve(l).then(n)}).catch(b)})}var Le=yt;function Rt(){let e=[],t=0,s=u=>{u()},r=u=>{u()},i=Le;const n=u=>{t?e.push(u):i(()=>{s(u)})},a=()=>{const u=e;e=[],u.length&&i(()=>{r(()=>{u.forEach(o=>{s(o)})})})};return{batch:u=>{let o;t++;try{o=u()}finally{t--,t||a()}return o},batchCalls:u=>(...o)=>{n(()=>{u(...o)})},schedule:n,setNotifyFunction:u=>{s=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{i=u}}}var g=Rt(),wt=class extends T{#t=!0;#e;#s;constructor(){super(),this.#s=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),s=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#e||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#s=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(s=>{s(e)}))}isOnline(){return this.#t}},K=new wt;function Ct(e){return Math.min(1e3*2**e,3e4)}function Ne(e){return(e??"online")==="online"?K.isOnline():!0}var L=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Mt(e){return e instanceof L}function He(e){let t=!1,s=0,r;const i=oe(),n=()=>i.status!=="pending",a=f=>{if(!n()){const y=new L(f);l(y),e.onCancel?.(y)}},u=()=>{t=!0},o=()=>{t=!1},c=()=>J.isFocused()&&(e.networkMode==="always"||K.isOnline())&&e.canRun(),h=()=>Ne(e.networkMode)&&e.canRun(),d=f=>{n()||(r?.(),i.resolve(f))},l=f=>{n()||(r?.(),i.reject(f))},p=()=>new Promise(f=>{r=y=>{(n()||c())&&f(y)},e.onPause?.()}).then(()=>{r=void 0,n()||e.onContinue?.()}),v=()=>{if(n())return;let f;const y=s===0?e.initialPromise:void 0;try{f=y??e.fn()}catch(m){f=Promise.reject(m)}Promise.resolve(f).then(d).catch(m=>{if(n())return;const _=e.retry??(x.isServer()?0:3),Q=e.retryDelay??Ct,P=typeof Q=="function"?Q(s,m):Q,C=_===!0||typeof _=="number"&&s<_||typeof _=="function"&&_(s,m);if(t||!C){l(m);return}s++,e.onFail?.(s,m),vt(P).then(()=>c()?void 0:p()).then(()=>{t?l(m):v()})})};return{promise:i,status:()=>i.status,cancel:a,continue:()=>(r?.(),i),cancelRetry:u,continueRetry:o,canStart:h,start:()=>(h()?v():p().then(v),i)}}var Be=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),se(this.gcTime)&&(this.#t=E.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(x.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#t!==void 0&&(E.clearTimeout(this.#t),this.#t=void 0)}};function Et(e){return{onFetch:(t,s)=>{const r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,n=t.state.data?.pages||[],a=t.state.data?.pageParams||[];let u={pages:[],pageParams:[]},o=0;const c=async()=>{let h=!1;const d=v=>{ke(v,()=>t.signal,()=>h=!0)},l=xe(t.options,t.fetchOptions),p=async(v,f,y)=>{if(h)return Promise.reject(t.signal.reason);if(f==null&&v.pages.length)return Promise.resolve(v);const _=(()=>{const B={client:t.client,queryKey:t.queryKey,pageParam:f,direction:y?"backward":"forward",meta:t.options.meta};return d(B),B})(),Q=await l(_),{maxPages:P}=t.options,C=y?_t:Ae;return{pages:C(v.pages,Q,P),pageParams:C(v.pageParams,f,P)}};if(i&&n.length){const v=i==="backward",f=v?ze:he,y={pages:n,pageParams:a},m=f(r,y);u=await p(y,m,v)}else{const v=e??n.length;do{const f=o===0?a[0]??r.initialPageParam:he(r,u);if(o>0&&f==null)break;u=await p(u,f),o++}while(o<v)}return u};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},s):t.fetchFn=c}}}function he(e,{pages:t,pageParams:s}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,s[r],s):void 0}function ze(e,{pages:t,pageParams:s}){return t.length>0?e.getPreviousPageParam?.(t[0],t,s[0],s):void 0}function Ft(e,t){return t?he(e,t)!=null:!1}function Dt(e,t){return!t||!e.getPreviousPageParam?!1:ze(e,t)!=null}var Ge=class extends Be{#t;#e;#s;#r;#i;#n;#o;#a;constructor(e){super(),this.#a=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=we(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#t}get promise(){return this.#n?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#t=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=we(this.options);t.data!==void 0&&(this.setState(Re(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){const s=ae(this.state.data,e,this.options);return this.#u({data:s,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),s}setState(e){this.#u({type:"setState",state:e})}cancel(e){const t=this.#n?.promise;return this.#n?.cancel(e),t?t.then(b).catch(b):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>O(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Z||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>F(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!qe(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#n&&(this.#a||this.#c()?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#u({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#n?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(e&&this.setOptions(e),!this.options.queryFn){const o=this.observers.find(c=>c.options.queryFn);o&&this.setOptions(o.options)}const s=new AbortController,r=o=>{Object.defineProperty(o,"signal",{enumerable:!0,get:()=>(this.#a=!0,s.signal)})},i=()=>{const o=xe(this.options,t),h=(()=>{const d={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(d),d})();return this.#a=!1,this.options.persister?this.options.persister(o,h,this):o(h)},a=(()=>{const o={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(o),o})();(this.#t==="infinite"?Et(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#s=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#u({type:"fetch",meta:a.fetchOptions?.meta}),this.#n=He({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:o=>{o instanceof L&&o.revert&&this.setState({...this.#s,fetchStatus:"idle"}),s.abort()},onFail:(o,c)=>{this.#u({type:"failed",failureCount:o,error:c})},onPause:()=>{this.#u({type:"pause"})},onContinue:()=>{this.#u({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{const o=await this.#n.start();if(o===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(o),this.#r.config.onSuccess?.(o,this),this.#r.config.onSettled?.(o,this.state.error,this),o}catch(o){if(o instanceof L){if(o.silent)return this.#n.promise;if(o.revert){if(this.state.data===void 0)throw o;return this.state.data}}throw this.#u({type:"error",error:o}),this.#r.config.onError?.(o,this),this.#r.config.onSettled?.(this.state.data,o,this),o}finally{this.scheduleGc()}}#u(e){const t=s=>{switch(e.type){case"failed":return{...s,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...$e(s.data,this.options),fetchMeta:e.meta??null};case"success":const r={...s,...Re(e.data,e.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#s=e.manual?r:void 0,r;case"error":const i=e.error;return{...s,error:i,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...e.state}}};this.state=t(this.state),g.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function $e(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ne(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Re(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function we(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,s=t!==void 0,r=s?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:s?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var k=class extends T{constructor(e,t){super(),this.options=t,this.#t=e,this.#a=null,this.#o=oe(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#s=void 0;#r=void 0;#i;#n;#o;#a;#c;#u;#d;#l;#y;#h;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),Ce(this.#e,this.options)?this.#f():this.updateResult(),this.#_())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ce(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ce(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#O(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,s=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof O(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#e.setOptions(this.options),t._defaulted&&!U(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&Me(this.#e,s,this.options,t)&&this.#f(),this.updateResult(),r&&(this.#e!==s||O(this.options.enabled,this.#e)!==O(t.enabled,this.#e)||F(this.options.staleTime,this.#e)!==F(t.staleTime,this.#e))&&this.#m();const i=this.#v();r&&(this.#e!==s||O(this.options.enabled,this.#e)!==O(t.enabled,this.#e)||i!==this.#h)&&this.#g(i)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),s=this.createResult(t,e);return Tt(this,s)&&(this.#r=s,this.#n=this.options,this.#i=this.#e.state),s}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(s,r)=>(this.trackProp(r),t?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,r))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),s=this.#t.getQueryCache().build(this.#t,t);return s.fetch().then(()=>this.createResult(s,t))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#f(e){this.#S();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(b)),t}#m(){this.#b();const e=F(this.options.staleTime,this.#e);if(x.isServer()||this.#r.isStale||!se(e))return;const s=qe(this.#r.dataUpdatedAt,e)+1;this.#l=E.setTimeout(()=>{this.#r.isStale||this.updateResult()},s)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#g(e){this.#O(),this.#h=e,!(x.isServer()||O(this.options.enabled,this.#e)===!1||!se(this.#h)||this.#h===0)&&(this.#y=E.setInterval(()=>{(this.options.refetchIntervalInBackground||J.isFocused())&&this.#f()},this.#h))}#_(){this.#m(),this.#g(this.#v())}#b(){this.#l!==void 0&&(E.clearTimeout(this.#l),this.#l=void 0)}#O(){this.#y!==void 0&&(E.clearInterval(this.#y),this.#y=void 0)}createResult(e,t){const s=this.#e,r=this.options,i=this.#r,n=this.#i,a=this.#n,o=e!==s?e.state:this.#s,{state:c}=e;let h={...c},d=!1,l;if(t._optimisticResults){const S=this.hasListeners(),j=!S&&Ce(e,t),z=S&&Me(e,s,t,r);(j||z)&&(h={...h,...$e(c.data,e.options)}),t._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:p,errorUpdatedAt:v,status:f}=h;l=h.data;let y=!1;if(t.placeholderData!==void 0&&l===void 0&&f==="pending"){let S;i?.isPlaceholderData&&t.placeholderData===a?.placeholderData?(S=i.data,y=!0):S=typeof t.placeholderData=="function"?t.placeholderData(this.#d?.state.data,this.#d):t.placeholderData,S!==void 0&&(f="success",l=ae(i?.data,S,t),d=!0)}if(t.select&&l!==void 0&&!y)if(i&&l===n?.data&&t.select===this.#c)l=this.#u;else try{this.#c=t.select,l=t.select(l),l=ae(i?.data,l,t),this.#u=l,this.#a=null}catch(S){this.#a=S}this.#a&&(p=this.#a,l=this.#u,v=Date.now(),f="error");const m=h.fetchStatus==="fetching",_=f==="pending",Q=f==="error",P=_&&m,C=l!==void 0,R={status:f,fetchStatus:h.fetchStatus,isPending:_,isSuccess:f==="success",isError:Q,isInitialLoading:P,isLoading:P,data:l,dataUpdatedAt:h.dataUpdatedAt,error:p,errorUpdatedAt:v,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:h.dataUpdateCount>o.dataUpdateCount||h.errorUpdateCount>o.errorUpdateCount,isFetching:m,isRefetching:m&&!_,isLoadingError:Q&&!C,isPaused:h.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:Q&&C,isStale:me(e,t),refetch:this.refetch,promise:this.#o,isEnabled:O(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const S=R.data!==void 0,j=R.status==="error"&&!S,z=$=>{j?$.reject(R.error):S&&$.resolve(R.data)},Se=()=>{const $=this.#o=R.promise=oe();z($)},G=this.#o;switch(G.status){case"pending":e.queryHash===s.queryHash&&z(G);break;case"fulfilled":(j||R.data!==G.value)&&Se();break;case"rejected":(!j||R.error!==G.reason)&&Se();break}}return R}updateResult(){const e=this.#r,t=this.createResult(this.#e,this.options);if(this.#i=this.#e.state,this.#n=this.options,this.#i.data!==void 0&&(this.#d=this.#e),U(t,e))return;this.#r=t;const s=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,i=typeof r=="function"?r():r;if(i==="all"||!i&&!this.#p.size)return!0;const n=new Set(i??this.#p);return this.options.throwOnError&&n.add("error"),Object.keys(this.#r).some(a=>{const u=a;return this.#r[u]!==e[u]&&n.has(u)})};this.#Q({listeners:s()})}#S(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#s=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#_()}#Q(e){g.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function It(e,t){return O(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&O(t.retryOnMount,e)===!1)}function Ce(e,t){return It(e,t)||e.state.data!==void 0&&ce(e,t,t.refetchOnMount)}function ce(e,t,s){if(O(t.enabled,e)!==!1&&F(t.staleTime,e)!=="static"){const r=typeof s=="function"?s(e):s;return r==="always"||r!==!1&&me(e,t)}return!1}function Me(e,t,s,r){return(e!==t||O(r.enabled,e)===!1)&&(!s.suspense||e.state.status!=="error")&&me(e,s)}function me(e,t){return O(t.enabled,e)!==!1&&e.isStaleByTime(F(t.staleTime,e))}function Tt(e,t){return!U(e.getCurrentResult(),t)}var ve=class extends k{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:s}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:n,isError:a,isRefetchError:u}=r,o=s.fetchMeta?.fetchMore?.direction,c=a&&o==="forward",h=i&&o==="forward",d=a&&o==="backward",l=i&&o==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Ft(t,s.data),hasPreviousPage:Dt(t,s.data),isFetchNextPageError:c,isFetchingNextPage:h,isFetchPreviousPageError:d,isFetchingPreviousPage:l,isRefetchError:u&&!c&&!d,isRefetching:n&&!h&&!l}}},We=class extends Be{#t;#e;#s;#r;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#s=e.mutationCache,this.#e=[],this.state=e.state||Ve(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#s.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#s.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#i({type:"continue"})},s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=He({fn:()=>this.options.mutationFn?this.options.mutationFn(e,s):Promise.reject(new Error("No mutationFn found")),onFail:(n,a)=>{this.#i({type:"failed",failureCount:n,error:a})},onPause:()=>{this.#i({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#s.canRun(this)});const r=this.state.status==="pending",i=!this.#r.canStart();try{if(r)t();else{this.#i({type:"pending",variables:e,isPaused:i}),this.#s.config.onMutate&&await this.#s.config.onMutate(e,this,s);const a=await this.options.onMutate?.(e,s);a!==this.state.context&&this.#i({type:"pending",context:a,variables:e,isPaused:i})}const n=await this.#r.start();return await this.#s.config.onSuccess?.(n,e,this.state.context,this,s),await this.options.onSuccess?.(n,e,this.state.context,s),await this.#s.config.onSettled?.(n,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(n,null,e,this.state.context,s),this.#i({type:"success",data:n}),n}catch(n){try{await this.#s.config.onError?.(n,e,this.state.context,this,s)}catch(a){Promise.reject(a)}try{await this.options.onError?.(n,e,this.state.context,s)}catch(a){Promise.reject(a)}try{await this.#s.config.onSettled?.(void 0,n,this.state.variables,this.state.context,this,s)}catch(a){Promise.reject(a)}try{await this.options.onSettled?.(void 0,n,e,this.state.context,s)}catch(a){Promise.reject(a)}throw this.#i({type:"error",error:n}),n}finally{this.#s.runNext(this)}}#i(e){const t=s=>{switch(e.type){case"failed":return{...s,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...s,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:e.error,failureCount:s.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),g.batch(()=>{this.#e.forEach(s=>{s.onMutationUpdate(e)}),this.#s.notify({mutation:this,type:"updated",action:e})})}};function Ve(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Je=class extends T{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#s=0}#t;#e;#s;build(e,t,s){const r=new We({client:e,mutationCache:this,mutationId:++this.#s,options:e.defaultMutationOptions(t),state:s});return this.add(r),r}add(e){this.#t.add(e);const t=W(e);if(typeof t=="string"){const s=this.#e.get(t);s?s.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=W(e);if(typeof t=="string"){const s=this.#e.get(t);if(s)if(s.length>1){const r=s.indexOf(e);r!==-1&&s.splice(r,1)}else s[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=W(e);if(typeof t=="string"){const r=this.#e.get(t)?.find(i=>i.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=W(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){g.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(s=>ie(t,s))}findAll(e={}){return this.getAll().filter(t=>ie(e,t))}notify(e){g.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return g.batch(()=>Promise.all(e.map(t=>t.continue().catch(b))))}};function W(e){return e.options.scope?.id}var Ze=class extends T{#t;#e=void 0;#s;#r;constructor(e,t){super(),this.#t=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#t.defaultMutationOptions(e),U(this.options,t)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#s,observer:this}),t?.mutationKey&&this.options.mutationKey&&I(t.mutationKey)!==I(this.options.mutationKey)?this.reset():this.#s?.state.status==="pending"&&this.#s.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#s?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#n(e)}getCurrentResult(){return this.#e}reset(){this.#s?.removeObserver(this),this.#s=void 0,this.#i(),this.#n()}mutate(e,t){return this.#r=t,this.#s?.removeObserver(this),this.#s=this.#t.getMutationCache().build(this.#t,this.options),this.#s.addObserver(this),this.#s.execute(e)}#i(){const e=this.#s?.state??Ve();this.#e={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#n(e){g.batch(()=>{if(this.#r&&this.hasListeners()){const t=this.#e.variables,s=this.#e.context,r={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#r.onSuccess?.(e.data,t,s,r)}catch(i){Promise.reject(i)}try{this.#r.onSettled?.(e.data,null,t,s,r)}catch(i){Promise.reject(i)}}else if(e?.type==="error"){try{this.#r.onError?.(e.error,t,s,r)}catch(i){Promise.reject(i)}try{this.#r.onSettled?.(void 0,e.error,t,s,r)}catch(i){Promise.reject(i)}}}this.listeners.forEach(t=>{t(this.#e)})})}};function Ee(e,t){const s=new Set(t);return e.filter(r=>!s.has(r))}function qt(e,t,s){const r=e.slice(0);return r[t]=s,r}var Xe=class extends T{#t;#e;#s;#r;#i;#n;#o;#a;#c;#u=[];constructor(e,t,s){super(),this.#t=e,this.#r=s,this.#s=[],this.#i=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#i.forEach(e=>{e.subscribe(t=>{this.#p(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#i.forEach(e=>{e.destroy()})}setQueries(e,t){this.#s=e,this.#r=t,g.batch(()=>{const s=this.#i,r=this.#h(this.#s);r.forEach(h=>h.observer.setOptions(h.defaultedQueryOptions));const i=r.map(h=>h.observer),n=i.map(h=>h.getCurrentResult()),a=s.length!==i.length,u=i.some((h,d)=>h!==s[d]),o=a||u,c=o?!0:n.some((h,d)=>{const l=this.#e[d];return!l||!U(h,l)});!o&&!c||(o&&(this.#u=r,this.#i=i),this.#e=n,this.hasListeners()&&(o&&(Ee(s,i).forEach(h=>{h.destroy()}),Ee(i,s).forEach(h=>{h.subscribe(d=>{this.#p(h,d)})})),this.#f()))})}getCurrentResult(){return this.#e}getQueries(){return this.#i.map(e=>e.getCurrentQuery())}getObservers(){return this.#i}getOptimisticResult(e,t){const s=this.#h(e),r=s.map(n=>n.observer.getOptimisticResult(n.defaultedQueryOptions)),i=s.map(n=>n.defaultedQueryOptions.queryHash);return[r,n=>this.#l(n??r,t,i),()=>this.#d(r,s)]}#d(e,t){return t.map((s,r)=>{const i=e[r];return s.defaultedQueryOptions.notifyOnChangeProps?i:s.observer.trackResult(i,n=>{t.forEach(a=>{a.observer.trackProp(n)})})})}#l(e,t,s){if(t){const r=this.#c,i=s!==void 0&&r!==void 0&&(r.length!==s.length||s.some((n,a)=>n!==r[a]));return(!this.#n||this.#e!==this.#a||i||t!==this.#o)&&(this.#o=t,this.#a=this.#e,s!==void 0&&(this.#c=s),this.#n=H(this.#n,t(e))),this.#n}return e}#y(){return this.#r?.combine!==void 0&&this.#i.some((e,t)=>e.options.suspense&&this.#e[t]?.data===void 0)}#h(e){const t=new Map;this.#i.forEach(r=>{const i=r.options.queryHash;if(!i)return;const n=t.get(i);n?n.push(r):t.set(i,[r])});const s=[];return e.forEach(r=>{const i=this.#t.defaultQueryOptions(r),a=t.get(i.queryHash)?.shift()??new k(this.#t,i);s.push({defaultedQueryOptions:i,observer:a})}),s}#p(e,t){const s=this.#i.indexOf(e);s!==-1&&(this.#e=qt(this.#e,s,t),this.#f())}#f(){if(this.hasListeners()){const e=this.#d(this.#e,this.#u),t=this.#y(),s=this.#n,r=t?s:this.#l(e,this.#r?.combine);(t||s!==r)&&g.batch(()=>{this.listeners.forEach(i=>{i(this.#e)})})}}},Ye=class extends T{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,s){const r=t.queryKey,i=t.queryHash??pe(r,t);let n=this.get(i);return n||(n=new Ge({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:s,defaultOptions:e.getQueryDefaults(r)}),this.add(n)),n}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){g.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(s=>re(t,s))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(s=>re(e,s)):t}notify(e){g.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){g.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){g.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},At=class{#t;#e;#s;#r;#i;#n;#o;#a;constructor(e={}){this.#t=e.queryCache||new Ye,this.#e=e.mutationCache||new Je,this.#s=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#n=0}mount(){this.#n++,this.#n===1&&(this.#o=J.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#a=K.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#n--,this.#n===0&&(this.#o?.(),this.#o=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),s=this.#t.build(this,t),r=s.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&s.isStaleByTime(F(t.staleTime,s))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:s})=>{const r=s.data;return[t,r]})}setQueryData(e,t,s){const r=this.defaultQueryOptions({queryKey:e}),n=this.#t.get(r.queryHash)?.state.data,a=pt(t,n);if(a!==void 0)return this.#t.build(this,r).setData(a,{...s,manual:!0})}setQueriesData(e,t,s){return g.batch(()=>this.#t.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,s)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;g.batch(()=>{t.findAll(e).forEach(s=>{t.remove(s)})})}resetQueries(e,t){const s=this.#t;return g.batch(()=>(s.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const s={revert:!0,...t},r=g.batch(()=>this.#t.findAll(e).map(i=>i.cancel(s)));return Promise.all(r).then(b).catch(b)}invalidateQueries(e,t={}){return g.batch(()=>(this.#t.findAll(e).forEach(s=>{s.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const s={...t,cancelRefetch:t.cancelRefetch??!0},r=g.batch(()=>this.#t.findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let n=i.fetch(void 0,s);return s.throwOnError||(n=n.catch(b)),i.state.fetchStatus==="paused"?Promise.resolve():n}));return Promise.all(r).then(b)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const s=this.#t.build(this,t);return s.isStaleByTime(F(t.staleTime,s))?s.fetch(t):Promise.resolve(s.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(b).catch(b)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(b).catch(b)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return K.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#s}setDefaultOptions(e){this.#s=e}setQueryDefaults(e,t){this.#r.set(I(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],s={};return t.forEach(r=>{A(e,r.queryKey)&&Object.assign(s,r.defaultOptions)}),s}setMutationDefaults(e,t){this.#i.set(I(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#i.values()],s={};return t.forEach(r=>{A(e,r.mutationKey)&&Object.assign(s,r.defaultOptions)}),s}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#s.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=pe(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.queryFn===Z&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#s.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}};function xt({streamFn:e,refetchMode:t="reset",reducer:s=(i,n)=>Ae(i,n),initialValue:r=[]}){return async i=>{const n=i.client.getQueryCache().find({queryKey:i.queryKey,exact:!0}),a=!!n&&n.isFetched();a&&t==="reset"&&n.setState({...n.resetState,fetchStatus:"fetching"});let u=r,o=!1;const c=ke({client:i.client,meta:i.meta,queryKey:i.queryKey,pageParam:i.pageParam,direction:i.direction},()=>i.signal,()=>o=!0),h=await e(c),d=a&&t==="replace";for await(const l of h){if(o)break;d?u=s(u,l):i.client.setQueryData(i.queryKey,p=>s(p===void 0?r:p,l))}return d&&!o&&i.client.setQueryData(i.queryKey,u),i.client.getQueryData(i.queryKey)??r}}var kt=Symbol("dataTagSymbol"),jt=Symbol("dataTagErrorSymbol"),Ut=Symbol("unsetMarker"),ge=de(void 0),w=e=>{const t=ye(ge);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Kt=({client:e,children:t})=>(D(()=>(e.mount(),()=>{e.unmount()}),[e]),Ie(ge.Provider,{value:e,children:t})),et=de(!1),_e=()=>ye(et),Lt=et.Provider;function tt(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var st=de(tt()),be=()=>ye(st),Nt=({children:e})=>{const[t]=V(()=>tt());return Ie(st.Provider,{value:t,children:typeof e=="function"?e(t):e})},rt=(e,t,s)=>{const r=s?.state.error&&typeof e.throwOnError=="function"?X(e.throwOnError,[s.state.error,s]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},it=e=>{D(()=>{e.clearReset()},[e])},nt=({result:e,errorResetBoundary:t,throwOnError:s,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||X(s,[e.error,r])),Oe=(e,t)=>t.state.data===void 0,at=e=>{if(e.suspense){const s=i=>i==="static"?i:Math.max(i??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>s(r(...i)):s(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Ht=(e,t)=>e.isLoading&&e.isFetching&&!t,le=(e,t)=>e?.suspense&&t.isPending,fe=(e,t,s)=>t.fetchOptimistic(e).catch(()=>{s.clearReset()});function ot({queries:e,...t},s){const r=w(s),i=_e(),n=be(),a=De(()=>e.map(f=>{const y=r.defaultQueryOptions(f);return y._optimisticResults=i?"isRestoring":"optimistic",y}),[e,r,i]);a.forEach(f=>{at(f);const y=r.getQueryCache().get(f.queryHash);rt(f,n,y)}),it(n);const[u]=V(()=>new Xe(r,a,t)),[o,c,h]=u.getOptimisticResult(a,t.combine),d=!i&&t.subscribed!==!1;N(q(f=>d?u.subscribe(g.batchCalls(f)):b,[u,d]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),D(()=>{u.setQueries(a,t)},[a,t,u]);const p=o.some((f,y)=>le(a[y],f))?o.flatMap((f,y)=>{const m=a[y];if(m&&le(m,f)){const _=new k(r,m);return fe(m,_,n)}return[]}):[];if(p.length>0)throw Promise.all(p);const v=o.find((f,y)=>{const m=a[y];return m&&nt({result:f,errorResetBoundary:n,throwOnError:m.throwOnError,query:r.getQueryCache().get(m.queryHash),suspense:m.suspense})});if(v?.error)throw v.error;return c(h())}function Y(e,t,s){const r=_e(),i=be(),n=w(s),a=n.defaultQueryOptions(e);n.getDefaultOptions().queries?._experimental_beforeQuery?.(a);const u=n.getQueryCache().get(a.queryHash);a._optimisticResults=r?"isRestoring":"optimistic",at(a),rt(a,i,u),it(i);const o=!n.getQueryCache().get(a.queryHash),[c]=V(()=>new t(n,a)),h=c.getOptimisticResult(a),d=!r&&e.subscribed!==!1;if(N(q(l=>{const p=d?c.subscribe(g.batchCalls(l)):b;return c.updateResult(),p},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),D(()=>{c.setOptions(a)},[a,c]),le(a,h))throw fe(a,c,i);if(nt({result:h,errorResetBoundary:i,throwOnError:a.throwOnError,query:u,suspense:a.suspense}))throw h.error;return n.getDefaultOptions().queries?._experimental_afterQuery?.(a,h),a.experimental_prefetchInRender&&!x.isServer()&&Ht(h,r)&&(o?fe(a,c,i):u?.promise)?.catch(b).finally(()=>{c.updateResult()}),a.notifyOnChangeProps?h:c.trackResult(h)}function Bt(e,t){return Y(e,k,t)}function zt(e,t){return Y({...e,enabled:!0,suspense:!0,throwOnError:Oe,placeholderData:void 0},k,t)}function Gt(e,t){return Y({...e,enabled:!0,suspense:!0,throwOnError:Oe},ve,t)}function $t(e,t){return ot({...e,queries:e.queries.map(s=>({...s,suspense:!0,throwOnError:Oe,enabled:!0,placeholderData:void 0}))},t)}function Wt(e,t){const s=w(t);s.getQueryState(e.queryKey)||s.prefetchQuery(e)}function Vt(e,t){const s=w(t);s.getQueryState(e.queryKey)||s.prefetchInfiniteQuery(e)}function Jt(e){return e}function Zt(e){return e}var Xt=({children:e,options:t={},state:s,queryClient:r})=>{const i=w(r),n=te(t);D(()=>{n.current=t});const a=De(()=>{if(s){if(typeof s!="object")return;const u=i.getQueryCache(),o=s.queries||[],c=[],h=[];for(const d of o){const l=u.get(d.queryHash);l?(d.state.dataUpdatedAt>l.state.dataUpdatedAt||d.promise&&l.state.status!=="pending"&&l.state.fetchStatus!=="fetching"&&d.dehydratedAt!==void 0&&d.dehydratedAt>l.state.dataUpdatedAt)&&h.push(d):c.push(d)}if(c.length>0&&ue(i,{queries:c},n.current),h.length>0)return h}},[i,s]);return D(()=>{a&&ue(i,{queries:a},n.current)},[i,a]),e};function Yt(e,t){const s=w(t),r=s.getQueryCache();return N(q(i=>r.subscribe(g.batchCalls(i)),[r]),()=>s.isFetching(e),()=>s.isFetching(e))}function es(e,t){const s=w(t);return ut({filters:{...e,status:"pending"}},s).length}function Fe(e,t){return e.findAll(t.filters).map(s=>t.select?t.select(s):s.state)}function ut(e={},t){const s=w(t).getMutationCache(),r=te(e),i=te(null);return i.current===null&&(i.current=Fe(s,e)),D(()=>{r.current=e}),N(q(n=>s.subscribe(()=>{const a=H(i.current,Fe(s,r.current));i.current!==a&&(i.current=a,g.schedule(n))}),[s]),()=>i.current,()=>i.current)}function ts(e,t){const s=w(t),[r]=V(()=>new Ze(s,e));D(()=>{r.setOptions(e)},[r,e]);const i=N(q(a=>r.subscribe(g.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),n=q((a,u)=>{r.mutate(a,u).catch(b)},[r]);if(i.error&&X(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:n,mutateAsync:i.mutate}}function ss(e){return e}function rs(e,t){return Y(e,ve,t)}const is=Object.freeze(Object.defineProperty({__proto__:null,CancelledError:L,HydrationBoundary:Xt,InfiniteQueryObserver:ve,IsRestoringProvider:Lt,Mutation:We,MutationCache:Je,MutationObserver:Ze,QueriesObserver:Xe,Query:Ge,QueryCache:Ye,QueryClient:At,QueryClientContext:ge,QueryClientProvider:Kt,QueryErrorResetBoundary:Nt,QueryObserver:k,dataTagErrorSymbol:jt,dataTagSymbol:kt,defaultScheduler:Le,defaultShouldDehydrateMutation:Ue,defaultShouldDehydrateQuery:Ke,dehydrate:Pt,environmentManager:x,experimental_streamedQuery:xt,focusManager:J,hashKey:I,hydrate:ue,infiniteQueryOptions:Zt,isCancelledError:Mt,isServer:Te,keepPreviousData:gt,matchMutation:ie,matchQuery:re,mutationOptions:ss,noop:b,notifyManager:g,onlineManager:K,partialMatchKey:A,queryOptions:Jt,replaceEqualDeep:H,shouldThrowError:X,skipToken:Z,timeoutManager:E,unsetMarker:Ut,useInfiniteQuery:rs,useIsFetching:Yt,useIsMutating:es,useIsRestoring:_e,useMutation:ts,useMutationState:ut,usePrefetchInfiniteQuery:Vt,usePrefetchQuery:Wt,useQueries:ot,useQuery:Bt,useQueryClient:w,useQueryErrorResetBoundary:be,useSuspenseInfiniteQuery:Gt,useSuspenseQueries:$t,useSuspenseQuery:zt},Symbol.toStringTag,{value:"Module"})),ee="__mf_module_cache__";globalThis[ee]||={share:{},remote:{}};globalThis[ee].share||={};globalThis[ee].remote||={};const ht=globalThis[ee];let M=ht.share["@tanstack/react-query"];M===void 0&&(M=is,ht.share["@tanstack/react-query"]=M);const ns=M,as=M.__esModule?M.default:M.default??M,{HydrationBoundary:os,IsRestoringProvider:us,QueryClientContext:hs,QueryClientProvider:cs,QueryErrorResetBoundary:ls,infiniteQueryOptions:fs,mutationOptions:ds,queryOptions:ys,useInfiniteQuery:ps,useIsFetching:ms,useIsMutating:vs,useIsRestoring:gs,useMutation:_s,useMutationState:bs,usePrefetchInfiniteQuery:Os,usePrefetchQuery:Ss,useQueries:Qs,useQuery:Ps,useQueryClient:Rs,useQueryErrorResetBoundary:ws,useSuspenseInfiniteQuery:Cs,useSuspenseQueries:Ms,useSuspenseQuery:Es,CancelledError:Fs,InfiniteQueryObserver:Ds,Mutation:Is,MutationCache:Ts,MutationObserver:qs,QueriesObserver:As,Query:xs,QueryCache:ks,QueryClient:js,QueryObserver:Us,defaultScheduler:Ks,defaultShouldDehydrateMutation:Ls,defaultShouldDehydrateQuery:Ns,dehydrate:Hs,environmentManager:Bs,experimental_streamedQuery:zs,focusManager:Gs,hashKey:$s,hydrate:Ws,isCancelledError:Vs,isServer:Js,keepPreviousData:Zs,matchMutation:Xs,matchQuery:Ys,noop:er,notifyManager:tr,onlineManager:sr,partialMatchKey:rr,replaceEqualDeep:ir,shouldThrowError:nr,skipToken:ar,timeoutManager:or,dataTagErrorSymbol:ur,dataTagSymbol:hr,unsetMarker:cr}=M,dr=ct({__proto__:null,CancelledError:Fs,HydrationBoundary:os,InfiniteQueryObserver:Ds,IsRestoringProvider:us,Mutation:Is,MutationCache:Ts,MutationObserver:qs,QueriesObserver:As,Query:xs,QueryCache:ks,QueryClient:js,QueryClientContext:hs,QueryClientProvider:cs,QueryErrorResetBoundary:ls,QueryObserver:Us,dataTagErrorSymbol:ur,dataTagSymbol:hr,default:as,defaultScheduler:Ks,defaultShouldDehydrateMutation:Ls,defaultShouldDehydrateQuery:Ns,dehydrate:Hs,environmentManager:Bs,experimental_streamedQuery:zs,focusManager:Gs,hashKey:$s,hydrate:Ws,infiniteQueryOptions:fs,isCancelledError:Vs,isServer:Js,keepPreviousData:Zs,matchMutation:Xs,matchQuery:Ys,mutationOptions:ds,noop:er,notifyManager:tr,onlineManager:sr,partialMatchKey:rr,queryOptions:ys,replaceEqualDeep:ir,shouldThrowError:nr,skipToken:ar,timeoutManager:or,unsetMarker:cr,useInfiniteQuery:ps,useIsFetching:ms,useIsMutating:vs,useIsRestoring:gs,useMutation:_s,useMutationState:bs,usePrefetchInfiniteQuery:Os,usePrefetchQuery:Ss,useQueries:Qs,useQuery:Ps,useQueryClient:Rs,useQueryErrorResetBoundary:ws,useSuspenseInfiniteQuery:Cs,useSuspenseQueries:Ms,useSuspenseQuery:Es},[ns]);export{dr as _,ar as a,ys as b,fs as c,Cs as d,Os as e,ps as f,$s as g,_s as h,Ms as i,Qs as j,Es as k,Ss as l,Ps as m,Rs as n,js as o,cs as p,is as q};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_}from"./__mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.mjs-CeLhKMin.js";import{b as a}from"./__mfe_internal__admin_ui_host__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs-C_6K4VBY.js";const m=a(_);export{m as r};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
function Lt(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(n,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var It=Object.create,Ze=Object.defineProperty,qt=Object.getOwnPropertyDescriptor,Xe=Object.getOwnPropertyNames,Mt=Object.getPrototypeOf,Nt=Object.prototype.hasOwnProperty,k=(e,t)=>function(){return t||(0,e[Xe(e)[0]])((t={exports:{}}).exports,t),t.exports},Dt=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Xe(t),s=0,c=o.length,i;s<c;s++)i=o[s],!Nt.call(e,i)&&i!==r&&Ze(e,i,{get:(a=>t[a]).bind(null,i),enumerable:!(n=qt(t,i))||n.enumerable});return e},x=(e,t,r)=>(r=e!=null?It(Mt(e)):{},Dt(Ze(r,"default",{value:e,enumerable:!0}),e)),et=k({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function r(n){"@babel/helpers - typeof";return t.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,r(n)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ut=k({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var r=et().default;function n(o,s){if(r(o)!="object"||!o)return o;var c=o[Symbol.toPrimitive];if(c!==void 0){var i=c.call(o,s||"default");if(r(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(o)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),$t=k({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var r=et().default,n=Ut();function o(s){var c=n(s,"string");return r(c)=="symbol"?c:c+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),U=k({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var r=$t();function n(o,s,c){return(s=r(s))in o?Object.defineProperty(o,s,{value:c,enumerable:!0,configurable:!0,writable:!0}):o[s]=c,o}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),R=k({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var r=U();function n(s,c){var i=Object.keys(s);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(s);c&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),i.push.apply(i,a)}return i}function o(s){for(var c=1;c<arguments.length;c++){var i=arguments[c]!=null?arguments[c]:{};c%2?n(Object(i),!0).forEach(function(a){r(s,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach(function(a){Object.defineProperty(s,a,Object.getOwnPropertyDescriptor(i,a))})}return s}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}});function E(e){const t={subscribe(r){let n=null,o=!1,s=!1,c=!1;function i(){if(n===null){c=!0;return}s||(s=!0,typeof n=="function"?n():n&&n.unsubscribe())}return n=e({next(a){var u;o||(u=r.next)===null||u===void 0||u.call(r,a)},error(a){var u;o||(o=!0,(u=r.error)===null||u===void 0||u.call(r,a),i())},complete(){var a;o||(o=!0,(a=r.complete)===null||a===void 0||a.call(r),i())}}),c&&i(),{unsubscribe:i}},pipe(...r){return r.reduce(Bt,t)}};return t}function Bt(e,t){return t(e)}function zt(e){const t=new AbortController;return new Promise((n,o)=>{let s=!1;function c(){s||(s=!0,i.unsubscribe())}t.signal.addEventListener("abort",()=>{o(t.signal.reason)});const i=e.subscribe({next(a){s=!0,n(a),c()},error(a){o(a)},complete(){t.abort(),c()}})})}function Gt(e){return t=>{let r=0,n=null;const o=[];function s(){n||(n=t.subscribe({next(i){for(const u of o){var a;(a=u.next)===null||a===void 0||a.call(u,i)}},error(i){for(const u of o){var a;(a=u.error)===null||a===void 0||a.call(u,i)}},complete(){for(const a of o){var i;(i=a.complete)===null||i===void 0||i.call(a)}}}))}function c(){if(r===0&&n){const i=n;n=null,i.unsubscribe()}}return E(i=>(r++,o.push(i),s(),{unsubscribe(){r--,c();const a=o.findIndex(u=>u===i);a>-1&&o.splice(a,1)}}))}}function Wt(e){return t=>E(r=>t.subscribe({next(n){var o;(o=e.next)===null||o===void 0||o.call(e,n),r.next(n)},error(n){var o;(o=e.error)===null||o===void 0||o.call(e,n),r.error(n)},complete(){var n;(n=e.complete)===null||n===void 0||n.call(e),r.complete()}}))}function ae(e){let t=e;const r=[],n=c=>{t!==void 0&&c.next(t),r.push(c)},o=c=>{r.splice(r.indexOf(c),1)},s=E(c=>(n(c),()=>{o(c)}));return s.next=c=>{if(t!==c){t=c;for(const i of r)i.next(c)}},s.get=()=>t,s}function tt(e){return E(t=>{function r(o=0,s=e.op){const c=e.links[o];if(!c)throw new Error("No more links to execute - did you forget to add an ending link?");return c({op:s,next(a){return r(o+1,a)}})}return r().subscribe(t)})}function Re(e){return Array.isArray(e)?e:[e]}function Ft(e){return t=>{const r=Re(e.true).map(o=>o(t)),n=Re(e.false).map(o=>o(t));return o=>E(s=>{const c=e.condition(o.op)?r:n;return tt({op:o.op,links:c}).subscribe(s)})}}function I(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}function rt(){return Object.create(null)}const Yt=typeof Symbol=="function"&&!!Symbol.asyncIterator;function je(e){return Yt&&I(e)&&Symbol.asyncIterator in e}const N=e=>e();function Ce(e=0){return new Promise(t=>setTimeout(t,e))}const G={PARSE_ERROR:-32700,BAD_REQUEST:-32600,INTERNAL_SERVER_ERROR:-32603,NOT_IMPLEMENTED:-32603,BAD_GATEWAY:-32603,SERVICE_UNAVAILABLE:-32603,GATEWAY_TIMEOUT:-32603,UNAUTHORIZED:-32001,PAYMENT_REQUIRED:-32002,FORBIDDEN:-32003,NOT_FOUND:-32004,METHOD_NOT_SUPPORTED:-32005,TIMEOUT:-32008,CONFLICT:-32009,PRECONDITION_FAILED:-32012,PAYLOAD_TOO_LARGE:-32013,UNSUPPORTED_MEDIA_TYPE:-32015,UNPROCESSABLE_CONTENT:-32022,PRECONDITION_REQUIRED:-32028,TOO_MANY_REQUESTS:-32029,CLIENT_CLOSED_REQUEST:-32099},nt=[G.BAD_GATEWAY,G.SERVICE_UNAVAILABLE,G.GATEWAY_TIMEOUT,G.INTERNAL_SERVER_ERROR];var Ht=Object.create,ot=Object.defineProperty,Jt=Object.getOwnPropertyDescriptor,st=Object.getOwnPropertyNames,Kt=Object.getPrototypeOf,Vt=Object.prototype.hasOwnProperty,j=(e,t)=>function(){return t||(0,e[st(e)[0]])((t={exports:{}}).exports,t),t.exports},Qt=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=st(t),s=0,c=o.length,i;s<c;s++)i=o[s],!Vt.call(e,i)&&i!==r&&ot(e,i,{get:(a=>t[a]).bind(null,i),enumerable:!(n=Jt(t,i))||n.enumerable});return e},g=(e,t,r)=>(r=e!=null?Ht(Kt(e)):{},Qt(ot(r,"default",{value:e,enumerable:!0}),e));const it=()=>{},ke=e=>{Object.freeze&&Object.freeze(e)};function at(e,t,r){var n;const o=t.join(".");return(n=r[o])!==null&&n!==void 0||(r[o]=new Proxy(it,{get(s,c){if(!(typeof c!="string"||c==="then"))return at(e,[...t,c],r)},apply(s,c,i){const a=t[t.length-1];if(a==="valueOf"||a==="toString"||a==="toJSON")return`tRPC.proxy(${t.slice(0,-1).join(".")})`;let u={args:i,path:t};return a==="call"?u={args:i.length>=2?[i[1]]:[],path:t.slice(0,-1)}:a==="apply"&&(u={args:i.length>=2?i[1]:[],path:t.slice(0,-1)}),ke(u.args),ke(u.path),e(u)}})),r[o]}const Zt=e=>at(e,[],rt()),Xt=e=>new Proxy(it,{get(t,r){if(r!=="then")return e(r)}}),er={PARSE_ERROR:400,BAD_REQUEST:400,UNAUTHORIZED:401,PAYMENT_REQUIRED:402,FORBIDDEN:403,NOT_FOUND:404,METHOD_NOT_SUPPORTED:405,TIMEOUT:408,CONFLICT:409,PRECONDITION_FAILED:412,PAYLOAD_TOO_LARGE:413,UNSUPPORTED_MEDIA_TYPE:415,UNPROCESSABLE_CONTENT:422,PRECONDITION_REQUIRED:428,TOO_MANY_REQUESTS:429,CLIENT_CLOSED_REQUEST:499,INTERNAL_SERVER_ERROR:500,NOT_IMPLEMENTED:501,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504};function tr(e){var t;return(t=er[e])!==null&&t!==void 0?t:500}function rr(e){return tr(e.code)}var ct=j({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function r(n){"@babel/helpers - typeof";return t.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,r(n)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),nr=j({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var r=ct().default;function n(o,s){if(r(o)!="object"||!o)return o;var c=o[Symbol.toPrimitive];if(c!==void 0){var i=c.call(o,s||"default");if(r(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(o)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),or=j({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var r=ct().default,n=nr();function o(s){var c=n(s,"string");return r(c)=="symbol"?c:c+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),be=j({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var r=or();function n(o,s,c){return(s=r(s))in o?Object.defineProperty(o,s,{value:c,enumerable:!0,configurable:!0,writable:!0}):o[s]=c,o}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),J=j({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var r=be();function n(s,c){var i=Object.keys(s);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(s);c&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),i.push.apply(i,a)}return i}function o(s){for(var c=1;c<arguments.length;c++){var i=arguments[c]!=null?arguments[c]:{};c%2?n(Object(i),!0).forEach(function(a){r(s,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach(function(a){Object.defineProperty(s,a,Object.getOwnPropertyDescriptor(i,a))})}return s}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ae=g(J());function sr(e){const{path:t,error:r,config:n}=e,{code:o}=e.error,s={message:r.message,code:G[o],data:{code:o,httpStatus:rr(r)}};return n.isDev&&typeof e.error.stack=="string"&&(s.data.stack=e.error.stack),typeof t=="string"&&(s.data.path=t),n.errorFormatter((0,Ae.default)((0,Ae.default)({},e),{},{shape:s}))}var Le=g(be()),ir=class extends Error{constructor(e){super(ar(e)),Object.assign(this,e)}};function ar(e){if("message"in e)return String(e.message)}function cr(e){if(e instanceof Error)return e;const t=typeof e;if(!(t==="undefined"||t==="function"||e===null)){if(t!=="object")return new Error(String(e));if(I(e))return new ir(e)}}function le(e){if(e instanceof oe||e instanceof Error&&e.name==="TRPCError")return e;const t=new oe({code:"INTERNAL_SERVER_ERROR",cause:e});return e instanceof Error&&e.stack&&(t.stack=e.stack),t}var oe=class extends Error{constructor(e){var t,r,n;const o=cr(e.cause),s=(t=(r=e.message)!==null&&r!==void 0?r:o?.message)!==null&&t!==void 0?t:e.code;super(s,{cause:o}),(0,Le.default)(this,"cause",void 0),(0,Le.default)(this,"code",void 0),this.code=e.code,this.name="TRPCError",(n=this.cause)!==null&&n!==void 0||(this.cause=o)}},Z=g(J());function ur(e,t){if("error"in e){const n=t.deserialize(e.error);return{ok:!1,error:(0,Z.default)((0,Z.default)({},e),{},{error:n})}}return{ok:!0,result:(0,Z.default)((0,Z.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var de=class extends Error{constructor(){super("Unable to transform response from server")}};function _e(e,t){let r;try{r=ur(e,t)}catch{throw new de}if(!r.ok&&(!I(r.error.error)||typeof r.error.error.code!="number"))throw new de;if(r.ok&&!I(r.result))throw new de;return r}g(J());function lr(e){return typeof e=="function"}async function dr(e,t){const{_def:r}=e;let n=r.procedures[t];for(;!n;){const o=Object.keys(r.lazy).find(c=>t.startsWith(c));if(!o)return null;await r.lazy[o].load(),n=r.procedures[t]}return n}async function fr(e){const{type:t,path:r}=e,n=await dr(e.router,r);if(!n||!lr(n)||n._def.type!==t&&!e.allowMethodOverride)throw new oe({code:"NOT_FOUND",message:`No "${t}"-procedure on path "${r}"`});/* istanbul ignore if -- @preserve */if(n._def.type!==t&&e.allowMethodOverride&&n._def.type==="subscription")throw new oe({code:"METHOD_NOT_SUPPORTED",message:"Method override is not supported for subscriptions"});return n(e)}const pr=Symbol();function mr(e){return Array.isArray(e)&&e[2]===pr}g(J());function Ie(e){return I(e)&&e.name==="AbortError"}var X=g(be());let ut;const fe=new WeakMap,yr=()=>{};ut=Symbol.toStringTag;var lt=class M{constructor(t){(0,X.default)(this,"promise",void 0),(0,X.default)(this,"subscribers",[]),(0,X.default)(this,"settlement",null),(0,X.default)(this,ut,"Unpromise"),typeof t=="function"?this.promise=new Promise(t):this.promise=t;const r=this.promise.then(n=>{const{subscribers:o}=this;this.subscribers=null,this.settlement={status:"fulfilled",value:n},o?.forEach(({resolve:s})=>{s(n)})});"catch"in r&&r.catch(n=>{const{subscribers:o}=this;this.subscribers=null,this.settlement={status:"rejected",reason:n},o?.forEach(({reject:s})=>{s(n)})})}subscribe(){let t,r;const{settlement:n}=this;if(n===null){if(this.subscribers===null)throw new Error("Unpromise settled but still has subscribers");const o=vr();this.subscribers=br(this.subscribers,o),t=o.promise,r=()=>{this.subscribers!==null&&(this.subscribers=gr(this.subscribers,o))}}else{const{status:o}=n;o==="fulfilled"?t=Promise.resolve(n.value):t=Promise.reject(n.reason),r=yr}return Object.assign(t,{unsubscribe:r})}then(t,r){const n=this.subscribe(),{unsubscribe:o}=n;return Object.assign(n.then(t,r),{unsubscribe:o})}catch(t){const r=this.subscribe(),{unsubscribe:n}=r;return Object.assign(r.catch(t),{unsubscribe:n})}finally(t){const r=this.subscribe(),{unsubscribe:n}=r;return Object.assign(r.finally(t),{unsubscribe:n})}static proxy(t){const r=M.getSubscribablePromise(t);return typeof r<"u"?r:M.createSubscribablePromise(t)}static createSubscribablePromise(t){const r=new M(t);return fe.set(t,r),fe.set(r,r),r}static getSubscribablePromise(t){return fe.get(t)}static resolve(t){const r=typeof t=="object"&&t!==null&&"then"in t&&typeof t.then=="function"?t:Promise.resolve(t);return M.proxy(r).subscribe()}static async any(t){const n=(Array.isArray(t)?t:[...t]).map(M.resolve);try{return await Promise.any(n)}finally{n.forEach(({unsubscribe:o})=>{o()})}}static async race(t){const n=(Array.isArray(t)?t:[...t]).map(M.resolve);try{return await Promise.race(n)}finally{n.forEach(({unsubscribe:o})=>{o()})}}static async raceReferences(t){const r=t.map(hr);try{return await Promise.race(r)}finally{for(const n of r)n.unsubscribe()}}};function hr(e){return lt.proxy(e).then(()=>[e])}function vr(){let e,t;return{promise:new Promise((n,o)=>{e=n,t=o}),resolve:e,reject:t}}function br(e,t){return[...e,t]}function _r(e,t){return[...e.slice(0,t),...e.slice(t+1)]}function gr(e,t){const r=e.indexOf(t);return r!==-1?_r(e,r):e}var qe,Me,Ne,De;(Me=(qe=Symbol).dispose)!==null&&Me!==void 0||(qe.dispose=Symbol());(De=(Ne=Symbol).asyncDispose)!==null&&De!==void 0||(Ne.asyncDispose=Symbol());function se(e,t){const r=e,n=r[Symbol.dispose];return r[Symbol.dispose]=()=>{t(),n?.()},r}function dt(e,t){const r=e,n=r[Symbol.asyncDispose];return r[Symbol.asyncDispose]=async()=>{await t(),await n?.()},r}const ft=Symbol();function wr(e){let t=null;return se({start(){if(t)throw new Error("Timer already started");return new Promise(n=>{t=setTimeout(()=>n(ft),e)})}},()=>{t&&clearTimeout(t)})}var K=j({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function r(){var n=typeof SuppressedError=="function"?SuppressedError:function(i,a){var u=Error();return u.name="SuppressedError",u.error=i,u.suppressed=a,u},o={},s=[];function c(i,a){if(a!=null){if(Object(a)!==a)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(i)var u=a[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(u===void 0&&(u=a[Symbol.dispose||Symbol.for("Symbol.dispose")],i))var l=u;if(typeof u!="function")throw new TypeError("Object is not disposable.");l&&(u=function(){try{l.call(a)}catch(f){return Promise.reject(f)}}),s.push({v:a,d:u,a:i})}else i&&s.push({d:a,a:i});return a}return{e:o,u:c.bind(null,!1),a:c.bind(null,!0),d:function(){var a,u=this.e,l=0;function d(){for(;a=s.pop();)try{if(!a.a&&l===1)return l=0,s.push(a),Promise.resolve().then(d);if(a.d){var p=a.d.call(a.v);if(a.a)return l|=2,Promise.resolve(p).then(d,f)}else l|=1}catch(y){return f(y)}if(l===1)return u!==o?Promise.reject(u):Promise.resolve();if(u!==o)throw u}function f(p){return u=u!==o?new n(p,u):p,d()}return d()}}}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),ge=j({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function r(n,o){this.v=n,this.k=o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),V=j({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var r=ge();function n(o){return new r(o,0)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),F=j({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var r=ge();function n(s){return function(){return new o(s.apply(this,arguments))}}function o(s){var c,i;function a(l,d){try{var f=s[l](d),p=f.value,y=p instanceof r;Promise.resolve(y?p.v:p).then(function(m){if(y){var v=l==="return"?"return":"next";if(!p.k||m.done)return a(v,m);m=s[v](m).value}u(f.done?"return":"normal",m)},function(m){a("throw",m)})}catch(m){u("throw",m)}}function u(l,d){switch(l){case"return":c.resolve({value:d,done:!0});break;case"throw":c.reject(d);break;default:c.resolve({value:d,done:!1})}(c=c.next)?a(c.key,c.arg):i=null}this._invoke=function(l,d){return new Promise(function(f,p){var y={key:l,arg:d,resolve:f,reject:p,next:null};i?i=i.next=y:(c=i=y,a(l,d))})},typeof s.return!="function"&&(this.return=void 0)}o.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},o.prototype.next=function(s){return this._invoke("next",s)},o.prototype.throw=function(s){return this._invoke("throw",s)},o.prototype.return=function(s){return this._invoke("return",s)},t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});g(K());g(V());g(F());function Ue(e){const t=e[Symbol.asyncIterator]();return t[Symbol.asyncDispose]?t:dt(t,async()=>{var r;await((r=t.return)===null||r===void 0?void 0:r.call(t))})}function xr(){let e,t;return{promise:new Promise((n,o)=>{e=n,t=o}),resolve:e,reject:t}}g(K());g(V());g(F());g(K());g(V());g(F());var pt=j({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function r(o){var s,c,i,a=2;for(typeof Symbol<"u"&&(c=Symbol.asyncIterator,i=Symbol.iterator);a--;){if(c&&(s=o[c])!=null)return s.call(o);if(i&&(s=o[i])!=null)return new n(s.call(o));c="@@asyncIterator",i="@@iterator"}throw new TypeError("Object is not async iterable")}function n(o){function s(c){if(Object(c)!==c)return Promise.reject(new TypeError(c+" is not an object."));var i=c.done;return Promise.resolve(c.value).then(function(a){return{value:a,done:i}})}return n=function(i){this.s=i,this.n=i.next},n.prototype={s:null,n:null,next:function(){return s(this.n.apply(this.s,arguments))},return:function(i){var a=this.s.return;return a===void 0?Promise.resolve({value:i,done:!0}):s(a.apply(this.s,arguments))},throw:function(i){var a=this.s.return;return a===void 0?Promise.reject(i):s(a.apply(this.s,arguments))}},new n(o)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Sr=g(V()),Pr=g(F()),$e=g(K());g(pt());const Er=0,Or=1,Tr=0,Rr=1,jr=0,Cr=1,kr=2;var Be=class extends Error{constructor(e){super("Received error from server"),this.data=e}};const Ar=e=>({getReader(){return new ReadableStream({start(r){e.on("data",n=>{r.enqueue(n)}),e.on("end",()=>{r.close()}),e.on("error",n=>{r.error(n)})}}).getReader()}});function Lr(e){const t="getReader"in e?e.getReader():Ar(e).getReader();let r="";return new ReadableStream({async pull(n){const{done:o,value:s}=await t.read();o?n.close():n.enqueue(s)},cancel(){return t.cancel()}}).pipeThrough(new TextDecoderStream).pipeThrough(new TransformStream({transform(n,o){var s;r+=n;const c=r.split(`
|
|
2
|
+
`);r=(s=c.pop())!==null&&s!==void 0?s:"";for(const i of c)o.enqueue(i)}}))}function Ir(e){const t=Lr(e);let r=!1;return t.pipeThrough(new TransformStream({transform(n,o){if(r){const s=JSON.parse(n);o.enqueue(s)}else{const s=JSON.parse(n);o.enqueue(s),r=!0}}}))}function qr(e){const t=new Map;function r(){return Array.from(t.values()).every(i=>i.closed)}function n(){let i;const a=new ReadableStream({start(d){i=d}}),u={enqueue:d=>i.enqueue(d),close:()=>{i.close(),l(),r()&&e.abort()},closed:!1,getReaderResource:()=>{const d=a.getReader();return se(d,()=>{u.close(),d.releaseLock()})},error:d=>{i.error(d),l()}};function l(){Object.assign(u,{closed:!0,close:()=>{},enqueue:()=>{},getReaderResource:null,error:()=>{}})}return u}function o(i){let a=t.get(i);return a||(a=n(),t.set(i,a)),a}function s(i){for(const a of t.values())a.error(i)}function c(){for(const i of t.values())i.close()}return{getOrCreate:o,cancelAll:s,closeAll:c}}async function Mr(e){const{deserialize:t=u=>u}=e;let r=Ir(e.from);t&&(r=r.pipeThrough(new TransformStream({transform(u,l){l.enqueue(t(u))}})));let n=xr();const o=qr(e.abortController);function s(u){const[l,d,f]=u,p=o.getOrCreate(f);switch(d){case Er:return N(async()=>{try{var y=(0,$e.default)();const w=y.u(p.getReaderResource()),{value:_}=await w.read(),[b,O,h]=_;switch(O){case Tr:return c(h);case Rr:var m,v;throw(m=(v=e.formatError)===null||v===void 0?void 0:v.call(e,{error:h}))!==null&&m!==void 0?m:new Be(h)}}catch(w){y.e=w}finally{y.d()}});case Or:return N((0,Pr.default)(function*(){try{var y=(0,$e.default)();const w=y.u(p.getReaderResource());for(;;){const{value:_}=yield(0,Sr.default)(w.read()),[b,O,h]=_;switch(O){case Cr:yield c(h);break;case jr:return c(h);case kr:var m,v;throw(m=(v=e.formatError)===null||v===void 0?void 0:v.call(e,{error:h}))!==null&&m!==void 0?m:new Be(h)}}}catch(w){y.e=w}finally{y.d()}}))}}function c(u){const[[l],...d]=u;for(const f of d){const[p]=f,y=s(f);if(p===null)return y;l[p]=y}return l}const i=()=>{n&&(n.reject(new Error("Stream closed before head was received")),n=null),o.closeAll()},a=u=>{n?.reject(u),n=null,o.cancelAll(u)};return r.pipeTo(new WritableStream({write(u){if(n){const p=u;for(const[y,m]of Object.entries(u)){const v=c(m);p[y]=v}n.resolve(p),n=null;return}const l=u,[d]=l;o.getOrCreate(d).enqueue(l)},close:i,abort:a})).catch(u=>{var l;(l=e.onError)===null||l===void 0||l.call(e,{error:u}),a(u)}),[await n.promise]}var Nr=j({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncGeneratorDelegate.js"(e,t){var r=ge();function n(o){var s={},c=!1;function i(a,u){return c=!0,u=new Promise(function(l){l(o[a](u))}),{done:!1,value:new r(u,1)}}return s[typeof Symbol<"u"&&Symbol.iterator||"@@iterator"]=function(){return this},s.next=function(a){return c?(c=!1,a):i("next",a)},typeof o.throw=="function"&&(s.throw=function(a){if(c)throw c=!1,a;return i("throw",a)}),typeof o.return=="function"&&(s.return=function(a){return c?(c=!1,a):i("return",a)}),s}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});g(pt());var ze=g(V()),Dr=g(F());g(Nr());var mt=g(K());const Ur="ping",$r="serialized-error",Br="connected",zr="return";async function Gr(e){try{var t=(0,mt.default)();const r=t.u(wr(e.timeoutMs)),n=await lt.race([e.promise,r.start()]);return n===ft?await e.onTimeout():n}catch(r){t.e=r}finally{t.d()}}function Wr(e){const{deserialize:t=i=>i}=e;let r=rt();const n=e.signal;let o=null;const s=()=>new ReadableStream({async start(i){const[a,u]=await Promise.all([e.url(),e.init()]),l=o=new e.EventSource(a,u);i.enqueue({type:"connecting",eventSource:o,event:null}),l.addEventListener(Br,f=>{const y=JSON.parse(f.data);r=y,i.enqueue({type:"connected",options:y,eventSource:l})}),l.addEventListener($r,f=>{const p=f;i.enqueue({type:"serialized-error",error:t(JSON.parse(p.data)),eventSource:l})}),l.addEventListener(Ur,()=>{i.enqueue({type:"ping",eventSource:l})}),l.addEventListener(zr,()=>{l.close(),i.close(),o=null}),l.addEventListener("error",f=>{l.readyState===l.CLOSED?i.error(f):i.enqueue({type:"connecting",eventSource:l,event:f})}),l.addEventListener("message",f=>{const p=f,m={data:t(JSON.parse(p.data))};p.lastEventId&&(m.id=p.lastEventId),i.enqueue({type:"data",data:m,eventSource:l})});const d=()=>{try{l.close(),i.close()}catch{}};n.aborted?d():n.addEventListener("abort",d)},cancel(){o?.close()}}),c=()=>{let i=s(),a=i.getReader();async function u(){await a.cancel(),o=null}return dt({read(){return a.read()},async recreate(){await u(),i=s(),a=i.getReader()}},u)};return N((0,Dr.default)(function*(){try{var i=(0,mt.default)();const a=i.a(c());for(;;){let u=a.read();const l=r.reconnectAfterInactivityMs;l&&(u=Gr({promise:u,timeoutMs:l,onTimeout:async()=>{const f={value:{type:"timeout",ms:l,eventSource:o},done:!1};return await a.recreate(),f}}));const d=yield(0,ze.default)(u);if(d.done)return d.value;yield d.value}}catch(a){i.e=a}finally{yield(0,ze.default)(i.d())}}))}g(F());g(J());var ee=x(U()),$=x(R());function we(e){return e instanceof S}function Fr(e){return I(e)&&I(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function Yr(e,t){return typeof e=="string"?e:I(e)&&typeof e.message=="string"?e.message:t}var S=class ne extends Error{constructor(t,r){var n,o;const s=r?.cause;super(t,{cause:s}),(0,ee.default)(this,"cause",void 0),(0,ee.default)(this,"shape",void 0),(0,ee.default)(this,"data",void 0),(0,ee.default)(this,"meta",void 0),this.meta=r?.meta,this.cause=s,this.shape=r==null||(n=r.result)===null||n===void 0?void 0:n.error,this.data=r==null||(o=r.result)===null||o===void 0?void 0:o.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,ne.prototype)}static from(t,r={}){const n=t;return we(n)?(r.meta&&(n.meta=(0,$.default)((0,$.default)({},n.meta),r.meta)),n):Fr(n)?new ne(n.error.message,(0,$.default)((0,$.default)({},r),{},{result:n,cause:r.cause})):new ne(Yr(n,"Unknown error"),(0,$.default)((0,$.default)({},r),{},{cause:n}))}};function ce(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:r=>r,deserialize:r=>r},output:{serialize:r=>r,deserialize:r=>r}}}const Ge=e=>typeof e=="function";function yt(e){if(e)return e;if(typeof window<"u"&&Ge(window.fetch))return window.fetch;if(typeof globalThis<"u"&&Ge(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var Y=x(R());function xe(e){return{url:e.url.toString(),fetch:e.fetch,transformer:ce(e.transformer),methodOverride:e.methodOverride}}function Hr(e){const t={};for(let r=0;r<e.length;r++){const n=e[r];t[r]=n}return t}const Jr={query:"GET",mutation:"POST",subscription:"PATCH"};function ht(e){return"input"in e?e.transformer.input.serialize(e.input):Hr(e.inputs.map(t=>e.transformer.input.serialize(t)))}const D=e=>{const t=e.url.split("?");let n=t[0].replace(/\/$/,"")+"/"+e.path;const o=[];if(t[1]&&o.push(t[1]),"inputs"in e&&o.push("batch=1"),e.type==="query"||e.type==="subscription"){const s=ht(e);s!==void 0&&e.methodOverride!=="POST"&&o.push(`input=${encodeURIComponent(JSON.stringify(s))}`)}return o.length&&(n+="?"+o.join("&")),n},vt=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=ht(e);return t!==void 0?JSON.stringify(t):void 0},bt=e=>he((0,Y.default)((0,Y.default)({},e),{},{contentTypeHeader:"application/json",getUrl:D,getBody:vt}));var Kr=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const Vr=e=>{var t;if(e?.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new Kr};async function _t(e){var t,r;Vr(e.signal);const n=e.getUrl(e),o=e.getBody(e),s=(t=e.methodOverride)!==null&&t!==void 0?t:Jr[e.type],c=await(async()=>{const a=await e.headers();return Symbol.iterator in a?Object.fromEntries(a):a})(),i=(0,Y.default)((0,Y.default)((0,Y.default)({},e.contentTypeHeader&&s!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{[(r=e.trpcAcceptHeaderKey)!==null&&r!==void 0?r:"trpc-accept"]:e.trpcAcceptHeader}:void 0),c);return yt(e.fetch)(n,{method:s,signal:e.signal,body:o,headers:i})}async function he(e){const t={},r=await _t(e);t.response=r;const n=await r.json();return t.responseJSON=n,{json:n,meta:t}}function Se(e){return e instanceof Uint8Array||e instanceof Blob}function Pe(e){return e instanceof FormData}function Qr(e){return Se(e)||Pe(e)}var W=x(R());const Zr=e=>{if("input"in e){const{input:t}=e;if(Pe(t)){if(e.type!=="mutation"&&e.methodOverride!=="POST")throw new Error("FormData is only supported for mutations");return he((0,W.default)((0,W.default)({},e),{},{contentTypeHeader:void 0,getUrl:D,getBody:()=>t}))}if(Se(t)){if(e.type!=="mutation"&&e.methodOverride!=="POST")throw new Error("Octet type input is only supported for mutations");return he((0,W.default)((0,W.default)({},e),{},{contentTypeHeader:"application/octet-stream",getUrl:D,getBody:()=>t}))}}return bt(e)};function Xr(e){const t=xe(e);return()=>r=>{const{op:n}=r;return E(o=>{const{path:s,input:c,type:i}=n;/* istanbul ignore if -- @preserve */if(i==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const a=Zr((0,W.default)((0,W.default)({},t),{},{type:i,path:s,input:c,signal:n.signal,headers(){return e.headers?typeof e.headers=="function"?e.headers({op:n}):e.headers:{}}}));let u;return a.then(l=>{u=l.meta;const d=_e(l.json,t.transformer.output);if(!d.ok){o.error(S.from(d.error,{meta:u}));return}o.next({context:l.meta,result:d.result}),o.complete()}).catch(l=>{o.error(S.from(l,{meta:u}))}),()=>{}})}}const We=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function ie(e){let t=null,r=null;const n=()=>{clearTimeout(r),r=null,t=null};function o(i){const a=[[]];let u=0;for(;;){const f=i[u];if(!f)break;const p=a[a.length-1];if(f.aborted){var l;(l=f.reject)===null||l===void 0||l.call(f,new Error("Aborted")),u++;continue}if(e.validate(p.concat(f).map(m=>m.key))){p.push(f),u++;continue}if(p.length===0){var d;(d=f.reject)===null||d===void 0||d.call(f,new Error("Input is too big for a single dispatch")),u++;continue}a.push([])}return a}function s(){const i=o(t);n();for(const a of i){if(!a.length)continue;const u={items:a};for(const d of a)d.batch=u;e.fetch(u.items.map(d=>d.key)).then(async d=>{await Promise.all(d.map(async(p,y)=>{const m=u.items[y];try{var v;const _=await Promise.resolve(p);(v=m.resolve)===null||v===void 0||v.call(m,_)}catch(_){var w;(w=m.reject)===null||w===void 0||w.call(m,_)}m.batch=null,m.reject=null,m.resolve=null}));for(const p of u.items){var f;(f=p.reject)===null||f===void 0||f.call(p,new Error("Missing result")),p.batch=null}}).catch(d=>{for(const p of u.items){var f;(f=p.reject)===null||f===void 0||f.call(p,d),p.batch=null}})}}function c(i){var a;const u={aborted:!1,key:i,batch:null,resolve:We,reject:We},l=new Promise((d,f)=>{var p;u.reject=f,u.resolve=d,(p=t)!==null&&p!==void 0||(t=[]),t.push(u)});return(a=r)!==null&&a!==void 0||(r=setTimeout(s)),l}return{load:c}}function gt(...e){const t=new AbortController,r=e.length;let n=0;const o=()=>{++n===r&&t.abort()};for(const s of e)s?.aborted?o():s?.addEventListener("abort",o,{once:!0});return t.signal}function Ee(...e){const t=new AbortController;for(const r of e)r?.aborted?t.abort():r?.addEventListener("abort",()=>t.abort(),{once:!0});return t.signal}function en(e){return new Promise((t,r)=>{if(e.aborted){r(e.reason);return}e.addEventListener("abort",()=>{r(e.reason)},{once:!0})})}var te=x(R());function tn(e){var t,r;const n=xe(e),o=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,s=(r=e.maxItems)!==null&&r!==void 0?r:1/0;return()=>{const c=l=>({validate(d){if(o===1/0&&s===1/0)return!0;if(d.length>s)return!1;const f=d.map(m=>m.path).join(","),p=d.map(m=>m.input);return D((0,te.default)((0,te.default)({},n),{},{type:l,path:f,inputs:p,signal:null})).length<=o},async fetch(d){const f=d.map(_=>_.path).join(","),p=d.map(_=>_.input),y=gt(...d.map(_=>_.signal)),m=await bt((0,te.default)((0,te.default)({},n),{},{path:f,inputs:p,type:l,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:d}):e.headers:{}},signal:y}));return(Array.isArray(m.json)?m.json:d.map(()=>m.json)).map(_=>({meta:m.meta,json:_}))}}),i=ie(c("query")),a=ie(c("mutation")),u={query:i,mutation:a};return({op:l})=>E(d=>{/* istanbul ignore if -- @preserve */if(l.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const p=u[l.type].load(l);let y;return p.then(m=>{y=m;const v=_e(m.json,n.transformer.output);if(!v.ok){d.error(S.from(v.error,{meta:m.meta}));return}d.next({context:m.meta,result:v.result}),d.complete()}).catch(m=>{d.error(S.from(m,{meta:y?.meta}))}),()=>{}})}}var T=x(R());function rn(e){return typeof FormData>"u"?!1:e instanceof FormData}const pe={css:{query:["72e3ff","3fb0d8"],mutation:["c5a3fc","904dfc"],subscription:["ff49e1","d83fbe"]},ansi:{regular:{query:["\x1B[30;46m","\x1B[97;46m"],mutation:["\x1B[30;45m","\x1B[97;45m"],subscription:["\x1B[30;42m","\x1B[97;42m"]},bold:{query:["\x1B[1;30;46m","\x1B[1;97;46m"],mutation:["\x1B[1;30;45m","\x1B[1;97;45m"],subscription:["\x1B[1;30;42m","\x1B[1;97;42m"]}}};function nn(e){const{direction:t,type:r,withContext:n,path:o,id:s,input:c}=e,i=[],a=[];if(e.colorMode==="none")i.push(t==="up"?">>":"<<",r,`#${s}`,o);else if(e.colorMode==="ansi"){const[u,l]=pe.ansi.regular[r],[d,f]=pe.ansi.bold[r];i.push(t==="up"?u:l,t==="up"?">>":"<<",r,t==="up"?d:f,`#${s}`,o,"\x1B[0m")}else{const[u,l]=pe.css[r],d=`
|
|
3
|
+
background-color: #${t==="up"?u:l};
|
|
4
|
+
color: ${t==="up"?"black":"white"};
|
|
5
|
+
padding: 2px;
|
|
6
|
+
`;i.push("%c",t==="up"?">>":"<<",r,`#${s}`,`%c${o}%c`,"%O"),a.push(d,`${d}; font-weight: bold;`,`${d}; font-weight: normal;`)}return t==="up"?a.push(n?{input:c,context:e.context}:{input:c}):a.push((0,T.default)({input:c,result:e.result,elapsedMs:e.elapsedMs},n&&{context:e.context})),{parts:i,args:a}}const on=({c:e=console,colorMode:t="css",withContext:r})=>n=>{const o=n.input,s=rn(o)?Object.fromEntries(o):o,{parts:c,args:i}=nn((0,T.default)((0,T.default)({},n),{},{colorMode:t,input:s,withContext:r})),a=n.direction==="down"&&n.result&&(n.result instanceof Error||"error"in n.result.result&&n.result.result.error)?"error":"log";e[a].apply(null,[c.join(" ")].concat(i))};function sn(e={}){var t,r;const{enabled:n=()=>!0}=e,o=(t=e.colorMode)!==null&&t!==void 0?t:typeof window>"u"?"ansi":"css",s=(r=e.withContext)!==null&&r!==void 0?r:o==="css",{logger:c=on({c:e.console,colorMode:o,withContext:s})}=e;return()=>({op:i,next:a})=>E(u=>{n((0,T.default)((0,T.default)({},i),{},{direction:"up"}))&&c((0,T.default)((0,T.default)({},i),{},{direction:"up"}));const l=Date.now();function d(f){const p=Date.now()-l;n((0,T.default)((0,T.default)({},i),{},{direction:"down",result:f}))&&c((0,T.default)((0,T.default)({},i),{},{direction:"down",elapsedMs:p,result:f}))}return a(i).pipe(Wt({next(f){d(f)},error(f){d(f)}})).subscribe(u)})}const wt={encode:e=>JSON.stringify(e),decode:e=>{if(typeof e!="string")throw new Error("jsonEncoder received binary data. JSON uses text frames. Use a binary encoder for binary data.");return JSON.parse(e)}},an={enabled:!1,closeMs:0},cn={enabled:!1,pongTimeoutMs:1e3,intervalMs:5e3},un=e=>e===0?0:Math.min(1e3*2**e,3e4),H=(e,...t)=>typeof e=="function"?e(...t):e;var ln=x(U()),B=class xt extends Error{constructor(t){super(t.message,{cause:t.cause}),this.name="TRPCWebSocketClosedError",Object.setPrototypeOf(this,xt.prototype)}},dn=class{constructor(e,t){this.onTimeout=e,this.timeoutMs=t,(0,ln.default)(this,"timeout",void 0)}reset(){this.timeout&&(clearTimeout(this.timeout),this.timeout=setTimeout(this.onTimeout,this.timeoutMs))}start(){clearTimeout(this.timeout),this.timeout=setTimeout(this.onTimeout,this.timeoutMs)}stop(){clearTimeout(this.timeout),this.timeout=void 0}};function St(){let e,t;return{promise:new Promise((n,o)=>{e=n,t=o}),resolve:e,reject:t}}async function fn(e){const t=await H(e.url);if(!e.connectionParams)return t;const n=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+n}async function pn(e,t){const r={method:"connectionParams",data:await H(e)};return t.encode(r)}var Fe=x(U()),mn=class{constructor(){(0,Fe.default)(this,"outgoingRequests",new Array),(0,Fe.default)(this,"pendingRequests",{})}register(e,t){const{promise:r,resolve:n}=St();return this.outgoingRequests.push({id:String(e.id),message:e,end:r,callbacks:{next:t.next,complete:()=>{t.complete(),n()},error:o=>{t.error(o),n()}}}),()=>{this.delete(e.id),t.complete(),n()}}delete(e){e!==null&&(this.outgoingRequests=this.outgoingRequests.filter(({id:t})=>t!==String(e)),delete this.pendingRequests[String(e)])}flush(){const e=this.outgoingRequests;this.outgoingRequests=[];for(const t of e)this.pendingRequests[t.id]=t;return e}getPendingRequests(){return Object.values(this.pendingRequests)}getPendingRequest(e){return e===null?null:this.pendingRequests[String(e)]}getOutgoingRequests(){return this.outgoingRequests}getRequests(){return[...this.getOutgoingRequests().map(e=>({state:"outgoing",message:e.message,end:e.end,callbacks:e.callbacks})),...this.getPendingRequests().map(e=>({state:"pending",message:e.message,end:e.end,callbacks:e.callbacks}))]}hasPendingRequests(){return this.getPendingRequests().length>0}hasPendingSubscriptions(){return this.getPendingRequests().some(e=>e.message.method==="subscription")}hasOutgoingRequests(){return this.outgoingRequests.length>0}},L=x(U());function yn(e){const{promise:t,resolve:r,reject:n}=St();return e.addEventListener("open",()=>{e.removeEventListener("error",n),r()}),e.addEventListener("error",n),t}function hn(e,{intervalMs:t,pongTimeoutMs:r}){let n,o;function s(){n=setTimeout(()=>{e.send("PING"),o=setTimeout(()=>{e.close()},r)},t)}function c(){clearTimeout(n),s()}function i(){clearTimeout(o),c()}e.addEventListener("open",s),e.addEventListener("message",({data:a})=>{clearTimeout(n),s(),a==="PONG"&&i()}),e.addEventListener("close",()=>{clearTimeout(n),clearTimeout(o)})}var Pt=class ve{constructor(t){var r;if((0,L.default)(this,"id",++ve.connectCount),(0,L.default)(this,"WebSocketPonyfill",void 0),(0,L.default)(this,"urlOptions",void 0),(0,L.default)(this,"keepAliveOpts",void 0),(0,L.default)(this,"encoder",void 0),(0,L.default)(this,"wsObservable",ae(null)),(0,L.default)(this,"openPromise",null),this.WebSocketPonyfill=(r=t.WebSocketPonyfill)!==null&&r!==void 0?r:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive,this.encoder=t.encoder}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++ve.connectCount;const r=fn(t.urlOptions).then(n=>new t.WebSocketPonyfill(n));t.openPromise=r.then(async n=>{t.ws=n,n.binaryType="arraybuffer",n.addEventListener("message",function({data:o}){o==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&hn(n,t.keepAliveOpts),n.addEventListener("close",()=>{t.ws===n&&(t.ws=null)}),await yn(n),t.urlOptions.connectionParams&&n.send(await pn(t.urlOptions.connectionParams,t.encoder))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var r;(r=t.ws)===null||r===void 0||r.close()}}};(0,L.default)(Pt,"connectCount",0);function vn(e){return e.isOpen()?{id:e.id,state:"open",ws:e.ws}:e.isClosed()?{id:e.id,state:"closed",ws:e.ws}:e.ws?{id:e.id,state:"connecting",ws:e.ws}:null}var C=x(U()),z=x(R()),bn=class{constructor(e){var t,r;(0,C.default)(this,"connectionState",void 0),(0,C.default)(this,"allowReconnect",!1),(0,C.default)(this,"requestManager",new mn),(0,C.default)(this,"activeConnection",void 0),(0,C.default)(this,"reconnectRetryDelay",void 0),(0,C.default)(this,"inactivityTimeout",void 0),(0,C.default)(this,"callbacks",void 0),(0,C.default)(this,"lazyMode",void 0),(0,C.default)(this,"encoder",void 0),(0,C.default)(this,"reconnecting",null),this.encoder=(t=e.experimental_encoder)!==null&&t!==void 0?t:wt,this.callbacks={onOpen:e.onOpen,onClose:e.onClose,onError:e.onError};const n=(0,z.default)((0,z.default)({},an),e.lazy);this.inactivityTimeout=new dn(()=>{if(this.requestManager.hasOutgoingRequests()||this.requestManager.hasPendingRequests()){this.inactivityTimeout.reset();return}this.close().catch(()=>null)},n.closeMs),this.activeConnection=new Pt({WebSocketPonyfill:e.WebSocket,urlOptions:e,keepAlive:(0,z.default)((0,z.default)({},cn),e.keepAlive),encoder:this.encoder}),this.activeConnection.wsObservable.subscribe({next:o=>{o&&this.setupWebSocketListeners(o)}}),this.reconnectRetryDelay=(r=e.retryDelayMs)!==null&&r!==void 0?r:un,this.lazyMode=n.enabled,this.connectionState=ae({type:"state",state:n.enabled?"idle":"connecting",error:null}),this.lazyMode||this.open().catch(()=>null)}async open(){var e=this;e.allowReconnect=!0,e.connectionState.get().state==="idle"&&e.connectionState.next({type:"state",state:"connecting",error:null});try{await e.activeConnection.open()}catch(t){return e.reconnect(new B({message:"Initialization error",cause:t})),e.reconnecting}}async close(){var e=this;e.allowReconnect=!1,e.inactivityTimeout.stop();const t=[];for(const r of e.requestManager.getRequests())r.message.method==="subscription"?r.callbacks.complete():r.state==="outgoing"?r.callbacks.error(S.from(new B({message:"Closed before connection was established"}))):t.push(r.end);await Promise.all(t).catch(()=>null),await e.activeConnection.close().catch(()=>null),e.connectionState.next({type:"state",state:"idle",error:null})}request({op:{id:e,type:t,path:r,input:n,signal:o},transformer:s,lastEventId:c}){return E(i=>{const a=this.batchSend({id:e,method:t,params:{input:s.input.serialize(n),path:r,lastEventId:c}},(0,z.default)((0,z.default)({},i),{},{next(u){const l=_e(u,s.output);if(!l.ok){i.error(S.from(l.error));return}i.next({result:l.result})}}));return()=>{a(),t==="subscription"&&this.activeConnection.isOpen()&&this.send({id:e,method:"subscription.stop"}),o?.removeEventListener("abort",a)}})}get connection(){return vn(this.activeConnection)}reconnect(e){var t=this;if(this.connectionState.next({type:"state",state:"connecting",error:S.from(e)}),this.reconnecting)return;const r=async n=>{try{await Ce(t.reconnectRetryDelay(n)),t.allowReconnect&&(await t.activeConnection.close(),await t.activeConnection.open(),t.requestManager.hasPendingRequests()&&t.send(t.requestManager.getPendingRequests().map(({message:o})=>o))),t.reconnecting=null}catch{await r(n+1)}};this.reconnecting=r(0)}setupWebSocketListeners(e){var t=this;const r=n=>{const o=this.requestManager.getPendingRequests();for(const{message:s,callbacks:c}of o)s.method!=="subscription"&&(c.error(S.from(n??new B({message:"WebSocket closed",cause:n}))),this.requestManager.delete(s.id))};e.addEventListener("open",()=>{N(async()=>{var n,o;t.lazyMode&&t.inactivityTimeout.start(),(n=(o=t.callbacks).onOpen)===null||n===void 0||n.call(o),t.connectionState.next({type:"state",state:"pending",error:null})}).catch(n=>{e.close(3e3),r(n)})}),e.addEventListener("message",({data:n})=>{if(this.inactivityTimeout.reset(),["PING","PONG"].includes(n))return;const o=this.encoder.decode(n);if("method"in o){this.handleIncomingRequest(o);return}this.handleResponseMessage(o)}),e.addEventListener("close",n=>{var o,s;r(n),(o=(s=this.callbacks).onClose)===null||o===void 0||o.call(s,n),(!this.lazyMode||this.requestManager.hasPendingSubscriptions())&&this.reconnect(new B({message:"WebSocket closed",cause:n}))}),e.addEventListener("error",n=>{var o,s;r(n),(o=(s=this.callbacks).onError)===null||o===void 0||o.call(s,n),this.reconnect(new B({message:"WebSocket closed",cause:n}))})}handleResponseMessage(e){const t=this.requestManager.getPendingRequest(e.id);if(!t)return;t.callbacks.next(e);let r=!0;"result"in e&&t.message.method==="subscription"&&(e.result.type==="data"&&(t.message.params.lastEventId=e.result.id),e.result.type!=="stopped"&&(r=!1)),r&&(t.callbacks.complete(),this.requestManager.delete(e.id))}handleIncomingRequest(e){e.method==="reconnect"&&this.reconnect(new B({message:"Server requested reconnect"}))}send(e){if(!this.activeConnection.isOpen())throw new Error("Active connection is not open");const t=e instanceof Array?e:[e];this.activeConnection.ws.send(this.encoder.encode(t.length===1?t[0]:t))}batchSend(e,t){var r=this;return this.inactivityTimeout.reset(),N(async()=>{r.activeConnection.isOpen()||await r.open(),await Ce(0),r.requestManager.hasOutgoingRequests()&&r.send(r.requestManager.flush().map(({message:n})=>n))}).catch(n=>{this.requestManager.delete(e.id),t.error(S.from(n))}),this.requestManager.register(e,t)}};function _n(e){return new bn(e)}function gn(e){const{client:t}=e,r=ce(e.transformer);return()=>({op:n})=>E(o=>{const s=n.type==="subscription"?t.connectionState.subscribe({next(i){o.next({result:i,context:n.context})}}):null,c=t.request({op:n,transformer:r}).subscribe(o);return()=>{c.unsubscribe(),s?.unsubscribe()}})}var me=x(U()),Ye=x(R()),Oe=class{constructor(e){(0,me.default)(this,"links",void 0),(0,me.default)(this,"runtime",void 0),(0,me.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return tt({links:this.links,op:(0,Ye.default)((0,Ye.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(Gt())}async requestAsPromise(e){var t=this;try{const r=t.$request(e);return(await zt(r)).result.data}catch(r){throw S.from(r)}}query(e,t,r){return this.requestAsPromise({type:"query",path:e,input:t,context:r?.context,signal:r?.signal})}mutation(e,t,r){return this.requestAsPromise({type:"mutation",path:e,input:t,context:r?.context,signal:r?.signal})}subscription(e,t,r){return this.$request({type:"subscription",path:e,input:t,context:r.context,signal:r.signal}).subscribe({next(o){switch(o.result.type){case"state":{var s;(s=r.onConnectionStateChange)===null||s===void 0||s.call(r,o.result);break}case"started":{var c;(c=r.onStarted)===null||c===void 0||c.call(r,{context:o.context});break}case"stopped":{var i;(i=r.onStopped)===null||i===void 0||i.call(r);break}case"data":case void 0:{var a;(a=r.onData)===null||a===void 0||a.call(r,o.result.data);break}}},error(o){var s;(s=r.onError)===null||s===void 0||s.call(r,o)},complete(){var o;(o=r.onComplete)===null||o===void 0||o.call(r)}})}};function wn(e){return new Oe(e)}const Et=Symbol.for("trpc_untypedClient"),xn={query:"query",mutate:"mutation",subscribe:"subscription"},Ot=e=>xn[e];function Tt(e){const t=Zt(({path:r,args:n})=>{const o=[...r],s=Ot(o.pop()),c=o.join(".");return e[s](c,...n)});return Xt(r=>r===Et?e:t[r])}function He(e){const t=new Oe(e);return Tt(t)}function Sn(e){return e[Et]}var re=x(R());function Rt(e){var t,r;const n=xe(e),o=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,s=(r=e.maxItems)!==null&&r!==void 0?r:1/0;return()=>{const c=l=>({validate(d){if(o===1/0&&s===1/0)return!0;if(d.length>s)return!1;const f=d.map(m=>m.path).join(","),p=d.map(m=>m.input);return D((0,re.default)((0,re.default)({},n),{},{type:l,path:f,inputs:p,signal:null})).length<=o},async fetch(d){var f;const p=d.map(h=>h.path).join(","),y=d.map(h=>h.input),m=gt(...d.map(h=>h.signal)),v=new AbortController,_=await _t((0,re.default)((0,re.default)({},n),{},{signal:Ee(m,v.signal),type:l,contentTypeHeader:"application/json",trpcAcceptHeader:"application/jsonl",trpcAcceptHeaderKey:(f=e.streamHeader)!==null&&f!==void 0?f:"trpc-accept",getUrl:D,getBody:vt,inputs:y,path:p,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:d}):e.headers:{}}}));if(!_.ok){const h=await _.json();return"error"in h&&(h.error=n.transformer.output.deserialize(h.error)),d.map(()=>Promise.resolve({json:h,meta:{response:_}}))}const[b]=await Mr({from:_.body,deserialize:h=>n.transformer.output.deserialize(h),formatError(h){const P=h.error;return S.from({error:P})},abortController:v});return Object.keys(d).map(async h=>{let P=await Promise.resolve(b[h]);if("result"in P){const q=await Promise.resolve(P.result);P={result:{data:await Promise.resolve(q.data)}}}return{json:P,meta:{response:_}}})}}),i=ie(c("query")),a=ie(c("mutation")),u={query:i,mutation:a};return({op:l})=>E(d=>{/* istanbul ignore if -- @preserve */if(l.type==="subscription")throw new Error("Subscriptions are unsupported by `httpBatchStreamLink` - use `httpSubscriptionLink` or `wsLink`");const p=u[l.type].load(l);let y;return p.then(m=>{if(y=m,"error"in m.json){d.error(S.from(m.json,{meta:m.meta}));return}else if("result"in m.json){d.next({context:m.meta,result:m.json.result}),d.complete();return}d.complete()}).catch(m=>{d.error(S.from(m,{meta:y?.meta}))}),()=>{}})}}const Pn=Rt;var Je=x(R());function Te(e,t){return!t||e!=null&&typeof e!="object"?e:(0,Je.default)((0,Je.default)({},e??{}),{},{lastEventId:t})}var En=k({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function r(o){var s,c,i,a=2;for(typeof Symbol<"u"&&(c=Symbol.asyncIterator,i=Symbol.iterator);a--;){if(c&&(s=o[c])!=null)return s.call(o);if(i&&(s=o[i])!=null)return new n(s.call(o));c="@@asyncIterator",i="@@iterator"}throw new TypeError("Object is not async iterable")}function n(o){function s(c){if(Object(c)!==c)return Promise.reject(new TypeError(c+" is not an object."));var i=c.done;return Promise.resolve(c.value).then(function(a){return{value:a,done:i}})}return n=function(i){this.s=i,this.n=i.next},n.prototype={s:null,n:null,next:function(){return s(this.n.apply(this.s,arguments))},return:function(i){var a=this.s.return;return a===void 0?Promise.resolve({value:i,done:!0}):s(a.apply(this.s,arguments))},throw:function(i){var a=this.s.return;return a===void 0?Promise.reject(i):s(a.apply(this.s,arguments))}},new n(o)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),On=x(En());async function Tn(e){let t=await H(e.url);if(e.connectionParams){const r=await H(e.connectionParams),n=t.includes("?")?"&":"?";t+=n+"connectionParams="+encodeURIComponent(JSON.stringify(r))}return t}function jt(e){const t=ce(e.transformer);return()=>({op:r})=>E(n=>{var o;const{type:s,path:c,input:i}=r;/* istanbul ignore if -- @preserve */if(s!=="subscription")throw new Error("httpSubscriptionLink only supports subscriptions");let a;const u=new AbortController,l=Ee(r.signal,u.signal),d=Wr({url:async()=>D({transformer:t,url:await Tn(e),input:Te(i,a),path:c,type:s,signal:null}),init:()=>H(e.eventSourceOptions,{op:r}),signal:l,deserialize:y=>t.output.deserialize(y),EventSource:(o=e.EventSource)!==null&&o!==void 0?o:globalThis.EventSource}),f=ae({type:"state",state:"connecting",error:null}),p=f.subscribe({next(y){n.next({result:y})}});return N(async()=>{var y=!1,m=!1,v;try{for(var w=(0,On.default)(d),_;y=!(_=await w.next()).done;y=!1){const b=_.value;switch(b.type){case"ping":break;case"data":const O=b.data;let h;O.id?(a=O.id,h={id:O.id,data:O}):h={data:O.data},n.next({result:h,context:{eventSource:b.eventSource}});break;case"connected":{n.next({result:{type:"started"},context:{eventSource:b.eventSource}}),f.next({type:"state",state:"pending",error:null});break}case"serialized-error":{const P=S.from({error:b.error});if(nt.includes(b.error.code)){f.next({type:"state",state:"connecting",error:P});break}throw P}case"connecting":{const P=f.get(),q=b.event&&S.from(b.event);if(!q&&P.state==="connecting")break;f.next({type:"state",state:"connecting",error:q});break}case"timeout":f.next({type:"state",state:"connecting",error:new S(`Timeout of ${b.ms}ms reached while waiting for a response`)})}}}catch(b){m=!0,v=b}finally{try{y&&w.return!=null&&await w.return()}finally{if(m)throw v}}n.next({result:{type:"stopped"}}),f.next({type:"state",state:"idle",error:null}),n.complete()}).catch(y=>{n.error(S.from(y))}),()=>{n.complete(),u.abort(),p.unsubscribe()}})}const Rn=jt;var Ke=x(R());function jn(e){return()=>t=>E(r=>{let n,o,s;i(1);function c(){const a=t.op;return s?(0,Ke.default)((0,Ke.default)({},a),{},{input:Te(a.input,s)}):a}function i(a){const u=c();n=t.next(u).subscribe({error(l){var d,f;if(!e.retry({op:u,attempts:a,error:l})){r.error(l);return}const y=(d=(f=e.retryDelayMs)===null||f===void 0?void 0:f.call(e,a))!==null&&d!==void 0?d:0;if(y<=0){i(a+1);return}o=setTimeout(()=>i(a+1),y)},next(l){(!l.result.type||l.result.type==="data")&&l.result.id&&(s=l.result.id),r.next(l)},complete(){r.complete()}})}return()=>{n.unsubscribe(),clearTimeout(o)}})}var Cn=k({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function r(){var n=typeof SuppressedError=="function"?SuppressedError:function(i,a){var u=Error();return u.name="SuppressedError",u.error=i,u.suppressed=a,u},o={},s=[];function c(i,a){if(a!=null){if(Object(a)!==a)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(i)var u=a[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(u===void 0&&(u=a[Symbol.dispose||Symbol.for("Symbol.dispose")],i))var l=u;if(typeof u!="function")throw new TypeError("Object is not disposable.");l&&(u=function(){try{l.call(a)}catch(f){return Promise.reject(f)}}),s.push({v:a,d:u,a:i})}else i&&s.push({d:a,a:i});return a}return{e:o,u:c.bind(null,!1),a:c.bind(null,!0),d:function(){var a,u=this.e,l=0;function d(){for(;a=s.pop();)try{if(!a.a&&l===1)return l=0,s.push(a),Promise.resolve().then(d);if(a.d){var p=a.d.call(a.v);if(a.a)return l|=2,Promise.resolve(p).then(d,f)}else l|=1}catch(y){return f(y)}if(l===1)return u!==o?Promise.reject(u):Promise.resolve();if(u!==o)throw u}function f(p){return u=u!==o?new n(p,u):p,d()}return d()}}}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ct=k({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function r(n,o){this.v=n,this.k=o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),kn=k({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var r=Ct();function n(o){return new r(o,0)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),An=k({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var r=Ct();function n(s){return function(){return new o(s.apply(this,arguments))}}function o(s){var c,i;function a(l,d){try{var f=s[l](d),p=f.value,y=p instanceof r;Promise.resolve(y?p.v:p).then(function(m){if(y){var v=l==="return"?"return":"next";if(!p.k||m.done)return a(v,m);m=s[v](m).value}u(f.done?"return":"normal",m)},function(m){a("throw",m)})}catch(m){u("throw",m)}}function u(l,d){switch(l){case"return":c.resolve({value:d,done:!0});break;case"throw":c.reject(d);break;default:c.resolve({value:d,done:!1})}(c=c.next)?a(c.key,c.arg):i=null}this._invoke=function(l,d){return new Promise(function(f,p){var y={key:l,arg:d,resolve:f,reject:p,next:null};i?i=i.next=y:(c=i=y,a(l,d))})},typeof s.return!="function"&&(this.return=void 0)}o.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},o.prototype.next=function(s){return this._invoke("next",s)},o.prototype.throw=function(s){return this._invoke("throw",s)},o.prototype.return=function(s){return this._invoke("return",s)},t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),ye=x(Cn()),Ve=x(kn()),Ln=x(An()),Qe=x(R());function kt(e){const t=ce(e.transformer),r=n=>{if(e.transformer||n===void 0)return n;const o=JSON.stringify(t.input.serialize(n));return JSON.parse(t.output.deserialize(o))};return()=>({op:n})=>E(o=>{let s;const c=new AbortController,i=Ee(n.signal,c.signal),a=en(i);a.catch(()=>{});let u=n.input;async function l(p){return u=p,s=await e.createContext(),fr({router:e.router,path:n.path,getRawInput:async()=>p,ctx:s,type:n.type,signal:i,batchIndex:0})}function d(p){var y;Ie(p)||(y=e.onError)===null||y===void 0||y.call(e,{error:le(p),type:n.type,path:n.path,input:u,ctx:s})}function f(p){if(we(p))return p;const y=le(p),m=sr({config:e.router._def._config,ctx:s,error:y,input:u,path:n.path,type:n.type});return S.from({error:r(m)},{cause:p instanceof Error?p:void 0})}return N(async()=>{switch(n.type){case"query":case"mutation":{const m=await l(n.input);if(!je(m)){o.next({result:{data:r(m)}}),o.complete();break}o.next({result:{data:(0,Ln.default)(function*(){try{var v=(0,ye.default)();const w=v.a(Ue(m)),_=v.u(se({},()=>{o.complete()}));try{for(;;){const b=yield(0,Ve.default)(Promise.race([w.next(),a]));if(b.done)return r(b.value);yield r(b.value)}}catch(b){throw d(b),f(b)}}catch(w){v.e=w}finally{yield(0,Ve.default)(v.d())}})()}});break}case"subscription":try{var p=(0,ye.default)();const m=ae({type:"state",state:"connecting",error:null}),v=m.subscribe({next(b){o.next({result:b})}});let w;const _=p.u(se({},async()=>{o.complete(),m.next({type:"state",state:"idle",error:null}),v.unsubscribe()}));for(;;)try{var y=(0,ye.default)();const b=await l(Te(n.input,w));if(!je(b))throw new Error("Expected an async iterable");const O=y.a(Ue(b));for(o.next({result:{type:"started"}}),m.next({type:"state",state:"pending",error:null});;){let h;try{h=await Promise.race([O.next(),a])}catch(q){if(Ie(q))return;const Q=le(q);if(!nt.includes(G[Q.code]))throw f(Q);d(Q),m.next({type:"state",state:"connecting",error:f(Q)});break}if(h.done)return;let P;mr(h.value)?(w=h.value[0],P={id:h.value[0],data:{id:h.value[0],data:h.value[1]}}):P={data:h.value},o.next({result:(0,Qe.default)((0,Qe.default)({},P),{},{data:r(P.data)})})}}catch(b){y.e=b}finally{await y.d()}break}catch(m){p.e=m}finally{p.d()}}}).catch(p=>{d(p),o.error(f(p))}),()=>{c.abort()}})}const In=kt,qn=Object.freeze(Object.defineProperty({__proto__:null,TRPCClientError:S,TRPCUntypedClient:Oe,clientCallTypeToProcedureType:Ot,createTRPCClient:He,createTRPCClientProxy:Tt,createTRPCProxyClient:He,createTRPCUntypedClient:wn,createWSClient:_n,experimental_localLink:In,getFetch:yt,getUntypedClient:Sn,httpBatchLink:tn,httpBatchStreamLink:Rt,httpLink:Xr,httpSubscriptionLink:jt,isFormData:Pe,isNonJsonSerializable:Qr,isOctetType:Se,isTRPCClientError:we,jsonEncoder:wt,loggerLink:sn,retryLink:jn,splitLink:Ft,unstable_httpBatchStreamLink:Pn,unstable_httpSubscriptionLink:Rn,unstable_localLink:kt,wsLink:gn},Symbol.toStringTag,{value:"Module"})),ue="__mf_module_cache__";globalThis[ue]||={share:{},remote:{}};globalThis[ue].share||={};globalThis[ue].remote||={};const At=globalThis[ue];let A=At.share["@trpc/client"];A===void 0&&(A=qn,At.share["@trpc/client"]=A);const Mn=A,Nn=A.__esModule?A.default:A.default??A,{TRPCClientError:Dn,TRPCUntypedClient:Un,clientCallTypeToProcedureType:$n,createTRPCClient:Bn,createTRPCClientProxy:zn,createTRPCProxyClient:Gn,createTRPCUntypedClient:Wn,createWSClient:Fn,experimental_localLink:Yn,getFetch:Hn,getUntypedClient:Jn,httpBatchLink:Kn,httpBatchStreamLink:Vn,httpLink:Qn,httpSubscriptionLink:Zn,isFormData:Xn,isNonJsonSerializable:eo,isOctetType:to,isTRPCClientError:ro,jsonEncoder:no,loggerLink:oo,retryLink:so,splitLink:io,unstable_httpBatchStreamLink:ao,unstable_httpSubscriptionLink:co,unstable_localLink:uo,wsLink:lo}=A,fo=Lt({__proto__:null,TRPCClientError:Dn,TRPCUntypedClient:Un,clientCallTypeToProcedureType:$n,createTRPCClient:Bn,createTRPCClientProxy:zn,createTRPCProxyClient:Gn,createTRPCUntypedClient:Wn,createWSClient:Fn,default:Nn,experimental_localLink:Yn,getFetch:Hn,getUntypedClient:Jn,httpBatchLink:Kn,httpBatchStreamLink:Vn,httpLink:Qn,httpSubscriptionLink:Zn,isFormData:Xn,isNonJsonSerializable:eo,isOctetType:to,isTRPCClientError:ro,jsonEncoder:no,loggerLink:oo,retryLink:so,splitLink:io,unstable_httpBatchStreamLink:ao,unstable_httpSubscriptionLink:co,unstable_localLink:uo,wsLink:lo},[Mn]);export{so as A,io as B,ao as C,co as D,uo as E,lo as F,qn as G,fo as _,Un as a,Jn as b,Bn as c,je as d,Zt as e,zn as f,Xt as g,Mn as h,I as i,Dn as j,$n as k,Gn as l,Wn as m,Fn as n,Yn as o,Hn as p,Kn as q,Vn as r,Qn as s,Zn as t,Xn as u,eo as v,to as w,ro as x,no as y,oo as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_}from"./__mfe_internal__admin_ui_host__loadShare___mf_0_trpc_mf_1_client__loadShare__.mjs-DIkg6-MH.js";import{b as e}from"./__mfe_internal__admin_ui_host__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs-C_6K4VBY.js";const m=e(_);export{m as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as w,b as je,c as $e,d as qe,e as De,f as Re,g as Te,h as ke,i as Ue,j as we,k as Ie,l as Me,m as Le}from"./__mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.mjs-CeLhKMin.js";import{i as Fe,a as J,b as G,c as fe,d as _e,e as oe,f as de,g as pe,h as Ee,j as Ke,k as Ae,l as We,m as Be,n as Ne,o as ze,p as He,q as Je,r as Ge,s as Ve,t as Xe,u as Ye,v as Ze,w as et,x as tt,y as rt,z as nt,A as at,B as ut,C as ot,D as it,E as lt,F as st}from"./__mfe_internal__admin_ui_host__loadShare___mf_0_trpc_mf_1_client__loadShare__.mjs-DIkg6-MH.js";import{b as ct,a as ft,i as Z,c as ee,e as te,h as re,d as _t,f as H}from"./__mfe_internal__admin_ui_host__loadShare__react__loadShare__.mjs-Dl4u0xYE.js";import{c as dt}from"./__mfe_internal__admin_ui_host__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs-C_6K4VBY.js";function ye(a,n){for(var u=0;u<n.length;u++){const l=n[u];if(typeof l!="string"&&!Array.isArray(l)){for(const e in l)if(e!=="default"&&!(e in a)){const r=Object.getOwnPropertyDescriptor(l,e);r&&Object.defineProperty(a,e,r.get?r:{enumerable:!0,get:()=>l[e]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var pt=Object.create,ve=Object.defineProperty,yt=Object.getOwnPropertyDescriptor,me=Object.getOwnPropertyNames,vt=Object.getPrototypeOf,mt=Object.prototype.hasOwnProperty,F=(a,n)=>function(){return n||(0,a[me(a)[0]])((n={exports:{}}).exports,n),n.exports},ht=(a,n,u,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(var e=me(n),r=0,t=e.length,o;r<t;r++)o=e[r],!mt.call(a,o)&&o!==u&&ve(a,o,{get:(c=>n[c]).bind(null,o),enumerable:!(l=yt(n,o))||l.enumerable});return a},W=(a,n,u)=>(u=a!=null?pt(vt(a)):{},ht(n||!a||!a.__esModule?ve(u,"default",{value:a,enumerable:!0}):u,a)),bt=F({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(a,n){function u(l,e){if(l==null)return{};var r={};for(var t in l)if({}.hasOwnProperty.call(l,t)){if(e.includes(t))continue;r[t]=l[t]}return r}n.exports=u,n.exports.__esModule=!0,n.exports.default=n.exports}}),gt=F({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(a,n){var u=bt();function l(e,r){if(e==null)return{};var t,o,c=u(e,r);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(e);for(o=0;o<D.length;o++)t=D[o],r.includes(t)||{}.propertyIsEnumerable.call(e,t)&&(c[t]=e[t])}return c}n.exports=l,n.exports.__esModule=!0,n.exports.default=n.exports}}),he=F({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(a,n){function u(l){"@babel/helpers - typeof";return n.exports=u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n.exports.__esModule=!0,n.exports.default=n.exports,u(l)}n.exports=u,n.exports.__esModule=!0,n.exports.default=n.exports}}),Pt=F({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(a,n){var u=he().default;function l(e,r){if(u(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var o=t.call(e,r||"default");if(u(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}n.exports=l,n.exports.__esModule=!0,n.exports.default=n.exports}}),Ct=F({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(a,n){var u=he().default,l=Pt();function e(r){var t=l(r,"string");return u(t)=="symbol"?t:t+""}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports}}),Ot=F({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(a,n){var u=Ct();function l(e,r,t){return(r=u(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}n.exports=l,n.exports.__esModule=!0,n.exports.default=n.exports}}),z=F({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(a,n){var u=Ot();function l(r,t){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(r);t&&(c=c.filter(function(D){return Object.getOwnPropertyDescriptor(r,D).enumerable})),o.push.apply(o,c)}return o}function e(r){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?l(Object(o),!0).forEach(function(c){u(r,c,o[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):l(Object(o)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(o,c))})}return r}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports}}),St=W(gt(),1),le=W(z(),1);const xt=["cursor","direction"];function U(a,n,u){const l=a.flatMap(e=>e.split("."));if(!n&&(!u||u==="any"))return l.length?[l]:[];if(u==="infinite"&&Fe(n)&&("direction"in n||"cursor"in n)){const{cursor:e,direction:r}=n,t=(0,St.default)(n,xt);return[l,{input:t,type:"infinite"}]}return[l,(0,le.default)((0,le.default)({},typeof n<"u"&&n!==w&&{input:n}),u&&u!=="any"&&{type:u})]}function N(a){return U(a,void 0,"any")}function Qt(a,...n){const[u,l]=n,e=a._def().path;return U(e,u,l??"any")}function jt(a){const n=a._def().path;return N(n)}function $t(a){return oe(({path:n,args:u})=>{var l;const e=[...n],r=e.pop();if(r==="useMutation")return a[r](e,...u);if(r==="_def")return{path:e};const[t,...o]=u,c=(l=o[0])!==null&&l!==void 0?l:{};return a[r](e,t,c)})}var ne;const qt=["client","ssrContext","ssrState","abortOnUnmount"],Dt=(ne=ct)===null||ne===void 0?void 0:ne.call(ft,null),Rt=a=>{switch(a){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function be(a){return oe(n=>{const u=[...n.path],l=u.pop(),e=[...n.args],r=e.shift(),t=Rt(l),o=U(u,r,t);return{infiniteQueryOptions:()=>a.infiniteQueryOptions(u,o,e[0]),queryOptions:()=>a.queryOptions(u,o,...e),fetch:()=>a.fetchQuery(o,...e),fetchInfinite:()=>a.fetchInfiniteQuery(o,e[0]),prefetch:()=>a.prefetchQuery(o,...e),prefetchInfinite:()=>a.prefetchInfiniteQuery(o,e[0]),ensureData:()=>a.ensureQueryData(o,...e),invalidate:()=>a.invalidateQueries(o,...e),reset:()=>a.resetQueries(o,...e),refetch:()=>a.refetchQueries(o,...e),cancel:()=>a.cancelQuery(o,...e),setData:()=>{a.setQueryData(o,e[0],e[1])},setQueriesData:()=>a.setQueriesData(o,e[0],e[1],e[2]),setInfiniteData:()=>{a.setInfiniteQueryData(o,e[0],e[1])},getData:()=>a.getQueryData(o),getInfiniteData:()=>a.getInfiniteQueryData(o),setMutationDefaults:()=>a.setMutationDefaults(N(u),r),getMutationDefaults:()=>a.getMutationDefaults(N(u)),isMutating:()=>a.isMutating({mutationKey:N(u)})}[l]()})}function Tt(a){const n=de(a.client),u=be(a);return pe(l=>{const e=l;return e==="client"?n:qt.includes(e)?a[e]:u[l]})}function kt(a){return be(a)}var Ut=W(z(),1);function se(a){const n=a instanceof J?a:G(a);return oe(u=>{const l=u.path,e=l.join("."),[r,t]=u.args;return(0,Ut.default)({queryKey:U(l,r,"query"),queryFn:()=>n.query(e,r,t?.trpc)},t)})}var ae=W(z(),1);function R(a,n,u){var l;const e=a[0];let r=(l=a[1])===null||l===void 0?void 0:l.input;if(u){var t;r=(0,ae.default)((0,ae.default)((0,ae.default)({},(t=r)!==null&&t!==void 0?t:{}),u.pageParam?{cursor:u.pageParam}:{}),{},{direction:u.direction})}return[e.join("."),r,n?.trpc]}var wt=F({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(a,n){function u(e){var r,t,o,c=2;for(typeof Symbol<"u"&&(t=Symbol.asyncIterator,o=Symbol.iterator);c--;){if(t&&(r=e[t])!=null)return r.call(e);if(o&&(r=e[o])!=null)return new l(r.call(e));t="@@asyncIterator",o="@@iterator"}throw new TypeError("Object is not async iterable")}function l(e){function r(t){if(Object(t)!==t)return Promise.reject(new TypeError(t+" is not an object."));var o=t.done;return Promise.resolve(t.value).then(function(c){return{value:c,done:o}})}return l=function(o){this.s=o,this.n=o.next},l.prototype={s:null,n:null,next:function(){return r(this.n.apply(this.s,arguments))},return:function(o){var c=this.s.return;return c===void 0?Promise.resolve({value:o,done:!0}):r(c.apply(this.s,arguments))},throw:function(o){var c=this.s.return;return c===void 0?Promise.reject(o):r(c.apply(this.s,arguments))}},new l(e)}n.exports=u,n.exports.__esModule=!0,n.exports.default=n.exports}}),It=W(wt(),1);function ue(a){return{path:a.path.join(".")}}function B(a){const n=ue(a);return H(()=>n,[n])}async function ge(a,n,u){const e=n.getQueryCache().build(n,{queryKey:u});e.setState({data:[],status:"success"});const r=[];var t=!1,o=!1,c;try{for(var D=(0,It.default)(a),L;t=!(L=await D.next()).done;t=!1){const T=L.value;r.push(T),e.setState({data:[...r]})}}catch(T){o=!0,c=T}finally{try{t&&D.return!=null&&await D.return()}finally{if(o)throw c}}return r}var h=W(z(),1);function Pe(a){const{client:n,queryClient:u}=a,l=n instanceof J?n:G(n);return{infiniteQueryOptions:(e,r,t)=>{var o,c;const D=((o=r[1])===null||o===void 0?void 0:o.input)===w,L=async T=>{var E;const K=(0,h.default)((0,h.default)({},t),{},{trpc:(0,h.default)((0,h.default)({},t?.trpc),!(t==null||(E=t.trpc)===null||E===void 0)&&E.abortOnUnmount?{signal:T.signal}:{signal:null})});return await l.query(...R(r,K,{direction:T.direction,pageParam:T.pageParam}))};return Object.assign($e((0,h.default)((0,h.default)({},t),{},{initialData:t?.initialData,queryKey:r,queryFn:D?w:L,initialPageParam:(c=t?.initialCursor)!==null&&c!==void 0?c:null})),{trpc:ue({path:e})})},queryOptions:(e,r,t)=>{var o;const c=((o=r[1])===null||o===void 0?void 0:o.input)===w,D=async L=>{var T;const E=(0,h.default)((0,h.default)({},t),{},{trpc:(0,h.default)((0,h.default)({},t?.trpc),!(t==null||(T=t.trpc)===null||T===void 0)&&T.abortOnUnmount?{signal:L.signal}:{signal:null})}),K=await l.query(...R(r,E));return _e(K)?ge(K,u,r):K};return Object.assign(je((0,h.default)((0,h.default)({},t),{},{initialData:t?.initialData,queryKey:r,queryFn:c?w:D})),{trpc:ue({path:e})})},fetchQuery:(e,r)=>u.fetchQuery((0,h.default)((0,h.default)({},r),{},{queryKey:e,queryFn:()=>l.query(...R(e,r))})),fetchInfiniteQuery:(e,r)=>{var t;return u.fetchInfiniteQuery((0,h.default)((0,h.default)({},r),{},{queryKey:e,queryFn:({pageParam:o,direction:c})=>l.query(...R(e,r,{pageParam:o,direction:c})),initialPageParam:(t=r?.initialCursor)!==null&&t!==void 0?t:null}))},prefetchQuery:(e,r)=>u.prefetchQuery((0,h.default)((0,h.default)({},r),{},{queryKey:e,queryFn:()=>l.query(...R(e,r))})),prefetchInfiniteQuery:(e,r)=>{var t;return u.prefetchInfiniteQuery((0,h.default)((0,h.default)({},r),{},{queryKey:e,queryFn:({pageParam:o,direction:c})=>l.query(...R(e,r,{pageParam:o,direction:c})),initialPageParam:(t=r?.initialCursor)!==null&&t!==void 0?t:null}))},ensureQueryData:(e,r)=>u.ensureQueryData((0,h.default)((0,h.default)({},r),{},{queryKey:e,queryFn:()=>l.query(...R(e,r))})),invalidateQueries:(e,r,t)=>u.invalidateQueries((0,h.default)((0,h.default)({},r),{},{queryKey:e}),t),resetQueries:(e,r,t)=>u.resetQueries((0,h.default)((0,h.default)({},r),{},{queryKey:e}),t),refetchQueries:(e,r,t)=>u.refetchQueries((0,h.default)((0,h.default)({},r),{},{queryKey:e}),t),cancelQuery:(e,r)=>u.cancelQueries({queryKey:e},r),setQueryData:(e,r,t)=>u.setQueryData(e,r,t),setQueriesData:(e,r,t,o)=>u.setQueriesData((0,h.default)((0,h.default)({},r),{},{queryKey:e}),t,o),getQueryData:e=>u.getQueryData(e),setInfiniteQueryData:(e,r,t)=>u.setQueryData(e,r,t),getInfiniteQueryData:e=>u.getQueryData(e),setMutationDefaults:(e,r)=>{const t=e[0],o=c=>l.mutation(...R([t,{input:c}],a));return u.setMutationDefaults(e,typeof r=="function"?r({canonicalMutationFn:o}):r)},getMutationDefaults:e=>u.getMutationDefaults(e),isMutating:e=>u.isMutating((0,h.default)((0,h.default)({},e),{},{exact:!0}))}}var s=W(z());const ce=(a,n)=>new Proxy(a,{get(l,e){return n(e),l[e]}});function Mt(a){var n,u,l;const e=(n=a==null||(u=a.overrides)===null||u===void 0||(u=u.useMutation)===null||u===void 0?void 0:u.onSuccess)!==null&&n!==void 0?n:v=>v.originalFn(),r=(l=a?.context)!==null&&l!==void 0?l:Dt,t=fe,o=v=>{var f;const{abortOnUnmount:i=!1,queryClient:_,ssrContext:d}=v,[y,m]=te((f=v.ssrState)!==null&&f!==void 0?f:!1),p=v.client instanceof J?v.client:G(v.client),P=H(()=>Pe({client:p,queryClient:_}),[p,_]),b=H(()=>(0,s.default)({abortOnUnmount:i,queryClient:_,client:p,ssrContext:d??null,ssrState:y},P),[i,p,P,_,d,y]);return ee(()=>{m(O=>O?"mounted":!1)},[]),dt(r.Provider,{value:b,children:v.children})};function c(){const v=_t(r);if(!v)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return v}function D(v,f){var i;const{queryClient:_,ssrState:d}=c();return d&&d!=="mounted"&&((i=_.getQueryCache().find({queryKey:v}))===null||i===void 0?void 0:i.state.status)==="error"?(0,s.default)({retryOnMount:!1},f):f}function L(v,f,i){var _,d,y,m,p;const P=c(),{abortOnUnmount:b,client:O,ssrState:g,queryClient:x,prefetchQuery:Q}=P,$=U(v,f,"query"),I=x.getQueryDefaults($),j=f===w;typeof window>"u"&&g==="prepass"&&(i==null||(_=i.trpc)===null||_===void 0?void 0:_.ssr)!==!1&&((d=i?.enabled)!==null&&d!==void 0?d:I?.enabled)!==!1&&!j&&!x.getQueryCache().find({queryKey:$})&&Q($,i);const k=D($,(0,s.default)((0,s.default)({},I),i)),S=(y=(m=i==null||(p=i.trpc)===null||p===void 0?void 0:p.abortOnUnmount)!==null&&m!==void 0?m:a?.abortOnUnmount)!==null&&y!==void 0?y:b,C=Le((0,s.default)((0,s.default)({},k),{},{queryKey:$,queryFn:j?f:async q=>{const A=(0,s.default)((0,s.default)({},k),{},{trpc:(0,s.default)((0,s.default)({},k?.trpc),S?{signal:q.signal}:{signal:null})}),Y=await O.query(...R($,A));return _e(Y)?ge(Y,x,$):Y}}),x);return C.trpc=B({path:v}),C}function T(v,f,i){var _,d,y;const m=c(),p=U(v,f,"query"),P=f===w,b=(_=(d=i==null||(y=i.trpc)===null||y===void 0?void 0:y.abortOnUnmount)!==null&&d!==void 0?d:a?.abortOnUnmount)!==null&&_!==void 0?_:m.abortOnUnmount;Me((0,s.default)((0,s.default)({},i),{},{queryKey:p,queryFn:P?f:O=>{const g={trpc:(0,s.default)((0,s.default)({},i?.trpc),b?{signal:O.signal}:{})};return m.client.query(...R(p,g))}}))}function E(v,f,i){var _,d,y;const m=c(),p=U(v,f,"query"),P=(_=(d=i==null||(y=i.trpc)===null||y===void 0?void 0:y.abortOnUnmount)!==null&&d!==void 0?d:a?.abortOnUnmount)!==null&&_!==void 0?_:m.abortOnUnmount,b=Ie((0,s.default)((0,s.default)({},i),{},{queryKey:p,queryFn:O=>{const g=(0,s.default)((0,s.default)({},i),{},{trpc:(0,s.default)((0,s.default)({},i?.trpc),P?{signal:O.signal}:{signal:null})});return m.client.query(...R(p,g))}}),m.queryClient);return b.trpc=B({path:v}),[b.data,b]}function K(v,f){const{client:i,queryClient:_}=c(),d=N(v),y=_.defaultMutationOptions(_.getMutationDefaults(d)),m=ke((0,s.default)((0,s.default)({},f),{},{mutationKey:d,mutationFn:p=>i.mutation(...R([v,{input:p}],f)),onSuccess(...p){var P,b;return e({originalFn:()=>{var g,x,Q;return(g=f==null||(x=f.onSuccess)===null||x===void 0?void 0:x.call(f,...p))!==null&&g!==void 0?g:y==null||(Q=y.onSuccess)===null||Q===void 0?void 0:Q.call(y,...p)},queryClient:_,meta:(P=(b=f?.meta)!==null&&b!==void 0?b:y?.meta)!==null&&P!==void 0?P:{}})}}),_);return m.trpc=B({path:v}),m}const X={data:void 0,error:null,status:"idle"},ie={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function Oe(v,f,i){var _;const d=(_=i?.enabled)!==null&&_!==void 0?_:f!==w,y=Te(U(v,f,"any")),{client:m}=c(),p=Z(i);ee(()=>{p.current=i});const[P]=te(new Set([])),b=re(j=>{P.add(j)},[P]),O=Z(null),g=re(j=>{const k=Q.current,S=Q.current=j(k);let C=!1;for(const q of P)if(k[q]!==S[q]){C=!0;break}C&&I(ce(S,b))},[b,P]),x=re(()=>{var j;if((j=O.current)===null||j===void 0||j.unsubscribe(),!d){g(()=>(0,s.default)((0,s.default)({},X),{},{reset:x}));return}g(()=>(0,s.default)((0,s.default)({},ie),{},{reset:x}));const k=m.subscription(v.join("."),f??void 0,{onStarted:()=>{var S,C;(S=(C=p.current).onStarted)===null||S===void 0||S.call(C),g(q=>(0,s.default)((0,s.default)({},q),{},{status:"pending",error:null}))},onData:S=>{var C,q;(C=(q=p.current).onData)===null||C===void 0||C.call(q,S),g(A=>(0,s.default)((0,s.default)({},A),{},{status:"pending",data:S,error:null}))},onError:S=>{var C,q;(C=(q=p.current).onError)===null||C===void 0||C.call(q,S),g(A=>(0,s.default)((0,s.default)({},A),{},{status:"error",error:S}))},onConnectionStateChange:S=>{g(C=>{switch(S.state){case"idle":return(0,s.default)((0,s.default)({},C),{},{status:S.state,error:null,data:void 0});case"connecting":return(0,s.default)((0,s.default)({},C),{},{error:S.error,status:S.state});case"pending":return C}})},onComplete:()=>{var S,C;(S=(C=p.current).onComplete)===null||S===void 0||S.call(C),g(q=>(0,s.default)((0,s.default)({},q),{},{status:"idle",error:null,data:void 0}))}});O.current=k},[m,y,d,g]);ee(()=>(x(),()=>{var j;(j=O.current)===null||j===void 0||j.unsubscribe()}),[x]);const Q=Z(d?(0,s.default)((0,s.default)({},ie),{},{reset:x}):(0,s.default)((0,s.default)({},X),{},{reset:x})),[$,I]=te(ce(Q.current,b));return $}function Se(v,f,i){var _,d,y,m,p;const{client:P,ssrState:b,prefetchInfiniteQuery:O,queryClient:g,abortOnUnmount:x}=c(),Q=U(v,f,"infinite"),$=g.getQueryDefaults(Q),I=f===w;typeof window>"u"&&b==="prepass"&&(i==null||(_=i.trpc)===null||_===void 0?void 0:_.ssr)!==!1&&((d=i?.enabled)!==null&&d!==void 0?d:$?.enabled)!==!1&&!I&&!g.getQueryCache().find({queryKey:Q})&&O(Q,(0,s.default)((0,s.default)({},$),i));const j=D(Q,(0,s.default)((0,s.default)({},$),i)),k=(y=i==null||(m=i.trpc)===null||m===void 0?void 0:m.abortOnUnmount)!==null&&y!==void 0?y:x,S=Re((0,s.default)((0,s.default)({},j),{},{initialPageParam:(p=i.initialCursor)!==null&&p!==void 0?p:null,persister:i.persister,queryKey:Q,queryFn:I?f:C=>{var q;const A=(0,s.default)((0,s.default)({},j),{},{trpc:(0,s.default)((0,s.default)({},j?.trpc),k?{signal:C.signal}:{signal:null})});return P.query(...R(Q,A,{pageParam:(q=C.pageParam)!==null&&q!==void 0?q:i.initialCursor,direction:C.direction}))}}),g);return S.trpc=B({path:v}),S}function xe(v,f,i){var _,d,y;const m=c(),p=U(v,f,"infinite"),P=m.queryClient.getQueryDefaults(p),b=f===w,O=D(p,(0,s.default)((0,s.default)({},P),i)),g=(_=i==null||(d=i.trpc)===null||d===void 0?void 0:d.abortOnUnmount)!==null&&_!==void 0?_:m.abortOnUnmount;De((0,s.default)((0,s.default)({},i),{},{initialPageParam:(y=i.initialCursor)!==null&&y!==void 0?y:null,queryKey:p,queryFn:b?f:x=>{var Q;const $=(0,s.default)((0,s.default)({},O),{},{trpc:(0,s.default)((0,s.default)({},O?.trpc),g?{signal:x.signal}:{})});return m.client.query(...R(p,$,{pageParam:(Q=x.pageParam)!==null&&Q!==void 0?Q:i.initialCursor,direction:x.direction}))}}))}function Qe(v,f,i){var _,d,y;const m=c(),p=U(v,f,"infinite"),P=m.queryClient.getQueryDefaults(p),b=D(p,(0,s.default)((0,s.default)({},P),i)),O=(_=i==null||(d=i.trpc)===null||d===void 0?void 0:d.abortOnUnmount)!==null&&_!==void 0?_:m.abortOnUnmount,g=qe((0,s.default)((0,s.default)({},i),{},{initialPageParam:(y=i.initialCursor)!==null&&y!==void 0?y:null,queryKey:p,queryFn:x=>{var Q;const $=(0,s.default)((0,s.default)({},b),{},{trpc:(0,s.default)((0,s.default)({},b?.trpc),O?{signal:x.signal}:{})});return m.client.query(...R(p,$,{pageParam:(Q=x.pageParam)!==null&&Q!==void 0?Q:i.initialCursor,direction:x.direction}))}}),m.queryClient);return g.trpc=B({path:v}),[g.data,g]}return{Provider:o,createClient:t,useContext:c,useUtils:c,useQuery:L,usePrefetchQuery:T,useSuspenseQuery:E,useQueries:(v,f)=>{const{ssrState:i,queryClient:_,prefetchQuery:d,client:y}=c(),m=se(y),p=v(m);if(typeof window>"u"&&i==="prepass")for(const b of p){var P;const O=b;((P=O.trpc)===null||P===void 0?void 0:P.ssr)!==!1&&!_.getQueryCache().find({queryKey:O.queryKey})&&d(O.queryKey,O)}return we({queries:p.map(b=>(0,s.default)((0,s.default)({},b),{},{queryKey:b.queryKey})),combine:f?.combine},_)},useSuspenseQueries:v=>{const{queryClient:f,client:i}=c(),_=se(i),d=v(_),y=Ue({queries:d.map(m=>(0,s.default)((0,s.default)({},m),{},{queryFn:m.queryFn,queryKey:m.queryKey}))},f);return[y.map(m=>m.data),y]},useMutation:K,useSubscription:Oe,useInfiniteQuery:Se,usePrefetchInfiniteQuery:xe,useSuspenseInfiniteQuery:Qe}}function Lt(a){const n=$t(a);return pe(u=>u==="useContext"||u==="useUtils"?()=>{const l=a.useUtils();return H(()=>Tt(l),[l])}:a.hasOwnProperty(u)?a[u]:n[u])}function Ft(a){const n=Mt(a);return Lt(n)}function Et(a){const n=Pe(a);return kt(n)}const Kt=ye({__proto__:null,TRPCClientError:Ke,TRPCUntypedClient:J,clientCallTypeToProcedureType:Ae,createTRPCClient:fe,createTRPCClientProxy:de,createTRPCProxyClient:We,createTRPCQueryUtils:Et,createTRPCReact:Ft,createTRPCUntypedClient:Be,createWSClient:Ne,experimental_localLink:ze,getFetch:He,getMutationKey:jt,getQueryKey:Qt,getUntypedClient:G,httpBatchLink:Je,httpBatchStreamLink:Ge,httpLink:Ve,httpSubscriptionLink:Xe,isFormData:Ye,isNonJsonSerializable:Ze,isOctetType:et,isTRPCClientError:tt,jsonEncoder:rt,loggerLink:nt,retryLink:at,splitLink:ut,unstable_httpBatchStreamLink:ot,unstable_httpSubscriptionLink:it,unstable_localLink:lt,wsLink:st},[Ee]),V="__mf_module_cache__";globalThis[V]||={share:{},remote:{}};globalThis[V].share||={};globalThis[V].remote||={};const Ce=globalThis[V];let M=Ce.share["@trpc/react-query"];M===void 0&&(M=Kt,Ce.share["@trpc/react-query"]=M);const At=M,Wt=M.__esModule?M.default:M.default??M,{createTRPCQueryUtils:Bt,createTRPCReact:Nt,getMutationKey:zt,getQueryKey:Ht,TRPCClientError:Jt,TRPCUntypedClient:Gt,clientCallTypeToProcedureType:Vt,createTRPCClient:Xt,createTRPCClientProxy:Yt,createTRPCProxyClient:Zt,createTRPCUntypedClient:er,createWSClient:tr,experimental_localLink:rr,getFetch:nr,getUntypedClient:ar,httpBatchLink:ur,httpBatchStreamLink:or,httpLink:ir,httpSubscriptionLink:lr,isFormData:sr,isNonJsonSerializable:cr,isOctetType:fr,isTRPCClientError:_r,jsonEncoder:dr,loggerLink:pr,retryLink:yr,splitLink:vr,unstable_httpBatchStreamLink:mr,unstable_httpSubscriptionLink:hr,unstable_localLink:br,wsLink:gr}=M,jr=ye({__proto__:null,TRPCClientError:Jt,TRPCUntypedClient:Gt,clientCallTypeToProcedureType:Vt,createTRPCClient:Xt,createTRPCClientProxy:Yt,createTRPCProxyClient:Zt,createTRPCQueryUtils:Bt,createTRPCReact:Nt,createTRPCUntypedClient:er,createWSClient:tr,default:Wt,experimental_localLink:rr,getFetch:nr,getMutationKey:zt,getQueryKey:Ht,getUntypedClient:ar,httpBatchLink:ur,httpBatchStreamLink:or,httpLink:ir,httpSubscriptionLink:lr,isFormData:sr,isNonJsonSerializable:cr,isOctetType:fr,isTRPCClientError:_r,jsonEncoder:dr,loggerLink:pr,retryLink:yr,splitLink:vr,unstable_httpBatchStreamLink:mr,unstable_httpSubscriptionLink:hr,unstable_localLink:br,wsLink:gr},[At]);export{jr as _,Nt as a,Kt as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_}from"./__mfe_internal__admin_ui_host__loadShare___mf_0_trpc_mf_1_react_mf_2_query__loadShare__.mjs-OcRSBqRe.js";import{b as e}from"./__mfe_internal__admin_ui_host__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs-C_6K4VBY.js";const m=e(_);export{m as r};
|
package/dist/assets/__mfe_internal__admin_ui_host__loadShare__react__loadShare__.mjs-Dl4u0xYE.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{g as Y}from"./__mfe_internal__admin_ui_host__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs-C_6K4VBY.js";function P(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(n,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var N={exports:{}},u={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var T=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),G=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),V=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),h=Symbol.iterator;function Q(e){return e===null||typeof e!="object"?null:(e=h&&e[h]||e["@@iterator"],typeof e=="function"?e:null)}var H={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},I=Object.assign,j={};function p(e,t,r){this.props=e,this.context=t,this.refs=j,this.updater=r||H}p.prototype.isReactComponent={};p.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};p.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function M(){}M.prototype=p.prototype;function v(e,t,r){this.props=e,this.context=t,this.refs=j,this.updater=r||H}var C=v.prototype=new M;C.constructor=v;I(C,p.prototype);C.isPureReactComponent=!0;var g=Array.isArray;function R(){}var _={H:null,A:null,T:null,S:null},b=Object.prototype.hasOwnProperty;function d(e,t,r){var n=r.ref;return{$$typeof:T,type:e,key:t,ref:n!==void 0?n:null,props:r}}function X(e,t){return d(e.type,t,e.props)}function S(e){return typeof e=="object"&&e!==null&&e.$$typeof===T}function Z(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var A=/\/+/g;function y(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Z(""+e.key):t.toString(36)}function J(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(R,R):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function l(e,t,r,n,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var f=!1;if(e===null)f=!0;else switch(s){case"bigint":case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case T:case $:f=!0;break;case w:return f=e._init,l(f(e._payload),t,r,n,o)}}if(f)return o=o(e),f=n===""?"."+y(e,0):n,g(o)?(r="",f!=null&&(r=f.replace(A,"$&/")+"/"),l(o,t,r,"",function(U){return U})):o!=null&&(S(o)&&(o=X(o,r+(o.key==null||e&&e.key===o.key?"":(""+o.key).replace(A,"$&/")+"/")+f)),t.push(o)),1;f=0;var c=n===""?".":n+":";if(g(e))for(var i=0;i<e.length;i++)n=e[i],s=c+y(n,i),f+=l(n,t,r,s,o);else if(i=Q(e),typeof i=="function")for(e=i.call(e),i=0;!(n=e.next()).done;)n=n.value,s=c+y(n,i++),f+=l(n,t,r,s,o);else if(s==="object"){if(typeof e.then=="function")return l(J(e),t,r,n,o);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return f}function m(e,t,r){if(e==null)return e;var n=[],o=0;return l(e,n,"","",function(s){return t.call(r,s,o++)}),n}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var O=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ee={map:m,forEach:function(e,t,r){m(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return m(e,function(){t++}),t},toArray:function(e){return m(e,function(t){return t})||[]},only:function(e){if(!S(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};u.Activity=B;u.Children=ee;u.Component=p;u.Fragment=D;u.Profiler=z;u.PureComponent=v;u.StrictMode=k;u.Suspense=W;u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_;u.__COMPILER_RUNTIME={__proto__:null,c:function(e){return _.H.useMemoCache(e)}};u.cache=function(e){return function(){return e.apply(null,arguments)}};u.cacheSignal=function(){return null};u.cloneElement=function(e,t,r){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var n=I({},e.props),o=e.key;if(t!=null)for(s in t.key!==void 0&&(o=""+t.key),t)!b.call(t,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&t.ref===void 0||(n[s]=t[s]);var s=arguments.length-2;if(s===1)n.children=r;else if(1<s){for(var f=Array(s),c=0;c<s;c++)f[c]=arguments[c+2];n.children=f}return d(e.type,o,n)};u.createContext=function(e){return e={$$typeof:G,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:q,_context:e},e};u.createElement=function(e,t,r){var n,o={},s=null;if(t!=null)for(n in t.key!==void 0&&(s=""+t.key),t)b.call(t,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(o[n]=t[n]);var f=arguments.length-2;if(f===1)o.children=r;else if(1<f){for(var c=Array(f),i=0;i<f;i++)c[i]=arguments[i+2];o.children=c}if(e&&e.defaultProps)for(n in f=e.defaultProps,f)o[n]===void 0&&(o[n]=f[n]);return d(e,s,o)};u.createRef=function(){return{current:null}};u.forwardRef=function(e){return{$$typeof:K,render:e}};u.isValidElement=S;u.lazy=function(e){return{$$typeof:w,_payload:{_status:-1,_result:e},_init:F}};u.memo=function(e,t){return{$$typeof:V,type:e,compare:t===void 0?null:t}};u.startTransition=function(e){var t=_.T,r={};_.T=r;try{var n=e(),o=_.S;o!==null&&o(r,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(R,O)}catch(s){O(s)}finally{t!==null&&r.types!==null&&(t.types=r.types),_.T=t}};u.unstable_useCacheRefresh=function(){return _.H.useCacheRefresh()};u.use=function(e){return _.H.use(e)};u.useActionState=function(e,t,r){return _.H.useActionState(e,t,r)};u.useCallback=function(e,t){return _.H.useCallback(e,t)};u.useContext=function(e){return _.H.useContext(e)};u.useDebugValue=function(){};u.useDeferredValue=function(e,t){return _.H.useDeferredValue(e,t)};u.useEffect=function(e,t){return _.H.useEffect(e,t)};u.useEffectEvent=function(e){return _.H.useEffectEvent(e)};u.useId=function(){return _.H.useId()};u.useImperativeHandle=function(e,t,r){return _.H.useImperativeHandle(e,t,r)};u.useInsertionEffect=function(e,t){return _.H.useInsertionEffect(e,t)};u.useLayoutEffect=function(e,t){return _.H.useLayoutEffect(e,t)};u.useMemo=function(e,t){return _.H.useMemo(e,t)};u.useOptimistic=function(e,t){return _.H.useOptimistic(e,t)};u.useReducer=function(e,t,r){return _.H.useReducer(e,t,r)};u.useRef=function(e){return _.H.useRef(e)};u.useState=function(e){return _.H.useState(e)};u.useSyncExternalStore=function(e,t,r){return _.H.useSyncExternalStore(e,t,r)};u.useTransition=function(){return _.H.useTransition()};u.version="19.2.5";N.exports=u;var x=N.exports;const te=Y(x),ne=P({__proto__:null,default:te},[x]),E="__mf_module_cache__";globalThis[E]||={share:{},remote:{}};globalThis[E].share||={};globalThis[E].remote||={};const L=globalThis[E];let a=L.share.react;a===void 0&&(a=ne,L.share.react=a);const re=a,ue=a.__esModule?a.default:a.default??a,{Activity:oe,Children:se,Component:fe,Fragment:_e,Profiler:ie,PureComponent:ce,StrictMode:ae,Suspense:le,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:pe,__COMPILER_RUNTIME:me,cache:Ee,cacheSignal:ye,cloneElement:Re,createContext:Te,createElement:ve,createRef:Ce,forwardRef:de,isValidElement:Se,lazy:he,memo:ge,startTransition:Ae,unstable_useCacheRefresh:Oe,use:Pe,useActionState:Ne,useCallback:we,useContext:He,useDebugValue:Ie,useDeferredValue:je,useEffect:Me,useEffectEvent:be,useId:xe,useImperativeHandle:Le,useInsertionEffect:Ue,useLayoutEffect:Ye,useMemo:$e,useOptimistic:De,useReducer:ke,useRef:ze,useState:qe,useSyncExternalStore:Ge,useTransition:Ke,version:We}=a,Be=P({__proto__:null,Activity:oe,Children:se,Component:fe,Fragment:_e,Profiler:ie,PureComponent:ce,StrictMode:ae,Suspense:le,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:pe,__COMPILER_RUNTIME:me,cache:Ee,cacheSignal:ye,cloneElement:Re,createContext:Te,createElement:ve,createRef:Ce,default:ue,forwardRef:de,isValidElement:Se,lazy:he,memo:ge,startTransition:Ae,unstable_useCacheRefresh:Oe,use:Pe,useActionState:Ne,useCallback:we,useContext:He,useDebugValue:Ie,useDeferredValue:je,useEffect:Me,useEffectEvent:be,useId:xe,useImperativeHandle:Le,useInsertionEffect:Ue,useLayoutEffect:Ye,useMemo:$e,useOptimistic:De,useReducer:ke,useRef:ze,useState:qe,useSyncExternalStore:Ge,useTransition:Ke,version:We},[re]);export{ue as R,ne as _,Be as a,Te as b,Me as c,He as d,qe as e,$e as f,Ge as g,we as h,ze as i,de as j,ve as k,xe as l,Ye as m,Ae as n,se as o,Se as p,_e as q,ge as r,fe as s,Le as t,je as u,ae as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"./__mfe_internal__admin_ui_host__loadShare__react__loadShare__.mjs-Dl4u0xYE.js";import{b as r}from"./__mfe_internal__admin_ui_host__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs-C_6K4VBY.js";const m=r(e);export{m as r};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
function u(e,t){for(var r=0;r<t.length;r++){const _=t[r];if(typeof _!="string"&&!Array.isArray(_)){for(const o in _)if(o!=="default"&&!(o in e)){const l=Object.getOwnPropertyDescriptor(_,o);l&&Object.defineProperty(e,o,l.get?l:{enumerable:!0,get:()=>_[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function E(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function _(){return this instanceof _?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(_){var o=Object.getOwnPropertyDescriptor(e,_);Object.defineProperty(r,_,o.get?o:{enumerable:!0,get:function(){return e[_]}})}),r}var f={exports:{}},a={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var p=Symbol.for("react.transitional.element"),h=Symbol.for("react.fragment");function c(e,t,r){var _=null;if(r!==void 0&&(_=""+r),t.key!==void 0&&(_=""+t.key),"key"in t){r={};for(var o in t)o!=="key"&&(r[o]=t[o])}else r=t;return t=r.ref,{$$typeof:p,type:e,key:_,ref:t!==void 0?t:null,props:r}}a.Fragment=h;a.jsx=c;a.jsxs=c;f.exports=a;var i=f.exports;const j=m(i),x=u({__proto__:null,default:j},[i]),n="__mf_module_cache__";globalThis[n]||={share:{},remote:{}};globalThis[n].share||={};globalThis[n].remote||={};const d=globalThis[n];let s=d.share["react/jsx-runtime"];s===void 0&&(s=x,d.share["react/jsx-runtime"]=s);const y=s,g=s.__esModule?s.default:s.default??s,{Fragment:b,jsx:v,jsxs:O}=s,P=u({__proto__:null,Fragment:b,default:g,jsx:v,jsxs:O},[y]);export{x as _,P as a,E as b,v as c,O as d,b as e,m as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as _,a as e}from"./__mfe_internal__admin_ui_host__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs-C_6K4VBY.js";const r=_(e);export{r};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{g as v}from"./__mfe_internal__admin_ui_host__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs-C_6K4VBY.js";import{r as T}from"./__mfe_internal__admin_ui_host__loadShare__react__loadShare__.mjs_commonjs-proxy-CSyOECfO.js";function d(r,e){for(var t=0;t<e.length;t++){const i=e[t];if(typeof i!="string"&&!Array.isArray(i)){for(const f in i)if(f!=="default"&&!(f in r)){const o=Object.getOwnPropertyDescriptor(i,f);o&&Object.defineProperty(r,f,o.get?o:{enumerable:!0,get:()=>i[f]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var g={exports:{}},_={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-dom.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var h=T;function m(r){var e="https://react.dev/errors/"+r;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)e+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+r+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var n={d:{f:c,r:function(){throw Error(m(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},p=Symbol.for("react.portal");function E(r,e,t){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:p,key:i==null?null:""+i,children:r,containerInfo:e,implementation:t}}var s=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(r,e){if(r==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}_.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n;_.createPortal=function(r,e){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(m(299));return E(r,e,null,t)};_.flushSync=function(r){var e=s.T,t=n.p;try{if(s.T=null,n.p=2,r)return r()}finally{s.T=e,n.p=t,n.d.f()}};_.preconnect=function(r,e){typeof r=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,n.d.C(r,e))};_.prefetchDNS=function(r){typeof r=="string"&&n.d.D(r)};_.preinit=function(r,e){if(typeof r=="string"&&e&&typeof e.as=="string"){var t=e.as,i=l(t,e.crossOrigin),f=typeof e.integrity=="string"?e.integrity:void 0,o=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;t==="style"?n.d.S(r,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:i,integrity:f,fetchPriority:o}):t==="script"&&n.d.X(r,{crossOrigin:i,integrity:f,fetchPriority:o,nonce:typeof e.nonce=="string"?e.nonce:void 0})}};_.preinitModule=function(r,e){if(typeof r=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var t=l(e.as,e.crossOrigin);n.d.M(r,{crossOrigin:t,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0})}}else e==null&&n.d.M(r)};_.preload=function(r,e){if(typeof r=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var t=e.as,i=l(t,e.crossOrigin);n.d.L(r,t,{crossOrigin:i,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}};_.preloadModule=function(r,e){if(typeof r=="string")if(e){var t=l(e.as,e.crossOrigin);n.d.m(r,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:t,integrity:typeof e.integrity=="string"?e.integrity:void 0})}else n.d.m(r)};_.requestFormReset=function(r){n.d.r(r)};_.unstable_batchedUpdates=function(r,e){return r(e)};_.useFormState=function(r,e,t){return s.H.useFormState(r,e,t)};_.useFormStatus=function(){return s.H.useHostTransitionStatus()};_.version="19.2.5";function y(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(y)}catch(r){console.error(r)}}y(),g.exports=_;var O=g.exports;const R=v(O),N=d({__proto__:null,default:R},[O]),u="__mf_module_cache__";globalThis[u]||={share:{},remote:{}};globalThis[u].share||={};globalThis[u].remote||={};const S=globalThis[u];let a=S.share["react-dom"];a===void 0&&(a=N,S.share["react-dom"]=a);const D=a,A=a.__esModule?a.default:a.default??a,{__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:P,createPortal:b,flushSync:C,preconnect:M,prefetchDNS:L,preinit:U,preinitModule:F,preload:H,preloadModule:I,requestFormReset:x,unstable_batchedUpdates:G,useFormState:j,useFormStatus:k,version:Y}=a,w=d({__proto__:null,__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:P,createPortal:b,default:A,flushSync:C,preconnect:M,prefetchDNS:L,preinit:U,preinitModule:F,preload:H,preloadModule:I,requestFormReset:x,unstable_batchedUpdates:G,useFormState:j,useFormStatus:k,version:Y},[D]);export{N as _,w as a,b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"./__mfe_internal__admin_ui_host__loadShare__react_mf_2_dom__loadShare__.mjs-CzO_Esxm.js";import{b as r}from"./__mfe_internal__admin_ui_host__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs-C_6K4VBY.js";const m=r(e);export{m as r};
|