PageSourceSearch

https://www.chicastacos.com/_next/static/chunks/620-587a87f04bfeede4.js

js chicastacos.com collected 2026-09-29 08:46:49 UTC 19,012 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[620],{34893:function(t){t.exports=function(t,e,r){for(var n=-1,s=null==t?0:t.length;++n<s;)if(r(e,t[n]))return!0;return!1}},85246:function(t,e,r){var n=r(45386),s=r(38333),i=r(34893),o=r(50343),l=r(47826),a=r(59950);t.exports=function(t,e,r,u){var h=-1,c=s,d=!0,f=t.length,m=[],g=e.length;if(!f)return m;r&&(e=o(e,l(r))),u?(c=i,d=!1):e.length>=200&&(c=a,d=!1,e=new n(e));t:for(;++h<f;){var E=t[h],p=null==r?E:r(E);if(E=u||0!==E?E:0,d&&p==p){for(var M=g;M--;)if(e[M]===p)continue t;m.push(E)}else c(e,p,u)||m.push(E)}return m}},17335:function(t,e,r){var n=r(85246),s=r(62034),i=r(36060),o=r(93746),l=i(function(t,e){return o(t)?n(t,s(e,1,o,!0)):[]});t.exports=l},29782:function(t,e,r){"use strict";r.d(e,{tv:function(){return E}});var n,s,i,o=r(2784),l=Object.defineProperty,a=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,c=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,d=(t,e)=>{for(var r in e||(e={}))u.call(e,r)&&c(t,r,e[r]);if(a)for(var r of a(e))h.call(e,r)&&c(t,r,e[r]);return t},f=(t,e)=>{var r={};for(var n in t)u.call(t,n)&&0>e.indexOf(n)&&(r[n]=t[n]);if(null!=t&&a)for(var n of a(t))0>e.indexOf(n)&&h.call(t,n)&&(r[n]=t[n]);return r};(t=>{let e=class{constructor(t,r,n,i){if(this.version=t,this.errorCorrectionLevel=r,this.modules=[],this.isFunction=[],t<e.MIN_VERSION||t>e.MAX_VERSION)throw RangeError("Version value out of range");if(i<-1||i>7)throw RangeError("Mask value out of range");this.size=4*t+17;let o=[];for(let t=0;t<this.size;t++)o.push(!1);for(let t=0;t<this.size;t++)this.modules.push(o.slice()),this.isFunction.push(o.slice());this.drawFunctionPatterns();let l=this.addEccAndInterleave(n);if(this.drawCodewords(l),-1==i){let t=1e9;for(let e=0;e<8;e++){this.applyMask(e),this.drawFormatBits(e);let r=this.getPenaltyScore();r<t&&(i=e,t=r),this.applyMask(e)}}s(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}static encodeText(r,n){let s=t.QrSegment.makeSegments(r);return e.encodeSegments(s,n)}static encodeBinary(r,n){let s=t.QrSegment.makeBytes(r);return e.encodeSegments([s],n)}static encodeSegments(t,n,i=1,l=40,a=-1,u=!0){let h,c;if(!(e.MIN_VERSION<=i&&i<=l&&l<=e.MAX_VERSION)||a<-1||a>7)throw RangeError("Invalid value");for(h=i;;h++){let r=8*e.getNumDataCodewords(h,n),s=o.getTotalBits(t,h);if(s<=r){c=s;break}if(h>=l)throw RangeError("Data too long")}for(let t of[e.Ecc.MEDIUM,e.Ecc.QUARTILE,e.Ecc.HIGH])u&&c<=8*e.getNumDataCodewords(h,t)&&(n=t);let d=[];for(let e of t)for(let t of(r(e.mode.modeBits,4,d),r(e.numChars,e.mode.numCharCountBits(h),d),e.getData()))d.push(t);s(d.length==c);let f=8*e.getNumDataCodewords(h,n);s(d.length<=f),r(0,Math.min(4,f-d.length),d),r(0,(8-d.length%8)%8,d),s(d.length%8==0);for(let t=236;d.length<f;t^=253)r(t,8,d);let m=[];for(;8*m.length<d.length;)m.push(0);return d.forEach((t,e)=>m[e>>>3]|=t<<7-(7&e)),new e(h,n,m,a)}getModule(t,e){return 0<=t&&t<this.size&&0<=e&&e<this.size&&this.modules[e][t]}getModules(){return this.modules}drawFunctionPatterns(){for(let t=0;t<this.size;t++)this.setFunctionModule(6,t,t%2==0),this.setFunctionModule(t,6,t%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let t=this.getAlignmentPatternPositions(),e=t.length;for(let r=0;r<e;r++)for(let n=0;n<e;n++)0==r&&0==n||0==r&&n==e-1||r==e-1&&0==n||this.drawAlignmentPattern(t[r],t[n]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(t){let e=this.errorCorrectionLevel.formatBits<<3|t,r=e;for(let t=0;t<10;t++)r=r<<1^(r>>>9)*1335;let i=(e<<10|r)^21522;s(i>>>15==0);for(let t=0;t<=5;t++)this.setFunctionModule(8,t,n(i,t));this.setFunctionModule(8,7,n(i,6)),this.setFunctionModule(8,8,n(i,7)),this.setFunctionModule(7,8,n(i,8));for(let t=9;t<15;t++)this.setFunctionModule(14-t,8,n(i,t));for(let t=0;t<8;t++)this.setFunctionModule(this.size-1-t,8,n(i,t));for(let t=8;t<15;t++)this.setFunctionModule(8,this.size-15+t,n(i,t));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let t=this.version;for(let e=0;e<12;e++)t=t<<1^(t>>>11)*7973;let e=this.version<<12|t;s(e>>>18==0);for(let t=0;t<18;t++){let r=n(e,t),s=this.size-11+t%3,i=Math.floor(t/3);this.setFunctionModule(s,i,r),this.setFunctionModule(i,s,r)}}drawFinderPattern(t,e){for(let r=-4;r<=4;r++)for(let n=-4;n<=4;n++){let s=Math.max(Math.abs(n),Math.abs(r)),i=t+n,o=e+r;0<=i&&i<this.size&&0<=o&&o<this.size&&this.setFunctionModule(i,o,2!=s&&4!=s)}}drawAlignmentPattern(t,e){for(let r=-2;r<=2;r++)for(let n=-2;n<=2;n++)this.setFunctionModule(t+n,e+r,1!=Math.max(Math.abs(n),Math.abs(r)))}setFunctionModule(t,e,r){this.modules[e][t]=r,this.isFunction[e][t]=!0}addEccAndInterleave(t){let r=this.version,n=this.errorCorrectionLevel;if(t.length!=e.getNumDataCodewords(r,n))throw RangeError("Invalid argument");let i=e.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][r],o=e.ECC_CODEWORDS_PER_BLOCK[n.ordinal][r],l=Math.floor(e.getNumRawDataModules(r)/8),a=i-l%i,u=Math.floor(l/i),h=[],c=e.reedSolomonComputeDivisor(o);for(let r=0,n=0;r<i;r++){let s=t.slice(n,n+u-o+(r<a?0:1));n+=s.length;let i=e.reedSolomonComputeRemainder(s,c);r<a&&s.push(0),h.push(s.concat(i))}let d=[];for(let t=0;t<h[0].length;
vendor: 5,995 bytes, line 1
1t++)h.forEach((e,r)=>{(t!=u-o||r>=a)&&d.push(e[t])});return s(d.length==l),d}drawCodewords(t){if(t.length!=Math.floor(e.getNumRawDataModules(this.version)/8))throw RangeError("Invalid argument");let r=0;for(let e=this.size-1;e>=1;e-=2){6==e&&(e=5);for(let s=0;s<this.size;s++)for(let i=0;i<2;i++){let o=e-i,l=(e+1&2)==0?this.size-1-s:s;!this.isFunction[l][o]&&r<8*t.length&&(this.modules[l][o]=n(t[r>>>3],7-(7&r)),r++)}}s(r==8*t.length)}applyMask(t){if(t<0||t>7)throw RangeError("Mask value out of range");for(let e=0;e<this.size;e++)for(let r=0;r<this.size;r++){let n;switch(t){case 0:n=(r+e)%2==0;break;case 1:n=e%2==0;break;case 2:n=r%3==0;break;case 3:n=(r+e)%3==0;break;case 4:n=(Math.floor(r/3)+Math.floor(e/2))%2==0;break;case 5:n=r*e%2+r*e%3==0;break;case 6:n=(r*e%2+r*e%3)%2==0;break;case 7:n=((r+e)%2+r*e%3)%2==0;break;default:throw Error("Unreachable")}!this.isFunction[e][r]&&n&&(this.modules[e][r]=!this.modules[e][r])}}getPenaltyScore(){let t=0;for(let r=0;r<this.size;r++){let n=!1,s=0,i=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[r][o]==n?5==++s?t+=e.PENALTY_N1:s>5&&t++:(this.finderPenaltyAddHistory(s,i),n||(t+=this.finderPenaltyCountPatterns(i)*e.PENALTY_N3),n=this.modules[r][o],s=1);t+=this.finderPenaltyTerminateAndCount(n,s,i)*e.PENALTY_N3}for(let r=0;r<this.size;r++){let n=!1,s=0,i=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[o][r]==n?5==++s?t+=e.PENALTY_N1:s>5&&t++:(this.finderPenaltyAddHistory(s,i),n||(t+=this.finderPenaltyCountPatterns(i)*e.PENALTY_N3),n=this.modules[o][r],s=1);t+=this.finderPenaltyTerminateAndCount(n,s,i)*e.PENALTY_N3}for(let r=0;r<this.size-1;r++)for(let n=0;n<this.size-1;n++){let s=this.modules[r][n];s==this.modules[r][n+1]&&s==this.modules[r+1][n]&&s==this.modules[r+1][n+1]&&(t+=e.PENALTY_N2)}let r=0;for(let t of this.modules)r=t.reduce((t,e)=>t+(e?1:0),r);let n=this.size*this.size,i=Math.ceil(Math.abs(20*r-10*n)/n)-1;return s(0<=i&&i<=9),s(0<=(t+=i*e.PENALTY_N4)&&t<=2568888),t}getAlignmentPatternPositions(){if(1==this.version)return[];{let t=Math.floor(this.version/7)+2,e=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*t-2)),r=[6];for(let n=this.size-7;r.length<t;n-=e)r.splice(1,0,n);return r}}static getNumRawDataModules(t){if(t<e.MIN_VERSION||t>e.MAX_VERSION)throw RangeError("Version number out of range");let r=(16*t+128)*t+64;if(t>=2){let e=Math.floor(t/7)+2;r-=(25*e-10)*e-55,t>=7&&(r-=36)}return s(208<=r&&r<=29648),r}static getNumDataCodewords(t,r){return Math.floor(e.getNumRawDataModules(t)/8)-e.ECC_CODEWORDS_PER_BLOCK[r.ordinal][t]*e.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][t]}static reedSolomonComputeDivisor(t){if(t<1||t>255)throw RangeError("Degree out of range");let r=[];for(let e=0;e<t-1;e++)r.push(0);r.push(1);let n=1;for(let s=0;s<t;s++){for(let t=0;t<r.length;t++)r[t]=e.reedSolomonMultiply(r[t],n),t+1<r.length&&(r[t]^=r[t+1]);n=e.reedSolomonMultiply(n,2)}return r}static reedSolomonComputeRemainder(t,r){let n=r.map(t=>0);for(let s of t){let t=s^n.shift();n.push(0),r.forEach((r,s)=>n[s]^=e.reedSolomonMultiply(r,t))}return n}static reedSolomonMultiply(t,e){if(t>>>8!=0||e>>>8!=0)throw RangeError("Byte out of range");let r=0;for(let n=7;n>=0;n--)r=r<<1^(r>>>7)*285^(e>>>n&1)*t;return s(r>>>8==0),r}finderPenaltyCountPatterns(t){let e=t[1];s(e<=3*this.size);let r=e>0&&t[2]==e&&t[3]==3*e&&t[4]==e&&t[5]==e;return(r&&t[0]>=4*e&&t[6]>=e?1:0)+(r&&t[6]>=4*e&&t[0]>=e?1:0)}finderPenaltyTerminateAndCount(t,e,r){return t&&(this.finderPenaltyAddHistory(e,r),e=0),e+=this.size,this.finderPenaltyAddHistory(e,r),this.finderPenaltyCountPatterns(r)}finderPenaltyAddHistory(t,e){0==e[0]&&(t+=this.size),e.pop(),e.unshift(t)}};function r(t,e,r){if(e<0||e>31||t>>>e!=0)throw RangeError("Value out of range");for(let n=e-1;n>=0;n--)r.push(t>>>n&1)}function n(t,e){return(t>>>e&1)!=0}function s(t){if(!t)throw Error("Assertion error")}e.MIN_VERSION=1,e.MAX_VERSION=40,e.PENALTY_N1=3,e.PENALTY_N2=3,e.PENALTY_N3=40,e.PENALTY_N4=10,e.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],e.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],t.QrCode=e;let i=class{constructor(t,e,r){if(this.mode=t,this.numChars=e,this.bitData=r,e<0)throw RangeError("Invalid argument");this.bitData=r.slice()}static makeBytes(t){let e=[];for(let n of t)r(n,8,e);return new i(i.Mode.BYTE,t.length,e)}static makeNumeric(t){if(!i.isNumeric(t))throw RangeError("String contains non-numeric characters");let e=[];for(let n=0;n<t.length;){let s=Math.min(t.length-n,3);r(parseInt(t.substr(n,s),10),3*s+1,e),n+=s}return new i(i.Mode.NUMERIC,t.length,e)}static makeAlphanumeric(t){let e;if(!i.isAlphanumeric(t))throw RangeError("String contains unencodable characters in alphanumeric mode");let n=[];for(e=0;e+2<=t.length;e+=2){let s=45*i.ALPHANUMERIC_CHARSET.indexOf(t.charAt(e));r(s+=i.ALPHANUMERIC_CHARSET.indexOf(t.charAt(e+1)),11,n)}return e<t.length&&r(i.ALPHANUMERIC_CHARSET.indexOf(t.charAt(e)),6,n),new i(i.Mode.ALPHANUMERIC,t.length,n)}static makeSegments(t){return""==t?[]:i.isNumeric(t)?[i.makeNumeric(t)]:i.isAlphanumeric(t)?[i.makeAlphanumeric(t)]:[i.makeBytes(i.toUtf8ByteArray(t))]}static makeEci(t){let e=[];
1if(t<0)throw RangeError("ECI assignment value out of range");if(t<128)r(t,8,e);else if(t<16384)r(2,2,e),r(t,14,e);else if(t<1e6)r(6,3,e),r(t,21,e);else throw RangeError("ECI assignment value out of range");return new i(i.Mode.ECI,0,e)}static isNumeric(t){return i.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return i.ALPHANUMERIC_REGEX.test(t)}getData(){return this.bitData.slice()}static getTotalBits(t,e){let r=0;for(let n of t){let t=n.mode.numCharCountBits(e);if(n.numChars>=1<<t)return 1/0;r+=4+t+n.bitData.length}return r}static toUtf8ByteArray(t){t=encodeURI(t);let e=[];for(let r=0;r<t.length;r++)"%"!=t.charAt(r)?e.push(t.charCodeAt(r)):(e.push(parseInt(t.substr(r+1,2),16)),r+=2);return e}},o=i;o.NUMERIC_REGEX=/^[0-9]*$/,o.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,o.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",t.QrSegment=o})(i||(i={})),(t=>{let e=class{constructor(t,e){this.ordinal=t,this.formatBits=e}};e.LOW=new e(0,1),e.MEDIUM=new e(1,0),e.QUARTILE=new e(2,3),e.HIGH=new e(3,2),t.Ecc=e})((n=i||(i={})).QrCode||(n.QrCode={})),(t=>{let e=class{constructor(t,e){this.modeBits=t,this.numBitsCharCount=e}numCharCountBits(t){return this.numBitsCharCount[Math.floor((t+7)/17)]}};e.NUMERIC=new e(1,[10,12,14]),e.ALPHANUMERIC=new e(2,[9,11,13]),e.BYTE=new e(4,[8,16,16]),e.KANJI=new e(8,[8,10,12]),e.ECI=new e(7,[0,0,0]),t.Mode=e})((s=i||(i={})).QrSegment||(s.QrSegment={}));var m=i,g={L:m.QrCode.Ecc.LOW,M:m.QrCode.Ecc.MEDIUM,Q:m.QrCode.Ecc.QUARTILE,H:m.QrCode.Ecc.HIGH};function E(t){let{value:e,size:r=128,level:n="L",bgColor:s="#FFFFFF",fgColor:i="#000000",includeMargin:l=!1,imageSettings:a}=t,u=f(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),h=m.QrCode.encodeText(e,g[n]).getModules(),c=l?4:0,E=h.length+2*c,p=function(t,e,r,n){if(null==n)return null;let s=t.length+2*(r?4:0),i=Math.floor(.1*e),o=s/e,l=(n.width||i)*o,a=(n.height||i)*o,u=null==n.x?t.length/2-l/2:n.x*o,h=null==n.y?t.length/2-a/2:n.y*o,c=null;if(n.excavate){let t=Math.floor(u),e=Math.floor(h);c={x:t,y:e,w:Math.ceil(l+u-t),h:Math.ceil(a+h-e)}}return{x:u,y:h,h:a,w:l,excavation:c}}(h,r,l,a),M=null;if(null!=a&&null!=p){if(null!=p.excavation){var R,C;R=h,C=p.excavation,h=R.slice().map((t,e)=>e<C.y||e>=C.y+C.h?t:t.map((t,e)=>(e<C.x||e>=C.x+C.w)&&t))}M=o.createElement("image",{xlinkHref:a.src,height:p.h,width:p.w,x:p.x+c,y:p.y+c,preserveAspectRatio:"none"})}let w=function(t,e=0){let r=[];return t.forEach(function(t,n){let s=null;t.forEach(function(i,o){if(!i&&null!==s){r.push(`M${s+e} ${n+e}h${o-s}v1H${s+e}z`),s=null;return}if(o===t.length-1){if(!i)return;null===s?r.push(`M${o+e},${n+e} h1v1H${o+e}z`):r.push(`M${s+e},${n+e} h${o+1-s}v1H${s+e}z`);return}i&&null===s&&(s=o)})}),r.join("")}(h,c);return o.createElement("svg",d({height:r,width:r,viewBox:`0 0 ${E} ${E}`},u),o.createElement("path",{fill:s,d:`M0,0 h${E}v${E}H0z`,shapeRendering:"crispEdges"}),o.createElement("path",{fill:i,d:w,shapeRendering:"crispEdges"}),M)}!function(){try{new Path2D().addPath(new Path2D)}catch(t){return!1}}()},41969:function(t,e,r){"use strict";r.d(e,{f:function(){return o}});var n=r(7896),s=r(2784),i=r(72714);let o=(0,s.forwardRef)((t,e)=>(0,s.createElement)(i.WV.span,(0,n.Z)({},t,{ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}})))},15612:function(t,e,r){"use strict";r.d(e,{u:function(){return u}});var n=r(41690),s=r(86239),i=r(81880),o=r(86651),l=r(87980);async function a(){try{l.X&&o.fF.log("Flushing events..."),await (0,s.yl)(2e3),l.X&&o.fF.log("Done flushing events")}catch(t){l.X&&o.fF.log("Error while flushing events:\n",t)}}async function u(t){let{req:e,res:r,err:o}=t,l=r?.statusCode||t.statusCode;if(l&&l<500||!t.pathname)return Promise.resolve();(0,n.$e)(t=>{if(e){let r=function(t){let e=t.headers||{},r=("string"==typeof e["x-forwarded-host"]?e["x-forwarded-host"]:void 0)||("string"==typeof e.host?e.host:void 0),n=("string"==typeof e["x-forwarded-proto"]?e["x-forwarded-proto"]:void 0)||t.protocol||(t.socket?.encrypted?"https":"http"),s=t.url||"",i=function({url:t,protocol:e,host:r}){return t?.startsWith("http")?t:t&&r?`${e}://${r}${t}`:void 0}({url:s,host:r,protocol:n}),o=t.body||void 0,l=t.cookies;return{url:i,method:t.method,query_string:function(t){if(t)try{let e=new URL(t,"http://s.io").search.slice(1);return e.length?e:void 0}catch{return}}(s),headers:function(t){let e=Object.create(null);try{Object.entries(t).forEach(([t,r])=>{"string"==typeof r&&(e[t]=r)})}catch{}return e}(e),cookies:l,data:o}}(e);t.setSDKProcessingMetadata({normalizedRequest:r})}
1(0,s.Tb)(o||`_error.js called with falsy error (${o})`,{mechanism:{type:"instrument",handled:!1,data:{function:"_error.getInitialProps"}}})}),function(t){let e=i.GLOBAL_OBJ[Symbol.for("@vercel/request-context")],r=e?.get?.();r?.waitUntil&&r.waitUntil(t)}(a())}},62350:function(t,e,r){"use strict";r.d(e,{D:function(){return d}});var n=r(2784),s=r(36370),i=r(96278),o=r(3709),l=r(22436);class a extends l.l{constructor(t,e){super(),this.client=t,this.setOptions(e),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var e;let r=this.options;this.options=this.client.defaultMutationOptions(t),(0,s.VS)(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(e=this.currentMutation)||e.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.currentMutation)||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();let e={listeners:!0};"success"===t.type?e.onSuccess=!0:"error"===t.type&&(e.onError=!0),this.notify(e)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,e){return this.mutateOptions=e,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==t?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let t=this.currentMutation?this.currentMutation.state:(0,i.R)(),e={...t,isLoading:"loading"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset};this.currentResult=e}notify(t){o.V.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var e,r,n,s,i,o,l,a;t.onSuccess?(null==(e=(r=this.mutateOptions).onSuccess)||e.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(n=(s=this.mutateOptions).onSettled)||n.call(s,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):t.onError&&(null==(i=(o=this.mutateOptions).onError)||i.call(o,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(l=(a=this.mutateOptions).onSettled)||l.call(a,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}t.listeners&&this.listeners.forEach(({listener:t})=>{t(this.currentResult)})})}}var u=r(29930),h=r(55830),c=r(99189);function d(t,e,r){let i=(0,s.lV)(t,e,r),l=(0,h.NL)({context:i.context}),[d]=n.useState(()=>new a(l,i));n.useEffect(()=>{d.setOptions(i)},[d,i]);let m=(0,u.$)(n.useCallback(t=>d.subscribe(o.V.batchCalls(t)),[d]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),g=n.useCallback((t,e)=>{d.mutate(t,e).catch(f)},[d]);if(m.error&&(0,c.L)(d.options.useErrorBoundary,[m.error]))throw m.error;return{...m,mutate:g,mutateAsync:m.mutate}}function f(){}}}]);
2//# sourceMappingURL=620-587a87f04bfeede4.js.map

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.