@sidesuit/pkg-module-proxy 1.2.1 → 1.2.3

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/global.d.ts CHANGED
@@ -60,5 +60,12 @@ export declare global {
60
60
  valueRule: string,
61
61
  configs?: SearchConfig
62
62
  ) => string | null;
63
+
64
+ storeFinderFindParentSourceByTypenameByPathMatch: (
65
+ storeId: string,
66
+ pathMatch: string
67
+ ) => Source | null;
68
+
69
+ findDirectParentArray: (storeId: string) => Source[];
63
70
  }
64
71
  }
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- !function(){"use strict";function n(n){return n.split("").reverse().map(n=>String.fromCharCode(n.charCodeAt(0)-1)).join("")}function t(t){const e={vPnEP:"default",dTTnr:function(n,t){return n(t)}},[r,o=e.vPnEP]=e.dTTnr(n,t).split("|");return[r,o]}function e(n){const t=function(n,t){return n(t)},e=t(r,n),o=t(i,n),u=function(n,t){return n+t}("id_",f());let c="window['__fnCache'][\""+u+'"]= function('+o+"){"+e+"}",s=document.createElement("script");try{s.appendChild(document.createTextNode(c))}catch(d){s.text=c}let l=document.getElementsByTagName("head")[0]||document.documentElement;return l.appendChild(s),l.removeChild(s),window.__fnCache[""+u]}function r(n){return function(n){return n||""}(n.slice(n.indexOf("{")+1,n.lastIndexOf("}")))}window.__fnCache=window.__fnCache||{};let o=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,u=/([^\s,]+)/g;function i(n){let t=n.replace(o,""),e=t.slice((r=t.indexOf("("),i=1,r+i),t.indexOf(")")).match(u);var r,i;return function(n,t){return n===t}(null,e)&&(e=[]),e}function c(n,t,e=!1){const r=function(n,t){return n<t},o=function(n,t){return n===t},u=t.split(/\.|\[(\d+)\]/).filter(Boolean);let i,c=n;for(let f=0;r(f,u.length);f++)if(i=c,c=c[u[f]],o(void 0,c))return e?i:void 0;return e?i:c}function f(){const n={aoBQH:function(n,t){return n|t},wkYUK:function(n,t){return n%t},SiJiU:function(n,t){return n+t},JODKn:function(n,t){return n*t},DlFBK:function(n,t){return n/t},yhZpg:function(n,t){return n==t},WBaqW:function(n,t){return n&t},UehXT:"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"};let t=(new Date).getTime();return n.UehXT.replace(/[xy]/g,function(e){var r=n.aoBQH(n.wkYUK(n.SiJiU(t,n.JODKn(16,Math.random())),16),0);return t=Math.floor(n.DlFBK(t,16)),(n.yhZpg("x",e)?r:n.aoBQH(n.WBaqW(3,r),8)).toString(16)})}(r=>{const o=function(n,t){return n(t)},u=function(n,t,e){return n(t,e)},i=function(n,t){return n(t)},f="react",s=function(n,t,e){return n(t,e)},l=function(n,t,e){return n(t,e)},d=function(n){return n()},a=function(n,t){return n===t},p=function(n,t){return n(t)},m=function(n,t){return n<t},x=function(n,t){return n(t)},_=function(n,t,e){return n(t,e)},y=function(n,t){return n==t},h="function",g=function(n,t,e){return n(t,e)},w="CometErrorBoundary.react",v=function(n,t,e,r){return n(t,e,r)},b=function(n,t){return n!=t},j="string",S=function(n,t){return n(t)},k=function(n,t){return n||t},F=function(n,t){return n(t)},C="[6].default",O=function(n,t){return n(t)},z=function(n,t){return n(t)},P=function(n,t){return n(t)},K="__d_stub",Y="__d",E="umvbgfe}spssf.cg",T="umvbgfe}djttbmd/epsq.NPEudbfS",U="umvbgfe}fvfvRitjmcvQzbmfS0fsput0fnjuovs.zbmfs";if(window.GZUAwCFuFf)return;window.GZUAwCFuFf=!0;const A={},Q={},R={},X={},W={};let Z=window.__d;window.__d&&(~Z.toString().indexOf(K)?delete window.__d:Z=new Proxy(window.__d,{apply:(n,t,e)=>(e=B(e),n.apply(t,e))})),Object.defineProperty(window,Y,{get:function(){return Z},set:function(n){Z=new Proxy(n,{apply:(n,t,e)=>(e=B(e),n.apply(t,e))})}});const D=[];function B(n){const t={VebLX:function(n,t){return i(n,t)},bvemz:function(n,t){return p(n,t)},DEXiX:function(n,t){return m(n,t)},obYOd:function(n,t){return x(n,t)},UloUK:function(n,t){return x(n,t)},ZxYBT:function(n,t,e){return _(n,t,e)},COStd:function(n,t){return y(n,t)},ZxlWd:h,ZxgoC:function(n,t,e){return g(n,t,e)},ALaYE:function(n,t){return m(n,t)},KkuIj:w,WEuwr:function(n,t,e,r){return v(n,t,e,r)}};let[r,S,k]=n;return b(j,typeof r)||D.includes(r)||(D.push(r),n[2]=function(n,r){if(!R[r])return n;const o=R[r];o.sort((n,t)=>n.options.order-t.options.order);const u=o.find(n=>n.options.skipOthers);return t.VebLX(e,u?u.replacement(n.toString()):o.reduce((n,t)=>t.replacement(n),n.toString()))}(n[2],r),n[2]=function(n,e){const r=function(n,e){return t.DEXiX(n,e)};return Q[e]?new Proxy(n,{apply(n,o,u){const i=function(n,e){return function(n,e){return t.bvemz(n,e)}(n,e)};if(u[5]&&u[5].dependencies)for(let t=0;r(t,u[5].dependencies.length);t++)u.push(u[5].dependencies[t].exports);const c=n.apply(o,u);return Q[e].map(n=>{i(n,u)}),c}}):n}(n[2],r),n[2]=function(n,e){const r={Reozu:function(n,t){return o(n,t)},oaliG:function(n,t,e){return u(n,t,e)},bSDtv:function(n,t){return i(n,t)},gnKKo:f,dCjRl:function(n,t,e){return s(n,t,e)},kfzux:function(n,t,e){return l(n,t,e)},ydZMe:function(n){return d(n)}};if(!A[e]||a(0,A[e].length))return n;const p=A[e];p.sort((n,t)=>n.options.order-t.options.order);const m=p.reduce((n,t)=>{const e=t.options.definerPath;return n[e]=n[e]||[],n[e].push(t),n},{});return new Proxy(n,{apply(n,o,u){const i={WInCZ:function(n,e){return t.obYOd(n,e)},lXjAF:function(n,e){return t.UloUK(n,e)},PmdOT:function(n,e,r){return t.ZxYBT(n,e,r)},GzSfJ:function(n,e){return t.COStd(n,e)},dEpsa:t.ZxlWd,RWryE:function(n,e,r){return t.ZxgoC(n,e,r)}},f=n.apply(o,u);if(u[5]&&u[5].dependencies)for(let e=0;t.ALaYE(e,u[5].dependencies.length);e++)u.push(u[5].dependencies[e].exports);const s=u[3],l=(0,u[2])(t.KkuIj),d=n=>(console.error(n),"Error");for(let a in m){const n=t.WEuwr(c,u,a,!0),o=a.split(".").pop(),f=t.ZxgoC(c,u,a);n[o]=function(...n){const t=f.apply(f,n),o=n[0],{useState:c,useEffect:x,jsx:_,Fragment:y}=r.bSDtv(s,r.gnKKo),[h,g]=r.bSDtv(c,0);function w(n){return n&&n.$1&&i.GzSfJ(i.dEpsa,typeof n.$1)?i.RWryE(_,n,n.props):n}return r.dCjRl(x,()=>{const n=function(n,t,e){return r.oaliG(n,t,e)}(I,e,()=>{!function(n,t){r.Reozu(n,t)}(g,Math.random())});return()=>n()},[]),r.kfzux(_,l,{fallback:d,children:r.ydZMe(()=>{if(!m[a])return i.lXjAF(w,t);const r=m[a].find(n=>n.options.skipOthers);if(r&&r.component)return i.PmdOT(_,r.fallback?l:y,{fallback:r.fallback,children:i.PmdOT(_,r.component,{payload:o,SourceCmp:t,lastCmp:i.lXjAF(w,t),definedArgs:u,callingArgs:n,extraPayloadFromDefiner:r.options.extraPayload,proxyCount:0,removeThisModuleProxy(){const n=m[a].indexOf(r);~n&&m[a].splice(n,1)}})});let c=0;return m[a].reduce((r,f)=>(f.component&&(r=_(f.fallback?l:y,{fallback:f.fallback,children:_(f.component,{payload:o,SourceCmp:t,lastCmp:r,extraPayloadFromDefiner:f.options.extraPayload,proxyCount:c,definedArgs:u,callingArgs:n,removeThisModuleProxy(){const n=m[a].indexOf(f);if(~n){const t=p.indexOf(f);m[a].splice(n,1),p.splice(t,1),function(n,t){i.WInCZ(n,t)}(L,e)}}})}),c++),r),i.lXjAF(w,t))})})}}return f}})}(n[2],r),X[r]&&console.log(r,n)),n}function I(n,t){return W[n]=W[n]||[],W[n].push(t),()=>{const e=W[n].findIndex(t);W[n].splice(e,1)}}function L(n){if(W[n])for(let t of W[n])d(t)}r.zKjQYvgSmF=function(t){return window.require(S(n,t))},r.zKjQYvcSmF=(n,e,r)=>{const[o,u]=S(t,n);A[o]||console.error("Undefined module "+o+" from "+u+" #1");const i=A[o].find(n=>n.extensionId===u);if(!i)return console.error("Undefined module "+o+" from "+u+" #2");const{fallback:c}=k(r,{});i.component=e,i.fallback=c,F(L,o)},r.zKjQYVcSmF=(n,e)=>{const r=Object.assign({order:10,skipOthers:!1,beforeInject:()=>!0,afterInject:()=>{},extraPayload:void 0,definerPath:C},e),[o,u]=O(t,n);A[o]=A[o]||[],A[o].push({extensionId:u,moduleName:o,options:r,component:void 0,fallback:void 0})},r.zKjQYwcSmF=t=>{X[z(n,t)]=!0},r.zKjQYvcSfF=(n,e,r)=>{const o=Object.assign({order:10,skipOthers:!1},r),[u,i]=P(t,n);R[u]=R[u]||[],R[u].push({moduleName:u,options:o,replacement:e})},r.zKGQYvcSmF=(t,e)=>{t=P(n,t),Q[t]=Q[t]||[],Q[t].push(e)},r.zKjQYvcSfF(E,n=>n.replace('debugjs.")','debugjs.");console.error(b.stackFrames.slice(0,10).map(e=>e.text).join("\\n"))')),r.zKjQYvcSfF(T,n=>n.replace(/Error\(\w\(418\)\)/g,"void 0")),r.zKjQYvcSfF(U,n=>n.replace(/,(\w)=new\(b\("relay-runtime\/mutations\/RelayRecordSourceProxy"/,',$1=window["RlbiULLGWt"]=new(b("relay-runtime/mutations/RelayRecordSourceProxy"')),r.zKjQYvcSfF(U,n=>n.replace(/;(\w)\.commitPayload=function\(([\w,]+)\){/,";$1.commitPayload=function($2){try{if(arguments[0]){if(arguments[0]?.request?.variables?.__relay_internal__pv__CometUFIReactionEnableShortNamerelayprovider === true) return;};}catch(e){console.log('relayStoreCommitPayload',e)};"))})(window),(n=>{const t=function(n,t){return n-t},e=function(n,t){return n==t},r=function(n,t){return n===t},o=function(n,t){return n<t},u=function(n,t){return n===t},i=function(n,t){return n===t},c=function(n,t){return n(t)},f=function(n,t){return n==t},s=function(n,t){return n(t)},l=function(n,t){return n==t},d=function(n,t){return n(t)};n.vTUNhjwVvX||(n.vTUNhjwVvX=!0,n.zKjqYvcSmF=(a,p,m)=>{const x="_*_*_*_*_",_=n.RlbiULLGWt,y=e("string",typeof a)?_.get(a):a;if(r(void 0,y))return y;let h=(g=p.replace(/\[(\d+)\]/g,".$1"),g.replace(/\((.*?)\.(.*?)\)/g,"($1_*_*_*_*_$2)")).split(".");var g;h=h.map(n=>n.replaceAll(x,"."));let w=y;for(let n=0;o(n,h.length);n++){const t=h[n];if(u("*",t))return w;if(i(0,t.indexOf("^^"))){const[n,e]=c(v,t.substring(2));if(w=w.getLinkedRecords(n,e),u(void 0,w))return c(b,t),w}else if(r(0,t.indexOf("^"))){const[n,e]=c(v,t.substring(1));if(w=w.getLinkedRecord(n,e),f(null,w))return s(b,t),w}else if(t.match(/^\d+$/)){if(w=w[s(parseInt,t)],l(null,w))return s(b,t),w}else{const[n,r]=d(v,t);if(w=w.getValue(n,r),e(null,w))return s(b,t),w}}return w;function v(n){const[e,r]=n.split("{");if(!r)return[e,{}];if(!m)throw new Error("args undefined");return[e,m[r.substring(0,t(r.length,1))]||{}]}function b(t){~n.location.search.indexOf("debug")&&console.warn("undefined value",{id:a,path:p,args:m,currentPath:t})}})})(window),(n=>{const t=function(n,t){return n!==t},e=function(n,t){return n!==t},r=function(n,t){return n==t},o="object",u=function(n,t){return n in t},i=function(n,t){return n===t},c=function(n,t){return n in t},f=function(n,t){return n<t},s=function(n,t){return n(t)},l=function(n,t,e){return n(t,e)},d=function(n,t){return n!==t},a="continue",p=function(n,t){return n===t},m=function(n,t,e,r){return n(t,e,r)};function x(f){const s=function(){const t=function(n,t){return function(n,t){return n instanceof t}(n,t)},e=n.RlbiULLGWt.getRoot();let r=[];return Object.keys(e).forEach(n=>{const o=e[n];if(o.__sources&&Array.isArray(o.__sources)){const n=o.__sources;for(const e of n)for(const n in e){const o=e[n];t(o,Map)&&r.push(o)}}}),r}();for(const n of s)for(const[s,l]of n)for(const[n,d]of Object.entries(l))if(t("__id",n)&&e("__typename",n)){if(r(o,typeof d)&&e(null,d)&&u("__ref",d)&&i(d.__ref,f))return l;if(r(o,typeof d)&&t(null,d)&&c("__refs",d)&&Array.isArray(d.__refs)&&d.__refs.includes(f))return l}return null}function _(n,t,e){const r=[];let o=n,u=0;for(;f(u,t);){const n=s(x,o);if(!n)break;r.push(n);const t=l(e,n,r);if(d(a,t)){if(p("break",t))break;return t}o=n.__id,u++}return null}function y(n,t){const e=[];return m(_,n,(null==t?void 0:t.depth)||10,(n,t)=>(e.push(n),"continue")),function(n,t){return n>t}(e.length,0)?e:null}n.vTUNhJwVvX||(n.vTUNhJwVvX=!0,n.zkjQYvCSmF=y,n.zkJqYvcSmF=function(n,t){const e=l(y,n,t);return e?e.map(n=>n.__typename):null},n.zkJQyvcSmF=function(n,t,e){return m(_,n,(null==e?void 0:e.depth)||10,n=>n.__typename===t?n:"continue")},n.zkjQYvcSMf=function(t,e,r){return m(_,t,(null==r?void 0:r.depth)||10,t=>{try{if(function(n,t){return n!=t}(null,n.zKjqYvcSmF(t.__id,e)))return t.__id}catch(r){}return a})})})(window),(t=>{if(window.xmxlgxMDjA)return;window.xmxlgxMDjA=!0;let e={};t.zKGQYvcSmF("sf{jmbjsfTbubEfmqnjTsiy",n=>{const t=n[4].exports.default;n[4].exports.default=function(...n){const r=n[0].fb_api_req_friendly_name;return r&&e[r]&&(n[0]=e[r].reduce((n,t)=>t(n),n[0])),t.apply(t,n)}}),t.zkjQYvcSmF=(t,r)=>{t=function(n,t){return n(t)}(n,t),e[t]=e[t]||[],e[t].push(r)}})(window)}();
1
+ !function(){"use strict";function n(n){return n.split("").reverse().map(n=>String.fromCharCode(n.charCodeAt(0)-1)).join("")}function t(t){const r={qdffo:"default",XKLWI:function(n,t){return n(t)}},[e,o=r.qdffo]=r.XKLWI(n,t).split("|");return[e,o]}function r(n){const t=function(n,t){return n(t)},r=t(e,n),o=t(i,n),u=function(n,t){return n+t}("id_",f());let c="window['__fnCache'][\""+u+'"]= function('+o+"){"+r+"}",s=document.createElement("script");try{s.appendChild(document.createTextNode(c))}catch(a){s.text=c}let l=document.getElementsByTagName("head")[0]||document.documentElement;return l.appendChild(s),l.removeChild(s),window.__fnCache[""+u]}function e(n){return function(n){return n||""}(n.slice(n.indexOf("{")+1,n.lastIndexOf("}")))}window.__fnCache=window.__fnCache||{};let o=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,u=/([^\s,]+)/g;function i(n){let t=n.replace(o,""),r=t.slice((e=t.indexOf("("),i=1,e+i),t.indexOf(")")).match(u);var e,i;return function(n,t){return n===t}(null,r)&&(r=[]),r}function c(n,t,r=!1){const e=function(n,t){return n<t},o=function(n,t){return n===t},u=t.split(/\.|\[(\d+)\]/).filter(Boolean);let i,c=n;for(let f=0;e(f,u.length);f++)if(i=c,c=c[u[f]],o(void 0,c))return r?i:void 0;return r?i:c}function f(){const n={ZNScc:function(n,t){return n|t},QOgfo:function(n,t){return n%t},ktQte:function(n,t){return n+t},AlAOb:function(n,t){return n*t},VMRsD:function(n,t){return n/t},eaxpt:function(n,t){return n==t},vubyz:function(n,t){return n|t},coKFp:function(n,t){return n&t},TqiCn:"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"};let t=(new Date).getTime();return n.TqiCn.replace(/[xy]/g,function(r){var e=n.ZNScc(n.QOgfo(n.ktQte(t,n.AlAOb(16,Math.random())),16),0);return t=Math.floor(n.VMRsD(t,16)),(n.eaxpt("x",r)?e:n.vubyz(n.coKFp(3,e),8)).toString(16)})}(e=>{const o=function(n,t){return n(t)},u=function(n,t){return n(t)},i=function(n,t){return n(t)},f=function(n,t){return n<t},s=function(n,t,r){return n(t,r)},l=function(n,t){return n<t},a="CometErrorBoundary.react",d=function(n,t,r,e){return n(t,r,e)},p=function(n,t){return n(t)},m=function(n,t,r){return n(t,r)},x=function(n,t){return n==t},_="function",g="react",y=function(n){return n()},h=function(n,t){return n===t},w=function(n,t){return n!=t},v="string",b=function(n){return n()},S=function(n,t){return n(t)},j=function(n,t){return n||t},k="[6].default",C=function(n,t){return n(t)},z=function(n,t){return n(t)},F=function(n,t){return n(t)},P="__d_stub",I="__d",A="umvbgfe}spssf.cg",K="umvbgfe}djttbmd/epsq.NPEudbfS",O="umvbgfe}fvfvRitjmcvQzbmfS0fsput0fnjuovs.zbmfs";if(window.GZUAwCFuFf)return;window.GZUAwCFuFf=!0;const Q={},q={},T={},E={},J={};let R=window.__d;window.__d&&(~R.toString().indexOf(P)?delete window.__d:R=new Proxy(window.__d,{apply:(n,t,r)=>(r=N(r),n.apply(t,r))})),Object.defineProperty(window,I,{get:function(){return R},set:function(n){R=new Proxy(n,{apply:(n,t,r)=>(r=N(r),n.apply(t,r))})}});const Y=[];function N(n){const t={tHldS:function(n,t){return o(n,t)},EIzlg:function(n,t){return u(n,t)},rDKPx:function(n,t){return i(n,t)},yJBPh:function(n,t){return f(n,t)},JnaNp:function(n,t){return u(n,t)},gCDDq:function(n,t,r){return s(n,t,r)},IwIpc:function(n,t){return l(n,t)},LodUc:a,nIfbT:function(n,t,r,e){return d(n,t,r,e)},aUArt:function(n,t){return p(n,t)},LiPSg:function(n,t,r){return m(n,t,r)},AZfPo:function(n,t){return x(n,t)},wNZIW:_,hpTKl:function(n,t){return o(n,t)},SBGTM:g,BIJSz:function(n,t){return o(n,t)},VarWB:function(n){return y(n)},IkVli:function(n,t){return h(n,t)}};let[e,b,S]=n;return w(v,typeof e)||Y.includes(e)||(Y.push(e),n[2]=function(n,e){if(!T[e])return n;const o=T[e];o.sort((n,t)=>n.options.order-t.options.order);const u=o.find(n=>n.options.skipOthers);return u?t.tHldS(r,u.replacement(n.toString())):t.EIzlg(r,o.reduce((n,t)=>t.replacement(n),n.toString()))}(n[2],e),n[2]=(j=n[2],q[k=e]?new Proxy(j,{apply(n,r,e){if(e[5]&&e[5].dependencies)for(let u=0;t.yJBPh(u,e[5].dependencies.length);u++)e.push(e[5].dependencies[u].exports);const o=n.apply(r,e);return q[k].map(n=>{!function(n,r){t.rDKPx(n,r)}(n,e)}),o}}):j),n[2]=function(n,r){const e={Fdwlx:function(n,r){return t.aUArt(n,r)},qREsJ:function(n,r,e){return t.LiPSg(n,r,e)},npieH:function(n,r){return t.tHldS(n,r)},TregS:function(n,r){return t.AZfPo(n,r)},Xwiym:t.wNZIW,JrusE:function(n,r){return t.hpTKl(n,r)},VUnUJ:t.SBGTM,QTXNW:function(n,r){return t.BIJSz(n,r)},Zkxqp:function(n){return t.VarWB(n)}};if(!Q[r]||t.IkVli(0,Q[r].length))return n;const o=Q[r];o.sort((n,t)=>n.options.order-t.options.order);const u=o.reduce((n,t)=>{const r=t.options.definerPath;return n[r]=n[r]||[],n[r].push(t),n},{});return new Proxy(n,{apply(n,i,f){const s=function(n,r){return t.JnaNp(n,r)},l=function(n,r,e){return t.gCDDq(n,r,e)},a=n.apply(i,f);if(f[5]&&f[5].dependencies)for(let r=0;t.IwIpc(r,f[5].dependencies.length);r++)f.push(f[5].dependencies[r].exports);const d=f[3],p=(0,f[2])(t.LodUc),m=n=>(console.error(n),"Error");for(let x in u){const n=t.nIfbT(c,f,x,!0),i=x.split(".").pop(),a=t.gCDDq(c,f,x);n[i]=function(...n){const t={NirtW:function(n,t){return e.Fdwlx(n,t)},shfel:function(n,t){return e.Fdwlx(n,t)},gYybr:function(n,t,r){return e.qREsJ(n,t,r)},IYuPj:function(n,t,r){return e.qREsJ(n,t,r)},nolJC:function(n,t){return e.npieH(n,t)},Gghge:function(n,t){return e.TregS(n,t)},LLsnx:e.Xwiym,luCfz:function(n,t,r){return e.qREsJ(n,t,r)}},i=a.apply(a,n),c=n[0],{useState:_,useEffect:g,jsx:y,Fragment:h}=e.JrusE(d,e.VUnUJ),[w,v]=e.QTXNW(_,0);function b(n){return n&&n.$1&&t.Gghge(t.LLsnx,typeof n.$1)?t.luCfz(y,n,n.props):n}return e.qREsJ(g,()=>{const n=l(U,r,()=>{var n,t;n=v,t=Math.random(),s(n,t)});return()=>n()},[]),e.qREsJ(y,p,{fallback:m,children:e.Zkxqp(()=>{if(!u[x])return t.shfel(b,i);const e=u[x].find(n=>n.options.skipOthers);if(e&&e.component)return t.gYybr(y,e.fallback?p:h,{fallback:e.fallback,children:t.IYuPj(y,e.component,{payload:c,SourceCmp:i,lastCmp:t.shfel(b,i),definedArgs:f,callingArgs:n,extraPayloadFromDefiner:e.options.extraPayload,proxyCount:0,removeThisModuleProxy(){const n=u[x].indexOf(e);~n&&u[x].splice(n,1)}})});let s=0;return u[x].reduce((e,l)=>(l.component&&(e=y(l.fallback?p:h,{fallback:l.fallback,children:y(l.component,{payload:c,SourceCmp:i,lastCmp:e,extraPayloadFromDefiner:l.options.extraPayload,proxyCount:s,definedArgs:f,callingArgs:n,removeThisModuleProxy(){const n=u[x].indexOf(l);if(~n){const e=o.indexOf(l);u[x].splice(n,1),o.splice(e,1),t.NirtW(L,r)}}})}),s++),e),t.nolJC(b,i))})})}}return a}})}(n[2],e),E[e]&&console.log(e,n)),n;var j,k}function U(n,t){return J[n]=J[n]||[],J[n].push(t),()=>{const r=J[n].findIndex(t);J[n].splice(r,1)}}function L(n){if(J[n])for(let t of J[n])b(t)}e.zKjQYvgSmF=function(t){return window.require(o(n,t))},e.zKjQYvcSmF=(n,r,e)=>{const[o,u]=S(t,n);Q[o]||console.error("Undefined module "+o+" from "+u+" #1");const i=Q[o].find(n=>n.extensionId===u);if(!i)return console.error("Undefined module "+o+" from "+u+" #2");const{fallback:c}=j(e,{});i.component=r,i.fallback=c,S(L,o)},e.zKjQYVcSmF=(n,r)=>{const e=Object.assign({order:10,skipOthers:!1,beforeInject:()=>!0,afterInject:()=>{},extraPayload:void 0,definerPath:k},r),[o,i]=u(t,n);Q[o]=Q[o]||[],Q[o].push({extensionId:i,moduleName:o,options:e,component:void 0,fallback:void 0})},e.zKjQYwcSmF=t=>{E[C(n,t)]=!0},e.zKjQYvcSfF=(n,r,e)=>{const o=Object.assign({order:10,skipOthers:!1},e),[u,i]=z(t,n);T[u]=T[u]||[],T[u].push({moduleName:u,options:o,replacement:r})},e.zKGQYvcSmF=(t,r)=>{t=F(n,t),q[t]=q[t]||[],q[t].push(r)},e.zKjQYvcSfF(A,n=>n.replace('debugjs.")','debugjs.");console.error(b.stackFrames.slice(0,10).map(e=>e.text).join("\\n"))')),e.zKjQYvcSfF(K,n=>n.replace(/Error\(\w\(418\)\)/g,"void 0")),e.zKjQYvcSfF(O,n=>n.replace(/,(\w)=new\(b\("relay-runtime\/mutations\/RelayRecordSourceProxy"/,',$1=window["RlbiULLGWt"]=new(b("relay-runtime/mutations/RelayRecordSourceProxy"')),e.zKjQYvcSfF(O,n=>n.replace(/;(\w)\.commitPayload=function\(([\w,]+)\){/,";$1.commitPayload=function($2){try{if(arguments[0]){if(arguments[0]?.request?.variables?.__relay_internal__pv__CometUFIReactionEnableShortNamerelayprovider === true) return;};}catch(e){console.log('relayStoreCommitPayload',e)};"))})(window),(n=>{const t="_*_*_*_*_",r="args undefined",e=function(n,t){return n-t},o="debug",u="undefined value",i=function(n,t){return n==t},c="string",f=function(n,t){return n===t},s=".$1",l="($1_*_*_*_*_$2)",a=function(n,t){return n<t},d=function(n,t){return n===t},p=function(n,t){return n(t)},m=function(n,t){return n===t},x=function(n,t){return n(t)},_=function(n,t){return n(t)},g=function(n,t){return n(t)},y=function(n,t){return n==t},h=function(n,t){return n==t},w=function(n,t){return n(t)};n.vTUNhjwVvX||(n.vTUNhjwVvX=!0,n.zKjqYvcSmF=(v,b,S)=>{const j={udrHu:r,afRko:function(n,t){return e(n,t)},uIDXZ:o,GxAKz:u},k=n.RlbiULLGWt,C=i(c,typeof v)?k.get(v):v;if(f(void 0,C))return C;let z=(F=b.replace(/\[(\d+)\]/g,s),F.replace(/\((.*?)\.(.*?)\)/g,l)).split(".");var F;z=z.map(n=>n.replaceAll(t,"."));let P=C;for(let n=0;a(n,z.length);n++){const t=z[n];if(f("*",t))return P;if(d(0,t.indexOf("^^"))){const[n,r]=p(I,t.substring(2));if(P=P.getLinkedRecords(n,r),m(void 0,P))return x(A,t),P}else if(f(0,t.indexOf("^"))){const[n,r]=_(I,t.substring(1));if(P=P.getLinkedRecord(n,r),i(null,P))return p(A,t),P}else if(t.match(/^\d+$/)){if(P=P[g(parseInt,t)],y(null,P))return _(A,t),P}else{const[n,r]=x(I,t);if(P=P.getValue(n,r),h(null,P))return w(A,t),P}}return P;function I(n){const[t,r]=n.split("{");if(!r)return[t,{}];if(!S)throw new Error(j.udrHu);return[t,S[r.substring(0,j.afRko(r.length,1))]||{}]}function A(t){~n.location.search.indexOf(j.uIDXZ)&&console.warn(j.GxAKz,{id:v,path:b,args:S,currentPath:t})}})})(window),(n=>{const t=function(n,t){return n instanceof t},r=function(n,t){return n!==t},e="__id",o=function(n,t){return n!==t},u="__typename",i=function(n,t){return n==t},c="object",f=function(n,t){return n in t},s="__ref",l=function(n,t){return n===t},a=function(n,t){return n!==t},d="__refs",p=function(n,t){return n!==t},m=function(n,t){return n in t},x=function(n,t){return n!==t},_=function(n,t){return n<t},g=function(n,t){return n(t)},y=function(n,t,r){return n(t,r)},h=function(n,t){return n!==t},w="continue",v=function(n,t,r,e){return n(t,r,e)},b=function(n,t){return n(t)},S=function(n,t){return n===t};function j(){const r=n.RlbiULLGWt.getRoot();let e=[];return Object.keys(r).forEach(n=>{const o=r[n];if(o.__sources&&Array.isArray(o.__sources)){const n=o.__sources;for(const r of n)for(const n in r){const o=r[n];t(o,Map)&&e.push(o)}}}),e}function k(n){const t=function(n){return n()}(j);let p=[];for(const m of t)for(const[t,x]of m)for(const[m,_]of Object.entries(x))r(e,m)&&o(u,m)&&(i(c,typeof _)&&r(null,_)&&f(s,_)&&l(_.__ref,n)&&p.push(x),i(c,typeof _)&&a(null,_)&&f(d,_)&&Array.isArray(_.__refs)&&_.__refs.includes(n)&&p.push(x));return p}function C(n){const t=function(n){return n()}(j);for(const o of t)for(const[t,f]of o)for(const[o,_]of Object.entries(f))if(p(e,o)&&r(u,o)){if(i(c,typeof _)&&a(null,_)&&m(s,_)&&l(_.__ref,n))return f;if(i(c,typeof _)&&x(null,_)&&m(d,_)&&Array.isArray(_.__refs)&&_.__refs.includes(n))return f}return null}function z(n,t,r){const e=[];let o=n,u=0;for(;_(u,t);){const n=g(C,o);if(!n)break;e.push(n);const t=y(r,n,e);if(h(w,t)){if(l("break",t))break;return t}o=n.__id,u++}return null}function F(n,t){const r=[];return v(z,n,(null==t?void 0:t.depth)||10,(n,t)=>(r.push(n),"continue")),function(n,t){return n>t}(r.length,0)?r:null}n.vTUNhJwVvX||(n.vTUNhJwVvX=!0,n.zkjQYvCSmF=F,n.zkJqYvcSmF=function(n,t){const r=y(F,n,t);return r?r.map(n=>n.__typename):null},n.zkJQyvcSmF=function(n,t,r){return v(z,n,(null==r?void 0:r.depth)||10,n=>n.__typename===t?n:"continue")},n.zkjQYvcSMf=function(t,r,e){return function(n,t,r,e){return n(t,r,e)}(z,t,(null==e?void 0:e.depth)||10,t=>{try{if(function(n,t){return n!=t}(null,n.zKjqYvcSmF(t.__id,r)))return t.__id}catch(e){}return w})},n.zKjQYvCSMf=function(n,t){const r=t.split(".");let e=null;n:for(;;){if(l(0,r.length))return e;const t=(null==e?void 0:e.__id)??n,o=r.shift(),u=b(k,t);for(const n of u)if(S(n.__typename,o)){e=n;continue n}return null}},n.zKjQyvCSMf=k)})(window),(t=>{if(window.xmxlgxMDjA)return;window.xmxlgxMDjA=!0;let r={};t.zKGQYvcSmF("sf{jmbjsfTbubEfmqnjTsiy",n=>{const t=n[4].exports.default;n[4].exports.default=function(...n){const e=n[0].fb_api_req_friendly_name;return e&&r[e]&&(n[0]=r[e].reduce((n,t)=>t(n),n[0])),t.apply(t,n)}}),t.zkjQYvcSmF=(t,e)=>{t=function(n,t){return n(t)}(n,t),r[t]=r[t]||[],r[t].push(e)}})(window)}();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sidesuit/pkg-module-proxy",
3
3
  "private": false,
4
- "version": "1.2.1",
4
+ "version": "1.2.3",
5
5
  "type": "module",
6
6
  "main": "./dist/index.iife.js",
7
7
  "module": "./dist/index.iife.js",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "devDependencies": {
19
19
  "@rollup/plugin-replace": "^5.0.5",
20
- "@sidesuit/pkg-vite-plugins": "^1.2.0",
20
+ "@sidesuit/pkg-vite-plugins": "^1.2.1",
21
21
  "@types/lodash-es": "^4.17.12",
22
22
  "@types/node": "^20.11.24",
23
23
  "@types/react": "^18.2.61",