1(()=>{"use strict";let e,t,n,r,a,i,s,o,f,l;var u={},c={};function h(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={exports:{}};return u[e](n,n.exports,h),n.exports}h.rv=()=>"1.7.11",h.ruid="[email protected]";let g=(...e)=>{},d={debug:g,trace:g,warn:g,info:g,error:g,log:g},b=["debug","trace"],p=new WeakSet,w={...d,setDebugOutput:e=>{b.forEach(t=>{e?_(t):Object.defineProperty(w,t,{get:function(){return()=>{}}})})},logAndSetupEvents:(e,t,n,r=null)=>{if(!p.has(e))for(let[a,i]of(p.add(e),Object.entries(t))){let t=r?`${r}:${a}`:a,s=(...e)=>{if(w.debug(t,e),i)return i.apply(n,e)};e.on(a,s)}}},_=e=>{Object.defineProperty(w,e,{get:function(){return self.console[e].bind(self.console,"[%s]",new Date().toISOString().substring(11))}})};Object.keys(d).forEach(_);let v="OffscreenCanvas"in self;(self.CanvasRenderingContext2D||self.OffscreenCanvasRenderingContext2D||Object).prototype;let m=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,39
16,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],x=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];class y{constructor(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class I{get canvas(){return this._canvas}get width(){return this._canvas.width}get height(){return this._canvas.height}resize(e){this._context.drawImage(e,0,0,e.width,e.height,0,0,this._canvas.width,this._canvas.height);let{data:t}=this._context.getImageData(0,0,this._canvas.width,this._canvas.height);return t}loadMask(e){this._context.putImageData(new ImageData(e,this._canvas.width),0,0)}constructor(e,t){if(O(this,"_isWebWorker","function"==typeof importScripts),O(this,"_canvas",void 0),v)this._canvas=new OffscreenCanvas(e,t);else if(this._isWebWorker)throw Error("WebWorker");this._canvas||(this._canvas=document.createElement("canvas"),this._canvas.width=e,this._canvas.height=t),this._context=function(e,{alpha:t=!0,imageSmoothing:n=!1,willReadFrequently:r=!1}={}){let a=e.getContext("2d",{alpha:t,willReadFrequently:r,desynchronized:!1});return a.imageSmoothingEnabled=n,a.imageSmoothingQuality="low",a}(this._canvas,{imageSmoothing:!0,willReadFrequently:!0})}}let M=fetch;async function C(f,l,u){e||("patched"in self||(self.patched=!0,self.fetch=(e,t)=>(e.includes("/")||(e=new URL(e,l).href),M(e,t))),importScripts(l),e=f?await createTFLiteSIMDModule():await createTFLiteModule(),await k(u),r=e._getInputMemoryOffset()/4,a=e._getOutputMemoryOffset()/4,i=e._getInputWidth(),s=e._getInputHeight(),o=i*s,t=e.HEAPF32.subarray(r),n=e.HEAPF32.subarray(a),w.debug(`Input@${r}:`,[i,s,e._getInputChannelCount()].join("x")),w.debug(`Output@${a}:`,[e._getOutputWidth(),e._getOutputHeight(),e._getOutputChannelCount()].join("x")))}async function k(t){let n=await fetch(t),r=await n.arrayBuffer();w.debug("Model buffer size:",r.byteLength);let a=e._getModelBufferMemoryOffset();e.HEAPU8.set(new Uint8Array(r),a);let i=e._loadModel(r.byteLength);if(w.debug("Model loaded:",0===i?"ok":"err"),0!==i)throw Error("BlurEffect not supported! (Model failure)")}self.onmessage=function(r){var a;switch(null==(a=r.data)?void 0:a.id){case 1:return(({simd:e,tfscript:t,tfmodel:n})=>C(e,new URL(t,location.origin).href,new URL(n,location.origin).href).then(()=>{f=new I(i,s)}).then(()=>self.postMessage({id:2,info:{segmentationWidth:i,segmentationHeight:s}}),e=>self.postMessage({id:3,error:e.message})))(r.data);case 10:return(({blurRadius:r,bitmap:a,returnRawMask:u})=>{let c=performance.now(),h={};if(a){var g,d;let c=f.resize(a);h.buffer=function(r,a){for(let e=0;e<o;e++)t[3*e+0]=r[4*e+0]/255,t[3*e+1]=r[4*e+1]/255,t[3*e+2]=r[4*e+2]/255;if(e._runInference(),a)return n.slice(0,o);let i=new Uint8ClampedArray(l||r.byteLength);for(let e=0;e<o;e++)i[4*e+3]=i[4*e+3]*self._feedback+255*(1-n[e]);return l=new Uint8ClampedArray(i),i}(c,u).buffer,h.bitmap=a,r&&(h.bgBuffer=(g=c,d=r,function(e,t,n,r){let a,i,s,o=e.data,f=2*r+1,l=t-1,u=n-1,c=r+1,h=c*(c+1)/2,g=new y,d=g;for(let e=1;e<f;e++)d=d.next=new y,e===c&&(a=d);d.next=g;let b=null,p=null,w=m[r],_=x[r],v=0,O=0;for(let e=0;e<n;e++){let e=o[O],n=o[O+1],f=o[O+2],u=c*e,m=c*n,x=c*f,y=h*e,I=h*n,M=h*f;d=g;
1for(let t=0;t<c;t++)d.r=e,d.g=n,d.b=f,d=d.next;let C=0,k=0,E=0;for(let t=1;t<c;t++)i=O+((l<t?l:t)<<2),y+=(d.r=e=o[i])*(s=c-t),I+=(d.g=n=o[i+1])*s,M+=(d.b=f=o[i+2])*s,C+=e,k+=n,E+=f,d=d.next;b=g,p=a;for(let a=0;a<t;a++)o[O]=y*w>>_,o[O+1]=I*w>>_,o[O+2]=M*w>>_,y-=u,I-=m,M-=x,u-=b.r,m-=b.g,x-=b.b,i=v+((i=a+r+1)<l?i:l)<<2,C+=b.r=o[i],k+=b.g=o[i+1],E+=b.b=o[i+2],y+=C,I+=k,M+=E,b=b.next,u+=e=p.r,m+=n=p.g,x+=f=p.b,C-=e,k-=n,E-=f,p=p.next,O+=4;v+=t}for(let e=0;e<t;e++){let f=o[O=e<<2],l=o[O+1],v=o[O+2],m=c*f,x=c*l,y=c*v,I=h*f,M=h*l,C=h*v;d=g;for(let e=0;e<c;e++)d.r=f,d.g=l,d.b=v,d=d.next;let k=0,E=0,D=0;for(let n=1,a=t;n<=r;n++)O=a+e<<2,I+=(d.r=f=o[O])*(s=c-n),M+=(d.g=l=o[O+1])*s,C+=(d.b=v=o[O+2])*s,k+=f,E+=l,D+=v,d=d.next,n<u&&(a+=t);O=e,b=g,p=a;for(let r=0;r<n;r++)o[i=O<<2]=I*w>>_,o[i+1]=M*w>>_,o[i+2]=C*w>>_,I-=m,M-=x,C-=y,m-=b.r,x-=b.g,y-=b.b,i=e+((i=r+c)<u?i:u)*t<<2,I+=k+=b.r=o[i],M+=E+=b.g=o[i+1],C+=D+=b.b=o[i+2],b=b.next,m+=f=p.r,x+=l=p.g,y+=v=p.b,k-=f,E-=l,D-=v,p=p.next,O+=t}return e}(new ImageData(g,i),i,s,d).data).buffer)}h.inference=performance.now()-c,self.postMessage({id:11,...h},[h.buffer,h.bgBuffer,h.bitmap].filter(Boolean))})(r.data);case 4:l=null;break;default:w.error("INVALID",r.data)}},self._feedback=.4})(); 2//# sourceMappingURL=8306-65bc9be61e0107ad.chunk.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.