@sidesuit/pkg-module-proxy 2.0.8 → 2.1.0

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.
@@ -0,0 +1,2 @@
1
+ export declare function encrypt(str: any): any;
2
+ export declare function encryptFirstArg(fn: (...args: any[]) => any): (...args: any[]) => any;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- !function(){"use strict";function e(e){return e.startsWith("__proxy__")?e.slice(9):e.split("").reverse().map(e=>String.fromCharCode(e.charCodeAt(0)-1)).join("")}function n(n){const[t,r="default"]=e(n).split("|");return[t,r]}function t(e){const n=function(e){let n=e.slice(e.indexOf("{")+1,e.lastIndexOf("}"));return n||""}(e),t=function(e){let n=e.replace(r,""),t=n.slice(n.indexOf("(")+1,n.indexOf(")")).match(o);null===t&&(t=[]);return t}(e),i="id_"+function(){let e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==n?t:3&t|8).toString(16)})}();let c=`window['__fnCache']["${i}"]= function(${t}){${n}}`,d=document.createElement("script");try{d.appendChild(document.createTextNode(c))}catch(l){d.text=c}let s=document.getElementsByTagName("head")[0]||document.documentElement;return s.appendChild(d),s.removeChild(d),window.__fnCache[`${i}`]}window.__fnCache=window.__fnCache||{};let r=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,o=/([^\s,]+)/g;function i(e,n,t=!1){const r=n.split(/\.|\[(\d+)\]/).filter(Boolean);let o,i=e;for(let c=0;c<r.length;c++){if(o=i,i=i[r[c]],void 0===i)return t?o:void 0}return t?o:i}window.UNCRPTY_PREFIX="__proxy__",(r=>{if(window.GZUAwCFuFf)return window.rq=window.zKjQYvgSmF,window.defineModule=window.zKjQYvcSmF,window.moduleProxyDefine=window.zKjQYVcSmF,window.moduleDebugDefine=window.zKjQYwcSmF,window.moduleCodeReplace=window.zKjQYvcSfF,void(window.moduleProxyImmediately=window.zKGQYvcSmF);window.GZUAwCFuFf=!0;const o={},c={},d={},s={},l={};let u=window.__d;window.__d&&(~u.toString().indexOf("__d_stub")?delete window.__d:u=new Proxy(window.__d,{apply:(e,n,t)=>(t=f(t),e.apply(n,t))})),Object.defineProperty(window,"__d",{get:function(){return u},set:function(e){u=new Proxy(e,{apply:(e,n,t)=>(t=f(t),e.apply(n,t))})}});const a=[];function f(e){let[n,r,l]=e;return"string"!=typeof n||a.includes(n)||(a.push(n),e[2]=function(e,n){if(!d[n])return e;const r=d[n];r.sort((e,n)=>e.options.order-n.options.order);const o=r.find(e=>e.options.skipOthers);if(o)return t(o.replacement(e.toString()));return t(r.reduce((e,n)=>e=n.replacement(e),e.toString()))}(e[2],n),e[2]=function(e,n){return c[n]?new Proxy(e,{apply(e,t,r){if(r[5]&&r[5].dependencies)for(let n=0;n<r[5].dependencies.length;n++)r.push(r[5].dependencies[n].exports);const o=e.apply(t,r);return c[n].map(e=>{e(r)}),o}}):e}(e[2],n),e[2]=function(e,n){if(!o[n]||0===o[n].length)return e;const t=o[n];t.sort((e,n)=>e.options.order-n.options.order);const r=t.reduce((e,n)=>{const t=n.options.definerPath;return e[t]=e[t]||[],e[t].push(n),e},{});return new Proxy(e,{apply(e,o,c){const d=e.apply(o,c);if(c[5]&&c[5].dependencies)for(let n=0;n<c[5].dependencies.length;n++)c.push(c[5].dependencies[n].exports);const s=c[3],l=(0,c[2])("CometErrorBoundary.react"),u=e=>(console.error(e),"Error");for(let a in r){const e=i(c,a,!0),o=a.split(".").pop(),d=i(c,a);e[o]=function(...e){const o=d.apply(d,e),i=e[0],{useState:f,useEffect:w,jsx:_,Fragment:y}=s("react"),[x,h]=f(0),g=()=>{if(!r[a])return F(o);const d=r[a].find(e=>e.options.skipOthers);if(d&&d.component)return _(d.fallback?l:y,{fallback:d.fallback,children:_(d.component,{payload:i,SourceCmp:o,lastCmp:F(o),definedArgs:c,callingArgs:e,extraPayloadFromDefiner:d.options.extraPayload,proxyCount:0,removeThisModuleProxy(){const e=r[a].indexOf(d);~e&&r[a].splice(e,1)}})});let s=0;return r[a].reduce((d,u)=>(u.component&&(d=_(u.fallback?l:y,{fallback:u.fallback,children:_(u.component,{payload:i,SourceCmp:o,lastCmp:d,extraPayloadFromDefiner:u.options.extraPayload,proxyCount:s,definedArgs:c,callingArgs:e,removeThisModuleProxy(){const e=r[a].indexOf(u);if(~e){const o=t.indexOf(u);r[a].splice(e,1),t.splice(o,1),m(n)}}})}),s++),d),F(o))};function F(e){return e&&e.$1&&"function"==typeof e.$1?_(e,e.props):e}return w(()=>{const e=p(n,()=>{h(Math.random())});return()=>e()},[]),_(l,{fallback:u,children:g()})}}return d}})}(e[2],n),s[n]&&console.log(n,e)),e}function p(e,n){return l[e]=l[e]||[],l[e].push(n),()=>{const t=l[e].findIndex(n);l[e].splice(t,1)}}function m(e){if(l[e])for(let n of l[e])n()}r.rq=window.zKjQYvgSmF=function(n){return window.require(e(n))},r.defineModule=window.zKjQYvcSmF=(e,t,r)=>{const[i,c]=n(e);o[i]||console.error(`Undefined module ${i} from ${c} #1`);const d=o[i].find(e=>e.extensionId===c);if(!d)return console.error(`Undefined module ${i} from ${c} #2`);const{fallback:s}=r||{};d.component=t,d.fallback=s,m(i)},r.moduleProxyDefine=window.zKjQYVcSmF=(e,t)=>{const r=Object.assign({order:10,skipOthers:!1,beforeInject:()=>!0,afterInject:()=>{},extraPayload:void 0,definerPath:"[6].default"},t),[i,c]=n(e);o[i]=o[i]||[],o[i].push({extensionId:c,moduleName:i,options:r,component:void 0,fallback:void 0})},r.moduleDebugDefine=window.zKjQYwcSmF=n=>{s[e(n)]=!0},r.moduleCodeReplace=window.zKjQYvcSfF=(e,t,r)=>{const o=Object.assign({order:10,skipOthers:!1},r),[i]=n(e);d[i]=d[i]||[],d[i].push({moduleName:i,options:o,replacement:t})},r.moduleProxyImmediately=window.zKGQYvcSmF=(n,t)=>{n=e(n),c[n]=c[n]||[],c[n].push(t)},r.moduleCodeReplace(`${r.UNCRPTY_PREFIX}fb-error`,e=>e.replace('debugjs.")','debugjs.");console.error(b.stackFrames.slice(0,10).map(e=>e.text).join("\\n"))')),r.moduleCodeReplace(`${r.UNCRPTY_PREFIX}ReactDOM-prod.classic`,e=>e.replace(/Error\(\w\(418\)\)/g,"void 0")),r.moduleCodeReplace(`${r.UNCRPTY_PREFIX}relay-runtime/store/RelayPublishQueue`,e=>e.replace(/,(\w+)=new\((\w+)\("relay-runtime\/mutations\/RelayRecordSourceProxy"/,',$1=window["RlbiULLGWt"]=new($2("relay-runtime/mutations/RelayRecordSourceProxy"')),r.moduleCodeReplace(`${r.UNCRPTY_PREFIX}relay-runtime/store/RelayPublishQueue`,e=>e=e.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),(e=>{if(e.vTUNhjwVvX)return void(e.storeFinder=e.zKjqYvcSmF);e.vTUNhjwVvX=!0;e.storeFinder=window.zKjqYvcSmF=(n,t,r)=>{const o=e.RlbiULLGWt,i="string"==typeof n?o.get(n):n;if(void 0===i)return i;let c=(d=t.replace(/\[(\d+)\]/g,".$1"),d.replace(/\((.*?)\.(.*?)\)/g,"($1_*_*_*_*_$2)")).split(".");var d;c=c.map(e=>function(e){return e.replaceAll("_*_*_*_*_",".")}(e));let s=i;for(let e=0;e<c.length;e++){const n=c[e];if("*"===n)return s;if(0===n.indexOf("^^")){const[e,t]=l(n.substring(2));if(s=s.getLinkedRecords(e,t),void 0===s)return u(n),s}else if(0===n.indexOf("^")){const[e,t]=l(n.substring(1));if(s=s.getLinkedRecord(e,t),null==s)return u(n),s}else if(n.match(/^\d+$/)){if(s=s[parseInt(n)],null==s)return u(n),s}else{const[e,t]=l(n);if(s=s.getValue(e,t),null==s)return u(n),s}}return s;function l(e){const[n,t]=e.split("{");if(!t)return[n,{}];if(!r)throw new Error("args undefined");return[n,r[t.substring(0,t.length-1)]||{}]}function u(o){~e.location.search.indexOf("debug")&&console.warn("undefined value",{id:n,path:t,args:r,currentPath:o})}}})(window),(e=>{if(e.vTUNhJwVvX)return e.storeFinderFindParentsSourcesByStoreId=e.zkjQYvCSmF,e.storeFinderFindParentsTypenamesByStoreId=e.zkJqYvcSmF,e.storeFinderFindParentSourceByTypename=e.zkJQyvcSmF,e.storeFinderFindParentByExistingValue=e.zkjQYvcSMf,e.storeFinderFindParentSourceByTypenameByPathMatch=e.zKjQYvCSMf,void(e.findDirectParentArray=e.zKjQyvCSMf);function n(){const n=e.RlbiULLGWt.getRoot();let t=[];return Object.keys(n).forEach(e=>{const r=n[e];if(r.__sources&&Array.isArray(r.__sources)){const e=r.__sources;for(const n of e)for(const e in n){const r=n[e];r instanceof Map&&t.push(r)}}}),t}function t(e){const t=n();let r=[];for(const n of t)for(const[t,o]of n)for(const[n,i]of Object.entries(o))"__id"!==n&&"__typename"!==n&&("object"==typeof i&&null!==i&&"__ref"in i&&i.__ref===e&&r.push(o),"object"==typeof i&&null!==i&&"__refs"in i&&Array.isArray(i.__refs)&&i.__refs.includes(e)&&r.push(o));return r}function r(e){const t=n();for(const n of t)for(const[t,r]of n)for(const[n,o]of Object.entries(r))if("__id"!==n&&"__typename"!==n){if("object"==typeof o&&null!==o&&"__ref"in o&&o.__ref===e)return r;if("object"==typeof o&&null!==o&&"__refs"in o&&Array.isArray(o.__refs)&&o.__refs.includes(e))return r}return null}function o(e,n,t){const o=[];let i=e,c=0;for(;c<n;){const e=r(i);if(!e)break;o.push(e);const n=t(e,o);if("continue"!==n){if("break"===n)break;return n}i=e.__id,c++}return null}function i(e,n){const t=[];return o(e,n?.depth||10,(e,n)=>(t.push(e),"continue")),t.length>0?t:null}e.vTUNhJwVvX=!0,e.storeFinderFindParentsSourcesByStoreId=window.zkjQYvCSmF=i,e.storeFinderFindParentsTypenamesByStoreId=window.zkJqYvcSmF=function(e,n){const t=i(e,n);return t?t.map(e=>e.__typename):null},e.storeFinderFindParentSourceByTypename=window.zkJQyvcSmF=function(e,n,t){return o(e,t?.depth||10,e=>e.__typename===n?e:"continue")},e.storeFinderFindParentByExistingValue=window.zkjQYvcSMf=function(n,t,r){return o(n,r?.depth||10,n=>{try{const r=e.storeFinder(n.__id,t);if(null!=r)return n.__id}catch(r){}return"continue"})},e.storeFinderFindParentSourceByTypenameByPathMatch=window.zKjQYvCSMf=function(e,n){const r=n.split(".");let o=null;e:for(;;){if(0===r.length)return o;const n=o?.__id??e,i=r.shift(),c=t(n);for(const e of c)if(e.__typename===i){o=e;continue e}return null}},e.findDirectParentArray=window.zKjQyvCSMf=t})(window),(n=>{if(window.xmxlgxMDjA)return void(window.ajaxHijack=window.zkjQYvcSmF);window.xmxlgxMDjA=!0;let t={};n.moduleProxyImmediately("xhrSimpleDataSerializer",e=>{const n=e[4].exports.default;e[4].exports.default=function(...e){const r=e[0].fb_api_req_friendly_name;return r&&t[r]&&(e[0]=t[r].reduce((e,n)=>e=n(e),e[0])),n.apply(n,e)}});n.ajaxHijack=window.zkjQYvcSmF=(n,r)=>{n=e(n),t[n]=t[n]||[],t[n].push(r)}})(window)}();
1
+ !function(){"use strict";function e(e){if(e.startsWith("__proxy__"))return e.slice(9);const n=/^Comet/.test(e)||/^Base/.test(e)||/^Relay/.test(e)||/^Polaris/.test(e)||/^MWP/.test(e)||/^use/.test(e)||/^react$/.test(e)||/^cr:\d+/.test(e)||/^__debug$/.test(e)||/^Async$/.test(e)||/^Bootloader$/.test(e)||/^CurrentUser$/.test(e)||/^DTSG$/.test(e)||/^DynamicUFIReactionTypes$/.test(e)||/^Env$/.test(e)||/^ErrorPubSub$/.test(e)||/^I64$/.test(e)||/^Lexical$/.test(e)||/^entrypoint$/.test(e)||/^ReQLSuspense$/.test(e)||/^RunComet$/.test(e)||/^SprinkleConfig$/.test(e)||/^WebPixelRatio$/.test(e)||/^XHRRequest$/.test(e)||/^cometAsyncFetch$/.test(e)||/^getAsyncParams$/.test(e)||/^ifRequired$/.test(e)||/^normalizeCometRouterUrl$/.test(e)||/^queryMWLSOtherParticipantContact$/.test(e),t=e.startsWith("relay")||e.startsWith("fb")||e.startsWith("graphql")||e.startsWith("use")||e.startsWith("I64");return e.toLowerCase().includes("react")||e.toLowerCase().includes(".bs")||t||n?e:e.split("").reverse().map(e=>String.fromCharCode(e.charCodeAt(0)-1)).join("")}function n(n){const[t,o="default"]=e(n).split("|");return[t,o]}function t(e){const n=function(e){let n=e.slice(e.indexOf("{")+1,e.lastIndexOf("}"));return n||""}(e),t=function(e){let n=e.replace(o,""),t=n.slice(n.indexOf("(")+1,n.indexOf(")")).match(r);null===t&&(t=[]);return t}(e),i="id_"+function(){let e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==n?t:3&t|8).toString(16)})}();let s=`window['__fnCache']["${i}"]= function(${t}){${n}}`,c=document.createElement("script");try{c.appendChild(document.createTextNode(s))}catch(a){c.text=s}let d=document.getElementsByTagName("head")[0]||document.documentElement;return d.appendChild(c),d.removeChild(c),window.__fnCache[`${i}`]}window.__fnCache=window.__fnCache||{};let o=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,r=/([^\s,]+)/g;function i(e,n,t=!1){const o=n.split(/\.|\[(\d+)\]/).filter(Boolean);let r,i=e;for(let s=0;s<o.length;s++){if(r=i,i=i[o[s]],void 0===i)return t?r:void 0}return t?r:i}function s(e){return(...n)=>(n[0]=n[0].split("").map(e=>String.fromCharCode(e.charCodeAt(0)+1)).reverse().join(""),e(...n))}window.UNCRPTY_PREFIX="__proxy__",(o=>{if(window.GZUAwCFuFf)return void(window._isNewProxyInjector?(window.rq=window.zKjQYvgSmF,window.defineModule=window.zKjQYvcSmF,window.moduleProxyDefine=window.zKjQYVcSmF,window.moduleDebugDefine=window.zKjQYwcSmF,window.moduleCodeReplace=window.zKjQYvcSfF,window.moduleProxyImmediately=window.zKGQYvcSmF):(window.rq=s(window.zKjQYvgSmF),window.defineModule=s(window.zKjQYvcSmF),window.moduleProxyDefine=s(window.zKjQYVcSmF),window.moduleDebugDefine=s(window.zKjQYwcSmF),window.moduleCodeReplace=s(window.zKjQYvcSfF),window.moduleProxyImmediately=s(window.zKGQYvcSmF)));window.GZUAwCFuFf=!0,window._isNewProxyInjector=!0;const r={},c={},d={},a={},l={};let u=window.__d;window.__d&&(~u.toString().indexOf("__d_stub")?delete window.__d:u=new Proxy(window.__d,{apply:(e,n,t)=>(t=w(t),e.apply(n,t))})),Object.defineProperty(window,"__d",{get:function(){return u},set:function(e){u=new Proxy(e,{apply:(e,n,t)=>(t=w(t),e.apply(n,t))})}});const f=[];function w(e){let[n,o,s]=e;return"string"!=typeof n||f.includes(n)||(f.push(n),e[2]=function(e,n){if(!d[n])return e;const o=d[n];o.sort((e,n)=>e.options.order-n.options.order);const r=o.find(e=>e.options.skipOthers);if(r)return t(r.replacement(e.toString()));return t(o.reduce((e,n)=>e=n.replacement(e),e.toString()))}(e[2],n),e[2]=function(e,n){return c[n]?new Proxy(e,{apply(e,t,o){if(o[5]&&o[5].dependencies)for(let n=0;n<o[5].dependencies.length;n++)o.push(o[5].dependencies[n].exports);const r=e.apply(t,o);return c[n].map(e=>{e(o)}),r}}):e}(e[2],n),e[2]=function(e,n){if(!r[n]||0===r[n].length)return e;const t=r[n];t.sort((e,n)=>e.options.order-n.options.order);const o=t.reduce((e,n)=>{const t=n.options.definerPath;return e[t]=e[t]||[],e[t].push(n),e},{});return new Proxy(e,{apply(e,r,s){const c=e.apply(r,s);if(s[5]&&s[5].dependencies)for(let n=0;n<s[5].dependencies.length;n++)s.push(s[5].dependencies[n].exports);const d=s[3],a=(0,s[2])("CometErrorBoundary.react"),l=e=>(console.error(e),"Error");for(let u in o){const e=i(s,u,!0),r=u.split(".").pop(),c=i(s,u);e[r]=function(...e){const r=c.apply(c,e),i=e[0],{useState:f,useEffect:w,jsx:y,Fragment:_}=d("react"),[x,h]=f(0),g=()=>{if(!o[u])return S(r);const c=o[u].find(e=>e.options.skipOthers);if(c&&c.component)return y(c.fallback?a:_,{fallback:c.fallback,children:y(c.component,{payload:i,SourceCmp:r,lastCmp:S(r),definedArgs:s,callingArgs:e,extraPayloadFromDefiner:c.options.extraPayload,proxyCount:0,removeThisModuleProxy(){const e=o[u].indexOf(c);~e&&o[u].splice(e,1)}})});let d=0;return o[u].reduce((c,l)=>(l.component&&(c=y(l.fallback?a:_,{fallback:l.fallback,children:y(l.component,{payload:i,SourceCmp:r,lastCmp:c,extraPayloadFromDefiner:l.options.extraPayload,proxyCount:d,definedArgs:s,callingArgs:e,removeThisModuleProxy(){const e=o[u].indexOf(l);if(~e){const r=t.indexOf(l);o[u].splice(e,1),t.splice(r,1),m(n)}}})}),d++),c),S(r))};function S(e){return e&&e.$1&&"function"==typeof e.$1?y(e,e.props):e}return w(()=>{const e=p(n,()=>{h(Math.random())});return()=>e()},[]),y(a,{fallback:l,children:g()})}}return c}})}(e[2],n),a[n]&&console.log(n,e)),e}function p(e,n){return l[e]=l[e]||[],l[e].push(n),()=>{const t=l[e].findIndex(n);l[e].splice(t,1)}}function m(e){if(l[e])for(let n of l[e])n()}o.rq=window.zKjQYvgSmF=function(n){return window.require(e(n))},o.defineModule=window.zKjQYvcSmF=(e,t,o)=>{const[i,s]=n(e);r[i]||console.error(`Undefined module ${i} from ${s} #1`);const c=r[i].find(e=>e.extensionId===s);if(!c)return console.error(`Undefined module ${i} from ${s} #2`);const{fallback:d}=o||{};c.component=t,c.fallback=d,m(i)},o.moduleProxyDefine=window.zKjQYVcSmF=(e,t)=>{const o=Object.assign({order:10,skipOthers:!1,beforeInject:()=>!0,afterInject:()=>{},extraPayload:void 0,definerPath:"[6].default"},t),[i,s]=n(e);r[i]=r[i]||[],r[i].push({extensionId:s,moduleName:i,options:o,component:void 0,fallback:void 0})},o.moduleDebugDefine=window.zKjQYwcSmF=n=>{a[e(n)]=!0},o.moduleCodeReplace=window.zKjQYvcSfF=(e,t,o)=>{const r=Object.assign({order:10,skipOthers:!1},o),[i]=n(e);d[i]=d[i]||[],d[i].push({moduleName:i,options:r,replacement:t})},o.moduleProxyImmediately=window.zKGQYvcSmF=(n,t)=>{n=e(n),c[n]=c[n]||[],c[n].push(t)},o.moduleCodeReplace("fb-error",e=>e.replace('debugjs.")','debugjs.");console.error(b.stackFrames.slice(0,10).map(e=>e.text).join("\\n"))')),o.moduleCodeReplace("ReactDOM-prod.classic",e=>e.replace(/Error\(\w\(418\)\)/g,"void 0")),o.moduleCodeReplace("relay-runtime/store/RelayPublishQueue",e=>e.replace(/,(\w+)=new\((\w+)\("relay-runtime\/mutations\/RelayRecordSourceProxy"/,',$1=window["RlbiULLGWt"]=new($2("relay-runtime/mutations/RelayRecordSourceProxy"')),o.moduleCodeReplace("relay-runtime/store/RelayPublishQueue",e=>e=e.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),(e=>{if(e.vTUNhjwVvX)return void(e.storeFinder=e.zKjqYvcSmF);e.vTUNhjwVvX=!0;e.storeFinder=window.zKjqYvcSmF=(n,t,o)=>{const r=e.RlbiULLGWt,i="string"==typeof n?r.get(n):n;if(void 0===i)return i;let s=(c=t.replace(/\[(\d+)\]/g,".$1"),c.replace(/\((.*?)\.(.*?)\)/g,"($1_*_*_*_*_$2)")).split(".");var c;s=s.map(e=>function(e){return e.replaceAll("_*_*_*_*_",".")}(e));let d=i;for(let e=0;e<s.length;e++){const n=s[e];if("*"===n)return d;if(0===n.indexOf("^^")){const[e,t]=a(n.substring(2));if(d=d.getLinkedRecords(e,t),void 0===d)return l(n),d}else if(0===n.indexOf("^")){const[e,t]=a(n.substring(1));if(d=d.getLinkedRecord(e,t),null==d)return l(n),d}else if(n.match(/^\d+$/)){if(d=d[parseInt(n)],null==d)return l(n),d}else{const[e,t]=a(n);if(d=d.getValue(e,t),null==d)return l(n),d}}return d;function a(e){const[n,t]=e.split("{");if(!t)return[n,{}];if(!o)throw new Error("args undefined");return[n,o[t.substring(0,t.length-1)]||{}]}function l(r){~e.location.search.indexOf("debug")&&console.warn("undefined value",{id:n,path:t,args:o,currentPath:r})}}})(window),(e=>{if(e.vTUNhJwVvX)return e.storeFinderFindParentsSourcesByStoreId=e.zkjQYvCSmF,e.storeFinderFindParentsTypenamesByStoreId=e.zkJqYvcSmF,e.storeFinderFindParentSourceByTypename=e.zkJQyvcSmF,e.storeFinderFindParentByExistingValue=e.zkjQYvcSMf,e.storeFinderFindParentSourceByTypenameByPathMatch=e.zKjQYvCSMf,void(e.findDirectParentArray=e.zKjQyvCSMf);function n(){const n=e.RlbiULLGWt.getRoot();let t=[];return Object.keys(n).forEach(e=>{const o=n[e];if(o.__sources&&Array.isArray(o.__sources)){const e=o.__sources;for(const n of e)for(const e in n){const o=n[e];o instanceof Map&&t.push(o)}}}),t}function t(e){const t=n();let o=[];for(const n of t)for(const[t,r]of n)for(const[n,i]of Object.entries(r))"__id"!==n&&"__typename"!==n&&("object"==typeof i&&null!==i&&"__ref"in i&&i.__ref===e&&o.push(r),"object"==typeof i&&null!==i&&"__refs"in i&&Array.isArray(i.__refs)&&i.__refs.includes(e)&&o.push(r));return o}function o(e){const t=n();for(const n of t)for(const[t,o]of n)for(const[n,r]of Object.entries(o))if("__id"!==n&&"__typename"!==n){if("object"==typeof r&&null!==r&&"__ref"in r&&r.__ref===e)return o;if("object"==typeof r&&null!==r&&"__refs"in r&&Array.isArray(r.__refs)&&r.__refs.includes(e))return o}return null}function r(e,n,t){const r=[];let i=e,s=0;for(;s<n;){const e=o(i);if(!e)break;r.push(e);const n=t(e,r);if("continue"!==n){if("break"===n)break;return n}i=e.__id,s++}return null}function i(e,n){const t=[];return r(e,n?.depth||10,(e,n)=>(t.push(e),"continue")),t.length>0?t:null}e.vTUNhJwVvX=!0,e.storeFinderFindParentsSourcesByStoreId=window.zkjQYvCSmF=i,e.storeFinderFindParentsTypenamesByStoreId=window.zkJqYvcSmF=function(e,n){const t=i(e,n);return t?t.map(e=>e.__typename):null},e.storeFinderFindParentSourceByTypename=window.zkJQyvcSmF=function(e,n,t){return r(e,t?.depth||10,e=>e.__typename===n?e:"continue")},e.storeFinderFindParentByExistingValue=window.zkjQYvcSMf=function(n,t,o){return r(n,o?.depth||10,n=>{try{const o=e.storeFinder(n.__id,t);if(null!=o)return n.__id}catch(o){}return"continue"})},e.storeFinderFindParentSourceByTypenameByPathMatch=window.zKjQYvCSMf=function(e,n){const o=n.split(".");let r=null;e:for(;;){if(0===o.length)return r;const n=r?.__id??e,i=o.shift(),s=t(n);for(const e of s)if(e.__typename===i){r=e;continue e}return null}},e.findDirectParentArray=window.zKjQyvCSMf=t})(window),(n=>{if(window.xmxlgxMDjA)return void(window._isNewAjaxParamsHijack?window.ajaxHijack=window.zkjQYvcSmF:window.ajaxHijack=s(window.zkjQYvcSmF));window.xmxlgxMDjA=!0,window._isNewAjaxParamsHijack=!0;let t={};n.moduleProxyImmediately("xhrSimpleDataSerializer",e=>{const n=e[4].exports.default;e[4].exports.default=function(...e){const o=e[0].fb_api_req_friendly_name;return o&&t[o]&&(e[0]=t[o].reduce((e,n)=>e=n(e),e[0])),n.apply(n,e)}});n.ajaxHijack=window.zkjQYvcSmF=(n,o)=>{n=e(n),t[n]=t[n]||[],t[n].push(o)}})(window)}();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sidesuit/pkg-module-proxy",
3
3
  "private": false,
4
- "version": "2.0.8",
4
+ "version": "2.1.0",
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": "^6.0.3",
20
- "@sidesuit/pkg-vite-plugins": "^2.1.7",
20
+ "@sidesuit/pkg-vite-plugins": "^2.1.8",
21
21
  "@types/lodash-es": "^4.17.12",
22
22
  "@types/node": "^24.10.0",
23
23
  "@types/react": "18.3.26",