var__create=Object.create,__defProp=Object.defineProperty,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__getOwnPropNames=Object.getOwnPropertyNames,__getOwnPropDesc=Object.getOwnPropertyDescriptor;var__markAsModule=target=>__defProp(target,"__esModule",{value:!0});var__commonJS=(callback,module)=>()=>(module||(module={exports:{}},callback(module.exports,module)),module.exports),__export=(target,all)=>{__markAsModule(target);for(varnameinall)__defProp(target,name,{get:all[name],enumerable:!0})},__exportStar=(target,module,desc)=>{if(__markAsModule(target),module&&typeofmodule=="object"||typeofmodule=="function")for(letkeyof__getOwnPropNames(module))!__hasOwnProp.call(target,key)&&key!=="default"&&__defProp(target,key,{get:()=>module[key],enumerable:!(desc=__getOwnPropDesc(module,key))||desc.enumerable});returntarget},__toModule=module=>module&&module.__esModule?module:__exportStar(__defProp(module!=null?__create(__getProtoOf(module)):{},"default",{value:module,enumerable:!0}),module);import*asdist_starfrom"@tensorflow/tfjs/dist/index.js";import*astfjs_backend_wasm_starfrom"@tensorflow/tfjs-backend-wasm";varrequire_tfjs_esm=__commonJS(exports=>{__exportStar(exports,dist_star);__exportStar(exports,tfjs_backend_wasm_star)});varrequire_isNodejs=__commonJS((exports,module)=>{__export(exports,{isNodejs:()=>isNodejs2});functionisNodejs2(){returntypeofglobal=="object"&&!0&&typeofmodule!="undefined"&&typeofprocess!="undefined"&&!!process.version}});vartf42=__toModule(require_tfjs_esm());vardraw_exports={};__export(draw_exports,{AnchorPosition:()=>AnchorPosition,DrawBox:()=>DrawBox,DrawBoxOptions:()=>DrawBoxOptions,DrawFaceLandmarks:()=>DrawFaceLandmarks,DrawFaceLandmarksOptions:()=>DrawFaceLandmarksOptions,DrawTextField:()=>DrawTextField,DrawTextFieldOptions:()=>DrawTextFieldOptions,drawContour:()=>drawContour,drawDetections:()=>drawDetections,drawFaceExpressions:()=>drawFaceExpressions,drawFaceLandmarks:()=>drawFaceLandmarks});functiondrawContour(ctx,points,isClosed=!1){if(ctx.beginPath(),points.slice(1).forEach(({x,y},prevIdx)=>{letfrom=points[prevIdx];ctx.moveTo(from.x,from.y),ctx.lineTo(x,y)}),isClosed){letfrom=points[points.length-1],to=points[0];if(!from||!to)return;ctx.moveTo(from.x,from.y),ctx.lineTo(to.x,to.y)}ctx.stroke()}varutils_exports={};__export(utils_exports,{computeReshapedDimensions:()=>computeReshapedDimensions,getCenterPoint:()=>getCenterPoint,isDimensions:()=>isDimensions,isEven:()=>isEven,isFloat:()=>isFloat,isTensor:()=>isTensor,isTensor1D:()=>isTensor1D,isTensor2D:()=>isTensor2D,isTensor3D:()=>isTensor3D,isTensor4D:()=>isTensor4D,isValidNumber:()=>isValidNumber,isValidProbablitiy:()=>isValidProbablitiy,range:()=>range,round:()=>round});vartf=__toModule(require_tfjs_esm());varDimensions=class{constructor(width,height){if(!isValidNumber(width)||!isValidNumber(height))thrownewError(`Dimensions.constructor - expected width and height to be valid numbers, instead have ${JSON.stringify({width,height})}`);this._width=width,this._height=height}getwidth(){returnthis._width}getheight(){returnthis._height}reverse(){returnnewDimensions(1/this.width,1/this.height)}};functionisTensor(tensor2,dim){returntensor2instanceoftf.Tensor&&tensor2.shape.length===dim}functionisTensor1D(tensor2){returnisTensor(tensor2,1)}functionisTensor2D(tensor2){returnisTensor(tensor2,2)}functionisTensor3D(tensor2){returnisTensor(tensor2,3)}functionisTensor4D(tensor2){returnisTensor(tensor2,4)}functionisFloat(num){returnnum%1!=0}functionisEven(num){returnnum%2==0}functionround(num,prec=2){letf=10**prec;returnMath.floor(num*f)/f}functionisDimensions(obj){returnobj&&obj.width&&obj.height}functioncomputeReshapedDimensions({width,height},inputSize){letscale2=inputSize/Math.max(height,width);returnnewDimensions(Math.round(width*scale2),Math.round(height*scale2))}functiongetCenterPoint(pts){returnpts.reduce((sum,pt)=>sum.add(pt),newPoint(0,0)).div(newPoint(pts.length,pts.length))}functionrange(num,start,step){returnArray(num).fill(0).map((_,i)=>sta