PageSourceSearch

https://www.quiversurf.app/_next/static/immutable/chunks/02h8knm--7lm2.js

js quiversurf.app collected 2026-09-25 03:27:46 UTC 19,333 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="d7b422e2-b7a7-4ccf-ffe7-ad58c71f855d")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,633980,e=>{"use strict";var t,r=e.i(558249),n=e.i(340683),i=e.i(154520),a=((t={}).Surf="surf",t.WaterTemp="water_temp",t.Tide="tide",t.WaterQuality="water_quality",t.Wind="wind",t.General="general",t);let o=["beach_follow_started","beach_follow_saved_local","beach_follow_sync_started","beach_follow_sync_completed","follow_topic_changed","visitor_intent_selected","surf_intent_qualified","my_coast_viewed","my_coast_beach_opened"];Object.values(a);let l=["audience_class","page_type","experiment_key","experiment_arm"];[...l],[...l];let s=new Set(["source","_platform","app_version","expo_update_id","expo_channel","expo_runtime_version","expo_is_embedded_launch","expo_is_emergency_launch","is_emulator","launch_primer_session_id"]);[...s],[...s],[...o],[...o],Object.values({message_activated:"alert_message_activated",app_returned:"alert_app_returned",return_to_decision:"alert_return_to_decision",decision_action:"alert_decision_action"});let h="app_handoff_link_opened",u=new Set(["handoff_id","source","handoff_context","surface","placement"]),c=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/,d=new Set(["exact_call"]),f=new Set(["beach_detail","beach_water_temp","city_water_temp","my_coast","other"]);function m(e,t){try{fetch("/api/events",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({eventType:e,metadata:t,sessionId:(0,i.getVisitorId)(),viewportWidth:window.innerWidth}),keepalive:!0}).catch(()=>{})}catch{}}function g(e,t){let i;if("exact_call"!==t.source){try{var a;a={viewport_width:window.innerWidth,...t},i={cta_family:"app_handoff",...(0,n.deriveSeoPageContextFromPath)(),...a}}catch{return}try{(0,r.track)(e,i)}catch{}m(e,i)}}e.s(["trackAppHandoffEmailFailed",0,e=>g("app_handoff_email_failed",{handoff_channel:"email",...e}),"trackAppHandoffEmailSent",0,e=>g("app_handoff_email_sent",{handoff_channel:"email",...e}),"trackAppHandoffEmailSubmit",0,e=>g("app_handoff_email_submit",{handoff_channel:"email",...e}),"trackAppHandoffQrRendered",0,e=>g("app_handoff_qr_rendered",{handoff_channel:"qr",...e}),"trackAppHandoffView",0,e=>g("app_handoff_view",e),"trackExactCallHandoffLinkOpened",0,e=>(function(e){let t,n="string"==typeof(t=Object.fromEntries(Object.entries(e).filter(([e])=>u.has(e)))).handoff_id&&c.test(t.handoff_id)&&"exact_call"===t.source&&"string"==typeof t.handoff_context&&d.has(t.handoff_context)&&(void 0===t.surface||"string"==typeof t.surface&&f.has(t.surface))&&(void 0===t.placement||"string"==typeof t.placement&&"exact_call"===t.placement)?t:null;if(n){try{(0,r.track)(h,n)}catch{}m(h,n)}})(e)],633980)},928835,e=>{"use strict";let t,r;var n,i,a,o,l,s=e.i(271645),h=Object.defineProperty,u=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,f=(e,t,r)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,m=(e,t)=>{for(var r in t||(t={}))c.call(t,r)&&f(e,r,t[r]);if(u)for(var r of u(t))d.call(t,r)&&f(e,r,t[r]);return e},g=(e,t)=>{var r={};for(var n in e)c.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&u)for(var n of u(e))0>t.indexOf(n)&&d.call(e,n)&&(r[n]=e[n]);return r};(e=>{let t=class t{constructor(e,r,n,a){if(this.version=e,this.errorCorrectionLevel=r,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw RangeError("Version value out of range");if(a<-1||a>7)throw RangeError("Mask value out of range");this.size=4*e+17;let o=[];for(let e=0;e<this.size;e++)o.push(!1);for(let e=0;e<this.size;e++)this.modules.push(o.slice()),this.isFunction.push(o.slice());this.drawFunctionPatterns();const l=this.addEccAndInterleave(n);if(this.drawCodewords(l),-1==a){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const r=this.getPenaltyScore();r<e&&(a=t,e=r),this.applyMask(t)}}i(0<=a&&a<=7),this.mask=a,this.applyMask(a),this.drawFormatBits(a),this.isFunction=[]}static encodeText(r,n){let i=e.QrSegment.makeSegments(r);return t.encodeSegments(i,n)}static encodeBinary(r,n){let i=e.QrSegment.makeBytes(r);return t.encodeSegments([i],n)}static encodeSegments(e,n,a=1,l=40,s=-1,h=!0){let u,c;if(!(t.MIN_VERSION<=a&&a<=l&&l<=t.MAX_VERSION)||s<-1||s>7)throw RangeError("Invalid value");for(u=a;;u++){let r=8*t.getNumDataCodewords(u,n),i=o.getTotalBits(e,u);if(i<=r){c=i;break}if(u>=l)throw RangeError("Data too long")}for(let e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])h&&c<=8*t.getNumDataCodewords(u,e)&&(n=e);let d=[];for(let t of e)for(let e of(r(t.mode.modeBits,4,d),r(t.numChars,t.mode.numCharCountBits(u),d),t.getData()))d.push(e);i(d.length==c);let f=8*t.getNumDataCodewords(u,n);i(d.length<=f),r(0,Math.min(4,f-d.length),d),r(0,(8-d.length%8)%8,d),i(d.length%8==0);for(let e=236;d.length<f;e^=253)r(e,8,d);let m=[];for(;8*m.length<d.length;)m.push(0);return d.forEach((e,t)=>m[t>>>3]|=e<<7-(7&t)),new t(u,n,m,s)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let e=this.getAlignmentPatternPositions(),t=e.length;for(let r=0;r<t;r++)for(let n=0;n<t;n++)(0!=r||0!=n)&&(0!=r||n!=t-1)&&(r!=t-1||0!=n)&&this.drawAlignmentPattern(e[r],e[n]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){let t=this.errorCorrectionLevel.formatBits<<3|e,r=t;for(let e=0;e<10;e++)r=r<<1^(r>>>9)*1335;let a=(t<<10|r)^21522;i(a>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,n(a,e));this.setFunctionModule(8,7,n(a,6)),this.setFunctionModule(8,8,n(a,7)),this.setFunctionModule(7,8,n(a,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,n(a,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,n(a,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,n(a,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;i(t>>>18==0);for(let e=0;e<18;e++){let r=n(t,e),i=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(i,a,r),this.setFunctionModule(a,i,r)}}drawFinderPattern(e,t){for(let r=-4;r<=4;r++)for(let n=-4;n<=4;n++){let i=Math.max(Math.abs(n),Math.abs(r)),a=e+n,o=t+r;0<=a&&a<this.size&&0<=o&&o<this.size&&this.setFunctionModule(a,o,2!=i&&4!=i)}}drawAlignmentPattern(e,t){for(let r=-2;r<=2;r++)for(let n=-2;n<=2;n++)this.setFunctionModule(e+n,t+r,1!=Math.max(Math.abs(n),Math.abs(r)))}setFunctionModule(e,t,r){this.modules[t][e]=r,this.isFunction[t][e]=!0}addEccAndInterleave(e){let r=this.version,n=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(r,n))throw RangeError("Invalid argument");let a=t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][r],o=t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][r],l=Math.floor(t.getNumRawDataModules(r)/8),s=a-l%a,h=Math.floor(l/a),u=[],c=t.reedSolomonComputeDivisor(o);for(let r=0,n=0;r<a;r++){let i=e.slice(n,n+h-o+(r<s?0:1));n+=i.length;let a=t.reedSolomonComputeRemainder(i,c);r<s&&i.push(0),u.push(i.concat(a))}let d=[];for(let e=0;e<u[0].length;e++)u.forEach((t,r)=>{(e!=h-o||r>=s)&&d.push(t[e])});return i(d.length==l),d}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw RangeError("Invalid argument");let r=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let i=0;i<this.size;i++)for(let a=0;a<2;a++){let o=t-a,l=(t+1&2)==0?this.size-1-i:i;!this.isFunction[l][o]&&r<8*e.length&&(this.modules[l][o]=n(e[r>>>3],7-(7&r)),r++)}}i(r==8*e.length)}applyMask(e){if(e<0||e>7)throw RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let r=0;r<this.size;r++){let n;switch(e){case 0:n=(r+t)%2==0;break;case 1:n=t%2==0;break;case 2:n=r%3==0;break;case 3:n=(r+t)%3==0;break;case 4:n=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:n=r*t%2+r*t%3==0;break;case 6:n=(r*t%2+r*t%3)%2==0;break;case 7:n=((r+t)%2+r*t%3)%2==0;break;default:throw Error("Unreachable")}!this.isFunction[t][r]&&n&&(this.modules[t][r]=!this.modules[t][r])}}getPenaltyScore(){let e=0;for(let r=0;r<this.size;r++){let n=!1,i=0,a=[0,0,0,0,0,0,0];for(let o=0;o<this.size;
vendor: 7,094 bytes, line 2
2o++)this.modules[r][o]==n?5==++i?e+=t.PENALTY_N1:i>5&&e++:(this.finderPenaltyAddHistory(i,a),n||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),n=this.modules[r][o],i=1);e+=this.finderPenaltyTerminateAndCount(n,i,a)*t.PENALTY_N3}for(let r=0;r<this.size;r++){let n=!1,i=0,a=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[o][r]==n?5==++i?e+=t.PENALTY_N1:i>5&&e++:(this.finderPenaltyAddHistory(i,a),n||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),n=this.modules[o][r],i=1);e+=this.finderPenaltyTerminateAndCount(n,i,a)*t.PENALTY_N3}for(let r=0;r<this.size-1;r++)for(let n=0;n<this.size-1;n++){let i=this.modules[r][n];i==this.modules[r][n+1]&&i==this.modules[r+1][n]&&i==this.modules[r+1][n+1]&&(e+=t.PENALTY_N2)}let r=0;for(let e of this.modules)r=e.reduce((e,t)=>e+ +!!t,r);let n=this.size*this.size,a=Math.ceil(Math.abs(20*r-10*n)/n)-1;return i(0<=a&&a<=9),i(0<=(e+=a*t.PENALTY_N4)&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{let e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2)),r=[6];for(let n=this.size-7;r.length<e;n-=t)r.splice(1,0,n);return r}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw RangeError("Version number out of range");let r=(16*e+128)*e+64;if(e>=2){let t=Math.floor(e/7)+2;r-=(25*t-10)*t-55,e>=7&&(r-=36)}return i(208<=r&&r<=29648),r}static getNumDataCodewords(e,r){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw RangeError("Degree out of range");let r=[];for(let t=0;t<e-1;t++)r.push(0);r.push(1);let n=1;for(let i=0;i<e;i++){for(let e=0;e<r.length;e++)r[e]=t.reedSolomonMultiply(r[e],n),e+1<r.length&&(r[e]^=r[e+1]);n=t.reedSolomonMultiply(n,2)}return r}static reedSolomonComputeRemainder(e,r){let n=r.map(e=>0);for(let i of e){let e=i^n.shift();n.push(0),r.forEach((r,i)=>n[i]^=t.reedSolomonMultiply(r,e))}return n}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw RangeError("Byte out of range");let r=0;for(let n=7;n>=0;n--)r=r<<1^(r>>>7)*285^(t>>>n&1)*e;return i(r>>>8==0),r}finderPenaltyCountPatterns(e){let t=e[1];i(t<=3*this.size);let r=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(r&&e[0]>=4*t&&e[6]>=t?1:0)+(r&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};function r(e,t,r){if(t<0||t>31||e>>>t!=0)throw RangeError("Value out of range");for(let n=t-1;n>=0;n--)r.push(e>>>n&1)}function n(e,t){return(e>>>t&1)!=0}function i(e){if(!e)throw Error("Assertion error")}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.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]],t.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]],e.QrCode=t;let a=class e{constructor(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw RangeError("Invalid argument");this.bitData=r.slice()}static makeBytes(t){let n=[];for(let e of t)r(e,8,n);return new e(e.Mode.BYTE,t.length,n)}static makeNumeric(t){if(!e.isNumeric(t))throw RangeError("String contains non-numeric characters");let n=[];for(let e=0;e<t.length;){let i=Math.min(t.length-e,3);r(parseInt(t.substring(e,e+i),10),3*i+1,n),e+=i}return new e(e.Mode.NUMERIC,t.length,n)}static makeAlphanumeric(t){let n;if(!e.isAlphanumeric(t))throw RangeError("String contains unencodable characters in alphanumeric mode");let i=[];for(n=0;n+2<=t.length;n+=2){let a=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n));r(a+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n+1)),11,i)}return n<t.length&&r(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n)),6,i),new e(e.Mode.ALPHANUMERIC,t.length,i)}static makeSegments(t){return""==t?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}static makeEci(t){let n=[];if(t<0)throw RangeError("ECI assignment value out of range");if(t<128)r(t,8,n);else if(t<16384)r(2,2,n),r(t,14,n);else if(t<1e6)r(6,3,n),r(t,21,n);else throw RangeError("ECI assignment value out of range");return new e(e.Mode.ECI,0,n)}static isNumeric(t){return e.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return e.ALPHANUMERIC_REGEX.test(t)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let r=0;for(let n of e){let e=n.mode.numCharCountBits(t);if(n.numChars>=1<<e)return 1/0;r+=4+e+n.bitData.length}return r}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let r=0;r<e.length;r++)"%"!=e.charAt(r)?t.push(e.charCodeAt(r)):(t.push(parseInt(e.substring(r+1,r+3),16)),r+=2);return t}};a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let o=a;e.QrSegment=a})(l||(l={})),i=(n=l||(l={})).QrCode||(n.QrCode={}),(t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}}).LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2),i.Ecc=t,o=(a=l||(l={})).QrSegment||(a.QrSegment={}),(r=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}}).NUMERIC=new r(1,[10,12,14]),r.ALPHANUMERIC=new r(2,[9,11,13]),r.BYTE=new r(4,[8,16,16]),r.KANJI=new r(8,[8,10,12]),r.ECI=new r(7,[0,0,0]),o.Mode=r;var p=l,_={L:p.QrCode.Ecc.LOW,M:p.QrCode.Ecc.MEDIUM,Q:p.QrCode.Ecc.QUARTILE,H:p.QrCode.Ecc.HIGH},E="#FFFFFF",w="#000000";function M(e,t=0){let r=[];return e.forEach(function(e,n){let i=null;e.forEach(function(a,o){if(!a&&null!==i){r.push(`M${i+t} ${n+t}h${o-i}v1H${i+t}z`),i=null;return}if(o===e.length-1){if(!a)return;null===i?r.push(`M${o+t},${n+t} h1v1H${o+t}z`):r.push(`M${i+t},${n+t} h${o+1-i}v1H${i+t}z`);return}a&&null===i&&(i=o)})}),r.join("")}function C(e,t){return e.slice().map((e,r)=>r<t.y||r>=t.y+t.h?e:e.map((e,r)=>(r<t.x||r>=t.x+t.w)&&e))}function y({value:e,level:t,minVersion:r,includeMargin:n,marginSize:i,imageSettings:a,size:o,boostLevel:l}){let h=s.default.useMemo(()=>{let n=(Array.isArray(e)?e:[e]).reduce((e,t)=>
2(e.push(...p.QrSegment.makeSegments(t)),e),[]);return p.QrCode.encodeSegments(n,_[t],r,void 0,void 0,l)},[e,t,r,l]),{cells:u,margin:c,numCells:d,calculatedImageSettings:f}=s.default.useMemo(()=>{let e=h.getModules(),t=null!=i?Math.max(Math.floor(i),0):4*!!n,r=e.length+2*t,l=function(e,t,r,n){if(null==n)return null;let i=e.length+2*r,a=Math.floor(.1*t),o=i/t,l=(n.width||a)*o,s=(n.height||a)*o,h=null==n.x?e.length/2-l/2:n.x*o,u=null==n.y?e.length/2-s/2:n.y*o,c=null==n.opacity?1:n.opacity,d=null;if(n.excavate){let e=Math.floor(h),t=Math.floor(u),r=Math.ceil(l+h-e),n=Math.ceil(s+u-t);d={x:e,y:t,w:r,h:n}}return{x:h,y:u,h:s,w:l,excavation:d,opacity:c,crossOrigin:n.crossOrigin}}(e,o,t,a);return{cells:e,margin:t,numCells:r,calculatedImageSettings:l}},[h,o,a,n,i]);return{qrcode:h,margin:c,cells:u,numCells:d,calculatedImageSettings:f}}var R=function(){try{new Path2D().addPath(new Path2D)}catch(e){return!1}return!0}();s.default.forwardRef(function(e,t){let{value:r,size:n=128,level:i="L",bgColor:a=E,fgColor:o=w,includeMargin:l=!1,minVersion:h=1,boostLevel:u,marginSize:c,imageSettings:d}=e,f=g(e,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:p}=f,_=g(f,["style"]),v=null==d?void 0:d.src,A=s.default.useRef(null),N=s.default.useRef(null),P=s.default.useCallback(e=>{A.current=e,"function"==typeof t?t(e):t&&(t.current=e)},[t]),[S,O]=s.default.useState(!1),{margin:b,cells:I,numCells:L,calculatedImageSettings:k}=y({value:r,level:i,minVersion:h,boostLevel:u,includeMargin:l,marginSize:c,imageSettings:d,size:n});s.default.useEffect(()=>{if(null!=A.current){let e=A.current,t=e.getContext("2d");if(!t)return;let r=I,i=N.current,l=null!=k&&null!==i&&i.complete&&0!==i.naturalHeight&&0!==i.naturalWidth;l&&null!=k.excavation&&(r=C(I,k.excavation));let s=window.devicePixelRatio||1;e.height=e.width=n*s;let h=n/L*s;t.scale(h,h),t.fillStyle=a,t.fillRect(0,0,L,L),t.fillStyle=o,R?t.fill(new Path2D(M(r,b))):I.forEach(function(e,r){e.forEach(function(e,n){e&&t.fillRect(n+b,r+b,1,1)})}),k&&(t.globalAlpha=k.opacity),l&&t.drawImage(i,k.x+b,k.y+b,k.w,k.h)}}),s.default.useEffect(()=>{O(!1)},[v]);let x=m({height:n,width:n},p),F=null;return null!=v&&(F=s.default.createElement("img",{src:v,key:v,style:{display:"none"},onLoad:()=>{O(!0)},ref:N,crossOrigin:null==k?void 0:k.crossOrigin})),s.default.createElement(s.default.Fragment,null,s.default.createElement("canvas",m({style:x,height:n,width:n,ref:P,role:"img"},_)),F)}).displayName="QRCodeCanvas";var v=s.default.forwardRef(function(e,t){let{value:r,size:n=128,level:i="L",bgColor:a=E,fgColor:o=w,includeMargin:l=!1,minVersion:h=1,boostLevel:u,title:c,marginSize:d,imageSettings:f}=e,p=g(e,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:_,cells:R,numCells:v,calculatedImageSettings:A}=y({value:r,level:i,minVersion:h,boostLevel:u,includeMargin:l,marginSize:d,imageSettings:f,size:n}),N=R,P=null;null!=f&&null!=A&&(null!=A.excavation&&(N=C(R,A.excavation)),P=s.default.createElement("image",{href:f.src,height:A.h,width:A.w,x:A.x+_,y:A.y+_,preserveAspectRatio:"none",opacity:A.opacity,crossOrigin:A.crossOrigin}));let S=M(N,_);return s.default.createElement("svg",m({height:n,width:n,viewBox:`0 0 ${v} ${v}`,ref:t,role:"img"},p),!!c&&s.default.createElement("title",null,c),s.default.createElement("path",{fill:a,d:`M0,0 h${v}v${v}H0z`,shapeRendering:"crispEdges"}),s.default.createElement("path",{fill:o,d:S,shapeRendering:"crispEdges"}),P)});v.displayName="QRCodeSVG",e.s(["QRCodeSVG",0,v])}]);
3
4//# debugId=d7b422e2-b7a7-4ccf-ffe7-ad58c71f855d

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.