PageSourceSearch

https://www.vizcaya.com.br/_frsh/js/247c4b538493c95dbce35b1a693b55ec262a909a/chunk-CMC45F76.js

js vizcaya.com.br collected 2026-09-25 18:48:13 UTC 3,847 bytes, 1 lines download raw bytes

1import{a as u}from"./chunk-D22QKJZO.js";function p(t){return t.replace(/\./g,"\\.")}function v(t){if(t instanceof FormData)return t;let e=new FormData,n=(o,a,i)=>{let r=i?o:p(o);if(Array.isArray(a))a.forEach((s,c)=>{if(typeof s=="object"&&s!==null)for(let[f,l]of Object.entries(s)){let T=p(f);l instanceof Blob?e.append("".concat(r,".").concat(c,".").concat(T),l):e.append("".concat(r,".").concat(c,".").concat(T),String(l))}else s instanceof Blob?e.append("".concat(r,".").concat(c),s):s?e.append("".concat(r,".").concat(c),String(s)):e.append("".concat(r),s)});else if(a instanceof Blob)e.append(r,a);else if(typeof a=="object"&&a!==null)for(let[s,c]of Object.entries(a)){let f=p(s);n("".concat(r,".").concat(f),c,!0)}else e.append(r,String(a))};if(Array.isArray(t))throw new Error("Cannot send array as multipart");for(let[o,a]of Object.entries(t))n(o,a);return e}var y=class{constructor(e,n,o){this.invoker=e;this.payload=n;this.init=o}get(){return this.payload}then(e,n){return this.invoker(this.payload,this.init).then(e).catch(n)}},I=t=>{let e={get:function(n,o){var r;if(typeof o=="symbol"&&(o===Symbol.toStringTag||o===Symbol.toPrimitive))return function(){};let a=[...(r=n.__parts)!=null?r:[],o],i=function(s,c){let f=o==="x"?"tsx":"ts";return new y((l,T)=>t(l.key,l.props,T),{key:"".concat(a.join("/"),".").concat(f),props:s},c)};return i.__parts=a,new Proxy(i,e)}};return e};async function*b(t,e={}){var i;if(!t.body)return;let{shouldDecodeChunk:n=!0}=e,o=t.body.pipeThrough(new TextDecoderStream).getReader(),a="";for(;;){let{value:r,done:s}=await o.read();if(s)break;a+=r;let c=a.split("\n");a=(i=c.pop())!=null?i:"";for(let f of c)if(f.startsWith("data:"))try{let l=f.replace("data:","");yield JSON.parse(n?decodeURIComponent(l):l)}catch(l){console.log("error parsing data",l,f);continue}}if(a.length>0&&a.startsWith("data:"))try{yield JSON.parse(decodeURIComponent(a.replace("data:","")))}catch(r){console.log("error parsing data",r,a)}}var d=class extends Error{constructor(n,o){var a;super(n,o);u(this,"correlationId",null);this.correlationId=(a=o==null?void 0:o.correlationId)!=null?a:null}},x=async(t,e,n)=>{var f,l;typeof document>"u"&&console.warn("\u{1F44B} Oops! Runtime.invoke should be called only on the client-side, but it seems to be called on the server-side instead. No worries, mistakes happen! \u{1F609}");let o=new Headers(n==null?void 0:n.headers),a=(f=n==null?void 0:n.fetcher)!=null?f:fetch,i=(l=n==null?void 0:n.multipart)!=null?l:!1;o.set("accept","application/json, text/event-stream"),i&&o.has("content-type")&&(console.warn("invoke ".concat(t,": Setting the content-type header is not allowed when using multipart, it will be ignored")),o.delete("content-type")),!i&&!o.has("content-type")&&o.set("content-type","application/json");let r=o.get("content-type")==="application/json"?JSON.stringify(e):i?v(e):e,s=await a(t,{method:"POST",body:r,...n,headers:o});if(s.status===204)return;if(s.ok)return s.headers.get("content-type")==="text/event-stream"?b(s):s.json();let c=await s.text();if(s.headers.get("content-type")==="application/json"){let T=JSON.parse(c);throw new d("".concat(s.status,": ").concat(s.statusText),{cause:T,correlationId:s.headers.get("x-correlation-id")})}throw new d("".concat(s.status,": ").concat(s.statusText),{cause:c,correlationId:s.headers.get("x-correlation-id")})},A=(t,e,n)=>x("/live/invoke/".concat(t),e!=null?e:{},n),M=(t,e)=>x("/live/invoke",t,e),k=t=>(t==null?void 0:t.then)!==void 0&&(t==null?void 0:t.payload)!==void 0,K=t=>(e,n)=>{if(typeof e=="object"){if("key"in e&&"props"in e)return A(e.key,e.props,{...n!=null?n:{},fetcher:t});let o={};for(let[a,i]of Object.entries(e))k(i)?o[a]=i.payload:o[a]=i;return M(o,{...n!=null?n:{},fetcher:t})}return M(e,{...n!=null?n:{},fetcher:t})};var m=t=>new Proxy(t,I((e,n,o)=>t({key:e,props:n},o))),h=t=>m(K(t));export{h as a};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.