vuer 0.0.45__py3-none-any.whl → 0.0.46__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of vuer might be problematic. Click here for more details.
- vuer/__pycache__/__init__.cpython-311.pyc +0 -0
- vuer/client_build/404.html +3 -3
- vuer/client_build/assets/chunks/chunk-18G0VHqw.js +2 -0
- vuer/client_build/assets/chunks/chunk-18G0VHqw.js.map +1 -0
- vuer/client_build/assets/chunks/chunk-Bc6jPe19.js +283 -0
- vuer/client_build/assets/chunks/chunk-Bc6jPe19.js.map +1 -0
- vuer/client_build/assets/chunks/chunk-Bkj5sU0H.js +2 -0
- vuer/client_build/assets/chunks/chunk-Bkj5sU0H.js.map +1 -0
- vuer/client_build/assets/chunks/chunk-CZzxeY6d.js +2 -0
- vuer/client_build/assets/chunks/chunk-CZzxeY6d.js.map +1 -0
- vuer/client_build/assets/chunks/chunk-Cg0OFbR3.js +16 -0
- vuer/client_build/assets/chunks/chunk-Cg0OFbR3.js.map +1 -0
- vuer/client_build/assets/chunks/chunk-CgL2fCVp.js +8555 -0
- vuer/client_build/assets/chunks/chunk-CgL2fCVp.js.map +1 -0
- vuer/client_build/assets/chunks/chunk-Cl2arkqa.js +7736 -0
- vuer/client_build/assets/chunks/chunk-Cl2arkqa.js.map +1 -0
- vuer/client_build/assets/chunks/chunk-CmZvw6P9.js +2 -0
- vuer/client_build/assets/chunks/chunk-CmZvw6P9.js.map +1 -0
- vuer/client_build/assets/chunks/chunk-CwRl4dQC.js +3 -0
- vuer/client_build/assets/chunks/chunk-CwRl4dQC.js.map +1 -0
- vuer/client_build/assets/chunks/chunk-DXO4-vDe.js +2 -0
- vuer/client_build/assets/chunks/chunk-DXO4-vDe.js.map +1 -0
- vuer/client_build/assets/chunks/chunk-IuGwgvtb.js +102 -0
- vuer/client_build/assets/chunks/chunk-IuGwgvtb.js.map +1 -0
- vuer/client_build/assets/chunks/chunk-WT4fnZC5.js +53 -0
- vuer/client_build/assets/chunks/chunk-WT4fnZC5.js.map +1 -0
- vuer/client_build/assets/entries/entry-client-routing.DygxbdMN.js +5 -0
- vuer/client_build/assets/entries/entry-client-routing.DygxbdMN.js.map +1 -0
- vuer/client_build/assets/entries/pages_editor.nNsIXIzJ.js +2 -0
- vuer/client_build/assets/entries/pages_editor.nNsIXIzJ.js.map +1 -0
- vuer/client_build/assets/entries/pages_error.BNv2Fuig.js +2 -0
- vuer/client_build/assets/entries/pages_error.BNv2Fuig.js.map +1 -0
- vuer/client_build/assets/entries/pages_index.D1BavadI.js +2 -0
- vuer/client_build/assets/entries/pages_index.D1BavadI.js.map +1 -0
- vuer/client_build/assets/entries/pages_simple.DYWd0uF8.js +2 -0
- vuer/client_build/assets/entries/pages_simple.DYWd0uF8.js.map +1 -0
- vuer/client_build/editor/index.html +5 -5
- vuer/client_build/index.html +5 -5
- vuer/client_build/simple/index.html +4 -4
- vuer/schemas/__pycache__/html_components.cpython-311.pyc +0 -0
- vuer/schemas/__pycache__/scene_components.cpython-311.pyc +0 -0
- vuer/schemas/scene_components.py +11 -10
- {vuer-0.0.45.dist-info → vuer-0.0.46.dist-info}/METADATA +1 -1
- {vuer-0.0.45.dist-info → vuer-0.0.46.dist-info}/RECORD +48 -14
- {vuer-0.0.45.dist-info → vuer-0.0.46.dist-info}/LICENSE +0 -0
- {vuer-0.0.45.dist-info → vuer-0.0.46.dist-info}/WHEEL +0 -0
- {vuer-0.0.45.dist-info → vuer-0.0.46.dist-info}/entry_points.txt +0 -0
- {vuer-0.0.45.dist-info → vuer-0.0.46.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chunk-CZzxeY6d.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var ne=typeof self<"u"?self:{};function hr(t,e){t:{for(var r=["CLOSURE_FLAGS"],n=ne,s=0;s<r.length;s++)if((n=n[r[s]])==null){r=null;break t}r=n}return(t=r&&r[t])!=null?t:e}function Jt(){throw Error("Invalid UTF8")}function Ls(t,e){return e=String.fromCharCode.apply(null,e),t==null?e:t+e}let qe,qr;const Fa=typeof TextDecoder<"u";let Ma;const Pa=typeof TextEncoder<"u";function Ni(t){if(Pa)t=(Ma||(Ma=new TextEncoder)).encode(t);else{let r=0;const n=new Uint8Array(3*t.length);for(let s=0;s<t.length;s++){var e=t.charCodeAt(s);if(e<128)n[r++]=e;else{if(e<2048)n[r++]=e>>6|192;else{if(e>=55296&&e<=57343){if(e<=56319&&s<t.length){const i=t.charCodeAt(++s);if(i>=56320&&i<=57343){e=1024*(e-55296)+i-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}s--}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}var Ue,Ri=hr(610401301,!1),xa=hr(653718497,hr(1,!0)),Ci=hr(660014094,!1);const Fs=ne.navigator;function cn(t){return!!Ri&&!!Ue&&Ue.brands.some(({brand:e})=>e&&e.indexOf(t)!=-1)}function pt(t){var e;return(e=ne.navigator)&&(e=e.userAgent)||(e=""),e.indexOf(t)!=-1}function jt(){return!!Ri&&!!Ue&&Ue.brands.length>0}function Jr(){return jt()?cn("Chromium"):(pt("Chrome")||pt("CriOS"))&&!(!jt()&&pt("Edge"))||pt("Silk")}function Pn(t){return Pn[" "](t),t}Ue=Fs&&Fs.userAgentData||null,Pn[" "]=function(){};var Oa=!jt()&&(pt("Trident")||pt("MSIE"));!pt("Android")||Jr(),Jr(),pt("Safari")&&(Jr()||!jt()&&pt("Coast")||!jt()&&pt("Opera")||!jt()&&pt("Edge")||(jt()?cn("Microsoft Edge"):pt("Edg/"))||jt()&&cn("Opera"));var Di={},Ie=null;function Ia(t){var e=t.length,r=3*e/4;r%3?r=Math.floor(r):"=.".indexOf(t[e-1])!=-1&&(r="=.".indexOf(t[e-2])!=-1?r-2:r-1);var n=new Uint8Array(r),s=0;return function(i,o){function h(ut){for(;a<i.length;){var Y=i.charAt(a++),Me=Ie[Y];if(Me!=null)return Me;if(!/^[\s\xa0]*$/.test(Y))throw Error("Unknown base64 encoding at char: "+Y)}return ut}Bi();for(var a=0;;){var c=h(-1),u=h(0),g=h(64),v=h(64);if(v===64&&c===-1)break;o(c<<2|u>>4),g!=64&&(o(u<<4&240|g>>2),v!=64&&o(g<<6&192|v))}}(t,function(i){n[s++]=i}),s!==r?n.subarray(0,s):n}function Bi(){if(!Ie){Ie={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],r=0;r<5;r++){var n=t.concat(e[r].split(""));Di[r]=n;for(var s=0;s<n.length;s++){var i=n[s];Ie[i]===void 0&&(Ie[i]=s)}}}}var Ui=typeof Uint8Array<"u",Gi=!Oa&&typeof btoa=="function";function Ms(t){if(!Gi){var e;e===void 0&&(e=0),Bi(),e=Di[e];var r=Array(Math.floor(t.length/3)),n=e[64]||"";let a=0,c=0;for(;a<t.length-2;a+=3){var s=t[a],i=t[a+1],o=t[a+2],h=e[s>>2];s=e[(3&s)<<4|i>>4],i=e[(15&i)<<2|o>>6],o=e[63&o],r[c++]=h+s+i+o}switch(h=0,o=n,t.length-a){case 2:o=e[(15&(h=t[a+1]))<<2]||n;case 1:t=t[a],r[c]=e[t>>2]+e[(3&t)<<4|h>>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 e+=String.fromCharCode.apply(null,r?t.subarray(r):t),btoa(e)}const Ps=/[-_.]/g,Na={"-":"+",_:"/",".":"="};function Ra(t){return Na[t]||""}function ji(t){if(!Gi)return Ia(t);Ps.test(t)&&(t=t.replace(Ps,Ra)),t=atob(t);const e=new Uint8Array(t.length);for(let r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}function He(t){return Ui&&t!=null&&t instanceof Uint8Array}var de={};let Ca;function Vi(t){if(t!==de)throw Error("illegal external caller")}function se(){return Ca||(Ca=new Ct(null,de))}function xn(t){Vi(de);var e=t.ba;return(e=e==null||He(e)?e:typeof e=="string"?ji(e):null)==null?e:t.ba=e}var Ct=class{constructor(t,e){if(Vi(e),this.ba=t,t!=null&&t.length===0)throw Error("ByteString should be constructed with non-empty values")}ua(){return new Uint8Array(xn(this)||0)}};function Hi(t,e){t.__closure__error__context__984382||(t.__closure__error__context__984382={}),t.__closure__error__context__984382.severity=e}let Da;function ie(){const t=Error();Hi(t,"incident"),function(e){ne.setTimeout(()=>{throw e},0)}(t)}function un(t){return Hi(t=Error(t),"warning"),t}function On(){return typeof BigInt=="function"}function ot(t){return Array.prototype.slice.call(t)}var be=typeof Symbol=="function"&&typeof Symbol()=="symbol";function br(t){return typeof Symbol=="function"&&typeof Symbol()=="symbol"?Symbol():t}var We=br(),xs=br("0di"),Zr=br("2ex"),Pe=br("1oa"),Ar=be?(t,e)=>{t[We]|=e}:(t,e)=>{t.G!==void 0?t.G|=e:Object.defineProperties(t,{G:{value:e,configurable:!0,writable:!0,enumerable:!1}})},cr=be?(t,e)=>{t[We]&=~e}:(t,e)=>{t.G!==void 0&&(t.G&=~e)},U=be?t=>0|t[We]:t=>0|t.G,A=be?t=>t[We]:t=>t.G,N=be?(t,e)=>{t[We]=e}:(t,e)=>{t.G!==void 0?t.G=e:Object.defineProperties(t,{G:{value:e,configurable:!0,writable:!0,enumerable:!1}})};function Ae(t){return Ar(t,34),t}function Ba(t,e){N(e,-14591&(0|t))}function ln(t,e){N(e,-14557&(34|t))}var In,ze={},Wi={};function Os(t){return!(!t||typeof t!="object"||t.La!==Wi)}function Er(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)&&t.constructor===Object}function Nn(t,e,r){if(t!=null){if(typeof t=="string")t=t?new Ct(t,de):se();else if(t.constructor!==Ct)if(He(t))t=t.length?new Ct(r?t:new Uint8Array(t),de):se();else{if(!e)throw Error();t=void 0}}return t}function ur(t){return!(!Array.isArray(t)||t.length)&&!!(1&U(t))}const Is=[];function Ut(t){if(2&t)throw Error()}N(Is,55),In=Object.freeze(Is);class lr{constructor(e,r,n){this.l=0,this.g=e,this.h=r,this.m=n}next(){if(this.l<this.g.length){const e=this.g[this.l++];return{done:!1,value:this.h?this.h.call(this.m,e):e}}return{done:!0,value:void 0}}[Symbol.iterator](){return new lr(this.g,this.h,this.m)}}let Ht;function zi(t,e){(e=Ht?e[Ht]:void 0)&&(t[Ht]=ot(e))}var Ua=Object.freeze({}),Ga=Object.freeze({});function kr(t){return t.Sa=!0,t}var ja=kr(t=>typeof t=="number"),Ns=kr(t=>typeof t=="string"),Va=kr(t=>typeof t=="boolean"),Tr=typeof ne.BigInt=="function"&&typeof ne.BigInt(0)=="bigint",fn=kr(t=>Tr?t>=Wa&&t<=Ka:t[0]==="-"?Rs(t,Ha):Rs(t,za));const Ha=Number.MIN_SAFE_INTEGER.toString(),Wa=Tr?BigInt(Number.MIN_SAFE_INTEGER):void 0,za=Number.MAX_SAFE_INTEGER.toString(),Ka=Tr?BigInt(Number.MAX_SAFE_INTEGER):void 0;function Rs(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++){const n=t[r],s=e[r];if(n>s)return!1;if(n<s)return!0}}const Xa=typeof Uint8Array.prototype.slice=="function";let Ki,T=0,C=0;function Cs(t){const e=t>>>0;T=e,C=(t-e)/4294967296>>>0}function pe(t){if(t<0){Cs(-t);const[e,r]=Bn(T,C);T=e>>>0,C=r>>>0}else Cs(t)}function Rn(t){const e=Ki||(Ki=new DataView(new ArrayBuffer(8)));e.setFloat32(0,+t,!0),C=0,T=e.getUint32(0,!0)}function Cn(t,e){return 4294967296*e+(t>>>0)}function Dn(t,e){const r=2147483648&e;return r&&(e=~e>>>0,(t=1+~t>>>0)==0&&(e=e+1>>>0)),t=Cn(t,e),r?-t:t}function fr(t,e){if(t>>>=0,(e>>>=0)<=2097151)var r=""+(4294967296*e+t);else On()?r=""+(BigInt(e)<<BigInt(32)|BigInt(t)):(t=(16777215&t)+6777216*(r=16777215&(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+Ds(r)+Ds(t));return r}function Ds(t){return t=String(t),"0000000".slice(t.length)+t}function Sr(t){if(t.length<16)pe(Number(t));else if(On())t=BigInt(t),T=Number(t&BigInt(4294967295))>>>0,C=Number(t>>BigInt(32)&BigInt(4294967295));else{const e=+(t[0]==="-");C=T=0;const r=t.length;for(let n=e,s=(r-e)%6+e;s<=r;n=s,s+=6){const i=Number(t.slice(n,s));C*=1e6,T=1e6*T+i,T>=4294967296&&(C+=Math.trunc(T/4294967296),C>>>=0,T>>>=0)}if(e){const[n,s]=Bn(T,C);T=n,C=s}}}function Bn(t,e){return e=~e,t?t=1+~t:e+=1,[t,e]}function $t(t){return t==null||typeof t=="number"?t:t==="NaN"||t==="Infinity"||t==="-Infinity"?Number(t):void 0}function Xi(t){return t==null||typeof t=="boolean"?t:typeof t=="number"?!!t:void 0}const Ya=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function Lr(t){const e=typeof t;switch(e){case"bigint":return!0;case"number":return Number.isFinite(t)}return e==="string"&&Ya.test(t)}function Ee(t){if(t==null)return t;if(typeof t=="string"){if(!t)return;t=+t}return typeof t=="number"&&Number.isFinite(t)?0|t:void 0}function $a(t){if(t==null)return t;if(typeof t=="string"){if(!t)return;t=+t}return typeof t=="number"&&Number.isFinite(t)?t>>>0:void 0}function Bs(t){return t[0]!=="-"&&(t.length<20||t.length===20&&Number(t.substring(0,6))<184467)}function Un(t){return t=Math.trunc(t),Number.isSafeInteger(t)||(pe(t),t=Dn(T,C)),t}function Gn(t){var e=Math.trunc(Number(t));if(Number.isSafeInteger(e))return String(e);if((e=t.indexOf("."))!==-1&&(t=t.substring(0,e)),!(t[0]==="-"?t.length<20||t.length===20&&Number(t.substring(0,7))>-922337:t.length<19||t.length===19&&Number(t.substring(0,6))<922337))if(Sr(t),t=T,2147483648&(e=C))if(On())t=""+(BigInt(0|e)<<BigInt(32)|BigInt(t>>>0));else{const[r,n]=Bn(t,e);t="-"+fr(r,n)}else t=fr(t,e);return t}function dr(t){return t==null?t:typeof t=="bigint"?(fn(t)?t=Number(t):(t=BigInt.asIntN(64,t),t=fn(t)?Number(t):String(t)),t):Lr(t)?typeof t=="number"?Un(t):Gn(t):void 0}function qa(t){if(t==null)return t;var e=typeof t;if(e==="bigint")return String(BigInt.asUintN(64,t));if(Lr(t)){if(e==="string")return e=Math.trunc(Number(t)),Number.isSafeInteger(e)&&e>=0?t=String(e):((e=t.indexOf("."))!==-1&&(t=t.substring(0,e)),Bs(t)||(Sr(t),t=fr(T,C))),t;if(e==="number")return(t=Math.trunc(t))>=0&&Number.isSafeInteger(t)?t:function(r){if(r<0){pe(r);const n=fr(T,C);return r=Number(n),Number.isSafeInteger(r)?r:n}return Bs(String(r))?r:(pe(r),Cn(T,C))}(t)}}function Yi(t){if(typeof t!="string")throw Error();return t}function ke(t){if(t!=null&&typeof t!="string")throw Error();return t}function Wt(t){return t==null||typeof t=="string"?t:void 0}function jn(t,e,r,n){if(t!=null&&typeof t=="object"&&t.Y===ze)return t;if(!Array.isArray(t))return r?2&n?(t=e[xs])?e=t:(Ae((t=new e).u),e=e[xs]=t):e=new e:e=void 0,e;let s=r=U(t);return s===0&&(s|=32&n),s|=2&n,s!==r&&N(t,s),new e(t)}function Ja(t,e,r){if(e)t:{if(!Lr(e=t))throw un("int64");switch(typeof e){case"string":e=Gn(e);break t;case"bigint":if(t=e=BigInt.asIntN(64,e),Ns(t)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(t))throw Error(String(t))}else if(ja(t)&&!Number.isSafeInteger(t))throw Error(String(t));e=Tr?BigInt(e):Va(e)?e?"1":"0":Ns(e)?e.trim()||"0":String(e);break t;default:e=Un(e)}}else e=dr(t);return typeof(r=(t=e)==null?r?0:void 0:t)=="string"&&(e=+r,Number.isSafeInteger(e))?e:r}function $i(t){if(xe===void 0&&(xe=typeof Proxy=="function"?Ji(Proxy):null),!xe||!qi())return t;let e=X==null?void 0:X.get(t);return e||(Math.random()>.01?t:(function(r){if(Qr===void 0){const n=new xe([],{});Qr=Array.prototype.concat.call([],n).length===1}Qr&&typeof Symbol=="function"&&Symbol.isConcatSpreadable&&(r[Symbol.isConcatSpreadable]=!0)}(t),e=new xe(t,{set:(r,n,s)=>(ie(),r[n]=s,!0)}),function(r,n){(X||(X=new te)).set(r,n),(er||(er=new te)).set(n,r)}(t,e),e))}let X,er,xe,te,Qr,it,pr,Za,Qa;function qi(){return te===void 0&&(te=typeof WeakMap=="function"?Ji(WeakMap):null),te}function Ji(t){try{return t.toString().indexOf("[native code]")!==-1?t:null}catch{return null}}function Vn(t,e,r){var o;if(xa&&qi()){if((o=it==null?void 0:it.get(e))!=null&&o.get(t)){if(r)return}else if(Math.random()>.01)return;var n=t.length;r={length:n};for(var s=0;s<Math.min(n,10);s++){if(n<=10)var i=s;else{i=n/10;const h=Math.floor(s*i);i=h+Math.floor(Math.random()*(Math.floor((s+1)*i)-h))}r[i]=t[i]}Zi(t,r)?((s=(n=it||(it=new te)).get(e))||(s=new te,n.set(e,s)),s.set(t,r)):(ie(),Ge(t,e))}}function gr(t,e){var n;const r=(n=it==null?void 0:it.get(e))==null?void 0:n.get(t);r&&!Zi(t,r)&&(ie(),Ge(t,e))}function Zi(t,e){if(t.length!==e.length)return!1;for(const s in e){var r,n=Number(s);if((r=Number.isInteger(n))&&(r=t[n],n=e[n],r=!(Number.isNaN(r)?Number.isNaN(n):r===n)),r)return!1}return!0}function Fr(t){if(t&&(it!=null&&it.has(t))){var e=t.u;if(e)for(let r=0;r<e.length;r++){const n=e[r];if(r===e.length-1&&Er(n))for(const s in n){const i=n[s];Array.isArray(i)&&gr(i,t)}else Array.isArray(n)&&gr(n,t)}}}function Ge(t,e){var r;(r=it==null?void 0:it.get(e))==null||r.delete(t)}function ee(t,e){return t=Qi(t,e[0],e[1]),Ar(t,16384),t}function Qi(t,e,r){if(t==null&&(t=pr),pr=void 0,t==null){var n=96;r?(t=[r],n|=512):t=[],e&&(n=-33521665&n|(1023&e)<<15)}else{if(!Array.isArray(t))throw Error("narr");if(2048&(n=U(t)))throw Error("farr");if(64&n)return t;if(n|=64,r&&(n|=512,r!==t[0]))throw Error("mid");t:{const s=(r=t).length;if(s){const i=s-1;if(Er(r[i])){if((e=i-(+!!(512&(n|=256))-1))>=1024)throw Error("pvtlmt");n=-33521665&n|(1023&e)<<15;break t}}if(e){if((e=Math.max(e,s-(+!!(512&n)-1)))>1024)throw Error("spvt");n=-33521665&n|(1023&e)<<15}}}return N(t,n),t}const t2={};let e2=function(){try{return Pn(new class extends Map{constructor(){super()}}),!1}catch{return!0}}();class tn{constructor(){this.g=new Map}get(e){return this.g.get(e)}set(e,r){return this.g.set(e,r),this.size=this.g.size,this}delete(e){return e=this.g.delete(e),this.size=this.g.size,e}clear(){this.g.clear(),this.size=this.g.size}has(e){return this.g.has(e)}entries(){return this.g.entries()}keys(){return this.g.keys()}values(){return this.g.values()}forEach(e,r){return this.g.forEach(e,r)}[Symbol.iterator](){return this.entries()}}const r2=e2?(Object.setPrototypeOf(tn.prototype,Map.prototype),Object.defineProperties(tn.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),tn):class extends Map{constructor(){super()}};function Us(t){return t}function en(t){if(2&t.M)throw Error("Cannot mutate an immutable Map")}var mt=class extends r2{constructor(t,e,r=Us,n=Us){super();let s=U(t);s|=64,N(t,s),this.M=s,this.U=e,this.T=r,this.aa=this.U?n2:n;for(let i=0;i<t.length;i++){const o=t[i],h=r(o[0],!1,!0);let a=o[1];e?a===void 0&&(a=null):a=n(o[1],!1,!0,void 0,void 0,s),super.set(h,a)}}pa(t=Gs){if(this.size!==0)return this.Z(t)}Z(t=Gs){const 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(){en(this),super.clear()}delete(t){return en(this),super.delete(this.T(t,!0,!1))}entries(){var t=this.oa();return new lr(t,s2,this)}keys(){return this.Ka()}values(){var t=this.oa();return new lr(t,mt.prototype.get,this)}forEach(t,e){super.forEach((r,n)=>{t.call(e,this.get(n),n,this)})}set(t,e){return en(this),(t=this.T(t,!0,!1))==null?this:e==null?(super.delete(t),this):super.set(t,this.aa(e,!0,!0,this.U,!1,this.M))}Qa(t){const e=this.T(t[0],!1,!0);t=t[1],t=this.U?t===void 0?null:t:this.aa(t,!1,!0,void 0,!1,this.M),super.set(e,t)}has(t){return super.has(this.T(t,!1,!1))}get(t){t=this.T(t,!1,!1);const e=super.get(t);if(e!==void 0){var r=this.U;return r?((r=this.aa(e,!1,!0,r,this.va,this.M))!==e&&super.set(t,r),r):e}}oa(){return Array.from(super.keys())}Ka(){return super.keys()}[Symbol.iterator](){return this.entries()}};function n2(t,e,r,n,s,i){return t=jn(t,n,r,i),s&&(t=Pr(t)),t}function Gs(t){return t}function s2(t){return[t,this.get(t)]}let i2;function js(){return i2||(i2=new mt(Ae([]),void 0,void 0,void 0,t2))}function Hn(t,e,r,n,s){if(t!=null){if(Array.isArray(t))t=ur(t)?void 0:s&&2&U(t)?t:Mr(t,e,r,n!==void 0,s);else if(Er(t)){const i={};for(let o in t)i[o]=Hn(t[o],e,r,n,s);t=i}else t=e(t,n);return t}}function Mr(t,e,r,n,s){const i=n||r?U(t):0;n=n?!!(32&i):void 0;const o=ot(t);for(let h=0;h<o.length;h++)o[h]=Hn(o[h],e,r,n,s);return r&&(zi(o,t),r(i,o)),o}function o2(t){return Hn(t,Wn,void 0,void 0,!1)}function Wn(t){return t.Y===ze?t.toJSON():t instanceof mt?t.pa(o2):function(e){switch(typeof e){case"number":return isFinite(e)?e:String(e);case"bigint":return fn(e)?Number(e):String(e);case"boolean":return e?1:0;case"object":if(e)if(Array.isArray(e)){if(ur(e))return}else{if(He(e))return Ms(e);if(e instanceof Ct){const r=e.ba;return r==null?"":typeof r=="string"?r:e.ba=Ms(r)}if(e instanceof mt)return e.pa()}}return e}(t)}function dn(t,e,r=ln){if(t!=null){if(Ui&&t instanceof Uint8Array)return e?t:new Uint8Array(t);if(Array.isArray(t)){var n=U(t);return 2&n?t:(e&&(e=n===0||!!(32&n)&&!(64&n||!(16&n))),e?(N(t,-12293&(34|n)),t):Mr(t,dn,4&n?ln:r,!0,!0))}return t.Y===ze?(r=t.u,t=2&(n=A(r))?t:zn(t,r,n,!0)):t instanceof mt&&!(2&t.M)&&(r=Ae(t.Z(dn)),t=new mt(r,t.U,t.T,t.aa)),t}}function zn(t,e,r,n){return Fr(t),t=t.constructor,pr=e=to(e,r,n),e=new t(e),pr=void 0,e}function to(t,e,r){const n=r||2&e?ln:Ba,s=!!(32&e);return t=function(i,o,h){const a=ot(i);var c=a.length;const u=256&o?a[c-1]:void 0;for(c+=u?-1:0,o=512&o?1:0;o<c;o++)a[o]=h(a[o]);if(u){o=a[o]={};for(const g in u)o[g]=h(u[g])}return zi(a,i),a}(t,e,i=>dn(i,s,n)),Ar(t,32|(r?2:0)),t}function Pr(t){const e=t.u,r=A(e);return 2&r?zn(t,e,r,!1):t}function eo(t,e,r,n){return!(4&e)||r!=null}function zt(t,e){return xt(t=t.u,A(t),e)}function Vs(t,e,r,n){if(!((e=n+(+!!(512&e)-1))<0||e>=t.length||e>=r))return t[e]}function xt(t,e,r,n){if(r===-1)return null;const s=e>>15&1023||536870912;if(!(r>=s)){var i=t.length;return n&&256&e&&(n=t[i-1][r])!=null?(Vs(t,e,s,r)&&Zr!=null&&((e=(t=Da??(Da={}))[Zr]||0)>=4||(t[Zr]=e+1,ie())),n):Vs(t,e,s,r)}return 256&e?t[t.length-1][r]:void 0}function S(t,e,r){const n=t.u;let s=A(n);return Ut(s),x(n,s,e,r),t}function x(t,e,r,n){const s=e>>15&1023||536870912;if(r>=s){let i,o=e;if(256&e)i=t[t.length-1];else{if(n==null)return o;i=t[s+(+!!(512&e)-1)]={},o|=256}return i[r]=n,r<s&&(t[r+(+!!(512&e)-1)]=void 0),o!==e&&N(t,o),o}return t[r+(+!!(512&e)-1)]=n,256&e&&r in(t=t[t.length-1])&&delete t[r],e}function Te(t,e,r,n,s){var i=2&e;s=xt(t,e,r,s),Array.isArray(s)||(s=In);const o=!(2&n);n=!(1&n);const h=!!(32&e);let a=U(s);return a!==0||!h||i||o?1&a||(a|=1,N(s,a)):(a|=33,N(s,a)),i?(t=!1,2&a||(Ae(s),t=!!(4&a)),(n||t)&&Object.freeze(s)):(i=!!(2&a)||!!(2048&a),n&&i?(s=ot(s),i=1,h&&!o&&(i|=32),N(s,i),x(t,e,r,s)):o&&32&a&&!i&&cr(s,32)),s}function rr(t,e){t=t.u;let r=A(t);const n=xt(t,r,e),s=$t(n);return s!=null&&s!==n&&x(t,r,e,s),s}function ro(t){t=t.u;let e=A(t);const r=xt(t,e,1),n=Nn(r,!0,!!(34&e));return n!=null&&n!==r&&x(t,e,1,n),n}function Zt(){return Ua===void 0?2:5}function Qt(t,e,r,n,s,i){const o=t.u;let h=A(o);n=2&h?1:n,i=!!i,s=no(o,h,e,s);var a=U(s),c=s;if(gr(c,t),n!==2&&n!==1||Ge(c,t),eo(t,a,void 0)){4&a&&(s=ot(s),a=oe(a,h),h=x(o,h,e,s));let g=c=0;for(;c<s.length;c++){const v=r(s[c]);v!=null&&(s[g++]=v)}g<c&&(s.length=g),a=-4097&(20|(a=so(a,h))),N(s,a&=-8193),2&a&&Object.freeze(s)}let u;return n===1||n===4&&32&a?Nt(a)||(t=a,(a|=2)!==t&&N(s,a),Object.freeze(s)):(r=n===5&&(!!(32&a)||Nt(a)||!!(X!=null&&X.get(s))),(n===2||r)&&Nt(a)&&(s=ot(s),a=ge(a=oe(a,h),h,i),N(s,a),h=x(o,h,e,s)),Nt(a)||(e=a,(a=ge(a,h,i))!==e&&N(s,a)),r?(u=$i(s),Vn(s,t,!0)):n!==2||i||(X==null||X.delete(s))),u||s}function no(t,e,r,n){return t=xt(t,e,r,n),Array.isArray(t)?t:In}function so(t,e){return t===0&&(t=oe(t,e)),1|t}function Nt(t){return!!(2&t)&&!!(4&t)||!!(2048&t)}function io(t){t=ot(t);for(let e=0;e<t.length;e++){const r=t[e]=ot(t[e]);Array.isArray(r[1])&&(r[1]=Ae(r[1]))}return t}function pn(t,e,r,n){t=t.u;let s=A(t);Ut(s),x(t,s,e,(n==="0"?Number(r)===0:r===n)?void 0:r)}function rn(t,e){var r=Go;return Xn(Kn(t=t.u),t,A(t),r)===e?e:-1}function Kn(t){if(be)return t[Pe]??(t[Pe]=new Map);if(Pe in t)return t[Pe];const e=new Map;return Object.defineProperty(t,Pe,{value:e}),e}function oo(t,e,r,n){const s=Kn(t),i=Xn(s,t,e,r);return i!==n&&(i&&(e=x(t,e,i)),s.set(r,n)),e}function Xn(t,e,r,n){let s=t.get(n);if(s!=null)return s;s=0;for(let i=0;i<n.length;i++){const o=n[i];xt(e,r,o)!=null&&(s!==0&&(r=x(e,r,s)),s=o)}return t.set(n,s),s}function Yn(t,e,r,n){let s,i=A(t);if((n=xt(t,i,r,n))!=null&&n.Y===ze)return(e=Pr(n))!==n&&x(t,i,r,e),e.u;if(Array.isArray(n)){const o=U(n);s=2&o?to(n,o,!1):n,s=ee(s,e)}else s=ee(void 0,e);return s!==n&&x(t,i,r,s),s}function ao(t,e,r,n){t=t.u;let s=A(t);return(e=jn(n=xt(t,s,r,n),e,!1,s))!==n&&e!=null&&x(t,s,r,e),e}function w(t,e,r,n=!1){if((e=ao(t,e,r,n))==null)return e;if(t=t.u,!(2&(n=A(t)))){const s=Pr(e);s!==e&&x(t,n,r,e=s)}return e}function ho(t,e,r,n,s,i,o){const h=t.u;var a=!!(2&e);s=a?1:s,i=!!i,o&&(o=!a),a=no(h,e,n);var c=U(a),u=a;if(gr(u,t),s!==2&&s!==1||Ge(u,t),!(u=!!(4&c))){var g=a,v=e;const Y=!!(2&(c=so(c,e)));Y&&(v|=2);let Me=!Y,Ts=!0,$e=0,Yr=0;for(;$e<g.length;$e++){const $r=jn(g[$e],r,!1,v);if($r instanceof r){if(!Y){const Ss=!!(2&U($r.u));Me&&(Me=!Ss),Ts&&(Ts=Ss)}g[Yr++]=$r}}Yr<$e&&(g.length=Yr),c|=4,c=Ts?16|c:-17&c,N(g,c=Me?8|c:-9&c),Y&&Object.freeze(g)}if(o&&!(8&c||!a.length&&(s===1||s===4&&32&c))){for(Nt(c)?(a=ot(a),c=oe(c,e),e=x(h,e,n,a)):Ge(a,t),r=a,o=c,g=0;g<r.length;g++)(c=r[g])!==(v=Pr(c))&&(r[g]=v);o|=8,o=r.length?-17&o:16|o,N(r,o),c=o}let ut;return s===1||s===4&&32&c?Nt(c)||(t=c,(c|=!a.length||16&c&&(!u||32&c)?2:2048)!==t&&N(a,c),Object.freeze(a)):(u=s===5&&(!!(32&c)||Nt(c)||!!(X!=null&&X.get(a))),(s===2||u)&&Nt(c)&&(a=ot(a),c=ge(c=oe(c,e),e,i),N(a,c),e=x(h,e,n,a)),Nt(c)||(n=c,(c=ge(c,e,i))!==n&&N(a,c)),u?(ut=$i(a),Vn(a,t,!0)):s!==2||i||(X==null||X.delete(a))),ut||a}function Bt(t,e,r){const n=A(t.u);return ho(t,n,e,r,Zt(),!1,!(2&n))}function m(t,e,r,n){return n==null&&(n=void 0),S(t,r,n)}function Re(t,e,r,n){n==null&&(n=void 0);t:{t=t.u;let s=A(t);if(Ut(s),n==null){const i=Kn(t);if(Xn(i,t,s,r)!==e)break t;i.set(r,0)}else s=oo(t,s,r,e);x(t,s,e,n)}}function oe(t,e){return-2049&(t=32|(2&e?2|t:-3&t))}function ge(t,e,r){return 32&e&&r||(t&=-33),t}function mr(t,e,r,n){const s=A(t.u);Ut(s),t=ho(t,s,r,e,2,!0),r=n??new r,t.push(r),2&U(r.u)?cr(t,8):cr(t,16)}function wt(t,e){return t??e}function gt(t,e){return Ee(zt(t,e))}function B(t,e){return wt(rr(t,e),0)}function Mt(t,e){return wt(Wt(zt(t,e)),"")}function je(t,e,r){if(r!=null&&typeof r!="boolean")throw t=typeof r,Error(`Expected boolean but got ${t!="object"?t:r?Array.isArray(r)?"array":t:"null"}: ${r}`);S(t,e,r)}function Pt(t,e,r){if(r!=null){if(typeof r!="number"||!Number.isFinite(r))throw un("int32");r|=0}S(t,e,r)}function d(t,e,r){if(r!=null&&typeof r!="number")throw Error(`Value of float/double field must be a number, found ${typeof r}: ${r}`);S(t,e,r)}function yr(t,e,r){{const h=t.u;let a=A(h);if(Ut(a),r==null)x(h,a,e);else{r=(er==null?void 0:er.get(r))||r;var n,s=U(r),i=s,o=!!(2&s)||Object.isFrozen(r);if((n=!o)&&(n=Ga===void 0||!1),eo(t,s)){s=21,o&&(r=ot(r),i=0,s=ge(s=oe(s,a),a,!0));for(let c=0;c<r.length;c++)r[c]=Yi(r[c])}n?(r=ot(r),i=0,s=ge(s=oe(s,a),a,!0)):o||Vn(r,t),s!==i&&N(r,s),x(h,a,e,r)}}}function xr(t,e,r){Ut(A(t.u)),Qt(t,e,Wt,2,void 0,!0).push(Yi(r))}function co(t,e){return Error(`Invalid wire type: ${t} (at position ${e})`)}function $n(){return Error("Failed to read varint, encoding is invalid.")}function uo(t,e){return Error(`Tried to read past the end of the data ${e} > ${t}`)}function qn(t){if(typeof t=="string")return{buffer:ji(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===Ct)return{buffer:xn(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 Jn(t,e){let r,n=0,s=0,i=0;const o=t.h;let h=t.g;do r=o[h++],n|=(127&r)<<i,i+=7;while(i<32&&128&r);for(i>32&&(s|=(127&r)>>4),i=3;i<32&&128&r;i+=7)r=o[h++],s|=(127&r)<<i;if(re(t,h),r<128)return e(n>>>0,s>>>0);throw $n()}function Zn(t){let e=0,r=t.g;const n=r+10,s=t.h;for(;r<n;){const i=s[r++];if(e|=i,(128&i)==0)return re(t,r),!!(127&e)}throw $n()}function Kt(t){const e=t.h;let r=t.g,n=e[r++],s=127&n;if(128&n&&(n=e[r++],s|=(127&n)<<7,128&n&&(n=e[r++],s|=(127&n)<<14,128&n&&(n=e[r++],s|=(127&n)<<21,128&n&&(n=e[r++],s|=n<<28,128&n&&128&e[r++]&&128&e[r++]&&128&e[r++]&&128&e[r++]&&128&e[r++])))))throw $n();return re(t,r),s}function Xt(t){return Kt(t)>>>0}function gn(t){var e=t.h;const r=t.g,n=e[r],s=e[r+1],i=e[r+2];return e=e[r+3],re(t,t.g+4),(n<<0|s<<8|i<<16|e<<24)>>>0}function mn(t){var e=gn(t);t=2*(e>>31)+1;const r=e>>>23&255;return e&=8388607,r==255?e?NaN:t*(1/0):r==0?1401298464324817e-60*t*e:t*Math.pow(2,r-150)*(e+8388608)}function a2(t){return Kt(t)}function nn(t,e,{ea:r=!1}={}){t.ea=r,e&&(e=qn(e),t.h=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 uo(t.l,e)}function lo(t,e){if(e<0)throw Error(`Tried to read a negative byte length: ${e}`);const r=t.g,n=r+e;if(n>t.l)throw uo(e,t.l-r);return t.g=n,r}function fo(t,e){if(e==0)return se();var r=lo(t,e);return t.ea&&t.m?r=t.h.subarray(r,r+e):(t=t.h,r=r===(e=r+e)?new Uint8Array(0):Xa?t.slice(r,e):new Uint8Array(t.subarray(r,e))),r.length==0?se():new Ct(r,de)}mt.prototype.toJSON=void 0,mt.prototype.La=Wi;var Hs=[];function po(t){var e=t.g;if(e.g==e.l)return!1;t.l=t.g.g;var r=Xt(t.g);if(e=r>>>3,!((r&=7)>=0&&r<=5))throw co(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 nr(t){switch(t.h){case 0:t.h!=0?nr(t):Zn(t.g);break;case 1:re(t=t.g,t.g+8);break;case 2:if(t.h!=2)nr(t);else{var e=Xt(t.g);re(t=t.g,t.g+e)}break;case 5:re(t=t.g,t.g+4);break;case 3:for(e=t.m;;){if(!po(t))throw Error("Unmatched start-group tag: stream EOF");if(t.h==4){if(t.m!=e)throw Error("Unmatched end-group tag");break}nr(t)}break;default:throw co(t.h,t.l)}}function Ke(t,e,r){const n=t.g.l,s=Xt(t.g),i=t.g.g+s;let o=i-n;if(o<=0&&(t.g.l=i,r(e,t,void 0,void 0,void 0),o=i-t.g.g),o)throw Error(`Message parsing ended unexpectedly. Expected to read ${s} bytes, instead read ${s-o} bytes, either the data ended unexpectedly or the message misreported its own length`);return t.g.g=i,t.g.l=n,e}function Qn(t){var e=Xt(t.g),r=lo(t=t.g,e);if(t=t.h,Fa){var n,s=t;(n=qr)||(n=qr=new TextDecoder("utf-8",{fatal:!0})),e=r+e,s=r===0&&e===s.length?s:s.subarray(r,e);try{var i=n.decode(s)}catch(h){if(qe===void 0){try{n.decode(new Uint8Array([128]))}catch{}try{n.decode(new Uint8Array([97])),qe=!0}catch{qe=!1}}throw!qe&&(qr=void 0),h}}else{e=(i=r)+e,r=[];let h,a=null;for(;i<e;){var o=t[i++];o<128?r.push(o):o<224?i>=e?Jt():(h=t[i++],o<194||(192&h)!=128?(i--,Jt()):r.push((31&o)<<6|63&h)):o<240?i>=e-1?Jt():(h=t[i++],(192&h)!=128||o===224&&h<160||o===237&&h>=160||(192&(n=t[i++]))!=128?(i--,Jt()):r.push((15&o)<<12|(63&h)<<6|63&n)):o<=244?i>=e-2?Jt():(h=t[i++],(192&h)!=128||h-144+(o<<28)>>30||(192&(n=t[i++]))!=128||(192&(s=t[i++]))!=128?(i--,Jt()):(o=(7&o)<<18|(63&h)<<12|(63&n)<<6|63&s,o-=65536,r.push(55296+(o>>10&1023),56320+(1023&o)))):Jt(),r.length>=8192&&(a=Ls(a,r),r.length=0)}i=Ls(a,r)}return i}function go(t){const e=Xt(t.g);return fo(t.g,e)}function Or(t,e,r){var n=Xt(t.g);for(n=t.g.g+n;t.g.g<n;)r.push(e(t.g))}var Je=[];let _r;function At(t,e,r){e.g?e.m(t,e.g,e.h,r,!0):e.m(t,e.h,r,!0)}var f=class{constructor(t,e){this.u=Qi(t,e)}toJSON(){return mo(this)}l(){var t=Y2;return t.g?t.l(this,t.g,t.h,!0):t.l(this,t.h,t.defaultValue,!0)}clone(){const t=this.u;return zn(this,t,A(t),!1)}O(){return!!(2&U(this.u))}};function mo(t){Fr(t),t=_r?t.u:Mr(t.u,Wn,void 0,void 0,!1);{var e=!_r;let c=t.length;if(c){var r=t[c-1],n=Er(r);n?c--:r=void 0;var s=t;if(n){t:{var i,o=r,h=!1;if(o)for(let u in o)isNaN(+u)?(i??(i={}))[u]=o[u]:(n=o[u],Array.isArray(n)&&(ur(n)||Os(n)&&n.size===0)&&(n=null),n==null&&(h=!0),n!=null&&((i??(i={}))[u]=n));if(h||(i=o),i)for(let u in i){h=i;break t}h=null}o=h==null?r!=null:h!==r}for(;c>0&&((i=s[c-1])==null||ur(i)||Os(i)&&i.size===0);c--)var a=!0;(s!==t||o||a)&&(e?(a||o||h)&&(s.length=c):s=Array.prototype.slice.call(s,0,c),h&&s.push(h)),a=s}else a=t}return a}function Ws(t){return t?/^\d+$/.test(t)?(Sr(t),new yn(T,C)):null:h2||(h2=new yn(0,0))}f.prototype.Y=ze,f.prototype.toString=function(){try{return _r=!0,mo(this).toString()}finally{_r=!1}};var yn=class{constructor(t,e){this.h=t>>>0,this.g=e>>>0}};let h2;function zs(t){return t?/^-?\d+$/.test(t)?(Sr(t),new _n(T,C)):null:c2||(c2=new _n(0,0))}var _n=class{constructor(t,e){this.h=t>>>0,this.g=e>>>0}};let c2;function le(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 Xe(t,e){for(;e>127;)t.g.push(127&e|128),e>>>=7;t.g.push(e)}function Ir(t,e){if(e>=0)Xe(t,e);else{for(let r=0;r<9;r++)t.g.push(127&e|128),e>>=7;t.g.push(1)}}function Ve(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 me(t,e){e.length!==0&&(t.l.push(e),t.h+=e.length)}function yt(t,e,r){Xe(t.g,8*e+r)}function ts(t,e){return yt(t,e,2),e=t.g.end(),me(t,e),e.push(t.h),e}function es(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 Nr(t,e,r){yt(t,e,2),Xe(t.g,r.length),me(t,t.g.end()),me(t,r)}function vn(t,e,r,n){r!=null&&(e=ts(t,e),n(r,t),es(t,e))}class Se{constructor(e,r,n){this.g=e,this.h=r,this.qa=n}}function yo(t){return Array.isArray(t)?t[0]instanceof Se?t:[v2,t]:[t,void 0]}function Le(t,e){if(Array.isArray(e)){var r=U(e);if(4&r)return e;for(var n=0,s=0;n<e.length;n++){const i=t(e[n]);i!=null&&(e[s++]=i)}return s<n&&(e.length=s),N(e,-12289&(5|r)),2&r&&Object.freeze(e),e}}const Ks=Symbol();function rs(t){let e=t[Ks];if(!e){const r=ns(t),n=r.h;e=n?(s,i)=>n(s,i,r):(s,i)=>{var c;for(;po(i)&&i.h!=4;){var o=i.m;let u=r[o];const g=!u;let v=!1;if(!u){var h=r.X;if(h){var a=h[o];a&&(v=(c=h.P)==null?void 0:c[o],(!Ci||v)&&(h=u2(a))&&(u=r[o]=h))}}u&&u(i,s,o)||(o=(h=i).l,nr(h),h.ja?h=void 0:(a=h.g.g-o,h.g.g=o,h=fo(h.g,a)),o=s,h&&(Ht||(Ht=Symbol()),(a=o[Ht])?a.push(h):o[Ht]=[h])),g&&u&&!v&&wn++<5&&ie()}},t[Ks]=e}return e}function u2(t){const e=(t=yo(t))[0].g;if(t=t[1]){const r=rs(t),n=ns(t).g;return(s,i,o)=>e(s,i,o,n,r)}return e}function l2(t,e,r){t[e]=r}function _o(t,e,r,n){var s=l2;e.g=function(g){switch(typeof g){case"boolean":return Za||(Za=[0,void 0,!0]);case"number":return g>0?void 0:g===0?Qa||(Qa=[0,void 0]):[-g,void 0];case"string":return[0,g];case"object":return g}}(t[0]);let i=0;var o=t[++i];o&&o.constructor===Object&&(e.X=o,typeof(o=t[++i])=="function"&&(e.h=o,e.l=t[++i],o=t[++i]));const h={};for(;Array.isArray(o)&&typeof o[0]=="number"&&o[0]>0;){for(var a=0;a<o.length;a++)h[o[a]]=o;o=t[++i]}for(a=1;o!==void 0;){let g;typeof o=="number"&&(a+=o,o=t[++i]);var c=void 0;if(o instanceof Se?g=o:(g=w2,i--),g.qa){o=t[++i],c=t;var u=i;typeof o=="function"&&(o=o(),c[u]=o),c=o}for(u=a+1,typeof(o=t[++i])=="number"&&o<0&&(u-=o,o=t[++i]);a<u;a++){const v=h[a];s(e,a,c?n(g,c,v):r(g,v))}}return e}const Xs=Symbol();function vo(t){let e=t[Xs];if(!e){const r=Rr(t);e=(n,s)=>wo(n,s,r),t[Xs]=e}return e}const Ys=Symbol();function f2(t){return t.h}function d2(t,e){let r,n;const s=t.h;return(i,o,h)=>s(i,o,h,n||(n=Rr(e).g),r||(r=vo(e)))}function Rr(t){let e=t[Ys];return e||(e=_o(t,t[Ys]={},f2,d2))}const $s=Symbol();function p2(t,e){const r=t.g;return e?(n,s,i)=>r(n,s,i,e):r}function g2(t,e,r){const n=t.g;let s,i;return(o,h,a)=>n(o,h,a,i||(i=ns(e).g),s||(s=rs(e)),r)}function ns(t){let e=t[$s];return e||(e=_o(t,t[$s]={},p2,g2))}function qs(t,e){var i;var r=t[e];if(r)return r;if(r=t.X){var n=r[e];if(n){var s=(n=yo(n))[0].h;if(n=n[1],r=(i=r.P)==null?void 0:i[e],!Ci||r){if(n){const o=vo(n),h=Rr(n).g;r=(r=t.l)?r(h,o):(a,c,u)=>s(a,c,u,h,o)}else r=s;return t[e]=r}}}}function wo(t,e,r){var a,c,u;for(var n=A(t),s=+!!(512&n)-1,i=t.length,o=512&n?1:0,h=i+(256&n?-1:0);o<h;o++){const g=t[o];if(g==null)continue;const v=o-s,ut=qs(r,v);if(!ut)continue;const Y=r.X;Y!=null&&Y[v]&&!((a=Y==null?void 0:Y.P)!=null&&a[v])&&wn++<5&&ie(),ut(e,g,v)}if(256&n){n=t[i-1];for(let g in n)s=+g,!Number.isNaN(s)&&(i=n[g])!=null&&(h=qs(r,s))&&((c=o=r.X)!=null&&c[s]&&!((u=o==null?void 0:o.P)!=null&&u[s])&&wn++<5&&ie(),h(e,i,s))}if(t=Ht?t[Ht]:void 0)for(me(e,e.g.end()),r=0;r<t.length;r++)me(e,xn(t[r])||new Uint8Array(0))}function Z(t,e){return new Se(t,e,!1)}function Fe(t,e){return new Se(t,e,!1)}function Cr(t,e){return new Se(t,e,!0)}function Q(t,e,r){x(t,A(t),e,r)}var m2=Cr(function(t,e,r,n,s){return t.h===2&&(t=Ke(t,ee([void 0,void 0],n),s),Ut(n=A(e)),(s=xt(e,n,r))instanceof mt?2&s.M?((s=s.Z()).push(t),x(e,n,r,s)):s.Qa(t):Array.isArray(s)?(2&U(s)&&x(e,n,r,s=io(s)),s.push(t)):x(e,n,r,[t]),!0)},function(t,e,r,n,s){if(e instanceof mt)e.forEach((i,o)=>{vn(t,r,ee([o,i],n),s)});else if(Array.isArray(e))for(let i=0;i<e.length;i++){const o=e[i];Array.isArray(o)&&vn(t,r,ee(o,n),s)}});let wn=0;function bo(t,e,r){if(e=function(n){if(n==null)return n;const s=typeof n;if(s==="bigint")return String(BigInt.asIntN(64,n));if(Lr(n)){if(s==="string")return Gn(n);if(s==="number")return Un(n)}}(e),e!=null&&(typeof e=="string"&&zs(e),e!=null))switch(yt(t,r,0),typeof e){case"number":t=t.g,pe(e),le(t,T,C);break;case"bigint":r=BigInt.asUintN(64,e),r=new _n(Number(r&BigInt(4294967295)),Number(r>>BigInt(32))),le(t.g,r.h,r.g);break;default:r=zs(e),le(t.g,r.h,r.g)}}function Ao(t,e,r){(e=Ee(e))!=null&&e!=null&&(yt(t,r,0),Ir(t.g,e))}function Eo(t,e,r){(e=Xi(e))!=null&&(yt(t,r,0),t.g.g.push(e?1:0))}function ko(t,e,r){(e=Wt(e))!=null&&Nr(t,r,Ni(e))}function Dr(t,e,r,n,s){e instanceof f?(Fr(e),e=e.u):e=Array.isArray(e)?ee(e,n):void 0,vn(t,r,e,s)}function To(t,e,r){(e=e==null||typeof e=="string"||He(e)||e instanceof Ct?e:void 0)!=null&&Nr(t,r,qn(e).buffer)}function So(t,e,r){return(t.h===5||t.h===2)&&(e=Te(e,A(e),r,2,!1),t.h==2?Or(t,mn,e):e.push(mn(t.g)),!0)}var j,It=Z(function(t,e,r){if(t.h!==1)return!1;var n=t.g;t=gn(n);const s=gn(n);n=2*(s>>31)+1;const i=s>>>20&2047;return t=4294967296*(1048575&s)+t,Q(e,r,i==2047?t?NaN:n*(1/0):i==0?5e-324*n*t:n*Math.pow(2,i-1075)*(t+4503599627370496)),!0},function(t,e,r){(e=$t(e))!=null&&(yt(t,r,1),t=t.g,(r=Ki||(Ki=new DataView(new ArrayBuffer(8)))).setFloat64(0,+e,!0),T=r.getUint32(0,!0),C=r.getUint32(4,!0),Ve(t,T),Ve(t,C))}),H=Z(function(t,e,r){return t.h===5&&(Q(e,r,mn(t.g)),!0)},function(t,e,r){(e=$t(e))!=null&&(yt(t,r,5),t=t.g,Rn(e),Ve(t,T))}),y2=Fe(So,function(t,e,r){if((e=Le($t,e))!=null)for(let o=0;o<e.length;o++){var n=t,s=r,i=e[o];i!=null&&(yt(n,s,5),n=n.g,Rn(i),Ve(n,T))}}),ss=Fe(So,function(t,e,r){if((e=Le($t,e))!=null&&e.length){yt(t,r,2),Xe(t.g,4*e.length);for(let n=0;n<e.length;n++)r=t.g,Rn(e[n]),Ve(r,T)}}),Yt=Z(function(t,e,r){return t.h===0&&(Q(e,r,Jn(t.g,Dn)),!0)},bo),sn=Z(function(t,e,r){return t.h===0&&(Q(e,r,(t=Jn(t.g,Dn))===0?void 0:t),!0)},bo),_2=Z(function(t,e,r){return t.h===0&&(Q(e,r,Jn(t.g,Cn)),!0)},function(t,e,r){if((e=qa(e))!=null&&(typeof e=="string"&&Ws(e),e!=null))switch(yt(t,r,0),typeof e){case"number":t=t.g,pe(e),le(t,T,C);break;case"bigint":r=BigInt.asUintN(64,e),r=new yn(Number(r&BigInt(4294967295)),Number(r>>BigInt(32))),le(t.g,r.h,r.g);break;default:r=Ws(e),le(t.g,r.h,r.g)}}),D=Z(function(t,e,r){return t.h===0&&(Q(e,r,Kt(t.g)),!0)},Ao),Br=Fe(function(t,e,r){return(t.h===0||t.h===2)&&(e=Te(e,A(e),r,2,!1),t.h==2?Or(t,Kt,e):e.push(Kt(t.g)),!0)},function(t,e,r){if((e=Le(Ee,e))!=null&&e.length){r=ts(t,r);for(let n=0;n<e.length;n++)Ir(t.g,e[n]);es(t,r)}}),ue=Z(function(t,e,r){return t.h===0&&(Q(e,r,(t=Kt(t.g))===0?void 0:t),!0)},Ao),I=Z(function(t,e,r){return t.h===0&&(Q(e,r,Zn(t.g)),!0)},Eo),Ce=Z(function(t,e,r){return t.h===0&&(Q(e,r,(t=Zn(t.g))===!1?void 0:t),!0)},Eo),K=Fe(function(t,e,r){if(t.h!==2)return!1;t=Qn(t);const n=A(e);return Ut(n),Te(e,n,r,2).push(t),!0},function(t,e,r){if((e=Le(Wt,e))!=null)for(let o=0;o<e.length;o++){var n=t,s=r,i=e[o];i!=null&&Nr(n,s,Ni(i))}}),Vt=Z(function(t,e,r){return t.h===2&&(Q(e,r,(t=Qn(t))===""?void 0:t),!0)},ko),E=Z(function(t,e,r){return t.h===2&&(Q(e,r,Qn(t)),!0)},ko),v2=Cr(function(t,e,r,n,s){return t.h===2&&(Ke(t,Yn(e,n,r,!0),s),!0)},Dr),w2=Cr(function(t,e,r,n,s){return t.h===2&&(Ke(t,Yn(e,n,r),s),!0)},Dr);j=new Se(function(t,e,r,n,s){if(t.h!==2)return!1;n=ee(void 0,n);let i=A(e);Ut(i);let o=Te(e,i,r,3);return i=A(e),4&U(o)&&(o=ot(o),N(o,-2079&(1|U(o))),x(e,i,r,o)),o.push(n),Ke(t,n,s),!0},function(t,e,r,n,s){if(Array.isArray(e))for(let i=0;i<e.length;i++)Dr(t,e[i],r,n,s)},!0);var k=Cr(function(t,e,r,n,s,i){return t.h===2&&(oo(e,A(e),i,r),Ke(t,e=Yn(e,n,r),s),!0)},Dr),Lo=Z(function(t,e,r){return t.h===2&&(Q(e,r,go(t)),!0)},To),b2=Fe(function(t,e,r){return(t.h===0||t.h===2)&&(e=Te(e,A(e),r,2,!1),t.h==2?Or(t,Xt,e):e.push(Xt(t.g)),!0)},function(t,e,r){if((e=Le($a,e))!=null)for(let o=0;o<e.length;o++){var n=t,s=r,i=e[o];i!=null&&(yt(n,s,0),Xe(n.g,i))}}),bt=Z(function(t,e,r){return t.h===0&&(Q(e,r,Kt(t.g)),!0)},function(t,e,r){(e=Ee(e))!=null&&(e=parseInt(e,10),yt(t,r,0),Ir(t.g,e))});class A2{constructor(e,r){this.h=e,this.g=r,this.l=w,this.m=m,this.defaultValue=void 0}}function Et(t,e){return new A2(t,e)}function qt(t,e){return(r,n)=>{if(Je.length){const i=Je.pop();i.o(n),nn(i.g,r,n),r=i}else r=new class{constructor(i,o){if(Hs.length){const h=Hs.pop();nn(h,i,o),i=h}else i=new class{constructor(h,a){this.h=null,this.m=!1,this.g=this.l=this.j=0,nn(this,h,a)}clear(){this.h=null,this.m=!1,this.g=this.l=this.j=0,this.ea=!1}}(i,o);this.g=i,this.l=this.g.g,this.h=this.m=-1,this.o(o)}o({ja:i=!1}={}){this.ja=i}}(r,n);try{const i=new t,o=i.u;rs(e)(o,r);var s=i}finally{r.g.clear(),r.m=-1,r.h=-1,Je.length<100&&Je.push(r)}return s}}function Ur(t){return function(){Fr(this);const e=new class{constructor(){this.l=[],this.h=0,this.g=new class{constructor(){this.g=[]}length(){return this.g.length}end(){const o=this.g;return this.g=[],o}}}};wo(this.u,e,Rr(t)),me(e,e.g.end());const r=new Uint8Array(e.h),n=e.l,s=n.length;let i=0;for(let o=0;o<s;o++){const h=n[o];r.set(h,i),i+=h.length}return e.l=[r],r}}var Js=class extends f{constructor(t){super(t)}},Zs=[0,Vt,Z(function(t,e,r){return t.h===2&&(Q(e,r,(t=go(t))===se()?void 0:t),!0)},function(t,e,r){if(e!=null){if(e instanceof f){const n=e.Ta;return void(n&&(e=n(e),e!=null&&Nr(t,r,qn(e).buffer)))}if(Array.isArray(e))return}To(t,e,r)})],Fo=[0,D,bt,I,-1,Br,bt,-1],E2=class extends f{constructor(){super()}},Mo=[0,I,E,I,bt,-1,Fe(function(t,e,r){return(t.h===0||t.h===2)&&(e=Te(e,A(e),r,2,!1),t.h==2?Or(t,a2,e):e.push(Kt(t.g)),!0)},function(t,e,r){if((e=Le(Ee,e))!=null&&e.length){r=ts(t,r);for(let n=0;n<e.length;n++)Ir(t.g,e[n]);es(t,r)}}),E,-1,[0,I,-1],bt,I,-1],Po=[0,E,-2],Qs=class extends f{constructor(){super()}},xo=[0],Oo=[0,D,I,1,I,-3],k2=[0,E,I,-1,D,[0,[1,2,3,4,5,6,7],k,xo,k,Mo,k,Po,k,Oo,k,Fo,k,[0,E,-2],k,[0,E,bt]],[0,E],I,[0,[1,3],[2,4],k,[0,Br],-1,k,[0,K],-1,j,[0,E,-1]],E],at=class extends f{constructor(t){super(t,2)}},F={},V=F.P={};F[336783863]=k2,V[336783863]=1;var ti=[0,sn,-1,Ce,-3,sn,Br,Vt,ue,sn,-1,Ce,ue,Ce,-2,Vt];function ht(t,e){pn(t,2,ke(e),"")}function L(t,e){xr(t,3,e)}function _(t,e){xr(t,4,e)}var $=class extends f{constructor(t){super(t,500)}o(t){return m(this,0,7,t)}},De=[-1,{P:{}}],ei=[0,E,1,De],ri=[0,E,K,De];function ct(t,e){mr(t,1,$,e)}function M(t,e){xr(t,10,e)}function b(t,e){xr(t,15,e)}var tt=class extends f{constructor(t){super(t,500)}o(t){return m(this,0,1001,t)}},Io=[-500,j,[-500,Vt,-1,K,-3,[-2,F,I],j,Zs,ue,-1,ei,ri,j,[0,Vt,Ce],Vt,ti,ue,K,987,K],4,j,[-500,E,-1,[-1,{P:{}}],998,E],j,[-500,E,K,-1,[-2,{P:{}},I],997,K,-1],ue,j,[-500,E,K,De,998,K],K,ue,ei,ri,j,[0,Vt,-1,De],K,-2,ti,Vt,-1,Ce,979,De,j,Zs];tt.prototype.g=Ur(Io);var T2=qt(tt,Io),S2=class extends f{constructor(t){super(t)}},No=class extends f{constructor(t){super(t)}g(){return Bt(this,S2,1)}},Ro=[0,j,[0,D,H,E,-1]],Gr=qt(No,Ro),L2=class extends f{constructor(t){super(t)}},F2=class extends f{constructor(t){super(t)}},on=class extends f{constructor(t){super(t)}h(){return w(this,L2,2)}g(){return Bt(this,F2,5)}},Co=qt(class extends f{constructor(t){super(t)}},[0,K,Br,ss,[0,bt,[0,D,-3],[0,H,-3],[0,D,-1,[0,j,[0,D,-2]]],j,[0,H,-1,E,H]],E,-1,Yt,j,[0,D,H],K,Yt]),Do=class extends f{constructor(t){super(t)}},fe=qt(class extends f{constructor(t){super(t)}},[0,j,[0,H,-4]]),Bo=class extends f{constructor(t){super(t)}},Ye=qt(class extends f{constructor(t){super(t)}},[0,j,[0,H,-4]]),M2=class extends f{constructor(t){super(t)}},P2=[0,D,-1,ss,bt],Uo=class extends f{constructor(){super()}};Uo.prototype.g=Ur([0,H,-4,Yt]);var x2=class extends f{constructor(t){super(t)}},O2=qt(class extends f{constructor(t){super(t)}},[0,j,[0,1,D,E,Ro],Yt]),ni=class extends f{constructor(t){super(t)}},I2=class extends f{constructor(t){super(t)}ra(){const t=ro(this);return t??se()}},N2=class extends f{constructor(t){super(t)}},Go=[1,2],R2=qt(class extends f{constructor(t){super(t)}},[0,j,[0,Go,k,[0,ss],k,[0,Lo],D,E],Yt]),is=class extends f{constructor(t){super(t)}},jo=[0,E,D,H,K,-1],si=class extends f{constructor(t){super(t)}},C2=[0,I,-1],ii=class extends f{constructor(t){super(t)}},sr=[1,2,3,4,5],vr=class extends f{constructor(t){super(t)}g(){return ro(this)!=null}h(){return Wt(zt(this,2))!=null}},O=class extends f{constructor(t){super(t)}g(){return Xi(zt(this,2))??!1}},Vo=[0,Lo,E,[0,D,Yt,-1],[0,_2,Yt]],G=[0,Vo,I,[0,sr,k,Oo,k,Mo,k,Fo,k,xo,k,Po],bt],jr=class extends f{constructor(t){super(t)}},os=[0,G,H,-1,D],D2=Et(502141897,jr);F[502141897]=os,V[502141897]=1;var Ho=[0,Vo];F[512499200]=Ho;var Wo=[0,Ho];F[515723506]=Wo;var B2=qt(class extends f{constructor(t){super(t)}},[0,[0,bt,-1,y2,b2],P2]),zo=[0,G];F[508981768]=zo;var Ko=class extends f{constructor(t){super(t)}},Xo=class extends f{constructor(t){super(t)}},as=[0,G,H,zo,I],Yo=[0,G,os,as,H,Wo];F[508968149]=as;var U2=Et(508968150,Xo);F[508968150]=Yo,V[508968150]=1,V[508968149]=1;var $o=class extends f{constructor(t){super(t)}},G2=Et(513916220,$o);F[513916220]=[0,G,Yo,D],V[513916220]=1;var ae=class extends f{constructor(t){super(t)}h(){return w(this,is,2)}g(){S(this,2)}},qo=[0,G,jo];F[478825465]=qo,V[478825465]=1;var Jo=[0,G];F[478825422]=Jo;var j2=class extends f{constructor(t){super(t)}},Zo=class extends f{constructor(t){super(t)}},hs=class extends f{constructor(t){super(t)}},cs=class extends f{constructor(t){super(t)}},Qo=class extends f{constructor(t){super(t)}},ta=[0,G,Jo,qo,-1],ea=[0,G,H,D],us=[0,G,H],ra=[0,G,ea,us,H],V2=[0,G,ra,ta];F[463370452]=ta,F[464864288]=ea,F[474472470]=us;var H2=Et(462713202,cs);F[462713202]=ra;var W2=Et(479097054,Qo);F[479097054]=V2,V[479097054]=1,V[463370452]=1,V[464864288]=1,V[462713202]=1,V[474472470]=1;var z2=class extends f{constructor(t){super(t)}},na=class extends f{constructor(t){super(t)}},sa=class extends f{constructor(t){super(t)}},ia=class extends f{constructor(){super()}},bn=[0,G,H,-1,D],An=[0,G,H,I];ia.prototype.g=Ur([0,G,us,[0,G],os,as,bn,An]),F[514774813]=bn,F[518928384]=An;var oa=class extends f{constructor(t){super(t)}},K2=Et(456383383,oa);F[456383383]=[0,G,jo],V[456383383]=1;var aa=class extends f{constructor(t){super(t)}},X2=Et(476348187,aa);F[476348187]=[0,G,C2],V[476348187]=1;var ha=class extends f{constructor(t){super(t)}},oi=class extends f{constructor(t){super(t)}},ca=[0,bt,-1],Y2=Et(458105876,class extends f{constructor(t){super(t)}g(){var t=this.u;const e=A(t),r=2&e;return t=function(n,s,i){var o=oi;const h=2&s;let a=!1;if(i==null){if(h)return js();i=[]}else if(i.constructor===mt){if(!(2&i.M)||h)return i;i=i.Z()}else Array.isArray(i)?a=!!(2&U(i)):i=[];if(h){if(!i.length)return js();a||(a=!0,Ae(i))}else a&&(a=!1,i=io(i));return a||(64&U(i)?cr(i,32):32&s&&Ar(i,32)),x(n,s,2,o=new mt(i,o,Ja,void 0)),o}(t,e,xt(t,e,2)),!r&&oi&&(t.va=!0),t}});F[458105876]=[0,ca,m2,[!0,Yt,[0,E,-1,K]]],V[458105876]=1;var ls=class extends f{constructor(t){super(t)}},ua=Et(458105758,ls);F[458105758]=[0,G,E,ca],V[458105758]=1;var la=class extends f{constructor(t){super(t)}},$2=Et(443442058,la);F[443442058]=[0,G,E,D,H,K,-1],V[443442058]=1,V[514774813]=1;var fa=class extends f{constructor(t){super(t)}},q2=Et(516587230,fa);function En(t,e){return e=e?e.clone():new is,t.displayNamesLocale!==void 0?S(e,1,ke(t.displayNamesLocale)):t.displayNamesLocale===void 0&&S(e,1),t.maxResults!==void 0?Pt(e,2,t.maxResults):"maxResults"in t&&S(e,2),t.scoreThreshold!==void 0?d(e,3,t.scoreThreshold):"scoreThreshold"in t&&S(e,3),t.categoryAllowlist!==void 0?yr(e,4,t.categoryAllowlist):"categoryAllowlist"in t&&S(e,4),t.categoryDenylist!==void 0?yr(e,5,t.categoryDenylist):"categoryDenylist"in t&&S(e,5),e}function fs(t,e=-1,r=""){return{categories:t.map(n=>({index:wt(gt(n,1),0)??-1,score:B(n,2)??0,categoryName:Mt(n,3)??"",displayName:Mt(n,4)??""})),headIndex:e,headName:r}}function da(t){var o,h;var e=Qt(t,3,$t,Zt()),r=Qt(t,2,Ee,Zt()),n=Qt(t,1,Wt,Zt()),s=Qt(t,9,Wt,Zt());const i={categories:[],keypoints:[]};for(let a=0;a<e.length;a++)i.categories.push({score:e[a],index:r[a]??-1,categoryName:n[a]??"",displayName:s[a]??""});if((e=(o=w(t,on,4))==null?void 0:o.h())&&(i.boundingBox={originX:gt(e,1)??0,originY:gt(e,2)??0,width:gt(e,3)??0,height:gt(e,4)??0,angle:0}),(h=w(t,on,4))==null?void 0:h.g().length)for(const a of w(t,on,4).g())i.keypoints.push({x:rr(a,1)??0,y:rr(a,2)??0,score:rr(a,4)??0,label:Wt(zt(a,3))??""});return i}function Vr(t){const e=[];for(const r of Bt(t,Bo,1))e.push({x:B(r,1)??0,y:B(r,2)??0,z:B(r,3)??0,visibility:B(r,4)??0});return e}function Be(t){const e=[];for(const r of Bt(t,Do,1))e.push({x:B(r,1)??0,y:B(r,2)??0,z:B(r,3)??0,visibility:B(r,4)??0});return e}function ai(t){return Array.from(t,e=>e>127?e-256:e)}function hi(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,s=0;for(let i=0;i<t.length;i++)r+=t[i]*e[i],n+=t[i]*t[i],s+=e[i]*e[i];if(n<=0||s<=0)throw Error("Cannot compute cosine similarity on embedding with 0 norm.");return r/Math.sqrt(n*s)}let Ze;F[516587230]=[0,G,bn,An,H],V[516587230]=1,V[518928384]=1;const J2=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 pa(){if(Ze===void 0)try{await WebAssembly.instantiate(J2),Ze=!0}catch{Ze=!1}return Ze}async function Oe(t,e=""){const r=await pa()?"wasm_internal":"wasm_nosimd_internal";return{wasmLoaderPath:`${e}/${t}_${r}.js`,wasmBinaryPath:`${e}/${t}_${r}.wasm`}}var he=class{};function ga(){var t=navigator;return typeof OffscreenCanvas<"u"&&(!function(e=navigator){return(e=e.userAgent).includes("Safari")&&!e.includes("Chrome")}(t)||!!((t=t.userAgent.match(/Version\/([\d]+).*Safari/))&&t.length>=1&&Number(t[1])>=17))}async function ci(t){if(typeof importScripts!="function"){const e=document.createElement("script");return e.src=t.toString(),e.crossOrigin="anonymous",new Promise((r,n)=>{e.addEventListener("load",()=>{r()},!1),e.addEventListener("error",s=>{n(s)},!1),document.body.appendChild(e)})}importScripts(t.toString())}function ma(t){return t.videoWidth!==void 0?[t.videoWidth,t.videoHeight]:t.naturalWidth!==void 0?[t.naturalWidth,t.naturalHeight]:t.displayWidth!==void 0?[t.displayWidth,t.displayHeight]:[t.width,t.height]}function p(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 ui(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);const[n,s]=ma(e);return!t.l||n===t.i.canvas.width&&s===t.i.canvas.height||(t.i.canvas.width=n,t.i.canvas.height=s),[n,s]}function li(t,e,r){t.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target");const n=new Uint32Array(e.length);for(let s=0;s<e.length;s++)n[s]=t.i.stringToNewUTF8(e[s]);e=t.i._malloc(4*n.length),t.i.HEAPU32.set(n,e>>2),r(e);for(const s of n)t.i._free(s);t.i._free(e)}function Tt(t,e,r){t.i.simpleListeners=t.i.simpleListeners||{},t.i.simpleListeners[e]=r}function Gt(t,e,r){let n=[];t.i.simpleListeners=t.i.simpleListeners||{},t.i.simpleListeners[e]=(s,i,o)=>{i?(r(n,o),n=[]):n.push(s)}}he.forVisionTasks=function(t){return Oe("vision",t)},he.forTextTasks=function(t){return Oe("text",t)},he.forGenAiExperimentalTasks=function(t){return Oe("genai_experimental",t)},he.forGenAiTasks=function(t){return Oe("genai",t)},he.forAudioTasks=function(t){return Oe("audio",t)},he.isSimdSupported=function(){return pa()};async function Z2(t,e,r,n){return t=await(async(s,i,o,h,a)=>{if(i&&await ci(i),!self.ModuleFactory||o&&(await ci(o),!self.ModuleFactory))throw Error("ModuleFactory not set.");return self.Module&&a&&((i=self.Module).locateFile=a.locateFile,a.mainScriptUrlOrBlob&&(i.mainScriptUrlOrBlob=a.mainScriptUrlOrBlob)),a=await self.ModuleFactory(self.Module||a),self.ModuleFactory=self.Module=void 0,new s(a,h)})(t,r.wasmLoaderPath,r.assetLoaderPath,e,{locateFile:s=>s.endsWith(".wasm")?r.wasmBinaryPath.toString():r.assetBinaryPath&&s.endsWith(".data")?r.assetBinaryPath.toString():s}),await t.o(n),t}function an(t,e){const r=w(t.baseOptions,vr,1)||new vr;typeof e=="string"?(S(r,2,ke(e)),S(r,1)):e instanceof Uint8Array&&(S(r,1,Nn(e,!1,!1)),S(r,2)),m(t.baseOptions,0,1,r)}function fi(t){try{const e=t.H.length;if(e===1)throw Error(t.H[0].message);if(e>1)throw Error("Encountered multiple errors: "+t.H.map(r=>r.message).join(", "))}finally{t.H=[]}}function l(t,e){t.B=Math.max(t.B,e)}function Hr(t,e){t.A=new $,ht(t.A,"PassThroughCalculator"),L(t.A,"free_memory"),_(t.A,"free_memory_unused_out"),M(e,"free_memory"),ct(e,t.A)}function ye(t,e){L(t.A,e),_(t.A,e+"_unused_out")}function Wr(t){t.g.addBoolToStream(!0,"free_memory",t.B)}var ir=class{constructor(t){this.g=t,this.H=[],this.B=0,this.g.setAutoRenderToScreen(!1)}l(t,e=!0){var r,n,s,i,o,h;if(e){const a=t.baseOptions||{};if((r=t.baseOptions)!=null&&r.modelAssetBuffer&&((n=t.baseOptions)!=null&&n.modelAssetPath))throw Error("Cannot set both baseOptions.modelAssetPath and baseOptions.modelAssetBuffer");if(!((s=w(this.baseOptions,vr,1))!=null&&s.g()||(i=w(this.baseOptions,vr,1))!=null&&i.h()||(o=t.baseOptions)!=null&&o.modelAssetBuffer||(h=t.baseOptions)!=null&&h.modelAssetPath))throw Error("Either baseOptions.modelAssetPath or baseOptions.modelAssetBuffer must be set");if(function(c,u){let g=w(c.baseOptions,ii,3);if(!g){var v=g=new ii,ut=new Qs;Re(v,4,sr,ut)}"delegate"in u&&(u.delegate==="GPU"?(u=g,v=new E2,Re(u,2,sr,v)):(u=g,v=new Qs,Re(u,4,sr,v))),m(c.baseOptions,0,3,g)}(this,a),a.modelAssetPath)return fetch(a.modelAssetPath.toString()).then(c=>{if(c.ok)return c.arrayBuffer();throw Error(`Failed to fetch model: ${a.modelAssetPath} (${c.status})`)}).then(c=>{try{this.g.i.FS_unlink("/model.dat")}catch{}this.g.i.FS_createDataFile("/","model.dat",new Uint8Array(c),!0,!1,!1),an(this,"/model.dat"),this.m(),this.J()});if(a.modelAssetBuffer instanceof Uint8Array)an(this,a.modelAssetBuffer);else if(a.modelAssetBuffer)return async function(c){const u=[];for(var g=0;;){const{done:v,value:ut}=await c.read();if(v)break;u.push(ut),g+=ut.length}if(u.length===0)return new Uint8Array(0);if(u.length===1)return u[0];c=new Uint8Array(g),g=0;for(const v of u)c.set(v,g),g+=v.length;return c}(a.modelAssetBuffer).then(c=>{an(this,c),this.m(),this.J()})}return this.m(),this.J(),Promise.resolve()}J(){}ga(){let t;if(this.g.ga(e=>{t=T2(e)}),!t)throw Error("Failed to retrieve CalculatorGraphConfig");return t}setGraph(t,e){this.g.attachErrorListener((r,n)=>{this.H.push(Error(n))}),this.g.Oa(),this.g.setGraph(t,e),this.A=void 0,fi(this)}finishProcessing(){this.g.finishProcessing(),fi(this)}close(){this.A=void 0,this.g.closeGraph()}};function Dt(t,e){if(!t)throw Error(`Unable to obtain required WebGL resource: ${e}`);return t}ir.prototype.close=ir.prototype.close,function(t,e){t=t.split(".");var r,n=ne;for((t[0]in n)||n.execScript===void 0||n.execScript("var "+t[0]);t.length&&(r=t.shift());)t.length||e===void 0?n=n[r]&&n[r]!==Object.prototype[r]?n[r]:n[r]={}:n[r]=e}("TaskRunner",ir);class Q2{constructor(e,r,n,s){this.g=e,this.h=r,this.m=n,this.l=s}bind(){this.g.bindVertexArray(this.h)}close(){this.g.deleteVertexArray(this.h),this.g.deleteBuffer(this.m),this.g.deleteBuffer(this.l)}}function di(t,e,r){const n=t.g;if(r=Dt(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 pi(t,e){const r=t.g,n=Dt(r.createVertexArray(),"Failed to create vertex array");r.bindVertexArray(n);const s=Dt(r.createBuffer(),"Failed to create buffer");r.bindBuffer(r.ARRAY_BUFFER,s),r.enableVertexAttribArray(t.R),r.vertexAttribPointer(t.R,2,r.FLOAT,!1,0,0),r.bufferData(r.ARRAY_BUFFER,new Float32Array([-1,-1,-1,1,1,1,1,-1]),r.STATIC_DRAW);const i=Dt(r.createBuffer(),"Failed to create buffer");return r.bindBuffer(r.ARRAY_BUFFER,i),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.bindBuffer(r.ARRAY_BUFFER,null),r.bindVertexArray(null),new Q2(r,n,s,i)}function ds(t,e){if(t.g){if(e!==t.g)throw Error("Cannot change GL context once initialized")}else t.g=e}function ps(t,e,r,n){return ds(t,e),t.h||(t.m(),t.C()),r?(t.s||(t.s=pi(t,!0)),r=t.s):(t.v||(t.v=pi(t,!1)),r=t.v),e.useProgram(t.h),r.bind(),t.l(),t=n(),r.g.bindVertexArray(null),t}function zr(t,e,r){return ds(t,e),t=Dt(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 Kr(t,e,r){ds(t,e),t.A||(t.A=Dt(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 gs(t){var e;(e=t.g)==null||e.bindFramebuffer(t.g.FRAMEBUFFER,null)}var ms=class{H(){return`
|
|
2
|
+
precision mediump float;
|
|
3
|
+
varying vec2 vTex;
|
|
4
|
+
uniform sampler2D inputTexture;
|
|
5
|
+
void main() {
|
|
6
|
+
gl_FragColor = texture2D(inputTexture, vTex);
|
|
7
|
+
}
|
|
8
|
+
`}m(){const t=this.g;if(this.h=Dt(t.createProgram(),"Failed to create WebGL program"),this.da=di(this,`
|
|
9
|
+
attribute vec2 aVertex;
|
|
10
|
+
attribute vec2 aTex;
|
|
11
|
+
varying vec2 vTex;
|
|
12
|
+
void main(void) {
|
|
13
|
+
gl_Position = vec4(aVertex, 0.0, 1.0);
|
|
14
|
+
vTex = aTex;
|
|
15
|
+
}`,t.VERTEX_SHADER),this.ca=di(this,this.H(),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.R=t.getAttribLocation(this.h,"aVertex"),this.J=t.getAttribLocation(this.h,"aTex")}C(){}l(){}close(){if(this.h){const t=this.g;t.deleteProgram(this.h),t.deleteShader(this.da),t.deleteShader(this.ca)}this.A&&this.g.deleteFramebuffer(this.A),this.v&&this.v.close(),this.s&&this.s.close()}};function Rt(t,e){switch(e){case 0:return t.g.find(r=>r instanceof Uint8Array);case 1:return t.g.find(r=>r instanceof Float32Array);case 2:return t.g.find(r=>typeof WebGLTexture<"u"&&r instanceof WebGLTexture);default:throw Error(`Type is not supported: ${e}`)}}function kn(t){var e=Rt(t,1);if(!e){if(e=Rt(t,0))e=new Float32Array(e).map(n=>n/255);else{e=new Float32Array(t.width*t.height);const n=_e(t);var r=ys(t);if(Kr(r,n,ya(t)),"iPad Simulator;iPhone Simulator;iPod Simulator;iPad;iPhone;iPod".split(";").includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"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 s=0,i=0;s<e.length;++s,i+=4)e[s]=r[i]}else n.readPixels(0,0,t.width,t.height,n.RED,n.FLOAT,e)}t.g.push(e)}return e}function ya(t){let e=Rt(t,2);if(!e){const r=_e(t);e=va(t);const n=kn(t),s=_a(t);r.texImage2D(r.TEXTURE_2D,0,s,t.width,t.height,0,r.RED,r.FLOAT,n),Tn(t)}return e}function _e(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=Dt(t.canvas.getContext("webgl2"),"You cannot use a canvas that is already bound to a different type of rendering context.")),t.h}function _a(t){if(t=_e(t),!Qe)if(t.getExtension("EXT_color_buffer_float")&&t.getExtension("OES_texture_float_linear")&&t.getExtension("EXT_float_blend"))Qe=t.R32F;else{if(!t.getExtension("EXT_color_buffer_half_float"))throw Error("GPU does not fully support 4-channel float32 or float16 formats");Qe=t.R16F}return Qe}function ys(t){return t.l||(t.l=new ms),t.l}function va(t){const e=_e(t);e.viewport(0,0,t.width,t.height),e.activeTexture(e.TEXTURE0);let r=Rt(t,2);return r||(r=zr(ys(t),e,t.m?e.LINEAR:e.NEAREST),t.g.push(r),t.j=!0),e.bindTexture(e.TEXTURE_2D,r),r}function Tn(t){t.h.bindTexture(t.h.TEXTURE_2D,null)}var Qe,W=class{constructor(t,e,r,n,s,i,o){this.g=t,this.m=e,this.j=r,this.canvas=n,this.l=s,this.width=i,this.height=o,this.j&&--gi===0&&console.error("You seem to be creating MPMask instances without invoking .close(). This leaks resources.")}Ja(){return!!Rt(this,0)}ma(){return!!Rt(this,1)}S(){return!!Rt(this,2)}la(){return(e=Rt(t=this,0))||(e=kn(t),e=new Uint8Array(e.map(r=>255*r)),t.g.push(e)),e;var t,e}ka(){return kn(this)}N(){return ya(this)}clone(){const t=[];for(const 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}`);{const n=_e(this),s=ys(this);n.activeTexture(n.TEXTURE1),r=zr(s,n,this.m?n.LINEAR:n.NEAREST),n.bindTexture(n.TEXTURE_2D,r);const i=_a(this);n.texImage2D(n.TEXTURE_2D,0,i,this.width,this.height,0,n.RED,n.FLOAT,null),n.bindTexture(n.TEXTURE_2D,null),Kr(s,n,r),ps(s,n,!1,()=>{va(this),n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT),n.drawArrays(n.TRIANGLE_FAN,0,4),Tn(this)}),gs(s),Tn(this)}}t.push(r)}return new W(t,this.m,this.S(),this.canvas,this.l,this.width,this.height)}close(){this.j&&_e(this).deleteTexture(Rt(this,2)),gi=-1}};W.prototype.close=W.prototype.close,W.prototype.clone=W.prototype.clone,W.prototype.getAsWebGLTexture=W.prototype.N,W.prototype.getAsFloat32Array=W.prototype.ka,W.prototype.getAsUint8Array=W.prototype.la,W.prototype.hasWebGLTexture=W.prototype.S,W.prototype.hasFloat32Array=W.prototype.ma,W.prototype.hasUint8Array=W.prototype.Ja;var gi=250;function Ft(t,e){switch(e){case 0:return t.g.find(r=>r instanceof ImageData);case 1:return t.g.find(r=>typeof ImageBitmap<"u"&&r instanceof ImageBitmap);case 2:return t.g.find(r=>typeof WebGLTexture<"u"&&r instanceof WebGLTexture);default:throw Error(`Type is not supported: ${e}`)}}function wa(t){var e=Ft(t,0);if(!e){e=ve(t);const r=Xr(t),n=new Uint8Array(t.width*t.height*4);Kr(r,e,or(t)),e.readPixels(0,0,t.width,t.height,e.RGBA,e.UNSIGNED_BYTE,n),gs(r),e=new ImageData(new Uint8ClampedArray(n.buffer),t.width,t.height),t.g.push(e)}return e}function or(t){let e=Ft(t,2);if(!e){const r=ve(t);e=ar(t);const n=Ft(t,1)||wa(t);r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,n),Ne(t)}return e}function ve(t){if(!t.canvas)throw Error("Conversion to different image formats require that a canvas is passed when iniitializing the image.");return t.h||(t.h=Dt(t.canvas.getContext("webgl2"),"You cannot use a canvas that is already bound to a different type of rendering context.")),t.h}function Xr(t){return t.l||(t.l=new ms),t.l}function ar(t){const e=ve(t);e.viewport(0,0,t.width,t.height),e.activeTexture(e.TEXTURE0);let r=Ft(t,2);return r||(r=zr(Xr(t),e),t.g.push(r),t.m=!0),e.bindTexture(e.TEXTURE_2D,r),r}function Ne(t){t.h.bindTexture(t.h.TEXTURE_2D,null)}function mi(t){const e=ve(t);return ps(Xr(t),e,!0,()=>function(r,n){const s=r.canvas;if(s.width===r.width&&s.height===r.height)return n();const i=s.width,o=s.height;return s.width=r.width,s.height=r.height,r=n(),s.width=i,s.height=o,r}(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()}))}var z=class{constructor(t,e,r,n,s,i,o){this.g=t,this.j=e,this.m=r,this.canvas=n,this.l=s,this.width=i,this.height=o,(this.j||this.m)&&--yi===0&&console.error("You seem to be creating MPImage instances without invoking .close(). This leaks resources.")}Ia(){return!!Ft(this,0)}na(){return!!Ft(this,1)}S(){return!!Ft(this,2)}Ga(){return wa(this)}Fa(){var t=Ft(this,1);return t||(or(this),ar(this),t=mi(this),Ne(this),this.g.push(t),this.j=!0),t}N(){return or(this)}clone(){const t=[];for(const e of this.g){let r;if(e instanceof ImageData)r=new ImageData(e.data,this.width,this.height);else if(e instanceof WebGLTexture){const n=ve(this),s=Xr(this);n.activeTexture(n.TEXTURE1),r=zr(s,n),n.bindTexture(n.TEXTURE_2D,r),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,this.width,this.height,0,n.RGBA,n.UNSIGNED_BYTE,null),n.bindTexture(n.TEXTURE_2D,null),Kr(s,n,r),ps(s,n,!1,()=>{ar(this),n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT),n.drawArrays(n.TRIANGLE_FAN,0,4),Ne(this)}),gs(s),Ne(this)}else{if(!(e instanceof ImageBitmap))throw Error(`Type is not supported: ${e}`);or(this),ar(this),r=mi(this),Ne(this)}t.push(r)}return new z(t,this.na(),this.S(),this.canvas,this.l,this.width,this.height)}close(){this.j&&Ft(this,1).close(),this.m&&ve(this).deleteTexture(Ft(this,2)),yi=-1}};z.prototype.close=z.prototype.close,z.prototype.clone=z.prototype.clone,z.prototype.getAsWebGLTexture=z.prototype.N,z.prototype.getAsImageBitmap=z.prototype.Fa,z.prototype.getAsImageData=z.prototype.Ga,z.prototype.hasWebGLTexture=z.prototype.S,z.prototype.hasImageBitmap=z.prototype.na,z.prototype.hasImageData=z.prototype.Ia;var yi=250;function kt(...t){return t.map(([e,r])=>({start:e,end:r}))}const t1=function(t){return class extends t{Oa(){this.i._registerModelResourcesGraphService()}}}((_i=class{constructor(t,e){this.l=!0,this.i=t,this.g=null,this.h=0,this.m=typeof this.i._addIntToInputStream=="function",e!==void 0?this.i.canvas=e:ga()?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){const 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){const 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,s){this.i._configureAudio||console.warn('Attempting to use configureAudio without support for input audio. Is build dep ":gl_graph_runner_audio" missing?'),p(this,n||"input_audio",i=>{p(this,s=s||"audio_header",o=>{this.i._configureAudio(i,o,t,e,r)})})}setAutoResizeCanvas(t){this.l=t}setAutoRenderToScreen(t){this.i._setAutoRenderToScreen(t)}setGpuBufferVerticalFlip(t){this.i.gpuOriginForWebTexturesIsBottomLeft=t}ga(t){Tt(this,"__graph_config__",e=>{t(e)}),p(this,"__graph_config__",e=>{this.i._getGraphConfig(e,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,s){const i=4*t.length;this.h!==i&&(this.g&&this.i._free(this.g),this.g=this.i._malloc(i),this.h=i),this.i.HEAPF32.set(t,this.g/4),p(this,n,o=>{this.i._addAudioToInputStream(this.g,e,r,o,s)})}addGpuBufferToStream(t,e,r){p(this,e,n=>{const[s,i]=ui(this,t,n);this.i._addBoundTextureToStream(n,s,i,r)})}addBoolToStream(t,e,r){p(this,e,n=>{this.i._addBoolToInputStream(t,n,r)})}addDoubleToStream(t,e,r){p(this,e,n=>{this.i._addDoubleToInputStream(t,n,r)})}addFloatToStream(t,e,r){p(this,e,n=>{this.i._addFloatToInputStream(t,n,r)})}addIntToStream(t,e,r){p(this,e,n=>{this.i._addIntToInputStream(t,n,r)})}addUintToStream(t,e,r){p(this,e,n=>{this.i._addUintToInputStream(t,n,r)})}addStringToStream(t,e,r){p(this,e,n=>{p(this,t,s=>{this.i._addStringToInputStream(s,n,r)})})}addStringRecordToStream(t,e,r){p(this,e,n=>{li(this,Object.keys(t),s=>{li(this,Object.values(t),i=>{this.i._addFlatHashMapToInputStream(s,i,Object.keys(t).length,n,r)})})})}addProtoToStream(t,e,r,n){p(this,r,s=>{p(this,e,i=>{const o=this.i._malloc(t.length);this.i.HEAPU8.set(t,o),this.i._addProtoToInputStream(o,t.length,i,s,n),this.i._free(o)})})}addEmptyPacketToStream(t,e){p(this,t,r=>{this.i._addEmptyPacketToInputStream(r,e)})}addBoolVectorToStream(t,e,r){p(this,e,n=>{const s=this.i._allocateBoolVector(t.length);if(!s)throw Error("Unable to allocate new bool vector on heap.");for(const i of t)this.i._addBoolVectorEntry(s,i);this.i._addBoolVectorToInputStream(s,n,r)})}addDoubleVectorToStream(t,e,r){p(this,e,n=>{const s=this.i._allocateDoubleVector(t.length);if(!s)throw Error("Unable to allocate new double vector on heap.");for(const i of t)this.i._addDoubleVectorEntry(s,i);this.i._addDoubleVectorToInputStream(s,n,r)})}addFloatVectorToStream(t,e,r){p(this,e,n=>{const s=this.i._allocateFloatVector(t.length);if(!s)throw Error("Unable to allocate new float vector on heap.");for(const i of t)this.i._addFloatVectorEntry(s,i);this.i._addFloatVectorToInputStream(s,n,r)})}addIntVectorToStream(t,e,r){p(this,e,n=>{const s=this.i._allocateIntVector(t.length);if(!s)throw Error("Unable to allocate new int vector on heap.");for(const i of t)this.i._addIntVectorEntry(s,i);this.i._addIntVectorToInputStream(s,n,r)})}addUintVectorToStream(t,e,r){p(this,e,n=>{const s=this.i._allocateUintVector(t.length);if(!s)throw Error("Unable to allocate new unsigned int vector on heap.");for(const i of t)this.i._addUintVectorEntry(s,i);this.i._addUintVectorToInputStream(s,n,r)})}addStringVectorToStream(t,e,r){p(this,e,n=>{const s=this.i._allocateStringVector(t.length);if(!s)throw Error("Unable to allocate new string vector on heap.");for(const i of t)p(this,i,o=>{this.i._addStringVectorEntry(s,o)});this.i._addStringVectorToInputStream(s,n,r)})}addBoolToInputSidePacket(t,e){p(this,e,r=>{this.i._addBoolToInputSidePacket(t,r)})}addDoubleToInputSidePacket(t,e){p(this,e,r=>{this.i._addDoubleToInputSidePacket(t,r)})}addFloatToInputSidePacket(t,e){p(this,e,r=>{this.i._addFloatToInputSidePacket(t,r)})}addIntToInputSidePacket(t,e){p(this,e,r=>{this.i._addIntToInputSidePacket(t,r)})}addUintToInputSidePacket(t,e){p(this,e,r=>{this.i._addUintToInputSidePacket(t,r)})}addStringToInputSidePacket(t,e){p(this,e,r=>{p(this,t,n=>{this.i._addStringToInputSidePacket(n,r)})})}addProtoToInputSidePacket(t,e,r){p(this,r,n=>{p(this,e,s=>{const i=this.i._malloc(t.length);this.i.HEAPU8.set(t,i),this.i._addProtoToInputSidePacket(i,t.length,s,n),this.i._free(i)})})}addBoolVectorToInputSidePacket(t,e){p(this,e,r=>{const n=this.i._allocateBoolVector(t.length);if(!n)throw Error("Unable to allocate new bool vector on heap.");for(const s of t)this.i._addBoolVectorEntry(n,s);this.i._addBoolVectorToInputSidePacket(n,r)})}addDoubleVectorToInputSidePacket(t,e){p(this,e,r=>{const n=this.i._allocateDoubleVector(t.length);if(!n)throw Error("Unable to allocate new double vector on heap.");for(const s of t)this.i._addDoubleVectorEntry(n,s);this.i._addDoubleVectorToInputSidePacket(n,r)})}addFloatVectorToInputSidePacket(t,e){p(this,e,r=>{const n=this.i._allocateFloatVector(t.length);if(!n)throw Error("Unable to allocate new float vector on heap.");for(const s of t)this.i._addFloatVectorEntry(n,s);this.i._addFloatVectorToInputSidePacket(n,r)})}addIntVectorToInputSidePacket(t,e){p(this,e,r=>{const n=this.i._allocateIntVector(t.length);if(!n)throw Error("Unable to allocate new int vector on heap.");for(const s of t)this.i._addIntVectorEntry(n,s);this.i._addIntVectorToInputSidePacket(n,r)})}addUintVectorToInputSidePacket(t,e){p(this,e,r=>{const n=this.i._allocateUintVector(t.length);if(!n)throw Error("Unable to allocate new unsigned int vector on heap.");for(const s of t)this.i._addUintVectorEntry(n,s);this.i._addUintVectorToInputSidePacket(n,r)})}addStringVectorToInputSidePacket(t,e){p(this,e,r=>{const n=this.i._allocateStringVector(t.length);if(!n)throw Error("Unable to allocate new string vector on heap.");for(const s of t)p(this,s,i=>{this.i._addStringVectorEntry(n,i)});this.i._addStringVectorToInputSidePacket(n,r)})}attachBoolListener(t,e){Tt(this,t,e),p(this,t,r=>{this.i._attachBoolListener(r)})}attachBoolVectorListener(t,e){Gt(this,t,e),p(this,t,r=>{this.i._attachBoolVectorListener(r)})}attachIntListener(t,e){Tt(this,t,e),p(this,t,r=>{this.i._attachIntListener(r)})}attachIntVectorListener(t,e){Gt(this,t,e),p(this,t,r=>{this.i._attachIntVectorListener(r)})}attachUintListener(t,e){Tt(this,t,e),p(this,t,r=>{this.i._attachUintListener(r)})}attachUintVectorListener(t,e){Gt(this,t,e),p(this,t,r=>{this.i._attachUintVectorListener(r)})}attachDoubleListener(t,e){Tt(this,t,e),p(this,t,r=>{this.i._attachDoubleListener(r)})}attachDoubleVectorListener(t,e){Gt(this,t,e),p(this,t,r=>{this.i._attachDoubleVectorListener(r)})}attachFloatListener(t,e){Tt(this,t,e),p(this,t,r=>{this.i._attachFloatListener(r)})}attachFloatVectorListener(t,e){Gt(this,t,e),p(this,t,r=>{this.i._attachFloatVectorListener(r)})}attachStringListener(t,e){Tt(this,t,e),p(this,t,r=>{this.i._attachStringListener(r)})}attachStringVectorListener(t,e){Gt(this,t,e),p(this,t,r=>{this.i._attachStringVectorListener(r)})}attachProtoListener(t,e,r){Tt(this,t,e),p(this,t,n=>{this.i._attachProtoListener(n,r||!1)})}attachProtoVectorListener(t,e,r){Gt(this,t,e),p(this,t,n=>{this.i._attachProtoVectorListener(n,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?'),Tt(this,t,(n,s)=>{n=new Float32Array(n.buffer,n.byteOffset,n.length/4),e(n,s)}),p(this,t,n=>{this.i._attachAudioListener(n,r||!1)})}finishProcessing(){this.i._waitUntilIdle()}closeGraph(){this.i._closeGraph(),this.i.simpleListeners=void 0,this.i.emptyPacketListeners=void 0}},class extends _i{get ia(){return this.i}ta(t,e,r){p(this,e,n=>{const[s,i]=ui(this,t,n);this.ia._addBoundTextureAsImageToStream(n,s,i,r)})}W(t,e){Tt(this,t,e),p(this,t,r=>{this.ia._attachImageListener(r)})}fa(t,e){Gt(this,t,e),p(this,t,r=>{this.ia._attachImageVectorListener(r)})}}));var _i,_t=class extends t1{};async function y(t,e,r){return async function(n,s,i,o){return Z2(n,s,i,o)}(t,r.canvas??(ga()?void 0:document.createElement("canvas")),e,r)}function ba(t,e,r,n){if(t.V){const i=new Uo;if(r!=null&&r.regionOfInterest){if(!t.sa)throw Error("This task doesn't support region-of-interest.");var s=r.regionOfInterest;if(s.left>=s.right||s.top>=s.bottom)throw Error("Expected RectF with left < right and top < bottom.");if(s.left<0||s.top<0||s.right>1||s.bottom>1)throw Error("Expected RectF values to be in [0,1].");d(i,1,(s.left+s.right)/2),d(i,2,(s.top+s.bottom)/2),d(i,4,s.right-s.left),d(i,3,s.bottom-s.top)}else d(i,1,.5),d(i,2,.5),d(i,4,1),d(i,3,1);if(r!=null&&r.rotationDegrees){if((r==null?void 0:r.rotationDegrees)%90!=0)throw Error("Expected rotation to be a multiple of 90°.");if(d(i,5,-Math.PI*r.rotationDegrees/180),(r==null?void 0:r.rotationDegrees)%180!=0){const[o,h]=ma(e);r=B(i,3)*h/o,s=B(i,4)*o/h,d(i,4,r),d(i,3,s)}}t.g.addProtoToStream(i.g(),"mediapipe.NormalizedRect",t.V,n)}t.g.ta(e,t.da,n??performance.now()),t.finishProcessing()}function vt(t,e,r){var n;if((n=t.baseOptions)!=null&&n.g())throw Error("Task is not initialized with image mode. 'runningMode' must be set to 'IMAGE'.");ba(t,e,r,t.B+1)}function Ot(t,e,r,n){var s;if(!((s=t.baseOptions)!=null&&s.g()))throw Error("Task is not initialized with video mode. 'runningMode' must be set to 'VIDEO'.");ba(t,e,r,n)}function we(t,e,r,n){var s=e.data;const i=e.width,o=i*(e=e.height);if((s instanceof Uint8Array||s instanceof Float32Array)&&s.length!==o)throw Error("Unsupported channel count: "+s.length/o);return t=new W([s],r,!1,t.g.i.canvas,t.R,i,e),n?t.clone():t}var J=class extends ir{constructor(t,e,r,n){super(t),this.g=t,this.da=e,this.V=r,this.sa=n,this.R=new ms}l(t,e=!0){if("runningMode"in t&&je(this.baseOptions,2,!!t.runningMode&&t.runningMode!=="IMAGE"),t.canvas!==void 0&&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.R.close(),super.close()}};J.prototype.close=J.prototype.close;var lt=class extends J{constructor(t,e){super(new _t(t,e),"image_in","norm_rect_in",!1),this.j={detections:[]},m(t=this.h=new jr,0,1,e=new O),d(this.h,2,.5),d(this.h,3,.3)}get baseOptions(){return w(this.h,O,1)}set baseOptions(t){m(this.h,0,1,t)}o(t){return"minDetectionConfidence"in t&&d(this.h,2,t.minDetectionConfidence??.5),"minSuppressionThreshold"in t&&d(this.h,3,t.minSuppressionThreshold??.3),this.l(t)}D(t,e){return this.j={detections:[]},vt(this,t,e),this.j}F(t,e,r){return this.j={detections:[]},Ot(this,t,r,e),this.j}m(){var t=new tt;M(t,"image_in"),M(t,"norm_rect_in"),b(t,"detections");const e=new at;At(e,D2,this.h);const r=new $;ht(r,"mediapipe.tasks.vision.face_detector.FaceDetectorGraph"),L(r,"IMAGE:image_in"),L(r,"NORM_RECT:norm_rect_in"),_(r,"DETECTIONS:detections"),r.o(e),ct(t,r),this.g.attachProtoVectorListener("detections",(n,s)=>{for(const i of n)n=Co(i),this.j.detections.push(da(n));l(this,s)}),this.g.attachEmptyPacketListener("detections",n=>{l(this,n)}),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};lt.prototype.detectForVideo=lt.prototype.F,lt.prototype.detect=lt.prototype.D,lt.prototype.setOptions=lt.prototype.o,lt.createFromModelPath=async function(t,e){return y(lt,t,{baseOptions:{modelAssetPath:e}})},lt.createFromModelBuffer=function(t,e){return y(lt,t,{baseOptions:{modelAssetBuffer:e}})},lt.createFromOptions=function(t,e){return y(lt,t,e)};var _s=kt([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]),vs=kt([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]),ws=kt([276,283],[283,282],[282,295],[295,285],[300,293],[293,334],[334,296],[296,336]),Aa=kt([474,475],[475,476],[476,477],[477,474]),bs=kt([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]),As=kt([46,53],[53,52],[52,65],[65,55],[70,63],[63,105],[105,66],[66,107]),Ea=kt([469,470],[470,471],[471,472],[472,469]),Es=kt([10,338],[338,297],[297,332],[332,284],[284,251],[251,389],[389,356],[356,454],[454,323],[323,361],[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]),ka=[..._s,...vs,...ws,...bs,...As,...Es],Ta=kt([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,231],[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 vi(t){t.j={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]}}var R=class extends J{constructor(t,e){super(new _t(t,e),"image_in","norm_rect",!1),this.j={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]},this.outputFacialTransformationMatrixes=this.outputFaceBlendshapes=!1,m(t=this.h=new Xo,0,1,e=new O),this.v=new Ko,m(this.h,0,3,this.v),this.s=new jr,m(this.h,0,2,this.s),Pt(this.s,4,1),d(this.s,2,.5),d(this.v,2,.5),d(this.h,4,.5)}get baseOptions(){return w(this.h,O,1)}set baseOptions(t){m(this.h,0,1,t)}o(t){return"numFaces"in t&&Pt(this.s,4,t.numFaces??1),"minFaceDetectionConfidence"in t&&d(this.s,2,t.minFaceDetectionConfidence??.5),"minTrackingConfidence"in t&&d(this.h,4,t.minTrackingConfidence??.5),"minFacePresenceConfidence"in t&&d(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 vi(this),vt(this,t,e),this.j}F(t,e,r){return vi(this),Ot(this,t,r,e),this.j}m(){var t=new tt;M(t,"image_in"),M(t,"norm_rect"),b(t,"face_landmarks");const e=new at;At(e,U2,this.h);const r=new $;ht(r,"mediapipe.tasks.vision.face_landmarker.FaceLandmarkerGraph"),L(r,"IMAGE:image_in"),L(r,"NORM_RECT:norm_rect"),_(r,"NORM_LANDMARKS:face_landmarks"),r.o(e),ct(t,r),this.g.attachProtoVectorListener("face_landmarks",(n,s)=>{for(const i of n)n=Ye(i),this.j.faceLandmarks.push(Vr(n));l(this,s)}),this.g.attachEmptyPacketListener("face_landmarks",n=>{l(this,n)}),this.outputFaceBlendshapes&&(b(t,"blendshapes"),_(r,"BLENDSHAPES:blendshapes"),this.g.attachProtoVectorListener("blendshapes",(n,s)=>{if(this.outputFaceBlendshapes)for(const i of n)n=Gr(i),this.j.faceBlendshapes.push(fs(n.g()??[]));l(this,s)}),this.g.attachEmptyPacketListener("blendshapes",n=>{l(this,n)})),this.outputFacialTransformationMatrixes&&(b(t,"face_geometry"),_(r,"FACE_GEOMETRY:face_geometry"),this.g.attachProtoVectorListener("face_geometry",(n,s)=>{if(this.outputFacialTransformationMatrixes)for(const i of n)(n=w(B2(i),M2,2))&&this.j.facialTransformationMatrixes.push({rows:wt(gt(n,1),0)??0,columns:wt(gt(n,2),0)??0,data:Qt(n,3,$t,Zt()).slice()??[]});l(this,s)}),this.g.attachEmptyPacketListener("face_geometry",n=>{l(this,n)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};R.prototype.detectForVideo=R.prototype.F,R.prototype.detect=R.prototype.D,R.prototype.setOptions=R.prototype.o,R.createFromModelPath=function(t,e){return y(R,t,{baseOptions:{modelAssetPath:e}})},R.createFromModelBuffer=function(t,e){return y(R,t,{baseOptions:{modelAssetBuffer:e}})},R.createFromOptions=function(t,e){return y(R,t,e)},R.FACE_LANDMARKS_LIPS=_s,R.FACE_LANDMARKS_LEFT_EYE=vs,R.FACE_LANDMARKS_LEFT_EYEBROW=ws,R.FACE_LANDMARKS_LEFT_IRIS=Aa,R.FACE_LANDMARKS_RIGHT_EYE=bs,R.FACE_LANDMARKS_RIGHT_EYEBROW=As,R.FACE_LANDMARKS_RIGHT_IRIS=Ea,R.FACE_LANDMARKS_FACE_OVAL=Es,R.FACE_LANDMARKS_CONTOURS=ka,R.FACE_LANDMARKS_TESSELATION=Ta;var St=class extends J{constructor(t,e){super(new _t(t,e),"image_in","norm_rect",!0),m(t=this.j=new $o,0,1,e=new O)}get baseOptions(){return w(this.j,O,1)}set baseOptions(t){m(this.j,0,1,t)}o(t){return super.l(t)}Ra(t,e,r){const n=typeof e!="function"?e:{};if(this.h=typeof e=="function"?e:r,vt(this,t,n??{}),!this.h)return this.s}m(){var t=new tt;M(t,"image_in"),M(t,"norm_rect"),b(t,"stylized_image");const e=new at;At(e,G2,this.j);const r=new $;ht(r,"mediapipe.tasks.vision.face_stylizer.FaceStylizerGraph"),L(r,"IMAGE:image_in"),L(r,"NORM_RECT:norm_rect"),_(r,"STYLIZED_IMAGE:stylized_image"),r.o(e),ct(t,r),this.g.W("stylized_image",(n,s)=>{var i=!this.h,o=n.data,h=n.width;const a=h*(n=n.height);if(o instanceof Uint8Array)if(o.length===3*a){const c=new Uint8ClampedArray(4*a);for(let u=0;u<a;++u)c[4*u]=o[3*u],c[4*u+1]=o[3*u+1],c[4*u+2]=o[3*u+2],c[4*u+3]=255;o=new ImageData(c,h,n)}else{if(o.length!==4*a)throw Error("Unsupported channel count: "+o.length/a);o=new ImageData(new Uint8ClampedArray(o.buffer,o.byteOffset,o.length),h,n)}else if(!(o instanceof WebGLTexture))throw Error(`Unsupported format: ${o.constructor.name}`);h=new z([o],!1,!1,this.g.i.canvas,this.R,h,n),this.s=i=i?h.clone():h,this.h&&this.h(i),l(this,s)}),this.g.attachEmptyPacketListener("stylized_image",n=>{this.s=null,this.h&&this.h(null),l(this,n)}),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};St.prototype.stylize=St.prototype.Ra,St.prototype.setOptions=St.prototype.o,St.createFromModelPath=function(t,e){return y(St,t,{baseOptions:{modelAssetPath:e}})},St.createFromModelBuffer=function(t,e){return y(St,t,{baseOptions:{modelAssetBuffer:e}})},St.createFromOptions=function(t,e){return y(St,t,e)};var ks=kt([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 wi(t){t.gestures=[],t.landmarks=[],t.worldLandmarks=[],t.handedness=[]}function bi(t){return t.gestures.length===0?{gestures:[],landmarks:[],worldLandmarks:[],handedness:[],handednesses:[]}:{gestures:t.gestures,landmarks:t.landmarks,worldLandmarks:t.worldLandmarks,handedness:t.handedness,handednesses:t.handedness}}function Ai(t,e=!0){const r=[];for(const s of t){var n=Gr(s);t=[];for(const i of n.g())n=e&>(i,1)!=null?wt(gt(i,1),0):-1,t.push({score:B(i,2)??0,index:n,categoryName:Mt(i,3)??"",displayName:Mt(i,4)??""});r.push(t)}return r}var et=class extends J{constructor(t,e){super(new _t(t,e),"image_in","norm_rect",!1),this.gestures=[],this.landmarks=[],this.worldLandmarks=[],this.handedness=[],m(t=this.j=new Qo,0,1,e=new O),this.s=new cs,m(this.j,0,2,this.s),this.C=new hs,m(this.s,0,3,this.C),this.v=new Zo,m(this.s,0,2,this.v),this.h=new j2,m(this.j,0,3,this.h),d(this.v,2,.5),d(this.s,4,.5),d(this.C,2,.5)}get baseOptions(){return w(this.j,O,1)}set baseOptions(t){m(this.j,0,1,t)}o(t){var s,i,o,h;if(Pt(this.v,3,t.numHands??1),"minHandDetectionConfidence"in t&&d(this.v,2,t.minHandDetectionConfidence??.5),"minTrackingConfidence"in t&&d(this.s,4,t.minTrackingConfidence??.5),"minHandPresenceConfidence"in t&&d(this.C,2,t.minHandPresenceConfidence??.5),t.cannedGesturesClassifierOptions){var e=new ae,r=e,n=En(t.cannedGesturesClassifierOptions,(s=w(this.h,ae,3))==null?void 0:s.h());m(r,0,2,n),m(this.h,0,3,e)}else t.cannedGesturesClassifierOptions===void 0&&((i=w(this.h,ae,3))==null||i.g());return t.customGesturesClassifierOptions?(m(r=e=new ae,0,2,n=En(t.customGesturesClassifierOptions,(o=w(this.h,ae,4))==null?void 0:o.h())),m(this.h,0,4,e)):t.customGesturesClassifierOptions===void 0&&((h=w(this.h,ae,4))==null||h.g()),this.l(t)}Ma(t,e){return wi(this),vt(this,t,e),bi(this)}Na(t,e,r){return wi(this),Ot(this,t,r,e),bi(this)}m(){var t=new tt;M(t,"image_in"),M(t,"norm_rect"),b(t,"hand_gestures"),b(t,"hand_landmarks"),b(t,"world_hand_landmarks"),b(t,"handedness");const e=new at;At(e,W2,this.j);const r=new $;ht(r,"mediapipe.tasks.vision.gesture_recognizer.GestureRecognizerGraph"),L(r,"IMAGE:image_in"),L(r,"NORM_RECT:norm_rect"),_(r,"HAND_GESTURES:hand_gestures"),_(r,"LANDMARKS:hand_landmarks"),_(r,"WORLD_LANDMARKS:world_hand_landmarks"),_(r,"HANDEDNESS:handedness"),r.o(e),ct(t,r),this.g.attachProtoVectorListener("hand_landmarks",(n,s)=>{for(const i of n){n=Ye(i);const o=[];for(const h of Bt(n,Bo,1))o.push({x:B(h,1)??0,y:B(h,2)??0,z:B(h,3)??0,visibility:B(h,4)??0});this.landmarks.push(o)}l(this,s)}),this.g.attachEmptyPacketListener("hand_landmarks",n=>{l(this,n)}),this.g.attachProtoVectorListener("world_hand_landmarks",(n,s)=>{for(const i of n){n=fe(i);const o=[];for(const h of Bt(n,Do,1))o.push({x:B(h,1)??0,y:B(h,2)??0,z:B(h,3)??0,visibility:B(h,4)??0});this.worldLandmarks.push(o)}l(this,s)}),this.g.attachEmptyPacketListener("world_hand_landmarks",n=>{l(this,n)}),this.g.attachProtoVectorListener("hand_gestures",(n,s)=>{this.gestures.push(...Ai(n,!1)),l(this,s)}),this.g.attachEmptyPacketListener("hand_gestures",n=>{l(this,n)}),this.g.attachProtoVectorListener("handedness",(n,s)=>{this.handedness.push(...Ai(n)),l(this,s)}),this.g.attachEmptyPacketListener("handedness",n=>{l(this,n)}),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};function Ei(t){return{landmarks:t.landmarks,worldLandmarks:t.worldLandmarks,handednesses:t.handedness,handedness:t.handedness}}et.prototype.recognizeForVideo=et.prototype.Na,et.prototype.recognize=et.prototype.Ma,et.prototype.setOptions=et.prototype.o,et.createFromModelPath=function(t,e){return y(et,t,{baseOptions:{modelAssetPath:e}})},et.createFromModelBuffer=function(t,e){return y(et,t,{baseOptions:{modelAssetBuffer:e}})},et.createFromOptions=function(t,e){return y(et,t,e)},et.HAND_CONNECTIONS=ks;var rt=class extends J{constructor(t,e){super(new _t(t,e),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.handedness=[],m(t=this.h=new cs,0,1,e=new O),this.s=new hs,m(this.h,0,3,this.s),this.j=new Zo,m(this.h,0,2,this.j),Pt(this.j,3,1),d(this.j,2,.5),d(this.s,2,.5),d(this.h,4,.5)}get baseOptions(){return w(this.h,O,1)}set baseOptions(t){m(this.h,0,1,t)}o(t){return"numHands"in t&&Pt(this.j,3,t.numHands??1),"minHandDetectionConfidence"in t&&d(this.j,2,t.minHandDetectionConfidence??.5),"minTrackingConfidence"in t&&d(this.h,4,t.minTrackingConfidence??.5),"minHandPresenceConfidence"in t&&d(this.s,2,t.minHandPresenceConfidence??.5),this.l(t)}D(t,e){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],vt(this,t,e),Ei(this)}F(t,e,r){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],Ot(this,t,r,e),Ei(this)}m(){var t=new tt;M(t,"image_in"),M(t,"norm_rect"),b(t,"hand_landmarks"),b(t,"world_hand_landmarks"),b(t,"handedness");const e=new at;At(e,H2,this.h);const r=new $;ht(r,"mediapipe.tasks.vision.hand_landmarker.HandLandmarkerGraph"),L(r,"IMAGE:image_in"),L(r,"NORM_RECT:norm_rect"),_(r,"LANDMARKS:hand_landmarks"),_(r,"WORLD_LANDMARKS:world_hand_landmarks"),_(r,"HANDEDNESS:handedness"),r.o(e),ct(t,r),this.g.attachProtoVectorListener("hand_landmarks",(n,s)=>{for(const i of n)n=Ye(i),this.landmarks.push(Vr(n));l(this,s)}),this.g.attachEmptyPacketListener("hand_landmarks",n=>{l(this,n)}),this.g.attachProtoVectorListener("world_hand_landmarks",(n,s)=>{for(const i of n)n=fe(i),this.worldLandmarks.push(Be(n));l(this,s)}),this.g.attachEmptyPacketListener("world_hand_landmarks",n=>{l(this,n)}),this.g.attachProtoVectorListener("handedness",(n,s)=>{var i=this.handedness,o=i.push;const h=[];for(const a of n){n=Gr(a);const c=[];for(const u of n.g())c.push({score:B(u,2)??0,index:wt(gt(u,1),0)??-1,categoryName:Mt(u,3)??"",displayName:Mt(u,4)??""});h.push(c)}o.call(i,...h),l(this,s)}),this.g.attachEmptyPacketListener("handedness",n=>{l(this,n)}),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};rt.prototype.detectForVideo=rt.prototype.F,rt.prototype.detect=rt.prototype.D,rt.prototype.setOptions=rt.prototype.o,rt.createFromModelPath=function(t,e){return y(rt,t,{baseOptions:{modelAssetPath:e}})},rt.createFromModelBuffer=function(t,e){return y(rt,t,{baseOptions:{modelAssetBuffer:e}})},rt.createFromOptions=function(t,e){return y(rt,t,e)},rt.HAND_CONNECTIONS=ks;var Sa=kt([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],[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 ki(t){t.h={faceLandmarks:[],faceBlendshapes:[],poseLandmarks:[],poseWorldLandmarks:[],poseSegmentationMasks:[],leftHandLandmarks:[],leftHandWorldLandmarks:[],rightHandLandmarks:[],rightHandWorldLandmarks:[]}}function Ti(t){try{if(!t.C)return t.h;t.C(t.h)}finally{Wr(t)}}function tr(t,e){t=Ye(t),e.push(Vr(t))}var P=class extends J{constructor(t,e){super(new _t(t,e),"input_frames_image",null,!1),this.h={faceLandmarks:[],faceBlendshapes:[],poseLandmarks:[],poseWorldLandmarks:[],poseSegmentationMasks:[],leftHandLandmarks:[],leftHandWorldLandmarks:[],rightHandLandmarks:[],rightHandWorldLandmarks:[]},this.outputPoseSegmentationMasks=this.outputFaceBlendshapes=!1,m(t=this.j=new ia,0,1,e=new O),this.K=new hs,m(this.j,0,2,this.K),this.ca=new z2,m(this.j,0,3,this.ca),this.s=new jr,m(this.j,0,4,this.s),this.I=new Ko,m(this.j,0,5,this.I),this.v=new na,m(this.j,0,6,this.v),this.L=new sa,m(this.j,0,7,this.L),d(this.s,2,.5),d(this.s,3,.3),d(this.I,2,.5),d(this.v,2,.5),d(this.v,3,.3),d(this.L,2,.5),d(this.K,2,.5)}get baseOptions(){return w(this.j,O,1)}set baseOptions(t){m(this.j,0,1,t)}o(t){return"minFaceDetectionConfidence"in t&&d(this.s,2,t.minFaceDetectionConfidence??.5),"minFaceSuppressionThreshold"in t&&d(this.s,3,t.minFaceSuppressionThreshold??.3),"minFacePresenceConfidence"in t&&d(this.I,2,t.minFacePresenceConfidence??.5),"outputFaceBlendshapes"in t&&(this.outputFaceBlendshapes=!!t.outputFaceBlendshapes),"minPoseDetectionConfidence"in t&&d(this.v,2,t.minPoseDetectionConfidence??.5),"minPoseSuppressionThreshold"in t&&d(this.v,3,t.minPoseSuppressionThreshold??.3),"minPosePresenceConfidence"in t&&d(this.L,2,t.minPosePresenceConfidence??.5),"outputPoseSegmentationMasks"in t&&(this.outputPoseSegmentationMasks=!!t.outputPoseSegmentationMasks),"minHandLandmarksConfidence"in t&&d(this.K,2,t.minHandLandmarksConfidence??.5),this.l(t)}D(t,e,r){const n=typeof e!="function"?e:{};return this.C=typeof e=="function"?e:r,ki(this),vt(this,t,n),Ti(this)}F(t,e,r,n){const s=typeof r!="function"?r:{};return this.C=typeof r=="function"?r:n,ki(this),Ot(this,t,s,e),Ti(this)}m(){var t=new tt;M(t,"input_frames_image"),b(t,"pose_landmarks"),b(t,"pose_world_landmarks"),b(t,"face_landmarks"),b(t,"left_hand_landmarks"),b(t,"left_hand_world_landmarks"),b(t,"right_hand_landmarks"),b(t,"right_hand_world_landmarks");const e=new at,r=new Js;pn(r,1,ke("type.googleapis.com/mediapipe.tasks.vision.holistic_landmarker.proto.HolisticLandmarkerGraphOptions"),""),function(s,i){if(i!=null)if(Array.isArray(i))S(s,2,Mr(i,Wn,void 0,void 0,!1));else{if(!(typeof i=="string"||i instanceof Ct||He(i)))throw Error("invalid value in Any.value field: "+i+" expected a ByteString, a base64 encoded string, a Uint8Array or a jspb array");pn(s,2,Nn(i,!1,!1),se())}}(r,this.j.g());const n=new $;ht(n,"mediapipe.tasks.vision.holistic_landmarker.HolisticLandmarkerGraph"),mr(n,8,Js,r),L(n,"IMAGE:input_frames_image"),_(n,"POSE_LANDMARKS:pose_landmarks"),_(n,"POSE_WORLD_LANDMARKS:pose_world_landmarks"),_(n,"FACE_LANDMARKS:face_landmarks"),_(n,"LEFT_HAND_LANDMARKS:left_hand_landmarks"),_(n,"LEFT_HAND_WORLD_LANDMARKS:left_hand_world_landmarks"),_(n,"RIGHT_HAND_LANDMARKS:right_hand_landmarks"),_(n,"RIGHT_HAND_WORLD_LANDMARKS:right_hand_world_landmarks"),n.o(e),ct(t,n),Hr(this,t),this.g.attachProtoListener("pose_landmarks",(s,i)=>{tr(s,this.h.poseLandmarks),l(this,i)}),this.g.attachEmptyPacketListener("pose_landmarks",s=>{l(this,s)}),this.g.attachProtoListener("pose_world_landmarks",(s,i)=>{var o=this.h.poseWorldLandmarks;s=fe(s),o.push(Be(s)),l(this,i)}),this.g.attachEmptyPacketListener("pose_world_landmarks",s=>{l(this,s)}),this.outputPoseSegmentationMasks&&(_(n,"POSE_SEGMENTATION_MASK:pose_segmentation_mask"),ye(this,"pose_segmentation_mask"),this.g.W("pose_segmentation_mask",(s,i)=>{this.h.poseSegmentationMasks=[we(this,s,!0,!this.C)],l(this,i)}),this.g.attachEmptyPacketListener("pose_segmentation_mask",s=>{this.h.poseSegmentationMasks=[],l(this,s)})),this.g.attachProtoListener("face_landmarks",(s,i)=>{tr(s,this.h.faceLandmarks),l(this,i)}),this.g.attachEmptyPacketListener("face_landmarks",s=>{l(this,s)}),this.outputFaceBlendshapes&&(b(t,"extra_blendshapes"),_(n,"FACE_BLENDSHAPES:extra_blendshapes"),this.g.attachProtoListener("extra_blendshapes",(s,i)=>{var o=this.h.faceBlendshapes;this.outputFaceBlendshapes&&(s=Gr(s),o.push(fs(s.g()??[]))),l(this,i)}),this.g.attachEmptyPacketListener("extra_blendshapes",s=>{l(this,s)})),this.g.attachProtoListener("left_hand_landmarks",(s,i)=>{tr(s,this.h.leftHandLandmarks),l(this,i)}),this.g.attachEmptyPacketListener("left_hand_landmarks",s=>{l(this,s)}),this.g.attachProtoListener("left_hand_world_landmarks",(s,i)=>{var o=this.h.leftHandWorldLandmarks;s=fe(s),o.push(Be(s)),l(this,i)}),this.g.attachEmptyPacketListener("left_hand_world_landmarks",s=>{l(this,s)}),this.g.attachProtoListener("right_hand_landmarks",(s,i)=>{tr(s,this.h.rightHandLandmarks),l(this,i)}),this.g.attachEmptyPacketListener("right_hand_landmarks",s=>{l(this,s)}),this.g.attachProtoListener("right_hand_world_landmarks",(s,i)=>{var o=this.h.rightHandWorldLandmarks;s=fe(s),o.push(Be(s)),l(this,i)}),this.g.attachEmptyPacketListener("right_hand_world_landmarks",s=>{l(this,s)}),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};P.prototype.detectForVideo=P.prototype.F,P.prototype.detect=P.prototype.D,P.prototype.setOptions=P.prototype.o,P.createFromModelPath=function(t,e){return y(P,t,{baseOptions:{modelAssetPath:e}})},P.createFromModelBuffer=function(t,e){return y(P,t,{baseOptions:{modelAssetBuffer:e}})},P.createFromOptions=function(t,e){return y(P,t,e)},P.HAND_CONNECTIONS=ks,P.POSE_CONNECTIONS=Sa,P.FACE_LANDMARKS_LIPS=_s,P.FACE_LANDMARKS_LEFT_EYE=vs,P.FACE_LANDMARKS_LEFT_EYEBROW=ws,P.FACE_LANDMARKS_LEFT_IRIS=Aa,P.FACE_LANDMARKS_RIGHT_EYE=bs,P.FACE_LANDMARKS_RIGHT_EYEBROW=As,P.FACE_LANDMARKS_RIGHT_IRIS=Ea,P.FACE_LANDMARKS_FACE_OVAL=Es,P.FACE_LANDMARKS_CONTOURS=ka,P.FACE_LANDMARKS_TESSELATION=Ta;var ft=class extends J{constructor(t,e){super(new _t(t,e),"input_image","norm_rect",!0),this.j={classifications:[]},m(t=this.h=new oa,0,1,e=new O)}get baseOptions(){return w(this.h,O,1)}set baseOptions(t){m(this.h,0,1,t)}o(t){return m(this.h,0,2,En(t,w(this.h,is,2))),this.l(t)}wa(t,e){return this.j={classifications:[]},vt(this,t,e),this.j}xa(t,e,r){return this.j={classifications:[]},Ot(this,t,r,e),this.j}m(){var t=new tt;M(t,"input_image"),M(t,"norm_rect"),b(t,"classifications");const e=new at;At(e,K2,this.h);const r=new $;ht(r,"mediapipe.tasks.vision.image_classifier.ImageClassifierGraph"),L(r,"IMAGE:input_image"),L(r,"NORM_RECT:norm_rect"),_(r,"CLASSIFICATIONS:classifications"),r.o(e),ct(t,r),this.g.attachProtoListener("classifications",(n,s)=>{this.j=function(i){const o={classifications:Bt(i,x2,1).map(h=>{var a;return fs(((a=w(h,No,4))==null?void 0:a.g())??[],wt(gt(h,2),0),Mt(h,3))})};return dr(zt(i,2))!=null&&(o.timestampMs=wt(dr(zt(i,2)),0)),o}(O2(n)),l(this,s)}),this.g.attachEmptyPacketListener("classifications",n=>{l(this,n)}),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};ft.prototype.classifyForVideo=ft.prototype.xa,ft.prototype.classify=ft.prototype.wa,ft.prototype.setOptions=ft.prototype.o,ft.createFromModelPath=function(t,e){return y(ft,t,{baseOptions:{modelAssetPath:e}})},ft.createFromModelBuffer=function(t,e){return y(ft,t,{baseOptions:{modelAssetBuffer:e}})},ft.createFromOptions=function(t,e){return y(ft,t,e)};var nt=class extends J{constructor(t,e){super(new _t(t,e),"image_in","norm_rect",!0),this.h=new aa,this.embeddings={embeddings:[]},m(t=this.h,0,1,e=new O)}get baseOptions(){return w(this.h,O,1)}set baseOptions(t){m(this.h,0,1,t)}o(t){var e=this.h,r=w(this.h,si,2);return r=r?r.clone():new si,t.l2Normalize!==void 0?je(r,1,t.l2Normalize):"l2Normalize"in t&&S(r,1),t.quantize!==void 0?je(r,2,t.quantize):"quantize"in t&&S(r,2),m(e,0,2,r),this.l(t)}Da(t,e){return vt(this,t,e),this.embeddings}Ea(t,e,r){return Ot(this,t,r,e),this.embeddings}m(){var t=new tt;M(t,"image_in"),M(t,"norm_rect"),b(t,"embeddings_out");const e=new at;At(e,X2,this.h);const r=new $;ht(r,"mediapipe.tasks.vision.image_embedder.ImageEmbedderGraph"),L(r,"IMAGE:image_in"),L(r,"NORM_RECT:norm_rect"),_(r,"EMBEDDINGS:embeddings_out"),r.o(e),ct(t,r),this.g.attachProtoListener("embeddings_out",(n,s)=>{n=R2(n),this.embeddings=function(i){return{embeddings:Bt(i,N2,1).map(o=>{var a,c;const h={headIndex:wt(gt(o,3),0)??-1,headName:Mt(o,4)??""};if(ao(o,ni,rn(o,1))!==void 0)o=Qt(o=w(o,ni,rn(o,1)),1,$t,Zt()),h.floatEmbedding=o.slice();else{const u=new Uint8Array(0);h.quantizedEmbedding=((c=(a=w(o,I2,rn(o,2)))==null?void 0:a.ra())==null?void 0:c.ua())??u}return h}),timestampMs:wt(dr(zt(i,2)),0)}}(n),l(this,s)}),this.g.attachEmptyPacketListener("embeddings_out",n=>{l(this,n)}),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};nt.cosineSimilarity=function(t,e){if(t.floatEmbedding&&e.floatEmbedding)t=hi(t.floatEmbedding,e.floatEmbedding);else{if(!t.quantizedEmbedding||!e.quantizedEmbedding)throw Error("Cannot compute cosine similarity between quantized and float embeddings.");t=hi(ai(t.quantizedEmbedding),ai(e.quantizedEmbedding))}return t},nt.prototype.embedForVideo=nt.prototype.Ea,nt.prototype.embed=nt.prototype.Da,nt.prototype.setOptions=nt.prototype.o,nt.createFromModelPath=function(t,e){return y(nt,t,{baseOptions:{modelAssetPath:e}})},nt.createFromModelBuffer=function(t,e){return y(nt,t,{baseOptions:{modelAssetBuffer:e}})},nt.createFromOptions=function(t,e){return y(nt,t,e)};var Sn=class{constructor(t,e,r){this.confidenceMasks=t,this.categoryMask=e,this.qualityScores=r}close(){var t,e;(t=this.confidenceMasks)==null||t.forEach(r=>{r.close()}),(e=this.categoryMask)==null||e.close()}};function Si(t){t.categoryMask=void 0,t.confidenceMasks=void 0,t.qualityScores=void 0}function Li(t){try{const e=new Sn(t.confidenceMasks,t.categoryMask,t.qualityScores);if(!t.j)return e;t.j(e)}finally{Wr(t)}}Sn.prototype.close=Sn.prototype.close;var q=class extends J{constructor(t,e){super(new _t(t,e),"image_in","norm_rect",!1),this.s=[],this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new ls,this.v=new ha,m(this.h,0,3,this.v),m(t=this.h,0,1,e=new O)}get baseOptions(){return w(this.h,O,1)}set baseOptions(t){m(this.h,0,1,t)}o(t){return t.displayNamesLocale!==void 0?S(this.h,2,ke(t.displayNamesLocale)):"displayNamesLocale"in t&&S(this.h,2),"outputCategoryMask"in t&&(this.outputCategoryMask=t.outputCategoryMask??!1),"outputConfidenceMasks"in t&&(this.outputConfidenceMasks=t.outputConfidenceMasks??!0),super.l(t)}J(){(function(t){var r,n;const e=Bt(t.ga(),$,1).filter(s=>Mt(s,1).includes("mediapipe.tasks.TensorsToSegmentationCalculator"));if(t.s=[],e.length>1)throw Error("The graph has more than one mediapipe.tasks.TensorsToSegmentationCalculator.");e.length===1&&(((n=(r=w(e[0],at,7))==null?void 0:r.l())==null?void 0:n.g())??new Map).forEach((s,i)=>{t.s[Number(i)]=Mt(s,1)})})(this)}ha(t,e,r){const n=typeof e!="function"?e:{};return this.j=typeof e=="function"?e:r,Si(this),vt(this,t,n),Li(this)}Pa(t,e,r,n){const s=typeof r!="function"?r:{};return this.j=typeof r=="function"?r:n,Si(this),Ot(this,t,s,e),Li(this)}Ha(){return this.s}m(){var t=new tt;M(t,"image_in"),M(t,"norm_rect");const e=new at;At(e,ua,this.h);const r=new $;ht(r,"mediapipe.tasks.vision.image_segmenter.ImageSegmenterGraph"),L(r,"IMAGE:image_in"),L(r,"NORM_RECT:norm_rect"),r.o(e),ct(t,r),Hr(this,t),this.outputConfidenceMasks&&(b(t,"confidence_masks"),_(r,"CONFIDENCE_MASKS:confidence_masks"),ye(this,"confidence_masks"),this.g.fa("confidence_masks",(n,s)=>{this.confidenceMasks=n.map(i=>we(this,i,!0,!this.j)),l(this,s)}),this.g.attachEmptyPacketListener("confidence_masks",n=>{this.confidenceMasks=[],l(this,n)})),this.outputCategoryMask&&(b(t,"category_mask"),_(r,"CATEGORY_MASK:category_mask"),ye(this,"category_mask"),this.g.W("category_mask",(n,s)=>{this.categoryMask=we(this,n,!1,!this.j),l(this,s)}),this.g.attachEmptyPacketListener("category_mask",n=>{this.categoryMask=void 0,l(this,n)})),b(t,"quality_scores"),_(r,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",(n,s)=>{this.qualityScores=n,l(this,s)}),this.g.attachEmptyPacketListener("quality_scores",n=>{this.categoryMask=void 0,l(this,n)}),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};q.prototype.getLabels=q.prototype.Ha,q.prototype.segmentForVideo=q.prototype.Pa,q.prototype.segment=q.prototype.ha,q.prototype.setOptions=q.prototype.o,q.createFromModelPath=function(t,e){return y(q,t,{baseOptions:{modelAssetPath:e}})},q.createFromModelBuffer=function(t,e){return y(q,t,{baseOptions:{modelAssetBuffer:e}})},q.createFromOptions=function(t,e){return y(q,t,e)};var Ln=class{constructor(t,e,r){this.confidenceMasks=t,this.categoryMask=e,this.qualityScores=r}close(){var t,e;(t=this.confidenceMasks)==null||t.forEach(r=>{r.close()}),(e=this.categoryMask)==null||e.close()}};Ln.prototype.close=Ln.prototype.close;var e1=class extends f{constructor(t){super(t)}},ce=[0,D,-2],wr=[0,It,-3,I,It,-1],Fi=[0,wr],Mi=[0,wr,D,-1],hn=class extends f{constructor(t){super(t)}},Pi=[0,It,-1,I],r1=class extends f{constructor(){super()}},xi=class extends f{constructor(t){super(t)}},Fn=[1,2,3,4,5,6,7,8,9,10,14,15],La=class extends f{constructor(){super()}};La.prototype.g=Ur([0,j,[0,Fn,k,wr,k,[0,wr,ce],k,Fi,k,[0,Fi,ce],k,Pi,k,[0,It,-3,I,bt],k,[0,It,-3,I],k,[0,E,It,-2,I,D,I,-1,2,It,ce],k,Mi,k,[0,Mi,ce],It,ce,E,k,[0,It,-3,I,ce,-1],k,[0,j,Pi]],E,[0,E,D,-1,I]]);var Lt=class extends J{constructor(t,e){super(new _t(t,e),"image_in","norm_rect_in",!1),this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new ls,this.s=new ha,m(this.h,0,3,this.s),m(t=this.h,0,1,e=new O)}get baseOptions(){return w(this.h,O,1)}set baseOptions(t){m(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)}ha(t,e,r,n){const s=typeof r!="function"?r:{};this.j=typeof r=="function"?r:n,this.qualityScores=this.categoryMask=this.confidenceMasks=void 0,r=this.B+1,n=new La;const i=new xi;var o=new e1;if(Pt(o,1,255),m(i,0,12,o),e.keypoint&&e.scribble)throw Error("Cannot provide both keypoint and scribble.");if(e.keypoint){var h=new hn;je(h,3,!0),d(h,1,e.keypoint.x),d(h,2,e.keypoint.y),Re(i,5,Fn,h)}else{if(!e.scribble)throw Error("Must provide either a keypoint or a scribble.");for(h of(o=new r1,e.scribble))je(e=new hn,3,!0),d(e,1,h.x),d(e,2,h.y),mr(o,1,hn,e);Re(i,15,Fn,o)}mr(n,1,xi,i),this.g.addProtoToStream(n.g(),"drishti.RenderData","roi_in",r),vt(this,t,s);t:{try{const c=new Ln(this.confidenceMasks,this.categoryMask,this.qualityScores);if(!this.j){var a=c;break t}this.j(c)}finally{Wr(this)}a=void 0}return a}m(){var t=new tt;M(t,"image_in"),M(t,"roi_in"),M(t,"norm_rect_in");const e=new at;At(e,ua,this.h);const r=new $;ht(r,"mediapipe.tasks.vision.interactive_segmenter.InteractiveSegmenterGraph"),L(r,"IMAGE:image_in"),L(r,"ROI:roi_in"),L(r,"NORM_RECT:norm_rect_in"),r.o(e),ct(t,r),Hr(this,t),this.outputConfidenceMasks&&(b(t,"confidence_masks"),_(r,"CONFIDENCE_MASKS:confidence_masks"),ye(this,"confidence_masks"),this.g.fa("confidence_masks",(n,s)=>{this.confidenceMasks=n.map(i=>we(this,i,!0,!this.j)),l(this,s)}),this.g.attachEmptyPacketListener("confidence_masks",n=>{this.confidenceMasks=[],l(this,n)})),this.outputCategoryMask&&(b(t,"category_mask"),_(r,"CATEGORY_MASK:category_mask"),ye(this,"category_mask"),this.g.W("category_mask",(n,s)=>{this.categoryMask=we(this,n,!1,!this.j),l(this,s)}),this.g.attachEmptyPacketListener("category_mask",n=>{this.categoryMask=void 0,l(this,n)})),b(t,"quality_scores"),_(r,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",(n,s)=>{this.qualityScores=n,l(this,s)}),this.g.attachEmptyPacketListener("quality_scores",n=>{this.categoryMask=void 0,l(this,n)}),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};Lt.prototype.segment=Lt.prototype.ha,Lt.prototype.setOptions=Lt.prototype.o,Lt.createFromModelPath=function(t,e){return y(Lt,t,{baseOptions:{modelAssetPath:e}})},Lt.createFromModelBuffer=function(t,e){return y(Lt,t,{baseOptions:{modelAssetBuffer:e}})},Lt.createFromOptions=function(t,e){return y(Lt,t,e)};var dt=class extends J{constructor(t,e){super(new _t(t,e),"input_frame_gpu","norm_rect",!1),this.j={detections:[]},m(t=this.h=new la,0,1,e=new O)}get baseOptions(){return w(this.h,O,1)}set baseOptions(t){m(this.h,0,1,t)}o(t){return t.displayNamesLocale!==void 0?S(this.h,2,ke(t.displayNamesLocale)):"displayNamesLocale"in t&&S(this.h,2),t.maxResults!==void 0?Pt(this.h,3,t.maxResults):"maxResults"in t&&S(this.h,3),t.scoreThreshold!==void 0?d(this.h,4,t.scoreThreshold):"scoreThreshold"in t&&S(this.h,4),t.categoryAllowlist!==void 0?yr(this.h,5,t.categoryAllowlist):"categoryAllowlist"in t&&S(this.h,5),t.categoryDenylist!==void 0?yr(this.h,6,t.categoryDenylist):"categoryDenylist"in t&&S(this.h,6),this.l(t)}D(t,e){return this.j={detections:[]},vt(this,t,e),this.j}F(t,e,r){return this.j={detections:[]},Ot(this,t,r,e),this.j}m(){var t=new tt;M(t,"input_frame_gpu"),M(t,"norm_rect"),b(t,"detections");const e=new at;At(e,$2,this.h);const r=new $;ht(r,"mediapipe.tasks.vision.ObjectDetectorGraph"),L(r,"IMAGE:input_frame_gpu"),L(r,"NORM_RECT:norm_rect"),_(r,"DETECTIONS:detections"),r.o(e),ct(t,r),this.g.attachProtoVectorListener("detections",(n,s)=>{for(const i of n)n=Co(i),this.j.detections.push(da(n));l(this,s)}),this.g.attachEmptyPacketListener("detections",n=>{l(this,n)}),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};dt.prototype.detectForVideo=dt.prototype.F,dt.prototype.detect=dt.prototype.D,dt.prototype.setOptions=dt.prototype.o,dt.createFromModelPath=async function(t,e){return y(dt,t,{baseOptions:{modelAssetPath:e}})},dt.createFromModelBuffer=function(t,e){return y(dt,t,{baseOptions:{modelAssetBuffer:e}})},dt.createFromOptions=function(t,e){return y(dt,t,e)};var Mn=class{constructor(t,e,r){this.landmarks=t,this.worldLandmarks=e,this.segmentationMasks=r}close(){var t;(t=this.segmentationMasks)==null||t.forEach(e=>{e.close()})}};function Oi(t){t.landmarks=[],t.worldLandmarks=[],t.segmentationMasks=void 0}function Ii(t){try{const e=new Mn(t.landmarks,t.worldLandmarks,t.segmentationMasks);if(!t.s)return e;t.s(e)}finally{Wr(t)}}Mn.prototype.close=Mn.prototype.close;var st=class extends J{constructor(t,e){super(new _t(t,e),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.outputSegmentationMasks=!1,m(t=this.h=new fa,0,1,e=new O),this.v=new sa,m(this.h,0,3,this.v),this.j=new na,m(this.h,0,2,this.j),Pt(this.j,4,1),d(this.j,2,.5),d(this.v,2,.5),d(this.h,4,.5)}get baseOptions(){return w(this.h,O,1)}set baseOptions(t){m(this.h,0,1,t)}o(t){return"numPoses"in t&&Pt(this.j,4,t.numPoses??1),"minPoseDetectionConfidence"in t&&d(this.j,2,t.minPoseDetectionConfidence??.5),"minTrackingConfidence"in t&&d(this.h,4,t.minTrackingConfidence??.5),"minPosePresenceConfidence"in t&&d(this.v,2,t.minPosePresenceConfidence??.5),"outputSegmentationMasks"in t&&(this.outputSegmentationMasks=t.outputSegmentationMasks??!1),this.l(t)}D(t,e,r){const n=typeof e!="function"?e:{};return this.s=typeof e=="function"?e:r,Oi(this),vt(this,t,n),Ii(this)}F(t,e,r,n){const s=typeof r!="function"?r:{};return this.s=typeof r=="function"?r:n,Oi(this),Ot(this,t,s,e),Ii(this)}m(){var t=new tt;M(t,"image_in"),M(t,"norm_rect"),b(t,"normalized_landmarks"),b(t,"world_landmarks"),b(t,"segmentation_masks");const e=new at;At(e,q2,this.h);const r=new $;ht(r,"mediapipe.tasks.vision.pose_landmarker.PoseLandmarkerGraph"),L(r,"IMAGE:image_in"),L(r,"NORM_RECT:norm_rect"),_(r,"NORM_LANDMARKS:normalized_landmarks"),_(r,"WORLD_LANDMARKS:world_landmarks"),r.o(e),ct(t,r),Hr(this,t),this.g.attachProtoVectorListener("normalized_landmarks",(n,s)=>{this.landmarks=[];for(const i of n)n=Ye(i),this.landmarks.push(Vr(n));l(this,s)}),this.g.attachEmptyPacketListener("normalized_landmarks",n=>{this.landmarks=[],l(this,n)}),this.g.attachProtoVectorListener("world_landmarks",(n,s)=>{this.worldLandmarks=[];for(const i of n)n=fe(i),this.worldLandmarks.push(Be(n));l(this,s)}),this.g.attachEmptyPacketListener("world_landmarks",n=>{this.worldLandmarks=[],l(this,n)}),this.outputSegmentationMasks&&(_(r,"SEGMENTATION_MASK:segmentation_masks"),ye(this,"segmentation_masks"),this.g.fa("segmentation_masks",(n,s)=>{this.segmentationMasks=n.map(i=>we(this,i,!0,!this.s)),l(this,s)}),this.g.attachEmptyPacketListener("segmentation_masks",n=>{this.segmentationMasks=[],l(this,n)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};st.prototype.detectForVideo=st.prototype.F,st.prototype.detect=st.prototype.D,st.prototype.setOptions=st.prototype.o,st.createFromModelPath=function(t,e){return y(st,t,{baseOptions:{modelAssetPath:e}})},st.createFromModelBuffer=function(t,e){return y(st,t,{baseOptions:{modelAssetBuffer:e}})},st.createFromOptions=function(t,e){return y(st,t,e)},st.POSE_CONNECTIONS=Sa;export{lt as FaceDetector,R as FaceLandmarker,St as FaceStylizer,he as FilesetResolver,et as GestureRecognizer,rt as HandLandmarker,P as HolisticLandmarker,ft as ImageClassifier,nt as ImageEmbedder,q as ImageSegmenter,Sn as ImageSegmenterResult,Lt as InteractiveSegmenter,Ln as InteractiveSegmenterResult,z as MPImage,W as MPMask,dt as ObjectDetector,st as PoseLandmarker,J as VisionTaskRunner};
|
|
16
|
+
//# sourceMappingURL=chunk-Cg0OFbR3.js.map
|