PageSourceSearch

https://s-fit-ai.vercel.app/_next/static/chunks/5356.adffe16d7cff4dc1.js

js s-fit-ai.vercel.app collected 2026-10-03 07:39:32 UTC 135,878 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5356],{5356:(t,e,r)=>{let n,i,s,o,a,h,u,l,c,f,d,p,g,m;r.d(e,{Pi:()=>aR,Ps:()=>sD,_l:()=>oH});var y="u">typeof self?self:{};function _(){throw Error("Invalid UTF8")}function v(t,e){return e=String.fromCharCode.apply(null,e),null==t?e:t+e}let E="u">typeof TextDecoder,w="u">typeof TextEncoder;function T(t){if(w)t=(s||=new TextEncoder).encode(t);else{let r=0,n=new Uint8Array(3*t.length);for(let i=0;i<t.length;i++){var e=t.charCodeAt(i);if(e<128)n[r++]=e;else{if(e<2048)n[r++]=e>>6|192;else{if(e>=55296&&e<=57343){if(e<=56319&&i<t.length){let s=t.charCodeAt(++i);if(s>=56320&&s<=57343){e=1024*(e-55296)+s-56320+65536,n[r++]=e>>18|240,n[r++]=e>>12&63|128,n[r++]=e>>6&63|128,n[r++]=63&e|128;continue}i--}e=65533}n[r++]=e>>12|224,n[r++]=e>>6&63|128}n[r++]=63&e|128}}t=r===n.length?n:n.subarray(0,r)}return t}t:{for(var b=["CLOSURE_FLAGS"],A=y,k=0;k<b.length;k++)if(null==(A=A[b[k]])){S=null;break t}S=A}var x,S,L,R=S&&S[0x2461fc15];x=null!=R&&R;let F=y.navigator;function I(t){return!!x&&!!L&&L.brands.some(({brand:e})=>e&&-1!=e.indexOf(t))}function M(t){var e;return(e=y.navigator)&&(e=e.userAgent)||(e=""),-1!=e.indexOf(t)}function P(){return!!x&&!!L&&L.brands.length>0}function C(){return P()?I("Chromium"):(M("Chrome")||M("CriOS"))&&!(!P()&&M("Edge"))||M("Silk")}function O(t){return O[" "](t),t}L=F&&F.userAgentData||null,O[" "]=function(){};var U=!P()&&(M("Trident")||M("MSIE"));M("Android")&&C(),C(),M("Safari")&&(C()||!P()&&M("Coast")||!P()&&M("Opera")||!P()&&M("Edge")||(P()?I("Microsoft Edge"):M("Edg/"))||P()&&I("Opera"));var D={},N=null;function B(){if(!N){N={};var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"];for(let r=0;r<5;r++){let n=t.concat(e[r].split(""));D[r]=n;for(let t=0;t<n.length;t++){let e=n[t];void 0===N[e]&&(N[e]=t)}}}}var G="u">typeof Uint8Array,j=!U&&"function"==typeof btoa;function V(t){if(!j){void 0===e&&(e=0),B(),e=D[e];var e,r=Array(Math.floor(t.length/3)),n=e[64]||"";let h=0,u=0;for(;h<t.length-2;h+=3){var i=t[h],s=t[h+1],o=t[h+2],a=e[i>>2];i=e[(3&i)<<4|s>>4],s=e[(15&s)<<2|o>>6],o=e[63&o],r[u++]=a+i+s+o}switch(a=0,o=n,t.length-h){case 2:o=e[(15&(a=t[h+1]))<<2]||n;case 1:t=t[h],r[u]=e[t>>2]+e[(3&t)<<4|a>>4]+o+n}return r.join("")}for(e="",r=0,n=t.length-10240;r<n;)e+=String.fromCharCode.apply(null,t.subarray(r,r+=10240));return btoa(e+=String.fromCharCode.apply(null,r?t.subarray(r):t))}let X=/[-_.]/g,H={"-":"+",_:"/",".":"="};function W(t){return H[t]||""}function z(t){if(!j){var e;let r,n,i,s;return(n=3*(r=(e=t).length)/4)%3?n=Math.floor(n):-1!="=.".indexOf(e[r-1])&&(n=-1!="=.".indexOf(e[r-2])?n-2:n-1),i=new Uint8Array(n),s=0,function(t,e){function r(e){for(;n<t.length;){let e=t.charAt(n++),r=N[e];if(null!=r)return r;if(!/^[\s\xa0]*$/.test(e))throw Error("Unknown base64 encoding at char: "+e)}return e}B();let n=0;for(;;){let t=r(-1),n=r(0),i=r(64),s=r(64);if(64===s&&-1===t)break;e(t<<2|n>>4),64!=i&&(e(n<<4&240|i>>2),64!=s&&e(i<<6&192|s))}}(e,function(t){i[s++]=t}),s!==n?i.subarray(0,s):i}X.test(t)&&(t=t.replace(X,W));let r=new Uint8Array((t=atob(t)).length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r}function K(t){return G&&null!=t&&t instanceof Uint8Array}var Y={};function $(){return o||=new J(null,Y)}function q(t){Z(Y);var e=t.g;return null==(e=null==e||K(e)?e:"string"==typeof e?z(e):null)?e:t.g=e}var J=class{h(){return new Uint8Array(q(this)||0)}constructor(t,e){if(Z(e),this.g=t,null!=t&&0===t.length)throw Error("ByteString should be constructed with non-empty values")}};function Z(t){if(t!==Y)throw Error("illegal external caller")}function Q(t,e){t.__closure__error__context__984382||(t.__closure__error__context__984382={}),t.__closure__error__context__984382.severity=e}function tt(t){return Q(t=Error(t),"warning"),t}function te(t){if(null!=t){var e,r=a??={},n=r[t]||0;n>=5||(r[t]=n+1,Q(t=Error(),"incident"),e=t,y.setTimeout(()=>{throw e},0))}}var tr="function"==typeof Symbol&&"symbol"==typeof Symbol();function tn(t,e,r=!1){return"function"==typeof Symbol&&"symbol"==typeof Symbol()?r&&Symbol.for&&t?Symbol.for(t):null!=t?Symbol(t):Symbol():e}var ti=tn("jas",void 0,!0),ts=tn(void 0,"0di"),to=tn(void 0,"1oa"),ta=tn(void 0,Symbol()),th=tn(void 0,"0actk"),tu=tn(void 0,"8utk");let tl=tr?ti:"Ea",tc={Ea:{value:0,configurable:!0,writable:!0,enumerable:!1}},tf=Object.defineProperties;function td(t,e){tr||tl in t||tf(t,tc),t[tl]|=e}function tp(t,e){tr||tl in t||tf(t,tc),t[tl]=e}function tg(t){return td(t,34),t}function tm(t,e){tp(e,-15615&t)}function ty(t,e){tp(e,-15581&(34|t))}function t_(){return"function"==typeof BigInt}function tv(t){return Array.prototype.slice.call(t)}var tE,tw={};function tT(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)&&t.constructor===Object}function tb(t,e){if(null!=t){if("string"==typeof t)t=t?new J(t,Y):$();
1else if(t.constructor!==J)if(K(t))t=t.length?new J(new Uint8Array(t),Y):$();else{if(!e)throw Error();t=void 0}}return t}let tA=[];function tk(t){if(2&t)throw Error()}tp(tA,55),tE=Object.freeze(tA);class tx{constructor(t,e,r){this.g=t,this.h=e,this.l=r}next(){let t=this.g.next();return t.done||(t.value=this.h.call(this.l,t.value)),t}[Symbol.iterator](){return this}}function tS(t){return ta?t[ta]:void 0}var tL=Object.freeze({});function tR(t){return t.Na=!0,t}var tF=tR(t=>"number"==typeof t),tI=tR(t=>"string"==typeof t),tM=tR(t=>"boolean"==typeof t),tP="function"==typeof y.BigInt&&"bigint"==typeof y.BigInt(0);function tC(t){var e=t;if(tI(e)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(e))throw Error(String(e))}else if(tF(e)&&!Number.isSafeInteger(e))throw Error(String(e));return tP?BigInt(t):t=tM(t)?t?"1":"0":tI(t)?t.trim()||"0":String(t)}var tO=tR(t=>tP?t>=tD&&t<=tB:"-"===t[0]?tG(t,tU):tG(t,tN));let tU=Number.MIN_SAFE_INTEGER.toString(),tD=tP?BigInt(Number.MIN_SAFE_INTEGER):void 0,tN=Number.MAX_SAFE_INTEGER.toString(),tB=tP?BigInt(Number.MAX_SAFE_INTEGER):void 0;function tG(t,e){if(t.length>e.length)return!1;if(t.length<e.length||t===e)return!0;for(let r=0;r<t.length;r++){let n=t[r],i=e[r];if(n>i)return!1;if(n<i)return!0}}let tj="function"==typeof Uint8Array.prototype.slice,tV,tX=0,tH=0;function tW(t){let e=t>>>0;tX=e,tH=(t-e)/0x100000000>>>0}function tz(t){if(t<0){tW(-t);let[e,r]=t1(tX,tH);tX=e>>>0,tH=r>>>0}else tW(t)}function tK(t){let e=tV||=new DataView(new ArrayBuffer(8));e.setFloat32(0,+t,!0),tH=0,tX=e.getUint32(0,!0)}function tY(t,e){let r=0x100000000*e+(t>>>0);return Number.isSafeInteger(r)?r:tq(t,e)}function t$(t,e){let r=0x80000000&e;return r&&(e=~e>>>0,0==(t=1+~t>>>0)&&(e=e+1>>>0)),"number"==typeof(t=tY(t,e))?r?-t:t:r?"-"+t:t}function tq(t,e){if(t>>>=0,(e>>>=0)<=2097151)var r=""+(0x100000000*e+t);else t_()?r=""+(BigInt(e)<<BigInt(32)|BigInt(t)):(t=(0xffffff&t)+6777216*(r=0xffffff&(t>>>24|e<<8))+6710656*(e=e>>16&65535),r+=8147497*e,e*=2,t>=1e7&&(r+=t/1e7>>>0,t%=1e7),r>=1e7&&(e+=r/1e7>>>0,r%=1e7),r=e+tJ(r)+tJ(t));return r}function tJ(t){return t=String(t),"0000000".slice(t.length)+t}function tZ(){var t=tX,e=tH;
1if(0x80000000&e)if(t_())t=""+(BigInt(0|e)<<BigInt(32)|BigInt(t>>>0));else{let[r,n]=t1(t,e);t="-"+tq(r,n)}else t=tq(t,e);return t}function tQ(t){if(t.length<16)tz(Number(t));else if(t_())tX=Number((t=BigInt(t))&BigInt(0xffffffff))>>>0,tH=Number(t>>BigInt(32)&BigInt(0xffffffff));else{let e=+("-"===t[0]);tH=tX=0;let r=t.length;for(let n=e,i=(r-e)%6+e;i<=r;n=i,i+=6){let e=Number(t.slice(n,i));tH*=1e6,(tX=1e6*tX+e)>=0x100000000&&(tH+=Math.trunc(tX/0x100000000),tH>>>=0,tX>>>=0)}if(e){let[t,e]=t1(tX,tH);tX=t,tH=e}}}function t1(t,e){return e=~e,t?t=1+~t:e+=1,[t,e]}let t2="function"==typeof BigInt?BigInt.asIntN:void 0,t3="function"==typeof BigInt?BigInt.asUintN:void 0,t4=Number.isSafeInteger,t0=Number.isFinite,t5=Math.trunc,t6=tC(0);function t7(t){return null==t||"number"==typeof t?t:"NaN"===t||"Infinity"===t||"-Infinity"===t?Number(t):void 0}function t8(t){return null==t||"boolean"==typeof t?t:"number"==typeof t?!!t:void 0}let t9=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function et(t){switch(typeof t){case"bigint":return!0;case"number":return t0(t);case"string":return t9.test(t);default:return!1}}function ee(t){if(null==t)return t;if("string"==typeof t&&t)t*=1;else if("number"!=typeof t)return;return t0(t)?0|t:void 0}function er(t){if(null==t)return t;if("string"==typeof t&&t)t*=1;else if("number"!=typeof t)return;return t0(t)?t>>>0:void 0}function en(t){if("-"===t[0])return!1;let e=t.length;return e<20||20===e&&184467>Number(t.substring(0,6))}function ei(t){let e=t.length;return"-"===t[0]?e<20||20===e&&Number(t.substring(0,7))>-922337:e<19||19===e&&922337>Number(t.substring(0,6))}function es(t){return ei(t)?t:(tQ(t),tZ())}function eo(t){return t4(t=t5(t))||(tz(t),t=t$(tX,tH)),t}function ea(t){var e=t5(Number(t));return t4(e)?String(e):(-1!==(e=t.indexOf("."))&&(t=t.substring(0,e)),es(t))}function eh(t){var e=t5(Number(t));return t4(e)?tC(e):(-1!==(e=t.indexOf("."))&&(t=t.substring(0,e)),t_()?tC(t2(64,BigInt(t))):tC(es(t)))}function eu(t){if(t4(t))t=tC(eo(t));else{if(t4(t=t5(t)))t=String(t);else{let e=String(t);ei(e)?t=e:(tz(t),t=tZ())}t=tC(t)}return t}function el(t){return null==t?t:"bigint"==typeof t?t=tO(t)||tO(t=t2(64,t))?Number(t):String(t):et(t)?"number"==typeof t?eo(t):ea(t):void 0}function ec(t){if("string"!=typeof t)throw Error();return t}function ef(t){if(null!=t&&"string"!=typeof t)throw Error();return t}function ed(t){return null==t||"string"==typeof t?t:void 0}function ep(t,e,r,n){if(null!=t&&"object"==typeof t&&t.W===tw)return t;if(!Array.isArray(t))return r?2&n?((t=e[ts])||(tg((t=new e).u),t=e[ts]=t),e=t):e=new e:e=void 0,e;let i=r=0|t[tl];return 0===i&&(i|=32&n),(i|=2&n)!==r&&tp(t,i),new e(t)}function eg(t,e,r){if(e)t:{if(!et(e=t))throw tt("int64");switch(typeof e){case"string":e=eh(e);break t;case"bigint":e=tC(t2(64,e));break t;default:e=eu(e)}}else t=typeof(e=t),e=null==e?e:"bigint"===t?tC(t2(64,e)):et(e)?"string"===t?eh(e):eu(e):void 0;return null==(t=e)?r?t6:void 0:t}let em={},ey=function(){try{return O(new class extends Map{constructor(){super()}}),!1}catch{return!0}}();class e_{constructor(){this.g=new Map}get(t){return this.g.get(t)}set(t,e){return this.g.set(t,e),this.size=this.g.size,this}delete(t){return t=this.g.delete(t),this.size=this.g.size,t}clear(){this.g.clear(),this.size=this.g.size}has(t){return this.g.has(t)}entries(){return this.g.entries()}keys(){return this.g.keys()}values(){return this.g.values()}forEach(t,e){return this.g.forEach(t,e)}[Symbol.iterator](){return this.entries()}}let ev=ey?(Object.setPrototypeOf(e_.prototype,Map.prototype),Object.defineProperties(e_.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),e_):class extends Map{constructor(){super()}};function eE(t){return t}function ew(t){if(2&t.M)throw Error("Cannot mutate an immutable Map")}var eT=class extends ev{constructor(t,e,r=eE,n=eE){super();let i=0|t[tl];tp(t,i|=64),this.M=i,this.I=e,this.S=r,this.X=this.I?eb:n;for(let s=0;s<t.length;s++){const o=t[s],a=r(o[0],!1,!0);let h=o[1];e?void 0===h&&(h=null):h=n(o[1],!1,!0,void 0,void 0,i),super.set(a,h)}}La(){var t=eR;if(0!==this.size)return Array.from(super.entries(),e=>(e[0]=t(e[0]),e[1]=t(e[1]),e))}da(t=eA){let e=[],r=super.entries();for(var n;!(n=r.next()).done;)(n=n.value)[0]=t(n[0]),n[1]=t(n[1]),e.push(n);return e}clear(){ew(this),super.clear()}delete(t){return ew(this),super.delete(this.S(t,!0,!1))}entries(){if(this.I){var t=super.keys();t=new tx(t,ek,this)}else t=super.entries();return t}values(){if(this.I){var t=super.keys();t=new tx(t,eT.prototype.get,this)}else t=super.values();return t}forEach(t,e){this.I?super.forEach((r,n,i)=>{t.call(e,i.get(n),n,i)}):super.forEach(t,e)}set(t,e){return ew(this),null==(t=this.S(t,!0,!1))?this:null==e?(super.delete(t),this):super.set(t,this.X(e,!0,!0,this.I,!1,this.M))}Ja(t){let e=this.S(t[0],!1,!0);
1t=t[1],t=this.I?void 0===t?null:t:this.X(t,!1,!0,void 0,!1,this.M),super.set(e,t)}has(t){return super.has(this.S(t,!1,!1))}get(t){t=this.S(t,!1,!1);let e=super.get(t);if(void 0!==e){var r=this.I;return r?((r=this.X(e,!1,!0,r,this.pa,this.M))!==e&&super.set(t,r),r):e}}[Symbol.iterator](){return this.entries()}};function eb(t,e,r,n,i,s){return t=ep(t,n,r,s),i&&(t=eO(t)),t}function eA(t){return t}function ek(t){return[t,this.get(t)]}function ex(){return h||=new eT(tg([]),void 0,void 0,void 0,em)}function eS(t,e,r,n,i){if(null!=t){if(Array.isArray(t)){let s=0|t[tl];return 0===t.length&&1&s?void 0:i&&2&s?t:eL(t,e,r,void 0!==n,i)}return e(t,n)}}function eL(t,e,r,n,i){let s=n||r?0|t[tl]:0,o=n?!!(32&s):void 0,a=0,h=(n=tv(t)).length;for(let t=0;t<h;t++){var u=n[t];if(t===h-1&&tT(u)){let t;for(let n in u){let s=eS(u[n],e,r,o,i);null!=s&&((t??={})[n]=s)}u=t}else u=eS(n[t],e,r,o,i);n[t]=u,null!=u&&(a=t+1)}return a<h&&(n.length=a),r&&((t=tS(t))&&(n[ta]=tv(t)),r(s,n)),n}function eR(t){return eS(t,eF,void 0,void 0,!1)}function eF(t){switch(typeof t){case"number":return Number.isFinite(t)?t:""+t;case"bigint":return tO(t)?Number(t):""+t;case"boolean":return+!!t;case"object":if(K(t))return K(t)&&te(tu),V(t);if(t.W===tw)return eI(t);if(t instanceof J){let e=t.g;return null==e?"":"string"==typeof e?e:t.g=V(e)}return t instanceof eT?t.La():void 0}return t}function eI(t){var e=t.u;t=eL(e,eF,void 0,void 0,!1);var r=0|e[tl];if((e=t.length)&&!(512&r)){var n=t[e-1],i=!1;tT(n)?(e--,i=!0):n=void 0;var s=e-(r=512&r?0:-1),o=(u??function(t){return t})(s,r,t,n);if(n&&(t[e]=void 0),s<o&&n){for(var a in s=!0,n){let h=+a;h<=o?(t[i=h+r]=n[a],e=Math.max(i+1,e),i=!1,delete n[a]):s=!1}s&&(n=void 0)}for(s=e-1;e>0;s=e-1)if(null==(a=t[s]))e--,i=!0;else{if(!((s-=r)>=o))break;(n??={})[s]=a,e--,i=!0}i&&(t.length=e),n&&t.push(n)}return t}function eM(t,e,r){return t=eP(t,e[0],e[1],r?1:2),e!==l&&r&&td(t,8192),t}function eP(t,e,r,n){if(null==t){var i=96;r?(t=[r],i|=512):t=[],e&&(i=-0xffc001&i|(1023&e)<<14)}else{if(!Array.isArray(t))throw Error("narr");if(8192&(i=0|t[tl])||!(64&i)||2&i||te(th),1024&i)throw Error("farr");if(64&i)return t;if(1===n||2===n||(i|=64),r&&(i|=512,r!==t[0]))throw Error("mid");t:{var s=(r=t).length;if(s){var o=s-1;if(tT(n=r[o])){if((o-=e=512&(i|=256)?0:-1)>=1024)throw Error("pvtlmt");for(var a in n)(s=+a)<o&&(r[s+e]=n[a],delete n[a]);i=-0xffc001&i|(1023&o)<<14;break t}}if(e){if((a=Math.max(e,s-(512&i?0:-1)))>1024)throw Error("spvt");i=-0xffc001&i|(1023&a)<<14}}}return tp(t,i),t}function eC(t,e,r){let n=r||2&e?ty:tm,i=!!(32&e);return td(t=function(t,e,r){let n=tv(t);var i=n.length;let s=256&e?n[i-1]:void 0;for(i+=s?-1:0,e=512&e?1:0;e<i;e++)n[e]=r(n[e]);if(s)for(let t in e=n[e]={},s)e[t]=r(s[t]);return(t=tS(t))&&(n[ta]=tv(t)),n}(t,e,t=>(function t(e,r,n=ty){if(null!=e){if(G&&e instanceof Uint8Array)return r?e:new Uint8Array(e);if(Array.isArray(e)){var i=0|e[tl];return 2&i?e:(r&&=0===i||!!(32&i)&&!(64&i||!(16&i)))?(tp(e,34|i),4&i&&Object.freeze(e),e):eL(e,t,4&i?ty:n,!0,!0)}return e.W===tw?e=2&(i=0|(n=e.u)[tl])?e:new e.constructor(eC(n,i,!0)):e instanceof eT&&!(2&e.M)&&(e=new eT(n=tg(e.da(t)),e.I,e.S,e.X)),e}})(t,i,n)),32|2*!!r),t}function eO(t){let e=t.u,r=0|e[tl];return 2&r?new t.constructor(eC(e,r,!1)):t}function eU(t,e){return eD(t=t.u,0|t[tl],e)}function eD(t,e,r){if(-1===r)return null;let n=r+(512&e?0:-1),i=t.length-1;return n>=i&&256&e?t[i][r]:n<=i?t[n]:void 0}function eN(t,e,r){let n=t.u,i=0|n[tl];return tk(i),eB(n,i,e,r),t}function eB(t,e,r,n){let i=512&e?0:-1,s=r+i;var o=t.length-1;return s>=o&&256&e?t[o][r]=n:s<=o?t[s]=n:void 0!==n&&(r>=(o=e>>14&1023||0x20000000)?null!=n&&(t[o+i]={[r]:n},tp(t,e|=256)):t[s]=n),e}function eG(t,e){let r=0|(t=t.u)[tl],n=eD(t,r,e),i=t7(n);return null!=i&&i!==n&&eB(t,r,e,i),i}function ej(t){let e=0|(t=t.u)[tl],r=eD(t,e,1),n=tb(r,!0);return null!=n&&n!==r&&eB(t,e,1,n),n}function eV(){return void 0===tL?2:4}function eX(t,e,r,n,i){let s=t.u,o=2&(t=0|s[tl])?1:n;i=!!i;let a=0|(n=eH(s,t,e))[tl];if(!(4&a)){4&a&&(n=tv(n),a=e7(a,t),t=eB(s,t,e,n));let i=0,o=0;for(;i<n.length;i++){let t=r(n[i]);null!=t&&(n[o++]=t)}o<i&&(n.length=o),tp(n,a=r=-2049&(20|(a=eW(a,t)))&-4097),2&a&&Object.freeze(n)}return 1===o||4===o&&32&a?ez(a)||(i=a,(a|=2)!==i&&tp(n,a),Object.freeze(n)):(2===o&&ez(a)&&(tp(n=tv(n),a=e8(a=e7(a,t),t,i)),t=eB(s,t,e,n)),ez(a)||(e=a,(a=e8(a,t,i))!==e&&tp(n,a))),n}function eH(t,e,r){return Array.isArray(t=eD(t,e,r))?t:tE}function eW(t,e){return 0===t&&(t=e7(t,e)),1|t}function ez(t){return!!(2&t)&&!!(4&t)||!!(1024&t)}function eK(t){t=tv(t);for(let e=0;e<t.length;e++){let r=t[e]=tv(t[e]);Array.isArray(r[1])&&(r[1]=tg(r[1]))}return t}function eY(t,e,r,n){let i=0|(t=t.u)[tl];tk(i),eB(t,i,e,("0"===n?0===Number(r):r===n)?void 0:r)}function e$(t,e,r,n){tk(e);let i=eH(t,e,r),s=i!==tE;if(64&e||!(8192&e)||!s){let o=s?0|i[tl]:0,a=o;(!s||2&a||ez(a)||4&a&&!(32&a))&&(i=tv(i),a=e7(a,e),e=eB(t,e,r,i)),a=-13&eW(a,e),(a=e8(n?-17&a:16|a,e,!0))!==o&&tp(i,a)}return i}function eq(t,e){return eQ(eJ(t=t.u),t,0|t[tl],iO)===e?e:-1}function eJ(t){if(tr)return t[to]??(t[to]=new Map);if(to in t)return t[to];let e=new Map;return Object.defineProperty(t,to,{value:e}),e}function eZ(t,e,r,n){let i=eJ(t),s=eQ(i,t,e,r);return s!==n&&(s&&(e=eB(t,e,s)),i.set(r,n)),e}function eQ(t,e,r,n){let i=t.get(n);if(null!=i)return i;i=0;for(let t=0;t<n.length;t++){let s=n[t];null!=eD(e,r,s)&&(0!==i&&(r=eB(e,r,i)),i=s)}return t.set(n,i),i}function e1(t,e,r){let n,i=0|t[tl],s=eD(t,i,r);if(null!=s&&s.W===tw)return(e=eO(s))!==s&&eB(t,i,r,e),e.u;if(Array.isArray(s)){let t=0|s[tl];n=2&t?eM(eC(s,t,!1),e,!0):64&t?s:eM(n,e,!0)}else n=eM(void 0,e,!0);return n!==s&&eB(t,i,r,n),n}function e2(t,e,r){let n=0|(t=t.u)[tl],i=eD(t,n,r);return(e=ep(i,e,!1,n))!==i&&null!=e&&eB(t,n,r,e),e}function e3(t,e,r){if(null==(e=e2(t,e,r)))return e;let n=0|(t=t.u)[tl];if(!(2&n)){let i=eO(e);i!==e&&eB(t,n,r,e=i)}return e}function e4(t,e,r,n,i,s,o){t=t.u;var a=!!(2&e);let h=a?1:i;s=!!s,o&&=!a;var u=0|(i=eH(t,e,n))[tl];if(!(a=!!(4&u))){var l=i,c=e;let t=!!(2&(u=eW(u,e)));t&&(c|=2);let n=!t,s=!0,o=0,a=0;for(;o<l.length;o++){let e=ep(l[o],r,!1,c);if(e instanceof r){if(!t){let t=!!(2&e.u[tl]);n&&=!t,s&&=t}l[a++]=e}}a<o&&(l.length=a),u|=4,u=s?16|u:-17&u,tp(l,u=n?8|u:-9&u),t&&Object.freeze(l)}if(o&&!(8&u||!i.length&&(1===h||4===h&&32&u))){for(ez(u)&&(i=tv(i),u=e7(u,e),e=eB(t,e,n,i)),r=i,o=u,l=0;l<r.length;l++)(u=r[l])!==(c=eO(u))&&(r[l]=c);o|=8,tp(r,o=r.length?-17&o:16|o),u=o}return 1===h||4===h&&32&u?ez(u)||(e=u,(u|=!i.length||16&u&&(!a||32&u)?2:1024)!==e&&tp(i,u),Object.freeze(i)):(2===h&&ez(u)&&(tp(i=tv(i),u=e8(u=e7(u,e),e,s)),e=eB(t,e,n,i)),ez(u)||(n=u,(u=e8(u,e,s))!==n&&tp(i,u))),i}function e0(t,e,r){let n=0|t.u[tl];return e4(t,n,e,r,eV(),!1,!(2&n))}function e5(t,e,r,n){return null==n&&(n=void 0),eN(t,r,n)}function e6(t,e,r,n){null==n&&(n=void 0);t:{let i=0|(t=t.u)[tl];if(tk(i),null==n){let n=eJ(t);if(eQ(n,t,i,r)!==e)break t;n.set(r,0)}else i=eZ(t,i,r,e);eB(t,i,e,n)}}function e7(t,e){return -1025&(t=32|(2&e?2|t:-3&t))}function e8(t,e,r){return 32&e&&r||(t&=-33),t}function e9(t,e,r){tk(0|t.u[tl]),eX(t,e,ed,2,!0).push(ec(r))}function rt(t,e,r,n){let i=0|t.u[tl];tk(i),t=e4(t,i,r,e,2,!0),n=null!=n?n:new r,t.push(n),t[tl]=2&n.u[tl]?-9&t[tl]:-17&t[tl]}function re(t,e){return ee(eU(t,e))}function rr(t,e){return ed(eU(t,e))}function rn(t,e){return eG(t,e)??0}function ri(t,e,r){if(null!=r&&"boolean"!=typeof r)throw t=typeof r,Error(`Expected boolean but got ${"object"!=t?t:r?Array.isArray(r)?"array":t:"null"}: ${r}`);eN(t,e,r)}function rs(t,e,r){if(null!=r){if("number"!=typeof r||!t0(r))throw tt("int32");r|=0}eN(t,e,r)}function ro(t,e,r){if(null!=r&&"number"!=typeof r)throw Error(`Value of float/double field must be a number, found ${typeof r}: ${r}`);eN(t,e,r)}function ra(t,e,r){{let o=t.u,a=0|o[tl];if(tk(a),null==r)eB(o,a,e);else{var n=t=0|r[tl],i=ez(t),s=i||Object.isFrozen(r);for(i||(t=0),s||(r=tv(r),n=0,t=e8(t=e7(t,a),a,!0),s=!1),t|=21,i=0;i<r.length;i++){let e=r[i],o=ec(e);Object.is(e,o)||(s&&(r=tv(r),n=0,t=e8(t=e7(t,a),a,!0),s=!1),r[i]=o)}t!==n&&(s&&(r=tv(r),t=e8(t=e7(t,a),a,!0)),tp(r,t)),eB(o,a,e,r)}}}function rh(t,e){return Error(`Invalid wire type: ${t} (at position ${e})`)}function ru(){return Error("Failed to read varint, encoding is invali
1d.")}function rl(t,e){return Error(`Tried to read past the end of the data ${e} > ${t}`)}function rc(t){if("string"==typeof t)return{buffer:z(t),O:!1};if(Array.isArray(t))return{buffer:new Uint8Array(t),O:!1};if(t.constructor===Uint8Array)return{buffer:t,O:!1};if(t.constructor===ArrayBuffer)return{buffer:new Uint8Array(t),O:!1};if(t.constructor===J)return{buffer:q(t)||new Uint8Array(0),O:!0};if(t instanceof Uint8Array)return{buffer:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),O:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers")}function rf(t,e){let r,n=0,i=0,s=0,o=t.h,a=t.g;do n|=(127&(r=o[a++]))<<s,s+=7;while(s<32&&128&r);for(s>32&&(i|=(127&r)>>4),s=3;s<32&&128&r;s+=7)i|=(127&(r=o[a++]))<<s;if(rE(t,a),r<128)return e(n>>>0,i>>>0);throw ru()}function rd(t){let e=0,r=t.g,n=r+10,i=t.h;for(;r<n;){let n=i[r++];if(e|=n,0==(128&n))return rE(t,r),!!(127&e)}throw ru()}function rp(t){let e=t.h,r=t.g,n=e[r++],i=127&n;if(128&n&&(i|=(127&(n=e[r++]))<<7,128&n&&(i|=(127&(n=e[r++]))<<14,128&n&&(i|=(127&(n=e[r++]))<<21,128&n&&(i|=(n=e[r++])<<28,128&n&&128&e[r++]&&128&e[r++]&&128&e[r++]&&128&e[r++]&&128&e[r++])))))throw ru();return rE(t,r),i}function rg(t){return rp(t)>>>0}function rm(t){var e=t.h;let r=t.g,n=e[r],i=e[r+1],s=e[r+2];return e=e[r+3],rE(t,t.g+4),(n|i<<8|s<<16|e<<24)>>>0}function ry(t){var e=rm(t);t=2*(e>>31)+1;let r=e>>>23&255;return e&=8388607,255==r?e?NaN:1/0*t:0==r?1401298464324817e-60*t*e:t*Math.pow(2,r-150)*(e+8388608)}function r_(t){return rp(t)}function rv(t,e,{aa:r=!1}={}){t.aa=r,e&&(t.h=(e=rc(e)).buffer,t.m=e.O,t.j=0,t.l=t.h.length,t.g=t.j)}function rE(t,e){if(t.g=e,e>t.l)throw rl(t.l,e)}function rw(t,e){if(e<0)throw Error(`Tried to read a negative byte length: ${e}`);let r=t.g,n=r+e;if(n>t.l)throw rl(e,t.l-r);return t.g=n,r}function rT(t,e){if(0==e)return $();var r=rw(t,e);return t.aa&&t.m?r=t.h.subarray(r,r+e):(t=t.h,r=r===(e=r+e)?new Uint8Array(0):tj?t.slice(r,e):new Uint8Array(t.subarray(r,e))),0==r.length?$():new J(r,Y)}eT.prototype.toJSON=void 0;var rb=[];function rA(t){var e=t.g;if(e.g==e.l)return!1;t.l=t.g.g;var r=rg(t.g);if(e=r>>>3,!((r&=7)>=0&&r<=5))throw rh(r,t.l);if(e<1)throw Error(`Invalid field number: ${e} (at position ${t.l})`);return t.m=e,t.h=r,!0}function rk(t,e,r){let n=t.g.l,i=rg(t.g),s=t.g.g+i,o=s-n;if(o<=0&&(t.g.l=s,r(e,t,void 0,void 0,void 0),o=s-t.g.g),o)throw Error(`Message parsing ended unexpectedly. Expected to read ${i} bytes, instead read ${i-o} bytes, either the data ended unexpectedly or the message misreported its own length`);return t.g.g=s,t.g.l=n,e}function rx(t){var e=rg(t.g),r=rw(t=t.g,e);if(t=t.h,E){var s,o=t;(s=i)||(s=i=new TextDecoder("utf-8",{fatal:!0})),e=r+e,o=0===r&&e===o.length?o:o.subarray(r,e);try{var a=s.decode(o)}catch(t){if(void 0===n){try{s.decode(new Uint8Array([128]))}catch(t){}try{s.decode(new Uint8Array([97])),n=!0}catch(t){n=!1}}throw n||(i=void 0),t}}else{e=(a=r)+e,r=[];let n,i=null;for(;a<e;){var h=t[a++];h<128?r.push(h):h<224?a>=e?_():(n=t[a++],h<194||128!=(192&n)?(a--,_()):r.push((31&h)<<6|63&n)):h<240?a>=e-1?_():128!=(192&(n=t[a++]))||224===h&&n<160||237===h&&n>=160||128!=(192&(s=t[a++]))?(a--,_()):r.push((15&h)<<12|(63&n)<<6|63&s):h<=244?a>=e-2?_():128!=(192&(n=t[a++]))||n-144+(h<<28)>>30!=0||128!=(192&(s=t[a++]))||128!=(192&(o=t[a++]))?(a--,_()):(h=((7&h)<<18|(63&n)<<12|(63&s)<<6|63&o)-65536,r.push(55296+(h>>10&1023),56320+(1023&h))):_(),r.length>=8192&&(i=v(i,r),r.length=0)}a=v(i,r)}return a}function rS(t){let e=rg(t.g);return rT(t.g,e)}function rL(t,e,r){var n=rg(t.g);for(n=t.g.g+n;t.g.g<n;)r.push(e(t.g))}var rR=[];function rF(t,e,r){e.g?e.m(t,e.g,e.h,r):e.m(t,e.h,r)}var rI=class{constructor(t,e){this.u=eP(t,e)}toJSON(){try{var t=eI(this)}finally{u=void 0}return t}l(){return sE.g?sE.l(this,sE.g,sE.h):sE.l(this,sE.h,sE.defaultValue)}clone(){let t=this.u;return new this.constructor(eC(t,0|t[tl],!1))}O(){return!!(2&this.u[tl])}};function rM(t){return t?/^\d+$/.test(t)?(tQ(t),new rP(tX,tH)):null:f||=new rP(0,0)}rI.prototype.W=tw,rI.prototype.toString=function(){return this.u.toString()};var rP=class{constructor(t,e){this.h=t>>>0,this.g=e>>>0}};function rC(t){return t?/^-?\d+$/.test(t)?(tQ(t),new rO(tX,tH)):null:d||=new rO(0,0)}var rO=class{constructor(t,e){this.h=t>>>0,this.g=e>>>0}};function rU(t,e,r){for(;r>0||e>127;)t.g.push(127&e|128),e=(e>>>7|r<<25)>>>0,r>>>=7;t.g.push(e)}function rD(t,e){for(;e>127;)t.g.push(127&e|128),e>>>=7;t.g.push(e)}function rN(t,e){if(e>=0)rD(t,e);else{for(let r=0;r<9;r++)t.g.push(127&e|128),e>>=7;t.g.push(1)}}function rB(t,e){t.g.push(e>>>0&255),t.g.push(e>>>8&255),t.g.push(e>>>16&255),t.g.push(e>>>24&255)}function rG(t,e){0!==e.length&&(t.l.push(e),t.h+=e.length)}function rj(t,e,r){rD(t.g,8*e+r)}function rV(t,e){return rj(t,e,2),e=t.g.end(),rG(t,e),e.push(t.h),e}function rX(t,e){var r=e.pop();for(r=t.h+t.g.length()-r;r>127;)e.push(127&r|128),r>>>=7,t.h++;e.push(r),t.h++}function rH(t,e,r){rj(t,e,2),rD(t.g,r.length),rG(t,t.g.end()),rG(t,r)}function rW(t,e,r,n){null!=r&&(e=rV(t,e),n(r,t),rX(t,e))}function rz(){let t=class{constructor(){throw Error()}};return Object.setPrototypeOf(t,t.prototype),t}var rK=rz(),rY=rz(),r$=rz(),rq=rz(),rJ=rz(),rZ=rz(),rQ=rz(),r1=rz(),r2=rz(),r3=class{constructor(t,e,r){this.g=t,this.h=e,t=rK,this.l=!!t&&r===t}};function r4(t,e){return new r3(t,e,rK)}function r0(t,e,r,n,i){rW(t,r,nn(e,n),i)}let r5=r4(function(t,e,r,n,i){return 2===t.h&&(rk(t,e1(e,n,r),i),!0)},r0),r6=r4(function(t,e,r,n,i){return 2===t.h&&(rk(t,e1(e,n,r),i),!0)},r0);var r7=Symbol(),r8=Symbol(),r9=Symbol(),nt=Symbol();function ne(t,e,r,n){var i=n[t];if(i)return i;(i={}).Ma=n,i.T=function(t){switch(typeof t){case"boolean":return l||=[0,void 0,!0];case"number":return t>0?void 0:0===t?c||=[0,void 0]:[-t,void 0];case"string":return[0,t];case"object":return t}}(n[0]);var s=n[1];let o=1;s&&s.constructor===Object&&(i.ga=s,"function"==typeof(s=n[++o])&&(i.la=!0,p??=s,g??=n[o+1],s=n[o+=2]));let a={};for(;s&&Array.isArray(s)&&s.length&&"number"==typeof s[0]&&s[0]>0;){for(var h=0;h<s.length;h++)a[s[h]]=s;s=n[++o]}for(h=1;void 0!==s;){let t;"number"==typeof s&&(h+=s,s=n[++o]);var u=void 0;if(s instanceof r3?t=s:(t=r5,o--),t?.l){s=n[++o],u=n;var f=o;"function"==typeof s&&(s=s(),u[f]=s),u=s}for(f=h+1,"number"==typeof(s=n[++o])&&s<0&&(f-=s,s=n[++o]);h<f;h++){let n=a[h];u?r(i,h,t,u,n):e(i,h,t,n)}}return n[t]=i}function nr(t){return Array.isArray(t)?t[0]instanceof r3?t:[r6,t]:[t,void 0]}function nn(t,e){return t instanceof rI?t.u:Array.isArray(t)?eM(t,e,!1):void 0}function ni(t,e,r,n){let i=r.g;t[e]=n?(t,e,r)=>i(t,e,r,n):i}function ns(t,e,r,n,i){let s,o,a=r.g;t[e]=(t,e,r)=>
1a(t,e,r,o||=ne(r8,ni,ns,n).T,s||=no(n),i)}function no(t){let e=t[r9];if(null!=e)return e;let r=ne(r8,ni,ns,t);return e=r.la?(t,e)=>p(t,e,r):(t,e)=>{let n=0|t[tl];for(;rA(e)&&4!=e.h;){var i=e.m,s=r[i];if(null==s){var o=r.ga;o&&(o=o[i])&&null!=(o=function(t){let e=(t=nr(t))[0].g;if(t=t[1]){let r=no(t),n=ne(r8,ni,ns,t).T;return(t,i,s)=>e(t,i,s,n,r)}return e}(o))&&(s=r[i]=o)}null!=s&&s(e,t,i)||(i=(s=e).l,function t(e){switch(e.h){case 0:0!=e.h?t(e):rd(e.g);break;case 1:rE(e=e.g,e.g+8);break;case 2:if(2!=e.h)t(e);else{var r=rg(e.g);rE(e=e.g,e.g+r)}break;case 5:rE(e=e.g,e.g+4);break;case 3:for(r=e.m;;){if(!rA(e))throw Error("Unmatched start-group tag: stream EOF");if(4==e.h){if(e.m!=r)throw Error("Unmatched end-group tag");break}t(e)}break;default:throw rh(e.h,e.l)}}(s),s.fa?s=void 0:(o=s.g.g-i,s.g.g=i,s=rT(s.g,o)),i=t,s&&((o=i[ta])?o.push(s):i[ta]=[s]))}return 8192&n&&tg(t),!0},t[r9]=e}function na(t,e,r){t[e]=r.h}function nh(t,e,r,n){let i,s,o=r.h;t[e]=(t,e,r)=>o(t,e,r,s||=ne(r7,na,nh,n).T,i||=nu(n))}function nu(t){let e=t[nt];if(!e){let r=ne(r7,na,nh,t);e=(t,e)=>nl(t,e,r),t[nt]=e}return e}function nl(t,e,r){!function(t,e,r){let n=512&e?0:-1,i=t.length,s=i+((e=64&e?256&e:!!i&&tT(t[i-1]))?-1:0);for(let e=0;e<s;e++)r(e-n,t[e]);if(e)for(let e in t=t[i-1])isNaN(e)||r(+e,t[e])}(t,t[tl]|512*!!r.T[1],(t,n)=>{if(null!=n){var i=function(t,e){var r=t[e];if(r)return r;if((r=t.ga)&&(r=r[e])){var n=(r=nr(r))[0].h;if(r=r[1]){let e=nu(r),i=ne(r7,na,nh,r).T;r=t.la?g(i,e):(t,r,s)=>n(t,r,s,i,e)}else r=n;return t[e]=r}}(r,t);i&&i(e,n,t)}}),(t=tS(t))&&function(t,e){rG(t,t.g.end());for(let r=0;r<e.length;r++)rG(t,q(e[r])||new Uint8Array(0))}(e,t)}function nc(t,e){if(Array.isArray(e)){var r=0|e[tl];if(4&r)return e;for(var n=0,i=0;n<e.length;n++){let r=t(e[n]);null!=r&&(e[i++]=r)}return i<n&&(e.length=i),tp(e,-6145&(5|r)),2&r&&Object.freeze(e),e}}function nf(t,e,r){return new r3(t,e,r)}function nd(t,e,r){return new r3(t,e,r)}function np(t,e,r){eB(t,0|t[tl],e,r)}var ng=r4(function(t,e,r,n,i){return 2===t.h&&(t=rk(t,eM([void 0,void 0],n,!0),i),tk(n=0|e[tl]),(i=eD(e,n,r))instanceof eT?0!=(2&i.M)?((i=i.da()).push(t),eB(e,n,r,i)):i.Ja(t):Array.isArray(i)?(2&i[tl]&&eB(e,n,r,i=eK(i)),i.push(t)):eB(e,n,r,[t]),!0)},function(t,e,r,n,i){if(e instanceof eT)e.forEach((e,s)=>{rW(t,r,eM([s,e],n,!1),i)});else if(Array.isArray(e))for(let s=0;s<e.length;s++){let o=e[s];Array.isArray(o)&&rW(t,r,eM(o,n,!1),i)}});function nm(t,e,r){if(null!=(e=function(t){if(null==t)return t;let e=typeof t;if("bigint"===e)return String(t2(64,t));if(et(t)){if("string"===e)return ea(t);if("number"===e)return eo(t)}}(e))&&("string"==typeof e&&rC(e),null!=e))switch(rj(t,r,0),typeof e){case"number":t=t.g,tz(e),rU(t,tX,tH);break;case"bigint":r=new rO(Number((r=BigInt.asUintN(64,e))&BigInt(0xffffffff)),Number(r>>BigInt(32))),rU(t.g,r.h,r.g);break;default:r=rC(e),rU(t.g,r.h,r.g)}}function ny(t,e,r){null!=(e=ee(e))&&null!=e&&(rj(t,r,0),rN(t.g,e))}function n_(t,e,r){null!=(e=t8(e))&&(rj(t,r,0),t.g.g.push(+!!e))}function nv(t,e,r){null!=(e=ed(e))&&rH(t,r,T(e))}function nE(t,e,r,n,i){rW(t,r,nn(e,n),i)}function nw(t,e,r){null==e||"string"==typeof e||e instanceof J||(K(e)?K(e)&&te(tu):e=void 0),null!=e&&rH(t,r,rc(e).buffer)}function nT(t,e,r){return(5===t.h||2===t.h)&&(e=e$(e,0|e[tl],r,!1),2==t.h?rL(t,ry,e):e.push(ry(t.g)),!0)}var nb=nf(function(t,e,r){if(1!==t.h)return!1;var n=t.g;t=rm(n);let i=rm(n);n=2*(i>>31)+1;let s=i>>>20&2047;return t=0x100000000*(1048575&i)+t,np(e,r,2047==s?t?NaN:1/0*n:0==s?5e-324*n*t:n*Math.pow(2,s-1075)*(t+0x10000000000000)),!0},function(t,e,r){null!=(e=t7(e))&&(rj(t,r,1),t=t.g,(r=tV||=new DataView(new ArrayBuffer(8))).setFloat64(0,+e,!0),tX=r.getUint32(0,!0),tH=r.getUint32(4,!0),rB(t,tX),rB(t,tH))},rz()),nA=nf(function(t,e,r){return 5===t.h&&(np(e,r,ry(t.g)),!0)},function(t,e,r){null!=(e=t7(e))&&(rj(t,r,5),t=t.g,tK(e),rB(t,tX))},rQ),nk=nd(nT,function(t,e,r){if(null!=(e=nc(t7,e)))for(let s=0;s<e.length;s++){var n=t,i=e[s];null!=i&&(rj(n,r,5),n=n.g,tK(i),rB(n,tX))}},rQ),nx=nd(nT,function(t,e,r){if(null!=(e=nc(t7,e))&&e.length){rj(t,r,2),rD(t.g,4*e.length);for(let n=0;n<e.length;n++)r=t.g,tK(e[n]),rB(r,tX)}},rQ),nS=nf(function(t,e,r){return 0===t.h&&(np(e,r,rf(t.g,t$)),!0)},nm,rZ),nL=nf(function(t,e,r){return 0===t.h&&(np(e,r,0===(t=rf(t.g,t$))?void 0:t),!0)},nm,rZ),nR=nf(function(t,e,r){return 0===t.h&&(np(e,r,rf(t.g,tY)),!0)},function(t,e,r){if(null!=(e=function(t){if(null==t)return t;var e=typeof t;if("bigint"===e)return String(t3(64,t));if(et(t)){if("string"===e)return t4(e=t5(Number(t)))&&e>=0?t=String(e):(-1!==(e=t.indexOf("."))&&(t=t.substring(0,e)),en(t)||(tQ(t),t=tq(tX,tH))),t;if("number"===e)return(t=t5(t))>=0&&t4(t)?t:function(t){if(t<0){tz(t);var e=tq(tX,tH);return t4(t=Number(e))?t:e}return en(e=String(t))?e:(tz(t),tY(tX,tH))}(t)}}(e))&&("string"==typeof e&&rM(e),null!=e))switch(rj(t,r,0),typeof e){case"number":t=t.g,tz(e),rU(t,tX,tH);break;case"bigint":r=new rP(Number((r=BigInt.asUintN(64,e))&BigInt(0xffffffff)),Number(r>>BigInt(32))),rU(t.g,r.h,r.g);break;default:r=rM(e),rU(t.g,r.h,r.g)}},rz()),nF=nf(function(t,e,r){return 0===t.h&&(np(e,r,rp(t.g)),!0)},ny,rq),nI=nd(function(t,e,r){return(0===t.h||2===t.h)&&(e=e$(e,0|e[tl],r,!1),2==t.h?rL(t,rp,e):e.push(rp(t.g)),!0)},function(t,e,r){if(null!=(e=nc(ee,e))&&e.length){r=rV(t,r);for(let r=0;r<e.length;r++)rN(t.g,e[r]);rX(t,r)}},rq),nM=nf(function(t,e,r){return 0===t.h&&(np(e,r,0===(t=rp(t.g))?void 0:t),!0)},ny,rq),nP=nf(function(t,e,r){return 0===t.h&&(np(e,r,rd(t.g)),!0)},n_,rY),nC=nf(function(t,e,r){return 0===t.h&&(np(e,r,!1===(t=rd(t.g))?void 0:t),!0)},n_,rY),nO=nd(function(t,e,r){return 2===t.h&&(t=rx(t),e$(e,0|e[tl],r,!1).push(t),!0)},function(t,e,r){if(null!=(e=nc(ed,e)))for(let i=0;i<e.length;i++){var n=e[i];null!=n&&rH(t,r,T(n))}},r$),nU=nf(function(t,e,r){return 2===t.h&&(np(e,r,""===(t=rx(t))?void 0:t),!0)},nv,r$),nD=nf(function(t,e,r){return 2===t.h&&(np(e,r,rx(t)),!0)},nv,r$),nN=function(t,e,r=rK){return new r3(t,e,r)}(function(t,e,r,n,i){return 2===t.h&&(n=eM(void 0,n,!0),e$(e,0|e[tl],r,!0).push(n),rk(t,n,i),!0)},function(t,e,r,n,i){if(Array.isArray(e))for(let s=0;s<e.length;s++)nE(t,e[s],r,n,i)}),nB=r4(function(t,e,r,n,i,s){return 2===t.h&&(eZ(e,0|e[tl],s,r),rk(t,e=e1(e,n,r),i),!0)},nE),nG=nf(function(t,e,r){return 2===t.h&&(np(e,r,rS(t)),!0)},nw,r1),nj=nd(function(t,e,r){return(0===t.h||2===t.h)&&(e=e$(e,0|e[tl],r,!1),2==t.h?rL(t,rg,e):e.push(rg(t.g)),!0)},function(t,e,r){if(null!=(e=nc(er,e)))for(let i=0;i<e.length;i++){var n=e[i];null!=n&&(rj(t,r,0),rD(t.g,n))}},rJ),nV=nf(function(t,e,r){return 0===t.h&&(np(e,r,0===(t=rg(t.g))?void 0:t),!0)},function(t,e,r){null!=(e=er(e))&&null!=e&&(rj(t,r,0),rD(t.g,e))},rJ),nX=nf(function(t,e,r){return 0===t.h&&(np(e,r,rp(t.g)),!0)},function(t,e,r){null!=(e=ee(e))&&(e=parseInt(e,10),rj(t,r,0),rN(t.g,e))},r2);class nH{constructor(t,e){this.h=t,this.g=e,this.l=e3,this.m=e5,this.defaultValue=void 0}register(){O(this)}}function nW(t,e){return new nH(t,e)}function nz(t,e){return(r,n)=>{if(rR.length){let t=rR.pop();t.o(n),rv(t.g,r,n),r=t}else r=new class{constructor(t,e){if(rb.length){const r=rb.pop();rv(r,t,e),t=r}else t=new class{constructor(t,e){this.h=null,this.m=!1,this.g=this.l=this.j=0,rv(this,t,e)}clear(){this.h=null,this.m=!1,this.g=this.l=this.j=0,this.aa=!1}}(t,e);this.g=t,this.l=this.g.g,this.h=this.m=-1,this.o(e)}
1o({fa:t=!1}={}){this.fa=t}}(r,n);try{let n=new t,s=n.u;no(e)(s,r);var i=n}finally{r.g.clear(),r.m=-1,r.h=-1,rR.length<100&&rR.push(r)}return i}}function nK(t){return function(){let e=new class{constructor(){this.l=[],this.h=0,this.g=new class{constructor(){this.g=[]}length(){return this.g.length}end(){let t=this.g;return this.g=[],t}}}};nl(this.u,e,ne(r7,na,nh,t)),rG(e,e.g.end());let r=new Uint8Array(e.h),n=e.l,i=n.length,s=0;for(let t=0;t<i;t++){let e=n[t];r.set(e,s),s+=e.length}return e.l=[r],r}}var nY=class extends rI{constructor(t){super(t)}},n$=[0,nU,nf(function(t,e,r){return 2===t.h&&(np(e,r,(t=rS(t))===$()?void 0:t),!0)},function(t,e,r){if(null!=e){if(e instanceof rI){let n=e.Oa;return void(n&&null!=(e=n(e))&&rH(t,r,rc(e).buffer))}if(Array.isArray(e))return}nw(t,e,r)},r1)];let nq,nJ=globalThis.trustedTypes;function nZ(t){void 0===nq&&(nq=function(){let t=null;if(!nJ)return t;try{let e=t=>t;t=nJ.createPolicy("goog#html",{createHTML:e,createScript:e,createScriptURL:e})}catch(t){}return t}());var e=nq;return new class{constructor(t){this.g=t}toString(){return this.g+""}}(e?e.createScriptURL(t):t)}function nQ(t,...e){if(0===e.length)return nZ(t[0]);let r=t[0];for(let n=0;n<e.length;n++)r+=encodeURIComponent(e[n])+t[n+1];return nZ(r)}var n1=[0,nF,nX,nP,-1,nI,nX,-1],n2=class extends rI{constructor(t){super(t)}},n3=[0,nP,nD,nP,nX,-1,nd(function(t,e,r){return(0===t.h||2===t.h)&&(e=e$(e,0|e[tl],r,!1),2==t.h?rL(t,r_,e):e.push(rp(t.g)),!0)},function(t,e,r){if(null!=(e=nc(ee,e))&&e.length){r=rV(t,r);for(let r=0;r<e.length;r++)rN(t.g,e[r]);rX(t,r)}},r2),nD,-1,[0,nP,-1],nX,nP,-1],n4=[0,nD,-2],n0=class extends rI{constructor(t){super(t)}},n5=[0],n6=[0,nF,nP,1,nP,-3],n7=class extends rI{constructor(t){super(t,2)}},n8={};n8[0x1412e9f7]=[0,nD,nP,-1,nF,[0,[1,2,3,4,5,6,7,8,9],nB,n5,nB,n3,nB,n4,nB,n6,nB,n1,nB,[0,nD,-2],nB,[0,nD,nX],nB,[0,nX,nD,-1],nB,[0,nX,-1]],[0,nD],nP,[0,[1,3],[2,4],nB,[0,nI],-1,nB,[0,nO],-1,nN,[0,nD,-1]],nD];var n9=[0,nL,-1,nC,-3,nL,nI,nU,nM,nL,-1,nC,nM,nC,-2,nU];function it(t,e){eY(t,2,ef(e),"")}function ie(t,e){e9(t,3,e)}function ir(t,e){e9(t,4,e)}var ii=class extends rI{constructor(t){super(t,500)}o(t){return e5(this,0,7,t)}},is=[-1,{}],io=[0,nD,1,is],ia=[0,nD,nO,is];function ih(t,e){rt(t,1,ii,e)}function iu(t,e){e9(t,10,e)}function il(t,e){e9(t,15,e)}var ic=class extends rI{constructor(t){super(t,500)}o(t){return e5(this,0,1001,t)}},id=[-500,nN,[-500,nU,-1,nO,-3,[-2,n8,nP],nN,n$,nM,-1,io,ia,nN,[0,nU,nC],nU,n9,nM,nO,987,nO],4,nN,[-500,nD,-1,[-1,{}],998,nD],nN,[-500,nD,nO,-1,[-2,{},nP],997,nO,-1],nM,nN,[-500,nD,nO,is,998,nO],nO,nM,io,ia,nN,[0,nU,-1,is],nO,-2,n9,nU,-1,nC,[0,nC,nV],978,is,nN,n$];ic.prototype.g=nK(id);var ip=nz(ic,id),ig=class extends rI{constructor(t){super(t)}},im=class extends rI{constructor(t){super(t)}g(){return e0(this,ig,1)}},iy=[0,nN,[0,nF,nA,nD,-1]],i_=nz(im,iy),iv=class extends rI{constructor(t){super(t)}},iE=class extends rI{constructor(t){super(t)}},iw=class extends rI{constructor(t){super(t)}h(){return e3(this,iv,2)}g(){return e0(this,iE,5)}},iT=nz(class extends rI{constructor(t){super(t)}},[0,nO,nI,nx,[0,nX,[0,nF,-3],[0,nA,-3],[0,nF,-1,[0,nN,[0,nF,-2]]],nN,[0,nA,-1,nD,nA]],nD,-1,nS,nN,[0,nF,nA],nO,nS]),ib=class extends rI{constructor(t){super(t)}},iA=nz(class extends rI{constructor(t){super(t)}},[0,nN,[0,nA,-4]]),ik=class extends rI{constructor(t){super(t)}},ix=nz(class extends rI{constructor(t){super(t)}},[0,nN,[0,nA,-4]]),iS=class extends rI{constructor(t){super(t)}},iL=[0,nF,-1,nx,nX],iR=class extends rI{constructor(t){super(t)}};iR.prototype.g=nK([0,nA,-4,nS]);var iF=class extends rI{constructor(t){super(t)}},iI=nz(class extends rI{constructor(t){super(t)}},[0,nN,[0,1,nF,nD,iy],nS]),iM=class extends rI{constructor(t){super(t)}},iP=class extends rI{constructor(t){super(t)}ma(){let t=ej(this);return null==t?$():t}},iC=class extends rI{constructor(t){super(t)}},iO=[1,2],iU=nz(class extends rI{constructor(t){super(t)}},[0,nN,[0,iO,nB,[0,nx],nB,[0,nG],nF,nD],nS]),iD=class extends rI{constructor(t){super(t)}},iN=[0,nD,nF,nA,nO,-1],iB=class extends rI{constructor(t){super(t)}},iG=[0,nP,-1],ij=class extends rI{constructor(t){super(t)}},iV=[1,2,3,4,5],iX=class extends rI{constructor(t){super(t)}g(){return null!=ej(this)}h(){return null!=rr(this,2)}},iH=class extends rI{constructor(t){super(t)}g(){return t8(eU(this,2))??!1}},iW=[0,nG,nD,[0,nF,nS,-1],[0,nR,nS]],iz=[0,iW,nP,[0,iV,nB,n6,nB,n3,nB,n1,nB,n5,nB,n4],nX],iK=class extends rI{constructor(t){super(t)}},iY=[0,iz,nA,-1,nF],i$=nW(0x1dee13c9,iK);n8[0x1dee13c9]=iY;var iq=nz(class extends rI{constructor(t){super(t)}},[0,[0,nX,-1,nk,nj],iL]),iJ=class extends rI{constructor(t){super(t)}},iZ=class extends rI{constructor(t){super(t)}},iQ=[0,iz,nA,[0,iz],nP],i1=[0,iz,iY,iQ,nA,[0,[0,iW]]],i2=nW(0x1e563cd6,iZ);n8[0x1e563cd6]=i1,n8[0x1e563cd5]=iQ;var i3=class extends rI{constructor(t){super(t)}},i4=nW(0x1ea1bd3c,i3);n8[0x1ea1bd3c]=[0,iz,i1,nF];var i0=class extends rI{constructor(t){super(t)}h(){return e3(this,iD,2)}g(){eN(this,2)}},i5=[0,iz,iN];n8[0x1c8a4bf9]=i5;var i6=class extends rI{constructor(t){super(t)}},i7=class extends rI{constructor(t){super(t)}},i8=class extends rI{constructor(t){super(t)}},i9=class extends rI{constructor(t){super(t)}},st=class extends rI{constructor(t){super(t)}},se=[0,iz,[0,iz],i5,-1],sr=[0,iz,nA,nF],sn=[0,iz,nA],si=[0,iz,sr,sn,nA],ss=nW(0x1c8e70de,st);n8[0x1c8e70de]=[0,iz,si,se],n8[0x1b9e78d4]=se,n8[0x1bb54420]=sr;var so=nW(0x1b947172,i9);n8[0x1b947172]=si,n8[0x1c47e016]=sn;var sa=class extends rI{constructor(t){super(t)}},sh=class extends rI{constructor(t){super(t)}},su=class extends rI{constructor(t){super(t)}},sl=class extends rI{constructor(t){super(t)}},sc=[0,iz,nA,-1,nF],sf=[0,iz,nA,nP];sl.prototype.g=nK([0,iz,sn,[0,iz],iY,iQ,sc,sf]);var sd=class extends rI{constructor(t){super(t)}},sp=nW(0x1b33db97,sd);n8[0x1b33db97]=[0,iz,iN];var sg=class extends rI{constructor(t){super(t)}},sm=nW(0x1c647f1b,sg);n8[0x1c647f1b]=[0,iz,iG];var sy=class extends rI{constructor(t){super(t)}},s_=class extends rI{constructor(t){super(t)}},sv=[0,nX,-1],sE=nW(0x1b4e2414,class extends rI{constructor(t){super(t)}g(){var t=this.u;let e=0|t[tl],r=2&e;return t=function(t,e,r){var n=s_;let i=2&e,s=!1;if(null==r){if(i)return ex();r=[]}else if(r.constructor===eT){if(0==(2&r.M)||i)return r;r=r.da()}else Array.isArray(r)?s=!!(2&r[tl]):r=[];if(i){if(!r.length)return ex();
1s||(s=!0,tg(r))}else s&&(s=!1,r=eK(r));return s||(64&r[tl]?r[tl]&=-33:32&e&&td(r,32)),eB(t,e,2,n=new eT(r,n,eg,void 0)),n}(t,e,eD(t,e,2)),!r&&s_&&(t.pa=!0),t}});n8[0x1b4e2414]=[0,sv,ng,[!0,nS,[0,nD,-1,nO]]];var sw=class extends rI{constructor(t){super(t)}},sT=nW(0x1b4e239e,sw);n8[0x1b4e239e]=[0,iz,nD,sv];var sb=class extends rI{constructor(t){super(t)}},sA=nW(0x1a6e638a,sb);n8[0x1a6e638a]=[0,iz,nD,nF,nA,nO,-1,nP,nA],n8[0x1eaed71d]=sc;var sk=class extends rI{constructor(t){super(t)}},sx=nW(0x1eca7ede,sk);function sS(t,e){return e=e?e.clone():new iD,void 0!==t.displayNamesLocale?eN(e,1,ef(t.displayNamesLocale)):void 0===t.displayNamesLocale&&eN(e,1),void 0!==t.maxResults?rs(e,2,t.maxResults):"maxResults"in t&&eN(e,2),void 0!==t.scoreThreshold?ro(e,3,t.scoreThreshold):"scoreThreshold"in t&&eN(e,3),void 0!==t.categoryAllowlist?ra(e,4,t.categoryAllowlist):"categoryAllowlist"in t&&eN(e,4),void 0!==t.categoryDenylist?ra(e,5,t.categoryDenylist):"categoryDenylist"in t&&eN(e,5),e}function sL(t,e=-1,r=""){return{categories:t.map(t=>({index:re(t,1)??0??-1,score:rn(t,2)??0,categoryName:rr(t,3)??""??"",displayName:rr(t,4)??""??""})),headIndex:e,headName:r}}function sR(t){var e=eX(t,3,t7,eV()),r=eX(t,2,ee,eV()),n=eX(t,1,ed,eV()),i=eX(t,9,ed,eV());let s={categories:[],keypoints:[]};for(let t=0;t<e.length;t++)s.categories.push({score:e[t],index:r[t]??-1,categoryName:n[t]??"",displayName:i[t]??""});if((e=e3(t,iw,4)?.h())&&(s.boundingBox={originX:re(e,1)??0,originY:re(e,2)??0,width:re(e,3)??0,height:re(e,4)??0,angle:0}),e3(t,iw,4)?.g().length)for(let e of e3(t,iw,4).g())s.keypoints.push({x:eG(e,1)??0,y:eG(e,2)??0,score:eG(e,4)??0,label:rr(e,3)??""});return s}function sF(t){let e=[];for(let r of e0(t,ik,1))e.push({x:rn(r,1)??0,y:rn(r,2)??0,z:rn(r,3)??0,visibility:rn(r,4)??0});return e}function sI(t){let e=[];for(let r of e0(t,ib,1))e.push({x:rn(r,1)??0,y:rn(r,2)??0,z:rn(r,3)??0,visibility:rn(r,4)??0});return e}function sM(t){return Array.from(t,t=>t>127?t-256:t)}function sP(t,e){if(t.length!==e.length)throw Error(`Cannot compute cosine similarity between embeddings of different sizes (${t.length} vs. ${e.length}).`);let r=0,n=0,i=0;for(let s=0;s<t.length;s++)r+=t[s]*e[s],n+=t[s]*t[s],i+=e[s]*e[s];if(n<=0||i<=0)throw Error("Cannot compute cosine similarity on embedding with 0 norm.");return r/Math.sqrt(n*i)}n8[0x1eca7ede]=[0,iz,sc,sf,nA],n8[0x1eee3800]=sf;let sC=new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]);async function sO(){if(void 0===m)try{await WebAssembly.instantiate(sC),m=!0}catch{m=!1}return m}async function sU(t,e=nQ``){let r=await sO()?"wasm_internal":"wasm_nosimd_internal";return{wasmLoaderPath:`${e}/${t}_${r}.js`,wasmBinaryPath:`${e}/${t}_${r}.wasm`}}var sD=class{};function sN(){var t=navigator;return"u">typeof OffscreenCanvas&&(!function(t=navigator){return(t=t.userAgent).includes("Safari")&&!t.includes("Chrome")}(t)||!!((t=t.userAgent.match(/Version\/([\d]+).*Safari/))&&t.length>=1&&Number(t[1])>=17))}async function sB(t){if("function"!=typeof importScripts){let e=document.createElement("script");return e.src=t.toString(),e.crossOrigin="anonymous",new Promise((t,r)=>{e.addEventListener("load",()=>{t()},!1),e.addEventListener("error",t=>{r(t)},!1),document.body.appendChild(e)})}importScripts(t.toString())}function sG(t){return void 0!==t.videoWidth?[t.videoWidth,t.videoHeight]:void 0!==t.naturalWidth?[t.naturalWidth,t.naturalHeight]:void 0!==t.displayWidth?[t.displayWidth,t.displayHeight]:[t.width,t.height]}function sj(t,e,r){t.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target"),r(e=t.i.stringToNewUTF8(e)),t.i._free(e)}function sV(t,e,r){if(!t.i.canvas)throw Error("No OpenGL canvas configured.");if(r?t.i._bindTextureToStream(r):t.i._bindTextureToCanvas(),!(r=t.i.canvas.getContext("webgl2")||t.i.canvas.getContext("webgl")))throw Error("Failed to obtain WebGL context from the provided canvas. `getContext()` should only be invoked with `webgl` or `webgl2`.");t.i.gpuOriginForWebTexturesIsBottomLeft&&r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!0),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,e),t.i.gpuOriginForWebTexturesIsBottomLeft&&r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1);let[n,i]=sG(e);return t.l&&(n!==t.i.canvas.width||i!==t.i.canvas.height)&&(t.i.canvas.width=n,t.i.canvas.height=i),[n,i]}function sX(t,e,r){t.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target");let n=new Uint32Array(e.length);for(let r=0;r<e.length;
1r++)n[r]=t.i.stringToNewUTF8(e[r]);for(let i of(e=t.i._malloc(4*n.length),t.i.HEAPU32.set(n,e>>2),r(e),n))t.i._free(i);t.i._free(e)}function sH(t,e,r){t.i.simpleListeners=t.i.simpleListeners||{},t.i.simpleListeners[e]=r}function sW(t,e,r){let n=[];t.i.simpleListeners=t.i.simpleListeners||{},t.i.simpleListeners[e]=(t,e,i)=>{e?(r(n,i),n=[]):n.push(t)}}async function sz(t,e,r,n){return t=await (async(t,e,r,n,i)=>{if(e&&await sB(e),!self.ModuleFactory||r&&(await sB(r),!self.ModuleFactory))throw Error("ModuleFactory not set.");return self.Module&&i&&((e=self.Module).locateFile=i.locateFile,i.mainScriptUrlOrBlob&&(e.mainScriptUrlOrBlob=i.mainScriptUrlOrBlob)),i=await self.ModuleFactory(self.Module||i),self.ModuleFactory=self.Module=void 0,new t(i,n)})(t,r.wasmLoaderPath,r.assetLoaderPath,e,{locateFile:t=>t.endsWith(".wasm")?r.wasmBinaryPath.toString():r.assetBinaryPath&&t.endsWith(".data")?r.assetBinaryPath.toString():t}),await t.o(n),t}function sK(t,e){let r=e3(t.baseOptions,iX,1)||new iX;"string"==typeof e?(eN(r,2,ef(e)),eN(r,1)):e instanceof Uint8Array&&(eN(r,1,tb(e,!1)),eN(r,2)),e5(t.baseOptions,0,1,r)}function sY(t){try{let e=t.G.length;if(1===e)throw Error(t.G[0].message);if(e>1)throw Error("Encountered multiple errors: "+t.G.map(t=>t.message).join(", "))}finally{t.G=[]}}function s$(t,e){t.B=Math.max(t.B,e)}function sq(t,e){t.A=new ii,it(t.A,"PassThroughCalculator"),ie(t.A,"free_memory"),ir(t.A,"free_memory_unused_out"),iu(e,"free_memory"),ih(e,t.A)}function sJ(t,e){ie(t.A,e),ir(t.A,e+"_unused_out")}function sZ(t){t.g.addBoolToStream(!0,"free_memory",t.B)}sD.forVisionTasks=function(t){return sU("vision",t)},sD.forTextTasks=function(t){return sU("text",t)},sD.forGenAiExperimentalTasks=function(t){return sU("genai_experimental",t)},sD.forGenAiTasks=function(t){return sU("genai",t)},sD.forAudioTasks=function(t){return sU("audio",t)},sD.isSimdSupported=function(){return sO()};var sQ=class{constructor(t){this.g=t,this.G=[],this.B=0,this.g.setAutoRenderToScreen(!1)}l(t,e=!0){if(e){let e=t.baseOptions||{};if(t.baseOptions?.modelAssetBuffer&&t.baseOptions?.modelAssetPath)throw Error("Cannot set both baseOptions.modelAssetPath and baseOptions.modelAssetBuffer");if(!(e3(this.baseOptions,iX,1)?.g()||e3(this.baseOptions,iX,1)?.h()||t.baseOptions?.modelAssetBuffer||t.baseOptions?.modelAssetPath))throw Error("Either baseOptions.modelAssetPath or baseOptions.modelAssetBuffer must be set");if(function(t,e){let r=e3(t.baseOptions,ij,3);if(!r){var n=r=new ij;e6(n,4,iV,new n0)}"delegate"in e&&("GPU"===e.delegate?e6(e=r,2,iV,n=new n2):e6(e=r,4,iV,n=new n0)),e5(t.baseOptions,0,3,r)}(this,e),e.modelAssetPath)return fetch(e.modelAssetPath.toString()).then(t=>{if(t.ok)return t.arrayBuffer();throw Error(`Failed to fetch model: ${e.modelAssetPath} (${t.status})`)}).then(t=>{try{this.g.i.FS_unlink("/model.dat")}catch{}this.g.i.FS_createDataFile("/","model.dat",new Uint8Array(t),!0,!1,!1),sK(this,"/model.dat"),this.m(),this.J()});if(e.modelAssetBuffer instanceof Uint8Array)sK(this,e.modelAssetBuffer);else if(e.modelAssetBuffer)return(async function(t){let e=[];for(var r=0;;){let{done:n,value:i}=await t.read();if(n)break;e.push(i),r+=i.length}if(0===e.length)return new Uint8Array(0);if(1===e.length)return e[0];for(let n of(t=new Uint8Array(r),r=0,e))t.set(n,r),r+=n.length;return t})(e.modelAssetBuffer).then(t=>{sK(this,t),this.m(),this.J()})}return this.m(),this.J(),Promise.resolve()}J(){}ca(){let t;if(this.g.ca(e=>{t=ip(e)}),!t)throw Error("Failed to retrieve CalculatorGraphConfig");return t}setGraph(t,e){this.g.attachErrorListener((t,e)=>{this.G.push(Error(e))}),this.g.Ha(),this.g.setGraph(t,e),this.A=void 0,sY(this)}finishProcessing(){this.g.finishProcessing(),sY(this)}close(){this.A=void 0,this.g.closeGraph()}};function s1(t,e){if(!t)throw Error(`Unable to obtain required WebGL resource: ${e}`);return t}sQ.prototype.close=sQ.prototype.close;class s2{constructor(t,e,r,n){this.g=t,this.h=e,this.m=r,this.l=n}bind(){this.g.bindVertexArray(this.h)}close(){this.g.deleteVertexArray(this.h),this.g.deleteBuffer(this.m),this.g.deleteBuffer(this.l)}}function s3(t,e,r){let n=t.g;if(r=s1(n.createShader(r),"Failed to create WebGL shader"),n.shaderSource(r,e),n.compileShader(r),!n.getShaderParameter(r,n.COMPILE_STATUS))throw Error(`Could not compile WebGL shader: ${n.getShaderInfoLog(r)}`);return n.attachShader(t.h,r),r}function s4(t,e){let r=t.g,n=s1(r.createVertexArray(),"Failed to create vertex array");r.bindVertexArray(n);let i=s1(r.createBuffer(),"Failed to create buffer");r.bindBuffer(r.ARRAY_BUFFER,i),r.enableVertexAttribArray(t.P),r.vertexAttribPointer(t.P,2,r.FLOAT,!1,0,0),r.bufferData(r.ARRAY_BUFFER,new Float32Array([-1,-1,-1,1,1,1,1,-1]),r.STATIC_DRAW);let s=s1(r.createBuffer(),"Failed to create buffer");return r.bindBuffer(r.ARRAY_BUFFER,s),r.enableVertexAttribArray(t.J),r.vertexAttribPointer(t.J,2,r.FLOAT,!1,0,0),r.bufferData(r.ARRAY_BUFFER,new Float32Array(e?[0,1,0,0,1,0,1,1]:[0,0,0,1,1,1,1,0]),r.STATIC_DRAW),r.b
vendor: 7,523 bytes, line 1
1indBuffer(r.ARRAY_BUFFER,null),r.bindVertexArray(null),new s2(r,n,i,s)}function s0(t,e){if(t.g){if(e!==t.g)throw Error("Cannot change GL context once initialized")}else t.g=e}function s5(t,e,r,n){return s0(t,e),t.h||(t.m(),t.C()),r?(t.s||(t.s=s4(t,!0)),r=t.s):(t.v||(t.v=s4(t,!1)),r=t.v),e.useProgram(t.h),r.bind(),t.l(),t=n(),r.g.bindVertexArray(null),t}function s6(t,e,r){return s0(t,e),t=s1(e.createTexture(),"Failed to create texture"),e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,r??e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,r??e.LINEAR),e.bindTexture(e.TEXTURE_2D,null),t}function s7(t,e,r){s0(t,e),t.A||(t.A=s1(e.createFramebuffer(),"Failed to create framebuffe.")),e.bindFramebuffer(e.FRAMEBUFFER,t.A),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,r,0)}function s8(t){t.g?.bindFramebuffer(t.g.FRAMEBUFFER,null)}var s9=class{G(){return"\n  precision mediump float;\n  varying vec2 vTex;\n  uniform sampler2D inputTexture;\n  void main() {\n    gl_FragColor = texture2D(inputTexture, vTex);\n  }\n "}m(){let t=this.g;if(this.h=s1(t.createProgram(),"Failed to create WebGL program"),this.Z=s3(this,"\n  attribute vec2 aVertex;\n  attribute vec2 aTex;\n  varying vec2 vTex;\n  void main(void) {\n    gl_Position = vec4(aVertex, 0.0, 1.0);\n    vTex = aTex;\n  }",t.VERTEX_SHADER),this.Y=s3(this,this.G(),t.FRAGMENT_SHADER),t.linkProgram(this.h),!t.getProgramParameter(this.h,t.LINK_STATUS))throw Error(`Error during program linking: ${t.getProgramInfoLog(this.h)}`);this.P=t.getAttribLocation(this.h,"aVertex"),this.J=t.getAttribLocation(this.h,"aTex")}C(){}l(){}close(){if(this.h){let t=this.g;t.deleteProgram(this.h),t.deleteShader(this.Z),t.deleteShader(this.Y)}this.A&&this.g.deleteFramebuffer(this.A),this.v&&this.v.close(),this.s&&this.s.close()}},ot=class extends s9{G(){return"\n  precision mediump float;\n  uniform sampler2D backgroundTexture;\n  uniform sampler2D maskTexture;\n  uniform sampler2D colorMappingTexture;\n  varying vec2 vTex;\n  void main() {\n    vec4 backgroundColor = texture2D(backgroundTexture, vTex);\n    float category = texture2D(maskTexture, vTex).r;\n    vec4 categoryColor = texture2D(colorMappingTexture, vec2(category, 0.0));\n    gl_FragColor = mix(backgroundColor, categoryColor, categoryColor.a);\n  }\n "}C(){let t=this.g;t.activeTexture(t.TEXTURE1),this.B=s6(this,t,t.LINEAR),t.activeTexture(t.TEXTURE2),this.j=s6(this,t,t.NEAREST)}m(){super.m();let t=this.g;this.L=s1(t.getUniformLocation(this.h,"backgroundTexture"),"Uniform location"),this.U=s1(t.getUniformLocation(this.h,"colorMappingTexture"),"Uniform location"),this.K=s1(t.getUniformLocation(this.h,"maskTexture"),"Uniform location")}l(){super.l();let t=this.g;t.uniform1i(this.K,0),t.uniform1i(this.L,1),t.uniform1i(this.U,2)}close(){this.B&&this.g.deleteTexture(this.B),this.j&&this.g.deleteTexture(this.j),super.close()}},oe=class extends s9{G(){return"\n  precision mediump float;\n  uniform sampler2D maskTexture;\n  uniform sampler2D defaultTexture;\n  uniform sampler2D overlayTexture;\n  varying vec2 vTex;\n  void main() {\n    float confidence = texture2D(maskTexture, vTex).r;\n    vec4 defaultColor = texture2D(defaultTexture, vTex);\n    vec4 overlayColor = texture2D(overlayTexture, vTex);\n    // Apply the alpha from the overlay and merge in the default color\n    overlayColor = mix(defaultColor, overlayColor, overlayColor.a);\n    gl_FragColor = mix(defaultColor, overlayColor, confidence);\n  }\n "}C(){let t=this.g;t.activeTexture(t.TEXTURE1),this.j=s6(this,t),t.activeTexture(t.TEXTURE2),this.B=s6(this,t)}m(){super.m();let t=this.g;this.K=s1(t.getUniformLocation(this.h,"defaultTexture"),"Uniform location"),this.L=s1(t.getUniformLocation(this.h,"overlayTexture"),"Uniform location"),this.H=s1(t.getUniformLocation(this.h,"maskTexture"),"Uniform location")}l(){super.l();let t=this.g;t.uniform1i(this.H,0),t.uniform1i(this.K,1),t.uniform1i(this.L,2)}close(){this.j&&this.g.deleteTexture(this.j),this.B&&this.g.deleteTexture(this.B),super.close()}};function or(t,e){switch(e){case 0:return t.g.find(t=>t instanceof Uint8Array);case 1:return t.g.find(t=>t instanceof Float32Array);case 2:return t.g.find(t=>"u">typeof WebGLTexture&&t instanceof WebGLTexture);default:throw Error(`Type is not supported: ${e}`)}}function on(t){var e=or(t,1);if(!e){if(e=or(t,0))e=new Float32Array(e).map(t=>t/255);else{e=new Float32Array(t.width*t.height);let n=os(t);var r=oa(t);if(s7(r,n,oi(t)),"iPad Simulator;iPhone Simulator;iPod Simulator;iPad;iPhone;iPod".split(";").includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"document"in self&&"ontouchend"in self.document){r=new Float32Array(t.width*t.height*4),n.readPixels(0,0,t.width,t.height,n.RGBA,n.FLOAT,r);for(let t=0,n=0;t<e.length;++t,n+=4)e[t]=r[n]}else n.readPixels(0,0,t.width,t.height,n.RED,n.FLOAT,e)}t.g.push(e)}return e}function oi(t){let e=or(t,2);if(!e){let r=os(t);e=oh(t);let n=on(t),i=oo(t);r.texImage2D(r.TEXTURE_2D,0,i,t.width,t.height,0,r.RED,r.FLOAT,n),ou(t)}return e}function os(t){if(!t.canvas)throw Error("Conversion to different image formats require that a canvas is passed when initializing the image.");return t.h||(t.h=s1(t.canvas.getContext("webgl2"),"You cannot use a canvas that is already bound to a different type of rendering context.")),t.h}function oo(t){if(t=os(t),!ol)if(t.getExtension("EXT_color_buffer_float")&&t.getExtension("OES_texture_float_linear")&&t.getExtension("EXT_float_blend"))ol=t.R32F;else{if(!t.getExtension("EXT_color_buffer_half_float"))throw Error("GPU does not fully support 4-channel float32 or float16 formats");ol=t.R16F}return ol}function oa(t){return t.l||(t.l=new s9),t.l}function oh(t){let e=os(t);e.viewport(0,0,t.width,t.height),e.activeTexture(e.TEXTURE0);let r=or(t,2);return r||(r=s6(oa(t),e,t.m?e.LINEAR:e.NEAREST),t.g.push(r),t.j=!0),e.bindTexture(e.TEXTURE_2D,r),r}function ou(t){t.h.bindTexture(t.h.TEXTURE_2D,null)}var ol,oc=class{constructor(t,e,r,n,i,s,o){this.g=t,this.m=e,this.j=r,this.canvas=n,this.l=i,this.width=s,this.height=o,this.j&&0==--of&&console.error("You seem to be creating MPMask instances without invoking .close(). This leaks resources.")}Da(){return!!or(this,0)}ja(){return!!or(this,1)}R(){return!!or(this,2)}ia(){var t;return(t=or(this,0))||(t=new Uint8Array((t=on(this)).map(t=>255*t)),this.g.push(t)),t}ha(){return on(this)}N(){return oi(this)}clone(){let t=[];for(let e of this.g){let r;if(e instanceof Uint8Array)r=new Uint8Array(e);else if(e instanceof Float32Array)r=new Float32Array(e);else{if(!(e instanceof WebGLTexture))throw Error(`Type is not supported: ${e}`);{let t=os(this),e=oa(this);t.activeTexture(t.TEXTURE1),r=s6(e,t,this.m?t.LINEAR:t.NEAREST),t.bindTexture(t.TEXTURE_2D,r);let n=oo(this);t.texImage2D(t.TEXTURE_2D,0,n,this.width,this.height,0,t.RED,t.FLOAT,null),t.bindTexture(t.TEXTURE_2D,null),s7(e,t,r),s5(e,t,!1,()=>{oh(this),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),t.drawArrays(t.TRIANGLE_FAN,0,4),ou(this)}),s8(e),ou(this)}}t.push(r)}return new oc(t,this.m,this.R(),this.canvas,this.l,this.width,this.height)}close(){this.j&&os(this).deleteTexture(or(this,2)),of=-1}};oc.prototype.close=oc.prototype.close,oc.prototype.clone=oc.prototype.clone,oc.prototype.getAsWebGLTexture=oc.prototype.N,oc.prototype.getAsFloat32Array=oc.prototype.ha,oc.prototype.getAsUint8Array=oc.prototype.ia,oc.prototype.hasWebG
1LTexture=oc.prototype.R,oc.prototype.hasFloat32Array=oc.prototype.ja,oc.prototype.hasUint8Array=oc.prototype.Da;var of=250;let od={color:"white",lineWidth:4,radius:6};function op(t){return{...od,fillColor:(t=t||{}).color,...t}}function og(t,e){return t instanceof Function?t(e):t}function om(t,e,r){return Math.max(Math.min(e,r),Math.min(Math.max(e,r),t))}function oy(t){if(!t.l)throw Error("CPU rendering requested but CanvasRenderingContext2D not provided.");return t.l}function o_(t){if(!t.j)throw Error("GPU rendering requested but WebGL2RenderingContext not provided.");return t.j}function ov(t,e,r){if(e.R())r(e.N());else{let n=e.ja()?e.ha():e.ia();t.m=t.m??new s9;let i=o_(t);r((t=new oc([n],e.m,!1,i.canvas,t.m,e.width,e.height)).N()),t.close()}}function oE(t,e,r,n){let i=(t.g||(t.g=new ot),t.g),s=o_(t),o=Array.isArray(r)?new ImageData(new Uint8ClampedArray(r),1,1):r;s5(i,s,!0,()=>{!function(t,e,r,n){let i=t.g;if(i.activeTexture(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,e),i.activeTexture(i.TEXTURE1),i.bindTexture(i.TEXTURE_2D,t.B),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,r),t.H&&function(t,e){if(t!==e)return!1;for(let[n,i]of(t=t.entries(),e=e.entries(),t)){t=n;var r=e.next();if(r.done)return!1;let[s,o]=r.value;if(r=o,t!==s||i[0]!==r[0]||i[1]!==r[1]||i[2]!==r[2]||i[3]!==r[3])return!1}return!!e.next().done}(t.H,n))i.activeTexture(i.TEXTURE2),i.bindTexture(i.TEXTURE_2D,t.j);else{t.H=n;let e=Array(1024).fill(0);n.forEach((t,r)=>{if(4!==t.length)throw Error(`Color at index ${r} is not a four-channel value.`);e[4*r]=t[0],e[4*r+1]=t[1],e[4*r+2]=t[2],e[4*r+3]=t[3]}),i.activeTexture(i.TEXTURE2),i.bindTexture(i.TEXTURE_2D,t.j),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,256,1,0,i.RGBA,i.UNSIGNED_BYTE,new Uint8Array(e))}}(i,e,o,n),s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT),s.drawArrays(s.TRIANGLE_FAN,0,4);let t=i.g;t.activeTexture(t.TEXTURE0),t.bindTexture(t.TEXTURE_2D,null),t.activeTexture(t.TEXTURE1),t.bindTexture(t.TEXTURE_2D,null),t.activeTexture(t.TEXTURE2),t.bindTexture(t.TEXTURE_2D,null)})}function ow(t,e,r,n){let i=o_(t),s=(t.h||(t.h=new oe),t.h),o=Array.isArray(r)?new ImageData(new Uint8ClampedArray(r),1,1):r,a=Array.isArray(n)?new ImageData(new Uint8ClampedArray(n),1,1):n;s5(s,i,!0,()=>{var t=s.g;t.activeTexture(t.TEXTURE0),t.bindTexture(t.TEXTURE_2D,e),t.activeTexture(t.TEXTURE1),t.bindTexture(t.TEXTURE_2D,s.j),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,o),t.activeTexture(t.TEXTURE2),t.bindTexture(t.TEXTURE_2D,s.B),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,a),i.clearColor(0,0,0,0),i.clear(i.COLOR_BUFFER_BIT),i.drawArrays(i.TRIANGLE_FAN,0,4),i.bindTexture(i.TEXTURE_2D,null),(t=s.g).activeTexture(t.TEXTURE0),t.bindTexture(t.TEXTURE_2D,null),t.activeTexture(t.TEXTURE1),t.bindTexture(t.TEXTURE_2D,null),t.activeTexture(t.TEXTURE2),t.bindTexture(t.TEXTURE_2D,null)})}var oT=class{constructor(t,e){"u">typeof CanvasRenderingContext2D&&t instanceof CanvasRenderingContext2D||t instanceof OffscreenCanvasRenderingContext2D?(this.l=t,this.j=e):this.j=t}wa(t,e){if(t){var r=oy(this);e=op(e),r.save();var n=r.canvas,i=0;for(let s of t)r.fillStyle=og(e.fillColor,{index:i,from:s}),r.strokeStyle=og(e.color,{index:i,from:s}),r.lineWidth=og(e.lineWidth,{index:i,from:s}),(t=new Path2D).arc(s.x*n.width,s.y*n.height,og(e.radius,{index:i,from:s}),0,2*Math.PI),r.fill(t),r.stroke(t),++i;r.restore()}}va(t,e,r){if(t&&e){var n=oy(this);r=op(r),n.save();var i=n.canvas,s=0;for(let o of e){n.beginPath(),e=t[o.start];let a=t[o.end];e&&a&&(n.strokeStyle=og(r.color,{index:s,from:e,to:a}),n.lineWidth=og(r.lineWidth,{index:s,from:e,to:a}),n.moveTo(e.x*i.width,e.y*i.height),n.lineTo(a.x*i.width,a.y*i.height)),++s,n.stroke()}n.restore()}}sa(t,e){let r=oy(this);e=op(e),r.save(),r.beginPath(),r.lineWidth=og(e.lineWidth,{}),r.strokeStyle=og(e.color,{}),r.fillStyle=og(e.fillColor,{}),r.moveTo(t.originX,t.originY),r.lineTo(t.originX+t.width,t.originY),r.lineTo(t.originX+t.width,t.originY+t.height),r.lineTo(t.originX,t.originY+t.height),r.lineTo(t.originX,t.originY),r.stroke(),r.fill(),r.restore()}ta(t,e,r=[0,0,0,255]){var n;let i;this.l?(n=this,i=o_(n),ov(n,t,t=>{oE(n,t,r,e),(t=oy(n)).drawImage(i.canvas,0,0,t.canvas.width,t.canvas.height)})):oE(this,t.N(),r,e)}ua(t,e,r){var n;let i;this.l?(n=this,i=o_(n),ov(n,t,t=>{ow(n,t,e,r),(t=oy(n)).drawImage(i.canvas,0,0,t.canvas.width,t.canvas.height)})):ow(this,t.N(),e,r)}close(){this.g?.close(),this.g=void 0,this.h?.close(),this.h=void 0,this.m?.close(),this.m=void 0}};function ob(t,e){switch(e){case 0:return t.g.find(t=>t instanceof ImageData);case 1:return t.g.find(t=>"u">typeof ImageBitmap&&t instanceof ImageBitmap);case 2:return t.g.find(t=>"u">typeof WebGLTexture&&t instanceof WebGLTexture);default:throw Error(`Type is not supported: ${e}`)}}function oA(t){var e=ob(t,0);if(!e){e=ox(t);let r=oS(t),n=new Uint8Array(t.width*t.height*4);s7(r,e,ok(t)),e.readPixels(0,0,t.width,t.height,e.RGBA,e.UNSIGNED_BYTE,n),s8(r),e=new ImageData(new Uint8ClampedArray(n.buffer),t.width,t.height),t.g.push(e)}return e}function ok(t){let e=ob(t,2);if(!e){let r=ox(t);e=oL(t);let n=ob(t,1)||oA(t);r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,n),oR(t)}return e}function ox(t){if(!t.canvas)throw Error("Conversion to different image formats require that a canvas is passed when initializing the image.");return t.h||(t.h=s1(t.canvas.getContext("webgl2"),"You cannot use a canvas that is already bound to a different type of rendering context.")),t.h}function oS(t){return t.l||(t.l=new s9),t.l}function oL(t){let e=ox(t);e.viewport(0,0,t.width,t.height),e.activeTexture(e.TEXTURE0);let r=ob(t,2);return r||(r=s6(oS(t),e),t.g.push(r),t.m=!0),e.bindTexture(e.TEXTURE_2D,r),r}function oR(t){t.h.bindTexture(t.h.TEXTURE_2D,null)}function oF(t){let e=ox(t);return s5(oS(t),e,!0,()=>(function(t,e){let r=t.canvas;if(r.width===t.width&&r.height===t.height)return e();let n=r.width,i=r.height;
vendor: 10,514 bytes, line 1
1return r.width=t.width,r.height=t.height,t=e(),r.width=n,r.height=i,t})(t,()=>{if(e.bindFramebuffer(e.FRAMEBUFFER,null),e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT),e.drawArrays(e.TRIANGLE_FAN,0,4),!(t.canvas instanceof OffscreenCanvas))throw Error("Conversion to ImageBitmap requires that the MediaPipe Tasks is initialized with an OffscreenCanvas");return t.canvas.transferToImageBitmap()}))}oT.prototype.close=oT.prototype.close,oT.prototype.drawConfidenceMask=oT.prototype.ua,oT.prototype.drawCategoryMask=oT.prototype.ta,oT.prototype.drawBoundingBox=oT.prototype.sa,oT.prototype.drawConnectors=oT.prototype.va,oT.prototype.drawLandmarks=oT.prototype.wa,oT.lerp=function(t,e,r,n,i){return om(n*(1-(t-e)/(r-e))+i*(1-(r-t)/(r-e)),n,i)},oT.clamp=om;var oI=class{constructor(t,e,r,n,i,s,o){this.g=t,this.j=e,this.m=r,this.canvas=n,this.l=i,this.width=s,this.height=o,(this.j||this.m)&&0==--oM&&console.error("You seem to be creating MPImage instances without invoking .close(). This leaks resources.")}Ca(){return!!ob(this,0)}ka(){return!!ob(this,1)}R(){return!!ob(this,2)}Aa(){return oA(this)}za(){var t=ob(this,1);return t||(ok(this),oL(this),t=oF(this),oR(this),this.g.push(t),this.j=!0),t}N(){return ok(this)}clone(){let t=[];for(let e of this.g){let r;if(e instanceof ImageData)r=new ImageData(e.data,this.width,this.height);else if(e instanceof WebGLTexture){let t=ox(this),e=oS(this);t.activeTexture(t.TEXTURE1),r=s6(e,t),t.bindTexture(t.TEXTURE_2D,r),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,this.width,this.height,0,t.RGBA,t.UNSIGNED_BYTE,null),t.bindTexture(t.TEXTURE_2D,null),s7(e,t,r),s5(e,t,!1,()=>{oL(this),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),t.drawArrays(t.TRIANGLE_FAN,0,4),oR(this)}),s8(e),oR(this)}else{if(!(e instanceof ImageBitmap))throw Error(`Type is not supported: ${e}`);ok(this),oL(this),r=oF(this),oR(this)}t.push(r)}return new oI(t,this.ka(),this.R(),this.canvas,this.l,this.width,this.height)}close(){this.j&&ob(this,1).close(),this.m&&ox(this).deleteTexture(ob(this,2)),oM=-1}};oI.prototype.close=oI.prototype.close,oI.prototype.clone=oI.prototype.clone,oI.prototype.getAsWebGLTexture=oI.prototype.N,oI.prototype.getAsImageBitmap=oI.prototype.za,oI.prototype.getAsImageData=oI.prototype.Aa,oI.prototype.hasWebGLTexture=oI.prototype.R,oI.prototype.hasImageBitmap=oI.prototype.ka,oI.prototype.hasImageData=oI.prototype.Ca;var oM=250;function oP(...t){return t.map(([t,e])=>({start:t,end:e}))}let oC=(oU=class{constructor(t,e){this.l=!0,this.i=t,this.g=null,this.h=0,this.m="function"==typeof this.i._addIntToInputStream,void 0!==e?this.i.canvas=e:sN()?this.i.canvas=new OffscreenCanvas(1,1):(console.warn("OffscreenCanvas not supported and GraphRunner constructor glCanvas parameter is undefined. Creating backup canvas."),this.i.canvas=document.createElement("canvas"))}async initializeGraph(t){let e=await (await fetch(t)).arrayBuffer();t=!(t.endsWith(".pbtxt")||t.endsWith(".textproto")),this.setGraph(new Uint8Array(e),t)}setGraphFromString(t){this.setGraph((new TextEncoder).encode(t),!1)}setGraph(t,e){let r=t.length,n=this.i._malloc(r);this.i.HEAPU8.set(t,n),e?this.i._changeBinaryGraph(r,n):this.i._changeTextGraph(r,n),this.i._free(n)}configureAudio(t,e,r,n,i){this.i._configureAudio||console.warn('Attempting to use configureAudio without support for input audio. Is build dep ":gl_graph_runner_audio" missing?'),sj(this,n||"input_audio",n=>{sj(this,i=i||"audio_header",i=>{this.i._configureAudio(n,i,t,e??0,r)})})}setAutoResizeCanvas(t){this.l=t}setAutoRenderToScreen(t){this.i._setAutoRenderToScreen(t)}setGpuBufferVerticalFlip(t){this.i.gpuOriginForWebTexturesIsBottomLeft=t}ca(t){sH(this,"__graph_config__",e=>{t(e)}),sj(this,"__graph_config__",t=>{this.i._getGraphConfig(t,void 0)}),delete this.i.simpleListeners.__graph_config__}attachErrorListener(t){this.i.errorListener=t}attachEmptyPacketListener(t,e){this.i.emptyPacketListeners=this.i.emptyPacketListeners||{},this.i.emptyPacketListeners[t]=e}addAudioToStream(t,e,r){this.addAudioToStreamWithShape(t,0,0,e,r)}addAudioToStreamWithShape(t,e,r,n,i){let s=4*t.length;this.h!==s&&(this.g&&this.i._free(this.g),this.g=this.i._malloc(s),this.h=s),this.i.HEAPF32.set(t,this.g/4),sj(this,n,t=>{this.i._addAudioToInputStream(this.g,e,r,t,i)})}addGpuBufferToStream(t,e,r){sj(this,e,e=>{let[n,i]=sV(this,t,e);this.i._addBoundTextureToStream(e,n,i,r)})}addBoolToStream(t,e,r){sj(this,e,e=>{this.i._addBoolToInputStream(t,e,r)})}addDoubleToStream(t,e,r){sj(this,e,e=>{this.i._addDoubleToInputStream(t,e,r)})}addFloatToStream(t,e,r){sj(this,e,e=>{this.i._addFloatToInputStream(t,e,r)})}addIntToStream(t,e,r){sj(this,e,e=>{this.i._addIntToInputStream(t,e,r)})}addUintToStream(t,e,r){sj(this,e,e=>{this.i._addUintToInputStream(t,e,r)})}addStringToStream(t,e,r){sj(this,e,e=>{sj(this,t,t=>{this.i._addStringToInputStream(t,e,r)})})}addStringRecordToStream(t,e,r){sj(this,e,e=>{sX(this,Object.keys(t),n=>{sX(this,Object.values(t),i=>{this.i._addFlatHashMapToInputStream(n,i,Object.keys(t).length,e,r)})})})}addProtoToStream(t,e,r,n){sj(this,r,r=>{sj(this,e,e=>{let i=this.i._malloc(t.length);this.i.HEAPU8.set(t,i),this.i._addProtoToInputStream(i,t.length,e,r,n),this.i._free(i)})})}addEmptyPacketToStream(t,e){sj(this,t,t=>{this.i._addEmptyPacketToInputStream(t,e)})}addBoolVectorToStream(t,e,r){sj(this,e,e=>{let n=this.i._allocateBoolVector(t.length);if(!n)throw Error("Unable to allocate new bool vector on heap.");for(let e of t)this.i._addBoolVectorEntry(n,e);this.i._addBoolVectorToInputStream(n,e,r)})}addDoubleVectorToStream(t,e,r){sj(this,e,e=>{let n=this.i._allocateDoubleVector(t.length);if(!n)throw Error("Unable to allocate new double vector on heap.");for(let e of t)this.i._addDoubleVectorEntry(n,e);this.i._addDoubleVectorToInputStream(n,e,r)})}addFloatVectorToStream(t,e,r){sj(this,e,e=>{let n=this.i._allocateFloatVector(t.length);if(!n)throw Error("Unable to allocate new float vector on heap.");for(let e of t)this.i._addFloatVectorEntry(n,e);this.i._addFloatVectorToInputStream(n,e,r)})}addIntVectorToStream(t,e,r){sj(this,e,e=>{let n=this.i._allocateIntVector(t.length);if(!n)throw Error("Unable to allocate new int vector on heap.");for(let e of t)this.i._addIntVectorEntry(n,e);this.i._addIntVectorToInputStream(n,e,r)})}addUintVectorToStream(t,e,r){sj(this,e,e=>{let n=this.i._allocateUintVector(t.length);if(!n)throw Error("Unable to allocate new unsigned int vector on heap.");for(let e of t)this.i._addUintVectorEntry(n,e);this.i._addUintVectorToInputStream(n,e,r)})}addStringVectorToStream(t,e,r){sj(this,e,e=>{let n=this.i._allocateStringVector(t.length);if(!n)throw Error("Unable to allocate new string vector on heap.");for(let e of t)sj(this,e,t=>{this.i._addStringVectorEntry(n,t)});this.i._addStringVectorToInputStream(n,e,r)})}addBoolToInputSidePacket(t,e){sj(this,e,e=>{this.i._addBoolToInputSidePacket(t,e)})}addDoubleToInputSidePacket(t,e){sj(this,e,e=>{this.i._addDoubleToInputSidePacket(t,e)})}addFloatToInputSidePacket(t,e){sj(this,e,e=>{this.i._addFloatToInputSidePacket(t,e)})}addIntToInputSidePacket(t,e){sj(this,e,e=>{this.i._addIntToInputSidePacket(t,e)})}addUintToInputSidePacket(t,e){sj(this,e,e=>{this.i._addUintToInputSidePacket(t,e)})}addStringToInputSidePacket(t,e){sj(this,e,e=>{sj(this,t,t=>{this.i._addStringToInputSidePacket(t,e)})})}addProtoToInputSidePacket(t,e,r){sj(this,r,r=>{sj(this,e,e=>{let n=this.i._malloc(t.length);this.i.HEAPU8.set(t,n),this.i._addProtoToInputSidePacket(n,t.length,e,r),this.i._free(n)})})}addBoolVectorToInputSidePacket(t,e){sj(this,e,e=>{let r=this.i._allocateBoolVector(t.length);if(!r)throw Error("Unable to allocate new bool vector on heap.");for(let e of t)this.i._addBoolVectorEntry(r,e);this.i._addBoolVectorToInputSidePacket(r,e)})}addDoubleVectorToInputSidePacket(t,e){sj(this,e,e=>{let r=this.i._allocateDoubleVector(t.length);if(!r)throw Error("Unable to allocate new double vector on heap.");for(let e of t)this.i._addDoubleVectorEntry(r,e);this.i._addDoubleVectorToInputSidePacket(r,e)})}addFloatVectorToInputSidePacket(t,e){sj(this,e,e=>{let r=this.i._allocateFloatVector(t.length);if(!r)throw Error("Unable to allocate new float vector on heap.");for(let e of t)this.i._addFloatVectorEntry(r,e);this.i._addFloatVectorToInputSidePacket(r,e)})}addIntVectorToInputSidePacket(t,e){sj(this,e,e=>{let r=this.i._allocateIntVector(t.length);if(!r)throw Error("Unable to allocate new int vector on heap.");for(let e of t)this.i._addIntVectorEntry(r,e);this.i._addIntVectorToInputSidePacket(r,e)})}addUintVectorToInputSidePacket(t,e){sj(this,e,e=>{let r=this.i._allocateUintVector(t.length);if(!r)throw Error("Unable to allocate new unsigned int vector on heap.");for(let e of t)this.i._addUintVectorEntry(r,e);this.i._addUintVectorToInputSidePacket(r,e)})}addStringVectorToInputSidePacket(t,e){sj(this,e,e=>{let r=this.i._allocateStringVector(t.length);if(!r)throw Error("Unable to allocate new string vector on heap.");for(let e of t)sj(this,e,t=>{this.i._addStringVectorEntry(r,t)});this.i._addStringVectorToInputSidePacket(r,e)})}attachBoolListener(t,e){sH(this,t,e),sj(this,t,t=>{this.i._attachBoolListener(t)})}attachBoolVectorListener(t,e){sW(this,t,e),sj(this,t,t=>{this.i._attachBoolVectorListener(t)})}attachIntListener(t,e){sH(this,t,e),sj(this,t,t=>{this.i._attachIntListener(t)})}attachIntVectorListener(t,e){sW(this,t,e),sj(this,t,t=>{this.i._attachIntVectorListener(t)})}attachUintListener(t,e){sH(this,t,e),sj(this,t,t=>{this.i._attachUintListener(t)})}attachUintVectorListener(t,e){sW(this,t,e),sj(this,t,t=>{this.i._attachUintVectorListener(t)})}attachDoubleListener(t,e){sH(this,t,e),sj(this,t,t=>{this.i._attachDoubleListener(t)})}attachDoubleVectorListener(t,e){sW(this,t,e),sj(this,t,t=>{this.i._attachDoubleVectorListener(t)})}attachFloatListener(t,e){sH(this,t,e),sj(this,t,t=>{this.i._attachFloatListener(t)})}attachFloatVectorListener(t,e){sW(this,t,e),sj(this,t,t=>{this.i._attachFloatVectorListener(t)})}attachStringListener(t,e){sH(this,t,e),sj(this,t,t=>{this.i._attachStringListener(t)})}attachStringVectorListener(t,e){sW(this,t,e),sj(this,t,t=>{this.i._attachStringVectorListener(t)})}attachProtoListener(t,e,r){sH(this,t,e),sj(this,t,t=>{this.i._attachProtoListener(t,r||!1)})}attachProtoVectorListener(t,e,r){sW(this,t,e),sj(this,t,t=>{this.i._attachProtoVectorListener(t,r||!1)})}attachAudioListener(t,e,r){this.i._attachAudioListener||console.warn('Attempting to use attachAudioListener without support for output audio. Is build dep ":gl_graph_runner_audio_out" missing?'),sH(this,t,(t,r)=>
1{e(t=new Float32Array(t.buffer,t.byteOffset,t.length/4),r)}),sj(this,t,t=>{this.i._attachAudioListener(t,r||!1)})}finishProcessing(){this.i._waitUntilIdle()}closeGraph(){this.i._closeGraph(),this.i.simpleListeners=void 0,this.i.emptyPacketListeners=void 0}},oO=class extends oU{get ea(){return this.i}oa(t,e,r){sj(this,e,e=>{let[n,i]=sV(this,t,e);this.ea._addBoundTextureAsImageToStream(e,n,i,r)})}V(t,e){sH(this,t,e),sj(this,t,t=>{this.ea._attachImageListener(t)})}ba(t,e){sW(this,t,e),sj(this,t,t=>{this.ea._attachImageVectorListener(t)})}},class extends oO{Ha(){this.i._registerModelResourcesGraphService()}});var oO,oU,oD=class extends oC{};async function oN(t,e,r){return async function(t,e,r,n){return sz(t,e,r,n)}(t,r.canvas??(sN()?void 0:document.createElement("canvas")),e,r)}function oB(t,e,r,n){if(t.U){let s=new iR;if(r?.regionOfInterest){if(!t.na)throw Error("This task doesn't support region-of-interest.");var i=r.regionOfInterest;if(i.left>=i.right||i.top>=i.bottom)throw Error("Expected RectF with left < right and top < bottom.");if(i.left<0||i.top<0||i.right>1||i.bottom>1)throw Error("Expected RectF values to be in [0,1].");ro(s,1,(i.left+i.right)/2),ro(s,2,(i.top+i.bottom)/2),ro(s,4,i.right-i.left),ro(s,3,i.bottom-i.top)}else ro(s,1,.5),ro(s,2,.5),ro(s,4,1),ro(s,3,1);if(r?.rotationDegrees){if(r?.rotationDegrees%90!=0)throw Error("Expected rotation to be a multiple of 90\xb0.");if(ro(s,5,-Math.PI*r.rotationDegrees/180),r?.rotationDegrees%180!=0){let[t,n]=sG(e);r=rn(s,3)*n/t,i=rn(s,4)*t/n,ro(s,4,r),ro(s,3,i)}}t.g.addProtoToStream(s.g(),"mediapipe.NormalizedRect",t.U,n)}t.g.oa(e,t.Z,n??performance.now()),t.finishProcessing()}function oG(t,e,r){if(t.baseOptions?.g())throw Error("Task is not initialized with image mode. 'runningMode' must be set to 'IMAGE'.");oB(t,e,r,t.B+1)}function oj(t,e,r,n){if(!t.baseOptions?.g())throw Error("Task is not initialized with video mode. 'runningMode' must be set to 'VIDEO'.");oB(t,e,r,n)}function oV(t,e,r,n){var i=e.data;let s=e.width,o=s*(e=e.height);if((i instanceof Uint8Array||i instanceof Float32Array)&&i.length!==o)throw Error("Unsupported channel count: "+i.length/o);return t=new oc([i],r,!1,t.g.i.canvas,t.P,s,e),n?t.clone():t}var oX=class extends sQ{constructor(t,e,r,n){super(t),this.g=t,this.Z=e,this.U=r,this.na=n,this.P=new s9}l(t,e=!0){if("runningMode"in t&&ri(this.baseOptions,2,!!t.runningMode&&"IMAGE"!==t.runningMode),void 0!==t.canvas&&this.g.i.canvas!==t.canvas)throw Error("You must create a new task to reset the canvas.");return super.l(t,e)}close(){this.P.close(),super.close()}};oX.prototype.close=oX.prototype.close;var oH=class extends oX{constructor(t,e){super(new oD(t,e),"image_in","norm_rect_in",!1),this.j={detections:[]},e5(t=this.h=new iK,0,1,e=new iH),ro(this.h,2,.5),ro(this.h,3,.3)}get baseOptions(){return e3(this.h,iH,1)}set baseOptions(t){e5(this.h,0,1,t)}o(t){return"minDetectionConfidence"in t&&ro(this.h,2,t.minDetectionConfidence??.5),"minSuppressionThreshold"in t&&ro(this.h,3,t.minSuppressionThreshold??.3),this.l(t)}D(t,e){return this.j={detections:[]},oG(this,t,e),this.j}F(t,e,r){return this.j={detections:[]},oj(this,t,r,e),this.j}m(){var t=new ic;iu(t,"image_in"),iu(t,"norm_rect_in"),il(t,"detections");let e=new n7;rF(e,i$,this.h);let r=new ii;it(r,"mediapipe.tasks.vision.face_detector.FaceDetectorGraph"),ie(r,"IMAGE:image_in"),ie(r,"NORM_RECT:norm_rect_in"),ir(r,"DETECTIONS:detections"),r.o(e),ih(t,r),this.g.attachProtoVectorListener("detections",(t,e)=>{for(let e of t)t=iT(e),this.j.detections.push(sR(t));s$(this,e)}),this.g.attachEmptyPacketListener("detections",t=>{s$(this,t)}),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};oH.prototype.detectForVideo=oH.prototype.F,oH.prototype.detect=oH.prototype.D,oH.prototype.setOptions=oH.prototype.o,oH.createFromModelPath=async function(t,e){return oN(oH,t,{baseOptions:{modelAssetPath:e}})},oH.createFromModelBuffer=function(t,e){return oN(oH,t,{baseOptions:{modelAssetBuffer:e}})},oH.createFromOptions=function(t,e){return oN(oH,t,e)};var oW=oP([61,146],[146,91],[91,181],[181,84],[84,17],[17,314],[314,405],[405,321],[321,375],[375,291],[61,185],[185,40],[40,39],[39,37],[37,0],[0,267],[267,269],[269,270],[270,409],[409,291],[78,95],[95,88],[88,178],[178,87],[87,14],[14,317],[317,402],[402,318],[318,324],[324,308],[78,191],[191,80],[80,81],[81,82],[82,13],[13,312],[312,311],[311,310],[310,415],[415,308]),oz=oP([263,249],[249,390],[390,373],[373,374],[374,380],[380,381],[381,382],[382,362],[263,466],[466,388],[388,387],[387,386],[386,385],[385,384],[384,398],[398,362]),oK=oP([276,283],[283,282],[282,295],[295,285],[300,293],[293,334],[334,296],[296,336]),oY=oP([474,475],[475,476],[476,477],[477,474]),o$=oP([33,7],[7,163],[163,144],[144,145],[145,153],[153,154],[154,155],[155,133],[33,246],[246,161],[161,160],[160,159],[159,158],[158,157],[157,173],[173,133]),oq=oP([46,53],[53,52],[52,65],[65,55],[70,63],[63,105],[105,66],[66,107]),oJ=oP([469,470],[470,471],[471,472],[472,469]),oZ=oP([10,338],[338,297],[297,332],[332,284],[284,251],[251,389],[389,356],[356,454],[454,323],[323,3
161],[361,288],[288,397],[397,365],[365,379],[379,378],[378,400],[400,377],[377,152],[152,148],[148,176],[176,149],[149,150],[150,136],[136,172],[172,58],[58,132],[132,93],[93,234],[234,127],[127,162],[162,21],[21,54],[54,103],[103,67],[67,109],[109,10]),oQ=[...oW,...oz,...oK,...o$,...oq,...oZ],o1=oP
vendor: 14,070 bytes, line 1
1([127,34],[34,139],[139,127],[11,0],[0,37],[37,11],[232,231],[231,120],[120,232],[72,37],[37,39],[39,72],[128,121],[121,47],[47,128],[232,121],[121,128],[128,232],[104,69],[69,67],[67,104],[175,171],[171,148],[148,175],[118,50],[50,101],[101,118],[73,39],[39,40],[40,73],[9,151],[151,108],[108,9],[48,115],[115,131],[131,48],[194,204],[204,211],[211,194],[74,40],[40,185],[185,74],[80,42],[42,183],[183,80],[40,92],[92,186],[186,40],[230,229],[229,118],[118,230],[202,212],[212,214],[214,202],[83,18],[18,17],[17,83],[76,61],[61,146],[146,76],[160,29],[29,30],[30,160],[56,157],[157,173],[173,56],[106,204],[204,194],[194,106],[135,214],[214,192],[192,135],[203,165],[165,98],[98,203],[21,71],[71,68],[68,21],[51,45],[45,4],[4,51],[144,24],[24,23],[23,144],[77,146],[146,91],[91,77],[205,50],[50,187],[187,205],[201,200],[200,18],[18,201],[91,106],[106,182],[182,91],[90,91],[91,181],[181,90],[85,84],[84,17],[17,85],[206,203],[203,36],[36,206],[148,171],[171,140],[140,148],[92,40],[40,39],[39,92],[193,189],[189,244],[244,193],[159,158],[158,28],[28,159],[247,246],[246,161],[161,247],[236,3],[3,196],[196,236],[54,68],[68,104],[104,54],[193,168],[168,8],[8,193],[117,228],[228,31],[31,117],[189,193],[193,55],[55,189],[98,97],[97,99],[99,98],[126,47],[47,100],[100,126],[166,79],[79,218],[218,166],[155,154],[154,26],[26,155],[209,49],[49,131],[131,209],[135,136],[136,150],[150,135],[47,126],[126,217],[217,47],[223,52],[52,53],[53,223],[45,51],[51,134],[134,45],[211,170],[170,140],[140,211],[67,69],[69,108],[108,67],[43,106],[106,91],[91,43],[230,119],[119,120],[120,230],[226,130],[130,247],[247,226],[63,53],[53,52],[52,63],[238,20],[20,242],[242,238],[46,70],[70,156],[156,46],[78,62],[62,96],[96,78],[46,53],[53,63],[63,46],[143,34],[34,227],[227,143],[123,117],[117,111],[111,123],[44,125],[125,19],[19,44],[236,134],[134,51],[51,236],[216,206],[206,205],[205,216],[154,153],[153,22],[22,154],[39,37],[37,167],[167,39],[200,201],[201,208],[208,200],[36,142],[142,100],[100,36],[57,212],[212,202],[202,57],[20,60],[60,99],[99,20],[28,158],[158,157],[157,28],[35,226],[226,113],[113,35],[160,159],[159,27],[27,160],[204,202],[202,210],[210,204],[113,225],[225,46],[46,113],[43,202],[202,204],[204,43],[62,76],[76,77],[77,62],[137,123],[123,116],[116,137],[41,38],[38,72],[72,41],[203,129],[129,142],[142,203],[64,98],[98,240],[240,64],[49,102],[102,64],[64,49],[41,73],[73,74],[74,41],[212,216],[216,207],[207,212],[42,74],[74,184],[184,42],[169,170],[170,211],[211,169],[170,149],[149,176],[176,170],[105,66],[66,69],[69,105],[122,6],[6,168],[168,122],[123,147],[147,187],[187,123],[96,77],[77,90],[90,96],[65,55],[55,107],[107,65],[89,90],[90,180],[180,89],[101,100],[100,120],[120,101],[63,105],[105,104],[104,63],[93,137],[137,227],[227,93],[15,86],[86,85],[85,15],[129,102],[102,49],[49,129],[14,87],[87,86],[86,14],[55,8],[8,9],[9,55],[100,47],[47,121],[121,100],[145,23],[23,22],[22,145],[88,89],[89,179],[179,88],[6,122],[122,196],[196,6],[88,95],[95,96],[96,88],[138,172],[172,136],[136,138],[215,58],[58,172],[172,215],[115,48],[48,219],[219,115],[42,80],[80,81],[81,42],[195,3],[3,51],[51,195],[43,146],[146,61],[61,43],[171,175],[175,199],[199,171],[81,82],[82,38],[38,81],[53,46],[46,225],[225,53],[144,163],[163,110],[110,144],[52,65],[65,66],[66,52],[229,228],[228,117],[117,229],[34,127],[127,234],[234,34],[107,108],[108,69],[69,107],[109,108],[108,151],[151,109],[48,64],[64,235],[235,48],[62,78],[78,191],[191,62],[129,209],[209,126],[126,129],[111,35],[35,143],[143,111],[117,123],[123,50],[50,117],[222,65],[65,52],[52,222],[19,125],[125,141],[141,19],[221,55],[55,65],[65,221],[3,195],[195,197],[197,3],[25,7],[7,33],[33,25],[220,237],[237,44],[44,220],[70,71],[71,139],[139,70],[122,193],[193,245],[245,122],[247,130],[130,33],[33,247],[71,21],[21,162],[162,71],[170,169],[169,150],[150,170],[188,174],[174,196],[196,188],[216,186],[186,92],[92,216],[2,97],[97,167],[167,2],[141,125],[125,241],[241,141],[164,167],[167,37],[37,164],[72,38],[38,12],[12,72],[38,82],[82,13],[13,38],[63,68],[68,71],[71,63],[226,35],[35,111],[111,226],[101,50],[50,205],[205,101],[206,92],[92,165],[165,206],[209,198],[198,217],[217,209],[165,167],[167,97],[97,165],[220,115],[115,218],[218,220],[133,112],[112,243],[243,133],[239,238],[238,241],[241,239],[214,135],[135,169],[169,214],[190,173],[173,133],[133,190],[171,208],[208,32],[32,171],[125,44],[44,237],[237,125],[86,87],[87,178],[178,86],[85,86],[86,179],[179,85],[84,85],[85,180],[180,84],[83,84],[84,181],[181,83],[201,83],[83,182],[182,201],[137,93],[93,132],[132,137],[76,62],[62,183],[183,76],[61,76],[76,184],[184,61],[57,61],[61,185],[185,57],[212,57],[57,186],[186,212],[214,207],[207,187],[187,214],[34,143],[143,156],[156,34],[79,239],[239,237],[237,79],[123,137],[137,177],[177,123],[44,1],[1,4],[4,44],[201,194],[194,32],[32,201],[64,102],[102,129],[129,64],[213,215],[215,138],[138,213],[59,166],[166,219],[219,59],[242,99],[99,97],[97,242],[2,94],[94,141],[141,2],[75,59],[59,235],[235,75],[24,110],[110,228],[228,24],[25,130],[130,226],[226,25],[23,24],[24,229],[229,23],[22,23],[23,230],[230,22],[26,22],[22,231],[231,26],[112,26],[26,232],[232,112],[189,190],[190,243],[243,189],[221,56],[56,190],[190,221],[28,56],[56,221],[221,28],[27,28],[28,222],[222,27],[29,27],[27,223],[223,29],[30,29],[29,224],[224,30],[247,30],[30,225],[225,247],[238,79],[79,20],[20,238],[166,59],[59,75],[75,166],[60,75],[75,240],[240,60],[147,177],[177,215],[215,147],[20,79],[79,166],[166,20],[187,147],[147,213],[213,187],[112,233],[233,244],[244,112],[233,128],[128,245],[245,233],[128,114],[114,188],[188,128],[114,217],[217,174],[174,114],[131,115],[115,220],[220,131],[217,198],[198,236],[236,217],[198,131],[131,134],[134,198],[177,132],[132,58],[58,177],[143,35],[35,124],[124,143],[110,163],[163,7],[7,110],[228,110],[110,25],[25,228],[356,389],[389,368],[368,356],[11,302],[302,267],[267,11],[452,350],[350,349],[349,452],[302,303],[303,269],[269,302],[357,343],[343,277],[277,357],[452,453],[453,357],[357,452],[333,332],[332,297],[297,333],[175,152],[152,377],[377,175],[347,348],[348,330],[330,347],[303,304],[304,270],[270,303],[9,336],[336,337],[337,9],[278,279],[279,360],[360,278],[418,262],[262,431],[431,418],[304,408],[408,409],[409,304],[310,415],[415,407],[407,310],[270,409],[409,410],[410,270],[450,348],[348,347],[347,450],[422,430],[430,434],[434,422],[313,314],[314,17],[17,313],[306,307],[307,375],[375,306],[387,388],[388,260],[260,387],[286,414],[414,398],[398,286],[335,406],[406,418],[418,335],[364,367],[367,416],[416,364],[423,358],[358,327],[327,423],[251,284],[284,298],[298,251],[281,5],[5,4],[4,281],[373,374],[374,253],[253,373],[307,320],[320,321],[321,307],[425,427],[427,411],[411,425],[421,313],[313,18],[18,421],[321,405],[405,406],[406,321],[320,404],[404,405],[405,320],[315,16],[16,17],[17,315],[426,425],[425,266],[266,426],[377,400],[400,369],[369,377],[322,391],[391,269],[269,322],[417,465],[465,464],[464,417],[386,257],[257,258],[258,386],[466,260],[260,388],[388,466],[456,399],[399,419],[419,456],[284,332],[332,333],[333,284],[417,285],[285,8],[8,417],[346,340],[340,261],[261,346],[413,441],[441,285],[285,413],[327,460],[460,328],[328,327],[355,371],[371,329],[329,355],[392,439],[439,438],[438,392],[382,341],[341,256],[256,382],[429,420],[420,360],[360,429],[364,394],[394,379],[379,364],[277,343],[343,437],[437,277],[443,444],[444,283],[283,443],[275,440],[440,363],[363,275],[431,262],[262,369],[369,431],[297,338],[338,337],[337,297],[273,375],[375,321],[321,273],[450,451],[451,349],[349,450],[446,342],[342,467],[467,446],[293,334],[334,282],[282,293],[458,461],[461,462],[462,458],[276,353],[353,383],[383,276],[308,324],[324,325],[325,308],[276,300],[300,293],[293,276],[372,345],[345,447],[447,372],[352,345],[345,340],[340,352],[274,1],[1,19],[19,274],[456,248],[248,281],[281,456],[436,427],[427,425],[425,436],[381,256],[256,252],[252,381],[269,391],[391,393],[393,269],[200,199],[199,428],[428,200],[266,330],[330,329],[329,266],[287,273],[273,422],[422,287],[250,462],[462,328],[328,250],[258,286],[286,384],[384,258],[265,353],[353,342],[342,265],[387,259],[259,257],[257,387],[424,431],[431,430],[430,424],[342,353],[353,276],[276,342],[273,335],[335,424],[424,273],[292,325],[325,307],[307,292],[366,447],[447,345],[345,366],[271,303],[303,302],[302,271],[423,266],[266,371],[371,423],[294,455],[455,460],[460,294],[279,278],[278,294],[294,279],[271,272],[272,304],[304,271],[432,434],[434,427],[427,432],[272,407],[407,408],[408,272],[394,430],[430,431],[431,394],[395,369],[369,400],[400,395],[334,333],[333,299],[299,334],[351,417],[417,168],[168,351],[352,280],[280,411],[411,352],[325,319],[319,320],[320,325],[295,296],[296,336],[336,295],[319,403],[403,404],[404,319],[330,348],[348,349],[349,330],[293,298],[298,333],[333,293],[323,454],[454,447],[447,323],[15,16],[16,315],[315,15],[358,429],[429,279],[279,358],[14,15],[15,316],[316,14],[285,336],[336,9],[9,285],[329,349],[349,350],[350,329],[374,380],[380,252],[252,374],[318,402],[402,403],[403,318],[6,197],[197,419],[419,6],[318,319],[319,325],[325,318],[367,364],[364,365],[365,367],[435,367],[367,397],[397,435],[344,438],[438,439],[439,344],[272,271],[271,311],[311,272],[195,5],[5,281],[281,195],[273,287],[287,291],[291,273],[396,428],[428,199],[199,396],[311,271],[271,268],[268,311],[283,444],[444,445],[445,283],[373,254],[254,339],[339,373],[282,334],[334,296],[296,282],[449,347],[347,346],[346,449],[264,447],[447,454],[454,264],[336,296],[296,299],[299,336],[338,10],[10,151],[151,338],[278,439],[439,455],[455,278],[292,407],[407,415],[415,292],[358,371],[371,355],[355,358],[340,345],[345,372],[372,340],[346,347],[347,280],[280,346],[442,443],[443,282],[282,442],[19,94],[94,370],[370,19],[441,442],[442,295],[295,441],[248,419],[419,197],[197,248],[263,255],[255,359],[359,263],[440,275],[275,274],[274,440],[300,383],[383,368],[368,300],[351,412],[412,465],[465,351],[263,467],[467,466],[466,263],[301,368],[368,389],[389,301],[395,378],[378,379],[379,395],[412,351],[351,419],[419,412],[436,426],[426,322],[322,436],[2,164],[164,393],[393,2],[370,462],[462,461],[461,370],[164,0],[0,267],[267,164],[302,11],[11,12],[12,302],[268,12],[12,13],[13,268],[293,300],[300,301],[301,293],[446,261],[261,340],[340,446],[330,266],[266,425],[425,330],[426,423],[423,391],[391,426],[429,355],[355,437],[437,429],[391,327],[327,326],[326,391],[440,457],[457,438],[438,440],[341,382],[382,362],[362,341],[459,457],[457,461],[461,459],[434,430],[430,394],[394,434],[414,463],[463,362],[362,414],[396,369],[369,262],[262,396],[354,461],[461,457],[457,354],[316,403],[403,402],[402,316],[315,404],[404,403],[403,315],[314,405],[405,404],[404,314],[313,406],[406,405],[405,313],[421,418],[418,406],[406,421],[366,401],[401,361],[361,366],[306,408],[408,407],[407,306],[291,409],[409,408],[408,291],[287,410],[410,409],[409,287],[432,436],[436,410],[410,432],[434,416],[416,411],[411,434],[264,368],[368,383],[383,264],[309,438],[438,457],[457,309],[352,376],[376,401],[401,352],[274,275],[275,4],[4,274],[421,428],[428,262],[262,421],[294,327],[327,358],[358,294],[433,416],[416,367],[367,433],[289,455],[455,439],[439,289],[462,370],[370,326],[326,462],[2,326],[326,370],[370,2],[305,460],[460,455],[455,305],[254,449],[449,448],[448,254],[255,261],[261,446],[446,255],[253,450],[450,449],[449,253],[252,451],[451,450],[450,252],[256,452],[452,451],[451,256],[341,453],[453,452],[452,341],[413,464],[464,463],[463,413],[441,413],[413,414],[414,441],[258,442],[442,441],[441,258],[257,443],[443,442],[442,257],[259,444],[444,443],[443,259],[260,445],[445,444],[444,260],[467,342],[342,445],[445,467],[459,458],[458,250],[250,459],[289,392],[392,290],[290,289],[290,328],[328,460],[460,290],[376,433],[433,435],[435,376],[250,290],[290,392],[392,250],[411,416],[416,433],[433,411],[341,463],[463,464],[464,341],[453,464],[464,465],[465,453],[357,465],[465,412],[412,357],[343,412],[412,399],[399,343],[360,363],[363,440],[440,360],[437,399],[399,456],[456,437],[420,456],[456,363],[363,420],[401,435],[435,288],[288,401],[372,383],[383,353],[353,372],[339,255],[255,249],[249,339],[448,261],[261,255],[255,448],[133,243],[243,190],[190,133],[133,155],[155,112],[112,133],[33,246],[246,247],[247,33],[33,130],[130,25],[25,33],[398,384],[384,286],[286,398],[362,398],[398,414],[414,362],[362,463],[463,341],[341,362],[263,359],[359,467],[467,263],[263,249],[249,255],[255,263],[466,467],[467,260],[260,466],[75,60],[60,166],[166,75],[238,239],[239,79],[79,238],[162,127],[127,139],[139,162],[72,11],[11,37],[37,72],[121,232],[232,120],[120,121],[73,72],[72,39],[39,73],[114,128],[128,47],[47,114],[233,232],[232,128],[128,233],[103,104],[104,67],[67,103],[152,175],[175,148],[148,152],[119,118],[118,101],[101,119],[74,73],[73,40],[40,74],[107,9],[9,108],[108,107],[49,48],[48,131],[131,49],[32,194],[194,211],[211,32],[184,74],[74,185],[185,184],[191,80],[80,183],[183,191],[185,40],[40,186],[186,185],[119,230],[230,118],[118,119],[210,202],[202,214],[214,210],[84,83],[83,17],[17,84],[77,76],[76,146],[146,77],[161,160],[160,30],[30,161],[190,56],[56,173],[173,190],[182,106],[106,194],[194,182],[138,135],[135,192],[192,138],[129,203],[203,98],[98,129],[54,21],[21,68],[68,54],[5,51],[51,4],[4,5],[145,144],[144,23],[23,145],[90,77],[77,91],[91,90],[207,205],[205,187],[187,207],[83,201],[201,18],[18,83],[181,91],[91,182],[182,181],[180,90],[90,181],[181,180],[16,85],[85,17],[17,16],[205,206],[206,36],[36,205],[176,148],[148,140],[140,176],[165,92],[92,39],[39,165],[245,193],[193,244],[244,245],[27,159],[159,28],[28,27],[30,247],[247,161],[161,30],[174,236],[236,196],[196,174],[103,54],[54,104],[104,103],[55,193],[193,8],[8,55],[111,117],[117,31],[31,111],[221,189],[189,55],[55,221],[240,98],[98,99],[99,240],[142,126],[126,100],[100,142],[219,166],[166,218],[218,219],[112,155],[155,26],[26,112],[198,209],[209,131],[131,198],[169,135],[135,150],[150,169],[114,47],[47,217],[217,114],[224,223],[223,53],[53,224],[220,45],[45,134],[134,220],[32,211],[211,140],[140,32],[109,67],[67,108],[108,109],[146,43],[43,91],[91,146],[231,230],[230,120],[120,23
vendor: 10,283 bytes, line 1
11],[113,226],[226,247],[247,113],[105,63],[63,52],[52,105],[241,238],[238,242],[242,241],[124,46],[46,156],[156,124],[95,78],[78,96],[96,95],[70,46],[46,63],[63,70],[116,143],[143,227],[227,116],[116,123],[123,111],[111,116],[1,44],[44,19],[19,1],[3,236],[236,51],[51,3],[207,216],[216,205],[205,207],[26,154],[154,22],[22,26],[165,39],[39,167],[167,165],[199,200],[200,208],[208,199],[101,36],[36,100],[100,101],[43,57],[57,202],[202,43],[242,20],[20,99],[99,242],[56,28],[28,157],[157,56],[124,35],[35,113],[113,124],[29,160],[160,27],[27,29],[211,204],[204,210],[210,211],[124,113],[113,46],[46,124],[106,43],[43,204],[204,106],[96,62],[62,77],[77,96],[227,137],[137,116],[116,227],[73,41],[41,72],[72,73],[36,203],[203,142],[142,36],[235,64],[64,240],[240,235],[48,49],[49,64],[64,48],[42,41],[41,74],[74,42],[214,212],[212,207],[207,214],[183,42],[42,184],[184,183],[210,169],[169,211],[211,210],[140,170],[170,176],[176,140],[104,105],[105,69],[69,104],[193,122],[122,168],[168,193],[50,123],[123,187],[187,50],[89,96],[96,90],[90,89],[66,65],[65,107],[107,66],[179,89],[89,180],[180,179],[119,101],[101,120],[120,119],[68,63],[63,104],[104,68],[234,93],[93,227],[227,234],[16,15],[15,85],[85,16],[209,129],[129,49],[49,209],[15,14],[14,86],[86,15],[107,55],[55,9],[9,107],[120,100],[100,121],[121,120],[153,145],[145,22],[22,153],[178,88],[88,179],[179,178],[197,6],[6,196],[196,197],[89,88],[88,96],[96,89],[135,138],[138,136],[136,135],[138,215],[215,172],[172,138],[218,115],[115,219],[219,218],[41,42],[42,81],[81,41],[5,195],[195,51],[51,5],[57,43],[43,61],[61,57],[208,171],[171,199],[199,208],[41,81],[81,38],[38,41],[224,53],[53,225],[225,224],[24,144],[144,110],[110,24],[105,52],[52,66],[66,105],[118,229],[229,117],[117,118],[227,34],[34,234],[234,227],[66,107],[107,69],[69,66],[10,109],[109,151],[151,10],[219,48],[48,235],[235,219],[183,62],[62,191],[191,183],[142,129],[129,126],[126,142],[116,111],[111,143],[143,116],[118,117],[117,50],[50,118],[223,222],[222,52],[52,223],[94,19],[19,141],[141,94],[222,221],[221,65],[65,222],[196,3],[3,197],[197,196],[45,220],[220,44],[44,45],[156,70],[70,139],[139,156],[188,122],[122,245],[245,188],[139,71],[71,162],[162,139],[149,170],[170,150],[150,149],[122,188],[188,196],[196,122],[206,216],[216,92],[92,206],[164,2],[2,167],[167,164],[242,141],[141,241],[241,242],[0,164],[164,37],[37,0],[11,72],[72,12],[12,11],[12,38],[38,13],[13,12],[70,63],[63,71],[71,70],[31,226],[226,111],[111,31],[36,101],[101,205],[205,36],[203,206],[206,165],[165,203],[126,209],[209,217],[217,126],[98,165],[165,97],[97,98],[237,220],[220,218],[218,237],[237,239],[239,241],[241,237],[210,214],[214,169],[169,210],[140,171],[171,32],[32,140],[241,125],[125,237],[237,241],[179,86],[86,178],[178,179],[180,85],[85,179],[179,180],[181,84],[84,180],[180,181],[182,83],[83,181],[181,182],[194,201],[201,182],[182,194],[177,137],[137,132],[132,177],[184,76],[76,183],[183,184],[185,61],[61,184],[184,185],[186,57],[57,185],[185,186],[216,212],[212,186],[186,216],[192,214],[214,187],[187,192],[139,34],[34,156],[156,139],[218,79],[79,237],[237,218],[147,123],[123,177],[177,147],[45,44],[44,4],[4,45],[208,201],[201,32],[32,208],[98,64],[64,129],[129,98],[192,213],[213,138],[138,192],[235,59],[59,219],[219,235],[141,242],[242,97],[97,141],[97,2],[2,141],[141,97],[240,75],[75,235],[235,240],[229,24],[24,228],[228,229],[31,25],[25,226],[226,31],[230,23],[23,229],[229,230],[231,22],[22,230],[230,231],[232,26],[26,231],[231,232],[233,112],[112,232],[232,233],[244,189],[189,243],[243,244],[189,221],[221,190],[190,189],[222,28],[28,221],[221,222],[223,27],[27,222],[222,223],[224,29],[29,223],[223,224],[225,30],[30,224],[224,225],[113,247],[247,225],[225,113],[99,60],[60,240],[240,99],[213,147],[147,215],[215,213],[60,20],[20,166],[166,60],[192,187],[187,213],[213,192],[243,112],[112,244],[244,243],[244,233],[233,245],[245,244],[245,128],[128,188],[188,245],[188,114],[114,174],[174,188],[134,131],[131,220],[220,134],[174,217],[217,236],[236,174],[236,198],[198,134],[134,236],[215,177],[177,58],[58,215],[156,143],[143,124],[124,156],[25,110],[110,7],[7,25],[31,228],[228,25],[25,31],[264,356],[356,368],[368,264],[0,11],[11,267],[267,0],[451,452],[452,349],[349,451],[267,302],[302,269],[269,267],[350,357],[357,277],[277,350],[350,452],[452,357],[357,350],[299,333],[333,297],[297,299],[396,175],[175,377],[377,396],[280,347],[347,330],[330,280],[269,303],[303,270],[270,269],[151,9],[9,337],[337,151],[344,278],[278,360],[360,344],[424,418],[418,431],[431,424],[270,304],[304,409],[409,270],[272,310],[310,407],[407,272],[322,270],[270,410],[410,322],[449,450],[450,347],[347,449],[432,422],[422,434],[434,432],[18,313],[313,17],[17,18],[291,306],[306,375],[375,291],[259,387],[387,260],[260,259],[424,335],[335,418],[418,424],[434,364],[364,416],[416,434],[391,423],[423,327],[327,391],[301,251],[251,298],[298,301],[275,281],[281,4],[4,275],[254,373],[373,253],[253,254],[375,307],[307,321],[321,375],[280,425],[425,411],[411,280],[200,421],[421,18],[18,200],[335,321],[321,406],[406,335],[321,320],[320,405],[405,321],[314,315],[315,17],[17,314],[423,426],[426,266],[266,423],[396,377],[377,369],[369,396],[270,322],[322,269],[269,270],[413,417],[417,464],[464,413],[385,386],[386,258],[258,385],[248,456],[456,419],[419,248],[298,284],[284,333],[333,298],[168,417],[417,8],[8,168],[448,346],[346,261],[261,448],[417,413],[413,285],[285,417],[326,327],[327,328],[328,326],[277,355],[355,329],[329,277],[309,392],[392,438],[438,309],[381,382],[382,256],[256,381],[279,429],[429,360],[360,279],[365,364],[364,379],[379,365],[355,277],[277,437],[437,355],[282,443],[443,283],[283,282],[281,275],[275,363],[363,281],[395,431],[431,369],[369,395],[299,297],[297,337],[337,299],[335,273],[273,321],[321,335],[348,450],[450,349],[349,348],[359,446],[446,467],[467,359],[283,293],[293,282],[282,283],[250,458],[458,462],[462,250],[300,276],[276,383],[383,300],[292,308],[308,325],[325,292],[283,276],[276,293],[293,283],[264,372],[372,447],[447,264],[346,352],[352,340],[340,346],[354,274],[274,19],[19,354],[363,456],[456,281],[281,363],[426,436],[436,425],[425,426],[380,381],[381,252],[252,380],[267,269],[269,393],[393,267],[421,200],[200,428],[428,421],[371,266],[266,329],[329,371],[432,287],[287,422],[422,432],[290,250],[250,328],[328,290],[385,258],[258,384],[384,385],[446,265],[265,342],[342,446],[386,387],[387,257],[257,386],[422,424],[424,430],[430,422],[445,342],[342,276],[276,445],[422,273],[273,424],[424,422],[306,292],[292,307],[307,306],[352,366],[366,345],[345,352],[268,271],[271,302],[302,268],[358,423],[423,371],[371,358],[327,294],[294,460],[460,327],[331,279],[279,294],[294,331],[303,271],[271,304],[304,303],[436,432],[432,427],[427,436],[304,272],[272,408],[408,304],[395,394],[394,431],[431,395],[378,395],[395,400],[400,378],[296,334],[334,299],[299,296],[6,351],[351,168],[168,6],[376,352],[352,411],[411,376],[307,325],[325,320],[320,307],[285,295],[295,336],[336,285],[320,319],[319,404],[404,320],[329,330],[330,349],[349,329],[334,293],[293,333],[333,334],[366,323],[323,447],[447,366],[316,15],[15,315],[315,316],[331,358],[358,279],[279,331],[317,14],[14,316],[316,317],[8,285],[285,9],[9,8],[277,329],[329,350],[350,277],[253,374],[374,252],[252,253],[319,318],[318,403],[403,319],[351,6],[6,419],[419,351],[324,318],[318,325],[325,324],[397,367],[367,365],[365,397],[288,435],[435,397],[397,288],[278,344],[344,439],[439,278],[310,272],[272,311],[311,310],[248,195],[195,281],[281,248],[375,273],[273,291],[291,375],[175,396],[396,199],[199,175],[312,311],[311,268],[268,312],[276,283],[283,445],[445,276],[390,373],[373,339],[339,390],[295,282],[282,296],[296,295],[448,449],[449,346],[346,448],[356,264],[264,454],[454,356],[337,336],[336,299],[299,337],[337,338],[338,151],[151,337],[294,278],[278,455],[455,294],[308,292],[292,415],[415,308],[429,358],[358,355],[355,429],[265,340],[340,372],[372,265],[352,346],[346,280],[280,352],[295,442],[442,282],[282,295],[354,19],[19,370],[370,354],[285,441],[441,295],[295,285],[195,248],[248,197],[197,195],[457,440],[440,274],[274,457],[301,300],[300,368],[368,301],[417,351],[351,465],[465,417],[251,301],[301,389],[389,251],[394,395],[395,379],[379,394],[399,412],[412,419],[419,399],[410,436],[436,322],[322,410],[326,2],[2,393],[393,326],[354,370],[370,461],[461,354],[393,164],[164,267],[267,393],[268,302],[302,12],[12,268],[312,268],[268,13],[13,312],[298,293],[293,301],[301,298],[265,446],[446,340],[340,265],[280,330],[330,425],[425,280],[322,426],[426,391],[391,322],[420,429],[429,437],[437,420],[393,391],[391,326],[326,393],[344,440],[440,438],[438,344],[458,459],[459,461],[461,458],[364,434],[434,394],[394,364],[428,396],[396,262],[262,428],[274,354],[354,457],[457,274],[317,316],[316,402],[402,317],[316,315],[315,403],[403,316],[315,314],[314,404],[404,315],[314,313],[313,405],[405,314],[313,421],[421,406],[406,313],[323,366],[366,361],[361,323],[292,306],[306,407],[407,292],[306,291],[291,408],[408,306],[291,287],[287,409],[409,291],[287,432],[432,410],[410,287],[427,434],[434,411],[411,427],[372,264],[264,383],[383,372],[459,309],[309,457],[457,459],[366,352],[352,401],[401,366],[1,274],[274,4],[4,1],[418,421],[421,262],[262,418],[331,294],[294,358],[358,331],[435,433],[433,367],[367,435],[392,289],[289,439],[439,392],[328,462],[462,326],[326,328],[94,2],[2,370],[370,94],[289,305],[305,455],[455,289],[339,254],[254,448],[448,339],[359,255],[255,446],[446,359],[254,253],[253,449],[449,254],[253,252],[252,450],[450,253],[252,256],[256,451],[451,252],[256,341],[341,452],[452,256],[414,413],[413,463],[463,414],[286,441],[441,414],[414,286],[286,258],[258,441],[441,286],[258,257],[257,442],[442,258],[257,259],[259,443],[443,257],[259,260],[260,444],[444,259],[260,467],[467,445],[445,260],[309,459],[459,250],[250,309],[305,289],[289,290],[290,305],[305,290],[290,460],[460,305],[401,376],[376,435],[435,401],[309,250],[250,392],[392,309],[376,411],[411,433],[433,376],[453,341],[341,464],[464,453],[357,453],[453,465],[465,357],[343,357],[357,412],[412,343],[437,343],[343,399],[399,437],[344,360],[360,440],[440,344],[420,437],[437,456],[456,420],[360,420],[420,363],[363,360],[361,401],[401,288],[288,361],[265,372],[372,353],[353,265],[390,339],[339,249],[249,390],[339,448],[448,255],[255,339]);function 
vendor: 419 bytes, line 1
1o2(t){t.j={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]}}var o3=class extends oX{constructor(t,e){super(new oD(t,e),"image_in","norm_rect",!1),this.j={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]},this.outputFacialTransformationMatrixes=this.outputFaceBlendshapes=!1,e5(t=this.h=new iZ,0,1,e=new iH),this.v=new iJ,e5(this.h,0,3,this.v),this.s=new iK,e5(this.h,0,2,this.s),r
1s(this.s,4,1),ro(this.s,2,.5),ro(this.v,2,.5),ro(this.h,4,.5)}get baseOptions(){return e3(this.h,iH,1)}set baseOptions(t){e5(this.h,0,1,t)}o(t){return"numFaces"in t&&rs(this.s,4,t.numFaces??1),"minFaceDetectionConfidence"in t&&ro(this.s,2,t.minFaceDetectionConfidence??.5),"minTrackingConfidence"in t&&ro(this.h,4,t.minTrackingConfidence??.5),"minFacePresenceConfidence"in t&&ro(this.v,2,t.minFacePresenceConfidence??.5),"outputFaceBlendshapes"in t&&(this.outputFaceBlendshapes=!!t.outputFaceBlendshapes),"outputFacialTransformationMatrixes"in t&&(this.outputFacialTransformationMatrixes=!!t.outputFacialTransformationMatrixes),this.l(t)}D(t,e){return o2(this),oG(this,t,e),this.j}F(t,e,r){return o2(this),oj(this,t,r,e),this.j}m(){var t=new ic;iu(t,"image_in"),iu(t,"norm_rect"),il(t,"face_landmarks");let e=new n7;rF(e,i2,this.h);let r=new ii;it(r,"mediapipe.tasks.vision.face_landmarker.FaceLandmarkerGraph"),ie(r,"IMAGE:image_in"),ie(r,"NORM_RECT:norm_rect"),ir(r,"NORM_LANDMARKS:face_landmarks"),r.o(e),ih(t,r),this.g.attachProtoVectorListener("face_landmarks",(t,e)=>{for(let e of t)t=ix(e),this.j.faceLandmarks.push(sF(t));s$(this,e)}),this.g.attachEmptyPacketListener("face_landmarks",t=>{s$(this,t)}),this.outputFaceBlendshapes&&(il(t,"blendshapes"),ir(r,"BLENDSHAPES:blendshapes"),this.g.attachProtoVectorListener("blendshapes",(t,e)=>{if(this.outputFaceBlendshapes)for(let e of t)t=i_(e),this.j.faceBlendshapes.push(sL(t.g()??[]));s$(this,e)}),this.g.attachEmptyPacketListener("blendshapes",t=>{s$(this,t)})),this.outputFacialTransformationMatrixes&&(il(t,"face_geometry"),ir(r,"FACE_GEOMETRY:face_geometry"),this.g.attachProtoVectorListener("face_geometry",(t,e)=>{if(this.outputFacialTransformationMatrixes)for(let e of t)(t=e3(iq(e),iS,2))&&this.j.facialTransformationMatrixes.push({rows:re(t,1)??0??0,columns:re(t,2)??0??0,data:eX(t,3,t7,eV()).slice()??[]});s$(this,e)}),this.g.attachEmptyPacketListener("face_geometry",t=>{s$(this,t)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};o3.prototype.detectForVideo=o3.prototype.F,o3.prototype.detect=o3.prototype.D,o3.prototype.setOptions=o3.prototype.o,o3.createFromModelPath=function(t,e){return oN(o3,t,{baseOptions:{modelAssetPath:e}})},o3.createFromModelBuffer=function(t,e){return oN(o3,t,{baseOptions:{modelAssetBuffer:e}})},o3.createFromOptions=function(t,e){return oN(o3,t,e)},o3.FACE_LANDMARKS_LIPS=oW,o3.FACE_LANDMARKS_LEFT_EYE=oz,o3.FACE_LANDMARKS_LEFT_EYEBROW=oK,o3.FACE_LANDMARKS_LEFT_IRIS=oY,o3.FACE_LANDMARKS_RIGHT_EYE=o$,o3.FACE_LANDMARKS_RIGHT_EYEBROW=oq,o3.FACE_LANDMARKS_RIGHT_IRIS=oJ,o3.FACE_LANDMARKS_FACE_OVAL=oZ,o3.FACE_LANDMARKS_CONTOURS=oQ,o3.FACE_LANDMARKS_TESSELATION=o1;var o4=class extends oX{constructor(t,e){super(new oD(t,e),"image_in","norm_rect",!0),e5(t=this.j=new i3,0,1,e=new iH)}get baseOptions(){return e3(this.j,iH,1)}set baseOptions(t){e5(this.j,0,1,t)}o(t){return super.l(t)}Ka(t,e,r){if(this.h="function"==typeof e?e:r,oG(this,t,("function"!=typeof e?e:{})??{}),!this.h)return this.s}m(){var t=new ic;iu(t,"image_in"),iu(t,"norm_rect"),il(t,"stylized_image");let e=new n7;rF(e,i4,this.j);let r=new ii;it(r,"mediapipe.tasks.vision.face_stylizer.FaceStylizerGraph"),ie(r,"IMAGE:image_in"),ie(r,"NORM_RECT:norm_rect"),ir(r,"STYLIZED_IMAGE:stylized_image"),r.o(e),ih(t,r),this.g.V("stylized_image",(t,e)=>{var r=!this.h,n=t.data,i=t.width;let s=i*(t=t.height);if(n instanceof Uint8Array)if(n.length===3*s){let e=new Uint8ClampedArray(4*s);for(let t=0;t<s;++t)e[4*t]=n[3*t],e[4*t+1]=n[3*t+1],e[4*t+2]=n[3*t+2],e[4*t+3]=255;n=new ImageData(e,i,t)}else{if(n.length!==4*s)throw Error("Unsupported channel count: "+n.length/s);n=new ImageData(new Uint8ClampedArray(n.buffer,n.byteOffset,n.length),i,t)}else if(!(n instanceof WebGLTexture))throw Error(`Unsupported format: ${n.constructor.name}`);i=new oI([n],!1,!1,this.g.i.canvas,this.P,i,t),this.s=r=r?i.clone():i,this.h&&this.h(r),s$(this,e)}),this.g.attachEmptyPacketListener("stylized_image",t=>{this.s=null,this.h&&this.h(null),s$(this,t)}),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};o4.prototype.stylize=o4.prototype.Ka,o4.prototype.setOptions=o4.prototype.o,o4.createFromModelPath=function(t,e){return oN(o4,t,{baseOptions:{modelAssetPath:e}})},o4.createFromModelBuffer=function(t,e){return oN(o4,t,{baseOptions:{modelAssetBuffer:e}})},o4.createFromOptions=function(t,e){return oN(o4,t,e)};var o0=oP([0,1],[1,2],[2,3],[3,4],[0,5],[5,6],[6,7],[7,8],[5,9],[9,10],[10,11],[11,12],[9,13],[13,14],[14,15],[15,16],[13,17],[0,17],[17,18],[18,19],[19,20]);function o5(t){t.gestures=[],t.landmarks=[],t.worldLandmarks=[],t.handedness=[]}function o6(t){return 0===t.gestures.length?{gestures:[],landmarks:[],worldLandmarks:[],handedness:[],handednesses:[]}:{gestures:t.gestures,landmarks:t.landmarks,worldLandmarks:t.worldLandmarks,handedness:t.handedness,handednesses:t.handedness}}function o7(t,e=!0){let r=[];for(let i of t){var n=i_(i);for(let r of(t=[],n.g()))n=e&&null!=re(r,1)?re(r,1)??0:-1,t.push({score:rn(r,2)??0,index:n,categoryName:rr(r,3)??""??"",displayName:rr(r,4)??""??""});
vendor: 5,800 bytes, line 1
1r.push(t)}return r}var o8=class extends oX{constructor(t,e){super(new oD(t,e),"image_in","norm_rect",!1),this.gestures=[],this.landmarks=[],this.worldLandmarks=[],this.handedness=[],e5(t=this.j=new st,0,1,e=new iH),this.s=new i9,e5(this.j,0,2,this.s),this.C=new i8,e5(this.s,0,3,this.C),this.v=new i7,e5(this.s,0,2,this.v),this.h=new i6,e5(this.j,0,3,this.h),ro(this.v,2,.5),ro(this.s,4,.5),ro(this.C,2,.5)}get baseOptions(){return e3(this.j,iH,1)}set baseOptions(t){e5(this.j,0,1,t)}o(t){if(rs(this.v,3,t.numHands??1),"minHandDetectionConfidence"in t&&ro(this.v,2,t.minHandDetectionConfidence??.5),"minTrackingConfidence"in t&&ro(this.s,4,t.minTrackingConfidence??.5),"minHandPresenceConfidence"in t&&ro(this.C,2,t.minHandPresenceConfidence??.5),t.cannedGesturesClassifierOptions){var e=new i0,r=e,n=sS(t.cannedGesturesClassifierOptions,e3(this.h,i0,3)?.h());e5(r,0,2,n),e5(this.h,0,3,e)}else void 0===t.cannedGesturesClassifierOptions&&e3(this.h,i0,3)?.g();return t.customGesturesClassifierOptions?(e5(r=e=new i0,0,2,n=sS(t.customGesturesClassifierOptions,e3(this.h,i0,4)?.h())),e5(this.h,0,4,e)):void 0===t.customGesturesClassifierOptions&&e3(this.h,i0,4)?.g(),this.l(t)}Fa(t,e){return o5(this),oG(this,t,e),o6(this)}Ga(t,e,r){return o5(this),oj(this,t,r,e),o6(this)}m(){var t=new ic;iu(t,"image_in"),iu(t,"norm_rect"),il(t,"hand_gestures"),il(t,"hand_landmarks"),il(t,"world_hand_landmarks"),il(t,"handedness");let e=new n7;rF(e,ss,this.j);let r=new ii;it(r,"mediapipe.tasks.vision.gesture_recognizer.GestureRecognizerGraph"),ie(r,"IMAGE:image_in"),ie(r,"NORM_RECT:norm_rect"),ir(r,"HAND_GESTURES:hand_gestures"),ir(r,"LANDMARKS:hand_landmarks"),ir(r,"WORLD_LANDMARKS:world_hand_landmarks"),ir(r,"HANDEDNESS:handedness"),r.o(e),ih(t,r),this.g.attachProtoVectorListener("hand_landmarks",(t,e)=>{for(let e of t){t=ix(e);let r=[];for(let e of e0(t,ik,1))r.push({x:rn(e,1)??0,y:rn(e,2)??0,z:rn(e,3)??0,visibility:rn(e,4)??0});this.landmarks.push(r)}s$(this,e)}),this.g.attachEmptyPacketListener("hand_landmarks",t=>{s$(this,t)}),this.g.attachProtoVectorListener("world_hand_landmarks",(t,e)=>{for(let e of t){t=iA(e);let r=[];for(let e of e0(t,ib,1))r.push({x:rn(e,1)??0,y:rn(e,2)??0,z:rn(e,3)??0,visibility:rn(e,4)??0});this.worldLandmarks.push(r)}s$(this,e)}),this.g.attachEmptyPacketListener("world_hand_landmarks",t=>{s$(this,t)}),this.g.attachProtoVectorListener("hand_gestures",(t,e)=>{this.gestures.push(...o7(t,!1)),s$(this,e)}),this.g.attachEmptyPacketListener("hand_gestures",t=>{s$(this,t)}),this.g.attachProtoVectorListener("handedness",(t,e)=>{this.handedness.push(...o7(t)),s$(this,e)}),this.g.attachEmptyPacketListener("handedness",t=>{s$(this,t)}),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};function o9(t){return{landmarks:t.landmarks,worldLandmarks:t.worldLandmarks,handednesses:t.handedness,handedness:t.handedness}}o8.prototype.recognizeForVideo=o8.prototype.Ga,o8.prototype.recognize=o8.prototype.Fa,o8.prototype.setOptions=o8.prototype.o,o8.createFromModelPath=function(t,e){return oN(o8,t,{baseOptions:{modelAssetPath:e}})},o8.createFromModelBuffer=function(t,e){return oN(o8,t,{baseOptions:{modelAssetBuffer:e}})},o8.createFromOptions=function(t,e){return oN(o8,t,e)},o8.HAND_CONNECTIONS=o0;var at=class extends oX{constructor(t,e){super(new oD(t,e),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.handedness=[],e5(t=this.h=new i9,0,1,e=new iH),this.s=new i8,e5(this.h,0,3,this.s),this.j=new i7,e5(this.h,0,2,this.j),rs(this.j,3,1),ro(this.j,2,.5),ro(this.s,2,.5),ro(this.h,4,.5)}get baseOptions(){return e3(this.h,iH,1)}set baseOptions(t){e5(this.h,0,1,t)}o(t){return"numHands"in t&&rs(this.j,3,t.numHands??1),"minHandDetectionConfidence"in t&&ro(this.j,2,t.minHandDetectionConfidence??.5),"minTrackingConfidence"in t&&ro(this.h,4,t.minTrackingConfidence??.5),"minHandPresenceConfidence"in t&&ro(this.s,2,t.minHandPresenceConfidence??.5),this.l(t)}D(t,e){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],oG(this,t,e),o9(this)}F(t,e,r){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],oj(this,t,r,e),o9(this)}m(){var t=new ic;iu(t,"image_in"),iu(t,"norm_rect"),il(t,"hand_landmarks"),il(t,"world_hand_landmarks"),il(t,"handedness");let e=new n7;rF(e,so,this.h);let r=new ii;it(r,"mediapipe.tasks.vision.hand_landmarker.HandLandmarkerGraph"),ie(r,"IMAGE:image_in"),ie(r,"NORM_RECT:norm_rect"),ir(r,"LANDMARKS:hand_landmarks"),ir(r,"WORLD_LANDMARKS:world_hand_landmarks"),ir(r,"HANDEDNESS:handedness"),r.o(e),ih(t,r),this.g.attachProtoVectorListener("hand_landmarks",(t,e)=>{for(let e of t)t=ix(e),this.landmarks.push(sF(t));s$(this,e)}),this.g.attachEmptyPacketListener("hand_landmarks",t=>{s$(this,t)}),this.g.attachProtoVectorListener("world_hand_landmarks",(t,e)=>{for(let e of t)t=iA(e),this.worldLandmarks.push(sI(t));s$(this,e)}),this.g.attachEmptyPacketListener("world_hand_landmarks",t=>{s$(this,t)}),this.g.attachProtoVectorListener("handedness",(t,e)=>{var r=this.handedness,n=r.push;let i=[];for(let e of t){t=i_(e);let r=[];for(let e of t.g())r.push({score:rn(e,2)??0,index:re(e,1)??0??-1,categoryName:rr(e,3)??""??"",displayName:rr(e,4)??""??""});i.push(r)}n.call(r,...i),s$(this,e)}),this.g.attachEmptyPacketListener("handedness",t=>{s$(this,t)}),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};at.prototype.detectForVideo=at.prototype.F,at.prototype.detect=at.prototype.D,at.prototype.setOptions=at.prototype.o,at.createFromModelPath=function(t,e){return oN(at,t,{baseOptions:{modelAssetPath:e}})},at.createFromModelBuffer=function(t,e){return oN(at,t,{baseOptions:{modelAssetBuffer:e}})},at.createFromOptions=function(t,e){return oN(at,t,e)},at.HAND_CONNECTIONS=o0;var ae=oP([0,1],[1,2],[2,3],[3,7],[0,4],[4,5],[5,6],[6,8],[9,10],[11,12],[11,13],[13,15],[15,17],[15,19],[15,21],[17,19],[12,14],[14,16
1],[16,18],[16,20],[16,22],[18,20],[11,23],[12,24],[23,24],[23,25],[24,26],[25,27],[26,28],[27,29],[28,30],[29,31],[30,32],[27,31],[28,32]);function ar(t){t.h={faceLandmarks:[],faceBlendshapes:[],poseLandmarks:[],poseWorldLandmarks:[],poseSegmentationMasks:[],leftHandLandmarks:[],leftHandWorldLandmarks:[],rightHandLandmarks:[],rightHandWorldLandmarks:[]}}function an(t){try{if(!t.C)return t.h;t.C(t.h)}finally{sZ(t)}}function ai(t,e){t=ix(t),e.push(sF(t))}var as=class extends oX{constructor(t,e){super(new oD(t,e),"input_frames_image",null,!1),this.h={faceLandmarks:[],faceBlendshapes:[],poseLandmarks:[],poseWorldLandmarks:[],poseSegmentationMasks:[],leftHandLandmarks:[],leftHandWorldLandmarks:[],rightHandLandmarks:[],rightHandWorldLandmarks:[]},this.outputPoseSegmentationMasks=this.outputFaceBlendshapes=!1,e5(t=this.j=new sl,0,1,e=new iH),this.K=new i8,e5(this.j,0,2,this.K),this.Y=new sa,e5(this.j,0,3,this.Y),this.s=new iK,e5(this.j,0,4,this.s),this.H=new iJ,e5(this.j,0,5,this.H),this.v=new sh,e5(this.j,0,6,this.v),this.L=new su,e5(this.j,0,7,this.L),ro(this.s,2,.5),ro(this.s,3,.3),ro(this.H,2,.5),ro(this.v,2,.5),ro(this.v,3,.3),ro(this.L,2,.5),ro(this.K,2,.5)}get baseOptions(){return e3(this.j,iH,1)}set baseOptions(t){e5(this.j,0,1,t)}o(t){return"minFaceDetectionConfidence"in t&&ro(this.s,2,t.minFaceDetectionConfidence??.5),"minFaceSuppressionThreshold"in t&&ro(this.s,3,t.minFaceSuppressionThreshold??.3),"minFacePresenceConfidence"in t&&ro(this.H,2,t.minFacePresenceConfidence??.5),"outputFaceBlendshapes"in t&&(this.outputFaceBlendshapes=!!t.outputFaceBlendshapes),"minPoseDetectionConfidence"in t&&ro(this.v,2,t.minPoseDetectionConfidence??.5),"minPoseSuppressionThreshold"in t&&ro(this.v,3,t.minPoseSuppressionThreshold??.3),"minPosePresenceConfidence"in t&&ro(this.L,2,t.minPosePresenceConfidence??.5),"outputPoseSegmentationMasks"in t&&(this.outputPoseSegmentationMasks=!!t.outputPoseSegmentationMasks),"minHandLandmarksConfidence"in t&&ro(this.K,2,t.minHandLandmarksConfidence??.5),this.l(t)}D(t,e,r){return this.C="function"==typeof e?e:r,ar(this),oG(this,t,"function"!=typeof e?e:{}),an(this)}F(t,e,r,n){return this.C="function"==typeof r?r:n,ar(this),oj(this,t,"function"!=typeof r?r:{},e),an(this)}m(){var t=new ic;iu(t,"input_frames_image"),il(t,"pose_landmarks"),il(t,"pose_world_landmarks"),il(t,"face_landmarks"),il(t,"left_hand_landmarks"),il(t,"left_hand_world_landmarks"),il(t,"right_hand_landmarks"),il(t,"right_hand_world_landmarks");let e=new n7,r=new nY;eY(r,1,ef("type.googleapis.com/mediapipe.tasks.vision.holistic_landmarker.proto.HolisticLandmarkerGraphOptions"),""),function(t,e){if(null!=e)if(Array.isArray(e))eN(t,2,eL(e,eF,void 0,void 0,!1));else{if(!("string"==typeof e||e instanceof J||K(e)))throw Error("invalid value in Any.value field: "+e+" expected a ByteString, a base64 encoded string, a Uint8Array or a jspb array");eY(t,2,tb(e,!1),$())}}(r,this.j.g());let n=new ii;it(n,"mediapipe.tasks.vision.holistic_landmarker.HolisticLandmarkerGraph"),rt(n,8,nY,r),ie(n,"IMAGE:input_frames_image"),ir(n,"POSE_LANDMARKS:pose_landmarks"),ir(n,"POSE_WORLD_LANDMARKS:pose_world_landmarks"),ir(n,"FACE_LANDMARKS:face_landmarks"),ir(n,"LEFT_HAND_LANDMARKS:left_hand_landmarks"),ir(n,"LEFT_HAND_WORLD_LANDMARKS:left_hand_world_landmarks"),ir(n,"RIGHT_HAND_LANDMARKS:right_hand_landmarks"),ir(n,"RIGHT_HAND_WORLD_LANDMARKS:right_hand_world_landmarks"),n.o(e),ih(t,n),sq(this,t),this.g.attachProtoListener("pose_landmarks",(t,e)=>{ai(t,this.h.poseLandmarks),s$(this,e)}),this.g.attachEmptyPacketListener("pose_landmarks",t=>{s$(this,t)}),this.g.attachProtoListener("pose_world_landmarks",(t,e)=>{var r=this.h.poseWorldLandmarks;t=iA(t),r.push(sI(t)),s$(this,e)}),this.g.attachEmptyPacketListener("pose_world_landmarks",t=>{s$(this,t)}),this.outputPoseSegmentationMasks&&(ir(n,"POSE_SEGMENTATION_MASK:pose_segmentation_mask"),sJ(this,"pose_segmentation_mask"),this.g.V("pose_segmentation_mask",(t,e)=>{this.h.poseSegmentationMasks=[oV(this,t,!0,!this.C)],s$(this,e)}),this.g.attachEmptyPacketListener("pose_segmentation_mask",t=>{this.h.poseSegmentationMasks=[],s$(this,t)})),this.g.attachProtoListener("face_landmarks",(t,e)=>{ai(t,this.h.faceLandmarks),s$(this,e)}),this.g.attachEmptyPacketListener("face_landmarks",t=>{s$(this,t)}
1),this.outputFaceBlendshapes&&(il(t,"extra_blendshapes"),ir(n,"FACE_BLENDSHAPES:extra_blendshapes"),this.g.attachProtoListener("extra_blendshapes",(t,e)=>{var r=this.h.faceBlendshapes;this.outputFaceBlendshapes&&(t=i_(t),r.push(sL(t.g()??[]))),s$(this,e)}),this.g.attachEmptyPacketListener("extra_blendshapes",t=>{s$(this,t)})),this.g.attachProtoListener("left_hand_landmarks",(t,e)=>{ai(t,this.h.leftHandLandmarks),s$(this,e)}),this.g.attachEmptyPacketListener("left_hand_landmarks",t=>{s$(this,t)}),this.g.attachProtoListener("left_hand_world_landmarks",(t,e)=>{var r=this.h.leftHandWorldLandmarks;t=iA(t),r.push(sI(t)),s$(this,e)}),this.g.attachEmptyPacketListener("left_hand_world_landmarks",t=>{s$(this,t)}),this.g.attachProtoListener("right_hand_landmarks",(t,e)=>{ai(t,this.h.rightHandLandmarks),s$(this,e)}),this.g.attachEmptyPacketListener("right_hand_landmarks",t=>{s$(this,t)}),this.g.attachProtoListener("right_hand_world_landmarks",(t,e)=>{var r=this.h.rightHandWorldLandmarks;t=iA(t),r.push(sI(t)),s$(this,e)}),this.g.attachEmptyPacketListener("right_hand_world_landmarks",t=>{s$(this,t)}),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};as.prototype.detectForVideo=as.prototype.F,as.prototype.detect=as.prototype.D,as.prototype.setOptions=as.prototype.o,as.createFromModelPath=function(t,e){return oN(as,t,{baseOptions:{modelAssetPath:e}})},as.createFromModelBuffer=function(t,e){return oN(as,t,{baseOptions:{modelAssetBuffer:e}})},as.createFromOptions=function(t,e){return oN(as,t,e)},as.HAND_CONNECTIONS=o0,as.POSE_CONNECTIONS=ae,as.FACE_LANDMARKS_LIPS=oW,as.FACE_LANDMARKS_LEFT_EYE=oz,as.FACE_LANDMARKS_LEFT_EYEBROW=oK,as.FACE_LANDMARKS_LEFT_IRIS=oY,as.FACE_LANDMARKS_RIGHT_EYE=o$,as.FACE_LANDMARKS_RIGHT_EYEBROW=oq,as.FACE_LANDMARKS_RIGHT_IRIS=oJ,as.FACE_LANDMARKS_FACE_OVAL=oZ,as.FACE_LANDMARKS_CONTOURS=oQ,as.FACE_LANDMARKS_TESSELATION=o1;var ao=class extends oX{constructor(t,e){super(new oD(t,e),"input_image","norm_rect",!0),this.j={classifications:[]},e5(t=this.h=new sd,0,1,e=new iH)}get baseOptions(){return e3(this.h,iH,1)}set baseOptions(t){e5(this.h,0,1,t)}o(t){return e5(this.h,0,2,sS(t,e3(this.h,iD,2))),this.l(t)}qa(t,e){return this.j={classifications:[]},oG(this,t,e),this.j}ra(t,e,r){return this.j={classifications:[]},oj(this,t,r,e),this.j}m(){var t=new ic;iu(t,"input_image"),iu(t,"norm_rect"),il(t,"classifications");let e=new n7;rF(e,sp,this.h);let r=new ii;it(r,"mediapipe.tasks.vision.image_classifier.ImageClassifierGraph"),ie(r,"IMAGE:input_image"),ie(r,"NORM_RECT:norm_rect"),ir(r,"CLASSIFICATIONS:classifications"),r.o(e),ih(t,r),this.g.attachProtoListener("classifications",(t,e)=>{var r;let n;this.j=(n={classifications:e0(r=iI(t),iF,1).map(t=>sL(e3(t,im,4)?.g()??[],re(t,2)??0,rr(t,3)??""))},null!=el(eU(r,2))&&(n.timestampMs=el(eU(r,2))??0),n),s$(this,e)}),this.g.attachEmptyPacketListener("classifications",t=>{s$(this,t)}),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};ao.prototype.classifyForVideo=ao.prototype.ra,ao.prototype.classify=ao.prototype.qa,ao.prototype.setOptions=ao.prototype.o,ao.createFromModelPath=function(t,e){return oN(ao,t,{baseOptions:{modelAssetPath:e}})},ao.createFromModelBuffer=function(t,e){return oN(ao,t,{baseOptions:{modelAssetBuffer:e}})},ao.createFromOptions=function(t,e){return oN(ao,t,e)};var aa=class extends oX{constructor(t,e){super(new oD(t,e),"image_in","norm_rect",!0),this.h=new sg,this.embeddings={embeddings:[]},e5(t=this.h,0,1,e=new iH)}get baseOptions(){return e3(this.h,iH,1)}set baseOptions(t){e5(this.h,0,1,t)}o(t){var e=this.h,r=e3(this.h,iB,2);return r=r?r.clone():new iB,void 0!==t.l2Normalize?ri(r,1,t.l2Normalize):"l2Normalize"in t&&eN(r,1),void 0!==t.quantize?ri(r,2,t.quantize):"quantize"in t&&eN(r,2),e5(e,0,2,r),this.l(t)}xa(t,e){return oG(this,t,e),this.embeddings}ya(t,e,r){return oj(this,t,r,e),this.embeddings}m(){var t=new ic;iu(t,"image_in"),iu(t,"norm_rect"),il(t,"embeddings_out");let e=new n7;rF(e,sm,this.h);let r=new ii;it(r,"mediapipe.tasks.vision.image_embedder.ImageEmbedderGraph"),ie(r,"IMAGE:image_in"),ie(r,"NORM_RECT:norm_rect"),ir(r,"EMBEDDINGS:embeddings_out"),r.o(e),ih(t,r),this.g.attachProtoListener("embeddings_out",(t,e)=>{var r;t=iU(t),this.embeddings={embeddings:e0(r=t,iC,1).map(t=>{let e={headIndex:re(t,3)??0??-1,headName:rr(t,4)??""??""};if(void 0!==e2(t,iM,eq(t,1)))e.floatEmbedding=(t=eX(t=e3(t,iM,eq(t,1)),1,t7,eV())).slice();else{let r=new Uint8Array(0);e.quantizedEmbedding=e3(t,iP,eq(t,2))?.ma()?.h()??r}return e}),timestampMs:el(eU(r,2))??0},s$(this,e)}),this.g.attachEmptyPacketListener("embeddings_out",t=>{s$(this,t)}),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};aa.cosineSimilarity=function(t,e){if(t.floatEmbedding&&e.floatEmbedding)t=sP(t.floatEmbedding,e.floatEmbedding);else{if(!t.quantizedEmbedding||!e.quantizedEmbedding)throw Error("Cannot compute cosine similarity between quantized and float embeddings.");t=sP(sM(t.quantizedEmbedding),sM(e.quantizedEmbedding))}return t},aa.prototype.embedForVideo=aa.prototype.ya,aa.prototype.embed=aa.prototype.xa,aa.prototype.setOptions=aa.prototype.o,aa.createFromModelPath=function(t,e){return oN(aa,t,{baseOptions:{modelAssetPath:e}})},aa.createFromModelBuffer=function(t,e){return oN(aa,t,{baseOptions:{modelAssetBuffer:e}})},aa.createFromOptions=function(t,e){return oN(aa,t,e)}
1;var ah=class{constructor(t,e,r){this.confidenceMasks=t,this.categoryMask=e,this.qualityScores=r}close(){this.confidenceMasks?.forEach(t=>{t.close()}),this.categoryMask?.close()}};function au(t){t.categoryMask=void 0,t.confidenceMasks=void 0,t.qualityScores=void 0}function al(t){try{let e=new ah(t.confidenceMasks,t.categoryMask,t.qualityScores);if(!t.j)return e;t.j(e)}finally{sZ(t)}}ah.prototype.close=ah.prototype.close;var ac=class extends oX{constructor(t,e){super(new oD(t,e),"image_in","norm_rect",!1),this.s=[],this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new sw,this.v=new sy,e5(this.h,0,3,this.v),e5(t=this.h,0,1,e=new iH)}get baseOptions(){return e3(this.h,iH,1)}set baseOptions(t){e5(this.h,0,1,t)}o(t){return void 0!==t.displayNamesLocale?eN(this.h,2,ef(t.displayNamesLocale)):"displayNamesLocale"in t&&eN(this.h,2),"outputCategoryMask"in t&&(this.outputCategoryMask=t.outputCategoryMask??!1),"outputConfidenceMasks"in t&&(this.outputConfidenceMasks=t.outputConfidenceMasks??!0),super.l(t)}J(){var t=this;let e=e0(t.ca(),ii,1).filter(t=>(rr(t,1)??"").includes("mediapipe.tasks.TensorsToSegmentationCalculator"));if(t.s=[],e.length>1)throw Error("The graph has more than one mediapipe.tasks.TensorsToSegmentationCalculator.");1===e.length&&(e3(e[0],n7,7)?.l()?.g()??new Map).forEach((e,r)=>{t.s[Number(r)]=rr(e,1)??""})}segment(t,e,r){return this.j="function"==typeof e?e:r,au(this),oG(this,t,"function"!=typeof e?e:{}),al(this)}Ia(t,e,r,n){return this.j="function"==typeof r?r:n,au(this),oj(this,t,"function"!=typeof r?r:{},e),al(this)}Ba(){return this.s}m(){var t=new ic;iu(t,"image_in"),iu(t,"norm_rect");let e=new n7;rF(e,sT,this.h);let r=new ii;it(r,"mediapipe.tasks.vision.image_segmenter.ImageSegmenterGraph"),ie(r,"IMAGE:image_in"),ie(r,"NORM_RECT:norm_rect"),r.o(e),ih(t,r),sq(this,t),this.outputConfidenceMasks&&(il(t,"confidence_masks"),ir(r,"CONFIDENCE_MASKS:confidence_masks"),sJ(this,"confidence_masks"),this.g.ba("confidence_masks",(t,e)=>{this.confidenceMasks=t.map(t=>oV(this,t,!0,!this.j)),s$(this,e)}),this.g.attachEmptyPacketListener("confidence_masks",t=>{this.confidenceMasks=[],s$(this,t)})),this.outputCategoryMask&&(il(t,"category_mask"),ir(r,"CATEGORY_MASK:category_mask"),sJ(this,"category_mask"),this.g.V("category_mask",(t,e)=>{this.categoryMask=oV(this,t,!1,!this.j),s$(this,e)}),this.g.attachEmptyPacketListener("category_mask",t=>{this.categoryMask=void 0,s$(this,t)})),il(t,"quality_scores"),ir(r,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",(t,e)=>{this.qualityScores=t,s$(this,e)}),this.g.attachEmptyPacketListener("quality_scores",t=>{this.categoryMask=void 0,s$(this,t)}),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};ac.prototype.getLabels=ac.prototype.Ba,ac.prototype.segmentForVideo=ac.prototype.Ia,ac.prototype.segment=ac.prototype.segment,ac.prototype.setOptions=ac.prototype.o,ac.createFromModelPath=function(t,e){return oN(ac,t,{baseOptions:{modelAssetPath:e}})},ac.createFromModelBuffer=function(t,e){return oN(ac,t,{baseOptions:{modelAssetBuffer:e}})},ac.createFromOptions=function(t,e){return oN(ac,t,e)};var af=class{constructor(t,e,r){this.confidenceMasks=t,this.categoryMask=e,this.qualityScores=r}close(){this.confidenceMasks?.forEach(t=>{t.close()}),this.categoryMask?.close()}};af.prototype.close=af.prototype.close;var ad=class extends rI{constructor(t){super(t)}},ap=[0,nF,-2],ag=[0,nb,-3,nP,nb,-1],am=[0,ag],ay=[0,ag,nF,-1],a_=class extends rI{constructor(t){super(t)}},av=[0,nb,-1,nP],aE=class extends rI{constructor(t){super(t)}},aw=class extends rI{constructor(t){super(t)}},aT=[1,2,3,4,5,6,7,8,9,10,14,15],ab=class extends rI{constructor(t){super(t)}};ab.prototype.g=nK([0,nN,[0,aT,nB,ag,nB,[0,ag,ap],nB,am,nB,[0,am,ap],nB,av,nB,[0,nb,-3,nP,nX],nB,[0,nb,-3,nP],nB,[0,nD,nb,-2,nP,nF,nP,-1,2,nb,ap],nB,ay,nB,[0,ay,ap],nb,ap,nD,nB,[0,nb,-3,nP,ap,-1],nB,[0,nN,av]],nD,[0,nD,nF,-1,nP]]);var aA=class extends oX{constructor(t,e){super(new oD(t,e),"image_in","norm_rect_in",!1),this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new sw,this.s=new sy,e5(this.h,0,3,this.s),e5(t=this.h,0,1,e=new iH)}get baseOptions(){return e3(this.h,iH,1)}set baseOptions(t){e5(this.h,0,1,t)}o(t){return"outputCategoryMask"in t&&(this.outputCategoryMask=t.outputCategoryMask??!1),"outputConfidenceMasks"in t&&(this.outputConfidenceMasks=t.outputConfidenceMasks??!0),super.l(t)}segment(t,e,r,n){let i="function"!=typeof r?r:{};
vendor: 4,622 bytes, line 1
1this.j="function"==typeof r?r:n,this.qualityScores=this.categoryMask=this.confidenceMasks=void 0,r=this.B+1,n=new ab;let s=new aw;var o=new ad;if(rs(o,1,255),e5(s,0,12,o),e.keypoint&&e.scribble)throw Error("Cannot provide both keypoint and scribble.");if(e.keypoint){var a=new a_;ri(a,3,!0),ro(a,1,e.keypoint.x),ro(a,2,e.keypoint.y),e6(s,5,aT,a)}else{if(!e.scribble)throw Error("Must provide either a keypoint or a scribble.");for(a of(o=new aE,e.scribble))ri(e=new a_,3,!0),ro(e,1,a.x),ro(e,2,a.y),rt(o,1,a_,e);e6(s,15,aT,o)}rt(n,1,aw,s),this.g.addProtoToStream(n.g(),"drishti.RenderData","roi_in",r),oG(this,t,i);t:{try{let t=new af(this.confidenceMasks,this.categoryMask,this.qualityScores);if(!this.j){var h=t;break t}this.j(t)}finally{sZ(this)}h=void 0}return h}m(){var t=new ic;iu(t,"image_in"),iu(t,"roi_in"),iu(t,"norm_rect_in");let e=new n7;rF(e,sT,this.h);let r=new ii;it(r,"mediapipe.tasks.vision.interactive_segmenter.InteractiveSegmenterGraph"),ie(r,"IMAGE:image_in"),ie(r,"ROI:roi_in"),ie(r,"NORM_RECT:norm_rect_in"),r.o(e),ih(t,r),sq(this,t),this.outputConfidenceMasks&&(il(t,"confidence_masks"),ir(r,"CONFIDENCE_MASKS:confidence_masks"),sJ(this,"confidence_masks"),this.g.ba("confidence_masks",(t,e)=>{this.confidenceMasks=t.map(t=>oV(this,t,!0,!this.j)),s$(this,e)}),this.g.attachEmptyPacketListener("confidence_masks",t=>{this.confidenceMasks=[],s$(this,t)})),this.outputCategoryMask&&(il(t,"category_mask"),ir(r,"CATEGORY_MASK:category_mask"),sJ(this,"category_mask"),this.g.V("category_mask",(t,e)=>{this.categoryMask=oV(this,t,!1,!this.j),s$(this,e)}),this.g.attachEmptyPacketListener("category_mask",t=>{this.categoryMask=void 0,s$(this,t)})),il(t,"quality_scores"),ir(r,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",(t,e)=>{this.qualityScores=t,s$(this,e)}),this.g.attachEmptyPacketListener("quality_scores",t=>{this.categoryMask=void 0,s$(this,t)}),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};aA.prototype.segment=aA.prototype.segment,aA.prototype.setOptions=aA.prototype.o,aA.createFromModelPath=function(t,e){return oN(aA,t,{baseOptions:{modelAssetPath:e}})},aA.createFromModelBuffer=function(t,e){return oN(aA,t,{baseOptions:{modelAssetBuffer:e}})},aA.createFromOptions=function(t,e){return oN(aA,t,e)};var ak=class extends oX{constructor(t,e){super(new oD(t,e),"input_frame_gpu","norm_rect",!1),this.j={detections:[]},e5(t=this.h=new sb,0,1,e=new iH)}get baseOptions(){return e3(this.h,iH,1)}set baseOptions(t){e5(this.h,0,1,t)}o(t){return void 0!==t.displayNamesLocale?eN(this.h,2,ef(t.displayNamesLocale)):"displayNamesLocale"in t&&eN(this.h,2),void 0!==t.maxResults?rs(this.h,3,t.maxResults):"maxResults"in t&&eN(this.h,3),void 0!==t.scoreThreshold?ro(this.h,4,t.scoreThreshold):"scoreThreshold"in t&&eN(this.h,4),void 0!==t.categoryAllowlist?ra(this.h,5,t.categoryAllowlist):"categoryAllowlist"in t&&eN(this.h,5),void 0!==t.categoryDenylist?ra(this.h,6,t.categoryDenylist):"categoryDenylist"in t&&eN(this.h,6),this.l(t)}D(t,e){return this.j={detections:[]},oG(this,t,e),this.j}F(t,e,r){return this.j={detections:[]},oj(this,t,r,e),this.j}m(){var t=new ic;iu(t,"input_frame_gpu"),iu(t,"norm_rect"),il(t,"detections");let e=new n7;rF(e,sA,this.h);let r=new ii;it(r,"mediapipe.tasks.vision.ObjectDetectorGraph"),ie(r,"IMAGE:input_frame_gpu"),ie(r,"NORM_RECT:norm_rect"),ir(r,"DETECTIONS:detections"),r.o(e),ih(t,r),this.g.attachProtoVectorListener("detections",(t,e)=>{for(let e of t)t=iT(e),this.j.detections.push(sR(t));s$(this,e)}),this.g.attachEmptyPacketListener("detections",t=>{s$(this,t)}),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};ak.prototype.detectForVideo=ak.prototype.F,ak.prototype.detect=ak.prototype.D,ak.prototype.setOptions=ak.prototype.o,ak.createFromModelPath=async function(t,e){return oN(ak,t,{baseOptions:{modelAssetPath:e}})},ak.createFromModelBuffer=function(t,e){return oN(ak,t,{baseOptions:{modelAssetBuffer:e}})},ak.createFromOptions=function(t,e){return oN(ak,t,e)};var ax=class{constructor(t,e,r){this.landmarks=t,this.worldLandmarks=e,this.segmentationMasks=r}close(){this.segmentationMasks?.forEach(t=>{t.close()})}};function aS(t){t.landmarks=[],t.worldLandmarks=[],t.segmentationMasks=void 0}function aL(t){try{let e=new ax(t.landmarks,t.worldLandmarks,t.segmentationMasks);if(!t.s)return e;t.s(e)}finally{sZ(t)}}ax.prototype.close=ax.prototype.close;var aR=class extends oX{constructor(t,e){super(new oD(t,e),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.outputSegmentationMasks=!1,e5(t=this.h=new sk,0,1,e=new iH),this.v=new su,e5(this.h,0,3,this.v),this.j=new sh,e5(this.h,0,2,this.j),r
1s(this.j,4,1),ro(this.j,2,.5),ro(this.v,2,.5),ro(this.h,4,.5)}get baseOptions(){return e3(this.h,iH,1)}set baseOptions(t){e5(this.h,0,1,t)}o(t){return"numPoses"in t&&rs(this.j,4,t.numPoses??1),"minPoseDetectionConfidence"in t&&ro(this.j,2,t.minPoseDetectionConfidence??.5),"minTrackingConfidence"in t&&ro(this.h,4,t.minTrackingConfidence??.5),"minPosePresenceConfidence"in t&&ro(this.v,2,t.minPosePresenceConfidence??.5),"outputSegmentationMasks"in t&&(this.outputSegmentationMasks=t.outputSegmentationMasks??!1),this.l(t)}D(t,e,r){return this.s="function"==typeof e?e:r,aS(this),oG(this,t,"function"!=typeof e?e:{}),aL(this)}F(t,e,r,n){return this.s="function"==typeof r?r:n,aS(this),oj(this,t,"function"!=typeof r?r:{},e),aL(this)}m(){var t=new ic;iu(t,"image_in"),iu(t,"norm_rect"),il(t,"normalized_landmarks"),il(t,"world_landmarks"),il(t,"segmentation_masks");let e=new n7;rF(e,sx,this.h);let r=new ii;it(r,"mediapipe.tasks.vision.pose_landmarker.PoseLandmarkerGraph"),ie(r,"IMAGE:image_in"),ie(r,"NORM_RECT:norm_rect"),ir(r,"NORM_LANDMARKS:normalized_landmarks"),ir(r,"WORLD_LANDMARKS:world_landmarks"),r.o(e),ih(t,r),sq(this,t),this.g.attachProtoVectorListener("normalized_landmarks",(t,e)=>{for(let e of(this.landmarks=[],t))t=ix(e),this.landmarks.push(sF(t));s$(this,e)}),this.g.attachEmptyPacketListener("normalized_landmarks",t=>{this.landmarks=[],s$(this,t)}),this.g.attachProtoVectorListener("world_landmarks",(t,e)=>{for(let e of(this.worldLandmarks=[],t))t=iA(e),this.worldLandmarks.push(sI(t));s$(this,e)}),this.g.attachEmptyPacketListener("world_landmarks",t=>{this.worldLandmarks=[],s$(this,t)}),this.outputSegmentationMasks&&(ir(r,"SEGMENTATION_MASK:segmentation_masks"),sJ(this,"segmentation_masks"),this.g.ba("segmentation_masks",(t,e)=>{this.segmentationMasks=t.map(t=>oV(this,t,!0,!this.s)),s$(this,e)}),this.g.attachEmptyPacketListener("segmentation_masks",t=>{this.segmentationMasks=[],s$(this,t)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};aR.prototype.detectForVideo=aR.prototype.F,aR.prototype.detect=aR.prototype.D,aR.prototype.setOptions=aR.prototype.o,aR.createFromModelPath=function(t,e){return oN(aR,t,{baseOptions:{modelAssetPath:e}})},aR.createFromModelBuffer=function(t,e){return oN(aR,t,{baseOptions:{modelAssetBuffer:e}})},aR.createFromOptions=function(t,e){return oN(aR,t,e)},aR.POSE_CONNECTIONS=ae}}]);

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.