1(self.webpackChunksite_web_reucruitement_platform=self.webpackChunksite_web_reucruitement_platform||[]).push([[811],{1527:As=>{function nt(Ct){return Promise.resolve().then(()=>{var re=new Error("Cannot find module '"+Ct+"'");throw re.code="MODULE_NOT_FOUND",re})}nt.keys=()=>[],nt.resolve=nt,nt.id=1527,As.exports=nt},811:(As,nt,Ct)=>{"use strict";Ct.r(nt),Ct.d(nt,{DrawingUtils:()=>se,FaceDetector:()=>ye,FaceLandmarker:()=>F,FilesetResolver:()=>Qt,GestureRecognizer:()=>oe,HandLandmarker:()=>ae,HolisticLandmarker:()=>k,ImageClassifier:()=>Ee,ImageEmbedder:()=>pe,ImageSegmenter:()=>he,ImageSegmenterResult:()=>Cn,InteractiveSegmenter:()=>ue,InteractiveSegmenterLegacy:()=>Ce,InteractiveSegmenterLegacyResult:()=>Nn,MPImage:()=>Q,MPMask:()=>W,ObjectDetector:()=>Ae,PoseLandmarker:()=>ce,TaskRunner:()=>Sr,VisionTaskRunner:()=>fe});var re=Ct(467),gt=typeof self<"u"?self:{};function ws(e,t){e:{for(var r=["CLOSURE_FLAGS"],n=gt,i=0;i<r.length;i++)if(null==(n=n[r[i]])){r=null;break e}r=n}return null!=(e=r&&r[e])?e:t}function D(e,t){e=e.split(".");for(var r,n=gt;e.length&&(r=e.shift());)e.length||void 0===t?n=n[r]&&n[r]!==Object.prototype[r]?n[r]:n[r]={}:n[r]=t}function mt(){throw Error("Invalid UTF8")}function bs(e,t){return t=String.fromCharCode.apply(null,t),null==e?t:e+t}var Dn,u2,Fr=void 0,c2=typeof TextDecoder<"u",l2=typeof TextEncoder<"u";function Ts(e){if(l2)e=(u2||=new TextEncoder).encode(e);else{let r=0,n=new Uint8Array(3*e.length);for(let i=0;i<e.length;i++){var t=e.charCodeAt(i);if(t<128)n[r++]=t;
vendor: 49,377 bytes, line 1
1else{if(t<2048)n[r++]=t>>6|192;else{if(t>=55296&&t<=57343){if(t<=56319&&i<e.length){let s=e.charCodeAt(++i);if(s>=56320&&s<=57343){n[r++]=(t=1024*(t-55296)+s-56320+65536)>>18|240,n[r++]=t>>12&63|128,n[r++]=t>>6&63|128,n[r++]=63&t|128;continue}i--}t=65533}n[r++]=t>>12|224,n[r++]=t>>6&63|128}n[r++]=63&t|128}}e=r===n.length?n:n.subarray(0,r)}return e}function ks(e){gt.setTimeout(()=>{throw e},0)}var d2=ws(610401301,!1),Ss=ws(748402147,!0);function Ls(){var e=gt.navigator;return e&&(e=e.userAgent)?e:""}var Pn,xs=gt.navigator;function Cr(e){return Cr[" "](e),e}Pn=xs&&xs.userAgentData||null,Cr[" "]=function(){};var Rs={},ir=null;function Is(){if(!ir){ir={};var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"];for(let r=0;r<5;r++){let n=e.concat(t[r].split(""));Rs[r]=n;for(let i=0;i<n.length;i++){let s=n[i];void 0===ir[s]&&(ir[s]=i)}}}}var p2=typeof Uint8Array<"u",Fs=!!(d2&&Pn&&Pn.brands.length>0||-1==Ls().indexOf("Trident")&&-1==Ls().indexOf("MSIE"))&&"function"==typeof btoa,Cs=/[-_.]/g,g2={"-":"+",_:"/",".":"="};function m2(e){return g2[e]||""}function Ns(e){if(!Fs)return function f2(e){var t=e.length,r=3*t/4;r%3?r=Math.floor(r):-1!="=.".indexOf(e[t-1])&&(r=-1!="=.".indexOf(e[t-2])?r-2:r-1);var n=new Uint8Array(r),i=0;return function(s,o){function a(l){for(;h<s.length;){let u=s.charAt(h++),p=ir[u];if(null!=p)return p;if(!/^[\s\xa0]*$/.test(u))throw Error("Unknown base64 encoding at char: "+u)}return l}Is();for(var h=0;;){let l=a(-1),u=a(0),p=a(64),d=a(64);if(64===d&&-1===l)break;o(l<<2|u>>4),64!=p&&(o(u<<4&240|p>>2),64!=d&&o(p<<6&192|d))}}(e,function(s){n[i++]=s}),i!==r?n.subarray(0,i):n}(e);e=Cs.test(e)?e.replace(Cs,m2):e,e=atob(e);var t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}function $n(e){return p2&&null!=e&&e instanceof Uint8Array}var Nt={};function _t(){return _2||=new Ne(null,Nt)}function Un(e){Os(Nt);var t=e.g;return null==(t=null==t||$n(t)?t:"string"==typeof t?Ns(t):null)?t:e.g=t}var _2,Ne=class{h(){return new Uint8Array(Un(this)||0)}constructor(e,t){if(Os(t),this.g=e,null!=e&&0===e.length)throw Error("ByteString should be constructed with non-empty values")}};function Os(e){if(e!==Nt)throw Error("illegal external caller")}function Ms(e,t){e.__closure__error__context__984382||(e.__closure__error__context__984382={}),e.__closure__error__context__984382.severity=t}var v2=void 0;function sr(e){return Ms(e=Error(e),"warning"),e}function Ot(e,t){if(null!=e){var r=v2??={},n=r[e]||0;n>=t||(r[e]=n+1,Ms(e=Error(),"incident"),ks(e))}}function vt(){return"function"==typeof BigInt}var Mt="function"==typeof Symbol&&"symbol"==typeof Symbol();function Oe(e,t,r=!1){return"function"==typeof Symbol&&"symbol"==typeof Symbol()?r&&Symbol.for&&e?Symbol.for(e):null!=e?Symbol(e):Symbol():t}var it,y2=Oe("jas",void 0,!0),Ds=Oe(void 0,"0di"),or=Oe(void 0,"1oa"),ge=Oe(void 0,Symbol()),E2=Oe(void 0,"0ub"),A2=Oe(void 0,"0ubs"),Bn=Oe(void 0,"0ubsb"),w2=Oe(void 0,"0actk"),Dt=Oe("m_m","kb",!0),Ps=Oe(),$s={Va:{value:0,configurable:!0,writable:!0,enumerable:!1}},Us=Object.defineProperties,m=Mt?y2:"Va",Bs=[];function ar(e,t){Mt||m in e||Us(e,$s),e[m]|=t}function Y(e,t){Mt||m in e||Us(e,$s),e[m]=t}function hr(e){return ar(e,34),e}function ur(e){return ar(e,8192),e}Y(Bs,7),it=Object.freeze(Bs);var Pt={};function le(e,t){return void 0===t?e.h!==yt&&!!(2&e.A[m]):!!(2&t)&&e.h!==yt}var yt={};function Nr(e,t){if(null!=e)if("string"==typeof e)e=e?new Ne(e,Nt):_t();else if(e.constructor!==Ne)if($n(e))e=e.length?new Ne(new Uint8Array(e),Nt):_t();else{if(!t)throw Error();e=void 0}return e}class Gs{constructor(t,r,n){this.g=t,this.h=r,this.j=n}next(){var t=this.g.next();return t.done||(t.value=this.h.call(this.j,t.value)),t}[Symbol.iterator](){return this}}var b2=Object.freeze({});function js(e,t,r){var n,i=128&t?0:-1,s=e.length;(n=!!s)&&(n=null!=(n=e[s-1])&&"object"==typeof n&&n.constructor===Object);var o=s+(n?-1:0);for(t=128&t?1:0;t<o;t++)r(t-i,e[t]);if(n){e=e[s-1];for(let a in e)!isNaN(a)&&r(+a,e[a])}}var Vs={};function $t(e){return 128&e?Vs:void 0}function Or(e){return e.ib=!0,e}var T2=Or(e=>"number"==typeof e),Hs=Or(e=>"string"==typeof e),k2=Or(e=>"boolean"==typeof e),Mr="function"==typeof gt.BigInt&&"bigint"==typeof gt.BigInt(0);function q(e){var t=e;if(Hs(t)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(t))throw Error(String(t))}else if(T2(t)&&!Number.isSafeInteger(t))throw Error(String(t));return Mr?BigInt(e):e=k2(e)?e?"1":"0":Hs(e)?e.trim()||"0":String(e)}var Gn=Or(e=>Mr?e>=L2&&e<=R2:function Ks(e,t){if(e.length>t.length)return!1;if(e.length<t.length||e===t)return!0;for(let r=0;r<e.length;r++){let n=e[r],i=t[r];if(n>i)return!1;if(n<i)return!0}}(e,"-"===e[0]?S2:x2)),S2=Number.MIN_SAFE_INTEGER.toString(),L2=Mr?BigInt(Number.MIN_SAFE_INTEGER):void 0,x2=Number.MAX_SAFE_INTEGER.toString(),R2=Mr?BigInt(Number.MAX_SAFE_INTEGER):void 0;var Xs,I2="function"==typeof Uint8Array.prototype.slice,R=0,O=0;function jn(e){var t=e>>>0;R=t,O=(e-t)/4294967296>>>0}function Et(e){if(e<0){jn(-e);let[t,r]=Kn(R,O);R=t>>>0,O=r>>>0}else jn(e)}function Vn(e){var t=Xs||=new DataView(new ArrayBuffer(8));t.setFloat32(0,+e,!0),O=0,R=t.getUint32(0,!0)}function Ws(e,t){var r=4294967296*t+(e>>>0);return Number.isSafeInteger(r)?r:Ut(e,t)}function F2(e,t){return q(vt()?BigInt.asUintN(64,(BigInt(t>>>0)<<BigInt(32))+BigInt(e>>>0)):Ut(e,t))}function zs(e,t){return vt()?q(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(t))<<BigInt(32))+BigInt.asUintN(32,BigInt(e)))):q(Hn(e,t))}function Ut(e,t){if(e>>>=0,(t>>>=0)<=2097151)var r=""+(4294967296*t+e);else vt()?r=""+(BigInt(t)<<BigInt(32)|BigInt(e)):(e=(16777215&e)+6777216*(r=16777215&(e>>>24|t<<8))+6710656*(t=t>>16&65535),r+=8147497*t,t*=2,e>=1e7&&(r+=e/1e7>>>0,e%=1e7),r>=1e7&&(t+=r/1e7>>>0,r%=1e7),r=t+Ys(r)+Ys(e));return r}function Ys(e){return e=String(e),"0000000".slice(e.length)+e}function Hn(e,t){if(2147483648&t)if(vt())e=""+(BigInt(0|t)<<BigInt(32)|BigInt(e>>>0));else{let[r,n]=Kn(e,t);e="-"+Ut(r,n)}else e=Ut(e,t);return e}function cr(e){if(e.length<16)Et(Number(e));else if(vt())e=BigInt(e),R=Number(e&BigInt(4294967295))>>>0,O=Number(e>>BigInt(32)&BigInt(4294967295));else{let t=+("-"===e[0]);O=R=0;let r=e.length;for(let n=t,i=(r-t)%6+t;i<=r;n=i,i+=6){let s=Number(e.slice(n,i));O*=1e6,(R=1e6*R+s)>=4294967296&&(O+=Math.trunc(R/4294967296),O>>>=0,R>>>=0)}if(t){let[n,i]=Kn(R,O);R=n,O=i}}}function Kn(e,t){return t=~t,e?e=1+~e:t+=1,[e,t]}function be(e){return Array.prototype.slice.call(e)}var At="function"==typeof BigInt?BigInt.asIntN:void 0,Xn="function"==typeof BigInt?BigInt.asUintN:void 0,Me=Number.isSafeInteger,lr=Number.isFinite,st=Math.trunc,C2=q(0);function qs(e){if("number"!=typeof e)throw Error(`Value of float/double field must be a number, found ${typeof e}: ${e}`);return e}function xe(e){return null==e||"number"==typeof e?e:"NaN"===e||"Infinity"===e||"-Infinity"===e?Number(e):void 0}function Dr(e){if("boolean"!=typeof e){var t=typeof e;throw Error(`Expected boolean but got ${"object"!=t?t:e?Array.isArray(e)?"array":t:"null"}: ${e}`)}return e}var N2=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function Bt(e){switch(typeof e){case"bigint":return!0;case"number":return lr(e);case"string":return N2.test(e);default:return!1}}function Ke(e){if(null!=e){if(!lr(e))throw sr("enum");e|=0}return e}function wt(e){if(null==e)return e;if("string"==typeof e&&e)e=+e;else if("number"!=typeof e)return;return lr(e)?0|e:void 0}function Js(e){if(null==e)return e;if("string"==typeof e&&e)e=+e;else if("number"!=typeof e)return;return lr(e)?e>>>0:void 0}function Zs(e,t){if(t??=1024,!Bt(e))throw sr("int64");var r=typeof e;switch(t){case 512:switch(r){case"string":return $r(e);case"bigint":return String(At(64,e));default:return ro(e)}case 1024:switch(r){case"string":return no(e);case"bigint":return q(At(64,e));default:return io(e)}case 0:switch(r){case"string":return $r(e);case"bigint":return q(At(64,e));default:return Pr(e)}default:return function(n,i=`unexpected value ${n}!`){throw Error(i)}(t,"Unknown format requested type for int64")}}function Qs(e){var t=e.length;return("-"===e[0]?t<20||20===t&&e<="-9223372036854775808":t<19||19===t&&e<="9223372036854775807")?e:(cr(e),Hn(R,O))}function eo(e){if("-"===e[0])var t=!1;else t=(t=e.length)<20||20===t&&e<="18446744073709551615";return t?e:(cr(e),Ut(R,O))}function Pr(e){if(e=st(e),!Me(e)){Et(e);var t=R,r=O;(e=2147483648&r)&&(r=~r>>>0,0==(t=1+~t>>>0)&&(r=r+1>>>0)),e="number"==typeof(t=Ws(t,r))?e?-t:t:e?"-"+t:t}return e}function to(e){return(e=st(e))>=0&&Me(e)||(Et(e),e=Ws(R,O)),e}function ro(e){return e=st(e),Me(e)?e=String(e):(Et(e),e=Hn(R,O)),e}function $r(e){var t=st(Number(e));return Me(t)?String(t):(-1!==(t=e.indexOf("."))&&(e=e.substring(0,t)),Qs(e))}function no(e){var t=st(Number(e));return Me(t)?q(t):(-1!==(t=e.indexOf("."))&&(e=e.substring(0,t)),vt()?q(At(64,BigInt(e))):q(Qs(e)))}function io(e){return Me(e)?q(Pr(e)):q(ro(e))}function Ur(e){var t=typeof e;return null==e?e:"bigint"===t?q(At(64,e)):Bt(e)?"string"===t?no(e):io(e):void 0}function Wn(e){if(null==e)return e;var t=typeof e;if("bigint"===t)return String(At(64,e));if(Bt(e)){if("string"===t)return $r(e);if("number"===t)return Pr(e)}}function so(e){if(null==e||"string"==typeof e||e instanceof Ne)return e}function oo(e){if("string"!=typeof e)throw Error();return e}function Xe(e){if(null!=e&&"string"!=typeof e)throw Error();return e}function ee(e){return null==e||"string"==typeof e?e:void 0}function zn(e,t,r,n){return null!=e&&e[Dt]===Pt?e:Array.isArray(e)?((n=(r=0|e[m])|32&n|2&n)!==r&&Y(e,n),new t(e)):(r?2&n?((e=t[Ds])||(hr((e=new t).A),e=t[Ds]=e),t=e):t=new t:t=void 0,t)}function O2(e,t,r){return null==(e=t?Zs(e,1024):Ur(e))?r?C2:void 0:e}function M2(e){return e}var D2={},P2=function(){try{return Cr(new class extends Map{constructor(){super()}}),!1}catch{return!0}}();class Yn{constructor(){this.g=new Map}get(t){return this.g.get(t)}set(t,r){return this.g.set(t,r),this.size=this.g.size,this}delete(t){return t=this.g.delete(t),this.size=this.g.size,t}clear(){this.g.clear(),this.size=this.g.size}has(t){return this.g.has(t)}entries(){return this.g.entries()}keys(){return this.g.keys()}values(){return this.g.values()}forEach(t,r){return this.g.forEach(t,r)}[Symbol.iterator](){return this.entries()}}var $2=P2?(Object.setPrototypeOf(Yn.prototype,Map.prototype),Object.defineProperties(Yn.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Yn):class extends Map{constructor(){super()}};function ao(e){return e}function qn(e){if(2&e.M)throw Error("Cannot mutate an immutable Map")}var U2,We=class extends $2{constructor(e,t,r=ao,n=ao){super(),this.M=0|e[m],this.N=t,this.ba=r,this.na=this.N?B2:n;for(let i=0;i<e.length;i++){let s=e[i],o=r(s[0],!1,!0),a=s[1];t?void 0===a&&(a=null):a=n(s[1],!1,!0,void 0,void 0,this.M),super.set(o,a)}}ea(e){return ur(Array.from(super.entries(),e))}clear(){qn(this),super.clear()}delete(e){return qn(this),super.delete(this.ba(e,!0,!1))}entries(){if(this.N){var e=super.keys();e=new Gs(e,G2,this)}else e=super.entries();return e}values(){if(this.N){var e=super.keys();e=new Gs(e,We.prototype.get,this)}else e=super.values();return e}forEach(e,t){this.N?super.forEach((r,n,i)=>{e.call(t,i.get(n),n,i)}):super.forEach(e,t)}set(e,t){return qn(this),null==(e=this.ba(e,!0,!1))?this:null==t?(super.delete(e),this):super.set(e,this.na(t,!0,!0,this.N,!1,this.M))}gb(e){var t=this.ba(e[0],!1,!0);e=e[1],e=this.N?void 0===e?null:e:this.na(e,!1,!0,void 0,!1,this.M),super.set(t,e)}has(e){return super.has(this.ba(e,!1,!1))}get(e){e=this.ba(e,!1,!1);var t=super.get(e);if(void 0!==t){var r=this.N;return r?((r=this.na(t,!1,!0,r,this.Fa,this.M))!==t&&super.set(e,r),r):t}}[Symbol.iterator](){return this.entries()}};function B2(e,t,r,n,i,s){return e=zn(e,n,r,s),i&&(e=Qn(e)),e}function G2(e){return[e,this.get(e)]}function ho(){return U2||=new We(hr([]),void 0,void 0,void 0,D2)}function Br(e){return ge?e[ge]:void 0}function Gr(e,t){for(let r in e)!isNaN(r)&&t(e,+r,e[r])}We.prototype.toJSON=void 0;var j2,V2,H2,Jn=class{},K2={cb:!0};function X2(e,t){t<100||Ot(A2,1)}function jr(e,t,r,n){var i=void 0!==n;n=!!n;var s,o=ge;!i&&Mt&&o&&(s=e[o])&&Gr(s,X2),o=[];var a=e.length;s=4294967295;var A,T,h=!1,l=!!(64&t),u=l?128&t?0:-1:void 0;if(!(1&t)){var p=a&&e[a-1];null!=p&&"object"==typeof p&&p.constructor===Object?s=--a:p=void 0,!l||128&t||i||(h=!0,s=(j2??M2)(s-u,u,e,p,void 0)+u)}t=void 0;for(var d=0;d<a;d++){let A=e[d];if(null!=A&&null!=(A=r(A,n)))if(l&&d>=s){let T=d-u;(t??={})[T]=A}else o[d]=A}if(p)for(let A in p){if(null==(a=p[A])||null==(a=r(a,n)))continue;let T;d=+A,l&&!Number.isNaN(d)&&(T=d+u)<s?o[T]=a:(t??={})[A]=a}return t&&(h?o.push(t):o[s]=t),i&&ge&&(e=Br(e))&&e instanceof Jn&&(o[ge]=(A=e,T=new Jn,Gr(A,(z,we,Le)=>{T[we]=be(Le)}),T.ka=A.ka,T)),o}function W2(e){return e[0]=dr(e[0]),e[1]=dr(e[1]),e}function dr(e){switch(typeof e){case"number":return Number.isFinite(e)?e:""+e;case"bigint":return Gn(e)?Number(e):""+e;case"boolean":return e?1:0;case"object":if(Array.isArray(e)){var t=0|e[m];return 0===e.length&&1&t?void 0:jr(e,t,dr)}if(null!=e&&e[Dt]===Pt)return uo(e);if(e instanceof Ne){if(null==(t=e.g))e="";else if("string"==typeof t)e=t;else{if(Fs){for(var r="",n=0,i=t.length-10240;n<i;)r+=String.fromCharCode.apply(null,t.subarray(n,n+=10240));r+=String.fromCharCode.apply(null,n?t.subarray(n):t),t=btoa(r)}else{void 0===r&&(r=0),Is(),r=Rs[r],n=Array(Math.floor(t.length/3)),i=r[64]||"";let l=0,u=0;for(;l<t.length-2;l+=3){var s=t[l],o=t[l+1],a=t[l+2],h=r[s>>2];n[u++]=h+(s=r[(3&s)<<4|o>>4])+(o=r[(15&o)<<2|a>>6])+(a=r[63&a])}switch(h=0,a=i,t.length-l){case 2:a=r[(15&(h=t[l+1]))<<2]||i;case 1:n[u]=r[(t=t[l])>>2]+r[(3&t)<<4|h>>4]+a+i}t=n.join("")}e=e.g=t}return e}return e instanceof We?e=0!==e.size?e.ea(W2):void 0:void 0}return e}function uo(e){return jr(e=e.A,0|e[m],dr)}function bt(e,t){return co(e,t[0],t[1])}function co(e,t,r,n=0){if(null==e){var i=32;r?(e=[r],i|=128):e=[],t&&(i=-16760833&i|(1023&t)<<14)}else{if(!Array.isArray(e))throw Error("narr");if(i=0|e[m],Ss&&1&i)throw Error("rfarr");if(2048&i&&!(2&i)&&function(){if(Ss)throw Error("carr");Ot(w2,5)}(),256&i)throw Error("farr");if(64&i)return(i|n)!==i&&Y(e,i|n),e;if(r&&(i|=128,r!==e[0]))throw Error("mid");e:{i|=64;var s=(r=e).length;if(s){var o=s-1;let h=r[o];if(null!=h&&"object"==typeof h&&h.constructor===Object){if((o-=t=128&i?0:-1)>=1024)throw Error("pvtlmt");for(var a in h)(s=+a)<o&&(r[s+t]=h[a],delete h[a]);i=-16760833&i|(1023&o)<<14;break e}}if(t){if((a=Math.max(t,s-(128&i?0:-1)))>1024)throw Error("spvt");i=-16760833&i|(1023&a)<<14}}}return Y(e,64|i|n),e}function z2(e,t){if("object"!=typeof e)return e;if(Array.isArray(e)){var r=0|e[m];return 0===e.length&&1&r?void 0:lo(e,r,t)}if(null!=e&&e[Dt]===Pt)return fo(e);if(e instanceof We){if(2&(t=e.M))return e;if(!e.size)return;if(r=hr(e.ea()),e.N)for(e=0;e<r.length;e++){let n=r[e],i=n[1];i=null==i||"object"!=typeof i?void 0:null!=i&&i[Dt]===Pt?fo(i):Array.isArray(i)?lo(i,0|i[m],!!(32&t)):void 0,n[1]=i}return r}return e instanceof Ne?e:void 0}function lo(e,t,r){return 2&t||(!r||4096&t||16&t?e=Gt(e,t,!1,r&&!(16&t)):(ar(e,34),4&t&&Object.freeze(e))),e}function Zn(e,t,r){return e=new e.constructor(t),r&&(e.h=yt),e.m=yt,e}function fo(e){var t=e.A,r=0|t[m];return le(e,r)?e:ei(e,t,r)?Zn(e,t):Gt(t,r)}function Gt(e,t,r,n){return n??=!!(34&t),e=jr(e,t,z2,n),n=32,r&&(n|=2),Y(e,t=16769217&t|n),e}function Qn(e){var t=e.A,r=0|t[m];return le(e,r)?ei(e,t,r)?Zn(e,t,!0):new e.constructor(Gt(t,r,!1)):e}function jt(e){if(e.h!==yt)return!1;var t=e.A;return ar(t=Gt(t,0|t[m]),2048),e.A=t,e.h=void 0,e.m=void 0,!0}function Tt(e){if(!jt(e)&&le(e,0|e.A[m]))throw Error()}function ot(e,t){void 0===t&&(t=0|e[m]),32&t&&!(4096&t)&&Y(e,4096|t)}function ei(e,t,r){return!!(2&r)||!(!(32&r)||4096&r)&&(Y(t,2|r),e.h=yt,!0)}var po=q(0),at={};function G(e,t,r,n){if(null!==(t=ze(e.A,t,void 0,n))||r&&e.m!==yt)return t}function ze(e,t,r,n){if(-1===t)return null;var i=t+(r?0:-1),s=e.length-1;if(!(s<1+(r?0:-1))){if(i>=s){var o=e[s];if(null!=o&&"object"==typeof o&&o.constructor===Object){r=o[t];var a=!0}else{if(i!==s)return;r=o}}else r=e[i];if(n&&null!=r){if(null==(n=n(r)))return n;if(!Object.is(n,r))return a?o[t]=n:e[i]=n,n}return r}}function w(e,t,r,n){Tt(e);var i=e.A;return V(i,0|i[m],t,r,n),e}function V(e,t,r,n,i){var s=r+(i?0:-1),o=e.length-1;if(o>=1+(i?0:-1)&&s>=o){let a=e[o];if(null!=a&&"object"==typeof a&&a.constructor===Object)return a[r]=n,t}return s<=o?(e[s]=n,t):(void 0!==n&&(r>=(o=(t??=0|e[m])>>14&1023||536870912)?null!=n&&(e[o+(i?0:-1)]={[r]:n}):e[s]=n),t)}function go(e,t,r,n){var i=e.A;return void 0!==Ao(i,0|i[m],t,e=yo(e,n)===r?r:-1)}function kt(){return void 0===b2?2:4}function St(e,t,r,n,i){var s=e.A,o=0|s[m];n=le(e,o)?1:n,i=!!i||3===n,2===n&&jt(e)&&(o=0|(s=e.A)[m]);var a=(e=ti(s,t))===it?7:0|e[m],h=ri(a,o),l=!(4&h);if(l){4&h&&(e=be(e),a=0,h=ct(h,o),o=V(s,o,t,e));let u=0,p=0;for(;u<e.length;u++){let d=r(e[u]);null!=d&&(e[p++]=d)}p<u&&(e.length=p),r=-513&h|4,h=r&=-1025,h&=-4097}return h!==a&&(Y(e,h),2&h&&Object.freeze(e)),mo(e,h,s,o,t,n,l,i)}function mo(e,t,r,n,i,s,o,a){var h=t;return 1===s||4===s&&(2&t||!(16&t)&&32&n)?ht(t)||((t|=!e.length||o&&!(4096&t)||32&n&&!(4096&t||16&t)?2:256)!==h&&Y(e,t),Object.freeze(e)):(2===s&&ht(t)&&(e=be(e),h=0,t=ct(t,n),n=V(r,n,i,e)),ht(t)||(a||(t|=16),t!==h&&Y(e,t))),2&t||!(4096&t||16&t)||ot(r,n),e}function ti(e,t,r){return e=ze(e,t,r),Array.isArray(e)?e:it}function ri(e,t){return 2&t&&(e|=2),1|e}function ht(e){return!!(2&e)&&!!(4&e)||!!(256&e)}function _o(e){return Nr(e,!0)}function vo(e){e=be(e);for(let t=0;t<e.length;t++){let r=e[t]=be(e[t]);Array.isArray(r[1])&&(r[1]=hr(r[1]))}return ur(e)}function fr(e,t,r,n){Tt(e),V(e=e.A,0|e[m],t,("0"===n?0===Number(r):r===n)?void 0:r)}function ut(e,t,r){if(2&t)throw Error();var n=$t(t),i=ti(e,r,n),s=i===it?7:0|i[m],o=ri(s,t);return(2&o||ht(o)||16&o)&&(o===s||ht(o)||Y(i,o),i=be(i),s=0,o=ct(o,t),V(e,t,r,i,n)),(o&=-13)!==s&&Y(i,o),i}function yo(e,t){return ii(ni(e=e.A),e,void 0,t)}function ni(e){if(Mt)return e[or]??(e[or]=new Map);if(or in e)return e[or];var t=new Map;return Object.defineProperty(e,or,{value:t}),t}function Eo(e,t,r,n,i){var s=ni(e),o=ii(s,e,t,r,i);return o!==n&&(o&&(t=V(e,t,o,void 0,i)),s.set(r,n)),t}function ii(e,t,r,n,i){var s=e.get(n);if(null!=s)return s;s=0;for(let o=0;o<n.length;o++){let a=n[o];null!=ze(t,a,i)&&(0!==s&&(r=V(t,r,s,void 0,i)),s=a)}return e.set(n,s),s}function si(e,t,r){var n=0|e[m],i=$t(n),s=ze(e,r,i);if(null!=s&&s[Dt]===Pt){if(!le(s))return jt(s),s.A;var o=s.A}else Array.isArray(s)&&(o=s);if(o){let a=0|o[m];2&a&&(o=Gt(o,a))}return(o=bt(o,t))!==s&&V(e,n,r,o,i),o}function Ao(e,t,r,n,i){var s=!1;if(null!=(n=ze(e,n,i,o=>{var a=zn(o,r,!1,t);return s=a!==o&&null!=a,a})))return s&&!le(n)&&ot(e,t),n}function C(e,t,r,n){var i=e.A,s=0|i[m];if(null==(t=Ao(i,s,t,r,n)))return t;if(!le(e,s=0|i[m])){let o=Qn(t);o!==t&&(jt(e)&&(s=0|(i=e.A)[m]),ot(i,s=V(i,s,r,t=o,n)))}return t}function wo(e,t,r,n,i,s,o,a){var h=le(e,r);s=h?1:s,o=!!o||3===s,h=a&&!h,(2===s||h)&&jt(e)&&(r=0|(t=e.A)[m]);var l=(e=ti(t,i))===it?7:0|e[m],u=ri(l,r);if(a=!(4&u)){var p=e,d=r;let A=!!(2&u);A&&(d|=2);let T=!A,z=!0,we=0,Le=0;for(;we<p.length;we++){let He=zn(p[we],n,!1,d);if(He instanceof n){if(!A){let On=le(He);T&&=!On,z&&=On}p[Le++]=He}}Le<we&&(p.length=Le),u|=4,u=z?-4097&u:4096|u,u=T?8|u:-9&u}if(u!==l&&(Y(e,u),2&u&&Object.freeze(e)),h&&!(8&u||!e.length&&(1===s||4===s&&(2&u||!(16&u)&&32&r)))){for(ht(u)&&(e=be(e),u=ct(u,r),r=V(t,r,i,e)),n=e,h=u,l=0;l<n.length;l++)(p=n[l])!==(u=Qn(p))&&(n[l]=u);h|=8,Y(e,u=h=n.length?4096|h:-4097&h)}return mo(e,u,t,r,i,s,a,o)}function Ye(e,t,r){var n=e.A;return wo(e,n,0|n[m],t,r,kt(),!1,!0)}function bo(e){return null==e&&(e=void 0),e}function y(e,t,r,n,i){return w(e,r,n=bo(n),i),n&&!le(n)&&ot(e.A),e}function De(e,t,r,n){e:{var i=n=bo(n);Tt(e);let s=e.A,o=0|s[m];if(null==i){let a=ni(s);if(ii(a,s,o,r)!==t)break e;a.set(r,0)}else o=Eo(s,o,r,t);V(s,o,t,i)}return n&&!le(n)&&ot(e.A),e}function oi(e,t,r){Tt(e);var n=e.A,i=0|n[m];if(null==r)return V(n,i,t),e;var s=r===it?7:0|r[m],o=s,a=ht(s),h=a||Object.isFrozen(r),l=!0,u=!0;for(let d=0;d<r.length;d++){var p=r[d];a||(p=le(p),l&&=!p,u&&=p)}return a||(s=l?13:5,s=u?-4097&s:4096|s),h&&s===o||(r=be(r),o=0,s=ct(s,i)),s!==o&&Y(r,s),i=V(n,i,t,r),2&s||!(4096&s||16&s)||ot(n,i),e}function ct(e,t){return-273&(2&t?2|e:-3&e)}function pr(e,t,r,n){var i=n;Tt(e),e=wo(e,n=e.A,0|n[m],r,t,2,!0),i=i??new r,e.push(i),t=r=e===it?7:0|e[m],(i=le(i))?(r&=-9,1===e.length&&(r&=-4097)):r|=4096,r!==t&&Y(e,r),i||ot(n)}function Te(e,t,r){return wt(G(e,t,r))}function H(e,t){return G(e,t,void 0,xe)??0}function To(e,t,r){return C(e,t,r=yo(e,Ci)===r?r:-1,void 0)}function ai(e,t){fr(e,3,null==t?t:Dr(t),!1)}function Pe(e,t,r){if(null!=r){if("number"!=typeof r||!lr(r))throw sr("int32");r|=0}w(e,t,r)}function hi(e,t,r){return w(e,t,null==r?r:Zs(r))}function Vr(e,t,r){return w(e,t,null==r?r:function(n){if(!Bt(n))throw sr("uint64");switch(typeof n){case"string":var i=st(Number(n));return Me(i)&&i>=0?n=q(i):(-1!==(i=n.indexOf("."))&&(n=n.substring(0,i)),n=vt()?q(Xn(64,BigInt(n))):q(eo(n))),n;case"bigint":return q(Xn(64,n));default:return Me(n)?n=q(to(n)):((n=st(n))>=0&&Me(n)?n=String(n):(Et(n),n=Ut(R,O)),n=q(n)),n}}(r))}function E(e,t,r){w(e,t,null==r?r:qs(r))}function Vt(e,t,r){fr(e,t,null==r?r:qs(r),0)}function me(e,t,r){fr(e,t,Xe(r),"")}function Hr(e,t,r){{Tt(e);let o=e.A,a=0|o[m];if(null==r)V(o,a,t);else{var n=e=r===it?7:0|r[m],i=ht(e),s=i||Object.isFrozen(r);for(i||(e=0),s||(r=be(r),n=0,e=ct(e,a),s=!1),e|=5,e|=(4&e?512&e?512:1024&e?1024:0:void 0)??1024,i=0;i<r.length;i++){let h=r[i],l=oo(h);Object.is(h,l)||(s&&(r=be(r),n=0,e=ct(e,a),s=!1),r[i]=l)}e!==n&&(s&&(r=be(r),e=ct(e,a)),Y(r,e)),V(o,a,t,r)}}}function Kr(e,t,r){Tt(e),St(e,t,ee,2,!0).push(oo(r))}var Ht=class{constructor(e,t,r){if(this.buffer=e,r&&!t)throw Error();this.g=t}};function Xr(e,t){if("string"==typeof e)return new Ht(Ns(e),t);if(Array.isArray(e))return new Ht(new Uint8Array(e),t);if(e.constructor===Uint8Array)return new Ht(e,!1);if(e.constructor===ArrayBuffer)return e=new Uint8Array(e),new Ht(e,!1);if(e.constructor===Ne)return t=Un(e)||new Uint8Array(0),new Ht(t,!0,e);if(e instanceof Uint8Array)return e=e.constructor===Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Ht(e,!1);throw Error()}function ui(e,t){var r=0,n=0,i=0,s=e.h,o=e.g;do{var a=s[o++];r|=(127&a)<<i,i+=7}while(i<32&&128&a);if(i>32)for(n|=(127&a)>>4,i=3;i<32&&128&a;i+=7)n|=(127&(a=s[o++]))<<i;if(Lt(e,o),!(128&a))return t(r>>>0,n>>>0);throw Error()}function ci(e){for(var t=0,r=e.g,n=r+10,i=e.h;r<n;){let s=i[r++];if(t|=s,!(128&s))return Lt(e,r),!!(127&t)}throw Error()}function qe(e){var t=e.h,r=e.g,n=t[r++],i=127&n;if(128&n&&(i|=(127&(n=t[r++]))<<7,128&n&&(i|=(127&(n=t[r++]))<<14,128&n&&(i|=(127&(n=t[r++]))<<21,128&n&&(i|=(n=t[r++])<<28,128&n&&128&t[r++]&&128&t[r++]&&128&t[r++]&&128&t[r++]&&128&t[r++])))))throw Error();return Lt(e,r),i}function $e(e){return qe(e)>>>0}function Wr(e){return ui(e,zs)}function li(e){var t=e.h,r=e.g,n=t[r],i=t[r+1],s=t[r+2];return t=t[r+3],Lt(e,e.g+4),(n|i<<8|s<<16|t<<24)>>>0}function zr(e){var t=li(e);e=2*(t>>31)+1;var r=t>>>23&255;return t&=8388607,255==r?t?NaN:e*(1/0):0==r?1401298464324817e-60*e*t:e*Math.pow(2,r-150)*(t+8388608)}function Y2(e){return qe(e)}function Lt(e,t){if(e.g=t,t>e.j)throw Error()}function ko(e,t){if(t<0)throw Error();var r=e.g;if((t=r+t)>e.j)throw Error();return e.g=t,r}function So(e,t){if(0==t)return _t();var r=ko(e,t);return e.fa&&e.o?r=e.h.subarray(r,r+t):(e=e.h,r=r===(t=r+t)?new Uint8Array(0):I2?e.slice(r,t):new Uint8Array(e.subarray(r,t))),0==r.length?_t():new Ne(r,Nt)}var Lo=[],Kt=0;function xo(e,t,r,n){if(qr.length){let i=qr.pop();return i.v(n),i.g.init(e,t,r,n),i}return new J2(e,t,r,n)}function Ro(e){e.g.clear(),e.j=-1,e.h=-1,qr.length<100&&qr.push(e)}function Io(e){var t=e.g;if(t.g==t.j)return!1;e.m=e.g.g;var r=$e(e.g);if(t=r>>>3,!((r&=7)>=0&&r<=5)||t<1)throw Error();return e.j=t,e.h=r,!0}function Yr(e){try{switch(e.h){case 0:0!=e.h?Yr(e):ci(e.g);break;case 1:var t=e.g;Lt(t,t.g+8);break;case 2:if(2!=e.h)Yr(e);else{var r=$e(e.g),n=e.g;Lt(n,n.g+r)}break;case 5:var i=e.g;Lt(i,i.g+4);break;case 3:Fo();let s=e.j;try{for(;;){if(!Io(e))throw Error();if(4==e.h){if(e.j!=s)throw Error();break}Yr(e)}}catch(o){throw o instanceof RangeError?new SyntaxError:o}finally{Kt>0&&Kt--}break;default:throw Error()}}catch(s){throw s instanceof RangeError?new SyntaxError:s}}function Fo(){if(Kt>=100)throw new SyntaxError;Kt++}function gr(e,t,r){var n=e.g.j,i=$e(e.g),s=(i=e.g.g+i)-n;if(s<=0&&(e.g.j=i,r(t,e,void 0,void 0,void 0),s=i-e.g.g),s)throw Error();return e.g.g=i,e.g.j=n,t}function di(e){var t=$e(e.g),r=ko(e=e.g,t);if(e=e.h,c2){var n,i=e;(n=Dn)||(n=Dn=new TextDecoder("utf-8",{fatal:!0})),t=r+t,i=0===r&&t===i.length?i:i.subarray(r,t);try{var s=n.decode(i)}catch(a){if(void 0===Fr){try{n.decode(new Uint8Array([128]))}catch{}try{n.decode(new Uint8Array([97])),Fr=!0}catch{Fr=!1}}throw!Fr&&(Dn=void 0),a}}else{t=(s=r)+t,r=[];let a,h=null;for(;s<t;){var o=e[s++];o<128?r.push(o):o<224?s>=t?mt():(a=e[s++],o<194||128!=(192&a)?(s--,mt()):r.push((31&o)<<6|63&a)):o<240?s>=t-1?mt():(a=e[s++],128!=(192&a)||224===o&&a<160||237===o&&a>=160||128!=(192&(n=e[s++]))?(s--,mt()):r.push((15&o)<<12|(63&a)<<6|63&n)):o<=244?s>=t-2?mt():(a=e[s++],128!=(192&a)||a-144+(o<<28)>>30||128!=(192&(n=e[s++]))||128!=(192&(i=e[s++]))?(s--,mt()):(o=(7&o)<<18|(63&a)<<12|(63&n)<<6|63&i,r.push(55296+((o-=65536)>>10&1023),56320+(1023&o)))):mt(),r.length>=8192&&(h=bs(h,r),r.length=0)}s=bs(h,r)}return s}function fi(e){var t=$e(e.g);return So(e.g,t)}function mr(e,t,r){var n=$e(e.g);for(n=e.g.g+n;e.g.g<n;)r.push(t(e.g))}var J2=class{constructor(e,t,r,n){if(Lo.length){let i=Lo.pop();i.init(e,t,r,n),e=i}else e=new class{constructor(e,t,r,n){this.h=null,this.o=!1,this.g=this.j=this.m=0,this.init(e,t,r,n)}init(e,t,r,{fa:n=!1,ma:i=!1}={}){this.fa=n,this.ma=i,e&&(e=Xr(e,this.ma),this.h=e.buffer,this.o=e.g,this.m=t||0,this.j=void 0!==r?this.m+r:this.h.length,this.g=this.m)}clear(){this.h=null,this.o=!1,this.g=this.j=this.m=0,this.fa=!1}}(e,t,r,n);this.g=e,this.m=this.g.g,this.h=this.j=-1,this.v(n)}v({ra:e=!1}={}){this.ra=e}},qr=[];function Z2(e){return new Jr(4294967295&e,Math.floor(e/4294967296))}function Co(e){return e?/^\d+$/.test(e)?(cr(e),new Jr(R,O)):null:Q2||=new Jr(0,0)}var Q2,Jr=class{constructor(e,t){this.h=e>>>0,this.g=t>>>0}};function eh(e){return new Qr(4294967295&e,Math.floor(e/4294967296))}function No(e){return e?/^-?\d+$/.test(e)?(cr(e),new Qr(R,O)):null:th||=new Qr(0,0)}var th,Oo,Mo,Do,pi,Po,_r,Zr,Qr=class{constructor(e,t){this.h=e>>>0,this.g=t>>>0}};function $o(e,t,r){return typeof BigInt64Array<"u"?(_r||(_r=new BigInt64Array(1),Zr=new Uint32Array(_r.buffer),_r[0]=BigInt(1),Po=1===Zr[0]),_r[0]=e,new t(Zr[e=Po?0:1],Zr[1-e])):(pi||(Oo=BigInt(Number.MIN_SAFE_INTEGER),Mo=BigInt(Number.MAX_SAFE_INTEGER),Do=BigInt(4294967295),pi=BigInt(32)),e>=Oo&&e<=Mo?r(Number(e)):(e=BigInt.asUintN(64,e),new t(Number(e&Do),Number(e>>pi))))}function Je(e,t,r){for(;r>0||t>127;)e.g.push(127&t|128),t=(t>>>7|r<<25)>>>0,r>>>=7;e.g.push(t)}function Xt(e,t){for(;t>127;)e.g.push(127&t|128),t>>>=7;e.g.push(t)}function vr(e,t){if(t>=0)Xt(e,t);else{for(let r=0;r<9;r++)e.g.push(127&t|128),t>>=7;e.g.push(1)}}function yr(e,t){e.g.push(t>>>0&255),e.g.push(t>>>8&255),e.g.push(t>>>16&255),e.g.push(t>>>24&255)}function Wt(e,t){0!==t.length&&(e.j.push(t),e.h+=t.length)}function ne(e,t,r){Xt(e.g,8*t+r)}function gi(e,t){return ne(e,t,2),t=e.g.end(),Wt(e,t),t.push(e.h),t}function mi(e,t){var r=t.pop();for(r=e.h+e.g.length()-r;r>127;)t.push(127&r|128),r>>>=7,e.h++;t.push(r),e.h++}function Uo(e,t,r){if(null!=r)switch(ne(e,t,0),typeof r){case"number":e=e.g,Et(r),Je(e,R,O);break;case"bigint":r=$o(r,Qr,eh),Je(e.g,r.h,r.g);break;default:r=No(r),Je(e.g,r.h,r.g)}}function Er(e,t,r){ne(e,t,2),Xt(e.g,r.length),Wt(e,e.g.end()),Wt(e,r)}function en(e,t,r,n){null!=r&&(t=gi(e,t),n(r,e),mi(e,t))}function Bo(e){"string"==typeof e&&No(e)}function ke(){var e=class{constructor(){throw Error()}};return Object.setPrototypeOf(e,e.prototype),e}var _i=ke(),Go=ke(),vi=ke(),tn=ke(),yi=ke(),rn=ke(),sh=ke(),oh=ke(),nn=ke(),ah=ke(),sn=ke(),Ei=ke();function Ue(e,t,r){var n=e.A;ge&&ge in n&&(n=n[ge])&&delete n[t.g],t.h?t.o(e,t.h,t.g,r,t.j):t.o(e,t.g,r,t.j)}var f=class{constructor(e,t){this.A=co(e,t,void 0,2048)}toJSON(){return uo(this)}o(){var e=Wh,t=this.A,r=e.g,n=ge;if(Mt&&n&&null!=t[n]?.[r]&&Ot(E2,3),t=e.g,Ps&&ge&&void 0===Ps&&(n=(r=this.A)[ge])&&(n=n.ka))try{n(r,t,K2)}catch(i){ks(i)}return e.h?e.m(this,e.h,e.g,e.j):e.m(this,e.g,e.defaultValue,e.j)}clone(){var e=this.A,t=0|e[m];return ei(this,e,t)?Zn(this,e,!0):new this.constructor(Gt(e,t,!1))}};f.prototype[Dt]=Pt,f.prototype.toString=function(){return this.A.toString()};var zt=class{constructor(e,t,r){this.g=e,this.h=t,this.j=!!(e=_i)&&r===e||!1}};function on(e,t){return new zt(e,t,_i)}function jo(e,t,r,n,i){en(e,r,zo(t,n),i)}var Vo,Ho,hh=on(function(e,t,r,n,i){return 2===e.h&&(gr(e,si(t,n,r),i),!0)},jo),uh=on(function(e,t,r,n,i){return 2===e.h&&(gr(e,si(t,n,r),i),!0)},jo),an=Symbol(),hn=Symbol(),Ai=Symbol(),Ko=Symbol(),Xo=Symbol();function xt(e,t,r,n){var i=n[e];if(i)return i;(i={}).Ea=n,i.ca=function(p){switch(typeof p){case"boolean":return V2||=[0,void 0,!0];case"number":return p>0?void 0:0===p?H2||=[0,void 0]:[-p,void 0];case"string":return[0,p];case"object":return p}}(n[0]);var s=n[1],o=1;s&&s.constructor===Object&&(i.ia=s,"function"==typeof(s=n[++o])&&(i.wa=!0,Vo??=s,Ho??=n[o+1],s=n[o+=2]));for(var a={};s&&Array.isArray(s)&&s.length&&"number"==typeof s[0]&&s[0]>0;){for(var h=0;h<s.length;h++)a[s[h]]=s;s=n[++o]}for(h=1;void 0!==s;){let p;"number"==typeof s&&(h+=s,s=n[++o]);var l=void 0;if(s instanceof zt?p=s:(p=hh,o--),p?.j){s=n[++o],l=n;var u=o;"function"==typeof s&&(s=s(),l[u]=s),l=s}for(u=h+1,"number"==typeof(s=n[++o])&&s<0&&(u-=s,s=n[++o]);h<u;h++){let d=a[h];l?r(i,h,p,l,d):t(i,h,p,d)}}return n[e]=i}function Wo(e){return Array.isArray(e)?e[0]instanceof zt?e:[uh,e]:[e,void 0]}function zo(e,t){return e instanceof f?e.A:Array.isArray(e)?bt(e,t):void 0}function wi(e,t,r,n){var i=r.g;e[t]=n?(s,o,a)=>i(s,o,a,n):i}function bi(e,t,r,n,i){var s,o,a=r.g;e[t]=(h,l,u)=>a(h,l,u,o||=xt(hn,wi,bi,n).ca,s||=Ti(n),i)}function Ti(e){var t=e[Ai];if(null!=t)return t;var r=xt(hn,wi,bi,e);return e[Ai]=t=r.wa?(n,i)=>Vo(n,i,r):(n,i)=>{e:{Fo();try{for(;Io(i)&&4!=i.h;){let d=i.j,A=r[d];if(null==A){let T=r.ia;if(T){let z=T[d];if(z){let we=lh(z);null!=we&&(A=r[d]=we)}}}if(null==A||!A(i,n,d)){var s=i;let T=s.m;if(Yr(s),s.ra)var o=void 0;else{let z=s.g.g-T;s.g.g=T,o=So(s.g,z)}s=void 0;var h=d,l=o;l&&((s=n[ge]??(n[ge]=new Jn))[h]??(s[h]=[])).push(l)}}let p=Br(n);p&&(p.ka=r.Ea[Xo]);var u=!0;break e}catch(p){throw p instanceof RangeError?new SyntaxError:p}finally{Kt>0&&Kt--}u=void 0}return u},e[Xo]=ch.bind(e),t}function ch(e,t,r,n){var i=this[hn],s=this[Ai],o=bt(void 0,i.ca),a=Br(e);if(a){var h=!1,l=i.ia;if(l){if(i=(u,p,d)=>{if(0!==d.length)if(l[p])for(let A of d){u=xo(A);try{h=!0,s(o,u)}finally{Ro(u)}}else n?.(e,p,d)},null==t)Gr(a,i);else if(null!=a){let u=a[t];u&&i(a,t,u)}if(h){let u=0|e[m];if(2&u&&2048&u&&!r?.cb)throw Error();let p=$t(u),d=(A,T)=>{if(null!=ze(e,A,p)){if(1===r?.lb)return;throw Error()}null!=T&&(u=V(e,u,A,T,p)),delete a[A]};null==t?js(o,0|o[m],(A,T)=>{d(A,T)}):d(t,ze(o,t,p))}}}}function lh(e){var t=(e=Wo(e))[0].g;if(e=e[1]){let r=Ti(e),n=xt(hn,wi,bi,e).ca;return(i,s,o)=>t(i,s,o,n,r)}return t}function un(e,t,r){e[t]=r.h}function cn(e,t,r,n){var i,s,o=r.h;e[t]=(a,h,l)=>o(a,h,l,s||=xt(an,un,cn,n).ca,i||=Yo(n))}function Yo(e){var t=e[Ko];if(!t){let r=xt(an,un,cn,e);e[Ko]=t=(n,i)=>qo(n,i,r)}return t}function qo(e,t,r){js(e,0|e[m],(n,i)=>{if(null!=i){var s=function(o,a){var h=o[a];if(h)return h;if((h=o.ia)&&(h=h[a])){var l=(h=Wo(h))[0].h;if(h=h[1]){let u=Yo(h),p=xt(an,un,cn,h).ca;h=o.wa?Ho(p,u):(d,A,T)=>l(d,A,T,p,u)}else h=l;return o[a]=h}}(r,n);s?s(t,i,n):n<500||Ot(Bn,3)}}),(e=Br(e))&&Gr(e,(n,i,s)=>{for(Wt(t,t.g.end()),n=0;n<s.length;n++)Wt(t,Un(s[n])||new Uint8Array(0))})}var dh=q(0);function Ze(e,t,r){if(Array.isArray(t)){var n=0|t[m];if(4&n)return t;for(var i=0,s=0;i<t.length;i++){let o=e(t[i]);null!=o&&(t[s++]=o)}return s<i&&(t.length=s),e=1|n,r&&(e=-1537&e|4),e!==n&&Y(t,e),r&&2&e&&Object.freeze(t),t}}var Jo=(e,t)=>{var r=new class{constructor(){this.j=[],this.h=0,this.g=new class{constructor(){this.g=[]}length(){return this.g.length}end(){var e=this.g;return this.g=[],e}}}};qo(e.A,r,xt(an,un,cn,t)),Wt(r,r.g.end()),e=new Uint8Array(r.h);var n=(t=r.j).length,i=0;for(let s=0;s<n;s++){let o=t[s];e.set(o,i),i+=o.length}return r.j=[e],e};function K(e,t,r){return new zt(e,t,r)}function Qe(e,t,r){return new zt(e,t,r)}function J(e,t,r){V(e,0|e[m],t,r,$t(0|e[m]))}var fh=on(function(e,t,r,n,i){if(2!==e.h)return!1;if(e=be(e=gr(e,bt([void 0,void 0],n),i)),i=$t(n=0|t[m]),2&n)throw Error();var s=ze(t,r,i);if(s instanceof We)2&s.M?((s=s.ea()).push(e),V(t,n,r,s,i)):s.gb(e);else if(Array.isArray(s)){var o=0|s[m];8192&o||Y(s,o|=8192),2&o&&V(t,n,r,s=vo(s),i),s.push(e)}else V(t,n,r,ur([e]),i);return!0},function(e,t,r,n,i){if(t instanceof We)t.forEach((s,o)=>{en(e,r,bt([o,s],n),i)});else if(Array.isArray(t)){for(let s=0;s<t.length;s++){let o=t[s];Array.isArray(o)&&en(e,r,bt(o,n),i)}ur(t)}});function Zo(e,t,r){null!=(t=xe(t))&&(ne(e,r,5),e=e.g,Vn(t),yr(e,R))}function ki(e,t,r){null!=(t=Wn(t))&&(Bo(t),Uo(e,r,t))}function Qo(e,t,r){null!=(t=wt(t))&&null!=t&&(ne(e,r,0),vr(e.g,t))}function ea(e,t,r){null!=(t=null==t||"boolean"==typeof t?t:"number"==typeof t?!!t:void 0)&&(ne(e,r,0),e.g.g.push(t?1:0))}function ta(e,t,r){null!=(t=ee(t))&&Er(e,r,Ts(t))}function ra(e,t,r,n,i){en(e,r,zo(t,n),i)}function Si(e,t,r){null!=(t=so(t))&&Er(e,r,Xr(t,!0).buffer)}function na(e,t,r){null!=(t=Js(t))&&null!=t&&(ne(e,r,0),Xt(e.g,t))}function ia(e,t,r){null!=(t=wt(t))&&(t=parseInt(t,10),ne(e,r,0),vr(e.g,t))}function sa(e,t,r){return(5===e.h||2===e.h)&&(t=ut(t,0|t[m],r),2==e.h?mr(e,zr,t):t.push(zr(e.g)),!0)}function oa(e,t,r){return 0===e.h&&(J(t,r,Wr(e.g)),!0)}function aa(e,t,r){return(0===e.h||2===e.h)&&(t=ut(t,0|t[m],r),2==e.h?mr(e,qe,t):t.push(qe(e.g)),!0)}function ha(e,t,r){return 2===e.h&&(J(t,r,(e=fi(e))===_t()?void 0:e),!0)}var ua=K(function(e,t,r){if(1!==e.h)return!1;var n=e.g;e=li(n);var i=li(n);n=2*(i>>31)+1;var s=i>>>20&2047;return e=4294967296*(1048575&i)+e,J(t,r,2047==s?e?NaN:n*(1/0):0==s?5e-324*n*e:n*Math.pow(2,s-1075)*(e+4503599627370496)),!0},function(e,t,r){null!=(t=xe(t))&&(ne(e,r,1),e=e.g,(r=Xs||=new DataView(new ArrayBuffer(8))).setFloat64(0,+t,!0),R=r.getUint32(0,!0),O=r.getUint32(4,!0),yr(e,R),yr(e,O))},ah),j=K(function(e,t,r){return 5===e.h&&(J(t,r,zr(e.g)),!0)},Zo,nn),ph=Qe(sa,function(e,t,r){if(null!=(t=Ze(xe,t,!0)))for(let o=0;o<t.length;o++){var n=e,s=t[o];null!=s&&(ne(n,r,5),n=n.g,Vn(s),yr(n,R))}},nn),Li=Qe(sa,function(e,t,r){if(null!=(t=Ze(xe,t,!0))&&t.length){ne(e,r,2),Xt(e.g,4*t.length);for(let n=0;n<t.length;n++)r=e.g,Vn(t[n]),yr(r,R)}},nn),ca=K(function(e,t,r){return 5===e.h&&(J(t,r,0===(e=zr(e.g))?void 0:e),!0)},Zo,nn),Ar=K(function(e,t,r){return oa(e,t,r)},ki,rn),P=K(function(e,t,r){return oa(e,t,r)},ki,rn),gh=Qe(function(e,t,r){return 0!==e.h&&2!==e.h?e=!1:(t=ut(t,0|t[m],r),2==e.h?mr(e,Wr,t):t.push(Wr(e.g)),e=!0),e},function(e,t,r){if(null!=(t=Ze(Wn,t,!1)))for(let n=0;n<t.length;n++)Uo(e,r,t[n])},rn),ln=K(function(e,t,r){return 0!==e.h?t=!1:(J(t,r,(e=Wr(e.g))===dh?void 0:e),t=!0),t},ki,rn),dn=K(function(e,t,r){return 0!==e.h?e=!1:(J(t,r,ui(e.g,F2)),e=!0),e},function(e,t,r){if(null!=(t=function(n){if(null==n)return n;var i=typeof n;if("bigint"===i)return String(Xn(64,n));if(Bt(n)){if("string"===i)return i=st(Number(n)),Me(i)&&i>=0?n=String(i):(-1!==(i=n.indexOf("."))&&(n=n.substring(0,i)),n=eo(n)),n;if("number"===i)return to(n)}}(t))&&("string"==typeof t&&Co(t),null!=t))switch(ne(e,r,0),typeof t){case"number":e=e.g,Et(t),Je(e,R,O);break;case"bigint":r=$o(t,Jr,Z2),Je(e.g,r.h,r.g);break;default:r=Co(t),Je(e.g,r.h,r.g)}},sh),L=K(function(e,t,r){return 0===e.h&&(J(t,r,qe(e.g)),!0)},Qo,tn),la=Qe(aa,function(e,t,r){if(null!=(t=Ze(wt,t,!0)))for(let o=0;o<t.length;o++){var n=e,s=t[o];null!=s&&(ne(n,r,0),vr(n.g,s))}},tn),Yt=Qe(aa,function(e,t,r){if(null!=(t=Ze(wt,t,!0))&&t.length){r=gi(e,r);for(let n=0;n<t.length;n++)vr(e.g,t[n]);mi(e,r)}},tn),Rt=K(function(e,t,r){return 0===e.h&&(J(t,r,0===(e=qe(e.g))?void 0:e),!0)},Qo,tn),b=K(function(e,t,r){return 0===e.h&&(J(t,r,ci(e.g)),!0)},ea,Go),lt=K(function(e,t,r){return 0===e.h&&(J(t,r,!1===(e=ci(e.g))?void 0:e),!0)},ea,Go),te=Qe(function(e,t,r){return 2===e.h&&(e=di(e),ut(t,0|t[m],r).push(e),!0)},function(e,t,r){if(null!=(t=Ze(ee,t,!0)))for(let o=0;o<t.length;o++){var s=t[o];null!=s&&Er(e,r,Ts(s))}},vi),et=K(function(e,t,r){return 2===e.h&&(J(t,r,""===(e=di(e))?void 0:e),!0)},ta,vi),c=K(function(e,t,r){return 2===e.h&&(J(t,r,di(e)),!0)},ta,vi),M=function(e,t,r=_i){return new zt(e,t,r)}(function(e,t,r,n,i){return 2===e.h&&(n=bt(void 0,n),ut(t,0|t[m],r).push(n),gr(e,n,i),!0)},function(e,t,r,n,i){if(Array.isArray(t)){for(let s=0;s<t.length;s++)ra(e,t[s],r,n,i);1&(e=0|t[m])||Y(t,1|e)}}),S=on(function(e,t,r,n,i,s){if(2!==e.h)return!1;var o=0|t[m];return Eo(t,o,s,r,$t(o)),gr(e,t=si(t,n,r),i),!0},ra),qt=K(function(e,t,r){return 2===e.h&&(J(t,r,fi(e)),!0)},Si,sn),da=Qe(function(e,t,r){return 2===e.h&&(e=fi(e),ut(t,0|t[m],r).push(e),!0)},function(e,t,r){if(null!=(t=Ze(so,t,!1)))for(let o=0;o<t.length;o++){var s=t[o];null!=s&&Er(e,r,Xr(s,!0).buffer)}},sn),fa=K(function(e,t,r){return 0===e.h&&(J(t,r,$e(e.g)),!0)},na,yi),mh=Qe(function(e,t,r){return(0===e.h||2===e.h)&&(t=ut(t,0|t[m],r),2==e.h?mr(e,$e,t):t.push($e(e.g)),!0)},function(e,t,r){if(null!=(t=Ze(Js,t,!0)))for(let o=0;o<t.length;o++){var n=e,s=t[o];null!=s&&(ne(n,r,0),Xt(n.g,s))}},yi),_h=K(function(e,t,r){return 0===e.h&&(J(t,r,0===(e=$e(e.g))?void 0:e),!0)},na,yi),_=K(function(e,t,r){return 0===e.h&&(J(t,r,qe(e.g)),!0)},ia,Ei),fn=K(function(e,t,r){return 0===e.h&&(J(t,r,0===(e=qe(e.g))?void 0:e),!0)},ia,Ei),vh=K(function(e,t,r){return 0!==e.h?e=!1:(J(t,r,ui(e.g,(i,s)=>{var o=-(1&i);return zs(i=(i>>>1|s<<31)^o,s>>>1^o)})),e=!0),e},function(e,t,r){if(null!=(t=Wn(t))&&(Bo(t),null!=t))switch(ne(e,r,0),typeof t){case"number":e=e.g,t=(r=t)<0,jn(r=2*Math.abs(r)),r=R;let n=O;t&&(0==r?0==n?n=r=4294967295:(n--,r=4294967295):r--),Je(e,R=r,O=n);break;case"bigint":e=e.g,t=t<<BigInt(1)^t>>BigInt(63),R=Number(BigInt.asUintN(32,t)),O=Number(BigInt.asUintN(32,t>>BigInt(32))),Je(e,R,O);break;default:!function rh(e,t){var n;cr(t),((r,n)=>{Je(e,r>>>0,n>>>0)})(R<<1^(n=O>>31),(O<<1|R>>>31)^n)}(e.g,t)}},oh);class yh{constructor(t,r){var n=_e;this.g=t,this.h=r,this.m=C,this.o=y,this.defaultValue=void 0,this.j=null!=n.jb?Vs:void 0}register(){Cr(this)}}function Be(e,t){return new yh(e,t)}function dt(e,t){return(r,n)=>{e:{let s={ma:!0};n&&Object.assign(s,n),r=xo(r,void 0,void 0,s);try{let o=new e,a=o.A;Ti(t)(a,r);var i=o;break e}catch(o){throw o instanceof RangeError?new SyntaxError:o}finally{Ro(r)}i=void 0}return i}}function xi(e){return t=>Jo(t,e)}function wr(e){return function(){return Jo(this,e)}}var Ri,Eh=[0,qt,da,b,c],Ah=[0,et,[0,fn,[0,ln,Rt],fn,-1,[0,_],fn,-1],K(ha,Si,sn)],pa=class extends f{constructor(e){super(e)}},ga=[0,et,K(ha,function(e,t,r){if(null!=t){if(t instanceof f){let n=t.mb;return void(n?(t=n(t),null!=t&&Er(e,r,Xr(t,!0).buffer)):Ot(Bn,3))}if(Array.isArray(t))return void Ot(Bn,3)}Si(e,t,r)},sn)],wh=[0,1,[0,12,L,10,b],[0,7,[0,L,-1]]],ma=globalThis.trustedTypes,bh=class{constructor(e){this.g=e}toString(){return this.g+""}};function _a(e){var t;return void 0===Ri&&(Ri=function(){var r=null;if(!ma)return r;try{let n=i=>i;r=ma.createPolicy("goog#html",{createHTML:n,createScript:n,createScriptURL:n})}catch{}return r}()),e=(t=Ri)?t.createScriptURL(e):e,new bh(e)}function pn(e,...t){if(0===t.length)return _a(e[0]);var r=e[0];for(let n=0;n<t.length;n++)r+=encodeURIComponent(t[n])+e[n+1];return _a(r)}var va=[0,L,_,b,-1,Yt,_,-1,b,-1],ya=[0,_,-1,b],Ii=class extends f{constructor(e){super(e)}},Ea=[0,b,c,b,_,-1,Qe(function(e,t,r){return(0===e.h||2===e.h)&&(t=ut(t,0|t[m],r),2==e.h?mr(e,Y2,t):t.push(qe(e.g)),!0)},function(e,t,r){if(null!=(t=Ze(wt,t,!0))&&t.length){r=gi(e,r);for(let n=0;n<t.length;n++)vr(e.g,t[n]);mi(e,r)}},Ei),c,-1,[0,b,-1],_,b,-1,ya],Aa=[0,3,b,-1,2,[0,[2],L,S,[0,fa]],[0,_,b,_,b,_,4,[0,b,c,-1,b]],[0,[3,4],c,-1,S,[0,L],S,[0,_,-1]],[0]],wa=[0,c,-2],ba=class extends f{constructor(e){super(e)}},Ta=[0],Th=class extends f{constructor(e){super(e)}},ka=[0,L,b,1,b,-4],_e=class extends f{constructor(e){super(e,2)}},Z={};Z[336783863]=[0,c,b,-1,L,[0,[1,2,3,4,5,6,7,8,9],S,Ta,S,Ea,S,wa,S,ka,S,va,S,[0,c,-2],S,[0,c,_],S,Aa,S,ya],[0,c],b,[0,[1,3],[2,4],S,[0,Yt],-1,S,[0,te],-1,M,[0,c,-1]],c];var Sa=[0,ln,-1,lt,-3,ln,Yt,et,Rt,ln,-1,lt,Rt,lt,-2,et];function $(e,t){Kr(e,3,t)}function x(e,t){Kr(e,4,t)}var de=class extends f{constructor(e){super(e,500)}v(e){return y(this,0,7,e)}},br=[-1,{}],La=[0,c,1,br],xa=[0,c,te,br];function Se(e,t){pr(e,1,de,t)}function U(e,t){Kr(e,10,t)}function N(e,t){Kr(e,15,t)}var ve=class extends f{constructor(e){super(e,500)}v(e){return y(this,0,1001,e)}},Ra=[-500,M,[-500,et,-1,te,-3,[-2,Z,b],M,ga,Rt,-1,La,xa,M,[0,et,lt],et,Sa,Rt,te,987,te],4,M,[-500,c,-1,[-1,{}],998,c],M,[-500,c,te,-1,[-2,{},b],997,te,-1],Rt,M,[-500,c,te,br,998,te],te,Rt,La,xa,M,[0,et,-1,br],te,-2,Sa,et,-1,lt,[0,lt,_h],978,br,M,ga];ve.prototype.g=wr(Ra);var kh=dt(ve,Ra),Sh=class extends f{constructor(e){super(e)}},Ia=class extends f{constructor(e){super(e)}g(){return Ye(this,Sh,1)}},Fa=[0,M,[0,L,j,c,-1]],gn=dt(Ia,Fa),Lh=class extends f{constructor(e){super(e)}},xh=class extends f{constructor(e){super(e)}},Fi=class extends f{constructor(e){super(e)}j(){return C(this,Lh,2)}g(){return Ye(this,xh,5)}},Ca=dt(class extends f{constructor(e){super(e)}},[0,te,Yt,Li,[0,_,[0,L,-3],[0,j,-3],[0,L,-1,[0,M,[0,L,-2]]],M,[0,j,-1,c,j]],c,-1,P,M,[0,L,j],te,P]),Na=class extends f{constructor(e){super(e)}},Jt=dt(class extends f{constructor(e){super(e)}},[0,M,[0,j,-4]]),Oa=class extends f{constructor(e){super(e)}},Tr=dt(class extends f{constructor(e){super(e)}},[0,M,[0,j,-4]]),Rh=class extends f{constructor(e){super(e)}},Ih=[0,L,-1,Li,_],Ma=class extends f{constructor(e){super(e)}};Ma.prototype.g=wr([0,j,-4,P]);var Fh=class extends f{constructor(e){super(e)}},Ch=dt(class extends f{constructor(e){super(e)}},[0,M,[0,1,L,c,Fa],P]),Da=class extends f{constructor(e){super(e)}},Nh=class extends f{constructor(e){super(e)}g(){return G(this,1,void 0,_o)??_t()}},Oh=class extends f{constructor(e){super(e)}},Ci=[1,2],Mh=dt(class extends f{constructor(e){super(e)}},[0,M,[0,Ci,S,[0,Li],S,[0,qt],L,c],P]),Ni=class extends f{constructor(e){super(e)}},Pa=[0,c,L,j,te,-1],$a=class extends f{constructor(e){super(e)}},Dh=[0,b,-1],mn=class extends f{constructor(e){super(e)}g(){return go(this,Ii,2,It)}},It=[1,2,3,4,5,6],_n=class extends f{constructor(e){super(e)}g(){return null!=G(this,1,void 0,_o)}j(){return null!=ee(G(this,2))}},B=class extends f{constructor(e){super(e)}},Ua=[0,qt,c,[0,L,P,-1],[0,dn,P]],X=[0,Ua,b,[0,It,S,ka,S,Ea,S,va,S,Ta,S,wa,S,Aa],_],Ph=xi(X),vn=class extends f{constructor(e){super(e)}},Oi=[0,X,j,-1,L],$h=Be(502141897,vn);Z[502141897]=Oi;var Uh=dt(class extends f{constructor(e){super(e)}},[0,[0,_,-1,ph,mh],Ih]),Ba=class extends f{constructor(e){super(e)}},Ga=class extends f{constructor(e){super(e)}},Mi=[0,X,j,[0,X],b],Bh=Be(508968150,Ga);Z[508968150]=[0,X,Oi,Mi,j,[0,[0,Ua]]],Z[508968149]=Mi;var Zt=class extends f{constructor(e){super(e)}j(){return C(this,Ni,2)}g(){w(this,2)}},ja=[0,X,Pa];Z[478825465]=ja;var Gh=class extends f{constructor(e){super(e)}},Va=class extends f{constructor(e){super(e)}},Di=class extends f{constructor(e){super(e)}},Pi=class extends f{constructor(e){super(e)}},Ha=class extends f{constructor(e){super(e)}},Ka=[0,X,[0,X],ja,-1],Xa=[0,X,j,L],$i=[0,X,j],Wa=[0,X,Xa,$i,j],jh=Be(479097054,Ha);Z[479097054]=[0,X,Wa,Ka],Z[463370452]=Ka,Z[464864288]=Xa;var Vh=Be(462713202,Pi);Z[462713202]=Wa,Z[474472470]=$i;var Hh=class extends f{constructor(e){super(e)}},za=class extends f{constructor(e){super(e)}},Ya=class extends f{constructor(e){super(e)}},qa=class extends f{constructor(e){super(e)}},Ui=[0,X,j,-1,L],Bi=[0,X,j,b];qa.prototype.g=wr([0,X,$i,[0,X],Oi,Mi,Ui,Bi]);var Ja=class extends f{constructor(e){super(e)}},Kh=Be(456383383,Ja);Z[456383383]=[0,X,Pa];var Za=class extends f{constructor(e){super(e)}},Xh=Be(476348187,Za);Z[476348187]=[0,X,Dh];var Qa=class extends f{constructor(e){super(e)}},e1=class extends f{constructor(e){super(e)}},t1=[0,_,-1],Wh=Be(458105876,class extends f{constructor(e){super(e)}g(){var e=this.A,t=0|e[m],r=le(this,t);return e=function(n,i,s,o){var a=e1;!o&&jt(n)&&(s=0|(i=n.A)[m]);var h=ze(i,2);if(n=!1,null==h){if(o)return ho();h=[]}else if(h.constructor===We){if(!(2&h.M)||o)return h;h=h.ea()}else Array.isArray(h)?n=!!(2&h[m]):h=[];if(o){if(!h.length)return ho();n||(n=!0,hr(h))}else n&&(n=!1,ur(h),h=vo(h));return!n&&32&s&&ar(h,32),s=V(i,s,2,o=new We(h,a,O2,void 0)),n||ot(i,s),o}(this,e,t,r),!r&&e1&&(e.Fa=!0),e}});Z[458105876]=[0,t1,fh,[!0,P,[0,c,-1,te]],[0,Yt,b,_],b];var Gi=class extends f{constructor(e){super(e)}},r1=Be(458105758,Gi);Z[458105758]=[0,X,c,t1];var zh=class extends f{constructor(e){super(e)}},Yh=class extends f{constructor(e){super(e)}},qh=class extends f{constructor(e){super(e)}},Jh=xi([0,M,[0,fn,M,[0,ca,-1],lt]]),ji=class extends f{constructor(e){super(e)}},n1=[0,ca,-1,lt],Zh=class extends f{constructor(e){super(e)}},i1=class extends f{constructor(e){super(e)}},Vi=[1,2];i1.prototype.g=wr([0,Vi,S,n1,S,[0,M,n1]]);var s1=class extends f{constructor(e){super(e)}},Qh=Be(443442058,s1);Z[443442058]=[0,X,c,L,j,te,-1,b,j],Z[514774813]=Ui;var o1=class extends f{constructor(e){super(e)}},eu=Be(516587230,o1);function Hi(e,t){return t=t?t.clone():new Ni,void 0!==e.displayNamesLocale?w(t,1,Xe(e.displayNamesLocale)):void 0===e.displayNamesLocale&&w(t,1),void 0!==e.maxResults?Pe(t,2,e.maxResults):"maxResults"in e&&w(t,2),void 0!==e.scoreThreshold?E(t,3,e.scoreThreshold):"scoreThreshold"in e&&w(t,3),void 0!==e.categoryAllowlist?Hr(t,4,e.categoryAllowlist):"categoryAllowlist"in e&&w(t,4),void 0!==e.categoryDenylist?Hr(t,5,e.categoryDenylist):"categoryDenylist"in e&&w(t,5),t}function a1(e){var t=Number(e);return Number.isSafeInteger(t)?t:String(e)}function Ki(e,t=-1,r=""){return{categories:e.map(n=>({index:Te(n,1)??0??-1,score:H(n,2)??0,categoryName:ee(G(n,3))??""??"",displayName:ee(G(n,4))??""??""})),headIndex:t,headName:r}}function h1(e){var t=St(e,3,xe,kt()),r=St(e,2,wt,kt()),n=St(e,1,ee,kt()),i=St(e,9,ee,kt()),s={categories:[],keypoints:[]};for(let o=0;o<t.length;o++)s.categories.push({score:t[o],index:r[o]??-1,categoryName:n[o]??"",displayName:i[o]??""});if((t=C(e,Fi,4)?.j())&&(s.boundingBox={originX:Te(t,1,at)??0,originY:Te(t,2,at)??0,width:Te(t,3,at)??0,height:Te(t,4,at)??0,angle:0}),C(e,Fi,4)?.g().length)for(let o of C(e,Fi,4).g())s.keypoints.push({x:G(o,1,at,xe)??0,y:G(o,2,at,xe)??0,score:G(o,4,at,xe)??0,label:ee(G(o,3,at))??""});return s}function yn(e){var t=[];for(let r of Ye(e,Oa,1))t.push({x:H(r,1)??0,y:H(r,2)??0,z:H(r,3)??0,visibility:H(r,4)??0});return t}function kr(e){var t=[];for(let r of Ye(e,Na,1))t.push({x:H(r,1)??0,y:H(r,2)??0,z:H(r,3)??0,visibility:H(r,4)??0});return t}function u1(e){return Array.from(e,t=>t>127?t-256:t)}function c1(e,t){if(e.length!==t.length)throw Error(`Cannot compute cosine similarity between embeddings of different sizes (${e.length} vs. ${t.length}).`);var r=0,n=0,i=0;for(let s=0;s<e.length;s++)r+=e[s]*t[s],n+=e[s]*e[s],i+=t[s]*t[s];if(n<=0||i<=0)throw Error("Cannot compute cosine similarity on embedding with 0 norm.");return r/Math.sqrt(n*i)}Z[516587230]=[0,X,Ui,Bi,j],Z[518928384]=Bi;var En,ru=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]);function l1(e){return Xi.apply(this,arguments)}function Xi(){return(Xi=(0,re.A)(function*(e){if(e)return!0;if(void 0===En)try{yield WebAssembly.instantiate(ru),En=!0}catch{En=!1}return En})).apply(this,arguments)}function An(e,t,r){return Wi.apply(this,arguments)}function Wi(){return(Wi=(0,re.A)(function*(e,t,r){return{wasmLoaderPath:`${t}/${e}_${r=`wasm${r?"_module":""}${(yield l1(r))?"":"_nosimd"}_internal`}.js`,wasmBinaryPath:`${t}/${e}_${r}.wasm`}})).apply(this,arguments)}var Qt=class{};function d1(e){return w(new zi,1,Ke(e))}Qt.forVisionTasks=function(e,t=!1){return An("vision",e??pn``,t)},Qt.forTextTasks=function(e,t=!1){return An("text",e??pn``,t)},Qt.forGenAiTasks=function(e,t=!1){return An("genai",e??pn``,t)},Qt.forAudioTasks=function(e,t=!1){return An("audio",e??pn``,t)},Qt.isSimdSupported=function(e=!1){return l1(e)};var zi=class extends f{constructor(e){super(e)}},nu=class extends f{constructor(e){super(e)}},f1=[0,_,2,dn,-2,P,M,[0,_,P]],iu=class extends f{constructor(e){super(e)}},su=class extends f{constructor(e){super(e)}};function Yi(e,t){return w(e,1,Ke(t))}function qi(e,t){return w(e,2,Ke(t))}var Ji=class extends f{constructor(e){super(e)}},wn=[3,4,5,6,7],ou=class extends f{constructor(e){super(e)}},p1=class extends f{constructor(e){super(e)}};p1.prototype.g=wr([0,[0,_,c,-3,_],[0,wn,_,-1,S,[0,_,c,dn],S,f1,S,[0,1,f1],S,[0,_],S,[0,_,c,dn]]]);var hu=class extends f{constructor(e){super(e,37)}},g1=[-4,{},wh,_,Ah],m1=[0,c,_,1,c,-1,_,1,_,1,P],_1=[0,_,c,-2],v1=[0,c,_],y1=[0,c,_],E1=[0,b,-3],A1=[0,_,c,-1,P,L,-1,c,-5,M,[0,c,-4],-1,b,[0,b,-3],_],uu=class extends f{constructor(e){super(e,19)}},cu=xi([-19,{},[0,_,1,[0,c,-6,P,L,c,-1,P],1,[0,c,1,c,-5],c,-1,[0,_,c,-8],[0,c,-3],[0,c,_,c,-2],[0,c,-1,_,c,-1,_,c,-1,[0,M,[0,c,-1
1],b,c,-5],[0,_,b,L,-2]],P,[0,c,-3,P,L,c,-1],[0,_,c,-1],[0,c,-9],[0,c,-6,_,c,1,c,b,_,-1,b,c,-2,_,c,_,c,L,-1],1,[0,_],1,[0,c,-4],1,m1,[0,[1,2,3,4,5,6],S,m1,S,v1,S,y1,S,[0,_],S,A1,S,_1],v1,y1,A1,[0,[0,_,c,-1,P,L,-1,c,-4,M,[0,c,-4],-1,1,E1],[0,_,c,-1,P,L,-1,c,-4,E1]],_1,[0,c,[0,L,-3,_],_,-2,[0,L,-1],b],4,[0,c,_,c,-1,P,_,c,-1,_,L,-1]],_,M,[-37,{},Ar,c,M,[0,c,-1],qt,1,qt,[0,te,-1,la,gh,-1],c,[0,L,c,-1],b,L,P,c,-1,vh,Eh,Ar,qt,_,la,P,-1,[0,_,-1],c,b,c,Yt,c,-1,ua,1,ua,g1,b,[0,_,[0,j,L,-2],[0,j]],[0,_,P]],Ar,da,c,-1,Ar,_,-1,[0,b,-1,_,b],[0,P,-1,c],[0,Ar,b,P],P,1,fa,1,g1]);class w1{constructor(){this.aa=this.U=this.X=this.R=this.V=this.T=this.P=0}}function Zi(e,t){var r=new p1;r=y(r,0,1,e.B),r=y(r,0,2,t),t=w(t=new hu,6,Nr(r=r.g(),!1)),(e=e.l).error||e.h.push(t)}function b1(e,t){var r={P:t.P-e.j.P,T:t.T-e.j.T,V:t.V-e.j.V,R:t.R-e.j.R,X:t.X-e.j.X,U:t.U,aa:t.aa},n=qi(Yi(new Ji,e.C),1);r=T1(e,r),Zi(e,n=De(n,4,wn,r)),e.j=t}function T1(e,t){var r=new nu;return e=Vr(e=hi(e=w(r,1,Ke(e.D)),7,t.R),5,t.U),e=Vr(e,6,t.aa),t.V>0&&Vr(e,4,t.X/t.V),0!==t.P&&(r=hi(r=d1(3),2,t.P),pr(e,8,zi,r)),0!==t.T&&(t=hi(r=d1(4),2,t.T),pr(e,8,zi,t)),e}var du=class{constructor(e,t,r){this.u=performance.now(),this.m=performance.now(),this.h=new Map,this.o=0,this.g=new w1,this.j=new w1,this.l=new class{constructor(e){this.h=[],this.m=new class{constructor(){this.g=typeof AbortController<"u"}send(e,t,r){var n=this;return(0,re.A)(function*(){var i=n.g?new AbortController:void 0,s=i&&e.la>0?setTimeout(()=>{i.abort()},e.la):void 0;try{let o=yield fetch(e.url,{method:e.bb,headers:{...e.ab},...e.body&&{body:e.body},...e.withCredentials&&{credentials:"include"},signal:e.la&&i?i.signal:null});200===o.status?t?.(yield o.text()):r?.(o.status)}catch(o){r?.("AbortError"===o?.name?408:400)}finally{clearTimeout(s)}})()}},this.j=e??"",this.g=setInterval(()=>{this.flush()},6e4)}close(){void 0!==this.g&&(clearInterval(this.g),this.g=void 0),this.flush()}flush(e,t){if(this.error)t?.("net-send-failed");else if(0===this.h.length)e?.();else{var r=this.h;this.h=[],n=r,r=oi(w(new uu,2,Ke(1786)),3,n),r=cu(r),this.m.send({url:"https://odml.pa.googleapis.com/v1/log",bb:"POST",la:1e4,body:r,hb:2,ab:{"Content-Type":"application/x-protobuf","x-goog-api-key":this.j},withCredentials:!1},()=>{e?.()},n=>{this.error=Error(`Logging failed with HTTP error: ${n}`),this.h=[],void 0!==this.g&&(clearInterval(this.g),this.g=void 0),t?.("net-send-failed",n)})}var n}}(r),this.C=function(n){switch(n){case"AudioClassifier":return 4;case"AudioEmbedder":return 5;case"TextClassifier":return 6;case"TextEmbedder":return 7;case"GestureRecognizer":return 8;case"HandDetector":return 9;case"HandLandmarker":return 10;case"ImageClassifier":return 11;case"ImageEmbedder":return 12;case"ImageSegmenter":return 13;case"ObjectDetector":return 14;case"FaceDetector":return 15;case"FaceLandmarker":return 16;case"InteractiveSegmenter":case"InteractiveSegmenterLegacy":return 18;case"HolisticLandmarker":return 20;case"LlmInference":return 21;case"LanguageDetector":return 22;case"PoseLandmarker":return 23;default:return 0}}(e),this.D=function(n){switch(n){case"IMAGE":return 11;case"VIDEO":return 12;case"LIVE_STREAM":return 13;case"AUDIO_CLIPS":return 14;case"AUDIO_STREAM":return 15;default:return 10}}(t),e=new ou,typeof window>"u"?t=0:(t=navigator.userAgent,t=/Android/i.test(t)?1:/iPhone|iPad|iPod/i.test(t)?2:/Windows/i.test(t)?5:/Macintosh/i.test(t)?4:/Linux/i.test(t)?3:0),e=w(e,1,Ke(t)),e=w(e,2,Xe("")),e=w(e,3,Xe("")),e=w(e,4,Xe("1.0.1")),e=w(e,5,Xe("")),this.B=w(e,6,Ke(4))}ya(){var e=new su;e=Vr(e=w(e,1,Ke(this.D)),3,performance.now()-this.u),Zi(this,e=De(qi(Yi(new Ji,this.C),0),3,wn,e)),this.m=performance.now()}za(e){var t=this.h.get(e);if(void 0!==t&&(this.h.delete(e),e=performance.now()-t,++this.g.V,this.g.X+=e,this.g.U=Math.max(this.g.U,e),this.o=Math.max(this.o,e),performance.now()>this.m+3e4)){for(let[r,n]of this.h.entries())e=r,n<t&&(this.g.R++,this.h.delete(e));t={...this.g,aa:performance.now()-this.m},this.g.U=0,this.m=performance.now(),b1(this,t)}}xa(){var e={...this.g,R:this.g.R+this.h.size,U:this.o,aa:performance.now()-this.u};b1(this,e);var t=new iu;t=y(t,0,2,e=T1(this,e)),Zi(this,t=De(e=qi(Yi(new Ji,this.C),2),5,wn,t))}close(){var e=this.l;"function"==typeof e.close?e.close():e.flush()}};function Qi(){var e=navigator;return typeof OffscreenCanvas<"u"&&(!function(t=navigator){return(t=t.userAgent).includes("Safari")&&!t.includes("Chrome")}(e)||!!((e=e.userAgent.match(/Version\/([\d]+).*Safari/))&&e.length>=1&&Number(e[1])>=17))}function k1(e){return es.apply(this,arguments)}function es(){return(es=(0,re.A)(function*(e){if("function"!=typeof importScripts){let t=document.createElement("script");return t.src=e.toString(),t.crossOrigin="anonymous",new Promise((r,n)=>{t.addEventListener("load",()=>{r()},!1),t.addEventListener("error",i=>{n(i)},!1),document.body.appendChild(t)})}try{importScripts(e.toString())}catch(t){if(!(t instanceof TypeError))throw t;{let r=self.import;r?yield r(e.toString()):yield Ct(1527)(e.toString())}}})).apply(this,arguments)}function ts(e){return void 0!==e.videoWidth?[e.videoWidth,e.videoHeight]:void 0!==e.naturalWi
vendor: 10,390 bytes, line 1
1dth?[e.naturalWidth,e.naturalHeight]:void 0!==e.displayWidth?[e.displayWidth,e.displayHeight]:[e.width,e.height]}function v(e,t,r){e.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target"),r(t=e.i.stringToNewUTF8(t)),e.i._free(t)}function S1(e,t,r){if(!e.i.canvas)throw Error("No OpenGL canvas configured.");if(r?e.i._bindTextureToStream(r):e.i._bindTextureToCanvas(),!(r=e.i.canvas.getContext("webgl2")||e.i.canvas.getContext("webgl")))throw Error("Failed to obtain WebGL context from the provided canvas. `getContext()` should only be invoked with `webgl` or `webgl2`.");e.i.gpuOriginForWebTexturesIsBottomLeft&&r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!0),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,t),e.i.gpuOriginForWebTexturesIsBottomLeft&&r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1);var[n,i]=ts(t);return!e.j||n===e.i.canvas.width&&i===e.i.canvas.height||(e.i.canvas.width=n,e.i.canvas.height=i),[n,i]}function L1(e,t,r){e.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target");var n=new Uint32Array(t.length);for(let i=0;i<t.length;i++)n[i]=e.i.stringToNewUTF8(t[i]);t=e.i._malloc(4*n.length),e.i.HEAPU32.set(n,t>>2),r(t);for(let i of n)e.i._free(i);e.i._free(t)}function Ge(e,t,r){e.i.simpleListeners=e.i.simpleListeners||{},e.i.simpleListeners[t]=r}function ft(e,t,r){var n=[];e.i.simpleListeners=e.i.simpleListeners||{},e.i.simpleListeners[t]=(i,s,o)=>{s?(r(n,o),n=[]):n.push(i)}}var x1=class{constructor(e,t){this.j=!0,this.i=e,this.g=null,this.h=0,this.m="function"==typeof this.i._addIntToInputStream,void 0!==t?this.i.canvas=t:Qi()?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"))}initializeGraph(e){var t=this;return(0,re.A)(function*(){var r=yield(yield fetch(e)).arrayBuffer();e=!(e.endsWith(".pbtxt")||e.endsWith(".textproto")),t.setGraph(new Uint8Array(r),e)})()}setGraphFromString(e){this.setGraph((new TextEncoder).encode(e),!1)}setGraph(e,t){var r=e.length,n=this.i._malloc(r);this.i.HEAPU8.set(e,n),t?this.i._changeBinaryGraph(r,n):this.i._changeTextGraph(r,n),this.i._free(n)}configureAudio(e,t,r,n,i){this.i._configureAudio||console.warn('Attempting to use configureAudio without support for input audio. Is build dep ":gl_graph_runner_audio" missing?'),v(this,n||"input_audio",s=>{v(this,i=i||"audio_header",o=>{this.i._configureAudio(s,o,e,t??0,r)})})}setAutoResizeCanvas(e){this.j=e}setAutoRenderToScreen(e){this.i._setAutoRenderToScreen(e)}setGpuBufferVerticalFlip(e){this.i.gpuOriginForWebTexturesIsBottomLeft=e}ja(e){Ge(this,"__graph_config__",t=>{e(t)}),v(this,"__graph_config__",t=>{this.i._getGraphConfig(t,void 0)}),delete this.i.simpleListeners.__graph_config__}attachErrorListener(e){this.i.errorListener=e}attachEmptyPacketListener(e,t){this.i.emptyPacketListeners=this.i.emptyPacketListeners||{},this.i.emptyPacketListeners[e]=t}addAudioToStream(e,t,r){this.addAudioToStreamWithShape(e,0,0,t,r)}addAudioToStreamWithShape(e,t,r,n,i){var s=4*e.length;this.h!==s&&(this.g&&this.i._free(this.g),this.g=this.i._malloc(s),this.h=s),this.i.HEAPF32.set(e,this.g/4),v(this,n,o=>{this.i._addAudioToInputStream(this.g,t,r,o,i)})}addGpuBufferToStream(e,t,r){v(this,t,n=>{var[i,s]=S1(this,e,n);this.i._addBoundTextureToStream(n,i,s,r)})}addBoolToStream(e,t,r){v(this,t,n=>{this.i._addBoolToInputStream(e,n,r)})}addDoubleToStream(e,t,r){v(this,t,n=>{this.i._addDoubleToInputStream(e,n,r)})}addFloatToStream(e,t,r){v(this,t,n=>{this.i._addFloatToInputStream(e,n,r)})}addIntToStream(e,t,r){v(this,t,n=>{this.i._addIntToInputStream(e,n,r)})}addUintToStream(e,t,r){v(this,t,n=>{this.i._addUintToInputStream(e,n,r)})}addStringToStream(e,t,r){v(this,t,n=>{v(this,e,i=>{this.i._addStringToInputStream(i,n,r)})})}addStringRecordToStream(e,t,r){v(this,t,n=>{L1(this,Object.keys(e),i=>{L1(this,Object.values(e),s=>{this.i._addFlatHashMapToInputStream(i,s,Object.keys(e).length,n,r)})})})}addProtoToStream(e,t,r,n){v(this,r,i=>{v(this,t,s=>{var o=this.i._malloc(e.length);this.i.HEAPU8.set(e,o),this.i._addProtoToInputStream(o,e.length,s,i,n),this.i._free(o)})})}addEmptyPacketToStream(e,t){v(this,e,r=>{this.i._addEmptyPacketToInputStream(r,t)})}addBoolVectorToStream(e,t,r){v(this,t,n=>{var i=this.i._allocateBoolVector(e.length);if(!i)throw Error("Unable to allocate new bool vector on heap.");for(let s of e)this.i._addBoolVectorEntry(i,s);this.i._addBoolVectorToInputStream(i,n,r)})}addDoubleVectorToStream(e,t,r){v(this,t,n=>{var i=this.i._allocateDoubleVector(e.length);if(!i)throw Error("Unable to allocate new double vector on heap.");for(let s of e)this.i._addDoubleVectorEntry(i,s);this.i._addDoubleVectorToInputStream(i,n,r)})}addFloatVectorToStream(e,t,r){v(this,t,n=>{var i=this.i._allocateFloatVector(e.length);if(!i)throw Error("Unable to allocate new float vector on heap.");for(let s of e)this.i._addFloatVectorEntry(i,s);this.i._addFloatVectorToInputStream(i,n,r)})}addIntVectorToStream(e,t,r){v(this,t,n=>{var i=this.i._allocateIntVector(e.length);if(!i)throw Error("Unable to allocate new int vector on heap.");for(let s of e)this.i._addIntVectorEntry(i,s);this.i._addIntVectorToInputStream(i,n,r)})}addUintVectorToStream(e,t,r){v(this,t,n=>{var i=this.i._allocateUintVector(e.length);if(!i)throw Error("Unable to allocate new unsigned int vector on heap.");for(let s of e)this.i._addUintVectorEntry(i,s);this.i._addUintVectorToInputStream(i,n,r)})}addStringVectorToStream(e,t,r){v(this,t,n=>{var i=this.i._allocateStringVector(e.length);if(!i)throw Error("Unable to allocate new string vector on heap.");for(let s of e)v(this,s,o=>{this.i._addStringVectorEntry(i,o)});this.i._addStringVectorToInputStream(i,n,r)})}addBoolToInputSidePacket(e,t){v(this,t,r=>{this.i._addBoolToInputSidePacket(e,r)})}addDoubleToInputSidePacket(e,t){v(this,t,r=>{this.i._addDoubleToInputSidePacket(e,r)})}addFloatToInputSidePacket(e,t){v(this,t,r=>{this.i._addFloatToInputSidePacket(e,r)})}addIntToInputSidePacket(e,t){v(this,t,r=>{this.i._addIntToInputSidePacket(e,r)})}addUintToInputSidePacket(e,t){v(this,t,r=>{this.i._addUintToInputSidePacket(e,r)})}addStringToInputSidePacket(e,t){v(this,t,r=>{v(this,e,n=>{this.i._addStringToInputSidePacket(n,r)})})}addProtoToInputSidePacket(e,t,r){v(this,r,n=>{v(this,t,i=>{var s=this.i._malloc(e.length);this.i.HEAPU8.set(e,s),this.i._addProtoToInputSidePacket(s,e.length,i,n),this.i._free(s)})})}addBoolVectorToInputSidePacket(e,t){v(this,t,r=>{var n=this.i._allocateBoolVector(e.length);if(!n)throw Error("Unable to allocate new bool vector on heap.");for(let i of e)this.i._addBoolVectorEntry(n,i);this.i._addBoolVectorToInputSidePacket(n,r)})}addDoubleVectorToInputSidePacket(e,t){v(this,t,r=>{var n=this.i._allocateDoubleVector(e.length);if(!n)throw Error("Unable to allocate new double vector on heap.");for(let i of e)this.i._addDoubleVectorEntry(n,i);this.i._addDoubleVectorToInputSidePacket(n,r)})}addFloatVectorToInputSidePacket(e,t){v(this,t,r=>{var n=this.i._allocateFloatVector(e.length);if(!n)throw Error("Unable to allocate new float vector on heap.");for(let i of e)this.i._addFloatVectorEntry(n,i);this.i._addFloatVectorToInputSidePacket(n,r)})}addIntVectorToInputSidePacket(e,t){v(this,t,r=>{var n=this.i._allocateIntVector(e.length);if(!n)throw Error("Unable to allocate new int vector on heap.");for(let i of e)this.i._addIntVectorEntry(n,i);this.i._addIntVectorToInputSidePacket(n,r)})}addUintVectorToInputSidePacket(e,t){v(this,t,r=>{var n=this.i._allocateUintVector(e.length);if(!n)throw Error("Unable to allocate new unsigned int vector on heap.");for(let i of e)this.i._addUintVectorEntry(n,i);this.i._addUintVectorToInputSidePacket(n,r)})}addStringVectorToInputSidePacket(e,t){v(this,t,r=>{var n=this.i._allocateStringVector(e.length);if(!n)throw Error("Unable to allocate new string vector on heap.");for(let i of e)v(this,i,s=>{this.i._addStringVectorEntry(n,s)});this.i._addStringVectorToInputSidePacket(n,r)})}attachBoolListener(e,t){Ge(this,e,t),v(this,e,r=>{this.i._attachBoolListener(r)})}attachBoolVectorListener(e,t){ft(this,e,t),v(this,e,r=>{this.i._attachBoolVectorListener(r)})}attachIntListener(e,t){Ge(this,e,t),v(this,e,r=>{this.i._attachIntListener(r)})}attachIntVectorListener(e,t){ft(this,e,t),v(this,e,r=>{this.i._attachIntVectorListener(r)})}attachUintListener(e,t){Ge(this,e,t),v(this,e,r=>{this.i._attachUintListener(r)})}attachUintVectorListener(e,t){ft(this,e,t),v(this,e,r=>{this.i._attachUintVectorListener(r)})}attachDoubleListener(e,t){Ge(this,e,t),v(this,e,r=>{this.i._attachDoubleListener(r)})}attachDoubleVectorListener(e,t){ft(this,e,t),v(this,e,r=>{this.i._attachDoubleVectorListener(r)})}attachFloatListener(e,t){Ge(this,e,t),v(this,e,r=>{this.i._attachFloatListener(r)})}attachFloatVectorListener(e,t){ft(this,e,t),v(this,e,r=>{this.i._attachFloatVectorListener(r)})}attachStringListener(e,t){Ge(this,e,t),v(this,e,r=>{this.i._attachStringListener(r)})}attachStringVectorListener(e,t){ft(this,e,t),v(this,e,r=>{this.i._attachStringVectorListener(r)})}attachProtoListener(e,t,r){Ge(this,e,t),v(this,e,n=>{this.i._attachProtoListener(n,r||!1)})}attachProtoVectorListener(e,t,r){ft(this,e,t),v(this,e,n=>{this.i._attachProtoVectorListener(n,r||!1)})}attachAudioListener(e,t,r){this.i._attachAudioListener||console.warn('Attempting to use attachAudioListener without support for output audio. Is build dep ":gl_graph_runner_audio_out" missing?'),Ge(this,e,(n,i)=>{n=new Float32Array(n.buffer,n.byteOffset,n.length/4),t(n,i)}),v(this,e,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}};function R1(e){return class extends e{get pa(){return this.i}Sa(){if("function"==typeof this.pa._mediapipeLoggerGetEncodedApiKey){let t=this.pa._mediapipeLoggerGetEncodedApiKey();return this.pa._decodeBase64(t)}}}}function I1(e){return class extends e{Za(){this.i._registerModelResourcesGraphService()}}}var fu=R1(I1(x1)),pu=class extends fu{};function rs(){return rs=(0,re.A)(function*(e,t,r,n){return e=yield(i=(0,re.A)(function*(s,o,a,h,l){if(o&&(yield k1(o)),!self.ModuleFactory||a&&(yield k1(a),!self.ModuleFactory)
1)throw Error("ModuleFactory not set.");return self.Module&&l&&((o=self.Module).locateFile=l.locateFile,l.mainScriptUrlOrBlob&&(o.mainScriptUrlOrBlob=l.mainScriptUrlOrBlob)),l=yield self.ModuleFactory(self.Module||l),self.ModuleFactory=self.Module=void 0,new s(l,h)}),function(s,o,a,h,l){return i.apply(this,arguments)})(e,r.wasmLoaderPath,r.assetLoaderPath,t,{locateFile:i=>i.endsWith(".wasm")?r.wasmBinaryPath.toString():r.assetBinaryPath&&i.endsWith(".data")?r.assetBinaryPath.toString():i}),function(i,s){s=s.runningMode??"";var o=i.g.Sa();i.m=new du(i.C(),s,o)}(e,n),yield e.v(n),e;var i}),rs.apply(this,arguments)}function bn(e,t,r,n){return ns.apply(this,arguments)}function ns(){return ns=(0,re.A)(function*(e,t,r,n){return function gu(e,t,r,n){return rs.apply(this,arguments)}(e,t,r,n)}),ns.apply(this,arguments)}function is(e,t){var r=C(e.baseOptions,_n,1)||new _n;"string"==typeof t?(w(r,2,Xe(t)),w(r,1)):t instanceof Uint8Array&&(w(r,1,Nr(t,!1)),w(r,2)),y(e.baseOptions,0,1,r)}function F1(e){try{let t=e.K.length;if(1===t)throw Error(e.K[0].message);if(t>1)throw Error("Encountered multiple errors: "+e.K.map(r=>r.message).join(", "))}finally{e.K=[]}}function g(e,t){e.I=Math.max(e.I,t)}function Tn(e,t){e.D=new de,me(e.D,2,"PassThroughCalculator"),$(e.D,"free_memory"),x(e.D,"free_memory_unused_out"),U(t,"free_memory"),Se(t,e.D)}function er(e,t){$(e.D,t),x(e.D,t+"_unused_out")}function kn(e){e.g.addBoolToStream(!0,"free_memory",e.I)}var Sr=class{constructor(e){this.g=e,this.K=[],this.I=0,this.g.setAutoRenderToScreen(!1)}j(e,t=!0){if(t){let r=e.baseOptions||{};if(e.baseOptions?.modelAssetBuffer&&e.baseOptions?.modelAssetPath)throw Error("Cannot set both baseOptions.modelAssetPath and baseOptions.modelAssetBuffer");if(!(C(this.baseOptions,_n,1)?.g()||C(this.baseOptions,_n,1)?.j()||e.baseOptions?.modelAssetBuffer||e.baseOptions?.modelAssetPath))throw Error("Either baseOptions.modelAssetPath or baseOptions.modelAssetBuffer must be set");if(function(n,i){var s=C(n.baseOptions,mn,3);if(!s){var o=s=new mn,a=new ba;De(o,4,It,a)}"delegate"in i&&("GPU"===i.delegate?(i=s,o=new Ii,De(i,2,It,o)):(i=s,o=new ba,De(i,4,It,o))),y(n.baseOptions,0,3,s)}(this,r),r.modelAssetPath)return fetch(r.modelAssetPath.toString()).then(n=>{if(n.ok)return n.arrayBuffer();throw Error(`Failed to fetch model: ${r.modelAssetPath} (${n.status})`)}).then(n=>{try{this.g.i.FS_unlink("/model.dat")}catch{}this.g.i.FS_createDataFile("/","model.dat",new Uint8Array(n),!0,!1,!1),is(this,"/model.dat"),this.o(),this.L()});if(r.modelAssetBuffer instanceof Uint8Array)is(this,r.modelAssetBuffer);else if(r.modelAssetBuffer)return(n=(0,re.A)(function*(i){for(var s=[],o=0;;){let{done:a,value:h}=yield i.read();if(a)break;s.push(h),o+=h.length}if(0===s.length)return new Uint8Array(0);if(1===s.length)return s[0];i=new Uint8Array(o),o=0;for(let a of s)i.set(a,o),o+=a.length;return i}),function(i){return n.apply(this,arguments)})(r.modelAssetBuffer).then(n=>{is(this,n),this.o(),this.L()})}var n;return this.o(),this.L(),Promise.resolve()}L(){}ja(){var e;if(this.g.ja(t=>{e=kh(t)}),!e)throw Error("Failed to retrieve CalculatorGraphConfig");return e}setGraph(e,t){this.g.attachErrorListener((r,n)=>{this.K.push(Error(n))}),this.g.Za(),this.g.setGraph(e,t),this.m?.ya(),this.D=void 0,F1(this)}finishProcessing(e){this.g.finishProcessing(),F1(this),this.m&&void 0!==e&&this.m.za(e)}close(){this.D=void 0,this.m?.xa(),this.m?.close(),this.g.closeGraph()}};function ie(e,t){if(!e)throw Error(`Unable to obtain required WebGL resource: ${t}`);return e}Sr.prototype.close=Sr.prototype.close;class mu{constructor(t,r,n,i){this.g=t,this.h=r,this.m=n,this.j=i}bind(){this.g.bindVertexArray(this.h)}close(){this.g.deleteVertexArray(this.h),this.g.deleteBuffer(this.m),this.g.deleteBuffer(this.j)}}function C1(e,t,r){var n=e.g;if(r=ie(n.createShader(r),"Failed to create WebGL shader"),n.shaderSource(r,t),n.compileShader(r),!n.getShaderParameter(r,n.COMPILE_STATUS))throw Error(`Could not compile WebGL shader: ${n.getShaderInfoLog(r)}`);return n.attachShader(e.h,r),r}function N1(e,t){var r=e.g,n=ie(r.createVertexArray(),"Failed to create vertex array");r.bindVertexArray(n);var i=ie(r.createBuffer(),"Failed to create buffer");r.bindBuffer(r.ARRAY_BUFFER,i),r.enableVertexAttribArray(e.F),r.vertexAttribPointer(e.F,2,r.FLOAT,!1,0,0),r.bufferData(r.ARRAY_BUFFER,new Float32Array([-1,-1,-1,1,1,1,1,-1]),r.STATIC_DRAW);var s=ie(r.createBuffer(),"Failed to create buffer");return r.bindBuffer(r.ARRAY_BUFFER,s),r.enableVertexAttribArray(e.K),r.vertexAttribPointer(e.K,2,r.FLOAT,!1,0,0),r.bufferData(r.ARRAY_BUFFER,new Float32Array(t?[0,1,0,0,1,0,1,1]:[0,0,0,1,1,1,1,0]),r.STATIC_DRAW),r.b
vendor: 7,158 bytes, line 1
1indBuffer(r.ARRAY_BUFFER,null),r.bindVertexArray(null),new mu(r,n,i,s)}function ss(e,t){if(e.g){if(t!==e.g)throw Error("Cannot change GL context once initialized")}else e.g=t}function Lr(e,t,r,n){return ss(e,t),e.h||(e.m(),e.I()),r?(e.l||(e.l=N1(e,!0)),r=e.l):(e.D||(e.D=N1(e,!1)),r=e.D),t.useProgram(e.h),r.bind(),e.j(),e=n(),r.g.bindVertexArray(null),e}function pt(e,t,r){return ss(e,t),e=ie(t.createTexture(),"Failed to create texture"),t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,r??t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,r??t.LINEAR),t.bindTexture(t.TEXTURE_2D,null),e}function Sn(e,t,r){ss(e,t),e.C||(e.C=ie(t.createFramebuffer(),"Failed to create framebuffe.")),t.bindFramebuffer(t.FRAMEBUFFER,e.C),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,r,0)}function os(e){e.g?.bindFramebuffer(e.g.FRAMEBUFFER,null)}var Ft=class{B(){return"\n precision mediump float;\n varying vec2 vTex;\n uniform sampler2D inputTexture;\n void main() {\n gl_FragColor = texture2D(inputTexture, vTex);\n }\n "}m(){var e=this.g;if(this.h=ie(e.createProgram(),"Failed to create WebGL program"),this.da=C1(this,"\n attribute vec2 aVertex;\n attribute vec2 aTex;\n varying vec2 vTex;\n void main(void) {\n gl_Position = vec4(aVertex, 0.0, 1.0);\n vTex = aTex;\n }",e.VERTEX_SHADER),this.Z=C1(this,this.B(),e.FRAGMENT_SHADER),e.linkProgram(this.h),!e.getProgramParameter(this.h,e.LINK_STATUS))throw Error(`Error during program linking: ${e.getProgramInfoLog(this.h)}`);this.F=e.getAttribLocation(this.h,"aVertex"),this.K=e.getAttribLocation(this.h,"aTex")}I(){}j(){}close(){if(this.h){let e=this.g;e.deleteProgram(this.h),e.deleteShader(this.da),e.deleteShader(this.Z)}this.C&&this.g.deleteFramebuffer(this.C),this.D&&this.D.close(),this.l&&this.l.close()}},_u=class extends Ft{B(){return"\n precision mediump float;\n uniform sampler2D backgroundTexture;\n uniform sampler2D maskTexture;\n uniform sampler2D colorMappingTexture;\n varying vec2 vTex;\n void main() {\n vec4 backgroundColor = texture2D(backgroundTexture, vTex);\n float category = texture2D(maskTexture, vTex).r;\n vec4 categoryColor = texture2D(colorMappingTexture, vec2(category, 0.0));\n gl_FragColor = mix(backgroundColor, categoryColor, categoryColor.a);\n }\n "}I(){var e=this.g;e.activeTexture(e.TEXTURE1),this.u=pt(this,e,e.LINEAR),e.activeTexture(e.TEXTURE2),this.o=pt(this,e,e.NEAREST)}m(){super.m();var e=this.g;this.O=ie(e.getUniformLocation(this.h,"backgroundTexture"),"Uniform location"),this.Y=ie(e.getUniformLocation(this.h,"colorMappingTexture"),"Uniform location"),this.L=ie(e.getUniformLocation(this.h,"maskTexture"),"Uniform location")}j(){super.j();var e=this.g;e.uniform1i(this.L,0),e.uniform1i(this.O,1),e.uniform1i(this.Y,2)}close(){this.u&&this.g.deleteTexture(this.u),this.o&&this.g.deleteTexture(this.o),super.close()}},vu=class extends Ft{B(){return"\n precision mediump float;\n uniform sampler2D maskTexture;\n uniform sampler2D defaultTexture;\n uniform sampler2D overlayTexture;\n varying vec2 vTex;\n void main() {\n float confidence = texture2D(maskTexture, vTex).r;\n vec4 defaultColor = texture2D(defaultTexture, vTex);\n vec4 overlayColor = texture2D(overlayTexture, vTex);\n // Apply the alpha from the overlay and merge in the default color\n overlayColor = mix(defaultColor, overlayColor, overlayColor.a);\n gl_FragColor = mix(defaultColor, overlayColor, confidence);\n }\n "}I(){var e=this.g;e.activeTexture(e.TEXTURE1),this.o=pt(this,e),e.activeTexture(e.TEXTURE2),this.u=pt(this,e)}m(){super.m();var e=this.g;this.L=ie(e.getUniformLocation(this.h,"defaultTexture"),"Uniform location"),this.O=ie(e.getUniformLocation(this.h,"overlayTexture"),"Uniform location"),this.J=ie(e.getUniformLocation(this.h,"maskTexture"),"Uniform location")}j(){super.j();var e=this.g;e.uniform1i(this.J,0),e.uniform1i(this.L,1),e.uniform1i(this.O,2)}close(){this.o&&this.g.deleteTexture(this.o),this.u&&this.g.deleteTexture(this.u),super.close()}};function tt(e,t){switch(t){case 0:return e.g.find(r=>r instanceof Uint8Array);case 1:return e.g.find(r=>r instanceof Float32Array);case 2:return e.g.find(r=>typeof WebGLTexture<"u"&&r instanceof WebGLTexture);default:throw Error(`Type is not supported: ${t}`)}}function as(e){var t=tt(e,1);if(!t){if(t=tt(e,0))t=new Float32Array(t).map(n=>n/255);else{t=new Float32Array(e.width*e.height);let n=tr(e);var r=hs(e);if(Sn(r,n,O1(e)),"iPad Simulator;iPhone Simulator;iPod Simulator;iPad;iPhone;iPod".split(";").includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"document"in self&&"ontouchend"in self.document){r=new Float32Array(e.width*e.height*4),n.readPixels(0,0,e.width,e.height,n.RGBA,n.FLOAT,r);for(let i=0,s=0;i<t.length;++i,s+=4)t[i]=r[s]}else n.readPixels(0,0,e.width,e.height,n.RED,n.FLOAT,t)}e.g.push(t)}return t}function O1(e){var t=tt(e,2);if(!t){let r=tr(e);t=D1(e);let n=as(e),i=M1(e);r.texImage2D(r.TEXTURE_2D,0,i,e.width,e.height,0,r.RED,r.FLOAT,n),us(e)}return t}function tr(e){if(!e.canvas)throw Error("Conversion to different image formats require that a canvas is passed when initializing the image.");return e.h||(e.h=ie(e.canvas.getContext("webgl2"),"You cannot use a canvas that is already bound to a different type of rendering context.")),e.h}function M1(e){if(e=tr(e),!Ln)if(e.getExtension("EXT_color_buffer_float")&&e.getExtension("OES_texture_float_linear")&&e.getExtension("EXT_float_blend"))Ln=e.R32F;else{if(!e.getExtension("EXT_color_buffer_half_float"))throw Error("GPU does not fully support 4-channel float32 or float16 formats");Ln=e.R16F}return Ln}function hs(e){return e.j||(e.j=new Ft),e.j}function D1(e){var t=tr(e);t.viewport(0,0,e.width,e.height),t.activeTexture(t.TEXTURE0);var r=tt(e,2);return r||(r=pt(hs(e),t,e.m?t.LINEAR:t.NEAREST),e.g.push(r),e.o=!0),t.bindTexture(t.TEXTURE_2D,r),r}function us(e){e.h.bindTexture(e.h.TEXTURE_2D,null)}var Ln,W=class{constructor(e,t,r,n,i,s,o){this.g=e,this.m=t,this.o=r,this.canvas=n,this.j=i,this.width=s,this.height=o,this.o&&0==--P1&&console.error("You seem to be creating MPMask instances without invoking .close(). This leaks resources.")}Ua(){return!!tt(this,0)}ua(){return!!tt(this,1)}W(){return!!tt(this,2)}ta(){return(t=tt(this,0))||(t=as(this),t=new Uint8Array(t.map(r=>Math.round(255*r))),this.g.push(t)),t;var t}sa(){return as(this)}S(){return O1(this)}clone(){var e=[];for(let t of this.g){let r;if(t instanceof Uint8Array)r=new Uint8Array(t);else if(t instanceof Float32Array)r=new Float32Array(t);else{if(!(t instanceof WebGLTexture))throw Error(`Type is not supported: ${t}`);{let n=tr(this),i=hs(this);n.activeTexture(n.TEXTURE1),r=pt(i,n,this.m?n.LINEAR:n.NEAREST),n.bindTexture(n.TEXTURE_2D,r);let s=M1(this);n.texImage2D(n.TEXTURE_2D,0,s,this.width,this.height,0,n.RED,n.FLOAT,null),n.bindTexture(n.TEXTURE_2D,null),Sn(i,n,r),Lr(i,n,!1,()=>{D1(this),n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT),n.drawArrays(n.TRIANGLE_FAN,0,4),us(this)}),os(i),us(this)}}
1e.push(r)}return new W(e,this.m,this.W(),this.canvas,this.j,this.width,this.height)}close(){this.o&&tr(this).deleteTexture(tt(this,2)),P1=-1}};W.prototype.close=W.prototype.close,W.prototype.clone=W.prototype.clone,W.prototype.getAsWebGLTexture=W.prototype.S,W.prototype.getAsFloat32Array=W.prototype.sa,W.prototype.getAsUint8Array=W.prototype.ta,W.prototype.hasWebGLTexture=W.prototype.W,W.prototype.hasFloat32Array=W.prototype.ua,W.prototype.hasUint8Array=W.prototype.Ua;var P1=250,yu={color:"white",lineWidth:4,radius:6};function cs(e){return{...yu,fillColor:(e=e||{}).color,...e}}function rt(e,t){return e instanceof Function?e(t):e}function $1(e,t,r){return Math.max(Math.min(t,r),Math.min(Math.max(t,r),e))}function xr(e){if(!e.j)throw Error("CPU rendering requested but CanvasRenderingContext2D not provided.");return e.j}function Rr(e){if(!e.o)throw Error("GPU rendering requested but WebGL2RenderingContext not provided.");return e.o}function U1(e,t,r){if(t.W())r(t.S());else{let n=t.ua()?t.sa():t.ta();e.m=e.m??new Ft;let i=Rr(e);r((e=new W([n],t.m,!1,i.canvas,e.m,t.width,t.height)).S()),e.close()}}function B1(e,t,r,n){var a,i=((a=e).g||(a.g=new _u),a.g),s=Rr(e),o=Array.isArray(r)?new ImageData(new Uint8ClampedArray(r),1,1):r;Lr(i,s,!0,()=>{(function(h,l,u,p){var d=h.g;if(d.activeTexture(d.TEXTURE0),d.bindTexture(d.TEXTURE_2D,l),d.activeTexture(d.TEXTURE1),d.bindTexture(d.TEXTURE_2D,h.u),d.texImage2D(d.TEXTURE_2D,0,d.RGBA,d.RGBA,d.UNSIGNED_BYTE,u),h.J&&function(A,T){if(A!==T)return!1;A=A.entries(),T=T.entries();for(let[z,we]of A){A=z;let Le=we,He=T.next();if(He.done)return!1;let[On,Mn]=He.value;if(A!==On||Le[0]!==Mn[0]||Le[1]!==Mn[1]||Le[2]!==Mn[2]||Le[3]!==Mn[3])return!1}return!!T.next().done}(h.J,p))d.activeTexture(d.TEXTURE2),d.bindTexture(d.TEXTURE_2D,h.o);else{h.J=p;let A=Array(1024).fill(0);p.forEach((T,z)=>{if(4!==T.length)throw Error(`Color at index ${z} is not a four-channel value.`);A[4*z]=T[0],A[4*z+1]=T[1],A[4*z+2]=T[2],A[4*z+3]=T[3]}),d.activeTexture(d.TEXTURE2),d.bindTexture(d.TEXTURE_2D,h.o),d.texImage2D(d.TEXTURE_2D,0,d.RGBA,256,1,0,d.RGBA,d.UNSIGNED_BYTE,new Uint8Array(A))}})(i,t,o,n),s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT),s.drawArrays(s.TRIANGLE_FAN,0,4);var a=i.g;a.activeTexture(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,null),a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),a.activeTexture(a.TEXTURE2),a.bindTexture(a.TEXTURE_2D,null)})}function G1(e,t,r,n){var h,i=Rr(e),s=((h=e).h||(h.h=new vu),h.h),o=Array.isArray(r)?new ImageData(new Uint8ClampedArray(r),1,1):r,a=Array.isArray(n)?new ImageData(new Uint8ClampedArray(n),1,1):n;Lr(s,i,!0,()=>{var h=s.g;h.activeTexture(h.TEXTURE0),h.bindTexture(h.TEXTURE_2D,t),h.activeTexture(h.TEXTURE1),h.bindTexture(h.TEXTURE_2D,s.o),h.texImage2D(h.TEXTURE_2D,0,h.RGBA,h.RGBA,h.UNSIGNED_BYTE,o),h.activeTexture(h.TEXTURE2),h.bindTexture(h.TEXTURE_2D,s.u),h.texImage2D(h.TEXTURE_2D,0,h.RGBA,h.RGBA,h.UNSIGNED_BYTE,a),i.clearColor(0,0,0,0),i.clear(i.COLOR_BUFFER_BIT),i.drawArrays(i.TRIANGLE_FAN,0,4),i.bindTexture(i.TEXTURE_2D,null),(h=s.g).activeTexture(h.TEXTURE0),h.bindTexture(h.TEXTURE_2D,null),h.activeTexture(h.TEXTURE1),h.bindTexture(h.TEXTURE_2D,null),h.activeTexture(h.TEXTURE2),h.bindTexture(h.TEXTURE_2D,null)})}var se=class{constructor(e,t){typeof CanvasRenderingContext2D<"u"&&e instanceof CanvasRenderingContext2D||e instanceof OffscreenCanvasRenderingContext2D?(this.j=e,this.o=t):this.o=e}Ma(e,t){if(e){var r=xr(this);t=cs(t),r.save();var n=r.canvas,i=0;for(let s of e)r.fillStyle=rt(t.fillColor,{index:i,from:s}),r.strokeStyle=rt(t.color,{index:i,from:s}),r.lineWidth=rt(t.lineWidth,{index:i,from:s}),(e=new Path2D).arc(s.x*n.width,s.y*n.height,rt(t.radius,{index:i,from:s}),0,2*Math.PI),r.fill(e),r.stroke(e),++i;r.restore()}}La(e,t,r){if(e&&t){var n=xr(this);r=cs(r),n.save();var i=n.canvas,s=0;for(let o of t){n.beginPath();let a=e[o.end];(t=e[o.start])&&a&&(n.strokeStyle=rt(r.color,{index:s,from:t,to:a}),n.lineWidth=rt(r.lineWidth,{index:s,from:t,to:a}),n.moveTo(t.x*i.width,t.y*i.height),n.lineTo(a.x*i.width,a.y*i.height)),++s,n.stroke()}n.restore()}}Ia(e,t){var r=xr(this);
1t=cs(t),r.save(),r.beginPath(),r.lineWidth=rt(t.lineWidth,{}),r.strokeStyle=rt(t.color,{}),r.fillStyle=rt(t.fillColor,{}),r.moveTo(e.originX,e.originY),r.lineTo(e.originX+e.width,e.originY),r.lineTo(e.originX+e.width,e.originY+e.height),r.lineTo(e.originX,e.originY+e.height),r.lineTo(e.originX,e.originY),r.stroke(),r.fill(),r.restore()}Ja(e,t,r=[0,0,0,255]){var n,i,s,o,a;this.j?(i=e,s=r,o=t,a=Rr(n=this),U1(n,i,h=>{B1(n,h,s,o),(h=xr(n)).drawImage(a.canvas,0,0,h.canvas.width,h.canvas.height)})):B1(this,e.S(),r,t)}Ka(e,t,r){var n,i,s,o,a;this.j?(i=e,s=t,o=r,a=Rr(n=this),U1(n,i,h=>{G1(n,h,s,o),(h=xr(n)).drawImage(a.canvas,0,0,h.canvas.width,h.canvas.height)})):G1(this,e.S(),t,r)}close(){this.g?.close(),this.g=void 0,this.h?.close(),this.h=void 0,this.m?.close(),this.m=void 0}};function je(e,t){switch(t){case 0:return e.g.find(r=>r instanceof ImageData);case 1:return e.g.find(r=>typeof ImageBitmap<"u"&&r instanceof ImageBitmap);case 2:return e.g.find(r=>typeof WebGLTexture<"u"&&r instanceof WebGLTexture);default:throw Error(`Type is not supported: ${t}`)}}function j1(e){var t=je(e,0);if(!t){t=rr(e);let r=Rn(e),n=new Uint8Array(e.width*e.height*4);Sn(r,t,xn(e)),t.readPixels(0,0,e.width,e.height,t.RGBA,t.UNSIGNED_BYTE,n),os(r),t=new ImageData(new Uint8ClampedArray(n.buffer),e.width,e.height),e.g.push(t)}return t}function xn(e){var t=je(e,2);if(!t){let r=rr(e);t=In(e);let n=je(e,1)||j1(e);r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,n),Ir(e)}return t}function rr(e){if(!e.canvas)throw Error("Conversion to different image formats require that a canvas is passed when initializing the image.");return e.h||(e.h=ie(e.canvas.getContext("webgl2"),"You cannot use a canvas that is already bound to a different type of rendering context.")),e.h}function Rn(e){return e.j||(e.j=new Ft),e.j}function In(e){var t=rr(e);t.viewport(0,0,e.width,e.height),t.activeTexture(t.TEXTURE0);var r=je(e,2);return r||(r=pt(Rn(e),t),e.g.push(r),e.m=!0),t.bindTexture(t.TEXTURE_2D,r),r}function Ir(e){e.h.bindTexture(e.h.TEXTURE_2D,null)}function V1(e){var t=rr(e);return Lr(Rn(e),t,!0,()=>function(r,n){var i=r.canvas;if(i.width===r.width&&i.height===r.height)return n();var s=i.width,o=i.height;return i.width=r.width,i.height=r.height,r=n(),i.width=s,i.height=o,r}(e,()=>{if(t.bindFramebuffer(t.FRAMEBUFFER,null),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),t.drawArrays(t.TRIANGLE_FAN,0,4),!(e.canvas instanceof OffscreenCanvas))throw Error("Conversion to ImageBitmap requires that the MediaPipe Tasks is initialized with an OffscreenCanvas");return e.canvas.transferToImageBitmap()}))}se.prototype.close=se.prototype.close,se.prototype.drawConfidenceMask=se.prototype.Ka,se.prototype.drawCategoryMask=se.prototype.Ja,se.prototype.drawBoundingBox=se.prototype.Ia,se.prototype.drawConnectors=se.prototype.La,se.prototype.drawLandmarks=se.prototype.Ma,se.lerp=function(e,t,r,n,i){return $1(n*(1-(e-t)/(r-t))+i*(1-(r-e)/(r-t)),n,i)},se.clamp=$1;var Q=class{constructor(e,t,r,n,i,s,o){this.g=e,this.o=t,this.m=r,this.canvas=n,this.j=i,this.width=s,this.height=o,(this.o||this.m)&&0==--H1&&console.error("You seem to be creating MPImage instances without invoking .close(). This leaks resources.")}Ta(){return!!je(this,0)}va(){return!!je(this,1)}W(){return!!je(this,2)}Qa(){return j1(this)}Pa(){var e=je(this,1);return e||(xn(this),In(this),e=V1(this),Ir(this),this.g.push(e),this.o=!0),e}S(){return xn(this)}clone(){var e=[];for(let t of this.g){let r;if(t instanceof ImageData)r=new ImageData(t.data,this.width,this.height);else if(t instanceof WebGLTexture){let n=rr(this),i=Rn(this);n.activeTexture(n.TEXTURE1),r=pt(i,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),Sn(i,n,r),Lr(i,n,!1,()=>{In(this),n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT),n.drawArrays(n.TRIANGLE_FAN,0,4),Ir(this)}),os(i),Ir(this)}else{if(!(t instanceof ImageBitmap))throw Error(`Type is not supported: ${t}`);xn(this),In(this),r=V1(this),Ir(this)}e.push(r)}return new Q(e,this.va(),this.W(),this.canvas,this.j,this.width,this.height)}close(){this.o&&je(this,1).close(),this.m&&rr(this).deleteTexture(je(this,2)),H1=-1}};Q.prototype.close=Q.prototype.close,Q.prototype.clone=Q.prototype.clone,Q.prototype.getAsWebGLTexture=Q.prototype.S,Q.prototype.getAsImageBitmap=Q.prototype.Pa,Q.prototype.getAsImageData=Q.prototype.Qa,Q.prototype.hasWebG
vendor: 5,216 bytes, line 1
1LTexture=Q.prototype.W,Q.prototype.hasImageBitmap=Q.prototype.va,Q.prototype.hasImageData=Q.prototype.Ta;var H1=250;function Re(...e){return e.map(([t,r])=>({start:t,end:r}))}var K1,Eu=I1((K1=R1(x1),class extends K1{get oa(){return this.i}Da(e,t,r){v(this,t,n=>{var[i,s]=S1(this,e,n);this.oa._addBoundTextureAsImageToStream(n,i,s,r)})}ga(e,t){Ge(this,e,t),v(this,e,r=>{this.oa._attachImageListener(r)})}ha(e,t){ft(this,e,t),v(this,e,r=>{this.oa._attachImageVectorListener(r)})}})),Ie=class extends Eu{};function I(e,t,r){return ls.apply(this,arguments)}function ls(){return(ls=(0,re.A)(function*(e,t,r){return bn(e,r.canvas??(Qi()?void 0:document.createElement("canvas")),t,r)})).apply(this,arguments)}function X1(e,t,r,n){if(e.m&&void 0!==n)if(C(e.baseOptions,mn,3)?.g()){var i=e.m;++i.g.T,i.h.set(n,performance.now())}else++(i=e.m).g.P,i.h.set(n,performance.now());if(e.qa){if(i=new Ma,r?.regionOfInterest){if(!e.Ca)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].");E(i,1,(s.left+s.right)/2),E(i,2,(s.top+s.bottom)/2),E(i,4,s.right-s.left),E(i,3,s.bottom-s.top)}else E(i,1,.5),E(i,2,.5),E(i,4,1),E(i,3,1);if(r?.rotationDegrees){if(r?.rotationDegrees%90!=0)throw Error("Expected rotation to be a multiple of 90\xb0.");if(E(i,5,-Math.PI*r.rotationDegrees/180),r?.rotationDegrees%180!=0){let[o,a]=ts(t);r=H(i,3)*a/o,s=H(i,4)*o/a,E(i,4,r),E(i,3,s)}}e.g.addProtoToStream(i.g(),"mediapipe.NormalizedRect",e.qa,n)}e.g.Da(t,e.Ba,n??performance.now()),e.finishProcessing(n)}function Fe(e,t,r){if(e.J)throw Error("Task is not initialized with image mode. 'runningMode' must be set to 'IMAGE'.");X1(e,t,r,e.I+1)}function Ve(e,t,r,n){if(!e.J)throw Error("Task is not initialized with video mode. 'runningMode' must be set to 'VIDEO'.");X1(e,t,r,n)}function nr(e,t,r,n){var i=t.data,s=t.width,o=s*(t=t.height);if((i instanceof Uint8Array||i instanceof Float32Array)&&i.length!==o)throw Error("Unsupported channel count: "+i.length/o);return e=new W([i],r,!1,e.g.i.canvas,e.da,s,t),n?e.clone():e}var fe=class extends Sr{constructor(e,t,r,n){super(e),this.g=e,this.Ba=t,this.qa=r,this.Ca=n,this.da=new Ft,this.J=!1}j(e,t=!0){if("runningMode"in e){var r=this.J=!!e.runningMode&&"IMAGE"!==e.runningMode;w(this.baseOptions,2,null==r?r:Dr(r))}if(void 0!==e.canvas&&this.g.i.canvas!==e.canvas)throw Error("You must create a new task to reset the canvas.");return super.j(e,t)}close(){this.da.close(),super.close()}};fe.prototype.close=fe.prototype.close;var ye=class extends fe{constructor(e,t){super(new Ie(e,t),"image_in","norm_rect_in",!1),this.l={detections:[]},y(e=this.h=new vn,0,1,t=new B),E(this.h,2,.5),E(this.h,3,.3)}C(){return"FaceDetector"}get baseOptions(){return C(this.h,B,1)}set baseOptions(e){y(this.h,0,1,e)}v(e){return"minDetectionConfidence"in e&&E(this.h,2,e.minDetectionConfidence??.5),"minSuppressionThreshold"in e&&E(this.h,3,e.minSuppressionThreshold??.3),this.j(e)}G(e,t){return this.l={detections:[]},Fe(this,e,t),this.l}H(e,t,r){return this.l={detections:[]},Ve(this,e,r,t),this.l}o(){var e=new ve;U(e,"image_in"),U(e,"norm_rect_in"),N(e,"detections");var t=new _e;Ue(t,$h,this.h);var r=new de;me(r,2,"mediapipe.tasks.vision.face_detector.FaceDetectorGraph"),$(r,"IMAGE:image_in"),$(r,"NORM_RECT:norm_rect_in"),x(r,"DETECTIONS:detections"),r.v(t),Se(e,r),this.g.attachProtoVectorListener("detections",(n,i)=>{for(let s of n)n=Ca(s),this.l.detections.push(h1(n));g(this,i)}),this.g.attachEmptyPacketListener("detections",n=>{g(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};ye.prototype.detectForVideo=ye.prototype.H,ye.prototype.detect=ye.prototype.G,ye.prototype.setOptions=ye.prototype.v,ye.createFromModelPath=function(){var e=(0,re.A)(function*(t,r){return I(ye,t,{baseOptions:{modelAssetPath:r}})});return function(t,r){return e.apply(this,arguments)}}(),ye.createFromModelBuffer=function(e,t){return I(ye,e,{baseOptions:{modelAssetBuffer:t}})},ye.createFromOptions=function(e,t){return I(ye,e,t)};var ds=Re([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]),fs=Re([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]),ps=Re([276,283],[283,282],[282,295],[295,285],[300,293],[293,334],[334,296],[296,336]),W1=Re([474,475],[475,476],[476,477],[477,474]),gs=Re([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]),ms=Re([46,53],[53,52],[52,65],[65,55],[70,63],[63,105],[105,66],[66,107]),z1=Re([469,470],[470,471],[471,472],[472,469]),_s=Re([10,338],[338,297],[297,332],[332,284],[284,251],[251,389],[389,356],[356,454],[454,323],[323,3
161],[361,288],[288,397],[397,365],[365,379],[379,378],[378,400],[400,377],[377,152],[152,148],[148,176],[176,149],[149,150],[150,136],[136,172],[172,58],[58,132],[132,93],[93,234],[234,127],[127,162],[162,21],[21,54],[54,103],[103,67],[67,109],[109,10]),Y1=[...ds,...fs,...ps,...gs,...ms,..._s],q1=Re
vendor: 14,070 bytes, line 1
1([127,34],[34,139],[139,127],[11,0],[0,37],[37,11],[232,231],[231,120],[120,232],[72,37],[37,39],[39,72],[128,121],[121,47],[47,128],[232,121],[121,128],[128,232],[104,69],[69,67],[67,104],[175,171],[171,148],[148,175],[118,50],[50,101],[101,118],[73,39],[39,40],[40,73],[9,151],[151,108],[108,9],[48,115],[115,131],[131,48],[194,204],[204,211],[211,194],[74,40],[40,185],[185,74],[80,42],[42,183],[183,80],[40,92],[92,186],[186,40],[230,229],[229,118],[118,230],[202,212],[212,214],[214,202],[83,18],[18,17],[17,83],[76,61],[61,146],[146,76],[160,29],[29,30],[30,160],[56,157],[157,173],[173,56],[106,204],[204,194],[194,106],[135,214],[214,192],[192,135],[203,165],[165,98],[98,203],[21,71],[71,68],[68,21],[51,45],[45,4],[4,51],[144,24],[24,23],[23,144],[77,146],[146,91],[91,77],[205,50],[50,187],[187,205],[201,200],[200,18],[18,201],[91,106],[106,182],[182,91],[90,91],[91,181],[181,90],[85,84],[84,17],[17,85],[206,203],[203,36],[36,206],[148,171],[171,140],[140,148],[92,40],[40,39],[39,92],[193,189],[189,244],[244,193],[159,158],[158,28],[28,159],[247,246],[246,161],[161,247],[236,3],[3,196],[196,236],[54,68],[68,104],[104,54],[193,168],[168,8],[8,193],[117,228],[228,31],[31,117],[189,193],[193,55],[55,189],[98,97],[97,99],[99,98],[126,47],[47,100],[100,126],[166,79],[79,218],[218,166],[155,154],[154,26],[26,155],[209,49],[49,131],[131,209],[135,136],[136,150],[150,135],[47,126],[126,217],[217,47],[223,52],[52,53],[53,223],[45,51],[51,134],[134,45],[211,170],[170,140],[140,211],[67,69],[69,108],[108,67],[43,106],[106,91],[91,43],[230,119],[119,120],[120,230],[226,130],[130,247],[247,226],[63,53],[53,52],[52,63],[238,20],[20,242],[242,238],[46,70],[70,156],[156,46],[78,62],[62,96],[96,78],[46,53],[53,63],[63,46],[143,34],[34,227],[227,143],[123,117],[117,111],[111,123],[44,125],[125,19],[19,44],[236,134],[134,51],[51,236],[216,206],[206,205],[205,216],[154,153],[153,22],[22,154],[39,37],[37,167],[167,39],[200,201],[201,208],[208,200],[36,142],[142,100],[100,36],[57,212],[212,202],[202,57],[20,60],[60,99],[99,20],[28,158],[158,157],[157,28],[35,226],[226,113],[113,35],[160,159],[159,27],[27,160],[204,202],[202,210],[210,204],[113,225],[225,46],[46,113],[43,202],[202,204],[204,43],[62,76],[76,77],[77,62],[137,123],[123,116],[116,137],[41,38],[38,72],[72,41],[203,129],[129,142],[142,203],[64,98],[98,240],[240,64],[49,102],[102,64],[64,49],[41,73],[73,74],[74,41],[212,216],[216,207],[207,212],[42,74],[74,184],[184,42],[169,170],[170,211],[211,169],[170,149],[149,176],[176,170],[105,66],[66,69],[69,105],[122,6],[6,168],[168,122],[123,147],[147,187],[187,123],[96,77],[77,90],[90,96],[65,55],[55,107],[107,65],[89,90],[90,180],[180,89],[101,100],[100,120],[120,101],[63,105],[105,104],[104,63],[93,137],[137,227],[227,93],[15,86],[86,85],[85,15],[129,102],[102,49],[49,129],[14,87],[87,86],[86,14],[55,8],[8,9],[9,55],[100,47],[47,121],[121,100],[145,23],[23,22],[22,145],[88,89],[89,179],[179,88],[6,122],[122,196],[196,6],[88,95],[95,96],[96,88],[138,172],[172,136],[136,138],[215,58],[58,172],[172,215],[115,48],[48,219],[219,115],[42,80],[80,81],[81,42],[195,3],[3,51],[51,195],[43,146],[146,61],[61,43],[171,175],[175,199],[199,171],[81,82],[82,38],[38,81],[53,46],[46,225],[225,53],[144,163],[163,110],[110,144],[52,65],[65,66],[66,52],[229,228],[228,117],[117,229],[34,127],[127,234],[234,34],[107,108],[108,69],[69,107],[109,108],[108,151],[151,109],[48,64],[64,235],[235,48],[62,78],[78,191],[191,62],[129,209],[209,126],[126,129],[111,35],[35,143],[143,111],[117,123],[123,50],[50,117],[222,65],[65,52],[52,222],[19,125],[125,141],[141,19],[221,55],[55,65],[65,221],[3,195],[195,197],[197,3],[25,7],[7,33],[33,25],[220,237],[237,44],[44,220],[70,71],[71,139],[139,70],[122,193],[193,245],[245,122],[247,130],[130,33],[33,247],[71,21],[21,162],[162,71],[170,169],[169,150],[150,170],[188,174],[174,196],[196,188],[216,186],[186,92],[92,216],[2,97],[97,167],[167,2],[141,125],[125,241],[241,141],[164,167],[167,37],[37,164],[72,38],[38,12],[12,72],[38,82],[82,13],[13,38],[63,68],[68,71],[71,63],[226,35],[35,111],[111,226],[101,50],[50,205],[205,101],[206,92],[92,165],[165,206],[209,198],[198,217],[217,209],[165,167],[167,97],[97,165],[220,115],[115,218],[218,220],[133,112],[112,243],[243,133],[239,238],[238,241],[241,239],[214,135],[135,169],[169,214],[190,173],[173,133],[133,190],[171,208],[208,32],[32,171],[125,44],[44,237],[237,125],[86,87],[87,178],[178,86],[85,86],[86,179],[179,85],[84,85],[85,180],[180,84],[83,84],[84,181],[181,83],[201,83],[83,182],[182,201],[137,93],[93,132],[132,137],[76,62],[62,183],[183,76],[61,76],[76,184],[184,61],[57,61],[61,185],[185,57],[212,57],[57,186],[186,212],[214,207],[207,187],[187,214],[34,143],[143,156],[156,34],[79,239],[239,237],[237,79],[123,137],[137,177],[177,123],[44,1],[1,4],[4,44],[201,194],[194,32],[32,201],[64,102],[102,129],[129,64],[213,215],[215,138],[138,213],[59,166],[166,219],[219,59],[242,99],[99,97],[97,242],[2,94],[94,141],[141,2],[75,59],[59,235],[235,75],[24,110],[110,228],[228,24],[25,130],[130,226],[226,25],[23,24],[24,229],[229,23],[22,23],[23,230],[230,22],[26,22],[22,231],[231,26],[112,26],[26,232],[232,112],[189,190],[190,243],[243,189],[221,56],[56,190],[190,221],[28,56],[56,221],[221,28],[27,28],[28,222],[222,27],[29,27],[27,223],[223,29],[30,29],[29,224],[224,30],[247,30],[30,225],[225,247],[238,79],[79,20],[20,238],[166,59],[59,75],[75,166],[60,75],[75,240],[240,60],[147,177],[177,215],[215,147],[20,79],[79,166],[166,20],[187,147],[147,213],[213,187],[112,233],[233,244],[244,112],[233,128],[128,245],[245,233],[128,114],[114,188],[188,128],[114,217],[217,174],[174,114],[131,115],[115,220],[220,131],[217,198],[198,236],[236,217],[198,131],[131,134],[134,198],[177,132],[132,58],[58,177],[143,35],[35,124],[124,143],[110,163],[163,7],[7,110],[228,110],[110,25],[25,228],[356,389],[389,368],[368,356],[11,302],[302,267],[267,11],[452,350],[350,349],[349,452],[302,303],[303,269],[269,302],[357,343],[343,277],[277,357],[452,453],[453,357],[357,452],[333,332],[332,297],[297,333],[175,152],[152,377],[377,175],[347,348],[348,330],[330,347],[303,304],[304,270],[270,303],[9,336],[336,337],[337,9],[278,279],[279,360],[360,278],[418,262],[262,431],[431,418],[304,408],[408,409],[409,304],[310,415],[415,407],[407,310],[270,409],[409,410],[410,270],[450,348],[348,347],[347,450],[422,430],[430,434],[434,422],[313,314],[314,17],[17,313],[306,307],[307,375],[375,306],[387,388],[388,260],[260,387],[286,414],[414,398],[398,286],[335,406],[406,418],[418,335],[364,367],[367,416],[416,364],[423,358],[358,327],[327,423],[251,284],[284,298],[298,251],[281,5],[5,4],[4,281],[373,374],[374,253],[253,373],[307,320],[320,321],[321,307],[425,427],[427,411],[411,425],[421,313],[313,18],[18,421],[321,405],[405,406],[406,321],[320,404],[404,405],[405,320],[315,16],[16,17],[17,315],[426,425],[425,266],[266,426],[377,400],[400,369],[369,377],[322,391],[391,269],[269,322],[417,465],[465,464],[464,417],[386,257],[257,258],[258,386],[466,260],[260,388],[388,466],[456,399],[399,419],[419,456],[284,332],[332,333],[333,284],[417,285],[285,8],[8,417],[346,340],[340,261],[261,346],[413,441],[441,285],[285,413],[327,460],[460,328],[328,327],[355,371],[371,329],[329,355],[392,439],[439,438],[438,392],[382,341],[341,256],[256,382],[429,420],[420,360],[360,429],[364,394],[394,379],[379,364],[277,343],[343,437],[437,277],[443,444],[444,283],[283,443],[275,440],[440,363],[363,275],[431,262],[262,369],[369,431],[297,338],[338,337],[337,297],[273,375],[375,321],[321,273],[450,451],[451,349],[349,450],[446,342],[342,467],[467,446],[293,334],[334,282],[282,293],[458,461],[461,462],[462,458],[276,353],[353,383],[383,276],[308,324],[324,325],[325,308],[276,300],[300,293],[293,276],[372,345],[345,447],[447,372],[352,345],[345,340],[340,352],[274,1],[1,19],[19,274],[456,248],[248,281],[281,456],[436,427],[427,425],[425,436],[381,256],[256,252],[252,381],[269,391],[391,393],[393,269],[200,199],[199,428],[428,200],[266,330],[330,329],[329,266],[287,273],[273,422],[422,287],[250,462],[462,328],[328,250],[258,286],[286,384],[384,258],[265,353],[353,342],[342,265],[387,259],[259,257],[257,387],[424,431],[431,430],[430,424],[342,353],[353,276],[276,342],[273,335],[335,424],[424,273],[292,325],[325,307],[307,292],[366,447],[447,345],[345,366],[271,303],[303,302],[302,271],[423,266],[266,371],[371,423],[294,455],[455,460],[460,294],[279,278],[278,294],[294,279],[271,272],[272,304],[304,271],[432,434],[434,427],[427,432],[272,407],[407,408],[408,272],[394,430],[430,431],[431,394],[395,369],[369,400],[400,395],[334,333],[333,299],[299,334],[351,417],[417,168],[168,351],[352,280],[280,411],[411,352],[325,319],[319,320],[320,325],[295,296],[296,336],[336,295],[319,403],[403,404],[404,319],[330,348],[348,349],[349,330],[293,298],[298,333],[333,293],[323,454],[454,447],[447,323],[15,16],[16,315],[315,15],[358,429],[429,279],[279,358],[14,15],[15,316],[316,14],[285,336],[336,9],[9,285],[329,349],[349,350],[350,329],[374,380],[380,252],[252,374],[318,402],[402,403],[403,318],[6,197],[197,419],[419,6],[318,319],[319,325],[325,318],[367,364],[364,365],[365,367],[435,367],[367,397],[397,435],[344,438],[438,439],[439,344],[272,271],[271,311],[311,272],[195,5],[5,281],[281,195],[273,287],[287,291],[291,273],[396,428],[428,199],[199,396],[311,271],[271,268],[268,311],[283,444],[444,445],[445,283],[373,254],[254,339],[339,373],[282,334],[334,296],[296,282],[449,347],[347,346],[346,449],[264,447],[447,454],[454,264],[336,296],[296,299],[299,336],[338,10],[10,151],[151,338],[278,439],[439,455],[455,278],[292,407],[407,415],[415,292],[358,371],[371,355],[355,358],[340,345],[345,372],[372,340],[346,347],[347,280],[280,346],[442,443],[443,282],[282,442],[19,94],[94,370],[370,19],[441,442],[442,295],[295,441],[248,419],[419,197],[197,248],[263,255],[255,359],[359,263],[440,275],[275,274],[274,440],[300,383],[383,368],[368,300],[351,412],[412,465],[465,351],[263,467],[467,466],[466,263],[301,368],[368,389],[389,301],[395,378],[378,379],[379,395],[412,351],[351,419],[419,412],[436,426],[426,322],[322,436],[2,164],[164,393],[393,2],[370,462],[462,461],[461,370],[164,0],[0,267],[267,164],[302,11],[11,12],[12,302],[268,12],[12,13],[13,268],[293,300],[300,301],[301,293],[446,261],[261,340],[340,446],[330,266],[266,425],[425,330],[426,423],[423,391],[391,426],[429,355],[355,437],[437,429],[391,327],[327,326],[326,391],[440,457],[457,438],[438,440],[341,382],[382,362],[362,341],[459,457],[457,461],[461,459],[434,430],[430,394],[394,434],[414,463],[463,362],[362,414],[396,369],[369,262],[262,396],[354,461],[461,457],[457,354],[316,403],[403,402],[402,316],[315,404],[404,403],[403,315],[314,405],[405,404],[404,314],[313,406],[406,405],[405,313],[421,418],[418,406],[406,421],[366,401],[401,361],[361,366],[306,408],[408,407],[407,306],[291,409],[409,408],[408,291],[287,410],[410,409],[409,287],[432,436],[436,410],[410,432],[434,416],[416,411],[411,434],[264,368],[368,383],[383,264],[309,438],[438,457],[457,309],[352,376],[376,401],[401,352],[274,275],[275,4],[4,274],[421,428],[428,262],[262,421],[294,327],[327,358],[358,294],[433,416],[416,367],[367,433],[289,455],[455,439],[439,289],[462,370],[370,326],[326,462],[2,326],[326,370],[370,2],[305,460],[460,455],[455,305],[254,449],[449,448],[448,254],[255,261],[261,446],[446,255],[253,450],[450,449],[449,253],[252,451],[451,450],[450,252],[256,452],[452,451],[451,256],[341,453],[453,452],[452,341],[413,464],[464,463],[463,413],[441,413],[413,414],[414,441],[258,442],[442,441],[441,258],[257,443],[443,442],[442,257],[259,444],[444,443],[443,259],[260,445],[445,444],[444,260],[467,342],[342,445],[445,467],[459,458],[458,250],[250,459],[289,392],[392,290],[290,289],[290,328],[328,460],[460,290],[376,433],[433,435],[435,376],[250,290],[290,392],[392,250],[411,416],[416,433],[433,411],[341,463],[463,464],[464,341],[453,464],[464,465],[465,453],[357,465],[465,412],[412,357],[343,412],[412,399],[399,343],[360,363],[363,440],[440,360],[437,399],[399,456],[456,437],[420,456],[456,363],[363,420],[401,435],[435,288],[288,401],[372,383],[383,353],[353,372],[339,255],[255,249],[249,339],[448,261],[261,255],[255,448],[133,243],[243,190],[190,133],[133,155],[155,112],[112,133],[33,246],[246,247],[247,33],[33,130],[130,25],[25,33],[398,384],[384,286],[286,398],[362,398],[398,414],[414,362],[362,463],[463,341],[341,362],[263,359],[359,467],[467,263],[263,249],[249,255],[255,263],[466,467],[467,260],[260,466],[75,60],[60,166],[166,75],[238,239],[239,79],[79,238],[162,127],[127,139],[139,162],[72,11],[11,37],[37,72],[121,232],[232,120],[120,121],[73,72],[72,39],[39,73],[114,128],[128,47],[47,114],[233,232],[232,128],[128,233],[103,104],[104,67],[67,103],[152,175],[175,148],[148,152],[119,118],[118,101],[101,119],[74,73],[73,40],[40,74],[107,9],[9,108],[108,107],[49,48],[48,131],[131,49],[32,194],[194,211],[211,32],[184,74],[74,185],[185,184],[191,80],[80,183],[183,191],[185,40],[40,186],[186,185],[119,230],[230,118],[118,119],[210,202],[202,214],[214,210],[84,83],[83,17],[17,84],[77,76],[76,146],[146,77],[161,160],[160,30],[30,161],[190,56],[56,173],[173,190],[182,106],[106,194],[194,182],[138,135],[135,192],[192,138],[129,203],[203,98],[98,129],[54,21],[21,68],[68,54],[5,51],[51,4],[4,5],[145,144],[144,23],[23,145],[90,77],[77,91],[91,90],[207,205],[205,187],[187,207],[83,201],[201,18],[18,83],[181,91],[91,182],[182,181],[180,90],[90,181],[181,180],[16,85],[85,17],[17,16],[205,206],[206,36],[36,205],[176,148],[148,140],[140,176],[165,92],[92,39],[39,165],[245,193],[193,244],[244,245],[27,159],[159,28],[28,27],[30,247],[247,161],[161,30],[174,236],[236,196],[196,174],[103,54],[54,104],[104,103],[55,193],[193,8],[8,55],[111,117],[117,31],[31,111],[221,189],[189,55],[55,221],[240,98],[98,99],[99,240],[142,126],[126,100],[100,142],[219,166],[166,218],[218,219],[112,155],[155,26],[26,112],[198,209],[209,131],[131,198],[169,135],[135,150],[150,169],[114,47],[47,217],[217,114],[224,223],[223,53],[53,224],[220,45],[45,134],[134,220],[32,211],[211,140],[140,32],[109,67],[67,108],[108,109],[146,43],[43,91],[91,146],[231,230],[230,120],[120,23
vendor: 10,283 bytes, line 1
11],[113,226],[226,247],[247,113],[105,63],[63,52],[52,105],[241,238],[238,242],[242,241],[124,46],[46,156],[156,124],[95,78],[78,96],[96,95],[70,46],[46,63],[63,70],[116,143],[143,227],[227,116],[116,123],[123,111],[111,116],[1,44],[44,19],[19,1],[3,236],[236,51],[51,3],[207,216],[216,205],[205,207],[26,154],[154,22],[22,26],[165,39],[39,167],[167,165],[199,200],[200,208],[208,199],[101,36],[36,100],[100,101],[43,57],[57,202],[202,43],[242,20],[20,99],[99,242],[56,28],[28,157],[157,56],[124,35],[35,113],[113,124],[29,160],[160,27],[27,29],[211,204],[204,210],[210,211],[124,113],[113,46],[46,124],[106,43],[43,204],[204,106],[96,62],[62,77],[77,96],[227,137],[137,116],[116,227],[73,41],[41,72],[72,73],[36,203],[203,142],[142,36],[235,64],[64,240],[240,235],[48,49],[49,64],[64,48],[42,41],[41,74],[74,42],[214,212],[212,207],[207,214],[183,42],[42,184],[184,183],[210,169],[169,211],[211,210],[140,170],[170,176],[176,140],[104,105],[105,69],[69,104],[193,122],[122,168],[168,193],[50,123],[123,187],[187,50],[89,96],[96,90],[90,89],[66,65],[65,107],[107,66],[179,89],[89,180],[180,179],[119,101],[101,120],[120,119],[68,63],[63,104],[104,68],[234,93],[93,227],[227,234],[16,15],[15,85],[85,16],[209,129],[129,49],[49,209],[15,14],[14,86],[86,15],[107,55],[55,9],[9,107],[120,100],[100,121],[121,120],[153,145],[145,22],[22,153],[178,88],[88,179],[179,178],[197,6],[6,196],[196,197],[89,88],[88,96],[96,89],[135,138],[138,136],[136,135],[138,215],[215,172],[172,138],[218,115],[115,219],[219,218],[41,42],[42,81],[81,41],[5,195],[195,51],[51,5],[57,43],[43,61],[61,57],[208,171],[171,199],[199,208],[41,81],[81,38],[38,41],[224,53],[53,225],[225,224],[24,144],[144,110],[110,24],[105,52],[52,66],[66,105],[118,229],[229,117],[117,118],[227,34],[34,234],[234,227],[66,107],[107,69],[69,66],[10,109],[109,151],[151,10],[219,48],[48,235],[235,219],[183,62],[62,191],[191,183],[142,129],[129,126],[126,142],[116,111],[111,143],[143,116],[118,117],[117,50],[50,118],[223,222],[222,52],[52,223],[94,19],[19,141],[141,94],[222,221],[221,65],[65,222],[196,3],[3,197],[197,196],[45,220],[220,44],[44,45],[156,70],[70,139],[139,156],[188,122],[122,245],[245,188],[139,71],[71,162],[162,139],[149,170],[170,150],[150,149],[122,188],[188,196],[196,122],[206,216],[216,92],[92,206],[164,2],[2,167],[167,164],[242,141],[141,241],[241,242],[0,164],[164,37],[37,0],[11,72],[72,12],[12,11],[12,38],[38,13],[13,12],[70,63],[63,71],[71,70],[31,226],[226,111],[111,31],[36,101],[101,205],[205,36],[203,206],[206,165],[165,203],[126,209],[209,217],[217,126],[98,165],[165,97],[97,98],[237,220],[220,218],[218,237],[237,239],[239,241],[241,237],[210,214],[214,169],[169,210],[140,171],[171,32],[32,140],[241,125],[125,237],[237,241],[179,86],[86,178],[178,179],[180,85],[85,179],[179,180],[181,84],[84,180],[180,181],[182,83],[83,181],[181,182],[194,201],[201,182],[182,194],[177,137],[137,132],[132,177],[184,76],[76,183],[183,184],[185,61],[61,184],[184,185],[186,57],[57,185],[185,186],[216,212],[212,186],[186,216],[192,214],[214,187],[187,192],[139,34],[34,156],[156,139],[218,79],[79,237],[237,218],[147,123],[123,177],[177,147],[45,44],[44,4],[4,45],[208,201],[201,32],[32,208],[98,64],[64,129],[129,98],[192,213],[213,138],[138,192],[235,59],[59,219],[219,235],[141,242],[242,97],[97,141],[97,2],[2,141],[141,97],[240,75],[75,235],[235,240],[229,24],[24,228],[228,229],[31,25],[25,226],[226,31],[230,23],[23,229],[229,230],[231,22],[22,230],[230,231],[232,26],[26,231],[231,232],[233,112],[112,232],[232,233],[244,189],[189,243],[243,244],[189,221],[221,190],[190,189],[222,28],[28,221],[221,222],[223,27],[27,222],[222,223],[224,29],[29,223],[223,224],[225,30],[30,224],[224,225],[113,247],[247,225],[225,113],[99,60],[60,240],[240,99],[213,147],[147,215],[215,213],[60,20],[20,166],[166,60],[192,187],[187,213],[213,192],[243,112],[112,244],[244,243],[244,233],[233,245],[245,244],[245,128],[128,188],[188,245],[188,114],[114,174],[174,188],[134,131],[131,220],[220,134],[174,217],[217,236],[236,174],[236,198],[198,134],[134,236],[215,177],[177,58],[58,215],[156,143],[143,124],[124,156],[25,110],[110,7],[7,25],[31,228],[228,25],[25,31],[264,356],[356,368],[368,264],[0,11],[11,267],[267,0],[451,452],[452,349],[349,451],[267,302],[302,269],[269,267],[350,357],[357,277],[277,350],[350,452],[452,357],[357,350],[299,333],[333,297],[297,299],[396,175],[175,377],[377,396],[280,347],[347,330],[330,280],[269,303],[303,270],[270,269],[151,9],[9,337],[337,151],[344,278],[278,360],[360,344],[424,418],[418,431],[431,424],[270,304],[304,409],[409,270],[272,310],[310,407],[407,272],[322,270],[270,410],[410,322],[449,450],[450,347],[347,449],[432,422],[422,434],[434,432],[18,313],[313,17],[17,18],[291,306],[306,375],[375,291],[259,387],[387,260],[260,259],[424,335],[335,418],[418,424],[434,364],[364,416],[416,434],[391,423],[423,327],[327,391],[301,251],[251,298],[298,301],[275,281],[281,4],[4,275],[254,373],[373,253],[253,254],[375,307],[307,321],[321,375],[280,425],[425,411],[411,280],[200,421],[421,18],[18,200],[335,321],[321,406],[406,335],[321,320],[320,405],[405,321],[314,315],[315,17],[17,314],[423,426],[426,266],[266,423],[396,377],[377,369],[369,396],[270,322],[322,269],[269,270],[413,417],[417,464],[464,413],[385,386],[386,258],[258,385],[248,456],[456,419],[419,248],[298,284],[284,333],[333,298],[168,417],[417,8],[8,168],[448,346],[346,261],[261,448],[417,413],[413,285],[285,417],[326,327],[327,328],[328,326],[277,355],[355,329],[329,277],[309,392],[392,438],[438,309],[381,382],[382,256],[256,381],[279,429],[429,360],[360,279],[365,364],[364,379],[379,365],[355,277],[277,437],[437,355],[282,443],[443,283],[283,282],[281,275],[275,363],[363,281],[395,431],[431,369],[369,395],[299,297],[297,337],[337,299],[335,273],[273,321],[321,335],[348,450],[450,349],[349,348],[359,446],[446,467],[467,359],[283,293],[293,282],[282,283],[250,458],[458,462],[462,250],[300,276],[276,383],[383,300],[292,308],[308,325],[325,292],[283,276],[276,293],[293,283],[264,372],[372,447],[447,264],[346,352],[352,340],[340,346],[354,274],[274,19],[19,354],[363,456],[456,281],[281,363],[426,436],[436,425],[425,426],[380,381],[381,252],[252,380],[267,269],[269,393],[393,267],[421,200],[200,428],[428,421],[371,266],[266,329],[329,371],[432,287],[287,422],[422,432],[290,250],[250,328],[328,290],[385,258],[258,384],[384,385],[446,265],[265,342],[342,446],[386,387],[387,257],[257,386],[422,424],[424,430],[430,422],[445,342],[342,276],[276,445],[422,273],[273,424],[424,422],[306,292],[292,307],[307,306],[352,366],[366,345],[345,352],[268,271],[271,302],[302,268],[358,423],[423,371],[371,358],[327,294],[294,460],[460,327],[331,279],[279,294],[294,331],[303,271],[271,304],[304,303],[436,432],[432,427],[427,436],[304,272],[272,408],[408,304],[395,394],[394,431],[431,395],[378,395],[395,400],[400,378],[296,334],[334,299],[299,296],[6,351],[351,168],[168,6],[376,352],[352,411],[411,376],[307,325],[325,320],[320,307],[285,295],[295,336],[336,285],[320,319],[319,404],[404,320],[329,330],[330,349],[349,329],[334,293],[293,333],[333,334],[366,323],[323,447],[447,366],[316,15],[15,315],[315,316],[331,358],[358,279],[279,331],[317,14],[14,316],[316,317],[8,285],[285,9],[9,8],[277,329],[329,350],[350,277],[253,374],[374,252],[252,253],[319,318],[318,403],[403,319],[351,6],[6,419],[419,351],[324,318],[318,325],[325,324],[397,367],[367,365],[365,397],[288,435],[435,397],[397,288],[278,344],[344,439],[439,278],[310,272],[272,311],[311,310],[248,195],[195,281],[281,248],[375,273],[273,291],[291,375],[175,396],[396,199],[199,175],[312,311],[311,268],[268,312],[276,283],[283,445],[445,276],[390,373],[373,339],[339,390],[295,282],[282,296],[296,295],[448,449],[449,346],[346,448],[356,264],[264,454],[454,356],[337,336],[336,299],[299,337],[337,338],[338,151],[151,337],[294,278],[278,455],[455,294],[308,292],[292,415],[415,308],[429,358],[358,355],[355,429],[265,340],[340,372],[372,265],[352,346],[346,280],[280,352],[295,442],[442,282],[282,295],[354,19],[19,370],[370,354],[285,441],[441,295],[295,285],[195,248],[248,197],[197,195],[457,440],[440,274],[274,457],[301,300],[300,368],[368,301],[417,351],[351,465],[465,417],[251,301],[301,389],[389,251],[394,395],[395,379],[379,394],[399,412],[412,419],[419,399],[410,436],[436,322],[322,410],[326,2],[2,393],[393,326],[354,370],[370,461],[461,354],[393,164],[164,267],[267,393],[268,302],[302,12],[12,268],[312,268],[268,13],[13,312],[298,293],[293,301],[301,298],[265,446],[446,340],[340,265],[280,330],[330,425],[425,280],[322,426],[426,391],[391,322],[420,429],[429,437],[437,420],[393,391],[391,326],[326,393],[344,440],[440,438],[438,344],[458,459],[459,461],[461,458],[364,434],[434,394],[394,364],[428,396],[396,262],[262,428],[274,354],[354,457],[457,274],[317,316],[316,402],[402,317],[316,315],[315,403],[403,316],[315,314],[314,404],[404,315],[314,313],[313,405],[405,314],[313,421],[421,406],[406,313],[323,366],[366,361],[361,323],[292,306],[306,407],[407,292],[306,291],[291,408],[408,306],[291,287],[287,409],[409,291],[287,432],[432,410],[410,287],[427,434],[434,411],[411,427],[372,264],[264,383],[383,372],[459,309],[309,457],[457,459],[366,352],[352,401],[401,366],[1,274],[274,4],[4,1],[418,421],[421,262],[262,418],[331,294],[294,358],[358,331],[435,433],[433,367],[367,435],[392,289],[289,439],[439,392],[328,462],[462,326],[326,328],[94,2],[2,370],[370,94],[289,305],[305,455],[455,289],[339,254],[254,448],[448,339],[359,255],[255,446],[446,359],[254,253],[253,449],[449,254],[253,252],[252,450],[450,253],[252,256],[256,451],[451,252],[256,341],[341,452],[452,256],[414,413],[413,463],[463,414],[286,441],[441,414],[414,286],[286,258],[258,441],[441,286],[258,257],[257,442],[442,258],[257,259],[259,443],[443,257],[259,260],[260,444],[444,259],[260,467],[467,445],[445,260],[309,459],[459,250],[250,309],[305,289],[289,290],[290,305],[305,290],[290,460],[460,305],[401,376],[376,435],[435,401],[309,250],[250,392],[392,309],[376,411],[411,433],[433,376],[453,341],[341,464],[464,453],[357,453],[453,465],[465,357],[343,357],[357,412],[412,343],[437,343],[343,399],[399,437],[344,360],[360,440],[440,344],[420,437],[437,456],[456,420],[360,420],[420,363],[363,360],[361,401],[401,288],[288,361],[265,372],[372,353],[353,265],[390,339],[339,249],[249,390],[339,448],[448,255],[255,339]);function
vendor: 15,755 bytes, line 1
1J1(e){e.l={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]}}var F=class extends fe{constructor(e,t){super(new Ie(e,t),"image_in","norm_rect",!1),this.l={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]},this.outputFacialTransformationMatrixes=this.outputFaceBlendshapes=!1,y(e=this.h=new Ga,0,1,t=new B),this.B=new Ba,y(this.h,0,3,this.B),this.u=new vn,y(this.h,0,2,this.u),Pe(this.u,4,1),E(this.u,2,.5),E(this.B,2,.5),E(this.h,4,.5)}C(){return"FaceLandmarker"}get baseOptions(){return C(this.h,B,1)}set baseOptions(e){y(this.h,0,1,e)}v(e){return"numFaces"in e&&Pe(this.u,4,e.numFaces??1),"minFaceDetectionConfidence"in e&&E(this.u,2,e.minFaceDetectionConfidence??.5),"minTrackingConfidence"in e&&E(this.h,4,e.minTrackingConfidence??.5),"minFacePresenceConfidence"in e&&E(this.B,2,e.minFacePresenceConfidence??.5),"outputFaceBlendshapes"in e&&(this.outputFaceBlendshapes=!!e.outputFaceBlendshapes),"outputFacialTransformationMatrixes"in e&&(this.outputFacialTransformationMatrixes=!!e.outputFacialTransformationMatrixes),this.j(e)}G(e,t){return J1(this),Fe(this,e,t),this.l}H(e,t,r){return J1(this),Ve(this,e,r,t),this.l}o(){var e=new ve;U(e,"image_in"),U(e,"norm_rect"),N(e,"face_landmarks");var t=new _e;Ue(t,Bh,this.h);var r=new de;me(r,2,"mediapipe.tasks.vision.face_landmarker.FaceLandmarkerGraph"),$(r,"IMAGE:image_in"),$(r,"NORM_RECT:norm_rect"),x(r,"NORM_LANDMARKS:face_landmarks"),r.v(t),Se(e,r),this.g.attachProtoVectorListener("face_landmarks",(n,i)=>{for(let s of n)n=Tr(s),this.l.faceLandmarks.push(yn(n));g(this,i)}),this.g.attachEmptyPacketListener("face_landmarks",n=>{g(this,n)}),this.outputFaceBlendshapes&&(N(e,"blendshapes"),x(r,"BLENDSHAPES:blendshapes"),this.g.attachProtoVectorListener("blendshapes",(n,i)=>{if(this.outputFaceBlendshapes)for(let s of n)n=gn(s),this.l.faceBlendshapes.push(Ki(n.g()??[]));g(this,i)}),this.g.attachEmptyPacketListener("blendshapes",n=>{g(this,n)})),this.outputFacialTransformationMatrixes&&(N(e,"face_geometry"),x(r,"FACE_GEOMETRY:face_geometry"),this.g.attachProtoVectorListener("face_geometry",(n,i)=>{if(this.outputFacialTransformationMatrixes)for(let s of n)(n=C(n=Uh(s),Rh,2))&&this.l.facialTransformationMatrixes.push({rows:Te(n,1)??0??0,columns:Te(n,2)??0??0,data:St(n,3,xe,kt()).slice()??[]});g(this,i)}),this.g.attachEmptyPacketListener("face_geometry",n=>{g(this,n)})),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};F.prototype.detectForVideo=F.prototype.H,F.prototype.detect=F.prototype.G,F.prototype.setOptions=F.prototype.v,F.createFromModelPath=function(e,t){return I(F,e,{baseOptions:{modelAssetPath:t}})},F.createFromModelBuffer=function(e,t){return I(F,e,{baseOptions:{modelAssetBuffer:t}})},F.createFromOptions=function(e,t){return I(F,e,t)},F.FACE_LANDMARKS_LIPS=ds,D("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_LIPS",F.FACE_LANDMARKS_LIPS),F.FACE_LANDMARKS_LEFT_EYE=fs,D("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_LEFT_EYE",F.FACE_LANDMARKS_LEFT_EYE),F.FACE_LANDMARKS_LEFT_EYEBROW=ps,D("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_LEFT_EYEBROW",F.FACE_LANDMARKS_LEFT_EYEBROW),F.FACE_LANDMARKS_LEFT_IRIS=W1,D("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_LEFT_IRIS",F.FACE_LANDMARKS_LEFT_IRIS),F.FACE_LANDMARKS_RIGHT_EYE=gs,D("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_RIGHT_EYE",F.FACE_LANDMARKS_RIGHT_EYE),F.FACE_LANDMARKS_RIGHT_EYEBROW=ms,D("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_RIGHT_EYEBROW",F.FACE_LANDMARKS_RIGHT_EYEBROW),F.FACE_LANDMARKS_RIGHT_IRIS=z1,D("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_RIGHT_IRIS",F.FACE_LANDMARKS_RIGHT_IRIS),F.FACE_LANDMARKS_FACE_OVAL=_s,D("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_FACE_OVAL",F.FACE_LANDMARKS_FACE_OVAL),F.FACE_LANDMARKS_CONTOURS=Y1,D("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_CONTOURS",F.FACE_LANDMARKS_CONTOURS),F.FACE_LANDMARKS_TESSELATION=q1,D("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_TESSELATION",F.FACE_LANDMARKS_TESSELATION);var vs=Re([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 Z1(e){e.gestures=[],e.landmarks=[],e.worldLandmarks=[],e.handedness=[]}function Q1(e){return 0===e.gestures.length?{gestures:[],landmarks:[],worldLandmarks:[],handedness:[],handednesses:[]}:{gestures:e.gestures,landmarks:e.landmarks,worldLandmarks:e.worldLandmarks,handedness:e.handedness,handednesses:e.handedness}}function e2(e,t=!0){var r=[];for(let i of e){var n=gn(i);e=[];for(let s of n.g())n=t&&null!=Te(s,1)?Te(s,1)??0:-1,e.push({score:H(s,2)??0,index:n,categoryName:ee(G(s,3))??""??"",displayName:ee(G(s,4))??""??""});r.push(e)}return r}var oe=class extends fe{constructor(e,t){super(new Ie(e,t),"image_in","norm_rect",!1),this.gestures=[],this.landmarks=[],this.worldLandmarks=[],this.handedness=[],y(e=this.l=new Ha,0,1,t=new B),this.u=new Pi,y(this.l,0,2,this.u),this.F=new Di,y(this.u,0,3,this.F),this.B=new Va,y(this.u,0,2,this.B),this.h=new Gh,y(this.l,0,3,this.h),E(this.B,2,.5),E(this.u,4,.5),E(this.F,2,.5)}C(){return"GestureRecognizer"}get baseOptions(){return C(this.l,B,1)}set baseOptions(e){y(this.l,0,1,e)}v(e){if(Pe(this.B,3,e.numHands??1),"minHandDetectionConfidence"in e&&E(this.B,2,e.minHandDetectionConfidence??.5),"minTrackingConfidence"in e&&E(this.u,4,e.minTrackingConfidence??.5),"minHandPresenceConfidence"in e&&E(this.F,2,e.minHandPresenceConfidence??.5),e.cannedGesturesClassifierOptions){var t=new Zt,r=t,n=Hi(e.cannedGesturesClassifierOptions,C(this.h,Zt,3)?.j());y(r,0,2,n),y(this.h,0,3,t)}else void 0===e.cannedGesturesClassifierOptions&&C(this.h,Zt,3)?.g();return e.customGesturesClassifierOptions?(y(r=t=new Zt,0,2,n=Hi(e.customGesturesClassifierOptions,C(this.h,Zt,4)?.j())),y(this.h,0,4,t)):void 0===e.customGesturesClassifierOptions&&C(this.h,Zt,4)?.g(),this.j(e)}Xa(e,t){return Z1(this),Fe(this,e,t),Q1(this)}Ya(e,t,r){return Z1(this),Ve(this,e,r,t),Q1(this)}o(){var e=new ve;U(e,"image_in"),U(e,"norm_rect"),N(e,"hand_gestures"),N(e,"hand_landmarks"),N(e,"world_hand_landmarks"),N(e,"handedness");var t=new _e;Ue(t,jh,this.l);var r=new de;me(r,2,"mediapipe.tasks.vision.gesture_recognizer.GestureRecognizerGraph"),$(r,"IMAGE:image_in"),$(r,"NORM_RECT:norm_rect"),x(r,"HAND_GESTURES:hand_gestures"),x(r,"LANDMARKS:hand_landmarks"),x(r,"WORLD_LANDMARKS:world_hand_landmarks"),x(r,"HANDEDNESS:handedness"),r.v(t),Se(e,r),this.g.attachProtoVectorListener("hand_landmarks",(n,i)=>{for(let s of n){n=Tr(s);let o=[];for(let a of Ye(n,Oa,1))o.push({x:H(a,1)??0,y:H(a,2)??0,z:H(a,3)??0,visibility:H(a,4)??0});this.landmarks.push(o)}g(this,i)}),this.g.attachEmptyPacketListener("hand_landmarks",n=>{g(this,n)}),this.g.attachProtoVectorListener("world_hand_landmarks",(n,i)=>{for(let s of n){n=Jt(s);let o=[];for(let a of Ye(n,Na,1))o.push({x:H(a,1)??0,y:H(a,2)??0,z:H(a,3)??0,visibility:H(a,4)??0});this.worldLandmarks.push(o)}g(this,i)}),this.g.attachEmptyPacketListener("world_hand_landmarks",n=>{g(this,n)}),this.g.attachProtoVectorListener("hand_gestures",(n,i)=>{this.gestures.push(...e2(n,!1)),g(this,i)}),this.g.attachEmptyPacketListener("hand_gestures",n=>{g(this,n)}),this.g.attachProtoVectorListener("handedness",(n,i)=>{this.handedness.push(...e2(n)),g(this,i)}),this.g.attachEmptyPacketListener("handedness",n=>{g(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};function t2(e){return{landmarks:e.landmarks,worldLandmarks:e.worldLandmarks,handednesses:e.handedness,handedness:e.handedness}}oe.prototype.recognizeForVideo=oe.prototype.Ya,oe.prototype.recognize=oe.prototype.Xa,oe.prototype.setOptions=oe.prototype.v,oe.createFromModelPath=function(e,t){return I(oe,e,{baseOptions:{modelAssetPath:t}})},oe.createFromModelBuffer=function(e,t){return I(oe,e,{baseOptions:{modelAssetBuffer:t}})},oe.createFromOptions=function(e,t){return I(oe,e,t)},oe.HAND_CONNECTIONS=vs,D("module$exports$google3$third_party$mediapipe$tasks$web$vision$gesture_recognizer$gesture_recognizer.GestureRecognizer.HAND_CONNECTIONS",oe.HAND_CONNECTIONS);var ae=class extends fe{constructor(e,t){super(new Ie(e,t),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.handedness=[],y(e=this.h=new Pi,0,1,t=new B),this.u=new Di,y(this.h,0,3,this.u),this.l=new Va,y(this.h,0,2,this.l),Pe(this.l,3,1),E(this.l,2,.5),E(this.u,2,.5),E(this.h,4,.5)}C(){return"HandLandmarker"}get baseOptions(){return C(this.h,B,1)}set baseOptions(e){y(this.h,0,1,e)}v(e){return"numHands"in e&&Pe(this.l,3,e.numHands??1),"minHandDetectionConfidence"in e&&E(this.l,2,e.minHandDetectionConfidence??.5),"minTrackingConfidence"in e&&E(this.h,4,e.minTrackingConfidence??.5),"minHandPresenceConfidence"in e&&E(this.u,2,e.minHandPresenceConfidence??.5),this.j(e)}G(e,t){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],Fe(this,e,t),t2(this)}H(e,t,r){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],Ve(this,e,r,t),t2(this)}o(){var e=new ve;U(e,"image_in"),U(e,"norm_rect"),N(e,"hand_landmarks"),N(e,"world_hand_landmarks"),N(e,"handedness");var t=new _e;Ue(t,Vh,this.h);var r=new de;me(r,2,"mediapipe.tasks.vision.hand_landmarker.HandLandmarkerGraph"),$(r,"IMAGE:image_in"),$(r,"NORM_RECT:norm_rect"),x(r,"LANDMARKS:hand_landmarks"),x(r,"WORLD_LANDMARKS:world_hand_landmarks"),x(r,"HANDEDNESS:handedness"),r.v(t),Se(e,r),this.g.attachProtoVectorListener("hand_landmarks",(n,i)=>{for(let s of n)n=Tr(s),this.landmarks.push(yn(n));g(this,i)}),this.g.attachEmptyPacketListener("hand_landmarks",n=>{g(this,n)}),this.g.attachProtoVectorListener("world_hand_landmarks",(n,i)=>{for(let s of n)n=Jt(s),this.worldLandmarks.push(kr(n));g(this,i)}),this.g.attachEmptyPacketListener("world_hand_landmarks",n=>{g(this,n)}),this.g.attachProtoVectorListener("handedness",(n,i)=>{var s=this.handedness,o=s.push,a=[];for(let h of n){n=gn(h);let l=[];for(let u of n.g())l.push({score:H(u,2)??0,index:Te(u,1)??0??-1,categoryName:ee(G(u,3))??""??"",displayName:ee(G(u,4))??""??""});a.push(l)}o.call(s,...a),g(this,i)}),this.g.attachEmptyPacketListener("handedness",n=>{g(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};ae.prototype.detectForVideo=ae.prototype.H,ae.prototype.detect=ae.prototype.G,ae.prototype.setOptions=ae.prototype.v,ae.createFromModelPath=function(e,t){return I(ae,e,{baseOptions:{modelAssetPath:t}})},ae.createFromModelBuffer=function(e,t){return I(ae,e,{baseOptions:{modelAssetBuffer:t}})},ae.createFromOptions=function(e,t){return I(ae,e,t)},ae.HAND_CONNECTIONS=vs,D("module$exports$google3$third_party$mediapipe$tasks$web$vision$hand_landmarker$hand_landmarker.HandLandmarker.HAND_CONNECTIONS",ae.HAND_CONNECTIONS);var r2=Re([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 n2(e){e.h={faceLandmarks:[],faceBlendshapes:[],poseLandmarks:[],poseWorldLandmarks:[],poseSegmentationMasks:[],leftHandLandmarks:[],leftHandWorldLandmarks:[],rightHandLandmarks:[],rightHandWorldLandmarks:[]}}function i2(e){try{if(!e.F)return e.h;e.F(e.h)}finally{kn(e)}}function Fn(e,t){e=Tr(e),t.push(yn(e))}var k=class extends fe{constructor(e,t){super(new Ie(e,t),"input_frames_image",null,!1),this.h={faceLandmarks:[],faceBlendshapes:[],poseLandmarks:[],poseWorldLandmarks:[],poseSegmentationMasks:[],leftHandLandmarks:[],leftHandWorldLandmarks:[],rightHandLandmarks:[],rightHandWorldLandmarks:[]},this.outputPoseSegmentationMasks=this.outputFaceBlendshapes=!1,y(e=this.l=new qa,0,1,t=new B),this.Y=new Di,y(this.l,0,2,this.Y),this.Aa=new Hh,y(this.l,0,3,this.Aa),this.u=new vn,y(this.l,0,4,this.u),this.O=new Ba,y(this.l,0,5,this.O),this.B=new za,y(this.l,0,6,this.B),this.Z=new Ya,y(this.l,0,7,this.Z),E(this.u,2,.5),E(this.u,3,.3),E(this.O,2,.5),E(this.B,2,.5),E(this.B,3,.3),E(this.Z,2,.5),E(this.Y,2,.5)}C(){return"HolisticLandmarker"}get baseOptions(){return C(this.l,B,1)}set baseOptions(e){y(this.l,0,1,e)}v(e){return"minFaceDetectionConfidence"in e&&E(this.u,2,e.minFaceDetectionConfidence??.5),"minFaceSuppressionThreshold"in e&&E(this.u,3,e.minFaceSuppressionThreshold??.3),"minFacePresenceConfidence"in e&&E(this.O,2,e.minFacePresenceConfidence??.5),"outputFaceBlendshapes"in e&&(this.outputFaceBlendshapes=!!e.outputFaceBlendshapes),"minPoseDetectionConfidence"in e&&E(this.B,2,e.minPoseDetectionConfidence??.5),"minPoseSuppressionThreshold"in e&&E(this.B,3,e.minPoseSuppressionThreshold??.3),"minPosePresenceConfidence"in e&&E(this.Z,2,e.minPosePresenceConfidence??.5),"outputPoseSegmentationMasks"in e&&(this.outputPoseSegmentationMasks=!!e.outputPoseSegmentationMasks),"minHandLandmarksConfidence"in e&&E(this.Y,2,e.minHandLandmarksConfidence??.5),this.j(e)}G(e,t,r){var n="function"!=typeof t?t:{};return this.F="function"==typeof t?t:r,n2(this),Fe(this,e,n),i2(this)}H(e,t,r,n){var i="function"!=typeof r?r:{};return this.F="function"==typeof r?r:n,n2(this),Ve(this,e,i,t),i2(this)}o(){var e=new ve;U(e,"input_frames_image"),N(e,"pose_landmarks"),N(e,"pose_world_landmarks"),N(e,"face_landmarks"),N(e,"left_hand_landmarks"),N(e,"left_hand_world_landmarks"),N(e,"right_hand_landmarks"),N(e,"right_hand_world_landmarks");var t=new _e,r=new pa;me(r,1,"type.googleapis.com/mediapipe.tasks.vision.holistic_landmarker.proto.HolisticLandmarkerGraphOptions"),function(i,s){if(null!=s)if(Array.isArray(s))w(i,2,jr(s,0,dr));else{if(!("string"==typeof s||s instanceof Ne||$n(s)))throw Error("invalid value in Any.value field: "+s+" expected a ByteString, a base64 encoded string, a Uint8Array or a jspb array");fr(i,2,Nr(s,!1),_t())}}(r,this.l.g());var n=new de;me(n,2,"mediapipe.tasks.vision.holistic_landmarker.HolisticLandmarkerGraph"),pr(n,8,pa,r),$(n,"IMAGE:input_frames_image"),x(n,"POSE_LANDMARKS:pose_landmarks"),x(n,"POSE_WORLD_LANDMARKS:pose_world_landmarks"),x(n,"FACE_LANDMARKS:face_landmarks"),x(n,"LEFT_HAND_LANDMARKS:left_hand_landmarks"),x(n,"LEFT_HAND_WORLD_LANDMARKS:left_hand_world_landmarks"),x(n,"RIGHT_HAND_LANDMARKS:right_hand_landmarks"),x(n,"RIGHT_HAND_WORLD_LANDMARKS:right_hand_world_landmarks"),n.v(t),Se(e,n),Tn(this,e),this.g.attachProtoListener("pose_landmarks",(i,s)=>{Fn(i,this.h.poseLandmarks),g(this,s)}),this.g.attachEmptyPacketListener("pose_landmarks",i=>{g(this,i)}),this.g.attachProtoListener("pose_world_landmarks",(i,s)=>{var o=this.h.poseWorldLandmarks;i=Jt(i),o.push(kr(i)),g(this,s)}),this.g.attachEmptyPacketListener("pose_world_landmarks",i=>{g(this,i)}),this.outputPoseSegmentationMasks&&(x(n,"POSE_SEGMENTATION_MASK:pose_segmentation_mask"),er(this,"pose_segmentation_mask"),this.g.ga("pose_segmentation_mask",(i,s)=>{this.h.poseSegmentationMasks=[nr(this,i,!0,!this.F)],g(this,s)}),this.g.attachEmptyPacketListener("pose_segmentation_mask",i=>{this.h.poseSegmentationMasks=[],g(this,i)})),this.g.attachProtoListener("face_landmarks",(i,s)=>{Fn(i,this.h.faceLandmarks),g(this,s)}),this.g.attachEmptyPacketListener("face_landmarks",i=>{g(this,i)}
1),this.outputFaceBlendshapes&&(N(e,"extra_blendshapes"),x(n,"FACE_BLENDSHAPES:extra_blendshapes"),this.g.attachProtoListener("extra_blendshapes",(i,s)=>{var o=this.h.faceBlendshapes;this.outputFaceBlendshapes&&(i=gn(i),o.push(Ki(i.g()??[]))),g(this,s)}),this.g.attachEmptyPacketListener("extra_blendshapes",i=>{g(this,i)})),this.g.attachProtoListener("left_hand_landmarks",(i,s)=>{Fn(i,this.h.leftHandLandmarks),g(this,s)}),this.g.attachEmptyPacketListener("left_hand_landmarks",i=>{g(this,i)}),this.g.attachProtoListener("left_hand_world_landmarks",(i,s)=>{var o=this.h.leftHandWorldLandmarks;i=Jt(i),o.push(kr(i)),g(this,s)}),this.g.attachEmptyPacketListener("left_hand_world_landmarks",i=>{g(this,i)}),this.g.attachProtoListener("right_hand_landmarks",(i,s)=>{Fn(i,this.h.rightHandLandmarks),g(this,s)}),this.g.attachEmptyPacketListener("right_hand_landmarks",i=>{g(this,i)}),this.g.attachProtoListener("right_hand_world_landmarks",(i,s)=>{var o=this.h.rightHandWorldLandmarks;i=Jt(i),o.push(kr(i)),g(this,s)}),this.g.attachEmptyPacketListener("right_hand_world_landmarks",i=>{g(this,i)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};k.prototype.detectForVideo=k.prototype.H,k.prototype.detect=k.prototype.G,k.prototype.setOptions=k.prototype.v,k.createFromModelPath=function(e,t){return I(k,e,{baseOptions:{modelAssetPath:t}})},k.createFromModelBuffer=function(e,t){return I(k,e,{baseOptions:{modelAssetBuffer:t}})},k.createFromOptions=function(e,t){return I(k,e,t)},k.HAND_CONNECTIONS=vs,D("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.HAND_CONNECTIONS",k.HAND_CONNECTIONS),k.POSE_CONNECTIONS=r2,D("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.POSE_CONNECTIONS",k.POSE_CONNECTIONS),k.FACE_LANDMARKS_LIPS=ds,D("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.FACE_LANDMARKS_LIPS",k.FACE_LANDMARKS_LIPS),k.FACE_LANDMARKS_LEFT_EYE=fs,D("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.FACE_LANDMARKS_LEFT_EYE",k.FACE_LANDMARKS_LEFT_EYE),k.FACE_LANDMARKS_LEFT_EYEBROW=ps,D("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.FACE_LANDMARKS_LEFT_EYEBROW",k.FACE_LANDMARKS_LEFT_EYEBROW),k.FACE_LANDMARKS_LEFT_IRIS=W1,D("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.FACE_LANDMARKS_LEFT_IRIS",k.FACE_LANDMARKS_LEFT_IRIS),k.FACE_LANDMARKS_RIGHT_EYE=gs,D("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.FACE_LANDMARKS_RIGHT_EYE",k.FACE_LANDMARKS_RIGHT_EYE),k.FACE_LANDMARKS_RIGHT_EYEBROW=ms,D("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.FACE_LANDMARKS_RIGHT_EYEBROW",k.FACE_LANDMARKS_RIGHT_EYEBROW),k.FACE_LANDMARKS_RIGHT_IRIS=z1,D("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.FACE_LANDMARKS_RIGHT_IRIS",k.FACE_LANDMARKS_RIGHT_IRIS),k.FACE_LANDMARKS_FACE_OVAL=_s,D("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.FACE_LANDMARKS_FACE_OVAL",k.FACE_LANDMARKS_FACE_OVAL),k.FACE_LANDMARKS_CONTOURS=Y1,D("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.FACE_LANDMARKS_CONTOURS",k.FACE_LANDMARKS_CONTOURS),k.FACE_LANDMARKS_TESSELATION=q1,D("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.FACE_LANDMARKS_TESSELATION",k.FACE_LANDMARKS_TESSELATION);var Ee=class extends fe{constructor(e,t){super(new Ie(e,t),"input_image","norm_rect",!0),this.l={classifications:[]},y(e=this.h=new Ja,0,1,t=new B)}C(){return"ImageClassifier"}get baseOptions(){return C(this.h,B,1)}set baseOptions(e){y(this.h,0,1,e)}v(e){return y(this.h,0,2,Hi(e,C(this.h,Ni,2))),this.j(e)}Ga(e,t){return this.l={classifications:[]},Fe(this,e,t),this.l}Ha(e,t,r){return this.l={classifications:[]},Ve(this,e,r,t),this.l}o(){var e=new ve;U(e,"input_image"),U(e,"norm_rect"),N(e,"classifications");var t=new _e;Ue(t,Kh,this.h);var r=new de;me(r,2,"mediapipe.tasks.vision.image_classifier.ImageClassifierGraph"),$(r,"IMAGE:input_image"),$(r,"NORM_RECT:norm_rect"),x(r,"CLASSIFICATIONS:classifications"),r.v(t),Se(e,r),this.g.attachProtoListener("classifications",(n,i)=>{this.l=function tu(e){var r,t={classifications:Ye(e,Fh,1).map(r=>Ki(C(r,Ia,4)?.g()??[],Te(r,2)??0,ee(G(r,3))??""))};return null!=(null==(r=G(e,2,void 0,Ur))?r:"bigint"==typeof r?(Gn(r)?r=Number(r):(r=At(64,r),r=Gn(r)?Number(r):String(r)),r):Bt(r)?"number"==typeof r?Pr(r):$r(r):void 0)&&(t.timestampMs=a1(G(e,2,void 0,Ur)??po)),t}(Ch(n)),g(this,i)}),this.g.attachEmptyPacketListener("classifications",n=>{g(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Ee.prototype.classifyForVideo=Ee.prototype.Ha,Ee.prototype.classify=Ee.prototype.Ga,Ee.prototype.setOptions=Ee.prototype.v,
vendor: 17,422 bytes, line 1
1Ee.createFromModelPath=function(e,t){return I(Ee,e,{baseOptions:{modelAssetPath:t}})},Ee.createFromModelBuffer=function(e,t){return I(Ee,e,{baseOptions:{modelAssetBuffer:t}})},Ee.createFromOptions=function(e,t){return I(Ee,e,t)};var pe=class extends fe{constructor(e,t){super(new Ie(e,t),"image_in","norm_rect",!0),this.h=new Za,this.embeddings={embeddings:[]},y(e=this.h,0,1,t=new B)}C(){return"ImageEmbedder"}get baseOptions(){return C(this.h,B,1)}set baseOptions(e){y(this.h,0,1,e)}v(e){var t=this.h,r=C(this.h,$a,2);if(r=r?r.clone():new $a,void 0!==e.l2Normalize){var n=e.l2Normalize;w(r,1,null==n?n:Dr(n))}else"l2Normalize"in e&&w(r,1);return void 0!==e.quantize?w(r,2,null==(n=e.quantize)?n:Dr(n)):"quantize"in e&&w(r,2),y(t,0,2,r),this.j(e)}Na(e,t){return Fe(this,e,t),this.embeddings}Oa(e,t,r){return Ve(this,e,r,t),this.embeddings}o(){var e=new ve;U(e,"image_in"),U(e,"norm_rect"),N(e,"embeddings_out");var t=new _e;Ue(t,Xh,this.h);var r=new de;me(r,2,"mediapipe.tasks.vision.image_embedder.ImageEmbedderGraph"),$(r,"IMAGE:image_in"),$(r,"NORM_RECT:norm_rect"),x(r,"EMBEDDINGS:embeddings_out"),r.v(t),Se(e,r),this.g.attachProtoListener("embeddings_out",(n,i)=>{var s;n=Mh(n),this.embeddings={embeddings:Ye(s=n,Oh,1).map(o=>{var a={headIndex:Te(o,3)??0??-1,headName:ee(G(o,4))??""??""};if(go(o,Da,1,Ci))o=St(o=To(o,Da,1),1,xe,kt()),a.floatEmbedding=o.slice();else{let h=new Uint8Array(0);a.quantizedEmbedding=To(o,Nh,2)?.g()?.h()??h}return a}),timestampMs:a1(G(s,2,void 0,Ur)??po)},g(this,i)}),this.g.attachEmptyPacketListener("embeddings_out",n=>{g(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};pe.cosineSimilarity=function(e,t){if(e.floatEmbedding&&t.floatEmbedding)e=c1(e.floatEmbedding,t.floatEmbedding);else{if(!e.quantizedEmbedding||!t.quantizedEmbedding)throw Error("Cannot compute cosine similarity between quantized and float embeddings.");e=c1(u1(e.quantizedEmbedding),u1(t.quantizedEmbedding))}return e},pe.prototype.embedForVideo=pe.prototype.Oa,pe.prototype.embed=pe.prototype.Na,pe.prototype.setOptions=pe.prototype.v,pe.createFromModelPath=function(e,t){return I(pe,e,{baseOptions:{modelAssetPath:t}})},pe.createFromModelBuffer=function(e,t){return I(pe,e,{baseOptions:{modelAssetBuffer:t}})},pe.createFromOptions=function(e,t){return I(pe,e,t)};var Cn=class{constructor(e,t,r){this.confidenceMasks=e,this.categoryMask=t,this.qualityScores=r}close(){this.confidenceMasks?.forEach(e=>{e.close()}),this.categoryMask?.close()}};function s2(e){e.categoryMask=void 0,e.confidenceMasks=void 0,e.qualityScores=void 0}function o2(e){try{let t=new Cn(e.confidenceMasks,e.categoryMask,e.qualityScores);if(!e.l)return t;e.l(t)}finally{kn(e)}}Cn.prototype.close=Cn.prototype.close;var he=class extends fe{constructor(e,t){super(new Ie(e,t),"image_in","norm_rect",!1),this.u=[],this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new Gi,this.B=new Qa,y(this.h,0,3,this.B),y(e=this.h,0,1,t=new B)}C(){return"ImageSegmenter"}get baseOptions(){return C(this.h,B,1)}set baseOptions(e){y(this.h,0,1,e)}v(e){return void 0!==e.displayNamesLocale?w(this.h,2,Xe(e.displayNamesLocale)):"displayNamesLocale"in e&&w(this.h,2),"outputCategoryMask"in e&&(this.outputCategoryMask=e.outputCategoryMask??!1),"outputConfidenceMasks"in e&&(this.outputConfidenceMasks=e.outputConfidenceMasks??!0),super.j(e)}L(){!function Au(e){var r,t=(r=e.ja(),Ye(r,de,1)).filter(r=>(ee(G(r,1))??"").includes("mediapipe.tasks.TensorsToSegmentationCalculator"));if(e.u=[],t.length>1)throw Error("The graph has more than one mediapipe.tasks.TensorsToSegmentationCalculator.");1===t.length&&(C(t[0],_e,7)?.o()?.g()??new Map).forEach((r,n)=>{e.u[Number(n)]=ee(G(r,1))??""})}(this)}segment(e,t,r){var n="function"!=typeof t?t:{};return this.l="function"==typeof t?t:r,s2(this),Fe(this,e,n),o2(this)}eb(e,t,r,n){var i="function"!=typeof r?r:{};return this.l="function"==typeof r?r:n,s2(this),Ve(this,e,i,t),o2(this)}Ra(){return this.u}o(){var e=new ve;U(e,"image_in"),U(e,"norm_rect");var t=new _e;Ue(t,r1,this.h);var r=new de;me(r,2,"mediapipe.tasks.vision.image_segmenter.ImageSegmenterGraph"),$(r,"IMAGE:image_in"),$(r,"NORM_RECT:norm_rect"),r.v(t),Se(e,r),Tn(this,e),this.outputConfidenceMasks&&(N(e,"confidence_masks"),x(r,"CONFIDENCE_MASKS:confidence_masks"),er(this,"confidence_masks"),this.g.ha("confidence_masks",(n,i)=>{this.confidenceMasks=n.map(s=>nr(this,s,!0,!this.l)),g(this,i)}),this.g.attachEmptyPacketListener("confidence_masks",n=>{this.confidenceMasks=[],g(this,n)})),this.outputCategoryMask&&(N(e,"category_mask"),x(r,"CATEGORY_MASK:category_mask"),er(this,"category_mask"),this.g.ga("category_mask",(n,i)=>{this.categoryMask=nr(this,n,!1,!this.l),g(this,i)}),this.g.attachEmptyPacketListener("category_mask",n=>{this.categoryMask=void 0,g(this,n)})),N(e,"quality_scores"),x(r,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",(n,i)=>{this.qualityScores=n,g(this,i)}),this.g.attachEmptyPacketListener("quality_scores",n=>{this.categoryMask=void 0,g(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};he.prototype.getLabels=he.prototype.Ra,he.prototype.segmentForVideo=he.prototype.eb,he.prototype.segment=he.prototype.segment,he.prototype.setOptions=he.prototype.v,he.createFromModelPath=function(e,t){return I(he,e,{baseOptions:{modelAssetPath:t}})},he.createFromModelBuffer=function(e,t){return I(he,e,{baseOptions:{modelAssetBuffer:t}})},he.createFromOptions=function(e,t){return I(he,e,t)};var wu={0:0,1:1,2:2,3:3};function ys(){return Qi()?void 0:document.createElement("canvas")}var ue=class extends Sr{constructor(e,t){super(new pu(e,t)),this.u=new Ft,this.delegate="CPU",this.h=0,this.baseOptions=new B,this.B=this.l=0}C(){return"InteractiveSegmenter"}get i(){return this.g.i}v(e){return this.delegate=e.baseOptions?.delegate??"CPU",super.j(e)}fb(e){if(0===this.h)throw Error("Segmenter is not initialized.");var t;if(0!==this.l&&(this.i._free(this.l),this.l=0),!(t=typeof ImageData<"u"&&e instanceof ImageData))if("object"!=typeof e||null===e)t=!1;else{t=e.data;var r=e.width,n=e.height;t=Number.isInteger(r)&&r>0&&Number.isInteger(n)&&n>0&&(t instanceof Uint8ClampedArray||t instanceof Uint8Array)}if(t)t=e.width,r=e.height,e=e.data;else{if([t,r]=ts(e),typeof OffscreenCanvas<"u")n=new OffscreenCanvas(t,r);else{if(typeof document>"u")throw Error("Canvas is not supported in this environment.");n=document.createElement("canvas")}if(n.width=t,n.height=r,!(n=n.getContext("2d")))throw Error("Canvas 2D context is not supported in this environment.");n.drawImage(e,0,0),e=n.getImageData(0,0,t,r).data}if(!e)throw Error("Unsupported image source or failed to extract image pixels.");n=function({Wa:s,width:o,height:a}){if(o<=0||a<=0)throw Error(`Invalid image dimensions: ${o}x${a}. Dimensions must be positive.`);if(s%(o*a)!=0)throw Error(`Invalid image dimensions or pixel data length. Pixel data length ${s} is not a multiple of the number of pixels (${o*a}).`);if(4!=(s/=o*a)&&3!==s&&1!==s)throw Error(`Invalid image dimensions or pixel data length. Calculated channels: ${s}. Expected 1, 3, or 4.`);return s}({Wa:e.length,width:t,height:r});var i=this.i._malloc(e.length);if(this.i.HEAPU8.set(e,i),this.l=i,!this.i._interactive_segmenter_set_image(this.h,i,t,r,n))throw Error("Failed to set image on native engine.")}segment(e){if(0===this.h)throw Error("Segmenter is not initialized.");var t=function(u){u=u.map(({isCompleted:d,brushMode:A,point:T})=>{A=wu[A]??0,T=T.map(({x:we,y:Le})=>{var He=new zh;return Vt(He,1,we),Vt(He,2,Le),He});var z=new Yh;return ai(z,d),fr(z,1,Ke(A),0),oi(z,2,T),z});var p=new qh;return oi(p,1,u),Jh(p)}(e);e=this.i._malloc(t.length),this.i.HEAPU8.set(t,e);var r=this.i._malloc(12),n=r+4,i=r+8,s=0,o=this.B++;try{if(this.m)if("GPU"===this.delegate){var a=this.m;++a.g.T,a.h.set(o,performance.now())}else{var h=this.m;++h.g.P,h.h.set(o,performance.now())}if(0===(s=this.i._interactive_segmenter_segment(this.h,e,t.length,r,n,i)))throw Error("Segmentation failed.");this.m?.za(o);let u=this.i.HEAPU32[r/4],p=this.i.HEAPU32[n/4],d=new Float32Array(this.i.HEAPU8.buffer,s,this.i.HEAPU32[i/4]/4);var l=new Float32Array(d);if(a=u*p,(l instanceof Uint8Array||l instanceof Float32Array)&&l.length!==a)throw Error("Unsupported channel count: "+l.length/a);return new W([l],!0,!1,this.g.i.canvas??void 0,this.u,u,p)}finally{0!==e&&this.i._free(e),0!==r&&this.i._free(r),0!==s&&this.i._free(s)}}o(){0!==this.h&&(this.m?.xa(),this.i._interactive_segmenter_close(this.h),this.h=0),0!==this.l&&(this.i._free(this.l),this.l=0);var e=new mn;if("GPU"===this.delegate){var t=new Ii;De(e,2,It,t)}else Pe(t=new Th,1,4),De(e,1,It,t);if(y(this.baseOptions,0,3,e),e=Ph(this.baseOptions),t=this.i._malloc(e.length),this.i.HEAPU8.set(e,t),this.h=this.i._interactive_segmenter_create(t,e.length),this.i._free(t),0===this.h)throw Error("Failed to create native InteractiveSegmenter engine.");this.m?.ya()}close(){0!==this.h&&(this.i._interactive_segmenter_close(this.h),this.h=0),0!==this.l&&(this.i._free(this.l),this.l=0),this.u.close(),super.close()}};ue.prototype.close=ue.prototype.close,ue.prototype.segment=ue.prototype.segment,ue.prototype.setImage=ue.prototype.fb,ue.prototype.setOptions=ue.prototype.v,ue.createFromModelPath=function(e,t){return bn(ue,ys(),e,{baseOptions:{modelAssetPath:t}})},ue.createFromModelBuffer=function(e,t){return bn(ue,ys(),e,{baseOptions:{modelAssetBuffer:t}})},ue.createFromOptions=function(e,t){var r=t.canvas??ys();return bn(ue,r,e,t)};var Nn=class{constructor(e,t,r){this.confidenceMasks=e,this.categoryMask=t,this.qualityScores=r}close(){this.confidenceMasks?.forEach(e=>{e.close()}),this.categoryMask?.close()}};Nn.prototype.close=Nn.prototype.close;var Ce=class extends fe{constructor(e,t){super(new Ie(e,t),"image_in","norm_rect_in",!1),this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new Gi,this.u=new Qa,y(this.h,0,3,this.u),y(e=this.h,0,1,t=new B)}C(){return"InteractiveSegmenterLegacy"}get baseOptions(){return C(this.h,B,1)}set baseOptions(e){y(this.h,0,1,e)}v(e){return"outputCategoryMask"in e&&(this.outputCategoryMask=e.outputCategoryMask??!1),"outputConfidenceMasks"in e&&(this.outputConfidenceMasks=e.outputConfidenceMasks??!0),super.j(e)}segment(e,t,r,n){var i="function"!=typeof r?r:{};if(this.l="function"==typeof r?r:n,this.qualityScores=this.categoryMask=this.confidenceMasks=void 0,r=this.I+1,n=new i1,t.keypoint&&t.scribble)throw Error("Cannot provide both keypoint and scribble.");if(t.keypoint){var s=new ji;ai(s,!0),Vt(s,1,t.keypoint.x),Vt(s,2,t.keypoint.y),De(n,1,Vi,s)}else{if(!t.scribble)throw Error("Must provide either a keypoint or a scribble.");{let a=new Zh;for(s of t.scribble)ai(t=new ji,!0),Vt(t,1,s.x),Vt(t,2,s.y),pr(a,1,ji,t);De(n,2,Vi,a)}}this.g.addProtoToStream(n.g(),"mediapipe.tasks.vision.interactive_segmenter_legacy.proto.RegionOfInterest","roi_in",r),Fe(this,e,i);e:{try{let a=new Nn(this.confidenceMasks,this.categoryMask,this.qualityScores);if(!this.l){var o=a;break e}this.l(a)}finally{kn(this)}o=void 0}return o}o(){var e=new ve;U(e,"image_in"),U(e,"roi_in"),U(e,"norm_rect_in");var t=new _e;Ue(t,r1,this.h);var r=new de;me(r,2,"mediapipe.tasks.vision.interactive_segmenter_legacy.InteractiveSegmenterGraphV2"),$(r,"IMAGE:image_in"),$(r,"ROI:roi_in"),$(r,"NORM_RECT:norm_rect_in"),r.v(t),Se(e,r),Tn(this,e),this.outputConfidenceMasks&&(N(e,"confidence_masks"),x(r,"CONFIDENCE_MASKS:confidence_masks"),er(this,"confidence_masks"),this.g.ha("confidence_masks",(n,i)=>{this.confidenceMasks=n.map(s=>nr(this,s,!0,!this.l)),g(this,i)}),this.g.attachEmptyPacketListener("confidence_masks",n=>{this.confidenceMasks=[],g(this,n)})),this.outputCategoryMask&&(N(e,"category_mask"),x(r,"CATEGORY_MASK:category_mask"),er(this,"category_mask"),this.g.ga("category_mask",(n,i)=>{this.categoryMask=nr(this,n,!1,!this.l),g(this,i)}),this.g.attachEmptyPacketListener("category_mask",n=>{this.categoryMask=void 0,g(this,n)})),N(e,"quality_scores"),x(r,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",(n,i)=>{this.qualityScores=n,g(this,i)}),this.g.attachEmptyPacketListener("quality_scores",n=>{this.categoryMask=void 0,g(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Ce.prototype.segment=Ce.prototype.segment,Ce.prototype.setOptions=Ce.prototype.v,Ce.createFromModelPath=function(e,t){return I(Ce,e,{baseOptions:{modelAssetPath:t}})},Ce.createFromModelBuffer=function(e,t){return I(Ce,e,{baseOptions:{modelAssetBuffer:t}})},Ce.createFromOptions=function(e,t){return I(Ce,e,t)};var Ae=class extends fe{constructor(e,t){super(new Ie(e,t),"input_frame_gpu","norm_rect",!1),this.l={detections:[]},y(e=this.h=new s1,0,1,t=new B)}C(){return"ObjectDetector"}get baseOptions(){return C(this.h,B,1)}set baseOptions(e){y(this.h,0,1,e)}v(e){return void 0!==e.displayNamesLocale?w(this.h,2,Xe(e.displayNamesLocale)):"displayNamesLocale"in e&&w(this.h,2),void 0!==e.maxResults?Pe(this.h,3,e.maxResults):"maxResults"in e&&w(this.h,3),void 0!==e.scoreThreshold?E(this.h,4,e.scoreThreshold):"scoreThreshold"in e&&w(this.h,4),void 0!==e.categoryAllowlist?Hr(this.h,5,e.categoryAllowlist):"categoryAllowlist"in e&&w(this.h,5),void 0!==e.categoryDenylist?Hr(this.h,6,e.categoryDenylist):"categoryDenylist"in e&&w(this.h,6),this.j(e)}G(e,t){return this.l={detections:[]},Fe(this,e,t),this.l}H(e,t,r){return this.l={detections:[]},Ve(this,e,r,t),this.l}o(){var e=new ve;U(e,"input_frame_gpu"),U(e,"norm_rect"),N(e,"detections");var t=new _e;Ue(t,Qh,this.h);var r=new de;me(r,2,"mediapipe.tasks.vision.ObjectDetectorGraph"),$(r,"IMAGE:input_frame_gpu"),$(r,"NORM_RECT:norm_rect"),x(r,"DETECTIONS:detections"),r.v(t),Se(e,r),this.g.attachProtoVectorListener("detections",(n,i)=>{for(let s of n)n=Ca(s),this.l.detections.push(h1(n));g(this,i)}),this.g.attachEmptyPacketListener("detections",n=>{g(this,n)}),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Ae.prototype.detectForVideo=Ae.prototype.H,Ae.prototype.detect=Ae.prototype.G,Ae.prototype.setOptions=Ae.prototype.v,Ae.createFromModelPath=function(){var e=(0,re.A)(function*(t,r){return I(Ae,t,{baseOptions:{modelAssetPath:r}})});return function(t,r){return e.apply(this,arguments)}}(),Ae.createFromModelBuffer=function(e,t){return I(Ae,e,{baseOptions:{modelAssetBuffer:t}})},Ae.createFromOptions=function(e,t){return I(Ae,e,t)};var Es=class{constructor(e,t,r){this.landmarks=e,this.worldLandmarks=t,this.segmentationMasks=r}close(){this.segmentationMasks?.forEach(e=>{e.close()})}};function a2(e){e.landmarks=[],e.worldLandmarks=[],e.segmentationMasks=void 0}function h2(e){try{let t=new Es(e.landmarks,e.worldLandmarks,e.segmentationMasks);if(!e.u)return t;e.u(t)}finally{kn(e)}}Es.prototype.close=Es.prototype.close;var ce=class extends fe{constructor(e,t){super(new Ie(e,t),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.outputSegmentationMasks=!1,y(e=this.h=new o1,0,1,t=new B),this.B=new Ya,y(this.h,0,3,this.B),this.l=new za,y(this.h,0,2,this.l),Pe(this.l,4,1),E(this.l,2,.5),E(this.B,2,.5),E(this.h,4,.5)}C(){return"PoseLandmarker"}get baseOptions(){return C(this.h,B,1)}set baseOptions(e){y(this.h,0,1,e)}v(e){return"numPoses"in e&&Pe(this.l,4,e.numPoses??1),"minPoseDetectionConfidence"in e&&E(this.l,2,e.minPoseDetectionConfidence??.5),"minTrackingConfidence"in e&&E(this.h,4,e.minTrackingConfidence??.5),"minPosePresenceConfidence"in e&&E(this.B,2,e.minPosePresenceConfidence??.5),"outputSegmentationMasks"in e&&(this.outputSegmentationMasks=e.outputSegmentationMasks??!1),this.j(e)}G(e,t,r){var n="function"!=typeof t?t:{};return this.u="function"==typeof t?t:r,a2(this),Fe(this,e,n),h2(this)}H(e,t,r,n){var i="function"!=typeof r?r:{};return this.u="function"==typeof r?r:n,a2(this),Ve(this,e,i,t),h2(this)}o(){var e=new ve;U(e,"image_in"),U(e,"norm_rect"),N(e,"normalized_landmarks"),N(e,"world_landmarks"),N(e,"segmentation_masks");var t=new _e;Ue(t,eu,this.h);var r=new de;me(r,2,"mediapipe.tasks.vision.pose_landmarker.PoseLandmarkerGraph"),$(r,"IMAGE:image_in"),$(r,"NORM_RECT:norm_rect"),x(r,"NORM_LANDMARKS:normalized_landmarks"),x(r,"WORLD_LANDMARKS:world_landmarks"),r.v(t),Se(e,r),Tn(this,e),this.g.attachProtoVectorListener("normalized_landmarks",(n,i)=>{this.landmarks=[];for(let s of n)n=Tr(s),this.landmarks.push(yn(n));g(this,i)}),this.g.attachEmptyPacketListener("normalized_landmarks",n=>{this.landmarks=[],g(this,n)}),this.g.attachProtoVectorListener("world_landmarks",(n,i)=>{this.worldLandmarks=[];for(let s of n)n=Jt(s),this.worldLandmarks.push(kr(n));g(this,i)}),this.g.attachEmptyPacketListener("world_landmarks",n=>{this.worldLandmarks=[],g(this,n)}),this.outputSegmentationMasks&&(x(r,"SEGMENTATION_MASK:segmentation_masks"),er(this,"segmentation_masks"),this.g.ha("segmentation_masks",(n,i)=>{this.segmentationMasks=n.map(s=>nr(this,s,!0,!this.u)),g(this,i)}),this.g.attachEmptyPacketListener("segmentation_masks",n=>{this.segmentationMasks=[],g(this,n)})),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};ce.prototype.detectForVideo=ce.prototype.H,ce.prototype.detect=ce.prototype.G,ce.prototype.setOptions=ce.prototype.v,ce.createFromModelPath=function(e,t){return I(ce,e,{baseOptions:{modelAssetPath:t}})},ce.createFromModelBuffer=function(e,t){return I(ce,e,{baseOptions:{modelAssetBuffer:t}})},ce.createFromOptions=function(e,t){return I(ce,e,t)},ce.POSE_CONNECTIONS=r2,D("module$exports$google3$third_party$mediapipe$tasks$web$vision$pose_landmarker$pose_landmarker.PoseLandmarker.POSE_CONNECTIONS",ce.POSE_CONNECTIONS)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.