@mediapipe/tasks-vision 0.10.5 → 0.10.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/vision_bundle.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=self;function e(t,e,n){return t.call.apply(t.bind,arguments)}function n(t,e,n){if(!t)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function r(t,s,a){return(r=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?e:n).apply(null,arguments)}function s(e,n){e=e.split(".");var r,s=t;e[0]in s||void 0===s.execScript||s.execScript("var "+e[0]);for(;e.length&&(r=e.shift());)e.length||void 0===n?s=s[r]&&s[r]!==Object.prototype[r]?s[r]:s[r]={}:s[r]=n}function a(t,e){function n(){}n.prototype=e.prototype,t.Ia=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.Fa=function(t,n,r){for(var s=Array(arguments.length-2),a=2;a<arguments.length;a++)s[a-2]=arguments[a];return e.prototype[n].apply(t,s)}}function d(t){return t}function i(t,e){if(Error.captureStackTrace)Error.captureStackTrace(this,i);else{const t=Error().stack;t&&(this.stack=t)}t&&(this.message=String(t)),void 0!==e&&(this.cause=e)}function o(){throw Error("Invalid UTF8")}function c(t,e){return e=String.fromCharCode.apply(null,e),null==t?e:t+e}let h,u;a(i,Error),i.prototype.name="CustomError";const l="undefined"!=typeof TextDecoder;let f;const p="undefined"!=typeof TextEncoder;function g(t){if(p)t=(f||=new TextEncoder).encode(t);else{let n=0;const r=new Uint8Array(3*t.length);for(let s=0;s<t.length;s++){var e=t.charCodeAt(s);if(128>e)r[n++]=e;else{if(2048>e)r[n++]=e>>6|192;else{if(55296<=e&&57343>=e){if(56319>=e&&s<t.length){const a=t.charCodeAt(++s);if(56320<=a&&57343>=a){e=1024*(e-55296)+a-56320+65536,r[n++]=e>>18|240,r[n++]=e>>12&63|128,r[n++]=e>>6&63|128,r[n++]=63&e|128;continue}s--}e=65533}r[n++]=e>>12|224,r[n++]=e>>6&63|128}r[n++]=63&e|128}}t=n===r.length?r:r.subarray(0,n)}return t}function m(e){t.setTimeout((()=>{throw e}),0)}var y,_;t:{for(var v=["CLOSURE_FLAGS"],w=t,A=0;A<v.length;A++)if(null==(w=w[v[A]])){_=null;break t}_=w}var E,b=_&&_[610401301];y=null!=b&&b;const T=t.navigator;function k(t){return!!y&&(!!E&&E.brands.some((({brand:e})=>e&&-1!=e.indexOf(t))))}function x(e){var n;return(n=t.navigator)&&(n=n.userAgent)||(n=""),-1!=n.indexOf(e)}function S(){return!!y&&(!!E&&0<E.brands.length)}function L(){return!S()&&(x("Trident")||x("MSIE"))}function F(){return S()?k("Chromium"):(x("Chrome")||x("CriOS"))&&!(!S()&&x("Edge"))||x("Silk")}E=T&&T.userAgentData||null;const C=Array.prototype.some?function(t,e){return Array.prototype.some.call(t,e,void 0)}:function(t,e){const n=t.length,r="string"==typeof t?t.split(""):t;for(let s=0;s<n;s++)if(s in r&&e.call(void 0,r[s],s,t))return!0;return!1};var O=L();!x("Android")||F(),F(),x("Safari")&&(F()||!S()&&x("Coast")||!S()&&x("Opera")||!S()&&x("Edge")||(S()?k("Microsoft Edge"):x("Edg/"))||S()&&k("Opera"));var R={},M=null;function P(t){var e=t.length,n=3*e/4;n%3?n=Math.floor(n):-1!="=.".indexOf(t[e-1])&&(n=-1!="=.".indexOf(t[e-2])?n-2:n-1);var r=new Uint8Array(n),s=0;return function(t,e){function n(e){for(;r<t.length;){var n=t.charAt(r++),s=M[n];if(null!=s)return s;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return e}I();for(var r=0;;){var s=n(-1),a=n(0),d=n(64),i=n(64);if(64===i&&-1===s)break;e(s<<2|a>>4),64!=d&&(e(a<<4&240|d>>2),64!=i&&e(d<<6&192|i))}}(t,(function(t){r[s++]=t})),s!==n?r.subarray(0,s):r}function I(){if(!M){M={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],n=0;5>n;n++){var r=t.concat(e[n].split(""));R[n]=r;for(var s=0;s<r.length;s++){var a=r[s];void 0===M[a]&&(M[a]=s)}}}}var N="undefined"!=typeof Uint8Array,D=!O&&"function"==typeof btoa;function $(t){if(!D){var e;void 0===e&&(e=0),I(),e=R[e];var n=Array(Math.floor(t.length/3)),r=e[64]||"";let o=0,c=0;for(;o<t.length-2;o+=3){var s=t[o],a=t[o+1],d=t[o+2],i=e[s>>2];s=e[(3&s)<<4|a>>4],a=e[(15&a)<<2|d>>6],d=e[63&d],n[c++]=i+s+a+d}switch(i=0,d=r,t.length-o){case 2:d=e[(15&(i=t[o+1]))<<2]||r;case 1:t=t[o],n[c]=e[t>>2]+e[(3&t)<<4|i>>4]+d+r}return n.join("")}for(e="",n=0,r=t.length-10240;n<r;)e+=String.fromCharCode.apply(null,t.subarray(n,n+=10240));return e+=String.fromCharCode.apply(null,n?t.subarray(n):t),btoa(e)}const U=/[-_.]/g,B={"-":"+",_:"/",".":"="};function j(t){return B[t]||""}function G(t){if(!D)return P(t);U.test(t)&&(t=t.replace(U,j)),t=atob(t);const e=new Uint8Array(t.length);for(let n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e}function V(t){return N&&null!=t&&t instanceof Uint8Array}let W;function z(){return W||=new Uint8Array(0)}var H={};let K;function X(t){if(t!==H)throw Error("illegal external caller")}function Y(){return K||=new J(null,H)}function q(t){X(H);var e=t.N;return null==(e=null==e||V(e)?e:"string"==typeof e?G(e):null)?e:t.N=e}var J=class{constructor(t,e){if(X(e),this.N=t,null!=t&&0===t.length)throw Error("ByteString should be constructed with non-empty values")}ja(){const t=q(this);return t?new Uint8Array(t):z()}};function Z(t,e){return Error(`Invalid wire type: ${t} (at position ${e})`)}function Q(){return Error("Failed to read varint, encoding is invalid.")}function tt(t,e){return Error(`Tried to read past the end of the data ${e} > ${t}`)}function et(t){return 0==t.length?Y():new J(t,H)}function nt(t){if("string"==typeof t)return{buffer:G(t),I:!1};if(Array.isArray(t))return{buffer:new Uint8Array(t),I:!1};if(t.constructor===Uint8Array)return{buffer:t,I:!1};if(t.constructor===ArrayBuffer)return{buffer:new Uint8Array(t),I:!1};if(t.constructor===J)return{buffer:q(t)||z(),I:!0};if(t instanceof Uint8Array)return{buffer:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),I:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers")}const rt="function"==typeof Uint8Array.prototype.slice;let st,at=0,dt=0;function it(t){const e=0>t;let n=(t=Math.abs(t))>>>0;if(t=Math.floor((t-n)/4294967296),e){const[e,r]=lt(n,t);t=r,n=e}at=n>>>0,dt=t>>>0}function ot(t){const e=st||=new DataView(new ArrayBuffer(8));e.setFloat32(0,+t,!0),dt=0,at=e.getUint32(0,!0)}function ct(t,e){return 4294967296*e+(t>>>0)}function ht(t,e){const n=2147483648&e;return n&&(e=~e>>>0,0==(t=1+~t>>>0)&&(e=e+1>>>0)),t=ct(t,e),n?-t:t}function ut(t){if(16>t.length)it(Number(t));else if("function"==typeof BigInt)t=BigInt(t),at=Number(t&BigInt(4294967295))>>>0,dt=Number(t>>BigInt(32)&BigInt(4294967295));else{const e=+("-"===t[0]);dt=at=0;const n=t.length;for(let r=e,s=(n-e)%6+e;s<=n;r=s,s+=6){const e=Number(t.slice(r,s));dt*=1e6,at=1e6*at+e,4294967296<=at&&(dt+=Math.trunc(at/4294967296),dt>>>=0,at>>>=0)}if(e){const[t,e]=lt(at,dt);at=t,dt=e}}}function lt(t,e){return e=~e,t?t=1+~t:e+=1,[t,e]}function ft(t,e,{O:n=!1}={}){t.O=n,e&&(e=nt(e),t.h=e.buffer,t.u=e.I,t.A=0,t.j=t.h.length,t.g=t.A)}function pt(t,e){if(t.g=e,e>t.j)throw tt(t.j,e)}function gt(t,e){let n,r=0,s=0,a=0;const d=t.h;let i=t.g;do{n=d[i++],r|=(127&n)<<a,a+=7}while(32>a&&128&n);for(32<a&&(s|=(127&n)>>4),a=3;32>a&&128&n;a+=7)n=d[i++],s|=(127&n)<<a;if(pt(t,i),128>n)return e(r>>>0,s>>>0);throw Q()}function mt(t){let e=0,n=t.g;const r=n+10,s=t.h;for(;n<r;){const r=s[n++];if(e|=r,0==(128&r))return pt(t,n),!!(127&e)}throw Q()}function yt(t){var e=t.h;const n=t.g,r=e[n],s=e[n+1],a=e[n+2];return e=e[n+3],pt(t,t.g+4),(r<<0|s<<8|a<<16|e<<24)>>>0}function _t(t,e){if(0>e)throw Error(`Tried to read a negative byte length: ${e}`);const n=t.g,r=n+e;if(r>t.j)throw tt(e,t.j-n);return t.g=r,n}function vt(t,e){if(0==e)return Y();var n=_t(t,e);return t.O&&t.u?n=t.h.subarray(n,n+e):(t=t.h,n=n===(e=n+e)?z():rt?t.slice(n,e):new Uint8Array(t.subarray(n,e))),et(n)}var wt=class{constructor(t,e){this.h=null,this.u=!1,this.g=this.j=this.A=0,ft(this,t,e)}reset(){this.g=this.A}m(){const t=this.h;let e=this.g,n=t[e++],r=127&n;if(128&n&&(n=t[e++],r|=(127&n)<<7,128&n&&(n=t[e++],r|=(127&n)<<14,128&n&&(n=t[e++],r|=(127&n)<<21,128&n&&(n=t[e++],r|=n<<28,128&n&&128&t[e++]&&128&t[e++]&&128&t[e++]&&128&t[e++]&&128&t[e++])))))throw Q();return pt(this,e),r}i(){return this.m()>>>0}o(){var t=yt(this);const e=2*(t>>31)+1,n=t>>>23&255;return t&=8388607,255==n?t?NaN:1/0*e:0==n?e*Math.pow(2,-149)*t:e*Math.pow(2,n-150)*(t+Math.pow(2,23))}B(){return this.m()}},At=[];function Et(t){var e=t.g;if(e.g==e.j)return!1;t.j=t.g.g;var n=t.g.i();if(e=n>>>3,!(0<=(n&=7)&&5>=n))throw Z(n,t.j);if(1>e)throw Error(`Invalid field number: ${e} (at position ${t.j})`);return t.m=e,t.h=n,!0}function bt(t){switch(t.h){case 0:0!=t.h?bt(t):mt(t.g);break;case 1:pt(t=t.g,t.g+8);break;case 2:if(2!=t.h)bt(t);else{var e=t.g.i();pt(t=t.g,t.g+e)}break;case 5:pt(t=t.g,t.g+4);break;case 3:for(e=t.m;;){if(!Et(t))throw Error("Unmatched start-group tag: stream EOF");if(4==t.h){if(t.m!=e)throw Error("Unmatched end-group tag");break}bt(t)}break;default:throw Z(t.h,t.j)}}function Tt(t,e,n){const r=t.g.j,s=t.g.i(),a=t.g.g+s;let d=a-r;if(0>=d&&(t.g.j=a,n(e,t,void 0,void 0,void 0),d=a-t.g.g),d)throw Error(`Message parsing ended unexpectedly. Expected to read ${s} bytes, instead read ${s-d} bytes, either the data ended unexpectedly or the message misreported its own length`);return t.g.g=a,t.g.j=r,e}function kt(t){var e=t.g.i(),n=_t(t=t.g,e);if(t=t.h,l){var r,s=t;(r=u)||(r=u=new TextDecoder("utf-8",{fatal:!0})),t=n+e,s=0===n&&t===s.length?s:s.subarray(n,t);try{var a=r.decode(s)}catch(t){if(void 0===h){try{r.decode(new Uint8Array([128]))}catch(t){}try{r.decode(new Uint8Array([97])),h=!0}catch(t){h=!1}}throw!h&&(u=void 0),t}}else{e=(a=n)+e,n=[];let i,h=null;for(;a<e;){var d=t[a++];128>d?n.push(d):224>d?a>=e?o():(i=t[a++],194>d||128!=(192&i)?(a--,o()):n.push((31&d)<<6|63&i)):240>d?a>=e-1?o():(i=t[a++],128!=(192&i)||224===d&&160>i||237===d&&160<=i||128!=(192&(s=t[a++]))?(a--,o()):n.push((15&d)<<12|(63&i)<<6|63&s)):244>=d?a>=e-2?o():(i=t[a++],128!=(192&i)||0!=i-144+(d<<28)>>30||128!=(192&(s=t[a++]))||128!=(192&(r=t[a++]))?(a--,o()):(d=(7&d)<<18|(63&i)<<12|(63&s)<<6|63&r,d-=65536,n.push(55296+(d>>10&1023),56320+(1023&d)))):o(),8192<=n.length&&(h=c(h,n),n.length=0)}a=c(h,n)}return a}function xt(t){const e=t.g.i();return vt(t.g,e)}function St(t,e,n){var r=t.g.i();for(r=t.g.g+r;t.g.g<r;)n.push(e.call(t.g))}var Lt=[];function Ft(t){return t?/^\d+$/.test(t)?(ut(t),new Ct(at,dt)):null:Ot||=new Ct(0,0)}var Ct=class{constructor(t,e){this.h=t>>>0,this.g=e>>>0}};let Ot;function Rt(t){return t?/^-?\d+$/.test(t)?(ut(t),new Mt(at,dt)):null:Pt||=new Mt(0,0)}var Mt=class{constructor(t,e){this.h=t>>>0,this.g=e>>>0}};let Pt;function It(t,e,n){for(;0<n||127<e;)t.g.push(127&e|128),e=(e>>>7|n<<25)>>>0,n>>>=7;t.g.push(e)}function Nt(t,e){for(;127<e;)t.g.push(127&e|128),e>>>=7;t.g.push(e)}function Dt(t,e){if(0<=e)Nt(t,e);else{for(let n=0;9>n;n++)t.g.push(127&e|128),e>>=7;t.g.push(1)}}function $t(t,e){t.g.push(e>>>0&255),t.g.push(e>>>8&255),t.g.push(e>>>16&255),t.g.push(e>>>24&255)}function Ut(t,e){0!==e.length&&(t.j.push(e),t.h+=e.length)}function Bt(t,e,n){Nt(t.g,8*e+n)}function jt(t,e){return Bt(t,e,2),e=t.g.end(),Ut(t,e),e.push(t.h),e}function Gt(t,e){var n=e.pop();for(n=t.h+t.g.length()-n;127<n;)e.push(127&n|128),n>>>=7,t.h++;e.push(n),t.h++}function Vt(t,e,n){Bt(t,e,2),Nt(t.g,n.length),Ut(t,t.g.end()),Ut(t,n)}function Wt(t,e,n,r){null!=n&&(e=jt(t,e),r(n,t),Gt(t,e))}class zt{constructor(t,e,n){this.g=t,this.h=e,this.j=n}}function Ht(t){return Array.prototype.slice.call(t)}const Kt="function"==typeof Symbol&&"symbol"==typeof Symbol()?Symbol():void 0;var Xt=Kt?(t,e)=>{t[Kt]|=e}:(t,e)=>{void 0!==t.g?t.g|=e:Object.defineProperties(t,{g:{value:e,configurable:!0,writable:!0,enumerable:!1}})};function Yt(t){const e=Jt(t);1!=(1&e)&&(Object.isFrozen(t)&&(t=Ht(t)),Qt(t,1|e))}var qt=Kt?(t,e)=>{t[Kt]&=~e}:(t,e)=>{void 0!==t.g&&(t.g&=~e)},Jt=Kt?t=>0|t[Kt]:t=>0|t.g,Zt=Kt?t=>t[Kt]:t=>t.g,Qt=Kt?(t,e)=>{t[Kt]=e}:(t,e)=>{void 0!==t.g?t.g=e:Object.defineProperties(t,{g:{value:e,configurable:!0,writable:!0,enumerable:!1}})};function te(t){return Xt(t,1),t}function ee(t){return Xt(t,34),t}function ne(t,e){Qt(e,-255&(0|t))}function re(t,e){Qt(e,-221&(34|t))}function se(t){return 0===(t=t>>11&1023)?536870912:t}var ae,de={};function ie(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)&&t.constructor===Object}function oe(t,e,n){if(null!=t)if("string"==typeof t)t=t?new J(t,H):Y();else if(t.constructor!==J)if(V(t))t=n?et(t):t.length?new J(new Uint8Array(t),H):Y();else{if(!e)throw Error();t=void 0}return t}const ce=[];function he(t){if(2&t)throw Error()}Qt(ce,39),ae=Object.freeze(ce);class ue{constructor(t,e,n){this.j=0,this.g=t,this.h=e,this.m=n}next(){if(this.j<this.g.length){const t=this.g[this.j++];return{done:!1,value:this.h?this.h.call(this.m,t):t}}return{done:!0,value:void 0}}[Symbol.iterator](){return new ue(this.g,this.h,this.m)}}var le={};let fe,pe;function ge(t,e){(e=fe?e[fe]:void 0)&&(t[fe]=Ht(e))}function me(t,e){t.__closure__error__context__984382||(t.__closure__error__context__984382={}),t.__closure__error__context__984382.severity=e}function ye(t){return null==t?t:"number"==typeof t||"NaN"===t||"Infinity"===t||"-Infinity"===t?Number(t):void 0}function _e(t){return null==t?t:"boolean"==typeof t||"number"==typeof t?!!t:void 0}function ve(t){return"number"==typeof t&&Number.isFinite(t)||!!t&&"string"==typeof t&&isFinite(t)}function we(t){if(null==t)return t;if("string"==typeof t){if(!t)return;t=+t}return"number"==typeof t?t:void 0}function Ae(t){if(null==t)return t;if("string"==typeof t){if(!t)return;t=+t}return"number"==typeof t?t:void 0}function Ee(t){if("string"!=typeof t)throw Error();return t}function be(t){if(null!=t&&"string"!=typeof t)throw Error();return t}function Te(t){return null==t||"string"==typeof t?t:void 0}function ke(t,e,n,r){var s=!1;return null==t||"object"!=typeof t||(s=Array.isArray(t))||t.M!==de?s?(0===(s=n=Jt(t))&&(s|=32&r),(s|=2&r)!==n&&Qt(t,s),new e(t)):(n?2&r?(t=e[xe])?e=t:(ee((t=new e).v),e=e[xe]=t):e=new e:e=void 0,e):t}const xe="function"==typeof Symbol&&"symbol"==typeof Symbol()?Symbol():"di";function Se(t){return t}function Le(t,e,n){return"string"==typeof(t="number"===(e=typeof t)||"string"===e?t:n?0:void 0)&&(n=+t,Number.isSafeInteger(n))?n:t}let Fe,Ce;function Oe(t){switch(typeof t){case"number":return 0<t?void 0:0===t?Ce||=[0,void 0]:[-t,void 0];case"string":return[0,t];case"object":return t}}function Re(t,e){return Me(t,e[0],e[1])}function Me(t,e,n){if(null==t&&(t=Fe),Fe=void 0,null==t){var r=96;n?(t=[n],r|=512):t=[],e&&(r=-2095105&r|(1023&e)<<11)}else{if(!Array.isArray(t))throw Error();if(64&(r=Jt(t)))return pe&&delete t[pe],t;if(r|=64,n&&(r|=512,n!==t[0]))throw Error();t:{var s=(n=t).length;if(s){const t=s-1;var a=n[t];if(ie(a)){1024<=(s=t-(e=+!!(512&(r|=256))-1))&&(Pe(n,e,a),s=1023),r=-2095105&r|(1023&s)<<11;break t}}e&&(a=+!!(512&r)-1,1024<(e=Math.max(e,s-a))&&(Pe(n,a,{}),r|=256,e=1023),r=-2095105&r|(1023&e)<<11)}}return Qt(t,r),t}function Pe(t,e,n){const r=1023+e,s=t.length;for(let a=r;a<s;a++){const r=t[a];null!=r&&r!==n&&(n[a-e]=r)}t.length=r+1,t[r]=n}function Ie(t){if(2&t.g)throw Error("Cannot mutate an immutable Map")}var Ne=class extends Map{constructor(t,e,n=Se,r=Se){super();let s=Jt(t);s|=64,Qt(t,s),this.g=s,this.j=e,this.h=n||Se,this.i=this.j?De:r||Se;for(let a=0;a<t.length;a++){const d=t[a],i=n(d[0],!1,!0);let o=d[1];e?void 0===o&&(o=null):o=r(d[1],!1,!0,void 0,void 0,s),super.set(i,o)}}o(t=$e){return this.m(t)}m(t=$e){const e=[],n=super.entries();for(var r;!(r=n.next()).done;)(r=r.value)[0]=t(r[0]),r[1]=t(r[1]),e.push(r);return e}clear(){Ie(this),super.clear()}delete(t){return Ie(this),super.delete(this.h(t,!0,!1))}entries(){var t=this.A();return new ue(t,Ue,this)}keys(){return this.B()}values(){var t=this.A();return new ue(t,Ne.prototype.get,this)}forEach(t,e){super.forEach(((n,r)=>{t.call(e,this.get(r),r,this)}))}set(t,e){return Ie(this),null==(t=this.h(t,!0,!1))?this:null==e?(super.delete(t),this):super.set(t,this.i(e,!0,!0,this.j,!1,this.g))}D(t){const e=this.h(t[0],!1,!0);t=t[1],t=this.j?void 0===t?null:t:this.i(t,!1,!0,void 0,!1,this.g),super.set(e,t)}has(t){return super.has(this.h(t,!1,!1))}get(t){t=this.h(t,!1,!1);const e=super.get(t);if(void 0!==e){var n=this.j;return n?((n=this.i(e,!1,!0,n,this.u,this.g))!==e&&super.set(t,n),n):e}}A(){return Array.from(super.keys())}B(){return super.keys()}[Symbol.iterator](){return this.entries()}};function De(t,e,n,r,s,a){return t=ke(t,r,n,a),s&&(t=Ke(t)),t}function $e(t){return t}function Ue(t){return[t,this.get(t)]}function Be(t,e,n,r,s,a){if(null!=t){if(Array.isArray(t))t=s&&0==t.length&&1&Jt(t)?void 0:a&&2&Jt(t)?t:je(t,e,n,void 0!==r,s,a);else if(ie(t)){const d={};for(let i in t)d[i]=Be(t[i],e,n,r,s,a);t=d}else t=e(t,r);return t}}function je(t,e,n,r,s,a){const d=r||n?Jt(t):0;r=r?!!(32&d):void 0;const i=Ht(t);for(let t=0;t<i.length;t++)i[t]=Be(i[t],e,n,r,s,a);return n&&(ge(i,t),n(d,i)),i}function Ge(t){return Be(t,Ve,void 0,void 0,!1,!1)}function Ve(t){return t.M===de?t.toJSON():t instanceof Ne?t.o(Ge):function(t){switch(typeof t){case"number":return isFinite(t)?t:String(t);case"boolean":return t?1:0;case"object":if(t&&!Array.isArray(t)){if(V(t))return $(t);if(t instanceof J){const e=t.N;return null==e?"":"string"==typeof e?e:t.N=$(e)}if(t instanceof Ne)return t.o()}}return t}(t)}function We(t,e,n=re){if(null!=t){if(N&&t instanceof Uint8Array)return e?t:new Uint8Array(t);if(Array.isArray(t)){const r=Jt(t);return 2&r?t:!e||68&r||!(32&r||0===r)?je(t,We,4&r?re:n,!0,!1,!0):(Qt(t,34|r),t)}return t.M===de?(e=t.v,t=2&(n=Zt(e))?t:ze(t,e,n,!0)):t instanceof Ne&&(e=ee(t.m(We)),t=new Ne(e,t.j,t.h,t.i)),t}}function ze(t,e,n,r){return t=t.constructor,Fe=e=He(e,n,r),e=new t(e),Fe=void 0,e}function He(t,e,n){const r=n||2&e?re:ne,s=!!(32&e);return t=function(t,e,n){const r=Ht(t);var s=r.length;const a=256&e?r[s-1]:void 0;for(s+=a?-1:0,e=512&e?1:0;e<s;e++)r[e]=n(r[e]);if(a){e=r[e]={};for(const t in a)e[t]=n(a[t])}return ge(r,t),r}(t,e,(t=>We(t,s,r))),Xt(t,32|(n?2:0)),t}function Ke(t){const e=t.v,n=Zt(e);return 2&n?ze(t,e,n,!1):t}function Xe(t,e){return Ye(t=t.v,Zt(t),e)}function Ye(t,e,n,r){if(-1===n)return null;if(n>=se(e)){if(256&e)return t[t.length-1][n]}else{var s=t.length;if(r&&256&e&&null!=(r=t[s-1][n]))return r;if((e=n+(+!!(512&e)-1))<s)return t[e]}}function qe(t,e,n,r){const s=t.v,a=Zt(s);return he(a),Je(s,a,e,n,r),t}function Je(t,e,n,r,s){var a=se(e);if(n>=a||s){if(s=e,256&e)a=t[t.length-1];else{if(null==r)return;a=t[a+(+!!(512&e)-1)]={},s|=256}a[n]=r,s!==e&&Qt(t,s)}else t[n+(+!!(512&e)-1)]=r,256&e&&(n in(t=t[t.length-1])&&delete t[n])}function Ze(t,e,n,r,s){var a=2&e;let d=Ye(t,e,n,s);Array.isArray(d)||(d=ae);const i=Jt(d);if(1&i||te(d),a)2&i||ee(d),1&r||Object.freeze(d);else{a=!(2&r);const o=2&i;1&r||!o?a&&32&i&&!o&&qt(d,32):(d=te(Ht(d)),Je(t,e,n,d,s))}return d}function Qe(t,e){t=t.v;const n=Zt(t),r=Ye(t,n,e),s=ye(r);return null!=s&&s!==r&&Je(t,n,e,s),s}function tn(t){t=t.v;const e=Zt(t),n=Ye(t,e,1),r=oe(n,!0,!!(34&e));return null!=r&&r!==n&&Je(t,e,1,r),r}function en(t,e,n){t=t.v;const r=Zt(t),s=2&r;let a=Ze(t,r,e,1),d=Jt(a);if(!(4&d)){Object.isFrozen(a)&&(d=0,a=Ht(a),Je(t,r,e,a));let i=0,o=0;for(;i<a.length;i++){const t=n(a[i]);null!=t&&(a[o++]=t)}o<i&&(a.length=o),d|=5,s&&(d|=34),Qt(a,d),2&d&&Object.freeze(a)}return!s&&(2&d||Object.isFrozen(a))&&(a=Ht(a),Xt(a,5),Je(t,r,e,a)),a}let nn;function rn(){return nn??=new Ne(ee([]),void 0,void 0,void 0,le)}function sn(t){t=Ht(t);for(let e=0;e<t.length;e++){const n=t[e]=Ht(t[e]);Array.isArray(n[1])&&(n[1]=ee(n[1]))}return t}function an(t,e,n){{t=t.v;const r=Zt(t);if(he(r),null==n)Je(t,r,e);else{if(!(4&Jt(n))){Object.isFrozen(n)&&(n=Ht(n));for(let t=0;t<n.length;t++)n[t]=Ee(n[t]);Qt(n,5)}Je(t,r,e,n)}}}function dn(t,e){return on(t=t.v,Zt(t),za)===e?e:-1}function on(t,e,n){let r=0;for(let s=0;s<n.length;s++){const a=n[s];null!=Ye(t,e,a)&&(0!==r&&Je(t,e,r),r=a)}return r}function cn(t,e,n,r){const s=Zt(t);he(s);const a=Ye(t,s,n,r);let d;if(null!=a&&a.M===de)return(e=Ke(a))!==a&&Je(t,s,n,e,r),e.v;if(Array.isArray(a)){const t=Jt(a);d=2&t?He(a,t,!1):a,d=Re(d,e)}else d=Re(void 0,e);return d!==a&&Je(t,s,n,d,r),d}function hn(t,e,n,r){t=t.v;const s=Zt(t),a=Ye(t,s,n,r);return(e=ke(a,e,!1,s))!==a&&null!=e&&Je(t,s,n,e,r),e}function un(t,e,n,r=!1){if(null==(e=hn(t,e,n,r)))return e;t=t.v;const s=Zt(t);if(!(2&s)){const a=Ke(e);a!==e&&Je(t,s,n,e=a,r)}return e}function ln(t,e,n,r,s){var a=!!(2&e),d=Ze(t,e,r,1);if(d===ae||!(4&Jt(d))){var i=d;d=!!(2&e);var o=!!(2&Jt(i));a=i,!d&&o&&(i=Ht(i));var c=e|(o?2:0);o=o||void 0;let h=0,u=0;for(;h<i.length;h++){const t=ke(i[h],n,!1,c);void 0!==t&&(o=o||2&Zt(t.v),i[u++]=t)}return u<h&&(i.length=u),c=5|(i=Jt(n=i)),i!=(o=o?-9&c:8|c)&&(Object.isFrozen(n)&&(n=Ht(n)),Qt(n,o)),a!==(i=n)&&Je(t,e,r,i),(d&&2!==s||1===s)&&Object.freeze(i),i}return 3===s||(a?2===s&&(s=Jt(d),d=Ht(d),Qt(d,s),Je(t,e,r,d)):(a=Object.isFrozen(d),1===s?a||Object.freeze(d):(n=-35&(s=Jt(d)),a&&(s=0,Je(t,e,r,d=Ht(d))),s!==n&&Qt(d,n)))),d}function fn(t,e,n){var r=t.v;const s=Zt(r);if(e=ln(r,s,e,n,(t=!!(2&s))?1:2),!(t||8&Jt(e))){for(n=0;n<e.length;n++)(t=e[n])!==(r=Ke(t))&&(e[n]=r);Xt(e,8)}return e}function pn(t,e,n,r,s){return null==r&&(r=void 0),qe(t,n,r,s)}function gn(t,e,n,r){null==r&&(r=void 0),t=t.v;const s=Zt(t);he(s),(n=on(t,s,n))&&n!==e&&null!=r&&Je(t,s,n),Je(t,s,e,r)}function mn(t,e,n){t=t.v;const r=Zt(t);he(r),t=ln(t,r,e,1,2),e=null!=n?n:new e,t.push(e),e.I()&&qt(t,8)}function yn(t,e){return we(Xe(t,e))}function _n(t){return t=null==(t=Xe(t,2))||ve(t)?t:void 0}function vn(t,e){return Te(Xe(t,e))}function wn(t){return t??0}function An(t,e){return wn(Qe(t,e))}function En(t,e,n){if(null!=n){if("boolean"!=typeof n)throw t=typeof n,Error(`Expected boolean but got ${"object"!=t?t:n?Array.isArray(n)?"array":t:"null"}: ${n}`);n=!!n}qe(t,e,n)}function bn(t,e,n){if(null!=n){if("number"!=typeof n)throw me(t=Error(),"warning"),t;if(!Number.isFinite(n)){const t=Error();me(t,"incident"),m(t)}}qe(t,e,n)}function Tn(t,e,n){if(null!=n&&"number"!=typeof n)throw Error(`Value of float/double field must be a number, found ${typeof n}: ${n}`);qe(t,e,n)}function kn(t,e,n){n=Ee(n),t=t.v;const r=Zt(t);he(r),Ze(t,r,e,2).push(n)}function xn(t,e,n){e.g?e.m(t,e.g,e.h,n,!0):e.m(t,e.h,n,!0)}Ne.prototype.toJSON=void 0;var Sn=class{constructor(t,e){this.v=Me(t,e)}toJSON(){return Ln(this,je(this.v,Ve,void 0,void 0,!1,!1),!0)}j(){var t=jd;return t.g?t.j(this,t.g,t.h,!0):t.j(this,t.h,t.defaultValue,!0)}clone(){const t=this.v;return ze(this,t,Zt(t),!1)}I(){return!!(2&Jt(this.v))}};function Ln(t,e,n){var r=t.constructor.C,s=se(Zt(n?t.v:e)),a=!1;if(r){if(!n){var d;if((e=Ht(e)).length&&ie(d=e[e.length-1]))for(a=0;a<r.length;a++)if(r[a]>=s){Object.assign(e[e.length-1]={},d);break}a=!0}var i;s=e,n=!n,t=se(d=Zt(t.v)),d=+!!(512&d)-1;for(let e=0;e<r.length;e++){var o=r[e];if(o<t){var c=s[o+=d];null==c?s[o]=n?ae:te([]):n&&c!==ae&&Yt(c)}else{if(!i){var h=void 0;s.length&&ie(h=s[s.length-1])?i=h:s.push(i={})}c=i[o],null==i[o]?i[o]=n?ae:te([]):n&&c!==ae&&Yt(c)}}}if(!(r=e.length))return e;let u,l;if(ie(i=e[r-1])){t:{var f=i;h={},s=!1;for(let t in f)n=f[t],Array.isArray(n)&&n!=n&&(s=!0),null!=n?h[t]=n:s=!0;if(s){for(let t in h){f=h;break t}f=null}}f!=i&&(u=!0),r--}for(;0<r&&null==(i=e[r-1]);r--)l=!0;return u||l?(e=a?e:Array.prototype.slice.call(e,0,r),a&&(e.length=r),f&&e.push(f),e):e}function Fn(t){return{ca:vr,S:t}}function Cn(t,e){if(Array.isArray(e)){var n=Jt(e);if(4&n)return e;for(var r=0,s=0;r<e.length;r++){const n=t(e[r]);null!=n&&(e[s++]=n)}return s<r&&(e.length=s),Qt(e,5|n),2&n&&Object.freeze(e),e}}Sn.prototype.M=de,Sn.prototype.toString=function(){return Ln(this,this.v,!1).toString()};const On=Symbol();function Rn(t){let e=t[On];if(!e){const n=Wn(t),r=n.m;e=r?(t,e)=>r(t,e,n):(t,e)=>{for(;Et(e)&&4!=e.h;){var r=e.m,s=n[r];if(!s){var a=n.h;a&&(a=a[r])&&(s=n[r]=Mn(a))}s&&s(e,t,r)||(r=(s=e).j,bt(s),s.aa?s=void 0:(a=s.g.g-r,s.g.g=r,s=vt(s.g,a)),r=t,s&&(fe||=Symbol(),(a=r[fe])?a.push(s):r[fe]=[s]))}(e=n.j)&&(t[pe||=Symbol()]=e)},t[On]=e}return e}function Mn(t){const e=function(t){if(t=t.S)return Rn(t)}(t),n=t.ca.g;if(e){const r=Wn(t.S).g;return(t,s,a)=>n(t,s,a,r,e)}return(t,e,r)=>n(t,e,r)}function Pn(t,e,n,r){e.g=Oe(t[0]);let s=1;if(t.length>s&&!(t[s]instanceof zt)){var a=t[s++];if(Array.isArray(a))return e.m=a[0],e.h=a[1],e;e.h=a}for(a=0;s<t.length;){const h=t[s++];var d=t[s];for("number"==typeof d?(s++,a+=d):a++,h.j&&((d=e.j)||(e.j=d=[]),d.push(a)),d=s;d<t.length&&!(t[d]instanceof zt);)d++;if(d-=s){var i=t,o=s,c=i[o];if("function"==typeof c&&(c=c(),i[o]=c),(i=Array.isArray(c))&&!(i=jn in c||Dn in c)&&(i=0<c.length)){const t=Oe(o=(i=c)[0]);null!=t&&t!==o&&(i[0]=t),i=null!=t}(c=i?c:void 0)?(s++,e[a]=1===d?r(h,c):r(h,c,t[s++])):e[a]=n(h,t[s++])}else e[a]=n(h)}return e}const In=Symbol();function Nn(t){let e=t[In];if(!e){const n=Bn(t);e=(t,e)=>Hn(t,e,n),t[In]=e}return e}const Dn=Symbol();function $n(t){return t.h}function Un(t,e){let n,r;const s=t.h;return(t,a,d)=>s(t,a,d,r||=Bn(e).g,n||=Nn(e))}function Bn(t){let e=t[Dn];return e||(e=Pn(t,t[Dn]={},$n,Un),jn in t&&Dn in t&&(t.length=0),e)}const jn=Symbol();function Gn(t,e){const n=t.g;return e?(t,r,s)=>n(t,r,s,e):n}function Vn(t,e,n){const r=t.g;let s,a;return(t,d,i)=>r(t,d,i,a||=Wn(e).g,s||=Rn(e),n)}function Wn(t){let e=t[jn];return e||(e=Pn(t,t[jn]={},Gn,Vn),jn in t&&Dn in t&&(t.length=0),e)}function zn(t,e){var n=t[e];if(n)return n;if((n=t.h)&&(n=n[e])){var r=n.S,s=n.ca.h;if(r){const t=Nn(r),e=Bn(r).g;n=(n,r,a)=>s(n,r,a,e,t)}else n=s;return t[e]=n}}function Hn(t,e,n){for(var r=Zt(t),s=+!!(512&r)-1,a=t.length,d=512&r?1:0,i=a+(256&r?-1:0);d<i;d++){const r=t[d];if(null==r)continue;const a=d-s,i=zn(n,a);i&&i(e,r,a)}if(256&r){r=t[a-1];for(let t in r)s=+t,Number.isNaN(s)||null!=(a=r[t])&&(i=zn(n,s))&&i(e,a,s)}if(t=fe?t[fe]:void 0)for(Ut(e,e.g.end()),n=0;n<t.length;n++)Ut(e,q(t[n])||z())}function Kn(t,e){return new zt(t,e,!1)}function Xn(t,e){return new zt(t,e,!0)}function Yn(t,e,n){Je(t,Zt(t),e,n)}var qn=Kn((function(t,e,n,r,s){return 2===t.h&&(t=Tt(t,Re([void 0,void 0],r),s),he(r=Zt(e)),(s=Ye(e,r,n))instanceof Ne?0!=(2&s.g)?((s=s.m()).push(t),Je(e,r,n,s)):s.D(t):Array.isArray(s)?(2&Jt(s)&&Je(e,r,n,s=sn(s)),s.push(t)):Je(e,r,n,[t]),!0)}),(function(t,e,n,r,s){if(e instanceof Ne)e.forEach(((e,a)=>{Wt(t,n,Re([a,e],r),s)}));else if(Array.isArray(e))for(let a=0;a<e.length;a++){const d=e[a];Array.isArray(d)&&Wt(t,n,Re(d,r),s)}}));function Jn(t,e,n){t:if(null!=e){if(ve(e)){if("string"==typeof e)break t;if("number"==typeof e)break t}e=void 0}null!=e&&("string"==typeof e&&Rt(e),null!=e&&(Bt(t,n,0),"number"==typeof e?(t=t.g,it(e),It(t,at,dt)):(n=Rt(e),It(t.g,n.h,n.g))))}function Zn(t,e,n){null!=(e=we(e))&&null!=e&&(Bt(t,n,0),Dt(t.g,e))}function Qn(t,e,n){null!=(e=_e(e))&&(Bt(t,n,0),t.g.g.push(e?1:0))}function tr(t,e,n){null!=(e=Te(e))&&Vt(t,n,g(e))}function er(t,e,n,r,s){Wt(t,n,e instanceof Sn?e.v:Array.isArray(e)?Re(e,r):void 0,s)}function nr(t,e,n){null!=(e=null==e||"string"==typeof e||V(e)||e instanceof J?e:void 0)&&Vt(t,n,nt(e).buffer)}function rr(t,e,n){return(5===t.h||2===t.h)&&(e=Ze(e,Zt(e),n,2,!1),2==t.h?St(t,wt.prototype.o,e):e.push(t.g.o()),!0)}var sr=Kn((function(t,e,n){if(1!==t.h)return!1;var r=t.g;t=yt(r);const s=yt(r);r=2*(s>>31)+1;const a=s>>>20&2047;return t=4294967296*(1048575&s)+t,Yn(e,n,2047==a?t?NaN:1/0*r:0==a?r*Math.pow(2,-1074)*t:r*Math.pow(2,a-1075)*(t+4503599627370496)),!0}),(function(t,e,n){null!=(e=ye(e))&&(Bt(t,n,1),t=t.g,(n=st||=new DataView(new ArrayBuffer(8))).setFloat64(0,+e,!0),at=n.getUint32(0,!0),dt=n.getUint32(4,!0),$t(t,at),$t(t,dt))})),ar=Kn((function(t,e,n){return 5===t.h&&(Yn(e,n,t.g.o()),!0)}),(function(t,e,n){null!=(e=ye(e))&&(Bt(t,n,5),t=t.g,ot(e),$t(t,at))})),dr=Xn(rr,(function(t,e,n){if(null!=(e=Cn(ye,e)))for(let a=0;a<e.length;a++){var r=t,s=e[a];null!=s&&(Bt(r,n,5),r=r.g,ot(s),$t(r,at))}})),ir=Xn(rr,(function(t,e,n){if(null!=(e=Cn(ye,e))&&e.length){Bt(t,n,2),Nt(t.g,4*e.length);for(let r=0;r<e.length;r++)n=t.g,ot(e[r]),$t(n,at)}})),or=Kn((function(t,e,n){return 0===t.h&&(Yn(e,n,gt(t.g,ht)),!0)}),Jn),cr=Kn((function(t,e,n){return 0===t.h&&(Yn(e,n,0===(t=gt(t.g,ht))?void 0:t),!0)}),Jn),hr=Kn((function(t,e,n){return 0===t.h&&(Yn(e,n,gt(t.g,ct)),!0)}),(function(t,e,n){t:if(null!=e){if(ve(e)){if("string"==typeof e)break t;if("number"==typeof e)break t}e=void 0}null!=e&&("string"==typeof e&&Ft(e),null!=e&&(Bt(t,n,0),"number"==typeof e?(t=t.g,it(e),It(t,at,dt)):(n=Ft(e),It(t.g,n.h,n.g))))})),ur=Kn((function(t,e,n){return 0===t.h&&(Yn(e,n,t.g.m()),!0)}),Zn),lr=Xn((function(t,e,n){return(0===t.h||2===t.h)&&(e=Ze(e,Zt(e),n,2,!1),2==t.h?St(t,wt.prototype.m,e):e.push(t.g.m()),!0)}),(function(t,e,n){if(null!=(e=Cn(we,e))&&e.length){n=jt(t,n);for(let n=0;n<e.length;n++)Dt(t.g,e[n]);Gt(t,n)}})),fr=Kn((function(t,e,n){return 0===t.h&&(Yn(e,n,0===(t=t.g.m())?void 0:t),!0)}),Zn),pr=Kn((function(t,e,n){return 0===t.h&&(Yn(e,n,mt(t.g)),!0)}),Qn),gr=Kn((function(t,e,n){return 0===t.h&&(Yn(e,n,!1===(t=mt(t.g))?void 0:t),!0)}),Qn),mr=Xn((function(t,e,n){if(2!==t.h)return!1;t=kt(t);const r=Zt(e);return he(r),Ze(e,r,n,2).push(t),!0}),(function(t,e,n){if(null!=(e=Cn(Te,e)))for(let s=0;s<e.length;s++){var r=e[s];null!=r&&Vt(t,n,g(r))}})),yr=Kn((function(t,e,n){return 2===t.h&&(Yn(e,n,""===(t=kt(t))?void 0:t),!0)}),tr),_r=Kn((function(t,e,n){return 2===t.h&&(Yn(e,n,kt(t)),!0)}),tr),vr=Kn((function(t,e,n,r,s){return 2===t.h&&(Tt(t,cn(e,r,n,!0),s),!0)}),er),wr=Kn((function(t,e,n,r,s){return 2===t.h&&(Tt(t,cn(e,r,n),s),!0)}),er),Ar=Xn((function(t,e,n,r,s){if(2!==t.h)return!1;r=Re(void 0,r);const a=Zt(e);he(a);let d=Ze(e,a,n,3);return(Object.isFrozen(d)||4&Jt(d))&&(d=Ht(d),Je(e,a,n,d)),d.push(r),Tt(t,r,s),!0}),(function(t,e,n,r,s){if(Array.isArray(e))for(let a=0;a<e.length;a++)er(t,e[a],n,r,s)})),Er=Kn((function(t,e,n,r,s,a){if(2!==t.h)return!1;const d=Zt(e);return he(d),(a=on(e,d,a))&&n!==a&&Je(e,d,a),Tt(t,e=cn(e,r,n),s),!0}),er),br=Kn((function(t,e,n){return 2===t.h&&(Yn(e,n,xt(t)),!0)}),nr),Tr=Xn((function(t,e,n){return(0===t.h||2===t.h)&&(e=Ze(e,Zt(e),n,2,!1),2==t.h?St(t,wt.prototype.i,e):e.push(t.g.i()),!0)}),(function(t,e,n){if(null!=(e=Cn(Ae,e)))for(let a=0;a<e.length;a++){var r=t,s=e[a];null!=s&&(Bt(r,n,0),Nt(r.g,s))}})),kr=Kn((function(t,e,n){return 0===t.h&&(Yn(e,n,t.g.m()),!0)}),(function(t,e,n){null!=(e=we(e))&&(e=parseInt(e,10),Bt(t,n,0),Dt(t.g,e))})),xr=Xn((function(t,e,n){return(0===t.h||2===t.h)&&(e=Ze(e,Zt(e),n,2,!1),2==t.h?St(t,wt.prototype.B,e):e.push(t.g.m()),!0)}),(function(t,e,n){if(null!=(e=Cn(we,e))&&e.length){n=jt(t,n);for(let n=0;n<e.length;n++)Dt(t.g,e[n]);Gt(t,n)}}));class Sr{constructor(t,e){this.h=t,this.g=e,this.j=un,this.m=pn,this.defaultValue=void 0}}function Lr(t,e){return new Sr(t,e)}function Fr(t,e){return(n,r)=>{t:{if(Lt.length){const t=Lt.pop();t.s(r),ft(t.g,n,r),n=t}else n=new class{constructor(t,e){if(At.length){const n=At.pop();ft(n,t,e),t=n}else t=new wt(t,e);this.g=t,this.j=this.g.g,this.h=this.m=-1,this.s(e)}s({aa:t=!1}={}){this.aa=t}reset(){this.g.reset(),this.j=this.g.g,this.h=this.m=-1}}(n,r);try{var s=new t;const r=s.v;Rn(e)(r,n),pe&&delete r[pe];var a=s;break t}finally{(s=n.g).h=null,s.u=!1,s.A=0,s.j=0,s.g=0,s.O=!1,n.m=-1,n.h=-1,100>Lt.length&&Lt.push(n)}a=void 0}return a}}function Cr(t){return function(){const e=new class{constructor(){this.j=[],this.h=0,this.g=new class{constructor(){this.g=[]}length(){return this.g.length}end(){const t=this.g;return this.g=[],t}}}};Hn(this.v,e,Bn(t)),Ut(e,e.g.end());const n=new Uint8Array(e.h),r=e.j,s=r.length;let a=0;for(let t=0;t<s;t++){const e=r[t];n.set(e,a),a+=e.length}return e.j=[n],n}}var Or=[0,yr,Kn((function(t,e,n){return 2===t.h&&(Yn(e,n,(t=xt(t))===Y()?void 0:t),!0)}),(function(t,e,n){if(null!=e){if(e instanceof Sn){const r=e.Ha;return void(r&&(e=r(e),null!=e&&Vt(t,n,nt(e).buffer)))}if(Array.isArray(e))return}nr(t,e,n)}))];function Rr(t,e){t.m(e),100>t.h&&(t.h++,e.next=t.g,t.g=e)}class Mr{constructor(t,e){this.j=t,this.m=e,this.h=0,this.g=null}get(){let t;return 0<this.h?(this.h--,t=this.g,this.g=t.next,t.next=null):t=this.j(),t}}try{new self.OffscreenCanvas(0,0).getContext("2d")}catch(uo){}function Pr(){}const Ir="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");var Nr,Dr=class{constructor(t){this.V=t}toString(){return this.V+""}};function $r(t){return t instanceof Dr&&t.constructor===Dr?t.V:"type_error:TrustedResourceUrl"}Dr.prototype.za=!0;var Ur={};function Br(e){if(void 0===Nr){var n=null,r=t.trustedTypes;if(r&&r.createPolicy){try{n=r.createPolicy("goog#html",{createHTML:d,createScript:d,createScriptURL:d})}catch(e){t.console&&t.console.error(e.message)}Nr=n}else Nr=n}return e=(n=Nr)?n.createScriptURL(e):e,new Dr(e,Ur)}var jr=/^[\w+/_-]+[=]{0,2}$/;var Gr,Vr={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function Wr(t,e){return e=String(e),"application/xhtml+xml"===t.contentType&&(e=e.toLowerCase()),t.createElement(e)}function zr(e){this.g=e||t.document||document}function Hr(){var t=Jr;let e=null;return t.g&&(e=t.g,t.g=t.g.next,t.g||(t.h=null),e.next=null),e}var Kr=new Mr((()=>new Xr),(t=>t.reset()));class Xr{constructor(){this.next=this.g=this.h=null}set(t,e){this.h=t,this.g=e,this.next=null}reset(){this.next=this.g=this.h=null}}let Yr,qr=!1,Jr=new class{constructor(){this.h=this.g=null}add(t,e){const n=Kr.get();n.set(t,e),this.h?this.h.next=n:this.g=n,this.h=n}},Zr=(t,e)=>{Yr||Qr(),qr||(Yr(),qr=!0),Jr.add(t,e)},Qr=()=>{if(t.Promise&&t.Promise.resolve){const e=t.Promise.resolve(void 0);Yr=()=>{e.then(ts)}}else Yr=()=>{var e=ts;"function"!=typeof t.setImmediate||t.Window&&t.Window.prototype&&(S()||!x("Edge"))&&t.Window.prototype.setImmediate==t.setImmediate?(Gr||=function(){var e=t.MessageChannel;if(void 0===e&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&!x("Presto")&&(e=function(){var t=Wr(document,"IFRAME");t.style.display="none",document.documentElement.appendChild(t);var e=t.contentWindow;(t=e.document).open(),t.close();var n="callImmediate"+Math.random(),s="file:"==e.location.protocol?"*":e.location.protocol+"//"+e.location.host;t=r((function(t){"*"!=s&&t.origin!=s||t.data!=n||this.port1.onmessage()}),this),e.addEventListener("message",t,!1),this.port1={},this.port2={postMessage:function(){e.postMessage(n,s)}}}),void 0!==e&&!L()){var n=new e,s={},a=s;return n.port1.onmessage=function(){if(void 0!==s.next){var t=(s=s.next).Z;s.Z=null,t()}},function(t){a.next={Z:t},a=a.next,n.port2.postMessage(0)}}return function(e){t.setTimeout(e,0)}}(),Gr(e)):t.setImmediate(e)}};var ts=()=>{let t;for(;t=Hr();){try{t.h.call(t.g)}catch(t){m(t)}Rr(Kr,t)}qr=!1};function es(t){if(!t)return!1;try{return!!t.$goog_Thenable}catch(t){return!1}}function ns(t){if(this.g=0,this.o=void 0,this.m=this.h=this.j=null,this.i=this.A=!1,t!=Pr)try{var e=this;t.call(void 0,(function(t){os(e,2,t)}),(function(t){os(e,3,t)}))}catch(t){os(this,3,t)}}function rs(){this.next=this.j=this.h=this.m=this.g=null,this.i=!1}rs.prototype.reset=function(){this.j=this.h=this.m=this.g=null,this.i=!1};var ss=new Mr((function(){return new rs}),(function(t){t.reset()}));function as(t,e,n){var r=ss.get();return r.m=t,r.h=e,r.j=n,r}function ds(t,e){if(0==t.g)if(t.j){var n=t.j;if(n.h){for(var r=0,s=null,a=null,d=n.h;d&&(d.i||(r++,d.g==t&&(s=d),!(s&&1<r)));d=d.next)s||(a=d);s&&(0==n.g&&1==r?ds(n,e):(a?((r=a).next==n.m&&(n.m=r),r.next=r.next.next):hs(n),us(n,s,3,e)))}t.j=null}else os(t,3,e)}function is(t,e){t.h||2!=t.g&&3!=t.g||cs(t),t.m?t.m.next=e:t.h=e,t.m=e}function os(t,e,n){if(0==t.g){t===n&&(e=3,n=new TypeError("Promise cannot resolve to itself")),t.g=1;t:{var r=n,s=t.B,a=t.D;if(r instanceof ns){is(r,as(s||Pr,a||null,t));var d=!0}else if(es(r))r.then(s,a,t),d=!0;else{var i=typeof r;if("object"==i&&null!=r||"function"==i)try{var o=r.then;if("function"==typeof o){!function(t,e,n,r,s){function a(t){i||(i=!0,r.call(s,t))}function d(t){i||(i=!0,n.call(s,t))}var i=!1;try{e.call(t,d,a)}catch(t){a(t)}}(r,o,s,a,t),d=!0;break t}}catch(e){a.call(t,e),d=!0;break t}d=!1}}d||(t.o=n,t.g=e,t.j=null,cs(t),3!=e||n instanceof ps||function(t,e){t.i=!0,Zr((function(){t.i&&fs.call(null,e)}))}(t,n))}}function cs(t){t.A||(t.A=!0,Zr(t.u,t))}function hs(t){var e=null;return t.h&&(e=t.h,t.h=e.next,e.next=null),t.h||(t.m=null),e}function us(t,e,n,r){if(3==n&&e.h&&!e.i)for(;t&&t.i;t=t.j)t.i=!1;if(e.g)e.g.j=null,ls(e,n,r);else try{e.i?e.m.call(e.j):ls(e,n,r)}catch(t){fs.call(null,t)}Rr(ss,e)}function ls(t,e,n){2==e?t.m.call(t.j,n):t.h&&t.h.call(t.j,n)}ns.prototype.then=function(t,e,n){return function(t,e,n,r){var s=as(null,null,null);return s.g=new ns((function(t,a){s.m=e?function(n){try{var s=e.call(r,n);t(s)}catch(t){a(t)}}:t,s.h=n?function(e){try{var s=n.call(r,e);void 0===s&&e instanceof ps?a(e):t(s)}catch(t){a(t)}}:a})),s.g.j=t,is(t,s),s.g}(this,"function"==typeof t?t:null,"function"==typeof e?e:null,n)},ns.prototype.$goog_Thenable=!0,ns.prototype.cancel=function(t){if(0==this.g){var e=new ps(t);Zr((function(){ds(this,e)}),this)}},ns.prototype.B=function(t){this.g=0,os(this,2,t)},ns.prototype.D=function(t){this.g=0,os(this,3,t)},ns.prototype.u=function(){for(var t;t=hs(this);)us(this,t,this.g,this.o);this.A=!1};var fs=m;function ps(t){i.call(this,t)}function gs(t,e){this.i=[],this.J=t,this.F=e||null,this.m=this.j=!1,this.h=void 0,this.B=this.K=this.o=!1,this.A=0,this.g=null,this.u=0}function ms(t,e,n){t.j=!0,t.h=n,t.m=!e,As(t)}function ys(t){if(t.j){if(!t.B)throw new Es;t.B=!1}}function _s(t,e,n,r){t.i.push([e,n,r]),t.j&&As(t)}function vs(t){return C(t.i,(function(t){return"function"==typeof t[1]}))}a(ps,i),ps.prototype.name="cancel",a(gs,(function(){})),gs.prototype.cancel=function(t){if(this.j)this.h instanceof gs&&this.h.cancel();else{if(this.g){const e=this.g;delete this.g,t?e.cancel(t):(e.u--,0>=e.u&&e.cancel())}this.J?this.J.call(this.F,this):this.B=!0,this.j||(t=new bs,ys(this),ms(this,!1,t))}},gs.prototype.D=function(t,e){this.o=!1,ms(this,t,e)},gs.prototype.then=function(t,e,n){let r,s;const a=new ns((function(t,e){s=t,r=e}));return _s(this,s,(function(t){return t instanceof bs?a.cancel():r(t),ws}),this),a.then(t,e,n)},gs.prototype.$goog_Thenable=!0;var ws={};function As(e){if(e.A&&e.j&&vs(e)){var n=e.A,s=ks[n];s&&(t.clearTimeout(s.g),delete ks[n]),e.A=0}e.g&&(e.g.u--,delete e.g),n=e.h;for(var a=s=!1;e.i.length&&!e.o;){var d=e.i.shift(),i=d[0];const r=d[1];if(d=d[2],i=e.m?r:i)try{var o=i.call(d||e.F,n);o===ws&&(o=void 0),void 0!==o&&(e.m=e.m&&(o==n||o instanceof Error),e.h=n=o),(es(n)||"function"==typeof t.Promise&&n instanceof t.Promise)&&(a=!0,e.o=!0)}catch(t){n=t,e.m=!0,vs(e)||(s=!0)}}e.h=n,a&&(o=r(e.D,e,!0),a=r(e.D,e,!1),n instanceof gs?(_s(n,o,a),n.K=!0):n.then(o,a)),s&&(n=new Ts(n),ks[n.g]=n,e.A=n.g)}function Es(){i.call(this)}function bs(){i.call(this)}function Ts(e){this.g=t.setTimeout(r(this.j,this),0),this.h=e}a(Es,i),Es.prototype.message="Deferred has already fired",Es.prototype.name="AlreadyCalledError",a(bs,i),bs.prototype.message="Deferred was canceled",bs.prototype.name="CanceledError",Ts.prototype.j=function(){throw delete ks[this.g],this.h};var ks={};function xs(e){const n={},r=n.document||document,s=$r(e).toString(),a=Wr(new zr(r).g,"SCRIPT");var d={da:a,ea:void 0};const i=new gs(Ss,d);let o=null;const c=null!=n.timeout?n.timeout:5e3;return 0<c&&(o=window.setTimeout((function(){Ls(a,!0);var t=new Fs(1,"Timeout reached for loading script "+s);ys(i),ms(i,!1,t)}),c),d.ea=o),a.onload=a.onreadystatechange=function(){a.readyState&&"loaded"!=a.readyState&&"complete"!=a.readyState||(Ls(a,n.Ga||!1,o),ys(i),ms(i,!0,null))},a.onerror=function(){Ls(a,!0,o);var t=new Fs(0,"Error while loading script "+s);ys(i),ms(i,!1,t)},function(t,e){let n,r;for(let e=1;e<arguments.length;e++){for(n in r=arguments[e],r)t[n]=r[n];for(let e=0;e<Ir.length;e++)n=Ir[e],Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}}(d=n.attributes||{},{type:"text/javascript",charset:"UTF-8"}),function(t,e){!function(t,e){for(const n in t)e.call(void 0,t[n],n,t)}(e,(function(e,n){e&&"object"==typeof e&&e.za&&(e=e.V.toString()),"style"==n?t.style.cssText=e:"class"==n?t.className=e:"for"==n?t.htmlFor=e:Vr.hasOwnProperty(n)?t.setAttribute(Vr[n],e):0==n.lastIndexOf("aria-",0)||0==n.lastIndexOf("data-",0)?t.setAttribute(n,e):t[n]=e}))}(a,d),function(e,n){var r=(e.ownerDocument&&e.ownerDocument.defaultView||t).document;r.querySelector&&(r=r.querySelector("script[nonce]"))&&(r=r.nonce||r.getAttribute("nonce"))&&jr.test(r)||(r=""),r&&e.setAttribute("nonce",r),e.src=$r(n)}(a,e),function(t){var e;return(e=(t||document).getElementsByTagName("HEAD"))&&0!==e.length?e[0]:t.documentElement}(r).appendChild(a),i}function Ss(){if(this&&this.da){const t=this.da;t&&"SCRIPT"==t.tagName&&Ls(t,!0,this.ea)}}function Ls(e,n,r){null!=r&&t.clearTimeout(r),e.onload=()=>{},e.onerror=()=>{},e.onreadystatechange=()=>{},n&&window.setTimeout((function(){e&&e.parentNode&&e.parentNode.removeChild(e)}),0)}function Fs(t,e){let n="Jsloader error (code #"+t+")";e&&(n+=": "+e),i.call(this,n),this.code=t}function Cs(t,...e){if(0===e.length)return Br(t[0]);let n=t[0];for(let r=0;r<e.length;r++)n+=encodeURIComponent(e[r])+t[r+1];return Br(n)}a(Fs,i);var Os=[0,_r],Rs=[0,ur,kr,pr,pr,lr,kr,kr],Ms=[0,pr,pr],Ps=class extends Sn{constructor(){super()}};Ps.C=[6];var Is=[0,pr,_r,pr,kr,kr,xr,_r,_r,wr,Ms,kr],Ns=[0,_r,_r,_r],Ds=class extends Sn{constructor(){super()}},$s=[0],Us=[0,ur],Bs=[1,2,3,4,5],js=class extends Sn{constructor(t){super(t,2)}},Gs={},Vs=[-2,Gs,pr];Gs[336783863]=Fn([0,_r,pr,pr,ur,wr,[0,Er,$s,Bs,Er,Is,Bs,Er,Ns,Bs,Er,Us,Bs,Er,Rs,Bs],wr,Os]);var Ws=[0,yr,gr],zs=[0,cr,cr,gr,gr,gr,gr,cr,lr,yr,fr,cr,cr,gr,fr,gr,gr,gr,yr],Hs=[-1,{}],Ks=[0,_r,wr,2,Hs],Xs=[0,_r,mr,wr,Hs];function Ys(t,e){e=be(e),t=t.v;const n=Zt(t);he(n),Je(t,n,2,""===e?void 0:e)}function qs(t,e){kn(t,3,e)}function Js(t,e){kn(t,4,e)}var Zs=class extends Sn{constructor(t){super(t,500)}s(t){return pn(this,0,7,t)}};Zs.C=[3,4,5,6,8,13,17,1005];var Qs=[-500,yr,yr,mr,mr,mr,mr,wr,Vs,Ar,Or,fr,fr,wr,Ks,wr,Xs,Ar,Ws,yr,wr,zs,fr,mr,mr,988],ta=[0,yr,yr,wr,Hs],ea=[-500,_r,_r,wr,[-1,{}],_r,999],na=[-500,_r,mr,mr,wr,[-2,{},pr],mr,998,mr],ra=[-500,_r,mr,wr,Hs,mr,999];function sa(t,e){mn(t,Zs,e)}function aa(t,e){kn(t,10,e)}function da(t,e){kn(t,15,e)}var ia=class extends Sn{constructor(t){super(t,500)}s(t){return pn(this,0,1001,t)}};ia.C=[1,6,7,9,10,15,16,17,14,1002];var oa=[-500,Ar,Qs,Ar,5,ea,Ar,na,fr,Ar,ra,mr,fr,wr,Ks,wr,Xs,Ar,ta,mr,mr,mr,wr,zs,yr,yr,gr,wr,980,Hs,Ar,Or],ca=Fr(ia,oa);ia.prototype.g=Cr(oa);var ha=[0,Ar,[0,ur,ur,ur]],ua=class extends Sn{constructor(t){super(t)}},la=[0,ur,ar,_r,_r],fa=class extends Sn{constructor(t){super(t)}g(){return fn(this,ua,1)}};fa.C=[1];var pa=[0,Ar,la],ga=Fr(fa,pa),ma=[0,ur,ar],ya=[0,ur,ur,wr,ha],_a=class extends Sn{constructor(t){super(t)}},va=[0,ur,ur,ur,ur],wa=[0,ar,ar,ar,ar],Aa=class extends Sn{constructor(t){super(t)}},Ea=[0,ar,ar,_r,ar],ba=class extends Sn{constructor(t){super(t)}h(){return un(this,_a,2)}g(){return fn(this,Aa,5)}};ba.C=[5];var Ta=[0,kr,wr,va,wr,wa,wr,ya,Ar,Ea],ka=class extends Sn{constructor(t){super(t)}};ka.C=[1,2,3,8,9];var xa=Fr(ka,[0,mr,lr,ir,wr,Ta,_r,_r,or,Ar,ma,mr,or]),Sa=class extends Sn{constructor(t){super(t)}},La=[0,ar,ar,ar,ar,ar],Fa=class extends Sn{constructor(t){super(t)}};Fa.C=[1];var Ca=Fr(Fa,[0,Ar,La]),Oa=class extends Sn{constructor(t){super(t)}},Ra=[0,ar,ar,ar,ar,ar],Ma=class extends Sn{constructor(t){super(t)}};Ma.C=[1];var Pa=Fr(Ma,[0,Ar,Ra]),Ia=class extends Sn{constructor(t){super(t)}};Ia.C=[3];var Na=[0,ur,ur,ir,kr],Da=class extends Sn{constructor(){super()}};Da.prototype.g=Cr([0,ar,ar,ar,ar,ar,or]);var $a=class extends Sn{constructor(t){super(t)}},Ua=[0,ur,2,_r,wr,pa],Ba=class extends Sn{constructor(t){super(t)}};Ba.C=[1];var ja=Fr(Ba,[0,Ar,Ua,or]),Ga=class extends Sn{constructor(t){super(t)}};Ga.C=[1];var Va=class extends Sn{constructor(t){super(t)}ha(){const t=tn(this);return null==t?Y():t}},Wa=class extends Sn{constructor(t){super(t)}},za=[1,2],Ha=[0,Er,[0,ir],za,Er,[0,br],za,ur,_r],Ka=class extends Sn{constructor(t){super(t)}};Ka.C=[1];var Xa=Fr(Ka,[0,Ar,Ha,or]),Ya=class extends Sn{constructor(t){super(t)}};Ya.C=[4,5];var qa=[0,_r,ur,ar,mr,mr],Ja=class extends Sn{constructor(t){super(t)}},Za=[0,pr,pr],Qa=class extends Sn{constructor(t){super(t)}},td=[1,2,3,4,5],ed=class extends Sn{constructor(t){super(t)}g(){return null!=tn(this)}h(){return null!=vn(this,2)}},nd=[0,br,_r,wr,[0,ur,or,or],wr,[0,hr,or]],rd=class extends Sn{constructor(t){super(t)}g(){return _e(Xe(this,2))??!1}},sd=[0,wr,nd,pr,wr,[0,Er,Us,td,Er,Is,td,Er,Rs,td,Er,$s,td,Er,Ns,td]],ad=class extends Sn{constructor(t){super(t)}},dd=[0,wr,sd,ar,ar,ur],id=Lr(502141897,ad);Gs[502141897]=Fn(dd);var od=[0,wr,nd];Gs[512499200]=Fn(od);var cd=[0,wr,od];Gs[515723506]=Fn(cd);var hd=Fr(class extends Sn{constructor(t){super(t)}},[0,wr,[0,kr,kr,dr,Tr],wr,Na]),ud=[0,wr,sd];Gs[508981768]=Fn(ud);var ld=class extends Sn{constructor(t){super(t)}},fd=[0,wr,sd,ar,wr,ud,pr],pd=class extends Sn{constructor(t){super(t)}},gd=[0,wr,sd,wr,dd,wr,fd,ar,wr,cd];Gs[508968149]=Fn(fd);var md=Lr(508968150,pd);Gs[508968150]=Fn(gd);var yd=class extends Sn{constructor(t){super(t)}},_d=Lr(513916220,yd);Gs[513916220]=Fn([0,wr,sd,wr,gd,ur]);var vd=class extends Sn{constructor(t){super(t)}h(){return un(this,Ya,2)}g(){qe(this,2)}},wd=[0,wr,sd,wr,qa];Gs[478825465]=Fn(wd);var Ad=[0,wr,sd];Gs[478825422]=Fn(Ad);var Ed=class extends Sn{constructor(t){super(t)}},bd=[0,wr,sd,wr,Ad,wr,wd,wr,wd],Td=class extends Sn{constructor(t){super(t)}},kd=[0,wr,sd,ar,ur],xd=class extends Sn{constructor(t){super(t)}},Sd=[0,wr,sd,ar],Ld=class extends Sn{constructor(t){super(t)}},Fd=[0,wr,sd,wr,kd,wr,Sd,ar],Cd=class extends Sn{constructor(t){super(t)}},Od=[0,wr,sd,wr,Fd,wr,bd];Gs[463370452]=Fn(bd),Gs[464864288]=Fn(kd),Gs[474472470]=Fn(Sd);var Rd=Lr(462713202,Ld);Gs[462713202]=Fn(Fd);var Md=Lr(479097054,Cd);Gs[479097054]=Fn(Od);var Pd=class extends Sn{constructor(t){super(t)}},Id=Lr(456383383,Pd);Gs[456383383]=Fn([0,wr,sd,wr,qa]);var Nd=class extends Sn{constructor(t){super(t)}},Dd=Lr(476348187,Nd);Gs[476348187]=Fn([0,wr,sd,wr,Za]);var $d=class extends Sn{constructor(t){super(t)}},Ud=[0,kr,kr],Bd=class extends Sn{constructor(t){super(t)}};Bd.C=[3];var jd=Lr(458105876,class extends Sn{constructor(t){super(t)}g(){var t=this.v;const e=Zt(t);var n=2&e;return t=function(t,e,n){var r=Bd;const s=2&e;let a=!1;if(null==n){if(s)return rn();n=[]}else if(n.constructor===Ne){if(0==(2&n.g)||s)return n;n=n.m()}else Array.isArray(n)?a=!!(2&Jt(n)):n=[];if(s){if(!n.length)return rn();a||(a=!0,ee(n))}else a&&(a=!1,n=sn(n));return a||(64&Jt(n)?qt(n,32):32&e&&Xt(n,32)),Je(t,e,2,r=new Ne(n,r,Le,void 0),!1),r}(t,e,Ye(t,e,2)),null==t||!n&&Bd&&(t.u=!0),n=t}});Gs[458105876]=Fn([0,wr,Ud,qn,[0,or,wr,[0,_r,_r,mr]]]);var Gd=class extends Sn{constructor(t){super(t)}},Vd=Lr(458105758,Gd);Gs[458105758]=Fn([0,wr,sd,_r,wr,Ud]);var Wd=class extends Sn{constructor(t){super(t)}};Wd.C=[5,6];var zd=Lr(443442058,Wd);Gs[443442058]=Fn([0,wr,sd,_r,ur,ar,mr,mr]);var Hd=class extends Sn{constructor(t){super(t)}},Kd=[0,wr,sd,ar,ar,ur];Gs[514774813]=Fn(Kd);var Xd=class extends Sn{constructor(t){super(t)}},Yd=[0,wr,sd,ar],qd=class extends Sn{constructor(t){super(t)}},Jd=[0,wr,sd,wr,Kd,wr,Yd,ar];Gs[518928384]=Fn(Yd);var Zd=Lr(516587230,qd);function Qd(t,e){return e=e?e.clone():new Ya,void 0!==t.displayNamesLocale?qe(e,1,be(t.displayNamesLocale)):void 0===t.displayNamesLocale&&qe(e,1),void 0!==t.maxResults?bn(e,2,t.maxResults):"maxResults"in t&&qe(e,2),void 0!==t.scoreThreshold?Tn(e,3,t.scoreThreshold):"scoreThreshold"in t&&qe(e,3),void 0!==t.categoryAllowlist?an(e,4,t.categoryAllowlist):"categoryAllowlist"in t&&qe(e,4),void 0!==t.categoryDenylist?an(e,5,t.categoryDenylist):"categoryDenylist"in t&&qe(e,5),e}function ti(t,e=-1,n=""){return{categories:t.map((t=>({index:wn(yn(t,1))??-1,score:An(t,2)??0,categoryName:vn(t,3)??""??"",displayName:vn(t,4)??""??""}))),headIndex:e,headName:n}}function ei(t){var e=en(t,3,ye),n=en(t,2,we);const r=en(t,1,Te),s=en(t,9,Te),a={categories:[],keypoints:[]};for(let t=0;t<e.length;t++)a.categories.push({score:e[t],index:n[t]??-1,categoryName:r[t]??"",displayName:s[t]??""});if((e=un(t,ba,4)?.h())&&(a.boundingBox={originX:yn(e,1)??0,originY:yn(e,2)??0,width:yn(e,3)??0,height:yn(e,4)??0,angle:0}),un(t,ba,4)?.g().length)for(const e of un(t,ba,4).g())a.keypoints.push({x:Qe(e,1)??0,y:Qe(e,2)??0,score:Qe(e,4)??0,label:vn(e,3)??""});return a}function ni(t){const e=[];for(const n of fn(t,Oa,1))e.push({x:An(n,1)??0,y:An(n,2)??0,z:An(n,3)??0});return e}function ri(t){const e=[];for(const n of fn(t,Sa,1))e.push({x:An(n,1)??0,y:An(n,2)??0,z:An(n,3)??0});return e}function si(t){return Array.from(t,(t=>127<t?t-256:t))}function ai(t,e){if(t.length!==e.length)throw Error(`Cannot compute cosine similarity between embeddings of different sizes (${t.length} vs. ${e.length}).`);let n=0,r=0,s=0;for(let a=0;a<t.length;a++)n+=t[a]*e[a],r+=t[a]*t[a],s+=e[a]*e[a];if(0>=r||0>=s)throw Error("Cannot compute cosine similarity on embedding with 0 norm.");return n/Math.sqrt(r*s)}let di;Gs[516587230]=Fn(Jd);const ii=new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]);async function oi(){if(void 0===di)try{await WebAssembly.instantiate(ii),di=!0}catch{di=!1}return di}async function ci(t,e){const n=await oi()?"wasm_internal":"wasm_nosimd_internal";return e=e??".",{wasmLoaderPath:Br(`${encodeURIComponent(e)}/${encodeURIComponent(t)}_${encodeURIComponent(n)}.js`),wasmBinaryPath:Br(`${encodeURIComponent(e)}/${encodeURIComponent(t)}_${encodeURIComponent(n)}.wasm`)}}var hi=class{};function ui(){const t=navigator.userAgent;return t.includes("Safari")&&!t.includes("Chrome")}function li(t,e,n){t.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target"),n(e=t.l.stringToNewUTF8(e)),t.l._free(e)}function fi(t,e,n){if(!t.l.canvas)throw Error("No OpenGL canvas configured.");if(n?t.l._bindTextureToStream(n):t.l._bindTextureToCanvas(),!(n=t.l.canvas.getContext("webgl2")||t.l.canvas.getContext("webgl")))throw Error("Failed to obtain WebGL context from the provided canvas. `getContext()` should only be invoked with `webgl` or `webgl2`.");return t.l.gpuOriginForWebTexturesIsBottomLeft&&n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,!0),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,e),t.l.gpuOriginForWebTexturesIsBottomLeft&&n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,!1),e.videoWidth?(n=e.videoWidth,e=e.videoHeight):e.naturalWidth?(n=e.naturalWidth,e=e.naturalHeight):(n=e.width,e=e.height),!t.j||n===t.l.canvas.width&&e===t.l.canvas.height||(t.l.canvas.width=n,t.l.canvas.height=e),[n,e]}function pi(t,e,n){t.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target");const r=new Uint32Array(e.length);for(let n=0;n<e.length;n++)r[n]=t.l.stringToNewUTF8(e[n]);e=t.l._malloc(4*r.length),t.l.HEAPU32.set(r,e>>2),n(e);for(const e of r)t.l._free(e);t.l._free(e)}function gi(t,e,n){t.l.simpleListeners=t.l.simpleListeners||{},t.l.simpleListeners[e]=n}function mi(t,e,n){let r=[];t.l.simpleListeners=t.l.simpleListeners||{},t.l.simpleListeners[e]=(t,e,s)=>{e?(n(r,s),r=[]):r.push(t)}}hi.forVisionTasks=function(t=""){return ci("vision",t)},hi.forTextTasks=function(t=""){return ci("text",t)},hi.forAudioTasks=function(t=""){return ci("audio",t)},hi.isSimdSupported=function(){return oi()};async function yi(t){if("function"!=typeof importScripts)return"string"==typeof t&&(t=Cs`${t}`),xs(t);importScripts(t.toString())}async function _i(t,e,n,r){return t=await(async(t,e,n,r,s)=>{if(e&&await yi(e),!self.ModuleFactory)throw Error("ModuleFactory not set.");if(n&&(await yi(n),!self.ModuleFactory))throw Error("ModuleFactory not set.");return self.Module&&s&&((e=self.Module).locateFile=s.locateFile,s.mainScriptUrlOrBlob&&(e.mainScriptUrlOrBlob=s.mainScriptUrlOrBlob)),s=await self.ModuleFactory(self.Module||s),self.ModuleFactory=self.Module=void 0,new t(s,r)})(t,n.wasmLoaderPath,n.assetLoaderPath,e,{locateFile(t){var e=n.wasmBinaryPath.toString();return e.includes(t)?e:(e=n.assetBinaryPath?.toString(),e?.includes(t)?e:t)}}),await t.s(r),t}function vi(t,e){const n=un(t.baseOptions,ed,1)||new ed;"string"==typeof e?(qe(n,2,be(e)),qe(n,1)):e instanceof Uint8Array&&(qe(n,1,oe(e,!1,!1)),qe(n,2)),pn(t.baseOptions,0,1,n)}function wi(t){try{const e=t.F.length;if(1===e)throw Error(t.F[0].message);if(1<e)throw Error("Encountered multiple errors: "+t.F.map((t=>t.message)).join(", "))}finally{t.F=[]}}function Ai(t,e){t.D=Math.max(t.D,e)}function Ei(t,e){t.A=new Zs,Ys(t.A,"PassThroughCalculator"),qs(t.A,"free_memory"),Js(t.A,"free_memory_unused_out"),aa(e,"free_memory"),sa(e,t.A)}function bi(t,e){qs(t.A,e),Js(t.A,e+"_unused_out")}function Ti(t){t.g.addBoolToStream(!0,"free_memory",t.D)}var ki=class{constructor(t){this.g=t,this.F=[],this.D=0,this.g.setAutoRenderToScreen(!1)}j(t,e=!0){if(e){const e=t.baseOptions||{};if(t.baseOptions?.modelAssetBuffer&&t.baseOptions?.modelAssetPath)throw Error("Cannot set both baseOptions.modelAssetPath and baseOptions.modelAssetBuffer");if(!(un(this.baseOptions,ed,1)?.g()||un(this.baseOptions,ed,1)?.h()||t.baseOptions?.modelAssetBuffer||t.baseOptions?.modelAssetPath))throw Error("Either baseOptions.modelAssetPath or baseOptions.modelAssetBuffer must be set");if(function(t,e){let n=un(t.baseOptions,Qa,3);if(!n){var r=n=new Qa,s=new Ds;gn(r,4,td,s)}"delegate"in e&&("GPU"===e.delegate?(e=n,r=new Ps,gn(e,2,td,r)):(e=n,r=new Ds,gn(e,4,td,r))),pn(t.baseOptions,0,3,n)}(this,e),e.modelAssetPath)return fetch(e.modelAssetPath.toString()).then((t=>{if(t.ok)return t.arrayBuffer();throw Error(`Failed to fetch model: ${e.modelAssetPath} (${t.status})`)})).then((t=>{try{this.g.l.FS_unlink("/model.dat")}catch{}this.g.l.FS_createDataFile("/","model.dat",new Uint8Array(t),!0,!1,!1),vi(this,"/model.dat"),this.m(),this.K()}));vi(this,e.modelAssetBuffer)}return this.m(),this.K(),Promise.resolve()}K(){}U(){let t;if(this.g.U((e=>{t=ca(e)})),!t)throw Error("Failed to retrieve CalculatorGraphConfig");return t}setGraph(t,e){this.g.attachErrorListener(((t,e)=>{this.F.push(Error(e))})),this.g.Ca(),this.g.setGraph(t,e),this.A=void 0,wi(this)}finishProcessing(){this.g.finishProcessing(),wi(this)}close(){this.A=void 0,this.g.closeGraph()}};ki.prototype.close=ki.prototype.close;const xi={color:"white",lineWidth:4,radius:6};function Si(t){return{...xi,fillColor:(t=t||{}).color,...t}}function Li(t,e){return t instanceof Function?t(e):t}function Fi(t,e,n){return Math.max(Math.min(e,n),Math.min(Math.max(e,n),t))}var Ci=class{constructor(t){this.g=t}oa(t,e){if(t){var n=this.g;e=Si(e),n.save();var r=n.canvas,s=0;for(const a of t)n.fillStyle=Li(e.fillColor,{index:s,from:a}),n.strokeStyle=Li(e.color,{index:s,from:a}),n.lineWidth=Li(e.lineWidth,{index:s,from:a}),(t=new Path2D).arc(a.x*r.width,a.y*r.height,Li(e.radius,{index:s,from:a}),0,2*Math.PI),n.fill(t),n.stroke(t),++s;n.restore()}}na(t,e,n){if(t&&e){var r=this.g;n=Si(n),r.save();var s=r.canvas,a=0;for(const d of e){r.beginPath(),e=t[d.start];const i=t[d.end];e&&i&&(r.strokeStyle=Li(n.color,{index:a,from:e,to:i}),r.lineWidth=Li(n.lineWidth,{index:a,from:e,to:i}),r.moveTo(e.x*s.width,e.y*s.height),r.lineTo(i.x*s.width,i.y*s.height)),++a,r.stroke()}r.restore()}}ma(t,e){const n=this.g;e=Si(e),n.save(),n.beginPath(),n.lineWidth=Li(e.lineWidth,{}),n.strokeStyle=Li(e.color,{}),n.fillStyle=Li(e.fillColor,{}),n.moveTo(t.originX,t.originY),n.lineTo(t.originX+t.width,t.originY),n.lineTo(t.originX+t.width,t.originY+t.height),n.lineTo(t.originX,t.originY+t.height),n.lineTo(t.originX,t.originY),n.stroke(),n.fill(),n.restore()}};function Oi(t,e){if(null===t)throw Error(`Unable to obtain required WebGL resource: ${e}`);return t}Ci.prototype.drawBoundingBox=Ci.prototype.ma,Ci.prototype.drawConnectors=Ci.prototype.na,Ci.prototype.drawLandmarks=Ci.prototype.oa,Ci.lerp=function(t,e,n,r,s){return Fi(r*(1-(t-e)/(n-e))+s*(1-(n-t)/(n-e)),r,s)},Ci.clamp=Fi;class Ri{constructor(t,e,n,r){this.g=t,this.h=e,this.m=n,this.j=r}bind(){this.g.bindVertexArray(this.h)}close(){this.g.deleteVertexArray(this.h),this.g.deleteBuffer(this.m),this.g.deleteBuffer(this.j)}}function Mi(t,e,n){const r=t.h;if(n=Oi(r.createShader(n),"Failed to create WebGL shader"),r.shaderSource(n,e),r.compileShader(n),!r.getShaderParameter(n,r.COMPILE_STATUS))throw Error(`Could not compile WebGL shader: ${r.getShaderInfoLog(n)}`);return r.attachShader(t.g,n),n}function Pi(t,e){const n=t.h,r=Oi(n.createVertexArray(),"Failed to create vertex array");n.bindVertexArray(r);const s=Oi(n.createBuffer(),"Failed to create buffer");n.bindBuffer(n.ARRAY_BUFFER,s),n.enableVertexAttribArray(t.o),n.vertexAttribPointer(t.o,2,n.FLOAT,!1,0,0),n.bufferData(n.ARRAY_BUFFER,new Float32Array([-1,-1,-1,1,1,1,1,-1]),n.STATIC_DRAW);const a=Oi(n.createBuffer(),"Failed to create buffer");return n.bindBuffer(n.ARRAY_BUFFER,a),n.enableVertexAttribArray(t.A),n.vertexAttribPointer(t.A,2,n.FLOAT,!1,0,0),n.bufferData(n.ARRAY_BUFFER,new Float32Array(e?[0,1,0,0,1,0,1,1]:[0,0,0,1,1,1,1,0]),n.STATIC_DRAW),n.bindBuffer(n.ARRAY_BUFFER,null),n.bindVertexArray(null),new Ri(n,r,s,a)}function Ii(t,e){if(t.h){if(e!==t.h)throw Error("Cannot change GL context once initialized")}else t.h=e}function Ni(t,e,n,r){if(Ii(t,e),!t.g){const e=t.h;if(t.g=Oi(e.createProgram(),"Failed to create WebGL program"),t.B=Mi(t,"\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),t.u=Mi(t,"\n precision mediump float;\n varying vec2 vTex;\n uniform sampler2D inputTexture;\n void main() {\n gl_FragColor = texture2D(inputTexture, vTex);\n }\n ",e.FRAGMENT_SHADER),e.linkProgram(t.g),!e.getProgramParameter(t.g,e.LINK_STATUS))throw Error(`Error during program linking: ${e.getProgramInfoLog(t.g)}`);t.o=e.getAttribLocation(t.g,"aVertex"),t.A=e.getAttribLocation(t.g,"aTex")}return n?(t.m||(t.m=Pi(t,!0)),n=t.m):(t.i||(t.i=Pi(t,!1)),n=t.i),e.useProgram(t.g),n.bind(),t=r(),n.g.bindVertexArray(null),t}function Di(t,e,n){Ii(t,e),t.j||(t.j=Oi(e.createFramebuffer(),"Failed to create framebuffe.")),e.bindFramebuffer(e.FRAMEBUFFER,t.j),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,n,0)}function $i(t){t.h?.bindFramebuffer(t.h.FRAMEBUFFER,null)}var Ui=class{close(){if(this.g){const t=this.h;t.deleteProgram(this.g),t.deleteShader(this.B),t.deleteShader(this.u)}this.j&&this.h.deleteFramebuffer(this.j),this.i&&this.i.close(),this.m&&this.m.close()}};function Bi(t,e){switch(e){case 0:return t.g.find((t=>t instanceof ImageData));case 1:return t.g.find((t=>"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap));case 2:return t.g.find((t=>"undefined"!=typeof WebGLTexture&&t instanceof WebGLTexture));default:throw Error(`Type is not supported: ${e}`)}}function ji(t){var e=Bi(t,0);if(!e){e=Vi(t);const n=Wi(t),r=new Uint8Array(t.width*t.height*4);Di(n,e,Gi(t)),e.readPixels(0,0,t.width,t.height,e.RGBA,e.UNSIGNED_BYTE,r),$i(n),e=new ImageData(new Uint8ClampedArray(r.buffer),t.width,t.height),t.g.push(e)}return e}function Gi(t){let e=Bi(t,2);if(!e){const n=Vi(t);e=Hi(t);const r=Bi(t,1)||ji(t);n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,r),Ki(t)}return e}function Vi(t){if(!t.canvas)throw Error("Conversion to different image formats require that a canvas is passed when iniitializing the image.");return t.h||(t.h=Oi(t.canvas.getContext("webgl2"),"You cannot use a canvas that is already bound to a different type of rendering context.")),t.h}function Wi(t){return t.j||(t.j=new Ui),t.j}function zi(t){(t=Vi(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,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR)}function Hi(t){const e=Vi(t);e.viewport(0,0,t.width,t.height),e.activeTexture(e.TEXTURE0);let n=Bi(t,2);return n?e.bindTexture(e.TEXTURE_2D,n):(n=Oi(e.createTexture(),"Failed to create texture"),t.g.push(n),t.m=!0,e.bindTexture(e.TEXTURE_2D,n),zi(t)),n}function Ki(t){t.h.bindTexture(t.h.TEXTURE_2D,null)}function Xi(t){const e=Vi(t);return Ni(Wi(t),e,!0,(()=>function(t,e){const n=t.canvas;if(n.width===t.width&&n.height===t.height)return e();const r=n.width,s=n.height;return n.width=t.width,n.height=t.height,t=e(),n.width=r,n.height=s,t}(t,(()=>{if(e.bindFramebuffer(e.FRAMEBUFFER,null),e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT),e.drawArrays(e.TRIANGLE_FAN,0,4),!(t.canvas instanceof OffscreenCanvas))throw Error("Conversion to ImageBitmap requires that the MediaPipe Tasks is initialized with an OffscreenCanvas");return t.canvas.transferToImageBitmap()}))))}var Yi=class{constructor(t,e,n,r,s,a,d){this.g=t,this.i=e,this.m=n,this.canvas=r,this.j=s,this.width=a,this.height=d,(this.i||this.m)&&(0===--qi&&console.error("You seem to be creating MPImage instances without invoking .close(). This leaks resources."))}xa(){return!!Bi(this,0)}ba(){return!!Bi(this,1)}L(){return!!Bi(this,2)}ta(){return ji(this)}sa(){var t=Bi(this,1);return t||(Gi(this),Hi(this),t=Xi(this),Ki(this),this.g.push(t),this.i=!0),t}T(){return Gi(this)}clone(){const t=[];for(const e of this.g){let n;if(e instanceof ImageData)n=new ImageData(e.data,this.width,this.height);else if(e instanceof WebGLTexture){const t=Vi(this),e=Wi(this);t.activeTexture(t.TEXTURE1),n=Oi(t.createTexture(),"Failed to create texture"),t.bindTexture(t.TEXTURE_2D,n),zi(this),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,this.width,this.height,0,t.RGBA,t.UNSIGNED_BYTE,null),t.bindTexture(t.TEXTURE_2D,null),Di(e,t,n),Ni(e,t,!1,(()=>{Hi(this),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),t.drawArrays(t.TRIANGLE_FAN,0,4),Ki(this)})),$i(e),Ki(this)}else{if(!(e instanceof ImageBitmap))throw Error(`Type is not supported: ${e}`);Gi(this),Hi(this),n=Xi(this),Ki(this)}t.push(n)}return new Yi(t,this.ba(),this.L(),this.canvas,this.j,this.width,this.height)}close(){this.i&&Bi(this,1).close(),this.m&&Vi(this).deleteTexture(Bi(this,2)),qi=-1}};Yi.prototype.close=Yi.prototype.close,Yi.prototype.clone=Yi.prototype.clone,Yi.prototype.getAsWebGLTexture=Yi.prototype.T,Yi.prototype.getAsImageBitmap=Yi.prototype.sa,Yi.prototype.getAsImageData=Yi.prototype.ta,Yi.prototype.hasWebGLTexture=Yi.prototype.L,Yi.prototype.hasImageBitmap=Yi.prototype.ba,Yi.prototype.hasImageData=Yi.prototype.xa;var qi=250;function Ji(t,e){switch(e){case 0:return t.g.find((t=>t instanceof Uint8Array));case 1:return t.g.find((t=>t instanceof Float32Array));case 2:return t.g.find((t=>"undefined"!=typeof WebGLTexture&&t instanceof WebGLTexture));default:throw Error(`Type is not supported: ${e}`)}}function Zi(t){var e=Ji(t,1);if(!e){if(e=Ji(t,0))e=new Float32Array(e).map((t=>t/255));else{e=new Float32Array(t.width*t.height);const r=to(t);var n=no(t);if(Di(n,r,Qi(t)),"iPad Simulator;iPhone Simulator;iPod Simulator;iPad;iPhone;iPod".split(";").includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document){n=new Float32Array(t.width*t.height*4),r.readPixels(0,0,t.width,t.height,r.RGBA,r.FLOAT,n);for(let t=0,r=0;t<e.length;++t,r+=4)e[t]=n[r]}else r.readPixels(0,0,t.width,t.height,r.RED,r.FLOAT,e)}t.g.push(e)}return e}function Qi(t){let e=Ji(t,2);if(!e){const n=to(t);e=so(t);const r=Zi(t),s=eo(t);n.texImage2D(n.TEXTURE_2D,0,s,t.width,t.height,0,n.RED,n.FLOAT,r),ao(t)}return e}function to(t){if(!t.canvas)throw Error("Conversion to different image formats require that a canvas is passed when initializing the image.");return t.h||(t.h=Oi(t.canvas.getContext("webgl2"),"You cannot use a canvas that is already bound to a different type of rendering context.")),t.h}function eo(t){if(t=to(t),!io)if(t.getExtension("EXT_color_buffer_float")&&t.getExtension("OES_texture_float_linear")&&t.getExtension("EXT_float_blend"))io=t.R32F;else{if(!t.getExtension("EXT_color_buffer_half_float"))throw Error("GPU does not fully support 4-channel float32 or float16 formats");io=t.R16F}return io}function no(t){return t.j||(t.j=new Ui),t.j}function ro(t){(t=to(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,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST)}function so(t){const e=to(t);e.viewport(0,0,t.width,t.height),e.activeTexture(e.TEXTURE0);let n=Ji(t,2);return n?e.bindTexture(e.TEXTURE_2D,n):(n=Oi(e.createTexture(),"Failed to create texture"),t.g.push(n),t.m=!0,e.bindTexture(e.TEXTURE_2D,n),ro(t)),n}function ao(t){t.h.bindTexture(t.h.TEXTURE_2D,null)}var io,oo=class{constructor(t,e,n,r,s,a){this.g=t,this.m=e,this.canvas=n,this.j=r,this.width=s,this.height=a,this.m&&(0===--co&&console.error("You seem to be creating MPMask instances without invoking .close(). This leaks resources."))}ya(){return!!Ji(this,0)}wa(){return!!Ji(this,1)}L(){return!!Ji(this,2)}ua(){return(e=Ji(t=this,0))||(e=Zi(t),e=new Uint8Array(e.map((t=>255*t))),t.g.push(e)),e;var t,e}ra(){return Zi(this)}T(){return Qi(this)}clone(){const t=[];for(const e of this.g){let n;if(e instanceof Uint8Array)n=new Uint8Array(e);else if(e instanceof Float32Array)n=new Float32Array(e);else{if(!(e instanceof WebGLTexture))throw Error(`Type is not supported: ${e}`);{const t=to(this),e=no(this);t.activeTexture(t.TEXTURE1),n=Oi(t.createTexture(),"Failed to create texture"),t.bindTexture(t.TEXTURE_2D,n),ro(this);const r=eo(this);t.texImage2D(t.TEXTURE_2D,0,r,this.width,this.height,0,t.RED,t.FLOAT,null),t.bindTexture(t.TEXTURE_2D,null),Di(e,t,n),Ni(e,t,!1,(()=>{so(this),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),t.drawArrays(t.TRIANGLE_FAN,0,4),ao(this)})),$i(e),ao(this)}}t.push(n)}return new oo(t,this.L(),this.canvas,this.j,this.width,this.height)}close(){this.m&&to(this).deleteTexture(Ji(this,2)),co=-1}};oo.prototype.close=oo.prototype.close,oo.prototype.clone=oo.prototype.clone,oo.prototype.getAsWebGLTexture=oo.prototype.T,oo.prototype.getAsFloat32Array=oo.prototype.ra,oo.prototype.getAsUint8Array=oo.prototype.ua,oo.prototype.hasWebGLTexture=oo.prototype.L,oo.prototype.hasFloat32Array=oo.prototype.wa,oo.prototype.hasUint8Array=oo.prototype.ya;var co=250;const ho=function(t){return class extends t{Ca(){this.l._registerModelResourcesGraphService()}}}((uo=class{constructor(t,e){this.j=!0,this.l=t,this.g=null,this.h=0,this.m="function"==typeof this.l._addIntToInputStream,void 0!==e?this.l.canvas=e:"undefined"==typeof OffscreenCanvas||ui()?(console.warn("OffscreenCanvas not supported and GraphRunner constructor glCanvas parameter is undefined. Creating backup canvas."),this.l.canvas=document.createElement("canvas")):this.l.canvas=new OffscreenCanvas(1,1)}async initializeGraph(t){const e=await(await fetch(t)).arrayBuffer();t=!(t.endsWith(".pbtxt")||t.endsWith(".textproto")),this.setGraph(new Uint8Array(e),t)}setGraphFromString(t){this.setGraph((new TextEncoder).encode(t),!1)}setGraph(t,e){const n=t.length,r=this.l._malloc(n);this.l.HEAPU8.set(t,r),e?this.l._changeBinaryGraph(n,r):this.l._changeTextGraph(n,r),this.l._free(r)}configureAudio(t,e,n,r,s){this.l._configureAudio||console.warn('Attempting to use configureAudio without support for input audio. Is build dep ":gl_graph_runner_audio" missing?'),li(this,r||"input_audio",(r=>{li(this,s=s||"audio_header",(s=>{this.l._configureAudio(r,s,t,e,n)}))}))}setAutoResizeCanvas(t){this.j=t}setAutoRenderToScreen(t){this.l._setAutoRenderToScreen(t)}setGpuBufferVerticalFlip(t){this.l.gpuOriginForWebTexturesIsBottomLeft=t}U(t){gi(this,"__graph_config__",(e=>{t(e)})),li(this,"__graph_config__",(t=>{this.l._getGraphConfig(t,void 0)})),delete this.l.simpleListeners.__graph_config__}attachErrorListener(t){this.l.errorListener=t}attachEmptyPacketListener(t,e){this.l.emptyPacketListeners=this.l.emptyPacketListeners||{},this.l.emptyPacketListeners[t]=e}addAudioToStream(t,e,n){this.addAudioToStreamWithShape(t,0,0,e,n)}addAudioToStreamWithShape(t,e,n,r,s){const a=4*t.length;this.h!==a&&(this.g&&this.l._free(this.g),this.g=this.l._malloc(a),this.h=a),this.l.HEAPF32.set(t,this.g/4),li(this,r,(t=>{this.l._addAudioToInputStream(this.g,e,n,t,s)}))}addGpuBufferToStream(t,e,n){li(this,e,(e=>{const[r,s]=fi(this,t,e);this.l._addBoundTextureToStream(e,r,s,n)}))}addBoolToStream(t,e,n){li(this,e,(e=>{this.l._addBoolToInputStream(t,e,n)}))}addDoubleToStream(t,e,n){li(this,e,(e=>{this.l._addDoubleToInputStream(t,e,n)}))}addFloatToStream(t,e,n){li(this,e,(e=>{this.l._addFloatToInputStream(t,e,n)}))}addIntToStream(t,e,n){li(this,e,(e=>{this.l._addIntToInputStream(t,e,n)}))}addStringToStream(t,e,n){li(this,e,(e=>{li(this,t,(t=>{this.l._addStringToInputStream(t,e,n)}))}))}addStringRecordToStream(t,e,n){li(this,e,(e=>{pi(this,Object.keys(t),(r=>{pi(this,Object.values(t),(s=>{this.l._addFlatHashMapToInputStream(r,s,Object.keys(t).length,e,n)}))}))}))}addProtoToStream(t,e,n,r){li(this,n,(n=>{li(this,e,(e=>{const s=this.l._malloc(t.length);this.l.HEAPU8.set(t,s),this.l._addProtoToInputStream(s,t.length,e,n,r),this.l._free(s)}))}))}addEmptyPacketToStream(t,e){li(this,t,(t=>{this.l._addEmptyPacketToInputStream(t,e)}))}addBoolToInputSidePacket(t,e){li(this,e,(e=>{this.l._addBoolToInputSidePacket(t,e)}))}addDoubleToInputSidePacket(t,e){li(this,e,(e=>{this.l._addDoubleToInputSidePacket(t,e)}))}addFloatToInputSidePacket(t,e){li(this,e,(e=>{this.l._addFloatToInputSidePacket(t,e)}))}addIntToInputSidePacket(t,e){li(this,e,(e=>{this.l._addIntToInputSidePacket(t,e)}))}addStringToInputSidePacket(t,e){li(this,e,(e=>{li(this,t,(t=>{this.l._addStringToInputSidePacket(t,e)}))}))}addProtoToInputSidePacket(t,e,n){li(this,n,(n=>{li(this,e,(e=>{const r=this.l._malloc(t.length);this.l.HEAPU8.set(t,r),this.l._addProtoToInputSidePacket(r,t.length,e,n),this.l._free(r)}))}))}attachBoolListener(t,e){gi(this,t,e),li(this,t,(t=>{this.l._attachBoolListener(t)}))}attachBoolVectorListener(t,e){mi(this,t,e),li(this,t,(t=>{this.l._attachBoolVectorListener(t)}))}attachIntListener(t,e){gi(this,t,e),li(this,t,(t=>{this.l._attachIntListener(t)}))}attachIntVectorListener(t,e){mi(this,t,e),li(this,t,(t=>{this.l._attachIntVectorListener(t)}))}attachDoubleListener(t,e){gi(this,t,e),li(this,t,(t=>{this.l._attachDoubleListener(t)}))}attachDoubleVectorListener(t,e){mi(this,t,e),li(this,t,(t=>{this.l._attachDoubleVectorListener(t)}))}attachFloatListener(t,e){gi(this,t,e),li(this,t,(t=>{this.l._attachFloatListener(t)}))}attachFloatVectorListener(t,e){mi(this,t,e),li(this,t,(t=>{this.l._attachFloatVectorListener(t)}))}attachStringListener(t,e){gi(this,t,e),li(this,t,(t=>{this.l._attachStringListener(t)}))}attachStringVectorListener(t,e){mi(this,t,e),li(this,t,(t=>{this.l._attachStringVectorListener(t)}))}attachProtoListener(t,e,n){gi(this,t,e),li(this,t,(t=>{this.l._attachProtoListener(t,n||!1)}))}attachProtoVectorListener(t,e,n){mi(this,t,e),li(this,t,(t=>{this.l._attachProtoVectorListener(t,n||!1)}))}attachAudioListener(t,e,n){this.l._attachAudioListener||console.warn('Attempting to use attachAudioListener without support for output audio. Is build dep ":gl_graph_runner_audio_out" missing?'),gi(this,t,((t,n)=>{t=new Float32Array(t.buffer,t.byteOffset,t.length/4),e(t,n)})),li(this,t,(t=>{this.l._attachAudioListener(t,n||!1)}))}finishProcessing(){this.l._waitUntilIdle()}closeGraph(){this.l._closeGraph(),this.l.simpleListeners=void 0,this.l.emptyPacketListeners=void 0}},class extends uo{get X(){return this.l}ia(t,e,n){li(this,e,(e=>{const[r,s]=fi(this,t,e);this.X._addBoundTextureAsImageToStream(e,r,s,n)}))}P(t,e){gi(this,t,e),li(this,t,(t=>{this.X._attachImageListener(t)}))}R(t,e){mi(this,t,e),li(this,t,(t=>{this.X._attachImageVectorListener(t)}))}}));var uo,lo=class extends ho{};async function fo(t,e,n){return async function(t,e,n,r){return _i(t,e,n,r)}(t,n.canvas??("undefined"==typeof OffscreenCanvas||ui()?document.createElement("canvas"):void 0),e,n)}function po(t,e,n,r){if(t.Y){const a=new Da;if(n?.regionOfInterest){if(!t.ga)throw Error("This task doesn't support region-of-interest.");var s=n.regionOfInterest;if(s.left>=s.right||s.top>=s.bottom)throw Error("Expected RectF with left < right and top < bottom.");if(0>s.left||0>s.top||1<s.right||1<s.bottom)throw Error("Expected RectF values to be in [0,1].");Tn(a,1,(s.left+s.right)/2),Tn(a,2,(s.top+s.bottom)/2),Tn(a,4,s.right-s.left),Tn(a,3,s.bottom-s.top)}else Tn(a,1,.5),Tn(a,2,.5),Tn(a,4,1),Tn(a,3,1);if(n?.rotationDegrees){if(0!=n?.rotationDegrees%90)throw Error("Expected rotation to be a multiple of 90°.");if(Tn(a,5,-Math.PI*n.rotationDegrees/180),0!=n?.rotationDegrees%180){const[t,r]=void 0!==e.videoWidth?[e.videoWidth,e.videoHeight]:void 0!==e.naturalWidth?[e.naturalWidth,e.naturalHeight]:[e.width,e.height];n=An(a,3)*r/t,s=An(a,4)*t/r,Tn(a,4,n),Tn(a,3,s)}}t.g.addProtoToStream(a.g(),"mediapipe.NormalizedRect",t.Y,r)}t.g.ia(e,t.fa,r??performance.now()),t.finishProcessing()}function go(t,e,n){if(t.baseOptions?.g())throw Error("Task is not initialized with image mode. 'runningMode' must be set to 'IMAGE'.");po(t,e,n,t.D+1)}function mo(t,e,n,r){if(!t.baseOptions?.g())throw Error("Task is not initialized with video mode. 'runningMode' must be set to 'VIDEO'.");po(t,e,n,r)}function yo(t,e,n){var r=e.data;const s=e.width,a=s*(e=e.height);if((r instanceof Uint8Array||r instanceof Float32Array)&&r.length!==a)throw Error("Unsupported channel count: "+r.length/a);return t=new oo([r],!1,t.g.l.canvas,t.J,s,e),n?t.clone():t}var _o=class extends ki{constructor(t,e,n,r){super(t),this.g=t,this.fa=e,this.Y=n,this.ga=r,this.J=new Ui}j(t,e=!0){if("runningMode"in t&&En(this.baseOptions,2,!!t.runningMode&&"IMAGE"!==t.runningMode),void 0!==t.canvas&&this.g.l.canvas!==t.canvas)throw Error("You must create a new task to reset the canvas.");return super.j(t,e)}close(){this.J.close(),super.close()}};_o.prototype.close=_o.prototype.close,s("FaceDetector",class extends _o{constructor(t,e){super(new lo(t,e),"image_in","norm_rect_in",!1),this.i={detections:[]},this.h=new ad,t=new rd,pn(this.h,0,1,t),Tn(this.h,2,.5),Tn(this.h,3,.3)}get baseOptions(){return un(this.h,rd,1)}set baseOptions(t){pn(this.h,0,1,t)}s(t){return"minDetectionConfidence"in t&&Tn(this.h,2,t.minDetectionConfidence??.5),"minSuppressionThreshold"in t&&Tn(this.h,3,t.minSuppressionThreshold??.3),this.j(t)}G(t,e){return this.i={detections:[]},go(this,t,e),this.i}H(t,e,n){return this.i={detections:[]},mo(this,t,n,e),this.i}m(){var t=new ia;aa(t,"image_in"),aa(t,"norm_rect_in"),da(t,"detections");const e=new js;xn(e,id,this.h);const n=new Zs;Ys(n,"mediapipe.tasks.vision.face_detector.FaceDetectorGraph"),qs(n,"IMAGE:image_in"),qs(n,"NORM_RECT:norm_rect_in"),Js(n,"DETECTIONS:detections"),n.s(e),sa(t,n),this.g.attachProtoVectorListener("detections",((t,e)=>{for(const e of t)t=xa(e),this.i.detections.push(ei(t));Ai(this,e)})),this.g.attachEmptyPacketListener("detections",(t=>{Ai(this,t)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}});var vo=[{start:61,end:146},{start:146,end:91},{start:91,end:181},{start:181,end:84},{start:84,end:17},{start:17,end:314},{start:314,end:405},{start:405,end:321},{start:321,end:375},{start:375,end:291},{start:61,end:185},{start:185,end:40},{start:40,end:39},{start:39,end:37},{start:37,end:0},{start:0,end:267},{start:267,end:269},{start:269,end:270},{start:270,end:409},{start:409,end:291},{start:78,end:95},{start:95,end:88},{start:88,end:178},{start:178,end:87},{start:87,end:14},{start:14,end:317},{start:317,end:402},{start:402,end:318},{start:318,end:324},{start:324,end:308},{start:78,end:191},{start:191,end:80},{start:80,end:81},{start:81,end:82},{start:82,end:13},{start:13,end:312},{start:312,end:311},{start:311,end:310},{start:310,end:415},{start:415,end:308}],wo=[{start:263,end:249},{start:249,end:390},{start:390,end:373},{start:373,end:374},{start:374,end:380},{start:380,end:381},{start:381,end:382},{start:382,end:362},{start:263,end:466},{start:466,end:388},{start:388,end:387},{start:387,end:386},{start:386,end:385},{start:385,end:384},{start:384,end:398},{start:398,end:362}],Ao=[{start:276,end:283},{start:283,end:282},{start:282,end:295},{start:295,end:285},{start:300,end:293},{start:293,end:334},{start:334,end:296},{start:296,end:336}],Eo=[{start:33,end:7},{start:7,end:163},{start:163,end:144},{start:144,end:145},{start:145,end:153},{start:153,end:154},{start:154,end:155},{start:155,end:133},{start:33,end:246},{start:246,end:161},{start:161,end:160},{start:160,end:159},{start:159,end:158},{start:158,end:157},{start:157,end:173},{start:173,end:133}],bo=[{start:46,end:53},{start:53,end:52},{start:52,end:65},{start:65,end:55},{start:70,end:63},{start:63,end:105},{start:105,end:66},{start:66,end:107}],To=[{start:10,end:338},{start:338,end:297},{start:297,end:332},{start:332,end:284},{start:284,end:251},{start:251,end:389},{start:389,end:356},{start:356,end:454},{start:454,end:323},{start:323,end:361},{start:361,end:288},{start:288,end:397},{start:397,end:365},{start:365,end:379},{start:379,end:378},{start:378,end:400},{start:400,end:377},{start:377,end:152},{start:152,end:148},{start:148,end:176},{start:176,end:149},{start:149,end:150},{start:150,end:136},{start:136,end:172},{start:172,end:58},{start:58,end:132},{start:132,end:93},{start:93,end:234},{start:234,end:127},{start:127,end:162},{start:162,end:21},{start:21,end:54},{start:54,end:103},{start:103,end:67},{start:67,end:109},{start:109,end:10}],ko=[...vo,...wo,...Ao,...Eo,...bo,...To];function xo(t){t.i={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]}}var So=class extends _o{constructor(t,e){super(new lo(t,e),"image_in","norm_rect",!1),this.i={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]},this.outputFacialTransformationMatrixes=this.outputFaceBlendshapes=!1,this.h=new pd,t=new rd,pn(this.h,0,1,t),this.u=new ld,pn(this.h,0,3,this.u),this.o=new ad,pn(this.h,0,2,this.o),bn(this.o,4,1),Tn(this.o,2,.5),Tn(this.u,2,.5),Tn(this.h,4,.5)}get baseOptions(){return un(this.h,rd,1)}set baseOptions(t){pn(this.h,0,1,t)}s(t){return"numFaces"in t&&bn(this.o,4,t.numFaces??1),"minFaceDetectionConfidence"in t&&Tn(this.o,2,t.minFaceDetectionConfidence??.5),"minTrackingConfidence"in t&&Tn(this.h,4,t.minTrackingConfidence??.5),"minFacePresenceConfidence"in t&&Tn(this.u,2,t.minFacePresenceConfidence??.5),"outputFaceBlendshapes"in t&&(this.outputFaceBlendshapes=!!t.outputFaceBlendshapes),"outputFacialTransformationMatrixes"in t&&(this.outputFacialTransformationMatrixes=!!t.outputFacialTransformationMatrixes),this.j(t)}G(t,e){return xo(this),go(this,t,e),this.i}H(t,e,n){return xo(this),mo(this,t,n,e),this.i}m(){var t=new ia;aa(t,"image_in"),aa(t,"norm_rect"),da(t,"face_landmarks");const e=new js;xn(e,md,this.h);const n=new Zs;Ys(n,"mediapipe.tasks.vision.face_landmarker.FaceLandmarkerGraph"),qs(n,"IMAGE:image_in"),qs(n,"NORM_RECT:norm_rect"),Js(n,"NORM_LANDMARKS:face_landmarks"),n.s(e),sa(t,n),this.g.attachProtoVectorListener("face_landmarks",((t,e)=>{for(const e of t)t=Pa(e),this.i.faceLandmarks.push(ni(t));Ai(this,e)})),this.g.attachEmptyPacketListener("face_landmarks",(t=>{Ai(this,t)})),this.outputFaceBlendshapes&&(da(t,"blendshapes"),Js(n,"BLENDSHAPES:blendshapes"),this.g.attachProtoVectorListener("blendshapes",((t,e)=>{if(this.outputFaceBlendshapes)for(const e of t)t=ga(e),this.i.faceBlendshapes.push(ti(t.g()??[]));Ai(this,e)})),this.g.attachEmptyPacketListener("blendshapes",(t=>{Ai(this,t)}))),this.outputFacialTransformationMatrixes&&(da(t,"face_geometry"),Js(n,"FACE_GEOMETRY:face_geometry"),this.g.attachProtoVectorListener("face_geometry",((t,e)=>{if(this.outputFacialTransformationMatrixes)for(const e of t)(t=un(hd(e),Ia,2))&&this.i.facialTransformationMatrixes.push({rows:wn(yn(t,1))??0,columns:wn(yn(t,2))??0,data:en(t,3,ye)??[]});Ai(this,e)})),this.g.attachEmptyPacketListener("face_geometry",(t=>{Ai(this,t)}))),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};So.prototype.detectForVideo=So.prototype.H,So.prototype.detect=So.prototype.G,So.prototype.setOptions=So.prototype.s,So.createFromModelPath=function(t,e){return fo(So,t,{baseOptions:{modelAssetPath:e}})},So.createFromModelBuffer=function(t,e){return fo(So,t,{baseOptions:{modelAssetBuffer:e}})},So.createFromOptions=function(t,e){return fo(So,t,e)},So.FACE_LANDMARKS_LIPS=vo,s("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_LIPS",So.FACE_LANDMARKS_LIPS),So.FACE_LANDMARKS_LEFT_EYE=wo,s("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_LEFT_EYE",So.FACE_LANDMARKS_LEFT_EYE),So.FACE_LANDMARKS_LEFT_EYEBROW=Ao,s("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_LEFT_EYEBROW",So.FACE_LANDMARKS_LEFT_EYEBROW),So.FACE_LANDMARKS_LEFT_IRIS=[{start:474,end:475},{start:475,end:476},{start:476,end:477},{start:477,end:474}],s("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_LEFT_IRIS",So.FACE_LANDMARKS_LEFT_IRIS),So.FACE_LANDMARKS_RIGHT_EYE=Eo,s("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_RIGHT_EYE",So.FACE_LANDMARKS_RIGHT_EYE),So.FACE_LANDMARKS_RIGHT_EYEBROW=bo,s("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_RIGHT_EYEBROW",So.FACE_LANDMARKS_RIGHT_EYEBROW),So.FACE_LANDMARKS_RIGHT_IRIS=[{start:469,end:470},{start:470,end:471},{start:471,end:472},{start:472,end:469}],s("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_RIGHT_IRIS",So.FACE_LANDMARKS_RIGHT_IRIS),So.FACE_LANDMARKS_FACE_OVAL=To,s("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_FACE_OVAL",So.FACE_LANDMARKS_FACE_OVAL),So.FACE_LANDMARKS_CONTOURS=ko,s("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_CONTOURS",So.FACE_LANDMARKS_CONTOURS),So.FACE_LANDMARKS_TESSELATION=[{start:127,end:34},{start:34,end:139},{start:139,end:127},{start:11,end:0},{start:0,end:37},{start:37,end:11},{start:232,end:231},{start:231,end:120},{start:120,end:232},{start:72,end:37},{start:37,end:39},{start:39,end:72},{start:128,end:121},{start:121,end:47},{start:47,end:128},{start:232,end:121},{start:121,end:128},{start:128,end:232},{start:104,end:69},{start:69,end:67},{start:67,end:104},{start:175,end:171},{start:171,end:148},{start:148,end:175},{start:118,end:50},{start:50,end:101},{start:101,end:118},{start:73,end:39},{start:39,end:40},{start:40,end:73},{start:9,end:151},{start:151,end:108},{start:108,end:9},{start:48,end:115},{start:115,end:131},{start:131,end:48},{start:194,end:204},{start:204,end:211},{start:211,end:194},{start:74,end:40},{start:40,end:185},{start:185,end:74},{start:80,end:42},{start:42,end:183},{start:183,end:80},{start:40,end:92},{start:92,end:186},{start:186,end:40},{start:230,end:229},{start:229,end:118},{start:118,end:230},{start:202,end:212},{start:212,end:214},{start:214,end:202},{start:83,end:18},{start:18,end:17},{start:17,end:83},{start:76,end:61},{start:61,end:146},{start:146,end:76},{start:160,end:29},{start:29,end:30},{start:30,end:160},{start:56,end:157},{start:157,end:173},{start:173,end:56},{start:106,end:204},{start:204,end:194},{start:194,end:106},{start:135,end:214},{start:214,end:192},{start:192,end:135},{start:203,end:165},{start:165,end:98},{start:98,end:203},{start:21,end:71},{start:71,end:68},{start:68,end:21},{start:51,end:45},{start:45,end:4},{start:4,end:51},{start:144,end:24},{start:24,end:23},{start:23,end:144},{start:77,end:146},{start:146,end:91},{start:91,end:77},{start:205,end:50},{start:50,end:187},{start:187,end:205},{start:201,end:200},{start:200,end:18},{start:18,end:201},{start:91,end:106},{start:106,end:182},{start:182,end:91},{start:90,end:91},{start:91,end:181},{start:181,end:90},{start:85,end:84},{start:84,end:17},{start:17,end:85},{start:206,end:203},{start:203,end:36},{start:36,end:206},{start:148,end:171},{start:171,end:140},{start:140,end:148},{start:92,end:40},{start:40,end:39},{start:39,end:92},{start:193,end:189},{start:189,end:244},{start:244,end:193},{start:159,end:158},{start:158,end:28},{start:28,end:159},{start:247,end:246},{start:246,end:161},{start:161,end:247},{start:236,end:3},{start:3,end:196},{start:196,end:236},{start:54,end:68},{start:68,end:104},{start:104,end:54},{start:193,end:168},{start:168,end:8},{start:8,end:193},{start:117,end:228},{start:228,end:31},{start:31,end:117},{start:189,end:193},{start:193,end:55},{start:55,end:189},{start:98,end:97},{start:97,end:99},{start:99,end:98},{start:126,end:47},{start:47,end:100},{start:100,end:126},{start:166,end:79},{start:79,end:218},{start:218,end:166},{start:155,end:154},{start:154,end:26},{start:26,end:155},{start:209,end:49},{start:49,end:131},{start:131,end:209},{start:135,end:136},{start:136,end:150},{start:150,end:135},{start:47,end:126},{start:126,end:217},{start:217,end:47},{start:223,end:52},{start:52,end:53},{start:53,end:223},{start:45,end:51},{start:51,end:134},{start:134,end:45},{start:211,end:170},{start:170,end:140},{start:140,end:211},{start:67,end:69},{start:69,end:108},{start:108,end:67},{start:43,end:106},{start:106,end:91},{start:91,end:43},{start:230,end:119},{start:119,end:120},{start:120,end:230},{start:226,end:130},{start:130,end:247},{start:247,end:226},{start:63,end:53},{start:53,end:52},{start:52,end:63},{start:238,end:20},{start:20,end:242},{start:242,end:238},{start:46,end:70},{start:70,end:156},{start:156,end:46},{start:78,end:62},{start:62,end:96},{start:96,end:78},{start:46,end:53},{start:53,end:63},{start:63,end:46},{start:143,end:34},{start:34,end:227},{start:227,end:143},{start:123,end:117},{start:117,end:111},{start:111,end:123},{start:44,end:125},{start:125,end:19},{start:19,end:44},{start:236,end:134},{start:134,end:51},{start:51,end:236},{start:216,end:206},{start:206,end:205},{start:205,end:216},{start:154,end:153},{start:153,end:22},{start:22,end:154},{start:39,end:37},{start:37,end:167},{start:167,end:39},{start:200,end:201},{start:201,end:208},{start:208,end:200},{start:36,end:142},{start:142,end:100},{start:100,end:36},{start:57,end:212},{start:212,end:202},{start:202,end:57},{start:20,end:60},{start:60,end:99},{start:99,end:20},{start:28,end:158},{start:158,end:157},{start:157,end:28},{start:35,end:226},{start:226,end:113},{start:113,end:35},{start:160,end:159},{start:159,end:27},{start:27,end:160},{start:204,end:202},{start:202,end:210},{start:210,end:204},{start:113,end:225},{start:225,end:46},{start:46,end:113},{start:43,end:202},{start:202,end:204},{start:204,end:43},{start:62,end:76},{start:76,end:77},{start:77,end:62},{start:137,end:123},{start:123,end:116},{start:116,end:137},{start:41,end:38},{start:38,end:72},{start:72,end:41},{start:203,end:129},{start:129,end:142},{start:142,end:203},{start:64,end:98},{start:98,end:240},{start:240,end:64},{start:49,end:102},{start:102,end:64},{start:64,end:49},{start:41,end:73},{start:73,end:74},{start:74,end:41},{start:212,end:216},{start:216,end:207},{start:207,end:212},{start:42,end:74},{start:74,end:184},{start:184,end:42},{start:169,end:170},{start:170,end:211},{start:211,end:169},{start:170,end:149},{start:149,end:176},{start:176,end:170},{start:105,end:66},{start:66,end:69},{start:69,end:105},{start:122,end:6},{start:6,end:168},{start:168,end:122},{start:123,end:147},{start:147,end:187},{start:187,end:123},{start:96,end:77},{start:77,end:90},{start:90,end:96},{start:65,end:55},{start:55,end:107},{start:107,end:65},{start:89,end:90},{start:90,end:180},{start:180,end:89},{start:101,end:100},{start:100,end:120},{start:120,end:101},{start:63,end:105},{start:105,end:104},{start:104,end:63},{start:93,end:137},{start:137,end:227},{start:227,end:93},{start:15,end:86},{start:86,end:85},{start:85,end:15},{start:129,end:102},{start:102,end:49},{start:49,end:129},{start:14,end:87},{start:87,end:86},{start:86,end:14},{start:55,end:8},{start:8,end:9},{start:9,end:55},{start:100,end:47},{start:47,end:121},{start:121,end:100},{start:145,end:23},{start:23,end:22},{start:22,end:145},{start:88,end:89},{start:89,end:179},{start:179,end:88},{start:6,end:122},{start:122,end:196},{start:196,end:6},{start:88,end:95},{start:95,end:96},{start:96,end:88},{start:138,end:172},{start:172,end:136},{start:136,end:138},{start:215,end:58},{start:58,end:172},{start:172,end:215},{start:115,end:48},{start:48,end:219},{start:219,end:115},{start:42,end:80},{start:80,end:81},{start:81,end:42},{start:195,end:3},{start:3,end:51},{start:51,end:195},{start:43,end:146},{start:146,end:61},{start:61,end:43},{start:171,end:175},{start:175,end:199},{start:199,end:171},{start:81,end:82},{start:82,end:38},{start:38,end:81},{start:53,end:46},{start:46,end:225},{start:225,end:53},{start:144,end:163},{start:163,end:110},{start:110,end:144},{start:52,end:65},{start:65,end:66},{start:66,end:52},{start:229,end:228},{start:228,end:117},{start:117,end:229},{start:34,end:127},{start:127,end:234},{start:234,end:34},{start:107,end:108},{start:108,end:69},{start:69,end:107},{start:109,end:108},{start:108,end:151},{start:151,end:109},{start:48,end:64},{start:64,end:235},{start:235,end:48},{start:62,end:78},{start:78,end:191},{start:191,end:62},{start:129,end:209},{start:209,end:126},{start:126,end:129},{start:111,end:35},{start:35,end:143},{start:143,end:111},{start:117,end:123},{start:123,end:50},{start:50,end:117},{start:222,end:65},{start:65,end:52},{start:52,end:222},{start:19,end:125},{start:125,end:141},{start:141,end:19},{start:221,end:55},{start:55,end:65},{start:65,end:221},{start:3,end:195},{start:195,end:197},{start:197,end:3},{start:25,end:7},{start:7,end:33},{start:33,end:25},{start:220,end:237},{start:237,end:44},{start:44,end:220},{start:70,end:71},{start:71,end:139},{start:139,end:70},{start:122,end:193},{start:193,end:245},{start:245,end:122},{start:247,end:130},{start:130,end:33},{start:33,end:247},{start:71,end:21},{start:21,end:162},{start:162,end:71},{start:170,end:169},{start:169,end:150},{start:150,end:170},{start:188,end:174},{start:174,end:196},{start:196,end:188},{start:216,end:186},{start:186,end:92},{start:92,end:216},{start:2,end:97},{start:97,end:167},{start:167,end:2},{start:141,end:125},{start:125,end:241},{start:241,end:141},{start:164,end:167},{start:167,end:37},{start:37,end:164},{start:72,end:38},{start:38,end:12},{start:12,end:72},{start:38,end:82},{start:82,end:13},{start:13,end:38},{start:63,end:68},{start:68,end:71},{start:71,end:63},{start:226,end:35},{start:35,end:111},{start:111,end:226},{start:101,end:50},{start:50,end:205},{start:205,end:101},{start:206,end:92},{start:92,end:165},{start:165,end:206},{start:209,end:198},{start:198,end:217},{start:217,end:209},{start:165,end:167},{start:167,end:97},{start:97,end:165},{start:220,end:115},{start:115,end:218},{start:218,end:220},{start:133,end:112},{start:112,end:243},{start:243,end:133},{start:239,end:238},{start:238,end:241},{start:241,end:239},{start:214,end:135},{start:135,end:169},{start:169,end:214},{start:190,end:173},{start:173,end:133},{start:133,end:190},{start:171,end:208},{start:208,end:32},{start:32,end:171},{start:125,end:44},{start:44,end:237},{start:237,end:125},{start:86,end:87},{start:87,end:178},{start:178,end:86},{start:85,end:86},{start:86,end:179},{start:179,end:85},{start:84,end:85},{start:85,end:180},{start:180,end:84},{start:83,end:84},{start:84,end:181},{start:181,end:83},{start:201,end:83},{start:83,end:182},{start:182,end:201},{start:137,end:93},{start:93,end:132},{start:132,end:137},{start:76,end:62},{start:62,end:183},{start:183,end:76},{start:61,end:76},{start:76,end:184},{start:184,end:61},{start:57,end:61},{start:61,end:185},{start:185,end:57},{start:212,end:57},{start:57,end:186},{start:186,end:212},{start:214,end:207},{start:207,end:187},{start:187,end:214},{start:34,end:143},{start:143,end:156},{start:156,end:34},{start:79,end:239},{start:239,end:237},{start:237,end:79},{start:123,end:137},{start:137,end:177},{start:177,end:123},{start:44,end:1},{start:1,end:4},{start:4,end:44},{start:201,end:194},{start:194,end:32},{start:32,end:201},{start:64,end:102},{start:102,end:129},{start:129,end:64},{start:213,end:215},{start:215,end:138},{start:138,end:213},{start:59,end:166},{start:166,end:219},{start:219,end:59},{start:242,end:99},{start:99,end:97},{start:97,end:242},{start:2,end:94},{start:94,end:141},{start:141,end:2},{start:75,end:59},{start:59,end:235},{start:235,end:75},{start:24,end:110},{start:110,end:228},{start:228,end:24},{start:25,end:130},{start:130,end:226},{start:226,end:25},{start:23,end:24},{start:24,end:229},{start:229,end:23},{start:22,end:23},{start:23,end:230},{start:230,end:22},{start:26,end:22},{start:22,end:231},{start:231,end:26},{start:112,end:26},{start:26,end:232},{start:232,end:112},{start:189,end:190},{start:190,end:243},{start:243,end:189},{start:221,end:56},{start:56,end:190},{start:190,end:221},{start:28,end:56},{start:56,end:221},{start:221,end:28},{start:27,end:28},{start:28,end:222},{start:222,end:27},{start:29,end:27},{start:27,end:223},{start:223,end:29},{start:30,end:29},{start:29,end:224},{start:224,end:30},{start:247,end:30},{start:30,end:225},{start:225,end:247},{start:238,end:79},{start:79,end:20},{start:20,end:238},{start:166,end:59},{start:59,end:75},{start:75,end:166},{start:60,end:75},{start:75,end:240},{start:240,end:60},{start:147,end:177},{start:177,end:215},{start:215,end:147},{start:20,end:79},{start:79,end:166},{start:166,end:20},{start:187,end:147},{start:147,end:213},{start:213,end:187},{start:112,end:233},{start:233,end:244},{start:244,end:112},{start:233,end:128},{start:128,end:245},{start:245,end:233},{start:128,end:114},{start:114,end:188},{start:188,end:128},{start:114,end:217},{start:217,end:174},{start:174,end:114},{start:131,end:115},{start:115,end:220},{start:220,end:131},{start:217,end:198},{start:198,end:236},{start:236,end:217},{start:198,end:131},{start:131,end:134},{start:134,end:198},{start:177,end:132},{start:132,end:58},{start:58,end:177},{start:143,end:35},{start:35,end:124},{start:124,end:143},{start:110,end:163},{start:163,end:7},{start:7,end:110},{start:228,end:110},{start:110,end:25},{start:25,end:228},{start:356,end:389},{start:389,end:368},{start:368,end:356},{start:11,end:302},{start:302,end:267},{start:267,end:11},{start:452,end:350},{start:350,end:349},{start:349,end:452},{start:302,end:303},{start:303,end:269},{start:269,end:302},{start:357,end:343},{start:343,end:277},{start:277,end:357},{start:452,end:453},{start:453,end:357},{start:357,end:452},{start:333,end:332},{start:332,end:297},{start:297,end:333},{start:175,end:152},{start:152,end:377},{start:377,end:175},{start:347,end:348},{start:348,end:330},{start:330,end:347},{start:303,end:304},{start:304,end:270},{start:270,end:303},{start:9,end:336},{start:336,end:337},{start:337,end:9},{start:278,end:279},{start:279,end:360},{start:360,end:278},{start:418,end:262},{start:262,end:431},{start:431,end:418},{start:304,end:408},{start:408,end:409},{start:409,end:304},{start:310,end:415},{start:415,end:407},{start:407,end:310},{start:270,end:409},{start:409,end:410},{start:410,end:270},{start:450,end:348},{start:348,end:347},{start:347,end:450},{start:422,end:430},{start:430,end:434},{start:434,end:422},{start:313,end:314},{start:314,end:17},{start:17,end:313},{start:306,end:307},{start:307,end:375},{start:375,end:306},{start:387,end:388},{start:388,end:260},{start:260,end:387},{start:286,end:414},{start:414,end:398},{start:398,end:286},{start:335,end:406},{start:406,end:418},{start:418,end:335},{start:364,end:367},{start:367,end:416},{start:416,end:364},{start:423,end:358},{start:358,end:327},{start:327,end:423},{start:251,end:284},{start:284,end:298},{start:298,end:251},{start:281,end:5},{start:5,end:4},{start:4,end:281},{start:373,end:374},{start:374,end:253},{start:253,end:373},{start:307,end:320},{start:320,end:321},{start:321,end:307},{start:425,end:427},{start:427,end:411},{start:411,end:425},{start:421,end:313},{start:313,end:18},{start:18,end:421},{start:321,end:405},{start:405,end:406},{start:406,end:321},{start:320,end:404},{start:404,end:405},{start:405,end:320},{start:315,end:16},{start:16,end:17},{start:17,end:315},{start:426,end:425},{start:425,end:266},{start:266,end:426},{start:377,end:400},{start:400,end:369},{start:369,end:377},{start:322,end:391},{start:391,end:269},{start:269,end:322},{start:417,end:465},{start:465,end:464},{start:464,end:417},{start:386,end:257},{start:257,end:258},{start:258,end:386},{start:466,end:260},{start:260,end:388},{start:388,end:466},{start:456,end:399},{start:399,end:419},{start:419,end:456},{start:284,end:332},{start:332,end:333},{start:333,end:284},{start:417,end:285},{start:285,end:8},{start:8,end:417},{start:346,end:340},{start:340,end:261},{start:261,end:346},{start:413,end:441},{start:441,end:285},{start:285,end:413},{start:327,end:460},{start:460,end:328},{start:328,end:327},{start:355,end:371},{start:371,end:329},{start:329,end:355},{start:392,end:439},{start:439,end:438},{start:438,end:392},{start:382,end:341},{start:341,end:256},{start:256,end:382},{start:429,end:420},{start:420,end:360},{start:360,end:429},{start:364,end:394},{start:394,end:379},{start:379,end:364},{start:277,end:343},{start:343,end:437},{start:437,end:277},{start:443,end:444},{start:444,end:283},{start:283,end:443},{start:275,end:440},{start:440,end:363},{start:363,end:275},{start:431,end:262},{start:262,end:369},{start:369,end:431},{start:297,end:338},{start:338,end:337},{start:337,end:297},{start:273,end:375},{start:375,end:321},{start:321,end:273},{start:450,end:451},{start:451,end:349},{start:349,end:450},{start:446,end:342},{start:342,end:467},{start:467,end:446},{start:293,end:334},{start:334,end:282},{start:282,end:293},{start:458,end:461},{start:461,end:462},{start:462,end:458},{start:276,end:353},{start:353,end:383},{start:383,end:276},{start:308,end:324},{start:324,end:325},{start:325,end:308},{start:276,end:300},{start:300,end:293},{start:293,end:276},{start:372,end:345},{start:345,end:447},{start:447,end:372},{start:352,end:345},{start:345,end:340},{start:340,end:352},{start:274,end:1},{start:1,end:19},{start:19,end:274},{start:456,end:248},{start:248,end:281},{start:281,end:456},{start:436,end:427},{start:427,end:425},{start:425,end:436},{start:381,end:256},{start:256,end:252},{start:252,end:381},{start:269,end:391},{start:391,end:393},{start:393,end:269},{start:200,end:199},{start:199,end:428},{start:428,end:200},{start:266,end:330},{start:330,end:329},{start:329,end:266},{start:287,end:273},{start:273,end:422},{start:422,end:287},{start:250,end:462},{start:462,end:328},{start:328,end:250},{start:258,end:286},{start:286,end:384},{start:384,end:258},{start:265,end:353},{start:353,end:342},{start:342,end:265},{start:387,end:259},{start:259,end:257},{start:257,end:387},{start:424,end:431},{start:431,end:430},{start:430,end:424},{start:342,end:353},{start:353,end:276},{start:276,end:342},{start:273,end:335},{start:335,end:424},{start:424,end:273},{start:292,end:325},{start:325,end:307},{start:307,end:292},{start:366,end:447},{start:447,end:345},{start:345,end:366},{start:271,end:303},{start:303,end:302},{start:302,end:271},{start:423,end:266},{start:266,end:371},{start:371,end:423},{start:294,end:455},{start:455,end:460},{start:460,end:294},{start:279,end:278},{start:278,end:294},{start:294,end:279},{start:271,end:272},{start:272,end:304},{start:304,end:271},{start:432,end:434},{start:434,end:427},{start:427,end:432},{start:272,end:407},{start:407,end:408},{start:408,end:272},{start:394,end:430},{start:430,end:431},{start:431,end:394},{start:395,end:369},{start:369,end:400},{start:400,end:395},{start:334,end:333},{start:333,end:299},{start:299,end:334},{start:351,end:417},{start:417,end:168},{start:168,end:351},{start:352,end:280},{start:280,end:411},{start:411,end:352},{start:325,end:319},{start:319,end:320},{start:320,end:325},{start:295,end:296},{start:296,end:336},{start:336,end:295},{start:319,end:403},{start:403,end:404},{start:404,end:319},{start:330,end:348},{start:348,end:349},{start:349,end:330},{start:293,end:298},{start:298,end:333},{start:333,end:293},{start:323,end:454},{start:454,end:447},{start:447,end:323},{start:15,end:16},{start:16,end:315},{start:315,end:15},{start:358,end:429},{start:429,end:279},{start:279,end:358},{start:14,end:15},{start:15,end:316},{start:316,end:14},{start:285,end:336},{start:336,end:9},{start:9,end:285},{start:329,end:349},{start:349,end:350},{start:350,end:329},{start:374,end:380},{start:380,end:252},{start:252,end:374},{start:318,end:402},{start:402,end:403},{start:403,end:318},{start:6,end:197},{start:197,end:419},{start:419,end:6},{start:318,end:319},{start:319,end:325},{start:325,end:318},{start:367,end:364},{start:364,end:365},{start:365,end:367},{start:435,end:367},{start:367,end:397},{start:397,end:435},{start:344,end:438},{start:438,end:439},{start:439,end:344},{start:272,end:271},{start:271,end:311},{start:311,end:272},{start:195,end:5},{start:5,end:281},{start:281,end:195},{start:273,end:287},{start:287,end:291},{start:291,end:273},{start:396,end:428},{start:428,end:199},{start:199,end:396},{start:311,end:271},{start:271,end:268},{start:268,end:311},{start:283,end:444},{start:444,end:445},{start:445,end:283},{start:373,end:254},{start:254,end:339},{start:339,end:373},{start:282,end:334},{start:334,end:296},{start:296,end:282},{start:449,end:347},{start:347,end:346},{start:346,end:449},{start:264,end:447},{start:447,end:454},{start:454,end:264},{start:336,end:296},{start:296,end:299},{start:299,end:336},{start:338,end:10},{start:10,end:151},{start:151,end:338},{start:278,end:439},{start:439,end:455},{start:455,end:278},{start:292,end:407},{start:407,end:415},{start:415,end:292},{start:358,end:371},{start:371,end:355},{start:355,end:358},{start:340,end:345},{start:345,end:372},{start:372,end:340},{start:346,end:347},{start:347,end:280},{start:280,end:346},{start:442,end:443},{start:443,end:282},{start:282,end:442},{start:19,end:94},{start:94,end:370},{start:370,end:19},{start:441,end:442},{start:442,end:295},{start:295,end:441},{start:248,end:419},{start:419,end:197},{start:197,end:248},{start:263,end:255},{start:255,end:359},{start:359,end:263},{start:440,end:275},{start:275,end:274},{start:274,end:440},{start:300,end:383},{start:383,end:368},{start:368,end:300},{start:351,end:412},{start:412,end:465},{start:465,end:351},{start:263,end:467},{start:467,end:466},{start:466,end:263},{start:301,end:368},{start:368,end:389},{start:389,end:301},{start:395,end:378},{start:378,end:379},{start:379,end:395},{start:412,end:351},{start:351,end:419},{start:419,end:412},{start:436,end:426},{start:426,end:322},{start:322,end:436},{start:2,end:164},{start:164,end:393},{start:393,end:2},{start:370,end:462},{start:462,end:461},{start:461,end:370},{start:164,end:0},{start:0,end:267},{start:267,end:164},{start:302,end:11},{start:11,end:12},{start:12,end:302},{start:268,end:12},{start:12,end:13},{start:13,end:268},{start:293,end:300},{start:300,end:301},{start:301,end:293},{start:446,end:261},{start:261,end:340},{start:340,end:446},{start:330,end:266},{start:266,end:425},{start:425,end:330},{start:426,end:423},{start:423,end:391},{start:391,end:426},{start:429,end:355},{start:355,end:437},{start:437,end:429},{start:391,end:327},{start:327,end:326},{start:326,end:391},{start:440,end:457},{start:457,end:438},{start:438,end:440},{start:341,end:382},{start:382,end:362},{start:362,end:341},{start:459,end:457},{start:457,end:461},{start:461,end:459},{start:434,end:430},{start:430,end:394},{start:394,end:434},{start:414,end:463},{start:463,end:362},{start:362,end:414},{start:396,end:369},{start:369,end:262},{start:262,end:396},{start:354,end:461},{start:461,end:457},{start:457,end:354},{start:316,end:403},{start:403,end:402},{start:402,end:316},{start:315,end:404},{start:404,end:403},{start:403,end:315},{start:314,end:405},{start:405,end:404},{start:404,end:314},{start:313,end:406},{start:406,end:405},{start:405,end:313},{start:421,end:418},{start:418,end:406},{start:406,end:421},{start:366,end:401},{start:401,end:361},{start:361,end:366},{start:306,end:408},{start:408,end:407},{start:407,end:306},{start:291,end:409},{start:409,end:408},{start:408,end:291},{start:287,end:410},{start:410,end:409},{start:409,end:287},{start:432,end:436},{start:436,end:410},{start:410,end:432},{start:434,end:416},{start:416,end:411},{start:411,end:434},{start:264,end:368},{start:368,end:383},{start:383,end:264},{start:309,end:438},{start:438,end:457},{start:457,end:309},{start:352,end:376},{start:376,end:401},{start:401,end:352},{start:274,end:275},{start:275,end:4},{start:4,end:274},{start:421,end:428},{start:428,end:262},{start:262,end:421},{start:294,end:327},{start:327,end:358},{start:358,end:294},{start:433,end:416},{start:416,end:367},{start:367,end:433},{start:289,end:455},{start:455,end:439},{start:439,end:289},{start:462,end:370},{start:370,end:326},{start:326,end:462},{start:2,end:326},{start:326,end:370},{start:370,end:2},{start:305,end:460},{start:460,end:455},{start:455,end:305},{start:254,end:449},{start:449,end:448},{start:448,end:254},{start:255,end:261},{start:261,end:446},{start:446,end:255},{start:253,end:450},{start:450,end:449},{start:449,end:253},{start:252,end:451},{start:451,end:450},{start:450,end:252},{start:256,end:452},{start:452,end:451},{start:451,end:256},{start:341,end:453},{start:453,end:452},{start:452,end:341},{start:413,end:464},{start:464,end:463},{start:463,end:413},{start:441,end:413},{start:413,end:414},{start:414,end:441},{start:258,end:442},{start:442,end:441},{start:441,end:258},{start:257,end:443},{start:443,end:442},{start:442,end:257},{start:259,end:444},{start:444,end:443},{start:443,end:259},{start:260,end:445},{start:445,end:444},{start:444,end:260},{start:467,end:342},{start:342,end:445},{start:445,end:467},{start:459,end:458},{start:458,end:250},{start:250,end:459},{start:289,end:392},{start:392,end:290},{start:290,end:289},{start:290,end:328},{start:328,end:460},{start:460,end:290},{start:376,end:433},{start:433,end:435},{start:435,end:376},{start:250,end:290},{start:290,end:392},{start:392,end:250},{start:411,end:416},{start:416,end:433},{start:433,end:411},{start:341,end:463},{start:463,end:464},{start:464,end:341},{start:453,end:464},{start:464,end:465},{start:465,end:453},{start:357,end:465},{start:465,end:412},{start:412,end:357},{start:343,end:412},{start:412,end:399},{start:399,end:343},{start:360,end:363},{start:363,end:440},{start:440,end:360},{start:437,end:399},{start:399,end:456},{start:456,end:437},{start:420,end:456},{start:456,end:363},{start:363,end:420},{start:401,end:435},{start:435,end:288},{start:288,end:401},{start:372,end:383},{start:383,end:353},{start:353,end:372},{start:339,end:255},{start:255,end:249},{start:249,end:339},{start:448,end:261},{start:261,end:255},{start:255,end:448},{start:133,end:243},{start:243,end:190},{start:190,end:133},{start:133,end:155},{start:155,end:112},{start:112,end:133},{start:33,end:246},{start:246,end:247},{start:247,end:33},{start:33,end:130},{start:130,end:25},{start:25,end:33},{start:398,end:384},{start:384,end:286},{start:286,end:398},{start:362,end:398},{start:398,end:414},{start:414,end:362},{start:362,end:463},{start:463,end:341},{start:341,end:362},{start:263,end:359},{start:359,end:467},{start:467,end:263},{start:263,end:249},{start:249,end:255},{start:255,end:263},{start:466,end:467},{start:467,end:260},{start:260,end:466},{start:75,end:60},{start:60,end:166},{start:166,end:75},{start:238,end:239},{start:239,end:79},{start:79,end:238},{start:162,end:127},{start:127,end:139},{start:139,end:162},{start:72,end:11},{start:11,end:37},{start:37,end:72},{start:121,end:232},{start:232,end:120},{start:120,end:121},{start:73,end:72},{start:72,end:39},{start:39,end:73},{start:114,end:128},{start:128,end:47},{start:47,end:114},{start:233,end:232},{start:232,end:128},{start:128,end:233},{start:103,end:104},{start:104,end:67},{start:67,end:103},{start:152,end:175},{start:175,end:148},{start:148,end:152},{start:119,end:118},{start:118,end:101},{start:101,end:119},{start:74,end:73},{start:73,end:40},{start:40,end:74},{start:107,end:9},{start:9,end:108},{start:108,end:107},{start:49,end:48},{start:48,end:131},{start:131,end:49},{start:32,end:194},{start:194,end:211},{start:211,end:32},{start:184,end:74},{start:74,end:185},{start:185,end:184},{start:191,end:80},{start:80,end:183},{start:183,end:191},{start:185,end:40},{start:40,end:186},{start:186,end:185},{start:119,end:230},{start:230,end:118},{start:118,end:119},{start:210,end:202},{start:202,end:214},{start:214,end:210},{start:84,end:83},{start:83,end:17},{start:17,end:84},{start:77,end:76},{start:76,end:146},{start:146,end:77},{start:161,end:160},{start:160,end:30},{start:30,end:161},{start:190,end:56},{start:56,end:173},{start:173,end:190},{start:182,end:106},{start:106,end:194},{start:194,end:182},{start:138,end:135},{start:135,end:192},{start:192,end:138},{start:129,end:203},{start:203,end:98},{start:98,end:129},{start:54,end:21},{start:21,end:68},{start:68,end:54},{start:5,end:51},{start:51,end:4},{start:4,end:5},{start:145,end:144},{start:144,end:23},{start:23,end:145},{start:90,end:77},{start:77,end:91},{start:91,end:90},{start:207,end:205},{start:205,end:187},{start:187,end:207},{start:83,end:201},{start:201,end:18},{start:18,end:83},{start:181,end:91},{start:91,end:182},{start:182,end:181},{start:180,end:90},{start:90,end:181},{start:181,end:180},{start:16,end:85},{start:85,end:17},{start:17,end:16},{start:205,end:206},{start:206,end:36},{start:36,end:205},{start:176,end:148},{start:148,end:140},{start:140,end:176},{start:165,end:92},{start:92,end:39},{start:39,end:165},{start:245,end:193},{start:193,end:244},{start:244,end:245},{start:27,end:159},{start:159,end:28},{start:28,end:27},{start:30,end:247},{start:247,end:161},{start:161,end:30},{start:174,end:236},{start:236,end:196},{start:196,end:174},{start:103,end:54},{start:54,end:104},{start:104,end:103},{start:55,end:193},{start:193,end:8},{start:8,end:55},{start:111,end:117},{start:117,end:31},{start:31,end:111},{start:221,end:189},{start:189,end:55},{start:55,end:221},{start:240,end:98},{start:98,end:99},{start:99,end:240},{start:142,end:126},{start:126,end:100},{start:100,end:142},{start:219,end:166},{start:166,end:218},{start:218,end:219},{start:112,end:155},{start:155,end:26},{start:26,end:112},{start:198,end:209},{start:209,end:131},{start:131,end:198},{start:169,end:135},{start:135,end:150},{start:150,end:169},{start:114,end:47},{start:47,end:217},{start:217,end:114},{start:224,end:223},{start:223,end:53},{start:53,end:224},{start:220,end:45},{start:45,end:134},{start:134,end:220},{start:32,end:211},{start:211,end:140},{start:140,end:32},{start:109,end:67},{start:67,end:108},{start:108,end:109},{start:146,end:43},{start:43,end:91},{start:91,end:146},{start:231,end:230},{start:230,end:120},{start:120,end:231},{start:113,end:226},{start:226,end:247},{start:247,end:113},{start:105,end:63},{start:63,end:52},{start:52,end:105},{start:241,end:238},{start:238,end:242},{start:242,end:241},{start:124,end:46},{start:46,end:156},{start:156,end:124},{start:95,end:78},{start:78,end:96},{start:96,end:95},{start:70,end:46},{start:46,end:63},{start:63,end:70},{start:116,end:143},{start:143,end:227},{start:227,end:116},{start:116,end:123},{start:123,end:111},{start:111,end:116},{start:1,end:44},{start:44,end:19},{start:19,end:1},{start:3,end:236},{start:236,end:51},{start:51,end:3},{start:207,end:216},{start:216,end:205},{start:205,end:207},{start:26,end:154},{start:154,end:22},{start:22,end:26},{start:165,end:39},{start:39,end:167},{start:167,end:165},{start:199,end:200},{start:200,end:208},{start:208,end:199},{start:101,end:36},{start:36,end:100},{start:100,end:101},{start:43,end:57},{start:57,end:202},{start:202,end:43},{start:242,end:20},{start:20,end:99},{start:99,end:242},{start:56,end:28},{start:28,end:157},{start:157,end:56},{start:124,end:35},{start:35,end:113},{start:113,end:124},{start:29,end:160},{start:160,end:27},{start:27,end:29},{start:211,end:204},{start:204,end:210},{start:210,end:211},{start:124,end:113},{start:113,end:46},{start:46,end:124},{start:106,end:43},{start:43,end:204},{start:204,end:106},{start:96,end:62},{start:62,end:77},{start:77,end:96},{start:227,end:137},{start:137,end:116},{start:116,end:227},{start:73,end:41},{start:41,end:72},{start:72,end:73},{start:36,end:203},{start:203,end:142},{start:142,end:36},{start:235,end:64},{start:64,end:240},{start:240,end:235},{start:48,end:49},{start:49,end:64},{start:64,end:48},{start:42,end:41},{start:41,end:74},{start:74,end:42},{start:214,end:212},{start:212,end:207},{start:207,end:214},{start:183,end:42},{start:42,end:184},{start:184,end:183},{start:210,end:169},{start:169,end:211},{start:211,end:210},{start:140,end:170},{start:170,end:176},{start:176,end:140},{start:104,end:105},{start:105,end:69},{start:69,end:104},{start:193,end:122},{start:122,end:168},{start:168,end:193},{start:50,end:123},{start:123,end:187},{start:187,end:50},{start:89,end:96},{start:96,end:90},{start:90,end:89},{start:66,end:65},{start:65,end:107},{start:107,end:66},{start:179,end:89},{start:89,end:180},{start:180,end:179},{start:119,end:101},{start:101,end:120},{start:120,end:119},{start:68,end:63},{start:63,end:104},{start:104,end:68},{start:234,end:93},{start:93,end:227},{start:227,end:234},{start:16,end:15},{start:15,end:85},{start:85,end:16},{start:209,end:129},{start:129,end:49},{start:49,end:209},{start:15,end:14},{start:14,end:86},{start:86,end:15},{start:107,end:55},{start:55,end:9},{start:9,end:107},{start:120,end:100},{start:100,end:121},{start:121,end:120},{start:153,end:145},{start:145,end:22},{start:22,end:153},{start:178,end:88},{start:88,end:179},{start:179,end:178},{start:197,end:6},{start:6,end:196},{start:196,end:197},{start:89,end:88},{start:88,end:96},{start:96,end:89},{start:135,end:138},{start:138,end:136},{start:136,end:135},{start:138,end:215},{start:215,end:172},{start:172,end:138},{start:218,end:115},{start:115,end:219},{start:219,end:218},{start:41,end:42},{start:42,end:81},{start:81,end:41},{start:5,end:195},{start:195,end:51},{start:51,end:5},{start:57,end:43},{start:43,end:61},{start:61,end:57},{start:208,end:171},{start:171,end:199},{start:199,end:208},{start:41,end:81},{start:81,end:38},{start:38,end:41},{start:224,end:53},{start:53,end:225},{start:225,end:224},{start:24,end:144},{start:144,end:110},{start:110,end:24},{start:105,end:52},{start:52,end:66},{start:66,end:105},{start:118,end:229},{start:229,end:117},{start:117,end:118},{start:227,end:34},{start:34,end:234},{start:234,end:227},{start:66,end:107},{start:107,end:69},{start:69,end:66},{start:10,end:109},{start:109,end:151},{start:151,end:10},{start:219,end:48},{start:48,end:235},{start:235,end:219},{start:183,end:62},{start:62,end:191},{start:191,end:183},{start:142,end:129},{start:129,end:126},{start:126,end:142},{start:116,end:111},{start:111,end:143},{start:143,end:116},{start:118,end:117},{start:117,end:50},{start:50,end:118},{start:223,end:222},{start:222,end:52},{start:52,end:223},{start:94,end:19},{start:19,end:141},{start:141,end:94},{start:222,end:221},{start:221,end:65},{start:65,end:222},{start:196,end:3},{start:3,end:197},{start:197,end:196},{start:45,end:220},{start:220,end:44},{start:44,end:45},{start:156,end:70},{start:70,end:139},{start:139,end:156},{start:188,end:122},{start:122,end:245},{start:245,end:188},{start:139,end:71},{start:71,end:162},{start:162,end:139},{start:149,end:170},{start:170,end:150},{start:150,end:149},{start:122,end:188},{start:188,end:196},{start:196,end:122},{start:206,end:216},{start:216,end:92},{start:92,end:206},{start:164,end:2},{start:2,end:167},{start:167,end:164},{start:242,end:141},{start:141,end:241},{start:241,end:242},{start:0,end:164},{start:164,end:37},{start:37,end:0},{start:11,end:72},{start:72,end:12},{start:12,end:11},{start:12,end:38},{start:38,end:13},{start:13,end:12},{start:70,end:63},{start:63,end:71},{start:71,end:70},{start:31,end:226},{start:226,end:111},{start:111,end:31},{start:36,end:101},{start:101,end:205},{start:205,end:36},{start:203,end:206},{start:206,end:165},{start:165,end:203},{start:126,end:209},{start:209,end:217},{start:217,end:126},{start:98,end:165},{start:165,end:97},{start:97,end:98},{start:237,end:220},{start:220,end:218},{start:218,end:237},{start:237,end:239},{start:239,end:241},{start:241,end:237},{start:210,end:214},{start:214,end:169},{start:169,end:210},{start:140,end:171},{start:171,end:32},{start:32,end:140},{start:241,end:125},{start:125,end:237},{start:237,end:241},{start:179,end:86},{start:86,end:178},{start:178,end:179},{start:180,end:85},{start:85,end:179},{start:179,end:180},{start:181,end:84},{start:84,end:180},{start:180,end:181},{start:182,end:83},{start:83,end:181},{start:181,end:182},{start:194,end:201},{start:201,end:182},{start:182,end:194},{start:177,end:137},{start:137,end:132},{start:132,end:177},{start:184,end:76},{start:76,end:183},{start:183,end:184},{start:185,end:61},{start:61,end:184},{start:184,end:185},{start:186,end:57},{start:57,end:185},{start:185,end:186},{start:216,end:212},{start:212,end:186},{start:186,end:216},{start:192,end:214},{start:214,end:187},{start:187,end:192},{start:139,end:34},{start:34,end:156},{start:156,end:139},{start:218,end:79},{start:79,end:237},{start:237,end:218},{start:147,end:123},{start:123,end:177},{start:177,end:147},{start:45,end:44},{start:44,end:4},{start:4,end:45},{start:208,end:201},{start:201,end:32},{start:32,end:208},{start:98,end:64},{start:64,end:129},{start:129,end:98},{start:192,end:213},{start:213,end:138},{start:138,end:192},{start:235,end:59},{start:59,end:219},{start:219,end:235},{start:141,end:242},{start:242,end:97},{start:97,end:141},{start:97,end:2},{start:2,end:141},{start:141,end:97},{start:240,end:75},{start:75,end:235},{start:235,end:240},{start:229,end:24},{start:24,end:228},{start:228,end:229},{start:31,end:25},{start:25,end:226},{start:226,end:31},{start:230,end:23},{start:23,end:229},{start:229,end:230},{start:231,end:22},{start:22,end:230},{start:230,end:231},{start:232,end:26},{start:26,end:231},{start:231,end:232},{start:233,end:112},{start:112,end:232},{start:232,end:233},{start:244,end:189},{start:189,end:243},{start:243,end:244},{start:189,end:221},{start:221,end:190},{start:190,end:189},{start:222,end:28},{start:28,end:221},{start:221,end:222},{start:223,end:27},{start:27,end:222},{start:222,end:223},{start:224,end:29},{start:29,end:223},{start:223,end:224},{start:225,end:30},{start:30,end:224},{start:224,end:225},{start:113,end:247},{start:247,end:225},{start:225,end:113},{start:99,end:60},{start:60,end:240},{start:240,end:99},{start:213,end:147},{start:147,end:215},{start:215,end:213},{start:60,end:20},{start:20,end:166},{start:166,end:60},{start:192,end:187},{start:187,end:213},{start:213,end:192},{start:243,end:112},{start:112,end:244},{start:244,end:243},{start:244,end:233},{start:233,end:245},{start:245,end:244},{start:245,end:128},{start:128,end:188},{start:188,end:245},{start:188,end:114},{start:114,end:174},{start:174,end:188},{start:134,end:131},{start:131,end:220},{start:220,end:134},{start:174,end:217},{start:217,end:236},{start:236,end:174},{start:236,end:198},{start:198,end:134},{start:134,end:236},{start:215,end:177},{start:177,end:58},{start:58,end:215},{start:156,end:143},{start:143,end:124},{start:124,end:156},{start:25,end:110},{start:110,end:7},{start:7,end:25},{start:31,end:228},{start:228,end:25},{start:25,end:31},{start:264,end:356},{start:356,end:368},{start:368,end:264},{start:0,end:11},{start:11,end:267},{start:267,end:0},{start:451,end:452},{start:452,end:349},{start:349,end:451},{start:267,end:302},{start:302,end:269},{start:269,end:267},{start:350,end:357},{start:357,end:277},{start:277,end:350},{start:350,end:452},{start:452,end:357},{start:357,end:350},{start:299,end:333},{start:333,end:297},{start:297,end:299},{start:396,end:175},{start:175,end:377},{start:377,end:396},{start:280,end:347},{start:347,end:330},{start:330,end:280},{start:269,end:303},{start:303,end:270},{start:270,end:269},{start:151,end:9},{start:9,end:337},{start:337,end:151},{start:344,end:278},{start:278,end:360},{start:360,end:344},{start:424,end:418},{start:418,end:431},{start:431,end:424},{start:270,end:304},{start:304,end:409},{start:409,end:270},{start:272,end:310},{start:310,end:407},{start:407,end:272},{start:322,end:270},{start:270,end:410},{start:410,end:322},{start:449,end:450},{start:450,end:347},{start:347,end:449},{start:432,end:422},{start:422,end:434},{start:434,end:432},{start:18,end:313},{start:313,end:17},{start:17,end:18},{start:291,end:306},{start:306,end:375},{start:375,end:291},{start:259,end:387},{start:387,end:260},{start:260,end:259},{start:424,end:335},{start:335,end:418},{start:418,end:424},{start:434,end:364},{start:364,end:416},{start:416,end:434},{start:391,end:423},{start:423,end:327},{start:327,end:391},{start:301,end:251},{start:251,end:298},{start:298,end:301},{start:275,end:281},{start:281,end:4},{start:4,end:275},{start:254,end:373},{start:373,end:253},{start:253,end:254},{start:375,end:307},{start:307,end:321},{start:321,end:375},{start:280,end:425},{start:425,end:411},{start:411,end:280},{start:200,end:421},{start:421,end:18},{start:18,end:200},{start:335,end:321},{start:321,end:406},{start:406,end:335},{start:321,end:320},{start:320,end:405},{start:405,end:321},{start:314,end:315},{start:315,end:17},{start:17,end:314},{start:423,end:426},{start:426,end:266},{start:266,end:423},{start:396,end:377},{start:377,end:369},{start:369,end:396},{start:270,end:322},{start:322,end:269},{start:269,end:270},{start:413,end:417},{start:417,end:464},{start:464,end:413},{start:385,end:386},{start:386,end:258},{start:258,end:385},{start:248,end:456},{start:456,end:419},{start:419,end:248},{start:298,end:284},{start:284,end:333},{start:333,end:298},{start:168,end:417},{start:417,end:8},{start:8,end:168},{start:448,end:346},{start:346,end:261},{start:261,end:448},{start:417,end:413},{start:413,end:285},{start:285,end:417},{start:326,end:327},{start:327,end:328},{start:328,end:326},{start:277,end:355},{start:355,end:329},{start:329,end:277},{start:309,end:392},{start:392,end:438},{start:438,end:309},{start:381,end:382},{start:382,end:256},{start:256,end:381},{start:279,end:429},{start:429,end:360},{start:360,end:279},{start:365,end:364},{start:364,end:379},{start:379,end:365},{start:355,end:277},{start:277,end:437},{start:437,end:355},{start:282,end:443},{start:443,end:283},{start:283,end:282},{start:281,end:275},{start:275,end:363},{start:363,end:281},{start:395,end:431},{start:431,end:369},{start:369,end:395},{start:299,end:297},{start:297,end:337},{start:337,end:299},{start:335,end:273},{start:273,end:321},{start:321,end:335},{start:348,end:450},{start:450,end:349},{start:349,end:348},{start:359,end:446},{start:446,end:467},{start:467,end:359},{start:283,end:293},{start:293,end:282},{start:282,end:283},{start:250,end:458},{start:458,end:462},{start:462,end:250},{start:300,end:276},{start:276,end:383},{start:383,end:300},{start:292,end:308},{start:308,end:325},{start:325,end:292},{start:283,end:276},{start:276,end:293},{start:293,end:283},{start:264,end:372},{start:372,end:447},{start:447,end:264},{start:346,end:352},{start:352,end:340},{start:340,end:346},{start:354,end:274},{start:274,end:19},{start:19,end:354},{start:363,end:456},{start:456,end:281},{start:281,end:363},{start:426,end:436},{start:436,end:425},{start:425,end:426},{start:380,end:381},{start:381,end:252},{start:252,end:380},{start:267,end:269},{start:269,end:393},{start:393,end:267},{start:421,end:200},{start:200,end:428},{start:428,end:421},{start:371,end:266},{start:266,end:329},{start:329,end:371},{start:432,end:287},{start:287,end:422},{start:422,end:432},{start:290,end:250},{start:250,end:328},{start:328,end:290},{start:385,end:258},{start:258,end:384},{start:384,end:385},{start:446,end:265},{start:265,end:342},{start:342,end:446},{start:386,end:387},{start:387,end:257},{start:257,end:386},{start:422,end:424},{start:424,end:430},{start:430,end:422},{start:445,end:342},{start:342,end:276},{start:276,end:445},{start:422,end:273},{start:273,end:424},{start:424,end:422},{start:306,end:292},{start:292,end:307},{start:307,end:306},{start:352,end:366},{start:366,end:345},{start:345,end:352},{start:268,end:271},{start:271,end:302},{start:302,end:268},{start:358,end:423},{start:423,end:371},{start:371,end:358},{start:327,end:294},{start:294,end:460},{start:460,end:327},{start:331,end:279},{start:279,end:294},{start:294,end:331},{start:303,end:271},{start:271,end:304},{start:304,end:303},{start:436,end:432},{start:432,end:427},{start:427,end:436},{start:304,end:272},{start:272,end:408},{start:408,end:304},{start:395,end:394},{start:394,end:431},{start:431,end:395},{start:378,end:395},{start:395,end:400},{start:400,end:378},{start:296,end:334},{start:334,end:299},{start:299,end:296},{start:6,end:351},{start:351,end:168},{start:168,end:6},{start:376,end:352},{start:352,end:411},{start:411,end:376},{start:307,end:325},{start:325,end:320},{start:320,end:307},{start:285,end:295},{start:295,end:336},{start:336,end:285},{start:320,end:319},{start:319,end:404},{start:404,end:320},{start:329,end:330},{start:330,end:349},{start:349,end:329},{start:334,end:293},{start:293,end:333},{start:333,end:334},{start:366,end:323},{start:323,end:447},{start:447,end:366},{start:316,end:15},{start:15,end:315},{start:315,end:316},{start:331,end:358},{start:358,end:279},{start:279,end:331},{start:317,end:14},{start:14,end:316},{start:316,end:317},{start:8,end:285},{start:285,end:9},{start:9,end:8},{start:277,end:329},{start:329,end:350},{start:350,end:277},{start:253,end:374},{start:374,end:252},{start:252,end:253},{start:319,end:318},{start:318,end:403},{start:403,end:319},{start:351,end:6},{start:6,end:419},{start:419,end:351},{start:324,end:318},{start:318,end:325},{start:325,end:324},{start:397,end:367},{start:367,end:365},{start:365,end:397},{start:288,end:435},{start:435,end:397},{start:397,end:288},{start:278,end:344},{start:344,end:439},{start:439,end:278},{start:310,end:272},{start:272,end:311},{start:311,end:310},{start:248,end:195},{start:195,end:281},{start:281,end:248},{start:375,end:273},{start:273,end:291},{start:291,end:375},{start:175,end:396},{start:396,end:199},{start:199,end:175},{start:312,end:311},{start:311,end:268},{start:268,end:312},{start:276,end:283},{start:283,end:445},{start:445,end:276},{start:390,end:373},{start:373,end:339},{start:339,end:390},{start:295,end:282},{start:282,end:296},{start:296,end:295},{start:448,end:449},{start:449,end:346},{start:346,end:448},{start:356,end:264},{start:264,end:454},{start:454,end:356},{start:337,end:336},{start:336,end:299},{start:299,end:337},{start:337,end:338},{start:338,end:151},{start:151,end:337},{start:294,end:278},{start:278,end:455},{start:455,end:294},{start:308,end:292},{start:292,end:415},{start:415,end:308},{start:429,end:358},{start:358,end:355},{start:355,end:429},{start:265,end:340},{start:340,end:372},{start:372,end:265},{start:352,end:346},{start:346,end:280},{start:280,end:352},{start:295,end:442},{start:442,end:282},{start:282,end:295},{start:354,end:19},{start:19,end:370},{start:370,end:354},{start:285,end:441},{start:441,end:295},{start:295,end:285},{start:195,end:248},{start:248,end:197},{start:197,end:195},{start:457,end:440},{start:440,end:274},{start:274,end:457},{start:301,end:300},{start:300,end:368},{start:368,end:301},{start:417,end:351},{start:351,end:465},{start:465,end:417},{start:251,end:301},{start:301,end:389},{start:389,end:251},{start:394,end:395},{start:395,end:379},{start:379,end:394},{start:399,end:412},{start:412,end:419},{start:419,end:399},{start:410,end:436},{start:436,end:322},{start:322,end:410},{start:326,end:2},{start:2,end:393},{start:393,end:326},{start:354,end:370},{start:370,end:461},{start:461,end:354},{start:393,end:164},{start:164,end:267},{start:267,end:393},{start:268,end:302},{start:302,end:12},{start:12,end:268},{start:312,end:268},{start:268,end:13},{start:13,end:312},{start:298,end:293},{start:293,end:301},{start:301,end:298},{start:265,end:446},{start:446,end:340},{start:340,end:265},{start:280,end:330},{start:330,end:425},{start:425,end:280},{start:322,end:426},{start:426,end:391},{start:391,end:322},{start:420,end:429},{start:429,end:437},{start:437,end:420},{start:393,end:391},{start:391,end:326},{start:326,end:393},{start:344,end:440},{start:440,end:438},{start:438,end:344},{start:458,end:459},{start:459,end:461},{start:461,end:458},{start:364,end:434},{start:434,end:394},{start:394,end:364},{start:428,end:396},{start:396,end:262},{start:262,end:428},{start:274,end:354},{start:354,end:457},{start:457,end:274},{start:317,end:316},{start:316,end:402},{start:402,end:317},{start:316,end:315},{start:315,end:403},{start:403,end:316},{start:315,end:314},{start:314,end:404},{start:404,end:315},{start:314,end:313},{start:313,end:405},{start:405,end:314},{start:313,end:421},{start:421,end:406},{start:406,end:313},{start:323,end:366},{start:366,end:361},{start:361,end:323},{start:292,end:306},{start:306,end:407},{start:407,end:292},{start:306,end:291},{start:291,end:408},{start:408,end:306},{start:291,end:287},{start:287,end:409},{start:409,end:291},{start:287,end:432},{start:432,end:410},{start:410,end:287},{start:427,end:434},{start:434,end:411},{start:411,end:427},{start:372,end:264},{start:264,end:383},{start:383,end:372},{start:459,end:309},{start:309,end:457},{start:457,end:459},{start:366,end:352},{start:352,end:401},{start:401,end:366},{start:1,end:274},{start:274,end:4},{start:4,end:1},{start:418,end:421},{start:421,end:262},{start:262,end:418},{start:331,end:294},{start:294,end:358},{start:358,end:331},{start:435,end:433},{start:433,end:367},{start:367,end:435},{start:392,end:289},{start:289,end:439},{start:439,end:392},{start:328,end:462},{start:462,end:326},{start:326,end:328},{start:94,end:2},{start:2,end:370},{start:370,end:94},{start:289,end:305},{start:305,end:455},{start:455,end:289},{start:339,end:254},{start:254,end:448},{start:448,end:339},{start:359,end:255},{start:255,end:446},{start:446,end:359},{start:254,end:253},{start:253,end:449},{start:449,end:254},{start:253,end:252},{start:252,end:450},{start:450,end:253},{start:252,end:256},{start:256,end:451},{start:451,end:252},{start:256,end:341},{start:341,end:452},{start:452,end:256},{start:414,end:413},{start:413,end:463},{start:463,end:414},{start:286,end:441},{start:441,end:414},{start:414,end:286},{start:286,end:258},{start:258,end:441},{start:441,end:286},{start:258,end:257},{start:257,end:442},{start:442,end:258},{start:257,end:259},{start:259,end:443},{start:443,end:257},{start:259,end:260},{start:260,end:444},{start:444,end:259},{start:260,end:467},{start:467,end:445},{start:445,end:260},{start:309,end:459},{start:459,end:250},{start:250,end:309},{start:305,end:289},{start:289,end:290},{start:290,end:305},{start:305,end:290},{start:290,end:460},{start:460,end:305},{start:401,end:376},{start:376,end:435},{start:435,end:401},{start:309,end:250},{start:250,end:392},{start:392,end:309},{start:376,end:411},{start:411,end:433},{start:433,end:376},{start:453,end:341},{start:341,end:464},{start:464,end:453},{start:357,end:453},{start:453,end:465},{start:465,end:357},{start:343,end:357},{start:357,end:412},{start:412,end:343},{start:437,end:343},{start:343,end:399},{start:399,end:437},{start:344,end:360},{start:360,end:440},{start:440,end:344},{start:420,end:437},{start:437,end:456},{start:456,end:420},{start:360,end:420},{start:420,end:363},{start:363,end:360},{start:361,end:401},{start:401,end:288},{start:288,end:361},{start:265,end:372},{start:372,end:353},{start:353,end:265},{start:390,end:339},{start:339,end:249},{start:249,end:390},{start:339,end:448},{start:448,end:255},{start:255,end:339}],s("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_TESSELATION",So.FACE_LANDMARKS_TESSELATION);var Lo=class extends _o{constructor(t,e){super(new lo(t,e),"image_in","norm_rect",!0),this.i=new yd,t=new rd,pn(this.i,0,1,t)}get baseOptions(){return un(this.i,rd,1)}set baseOptions(t){pn(this.i,0,1,t)}s(t){return super.j(t)}Ea(t,e,n){const r="function"!=typeof e?e:{};if(this.h="function"==typeof e?e:n,go(this,t,r??{}),!this.h)return this.o}m(){var t=new ia;aa(t,"image_in"),aa(t,"norm_rect"),da(t,"stylized_image");const e=new js;xn(e,_d,this.i);const n=new Zs;Ys(n,"mediapipe.tasks.vision.face_stylizer.FaceStylizerGraph"),qs(n,"IMAGE:image_in"),qs(n,"NORM_RECT:norm_rect"),Js(n,"STYLIZED_IMAGE:stylized_image"),n.s(e),sa(t,n),this.g.P("stylized_image",((t,e)=>{var n=!this.h,r=t.data,s=t.width;const a=s*(t=t.height);if(r instanceof Uint8Array)if(r.length===3*a){const e=new Uint8ClampedArray(4*a);for(let t=0;t<a;++t)e[4*t]=r[3*t],e[4*t+1]=r[3*t+1],e[4*t+2]=r[3*t+2],e[4*t+3]=255;r=new ImageData(e,s,t)}else{if(r.length!==4*a)throw Error("Unsupported channel count: "+r.length/a);r=new ImageData(new Uint8ClampedArray(r.buffer,r.byteOffset,r.length),s,t)}else if(!(r instanceof WebGLTexture))throw Error(`Unsupported format: ${r.constructor.name}`);s=new Yi([r],!1,!1,this.g.l.canvas,this.J,s,t),this.o=n=n?s.clone():s,this.h&&this.h(n),Ai(this,e)})),this.g.attachEmptyPacketListener("stylized_image",(t=>{this.o=null,this.h&&this.h(null),Ai(this,t)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};Lo.prototype.stylize=Lo.prototype.Ea,Lo.prototype.setOptions=Lo.prototype.s,Lo.createFromModelPath=function(t,e){return fo(Lo,t,{baseOptions:{modelAssetPath:e}})},Lo.createFromModelBuffer=function(t,e){return fo(Lo,t,{baseOptions:{modelAssetBuffer:e}})},Lo.createFromOptions=function(t,e){return fo(Lo,t,e)};var Fo=[{start:0,end:1},{start:1,end:2},{start:2,end:3},{start:3,end:4},{start:0,end:5},{start:5,end:6},{start:6,end:7},{start:7,end:8},{start:5,end:9},{start:9,end:10},{start:10,end:11},{start:11,end:12},{start:9,end:13},{start:13,end:14},{start:14,end:15},{start:15,end:16},{start:13,end:17},{start:0,end:17},{start:17,end:18},{start:18,end:19},{start:19,end:20}];function Co(t){t.gestures=[],t.landmarks=[],t.worldLandmarks=[],t.handedness=[]}function Oo(t){return 0===t.gestures.length?{gestures:[],landmarks:[],worldLandmarks:[],handedness:[],handednesses:[]}:{gestures:t.gestures,landmarks:t.landmarks,worldLandmarks:t.worldLandmarks,handedness:t.handedness,handednesses:t.handedness}}function Ro(t,e=!0){const n=[];for(const s of t){var r=ga(s);t=[];for(const n of r.g())r=e&&null!=yn(n,1)?wn(yn(n,1)):-1,t.push({score:An(n,2)??0,index:r,categoryName:vn(n,3)??""??"",displayName:vn(n,4)??""??""});n.push(t)}return n}var Mo=class extends _o{constructor(t,e){super(new lo(t,e),"image_in","norm_rect",!1),this.gestures=[],this.landmarks=[],this.worldLandmarks=[],this.handedness=[],this.u=new Cd,t=new rd,pn(this.u,0,1,t),this.B=new Ld,pn(this.u,0,2,this.B),this.o=new xd,pn(this.B,0,3,this.o),this.h=new Td,pn(this.B,0,2,this.h),this.i=new Ed,pn(this.u,0,3,this.i),Tn(this.h,2,.5),Tn(this.B,4,.5),Tn(this.o,2,.5)}get baseOptions(){return un(this.u,rd,1)}set baseOptions(t){pn(this.u,0,1,t)}s(t){if(bn(this.h,3,t.numHands??1),"minHandDetectionConfidence"in t&&Tn(this.h,2,t.minHandDetectionConfidence??.5),"minTrackingConfidence"in t&&Tn(this.B,4,t.minTrackingConfidence??.5),"minHandPresenceConfidence"in t&&Tn(this.o,2,t.minHandPresenceConfidence??.5),t.cannedGesturesClassifierOptions){var e=new vd,n=Qd(t.cannedGesturesClassifierOptions,un(this.i,vd,3)?.h());pn(e,0,2,n),pn(this.i,0,3,e)}else void 0===t.cannedGesturesClassifierOptions&&un(this.i,vd,3)?.g();return t.customGesturesClassifierOptions?(pn(e=new vd,0,2,n=Qd(t.customGesturesClassifierOptions,un(this.i,vd,4)?.h())),pn(this.i,0,4,e)):void 0===t.customGesturesClassifierOptions&&un(this.i,vd,4)?.g(),this.j(t)}Aa(t,e){return Co(this),go(this,t,e),Oo(this)}Ba(t,e,n){return Co(this),mo(this,t,n,e),Oo(this)}m(){var t=new ia;aa(t,"image_in"),aa(t,"norm_rect"),da(t,"hand_gestures"),da(t,"hand_landmarks"),da(t,"world_hand_landmarks"),da(t,"handedness");const e=new js;xn(e,Md,this.u);const n=new Zs;Ys(n,"mediapipe.tasks.vision.gesture_recognizer.GestureRecognizerGraph"),qs(n,"IMAGE:image_in"),qs(n,"NORM_RECT:norm_rect"),Js(n,"HAND_GESTURES:hand_gestures"),Js(n,"LANDMARKS:hand_landmarks"),Js(n,"WORLD_LANDMARKS:world_hand_landmarks"),Js(n,"HANDEDNESS:handedness"),n.s(e),sa(t,n),this.g.attachProtoVectorListener("hand_landmarks",((t,e)=>{for(const e of t){t=Pa(e);const n=[];for(const e of fn(t,Oa,1))n.push({x:An(e,1)??0,y:An(e,2)??0,z:An(e,3)??0});this.landmarks.push(n)}Ai(this,e)})),this.g.attachEmptyPacketListener("hand_landmarks",(t=>{Ai(this,t)})),this.g.attachProtoVectorListener("world_hand_landmarks",((t,e)=>{for(const e of t){t=Ca(e);const n=[];for(const e of fn(t,Sa,1))n.push({x:An(e,1)??0,y:An(e,2)??0,z:An(e,3)??0});this.worldLandmarks.push(n)}Ai(this,e)})),this.g.attachEmptyPacketListener("world_hand_landmarks",(t=>{Ai(this,t)})),this.g.attachProtoVectorListener("hand_gestures",((t,e)=>{this.gestures.push(...Ro(t,!1)),Ai(this,e)})),this.g.attachEmptyPacketListener("hand_gestures",(t=>{Ai(this,t)})),this.g.attachProtoVectorListener("handedness",((t,e)=>{this.handedness.push(...Ro(t)),Ai(this,e)})),this.g.attachEmptyPacketListener("handedness",(t=>{Ai(this,t)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};function Po(t){return{landmarks:t.landmarks,worldLandmarks:t.worldLandmarks,handednesses:t.handedness,handedness:t.handedness}}Mo.prototype.recognizeForVideo=Mo.prototype.Ba,Mo.prototype.recognize=Mo.prototype.Aa,Mo.prototype.setOptions=Mo.prototype.s,Mo.createFromModelPath=function(t,e){return fo(Mo,t,{baseOptions:{modelAssetPath:e}})},Mo.createFromModelBuffer=function(t,e){return fo(Mo,t,{baseOptions:{modelAssetBuffer:e}})},Mo.createFromOptions=function(t,e){return fo(Mo,t,e)},Mo.HAND_CONNECTIONS=Fo,s("module$exports$google3$third_party$mediapipe$tasks$web$vision$gesture_recognizer$gesture_recognizer.GestureRecognizer.HAND_CONNECTIONS",Mo.HAND_CONNECTIONS);var Io=class extends _o{constructor(t,e){super(new lo(t,e),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.handedness=[],this.i=new Ld,t=new rd,pn(this.i,0,1,t),this.o=new xd,pn(this.i,0,3,this.o),this.h=new Td,pn(this.i,0,2,this.h),bn(this.h,3,1),Tn(this.h,2,.5),Tn(this.o,2,.5),Tn(this.i,4,.5)}get baseOptions(){return un(this.i,rd,1)}set baseOptions(t){pn(this.i,0,1,t)}s(t){return"numHands"in t&&bn(this.h,3,t.numHands??1),"minHandDetectionConfidence"in t&&Tn(this.h,2,t.minHandDetectionConfidence??.5),"minTrackingConfidence"in t&&Tn(this.i,4,t.minTrackingConfidence??.5),"minHandPresenceConfidence"in t&&Tn(this.o,2,t.minHandPresenceConfidence??.5),this.j(t)}G(t,e){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],go(this,t,e),Po(this)}H(t,e,n){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],mo(this,t,n,e),Po(this)}m(){var t=new ia;aa(t,"image_in"),aa(t,"norm_rect"),da(t,"hand_landmarks"),da(t,"world_hand_landmarks"),da(t,"handedness");const e=new js;xn(e,Rd,this.i);const n=new Zs;Ys(n,"mediapipe.tasks.vision.hand_landmarker.HandLandmarkerGraph"),qs(n,"IMAGE:image_in"),qs(n,"NORM_RECT:norm_rect"),Js(n,"LANDMARKS:hand_landmarks"),Js(n,"WORLD_LANDMARKS:world_hand_landmarks"),Js(n,"HANDEDNESS:handedness"),n.s(e),sa(t,n),this.g.attachProtoVectorListener("hand_landmarks",((t,e)=>{for(const e of t)t=Pa(e),this.landmarks.push(ni(t));Ai(this,e)})),this.g.attachEmptyPacketListener("hand_landmarks",(t=>{Ai(this,t)})),this.g.attachProtoVectorListener("world_hand_landmarks",((t,e)=>{for(const e of t)t=Ca(e),this.worldLandmarks.push(ri(t));Ai(this,e)})),this.g.attachEmptyPacketListener("world_hand_landmarks",(t=>{Ai(this,t)})),this.g.attachProtoVectorListener("handedness",((t,e)=>{var n=this.handedness,r=n.push;const s=[];for(const e of t){t=ga(e);const n=[];for(const e of t.g())n.push({score:An(e,2)??0,index:wn(yn(e,1))??-1,categoryName:vn(e,3)??""??"",displayName:vn(e,4)??""??""});s.push(n)}r.call(n,...s),Ai(this,e)})),this.g.attachEmptyPacketListener("handedness",(t=>{Ai(this,t)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};Io.prototype.detectForVideo=Io.prototype.H,Io.prototype.detect=Io.prototype.G,Io.prototype.setOptions=Io.prototype.s,Io.createFromModelPath=function(t,e){return fo(Io,t,{baseOptions:{modelAssetPath:e}})},Io.createFromModelBuffer=function(t,e){return fo(Io,t,{baseOptions:{modelAssetBuffer:e}})},Io.createFromOptions=function(t,e){return fo(Io,t,e)},Io.HAND_CONNECTIONS=Fo,s("module$exports$google3$third_party$mediapipe$tasks$web$vision$hand_landmarker$hand_landmarker.HandLandmarker.HAND_CONNECTIONS",Io.HAND_CONNECTIONS);var No=class extends _o{constructor(t,e){super(new lo(t,e),"input_image","norm_rect",!0),this.i={classifications:[]},this.h=new Pd,t=new rd,pn(this.h,0,1,t)}get baseOptions(){return un(this.h,rd,1)}set baseOptions(t){pn(this.h,0,1,t)}s(t){var e=Qd(t,un(this.h,Ya,2));return pn(this.h,0,2,e),this.j(t)}ka(t,e){return this.i={classifications:[]},go(this,t,e),this.i}la(t,e,n){return this.i={classifications:[]},mo(this,t,n,e),this.i}m(){var t=new ia;aa(t,"input_image"),aa(t,"norm_rect"),da(t,"classifications");const e=new js;xn(e,Id,this.h);const n=new Zs;Ys(n,"mediapipe.tasks.vision.image_classifier.ImageClassifierGraph"),qs(n,"IMAGE:input_image"),qs(n,"NORM_RECT:norm_rect"),Js(n,"CLASSIFICATIONS:classifications"),n.s(e),sa(t,n),this.g.attachProtoListener("classifications",((t,e)=>{this.i=function(t){const e={classifications:fn(t,$a,1).map((t=>ti(un(t,fa,4)?.g()??[],wn(yn(t,2)),vn(t,3)??"")))};return null!=_n(t)&&(e.timestampMs=wn(_n(t))),e}(ja(t)),Ai(this,e)})),this.g.attachEmptyPacketListener("classifications",(t=>{Ai(this,t)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};No.prototype.classifyForVideo=No.prototype.la,No.prototype.classify=No.prototype.ka,No.prototype.setOptions=No.prototype.s,No.createFromModelPath=function(t,e){return fo(No,t,{baseOptions:{modelAssetPath:e}})},No.createFromModelBuffer=function(t,e){return fo(No,t,{baseOptions:{modelAssetBuffer:e}})},No.createFromOptions=function(t,e){return fo(No,t,e)};var Do=class extends _o{constructor(t,e){super(new lo(t,e),"image_in","norm_rect",!0),this.h=new Nd,this.embeddings={embeddings:[]},t=new rd,pn(this.h,0,1,t)}get baseOptions(){return un(this.h,rd,1)}set baseOptions(t){pn(this.h,0,1,t)}s(t){var e=this.h,n=un(this.h,Ja,2);return n=n?n.clone():new Ja,void 0!==t.l2Normalize?En(n,1,t.l2Normalize):"l2Normalize"in t&&qe(n,1),void 0!==t.quantize?En(n,2,t.quantize):"quantize"in t&&qe(n,2),pn(e,0,2,n),this.j(t)}pa(t,e){return go(this,t,e),this.embeddings}qa(t,e,n){return mo(this,t,n,e),this.embeddings}m(){var t=new ia;aa(t,"image_in"),aa(t,"norm_rect"),da(t,"embeddings_out");const e=new js;xn(e,Dd,this.h);const n=new Zs;Ys(n,"mediapipe.tasks.vision.image_embedder.ImageEmbedderGraph"),qs(n,"IMAGE:image_in"),qs(n,"NORM_RECT:norm_rect"),Js(n,"EMBEDDINGS:embeddings_out"),n.s(e),sa(t,n),this.g.attachProtoListener("embeddings_out",((t,e)=>{t=Xa(t),this.embeddings=function(t){return{embeddings:fn(t,Wa,1).map((t=>{const e={headIndex:wn(yn(t,3))??-1,headName:vn(t,4)??""??""};if(void 0!==hn(t,Ga,dn(t,1)))t=en(t=un(t,Ga,dn(t,1)),1,ye),e.floatEmbedding=t;else{const n=new Uint8Array(0);e.quantizedEmbedding=un(t,Va,dn(t,2))?.ha()?.ja()??n}return e})),timestampMs:wn(_n(t))}}(t),Ai(this,e)})),this.g.attachEmptyPacketListener("embeddings_out",(t=>{Ai(this,t)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};Do.cosineSimilarity=function(t,e){if(t.floatEmbedding&&e.floatEmbedding)t=ai(t.floatEmbedding,e.floatEmbedding);else{if(!t.quantizedEmbedding||!e.quantizedEmbedding)throw Error("Cannot compute cosine similarity between quantized and float embeddings.");t=ai(si(t.quantizedEmbedding),si(e.quantizedEmbedding))}return t},Do.prototype.embedForVideo=Do.prototype.qa,Do.prototype.embed=Do.prototype.pa,Do.prototype.setOptions=Do.prototype.s,Do.createFromModelPath=function(t,e){return fo(Do,t,{baseOptions:{modelAssetPath:e}})},Do.createFromModelBuffer=function(t,e){return fo(Do,t,{baseOptions:{modelAssetBuffer:e}})},Do.createFromOptions=function(t,e){return fo(Do,t,e)};var $o=class{constructor(t,e,n){this.confidenceMasks=t,this.categoryMask=e,this.qualityScores=n}close(){this.confidenceMasks?.forEach((t=>{t.close()})),this.categoryMask?.close()}};function Uo(t){try{const e=new $o(t.confidenceMasks,t.categoryMask,t.qualityScores);if(!t.i)return e;t.i(e)}finally{Ti(t)}}$o.prototype.close=$o.prototype.close;var Bo=class extends _o{constructor(t,e){super(new lo(t,e),"image_in","norm_rect",!1),this.o=[],this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new Gd,this.u=new $d,pn(this.h,0,3,this.u),t=new rd,pn(this.h,0,1,t)}get baseOptions(){return un(this.h,rd,1)}set baseOptions(t){pn(this.h,0,1,t)}s(t){return void 0!==t.displayNamesLocale?qe(this.h,2,be(t.displayNamesLocale)):"displayNamesLocale"in t&&qe(this.h,2),"outputCategoryMask"in t&&(this.outputCategoryMask=t.outputCategoryMask??!1),"outputConfidenceMasks"in t&&(this.outputConfidenceMasks=t.outputConfidenceMasks??!0),super.j(t)}K(){!function(t){const e=fn(t.U(),Zs,1).filter((t=>(vn(t,1)??"").includes("mediapipe.tasks.TensorsToSegmentationCalculator")));if(t.o=[],1<e.length)throw Error("The graph has more than one mediapipe.tasks.TensorsToSegmentationCalculator.");1===e.length&&(un(e[0],js,7)?.j()?.g()??new Map).forEach(((e,n)=>{t.o[Number(n)]=vn(e,1)??""}))}(this)}W(t,e,n){const r="function"!=typeof e?e:{};return this.i="function"==typeof e?e:n,this.reset(),go(this,t,r),Uo(this)}Da(t,e,n,r){const s="function"!=typeof n?n:{};return this.i="function"==typeof n?n:r,this.reset(),mo(this,t,s,e),Uo(this)}va(){return this.o}reset(){this.qualityScores=this.confidenceMasks=this.categoryMask=void 0}m(){var t=new ia;aa(t,"image_in"),aa(t,"norm_rect");const e=new js;xn(e,Vd,this.h);const n=new Zs;Ys(n,"mediapipe.tasks.vision.image_segmenter.ImageSegmenterGraph"),qs(n,"IMAGE:image_in"),qs(n,"NORM_RECT:norm_rect"),n.s(e),sa(t,n),Ei(this,t),this.outputConfidenceMasks&&(da(t,"confidence_masks"),Js(n,"CONFIDENCE_MASKS:confidence_masks"),bi(this,"confidence_masks"),this.g.R("confidence_masks",((t,e)=>{this.confidenceMasks=t.map((t=>yo(this,t,!this.i))),Ai(this,e)})),this.g.attachEmptyPacketListener("confidence_masks",(t=>{this.confidenceMasks=[],Ai(this,t)}))),this.outputCategoryMask&&(da(t,"category_mask"),Js(n,"CATEGORY_MASK:category_mask"),bi(this,"category_mask"),this.g.P("category_mask",((t,e)=>{this.categoryMask=yo(this,t,!this.i),Ai(this,e)})),this.g.attachEmptyPacketListener("category_mask",(t=>{this.categoryMask=void 0,Ai(this,t)}))),da(t,"quality_scores"),Js(n,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",((t,e)=>{this.qualityScores=t,Ai(this,e)})),this.g.attachEmptyPacketListener("quality_scores",(t=>{this.categoryMask=void 0,Ai(this,t)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};Bo.prototype.getLabels=Bo.prototype.va,Bo.prototype.segmentForVideo=Bo.prototype.Da,Bo.prototype.segment=Bo.prototype.W,Bo.prototype.setOptions=Bo.prototype.s,Bo.createFromModelPath=function(t,e){return fo(Bo,t,{baseOptions:{modelAssetPath:e}})},Bo.createFromModelBuffer=function(t,e){return fo(Bo,t,{baseOptions:{modelAssetBuffer:e}})},Bo.createFromOptions=function(t,e){return fo(Bo,t,e)};var jo=class{constructor(t,e,n){this.confidenceMasks=t,this.categoryMask=e,this.qualityScores=n}close(){this.confidenceMasks?.forEach((t=>{t.close()})),this.categoryMask?.close()}};jo.prototype.close=jo.prototype.close;var Go=class extends Sn{constructor(t){super(t)}},Vo=[0,ur,ur,ur],Wo=[0,sr,sr,sr,sr,pr],zo=[0,sr,sr,sr,sr,pr,sr,sr],Ho=[0,wr,zo],Ko=[0,wr,Ho,wr,Vo],Xo=[0,wr,zo,wr,Vo],Yo=[0,wr,zo,ur,ur],qo=[0,wr,Yo,wr,Vo],Jo=[0,sr,sr,sr,sr,pr,wr,Vo,wr,Vo],Zo=[0,sr,sr,sr,sr,pr,kr],Qo=class extends Sn{constructor(t){super(t)}},tc=[0,sr,sr,pr],ec=class extends Sn{constructor(){super()}};ec.C=[1];var nc=class extends Sn{constructor(t){super(t)}},rc=[1,2,3,4,5,6,7,8,9,10,14,15],sc=[0,Er,zo,rc,Er,Xo,rc,Er,Ho,rc,Er,Ko,rc,Er,tc,rc,Er,Zo,rc,Er,Wo,rc,Er,[0,_r,sr,sr,sr,pr,ur,pr,pr,sr,3,wr,Vo],rc,Er,Yo,rc,Er,qo,rc,sr,wr,Vo,_r,Er,Jo,rc,Er,[0,Ar,tc],rc],ac=[0,_r,ur,ur,pr],dc=class extends Sn{constructor(){super()}};dc.C=[1],dc.prototype.g=Cr([0,Ar,sc,_r,wr,ac]);var ic=class extends _o{constructor(t,e){super(new lo(t,e),"image_in","norm_rect_in",!1),this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new Gd,this.u=new $d,pn(this.h,0,3,this.u),t=new rd,pn(this.h,0,1,t)}get baseOptions(){return un(this.h,rd,1)}set baseOptions(t){pn(this.h,0,1,t)}s(t){return"outputCategoryMask"in t&&(this.outputCategoryMask=t.outputCategoryMask??!1),"outputConfidenceMasks"in t&&(this.outputConfidenceMasks=t.outputConfidenceMasks??!0),super.j(t)}W(t,e,n,r){const s="function"!=typeof n?n:{};this.i="function"==typeof n?n:r,this.reset(),n=this.D+1,r=new dc;const a=new nc;var d=new Go;if(bn(d,1,255),pn(a,0,12,d),e.keypoint&&e.scribble)throw Error("Cannot provide both keypoint and scribble.");if(e.keypoint){var i=new Qo;En(i,3,!0),Tn(i,1,e.keypoint.x),Tn(i,2,e.keypoint.y),gn(a,5,rc,i)}else{if(!e.scribble)throw Error("Must provide either a keypoint or a scribble.");for(i of(d=new ec,e.scribble))En(e=new Qo,3,!0),Tn(e,1,i.x),Tn(e,2,i.y),mn(d,Qo,e);gn(a,15,rc,d)}mn(r,nc,a),this.g.addProtoToStream(r.g(),"drishti.RenderData","roi_in",n),go(this,t,s);t:{try{const t=new jo(this.confidenceMasks,this.categoryMask,this.qualityScores);if(!this.i){var o=t;break t}this.i(t)}finally{Ti(this)}o=void 0}return o}reset(){this.qualityScores=this.categoryMask=this.confidenceMasks=void 0}m(){var t=new ia;aa(t,"image_in"),aa(t,"roi_in"),aa(t,"norm_rect_in");const e=new js;xn(e,Vd,this.h);const n=new Zs;Ys(n,"mediapipe.tasks.vision.interactive_segmenter.InteractiveSegmenterGraph"),qs(n,"IMAGE:image_in"),qs(n,"ROI:roi_in"),qs(n,"NORM_RECT:norm_rect_in"),n.s(e),sa(t,n),Ei(this,t),this.outputConfidenceMasks&&(da(t,"confidence_masks"),Js(n,"CONFIDENCE_MASKS:confidence_masks"),bi(this,"confidence_masks"),this.g.R("confidence_masks",((t,e)=>{this.confidenceMasks=t.map((t=>yo(this,t,!this.i))),Ai(this,e)})),this.g.attachEmptyPacketListener("confidence_masks",(t=>{this.confidenceMasks=[],Ai(this,t)}))),this.outputCategoryMask&&(da(t,"category_mask"),Js(n,"CATEGORY_MASK:category_mask"),bi(this,"category_mask"),this.g.P("category_mask",((t,e)=>{this.categoryMask=yo(this,t,!this.i),Ai(this,e)})),this.g.attachEmptyPacketListener("category_mask",(t=>{this.categoryMask=void 0,Ai(this,t)}))),da(t,"quality_scores"),Js(n,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",((t,e)=>{this.qualityScores=t,Ai(this,e)})),this.g.attachEmptyPacketListener("quality_scores",(t=>{this.categoryMask=void 0,Ai(this,t)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};ic.prototype.segment=ic.prototype.W,ic.prototype.setOptions=ic.prototype.s,ic.createFromModelPath=function(t,e){return fo(ic,t,{baseOptions:{modelAssetPath:e}})},ic.createFromModelBuffer=function(t,e){return fo(ic,t,{baseOptions:{modelAssetBuffer:e}})},ic.createFromOptions=function(t,e){return fo(ic,t,e)};var oc=class extends _o{constructor(t,e){super(new lo(t,e),"input_frame_gpu","norm_rect",!1),this.i={detections:[]},this.h=new Wd,t=new rd,pn(this.h,0,1,t)}get baseOptions(){return un(this.h,rd,1)}set baseOptions(t){pn(this.h,0,1,t)}s(t){return void 0!==t.displayNamesLocale?qe(this.h,2,be(t.displayNamesLocale)):"displayNamesLocale"in t&&qe(this.h,2),void 0!==t.maxResults?bn(this.h,3,t.maxResults):"maxResults"in t&&qe(this.h,3),void 0!==t.scoreThreshold?Tn(this.h,4,t.scoreThreshold):"scoreThreshold"in t&&qe(this.h,4),void 0!==t.categoryAllowlist?an(this.h,5,t.categoryAllowlist):"categoryAllowlist"in t&&qe(this.h,5),void 0!==t.categoryDenylist?an(this.h,6,t.categoryDenylist):"categoryDenylist"in t&&qe(this.h,6),this.j(t)}G(t,e){return this.i={detections:[]},go(this,t,e),this.i}H(t,e,n){return this.i={detections:[]},mo(this,t,n,e),this.i}m(){var t=new ia;aa(t,"input_frame_gpu"),aa(t,"norm_rect"),da(t,"detections");const e=new js;xn(e,zd,this.h);const n=new Zs;Ys(n,"mediapipe.tasks.vision.ObjectDetectorGraph"),qs(n,"IMAGE:input_frame_gpu"),qs(n,"NORM_RECT:norm_rect"),Js(n,"DETECTIONS:detections"),n.s(e),sa(t,n),this.g.attachProtoVectorListener("detections",((t,e)=>{for(const e of t)t=xa(e),this.i.detections.push(ei(t));Ai(this,e)})),this.g.attachEmptyPacketListener("detections",(t=>{Ai(this,t)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};oc.prototype.detectForVideo=oc.prototype.H,oc.prototype.detect=oc.prototype.G,oc.prototype.setOptions=oc.prototype.s,oc.createFromModelPath=async function(t,e){return fo(oc,t,{baseOptions:{modelAssetPath:e}})},oc.createFromModelBuffer=function(t,e){return fo(oc,t,{baseOptions:{modelAssetBuffer:e}})},oc.createFromOptions=function(t,e){return fo(oc,t,e)};function cc(t){t.landmarks=[],t.worldLandmarks=[],t.u=void 0}function hc(t){try{const e=new class{constructor(t,e,n){this.landmarks=t,this.worldLandmarks=e,this.g=n}close(){this.g?.forEach((t=>{t.close()}))}}(t.landmarks,t.worldLandmarks,t.u);if(!t.o)return e;t.o(e)}finally{Ti(t)}}var uc=class extends _o{constructor(t,e){super(new lo(t,e),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.outputSegmentationMasks=!1,this.h=new qd,t=new rd,pn(this.h,0,1,t),this.B=new Xd,pn(this.h,0,3,this.B),this.i=new Hd,pn(this.h,0,2,this.i),bn(this.i,4,1),Tn(this.i,2,.5),Tn(this.B,2,.5),Tn(this.h,4,.5)}get baseOptions(){return un(this.h,rd,1)}set baseOptions(t){pn(this.h,0,1,t)}s(t){return"numPoses"in t&&bn(this.i,4,t.numPoses??1),"minPoseDetectionConfidence"in t&&Tn(this.i,2,t.minPoseDetectionConfidence??.5),"minTrackingConfidence"in t&&Tn(this.h,4,t.minTrackingConfidence??.5),"minPosePresenceConfidence"in t&&Tn(this.B,2,t.minPosePresenceConfidence??.5),"outputSegmentationMasks"in t&&(this.outputSegmentationMasks=t.outputSegmentationMasks??!1),this.j(t)}G(t,e,n){const r="function"!=typeof e?e:{};return this.o="function"==typeof e?e:n,cc(this),go(this,t,r),hc(this)}H(t,e,n,r){const s="function"!=typeof n?n:{};return this.o="function"==typeof n?n:r,cc(this),mo(this,t,s,e),hc(this)}m(){var t=new ia;aa(t,"image_in"),aa(t,"norm_rect"),da(t,"normalized_landmarks"),da(t,"world_landmarks"),da(t,"segmentation_masks");const e=new js;xn(e,Zd,this.h);const n=new Zs;Ys(n,"mediapipe.tasks.vision.pose_landmarker.PoseLandmarkerGraph"),qs(n,"IMAGE:image_in"),qs(n,"NORM_RECT:norm_rect"),Js(n,"NORM_LANDMARKS:normalized_landmarks"),Js(n,"WORLD_LANDMARKS:world_landmarks"),n.s(e),sa(t,n),Ei(this,t),this.g.attachProtoVectorListener("normalized_landmarks",((t,e)=>{this.landmarks=[];for(const e of t)t=Pa(e),this.landmarks.push(ni(t));Ai(this,e)})),this.g.attachEmptyPacketListener("normalized_landmarks",(t=>{this.landmarks=[],Ai(this,t)})),this.g.attachProtoVectorListener("world_landmarks",((t,e)=>{this.worldLandmarks=[];for(const e of t)t=Ca(e),this.worldLandmarks.push(ri(t));Ai(this,e)})),this.g.attachEmptyPacketListener("world_landmarks",(t=>{this.worldLandmarks=[],Ai(this,t)})),this.outputSegmentationMasks&&(Js(n,"SEGMENTATION_MASK:segmentation_masks"),bi(this,"segmentation_masks"),this.g.R("segmentation_masks",((t,e)=>{this.u=t.map((t=>yo(this,t,!this.o))),Ai(this,e)})),this.g.attachEmptyPacketListener("segmentation_masks",(t=>{this.u=[],Ai(this,t)}))),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};uc.prototype.detectForVideo=uc.prototype.H,uc.prototype.detect=uc.prototype.G,uc.prototype.setOptions=uc.prototype.s,uc.createFromModelPath=function(t,e){return fo(uc,t,{baseOptions:{modelAssetPath:e}})},uc.createFromModelBuffer=function(t,e){return fo(uc,t,{baseOptions:{modelAssetBuffer:e}})},uc.createFromOptions=function(t,e){return fo(uc,t,e)},uc.POSE_CONNECTIONS=[{start:0,end:1},{start:1,end:2},{start:2,end:3},{start:3,end:7},{start:0,end:4},{start:4,end:5},{start:5,end:6},{start:6,end:8},{start:9,end:10},{start:11,end:12},{start:11,end:13},{start:13,end:15},{start:15,end:17},{start:15,end:19},{start:15,end:21},{start:17,end:19},{start:12,end:14},{start:14,end:16},{start:16,end:18},{start:16,end:20},{start:16,end:22},{start:18,end:20},{start:11,end:23},{start:12,end:24},{start:23,end:24},{start:23,end:25},{start:24,end:26},{start:25,end:27},{start:26,end:28},{start:27,end:29},{start:28,end:30},{start:29,end:31},{start:30,end:32},{start:27,end:31},{start:28,end:32}],s("module$exports$google3$third_party$mediapipe$tasks$web$vision$pose_landmarker$pose_landmarker.PoseLandmarker.POSE_CONNECTIONS",uc.POSE_CONNECTIONS),exports.DrawingUtils=Ci,exports.FaceLandmarker=So,exports.FaceStylizer=Lo,exports.FilesetResolver=hi,exports.GestureRecognizer=Mo,exports.HandLandmarker=Io,exports.ImageClassifier=No,exports.ImageEmbedder=Do,exports.ImageSegmenter=Bo,exports.ImageSegmenterResult=$o,exports.InteractiveSegmenter=ic,exports.InteractiveSegmenterResult=jo,exports.MPImage=Yi,exports.MPMask=oo,exports.ObjectDetector=oc,exports.PoseLandmarker=uc,exports.TaskRunner=ki,exports.VisionTaskRunner=_o;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=self;function e(e,r){e=e.split(".");var n,s=t;e[0]in s||void 0===s.execScript||s.execScript("var "+e[0]);for(;e.length&&(n=e.shift());)e.length||void 0===r?s=s[n]&&s[n]!==Object.prototype[n]?s[n]:s[n]={}:s[n]=r}function r(t){return t}function n(){throw Error("Invalid UTF8")}function s(t,e){return e=String.fromCharCode.apply(null,e),null==t?e:t+e}let i,o;const a="undefined"!=typeof TextDecoder;let c;const h="undefined"!=typeof TextEncoder;function u(t){if(h)t=(c||=new TextEncoder).encode(t);else{let r=0;const n=new Uint8Array(3*t.length);for(let s=0;s<t.length;s++){var e=t.charCodeAt(s);if(128>e)n[r++]=e;else{if(2048>e)n[r++]=e>>6|192;else{if(55296<=e&&57343>=e){if(56319>=e&&s<t.length){const i=t.charCodeAt(++s);if(56320<=i&&57343>=i){e=1024*(e-55296)+i-56320+65536,n[r++]=e>>18|240,n[r++]=e>>12&63|128,n[r++]=e>>6&63|128,n[r++]=63&e|128;continue}s--}e=65533}n[r++]=e>>12|224,n[r++]=e>>6&63|128}n[r++]=63&e|128}}t=r===n.length?n:n.subarray(0,r)}return t}var l,d;t:{for(var f=["CLOSURE_FLAGS"],p=t,g=0;g<f.length;g++)if(null==(p=p[f[g]])){d=null;break t}d=p}var m,y=d&&d[610401301];l=null!=y&&y;const _=t.navigator;function v(t){return!!l&&(!!m&&m.brands.some((({brand:e})=>e&&-1!=e.indexOf(t))))}function A(e){var r;return(r=t.navigator)&&(r=r.userAgent)||(r=""),-1!=r.indexOf(e)}function w(){return!!l&&(!!m&&0<m.brands.length)}function E(){return w()?v("Chromium"):(A("Chrome")||A("CriOS"))&&!(!w()&&A("Edge"))||A("Silk")}m=_&&_.userAgentData||null;var b=!w()&&(A("Trident")||A("MSIE"));!A("Android")||E(),E(),A("Safari")&&(E()||!w()&&A("Coast")||!w()&&A("Opera")||!w()&&A("Edge")||(w()?v("Microsoft Edge"):A("Edg/"))||w()&&v("Opera"));var T={},k=null;function x(t){var e=t.length,r=3*e/4;r%3?r=Math.floor(r):-1!="=.".indexOf(t[e-1])&&(r=-1!="=.".indexOf(t[e-2])?r-2:r-1);var n=new Uint8Array(r),s=0;return function(t,e){function r(e){for(;n<t.length;){var r=t.charAt(n++),s=k[r];if(null!=s)return s;if(!/^[\s\xa0]*$/.test(r))throw Error("Unknown base64 encoding at char: "+r)}return e}L();for(var n=0;;){var s=r(-1),i=r(0),o=r(64),a=r(64);if(64===a&&-1===s)break;e(s<<2|i>>4),64!=o&&(e(i<<4&240|o>>2),64!=a&&e(o<<6&192|a))}}(t,(function(t){n[s++]=t})),s!==r?n.subarray(0,s):n}function L(){if(!k){k={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],r=0;5>r;r++){var n=t.concat(e[r].split(""));T[r]=n;for(var s=0;s<n.length;s++){var i=n[s];void 0===k[i]&&(k[i]=s)}}}}var S="undefined"!=typeof Uint8Array,F=!b&&"function"==typeof btoa;function O(t){if(!F){var e;void 0===e&&(e=0),L(),e=T[e];var r=Array(Math.floor(t.length/3)),n=e[64]||"";let c=0,h=0;for(;c<t.length-2;c+=3){var s=t[c],i=t[c+1],o=t[c+2],a=e[s>>2];s=e[(3&s)<<4|i>>4],i=e[(15&i)<<2|o>>6],o=e[63&o],r[h++]=a+s+i+o}switch(a=0,o=n,t.length-c){case 2:o=e[(15&(a=t[c+1]))<<2]||n;case 1:t=t[c],r[h]=e[t>>2]+e[(3&t)<<4|a>>4]+o+n}return r.join("")}for(e="",r=0,n=t.length-10240;r<n;)e+=String.fromCharCode.apply(null,t.subarray(r,r+=10240));return e+=String.fromCharCode.apply(null,r?t.subarray(r):t),btoa(e)}const R=/[-_.]/g,M={"-":"+",_:"/",".":"="};function C(t){return M[t]||""}function P(t){if(!F)return x(t);R.test(t)&&(t=t.replace(R,C)),t=atob(t);const e=new Uint8Array(t.length);for(let r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}function I(t){return S&&null!=t&&t instanceof Uint8Array}let N;function D(){return N||=new Uint8Array(0)}var $={};let U;function B(t){if(t!==$)throw Error("illegal external caller")}function G(){return U||=new V(null,$)}function j(t){B($);var e=t.L;return null==(e=null==e||I(e)?e:"string"==typeof e?P(e):null)?e:t.L=e}var V=class{constructor(t,e){if(B(e),this.L=t,null!=t&&0===t.length)throw Error("ByteString should be constructed with non-empty values")}fa(){const t=j(this);return t?new Uint8Array(t):D()}};function z(t,e){return Error(`Invalid wire type: ${t} (at position ${e})`)}function W(){return Error("Failed to read varint, encoding is invalid.")}function H(t,e){return Error(`Tried to read past the end of the data ${e} > ${t}`)}function K(t){return 0==t.length?G():new V(t,$)}function X(t){if("string"==typeof t)return{buffer:P(t),G:!1};if(Array.isArray(t))return{buffer:new Uint8Array(t),G:!1};if(t.constructor===Uint8Array)return{buffer:t,G:!1};if(t.constructor===ArrayBuffer)return{buffer:new Uint8Array(t),G:!1};if(t.constructor===V)return{buffer:j(t)||D(),G:!0};if(t instanceof Uint8Array)return{buffer:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),G:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers")}const Y="function"==typeof Uint8Array.prototype.slice;let q,J=0,Z=0;function Q(t){const e=0>t;let r=(t=Math.abs(t))>>>0;if(t=Math.floor((t-r)/4294967296),e){const[e,n]=st(r,t);t=n,r=e}J=r>>>0,Z=t>>>0}function tt(t){const e=q||=new DataView(new ArrayBuffer(8));e.setFloat32(0,+t,!0),Z=0,J=e.getUint32(0,!0)}function et(t,e){return 4294967296*e+(t>>>0)}function rt(t,e){const r=2147483648&e;return r&&(e=~e>>>0,0==(t=1+~t>>>0)&&(e=e+1>>>0)),t=et(t,e),r?-t:t}function nt(t){if(16>t.length)Q(Number(t));else if("function"==typeof BigInt)t=BigInt(t),J=Number(t&BigInt(4294967295))>>>0,Z=Number(t>>BigInt(32)&BigInt(4294967295));else{const e=+("-"===t[0]);Z=J=0;const r=t.length;for(let n=e,s=(r-e)%6+e;s<=r;n=s,s+=6){const e=Number(t.slice(n,s));Z*=1e6,J=1e6*J+e,4294967296<=J&&(Z+=Math.trunc(J/4294967296),Z>>>=0,J>>>=0)}if(e){const[t,e]=st(J,Z);J=t,Z=e}}}function st(t,e){return e=~e,t?t=1+~t:e+=1,[t,e]}function it(t,e,{O:r=!1}={}){t.O=r,e&&(e=X(e),t.h=e.buffer,t.s=e.G,t.v=0,t.l=t.h.length,t.g=t.v)}function ot(t,e){if(t.g=e,e>t.l)throw H(t.l,e)}function at(t,e){let r,n=0,s=0,i=0;const o=t.h;let a=t.g;do{r=o[a++],n|=(127&r)<<i,i+=7}while(32>i&&128&r);for(32<i&&(s|=(127&r)>>4),i=3;32>i&&128&r;i+=7)r=o[a++],s|=(127&r)<<i;if(ot(t,a),128>r)return e(n>>>0,s>>>0);throw W()}function ct(t){let e=0,r=t.g;const n=r+10,s=t.h;for(;r<n;){const n=s[r++];if(e|=n,0==(128&n))return ot(t,r),!!(127&e)}throw W()}function ht(t){var e=t.h;const r=t.g,n=e[r],s=e[r+1],i=e[r+2];return e=e[r+3],ot(t,t.g+4),(n<<0|s<<8|i<<16|e<<24)>>>0}function ut(t,e){if(0>e)throw Error(`Tried to read a negative byte length: ${e}`);const r=t.g,n=r+e;if(n>t.l)throw H(e,t.l-r);return t.g=n,r}function lt(t,e){if(0==e)return G();var r=ut(t,e);return t.O&&t.s?r=t.h.subarray(r,r+e):(t=t.h,r=r===(e=r+e)?D():Y?t.slice(r,e):new Uint8Array(t.subarray(r,e))),K(r)}var dt=class{constructor(t,e){this.h=null,this.s=!1,this.g=this.l=this.v=0,it(this,t,e)}m(){const t=this.h;let e=this.g,r=t[e++],n=127&r;if(128&r&&(r=t[e++],n|=(127&r)<<7,128&r&&(r=t[e++],n|=(127&r)<<14,128&r&&(r=t[e++],n|=(127&r)<<21,128&r&&(r=t[e++],n|=r<<28,128&r&&128&t[e++]&&128&t[e++]&&128&t[e++]&&128&t[e++]&&128&t[e++])))))throw W();return ot(this,e),n}j(){return this.m()>>>0}A(){var t=ht(this);const e=2*(t>>31)+1,r=t>>>23&255;return t&=8388607,255==r?t?NaN:1/0*e:0==r?e*Math.pow(2,-149)*t:e*Math.pow(2,r-150)*(t+Math.pow(2,23))}C(){return this.m()}},ft=[];function pt(t){var e=t.g;if(e.g==e.l)return!1;t.l=t.g.g;var r=t.g.j();if(e=r>>>3,!(0<=(r&=7)&&5>=r))throw z(r,t.l);if(1>e)throw Error(`Invalid field number: ${e} (at position ${t.l})`);return t.m=e,t.h=r,!0}function gt(t){switch(t.h){case 0:0!=t.h?gt(t):ct(t.g);break;case 1:ot(t=t.g,t.g+8);break;case 2:if(2!=t.h)gt(t);else{var e=t.g.j();ot(t=t.g,t.g+e)}break;case 5:ot(t=t.g,t.g+4);break;case 3:for(e=t.m;;){if(!pt(t))throw Error("Unmatched start-group tag: stream EOF");if(4==t.h){if(t.m!=e)throw Error("Unmatched end-group tag");break}gt(t)}break;default:throw z(t.h,t.l)}}function mt(t,e,r){const n=t.g.l,s=t.g.j(),i=t.g.g+s;let o=i-n;if(0>=o&&(t.g.l=i,r(e,t,void 0,void 0,void 0),o=i-t.g.g),o)throw Error(`Message parsing ended unexpectedly. Expected to read ${s} bytes, instead read ${s-o} bytes, either the data ended unexpectedly or the message misreported its own length`);return t.g.g=i,t.g.l=n,e}function yt(t){var e=t.g.j(),r=ut(t=t.g,e);if(t=t.h,a){var c,h=t;(c=o)||(c=o=new TextDecoder("utf-8",{fatal:!0})),t=r+e,h=0===r&&t===h.length?h:h.subarray(r,t);try{var u=c.decode(h)}catch(t){if(void 0===i){try{c.decode(new Uint8Array([128]))}catch(t){}try{c.decode(new Uint8Array([97])),i=!0}catch(t){i=!1}}throw!i&&(o=void 0),t}}else{e=(u=r)+e,r=[];let i,o=null;for(;u<e;){var l=t[u++];128>l?r.push(l):224>l?u>=e?n():(i=t[u++],194>l||128!=(192&i)?(u--,n()):r.push((31&l)<<6|63&i)):240>l?u>=e-1?n():(i=t[u++],128!=(192&i)||224===l&&160>i||237===l&&160<=i||128!=(192&(h=t[u++]))?(u--,n()):r.push((15&l)<<12|(63&i)<<6|63&h)):244>=l?u>=e-2?n():(i=t[u++],128!=(192&i)||0!=i-144+(l<<28)>>30||128!=(192&(h=t[u++]))||128!=(192&(c=t[u++]))?(u--,n()):(l=(7&l)<<18|(63&i)<<12|(63&h)<<6|63&c,l-=65536,r.push(55296+(l>>10&1023),56320+(1023&l)))):n(),8192<=r.length&&(o=s(o,r),r.length=0)}u=s(o,r)}return u}function _t(t){const e=t.g.j();return lt(t.g,e)}function vt(t,e,r){var n=t.g.j();for(n=t.g.g+n;t.g.g<n;)r.push(e.call(t.g))}var At=[];function wt(t){return t?/^\d+$/.test(t)?(nt(t),new Et(J,Z)):null:bt||=new Et(0,0)}var Et=class{constructor(t,e){this.h=t>>>0,this.g=e>>>0}};let bt;function Tt(t){return t?/^-?\d+$/.test(t)?(nt(t),new kt(J,Z)):null:xt||=new kt(0,0)}var kt=class{constructor(t,e){this.h=t>>>0,this.g=e>>>0}};let xt;function Lt(t,e,r){for(;0<r||127<e;)t.g.push(127&e|128),e=(e>>>7|r<<25)>>>0,r>>>=7;t.g.push(e)}function St(t,e){for(;127<e;)t.g.push(127&e|128),e>>>=7;t.g.push(e)}function Ft(t,e){if(0<=e)St(t,e);else{for(let r=0;9>r;r++)t.g.push(127&e|128),e>>=7;t.g.push(1)}}function Ot(t,e){t.g.push(e>>>0&255),t.g.push(e>>>8&255),t.g.push(e>>>16&255),t.g.push(e>>>24&255)}function Rt(t,e){0!==e.length&&(t.l.push(e),t.h+=e.length)}function Mt(t,e,r){St(t.g,8*e+r)}function Ct(t,e){return Mt(t,e,2),e=t.g.end(),Rt(t,e),e.push(t.h),e}function Pt(t,e){var r=e.pop();for(r=t.h+t.g.length()-r;127<r;)e.push(127&r|128),r>>>=7,t.h++;e.push(r),t.h++}function It(t,e,r){Mt(t,e,2),St(t.g,r.length),Rt(t,t.g.end()),Rt(t,r)}function Nt(t,e,r,n){null!=r&&(e=Ct(t,e),n(r,t),Pt(t,e))}class Dt{constructor(t,e,r){this.g=t,this.h=e,this.l=r}}function $t(t){return Array.prototype.slice.call(t)}const Ut="function"==typeof Symbol&&"symbol"==typeof Symbol()?Symbol():void 0;var Bt=Ut?(t,e)=>{t[Ut]|=e}:(t,e)=>{void 0!==t.g?t.g|=e:Object.defineProperties(t,{g:{value:e,configurable:!0,writable:!0,enumerable:!1}})};function Gt(t){const e=Vt(t);1!=(1&e)&&(Object.isFrozen(t)&&(t=$t(t)),Wt(t,1|e))}var jt=Ut?(t,e)=>{t[Ut]&=~e}:(t,e)=>{void 0!==t.g&&(t.g&=~e)},Vt=Ut?t=>0|t[Ut]:t=>0|t.g,zt=Ut?t=>t[Ut]:t=>t.g,Wt=Ut?(t,e)=>{t[Ut]=e}:(t,e)=>{void 0!==t.g?t.g=e:Object.defineProperties(t,{g:{value:e,configurable:!0,writable:!0,enumerable:!1}})};function Ht(t){return Bt(t,1),t}function Kt(t){return Bt(t,34),t}function Xt(t,e){Wt(e,-255&(0|t))}function Yt(t,e){Wt(e,-221&(34|t))}function qt(t){return 0===(t=t>>11&1023)?536870912:t}var Jt,Zt={};function Qt(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)&&t.constructor===Object}function te(t,e,r){if(null!=t)if("string"==typeof t)t=t?new V(t,$):G();else if(t.constructor!==V)if(I(t))t=r?K(t):t.length?new V(new Uint8Array(t),$):G();else{if(!e)throw Error();t=void 0}return t}const ee=[];function re(t){if(2&t)throw Error()}Wt(ee,39),Jt=Object.freeze(ee);class ne{constructor(t,e,r){this.l=0,this.g=t,this.h=e,this.m=r}next(){if(this.l<this.g.length){const t=this.g[this.l++];return{done:!1,value:this.h?this.h.call(this.m,t):t}}return{done:!0,value:void 0}}[Symbol.iterator](){return new ne(this.g,this.h,this.m)}}var se={};let ie,oe;function ae(t,e){(e=ie?e[ie]:void 0)&&(t[ie]=$t(e))}function ce(t,e){t.__closure__error__context__984382||(t.__closure__error__context__984382={}),t.__closure__error__context__984382.severity=e}function he(t){return null==t?t:"number"==typeof t||"NaN"===t||"Infinity"===t||"-Infinity"===t?Number(t):void 0}function ue(t){return null==t?t:"boolean"==typeof t||"number"==typeof t?!!t:void 0}function le(t){return"number"==typeof t&&Number.isFinite(t)||!!t&&"string"==typeof t&&isFinite(t)}function de(t){if(null==t)return t;if("string"==typeof t){if(!t)return;t=+t}return"number"==typeof t?t:void 0}function fe(t){if(null==t)return t;if("string"==typeof t){if(!t)return;t=+t}return"number"==typeof t?t:void 0}function pe(t){if("string"!=typeof t)throw Error();return t}function ge(t){if(null!=t&&"string"!=typeof t)throw Error();return t}function me(t){return null==t||"string"==typeof t?t:void 0}function ye(t,e,r,n){var s=!1;return null==t||"object"!=typeof t||(s=Array.isArray(t))||t.K!==Zt?s?(0===(s=r=Vt(t))&&(s|=32&n),(s|=2&n)!==r&&Wt(t,s),new e(t)):(r?2&n?(t=e[_e])?e=t:(Kt((t=new e).u),e=e[_e]=t):e=new e:e=void 0,e):t}const _e="function"==typeof Symbol&&"symbol"==typeof Symbol()?Symbol():"di";function ve(t){return t}function Ae(t,e,r){return"string"==typeof(t="number"===(e=typeof t)||"string"===e?t:r?0:void 0)&&(r=+t,Number.isSafeInteger(r))?r:t}let we,Ee;function be(t){switch(typeof t){case"number":return 0<t?void 0:0===t?Ee||=[0,void 0]:[-t,void 0];case"string":return[0,t];case"object":return t}}function Te(t,e){return ke(t,e[0],e[1])}function ke(t,e,r){if(null==t&&(t=we),we=void 0,null==t){var n=96;r?(t=[r],n|=512):t=[],e&&(n=-2095105&n|(1023&e)<<11)}else{if(!Array.isArray(t))throw Error();if(64&(n=Vt(t)))return oe&&delete t[oe],t;if(n|=64,r&&(n|=512,r!==t[0]))throw Error();t:{var s=(r=t).length;if(s){const t=s-1;var i=r[t];if(Qt(i)){1024<=(s=t-(e=+!!(512&(n|=256))-1))&&(xe(r,e,i),s=1023),n=-2095105&n|(1023&s)<<11;break t}}e&&(i=+!!(512&n)-1,1024<(e=Math.max(e,s-i))&&(xe(r,i,{}),n|=256,e=1023),n=-2095105&n|(1023&e)<<11)}}return Wt(t,n),t}function xe(t,e,r){const n=1023+e,s=t.length;for(let i=n;i<s;i++){const n=t[i];null!=n&&n!==r&&(r[i-e]=n)}t.length=n+1,t[n]=r}function Le(t){if(2&t.g)throw Error("Cannot mutate an immutable Map")}var Se=class extends Map{constructor(t,e,r=ve,n=ve){super();let s=Vt(t);s|=64,Wt(t,s),this.g=s,this.l=e,this.h=r||ve,this.j=this.l?Fe:n||ve;for(let i=0;i<t.length;i++){const o=t[i],a=r(o[0],!1,!0);let c=o[1];e?void 0===c&&(c=null):c=n(o[1],!1,!0,void 0,void 0,s),super.set(a,c)}}s(t=Oe){return this.m(t)}m(t=Oe){const e=[],r=super.entries();for(var n;!(n=r.next()).done;)(n=n.value)[0]=t(n[0]),n[1]=t(n[1]),e.push(n);return e}clear(){Le(this),super.clear()}delete(t){return Le(this),super.delete(this.h(t,!0,!1))}entries(){var t=this.A();return new ne(t,Re,this)}keys(){return this.C()}values(){var t=this.A();return new ne(t,Se.prototype.get,this)}forEach(t,e){super.forEach(((r,n)=>{t.call(e,this.get(n),n,this)}))}set(t,e){return Le(this),null==(t=this.h(t,!0,!1))?this:null==e?(super.delete(t),this):super.set(t,this.j(e,!0,!0,this.l,!1,this.g))}H(t){const e=this.h(t[0],!1,!0);t=t[1],t=this.l?void 0===t?null:t:this.j(t,!1,!0,void 0,!1,this.g),super.set(e,t)}has(t){return super.has(this.h(t,!1,!1))}get(t){t=this.h(t,!1,!1);const e=super.get(t);if(void 0!==e){var r=this.l;return r?((r=this.j(e,!1,!0,r,this.v,this.g))!==e&&super.set(t,r),r):e}}A(){return Array.from(super.keys())}C(){return super.keys()}[Symbol.iterator](){return this.entries()}};function Fe(t,e,r,n,s,i){return t=ye(t,n,r,i),s&&(t=Ue(t)),t}function Oe(t){return t}function Re(t){return[t,this.get(t)]}function Me(t,e,r,n,s,i){if(null!=t){if(Array.isArray(t))t=s&&0==t.length&&1&Vt(t)?void 0:i&&2&Vt(t)?t:Ce(t,e,r,void 0!==n,s,i);else if(Qt(t)){const o={};for(let a in t)o[a]=Me(t[a],e,r,n,s,i);t=o}else t=e(t,n);return t}}function Ce(t,e,r,n,s,i){const o=n||r?Vt(t):0;n=n?!!(32&o):void 0;const a=$t(t);for(let t=0;t<a.length;t++)a[t]=Me(a[t],e,r,n,s,i);return r&&(ae(a,t),r(o,a)),a}function Pe(t){return Me(t,Ie,void 0,void 0,!1,!1)}function Ie(t){return t.K===Zt?t.toJSON():t instanceof Se?t.s(Pe):function(t){switch(typeof t){case"number":return isFinite(t)?t:String(t);case"boolean":return t?1:0;case"object":if(t&&!Array.isArray(t)){if(I(t))return O(t);if(t instanceof V){const e=t.L;return null==e?"":"string"==typeof e?e:t.L=O(e)}if(t instanceof Se)return t.s()}}return t}(t)}function Ne(t,e,r=Yt){if(null!=t){if(S&&t instanceof Uint8Array)return e?t:new Uint8Array(t);if(Array.isArray(t)){const n=Vt(t);return 2&n?t:!e||68&n||!(32&n||0===n)?Ce(t,Ne,4&n?Yt:r,!0,!1,!0):(Wt(t,34|n),t)}return t.K===Zt?(e=t.u,t=2&(r=zt(e))?t:De(t,e,r,!0)):t instanceof Se&&(e=Kt(t.m(Ne)),t=new Se(e,t.l,t.h,t.j)),t}}function De(t,e,r,n){return t=t.constructor,we=e=$e(e,r,n),e=new t(e),we=void 0,e}function $e(t,e,r){const n=r||2&e?Yt:Xt,s=!!(32&e);return t=function(t,e,r){const n=$t(t);var s=n.length;const i=256&e?n[s-1]:void 0;for(s+=i?-1:0,e=512&e?1:0;e<s;e++)n[e]=r(n[e]);if(i){e=n[e]={};for(const t in i)e[t]=r(i[t])}return ae(n,t),n}(t,e,(t=>Ne(t,s,n))),Bt(t,32|(r?2:0)),t}function Ue(t){const e=t.u,r=zt(e);return 2&r?De(t,e,r,!1):t}function Be(t,e){return Ge(t=t.u,zt(t),e)}function Ge(t,e,r,n){if(-1===r)return null;if(r>=qt(e)){if(256&e)return t[t.length-1][r]}else{var s=t.length;if(n&&256&e&&null!=(n=t[s-1][r]))return n;if((e=r+(+!!(512&e)-1))<s)return t[e]}}function je(t,e,r,n){const s=t.u,i=zt(s);return re(i),Ve(s,i,e,r,n),t}function Ve(t,e,r,n,s){var i=qt(e);if(r>=i||s){if(s=e,256&e)i=t[t.length-1];else{if(null==n)return;i=t[i+(+!!(512&e)-1)]={},s|=256}i[r]=n,s!==e&&Wt(t,s)}else t[r+(+!!(512&e)-1)]=n,256&e&&(r in(t=t[t.length-1])&&delete t[r])}function ze(t,e,r,n,s){var i=2&e;let o=Ge(t,e,r,s);Array.isArray(o)||(o=Jt);const a=Vt(o);if(1&a||Ht(o),i)2&a||Kt(o),1&n||Object.freeze(o);else{i=!(2&n);const c=2&a;1&n||!c?i&&32&a&&!c&&jt(o,32):(o=Ht($t(o)),Ve(t,e,r,o,s))}return o}function We(t,e){t=t.u;const r=zt(t),n=Ge(t,r,e),s=he(n);return null!=s&&s!==n&&Ve(t,r,e,s),s}function He(t){t=t.u;const e=zt(t),r=Ge(t,e,1),n=te(r,!0,!!(34&e));return null!=n&&n!==r&&Ve(t,e,1,n),n}function Ke(t,e,r){t=t.u;const n=zt(t),s=2&n;let i=ze(t,n,e,1),o=Vt(i);if(!(4&o)){Object.isFrozen(i)&&(o=0,i=$t(i),Ve(t,n,e,i));let a=0,c=0;for(;a<i.length;a++){const t=r(i[a]);null!=t&&(i[c++]=t)}c<a&&(i.length=c),o|=5,s&&(o|=34),Wt(i,o),2&o&&Object.freeze(i)}return!s&&(2&o||Object.isFrozen(i))&&(i=$t(i),Bt(i,5),Ve(t,n,e,i)),i}let Xe;function Ye(){return Xe??=new Se(Kt([]),void 0,void 0,void 0,se)}function qe(t){t=$t(t);for(let e=0;e<t.length;e++){const r=t[e]=$t(t[e]);Array.isArray(r[1])&&(r[1]=Kt(r[1]))}return t}function Je(t,e,r){{t=t.u;const n=zt(t);if(re(n),null==r)Ve(t,n,e);else{if(!(4&Vt(r))){Object.isFrozen(r)&&(r=$t(r));for(let t=0;t<r.length;t++)r[t]=pe(r[t]);Wt(r,5)}Ve(t,n,e,r)}}}function Ze(t,e){return Qe(t=t.u,zt(t),Bs)===e?e:-1}function Qe(t,e,r){let n=0;for(let s=0;s<r.length;s++){const i=r[s];null!=Ge(t,e,i)&&(0!==n&&Ve(t,e,n),n=i)}return n}function tr(t,e,r,n){const s=zt(t);re(s);const i=Ge(t,s,r,n);let o;if(null!=i&&i.K===Zt)return(e=Ue(i))!==i&&Ve(t,s,r,e,n),e.u;if(Array.isArray(i)){const t=Vt(i);o=2&t?$e(i,t,!1):i,o=Te(o,e)}else o=Te(void 0,e);return o!==i&&Ve(t,s,r,o,n),o}function er(t,e,r,n){t=t.u;const s=zt(t),i=Ge(t,s,r,n);return(e=ye(i,e,!1,s))!==i&&null!=e&&Ve(t,s,r,e,n),e}function rr(t,e,r,n=!1){if(null==(e=er(t,e,r,n)))return e;t=t.u;const s=zt(t);if(!(2&s)){const i=Ue(e);i!==e&&Ve(t,s,r,e=i,n)}return e}function nr(t,e,r,n,s){var i=!!(2&e),o=ze(t,e,n,1);if(o===Jt||!(4&Vt(o))){var a=o;o=!!(2&e);var c=!!(2&Vt(a));i=a,!o&&c&&(a=$t(a));var h=e|(c?2:0);c=c||void 0;let u=0,l=0;for(;u<a.length;u++){const t=ye(a[u],r,!1,h);void 0!==t&&(c=c||2&zt(t.u),a[l++]=t)}return l<u&&(a.length=l),h=5|(a=Vt(r=a)),a!=(c=c?-9&h:8|h)&&(Object.isFrozen(r)&&(r=$t(r)),Wt(r,c)),i!==(a=r)&&Ve(t,e,n,a),(o&&2!==s||1===s)&&Object.freeze(a),a}return 3===s||(i?2===s&&(s=Vt(o),o=$t(o),Wt(o,s),Ve(t,e,n,o)):(i=Object.isFrozen(o),1===s?i||Object.freeze(o):(r=-35&(s=Vt(o)),i&&(s=0,Ve(t,e,n,o=$t(o))),s!==r&&Wt(o,r)))),o}function sr(t,e,r){var n=t.u;const s=zt(n);if(e=nr(n,s,e,r,(t=!!(2&s))?1:2),!(t||8&Vt(e))){for(r=0;r<e.length;r++)(t=e[r])!==(n=Ue(t))&&(e[r]=n);Bt(e,8)}return e}function ir(t,e,r,n,s){return null==n&&(n=void 0),je(t,r,n,s)}function or(t,e,r,n){null==n&&(n=void 0),t=t.u;const s=zt(t);re(s),(r=Qe(t,s,r))&&r!==e&&null!=n&&Ve(t,s,r),Ve(t,s,e,n)}function ar(t,e,r){t=t.u;const n=zt(t);re(n),t=nr(t,n,e,1,2),e=null!=r?r:new e,t.push(e),e.G()&&jt(t,8)}function cr(t,e){return de(Be(t,e))}function hr(t){return t=null==(t=Be(t,2))||le(t)?t:void 0}function ur(t,e){return me(Be(t,e))}function lr(t){return t??0}function dr(t,e){return lr(We(t,e))}function fr(t,e,r){if(null!=r){if("boolean"!=typeof r)throw t=typeof r,Error(`Expected boolean but got ${"object"!=t?t:r?Array.isArray(r)?"array":t:"null"}: ${r}`);r=!!r}je(t,e,r)}function pr(e,r,n){if(null!=n){if("number"!=typeof n)throw ce(e=Error(),"warning"),e;if(!Number.isFinite(n)){const e=Error();ce(e,"incident"),function(e){t.setTimeout((()=>{throw e}),0)}(e)}}je(e,r,n)}function gr(t,e,r){if(null!=r&&"number"!=typeof r)throw Error(`Value of float/double field must be a number, found ${typeof r}: ${r}`);je(t,e,r)}function mr(t,e,r){r=pe(r),t=t.u;const n=zt(t);re(n),ze(t,n,e,2).push(r)}function yr(t,e,r){e.g?e.m(t,e.g,e.h,r,!0):e.m(t,e.h,r,!0)}Se.prototype.toJSON=void 0;var _r=class{constructor(t,e){this.u=ke(t,e)}toJSON(){return vr(this,Ce(this.u,Ie,void 0,void 0,!1,!1),!0)}l(){var t=Ni;return t.g?t.l(this,t.g,t.h,!0):t.l(this,t.h,t.defaultValue,!0)}clone(){const t=this.u;return De(this,t,zt(t),!1)}G(){return!!(2&Vt(this.u))}};function vr(t,e,r){var n=t.constructor.B,s=qt(zt(r?t.u:e)),i=!1;if(n){if(!r){var o;if((e=$t(e)).length&&Qt(o=e[e.length-1]))for(i=0;i<n.length;i++)if(n[i]>=s){Object.assign(e[e.length-1]={},o);break}i=!0}var a;s=e,r=!r,t=qt(o=zt(t.u)),o=+!!(512&o)-1;for(let e=0;e<n.length;e++){var c=n[e];if(c<t){var h=s[c+=o];null==h?s[c]=r?Jt:Ht([]):r&&h!==Jt&&Gt(h)}else{if(!a){var u=void 0;s.length&&Qt(u=s[s.length-1])?a=u:s.push(a={})}h=a[c],null==a[c]?a[c]=r?Jt:Ht([]):r&&h!==Jt&&Gt(h)}}}if(!(n=e.length))return e;let l,d;if(Qt(a=e[n-1])){t:{var f=a;u={},s=!1;for(let t in f)r=f[t],Array.isArray(r)&&r!=r&&(s=!0),null!=r?u[t]=r:s=!0;if(s){for(let t in u){f=u;break t}f=null}}f!=a&&(l=!0),n--}for(;0<n&&null==(a=e[n-1]);n--)d=!0;return l||d?(e=i?e:Array.prototype.slice.call(e,0,n),i&&(e.length=n),f&&e.push(f),e):e}function Ar(t){return{aa:ln,S:t}}function wr(t,e){if(Array.isArray(e)){var r=Vt(e);if(4&r)return e;for(var n=0,s=0;n<e.length;n++){const r=t(e[n]);null!=r&&(e[s++]=r)}return s<n&&(e.length=s),Wt(e,5|r),2&r&&Object.freeze(e),e}}_r.prototype.K=Zt,_r.prototype.toString=function(){return vr(this,this.u,!1).toString()};const Er=Symbol();function br(t){let e=t[Er];if(!e){const r=Ir(t),n=r.m;e=n?(t,e)=>n(t,e,r):(t,e)=>{for(;pt(e)&&4!=e.h;){var n=e.m,s=r[n];if(!s){var i=r.h;i&&(i=i[n])&&(s=r[n]=Tr(i))}s&&s(e,t,n)||(n=(s=e).l,gt(s),s.Y?s=void 0:(i=s.g.g-n,s.g.g=n,s=lt(s.g,i)),n=t,s&&(ie||=Symbol(),(i=n[ie])?i.push(s):n[ie]=[s]))}(e=r.l)&&(t[oe||=Symbol()]=e)},t[Er]=e}return e}function Tr(t){const e=function(t){if(t=t.S)return br(t)}(t),r=t.aa.g;if(e){const n=Ir(t.S).g;return(t,s,i)=>r(t,s,i,n,e)}return(t,e,n)=>r(t,e,n)}function kr(t,e,r,n){e.g=be(t[0]);let s=1;if(t.length>s&&!(t[s]instanceof Dt)){var i=t[s++];if(Array.isArray(i))return e.m=i[0],e.h=i[1],e;e.h=i}for(i=0;s<t.length;){const u=t[s++];var o=t[s];for("number"==typeof o?(s++,i+=o):i++,u.l&&((o=e.l)||(e.l=o=[]),o.push(i)),o=s;o<t.length&&!(t[o]instanceof Dt);)o++;if(o-=s){var a=t,c=s,h=a[c];if("function"==typeof h&&(h=h(),a[c]=h),(a=Array.isArray(h))&&!(a=Mr in h||Sr in h)&&(a=0<h.length)){const t=be(c=(a=h)[0]);null!=t&&t!==c&&(a[0]=t),a=null!=t}(h=a?h:void 0)?(s++,e[i]=1===o?n(u,h):n(u,h,t[s++])):e[i]=r(u,t[s++])}else e[i]=r(u)}return e}const xr=Symbol();function Lr(t){let e=t[xr];if(!e){const r=Rr(t);e=(t,e)=>Dr(t,e,r),t[xr]=e}return e}const Sr=Symbol();function Fr(t){return t.h}function Or(t,e){let r,n;const s=t.h;return(t,i,o)=>s(t,i,o,n||=Rr(e).g,r||=Lr(e))}function Rr(t){let e=t[Sr];return e||(e=kr(t,t[Sr]={},Fr,Or),Mr in t&&Sr in t&&(t.length=0),e)}const Mr=Symbol();function Cr(t,e){const r=t.g;return e?(t,n,s)=>r(t,n,s,e):r}function Pr(t,e,r){const n=t.g;let s,i;return(t,o,a)=>n(t,o,a,i||=Ir(e).g,s||=br(e),r)}function Ir(t){let e=t[Mr];return e||(e=kr(t,t[Mr]={},Cr,Pr),Mr in t&&Sr in t&&(t.length=0),e)}function Nr(t,e){var r=t[e];if(r)return r;if((r=t.h)&&(r=r[e])){var n=r.S,s=r.aa.h;if(n){const t=Lr(n),e=Rr(n).g;r=(r,n,i)=>s(r,n,i,e,t)}else r=s;return t[e]=r}}function Dr(t,e,r){for(var n=zt(t),s=+!!(512&n)-1,i=t.length,o=512&n?1:0,a=i+(256&n?-1:0);o<a;o++){const n=t[o];if(null==n)continue;const i=o-s,a=Nr(r,i);a&&a(e,n,i)}if(256&n){n=t[i-1];for(let t in n)s=+t,Number.isNaN(s)||null!=(i=n[t])&&(a=Nr(r,s))&&a(e,i,s)}if(t=ie?t[ie]:void 0)for(Rt(e,e.g.end()),r=0;r<t.length;r++)Rt(e,j(t[r])||D())}function $r(t,e){return new Dt(t,e,!1)}function Ur(t,e){return new Dt(t,e,!0)}function Br(t,e,r){Ve(t,zt(t),e,r)}var Gr=$r((function(t,e,r,n,s){return 2===t.h&&(t=mt(t,Te([void 0,void 0],n),s),re(n=zt(e)),(s=Ge(e,n,r))instanceof Se?0!=(2&s.g)?((s=s.m()).push(t),Ve(e,n,r,s)):s.H(t):Array.isArray(s)?(2&Vt(s)&&Ve(e,n,r,s=qe(s)),s.push(t)):Ve(e,n,r,[t]),!0)}),(function(t,e,r,n,s){if(e instanceof Se)e.forEach(((e,i)=>{Nt(t,r,Te([i,e],n),s)}));else if(Array.isArray(e))for(let i=0;i<e.length;i++){const o=e[i];Array.isArray(o)&&Nt(t,r,Te(o,n),s)}}));function jr(t,e,r){t:if(null!=e){if(le(e)){if("string"==typeof e)break t;if("number"==typeof e)break t}e=void 0}null!=e&&("string"==typeof e&&Tt(e),null!=e&&(Mt(t,r,0),"number"==typeof e?(t=t.g,Q(e),Lt(t,J,Z)):(r=Tt(e),Lt(t.g,r.h,r.g))))}function Vr(t,e,r){null!=(e=de(e))&&null!=e&&(Mt(t,r,0),Ft(t.g,e))}function zr(t,e,r){null!=(e=ue(e))&&(Mt(t,r,0),t.g.g.push(e?1:0))}function Wr(t,e,r){null!=(e=me(e))&&It(t,r,u(e))}function Hr(t,e,r,n,s){Nt(t,r,e instanceof _r?e.u:Array.isArray(e)?Te(e,n):void 0,s)}function Kr(t,e,r){null!=(e=null==e||"string"==typeof e||I(e)||e instanceof V?e:void 0)&&It(t,r,X(e).buffer)}function Xr(t,e,r){return(5===t.h||2===t.h)&&(e=ze(e,zt(e),r,2,!1),2==t.h?vt(t,dt.prototype.A,e):e.push(t.g.A()),!0)}var Yr=$r((function(t,e,r){if(1!==t.h)return!1;var n=t.g;t=ht(n);const s=ht(n);n=2*(s>>31)+1;const i=s>>>20&2047;return t=4294967296*(1048575&s)+t,Br(e,r,2047==i?t?NaN:1/0*n:0==i?n*Math.pow(2,-1074)*t:n*Math.pow(2,i-1075)*(t+4503599627370496)),!0}),(function(t,e,r){null!=(e=he(e))&&(Mt(t,r,1),t=t.g,(r=q||=new DataView(new ArrayBuffer(8))).setFloat64(0,+e,!0),J=r.getUint32(0,!0),Z=r.getUint32(4,!0),Ot(t,J),Ot(t,Z))})),qr=$r((function(t,e,r){return 5===t.h&&(Br(e,r,t.g.A()),!0)}),(function(t,e,r){null!=(e=he(e))&&(Mt(t,r,5),t=t.g,tt(e),Ot(t,J))})),Jr=Ur(Xr,(function(t,e,r){if(null!=(e=wr(he,e)))for(let i=0;i<e.length;i++){var n=t,s=e[i];null!=s&&(Mt(n,r,5),n=n.g,tt(s),Ot(n,J))}})),Zr=Ur(Xr,(function(t,e,r){if(null!=(e=wr(he,e))&&e.length){Mt(t,r,2),St(t.g,4*e.length);for(let n=0;n<e.length;n++)r=t.g,tt(e[n]),Ot(r,J)}})),Qr=$r((function(t,e,r){return 0===t.h&&(Br(e,r,at(t.g,rt)),!0)}),jr),tn=$r((function(t,e,r){return 0===t.h&&(Br(e,r,0===(t=at(t.g,rt))?void 0:t),!0)}),jr),en=$r((function(t,e,r){return 0===t.h&&(Br(e,r,at(t.g,et)),!0)}),(function(t,e,r){t:if(null!=e){if(le(e)){if("string"==typeof e)break t;if("number"==typeof e)break t}e=void 0}null!=e&&("string"==typeof e&&wt(e),null!=e&&(Mt(t,r,0),"number"==typeof e?(t=t.g,Q(e),Lt(t,J,Z)):(r=wt(e),Lt(t.g,r.h,r.g))))})),rn=$r((function(t,e,r){return 0===t.h&&(Br(e,r,t.g.m()),!0)}),Vr),nn=Ur((function(t,e,r){return(0===t.h||2===t.h)&&(e=ze(e,zt(e),r,2,!1),2==t.h?vt(t,dt.prototype.m,e):e.push(t.g.m()),!0)}),(function(t,e,r){if(null!=(e=wr(de,e))&&e.length){r=Ct(t,r);for(let r=0;r<e.length;r++)Ft(t.g,e[r]);Pt(t,r)}})),sn=$r((function(t,e,r){return 0===t.h&&(Br(e,r,0===(t=t.g.m())?void 0:t),!0)}),Vr),on=$r((function(t,e,r){return 0===t.h&&(Br(e,r,ct(t.g)),!0)}),zr),an=$r((function(t,e,r){return 0===t.h&&(Br(e,r,!1===(t=ct(t.g))?void 0:t),!0)}),zr),cn=Ur((function(t,e,r){if(2!==t.h)return!1;t=yt(t);const n=zt(e);return re(n),ze(e,n,r,2).push(t),!0}),(function(t,e,r){if(null!=(e=wr(me,e)))for(let s=0;s<e.length;s++){var n=e[s];null!=n&&It(t,r,u(n))}})),hn=$r((function(t,e,r){return 2===t.h&&(Br(e,r,""===(t=yt(t))?void 0:t),!0)}),Wr),un=$r((function(t,e,r){return 2===t.h&&(Br(e,r,yt(t)),!0)}),Wr),ln=$r((function(t,e,r,n,s){return 2===t.h&&(mt(t,tr(e,n,r,!0),s),!0)}),Hr),dn=$r((function(t,e,r,n,s){return 2===t.h&&(mt(t,tr(e,n,r),s),!0)}),Hr),fn=Ur((function(t,e,r,n,s){if(2!==t.h)return!1;n=Te(void 0,n);const i=zt(e);re(i);let o=ze(e,i,r,3);return(Object.isFrozen(o)||4&Vt(o))&&(o=$t(o),Ve(e,i,r,o)),o.push(n),mt(t,n,s),!0}),(function(t,e,r,n,s){if(Array.isArray(e))for(let i=0;i<e.length;i++)Hr(t,e[i],r,n,s)})),pn=$r((function(t,e,r,n,s,i){if(2!==t.h)return!1;const o=zt(e);return re(o),(i=Qe(e,o,i))&&r!==i&&Ve(e,o,i),mt(t,e=tr(e,n,r),s),!0}),Hr),gn=$r((function(t,e,r){return 2===t.h&&(Br(e,r,_t(t)),!0)}),Kr),mn=Ur((function(t,e,r){return(0===t.h||2===t.h)&&(e=ze(e,zt(e),r,2,!1),2==t.h?vt(t,dt.prototype.j,e):e.push(t.g.j()),!0)}),(function(t,e,r){if(null!=(e=wr(fe,e)))for(let i=0;i<e.length;i++){var n=t,s=e[i];null!=s&&(Mt(n,r,0),St(n.g,s))}})),yn=$r((function(t,e,r){return 0===t.h&&(Br(e,r,t.g.m()),!0)}),(function(t,e,r){null!=(e=de(e))&&(e=parseInt(e,10),Mt(t,r,0),Ft(t.g,e))})),_n=Ur((function(t,e,r){return(0===t.h||2===t.h)&&(e=ze(e,zt(e),r,2,!1),2==t.h?vt(t,dt.prototype.C,e):e.push(t.g.m()),!0)}),(function(t,e,r){if(null!=(e=wr(de,e))&&e.length){r=Ct(t,r);for(let r=0;r<e.length;r++)Ft(t.g,e[r]);Pt(t,r)}}));class vn{constructor(t,e){this.h=t,this.g=e,this.l=rr,this.m=ir,this.defaultValue=void 0}}function An(t,e){return new vn(t,e)}function wn(t,e){return(r,n)=>{t:{if(At.length){const t=At.pop();t.o(n),it(t.g,r,n),r=t}else r=new class{constructor(t,e){if(ft.length){const r=ft.pop();it(r,t,e),t=r}else t=new dt(t,e);this.g=t,this.l=this.g.g,this.h=this.m=-1,this.o(e)}o({Y:t=!1}={}){this.Y=t}}(r,n);try{var s=new t;const n=s.u;br(e)(n,r),oe&&delete n[oe];var i=s;break t}finally{(s=r.g).h=null,s.s=!1,s.v=0,s.l=0,s.g=0,s.O=!1,r.m=-1,r.h=-1,100>At.length&&At.push(r)}i=void 0}return i}}function En(t){return function(){const e=new class{constructor(){this.l=[],this.h=0,this.g=new class{constructor(){this.g=[]}length(){return this.g.length}end(){const t=this.g;return this.g=[],t}}}};Dr(this.u,e,Rr(t)),Rt(e,e.g.end());const r=new Uint8Array(e.h),n=e.l,s=n.length;let i=0;for(let t=0;t<s;t++){const e=n[t];r.set(e,i),i+=e.length}return e.l=[r],r}}var bn,Tn=[0,hn,$r((function(t,e,r){return 2===t.h&&(Br(e,r,(t=_t(t))===G()?void 0:t),!0)}),(function(t,e,r){if(null!=e){if(e instanceof _r){const n=e.Aa;return void(n&&(e=n(e),null!=e&&It(t,r,X(e).buffer)))}if(Array.isArray(e))return}Kr(t,e,r)}))];function kn(e){if(void 0===bn){var n=null,s=t.trustedTypes;if(s&&s.createPolicy){try{n=s.createPolicy("goog#html",{createHTML:r,createScript:r,createScriptURL:r})}catch(e){t.console&&t.console.error(e.message)}bn=n}else bn=n}return e=(n=bn)?n.createScriptURL(e):e,new class{constructor(t){this.g=t}toString(){return this.g+""}}(e)}var xn=[0,un],Ln=[0,rn,yn,on,on,nn,yn,yn],Sn=[0,on,on],Fn=class extends _r{constructor(){super()}};Fn.B=[6];var On=[0,on,un,on,yn,yn,_n,un,un,dn,Sn,yn],Rn=[0,un,un,un],Mn=class extends _r{constructor(){super()}},Cn=[0],Pn=[0,rn],In=[1,2,3,4,5],Nn=class extends _r{constructor(t){super(t,2)}},Dn={},$n=[-2,Dn,on];Dn[336783863]=Ar([0,un,on,on,rn,dn,[0,pn,Cn,In,pn,On,In,pn,Rn,In,pn,Pn,In,pn,Ln,In],dn,xn]);var Un=[0,hn,an],Bn=[0,tn,tn,an,an,an,an,tn,nn,hn,sn,tn,tn,an,sn,an,an,an,hn],Gn=[-1,{}],jn=[0,un,dn,2,Gn],Vn=[0,un,cn,dn,Gn];function zn(t,e){e=ge(e),t=t.u;const r=zt(t);re(r),Ve(t,r,2,""===e?void 0:e)}function Wn(t,e){mr(t,3,e)}function Hn(t,e){mr(t,4,e)}var Kn=class extends _r{constructor(t){super(t,500)}o(t){return ir(this,0,7,t)}};Kn.B=[3,4,5,6,8,13,17,1005];var Xn=[-500,hn,hn,cn,cn,cn,cn,dn,$n,fn,Tn,sn,sn,dn,jn,dn,Vn,fn,Un,hn,dn,Bn,sn,cn,cn,988],Yn=[0,hn,hn,dn,Gn],qn=[-500,un,un,dn,[-1,{}],un,999],Jn=[-500,un,cn,cn,dn,[-2,{},on],cn,998,cn],Zn=[-500,un,cn,dn,Gn,cn,999];function Qn(t,e){ar(t,Kn,e)}function ts(t,e){mr(t,10,e)}function es(t,e){mr(t,15,e)}var rs=class extends _r{constructor(t){super(t,500)}o(t){return ir(this,0,1001,t)}};rs.B=[1,6,7,9,10,15,16,17,14,1002];var ns=[-500,fn,Xn,fn,5,qn,fn,Jn,sn,fn,Zn,cn,sn,dn,jn,dn,Vn,fn,Yn,cn,cn,cn,dn,Bn,hn,hn,an,dn,980,Gn,fn,Tn],ss=wn(rs,ns);rs.prototype.g=En(ns);var is=[0,fn,[0,rn,rn,rn]],os=class extends _r{constructor(t){super(t)}},as=[0,rn,qr,un,un],cs=class extends _r{constructor(t){super(t)}g(){return sr(this,os,1)}};cs.B=[1];var hs=[0,fn,as],us=wn(cs,hs),ls=[0,rn,qr],ds=[0,rn,rn,dn,is],fs=class extends _r{constructor(t){super(t)}},ps=[0,rn,rn,rn,rn],gs=[0,qr,qr,qr,qr],ms=class extends _r{constructor(t){super(t)}},ys=[0,qr,qr,un,qr],_s=class extends _r{constructor(t){super(t)}h(){return rr(this,fs,2)}g(){return sr(this,ms,5)}};_s.B=[5];var vs=[0,yn,dn,ps,dn,gs,dn,ds,fn,ys],As=class extends _r{constructor(t){super(t)}};As.B=[1,2,3,8,9];var ws=wn(As,[0,cn,nn,Zr,dn,vs,un,un,Qr,fn,ls,cn,Qr]),Es=class extends _r{constructor(t){super(t)}},bs=[0,qr,qr,qr,qr,qr],Ts=class extends _r{constructor(t){super(t)}};Ts.B=[1];var ks=wn(Ts,[0,fn,bs]),xs=class extends _r{constructor(t){super(t)}},Ls=[0,qr,qr,qr,qr,qr],Ss=class extends _r{constructor(t){super(t)}};Ss.B=[1];var Fs=wn(Ss,[0,fn,Ls]),Os=class extends _r{constructor(t){super(t)}};Os.B=[3];var Rs=[0,rn,rn,Zr,yn],Ms=class extends _r{constructor(){super()}};Ms.prototype.g=En([0,qr,qr,qr,qr,qr,Qr]);var Cs=class extends _r{constructor(t){super(t)}},Ps=[0,rn,2,un,dn,hs],Is=class extends _r{constructor(t){super(t)}};Is.B=[1];var Ns=wn(Is,[0,fn,Ps,Qr]),Ds=class extends _r{constructor(t){super(t)}};Ds.B=[1];var $s=class extends _r{constructor(t){super(t)}da(){const t=He(this);return null==t?G():t}},Us=class extends _r{constructor(t){super(t)}},Bs=[1,2],Gs=[0,pn,[0,Zr],Bs,pn,[0,gn],Bs,rn,un],js=class extends _r{constructor(t){super(t)}};js.B=[1];var Vs=wn(js,[0,fn,Gs,Qr]),zs=class extends _r{constructor(t){super(t)}};zs.B=[4,5];var Ws=[0,un,rn,qr,cn,cn],Hs=class extends _r{constructor(t){super(t)}},Ks=[0,on,on],Xs=class extends _r{constructor(t){super(t)}},Ys=[1,2,3,4,5],qs=class extends _r{constructor(t){super(t)}g(){return null!=He(this)}h(){return null!=ur(this,2)}},Js=[0,gn,un,dn,[0,rn,Qr,Qr],dn,[0,en,Qr]],Zs=class extends _r{constructor(t){super(t)}g(){return ue(Be(this,2))??!1}},Qs=[0,dn,Js,on,dn,[0,pn,Pn,Ys,pn,On,Ys,pn,Ln,Ys,pn,Cn,Ys,pn,Rn,Ys]],ti=class extends _r{constructor(t){super(t)}},ei=[0,dn,Qs,qr,qr,rn],ri=An(502141897,ti);Dn[502141897]=Ar(ei);var ni=[0,dn,Js];Dn[512499200]=Ar(ni);var si=[0,dn,ni];Dn[515723506]=Ar(si);var ii=wn(class extends _r{constructor(t){super(t)}},[0,dn,[0,yn,yn,Jr,mn],dn,Rs]),oi=[0,dn,Qs];Dn[508981768]=Ar(oi);var ai=class extends _r{constructor(t){super(t)}},ci=[0,dn,Qs,qr,dn,oi,on],hi=class extends _r{constructor(t){super(t)}},ui=[0,dn,Qs,dn,ei,dn,ci,qr,dn,si];Dn[508968149]=Ar(ci);var li=An(508968150,hi);Dn[508968150]=Ar(ui);var di=class extends _r{constructor(t){super(t)}},fi=An(513916220,di);Dn[513916220]=Ar([0,dn,Qs,dn,ui,rn]);var pi=class extends _r{constructor(t){super(t)}h(){return rr(this,zs,2)}g(){je(this,2)}},gi=[0,dn,Qs,dn,Ws];Dn[478825465]=Ar(gi);var mi=[0,dn,Qs];Dn[478825422]=Ar(mi);var yi=class extends _r{constructor(t){super(t)}},_i=[0,dn,Qs,dn,mi,dn,gi,dn,gi],vi=class extends _r{constructor(t){super(t)}},Ai=[0,dn,Qs,qr,rn],wi=class extends _r{constructor(t){super(t)}},Ei=[0,dn,Qs,qr],bi=class extends _r{constructor(t){super(t)}},Ti=[0,dn,Qs,dn,Ai,dn,Ei,qr],ki=class extends _r{constructor(t){super(t)}},xi=[0,dn,Qs,dn,Ti,dn,_i];Dn[463370452]=Ar(_i),Dn[464864288]=Ar(Ai),Dn[474472470]=Ar(Ei);var Li=An(462713202,bi);Dn[462713202]=Ar(Ti);var Si=An(479097054,ki);Dn[479097054]=Ar(xi);var Fi=class extends _r{constructor(t){super(t)}},Oi=An(456383383,Fi);Dn[456383383]=Ar([0,dn,Qs,dn,Ws]);var Ri=class extends _r{constructor(t){super(t)}},Mi=An(476348187,Ri);Dn[476348187]=Ar([0,dn,Qs,dn,Ks]);var Ci=class extends _r{constructor(t){super(t)}},Pi=[0,yn,yn],Ii=class extends _r{constructor(t){super(t)}};Ii.B=[3];var Ni=An(458105876,class extends _r{constructor(t){super(t)}g(){var t=this.u;const e=zt(t);var r=2&e;return t=function(t,e,r){var n=Ii;const s=2&e;let i=!1;if(null==r){if(s)return Ye();r=[]}else if(r.constructor===Se){if(0==(2&r.g)||s)return r;r=r.m()}else Array.isArray(r)?i=!!(2&Vt(r)):r=[];if(s){if(!r.length)return Ye();i||(i=!0,Kt(r))}else i&&(i=!1,r=qe(r));return i||(64&Vt(r)?jt(r,32):32&e&&Bt(r,32)),Ve(t,e,2,n=new Se(r,n,Ae,void 0),!1),n}(t,e,Ge(t,e,2)),null==t||!r&&Ii&&(t.v=!0),r=t}});Dn[458105876]=Ar([0,dn,Pi,Gr,[0,Qr,dn,[0,un,un,cn]]]);var Di=class extends _r{constructor(t){super(t)}},$i=An(458105758,Di);Dn[458105758]=Ar([0,dn,Qs,un,dn,Pi]);var Ui=class extends _r{constructor(t){super(t)}};Ui.B=[5,6];var Bi=An(443442058,Ui);Dn[443442058]=Ar([0,dn,Qs,un,rn,qr,cn,cn]);var Gi=class extends _r{constructor(t){super(t)}},ji=[0,dn,Qs,qr,qr,rn];Dn[514774813]=Ar(ji);var Vi=class extends _r{constructor(t){super(t)}},zi=[0,dn,Qs,qr],Wi=class extends _r{constructor(t){super(t)}},Hi=[0,dn,Qs,dn,ji,dn,zi,qr];Dn[518928384]=Ar(zi);var Ki=An(516587230,Wi);function Xi(t,e){return e=e?e.clone():new zs,void 0!==t.displayNamesLocale?je(e,1,ge(t.displayNamesLocale)):void 0===t.displayNamesLocale&&je(e,1),void 0!==t.maxResults?pr(e,2,t.maxResults):"maxResults"in t&&je(e,2),void 0!==t.scoreThreshold?gr(e,3,t.scoreThreshold):"scoreThreshold"in t&&je(e,3),void 0!==t.categoryAllowlist?Je(e,4,t.categoryAllowlist):"categoryAllowlist"in t&&je(e,4),void 0!==t.categoryDenylist?Je(e,5,t.categoryDenylist):"categoryDenylist"in t&&je(e,5),e}function Yi(t,e=-1,r=""){return{categories:t.map((t=>({index:lr(cr(t,1))??-1,score:dr(t,2)??0,categoryName:ur(t,3)??""??"",displayName:ur(t,4)??""??""}))),headIndex:e,headName:r}}function qi(t){var e=Ke(t,3,he),r=Ke(t,2,de);const n=Ke(t,1,me),s=Ke(t,9,me),i={categories:[],keypoints:[]};for(let t=0;t<e.length;t++)i.categories.push({score:e[t],index:r[t]??-1,categoryName:n[t]??"",displayName:s[t]??""});if((e=rr(t,_s,4)?.h())&&(i.boundingBox={originX:cr(e,1)??0,originY:cr(e,2)??0,width:cr(e,3)??0,height:cr(e,4)??0,angle:0}),rr(t,_s,4)?.g().length)for(const e of rr(t,_s,4).g())i.keypoints.push({x:We(e,1)??0,y:We(e,2)??0,score:We(e,4)??0,label:ur(e,3)??""});return i}function Ji(t){const e=[];for(const r of sr(t,xs,1))e.push({x:dr(r,1)??0,y:dr(r,2)??0,z:dr(r,3)??0});return e}function Zi(t){const e=[];for(const r of sr(t,Es,1))e.push({x:dr(r,1)??0,y:dr(r,2)??0,z:dr(r,3)??0});return e}function Qi(t){return Array.from(t,(t=>127<t?t-256:t))}function to(t,e){if(t.length!==e.length)throw Error(`Cannot compute cosine similarity between embeddings of different sizes (${t.length} vs. ${e.length}).`);let r=0,n=0,s=0;for(let i=0;i<t.length;i++)r+=t[i]*e[i],n+=t[i]*t[i],s+=e[i]*e[i];if(0>=n||0>=s)throw Error("Cannot compute cosine similarity on embedding with 0 norm.");return r/Math.sqrt(n*s)}let eo;Dn[516587230]=Ar(Hi);const ro=new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]);async function no(){if(void 0===eo)try{await WebAssembly.instantiate(ro),eo=!0}catch{eo=!1}return eo}async function so(t,e){const r=await no()?"wasm_internal":"wasm_nosimd_internal";return void 0!==e?{wasmLoaderPath:`${e}/${t}_${r}.js`,wasmBinaryPath:`${e}/${t}_${r}.wasm`}:{wasmLoaderPath:kn(`./${encodeURIComponent(t)}_${encodeURIComponent(r)}.js`),wasmBinaryPath:kn(`./${encodeURIComponent(t)}_${encodeURIComponent(r)}.wasm`)}}var io=class{};function oo(){const t=navigator.userAgent;return t.includes("Safari")&&!t.includes("Chrome")}async function ao(t){if("function"!=typeof importScripts){const e=document.createElement("script");return e.src=t.toString(),e.crossOrigin="anonymous",new Promise(((t,r)=>{e.addEventListener("load",(()=>{t()}),!1),e.addEventListener("error",(t=>{r(t)}),!1),document.body.appendChild(e)}))}importScripts(t.toString())}function co(t,e,r){t.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target"),r(e=t.i.stringToNewUTF8(e)),t.i._free(e)}function ho(t,e,r){if(!t.i.canvas)throw Error("No OpenGL canvas configured.");if(r?t.i._bindTextureToStream(r):t.i._bindTextureToCanvas(),!(r=t.i.canvas.getContext("webgl2")||t.i.canvas.getContext("webgl")))throw Error("Failed to obtain WebGL context from the provided canvas. `getContext()` should only be invoked with `webgl` or `webgl2`.");return t.i.gpuOriginForWebTexturesIsBottomLeft&&r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!0),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,e),t.i.gpuOriginForWebTexturesIsBottomLeft&&r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1),e.videoWidth?(r=e.videoWidth,e=e.videoHeight):e.naturalWidth?(r=e.naturalWidth,e=e.naturalHeight):(r=e.width,e=e.height),!t.l||r===t.i.canvas.width&&e===t.i.canvas.height||(t.i.canvas.width=r,t.i.canvas.height=e),[r,e]}function uo(t,e,r){t.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target");const n=new Uint32Array(e.length);for(let r=0;r<e.length;r++)n[r]=t.i.stringToNewUTF8(e[r]);e=t.i._malloc(4*n.length),t.i.HEAPU32.set(n,e>>2),r(e);for(const e of n)t.i._free(e);t.i._free(e)}function lo(t,e,r){t.i.simpleListeners=t.i.simpleListeners||{},t.i.simpleListeners[e]=r}function fo(t,e,r){let n=[];t.i.simpleListeners=t.i.simpleListeners||{},t.i.simpleListeners[e]=(t,e,s)=>{e?(r(n,s),n=[]):n.push(t)}}io.forVisionTasks=function(t=""){return so("vision",t)},io.forTextTasks=function(t=""){return so("text",t)},io.forAudioTasks=function(t=""){return so("audio",t)},io.isSimdSupported=function(){return no()};async function po(t,e,r,n){return t=await(async(t,e,r,n,s)=>{if(e&&await ao(e),!self.ModuleFactory)throw Error("ModuleFactory not set.");if(r&&(await ao(r),!self.ModuleFactory))throw Error("ModuleFactory not set.");return self.Module&&s&&((e=self.Module).locateFile=s.locateFile,s.mainScriptUrlOrBlob&&(e.mainScriptUrlOrBlob=s.mainScriptUrlOrBlob)),s=await self.ModuleFactory(self.Module||s),self.ModuleFactory=self.Module=void 0,new t(s,n)})(t,r.wasmLoaderPath,r.assetLoaderPath,e,{locateFile(t){var e=r.wasmBinaryPath.toString();return e.includes(t)?e:(e=r.assetBinaryPath?.toString(),e?.includes(t)?e:t)}}),await t.o(n),t}function go(t,e){const r=rr(t.baseOptions,qs,1)||new qs;"string"==typeof e?(je(r,2,ge(e)),je(r,1)):e instanceof Uint8Array&&(je(r,1,te(e,!1,!1)),je(r,2)),ir(t.baseOptions,0,1,r)}function mo(t){try{const e=t.I.length;if(1===e)throw Error(t.I[0].message);if(1<e)throw Error("Encountered multiple errors: "+t.I.map((t=>t.message)).join(", "))}finally{t.I=[]}}function yo(t,e){t.H=Math.max(t.H,e)}function _o(t,e){t.A=new Kn,zn(t.A,"PassThroughCalculator"),Wn(t.A,"free_memory"),Hn(t.A,"free_memory_unused_out"),ts(e,"free_memory"),Qn(e,t.A)}function vo(t,e){Wn(t.A,e),Hn(t.A,e+"_unused_out")}function Ao(t){t.g.addBoolToStream(!0,"free_memory",t.H)}var wo=class{constructor(t){this.g=t,this.I=[],this.H=0,this.g.setAutoRenderToScreen(!1)}l(t,e=!0){if(e){const e=t.baseOptions||{};if(t.baseOptions?.modelAssetBuffer&&t.baseOptions?.modelAssetPath)throw Error("Cannot set both baseOptions.modelAssetPath and baseOptions.modelAssetBuffer");if(!(rr(this.baseOptions,qs,1)?.g()||rr(this.baseOptions,qs,1)?.h()||t.baseOptions?.modelAssetBuffer||t.baseOptions?.modelAssetPath))throw Error("Either baseOptions.modelAssetPath or baseOptions.modelAssetBuffer must be set");if(function(t,e){let r=rr(t.baseOptions,Xs,3);if(!r){var n=r=new Xs,s=new Mn;or(n,4,Ys,s)}"delegate"in e&&("GPU"===e.delegate?(e=r,n=new Fn,or(e,2,Ys,n)):(e=r,n=new Mn,or(e,4,Ys,n))),ir(t.baseOptions,0,3,r)}(this,e),e.modelAssetPath)return fetch(e.modelAssetPath.toString()).then((t=>{if(t.ok)return t.arrayBuffer();throw Error(`Failed to fetch model: ${e.modelAssetPath} (${t.status})`)})).then((t=>{try{this.g.i.FS_unlink("/model.dat")}catch{}this.g.i.FS_createDataFile("/","model.dat",new Uint8Array(t),!0,!1,!1),go(this,"/model.dat"),this.m(),this.N()}));go(this,e.modelAssetBuffer)}return this.m(),this.N(),Promise.resolve()}N(){}U(){let t;if(this.g.U((e=>{t=ss(e)})),!t)throw Error("Failed to retrieve CalculatorGraphConfig");return t}setGraph(t,e){this.g.attachErrorListener(((t,e)=>{this.I.push(Error(e))})),this.g.xa(),this.g.setGraph(t,e),this.A=void 0,mo(this)}finishProcessing(){this.g.finishProcessing(),mo(this)}close(){this.A=void 0,this.g.closeGraph()}};wo.prototype.close=wo.prototype.close;const Eo={color:"white",lineWidth:4,radius:6};function bo(t){return{...Eo,fillColor:(t=t||{}).color,...t}}function To(t,e){return t instanceof Function?t(e):t}function ko(t,e,r){return Math.max(Math.min(e,r),Math.min(Math.max(e,r),t))}var xo=class{constructor(t){this.g=t}ka(t,e){if(t){var r=this.g;e=bo(e),r.save();var n=r.canvas,s=0;for(const i of t)r.fillStyle=To(e.fillColor,{index:s,from:i}),r.strokeStyle=To(e.color,{index:s,from:i}),r.lineWidth=To(e.lineWidth,{index:s,from:i}),(t=new Path2D).arc(i.x*n.width,i.y*n.height,To(e.radius,{index:s,from:i}),0,2*Math.PI),r.fill(t),r.stroke(t),++s;r.restore()}}ja(t,e,r){if(t&&e){var n=this.g;r=bo(r),n.save();var s=n.canvas,i=0;for(const o of e){n.beginPath(),e=t[o.start];const a=t[o.end];e&&a&&(n.strokeStyle=To(r.color,{index:i,from:e,to:a}),n.lineWidth=To(r.lineWidth,{index:i,from:e,to:a}),n.moveTo(e.x*s.width,e.y*s.height),n.lineTo(a.x*s.width,a.y*s.height)),++i,n.stroke()}n.restore()}}ia(t,e){const r=this.g;e=bo(e),r.save(),r.beginPath(),r.lineWidth=To(e.lineWidth,{}),r.strokeStyle=To(e.color,{}),r.fillStyle=To(e.fillColor,{}),r.moveTo(t.originX,t.originY),r.lineTo(t.originX+t.width,t.originY),r.lineTo(t.originX+t.width,t.originY+t.height),r.lineTo(t.originX,t.originY+t.height),r.lineTo(t.originX,t.originY),r.stroke(),r.fill(),r.restore()}};function Lo(t,e){if(null===t)throw Error(`Unable to obtain required WebGL resource: ${e}`);return t}xo.prototype.drawBoundingBox=xo.prototype.ia,xo.prototype.drawConnectors=xo.prototype.ja,xo.prototype.drawLandmarks=xo.prototype.ka,xo.lerp=function(t,e,r,n,s){return ko(n*(1-(t-e)/(r-e))+s*(1-(r-t)/(r-e)),n,s)},xo.clamp=ko;class So{constructor(t,e,r,n){this.g=t,this.h=e,this.m=r,this.l=n}bind(){this.g.bindVertexArray(this.h)}close(){this.g.deleteVertexArray(this.h),this.g.deleteBuffer(this.m),this.g.deleteBuffer(this.l)}}function Fo(t,e,r){const n=t.h;if(r=Lo(n.createShader(r),"Failed to create WebGL shader"),n.shaderSource(r,e),n.compileShader(r),!n.getShaderParameter(r,n.COMPILE_STATUS))throw Error(`Could not compile WebGL shader: ${n.getShaderInfoLog(r)}`);return n.attachShader(t.g,r),r}function Oo(t,e){const r=t.h,n=Lo(r.createVertexArray(),"Failed to create vertex array");r.bindVertexArray(n);const s=Lo(r.createBuffer(),"Failed to create buffer");r.bindBuffer(r.ARRAY_BUFFER,s),r.enableVertexAttribArray(t.s),r.vertexAttribPointer(t.s,2,r.FLOAT,!1,0,0),r.bufferData(r.ARRAY_BUFFER,new Float32Array([-1,-1,-1,1,1,1,1,-1]),r.STATIC_DRAW);const i=Lo(r.createBuffer(),"Failed to create buffer");return r.bindBuffer(r.ARRAY_BUFFER,i),r.enableVertexAttribArray(t.A),r.vertexAttribPointer(t.A,2,r.FLOAT,!1,0,0),r.bufferData(r.ARRAY_BUFFER,new Float32Array(e?[0,1,0,0,1,0,1,1]:[0,0,0,1,1,1,1,0]),r.STATIC_DRAW),r.bindBuffer(r.ARRAY_BUFFER,null),r.bindVertexArray(null),new So(r,n,s,i)}function Ro(t,e){if(t.h){if(e!==t.h)throw Error("Cannot change GL context once initialized")}else t.h=e}function Mo(t,e,r,n){if(Ro(t,e),!t.g){const e=t.h;if(t.g=Lo(e.createProgram(),"Failed to create WebGL program"),t.C=Fo(t,"\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),t.v=Fo(t,"\n precision mediump float;\n varying vec2 vTex;\n uniform sampler2D inputTexture;\n void main() {\n gl_FragColor = texture2D(inputTexture, vTex);\n }\n ",e.FRAGMENT_SHADER),e.linkProgram(t.g),!e.getProgramParameter(t.g,e.LINK_STATUS))throw Error(`Error during program linking: ${e.getProgramInfoLog(t.g)}`);t.s=e.getAttribLocation(t.g,"aVertex"),t.A=e.getAttribLocation(t.g,"aTex")}return r?(t.m||(t.m=Oo(t,!0)),r=t.m):(t.j||(t.j=Oo(t,!1)),r=t.j),e.useProgram(t.g),r.bind(),t=n(),r.g.bindVertexArray(null),t}function Co(t,e,r){Ro(t,e),t.l||(t.l=Lo(e.createFramebuffer(),"Failed to create framebuffe.")),e.bindFramebuffer(e.FRAMEBUFFER,t.l),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,r,0)}function Po(t){t.h?.bindFramebuffer(t.h.FRAMEBUFFER,null)}var Io=class{close(){if(this.g){const t=this.h;t.deleteProgram(this.g),t.deleteShader(this.C),t.deleteShader(this.v)}this.l&&this.h.deleteFramebuffer(this.l),this.j&&this.j.close(),this.m&&this.m.close()}};function No(t,e){switch(e){case 0:return t.g.find((t=>t instanceof ImageData));case 1:return t.g.find((t=>"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap));case 2:return t.g.find((t=>"undefined"!=typeof WebGLTexture&&t instanceof WebGLTexture));default:throw Error(`Type is not supported: ${e}`)}}function Do(t){var e=No(t,0);if(!e){e=Uo(t);const r=Bo(t),n=new Uint8Array(t.width*t.height*4);Co(r,e,$o(t)),e.readPixels(0,0,t.width,t.height,e.RGBA,e.UNSIGNED_BYTE,n),Po(r),e=new ImageData(new Uint8ClampedArray(n.buffer),t.width,t.height),t.g.push(e)}return e}function $o(t){let e=No(t,2);if(!e){const r=Uo(t);e=jo(t);const n=No(t,1)||Do(t);r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,n),Vo(t)}return e}function Uo(t){if(!t.canvas)throw Error("Conversion to different image formats require that a canvas is passed when iniitializing the image.");return t.h||(t.h=Lo(t.canvas.getContext("webgl2"),"You cannot use a canvas that is already bound to a different type of rendering context.")),t.h}function Bo(t){return t.l||(t.l=new Io),t.l}function Go(t){(t=Uo(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,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR)}function jo(t){const e=Uo(t);e.viewport(0,0,t.width,t.height),e.activeTexture(e.TEXTURE0);let r=No(t,2);return r?e.bindTexture(e.TEXTURE_2D,r):(r=Lo(e.createTexture(),"Failed to create texture"),t.g.push(r),t.m=!0,e.bindTexture(e.TEXTURE_2D,r),Go(t)),r}function Vo(t){t.h.bindTexture(t.h.TEXTURE_2D,null)}function zo(t){const e=Uo(t);return Mo(Bo(t),e,!0,(()=>function(t,e){const r=t.canvas;if(r.width===t.width&&r.height===t.height)return e();const n=r.width,s=r.height;return r.width=t.width,r.height=t.height,t=e(),r.width=n,r.height=s,t}(t,(()=>{if(e.bindFramebuffer(e.FRAMEBUFFER,null),e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT),e.drawArrays(e.TRIANGLE_FAN,0,4),!(t.canvas instanceof OffscreenCanvas))throw Error("Conversion to ImageBitmap requires that the MediaPipe Tasks is initialized with an OffscreenCanvas");return t.canvas.transferToImageBitmap()}))))}var Wo=class{constructor(t,e,r,n,s,i,o){this.g=t,this.j=e,this.m=r,this.canvas=n,this.l=s,this.width=i,this.height=o,(this.j||this.m)&&(0===--Ho&&console.error("You seem to be creating MPImage instances without invoking .close(). This leaks resources."))}ta(){return!!No(this,0)}Z(){return!!No(this,1)}J(){return!!No(this,2)}pa(){return Do(this)}oa(){var t=No(this,1);return t||($o(this),jo(this),t=zo(this),Vo(this),this.g.push(t),this.j=!0),t}T(){return $o(this)}clone(){const t=[];for(const e of this.g){let r;if(e instanceof ImageData)r=new ImageData(e.data,this.width,this.height);else if(e instanceof WebGLTexture){const t=Uo(this),e=Bo(this);t.activeTexture(t.TEXTURE1),r=Lo(t.createTexture(),"Failed to create texture"),t.bindTexture(t.TEXTURE_2D,r),Go(this),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,this.width,this.height,0,t.RGBA,t.UNSIGNED_BYTE,null),t.bindTexture(t.TEXTURE_2D,null),Co(e,t,r),Mo(e,t,!1,(()=>{jo(this),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),t.drawArrays(t.TRIANGLE_FAN,0,4),Vo(this)})),Po(e),Vo(this)}else{if(!(e instanceof ImageBitmap))throw Error(`Type is not supported: ${e}`);$o(this),jo(this),r=zo(this),Vo(this)}t.push(r)}return new Wo(t,this.Z(),this.J(),this.canvas,this.l,this.width,this.height)}close(){this.j&&No(this,1).close(),this.m&&Uo(this).deleteTexture(No(this,2)),Ho=-1}};Wo.prototype.close=Wo.prototype.close,Wo.prototype.clone=Wo.prototype.clone,Wo.prototype.getAsWebGLTexture=Wo.prototype.T,Wo.prototype.getAsImageBitmap=Wo.prototype.oa,Wo.prototype.getAsImageData=Wo.prototype.pa,Wo.prototype.hasWebGLTexture=Wo.prototype.J,Wo.prototype.hasImageBitmap=Wo.prototype.Z,Wo.prototype.hasImageData=Wo.prototype.ta;var Ho=250;function Ko(t,e){switch(e){case 0:return t.g.find((t=>t instanceof Uint8Array));case 1:return t.g.find((t=>t instanceof Float32Array));case 2:return t.g.find((t=>"undefined"!=typeof WebGLTexture&&t instanceof WebGLTexture));default:throw Error(`Type is not supported: ${e}`)}}function Xo(t){var e=Ko(t,1);if(!e){if(e=Ko(t,0))e=new Float32Array(e).map((t=>t/255));else{e=new Float32Array(t.width*t.height);const n=qo(t);var r=Zo(t);if(Co(r,n,Yo(t)),"iPad Simulator;iPhone Simulator;iPod Simulator;iPad;iPhone;iPod".split(";").includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document){r=new Float32Array(t.width*t.height*4),n.readPixels(0,0,t.width,t.height,n.RGBA,n.FLOAT,r);for(let t=0,n=0;t<e.length;++t,n+=4)e[t]=r[n]}else n.readPixels(0,0,t.width,t.height,n.RED,n.FLOAT,e)}t.g.push(e)}return e}function Yo(t){let e=Ko(t,2);if(!e){const r=qo(t);e=ta(t);const n=Xo(t),s=Jo(t);r.texImage2D(r.TEXTURE_2D,0,s,t.width,t.height,0,r.RED,r.FLOAT,n),ea(t)}return e}function qo(t){if(!t.canvas)throw Error("Conversion to different image formats require that a canvas is passed when initializing the image.");return t.h||(t.h=Lo(t.canvas.getContext("webgl2"),"You cannot use a canvas that is already bound to a different type of rendering context.")),t.h}function Jo(t){if(t=qo(t),!ra)if(t.getExtension("EXT_color_buffer_float")&&t.getExtension("OES_texture_float_linear")&&t.getExtension("EXT_float_blend"))ra=t.R32F;else{if(!t.getExtension("EXT_color_buffer_half_float"))throw Error("GPU does not fully support 4-channel float32 or float16 formats");ra=t.R16F}return ra}function Zo(t){return t.l||(t.l=new Io),t.l}function Qo(t){(t=qo(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,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST)}function ta(t){const e=qo(t);e.viewport(0,0,t.width,t.height),e.activeTexture(e.TEXTURE0);let r=Ko(t,2);return r?e.bindTexture(e.TEXTURE_2D,r):(r=Lo(e.createTexture(),"Failed to create texture"),t.g.push(r),t.m=!0,e.bindTexture(e.TEXTURE_2D,r),Qo(t)),r}function ea(t){t.h.bindTexture(t.h.TEXTURE_2D,null)}var ra,na=class{constructor(t,e,r,n,s,i){this.g=t,this.m=e,this.canvas=r,this.l=n,this.width=s,this.height=i,this.m&&(0===--sa&&console.error("You seem to be creating MPMask instances without invoking .close(). This leaks resources."))}ua(){return!!Ko(this,0)}sa(){return!!Ko(this,1)}J(){return!!Ko(this,2)}qa(){return(e=Ko(t=this,0))||(e=Xo(t),e=new Uint8Array(e.map((t=>255*t))),t.g.push(e)),e;var t,e}na(){return Xo(this)}T(){return Yo(this)}clone(){const t=[];for(const e of this.g){let r;if(e instanceof Uint8Array)r=new Uint8Array(e);else if(e instanceof Float32Array)r=new Float32Array(e);else{if(!(e instanceof WebGLTexture))throw Error(`Type is not supported: ${e}`);{const t=qo(this),e=Zo(this);t.activeTexture(t.TEXTURE1),r=Lo(t.createTexture(),"Failed to create texture"),t.bindTexture(t.TEXTURE_2D,r),Qo(this);const n=Jo(this);t.texImage2D(t.TEXTURE_2D,0,n,this.width,this.height,0,t.RED,t.FLOAT,null),t.bindTexture(t.TEXTURE_2D,null),Co(e,t,r),Mo(e,t,!1,(()=>{ta(this),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),t.drawArrays(t.TRIANGLE_FAN,0,4),ea(this)})),Po(e),ea(this)}}t.push(r)}return new na(t,this.J(),this.canvas,this.l,this.width,this.height)}close(){this.m&&qo(this).deleteTexture(Ko(this,2)),sa=-1}};na.prototype.close=na.prototype.close,na.prototype.clone=na.prototype.clone,na.prototype.getAsWebGLTexture=na.prototype.T,na.prototype.getAsFloat32Array=na.prototype.na,na.prototype.getAsUint8Array=na.prototype.qa,na.prototype.hasWebGLTexture=na.prototype.J,na.prototype.hasFloat32Array=na.prototype.sa,na.prototype.hasUint8Array=na.prototype.ua;var sa=250;function ia(...t){return t.map((([t,e])=>({start:t,end:e})))}const oa=function(t){return class extends t{xa(){this.i._registerModelResourcesGraphService()}}}((aa=class{constructor(t,e){this.l=!0,this.i=t,this.g=null,this.h=0,this.m="function"==typeof this.i._addIntToInputStream,void 0!==e?this.i.canvas=e:"undefined"==typeof OffscreenCanvas||oo()?(console.warn("OffscreenCanvas not supported and GraphRunner constructor glCanvas parameter is undefined. Creating backup canvas."),this.i.canvas=document.createElement("canvas")):this.i.canvas=new OffscreenCanvas(1,1)}async initializeGraph(t){const e=await(await fetch(t)).arrayBuffer();t=!(t.endsWith(".pbtxt")||t.endsWith(".textproto")),this.setGraph(new Uint8Array(e),t)}setGraphFromString(t){this.setGraph((new TextEncoder).encode(t),!1)}setGraph(t,e){const r=t.length,n=this.i._malloc(r);this.i.HEAPU8.set(t,n),e?this.i._changeBinaryGraph(r,n):this.i._changeTextGraph(r,n),this.i._free(n)}configureAudio(t,e,r,n,s){this.i._configureAudio||console.warn('Attempting to use configureAudio without support for input audio. Is build dep ":gl_graph_runner_audio" missing?'),co(this,n||"input_audio",(n=>{co(this,s=s||"audio_header",(s=>{this.i._configureAudio(n,s,t,e,r)}))}))}setAutoResizeCanvas(t){this.l=t}setAutoRenderToScreen(t){this.i._setAutoRenderToScreen(t)}setGpuBufferVerticalFlip(t){this.i.gpuOriginForWebTexturesIsBottomLeft=t}U(t){lo(this,"__graph_config__",(e=>{t(e)})),co(this,"__graph_config__",(t=>{this.i._getGraphConfig(t,void 0)})),delete this.i.simpleListeners.__graph_config__}attachErrorListener(t){this.i.errorListener=t}attachEmptyPacketListener(t,e){this.i.emptyPacketListeners=this.i.emptyPacketListeners||{},this.i.emptyPacketListeners[t]=e}addAudioToStream(t,e,r){this.addAudioToStreamWithShape(t,0,0,e,r)}addAudioToStreamWithShape(t,e,r,n,s){const i=4*t.length;this.h!==i&&(this.g&&this.i._free(this.g),this.g=this.i._malloc(i),this.h=i),this.i.HEAPF32.set(t,this.g/4),co(this,n,(t=>{this.i._addAudioToInputStream(this.g,e,r,t,s)}))}addGpuBufferToStream(t,e,r){co(this,e,(e=>{const[n,s]=ho(this,t,e);this.i._addBoundTextureToStream(e,n,s,r)}))}addBoolToStream(t,e,r){co(this,e,(e=>{this.i._addBoolToInputStream(t,e,r)}))}addDoubleToStream(t,e,r){co(this,e,(e=>{this.i._addDoubleToInputStream(t,e,r)}))}addFloatToStream(t,e,r){co(this,e,(e=>{this.i._addFloatToInputStream(t,e,r)}))}addIntToStream(t,e,r){co(this,e,(e=>{this.i._addIntToInputStream(t,e,r)}))}addStringToStream(t,e,r){co(this,e,(e=>{co(this,t,(t=>{this.i._addStringToInputStream(t,e,r)}))}))}addStringRecordToStream(t,e,r){co(this,e,(e=>{uo(this,Object.keys(t),(n=>{uo(this,Object.values(t),(s=>{this.i._addFlatHashMapToInputStream(n,s,Object.keys(t).length,e,r)}))}))}))}addProtoToStream(t,e,r,n){co(this,r,(r=>{co(this,e,(e=>{const s=this.i._malloc(t.length);this.i.HEAPU8.set(t,s),this.i._addProtoToInputStream(s,t.length,e,r,n),this.i._free(s)}))}))}addEmptyPacketToStream(t,e){co(this,t,(t=>{this.i._addEmptyPacketToInputStream(t,e)}))}addBoolToInputSidePacket(t,e){co(this,e,(e=>{this.i._addBoolToInputSidePacket(t,e)}))}addDoubleToInputSidePacket(t,e){co(this,e,(e=>{this.i._addDoubleToInputSidePacket(t,e)}))}addFloatToInputSidePacket(t,e){co(this,e,(e=>{this.i._addFloatToInputSidePacket(t,e)}))}addIntToInputSidePacket(t,e){co(this,e,(e=>{this.i._addIntToInputSidePacket(t,e)}))}addStringToInputSidePacket(t,e){co(this,e,(e=>{co(this,t,(t=>{this.i._addStringToInputSidePacket(t,e)}))}))}addProtoToInputSidePacket(t,e,r){co(this,r,(r=>{co(this,e,(e=>{const n=this.i._malloc(t.length);this.i.HEAPU8.set(t,n),this.i._addProtoToInputSidePacket(n,t.length,e,r),this.i._free(n)}))}))}attachBoolListener(t,e){lo(this,t,e),co(this,t,(t=>{this.i._attachBoolListener(t)}))}attachBoolVectorListener(t,e){fo(this,t,e),co(this,t,(t=>{this.i._attachBoolVectorListener(t)}))}attachIntListener(t,e){lo(this,t,e),co(this,t,(t=>{this.i._attachIntListener(t)}))}attachIntVectorListener(t,e){fo(this,t,e),co(this,t,(t=>{this.i._attachIntVectorListener(t)}))}attachDoubleListener(t,e){lo(this,t,e),co(this,t,(t=>{this.i._attachDoubleListener(t)}))}attachDoubleVectorListener(t,e){fo(this,t,e),co(this,t,(t=>{this.i._attachDoubleVectorListener(t)}))}attachFloatListener(t,e){lo(this,t,e),co(this,t,(t=>{this.i._attachFloatListener(t)}))}attachFloatVectorListener(t,e){fo(this,t,e),co(this,t,(t=>{this.i._attachFloatVectorListener(t)}))}attachStringListener(t,e){lo(this,t,e),co(this,t,(t=>{this.i._attachStringListener(t)}))}attachStringVectorListener(t,e){fo(this,t,e),co(this,t,(t=>{this.i._attachStringVectorListener(t)}))}attachProtoListener(t,e,r){lo(this,t,e),co(this,t,(t=>{this.i._attachProtoListener(t,r||!1)}))}attachProtoVectorListener(t,e,r){fo(this,t,e),co(this,t,(t=>{this.i._attachProtoVectorListener(t,r||!1)}))}attachAudioListener(t,e,r){this.i._attachAudioListener||console.warn('Attempting to use attachAudioListener without support for output audio. Is build dep ":gl_graph_runner_audio_out" missing?'),lo(this,t,((t,r)=>{t=new Float32Array(t.buffer,t.byteOffset,t.length/4),e(t,r)})),co(this,t,(t=>{this.i._attachAudioListener(t,r||!1)}))}finishProcessing(){this.i._waitUntilIdle()}closeGraph(){this.i._closeGraph(),this.i.simpleListeners=void 0,this.i.emptyPacketListeners=void 0}},class extends aa{get W(){return this.i}ea(t,e,r){co(this,e,(e=>{const[n,s]=ho(this,t,e);this.W._addBoundTextureAsImageToStream(e,n,s,r)}))}P(t,e){lo(this,t,e),co(this,t,(t=>{this.W._attachImageListener(t)}))}R(t,e){fo(this,t,e),co(this,t,(t=>{this.W._attachImageVectorListener(t)}))}}));var aa,ca=class extends oa{};async function ha(t,e,r){return async function(t,e,r,n){return po(t,e,r,n)}(t,r.canvas??("undefined"==typeof OffscreenCanvas||oo()?document.createElement("canvas"):void 0),e,r)}function ua(t,e,r,n){if(t.X){const i=new Ms;if(r?.regionOfInterest){if(!t.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(0>s.left||0>s.top||1<s.right||1<s.bottom)throw Error("Expected RectF values to be in [0,1].");gr(i,1,(s.left+s.right)/2),gr(i,2,(s.top+s.bottom)/2),gr(i,4,s.right-s.left),gr(i,3,s.bottom-s.top)}else gr(i,1,.5),gr(i,2,.5),gr(i,4,1),gr(i,3,1);if(r?.rotationDegrees){if(0!=r?.rotationDegrees%90)throw Error("Expected rotation to be a multiple of 90°.");if(gr(i,5,-Math.PI*r.rotationDegrees/180),0!=r?.rotationDegrees%180){const[t,n]=void 0!==e.videoWidth?[e.videoWidth,e.videoHeight]:void 0!==e.naturalWidth?[e.naturalWidth,e.naturalHeight]:[e.width,e.height];r=dr(i,3)*n/t,s=dr(i,4)*t/n,gr(i,4,r),gr(i,3,s)}}t.g.addProtoToStream(i.g(),"mediapipe.NormalizedRect",t.X,n)}t.g.ea(e,t.ba,n??performance.now()),t.finishProcessing()}function la(t,e,r){if(t.baseOptions?.g())throw Error("Task is not initialized with image mode. 'runningMode' must be set to 'IMAGE'.");ua(t,e,r,t.H+1)}function da(t,e,r,n){if(!t.baseOptions?.g())throw Error("Task is not initialized with video mode. 'runningMode' must be set to 'VIDEO'.");ua(t,e,r,n)}function fa(t,e,r){var n=e.data;const s=e.width,i=s*(e=e.height);if((n instanceof Uint8Array||n instanceof Float32Array)&&n.length!==i)throw Error("Unsupported channel count: "+n.length/i);return t=new na([n],!1,t.g.i.canvas,t.M,s,e),r?t.clone():t}var pa=class extends wo{constructor(t,e,r,n){super(t),this.g=t,this.ba=e,this.X=r,this.ca=n,this.M=new Io}l(t,e=!0){if("runningMode"in t&&fr(this.baseOptions,2,!!t.runningMode&&"IMAGE"!==t.runningMode),void 0!==t.canvas&&this.g.i.canvas!==t.canvas)throw Error("You must create a new task to reset the canvas.");return super.l(t,e)}close(){this.M.close(),super.close()}};pa.prototype.close=pa.prototype.close;var ga=class extends pa{constructor(t,e){super(new ca(t,e),"image_in","norm_rect_in",!1),this.j={detections:[]},this.h=new ti,t=new Zs,ir(this.h,0,1,t),gr(this.h,2,.5),gr(this.h,3,.3)}get baseOptions(){return rr(this.h,Zs,1)}set baseOptions(t){ir(this.h,0,1,t)}o(t){return"minDetectionConfidence"in t&&gr(this.h,2,t.minDetectionConfidence??.5),"minSuppressionThreshold"in t&&gr(this.h,3,t.minSuppressionThreshold??.3),this.l(t)}F(t,e){return this.j={detections:[]},la(this,t,e),this.j}D(t,e,r){return this.j={detections:[]},da(this,t,r,e),this.j}m(){var t=new rs;ts(t,"image_in"),ts(t,"norm_rect_in"),es(t,"detections");const e=new Nn;yr(e,ri,this.h);const r=new Kn;zn(r,"mediapipe.tasks.vision.face_detector.FaceDetectorGraph"),Wn(r,"IMAGE:image_in"),Wn(r,"NORM_RECT:norm_rect_in"),Hn(r,"DETECTIONS:detections"),r.o(e),Qn(t,r),this.g.attachProtoVectorListener("detections",((t,e)=>{for(const e of t)t=ws(e),this.j.detections.push(qi(t));yo(this,e)})),this.g.attachEmptyPacketListener("detections",(t=>{yo(this,t)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};ga.prototype.detectForVideo=ga.prototype.D,ga.prototype.setOptions=ga.prototype.o,ga.createFromModelPath=async function(t,e){return ha(ga,t,{baseOptions:{modelAssetPath:e}})},ga.createFromModelBuffer=function(t,e){return ha(ga,t,{baseOptions:{modelAssetBuffer:e}})},ga.createFromOptions=function(t,e){return ha(ga,t,e)};var ma=ia([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]),ya=ia([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]),_a=ia([276,283],[283,282],[282,295],[295,285],[300,293],[293,334],[334,296],[296,336]),va=ia([474,475],[475,476],[476,477],[477,474]),Aa=ia([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]),wa=ia([46,53],[53,52],[52,65],[65,55],[70,63],[63,105],[105,66],[66,107]),Ea=ia([469,470],[470,471],[471,472],[472,469]),ba=ia([10,338],[338,297],[297,332],[332,284],[284,251],[251,389],[389,356],[356,454],[454,323],[323,361],[361,288],[288,397],[397,365],[365,379],[379,378],[378,400],[400,377],[377,152],[152,148],[148,176],[176,149],[149,150],[150,136],[136,172],[172,58],[58,132],[132,93],[93,234],[234,127],[127,162],[162,21],[21,54],[54,103],[103,67],[67,109],[109,10]),Ta=[...ma,...ya,..._a,...Aa,...wa,...ba],ka=ia([127,34],[34,139],[139,127],[11,0],[0,37],[37,11],[232,231],[231,120],[120,232],[72,37],[37,39],[39,72],[128,121],[121,47],[47,128],[232,121],[121,128],[128,232],[104,69],[69,67],[67,104],[175,171],[171,148],[148,175],[118,50],[50,101],[101,118],[73,39],[39,40],[40,73],[9,151],[151,108],[108,9],[48,115],[115,131],[131,48],[194,204],[204,211],[211,194],[74,40],[40,185],[185,74],[80,42],[42,183],[183,80],[40,92],[92,186],[186,40],[230,229],[229,118],[118,230],[202,212],[212,214],[214,202],[83,18],[18,17],[17,83],[76,61],[61,146],[146,76],[160,29],[29,30],[30,160],[56,157],[157,173],[173,56],[106,204],[204,194],[194,106],[135,214],[214,192],[192,135],[203,165],[165,98],[98,203],[21,71],[71,68],[68,21],[51,45],[45,4],[4,51],[144,24],[24,23],[23,144],[77,146],[146,91],[91,77],[205,50],[50,187],[187,205],[201,200],[200,18],[18,201],[91,106],[106,182],[182,91],[90,91],[91,181],[181,90],[85,84],[84,17],[17,85],[206,203],[203,36],[36,206],[148,171],[171,140],[140,148],[92,40],[40,39],[39,92],[193,189],[189,244],[244,193],[159,158],[158,28],[28,159],[247,246],[246,161],[161,247],[236,3],[3,196],[196,236],[54,68],[68,104],[104,54],[193,168],[168,8],[8,193],[117,228],[228,31],[31,117],[189,193],[193,55],[55,189],[98,97],[97,99],[99,98],[126,47],[47,100],[100,126],[166,79],[79,218],[218,166],[155,154],[154,26],[26,155],[209,49],[49,131],[131,209],[135,136],[136,150],[150,135],[47,126],[126,217],[217,47],[223,52],[52,53],[53,223],[45,51],[51,134],[134,45],[211,170],[170,140],[140,211],[67,69],[69,108],[108,67],[43,106],[106,91],[91,43],[230,119],[119,120],[120,230],[226,130],[130,247],[247,226],[63,53],[53,52],[52,63],[238,20],[20,242],[242,238],[46,70],[70,156],[156,46],[78,62],[62,96],[96,78],[46,53],[53,63],[63,46],[143,34],[34,227],[227,143],[123,117],[117,111],[111,123],[44,125],[125,19],[19,44],[236,134],[134,51],[51,236],[216,206],[206,205],[205,216],[154,153],[153,22],[22,154],[39,37],[37,167],[167,39],[200,201],[201,208],[208,200],[36,142],[142,100],[100,36],[57,212],[212,202],[202,57],[20,60],[60,99],[99,20],[28,158],[158,157],[157,28],[35,226],[226,113],[113,35],[160,159],[159,27],[27,160],[204,202],[202,210],[210,204],[113,225],[225,46],[46,113],[43,202],[202,204],[204,43],[62,76],[76,77],[77,62],[137,123],[123,116],[116,137],[41,38],[38,72],[72,41],[203,129],[129,142],[142,203],[64,98],[98,240],[240,64],[49,102],[102,64],[64,49],[41,73],[73,74],[74,41],[212,216],[216,207],[207,212],[42,74],[74,184],[184,42],[169,170],[170,211],[211,169],[170,149],[149,176],[176,170],[105,66],[66,69],[69,105],[122,6],[6,168],[168,122],[123,147],[147,187],[187,123],[96,77],[77,90],[90,96],[65,55],[55,107],[107,65],[89,90],[90,180],[180,89],[101,100],[100,120],[120,101],[63,105],[105,104],[104,63],[93,137],[137,227],[227,93],[15,86],[86,85],[85,15],[129,102],[102,49],[49,129],[14,87],[87,86],[86,14],[55,8],[8,9],[9,55],[100,47],[47,121],[121,100],[145,23],[23,22],[22,145],[88,89],[89,179],[179,88],[6,122],[122,196],[196,6],[88,95],[95,96],[96,88],[138,172],[172,136],[136,138],[215,58],[58,172],[172,215],[115,48],[48,219],[219,115],[42,80],[80,81],[81,42],[195,3],[3,51],[51,195],[43,146],[146,61],[61,43],[171,175],[175,199],[199,171],[81,82],[82,38],[38,81],[53,46],[46,225],[225,53],[144,163],[163,110],[110,144],[52,65],[65,66],[66,52],[229,228],[228,117],[117,229],[34,127],[127,234],[234,34],[107,108],[108,69],[69,107],[109,108],[108,151],[151,109],[48,64],[64,235],[235,48],[62,78],[78,191],[191,62],[129,209],[209,126],[126,129],[111,35],[35,143],[143,111],[117,123],[123,50],[50,117],[222,65],[65,52],[52,222],[19,125],[125,141],[141,19],[221,55],[55,65],[65,221],[3,195],[195,197],[197,3],[25,7],[7,33],[33,25],[220,237],[237,44],[44,220],[70,71],[71,139],[139,70],[122,193],[193,245],[245,122],[247,130],[130,33],[33,247],[71,21],[21,162],[162,71],[170,169],[169,150],[150,170],[188,174],[174,196],[196,188],[216,186],[186,92],[92,216],[2,97],[97,167],[167,2],[141,125],[125,241],[241,141],[164,167],[167,37],[37,164],[72,38],[38,12],[12,72],[38,82],[82,13],[13,38],[63,68],[68,71],[71,63],[226,35],[35,111],[111,226],[101,50],[50,205],[205,101],[206,92],[92,165],[165,206],[209,198],[198,217],[217,209],[165,167],[167,97],[97,165],[220,115],[115,218],[218,220],[133,112],[112,243],[243,133],[239,238],[238,241],[241,239],[214,135],[135,169],[169,214],[190,173],[173,133],[133,190],[171,208],[208,32],[32,171],[125,44],[44,237],[237,125],[86,87],[87,178],[178,86],[85,86],[86,179],[179,85],[84,85],[85,180],[180,84],[83,84],[84,181],[181,83],[201,83],[83,182],[182,201],[137,93],[93,132],[132,137],[76,62],[62,183],[183,76],[61,76],[76,184],[184,61],[57,61],[61,185],[185,57],[212,57],[57,186],[186,212],[214,207],[207,187],[187,214],[34,143],[143,156],[156,34],[79,239],[239,237],[237,79],[123,137],[137,177],[177,123],[44,1],[1,4],[4,44],[201,194],[194,32],[32,201],[64,102],[102,129],[129,64],[213,215],[215,138],[138,213],[59,166],[166,219],[219,59],[242,99],[99,97],[97,242],[2,94],[94,141],[141,2],[75,59],[59,235],[235,75],[24,110],[110,228],[228,24],[25,130],[130,226],[226,25],[23,24],[24,229],[229,23],[22,23],[23,230],[230,22],[26,22],[22,231],[231,26],[112,26],[26,232],[232,112],[189,190],[190,243],[243,189],[221,56],[56,190],[190,221],[28,56],[56,221],[221,28],[27,28],[28,222],[222,27],[29,27],[27,223],[223,29],[30,29],[29,224],[224,30],[247,30],[30,225],[225,247],[238,79],[79,20],[20,238],[166,59],[59,75],[75,166],[60,75],[75,240],[240,60],[147,177],[177,215],[215,147],[20,79],[79,166],[166,20],[187,147],[147,213],[213,187],[112,233],[233,244],[244,112],[233,128],[128,245],[245,233],[128,114],[114,188],[188,128],[114,217],[217,174],[174,114],[131,115],[115,220],[220,131],[217,198],[198,236],[236,217],[198,131],[131,134],[134,198],[177,132],[132,58],[58,177],[143,35],[35,124],[124,143],[110,163],[163,7],[7,110],[228,110],[110,25],[25,228],[356,389],[389,368],[368,356],[11,302],[302,267],[267,11],[452,350],[350,349],[349,452],[302,303],[303,269],[269,302],[357,343],[343,277],[277,357],[452,453],[453,357],[357,452],[333,332],[332,297],[297,333],[175,152],[152,377],[377,175],[347,348],[348,330],[330,347],[303,304],[304,270],[270,303],[9,336],[336,337],[337,9],[278,279],[279,360],[360,278],[418,262],[262,431],[431,418],[304,408],[408,409],[409,304],[310,415],[415,407],[407,310],[270,409],[409,410],[410,270],[450,348],[348,347],[347,450],[422,430],[430,434],[434,422],[313,314],[314,17],[17,313],[306,307],[307,375],[375,306],[387,388],[388,260],[260,387],[286,414],[414,398],[398,286],[335,406],[406,418],[418,335],[364,367],[367,416],[416,364],[423,358],[358,327],[327,423],[251,284],[284,298],[298,251],[281,5],[5,4],[4,281],[373,374],[374,253],[253,373],[307,320],[320,321],[321,307],[425,427],[427,411],[411,425],[421,313],[313,18],[18,421],[321,405],[405,406],[406,321],[320,404],[404,405],[405,320],[315,16],[16,17],[17,315],[426,425],[425,266],[266,426],[377,400],[400,369],[369,377],[322,391],[391,269],[269,322],[417,465],[465,464],[464,417],[386,257],[257,258],[258,386],[466,260],[260,388],[388,466],[456,399],[399,419],[419,456],[284,332],[332,333],[333,284],[417,285],[285,8],[8,417],[346,340],[340,261],[261,346],[413,441],[441,285],[285,413],[327,460],[460,328],[328,327],[355,371],[371,329],[329,355],[392,439],[439,438],[438,392],[382,341],[341,256],[256,382],[429,420],[420,360],[360,429],[364,394],[394,379],[379,364],[277,343],[343,437],[437,277],[443,444],[444,283],[283,443],[275,440],[440,363],[363,275],[431,262],[262,369],[369,431],[297,338],[338,337],[337,297],[273,375],[375,321],[321,273],[450,451],[451,349],[349,450],[446,342],[342,467],[467,446],[293,334],[334,282],[282,293],[458,461],[461,462],[462,458],[276,353],[353,383],[383,276],[308,324],[324,325],[325,308],[276,300],[300,293],[293,276],[372,345],[345,447],[447,372],[352,345],[345,340],[340,352],[274,1],[1,19],[19,274],[456,248],[248,281],[281,456],[436,427],[427,425],[425,436],[381,256],[256,252],[252,381],[269,391],[391,393],[393,269],[200,199],[199,428],[428,200],[266,330],[330,329],[329,266],[287,273],[273,422],[422,287],[250,462],[462,328],[328,250],[258,286],[286,384],[384,258],[265,353],[353,342],[342,265],[387,259],[259,257],[257,387],[424,431],[431,430],[430,424],[342,353],[353,276],[276,342],[273,335],[335,424],[424,273],[292,325],[325,307],[307,292],[366,447],[447,345],[345,366],[271,303],[303,302],[302,271],[423,266],[266,371],[371,423],[294,455],[455,460],[460,294],[279,278],[278,294],[294,279],[271,272],[272,304],[304,271],[432,434],[434,427],[427,432],[272,407],[407,408],[408,272],[394,430],[430,431],[431,394],[395,369],[369,400],[400,395],[334,333],[333,299],[299,334],[351,417],[417,168],[168,351],[352,280],[280,411],[411,352],[325,319],[319,320],[320,325],[295,296],[296,336],[336,295],[319,403],[403,404],[404,319],[330,348],[348,349],[349,330],[293,298],[298,333],[333,293],[323,454],[454,447],[447,323],[15,16],[16,315],[315,15],[358,429],[429,279],[279,358],[14,15],[15,316],[316,14],[285,336],[336,9],[9,285],[329,349],[349,350],[350,329],[374,380],[380,252],[252,374],[318,402],[402,403],[403,318],[6,197],[197,419],[419,6],[318,319],[319,325],[325,318],[367,364],[364,365],[365,367],[435,367],[367,397],[397,435],[344,438],[438,439],[439,344],[272,271],[271,311],[311,272],[195,5],[5,281],[281,195],[273,287],[287,291],[291,273],[396,428],[428,199],[199,396],[311,271],[271,268],[268,311],[283,444],[444,445],[445,283],[373,254],[254,339],[339,373],[282,334],[334,296],[296,282],[449,347],[347,346],[346,449],[264,447],[447,454],[454,264],[336,296],[296,299],[299,336],[338,10],[10,151],[151,338],[278,439],[439,455],[455,278],[292,407],[407,415],[415,292],[358,371],[371,355],[355,358],[340,345],[345,372],[372,340],[346,347],[347,280],[280,346],[442,443],[443,282],[282,442],[19,94],[94,370],[370,19],[441,442],[442,295],[295,441],[248,419],[419,197],[197,248],[263,255],[255,359],[359,263],[440,275],[275,274],[274,440],[300,383],[383,368],[368,300],[351,412],[412,465],[465,351],[263,467],[467,466],[466,263],[301,368],[368,389],[389,301],[395,378],[378,379],[379,395],[412,351],[351,419],[419,412],[436,426],[426,322],[322,436],[2,164],[164,393],[393,2],[370,462],[462,461],[461,370],[164,0],[0,267],[267,164],[302,11],[11,12],[12,302],[268,12],[12,13],[13,268],[293,300],[300,301],[301,293],[446,261],[261,340],[340,446],[330,266],[266,425],[425,330],[426,423],[423,391],[391,426],[429,355],[355,437],[437,429],[391,327],[327,326],[326,391],[440,457],[457,438],[438,440],[341,382],[382,362],[362,341],[459,457],[457,461],[461,459],[434,430],[430,394],[394,434],[414,463],[463,362],[362,414],[396,369],[369,262],[262,396],[354,461],[461,457],[457,354],[316,403],[403,402],[402,316],[315,404],[404,403],[403,315],[314,405],[405,404],[404,314],[313,406],[406,405],[405,313],[421,418],[418,406],[406,421],[366,401],[401,361],[361,366],[306,408],[408,407],[407,306],[291,409],[409,408],[408,291],[287,410],[410,409],[409,287],[432,436],[436,410],[410,432],[434,416],[416,411],[411,434],[264,368],[368,383],[383,264],[309,438],[438,457],[457,309],[352,376],[376,401],[401,352],[274,275],[275,4],[4,274],[421,428],[428,262],[262,421],[294,327],[327,358],[358,294],[433,416],[416,367],[367,433],[289,455],[455,439],[439,289],[462,370],[370,326],[326,462],[2,326],[326,370],[370,2],[305,460],[460,455],[455,305],[254,449],[449,448],[448,254],[255,261],[261,446],[446,255],[253,450],[450,449],[449,253],[252,451],[451,450],[450,252],[256,452],[452,451],[451,256],[341,453],[453,452],[452,341],[413,464],[464,463],[463,413],[441,413],[413,414],[414,441],[258,442],[442,441],[441,258],[257,443],[443,442],[442,257],[259,444],[444,443],[443,259],[260,445],[445,444],[444,260],[467,342],[342,445],[445,467],[459,458],[458,250],[250,459],[289,392],[392,290],[290,289],[290,328],[328,460],[460,290],[376,433],[433,435],[435,376],[250,290],[290,392],[392,250],[411,416],[416,433],[433,411],[341,463],[463,464],[464,341],[453,464],[464,465],[465,453],[357,465],[465,412],[412,357],[343,412],[412,399],[399,343],[360,363],[363,440],[440,360],[437,399],[399,456],[456,437],[420,456],[456,363],[363,420],[401,435],[435,288],[288,401],[372,383],[383,353],[353,372],[339,255],[255,249],[249,339],[448,261],[261,255],[255,448],[133,243],[243,190],[190,133],[133,155],[155,112],[112,133],[33,246],[246,247],[247,33],[33,130],[130,25],[25,33],[398,384],[384,286],[286,398],[362,398],[398,414],[414,362],[362,463],[463,341],[341,362],[263,359],[359,467],[467,263],[263,249],[249,255],[255,263],[466,467],[467,260],[260,466],[75,60],[60,166],[166,75],[238,239],[239,79],[79,238],[162,127],[127,139],[139,162],[72,11],[11,37],[37,72],[121,232],[232,120],[120,121],[73,72],[72,39],[39,73],[114,128],[128,47],[47,114],[233,232],[232,128],[128,233],[103,104],[104,67],[67,103],[152,175],[175,148],[148,152],[119,118],[118,101],[101,119],[74,73],[73,40],[40,74],[107,9],[9,108],[108,107],[49,48],[48,131],[131,49],[32,194],[194,211],[211,32],[184,74],[74,185],[185,184],[191,80],[80,183],[183,191],[185,40],[40,186],[186,185],[119,230],[230,118],[118,119],[210,202],[202,214],[214,210],[84,83],[83,17],[17,84],[77,76],[76,146],[146,77],[161,160],[160,30],[30,161],[190,56],[56,173],[173,190],[182,106],[106,194],[194,182],[138,135],[135,192],[192,138],[129,203],[203,98],[98,129],[54,21],[21,68],[68,54],[5,51],[51,4],[4,5],[145,144],[144,23],[23,145],[90,77],[77,91],[91,90],[207,205],[205,187],[187,207],[83,201],[201,18],[18,83],[181,91],[91,182],[182,181],[180,90],[90,181],[181,180],[16,85],[85,17],[17,16],[205,206],[206,36],[36,205],[176,148],[148,140],[140,176],[165,92],[92,39],[39,165],[245,193],[193,244],[244,245],[27,159],[159,28],[28,27],[30,247],[247,161],[161,30],[174,236],[236,196],[196,174],[103,54],[54,104],[104,103],[55,193],[193,8],[8,55],[111,117],[117,31],[31,111],[221,189],[189,55],[55,221],[240,98],[98,99],[99,240],[142,126],[126,100],[100,142],[219,166],[166,218],[218,219],[112,155],[155,26],[26,112],[198,209],[209,131],[131,198],[169,135],[135,150],[150,169],[114,47],[47,217],[217,114],[224,223],[223,53],[53,224],[220,45],[45,134],[134,220],[32,211],[211,140],[140,32],[109,67],[67,108],[108,109],[146,43],[43,91],[91,146],[231,230],[230,120],[120,231],[113,226],[226,247],[247,113],[105,63],[63,52],[52,105],[241,238],[238,242],[242,241],[124,46],[46,156],[156,124],[95,78],[78,96],[96,95],[70,46],[46,63],[63,70],[116,143],[143,227],[227,116],[116,123],[123,111],[111,116],[1,44],[44,19],[19,1],[3,236],[236,51],[51,3],[207,216],[216,205],[205,207],[26,154],[154,22],[22,26],[165,39],[39,167],[167,165],[199,200],[200,208],[208,199],[101,36],[36,100],[100,101],[43,57],[57,202],[202,43],[242,20],[20,99],[99,242],[56,28],[28,157],[157,56],[124,35],[35,113],[113,124],[29,160],[160,27],[27,29],[211,204],[204,210],[210,211],[124,113],[113,46],[46,124],[106,43],[43,204],[204,106],[96,62],[62,77],[77,96],[227,137],[137,116],[116,227],[73,41],[41,72],[72,73],[36,203],[203,142],[142,36],[235,64],[64,240],[240,235],[48,49],[49,64],[64,48],[42,41],[41,74],[74,42],[214,212],[212,207],[207,214],[183,42],[42,184],[184,183],[210,169],[169,211],[211,210],[140,170],[170,176],[176,140],[104,105],[105,69],[69,104],[193,122],[122,168],[168,193],[50,123],[123,187],[187,50],[89,96],[96,90],[90,89],[66,65],[65,107],[107,66],[179,89],[89,180],[180,179],[119,101],[101,120],[120,119],[68,63],[63,104],[104,68],[234,93],[93,227],[227,234],[16,15],[15,85],[85,16],[209,129],[129,49],[49,209],[15,14],[14,86],[86,15],[107,55],[55,9],[9,107],[120,100],[100,121],[121,120],[153,145],[145,22],[22,153],[178,88],[88,179],[179,178],[197,6],[6,196],[196,197],[89,88],[88,96],[96,89],[135,138],[138,136],[136,135],[138,215],[215,172],[172,138],[218,115],[115,219],[219,218],[41,42],[42,81],[81,41],[5,195],[195,51],[51,5],[57,43],[43,61],[61,57],[208,171],[171,199],[199,208],[41,81],[81,38],[38,41],[224,53],[53,225],[225,224],[24,144],[144,110],[110,24],[105,52],[52,66],[66,105],[118,229],[229,117],[117,118],[227,34],[34,234],[234,227],[66,107],[107,69],[69,66],[10,109],[109,151],[151,10],[219,48],[48,235],[235,219],[183,62],[62,191],[191,183],[142,129],[129,126],[126,142],[116,111],[111,143],[143,116],[118,117],[117,50],[50,118],[223,222],[222,52],[52,223],[94,19],[19,141],[141,94],[222,221],[221,65],[65,222],[196,3],[3,197],[197,196],[45,220],[220,44],[44,45],[156,70],[70,139],[139,156],[188,122],[122,245],[245,188],[139,71],[71,162],[162,139],[149,170],[170,150],[150,149],[122,188],[188,196],[196,122],[206,216],[216,92],[92,206],[164,2],[2,167],[167,164],[242,141],[141,241],[241,242],[0,164],[164,37],[37,0],[11,72],[72,12],[12,11],[12,38],[38,13],[13,12],[70,63],[63,71],[71,70],[31,226],[226,111],[111,31],[36,101],[101,205],[205,36],[203,206],[206,165],[165,203],[126,209],[209,217],[217,126],[98,165],[165,97],[97,98],[237,220],[220,218],[218,237],[237,239],[239,241],[241,237],[210,214],[214,169],[169,210],[140,171],[171,32],[32,140],[241,125],[125,237],[237,241],[179,86],[86,178],[178,179],[180,85],[85,179],[179,180],[181,84],[84,180],[180,181],[182,83],[83,181],[181,182],[194,201],[201,182],[182,194],[177,137],[137,132],[132,177],[184,76],[76,183],[183,184],[185,61],[61,184],[184,185],[186,57],[57,185],[185,186],[216,212],[212,186],[186,216],[192,214],[214,187],[187,192],[139,34],[34,156],[156,139],[218,79],[79,237],[237,218],[147,123],[123,177],[177,147],[45,44],[44,4],[4,45],[208,201],[201,32],[32,208],[98,64],[64,129],[129,98],[192,213],[213,138],[138,192],[235,59],[59,219],[219,235],[141,242],[242,97],[97,141],[97,2],[2,141],[141,97],[240,75],[75,235],[235,240],[229,24],[24,228],[228,229],[31,25],[25,226],[226,31],[230,23],[23,229],[229,230],[231,22],[22,230],[230,231],[232,26],[26,231],[231,232],[233,112],[112,232],[232,233],[244,189],[189,243],[243,244],[189,221],[221,190],[190,189],[222,28],[28,221],[221,222],[223,27],[27,222],[222,223],[224,29],[29,223],[223,224],[225,30],[30,224],[224,225],[113,247],[247,225],[225,113],[99,60],[60,240],[240,99],[213,147],[147,215],[215,213],[60,20],[20,166],[166,60],[192,187],[187,213],[213,192],[243,112],[112,244],[244,243],[244,233],[233,245],[245,244],[245,128],[128,188],[188,245],[188,114],[114,174],[174,188],[134,131],[131,220],[220,134],[174,217],[217,236],[236,174],[236,198],[198,134],[134,236],[215,177],[177,58],[58,215],[156,143],[143,124],[124,156],[25,110],[110,7],[7,25],[31,228],[228,25],[25,31],[264,356],[356,368],[368,264],[0,11],[11,267],[267,0],[451,452],[452,349],[349,451],[267,302],[302,269],[269,267],[350,357],[357,277],[277,350],[350,452],[452,357],[357,350],[299,333],[333,297],[297,299],[396,175],[175,377],[377,396],[280,347],[347,330],[330,280],[269,303],[303,270],[270,269],[151,9],[9,337],[337,151],[344,278],[278,360],[360,344],[424,418],[418,431],[431,424],[270,304],[304,409],[409,270],[272,310],[310,407],[407,272],[322,270],[270,410],[410,322],[449,450],[450,347],[347,449],[432,422],[422,434],[434,432],[18,313],[313,17],[17,18],[291,306],[306,375],[375,291],[259,387],[387,260],[260,259],[424,335],[335,418],[418,424],[434,364],[364,416],[416,434],[391,423],[423,327],[327,391],[301,251],[251,298],[298,301],[275,281],[281,4],[4,275],[254,373],[373,253],[253,254],[375,307],[307,321],[321,375],[280,425],[425,411],[411,280],[200,421],[421,18],[18,200],[335,321],[321,406],[406,335],[321,320],[320,405],[405,321],[314,315],[315,17],[17,314],[423,426],[426,266],[266,423],[396,377],[377,369],[369,396],[270,322],[322,269],[269,270],[413,417],[417,464],[464,413],[385,386],[386,258],[258,385],[248,456],[456,419],[419,248],[298,284],[284,333],[333,298],[168,417],[417,8],[8,168],[448,346],[346,261],[261,448],[417,413],[413,285],[285,417],[326,327],[327,328],[328,326],[277,355],[355,329],[329,277],[309,392],[392,438],[438,309],[381,382],[382,256],[256,381],[279,429],[429,360],[360,279],[365,364],[364,379],[379,365],[355,277],[277,437],[437,355],[282,443],[443,283],[283,282],[281,275],[275,363],[363,281],[395,431],[431,369],[369,395],[299,297],[297,337],[337,299],[335,273],[273,321],[321,335],[348,450],[450,349],[349,348],[359,446],[446,467],[467,359],[283,293],[293,282],[282,283],[250,458],[458,462],[462,250],[300,276],[276,383],[383,300],[292,308],[308,325],[325,292],[283,276],[276,293],[293,283],[264,372],[372,447],[447,264],[346,352],[352,340],[340,346],[354,274],[274,19],[19,354],[363,456],[456,281],[281,363],[426,436],[436,425],[425,426],[380,381],[381,252],[252,380],[267,269],[269,393],[393,267],[421,200],[200,428],[428,421],[371,266],[266,329],[329,371],[432,287],[287,422],[422,432],[290,250],[250,328],[328,290],[385,258],[258,384],[384,385],[446,265],[265,342],[342,446],[386,387],[387,257],[257,386],[422,424],[424,430],[430,422],[445,342],[342,276],[276,445],[422,273],[273,424],[424,422],[306,292],[292,307],[307,306],[352,366],[366,345],[345,352],[268,271],[271,302],[302,268],[358,423],[423,371],[371,358],[327,294],[294,460],[460,327],[331,279],[279,294],[294,331],[303,271],[271,304],[304,303],[436,432],[432,427],[427,436],[304,272],[272,408],[408,304],[395,394],[394,431],[431,395],[378,395],[395,400],[400,378],[296,334],[334,299],[299,296],[6,351],[351,168],[168,6],[376,352],[352,411],[411,376],[307,325],[325,320],[320,307],[285,295],[295,336],[336,285],[320,319],[319,404],[404,320],[329,330],[330,349],[349,329],[334,293],[293,333],[333,334],[366,323],[323,447],[447,366],[316,15],[15,315],[315,316],[331,358],[358,279],[279,331],[317,14],[14,316],[316,317],[8,285],[285,9],[9,8],[277,329],[329,350],[350,277],[253,374],[374,252],[252,253],[319,318],[318,403],[403,319],[351,6],[6,419],[419,351],[324,318],[318,325],[325,324],[397,367],[367,365],[365,397],[288,435],[435,397],[397,288],[278,344],[344,439],[439,278],[310,272],[272,311],[311,310],[248,195],[195,281],[281,248],[375,273],[273,291],[291,375],[175,396],[396,199],[199,175],[312,311],[311,268],[268,312],[276,283],[283,445],[445,276],[390,373],[373,339],[339,390],[295,282],[282,296],[296,295],[448,449],[449,346],[346,448],[356,264],[264,454],[454,356],[337,336],[336,299],[299,337],[337,338],[338,151],[151,337],[294,278],[278,455],[455,294],[308,292],[292,415],[415,308],[429,358],[358,355],[355,429],[265,340],[340,372],[372,265],[352,346],[346,280],[280,352],[295,442],[442,282],[282,295],[354,19],[19,370],[370,354],[285,441],[441,295],[295,285],[195,248],[248,197],[197,195],[457,440],[440,274],[274,457],[301,300],[300,368],[368,301],[417,351],[351,465],[465,417],[251,301],[301,389],[389,251],[394,395],[395,379],[379,394],[399,412],[412,419],[419,399],[410,436],[436,322],[322,410],[326,2],[2,393],[393,326],[354,370],[370,461],[461,354],[393,164],[164,267],[267,393],[268,302],[302,12],[12,268],[312,268],[268,13],[13,312],[298,293],[293,301],[301,298],[265,446],[446,340],[340,265],[280,330],[330,425],[425,280],[322,426],[426,391],[391,322],[420,429],[429,437],[437,420],[393,391],[391,326],[326,393],[344,440],[440,438],[438,344],[458,459],[459,461],[461,458],[364,434],[434,394],[394,364],[428,396],[396,262],[262,428],[274,354],[354,457],[457,274],[317,316],[316,402],[402,317],[316,315],[315,403],[403,316],[315,314],[314,404],[404,315],[314,313],[313,405],[405,314],[313,421],[421,406],[406,313],[323,366],[366,361],[361,323],[292,306],[306,407],[407,292],[306,291],[291,408],[408,306],[291,287],[287,409],[409,291],[287,432],[432,410],[410,287],[427,434],[434,411],[411,427],[372,264],[264,383],[383,372],[459,309],[309,457],[457,459],[366,352],[352,401],[401,366],[1,274],[274,4],[4,1],[418,421],[421,262],[262,418],[331,294],[294,358],[358,331],[435,433],[433,367],[367,435],[392,289],[289,439],[439,392],[328,462],[462,326],[326,328],[94,2],[2,370],[370,94],[289,305],[305,455],[455,289],[339,254],[254,448],[448,339],[359,255],[255,446],[446,359],[254,253],[253,449],[449,254],[253,252],[252,450],[450,253],[252,256],[256,451],[451,252],[256,341],[341,452],[452,256],[414,413],[413,463],[463,414],[286,441],[441,414],[414,286],[286,258],[258,441],[441,286],[258,257],[257,442],[442,258],[257,259],[259,443],[443,257],[259,260],[260,444],[444,259],[260,467],[467,445],[445,260],[309,459],[459,250],[250,309],[305,289],[289,290],[290,305],[305,290],[290,460],[460,305],[401,376],[376,435],[435,401],[309,250],[250,392],[392,309],[376,411],[411,433],[433,376],[453,341],[341,464],[464,453],[357,453],[453,465],[465,357],[343,357],[357,412],[412,343],[437,343],[343,399],[399,437],[344,360],[360,440],[440,344],[420,437],[437,456],[456,420],[360,420],[420,363],[363,360],[361,401],[401,288],[288,361],[265,372],[372,353],[353,265],[390,339],[339,249],[249,390],[339,448],[448,255],[255,339]);function xa(t){t.j={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]}}var La=class extends pa{constructor(t,e){super(new ca(t,e),"image_in","norm_rect",!1),this.j={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]},this.outputFacialTransformationMatrixes=this.outputFaceBlendshapes=!1,this.h=new hi,t=new Zs,ir(this.h,0,1,t),this.v=new ai,ir(this.h,0,3,this.v),this.s=new ti,ir(this.h,0,2,this.s),pr(this.s,4,1),gr(this.s,2,.5),gr(this.v,2,.5),gr(this.h,4,.5)}get baseOptions(){return rr(this.h,Zs,1)}set baseOptions(t){ir(this.h,0,1,t)}o(t){return"numFaces"in t&&pr(this.s,4,t.numFaces??1),"minFaceDetectionConfidence"in t&&gr(this.s,2,t.minFaceDetectionConfidence??.5),"minTrackingConfidence"in t&&gr(this.h,4,t.minTrackingConfidence??.5),"minFacePresenceConfidence"in t&&gr(this.v,2,t.minFacePresenceConfidence??.5),"outputFaceBlendshapes"in t&&(this.outputFaceBlendshapes=!!t.outputFaceBlendshapes),"outputFacialTransformationMatrixes"in t&&(this.outputFacialTransformationMatrixes=!!t.outputFacialTransformationMatrixes),this.l(t)}F(t,e){return xa(this),la(this,t,e),this.j}D(t,e,r){return xa(this),da(this,t,r,e),this.j}m(){var t=new rs;ts(t,"image_in"),ts(t,"norm_rect"),es(t,"face_landmarks");const e=new Nn;yr(e,li,this.h);const r=new Kn;zn(r,"mediapipe.tasks.vision.face_landmarker.FaceLandmarkerGraph"),Wn(r,"IMAGE:image_in"),Wn(r,"NORM_RECT:norm_rect"),Hn(r,"NORM_LANDMARKS:face_landmarks"),r.o(e),Qn(t,r),this.g.attachProtoVectorListener("face_landmarks",((t,e)=>{for(const e of t)t=Fs(e),this.j.faceLandmarks.push(Ji(t));yo(this,e)})),this.g.attachEmptyPacketListener("face_landmarks",(t=>{yo(this,t)})),this.outputFaceBlendshapes&&(es(t,"blendshapes"),Hn(r,"BLENDSHAPES:blendshapes"),this.g.attachProtoVectorListener("blendshapes",((t,e)=>{if(this.outputFaceBlendshapes)for(const e of t)t=us(e),this.j.faceBlendshapes.push(Yi(t.g()??[]));yo(this,e)})),this.g.attachEmptyPacketListener("blendshapes",(t=>{yo(this,t)}))),this.outputFacialTransformationMatrixes&&(es(t,"face_geometry"),Hn(r,"FACE_GEOMETRY:face_geometry"),this.g.attachProtoVectorListener("face_geometry",((t,e)=>{if(this.outputFacialTransformationMatrixes)for(const e of t)(t=rr(ii(e),Os,2))&&this.j.facialTransformationMatrixes.push({rows:lr(cr(t,1))??0,columns:lr(cr(t,2))??0,data:Ke(t,3,he)??[]});yo(this,e)})),this.g.attachEmptyPacketListener("face_geometry",(t=>{yo(this,t)}))),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};La.prototype.detectForVideo=La.prototype.D,La.prototype.detect=La.prototype.F,La.prototype.setOptions=La.prototype.o,La.createFromModelPath=function(t,e){return ha(La,t,{baseOptions:{modelAssetPath:e}})},La.createFromModelBuffer=function(t,e){return ha(La,t,{baseOptions:{modelAssetBuffer:e}})},La.createFromOptions=function(t,e){return ha(La,t,e)},La.FACE_LANDMARKS_LIPS=ma,e("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_LIPS",La.FACE_LANDMARKS_LIPS),La.FACE_LANDMARKS_LEFT_EYE=ya,e("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_LEFT_EYE",La.FACE_LANDMARKS_LEFT_EYE),La.FACE_LANDMARKS_LEFT_EYEBROW=_a,e("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_LEFT_EYEBROW",La.FACE_LANDMARKS_LEFT_EYEBROW),La.FACE_LANDMARKS_LEFT_IRIS=va,e("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_LEFT_IRIS",La.FACE_LANDMARKS_LEFT_IRIS),La.FACE_LANDMARKS_RIGHT_EYE=Aa,e("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_RIGHT_EYE",La.FACE_LANDMARKS_RIGHT_EYE),La.FACE_LANDMARKS_RIGHT_EYEBROW=wa,e("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_RIGHT_EYEBROW",La.FACE_LANDMARKS_RIGHT_EYEBROW),La.FACE_LANDMARKS_RIGHT_IRIS=Ea,e("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_RIGHT_IRIS",La.FACE_LANDMARKS_RIGHT_IRIS),La.FACE_LANDMARKS_FACE_OVAL=ba,e("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_FACE_OVAL",La.FACE_LANDMARKS_FACE_OVAL),La.FACE_LANDMARKS_CONTOURS=Ta,e("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_CONTOURS",La.FACE_LANDMARKS_CONTOURS),La.FACE_LANDMARKS_TESSELATION=ka,e("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_TESSELATION",La.FACE_LANDMARKS_TESSELATION);var Sa=class extends pa{constructor(t,e){super(new ca(t,e),"image_in","norm_rect",!0),this.j=new di,t=new Zs,ir(this.j,0,1,t)}get baseOptions(){return rr(this.j,Zs,1)}set baseOptions(t){ir(this.j,0,1,t)}o(t){return super.l(t)}za(t,e,r){const n="function"!=typeof e?e:{};if(this.h="function"==typeof e?e:r,la(this,t,n??{}),!this.h)return this.s}m(){var t=new rs;ts(t,"image_in"),ts(t,"norm_rect"),es(t,"stylized_image");const e=new Nn;yr(e,fi,this.j);const r=new Kn;zn(r,"mediapipe.tasks.vision.face_stylizer.FaceStylizerGraph"),Wn(r,"IMAGE:image_in"),Wn(r,"NORM_RECT:norm_rect"),Hn(r,"STYLIZED_IMAGE:stylized_image"),r.o(e),Qn(t,r),this.g.P("stylized_image",((t,e)=>{var r=!this.h,n=t.data,s=t.width;const i=s*(t=t.height);if(n instanceof Uint8Array)if(n.length===3*i){const e=new Uint8ClampedArray(4*i);for(let t=0;t<i;++t)e[4*t]=n[3*t],e[4*t+1]=n[3*t+1],e[4*t+2]=n[3*t+2],e[4*t+3]=255;n=new ImageData(e,s,t)}else{if(n.length!==4*i)throw Error("Unsupported channel count: "+n.length/i);n=new ImageData(new Uint8ClampedArray(n.buffer,n.byteOffset,n.length),s,t)}else if(!(n instanceof WebGLTexture))throw Error(`Unsupported format: ${n.constructor.name}`);s=new Wo([n],!1,!1,this.g.i.canvas,this.M,s,t),this.s=r=r?s.clone():s,this.h&&this.h(r),yo(this,e)})),this.g.attachEmptyPacketListener("stylized_image",(t=>{this.s=null,this.h&&this.h(null),yo(this,t)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};Sa.prototype.stylize=Sa.prototype.za,Sa.prototype.setOptions=Sa.prototype.o,Sa.createFromModelPath=function(t,e){return ha(Sa,t,{baseOptions:{modelAssetPath:e}})},Sa.createFromModelBuffer=function(t,e){return ha(Sa,t,{baseOptions:{modelAssetBuffer:e}})},Sa.createFromOptions=function(t,e){return ha(Sa,t,e)};var Fa=ia([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 Oa(t){t.gestures=[],t.landmarks=[],t.worldLandmarks=[],t.handedness=[]}function Ra(t){return 0===t.gestures.length?{gestures:[],landmarks:[],worldLandmarks:[],handedness:[],handednesses:[]}:{gestures:t.gestures,landmarks:t.landmarks,worldLandmarks:t.worldLandmarks,handedness:t.handedness,handednesses:t.handedness}}function Ma(t,e=!0){const r=[];for(const s of t){var n=us(s);t=[];for(const r of n.g())n=e&&null!=cr(r,1)?lr(cr(r,1)):-1,t.push({score:dr(r,2)??0,index:n,categoryName:ur(r,3)??""??"",displayName:ur(r,4)??""??""});r.push(t)}return r}var Ca=class extends pa{constructor(t,e){super(new ca(t,e),"image_in","norm_rect",!1),this.gestures=[],this.landmarks=[],this.worldLandmarks=[],this.handedness=[],this.v=new ki,t=new Zs,ir(this.v,0,1,t),this.C=new bi,ir(this.v,0,2,this.C),this.s=new wi,ir(this.C,0,3,this.s),this.h=new vi,ir(this.C,0,2,this.h),this.j=new yi,ir(this.v,0,3,this.j),gr(this.h,2,.5),gr(this.C,4,.5),gr(this.s,2,.5)}get baseOptions(){return rr(this.v,Zs,1)}set baseOptions(t){ir(this.v,0,1,t)}o(t){if(pr(this.h,3,t.numHands??1),"minHandDetectionConfidence"in t&&gr(this.h,2,t.minHandDetectionConfidence??.5),"minTrackingConfidence"in t&&gr(this.C,4,t.minTrackingConfidence??.5),"minHandPresenceConfidence"in t&&gr(this.s,2,t.minHandPresenceConfidence??.5),t.cannedGesturesClassifierOptions){var e=new pi,r=Xi(t.cannedGesturesClassifierOptions,rr(this.j,pi,3)?.h());ir(e,0,2,r),ir(this.j,0,3,e)}else void 0===t.cannedGesturesClassifierOptions&&rr(this.j,pi,3)?.g();return t.customGesturesClassifierOptions?(ir(e=new pi,0,2,r=Xi(t.customGesturesClassifierOptions,rr(this.j,pi,4)?.h())),ir(this.j,0,4,e)):void 0===t.customGesturesClassifierOptions&&rr(this.j,pi,4)?.g(),this.l(t)}va(t,e){return Oa(this),la(this,t,e),Ra(this)}wa(t,e,r){return Oa(this),da(this,t,r,e),Ra(this)}m(){var t=new rs;ts(t,"image_in"),ts(t,"norm_rect"),es(t,"hand_gestures"),es(t,"hand_landmarks"),es(t,"world_hand_landmarks"),es(t,"handedness");const e=new Nn;yr(e,Si,this.v);const r=new Kn;zn(r,"mediapipe.tasks.vision.gesture_recognizer.GestureRecognizerGraph"),Wn(r,"IMAGE:image_in"),Wn(r,"NORM_RECT:norm_rect"),Hn(r,"HAND_GESTURES:hand_gestures"),Hn(r,"LANDMARKS:hand_landmarks"),Hn(r,"WORLD_LANDMARKS:world_hand_landmarks"),Hn(r,"HANDEDNESS:handedness"),r.o(e),Qn(t,r),this.g.attachProtoVectorListener("hand_landmarks",((t,e)=>{for(const e of t){t=Fs(e);const r=[];for(const e of sr(t,xs,1))r.push({x:dr(e,1)??0,y:dr(e,2)??0,z:dr(e,3)??0});this.landmarks.push(r)}yo(this,e)})),this.g.attachEmptyPacketListener("hand_landmarks",(t=>{yo(this,t)})),this.g.attachProtoVectorListener("world_hand_landmarks",((t,e)=>{for(const e of t){t=ks(e);const r=[];for(const e of sr(t,Es,1))r.push({x:dr(e,1)??0,y:dr(e,2)??0,z:dr(e,3)??0});this.worldLandmarks.push(r)}yo(this,e)})),this.g.attachEmptyPacketListener("world_hand_landmarks",(t=>{yo(this,t)})),this.g.attachProtoVectorListener("hand_gestures",((t,e)=>{this.gestures.push(...Ma(t,!1)),yo(this,e)})),this.g.attachEmptyPacketListener("hand_gestures",(t=>{yo(this,t)})),this.g.attachProtoVectorListener("handedness",((t,e)=>{this.handedness.push(...Ma(t)),yo(this,e)})),this.g.attachEmptyPacketListener("handedness",(t=>{yo(this,t)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};function Pa(t){return{landmarks:t.landmarks,worldLandmarks:t.worldLandmarks,handednesses:t.handedness,handedness:t.handedness}}Ca.prototype.recognizeForVideo=Ca.prototype.wa,Ca.prototype.recognize=Ca.prototype.va,Ca.prototype.setOptions=Ca.prototype.o,Ca.createFromModelPath=function(t,e){return ha(Ca,t,{baseOptions:{modelAssetPath:e}})},Ca.createFromModelBuffer=function(t,e){return ha(Ca,t,{baseOptions:{modelAssetBuffer:e}})},Ca.createFromOptions=function(t,e){return ha(Ca,t,e)},Ca.HAND_CONNECTIONS=Fa,e("module$exports$google3$third_party$mediapipe$tasks$web$vision$gesture_recognizer$gesture_recognizer.GestureRecognizer.HAND_CONNECTIONS",Ca.HAND_CONNECTIONS);var Ia=class extends pa{constructor(t,e){super(new ca(t,e),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.handedness=[],this.j=new bi,t=new Zs,ir(this.j,0,1,t),this.s=new wi,ir(this.j,0,3,this.s),this.h=new vi,ir(this.j,0,2,this.h),pr(this.h,3,1),gr(this.h,2,.5),gr(this.s,2,.5),gr(this.j,4,.5)}get baseOptions(){return rr(this.j,Zs,1)}set baseOptions(t){ir(this.j,0,1,t)}o(t){return"numHands"in t&&pr(this.h,3,t.numHands??1),"minHandDetectionConfidence"in t&&gr(this.h,2,t.minHandDetectionConfidence??.5),"minTrackingConfidence"in t&&gr(this.j,4,t.minTrackingConfidence??.5),"minHandPresenceConfidence"in t&&gr(this.s,2,t.minHandPresenceConfidence??.5),this.l(t)}F(t,e){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],la(this,t,e),Pa(this)}D(t,e,r){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],da(this,t,r,e),Pa(this)}m(){var t=new rs;ts(t,"image_in"),ts(t,"norm_rect"),es(t,"hand_landmarks"),es(t,"world_hand_landmarks"),es(t,"handedness");const e=new Nn;yr(e,Li,this.j);const r=new Kn;zn(r,"mediapipe.tasks.vision.hand_landmarker.HandLandmarkerGraph"),Wn(r,"IMAGE:image_in"),Wn(r,"NORM_RECT:norm_rect"),Hn(r,"LANDMARKS:hand_landmarks"),Hn(r,"WORLD_LANDMARKS:world_hand_landmarks"),Hn(r,"HANDEDNESS:handedness"),r.o(e),Qn(t,r),this.g.attachProtoVectorListener("hand_landmarks",((t,e)=>{for(const e of t)t=Fs(e),this.landmarks.push(Ji(t));yo(this,e)})),this.g.attachEmptyPacketListener("hand_landmarks",(t=>{yo(this,t)})),this.g.attachProtoVectorListener("world_hand_landmarks",((t,e)=>{for(const e of t)t=ks(e),this.worldLandmarks.push(Zi(t));yo(this,e)})),this.g.attachEmptyPacketListener("world_hand_landmarks",(t=>{yo(this,t)})),this.g.attachProtoVectorListener("handedness",((t,e)=>{var r=this.handedness,n=r.push;const s=[];for(const e of t){t=us(e);const r=[];for(const e of t.g())r.push({score:dr(e,2)??0,index:lr(cr(e,1))??-1,categoryName:ur(e,3)??""??"",displayName:ur(e,4)??""??""});s.push(r)}n.call(r,...s),yo(this,e)})),this.g.attachEmptyPacketListener("handedness",(t=>{yo(this,t)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};Ia.prototype.detectForVideo=Ia.prototype.D,Ia.prototype.detect=Ia.prototype.F,Ia.prototype.setOptions=Ia.prototype.o,Ia.createFromModelPath=function(t,e){return ha(Ia,t,{baseOptions:{modelAssetPath:e}})},Ia.createFromModelBuffer=function(t,e){return ha(Ia,t,{baseOptions:{modelAssetBuffer:e}})},Ia.createFromOptions=function(t,e){return ha(Ia,t,e)},Ia.HAND_CONNECTIONS=Fa,e("module$exports$google3$third_party$mediapipe$tasks$web$vision$hand_landmarker$hand_landmarker.HandLandmarker.HAND_CONNECTIONS",Ia.HAND_CONNECTIONS);var Na=class extends pa{constructor(t,e){super(new ca(t,e),"input_image","norm_rect",!0),this.j={classifications:[]},this.h=new Fi,t=new Zs,ir(this.h,0,1,t)}get baseOptions(){return rr(this.h,Zs,1)}set baseOptions(t){ir(this.h,0,1,t)}o(t){var e=Xi(t,rr(this.h,zs,2));return ir(this.h,0,2,e),this.l(t)}ga(t,e){return this.j={classifications:[]},la(this,t,e),this.j}ha(t,e,r){return this.j={classifications:[]},da(this,t,r,e),this.j}m(){var t=new rs;ts(t,"input_image"),ts(t,"norm_rect"),es(t,"classifications");const e=new Nn;yr(e,Oi,this.h);const r=new Kn;zn(r,"mediapipe.tasks.vision.image_classifier.ImageClassifierGraph"),Wn(r,"IMAGE:input_image"),Wn(r,"NORM_RECT:norm_rect"),Hn(r,"CLASSIFICATIONS:classifications"),r.o(e),Qn(t,r),this.g.attachProtoListener("classifications",((t,e)=>{this.j=function(t){const e={classifications:sr(t,Cs,1).map((t=>Yi(rr(t,cs,4)?.g()??[],lr(cr(t,2)),ur(t,3)??"")))};return null!=hr(t)&&(e.timestampMs=lr(hr(t))),e}(Ns(t)),yo(this,e)})),this.g.attachEmptyPacketListener("classifications",(t=>{yo(this,t)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};Na.prototype.classifyForVideo=Na.prototype.ha,Na.prototype.classify=Na.prototype.ga,Na.prototype.setOptions=Na.prototype.o,Na.createFromModelPath=function(t,e){return ha(Na,t,{baseOptions:{modelAssetPath:e}})},Na.createFromModelBuffer=function(t,e){return ha(Na,t,{baseOptions:{modelAssetBuffer:e}})},Na.createFromOptions=function(t,e){return ha(Na,t,e)};var Da=class extends pa{constructor(t,e){super(new ca(t,e),"image_in","norm_rect",!0),this.h=new Ri,this.embeddings={embeddings:[]},t=new Zs,ir(this.h,0,1,t)}get baseOptions(){return rr(this.h,Zs,1)}set baseOptions(t){ir(this.h,0,1,t)}o(t){var e=this.h,r=rr(this.h,Hs,2);return r=r?r.clone():new Hs,void 0!==t.l2Normalize?fr(r,1,t.l2Normalize):"l2Normalize"in t&&je(r,1),void 0!==t.quantize?fr(r,2,t.quantize):"quantize"in t&&je(r,2),ir(e,0,2,r),this.l(t)}la(t,e){return la(this,t,e),this.embeddings}ma(t,e,r){return da(this,t,r,e),this.embeddings}m(){var t=new rs;ts(t,"image_in"),ts(t,"norm_rect"),es(t,"embeddings_out");const e=new Nn;yr(e,Mi,this.h);const r=new Kn;zn(r,"mediapipe.tasks.vision.image_embedder.ImageEmbedderGraph"),Wn(r,"IMAGE:image_in"),Wn(r,"NORM_RECT:norm_rect"),Hn(r,"EMBEDDINGS:embeddings_out"),r.o(e),Qn(t,r),this.g.attachProtoListener("embeddings_out",((t,e)=>{t=Vs(t),this.embeddings=function(t){return{embeddings:sr(t,Us,1).map((t=>{const e={headIndex:lr(cr(t,3))??-1,headName:ur(t,4)??""??""};if(void 0!==er(t,Ds,Ze(t,1)))t=Ke(t=rr(t,Ds,Ze(t,1)),1,he),e.floatEmbedding=t;else{const r=new Uint8Array(0);e.quantizedEmbedding=rr(t,$s,Ze(t,2))?.da()?.fa()??r}return e})),timestampMs:lr(hr(t))}}(t),yo(this,e)})),this.g.attachEmptyPacketListener("embeddings_out",(t=>{yo(this,t)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};Da.cosineSimilarity=function(t,e){if(t.floatEmbedding&&e.floatEmbedding)t=to(t.floatEmbedding,e.floatEmbedding);else{if(!t.quantizedEmbedding||!e.quantizedEmbedding)throw Error("Cannot compute cosine similarity between quantized and float embeddings.");t=to(Qi(t.quantizedEmbedding),Qi(e.quantizedEmbedding))}return t},Da.prototype.embedForVideo=Da.prototype.ma,Da.prototype.embed=Da.prototype.la,Da.prototype.setOptions=Da.prototype.o,Da.createFromModelPath=function(t,e){return ha(Da,t,{baseOptions:{modelAssetPath:e}})},Da.createFromModelBuffer=function(t,e){return ha(Da,t,{baseOptions:{modelAssetBuffer:e}})},Da.createFromOptions=function(t,e){return ha(Da,t,e)};var $a=class{constructor(t,e,r){this.confidenceMasks=t,this.categoryMask=e,this.qualityScores=r}close(){this.confidenceMasks?.forEach((t=>{t.close()})),this.categoryMask?.close()}};function Ua(t){t.categoryMask=void 0,t.confidenceMasks=void 0,t.qualityScores=void 0}function Ba(t){try{const e=new $a(t.confidenceMasks,t.categoryMask,t.qualityScores);if(!t.j)return e;t.j(e)}finally{Ao(t)}}$a.prototype.close=$a.prototype.close;var Ga=class extends pa{constructor(t,e){super(new ca(t,e),"image_in","norm_rect",!1),this.s=[],this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new Di,this.v=new Ci,ir(this.h,0,3,this.v),t=new Zs,ir(this.h,0,1,t)}get baseOptions(){return rr(this.h,Zs,1)}set baseOptions(t){ir(this.h,0,1,t)}o(t){return void 0!==t.displayNamesLocale?je(this.h,2,ge(t.displayNamesLocale)):"displayNamesLocale"in t&&je(this.h,2),"outputCategoryMask"in t&&(this.outputCategoryMask=t.outputCategoryMask??!1),"outputConfidenceMasks"in t&&(this.outputConfidenceMasks=t.outputConfidenceMasks??!0),super.l(t)}N(){!function(t){const e=sr(t.U(),Kn,1).filter((t=>(ur(t,1)??"").includes("mediapipe.tasks.TensorsToSegmentationCalculator")));if(t.s=[],1<e.length)throw Error("The graph has more than one mediapipe.tasks.TensorsToSegmentationCalculator.");1===e.length&&(rr(e[0],Nn,7)?.l()?.g()??new Map).forEach(((e,r)=>{t.s[Number(r)]=ur(e,1)??""}))}(this)}V(t,e,r){const n="function"!=typeof e?e:{};return this.j="function"==typeof e?e:r,Ua(this),la(this,t,n),Ba(this)}ya(t,e,r,n){const s="function"!=typeof r?r:{};return this.j="function"==typeof r?r:n,Ua(this),da(this,t,s,e),Ba(this)}ra(){return this.s}m(){var t=new rs;ts(t,"image_in"),ts(t,"norm_rect");const e=new Nn;yr(e,$i,this.h);const r=new Kn;zn(r,"mediapipe.tasks.vision.image_segmenter.ImageSegmenterGraph"),Wn(r,"IMAGE:image_in"),Wn(r,"NORM_RECT:norm_rect"),r.o(e),Qn(t,r),_o(this,t),this.outputConfidenceMasks&&(es(t,"confidence_masks"),Hn(r,"CONFIDENCE_MASKS:confidence_masks"),vo(this,"confidence_masks"),this.g.R("confidence_masks",((t,e)=>{this.confidenceMasks=t.map((t=>fa(this,t,!this.j))),yo(this,e)})),this.g.attachEmptyPacketListener("confidence_masks",(t=>{this.confidenceMasks=[],yo(this,t)}))),this.outputCategoryMask&&(es(t,"category_mask"),Hn(r,"CATEGORY_MASK:category_mask"),vo(this,"category_mask"),this.g.P("category_mask",((t,e)=>{this.categoryMask=fa(this,t,!this.j),yo(this,e)})),this.g.attachEmptyPacketListener("category_mask",(t=>{this.categoryMask=void 0,yo(this,t)}))),es(t,"quality_scores"),Hn(r,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",((t,e)=>{this.qualityScores=t,yo(this,e)})),this.g.attachEmptyPacketListener("quality_scores",(t=>{this.categoryMask=void 0,yo(this,t)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};Ga.prototype.getLabels=Ga.prototype.ra,Ga.prototype.segmentForVideo=Ga.prototype.ya,Ga.prototype.segment=Ga.prototype.V,Ga.prototype.setOptions=Ga.prototype.o,Ga.createFromModelPath=function(t,e){return ha(Ga,t,{baseOptions:{modelAssetPath:e}})},Ga.createFromModelBuffer=function(t,e){return ha(Ga,t,{baseOptions:{modelAssetBuffer:e}})},Ga.createFromOptions=function(t,e){return ha(Ga,t,e)};var ja=class{constructor(t,e,r){this.confidenceMasks=t,this.categoryMask=e,this.qualityScores=r}close(){this.confidenceMasks?.forEach((t=>{t.close()})),this.categoryMask?.close()}};ja.prototype.close=ja.prototype.close;var Va=class extends _r{constructor(t){super(t)}},za=[0,rn,rn,rn],Wa=[0,Yr,Yr,Yr,Yr,on],Ha=[0,Yr,Yr,Yr,Yr,on,Yr,Yr],Ka=[0,dn,Ha],Xa=[0,dn,Ka,dn,za],Ya=[0,dn,Ha,dn,za],qa=[0,dn,Ha,rn,rn],Ja=[0,dn,qa,dn,za],Za=[0,Yr,Yr,Yr,Yr,on,dn,za,dn,za],Qa=[0,Yr,Yr,Yr,Yr,on,yn],tc=class extends _r{constructor(t){super(t)}},ec=[0,Yr,Yr,on],rc=class extends _r{constructor(){super()}};rc.B=[1];var nc=class extends _r{constructor(t){super(t)}},sc=[1,2,3,4,5,6,7,8,9,10,14,15],ic=[0,pn,Ha,sc,pn,Ya,sc,pn,Ka,sc,pn,Xa,sc,pn,ec,sc,pn,Qa,sc,pn,Wa,sc,pn,[0,un,Yr,Yr,Yr,on,rn,on,on,Yr,3,dn,za],sc,pn,qa,sc,pn,Ja,sc,Yr,dn,za,un,pn,Za,sc,pn,[0,fn,ec],sc],oc=[0,un,rn,rn,on],ac=class extends _r{constructor(){super()}};ac.B=[1],ac.prototype.g=En([0,fn,ic,un,dn,oc]);var cc=class extends pa{constructor(t,e){super(new ca(t,e),"image_in","norm_rect_in",!1),this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new Di,this.v=new Ci,ir(this.h,0,3,this.v),t=new Zs,ir(this.h,0,1,t)}get baseOptions(){return rr(this.h,Zs,1)}set baseOptions(t){ir(this.h,0,1,t)}o(t){return"outputCategoryMask"in t&&(this.outputCategoryMask=t.outputCategoryMask??!1),"outputConfidenceMasks"in t&&(this.outputConfidenceMasks=t.outputConfidenceMasks??!0),super.l(t)}V(t,e,r,n){const s="function"!=typeof r?r:{};this.j="function"==typeof r?r:n,this.qualityScores=this.categoryMask=this.confidenceMasks=void 0,r=this.H+1,n=new ac;const i=new nc;var o=new Va;if(pr(o,1,255),ir(i,0,12,o),e.keypoint&&e.scribble)throw Error("Cannot provide both keypoint and scribble.");if(e.keypoint){var a=new tc;fr(a,3,!0),gr(a,1,e.keypoint.x),gr(a,2,e.keypoint.y),or(i,5,sc,a)}else{if(!e.scribble)throw Error("Must provide either a keypoint or a scribble.");for(a of(o=new rc,e.scribble))fr(e=new tc,3,!0),gr(e,1,a.x),gr(e,2,a.y),ar(o,tc,e);or(i,15,sc,o)}ar(n,nc,i),this.g.addProtoToStream(n.g(),"drishti.RenderData","roi_in",r),la(this,t,s);t:{try{const t=new ja(this.confidenceMasks,this.categoryMask,this.qualityScores);if(!this.j){var c=t;break t}this.j(t)}finally{Ao(this)}c=void 0}return c}m(){var t=new rs;ts(t,"image_in"),ts(t,"roi_in"),ts(t,"norm_rect_in");const e=new Nn;yr(e,$i,this.h);const r=new Kn;zn(r,"mediapipe.tasks.vision.interactive_segmenter.InteractiveSegmenterGraph"),Wn(r,"IMAGE:image_in"),Wn(r,"ROI:roi_in"),Wn(r,"NORM_RECT:norm_rect_in"),r.o(e),Qn(t,r),_o(this,t),this.outputConfidenceMasks&&(es(t,"confidence_masks"),Hn(r,"CONFIDENCE_MASKS:confidence_masks"),vo(this,"confidence_masks"),this.g.R("confidence_masks",((t,e)=>{this.confidenceMasks=t.map((t=>fa(this,t,!this.j))),yo(this,e)})),this.g.attachEmptyPacketListener("confidence_masks",(t=>{this.confidenceMasks=[],yo(this,t)}))),this.outputCategoryMask&&(es(t,"category_mask"),Hn(r,"CATEGORY_MASK:category_mask"),vo(this,"category_mask"),this.g.P("category_mask",((t,e)=>{this.categoryMask=fa(this,t,!this.j),yo(this,e)})),this.g.attachEmptyPacketListener("category_mask",(t=>{this.categoryMask=void 0,yo(this,t)}))),es(t,"quality_scores"),Hn(r,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",((t,e)=>{this.qualityScores=t,yo(this,e)})),this.g.attachEmptyPacketListener("quality_scores",(t=>{this.categoryMask=void 0,yo(this,t)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};cc.prototype.segment=cc.prototype.V,cc.prototype.setOptions=cc.prototype.o,cc.createFromModelPath=function(t,e){return ha(cc,t,{baseOptions:{modelAssetPath:e}})},cc.createFromModelBuffer=function(t,e){return ha(cc,t,{baseOptions:{modelAssetBuffer:e}})},cc.createFromOptions=function(t,e){return ha(cc,t,e)};var hc=class extends pa{constructor(t,e){super(new ca(t,e),"input_frame_gpu","norm_rect",!1),this.j={detections:[]},this.h=new Ui,t=new Zs,ir(this.h,0,1,t)}get baseOptions(){return rr(this.h,Zs,1)}set baseOptions(t){ir(this.h,0,1,t)}o(t){return void 0!==t.displayNamesLocale?je(this.h,2,ge(t.displayNamesLocale)):"displayNamesLocale"in t&&je(this.h,2),void 0!==t.maxResults?pr(this.h,3,t.maxResults):"maxResults"in t&&je(this.h,3),void 0!==t.scoreThreshold?gr(this.h,4,t.scoreThreshold):"scoreThreshold"in t&&je(this.h,4),void 0!==t.categoryAllowlist?Je(this.h,5,t.categoryAllowlist):"categoryAllowlist"in t&&je(this.h,5),void 0!==t.categoryDenylist?Je(this.h,6,t.categoryDenylist):"categoryDenylist"in t&&je(this.h,6),this.l(t)}F(t,e){return this.j={detections:[]},la(this,t,e),this.j}D(t,e,r){return this.j={detections:[]},da(this,t,r,e),this.j}m(){var t=new rs;ts(t,"input_frame_gpu"),ts(t,"norm_rect"),es(t,"detections");const e=new Nn;yr(e,Bi,this.h);const r=new Kn;zn(r,"mediapipe.tasks.vision.ObjectDetectorGraph"),Wn(r,"IMAGE:input_frame_gpu"),Wn(r,"NORM_RECT:norm_rect"),Hn(r,"DETECTIONS:detections"),r.o(e),Qn(t,r),this.g.attachProtoVectorListener("detections",((t,e)=>{for(const e of t)t=ws(e),this.j.detections.push(qi(t));yo(this,e)})),this.g.attachEmptyPacketListener("detections",(t=>{yo(this,t)})),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};hc.prototype.detectForVideo=hc.prototype.D,hc.prototype.detect=hc.prototype.F,hc.prototype.setOptions=hc.prototype.o,hc.createFromModelPath=async function(t,e){return ha(hc,t,{baseOptions:{modelAssetPath:e}})},hc.createFromModelBuffer=function(t,e){return ha(hc,t,{baseOptions:{modelAssetBuffer:e}})},hc.createFromOptions=function(t,e){return ha(hc,t,e)};function uc(t){t.landmarks=[],t.worldLandmarks=[],t.v=void 0}function lc(t){try{const e=new class{constructor(t,e,r){this.landmarks=t,this.worldLandmarks=e,this.g=r}close(){this.g?.forEach((t=>{t.close()}))}}(t.landmarks,t.worldLandmarks,t.v);if(!t.s)return e;t.s(e)}finally{Ao(t)}}var dc=class extends pa{constructor(t,e){super(new ca(t,e),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.outputSegmentationMasks=!1,this.h=new Wi,t=new Zs,ir(this.h,0,1,t),this.C=new Vi,ir(this.h,0,3,this.C),this.j=new Gi,ir(this.h,0,2,this.j),pr(this.j,4,1),gr(this.j,2,.5),gr(this.C,2,.5),gr(this.h,4,.5)}get baseOptions(){return rr(this.h,Zs,1)}set baseOptions(t){ir(this.h,0,1,t)}o(t){return"numPoses"in t&&pr(this.j,4,t.numPoses??1),"minPoseDetectionConfidence"in t&&gr(this.j,2,t.minPoseDetectionConfidence??.5),"minTrackingConfidence"in t&&gr(this.h,4,t.minTrackingConfidence??.5),"minPosePresenceConfidence"in t&&gr(this.C,2,t.minPosePresenceConfidence??.5),"outputSegmentationMasks"in t&&(this.outputSegmentationMasks=t.outputSegmentationMasks??!1),this.l(t)}F(t,e,r){const n="function"!=typeof e?e:{};return this.s="function"==typeof e?e:r,uc(this),la(this,t,n),lc(this)}D(t,e,r,n){const s="function"!=typeof r?r:{};return this.s="function"==typeof r?r:n,uc(this),da(this,t,s,e),lc(this)}m(){var t=new rs;ts(t,"image_in"),ts(t,"norm_rect"),es(t,"normalized_landmarks"),es(t,"world_landmarks"),es(t,"segmentation_masks");const e=new Nn;yr(e,Ki,this.h);const r=new Kn;zn(r,"mediapipe.tasks.vision.pose_landmarker.PoseLandmarkerGraph"),Wn(r,"IMAGE:image_in"),Wn(r,"NORM_RECT:norm_rect"),Hn(r,"NORM_LANDMARKS:normalized_landmarks"),Hn(r,"WORLD_LANDMARKS:world_landmarks"),r.o(e),Qn(t,r),_o(this,t),this.g.attachProtoVectorListener("normalized_landmarks",((t,e)=>{this.landmarks=[];for(const e of t)t=Fs(e),this.landmarks.push(Ji(t));yo(this,e)})),this.g.attachEmptyPacketListener("normalized_landmarks",(t=>{this.landmarks=[],yo(this,t)})),this.g.attachProtoVectorListener("world_landmarks",((t,e)=>{this.worldLandmarks=[];for(const e of t)t=ks(e),this.worldLandmarks.push(Zi(t));yo(this,e)})),this.g.attachEmptyPacketListener("world_landmarks",(t=>{this.worldLandmarks=[],yo(this,t)})),this.outputSegmentationMasks&&(Hn(r,"SEGMENTATION_MASK:segmentation_masks"),vo(this,"segmentation_masks"),this.g.R("segmentation_masks",((t,e)=>{this.v=t.map((t=>fa(this,t,!this.s))),yo(this,e)})),this.g.attachEmptyPacketListener("segmentation_masks",(t=>{this.v=[],yo(this,t)}))),t=t.g(),this.setGraph(new Uint8Array(t),!0)}};dc.prototype.detectForVideo=dc.prototype.D,dc.prototype.detect=dc.prototype.F,dc.prototype.setOptions=dc.prototype.o,dc.createFromModelPath=function(t,e){return ha(dc,t,{baseOptions:{modelAssetPath:e}})},dc.createFromModelBuffer=function(t,e){return ha(dc,t,{baseOptions:{modelAssetBuffer:e}})},dc.createFromOptions=function(t,e){return ha(dc,t,e)},dc.POSE_CONNECTIONS=ia([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]),e("module$exports$google3$third_party$mediapipe$tasks$web$vision$pose_landmarker$pose_landmarker.PoseLandmarker.POSE_CONNECTIONS",dc.POSE_CONNECTIONS),exports.DrawingUtils=xo,exports.FaceDetector=ga,exports.FaceLandmarker=La,exports.FaceStylizer=Sa,exports.FilesetResolver=io,exports.GestureRecognizer=Ca,exports.HandLandmarker=Ia,exports.ImageClassifier=Na,exports.ImageEmbedder=Da,exports.ImageSegmenter=Ga,exports.ImageSegmenterResult=$a,exports.InteractiveSegmenter=cc,exports.InteractiveSegmenterResult=ja,exports.MPImage=Wo,exports.MPMask=na,exports.ObjectDetector=hc,exports.PoseLandmarker=dc,exports.TaskRunner=wo,exports.VisionTaskRunner=pa;
2
2
  //# sourceMappingURL=vision_bundle_cjs.js.map